/* ============================================================
   Arch Crush — landing page
   Palette: excavated earth, gold treasure, lapis blue
   ============================================================ */
:root {
  --bg:        #100e0a;
  --bg-2:      #17130d;
  --panel:     #1f1a12;
  --panel-2:   #272016;
  --ink:       #f4ecdc;
  --ink-soft:  #c9bda3;
  --ink-dim:   #8a7e66;
  --gold:      #e9b64a;
  --gold-hi:   #ffd66e;
  --gold-deep: #b5822a;
  --lapis:     #3d6ea8;
  --terra:     #c76b3c;
  --line:      rgba(233,182,74,.16);
  --radius:    18px;
  --shadow:    0 20px 60px rgba(0,0,0,.45);
  --maxw:      1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Nunito', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, .brand-name { font-family: 'Cinzel', serif; letter-spacing: .3px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 780px; }

/* ---------- Buttons ---------- */
.btn {
  --pad: 14px 26px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: var(--pad);
  font-family: 'Nunito', sans-serif;
  font-weight: 900; font-size: 1rem;
  color: #2a1c07;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-deep));
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(233,182,74,.30), inset 0 1px 0 rgba(255,255,255,.6);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(233,182,74,.45), inset 0 1px 0 rgba(255,255,255,.6); }
.btn:active { transform: translateY(0); }
.btn-ic { font-size: .85em; }
.btn-sm { --pad: 9px 18px; font-size: .9rem; }
.btn-lg { --pad: 16px 34px; font-size: 1.1rem; }
.btn-ghost {
  background: transparent; color: var(--gold-hi);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn-ghost:hover { background: rgba(233,182,74,.08); box-shadow: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 20px;
  padding: 14px 24px;
  background: rgba(16,14,10,.55);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease, padding .3s ease;
}
.site-header.scrolled {
  background: rgba(14,12,8,.86);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  padding: 10px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark { width: 40px; height: 40px; }
.brand-name { font-size: 1.25rem; font-weight: 900; color: var(--gold-hi); }
.site-nav { display: flex; gap: 26px; }
.site-nav a { color: var(--ink-soft); font-weight: 700; font-size: .95rem; }
.site-nav a:hover { color: var(--gold-hi); }

/* Hamburger — shown only on narrow screens (see media query) */
.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 10px;
  flex-direction: column; justify-content: space-between;
  background: transparent; border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%; border-radius: 2px;
  background: var(--gold-hi); transition: transform .25s ease, opacity .25s ease;
}
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 40px 0 70px; }
.hero-bg {
  position: absolute; inset: -10% 0 0 0;
  background: url('assets/hero-bg.webp') center/cover no-repeat;
  transform: scale(1.05);
  filter: saturate(1.05);
}
.hero-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 70% 10%, transparent 30%, rgba(16,14,10,.65) 75%),
    linear-gradient(180deg, rgba(16,14,10,.55) 0%, rgba(16,14,10,.35) 40%, var(--bg) 96%);
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto; padding: 30px 24px 0;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
}
.eyebrow {
  display: inline-block; margin: 0 0 14px;
  font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  font-size: .78rem; color: var(--gold-hi);
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(0,0,0,.25);
}
.hero-title {
  margin: 0 0 18px; font-weight: 900; font-size: clamp(2.3rem, 6vw, 4rem);
  line-height: 1.05;
  text-shadow: 0 4px 30px rgba(0,0,0,.5);
}
.hero-sub { margin: 0 0 26px; font-size: 1.15rem; color: var(--ink-soft); max-width: 34ch; }
.hero-sub strong { color: var(--gold-hi); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-stats { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats b { font-family: 'Cinzel', serif; font-size: 1.9rem; color: var(--gold-hi); line-height: 1; }
.hero-stats span { font-size: .82rem; color: var(--ink-dim); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* ---------- Phone / demo board ---------- */
.hero-device { position: relative; display: grid; place-items: center; }
.phone-glow {
  position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(233,182,74,.35), transparent 65%);
  filter: blur(20px); z-index: 0;
}
.phone {
  position: relative; z-index: 1;
  width: 288px; padding: 14px 12px 18px;
  background: linear-gradient(160deg, #2b2418, #14100a);
  border: 2px solid rgba(233,182,74,.28);
  border-radius: 40px;
  box-shadow: var(--shadow), inset 0 0 0 6px #0c0a06;
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100%{ transform: translateY(0) rotate(-1deg);} 50%{ transform: translateY(-14px) rotate(1deg);} }
.phone-notch { width: 90px; height: 6px; border-radius: 999px; background: #000; margin: 2px auto 12px; opacity: .6; }
.phone-screen {
  background: radial-gradient(120% 120% at 50% 0%, #2a3d55, #16120c 70%);
  border-radius: 26px; padding: 12px; overflow: hidden;
}
.hud { display: flex; gap: 8px; justify-content: center; margin-bottom: 10px; }
.hud-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(0,0,0,.4); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 999px; font-weight: 800; font-size: .8rem;
}
.hud-pill img { width: 16px; height: 16px; }
.board {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px;
  background: rgba(0,0,0,.28); padding: 7px; border-radius: 14px;
}
.tile {
  aspect-ratio: 1; border-radius: 10px;
  background: rgba(255,255,255,.05);
  display: grid; place-items: center;
  box-shadow: inset 0 -2px 6px rgba(0,0,0,.35);
  animation: pop .5s ease-out both, bob 3.5s ease-in-out infinite;
}
.tile img { width: 84%; height: 84%; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes bob { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-2px); } }
.boosters { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.booster {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .72rem; font-weight: 800; color: var(--ink-soft);
  background: rgba(0,0,0,.35); border: 1px solid var(--line);
  padding: 5px 9px; border-radius: 10px;
}
.booster img { width: 18px; height: 18px; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 3; font-size: 1.6rem; color: var(--gold); opacity: .7;
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100%{ transform: translateX(-50%) translateY(0);} 50%{ transform: translateX(-50%) translateY(8px);} }

/* ---------- Sections ---------- */
.section { padding: 80px 0; position: relative; }
.section-title { text-align: center; font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 22px; color: var(--ink); }
.section-title::after {
  content: ""; display: block; width: 132px; height: 14px; margin: 18px auto 0;
  background: center/contain no-repeat
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="132" height="14"><line x1="0" y1="7" x2="52" y2="7" stroke="%23e9b64a" stroke-width="1.5"/><line x1="80" y1="7" x2="132" y2="7" stroke="%23e9b64a" stroke-width="1.5"/><rect x="60" y="1" width="12" height="12" fill="%23e9b64a" transform="rotate(45 66 7)"/><circle cx="52" cy="7" r="1.8" fill="%23e9b64a"/><circle cx="80" cy="7" r="1.8" fill="%23e9b64a"/></svg>');
  opacity: .85;
}
.section-lead { text-align: center; color: var(--ink-soft); max-width: 60ch; margin: 0 auto 46px; font-size: 1.1rem; }

.features { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px; transition: transform .2s ease, border-color .2s ease;
}
.feature-card:hover { transform: translateY(-6px); border-color: rgba(233,182,74,.4); }
.feature-ic { font-size: 2.2rem; margin-bottom: 12px; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.15rem; color: var(--gold-hi); }
.feature-card p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* ---------- How ---------- */
.how { background: var(--bg-2); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 46px; }
.step {
  position: relative; padding: 32px 26px 26px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--radius);
}
.step-n {
  position: absolute; top: -22px; left: 26px;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: 'Cinzel', serif; font-weight: 900; font-size: 1.3rem; color: #2a1c07;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-deep));
  box-shadow: 0 6px 18px rgba(233,182,74,.4);
}
.step h3 { margin: 8px 0 8px; color: var(--ink); font-size: 1.15rem; }
.step p { margin: 0; color: var(--ink-soft); }

.booster-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: center;
  background: rgba(61,110,168,.10); border: 1px solid rgba(61,110,168,.28);
  border-radius: var(--radius); padding: 20px 24px;
}
.strip-label { font-weight: 800; color: var(--ink); }
.strip-items { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,.3); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--ink-soft);
}
.chip img { width: 24px; height: 24px; }

/* ---------- Worlds ---------- */
.worlds { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.world-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.world-card {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: flex-end;
  border: 1px solid var(--line); cursor: pointer;
  background: var(--img) center/cover no-repeat, var(--panel);
  transition: transform .25s ease, box-shadow .25s ease;
  /* <button> resets */
  width: 100%; padding: 0; margin: 0; font: inherit; color: inherit;
  text-align: left; appearance: none; -webkit-appearance: none;
}
.world-card:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.world-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.82));
  transition: background .25s ease;
}
.world-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.world-card:hover::before { background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,.7)); }
.world-card span {
  position: relative; z-index: 1; padding: 16px;
  font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.05rem; color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.7);
}
.world-more {
  background: linear-gradient(150deg, var(--panel-2), var(--panel));
  align-items: center; justify-content: center; text-align: center;
}
.world-more::before { display: none; }
.world-more span { color: var(--gold-hi); font-size: 1.2rem; }
.world-more small { color: var(--ink-dim); font-size: .8rem; font-family: 'Nunito', sans-serif; }

/* ---------- Museum ---------- */
.museum { background: var(--bg); }
.museum-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px;
}
.museum-card {
  margin: 0; position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); cursor: pointer;
  background: radial-gradient(120% 120% at 50% 20%, #2a2114, #14100a);
  aspect-ratio: 3/4; display: grid; place-items: center; padding: 14px;
  transition: transform .2s ease, border-color .2s ease;
  /* <button> resets */
  width: 100%; font: inherit; color: inherit; appearance: none; -webkit-appearance: none;
}
.museum-card:hover { transform: translateY(-5px) scale(1.02); border-color: rgba(233,182,74,.5); }
.museum-card:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.museum-gallery img { max-height: 78%; width: auto; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0,0,0,.5)); }
.museum-cap {
  position: absolute; bottom: 8px; left: 0; right: 0; text-align: center;
  font-family: 'Cinzel', serif; font-size: .82rem; letter-spacing: 1px;
  color: var(--gold-hi); text-transform: uppercase;
}

/* ---------- Get / download ---------- */
.get {
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(233,182,74,.14), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  text-align: center;
}
.get-inner { display: flex; flex-direction: column; align-items: center; }
.get-logo { width: min(360px, 80%); margin-bottom: 8px; filter: drop-shadow(0 10px 30px rgba(0,0,0,.5)); }
.store-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; margin: 12px 0 18px; }
/* Official Google Play badge */
.store-badge {
  display: inline-flex; border-radius: 12px;
  transition: transform .15s ease, filter .15s ease;
}
.store-badge img { height: 62px; width: auto; display: block; }
.store-badge:hover { transform: translateY(-3px); filter: brightness(1.08); }
.store-badge:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
/* App Store — not live yet, shown as a disabled "coming soon" tile */
.store-soon {
  display: inline-flex; align-items: center; gap: 12px;
  height: 62px; padding: 0 22px; box-sizing: border-box;
  background: #0c0a06; border: 1px solid var(--line); border-radius: 12px;
  opacity: .55; cursor: default;
}
.store-soon .store-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.store-soon small { font-size: .72rem; color: var(--ink-dim); text-transform: uppercase; letter-spacing: 1px; }
.store-soon b { font-family: 'Cinzel', serif; font-size: 1.2rem; color: var(--ink); }
.get-note { color: var(--ink-dim); font-size: .9rem; margin: 6px 0 0; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-2); }
.faq details {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: 14px;
  padding: 4px 22px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 0;
  font-family: 'Cinzel', serif; font-weight: 600; font-size: 1.05rem; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; color: var(--gold); font-size: 1.3rem; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: #0b0906; border-top: 1px solid var(--line); padding: 40px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-mark { width: 34px; height: 34px; }
.footer-brand .brand-name { font-size: 1.1rem; color: var(--gold-hi); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a { color: var(--ink-soft); font-weight: 700; font-size: .92rem; }
.footer-nav a:hover { color: var(--gold-hi); }
.footer-fine { color: var(--ink-dim); font-size: .82rem; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; order: 3; }
  .header-cta { order: 2; }
  .lang-switch { order: 1; }
  .lang-current { display: none; }        /* globe only on small screens */
  .lang-switch > summary { padding: 9px 11px; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 6px 24px 14px;
    background: rgba(14,12,8,.97); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(0,0,0,.4);
  }
  .site-header.nav-open .site-nav { display: flex; }
  .site-nav a { padding: 13px 2px; font-size: 1.05rem; border-bottom: 1px solid rgba(233,182,74,.08); }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; }
  .hero-device { order: 1; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .cta-row, .hero-stats { justify-content: center; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .world-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .world-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 20px; }
  .hero-stats b { font-size: 1.5rem; }
  .brand-name { font-size: 1.1rem; }

  /* Keep long headline words from overflowing the viewport */
  .hero-title { font-size: 2rem; line-height: 1.08; }
  .hero-sub { font-size: 1rem; max-width: 40ch; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { justify-content: center; }
  .store-row { flex-direction: column; align-items: center; }
  .store-soon { width: 100%; max-width: 260px; justify-content: center; }
  .section-title { font-size: 1.7rem; }
  .section-lead { font-size: 1rem; }
}

/* ============================================================
   POLISH LAYER
   ============================================================ */

/* Page-wide subtle grain + warm top glow, sits above bg, below content */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 5; pointer-events: none;
  background:
    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.9" numOctaves="2" stitchTiles="stitch"/></filter><rect width="140" height="140" filter="url(%23n)" opacity="0.5"/></svg>');
  opacity: .05; mix-blend-mode: overlay;
}
/* Lift content above the grain overlay. NOTE: do not include .site-header here —
   it must keep its own `position: sticky; z-index: 40` (a z-index:1 here would
   drop the sticky bar behind the hero and hide the mobile dropdown). */
.hero, .section, .site-footer { position: relative; z-index: 1; }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* Button sheen */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; top: 0; left: -140%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg); pointer-events: none;
}
.btn:hover::after { animation: sheen 1s ease; }
@keyframes sheen { to { left: 160%; } }

/* Glowing "matched" tiles on the demo board */
.tile-glow {
  background: rgba(255,214,110,.16);
  box-shadow: inset 0 0 0 1.5px rgba(255,214,110,.65), 0 0 14px rgba(233,182,74,.5);
  animation: pop .5s ease-out both, glowpulse 1.8s ease-in-out infinite;
}
@keyframes glowpulse {
  0%,100% { box-shadow: inset 0 0 0 1.5px rgba(255,214,110,.5), 0 0 10px rgba(233,182,74,.35); }
  50%     { box-shadow: inset 0 0 0 1.5px rgba(255,214,110,.9), 0 0 20px rgba(233,182,74,.7); }
}

/* Screen glare on the phone */
.phone-screen { position: relative; }
.phone-screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 26px;
  background: linear-gradient(135deg, rgba(255,255,255,.14), transparent 38%);
}

/* Hero floating treasures */
.hero-floaters { position: absolute; inset: 0; z-index: 1; pointer-events: none; will-change: transform; }
/* Kept clear of the copy column — only edges and the gap before the phone. */
.floater { position: absolute; width: 60px; opacity: .5; filter: drop-shadow(0 8px 14px rgba(0,0,0,.5)); }
.floater.f1 { top: 11%; left: 2%;   width: 50px; animation: drift 9s ease-in-out infinite; opacity: .42; }
.floater.f2 { top: 58%; right: 42%; width: 70px; animation: drift 11s ease-in-out infinite reverse; }
.floater.f3 { top: 17%; right: 3%;  width: 46px; animation: drift 8s ease-in-out infinite 1s; opacity: .4; }
.floater.f4 { top: 74%; right: 7%;  width: 50px; animation: drift 10s ease-in-out infinite .5s; }
.floater.f5 { top: 38%; right: 40%; width: 44px; animation: drift 12s ease-in-out infinite; opacity: .38; }
@keyframes drift {
  0%,100% { transform: translateY(0) rotate(-6deg); }
  50%     { transform: translateY(-22px) rotate(6deg); }
}

/* Feature card top accent that lights on hover */
.feature-card { position: relative; overflow: hidden; }
.feature-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity .25s ease;
}
.feature-card:hover::before { opacity: 1; }
.feature-ic {
  width: 60px; height: 60px; display: grid; place-items: center;
  border-radius: 16px; background: radial-gradient(circle at 30% 25%, #33291a, #1a140d);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

/* Museum: spotlight + plinth under each artifact */
.museum-card::before {
  content: ""; position: absolute; top: -20%; left: 50%; width: 130%; height: 90%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(233,182,74,.16), transparent 62%);
  pointer-events: none;
}
.museum-card::after {
  content: ""; position: absolute; bottom: 30px; left: 50%; width: 62%; height: 14px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0,0,0,.55), transparent 72%);
  filter: blur(2px); pointer-events: none;
}
.museum-gallery img { position: relative; z-index: 1; transition: transform .3s ease; }
.museum-card:hover img { transform: translateY(-4px) scale(1.04); }

/* Stat numbers get a soft glow */
.hero-stats b { text-shadow: 0 0 22px rgba(233,182,74,.35); }

/* ---------- Language switcher ---------- */
.lang-switch { position: relative; }
.lang-switch > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(0,0,0,.25);
  color: var(--ink-soft); font-weight: 700; font-size: .9rem;
  transition: color .2s ease, border-color .2s ease;
}
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch > summary::marker { content: ""; }
.lang-switch > summary:hover { color: var(--gold-hi); border-color: rgba(233,182,74,.4); }
.lang-globe { font-size: 1.05rem; line-height: 1; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 50;
  margin: 0; padding: 6px; list-style: none;
  min-width: 190px; max-height: 62vh; overflow: auto;
  background: rgba(14,12,8,.98); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow);
}
.lang-menu li { margin: 0; }
.lang-menu a {
  display: block; padding: 9px 12px; border-radius: 9px;
  color: var(--ink-soft); font-weight: 700; font-size: .92rem;
}
.lang-menu a:hover { background: rgba(233,182,74,.1); color: var(--gold-hi); }
.lang-menu a.is-current { color: var(--gold-hi); background: rgba(233,182,74,.14); }

/* ---------- RTL (Arabic) ---------- */
[dir="rtl"] .brand { margin-right: 0; margin-left: auto; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .step-n { left: auto; right: 26px; }
[dir="rtl"] .lb-close { right: auto; left: 12px; }
[dir="rtl"] .world-card { text-align: right; }
[dir="rtl"] .store-text { align-items: flex-end; }
[dir="rtl"] .hero-sub, [dir="rtl"] .feature-card p, [dir="rtl"] .step p { text-align: right; }
/* Arabic script must not be letter-spaced or it breaks glyph joining. */
[dir="rtl"] * { letter-spacing: normal !important; }

/* ---------- World lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 24px;
}
.lightbox[hidden] { display: none; }
.lb-backdrop {
  position: absolute; inset: 0;
  background: rgba(6,5,3,.78); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .25s ease;
}
.lightbox.open .lb-backdrop { opacity: 1; }
.lb-panel {
  position: relative; z-index: 1;
  width: min(560px, 100%); max-height: 90vh; overflow: auto;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0; transform: scale(.94) translateY(10px);
  transition: opacity .28s ease, transform .28s cubic-bezier(.2,.7,.2,1);
}
.lightbox.open .lb-panel { opacity: 1; transform: none; }
.lb-media { aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.lb-media img { width: 100%; height: 100%; object-fit: cover; }
/* Artifact variant: show the object contained on a museum-style backdrop */
.lb-media.is-artifact { aspect-ratio: 4/3; background: radial-gradient(120% 120% at 50% 15%, #2a2114, #14100a); }
.lb-media.is-artifact img { object-fit: contain; padding: 28px; filter: drop-shadow(0 12px 22px rgba(0,0,0,.55)); }
.lb-body { padding: 24px 26px 28px; text-align: center; }
.lb-title { font-size: clamp(1.4rem, 4vw, 1.7rem); color: var(--gold-hi); margin: 0 0 10px; }
.lb-blurb { color: var(--ink-soft); margin: 0 0 22px; font-size: 1.02rem; }
.lb-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,.5); border: 1px solid var(--line); color: var(--ink);
  font-size: 1rem; cursor: pointer; display: grid; place-items: center;
  transition: background .2s ease, transform .2s ease;
}
.lb-close:hover { background: rgba(0,0,0,.78); transform: scale(1.06); }
.lb-close:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .phone, .tile, .tile-glow, .scroll-cue, .floater { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .lb-panel, .lb-backdrop { transition: none !important; }
  html { scroll-behavior: auto; }
}

@media (max-width: 900px) {
  /* Stacked hero has no side gap — keep only the corner floaters. */
  .floater.f2, .floater.f5 { display: none; }
}
@media (max-width: 560px) {
  .floater.f3 { display: none; }
  .floater { width: 40px !important; }
}
