/* ============================================================
   DASH AGAIN STUDIOS — site styles
   Mature, editorial studio site. Restrained palette, one
   confident accent, monospace reserved for small labels.
   Theme system driven by [data-theme] on <html>.
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* screen-reader only utility (used for honeypot label) */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============================================================
   THEME TOKENS
   ============================================================ */
:root {
  /* accent — single restrained signal colour (tweakable) */
  --accent: #5b6ee0;
  --accent-rgb: 91, 110, 224;
  --accent-soft: rgba(91, 110, 224, 0.12);
  --on-accent: #f7f8fb;

  /* fonts */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-body: 'Space Grotesk', system-ui, sans-serif;

  /* spacing scale */
  --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: 140px;

  --container: 1240px;
  --radius: 12px;
  --radius-sm: 8px;

  --grid-opacity: 1;
  --header-weight: 600;
  --display-spacing: -0.025em;
}

/* ---------- Theme: INK (dark, default) ---------- */
[data-theme="ink"] {
  --bg: #0c0e13;
  --bg-2: #11141b;
  --bg-3: #161a22;
  --fg: #e8e9ee;
  --muted: #969aa8;
  --faint: #5f6472;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --tint: rgba(255, 255, 255, 0.018);
  --tint-2: rgba(255, 255, 255, 0.05);
  --stroke: rgba(255, 255, 255, 0.11);
  --grid-color: rgba(255, 255, 255, 0.022);
  --grid-size: 72px;
  --shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8);
  --glow-bg: 0.07;
  color-scheme: dark;
}

/* ---------- Theme: SLATE (cool graphite, dark) ---------- */
[data-theme="slate"] {
  --bg: #15181e;
  --bg-2: #1b1f27;
  --bg-3: #21262f;
  --fg: #eceef2;
  --muted: #a3a8b4;
  --faint: #6c727f;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.17);
  --tint: rgba(255, 255, 255, 0.022);
  --tint-2: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.13);
  --grid-color: rgba(255, 255, 255, 0.028);
  --grid-size: 72px;
  --shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.7);
  --glow-bg: 0.05;
  color-scheme: dark;
}

/* ---------- Theme: PAPER (light editorial) ---------- */
[data-theme="paper"] {
  --bg: #f5f4f0;
  --bg-2: #fbfaf7;
  --bg-3: #efeee9;
  --fg: #1a1c22;
  --muted: #5d606b;
  --faint: #989aa2;
  --line: rgba(20, 22, 28, 0.11);
  --line-strong: rgba(20, 22, 28, 0.2);
  --tint: rgba(20, 22, 28, 0.015);
  --tint-2: rgba(20, 22, 28, 0.04);
  --stroke: rgba(20, 22, 28, 0.14);
  --grid-color: rgba(20, 22, 28, 0.03);
  --grid-size: 72px;
  --shadow: 0 30px 70px -45px rgba(20, 22, 28, 0.3);
  --glow-bg: 0.06;
  color-scheme: light;
}

/* ============================================================
   BASE
   ============================================================ */
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  overflow-x: hidden;
  position: relative;
}

/* page background: faint grid + one quiet radial wash */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(1000px 700px at 82% -8%, rgba(var(--accent-rgb), var(--glow-bg)), transparent 60%);
}
.bg-grid {
  position: fixed;
  inset: -2px;
  z-index: -2;
  pointer-events: none;
  opacity: var(--grid-opacity);
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  mask-image: radial-gradient(circle at 50% 26%, black, transparent 88%);
  -webkit-mask-image: radial-gradient(circle at 50% 26%, black, transparent 88%);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.section { padding: var(--s-10) 0; position: relative; }
.section--tight { padding: var(--s-9) 0; }
.divider { height: 1px; background: var(--line); border: 0; }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--header-weight);
  letter-spacing: var(--display-spacing);
  line-height: 1.04;
  text-wrap: balance;
}
.display {
  font-size: clamp(2.6rem, 6.6vw, 5rem);
  line-height: 1.0;
}
.h2 {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.04;
}
.h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.lead {
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  color: var(--muted);
  line-height: 1.62;
  max-width: 58ch;
  text-wrap: pretty;
}
p { text-wrap: pretty; }

/* mono micro-labels */
.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.solo::before { display: none; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  --bd: var(--line-strong);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  border: 1px solid var(--bd);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition: transform .18s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); border-color: var(--accent); }
.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}
.btn--primary:hover { color: var(--on-accent); filter: brightness(1.07); box-shadow: 0 12px 30px -10px rgba(var(--accent-rgb), 0.5); }
.btn--ghost { background: var(--tint); }
.btn--sm { padding: 9px 15px; font-size: 0.73rem; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
}
.brand .lg { width: 30px; height: 30px; flex: none; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.brand:hover .lg { transform: rotate(-360deg); }
.brand .lg-ring { stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; opacity: 0.9; }
.brand .lg-arrow { fill: currentColor; opacity: 0.9; }
.brand .lg-dash { fill: var(--accent); }
.brand .wm { display: inline-flex; align-items: baseline; gap: 9px; }
.brand .mark { display: inline-flex; align-items: center; color: var(--fg); }
.brand .blk {
  display: inline-block;
  width: 0.46em; height: 1.0em;
  background: var(--accent);
  margin-left: 3px;
  transform: translateY(1px);
  animation: blink 1.2s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.brand .sub { color: var(--faint); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.16em; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.79rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a .idx { color: var(--accent); margin-right: 7px; font-size: 0.68rem; opacity: .8; }
.nav-cta { margin-left: 14px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { width: 18px; height: 1.5px; background: var(--fg); transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 74px 0 auto 0;
  z-index: 99;
  background: color-mix(in oklab, var(--bg) 97%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  padding: 16px 32px 28px;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-mono);
  font-size: 1.02rem;
  padding: 15px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.mobile-menu a .idx { color: var(--accent); font-size: 0.8rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: 160px; padding-bottom: var(--s-9); position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow { margin-bottom: 30px; }
.hero h1 { margin-bottom: 28px; }
.hero h1 .em { color: var(--accent); }
.hero-lead { margin-bottom: 38px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 42px; }
.hero-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-family: var(--font-mono);
  font-size: 0.77rem;
  color: var(--faint);
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.hero-status b { color: var(--fg); font-weight: 500; }
.hero-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; margin-right: 9px; transform: translateY(1px); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

/* centered hero variant (tweak) */
.hero-grid.center { grid-template-columns: 1fr; text-align: center; max-width: 860px; margin: 0 auto; }
.hero-grid.center .hero-visual { display: none; }
.hero-grid.center .hero-eyebrow .eyebrow,
.hero-grid.center .hero-cta,
.hero-grid.center .hero-status { justify-content: center; }
.hero-grid.center .hero-lead { margin-left: auto; margin-right: auto; }
.hero-grid.center .hero-status { border-top: none; padding-top: 8px; }

/* Hero visual: quiet system/status panel */
.term {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  overflow: hidden;
  box-shadow: var(--shadow);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--tint);
}
.term-bar .dots { display: flex; gap: 6px; }
.term-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); opacity: .5; display: block; }
.term-title { font-family: var(--font-mono); font-size: 0.71rem; color: var(--faint); letter-spacing: 0.06em; margin-left: 6px; }
.term-body { padding: 24px 22px; font-family: var(--font-mono); font-size: 0.81rem; line-height: 2.0; }
.term-body .ln { display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.term-body .pr { color: var(--accent); }
.term-body .k { color: var(--muted); }
.term-body .v { color: var(--fg); }
.term-body .ok { color: var(--accent); }
.term-meter { height: 5px; border-radius: 4px; background: var(--tint-2); overflow: hidden; margin: 4px 0; flex: 1; }
.term-meter span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: var(--s-8);
  flex-wrap: wrap;
}
.sec-head .titles { max-width: 62ch; }
.sec-head .eyebrow { margin-bottom: 20px; }
.sec-head h2 { margin-bottom: 0; }
.sec-count { font-family: var(--font-mono); font-size: 0.77rem; color: var(--faint); }

/* ============================================================
   GAMES
   ============================================================ */
.games { display: flex; flex-direction: column; gap: 36px; }
.game {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.game:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.game.rev { grid-template-columns: 1fr 1.05fr; }
.game.rev .game-art { order: 2; }

/* art placeholder — restrained, no neon */
.game-art {
  position: relative;
  min-height: 440px;
  background:
    repeating-linear-gradient(135deg, var(--tint) 0 14px, transparent 14px 28px),
    radial-gradient(120% 130% at 72% 16%, rgba(var(--accent-rgb), 0.10), transparent 58%),
    var(--bg-3);
  border-right: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  padding: 22px;
  overflow: hidden;
}
.game.rev .game-art { border-right: none; border-left: 1px solid var(--line); }
.game-art .ph-tag {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 12px;
  background: color-mix(in oklab, var(--bg) 55%, transparent);
  backdrop-filter: blur(4px);
}
.game-art .glyph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(3rem, 8.5vw, 6rem);
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--stroke);
  text-stroke: 1.5px var(--stroke);
  user-select: none;
}
.game-art .codenum {
  position: absolute; top: 20px; left: 20px;
  font-family: var(--font-mono); font-size: 0.69rem; letter-spacing: 0.12em;
  color: var(--muted);
}

.game-body { padding: 44px; display: flex; flex-direction: column; }
.game-status {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 0.69rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
}
.game-status .live { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s infinite; }
.game-title { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: 8px; }
.game-sub { font-family: var(--font-mono); font-size: 0.79rem; color: var(--muted); margin-bottom: 24px; letter-spacing: 0.01em; }
.game-pitch { color: var(--muted); line-height: 1.66; margin-bottom: 28px; font-size: 1.02rem; }
.game-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tag {
  font-family: var(--font-mono); font-size: 0.67rem; letter-spacing: 0.05em;
  padding: 6px 11px; border: 1px solid var(--line); border-radius: 100px; color: var(--muted);
}
.game-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  border-top: 1px solid var(--line); padding-top: 24px; margin-top: auto; margin-bottom: 28px;
}
.game-meta .m .mk { font-family: var(--font-mono); font-size: 0.63rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.game-meta .m .mv { font-family: var(--font-display); font-size: 1.0rem; color: var(--fg); }
.game-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.about-copy p { color: var(--muted); line-height: 1.72; font-size: 1.08rem; margin-bottom: 20px; }
.about-copy p .hl { color: var(--fg); }
.about-copy p:last-child { margin-bottom: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; border-top: 1px solid var(--line); padding-top: 34px; }
.stat .num { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 600; color: var(--fg); line-height: 1; letter-spacing: -0.02em; }
.stat .num .u { color: var(--accent); }
.stat .lbl { font-family: var(--font-mono); font-size: 0.71rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }

/* ============================================================
   VALUES
   ============================================================ */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.value {
  padding: 44px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .3s;
}
.value:nth-child(2n) { border-right: none; }
.value:nth-last-child(-n+2) { border-bottom: none; }
.value:hover { background: var(--tint); }
.value .vnum { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent); margin-bottom: 24px; letter-spacing: 0.08em; }
.value h3 { font-size: 1.45rem; margin-bottom: 14px; }
.value p { color: var(--muted); line-height: 1.66; }

/* ============================================================
   DEVLOG
   ============================================================ */
.devlog { display: flex; flex-direction: column; }
.post {
  display: grid;
  grid-template-columns: 168px 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 32px 8px;
  border-top: 1px solid var(--line);
  transition: padding-left .25s, background .25s;
  cursor: pointer;
}
.post:last-child { border-bottom: 1px solid var(--line); }
.post:hover { padding-left: 22px; background: linear-gradient(90deg, var(--tint), transparent 70%); }
.post-date { font-family: var(--font-mono); font-size: 0.77rem; color: var(--faint); letter-spacing: 0.03em; }
.post-tag { display: inline-block; font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 3px 9px; border-radius: 100px; margin-bottom: 13px; }
.post h3 { font-size: 1.3rem; margin-bottom: 9px; transition: color .2s; }
.post:hover h3 { color: var(--accent); }
.post p { color: var(--muted); font-size: 0.95rem; line-height: 1.55; max-width: 62ch; }
.post-arrow { font-family: var(--font-mono); color: var(--faint); font-size: 1.1rem; transition: transform .2s, color .2s; }
.post:hover .post-arrow { transform: translateX(6px); color: var(--accent); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(760px 440px at 92% 0%, rgba(var(--accent-rgb), 0.08), transparent 60%),
    var(--bg-2);
  padding: clamp(36px, 6vw, 76px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-left h2 { margin-bottom: 24px; }
.contact-left .lead { margin-bottom: 34px; }
.contact-email {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--fg); border-bottom: 1px solid var(--line-strong); padding-bottom: 9px;
  transition: color .2s, border-color .2s;
}
.contact-email:hover { color: var(--accent); border-color: var(--accent); }
.socials { display: flex; gap: 10px; margin-top: 38px; flex-wrap: wrap; }
.social {
  height: 42px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--muted);
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.04em; white-space: nowrap; transition: .2s;
}
.social:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

/* form */
.form { display: flex; flex-direction: column; }
.form-grid { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--font-mono); font-size: 0.69rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 15px; color: var(--fg); font-family: var(--font-mono); font-size: 0.88rem;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { resize: vertical; min-height: 112px; }
.form .btn { justify-content: center; margin-top: 18px; }
.form-note { font-family: var(--font-mono); font-size: 0.71rem; color: var(--faint); margin-top: 14px; }
.form-success { display: none; color: var(--fg); font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.7; padding: 22px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
.form-success b { color: var(--accent); }
.form.sent .form-grid, .form.sent .btn, .form.sent .form-note { display: none; }
.form.sent .form-success { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: var(--s-8) 0 var(--s-6); margin-top: var(--s-9); }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; margin-bottom: var(--s-7); }
.footer-brand { max-width: 36ch; }
.footer-brand .brand { margin-bottom: 20px; }
.footer-brand p { color: var(--muted); font-size: 0.92rem; line-height: 1.65; }
.footer-cols { display: flex; gap: 72px; flex-wrap: wrap; }
.fcol h4 { font-family: var(--font-mono); font-size: 0.71rem; letter-spacing: 0.11em; text-transform: uppercase; color: var(--faint); font-weight: 500; margin-bottom: 18px; }
.fcol a { display: block; color: var(--muted); font-size: 0.92rem; padding: 5px 0; transition: color .2s; }
.fcol a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: var(--s-5); border-top: 1px solid var(--line); }
.footer-bottom span { font-family: var(--font-mono); font-size: 0.73rem; color: var(--faint); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* suppress transitions during a theme switch so colour vars repaint cleanly */
html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after { transition: none !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 560px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .game, .game.rev { grid-template-columns: 1fr; }
  .game.rev .game-art { order: 0; border-left: none; border-bottom: 1px solid var(--line); }
  .game-art { border-right: none; border-bottom: 1px solid var(--line); min-height: 300px; }
  .values { grid-template-columns: 1fr; }
  .value { border-right: none !important; }
  .value:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .contact-wrap { grid-template-columns: 1fr; gap: 44px; }
  .post { grid-template-columns: 1fr; gap: 10px; }
  .post-arrow { display: none; }
  .post-date { order: -1; }
}
@media (max-width: 560px) {
  .container { padding: 0 20px; }
  :root { --s-10: 92px; --s-9: 70px; }
  .hero { padding-top: 128px; }
  .game-body { padding: 30px; }
  .value { padding: 30px; }
  .game-meta { grid-template-columns: 1fr 1fr; }
  .footer-top { flex-direction: column; }
}
