/* MUNEWERA. Fonts: Cinzel and Cormorant Garamond, SIL Open Font License (see /fonts/OFL-*.txt). */
@font-face { font-family: "Cinzel"; src: url("/fonts/cinzel-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("/fonts/cinzel-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("/fonts/cinzel-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #04070d;
  --navy: #0a1426;
  --navy-2: #0f1d36;
  --line: rgba(201, 164, 92, .38);
  --gold: #c9a45c;
  --gold-hi: #f0d89c;
  --silver: #eef0f3;
  --text: #cfd5e0;
  --muted: #9aa4b6;
  --blue: #4aa8ff;
  --blue-hi: #9fd6ff;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --serif: "Cormorant Garamond", Garamond, Georgia, serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in: cubic-bezier(.55, 0, 1, .45);
  --gutter: clamp(16px, 4.5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 1.1875rem/1.6 var(--serif);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; color: var(--silver); margin: 0; }
p { margin: 0; }
.gold { color: var(--gold); }

:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--navy-2); color: var(--gold-hi); padding: 10px 16px; font-family: var(--display); }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------ top bar */
.topbar {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  padding: 18px var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.brand-mark { width: 22px; height: 22px; filter: drop-shadow(0 0 6px rgba(108, 195, 255, .35)); }
.brand-word { font-family: var(--display); font-weight: 600; letter-spacing: .38em; font-size: .82rem; color: var(--silver); }
.topbar-center { display: flex; align-items: center; gap: 18px; min-width: 0; }
.rule { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line) 30%, var(--line)); position: relative; }
.rule-r { background: linear-gradient(90deg, var(--line), var(--line) 70%, transparent); }
.rule-l::after, .rule-r::before { content: ""; position: absolute; top: -3px; width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); background: var(--bg); }
.rule-l::after { right: -2px; } .rule-r::before { left: -2px; }
.topnav { display: flex; gap: 28px; }
.topnav a { font-family: var(--display); font-size: .82rem; letter-spacing: .42em; text-transform: uppercase; text-decoration: none; color: var(--silver); padding: 12px 0; transition: color .2s var(--ease-out); }
.topnav a:hover, .topnav a[aria-current="page"] { color: var(--gold-hi); }
.topbar[data-home="true"] .topnav-extra { display: none; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 22px;
  font-family: var(--display); font-weight: 600; font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; text-decoration: none;
  color: var(--silver); border: 1px solid var(--gold); border-radius: 3px;
  box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 4px rgba(201, 164, 92, .45);
  background: rgba(4, 7, 13, .55);
  transition: box-shadow .25s var(--ease-out), color .25s var(--ease-out), background-color .25s var(--ease-out);
}
.btn-outline svg { width: 12px; height: 12px; }
.btn-outline:hover { color: var(--gold-hi); background: rgba(15, 29, 54, .8); box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 4px var(--gold), 0 0 22px rgba(201, 164, 92, .25); }

/* ------------------------------------------------------------ hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(680px, 92svh, 1000px);
  display: flex; align-items: center;
  padding: 96px var(--gutter) 64px;
  background:
    radial-gradient(60% 70% at 18% 40%, rgba(22, 44, 84, .55), transparent 70%),
    linear-gradient(180deg, #060b16, var(--bg));
}
.hero-art { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-art-in {
  position: absolute; top: -2%; right: 0; height: 106%; min-width: 100%;
  aspect-ratio: 2752 / 1536;
  will-change: transform;
}
.hero-art-in img { width: 100%; height: 100%; object-fit: cover; }
/* fade the art into the page: left edge, top bar, bottom band */
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(4, 7, 13, .8) 22%, rgba(4, 7, 13, .35) 40%, rgba(4, 7, 13, 0) 56%),
    linear-gradient(180deg, rgba(4, 7, 13, .95) 0, rgba(4, 7, 13, .6) 70px, rgba(4, 7, 13, 0) 170px),
    linear-gradient(0deg, var(--bg) 0, rgba(4, 7, 13, 0) 160px);
}
.fx-beam, .fx-sword { position: absolute; pointer-events: none; mix-blend-mode: screen; opacity: .0; }
.fx-beam {
  left: 50.5%; width: 5%; top: 0; height: 66%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(140, 205, 255, .55), transparent 70%);
  filter: blur(6px);
  animation: beam 7s ease-in-out 1.2s infinite;
}
.fx-sword {
  left: 80%; width: 12%; top: 52%; height: 40%;
  background: radial-gradient(40% 50% at 50% 50%, rgba(74, 168, 255, .55), transparent 70%);
  filter: blur(10px);
  animation: sword 5.5s ease-in-out 1.6s infinite;
}
@keyframes beam { 0%, 100% { opacity: .15; transform: scaleY(.96); } 50% { opacity: .75; transform: scaleY(1.02); } }
@keyframes sword { 0%, 100% { opacity: .2; } 50% { opacity: .8; } }
.fx-fog { position: absolute; left: -20%; width: 140%; height: 40%; pointer-events: none; opacity: .55;
  background: radial-gradient(40% 50% at 30% 50%, rgba(150, 180, 220, .22), transparent 70%), radial-gradient(35% 45% at 75% 55%, rgba(120, 160, 210, .18), transparent 70%);
  filter: blur(20px); }
.fx-fog-a { top: 52%; animation: fog 38s ease-in-out infinite alternate; }
.fx-fog-b { top: 66%; opacity: .4; animation: fog 52s ease-in-out -20s infinite alternate-reverse; }
@keyframes fog { from { transform: translate3d(-6%, 0, 0); } to { transform: translate3d(6%, -2%, 0); } }
.fx-dust { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .9s var(--ease-out); }
.fx-dust.on { opacity: 1; }

.hero-copy { width: min(640px, 100%); display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-logo { width: min(540px, 100%); height: auto; margin-bottom: 18px; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .7)) drop-shadow(0 0 30px rgba(74, 168, 255, .18)); }
.eyebrow, .soon {
  display: flex; align-items: center; justify-content: center; gap: 18px; width: 100%;
  font-family: var(--display); font-weight: 600; text-transform: uppercase; color: var(--silver);
}
.eyebrow { font-size: .82rem; letter-spacing: .55em; margin-bottom: 18px; }
.eyebrow .line, .soon .line { flex: 1; max-width: 120px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); position: relative; }
.eyebrow .line:last-child, .soon .line:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.eyebrow .line:first-child::before, .eyebrow .line:last-child::after { content: ""; position: absolute; top: -2px; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }
.eyebrow .line:first-child::before { left: 0; } .eyebrow .line:last-child::after { right: 0; }
h1, .hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 5.6rem); line-height: .98; letter-spacing: -.005em; text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #e9e4d6 55%, #b9b09a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .75));
  text-wrap: balance;
}
.hero h1 { max-width: 11ch; }
.soon { margin: 22px 0 14px; font-size: 1rem; letter-spacing: .5em; }
.soon .gem { width: 16px; height: 16px; flex: none; filter: drop-shadow(0 0 8px rgba(108, 195, 255, .9)); }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.4rem); color: var(--text); margin-bottom: 26px; }
.caption { margin-top: 14px; font-size: 1rem; letter-spacing: .08em; color: var(--muted); }

/* ornate button: pointed ends via clip-path, gold rim + blue core */
.btn-ornate {
  --cut: 26px;
  position: relative; display: inline-block; text-decoration: none; padding: 2px; min-height: 64px;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 45%, #7d5f28);
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% 50%, calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 50%);
  transition: transform .2s var(--ease-out), filter .25s var(--ease-out);
}
.btn-ornate-in {
  display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 60px; padding: 0 calc(var(--cut) + 42px);
  font-family: var(--display); font-weight: 600; font-size: clamp(1rem, 1.6vw, 1.3rem); letter-spacing: .2em; text-transform: uppercase; color: var(--silver);
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(74, 168, 255, .45), transparent 70%),
    linear-gradient(180deg, #123a7a, #0a1d44 60%, #071330);
  clip-path: polygon(calc(var(--cut) - 1px) 0, calc(100% - var(--cut) + 1px) 0, 100% 50%, calc(100% - var(--cut) + 1px) 100%, calc(var(--cut) - 1px) 100%, 0 50%);
  box-shadow: inset 0 0 0 1px rgba(159, 214, 255, .25);
  position: relative;
}
.btn-ornate-in::before, .btn-ornate-in::after {
  content: ""; position: absolute; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; transform: rotate(45deg);
  background: var(--blue-hi); box-shadow: 0 0 10px var(--blue);
}
.btn-ornate-in::before { left: calc(var(--cut) - 6px); } .btn-ornate-in::after { right: calc(var(--cut) - 6px); }
.btn-ornate .dc { width: 30px; height: 30px; color: #fff; }
.btn-ornate:hover { filter: brightness(1.15) drop-shadow(0 0 18px rgba(74, 168, 255, .45)); }
.btn-ornate:active { transform: scale(.98); }
.btn-ornate:focus-visible { outline: none; filter: brightness(1.15) drop-shadow(0 0 0 var(--gold-hi)) drop-shadow(0 0 10px rgba(240, 216, 156, .8)); }

/* ------------------------------------------------------------ band */
.band { position: relative; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(6, 10, 20, .7), rgba(4, 7, 13, .92)), url(/img/texture-1280.webp) center / cover; }
.band-rule { position: absolute; left: 50%; top: 0; width: 28px; height: 28px; transform: translate(-50%, -50%); }
.band-rule svg { width: 100%; height: 100%; }
.band-in { display: grid; grid-template-columns: repeat(3, 1fr); padding: 30px var(--gutter) 34px; }
.card { padding: 0 clamp(16px, 2.4vw, 40px); }
.card + .card { border-left: 1px solid rgba(201, 164, 92, .25); }
.card:first-child { padding-left: 0; } .card:last-child { padding-right: 0; }
.card-k { font-size: .82rem; font-weight: 600; letter-spacing: .38em; text-transform: uppercase; color: var(--silver); margin-bottom: 14px; background: none; filter: none; line-height: 1.4; }
.card-k .num, .card-k .slash { color: var(--gold); }
.card-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: center; }
.frame { display: block; border: 1px solid var(--gold); padding: 3px; background: #000; position: relative; overflow: hidden; }
.frame img { width: 100%; height: auto; aspect-ratio: 2.8 / 1; object-fit: cover; transition: transform .35s var(--ease-out); }
.card:hover .frame img { transform: scale(1.04); }
.card-text p { font-size: 1.02rem; line-height: 1.45; color: var(--text); }
.more {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; min-height: 44px; white-space: nowrap;
  font-family: var(--display); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; color: var(--gold);
  transition: color .2s var(--ease-out);
}
.more::before { content: ""; width: 7px; height: 7px; border: 1px solid currentColor; transform: rotate(45deg); flex: none; }
.more::after { content: ""; width: 40px; height: 1px; background: linear-gradient(90deg, currentColor, transparent); transition: width .25s var(--ease-out); }
.more:hover { color: var(--gold-hi); } .more:hover::after { width: 56px; }

/* ------------------------------------------------------------ footer */
.footer { border-top: 1px solid rgba(201, 164, 92, .3); background: linear-gradient(rgba(4, 7, 13, .94), rgba(4, 7, 13, .94)), url(/img/texture-1280.webp) center / cover; }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding: 14px var(--gutter) 18px; }
.footnav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footnav a { font-family: var(--display); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; transition: color .2s var(--ease-out); }
.footnav a:hover { color: var(--gold-hi); }
.copy { font-size: .9rem; color: var(--muted); }
.awaits { margin-left: auto; display: flex; align-items: center; gap: 14px; font-family: var(--display); font-size: .7rem; letter-spacing: .4em; text-transform: uppercase; color: var(--gold); }
.awaits svg { width: 22px; height: 22px; }

/* ------------------------------------------------------------ inner pages */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: 190px var(--gutter) 110px; text-align: center; }
.page-hero-art { position: absolute; inset: 0; z-index: -1; }
.page-hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; opacity: .75; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4, 7, 13, .8), rgba(4, 7, 13, .35) 45%, var(--bg)); }
.page-hero-in { max-width: 760px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); }
.page-hero .lead { margin: 20px auto 0; max-width: 40ch; }

.prose { max-width: 760px; margin: 0 auto; padding: 24px var(--gutter) 40px; }
.prose.wide { max-width: 1120px; }
.prose section + section { margin-top: 44px; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin-bottom: 14px; color: var(--gold-hi); font-weight: 600; }
.prose p + p { margin-top: 14px; }
.marks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.marks li { position: relative; padding-left: 28px; }
.marks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; background: var(--blue); transform: rotate(45deg); box-shadow: 0 0 8px var(--blue); }
.marks strong { color: var(--silver); font-weight: 600; }
.note { margin-top: 32px; color: var(--muted); font-style: italic; }

.classes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1px; background: rgba(201, 164, 92, .22); border: 1px solid rgba(201, 164, 92, .22); }
.classes li { background: linear-gradient(180deg, #0a1324, #060b16); padding: 0 0 28px; overflow: hidden; }
.classes picture { display: block; overflow: hidden; margin-bottom: 20px; border-bottom: 1px solid rgba(201, 164, 92, .35); }
.classes img { width: 100%; height: auto; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 50% 15%; transition: transform .35s var(--ease-out); }
.classes li:hover img { transform: scale(1.04); }
.classes h2, .classes p { padding: 0 24px; }
.classes h2 { font-size: 1.15rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; color: var(--silver); }
.classes p { color: var(--text); font-size: 1.05rem; line-height: 1.5; }

.faq { border-top: 1px solid rgba(201, 164, 92, .25); }
.faq details { border-bottom: 1px solid rgba(201, 164, 92, .25); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 64px; padding: 14px 0; font-family: var(--display); font-weight: 600; font-size: clamp(1rem, 1.6vw, 1.15rem); letter-spacing: .04em; color: var(--silver);
  transition: color .2s var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq summary:hover { color: var(--gold-hi); }
.faq-a { padding: 0 0 22px; color: var(--text); max-width: 62ch; }

.cta { text-align: center; padding: 56px var(--gutter) 72px; border-top: 1px solid rgba(201, 164, 92, .18); background: radial-gradient(50% 80% at 50% 100%, rgba(22, 60, 120, .35), transparent 70%); display: flex; flex-direction: column; align-items: center; }
.cta-mark { width: 30px; height: 30px; margin-bottom: 18px; }
.cta h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); margin-bottom: 10px; }
.cta p { color: var(--muted); margin-bottom: 28px; }

.notfound { min-height: 80svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 140px var(--gutter) 80px; gap: 0; }
.notfound .eyebrow { max-width: 420px; }
.notfound .lead { margin: 18px 0 30px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translateX(-50%);
  max-width: calc(100% - 32px); padding: 14px 20px; border: 1px solid var(--gold); background: rgba(10, 20, 38, .96); color: var(--silver);
  font-size: 1.05rem; box-shadow: 0 12px 40px rgba(0, 0, 0, .6);
  animation: toast-in .25s var(--ease-out);
}
.toast.out { animation: toast-out .18s var(--ease-in) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }
@keyframes toast-out { to { opacity: 0; transform: translate(-50%, 6px); } }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .card-body { grid-template-columns: 1fr; gap: 12px; }
  .hero-copy { width: min(560px, 100%); }
  .hero-art::after {
    background:
      linear-gradient(90deg, var(--bg) 0%, rgba(4, 7, 13, .9) 30%, rgba(4, 7, 13, .45) 52%, rgba(4, 7, 13, 0) 70%),
      linear-gradient(180deg, rgba(4, 7, 13, .9) 0, rgba(4, 7, 13, 0) 120px),
      linear-gradient(0deg, var(--bg) 0, rgba(4, 7, 13, 0) 160px);
  }
}
@media (max-width: 900px) {
  .rule, .topnav-extra { display: none; }
  .topbar-center { justify-content: center; }
}
@media (max-width: 760px) {
  .topbar { grid-template-columns: 1fr auto; padding-top: 12px; padding-bottom: 12px; }
  .topbar-center { display: none; }
  .brand-word { letter-spacing: .28em; }
  .btn-outline { padding: 0 14px; letter-spacing: .2em; }
  .hero { flex-direction: column; align-items: stretch; min-height: 0; padding: 78px 16px 0; background: var(--bg); }
  .hero-copy { width: 100%; position: relative; z-index: 2; order: 0; }
  .hero-art { order: 1; }
  .hero-art { position: relative; inset: auto; z-index: 0; margin: 8px -16px 0; height: auto; }
  .hero-art-in { position: relative; top: 0; right: 0; height: auto; width: 100%; aspect-ratio: 1200 / 1500; }
  .hero-art-in img { object-position: 50% 30%; }
  .hero-art::after { background: linear-gradient(180deg, var(--bg) 0, rgba(4, 7, 13, 0) 36%, rgba(4, 7, 13, 0) 80%, var(--bg) 100%); }
  .fx-beam { left: 45%; width: 10%; top: 0; height: 45%; }
  .fx-sword { left: 40%; width: 20%; top: 55%; height: 40%; }
  .eyebrow { letter-spacing: .38em; font-size: .72rem; gap: 12px; }
  .caption { letter-spacing: .02em; font-size: .95rem; }
  .soon { letter-spacing: .38em; font-size: .9rem; gap: 12px; }
  .btn-ornate { --cut: 20px; width: 100%; max-width: 360px; }
  .btn-ornate-in { padding: 0 calc(var(--cut) + 12px); gap: 12px; letter-spacing: .14em; }
  .btn-ornate .dc { width: 24px; height: 24px; }
  .band-in { grid-template-columns: 1fr; padding: 32px 16px 24px; }
  .card { padding: 0 0 26px; }
  .card + .card { border-left: 0; border-top: 1px solid rgba(201, 164, 92, .25); padding-top: 26px; }
  .card-body { grid-template-columns: 1fr; }
  .footer-in { flex-direction: column; align-items: flex-start; }
  .awaits { margin-left: 0; }
  .page-hero { padding-top: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .fx-beam, .fx-sword { opacity: .4; }
}

/* inner pages: stone texture under the reading area */
body.sub main { background: linear-gradient(180deg, var(--bg) 0, rgba(4, 7, 13, .9) 30%, rgba(4, 7, 13, .9)), url(/img/texture-1280.webp) center top / 1280px auto repeat; }

/* hero loop video: fades in over the still once it is actually playing */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s var(--ease-out); }
.hero-video.on { opacity: 1; }
@media (max-width: 760px) { .hero-video { display: none; } }

/* sound toggle */
.sound {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; min-height: 44px; padding: 0 16px;
  font: 600 .7rem/1 var(--display); letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
  background: rgba(4, 7, 13, .5); border: 1px solid rgba(201, 164, 92, .35); border-radius: 22px; cursor: pointer;
  transition: color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.sound:hover, .sound[aria-pressed="true"] { color: var(--gold-hi); border-color: var(--gold); }
.sound-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.sound-bars i { width: 2px; height: 3px; background: currentColor; transform-origin: bottom; }
.sound[aria-pressed="true"] .sound-bars i { height: 12px; animation: eq 1.1s ease-in-out infinite alternate; }
.sound-bars i:nth-child(2) { animation-delay: -.3s !important; } .sound-bars i:nth-child(3) { animation-delay: -.6s !important; } .sound-bars i:nth-child(4) { animation-delay: -.9s !important; }
@keyframes eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }

/* ------------------------------------------------------------ the relic */
.relic { position: relative; overflow: hidden; isolation: isolate; padding: clamp(64px, 9vw, 130px) var(--gutter); background: radial-gradient(50% 60% at 30% 50%, rgba(30, 80, 170, .28), transparent 70%), var(--bg); border-top: 1px solid rgba(201, 164, 92, .18); }
.relic-rays { position: absolute; z-index: -1; left: 30%; top: 50%; width: 1400px; height: 1400px; margin: -700px 0 0 -700px; pointer-events: none; opacity: .5;
  background: repeating-conic-gradient(from 0deg, rgba(120, 180, 255, .09) 0deg 3deg, transparent 3deg 14deg);
  -webkit-mask: radial-gradient(closest-side, #000 10%, transparent 75%); mask: radial-gradient(closest-side, #000 10%, transparent 75%); }
.relic-in { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.relic-stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; justify-self: center; touch-action: pan-y; }
.relic-halo { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(74, 168, 255, .45), rgba(74, 168, 255, .08) 60%, transparent); filter: blur(20px); animation: halo 6s ease-in-out infinite; }
@keyframes halo { 0%, 100% { opacity: .6; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.04); } }
.relic-still { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .7)) drop-shadow(0 0 24px rgba(74, 168, 255, .35)); transition: opacity .35s var(--ease-out); }
.relic-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .35s var(--ease-out); }
.relic-stage.live canvas { opacity: 1; }
.relic-stage.live .relic-still { opacity: 0; }
.relic-copy h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.02; margin: 6px 0 20px; text-transform: uppercase;
  background: linear-gradient(180deg, #fff, #e9e4d6 55%, #b9b09a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.relic-copy .eyebrow { justify-content: flex-start; }
.relic-copy .eyebrow .line:first-child { display: none; }
.relic-copy p { font-size: 1.25rem; max-width: 34ch; }
.relic-hint { margin: 12px 0 28px; color: var(--muted); font-style: italic; font-size: 1.05rem !important; }
@media (max-width: 760px) {
  .relic-in { grid-template-columns: 1fr; text-align: center; }
  .relic-copy .eyebrow { justify-content: center; }
  .relic-copy .eyebrow .line:first-child { display: block; }
  .relic-copy p { margin-left: auto; margin-right: auto; }
  .relic-stage { max-width: 340px; }
  .relic-rays { left: 50%; top: 30%; }
}

/* ------------------------------------------------------------ scroll story */
/* reveal: only when JS has run and motion is allowed */
.motion [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0) scale(.985); transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); transition-delay: var(--d, 0ms); }
.motion [data-reveal].in { opacity: 1; transform: none; }
/* depth: rays and halo drift with the section as it crosses the viewport (scroll-driven, where supported) */
@supports (animation-timeline: view()) {
  .motion .relic-rays { animation: rays linear both; animation-timeline: view(); }
  .motion .relic-stage { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
  .motion .band-rule { animation: glint linear both; animation-timeline: view(); }
}
@keyframes rays { from { transform: rotate(-12deg) scale(.9); opacity: 0; } 40% { opacity: .55; } to { transform: rotate(14deg) scale(1.08); opacity: .2; } }
@keyframes rise { from { transform: translate3d(0, 60px, 0) scale(.92); opacity: .2; } to { transform: none; opacity: 1; } }
@keyframes glint { from { transform: translate(-50%, -50%) rotate(-45deg) scale(.6); } to { transform: translate(-50%, -50%) rotate(0deg) scale(1); } }
@media (hover: none) { .relic-hint { display: none; } }
