/* Pinlight — shared styles
   Black base, hints of dark blue, white and grey. Amber is reserved for the pin and its light.
   Components use tokens, never raw hex. */

:root {
  --ink: #020409;
  --deep: #060B16;
  --navy: #0B1427;
  --surface: #111B31;
  --text: #F2F4F8;
  --muted: #A3ABBA;
  --dim: #5E6778;            /* non-text only */
  --white-glow: rgba(226, 234, 248, 0.9);
  --blue-glow: rgba(120, 150, 210, 0.35);
  --amber: #F2A93B;          /* the pin, its light, and primary buttons */
  --amber-pale: #FFD58C;
  --line: rgba(238, 242, 250, 0.08);
  --line-strong: rgba(238, 242, 250, 0.14);
  --glass: rgba(14, 22, 40, 0.5);
  --error: #FF8A80;
  --success: #8FD9A8;

  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(88px, 11vw, 152px);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --pill: 999px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t-med: 300ms;

  color-scheme: dark;
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.75rem, 5vw + 1rem, 5.5rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.02; }
h2 { font-size: clamp(2.125rem, 2.8vw + 1rem, 3.5rem); font-weight: 500; letter-spacing: -0.035em; }
h3 { font-size: 1.375rem; line-height: 1.25; font-weight: 500; letter-spacing: -0.02em; }

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 8px;
}

::selection { background: var(--text); color: var(--ink); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); position: relative; }
.section--tight { padding-top: 0; }

.lead {
  font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.25rem);
  color: var(--muted);
  max-width: 40em;
}

.muted { color: var(--muted); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  background: var(--text);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: var(--pill);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 14px 30px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font: 500 1.0625rem/1.2 var(--font-body);
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--t-fast) ease, box-shadow var(--t-med) var(--ease-out),
    transform var(--t-fast) ease, border-color var(--t-fast) ease, color var(--t-fast) ease;
}
.btn svg { width: 20px; height: 20px; flex: none; transition: transform var(--t-med) var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 10px 40px -12px rgba(242, 169, 59, 0.55);
}
.btn--primary:hover {
  background: #FFC56B;
  box-shadow: 0 0 0 6px rgba(242, 169, 59, 0.14), 0 14px 50px -10px rgba(242, 169, 59, 0.7);
}
.btn--primary:active { transform: scale(0.98); }

.btn--ghost {
  background: rgba(238, 242, 250, 0.07);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover { background: rgba(238, 242, 250, 0.12); border-color: rgba(238, 242, 250, 0.28); }

.btn--small { min-height: 46px; padding: 10px 22px; font-size: 0.9375rem; }

.btn[disabled] { opacity: 0.55; cursor: progress; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 500;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(238, 242, 250, 0.4);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: text-decoration-color var(--t-fast) ease, text-underline-offset var(--t-med) var(--ease-out);
}
.text-link:hover { text-decoration-color: var(--text); text-underline-offset: 9px; }

.inline-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(238, 242, 250, 0.4);
  text-underline-offset: 4px;
}
.inline-link:hover { text-decoration-color: var(--text); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: var(--pill);
  border: 1px solid rgba(160, 185, 230, 0.3);
  background: rgba(11, 20, 39, 0.7);
  color: var(--text);
  font-size: 0.9375rem;
  box-shadow: inset 0 0 20px rgba(120, 150, 210, 0.12);
}
.badge svg { width: 18px; height: 18px; color: #C9D6EE; }

/* ---------- Atmosphere: light streaks, sparkles, grid floor ---------- */

.streaks {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
.streaks::before,
.streaks::after {
  content: "";
  position: absolute;
  top: -20%;
  width: 60%;
  height: 120%;
  background:
    repeating-linear-gradient(-42deg,
      transparent 0 30px,
      var(--streak-a) 42px,
      transparent 58px,
      transparent 86px,
      var(--streak-b) 100px,
      transparent 118px,
      transparent 150px);
  filter: blur(8px);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 0% 45%, #000 0%, rgba(0,0,0,.55) 38%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 60% at 0% 45%, #000 0%, rgba(0,0,0,.55) 38%, transparent 70%);
}
.streaks::before { left: -6%; }
.streaks::after { right: -6%; transform: scaleX(-1); }

.spark {
  position: absolute;
  width: 20px;
  height: 20px;
  color: #FFFFFF;
  opacity: 0.5;
  pointer-events: none;
}
.spark--sm { width: 12px; height: 12px; opacity: 0.35; }
.spark--lg { width: 26px; height: 26px; opacity: 0.6; }

@media (prefers-reduced-motion: no-preference) {
  .spark--twinkle { animation: twinkle 5s ease-in-out infinite; }
  .spark--twinkle:nth-of-type(2n) { animation-delay: -2.2s; }
  .spark--twinkle:nth-of-type(3n) { animation-delay: -3.6s; }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.18; }
  50%      { opacity: 0.7; }
}

/* A receding grid floor, used under inner-page intros and the closing CTA. */
.floor {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 2400px;
  height: 520px;
  margin-left: -1200px;
  background-image:
    linear-gradient(rgba(220, 230, 250, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 230, 250, 0.1) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center bottom;
  transform: perspective(520px) rotateX(64deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: radial-gradient(ellipse 45% 100% at 50% 100%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 45% 100% at 50% 100%, #000 10%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 4, 9, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.375rem;
  letter-spacing: -0.04em;
}
.logo svg { width: 20px; height: 27px; filter: drop-shadow(0 0 8px rgba(242, 169, 59, 0.55)); }

.nav { display: flex; align-items: center; gap: 8px; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--pill);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.975rem;
  transition: color var(--t-fast) ease, background-color var(--t-fast) ease;
}
.nav__link:hover { color: var(--text); }
.nav__link[aria-current="page"] { color: var(--text); background: rgba(238, 242, 250, 0.08); }

@media (min-width: 900px) {
  .nav__list { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  min-width: 46px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: rgba(238, 242, 250, 0.05);
  color: var(--text);
  font: 500 0.9375rem var(--font-body);
  cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 18px; height: 12px; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--t-med) var(--ease-out), top var(--t-med) var(--ease-out);
}
.nav-toggle__bars::before { top: 2px; }
.nav-toggle__bars::after { top: 9px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 5.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 5.5px; transform: rotate(-45deg); }

@media (max-width: 899px) {
  /* Without JS the nav simply wraps below the logo, so it is never unreachable. */
  .site-header__inner { flex-wrap: wrap; padding-block: 10px; }
  .nav { flex-wrap: wrap; }

  .js .nav-toggle { display: inline-flex; }
  .js .nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 8px 0 20px;
  }
  .js .nav.is-open { display: flex; }
  .js .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .js .nav__link { display: flex; min-height: 52px; font-size: 1.0625rem; padding-inline: 16px; }
  .js .nav__cta .btn { width: 100%; min-height: 52px; }
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-top: clamp(56px, 7vw, 96px);
  text-align: center;
}

.hero__content { position: relative; z-index: 2; }
.hero h1 { max-width: none; margin: 24px auto 0; }
.hero h1 .nobr { white-space: nowrap; }
.hero__sub { margin: 24px auto 0; }

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}
.hero__note { font-size: 0.9375rem; color: var(--muted); }

@media (max-width: 559px) {
  .hero__actions .btn { width: 100%; }
}

/* The stage: a city laid out as a 3D floor, with one lit pin standing on it. */
.hero__stage {
  --tilt: 64deg;
  --scale: 0.78;
  position: relative;
  height: clamp(340px, 36vw, 500px);
  margin-top: -64px;
  perspective: 1100px;
  perspective-origin: 50% 0%;
}
@media (max-width: 699px) {
  .hero__stage { --scale: 0.5; height: 215px; perspective: 800px; margin-top: 0; }
  /* Close the gap between the map and the first section on phones. */
  .hero + .problem { padding-top: 16px; }
  .hero + .problem .problem__rule { display: none; }
}

.city {
  position: absolute;
  left: calc(50% - 820px);
  top: calc(44% - 460px);
  width: 1640px;
  height: 920px;
  transform: rotateX(var(--tilt)) scale(var(--scale));
  transform-style: preserve-3d;
}
.city__map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 46% 50% at 50% 50%, #000 30%, transparent 72%);
  mask-image: radial-gradient(ellipse 46% 50% at 50% 50%, #000 30%, transparent 72%);
}

/* The lit block is the floor's center, which always projects to (50%, 44%) of the stage,
   so the pin stands there in flat 2D: no 3D sorting, nothing to misalign. */
.beacon {
  --pin: clamp(64px, 6vw, 88px);
  position: absolute;
  left: 50%;
  top: 44%;
  width: 0;
  height: 0;
  z-index: 1;
}
@media (max-width: 699px) {
  .beacon { --pin: 56px; }
}

.beacon__beam {
  position: absolute;
  left: calc(var(--pin) * -1.6);
  bottom: calc(var(--pin) * 0.5);
  width: calc(var(--pin) * 3.2);
  height: calc(var(--pin) * 4.6);
  background: linear-gradient(to top, rgba(255, 236, 205, 0.38), rgba(235, 240, 250, 0.1) 45%, transparent 90%);
  clip-path: polygon(44% 100%, 56% 100%, 100% 0, 0 0);
  filter: blur(10px);
}

.beacon__halo {
  position: absolute;
  left: calc(var(--pin) * -1.3);
  bottom: calc(var(--pin) * -0.4);
  width: calc(var(--pin) * 2.6);
  height: calc(var(--pin) * 2.6);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 169, 59, 0.28), rgba(242, 169, 59, 0) 62%);
}

.beacon__pin {
  position: absolute;
  left: calc(var(--pin) * -0.5);
  bottom: 0;
  width: var(--pin);
  height: calc(var(--pin) * 1.333);
  max-width: none;
  filter: drop-shadow(0 0 22px rgba(242, 169, 59, 0.6)) drop-shadow(0 20px 20px rgba(0, 0, 0, 0.5));
}

/* Intro (home, motion allowed): the head script adds .intro to <html>, js/site.js flies the pin
   along the route while the route draws in, then removes .intro so the light fades in.
   With reduced motion .intro is never added; without JS a timer in the head removes it. */
.intro .beacon__pin,
.intro .beacon__beam,
.intro .beacon__halo,
.intro .city .pulse,
.intro .city__glow { opacity: 0; }
.intro .route { stroke-dasharray: 1; stroke-dashoffset: 1; }

@media (prefers-reduced-motion: no-preference) {
  .streaks { animation: fade-in 1800ms ease 150ms both; }
  :root:not(.intro) .beacon__beam { animation: fade-in 900ms ease both; }
  :root:not(.intro) .city__glow { animation: fade-in 900ms ease both; }
  :root:not(.intro) .beacon__halo { animation: fade-in 700ms ease both, halo 4.5s ease-in-out 700ms infinite; }
  :root:not(.intro) .city .pulse { animation: ring 4.5s ease-out 300ms infinite both; transform-box: fill-box; transform-origin: center; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes halo {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.7; }
}
@keyframes ring {
  0%   { transform: scale(0.3); opacity: 0.8; }
  70%  { opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ---------- Section heads ---------- */

.section-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.section-head p { margin-top: 20px; color: var(--muted); font-size: 1.125rem; }

/* ---------- Home: problem ---------- */

.problem { text-align: center; }
.problem h2 { max-width: 15ch; margin-inline: auto; }
.problem__body {
  max-width: 36em;
  margin: 32px auto 0;
  color: var(--muted);
  font-size: 1.1875rem;
}
.problem__rule {
  width: 1px;
  height: 72px;
  margin: 0 auto 40px;
  background: linear-gradient(transparent, rgba(226, 234, 248, 0.7));
}

/* ---------- Home: what we do ---------- */

.pillars {
  display: grid;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 900px) {
  .pillars { grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; }
  .pillar--lead { grid-row: span 2; }
}

.pillar {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(17, 27, 49, 0.6), rgba(6, 11, 22, 0.6));
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  min-height: 230px;
  transition: border-color var(--t-med) ease;
}
.pillar:hover { border-color: rgba(238, 242, 250, 0.28); }
.pillar h3 {
  margin-top: auto;
  font-size: clamp(2rem, 2.6vw + 1rem, 3.25rem);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 1;
}
.pillar p { margin-top: 14px; color: var(--muted); font-size: 1.0625rem; max-width: 28em; }

.pillar--lead {
  min-height: 380px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(120, 150, 210, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(17, 27, 49, 0.7), rgba(6, 11, 22, 0.7));
}
.pillar--lead .floor {
  width: 1400px;
  margin-left: -700px;
  height: 320px;
  background-size: 40px 40px;
  background-image:
    linear-gradient(rgba(220, 230, 250, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 230, 250, 0.16) 1px, transparent 1px);
}
.pillar--lead .pillar__icon { color: var(--amber); border-color: rgba(242, 169, 59, 0.4); box-shadow: 0 0 24px rgba(242, 169, 59, 0.25); }

.pillar__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(238, 242, 250, 0.04);
  color: #C9D6EE;
}
.pillar__icon svg { width: 22px; height: 22px; }
.pillar__icon + h3 { margin-top: auto; padding-top: 48px; }

.pillars__more { margin-top: 32px; text-align: center; }

/* ---------- Home: process ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 40px;
  position: relative;
}

.step { position: relative; padding-left: 68px; }

.step__num {
  position: absolute;
  left: 0; top: -6px;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--navy);
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text);
  z-index: 1;
}
.step__num {
  transition: background-color var(--t-med) ease, color var(--t-med) ease,
    border-color var(--t-med) ease, box-shadow var(--t-med) ease;
}

/* Highlight: the step under the pointer or focus; on phones, the step in view (set by JS). */
.step:hover .step__num,
.step:focus-within .step__num,
.step.is-active .step__num {
  background: var(--amber);
  color: var(--ink);
  border-color: var(--amber);
  box-shadow: 0 0 0 7px rgba(242, 169, 59, 0.12), 0 0 32px rgba(242, 169, 59, 0.45);
}
.step p { transition: color var(--t-med) ease; }
.step:hover p,
.step:focus-within p,
.step.is-active p { color: #C9D0DC; }

.steps::before {
  content: "";
  position: absolute;
  left: 22px; top: 22px; bottom: 22px;
  width: 1px;
  background: linear-gradient(rgba(226, 234, 248, 0.7), var(--line-strong) 40%, var(--line-strong));
}

.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); max-width: 30em; }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 48px; text-align: center; }
  .steps::before {
    left: 16.66%; right: 16.66%; top: 22px; bottom: auto;
    width: auto; height: 1px;
    background: linear-gradient(90deg, rgba(226, 234, 248, 0.7), var(--line-strong) 40%, var(--line-strong));
  }
  .step { padding-left: 0; padding-top: 80px; }
  .step__num { left: 50%; top: 0; transform: translateX(-50%); }
  .step p { margin-inline: auto; }

  /* With nothing hovered, step 1 stays lit so the row never looks empty. */
  .steps:not(:hover):not(:focus-within) .step:first-child .step__num {
    background: var(--amber);
    color: var(--ink);
    border-color: var(--amber);
    box-shadow: 0 0 0 7px rgba(242, 169, 59, 0.12), 0 0 32px rgba(242, 169, 59, 0.45);
  }
}

/* ---------- FAQ ---------- */

.faq__list { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }

.faq__item {
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: var(--glass);
  transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease;
}
.faq__item[open] { border-color: rgba(238, 242, 250, 0.26); background: rgba(17, 27, 49, 0.65); }

.faq__item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 18px 22px 18px 26px;
  cursor: pointer;
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.faq__item summary::-webkit-details-marker { display: none; }

.faq__icon {
  flex: none;
  position: relative;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: border-color var(--t-fast) ease, transform var(--t-med) var(--ease-out);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: opacity var(--t-fast) ease; }
.faq__item summary:hover .faq__icon { border-color: rgba(238, 242, 250, 0.4); }
.faq__item[open] .faq__icon { border-color: rgba(238, 242, 250, 0.5); transform: rotate(180deg); }
.faq__item[open] .faq__icon::after { opacity: 0; }

.faq__answer { padding: 0 72px 24px 26px; color: var(--muted); }

.faq__more { margin-top: 28px; text-align: center; color: var(--muted); }

/* ---------- Closing CTA ---------- */

.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(ellipse 60% 70% at 50% 100%, rgba(120, 150, 210, 0.22), transparent 70%),
    var(--deep);
  padding: clamp(56px, 8vw, 104px) clamp(24px, 6vw, 80px) clamp(96px, 12vw, 150px);
  text-align: center;
}
.cta .floor { height: 320px; }
.cta__pin { width: 30px; height: 40px; margin: 0 auto 28px; filter: drop-shadow(0 0 14px rgba(242, 169, 59, 0.75)); }
.cta h2 { max-width: 16ch; margin-inline: auto; }
.cta p { margin: 20px auto 0; color: var(--muted); max-width: 34em; }
.cta .btn { margin-top: 36px; }
@media (max-width: 559px) { .cta .btn { width: 100%; } }

/* ---------- Page intro (inner pages) ---------- */

.page-intro {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  padding-block: clamp(72px, 10vw, 136px) clamp(104px, 12vw, 168px);
}
.page-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(120, 150, 210, 0.2), transparent 70%);
  z-index: -2;
}
.page-intro .floor { height: 360px; }
.page-intro .floor {
  /* fade the floor's bottom edge into the page (a mask, so the sky tint shows through) */
  -webkit-mask-image: radial-gradient(ellipse 45% 100% at 50% 100%, #000 10%, transparent 70%), linear-gradient(to top, transparent, #000 45%);
  -webkit-mask-composite: source-in;
  mask-image: radial-gradient(ellipse 45% 100% at 50% 100%, #000 10%, transparent 70%), linear-gradient(to top, transparent, #000 45%);
  mask-composite: intersect;
}
/* Time-of-day horizon glow inside the top section, behind the map: no body text sits here. */
.hero::before,
.page-intro::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 75%;
  background: var(--horizon);
  -webkit-mask-image: linear-gradient(to top, transparent, #000 32%);
  mask-image: linear-gradient(to top, transparent, #000 32%);
  mix-blend-mode: screen; /* light falls on the map instead of hiding behind its tiles */
  z-index: 1;
  pointer-events: none;
}
.page-intro > .container { position: relative; z-index: 2; }

/* 404 */
.page-intro--404 { min-height: 72vh; display: grid; align-content: center; }
.not-found__code {
  display: block;
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.18em;
  color: var(--amber);
}
.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}
@media (max-width: 559px) {
  .not-found__actions .btn { width: 100%; }
}
.page-intro h1 { max-width: 15ch; margin-inline: auto; }
.page-intro .lead { margin: 24px auto 0; }

/* ---------- Services ---------- */

.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }

.service {
  display: grid;
  gap: 20px 56px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background: var(--glass);
  transition: border-color var(--t-med) ease;
}
.service:hover { border-color: rgba(238, 242, 250, 0.26); }
@media (min-width: 860px) {
  .service { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.service h2 {
  font-size: clamp(1.75rem, 1.6vw + 1rem, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.service__line { margin-top: 12px; color: var(--muted); font-size: 1.0625rem; max-width: 28em; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: start; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #DCE4F3;
  box-shadow: 0 0 10px rgba(200, 215, 245, 0.7);
}
@media (min-width: 860px) { .service .ticks { padding-top: 8px; } }

.service--feature {
  border-color: rgba(160, 185, 230, 0.35);
  background: radial-gradient(ellipse 60% 120% at 0% 100%, rgba(120, 150, 210, 0.2), transparent 70%), var(--glass);
}

.services-note { margin-top: 28px; color: var(--muted); font-size: 0.975rem; text-align: center; }

/* Typical pricing: two plan cards up top, four smaller cards below. */
.prices {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) { .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .prices { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .price-card--plan { grid-column: span 2; }
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(17, 27, 49, 0.6), rgba(6, 11, 22, 0.6));
  transition: border-color var(--t-med) ease;
}
.price-card:hover { border-color: rgba(238, 242, 250, 0.28); }
.price-card--plan { padding: clamp(28px, 4vw, 44px); }
.price-card--lit {
  border-color: rgba(242, 169, 59, 0.45);
  background:
    radial-gradient(ellipse 80% 70% at 100% 0%, rgba(242, 169, 59, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(17, 27, 49, 0.7), rgba(6, 11, 22, 0.7));
  box-shadow: 0 0 0 1px rgba(242, 169, 59, 0.08), 0 24px 70px -30px rgba(242, 169, 59, 0.35);
}
.price-card--lit:hover { border-color: rgba(242, 169, 59, 0.7); }

.price-card__kind {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.price-card--lit .price-card__kind { color: var(--amber); }
.price-card h3 { margin-top: 12px; }
.price-card--plan h3 { font-size: clamp(1.5rem, 1vw + 1rem, 1.875rem); }

.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; margin: 20px 0 0; }
.price__from { color: var(--muted); font-size: 0.9375rem; }
.price__amount {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.25rem, 1.6vw + 1.5rem, 2.75rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
}
.price-card--plan .price__amount { font-size: clamp(2.75rem, 2.4vw + 1.6rem, 3.75rem); }
.price-card--lit .price__amount { color: var(--amber-pale); }
.price__unit { color: var(--muted); font-size: 0.9375rem; margin-left: -4px; }
.price-card__desc { margin-top: 16px; color: var(--muted); font-size: 0.9875rem; }

.prices__notes { margin-top: 24px; text-align: center; }
.prices__notes p { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.fine-print { margin-top: 8px !important; font-size: 0.8125rem !important; color: var(--muted); opacity: 0.85; }

.pricing__factors { max-width: 760px; margin: clamp(48px, 6vw, 72px) auto 0; }

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(238, 242, 250, 0.06);
}

.factors { list-style: none; margin: 0; padding: 0; }
.factors li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}
.factors li:first-child { padding-top: 0; }
.factors li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 1px;
  background: rgba(226, 234, 248, 0.6);
  transform: translateY(-0.3em);
}
.factors__close { margin-top: 24px; font-weight: 500; }

/* ---------- About ---------- */

.mission { text-align: center; padding-block: clamp(24px, 4vw, 48px) var(--section); }
.mission__pin { width: 40px; height: 53px; margin: 0 auto 36px; filter: drop-shadow(0 0 18px rgba(242, 169, 59, 0.7)); }
.mission__text {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 3.4vw + 1rem, 4rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin: 0 auto;
  max-width: 18ch;
  text-wrap: balance;
}

.split { display: grid; gap: 24px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 0.8fr 1.2fr; gap: 72px; }
}
.split__body { font-size: 1.1875rem; color: var(--muted); max-width: 34em; }
.split__body strong { color: var(--text); font-weight: 500; }

.beliefs-head { margin-bottom: clamp(32px, 5vw, 48px); }

.beliefs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 800px) { .beliefs { grid-template-columns: 1fr 1fr; } }
.beliefs li {
  padding: clamp(24px, 3.5vw, 36px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background: var(--glass);
}
.beliefs h3 { margin-bottom: 10px; }
.beliefs p { color: var(--muted); max-width: 30em; }

.founder { margin-top: clamp(40px, 6vw, 64px); text-align: center; color: var(--muted); font-size: 0.975rem; }

/* ---------- Contact ---------- */

.contact__grid { display: grid; gap: 48px; }
@media (min-width: 960px) {
  .contact__grid { grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; }
}

.contact__aside h2 { font-size: clamp(1.625rem, 1vw + 1rem, 2rem); font-weight: 500; margin-bottom: 24px; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: #DCE4F3; }

.email-alt {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.email-alt a { font-weight: 500; }

.form { display: grid; gap: 22px; }

.field { display: grid; gap: 8px; }
.field label { font-weight: 500; font-size: 0.975rem; }
.field .opt { color: var(--muted); font-weight: 400; }
.field .req { color: var(--muted); }

.field input,
.field textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: rgba(2, 4, 9, 0.6);
  color: var(--text);
  font: 400 1rem/1.4 var(--font-body);   /* 16px: no iOS zoom */
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--dim); }
.field input:hover,
.field textarea:hover { border-color: rgba(238, 242, 250, 0.26); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(238, 242, 250, 0.7);
  box-shadow: 0 0 0 4px rgba(160, 185, 230, 0.18);
}
.field.has-error input,
.field.has-error textarea { border-color: var(--error); }
.field__error { color: var(--error); font-size: 0.9375rem; margin: 0; }
.field__error:empty { display: none; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form .btn { width: 100%; margin-top: 6px; }

.form-status { border-radius: var(--r-md); padding: 16px 18px; font-size: 1rem; }
.form-status:empty { display: none; }
.form-status.is-success { background: rgba(143, 217, 168, 0.1); border: 1px solid rgba(143, 217, 168, 0.4); }
.form-status.is-info { background: rgba(120, 150, 210, 0.12); border: 1px solid rgba(160, 185, 230, 0.4); margin-top: 18px; }
.form-status.is-error { background: rgba(255, 138, 128, 0.1); border: 1px solid rgba(255, 138, 128, 0.45); margin-top: 18px; }

/* ---------- Privacy (long-form) ---------- */

.prose { max-width: 42em; margin-inline: auto; }
.prose h2 { font-size: clamp(1.5rem, 1vw + 1rem, 1.875rem); font-weight: 500; margin: 48px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--dim); }
.updated { color: var(--muted); font-size: 0.975rem; margin-top: 20px; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 56px 40px;
}
.site-footer__grid { display: grid; gap: 32px; }
@media (min-width: 800px) {
  .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr; align-items: start; }
}
.site-footer__tag { margin-top: 12px; color: var(--muted); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--t-fast) ease;
}
.footer-links a:hover { color: var(--text); }
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ---------- Sky: faint stars + time-of-day glow (fixed, behind everything) ---------- */

/* The sky layer is fixed to the viewport, so its tint sits behind every section as you scroll.
   Glows peak below the bottom edge, so text never sits on the brightest part. */
:root {
  /* night (default, also the no-JS look) */
  --sky-base: var(--ink);
  --sky-glow: radial-gradient(ellipse 80% 45% at 50% 112%, rgba(70, 95, 150, 0.12), transparent 70%);
  --horizon: none;
  --star-opacity: 1;
  --streak-a: rgba(215, 226, 248, 0.38);
  --streak-b: rgba(140, 168, 222, 0.3);
}
:root[data-sky="dawn"] {
  --sky-base: linear-gradient(to top, #241020 0%, #120A18 35%, #05060E 75%);
  --sky-glow:
    radial-gradient(ellipse 110% 55% at 50% 118%, rgba(255, 128, 112, 0.4), rgba(255, 168, 104, 0.16) 42%, transparent 72%),
    radial-gradient(ellipse 60% 30% at 50% 108%, rgba(255, 196, 140, 0.28), transparent 70%);
  --horizon:
    radial-gradient(ellipse 75% 60% at 50% 82%, rgba(255, 150, 120, 0.6), rgba(255, 120, 130, 0.24) 42%, transparent 74%),
    radial-gradient(ellipse 38% 28% at 50% 80%, rgba(255, 196, 140, 0.45), transparent 70%);
  --star-opacity: 0.4;
  --streak-a: rgba(255, 210, 196, 0.36);
  --streak-b: rgba(236, 156, 148, 0.28);
}
:root[data-sky="day"] {
  --sky-base: linear-gradient(to bottom, #14284F 0%, #0E1D3C 45%, #091530 100%);
  --sky-glow:
    radial-gradient(ellipse 90% 50% at 50% -8%, rgba(180, 208, 255, 0.2), transparent 70%),
    radial-gradient(ellipse 120% 40% at 50% 110%, rgba(120, 160, 230, 0.16), transparent 70%);
  --horizon: radial-gradient(ellipse 80% 65% at 50% 82%, rgba(150, 190, 255, 0.26), transparent 72%);
  --star-opacity: 0.12;
  --streak-a: rgba(232, 240, 255, 0.46);
  --streak-b: rgba(160, 194, 250, 0.36);
}
:root[data-sky="sunset"] {
  --sky-base: linear-gradient(to top, #2A1020 0%, #160B22 40%, #05050E 80%);
  --sky-glow:
    radial-gradient(ellipse 120% 55% at 50% 120%, rgba(242, 140, 59, 0.45), rgba(210, 84, 70, 0.22) 40%, transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 70%, rgba(118, 52, 168, 0.24), transparent 72%);
  --horizon:
    radial-gradient(ellipse 85% 62% at 50% 82%, rgba(242, 140, 59, 0.7), rgba(214, 80, 72, 0.34) 38%, rgba(118, 52, 168, 0.26) 62%, transparent 80%),
    radial-gradient(ellipse 38% 26% at 50% 80%, rgba(255, 190, 110, 0.5), transparent 70%);
  --star-opacity: 0.5;
  --streak-a: rgba(255, 200, 160, 0.36);
  --streak-b: rgba(176, 124, 216, 0.3);
}

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--sky-base);
}
.sky__glow { position: absolute; inset: 0; background: var(--sky-glow); }

.sky__stars {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  border-radius: 50%;
  opacity: var(--star-opacity);
  will-change: transform;
}
.sky__stars--far {
  box-shadow:
    38.3vw 122vh 0 0 rgba(235,240,250,0.36), 5.2vw 51.3vh 0 0 rgba(235,240,250,0.36),
    4.2vw 133.6vh 0 0 rgba(235,240,250,0.41), 85.5vw 62.9vh 0 0 rgba(235,240,250,0.43),
    44.5vw 15.6vh 0 0 rgba(235,240,250,0.42), 40.2vw 112.7vh 0 0 rgba(235,240,250,0.27),
    86.7vw 3.5vh 0 0 rgba(235,240,250,0.38), 56.5vw 24.5vh 0 0 rgba(235,240,250,0.31),
    38.6vw 4vh 0 0 rgba(235,240,250,0.44), 2.5vw 67.2vh 0 0 rgba(235,240,250,0.37),
    77.1vw 41.6vh 0 0 rgba(235,240,250,0.21), 16.4vw 12.2vh 0 0 rgba(235,240,250,0.2),
    82.9vw 21.2vh 0 0 rgba(235,240,250,0.33), 93.2vw 123.1vh 0 0 rgba(235,240,250,0.36),
    12.4vw 9.2vh 0 0 rgba(235,240,250,0.34), 95.9vw 100.6vh 0 0 rgba(235,240,250,0.33),
    83.1vw 20.5vh 0 0 rgba(235,240,250,0.24), 87.4vw 99vh 0 0 rgba(235,240,250,0.43),
    59.7vw 114.5vh 0 0 rgba(235,240,250,0.37), 18.3vw 93.3vh 0 0 rgba(235,240,250,0.27),
    72.4vw 2.5vh 0 0 rgba(235,240,250,0.31), 12.5vw 11.7vh 0 0 rgba(235,240,250,0.22),
    82vw 39.3vh 0 0 rgba(235,240,250,0.19), 81.6vw 80.2vh 0 0 rgba(235,240,250,0.36),
    79.3vw 130.8vh 0 0 rgba(235,240,250,0.22), 8.6vw 61.8vh 0 0 rgba(235,240,250,0.21),
    88vw 59.7vh 0 0 rgba(235,240,250,0.26), 38.6vw 27.2vh 0 0 rgba(235,240,250,0.27),
    49.5vw 125.7vh 0 0 rgba(235,240,250,0.34), 19.8vw 79.5vh 0 0 rgba(235,240,250,0.25),
    37vw 90.4vh 0 0 rgba(235,240,250,0.31), 20.4vw 29.2vh 0 0 rgba(235,240,250,0.41),
    18.7vw 139.9vh 0 0 rgba(235,240,250,0.45), 44.6vw 19.5vh 0 0 rgba(235,240,250,0.3),
    54.3vw 2.1vh 0 0 rgba(235,240,250,0.33), 57vw 11.2vh 0 0 rgba(235,240,250,0.39),
    76.8vw 71.4vh 0 0 rgba(235,240,250,0.28), 58.7vw 42.4vh 0 0 rgba(235,240,250,0.24),
    2.8vw 47.4vh 0 0 rgba(235,240,250,0.4), 14vw 88.1vh 0 0 rgba(235,240,250,0.23),
    56.2vw 87.1vh 0 0 rgba(235,240,250,0.37), 75.5vw 62.4vh 0 0 rgba(235,240,250,0.43),
    16.8vw 82.5vh 0 0 rgba(235,240,250,0.38), 28.5vw 125.9vh 0 0 rgba(235,240,250,0.3),
    12.7vw 60.8vh 0 0 rgba(235,240,250,0.26), 87.2vw 118vh 0 0 rgba(235,240,250,0.23);
}
.sky__stars--near {
  width: 2px;
  height: 2px;
  box-shadow:
    76vw 129.5vh 0 0 rgba(235,240,250,0.64), 81.8vw 60.2vh 0 0 rgba(235,240,250,0.37),
    89.3vw 109.6vh 0 0 rgba(235,240,250,0.47), 24.6vw 24.6vh 0 0 rgba(235,240,250,0.65),
    3.8vw 6.6vh 0 0 rgba(235,240,250,0.48), 79.6vw 123.8vh 0 0 rgba(235,240,250,0.53),
    72.5vw 110.2vh 0 0 rgba(235,240,250,0.55), 64.6vw 56.2vh 0 0 rgba(235,240,250,0.52),
    4.6vw 67.7vh 0 0 rgba(235,240,250,0.56), 93.4vw 64.4vh 0 0 rgba(235,240,250,0.65),
    95.2vw 21.9vh 0 0 rgba(235,240,250,0.52), 64.4vw 53.1vh 0 0 rgba(235,240,250,0.6),
    36.8vw 104.2vh 0 0 rgba(235,240,250,0.42), 65.6vw 120.7vh 0 0 rgba(235,240,250,0.58),
    58.4vw 129.1vh 0 0 rgba(235,240,250,0.49), 85.6vw 34.5vh 0 0 rgba(235,240,250,0.65);
}

/* ---------- Cursor glow (desktop with a mouse only; created by JS) ---------- */

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 240px;
  height: 240px;
  margin: -120px 0 0 -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 169, 59, 0.12), rgba(242, 169, 59, 0.05) 40%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 500ms ease;
  will-change: transform;
}
.cursor-glow.is-on { opacity: 1; }
@media (hover: none), (pointer: coarse) {
  .cursor-glow { display: none; }
}

/* ---------- What we do: illustrated mockups ---------- */

.mock {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin-bottom: 36px;
  font-size: 0.8125rem;
  line-height: 1.3;
}
.pillar--lead .mock { max-width: 420px; }
@media (min-width: 900px) {
  /* The tall lead card: float the ranking in the open space above the heading. */
  .pillar--lead .mock { margin: auto auto 48px; transform: scale(1.12); transform-origin: center; }
}

.skel { display: block; height: 7px; border-radius: 4px; background: rgba(238, 242, 250, 0.12); }
.skel--80 { width: 80%; }
.skel--60 { width: 60%; }
.skel--50 { width: 50%; }
.skel--40 { width: 40%; }
.skel--30 { width: 30%; }

/* Get found: a ranked list where our pin rises to #1 */
.rank { position: relative; height: 184px; }
.rank__num {
  position: absolute;
  left: 0;
  width: 22px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9375rem;
}
.rank__row {
  position: absolute;
  left: 34px;
  right: 0;
  top: 0;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(6, 11, 22, 0.75);
  transform: translateY(calc(var(--to) * 66px));
  transition: transform 1000ms var(--ease-out) 350ms, border-color 600ms ease 1000ms, box-shadow 600ms ease 1000ms;
}
.rank__dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(238, 242, 250, 0.06); }
.rank__lines { flex: 1; display: grid; gap: 7px; }
.rank__row--you {
  z-index: 1;
  border-color: rgba(242, 169, 59, 0.55);
  background: linear-gradient(90deg, rgba(242, 169, 59, 0.14), rgba(6, 11, 22, 0.8) 70%);
  box-shadow: 0 0 32px -6px rgba(242, 169, 59, 0.45);
}
.rank__row--you svg { flex: none; width: 18px; height: 24px; filter: drop-shadow(0 0 6px rgba(242, 169, 59, 0.7)); }
.rank__label { font-weight: 600; color: var(--text); font-size: 0.875rem; }
.rank__row--you .skel { background: rgba(242, 169, 59, 0.3); }

/* Get chosen: a review whose stars fill in */
.review {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: rgba(6, 11, 22, 0.75);
}
.review__head { display: flex; align-items: center; gap: 12px; }
.review__avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #2A3754, #151F35); }
.review__who { flex: 1; display: grid; gap: 7px; }
.stars { display: flex; gap: 6px; }
.star { position: relative; width: 22px; height: 22px; }
.star svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.star__empty { color: rgba(238, 242, 250, 0.22); }
.star__full {
  color: var(--amber);
  filter: drop-shadow(0 0 6px rgba(242, 169, 59, 0.55));
  transition: opacity 300ms ease, transform 450ms var(--ease-out);
  transition-delay: calc(450ms + var(--i) * 140ms);
}
.review__text { display: grid; gap: 7px; }

/* Get booked: a phone with a "New booking" notification */
.phone {
  position: relative;
  max-width: 270px;
  height: 172px;
  padding: 40px 12px 0;
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 34px 34px 0 0;
  background: linear-gradient(180deg, #0F182C, rgba(6, 11, 22, 0));
  -webkit-mask-image: linear-gradient(#000 62%, transparent);
  mask-image: linear-gradient(#000 62%, transparent);
}
.phone::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 64px;
  height: 16px;
  margin-left: -32px;
  border-radius: 10px;
  background: var(--ink);
  border: 1px solid var(--line);
}
.notif {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(30, 42, 68, 0.8);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.7);
}
.notif + .notif { margin-top: 8px; }
.notif--new { transition: transform 700ms var(--ease-out) 450ms, opacity 500ms ease 450ms; }
.notif--old { opacity: 0.4; transform: scale(0.96); }
.notif__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--amber);
}
.notif__icon svg { width: 12px; height: 16px; }
.notif--old .notif__icon { background: rgba(238, 242, 250, 0.12); }
.notif__body { flex: 1; display: grid; gap: 6px; }
.notif__title { font-weight: 600; color: var(--text); font-size: 0.875rem; }

/* Start states: only when JS runs, motion is allowed, and the card hasn't scrolled in yet. */
@media (prefers-reduced-motion: no-preference) {
  .js .pillar:not(.is-in) .rank__row { transform: translateY(calc(var(--from) * 66px)); }
  .js .pillar:not(.is-in) .rank__row--you { border-color: var(--line-strong); box-shadow: none; }
  .js .pillar:not(.is-in) .star__full { opacity: 0; transform: scale(0.4); }
  .js .pillar:not(.is-in) .notif--new { opacity: 0; transform: translateY(-28px); }
}

/* ---------- Scroll reveal (only when JS is running) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
