/* Reclamation MMO LLC — studio site
   Theme: arcane fantasy with luminous rune-light (cyber influence), no machinery. */

:root {
  color-scheme: dark;
  --void: #07080f;
  --night: #0d1020;
  --deep: #141933;
  --stone: #1c2242;
  --line: #2b3360;
  --parchment: #ece3cf;
  --mist: #b9b4c9;
  --dim: #8a87a3;
  --gold: #d8a94a;
  --gold-hi: #f2cf7c;
  --rune: #5ef2e0;
  --rune-dim: #2aa79a;
  --ember: #e0703a;
  --violet: #8f6cff;
  --radius: 4px;
  --max: 1160px;
  --serif: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--void);
  color: var(--parchment);
  font-family: var(--body);
  font-size: 1.2rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Night sky: deep blue field, two star layers and constellations, scrolling the full page height */
body { position: relative; z-index: 0;
  background-color: #0a1638;
  background-image:
    linear-gradient(180deg, #0f2257 0%, #0b1a45 35%, #081333 70%, #060d26 100%);
}
body::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: url("../img/constellations.svg"), url("../img/stars-near.svg"), url("../img/stars-far.svg");
  background-size: 1600px 2200px, 900px 900px, 520px 520px;
  background-position: center top, 230px 140px, 0 0;
  background-repeat: repeat;
}
body::after {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: url("../img/stars-near.svg");
  background-size: 900px 900px; background-position: 610px 470px;
  opacity: .55; animation: twinkle 7s ease-in-out infinite;
}
@keyframes twinkle { 0%,100% { opacity: .2; } 50% { opacity: .7; } }

/* Sunlight from the upper-right corner */
.sunlight { position: absolute; top: 0; right: 0; width: 100%; height: 1500px; overflow: hidden; pointer-events: none; z-index: -1; }
.sun {
  position: absolute; top: -170px; right: -170px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, #fffbe8 0%, #ffe9a8 14%, rgba(255,210,120,.55) 28%, rgba(255,190,110,.18) 50%, rgba(255,190,110,0) 70%);
  filter: blur(2px);
}
.sunlight::before {
  content: ""; position: absolute; top: -600px; right: -600px; width: 1400px; height: 1400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,214,140,.22), rgba(255,214,140,.06) 40%, transparent 65%);
}
.rays { position: absolute; top: 40px; right: 40px; width: 0; height: 0; mix-blend-mode: screen; }
.rays span {
  position: absolute; left: 0; top: calc(var(--w) / -2);
  width: 190vmax; height: var(--w);
  transform-origin: 0 50%; transform: rotate(var(--a));
  background: linear-gradient(90deg, rgba(255,236,180,var(--o)) 0%, rgba(255,226,160,calc(var(--o) * .5)) 35%, rgba(255,226,160,0) 75%);
  filter: blur(calc(var(--w) / 6 + 2px));
  animation: beam var(--d) ease-in-out infinite alternate;
}
@keyframes beam { from { opacity: .55; } to { opacity: 1; } }
@media (max-width: 760px) { .sun { width: 300px; height: 300px; top: -130px; right: -130px; } .rays span { width: 160vmax; } }

a { color: var(--gold-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rune); }
img, svg { max-width: 100%; display: block; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--void); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(8,14,40,.42);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--parchment); }
.brand svg { width: 38px; height: 38px; }
.brand span { font-family: var(--serif); letter-spacing: .14em; font-size: .95rem; line-height: 1.15; }
.brand small { display: block; font-family: var(--mono); font-size: .62rem; letter-spacing: .3em; color: var(--rune-dim); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--parchment); padding: 8px 12px; font-family: var(--mono); font-size: .8rem; letter-spacing: .15em; cursor: pointer; border-radius: var(--radius); }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 8px 14px; text-decoration: none;
  font-family: var(--serif); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mist); border-radius: var(--radius);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold-hi); background: rgba(216,169,74,.08); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 68px; left: 0; right: 0; background: var(--void); border-bottom: 1px solid var(--line); display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px 16px 16px; }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: .04em; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--mist); }
.lead { font-size: clamp(1.25rem, 2.2vw, 1.5rem); color: var(--parchment); }
.eyebrow {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--rune); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; box-shadow: 0 0 8px currentColor; }
.gold { color: var(--gold-hi); }
.rune-text { color: var(--rune); text-shadow: 0 0 14px rgba(94,242,224,.45); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(72px, 12vw, 150px) 0 clamp(64px, 10vw, 120px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.hero h1 span { display: block; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, #9a6f22); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sigil { justify-self: center; width: min(660px, 100%); aspect-ratio: 1; }
.hero-sigil svg { width: 100%; height: 100%; }
.spin-slow { transform-box: fill-box; transform-origin: center; animation: spin 90s linear infinite; }
.spin-rev { transform-box: fill-box; transform-origin: center; animation: spin 140s linear infinite reverse; }
.pulse { animation: pulse 4s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero-sigil { width: min(300px, 80%); order: -1; } }

.page-hero { padding: clamp(56px, 9vw, 110px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: var(--radius); text-decoration: none;
  font-family: var(--serif); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid var(--gold); color: var(--void); background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  transition: box-shadow .2s, transform .2s;
}
.btn:hover { color: var(--void); box-shadow: 0 0 24px rgba(216,169,74,.45); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--rune); border-color: var(--rune-dim); }
.btn.ghost:hover { color: var(--rune); box-shadow: 0 0 22px rgba(94,242,224,.3); }

/* ---------- Sections ---------- */
section { padding: clamp(56px, 8vw, 100px) 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--gold); margin: 0 auto; width: min(var(--max), 100% - 32px); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.divider svg { width: 22px; height: 22px; }

.grid { display: grid; gap: 22px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* Rune-etched card */
.card {
  position: relative; padding: 30px 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(28,34,66,.72), rgba(13,16,32,.72));
  border: 1px solid var(--line);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.card::before, .card::after {
  content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid var(--gold);
}
.card::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.card::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--rune-dim); transform: translateY(-3px); box-shadow: 0 10px 40px rgba(0,0,0,.4), 0 0 0 1px rgba(94,242,224,.15) inset; }
.glyph { width: 52px; height: 52px; margin-bottom: 18px; color: var(--rune); }
.card h3 { color: var(--parchment); }
.card p:last-child { margin-bottom: 0; }

.tag {
  display: inline-block; font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 10px; border: 1px solid var(--line); border-radius: 2px; color: var(--dim); margin: 0 6px 12px 0;
}
.tag.live { color: var(--rune); border-color: var(--rune-dim); }
.tag.gold { color: var(--gold-hi); border-color: rgba(216,169,74,.5); }

.more { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-hi); margin-top: 16px; display: inline-block; }

/* Feature list */
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.features li { position: relative; padding-left: 30px; color: var(--mist); }
.features li::before {
  content: ""; position: absolute; left: 4px; top: .55em; width: 9px; height: 9px;
  border: 1px solid var(--rune); transform: rotate(45deg); box-shadow: 0 0 8px rgba(94,242,224,.5);
}
.features strong { color: var(--parchment); font-weight: 600; }

/* Banner quote */
.manifesto { text-align: center; padding: clamp(64px, 10vw, 120px) 0; background: radial-gradient(ellipse at center, rgba(216,169,74,.08), transparent 70%); }
.manifesto blockquote { margin: 0 auto; max-width: 860px; font-family: var(--serif); font-size: clamp(1.4rem, 3.4vw, 2.3rem); line-height: 1.35; color: var(--parchment); }
.manifesto cite { display: block; margin-top: 20px; font-style: normal; font-family: var(--mono); font-size: .78rem; letter-spacing: .3em; color: var(--gold); text-transform: uppercase; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(var(--rune), var(--line) 40%, var(--gold)); }
.timeline li { position: relative; padding: 0 0 30px 44px; }
.timeline li::before {
  content: ""; position: absolute; left: 4px; top: 6px; width: 15px; height: 15px; transform: rotate(45deg);
  background: var(--void); border: 1px solid var(--dim);
}
.timeline li.now::before { border-color: var(--rune); box-shadow: 0 0 12px var(--rune); background: rgba(94,242,224,.25); }
.timeline li.goal::before { border-color: var(--gold); background: rgba(216,169,74,.3); }
.timeline h3 { margin-bottom: 4px; font-size: 1.1rem; }
.timeline .when { font-family: var(--mono); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.timeline li.now .when { color: var(--rune); }
.timeline li.goal .when { color: var(--gold-hi); }

/* Code-ish panel (rune terminal) */
.panel {
  font-family: var(--mono); font-size: .85rem; line-height: 1.7; color: var(--rune);
  background: rgba(7,8,15,.85); border: 1px solid var(--line); border-left: 2px solid var(--rune-dim);
  padding: 20px 22px; border-radius: var(--radius); overflow-x: auto; white-space: pre;
}
.panel .c { color: var(--dim); }
.panel .g { color: var(--gold-hi); }

/* News */
.post { border-top: 1px solid var(--line); padding: 32px 0; }
.post:first-child { border-top: 0; }
.post time { font-family: var(--mono); font-size: .76rem; letter-spacing: .2em; color: var(--rune-dim); text-transform: uppercase; }
.post h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); margin-top: 8px; }
.post h2 a { color: var(--parchment); text-decoration: none; }
.post h2 a:hover { color: var(--gold-hi); }
.article { max-width: 760px; }
.article h2 { margin-top: 1.6em; font-size: 1.5rem; }

/* Notice */
.notice { font-size: 1rem; color: var(--dim); border: 1px dashed var(--line); padding: 14px 18px; border-radius: var(--radius); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; margin-top: 40px; background: rgba(7,8,15,.6); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--mist); text-decoration: none; font-size: 1.05rem; }
.site-footer a:hover { color: var(--rune); }
.legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; color: var(--dim); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Spinning world globe (WebGL) under the sigil line-art */
.hero-sigil { position: relative; touch-action: pan-y; cursor: grab; }
.hero-sigil:active { cursor: grabbing; }
.hero-sigil svg { position: relative; z-index: 2; pointer-events: none; }
.globe-gl, .globe-fx {
  position: absolute; z-index: 1; pointer-events: none;
  /* globe radius 256 of a 670-unit viewBox, plus 9% atmosphere */
  width: 82.6%; height: 82.6%; left: 8.7%; top: 8.7%;
}
.globe-fx { z-index: 1; }
.hero-sigil.gl-on .svg-globe { display: none; }
