/* ============================================================
   SCALEBUZ V3 | Rachit Verma, B2B Marketing & Growth Advisory
   Palette: Bone paper . Near-black ink . Oxblood accent
   Type: Newsreader . Geist . Geist Mono
   Motion: the production language, restrained. Fade and a 14px
   rise at 0.7s ease-out, ~70ms stagger, oxblood lines that draw
   once. CSS transitions only, driven by one observer in site.js.
   ============================================================ */

:root {
  /* Colour tokens live in theme.css, the only file that differs between variants */

  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans:    "Geist", -apple-system, system-ui, "Segoe UI", sans-serif;
  --mono:    "Geist Mono", ui-monospace, "SFMono-Regular", monospace;

  --max:    1180px;
  --pad-x:  clamp(20px, 5vw, 56px);
  --nav-h:  72px;
  --ease:   cubic-bezier(.16,.84,.32,1);

  interpolate-size: allow-keywords;
}

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

/* No scroll-behavior here. See site.js for why. */
html { background: var(--paper); scroll-padding-top: calc(var(--nav-h) + 20px); -webkit-text-size-adjust: 100%; }
html.lock { overflow: hidden; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
::selection { background: var(--ink); color: var(--paper-3); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--ink); color: var(--paper-3); padding: 12px 20px; font-size: 14px;
}
.skip:focus { left: 12px; top: 12px; }

/* ── Layout ───────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--pad-x); }

section { padding-block: clamp(60px, 6.8vw, 96px); position: relative; }
section + section { border-top: 1px solid var(--rule); }
.s-alt  { background: var(--paper-2); }
.s-dark { background: var(--ink); color: #E8E3D7; border-top-color: var(--ink) !important; }
.s-dark + section { border-top-color: transparent; }
.s-dark .eyebrow { color: #9C958A; }
.s-dark .lede    { color: #BDB6A7; }
.s-dark h2, .s-dark h3 { color: #F2EEE4; }

/* ── Type ─────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--mute);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); flex: none; transform-origin: left; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -.015em; }
h1 { font-size: clamp(40px, 6.6vw, 84px); line-height: 1.02; letter-spacing: -.032em; }
h2 { font-size: clamp(30px, 3.9vw, 48px); line-height: 1.1; letter-spacing: -.022em; }
h3 { font-size: 21px; line-height: 1.25; }

.accent { color: var(--accent); }
.lede { font-size: clamp(16px, 1.35vw, 18px); line-height: 1.65; color: var(--mute); max-width: 60ch; }
.num  { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--accent); }

.head {
  display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr);
  gap: clamp(20px, 5vw, 72px); align-items: end; margin-bottom: clamp(32px, 4vw, 52px);
}
.head h2 { max-width: 20ch; }
.head--solo { grid-template-columns: 1fr; }
.head--solo h2 { max-width: 28ch; }
.head .lede { max-width: 44ch; }

/* ── Buttons and links ────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 26px;
  font-family: var(--sans); font-size: 15px; font-weight: 500; white-space: nowrap;
  background: var(--action); color: var(--on-action); border: 1px solid var(--action);
  cursor: pointer;
  transition: background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), transform .45s var(--ease);
}
.btn .ar { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn:hover .ar { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn--sm { min-height: 42px; padding: 10px 18px; font-size: 14px; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--control); }
.btn--ghost:hover { background: var(--ink); color: var(--paper-3); border-color: var(--ink); }
.s-dark .btn { background: var(--action); color: var(--on-action); border-color: var(--action); }
.s-dark .btn:hover { background: var(--paper-3); color: var(--ink); border-color: var(--paper-3); }

.link {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding-block: 12px; font-size: 14.5px; font-weight: 500;
  transition: color .3s var(--ease);
}
.link::before, .link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 1px; }
.link::before { background: var(--rule-strong); }
.link::after  { background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.link:hover { color: var(--accent); }
.link:hover::after { transform: scaleX(1); }

/* ── Nav ──────────────────────────────────────────────────── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; }
/* Blur lives on a pseudo-element: backdrop-filter on .nav itself would
   become the containing block for the fixed mobile menu panel. */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.nav.scrolled::before { border-bottom-color: var(--rule); }
.nav-in {
  max-width: var(--max); margin: 0 auto; padding-inline: var(--pad-x);
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.brand svg { width: 26px; height: 26px; flex: none; transition: transform .6s var(--ease); }
.brand:hover svg { transform: rotate(90deg); }
.mark { fill: var(--accent); }
.brand-t { display: flex; flex-direction: column; line-height: 1.1; }
.brand-n { font-family: var(--display); font-size: 20px; letter-spacing: -.02em; }
.brand-s { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) { position: relative; font-size: 14px; color: var(--mute); padding-block: 8px; transition: color .3s var(--ease); }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }

.nav-tog {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 2px 0 12px;
  background: none; border: 0; cursor: pointer; color: var(--ink);
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
}
.nav-tog .bars { position: relative; width: 20px; height: 10px; }
.nav-tog .bars i {
  position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.nav-tog .bars i:first-child { top: 0; }
.nav-tog .bars i:last-child  { top: 8.5px; }
.nav.open .nav-tog .bars i:first-child { top: 4.25px; transform: rotate(45deg); }
.nav.open .nav-tog .bars i:last-child  { top: 4.25px; transform: rotate(-45deg); }

main { padding-top: var(--nav-h); }

/* ── 01 Hero ──────────────────────────────────────────────── */
.hero { padding-block: clamp(56px, 7.6vw, 112px) clamp(40px, 4.8vw, 64px); }
.hero h1 { max-width: 15.5ch; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero h1 .ln > span { display: block; }
.hero .lede { margin-top: clamp(24px, 2.6vw, 34px); max-width: 50ch; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); }
.hero-cta { margin-top: clamp(30px, 3.4vw, 44px); display: flex; align-items: center; gap: 12px 30px; flex-wrap: wrap; }
.cred {
  position: relative; margin-top: clamp(44px, 5.4vw, 72px); padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 8px 26px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--mute-2);
}
.cred::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--rule-strong); transform-origin: left; }
.cred span { display: inline-flex; align-items: center; gap: 26px; }
.cred span::after { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--detail); }
.cred span:last-child::after { display: none; }
.cred b { color: var(--ink-2); font-weight: 500; }

/* ── 02 Symptoms ──────────────────────────────────────────── */
.sym { border-top: 1px solid var(--rule-strong); }
/* One shared quote column sized to the longest quote, so every diagnosis gets the rest of the row */
.sym { display: grid; grid-template-columns: max-content minmax(0,1fr); column-gap: clamp(24px, 4vw, 56px); }
.sym li {
  position: relative; grid-column: 1 / -1; display: grid; grid-template-columns: subgrid;
  row-gap: 6px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--rule);
}
.sym li::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.sym li:hover::after { transform: scaleX(1); }
.sym .q { font-family: var(--display); font-size: clamp(20px, 1.8vw, 25px); line-height: 1.25; letter-spacing: -.015em; transition: transform .45s var(--ease); }
.sym li:hover .q { transform: translateX(4px); }
.sym .a { font-size: 15.5px; line-height: 1.6; color: var(--mute); }
.sym .a b { font-weight: 500; color: var(--ink-2); }

/* ── 03 Marketing Growth System ────────────────────────────── */
.mgs { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); row-gap: 44px; }
.mgs li { position: relative; padding: 38px clamp(10px, 1.4vw, 22px) 0 0; }
.mgs li::after, .mgs li::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; }
.mgs li::after  { background: var(--rule-strong); }
.mgs li::before { background: var(--accent); transform-origin: left; z-index: 1; }
.mgs .dot {
  position: absolute; left: 0; top: 0; z-index: 2; width: 9px; height: 9px;
  border: 1px solid var(--accent); background: var(--paper); transform: rotate(45deg);
}
.mgs .num { display: block; }
.mgs h3 { margin: 8px 0 8px; font-size: clamp(21px, 2vw, 27px); letter-spacing: -.02em; transition: color .35s var(--ease); }
.mgs p { font-size: 15px; line-height: 1.5; color: var(--mute); max-width: 17ch; }
.mgs li:hover h3 { color: var(--accent); }

.constraint-row {
  margin-top: clamp(48px, 5.6vw, 76px); display: grid; grid-template-columns: minmax(0,1fr) minmax(0,320px);
  gap: 24px clamp(24px, 5vw, 72px); align-items: end;
}
.constraint { --cd: 1.3s; font-family: var(--display); font-size: clamp(36px, 5.6vw, 70px); line-height: 1.04; letter-spacing: -.032em; }
.constraint span { display: block; width: fit-content; }
.constraint .c2 { color: var(--accent); }
.constraint .c2::after { content: ""; display: block; height: 2px; margin-top: .1em; background: var(--accent); transform-origin: left; }
.constraint-note { font-size: 15px; line-height: 1.6; color: var(--mute); max-width: 34ch; }

/* ── 04 Selected work ─────────────────────────────────────── */
.cases { border-top: 1px solid var(--rule-strong); }
.case, .more { border-bottom: 1px solid var(--rule); }
.case > summary, .more > summary { list-style: none; cursor: pointer; }
.case > summary::-webkit-details-marker, .more > summary::-webkit-details-marker { display: none; }

.case > summary {
  position: relative; display: grid; grid-template-columns: 150px minmax(0,1fr) 28px;
  gap: 10px clamp(14px, 2.4vw, 32px); align-items: start; padding: 26px 0;
}
.case > summary::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.case > summary:hover::before, .case[open] > summary::before { transform: scaleX(1); }

.mech {
  display: inline-flex; align-items: center; gap: 10px; padding-top: 6px; white-space: nowrap;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
}
.mech::before {
  content: ""; width: 7px; height: 7px; flex: none; border: 1px solid var(--accent);
  transform: rotate(45deg); transition: background .3s var(--ease);
}
.case > summary:hover .mech::before, .case[open] .mech::before { background: var(--accent); }

.case .co { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute-2); }
.case .ct {
  display: block; margin-top: 6px; max-width: 34ch;
  font-family: var(--display); font-size: clamp(21px, 2vw, 25px); line-height: 1.25; letter-spacing: -.018em;
  transition: transform .45s var(--ease), color .3s var(--ease);
}
.case > summary:hover .ct { transform: translateX(4px); }
.case .cstats { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 12px; font-family: var(--mono); font-size: 12.5px; }
.case .cstats span { color: var(--mute); }
.case .cstats b { color: var(--accent); font-weight: 500; }

.tog { position: relative; width: 28px; height: 28px; justify-self: end; margin-top: 2px; }
.tog::before, .tog::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px;
  background: var(--ink-2); transition: transform .4s var(--ease), background .3s var(--ease);
}
.tog::after { transform: rotate(90deg); }
details[open] > summary .tog::after { transform: rotate(0deg); }
details[open] > summary .tog::before, details[open] > summary .tog::after { background: var(--accent); }

/* Native accordion motion where supported; elsewhere it simply opens. */
details::details-content {
  block-size: 0; overflow: clip;
  transition: block-size .55s var(--ease), content-visibility .55s allow-discrete;
}
details[open]::details-content { block-size: auto; }

.case-body {
  margin-left: calc(150px + clamp(14px, 2.4vw, 32px));
  padding: 2px 0 40px;
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px clamp(28px, 4vw, 56px);
}
.case-body h4 { font-family: var(--mono); font-size: 10px; letter-spacing: .17em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; font-weight: 500; }
.case-body p { font-size: 15.5px; line-height: 1.66; color: var(--mute); }
.case-body p + h4 { margin-top: 26px; }
.case-body li { position: relative; padding-left: 20px; margin-bottom: 9px; font-size: 15px; line-height: 1.58; color: var(--mute); }
.case-body li::before { content: ""; position: absolute; left: 0; top: .8em; width: 9px; height: 1px; background: var(--accent); }
.case-body .lesson { grid-column: 1 / -1; padding-left: clamp(18px, 2.5vw, 28px); border-left: 2px solid var(--accent); }
.case-body .lesson p { font-family: var(--display); font-size: clamp(18px, 1.9vw, 22px); line-height: 1.44; color: var(--ink); max-width: 62ch; }

.more > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; }
.more-l { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.more-l b { font-weight: 500; font-size: 15.5px; transition: color .3s var(--ease); }
.more-l small { font-family: var(--mono); font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--mute-2); }
.more > summary:hover .more-l b { color: var(--accent); }
.more-body { border-top: 1px solid var(--rule); }
.more-body .case:last-child { border-bottom: 0; }

/* ── 05 Point of view ─────────────────────────────────────── */
.pov { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: clamp(32px, 5vw, 80px); border-top: 1px solid var(--rule-strong); }
.pov li { display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 12px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.pov .num { padding-top: 7px; }
.pov h3 { font-size: clamp(20px, 1.8vw, 23px); transition: color .35s var(--ease); }
.pov p { margin-top: 7px; font-size: 15px; line-height: 1.6; color: var(--mute); }
.pov li:hover h3 { color: var(--accent); }

/* ── 06 How I work ────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 32px clamp(16px, 2.4vw, 32px); }
.steps li { position: relative; padding-top: 22px; }
.steps li::after, .steps li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; }
.steps li::after  { height: 1px; background: var(--rule-strong); }
.steps li::before { height: 2px; top: -.5px; background: var(--accent); transform-origin: left; z-index: 1; }
.steps h3 { margin: 10px 0 9px; font-size: clamp(23px, 2.2vw, 27px); }
.steps p { font-size: 15px; line-height: 1.6; color: var(--mute); }

/* ── 07 Operator ──────────────────────────────────────────── */
.op { display: grid; grid-template-columns: minmax(0,250px) minmax(0,1fr); gap: 32px clamp(32px, 6vw, 96px); align-items: start; }
.profile { position: sticky; top: calc(var(--nav-h) + 36px); }
.avatar { position: relative; width: 120px; height: 120px; flex: none; }
.avatar img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  filter: grayscale(1) contrast(1.05) sepia(.12);
}
.avatar::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid var(--detail); opacity: .55;
}
.who { margin-top: 20px; }
.who-n { font-family: var(--display); font-size: 23px; letter-spacing: -.018em; line-height: 1.2; }
.who-r { margin-top: 5px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); line-height: 1.7; }
.who .link { margin-top: 6px; }
.op-body h2 { max-width: 18ch; }
.op-body p:not([class]) { margin-top: 20px; font-size: 16.5px; line-height: 1.68; color: var(--ink-2); max-width: 60ch; }
.creds {
  margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--rule); max-width: 64ch;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute-2); line-height: 1.95;
}

/* ── 08 Experience ────────────────────────────────────────── */
.cos { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); column-gap: clamp(20px, 3vw, 40px); }
.cos li {
  position: relative; padding: 20px 0 32px; border-top: 1px solid var(--rule-strong);
  font-family: var(--display); font-size: clamp(20px, 2vw, 26px); line-height: 1.2; letter-spacing: -.018em;
  transition: color .35s var(--ease);
}
.cos li::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.cos li:hover { color: var(--accent); }
.cos li:hover::before { transform: scaleX(1); }

/* ── 09 Diagnostic ────────────────────────────────────────── */
.offer { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); gap: 36px clamp(32px, 6vw, 96px); align-items: start; }
.offer h2 { max-width: 13ch; }
.offer .big { margin-top: 22px; font-family: var(--display); font-size: clamp(24px, 2.5vw, 31px); line-height: 1.28; letter-spacing: -.015em; color: #F2EEE4; max-width: 22ch; }
.offer .big em { font-style: normal; color: var(--accent-on-dark); }
.dsteps { border-top: 1px solid rgba(232,227,215,.16); }
.dsteps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid rgba(232,227,215,.16); }
.dsteps .num { color: var(--detail-on-dark); padding-top: 4px; }
.dsteps strong { display: block; margin-bottom: 4px; font-weight: 500; font-size: 16.5px; color: #F2EEE4; }
.dsteps p { font-size: 15px; line-height: 1.6; color: #ADA697; }
.reversal { margin-top: 26px; font-size: 15px; line-height: 1.68; color: #ADA697; max-width: 58ch; }
.reversal b { display: block; margin-bottom: 6px; font-weight: 500; color: #F2EEE4; }
.offer .btn { margin-top: 30px; }

/* ── 10 Final CTA ─────────────────────────────────────────── */
.final { text-align: center; padding-block: clamp(72px, 8.4vw, 124px); }
.final .eyebrow { justify-content: center; }
.final h2 { max-width: 16ch; margin: 0 auto; font-size: clamp(34px, 5.2vw, 64px); line-height: 1.06; letter-spacing: -.03em; }
.final .lede { margin: 24px auto 0; max-width: 46ch; }
.final .btn { margin-top: 36px; padding: 17px 32px; font-size: 16px; }
.final .note { margin-top: 20px; font-size: 14px; color: var(--mute-2); }

/* ── Footer ───────────────────────────────────────────────── */
.foot { background: var(--ink); color: #9C958A; padding-block: 54px 40px; }
.foot-in { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.foot .brand-n { color: #E8E3D7; }
.foot .brand-s { color: #8F897C; }
.foot-who { margin-top: 16px; font-size: 14px; line-height: 1.7; max-width: 40ch; }
.foot-who b { display: block; color: #E8E3D7; font-weight: 500; }
.foot-links { display: flex; gap: 4px 26px; font-size: 14px; flex-wrap: wrap; }
.foot-links a { padding-block: 12px; transition: color .3s var(--ease), transform .35s var(--ease); display: inline-block; }
.foot-links a:hover { color: #E8E3D7; transform: translateX(2px); }
.foot-base {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(232,227,215,.12);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: #8F897C;
}

/* ============================================================
   MOTION
   Hidden states exist only under html.js, and html.js is removed
   by a head fallback if site.js never runs. Nothing can get stuck.
   ============================================================ */
@keyframes rise   { from { opacity: 0; transform: translate3d(0,16px,0); } to { opacity: 1; transform: none; } }
@keyframes lineup { from { transform: translate3d(0,108%,0); } to { transform: none; } }
@keyframes draw   { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Hero: runs on load, not on scroll */
.js .hero-in { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms + 140ms); }
.js .hero h1 .ln > span { animation: lineup 1.05s var(--ease) both; animation-delay: calc(var(--i, 0) * 130ms + 60ms); }
.js .hero .eyebrow::before { animation: draw .9s var(--ease) .1s both; }
.js .hero .cred::before { animation: draw 1.5s var(--ease) .75s both; }

/* Generic scroll reveal */
.js .rv { opacity: 0; transform: translate3d(0,14px,0); }
.js .rv.in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js .rv .eyebrow::before { transform: scaleX(0); }
.js .rv.in .eyebrow::before { transform: scaleX(1); transition: transform .8s var(--ease) .15s; }

/* Marketing Growth System: the six arrive in sequence, the line runs through them */
.js .mgs.rv, .js .constraint.rv { opacity: 1; transform: none; }
.js .mgs li::before { transform: scaleX(0); }
.js .mgs.in li::before { transform: scaleX(1); transition: transform .5s cubic-bezier(.45,0,.2,1) calc(var(--i) * 170ms + 260ms); }
.js .mgs li > :not(.dot) { opacity: 0; transform: translate3d(0,12px,0); }
.js .mgs.in li > :not(.dot) {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i) * 170ms + 160ms);
}
.js .mgs.in .dot { background: var(--accent); transition: background .3s var(--ease) calc(var(--i) * 170ms + 140ms); }

.js .constraint span { opacity: 0; transform: translate3d(0,.3em,0); }
.js .constraint.in span { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .9s var(--ease); }
.js .constraint.in .c1 { transition-delay: var(--cd); }
.js .constraint.in .c2 { transition-delay: calc(var(--cd) + .45s); }
.js .constraint .c2::after { transform: scaleX(0); }
.js .constraint.in .c2::after { transform: scaleX(1); transition: transform 1s var(--ease) calc(var(--cd) + 1s); }

/* How I work: each step's rule draws as it arrives */
.js .steps li::before { transform: scaleX(0); }
.js .steps li.in::before { transform: scaleX(1); transition: transform 1s var(--ease) calc(var(--i) * 110ms + 200ms); }

/* Founder ring settles in */
.js .profile .avatar::after { opacity: 0; transform: scale(.9); }
.js .profile.in .avatar::after { opacity: .55; transform: none; transition: opacity .9s var(--ease) .3s, transform 1.1s var(--ease) .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv, .js .rv *, .js .rv::before, .js .rv *::before, .js .rv *::after,
  .js .mgs li::before, .js .steps li::before, .js .hero h1 .ln > span, .js .hero-in {
    opacity: 1 !important; transform: none !important;
  }
}

@media print {
  .nav { position: absolute; }
  .js .rv, .js .rv *, .js .rv *::before, .js .rv *::after { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   APPLICATION PAGE: two-step diagnostic
   ============================================================ */
.app { padding-block: clamp(44px, 6vw, 84px) clamp(64px, 8vw, 110px); }
.app-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,330px); gap: clamp(34px, 5vw, 76px); align-items: start; }
.app h1 { font-size: clamp(34px, 4.4vw, 52px); max-width: 17ch; line-height: 1.06; }
.app .lede { margin-top: 20px; max-width: 50ch; }

.stepbar { display: flex; gap: 10px 26px; margin: 30px 0; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--mute-2); }
.stepbar span { display: inline-flex; align-items: center; gap: 9px; }
.stepbar span::before { content: ""; width: 6px; height: 6px; background: var(--rule-strong); flex: none; }
.stepbar .on { color: var(--accent); }
.stepbar .on::before { background: var(--accent); }

.form-panel { max-width: 760px; }
.field { margin-bottom: 22px; }
.field > label, .fieldset-l { display: block; margin-bottom: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--mute); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 13px 16px;
  font-family: var(--sans); font-size: 16px; color: var(--ink);
  background: var(--paper-3); border: 1px solid var(--control); border-radius: 0;
  -webkit-appearance: none; appearance: none; transition: border-color .25s var(--ease);
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.field textarea { min-height: 108px; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field .err { display: none; margin-top: 8px; font-size: 13px; color: var(--accent); font-family: var(--mono); letter-spacing: .04em; }
.field.bad input, .field.bad textarea { border-color: var(--accent); }
.field.bad .chips { outline: 1px solid var(--accent); outline-offset: 8px; }
.field.bad .err { display: block; }
.field .hint { margin-top: 8px; font-size: 13.5px; color: var(--mute-2); }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { position: relative; display: inline-block; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 15px; cursor: pointer;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .03em; color: var(--mute);
  border: 1px solid var(--control); background: var(--paper-3);
  transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease);
}
.chip span:hover { border-color: var(--mute-2); color: var(--ink-2); }
.chip input:checked + span { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.form-foot { margin-top: 30px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-status { font-size: 14.5px; color: var(--mute); }
.form-status.bad { color: var(--accent); }

.aside-note { background: var(--paper-3); border: 1px solid var(--rule-strong); padding: 28px 26px 30px; }
.aside-note h3 { font-size: 21px; margin-bottom: 12px; }
.aside-note p { font-size: 14.5px; line-height: 1.65; color: var(--mute); }
.aside-note p + p { margin-top: 12px; }
.aside-note .rule { margin: 22px 0; height: 1px; background: var(--rule); }

.booked h2 { max-width: 19ch; }
.cal-frame { margin-top: 26px; border: 1px solid var(--rule-strong); background: var(--paper-3); }
.cal-frame iframe { width: 100%; height: 720px; border: 0; display: block; }
.cal-alt { margin-top: 12px; font-size: 14px; color: var(--mute); }
.after-book { margin-top: clamp(44px, 5vw, 68px); padding-top: clamp(36px, 4vw, 52px); border-top: 1px solid var(--rule-strong); }
.after-book h2 { font-size: clamp(25px, 3vw, 34px); max-width: 22ch; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 clamp(24px, 3vw, 40px); }
.two-col .full { grid-column: 1 / -1; }

/* ============================================================
   RESPONSIVE: 1080 / 860 / 560
   Mobile is its own composition, not the desktop stacked.
   ============================================================ */
@media (max-width: 1080px) {
  .mgs { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .cos { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .case > summary { grid-template-columns: 130px minmax(0,1fr) 28px; }
  .case-body { margin-left: calc(130px + clamp(14px, 2.4vw, 32px)); }
}

@media (max-width: 860px) {
  :root { --nav-h: 64px; }

  /* Menu becomes a full-height sheet */
  .nav-tog { display: inline-flex; }
  .nav.open::before { background: var(--paper); }
  .nav-links {
    position: fixed; left: 0; right: 0; top: var(--nav-h); height: calc(100dvh - var(--nav-h));
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--pad-x) 32px; background: var(--paper); border-top: 1px solid var(--rule);
    visibility: hidden; opacity: 0; transition: opacity .3s var(--ease), visibility 0s linear .3s;
  }
  .nav.open .nav-links { visibility: visible; opacity: 1; transition: opacity .3s var(--ease); }
  .nav-links a:not(.btn) {
    padding: 18px 0; border-bottom: 1px solid var(--rule);
    font-family: var(--display); font-size: 30px; letter-spacing: -.02em; color: var(--ink);
    opacity: 0; transform: translate3d(0,10px,0);
  }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { margin-top: 28px; min-height: 54px; font-size: 15px; opacity: 0; transform: translate3d(0,10px,0); }
  .nav.open .nav-links a {
    opacity: 1; transform: none;
    transition: opacity .5s var(--ease), transform .6s var(--ease), background .35s var(--ease);
    transition-delay: calc(var(--i, 0) * 55ms + 60ms);
  }

  .head, .offer, .app-grid, .constraint-row { grid-template-columns: 1fr; }
  .head { align-items: start; gap: 16px; }

  /* The six become a vertical sequence; the line runs down, not across */
  .mgs { grid-template-columns: 1fr; row-gap: 0; }
  .mgs li { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 14px; padding: 0 0 26px 34px; }
  .mgs li::after, .mgs li::before { left: 4px; right: auto; top: 8px; bottom: 0; width: 1px; height: auto; }
  .mgs li:last-child { padding-bottom: 0; }
  .mgs li:last-child::after, .mgs li:last-child::before { display: none; }
  .js .mgs li::before { transform: scaleY(0); transform-origin: top; }
  .js .mgs.in li::before { transform: scaleY(1); }
  .mgs .dot { top: 4px; }
  .mgs h3 { margin: 0; font-size: 25px; }
  .mgs p { flex-basis: 100%; max-width: none; margin-top: 3px; }
  .constraint { --cd: .15s; }

  .case > summary { grid-template-columns: minmax(0,1fr) 28px; padding: 22px 0; }
  .case .mech { grid-column: 1; grid-row: 1; padding-top: 0; }
  .case-main { grid-column: 1; grid-row: 2; }
  .case .tog { grid-column: 2; grid-row: 1 / span 2; }
  .case-body { margin-left: 0; grid-template-columns: 1fr; gap: 26px; }

  .pov { grid-template-columns: 1fr; }
  .op { grid-template-columns: 1fr; }
  .profile { position: static; display: flex; align-items: center; gap: 20px; }
  .avatar { width: 92px; height: 92px; }
  .who { margin-top: 0; }
  .cal-frame iframe { height: 860px; }
}

@media (max-width: 560px) {
  .hero { padding-block: 44px 40px; }
  .hero h1 { max-width: none; }
  .hero-cta .btn { width: 100%; }
  .cred { margin-top: 48px; gap: 6px 16px; font-size: 10.5px; }
  .cred span { gap: 16px; }
  .brand-s { display: none; }

  .sym { grid-template-columns: 1fr; }
  .sym li { grid-template-columns: 1fr; padding: 18px 0; }
  .constraint { font-size: clamp(34px, 10.4vw, 44px); }
  .steps { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px 18px; }
  .cos { grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 18px; }
  .cos li { font-size: 20px; padding: 16px 0 22px; }
  .case .cstats { gap: 4px 16px; font-size: 12px; }
  .avatar { width: 84px; height: 84px; }
  .offer .btn, .final .btn, .form-foot .btn { width: 100%; }
  .final { text-align: left; }
  .final .eyebrow { justify-content: flex-start; }
  .final h2, .final .lede { margin-left: 0; }
  .foot-in { flex-direction: column; gap: 22px; }
  .two-col { grid-template-columns: 1fr; }
  .chip span { font-size: 12px; padding: 9px 12px; }
  .cal-frame iframe { height: 980px; }
}
