/* Oath Below site. Dark by design: the torch is the light source. */

@font-face { font-family: "Alegreya SC"; src: url("fonts/alegreya-sc-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Alegreya SC"; src: url("fonts/alegreya-sc-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("fonts/alegreya-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("fonts/alegreya-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("fonts/alegreya-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("fonts/alegreya-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0b0a0f;
  --bg-2: #121017;
  --panel: rgba(255, 236, 205, 0.035);
  --panel-2: rgba(255, 236, 205, 0.06);
  --line: rgba(255, 228, 190, 0.11);
  --line-2: rgba(255, 228, 190, 0.2);
  --ink: #f1e6d2;
  --ink-2: #c9bba3;
  --muted: #8f8474;
  --gold-1: #f6e6c4;
  --gold-2: #d9a35e;
  --ember: #ff9b3d;
  --ember-2: #ff6a1f;
  --ember-glow: rgba(255, 140, 50, 0.35);
  --ok: #9fd39a;
  --display: "Alegreya SC", "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Alegreya Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--gold-1); text-decoration-color: rgba(246, 230, 196, .35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ember); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(255, 155, 61, .35); }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type */
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: .01em; }
.gilt {
  background: linear-gradient(180deg, var(--gold-1) 15%, var(--gold-2) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  font: 500 .8rem/1 var(--display); letter-spacing: .28em; text-transform: uppercase;
  color: var(--ember); margin: 0 0 14px;
}
.lede { color: var(--ink-2); font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 60ch; }
h2.section-title { font-size: clamp(2rem, 4.6vw, 3.25rem); }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid, .nav--solid {
  background: rgba(11, 10, 15, .78);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav__in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 0 10px rgba(255, 120, 40, .45)); }
.brand span { font: 700 1.15rem/1 var(--display); letter-spacing: .14em; }
.nav__links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  color: var(--ink-2); text-decoration: none; font: 500 .82rem/1 var(--display); letter-spacing: .2em; text-transform: uppercase;
  padding: 10px 0; position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--ember); transform: scaleX(0); transition: transform .3s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--line);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before, .menu summary span::after {
  display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; content: "";
}
.menu summary span::before { position: absolute; top: -6px; }
.menu summary span::after { position: absolute; top: 6px; }
.menu[open] summary { background: var(--panel-2); }
.menu__panel {
  position: absolute; right: 0; top: 52px; min-width: 220px; padding: 8px;
  background: rgba(18, 16, 23, .97); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
.menu__panel a {
  display: block; padding: 12px 14px; border-radius: 8px; text-decoration: none; color: var(--ink);
  font: 500 .9rem/1 var(--display); letter-spacing: .16em; text-transform: uppercase;
}
.menu__panel a:hover { background: var(--panel-2); }
@media (max-width: 760px) { .nav__links { display: none; } .menu { display: block; } }

/* Buttons */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px; border-radius: 999px;
  font: 700 .86rem/1 var(--display); letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); border: 1px solid var(--line-2); background: rgba(11, 10, 15, .4);
  transition: transform .25s var(--ease), border-color .25s, background .25s, box-shadow .25s;
}
.btn:hover { border-color: rgba(255, 170, 90, .6); transform: translateY(-1px); }
.btn--ember {
  color: #1a0f05; border: 0;
  background: linear-gradient(180deg, #ffc277, var(--ember) 55%, #f07a24);
  box-shadow: 0 0 0 1px rgba(255, 190, 120, .4) inset, 0 10px 40px -10px var(--ember-glow);
}
.btn--ember:hover { box-shadow: 0 0 0 1px rgba(255, 210, 150, .6) inset, 0 14px 50px -8px rgba(255, 140, 50, .55); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn small { font: 500 .66rem/1.1 var(--body); letter-spacing: .06em; text-transform: none; display: block; opacity: .75; }
.btn .btn__stack { display: grid; text-align: left; gap: 3px; }

/* Hero */
.hero { --hx: 60%; --hy: 56%; position: relative; min-height: 100svh; display: grid; align-items: center; isolation: isolate; overflow: hidden; }
.hero__art { position: absolute; inset: 0 0 0 26%; z-index: -3; -webkit-mask-image: linear-gradient(90deg, transparent, #000 28%); mask-image: linear-gradient(90deg, transparent, #000 28%); }
.hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 44% 58%; }
.hero__dark {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  --lx: var(--hx); --ly: var(--hy); --lr: 1;
  background:
    radial-gradient(calc(300px * var(--lr)) calc(300px * var(--lr)) at var(--lx) var(--ly), rgba(11,10,15,0) 0%, rgba(11,10,15,.12) 50%, rgba(11,10,15,.6) 100%),
    radial-gradient(calc(1050px * var(--lr)) calc(800px * var(--lr)) at var(--lx) var(--ly), rgba(11,10,15,0) 0%, rgba(11,10,15,.4) 55%, rgba(11,10,15,.92) 100%);
}
.hero__fade { position: absolute; inset: auto 0 0; height: 30%; z-index: -1; background: linear-gradient(180deg, rgba(11,10,15,0), var(--bg)); }
#embers { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.fog {
  position: absolute; inset: -20% -10%; z-index: -1; pointer-events: none; opacity: .5; mix-blend-mode: screen;
  background:
    radial-gradient(40% 25% at 20% 70%, rgba(160, 150, 170, .07), transparent 70%),
    radial-gradient(35% 22% at 80% 80%, rgba(160, 150, 170, .06), transparent 70%),
    radial-gradient(50% 30% at 50% 95%, rgba(160, 150, 170, .08), transparent 70%);
  animation: drift 40s linear infinite alternate;
}
@keyframes drift { to { transform: translate3d(6%, -2%, 0) scale(1.08); } }
.hero__content { padding: 110px 0 80px; }
.hero__copy { max-width: 540px; }
.hero__logo { width: min(540px, 100%); margin: 0 0 0 -2%; filter: drop-shadow(0 6px 30px rgba(0,0,0,.8)); }
.hero__tag {
  margin: 14px 0 0; font: 700 clamp(.85rem, 1.4vw, 1.02rem)/1 var(--display); letter-spacing: .42em; text-transform: uppercase;
  color: var(--ember); text-shadow: 0 0 24px rgba(255, 120, 40, .45);
}
.hero__sub { margin: 20px 0 0; max-width: 44ch; color: var(--ink-2); font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; width: 1px; height: 54px;
  background: linear-gradient(180deg, transparent, var(--ember)); opacity: .6;
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .15; transform: scaleY(.6); transform-origin: top; } }
@media (max-width: 900px) {
  .hero { --hx: 50%; --hy: 34%; align-items: end; }
  .hero__art { inset: 0 0 auto 0; height: 66%; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
  .hero__art img { object-position: 44% 62%; }
  .hero__content { padding: 0 0 56px; text-align: center; }
  .hero__copy { margin-inline: auto; }
  .hero__logo { width: min(420px, 92%); margin: 0 auto; }
  .hero__sub { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__scroll { display: none; }
}

/* Sections */
.section { padding: clamp(72px, 12vw, 140px) 0; position: relative; }
.section--tight { padding-top: clamp(40px, 6vw, 72px); }
.section__head { max-width: 760px; margin-bottom: clamp(36px, 6vw, 60px); }
.section__head.center { margin-inline: auto; text-align: center; }
.section__head.center .lede { margin-inline: auto; }
.glow-line { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); border: 0; margin: 0; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar { padding: 28px 26px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); position: relative; overflow: hidden; }
.pillar::before {
  content: ""; position: absolute; width: 240px; height: 240px; right: -90px; top: -110px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 140, 50, .16), transparent 65%);
}
.pillar__num { font: 700 2.6rem/1 var(--display); color: transparent; -webkit-text-stroke: 1px rgba(255, 170, 90, .55); }
.pillar h3 { font-size: 1.45rem; margin: 18px 0 8px; }
.pillar p { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* Phones */
.showcase { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.phones { position: relative; height: clamp(440px, 52vw, 620px); }
.phone {
  position: absolute; width: clamp(170px, 19vw, 250px); aspect-ratio: 720 / 1560; border-radius: 30px; padding: 7px;
  background: linear-gradient(160deg, #2a2620, #0e0d11 40%, #1d1a16);
  box-shadow: 0 0 0 1px rgba(255, 228, 190, .14), 0 40px 80px -20px rgba(0, 0, 0, .9), 0 0 80px -30px var(--ember-glow);
  transition: transform .6s var(--ease);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; }
.phone figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.phone--a { left: 0; top: 40px; transform: rotate(-6deg); z-index: 1; }
.phone--b { left: 50%; top: 0; transform: translateX(-50%); z-index: 3; }
.phone--c { right: 0; top: 50px; transform: rotate(6deg); z-index: 2; }
.phones:hover .phone--a { transform: rotate(-8deg) translateX(-10px); }
.phones:hover .phone--c { transform: rotate(8deg) translateX(10px); }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.facts li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; color: var(--ink-2); }
.facts svg { width: 26px; height: 26px; color: var(--ember); margin-top: 2px; }
.facts strong { color: var(--ink); font-weight: 700; }
@media (max-width: 900px) {
  .showcase { grid-template-columns: 1fr; }
  .phones { order: -1; height: clamp(320px, 84vw, 500px); max-width: 560px; margin-inline: auto; width: 100%; }
  .phone { width: clamp(132px, 34vw, 210px); }
}

/* Classes */
.classes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.class-card {
  position: relative; padding: 26px 24px 24px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 236, 205, .045), rgba(255, 236, 205, .015));
  overflow: hidden; transition: border-color .3s, transform .3s var(--ease);
}
.class-card::after {
  content: ""; position: absolute; inset: auto -40% -60% -40%; height: 120%; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 100%, var(--tint, rgba(255, 140, 50, .2)), transparent 70%);
  opacity: .0; transition: opacity .4s;
}
.class-card:hover { border-color: rgba(255, 180, 110, .35); transform: translateY(-3px); }
.class-card:hover::after { opacity: 1; }
.class-card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(255, 155, 61, .08); border: 1px solid rgba(255, 170, 90, .22); color: var(--ember);
}
.class-card__icon svg { width: 28px; height: 28px; }
.class-card h3 { font-size: 1.5rem; margin: 18px 0 2px; }
.class-card .role { font: 500 .74rem/1.2 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.class-card p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.class-card .light { display: flex; gap: 8px; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.class-card .light i { width: 8px; height: 8px; border-radius: 50%; background: var(--tint-solid, var(--ember)); box-shadow: 0 0 12px var(--tint-solid, var(--ember)); flex: none; }
.class-card .new { position: absolute; top: 18px; right: 18px; font: 700 .64rem/1 var(--display); letter-spacing: .2em; color: #1a0f05; background: var(--ember); padding: 6px 8px; border-radius: 999px; }
@media (max-width: 960px) { .classes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .classes { grid-template-columns: 1fr; } }

/* Modes */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mode { border-radius: 18px; border: 1px solid var(--line); background: var(--panel); padding: 30px 28px; display: flex; flex-direction: column; }
.mode__tag { align-self: flex-start; font: 700 .68rem/1 var(--display); letter-spacing: .2em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); }
.mode__tag--off { color: var(--ok); border-color: rgba(159, 211, 154, .35); }
.mode__tag--on { color: var(--ember); border-color: rgba(255, 155, 61, .4); }
.mode h3 { font-size: 1.85rem; margin: 18px 0 10px; }
.mode p { color: var(--ink-2); margin: 0 0 16px; }
.mode ul { margin: auto 0 0; padding: 16px 0 0; list-style: none; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.mode li { display: flex; gap: 10px; align-items: baseline; color: var(--ink-2); font-size: .98rem; }
.mode li::before { content: ""; width: 5px; height: 5px; flex: none; border-radius: 50%; background: var(--ember); transform: translateY(-2px); }
.mode--feature { background: radial-gradient(120% 80% at 50% 0%, rgba(255, 130, 40, .12), transparent 60%), var(--panel); border-color: rgba(255, 170, 90, .28); }
@media (max-width: 960px) { .modes { grid-template-columns: 1fr; } }

/* Season band */
.band {
  position: relative; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255, 170, 90, .22);
  background: radial-gradient(60% 120% at 0% 50%, rgba(255, 120, 40, .16), transparent 60%), linear-gradient(180deg, #15121a, #0f0d13);
  padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center;
}
.band h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.band p { color: var(--ink-2); margin: 14px 0 0; max-width: 52ch; }
.band__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 820px) { .band { grid-template-columns: 1fr; } .band__actions { justify-content: flex-start; } }

.status {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 10px; border-radius: 999px;
  font: 700 .7rem/1 var(--display); letter-spacing: .2em; text-transform: uppercase;
  background: rgba(255, 155, 61, .1); border: 1px solid rgba(255, 155, 61, .35); color: var(--ember);
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; animation: flick 3s ease-in-out infinite; }
.status--live { color: var(--ok); background: rgba(159, 211, 154, .08); border-color: rgba(159, 211, 154, .35); }
@keyframes flick { 40% { opacity: .5; } 55% { opacity: 1; } 70% { opacity: .7; } }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative;
  font: 700 1.2rem/1.3 var(--display); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 1.5px solid var(--ember); border-bottom: 1.5px solid var(--ember); transform: rotate(45deg); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: -6px 0 22px; color: var(--ink-2); max-width: 66ch; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0 40px; margin-top: 40px; color: var(--muted); font-size: .95rem; }
.footer__in { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.footer__brand { display: flex; gap: 12px; align-items: center; }
.footer__brand img { width: 44px; height: 44px; }
.footer__brand b { display: block; font: 700 1rem/1.1 var(--display); letter-spacing: .14em; color: var(--ink); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; }
.footer nav a { color: var(--ink-2); text-decoration: none; }
.footer nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .footer__in { grid-template-columns: 1fr; text-align: left; } .footer nav { justify-content: flex-start; } }

/* Page header (inner pages) */
.page-head { padding: 140px 0 40px; position: relative; }
.page-head::before {
  content: ""; position: absolute; left: 50%; top: -220px; width: 900px; height: 600px; transform: translateX(-50%); z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 130, 40, .18), transparent);
}
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4rem); }

/* Legal pages */
.legal { max-width: 720px; margin: 0 auto; padding-bottom: 40px; }
.legal h2 { font-size: 1.5rem; margin: 40px 0 10px; color: var(--gold-1); }
.legal p, .legal li { color: var(--ink-2); }
.legal ul, .legal ol { padding-left: 1.2em; }
.legal li { margin: 6px 0; }
.legal strong { color: var(--ink); }
.legal .summary { border: 1px solid rgba(255, 170, 90, .25); background: rgba(255, 140, 50, .06); border-radius: var(--radius); padding: 20px 22px; color: var(--ink); }
.legal .updated { color: var(--muted); font-size: .95rem; }
.todo { background: rgba(255, 210, 90, .18); color: #ffe3a3; padding: 0 4px; border-radius: 4px; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding: 20px 22px 20px 68px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); margin: 0 !important; }
.steps li::before {
  content: counter(s); position: absolute; left: 20px; top: 18px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font: 700 1rem/1 var(--display); color: #1a0f05; background: var(--ember);
}
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cols > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: var(--panel); }
.cols h3 { font-size: 1.1rem; margin-bottom: 6px; }
@media (max-width: 640px) { .cols { grid-template-columns: 1fr; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .fog, .hero__scroll, .status::before { animation: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Ladders ---------- */
.season {
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end;
  border: 1px solid rgba(255, 170, 90, .22); border-radius: 22px; padding: clamp(24px, 4vw, 40px);
  background: radial-gradient(70% 140% at 100% 0%, rgba(255, 120, 40, .14), transparent 60%), linear-gradient(180deg, #15121a, #0f0d13);
}
.season h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin-top: 14px; }
.season p { color: var(--ink-2); margin: 10px 0 0; max-width: 56ch; }
.countdown { display: flex; gap: 10px; }
.countdown div { min-width: 70px; text-align: center; padding: 12px 8px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); }
.countdown b { display: block; font: 700 1.9rem/1 var(--display); color: var(--gold-1); }
.countdown span { font: 500 .62rem/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 26px; grid-column: 1 / -1; }
.timeline div { padding-top: 12px; border-top: 2px solid var(--line-2); font-size: .9rem; color: var(--muted); }
.timeline div b { display: block; font: 700 .78rem/1.2 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 2px; }
.timeline .is-now { border-top-color: var(--ember); }
.timeline .is-now b { color: var(--ember); }
@media (max-width: 760px) { .season { grid-template-columns: 1fr; } .timeline { grid-template-columns: 1fr 1fr; } }

.tabs { display: flex; gap: 6px; padding: 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  appearance: none; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; white-space: nowrap;
  font: 700 .8rem/1 var(--display); letter-spacing: .16em; text-transform: uppercase; padding: 13px 18px; border-radius: 999px; min-height: 44px;
}
@media (max-width: 600px) {
  .tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 18px; }
  .tabs button { border-radius: 12px; padding: 13px 8px; }
}
.tabs button[aria-selected="true"] { color: #1a0f05; background: linear-gradient(180deg, #ffc277, var(--ember)); }
.board-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin: 28px 0 16px; }
.board-head h3 { font-size: 1.7rem; }
.board-head p { margin: 6px 0 0; color: var(--ink-2); max-width: 60ch; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button {
  appearance: none; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; min-height: 36px;
  padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink-2);
  font: 500 .86rem/1 var(--body);
}
.chips button svg { width: 16px; height: 16px; color: var(--ember); }
.chips button[aria-pressed="true"] { border-color: rgba(255, 170, 90, .6); color: var(--ink); background: rgba(255, 155, 61, .1); }

.board { position: relative; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: rgba(255, 236, 205, .02); }
.board__scroll { overflow-x: auto; }
.board table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.board th { text-align: left; font: 700 .68rem/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding: 16px 18px; border-bottom: 1px solid var(--line); background: rgba(255, 236, 205, .025); }
.board td { padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.board tr:last-child td { border-bottom: 0; }
.board td.num, .board th.num { text-align: right; }
.board .rank { width: 64px; font: 700 1.05rem/1 var(--display); color: var(--ink); }
.board .rank.r1 { color: #ffd36b; } .board .rank.r2 { color: #dfe6ee; } .board .rank.r3 { color: #e0a070; }
.board .who { color: var(--ink); font-weight: 500; }
.board .who small { color: var(--muted); margin-left: 2px; }
.board .cls { display: inline-flex; gap: 8px; align-items: center; }
.board .cls svg { width: 18px; height: 18px; color: var(--ember); }
.tier-pill { display: inline-flex; gap: 6px; align-items: center; font: 700 .72rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.tier-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--t); box-shadow: 0 0 10px var(--t); }
.board.is-empty table { filter: blur(1.5px); opacity: .35; user-select: none; }
.board .ghost { display: inline-block; height: 10px; border-radius: 6px; background: rgba(255, 236, 205, .14); }
.empty {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px;
  background: radial-gradient(60% 70% at 50% 50%, rgba(11, 10, 15, .9), rgba(11, 10, 15, .55));
}
.empty__in { max-width: 420px; }
.empty svg { width: 46px; height: 46px; color: var(--ember); filter: drop-shadow(0 0 14px rgba(255, 130, 40, .6)); margin: 0 auto 12px; }
.empty h4 { margin: 0; font: 700 1.45rem/1.15 var(--display); color: var(--ink); }
.empty p { margin: 8px 0 0; color: var(--ink-2); }
.board-foot { margin-top: 12px; font-size: .9rem; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .board th, .board td { padding: 12px 12px; }
  .board .hide-sm { display: none; }
  .board .rank { width: 44px; }
  .board .cls-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .board .cls svg { width: 22px; height: 22px; }
}

.tiers { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.tier { text-align: center; padding: 22px 8px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); position: relative; }
.tier svg { width: 34px; height: 44px; margin: 0 auto 10px; color: var(--t); filter: drop-shadow(0 0 12px var(--t)); }
.tier b { display: block; font: 700 .95rem/1.1 var(--display); letter-spacing: .06em; color: var(--ink); }
.tier span { display: block; font-size: .8rem; color: var(--muted); margin-top: 4px; }
.tier--top { border-color: rgba(191, 232, 255, .35); background: radial-gradient(100% 70% at 50% 0%, rgba(191, 232, 255, .1), transparent 70%), var(--panel); }
@media (max-width: 960px) { .tiers { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .tiers { grid-template-columns: repeat(2, 1fr); } .tier--top { grid-column: 1 / -1; } }

.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.rule { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.rule h3 { font-size: 1.25rem; margin-bottom: 8px; }
.rule p { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) { .rules { grid-template-columns: 1fr; } }
/* Gameplay-led home: original palette, type and ember treatment retained. */
.hero { --hx: 73%; --hy: 50%; min-height: min(850px, 100svh); }
.hero__art--capture { inset: 0 0 0 50%; max-width: 720px; mask-image: linear-gradient(90deg, transparent, #000 22%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%); }
.hero__scene { position: absolute; width: min(100%, 591px); aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); overflow: hidden; mask-image: radial-gradient(ellipse at center, #000 48%, transparent 73%); -webkit-mask-image: radial-gradient(ellipse at center, #000 48%, transparent 73%); }
.hero__scene img { position: absolute; top: -42%; width: 100%; height: auto; max-width: none; }
.hero__dark { opacity: .35; }
.hero__copy { max-width: 550px; }
.hero__sub { max-width: 41ch; }
.release-note { font-size: .93rem; color: var(--ink-2); margin: 20px 0 0; }
.gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.gallery-toolbar p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.gallery-controls { display: flex; gap: 8px; }
.gallery-controls button, .viewer-toolbar button { min-width: 44px; min-height: 44px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--bg-2); color: var(--ink); cursor: pointer; font: 1.3rem var(--body); }
.gallery-controls button:disabled { opacity: .35; cursor: default; }
.gameplay-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 54px) / 4); gap: 18px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-color: var(--gold-2) var(--bg-2); padding: 6px 4px 24px; }
.gallery-card { margin: 0; min-width: 0; scroll-snap-align: start; }
.gallery-open { position: relative; display: block; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-2); }
.gallery-open img { width: 100%; height: auto; }
.gallery-open:hover { border-color: var(--ember); }
.gallery-zoom { position: absolute; bottom: 12px; right: 12px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #0b0a0fe6; color: var(--gold-1); font-size: 24px; border: 1px solid var(--line-2); }
.gallery-card figcaption { padding: 18px 3px 0; }
.gallery-card h3 { font-size: 1.25rem; }
.gallery-card p { font-size: 1rem; color: var(--ink-2); margin: 8px 0 0; }
.play-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.play-facts p { margin: 0; color: var(--ink-2); }
.play-facts strong { display: block; color: var(--ink); margin-bottom: 6px; }
.class-card { padding-top: 0; }
.class-art { height: 270px; margin: 0 -24px 22px; overflow: hidden; position: relative; mask-image: linear-gradient(#000 78%, transparent); -webkit-mask-image: linear-gradient(#000 78%, transparent); }
.class-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.class-art--gameplay { background: #14202b; }
.class-art--gameplay img { object-position: 50% 40%; }
.class-card__icon { width: 38px; height: 38px; border-radius: 10px; }
.class-card__icon svg { width: 24px; height: 24px; }
.class-card .role, .class-card .light { color: #b9ad9b; }
.oath-feature { background: radial-gradient(ellipse at 85% 50%, #46304c26, transparent 65%); border-block: 1px solid var(--line); }
.oath-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.oath-note { color: var(--gold-2); }
.oath-examples { display: grid; gap: 18px; }
.oath-example { padding: 28px; border: 1px solid var(--line-2); border-radius: var(--radius); background: linear-gradient(120deg, #d9a35e0b, #b9c8ff08); }
.oath-example .eyebrow { display: block; letter-spacing: .12em; line-height: 1.5; }
.oath-example h3 { font-size: 1.75rem; }
.oath-example p { color: var(--ink-2); margin-bottom: 0; }
.mode-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mode-pair .mode { padding: clamp(24px, 3vw, 40px); }
.mode-pair h3 { font-size: 2.6rem; }
.mode-pair .mode-hook { font-size: 1.25rem; color: var(--gold-1); }
.mode-steps { list-style: none; counter-reset: steps; padding: 24px 0 0; margin: 0 0 26px; border-top: 1px solid var(--line); display: grid; gap: 20px; }
.mode-steps li { display: block; position: relative; padding-left: 36px; color: var(--ink-2); }
.mode-steps li::before { counter-increment: steps; content: '0' counter(steps); position: absolute; top: 1px; left: 0; color: var(--gold-2); font: 700 .9rem var(--display); }
.mode-steps strong { display: block; color: var(--ink); }
.mode .mode-footnote { font-size: .95rem; margin: auto 0 0; }
.text-link { color: var(--gold-1); text-decoration-thickness: 1px; margin-top: auto; }
.duo-feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; margin-top: 24px; padding: clamp(26px, 4vw, 48px); border: 1px solid #d9a35e55; border-radius: 18px; background: radial-gradient(ellipse at 0 100%, #d2722826, transparent 75%), var(--panel); }
.duo-feature h3 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.duo-feature p, .duo-details dd { color: var(--ink-2); }
.duo-details { display: grid; gap: 24px; margin: 0; align-content: center; }
.duo-details div { padding-left: 22px; border-left: 1px solid var(--gold-2); }
.duo-details dt { font-weight: 700; font-size: 1.12rem; margin-bottom: 5px; }
.duo-details dd { margin: 0; }
.platform-note { margin: 28px 0 0; padding: 20px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.platform-note strong { color: var(--ink); }
.image-viewer { border: 1px solid var(--line-2); border-radius: 16px; background: var(--bg); color: var(--ink); padding: 16px; max-width: min(94vw, 800px); max-height: 94dvh; width: max-content; }
.image-viewer::backdrop { background: #050409eb; backdrop-filter: blur(7px); }
.image-viewer figure { margin: 12px 0 0; }
.viewer-image { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(94dvh - 145px); margin-inline: auto; object-fit: contain; }
#viewer-caption { max-width: 52ch; text-align: center; margin: 12px auto 0; line-height: 1.35; }
.viewer-toolbar { display: flex; align-items: center; gap: 8px; }
.viewer-count { color: var(--ink-2); margin-inline: 4px; }
.viewer-toolbar .viewer-close { margin-left: auto; border-radius: 24px; padding: 0 16px; font-size: 1rem; }
body.viewer-open { overflow: hidden; }
@media (max-width: 1000px) { .gameplay-gallery { grid-auto-columns: calc((100% - 36px) / 3); } }
@media (max-width: 900px) {
  .hero { --hx: 50%; --hy: 29%; min-height: 850px; align-items: end; }
  .hero__art--capture { inset: 50px 0 auto; max-width: none; height: 470px; mask-image: linear-gradient(180deg, #000 65%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 65%, transparent); }
  .hero__scene { width: min(100%, 591px); left: 50%; top: 45%; transform: translate(-50%, -50%); }
  .hero__content { padding: 440px 0 44px; }
  .hero__copy { max-width: 550px; }
  .hero__logo { width: min(420px, 95%); }
  .hero__dark { opacity: .18; }
  .oath-layout, .mode-pair, .duo-feature { grid-template-columns: 1fr; gap: 28px; }
  .class-art { height: 260px; }
}
@media (max-width: 600px) {
  .hero { min-height: 790px; }
  .hero__art--capture { height: 400px; }
  .hero__scene { width: 110%; top: 52%; }
  .hero__content { padding-top: 355px; }
  .hero__tag { letter-spacing: .26em; font-size: .8rem; }
  .hero__sub { font-size: 1.08rem; }
  .hero__cta { margin-top: 24px; gap: 10px; }
  .hero__cta .btn { font-size: .77rem; padding-inline: 18px; }
  .release-note { font-size: .88rem; }
  .gameplay-gallery { grid-auto-columns: 78%; gap: 16px; }
  .gallery-toolbar { align-items: start; }
  .gallery-toolbar p { max-width: 24ch; }
  .play-facts { grid-template-columns: 1fr; gap: 20px; }
  .class-art { height: 290px; }
  .mode__tag { line-height: 1.5; }
  .viewer-image { max-height: calc(94dvh - 175px); }
}
@media (max-width: 360px) { .hero__cta { flex-direction: column; } .class-art { height: 250px; } }

.class-art--gameplay::after { content: "In combat"; position: absolute; bottom: 32px; right: 16px; font: 500 .7rem var(--display); letter-spacing: .12em; color: var(--ink); background: #0b0a0fc9; padding: 4px 8px; border-radius: 6px; }

.orientation-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.orientation-head .lede { max-width: 55ch; margin-bottom: 0; }
.orientation-switch { display: flex; flex-shrink: 0; padding: 5px; gap: 4px; border-radius: 28px; border: 1px solid var(--line-2); background: var(--bg-2); }
.orientation-switch button { min-height: 44px; padding: 10px 18px; border: none; border-radius: 24px; cursor: pointer; color: var(--ink-2); background: transparent; font: 500 1rem var(--body); }
.orientation-switch button[aria-pressed="true"] { background: var(--gold-1); color: #1a0f05; }
.orientation-showcase { margin: 0; padding: 18px; background: radial-gradient(ellipse at 50% 50%, #1a252a, #0e0d13); border: 1px solid var(--line); border-radius: 24px; }
.orientation-image { margin: auto; width: 100%; }
.orientation-image img { width: 100%; height: auto; }
.orientation-showcase.is-portrait .orientation-image { width: min(100%, 300px); }
.orientation-showcase figcaption { text-align: center; color: var(--ink-2); font-size: .9rem; margin-top: 14px; }
@media (max-width: 1000px) { .orientation-head { align-items: start; flex-direction: column; } }
@media (max-width: 600px) { .orientation-showcase { padding: 8px; border-radius: 16px; } .orientation-image { border-radius: 10px; } .orientation-switch { width: 100%; } .orientation-switch button { flex: 1; } }

.mode-steps li::before { background: none; width: auto; height: auto; border-radius: 0; transform: none; }

/* Loot and build variety: real mechanics, presented as editorial examples. */
.loot-feature .section__head { max-width: 780px; }
.loot-rarities { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0 0 30px; list-style: none; }
.loot-rarities li { border: 1px solid currentColor; border-radius: 20px; padding: 6px 15px; font-size: .95rem; color: #c9c5bd; background: #ffffff04; }
.loot-rarities li:nth-child(2) { color: #94c894; }
.loot-rarities li:nth-child(3) { color: #90b9f3; }
.loot-rarities li:nth-child(4) { color: #c6a1ed; }
.loot-rarities li:nth-child(5) { color: #ffc371; }
.loot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.loot-card { padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line-2); border-radius: var(--radius); background: linear-gradient(135deg, #d9a35e0b, #b9c8ff05); }
.loot-card .eyebrow { margin: 0 0 16px; }
.loot-card h3 { font-size: clamp(1.6rem, 2.3vw, 2rem); }
.loot-card p { color: var(--ink-2); }
.loot-card .loot-example { margin: 24px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 1rem; }
.loot-example strong { display: block; margin-bottom: 7px; color: var(--gold-1); }
.loot-closing { margin: 34px 0 0; color: var(--gold-1); font-size: 1.2rem; }
.loot-closing span { color: var(--ink-2); font-size: 1rem; }
@media (max-width: 760px) { .loot-grid { grid-template-columns: 1fr; } }

/* Gallery mixes portrait (4:5) and landscape cards; landscape cards span two columns and share the row height. */
.gameplay-gallery { grid-template-rows: auto auto; }
.gallery-card { display: grid; grid-row: span 2; grid-template-rows: subgrid; }
.gallery-card .gallery-open img { aspect-ratio: 4 / 5; object-fit: cover; }
.gallery-card--wide { grid-column: span 2; }
.gallery-card--wide .gallery-open { height: 100%; }
.gallery-card--wide .gallery-open img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
@media (max-width: 600px) { .gallery-card--wide { grid-column: span 1; } }
.hero__scene--square img { top: 0; }
@supports not (grid-template-rows: subgrid) { .gallery-card--wide .gallery-open img { position: static; aspect-ratio: 16 / 9; } }
/* In-game low-angle class portraits: the camera centres the chest, so show from the head down. */
.class-art--portrait img { object-position: 50% 12%; }
