/* Descent website v5. One dark theme on purpose: the site is a dive.
   Type: Josefin Sans (display), Instrument Sans (text), IBM Plex Mono (labels), all served from /fonts. */
@font-face { font-family: "Josefin Sans"; src: url("fonts/JosefinSans.woff") format("woff"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans.woff") format("woff"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/PlexMono-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/PlexMono-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;
  --abyss: #01050a; --deep: #03101a; --surface: #061826; --card: #071d2d; --card-2: #0a2537;
  --fg: #e3eff2; --text: #bfd3d9; --muted: #8fabb3; --faint: #5d7a83;
  --line: rgba(160, 220, 230, 0.14); --line-2: rgba(160, 220, 230, 0.26);
  --glow: #44e0e4; --glow-dim: rgba(68, 224, 228, 0.14); --sun: #f1dfb8; --warn: #e8a64a; --red: #e3262b;
  --display: "Josefin Sans", "Futura", "Avenir Next", "Century Gothic", sans-serif;
  --body: "Instrument Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1240px; --gutter: clamp(16px, 4vw, 40px); --radius: 12px;
  --bar-h: 68px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
body { margin: 0; background: var(--abyss); color: var(--text); font-family: var(--body); font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--glow); text-underline-offset: 3px; }
a:hover { color: #9ff3f5; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 3px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--glow); color: var(--abyss); padding: 10px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
h1, h2, h3, h4 { color: var(--fg); margin: 0; }
h2 { font-family: var(--display); font-weight: 300; font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.3rem); line-height: 1.08; letter-spacing: 0.01em; text-wrap: balance; }
h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem); letter-spacing: 0.03em; line-height: 1.2; }
p { margin: 0 0 1rem; }
.lede { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); color: var(--text); max-width: 42rem; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 0.9rem; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--glow); margin: 0 0 1rem; }
.eyebrow b { font-weight: 500; }
.eyebrow span { color: var(--faint); }
.sec-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 48rem; }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.sec-head.center .eyebrow { justify-content: center; }
.chip { display: inline-block; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); border-radius: 4px; padding: 0.18rem 0.5rem; background: rgba(1, 5, 10, 0.62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); white-space: nowrap; }
.chip.on-art { position: absolute; top: 0.8rem; left: 0.8rem; z-index: 2; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; min-height: 46px; padding: 0.7rem 1.3rem; border-radius: 999px; border: 1px solid var(--glow); background: var(--glow); color: var(--abyss); font: 600 0.92rem/1 var(--body); letter-spacing: 0.04em; text-decoration: none; cursor: pointer; transition: box-shadow 0.25s, transform 0.25s, background 0.25s, color 0.25s; }
.btn:hover { color: var(--abyss); box-shadow: 0 0 0 4px var(--glow-dim), 0 8px 30px rgba(68, 224, 228, 0.18); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--fg); border-color: rgba(227, 239, 242, 0.38); }
.btn.ghost:hover { color: var(--fg); border-color: var(--fg); background: rgba(227, 239, 242, 0.06); }
.btn.small { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn svg { width: 18px; height: 18px; }
.textlink { background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--glow); text-decoration: underline; text-underline-offset: 4px; }
.ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; }
@media (hover: none) { .btn:hover { transform: none; } }

/* ---------- header ---------- */
.bar { position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: var(--bar-h); display: flex; align-items: center; transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s; border-bottom: 1px solid transparent; }
.bar.solid, body:not(.has-hero) .bar { background: rgba(1, 5, 10, 0.86); border-bottom-color: var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.bar .wrap { display: flex; align-items: center; gap: 1.4rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--fg); }
.brand img { width: 36px; height: 36px; border-radius: 50%; }
.brand span { font-family: var(--display); font-weight: 300; font-size: 1.05rem; letter-spacing: 0.42em; }
.nav { display: flex; align-items: center; gap: 0.2rem; margin-left: auto; }
.nav a { padding: 0.55rem 0.75rem; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 0.86rem; letter-spacing: 0.02em; }
.nav a:hover { color: var(--fg); background: rgba(227, 239, 242, 0.06); }
.nav a[aria-current="page"] { color: var(--glow); }
.bar .btn { margin-left: 0.4rem; }
.menu-btn { display: none; margin-left: auto; min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(1, 5, 10, 0.5); color: var(--fg); font: 500 0.78rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.drawer { position: fixed; z-index: 49; inset: var(--bar-h) 0 auto 0; background: rgba(1, 5, 10, 0.97); border-bottom: 1px solid var(--line); padding: 0.8rem max(var(--gutter), env(safe-area-inset-left, 0px)) 1.4rem; display: grid; gap: 0.2rem; }
.drawer a { padding: 0.85rem 0.6rem; color: var(--fg); text-decoration: none; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
.drawer a[aria-current="page"] { color: var(--glow); }
.drawer .btn { margin-top: 0.8rem; }
@media (max-width: 1080px) { .nav, .bar .btn { display: none; } .menu-btn { display: inline-flex; align-items: center; } }

/* ---------- hero (home) ---------- */
.hero { position: relative; min-height: 100vh; display: grid; align-items: end; overflow: hidden; background: var(--deep); isolation: isolate; }
@supports (height: 100svh) { .hero { min-height: 100svh; } }
.hero .bg { position: absolute; inset: 0; z-index: -2; }
.hero .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform: scale(1.06); animation: drift 40s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.14) translate(-1.5%, -1%); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(1, 5, 10, 0.72) 0%, rgba(1, 5, 10, 0) 22%, rgba(1, 5, 10, 0.2) 50%, rgba(1, 5, 10, 0.86) 82%, var(--abyss) 100%), linear-gradient(90deg, rgba(1, 5, 10, 0.6), rgba(1, 5, 10, 0) 60%); }
.hero .wrap { padding-top: calc(var(--bar-h) + 4rem); padding-bottom: clamp(3rem, 8vh, 6rem); display: grid; gap: 1.2rem; }
.presents { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.34em; text-transform: uppercase; color: #d6e8ec; margin: 0; }
.wordmark { font-family: var(--display); font-weight: 200; font-size: clamp(3rem, 1.6rem + 7vw, 8rem); line-height: 1; letter-spacing: 0.38em; margin: 0 0 0 -0.04em; background: linear-gradient(180deg, #fff 0%, #d9ecf1 44%, #7f98a2 51%, #b9cfd6 58%, #eaf4f7 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 24px rgba(68, 224, 228, 0.22)); }
.tagline { display: flex; align-items: center; gap: 1rem; margin: 0; font-size: 0.78rem; letter-spacing: 0.36em; text-transform: uppercase; color: #d6e8ec; }
.tagline::before { content: ""; width: 2.6rem; height: 1px; background: var(--glow); }
.hero .lede { color: #d0e0e5; max-width: 36rem; }
.hero .ctas { margin-top: 0.6rem; }
.hero .marks { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }
.hero .chip.corner { position: absolute; right: max(var(--gutter), env(safe-area-inset-right, 0px)); top: calc(var(--bar-h) + 1rem); }
.scroll-cue { position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%); width: 24px; height: 38px; border: 1px solid rgba(227, 239, 242, 0.4); border-radius: 14px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--glow); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }
@media (max-width: 700px) {
  .hero::after { background: linear-gradient(180deg, rgba(1, 5, 10, 0.5) 0%, rgba(1, 5, 10, 0.1) 25%, rgba(1, 5, 10, 0.7) 55%, rgba(1, 5, 10, 0.96) 80%, var(--abyss) 100%); }
  .wordmark { letter-spacing: 0.26em; }
  .tagline { letter-spacing: 0.24em; font-size: 0.7rem; }
  .hero .ctas .btn { flex: 1 1 100%; }
  .scroll-cue { display: none; }
}

/* page hero (inner pages) */
.page-hero { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(380px, 58vh, 620px); display: grid; align-items: end; background: var(--deep); }
.page-hero .bg { position: absolute; inset: 0; z-index: -2; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(1, 5, 10, 0.78) 0%, rgba(1, 5, 10, 0.35) 18%, rgba(1, 5, 10, 0.2) 38%, rgba(1, 5, 10, 0.85) 82%, var(--abyss) 100%); }
.page-hero .wrap { padding-top: calc(var(--bar-h) + 3rem); padding-bottom: clamp(2.5rem, 6vw, 4rem); display: grid; gap: 1rem; }
.page-hero h1 { font-family: var(--display); font-weight: 200; font-size: clamp(2.4rem, 1.4rem + 4.5vw, 5rem); letter-spacing: 0.04em; line-height: 1.02; text-wrap: balance; }
.page-hero .lede { color: #d0e0e5; }
.page-hero .chip.corner { position: absolute; right: max(var(--gutter), env(safe-area-inset-right, 0px)); top: calc(var(--bar-h) + 1rem); }
.page-hero.plain { min-height: 0; background: radial-gradient(120% 140% at 80% 0%, #0a2a3c 0%, var(--abyss) 60%); }
.page-hero.plain::after { display: none; }

/* ---------- sections ---------- */
.section { position: relative; padding-block: clamp(4rem, 9vw, 7.5rem); }
.section.tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section.alt { background: linear-gradient(180deg, var(--abyss), var(--deep) 30%, var(--deep) 70%, var(--abyss)); }
.section.line { border-top: 1px solid var(--line); }
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } .split.flip > :first-child { order: 2; } .split.even { grid-template-columns: 1fr 1fr; } }
.split > * { min-width: 0; }
.prose { max-width: 40rem; }
.prose p { color: var(--text); }
.art { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(.2, .7, .2, 1); }
.art.tall img { aspect-ratio: 4 / 3; }
.art.wide img { aspect-ratio: 16 / 9; }
.art.pano img { aspect-ratio: 21 / 9; }
button.art { padding: 0; cursor: zoom-in; display: block; width: 100%; color: inherit; font: inherit; text-align: left; }
button.art:hover img { transform: scale(1.035); }
.art figcaption, .art .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem 1rem 0.9rem; background: linear-gradient(180deg, transparent, rgba(1, 5, 10, 0.88)); color: var(--fg); font-size: 0.92rem; display: flex; justify-content: space-between; gap: 1rem; align-items: end; }
.art .cap small { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-align: right; }
.art .cap > span { min-width: 0; }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stats div { background: var(--deep); padding: 1.4rem 1.3rem; }
.stats b { display: block; font-family: var(--display); font-weight: 300; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); color: var(--fg); line-height: 1.1; }
.stats span { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* pillars */
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 700px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pillars li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.pillars li { background: var(--deep); padding: 1.3rem 1.4rem; display: grid; gap: 0.25rem; }
.pillars .k { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--glow); }
.pillars strong { font-family: var(--display); font-weight: 400; font-size: 1.2rem; color: var(--fg); letter-spacing: 0.03em; }
.pillars span:last-child { color: var(--text); font-size: 0.95rem; }

/* showcase rail */
.rail-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 34%); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 1rem; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.rail > * { scroll-snap-align: start; }
.rail .art img { aspect-ratio: 16 / 10; }
@media (max-width: 700px) { .rail { grid-auto-columns: 82%; } }
.rail-nav { display: flex; gap: 0.5rem; }
.rail-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--fg); cursor: pointer; font-size: 1.1rem; }
.rail-nav button:hover { border-color: var(--glow); color: var(--glow); }

/* cards */
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.card { position: relative; display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); text-decoration: none; color: inherit; transition: border-color 0.3s, transform 0.3s; }
a.card:hover { border-color: rgba(68, 224, 228, 0.45); transform: translateY(-2px); color: inherit; }
.card .img { position: relative; overflow: hidden; }
.card .img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.9s cubic-bezier(.2, .7, .2, 1); }
a.card:hover .img img { transform: scale(1.04); }
.card .body { padding: 1.2rem 1.3rem 1.4rem; display: grid; gap: 0.45rem; align-content: start; }
.card .d { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--glow); }
.card p { margin: 0; font-size: 0.95rem; }
.card .more { margin-top: 0.4rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--glow); }

/* full-bleed band */
.band { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(380px, 62vw, 720px); display: grid; align-items: end; }
.band > img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; z-index: -2; will-change: transform; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--abyss) 0%, rgba(1, 5, 10, 0) 18%, rgba(1, 5, 10, 0) 50%, rgba(1, 5, 10, 0.9) 100%); }
.band .wrap { padding-bottom: clamp(2rem, 5vw, 3.5rem); display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.band q { quotes: none; font-family: var(--display); font-weight: 200; font-size: clamp(2rem, 1.2rem + 3.6vw, 4rem); color: var(--fg); letter-spacing: 0.05em; line-height: 1.05; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6); max-width: 16ch; }

/* creature showcase */
.creature-stage { position: relative; isolation: isolate; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); overflow: hidden; background: radial-gradient(70% 90% at 50% 40%, rgba(68, 224, 228, 0.16), transparent 70%), radial-gradient(120% 100% at 50% 120%, #04202e, var(--abyss)); padding: clamp(1.5rem, 4vw, 3rem); }
.creature-stage .float { width: min(100%, 980px); margin: 0 auto; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 40px rgba(68, 224, 228, 0.18)); animation: glide 9s ease-in-out infinite alternate; }
@keyframes glide { from { transform: translateY(-1.2%) rotate(-0.6deg); } to { transform: translateY(1.6%) rotate(0.6deg); } }
.creature-stage .chip { position: absolute; top: 1rem; left: 1rem; }
.creature { display: grid; gap: clamp(1.6rem, 4vw, 3rem); }
@media (min-width: 980px) { .creature.split2 { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; } }
.creature > * { min-width: 0; }
.spec { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.55rem 1.4rem; font-family: var(--mono); font-size: 0.82rem; border-top: 1px solid var(--line); padding-top: 1.1rem; }
.spec dt { color: var(--faint); letter-spacing: 0.12em; text-transform: uppercase; }
.spec dd { margin: 0; color: var(--fg); }
.spec dd.hot { color: var(--glow); }
.thumbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
@media (min-width: 700px) { .thumbs.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } .thumbs.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.thumbs .art img { aspect-ratio: 16 / 10; }
.thumbs .cap { flex-direction: column; align-items: flex-start; gap: 0.15rem; padding: 2rem 0.8rem 0.7rem; font-size: 0.86rem; }
.thumbs .cap small { text-align: left; }
.cutouts { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.cutouts figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(80% 80% at 50% 45%, rgba(68, 224, 228, 0.12), transparent 70%), var(--deep); padding: 1.2rem; display: grid; gap: 0.6rem; justify-items: center; }
.cutouts img { max-height: 180px; width: auto; object-fit: contain; }
.cutouts figcaption { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* species list */
.known { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); column-gap: 2rem; border-top: 1px solid var(--line); }
.known li { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 0.8rem 0.1rem; border-bottom: 1px solid var(--line); color: var(--fg); }
.known em { color: var(--muted); font-size: 0.86rem; }
.known li span:last-child { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); }

/* built list + legend */
.built { list-style: none; margin: 0; padding: 0; display: grid; }
.built li { display: grid; grid-template-columns: 0.9rem minmax(0, 1fr); gap: 0.7rem; padding: 0.62rem 0; border-bottom: 1px dashed var(--line); color: var(--fg); }
.built li::before { content: ""; width: 0.55rem; height: 0.55rem; margin-top: 0.55rem; border-radius: 50%; background: var(--glow); box-shadow: 0 0 10px var(--glow); }
.built li.wip::before { background: transparent; border: 1px solid var(--warn); box-shadow: none; }
.built li.todo::before { background: transparent; border: 1px solid var(--faint); box-shadow: none; }
.built small { color: var(--faint); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; margin-left: 0.4rem; white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: 1.2rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 1rem; }
.legend i { display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 50%; margin-right: 0.45rem; }

/* video */
.screen { position: relative; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.screen video { width: 100%; height: 100%; object-fit: cover; }
.vid { position: relative; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #000; cursor: pointer; display: block; width: 100%; color: var(--fg); font: inherit; text-align: left; }
.vid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: 0.88; transition: opacity 0.3s, transform 0.9s; }
.vid:hover img { opacity: 1; transform: scale(1.03); }
.vid .play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(1, 5, 10, 0.55); border: 1px solid rgba(227, 239, 242, 0.6); display: grid; place-items: center; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); transition: transform 0.3s, border-color 0.3s; }
.vid:hover .play { transform: scale(1.08); border-color: var(--glow); }
.vid .play::before { content: ""; margin-left: 5px; border-left: 18px solid var(--fg); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.thumbs .vid .play { width: 44px; height: 44px; margin: -36px 0 0 -22px; }
.thumbs .vid .play::before { margin-left: 3px; border-left-width: 13px; border-top-width: 8px; border-bottom-width: 8px; }
.vid .play.big { width: 88px; height: 88px; margin: -44px 0 0 -44px; }
.vid .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem 1rem 0.9rem; background: linear-gradient(180deg, transparent, rgba(1, 5, 10, 0.9)); display: flex; justify-content: space-between; gap: 1rem; align-items: end; font-size: 0.95rem; }
.vid .cap small { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-align: right; }
@media (max-width: 520px) { .art .cap, .vid .cap { flex-direction: column; align-items: flex-start; gap: 0.2rem; } .art .cap small, .vid .cap small { text-align: left; } .thumbs .art .cap small, .thumbs .vid .cap small { display: none; } }
.caption { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 0.8rem; }

/* roadmap + promises */
.road { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: st; }
@media (min-width: 860px) { .road { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 600px) and (max-width: 859px) { .road { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; } }
.road li { counter-increment: st; padding: 1.4rem 1.2rem 1.4rem 0; border-top: 1px solid var(--line-2); }
.road li::before { content: "STAGE " counter(st); display: block; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; color: var(--faint); margin-bottom: 0.6rem; }
.road li.now { border-top: 2px solid var(--glow); }
.road li.now::before { content: "STAGE " counter(st) " · NOW"; color: var(--glow); }
.road p { margin: 0.4rem 0 0; font-size: 0.94rem; }
.promise { margin-top: 3rem; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 760px) { .promise { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.promise div { background: var(--deep); padding: 1.5rem; }
.promise h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.promise p { margin: 0; font-size: 0.95rem; }

/* CTA / community */
.cta { position: relative; isolation: isolate; overflow: hidden; border: 1px solid rgba(68, 224, 228, 0.3); border-radius: calc(var(--radius) + 6px); padding: clamp(2rem, 5vw, 4rem); background: radial-gradient(90% 120% at 100% 0%, rgba(68, 224, 228, 0.18), transparent 60%), var(--deep); display: grid; gap: 2rem; }
@media (min-width: 960px) { .cta { grid-template-columns: 1.2fr 1fr; align-items: center; } }
.cta > * { min-width: 0; }
.socials { list-style: none; margin: 0; padding: 0; display: grid; }
.socials a { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 0.8rem 0; border-top: 1px solid var(--line); color: var(--fg); text-decoration: none; }
.socials a span:last-child { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.socials a:hover span:first-child { color: var(--glow); }

/* gallery */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.6rem; align-items: center; }
.filters button { min-height: 40px; font: inherit; font-size: 0.88rem; color: var(--fg); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 0.45rem 1rem; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--glow); color: var(--abyss); border-color: var(--glow); font-weight: 600; }
.filters .count { margin-left: auto; font-family: var(--mono); font-size: 0.74rem; color: var(--muted); }
.masonry { columns: 3 320px; column-gap: 1rem; }
.masonry > * { break-inside: avoid; margin-bottom: 1rem; }
.masonry .art img, .masonry .vid img { aspect-ratio: auto; height: auto; }

/* lightbox + video dialog */
dialog.lb, dialog.vd { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100vh; margin: 0; color: var(--fg); }
dialog.lb::backdrop, dialog.vd::backdrop { background: rgba(0, 3, 6, 0.94); }
.lb-inner, .vd-inner { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); gap: 10px; }
.lb-top { display: flex; justify-content: flex-end; gap: 0.5rem; }
.lb-top button, .lb-nav button { min-width: 46px; min-height: 46px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(1, 5, 10, 0.6); color: var(--fg); cursor: pointer; font: 500 0.8rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; padding: 0 1rem; }
.lb-top button:hover, .lb-nav button:hover { border-color: var(--glow); color: var(--glow); }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; }
.lb-stage img, .vd-inner video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.vd-inner video { width: min(100%, 1600px); aspect-ratio: 16 / 9; background: #000; margin: auto; }
.lb-nav { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.lb-nav button { pointer-events: auto; font-size: 1.2rem; padding: 0; width: 52px; height: 52px; }
.lb-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: 0.95rem; }
.lb-bottom small { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* zones list */
.zones { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.zones li { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1.2rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.zones .d { font-family: var(--mono); font-size: 0.86rem; color: var(--glow); }
.zones h3 { font-size: 1.2rem; margin-bottom: 0.2rem; }
.zones p { margin: 0; font-size: 0.95rem; }
@media (max-width: 520px) { .zones li { grid-template-columns: 1fr; gap: 0.2rem; } }

/* dev log */
.log { border-top: 1px solid var(--line); }
.entry { display: grid; gap: 0.6rem 2.5rem; padding: 2.4rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .entry { grid-template-columns: 13rem minmax(0, 1fr); } }
.entry > * { min-width: 0; }
.entry .when { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.entry .when b { display: block; color: var(--glow); font-weight: 500; font-size: 0.9rem; margin-bottom: 0.2rem; }
.entry h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); margin-bottom: 0.8rem; }
.entry ul { padding-left: 1.1rem; display: grid; gap: 0.3rem; margin: 0 0 1rem; color: var(--fg); }
.entry .thumbs { margin: 1.2rem 0; }
.tag { display: inline-block; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--glow); border: 1px solid rgba(68, 224, 228, 0.35); border-radius: 4px; padding: 0.12rem 0.45rem; margin: 0 0.35rem 0.4rem 0; }

/* team */
.team-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.member { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.2rem; align-items: start; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(120% 90% at 0% 0%, rgba(68, 224, 228, 0.08), transparent 60%), var(--card); }
.member .face { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(68, 224, 228, 0.45); background: radial-gradient(circle at 35% 30%, #0b3a47, #01070c 70%); font-family: var(--display); font-weight: 300; font-size: 1.5rem; color: var(--glow); }
.member .role-line { margin: 0.2rem 0 0.7rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--glow); }
.member p { font-size: 0.95rem; margin-bottom: 0.8rem; }
.member.open { border-style: dashed; border-color: rgba(68, 224, 228, 0.35); }
.skills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.skills li { font-size: 0.78rem; padding: 0.2rem 0.6rem; border: 1px solid var(--line-2); border-radius: 999px; color: var(--fg); }
@media (max-width: 420px) { .member { grid-template-columns: 1fr; } }

/* careers */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 380px) { .facts { grid-template-columns: 1fr; } }
.facts div { background: var(--deep); padding: 1.2rem 1.3rem; }
.facts dt { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.facts dd { margin: 0.3rem 0 0; color: var(--fg); }
.roles-list { display: grid; gap: 0.8rem; }
.role { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.role summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.4rem 1.2rem; align-items: center; padding: 1.2rem 1.3rem; }
.role summary::-webkit-details-marker { display: none; }
.role summary h3 { font-size: 1.3rem; }
.role .meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.45rem 1rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.role .meta .disc { color: var(--glow); }
.role .chev { grid-row: 1; grid-column: 2; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--glow); }
.role[open] .chev::after { content: " −"; } .role:not([open]) .chev::after { content: " +"; }
.role[open] { border-color: rgba(68, 224, 228, 0.4); }
.role .body { padding: 0 1.3rem 1.4rem; display: grid; gap: 1.4rem; }
@media (min-width: 900px) { .role .body { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.role .body h4 { margin: 0 0 0.5rem; font-family: var(--mono); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--glow); }
.role .body ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.35rem; font-size: 0.95rem; }
.role .apply { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; padding-top: 0.6rem; border-top: 1px dashed var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: st; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { counter-increment: st; padding: 1.2rem 1.2rem 1.2rem 0; border-top: 1px solid var(--line-2); }
.steps li::before { content: counter(st, decimal-leading-zero); display: block; font-family: var(--mono); font-size: 0.8rem; color: var(--glow); margin-bottom: 0.5rem; }
.steps p { margin: 0.3rem 0 0; font-size: 0.94rem; }
.apply-wrap { display: grid; gap: 2.5rem; }
@media (min-width: 980px) { .apply-wrap { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; } }
.apply-wrap > * { min-width: 0; }
form.apply { display: grid; gap: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 2rem); background: var(--card); }
.row2 { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; min-width: 0; }
.field label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field label i { font-style: normal; color: var(--glow); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--fg); background: #020b12; border: 1px solid rgba(160, 220, 230, 0.26); border-radius: 8px; padding: 0.72rem 0.85rem; width: 100%; min-width: 0; }
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--glow); box-shadow: 0 0 0 3px var(--glow-dim); }
.field .hint { font-size: 0.82rem; color: var(--faint); }
.field.bad input, .field.bad select, .field.bad textarea { border-color: var(--warn); }
.field .err { font-size: 0.82rem; color: var(--warn); }
.check { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; font-size: 0.94rem; color: var(--text); }
.check input { width: 1.15rem; height: 1.15rem; margin-top: 0.22rem; accent-color: var(--glow); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.form-actions .btn[disabled] { opacity: 0.6; cursor: progress; }
.form-status { margin: 0; padding: 0.75rem 0.9rem; border: 1px solid var(--warn); border-radius: 8px; color: #f3d7ad; background: rgba(232, 166, 74, 0.08); font-size: 0.92rem; }
.done { border: 1px solid rgba(68, 224, 228, 0.4); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 2rem); background: radial-gradient(120% 90% at 100% 0%, rgba(68, 224, 228, 0.1), transparent 60%), var(--card); display: grid; gap: 1rem; }
.side-note { display: grid; gap: 1rem; }
.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; background: var(--card); display: grid; gap: 0.8rem; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.05rem 0; font-family: var(--display); font-size: 1.15rem; color: var(--fg); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--glow); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 1.1rem; max-width: 46rem; }

/* press kit */
.factsheet { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.65rem 2rem; }
.factsheet dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); padding-top: 0.2rem; }
.factsheet dd { margin: 0; color: var(--fg); }
@media (max-width: 520px) { .factsheet { grid-template-columns: 1fr; gap: 0.15rem; } .factsheet dd { margin-bottom: 0.8rem; } }
.template { margin: 0; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 8px; background: #020b12; font-family: var(--mono); font-size: 0.82rem; color: var(--text); white-space: pre-wrap; }
.downloads { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.dl { display: grid; gap: 0.7rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); text-decoration: none; color: var(--fg); }
.dl:hover { border-color: rgba(68, 224, 228, 0.45); color: var(--fg); }
.dl .thumb { aspect-ratio: 16 / 10; display: grid; place-items: center; border-radius: 8px; background: repeating-conic-gradient(#0b1c28 0 25%, #071520 0 50%) 0 0 / 18px 18px; overflow: hidden; }
.dl .thumb img { max-height: 80%; max-width: 80%; width: auto; object-fit: contain; }
.dl .thumb.photo img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: cover; }
.dl small { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--glow); }

/* legal pages */
.legal { display: grid; gap: 2.5rem; }
@media (min-width: 1000px) { .legal { grid-template-columns: 15rem minmax(0, 1fr); align-items: start; } }
.legal > * { min-width: 0; }
.toc { position: sticky; top: calc(var(--bar-h) + 1.5rem); display: grid; gap: 0.1rem; font-size: 0.9rem; }
.toc a { color: var(--text); text-decoration: none; padding: 0.35rem 0; border-left: 2px solid var(--line); padding-left: 0.8rem; }
.toc a:hover { color: var(--glow); border-color: var(--glow); }
@media (max-width: 999px) { .toc { position: static; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; } }
.doc { max-width: 46rem; }
.doc h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); margin: 2.6rem 0 0.9rem; scroll-margin-top: calc(var(--bar-h) + 1.5rem); }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 1.15rem; margin: 1.6rem 0 0.6rem; }
.doc ul { padding-left: 1.2rem; display: grid; gap: 0.35rem; margin: 0 0 1rem; }
.doc table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1.4rem; font-size: 0.92rem; }
.doc .tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; margin: 0.5rem 0 1.4rem; }
.doc .tablewrap table { margin: 0; }
.doc th, .doc td { text-align: left; padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); background: var(--deep); }
.doc tr:last-child td { border-bottom: 0; }
.doc code { font-family: var(--mono); font-size: 0.85em; color: var(--glow); }
.updated { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.note { border-left: 2px solid var(--glow); padding: 0.2rem 0 0.2rem 1rem; color: var(--fg); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); background: var(--abyss); padding-block: 4rem calc(2rem + env(safe-area-inset-bottom, 0px)); }
.foot { display: grid; gap: 2.5rem; }
@media (max-width: 899px) { .foot { grid-template-columns: 1fr 1fr; } .foot .brandcol { grid-column: 1 / -1; } }
@media (min-width: 900px) { .foot { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); } }
.foot .brandcol { display: grid; gap: 1rem; align-content: start; }
.foot .brandcol .emb { display: flex; align-items: center; gap: 0.8rem; }
.foot .brandcol .emb img { width: 54px; height: 54px; border-radius: 50%; }
.foot .brandcol .emb span { font-family: var(--display); font-weight: 300; letter-spacing: 0.42em; font-size: 1.2rem; color: var(--fg); }
.foot .brandcol p { font-size: 0.9rem; margin: 0; max-width: 22rem; }
.foot .studio { display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none; color: var(--muted); font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; }
.foot .studio img { width: 74px; height: auto; }
.foot h4 { font-family: var(--mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--glow); margin-bottom: 0.8rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.foot li a, .foot li button { display: inline-block; padding: 0.3rem 0; color: var(--text); text-decoration: none; font: inherit; font-size: 0.92rem; background: none; border: 0; cursor: pointer; text-align: left; }
.foot li a:hover, .foot li button:hover { color: var(--glow); }
.foot-base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: center; font-size: 0.8rem; color: var(--faint); }
.foot-base p { margin: 0; max-width: 46rem; }
.marks { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.marks .badge { opacity: 1 !important; transform: none !important; min-height: 46px; padding: 0.4rem 0.8rem; }
.marks .badge.has-logo img { height: 36px; }

/* ---------- cookie consent ---------- */
.consent { position: fixed; z-index: 90; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); margin-left: auto; bottom: max(16px, env(safe-area-inset-bottom, 0px)); max-width: 560px; padding: 1.3rem 1.4rem; border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(3, 14, 22, 0.97); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55); display: grid; gap: 0.9rem; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.consent h2 { font-family: var(--display); font-weight: 400; font-size: 1.2rem; letter-spacing: 0.03em; }
.consent p { margin: 0; font-size: 0.9rem; }
.consent .ctas .btn { flex: 1 1 auto; }
dialog.prefs { width: min(560px, calc(100vw - 32px)); border: 1px solid var(--line-2); border-radius: var(--radius); background: #030e16; color: var(--text); padding: 0; }
dialog.prefs::backdrop { background: rgba(0, 3, 6, 0.8); }
.prefs-in { padding: 1.5rem; display: grid; gap: 1rem; }
.prefs-in h2 { font-size: 1.5rem; }
.toggle { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.3rem 1rem; padding: 1rem 0; border-top: 1px solid var(--line); align-items: center; }
.toggle b { color: var(--fg); }
.toggle p { grid-column: 1; margin: 0; font-size: 0.88rem; }
.toggle input { grid-row: 1 / span 2; grid-column: 2; width: 46px; height: 26px; appearance: none; -webkit-appearance: none; border-radius: 999px; background: #18313d; border: 1px solid var(--line-2); position: relative; cursor: pointer; transition: background 0.2s; }
.toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--fg); transition: transform 0.2s; }
.toggle input:checked { background: var(--glow); border-color: var(--glow); }
.toggle input:checked::after { transform: translateX(20px); background: var(--abyss); }
.toggle input:disabled { opacity: 0.6; cursor: not-allowed; }

/* reveal */
@media (prefers-reduced-motion: no-preference) {
  .reveal { transition: transform 1s cubic-bezier(.2, .7, .2, 1), opacity 1s; }
  .reveal.pre { transform: translateY(22px); opacity: 0; }
}

/* careers: CV upload */
.role .meta .cvreq { color: var(--warn); }
.field input[type="file"] { padding: 0.55rem; cursor: pointer; color: var(--text); }
.field input[type="file"]::file-selector-button { font: 600 0.85rem var(--body); color: var(--abyss); background: var(--glow); border: 0; border-radius: 999px; padding: 0.5rem 1rem; margin-right: 0.9rem; cursor: pointer; }
.field.need input[type="file"] { border-color: rgba(68, 224, 228, 0.55); }

/* ---------- v5.2: newsletter, depth gauge, FAQ, credits, dev log posts, 3D viewer, languages ---------- */
.news-box { margin-top: 1.5rem; display: grid; gap: 1.5rem; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); background: radial-gradient(90% 140% at 0% 100%, rgba(68, 224, 228, 0.12), transparent 60%), var(--card); }
@media (min-width: 960px) { .news-box { grid-template-columns: 1fr 1fr; align-items: center; } }
.news-box > * { min-width: 0; }
.news { display: grid; gap: 0.6rem; }
.field-label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.news-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.news-row input { flex: 1 1 14rem; min-width: 0; font: inherit; font-size: 1rem; color: var(--fg); background: #020b12; border: 1px solid rgba(160, 220, 230, 0.26); border-radius: 999px; padding: 0.72rem 1.1rem; }
.news-row input:focus { outline: none; border-color: var(--glow); box-shadow: 0 0 0 3px var(--glow-dim); }
.news-row .btn { flex: 0 0 auto; }
.news.bad .news-row input { border-color: var(--warn); }
.news-note { margin: 0; font-size: 0.84rem; color: var(--faint); }
.news-status { margin: 0; font-size: 0.92rem; color: var(--glow); }
.news-status.err { color: var(--warn); }

.gauge { position: fixed; z-index: 40; right: max(18px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); display: grid; justify-items: end; gap: 0.25rem; pointer-events: none; opacity: 0; transition: opacity 0.5s; text-align: right; }
.gauge.on { opacity: 1; }
.gauge .g-label { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.gauge .g-num { font-family: var(--mono); font-weight: 500; font-size: 1.05rem; color: var(--glow); text-shadow: 0 0 12px rgba(68, 224, 228, 0.5); font-variant-numeric: tabular-nums; }
.gauge .g-zone { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); max-width: 9rem; }
.gauge .g-track { position: relative; width: 2px; height: 26vh; margin-top: 0.5rem; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.gauge .g-track i { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: linear-gradient(180deg, var(--glow), #0a5b6a); transform-origin: top; transform: scaleY(0); }
@media (max-width: 1279px) {
  .gauge { top: auto; bottom: max(14px, env(safe-area-inset-bottom, 0px)); right: max(14px, env(safe-area-inset-right, 0px)); transform: none; grid-auto-flow: column; align-items: baseline; gap: 0.5rem; padding: 0.4rem 0.8rem; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(1, 5, 10, 0.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .gauge .g-track, .gauge .g-label { display: none; }
  .gauge .g-num { font-size: 0.9rem; }
  .gauge .g-zone { font-size: 0.58rem; }
}
body:has(.consent:not([hidden])) .gauge { opacity: 0 !important; }

.faq-wrap { display: grid; gap: 2.5rem; }
@media (min-width: 1000px) { .faq-wrap { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; } .faq-wrap .side-note { position: sticky; top: calc(var(--bar-h) + 1.5rem); } }
.faq-cat { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); margin: 2.5rem 0 0.6rem; }
.faq-col > .faq-cat:first-child { margin-top: 0; }

.credits { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cr-dept { background: var(--deep); padding: 1.6rem clamp(1.2rem, 3vw, 2rem); display: grid; gap: 1rem; }
@media (min-width: 800px) { .cr-dept { grid-template-columns: 14rem minmax(0, 1fr); align-items: start; } }
.cr-dept h2 { font-size: 1.25rem; padding-top: 0.6rem; }
.cr-dept ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.cr-dept li > a, .cr-dept li > span, .cr-dept li.cr-open { display: flex; align-items: center; gap: 0.9rem; text-decoration: none; color: inherit; }
.cr-dept li > a:hover b { color: var(--glow); }
.cr-dept b { display: block; color: var(--fg); font-family: var(--display); font-weight: 400; font-size: 1.1rem; letter-spacing: 0.03em; }
.cr-dept small { display: block; font-size: 0.86rem; color: var(--muted); }
.cr-dept .face { width: 52px; height: 52px; font-size: 1.05rem; flex: 0 0 auto; }
.cr-tools li span { display: block; }
.face.photo { padding: 0; overflow: hidden; }
.face.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.posts { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.post-card .tag { margin-bottom: 0; }
.post { max-width: 50rem; }
.post-body > p, .post-body > ul { max-width: 44rem; }
.post-body h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); margin: 2.4rem 0 0.8rem; }
.post-body ul { padding-left: 1.1rem; display: grid; gap: 0.35rem; color: var(--fg); margin: 0 0 1rem; }
.post-body .thumbs, .post-body > .art, .post-body > .vid { margin: 1.4rem 0; }
.post-body .thumbs + .thumbs { margin-top: -0.6rem; }
.post-meta { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 1.6rem; }
.post-meta .tag { margin: 0; }
.share { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 1.2rem; }
.post-nav { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.post-nav a { display: grid; gap: 0.2rem; text-decoration: none; color: var(--fg); padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.post-nav a:hover { border-color: rgba(68, 224, 228, 0.45); color: var(--fg); }
.post-nav small { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--glow); }
@media (max-width: 560px) { .post-nav { grid-template-columns: 1fr; } .post-nav a[style] { text-align: left !important; } }

.viewer { margin-top: 1rem; position: relative; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); overflow: hidden; background: radial-gradient(70% 90% at 50% 40%, rgba(68, 224, 228, 0.14), transparent 70%), radial-gradient(120% 100% at 50% 120%, #04202e, var(--abyss)); }
.viewer model-viewer { width: 100%; height: clamp(360px, 60vh, 640px); --poster-color: transparent; background: transparent; }
.viewer-wait { display: grid; gap: 1.5rem; align-items: center; padding: clamp(1.5rem, 4vw, 2.5rem); }
@media (min-width: 800px) { .viewer-wait { grid-template-columns: 1fr 1fr; } }
.viewer-ghost { width: 100%; max-height: 260px; object-fit: contain; opacity: 0.45; filter: grayscale(0.5) blur(1px); }
.viewer .v-help { position: absolute; left: 1rem; bottom: 0.9rem; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); pointer-events: none; }
.viewer .chip { position: absolute; top: 1rem; left: 1rem; z-index: 2; }

.langs { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; align-items: center; font-size: 0.86rem; }
.langs span { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.langs a { color: var(--text); text-decoration: none; }
.langs a:hover { color: var(--glow); }
.langs a[aria-current="true"] { color: var(--glow); }
.lang-note { margin: 0 0 0.6rem; font-size: 0.82rem; color: var(--faint); }

/* v5.3: Descent: Into the Abyss lockup */
.hero .subtitle { margin: -0.2rem 0 0; display: flex; align-items: center; gap: 1rem; font-family: var(--body); font-weight: 300; font-size: clamp(0.85rem, 0.6rem + 1.1vw, 1.45rem); letter-spacing: 0.62em; text-transform: uppercase; color: #baf0f4; text-shadow: 0 0 18px rgba(68, 224, 228, 0.45); }
.hero .subtitle::before, .hero .subtitle::after { content: ""; width: clamp(1.6rem, 4vw, 3.4rem); height: 1px; background: var(--glow); opacity: 0.85; }
.hero .subtitle::before { display: none; }
.foot .foot-sub { margin: -0.6rem 0 0 4.2rem; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--glow); }
@media (max-width: 700px) { .hero .subtitle { letter-spacing: 0.42em; } }

/* =====================================================================
   RAVIX GAMES studio theme. Loaded after the shared component sheet.
   Display: Barlow Condensed · HUD/labels: Chakra Petch · Text: Instrument Sans
   ===================================================================== */
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("fonts/chakra-petch-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("fonts/chakra-petch-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

body.rx {
  --abyss: #08080a; --deep: #0e0e12; --surface: #141419; --card: #121217; --card-2: #19191f;
  --fg: #f6f6f8; --text: #c6c7cf; --muted: #8e909b; --faint: #5f616c;
  --line: rgba(255, 255, 255, 0.08); --line-2: rgba(255, 255, 255, 0.16);
  --red: #ff2e3a; --red-2: #d3121f; --red-dim: rgba(255, 46, 58, 0.14); --teal: #44e0e4;
  --glow: var(--red); --glow-dim: var(--red-dim); --warn: #ffb02e;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --hud: "Chakra Petch", "Eurostile", "Segoe UI", sans-serif;
  --body: "Instrument Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: var(--hud);
  --radius: 4px; --wrap: 1320px; --bar-h: 72px;
  --cut: 14px;
  background: var(--abyss); color: var(--text);
}
body.rx ::selection { background: var(--red); color: #fff; }
body.rx h1, body.rx h2, body.rx h3 { font-family: var(--display); color: var(--fg); text-transform: uppercase; letter-spacing: 0.005em; }
body.rx h2 { font-weight: 800; font-size: clamp(2.4rem, 1.4rem + 4.2vw, 5rem); line-height: 0.92; }
body.rx h3 { font-weight: 700; font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.8rem); line-height: 1; letter-spacing: 0.01em; }
body.rx p { color: var(--text); }
body.rx a { color: var(--fg); }
body.rx p a, body.rx .doc a, body.rx dd a, body.rx .caption a, body.rx .news-note a, body.rx .faq a { color: #ff6b74; text-decoration-thickness: 1px; }
body.rx .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
body.rx strong { color: var(--fg); }

/* ---------- buttons: angular, HUD-style ---------- */
body.rx .btn { position: relative; overflow: hidden; border: 0; border-radius: 0; min-height: 50px; padding: 0.85rem 1.5rem; background: var(--red); color: #fff;
  font: 600 0.82rem/1 var(--hud); letter-spacing: 0.16em; text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); transition: background 0.25s, color 0.25s, transform 0.25s; }
body.rx .btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.7s cubic-bezier(.2, .7, .2, 1); }
body.rx .btn:hover { background: #ff4651; color: #fff; box-shadow: none; transform: translateY(-2px); }
body.rx .btn:hover::after { transform: translateX(120%); }
body.rx .btn.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32); }
body.rx .btn.ghost::before { content: ""; position: absolute; right: 0; top: 0; width: var(--cut); height: var(--cut); background: linear-gradient(225deg, rgba(255, 255, 255, 0.32) 50%, transparent 50%); }
body.rx .btn.ghost:hover { background: rgba(255, 255, 255, 0.06); color: var(--fg); }
body.rx .btn.small { min-height: 42px; padding: 0.6rem 1.1rem; font-size: 0.74rem; --cut: 10px; }
body.rx .btn svg { width: 16px; height: 16px; }
body.rx .textlink { font-family: var(--hud); color: #ff6b74; }

/* ---------- labels and headings ---------- */
.rx-label { display: flex; align-items: center; gap: 0.8rem; margin: 0 0 1.1rem; font: 600 0.78rem/1 var(--hud); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.rx-label b { display: inline-grid; place-items: center; min-width: 2.2rem; height: 1.6rem; padding: 0 0.45rem; color: #fff; background: var(--red); font-weight: 600; letter-spacing: 0.08em;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px)); }
.rx-label span::before { content: ""; display: inline-block; width: 2rem; height: 1px; margin-right: 0.8rem; vertical-align: middle; background: var(--line-2); }
.rx-head { display: grid; gap: 0; margin-bottom: clamp(2rem, 4vw, 3.2rem); max-width: 54rem; }
.rx-head h2 { margin: 0; }
.rx-lede { font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.18rem); line-height: 1.6; max-width: 40rem; margin: 1.2rem 0 0; color: var(--text); }
.rx-head-row { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.rx-head-row .rx-head { margin-bottom: 0; }
.rx-meta { display: block; font: 600 0.72rem/1.3 var(--hud); letter-spacing: 0.16em; text-transform: uppercase; color: #ff6b74; }
.rx-prose p { margin: 0 0 1.1rem; }
.rx-prose .btn { margin-top: 0.6rem; }

/* ---------- header ---------- */
body.rx .bar { height: var(--bar-h); transition: background 0.35s, border-color 0.35s, height 0.35s; }
body.rx .bar.solid, body.rx:not(.has-hero) .bar { background: rgba(8, 8, 10, 0.82); border-bottom-color: var(--line); }
body.rx .bar .wrap { gap: 2rem; }
.rx-brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--fg); flex: 0 0 auto; }
.rx-brand img { width: 34px; height: auto; }
.rx-brand span { font: 800 1.35rem/1 var(--display); letter-spacing: 0.06em; color: var(--fg); }
.rx-brand i { font-style: normal; color: var(--red); margin-left: 0.35rem; }
body.rx .nav { gap: 0; }
body.rx .nav a { position: relative; padding: 0.6rem 0.85rem; border-radius: 0; color: var(--text); font: 600 0.78rem/1 var(--hud); letter-spacing: 0.16em; text-transform: uppercase; background: none; }
body.rx .nav a::after { content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.25rem; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.3s cubic-bezier(.2, .7, .2, 1); }
body.rx .nav a:hover { color: var(--fg); background: none; }
body.rx .nav a:hover::after, body.rx .nav a[aria-current="page"]::after { transform: scaleX(1); }
body.rx .nav a[aria-current="page"] { color: var(--fg); }
body.rx .menu-btn { border-radius: 0; font-family: var(--hud); clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); background: rgba(255, 255, 255, 0.06); border-color: transparent; }
@media (max-width: 1180px) { body.rx .nav, body.rx .rx-bar-cta { display: none; } body.rx .menu-btn { display: inline-flex; align-items: center; } }
body.rx .drawer { inset: var(--bar-h) 0 0 0; padding: 2rem max(var(--gutter), env(safe-area-inset-left, 0px)); background: rgba(8, 8, 10, 0.98); align-content: start; gap: 0; overflow-y: auto;
  background-image: radial-gradient(80% 60% at 100% 100%, rgba(255, 46, 58, 0.16), transparent 60%); }
body.rx .drawer > a { display: flex; align-items: baseline; gap: 1rem; padding: 0.55rem 0; border: 0; font: 800 clamp(2.2rem, 9vw, 3.4rem)/1 var(--display); text-transform: uppercase; color: var(--fg); }
body.rx .drawer > a small { font: 600 0.75rem/1 var(--hud); color: var(--red); letter-spacing: 0.1em; }
body.rx .drawer > a[aria-current="page"] { color: var(--red); }
.rx-drawer-foot { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; font: 600 0.75rem var(--hud); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
body.rx .drawer .btn { margin-top: 0; }

/* ---------- shared decorations ---------- */
.rx-grain { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"); }
.rx-hud { position: absolute; z-index: 3; width: 26px; height: 26px; pointer-events: none; border-color: rgba(255, 255, 255, 0.45); border-style: solid; border-width: 0; }
.rx-hud.tl { top: calc(var(--bar-h) + 18px); left: 18px; border-top-width: 1px; border-left-width: 1px; }
.rx-hud.tr { top: calc(var(--bar-h) + 18px); right: 18px; border-top-width: 1px; border-right-width: 1px; }
.rx-hud.bl { bottom: 18px; left: 18px; border-bottom-width: 1px; border-left-width: 1px; }
.rx-hud.br { bottom: 18px; right: 18px; border-bottom-width: 1px; border-right-width: 1px; }
@media (max-width: 700px) { .rx-hud { display: none; } }
[data-speed], [data-mouse] { will-change: transform; }

/* ---------- home hero ---------- */
.rx-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; display: grid; align-items: center; background: #050507; }
@supports (height: 100svh) { .rx-hero { min-height: 100svh; } }
.rx-hero-bg { position: absolute; inset: -12% 0; z-index: -3; }
.rx-hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.5) brightness(0.55) contrast(1.1); }
.rx-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(55% 70% at 18% 55%, rgba(255, 46, 58, 0.18), transparent 70%),
  linear-gradient(90deg, rgba(5, 5, 7, 0.92) 0%, rgba(5, 5, 7, 0.55) 45%, rgba(5, 5, 7, 0.15) 75%),
  linear-gradient(180deg, rgba(5, 5, 7, 0.7) 0%, transparent 25%, transparent 70%, var(--abyss) 100%); }
.rx-hero-fox { position: absolute; z-index: -1; right: -4vw; top: 50%; width: min(52vw, 760px); transform: translateY(-50%); opacity: 0.09; filter: grayscale(1) brightness(2.2); pointer-events: none; }
.rx-hero-fox img { width: 100%; height: auto; }
.rx-hero-in { position: relative; z-index: 2; padding-top: calc(var(--bar-h) + 3rem); padding-bottom: 7rem; display: grid; justify-items: start; }
.rx-hero-in.center { justify-items: center; text-align: center; }
.rx-hero-in.center .rx-label span::before { display: none; }
.rx-hero-title { margin: 0; font-weight: 800; font-size: clamp(3.2rem, 1.2rem + 8.4vw, 9.4rem); line-height: 0.86; letter-spacing: -0.01em; display: grid; }
.rx-hero-title span { display: block; }
.rx-hero-title .hl { color: transparent; -webkit-text-stroke: 2px var(--red); text-stroke: 2px var(--red); }
@supports not (-webkit-text-stroke: 1px red) { .rx-hero-title .hl { color: var(--red); } }
.rx-hero .rx-lede { color: #dcdde3; max-width: 34rem; }
.rx-hero .ctas { margin-top: 2rem; }
.rx-hero-side { position: absolute; z-index: 2; right: 26px; bottom: 7rem; display: flex; gap: 1.6rem; writing-mode: vertical-rl; transform: rotate(180deg); font: 600 0.68rem/1 var(--hud); letter-spacing: 0.32em; color: var(--faint); }
.rx-scroll { position: absolute; z-index: 3; left: 50%; bottom: 1.6rem; transform: translateX(-50%); display: grid; justify-items: center; gap: 0.6rem; text-decoration: none; font: 600 0.65rem var(--hud); letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.rx-scroll i { width: 1px; height: 46px; background: linear-gradient(var(--red), transparent); position: relative; overflow: hidden; }
.rx-scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: rxdrop 1.8s cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes rxdrop { to { top: 110%; } }
.rx-bubbles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.rx-bubbles i { position: absolute; bottom: -20px; width: 6px; height: 6px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.06); animation: rxrise linear infinite; }
.rx-bubbles i:nth-child(3n) { width: 10px; height: 10px; } .rx-bubbles i:nth-child(4n) { width: 3px; height: 3px; }
.rx-bubbles i:nth-child(1) { left: 8%; animation-duration: 14s; animation-delay: -2s; } .rx-bubbles i:nth-child(2) { left: 16%; animation-duration: 19s; animation-delay: -9s; }
.rx-bubbles i:nth-child(3) { left: 23%; animation-duration: 12s; animation-delay: -5s; } .rx-bubbles i:nth-child(4) { left: 31%; animation-duration: 22s; animation-delay: -12s; }
.rx-bubbles i:nth-child(5) { left: 38%; animation-duration: 16s; animation-delay: -1s; } .rx-bubbles i:nth-child(6) { left: 45%; animation-duration: 20s; animation-delay: -15s; }
.rx-bubbles i:nth-child(7) { left: 52%; animation-duration: 13s; animation-delay: -7s; } .rx-bubbles i:nth-child(8) { left: 58%; animation-duration: 24s; animation-delay: -3s; }
.rx-bubbles i:nth-child(9) { left: 64%; animation-duration: 17s; animation-delay: -11s; } .rx-bubbles i:nth-child(10) { left: 70%; animation-duration: 15s; animation-delay: -6s; }
.rx-bubbles i:nth-child(11) { left: 76%; animation-duration: 21s; animation-delay: -14s; } .rx-bubbles i:nth-child(12) { left: 82%; animation-duration: 12s; animation-delay: -8s; }
.rx-bubbles i:nth-child(13) { left: 88%; animation-duration: 18s; animation-delay: -4s; } .rx-bubbles i:nth-child(14) { left: 93%; animation-duration: 23s; animation-delay: -10s; }
.rx-bubbles i:nth-child(15) { left: 12%; animation-duration: 26s; animation-delay: -18s; } .rx-bubbles i:nth-child(16) { left: 41%; animation-duration: 27s; animation-delay: -20s; }
.rx-bubbles i:nth-child(17) { left: 67%; animation-duration: 25s; animation-delay: -16s; } .rx-bubbles i:nth-child(18) { left: 97%; animation-duration: 19s; animation-delay: -13s; }
@keyframes rxrise { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; } 50% { transform: translate(12px, -55vh); } 100% { transform: translate(-8px, -115vh); opacity: 0; } }

/* game hero (Descent page) */
.rx-game-hero::before { background: radial-gradient(60% 60% at 50% 60%, rgba(1, 5, 10, 0.2), rgba(1, 5, 10, 0.65) 70%), linear-gradient(180deg, rgba(1, 5, 10, 0.8) 0%, rgba(1, 5, 10, 0.1) 30%, rgba(1, 5, 10, 0.5) 70%, var(--abyss) 100%); }
.rx-game-hero .rx-hero-bg img { filter: saturate(0.9) brightness(0.8); }
.rx-game-logo { width: min(100%, 640px); height: auto; margin: 0.4rem 0 1.4rem; filter: drop-shadow(0 8px 40px rgba(0, 0, 0, 0.7)); }
.rx-game-logo.big { width: min(94%, 920px); }
.rx-gh-tag { margin: 0; font: 600 0.82rem var(--hud); letter-spacing: 0.4em; text-transform: uppercase; color: #d7e9ee; }
.rx-game-hero .rx-label b { background: var(--teal); color: #02121a; }

/* ---------- ticker ---------- */
.rx-ticker { position: relative; z-index: 4; overflow: hidden; background: var(--red); color: #fff; border-block: 1px solid rgba(255, 255, 255, 0.18); transform: skewY(-1.2deg); margin: -1.2rem 0 0; }
.rx-ticker-in { display: flex; width: max-content; gap: 2rem; padding: 0.95rem 0; animation: rxmarq 38s linear infinite; font: 800 clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem)/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.rx-ticker-in span, .rx-ticker-in i { flex: 0 0 auto; }
.rx-ticker-in i { font-style: normal; opacity: 0.6; font-size: 0.7em; align-self: center; }
@keyframes rxmarq { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.rx-section { position: relative; padding-block: clamp(4.5rem, 10vw, 9rem); }
.rx-section.tight { padding-block: clamp(3rem, 6vw, 5rem); }
.rx-alt { background: var(--deep); }
.rx-alt::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent); }
.rx-alt > .wrap { position: relative; }
.rx-split { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
@media (min-width: 980px) { .rx-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.rx-split > * { min-width: 0; }

/* parallax band */
.rx-band { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(560px, 88vh, 900px); display: grid; align-items: center; clip-path: polygon(0 4vw, 100% 0, 100% calc(100% - 4vw), 0 100%); margin-block: -2vw; }
.rx-band.slim { min-height: clamp(460px, 70vh, 720px); }
.rx-band-bg { position: absolute; inset: -18% 0; z-index: -2; }
.rx-band-bg img { width: 100%; height: 100%; object-fit: cover; }
.rx-band-shade { position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 70% at 50% 55%, rgba(1, 5, 10, 0.25), rgba(1, 5, 10, 0.85) 80%), linear-gradient(180deg, rgba(1, 5, 10, 0.55), rgba(1, 5, 10, 0.2) 40%, rgba(1, 5, 10, 0.8)); }
.rx-band-in { display: grid; justify-items: center; text-align: center; padding-block: clamp(5rem, 10vw, 8rem); }
.rx-band-in.left { justify-items: start; text-align: left; }
.rx-band-in .rx-label b { background: var(--teal); color: #02121a; }
.rx-band-in .rx-label span::before { display: none; }
.rx-band-lede { margin: 0; max-width: 40rem; font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); color: #e4eef1; }
.rx-band-in.left .rx-band-lede { margin-top: 1.2rem; }
.rx-band-chip { position: absolute; z-index: 3; right: max(var(--gutter), env(safe-area-inset-right, 0px)); top: calc(4vw + 1.2rem); }
.rx-hero .rx-band-chip { top: calc(var(--bar-h) + 1.2rem); }
.rx-tags { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 1.6rem 0 2rem; padding: 0; }
.rx-tags li { font: 600 0.72rem var(--hud); letter-spacing: 0.14em; text-transform: uppercase; color: #dff3f6; padding: 0.45rem 0.8rem; border: 1px solid rgba(68, 224, 228, 0.4); background: rgba(1, 5, 10, 0.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.rx-band .ctas { justify-content: center; }
.rx-band-in.left .ctas { justify-content: flex-start; }
body.rx .chip { border-radius: 0; font-family: var(--hud); }

/* stats */
.rx-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.rx-stats div { background: var(--abyss); padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: 0.4rem; position: relative; }
.rx-stats div::before { content: ""; position: absolute; left: 0; top: 0; width: 36px; height: 2px; background: var(--red); }
.rx-stats b { font: 800 clamp(3rem, 2rem + 3vw, 4.8rem)/0.9 var(--display); color: var(--fg); }
.rx-stats b em { font-style: normal; color: var(--red); }
.rx-stats span { font: 600 0.72rem var(--hud); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* value / info cards */
.rx-values { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.rx-values.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.rx-ways { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.rx-value { position: relative; padding: 1.8rem 1.5rem 1.6rem; background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); display: grid; gap: 0.6rem; align-content: start;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); transition: border-color 0.3s, background 0.3s; transform-style: preserve-3d; }
.rx-value::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.5s cubic-bezier(.2, .7, .2, 1); }
.rx-value:hover { border-color: rgba(255, 46, 58, 0.35); }
.rx-value:hover::after { transform: scaleX(1); }
.rx-value > b { font: 800 2.6rem/1 var(--display); color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.28); }
.rx-value .k { font: 600 0.7rem var(--hud); letter-spacing: 0.18em; text-transform: uppercase; color: #ff6b74; }
.rx-value p { margin: 0; font-size: 0.95rem; }
.rx-value .ctas { margin-top: 0.6rem; }

/* team */
.rx-team { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.rx-member { position: relative; background: var(--card); border: 1px solid var(--line); overflow: hidden; display: grid; grid-template-rows: auto 1fr; transition: border-color 0.3s; transform-style: preserve-3d; }
.rx-member:hover { border-color: rgba(255, 46, 58, 0.4); }
.rx-face { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(80% 90% at 30% 20%, rgba(255, 46, 58, 0.28), transparent 60%), repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 12px), #0c0c10; }
.rx-face span { font: 800 clamp(5rem, 4rem + 4vw, 7.5rem)/1 var(--display); color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, 0.55); transition: transform 0.6s cubic-bezier(.2, .7, .2, 1); }
.rx-member:hover .rx-face span { transform: scale(1.08); -webkit-text-stroke-color: var(--red); }
.rx-face img { width: 100%; height: 100%; object-fit: cover; }
.rx-face::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, var(--card)); }
.rx-member-body { padding: 1.2rem 1.3rem 1.5rem; display: grid; gap: 0.5rem; align-content: start; }
.rx-member-body h3 { font-size: 2rem; }
.rx-member-body p { margin: 0; font-size: 0.93rem; }
body.rx .skills { margin-top: 0.4rem; }
body.rx .skills li { border-radius: 0; font: 600 0.68rem var(--hud); letter-spacing: 0.1em; text-transform: uppercase; border-color: var(--line-2); color: var(--text); }
.rx-member.open { border-style: dashed; border-color: rgba(255, 46, 58, 0.4); }
.rx-member.open .btn { justify-self: start; margin-top: 0.4rem; }

/* news */
.rx-news-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.rx-news { position: relative; background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: border-color 0.3s; transform-style: preserve-3d; }
.rx-news:hover { border-color: rgba(255, 46, 58, 0.4); }
.rx-news-img { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.rx-news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .7, .2, 1); filter: saturate(0.85); }
.rx-news:hover .rx-news-img img { transform: scale(1.06); }
.rx-news-img .chip { position: absolute; left: 0.8rem; top: 0.8rem; }
.rx-news-body { padding: 1.2rem 1.3rem 1.5rem; display: grid; gap: 0.55rem; }
.rx-news-body p { margin: 0; font-size: 0.94rem; }

/* hiring band */
.rx-hiring { position: relative; overflow: hidden; padding-block: clamp(5rem, 11vw, 9rem); background: linear-gradient(135deg, #1a0709, #0a0a0d 60%); border-block: 1px solid rgba(255, 46, 58, 0.25); }
.rx-hiring::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255, 46, 58, 0.06) 0 2px, transparent 2px 26px); pointer-events: none; }
.rx-hiring-big { position: absolute; left: -5vw; top: calc(50% - 0.4em); white-space: nowrap; font: 800 clamp(6rem, 18vw, 16rem)/0.8 var(--display); color: transparent; -webkit-text-stroke: 1px rgba(255, 46, 58, 0.16); pointer-events: none; }
.rx-hiring .wrap { position: relative; align-items: center; }
.rx-hiring .ctas { margin-top: 1.8rem; }
.rx-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.rx-chips li { font: 600 0.8rem var(--hud); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg); padding: 0.7rem 1rem; background: rgba(8, 8, 10, 0.7); border: 1px solid rgba(255, 255, 255, 0.14); transition: border-color 0.25s, color 0.25s; }
.rx-chips li:hover { border-color: var(--red); color: #fff; }

/* first access */
.rx-access { background: radial-gradient(70% 90% at 0% 100%, rgba(255, 46, 58, 0.12), transparent 60%), var(--abyss); border-top: 1px solid var(--line); }
.rx-access-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 980px) { .rx-access-grid { grid-template-columns: 1fr 1fr; } }
.rx-access-grid > * { min-width: 0; }
.rx-access .ctas { margin-top: 1.6rem; }
body.rx .news-box { margin: 0; border-radius: 0; border-color: var(--line-2); background: var(--card); clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%); }
@media (min-width: 960px) { body.rx .rx-access .news-box { grid-template-columns: 1fr; } }
body.rx .news-box h2 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); }
body.rx .news-row input { border-radius: 0; background: #0a0a0d; }
body.rx .news-status { color: #7ff0c0; }

/* game page bits */
.rx-facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.rx-facts.six { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.rx-facts div { background: var(--card); padding: 1.2rem 1.3rem; }
.rx-facts dt { font: 600 0.7rem var(--hud); letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.rx-facts dd { margin: 0.35rem 0 0; color: var(--fg); font-family: var(--display); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; line-height: 1.05; }
@media (max-width: 420px) { .rx-facts { grid-template-columns: 1fr; } }
.rx-redacted span, .rx-locked span { position: relative; display: inline-flex; align-items: center; gap: 0.7rem; font: 600 0.8rem var(--hud); letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg); }
.rx-redacted span::before, .rx-locked span::before { content: ""; width: 14px; height: 14px; flex: 0 0 auto; background: var(--red); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.rx-locked { margin: 1.6rem 0 0; padding: 1rem 1.2rem; border: 1px dashed rgba(255, 255, 255, 0.2); background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 0 8px, transparent 8px 16px); }
.rx-video { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; overflow: hidden; background: #000; clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 34px 100%, 0 calc(100% - 34px)); }
.rx-video img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: 0.8; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1), opacity 0.4s; }
.rx-video:hover img { transform: scale(1.04); opacity: 1; }
.rx-play { position: absolute; left: 50%; top: 50%; width: clamp(70px, 9vw, 110px); aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-items: center; background: var(--red); color: #fff;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); transition: transform 0.4s; }
.rx-play svg { width: 34%; height: 34%; margin-left: 6%; }
.rx-video:hover .rx-play { transform: translate(-50%, -50%) scale(1.1); }
.rx-video-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 3rem 1.4rem 1.2rem; display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)); text-align: left; }
.rx-video-cap b { font: 800 1.8rem/1 var(--display); text-transform: uppercase; color: #fff; }
.rx-video-cap small { font: 600 0.7rem var(--hud); letter-spacing: 0.14em; text-transform: uppercase; color: #c9d6da; }
.rx-shots { display: grid; gap: 1rem; margin-top: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.rx-shots.one { margin-top: 0; grid-template-columns: 1fr; }
.rx-shot { position: relative; padding: 0; border: 1px solid var(--line); background: #000; overflow: hidden; cursor: zoom-in; display: block; width: 100%; color: inherit; text-align: left; transform-style: preserve-3d; }
.rx-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.rx-shots.one .rx-shot img { aspect-ratio: 4 / 3; }
.rx-shot:hover img { transform: scale(1.06); }
.rx-shot-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.6rem 1rem 0.9rem; display: flex; gap: 0.8rem; align-items: baseline; flex-wrap: wrap; background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)); }
.rx-shot-cap b { font: 800 1.4rem/1 var(--display); color: var(--red); }
.rx-shot-cap span { font: 700 1.2rem/1 var(--display); text-transform: uppercase; color: #fff; }
.rx-shot-cap small { margin-left: auto; font: 600 0.64rem var(--hud); letter-spacing: 0.14em; text-transform: uppercase; color: #c9d6da; }

/* timeline */
.rx-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 1px solid var(--line-2); }
.rx-timeline li { position: relative; padding: 0 0 2.2rem 2rem; }
.rx-timeline li::before { content: ""; position: absolute; left: -7px; top: 0.1rem; width: 13px; height: 13px; background: var(--red); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.rx-timeline li.now::before { background: var(--fg); }
.rx-timeline h3 { margin: 0.4rem 0 0.4rem; }
.rx-timeline p { margin: 0; }

/* lists, panels, socials */
.rx-list { list-style: none; margin: 0; padding: 0; display: grid; }
.rx-list li { padding: 1rem 0 1rem 2rem; border-bottom: 1px solid var(--line); position: relative; color: var(--fg); }
.rx-list li::before { content: ""; position: absolute; left: 0; top: 1.4rem; width: 10px; height: 10px; background: var(--red); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.rx-panel { padding: clamp(1.6rem, 4vw, 2.6rem); border: 1px solid var(--line-2); background: var(--card); clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%); }
.rx-panel p { margin: 0.6rem 0 0; }
.rx-socials { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rx-socials a { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center; padding: 1.1rem 0.2rem; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding 0.3s, color 0.3s; }
.rx-socials a span:first-child { font: 800 1.8rem/1 var(--display); text-transform: uppercase; color: var(--fg); }
.rx-socials a span:nth-child(2) { font: 600 0.75rem var(--hud); color: var(--muted); letter-spacing: 0.06em; }
.rx-socials a svg { color: var(--red); transition: transform 0.3s; }
.rx-socials a:hover { padding-left: 0.8rem; }
.rx-socials a:hover svg { transform: translateX(4px); }
@media (max-width: 520px) { .rx-socials a { grid-template-columns: 1fr auto; } .rx-socials a span:nth-child(2) { display: none; } }

/* page hero */
.rx-pagehero { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(460px, 72vh, 760px); display: grid; align-items: end; background: #050507; }
.rx-ph-bg { position: absolute; inset: -14% 0; z-index: -2; }
.rx-ph-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.45) brightness(0.55); }
.rx-pagehero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 10% 100%, rgba(255, 46, 58, 0.2), transparent 60%), linear-gradient(180deg, rgba(5, 5, 7, 0.75), rgba(5, 5, 7, 0.2) 35%, rgba(5, 5, 7, 0.75) 80%, var(--abyss)); }
.rx-pagehero .wrap { position: relative; z-index: 2; padding-top: calc(var(--bar-h) + 4rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.rx-ph-title { margin: 0; font-weight: 800; font-size: clamp(3.4rem, 1.6rem + 7vw, 8.4rem); line-height: 0.86; }
.rx-ph-title::after { content: ""; display: block; width: 90px; height: 4px; margin-top: 1.4rem; background: var(--red); }

/* ---------- reskinned shared components (careers, legal, faq, forms, press) ---------- */
body.rx .section { padding-block: clamp(3.5rem, 7vw, 6rem); }
body.rx .section.alt { background: var(--deep); }
body.rx .sec-head .eyebrow, body.rx .eyebrow { font-family: var(--hud); color: #ff6b74; }
body.rx .eyebrow span { color: var(--faint); }
body.rx .sec-head h2 { font-size: clamp(2.2rem, 1.4rem + 3.2vw, 4rem); }
body.rx .filters button { border-radius: 0; font-family: var(--hud); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
body.rx .filters button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
body.rx .filters .count { font-family: var(--hud); }
body.rx .role { border-radius: 0; background: var(--card); }
body.rx .role summary h3 { font-size: 1.7rem; }
body.rx .role .meta, body.rx .role .chev, body.rx .role .body h4 { font-family: var(--hud); }
body.rx .role .meta .disc, body.rx .role .chev, body.rx .role .body h4 { color: #ff6b74; }
body.rx .role .meta .cvreq { color: var(--warn); }
body.rx .role[open] { border-color: rgba(255, 46, 58, 0.45); }
body.rx .steps li::before { font-family: var(--display); font-weight: 800; font-size: 2.4rem; color: var(--red); }
body.rx .steps h3 { font-size: 1.5rem; }
body.rx form.apply, body.rx .done, body.rx .box { border-radius: 0; background: var(--card); }
body.rx .field label, body.rx .field-label { font-family: var(--hud); }
body.rx .field label i { color: var(--red); }
body.rx .field input, body.rx .field select, body.rx .field textarea { border-radius: 0; background: #0a0a0d; border-color: rgba(255, 255, 255, 0.16); }
body.rx .field input:focus, body.rx .field select:focus, body.rx .field textarea:focus, body.rx .news-row input:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-dim); }
body.rx .field input[type="file"]::file-selector-button { border-radius: 0; background: var(--red); color: #fff; font-family: var(--hud); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.72rem; }
body.rx .check input { accent-color: var(--red); }
body.rx .art { border-radius: 0; }
body.rx .faq summary { font-family: var(--display); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.01em; }
body.rx .faq summary::after { color: var(--red); font-family: var(--hud); }
body.rx .facts { border-radius: 0; }
body.rx .facts dt { font-family: var(--hud); }
body.rx .factsheet dt { font-family: var(--hud); }
body.rx .template { border-radius: 0; font-family: var(--body); font-size: 0.92rem; background: #0a0a0d; }
body.rx .downloads .dl { border-radius: 0; background: var(--card); color: var(--text); }
body.rx .dl:hover { border-color: rgba(255, 46, 58, 0.45); }
body.rx .dl small { color: #ff6b74; font-family: var(--hud); }
body.rx .dl .thumb { border-radius: 0; }
body.rx .caption { font-family: var(--hud); }
body.rx .page-hero.plain { background: radial-gradient(90% 120% at 90% 0%, rgba(255, 46, 58, 0.18), transparent 55%), var(--abyss); padding-top: 1rem; }
body.rx .page-hero h1 { font-weight: 800; font-size: clamp(3rem, 1.6rem + 5vw, 6rem); line-height: 0.9; }
body.rx .doc h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
body.rx .doc th { font-family: var(--hud); }
body.rx .toc a { color: var(--text); }
body.rx .toc a:hover { color: #ff6b74; border-color: var(--red); }
body.rx .note { border-left-color: var(--red); }
body.rx .updated { font-family: var(--hud); }
body.rx .side-note .art img { filter: saturate(0.7); }
body.rx .member { border-radius: 0; }
body.rx dialog.prefs { border-radius: 0; background: #0e0e12; }
body.rx .toggle input { border-radius: 0; }
body.rx .toggle input::after { border-radius: 0; }
body.rx .toggle input:checked { background: var(--red); border-color: var(--red); }
body.rx .toggle input:checked::after { background: #fff; }
body.rx .lb-top button, body.rx .lb-nav button { border-radius: 0; font-family: var(--hud); }
body.rx .done h3 { font-size: 2rem; }
body.rx .form-status { border-radius: 0; }

/* ---------- footer ---------- */
.rx-footer { position: relative; overflow: hidden; background: #050507 !important; border-top: 1px solid var(--line); padding-top: clamp(5rem, 10vw, 8rem) !important; }
.rx-footer-big { position: absolute; left: 0; right: 0; top: 1.5rem; text-align: center; white-space: nowrap; font: 800 clamp(5rem, 17vw, 17rem)/0.8 var(--display); color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07); pointer-events: none; }
.rx-footer .wrap { position: relative; }
body.rx .foot h4 { font-family: var(--hud); color: #ff6b74; }
body.rx .foot li a, body.rx .foot li button { color: var(--text); font-family: var(--body); }
body.rx .foot li a:hover, body.rx .foot li button:hover { color: #fff; }
body.rx .foot-base { flex-direction: column; align-items: flex-start; gap: 0.4rem; font-family: var(--hud); font-size: 0.72rem; letter-spacing: 0.04em; }

/* ---------- reveal: slide + unclip ---------- */
@media (prefers-reduced-motion: no-preference) {
  body.rx .reveal { transition: transform 1s cubic-bezier(.16, .8, .2, 1), opacity 1s, clip-path 1.1s cubic-bezier(.16, .8, .2, 1); }
  body.rx .reveal.pre { transform: translateY(40px); opacity: 0; }
  .rx-hero-in > * { animation: rxin 1.1s cubic-bezier(.16, .8, .2, 1) both; }
  .rx-hero-in > *:nth-child(2) { animation-delay: 0.12s; } .rx-hero-in > *:nth-child(3) { animation-delay: 0.24s; } .rx-hero-in > *:nth-child(4) { animation-delay: 0.36s; } .rx-hero-in > *:nth-child(5) { animation-delay: 0.48s; } .rx-hero-in > *:nth-child(6) { animation-delay: 0.6s; }
  .rx-hero-title span { animation: rxline 1.2s cubic-bezier(.16, .8, .2, 1) both; }
  .rx-hero-title span:nth-child(2) { animation-delay: 0.12s; } .rx-hero-title span:nth-child(3) { animation-delay: 0.24s; }
}
@keyframes rxin { from { opacity: 0; transform: translateY(30px); } }
@keyframes rxline { from { clip-path: inset(0 0 100% 0); transform: translateY(0.3em); } to { clip-path: inset(0 0 -10% 0); } }
@media (prefers-reduced-motion: reduce) { .rx-ticker-in, .rx-bubbles i { animation: none; } .rx-bubbles { display: none; } }

/* ---------- small screens ---------- */
@media (max-width: 700px) {
  body.rx { --bar-h: 64px; }
  .rx-hero-in { padding-bottom: 6rem; }
  .rx-hero .ctas .btn, .rx-band .ctas .btn { flex: 1 1 100%; }
  .rx-hero-side { display: none; }
  .rx-hero-fox { width: 90vw; right: -30vw; opacity: 0.07; }
  .rx-band { clip-path: polygon(0 18px, 100% 0, 100% calc(100% - 18px), 0 100%); }
  .rx-band-chip { top: 1.6rem; }
  .rx-stats b { font-size: 2.8rem; }
  .rx-label span::before { width: 1rem; margin-right: 0.5rem; }
  .rx-video-cap b { font-size: 1.3rem; }
  .rx-shot-cap small { display: none; }
  body.rx .role summary h3 { font-size: 1.4rem; }
}
.rx-stats b span { font: inherit; letter-spacing: inherit; text-transform: none; color: inherit; }

/* ---------- branded loader: first page view of each visit ---------- */
.rx-loader { display: none; }
html.rx-loading body { overflow: hidden; }
html.rx-loading .rx-loader, .rx-loader.out { display: grid; }
.rx-loader { position: fixed; inset: 0; z-index: 9999; place-items: center; background: radial-gradient(ellipse at 50% 45%, #1a0a0d 0%, #08080a 62%); color: var(--fg);
  transition: clip-path 0.75s cubic-bezier(.76, 0, .24, 1), opacity 0.5s 0.3s; clip-path: inset(0 0 0 0); }
.rx-loader::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px); }
.rx-loader.out { clip-path: inset(0 0 100% 0); opacity: 0; pointer-events: none; }
.rx-loader-core { position: relative; width: min(340px, 78vw); padding: 2.4rem 2rem 1.6rem; display: grid; justify-items: center; gap: 1.1rem; }
.rx-loader-core > i { position: absolute; width: 18px; height: 18px; border: 2px solid var(--red); opacity: 0; animation: rxlCorner 0.5s 0.1s forwards; }
.rx-loader-core > i:nth-of-type(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.rx-loader-core > i:nth-of-type(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.rx-loader-core > i:nth-of-type(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.rx-loader-core > i:nth-of-type(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.rx-loader-mark { position: relative; width: 96px; overflow: hidden; filter: drop-shadow(0 0 18px rgba(255, 46, 58, 0.45)); animation: rxlMark 0.7s cubic-bezier(.2, .7, .2, 1) both, rxlPulse 1.8s 0.7s ease-in-out infinite; }
.rx-loader-mark img { display: block; width: 100%; height: auto; }
.rx-loader-mark b { position: absolute; left: 0; right: 0; height: 30%; top: -30%; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.55), transparent); mix-blend-mode: overlay; animation: rxlScan 1.6s 0.4s linear infinite; }
.rx-loader-word { font: 800 2.1rem/1 var(--display); letter-spacing: 0.22em; padding-left: 0.22em; text-transform: uppercase; white-space: nowrap; }
.rx-loader-word span { display: inline-block; opacity: 0; transform: translateY(0.4em); animation: rxlLetter 0.45s cubic-bezier(.2, .7, .2, 1) forwards; }
.rx-loader-word em { font-style: normal; color: var(--red); }
.rx-loader-bar { position: relative; width: 100%; height: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; clip-path: polygon(0 0, 100% 0, calc(100% - 3px) 100%, 0 100%); }
.rx-loader-bar b { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--red-2), var(--red) 70%, #ff8a92); box-shadow: 0 0 12px var(--red); transition: transform 0.25s ease-out; }
.rx-loader-meta { display: flex; justify-content: space-between; width: 100%; font: 600 0.68rem/1 var(--hud); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.rx-loader-meta span:last-child { color: var(--fg); font-variant-numeric: tabular-nums; }
@keyframes rxlCorner { from { opacity: 0; transform: scale(1.6); } to { opacity: 1; transform: none; } }
@keyframes rxlMark { from { opacity: 0; transform: translateY(14px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes rxlPulse { 50% { filter: drop-shadow(0 0 30px rgba(255, 46, 58, 0.8)); } }
@keyframes rxlScan { to { top: 130%; } }
@keyframes rxlLetter { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rx-loader, .rx-loader * { animation: none !important; transition: opacity 0.3s !important; } .rx-loader-word span, .rx-loader-core > i { opacity: 1; transform: none; } .rx-loader.out { clip-path: none; } }
.rx-loader-mark b { -webkit-mask: url("img/ravix_mark.png") center / 100% 100% no-repeat; mask: url("img/ravix_mark.png") center / 100% 100% no-repeat; height: 100%; top: 0; animation: none; }
.rx-loader-mark b::before { content: ""; position: absolute; left: 0; right: 0; height: 35%; top: -35%; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.7), transparent); animation: rxlScan 1.6s 0.4s linear infinite; }
