/* Zoo Online – website. Mobile first. Fonts self-hosted (Inter, SIL OFL). */
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #0b0b0e;
  --bg2: #121217;
  --panel: #17171d;
  --line: rgba(255, 210, 140, .14);
  --fg: #f1ebe0;
  --mut: #a9a196;
  --gold: #e9b35c;
  --gold2: #ffd98e;
  --ember: #ff8a2a;
  --ember2: #ffb347;
  --display: "Cinzel", "Trajan Pro", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gut: 16px;
  --max: 1200px;
  --nav: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 var(--body); overflow-x: hidden; }
img, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .02em; }
h2 { font-size: clamp(1.7rem, 6vw, 3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.eyebrow { font: 600 .72rem/1.4 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.lead { color: var(--mut); max-width: 640px; font-size: 1.05rem; }
section { position: relative; padding: 80px 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .9em 1.6em; border-radius: 2px; font: 600 .85rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s; }
.btn-gold { background: linear-gradient(180deg, var(--gold2), var(--gold) 55%, #b9832f); color: #1b1206; box-shadow: 0 0 0 1px rgba(255, 220, 150, .4) inset, 0 6px 24px rgba(255, 138, 42, .25); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 220, 150, .6) inset, 0 8px 32px rgba(255, 138, 42, .45); }
.btn-ghost { border-color: rgba(255, 217, 142, .45); color: var(--gold2); background: rgba(0, 0, 0, .25); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255, 217, 142, .1); }
.btn-sm { padding: .7em 1.1em; font-size: .72rem; }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; height: var(--nav); z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gut); transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(11, 11, 14, .88); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.nav-logo { font: 700 1.05rem/1 var(--display); letter-spacing: .18em; text-decoration: none; color: var(--gold2); white-space: nowrap; }
.nav-logo span { color: var(--fg); }
.nav-links { position: fixed; inset: var(--nav) 0 auto 0; display: flex; flex-direction: column; background: rgba(11, 11, 14, .97); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .3s; padding: 8px 0; }
.nav-links.open { transform: none; }
.nav-links a { padding: 14px var(--gut); text-decoration: none; font: 600 .85rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--fg); }
.nav-links a:hover { color: var(--gold2); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-cta { display: none; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.lang button { background: none; border: 0; color: var(--mut); font: 600 .72rem/1 var(--body); letter-spacing: .1em; padding: 8px 9px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: rgba(233, 179, 92, .18); color: var(--gold2); }
.burger { width: 40px; height: 40px; background: none; border: 0; display: grid; place-content: center; gap: 5px; cursor: pointer; }
.burger span { width: 22px; height: 2px; background: var(--fg); transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* hero */
.hero { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--nav) + 24px) 0 80px; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, rgba(11, 11, 14, .05), rgba(11, 11, 14, .55) 75%), linear-gradient(180deg, rgba(11, 11, 14, .55), rgba(11, 11, 14, .1) 30%, rgba(11, 11, 14, .2) 70%, var(--bg)); }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { position: relative; z-index: 2; padding: 0 var(--gut); display: flex; flex-direction: column; align-items: center; }
.logo { margin: 0 0 18px; display: flex; flex-direction: column; align-items: center; line-height: .85; }
.logo-crest { width: 120px; height: 34px; margin-bottom: 14px; background: url("../img/crest.svg") center/contain no-repeat; filter: drop-shadow(0 0 12px rgba(255, 150, 60, .6)); }
.logo-main, .logo-sub { font-family: var(--display); font-weight: 700; background: linear-gradient(180deg, #fff3cf 0%, var(--gold2) 35%, var(--gold) 60%, #8d5a1f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 24px rgba(0, 0, 0, .8)) drop-shadow(0 0 30px rgba(255, 140, 50, .35)); }
.logo-main { font-size: clamp(4.2rem, 24vw, 11rem); letter-spacing: .1em; padding-left: .1em; }
.logo-sub { font-size: clamp(1.4rem, 7.5vw, 3.4rem); letter-spacing: .62em; padding-left: .62em; margin-top: .25em; }
.hero-tag { max-width: 560px; font-size: clamp(1rem, 3.6vw, 1.25rem); color: #e9e2d4; text-shadow: 0 2px 12px #000; margin-bottom: 28px; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 18px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-width: 168px; padding: 10px 18px; border: 1px solid rgba(255, 217, 142, .5); background: rgba(8, 8, 10, .7); border-radius: 8px; text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.store:hover { border-color: var(--gold2); transform: translateY(-2px); box-shadow: 0 0 24px rgba(255, 138, 42, .3); }
.store svg { width: 26px; height: 26px; fill: var(--fg); flex: none; }
.store span { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }
.store small { font-size: .66rem; color: var(--mut); letter-spacing: .06em; }
.store b { font-size: 1.05rem; }
.scroll-cue { position: absolute; bottom: 22px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(255, 217, 142, .6); border-radius: 14px; z-index: 2; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold2); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* world */
.world { overflow: hidden; padding: 100px 0; }
.world-bg { position: absolute; inset: -15% 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(11, 11, 14, .85) 45%, rgba(11, 11, 14, .55)), var(--img) center/cover; will-change: transform; }
.world::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, var(--bg), transparent 22%, transparent 78%, #0a0a0c); }
.world-grid { z-index: 1; }
.world-grid { position: relative; display: grid; gap: 40px; }
.world-text p { color: #d6cfc3; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; gap: 28px; }
.facts b { display: block; font: 700 2rem/1 var(--display); color: var(--gold2); }
.facts span { font-size: .8rem; color: var(--mut); text-transform: uppercase; letter-spacing: .12em; }
.world-pics { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.world-pics .pic-a { grid-column: 1 / -1; }
.pic { margin: 0; border: 1px solid var(--line); overflow: hidden; background: #000; box-shadow: 0 20px 50px rgba(0, 0, 0, .55); }
.pic img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .8s; }
.pic:hover img { transform: scale(1.04); }

/* classes: dark void stage with ember particles */
.classes { background: radial-gradient(ellipse 70% 55% at 62% 55%, #23211f 0%, #121214 45%, #070708 100%); overflow: hidden; padding: 80px 0 40px; display: flex; flex-direction: column; }
.classes-head { order: 0; } .cls-tabs { order: 1; } .stage { order: 2; width: 100%; }
.void { position: absolute; inset: 0; pointer-events: none; }
.rock { position: absolute; background: radial-gradient(circle at 32% 28%, #4a4744 0%, #26252a 45%, #0e0e10 80%); border-radius: 42% 58% 55% 45% / 50% 40% 60% 50%; box-shadow: inset -8px -10px 24px rgba(0, 0, 0, .7), 0 0 30px rgba(0, 0, 0, .4); opacity: .85; animation: drift 14s ease-in-out infinite alternate; }
.rock::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 75% 70%, rgba(255, 138, 42, .18), transparent 45%); }
.r1 { width: 90px; height: 70px; left: 6%; top: 18%; animation-duration: 16s; }
.r2 { width: 46px; height: 40px; left: 22%; top: 70%; animation-duration: 11s; filter: blur(1px); }
.r3 { width: 150px; height: 120px; right: -30px; top: 12%; animation-duration: 19s; filter: blur(2px); opacity: .6; }
.r4 { width: 34px; height: 30px; right: 18%; top: 62%; animation-duration: 9s; }
.r5 { width: 70px; height: 60px; left: 46%; top: 8%; animation-duration: 13s; filter: blur(3px); opacity: .45; }
.r6 { width: 120px; height: 90px; left: -40px; bottom: 6%; animation-duration: 17s; filter: blur(1.5px); }
@keyframes drift { from { transform: translate3d(0, -12px, 0) rotate(-6deg); } to { transform: translate3d(10px, 14px, 0) rotate(8deg); } }
.embers-stage { z-index: 3; }
.classes-head { position: relative; z-index: 2; text-align: center; }
.stage { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); display: grid; grid-template-areas: "hero" "text"; }
.stage-hero { grid-area: hero; position: relative; height: min(56vh, 500px); display: grid; place-items: end center; }
.stage-hero img { position: absolute; inset: 0; z-index: 2; height: 100%; width: 100%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 0 1px rgba(255, 200, 120, .4)) drop-shadow(0 30px 40px rgba(0, 0, 0, .7)); transform-origin: 50% 90%; animation: push 9s ease-out forwards; }
.stage-hero img.swap { animation: none; opacity: 0; transform: scale(.96) translateY(10px); }
/* male and female side by side; the female stands a little in front */
/* turntable video: male and female back to back, the camera flies around them; edges fade into the stage */
.spin { position: absolute; z-index: 2; left: 50%; bottom: 0; height: 100%; width: auto; aspect-ratio: 15 / 16; max-width: 100%; object-fit: cover; translate: -50% 0; pointer-events: none; background: transparent;
  /* no blend mode: with "lighten" the drifting rocks behind showed through dark armour and made it flicker */
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 52%, #000 45%, transparent 98%); mask-image: radial-gradient(ellipse 50% 50% at 50% 52%, #000 45%, transparent 98%); transition: opacity .35s; }
.stage-hero .halo, .stage-hero .floor { display: none; }
.spin.swap { opacity: 0; }
.cls-nav { position: absolute; z-index: 5; bottom: 6px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 179, 71, .55); background: rgba(10, 10, 12, .6); color: var(--gold2); font-size: 1.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s, box-shadow .2s; }
.cls-nav:hover { background: rgba(255, 138, 42, .25); box-shadow: 0 0 18px rgba(255, 138, 42, .4); }
.cls-prev { left: 0; } .cls-next { right: 0; }
@keyframes push { from { transform: scale(1); } to { transform: scale(1.06); } }
.stage-hero img { transition: opacity .45s, transform .45s; }
.halo { pointer-events: none; position: absolute; z-index: 1; left: 50%; bottom: 12%; width: 80%; aspect-ratio: 1; translate: -50% 0; background: radial-gradient(circle, rgba(255, 138, 42, .32) 0%, rgba(255, 110, 30, .12) 35%, transparent 65%); filter: blur(10px); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .65; transform: scale(.94); } }
.floor { pointer-events: none; position: absolute; z-index: 1; bottom: -4px; left: 50%; width: 70%; height: 40px; translate: -50% 0; background: radial-gradient(ellipse, rgba(255, 150, 60, .35), transparent 70%); filter: blur(6px); }
.stage-text { grid-area: text; padding-top: 18px; text-align: center; }
.cls-role { font: 600 .75rem/1 var(--body); letter-spacing: .28em; text-transform: uppercase; color: var(--ember2); margin-bottom: .6rem; }
.cls-name { font-size: clamp(2.2rem, 9vw, 4rem); margin-bottom: .3em; background: linear-gradient(180deg, #fff, #e8d6b5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cls-desc { color: #d6cfc3; max-width: 460px; margin-left: auto; margin-right: auto; }
.cls-stats { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; max-width: 320px; margin: 18px auto 22px; text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--mut); align-items: center; }
.cls-stats dd { margin: 0; height: 6px; background: rgba(255, 255, 255, .08); position: relative; overflow: hidden; }
.cls-stats dd i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #b5531a, var(--ember), var(--ember2)); box-shadow: 0 0 10px var(--ember); transition: width .6s; }
.gender { display: inline-flex; border: 1px solid rgba(255, 179, 71, .45); }
.gender button { background: none; border: 0; color: var(--mut); font: 600 .78rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; padding: 12px 18px; cursor: pointer; min-width: 120px; }
.gender button[aria-pressed="true"] { background: linear-gradient(180deg, rgba(255, 138, 42, .35), rgba(255, 138, 42, .12)); color: #fff; }
.gender button:disabled { opacity: .35; cursor: not-allowed; }
.gender-note { font-size: .8rem; color: var(--mut); margin-top: 10px; }
.cls-tabs { position: relative; z-index: 2; display: flex; gap: 8px; overflow-x: auto; padding: 28px var(--gut) 8px; scroll-snap-type: x mandatory; justify-content: flex-start; scrollbar-width: none; }
.cls-tabs::-webkit-scrollbar { display: none; }
.cls-tab { flex: none; scroll-snap-align: center; width: 92px; padding: 6px 4px 10px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .08); color: var(--mut); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; font: 600 .62rem/1.2 var(--body); letter-spacing: .05em; text-transform: uppercase; transition: border-color .2s, color .2s, background .2s; }
.cls-tab img { height: 74px; width: auto; object-fit: contain; filter: grayscale(.7) brightness(.8); transition: filter .2s; }
.cls-tab[aria-selected="true"], .cls-tab:hover { border-color: rgba(255, 138, 42, .7); color: #fff; background: rgba(255, 138, 42, .1); }
.cls-tab[aria-selected="true"] img, .cls-tab:hover img { filter: none; }

/* bosses */
.bosses { background: linear-gradient(180deg, #070708, var(--bg2)); }
.boss-rail { display: flex; gap: 16px; overflow-x: auto; padding: 30px var(--gut) 20px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.boss { flex: none; width: 74vw; max-width: 300px; scroll-snap-align: center; background: radial-gradient(ellipse at 50% 35%, #2a1d14, #121217 70%); border: 1px solid var(--line); padding: 18px 18px 20px; position: relative; overflow: hidden; }
.boss::before { content: ""; position: absolute; inset: auto 0 0; height: 60%; background: linear-gradient(0deg, rgba(255, 110, 30, .14), transparent); }
.boss img { height: 260px; width: 100%; object-fit: contain; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .8)); transition: transform .5s; }
.boss:hover img { transform: scale(1.05); }
.boss h3 { margin: 14px 0 4px; color: var(--gold2); position: relative; }
.boss p { margin: 0; color: var(--mut); font-size: .9rem; position: relative; }
.boss-shots { display: grid; gap: 14px; margin-top: 20px; }

/* features */
.features { background: linear-gradient(180deg, var(--bg2), rgba(18, 18, 23, .9) 30%, rgba(18, 18, 23, .94) 70%, var(--bg)), url("../img/shots/fluegel.webp") center/cover fixed; }
@media (hover: none) { .features { background-attachment: scroll; } }
.feat { backdrop-filter: blur(3px); }
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.feat { background: linear-gradient(180deg, #1a1a21, #131318); border: 1px solid rgba(255, 255, 255, .06); padding: 18px 14px; transition: border-color .25s, transform .25s; }
.feat:hover { border-color: rgba(255, 179, 71, .45); transform: translateY(-3px); }
.feat h3 { font-size: .98rem; margin: 12px 0 6px; }
.feat p { font-size: .85rem; color: var(--mut); margin: 0; }
.ico { display: block; width: 40px; height: 40px; background: radial-gradient(circle, rgba(255, 138, 42, .25), transparent 70%); position: relative; }
.ico svg { position: absolute; inset: 6px; width: 28px; height: 28px; stroke: var(--gold2); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* media */
.media { background: var(--bg); }
.trailer { margin: 30px 0 16px; border: 1px solid var(--line); box-shadow: 0 0 60px rgba(255, 138, 42, .12); background: #000; }
.trailer video { width: 100%; aspect-ratio: 16 / 9; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.g { padding: 0; border: 1px solid var(--line); background: #000; cursor: zoom-in; overflow: hidden; }
.g img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s, opacity .3s; opacity: .9; }
.g:hover img { transform: scale(1.06); opacity: 1; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .92); display: grid; place-items: center; padding: var(--gut); }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; border: 1px solid var(--line); }
.lb-close { position: absolute; top: 10px; right: 14px; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; }

/* news */
.news { background: var(--bg2); }
.news-grid { display: grid; gap: 16px; margin-top: 30px; }
.card { background: var(--panel); border: 1px solid rgba(255, 255, 255, .06); overflow: hidden; transition: border-color .25s; }
.card:hover { border-color: rgba(255, 179, 71, .4); }
.card img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.card > div { padding: 16px 18px 20px; }
.card time { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.card h3 { margin: 8px 0; }
.card p { color: var(--mut); font-size: .92rem; margin: 0; }

/* download */
.download { text-align: center; overflow: hidden; padding: 110px 0; }
.download-bg { position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 0%, rgba(11, 11, 14, .7) 40%, rgba(11, 11, 14, .85)), var(--img) center/cover; }
.download-inner { position: relative; z-index: 2; }
.download p { color: #ddd5c8; max-width: 520px; margin-left: auto; margin-right: auto; }
.download .stores { margin-top: 26px; }
.fine { font-size: .78rem; color: var(--mut) !important; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); background: #08080a; }
.foot-grid { display: grid; gap: 16px; justify-items: center; text-align: center; }
.foot nav { display: flex; gap: 22px; }
.foot nav a { color: var(--mut); text-decoration: none; font-size: .9rem; }
.foot nav a:hover { color: var(--gold2); }
.copy { color: #6f6a63; font-size: .8rem; margin: 0; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.shot .reveal { opacity: 1; transform: none; transition: none; }

/* tablet+ */
@media (min-width: 720px) {
  :root { --gut: 32px; }
  section { padding: 110px 0; }
  .feat-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .news-grid { grid-template-columns: repeat(3, 1fr); }
  .boss-shots { grid-template-columns: 1fr 1fr; }
  .boss { width: 280px; }
  .foot-grid { grid-template-columns: auto 1fr auto; justify-items: start; align-items: center; }
  .foot nav { justify-self: center; }
}
@media (min-width: 1000px) {
  .nav-links { position: static; transform: none; flex-direction: row; background: none; border: 0; padding: 0; gap: 2px; }
  .nav-links a { padding: 10px 12px; font-size: .74rem; }
  .burger { display: none; }
  .nav-cta { display: inline-flex; }
  .world-grid { grid-template-columns: 1fr 1.1fr; align-items: center; gap: 60px; }
  .world-pics { grid-template-columns: 1fr 1fr; }
  .pic-a { grid-column: 1 / -1; }
  .feat-grid { grid-template-columns: repeat(4, 1fr); }
  .stage { grid-template-areas: "text hero"; grid-template-columns: .8fr 1.5fr; align-items: center; }
  .stage-text { text-align: left; padding: 0 0 40px; }
  .cls-desc, .cls-stats { margin-left: 0; }
  .stage-hero { height: min(calc(100vh - 300px), 640px); min-height: 420px; }
  .spin { left: 0; translate: none; }
  .stage { gap: 0; }
  .classes { padding-top: 70px; }
  .cls-tabs { justify-content: center; padding-top: 18px; }
  .cls-tab { width: 112px; }
  .cls-tab img { height: 70px; }
  .boss-rail { display: grid; grid-template-columns: repeat(5, 1fr); max-width: var(--max); margin: 0 auto; overflow: visible; }
  .boss { width: auto; max-width: none; }
  .boss img { height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---- class pages: armour sets by grade ---- */
.cls-page { padding-top: calc(var(--nav) + 18px); }
/* set turntable: a canvas that shows only the two figures (transparent around them, complete with their weapons),
   in front of the stage with its embers. The video behind it carries colour and alpha and stays invisible. */
.cls-page .stage-hero video { position: absolute; width: 2px; height: 2px; opacity: 0; pointer-events: none; }
.cls-page .spin { aspect-ratio: 8 / 5; object-fit: contain; -webkit-mask-image: none; mask-image: none; }
/* the frame is wide for the weapons, so it may reach beyond the stage box: the figures keep their size */
@media (min-width: 700px) { .cls-page .spin { height: 135%; max-width: none; left: 50%; translate: -50% 0; } }
@media (max-width: 699px) { .cls-page .spin { aspect-ratio: 1 / 1; object-fit: cover; } }
.cls-pages { position: relative; z-index: 3; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 14px; scrollbar-width: none; }
.cls-pages a { flex: none; padding: .6em 1em; border: 1px solid rgba(255, 255, 255, .1); text-decoration: none; font: 600 .72rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }
.cls-pages a[aria-current="page"], .cls-pages a:hover { border-color: rgba(255, 138, 42, .7); color: #fff; background: rgba(255, 138, 42, .1); }
.cls-page h1.cls-name { font-family: var(--display); line-height: 1.05; }
.cls-page .stage, .cls-page .set-pick { order: 2; }
.set-pick { position: relative; z-index: 3; text-align: center; padding-top: 22px; }
.set-chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.set-chip { flex: none; min-width: 58px; padding: 8px 10px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .1); color: var(--mut); font: 700 1rem/1 var(--body); cursor: pointer; }
.set-chip small { display: block; font: 600 .56rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 5px; opacity: .8; }
.set-chip[aria-selected="true"], .set-chip:hover { border-color: var(--ember); color: #fff; background: rgba(255, 138, 42, .14); }
.set-detail, .set-all { padding: 56px 0; background: var(--bg2); }
.set-all { background: var(--bg); }
.set-detail h2, .set-all h2 { font-size: clamp(1.5rem, 5vw, 2.4rem); margin-bottom: .2em; }
.set-req { color: var(--mut); margin-bottom: 26px; }
.set-cols { display: grid; gap: 30px; }
.set-cols h3 { font: 600 .78rem/1.3 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.stat-list { list-style: none; margin: 0; padding: 0; }
.stat-list li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: .92rem; color: #d6cfc3; }
.stat-list b { color: var(--gold2); font-variant-numeric: tabular-nums; }
.piece { border: 1px solid rgba(255, 255, 255, .07); background: var(--panel); margin-bottom: 8px; }
.piece summary { cursor: pointer; padding: 12px 14px; font-weight: 600; list-style-position: inside; }
.piece summary span { display: inline-block; min-width: 98px; font: 600 .68rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ember2); }
.piece .stat-list { padding: 0 14px 10px; }
.set-rows { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.set-row button { width: 100%; display: grid; grid-template-columns: 84px 1fr; gap: 4px 14px; align-items: center; text-align: left; padding: 8px 12px 8px 8px; background: var(--panel); border: 1px solid rgba(255, 255, 255, .06); color: var(--fg); cursor: pointer; font: inherit; }
.set-row.on button, .set-row button:hover { border-color: rgba(255, 138, 42, .7); }
.set-row img, .set-noimg { grid-row: span 2; width: 84px; height: 90px; object-fit: cover; background: #0c0c0f; display: block; }
.set-row-t small { display: block; font: 600 .66rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 5px; }
.set-row-s { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .8rem; color: var(--mut); }
.set-row-s b { color: var(--gold2); }
body.sub main > section:first-child { padding-top: calc(var(--nav) + 40px); }
#clsMore { margin-bottom: 14px; }
@media (min-width: 860px) {
  .cls-pages, .set-chips { justify-content: center; }
  .set-cols { grid-template-columns: 1fr 1.25fr; gap: 48px; }
  .set-row button { grid-template-columns: 110px 1.2fr 1.6fr; }
  .set-row img, .set-noimg { grid-row: auto; width: 110px; height: 117px; }
}
.set-note { position: absolute; inset: 45% 0 auto 0; z-index: 3; text-align: center; color: var(--mut); font-size: .9rem; }
