/* RenEx Studios. Plain CSS, no build step.
   Display: Barlow Black Italic. Body: Hanken Grotesk. Both self-hosted (SIL OFL, licences in /fonts).
   Palette: ink black, warm bone white, one crimson accent taken from the Slayers Unbound crescent.
   Discord blurple appears only on Discord buttons. */

/* ======================= Fonts ======================= */
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-900-italic-latin.woff2") format("woff2"); font-style: italic; font-weight: 900; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-800-italic-latin.woff2") format("woff2"); font-style: italic; font-weight: 800; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken-grotesk-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

/* ======================= Tokens ======================= */
:root {
  --bg: #08070c;
  --bg-2: #0f0d15;
  --panel: #15121c;
  --line: rgba(234, 226, 255, 0.1);
  --line-2: rgba(234, 226, 255, 0.18);
  --text: #f5f2ee;
  --soft: #d6d1db;
  --muted: #a39dae;

  --accent: #ee2f47;
  --accent-hi: #ff6b78;
  --accent-grad: linear-gradient(180deg, #ff5d6b 0%, #ee2f47 55%, #c4162f 100%);
  --discord: #5865f2;

  --display: "Barlow", "Arial Black", Impact, system-ui, sans-serif;
  --body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;

  --wrap: 1240px;
  --edge: clamp(20px, 4vw, 40px);
  --head-h: 64px;
  --radius: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sec: clamp(80px, 9vw, 128px);
}

/* ======================= Base ======================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
.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; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 2px solid #ffb44d; outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--text); color: var(--bg); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--edge); }

/* ======================= Type ======================= */
.display {
  font-family: var(--display); font-weight: 900; font-style: italic;
  text-transform: uppercase; letter-spacing: -0.005em; line-height: 0.95; text-wrap: balance;
}
.h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.5rem); }
.h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); }
/* Accent words. The padding stops the italic overhang from being clipped by background-clip. */
.accent {
  background-image: var(--accent-grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  padding-right: 0.08em; margin-right: -0.08em;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: italic 800 0.8125rem/1 var(--display); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-hi);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow-live::before, .eyebrow-center::before { display: none; }

/* ======================= Buttons ======================= */
.btn {
  --glow: rgba(238, 47, 71, 0.55);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 22px; border: 0; border-radius: 14px;
  font: italic 900 1rem/1 var(--display); letter-spacing: 0.02em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .2s, color .2s;
}
.btn .icon { width: 1.2em; height: 1.2em; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 9px 15px; font-size: 0.875rem; border-radius: 11px; }
.btn-lg { min-height: 52px; padding: 15px 24px; font-size: 1rem; }
.btn-xl { min-height: 56px; padding: 17px 26px; font-size: 1.0625rem; border-radius: 15px; }

.btn-primary {
  color: #fff; background: var(--accent-grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -3px 0 rgba(90, 0, 18, 0.4), 0 10px 26px -12px var(--glow);
}
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -3px 0 rgba(90, 0, 18, 0.4), 0 16px 34px -12px var(--glow); }
.btn-discord {
  --glow: rgba(88, 101, 242, 0.7);
  color: #fff; background: var(--discord);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -3px 0 rgba(20, 24, 110, 0.35), 0 10px 24px -14px var(--glow);
}
.btn-discord:hover { background: #6470f4; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -3px 0 rgba(20, 24, 110, 0.35), 0 16px 32px -14px var(--glow); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ======================= Header ======================= */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid transparent; transition: border-color .3s; }
/* The blur sits on a pseudo-element: backdrop-filter on the header itself would trap the fixed menu inside it. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(8, 7, 12, 0.5); transition: background-color .3s;
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
}
.site-header.is-solid { border-bottom-color: var(--line); }
.site-header.is-solid::before { background: rgba(8, 7, 12, 0.88); }
.header-row { display: flex; align-items: center; gap: 24px; height: var(--head-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand-word { font: italic 900 1.125rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 2px; }
.nav a {
  position: relative; display: block; padding: 10px 13px;
  font: italic 800 0.8125rem/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase;
  color: #c9c3d0; text-decoration: none; transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover, .nav a[aria-current="true"] { color: #fff; }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.menu-button {
  display: none; position: relative; width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); cursor: pointer;
}
.menu-bars, .menu-bars::before, .menu-bars::after {
  position: absolute; left: 13px; width: 18px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .3s var(--ease), background-color .2s;
}
.menu-bars { top: 21px; }
.menu-bars::before, .menu-bars::after { content: ""; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }
.menu-button[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-button[aria-expanded="true"] .menu-bars::before { background: var(--text); transform: translateY(6px) rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-bars::after { background: var(--text); transform: translateY(-6px) rotate(-45deg); }

.menu {
  position: fixed; inset: var(--head-h) 0 0; z-index: 49; overflow-y: auto;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 20px var(--edge) max(28px, env(safe-area-inset-bottom));
  background: radial-gradient(90% 45% at 100% 0%, rgba(238, 47, 71, 0.14), transparent 70%), var(--bg);
}
.menu[hidden] { display: none; }
.menu.is-open { animation: menu-in .35s var(--ease); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
.menu-list a {
  display: flex; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line);
  font: italic 900 clamp(1.625rem, 7vw, 2.125rem)/1 var(--display); text-transform: uppercase; text-decoration: none;
}
.menu-list a:hover { color: var(--accent-hi); }
.menu-cta { display: grid; gap: 12px; }
.menu-cta .btn { width: 100%; min-height: 52px; }

@media (max-width: 1023px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; }
  .js .menu-button { display: block; }
  .header-actions .btn-sm { min-height: 44px; }
}
@media (max-width: 479px) {
  .header-discord-label { display: none; }
  .header-actions .btn-sm { width: 44px; padding: 0; }
  .cta-row > .btn-xl { flex: 1 1 100%; }
}
@media (max-width: 359px) {
  .header-row { gap: 10px; }
  .brand-word { font-size: 1rem; }
  .header-actions { gap: 8px; }
  .badge { font-size: 0.8125rem; }
  .badge-arrow { display: none; }
  .btn-lg, .btn-xl { padding-inline: 16px; }
}

/* ======================= Hero ======================= */
/* Composition: the type column sits on the left third, the render fills the right and runs
   slightly under the headline, and the whole frame fades into the page at the bottom. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  min-height: clamp(600px, 86svh, 800px);
  padding: calc(var(--head-h) + 40px) 0 56px;
  background: radial-gradient(48% 62% at 74% 40%, rgba(238, 47, 71, 0.13), transparent 70%), #060509;
}
.hero-art { position: absolute; z-index: -3; top: 0; bottom: 0; right: max(0px, calc(50% - 760px)); width: min(60%, 880px); }
.hero-art img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%;
  -webkit-mask-image: linear-gradient(90deg, transparent 6%, rgba(0, 0, 0, 0.4) 22%, #000 46%), linear-gradient(0deg, transparent 0%, #000 22%);
  mask-image: linear-gradient(90deg, transparent 6%, rgba(0, 0, 0, 0.4) 22%, #000 46%), linear-gradient(0deg, transparent 0%, #000 22%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  animation: art-in 1.6s var(--ease) both;
}
@keyframes art-in { from { opacity: 0; transform: scale(1.04); } }
.hero-shade {
  position: absolute; z-index: -2; inset: 0;
  background:
    linear-gradient(90deg, #060509 0%, rgba(6, 5, 9, 0.85) 30%, rgba(6, 5, 9, 0.2) 55%, rgba(6, 5, 9, 0) 70%),
    linear-gradient(0deg, var(--bg) 0%, rgba(8, 7, 12, 0) 24%);
}
/* A few drifting embers, drawn with gradients: no images, no script. */
.sparks {
  position: absolute; z-index: -1; inset: 0 0 -60% 40%; pointer-events: none; opacity: 0.6;
  background-image:
    radial-gradient(2px 2px at 10% 30%, #ffcf7a, transparent 60%),
    radial-gradient(1.5px 1.5px at 24% 72%, #ff8f5a, transparent 60%),
    radial-gradient(2px 2px at 41% 18%, #ffd28a, transparent 60%),
    radial-gradient(1.5px 1.5px at 56% 58%, #ffb44d, transparent 60%),
    radial-gradient(2px 2px at 72% 36%, #ffcf7a, transparent 60%),
    radial-gradient(1.5px 1.5px at 88% 80%, #ff7a5a, transparent 60%);
  background-size: 100% 37.5%;
  animation: drift 20s linear infinite;
}
@keyframes drift { to { transform: translateY(-37.5%); } }

.hero-inner { position: relative; }
.hero-inner > * { max-width: 560px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  padding: 5px 14px 5px 5px; border-radius: 999px;
  background: rgba(10, 8, 16, 0.6); box-shadow: inset 0 0 0 1px var(--line-2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-weight: 600; font-size: 0.875rem; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, box-shadow .2s;
  animation: fade-up .9s .05s var(--ease) both;
}
.badge:hover { background: rgba(26, 22, 36, 0.75); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
.badge-tag {
  padding: 5px 9px; border-radius: 999px; background: var(--accent-grad);
  font: italic 900 0.6875rem/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: #fff;
}
.badge-arrow { color: var(--accent-hi); transition: transform .3s var(--ease); }
.badge:hover .badge-arrow { transform: translateX(3px); }

.hero-title { font-size: clamp(3.25rem, 1.7rem + 4.4vw, 6.25rem); line-height: 0.88; letter-spacing: -0.01em; }
.hero-title .line { display: block; animation: fade-up 1s .1s var(--ease) both; }
.hero-title .line:nth-child(2) { animation-delay: .17s; }
.hero-lede { margin-top: 24px; max-width: 29em; font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); color: var(--soft); animation: fade-up 1s .24s var(--ease) both; }
.hero .cta-row { margin-top: 32px; animation: fade-up 1s .3s var(--ease) both; }
.meta-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 28px;
  font: italic 800 0.75rem/1.2 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  animation: fade-up 1s .36s var(--ease) both;
}
.meta-row li + li::before { content: "\25C6"; margin-right: 14px; color: var(--accent); font-size: 0.7em; vertical-align: 0.15em; }
.meta-row .hot { color: var(--text); }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } }

@media (max-width: 899px) {
  /* Phones and tablets: the render takes the top of the frame, the type sits over its faded lower edge. */
  .hero { align-items: flex-end; min-height: min(100svh, 860px); padding: calc(var(--head-h) + min(56vw, 400px)) 0 52px; }
  .hero-art { inset: 0 0 auto; width: 100%; height: min(122vw, 760px); }
  .hero-art img {
    object-position: 62% 12%;
    -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 96%); mask-image: linear-gradient(180deg, #000 50%, transparent 96%);
  }
  .hero-shade { background: linear-gradient(180deg, rgba(6, 5, 9, 0.5) 0%, rgba(6, 5, 9, 0) 14%, rgba(6, 5, 9, 0.1) 36%, rgba(6, 5, 9, 0.85) 62%, var(--bg) 82%); }
  .sparks { inset: 0 0 -60% 0; }
  .hero-inner > * { max-width: 520px; }
}

/* ======================= Shared section pieces ======================= */
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 48px; margin-bottom: clamp(28px, 4vw, 44px); }
.sec-head .eyebrow, .game-head .eyebrow { margin-bottom: 16px; }
.sec-note { max-width: 27em; color: var(--muted); }

.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line-2);
  font: italic 800 0.75rem/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft);
}
.chip-live { color: #ff8a95; box-shadow: inset 0 0 0 1px rgba(238, 47, 71, 0.4); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(238, 47, 71, 0.7); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(238, 47, 71, 0); } 100% { box-shadow: 0 0 0 0 rgba(238, 47, 71, 0); } }

/* ======================= Slayers Unbound ======================= */
.game { padding: clamp(40px, 5vw, 72px) 0 var(--sec); }
.game-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; margin-bottom: clamp(24px, 3vw, 36px); }
.status { display: flex; flex-wrap: wrap; gap: 8px; }

/* Key art breaks out of the text column: wider than the content, narrower than the screen. */
.keyart {
  position: relative; overflow: hidden; width: min(calc(100% - 2 * var(--edge)), 1400px); margin: 0 auto;
  border-radius: 20px; box-shadow: 0 0 0 1px var(--line), 0 50px 100px -50px rgba(238, 47, 71, 0.45);
}
.keyart img { width: 100%; aspect-ratio: 2.25 / 1; object-fit: cover; object-position: 50% 72%; }
.keyart::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(8, 7, 12, 0.55) 0%, rgba(8, 7, 12, 0) 30%); }
.keyart-note {
  position: absolute; z-index: 1; left: 16px; top: 14px; padding: 6px 10px; border-radius: 999px;
  background: rgba(8, 7, 12, 0.72); font-size: 0.75rem; font-weight: 600; color: var(--muted);
}

.game-body { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; margin-top: clamp(40px, 5vw, 64px); }
.game-intro { grid-column: 1 / 8; }
.game-tagline { margin-bottom: 20px; }
.game-copy { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.6; color: var(--soft); }
.game-copy em { color: var(--text); font-style: italic; }
.specs { grid-column: 9 / 13; display: grid; align-content: start; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.specs div:first-child { border-top: 1px solid var(--line); }
.specs dt { font: italic 800 0.75rem/1.6 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.specs dd { min-width: 0; text-align: right; font-weight: 600; font-size: 0.9375rem; }

/* Features: one large tile beside two stacked ones. */
.features-title { margin: clamp(64px, 8vw, 104px) 0 20px; }
.features { display: grid; grid-template-columns: 1.45fr 1fr; grid-template-rows: repeat(2, minmax(250px, auto)); gap: 16px; }
.feature {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(20px, 2.4vw, 30px); border-radius: var(--radius); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line);
}
.feature-lg { grid-column: 1; grid-row: 1 / span 2; }
.feature img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.feature::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, rgba(8, 7, 12, 0.95) 12%, rgba(8, 7, 12, 0.45) 48%, rgba(8, 7, 12, 0) 78%); }
.feature:hover img { transform: scale(1.04); }
.feature-no { margin-bottom: 10px; font: italic 800 0.75rem/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-hi); }
.feature-title { font-size: clamp(1.5rem, 1.25rem + 0.8vw, 2rem); }
.feature-lg .feature-title { font-size: clamp(1.875rem, 1.4rem + 1.6vw, 2.75rem); }
.feature-body p:last-child { margin-top: 8px; max-width: 26em; color: var(--soft); font-size: 0.9875rem; }
.feature-note {
  position: absolute; top: 14px; left: 14px; padding: 5px 10px; border-radius: 999px;
  background: rgba(8, 7, 12, 0.7); font-size: 0.75rem; font-weight: 600; color: var(--muted);
}

/* Testing: a status strip that closes the game section. */
.testing {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px 56px;
  margin-top: clamp(56px, 7vw, 88px); padding: clamp(26px, 3.5vw, 44px) clamp(24px, 4vw, 52px);
  border-radius: 20px;
  background: linear-gradient(100deg, rgba(238, 47, 71, 0.14) 0%, rgba(238, 47, 71, 0.03) 50%, rgba(238, 47, 71, 0) 80%), var(--bg-2);
  box-shadow: inset 0 0 0 1px rgba(238, 47, 71, 0.26);
}
.testing .eyebrow { gap: 10px; margin-bottom: 14px; }
.testing-copy > p:not(.eyebrow) { margin-top: 14px; max-width: 36em; color: var(--soft); }

@media (max-width: 899px) {
  .game-intro, .specs { grid-column: 1 / -1; }
  .game-body { grid-template-columns: 1fr; gap: 28px; }
  .keyart { width: 100%; border-radius: 0; box-shadow: none; }
  .keyart img { aspect-ratio: 16 / 10; object-position: 50% 62%; }
  .features { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .feature-lg { grid-column: 1 / -1; grid-row: auto; min-height: 360px; }
  .feature { min-height: 280px; }
  .testing { grid-template-columns: 1fr; }
  .testing .btn { justify-self: start; }
}
@media (max-width: 599px) {
  .features { grid-template-columns: 1fr; }
  .feature-lg { min-height: 320px; }
  .feature { min-height: 260px; }
  .testing .btn { justify-self: stretch; }
}

/* ======================= Workshop ======================= */
.workshop {
  padding: var(--sec) 0 clamp(56px, 6vw, 88px);
  background: linear-gradient(180deg, var(--bg-2), var(--bg) 85%);
  border-top: 1px solid var(--line);
}
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.shot { display: flex; flex-direction: column; }
.shot-wide { grid-column: 1 / 9; }
.shot-tall { grid-column: 9 / 13; }
.shot-img { flex: 1; overflow: hidden; border-radius: var(--radius); background: var(--panel); box-shadow: 0 0 0 1px var(--line); }
.shot-wide .shot-img { flex: none; aspect-ratio: 16 / 9.5; }
.shot-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.shot-tall .shot-img img { object-position: 50% 30%; }
.shot:hover .shot-img img { transform: scale(1.03); }
.shot figcaption {
  display: flex; align-items: center; gap: 10px; margin-top: 14px;
  font: italic 900 1rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em;
}
.shot-no { font: italic 900 1rem/1 var(--display); color: var(--accent); }
.shot-tag {
  margin-left: auto; padding: 5px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line);
  font: 600 0.75rem/1 var(--body); letter-spacing: 0.02em; text-transform: none; color: var(--muted);
}

/* Mask set: a text column, then three masks set on a rising diagonal. */
.masks { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-top: clamp(56px, 7vw, 96px); }
.masks-intro { grid-column: 1 / 4; align-self: start; display: grid; gap: 12px; justify-items: start; padding-top: 8px; }
.masks-intro p:not(.shot-no):not(.shot-tag) { color: var(--soft); }
.masks-intro .shot-tag { margin-left: 0; }
.mask-row { grid-column: 4 / 13; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 72px; }
.mask:nth-child(2) { transform: translateY(36px); }
.mask:nth-child(3) { transform: translateY(72px); }
.js .mask.reveal:nth-child(2) { transform: translateY(62px); }
.js .mask.reveal:nth-child(3) { transform: translateY(98px); }
.js .mask.reveal.is-in:nth-child(2) { transform: translateY(36px); }
.js .mask.reveal.is-in:nth-child(3) { transform: translateY(72px); }
.mask img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  transition: transform .6s var(--ease);
}
.mask:hover img { transform: translateY(-6px); }

@media (max-width: 899px) {
  .gallery, .masks { grid-template-columns: 1fr; }
  .shot-wide, .shot-tall { grid-column: 1 / -1; }
  .shot-tall .shot-img { flex: none; aspect-ratio: 4 / 3; }
  .masks-intro, .mask-row { grid-column: 1 / -1; }
  .mask-row { padding-bottom: 0; }
  .workshop { padding-bottom: var(--sec); }
  .mask:nth-child(n), .js .mask.reveal.is-in:nth-child(n) { transform: none; }
  .js .mask.reveal:nth-child(n) { transform: translateY(26px); }
}
@media (max-width: 599px) {
  /* Masks become a swipeable row so each stays a readable size. */
  .mask-row {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 70%;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(-1 * var(--edge)); padding: 0 var(--edge) 4px; scroll-padding: 0 var(--edge);
  }
  .mask-row::-webkit-scrollbar { display: none; }
  .mask { scroll-snap-align: start; }
}

/* ======================= Studio ======================= */
.studio {
  padding: var(--sec) 0; text-align: center;
  background: radial-gradient(46% 70% at 50% 100%, rgba(238, 47, 71, 0.08), transparent 70%);
}
.studio-inner { display: grid; justify-items: center; gap: 18px; max-width: 920px; }
.studio-mark { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 6px; box-shadow: 0 0 0 1px var(--line-2); }
.statement { margin-top: 10px; max-width: 30em; font-size: clamp(1.1875rem, 1rem + 0.8vw, 1.625rem); line-height: 1.5; color: var(--soft); text-wrap: pretty; }

/* ======================= Community + contact ======================= */
.community { padding: 0 0 var(--sec); }
.community-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.panel {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: clamp(26px, 3.4vw, 42px); border-radius: 20px;
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line);
}
.panel p:not(.eyebrow) { max-width: 30em; color: var(--soft); }
.panel .btn { margin-top: auto; }
.panel h3 + p { margin-bottom: 10px; }
.panel-discord {
  background: radial-gradient(90% 100% at 0% 0%, rgba(88, 101, 242, 0.32), transparent 70%), linear-gradient(160deg, #17173a, #131020 70%);
  box-shadow: inset 0 0 0 1px rgba(120, 132, 255, 0.28);
}
.panel-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 15px; background: var(--discord); }
.panel-icon svg { width: 32px; height: 32px; color: #fff; }

.contact {
  display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; gap: 24px clamp(24px, 4vw, 56px);
  margin-top: clamp(48px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--line);
}
.contact-title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); }
.contact-label { margin-bottom: 8px; font: italic 800 0.75rem/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact-mail {
  font-weight: 600; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); overflow-wrap: anywhere;
  text-decoration: underline; text-decoration-color: rgba(238, 47, 71, 0.5); text-underline-offset: 5px; text-decoration-thickness: 2px;
  transition: color .2s, text-decoration-color .2s;
}
.contact-mail:hover { color: #ff8a95; text-decoration-color: currentColor; }
@media (max-width: 899px) {
  .community-grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}

/* ======================= Final call ======================= */
.final {
  position: relative; isolation: isolate; overflow: hidden; padding: clamp(88px, 10vw, 140px) 0; text-align: center;
  background: radial-gradient(50% 60% at 50% 38%, rgba(238, 47, 71, 0.16), transparent 70%), var(--bg);
  border-top: 1px solid var(--line);
}
.final-inner { display: grid; justify-items: center; gap: 20px; }
/* The logo is flattened onto black; "screen" drops the black out over the dark section. */
.final-logo { width: min(400px, 78vw); margin-bottom: 4px; mix-blend-mode: screen; }
.final-title { max-width: 14em; font-size: clamp(2rem, 1.2rem + 3.2vw, 4rem); }
.final-title .accent { white-space: nowrap; }
.final p { max-width: 32em; color: var(--soft); }
.cta-center { justify-content: center; margin-top: 8px; }

/* ======================= Footer ======================= */
.site-footer { background: #0a0911; border-top: 1px solid var(--line); padding: 56px 0 24px; }
/* Columns: brand, Explore, Community, Contact (sized to fit the email addresses on one line), Legal. */
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) auto minmax(0, 1fr); gap: 36px; }
.footer-brand p { margin-top: 16px; color: var(--muted); font-size: 0.9375rem; }
.footer-head { margin-bottom: 12px; font: italic 900 0.875rem/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; }
.footer-col a { display: inline-block; padding: 6px 0; color: var(--muted); font-size: 0.9375rem; text-decoration: none; overflow-wrap: anywhere; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-base {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 20px;
  background: linear-gradient(var(--line), var(--line)) no-repeat 50% 0 / calc(100% - 2 * var(--edge)) 1px;
  color: var(--muted); font-size: 0.875rem;
}
.footer-base a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--muted); text-decoration: none; }
.footer-base a:hover { color: var(--text); }
@media (max-width: 1099px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto minmax(0, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 899px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 479px) { .footer-grid { grid-template-columns: 1fr; } }

/* ======================= Scroll reveal (only when JS runs) ======================= */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ======================= 404 ======================= */
.notfound {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px;
  padding: var(--edge); max-width: var(--wrap); margin: 0 auto;
}
.notfound-page { background: radial-gradient(60% 60% at 80% 40%, rgba(238, 47, 71, 0.16), transparent 70%), var(--bg); }
.notfound h1 { font-size: clamp(3rem, 1.7rem + 4.4vw, 6.25rem); }
.notfound p:not(.eyebrow) { color: var(--muted); font-size: 1.125rem; }

/* ======================= Legal pages ======================= */
/* Long-form reading: a short page head, a contents column, and a text column kept to a readable measure. */
.legal-head {
  padding: calc(var(--head-h) + clamp(48px, 7vw, 88px)) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line);
  background: radial-gradient(50% 90% at 85% 0%, rgba(238, 47, 71, 0.12), transparent 70%), var(--bg);
}
.legal-head .eyebrow { margin-bottom: 18px; }
.legal-title { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4.5rem); }
.legal-lede { margin-top: 20px; max-width: 40em; color: var(--soft); font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); }
.legal-updated { margin-top: 14px; color: var(--muted); font-size: 0.9375rem; }

.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); padding-top: clamp(36px, 5vw, 56px); padding-bottom: var(--sec); }
.legal-aside { position: sticky; top: calc(var(--head-h) + 24px); align-self: start; display: grid; gap: 28px; max-height: calc(100svh - var(--head-h) - 48px); overflow-y: auto; scrollbar-width: thin; }
.legal-aside ol, .legal-aside ul { margin: 0; padding: 0; list-style: none; }
.legal-aside a { display: block; padding: 5px 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.4; text-decoration: none; transition: color .2s; }
.legal-aside a:hover, .legal-aside a[aria-current="page"] { color: var(--text); }
.legal-aside a[aria-current="page"] { font-weight: 600; }

.legal-body { max-width: 68ch; color: var(--soft); }
.legal-body h2 {
  margin: 56px 0 0; padding-top: 28px; border-top: 1px solid var(--line); color: var(--text);
  font: italic 900 clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem)/1.05 var(--display); text-transform: uppercase; letter-spacing: 0;
}
.legal-body > h2:first-child, .legal-body > .legal-note:first-child + h2 { margin-top: 0; }
.legal-body h3 { margin: 28px 0 0; color: var(--text); font-weight: 700; font-size: 1.0625rem; }
.legal-body p, .legal-body ul, .legal-body dl { margin-top: 14px; }
.legal-body ul { padding-left: 1.25em; list-style: disc; }
.legal-body li + li { margin-top: 6px; }
.legal-body li::marker { color: var(--accent); }
.legal-body strong { color: var(--text); }
.legal-body a {
  color: var(--text); text-decoration: underline; text-decoration-color: rgba(238, 47, 71, 0.5);
  text-underline-offset: 4px; text-decoration-thickness: 1.5px; overflow-wrap: anywhere; transition: color .2s, text-decoration-color .2s;
}
.legal-body a:hover { color: #ff8a95; text-decoration-color: currentColor; }
.legal-body code { font-size: 0.9em; color: var(--text); }
.legal-note { margin-top: 0; margin-bottom: 40px; padding: 20px 22px; border-radius: 14px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.legal-note p:first-child { margin-top: 0; }
.legal-notice { color: var(--text); font-weight: 700; font-size: 1.125rem; }
.legal-defs div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.legal-defs div:first-child { border-top: 1px solid var(--line); }
.legal-defs dt { color: var(--text); font-weight: 600; }
.legal-defs dd { margin-top: 4px; }
.legal-mail { display: inline-block; margin-top: 6px; font-weight: 600; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); }
/* Information that must be confirmed before publishing. Visible on purpose; search the source for "CONFIRM". */
.todo { padding: 1px 6px; border-radius: 6px; background: rgba(255, 180, 77, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 180, 77, 0.45); color: #ffd28a; font-weight: 600; }

@media (max-width: 899px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-aside { position: static; max-height: none; padding: 18px 20px; border-radius: 14px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
  .legal-aside .legal-pages { display: none; } /* the footer lists the legal pages on small screens */
}

/* ======================= Reduced motion ======================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .mask.reveal:nth-child(2) { transform: translateY(36px); }
  .js .mask.reveal:nth-child(3) { transform: translateY(72px); }
  .sparks { display: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 899px) {
  .js .mask.reveal:nth-child(n) { transform: none; }
}
