/* Sky-Lines Intelligence: landing page styles (RTL). Loaded by /index.html.
 * Two themes on the same tokens: night (the default, also without JS) and daylight (:root[data-theme="light"]).
 * The theme is resolved before first paint by the inline script in <head> (localStorage skyline_theme, shared
 * with /app/, then prefers-color-scheme), and switched live by the nav toggle (site.js). */

:root {
  --ink: #050817;
  --ink-2: #080d26;
  --navy: #0d1540;
  --panel: rgba(10, 15, 42, 0.74);
  --panel-solid: #0b1131;
  --panel-2: #10183f;
  --line: rgba(157, 176, 255, 0.14);
  --line-2: rgba(157, 176, 255, 0.26);
  --text: #eef1ff;
  --muted: #a9b2dc;
  --faint: #7c86b6;
  --cyan: #62e3ff;
  --amber: #ffb547;
  --peri: #9db0ff;
  --violet: #b69cff;
  --mint: #5be3a8;
  --rose: #ff8a9e;
  --on-accent: #04101c;
  /* r g b channels for translucent tints, so each theme can swap the hue and keep the alpha */
  --ink-rgb: 5 8 23;
  --tint: 157 176 255;
  --cy: 98 227 255;
  --am: 255 181 71;
  --vi: 182 156 255;
  --mn: 91 227 168;
  --glass: 10 15 42;
  --surf-a: 16 24 63;
  --surf-b: 9 14 38;
  /* filled accents, focus and theme-specific surfaces */
  --accent: #62e3ff;
  --accent-hover: #8cecff;
  --mint-fill: #5be3a8;
  --focus: #62e3ff;
  --sel-text: #fff;
  --btn-shadow: 0 0 0 1px rgba(98, 227, 255, 0.4), 0 8px 30px -8px rgba(98, 227, 255, 0.65);
  --btn-shadow-hover: 0 0 0 1px rgba(140, 236, 255, 0.6), 0 10px 36px -8px rgba(98, 227, 255, 0.85);
  --stage-bg: linear-gradient(#02040b 0%, #0d1540 62%, #070d27 100%);
  --rail-a: 0.58; /* chapter-rail glass over the city */
  --card-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --elev: none;
  --grad: linear-gradient(100deg, #ffb547 0%, #ffd27f 22%, #9db0ff 58%, #62e3ff 100%);
  --mock-bg: linear-gradient(180deg, #0d1438, #080d26);
  --mock-shadow: 0 40px 120px -40px rgba(98, 227, 255, 0.25), 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --final-bg:
    radial-gradient(70% 90% at 50% 0%, rgba(98, 227, 255, 0.14), transparent 70%),
    linear-gradient(180deg, #0e1640, #070c24);
  /* the official Sky-Lines logo: mark + name, and the Abbas Yaseen line. On the night surfaces the maroon #57093A
   * would vanish, so dark uses the logo's own light tones (the shape and the light-theme colours never change). */
  --logo-mark: #f0c9dc;
  --logo-sub: #b4bacb;
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --f-display: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-text: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 64px;
  color-scheme: dark;
}

/* daylight: the same tokens on the DAY palette (sky #f7f9ff -> #dee6ff, ink #141b3a, glass cards, focus #1fb6d6).
 * Accent text colours are deepened so they keep WCAG AA on white; the bright tones stay for fills and glows.
 * --faint carries small (0.72-0.88rem) labels on tinted fills, so it sits at the --muted level here: >= 4.5:1 down to the
 * deepest sky stop #dee6ff (the night value keeps its own, lighter step). */
:root[data-theme="light"] {
  --ink: #f7f9ff;
  --ink-2: #eef2ff;
  --navy: #dee6ff;
  --panel: rgba(255, 255, 255, 0.8);
  --panel-solid: #ffffff;
  --panel-2: #f4f7ff;
  --line: #dce3f5;
  --line-2: #c8d2ec;
  --text: #141b3a;
  --muted: #5b6690;
  --faint: #5a6389;
  --cyan: #0e7490;
  --amber: #a05e00;
  --peri: #4a5fc4;
  --violet: #6a4be0;
  --mint: #0a7c55;
  --rose: #c42b52;
  --on-accent: #04101c;
  --ink-rgb: 247 249 255;
  --tint: 60 80 170;
  --cy: 31 182 214;
  --am: 227 154 30;
  --vi: 124 92 255;
  --mn: 18 168 119;
  --glass: 255 255 255;
  --surf-a: 255 255 255;
  --surf-b: 246 248 255;
  --accent: #1fb6d6;
  --accent-hover: #43c7e3;
  --mint-fill: #12a877;
  --focus: #1fb6d6;
  --sel-text: #141b3a;
  --btn-shadow: 0 0 0 1px rgba(31, 182, 214, 0.35), 0 10px 28px -10px rgba(31, 182, 214, 0.6);
  --btn-shadow-hover: 0 0 0 1px rgba(31, 182, 214, 0.5), 0 12px 32px -10px rgba(31, 182, 214, 0.75);
  --stage-bg: linear-gradient(#f7f9ff 0%, #eaf0ff 62%, #dee6ff 100%);
  --rail-a: 0.82; /* the daylight city is busy and bright under the blur: a denser glass keeps the rail labels at AA */
  --card-shadow: 0 18px 50px rgba(30, 40, 90, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  --elev: 0 18px 50px -28px rgba(30, 40, 90, 0.2);
  --grad: linear-gradient(100deg, #b26500 0%, #c77a0a 22%, #5a55d6 58%, #0e7490 100%);
  --mock-bg: linear-gradient(180deg, #ffffff, #f7f9ff);
  --mock-shadow: 0 40px 120px -40px rgba(31, 182, 214, 0.3), 0 30px 80px -30px rgba(30, 40, 90, 0.24);
  --final-bg:
    radial-gradient(70% 90% at 50% 0%, rgba(31, 182, 214, 0.14), transparent 70%),
    linear-gradient(180deg, #ffffff, #eef2ff);
  --logo-mark: #57093a;
  --logo-sub: #5f5f5f;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 8px);
  background: var(--ink);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.75;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 700; line-height: 1.3; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgb(var(--cy) / 0.32); color: var(--sel-text); }

.sr-only {
  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 {
  position: fixed; top: 10px; inset-inline-start: 10px; z-index: 100;
  padding: 8px 14px; border-radius: 10px; background: var(--accent); color: var(--on-accent);
  font-weight: 600; text-decoration: none; transform: translateY(-160%);
}
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.ltr { direction: ltr; unicode-bidi: isolate; }
/* agent names are placeholders until the final names land: never let a long token widen a layout */
.ch-card h2, .agent-name h3, .agent-name .lat, .io-core li b, .trio b, .lead b, .band-labels li, .final-card p { overflow-wrap: anywhere; }
.num { font-variant-numeric: tabular-nums; }

.ic {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  font: 600 0.98rem/1 var(--f-text); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.25s, transform 0.2s;
}
.btn .ic { width: 1.05em; height: 1.05em; }
.btn-primary {
  background: var(--accent); color: var(--on-accent);
  box-shadow: var(--btn-shadow);
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: var(--btn-shadow-hover); }
.btn-ghost { background: rgb(var(--tint) / 0.06); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: rgb(var(--tint) / 0.12); border-color: rgb(var(--tint) / 0.45); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 0.9rem; }
@media (prefers-reduced-motion: no-preference) {
  .btn-primary:hover .ic { transform: translateX(-3px); }
  .btn .ic { transition: transform 0.2s; }
}

/* ---------- header ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled, .no-js .nav {
  background: rgb(var(--ink-rgb) / 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-row { display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-mark { flex: none; height: 34px; width: auto; aspect-ratio: 372.8 / 615.3; }
/* the horizontal logo (mark, Sky-Lines, Abbas Yaseen) in the header and the footer */
.brand-logo { display: block; height: 46px; width: auto; aspect-ratio: 1697.9 / 615.3; }
.nav-links { display: flex; gap: 4px; margin-inline-start: auto; }
.nav-links a {
  padding: 8px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 0.95rem;
  transition: color 0.2s, background-color 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgb(var(--tint) / 0.08); }
.nav .btn { margin-inline-start: 8px; }
@media (max-width: 899px) {
  .nav-links { display: none; }
  .nav .btn { margin-inline-start: auto; }
}
@media (max-width: 380px) {
  .brand-logo { height: 40px; }
  .nav .btn { padding: 0 14px; min-height: 38px; font-size: 0.9rem; }
}
.nav-end { display: flex; align-items: center; gap: 10px; flex: none; margin-inline-start: 8px; }
.nav .nav-end .btn { margin-inline-start: 0; }
.theme-tg {
  flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border-radius: 50%; border: 1px solid var(--line-2); background: rgb(var(--tint) / 0.06); color: var(--muted);
  font: inherit; cursor: pointer;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.theme-tg:hover { color: var(--text); background: rgb(var(--tint) / 0.12); border-color: rgb(var(--tint) / 0.45); }
.theme-tg .ic { display: none; width: 19px; height: 19px; }
:root:not([data-theme-pref]) .theme-tg .tg-system,
:root[data-theme-pref="system"] .theme-tg .tg-system,
:root[data-theme-pref="light"] .theme-tg .tg-light,
:root[data-theme-pref="dark"] .theme-tg .tg-dark { display: block; }
.no-js .theme-tg { display: none; }
@media (max-width: 899px) {
  .nav-row { gap: 12px; }
  .nav-end { margin-inline-start: auto; }
}
@media (max-width: 380px) {
  .nav-end { gap: 8px; }
  .theme-tg { width: 36px; height: 36px; }
  .theme-tg .ic { width: 17px; height: 17px; }
}
/* the smallest phones: brand, toggle and CTA still fit inside the 16px gutters */
@media (max-width: 350px) {
  .nav-row { gap: 8px; }
  .nav-end { gap: 6px; }
  .theme-tg { width: 34px; height: 34px; }
  .nav .nav-end .btn { padding: 0 12px; }
  .brand-logo { height: 36px; }
}

/* ---------- journey: sticky stage + chapters ---------- */
.journey { position: relative; isolation: isolate; background: var(--ink); }

.stage {
  position: sticky; top: 0; z-index: 0;
  height: 100vh; height: 100lvh;
  margin-bottom: -100vh; margin-bottom: -100lvh;
  overflow: hidden;
  background: var(--stage-bg);
}
.stage-art { position: absolute; inset: 0; }
.stage-svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
/* keep the fallback city clear of the copy: a deeper shade beside the text on wide screens, above/below it on phones */
.stage:not(.is-3d) .shade-side {
  background:
    linear-gradient(to left, rgb(var(--ink-rgb) / 0.94) 0%, rgb(var(--ink-rgb) / 0.74) 38%, rgb(var(--ink-rgb) / 0) 66%),
    linear-gradient(to bottom, rgb(var(--ink-rgb) / 0.55) 0, rgb(var(--ink-rgb) / 0) 22%);
}
@media (max-width: 899px) {
  .stage-svg { transform: translateY(-20%); transition: transform 0.8s ease; }
  .stage[data-step="0"] .stage-svg { transform: translateY(27%); }
  .stage[data-step="0"] .sv-lit { opacity: 0.45; }
}
@media (prefers-reduced-motion: reduce) { .stage-svg { transition: none; } }
.stage-3d { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; }
.stage-3d canvas { width: 100% !important; height: 100% !important; max-width: none; }
.stage.is-3d .stage-3d { opacity: 1; }
.stage.is-3d .stage-svg { visibility: hidden; transition: visibility 0s linear 0.9s; }

/* fallback SVG tells the same story, chapter by chapter */
.stage-svg g, .stage-svg polygon { transition: opacity 0.7s ease; }
.stage-svg .sv-cone { opacity: 0; }
.stage[data-step="1"] .sv-core { opacity: 0.35; }
.stage[data-step="1"] :is(.sv-lit, .sv-pins, .sv-buyers, .sv-arcs, .sv-deals),
.stage[data-step="2"] :is(.sv-lit, .sv-pins, .sv-buyers, .sv-arcs, .sv-deals),
.stage[data-step="3"] :is(.sv-lit, .sv-buyers, .sv-arcs, .sv-deals),
.stage[data-step="4"] :is(.sv-buyers, .sv-arcs, .sv-deals),
.stage[data-step="5"] :is(.sv-arcs, .sv-deals),
.stage[data-step="6"] .sv-deals { opacity: 0; }
.stage[data-step="3"] .sv-pins { opacity: 0.45; }
.stage:is([data-step="3"], [data-step="4"]) .sv-cone { opacity: 1; }
.stage:is([data-step="4"], [data-step="5"], [data-step="6"], [data-step="7"]) :is(.sv-cards, .sv-hubs) { opacity: 0.25; }
.stage[data-step="3"] .sv-cards { opacity: 0.6; }

.shade { position: absolute; inset: 0; pointer-events: none; transition: opacity 0.6s ease; }
.shade-side {
  background:
    linear-gradient(to left, rgb(var(--ink-rgb) / 0.86) 0%, rgb(var(--ink-rgb) / 0.5) 30%, rgb(var(--ink-rgb) / 0) 58%),
    linear-gradient(to bottom, rgb(var(--ink-rgb) / 0.55) 0, rgb(var(--ink-rgb) / 0) 22%);
}
.shade-side::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease;
  background: linear-gradient(to left, rgb(var(--ink-rgb) / 0.5) 0%, rgb(var(--ink-rgb) / 0.62) 45%, rgb(var(--ink-rgb) / 0) 74%);
}
/* the hero copy is wider than a chapter card: keep the city behind it calm (3D and fallback alike) */
.stage[data-step="0"] .shade-side::before { opacity: 1; }
.shade-low, .shade-high { opacity: 0; }
.shade-floor { background: linear-gradient(to top, rgb(var(--ink-rgb) / 0.9) 0, rgb(var(--ink-rgb) / 0) 26%); opacity: 0.6; }

@media (max-width: 899px) {
  .shade-side { opacity: 0; }
  /* hero on phones: the copy runs to about 600px from the top whatever the screen height, so the scrim does too */
  .shade-high { background: linear-gradient(to bottom, rgb(var(--ink-rgb) / 0.95) 0, rgb(var(--ink-rgb) / 0.86) 600px, rgb(var(--ink-rgb) / 0.4) 690px, rgb(var(--ink-rgb) / 0) 790px); }
  .shade-low { background: linear-gradient(to top, rgb(var(--ink-rgb) / 0.96) 0, rgb(var(--ink-rgb) / 0.7) 40%, rgb(var(--ink-rgb) / 0) 64%); }
  .stage[data-step="0"] .shade-high { opacity: 1; }
  .stage:not([data-step="0"]) .shade-low { opacity: 1; }
  .shade-floor { opacity: 0; }
}

/* chapter rail (desktop) */
.rail {
  position: absolute; top: 50%; inset-inline-end: var(--gutter); z-index: 2;
  transform: translateY(-50%);
  opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0s linear 0.4s;
}
.stage:not([data-step="0"]) .rail { opacity: 1; visibility: visible; transition: opacity 0.4s; }
.rail ol {
  display: grid; gap: 2px; padding: 8px; border-radius: 20px;
  background: rgb(var(--ink-rgb) / var(--rail-a)); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.rail a {
  display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 999px;
  color: var(--faint); text-decoration: none; font-size: 0.84rem; line-height: 1.2;
  transition: color 0.25s, background-color 0.25s;
}
.rail a::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: currentColor; opacity: 0.6; transition: transform 0.25s, background-color 0.25s, box-shadow 0.25s;
}
.rail a:hover { color: var(--text); }
.rail a[aria-current="step"] { color: var(--text); background: rgb(var(--cy) / 0.1); }
.rail a[aria-current="step"]::before { background: var(--cyan); opacity: 1; transform: scale(1.25); box-shadow: 0 0 12px var(--cyan); }
@media (max-width: 1099px) { .rail { display: none; } }

.stage-progress {
  position: absolute; top: var(--nav-h); inset-inline: 0; height: 2px; z-index: 2;
  background: rgb(var(--tint) / 0.1); opacity: 0; transition: opacity 0.4s;
}
.stage-progress i {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(to left, var(--cyan), var(--amber));
  transform-origin: right center; transform: scaleX(var(--p, 0));
}
.stage:not([data-step="0"]) .stage-progress { opacity: 1; }
@media (min-width: 1100px) { .stage-progress { display: none; } }

/* chapters sit on top of the stage */
.chapter {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  pointer-events: none;
}
.chapter > .wrap { pointer-events: none; }
.hero-copy, .ch-card, .scroll-cue { pointer-events: auto; }

/* ---------- hero ---------- */
.hero { padding-block: calc(var(--nav-h) + 24px) 72px; }
.hero-copy { max-width: 760px; }
.hero-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.hero-brand {
  display: flex; align-items: center; gap: 0.42em; direction: ltr;
  font: 700 clamp(1.2rem, 0.9rem + 1.1vw, 1.7rem)/1.1 var(--f-display); letter-spacing: 0.005em; color: var(--text);
}
.hero-brand .brand-mark { height: 2.1em; }
.hero-brand .hb-name { display: block; flex: none; height: 0.95em; width: auto; aspect-ratio: 505.4 / 94.1; }
.hero-brand .hb-sub {
  margin-left: 0.12em; padding: 0.2em 0 0.2em 0.62em; border-left: 1px solid var(--line-2);
  font-size: 0.55em; font-weight: 600; line-height: 1.2; letter-spacing: 0.24em; text-transform: uppercase; color: var(--cyan);
}
.eyebrow {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 10px;
  padding: 6px 14px 6px 12px; border-radius: 999px;
  background: rgb(var(--glass) / 0.6); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 0.86rem; color: var(--muted);
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.3rem, 0.9rem + 4.2vw, 4.25rem);
  font-weight: 800; line-height: 1.16;
}
.hero h1 span { display: block; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  /* background-clip:text paints only inside the box: give the Arabic descenders room, without moving the layout */
  padding-block: 0.1em 0.26em; margin-block: -0.1em -0.26em;
}
.lead { margin-top: 20px; max-width: 34em; font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem); color: var(--muted); line-height: 1.85; }
.lead b { color: var(--text); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trio { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.trio li {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 14px; border-radius: 999px;
  background: rgb(var(--glass) / 0.55); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 0.86rem; color: var(--muted);
}
.trio li i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.trio li b { font: 600 0.92rem/1.3 var(--f-display); color: var(--text); }
.c-collect { --c: var(--cyan); }
.c-classify { --c: var(--violet); }
.c-match { --c: var(--amber); }

.scroll-cue {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--faint); font-size: 0.82rem; text-decoration: none;
}
.scroll-cue i { position: relative; width: 22px; height: 34px; border-radius: 12px; border: 1.5px solid var(--line-2); }
.scroll-cue i::after {
  content: ""; position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px;
  border-radius: 2px; background: var(--cyan);
}
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue i::after { animation: cue 1.8s ease-in-out infinite; }
  @keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(11px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
  .js .hero-copy > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .js .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .js .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .js .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
  .js .hero-copy > :nth-child(5) { animation-delay: 0.32s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  .pulse::after {
    content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--cyan);
    animation: ping 2.2s ease-out infinite;
  }
  @keyframes ping { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(2.2); opacity: 0; } }
}

@media (max-width: 899px) {
  .hero { align-items: flex-start; padding-top: calc(var(--nav-h) + 28px); }
  .scroll-cue span { display: none; }
}
@media (max-width: 600px) {
  .hero-top { gap: 10px 14px; }
  .hero-brand .brand-mark { display: none; } /* the nav logo sits right above it */
}
@media (max-width: 899px) and (min-height: 700px) {
  .hero { padding-top: calc(var(--nav-h) + 44px); }
}

/* ---------- chapter cards ---------- */
.story { position: relative; pointer-events: none; }
.ch-card {
  position: relative; width: min(450px, 100%);
  padding: 26px 26px 24px; border-radius: var(--r-xl);
  background: var(--panel);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--card-shadow);
}
.ch-kicker { display: flex; align-items: center; gap: 10px; font-size: 0.84rem; color: var(--faint); }
.ch-kicker .n { font: 600 0.84rem/1 var(--f-display); color: var(--c, var(--cyan)); direction: ltr; }
.ch-kicker .bar { flex: 1; height: 1px; background: linear-gradient(to left, var(--line-2), transparent); }
.ch-card h2 { margin-top: 12px; font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.05rem); line-height: 1.3; }
.ch-card h2 em { font-style: normal; color: var(--c, var(--cyan)); }
.ch-card > p { margin-top: 10px; color: var(--muted); font-size: 1rem; line-height: 1.85; }
.mini { margin-top: 18px; }
.ch-c1 { --c: var(--peri); }
.ch-c2 { --c: var(--cyan); }
.ch-c3 { --c: var(--violet); }
.ch-c4 { --c: var(--amber); }
.ch-c5 { --c: var(--cyan); }
.ch-c6 { --c: var(--amber); }
.ch-c7 { --c: var(--mint); }

@media (max-width: 899px) {
  .chapter:not(.hero) { align-items: flex-end; padding-bottom: max(5svh, 22px); }
  .ch-card { width: 100%; max-width: 520px; padding: 20px 18px 18px; border-radius: var(--r-lg); }
  .ch-card > p { font-size: 0.95rem; line-height: 1.8; }
  .mini { margin-top: 14px; }
  .ch-c1 .post:nth-child(2), .ch-c5 .entity + .entity { display: none; }
}
/* phones: the city is the story, so the cards stay short and leave it about half of the screen */
@media (max-width: 899px) and (max-height: 859px) {
  .ch-card .mini { display: none; }
}
/* #agents is pulled 140px up over the end of the journey: keep the last card, and its CTA, clear of it */
.chapter.ch-c7 { padding-bottom: 140px; }
@media (max-width: 899px) {
  .chapter.ch-c7 { padding-bottom: calc(140px + max(5svh, 22px)); }
}

/* mini UIs inside the chapter cards */
.posts { display: grid; gap: 8px; }
.post {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-md);
  background: rgb(var(--tint) / 0.06); border: 1px solid var(--line);
}
.post .av {
  width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: rgb(var(--tint) / 0.16); color: var(--peri); font: 600 0.8rem/1 var(--f-display);
}
.post b { display: block; font-size: 0.78rem; font-weight: 600; color: var(--faint); line-height: 1.4; }
.post p { font-size: 0.9rem; line-height: 1.6; color: var(--text); }
.post.cmt { margin-inline-start: 26px; }
.post.cmt .av { background: rgb(var(--cy) / 0.14); color: var(--cyan); }

.groups { display: grid; gap: 10px; }
.groups li { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; font-size: 0.88rem; }
.groups .g-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.state { font-size: 0.76rem; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.state.on { color: var(--cyan); border-color: rgb(var(--cy) / 0.4); background: rgb(var(--cy) / 0.08); }
.state.done { color: var(--mint); border-color: rgb(var(--mn) / 0.35); background: rgb(var(--mn) / 0.07); }
.meter { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: rgb(var(--tint) / 0.12); overflow: hidden; }
.meter b { display: block; height: 100%; width: calc(var(--w) * 100%); border-radius: inherit; background: var(--c, var(--cyan)); }
.meter.done b { background: var(--mint); }

.raw {
  padding: 12px 14px; border-radius: var(--r-md); background: rgb(var(--tint) / 0.06); border: 1px solid var(--line);
  font-size: 0.92rem; line-height: 2.05;
}
.raw mark {
  color: var(--text); padding: 1px 3px; border-radius: 5px;
  background: linear-gradient(var(--hl), var(--hl)) no-repeat right / 100% 100%;
}
.hl-price { --hl: rgb(var(--am) / 0.3); }
.hl-area { --hl: rgb(var(--cy) / 0.24); }
.hl-rooms { --hl: rgb(var(--vi) / 0.3); }
.hl-loc { --hl: rgb(var(--mn) / 0.24); }
.hl-phone { --hl: rgb(var(--tint) / 0.26); }
.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 0; }
.fields div { padding: 8px 10px; border-radius: var(--r-sm); background: rgb(var(--tint) / 0.05); border: 1px solid var(--line); min-width: 0; }
.fields dt { font-size: 0.72rem; color: var(--faint); }
.fields dd { margin: 0; font: 600 0.9rem/1.4 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: 0.78rem; border: 1px solid var(--line-2); color: var(--muted); background: rgb(var(--tint) / 0.05);
}
.tag .ic { width: 0.95em; height: 0.95em; }
.tag-amber { color: var(--amber); border-color: rgb(var(--am) / 0.38); background: rgb(var(--am) / 0.07); }
.tag-cyan { color: var(--cyan); border-color: rgb(var(--cy) / 0.38); background: rgb(var(--cy) / 0.07); }
.tag-mint { color: var(--mint); border-color: rgb(var(--mn) / 0.35); background: rgb(var(--mn) / 0.07); }
.tag-violet { color: var(--violet); border-color: rgb(var(--vi) / 0.38); background: rgb(var(--vi) / 0.07); }

.entity {
  display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center;
  padding: 12px 14px; border-radius: var(--r-md); background: rgb(var(--tint) / 0.06); border: 1px solid var(--line);
}
.entity + .entity { margin-top: 8px; }
.entity .ent-ic {
  grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
}
.entity .ent-ic .ic { width: 20px; height: 20px; }
.entity .ent-t { font: 600 0.96rem/1.4 var(--f-display); min-width: 0; }
.entity .ent-s { font-size: 0.82rem; color: var(--muted); line-height: 1.5; min-width: 0; }
.entity .ent-v { grid-row: span 2; text-align: left; font: 700 0.98rem/1.3 var(--f-display); color: var(--c); white-space: nowrap; }
.entity .ent-v small { display: block; font: 400 0.72rem/1.4 var(--f-text); color: var(--faint); }
.e-unit { --c: var(--amber); }
.e-req { --c: var(--cyan); }

.match { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.ring { position: relative; width: 78px; height: 78px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring .trk { stroke: rgb(var(--tint) / 0.14); }
.ring .val { stroke: url(#g-score); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--v)); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 1.35rem/1 var(--f-display); direction: ltr; }
.reasons { display: grid; gap: 6px; font-size: 0.88rem; }
.reasons li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.55; }
.reasons .ic { margin-top: 0.2em; color: var(--mint); width: 1em; height: 1em; }
.reasons .warn .ic { color: var(--amber); }
.reasons .warn { color: var(--muted); }

.steps { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 0.82rem; }
.steps li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--faint); }
.steps li.done { color: var(--mint); border-color: rgb(var(--mn) / 0.35); background: rgb(var(--mn) / 0.06); }
.steps li.now { color: var(--on-accent); background: var(--mint-fill); border-color: var(--mint-fill); font-weight: 600; }
.steps .sep { width: 14px; height: 1px; background: var(--line-2); border: 0; padding: 0; }
.ch-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }

/* active-chapter micro motion (CSS only, follows the scroll) */
@media (prefers-reduced-motion: no-preference) {
  .js .chapter .raw mark { background-size: 0% 100%; transition: background-size 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .js .chapter.is-active .raw mark { background-size: 100% 100%; }
  .js .chapter.is-active .raw mark:nth-of-type(2) { transition-delay: 0.12s; }
  .js .chapter.is-active .raw mark:nth-of-type(3) { transition-delay: 0.24s; }
  .js .chapter.is-active .raw mark:nth-of-type(4) { transition-delay: 0.36s; }
  .js .chapter.is-active .raw mark:nth-of-type(5) { transition-delay: 0.48s; }
  .js .chapter .meter b { transform: scaleX(0.06); transform-origin: right; transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .js .chapter.is-active .meter b { transform: none; }
  .js .chapter .ring .val { stroke-dashoffset: 100; transition: stroke-dashoffset 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s; }
  .js .chapter.is-active .ring .val { stroke-dashoffset: calc(100 - var(--v)); }
}

/* ---------- generic sections ---------- */
.sec { position: relative; z-index: 2; padding-block: clamp(72px, 9vw, 128px); }
.sec-head { max-width: 760px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; font: 600 0.84rem/1.4 var(--f-display); color: var(--cyan);
}
.kicker::before { content: ""; width: 18px; height: 1.5px; background: currentColor; }
.sec-head h2 { margin-top: 14px; font-size: clamp(1.85rem, 1.1rem + 2.7vw, 3.2rem); line-height: 1.25; }
.sec-head p { margin-top: 16px; color: var(--muted); font-size: clamp(1rem, 0.95rem + 0.25vw, 1.14rem); }

.glow-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 85% 10%, rgb(var(--cy) / 0.08), transparent 70%),
    radial-gradient(50% 45% at 10% 80%, rgb(var(--vi) / 0.07), transparent 70%);
}
.grid-bg::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgb(var(--tint) / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--tint) / 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 80%);
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 80%);
}

/* ---------- agents ---------- */
.agents { margin-top: -140px; padding-top: calc(140px + clamp(40px, 5vw, 72px)); background: linear-gradient(to bottom, rgb(var(--ink-rgb) / 0) 0, var(--ink) 140px); }
.agents.glow-bg::before { top: 140px; } /* no glow edge over the end of the journey */
.agent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 52px; }
.agent {
  position: relative; display: flex; flex-direction: column;
  padding: 18px 18px 24px; border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgb(var(--surf-a) / 0.9), rgb(var(--surf-b) / 0.9));
  border: 1px solid var(--line);
  box-shadow: var(--elev);
  overflow: hidden;
}
.agent::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(to left, transparent, var(--c), transparent); opacity: 0.8;
}
.agent::after {
  content: ""; position: absolute; top: -30%; left: 50%; width: 80%; aspect-ratio: 1; transform: translateX(-50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 16%, transparent), transparent 65%); pointer-events: none; z-index: 0;
}
.agent > * { position: relative; z-index: 1; }
.agent .lottie { width: 100%; max-width: 230px; aspect-ratio: 1; margin: 0 auto 6px; }
.agent-name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; }
.agent-name h3 { font-size: 1.75rem; font-weight: 800; }
.agent-name .lat { font: 500 0.78rem/1 var(--f-display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--c); }
.agent-role { display: inline-flex; margin-top: 8px; padding: 3px 10px; border-radius: 999px; font-size: 0.8rem; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); background: color-mix(in srgb, var(--c) 8%, transparent); width: fit-content; }
.agent > p { margin-top: 12px; color: var(--muted); font-size: 0.98rem; }
.agent ul { display: grid; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.92rem; }
.agent li { display: flex; gap: 9px; align-items: flex-start; line-height: 1.6; }
.agent li .ic { color: var(--c); margin-top: 0.22em; width: 1em; height: 1em; }
@media (max-width: 979px) {
  .agent-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
  .agent { display: grid; grid-template-columns: 132px minmax(0, 1fr); column-gap: 16px; align-items: start; }
  .agent .lottie { grid-row: span 3; max-width: 132px; margin: 0; }
  .agent > p, .agent ul { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .agent { grid-template-columns: 96px minmax(0, 1fr); }
  .agent .lottie { max-width: 96px; }
  .agent-name h3 { font-size: 1.45rem; }
}

/* lottie containers + static stand-ins */
.lottie { position: relative; }
.lottie > svg { width: 100%; height: 100%; }
.lottie .lt-still { position: absolute; inset: 0; width: 100%; height: 100%; }
.lottie.is-live .lt-still { display: none; }

/* ---------- how it works ---------- */
.flow { margin-top: 56px; }
.band {
  position: relative; padding: 18px clamp(8px, 2vw, 22px) 14px; border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgb(var(--surf-a) / 0.75), rgb(var(--surf-b) / 0.75)); border: 1px solid var(--line);
  box-shadow: var(--elev);
}
.band .lottie { width: 100%; aspect-ratio: 960 / 200; }
.band .lt-still { opacity: 0.9; }
.band-labels { position: relative; height: 54px; margin-top: -5.2%; }
.band-labels li {
  position: absolute; top: 0; transform: translateX(-50%); width: 16.5%;
  text-align: center; font-size: 0.86rem; line-height: 1.35; color: var(--muted);
}
.band-labels b { display: block; font: 600 0.98rem/1.4 var(--f-display); color: var(--text); }
.band-labels li:nth-child(1) { left: 91.67%; }
.band-labels li:nth-child(2) { left: 70.83%; }
.band-labels li:nth-child(3) { left: 50%; }
.band-labels li:nth-child(4) { left: 29.17%; }
.band-labels li:nth-child(5) { left: 8.33%; }
@media (max-width: 640px) {
  .band-labels { height: 40px; }
  .band-labels li { font-size: 0; }
  .band-labels b { font-size: 0.78rem; }
}

.io { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 16px; margin-top: 18px; align-items: stretch; }
.io-col { padding: 22px; border-radius: var(--r-xl); border: 1px solid var(--line); background: rgb(var(--surf-b) / 0.7); box-shadow: var(--elev); }
.io-col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.12rem; }
.io-col h3 .ic { color: var(--c); }
.io-col > p { margin-top: 6px; color: var(--faint); font-size: 0.88rem; }
.io-col ul { display: grid; gap: 8px; margin-top: 14px; }
.io-col li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-md); background: rgb(var(--tint) / 0.05); border: 1px solid var(--line); font-size: 0.93rem; line-height: 1.5; }
.io-col li .ic { color: var(--c); }
.io-in { --c: var(--peri); }
.io-out { --c: var(--amber); }
.io-core { --c: var(--cyan); position: relative; background: linear-gradient(180deg, rgb(var(--cy) / 0.07), rgb(var(--surf-b) / 0.85)); border-color: rgb(var(--cy) / 0.28); }
.io-core li { justify-content: space-between; }
.io-core li span { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.io-core li b { font: 700 1rem/1.3 var(--f-display); }
.io-core li small { color: var(--faint); font-size: 0.8rem; }
.io-core li i { width: 8px; height: 8px; border-radius: 50%; background: var(--a); box-shadow: 0 0 10px var(--a); flex: none; }
.io-core .a1 { --a: var(--cyan); }
.io-core .a2 { --a: var(--violet); }
.io-core .a3 { --a: var(--amber); }
@media (max-width: 979px) {
  .io { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
}

/* ---------- product mock ---------- */
.product { overflow: hidden; }
.mock-wrap { margin-top: 52px; perspective: 1600px; }
.mock {
  margin: 0; border-radius: var(--r-xl); border: 1px solid var(--line-2);
  background: var(--mock-bg);
  box-shadow: var(--mock-shadow);
  overflow: hidden;
}
.mock-top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.mock-top .brand-mark { height: 28px; }
.mock-title { font: 600 1rem/1.3 var(--f-display); }
.mock-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; color: var(--amber); border: 1px solid rgb(var(--am) / 0.38); background: rgb(var(--am) / 0.07); }
.mock-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.mock-top .grow { flex: 1; }
.mock-body { display: grid; grid-template-columns: 210px 1fr; min-height: 420px; }
.mock-side { padding: 16px 12px; border-inline-end: 1px solid var(--line); display: grid; align-content: start; gap: 4px; }
.mock-side span { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 0.9rem; color: var(--faint); }
.mock-side span.on { color: var(--text); background: rgb(var(--cy) / 0.08); box-shadow: inset -2px 0 0 var(--cyan); }
.mock-side .ic { width: 1.05em; height: 1.05em; }
.mock-main { padding: 18px; min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgb(var(--tint) / 0.04); }
.stat small { display: block; font-size: 0.78rem; color: var(--faint); }
.stat b { font: 700 1.5rem/1.3 var(--f-display); }
.stat b.cy { color: var(--cyan); }
.stat b.am { color: var(--amber); }
.stat b.mi { color: var(--mint); }
.tabs { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.tabs span { padding: 5px 12px; border-radius: 999px; font-size: 0.82rem; color: var(--faint); border: 1px solid var(--line); }
.tabs span.on { color: var(--on-accent); background: var(--accent); border-color: var(--accent); font-weight: 600; }
.sugg { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin-top: 12px; padding: 14px; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgb(var(--tint) / 0.04); }
.sugg .entity { background: rgb(var(--ink-rgb) / 0.5); }
.sugg .ring { width: 64px; height: 64px; }
.sugg .ring b { font-size: 1.1rem; }
.sugg-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.sugg-foot .grow { flex: 1; }
.fake-btn { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; font-size: 0.8rem; border: 1px solid var(--line-2); color: var(--muted); }
.fake-btn.pri { color: var(--on-accent); background: var(--mint-fill); border-color: var(--mint-fill); font-weight: 600; }
@media (max-width: 899px) {
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
}
@media (max-width: 640px) {
  .mock-main { padding: 12px; }
  .stat { padding: 10px; }
  .stat b { font-size: 1.2rem; }
  .sugg { grid-template-columns: 1fr; justify-items: stretch; }
  .sugg .ring { justify-self: center; }
  .mock-top .mock-badge { display: none; }
}

/* ---------- outcomes ---------- */
.outs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 52px; }
.out { padding: 24px; border-radius: var(--r-xl); border: 1px solid var(--line); background: linear-gradient(180deg, rgb(var(--surf-a) / 0.6), rgb(var(--surf-b) / 0.6)); box-shadow: var(--elev); }
.out .o-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.out .o-ic .ic { width: 22px; height: 22px; }
.out h3 { margin-top: 16px; font-size: 1.18rem; }
.out p { margin-top: 8px; color: var(--muted); font-size: 0.96rem; }
@media (max-width: 979px) { .outs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .outs { grid-template-columns: 1fr; } }

/* ---------- final CTA + wordmark ---------- */
.final { position: relative; z-index: 2; padding-top: clamp(80px, 10vw, 140px); overflow: hidden; }
.final-card {
  --pad-y: clamp(36px, 6vw, 72px);
  --pad-x: clamp(20px, 5vw, 64px);
  position: relative; text-align: center; padding: var(--pad-y) var(--pad-x) 0;
  border-radius: 36px; border: 1px solid var(--line-2);
  background: var(--final-bg);
  overflow: hidden;
}
.final-card h2 { font-size: clamp(1.9rem, 1.1rem + 3vw, 3.4rem); }
.final-card p { margin: 16px auto 0; max-width: 36em; color: var(--muted); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); }
.final-card .cta-row { justify-content: center; }
.final-skyline {
  width: calc(100% + 2 * var(--pad-x)); max-width: none; height: clamp(70px, 12vw, 150px);
  margin: clamp(36px, 5vw, 56px) calc(-1 * var(--pad-x)) 0; opacity: 0.95;
}

.wordmark { position: relative; margin-top: clamp(48px, 7vw, 96px); text-align: center; direction: ltr; user-select: none; }
.wordmark .wm { display: block; width: fit-content; margin-inline: auto; }
/* the full stacked logo, exactly as the approved file (mark, Sky-Lines, Abbas Yaseen) */
.wordmark .wm-logo { display: block; height: clamp(200px, 26vw, 340px); width: auto; aspect-ratio: 505.4 / 798.8; }
.wordmark .wm-sub {
  display: inline-flex; align-items: center; gap: 12px; margin-top: clamp(18px, 2.4vw, 28px);
  font: 500 clamp(0.8rem, 0.6rem + 0.8vw, 1.15rem)/1 var(--f-display); letter-spacing: 0.5em; text-transform: uppercase; color: var(--cyan);
  padding-left: 0.5em;
}
.wordmark .wm-sub::before, .wordmark .wm-sub::after { content: ""; width: clamp(24px, 6vw, 80px); height: 1px; background: linear-gradient(90deg, transparent, var(--cyan)); }
.wordmark .wm-sub::after { transform: scaleX(-1); }

.foot { position: relative; z-index: 2; margin-top: clamp(48px, 6vw, 80px); padding-block: 28px 36px; border-top: 1px solid var(--line); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.foot-links a:hover { color: var(--text); }
.foot small { color: var(--faint); font-size: 0.85rem; }

/* ---------- daylight: inline SVG art ----------
 * The fallback city, the Lottie stand-ins and the closing skyline carry night colours as presentation
 * attributes; CSS outranks those, so daylight swaps them here without touching the markup. */
:root[data-theme="light"] #sv-sky stop:nth-child(1) { stop-color: #f7f9ff; }
:root[data-theme="light"] #sv-sky stop:nth-child(2) { stop-color: #eaf0ff; }
:root[data-theme="light"] #sv-sky stop:nth-child(3) { stop-color: #dee6ff; }
:root[data-theme="light"] :is(#sv-glow, #sv-cone) stop { stop-color: #1fb6d6; }
:root[data-theme="light"] #sv-glow stop:nth-child(1) { stop-opacity: 0.35; }
:root[data-theme="light"] #sv-arc stop:nth-child(1) { stop-color: #7c5cff; }
:root[data-theme="light"] #sv-arc stop:nth-child(2) { stop-color: #e39a1e; }
:root[data-theme="light"] #sv-win rect { fill: #c9d4f0; }
:root[data-theme="light"] .sv-stars { fill: #3c50aa; opacity: 0.32; }
:root[data-theme="light"] .sv-hubs [fill="#9db0ff"] { fill: #6e7fd0; }
:root[data-theme="light"] .sv-hubs [stroke="#9db0ff"] { stroke: #6e7fd0; }
:root[data-theme="light"] .sv-cards [stroke="#b8c6ff"] { fill: #fff; fill-opacity: 1; stroke: #dce3f5; }
:root[data-theme="light"] .sv-cards [fill="#c9d4ff"] { fill: #aeb9dd; }
:root[data-theme="light"] .sv-core [stroke="#62e3ff"] { stroke: #1fb6d6; }
:root[data-theme="light"] .sv-core [fill="#d6f7ff"] { fill: #1fb6d6; }
:root[data-theme="light"] .sv-city [fill="#0e163c"] { fill: #d9e0f6; stroke: rgba(40, 60, 140, 0.18); stroke-width: 1; }
:root[data-theme="light"] .sv-city [fill="#161f4a"] { fill: #f4f6ff; stroke: rgba(40, 60, 140, 0.18); stroke-width: 1; }
:root[data-theme="light"] .sv-city [fill="#ffd59a"] { fill: #36c2df; }
:root[data-theme="light"] .sv-city [fill="#070d27"] { fill: #e3e9fb; }
:root[data-theme="light"] .sv-city [fill="#62e3ff"] { fill: #1fb6d6; }
:root[data-theme="light"] .sv-pins [fill="#ffb547"] { fill: #f4b24e; }
:root[data-theme="light"] .sv-pins [stroke="#ffb547"] { stroke: #e39a1e; }
:root[data-theme="light"] .sv-buyers { fill: #1fb6d6; }
:root[data-theme="light"] .sv-buyers [stroke="#62e3ff"] { stroke: #1fb6d6; }
:root[data-theme="light"] .sv-deals { stroke: #7c5cff; }
:root[data-theme="light"] #g-score stop:nth-child(1) { stop-color: #1fb6d6; }
:root[data-theme="light"] #g-score stop:nth-child(2) { stop-color: #12a877; }
:root[data-theme="light"] .lt-still [stroke="#2e3c80"] { stroke: #c9d2ee; }
:root[data-theme="light"] .lt-still [fill="#62e3ff"] { fill: #1fb6d6; }
:root[data-theme="light"] .lt-still [stroke="#62e3ff"] { stroke: #1fb6d6; }
:root[data-theme="light"] .lt-still :is([fill="#16235a"], [fill="#111c45"], [fill="#e8ecff"]) { fill: #fff; }
:root[data-theme="light"] .lt-still [fill="#9db0ff"] { fill: #6e7fd0; }
:root[data-theme="light"] .lt-still [stroke="#9db0ff"] { stroke: #6e7fd0; }
:root[data-theme="light"] .lt-still [fill="#46528c"] { fill: #cbd3ec; }
:root[data-theme="light"] .lt-still [fill="#2a3566"] { fill: #aeb8da; }
:root[data-theme="light"] .lt-still [fill="#ffb547"] { fill: #f4b24e; }
:root[data-theme="light"] .lt-still [stroke="#ffb547"] { stroke: #e39a1e; }
:root[data-theme="light"] .lt-still [fill="#5be3a8"] { fill: #12a877; }
:root[data-theme="light"] .lt-still [stroke="#5be3a8"] { stroke: #12a877; }
:root[data-theme="light"] .lt-still [fill="#b69cff"] { fill: #7c5cff; }
:root[data-theme="light"] .lt-still [stroke="#b69cff"] { stroke: #7c5cff; }
:root[data-theme="light"] .final-skyline [fill="#0d1540"] { fill: #d6def5; stroke: rgba(40, 60, 140, 0.18); stroke-width: 1; }

/* a short colour crossfade while the theme switches (site.js sets .theme-anim for ~300ms) */
@media (prefers-reduced-motion: no-preference) {
  :root.theme-anim, :root.theme-anim *, :root.theme-anim *::before, :root.theme-anim *::after {
    transition-property: background-color, border-color, color, fill, stroke, stop-color, box-shadow !important;
    transition-duration: 0.22s !important;
    transition-timing-function: ease !important;
    transition-delay: 0s !important;
  }
}

/* print / forced colours: keep it readable */
@media (forced-colors: active) {
  .grad { color: CanvasText; background: none; }
  .stage-art { display: none; }
}
