/* =========================================================
   THE SOCIAL STUDIO — styles
   Concept: "In frame." The corner mark from the logo's O becomes a
   viewfinder that brings campaign imagery into focus. Photography lives
   in black & white and develops into colour when it is seen.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --ink: #0b0b0b;
  --ink-raised: #161514;
  --paper: #f6f6f4;
  --white: #ffffff;
  --stone: #75726d;          /* secondary text on paper (AA on --paper) */
  --stone-dark: #a19d97;     /* secondary text on ink (AA on --ink) */
  --champagne: #c9b38a;
  --champagne-soft: #e8dcc4;
  --line: rgba(11, 11, 11, 0.14);
  --line-dark: rgba(255, 255, 255, 0.14);

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 64px);
  --col-gap: clamp(12px, 1.8vw, 28px);
  --section-y: clamp(96px, 13vw, 200px);
  --nav-h: 76px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 1.1s;

  --step--1: 0.8125rem;   /* 13px labels */
  --step-0: 1rem;         /* body */
  --step-1: clamp(1.0625rem, 0.98rem + 0.3vw, 1.25rem);
  --display-s: clamp(2.25rem, 1.5rem + 3vw, 4.5rem);
  --display-m: clamp(2.75rem, 1.6rem + 5vw, 7rem);
  --display-l: clamp(3.25rem, 1.4rem + 6.4vw, 7.5rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: italic; }
::selection { background: var(--champagne); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 4px;
}
[data-theme="light"] :focus-visible, .contact :focus-visible { outline-color: var(--ink); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--ink); color: var(--white); padding: 12px 18px; font-size: 14px;
}
.skip-link:focus { top: 16px; }

/* ---------- Shared type ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  display: flex; align-items: center; gap: 14px;
}
.eyebrow::before {
  content: ""; width: 10px; height: 10px; flex: none;
  border-top: 1px solid currentColor; border-left: 1px solid currentColor; /* a single viewfinder corner */
}
[data-theme="dark"] .eyebrow { color: var(--stone-dark); }

.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line__inner { display: block; }

h1, h2, h3 { font-family: var(--serif); font-weight: 300; letter-spacing: -0.015em; line-height: 0.95; }
h2 em, h1 em { font-weight: 300; }

.tag {
  display: inline-flex; align-items: center;
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 8px 3px; border: 1px solid currentColor; line-height: 1.2;
}
.tag--inline { font-size: 10px; padding: 2px 6px 1px; vertical-align: 2px; }
.tag--client { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 54px; padding: 0 26px;
  font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: 0.01em; white-space: nowrap;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color 0.5s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.6s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn__arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform 0.5s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark::before { background: var(--champagne); }
.btn--dark:hover, .btn--dark:focus-visible { color: var(--ink); }

.btn--light { background: var(--white); color: var(--ink); }
.btn--light::before { background: var(--champagne); }

.btn--champagne { background: var(--champagne); color: var(--ink); }
.btn--champagne::before { background: var(--white); }

.link-underline {
  display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap;
  font-size: 15px; font-weight: 500;
  background: linear-gradient(currentColor, currentColor) 0 calc(50% + 0.85em) / 100% 1px no-repeat;
  transition: background-size 0.6s var(--ease-out);
}
.link-underline:hover { background-size: 0 1px; background-position: 100% calc(50% + 0.85em); }

/* Bracketed text button (nav CTA) */
.frame-btn {
  position: relative; display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 18px;
  font-size: 14px; font-weight: 500;
}
.frame-btn__corners i {
  position: absolute; width: 8px; height: 8px; border-color: currentColor; border-style: solid; border-width: 0;
  transition: transform 0.5s var(--ease-out);
}
.frame-btn__corners i:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.frame-btn__corners i:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.frame-btn__corners i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.frame-btn__corners i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.frame-btn:hover .frame-btn__corners i:nth-child(1) { transform: translate(-4px, -4px); }
.frame-btn:hover .frame-btn__corners i:nth-child(2) { transform: translate(4px, -4px); }
.frame-btn:hover .frame-btn__corners i:nth-child(3) { transform: translate(-4px, 4px); }
.frame-btn:hover .frame-btn__corners i:nth-child(4) { transform: translate(4px, 4px); }

/* ---------- Media (images with stable ratio + fallback) ---------- */
.media {
  position: relative; overflow: hidden;
  aspect-ratio: var(--ratio, 4 / 5);
  background: #dcdad6;
}
[data-theme="dark"] .media { background: #222; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.is-broken img { display: none; }
.media.is-broken::after {
  content: attr(data-fallback);
  position: absolute; inset: 0; display: grid; place-items: center; padding: 12%;
  text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2vw, 26px);
  color: var(--stone-dark); background: var(--ink-raised);
}

/* Black & white that develops into colour when seen */
.media--develop img {
  filter: grayscale(1) contrast(1.04);
  transition: filter 1.2s var(--ease-out), transform 1.2s var(--ease-out);
}
.media--develop.is-seen img,
a:hover .media--develop img,
a:focus-visible .media--develop img { filter: grayscale(0) contrast(1); }

/* ---------- Viewfinder (signature) ---------- */
.viewfinder { position: relative; --vf: clamp(18px, 2.2vw, 34px); --vf-gap: clamp(10px, 1.2vw, 18px); }
.viewfinder__corner {
  position: absolute; z-index: 2; width: var(--vf); height: var(--vf);
  border: 0 solid var(--ink); pointer-events: none;
}
[data-theme="dark"] .viewfinder__corner { border-color: var(--champagne); }
.viewfinder__corner--tl { top: calc(var(--vf-gap) * -1); left: calc(var(--vf-gap) * -1); border-top-width: 1px; border-left-width: 1px; }
.viewfinder__corner--tr { top: calc(var(--vf-gap) * -1); right: calc(var(--vf-gap) * -1); border-top-width: 1px; border-right-width: 1px; }
.viewfinder__corner--bl { bottom: calc(var(--vf-gap) * -1); left: calc(var(--vf-gap) * -1); border-bottom-width: 1px; border-left-width: 1px; }
.viewfinder__corner--br { bottom: calc(var(--vf-gap) * -1); right: calc(var(--vf-gap) * -1); border-bottom-width: 1px; border-right-width: 1px; }

/* Sections never leak sideways (corner brackets animate in from outside their frames).
   clip, unlike hidden, does not create a scroll container, so sticky children still work. */
main > section { overflow-x: clip; }

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--nav-h);
  color: var(--ink);
  transition: transform 0.6s var(--ease-out), color 0.4s ease, background-color 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: var(--paper); border-bottom-color: var(--line); }
.nav[data-theme="dark"] { color: var(--white); }
.nav[data-theme="dark"].is-scrolled { background: var(--ink); border-bottom-color: var(--line-dark); }
.nav.is-hidden { transform: translateY(-100%); }

.nav__inner {
  height: 100%; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 32px;
}
.nav__logo { position: relative; display: block; width: 118px; height: 55px; flex: none; }
.nav__logo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 0.4s ease; }
.nav__logo-img--light { opacity: 0; }
.nav[data-theme="dark"] .nav__logo-img--dark { opacity: 0; }
.nav[data-theme="dark"] .nav__logo-img--light { opacity: 1; }

.nav__links { display: flex; gap: clamp(20px, 2.6vw, 40px); margin-left: auto; }
.nav__links a {
  position: relative; font-size: 14px; font-weight: 500; padding: 10px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease-out);
}
.nav__links a:hover::after, .nav__links a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }

.nav__toggle { display: none; margin-left: auto; align-items: center; gap: 12px; min-height: 44px; padding: 0 4px; font-size: 14px; font-weight: 500; }
.nav__toggle-icon { position: relative; width: 26px; height: 10px; }
.nav__toggle-icon i { position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform 0.5s var(--ease-out), top 0.5s var(--ease-out); }
.nav__toggle-icon i:first-child { top: 0; }
.nav__toggle-icon i:last-child { top: 9px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-icon i:first-child { top: 5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-icon i:last-child { top: 5px; transform: rotate(-45deg); }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--ink); color: var(--white);
  padding: calc(var(--nav-h) + 32px) var(--gutter) max(32px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease-in-out);
}
.menu[hidden] { display: none; }
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  display: block; overflow: hidden;
  font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 12vw, 72px); line-height: 1.08;
  border-bottom: 1px solid var(--line-dark); padding: 6px 0 10px;
}
.menu__links a span { display: block; transform: translateY(105%); transition: transform 0.9s var(--ease-out); }
.menu.is-open .menu__links a span { transform: none; }
.menu.is-open .menu__links a:nth-child(2) span { transition-delay: 0.05s; }
.menu.is-open .menu__links a:nth-child(3) span { transition-delay: 0.1s; }
.menu.is-open .menu__links a:nth-child(4) span { transition-delay: 0.15s; }
.menu.is-open .menu__links a:nth-child(5) span { transition-delay: 0.2s; }
.menu.is-open .menu__links a:first-child span { transition-delay: 0.0s; }
.menu__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 32px; }
.menu__social { font-size: 15px; color: var(--stone-dark); min-height: 44px; display: inline-flex; align-items: center; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: max(100svh, 680px);
  padding: calc(var(--nav-h) + clamp(24px, 4vw, 56px)) var(--gutter) clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: end;
  isolation: isolate;
  background: var(--paper);   /* solid backdrop so "Seen." can blend against it */
  overflow-x: clip;           /* intro brackets start outside the frame */
}
/* No z-index here on purpose: "Seen." must blend in the hero's stacking context, over the photograph. */
.hero__copy { grid-column: 1 / span 7; grid-row: 1; position: relative; align-self: center; padding-top: 2vh; }
.hero__title .line--seen { padding-left: clamp(0px, 29vw, 520px); }
.hero__eyebrow { margin-bottom: clamp(24px, 3vw, 40px); }

.hero__title {
  font-size: clamp(3.1rem, 1.2rem + 5.6vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.hero__title .line--seen { overflow: visible; margin-top: 0.04em; }
.hero__seen {
  font-style: italic; font-weight: 300;
  font-size: 3.15em; line-height: 0.8; letter-spacing: -0.035em;
  margin-left: -0.04em;
  color: var(--white);
  mix-blend-mode: difference;   /* reads black on paper, cuts white through the photograph */
  white-space: nowrap;
  position: relative; z-index: 4;
}
.hero__lede {
  max-width: 34rem; margin-top: clamp(24px, 3.2vw, 44px);
  display: grid; gap: 28px;
}
.hero__lede p { font-size: var(--step-1); line-height: 1.55; color: #3a3836; max-width: 31rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }

.hero__visual {
  grid-column: 8 / -1; grid-row: 1;
  align-self: center; justify-self: end;
  width: min(100%, calc((100svh - var(--nav-h) - 210px) * 0.8));
  position: relative; z-index: 1;
  margin-top: 4vh;
}
.hero__media { background: #111; }
.hero__media img { transform-origin: 50% 40%; }
.hero__caption {
  margin-top: calc(var(--vf-gap, 16px) + 18px);
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--stone);
}

.hero__scroll {
  position: absolute; left: var(--gutter); bottom: 22px;
  width: 44px; height: 44px; display: grid; place-items: center;
}
.hero__scroll span { width: 1px; height: 36px; background: var(--ink); transform-origin: top; animation: scrollcue 2.4s var(--ease-in-out) infinite; }
@keyframes scrollcue { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* --- Hero intro sequence (only when JS is running) --- */
.js .hero .line__inner { transform: translateY(105%); }
.js .hero [data-intro] { opacity: 0; transform: translateY(14px); }
.js .hero__frame .media { clip-path: inset(100% 0 0 0); }
.js .hero__frame .media img { filter: blur(18px) grayscale(1); transform: scale(1.18); }
.js .hero__frame .viewfinder__corner { opacity: 0; }
.js .hero__frame .viewfinder__corner--tl { transform: translate(-9vw, -9vh); }
.js .hero__frame .viewfinder__corner--tr { transform: translate(9vw, -9vh); }
.js .hero__frame .viewfinder__corner--bl { transform: translate(-9vw, 9vh); }
.js .hero__frame .viewfinder__corner--br { transform: translate(9vw, 9vh); }
.js .nav { opacity: 0; }

.is-ready .nav { opacity: 1; transition: opacity 1s ease 0.9s, transform 0.6s var(--ease-out), color 0.4s ease, background-color 0.4s ease, border-color 0.4s ease; }
.is-ready .hero .line__inner { transform: none; transition: transform 1.3s var(--ease-out); }
.is-ready .hero .line:nth-child(1) .line__inner { transition-delay: 0.35s; }
.is-ready .hero .line:nth-child(2) .line__inner { transition-delay: 0.45s; }
.is-ready .hero .line:nth-child(3) .line__inner { transition-delay: 0.62s; transition-duration: 1.5s; }
.js .hero .hero__seen { opacity: 0; }
.is-ready .hero .hero__seen { opacity: 1; transition: transform 1.5s var(--ease-out) 0.62s, opacity 0.9s ease 0.62s; }
.is-ready .hero [data-intro] { opacity: 1; transform: none; transition: opacity 1s ease 1s, transform 1.2s var(--ease-out) 1s; }
.is-ready .hero__frame .media { clip-path: inset(0 0 0 0); transition: clip-path 1.3s var(--ease-in-out) 0.1s; }
.is-ready .hero__frame .media img { filter: blur(0) grayscale(1); transform: scale(1); transition: filter 1.6s var(--ease-out) 0.5s, transform 2.2s var(--ease-out) 0.2s; }
.is-ready .hero__frame .viewfinder__corner { opacity: 1; transform: none; transition: transform 1.4s var(--ease-out) 0.55s, opacity 0.6s ease 0.55s; }

/* =========================================================
   DARK SECTIONS (with "lights down" expansion)
   ========================================================= */
.section-dark { position: relative; color: var(--white); isolation: isolate; }
.section-dark__bg {
  position: absolute; inset: 0; z-index: -1; background: var(--ink);
}
.js .section-dark__bg[data-expand] {
  clip-path: inset(var(--inset-y, 0px) var(--inset-x, 0px) 0 var(--inset-x, 0px));
}

/* =========================================================
   SERVICES
   ========================================================= */
.services { padding: var(--section-y) var(--gutter); }
.services__head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap);
  row-gap: 28px; margin-bottom: clamp(56px, 8vw, 120px);
}
.services__head .eyebrow { grid-column: 1 / -1; }
.services__title { grid-column: 1 / span 9; font-size: var(--display-m); }
.services__title em { color: var(--champagne); }
.services__intro { grid-column: 10 / -1; align-self: end; color: var(--stone-dark); max-width: 26rem; }

.service-list { border-top: 1px solid var(--line-dark); }
.service {
  position: relative;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap);
  align-items: baseline;
  padding: clamp(22px, 2.6vw, 36px) 0;
  border-bottom: 1px solid var(--line-dark);
}
.service__tag {
  grid-column: 1 / span 2;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone-dark);
}
.service__name {
  grid-column: 3 / span 6;
  font-size: clamp(2rem, 1.1rem + 3.3vw, 4.4rem);
  line-height: 1; letter-spacing: -0.02em;
  transition: transform 0.7s var(--ease-out), color 0.5s ease;
}
.service__desc { grid-column: 9 / -1; color: var(--stone-dark); max-width: 25rem; font-size: 15px; transition: color 0.5s ease; }
.service__thumb { display: none; }

@media (hover: hover) and (pointer: fine) {
  .service-list:hover .service__name { color: rgba(255, 255, 255, 0.32); }
  .service-list .service:hover .service__name { color: var(--white); transform: translateX(clamp(12px, 1.6vw, 28px)); font-style: italic; }
  .service:hover .service__desc { color: var(--white); }
}

/* =========================================================
   SELECTED WORK
   ========================================================= */
.work { padding: var(--section-y) var(--gutter); }
.work__head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 24px;
  margin-bottom: clamp(64px, 9vw, 140px);
}
.work__head .eyebrow { grid-column: 1 / -1; }
.work__title { grid-column: 1 / span 7; font-size: var(--display-l); }
.work__note { grid-column: 9 / -1; align-self: end; color: var(--stone); max-width: 24rem; }

.work__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap);
  row-gap: clamp(72px, 9vw, 150px);
}
.project__link { display: block; }
.project__media img { transform: scale(1.12); }   /* room for parallax */
.project__caption {
  display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 14px; row-gap: 4px;
  margin-top: 18px;
}
.project__caption .tag { grid-row: 1 / span 2; align-self: start; margin-top: 8px; }
.project__title { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem); line-height: 1.1; }
.project__meta { font-size: 14px; color: var(--stone); grid-column: 2; }

.project--a { grid-column: 1 / span 6; }
.project--b { grid-column: 8 / span 5; margin-top: clamp(80px, 18vw, 300px); }
.project--c { grid-column: 3 / span 9; }
.project--d { grid-column: 1 / span 5; }
.project--e { grid-column: 7 / span 4; margin-top: clamp(60px, 12vw, 200px); }
.work__aside {
  grid-column: 7 / span 5; align-self: start;
  border-top: 1px solid var(--line); padding-top: 22px;
  display: grid; gap: 14px; justify-items: start;
}
.work__aside p { font-family: var(--serif); font-size: clamp(1.4rem, 1.1rem + 0.8vw, 1.9rem); line-height: 1.25; max-width: 26ch; }

/* =========================================================
   PHILOSOPHY
   ========================================================= */
.philosophy { padding: var(--section-y) var(--gutter); }
.philosophy__inner { max-width: 1400px; margin: 0 auto; }
.philosophy .eyebrow { margin-bottom: clamp(32px, 4vw, 56px); }
.philosophy__statement {
  font-size: clamp(2.1rem, 1.2rem + 3.7vw, 5.4rem);
  line-height: 1.04; letter-spacing: -0.02em;
  max-width: 22ch;
}
.philosophy__statement .w { transition: opacity 0.35s linear; }

.equation {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1.25fr; column-gap: clamp(12px, 2vw, 32px);
  align-items: start;
  margin-top: clamp(80px, 11vw, 170px);
  padding-top: 32px; border-top: 1px solid var(--line-dark);
}
.equation__term { display: grid; gap: 12px; }
.equation__word { font-family: var(--serif); font-size: clamp(1.7rem, 1.1rem + 1.6vw, 2.9rem); line-height: 1; letter-spacing: -0.01em; }
.equation__gloss { font-size: 14px; color: var(--stone-dark); max-width: 17rem; }
.equation__op { font-family: var(--serif); font-size: clamp(1.7rem, 1.1rem + 1.6vw, 2.9rem); line-height: 1; color: var(--champagne); font-weight: 300; }
.equation__result {
  margin-top: clamp(48px, 7vw, 100px);
  font-family: var(--serif); font-weight: 300; font-size: var(--display-l); line-height: 0.95; letter-spacing: -0.03em;
  color: var(--champagne);
  display: flex; gap: 0.3em; justify-content: flex-end; text-align: right;
}

/* =========================================================
   RESULTS
   ========================================================= */
.results {
  padding: var(--section-y) var(--gutter);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 56px;
  align-items: center;
}
.results__visual { grid-column: 1 / span 7; }
.results__caption { margin-top: calc(var(--vf-gap, 16px) + 16px); font-size: 13px; color: var(--stone); }
.results__copy { grid-column: 9 / -1; }
.results__title { font-size: clamp(2.6rem, 1.2rem + 3.4vw, 5.2rem); margin-top: 24px; }
.results__title em { font-style: italic; }
.results__lede { color: var(--stone); margin-top: 22px; max-width: 24rem; }

.tally { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); }
.tally__label { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); margin-bottom: 10px; }
.tally__before { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 18px; color: var(--stone); font-variant-numeric: tabular-nums; }
.tally__before li { text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: rgba(117, 114, 109, 0.55); }
.tally__after { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.tally__after li {
  font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 1.6rem + 2.6vw, 4.6rem); line-height: 1.05;
  letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums;
}

/* =========================================================
   PROCESS
   ========================================================= */
.process { padding: var(--section-y) var(--gutter); }
.process__head { display: grid; gap: 24px; margin-bottom: clamp(56px, 8vw, 110px); }
.process__title { font-size: var(--display-s); max-width: 16ch; line-height: 1.02; }
.process__title em { color: var(--champagne); }

.process__track { position: relative; }
.process__rail { position: absolute; left: 0; right: 0; top: clamp(40px, 5vw, 72px); height: 1px; background: var(--line-dark); }
.process__rail-fill { position: absolute; inset: 0; background: var(--champagne); transform-origin: left; transform: scaleX(var(--p, 0)); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--col-gap); }
.step { position: relative; padding-top: clamp(72px, 9vw, 130px); padding-right: 6%; }
.step__num { position: absolute; top: 0; left: 0; font-size: 13px; letter-spacing: 0.12em; color: var(--stone-dark); }
.step__name {
  display: inline-block;
  font-size: clamp(3rem, 1.4rem + 5vw, 7.2rem); letter-spacing: -0.03em; line-height: 0.9;
  transition: color 0.6s ease, font-style 0s;
}
.step__desc { margin-top: 24px; color: var(--stone-dark); max-width: 22rem; transition: color 0.6s ease, opacity 0.6s ease; }

.process__focus { display: none; }

/* Desktop: pinned sequence with a travelling viewfinder */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .js .process[data-process] { height: 260vh; padding: 0 var(--gutter); }
  .js .process__sticky {
    position: sticky; top: 0; height: 100vh; min-height: 640px;
    display: flex; flex-direction: column; justify-content: center;
  }
  .js .process__focus {
    display: block; position: absolute; top: clamp(72px, 9vw, 130px); left: 0;
    width: var(--fw, 300px); height: var(--fh, 120px);
    transform: translate(var(--fx, 0px), var(--fy, 0px));
    transition: transform 0.9s var(--ease-out), width 0.9s var(--ease-out), height 0.9s var(--ease-out);
    pointer-events: none;
  }
  .js .step .step__name { color: rgba(255, 255, 255, 0.22); }
  .js .step .step__desc { opacity: 0.35; margin-top: 40px; }
  .js .step.is-active .step__name { color: var(--white); font-style: italic; }
  .js .step.is-active .step__desc { opacity: 1; color: var(--white); }
}

/* =========================================================
   CLIENTS / TESTIMONIALS
   ========================================================= */
.clients { padding: var(--section-y) var(--gutter); }
.clients__head { display: grid; gap: 24px; margin-bottom: clamp(48px, 6vw, 90px); }
.clients__title { font-size: var(--display-l); }

.pullquote {
  max-width: 1200px;
  padding-bottom: clamp(56px, 7vw, 110px); margin-bottom: clamp(56px, 7vw, 110px);
  border-bottom: 1px solid var(--line);
}
.pullquote p {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(2rem, 1.2rem + 3vw, 4.4rem); line-height: 1.06; letter-spacing: -0.02em;
  text-indent: -0.4em;
}
.pullquote footer { margin-top: 28px; font-size: 14px; color: var(--stone); letter-spacing: 0.02em; }

.quotes { columns: 3 300px; column-gap: clamp(28px, 4vw, 64px); }
.quote {
  break-inside: avoid; display: block;
  padding: 0 0 clamp(40px, 4vw, 56px);
  margin-bottom: clamp(40px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}
.quote blockquote { position: relative; padding-top: 44px; }
.quote blockquote::before {
  content: "“"; position: absolute; top: -12px; left: -4px;
  font-family: var(--serif); font-size: 84px; line-height: 1; color: var(--champagne);
}
.quote blockquote p { font-size: 16px; line-height: 1.7; color: #2b2a28; }
.quote blockquote p + p { margin-top: 1em; }
.quote--short blockquote p { font-family: var(--serif); font-size: clamp(1.7rem, 1.3rem + 1vw, 2.3rem); line-height: 1.15; color: var(--ink); }
.quote[lang="fr"] blockquote p { font-family: var(--serif); font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.75rem); line-height: 1.3; color: var(--ink); }
.quote__who { display: flex; align-items: center; gap: 14px; margin-top: 26px; font-size: 13px; color: var(--stone); line-height: 1.45; }
.quote__who img { width: 52px; height: 52px; flex: none; border-radius: 50%; }
.quote__who strong { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }

/* =========================================================
   CTA
   ========================================================= */
.cta { padding: clamp(120px, 16vw, 240px) var(--gutter); }
.cta__inner {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 48px;
  align-items: end;
}
.cta__title { grid-column: 1 / span 9; font-size: clamp(3.2rem, 1.2rem + 7vw, 9.5rem); line-height: 0.9; letter-spacing: -0.035em; }
.cta__title em { color: var(--champagne); white-space: nowrap; }
.cta__side { grid-column: 10 / -1; display: grid; gap: 28px; justify-items: start; }
.cta__side p { color: var(--stone-dark); max-width: 22rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--ink); color: var(--white); padding: clamp(64px, 8vw, 110px) var(--gutter) 28px; border-top: 1px solid var(--line-dark); }
.footer__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 48px;
}
.footer__brand { grid-column: 1 / span 4; }
.footer__brand img { width: min(100%, 300px); height: auto; }
.footer__col--explore { grid-column: 5 / span 2; }
.footer__col--services { grid-column: 7 / span 3; }
.footer__col--contact { grid-column: 10 / -1; }
.footer__label { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone-dark); margin-bottom: 18px; }
.footer__col ul { display: grid; gap: 4px; }
.footer__col a, .footer__col button { display: inline-flex; align-items: center; min-height: 36px; font-size: 15px; color: rgba(255, 255, 255, 0.86); transition: color 0.3s ease; }
.footer__col a:hover { color: var(--champagne); }
.link-underline--light { color: var(--white); }
.footer__base {
  display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center;
  margin-top: clamp(64px, 8vw, 120px); padding-top: 22px; border-top: 1px solid var(--line-dark);
  font-size: 13px; color: var(--stone-dark);
}
.footer__top { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.footer__top:hover { color: var(--white); }

/* =========================================================
   CONTACT DIALOG
   ========================================================= */
.contact, .lightbox {
  padding: 0; border: 0; margin: 0; max-width: none; max-height: none;
  width: 100%; height: 100%; background: transparent; color: var(--ink);
}
.contact::backdrop { background: rgba(11, 11, 11, 0.55); }
.contact[open] { display: flex; justify-content: flex-end; }
.contact__panel {
  position: relative; width: min(680px, 100%); height: 100%; overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper);
  padding: clamp(72px, 8vw, 96px) clamp(20px, 5vw, 64px) 48px;
  animation: panel-in 0.7s var(--ease-out);
}
@keyframes panel-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.contact__close {
  position: absolute; top: 18px; right: clamp(12px, 3vw, 28px);
  width: 48px; height: 48px; display: grid; place-items: center;
}
.contact__close span { position: relative; width: 22px; height: 22px; }
.contact__close span::before, .contact__close span::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor;
}
.contact__close span::before { transform: rotate(45deg); }
.contact__close span::after { transform: rotate(-45deg); }
.contact__intro { display: grid; gap: 18px; margin-bottom: 40px; }
.contact__intro > p:last-child { color: var(--stone); }
.contact__title { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.8rem); line-height: 1; }

.form { display: grid; gap: 26px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: 14px; font-weight: 500; padding: 0; }
.field__opt { color: var(--stone); font-weight: 400; margin-left: 6px; font-size: 13px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid rgba(11, 11, 11, 0.35); border-radius: 0;
  padding: 10px 0; min-height: 46px;
  transition: border-color 0.3s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-bottom-color: #a1271b; box-shadow: 0 1px 0 0 #a1271b; }
.field__error { font-size: 13px; color: #a1271b; min-height: 0; }
.field__error:empty { display: none; }

.chips__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1px solid rgba(11, 11, 11, 0.3); font-size: 14px; cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.chip input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.chip span:hover { border-color: var(--ink); }

.form__submit[aria-busy="true"] { opacity: 0.7; pointer-events: none; }
.form__status { border-left: 2px solid var(--ink); padding: 4px 0 4px 16px; font-size: 15px; display: grid; gap: 12px; justify-items: start; }
.form__status[data-state="error"] { border-left-color: #a1271b; }
.form__status[data-state="success"] { border-left-color: var(--champagne); }
.form__status .link-underline { font-size: 15px; }

/* Lightbox */
.lightbox::backdrop { background: rgba(11, 11, 11, 0.97); }
.lightbox[open] { display: grid; place-items: center; color: var(--white); }
.lightbox__close { color: var(--white); z-index: 2; }
.lightbox__figure { display: grid; gap: 14px; justify-items: center; padding: 72px var(--gutter) 32px; max-height: 100%; }
.lightbox__figure img { max-width: min(1200px, 100%); max-height: calc(100vh - 160px); width: auto; height: auto; object-fit: contain; animation: lb-in 0.7s var(--ease-out); }
.lightbox__caption { font-size: 14px; color: var(--stone-dark); text-align: center; }
@keyframes lb-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }

/* =========================================================
   CURSOR (desktop, fine pointer only)
   ========================================================= */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .cursor {
    display: block; position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none;
    transform: translate3d(var(--cx, -200px), var(--cy, -200px), 0);
  }
  .cursor__frame {
    position: absolute; left: 0; top: 0;
    width: var(--cw, 0px); height: var(--ch, 0px);
    transform: translate(-50%, -50%);
    transition: width 0.55s var(--ease-out), height 0.55s var(--ease-out), opacity 0.3s ease;
    opacity: 0;
  }
  .cursor.is-active .cursor__frame { opacity: 1; }
  .cursor.is-view { --cw: 104px; --ch: 104px; }
  .cursor.is-preview { --cw: 220px; --ch: 275px; }
  .cursor__c { position: absolute; width: 14px; height: 14px; border: 0 solid var(--ink); }
  .cursor.on-dark .cursor__c { border-color: var(--champagne); }
  .cursor__c--tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
  .cursor__c--tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
  .cursor__c--bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
  .cursor__c--br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
  .cursor.is-view .cursor__c { border-color: var(--white); }
  .cursor__img { position: absolute; inset: 10px; overflow: hidden; clip-path: inset(100% 0 0 0); transition: clip-path 0.6s var(--ease-out); }
  .cursor__img img { width: 100%; height: 100%; object-fit: cover; }
  .cursor.is-preview .cursor__img { clip-path: inset(0 0 0 0); }
  .cursor__label {
    position: absolute; inset: 0; display: grid; place-items: center;
    font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--white);
    opacity: 0; transition: opacity 0.3s ease;
  }
  .cursor.is-view .cursor__label { opacity: 1; }
  [data-cursor="view"] { cursor: none; }
}

/* =========================================================
   SCROLL REVEALS
   ========================================================= */
.js [data-reveal]:not([data-reveal="lines"]):not([data-reveal="clip"]):not([data-reveal="frame"]) {
  opacity: 0; transform: translateY(28px);
  transition: opacity 1s ease, transform 1.2s var(--ease-out);
}
.js [data-reveal].is-in:not([data-reveal="lines"]):not([data-reveal="clip"]):not([data-reveal="frame"]) { opacity: 1; transform: none; }

.js [data-reveal="lines"] .line__inner { transform: translateY(105%); transition: transform 1.2s var(--ease-out); }
.js [data-reveal="lines"] .line:nth-child(2) .line__inner { transition-delay: 0.1s; }
.js [data-reveal="lines"].is-in .line__inner { transform: none; }

.js [data-reveal="clip"] { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease-in-out); }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0); }

.js [data-reveal="frame"] .viewfinder__corner { opacity: 0; transition: transform 1.2s var(--ease-out) 0.4s, opacity 0.6s ease 0.4s; }
.js [data-reveal="frame"] .viewfinder__corner--tl { transform: translate(-40px, -40px); }
.js [data-reveal="frame"] .viewfinder__corner--tr { transform: translate(40px, -40px); }
.js [data-reveal="frame"] .viewfinder__corner--bl { transform: translate(-40px, 40px); }
.js [data-reveal="frame"] .viewfinder__corner--br { transform: translate(40px, 40px); }
.js [data-reveal="frame"].is-in .viewfinder__corner { opacity: 1; transform: none; }

/* stagger rows inside lists */
.js .service[data-reveal] { transition-delay: calc(var(--i, 0) * 70ms); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .nav__links { gap: 22px; }
  .cta__title { grid-column: 1 / span 8; }
  .cta__side { grid-column: 9 / -1; }
}

@media (max-width: 1023px) {
  :root { --nav-h: 68px; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__logo { width: 104px; height: 49px; }

  .hero { grid-template-columns: 1fr; align-items: start; row-gap: 40px; min-height: auto; padding-bottom: 72px; }
  .hero__copy, .hero__visual { grid-column: 1; }
  .hero__copy { grid-row: 1; padding-top: 0; }
  .hero__visual { grid-row: 2; justify-self: stretch; width: auto; margin: 0 0 0 clamp(0px, 12vw, 120px); }
  .hero__media { --ratio: 4 / 3 !important; }
  .hero__media img { object-position: 50% 30%; }
  .hero__seen { font-size: 2.3em; }
  .hero__title .line--seen { padding-left: 14vw; }
  .hero__scroll { display: none; }

  .services__title, .services__intro, .work__title, .work__note { grid-column: 1 / -1; }
  .service { grid-template-columns: 1fr auto; row-gap: 10px; column-gap: 20px; align-items: start; }
  .service__tag { grid-column: 1; grid-row: 1; }
  .service__name { grid-column: 1; grid-row: 2; }
  .service__desc { grid-column: 1; grid-row: 3; font-size: 15px; }
  .service__thumb { display: block; grid-column: 2; grid-row: 1 / span 3; width: clamp(84px, 18vw, 150px); align-self: center; }
  .service__thumb img { filter: grayscale(1); }

  .work__grid { row-gap: 72px; }
  .project--a { grid-column: 1 / span 7; }
  .project--b { grid-column: 8 / -1; margin-top: 120px; }
  .project--c { grid-column: 1 / -1; }
  .project--d { grid-column: 1 / span 6; }
  .project--e { grid-column: 7 / -1; margin-top: 80px; }
  .work__aside { grid-column: 1 / -1; }

  .equation { grid-template-columns: 1fr; row-gap: 18px; }
  .equation__op { padding-left: 0; }
  .equation__result { justify-content: flex-start; text-align: left; }

  .results__visual, .results__copy { grid-column: 1 / -1; }

  .steps { grid-template-columns: 1fr; row-gap: 56px; }
  .process__rail { display: none; }
  .step { padding: 0 0 0 clamp(44px, 9vw, 80px); }
  .step__num { top: 0.9em; }

  .cta__title, .cta__side { grid-column: 1 / -1; }

  .footer__brand { grid-column: 1 / -1; }
  .footer__col--explore, .footer__col--services, .footer__col--contact { grid-column: span 4; }
}

@media (max-width: 680px) {
  .hero { padding-top: calc(var(--nav-h) + 20px); row-gap: 36px; }
  .hero__title { font-size: clamp(2.7rem, 12.4vw, 4rem); }
  .hero__seen { font-size: 2.9em; }
  .hero__title .line--seen { padding-left: 12vw; margin-top: 0.1em; }
  .hero__eyebrow { letter-spacing: 0.12em; font-size: 12px; }
  .hero__lede { margin-top: 22px; gap: 22px; }
  .hero__lede p { font-size: 1.0625rem; }
  .hero__visual { margin-left: 0; }
  .hero__actions .btn { width: 100%; justify-content: space-between; }

  .work__grid { grid-template-columns: 1fr; row-gap: 64px; }
  .project--a, .project--b, .project--c, .project--d, .project--e, .work__aside { grid-column: 1; margin-top: 0; }
  .project--b, .project--e { width: 84%; justify-self: end; }
  .project--d { width: 88%; }

  .tally__after li { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  .quotes { columns: 1; }

  .footer__col--explore, .footer__col--services, .footer__col--contact { grid-column: 1 / -1; }
  .footer__grid { row-gap: 36px; }
}

@media (max-width: 380px) {
  .hero__title { font-size: 2.55rem; }
  .btn { padding: 0 20px; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js .hero .line__inner, .js [data-reveal="lines"] .line__inner { transform: none; }
  .js .hero [data-intro], .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .js .hero__frame .media, .js [data-reveal="clip"] { clip-path: none !important; }
  .js .hero__frame .media img { filter: grayscale(1); transform: none; }
  .js .hero__frame .viewfinder__corner, .js [data-reveal="frame"] .viewfinder__corner { opacity: 1; transform: none; }
  .js .nav { opacity: 1; }
  .js .section-dark__bg[data-expand] { clip-path: none; }
  .project__media img { transform: none !important; }
  .hero__scroll span { animation: none; }
}
