/* =========================================================
   Rollabop design tokens
   Change colours, type and spacing here; everything else follows.
   ========================================================= */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../assets/fonts/source-serif-4-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../assets/fonts/source-serif-4-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Backgrounds */
  --bg: #0d0a08;
  --bg-raised: #140f0b;
  --bg-night: #050404;

  /* Walnut / espresso */
  --wood-0: #150d08;
  --wood-1: #22150d;
  --wood-2: #33200f;
  --wood-3: #4a2e1b;

  /* Brass */
  --brass: #c9a45c;
  --brass-light: #ecd49c;
  --brass-dark: #8a6a32;
  --brass-line: rgba(201, 164, 92, 0.42);
  --brass-hair: rgba(201, 164, 92, 0.22);

  /* Text */
  --ink: #efe6d6;          /* ~15:1 on --bg */
  --ink-muted: #bdb09a;    /* ~9:1 on --bg */
  --ink-faint: #978a75;    /* ~5.6:1 on --bg, small print only */

  /* Ball interiors: core / glow / deep */
  --blue-core: #e2f0ff;   --blue-glow: #4a8dff;   --blue-deep: #0c2461;
  --red-core: #ffe0d2;    --red-glow: #ff4f3d;    --red-deep: #5c0c08;
  --green-core: #ddffe6;  --green-glow: #2fd07e;  --green-deep: #063d24;
  --purple-core: #f1e2ff; --purple-glow: #a266ff; --purple-deep: #2b0d5e;
  --gold-core: #fff4d0;   --gold-glow: #f3b53d;   --gold-deep: #5c3606;

  /* Type */
  --font-display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --font-body: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;

  --step--1: clamp(0.9rem, 0.87rem + 0.15vw, 1rem);
  --step-0: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --step-1: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem);
  --step-3: clamp(2.2rem, 1.6rem + 2.8vw, 3.75rem);
  --step-4: clamp(2.6rem, 1.8rem + 4vw, 4.8rem);

  /* Space */
  --gutter: clamp(1.25rem, 0.8rem + 2.4vw, 3rem);
  --section: clamp(4.5rem, 3rem + 7vw, 10rem);
  --radius: 14px;
  --radius-lg: 22px;

  /* Depth */
  --shadow-deep: 0 30px 60px -20px rgba(0, 0, 0, 0.85), 0 12px 24px -12px rgba(0, 0, 0, 0.7);
  --shadow-soft: 0 14px 30px -18px rgba(0, 0, 0, 0.9);

  /* Walnut surface: long vertical grain, warm light from above */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9 0.011' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0.12  0 0 0 0 0.07  0 0 0 0 0.03  0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --wood-surface:
    var(--grain),
    linear-gradient(90deg, rgba(0,0,0,.25), transparent 12%, transparent 88%, rgba(0,0,0,.25)),
    linear-gradient(90deg, #26170d 0%, #38220f 22%, #2b1a0e 41%, #3c2413 63%, #2c1b0f 81%, #35210f 100%);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* =========================================================
   Base: reset, typography, layout helpers, accessibility
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.005em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--brass-light); text-decoration-color: var(--brass-line); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: #fff3d6; text-decoration-color: var(--brass); }

strong { font-weight: 650; color: var(--ink); }

ul, ol { padding-left: 1.2em; }
[role="list"] { list-style: none; padding: 0; margin: 0; }

::selection { background: rgba(201, 164, 92, 0.35); color: #fff; }

/* Visible, consistent focus */
:focus-visible {
  outline: 2px solid var(--brass-light);
  outline-offset: 3px;
  border-radius: 6px;
}
main:focus { outline: none; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  background: var(--wood-2);
  color: var(--ink);
  border: 1px solid var(--brass);
  border-radius: 999px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Layout */
.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left));
}
.wrap--narrow { max-width: 820px; }

.section { padding-block: var(--section); position: relative; }
.section--tight { padding-top: 0; }

/* Text styles */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass));
}

.section-head { margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.section-title { font-size: var(--step-3); }
.page-title { font-size: var(--step-4); margin-bottom: 1.25rem; }

.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink-muted); max-width: 38em; }
.muted { color: var(--ink-muted); }
.small { font-size: var(--step--1); }

/* Scroll reveal (only when JS is running and motion is welcome) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer__nav, .hero__stage, .galaxy__stage { display: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   Components
   ========================================================= */

/* ---------- Wordmarks (text stand-ins until official logos exist) ---------- */
.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  line-height: 1;
  background: linear-gradient(176deg, #fbf0d4 8%, #e2c07a 40%, #a9803b 62%, #e9d196 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wordmark--small { font-size: 1.5rem; letter-spacing: 0.12em; }
.wordmark--footer { font-size: 1.9rem; }
.wordmark--page { font-size: inherit; }
.wordmark--hero {
  display: block;
  font-size: clamp(2.6rem, 16cqi, 7rem);
  letter-spacing: 0.06em;
  margin-left: -0.04em;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.6));
}
/* The Rollabop wordmark image (brand only; never used for ordinary headings) */
.wordmark-img {
  display: block;
  height: auto;
  max-width: 100%;
  font-family: var(--font-display);   /* styles the alt text if the image ever fails */
  color: var(--brass-light);
}
.wordmark-img.wordmark--small { width: 132px; }
.wordmark-img.wordmark--footer { width: 176px; }
.wordmark-img.wordmark--page { width: min(100%, 460px); filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.55)); }
.wordmark-img.wordmark--hero {
  width: min(100%, 620px);
  margin-left: -1.2%;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 40px rgba(214, 150, 70, 0.12));
}
@media (min-width: 600px) and (max-width: 899px) {
  .wordmark-img.wordmark--hero { margin-inline: auto; width: min(100%, 560px); }
}

.studiomark { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.04em; }
.studiomark--footer { color: var(--ink); }
.studiomark--large { font-size: var(--step-3); color: var(--ink); }
.studiomark-img { display: inline-block; height: 1.4em; width: auto; vertical-align: middle; }
.studiomark--large.studiomark-img { height: 72px; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  padding-top: env(safe-area-inset-top);
}
.site-brand { display: inline-flex; align-items: center; min-height: 48px; text-decoration: none; }

.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 0.85rem;
  color: var(--ink-muted);
  text-decoration: none;
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  border-radius: 999px;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.site-nav a:hover { color: var(--ink); background: rgba(201, 164, 92, 0.08); }
.site-nav a[aria-current="page"] { color: var(--brass-light); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0 1rem;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  border: 1px solid var(--brass-line);
  border-radius: 999px;
  cursor: pointer;
}
.nav-toggle[hidden] { display: none; }
.nav-toggle__bars, .nav-toggle__bars::before {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--brass-light);
  position: relative;
  transition: transform 0.3s var(--ease);
}
.nav-toggle__bars::before { content: ""; position: absolute; top: 5px; }
.nav-toggle__bars { top: -2.5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { transform: translateY(2.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(90deg); }

@media (max-width: 719px) {
  .site-header__inner { flex-wrap: wrap; }
  .js .site-nav { display: none; flex-basis: 100%; padding-bottom: 1rem; }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 0; border-top: 1px solid var(--brass-hair); }
  .js .site-nav li { border-bottom: 1px solid var(--brass-hair); }
  .js .site-nav a { display: flex; font-size: var(--step-0); padding: 0.25rem 0.25rem; border-radius: 0; }
}
@media (min-width: 720px) { .nav-toggle { display: none !important; } }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--brass-hair);
  background:
    radial-gradient(ellipse 60% 120% at 50% 0%, rgba(201, 164, 92, 0.06), transparent 70%),
    var(--bg);
  padding-block: clamp(3rem, 2rem + 4vw, 5rem) calc(2rem + env(safe-area-inset-bottom));
}
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: flex-start; }
.site-footer__logo { text-decoration: none; display: inline-block; }
.site-footer__by { color: var(--ink-muted); margin: 0.6rem 0 0; font-size: var(--step--1); letter-spacing: 0.03em; }
.site-footer__nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; list-style: none; padding: 0; margin: 0; }
.site-footer__nav a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 0.75rem;
  color: var(--ink-muted); text-decoration: none; font-size: var(--step--1);
}
.site-footer__nav a:hover { color: var(--ink); }
.site-footer__legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--brass-hair);
  color: var(--ink-faint);
  font-size: var(--step--1);
}

/* ---------- Buttons & links ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.7rem 1.6rem;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(180deg, #3a2414, #24160c);
  border: 1px solid var(--brass-line);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 225, 170, 0.12), var(--shadow-soft);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(236, 212, 156, 0.18) 50%, transparent 65%);
  transform: translateX(-100%);
  transition: transform 0.8s var(--ease);
}
.btn:hover {
  color: #fff6e2;
  border-color: var(--brass);
  box-shadow: inset 0 1px 0 rgba(255, 225, 170, 0.2), 0 0 0 1px rgba(201, 164, 92, 0.15), 0 10px 30px -12px rgba(201, 164, 92, 0.35);
}
.btn:hover::after { transform: translateX(100%); }
.btn:active { transform: translateY(1px); }
.btn--primary { border-color: var(--brass); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  font-size: var(--step--1);
  letter-spacing: 0.06em;
}
.text-link:hover { color: var(--brass-light); }
.text-link__arrow { color: var(--brass); transition: transform 0.3s var(--ease); }
.text-link:hover .text-link__arrow { transform: translateX(4px); }

/* The release status: a brass plaque, not a button (nothing to click yet) */
.release-plaque {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  min-height: 56px;
  padding: 0.75rem 1.6rem 0.75rem 1.3rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 230, 180, 0.06), transparent 60%),
    linear-gradient(180deg, #2e1c10, #1c110a);
  border: 1px solid var(--brass);
  border-radius: 999px;
  box-shadow: inset 0 0 0 3px #1a100a, inset 0 0 0 4px var(--brass-hair), var(--shadow-soft);
}
.release-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff4d0, #f3b53d 45%, #6b4208);
  box-shadow: 0 0 10px rgba(243, 181, 61, 0.55);
}
.play-badge { display: inline-block; }
.play-badge img { height: 60px; width: auto; }

.tag {
  display: inline-block;
  vertical-align: middle;
  padding: 0.12rem 0.55rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--brass-light);
  border: 1px solid var(--brass-line);
  border-radius: 999px;
  white-space: nowrap;
}

.art-note {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

/* ---------- Glass balls ----------
   Clear glass, luminous interior. The colour lives inside the glass. */
.ball {
  --core: var(--blue-core); --glow: var(--blue-glow); --deep: var(--blue-deep);
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    /* luminous heart: small, bright, with a defined edge so it reads sharp */
    radial-gradient(circle at 50% 58%, #fff 0 3%, var(--core) 7%, var(--glow) 19%, color-mix(in srgb, var(--glow) 55%, var(--deep)) 31%, transparent 44%),
    /* light caught in the lower glass (refraction), crisp crescent */
    radial-gradient(ellipse 58% 30% at 50% 84%, color-mix(in srgb, var(--glow) 70%, #fff) 0 30%, color-mix(in srgb, var(--glow) 40%, transparent) 62%, transparent 72%),
    /* the tinted glass body, darkest just inside the rim */
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--deep) 85%, var(--glow)) 0 45%, var(--deep) 72%, color-mix(in srgb, var(--deep) 60%, #000) 92%);
  box-shadow: 0 0.3em 0.45em -0.2em rgba(0, 0, 0, 0.8);
}
/* Glass: crisp window highlight, pin-point sparkle, sharp bright rim */
.ball::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.95) 0 2.2%, transparent 3.4%),
    radial-gradient(ellipse 22% 14% at 33% 24%, rgba(255, 255, 255, 0.95) 0 52%, rgba(255, 255, 255, 0.55) 70%, transparent 76%),
    radial-gradient(ellipse 34% 26% at 36% 30%, rgba(255, 255, 255, 0.14) 0 70%, transparent 74%),
    radial-gradient(circle at 50% 50%, transparent 0 86%, rgba(255, 255, 255, 0.5) 92%, rgba(255, 255, 255, 0.15) 96%, rgba(0, 0, 0, 0.35) 99%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.ball--red    { --core: var(--red-core);    --glow: var(--red-glow);    --deep: var(--red-deep); }
.ball--green  { --core: var(--green-core);  --glow: var(--green-glow);  --deep: var(--green-deep); }
.ball--purple { --core: var(--purple-core); --glow: var(--purple-glow); --deep: var(--purple-deep); }
.ball--gold   { --core: var(--gold-core);   --glow: var(--gold-glow);   --deep: var(--gold-deep); }

/* Galaxy Ball: a living interior under the same glass */
.ball--galaxy { background: #03040c; overflow: hidden; isolation: isolate; }
.ball--galaxy::after { z-index: 2; }
.galaxy-spin { position: absolute; inset: -2%; display: block; }
.galaxy-spin svg { width: 100%; height: 100%; }
.galaxy-twinkle {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 62%, rgba(255, 255, 255, 0.95) 0 0.6%, transparent 1.4%),
    radial-gradient(circle at 70% 34%, rgba(220, 230, 255, 0.95) 0 0.5%, transparent 1.3%),
    radial-gradient(circle at 60% 72%, rgba(255, 240, 220, 0.9) 0 0.45%, transparent 1.2%);
  opacity: 0.4;
}
@media (prefers-reduced-motion: no-preference) {
  .galaxy-spin { animation: galaxy-turn 240s linear infinite; will-change: transform; }
  .galaxy-twinkle { animation: twinkle 7s ease-in-out infinite alternate; }
}
@keyframes galaxy-turn { to { transform: rotate(360deg); } }
@keyframes twinkle { 0% { opacity: 0.15; } 60% { opacity: 0.7; } 100% { opacity: 0.35; } }

/* ---------- Instruction diagrams ---------- */
.diagram-panel {
  padding: clamp(0.9rem, 0.6rem + 1vw, 1.3rem);
  background: var(--wood-surface);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--brass-line), inset 0 0 0 4px var(--wood-0), inset 0 0 0 5px var(--brass-hair), inset 0 10px 24px rgba(0, 0, 0, 0.45), var(--shadow-soft);
  color: var(--brass);
}
.diagram {
  position: relative;
  aspect-ratio: var(--w) / var(--h);
  font-size: clamp(9px, 1.4vw, 14px);
}
.diagram .ball {
  position: absolute;
  width: calc(100% / var(--w));
  left: calc((var(--x) - 0.5) / var(--w) * 100%);
  bottom: calc((var(--y) - 0.5) / var(--h) * 100%);
}
.diagram-arrows {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  color: var(--brass-light);
}
.diagram-arrows path { fill: none; stroke: currentColor; stroke-width: 0.045; stroke-dasharray: 0.12 0.09; stroke-linecap: round; }
.diagram-arrows marker path { stroke-dasharray: none; }

.ball.is-from { background: none; box-shadow: none; border: 1.5px dashed rgba(239, 230, 214, 0.35); }
.ball.is-from::after { display: none; }
.ball.is-held { box-shadow: 0 0 0 2px var(--brass-light), 0 0 18px 2px rgba(236, 212, 156, 0.45), 0 0.9em 1em -0.4em rgba(0, 0, 0, 0.8); z-index: 2; }
.ball.is-touch::before {
  content: ""; position: absolute; inset: -22%; border-radius: 50%;
  border: 1.5px solid rgba(236, 212, 156, 0.8);
  box-shadow: 0 0 0 5px rgba(236, 212, 156, 0.12);
}
.ball.is-match { box-shadow: 0 0 0 2px var(--brass-light), 0 0 16px rgba(236, 212, 156, 0.55); }
.ball.is-hint::before {
  content: ""; position: absolute; inset: -10%; border-radius: 50%;
  border: 1.5px dashed rgba(236, 212, 156, 0.65);
}
.ball.is-fall::before {
  content: ""; position: absolute; left: 30%; right: 30%; bottom: 70%; height: 90%;
  background: linear-gradient(to top, color-mix(in srgb, var(--glow) 45%, transparent), transparent);
  border-radius: 999px;
  filter: blur(2px);
  z-index: -1;
}
@media (prefers-reduced-motion: no-preference) {
  .ball.is-match { animation: match-glow 2.8s ease-in-out infinite alternate; }
}
@keyframes match-glow {
  from { box-shadow: 0 0 0 2px var(--brass-light), 0 0 8px rgba(236, 212, 156, 0.3); }
  to   { box-shadow: 0 0 0 2px var(--brass-light), 0 0 20px rgba(236, 212, 156, 0.65); }
}

/* ---------- Screenshots & placeholders ---------- */
.shot {
  margin: 0;
  aspect-ratio: var(--ar);
  border-radius: 28px;
  padding: 7px;
  background: linear-gradient(160deg, #3a2615, #140c07);
  box-shadow: inset 0 0 0 1px var(--brass-line), var(--shadow-deep);
}
.shot img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
.shot-empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1.25rem;
  text-align: center;
  border-radius: 22px;
  background:
    repeating-linear-gradient(135deg, rgba(201, 164, 92, 0.05) 0 1px, transparent 1px 14px),
    radial-gradient(ellipse at 50% 30%, #1d130c, #0c0806);
  border: 1px dashed rgba(201, 164, 92, 0.32);
}
.shot-mark {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--brass-line);
  background: radial-gradient(circle at 40% 35%, rgba(236, 212, 156, 0.35), transparent 60%);
}
.shot-label { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; color: var(--ink); line-height: 1.15; }
.shot-sub { overflow-wrap: anywhere; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- Panels (Support, About) ---------- */
.panel {
  padding: clamp(1.5rem, 1rem + 2.5vw, 2.5rem);
  background: linear-gradient(180deg, rgba(58, 36, 20, 0.35), rgba(20, 13, 8, 0.4));
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px var(--brass-hair), inset 0 1px 0 rgba(255, 225, 170, 0.06);
}
.panel h2 { font-size: var(--step-2); margin-bottom: 0.9rem; scroll-margin-top: 1.5rem; }
.panel ul, .panel ol { margin: 0 0 1em; }
.panel li { margin-bottom: 0.45em; }
.panel li::marker { color: var(--brass); }
.prose-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding-bottom: var(--section); }

.notice {
  margin-bottom: 2.5rem;
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius);
  background: rgba(201, 164, 92, 0.08);
  border: 1px solid var(--brass);
  border-left-width: 4px;
}
.notice__title { font-family: var(--font-body); font-size: var(--step-0); font-weight: 700; margin-bottom: 0.5rem; color: var(--brass-light); }

/* ---------- Tray (hero) ----------
   Flat, front-facing walnut tray with thin brass trim. */
.tray {
  --trim: clamp(1.5px, 0.25vw, 2.5px);
  position: relative;
  width: 100%;
  padding: 7%;
  border-radius: clamp(18px, 3vw, 30px);
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(255, 196, 120, 0.12), transparent 70%),
    var(--grain),
    linear-gradient(90deg, #1a0f08, #2b1a0e 20%, #22140b 50%, #2d1b0e 80%, #180e07);
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 160, 0.14),
    inset 0 -2px 0 rgba(0, 0, 0, 0.5),
    0 50px 80px -30px rgba(0, 0, 0, 0.95),
    0 20px 40px -20px rgba(0, 0, 0, 0.8);
}
.tray__frame { position: relative; }
.tray__trim {
  position: absolute;
  inset: calc(-1 * var(--trim) - 4px);
  border-radius: clamp(8px, 1.4vw, 14px);
  padding: var(--trim);
  background: linear-gradient(115deg, var(--brass-dark) 0%, var(--brass) 30%, var(--brass-light) 46%, #fff3d1 50%, var(--brass-light) 54%, var(--brass) 70%, var(--brass-dark) 100%);
  background-size: 300% 300%;
  background-position: 0% 50%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0.9;
}
@media (prefers-reduced-motion: no-preference) {
  .tray__trim { animation: brass-glint 14s ease-in-out infinite; }
}
@keyframes brass-glint {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.tray__board {
  position: relative;
  aspect-ratio: 10 / 17;
  border-radius: clamp(6px, 1vw, 10px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 45% at 50% -5%, rgba(255, 200, 130, 0.2), transparent 70%),
    radial-gradient(ellipse 70% 30% at 50% 105%, rgba(0, 0, 0, 0.55), transparent 70%),
    var(--wood-surface);
  box-shadow: inset 0 12px 24px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 -6px 18px rgba(0, 0, 0, 0.5);
}
.tray__balls {
  position: absolute;
  inset: 0;
  font-size: clamp(6px, 1.1vw, 12px);
}
.tray__balls .ball {
  position: absolute;
  width: var(--size);
}
/* Soft warm light each glowing ball casts onto the wood */
.tray__balls .ball:not(.ball--galaxy):not(.ball--art)::before {
  content: "";
  position: absolute;
  inset: 55% 5% -12%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 18%, transparent), transparent);
  pointer-events: none;
}
/* A ball shown with real artwork (the art has its own glass highlights) */
.ball--art { background: none; }
.ball--art::after { display: none; }
.ball--art img { display: block; width: 100%; height: 100%; border-radius: 50%; }
.tray__galaxy { z-index: 2; box-shadow: 0 0 22px rgba(120, 150, 255, 0.35), 0 0.35em 0.55em -0.2em rgba(0, 0, 0, 0.75); }

/* ---------- Support form ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.support-form { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
.support-form fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 1rem; }
.support-form legend {
  padding: 0; margin-bottom: 0.9rem;
  font-size: var(--step--1); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass);
}
.support-form .field { margin: 0; display: grid; gap: 0.4rem; }
.support-form .field-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.support-form label { color: var(--ink); }
.support-form .optional { color: var(--ink-faint); font-size: 0.9em; text-transform: none; letter-spacing: 0; font-weight: 400; }
.support-form input[type="text"], .support-form input[type="email"], .support-form select, .support-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-size: 1rem;           /* 16px+ stops phones zooming in on focus */
  color: var(--ink);
  background: rgba(8, 6, 4, 0.6);
  border: 1px solid var(--brass-line);
  border-radius: 10px;
}
.support-form textarea { resize: vertical; line-height: 1.5; }
.support-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--brass) 50%), linear-gradient(135deg, var(--brass) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
.support-form ::placeholder { color: var(--ink-faint); }
.support-form input:focus-visible, .support-form select:focus-visible, .support-form textarea:focus-visible { border-color: var(--brass-light); }
.support-form [aria-invalid="true"] { border-color: #e58b6b; }
.support-form .choices label { display: flex; align-items: center; gap: 0.75rem; min-height: 44px; }
.support-form input[type="radio"] { width: 20px; height: 20px; accent-color: var(--brass); }
.form-status { margin: 0; padding: 1rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--brass); background: rgba(201, 164, 92, 0.08); }
.form-status.is-error { border-color: #e58b6b; background: rgba(229, 139, 107, 0.08); }
.form-alt { margin-top: 1.5rem; color: var(--ink-muted); }

/* ---------- Galaxy Ball artwork, alive ----------
   The image stays still (so its glass reflections stay put); light moves inside it. */
.galaxy-art {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
}
.galaxy-art img { display: block; width: 100%; height: 100%; border-radius: 50%; }
.galaxy-art__sweep, .galaxy-art__core, .galaxy-art__star {
  position: absolute;
  pointer-events: none;
  mix-blend-mode: screen;
}
/* faint light turning slowly through the spiral arms */
.galaxy-art__sweep {
  inset: 12%;
  border-radius: 50%;
  background: conic-gradient(from 0deg at 53% 54%, transparent 0deg, rgba(150, 190, 255, 0.5) 30deg, transparent 75deg, transparent 180deg, rgba(150, 190, 255, 0.5) 210deg, transparent 255deg);
  -webkit-mask: radial-gradient(circle at 53% 54%, #000 0 30%, transparent 70%);
  mask: radial-gradient(circle at 53% 54%, #000 0 30%, transparent 70%);
  opacity: 0;
}
/* the glowing heart of the galaxy, breathing */
.galaxy-art__core {
  left: 53%;
  top: 54%;
  width: 34%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 238, 205, 0.7), rgba(255, 190, 120, 0.25) 35%, rgba(130, 160, 255, 0.12) 55%, transparent 70%);
  opacity: 0.15;
}
/* the painted stars, twinkling in place */
.galaxy-art__star {
  left: calc(var(--x) * 100%);
  top: calc(var(--y) * 100%);
  width: var(--s);
  aspect-ratio: 1;
  translate: -50% -50%;
  background:
    radial-gradient(circle, #fff 0 5%, rgba(255, 228, 175, 0.6) 13%, transparent 32%),
    radial-gradient(ellipse 50% 2.5% at 50% 50%, rgba(255, 242, 215, 0.95), transparent),
    radial-gradient(ellipse 2.5% 50% at 50% 50%, rgba(255, 242, 215, 0.95), transparent);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .galaxy-art__sweep { opacity: 0.34; animation: galaxy-turn 24s linear infinite; }
  .galaxy-art__core { animation: core-breathe 5s ease-in-out infinite alternate; }
  .galaxy-art__star { animation: star-twinkle 4.5s ease-in-out infinite; animation-delay: var(--delay, 0s); }
}
@keyframes core-breathe {
  from { opacity: 0.15; scale: 0.85; }
  to   { opacity: 0.9;  scale: 1.15; }
}
@keyframes star-twinkle {
  0%, 100% { opacity: 0;  scale: 0.4; rotate: 0deg; }
  40%      { opacity: 1;  scale: 1.25; rotate: 20deg; }
  55%      { opacity: 0.6; scale: 0.9; rotate: 28deg; }
  70%      { opacity: 0;  scale: 0.5; rotate: 35deg; }
}

/* =========================================================
   Page sections
   ========================================================= */

.tray__balls, .diagram { isolation: isolate; }

/* single-column grids never grow wider than the screen */
.hero__grid, .what__grid, .galaxy__grid, .levels__grid, .how__principles { grid-template-columns: minmax(0, 1fr); }

/* ---------- Hero ---------- */
.hero {
  --px: 0;
  --py: 0;
  position: relative;
  padding-block: clamp(1.5rem, 1rem + 3vw, 4rem) var(--section);
  overflow: hidden;
}
.hero::before {
  /* warm pool of evening light behind the tray */
  content: "";
  position: absolute;
  inset: -10% -20% auto auto;
  width: min(1100px, 120vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(214, 150, 70, 0.16), rgba(214, 150, 70, 0.05) 55%, transparent);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 2rem + 3vw, 4rem);
  align-items: center;
}
.hero__copy { container-type: inline-size; }
.hero__studio {
  margin: 0 0 1.1rem;
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}
.hero__logo { margin: 0 0 clamp(1.25rem, 1rem + 1.5vw, 2rem); font-size: inherit; }
.hero__headline {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 500;
  font-style: italic;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 1.25rem;
  max-width: 16ch;
}
.hero__body { font-size: var(--step-1); line-height: 1.55; color: var(--ink-muted); max-width: 32em; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }

.hero__stage {
  position: relative;
  width: min(100%, 360px);
  margin-inline: auto;
}
.hero__stage::after {
  /* the tray's shadow on the surface it stands on */
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 1.4rem;
  height: 40px;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.8), transparent);
  z-index: -1;
  filter: blur(6px);
}
.hero__art { width: 100%; }
.tray { transform: translate3d(calc(var(--px) * 6px), calc(var(--py) * 6px), 0); transition: transform 0.6s var(--ease); }
.tray__balls { transform: translate3d(calc(var(--px) * 2.5px), calc(var(--py) * 2px), 0); transition: transform 0.6s var(--ease); }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .hero__stage { width: min(100%, 440px, calc((100vh - 140px) * 0.56)); min-width: 320px; }
}
@media (min-width: 600px) and (max-width: 899px) {
  /* tablets & open foldables: copy centred, tray beneath at a comfortable size */
  .hero__copy { text-align: center; }
  .hero__headline, .hero__body { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__stage { width: min(62%, 380px); }
}

/* ---------- What is Rollabop ---------- */
.what__grid { display: grid; gap: clamp(3rem, 2rem + 4vw, 5rem); align-items: center; }
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 0;
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  border-top: 1px solid var(--brass-hair);
}
.feature {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  column-gap: 1.1rem;
  align-items: start;
  padding: 1.6rem 0.5rem 1.6rem 0;
  border-bottom: 1px solid var(--brass-hair);
}
.feature__ball { width: 2.6rem; grid-row: span 2; font-size: 10px; margin-top: 0.15rem; }
.feature__name {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 0.35rem;
}
.feature__text { color: var(--ink); margin: 0; }
.what__shots { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; max-width: 460px; margin-inline: auto; width: 100%; }
.shot--second { transform: translateY(12%); }

@media (min-width: 720px) {
  .features { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
}
@media (min-width: 1000px) {
  .what__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
}

/* ---------- How it plays ---------- */
.how { background: linear-gradient(180deg, transparent, rgba(34, 21, 13, 0.35) 30%, rgba(34, 21, 13, 0.35) 70%, transparent); }
.steps {
  display: grid;
  gap: clamp(1.5rem, 1rem + 2vw, 2rem);
  counter-reset: step;
}
.step { display: grid; align-content: start; grid-template-columns: minmax(120px, 0.9fr) 1.1fr; gap: 1.25rem; align-items: center; }
.step__num { font-family: var(--font-display); font-size: var(--step-1); color: var(--brass); margin: 0 0 0.1rem; line-height: 1; }
.step__title { font-size: var(--step-1); margin-bottom: 0.4rem; }
.step__text p:last-child { color: var(--ink-muted); font-size: var(--step--1); line-height: 1.55; }

@media (min-width: 640px) and (max-width: 1079px) {
  .steps { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
  .step { grid-template-columns: 1fr; align-items: start; }
}
@media (min-width: 1080px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
  .step { grid-template-columns: 1fr; align-items: start; }
}

.how__principles {
  display: grid;
  gap: 2rem;
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  padding-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  border-top: 1px solid var(--brass-hair);
  align-items: center;
}
.no-grid__title { font-size: var(--step-2); margin-bottom: 0.75rem; }
.no-grid p { color: var(--ink-muted); max-width: 34em; }
.principle {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-style: italic;
  font-weight: 500;
  line-height: 1.2;
  color: var(--brass-light);
  padding-left: 1.5rem;
  border-left: 1px solid var(--brass);
}
.how__more { margin-top: 2.5rem; }
@media (min-width: 900px) { .how__principles { grid-template-columns: 1.2fr 1fr; gap: 4rem; } }

/* ---------- Galaxy Balls (the darker room) ---------- */
.galaxy {
  background:
    radial-gradient(ellipse 60% 50% at 30% 50%, rgba(70, 90, 200, 0.12), transparent 70%),
    var(--bg-night);
  border-block: 1px solid rgba(201, 164, 92, 0.12);
  overflow: hidden;
  scroll-margin-top: 0;
}
.galaxy__grid { display: grid; gap: clamp(3rem, 2rem + 4vw, 5rem); align-items: center; }
.galaxy__stage {
  position: relative;
  display: grid;
  justify-items: center;
  padding-block: 1rem;
}
.galaxy__halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130%;
  aspect-ratio: 1;
  transform: translate(-50%, -55%);
  background: radial-gradient(closest-side, rgba(110, 140, 255, 0.16), rgba(110, 140, 255, 0.04) 60%, transparent);
  pointer-events: none;
}
.galaxy__hero, .galaxy__art { position: relative; width: min(78vw, 440px); }
.galaxy__art {
  height: auto;
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(110, 140, 255, 0.28), 0 0 140px rgba(110, 140, 255, 0.12), 0 40px 50px -30px rgba(0, 0, 0, 0.9);
}
.galaxy__ball {
  width: 100%;
  font-size: 22px;
  box-shadow: 0 0 60px rgba(110, 140, 255, 0.28), 0 0 140px rgba(110, 140, 255, 0.12), 0 40px 50px -30px rgba(0, 0, 0, 0.9);
}
.galaxy__ball::after {
  /* crisper glass at large size */
  background:
    radial-gradient(ellipse 13% 7% at 31% 21%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.45) 55%, transparent 100%),
    radial-gradient(ellipse 5% 3% at 70% 30%, rgba(255, 255, 255, 0.5), transparent 100%),
    radial-gradient(circle at 38% 30%, rgba(200, 215, 255, 0.1), transparent 40%),
    radial-gradient(ellipse 34% 10% at 58% 88%, rgba(255, 220, 170, 0.22), transparent 100%),
    radial-gradient(circle at 50% 50%, transparent 70%, rgba(170, 195, 255, 0.1) 86%, rgba(255, 255, 255, 0.4) 97%, rgba(255, 255, 255, 0.1) 100%);
  box-shadow: inset 0 -30px 60px rgba(0, 0, 0, 0.45), inset 0 8px 30px rgba(255, 255, 255, 0.06);
}
.galaxy__stand {
  width: min(40vw, 220px);
  height: 18px;
  margin-top: -10px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 30%, rgba(236, 212, 156, 0.55), rgba(138, 106, 50, 0.4) 40%, transparent 72%);
  filter: blur(1px);
}
.galaxy__fair {
  margin-top: 1.75rem;
  padding: 1.25rem 0 1.25rem 1.5rem;
  border-left: 1px solid var(--brass);
  color: var(--ink);
}
@media (min-width: 900px) {
  .galaxy__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Levels ---------- */
.levels__grid { display: grid; gap: clamp(3rem, 2rem + 4vw, 5rem); align-items: center; }
.brass-list { margin-top: 2rem; display: grid; gap: 0; border-top: 1px solid var(--brass-hair); }
.brass-list li { padding: 1.1rem 0 1.1rem 1.9rem; border-bottom: 1px solid var(--brass-hair); position: relative; }
.brass-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 1.55rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  border: 1px solid var(--brass);
  background: radial-gradient(circle at 40% 35%, rgba(236, 212, 156, 0.6), transparent 70%);
}
.brass-list__name { font-size: var(--step-1); margin-bottom: 0.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.brass-list p { color: var(--ink-muted); margin: 0; }
.levels__shot { width: min(100%, 300px); margin-inline: auto; }
@media (min-width: 900px) {
  .levels__grid { grid-template-columns: 1.3fr 0.7fr; }
}

/* ---------- Player-first ---------- */
.respect { text-align: center; }
.respect .eyebrow { justify-content: center; }
.respect .eyebrow::after { content: ""; width: 2.25rem; height: 1px; background: linear-gradient(90deg, var(--brass), transparent); }
.respect__lines { margin: clamp(2rem, 1.5rem + 2vw, 3rem) auto 0; max-width: 34rem; }
.respect__lines li {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.2;
  padding: 1rem 0;
  border-bottom: 1px solid var(--brass-hair);
}
.respect__lines li:first-child { border-top: 1px solid var(--brass-hair); }
.respect__promise {
  margin: clamp(2.5rem, 2rem + 2vw, 3.5rem) auto 1.25rem;
  max-width: 32rem;
  font-size: var(--step-1);
  font-style: italic;
  color: var(--brass-light);
  line-height: 1.5;
}
.respect__note { font-size: var(--step--1); }

/* ---------- Accessibility ---------- */
.access { background: linear-gradient(180deg, transparent, rgba(34, 21, 13, 0.3) 50%, transparent); }
.access__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.access__list li {
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--brass-hair);
  background: linear-gradient(180deg, rgba(58, 36, 20, 0.28), transparent);
}
.access__list h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.access__list p { color: var(--ink-muted); font-size: var(--step--1); line-height: 1.6; margin: 0; }

/* ---------- Studio ---------- */
.studio { text-align: center; padding-block: calc(var(--section) * 0.8); }
.studio .eyebrow { justify-content: center; }
.studio .eyebrow::after { content: ""; width: 2.25rem; height: 1px; background: linear-gradient(90deg, var(--brass), transparent); }
.studio__mark { margin-bottom: 1.25rem; display: flex; justify-content: center; }
.studio__text { color: var(--ink-muted); max-width: 36em; margin: 0 auto 1rem; font-size: var(--step-1); line-height: 1.55; }

/* ---------- Closing ---------- */
.closing { text-align: center; border-top: 1px solid var(--brass-hair); padding-block: calc(var(--section) * 0.8); }
.closing__title { font-size: var(--step-3); font-style: italic; font-weight: 500; margin-bottom: 2rem; }

/* ---------- Inner pages ---------- */
.page-hero { padding-block: clamp(2.5rem, 2rem + 4vw, 6rem) clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.page-hero--center { text-align: center; padding-bottom: var(--section); }
.page-hero--center .eyebrow { justify-content: center; }
.page-hero .wordmark--page { font-size: var(--step-4); }

.jump ul { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.jump a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem;
  border: 1px solid var(--brass-hair); border-radius: 999px;
  color: var(--ink-muted); text-decoration: none; font-size: var(--step--1);
}
.jump a:hover { color: var(--ink); border-color: var(--brass-line); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: clamp(1.25rem, 1rem + 1vw, 2rem);
}
.card {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding: clamp(1.1rem, 0.9rem + 1vw, 1.5rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(58, 36, 20, 0.32), rgba(20, 13, 8, 0.3));
  box-shadow: inset 0 0 0 1px var(--brass-hair);
}
.card__body { padding: 0 0.35rem 0.4rem; }
.card__num { font-family: var(--font-display); color: var(--brass); font-size: var(--step-1); margin: 0; line-height: 1; }
.card__title { font-size: var(--step-2); margin: 0.3rem 0 0.6rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.card__body p:last-child { color: var(--ink-muted); }
.card__icon { display: grid; place-items: center; aspect-ratio: 5 / 2.2; }
.card__icon svg { width: 70%; color: var(--brass-light); }
.guide-foot { margin-top: 3rem; font-size: var(--step--1); padding-bottom: var(--section); }

.legal { padding-bottom: var(--section); max-width: 42em; }
.legal section { padding-block: 1.6rem; border-top: 1px solid var(--brass-hair); }
.legal h2 { font-size: var(--step-2); margin-bottom: 0.8rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; }
.legal li { margin-bottom: 0.4em; }
.legal li::marker { color: var(--brass); }

.about-studio__mark { margin-bottom: 1rem; }
.details { margin: 0; display: grid; gap: 0; }
.details div { display: grid; grid-template-columns: minmax(7rem, 0.35fr) 1fr; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--brass-hair); }
.details div:last-child { border-bottom: 0; }
.details dt { color: var(--brass); font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; padding-top: 0.2em; }
.details dd { margin: 0; overflow-wrap: anywhere; }
.link-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- About: the studio story ---------- */
.story { scroll-margin-top: 1.5rem; }
.story__title { font-size: var(--step-3); margin-bottom: 1.5rem; }
.story p { max-width: 36em; line-height: 1.75; }
.story__title + p { font-size: var(--step-1); line-height: 1.6; color: var(--ink); }
.story__quote {
  margin: 2rem 0;
  padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 1px solid var(--brass);
}
.story__quote p {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-style: italic;
  font-weight: 500;
  line-height: 1.3;
  color: var(--brass-light);
}
.story__signature {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-style: italic;
  color: var(--ink-muted);
}

/* ---------- Trailer ---------- */
.trailer { padding-top: 0; }
.trailer__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 1.5rem + 3vw, 4rem); align-items: center; }
.trailer__frame {
  width: min(100%, 430px);
  margin-inline: auto;
  aspect-ratio: 9 / 18;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0c0705;
  box-shadow: inset 0 0 0 1px var(--brass-hair), var(--shadow-deep);
}
.trailer__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (min-width: 900px) {
  .trailer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.trailer__downloads { margin-top: 0.75rem; color: var(--ink-muted); }
.trailer__downloads a { display: inline-block; min-height: 44px; line-height: 44px; margin-left: 0.35rem; }

