/* Layout: one centred 1180px column over a fixed field of drifting brand-colour light.
   Glass panels float above it; pinned sections scrub with the scroll (--p, 0 → 1). */
:root {
  --page: #07081a;
  --fg: #eef0ff;
  --muted: #a8adcb;
  --faint: #8186a8;
  --accent: #8a7dff;
  --blue: #5b78ff;
  --coral: #ff7a6b;
  --live: #4fd890;
  --glass: rgb(255 255 255 / 0.07);
  --glass-hi: rgb(255 255 255 / 0.12);
  --glass-solid: #171936;
  --edge: rgb(255 255 255 / 0.16);
  --edge-lit: rgb(255 255 255 / 0.55);
  --top: rgb(255 255 255 / 0.2);
  --float: rgb(0 0 0 / 0.45);
  --well: rgb(255 255 255 / 0.05);
  --line: rgb(255 255 255 / 0.1);
  --orb-a: rgb(106 92 245 / 0.55);
  --orb-b: rgb(56 92 246 / 0.45);
  --orb-c: rgb(255 107 92 / 0.32);
  --brand: linear-gradient(120deg, #8a7dff 0%, #5b78ff 50%, #ff7a6b 100%);
  --btn-fg: #ffffff;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  --body: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --radius: 22px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --page: #eef0fa;
    --fg: #14162b;
    --muted: #464b6b;
    --faint: #62678a;
    --accent: #4f3fe6;
    --blue: #2d50e8;
    --coral: #d9493a;
    --live: #0f7a3a;
    --glass: rgb(255 255 255 / 0.5);
    --glass-hi: rgb(255 255 255 / 0.68);
    --glass-solid: #ffffff;
    --edge: rgb(255 255 255 / 0.75);
    --edge-lit: rgb(255 255 255 / 1);
    --top: rgb(255 255 255 / 0.9);
    --float: rgb(40 44 110 / 0.16);
    --well: rgb(40 44 110 / 0.05);
    --line: rgb(40 44 110 / 0.12);
    --orb-a: rgb(106 92 245 / 0.36);
    --orb-b: rgb(56 92 246 / 0.28);
    --orb-c: rgb(255 107 92 / 0.26);
    --brand: linear-gradient(120deg, #5b4cf0 0%, #2d50e8 50%, #e2503f 100%);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --page: #eef0fa;
  --fg: #14162b;
  --muted: #464b6b;
  --faint: #62678a;
  --accent: #4f3fe6;
  --blue: #2d50e8;
  --coral: #d9493a;
  --live: #0f7a3a;
  --glass: rgb(255 255 255 / 0.5);
  --glass-hi: rgb(255 255 255 / 0.68);
  --glass-solid: #ffffff;
  --edge: rgb(255 255 255 / 0.75);
  --edge-lit: rgb(255 255 255 / 1);
  --top: rgb(255 255 255 / 0.9);
  --float: rgb(40 44 110 / 0.16);
  --well: rgb(40 44 110 / 0.05);
  --line: rgb(40 44 110 / 0.12);
  --orb-a: rgb(106 92 245 / 0.36);
  --orb-b: rgb(56 92 246 / 0.28);
  --orb-c: rgb(255 107 92 / 0.26);
  --brand: linear-gradient(120deg, #5b4cf0 0%, #2d50e8 50%, #e2503f 100%);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--fg);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--page);
}
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.025em; line-height: 1.04; margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; padding: 8px 14px; background: var(--glass-solid); border-radius: 10px; }

/* ---------- Backdrop: the light the glass frosts ---------- */
.backdrop { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; opacity: .6; }
.orb { position: absolute; border-radius: 50%; will-change: transform; }
.orb-a { width: 70vmax; height: 70vmax; left: -22vmax; top: -26vmax; background: radial-gradient(closest-side, var(--orb-a), transparent); animation: drift-a 34s ease-in-out infinite alternate; }
.orb-b { width: 60vmax; height: 60vmax; right: -24vmax; top: 18vh; background: radial-gradient(closest-side, var(--orb-b), transparent); animation: drift-b 40s ease-in-out infinite alternate; }
.orb-c { width: 52vmax; height: 52vmax; left: 18vw; bottom: -30vmax; background: radial-gradient(closest-side, var(--orb-c), transparent); animation: drift-c 46s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate3d(14vw, 18vh, 0) scale(1.1); } }
@keyframes drift-b { to { transform: translate3d(-18vw, 24vh, 0) scale(.92); } }
@keyframes drift-c { to { transform: translate3d(-10vw, -26vh, 0) scale(1.15); } }
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Glass ---------- */
.glass {
  position: relative;
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px var(--float), inset 0 1px 0 var(--top), inset 0 -1px 0 rgb(0 0 0 / .08);
}
/* lit top-left rim */
.glass::before {
  content: "";
  position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, var(--edge-lit), transparent 38%, transparent 70%, var(--edge) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
/* specular highlight that follows the pointer */
.glass[data-sheen]::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 30%) var(--my, -20%), rgb(255 255 255 / .12), transparent 60%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.glass[data-sheen]:hover::after { opacity: 1; }
.glass.lift { transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .5s var(--ease); }
.glass.lift:hover { transform: translateY(-4px); background: var(--glass-hi); box-shadow: 0 34px 70px -24px var(--float), inset 0 1px 0 var(--top); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-solid); }
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: var(--glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .grain { display: none; }
}

/* ---------- Navigation ---------- */
.nav-bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; padding-block: 14px; }
.nav {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 16px; border-radius: 999px;
  transition: background .4s var(--ease);
}
.scrolled .nav { background: var(--glass-hi); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.3rem/1 var(--display); letter-spacing: -0.02em; margin-right: auto; }
.logo svg { width: 28px; height: 28px; flex: none; }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  text-decoration: none; padding: 8px 14px; border-radius: 999px;
  font-weight: 600; font-size: .92rem; color: var(--muted); transition: color .3s, background .3s;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a[aria-current="page"] { color: var(--fg); background: var(--well); }
.nav-signin { white-space: nowrap; text-decoration: none; padding: 8px 14px; font-weight: 600; font-size: .92rem; color: var(--muted); transition: color .3s; }
.nav-signin:hover { color: var(--fg); }
@media (max-width: 620px) {
  .nav .btn { display: none; }
  .logo span { display: none; }
  .nav-links a, .nav-signin { padding: 8px 10px; }
}

/* ---------- Buttons and pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font: 700 .95rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .4s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { color: var(--btn-fg); background: var(--brand); box-shadow: 0 12px 30px -10px rgb(91 76 240 / .7); border: 0; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgb(91 76 240 / .8); }
.btn-glass { border-radius: 999px; }
.btn-glass:hover { transform: translateY(-2px); background: var(--glass-hi); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .86rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line);
  font: 600 .78rem/1.2 var(--body); letter-spacing: .02em; color: var(--muted); background: var(--well);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-live { color: var(--live); }
.pill-live .dot { box-shadow: 0 0 0 0 currentColor; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }

/* ---------- Type ---------- */
.eyebrow { font: 700 .78rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.display { font-size: clamp(2.9rem, 8.2vw, 6.6rem); font-weight: 800; letter-spacing: -0.035em; line-height: .98; }
.h2 { font-size: clamp(2.1rem, 5.2vw, 4rem); font-weight: 800; }
.h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.lede { font-size: clamp(1.08rem, 1.7vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 40rem; }
.muted { color: var(--muted); }
.ink { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(80px, 12vw, 150px); }
.section-head { display: grid; gap: 18px; max-width: 46rem; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* Hero */
.hero { padding-block: clamp(48px, 9vw, 110px) 32px; text-align: center; }
.hero-inner { display: grid; justify-items: center; gap: 26px; }
.hero .lede { margin-inline: auto; }
.hero .actions { justify-content: center; }
.hero-note { font-size: .86rem; color: var(--faint); }

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0; transform: translate3d(0, 34px, 0) scale(.985); filter: blur(6px);
    transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .js [data-reveal].in { opacity: 1; transform: none; filter: none; }
}

/* ---------- Scrub stages (pinned while scrolled) ---------- */
[data-scrub] { --p: 0; position: relative; }
.pin { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 76px); }

.ring { --v: 86; width: 64px; height: 64px; flex: none; position: relative; display: grid; place-items: center; font: 700 1.05rem/1 var(--mono); }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; }
.ring .track { stroke: var(--line); }
.ring .bar { stroke: url(#brandStroke); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--v)); }
.wave { display: flex; align-items: center; gap: 3px; height: 42px; }
.wave i { flex: 1; border-radius: 3px; background: var(--accent); opacity: .55; height: var(--h); }
.wave i:nth-child(3n) { background: var(--coral); }
.criteria { display: grid; gap: 7px; }
.crit { display: flex; align-items: center; gap: 9px; font-size: .8rem; }
.crit .tick { width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; flex: none; font-size: .7rem; font-weight: 800; }
.crit .yes { background: color-mix(in srgb, var(--live) 18%, transparent); color: var(--live); }
.crit .no { background: color-mix(in srgb, var(--coral) 18%, transparent); color: var(--coral); }
.crit em { margin-left: auto; font-style: normal; font-family: var(--mono); color: var(--faint); font-size: .74rem; }

/* ---------- Phone mock-up ---------- */
.phone {
  width: 236px; aspect-ratio: 9 / 19.2; max-width: 100%;
  border-radius: 42px; padding: 10px;
  position: relative;
}
.phone-screen { height: 100%; border-radius: 33px; overflow: hidden; background: var(--well); position: relative; padding: 38px 14px 14px; display: grid; align-content: start; gap: 10px; }
.phone-screen::before { content: ""; position: absolute; top: 10px; left: 50%; translate: -50% 0; width: 78px; height: 22px; border-radius: 999px; background: #05060f; }
.phone-title { font: 800 1.25rem/1.1 var(--display); letter-spacing: -0.03em; }
.phone-sub { font-size: .68rem; color: var(--faint); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.visit { padding: 10px 11px; border-radius: 14px; background: var(--glass-hi); border: 1px solid var(--line); display: grid; gap: 3px; font-size: .72rem; }
.visit b { font-size: .8rem; }
.visit small { color: var(--faint); font-family: var(--mono); font-size: .66rem; }
.visit .tag { width: fit-content; padding: 2px 7px; border-radius: 6px; font-weight: 700; font-size: .62rem; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); }
.rec { margin-top: 4px; display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 14px; background: color-mix(in srgb, var(--coral) 16%, transparent); font-size: .72rem; font-weight: 700; color: var(--coral); }
.rec i { width: 10px; height: 10px; border-radius: 50%; background: currentColor; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

.line { display: grid; grid-template-columns: 74px 1fr; gap: 10px; font-size: .86rem; line-height: 1.5; }
.line .who { font-family: var(--mono); font-size: .72rem; color: var(--faint); padding-top: 3px; }
.line .who b { display: block; font-family: var(--body); font-size: .76rem; }

/* ---------- Statement (words light up) ---------- */
.statement { height: 240vh; }
.statement .pin { min-height: calc(100svh - 96px); display: grid; align-content: center; }
.statement p { font: 800 clamp(1.9rem, 4.6vw, 3.7rem)/1.12 var(--display); letter-spacing: -0.035em; max-width: 22ch; text-wrap: balance; }
.statement .w { opacity: .16; transition: opacity .35s ease; }
.statement .w.lit { opacity: 1; }

/* ---------- Bento features ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.card { padding: 26px; display: grid; gap: 12px; align-content: start; min-width: 0; overflow: hidden; }
.card p { color: var(--muted); font-size: .96rem; }
.card .ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--well); border: 1px solid var(--line); color: var(--accent); }
.card .ic svg { width: 22px; height: 22px; }
.span-4 { grid-column: span 4; }
.span-3 { grid-column: span 3; }
.span-2 { grid-column: span 2; }
@media (max-width: 960px) { .span-4, .span-3, .span-2 { grid-column: span 3; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .span-4, .span-3, .span-2 { grid-column: auto; } }

.chat { display: grid; gap: 9px; margin-top: 6px; }
.bubble { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: .86rem; line-height: 1.5; }
.bubble.me { justify-self: end; background: var(--brand); color: var(--btn-fg); border-bottom-right-radius: 6px; }
.bubble.ekko { background: var(--well); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bubble.ekko ol { margin: 6px 0 0; padding-left: 18px; }
.bubble.ekko li span { font-family: var(--mono); color: var(--faint); font-size: .78rem; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: bounce 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-4px); } }
.typing-bubble { display: none; }
.js .reply-in:not(.answered) .typing-bubble { display: block; }
.js .reply-in:not(.answered) .bubble.ekko.answer { display: none; }
.js .reply-in.answered .bubble.ekko.answer { animation: rise .7s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.meter { display: grid; gap: 8px; margin-top: 4px; }
.meter div { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: .82rem; }
.meter i { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.meter i::after { content: ""; display: block; height: 100%; width: var(--w); background: var(--brand); border-radius: inherit; }
.meter em { font-style: normal; font-family: var(--mono); color: var(--faint); font-size: .76rem; }

/* ---------- CTA ---------- */
.cta { padding: clamp(40px, 7vw, 80px); text-align: center; display: grid; justify-items: center; gap: 22px; border-radius: 34px; overflow: hidden; }
.cta .actions { justify-content: center; }

/* ---------- Split rows (product page) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split .copy { display: grid; gap: 18px; align-content: start; }
.ticks { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--muted); }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.ticks li::before { content: "✓"; font-weight: 800; color: var(--accent); }
.panel { padding: 22px; display: grid; gap: 14px; min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

/* Appointment board: one visit travels from Set to Sold */
.board-stage { height: 320vh; }
.board-stage .pin { min-height: calc(100svh - 96px); display: grid; align-content: center; gap: 32px; }
.board { padding: 18px; }
.board-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; position: relative; }
.col { display: grid; gap: 8px; align-content: start; min-height: 230px; padding: 10px; border-radius: 16px; background: var(--well); transition: box-shadow .5s var(--ease); }
.col h4 { margin: 2px 4px 6px; font: 700 .78rem/1 var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--faint); display: flex; justify-content: space-between; }
.appt { padding: 10px 11px; border-radius: 12px; background: var(--glass-hi); border: 1px solid var(--line); font-size: .78rem; display: grid; gap: 2px; min-width: 0; }
.appt b { font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appt small { color: var(--faint); font-family: var(--mono); font-size: .68rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appt.ghost { opacity: .55; }
.slot, .traveler { height: 88px; overflow: hidden; }
.slot { border: 1px dashed var(--line); background: transparent; }
.traveler {
  position: absolute; top: 36px; left: 10px; z-index: 2;
  width: calc((100% - 36px) / 4 - 20px);
  background: var(--glass-solid); border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  box-shadow: 0 18px 40px -14px var(--float), 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
  transform: translateX(calc(var(--step, 0) * (100% + 32px)));
  transition: transform .7s var(--ease);
}
.traveler .st { display: none; color: var(--accent); font-weight: 700; }
.board-stage[data-step="0"] .st0, .board-stage[data-step="1"] .st1, .board-stage[data-step="2"] .st2, .board-stage[data-step="3"] .st3 { display: block; }
.board-stage[data-step="3"] .traveler .st3 { color: var(--live); }
.board-stage[data-step="0"] .col:nth-child(1), .board-stage[data-step="1"] .col:nth-child(2), .board-stage[data-step="2"] .col:nth-child(3), .board-stage[data-step="3"] .col:nth-child(4) { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
@media (max-width: 640px) {
  .board { padding: 10px; }
  .board-cols { gap: 6px; }
  .col { padding: 6px; min-height: 190px; }
  .col h4 { font-size: .6rem; letter-spacing: .04em; }
  .appt { padding: 7px; font-size: .66rem; }
  .appt b { font-size: .7rem; }
  .appt small { display: none; }
  .slot, .traveler { height: 58px; }
  .traveler { top: 28px; left: 6px; width: calc((100% - 18px) / 4 - 12px); transform: translateX(calc(var(--step, 0) * (100% + 18px))); }
}

/* iPhone recording segments */
.phone-stage { display: grid; place-items: center; perspective: 1400px; }
@media (prefers-reduced-motion: no-preference) {
  .phone-stage .phone { transform: rotateY(calc((1 - var(--p)) * -24deg)) rotateX(calc((1 - var(--p)) * 10deg)) translateY(calc((1 - var(--p)) * 60px)); }
}
.segments { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.segments i { height: 22px; border-radius: 5px; background: var(--line); transition: background .4s; }
.segments i.on { background: var(--brand); }
.seg-legend { display: flex; justify-content: space-between; font: 500 .74rem/1 var(--mono); color: var(--faint); }

/* Roles */
.roles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.role { padding: 20px; display: grid; gap: 8px; align-content: start; }
.role b { font: 700 1.1rem/1.2 var(--display); }
.role p { font-size: .88rem; color: var(--muted); }
@media (max-width: 1000px) { .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .roles { grid-template-columns: 1fr; } }

/* Availability table */
.avail { width: 100%; border-collapse: collapse; font-size: .95rem; }
.avail th, .avail td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.avail th { font: 700 .76rem/1 var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.avail td:not(:first-child), .avail th:not(:first-child) { text-align: center; }
.avail tr:last-child td { border-bottom: 0; }
.yes-mark { color: var(--live); font-weight: 800; }
.no-mark { color: var(--faint); }
.table-wrap { overflow-x: auto; padding: 8px; }

/* ---------- About ---------- */
.prose { display: grid; gap: 22px; max-width: 42rem; font-size: 1.12rem; color: var(--muted); }
.prose strong { color: var(--fg); font-weight: 700; }
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.principles .card { padding: 30px; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }
.timeline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; position: relative; }
.milestone { padding: 26px; display: grid; gap: 10px; align-content: start; }
.milestone .h3 { font-size: 1.5rem; }
@media (max-width: 860px) { .timeline { grid-template-columns: 1fr; } }
.quote { font: 700 clamp(1.5rem, 3.4vw, 2.4rem)/1.2 var(--display); letter-spacing: -0.03em; max-width: 26ch; text-wrap: balance; }

/* ---------- Home: one appointment, start to finish ---------- */
.hand { font: 700 1.6rem/1.1 var(--hand); color: var(--coral); letter-spacing: 0; }
.kicker { font: 500 .8rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.kicker.accent { color: var(--accent); }

.story-hero { padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 110px); }
.story-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 26px; justify-items: start; }
.hero-copy .lede { color: var(--muted); }
.hero-note { font-size: .9rem; color: var(--faint); }
.underline { position: relative; white-space: nowrap; }
.underline svg { position: absolute; left: 0; bottom: -.16em; width: 100%; height: .22em; overflow: visible; }
.hero-scene { position: relative; min-height: 520px; }
.scene-glow { position: absolute; inset: 6% 0 10% 12%; border-radius: 32px; background: radial-gradient(circle at 70% 26%, color-mix(in srgb, var(--coral) 55%, transparent), transparent 46%), radial-gradient(circle at 22% 80%, color-mix(in srgb, var(--accent) 60%, transparent), transparent 55%); filter: blur(4px); opacity: .7; }
.scene-visit { position: absolute; top: 0; right: 0; width: 72%; padding: 24px; display: grid; gap: 12px; }
.scene-visit strong { font: 700 1.5rem/1.15 var(--display); letter-spacing: -0.02em; }
.scene-visit .muted { font-size: .92rem; }
.scene-call { position: absolute; left: 0; bottom: 34px; width: min(400px, 82%); padding: 20px; display: grid; gap: 12px; background: var(--glass-hi); }
.scene-call .meta { display: flex; justify-content: space-between; gap: 12px; font: 500 .74rem/1 var(--mono); color: var(--faint); letter-spacing: .04em; }
.say { width: fit-content; max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: .95rem; line-height: 1.45; }
.say.setter { background: color-mix(in srgb, var(--accent) 22%, transparent); border-bottom-left-radius: 4px; }
.say.home { justify-self: end; background: var(--well); border: 1px solid var(--line); border-bottom-right-radius: 4px; }
.booked { position: absolute; right: 12px; bottom: 0; padding: 10px 18px; border-radius: 999px; background: var(--brand); color: var(--btn-fg); font-weight: 700; font-size: .9rem; box-shadow: 0 14px 30px -10px rgb(91 76 240 / .7); }
@media (max-width: 900px) {
  .story-hero .wrap { grid-template-columns: 1fr; }
  .hero-scene { min-height: 470px; }
}
@media (max-width: 520px) {
  .hero-scene { min-height: 0; display: grid; gap: 14px; }
  .scene-glow { inset: 0; }
  .scene-visit, .scene-call, .booked { position: relative; inset: auto; width: auto; }
  .booked { justify-self: end; }
}

.journey { padding: clamp(28px, 5vw, 56px); border-radius: 34px; display: grid; gap: clamp(32px, 5vw, 48px); }
.journey .section-head { margin: 0; max-width: 54rem; }
.journey-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.journey-steps li { padding: 20px; border-radius: 20px; background: var(--well); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.journey-steps .kicker { color: var(--coral); letter-spacing: .02em; text-transform: none; }
.journey-steps b { font: 700 1.3rem/1.15 var(--display); letter-spacing: -0.02em; }
.journey-steps span:last-child { font-size: .92rem; color: var(--muted); }
.journey-steps li.last { background: var(--brand); border-color: transparent; color: var(--btn-fg); }
.journey-steps li.last .kicker, .journey-steps li.last span:last-child { color: var(--btn-fg); opacity: .9; }
@media (max-width: 1040px) { .journey-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .journey-steps li.last { grid-column: 1 / -1; } }
@media (max-width: 520px) { .journey-steps { grid-template-columns: 1fr; } }

.chapters { display: grid; }
.chapter { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line); }
.chapter-copy { display: grid; gap: 14px; align-content: start; }
.chapter-copy .h3 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); line-height: 1.08; }
.chapter-copy p { color: var(--muted); font-size: 1.05rem; max-width: 30rem; }
@media (max-width: 860px) { .chapter { grid-template-columns: 1fr; } }

.ui { padding: 24px; display: grid; gap: 16px; min-width: 0; }
.ui-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ui-head strong { display: block; font-size: 1.08rem; }
.ui-head .muted { font-size: .88rem; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .98rem; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.checks .ok { color: var(--live); font-weight: 800; }
.checks .miss { color: var(--coral); font-weight: 800; }

.brief { width: min(360px, 100%); margin-inline: auto; padding: 14px; border-radius: 40px; }
.brief-screen { border-radius: 28px; background: var(--well); padding: 22px; display: grid; gap: 14px; }
.brief-screen .kicker { color: var(--coral); font-size: .74rem; }
.brief-screen strong { font: 700 1.5rem/1.15 var(--display); letter-spacing: -0.02em; }
.brief dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; font-size: .9rem; }
.brief dt { color: var(--faint); font-size: .8rem; }
.brief dd { margin: 0; }
.brief .heard { border-top: 1px solid var(--line); padding-top: 12px; font-size: .95rem; }
.clips { display: flex; flex-wrap: wrap; gap: 8px; }
.clips span { font: 500 .74rem/1 var(--mono); padding: 7px 10px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 18%, transparent); }
.brief-go { min-height: 44px; display: grid; place-items: center; border-radius: 999px; background: var(--brand); color: var(--btn-fg); font-weight: 700; }

.visit-track { position: relative; height: 10px; border-radius: 5px; background: color-mix(in srgb, var(--accent) 18%, transparent); margin-block: 6px; }
.visit-track i { position: absolute; top: -3px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); translate: -50% 0; }
.visit-track i.turn { background: var(--coral); }
.visit-track i.won { background: var(--live); }
.moments { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; font-size: .92rem; }
.moments span { font-family: var(--mono); color: var(--faint); margin-right: 6px; }

.sold { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .92rem; color: var(--muted); }
.sold b { padding: 6px 14px; border-radius: 999px; background: var(--brand); color: var(--btn-fg); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { padding: 16px; border-radius: 16px; background: var(--well); border: 1px solid var(--line); display: grid; gap: 2px; }
.tile small { font-size: .82rem; color: var(--faint); }
.tile b { font: 700 1.5rem/1.2 var(--display); letter-spacing: -0.02em; }
.tile span { font-size: .88rem; color: var(--muted); }
@media (max-width: 420px) { .tiles, .moments, .brief dl { grid-template-columns: 1fr; } }

.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.person { padding: 28px; display: grid; gap: 14px; align-content: start; scroll-margin-top: 110px; }
.person .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--well); border: 1px solid var(--line); color: var(--accent); }
.person .ic svg { width: 24px; height: 24px; }
.person .h3 { font-size: 1.7rem; }
@media (max-width: 900px) { .people { grid-template-columns: 1fr; } }

.founder { max-width: 780px; margin-inline: auto; padding: clamp(28px, 5vw, 52px); border-radius: 30px; display: grid; gap: 18px; }
.founder p { font-size: clamp(1.1rem, 1.9vw, 1.3rem); line-height: 1.6; }
.signature { font: 700 2.8rem/1 var(--hand); margin-top: 6px; }
.founder .muted { font-size: .95rem; margin-top: -8px; }

.promises { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.promises div { border-top: 2px solid var(--fg); padding-top: 14px; display: grid; gap: 6px; align-content: start; }
.promises p { font-size: .94rem; color: var(--muted); }
@media (max-width: 900px) { .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .promises { grid-template-columns: 1fr; } }

/* ---------- Get in touch dialog ---------- */
html.modal-open { overflow: hidden; }
.contact {
  position: fixed; inset: 0; margin: auto;
  width: min(580px, calc(100% - 32px)); max-height: min(92svh, 760px); overflow: auto;
  padding: clamp(20px, 4vw, 32px); color: var(--fg);
  background: var(--glass-hi);
  -webkit-backdrop-filter: blur(34px) saturate(180%);
  backdrop-filter: blur(34px) saturate(180%);
  border-radius: 28px;
}
.contact::backdrop {
  background: rgb(5 6 20 / .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
@media (prefers-reduced-motion: no-preference) {
  .contact[open] { animation: pop .5s var(--ease); }
  .contact[open]::backdrop { animation: fade .4s ease; }
}
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes fade { from { opacity: 0; } }
.contact-form, .contact-done { display: grid; gap: 20px; }
.contact-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.contact-head .h3 { margin-top: 8px; font-size: 1.6rem; }
.contact-close {
  width: 40px; height: 40px; flex: none; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; border: 1px solid var(--line); background: var(--well); color: var(--fg);
}
.contact-close svg { width: 18px; height: 18px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; font-size: .84rem; font-weight: 700; }
.field em { font-style: normal; font-weight: 500; color: var(--faint); }
.field.wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border-radius: 12px;
  font: 500 .95rem/1.4 var(--body); color: var(--fg);
  background: var(--well); border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field option { background: var(--glass-solid); color: var(--fg); }
.field :is(input, select, textarea):focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.field [aria-invalid="true"] { border-color: var(--coral); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--coral); font-size: .9rem; font-weight: 600; }
.contact-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: .86rem; }
.contact-foot .btn[disabled] { opacity: .6; cursor: progress; }
.contact-done { justify-items: start; }
.contact-done h2:focus { outline: none; }
.done-mark { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--live) 18%, transparent); color: var(--live); }
.done-mark svg { width: 26px; height: 26px; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }
@media (prefers-reduced-transparency: reduce) {
  .contact { background: var(--glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Footer ---------- */
.footer { padding-block: 56px 40px; border-top: 1px solid var(--line); margin-top: 40px; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; font-size: .9rem; color: var(--faint); }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot nav a { text-decoration: none; color: var(--muted); }
.foot nav a:hover { color: var(--fg); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb, .pill-live .dot, .rec i, .typing i { animation: none; }
  .glass.lift, .btn, .traveler { transition: none; }
}
