/* Jade Mountain — franchise site
   Large type, high contrast · movie-poster energy · living world wallpapers
   Palette: deep luscious jewel jade (not mint/pastel) · 3D gem depth everywhere */

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

:root {
  /* Deep forest cave base */
  --bg: #050d0b;
  --bg-2: #0a1814;
  --bg-card: #10241e;
  --bg-elev: #16352c;
  --text: #f2f7f4;
  --muted: #8fb5a4;

  /* Imperial jewel jade — dark luscious gem, never pastel mint */
  --jade: #0c8f5c;
  --jade-2: #2fbf82;
  --jade-facet: #48d496;
  --jade-glow: #14a86b;
  --jade-dim: #065c3c;
  --jade-deep: #033224;
  --jade-ink: #021912;

  --lava: #ff6b3d;
  --gold: #e8b84a;
  --gold-2: #ffe29a;
  --line: #1e463a;
  --danger: #e88a7a;
  --ok: #7ecf78;

  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: Georgia, "Palatino Linotype", "Times New Roman", serif;
  --body: 1.25rem;
  --lead: 1.45rem;
  --h1: clamp(2.5rem, 6vw, 4rem);
  --h2: clamp(1.85rem, 3.8vw, 2.6rem);
  --h3: 1.5rem;
  --max: 74rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0,0,0,.55);
  --shadow-gem: 0 10px 28px rgba(3, 50, 36, .55), 0 0 40px rgba(12, 143, 92, .22);
  --page-bg: none;
  --gem-rgb: 12, 143, 92;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: var(--body);
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  perspective: 1400px;
}

/* Living world wallpaper behind every page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: var(--bg);
  background-image: var(--page-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04) translate3d(0, var(--scroll-shift, 0px), 0);
  filter: saturate(1.12) contrast(1.08) brightness(0.92);
  will-change: transform;
}

/* Deep jewel atmosphere — visitor is inside the mountain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(var(--gem-rgb), .18), transparent 55%),
    radial-gradient(ellipse 40% 30% at 85% 70%, rgba(3, 50, 36, .35), transparent 50%),
    radial-gradient(ellipse 35% 28% at 12% 80%, rgba(14, 168, 107, .08), transparent 45%),
    linear-gradient(180deg, rgba(2, 16, 12, .58) 0%, rgba(2, 16, 12, .82) 42%, rgba(2, 12, 10, .94) 100%);
}

/* Per-page worlds */
body.page-home { --page-bg: url("../images/wp-stone-guardians.jpg"); }
body.page-story { --page-bg: url("../images/wp-yushan-market.jpg"); }
body.page-characters { --page-bg: url("../images/wp-mushu-cave.jpg"); }
body.page-world { --page-bg: url("../images/wp-island-hoptu.jpg"); }
body.page-book { --page-bg: url("../images/wp-library.jpg"); }
body.page-film { --page-bg: url("../images/wp-dragon-storm.jpg"); }
body.page-gallery { --page-bg: url("../images/wp-temple-dawn.jpg"); }
body.page-shop { --page-bg: url("../images/wp-treasure-vault.jpg"); }
body.page-news { --page-bg: url("../images/wp-beach-moon.jpg"); }
body.page-join { --page-bg: url("../images/wp-lab-hunu.jpg"); }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--jade-2); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { color: var(--gold-2); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--jade);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--jade); color: #021912;
  padding: 0.75rem 1rem; z-index: 1000; font-weight: 700;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Header — glass over the mountain */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(5, 13, 11, 0.94), rgba(5, 13, 11, 0.82));
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(30, 70, 58, 0.9);
  box-shadow: 0 8px 32px rgba(0,0,0,.35), inset 0 1px 0 rgba(72, 212, 150, .08);
}
.nav {
  max-width: var(--max); margin: 0 auto;
  padding: 0.85rem var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: 0.04em;
}
.brand:hover { color: var(--jade-2); }
/* Simple brand dot — rich jewel gradient only (no gem photos) */
.brand-mark {
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  flex-shrink: 0;
  background: radial-gradient(circle at 35% 30%, var(--jade-2), var(--jade) 45%, var(--jade-deep));
  box-shadow:
    0 0 0 2px rgba(var(--gem-rgb), .35),
    0 0 22px rgba(var(--gem-rgb), .3);
}
.brand:hover .brand-mark {
  box-shadow:
    0 0 0 2px rgba(var(--gem-rgb), .5),
    0 0 28px rgba(var(--gem-rgb), .4);
  filter: brightness(1.06);
}
.brand-text { font-size: 1.15rem; line-height: 1.15; }
.brand-text small {
  display: block; font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase;
}
.nav-links {
  display: flex; flex-wrap: wrap; gap: 0.35rem 1rem;
  list-style: none; align-items: center;
}
.nav-links a {
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.05rem;
  padding: 0.35rem 0.15rem; border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--jade-2); border-bottom-color: var(--jade);
}
.nav-cta {
  background:
    linear-gradient(160deg, rgba(72, 212, 150, .35) 0%, transparent 42%),
    linear-gradient(135deg, var(--jade-glow), var(--jade-dim));
  color: #021912 !important; border: none !important;
  padding: 0.55rem 1rem !important; border-radius: 999px !important;
  font-weight: 800 !important;
  box-shadow:
    0 0 22px rgba(var(--gem-rgb), .35),
    inset 0 1px 0 rgba(255,255,255,.28),
    inset 0 -3px 8px rgba(2, 25, 18, .35);
}
.nav-cta:hover { filter: brightness(1.08); color: #010c08 !important; }

/* Layout */
main { min-height: 60vh; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: 3.5rem 0; }
.section-tight { padding: 2.25rem 0; }

/* Glass panels cut from the mountain — faceted edge + depth */
.panel {
  position: relative;
  background:
    linear-gradient(145deg, rgba(16, 36, 30, 0.55) 0%, rgba(5, 13, 11, 0.88) 48%, rgba(8, 22, 18, 0.9) 100%);
  border: 1px solid rgba(30, 70, 58, 0.95);
  border-radius: calc(var(--radius) + 4px);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(72, 212, 150, .12),
    inset 0 -20px 40px rgba(2, 16, 12, .35);
  backdrop-filter: blur(12px) saturate(1.15);
  padding: clamp(1.25rem, 3vw, 2rem);
  transform: translateZ(0);
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(125deg, rgba(72, 212, 150, .08) 0%, transparent 28%, transparent 72%, rgba(12, 143, 92, .05) 100%);
  mix-blend-mode: screen;
  opacity: .85;
}
.panel-soft {
  position: relative;
  background:
    linear-gradient(165deg, rgba(22, 53, 44, 0.72), rgba(10, 24, 20, 0.82));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  padding: 1.25rem 1.4rem;
  box-shadow:
    0 10px 28px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(72, 212, 150, .1);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.panel-soft:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(var(--gem-rgb), .45);
  box-shadow:
    0 16px 36px rgba(0,0,0,.38),
    0 0 28px rgba(var(--gem-rgb), .12),
    inset 0 1px 0 rgba(72, 212, 150, .16);
}

.eyebrow {
  color: var(--gold); font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; font-size: 0.95rem; margin-bottom: 0.75rem;
}
h1, h2, h3, .display {
  font-family: var(--display); font-weight: 700; line-height: 1.15;
  letter-spacing: 0.01em;
}
h1 {
  font-size: var(--h1); margin-bottom: 1rem;
  text-shadow:
    0 4px 28px rgba(0,0,0,.6),
    0 0 40px rgba(var(--gem-rgb), .12);
}
h2 { font-size: var(--h2); margin-bottom: 1rem; }
h3 { font-size: var(--h3); margin-bottom: 0.6rem; }
.lead { font-size: var(--lead); color: var(--muted); max-width: 48rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Hero — movie poster energy inside the world */
.hero {
  position: relative; min-height: min(90vh, 54rem);
  display: grid; align-items: end;
  overflow: hidden;
  background: #02120e;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center top;
  filter: saturate(1.12) contrast(1.08);
  transform: scale(1.03);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 30% 70%, rgba(var(--gem-rgb), .14), transparent 55%),
    linear-gradient(180deg, rgba(2,18,14,.18) 0%, rgba(2,18,14,.5) 42%, rgba(2,14,12,.97) 100%),
    linear-gradient(90deg, rgba(2,18,14,.82) 0%, rgba(2,18,14,.18) 55%, rgba(2,18,14,.58) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: var(--max); margin: 0 auto;
  padding: 5rem var(--pad) 3.5rem;
}
.hero h1 {
  max-width: 14ch;
  text-shadow: 0 6px 40px rgba(0,0,0,.75), 0 0 48px rgba(var(--gem-rgb), .18);
}
.hero .tagline {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--jade-2); font-weight: 700; margin: 0.5rem 0 1.25rem;
  max-width: 30rem;
  text-shadow: 0 2px 18px rgba(0,0,0,.6), 0 0 24px rgba(var(--gem-rgb), .25);
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.75rem;
}

/* 3D carved gem buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; min-height: 3.15rem; padding: 0.8rem 1.4rem;
  border-radius: 999px; font-weight: 800; font-size: 1.08rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .18s ease, filter .15s ease, box-shadow .18s ease;
  transform-style: preserve-3d;
}
.btn:hover { transform: translateY(-3px) scale(1.02); filter: brightness(1.05); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn-primary {
  color: #021912;
  border-color: rgba(72, 212, 150, .25);
  background:
    linear-gradient(165deg, rgba(255,255,255,.28) 0%, transparent 38%),
    linear-gradient(180deg, var(--jade-2) 0%, var(--jade) 48%, var(--jade-dim) 100%);
  box-shadow:
    0 10px 28px rgba(var(--gem-rgb), .38),
    0 2px 0 rgba(2, 25, 18, .45),
    inset 0 1px 0 rgba(255,255,255,.35),
    inset 0 -4px 10px rgba(2, 40, 28, .4);
}
.btn-primary:hover {
  box-shadow:
    0 14px 36px rgba(var(--gem-rgb), .48),
    0 2px 0 rgba(2, 25, 18, .4),
    inset 0 1px 0 rgba(255,255,255,.4),
    inset 0 -4px 10px rgba(2, 40, 28, .35);
}
.btn-secondary {
  background: rgba(2, 18, 14, .5); color: var(--text);
  border-color: rgba(243, 247, 245, .4);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 20px rgba(0,0,0,.25);
}
.btn-secondary:hover {
  border-color: var(--jade-2); color: var(--jade-2);
  box-shadow: 0 0 24px rgba(var(--gem-rgb), .2), inset 0 1px 0 rgba(72, 212, 150, .12);
}
.btn-gold {
  color: #2a1c05;
  background:
    linear-gradient(165deg, rgba(255,255,255,.35) 0%, transparent 40%),
    linear-gradient(180deg, var(--gold-2) 0%, var(--gold) 55%, #b8862a 100%);
  box-shadow:
    0 10px 28px rgba(232, 184, 74, .28),
    inset 0 1px 0 rgba(255,255,255,.4),
    inset 0 -3px 8px rgba(80, 50, 10, .35);
}

/* Cards / grids — floating stone tablets */
.grid-2 {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}
.grid-3 {
  display: grid; gap: 1.35rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.grid-4 {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.card {
  position: relative;
  background:
    linear-gradient(165deg, rgba(22, 53, 44, .94) 0%, rgba(12, 32, 26, .96) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(72, 212, 150, .1);
  backdrop-filter: blur(8px);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  transform-style: preserve-3d;
}
.card-link:hover {
  transform: translateY(-6px) rotateX(2deg);
  border-color: rgba(var(--gem-rgb), .5);
  box-shadow:
    0 22px 48px rgba(0,0,0,.5),
    0 0 32px rgba(var(--gem-rgb), .18),
    inset 0 1px 0 rgba(72, 212, 150, .16);
}
.card-body { padding: 1.35rem 1.4rem 1.55rem; }
.card h3 { color: var(--text); }
.card p { color: var(--muted); }
.card-link {
  display: block; color: inherit; text-decoration: none; height: 100%;
}
.card-link:hover .card-title,
.card-link:hover h3 { color: var(--jade-2); }
.card-media {
  aspect-ratio: 4/5; background: #061510;
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden; border-bottom: 1px solid var(--line);
  position: relative;
}
.card-media::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(2, 16, 12, .45) 100%);
  box-shadow: inset 0 0 40px rgba(var(--gem-rgb), .08);
}
.card-media.wide { aspect-ratio: 16/10; }
.card-media.square { aspect-ratio: 1/1; }
.card-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  background: radial-gradient(ellipse at 50% 80%, #144a38 0%, #061510 70%);
  transition: transform .4s ease, filter .4s ease;
}
.card-link:hover .card-media img {
  transform: scale(1.05) translateZ(12px);
  filter: saturate(1.08) contrast(1.04);
}
.card-media.contain img {
  object-fit: contain; object-position: center bottom;
}
.pill {
  display: inline-block; font-size: 0.85rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.4rem;
}
.badge {
  display: inline-block; padding: 0.28rem 0.7rem; border-radius: 999px;
  background: rgba(var(--gem-rgb), .16); color: var(--jade-2);
  border: 1px solid rgba(var(--gem-rgb), .4);
  font-size: 0.9rem; font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(72, 212, 150, .15), 0 0 16px rgba(var(--gem-rgb), .12);
}

/* Split */
.split {
  display: grid; gap: 2rem; align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}
.frame {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-gem);
  background: #061510;
  position: relative;
  transform: perspective(900px) rotateY(-2deg);
  transition: transform .25s ease;
}
.frame:hover { transform: perspective(900px) rotateY(0deg) scale(1.01); }
.frame img { width: 100%; height: auto; }

/* Story / prose */
.prose { max-width: 48rem; }
.prose p + p { margin-top: 1rem; }
.prose ul, .prose ol { margin: 1rem 0 1rem 1.4rem; color: var(--muted); }
.prose li + li { margin-top: 0.45rem; }
.quote {
  border-left: 4px solid var(--jade);
  padding: 0.5rem 0 0.5rem 1.2rem;
  margin: 1.5rem 0;
  color: var(--gold-2);
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1.4;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
  box-shadow: inset 4px 0 12px -6px rgba(var(--gem-rgb), .35);
}

/* Shop */
.price {
  font-weight: 800; color: var(--jade-2); font-size: 1.2rem; margin-top: 0.6rem;
}
.sold-note {
  color: var(--gold); font-weight: 700; font-size: 0.95rem; margin-top: 0.45rem;
}
.shop-note {
  background: rgba(232, 184, 74, .08);
  border: 1px solid rgba(232, 184, 74, .28);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* Forms — carved stone inputs */
.form {
  display: grid; gap: 1rem; max-width: 36rem;
}
label { display: grid; gap: 0.4rem; font-weight: 700; }
input, textarea, select {
  font: inherit; color: var(--text);
  background: rgba(6, 21, 16, .94); border: 1px solid var(--line);
  border-radius: 12px; padding: 0.85rem 1rem; width: 100%;
  box-shadow: inset 0 2px 8px rgba(0,0,0,.35), inset 0 1px 0 rgba(72, 212, 150, .06);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus, select:focus {
  border-color: rgba(var(--gem-rgb), .65);
  box-shadow:
    inset 0 2px 8px rgba(0,0,0,.35),
    0 0 0 3px rgba(var(--gem-rgb), .2),
    0 0 24px rgba(var(--gem-rgb), .15);
}
textarea { min-height: 8rem; resize: vertical; }
.hp { position: absolute; left: -10000px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.form-msg {
  padding: 1rem 1.15rem; border-radius: 12px; margin-bottom: 1rem; font-weight: 700;
}
.form-msg.ok { background: rgba(126, 207, 120, .12); border: 1px solid rgba(126, 207, 120, .4); color: var(--ok); }
.form-msg.err { background: rgba(232, 138, 122, .12); border: 1px solid rgba(232, 138, 122, .4); color: var(--danger); }

/* Gallery */
.gallery {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.gallery a, .gallery figure {
  display: block; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: rgba(6, 21, 16, .92);
  margin: 0;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.gallery a:hover, .gallery figure:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-gem);
  border-color: rgba(var(--gem-rgb), .4);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.gallery .tall img { aspect-ratio: 3/4; object-fit: contain; background: #061510; }
.gallery figcaption {
  padding: 0.75rem 1rem 1rem; color: var(--muted); font-size: 1rem; font-weight: 600;
}

/* Timeline / news */
.timeline { display: grid; gap: 1rem; }
.news-item {
  display: grid; gap: 0.35rem;
  padding: 1.2rem 1.3rem;
  border-left: 4px solid var(--jade);
  background: linear-gradient(90deg, rgba(16, 36, 30, .95), rgba(12, 28, 24, .88));
  border-radius: 0 var(--radius) var(--radius) 0;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0,0,0,.25), inset 0 1px 0 rgba(72, 212, 150, .08);
}
.news-item time { color: var(--gold); font-weight: 800; font-size: 0.95rem; }

/* Footer */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(3, 14, 11, 0.88), rgba(2, 10, 8, 0.96));
  padding: 2.5rem 0 2rem;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(72, 212, 150, .06);
}
.footer-grid {
  display: grid; gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  margin-bottom: 2rem;
}
.footer-grid h3 {
  font-family: var(--font); font-size: 1rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.75rem;
}
.footer-grid ul { list-style: none; }
.footer-grid li + li { margin-top: 0.45rem; }
.footer-grid a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer-grid a:hover { color: var(--jade-2); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  color: var(--muted);
  font-size: 1rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

/* Utility */
.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.25rem; }
.mt-3 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1.25rem; }
.kicker-row {
  display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center;
  margin-bottom: 1rem;
}
.hr {
  border: 0; border-top: 1px solid var(--line); margin: 2rem 0;
}
.stat-row {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  margin-top: 2rem;
}
.stat {
  background:
    linear-gradient(160deg, rgba(var(--gem-rgb), .14), rgba(3, 50, 36, .2));
  border: 1px solid rgba(var(--gem-rgb), .28);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: inset 0 1px 0 rgba(72, 212, 150, .12), 0 8px 20px rgba(0,0,0,.2);
}
.stat strong {
  display: block; font-size: 1.6rem; color: var(--jade-2);
  font-family: var(--display);
  text-shadow: 0 0 20px rgba(var(--gem-rgb), .35);
}
.stat span { color: var(--muted); font-weight: 600; }

.page-hero {
  padding: 4rem 0 2rem;
}
.page-hero h1 { max-width: 18ch; }

/* Soft gem pulse on primary CTAs — world is alive */
@keyframes gem-breathe {
  0%, 100% { box-shadow: 0 10px 28px rgba(var(--gem-rgb), .34), inset 0 1px 0 rgba(255,255,255,.32), inset 0 -4px 10px rgba(2, 40, 28, .38); }
  50% { box-shadow: 0 12px 36px rgba(var(--gem-rgb), .48), inset 0 1px 0 rgba(255,255,255,.38), inset 0 -4px 10px rgba(2, 40, 28, .32); }
}
.hero-actions .btn-primary {
  animation: gem-breathe 4.5s ease-in-out infinite;
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .panel-soft, .frame, .gallery a, .gallery figure, .card-media img {
    transition: none;
  }
  .hero-actions .btn-primary { animation: none; }
  .card-link:hover, .panel-soft:hover, .frame:hover {
    transform: none;
  }
}

@media (max-width: 720px) {
  .nav-links { width: 100%; gap: 0.5rem 0.85rem; }
  .hero { min-height: 78vh; }
  .hero-content { padding-top: 4rem; }
  .frame { transform: none; }
  .frame:hover { transform: none; }
  .card-link:hover { transform: translateY(-4px); }
}
