/* KIN SQUARED — brand system
   ink #101014 · bone #F2F2EE · paper #F5F4EF · chartreuse #B7FF3C (dark bg)
   deep green #7AC70C (light bg) · grey #8A8A85
   Type: Space Grotesk (display) · Inter (body) · Space Mono (data) */

:root {
  --ink: #101014;
  --ink2: #18181e;
  --ink3: #222229;
  --bone: #f2f2ee;
  --paper: #f5f4ef;
  --acc: #b7ff3c;
  --acc-deep: #6faf0a;
  --grey: #8a8a85;
  --grey-dark: #5c5c58;
  --disp: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", -apple-system, system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --max: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--disp); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.15rem; }
.eyebrow {
  font-family: var(--disp);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 9px; height: 9px; background: var(--acc-deep); flex: none; }
.on-ink .eyebrow::before { background: var(--acc); }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--grey-dark); max-width: 34em; }
.on-ink .lead { color: var(--grey); }
.mono { font-family: var(--mono); }

/* ---------- sections ---------- */
section { padding: 96px 0; }
.on-ink { background: var(--ink); color: var(--bone); }
.on-paper { background: var(--paper); }
.on-bone { background: var(--bone); }

.divider-x {
  text-align: center;
  font-family: var(--disp);
  color: var(--acc-deep);
  font-size: 1.4rem;
  padding: 8px 0;
  background: var(--paper);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: #101014;
  border-bottom: 1px solid var(--ink3);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--bone); }
.brand span { font-family: var(--disp); font-weight: 500; letter-spacing: 0.14em; font-size: 0.95rem; }
.nav-links { display: flex; gap: 28px; align-items: center; list-style: none; }
.nav-links a { color: var(--grey); text-decoration: none; font-size: 0.92rem; transition: color 0.15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--bone); }
.nav-toggle { display: none; background: none; border: 1px solid var(--ink3); color: var(--bone); padding: 8px 12px; font-family: var(--disp); cursor: pointer; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--disp);
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 15px 28px;
  background: var(--acc);
  color: var(--ink);
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s;
}
.btn:hover { background: #c8ff66; }
.btn:active { transform: scale(0.98); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--acc-deep); outline-offset: 3px; }
.btn-ghost { background: transparent; color: inherit; border: 1px solid currentColor; }
.btn-ghost:hover { background: rgba(138, 138, 133, 0.12); }
.btn-note { font-size: 0.82rem; color: var(--grey); margin-top: 10px; }

/* ---------- hero ---------- */
.hero { padding: 120px 0 88px; position: relative; overflow: hidden; }
.hero h1 { max-width: 14em; margin-bottom: 22px; }
.hero .lead { margin-bottom: 34px; }
.hero-squares { position: absolute; right: -40px; top: 90px; opacity: 0.5; pointer-events: none; }
.hl { position: relative; display: inline-block; }
.hl::after {
  content: attr(data-text);
  position: absolute; left: 0.09em; top: 0.09em;
  color: var(--acc); z-index: -1;
  opacity: 0; transform: translate(-0.09em, -0.09em);
}
.reveal-done .hl::after { opacity: 1; transform: translate(0, 0); transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { background: var(--ink2); padding: 26px 22px; border-top: 2px solid var(--acc); }
.stat b { font-family: var(--mono); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--acc); display: block; }
.stat span { font-size: 0.85rem; color: var(--grey); line-height: 1.45; display: block; margin-top: 6px; }

/* ---------- cards & lists ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--bone);
  border-left: 3px solid var(--acc-deep);
  padding: 26px 24px;
}
.on-ink .card { background: var(--ink2); border-left-color: var(--acc); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.95rem; color: var(--grey-dark); }
.on-ink .card p { color: var(--grey); }

.sq-list { list-style: none; }
.sq-list li { padding-left: 26px; position: relative; margin-bottom: 12px; }
.sq-list li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 10px; height: 10px; background: var(--acc-deep);
}
.on-ink .sq-list li::before { background: var(--acc); }

/* ---------- steps ---------- */
.steps { counter-reset: step; max-width: 640px; }
.step { display: flex; gap: 20px; margin-bottom: 26px; }
.step .n {
  font-family: var(--mono); font-weight: 700;
  color: var(--acc-deep); font-size: 1.3rem;
  border: 1px solid currentColor; width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.on-ink .step .n { color: var(--acc); }
.step h3 { margin-bottom: 4px; }
.step p { color: var(--grey-dark); font-size: 0.97rem; }
.on-ink .step p { color: var(--grey); }

/* ---------- calculator ---------- */
.calc {
  background: var(--ink2); padding: 36px 32px;
  max-width: 560px; border-top: 2px solid var(--acc);
}
.calc label { font-size: 0.9rem; color: var(--grey); display: block; margin-bottom: 10px; }
.calc input[type="range"] { width: 100%; accent-color: var(--acc); height: 32px; cursor: pointer; }
.calc .big { font-family: var(--mono); font-size: 2rem; text-align: center; margin: 6px 0 22px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.calc-cell { background: var(--ink3); padding: 16px 12px; text-align: center; }
.calc-cell small { color: var(--grey); font-size: 0.78rem; display: block; margin-bottom: 4px; }
.calc-cell b { font-family: var(--mono); font-size: 1.35rem; font-weight: 700; }
.calc-cell b.green { color: var(--acc); }
.calc .fine { font-size: 0.78rem; color: var(--grey); line-height: 1.5; margin-bottom: 20px; }

/* ---------- case studies ---------- */
.case { border-top: 1px solid #d8d6cd; padding: 44px 0; display: grid; grid-template-columns: 220px 1fr; gap: 32px; }
.case .tag { font-family: var(--mono); font-size: 0.8rem; color: var(--acc-deep); }
.case h3 { font-size: 1.45rem; margin-bottom: 12px; }
.case p { color: var(--grey-dark); max-width: 42em; margin-bottom: 12px; }
.case .stat-line { font-family: var(--mono); font-size: 0.92rem; color: var(--ink); }
.case .stat-line b { color: var(--acc-deep); font-weight: 700; }

.policy-band {
  background: var(--ink); color: var(--bone);
  padding: 22px 28px; display: flex; gap: 16px; align-items: center;
  font-family: var(--disp); font-size: 1.02rem;
}
.policy-band .sq { width: 12px; height: 12px; background: var(--acc); flex: none; }

/* ---------- pricing ---------- */
.price-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.price-table th, .price-table td { text-align: left; padding: 16px 18px; border-bottom: 1px solid #d8d6cd; }
.price-table th { font-family: var(--disp); font-weight: 500; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey-dark); }
.price-table .fee { font-family: var(--mono); font-weight: 700; }

/* ---------- footer ---------- */
footer { background: var(--ink); color: var(--grey); padding: 56px 0 40px; font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
footer a { color: var(--grey); text-decoration: none; }
footer a:hover { color: var(--bone); }
footer .cols { display: flex; gap: 48px; }
footer ul { list-style: none; }
footer li { margin-bottom: 8px; }
.chromonox { margin-top: 18px; font-size: 0.8rem; letter-spacing: 0.08em; }

/* ---------- scroll squares signature ---------- */
.scroll-squares { position: fixed; bottom: 26px; right: 26px; z-index: 40; pointer-events: none; opacity: 0.85; }

/* ---------- reveal on scroll ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hl::after, .reveal-done .hl::after { transition: none; opacity: 1; transform: translate(0, 0); }
  .rv { opacity: 1; transform: none; transition: none; }
  .scroll-squares { display: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  section { padding: 64px 0; }
  .hero { padding: 72px 0 56px; }
  .stats, .grid-3, .grid-2, .calc-grid { grid-template-columns: 1fr 1fr; }
  .case { grid-template-columns: 1fr; gap: 10px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--ink); flex-direction: column; padding: 22px 24px; gap: 18px;
    border-bottom: 1px solid var(--ink3);
  }
  .nav-links.open { display: flex; }
  .hero-squares { display: none; }
}
@media (max-width: 560px) {
  .stats, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr 1fr; }
}

/* ================= V2 — new-gen layer ================= */

/* editorial asymmetry */
.hero-v2 { padding: 96px 0 72px; overflow: hidden; }
.hero-v2 h1 {
  font-size: clamp(2.6rem, 8.2vw, 7.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: none;
  margin-left: -0.04em;
}
.hero-v2 .line { display: block; overflow: hidden; }
.hero-v2 .line > span { display: inline-block; transform: translateY(110%); animation: rise 0.7s cubic-bezier(0.2, 0.9, 0.2, 1) forwards; }
.hero-v2 .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero-v2 .line:nth-child(3) > span { animation-delay: 0.24s; }
@keyframes rise { to { transform: translateY(0); } }
.hero-meta { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; margin-top: 40px; }
.margin-note { font-family: var(--mono); font-size: 0.78rem; color: var(--grey); }
.margin-note b { color: var(--acc); font-weight: 400; }

/* marquee */
.marquee { overflow: hidden; background: var(--acc); color: var(--ink); padding: 12px 0; }
.marquee-track { display: flex; width: max-content; animation: marq 22s linear infinite; }
.marquee-track span { font-family: var(--disp); font-size: 0.95rem; letter-spacing: 0.18em; white-space: nowrap; padding-right: 18px; }
@keyframes marq { to { transform: translateX(-50%); } }

/* growing number scene */
.grow-scene { height: 240vh; position: relative; }
.grow-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.grow-num { font-family: var(--mono); font-weight: 700; font-size: clamp(3.6rem, 15vw, 13rem); color: var(--acc); line-height: 1; transform-origin: left center; will-change: transform; }
.grow-label { font-family: var(--disp); font-size: clamp(1rem, 2.4vw, 1.5rem); color: var(--bone); margin-top: 18px; }
.grow-context { color: var(--grey); max-width: 30em; margin-top: 14px; opacity: 0; transform: translateY(12px); transition: opacity 0.4s, transform 0.4s; }
.grow-context.show { opacity: 1; transform: none; }
.grow-hint { position: absolute; bottom: 26px; left: 24px; font-family: var(--mono); font-size: 0.75rem; color: var(--grey); }

/* bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile { background: var(--ink2); padding: 26px 24px; position: relative; border: 1px solid #23232a; transition: border-color 0.2s, transform 0.2s; }
.tile:hover { border-color: var(--acc); transform: translateY(-3px); }
.tile-2w { grid-column: span 2; }
.tile-2h { grid-row: span 2; }
.tile .t-kicker { font-family: var(--mono); font-size: 0.72rem; color: var(--grey); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.tile .t-big { font-family: var(--mono); font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 2.6rem); color: var(--acc); line-height: 1.05; }
.tile p { font-size: 0.9rem; color: var(--grey); margin-top: 10px; }
.tile a { color: var(--bone); }
.tile .corner-sq { position: absolute; top: 16px; right: 16px; width: 10px; height: 10px; background: var(--acc); }

/* word flipper */
.flip-word { display: inline-block; min-width: 5.5em; color: var(--acc); font-family: var(--mono); font-weight: 700; }

/* stacking service cards */
.stack-zone { position: relative; }
.stack-card {
  position: sticky; top: 96px;
  background: var(--bone); color: var(--ink);
  border: 1px solid #d8d6cd; border-top: 3px solid var(--acc-deep);
  padding: 44px 40px; margin-bottom: 22px;
  min-height: 320px;
}
.stack-card:nth-child(2) { top: 116px; }
.stack-card:nth-child(3) { top: 136px; }
.stack-card .s-index { font-family: var(--mono); color: var(--acc-deep); font-size: 0.85rem; margin-bottom: 14px; }
.stack-card h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 12px; }
.stack-card p { color: var(--grey-dark); max-width: 38em; }

/* wayfinding rail */
.rail { position: fixed; left: 22px; top: 50%; transform: translateY(-50%); z-index: 45; display: none; }
.rail ul { list-style: none; }
.rail li { margin: 14px 0; }
.rail a { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--grey); transition: color 0.2s; }
.rail a::before { content: ""; width: 8px; height: 8px; background: transparent; border: 1px solid var(--grey); transition: all 0.2s; }
.rail a.active { color: var(--acc); }
.rail a.active::before { background: var(--acc); border-color: var(--acc); }
@media (min-width: 1240px) { .rail { display: block; } }

/* custom cursor */
body.cursor-on, body.cursor-on a, body.cursor-on button { cursor: none; }
.cur {
  position: fixed; z-index: 999; pointer-events: none;
  width: 14px; height: 14px; border: 2px solid var(--acc);
  transform: translate(-50%, -50%);
  transition: width 0.18s, height 0.18s, background 0.18s;
}
.cur.big { width: 34px; height: 34px; background: var(--acc); }

/* two-city clock */
.clock { font-family: var(--mono); font-size: 0.78rem; color: var(--grey); margin-top: 14px; }
.clock b { color: var(--acc); font-weight: 400; }

/* offset editorial helpers */
.offset-r { margin-left: auto; max-width: 620px; }
.edge-label { font-family: var(--mono); font-size: 0.72rem; color: var(--grey); letter-spacing: 0.14em; text-transform: uppercase; }

@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-2h { grid-row: span 1; }
  .grow-scene { height: 180vh; }
  .stack-card { position: static; min-height: 0; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .tile-2w { grid-column: span 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-v2 .line > span { animation: none; transform: none; }
  .marquee-track { animation: none; }
  .grow-scene { height: auto; }
  .grow-sticky { position: static; height: auto; padding: 64px 0; }
  .cur { display: none; }
}

/* ================= v2.1 fixes ================= */

/* growing scene: shorter journey */
@media (prefers-reduced-motion: no-preference) {
  .grow-scene { height: 150vh; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 860px) {
  .grow-scene { height: 125vh; }
}

/* light-background accent legibility (green on bone was too faint) */
.stack-card .s-index { color: #3F6B00; }
.on-bone .flip-word, .on-paper .flip-word, .stack-card .flip-word { color: #3F6B00; }

/* nav brand → K² monogram morph on scroll */
.nav .brand { position: relative; min-width: 168px; }
.nav .brand .b-full { display: flex; align-items: center; gap: 12px; transition: opacity 0.22s ease, transform 0.22s ease; }
.nav .brand .b-mono { position: absolute; left: 0; top: 50%; transform: translateY(-50%) scale(0.88); opacity: 0; transition: opacity 0.22s ease, transform 0.22s ease; display: flex; align-items: center; }
.nav.compact .brand .b-full { opacity: 0; transform: scale(0.92); pointer-events: none; }
.nav.compact .brand .b-mono { opacity: 1; transform: translateY(-50%) scale(1); }
@media (prefers-reduced-motion: reduce) {
  .nav .brand .b-full, .nav .brand .b-mono { transition: none; }
}

/* ================= v2.2 — light-section text inheritance fix ================= */
/* body carries .on-ink in v2, so light sections must re-assert their own ink text */
.on-bone, .on-paper { color: var(--ink); }
.on-bone .lead, .on-paper .lead { color: var(--grey-dark); }
.on-bone .eyebrow, .on-paper .eyebrow { color: var(--grey-dark); }
.on-bone .eyebrow::before, .on-paper .eyebrow::before { background: var(--acc-deep); }
.on-bone .step p, .on-paper .step p { color: var(--grey-dark); }
.on-bone .card p, .on-paper .card p { color: var(--grey-dark); }
.on-bone .step .n, .on-paper .step .n { color: #3F6B00; }

/* ================= v2.3 — living grid hero (the X factor) ================= */
.hero-v2 { position: relative; }
#grid-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-v2 .hero-content { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { #grid-canvas { opacity: 0.35; } }

/* ================= v2.4 — THE SQUARING ================= */

/* mega hero type + detonation echoes */
.mega-stage { position: relative; display: inline-block; }
.mega {
  font-size: clamp(3.4rem, 13.5vw, 11.5rem);
  line-height: 0.95; letter-spacing: -0.015em;
  position: relative; z-index: 2; margin: 0;
}
.mega-sup {
  color: var(--acc); font-size: 0.42em; vertical-align: super; line-height: 0;
  display: inline-block; transform: scale(0); 
  animation: supPop 0.5s cubic-bezier(0.3, 1.6, 0.4, 1) 0.55s forwards;
}
@keyframes supPop { 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.echo {
  position: absolute; left: 0; top: 0; z-index: 1;
  font-family: var(--disp); font-weight: 500;
  font-size: clamp(3.4rem, 13.5vw, 11.5rem);
  line-height: 0.95; letter-spacing: -0.015em;
  color: transparent; -webkit-text-stroke: 1.5px var(--acc);
  opacity: 0; pointer-events: none; user-select: none;
}
.e1 { animation: echoOut1 0.7s cubic-bezier(0.2, 0.9, 0.3, 1) 0.85s forwards; }
.e2 { animation: echoOut2 0.7s cubic-bezier(0.2, 0.9, 0.3, 1) 0.92s forwards; }
.e3 { animation: echoOut3 0.7s cubic-bezier(0.2, 0.9, 0.3, 1) 0.99s forwards; }
.e4 { animation: echoOut4 0.7s cubic-bezier(0.2, 0.9, 0.3, 1) 1.06s forwards; }
@keyframes echoOut1 { to { opacity: 0.55; transform: translate(0.045em, 0.045em); } }
@keyframes echoOut2 { to { opacity: 0.32; transform: translate(0.09em, 0.09em); } }
@keyframes echoOut3 { to { opacity: 0.16; transform: translate(0.135em, 0.135em); } }
@keyframes echoOut4 { to { opacity: 0.07; transform: translate(0.18em, 0.18em); } }
.mega .mega-word-rise { display: inline-block; }
.hero-v2 .mega { overflow: visible; }

/* squaring field: 1 -> 2 -> 4 -> 16 */
.sq-stage { position: relative; min-height: 46vh; display: flex; align-items: center; }
.sq-field {
  display: grid; grid-template-columns: repeat(4, clamp(34px, 7vh, 62px));
  grid-auto-rows: clamp(34px, 7vh, 62px); gap: clamp(10px, 2vh, 18px);
}
.sq-field span {
  background: var(--acc); opacity: 0; transform: scale(0.2);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.3, 1.4, 0.4, 1);
}
.sq-field span.show { opacity: 1; transform: scale(1); }
.sq-field.merge span { opacity: 0; transform: scale(0.05) translate(0, 0); transition-duration: 0.4s; }
.sq-count {
  font-size: clamp(1rem, 2.2vw, 1.4rem); color: var(--acc); font-weight: 700;
  margin-top: 18px; min-height: 1.5em;
}
.money { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; transition: opacity 0.35s ease; }
.money.show { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .grow-scene { height: 215vh; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 860px) {
  .grow-scene { height: 175vh; }
}
@media (prefers-reduced-motion: reduce) {
  .mega-sup { animation: none; transform: scale(1); }
  .echo { animation: none; opacity: 0.25; transform: translate(0.06em, 0.06em); }
  .e3, .e4 { display: none; }
  .sq-field, .sq-count { display: none; }
  .money { position: static; opacity: 1; transform: none; }
  .sq-stage { min-height: 0; }
}

/* ================= v2.5 — revert to v2.1 scene ================= */
@media (prefers-reduced-motion: no-preference) {
  .grow-scene { height: 150vh; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 860px) {
  .grow-scene { height: 125vh; }
}

/* ================= v2.6 — video hero ================= */
.hero-media { position: absolute; inset: 0; overflow: hidden; background: var(--ink); }
.hero-media video { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(16,16,20,0.94) 0%, rgba(16,16,20,0.62) 52%, rgba(16,16,20,0.82) 100%),
              linear-gradient(0deg, rgba(16,16,20,0.9) 0%, rgba(16,16,20,0) 30%);
}
@media (prefers-reduced-motion: reduce) { .hero-media video { display: none; } }

/* ================= v2.7 — sizzle reel hero ================= */
.hero-media .reel {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 0.6s ease;
}
.hero-media .reel.on { opacity: 0.6; }
@media (prefers-reduced-motion: reduce) { .hero-media .reel { display: none; } }

/* ================= v2.8 — full mobile optimisation ================= */

/* modern viewport units: stop mobile-Safari URL-bar jump in sticky scenes */
.grow-sticky { height: 100vh; height: 100svh; }

/* anchor offset under sticky nav */
section[id], header[id] { scroll-margin-top: 84px; }

/* touch polish: no grey tap flash, real pressed states instead of hover */
* { -webkit-tap-highlight-color: transparent; }
@media (hover: none) {
  .btn:active { background: #c8ff66; transform: scale(0.97); }
  .tile:active { border-color: var(--acc); }
  .tile:hover { transform: none; }
}

/* hero on phones: tighter, type floor adjusted so three lines fit without hyphen drama */
@media (max-width: 860px) {
  .hero-v2 { padding: 56px 0 48px; }
  .hero-v2 h1 { font-size: clamp(2.1rem, 10.5vw, 3.4rem); }
  .hero-meta { margin-top: 28px; gap: 14px; }
  /* two-column pairs read cramped on tablets/phones — stack them */
  .grid-2 { grid-template-columns: 1fr; }
  .calc { padding: 26px 20px; max-width: none; }
  section { padding: 56px 0; }
  .stats { gap: 10px; }
  .stat { padding: 18px 16px; }
  .bento { gap: 10px; }
  .tile { padding: 20px 18px; }
  .stack-card { padding: 28px 22px; margin-bottom: 14px; }
  .case { padding: 32px 0; }
}

/* small phones: keep the pricing table readable without horizontal scroll */
@media (max-width: 560px) {
  .price-table { font-size: 0.88rem; }
  .price-table th, .price-table td { padding: 10px 8px; }
  .marquee-track span { font-size: 0.8rem; }
  .grow-num { font-size: clamp(3rem, 20vw, 5.5rem); }
  footer .cols { gap: 28px; }
  footer .wrap { gap: 24px; }
}

/* hero media on phones: single clip, slightly dimmer for text contrast on small screens */
@media (max-width: 860px) {
  .hero-media .reel.on { opacity: 0.5; }
}

/* ================= v2.9 — mobile grow scene: compact, no sticky ================= */
@media (max-width: 860px) {
  .grow-scene { height: auto !important; }
  .grow-sticky { position: static; height: auto; padding: 64px 0; display: block; }
  .grow-num { font-size: clamp(3.4rem, 21vw, 6rem); transform: none !important; }
  .grow-context { opacity: 1; transform: none; margin-top: 16px; }
  .grow-hint { display: none; }
  .edge-label { margin-bottom: 14px; }
  .grow-label { margin-top: 6px; }
}

/* ================= v3.3 — B&W cinema behind "What we do" ================= */
.sec-video { position: relative; overflow: hidden; overflow: clip; }
.sec-media { position: absolute; inset: 0; display: none; }
.sec-reel {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 0.8s ease;
  filter: grayscale(1) contrast(1.08);
}
.sec-reel.on { opacity: 1; }
.sec-wash { position: absolute; inset: 0; background: rgba(245, 244, 239, 0.82); }
.sec-video .wrap { position: relative; }
.sec-video .stack-card { border-color: #cfcdc4; box-shadow: 0 8px 28px rgba(16, 16, 20, 0.08); }
@media (min-width: 861px) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .sec-media { display: block; }
}

/* ================= v3.5 — industry chips ================= */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; }
.chips li {
  font-family: var(--disp);
  font-size: 0.95rem;
  padding: 11px 18px;
  border: 1px solid var(--acc-deep);
  color: var(--ink);
  background: transparent;
  transition: background 0.18s, color 0.18s;
}
.chips li:hover { background: var(--acc-deep); color: var(--bone); }
.on-ink .chips li { border-color: var(--acc); color: var(--bone); }
.on-ink .chips li:hover { background: var(--acc); color: var(--ink); }
@media (max-width: 560px) {
  .chips li { font-size: 0.88rem; padding: 9px 14px; }
}

/* ================= v3.6 — effects pack A/B/C/D/E ================= */

/* screen-reader-only headline (D replaces the visual h1) */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- D: knockout masked headline ---- */
.mask-type { position: relative; margin: 6px 0 0; overflow: hidden; }
/* paints over sub-pixel bleed where the video/gradient peek past the SVG panel */
.mask-type::after {
  content: ""; position: absolute; inset: 0;
  border: 2px solid var(--ink);
  z-index: 3; pointer-events: none;
}
.mask-vid {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: brightness(2.1) saturate(1.35) contrast(1.12);
  z-index: 1;
}
.mask-knock { position: relative; display: block; width: 100%; height: auto; }
.mk-mob { display: none; }
@media (max-width: 860px) {
  .mk-desk { display: none; }
  .mk-mob { display: block; }
}
/* if video can't play, the knockout still reads as ink-on-ink; give it a floor */
/* chartreuse floor sits under the video so letters always read, even if video fails */
.mask-type::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, #6f9b12 0%, #b7ff3c 38%, #4a6b0d 72%, #8fd428 100%);
  z-index: 0;
}
.mask-knock { z-index: 2; }

/* ---- B: section corner squares ---- */
section { position: relative; }
.corner-sq {
  position: absolute; top: 18px; right: 24px;
  width: 12px; height: 12px; background: var(--acc);
  transform: scale(0) rotate(-25deg);
  transition: transform .5s cubic-bezier(.3, 1.5, .4, 1);
  pointer-events: none;
}
.on-bone .corner-sq, .on-paper .corner-sq { background: var(--acc-deep); }
section.mark-in .corner-sq { transform: scale(1) rotate(0); }

/* ---- C: magnetic chips ---- */
.chips li { transition: background .18s, color .18s, transform .18s cubic-bezier(.2, .9, .3, 1); }

/* ---- E: nav progress line ---- */
.nav { position: sticky; }
#nav-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px;
  background: var(--acc); width: 0; transition: width .08s linear;
}

@media (prefers-reduced-motion: reduce) {
  .corner-sq { transform: scale(1) rotate(0); transition: none; }
  .chips li { transition: background .18s, color .18s; }
  #nav-progress { transition: none; }
  .mask-vid { display: none; }
}


/* ================= v3.7 — flicker + overflow guards ================= */
.cur { will-change: transform; }

/* stat lines must be able to wrap — nbsp runs were forcing horizontal overflow */
.case .stat-line { overflow-wrap: anywhere; }

/* ================= v3.8 — Work page spacing tightening ================= */
/* section bottom + case bottom + next section top were stacking ~200px */
.case { padding: 36px 0; }
.case:last-of-type { padding-bottom: 4px; }
.case + .case { border-top: 1px solid #d8d6cd; }
@media (max-width: 860px) {
  .case { padding: 28px 0; }
}

/* ================= v3.9 — Work page: stats-first case layout ================= */
.flag-big {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(2.4rem, 7.5vw, 6rem); line-height: 1;
  color: var(--acc-deep); margin-bottom: 10px;
}
.flag-sub { font-family: var(--disp); font-size: clamp(1.05rem, 2.2vw, 1.5rem); line-height: 1.25; }
.flag-story { color: var(--grey-dark); max-width: 40em; margin-top: 14px; }

/* timeline */
.tl { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 54px; position: relative; }
.tl::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: #d8d6cd; }
.tl .tick { position: relative; padding: 28px 18px 0 0; }
.tl .tick::before {
  content: ""; position: absolute; top: 0; left: 0; width: 14px; height: 14px;
  background: var(--paper); border: 2px solid var(--grey);
}
.tl .tick.hot::before { background: var(--acc-deep); border-color: var(--acc-deep); }
.tl .yr { font-family: var(--mono); font-size: 0.78rem; color: var(--grey-dark); }
.tl b { font-family: var(--mono); font-size: 1.4rem; color: var(--ink); display: block; margin: 6px 0 3px; }
.tl .tick.hot b { color: var(--acc-deep); }
.tl small { color: var(--grey-dark); font-size: 0.82rem; line-height: 1.4; display: block; }

/* stat strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 48px; }
.strip .cell { background: var(--bone); border-top: 2px solid var(--acc-deep); padding: 18px 16px; }
.strip .cell b { font-family: var(--mono); font-weight: 700; font-size: 1.6rem; color: var(--acc-deep); display: block; }
.strip .cell span { font-size: 0.8rem; color: var(--grey-dark); display: block; margin-top: 5px; }

/* campaign cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ccard { background: var(--paper); border: 1px solid #dedcd3; transition: transform .2s, box-shadow .2s; }
.ccard:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(16,16,20,.10); }
.chead { background: var(--ink); color: var(--bone); padding: 20px 20px 16px; }
.chead .k { font-family: var(--mono); font-size: 0.68rem; letter-spacing: .1em; color: var(--acc); }
.chead h3 { font-size: 1.1rem; margin-top: 8px; }
.cnums { padding: 18px 20px; display: grid; gap: 13px; }
.cnums .n b { font-family: var(--mono); font-weight: 700; font-size: 1.5rem; color: var(--acc-deep); }
.cnums .n span { font-size: 0.78rem; color: var(--grey-dark); display: block; margin-top: 1px; }
.cfoot { padding: 0 20px 18px; font-size: 0.84rem; color: var(--grey-dark); }

@media (max-width: 860px) {
  .tl { grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
  .tl::before { display: none; }
  .strip { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr; }
}

/* ================= v4.0 — global vertical rhythm tightening ================= */
/* 96px top + 96px bottom meant ~190px of dead space wherever two sections met */
section { padding: 66px 0; }
.hero { padding: 104px 0 72px; }
@media (max-width: 860px) {
  section { padding: 48px 0; }
  .hero { padding: 56px 0 44px; }
}

/* ================= v4.1 — tighter gaps between adjacent light sections ================= */
/* dark<->light transitions earn full padding; light->light does not */
.on-paper + .on-bone, .on-bone + .on-paper,
.on-paper + .on-paper, .on-bone + .on-bone { padding-top: 42px; }
.on-paper:has(+ .on-bone), .on-bone:has(+ .on-paper),
.on-paper:has(+ .on-paper), .on-bone:has(+ .on-bone) { padding-bottom: 42px; }
@media (max-width: 860px) {
  .on-paper + .on-bone, .on-bone + .on-paper,
  .on-paper + .on-paper, .on-bone + .on-bone { padding-top: 34px; }
  .on-paper:has(+ .on-bone), .on-bone:has(+ .on-paper),
  .on-paper:has(+ .on-paper), .on-bone:has(+ .on-bone) { padding-bottom: 34px; }
}

/* ================= v4.2 — large monitor tiers (27" / 32" / 34" ultrawide) ================= */

/* --- 27" and up (2560px-class, and large laptops scaled) --- */
@media (min-width: 1600px) {
  :root { --max: 1320px; }
  body { font-size: 18px; }
  h1 { font-size: clamp(4.1rem, 4.2vw, 5.4rem); }
  h2 { font-size: clamp(2.5rem, 2.6vw, 3.1rem); }
  section { padding: 88px 0; }
  .hero, .hero-v2 { padding: 130px 0 92px; }
  .bento, .cards, .strip { gap: 18px; }
  .tile { padding: 32px 28px; }
  .stack-card { padding: 54px 48px; }
  /* keep the rail beside the content, not glued to the window edge */
  .rail { left: calc((100vw - var(--max)) / 2 - 76px); }
  .flag-big { font-size: clamp(6rem, 6.5vw, 7.5rem); }
  .grow-num { font-size: clamp(6rem, 11vw, 12rem); }
}

/* --- 32" 4K-class --- */
@media (min-width: 2100px) {
  :root { --max: 1480px; }
  body { font-size: 19px; }
  h1 { font-size: 6rem; }
  h2 { font-size: 3.4rem; }
  section { padding: 104px 0; }
  .hero, .hero-v2 { padding: 150px 0 104px; }
  .tile .t-big { font-size: 3rem; }
  .marquee-track span { font-size: 1.1rem; }
}

/* --- 34" ultrawide (3440px) — widen further so content doesn't island --- */
@media (min-width: 2600px) {
  :root { --max: 1640px; }
  body { font-size: 20px; }
  h1 { font-size: 6.6rem; }
  section { padding: 120px 0; }
  .hero, .hero-v2 { padding: 170px 0 120px; }
}

/* hero video must fill any aspect ratio, including 21:9 */
.hero-media, .sec-media { min-height: 100%; }
.hero-media .reel, .sec-reel { object-position: center; }

/* ================= v4.3 — four-package pricing grid ================= */
.pkg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pkg {
  background: var(--bone); border: 1px solid #dedcd3;
  padding: 26px 22px; display: flex; flex-direction: column; position: relative;
}
.pkg-hot { border: 2px solid var(--acc-deep); }
.pkg-flag {
  position: absolute; top: -12px; left: 20px;
  background: var(--acc-deep); color: var(--bone);
  font-family: var(--disp); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 4px 10px;
}
.pkg-name { font-family: var(--disp); font-size: 1.05rem; color: var(--ink); }
.pkg-price { font-family: var(--mono); font-weight: 700; font-size: 1.7rem; color: var(--acc-deep); margin: 8px 0 10px; }
.pkg-price span { font-size: 0.85rem; font-weight: 400; color: var(--grey-dark); }
.pkg-for { font-size: 0.86rem; color: var(--grey-dark); margin-bottom: 14px; min-height: 3.2em; }
.pkg ul { list-style: none; padding: 0; margin-top: auto; }
.pkg ul li { font-size: 0.84rem; color: var(--grey-dark); padding: 5px 0 5px 18px; position: relative; }
.pkg ul li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 8px; background: var(--acc-deep); }
@media (max-width: 1100px) { .pkg-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .pkg-grid { grid-template-columns: 1fr; } .pkg-for { min-height: 0; } }

/* ================= v4.4 — FAQ accordion ================= */
.faq-item { border-top: 1px solid #d8d6cd; }
.faq-item:last-child { border-bottom: 1px solid #d8d6cd; }
.faq-item summary {
  font-family: var(--disp); font-size: 1.08rem; color: var(--ink);
  padding: 18px 36px 18px 0; cursor: pointer; list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 4px; top: 24px;
  width: 11px; height: 11px; border: 2px solid var(--acc-deep); transition: background .2s;
}
.faq-item[open] summary::after { background: var(--acc-deep); }
.faq-item p { color: var(--grey-dark); padding: 0 0 20px; max-width: 40em; }

/* ================= v4.5 — ad landing page (/audit) ================= */
.lp-top { background: var(--ink); border-bottom: 1px solid var(--ink3); }
.lp-top .wrap { height: 64px; display: flex; align-items: center; }
.lp-top .brand span { color: var(--bone); font-family: var(--disp); letter-spacing: .14em; font-size: .9rem; }
.lp-hero h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); line-height: 1.05; }
.lp-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 54px; }
.lp-proof div { background: var(--ink2); border-top: 2px solid var(--acc); padding: 18px 16px; }
.lp-proof b { font-family: var(--mono); color: var(--acc); font-size: 1.35rem; display: block; }
.lp-proof span { font-size: .8rem; color: var(--grey); display: block; margin-top: 5px; }
.lp-form { max-width: 520px; }
.lp-foot { background: var(--ink); color: var(--grey); padding: 26px 0; font-size: .82rem; }
@media (max-width: 700px) { .lp-proof { grid-template-columns: 1fr; } }
.lp-top .wrap { justify-content: space-between; }
.lp-call { font-family: var(--mono); color: var(--acc); font-size: .9rem; text-decoration: none; }

/* ================= v4.6 — testimonials ================= */
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote { background: var(--bone); border-left: 3px solid var(--acc-deep); padding: 24px 26px; margin: 0; }
.quote blockquote { font-size: 1.02rem; line-height: 1.6; color: var(--ink); margin: 0; }
.quote figcaption { font-family: var(--mono); font-size: .8rem; color: var(--grey-dark); margin-top: 14px; }
.quote-dark { background: var(--ink2); border-left-color: var(--acc); }
.quote-dark blockquote { color: var(--bone); }
.quote-dark figcaption { color: var(--grey); }
@media (max-width: 760px) { .quote-grid { grid-template-columns: 1fr; } }
