/* ============ Vigilo landing — "Daylight Signal" hybrid ============ */

:root {
  --paper: #f8fafc;
  --paper-2: #eef2f7;
  --card: #ffffff;
  --ink: #26215c;
  --ink-2: #3c3489;
  --body-c: #2c2c2a;
  --muted: #7c86a0;
  --teal: #0e9e8e;
  --teal-deep: #0b776b;
  --purple: #534ab7;
  --red: #e85b4a;
  --red-text: #c2472f;
  --amber: #d97706;
  --rule: rgba(38, 33, 92, 0.14);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(20px, 5vw, 72px);
}

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

html { scroll-behavior: smooth; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--paper);
  color: var(--body-c);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body::before {
  /* paper grain */
  content: "";
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 4;
  opacity: 0.035;
  mix-blend-mode: multiply;
  will-change: transform;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='128' height='128' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  animation: grain 9s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

::selection { background: rgba(83, 74, 183, 0.25); }

a { color: inherit; text-decoration: none; }
em { font-style: normal; }

/* ============ Preloader ============ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--paper);
}
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.preloader__stroke { stroke-dasharray: 60; stroke-dashoffset: 60; }
.preloader__dot { opacity: 0; transform-origin: center; }
.preloader__count {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.35em;
  color: var(--muted);
}
.preloader__curtain {
  position: absolute;
  inset: 0;
  background: var(--paper-2);
  transform: scaleY(0);
  transform-origin: top;
}

/* ============ Cursor ============ */
.cursor, .cursor-dot { display: none; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  * { cursor: none !important; }
  .cursor {
    display: block;
    position: fixed;
    top: 0; left: 0;
    width: 58px; height: 58px;
    border: 1.5px solid rgba(83, 74, 183, 0.7);
    border-radius: 50%;
    pointer-events: none;
    z-index: 90;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  }
  .cursor.is-hover {
    width: 96px; height: 96px;
    background: rgba(83, 74, 183, 0.09);
    border-color: var(--purple);
  }
  .cursor-dot {
    display: block;
    position: fixed;
    top: 0; left: 0;
    width: 9px; height: 9px;
    background: var(--purple);
    border-radius: 50%;
    pointer-events: none;
    z-index: 91;
    transform: translate(-50%, -50%);
  }
}

/* ============ Nav ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--pad);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px var(--pad);
  border-bottom-color: var(--rule);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 20px;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  transition: color 0.25s ease;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 1px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 10px;
  background: linear-gradient(120deg, #3e3889, var(--purple));
  color: #f4f2ff;
  box-shadow: 0 0 26px -10px rgba(83, 74, 183, 0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 38px -8px rgba(83, 74, 183, 0.9);
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 15px;
  padding: 16px 32px;
  border-radius: 12px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.btn i { transition: transform 0.3s ease; font-style: normal; }
.btn:hover i { transform: translateX(5px); }
.btn--primary {
  background: linear-gradient(120deg, #3e3889, var(--purple));
  color: #f4f2ff;
  box-shadow: 0 0 42px -12px rgba(83, 74, 183, 0.65);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px -8px rgba(83, 74, 183, 0.9);
}
.btn--ghost {
  border: 1px solid var(--rule);
  color: var(--ink-2);
}
.btn--ghost:hover { color: var(--ink); border-color: var(--ink-2); transform: translateY(-2px); }
.btn--big { font-size: 17px; padding: 20px 44px; }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 130px var(--pad) 110px;
  overflow: hidden;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero__content { position: relative; z-index: 2; max-width: 1150px; margin: 0 auto; text-align: center; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 30px;
  opacity: 0;
}
.hero__eyebrow::before,
.hero__eyebrow::after { content: ""; width: 34px; height: 1px; background: var(--teal); }
.hero__title {
  font-family: var(--font-display);
  font-weight: 430;
  color: var(--ink);
  font-size: clamp(52px, 10.5vw, 150px);
  line-height: 0.98;
  letter-spacing: -0.028em;
}
.hero__line { display: block; overflow: hidden; padding-bottom: 0.24em; margin-bottom: -0.22em; }
.hero__line > span { display: inline-block; transform: translateY(140%); will-change: transform; }
.hero__line--accent > span {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(95deg, var(--teal) 15%, var(--purple) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 0.06em;
}
.hero__sub {
  max-width: 560px;
  margin: 34px auto 0;
  font-size: clamp(15.5px, 1.35vw, 18px);
  color: var(--body-c);
  opacity: 0;
}
.hero__sub strong { color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 42px; opacity: 0; }
.hero__stamp {
  position: absolute;
  right: var(--pad);
  top: 140px;
  z-index: 2;
  width: clamp(90px, 10vw, 150px);
  aspect-ratio: 1;
  opacity: 0;
}
.hero__stamp-ring {
  transform-box: view-box;
  transform-origin: center;
  animation: spin 26s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero__ticker {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: 0;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 15px var(--pad);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(248, 250, 252, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
}
.hero__ticker b { color: var(--teal-deep); font-weight: 500; }

/* ============ Marquee ============ */
.marquee {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  padding: 20px 0;
  background: var(--paper-2);
}
.marquee__track { display: flex; white-space: nowrap; will-change: transform; }
.marquee__track span {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 30px);
  font-weight: 420;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.marquee__track em { color: var(--teal); font-size: 0.72em; vertical-align: middle; padding: 0 1.2em; }

/* ============ Sections shared ============ */
.section { position: relative; padding: clamp(100px, 14vh, 180px) var(--pad); }
.section__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 34px;
}
.section__label--center { text-align: center; }
.section__title {
  font-family: var(--font-display);
  font-weight: 460;
  color: var(--ink);
  font-size: clamp(38px, 5.6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.section__title em { font-style: italic; font-weight: 400; color: var(--purple); }
.reveal-line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.reveal-line > span { display: inline-block; transform: translateY(115%); will-change: transform; }

/* ============ Problem ============ */
.problem { max-width: 1240px; margin: 0 auto; }
.problem__statement {
  font-family: var(--font-display);
  font-weight: 420;
  font-size: clamp(28px, 4.4vw, 58px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  max-width: 1080px;
}
.problem__statement .w { color: rgba(38, 33, 92, 0.14); transition: color 0.35s linear; }
.problem__statement .w.is-lit { color: var(--ink); }

/* ============ Rail (six lenses, liquid glass) ============ */
.rail { position: relative; background: linear-gradient(180deg, transparent, rgba(238, 242, 247, 0.7) 30%, rgba(238, 242, 247, 0.7) 80%, transparent); }
.rail__head { padding: clamp(90px, 12vh, 150px) var(--pad) 20px; max-width: 1400px; margin: 0 auto; }
.rail__viewport { overflow: hidden; position: relative; }
.rail__sky {
  position: absolute;
  inset: -12%;
  pointer-events: none;
  filter: blur(46px);
  transform: translateZ(0);
}
.rail__sky--a {
  background:
    radial-gradient(38% 46% at 14% 30%, rgba(110, 120, 210, 0.32), transparent 70%),
    radial-gradient(30% 40% at 52% 78%, rgba(110, 120, 210, 0.2), transparent 70%),
    radial-gradient(26% 34% at 86% 24%, rgba(110, 120, 210, 0.24), transparent 70%);
}
.rail__sky--b {
  background:
    radial-gradient(34% 44% at 34% 66%, rgba(232, 140, 165, 0.3), transparent 70%),
    radial-gradient(26% 36% at 72% 40%, rgba(232, 140, 165, 0.22), transparent 70%),
    radial-gradient(22% 30% at 96% 82%, rgba(232, 140, 165, 0.18), transparent 70%);
}

/* ---- palette QA variants (?palette=dawn|seaglass) ---- */
body[data-palette="dawn"] .rail__sky--a,
body[data-palette="seaglass"] .rail__sky--a {
  background:
    radial-gradient(38% 46% at 14% 30%, rgba(14, 158, 142, 0.34), transparent 70%),
    radial-gradient(30% 40% at 52% 78%, rgba(14, 158, 142, 0.22), transparent 70%),
    radial-gradient(26% 34% at 86% 24%, rgba(14, 158, 142, 0.26), transparent 70%);
}
body[data-palette="dawn"] .rail__sky--b {
  background:
    radial-gradient(34% 44% at 34% 66%, rgba(233, 168, 92, 0.32), transparent 70%),
    radial-gradient(26% 36% at 72% 40%, rgba(233, 168, 92, 0.24), transparent 70%),
    radial-gradient(22% 30% at 96% 82%, rgba(233, 168, 92, 0.2), transparent 70%);
}
body[data-palette="seaglass"] .rail__sky--b {
  background:
    radial-gradient(34% 44% at 34% 66%, rgba(96, 152, 226, 0.30), transparent 70%),
    radial-gradient(26% 36% at 72% 40%, rgba(96, 152, 226, 0.22), transparent 70%),
    radial-gradient(22% 30% at 96% 82%, rgba(96, 152, 226, 0.18), transparent 70%);
}
body[data-palette="dawn"] .btn--primary,
body[data-palette="dawn"] .nav__cta,
body[data-palette="seaglass"] .btn--primary,
body[data-palette="seaglass"] .nav__cta {
  background: linear-gradient(120deg, var(--teal-deep), var(--teal));
  color: #03211c;
  box-shadow: 0 0 42px -12px rgba(14, 158, 142, 0.6);
}
.rail__track { position: relative; display: flex; gap: 22px; padding: 44px var(--pad) 100px; width: max-content; }
.panel {
  width: clamp(300px, 34vw, 470px);
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow:
    0 24px 50px -28px rgba(38, 33, 92, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -20px 34px -26px rgba(38, 33, 92, 0.14);
  padding: 36px 32px 42px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.35s ease;
  will-change: transform;
}
.panel::before {
  /* liquid specular highlight, follows the pointer */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(260px circle at var(--gx, 30%) var(--gy, 15%), rgba(255, 255, 255, 0.85), transparent 62%);
  opacity: 0.45;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.panel:hover::before { opacity: 0.95; }
.panel:hover { box-shadow: 0 32px 64px -28px rgba(38, 33, 92, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -20px 34px -26px rgba(38, 33, 92, 0.14); }
.panel__sheen {
  position: absolute;
  inset: -20% -40%;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.7) 49%, rgba(255, 255, 255, 0.25) 52%, transparent 62%);
  transform: translateX(var(--shx, -130%)) skewX(-14deg);
  pointer-events: none;
}
.panel__num {
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 340;
  font-size: clamp(60px, 6vw, 92px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(38, 33, 92, 0.4);
  margin-bottom: 28px;
}
.panel--teal .panel__num { -webkit-text-stroke-color: rgba(14, 158, 142, 0.65); }
.panel--amber .panel__num { -webkit-text-stroke-color: rgba(217, 119, 6, 0.6); }
.panel--purple .panel__num { -webkit-text-stroke-color: rgba(83, 74, 183, 0.55); }
.panel--red .panel__num { -webkit-text-stroke-color: rgba(232, 91, 74, 0.6); }
.panel h3 { position: relative; font-family: var(--font-display); font-weight: 520; font-size: 25px; color: var(--ink); margin-bottom: 12px; }
.panel p { position: relative; font-size: 14.5px; color: var(--body-c); max-width: 340px; }

/* ============ Living timeline ============ */
.timeline { max-width: 1400px; margin: 0 auto; }
.timeline__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
}
.timeline__left { position: sticky; top: 120px; }
.timeline__left p { margin-top: 24px; color: var(--body-c); max-width: 380px; }
.entry {
  border-top: 1px solid var(--rule);
  padding: 26px 4px 30px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: baseline;
}
.entry:last-child { border-bottom: 1px solid var(--rule); }
.entry__time { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.entry__body strong { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 540; color: var(--ink); margin-bottom: 4px; }
.entry__body span { font-size: 14px; color: var(--body-c); }
.entry__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  white-space: nowrap;
}
.tag--fall { background: rgba(14, 158, 142, 0.12); color: var(--teal-deep); }
.tag--safe { background: rgba(83, 74, 183, 0.12); color: var(--purple); }
.tag--hosp { background: rgba(232, 91, 74, 0.12); color: var(--red-text); }
.tag--other { background: rgba(38, 33, 92, 0.08); color: var(--ink-2); }

/* ============ Privacy / demo ============ */
.privacy { background: linear-gradient(180deg, transparent, rgba(238, 242, 247, 0.7) 25%, rgba(238, 242, 247, 0.7) 75%, transparent); }
.privacy__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  max-width: 1340px;
  margin: 0 auto;
}
.privacy__lead { margin-top: 26px; color: var(--body-c); max-width: 460px; }
.privacy__list { list-style: none; margin-top: 34px; display: grid; gap: 14px; }
.privacy__list li {
  padding-left: 26px;
  position: relative;
  font-size: 15px;
  color: var(--body-c);
}
.privacy__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 2px solid var(--teal);
}
.privacy__list li span { color: var(--ink); font-weight: 600; }

.privacy__demo {
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 40px 80px -40px rgba(38, 33, 92, 0.3);
  overflow: hidden;
  font-family: var(--font-mono);
}
.demo__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.demo__dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(38, 33, 92, 0.15); }
.demo__title { margin-left: 10px; font-size: 11.5px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.demo__badge {
  margin-left: auto;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  padding: 4px 10px;
  border-radius: 5px;
  background: rgba(232, 91, 74, 0.14);
  color: var(--red-text);
  transition: background 0.4s ease, color 0.4s ease;
}
.demo__badge.is-safe { background: rgba(14, 158, 142, 0.14); color: var(--teal-deep); }
.demo__text {
  padding: 26px 24px;
  font-size: clamp(13px, 1.1vw, 14.5px);
  line-height: 2.05;
  color: var(--body-c);
}
.demo__time { color: var(--muted); }
.pii {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(232, 91, 74, 0.13);
  color: var(--red-text);
  transition: background 0.45s ease, color 0.45s ease;
  white-space: nowrap;
}
.pii--staff { background: rgba(83, 74, 183, 0.12); color: var(--purple); }
.pii--place { background: rgba(38, 33, 92, 0.08); color: var(--ink-2); }
.pii.is-masked { background: rgba(14, 158, 142, 0.13); color: var(--teal-deep); }
.demo__footer {
  display: flex;
  gap: 10px;
  padding: 0 24px 24px;
  position: relative;
}
.demo__chip {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--rule);
  color: var(--muted);
}
.demo__chip--fall { border-color: rgba(14, 158, 142, 0.45); color: var(--teal-deep); }
.demo__chip--hosp { border-color: rgba(232, 91, 74, 0.45); color: var(--red-text); }
.demo__chip--safe { border-color: rgba(83, 74, 183, 0.45); color: var(--purple); }
.demo__scan {
  position: absolute;
  left: 0; right: 0;
  top: -260px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0;
  pointer-events: none;
}

/* ============ How ============ */
.how { max-width: 1340px; margin: 0 auto; }
.how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.step {
  border-top: 1px solid var(--rule);
  padding-top: 30px;
  position: relative;
}
.step::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  height: 1px; width: 0%;
  background: var(--teal);
  transition: width 1.1s cubic-bezier(0.65, 0, 0.35, 1);
}
.step.is-inview::before { width: 100%; }
.step__index {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 340;
  color: transparent;
  -webkit-text-stroke: 1px rgba(14, 158, 142, 0.6);
  line-height: 1;
  margin-bottom: 24px;
}
.step h3 { font-family: var(--font-display); font-weight: 520; font-size: 24px; color: var(--ink); margin-bottom: 12px; }
.step p { font-size: 15px; color: var(--body-c); max-width: 340px; }

/* ============ CTA ============ */
.cta { text-align: center; background: linear-gradient(180deg, transparent, var(--paper-2)); }
.cta__inner { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.cta__title {
  font-family: var(--font-display);
  font-weight: 440;
  color: var(--ink);
  font-size: clamp(42px, 7vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}
.cta__title em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(95deg, var(--teal) 15%, var(--purple) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cta__note { margin-top: 40px; font-size: 13.5px; color: var(--muted); font-family: var(--font-mono); letter-spacing: 0.08em; }

/* ============ Contact section ============ */
.contact { position: relative; overflow: hidden; }
.contact__splash { position: absolute; inset: 0; pointer-events: none; }
.contact__splash-blob {
  position: absolute;
  top: 0; left: 0;
  border-radius: 50%;
  opacity: 0;
  will-change: transform;
}
.contact__splash-blob--a {
  width: 1200px; height: 1200px;
  margin: -600px 0 0 -600px;
  background:
    radial-gradient(42% 42% at 46% 46%, rgba(110, 120, 210, 0.42), transparent 74%),
    radial-gradient(36% 36% at 58% 56%, rgba(232, 140, 165, 0.34), transparent 74%),
    radial-gradient(28% 28% at 50% 50%, rgba(83, 74, 183, 0.3), transparent 72%);
  filter: blur(70px);
}
.contact__splash-blob--b {
  width: 820px; height: 820px;
  margin: -410px 0 0 -410px;
  background:
    radial-gradient(44% 44% at 50% 50%, rgba(232, 140, 165, 0.32), transparent 74%),
    radial-gradient(34% 34% at 44% 44%, rgba(110, 120, 210, 0.28), transparent 72%);
  filter: blur(60px);
}
@media (hover: none) {
  .contact__splash-blob--a { opacity: 0.55; left: 78%; top: 32%; }
}
.contact__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
  max-width: 1340px;
  margin: 0 auto;
}
.contact__lead { margin-top: 26px; color: var(--body-c); max-width: 440px; }
.contact__meta {
  margin-top: 34px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-form { display: grid; gap: 18px; margin-top: 6px; }
.contact-form[hidden] { display: none; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.field label em { color: var(--muted); text-transform: none; letter-spacing: 0.04em; }
.field input,
.field textarea {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input,
.field textarea { transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease; }
.field input:focus,
.field textarea:focus {
  border-color: rgba(83, 74, 183, 0.65);
  box-shadow: 0 0 0 3px rgba(83, 74, 183, 0.14), 0 10px 26px -14px rgba(83, 74, 183, 0.45);
  transform: translateY(-2px);
}
.field:focus-within label { color: var(--purple); }
.field input.is-hint,
.field textarea.is-hint {
  color: var(--purple);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  border-color: rgba(83, 74, 183, 0.5);
}
.contact__inner.is-done { align-items: center; }
.contact__panel.is-done { display: grid; align-items: center; }
.contact-form__submit { justify-self: start; border: 0; font-family: var(--font-body); }
.contact-form__submit:disabled { opacity: 0.6; pointer-events: none; }
.contact-form__honey { display: none; }
.contact-form__error {
  color: var(--purple);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  max-width: 460px;
}
.contact-success[hidden] { display: none; }
.contact-success {
  display: grid;
  gap: 24px;
  justify-items: center;
  text-align: center;
}
.contact-success__title span,
.contact-success__title em { display: block; }
.contact-success__text { color: var(--body-c); max-width: 440px; }
.contact-success__mark circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: dotPulse 1.6s ease-in-out infinite;
}
.contact-success__mark circle:nth-of-type(2) { animation-delay: 0.22s; }
.contact-success__mark circle:nth-of-type(3) { animation-delay: 0.44s; }
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--rule);
  padding: 40px var(--pad) 34px;
  overflow: hidden;
  background: var(--paper-2);
}
.footer__word {
  position: relative;
  user-select: none;
  transform: translateY(18%);
  padding-bottom: 0.06em;
}
.footer__word-svg {
  display: block;
  width: min(100%, 1240px);
  margin: 0 auto;
  overflow: visible;
}
.footer__word-svg text {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 205px;
  letter-spacing: 0.01em;
}
.footer__word-outline {
  fill: transparent;
  stroke: rgba(38, 33, 92, 0.22);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.footer__word-fill { fill: url(#splashPaint); }
.footer__row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}
.footer__row a:hover { color: var(--ink); }

/* ============ Back to top ============ */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 70;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow:
    0 14px 30px -14px rgba(38, 33, 92, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  color: var(--ink-2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { color: var(--purple); box-shadow: 0 18px 38px -14px rgba(83, 74, 183, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.95); }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .rail__track { flex-direction: column; width: auto; }
  .panel { width: 100%; }
  .timeline__grid { grid-template-columns: 1fr; }
  .timeline__left { position: static; }
  .privacy__inner { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; }
  .how__steps { grid-template-columns: 1fr; gap: 44px; }
  .hero__stamp { display: none; }
  .hero__ticker span:nth-child(3) { display: none; }
}
@media (max-width: 640px) {
  .contact-form__row { grid-template-columns: 1fr; }
  .contact-form__submit { width: 100%; justify-content: center; }
}
@media (max-width: 560px) {
  .hero { padding-top: 110px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__ticker { flex-direction: column; gap: 6px; align-items: center; }
  .entry { grid-template-columns: 1fr; gap: 8px; }
  .footer__row { flex-direction: column; align-items: center; text-align: center; }
  /* stacked copyright column is taller — pull the wordmark up and clear it */
  .footer__word { transform: translateY(4%); padding-bottom: 0.1em; margin-bottom: 18px; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .hero__line > span, .reveal-line > span { transform: none !important; }
  .hero__eyebrow, .hero__sub, .hero__actions, .hero__ticker, .hero__stamp { opacity: 1 !important; }
  .hero__stamp, .hero__stamp-ring, .contact-success__mark circle { animation: none; }
  * { scroll-behavior: auto !important; }
}
