/* ============================================================
   ZORIYA — section styles
   ============================================================ */

/* ---- 1. HERO -------------------------------------------------------- */
.hero {
  min-height: 100svh;
  display: grid; place-items: center;
  padding-bottom: 90px;
  text-align: center;
  padding: 140px var(--pad-x) 80px;
  position: relative;
  overflow: hidden;
}
.hero-inner { max-width: 1180px; }
.hero .display { margin: 26px 0 0; }
.hero [data-build] { display: flex; flex-direction: column; align-items: center; }
.hero .h-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 0.3em; }
.hero .lede { margin: 30px auto 0; text-align: center; }
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.hero-deco {
  position: absolute; pointer-events: none; color: var(--peri);
  font-family: var(--serif); opacity: .9;
  animation: heroFloat 7s ease-in-out infinite;
}
.hero-deco.b { animation-delay: -2.4s; animation-duration: 9s; }
.hero-deco.c { animation-delay: -4.8s; animation-duration: 8s; }
@keyframes heroFloat { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(8deg); } }
/* SF-technical detailing: fine grid, registration marks, mono readouts */
.hero-gridlines {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(14,14,16,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,14,16,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 30%, transparent 78%);
}
.hero-frame { position: absolute; inset: clamp(84px, 11vh, 120px) var(--pad-x) 96px; pointer-events: none; }
.hf-cross {
  position: absolute; font-family: var(--mono); font-size: 15px; font-weight: 400;
  color: rgba(14,14,16,.3); line-height: 1;
}
.hf-tl { top: 0; left: 0; } .hf-tr { top: 0; right: 0; }
.hf-bl { bottom: 0; left: 0; } .hf-br { bottom: 0; right: 0; }
.hero-meta {
  position: absolute; z-index: 1; pointer-events: none;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(14,14,16,.45); white-space: nowrap;
}
.hm-tl { top: clamp(88px, 12vh, 126px); left: calc(var(--pad-x) + 22px); }
.hm-tr { top: clamp(88px, 12vh, 126px); right: calc(var(--pad-x) + 22px); }
.hm-l { left: calc(var(--pad-x) * 0.5); top: 50%; }
.hm-l-inner { display: inline-block; white-space: nowrap; transform: rotate(-90deg) translateX(-50%); transform-origin: left center; }
.hm-r { right: calc(var(--pad-x) + 22px); bottom: 120px; }
.hero-meta .chip-dot { width: 6px; height: 6px; border-radius: 50%; background: #23A55A; animation: chipPulse 2.4s infinite; }
@media (max-width: 900px) { .hero-meta, .hero-frame { display: none; } }

/* ambient glow behind the headline */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px 380px at 78% 26%, rgba(43,43,240,.10), transparent 70%),
    radial-gradient(480px 360px at 16% 72%, rgba(151,151,255,.14), transparent 70%);
}
/* floating live-proof chips */
.hero-chip {
  position: absolute; z-index: 1; pointer-events: none;
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .06em; color: var(--ink-soft);
  background: #fff; border: 1px solid rgba(14,14,16,.12);
  border-radius: 100px; padding: 10px 16px;
  box-shadow: 0 10px 28px rgba(14,14,16,.08);
  animation: heroFloat 8s ease-in-out infinite;
}
.hero-chip .chip-dot { width: 7px; height: 7px; border-radius: 50%; background: #23A55A; flex: none; animation: chipPulse 2.4s infinite; }
.chip-2 { bottom: 24%; left: 3.5%; animation-delay: -4s; }

/* kinetic headline — industry word flips through */
.rotator { display: inline-grid !important; text-align: left; }
.rotator .rot-word {
  grid-area: 1 / 1; white-space: nowrap;
  display: inline-block;
  opacity: 0; transform: translateY(0.55em);
  transition: opacity .45s var(--ease), transform .5s var(--ease);
}
.rotator .rot-word.is-in { opacity: 1; transform: none; }
.rotator .rot-word.is-out { opacity: 0; transform: translateY(-0.5em); }

/* live system feed card (right side) */
.hero-feed {
  position: absolute; z-index: 1; right: 4%; top: 22%;
  width: 260px; pointer-events: none;
  background: #fff; border: 1px solid rgba(14,14,16,.12);
  border-radius: 16px; padding: 14px 16px 12px;
  box-shadow: 0 14px 38px rgba(14,14,16,.09);
  animation: heroFloat 9s ease-in-out infinite;
}
.feed-head {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: .16em; color: rgba(14,14,16,.45);
  padding-bottom: 8px; border-bottom: 1px solid rgba(14,14,16,.08); margin-bottom: 6px;
}
.feed-head .chip-dot { width: 6px; height: 6px; border-radius: 50%; background: #23A55A; animation: chipPulse 2.4s infinite; }
.feed-lines { display: flex; flex-direction: column; }
.feed-line {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--mono); font-size: 11px; color: var(--ink-soft);
  padding: 5px 0; white-space: nowrap; overflow: hidden;
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.feed-line.on { opacity: 1; transform: none; }
.feed-line .ft { color: rgba(43,43,240,.65); font-size: 10px; letter-spacing: .06em; flex: none; }
.feed-line .fk { color: #23A55A; flex: none; }
@media (max-width: 1280px) { .hero-feed { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-feed { animation: none; } .rotator .rot-word { transition: none; } }
@keyframes chipPulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@media (max-width: 1280px) { .hero-chip { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-deco, .hero-chip { animation: none; } .hero-chip .chip-dot { animation: none; } }
.hero-deco.a { top: 20%; left: 9%; font-size: 30px; color: var(--cobalt); }
.hero-deco.b { bottom: 24%; right: 11%; font-size: 44px; }
.hero-deco.c { top: 30%; right: 16%; font-size: 18px; color: var(--peri); }
.dot-cluster { position: absolute; bottom: 8%; left: 12%; display: grid; grid-template-columns: repeat(4,8px); gap: 9px; }
.dot-cluster i { width: 8px; height: 8px; border-radius: 50%; background: var(--peri); opacity: .55; }

/* ---- 2. LIVE RECEPTIONIST ------------------------------------------ */
/* tall track + sticky child: identical hold mechanism to the 24/7 track,
   so the page catches and settles on the demo like its own page */
.recep-track { height: 180vh; position: relative; }
.recep-track .receptionist { position: sticky; top: 0; }
.receptionist {
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 26px;
  padding-block: clamp(60px, 10vh, 140px);
}
.receptionist .recep-card { width: min(100%, 760px); margin: 0; }

/* "Try now" cue: above the card, aimed at the mic button on the right */
.try-now {
  width: min(100%, 760px);
  display: flex; justify-content: flex-end; align-items: flex-start;
  gap: 10px;
  /* land the arrow tip directly over the mic button's center:
     card padding + half the 78px button, minus the tip's inset within the svg */
  padding-right: calc(clamp(34px, 5vw, 60px) + 39px - (clamp(56px, 7vw, 84px) * 0.178));
  margin-bottom: -12px;
  color: var(--cobalt);
  position: relative; z-index: 3;
  cursor: pointer;
  /* scroll-in zoom entrance (toggled by IO in main.js) */
  opacity: 0; transform: scale(.6);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.try-now.in { opacity: 1; transform: scale(1); }
.try-now-text {
  font-family: var(--serif); font-style: italic; font-weight: 420;
  font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -0.01em;
  transform: translateY(-4px);
}
.try-now-arrow { width: clamp(56px, 7vw, 84px); height: auto; flex: none; }
/* dashed “train” trail: dashes flow along the curve into the solid arrowhead */
.try-now-curve {
  stroke-dasharray: 5 6;               /* pathLength=100 → dash period 11 */
  animation: tryDashFlow 1.8s linear infinite;
}
@keyframes tryDashFlow {
  from { stroke-dashoffset: 11; }
  to   { stroke-dashoffset: 0; }
}
/* arrowhead nudges toward the mic while its sides flare in rhythm with the dashes */
.try-now-head {
  transform-box: fill-box;
  transform-origin: 50% 100%;   /* anchored at the tip so the wings do the moving */
  animation: tryHeadNudge 1.8s ease-in-out infinite;
}
@keyframes tryHeadNudge {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(3px) scale(1.22); }
}
@media (prefers-reduced-motion: reduce) {
  .try-now { opacity: 1; transform: none; transition: none; }
  .try-now-curve { animation: none; }
  .try-now-head { animation: none; }
}
.recep-card {
  max-width: 760px; margin: 0 auto;
  background: var(--ink); color: var(--paper);
  border-radius: 30px; padding: clamp(34px, 5vw, 60px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
  position: relative; overflow: hidden;
  box-shadow: 0 40px 90px -50px rgba(43,43,240,.6);
}
.recep-card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx,70%) var(--my,30%), rgba(43,43,240,.35), transparent 60%);
  opacity: 0; transition: opacity .5s; pointer-events: none;
}
.recep-card:hover::after { opacity: 1; }
.recep-left { display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 2; }
.live-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--peri); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #46e08a; box-shadow: 0 0 0 0 rgba(70,224,138,.7); animation: livePulse 1.8s infinite; }
@keyframes livePulse { 0%{box-shadow:0 0 0 0 rgba(70,224,138,.6);} 70%{box-shadow:0 0 0 12px rgba(70,224,138,0);} 100%{box-shadow:0 0 0 0 rgba(70,224,138,0);} }
.recep-card h3 { font-size: clamp(26px, 3vw, 40px); color: var(--paper); }
.recep-card p { color: rgba(241,239,233,.6); font-size: 15px; max-width: 34ch; }
.recep-action { display: flex; align-items: center; gap: 22px; position: relative; z-index: 2; }
.voice-bars { display: flex; align-items: flex-end; gap: 4px; height: 44px; }
.voice-bars i { width: 4px; background: var(--peri); border-radius: 4px; height: 30%; animation: vb 1s ease-in-out infinite; }
.voice-bars i:nth-child(2){animation-delay:.15s} .voice-bars i:nth-child(3){animation-delay:.3s}
.voice-bars i:nth-child(4){animation-delay:.45s} .voice-bars i:nth-child(5){animation-delay:.6s}
@keyframes vb { 0%,100%{height:25%;} 50%{height:95%;} }
.talk-btn {
  width: 78px; height: 78px; border-radius: 50%;
  background: var(--cobalt); border: none; cursor: pointer;
  display: grid; place-content: center; color: #fff;
  transition: transform .4s var(--ease);
  animation: talkPulse 2.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.talk-btn:hover { transform: scale(1.08); }
@keyframes talkPulse {
  0% { box-shadow: 0 0 0 0 rgba(43,43,240,.45); }
  60% { box-shadow: 0 0 0 20px rgba(43,43,240,0); }
  100% { box-shadow: 0 0 0 0 rgba(43,43,240,0); }
}
@media (prefers-reduced-motion: reduce) {
  .talk-btn { animation: none; box-shadow: 0 0 0 0 rgba(43,43,240,.5); }
}
.talk-btn svg { width: 30px; height: 30px; }

/* live call states — set by js/voice-agent.js via data-call on .recep-card */
.talk-btn .tb-end { display: none; }
.recep-card[data-call="connecting"] .talk-btn { animation: none; opacity: .7; transform: scale(.96); }
.recep-card[data-call="live"] .talk-btn { background: #cf4326; animation: none; }
.recep-card[data-call="live"] .talk-btn:hover { transform: scale(1.04); }
.recep-card[data-call="live"] .talk-btn .tb-mic { display: none; }
.recep-card[data-call="live"] .talk-btn .tb-end { display: block; }
/* while the SDK feeds real audio levels, the ambient loop yields to the live waveform */
.recep-card.viz-live .voice-bars i { animation: none; transition: height .09s linear; }
.recep-credit {
  display: block; width: min(100%, 760px); margin: 14px auto 0;
  text-align: right; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); opacity: .55;
}

/* ---- 3. PROBLEM (dark) --------------------------------------------- */
.problem {
  background: var(--dark); color: var(--paper);
  padding-block: clamp(120px, 22vh, 280px);
  overflow: hidden;
  position: relative;
}
/* curtain #1: rides up over the pinned services index;
   curtain #2: then pins itself and the cobalt 24/7 page lifts up over it —
   no visible seams while scrolling */
.problem-track { height: calc(100svh + 145vh); position: relative; z-index: 3; margin-top: -100vh; }
.problem-track .problem {
  position: sticky; top: 0; min-height: 100svh;
  display: flex; align-items: center;
  padding-block: clamp(60px, 10vh, 140px);
}
.problem .eyebrow { color: var(--peri); }
.problem .eyebrow::before { color: var(--cobalt); }
.problem h2 { color: var(--paper); margin: 28px 0 40px; max-width: 18ch; }
.problem h2 em { color: var(--cobalt); }
.problem-body { max-width: 60ch; }
.problem-body p { font-size: clamp(19px, 1.7vw, 27px); line-height: 1.5; color: rgba(241,239,233,.78); font-weight: 300; }
.problem-body p + p { margin-top: 22px; }
.problem-body .accent { color: var(--paper); font-weight: 400; }
/* "but — …what if it just ran itself?" — a bare .h-section h2 (identical to the headline
   above); only spacing + accent colors added, typography fully inherited. */
.but-beat { margin-top: 60px; color: var(--paper); white-space: nowrap; font-size: clamp(28px, 4.6vw, 76px) !important; }
/* per-character typing reveal: chars occupy layout from the start (zero shift), fade in sequentially */
.but-beat .bb-ch { opacity: 0; }
.but-beat .bb-ch.on { opacity: 1; }
.but-beat .bb-caret { display: inline-block; width: 0.045em; height: 0.72em; margin-left: 0.05em; background: var(--peri); vertical-align: baseline; transform: translateY(0.06em); opacity: 0; }
.but-beat .bb-caret.on { opacity: 1; animation: bbBlink 0.9s steps(1) infinite; }
@keyframes bbBlink { 50% { opacity: 0; } }
.but-beat em { font-style: italic; color: var(--cobalt); }
.problem .wrap { position: relative; z-index: 2; }

/* ---- 4. ZOOM BIG NUMBER (cobalt) ----------------------------------- */
.bignum-track { height: 260vh; position: relative; z-index: 4; margin-top: -100vh; background: var(--cobalt); }
.bignum-sticky {
  position: sticky; top: 0; height: 100svh;
  display: grid; place-items: center; overflow: hidden;
  background: var(--cobalt); color: #fff;
}
.bignum-figure {
  z-index: 2;
  position: relative; top: -3.5vh;   /* lift so the sentence below reads as one composition */
  font-family: var(--serif); font-weight: 360;
  font-size: min(38vw, 48vh); line-height: .8; letter-spacing: -0.05em;
  will-change: transform; color: #fff;
  position: relative; text-align: center;
}
/* black shade that the section starts under (beat 1), fades to cobalt */
.bignum-shade { position: absolute; inset: 0; background: #0A0A0E; z-index: 1; }
.bignum-q {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif); font-weight: 420;
  font-size: clamp(52px, 9vw, 136px);
  letter-spacing: -0.03em; line-height: 1.02;
  color: #FFF4E6; text-align: center; z-index: 2;
  width: min(92vw, 16ch);
  opacity: 0;
  text-shadow: 0 0 60px rgba(255,244,230,.55), 0 0 140px rgba(255,215,166,.35);
}
.bignum-line {
  position: absolute; left: 50%; bottom: 15%;
  transform: translateX(-50%); z-index: 2;
  font-size: clamp(17px, 2.4vh, 22px); font-weight: 500;
  letter-spacing: .005em; line-height: 1.5;
  color: rgba(255,244,230,.92); text-align: center;
  max-width: min(86vw, 56ch); text-wrap: balance;
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .bignum-shade { display: none; }
  .bignum-q { display: none; }
  .bignum-line { opacity: 1 !important; }
}
/* white cover the final zoom resolves into — the glyphs fill the frame and the screen goes white */
.bignum-white { position: absolute; inset: 0; background: #fff; z-index: 4; opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .bignum-white { display: none; } }
.bignum-peach {
  position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: radial-gradient(380px circle at var(--mx,50%) var(--my,50%), rgba(255,215,166,.5), transparent 60%);
  mix-blend-mode: soft-light;
}

/* ---- 5. STAT TILES ------------------------------------------------- */
.stats { padding-block: clamp(90px,14vh,180px); }
.stats-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 50px; flex-wrap: wrap; }
.stats-head h2 { max-width: 14ch; }
.stat-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.stat-tile {
  border-radius: 22px; padding: 28px; min-height: 300px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden; cursor: default;
  transition: flex .5s var(--ease);
}
.stat-tile .num { font-family: var(--serif); font-size: clamp(40px,4vw,66px); line-height: .9; letter-spacing: -0.03em; }
.stat-tile .label { font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.stat-tile .desc {
  font-size: 14px; line-height: 1.45; margin-top: 10px;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .5s var(--ease), opacity .4s, margin-top .4s;
}
.stat-tile.active .desc { max-height: 120px; opacity: .85; }
.stat-tile.t-pale { background: var(--pale-blue); color: var(--ink); }
.stat-tile.t-cobalt { background: var(--cobalt); color: #fff; }
.stat-tile.t-cream { background: var(--cream); color: var(--ink); border: 1px solid rgba(14,14,16,.08); }
.stat-tile.t-black { background: var(--ink); color: var(--paper); }
.stat-tile .corner { position: absolute; top: 22px; right: 24px; opacity: .5; font-family: var(--serif); }
@media (max-width: 900px) { .stat-row { grid-template-columns: repeat(2,1fr); } .stat-tile{min-height:220px;} }

/* ---- 6. HOW IT WORKS ----------------------------------------------- */
.how { padding-block: clamp(90px,14vh,180px); }
.how-head { margin-bottom: 70px; max-width: 20ch; }
.step { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: center; padding-block: clamp(50px, 9vh, 110px); border-top: 1px solid rgba(14,14,16,.12); }
.step-num { display: inline-flex; align-items: center; gap: 10px; }
.step-pill { font-family: var(--sans); font-weight: 600; font-size: 13px; padding: 6px 14px; border-radius: 100px; background: var(--ink); color: var(--paper); letter-spacing: .04em; }
.step h3 { font-size: clamp(30px,3.6vw,52px); margin: 20px 0 16px; }
.step h3 em { color: var(--cobalt); }
.step p { font-size: 17px; line-height: 1.5; color: var(--ink-soft); max-width: 38ch; }
.step-visual { position: relative; }

/* 01 — pill grid */
.biz-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.biz-chip { font-family: var(--sans); font-size: 15px; font-weight: 500; padding: 11px 20px; border-radius: 100px; border: 1.5px solid rgba(14,14,16,.18); cursor: pointer; transition: all .3s var(--ease); background: var(--paper); }
.biz-chip:hover { transform: translateY(-2px); }
.biz-chip.sel { background: var(--cobalt); color: #fff; border-color: var(--cobalt); }
.biz-chip-other { border-style: dashed; color: var(--cobalt); border-color: rgba(43,43,240,.45); }
/* 02 — service cards */
.svc-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.svc-card { background: var(--paper-2); border: 1px solid rgba(14,14,16,.08); border-radius: 16px; padding: 20px; transition: transform .4s var(--ease); }
.svc-card:hover { transform: translateY(-4px); }
.svc-card .tick { width: 26px; height: 26px; border-radius: 50%; background: var(--cobalt); color: #fff; display: grid; place-content: center; font-size: 14px; margin-bottom: 12px; }
.svc-card h4 { font-family: var(--sans); font-size: 16px; font-weight: 650; margin-bottom: 4px; }
.svc-card p { font-size: 13px; color: var(--ink-soft); max-width: none; }
/* 03 — roadmap notification */
.roadmap-card { background: var(--ink); color: var(--paper); border-radius: 22px; padding: 30px; max-width: 420px; box-shadow: 0 40px 80px -50px rgba(0,0,0,.6); }
.roadmap-card .bell { width: 40px; height: 40px; border-radius: 12px; background: var(--cobalt); display: grid; place-content: center; margin-bottom: 18px; }
.roadmap-card h4 { font-family: var(--serif); font-size: 26px; font-weight: 400; color: var(--paper); margin-bottom: 8px; }
.roadmap-card p { color: rgba(241,239,233,.6); font-size: 14px; margin-bottom: 22px; }
.roadmap-actions { display: flex; gap: 10px; }
.roadmap-actions .pill { font-size: 14px; padding: 11px 22px; }
/* 04 — live build card */
.build-card { background: var(--cobalt); color: #fff; border-radius: 22px; padding: 32px; max-width: 420px; position: relative; overflow: hidden; }
.build-card .live-badge { position: absolute; top: 26px; right: 26px; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; background: rgba(255,255,255,.15); padding: 6px 12px; border-radius: 100px; }
.build-card h4 { font-family: var(--serif); font-size: 30px; font-weight: 400; color: #fff; margin: 40px 0 10px; }
.build-card p { color: rgba(255,255,255,.78); font-size: 14px; }
.build-bars { display: flex; gap: 6px; margin-top: 22px; }
.build-bars i { flex: 1; height: 6px; border-radius: 4px; background: rgba(255,255,255,.25); }
.build-bars i.done { background: #fff; }
@media (max-width: 820px) { .step { grid-template-columns: 1fr; gap: 30px; } }

/* ---- 7. FUNNEL ----------------------------------------------------- */
.funnel { padding-block: clamp(90px,14vh,180px); }
.funnel-head { text-align: center; margin-bottom: 70px; }
.funnel-stages { display: flex; flex-direction: column; gap: 0; }
.f-stage { display: grid; grid-template-columns: 200px 1fr 260px; gap: 30px; align-items: center; padding-block: 34px; border-top: 1px solid rgba(14,14,16,.12); }
.f-stage:last-child { border-bottom: 1px solid rgba(14,14,16,.12); }
.f-pct { font-family: var(--serif); font-size: clamp(40px,5vw,72px); line-height: .9; letter-spacing: -0.03em; }
.f-pct.lo { color: var(--cobalt); }
.f-dots { display: grid; grid-template-columns: repeat(20, 1fr); gap: 8px; }
.f-dots i { aspect-ratio: 1; border-radius: 50%; background: var(--ink); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.f-label { text-align: right; }
.f-label .t { font-weight: 650; font-size: 16px; }
.f-label .s { font-size: 13px; color: var(--ink-soft); }
@media (max-width: 820px){ .f-stage{ grid-template-columns: 90px 1fr; } .f-label{ display:none; } .f-dots{ grid-template-columns: repeat(12,1fr);} }

/* ---- COVER TRACK: automation pins, purple lifts up over it ---------- */
.cover-track { position: relative; }
.cover-dwell { height: 80vh; }        /* scroll distance the white section holds */
.cover-dwell-short { height: 50vh; }  /* scroll distance the pile holds */

/* ---- 8. TECH PLAYGROUND (cobalt physics) --------------------------- */
.tech { background: #5B2BEF; color: #fff; min-height: 100svh; padding: clamp(80px,12vh,140px) var(--pad-x) 0; overflow: hidden; position: sticky; top: 0; }
.tech-head { max-width: 900px; position: relative; z-index: 4; pointer-events: none; }
.tech-head .eyebrow { color: rgba(255,255,255,.7); }
.tech-head .eyebrow::before { color: #fff; background: #fff; }
.tech-head h2 { color: #fff; margin-top: 24px; }
.tech-head p { color: rgba(255,255,255,.8); margin-top: 20px; font-size: 18px; max-width: 44ch; }
.tech-stage { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.tool-tile {
  position: absolute; top: 0; left: 0;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(0,0,0,.22);
  will-change: transform; pointer-events: none;
}
.tool-tile img { width: 27px; height: 27px; display: block; pointer-events: none; }

/* ---- 9. CASE STUDIES ----------------------------------------------- */
.cases { padding-block: clamp(90px,14vh,180px); }
.cases-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; margin-bottom: 50px; }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.case-card {
  position: relative; border-radius: 24px; overflow: hidden;
  min-height: 340px; padding: 36px;
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between;
  cursor: pointer; isolation: isolate;
}
.case-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(500px circle at var(--mx,50%) var(--my,0%), rgba(43,43,240,.55), transparent 55%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.case-card:hover::before { opacity: 1; }
.case-card .tag { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--peri); }
.case-card h3 { font-size: clamp(26px,2.6vw,38px); color: var(--paper); max-width: 18ch; }
.case-metric { font-family: var(--serif); font-size: clamp(48px,5vw,80px); color: #fff; line-height: .9; letter-spacing: -0.03em; }
.case-foot { display: flex; align-items: center; justify-content: space-between; }
.case-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; opacity: 0; transform: translateX(-8px); transition: all .4s var(--ease); }
.case-card:hover .case-link { opacity: 1; transform: none; }
.case-card.alt { background: var(--pale-blue); color: var(--ink); }
.case-card.alt h3, .case-card.alt .case-metric { color: var(--ink); }
.case-card.alt .tag { color: var(--cobalt); }
@media (max-width: 820px){ .case-grid{ grid-template-columns: 1fr; } }

/* ---- 10. FAQ ------------------------------------------------------- */
.faq { padding-block: clamp(90px,14vh,180px); }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: 60px; align-items: start; }
.faq-intro h2 { margin-bottom: 22px; }
.faq-intro p { color: var(--ink-soft); font-size: 16px; line-height: 1.5; }
.faq-intro a { color: var(--cobalt); text-decoration: none; border-bottom: 1px solid currentColor; }
.faq-list { border-top: 1px solid rgba(14,14,16,.14); }
.faq-item { border-bottom: 1px solid rgba(14,14,16,.14); }
.faq-q { width: 100%; background: none; border: none; cursor: pointer; text-align: left; padding: 26px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-family: var(--sans); }
.faq-q span { font-size: clamp(17px,1.5vw,21px); font-weight: 540; color: var(--ink); }
.faq-ico { flex: 0 0 auto; width: 30px; height: 30px; position: relative; }
.faq-ico::before, .faq-ico::after { content: ""; position: absolute; inset: 0; margin: auto; background: var(--ink); transition: transform .4s var(--ease), opacity .3s; }
.faq-ico::before { width: 15px; height: 1.6px; }
.faq-ico::after { width: 1.6px; height: 15px; }
.faq-item.open .faq-ico::after { transform: rotate(90deg); opacity: 0; }
.faq-item.open .faq-q span { color: var(--cobalt); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.faq-a p { padding: 0 60px 28px 0; color: var(--ink-soft); font-size: 16px; line-height: 1.55; }
@media (max-width: 820px){ .faq-grid{ grid-template-columns: 1fr; gap: 30px; } }

/* ---- 11. CONTACT --------------------------------------------------- */
.contact { padding-block: clamp(90px,14vh,180px); }
.contact-card { background: var(--ink); color: var(--paper); border-radius: 32px; padding: clamp(40px,6vw,80px); position: relative; overflow: hidden; }
.contact-card::after { content:""; position:absolute; inset:0; background: radial-gradient(500px circle at var(--mx,80%) var(--my,20%), rgba(43,43,240,.4), transparent 60%); pointer-events: none; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; position: relative; z-index: 2; align-items: center; }
.contact-card .eyebrow { color: var(--peri); }
.contact-card h2 { color: var(--paper); margin: 24px 0 0; max-width: 14ch; }
.contact-card h2 em { color: var(--cobalt); }
.intake { display: flex; flex-direction: column; gap: 14px; }
.intake label { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: rgba(241,239,233,.6); margin-bottom: -4px; }
.intake input, .intake select, .intake textarea {
  font-family: var(--sans); font-size: 16px; padding: 15px 18px;
  border-radius: 14px; border: 1.5px solid rgba(241,239,233,.18);
  background: rgba(241,239,233,.05); color: var(--paper); outline: none;
  transition: border-color .3s;
}
.intake input::placeholder, .intake textarea::placeholder { color: rgba(241,239,233,.4); }
.intake input:focus, .intake select:focus, .intake textarea:focus { border-color: var(--peri); }
.intake select option { color: var(--ink); }
.intake .pill { justify-content: center; margin-top: 6px; }
@media (max-width: 820px){ .contact-grid{ grid-template-columns: 1fr; gap: 36px; } }

/* ---- form validation + send states (js/forms.js, Formspree) --------- */
.field-invalid { border-color: #e05a3d !important; }
.form-err {
  display: block; font-family: var(--mono); font-size: 11px;
  letter-spacing: .05em; color: #e05a3d; margin: -6px 0 -2px;
}
.form-fail {
  font-size: 14px; line-height: 1.5; color: #ffb9a6;
  background: rgba(224,90,61,.12); border: 1px solid rgba(224,90,61,.4);
  border-radius: 12px; padding: 12px 16px; margin-bottom: 4px;
}
.join-form .form-err { margin: 2px 0 0; }
.join-form .form-fail { margin: 0 0 18px; }
form [type="submit"]:disabled { opacity: .55; pointer-events: none; }

/* ---- 12. FOOTER ---------------------------------------------------- */
.footer { background: var(--paper); padding: clamp(80px,12vh,140px) var(--pad-x) 40px; overflow: hidden; }
.footer-word {
  font-family: var(--serif); font-weight: 380;
  font-size: 24vw; line-height: .82; letter-spacing: -0.04em;
  text-align: center; user-select: none; cursor: default;
  display: flex; justify-content: center; flex-wrap: nowrap;
}
.footer-word .fl {
  color: transparent; -webkit-text-stroke: 1.5px var(--ink);
  transition: color .25s, -webkit-text-stroke-color .25s;
}
.footer-word .fl.lit { color: var(--cobalt); -webkit-text-stroke-color: var(--cobalt); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 70px; }
.footer-tag { font-family: var(--serif); font-size: clamp(22px,2.4vw,34px); font-weight: 400; max-width: 18ch; line-height: 1.1; letter-spacing: -0.02em; }
.footer-cols { display: flex; gap: 70px; flex-wrap: wrap; }
.footer-col h5 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--ink); text-decoration: none; font-size: 15px; padding: 5px 0; opacity: .8; transition: opacity .3s, transform .3s; }
.footer-col a:hover { opacity: 1; transform: translateX(3px); color: var(--cobalt); }
.footer-base { display: flex; justify-content: space-between; align-items: center; margin-top: 50px; padding-top: 26px; border-top: 1px solid rgba(14,14,16,.12); font-size: 13px; color: var(--ink-soft); flex-wrap: wrap; gap: 12px; }
.footer-base .asterisk-mark { font-size: 20px; }

/* ---- intake submitted state: replaces the whole card content -------- */
.intake-sent { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; justify-content: center; min-height: 340px; padding: clamp(24px, 4vh, 48px) 0; position: relative; z-index: 2; }
.intake-sent[hidden] { display: none !important; }
.contact-grid[hidden] { display: none !important; }
.intake-sent h2 { color: var(--paper); }
.intake-sent p { color: rgba(255,244,230,.85); }
.intake-sent .sent-note { color: rgba(255,244,230,.5); }
.intake-sent p { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: var(--ink-soft); max-width: 46ch; text-wrap: pretty; }
.intake-sent .sent-note { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(14,14,16,.42); }

[hidden] { display: none !important; }


/* team photo fallback: gradient circle with the person's initial when no image exists */
.team-photo.ph-fallback { display: grid; place-items: center; background: linear-gradient(135deg, var(--cobalt), var(--peri, #8a9ff5)); }
.team-photo.ph-fallback::after {
  content: attr(data-initial);
  font-family: var(--serif); font-size: 44px; color: #fff; line-height: 1;
}
