/* Layout: one long scroll in the Jarvis HUD style. Sticky status bar, a hero with the orbiting system,
   the story, an interactive system map, one section per planet, principles, contact.
   Deliberately dark-only: it is the brand's look, so every colour is set explicitly. */
:root {
  --bg: #050D18;
  --panel: #0B1A2B;
  --panel-hi: #0F2338;
  --line: rgba(34, 211, 238, .28);
  --line-soft: rgba(143, 179, 200, .2);
  --fg: #EAF6FF;
  --muted: #8FB3C8;
  --dim: #6B8DA3;
  --cyan: #22D3EE;
  --green: #34D399;
  --purple: #A78BFA;
  --amber: #FBBF24;
  --blue: #60A5FA;
  --pink: #F472B6;
  --amber-hi: #FDE68A; --amber-lo: #B45309;
  --green-hi: #A7F3D0; --green-lo: #047857;
  --purple-hi: #DDD6FE; --purple-lo: #5B21B6;
  --font-display: "Rajdhani", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --track: .2em;
  --gutter: clamp(16px, 4vw, 32px);
  --bar-h: 58px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] { --track: 0em; }
html[lang="ar"] body { line-height: 1.85; }
html[lang="ar"] .caps { text-transform: none; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.page { position: relative; z-index: 1; }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */
.caps { text-transform: uppercase; }
.label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .8125rem;
  letter-spacing: var(--track);
  color: var(--cyan);
}
html[lang="ar"] .label { font-size: .9375rem; font-family: var(--font-body); font-weight: 600; }
h2.title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.05;
  text-wrap: balance;
}
html[lang="ar"] h2.title { line-height: 1.35; }
.lead { font-size: clamp(1.125rem, 2vw, 1.375rem); color: var(--muted); max-width: 52ch; text-wrap: pretty; }
.muted { color: var(--muted); }

/* ---------- top bar ---------- */
.bar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: rgba(5, 13, 24, .82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.bar-in { display: flex; align-items: center; gap: 16px; min-height: var(--bar-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: .22em; }
html[lang="ar"] .brand { letter-spacing: .22em; } /* Latin brand name: tracking is safe here */
.brand svg { width: 28px; height: 28px; flex: none; }
.nav { display: flex; gap: clamp(14px, 2vw, 28px); margin-inline-start: auto; }
.nav a { text-decoration: none; color: var(--muted); font-size: .9375rem; padding-block: 6px; transition: color .2s; }
.nav a:hover { color: var(--fg); }
.bar-tools { display: flex; align-items: center; gap: 10px; margin-inline-start: 12px; }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel); font-family: var(--font-display); font-weight: 600; font-size: .8125rem;
  letter-spacing: var(--track); white-space: nowrap;
}
html[lang="ar"] .status { font-family: var(--font-body); font-size: .8125rem; }
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: blink 2.4s ease-in-out infinite; }
.status b { color: var(--green); font-weight: 600; }
.status .clock { color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .04em; direction: ltr; }
.status .status-label { color: var(--muted); }
.lang, .menu {
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 14px; cursor: pointer; font-size: .875rem; line-height: 1.5; transition: border-color .2s, background .2s;
}
.lang:hover, .menu:hover { border-color: var(--cyan); background: var(--panel-hi); }
.menu { display: none; width: 40px; height: 34px; padding: 0; place-items: center; }
.menu svg { width: 18px; height: 18px; }
@keyframes blink { 50% { opacity: .35; } }

/* ---------- buttons ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
  font-weight: 600; text-decoration: none; cursor: pointer; transition: border-color .2s, background .2s, transform .2s;
}
.btn:hover { border-color: var(--cyan); background: var(--panel-hi); }
.btn-primary { border-color: var(--cyan); background: rgba(34, 211, 238, .12); color: var(--cyan); box-shadow: 0 0 24px rgba(34, 211, 238, .18); }
.btn-primary:hover { background: rgba(34, 211, 238, .2); }

/* ---------- sections ---------- */
.sec { padding-block: clamp(56px, 8vw, 104px); scroll-margin-top: calc(var(--bar-h) + 8px); }
.sec-head { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 48px); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.panel-soft { border-color: var(--line-soft); }


/* ---------- scroll-driven intro ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.journey { position: relative; }
.journey.live { height: 480vh; height: 480svh; }
.jstage { position: relative; height: calc(100vh - var(--bar-h)); height: calc(100svh - var(--bar-h)); min-height: 520px; overflow: hidden; }
.journey.live .jstage { position: sticky; top: var(--bar-h); }
.jwrap { position: absolute; left: 50%; top: 50%; width: min(100vw, calc(100vh - var(--bar-h))); width: min(100vw, calc(100svh - var(--bar-h))); aspect-ratio: 1; transform: translate(-50%, -50%); will-change: transform; }
.jsvg { display: block; width: 100%; height: 100%; overflow: visible; direction: ltr; }
.jsvg text { font-family: var(--font-display); font-weight: 600; font-size: 24px; fill: var(--fg); letter-spacing: .06em; paint-order: stroke; stroke: var(--bg); stroke-width: 6px; stroke-linejoin: round; }
html[lang="ar"] .jsvg text { letter-spacing: 0; font-family: var(--font-body); font-size: 22px; }
@media (max-width:700px){ .jsvg text{font-size:40px;stroke-width:9px} html[lang="ar"] .jsvg text{font-size:38px} }
.skip { position: absolute; z-index: 3; top: 12px; inset-inline-end: var(--gutter); padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(11, 26, 43, .8); color: var(--muted); font-size: .875rem; text-decoration: none; }
.skip:hover { color: var(--fg); }
.jcue { position: absolute; left: 0; right: 0; bottom: clamp(104px, 19vh, 170px); display: grid; justify-items: center; gap: 10px; color: var(--dim); font-family: var(--font-display); font-weight: 600; font-size: .8125rem; letter-spacing: var(--track); text-transform: uppercase; pointer-events: none; }
.jcue i { width: 1px; height: 38px; background: linear-gradient(var(--cyan), transparent); animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.jcap { position: absolute; left: 0; right: 0; bottom: clamp(28px, 7vh, 64px); height: 2.6em; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 3.4vw, 1.875rem); letter-spacing: .03em; text-align: center; pointer-events: none; }
html[lang="ar"] .jcap { font-family: var(--font-body); letter-spacing: 0; line-height: 1.7; }
.jcap span { position: absolute; left: 0; right: 0; padding-inline: var(--gutter); opacity: 0; }
.jfinal { position: absolute; inset-inline-start: 58%; inset-inline-end: var(--gutter); top: 50%; transform: translateY(-50%); max-width: 34rem; visibility: hidden; opacity: 0; }
.jfinal .label { color: var(--cyan); }
.jfinal .wordmark { font-size: clamp(3.25rem, 7vw, 6.5rem); }
.journey:not(.live) .jfinal { visibility: visible; opacity: 1; }
@media (max-width: 899px) and (max-aspect-ratio: 10/9) {
  .jfinal { inset-inline-start: var(--gutter); top: auto; bottom: clamp(18px, 4vh, 44px); transform: none; max-width: none; text-align: center; }
  .jfinal .wordmark { text-align: center; font-size: clamp(3rem, 14vw, 4.75rem); margin-block: 8px 10px; }
  .jfinal .tagline { font-size: clamp(1.0625rem, 4.4vw, 1.375rem); }
  .jfinal .cta-row { justify-content: center; margin-top: 18px; }
}
.foot-social { display: inline-flex; flex-wrap: wrap; gap: 6px 18px; }
@media (prefers-reduced-motion: reduce) { .jcue i { animation: none; } }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(24px, 5vw, 64px); padding-block: clamp(36px, 6vw, 80px) clamp(48px, 7vw, 96px); }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: clamp(3.75rem, 13vw, 8rem); line-height: .88; letter-spacing: .01em; margin-block: 14px 18px; direction: ltr; text-align: start; }
.tagline { font-size: clamp(1.25rem, 3vw, 1.875rem); color: var(--muted); font-weight: 500; text-wrap: balance; }
.hero-copy { min-width: 0; }
.hero-copy .label { color: var(--cyan); }

/* story */
.story-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.statement { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.15; text-wrap: balance; }
html[lang="ar"] .statement { line-height: 1.5; font-size: clamp(1.625rem, 3.2vw, 2.375rem); }
.story-body { margin-top: 24px; color: var(--muted); font-size: 1.125rem; max-width: 52ch; text-wrap: pretty; }
.stack { display: grid; gap: 14px; }
.card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 18px; align-items: center; padding: 20px 22px; }
.card .orb { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 18%, transparent), 0 0 24px color-mix(in srgb, var(--c) 45%, transparent); }
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; line-height: 1.2; }
html[lang="ar"] .card h3 { font-family: var(--font-body); font-size: 1.1875rem; }
.card p { color: var(--muted); font-size: 1rem; }

/* orrery: the rotating system. Sizes use container units so one component serves every size. */
.orrery { position: relative; width: 100%; max-width: 540px; aspect-ratio: 1; margin-inline: auto; container-type: inline-size; overflow: hidden; }
.orrery .halo { position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--core, var(--amber)) 14%, transparent), transparent 66%); }
.core {
  position: absolute; left: 50%; top: 50%; width: var(--cs, 20%); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, var(--core-hi, var(--amber-hi)), var(--core, var(--amber)) 58%, var(--core-lo, var(--amber-lo)));
  box-shadow: 0 0 40px color-mix(in srgb, var(--core, var(--amber)) 45%, transparent), 0 0 110px color-mix(in srgb, var(--core, var(--amber)) 18%, transparent);
}
.core.hollow { background: color-mix(in srgb, var(--purple) 8%, transparent); border: 2px dashed var(--purple); box-shadow: 0 0 40px color-mix(in srgb, var(--purple) 18%, transparent); }
.ring {
  position: absolute; left: 50%; top: 50%; width: var(--d); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--c) 40%, transparent);
  animation: spin var(--t, 30s) linear infinite; animation-direction: var(--dir, normal); animation-delay: var(--delay, 0s);
  pointer-events: none;
}
.ring.dotted { border-style: dotted; }
.arc {
  position: absolute; left: 50%; top: 50%; width: var(--d); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  border: 2px solid transparent; border-top-color: var(--c); border-right-color: color-mix(in srgb, var(--c) 35%, transparent);
  animation: spin var(--t, 30s) linear infinite; animation-direction: var(--dir, normal);
  pointer-events: none;
}
.planet {
  position: absolute; left: 50%; top: 0; translate: -50% -50%;
  width: 18px; width: calc(var(--k, 3.4) * 1cqw); aspect-ratio: 1; border-radius: 50%; padding: 0; border: 0; background: var(--c);
  box-shadow: 0 0 0 calc(var(--k, 3.4) * .3cqw) color-mix(in srgb, var(--c) 22%, transparent), 0 0 calc(var(--k, 3.4) * 1.3cqw) color-mix(in srgb, var(--c) 65%, transparent);
  pointer-events: auto; cursor: default; transition: scale .25s;
}
button.planet { cursor: pointer; }
button.planet::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; }
.planet[aria-pressed="true"] { scale: 1.55; }
.stage:hover .ring, .stage:hover .arc, .stage:focus-within .ring, .stage:focus-within .arc { animation-play-state: paused; }
@keyframes spin { to { rotate: 360deg; } }

/* system */
.system-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.legend { display: grid; gap: 12px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; padding: 6px 8px 6px 6px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--panel); transition: border-color .2s, background .2s; }
.row:has(.row-btn[aria-pressed="true"]) { border-color: var(--c); background: var(--panel-hi); }
.row-btn { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 16px; align-items: center; text-align: start; background: none; border: 0; padding: 12px 10px; cursor: pointer; border-radius: 10px; }
.row-btn .orb { grid-row: span 3; width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 20%, transparent); }
.row-btn .label { color: var(--c); font-size: .75rem; }
.row-btn strong { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.15; }
html[lang="ar"] .row-btn strong { font-family: var(--font-body); font-size: 1.25rem; }
.row-btn span:last-child { color: var(--muted); }
.row-link { font-size: .9375rem; color: var(--c); text-decoration: none; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.row-link:hover { background: color-mix(in srgb, var(--c) 14%, transparent); }
.hint { margin-top: 20px; color: var(--dim); font-size: .9375rem; }

/* planet sections */
.pl { padding: clamp(22px, 4vw, 44px); display: grid; gap: clamp(24px, 4vw, 48px); align-items: center; }
.pl-jarvis { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); }
.pl-sender { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.pl-next { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); border-style: dashed; }
.pl h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.5rem, 6vw, 4.25rem); line-height: 1; margin-block: 10px 12px; }
html[lang="ar"] .pl h2 { font-family: var(--font-body); line-height: 1.3; }
.pl .tag { color: var(--c); font-weight: 600; }
.pl .brief { color: var(--fg); font-size: clamp(1.0625rem, 2vw, 1.25rem); margin-top: 16px; max-width: 46ch; text-wrap: pretty; }
.pl .eyebrow-row { display: flex; align-items: center; gap: 12px; }
.pl .eyebrow-row .orb { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent), 0 0 16px var(--c); }
.pl .eyebrow-row .label { color: var(--c); }
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.chip { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 10px; align-items: center; padding: 10px 14px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); border-radius: 10px; background: var(--bg); }
.chip .dot { grid-row: span 3; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.chip b { font-weight: 600; font-size: .9375rem; line-height: 1.35; }
.chip span { color: var(--dim); font-size: .8125rem; line-height: 1.4; grid-column: 2; }
.chip em { grid-column: 2; font-style: normal; font-family: var(--font-display); font-weight: 600; font-size: .75rem; letter-spacing: var(--track); color: var(--c); }
html[lang="ar"] .chip em { font-family: var(--font-body); font-size: .8125rem; }
.chip em.standby { color: var(--amber); }
.shot { display: grid; gap: 14px; }
.shot .frame { padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); box-shadow: 0 0 60px rgba(34, 211, 238, .1); }
.shot img { display: block; width: 100%; height: auto; border-radius: 8px; }
.shot figcaption { display: grid; gap: 4px; }
.shot figcaption .label { font-size: .75rem; }
.facts { display: grid; gap: 10px; margin-top: 26px; }
.fact { display: grid; grid-template-columns: minmax(96px, 120px) minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px 18px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--bg); }
.fact dt { font-family: var(--font-display); font-weight: 600; font-size: .8125rem; letter-spacing: var(--track); color: var(--green); }
html[lang="ar"] .fact dt { font-family: var(--font-body); font-size: .9375rem; }
.fact dd { font-weight: 600; }
.pl .pl-cta { margin-top: 26px; }
.pl .btn-primary { border-color: var(--c); color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); box-shadow: 0 0 24px color-mix(in srgb, var(--c) 18%, transparent); }
.pl .btn-primary:hover { background: color-mix(in srgb, var(--c) 20%, transparent); }
.pill { display: inline-block; margin-top: 26px; padding: 10px 20px; border: 1px solid color-mix(in srgb, var(--purple) 55%, transparent); border-radius: 999px; background: var(--bg); color: var(--purple); font-family: var(--font-display); font-weight: 600; font-size: .8125rem; letter-spacing: var(--track); }
html[lang="ar"] .pill { font-family: var(--font-body); font-size: .9375rem; }

/* principles */
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.value { padding: 26px; display: grid; gap: 10px; align-content: start; }
.value .orb { width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 20%, transparent), 0 0 18px var(--c); }
.value h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.625rem; line-height: 1.15; }
html[lang="ar"] .value h3 { font-family: var(--font-body); font-size: 1.3125rem; }
.value p { color: var(--muted); max-width: 40ch; }

/* contact */
.contact { padding: clamp(32px, 6vw, 72px) var(--gutter); display: grid; justify-items: center; text-align: center; gap: 16px; }
.contact .orrery { max-width: 220px; margin-bottom: 8px; }
.contact h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.25rem, 6vw, 4rem); line-height: 1.05; text-wrap: balance; }
html[lang="ar"] .contact h2 { line-height: 1.35; font-family: var(--font-body); }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 12px; }
.addr { direction: ltr; unicode-bidi: isolate; font-weight: 600; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); user-select: all; }
.soon { color: var(--muted); padding: 12px 22px; border: 1px dashed var(--line); border-radius: 999px; }

/* footer */
.foot { border-top: 1px solid var(--line-soft); padding-block: 28px 40px; color: var(--dim); font-size: .9375rem; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.foot a { text-decoration: none; color: var(--muted); }
.foot a:hover { color: var(--fg); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero, .story-grid, .system-grid, .pl-jarvis, .pl-sender, .pl-next { grid-template-columns: minmax(0, 1fr); }
  .hero .orrery { max-width: 400px; }
  .pl-sender .orrery, .pl-next .orrery { max-width: 300px; }
  .pl-next .orrery { order: -1; }
  .menu { display: inline-grid; }
  .nav {
    display: none; position: absolute; inset-inline: 0; top: 100%; margin: 0; flex-direction: column; gap: 0;
    background: rgba(5, 13, 24, .97); border-bottom: 1px solid var(--line-soft); padding: 8px var(--gutter) 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; font-size: 1.0625rem; border-bottom: 1px solid var(--line-soft); }
  .bar-tools { margin-inline-start: auto; }
  .status .status-label { display: none; }
}
@media (max-width: 560px) {
  .status .clock { display: none; }
  .values, .chips { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: minmax(0, 1fr); }
  .row-link { justify-self: start; margin-inline-start: 56px; margin-top: -8px; }
  .fact { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (max-width: 560px) {
  .bar-in { gap: 8px; }
  .bar-tools { gap: 6px; margin-inline-start: auto; }
  .brand { font-size: 1.0625rem; letter-spacing: .14em; gap: 8px; }
  .brand svg { width: 24px; height: 24px; }
  .status { padding: 4px 10px; font-size: .75rem; gap: 6px; }
  .lang { padding: 5px 11px; }
}
@media (max-width: 440px) {
  .status b { display: none; }
  .status { padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ring, .arc, .status .dot { animation: none; }
}
@media (max-height: 520px) and (min-aspect-ratio: 10/9) {
  .jfinal .wordmark { font-size: 3rem; }
  .jfinal .tagline { font-size: 1.05rem; }
  .jfinal .cta-row { margin-top: 12px; gap: 10px; }
  .jfinal .btn { padding: 8px 16px; font-size: .9rem; }
}
@media (max-height: 520px) and (min-aspect-ratio: 10/9) {
  .jfinal .label { display: none; }
  .jfinal .wordmark { font-size: 2.6rem; margin-block: 0 4px; }
  .jfinal .cta-row { flex-wrap: nowrap; }
  .jfinal .btn { padding: 8px 12px; font-size: .8rem; white-space: nowrap; }
}

/* ---- intro: plays once, then the scene stays as the hero ---- */
.journey.live { height: auto; }
.journey.live .jstage { position: relative; top: 0; }
.jcue { display: none !important; }
.jprog { position: absolute; z-index: 7; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(34,211,238,.12); display: none; }
.jprog i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #22D3EE, #60A5FA); box-shadow: 0 0 12px rgba(34,211,238,.7); }
html[dir="rtl"] .jprog i { transform-origin: right; }
.bar { transition: opacity .7s ease; }
html.intro-on, html.intro-on body { overflow: hidden; height: 100%; }
html.intro-on .bar { opacity: 0; pointer-events: none; }
html.intro-on main > :not(.journey), html.intro-on .foot { visibility: hidden; }
html.intro-on .journey.live .jstage { position: fixed; left: 0; right: 0; top: var(--bar-h); z-index: 60; }
html.intro-on:not(.intro-run) .jstage { opacity: 0; }
html.intro-on .jprog { display: block; }
html:not(.intro-on) .skip { display: none; }
