/* ============================================================
   HOBBITS LAND — Cascais  ·  Dark cinematic design system
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,500&family=Space+Mono:wght@400;700&display=swap');

:root {
  /* warm near-black ground */
  --bg:        #090c0b;
  --bg-2:      #0d1210;
  --surface:   #121a17;
  --surface-2: #18231f;
  --line:      rgba(120, 235, 195, 0.12);
  --line-2:    rgba(120, 235, 195, 0.22);

  /* warm off-whites */
  --text:      #e9f2ee;
  --text-dim:  #94a39d;
  --text-mute: #5f6f69;

  /* accents — neon green primary + electric blue secondary (oklch) */
  --gold:      oklch(0.84 0.19 152);   /* PRIMARY  — neon green   ~ #2fd98a */
  --gold-hi:   oklch(0.92 0.16 155);   /* bright green (gradients)~ #5cf2a8 */
  --ice:       oklch(0.80 0.16 232);   /* SECONDARY— electric blue~ #4aa8e6 */
  --ember:     oklch(0.85 0.13 195);   /* accent   — cyan         ~ #45d6e0 */

  --gold-soft: oklch(0.84 0.19 152 / 0.14);
  --ice-soft:  oklch(0.80 0.16 232 / 0.14);

  --maxw: 1240px;
  --r:   14px;
  --r-lg: 22px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: 'Archivo', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  position: relative;
}

/* subtle film grain over everything */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--gold); color: #04130d; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

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

/* shared eyebrow / mono label */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

h1, h2, h3 { font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }

.section { padding: 120px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(34px, 5vw, 60px);
  margin: 18px 0 14px;
}
.section-head p { color: var(--text-dim); font-size: clamp(16px, 1.4vw, 19px); max-width: 56ch; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font); font-weight: 700; font-size: 15px;
  letter-spacing: 0.01em;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn .arw { transition: transform .35s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }

.btn-gold {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  color: #04130d;
  box-shadow: 0 10px 30px -10px oklch(0.84 0.19 152 / 0.6), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -12px oklch(0.84 0.19 152 / 0.75), inset 0 1px 0 rgba(255,255,255,.35); }

.btn-ghost {
  background: rgba(255,255,255,0.02);
  border-color: var(--line-2);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); background: var(--gold-soft); transform: translateY(-2px); }

.btn-lg { padding: 18px 34px; font-size: 16px; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease), padding .4s var(--ease);
  border-bottom: 1px solid transparent;
  padding: 18px 0;
}
.header.scrolled {
  background: oklch(0.16 0.01 200 / 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
  padding: 12px 0;
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 46px; height: 46px; transition: transform .4s var(--ease); }
.brand:hover img { transform: rotate(-6deg) scale(1.05); }
.brand .bt { line-height: 1; }
.brand .bt b { display: block; font-size: 17px; font-weight: 800; letter-spacing: 0.02em; }
.brand .bt span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.34em; color: var(--gold); text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  font-size: 14px; font-weight: 600; color: var(--text-dim);
  padding: 9px 14px; border-radius: 999px; white-space: nowrap;
  transition: color .25s, background .25s;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,0.04); }

.header-cta { display: flex; align-items: center; gap: 12px; }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); background: rgba(255,255,255,.02); border-radius: 12px; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.burger span { width: 20px; height: 2px; background: var(--text); transition: transform .3s var(--ease), opacity .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 999;
  background: oklch(0.12 0.01 200 / 0.97);
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 0 32px;
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.drawer.open { opacity: 1; pointer-events: auto; transform: none; }
.drawer a { font-size: 30px; font-weight: 800; color: var(--text); padding: 12px 0; border-bottom: 1px solid var(--line); }
.drawer a:last-of-type { border-bottom: none; }
.drawer .btn { margin-top: 24px; justify-content: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; }
#embers { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg .glow {
  position: absolute; border-radius: 50%; filter: blur(80px);
}
.hero-bg .g1 { width: 720px; height: 720px; right: -160px; top: -120px; background: oklch(0.84 0.19 152 / 0.16); }
.hero-bg .g2 { width: 600px; height: 600px; left: -180px; bottom: -160px; background: oklch(0.80 0.16 232 / 0.12); }
.hero-bg .ghost {
  position: absolute; right: -8%; top: 50%; transform: translateY(-50%);
  width: min(900px, 80vw); opacity: 0.05;
  filter: grayscale(1) contrast(1.1);
  will-change: transform;
}
.hero::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 240px; z-index: 2;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 3; display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 48px; }

.hero-copy { max-width: 640px; }
.hero h1 {
  font-size: clamp(48px, 8vw, 104px);
  margin: 22px 0;
  letter-spacing: -0.035em;
  line-height: 0.94;
}
.hero h1 em { font-style: normal; color: var(--gold); position: relative; text-shadow: 0 0 26px oklch(0.84 0.19 152 / 0.55); }
.hero-lead { font-size: clamp(17px, 1.7vw, 21px); color: var(--text-dim); max-width: 52ch; margin-bottom: 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero-stats { display: flex; gap: 30px; margin-top: 46px; flex-wrap: wrap; }
.hero-stats .st { font-family: var(--mono); font-size: 13px; color: var(--text-dim); display: flex; align-items: center; gap: 10px; }
.hero-stats .st b { color: var(--gold); font-weight: 700; }

/* hero logo medallion */
.medallion { position: relative; display: grid; place-items: center; justify-self: center; width: min(520px, 92%); aspect-ratio: 1; }
.medallion .halo { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, oklch(0.84 0.19 152 / 0.22), transparent 65%); filter: blur(24px); }
.medallion img { position: relative; z-index: 3; width: min(420px, 76%); filter: drop-shadow(0 0 40px oklch(0.84 0.19 152 / 0.35)); animation: float 7s ease-in-out infinite; }

/* HUD ring system */
.tech-hud { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; }
.tech-hud circle { transform-origin: 200px 200px; }
.hud-ticks {
  stroke: var(--gold); stroke-opacity: 0.5; stroke-width: 8;
  stroke-dasharray: 1.2 11.5;
  animation: spin 90s linear infinite;
}
.hud-ticks.fine {
  stroke: var(--ice); stroke-opacity: 0.4; stroke-width: 5;
  stroke-dasharray: 1 7;
  animation: spin 60s linear infinite reverse;
}
.hud-arc { stroke-width: 1.5; stroke-linecap: round; }
.hud-arc.a1 {
  stroke: var(--gold); stroke-opacity: 0.7;
  stroke-dasharray: 150 1106;        /* one bright arc + gap (2πr≈1106) */
  animation: spin 14s linear infinite;
  filter: drop-shadow(0 0 6px oklch(0.84 0.19 152 / 0.7));
}
.hud-arc.a2 {
  stroke: var(--ice); stroke-opacity: 0.6;
  stroke-dasharray: 70 60 18 845;    /* a couple of dashes + long gap */
  animation: spin 22s linear infinite reverse;
}

/* faint radar sweep */
.tech-sweep {
  position: absolute; inset: 6%; border-radius: 50%; z-index: 1;
  background: conic-gradient(from 0deg, transparent 0deg, oklch(0.84 0.19 152 / 0.12) 38deg, transparent 70deg);
  animation: spin 8s linear infinite;
  mix-blend-mode: screen;
  -webkit-mask: radial-gradient(circle, #000 56%, transparent 72%);
  mask: radial-gradient(circle, #000 56%, transparent 72%);
}

/* orbiting data nodes */
.tech-orbit { position: absolute; inset: 4%; z-index: 2; animation: spin 26s linear infinite; }
.tech-orbit.rev { inset: 14%; animation: spin 38s linear infinite reverse; }
.tech-orbit .node {
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 10px 1px var(--gold);
  top: 50%; left: 50%; margin: -3.5px;
}
.tech-orbit .node::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid var(--gold); opacity: 0.35;
}
.tech-orbit .n1 { transform: rotate(20deg) translateX(calc(50% + 96px)); }
.tech-orbit .n2 { transform: rotate(155deg) translateX(calc(50% + 96px)); background: var(--ice); box-shadow: 0 0 10px 1px var(--ice); }
.tech-orbit .n2::after { border-color: var(--ice); }
.tech-orbit .n3 { transform: rotate(255deg) translateX(calc(50% + 96px)); }
.tech-orbit .n4 { transform: rotate(80deg) translateX(calc(50% + 70px)); background: var(--ice); box-shadow: 0 0 9px 1px var(--ice); width: 5px; height: 5px; }
.tech-orbit .n5 { transform: rotate(290deg) translateX(calc(50% + 70px)); width: 5px; height: 5px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce){
  .medallion img, .hud-ticks, .hud-arc, .tech-sweep, .tech-orbit { animation: none; }
}

/* ============================================================
   TECH BACKDROP — animated grid + scanline + particles
   shared across .hero and .page-hero (injected by site.js)
   ============================================================ */
.tech-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background-image:
    linear-gradient(oklch(0.84 0.19 152 / 0.06) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.84 0.19 152 / 0.06) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask: radial-gradient(120% 90% at 50% 35%, #000 30%, transparent 78%);
  mask: radial-gradient(120% 90% at 50% 35%, #000 30%, transparent 78%);
  animation: gridDrift 14s linear infinite;
}
@keyframes gridDrift { to { background-position: 38px 38px; } }
.tech-grid::before {
  content: ""; position: absolute; left: -60%; right: -60%; bottom: -18%; height: 82%;
  background-image:
    linear-gradient(oklch(0.84 0.19 152 / 0.30) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.84 0.19 152 / 0.30) 1px, transparent 1px);
  background-size: 44px 44px;
  transform: perspective(440px) rotateX(64deg);
  transform-origin: bottom center;
  -webkit-mask: linear-gradient(transparent 38%, #000 92%);
  mask: linear-gradient(transparent 38%, #000 92%);
  animation: gridMove 5s linear infinite;
}
.tech-grid::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 200px;
  background: radial-gradient(120% 100% at 50% 100%, oklch(0.84 0.19 152 / 0.16), transparent 70%);
  pointer-events: none;
}
.tech-grid .scan {
  position: absolute; left: 0; right: 0; top: -32%; height: 32%;
  background: linear-gradient(transparent, oklch(0.82 0.075 232 / 0.10), transparent);
  animation: scanY 7.5s linear infinite;
}
@keyframes gridMove { to { background-position: 0 44px; } }
@keyframes scanY { 0% { top: -32%; } 100% { top: 100%; } }
.hero-particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .tech-grid, .tech-grid::before, .tech-grid .scan { animation: none; } }

.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 4; font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em; color: var(--text-mute); text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-hint .dot { width: 1px; height: 36px; background: linear-gradient(var(--gold), transparent); animation: drop 2s ease-in-out infinite; }
@keyframes drop { 0%{ transform: scaleY(0); transform-origin: top; } 50%{ transform: scaleY(1); transform-origin: top; } 51%{ transform-origin: bottom;} 100%{ transform: scaleY(0); transform-origin: bottom; } }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; gap: 0; width: max-content; animation: marq 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--mono); font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); padding: 0 30px; display: inline-flex; align-items: center; gap: 30px; white-space: nowrap; }
.marquee-track span::after { content: "✦"; color: var(--gold); font-size: 14px; }
@keyframes marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .marquee-track { animation: none; } }

/* ============================================================
   SHOP
   ============================================================ */
.shop { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.shop-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }

.shop-feature {
  grid-column: span 12;
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(900px 400px at 85% -10%, oklch(0.84 0.19 152 / 0.18), transparent 60%),
    linear-gradient(120deg, var(--surface), var(--bg-2));
  padding: 48px 52px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.shop-feature h3 { font-size: clamp(28px, 3.4vw, 44px); max-width: 16ch; }
.shop-feature p { color: var(--text-dim); margin-top: 12px; max-width: 46ch; }
.shop-feature .badge { font-family: var(--mono); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; display: inline-block; }

.cat {
  grid-column: span 4;
  position: relative; overflow: hidden;
  border-radius: var(--r); border: 1px solid var(--line);
  background: var(--surface);
  padding: 26px; min-height: 188px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.cat::before { content:""; position:absolute; inset:0; background: radial-gradient(280px circle at var(--gx,50%) var(--gy,0%), oklch(0.84 0.19 152 / 0.18), transparent 65%); opacity:0; transition: opacity .4s var(--ease); }
.cat:hover { transform: translateY(-6px); border-color: var(--line-2); }
.cat:hover::before { opacity: 1; }
.cat .num { font-family: var(--mono); font-size: 12px; color: var(--text-mute); }
.cat h4 { font-size: 23px; font-weight: 800; margin: 0; letter-spacing: -0.01em; }
.cat p { color: var(--text-dim); font-size: 14px; margin-top: 6px; }
.cat .go { font-family: var(--mono); font-size: 13px; color: var(--gold); display: inline-flex; gap: 8px; align-items: center; margin-top: 18px; transition: gap .3s var(--ease); }
.cat:hover .go { gap: 14px; }

/* ============================================================
   EVENTS
   ============================================================ */
.events { background: var(--bg); }
.ev-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.ev-filters button {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: transparent; color: var(--text-dim);
  transition: all .3s var(--ease);
}
.ev-filters button:hover { color: var(--text); border-color: var(--gold); }
.ev-filters button.active { background: var(--gold); color: #04130d; border-color: var(--gold); font-weight: 700; }

.ev-list { display: flex; flex-direction: column; gap: 12px; }
.ev {
  display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 28px;
  padding: 24px 28px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--surface);
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.ev:hover { transform: translateX(6px); border-color: var(--line-2); background: var(--surface-2); }
.ev .date { text-align: center; border-right: 1px solid var(--line); padding-right: 24px; }
.ev .date .d { font-size: 34px; font-weight: 900; line-height: 1; color: var(--gold); }
.ev .date .m { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); margin-top: 4px; }
.ev .info h4 { font-size: 21px; font-weight: 800; }
.ev .info .meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--text-dim); }
.ev .tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--gold); }
.ev .tag.warhammer { color: var(--ice); border-color: var(--ice-soft); }
.ev .tag.community { color: var(--ember); border-color: oklch(0.85 0.13 195 / 0.3); }
.ev .res { font-family: var(--mono); font-size: 13px; color: var(--text); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; transition: color .3s, gap .3s var(--ease); }
.ev:hover .res { color: var(--gold); gap: 12px; }

/* ============================================================
   WORLDS (game categories grid)
   ============================================================ */
.worlds { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.worlds-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.world {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  border: 1px solid var(--line); min-height: 320px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px; isolation: isolate;
  transition: transform .45s var(--ease), border-color .45s var(--ease);
}
.world:hover { transform: translateY(-6px); border-color: var(--line-2); }
.world .ph { position: absolute; inset: 0; z-index: -2; }
.world::after { content:""; position:absolute; inset:0; z-index:-1; background: linear-gradient(180deg, transparent 30%, oklch(0.12 0.01 200 / 0.94)); }
/* Stronger bottom scrim for cards whose photo is light where the title sits
   (e.g. the RPG card's character sheet). Scoped modifier — add `scrim-strong`
   to a single .world; layers an extra gradient over the base ::after so the
   title + lead stay legible. Does not affect other world cards. */
.world.scrim-strong::after {
  background:
    linear-gradient(180deg, transparent 28%, oklch(0.09 0.01 200 / 0.85)),
    linear-gradient(180deg, transparent 30%, oklch(0.12 0.01 200 / 0.94));
}
.world h4 { font-size: 25px; font-weight: 800; }
.world p { color: var(--text-dim); font-size: 14px; margin-top: 6px; max-width: 32ch; }
.world .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: auto; }
.world.span2 { grid-column: span 2; }

/* striped image placeholder */
.ph {
  background-color: var(--surface);
  background-image: repeating-linear-gradient(45deg, oklch(0.84 0.19 152 / 0.05) 0 2px, transparent 2px 11px);
  display: grid; place-items: center;
}
.ph .ph-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--text-mute); text-transform: uppercase; background: oklch(0.12 0.01 200 / 0.7); padding: 6px 12px; border-radius: 6px; border: 1px solid var(--line); }

/* ============================================================
   SPACE / ABOUT
   ============================================================ */
.space { background: var(--bg); }
.space-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.space-copy h2 { font-size: clamp(34px, 4.6vw, 58px); margin: 18px 0 18px; }
.space-copy p { color: var(--text-dim); font-size: 17px; margin-bottom: 16px; max-width: 50ch; }
.space-points { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.space-points .pt { display: flex; gap: 16px; align-items: flex-start; }
.space-points .pt .ic { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--gold); flex: none; background: var(--gold-soft); }
.space-points .pt b { display: block; font-size: 16px; }
.space-points .pt span { color: var(--text-dim); font-size: 14px; }

.space-gallery { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px; gap: 14px; }
.space-gallery .ph { border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; }
.space-gallery .ph:first-child { grid-row: span 2; }

/* ============================================================
   VISIT
   ============================================================ */
.visit { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.visit-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.visit-info { padding: 48px; }
.visit-info h2 { font-size: clamp(30px, 4vw, 48px); margin: 16px 0 28px; }
.visit-row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.visit-row:last-child { border-bottom: none; }
.visit-row .ic { color: var(--gold); flex: none; margin-top: 2px; }
.visit-row .vt b { display: block; font-size: 15px; margin-bottom: 4px; }
.visit-row .vt span, .visit-row .vt a { color: var(--text-dim); font-size: 14.5px; }
.visit-row .vt a:hover { color: var(--gold); }
.visit-row .vt small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--text-mute); }
.visit-map { position: relative; min-height: 420px; }
.visit-map .ph { position: absolute; inset: 0; }
.visit-map .pin { position: absolute; left: 50%; top: 46%; transform: translate(-50%,-50%); display: grid; place-items: center; }
.visit-map .pin .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 6px oklch(0.84 0.19 152 / 0.25); }
.visit-map .pin .pulse { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0%{ transform: scale(1); opacity: .6;} 100%{ transform: scale(5); opacity: 0; } }

/* ============================================================
   CTA BANNER + FOOTER
   ============================================================ */
.cta-banner { padding: 100px 0; text-align: center; position: relative; overflow: hidden; background: var(--bg-2); }
.cta-banner .glow { position: absolute; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, oklch(0.84 0.19 152 / 0.16), transparent 60%); left: 50%; top: 50%; transform: translate(-50%,-50%); filter: blur(40px); pointer-events: none; }
.cta-banner h2 { font-size: clamp(36px, 6vw, 76px); position: relative; }
.cta-banner p { color: var(--text-dim); font-size: 18px; margin: 18px auto 36px; max-width: 48ch; position: relative; }
.cta-banner .hero-cta { justify-content: center; position: relative; }

.footer { background: var(--bg); border-top: 1px solid var(--line); padding: 72px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer .brand img { width: 64px; height: 64px; }
.footer-col h5 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 18px; }
.footer-col a { display: block; color: var(--text-dim); font-size: 14.5px; padding: 7px 0; transition: color .25s; }
.footer-col a:hover { color: var(--gold); }
.footer-about p { color: var(--text-dim); font-size: 14.5px; margin: 18px 0; max-width: 38ch; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text-dim); transition: all .3s var(--ease); }
.socials a:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-3px); background: var(--gold-soft); }

.news { display: flex; gap: 8px; margin-top: 14px; }
.news input { flex: 1; background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 12px 18px; color: var(--text); font-family: var(--font); font-size: 14px; outline: none; transition: border-color .3s; }
.news input:focus { border-color: var(--gold); }
.news button { background: var(--gold); color: #04130d; border: none; border-radius: 999px; width: 46px; height: 46px; cursor: pointer; font-size: 18px; flex: none; transition: transform .3s; }
.news button:hover { transform: translateY(-2px); }

.footer-bot { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; flex-wrap: wrap; }
.footer-bot p { font-family: var(--mono); font-size: 12px; color: var(--text-mute); }
.footer-bot .links { display: flex; gap: 22px; }
.footer-bot .links a { font-size: 12.5px; color: var(--text-mute); }
.footer-bot .links a:hover { color: var(--text-dim); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
/* Reveal-on-scroll — FAIL-OPEN. Content is visible by default; the hidden
   pre-state is armed only once site.js confirms it can drive the reveal and adds
   .reveal-anim to <html>. If JS is disabled or fails before that point, nothing
   is ever hidden (golden rule: never leave content stuck at opacity:0). */
.reveal { opacity: 1; transform: none; }
.reveal-anim .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-anim .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce){ .reveal-anim .reveal { opacity: 1; transform: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero { min-height: auto; padding: 150px 0 90px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .medallion { max-width: 320px; order: 2; }
  .hero-copy { max-width: 720px; order: 1; }
  .scroll-hint { display: none; }
  .worlds-grid { grid-template-columns: repeat(2, 1fr); }
  .world.span2 { grid-column: span 2; }
  .space-grid { grid-template-columns: 1fr; gap: 40px; }
  .visit-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav, .header-cta .btn { display: none; }
  .burger { display: flex; }
  .section { padding: 84px 0; }
  .cat { grid-column: span 12; }
  .shop-feature { padding: 34px; }
  .ev { grid-template-columns: 84px 1fr; }
  .ev .res, .ev .attend { grid-column: 2; justify-self: start; max-width: 100%; }
  .ev .attend { flex-wrap: wrap; white-space: normal; }
  .ev .date { padding-right: 18px; }
  .worlds-grid { grid-template-columns: 1fr; }
  .world.span2 { grid-column: span 1; }
  .space-gallery { grid-template-rows: 160px 160px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats { gap: 16px; }
}

/* ============================================================
   INTERACTIVITY / IMPACT LAYER
   ============================================================ */
/* scroll progress bar */
.scroll-prog {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 1100;
  background: linear-gradient(90deg, var(--gold), var(--ice));
  box-shadow: 0 0 14px var(--gold);
  transition: width .08s linear;
}

/* hero cursor spotlight */
.hero-spot {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0; transition: opacity .5s var(--ease);
  background: radial-gradient(300px circle at var(--hx,50%) var(--hy,50%), oklch(0.84 0.19 152 / 0.14), transparent 62%);
  mix-blend-mode: screen;
}
.hero:hover .hero-spot { opacity: 1; }

/* medallion 3D tilt */
.hero .wrap { perspective: 1200px; }
.medallion { will-change: transform; transform-style: preserve-3d; }

/* tilt-ready cards */
.cat, .world { will-change: transform; }
.world::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(260px circle at var(--gx,50%) var(--gy,50%), oklch(0.84 0.19 152 / 0.16), transparent 60%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.world:hover::before { opacity: 1; }
.world > * { position: relative; z-index: 1; }
.world:hover { box-shadow: 0 0 0 1px oklch(0.84 0.19 152 / 0.4), 0 30px 60px -30px oklch(0.84 0.19 152 / 0.35); }

/* neon glow pulse for the hero accent on load — never hides the text */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 em { animation: neon-in 1.6s var(--ease) both; }
}
@keyframes neon-in {
  0%   { text-shadow: none; }
  45%  { text-shadow: 0 0 8px oklch(0.84 0.19 152 / 0.4); }
  55%  { text-shadow: 0 0 44px oklch(0.84 0.19 152 / 0.95); }
  62%  { text-shadow: none; }
  70%  { text-shadow: 0 0 44px oklch(0.84 0.19 152 / 0.95); }
  100% { text-shadow: 0 0 26px oklch(0.84 0.19 152 / 0.55); }
}

/* magnetic buttons keep their transition smooth */
.btn[data-magnetic] { will-change: transform; }

/* ============================================================
   MORE MOTION
   ============================================================ */
/* button sheen sweep */
.btn-gold { position: relative; overflow: hidden; }
.btn-gold::after {
  content: ""; position: absolute; top: 0; left: -70%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: skewX(-18deg); pointer-events: none; transition: left .65s var(--ease);
}
.btn-gold:hover::after { left: 135%; }

@media (prefers-reduced-motion: no-preference) {
  /* page leave (user-triggered, safe) */
  body.page-leaving { opacity: 0; transition: opacity .24s ease; }

  /* drifting aurora glows */
  .page-hero .ph-glow { animation: drift 17s ease-in-out infinite alternate; }
  .page-hero .ph-glow.b { animation-duration: 23s; animation-direction: alternate-reverse; }
  .hero-bg .glow { animation: drift 20s ease-in-out infinite alternate; }
}
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-44px, 34px) scale(1.16); } }

/* ============================================================
   LANGUAGE SWITCH
   ============================================================ */
.lang-switch { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; flex: none; }
.lang-switch button {
  background: transparent; border: none; color: var(--text-dim);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; font-weight: 700;
  padding: 9px 13px; cursor: pointer; transition: color .25s, background .25s;
}
.lang-switch button.active { background: var(--gold); color: #04130d; }
.lang-switch button:not(.active):hover { color: var(--text); }
.drawer .lang-switch { transform: scale(1.15); transform-origin: left; }

/* ============================================================
   LEAFLET MAP (visit + contact) — themed pin + dark attribution
   ============================================================ */
.leaflet-container { background: var(--bg-2); }
.hl-pin span {
  display: block; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px oklch(0.84 0.19 152 / 0.25), 0 0 14px oklch(0.84 0.19 152 / 0.55);
}
.leaflet-control-attribution { background: oklch(0.12 0.01 200 / 0.72) !important; color: var(--text-mute) !important; }
.leaflet-control-attribution a { color: var(--text-dim) !important; }
