/* =========================================================================
   ZEROOT STUDIOS — Design System
   Palette sampled directly from the Zeroot Studios logo:
     ground #FBF4E4 (cream)  ·  mark #000 (ink)  ·  accent gold added for CTAs
   ========================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand surfaces */
  --cream:        #FBF4E4;   /* exact logo ground colour */
  --cream-raised: #FFFCF3;
  --cream-sunk:   #F3EBD7;
  --ink:          #14120E;
  --ink-raised:   #1F1C15;
  --ink-deep:     #0B0A08;

  /* Accent */
  --gold:         #E8A33D;   /* bright — dark grounds, display type, decoration */
  --gold-deep:    #B87A16;
  --gold-text:    #8F5406;   /* 5.4:1 on cream — safe for body-size gold text */

  /* Text */
  --text:         #14120E;   /* 17:1 on cream */
  --text-muted:   #554E3E;   /* 7.3:1 on cream */
  --text-inv:     #FBF4E4;
  --text-inv-mut: #B9AE97;   /* 8.3:1 on ink */

  /* Lines */
  --line:         rgba(20, 18, 14, .13);
  --line-strong:  rgba(20, 18, 14, .28);
  --line-inv:     rgba(251, 244, 228, .16);
  --line-inv-str: rgba(251, 244, 228, .32);

  /* Type */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Fredoka", "Segoe UI", system-ui, sans-serif;
  --font-game:    "Titan One", "Space Grotesk", system-ui, sans-serif;

  /* Spacing scale (4/8 rhythm) */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 24px;  --s-6: 32px;  --s-7: 48px;  --s-8: 64px;
  --s-9: 96px;  --s-10: 128px;

  --section-y: clamp(72px, 10vw, 132px);
  --gutter:    clamp(20px, 5vw, 56px);
  --maxw:      1240px;

  /* Radii */
  --r-sm: 8px;  --r-md: 14px;  --r-lg: 22px;  --r-xl: 32px;

  /* Elevation */
  --e-1: 0 1px 2px rgba(20,18,14,.05), 0 2px 8px rgba(20,18,14,.04);
  --e-2: 0 2px 4px rgba(20,18,14,.05), 0 10px 28px rgba(20,18,14,.07);
  --e-3: 0 4px 10px rgba(20,18,14,.07), 0 24px 60px rgba(20,18,14,.11);

  /* Motion — tokenised so everything shares one rhythm */
  --ease-out:    cubic-bezier(.22, .8, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.36, .5, 1);
  --t-fast:  140ms;
  --t-mid:   260ms;
  --t-slow:  520ms;

  /* Layers */
  --z-base: 0; --z-raised: 10; --z-sticky: 40; --z-overlay: 100; --z-top: 1000;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.025em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; }

button, input, textarea, select { font: inherit; color: inherit; }

/* Long user content (URLs, IDs) must reflow, not overflow */
.wrap-anywhere { overflow-wrap: anywhere; min-width: 0; }

/* ---------- 3. Focus & skip link ---------- */
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
.on-ink :where(a, button, input, textarea, [tabindex]):focus-visible {
  outline-color: var(--gold);
}

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: var(--z-top);
  padding: var(--s-3) var(--s-5);
  background: var(--ink);
  color: var(--text-inv);
  border-radius: var(--r-sm);
  font-weight: 500;
  text-decoration: none;
  transition: top var(--t-fast) var(--ease-out);
}
.skip-link:focus-visible { top: var(--s-4); }

/* ---------- 4. Layout primitives ---------- */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }

.section--ink {
  background: var(--ink);
  color: var(--text-inv);
}
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--text-inv); }

.section--sunk { background: var(--cream-sunk); }

/* Section eyebrow: small caps label + hairline */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: var(--s-5);
}
.section--ink .eyebrow { color: var(--gold); }
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-strong);
  max-width: 120px;
}
.section--ink .eyebrow::after { background: var(--line-inv-str); }

.section-head { max-width: 62ch; margin-bottom: var(--s-8); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.15rem); }
.section-head p {
  margin-top: var(--s-5);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-muted);
  max-width: 60ch;
}
.section--ink .section-head p { color: var(--text-inv-mut); }

.lede {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.6;
  color: var(--text-muted);
}
.section--ink .lede { color: var(--text-inv-mut); }

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  min-height: 52px;                 /* > 44px touch target */
  padding: var(--s-3) var(--s-6);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;              /* a button label must never break in two */
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background var(--t-fast) var(--ease-out),
    color      var(--t-fast) var(--ease-out),
    border     var(--t-fast) var(--ease-out),
    transform  var(--t-fast) var(--ease-out),
    box-shadow var(--t-mid)  var(--ease-out);
}
.btn:hover  { transform: translateY(-2px); box-shadow: var(--e-2); }
.btn:active { transform: translateY(0) scale(.985); transition-duration: 90ms; }

.btn--gold  { --btn-bg: var(--gold); --btn-fg: var(--ink-deep); font-weight: 600; }
.btn--gold:hover { --btn-bg: #F2B052; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover { --btn-bg: rgba(20,18,14,.05); border-color: var(--text); }

.on-ink .btn--ghost, .section--ink .btn--ghost {
  --btn-fg: var(--text-inv);
  border-color: var(--line-inv-str);
}
.on-ink .btn--ghost:hover, .section--ink .btn--ghost:hover {
  --btn-bg: rgba(251,244,228,.08);
  border-color: var(--cream);
}

.btn[aria-disabled="true"], .btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn .btn-arrow { transition: transform var(--t-mid) var(--ease-spring); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* Text link with underline reveal */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--gold-text);
  text-decoration: none;
  padding-block: var(--s-2);
}
.section--ink .link-arrow { color: var(--gold); }
.link-arrow span {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size var(--t-mid) var(--ease-out);
}
.link-arrow:hover span { background-size: 100% 1.5px; }
.link-arrow svg { transition: transform var(--t-mid) var(--ease-spring); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 6. Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(251, 244, 228, .82);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-mid) var(--ease-out),
              background   var(--t-mid) var(--ease-out);
}
.header[data-scrolled="true"] {
  border-bottom-color: var(--line);
  background: rgba(251, 244, 228, .93);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: 76px;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
/* Big enough that the "Studios" line stays legible — it is the smaller of the
   two words in the lockup and sets the floor for the whole mark. */
.brand img { width: auto; height: clamp(42px, 3.4vw, 50px); }

.nav { display: none; }
@media (min-width: 1010px) {
  .nav { display: flex; align-items: center; gap: var(--s-2); }
}
.nav a {
  position: relative;
  padding: var(--s-3) var(--s-4);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;              /* "DiceZ Royale" stays on one line */
  border-radius: var(--r-sm);
  transition: color var(--t-fast) var(--ease-out);
}
.nav a::after {
  content: "";
  position: absolute;
  left: var(--s-4);
  right: var(--s-4);
  bottom: 6px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-mid) var(--ease-out);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="true"] { color: var(--text); }
.nav a[aria-current="true"]::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: var(--s-3); }
.header__cta { display: none; }
@media (min-width: 1010px) { .header__cta { display: inline-flex; min-height: 46px; padding-inline: var(--s-5); } }

/* Mobile menu toggle */
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: transparent;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  touch-action: manipulation;
  transition: background var(--t-fast) var(--ease-out);
}
.menu-btn:hover { background: rgba(20,18,14,.05); }
@media (min-width: 1010px) { .menu-btn { display: none; } }

.menu-btn__bars { position: relative; width: 18px; height: 12px; }
.menu-btn__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t-mid) var(--ease-out), opacity var(--t-fast) var(--ease-out);
}
.menu-btn__bars span:nth-child(1) { top: 0; }
.menu-btn__bars span:nth-child(2) { top: 5px; }
.menu-btn__bars span:nth-child(3) { top: 10px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Mobile panel */
.mobile-nav {
  position: fixed;
  inset: 76px 0 0;
  z-index: var(--z-overlay);
  background: var(--cream);
  padding: var(--s-6) var(--gutter) var(--s-9);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity var(--t-mid) var(--ease-out),
              transform var(--t-mid) var(--ease-out),
              visibility 0s linear var(--t-mid);
}
.mobile-nav[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 60px;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  text-decoration: none;
}
.mobile-nav a svg { color: var(--gold-deep); opacity: .55; }
.mobile-nav .btn { width: 100%; margin-top: var(--s-7); }
@media (min-width: 1010px) { .mobile-nav { display: none; } }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(56px, 8vw, 104px) clamp(64px, 9vw, 120px);
  overflow: hidden;
}

.hero__inner { position: relative; z-index: var(--z-raised); }

/* The logo mark as a watermark — decorative only.
   Only shown from 1024px up, where there is real empty space beside the
   copy; below that it would sit on top of the headline. */
.hero__backdrop { display: none; }

@media (min-width: 1024px) {
  .hero__backdrop {
    display: block;
    position: absolute;
    /* Sits high in the hero so the mark clears the rule above the stats row. */
    top: 39%;
    /* Tucked to the edge at mid widths; pulled in towards the content as the
       viewport grows past the container and real slack opens up. */
    right: max(-24px, calc((100% - 1240px) / 2 - 270px));
    width: min(680px, 44vw);
    height: auto;
    transform: translateY(-50%);
    opacity: .18;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
  }
}

.hero h1 {
  font-size: clamp(2.9rem, 8vw, 6.5rem);
  letter-spacing: -.04em;
  margin-bottom: var(--s-6);
  text-wrap: pretty;          /* the accent line breaks on its own <span> */
}
.hero h1 .accent {
  display: block;
  color: var(--gold-text);
  text-wrap: balance;         /* stops "in." stranding on its own line at 375px */
}
.hero__lede { max-width: 58ch; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-top: var(--s-7);
}

/* Availability pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-4) var(--s-2) var(--s-3);
  margin-bottom: var(--s-6);
  background: var(--cream-raised);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--e-1);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--text-muted);
}
.pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(232, 163, 61, .22);
  animation: pulse 2.6s var(--ease-out) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(232,163,61,.22); }
  50%      { box-shadow: 0 0 0 7px rgba(232,163,61,.06); }
}

/* Hero stats row */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--s-5) var(--s-6);
  margin-top: var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
}
.hero__stats div { min-width: 0; }
.hero__stats dt {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.hero__stats dd {
  margin: var(--s-1) 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------- 9. Marquee ---------- */
.marquee {
  background: var(--ink);
  color: var(--cream);
  padding-block: var(--s-4);
  overflow: hidden;
  border-block: 1px solid var(--ink);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: slide 42s linear infinite;
}
.marquee__group {
  display: flex;
  align-items: center;
  gap: var(--s-7);
  padding-right: var(--s-7);
  flex: none;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__item::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
}
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- 10. Cards & grids ---------- */
.grid { display: grid; gap: var(--s-5); }
@media (min-width: 720px)  { .grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 720px)  { .grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 600px)  { .grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1000px) { .grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); } }

.card {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-6);
  background: var(--cream-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--e-1);
  transition: transform var(--t-mid) var(--ease-out),
              box-shadow var(--t-mid) var(--ease-out),
              border-color var(--t-mid) var(--ease-out);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--e-3);
  border-color: var(--line-strong);
}
.card h3 { font-size: 1.32rem; letter-spacing: -.02em; }
.card p  { color: var(--text-muted); font-size: 15.5px; line-height: 1.65; }

.card--ink {
  background: var(--ink-raised);
  border-color: var(--line-inv);
  box-shadow: none;
}
.card--ink h3 { color: var(--text-inv); }
.card--ink p  { color: var(--text-inv-mut); }
.card--ink:hover { border-color: rgba(232,163,61,.5); box-shadow: 0 20px 50px rgba(0,0,0,.35); }

/* Icon plate */
.icon-plate {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: var(--r-md);
  background: var(--cream-sunk);
  border: 1px solid var(--line);
  color: var(--gold-text);
}
.card--ink .icon-plate {
  background: rgba(232,163,61,.12);
  border-color: rgba(232,163,61,.28);
  color: var(--gold);
}

/* Numbered step */
.step { position: relative; padding-top: var(--s-6); border-top: 2px solid var(--line-strong); }
.step__num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--gold-text);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--s-4);
}
.step h3 { font-size: 1.2rem; margin-bottom: var(--s-3); }
.step p  { color: var(--text-muted); font-size: 15.5px; }

/* ---------- 11. Who we are ---------- */
.about__grid {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}
@media (min-width: 900px) {
  .about__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: .6;
  color: var(--gold);
  opacity: .5;
  margin-bottom: var(--s-4);
}
.about__statement {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: -.02em;
}
.about__statement em { font-style: normal; color: var(--gold-text); }

/* ---------- 12. DiceZ Royale section ---------- */
/* The key art runs full bleed off the top edge, so the section owns no top padding */
.game { position: relative; overflow: hidden; padding-top: 0; }
.game > .shell { position: relative; z-index: var(--z-raised); }

.game__keyart {
  position: relative;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.game__keyart img {
  width: 100%;
  aspect-ratio: 16 / 11;          /* crops tighter on phones so faces stay large */
  object-fit: cover;
  object-position: 50% 38%;
}
@media (min-width: 760px) {
  .game__keyart img { aspect-ratio: 2.78 / 1; }   /* the band's native ratio */
}
/* Dissolve the bottom edge into the section ground */
.game__keyart::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 45%;
  background: linear-gradient(to bottom, rgba(20,18,14,0) 0%, var(--ink) 94%);
  pointer-events: none;
}

/* Centred intro — a deliberate break from the page's left-aligned rhythm,
   matching the centred composition of the key art above it. */
.game__intro {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}
.game__intro .game__actions { justify-content: center; }
.game__intro .game__lede { margin-inline: auto; }

.game__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-5);
  border: 1px solid rgba(232,163,61,.45);
  border-radius: 999px;
  background: rgba(232,163,61,.10);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* The heading is the game's own logo. Alt text carries the words. */
.game__title { margin: var(--s-5) 0 var(--s-6); }
.game__title img {
  width: min(440px, 82%);
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 12px 40px rgba(232, 163, 61, .22));
}
.game__lede { max-width: 56ch; font-size: clamp(1.02rem, 1.6vw, 1.2rem); }
.game__actions { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-7); }
.game__features { margin-top: clamp(56px, 8vw, 88px); }

/* Character roster */
.roster { margin-top: clamp(56px, 8vw, 88px); }
.roster__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 620px) { .roster__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 940px) { .roster__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.roster__item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-inv);
  border-radius: var(--r-md);
  transition: transform var(--t-mid) var(--ease-out),
              border-color var(--t-mid) var(--ease-out),
              box-shadow var(--t-mid) var(--ease-out);
}
.roster__item img {
  width: 100%;
  aspect-ratio: 440 / 580;
  object-fit: cover;
}
.roster__item span {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--s-8) var(--s-3) var(--s-3);
  font-family: var(--font-game);      /* Titan One — the game's own display face */
  font-size: 15px;
  letter-spacing: .02em;
  text-align: center;
  color: var(--cream);
  background: linear-gradient(to bottom, rgba(11,10,8,0), rgba(11,10,8,.88) 62%);
}
.roster__item:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 163, 61, .55);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .42);
}

/* Screenshot gallery */
.shots { margin-top: clamp(48px, 7vw, 80px); }
/* Six shots in an even grid. The key art above carries the hero moment, so the
   gallery stays uniform rather than promoting one frame. */
.shots__grid { display: grid; gap: var(--s-5); }
@media (min-width: 700px)  { .shots__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1020px) { .shots__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.shot {
  display: grid;
  gap: var(--s-3);
  margin: 0;
  align-content: start;
}
.shot img {
  width: 100%;
  aspect-ratio: 16 / 9;       /* space reserved up-front — no layout shift */
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--line-inv);
  background: var(--ink-raised);
  transition: border-color var(--t-mid) var(--ease-out),
              transform    var(--t-mid) var(--ease-out),
              box-shadow   var(--t-mid) var(--ease-out);
}
.shot:hover img {
  border-color: rgba(232, 163, 61, .55);
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .4);
}
.shot figcaption {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--text-inv-mut);
}

/* Placeholder for an empty slot — reusable if you add more shots later */
.shot--empty {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  display: grid;
  place-items: center;
  gap: var(--s-3);
  padding: var(--s-5);
  text-align: center;
  background:
    repeating-linear-gradient(135deg,
      rgba(251,244,228,.035) 0 12px,
      transparent 12px 24px),
    var(--ink-raised);
  border-style: dashed;
  border-color: var(--line-inv-str);
}
.shot--empty p {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--text-inv-mut);
}
.shot--empty code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  color: var(--gold);
  overflow-wrap: anywhere;
}
.shot--empty svg { color: var(--gold); opacity: .5; }

/* ---------- 13. Services ---------- */
.service {
  display: grid;
  gap: var(--s-5);
  padding-block: var(--s-7);
  border-top: 1px solid var(--line);
  align-items: start;
}
@media (min-width: 860px) {
  .service { grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--s-7); }
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.service__desc { color: var(--text-muted); }
.service__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: var(--s-5) 0 0;
  padding: 0;
  list-style: none;
}
.service__list li {
  padding: 6px var(--s-4);
  background: var(--cream-raised);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-muted);
  white-space: normal;          /* wrap the collection, never shrink labels */
}

/* ---------- 14. Contact ---------- */
.contact__grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: start; }
@media (min-width: 940px) {
  .contact__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); }
}

.contact__direct {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--gold);
  text-decoration: none;
  overflow-wrap: anywhere;
  margin-top: var(--s-5);
}
.contact__direct:hover { text-decoration: underline; text-underline-offset: 5px; }

.socials { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-7); }
.socials a {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;         /* 48px touch target */
  border: 1px solid var(--line-inv-str);
  border-radius: 999px;
  color: var(--text-inv);
  transition: background var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
}
.socials a:hover {
  background: rgba(232,163,61,.14);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* Form */
.form { display: grid; gap: var(--s-5); }
.field { display: grid; gap: var(--s-2); }
.field label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
}
.field .req { color: var(--gold); margin-left: 2px; }
.field .hint { font-size: 13.5px; color: var(--text-inv-mut); }

.field input, .field textarea, .field select {
  min-height: 52px;                  /* touch-friendly */
  padding: var(--s-3) var(--s-4);
  background: rgba(251,244,228,.05);
  border: 1.5px solid var(--line-inv-str);
  border-radius: var(--r-md);
  color: var(--text-inv);
  font-size: 16px;                   /* prevents iOS zoom-on-focus */
  transition: border-color var(--t-fast) var(--ease-out),
              background var(--t-fast) var(--ease-out);
}
.field textarea { min-height: 148px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: rgba(185,174,151,.6); }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--line-inv-str); background: rgba(251,244,228,.08); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); background: rgba(251,244,228,.08); }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23B9AE97' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--s-4) center;
  padding-right: var(--s-8);
  cursor: pointer;
}
.field select option { background: var(--ink-raised); color: var(--text-inv); }

/* Validation */
.field[data-invalid="true"] input,
.field[data-invalid="true"] textarea { border-color: #FF8A7A; }
.field__error {
  display: none;
  align-items: center;
  gap: var(--s-2);
  font-size: 13.5px;
  color: #FF9E90;                    /* 6.4:1 on ink */
}
.field[data-invalid="true"] .field__error { display: flex; }
.field[data-invalid="true"] .hint { display: none; }

.error-summary {
  display: none;
  padding: var(--s-4) var(--s-5);
  background: rgba(255, 138, 122, .1);
  border: 1.5px solid rgba(255, 138, 122, .45);
  border-radius: var(--r-md);
}
.error-summary[data-visible="true"] { display: block; }
.error-summary h3 { font-size: 1rem; color: #FF9E90; margin-bottom: var(--s-3); }
.error-summary ul { margin: 0; padding-left: var(--s-5); display: grid; gap: var(--s-2); }
.error-summary a { color: #FF9E90; font-size: 14px; }

.form__status {
  display: none;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-md);
  font-size: 15px;
}
.form__status[data-state="success"] {
  display: flex;
  background: rgba(232,163,61,.12);
  border: 1.5px solid rgba(232,163,61,.42);
  color: var(--gold);
}
.form__status[data-state="error"] {
  display: flex;
  background: rgba(255, 138, 122, .1);
  border: 1.5px solid rgba(255, 138, 122, .45);
  color: #FF9E90;
}
.form__status[data-state="error"] svg { display: none; }   /* the tick makes no sense here */
.form__status svg { flex: none; margin-top: 3px; }
.form__status:focus { outline: none; }                     /* focused programmatically only */

/* Honeypot: off-canvas, never display:none (some bots check for that) */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ---------- 15. Footer ---------- */
.footer {
  background: var(--ink-deep);
  color: var(--text-inv-mut);
  padding-block: var(--s-8) var(--s-7);
  border-top: 1px solid var(--line-inv);
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-7);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid var(--line-inv);
}
.footer img { height: 52px; width: auto; }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); }
.footer__links a {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-inv-mut);
  text-decoration: none;
  padding-block: var(--s-2);
  transition: color var(--t-fast) var(--ease-out);
}
.footer__links a:hover { color: var(--gold); }
.footer__links .footer__ext { display: inline-flex; align-items: center; gap: 4px; color: var(--gold); }
.footer__links .footer__ext svg { opacity: .7; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-4);
  padding-top: var(--s-6);
  font-size: 13.5px;
}

/* ---------- 16. Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 17. Utilities ---------- */
.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;
}
.no-scroll { overflow: hidden; }

/* ---------- 18. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
