/* ════════════════════════════════════════════════════════════
   Studio Barnes — V2 site styles
   Built strictly on the Studio Barnes design system tokens.
   Surfaces: --surface-page / --surface-section. Accent: --sb-orange.
   Type: Open Sans only. Hairlines 1px. Radii 8/16. Quiet color, loud scale.
   ════════════════════════════════════════════════════════════ */

:root {
  --pad: clamp(20px, 5vw, 40px);
  --hero-glow: 0.7;
  --nav-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; background: var(--sb-black, #000000); }
body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-sans);
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--sb-orange); color: var(--sb-black); }

.wrap { max-width: var(--content-max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.surface { background: var(--surface-section); }

/* ── type ── */
.display-1 {
  font-size: clamp(40px, 7.4vw, 104px);
  font-weight: var(--weight-bold);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text-heading);
  margin: 0;
  text-wrap: balance;
}
.display-2 {
  font-size: clamp(32px, 4.8vw, 68px);
  font-weight: var(--weight-bold);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  margin: 0;
  text-wrap: balance;
}
.h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  color: var(--text-heading);
  margin: 0;
}
.lede {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: var(--leading-body);
  color: var(--text-body);
  max-width: 58ch;
  margin: 0;
  text-wrap: pretty;
}
.small { font-size: var(--text-small); color: var(--text-muted); }
.dot { color: var(--sb-orange); }
.nowrap { white-space: nowrap; }

/* word-split scaffolding */
.wmask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.2em; margin-bottom: -0.2em; }
.wmask .w { display: inline-block; will-change: transform; }
.wmask--free { overflow: visible; }

/* pinned scene */
.pin-sec { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 24px) 0 48px; }
.pin-sec > .wrap { width: 100%; }
.lines--pin .ln { font-size: clamp(19px, 2.5vw, 36px); }
.lines--pin .display-2 { margin-bottom: var(--space-6); }
.lede strong { color: var(--text-heading); font-weight: var(--weight-semibold); }
.ovh { overflow: hidden; }

/* line-scrub blocks */
.lines .ln {
  display: block;
  font-size: clamp(22px, 2.7vw, 42px);
  font-weight: var(--weight-bold);
  line-height: 1.3;
  color: var(--sb-grey-700);
  text-wrap: balance;
}
.lines .ln--quiet {
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: var(--weight-regular);
  line-height: var(--leading-body);
  margin-top: var(--space-5);
}
.lines .ln--gap { margin-top: var(--space-5); }

/* strike-through list */
.strike {
  display: block;
  position: relative;
  width: fit-content;
  font-size: clamp(26px, 3.4vw, 52px);
  font-weight: var(--weight-bold);
  line-height: 1.25;
  color: var(--text-heading);
}
.strike__bar {
  position: absolute;
  left: -0.1em; right: -0.1em; top: 54%;
  height: 0.075em;
  background: var(--sb-orange);
  transform: scaleX(0);
  transform-origin: left center;
}
@media (prefers-reduced-motion: reduce) { .strike__bar { transform: scaleX(1); } }

/* outgrown list — plain, no strikethrough */
.outgrown-line {
  display: block;
  width: fit-content;
  font-size: clamp(17px, 1.7vw, 23px);
  font-weight: var(--weight-light);
  line-height: 1.45;
  color: var(--sb-white);
}
body.t-compact .outgrown-line { font-size: clamp(17px, 1.7vw, 23px); font-weight: var(--weight-light); }

/* ── compact type treatment (per-page via body.t-compact) ──
   Lighter, airier take guided by the reference layout: semibold display,
   medium section headings, generous negative space, everything left-justified. */
body.t-compact .display-1 { font-size: clamp(34px, 4.8vw, 68px); font-weight: var(--weight-semibold); letter-spacing: -0.015em; line-height: 1.12; }
body.t-compact .display-2 { font-size: clamp(24px, 2.9vw, 40px); font-weight: var(--weight-medium); letter-spacing: -0.008em; line-height: 1.22; }
body.t-compact .lede { font-size: clamp(16px, 1.2vw, 18px); }
body.t-compact .lede strong { font-weight: var(--weight-semibold); }
body.t-compact .lines .ln { font-size: clamp(18px, 1.9vw, 27px); font-weight: var(--weight-medium); line-height: 1.5; }
body.t-compact .lines .ln + .ln { margin-top: var(--space-2); }
body.t-compact .lines .ln--quiet { font-size: clamp(15px, 1.1vw, 17px); font-weight: var(--weight-regular); }
body.t-compact .lines--pin .ln { font-size: clamp(17px, 1.8vw, 25px); }
body.t-compact .panel__title { font-size: clamp(20px, 2.2vw, 30px); font-weight: var(--weight-medium); }
body.t-compact .strike { font-size: clamp(20px, 2.3vw, 33px); font-weight: var(--weight-medium); }
body.t-compact .band__inner { font-size: clamp(36px, 5.6vw, 78px); font-weight: var(--weight-medium); }
body.t-compact .h3 { font-size: clamp(18px, 1.7vw, 23px); font-weight: var(--weight-medium); }

/* breathing room */
body.t-compact .section { padding: clamp(96px, 12vw, 168px) 0; }
body.t-compact .sec-head { margin-bottom: clamp(56px, 7vw, 96px); gap: var(--space-5); }
body.t-compact .hero__content { gap: clamp(24px, 3vw, 38px); }
body.t-compact .cards-3, body.t-compact .t-grid { gap: var(--space-6); }
body.t-compact .cta { padding: clamp(104px, 13vw, 190px) 0; }
body.t-compact .band { padding: clamp(56px, 8vw, 110px) 0; }

/* full-viewport sections (Home): every scene fills the screen, content centered */
body.t-compact .section,
body.t-compact .clients,
body.t-compact .cta {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
body.t-compact .section { padding: clamp(48px, 6vw, 88px) 0; }
body.t-compact .cta { padding: clamp(48px, 6vw, 88px) 0; }
body.t-compact .section > .wrap, body.t-compact .cta > .wrap { width: 100%; }
body.t-compact .work { padding-bottom: clamp(48px, 6vw, 88px); }

/* two-row layouts: heading row, content row */
body.t-compact .work__head { flex-direction: column; align-items: flex-start; gap: var(--space-6); }
body.t-compact .panel { grid-template-columns: 88px minmax(0, 1fr); row-gap: var(--space-5); padding: clamp(48px, 6vw, 84px) 0; }
body.t-compact .panel__body { grid-column: 2; max-width: 58ch; }

/* ── loader + page wipe ── */
.loader {
  position: fixed; inset: 0; z-index: 9600;
  background: var(--sb-black);
  display: grid; place-items: center;
}
.loader img { height: clamp(40px, 6vw, 64px); }
.wipe { position: fixed; inset: 0; z-index: 9500; pointer-events: none; }
.wipe i {
  position: absolute; inset: 0; display: block;
  transform: translateY(101%);
}
.wipe i:first-child { background: var(--sb-orange); }
.wipe i:last-child { background: var(--sb-black); }

.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: var(--sb-orange); transform: scaleX(0); transform-origin: left center;
  z-index: 9400;
}
body[data-progress="off"] .progress { display: none; }

/* ── nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  background: transparent;
  transition: background var(--duration-base) var(--ease-out);
}
.nav.is-scrolled { background: var(--sb-black); border-bottom: 1px solid var(--sb-grey-800); }
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; align-items: center; gap: var(--space-6); }
.nav__links > a {
  font-size: var(--text-small); font-weight: var(--weight-semibold);
  color: var(--sb-grey-300);
  transition: color var(--duration-fast) var(--ease-out);
}
.nav__links > a:hover { color: var(--sb-white); }
.nav__links > a.is-active { color: var(--sb-white); }
.nav__links > a.is-active::after { content: " ✱"; color: var(--sb-orange); font-size: 0.8em; }

.burger {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.burger span {
  display: block; width: 26px; height: 2px; background: var(--sb-white);
  transition: transform var(--duration-base) var(--ease-out), opacity var(--duration-base) var(--ease-out);
}
.burger.is-open span:first-child { transform: translateY(4.5px) rotate(45deg); }
.burger.is-open span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 990;
  background: var(--sb-black);
  display: flex; flex-direction: column; justify-content: center; gap: var(--space-2);
  padding: 0 var(--pad);
  visibility: hidden; opacity: 0;
}
.menu__link {
  display: flex; align-items: baseline; gap: var(--space-4);
  font-size: clamp(36px, 9vw, 56px);
  font-weight: var(--weight-bold);
  color: var(--sb-white);
  line-height: 1.3;
}
.menu__link em { font-style: normal; font-size: 14px; font-weight: var(--weight-semibold); color: var(--sb-orange); }
.menu__meta {
  margin-top: var(--space-7);
  display: flex; flex-direction: column; gap: var(--space-3);
  font-size: var(--text-small); color: var(--text-muted);
}

/* ── hero ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 40px) 0 96px;
  overflow: hidden;
}
.hero--sub { min-height: 72svh; padding-bottom: 64px; }
.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: var(--gradient-ember);
  opacity: calc(var(--hero-glow) * 0.38);
}
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}

/* ── tree hero variant (About): full-bleed image, scrim, leaf canvas ── */
.hero--tree .hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero--tree .hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 48%; }
.hero--tree .hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.66) 24%, rgba(0,0,0,0.22) 48%, rgba(0,0,0,0) 70%),
    linear-gradient(0deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0) 32%),
    linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 22%);
}
#leaves-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
#water-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero--tree .hero__clean, .hero--tree .hero__foot { position: relative; z-index: 2; }
.hero--tree .hero__display { text-shadow: 0 2px 34px rgba(0,0,0,0.6); }
.hero--tree .hero__lede { text-shadow: 0 1px 22px rgba(0,0,0,0.7); }
@media (max-width: 760px) {
  .hero--tree .hero__bg img { object-position: 56% 46%; }
  .hero--tree .hero__scrim {
    background:
      linear-gradient(0deg, rgba(0,0,0,0.86) 0%, rgba(0,0,0,0.2) 46%, rgba(0,0,0,0.55) 100%);
  }
}
.hero__content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start; gap: clamp(20px, 2.6vw, 32px);
  max-width: 880px;
}
.hero__foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-5);
  padding: 0 var(--pad) var(--space-5);
  font-size: var(--text-caption); color: var(--text-muted);
}
.hero__scroll { display: inline-flex; align-items: center; gap: 10px; }
.hero__scroll i {
  display: block; width: 36px; height: 1px; background: var(--sb-orange);
  transform-origin: left center;
  animation: scrollPulse 2.4s var(--ease-out) infinite;
}
@keyframes scrollPulse { 0% { transform: scaleX(0); } 55% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero__scroll i { animation: none; } }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }

.btn-row [data-ds] a, .btn-row [data-ds] button, .nav [data-ds] a, .nav [data-ds] button { white-space: nowrap; }

/* ── hero redesign (reference-guided): top meta row + giant bottom display ── */
.hero__layout {
  position: relative; z-index: 2;
  flex: 1; width: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: clamp(48px, 7vw, 88px);
}
.hero__top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: clamp(28px, 5vw, 72px);
  padding-top: 10px;
}
.hero__intro { max-width: 400px; display: flex; flex-direction: column; gap: var(--space-5); }
.hero__intro .lede { font-size: 16px; }
.hero__headline { display: flex; flex-direction: column; gap: var(--space-4); margin: 0; padding-bottom: clamp(28px, 4vw, 48px); }
.hero__line {
  display: block;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: var(--weight-medium);
  color: var(--sb-grey-300);
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.hero__big {
  display: block;
  font-size: clamp(48px, 10.4vw, 142px);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.04em;
  line-height: 1.04;
  color: var(--sb-white);
  white-space: nowrap;
}
.chmask { display: inline-block; overflow: hidden; vertical-align: top; }
.chmask .ch { display: inline-block; will-change: transform; }

/* ── client strip ── */
.clients {
  border-top: 1px solid var(--sb-grey-800);
  border-bottom: 1px solid var(--sb-grey-800);
  padding: clamp(28px, 4vw, 46px) 0;
  overflow: hidden;
}
.clients__row {
  display: flex; align-items: center;
  gap: clamp(28px, 4.5vw, 64px);
  white-space: nowrap;
  padding-left: var(--pad);
  color: var(--sb-grey-500);
  font-weight: var(--weight-semibold);
  font-size: clamp(15px, 1.3vw, 19px);
  will-change: transform;
}
.clients__row i { color: var(--sb-orange); font-style: normal; font-size: 0.75em; }

/* ── numbered offer grid ── */
.num-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.num-item {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-4);
}
.num-item__num {
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: var(--weight-light);
  color: var(--sb-orange);
  line-height: 1;
}
.num-item p { margin: 0; font-size: var(--text-small); color: var(--text-body); line-height: var(--leading-body); max-width: 38ch; text-wrap: pretty; }

/* ── CTA thumbnail fan ── */
.cta__fan { display: flex; align-items: flex-end; margin-bottom: clamp(28px, 4vw, 44px); }
.fan__card {
  width: clamp(80px, 8.5vw, 124px);
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
  transform: rotate(var(--r, 0deg));
  margin-right: -14px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.65);
}
.fan__card image-slot { width: 100%; height: 100%; }

/* ── Swiss hero: meta hairline row, huge display, base row ── */
.hero__clean {
  position: relative; z-index: 2;
  width: 100%;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: clamp(22px, 3vw, 36px);
}
.hero__clean .hero__display { max-width: 11.5em; }
.hero__lede { max-width: 46ch; }
.hero__clean .btn-row { margin-top: var(--space-2); }
.hero__meta {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: var(--space-3);
}
.hero__meta-item { display: flex; flex-direction: column; gap: 2px; font-size: 13px; font-weight: var(--weight-semibold); color: var(--sb-grey-300); }
.hero__meta-item span:last-child { color: var(--sb-grey-500); font-weight: var(--weight-regular); }
.hero__display {
  font-size: clamp(38px, 6.2vw, 92px);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--sb-white);
  margin: 0;
  max-width: 13.5em;
  text-wrap: balance;
}
.rule { display: block; height: 1px; background: rgba(255, 255, 255, 0.16); transform-origin: left center; width: 100%; }
.hero__base { display: flex; justify-content: space-between; align-items: flex-end; gap: clamp(28px, 5vw, 72px); }
.hero__base > [data-ds="Eyebrow"] { max-width: 300px; }

/* ── duo cards (struggles) ── */
.meta-label { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: var(--weight-semibold); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--sb-grey-400); margin: 0 0 clamp(32px, 4vw, 56px); }
.meta-label::before { content: "✱"; color: var(--sb-orange); font-size: 15px; }
.duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.duo-card {
  border-radius: var(--radius-card);
  padding: clamp(28px, 3.5vw, 56px);
  min-height: clamp(340px, 36vw, 500px);
  display: flex; flex-direction: column; gap: var(--space-4);
  background: var(--surface-card);
  border: 1px solid rgba(255, 73, 0, 0.45);
  box-shadow: var(--glow-accent);
}
.duo-card__top { display: flex; justify-content: space-between; align-items: flex-start; }
.duo-card__glyph { color: var(--sb-orange); font-size: clamp(26px, 2.6vw, 38px); line-height: 1; }
.duo-card__num { font-size: 13px; font-weight: var(--weight-semibold); color: var(--sb-grey-500); }
.duo-card h3 { margin: auto 0 0; font-size: clamp(22px, 2.4vw, 36px); font-weight: var(--weight-semibold); letter-spacing: -0.015em; color: var(--sb-white); line-height: 1.18; text-wrap: balance; }
.duo-card p { margin: 0; font-size: var(--text-small); color: var(--text-body); line-height: var(--leading-body); max-width: 48ch; text-wrap: pretty; }

/* single-row quad layout (Struggles) */
.duo-grid--quad { grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.duo-grid--quad .duo-card {
  min-height: clamp(300px, 24vw, 380px);
  padding: clamp(22px, 1.8vw, 32px);
  gap: var(--space-3);
}
.duo-grid--quad .duo-card h3 { font-size: clamp(18px, 1.45vw, 24px); margin: 0; min-height: calc(1.18em * 2); display: flex; align-items: flex-start; }
.duo-grid--quad .duo-card p { font-size: 14px; }
.duo-grid--quad .duo-card > p:first-of-type { margin-top: 0; }
@media (max-width: 1180px) and (min-width: 961px) {
  .duo-grid--quad .duo-card h3 { min-height: calc(1.18em * 3); }
  .duo-grid--quad .duo-card p:last-child { display: none; }
}

/* ── scroll band ── */
.band { overflow: hidden; padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--sb-grey-800); border-bottom: 1px solid var(--sb-grey-800); }
.band__inner {
  white-space: nowrap;
  font-size: clamp(44px, 8vw, 120px);
  font-weight: var(--weight-bold);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--sb-grey-800);
  will-change: transform;
}
.band__inner b { font-weight: inherit; color: var(--text-heading); }
.band__inner em { font-style: normal; color: var(--sb-orange); }

/* image-slot: let aspect-ratio control height (component defaults to 160px),
   and theme the empty state for dark surfaces */
image-slot { height: auto; color: rgba(255, 255, 255, 0.55); background: var(--sb-grey-900); }

/* ── sec head ── */
.sec-head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-5); margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head--center { align-items: center; text-align: center; }

/* ── struggles editorial rows ── */
.panels { display: flex; flex-direction: column; }
.panel {
  display: grid;
  grid-template-columns: 72px 1.1fr 1fr;
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(36px, 5vw, 64px) 0;
  border-top: 1px solid var(--border-subtle);
  align-items: start;
}
.panel:last-child { border-bottom: 1px solid var(--border-subtle); }
.panel__num { font-size: var(--text-small); font-weight: var(--weight-semibold); color: var(--text-muted); padding-top: 0.5em; }
.panel__title {
  font-size: clamp(26px, 3.2vw, 46px);
  font-weight: var(--weight-bold);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text-heading);
  margin: 0;
  text-wrap: balance;
}
.panel__title .mark { color: var(--sb-orange); }
.panel__body { display: flex; flex-direction: column; gap: var(--space-3); }
.panel__body p { margin: 0; font-size: var(--text-base); line-height: var(--leading-body); color: var(--text-body); text-wrap: pretty; }

/* ── circle motif decor ── */
.circle-decor {
  position: absolute; pointer-events: none; border-radius: 50%;
  background: var(--sb-orange);
  width: clamp(280px, 38vw, 640px); aspect-ratio: 1;
  will-change: transform;
}
.circle-decor--half { clip-path: inset(0 0 0 50%); }

/* ── layered parallax imagery ── */
.plx-frame {
  position: relative; overflow: hidden;
  border-radius: var(--radius-card);
  border: 1px solid var(--sb-grey-800);
  background: var(--surface-card);
}
.plx-frame > img {
  position: absolute; left: 0; top: -9%;
  width: 100%; height: 118%;
  object-fit: cover;
  will-change: transform;
}
.outgrown-split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 80px); align-items: center; position: relative; z-index: 2; }
.outgrown-split__text { display: flex; flex-direction: column; }
.outgrown-media { aspect-ratio: 4 / 3; }

.img-break {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
}
.img-break__bg { position: absolute; left: 0; right: 0; top: -9%; bottom: -9%; will-change: transform; }
.img-break__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 36% center; }
.img-break__content { position: relative; z-index: 2; width: 100%; display: flex; justify-content: flex-end; }
.img-break__content .lines { max-width: 460px; will-change: transform; }
@media (max-width: 760px) {
  .img-break { align-items: flex-end; padding-bottom: clamp(56px, 12vw, 96px); }
  .img-break__content { justify-content: flex-start; }
}

/* ── joined outgrown → next-chapter scene (full-bleed beam image, animated glow) ── */
.outgrown-scene {
  position: relative;
  overflow: hidden;
  min-height: clamp(640px, 100vh, 940px);
  display: flex;
  padding: clamp(72px, 10vw, 130px) 0;
}
.outgrown-scene__bg { position: absolute; inset: -8% 0; will-change: transform; }
.outgrown-scene__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%;
}
.outgrown-scene__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.62) 30%, rgba(0,0,0,0) 56%),
    linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 34%),
    linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 22%);
}
.outgrown-scene__glow {
  position: absolute; left: 49.5%; top: 34%;
  width: clamp(420px, 52vw, 860px); aspect-ratio: 1 / 1.7;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255,93,20,0.92), rgba(255,73,0,0.34) 44%, transparent 74%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: beamPulse 3.4s ease-in-out infinite;
}
@keyframes beamPulse {
  0%, 100% { opacity: 0.32; transform: translate(-50%, -50%) scale(0.86); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}
@media (prefers-reduced-motion: reduce) {
  .outgrown-scene__glow { animation: none; opacity: 0.7; }
}
.outgrown-scene__content {
  position: relative; z-index: 2;
  width: 100%;
  display: flex; align-items: center;
}
.outgrown-scene__inner {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: clamp(22px, 3vw, 34px);
  max-width: min(560px, 54vw);
}
.outgrown-lines { display: flex; flex-direction: column; gap: 4px; }
.outgrown-rule { display: block; width: 56px; height: 1px; background: var(--sb-orange); opacity: 0.9; transform-origin: left center; }
.outgrown-scene__next { will-change: transform; }
.outgrown-scene > .wrap { max-width: var(--content-max); margin: 0 auto; }
.outgrown-scene .display-2 {
  font-size: clamp(38px, 5vw, 76px);
  font-weight: var(--weight-light);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
body.t-compact .outgrown-scene .display-2 {
  font-size: clamp(38px, 5vw, 76px);
  font-weight: var(--weight-light);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.outgrown-scene__next .ln { font-weight: var(--weight-light); }
body.t-compact .outgrown-scene__next .ln { font-weight: var(--weight-light); font-size: clamp(18px, 1.9vw, 27px); }

/* ── STORY STANDARD ──────────────────────────────────────────────
   Locked-in editorial standard: a Light display heading over a
   single column of flowing paragraph copy, last paragraph in white.
   First defined on the About story section; promoted here so any
   page can use it via .story-head + .story-copy. ── */
.story-head {
  font-size: clamp(30px, 4.2vw, 60px);
  font-weight: var(--weight-light);
  letter-spacing: -0.018em;
  line-height: 1.1;
  color: var(--sb-white);
  margin: 0;
  text-wrap: balance;
}
.story-copy {
  display: flex; flex-direction: column; gap: var(--space-4);
  max-width: 60ch;
}
.story-copy p {
  margin: 0;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: var(--leading-body);
  color: var(--text-body);
  text-wrap: pretty;
}
.story-copy p.story-copy__lead { color: var(--sb-white); }
.story-copy--onscene p { text-shadow: 0 1px 18px rgba(0, 0, 0, 0.6); }

@media (max-width: 980px) {
  .outgrown-scene__inner { max-width: none; }
}
@media (max-width: 760px) {
  .outgrown-scene__bg img { object-position: 62% 42%; }
  .outgrown-scene__scrim {
    background:
      linear-gradient(180deg, rgba(0,0,0,0.84) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.55) 72%, rgba(0,0,0,0.88) 100%);
  }
}

/* ── offer cards grid ── */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); align-items: stretch; }
.cards-3 > div { display: grid; }

/* ── work strip ── */
.work { overflow: hidden; }
.work__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-5); margin-bottom: clamp(36px, 4vw, 56px); }
.work__track {
  display: flex; gap: clamp(16px, 2.5vw, 32px);
  padding-left: max(var(--pad), calc((100vw - var(--content-max)) / 2 + var(--pad)));
  padding-right: var(--pad);
  will-change: transform;
}
.work__panel {
  flex: 0 0 auto;
  width: min(68vw, 760px);
  display: flex; flex-direction: column; gap: var(--space-4);
}
.work__panel { color: inherit; text-decoration: none; }
.work__media {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--sb-grey-800);
  background: var(--surface-card);
}
.work__media image-slot { width: 100%; aspect-ratio: 16 / 10; }
.work__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; will-change: transform; }
/* clickable cue: orange "↗" badge revealed on hover (animated via GSAP) */
.work__badge {
  position: absolute; top: clamp(14px, 1.4vw, 20px); right: clamp(14px, 1.4vw, 20px);
  width: clamp(40px, 3vw, 52px); height: clamp(40px, 3vw, 52px);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--sb-orange); color: var(--sb-black);
  font-size: clamp(18px, 1.5vw, 22px); line-height: 1; font-weight: var(--weight-semibold);
  pointer-events: none;
}
/* touch devices: no hover, so give a press response and keep the badge visible */
@media (hover: none) {
  .work__panel:active { transform: scale(0.985); }
  .work__media img { transition: transform var(--duration-base) var(--ease-out); }
}
.work__meta { display: flex; align-items: baseline; gap: var(--space-4); }
.work__meta em { font-style: normal; font-size: var(--text-caption); font-weight: var(--weight-semibold); color: var(--sb-orange); }
.work__meta .h3 { flex: 1; }
.work__meta span { font-size: var(--text-caption); color: var(--text-muted); text-align: right; }

/* ── testimonials ── */
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); align-items: stretch; }
.t-grid > div { display: grid; }
/* left-align everything inside testimonial cards (DS centers the name/role by default) */
.t-grid figure, .t-grid figcaption, .t-grid blockquote { text-align: left !important; }
.t-grid figure > div:first-child { justify-content: flex-start !important; }

/* ── CTA band + footer ── */
.cta {
  position: relative;
  background: var(--gradient-ember);
  padding: clamp(80px, 11vw, 150px) 0;
  overflow: hidden;
}
.cta .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(20px, 2.6vw, 30px); }
.cta .lede { color: rgba(255, 255, 255, 0.88); }

.footer { padding: clamp(48px, 6vw, 72px) 0 0; }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-6);
  padding-bottom: clamp(40px, 5vw, 64px);
}
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); font-size: var(--text-small); color: var(--text-muted); }
.footer__col img { height: 26px; }
.footer__label { font-size: var(--text-caption); font-weight: var(--weight-semibold); text-transform: uppercase; letter-spacing: var(--tracking-eyebrow); color: var(--sb-grey-500); margin-bottom: var(--space-1); }
.footer__col a { color: var(--sb-grey-300); transition: color var(--duration-fast) var(--ease-out); }
.footer__col a:hover { color: var(--sb-white); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  border-top: 1px solid var(--sb-grey-800);
  padding: var(--space-5) 0;
  font-size: var(--text-caption); color: var(--text-muted);
}
.footer__bottom img { height: 20px; }

/* ── stats (About) ── */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.stat { border-top: 1px solid var(--border-subtle); padding-top: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.stat__value {
  font-size: clamp(56px, 7vw, 110px);
  font-weight: var(--weight-bold);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-heading);
}
.stat__value .dot, .stat__value sup { color: var(--sb-orange); }
.stat__label { font-size: var(--text-base); font-weight: var(--weight-semibold); color: var(--text-heading); }
.stat__sub { font-size: var(--text-small); color: var(--text-muted); max-width: 30ch; text-wrap: pretty; }

.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.split-2 .sticky-col { position: sticky; top: calc(var(--nav-h) + 24px); }
.portrait image-slot { width: 100%; aspect-ratio: 4 / 5; }

/* ── projects grid page ── */
.proj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3.5vw, 48px); }
.proj-card { display: flex; flex-direction: column; gap: var(--space-4); }
.proj-card:nth-child(even) { transform: translateY(clamp(0px, 4vw, 64px)); }
.proj-card__media { position: relative; border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--sb-grey-800); }
.proj-card__media image-slot { width: 100%; aspect-ratio: 4 / 3; transition: transform 0.6s var(--ease-out); }
.proj-card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform 0.6s var(--ease-out); }
.proj-card:hover .proj-card__media img { transform: scale(1.03); }
.proj-card:hover .proj-card__media image-slot { transform: scale(1.03); }
.proj-card__meta { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); }
.proj-card__meta span { font-size: var(--text-caption); color: var(--text-muted); text-align: right; }
.proj-card__arrow { color: var(--sb-orange); font-weight: var(--weight-bold); }

/* ── contact ── */
.reach { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.reach__card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: var(--space-6) var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-3);
  transition: border-color var(--duration-base) var(--ease-out);
}
.reach__card:hover { border-color: var(--sb-grey-500); }
.reach__card--accent { border-color: rgba(255, 73, 0, 0.45); box-shadow: var(--glow-accent); }
.reach__label { font-size: var(--text-caption); font-weight: var(--weight-semibold); text-transform: uppercase; letter-spacing: var(--tracking-eyebrow); color: var(--text-muted); }
.reach__value { font-size: clamp(19px, 1.8vw, 24px); font-weight: var(--weight-bold); color: var(--text-heading); line-height: 1.3; overflow-wrap: anywhere; }
a.reach__value:hover { color: var(--sb-orange); }
.reach__note { font-size: var(--text-small); color: var(--text-muted); margin: 0; }

.form-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: clamp(28px, 4vw, 56px);
  display: flex; flex-direction: column; gap: var(--space-5);
}
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-size: var(--text-small); font-weight: var(--weight-semibold); color: var(--text-heading); }
.field input, .field textarea {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--sb-white);
  background: var(--sb-black);
  border: 1px solid var(--sb-grey-700);
  border-radius: var(--radius-button);
  padding: 14px 16px;
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-out);
  width: 100%;
}
.field input:focus, .field textarea:focus { border-color: var(--sb-orange); }
.field textarea { resize: vertical; min-height: 110px; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip {
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
  color: var(--sb-grey-300);
  border: 1px solid var(--sb-grey-700);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  transition: border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}
.chip:hover, .chip.is-on { border-color: var(--sb-orange); color: var(--sb-white); }
.form-success { display: none; flex-direction: column; gap: var(--space-3); }
.form-card.is-sent form { display: none; }
.form-card.is-sent .form-success { display: flex; }

/* ── case study ── */
.snapshot { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); padding: var(--space-6) 0; }
.snapshot div { display: flex; flex-direction: column; gap: var(--space-1); }
.snapshot dt { font-size: var(--text-caption); font-weight: var(--weight-semibold); text-transform: uppercase; letter-spacing: var(--tracking-eyebrow); color: var(--text-muted); }
.snapshot dd { margin: 0; font-size: var(--text-base); font-weight: var(--weight-semibold); color: var(--text-heading); }

.case-hero-media { border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--sb-grey-800); }
.case-hero-media image-slot { width: 100%; aspect-ratio: 16 / 9; }

.story-row {
  display: grid; grid-template-columns: 280px 1fr; gap: clamp(20px, 3vw, 48px);
  padding: clamp(36px, 5vw, 56px) 0;
  border-top: 1px solid var(--border-subtle);
}
.story-row h2 { font-size: var(--text-h3); font-weight: var(--weight-bold); margin: 0; }
.story-row h2 .mark { color: var(--sb-orange); }
.story-row div p { margin: 0 0 var(--space-3); font-size: clamp(17px, 1.5vw, 20px); line-height: var(--leading-body); color: var(--text-body); max-width: 62ch; text-wrap: pretty; }
.story-row div p:last-child { margin-bottom: 0; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
.gallery .g-item { border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--sb-grey-800); }
.gallery .g-item image-slot { width: 100%; aspect-ratio: 4 / 3; }
.gallery .g-item--wide { grid-column: span 2; }
.gallery .g-item--wide image-slot { aspect-ratio: 21 / 9; }

.reflection {
  font-size: clamp(26px, 3.4vw, 50px);
  font-weight: var(--weight-bold);
  line-height: 1.2;
  color: var(--text-heading);
  max-width: 22ch;
  margin: 0;
  text-wrap: balance;
}

.case-nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border-subtle); }
.case-nav a {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: clamp(28px, 4vw, 48px) 0;
}
.case-nav a + a { text-align: right; align-items: flex-end; border-left: 1px solid var(--border-subtle); }
.case-nav em { font-style: normal; font-size: var(--text-caption); font-weight: var(--weight-semibold); text-transform: uppercase; letter-spacing: var(--tracking-eyebrow); color: var(--text-muted); }
.case-nav strong { font-size: clamp(20px, 2.4vw, 32px); color: var(--text-heading); transition: color var(--duration-fast) var(--ease-out); }
.case-nav a:hover strong { color: var(--sb-orange); }

/* ── reveal defaults (JS sets initial states; keep visible without JS) ── */
[data-reveal] { will-change: transform, opacity; }

/* ── responsive ── */
@media (max-width: 960px) {
  .duo-grid { grid-template-columns: 1fr; }
  .duo-grid--quad { grid-template-columns: 1fr 1fr; }
  .duo-card { min-height: 0; gap: var(--space-5); }
  .duo-card h3 { margin-top: var(--space-6); }
  .duo-grid--quad .duo-card { gap: var(--space-3); }
  .duo-grid--quad .duo-card h3 { margin-top: 0; min-height: calc(1.18em * 2); }
  .outgrown-split { grid-template-columns: 1fr; }
  .outgrown-media { max-width: 560px; width: 100%; }
  .hero__meta { grid-template-columns: 1fr 1fr; }
  .hero__meta-item:last-child { display: none; }
  .num-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .panel { grid-template-columns: 48px 1fr; }
  .panel__body { grid-column: 2; }
  .cards-3, .t-grid, .reach, .stats { grid-template-columns: 1fr; }
  .stats { gap: var(--space-6); }
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .split-2 { grid-template-columns: 1fr; }
  .split-2 .sticky-col { position: static; }
  .proj-grid { grid-template-columns: 1fr; }
  .proj-card:nth-child(even) { transform: none; }
  .snapshot { grid-template-columns: 1fr 1fr; }
  .story-row { grid-template-columns: 1fr; gap: var(--space-3); }
  .gallery { grid-template-columns: 1fr; }
  .gallery .g-item--wide { grid-column: auto; }
  .gallery .g-item--wide image-slot { aspect-ratio: 4 / 3; }
}

@media (max-width: 560px) {
  .duo-grid--quad { grid-template-columns: 1fr; }
  .duo-grid--quad .duo-card { min-height: 0; }
}
@media (max-width: 760px) {
  .clients__row { white-space: normal; flex-wrap: wrap; gap: var(--space-3) var(--space-5); }
  .hero__base { flex-direction: column; align-items: flex-start; gap: var(--space-5); }
  .hero__display { font-size: clamp(34px, 9vw, 56px); }
  .hero__meta { grid-template-columns: 1fr; gap: var(--space-3); }
  .hero__meta-item:last-child { display: flex; }
  .hero__top { flex-direction: column; }
  .hero__intro { max-width: none; }
  .hero__big { white-space: normal; font-size: clamp(44px, 13.5vw, 80px); }
  .nav__links { display: none; }
  .burger { display: flex; }
  .work__track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-3);
  }
  .work__panel { width: 84vw; scroll-snap-align: start; }
  .case-nav { grid-template-columns: 1fr; }
  .case-nav a + a { border-left: none; border-top: 1px solid var(--border-subtle); text-align: left; align-items: flex-start; }
  .hero__foot { justify-content: flex-start; }
  .hero__foot > span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wipe, .loader { display: none; }
  body.is-loading { overflow: auto; }
}
body[data-herobg="solid"] .hero { background: #000 !important; }
body[data-herobg="solid"] .hero > #hero-canvas { display: none; }
