/* ============================================================
   CRIT STUDIO — Minimal / Swiss-editorial design system
   Warm paper. One ink. One ember point. Geist only.
   Silence and spacing are the luxury. No imagery, no boxes,
   hairlines and air do the work.
   ============================================================ */

:root {
  --bg:        #F6F4EF;   /* warm paper */
  --bg-2:      #EFEBE2;   /* faint deeper paper (rare) */
  --ink:       #16130E;   /* warm near-black */
  --ink-2:     #4A443B;   /* secondary text */
  --muted:     #8A8276;   /* meta / tertiary */
  --muted-2:   #A9A294;   /* faint */
  --line:      rgba(22, 19, 14, 0.12);
  --line-2:    rgba(22, 19, 14, 0.22);
  --ember:     #FF5A2C;   /* the single critical point */

  /* inverted (one deliberate dark moment) */
  --ink-bg:    #16130E;
  --ink-bg-2:  #1E1A14;

  --maxw: 1240px;
  --gutter: clamp(24px, 5vw, 72px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;

  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: 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(--ember); color: #fff; }

:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; border-radius: 1px; }
:focus:not(:focus-visible) { outline: none; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--bg); padding: 12px 18px; font-size: 13px;
}
.skip:focus { left: 0; }

/* ---------- the ember point — brand signature ---------- */
.dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--ember); flex: none;
}
.dot--breathe { animation: breathe 4.6s var(--ease) infinite; }
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(255,90,44,0.28); }
  50% { transform: scale(1.14); opacity: 0.82; box-shadow: 0 0 0 9px rgba(255,90,44,0); }
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: 1440px; }
.wrap--narrow { max-width: 880px; }

.section { padding-block: clamp(80px, 14vh, 200px); }
.section--tight { padding-block: clamp(56px, 9vh, 120px); }
.hr { height: 1px; border: 0; background: var(--line); }

/* inverted section */
.invert { background: var(--ink-bg); color: var(--bg); }
.invert .body, .invert .lead { color: rgba(246,244,239,0.7); }
.invert .eyebrow { color: rgba(246,244,239,0.5); }
.invert .hr { background: rgba(246,244,239,0.16); }

/* ---------- typography ---------- */
h1, .h1 { font-weight: 400; font-size: clamp(2.3rem, 5.6vw, 4.6rem); line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; }
h2, .h2 { font-weight: 400; font-size: clamp(1.7rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
h3, .h3 { font-weight: 500; font-size: clamp(1.2rem, 1.8vw, 1.5rem); line-height: 1.2; letter-spacing: -0.01em; }
.display { font-weight: 400; letter-spacing: -0.03em; line-height: 1.04; }

.statement {
  font-weight: 400; font-size: clamp(1.6rem, 3.4vw, 3rem);
  line-height: 1.14; letter-spacing: -0.02em; text-wrap: balance;
}

.eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow .dot { width: 6px; height: 6px; }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: 40ch; }
.body { font-size: 1.0625rem; line-height: 1.66; color: var(--ink-2); max-width: 62ch; }
.small { font-size: 0.875rem; line-height: 1.6; color: var(--muted); }
.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; letter-spacing: -0.01em; }
.ink-accent { color: var(--ember); }
.dim { color: var(--muted); }

/* ---------- links & buttons (restrained) ---------- */
.link {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.98rem; color: var(--ink);
  padding-bottom: 3px; border-bottom: 1px solid var(--line-2);
  transition: border-color 0.4s var(--ease), color 0.3s var(--ease);
}
.link .arr { transition: transform 0.45s var(--ease); }
.link:hover { border-color: var(--ink); }
.link:hover .arr { transform: translateX(5px); }
.link--accent:hover { color: var(--ember); border-color: var(--ember); }
.invert .link { color: var(--bg); border-color: rgba(246,244,239,0.3); }
.invert .link:hover { border-color: var(--bg); }

.btn {
  display: inline-flex; align-items: center; gap: 11px;
  font-size: 0.95rem; font-weight: 500; letter-spacing: -0.01em;
  padding: 14px 24px; border-radius: 2px;
  border: 1px solid var(--ink); color: var(--ink); background: transparent;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}
.btn .arr { transition: transform 0.45s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: #000; }
.btn--ghost:hover { background: rgba(22,19,14,0.04); }
.btn--lg { padding: 16px 28px; font-size: 1rem; }
.invert .btn { border-color: var(--bg); color: var(--bg); }
.invert .btn--primary { background: var(--bg); color: var(--ink); }
.invert .btn--primary:hover { background: #fff; }

/* ---------- navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), height 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(246,244,239,0.82); backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px); border-bottom-color: var(--line);
}
.nav__inner { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 500; font-size: 1.06rem; letter-spacing: 0.01em; color: var(--ink); }
.brand .dot { width: 7px; height: 7px; }
.brand__logo { height: 21px; width: auto; display: block; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: 0.95rem; color: var(--ink-2); transition: color 0.3s var(--ease); position: relative; }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 1px; background: var(--ember); }
.nav__cta { display: flex; align-items: center; gap: 20px; }

.burger { display: none; width: 42px; height: 42px; position: relative; z-index: 120; border: 1px solid var(--line-2); border-radius: 2px; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform 0.5s var(--ease), opacity 0.3s var(--ease); }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { bottom: 16px; }
.burger.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 110; background: rgba(246,244,239,0.96);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gutter);
  opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease); }
.menu.is-open { opacity: 1; visibility: visible; }
.menu a { font-size: clamp(2rem, 8vw, 3.4rem); font-weight: 400; letter-spacing: -0.03em; color: var(--ink);
  padding: 9px 0; opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), color 0.3s var(--ease); }
.menu a:hover { color: var(--ember); }
.menu.is-open a { opacity: 1; transform: none; }
.menu.is-open a:nth-child(1){transition-delay:.06s}.menu.is-open a:nth-child(2){transition-delay:.1s}
.menu.is-open a:nth-child(3){transition-delay:.14s}.menu.is-open a:nth-child(4){transition-delay:.18s}
.menu.is-open a:nth-child(5){transition-delay:.22s}.menu.is-open a:nth-child(6){transition-delay:.26s}
.menu__foot { position: absolute; bottom: 34px; left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 0.85rem; }

/* ---------- hero (tall sticky, scroll narrative) ---------- */
.hero { position: relative; height: 380vh; }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; }
#lattice { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(55% 60% at 30% 50%, rgba(246,244,239,0.82) 0%, rgba(246,244,239,0.3) 48%, transparent 74%),
    linear-gradient(to bottom, rgba(246,244,239,0.55) 0%, transparent 22%, transparent 80%, rgba(246,244,239,0.55) 100%);
}
.hero__stage {
  position: absolute; inset: 0; z-index: 2;
  display: grid; align-content: center; padding-inline: var(--gutter); padding-top: var(--nav-h);
  pointer-events: none;
}
.hero__stage .wrap { width: 100%; display: grid; }
.beat {
  grid-area: 1 / 1; align-self: center; max-width: min(40rem, 92%);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); will-change: opacity, transform;
}
.beat .eyebrow { margin-bottom: clamp(20px, 3vw, 30px); display: inline-flex; }
.hero__line { font-weight: 400; font-size: clamp(1.8rem, 3.8vw, 3rem); line-height: 1.09; letter-spacing: -0.025em; }
.hero__sub { margin-top: clamp(20px, 2.6vw, 30px); max-width: 38ch; color: var(--ink-2); font-size: clamp(1rem, 1.25vw, 1.16rem); line-height: 1.5; }
.hero__cta { margin-top: clamp(26px, 3.4vw, 40px); display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.beat .statement .dim { color: var(--muted); }
.beat .statement .ink-accent { color: var(--ember); }
.hero__values { display: grid; gap: clamp(16px, 2vw, 22px); }
.hero__value { display: flex; align-items: baseline; gap: 18px; }
.hero__value .n { font-family: var(--mono); font-size: 0.78rem; color: var(--muted-2); min-width: 26px; }
.hero__value .t { font-weight: 400; font-size: clamp(1.4rem, 2.8vw, 2.1rem); line-height: 1.12; letter-spacing: -0.02em; }
.hero__value .t small { display: block; font-family: var(--font); font-size: 0.92rem; color: var(--muted); margin-top: 7px; letter-spacing: 0; }
.hero__value .t .ink-accent { color: var(--ember); }
.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 9px; color: var(--muted-2);
  transition: opacity 0.6s var(--ease);
}
.scroll-cue .ln { width: 1px; height: 38px; background: linear-gradient(var(--muted), transparent); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { opacity: .2; transform: scaleY(.4); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } 100% { opacity: .2; transform: scaleY(.4); transform-origin: bottom; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue .ln { animation: none; opacity: .5; } }

/* hero content renders immediately (best for LCP and robust against any
   animation throttling). Motion lives in the breathing point and scroll reveals. */
.fx { opacity: 1; }

/* ---------- mobile hero + vertical rhythm ---------- */
@media (max-width: 760px) {
  /* stronger central wash so beat text stays crisp over the lattice + ember glow */
  .hero__scrim {
    background:
      radial-gradient(82% 54% at 42% 50%, rgba(246,244,239,0.92) 0%, rgba(246,244,239,0.42) 54%, transparent 82%),
      linear-gradient(to bottom, rgba(246,244,239,0.62) 0%, transparent 24%, transparent 76%, rgba(246,244,239,0.62) 100%);
  }
  .beat { max-width: 100%; }
  .hero__sub { max-width: 34ch; }
  /* tighten section padding so blocks don't drift far apart on small screens */
  .section { padding-block: clamp(54px, 8vh, 92px); }
  .section--tight { padding-block: clamp(42px, 6vh, 70px); }
  /* inner-page hero: trim the oversized top gap on phones */
  .phero { padding-top: calc(var(--nav-h) + clamp(28px, 6vh, 64px)); padding-bottom: clamp(28px, 5vh, 56px); }
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 0.95s var(--ease), transform 0.95s var(--ease); }
.reveal[data-delay="1"].is-in{transition-delay:.08s}.reveal[data-delay="2"].is-in{transition-delay:.16s}
.reveal[data-delay="3"].is-in{transition-delay:.24s}.reveal[data-delay="4"].is-in{transition-delay:.32s}

/* word-rise text reveal (JS splits [data-split] into .w/.wi) */
.sr .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; }
.sr .wi { display: inline-block; transform: translateY(112%); transition: transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 0.04s); }
.sr.is-in .wi { transform: none; }
[data-count] { font-variant-numeric: tabular-nums; }

/* ---------- portfolio (image cards, Awwwards hover) ---------- */
.pf { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 44px); }
.pf__item { display: block; }
.pf__media {
  position: relative; overflow: hidden; border-radius: 8px;
  aspect-ratio: 3 / 2; background: var(--bg-2);
  border: 1px solid var(--line);
}
.pf__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02); transition: transform 1.2s var(--ease), filter 0.6s var(--ease);
  filter: saturate(0.98);
}
.pf__item:hover .pf__media img { transform: scale(1.07); filter: saturate(1.04); }
.pf__cursor {
  position: absolute; top: 0; left: 0; z-index: 3; pointer-events: none;
  transform: translate(-50%, -50%) scale(0.4); opacity: 0;
  background: var(--ink); color: var(--bg);
  font-size: 0.78rem; letter-spacing: 0.02em; padding: 11px 18px; border-radius: 100px;
  white-space: nowrap; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  display: inline-flex; align-items: center; gap: 8px;
}
.pf__media.is-hover .pf__cursor { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.pf__cursor .dot { width: 6px; height: 6px; }
.pf__body { padding-top: 20px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.pf__lead { display: flex; align-items: baseline; gap: 16px; }
.pf__n { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.pf__t { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 400; letter-spacing: -0.02em; }
.pf__tags { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-top: 8px; }
.pf__d { color: var(--ink-2); font-size: 1rem; line-height: 1.5; max-width: 40ch; margin-top: 12px; }
.pf__go { color: var(--muted); font-size: 0.9rem; white-space: nowrap; transition: color 0.3s var(--ease); }
.pf__item:hover .pf__go { color: var(--ember); }
.pf__item--wide { grid-column: 1 / -1; }
.pf__item--wide .pf__media { aspect-ratio: 21 / 9; }
@media (max-width: 760px) {
  .pf { grid-template-columns: 1fr; }
  .pf__item--wide .pf__media { aspect-ratio: 3 / 2; }
  .pf__cursor { display: none; }
}

/* ---------- portfolio gallery: full-bleed, scale-on-scroll (F) + 3D-tilt (E) ---------- */
.gal { display: grid; gap: clamp(56px, 8vw, 112px); }
.gal__item { display: block; perspective: 1400px; }
.gal__media {
  position: relative; overflow: hidden; border-radius: 10px; border: 1px solid var(--line);
  aspect-ratio: 16 / 9; background: var(--bg-2);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
  transform-style: preserve-3d; will-change: transform;
}
.gal__item:hover .gal__media { box-shadow: 0 30px 70px -30px rgba(22,19,14,0.22); }
.gal__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); will-change: transform; }
.gal__media.is-hover .pf__cursor { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.gal__body { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-top: clamp(20px, 2.4vw, 32px); }
.gal__lead { display: flex; align-items: baseline; gap: 18px; }
.gal__n { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.gal__t { font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 400; letter-spacing: -0.02em; }
.gal__tags { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-top: 10px; }
.gal__go { color: var(--muted); white-space: nowrap; font-size: 0.95rem; transition: color 0.3s var(--ease); }
.gal__item:hover .gal__go { color: var(--ember); }
@media (max-width: 760px) { .gal__media { aspect-ratio: 4 / 3; } .gal__media .pf__cursor { display: none; } }
@media (prefers-reduced-motion: reduce) { .gal__media img { animation: none !important; transform: scale(1.02); } .gal__media { transform: none !important; } }

/* ---------- horizontal pin-scroll gallery (Awwwards style) ---------- */
.hscroll { position: relative; }
.hscroll__sticky { position: sticky; top: 0; height: 100vh; min-height: 100dvh; overflow: hidden; display: flex; align-items: center; }
.hscroll__track { display: flex; align-items: center; gap: clamp(28px, 4vw, 72px); padding-inline: var(--gutter); will-change: transform; }
.hscroll__intro { flex: 0 0 auto; width: min(36vw, 440px); }
.hscroll__intro .eyebrow { display: inline-flex; }
.hscroll__intro h2 { margin-top: clamp(18px, 2vw, 26px); }
.hpanel { flex: 0 0 auto; width: min(58vw, 680px); }
.hpanel .gal__media { aspect-ratio: 3 / 2; }
.hpanel .gal__t { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
@media (max-width: 860px) {
  .hscroll { height: auto !important; }
  .hscroll__sticky { position: static; height: auto; min-height: 0; overflow: visible; display: block; }
  .hscroll__track { flex-direction: column; gap: clamp(44px, 9vw, 68px); transform: none !important; padding-inline: 0; }
  .hscroll__intro, .hpanel { width: 100%; }
  .hpanel .gal__media { aspect-ratio: 4 / 3; }
}

/* case-study media (device image on inner pages) */
.case-media { position: relative; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--bg-2); }
.case-media img { width: 100%; height: 100%; object-fit: cover; }
.case-media--tall { aspect-ratio: 4 / 5; }

/* ---------- section header ---------- */
.shead .eyebrow { margin-bottom: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 5vw, 80px); }
.grid-2--head { grid-template-columns: 0.82fr 1.18fr; align-items: start; }
.mt-s{margin-top:14px}.mt-m{margin-top:26px}.mt-l{margin-top:clamp(34px,4vw,56px)}

/* ---------- thesis ---------- */
.thesis__statement { font-weight: 400; font-size: clamp(1.7rem, 3.6vw, 2.9rem); line-height: 1.2; letter-spacing: -0.02em; max-width: 20ch; }
.thesis__statement .dim { color: var(--muted); }
.thesis__body { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.7; max-width: 52ch; }
.thesis__kicker { font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 400; letter-spacing: -0.02em; }

/* ---------- proof (hairline row, airy) ---------- */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof__cell { padding: clamp(28px, 4vw, 52px) clamp(16px, 2.2vw, 32px); border-left: 1px solid var(--line); }
.proof__cell:first-child { border-left: 0; padding-left: 0; }
.proof__cell:last-child { padding-right: 0; }
.proof__n { font-family: var(--mono); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.02em; line-height: 1; }
.proof__n .ink-accent { color: var(--ember); }
.proof__l { margin-top: 16px; font-size: 0.92rem; line-height: 1.5; color: var(--muted); max-width: 22ch; }

/* ---------- numbered list (steps / how we work) ---------- */
.steps { border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 64px minmax(0, 0.8fr) minmax(0, 1.3fr); gap: clamp(14px, 3vw, 44px);
  align-items: baseline; padding: clamp(26px, 4vw, 44px) 0; border-bottom: 1px solid var(--line);
  transition: padding-left 0.5s var(--ease); }
.step:hover { padding-left: 10px; }
.step__n { font-family: var(--mono); font-size: 0.85rem; color: var(--ember); }
.step__t { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 500; letter-spacing: -0.015em; }
.step__d { color: var(--ink-2); font-size: 1rem; line-height: 1.6; }

/* ---------- how we work: horizontal process flow ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(22px, 2.6vw, 48px); border-top: 1px solid var(--line); padding-top: clamp(30px, 3.4vw, 48px); }
.flow__step { position: relative; }
.flow__n { font-family: var(--mono); font-size: 0.8rem; color: var(--ember); display: flex; align-items: center; gap: 12px; }
.flow__n::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.flow__t { font-size: clamp(1.15rem, 1.7vw, 1.5rem); font-weight: 500; letter-spacing: -0.01em; margin-top: clamp(18px, 2vw, 26px); }
.flow__d { color: var(--ink-2); font-size: 0.96rem; line-height: 1.55; margin-top: 12px; }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr 1fr; gap: 34px 28px; } }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } }

/* ---------- how we work: connected process, ember travels the line ---------- */
.proc { position: relative; }
.proc__rail { position: relative; height: 12px; margin-bottom: clamp(28px, 3.4vw, 46px); }
.proc__rail-base { position: absolute; top: 50%; left: 12.5%; right: 12.5%; height: 1px; background: var(--line); transform: translateY(-50%); }
.proc__rail-fill { position: absolute; top: 50%; left: 12.5%; width: 0; height: 1px; background: var(--ember); transform: translateY(-50%); }
.proc.is-in .proc__rail-fill { width: 75%; transition: width 1.5s var(--ease); }
.proc__rail-fill::after { content: ""; position: absolute; right: 0; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--ember); transform: translate(50%, -50%); }
.proc__node { position: absolute; top: 50%; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--line-2); transform: translate(-50%, -50%); transition: background 0.4s var(--ease), border-color 0.4s var(--ease); }
.proc.is-in .proc__node { background: var(--ember); border-color: var(--ember); }
.proc.is-in .proc__node:nth-child(3) { transition-delay: 0s; }
.proc.is-in .proc__node:nth-child(4) { transition-delay: 0.5s; }
.proc.is-in .proc__node:nth-child(5) { transition-delay: 1s; }
.proc.is-in .proc__node:nth-child(6) { transition-delay: 1.5s; }
.proc__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(22px, 2.6vw, 48px); }
.proc__step { text-align: center; opacity: 0; transform: translateY(16px); }
.proc.is-in .proc__step { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.proc.is-in .proc__step:nth-child(1) { transition-delay: 0.1s; }
.proc.is-in .proc__step:nth-child(2) { transition-delay: 0.35s; }
.proc.is-in .proc__step:nth-child(3) { transition-delay: 0.6s; }
.proc.is-in .proc__step:nth-child(4) { transition-delay: 0.85s; }
.proc__num { font-family: var(--mono); font-size: 0.78rem; color: var(--muted-2); letter-spacing: 0.06em; }
.proc__t { font-size: clamp(1.2rem, 1.8vw, 1.55rem); font-weight: 500; letter-spacing: -0.015em; margin-top: 12px; }
.proc__d { color: var(--ink-2); font-size: 0.96rem; line-height: 1.55; margin-top: 12px; max-width: 30ch; margin-inline: auto; }
@media (max-width: 860px) {
  .proc__rail { display: none; }
  .proc__steps { grid-template-columns: 1fr 1fr; gap: 40px 28px; text-align: left; }
  .proc__step { opacity: 1 !important; transform: none !important; }
  .proc__d { margin-inline: 0; }
}
@media (max-width: 520px) { .proc__steps { grid-template-columns: 1fr; } }

/* ---------- what we do: 3-column trio (hairline dividers) ---------- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.trio__col { padding: clamp(30px, 3.2vw, 48px) clamp(20px, 2vw, 34px); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: clamp(280px, 30vw, 340px); }
.trio__col:first-child { border-left: 0; padding-left: 0; }
.trio__col:last-child { padding-right: 0; }
.trio__step { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-2); }
.trio__name { font-size: clamp(1.6rem, 2.4vw, 2.2rem); font-weight: 400; letter-spacing: -0.02em; margin-top: 18px; }
.trio__name .ink-accent { color: var(--ember); }
.trio__meta { font-family: var(--mono); font-size: 0.8rem; color: var(--ember); margin-top: 12px; }
.trio__d { color: var(--ink-2); font-size: 0.98rem; line-height: 1.56; margin-top: 20px; }
.trio__go { margin-top: auto; padding-top: 26px; }
@media (max-width: 760px) { .trio { grid-template-columns: 1fr; } .trio__col { border-left: 0; padding-left: 0; padding-right: 0; border-top: 1px solid var(--line); min-height: auto; } .trio__col:first-child { border-top: 0; padding-top: 28px; } }

/* ---------- who it's for: large directory ---------- */
.dir { border-top: 1px solid var(--line); }
.dir__item { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(18px, 3vw, 44px); align-items: center; padding: clamp(28px, 3.6vw, 52px) 0; border-bottom: 1px solid var(--line); transition: padding-left 0.5s var(--ease); }
.dir__item:hover { padding-left: 16px; }
.dir__n { font-family: var(--mono); font-size: 0.85rem; color: var(--muted-2); align-self: start; padding-top: 0.6em; }
.dir__t { font-size: clamp(1.7rem, 3.4vw, 3rem); font-weight: 400; letter-spacing: -0.025em; line-height: 1.04; }
.dir__d { display: block; color: var(--muted); font-size: 0.98rem; margin-top: 12px; max-width: 52ch; }
.dir__go { color: var(--muted); white-space: nowrap; transition: color 0.3s var(--ease); }
.dir__item:hover .dir__go { color: var(--ember); }
@media (max-width: 680px) { .dir__item { grid-template-columns: 1fr; gap: 8px; } .dir__go { justify-self: start; } }

/* ---------- offers (hairline list, not boxes) ---------- */
.offers { border-top: 1px solid var(--line); }
.offer { display: grid; grid-template-columns: minmax(0,0.9fr) minmax(0,1.5fr) auto; gap: clamp(16px,3vw,48px);
  align-items: baseline; padding: clamp(28px,4vw,46px) 0; border-bottom: 1px solid var(--line);
  transition: padding-left 0.5s var(--ease); }
.offer:hover { padding-left: 10px; }
.offer__name { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 400; letter-spacing: -0.02em; }
.offer__name .ink-accent { color: var(--ember); }
.offer__meta { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); margin-top: 10px; }
.offer__d { color: var(--ink-2); font-size: 1rem; line-height: 1.6; }
.offer__go { color: var(--muted); white-space: nowrap; transition: color 0.3s var(--ease); }
.offer:hover .offer__go { color: var(--ember); }

/* ---------- verticals / generic hairline rows ---------- */
.rows { border-top: 1px solid var(--line); }
.row-item { display: grid; grid-template-columns: 0.5fr 1fr auto; gap: clamp(16px,4vw,56px); align-items: center;
  padding: clamp(26px,4vw,42px) 0; border-bottom: 1px solid var(--line); transition: padding-left 0.5s var(--ease); }
.row-item:hover { padding-left: 12px; }
.row-item__t { font-size: clamp(1.3rem,2.2vw,1.8rem); font-weight: 400; letter-spacing: -0.015em; }
.row-item__d { color: var(--muted); font-size: 1rem; line-height: 1.55; max-width: 46ch; }
.row-item__go { color: var(--muted); font-size: 0.9rem; white-space: nowrap; transition: color 0.3s var(--ease); }
.row-item:hover .row-item__go { color: var(--ember); }

/* ---------- work (typographic, no imagery) ---------- */
.work-list { border-top: 1px solid var(--line); }
.work-row { display: grid; grid-template-columns: 56px 1fr 1.2fr auto; gap: clamp(14px,3vw,44px); align-items: baseline;
  padding: clamp(30px,4.5vw,52px) 0; border-bottom: 1px solid var(--line); transition: padding-left 0.5s var(--ease); }
.work-row:hover { padding-left: 12px; }
.work-row__n { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); }
.work-row__t { font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-weight: 400; letter-spacing: -0.02em; }
.work-row__d { color: var(--ink-2); font-size: 1rem; line-height: 1.55; }
.work-row__tags { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-top: 12px; }
.work-row__go { color: var(--muted); white-space: nowrap; transition: color 0.3s var(--ease); }
.work-row:hover .work-row__go { color: var(--ember); }

/* ---------- belief / quiet quote ---------- */
.quote { font-weight: 400; font-size: clamp(1.6rem, 3.2vw, 2.7rem); line-height: 1.2; letter-spacing: -0.02em; max-width: 24ch; }

/* ---------- final CTA ---------- */
.cta-final h2 { max-width: 16ch; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: clamp(56px, 8vh, 100px); }
.invert.foot { border-top-color: rgba(246,244,239,0.14); }
.foot__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.foot__brand { font-size: 1.6rem; font-weight: 500; display: inline-flex; align-items: center; gap: 10px; }
.foot__brand .dot { width: 8px; height: 8px; }
.foot__logo { height: 30px; width: auto; display: block; }
.foot__tag { color: var(--muted); margin-top: 16px; max-width: 32ch; font-size: 0.95rem; }
.foot__col h4 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 18px; font-weight: 400; }
.foot__col a { display: block; color: var(--ink-2); padding: 7px 0; font-size: 0.95rem; transition: color 0.3s var(--ease); }
.foot__col a:hover { color: var(--ember); }
.invert .foot__col a, .invert .foot__tag { color: rgba(246,244,239,0.62); }
.invert .foot__col a:hover { color: var(--ember); }
.foot__bottom { margin-top: clamp(44px,7vw,76px); padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 0.85rem; }
.invert .foot__bottom { border-top-color: rgba(246,244,239,0.14); }

/* ---------- inner page hero ---------- */
.phero { padding-top: calc(var(--nav-h) + clamp(60px, 12vh, 150px)); padding-bottom: clamp(36px, 6vh, 80px); }
.phero .eyebrow { margin-bottom: 26px; }
.phero h1 { max-width: 18ch; }
.phero .lead { margin-top: 28px; max-width: 52ch; }

/* services detail */
.svc { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(24px,4vw,64px); padding: clamp(40px,5vw,68px) 0; border-top: 1px solid var(--line); align-items: start; }
.svc:first-of-type { border-top: 0; padding-top: 0; }
.svc__name { font-size: clamp(1.7rem,3vw,2.5rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; }
.svc__name .ink-accent { color: var(--ember); }
.svc__meta { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); margin-top: 16px; }
.svc__price { font-family: var(--mono); font-size: clamp(1.3rem,2.2vw,1.8rem); margin-top: 22px; letter-spacing: -0.01em; }
.svc__price small { display: block; font-family: var(--font); font-size: 0.8rem; color: var(--muted); margin-top: 6px; }
.svc__one { font-size: clamp(1.1rem,1.6vw,1.3rem); line-height: 1.4; }
.svc__d { color: var(--ink-2); line-height: 1.66; margin-top: 18px; max-width: 60ch; }
.svc__list { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.svc__list li { position: relative; padding-left: 24px; color: var(--ink-2); line-height: 1.5; }
.svc__list li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); }
.svc__why { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; line-height: 1.6; max-width: 58ch; }
@media (max-width: 760px) { .svc { grid-template-columns: 1fr; gap: 18px; } }

/* who verticals (detailed) */
.wvert { padding: clamp(44px,6vw,88px) 0; border-top: 1px solid var(--line); }
.wvert:first-of-type { border-top: 0; padding-top: 0; }
.wvert__grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(24px,4vw,64px); align-items: start; }
.wvert__n { font-family: var(--mono); color: var(--ember); font-size: 0.85rem; }
.wvert__h { font-size: clamp(1.6rem,3vw,2.4rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1.06; margin-top: 14px; }
.wvert__sub { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px; }
@media (max-width: 760px) { .wvert__grid { grid-template-columns: 1fr; gap: 20px; } }

/* case study prose */
.prose { max-width: 64ch; }
.prose h3 { margin-top: clamp(36px,5vw,60px); margin-bottom: 14px; }
.prose h3:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.72; margin-bottom: 18px; }
.prose ul { list-style: none; margin: 18px 0; }
.prose li { position: relative; padding-left: 26px; color: var(--ink-2); line-height: 1.6; margin-bottom: 12px; }
.prose li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); }
.prose blockquote { font-size: clamp(1.3rem,2.2vw,1.7rem); line-height: 1.3; letter-spacing: -0.015em; margin: clamp(30px,4vw,50px) 0; padding-left: 24px; border-left: 1px solid var(--ember); }
.case-next { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: clamp(28px,4vw,44px) 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.tags { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.fact { border-top: 1px solid var(--line); }
.fact__row { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.fact__k { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.fact__v { font-size: 1rem; text-align: right; }
.fact__v.mono.ink-accent { color: var(--ember); }

/* contact */
.contact-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.contact-row:first-child { border-top: 1px solid var(--line); }
.contact-row__k { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.contact-row__v { font-size: 1.05rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav__links, .nav__cta .btn, .nav__cta .link { display: none; }
  .burger { display: block; }
  .proof { grid-template-columns: 1fr 1fr; }
  .proof__cell:nth-child(odd) { border-left: 0; padding-left: 0; }
  .proof__cell:nth-child(1), .proof__cell:nth-child(2) { border-bottom: 1px solid var(--line); }
  .grid-2, .grid-2--head { grid-template-columns: 1fr; }
  .step { grid-template-columns: 40px 1fr; }
  .step__d { grid-column: 2; }
  .offer { grid-template-columns: 1fr; gap: 10px; }
  .offer__go { justify-self: start; }
  .row-item { grid-template-columns: 1fr; gap: 10px; }
  .row-item__go { justify-self: start; }
  .work-row { grid-template-columns: 1fr; gap: 10px; }
  .work-row__go { justify-self: start; }
  .foot__top { grid-template-columns: 1fr 1fr; }
  .foot__brand-col { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .proof { grid-template-columns: 1fr; }
  .proof__cell { border-left: 0 !important; padding-left: 0 !important; border-bottom: 1px solid var(--line); }
  .proof__cell:last-child { border-bottom: 0; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .fx { opacity: 1 !important; transform: none !important; }
  .dot--breathe { animation: none; }
}
