/* ==========================================================================
   Overwatch — first draft
   Concept: the page runs from night (deep purple) to morning (white).
   ========================================================================== */

@font-face {
  font-family: "Geologica";
  src: url("../assets/fonts/geologica-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --night: #1f1140;
  --night-2: #2a1660;
  --purple: #4b2a85;
  --purple-lit: #8f74ec;   /* purple that reads on night backgrounds */
  --lav: #f4f1fa;
  --lav-2: #e6dff5;
  --white: #ffffff;
  --ink: #1a1033;
  --ink-2: #5a5272;
  --on-night: #efeaff;
  --on-night-2: #b9acdf;
  --coral: #ff6a57;

  --font: "Geologica", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius-sm: 10px;
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 330;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--purple-lit);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.display {
  font-size: clamp(2.3rem, 4.3vw, 4rem);
  line-height: .98;
  letter-spacing: -.04em;
  font-weight: 480;
}
.display .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.display .ln > span { display: inline-block; }

.h2 {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -.032em;
  font-weight: 480;
  max-width: 20ch;
  text-wrap: balance;
}
.lede { font-size: clamp(1.1rem, 1.4vw, 1.3rem); max-width: 34em; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--purple);
  --fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border-radius: var(--radius-sm);
  background: var(--bg); color: var(--fg);
  font-weight: 520; font-size: 1rem; letter-spacing: -.005em;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .35s var(--ease), background-color .25s, box-shadow .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(75, 42, 133, .7); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.hero .btn, .site-header .btn { --bg: var(--white); --fg: var(--purple); }
.btn-ghost { --bg: transparent; --fg: var(--white); border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: var(--white); box-shadow: none; }
.hero .btn-ghost { --bg: transparent; --fg: var(--white); }
.btn-ghost-dark { --bg: transparent; --fg: var(--purple); border-color: rgba(75,42,133,.35); }
.btn-ghost-dark:hover { border-color: var(--purple); box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.actions.center { justify-content: center; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--on-night);
  transition: background-color .4s, color .4s, box-shadow .4s, transform .5s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(31, 17, 64, .72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
}
.site-header.is-light {
  background: rgba(255, 255, 255, .8);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(26, 16, 51, .08);
}
.site-header.is-light .btn { --bg: var(--purple); --fg: var(--white); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; --mark-cut: var(--night); }
.is-light .logo, .site-footer .logo { --mark-cut: var(--white); }
.site-footer .logo { --mark-cut: var(--night); }
.logo-mark { width: 30px; height: 34px; color: currentColor; }
.logo-fallback { display: inline-flex; align-items: center; gap: 12px; }
.logo-fallback[hidden] { display: none; }
/* official logo: purple on light backgrounds, knocked out to white on dark ones */
.logo-img { height: 44px; width: auto; transition: filter .4s; }
.site-header .logo-img, .site-footer .logo-img { filter: brightness(0) invert(1); }
.site-header.is-light .logo-img { filter: none; }
.logo-word {
  font-weight: 560; font-size: 1.15rem; letter-spacing: .22em; text-transform: uppercase;
}
.nav { display: flex; gap: 28px; margin-left: auto; font-size: .98rem; }
.nav a { text-decoration: none; opacity: .8; position: relative; padding: 6px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover { opacity: 1; }
.nav a:hover::after { transform: scaleX(1); }

/* ---------- 1. hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  background:
    radial-gradient(60% 70% at 78% 45%, rgba(123, 92, 224, .28), transparent 70%),
    var(--night);
  color: var(--on-night);
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.5fr .6fr; align-items: center; gap: 40px;
}
.hero-copy .lede { margin-top: 32px; color: var(--on-night-2); }
.hero-copy .actions { margin-top: 40px; }

.hero-watch { position: relative; justify-self: center; width: min(360px, 80%); }
.hero-watch .glow {
  position: absolute; inset: 10% -20%;
  background: radial-gradient(closest-side, rgba(143, 116, 236, .45), transparent);
  filter: blur(20px);
}

/* the watch (shared) */
.watch { width: 100%; height: auto; position: relative; overflow: visible; }
.watch .band { fill: #2c1b5c; }
.watch .crown { fill: #52408f; }
.watch .case { fill: #120a2a; stroke: #6b55b8; stroke-width: 2; }
.watch .screen { fill: #05030c; }
.w-label { fill: #b9acdf; font: 500 13px var(--font); text-anchor: middle; letter-spacing: .01em; }
.w-time { fill: #fff; font: 400 40px var(--font); text-anchor: middle; letter-spacing: -.03em; }
.w-sub { fill: #8f74ec; font: 500 12px var(--font); text-anchor: middle; }
.w-pulse, .w-jag { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.w-pulse { stroke: var(--purple-lit); stroke-dasharray: 46 100; animation: pulse-run 2.4s linear infinite; }
.w-pulse-bg { fill: none; stroke: #2a1f4d; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.w-pulse.still { animation: none; stroke-dasharray: none; }
.w-jag { stroke: var(--coral); }
.alert-ink { fill: var(--coral); }
@keyframes pulse-run { from { stroke-dashoffset: 146; } to { stroke-dashoffset: 0; } }

.boot-ring { fill: none; stroke: var(--purple-lit); stroke-width: 2.5; stroke-linecap: round;
  transform: rotate(-90deg); transform-origin: 110px 150px; }
.boot-mark { filter: brightness(0) invert(1); }
.monitor { opacity: 0; }
.no-js .monitor, .reduced .monitor { opacity: 1; }
.no-js .boot, .reduced .boot { display: none; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; translate: -50% 0;
  width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.4); border-radius: 14px;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  background: #fff; border-radius: 2px; animation: cue 2s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- 2. alert scene ---------- */
.alert {
  background: linear-gradient(var(--night), var(--night-2));
  color: var(--on-night);
}
.alert-pin {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 110px 0 48px;
  gap: 28px;
}
.alert-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.alert-head h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); letter-spacing: -.03em; font-weight: 460; line-height: 1.1; }
.alert-steps { display: flex; gap: 22px; font-size: .95rem; color: var(--on-night-2); }
.alert-steps li { display: flex; align-items: center; gap: 8px; transition: color .4s; }
.alert-steps span {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px;
  border: 1.5px solid rgba(185, 172, 223, .4); font-size: .8rem; font-weight: 520;
  transition: background-color .4s, border-color .4s, color .4s;
}
.alert-steps li.is-on { color: #fff; }
.alert-steps li.is-on span { background: var(--white); border-color: var(--white); color: var(--purple); }

.stage {
  display: grid;
  grid-template-columns: minmax(150px, 230px) 1fr minmax(220px, 300px);
  align-items: center; gap: 12px;
}
.stage-watch { position: relative; z-index: 2; }
.ring-track { fill: none; stroke: #241a45; stroke-width: 8; }
.ring { fill: none; stroke: var(--coral); stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: 100 100; stroke-dashoffset: 0; transform: rotate(-90deg); transform-origin: 110px 140px; }
.w-count { fill: #fff; font: 400 40px var(--font); text-anchor: middle; font-variant-numeric: tabular-nums; }
.w-pill { fill: #2c2046; }
.w-pill-t { fill: #fff; font: 500 12px var(--font); text-anchor: middle; }
.sent-dot { fill: var(--purple-lit); }
.sent-tick { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.s-detect, .s-count, .s-sent { opacity: 0; }

.map { width: 100%; height: auto; overflow: visible; }
.map circle.dot { fill: rgba(185, 172, 223, .22); }
.route { fill: none; stroke: var(--purple-lit); stroke-width: 2.5; stroke-linecap: round; }
.packet { fill: #fff; filter: drop-shadow(0 0 10px rgba(255,255,255,.9)); opacity: 0; }
.gps { opacity: 0; }
.gps-ring { fill: rgba(143, 116, 236, .25); }
.gps-pin { fill: var(--purple-lit); }

.stage-phones { position: relative; height: clamp(300px, 46vh, 420px); }
.phone {
  position: absolute; width: 62%; aspect-ratio: 9 / 19;
  border-radius: 34px; padding: 8px;
  background: #120a2a; border: 2px solid #4a3a88;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.phone-a { right: 0; top: 0; z-index: 2; }
.phone-b { left: 0; bottom: 0; opacity: .9; }
.phone-screen {
  height: 100%; border-radius: 27px; overflow: hidden;
  background: linear-gradient(170deg, #3a2477, #170c34);
  padding: 18px 10px; display: flex; flex-direction: column; gap: 10px;
}
.ph-time { text-align: center; font-size: 2.1rem; font-weight: 300; letter-spacing: -.04em; color: #fff; }
.note {
  background: rgba(255,255,255,.94); color: var(--ink);
  border-radius: 14px; padding: 10px; font-size: .68rem; line-height: 1.35;
  opacity: 0; transform: translateY(-10px) scale(.96);
}
.note-app { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--purple); --mark-cut: #fff; }
.note-app span { margin-left: auto; color: var(--ink-2); font-weight: 400; }
.note-mark { width: 14px; height: 14px; }
.note-title { font-weight: 620; margin-top: 4px; font-size: .74rem; }
.note-body { color: var(--ink-2); }
.note-body.small { font-size: .62rem; margin-top: 4px; }
.note-map {
  position: relative; height: 54px; margin-top: 8px; border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 47%, #fff 47% 53%, transparent 53%),
    linear-gradient(0deg, transparent 40%, #fff 40% 48%, transparent 48%),
    linear-gradient(35deg, transparent 60%, #fff 60% 64%, transparent 64%),
    var(--lav-2);
}
.pin { position: absolute; left: 52%; top: 40%; width: 12px; height: 12px; border-radius: 50% 50% 50% 0;
  background: var(--purple); transform: translate(-50%, -50%) rotate(-45deg); box-shadow: 0 0 0 4px rgba(75,42,133,.2); }
.call { justify-content: space-between; align-items: center; text-align: center; padding: 34px 10px 22px; opacity: .25; }
.call-who { font-size: .9rem; font-weight: 520; color: #fff; }
.call-sub { font-size: .7rem; color: var(--on-night-2); margin-top: -40%; }
.call-btns { display: flex; justify-content: space-around; width: 100%; }
.call-btns span { width: 34px; height: 34px; border-radius: 50%; }
.decline { background: #e5484d; }
.accept { background: #30a46c; }

.captions { position: relative; min-height: 4.2em; }
.cap {
  position: absolute; inset: 0 var(--gutter) auto; max-width: 46em;
  color: var(--on-night-2); font-size: clamp(1.02rem, 1.3vw, 1.2rem);
  opacity: 0; transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.cap strong { color: #fff; font-weight: 540; }
.cap.is-on { opacity: 1; transform: none; }
.stamp { color: var(--on-night-2); font-size: .95rem; font-variant-numeric: tabular-nums; }
.stamp #stamp { color: #fff; font-weight: 520; }

/* ---------- 3. why ---------- */
.why {
  color: var(--on-night); padding: clamp(90px, 14vw, 180px) 0 clamp(160px, 18vw, 240px);
  background: linear-gradient(var(--night-2) 0%, var(--night-2) 62%, #5b43a6 82%, #b9a8e6 93%, var(--lav) 100%);
}
.facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: clamp(48px, 7vw, 90px);
  border-top: 1px solid rgba(185, 172, 223, .25);
}
.facts > div { padding: 28px 28px 0 0; }
.facts > div + div { padding-left: 28px; border-left: 1px solid rgba(185, 172, 223, .25); }
.facts dt { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 400; letter-spacing: -.04em; line-height: 1; color: #fff; }
.facts dd { margin-top: 14px; color: var(--on-night-2); max-width: 22em; }
.facts sup a { color: var(--purple-lit); text-decoration: none; margin-left: 2px; }

/* ---------- 4. serve (horizontal) ---------- */
.serve { background: var(--lav); }
.serve-pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 48px; padding: 110px 0 60px; overflow: hidden; }
.serve-track {
  display: flex; gap: 28px;
  padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  width: max-content;
}
.panel {
  width: min(78vw, 980px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch;
  background: var(--white);
  border-radius: 28px;
  padding: clamp(28px, 4vw, 56px);
  box-shadow: 0 1px 0 rgba(26,16,51,.04), 0 40px 80px -50px rgba(75,42,133,.45);
}
.panel-copy { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.panel h3 { font-size: clamp(1.7rem, 2.8vw, 2.5rem); line-height: 1.05; letter-spacing: -.03em; font-weight: 480; }
.panel .who { color: var(--purple); font-weight: 520; }
.panel p:not(.who) { color: var(--ink-2); max-width: 30em; }
.panel-visual {
  border-radius: 20px; min-height: 300px;
  background: radial-gradient(80% 80% at 70% 20%, #6a4fb8, var(--night) 80%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: 28px; color: var(--on-night);
}
.v-cap { font-size: .9rem; color: var(--on-night-2); text-align: center; max-width: 22em; }
.mini-watch {
  width: 150px; height: 170px; border-radius: 40px; background: #05030c; border: 6px solid #2c1b5c;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.mw-label { font-size: .72rem; color: var(--on-night-2); }
.mw-time { font-size: 2rem; letter-spacing: -.04em; color: #fff; font-weight: 300; }
.mw-line { width: 80px; height: 2px; background: var(--purple-lit); border-radius: 2px; }
.mini-note {
  width: min(300px, 100%); background: rgba(255,255,255,.95); color: var(--ink);
  border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; font-size: .88rem;
}
.mini-note b { font-weight: 600; }
.mini-note span { color: var(--ink-2); font-size: .8rem; }
.mini-note.late { opacity: .7; transform: scale(.94); }
.mini-bars { display: flex; align-items: end; gap: 10px; height: 150px; }
.mini-bars i { width: 22px; height: var(--h); background: var(--purple-lit); border-radius: 4px 4px 0 0; }

/* ---------- 5. diary ---------- */
.diary { background: var(--lav); padding: clamp(80px, 12vw, 160px) 0; }
.diary-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.diary-copy p { margin-top: 22px; color: var(--ink-2); max-width: 32em; }
.diary-summary { color: var(--ink) !important; font-weight: 450; }
.cal-fig { margin: 0; position: relative; background: var(--white); border-radius: 24px; padding: clamp(20px, 3vw, 36px);
  box-shadow: 0 40px 80px -50px rgba(75,42,133,.45); }
.cal-title { font-size: 1rem; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: baseline; }
.cal-title strong { color: var(--ink); font-weight: 560; }
.cal-note { margin-left: auto; font-size: .85rem; }
.cal-dow, .cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { margin-top: 20px; font-size: .78rem; color: var(--ink-2); text-align: center; }
.cal { margin-top: 8px; }
.cal .day {
  aspect-ratio: 1; border-radius: 8px; border: 0; padding: 6px; font: inherit;
  font-size: .78rem; font-variant-numeric: tabular-nums;
  display: flex; align-items: flex-start; justify-content: flex-start;
  cursor: default; color: var(--ink-2);
  transition: box-shadow .2s;
}
.cal .day:hover, .cal .day:focus-visible { box-shadow: 0 0 0 2px var(--purple); outline: none; }
.cal .pad { visibility: hidden; }
.l0 { background: #f1eef8; }
.l1 { background: #d3c6f1; }
.l2 { background: #9d82e3; color: #fff !important; }
.l3 { background: #4b2a85; color: #fff !important; }
.cal-legend { display: flex; align-items: center; gap: 6px; margin-top: 18px; font-size: .8rem; color: var(--ink-2); justify-content: flex-end; }
.cal-legend i { width: 16px; height: 16px; border-radius: 4px; }
.tooltip {
  position: absolute; z-index: 5; pointer-events: none;
  background: var(--ink); color: #fff; font-size: .82rem; line-height: 1.4;
  padding: 8px 10px; border-radius: 8px; white-space: nowrap;
  transform: translate(-50%, calc(-100% - 10px));
}
.tooltip b { font-weight: 560; }

/* ---------- 6. community ---------- */
.community { background: var(--white); padding: clamp(100px, 14vw, 200px) 0; }
.community-title { font-size: clamp(1.2rem, 1.8vw, 1.5rem); font-weight: 520; color: var(--purple); letter-spacing: -.01em; max-width: 30em; }
.lit { margin-top: 36px; }
.lit p {
  font-size: clamp(2rem, 4.6vw, 4rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 460;
  color: var(--ink); max-width: 22ch; text-wrap: balance;
}
.lit p + p { margin-top: .35em; }
.js-motion .lit p { color: #ddd6ec; }

/* ---------- 3. results ---------- */
.results { background: var(--night-2); color: var(--on-night); padding: clamp(90px, 12vw, 160px) 0 0; }
.results-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: end;
  margin-top: clamp(40px, 6vw, 72px);
}
.result-num {
  font-size: clamp(5rem, 15vw, 13rem); line-height: .85; letter-spacing: -.06em; font-weight: 380;
  color: #fff; font-variant-numeric: tabular-nums;
}
.result-label { margin-top: 20px; color: var(--on-night-2); font-size: clamp(1.1rem, 1.5vw, 1.35rem); max-width: 24em; }
.result-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(185,172,223,.25); }
.result-list > div { padding: 22px 0; border-bottom: 1px solid rgba(185,172,223,.25); }
.result-list > div:nth-child(odd) { padding-right: 20px; }
.result-list > div:nth-child(even) { padding-left: 20px; border-left: 1px solid rgba(185,172,223,.25); }
.result-list dt { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.04em; font-weight: 400; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.result-list dd { margin-top: 8px; color: var(--on-night-2); font-size: 1rem; }

/* ---------- 7. stories ---------- */
.stories { background: var(--lav); padding: clamp(90px, 12vw, 160px) 0; }
.stories blockquote { margin: 0; }
.story-lead { margin: clamp(40px, 6vw, 72px) 0 0; max-width: 980px; }
.story-lead p {
  font-size: clamp(1.5rem, 2.8vw, 2.4rem); line-height: 1.22; letter-spacing: -.025em; font-weight: 400;
  color: var(--ink); text-indent: -.42em;
}
.story-lead p::before { content: "\201C"; color: var(--purple); }
.story-lead p::after { content: "\201D"; color: var(--purple); }
.story-lead figcaption, .story figcaption { margin-top: 20px; font-weight: 560; color: var(--purple); }
.story-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); margin-top: clamp(56px, 7vw, 96px); }
.story { margin: 0; padding-top: 22px; border-top: 1.5px solid var(--purple); }
.story p { color: var(--ink-2); font-size: 1.05rem; }

/* ---------- 8. close ---------- */
.close { background: var(--white); padding: clamp(110px, 16vw, 220px) 0; text-align: center; }
.matters span {
  display: block; font-size: clamp(2.2rem, 6vw, 5.4rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 480;
  color: var(--purple);
}
.matters sup { font-size: .25em; vertical-align: super; letter-spacing: 0; margin-left: .1em; }
.close .actions { margin-top: 56px; }
.close-note { margin-top: 40px; color: var(--ink-2); font-size: 1rem; }
.close-note a { color: var(--purple); }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: var(--on-night-2); padding: 80px 0 40px; font-size: .95rem; }
.site-footer .logo { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr 1.1fr; gap: 40px; }
.foot-col address { font-style: normal; }
.foot-brand p { max-width: 24em; color: var(--on-night); font-size: 1.05rem; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col h3 { color: #fff; font-size: .95rem; font-weight: 560; margin-bottom: 6px; }
.foot-col a { text-decoration: none; }
.foot-col a:hover { color: #fff; }
.foot-fine { margin-top: 64px; padding-top: 28px; border-top: 1px solid rgba(185,172,223,.2); font-size: .82rem; display: grid; gap: 14px; }
.foot-fine p:first-child { max-width: 70em; }

/* static fallback for the alert captions */
.reduced .captions { display: grid; gap: 12px; min-height: 0; }
.reduced .cap { position: static; opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (min-width: 981px) { .display .ln > span { white-space: nowrap; } }
@media (max-width: 980px) {
  .nav { display: none; }
  .header-inner .btn { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-watch { width: min(220px, 55%); }
  .stage { grid-template-columns: 1fr 1fr; }
  .stage-map { display: none; }
  .stage-watch { max-width: 220px; justify-self: center; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .diary-grid, .results-grid { grid-template-columns: 1fr; }
  .story-row { grid-template-columns: 1fr; }
  .panel { grid-template-columns: 1fr; width: 84vw; }
  .panel-visual { min-height: 220px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .alert-steps { gap: 12px; font-size: .8rem; }
  .alert-steps li { flex-direction: column; gap: 4px; }
  .stage-watch { max-width: 150px; }
  .stage-phones { height: 280px; }
  .phone-b { display: none; }
  .phone-a { width: 72%; right: 50%; translate: 50% 0; }
  .facts { grid-template-columns: 1fr; }
  .facts > div { padding-left: 0 !important; border-left: 0 !important; border-bottom: 1px solid rgba(185,172,223,.25); padding-bottom: 24px; }
  .captions { min-height: 7.5em; }
  .foot-grid { grid-template-columns: 1fr; }
  /* serve panels stack vertically on phones */
  .serve-track { flex-direction: column; width: auto; padding-inline: var(--gutter); }
  .panel { width: 100%; }
}

/* reduced motion: everything visible, nothing pinned */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .serve-track { flex-direction: column; width: auto; padding-inline: var(--gutter); }
  .panel { width: 100%; }
}

/* ==========================================================================
   Atmosphere and motion layer
   ========================================================================== */

/* film grain over the whole page: breaks up flat digital gradients */
.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%;
  pointer-events: none; z-index: 60; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* hero: slow aurora drift and a soft light that follows the cursor */
.hero { background: var(--night); }
.hero-grid { position: relative; z-index: 1; }
.scroll-cue { z-index: 1; }
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(80px); mix-blend-mode: screen; opacity: .38; }
.aurora i:nth-child(1) { width: 52vw; height: 52vw; right: -8vw; top: -10vw; background: #5a3bb8; animation: drift-a 26s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 38vw; height: 38vw; right: 18vw; bottom: -18vw; background: #3a2386; animation: drift-b 32s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 26vw; height: 26vw; left: -6vw; top: 20%; background: #2b1a6b; opacity: .5; animation: drift-c 38s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(-9vw, 7vw) scale(1.12); } }
@keyframes drift-b { to { transform: translate(12vw, -8vw) scale(.9); } }
@keyframes drift-c { to { transform: translate(8vw, 10vw) scale(1.2); } }
.cursor-light {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 72%) var(--my, 45%), rgba(155, 128, 245, .16), transparent 62%);
}

/* header logo: a light sweep and bloom */
.logo-glow { position: relative; filter: drop-shadow(0 0 7px rgba(143, 116, 236, .45)); }
.site-header.is-light .logo-glow { filter: drop-shadow(0 0 5px rgba(75, 42, 133, .18)); }
.logo-sheen {
  --sheen: rgba(178, 150, 255, 1);
  position: absolute; left: 0; top: 50%; width: 240px; height: 44px; transform: translateY(-50%);
  pointer-events: none; z-index: 1;
  -webkit-mask: url("../assets/logo.png") left center / contain no-repeat;
          mask: url("../assets/logo.png") left center / contain no-repeat;
  background: linear-gradient(100deg, transparent 38%, var(--sheen) 50%, transparent 62%) no-repeat;
  background-size: 300% 100%; background-position: 120% 0;
}
.site-header.is-light .logo-sheen { --sheen: rgba(255, 255, 255, .95); }
.logo-glow.is-lit .logo-sheen { animation: sheen 1.5s cubic-bezier(.4, 0, .2, 1) forwards; }
.logo-glow.is-lit { animation: bloom 2.4s ease-out; }
@keyframes sheen { from { background-position: 120% 0; } to { background-position: -20% 0; } }
@keyframes bloom {
  0% { filter: drop-shadow(0 0 7px rgba(143, 116, 236, .45)); }
  35% { filter: drop-shadow(0 0 18px rgba(178, 150, 255, .95)) drop-shadow(0 0 4px rgba(255, 255, 255, .6)); }
  100% { filter: drop-shadow(0 0 7px rgba(143, 116, 236, .45)); }
}

/* alert scene: some city lights twinkle */
.map circle.dot.tw { animation: twinkle var(--d, 3s) ease-in-out var(--dl, 0s) infinite alternate; }
@keyframes twinkle { from { opacity: .35; } to { opacity: 1; fill: rgba(205, 192, 245, .7); } }

/* results: a faint live trace runs behind the numbers */
.results { position: relative; overflow: hidden; }
.results > .wrap { position: relative; z-index: 1; }
.results-trace { position: absolute; left: 0; top: 46%; width: 100%; height: 220px; pointer-events: none; }
.results-trace path { fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.trace-base { stroke: rgba(143, 116, 236, .13); stroke-width: 1.5; }
.trace-run {
  stroke: #9d84f2; stroke-width: 2; stroke-dasharray: 140 860;
  filter: drop-shadow(0 0 6px rgba(157, 132, 242, .8));
  animation: trace 7s linear infinite;
}
@keyframes trace { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }

/* who we serve: visuals breathe slowly */
.panel-visual { background-size: 170% 170%; animation: breathe 16s ease-in-out infinite alternate; }
@keyframes breathe { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }

/* footer: the city at night */
.site-footer { padding-top: 0; position: relative; overflow: hidden; }
.foot-night {
  position: relative; height: clamp(340px, 42vw, 480px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  margin-bottom: 64px;
  background: radial-gradient(60% 80% at 50% 100%, rgba(90, 59, 184, .35), transparent 70%);
  border-bottom: 1px solid rgba(185, 172, 223, .14);
}
#city { position: absolute; inset: 0; width: 100%; height: 100%; }
.foot-mark { position: relative; z-index: 1; width: min(300px, 62vw); filter: drop-shadow(0 0 22px rgba(143, 116, 236, .55)); }
.foot-mark img { width: 100%; height: auto; }
.foot-mark-sheen {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url("../assets/logo-stacked.png") center / contain no-repeat;
          mask: url("../assets/logo-stacked.png") center / contain no-repeat;
  background: linear-gradient(100deg, transparent 38%, rgba(190, 165, 255, 1) 50%, transparent 62%) no-repeat;
  background-size: 300% 100%; background-position: var(--sheen-x, 120%) 0;
}
.foot-line { position: relative; z-index: 1; color: var(--on-night-2); font-size: 1rem; letter-spacing: .01em; }

/* ==========================================================================
   For practices, FAQ and demo request
   ========================================================================== */

/* section rhythm after the diary: white, lavender, white, lavender, white */
.community { background: var(--lav); }
.stories { background: var(--white); }

/* ---------- for practices ---------- */
.clinicians { background: var(--white); padding: clamp(90px, 12vw, 160px) 0; }
.clin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.clin-lede { margin-top: 22px; color: var(--ink-2); max-width: 32em; font-size: clamp(1.1rem, 1.4vw, 1.25rem); }
.clin-list { margin: 36px 0 40px; display: grid; gap: 0; border-top: 1px solid var(--lav-2); }
.clin-list > div { padding: 18px 0; border-bottom: 1px solid var(--lav-2); display: grid; grid-template-columns: 15em 1fr; gap: 20px; }
.clin-list dt { font-weight: 560; letter-spacing: -.01em; }
.clin-list dd { color: var(--ink-2); font-size: 1rem; }

.report {
  margin: 0; background: var(--white); border-radius: 22px; padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 1px 0 rgba(26,16,51,.04), 0 50px 90px -50px rgba(75,42,133,.55), 0 0 0 1px rgba(75,42,133,.08);
  font-size: .9rem; transform: rotate(1.2deg);
}
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 16px; border-bottom: 1.5px solid var(--purple); }
.report-logo { height: 26px; width: auto; }
.report-head p { text-align: right; font-weight: 560; line-height: 1.3; }
.report-head span { font-weight: 400; color: var(--ink-2); font-size: .82rem; }
.report-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0 22px; }
.report-stats dt { font-size: .74rem; color: var(--ink-2); line-height: 1.3; }
.report-stats dd { font-size: 1.25rem; font-weight: 480; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.report-sub { font-size: .78rem; color: var(--ink-2); margin-bottom: 8px; }
.report-bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; height: 110px; align-items: end; }
.report-bars > div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.report-bars i { display: block; width: 100%; max-width: 38px; height: calc(var(--h) * .7); background: var(--purple); border-radius: 4px 4px 0 0; transform-origin: bottom; }
.report-bars b { order: -1; font-weight: 520; font-size: .76rem; color: var(--ink); }
.report-bars span { font-size: .72rem; color: var(--ink-2); }
.report-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-variant-numeric: tabular-nums; }
.report-table th { text-align: left; font-weight: 500; font-size: .74rem; color: var(--ink-2); padding: 6px 0; border-bottom: 1px solid var(--lav-2); }
.report-table td { padding: 7px 0; border-bottom: 1px solid #f1eef8; font-size: .85rem; }
.report figcaption { margin-top: 14px; font-size: .78rem; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { background: var(--lav); padding: clamp(90px, 12vw, 160px) 0; }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-grid .h2 { position: sticky; top: 120px; }
.faq-list { border-top: 1.5px solid var(--purple); }
.faq-list details { border-bottom: 1px solid var(--lav-2); }
.faq-list summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 24px 48px 24px 0; font-size: clamp(1.1rem, 1.5vw, 1.3rem); font-weight: 480; letter-spacing: -.015em;
  transition: color .25s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--purple); }
.faq-list summary::before, .faq-list summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 1.75px; background: var(--purple);
  transition: transform .4s var(--ease);
}
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-a { overflow: hidden; }
.faq-a p { padding: 0 48px 26px 0; color: var(--ink-2); max-width: 40em; }

/* ---------- demo request ---------- */
.close { padding-bottom: clamp(90px, 12vw, 160px); }
.demo {
  margin-top: clamp(80px, 10vw, 140px); text-align: left;
  display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 80px);
  background: var(--lav); border-radius: 28px; padding: clamp(28px, 5vw, 64px);
}
.demo-copy h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.05; letter-spacing: -.03em; font-weight: 480; }
.demo-copy p { margin-top: 18px; color: var(--ink-2); max-width: 26em; }
.demo-alt { font-size: .98rem; }
.demo-alt a { color: var(--purple); }
.demo-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: .92rem; font-weight: 500; }
.field label span { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1.5px solid #ddd4ef; border-radius: 10px;
  padding: 12px 14px; min-height: 48px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(75, 42, 133, .14);
}
.field.has-error input, .field.has-error select { border-color: #c2334d; }
.field-error { color: #b0263f; font-size: .85rem; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.form-foot .btn { border: 0; cursor: pointer; font-family: inherit; }
.form-foot .btn[disabled] { opacity: .6; cursor: progress; }
.form-status { font-size: .95rem; color: var(--ink-2); max-width: 34em; }
.form-status.ok { color: #1f7a52; }
.form-status.err { color: #b0263f; }
.form-status a { color: inherit; }

@media (max-width: 980px) {
  .clin-grid, .faq-grid, .demo { grid-template-columns: 1fr; }
  .faq-grid .h2 { position: static; }
  .report { transform: none; }
}
@media (max-width: 640px) {
  .clin-list > div { grid-template-columns: 1fr; gap: 4px; }
  .report-stats { grid-template-columns: 1fr 1fr; }
  .demo-form { grid-template-columns: 1fr; }
}

/* phones and tablets: let the headline flow naturally, keep the header on one line */
@media (max-width: 980px) {
  .display .ln, .display .ln > span { display: inline; }
  .display .ln::after { content: " "; }
}
@media (max-width: 640px) {
  .header-inner { gap: 12px; }
  .header-inner .btn { white-space: nowrap; padding: 0 14px; font-size: .9rem; min-height: 40px; }
  .logo-img { height: 32px; }
  .logo-sheen { width: 175px; height: 32px; }
}

/* ==========================================================================
   Hero, warmer welcome
   ========================================================================== */
.hero { padding: 132px 0 110px; }
.hero-grid { grid-template-columns: 1.12fr .88fr; gap: clamp(32px, 5vw, 80px); }

/* a soft dawn rising from the bottom of the night sky */
.dawn {
  position: absolute; left: -10%; right: -10%; bottom: -38vh; height: 70vh; pointer-events: none;
  background:
    radial-gradient(50% 60% at 62% 50%, rgba(255, 166, 140, .20), transparent 70%),
    radial-gradient(60% 70% at 40% 60%, rgba(185, 150, 255, .22), transparent 72%);
  filter: blur(30px);
  animation: dawn 14s ease-in-out infinite alternate;
}
@keyframes dawn { from { opacity: .75; transform: translateY(2%); } to { opacity: 1; transform: translateY(-3%); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; margin-bottom: 28px;
  border-radius: 999px; font-size: .92rem; font-weight: 450; color: var(--on-night);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(185, 172, 223, .22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #7ee0b0; flex: none; }
.live-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid #7ee0b0; animation: live 2.2s ease-out infinite;
}
@keyframes live { from { transform: scale(.5); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }

.hero .display { font-size: clamp(2.8rem, 6vw, 5.4rem); line-height: 1; }
.glow-word {
  font-style: normal;
  background: linear-gradient(95deg, #c6b2ff 0%, #e9d9ff 50%, #ffbfa8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-copy .lede { margin-top: 28px; color: #cfc4ee; max-width: 32em; }
.hero-copy .actions { margin-top: 36px; }
.btn-arrow { margin-left: 10px; transition: transform .35s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.play {
  width: 22px; height: 22px; margin-right: 10px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.55); position: relative; flex: none;
}
.play::after {
  content: ""; position: absolute; left: 8px; top: 6px;
  border-left: 7px solid #fff; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent;
}

.trust {
  list-style: none; margin: 48px 0 0; padding: 26px 0 0; display: flex; flex-wrap: wrap; gap: 0;
  border-top: 1px solid rgba(185, 172, 223, .18); max-width: 36em;
}
.trust li { display: flex; flex-direction: column; gap: 4px; padding-right: 28px; margin-right: 28px;
  border-right: 1px solid rgba(185, 172, 223, .18); }
.trust li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.trust strong { font-size: 1.45rem; font-weight: 500; letter-spacing: -.02em; color: #fff; }
.trust span { font-size: .88rem; color: var(--on-night-2); }

/* the watch, ringed by the people it keeps in the loop */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 520px; }
.hero-visual .hero-watch { width: min(330px, 78%); justify-self: center; }
.hero-watch .glow { inset: 0 -30%; background: radial-gradient(closest-side, rgba(143, 116, 236, .55), transparent); filter: blur(28px); }
.orbit { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.orbit i {
  position: absolute; border-radius: 50%; border: 1px solid rgba(185, 172, 223, .16);
  width: 92%; aspect-ratio: 1;
}
.orbit i:nth-child(2) { width: 70%; border-color: rgba(185, 172, 223, .12); }
.orbit i:nth-child(3) { width: 112%; border-style: dashed; border-color: rgba(185, 172, 223, .1); animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 16px;
  background: rgba(255, 255, 255, .94); color: var(--ink);
  box-shadow: 0 24px 50px -20px rgba(8, 2, 30, .75), 0 0 0 1px rgba(255,255,255,.4);
  font-size: .92rem; line-height: 1.3; white-space: nowrap;
  animation: float 7s ease-in-out infinite;
}
.hero-card p { display: flex; flex-direction: column; }
.hero-card b { font-weight: 560; }
.hero-card p span { color: var(--ink-2); font-size: .8rem; }
.card-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--lav-2); flex: none; }
.card-icon img { width: 22px; height: 22px; }
.card-icon.ok { background: #dff5ea; }
.card-icon svg { width: 18px; height: 18px; fill: none; stroke: #23935f; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.avatars { display: flex; }
.avatars span {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c); color: #fff; font-size: .8rem; font-weight: 600;
  border: 2px solid #fff; margin-left: -9px;
}
.avatars span:first-child { margin-left: 0; }

.card-circle { top: 6%; left: -4%; animation-delay: -1s; }
.card-night  { top: 56%; right: -8%; animation-delay: -3.5s; }
.card-diary  { bottom: 6%; left: 2%; animation-delay: -5.5s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.reduced .hero-card, .reduced .dawn, .reduced .orbit i, .reduced .live-dot::after { animation: none; }

@media (max-width: 1180px) {
  .card-night { right: -2%; }
  .card-circle { left: 0; }
}
@media (max-width: 980px) {
  .hero { padding: 120px 0 100px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 440px; margin-top: 20px; }
  .hero-visual .hero-watch { width: min(240px, 60%); }
  .card-circle { left: 4%; } .card-night { right: 4%; } .card-diary { left: 10%; }
}
@media (max-width: 640px) {
  .eyebrow { font-size: .8rem; }
  .trust li { padding-right: 16px; margin-right: 16px; }
  .trust strong { font-size: 1.15rem; }
  .trust span { font-size: .78rem; }
  .hero-visual { min-height: 380px; }
  .hero-card { font-size: .82rem; padding: 10px 14px 10px 10px; }
  .card-night { display: none; }
  .card-circle { left: 0; top: 2%; } .card-diary { left: auto; right: 0; bottom: 4%; }
  .trust { flex-wrap: nowrap; }
  .hero-card { max-width: 92%; }
}

/* the trust row now anchors the bottom of the hero; the cue sits to the side */
.hero .scroll-cue { left: auto; right: var(--gutter); translate: none; }
@media (max-width: 980px) { .hero .scroll-cue { display: none; } }

/* ==========================================================================
   Footer, one piece: the night sky sits quietly behind everything
   ========================================================================== */
.site-footer { padding: clamp(80px, 9vw, 120px) 0 36px; position: relative; overflow: hidden; isolation: isolate; }
.site-footer #city {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .55;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}
.foot-glow {
  position: absolute; z-index: -1; left: 50%; top: -260px; width: min(1200px, 120vw); height: 520px;
  translate: -50% 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(123, 92, 224, .38), transparent);
  filter: blur(10px);
}
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(185, 172, 223, .45), transparent);
}

.foot-grid { grid-template-columns: 1.7fr 1fr 1.15fr 1.15fr; gap: clamp(32px, 4vw, 64px); }
.foot-logo { position: relative; display: inline-block; filter: drop-shadow(0 0 14px rgba(143, 116, 236, .5)); }
.foot-logo img { display: block; height: 46px; width: auto; filter: brightness(0) invert(1); }
.foot-logo-sheen {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url("../assets/logo.png") left center / contain no-repeat;
          mask: url("../assets/logo.png") left center / contain no-repeat;
  background: linear-gradient(100deg, transparent 38%, rgba(190, 165, 255, 1) 50%, transparent 62%) no-repeat;
  background-size: 300% 100%; background-position: var(--sheen-x, 120%) 0;
}
.foot-tag {
  margin-top: 30px; font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.2; letter-spacing: -.02em;
  font-weight: 480; color: #fff; max-width: 14em;
}
.foot-brand .foot-about { margin-top: 14px; max-width: 26em; color: var(--on-night-2); font-size: .98rem; }
.foot-cta { margin-top: 28px; }
.site-footer .foot-cta { --bg: var(--white); --fg: var(--purple); }

.foot-col { gap: 12px; }
.foot-col h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: #fff; opacity: .9; margin-bottom: 8px; }
.foot-col a, .foot-col address { color: var(--on-night-2); transition: color .25s; }
.foot-col a { position: relative; width: fit-content; }
.foot-col a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.foot-col a:hover { color: #fff; }
.foot-col a:hover::after { transform: scaleX(1); }
.foot-col address { line-height: 1.6; margin-bottom: 4px; }

.foot-fine { margin-top: clamp(56px, 7vw, 88px); padding-top: 24px; border-top: 1px solid rgba(185, 172, 223, .16); gap: 18px; }
.foot-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .88rem; }
.foot-bar p { color: var(--on-night); }
.foot-bar nav { display: flex; gap: 24px; }
.foot-bar a { text-decoration: none; color: var(--on-night-2); }
.foot-bar a:hover { color: #fff; }
.foot-disclaimer { font-size: .78rem; line-height: 1.6; color: rgba(185, 172, 223, .7); max-width: 80em; }

@media (max-width: 980px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bar { flex-direction: column; align-items: flex-start; }
}
.foot-brand .foot-tag { font-size: clamp(1.35rem, 2vw, 1.7rem); color: #fff; max-width: 14em; }
.foot-fine { border-top: 0; position: relative; }
.foot-fine::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: rgba(185, 172, 223, .16); }
