/* ============================================================
   RUNELIGHT — PB Fun Gaming / Sequence Slayer
   Design preview stylesheet (scratch; not the published site)
   Palette + motifs derived from the shipping Android client.
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --void:        #04070d;
  --deep:        #070d17;
  --raise:       #0b1420;

  --plate:       rgba(11, 22, 34, .70);
  --plate-solid: #0a1521;
  --edge:        rgba(120, 200, 220, .17);
  --edge-hot:    rgba(120, 210, 232, .42);
  --edge-gold:   rgba(232, 180, 85, .38);

  --cyan:        #57dce8;
  --cyan-deep:   #2b93a6;
  --gold:        #e8b455;
  --gold-hot:    #f7d089;
  --ember:       #d9603f;

  --ink:         #eaf2f5;
  --ink-2:       #b9cbd6;
  --muted:       #8ba1af;
  /* #5d7280 measured 4.02:1 on the page background — below the 4.5 AA floor for small text */
  --faint:       #6f8593;

  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --hdr: 60px;
  --gut: clamp(20px, 5vw, 56px);
  --max: 1180px;

  --t: cubic-bezier(.22, .61, .36, 1);

  /* notch scale — one signature corner cut at three deliberate sizes */
  --notch-s: 10px;
  --notch-m: 14px;
  --notch-l: 18px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); }
body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration-color: rgba(87, 220, 232, .35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--cyan); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }
button { font: inherit; color: inherit; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: .01em; line-height: 1.1; margin: 0; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.wrap--narrow { max-width: 760px; }
.skip {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--gold); color: #1a1206; padding: 10px 18px; border-radius: 4px;
  font-weight: 600; text-decoration: none; transition: top .18s var(--t);
}
.skip:focus { top: 8px; }

/* ---------- shared type utilities ---------- */
.eyebrow {
  font-family: var(--display);
  font-size: 12px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 14px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold));
  flex: none;
}
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); line-height: 1.6; }
.muted { color: var(--muted); }
.h-xl { font-size: clamp(38px, 6.4vw, 76px); letter-spacing: .005em; }
.h-lg { font-size: clamp(28px, 3.7vw, 46px); }
.h-md { font-size: clamp(20px, 2vw, 26px); }
.h-sm { font-size: clamp(17px, 1.35vw, 19px); letter-spacing: .04em; }

/* ============================================================
   HEADER
   ============================================================ */
.hdr {
  position: sticky; top: 0; z-index: 90; height: var(--hdr);
  background: rgba(4, 7, 13, .72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(120, 200, 220, .10);
}
.hdr__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand {
  display: inline-flex; align-items: center; gap: 11px; min-height: 44px;
  font-family: var(--display); font-size: 14px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink); text-decoration: none;
}
.brand__mark { width: 15px; height: 15px; flex: none; transform: rotate(45deg); position: relative; }
.brand__mark::before, .brand__mark::after {
  content: ""; position: absolute; inset: 0; border: 1px solid var(--cyan);
}
.brand__mark::after { inset: 4px; background: var(--cyan); border: 0; opacity: .8; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-size: 13px; font-weight: 500; letter-spacing: .11em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none; border-radius: 3px;
  transition: color .18s var(--t), background .18s var(--t);
}
.nav a:hover { color: var(--ink); background: rgba(120, 200, 220, .07); }
.nav a[aria-current="page"] { color: var(--gold); }

/* ============================================================
   RUNE PLATE — the signature surface (from the in-game menu cards)
   ============================================================ */
.plate {
  position: relative;
  background:
    linear-gradient(180deg, rgba(24, 44, 60, .5), rgba(8, 16, 25, .78));
  border: 1px solid var(--edge);
  clip-path: polygon(var(--notch-m) 0, 100% 0, 100% calc(100% - var(--notch-m)), calc(100% - var(--notch-m)) 100%, 0 100%, 0 var(--notch-m));
  padding: 26px 26px 28px;
  transition: border-color .25s var(--t), transform .25s var(--t), background .25s var(--t);
}
.plate::before {
  content: ""; position: absolute; left: 0; top: 0; width: 46px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: translate(14px, 0); opacity: .8;
}
.plate--hover:hover {
  border-color: var(--edge-hot);
  background: linear-gradient(180deg, rgba(30, 56, 74, .58), rgba(9, 18, 28, .82));
  transform: translateY(-2px);
}

/* ---------- section scaffolding ---------- */
.sec { position: relative; padding-block: clamp(64px, 8vw, 116px); }
.sec--tight { padding-block: clamp(48px, 5.5vw, 72px); }
.divider { position: relative; height: 1px; background: linear-gradient(90deg, transparent, rgba(120,200,220,.22) 20%, rgba(120,200,220,.22) 80%, transparent); }
.divider::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--void); border: 1px solid var(--gold); opacity: .75;
}
.sec-head { max-width: 640px; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head p:last-child { margin-bottom: 0; }
.sec-head .h-lg { margin-bottom: 16px; }

/* atmospheric backdrop for a section */
.atmos { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.atmos img { width: 100%; height: 100%; object-fit: cover; opacity: .20; filter: saturate(.75); }
.atmos::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 40%, transparent, rgba(4,7,13,.86) 72%),
    linear-gradient(180deg, var(--void), transparent 22%, transparent 78%, var(--void));
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 6vw, 84px) clamp(52px, 6.5vw, 92px); }
.hero__bg { position: absolute; inset: 0; z-index: -3; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(100% 76% at 26% 46%, rgba(4,7,13,.28), rgba(4,7,13,.93) 70%),
    linear-gradient(180deg, rgba(4,7,13,.78), rgba(4,7,13,.32) 28%, var(--void) 97%);
}
.hero__glow {
  position: absolute; z-index: -1; width: 780px; height: 780px; right: -180px; top: -220px;
  background: radial-gradient(circle, rgba(87,220,232,.13), transparent 62%);
  pointer-events: none;
}
/* the brand medallion, bleeding off the left edge behind the headline */
.hero__sigil {
  position: absolute; z-index: -2; pointer-events: none;
  width: clamp(340px, 42vw, 600px); aspect-ratio: 1;
  left: clamp(-330px, -19vw, -150px); top: 50%; transform: translateY(-52%);
}
.hero__sigil img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  opacity: .46; mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 74%);
          mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 74%);
}
.hero__sigil::after {
  content: ""; position: absolute; inset: 8%;
  border-radius: 50%; box-shadow: 0 0 120px 30px rgba(87,220,232,.13);
}
.hero__grid {
  display: grid; gap: clamp(34px, 4.5vw, 60px);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
}
.hero__wordmark { max-width: 460px; margin: 0 0 24px; }
.hero__wordmark img { width: 100%; filter: drop-shadow(0 0 40px rgba(87,220,232,.3)) drop-shadow(0 2px 10px rgba(0,0,0,.7)); }
.flagship__logo img { width: 100%; }
.hero .lede { max-width: 34em; }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-size: 11.5px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-hot);
  border: 1px solid var(--edge-gold); background: rgba(232,180,85,.07);
  padding: 8px 15px; border-radius: 2px;
}
.pill::before {
  content: ""; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); flex: none;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; cursor: pointer;
  font-family: var(--display); font-size: 13px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--edge-gold); background: transparent; color: var(--gold-hot);
  clip-path: polygon(var(--notch-s) 0, 100% 0, 100% calc(100% - var(--notch-s)), calc(100% - var(--notch-s)) 100%, 0 100%, 0 var(--notch-s));
  transition: background .22s var(--t), color .22s var(--t), border-color .22s var(--t);
}
.btn:hover { background: rgba(232,180,85,.13); border-color: var(--gold); color: #fff2d8; }
.btn--ghost { border-color: var(--edge); color: var(--ink-2); }
.btn--ghost:hover { background: rgba(120,200,220,.09); border-color: var(--edge-hot); color: var(--ink); }

/* ============================================================
   THE BOARD — interactive rune demo
   ============================================================ */
.board-shell { position: relative; }
.board-shell::before {
  content: ""; position: absolute; inset: -34px;
  background: radial-gradient(circle at 50% 45%, rgba(87,220,232,.15), transparent 66%);
  pointer-events: none;
}
.board-frame {
  position: relative;
  padding: 20px;
  background: linear-gradient(180deg, rgba(20,38,52,.62), rgba(6,13,21,.86));
  border: 1px solid var(--edge);
  clip-path: polygon(var(--notch-l) 0, 100% 0, 100% calc(100% - var(--notch-l)), calc(100% - var(--notch-l)) 100%, 0 100%, 0 var(--notch-l));
}
.board-frame::after {
  content: ""; position: absolute; inset: 7px; border: 1px solid rgba(120,200,220,.10); pointer-events: none;
  clip-path: polygon(var(--notch-s) 0, 100% 0, 100% calc(100% - var(--notch-s)), calc(100% - var(--notch-s)) 100%, 0 100%, 0 var(--notch-s));
}
.board-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 2px 4px 14px;
}
.board-status {
  font-family: var(--display); font-size: 12px; font-weight: 700;
  letter-spacing: .19em; text-transform: uppercase; color: var(--cyan);
  transition: color .2s var(--t);
}
.board-status[data-tone="gold"] { color: var(--gold-hot); }
.board-status[data-tone="fail"] { color: var(--ember); }
.board-round {
  font-family: var(--display); font-size: 12px; letter-spacing: .17em;
  text-transform: uppercase; color: var(--faint);
}
.board-round b { color: var(--ink); font-weight: 700; }

.board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 10px; aspect-ratio: 1; width: 100%;
}
.tile {
  position: relative; display: grid; place-items: center; padding: 0;
  background: linear-gradient(180deg, rgba(18,34,48,.9), rgba(9,17,26,.9));
  border: 1px solid rgba(120,200,220,.13);
  border-radius: 3px; cursor: pointer;
  transition: background .22s var(--t), border-color .22s var(--t), box-shadow .22s var(--t), transform .12s var(--t);
}
.tile svg {
  width: 46%; height: auto; aspect-ratio: 1; overflow: visible;
  fill: none; stroke: rgba(150, 190, 210, .32); stroke-width: 6;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .22s var(--t), filter .22s var(--t);
}
.tile:hover { border-color: rgba(120,200,220,.3); }
.tile:hover svg { stroke: rgba(160,210,230,.58); }

.tile.is-lit {
  background: linear-gradient(180deg, rgba(46,120,140,.55), rgba(16,44,58,.75));
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(87,220,232,.4), 0 0 26px rgba(87,220,232,.45), inset 0 0 20px rgba(87,220,232,.18);
}
.tile.is-lit svg { stroke: #d5fbff; filter: drop-shadow(0 0 6px rgba(87,220,232,.95)); }
.tile.is-hit {
  background: linear-gradient(180deg, rgba(140,104,36,.55), rgba(48,32,10,.78));
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(232,180,85,.42), 0 0 26px rgba(232,180,85,.42);
  transform: scale(.965);
}
.tile.is-hit svg { stroke: #fff0cf; filter: drop-shadow(0 0 6px rgba(232,180,85,.9)); }
.tile.is-bad {
  background: linear-gradient(180deg, rgba(150,58,36,.6), rgba(52,16,10,.8));
  border-color: var(--ember);
  box-shadow: 0 0 0 1px rgba(217,96,63,.45), 0 0 26px rgba(217,96,63,.4);
}
.tile.is-bad svg { stroke: #ffd6c9; }

.board.is-locked .tile { cursor: default; }
.board.is-shaking { animation: shake .42s var(--t); }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  18% { transform: translateX(-7px); }
  38% { transform: translateX(6px); }
  58% { transform: translateX(-4px); }
  78% { transform: translateX(3px); }
}
.board-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 4px 2px;
}
.board-hint { font-size: 12.5px; color: var(--faint); letter-spacing: .02em; margin: 0; }
.board-btn {
  min-height: 44px; padding: 0 18px; cursor: pointer;
  font-family: var(--display); font-size: 11.5px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  background: transparent; color: var(--cyan);
  border: 1px solid rgba(87,220,232,.32); border-radius: 2px;
  transition: background .2s var(--t), color .2s var(--t), border-color .2s var(--t);
}
.board-btn:hover { background: rgba(87,220,232,.12); border-color: var(--cyan); color: #d5fbff; }

/* ============================================================
   BEATS — how a round works
   ============================================================ */
.beats { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.beat { display: flex; flex-direction: column; }
.beat__n {
  font-family: var(--display); font-size: 11px; font-weight: 700;
  letter-spacing: .26em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px;
}
.beat h3 { font-size: 22px; color: var(--ink); margin-bottom: 10px; }
.beat p { font-size: 15px; color: var(--muted); line-height: 1.6; margin: 0; }
.beat__viz {
  height: 62px; margin-bottom: 20px; display: flex; align-items: flex-end; gap: 7px;
}
.vz { width: 26px; height: 26px; border: 1px solid rgba(120,200,220,.2); border-radius: 2px; background: rgba(14,26,38,.8); }
.vz--lit { animation: vzlit 2.6s var(--t) infinite; border-color: var(--cyan); }
.vz--lit:nth-child(2) { animation-delay: .3s; }
.vz--lit:nth-child(3) { animation-delay: .6s; }
.vz--lit:nth-child(4) { animation-delay: .9s; }
@keyframes vzlit {
  0%, 40%, 100% { background: rgba(14,26,38,.8); box-shadow: none; border-color: rgba(120,200,220,.2); }
  8%, 22% { background: rgba(46,120,140,.6); box-shadow: 0 0 16px rgba(87,220,232,.5); border-color: var(--cyan); }
}
.vz--gold { animation: vzgold 2.6s var(--t) infinite; }
.vz--gold:nth-child(2) { animation-delay: .3s; }
.vz--gold:nth-child(3) { animation-delay: .6s; }
.vz--gold:nth-child(4) { animation-delay: .9s; }
@keyframes vzgold {
  0%, 40%, 100% { background: rgba(14,26,38,.8); box-shadow: none; border-color: rgba(120,200,220,.2); }
  8%, 22% { background: rgba(140,104,36,.6); box-shadow: 0 0 16px rgba(232,180,85,.5); border-color: var(--gold); }
}
.vz-arrow { font-size: 15px; color: var(--faint); letter-spacing: .1em; }
.beat__viz--split { flex-direction: column; align-items: flex-start; gap: 9px; height: 62px; justify-content: flex-end; }
.vz-line { display: flex; align-items: center; gap: 7px; }
.vz-tag {
  font-family: var(--display); font-size: 9.5px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; width: 62px; flex: none;
}
.vz-tag--atk { color: var(--gold); }
.vz-tag--def { color: var(--cyan); }
.vz-sm { width: 15px; height: 15px; border: 1px solid rgba(120,200,220,.22); border-radius: 2px; background: rgba(14,26,38,.8); }
.vz-sm--g { border-color: rgba(232,180,85,.5); background: rgba(140,104,36,.35); }
.vz-sm--c { border-color: rgba(87,220,232,.5); background: rgba(46,120,140,.35); }

/* ============================================================
   MODES
   ============================================================ */
.modes { display: grid; gap: 16px; grid-template-columns: repeat(6, 1fr); }
.mode { grid-column: span 2; }
.mode:nth-child(4), .mode:nth-child(5) { grid-column: span 3; }
.mode__top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.mode__glyph {
  width: 26px; height: 26px; flex: none; overflow: visible;
  fill: none; stroke: var(--gold); stroke-width: 6;
  stroke-linecap: round; stroke-linejoin: round; opacity: .85;
}
.mode h3 { font-size: 19px; letter-spacing: .05em; color: var(--ink); }
.mode p { font-size: 14.5px; color: var(--muted); line-height: 1.62; margin: 0; }
.note {
  margin: 22px 0 0; font-size: 14px; color: var(--faint);
  border-left: 1px solid var(--edge-gold); padding-left: 16px;
}

/* ============================================================
   SPLIT / FEATURE BANDS
   ============================================================ */
.band { position: relative; overflow: hidden; }
.split {
  display: grid; gap: clamp(28px, 4.5vw, 64px); align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.split--rev > *:first-child { order: 2; }
.figframe { position: relative; }
.figframe img {
  width: 100%;
  clip-path: polygon(var(--notch-l) 0, 100% 0, 100% calc(100% - var(--notch-l)), calc(100% - var(--notch-l)) 100%, 0 100%, 0 var(--notch-l));
}
.figframe::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border: 1px solid var(--edge);
  clip-path: polygon(var(--notch-l) 0, 100% 0, 100% calc(100% - var(--notch-l)), calc(100% - var(--notch-l)) 100%, 0 100%, 0 var(--notch-l));
}
.figframe--glow::before {
  content: ""; position: absolute; z-index: -1;
  /* never wider than the page gutter, so it cannot create horizontal overflow */
  inset: clamp(-24px, -1.6vw, -14px);
  background: radial-gradient(circle, rgba(87,220,232,.14), transparent 68%);
}

/* phone frame for real captures */
.phone { position: relative; width: min(270px, 76vw); margin-inline: auto; }
.phone__body {
  border: 1px solid rgba(150, 200, 220, .28); border-radius: 26px; padding: 7px;
  background: linear-gradient(160deg, rgba(40, 66, 84, .8), rgba(8, 15, 23, .95));
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6), 0 0 40px rgba(87,220,232,.10);
}
.phone__body img { border-radius: 20px; width: 100%; }
.phone::before {
  content: ""; position: absolute; inset: -30px; z-index: -1;
  background: radial-gradient(circle, rgba(87,220,232,.15), transparent 66%);
}
/* captioned gameplay gallery */
.gallery {
  list-style: none; display: grid; gap: clamp(16px, 2.2vw, 30px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.shot { margin: 0; }
.shot__frame {
  position: relative; border: 1px solid rgba(150, 200, 220, .22); padding: 6px;
  background: linear-gradient(160deg, rgba(40, 66, 84, .55), rgba(8, 15, 23, .9));
  clip-path: polygon(var(--notch-m) 0, 100% 0, 100% calc(100% - var(--notch-m)), calc(100% - var(--notch-m)) 100%, 0 100%, 0 var(--notch-m));
  transition: border-color .35s var(--t), box-shadow .35s var(--t);
}
.shot__frame img { display: block; width: 100%; height: auto; }
.shot:hover .shot__frame,
.shot:focus-within .shot__frame {
  border-color: rgba(191, 154, 78, .5);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55), 0 0 30px rgba(87, 220, 232, .10);
}
.shot__cap { margin: 14px 2px 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.shot__cap b {
  display: block; font-family: var(--display); font-weight: 600; letter-spacing: .02em;
  font-size: 16px; color: var(--ink-2); margin-bottom: 3px;
}

/* staggered arc: outermost smallest and lowest, centre largest */
.phones { display: flex; justify-content: center; align-items: center; gap: clamp(8px, 1.6vw, 22px); }
.phones .phone { flex: none; margin-inline: 0; }
.phones .phone:nth-child(1), .phones .phone:nth-child(5) { width: 158px; opacity: .62; transform: translateY(30px); }
.phones .phone:nth-child(2), .phones .phone:nth-child(4) { width: 196px; opacity: .86; transform: translateY(14px); }
.phones .phone:nth-child(3) { width: 246px; z-index: 2; }
.phones .phone:nth-child(1)::before, .phones .phone:nth-child(5)::before { display: none; }

/* three-phone group: symmetric, centre lifted — used on the studio homepage */
.phones--trio { align-items: center; }
.phones--trio .phone:nth-child(1),
.phones--trio .phone:nth-child(3) { width: 196px; opacity: .84; transform: translateY(20px); }
.phones--trio .phone:nth-child(2) { width: 238px; opacity: 1; transform: none; z-index: 2; }
.phones--trio .phone:nth-child(1)::before,
.phones--trio .phone:nth-child(3)::before { display: none; }

/* ============================================================
   ANOMALIES
   ============================================================ */
.anoms { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.anom { padding: 20px 20px 22px; }
.anom h3 {
  font-size: 12px; font-family: var(--display); font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); margin-bottom: 9px;
}
.anom p { font-size: 14px; color: var(--muted); line-height: 1.58; margin: 0; }

/* ============================================================
   STAT STRIP
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--edge); border: 1px solid var(--edge); }
.stat { background: var(--deep); padding: 22px 20px; }
.stat dt {
  font-family: var(--display); font-size: 10.5px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px;
}
.stat dd { margin: 0; font-family: var(--display); font-size: 21px; font-weight: 700; color: var(--gold-hot); }

/* ============================================================
   HOME — flagship block
   ============================================================ */
.flagship { position: relative; overflow: hidden; }
/* stacked so the three-phone group gets the full content width */
.flagship__inner { display: grid; gap: clamp(34px, 4.5vw, 62px); justify-items: center; text-align: center; }
.flagship__copy { max-width: 62ch; }
.flagship__copy .eyebrow, .flagship__copy .cta-row { justify-content: center; }
.flagship__logo { margin-inline: auto; }
.flagship__logo { max-width: 340px; margin-bottom: 20px; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); }
.principle__glyph { width: 30px; height: 30px; margin-bottom: 16px; }
.principle__n {
  font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: .26em;
  color: var(--gold); margin-bottom: 12px;
}
.principle h3 { font-size: 18px; margin-bottom: 10px; letter-spacing: .04em; }
.principle p { font-size: 14.5px; color: var(--muted); line-height: 1.62; margin: 0; }

/* ============================================================
   WIKI
   ============================================================ */
.wiki-layout { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: 220px minmax(0, 1fr); align-items: start; }
.toc { position: sticky; top: calc(var(--hdr) + 28px); }
.toc__label {
  font-family: var(--display); font-size: 10.5px; font-weight: 700; letter-spacing: .24em;
  text-transform: uppercase; color: var(--faint); margin: 0 0 14px; padding-left: 14px;
}
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc a {
  display: flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-size: 14px; color: var(--ink-2); text-decoration: none;
  border-left: 1px solid rgba(120,200,220,.14);
  transition: border-color .2s var(--t), color .2s var(--t), background .2s var(--t);
}
.toc a:hover { color: var(--ink); border-left-color: var(--cyan); background: rgba(120,200,220,.05); }
.article > section { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid rgba(120,200,220,.10); }
.article > section:last-child { border-bottom: 0; margin-bottom: 0; }
.article h2 { font-size: clamp(23px, 2.4vw, 30px); margin-bottom: 14px; }
/* creature rosters read as lists, not sentences */
.roster {
  font-family: var(--display); font-size: 15px; line-height: 2; letter-spacing: .02em;
  color: var(--ink-2);
}
.article h3 { font-size: 17px; letter-spacing: .05em; color: var(--gold-hot); margin: 26px 0 8px; }
.article p { color: var(--ink-2); font-size: 16px; }
.article p:last-child { margin-bottom: 0; }
.article :target h2 { color: var(--gold-hot); }
.factbar { display: flex; flex-wrap: wrap; gap: 1px; background: var(--edge); border: 1px solid var(--edge); margin: 22px 0; }
.factbar > div { flex: 1 1 140px; background: var(--deep); padding: 14px 18px; }
.factbar dt { font-size: 10.5px; font-family: var(--display); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); margin-bottom: 5px; }
.factbar dd { margin: 0; font-size: 15px; color: var(--ink); }
.topicrow { display: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.ftr { border-top: 1px solid rgba(120,200,220,.12); padding-block: 40px 48px; background: #030509; }
.ftr__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.ftr p { margin: 0; font-size: 13.5px; color: var(--faint); }
.ftr ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.ftr ul a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-size: 13.5px; color: var(--muted); text-decoration: none;
}
.ftr ul a:hover { color: var(--cyan); }
.mailto {
  font-family: var(--display); font-size: clamp(19px, 2.4vw, 27px); font-weight: 700;
  letter-spacing: .03em; color: var(--gold-hot); text-decoration: none;
  border-bottom: 1px solid var(--edge-gold); padding-bottom: 4px;
}
.mailto:hover { color: #fff2d8; border-bottom-color: var(--gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; }
  .board-shell { max-width: 420px; margin-inline: auto; width: 100%; }
  .modes { grid-template-columns: repeat(2, 1fr); }
  .mode, .mode:nth-child(4), .mode:nth-child(5) { grid-column: span 1; }
  .mode:nth-child(5) { grid-column: span 2; }
  .anoms { grid-template-columns: repeat(2, 1fr); }
  .wiki-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ul { display: flex; flex-wrap: wrap; gap: 2px; }
  .toc a { border-left: 0; border-bottom: 1px solid rgba(120,200,220,.14); padding-inline: 12px; }
  .toc a:hover { border-bottom-color: var(--cyan); }
}

@media (max-width: 720px) {
  :root { --hdr: 56px; }
  body { font-size: 16px; }
  .beats { grid-template-columns: 1fr; gap: 26px; }
  .split, .split--rev > *:first-child { grid-template-columns: 1fr; order: 0; }
  .split { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; gap: 26px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .shot__cap { font-size: 13px; }
  .shot__cap b { font-size: 15px; }

  /* phone shelf becomes a horizontal snap-scroller instead of a five-high stack */
  .phones {
    justify-content: flex-start; align-items: center; gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 0 var(--gut) 12px; margin-inline: calc(var(--gut) * -1);
    scrollbar-width: thin; scrollbar-color: rgba(120,200,220,.3) transparent;
  }
  .phones .phone,
  .phones .phone:nth-child(1), .phones .phone:nth-child(2),
  .phones .phone:nth-child(3), .phones .phone:nth-child(4), .phones .phone:nth-child(5) {
    width: 208px; opacity: 1; transform: none; scroll-snap-align: center;
  }
  .phones .phone::before { display: none; }
  .nav a { padding: 0 10px; font-size: 12px; letter-spacing: .08em; }
  .brand { font-size: 12px; letter-spacing: .13em; white-space: nowrap; gap: 8px; }
  .ftr__in { flex-direction: column; align-items: flex-start; }
  .cta-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .cta-row .btn { width: 100%; }
  .hero__sigil { opacity: .8; }
}

/* below ~430px the brand plus three nav items no longer fit a 320px content box */
@media (max-width: 430px) {
  .hdr__in { gap: 10px; }
  .brand { font-size: 11px; letter-spacing: .09em; gap: 7px; }
  .brand__mark { width: 13px; height: 13px; }
  .nav { gap: 0; }
  .nav a { padding: 0 8px; font-size: 11px; letter-spacing: .06em; }
}

@media (max-width: 520px) {
  .modes { grid-template-columns: 1fr; }
  .mode:nth-child(5) { grid-column: span 1; }
  .anoms { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .board { gap: 8px; }
}

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