/* ============================================================
   Revealeum landing — dark-first design
   Near-black / charcoal / graphite base, muted blue-green accents,
   sparse luminous glows. Mobile-first.
   ============================================================ */

:root {
  --bg: #0b0e12;
  --bg-alt: #0d1117;
  --surface: #10151c;
  --surface-2: #131a23;
  --line: #1e2732;
  --text: #e8edf2;
  --text-dim: #9fb0c0;
  --text-muted: #64748a;
  --accent: #5eead4;
  --accent-dim: #7dd3c8;
  --accent-deep: #12302d;
  --glow: rgba(94, 234, 212, 0.12);
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

/* Film grain over the whole page — static SVG noise, GPU-cheap. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>");
  background-size: 140px 140px;
}

h1, h2, h3 { line-height: 1.2; font-weight: 700; }

h2 {
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}

h3 { font-size: 1.15rem; margin: 0 0 0.5rem; }

p { margin: 0 0 1.1rem; }

a { color: var(--accent-dim); text-decoration: none; }
a:hover { color: var(--accent); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.narrow { max-width: 720px; }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }
.narrow-p { max-width: 640px; }

/* --- Skip link --- */
.skip-link {
  position: absolute;
  /* logical property: in RTL this hides off the right edge,
     which is NOT scrollable (off-left would be) */
  inset-inline-start: -9999px;
  top: 0;
  background: var(--accent);
  color: #06251f;
  padding: 0.6rem 1rem;
  font-weight: 600;
  z-index: 200;
}
.skip-link:focus { inset-inline-start: 0.5rem; top: 0.5rem; }

/* --- Header / nav --- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(11, 14, 18, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(11, 14, 18, 0.9);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
}
.nav-brand:hover { color: var(--accent); }

.nav-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.4rem;
}
.nav-menu a {
  color: var(--text-dim);
  font-size: 0.95rem;
}
.nav-menu a:hover { color: var(--accent); }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-dim);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu panel */
@media (max-width: 767px) {
  .nav-menu {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(11, 14, 18, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.5rem;
    gap: 0;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu li { border-top: 1px solid var(--line); }
  .nav-menu li:first-child { border-top: none; }
  .nav-menu a {
    display: block;
    padding: 0.85rem 0.25rem;
    font-size: 1.05rem;
  }
}

@media (min-width: 768px) {
  .nav-menu { display: flex; }
  .nav-toggle { display: none; }
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  min-height: 48px;
  line-height: 1.3;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary {
  background: var(--accent);
  color: #06251f;
  box-shadow: 0 0 24px var(--glow);
}
.btn-primary:hover {
  color: #06251f;
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(94, 234, 212, 0.25);
}
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
  transform: translateY(-2px);
}

/* --- Hero: AI concept art + parallax + hidden accents --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #090c12;
}

.hero-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Layers are larger than the viewport so parallax never exposes edges. */
.hero-layer {
  position: absolute;
  top: -4%;
  bottom: -4%;
  left: -4%;
  width: 108%;
  will-change: transform;
}
.hero-picture,
.hero-picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Drifting fog banks between the layers. */
.hero-fog {
  position: absolute;
  width: 65%;
  height: 26%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(148, 178, 190, 0.10) 0%, transparent 70%);
  filter: blur(14px);
  will-change: transform;
}
.fog-a {
  bottom: 26%;
  left: -10%;
  animation: fog-drift-a 34s ease-in-out infinite alternate;
}
.fog-b {
  bottom: 6%;
  right: -12%;
  animation: fog-drift-b 26s ease-in-out infinite alternate;
}
@keyframes fog-drift-a {
  from { transform: translateX(0); }
  to { transform: translateX(38%); }
}
@keyframes fog-drift-b {
  from { transform: translateX(0); }
  to { transform: translateX(-32%); }
}

/* The hidden layer: SVG accents over the photo, revealed by JS via opacity. */
.hero-hidden {
  position: absolute;
  top: -4%;
  bottom: -4%;
  left: -4%;
  width: 108%;
  opacity: 0.22;
  will-change: transform, opacity;
}
.hero-svg {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.10) 0%, transparent 65%);
  left: var(--glow-x, 50%);
  top: var(--glow-y, 60%);
  transform: translate(-50%, -50%);
  transition: left 0.4s ease-out, top 0.4s ease-out;
}

/* Vignette pulls the eye to the center. */
.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 105% 90% at 50% 45%, transparent 50%, rgba(5, 7, 10, 0.6) 100%);
}

/* Dark scrim behind the text so it stays readable over the art. */
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 12, 16, 0.55) 0%, transparent 26%),
    radial-gradient(ellipse 70% 50% at 50% 52%, rgba(9, 12, 16, 0.62) 0%, rgba(9, 12, 16, 0.25) 55%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-bottom: 8vh;
}

.hero-kicker {
  color: var(--accent-dim);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  text-shadow: 0 1px 12px rgba(9, 12, 16, 0.9);
}

.hero-title {
  font-size: clamp(2.6rem, 10vw, 5.5rem);
  letter-spacing: 0.16em;
  margin: 0 0 1.2rem;
  text-shadow: 0 0 60px rgba(94, 234, 212, 0.18), 0 2px 24px rgba(9, 12, 16, 0.9);
}

.hero-tagline {
  font-size: clamp(1.1rem, 3.4vw, 1.5rem);
  color: var(--text);
  max-width: 34ch;
  margin: 0 auto 0.6rem;
  text-shadow: 0 1px 14px rgba(9, 12, 16, 0.9);
}

.hero-subline {
  color: var(--text-dim);
  font-size: clamp(0.95rem, 2.6vw, 1.15rem);
  margin-bottom: 2.2rem;
  text-shadow: 0 1px 12px rgba(9, 12, 16, 0.9);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--text-muted);
  border-radius: 14px;
  z-index: 2;
}
.hero-scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--accent);
  animation: scroll-hint 2s ease-in-out infinite;
}
@keyframes scroll-hint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
}

/* --- Living details in the scenes --- */
.anomaly-core { animation: anomaly-flicker 4.5s ease-in-out infinite; }
.anomaly-ring {
  animation: pulse-ring 3.2s ease-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
.anomaly-ring-2 { animation-delay: 1.6s; }
@keyframes pulse-ring {
  0% { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(3.2); opacity: 0; }
}
@keyframes anomaly-flicker {
  0%, 82%, 100% { opacity: 1; }
  86% { opacity: 0.3; }
  90% { opacity: 0.9; }
  94% { opacity: 0.4; }
}

.creature { animation: creature-breathe 5s ease-in-out infinite; }
@keyframes creature-breathe {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.85; }
}

.sigil { animation: sigil-flicker 7s ease-in-out infinite; }
@keyframes sigil-flicker {
  0%, 88%, 100% { opacity: 0.6; }
  92% { opacity: 0.15; }
  96% { opacity: 0.75; }
}

.particle { animation: particle-rise 9s ease-in-out infinite; }
.particle.p2 { animation-duration: 12s; animation-delay: 2s; }
.particle.p3 { animation-duration: 15s; animation-delay: 4s; }
@keyframes particle-rise {
  0% { transform: translateY(0); opacity: 0; }
  25% { opacity: 0.8; }
  75% { opacity: 0.5; }
  100% { transform: translateY(-46px); opacity: 0; }
}

/* --- Sections --- */
.section {
  position: relative;
  padding: clamp(4rem, 10vw, 7.5rem) 0;
  /* thin luminous hairline between sections */
  border-top: 1px solid rgba(94, 234, 212, 0.055);
}
.section-alt { background: var(--bg-alt); }

.section-sub {
  font-size: 1.2rem;
  color: var(--accent-dim);
  margin-top: -0.5rem;
  margin-bottom: 1.4rem;
}

.big-line {
  font-size: clamp(1.3rem, 4vw, 1.9rem);
  font-weight: 700;
  color: var(--text);
  border-inline-start: 3px solid var(--accent);
  padding-inline-start: 1.1rem;
  margin-top: 2.2rem;
}

/* --- "Same street" reveal band --- */
.street-band {
  margin: 0 0 2.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 30px var(--glow);
}
.street-band picture,
.street-band img {
  display: block;
  width: 100%;
  height: auto;
}

/* --- Steps (how it works) --- */
.steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(5, 1fr); } }

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem 1.25rem;
}
.step p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.9rem;
  box-shadow: 0 0 18px var(--glow);
}

/* --- Split layouts --- */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 880px) {
  .split { grid-template-columns: 1.1fr 1fr; }
  .split-reverse .split-text { order: 2; }
  .split-reverse .split-visual { order: 1; }
}

.split-visual svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.45));
}

/* --- Map animations --- */
.map-point-pulse { animation: point-pulse 2.6s ease-in-out infinite; }
@keyframes point-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.dyn-appear { animation: dyn-appear 6s ease-in-out infinite; }
.dyn-fade { animation: dyn-fade 6s ease-in-out infinite; }
.dyn-anomaly {
  animation: pulse-ring 2.8s ease-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
.dyn-anomaly-core { animation: anomaly-flicker 4s ease-in-out infinite; }
.dyn-reveal { animation: dyn-reveal 6s ease-in-out infinite; }
.dyn-fog-slide { animation: fog-slide 10s ease-in-out infinite alternate; }

@keyframes dyn-appear {
  0%, 15% { opacity: 0; }
  35%, 80% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes dyn-fade {
  0%, 45% { opacity: 1; }
  65%, 90% { opacity: 0.1; }
  100% { opacity: 1; }
}
@keyframes dyn-reveal {
  0%, 55% { opacity: 1; }
  70%, 95% { opacity: 0.15; }
  100% { opacity: 1; }
}
@keyframes fog-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-70px); }
}

/* --- Cards --- */
.cards {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) { .cards-tech { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards-tech { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: #2b3c4e;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4), 0 0 24px var(--glow);
}
.card p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }

/* Character portraits: circular concept-art photo, hue accent ring. */
.character { text-align: start; }
.character h3 { color: var(--accent-dim); }
.character-role {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted) !important;
  margin-bottom: 0.9rem !important;
}
.character blockquote {
  margin: 0;
  font-style: italic;
  color: var(--text);
  border-inline-start: 2px solid var(--accent-deep);
  padding-inline-start: 0.9rem;
}

.portrait-photo {
  display: block;
  width: 96px;
  height: 96px;
  margin-bottom: 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--hue, var(--accent-deep));
  box-shadow: 0 0 22px var(--glow), 0 8px 24px rgba(0, 0, 0, 0.5);
}
.portrait-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The concept art is intentionally dark; lift it a little inside the small circular crop. */
  filter: brightness(1.35) contrast(1.06) saturate(1.08);
}

/* --- Voice --- */
.voice-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.6rem auto 2rem;
  padding: 1.6rem 1rem;
  max-width: 560px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 60% 90% at 30% 50%, rgba(94, 234, 212, 0.07) 0%, transparent 70%),
    var(--surface);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4), 0 0 34px var(--glow);
  overflow: hidden;
}
.voice-figure {
  flex: 0 0 auto;
  width: 120px;
  height: 72px;
}
.waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 72px;
  flex: 1 1 auto;
}
.waveform span {
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  animation: wave 1.6s ease-in-out infinite;
  height: 20%;
}
.waveform span:nth-child(3n) { animation-delay: 0.15s; }
.waveform span:nth-child(3n+1) { animation-delay: 0.3s; }
.waveform span:nth-child(4n) { animation-delay: 0.45s; }
.waveform span:nth-child(5n) { animation-delay: 0.6s; }
.waveform span:nth-child(7n) { animation-delay: 0.75s; }
@keyframes wave {
  0%, 100% { height: 18%; opacity: 0.55; }
  50% { height: 90%; opacity: 1; }
}

/* --- Phone mockup --- */
.phone-mockup {
  max-width: 260px;
  margin: 0 auto;
  border: 2px solid var(--line);
  border-radius: 28px;
  padding: 10px;
  background: #05070a;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 30px var(--glow);
}
.phone-screen {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
}
.phone-screen picture,
.phone-screen img {
  display: block;
  width: 100%;
  height: auto;
}
.ar-brackets {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.phone-label {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: rgba(11, 14, 18, 0.8);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* --- Badge / plaque / notes --- */
.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-deep);
  background: rgba(18, 48, 45, 0.35);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.1rem;
}

.plaque {
  display: inline-block;
  border: 1px solid var(--accent-dim);
  border-radius: 10px;
  padding: 0.9rem 1.3rem;
  font-weight: 700;
  color: var(--text);
  background: rgba(18, 48, 45, 0.25);
  box-shadow: 0 0 24px var(--glow);
  margin: 0.6rem 0 1rem;
}

.note-muted { color: var(--text-muted); font-size: 0.92rem; }

.note-social {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  color: var(--accent-dim);
  font-style: italic;
}

.safety-note {
  margin-top: 1.8rem;
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--accent-dim);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
}
.safety-note h3 { font-size: 1rem; }
.safety-note p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }

/* --- Route line draw --- */
.route-line {
  stroke-dasharray: 6 8;
  animation: route-flow 14s linear infinite;
}
@keyframes route-flow {
  to { stroke-dashoffset: -560; }
}

/* --- Ownership shard --- */
.shard {
  animation: shard-float 6s ease-in-out infinite;
}
@keyframes shard-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* --- Vision: Earth-at-night photo + SVG points/arcs overlay --- */
.world-map-wrap {
  position: relative;
  margin: 0 auto 2rem;
  max-width: 720px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 30px var(--glow);
}
.world-night-picture,
.world-night-picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.world-map {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}

.world-point {
  opacity: 0.15;
  animation: world-appear 7s ease-in-out infinite;
}
.world-point:nth-child(2) { animation-delay: 0.7s; }
.world-point:nth-child(3) { animation-delay: 1.4s; }
.world-point:nth-child(4) { animation-delay: 2.1s; }
.world-point:nth-child(5) { animation-delay: 2.8s; }
.world-point:nth-child(6) { animation-delay: 3.5s; }
.world-point:nth-child(7) { animation-delay: 4.2s; }
.world-point:nth-child(8) { animation-delay: 4.9s; }
.world-point:nth-child(9) { animation-delay: 5.6s; }
@keyframes world-appear {
  0% { opacity: 0.12; }
  30% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0.12; }
}
.arc {
  stroke-dasharray: 4 6;
  animation: arc-flow 12s linear infinite;
}
.arc.a2 { animation-duration: 16s; }
.arc.a3 { animation-duration: 20s; }
@keyframes arc-flow {
  to { stroke-dashoffset: -200; }
}

/* --- Roadmap --- */
.roadmap {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .roadmap { grid-template-columns: repeat(3, 1fr); } }

.roadmap-col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
}
.roadmap-col h3 {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.roadmap-col ul {
  margin: 0;
  padding-inline-start: 1.15rem;
  color: var(--text-dim);
}
.roadmap-col li { margin-bottom: 0.5rem; }

.whisper {
  margin-top: 2.4rem;
  text-align: center;
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* --- Legal pages --- */
.legal-page { padding: 7.5rem 0 5rem; }
.legal-page h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  margin: 0 0 0.5rem;
}
.legal-meta { color: var(--text-muted); margin-bottom: 2.5rem; }
.legal-page section { margin-bottom: 2.6rem; }
.legal-page h2 { font-size: 1.35rem; margin-bottom: 0.8rem; }
.legal-page ul { padding-inline-start: 1.3rem; color: var(--text-dim); }
.legal-page li { margin-bottom: 0.45rem; }
.legal-page p { color: var(--text-dim); }
.legal-page p strong { color: var(--text); }

/* --- 404 --- */
.page-404 {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.25rem;
}
.page-404 h1 {
  font-size: 4rem;
  margin: 0 0 1rem;
  color: var(--accent-dim);
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 3rem 0 2.2rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  text-align: center;
}
.footer-brand img { opacity: 0.9; }
.footer-mark {
  margin: 0.5rem 0 0.2rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.footer-tag {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.4rem;
}
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--accent); }
.footer-copy { margin: 0; color: var(--text-muted); font-size: 0.88rem; }

/* --- Scroll reveal (JS adds .is-visible) --- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --- Reduced motion: kill everything animated --- */
@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;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-hidden { opacity: 0.3; }
  .hero-layer { transform: none !important; }
}

/* --- Language switcher (dropdown with flags) --- */
.nav-langs { display: flex; align-items: center; }
.lang-dropdown { position: relative; }
.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.55rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.lang-current:hover,
.lang-current[aria-expanded="true"] { color: var(--accent); border-color: var(--accent-deep); }
.lang-caret { width: 9px; height: 6px; opacity: 0.7; transition: transform 0.2s ease; }
.lang-current[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }
.flag {
  display: inline-flex;
  width: 18px;
  border-radius: 2.5px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
  flex: none;
}
.flag svg { display: block; width: 100%; height: auto; }
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  min-width: 150px;
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  background: #10161d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  z-index: 60;
}
.lang-menu a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.6rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  border-radius: 7px;
  white-space: nowrap;
}
.lang-menu a:hover { background: rgba(94, 234, 212, 0.07); color: var(--text); }
.lang-menu a.is-current { color: var(--accent); background: rgba(94, 234, 212, 0.08); }
.lang-menu .lang-code { font-weight: 600; font-size: 0.78rem; letter-spacing: 0.06em; }
.lang-menu .lang-native { opacity: 0.65; font-size: 0.82rem; }

@media (max-width: 767px) {
  .lang-dropdown { margin-top: 0.6rem; }
  .lang-current { font-size: 0.95rem; padding: 0.55rem 0.75rem; }
  /* Inside the open mobile panel, show the list statically — no floating popup. */
  .lang-menu {
    position: static;
    margin-top: 0.45rem;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.03);
  }
  .lang-menu[hidden] { display: none; }
  .lang-menu a { font-size: 1rem; padding: 0.6rem 0.7rem; }
}

/* --- RTL (Hebrew) refinements --- */
/* Hebrew has no uppercase and wide tracking reads poorly. */
[dir="rtl"] .hero-kicker { letter-spacing: 0.08em; }
[dir="rtl"] .character-role,
[dir="rtl"] .roadmap-col h3,
[dir="rtl"] .badge { letter-spacing: 0.02em; }
/* SVG scene labels are positioned left-to-right inside the art;
   keep them visually anchored regardless of text direction. */
.split-visual text { direction: ltr; }
