:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #0d0d0d;
  --ink: #f2f0ec;
  --muted: #b8b4ad;
  --soft: #77736d;
  --line: rgba(242, 240, 236, 0.18);
  --line-strong: rgba(242, 240, 236, 0.42);
  --accent: #c8b88a;
  --font-condensed: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Helvetica Neue", Arial, sans-serif;
  --page-pad: clamp(1.2rem, 4vw, 4.75rem);
  --section-space: clamp(5.5rem, 12vw, 11rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 78% 8%, rgba(255, 255, 255, 0.06), transparent 22rem),
    linear-gradient(180deg, #050505 0%, #090909 42%, #030303 100%);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  transform: translateY(-160%);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--ink);
  color: var(--bg);
  padding: 0.7rem 1rem;
  transition: transform 220ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.15rem var(--page-pad);
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.78), rgba(5, 5, 5, 0));
  transition: background 320ms var(--ease), border-color 320ms var(--ease), padding 320ms var(--ease);
}

.site-header.is-scrolled {
  border-bottom: 1px solid rgba(242, 240, 236, 0.08);
  background: rgba(5, 5, 5, 0.84);
  backdrop-filter: blur(18px);
  padding-top: 0.78rem;
  padding-bottom: 0.78rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  font-family: var(--font-condensed);
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand span {
  font-size: 1.35rem;
  font-weight: 700;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2.4vw, 2.4rem);
  color: var(--muted);
  font-family: var(--font-condensed);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 0.35rem 0;
  transition: color 220ms var(--ease);
}

.site-nav a::after {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 280ms var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.section {
  position: relative;
  padding: var(--section-space) var(--page-pad);
}

.hero {
  display: grid;
  min-height: 100svh;
  align-items: center;
  padding-top: 7rem;
  padding-bottom: clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.48);
  transform: scale(1.05);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.96) 0%, rgba(5, 5, 5, 0.72) 42%, rgba(5, 5, 5, 0.42) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.2) 0%, rgba(5, 5, 5, 0.96) 100%);
}

.hero-content {
  width: min(780px, 100%);
  padding-top: clamp(2rem, 5vw, 4rem);
}

.eyebrow,
.section-kicker {
  margin: 0 0 1rem;
  color: var(--accent);
  font-family: var(--font-condensed);
  font-size: 0.84rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-condensed);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.96;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.35rem;
  font-size: 8.4rem;
  text-transform: uppercase;
}

h1 span {
  display: block;
}

h1 span:nth-child(2) {
  color: var(--muted);
}

h1 span:nth-child(3) {
  max-width: 16ch;
  margin-top: 0.55rem;
  color: var(--accent);
  font-size: 0.22em;
  line-height: 1.05;
}

h2 {
  max-width: 12ch;
  font-size: 6.6rem;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 1rem;
  font-size: 2.55rem;
}

.lead {
  max-width: 640px;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 1.26rem;
}

.btn {
  display: inline-flex;
  min-height: 3.15rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 0.9rem 1.2rem;
  font-family: var(--font-condensed);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  line-height: 1.1;
  text-transform: uppercase;
  transition: transform 240ms var(--ease), border-color 240ms var(--ease), background 240ms var(--ease), color 240ms var(--ease);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  border-color: var(--ink);
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-secondary {
  background: rgba(5, 5, 5, 0.18);
  color: var(--ink);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.title-studies {
  position: absolute;
  right: var(--page-pad);
  bottom: clamp(1.4rem, 4vw, 3rem);
  width: min(340px, 34vw);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  color: var(--muted);
}

.title-studies p {
  margin-bottom: 0.7rem;
  color: var(--soft);
  font-family: var(--font-condensed);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.title-studies strong,
.title-studies span {
  display: block;
  margin-bottom: 0.55rem;
}

.title-studies strong {
  color: var(--ink);
  font-weight: 400;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: clamp(2.4rem, 8vw, 8rem);
  align-items: start;
}

.copy-stack {
  max-width: 690px;
  color: var(--muted);
  font-size: 1.13rem;
}

.copy-stack p + p {
  margin-top: 1.4rem;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: end;
  margin-bottom: clamp(2.6rem, 6vw, 5rem);
}

.section-heading .section-kicker {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.section-heading h2 {
  grid-column: 1 / -1;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.metric {
  min-height: 17rem;
  border-right: 1px solid var(--line);
  padding: clamp(1.2rem, 3vw, 2rem);
}

.metric:last-child {
  border-right: 0;
}

.metric span {
  display: block;
  margin-bottom: 4rem;
  font-family: var(--font-condensed);
  font-size: 7.4rem;
  line-height: 0.82;
}

.metric p {
  margin-bottom: 0;
  color: var(--muted);
}

.work {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 34%),
    #080808;
}

.service-list {
  border-top: 1px solid var(--line);
}

.service {
  display: grid;
  grid-template-columns: 5rem minmax(220px, 0.8fr) minmax(280px, 1fr);
  gap: clamp(1rem, 4vw, 4rem);
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding: clamp(1.7rem, 4vw, 3.1rem) 0;
}

.service span {
  color: var(--accent);
  font-family: var(--font-condensed);
  letter-spacing: 0.12em;
}

.service h3,
.service p {
  margin-bottom: 0;
}

.service p {
  max-width: 640px;
  color: var(--muted);
}

.portfolio-head {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.55fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.portfolio-head .section-kicker {
  grid-column: 1 / -1;
}

.portfolio-head h2 {
  max-width: 13ch;
}

.portfolio-head p:last-child {
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(220px, 24vw);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.gallery-item {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  background: #101010;
}

.gallery-item.tall {
  grid-row: span 2;
  grid-column: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item img,
.placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.78);
  transition: transform 700ms var(--ease), filter 700ms var(--ease);
}

.gallery-item:hover img,
.gallery-item:hover .placeholder {
  filter: grayscale(0.82) contrast(1.06) brightness(0.92);
  transform: scale(1.035);
}

.placeholder {
  position: relative;
}

.placeholder::before,
.placeholder::after {
  position: absolute;
  content: "";
}

.placeholder.fabric {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 22%),
    repeating-linear-gradient(92deg, #181818 0 9px, #0c0c0c 9px 18px);
}

.placeholder.fabric::before {
  inset: 18% 12%;
  border: 1px solid rgba(242, 240, 236, 0.18);
  transform: skewY(-8deg);
}

.placeholder.sketch {
  background:
    linear-gradient(160deg, #151515, #070707 60%),
    #111;
}

.placeholder.sketch::before {
  left: 18%;
  top: 12%;
  width: 58%;
  height: 76%;
  border: 1px solid rgba(242, 240, 236, 0.24);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50% 50% 8px 8px;
  transform: rotate(-10deg);
}

.placeholder.sketch::after {
  left: 32%;
  top: 16%;
  width: 1px;
  height: 70%;
  background: rgba(200, 184, 138, 0.42);
  transform: rotate(12deg);
}

.gallery-item figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  color: var(--ink);
}

.gallery-item figcaption span {
  color: var(--muted);
  font-family: var(--font-condensed);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gallery-item figcaption strong {
  max-width: 12rem;
  text-align: right;
  font-family: var(--font-condensed);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.contact {
  padding-top: clamp(4rem, 10vw, 8rem);
}

.contact-panel {
  max-width: 980px;
  border-top: 1px solid var(--line);
  padding-top: clamp(2rem, 5vw, 4rem);
}

.contact-panel h2 {
  max-width: 14ch;
  margin-bottom: 1.3rem;
}

.contact-panel p {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.15rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding: 2rem var(--page-pad);
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
  font-family: var(--font-condensed);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0.4rem 0 0;
}

.site-footer address {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.6rem;
  justify-content: flex-end;
  font-style: normal;
}

.site-footer a {
  border-bottom: 1px solid transparent;
  transition: border-color 220ms var(--ease), color 220ms var(--ease);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  border-color: var(--accent);
  color: var(--ink);
}

.scroll-trace {
  position: fixed;
  top: 0;
  right: clamp(0.6rem, 2vw, 2.3rem);
  z-index: 20;
  width: 7.2rem;
  height: 100vh;
  pointer-events: none;
  opacity: 0.72;
}

.scroll-trace svg {
  width: 100%;
  height: 100%;
}

.scroll-trace path {
  fill: none;
  stroke: rgba(200, 184, 138, 0.74);
  stroke-width: 1.1;
  stroke-dasharray: var(--path-length, 1);
  stroke-dashoffset: var(--path-length, 1);
  vector-effect: non-scaling-stroke;
}

.trace-blade {
  position: absolute;
  right: 2.6rem;
  top: var(--blade-top, 2.2rem);
  width: 2.2rem;
  height: 1px;
  background: var(--ink);
  transform: rotate(-28deg);
  transform-origin: center;
  opacity: 0.82;
}

.trace-blade::before,
.trace-blade::after {
  position: absolute;
  right: -0.1rem;
  width: 0.42rem;
  height: 0.42rem;
  border: 1px solid rgba(242, 240, 236, 0.58);
  border-radius: 50%;
  content: "";
}

.trace-blade::before {
  top: -0.56rem;
}

.trace-blade::after {
  top: 0.18rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .scroll-trace {
    display: none;
  }
}

@media (max-width: 980px) {
  .eyebrow,
  .section-kicker {
    font-size: 0.78rem;
  }

  h1 {
    font-size: 5.8rem;
  }

  h2 {
    font-size: 4.8rem;
  }

  h3 {
    font-size: 2.1rem;
  }

  .lead,
  .copy-stack,
  .contact-panel p {
    font-size: 1.06rem;
  }

  .site-header {
    align-items: flex-start;
  }

  .site-nav {
    max-width: 440px;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
    font-size: 0.7rem;
  }

  .title-studies {
    position: static;
    width: min(420px, 100%);
    margin-bottom: 2rem;
  }

  .hero {
    align-items: center;
    min-height: 100svh;
  }

  .split-layout,
  .portfolio-head {
    grid-template-columns: 1fr;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric {
    border-bottom: 1px solid var(--line);
  }

  .metric:nth-child(2n) {
    border-right: 0;
  }

  .service {
    grid-template-columns: 3rem 1fr;
  }

  .service p {
    grid-column: 2;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(230px, 42vw);
  }

  .scroll-trace {
    opacity: 0.38;
  }
}

@media (max-width: 680px) {
  :root {
    --page-pad: 1rem;
    --section-space: 4.6rem;
  }

  .site-header {
    position: absolute;
    display: block;
  }

  .brand {
    margin-bottom: 0.75rem;
  }

  .site-nav {
    justify-content: flex-start;
    font-size: 0.66rem;
  }

  .hero {
    min-height: 100svh;
    padding-top: 8.2rem;
  }

  h1 {
    max-width: 11ch;
    font-size: 3.55rem;
  }

  h2 {
    max-width: 10ch;
    font-size: 3.3rem;
  }

  h3 {
    font-size: 1.8rem;
  }

  .hero-vignette {
    background:
      linear-gradient(90deg, rgba(5, 5, 5, 0.95) 0%, rgba(5, 5, 5, 0.7) 100%),
      linear-gradient(180deg, rgba(5, 5, 5, 0.18) 0%, rgba(5, 5, 5, 0.98) 100%);
  }

  .btn {
    width: 100%;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .metric,
  .metric:nth-child(2n) {
    min-height: auto;
    border-right: 0;
  }

  .metric span {
    margin-bottom: 2rem;
  }

  .service {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .service p {
    grid-column: auto;
  }

  .gallery {
    display: block;
    background: transparent;
    border: 0;
  }

  .gallery-item {
    min-height: 360px;
    margin-bottom: 1px;
    border: 1px solid var(--line);
  }

  .gallery-item.tall,
  .gallery-item.wide {
    min-height: 430px;
  }

  .gallery-item figcaption {
    display: block;
  }

  .gallery-item figcaption strong {
    display: block;
    margin-top: 0.4rem;
    text-align: left;
  }

  .site-footer {
    display: block;
  }

  .site-footer address {
    justify-content: flex-start;
    margin-top: 1.4rem;
  }

  .scroll-trace {
    right: -2.8rem;
    opacity: 0.28;
  }
}
