/* ============================================================
   Whitakr — Main stylesheet
   Sections are ordered top → bottom to match the page.
   ============================================================ */

/* ---------- Base ---------- */
body {
  background: var(--paper);
  color: var(--ink-rich);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  overflow-x: hidden;
}
::selection { background: var(--selection); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-optical-sizing: auto;
}

strong { font-weight: 600; }
em { font-style: italic; }

/* ---------- Paper grain ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-pad); position: relative; }

.section__head { max-width: 52rem; margin-bottom: clamp(2.5rem, 5vw, 5rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__title {
  font-size: var(--fs-h2);
  line-height: 1.04;
  letter-spacing: -0.012em;
  font-weight: 400;
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
  margin-bottom: clamp(1rem, 2vw, 1.6rem);
}
.eyebrow::before {
  content: "";
  width: 1.8rem;
  height: 1px;
  background: var(--accent);
}
.section__head--center .eyebrow { justify-content: center; }
.eyebrow--on-dark { color: var(--on-dark-muted); }
.eyebrow--on-dark::before { background: var(--on-dark); }

/* ---------- Buttons ---------- */
.btn {
  --arrow: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 1rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color .45s var(--ease-out), color .45s var(--ease-out),
              border-color .45s var(--ease-out), transform .45s var(--ease-out);
  white-space: nowrap;
}
.btn--sm { padding: 0.65rem 1.1rem; }
.btn--lg { padding: 1.15rem 2rem; font-size: var(--fs-body); }

.btn--primary { background: var(--accent); color: var(--on-dark); }
.btn--primary:hover { background: var(--accent-deep); transform: translateY(-2px); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: #fff; transform: translateY(-2px); }

.btn--ghost-on-dark { background: transparent; color: var(--on-dark); border-color: var(--on-dark-muted); }
.btn--ghost-on-dark:hover { border-color: var(--on-dark); background: rgba(239,231,217,0.06); }

/* arrow affordance on primary actions */
.btn--primary::after, .btn--paper::after {
  content: "\2192";
  display: inline-block;
  transition: transform .45s var(--ease-out);
}
.btn--primary:hover::after, .btn--paper:hover::after { transform: translateX(4px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  transition: background-color .5s var(--ease-out), border-color .5s var(--ease-out), backdrop-filter .5s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(242, 238, 230, 0.82);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(1rem, 2vw, 1.6rem) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav__links { display: flex; gap: clamp(1.5rem, 3vw, 2.75rem); }
.nav__links a {
  position: relative;
  font-size: var(--fs-small);
  color: var(--ink-rich);
  padding-block: 0.25rem;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.nav__links a:hover::after { transform: scaleX(1); }

/* ---------- Wordmark ---------- */
.wordmark { display: inline-flex; flex-direction: column; line-height: 1; }
.wordmark__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.wordmark__name::after { content: "."; color: var(--accent); }
.wordmark__tag {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 0.4rem;
}
.wordmark--lg .wordmark__name { font-size: 2.5rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: clamp(3rem, 8vh, 7rem);
}
.hero__visual { position: absolute; inset: 0; z-index: 0; }
.hero__fallback {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 95% at 72% 22%, rgba(34,51,43,0.11), transparent 56%),
    radial-gradient(95% 75% at 22% 88%, rgba(34,51,43,0.06), transparent 60%);
}
#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 1.4s var(--ease-out);
}
#hero-canvas.is-ready { opacity: 1; }

.hero__content { position: relative; z-index: 1; padding-top: clamp(7rem, 26vh, 16rem); }
.hero__eyebrow { color: var(--ink-muted); }
.hero__title {
  font-size: var(--fs-display);
  line-height: 0.97;
  letter-spacing: -0.02em;
  font-weight: 380;
  color: var(--ink);
  max-width: 16ch;
}
.hero__line { display: block; }
.hero__line--accent { font-style: italic; font-weight: 360; }
.hero__lead {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 400;
  color: var(--ink);
  margin-top: clamp(1.2rem, 3vw, 2.2rem);
}
.hero__sub {
  font-size: var(--fs-body);
  color: var(--ink-muted);
  max-width: 38rem;
  margin-top: 1.4rem;
  line-height: 1.65;
}
.hero__actions { margin-top: clamp(2rem, 4vw, 3rem); display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__cue {
  position: absolute;
  left: var(--gutter); bottom: 1.5rem;
  z-index: 1;
  display: flex; align-items: center; gap: 0.8rem;
  font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-muted);
}
.hero__cue-line { width: 3rem; height: 1px; background: var(--line-strong); overflow: hidden; position: relative; }
.hero__cue-line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  animation: cue 2.8s var(--ease-inout) infinite;
}
@keyframes cue { 0% { transform: translateX(-100%);} 55%,100% { transform: translateX(100%);} }

/* ============================================================
   THE PROBLEM
   ============================================================ */
.problem { text-align: center; }
.problem__inner { display: flex; flex-direction: column; align-items: center; }
.problem .section__head { text-align: center; }
.problem .section__title { margin-inline: auto; }

.stat { display: inline-flex; align-items: baseline; gap: 0.5rem; color: var(--accent); margin-top: 1rem; }
.stat__figure { display: inline-flex; align-items: flex-start; }
.stat__num {
  font-family: var(--font-display);
  font-size: var(--fs-stat);
  font-weight: 360;
  line-height: 0.85;
  letter-spacing: -0.02em;
}
.stat__plus { font-family: var(--font-display); font-size: calc(var(--fs-stat) * 0.4); font-weight: 360; }
.stat__unit { font-family: var(--font-display); font-style: italic; font-size: var(--fs-h2); color: var(--ink); }
.stat__caption {
  max-width: 34rem; margin: 1.5rem auto 0;
  color: var(--ink-muted); font-size: var(--fs-body); line-height: 1.6;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how { background: var(--paper-deep); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  counter-reset: step;
}
.step { padding-top: 2rem; border-top: 1px solid var(--line-strong); }
.step__num {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem; letter-spacing: 0.2em;
  color: var(--accent); margin-bottom: 1.5rem;
}
.step__title { font-size: var(--fs-h3); font-weight: 400; line-height: 1.1; margin-bottom: 0.9rem; }
.step__body { color: var(--ink-muted); max-width: 26rem; }

/* ============================================================
   THE WORKUP — pinned centrepiece
   Default (no JS / reduced motion / mobile): stacked & readable.
   Desktop + motion: .is-pinned engages the cross-fade timeline.
   ============================================================ */
.workup { background: var(--ink); color: var(--on-dark); padding-block: var(--section-pad); }
.workup .section__title { color: var(--on-dark); }
.workup .eyebrow { color: var(--on-dark-muted); }
.workup .eyebrow::before { background: var(--accent-tint); }

.workup__inner { display: flex; flex-direction: column; gap: clamp(2.5rem, 5vw, 4rem); }
.workup__head { max-width: 40rem; }

.workup__stages { display: flex; flex-direction: column; gap: 2.5rem; }
.stage { max-width: 34rem; }
.stage__num {
  display: block; font-family: var(--font-body);
  font-size: 0.8rem; letter-spacing: 0.2em; color: var(--accent-tint); margin-bottom: 0.8rem;
}
.stage__title { font-size: var(--fs-h3); color: var(--on-dark); font-weight: 400; line-height: 1.08; margin-bottom: 0.8rem; }
.stage__body { color: var(--on-dark-muted); font-size: var(--fs-body); line-height: 1.6; }

.workup__visual {
  position: relative;
  --cp-glow: 0;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1.5rem, 3vw, 3rem) 0;
}
.workup__visual::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 50% 46%, rgba(60,82,70,0.55), transparent 70%);
  opacity: var(--cp-glow);
  transition: opacity .6s var(--ease-out);
  pointer-events: none;
}
.workup__progress {
  position: absolute; top: 0; right: 0;
  display: flex; gap: 0.5rem;
  font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.18em;
  color: var(--on-dark-muted);
}
.workup__progress #workup-progress-num { color: var(--accent-tint); }
.workup__progress-sep { opacity: 0.5; }

/* --- desktop pinned layout (added by JS) --- */
.workup.is-pinned .workup__inner {
  flex-direction: row;
  align-items: center;
  min-height: 100vh;
  gap: clamp(2rem, 6vw, 7rem);
}
.workup.is-pinned .workup__copy { flex: 1 1 50%; }
.workup.is-pinned .workup__visual { flex: 1 1 50%; align-self: center; }
.workup.is-pinned .workup__head { margin-bottom: 3rem; }
.workup.is-pinned .workup__stages { position: relative; min-height: 15rem; display: block; }
.workup.is-pinned .stage {
  position: absolute; inset: 0 auto auto 0; width: 100%;
}

/* --- the SVG composition --- */
.cp { width: 100%; height: auto; max-width: 540px; margin-inline: auto; overflow: visible; }
.cp-card { fill: rgba(247,244,237,0.04); stroke: rgba(239,231,217,0.55); stroke-width: 1.5; }
.cp-line { stroke: rgba(239,231,217,0.30); stroke-width: 2; stroke-linecap: round; }
.cp-line-strong { stroke: rgba(239,231,217,0.6); stroke-width: 3; stroke-linecap: round; }
.cp-hair { stroke: rgba(239,231,217,0.4); stroke-width: 1.25; fill: none; }
.cp-node-o { fill: var(--ink); stroke: var(--accent-tint); stroke-width: 1.5; }
.cp-dot { fill: var(--accent-tint); }
.cp-chip rect { fill: rgba(247,244,237,0.04); stroke: rgba(239,231,217,0.5); stroke-width: 1.25; }
.cp-chip-line { stroke: rgba(239,231,217,0.32); stroke-width: 2; stroke-linecap: round; }
.cp-accent-stroke { stroke: var(--accent-tint); stroke-width: 1.75; fill: none; stroke-linecap: round; }
.cp-underline { stroke: var(--accent-tint); stroke-width: 2; stroke-linecap: round; opacity: 0.7; }

.cp-label {
  fill: var(--on-dark-muted);
  font-family: var(--font-body);
  font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
}
.cp-quote { fill: var(--accent-tint); font-family: var(--font-display); font-size: 56px; }
.cp-verdict { fill: var(--on-dark); font-family: var(--font-display); font-style: italic; font-size: 32px; }
.cp-verdict-sub { fill: var(--on-dark-muted); font-family: var(--font-display); font-style: italic; font-size: 15px; }

/* draw-on state only when the timeline is active */
.workup.is-pinned .cp-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }

/* ============================================================
   SERVICE PILLARS
   ============================================================ */
.pillars__list { display: flex; flex-direction: column; }
.pillar {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: clamp(1rem, 4vw, 4rem);
  align-items: start;
  padding-block: clamp(2rem, 4vw, 3.2rem);
  border-top: 1px solid var(--line);
  transition: padding-left .5s var(--ease-out);
}
.pillar:last-child { border-bottom: 1px solid var(--line); }
.pillar:hover { padding-left: clamp(0.5rem, 1.5vw, 1.5rem); }
.pillar__num { font-family: var(--font-display); font-size: var(--fs-h3); color: var(--accent); font-weight: 360; font-style: italic; }
.pillar__body { max-width: 44rem; }
.pillar__title { font-size: var(--fs-h2); font-weight: 400; line-height: 1; margin-bottom: 0.7rem; }
.pillar__text { color: var(--ink-muted); font-size: var(--fs-body); line-height: 1.6; }

/* ============================================================
   WHAT YOU RECEIVE
   ============================================================ */
.receive__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.receive__text { color: var(--ink-muted); max-width: 34rem; margin-top: 1.4rem; line-height: 1.65; }
.receive__points { display: grid; gap: 0; align-self: stretch; }
.receive__points li { padding-block: 1.5rem; border-top: 1px solid var(--line); }
.receive__points li:last-child { border-bottom: 1px solid var(--line); }
.receive__points h3 { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 500; color: var(--ink); margin-bottom: 0.3rem; }
.receive__points p { color: var(--ink-muted); font-size: var(--fs-small); }

/* ============================================================
   CONFIDENCE & CONFIDENTIALITY
   ============================================================ */
.confidence { background: var(--paper-deep); }
.confidence__text { max-width: 40rem; margin: 1.5rem auto 0; color: var(--ink-muted); line-height: 1.65; }
.testimonial {
  max-width: 46rem; margin: clamp(3rem, 6vw, 5rem) auto 0;
  text-align: center;
}
.testimonial__quote {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
  text-wrap: balance;
}
.testimonial__quote::before { content: "\201C"; color: var(--accent); }
.testimonial__quote::after { content: "\201D"; color: var(--accent); }
.testimonial__by { display: flex; flex-direction: column; gap: 0.25rem; margin-top: 1.5rem; }
.testimonial__role { font-size: var(--fs-small); letter-spacing: 0.04em; color: var(--ink-rich); }
.testimonial__note { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); opacity: 0.7; }

/* ============================================================
   HOW WE WORK TOGETHER  (the single rich colour block)
   ============================================================ */
.together { background: var(--accent); color: var(--on-dark); text-align: center; }
.together .section__head { margin-inline: auto; text-align: center; }
.together .section__title { color: var(--on-dark); }
.together__text { max-width: 38rem; margin: 0 auto; color: var(--on-dark-muted); font-size: var(--fs-body); line-height: 1.65; }
.together__text--muted { margin-top: 2rem; }
.together__principle {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 360;
  line-height: 1.02;
  color: var(--on-dark);
  margin-block: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.01em;
}
.together__principle em { color: var(--paper); }
.together__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: clamp(2.5rem, 5vw, 4rem); }

/* ============================================================
   CLOSING
   ============================================================ */
.closing { padding-block: clamp(6rem, 14vw, 16rem); text-align: center; }
.closing__title {
  font-size: var(--fs-h1);
  font-weight: 380;
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.closing__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: clamp(2.5rem, 5vw, 4rem); }
.closing__alt { margin-top: 1.75rem; font-size: var(--fs-small); }
.closing__alt a { color: var(--ink-muted); text-underline-offset: 3px; transition: color .3s var(--ease-out); }
.closing__alt a:hover { color: var(--accent); text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: var(--on-dark); padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: 2.5rem; }
.footer .wordmark__name { color: var(--on-dark); }
.footer .wordmark__tag { color: var(--on-dark-muted); }
.footer__inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid rgba(239,231,217,0.14); }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer__h { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 1.2rem; font-weight: 500; }
.footer__col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__col a, .footer__link-btn { color: var(--on-dark); font-size: var(--fs-small); position: relative; }
.footer__col a:hover, .footer__link-btn:hover { color: var(--accent-tint); }
.footer__link-btn { padding: 0; font-family: inherit; text-align: left; }
.footer__muted { color: var(--on-dark-muted); }
.footer__base { display: flex; flex-direction: column; gap: 0.4rem; padding-top: 2rem; font-size: 0.78rem; color: var(--on-dark-muted); }

/* ============================================================
   CHAT  (launcher always present; panel built lazily by chat.js)
   ============================================================ */
.chat-launcher {
  position: fixed;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  z-index: var(--z-launcher);
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  background: var(--accent);
  color: var(--on-dark);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(21,20,15,0.18);
  font-size: var(--fs-small); font-weight: 500; letter-spacing: 0.01em;
  transition: transform .45s var(--ease-out), background-color .45s var(--ease-out), opacity .4s var(--ease-out);
}
.chat-launcher:hover { transform: translateY(-2px); background: var(--accent-deep); }
.chat-launcher.is-hidden { opacity: 0; pointer-events: none; transform: translateY(10px); }
.chat-launcher__dot { width: 8px; height: 8px; border-radius: 50%; background: #8fb6a2; box-shadow: 0 0 0 0 rgba(143,182,162,0.6); animation: pulse 2.6s var(--ease-inout) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(143,182,162,0.5);} 70%,100% { box-shadow: 0 0 0 8px rgba(143,182,162,0);} }

/* panel + backdrop (styled here, injected by JS) */
.chat-backdrop {
  position: fixed; inset: 0; z-index: var(--z-chat);
  background: rgba(21,20,15,0.32);
  opacity: 0; pointer-events: none;
  transition: opacity .45s var(--ease-out);
  backdrop-filter: blur(2px);
}
.chat-backdrop.is-open { opacity: 1; pointer-events: auto; }

.chat-panel {
  position: fixed;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  z-index: calc(var(--z-chat) + 1);
  width: min(380px, calc(100vw - 2rem));
  max-height: min(620px, calc(100vh - 2rem));
  display: flex; flex-direction: column;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 30px 70px rgba(21,20,15,0.28);
  overflow: hidden;
  transform: translateY(16px) scale(0.98);
  opacity: 0; pointer-events: none;
  transform-origin: bottom right;
  transition: opacity .45s var(--ease-out), transform .55s var(--ease-out);
}
.chat-panel.is-open { opacity: 1; pointer-events: auto; transform: none; }

.chat-panel__header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.1rem 1.25rem;
  background: var(--accent); color: var(--on-dark);
}
.chat-panel__title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; }
.chat-panel__sub { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-muted); margin-top: 0.15rem; }
.chat-panel__close { color: var(--on-dark); font-size: 1.3rem; line-height: 1; padding: 0.25rem; border-radius: 4px; }
.chat-panel__close:hover { background: rgba(239,231,217,0.12); }

.chat-panel__body { flex: 1; overflow-y: auto; padding: 1.25rem; display: flex; flex-direction: column; gap: 0.9rem; }
.chat-msg { max-width: 85%; padding: 0.75rem 1rem; border-radius: 12px; font-size: var(--fs-small); line-height: 1.5; }
.chat-msg--bot { align-self: flex-start; background: var(--paper-deep); color: var(--ink-rich); border-bottom-left-radius: 3px; }
.chat-msg--user { align-self: flex-end; background: var(--accent); color: var(--on-dark); border-bottom-right-radius: 3px; }

.chat-quick { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0 1.25rem 0.5rem; }
.chat-quick__btn {
  font-size: 0.8rem; padding: 0.5rem 0.85rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--ink-rich); background: var(--paper);
  transition: border-color .3s var(--ease-out), color .3s var(--ease-out);
}
.chat-quick__btn:hover { border-color: var(--accent); color: var(--accent); }

.chat-panel__footer { padding: 1rem 1.25rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.6rem; }
.chat-panel__cta { width: 100%; justify-content: center; }
.chat-panel__note { font-size: 0.7rem; color: var(--ink-muted); text-align: center; }

/* ============================================================
   REVEAL utility (progressive enhancement: hidden only with JS)
   ============================================================ */
.js [data-reveal],
.js [data-reveal-item] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out);
}
.js [data-reveal].is-in,
.js [data-reveal-group].is-in [data-reveal-item] {
  opacity: 1;
  transform: none;
}

/* ============================================================
   PRE-LAUNCH — top bar, hero status pill, founding firms
   ============================================================ */
html { scroll-padding-top: 7rem; }

.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: calc(var(--z-nav) + 1);
  height: var(--topbar-h);
  background: var(--accent); color: var(--on-dark);
  display: flex; align-items: center; justify-content: center;
}
.topbar__inner {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.74rem; letter-spacing: 0.04em;
  padding-inline: var(--gutter);
}
.topbar__dot {
  width: 7px; height: 7px; border-radius: 50%; background: #8fb6a2; flex: none;
  box-shadow: 0 0 0 0 rgba(143, 182, 162, 0.6);
  animation: pulse 2.6s var(--ease-inout) infinite;
}
.topbar__count { color: var(--on-dark-muted); }
.topbar__cta {
  color: var(--on-dark); white-space: nowrap;
  border-bottom: 1px solid rgba(239, 231, 217, 0.5); padding-bottom: 1px;
  transition: border-color 0.3s var(--ease-out);
}
.topbar__cta:hover { border-bottom-color: var(--on-dark); }

/* nav sits below the bar only on pages that have one */
.has-topbar .nav { top: var(--topbar-h); }

/* hero status pill */
.hero__status {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--fs-eyebrow); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-rich);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 0.4rem 0.9rem; margin-bottom: 1.2rem;
}
.hero__status-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none;
  box-shadow: 0 0 0 0 rgba(34, 51, 43, 0.5);
  animation: pulse 2.6s var(--ease-inout) infinite;
}

/* founding firms (the single dark scarcity moment) */
.founding { background: var(--ink); color: var(--on-dark); text-align: center; }
.founding .section__title { color: var(--on-dark); }
.founding__inner { display: flex; flex-direction: column; align-items: center; }
.founding__text {
  max-width: 40rem; color: var(--on-dark-muted);
  font-size: var(--fs-lead); line-height: 1.5;
}
.founding__text strong { color: var(--on-dark); font-weight: 500; }
.founding__seats { display: flex; gap: 0.85rem; margin: clamp(2rem, 4vw, 3rem) 0 1.1rem; }
.seat { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--accent-tint); }
.seat--taken { background: var(--accent-tint); }
.founding__remaining {
  font-family: var(--font-display); font-style: italic;
  font-size: var(--fs-h3); font-weight: 400; color: var(--on-dark); line-height: 1.1;
}
.founding__remaining span { color: var(--accent-tint); }
.founding__note { font-size: var(--fs-small); color: var(--on-dark-muted); margin-top: 0.6rem; }
.founding__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: clamp(2rem, 4vw, 3rem); }

@media (max-width: 600px) {
  .topbar__cta { display: none; }
  .topbar__inner { font-size: 0.68rem; gap: 0.5rem; }
}

/* ============================================================
   LEGAL PAGES (privacy / terms)
   ============================================================ */
.legal { padding-top: clamp(7rem, 16vh, 11rem); padding-bottom: var(--section-pad); }
.legal__inner { max-width: 48rem; margin-inline: auto; }
.legal__title { font-size: var(--fs-h1); }
.legal__updated { color: var(--ink-muted); font-size: var(--fs-small); margin-top: 0.6rem; }
.legal__body { margin-top: clamp(2rem, 4vw, 3rem); }
.legal__body h2 {
  font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 400;
  color: var(--ink); margin: 2.5rem 0 0.75rem; line-height: 1.1;
}
.legal__body p { color: var(--ink-rich); line-height: 1.75; margin-bottom: 1rem; max-width: 44rem; }
.legal__body ul {
  margin: 0 0 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.45rem;
  list-style: disc; color: var(--ink-rich); max-width: 44rem;
}
.legal__body li { line-height: 1.7; }
.legal__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal__back { margin-top: 3rem; font-size: var(--fs-small); }
.legal__back a { color: var(--ink-muted); }
.legal__back a:hover { color: var(--accent); }

.footer__base--legal { padding-top: 2rem; border-top: 1px solid rgba(239, 231, 217, 0.14); }
.footer__base--legal a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 2px; }
.footer__base--legal a:hover { color: var(--accent-tint); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .receive__inner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav__links { display: none; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding-block: 1.6rem; }
  .footer__inner { grid-template-columns: 1fr; }
  .pillar { grid-template-columns: 3.5rem 1fr; }
  .hero__cue { display: none; }
}
@media (max-width: 460px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .nav__cta { display: none; }
}

/* ============================================================
   REDUCED MOTION — backstop (JS also short-circuits the heavy systems)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal], .js [data-reveal-item] { opacity: 1 !important; transform: none !important; }
  #hero-canvas { display: none; }
}
