/* ============================================================
   PETRI GAMES — Brand system
   "Small team. Big experiments."
   Microscope dark base · lime / orange / yellow glow accents
   ============================================================ */

:root {
  /* Brand palette (brandbook) */
  --microscope-dark: #1A1A1A;
  --lime-glow:       #CCFF00;
  --exp-orange:      #FF6B2B;
  --lab-yellow:      #FFD60A;
  --clean-white:     #F0F0F0;
  --mid-gray:        #8C8C86;

  /* Themed tokens (overridden by .theme-light) */
  --bg:        #131313;
  --bg-deep:   #0d0d0d;
  --surface:   #1e1e1e;
  --surface-2: #242424;
  --hairline:  rgba(240,240,240,0.10);
  --hairline-strong: rgba(240,240,240,0.18);
  --ink:       #F0F0F0;
  --ink-soft:  #b6b6b0;
  --ink-faint: #8C8C86;

  /* Accent — driven by the "accent" tweak (default lime) */
  --accent:        #CCFF00;
  --accent-ink:    #1A1A1A;          /* text that sits on an accent fill */
  --accent-line:   var(--accent);    /* on-theme line/text colour */
  --accent-soft:   color-mix(in oklch, var(--accent) 22%, transparent);

  /* Glow — driven by "glow" tweak (0 .. 1.6) */
  --glow: 1;

  /* Type — Petri type system: Bricolage Grotesque + DM Mono */
  --font-head: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, monospace;

  --maxw: 1240px;
  --nav-h: 76px;
}

.theme-light {
  --bg:        #ECEBE2;
  --bg-deep:   #e3e2d7;
  --surface:   #f6f5ef;
  --surface-2: #eeede4;
  --hairline:  rgba(26,26,26,0.12);
  --hairline-strong: rgba(26,26,26,0.22);
  --ink:       #1A1A1A;
  --ink-soft:  #44443e;
  --ink-faint: #76766e;
  --accent-line: color-mix(in oklch, var(--accent) 80%, #1a1a1a 20%);
  --accent-soft: color-mix(in oklch, var(--accent) 30%, transparent);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body { transition: background 0.5s ease, color 0.5s ease; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
}
h1 { font-weight: 800; letter-spacing: -0.035em; }
.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent-line);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.mono { font-family: var(--font-mono); }

/* ---------- app shell ---------- */
#root { position: relative; z-index: 1; }

.app-wrap {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.shell {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}

main { flex: 1; position: relative; z-index: 2; }

/* ============================================================
   INFINITY FIELD  (persistent animated background)
   ============================================================ */
.inf-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  contain: layout paint style;
}
.inf-grid {
  position: absolute;
  inset: -10%;
  background-image: radial-gradient(circle, rgba(240,240,240,0.09) 1px, transparent 1.4px);
  background-image: radial-gradient(circle, color-mix(in oklch, var(--ink) 9%, transparent) 1px, transparent 1.4px);
  background-size: 26px 26px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 30%, transparent 78%);
}
.inf-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
  mix-blend-mode: screen;
  will-change: transform;
  animation: blobDrift linear infinite;
}
.theme-light .inf-blob { mix-blend-mode: multiply; opacity: 0.16; }

.inf-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.inf-breathe { transform-origin: 720px 450px; animation: infBreathe 9s ease-in-out infinite; }
@keyframes infBreathe {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.018); }
}
.brand-mark-svg { width: 100%; height: 100%; display: block; }
.inf-line {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  filter: drop-shadow(0 0 calc(6px * var(--glow)) var(--accent));
}
.inf-line-ghost {
  fill: none;
  stroke: color-mix(in oklch, var(--ink) 14%, transparent);
}
.inf-current {
  fill: var(--accent);
  filter: drop-shadow(0 0 calc(7px * var(--glow)) var(--accent));
}
.inf-current.is-orange { fill: var(--exp-orange); filter: drop-shadow(0 0 calc(7px*var(--glow)) var(--exp-orange)); }
.inf-current.is-yellow { fill: var(--lab-yellow); filter: drop-shadow(0 0 calc(7px*var(--glow)) var(--lab-yellow)); }
.inf-node {
  fill: color-mix(in oklch, var(--accent) 30%, var(--bg));
  stroke: var(--accent);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 calc(10px * var(--glow)) var(--accent));
}

@keyframes blobDrift {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(40px,-30px) scale(1.12); }
  100% { transform: translate(0,0) scale(1); }
}
@keyframes nodePulse {
  0%,100% { opacity: 0.55; transform: scale(0.85); }
  50%     { opacity: 1;    transform: scale(1.15); }
}
@keyframes cellFloat {
  0%   { transform: translateY(0) translateX(0); }
  50%  { transform: translateY(-22px) translateX(10px); }
  100% { transform: translateY(0) translateX(0); }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  background: rgba(19,19,19,0.72);
  background: color-mix(in oklch, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  margin-right: auto;
}
.brand-mark {
  position: relative;
  width: 34px; height: 34px;
  flex: none;
}
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand-name b { color: var(--accent-line); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 9px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--accent-line); }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 3px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 calc(8px * var(--glow)) var(--accent);
}

.lang-toggle {
  display: flex;
  align-items: center;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 3px;
  margin-left: 6px;
  background: var(--surface);
}
.lang-toggle button {
  border: 0;
  background: transparent;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-toggle button.on {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 calc(10px * var(--glow)) var(--accent-soft);
}

.nav-burger { display: none; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  font-weight: 500;
  padding: 14px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(.3,.8,.4,1), box-shadow 0.2s, background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 calc(22px * var(--glow)) var(--accent-soft);
}
.btn-primary:hover { box-shadow: 0 0 calc(34px * var(--glow)) var(--accent-soft); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-line); }
.btn .arr { transition: transform 0.2s; }
.btn:hover .arr { transform: translateX(4px); }

/* ============================================================
   STATUS BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  border: 1px solid;
}
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  animation: nodePulse 2.4s ease-in-out infinite;
}
.badge.testing { color: var(--exp-orange); border-color: color-mix(in oklch, var(--exp-orange) 45%, transparent); background: color-mix(in oklch, var(--exp-orange) 12%, transparent); }
.badge.testing .dot { background: var(--exp-orange); box-shadow: 0 0 calc(8px*var(--glow)) var(--exp-orange); }
.badge.prototype { color: var(--lab-yellow); border-color: color-mix(in oklch, var(--lab-yellow) 45%, transparent); background: color-mix(in oklch, var(--lab-yellow) 12%, transparent); }
.badge.prototype .dot { background: var(--lab-yellow); box-shadow: 0 0 calc(8px*var(--glow)) var(--lab-yellow); }
.badge.started { color: var(--ink-soft); border-color: var(--hairline-strong); background: color-mix(in oklch, var(--ink) 5%, transparent); }
.badge.started .dot { background: var(--ink-soft); animation: none; }
.badge.live { color: var(--lime-glow); border-color: color-mix(in oklch, var(--lime-glow) 45%, transparent); background: color-mix(in oklch, var(--lime-glow) 12%, transparent); }
.badge.live .dot { background: var(--lime-glow); box-shadow: 0 0 calc(8px*var(--glow)) var(--lime-glow); }
.badge.funded { color: var(--exp-orange); border-color: color-mix(in oklch, var(--exp-orange) 50%, transparent); background: color-mix(in oklch, var(--exp-orange) 14%, transparent); }
.badge.funded .dot { background: var(--exp-orange); box-shadow: 0 0 calc(8px*var(--glow)) var(--exp-orange); }

/* ============================================================
   PAGE / SECTIONS
   ============================================================ */
.page { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  /* transform-only entrance: never hides content even if the animation timeline is paused */
  .page { animation: pageIn 0.55s cubic-bezier(.2,.7,.3,1) both; }
}
@keyframes pageIn {
  from { transform: translateY(16px); }
  to   { transform: translateY(0); }
}

.section { padding: clamp(70px, 11vh, 130px) 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2,
.section-head h1 {
  font-size: clamp(34px, 5.5vw, 60px);
  margin: 14px 0 16px;
}
.section-head p { color: var(--ink-soft); font-size: 18px; line-height: 1.6; max-width: 600px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: calc(100vh - var(--nav-h)); display: flex; align-items: center; }
.hero-inner { width: 100%; padding: 60px 0; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--hairline-strong);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 28px;
}
.hero-tag .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 calc(9px*var(--glow)) var(--accent); animation: nodePulse 2s ease-in-out infinite; }

.hero h1 {
  font-size: clamp(48px, 9vw, 128px);
  letter-spacing: -0.035em;
}
.hero h1 .accent { color: var(--accent-line); }
.hero-lede {
  margin-top: 26px;
  max-width: 540px;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
  color: var(--ink-soft);
}
.hero-cta { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }

/* hero variants */
.hero.v-split .hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero.v-centered .hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero.v-centered .hero-lede { margin-left: auto; margin-right: auto; }
.hero.v-centered .hero-cta { justify-content: center; }
.hero.v-stack .hero-stack-foot { margin-top: 48px; display: flex; gap: 40px; flex-wrap: wrap; align-items: center; }

.hero-visual { position: relative; width: 350px; height: 350px; aspect-ratio: 1/1; justify-self: center; align-self: center; }
.hero-logo {
  position: absolute; left: 50%; top: 50%;
  width: 42%; transform: translate(-50%, -50%);
  filter: drop-shadow(0 14px 30px rgba(0,0,0,0.5))
          drop-shadow(0 0 calc(20px * var(--glow)) color-mix(in oklch, var(--exp-orange) 45%, transparent));
  pointer-events: none;
}

/* stats strip */
.stat-strip { display: flex; gap: clamp(24px,5vw,64px); flex-wrap: wrap; }
.stat { }
.stat .n { font-family: var(--font-head); font-weight: 700; font-size: clamp(30px,4vw,46px); color: var(--accent-line); line-height: 1; }
.stat .l { margin-top: 8px; font-size: 13px; color: var(--ink-faint); font-family: var(--font-mono); letter-spacing: 0.04em; }

/* ---------- PETRI DISH visual ---------- */
.dish {
  position: relative;
  width: 100%; aspect-ratio: 1/1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, color-mix(in oklch, var(--accent) 14%, transparent), transparent 55%),
    radial-gradient(circle at 70% 78%, color-mix(in oklch, var(--exp-orange) 12%, transparent), transparent 55%),
    radial-gradient(circle at 50% 50%, var(--surface-2), var(--bg-deep) 78%);
  border: 1px solid var(--hairline-strong);
  box-shadow: inset 0 0 80px rgba(0,0,0,0.5), 0 30px 80px rgba(0,0,0,0.45);
  overflow: hidden;
}
.dish::after {
  content: '';
  position: absolute; inset: 0; border-radius: 50%;
  box-shadow: inset 0 0 0 6px color-mix(in oklch, var(--ink) 6%, transparent), inset 0 2px 14px rgba(255,255,255,0.06);
  pointer-events: none;
}
.cell {
  position: absolute;
  border-radius: 50%;
  animation: cellFloat ease-in-out infinite;
}

/* ---------- CARDS ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 26px;
  transition: transform 0.3s cubic-bezier(.2,.7,.3,1), border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 calc(30px*var(--glow)) var(--accent-soft); }

/* project cards */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 22px; }
.proj-card { display: flex; flex-direction: column; min-height: 380px; cursor: pointer; }
.proj-dish-wrap { position: relative; height: 200px; margin: -26px -26px 22px; border-bottom: 1px solid var(--hairline); overflow: hidden; }
.proj-dish-wrap .dish { position: absolute; width: 150%; left: -25%; top: -50%; border-radius: 50%; aspect-ratio: 1/1; }
.proj-card h3 { font-size: 26px; margin-bottom: 8px; }
.proj-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.proj-card p { color: var(--ink-soft); line-height: 1.55; font-size: 15px; }

/* empty / incubating placeholder cards */
.proj-card.is-empty { cursor: default; border-style: dashed; opacity: 0.92; }
.proj-card.is-empty .proj-dish-wrap { opacity: 0.5; filter: saturate(0.6); }
.proj-card.is-empty h3 { color: var(--ink-faint); }
.proj-empty-note { font-family: var(--font-mono); font-size: 13px; color: var(--ink-faint) !important; letter-spacing: 0.02em; }
.proj-foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; }
.proj-tag { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); letter-spacing: 0.06em; }

/* image-top project card (e.g. shipped store titles) */
.proj-img-wrap { position: relative; height: 200px; margin: -26px -26px 22px; border-bottom: 1px solid var(--hairline); overflow: hidden; }
.proj-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.proj-card:hover .proj-img-wrap img { transform: scale(1.05); }
.proj-img-wrap::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, color-mix(in oklch, var(--surface) 70%, transparent)); }

/* ============================================================
   GAME MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1200;
  background: color-mix(in oklch, #000 74%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 18px; overflow-y: auto;
  animation: overlayIn .22s ease both;
}
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative; width: min(880px, 100%);
  background: var(--surface); border: 1px solid var(--hairline-strong);
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 34px 90px rgba(0,0,0,.62);
  animation: modalIn .3s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(22px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 4;
  width: 42px; height: 42px; border-radius: 50%; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  background: color-mix(in oklch, #000 50%, transparent);
  border: 1px solid var(--hairline-strong); color: var(--clean-white);
  font-size: 22px; line-height: 1; transition: background .2s, transform .25s, color .2s;
}
.modal-close:hover { background: var(--exp-orange); color: #1a1208; transform: rotate(90deg); }
.modal-hero { position: relative; height: clamp(200px, 32vw, 300px); overflow: hidden; }
.modal-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-hero::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, var(--surface)); }
.modal-body { position: relative; z-index: 2; margin-top: -46px; padding: 0 clamp(22px,4vw,40px) clamp(28px,4vw,42px); }
.modal-body h3 { font-size: clamp(28px,4.4vw,42px); line-height: 1.04; margin: 16px 0 10px; }
.modal-slogan { color: var(--exp-orange); font-weight: 700; font-size: clamp(16px,2vw,21px); margin-bottom: 16px; line-height: 1.35; }
.modal-desc { color: var(--ink-soft); line-height: 1.66; font-size: 16px; }
.modal-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin: 28px 0; }
.modal-stat { text-align: center; padding: 18px 8px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--hairline); }
.modal-stat .n { font-family: var(--font-head); font-weight: 700; font-size: clamp(20px,3vw,28px); color: var(--clean-white); }
.modal-stat .l { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); margin-top: 5px; }
.modal-mechs { display: grid; gap: 12px; margin-bottom: 26px; }
.modal-mech { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start; padding: 16px 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--hairline); }
.modal-mech .ic { font-size: 27px; line-height: 1.1; }
.modal-mech h5 { font-size: 17px; margin-bottom: 4px; }
.modal-mech p { color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.modal-shots { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 28px; }
.modal-shots img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; border: 1px solid var(--hairline); display: block; }
.modal-shots--wide { grid-template-columns: repeat(2,1fr); }
.modal-shots--wide img { aspect-ratio: 16/9; }
.modal-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 17px; border-radius: 14px;
  background: var(--exp-orange); color: #1a1208;
  font-family: var(--font-head); font-weight: 700; font-size: 17px;
  text-decoration: none; transition: transform .2s, filter .2s;
}
.modal-cta:hover { transform: translateY(-2px); filter: brightness(1.08); }

/* dish hero (games with no screenshots yet) */
.modal-hero.is-dish { background: linear-gradient(160deg, var(--surface-2), var(--bg-deep)); }
.modal-hero.is-dish .dish {
  position: absolute; width: 150%; left: -25%; top: -56%;
  border-radius: 50%; aspect-ratio: 1/1;
}

/* section label inside modal */
.modal-lbl {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint);
  margin: 26px 0 12px;
}

/* pull-quote */
.modal-quote {
  margin: 24px 0 4px;
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--exp-orange);
  font-family: var(--font-head);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* deck of cards grid */
.modal-deck { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 8px; }
.deck-chip {
  padding: 14px 14px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  transition: border-color .25s, transform .25s;
}
.deck-chip:hover { transform: translateY(-3px); border-color: var(--hairline-strong); }
.deck-chip.danger {
  border-color: color-mix(in oklch, var(--exp-orange) 42%, transparent);
  background: color-mix(in oklch, var(--exp-orange) 9%, var(--surface-2));
}
.deck-chip-name {
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  margin: 0 0 5px; color: var(--ink);
}
.deck-chip.danger .deck-chip-name { color: var(--exp-orange); }
.deck-chip-desc {
  margin: 0; font-size: 12.5px; line-height: 1.42; color: var(--ink-faint);
}

/* in-development note (replaces the store CTA) */
.modal-note {
  display: flex; align-items: center; gap: 10px;
  padding: 15px 18px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--hairline);
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.modal-note .dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--exp-orange);
  box-shadow: 0 0 calc(8px * var(--glow)) var(--exp-orange);
  animation: nodePulse 2.4s ease-in-out infinite;
}
@media (max-width: 560px) {
  .modal-stats, .modal-shots { grid-template-columns: repeat(2,1fr); }
  .modal-deck { grid-template-columns: repeat(2,1fr); }
  .modal-mech { grid-template-columns: 38px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .modal-overlay, .modal { animation: none; }
  .proj-card:hover .proj-img-wrap img { transform: none; }
}

/* feature / approach list */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 20px; }
.feat { padding: 28px; border-radius: 16px; background: var(--surface); border: 1px solid var(--hairline); }
.feat .idx { font-family: var(--font-mono); font-size: 13px; color: var(--accent-line); letter-spacing: 0.1em; }
.feat h4 { font-size: 21px; margin: 14px 0 10px; }
.feat p { color: var(--ink-soft); line-height: 1.6; font-size: 15px; }

/* values — numbered rows */
.value-row { display: grid; grid-template-columns: 88px 1fr; gap: 24px; padding: 30px 0; border-top: 1px solid var(--hairline); align-items: start; }
.value-row:last-child { border-bottom: 1px solid var(--hairline); }
.value-num { font-family: var(--font-head); font-weight: 700; font-size: clamp(40px,5vw,64px); color: var(--accent-line); line-height: 0.8; opacity: 0.85; }
.value-row h4 { font-size: clamp(22px,3vw,30px); margin-bottom: 10px; }
.value-row p { color: var(--ink-soft); font-size: 16px; line-height: 1.65; max-width: 640px; }

/* audience */
.aud-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 20px; }
.aud-card { padding: 30px; border-radius: 18px; background: var(--surface); border: 1px solid var(--hairline); position: relative; overflow: hidden; transition: border-color .3s, transform .3s; }
.aud-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.aud-card .aud-en { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-line); }
.aud-card h4 { font-size: 23px; margin: 8px 0 16px; }
.aud-field { margin-bottom: 14px; }
.aud-field .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); display: block; margin-bottom: 4px; }
.aud-field .v { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }

/* quote / mission band */
.band {
  position: relative;
  border-radius: 24px;
  padding: clamp(40px,6vw,80px);
  background: linear-gradient(135deg, var(--surface), var(--bg-deep));
  border: 1px solid var(--hairline);
  overflow: hidden;
}
.band .q {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(26px,4.2vw,52px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.band .q .accent { color: var(--accent-line); }

/* voice cards */
.voice-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 18px; }
.voice { padding: 24px; border-radius: 14px; border: 1px solid var(--hairline); background: var(--surface); }
.voice h5 { font-family: var(--font-head); font-weight: 700; font-size: 19px; margin: 0 0 8px; color: var(--accent-line); }
.voice p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }

/* ---------- CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(30px,5vw,64px); align-items: start; max-width: 640px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: 11px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.contact-links { display: flex; flex-direction: column; gap: 2px; }
.clink {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 4px; border-top: 1px solid var(--hairline);
  cursor: pointer; transition: padding 0.25s, color 0.2s;
}
.clink:last-child { border-bottom: 1px solid var(--hairline); }
.clink:hover { padding-left: 14px; color: var(--accent-line); }
.clink .ck { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.clink .cv { font-family: var(--font-head); font-weight: 700; font-size: clamp(18px,2.4vw,26px); }
.clink .arr { color: var(--accent-line); transition: transform 0.2s; }
.clink:hover .arr { transform: translate(4px,-4px); }

.form-sent { padding: 40px; text-align: center; border: 1px dashed var(--accent); border-radius: 18px; background: var(--accent-soft); }
.form-sent .big { font-family: var(--font-head); font-weight: 700; font-size: 26px; color: var(--accent-line); margin-bottom: 8px; }

/* ---------- FOOTER ---------- */
.footer { position: relative; z-index: 2; border-top: 1px solid var(--hairline); margin-top: 40px; padding: 50px 0 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.footer-cols { display: flex; gap: clamp(40px,7vw,90px); flex-wrap: wrap; }
.footer-col h6 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 14px; font-weight: 400; }
.footer-col a { display: block; color: var(--ink-soft); font-size: 14px; padding: 5px 0; cursor: pointer; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent-line); }
.footer-base { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--hairline); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); letter-spacing: 0.04em; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  /* cheaper blur on phones — saves GPU fill-rate and battery */
  .inf-blob { filter: blur(54px); }
  .hero.v-split .hero-inner { grid-template-columns: 1fr; }
  .hero.v-split .hero-visual { max-width: 440px; order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--hairline); padding: 14px clamp(20px,5vw,56px) 22px; gap: 2px; align-items: stretch;
  }
  .nav-links.open .nav-link { padding: 12px 6px; }
  .nav-burger {
    display: inline-flex; flex-direction: column; gap: 4px; justify-content: center;
    width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--hairline-strong);
    background: var(--surface); cursor: pointer; padding: 0; align-items: center;
  }
  .nav-burger i { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.25s; }
}

@media (prefers-reduced-motion: reduce) {
  .inf-current, .inf-blob, .cell, .badge .dot, .hero-tag .live-dot,
  .inf-node, .inf-breathe {
    animation: none !important;
    transform: none !important;
  }
  .page, .reveal { animation: none; transition: none; opacity: 1; transform: none; }
}

/* ---------- old-browser fallbacks for modern CSS ---------- */
@supports not (color: color-mix(in oklch, red, blue)) {
  :root {
    --accent-soft: rgba(204,255,0,0.22);
    --accent-line: var(--accent);
  }
  .theme-light {
    --accent-soft: rgba(204,255,0,0.30);
    --accent-line: #7a8a00;
  }
}
@supports not ((mask-image: linear-gradient(#000,#000)) or (-webkit-mask-image: linear-gradient(#000,#000))) {
  /* no soft fade-out, but the dot grid still reads fine */
  .inf-grid { opacity: 0.22; }
}

/* ============================================================
   SERVICES (playtesting) page
   ============================================================ */
.svc-intro {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(30px,5vw,64px); align-items: center; margin-bottom: clamp(40px,6vw,72px);
}
.svc-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.svc-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.svc-mode {
  padding: clamp(24px,3vw,34px); border-radius: 18px;
  background: var(--surface); border: 1px solid var(--hairline);
  transition: border-color .3s, transform .3s;
}
.svc-mode:hover { border-color: var(--accent); transform: translateY(-4px); }
.svc-mode h4 { font-size: clamp(18px,2vw,22px); margin: 0 0 10px; }
.svc-mode p { color: var(--ink-soft); font-size: 15px; line-height: 1.6; margin: 0; }
.svc-stat {
  padding: 30px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--hairline);
  transition: border-color .3s, transform .3s;
}
.svc-stat:hover { border-color: var(--accent); transform: translateY(-4px); }
.svc-stat-num {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(38px,5vw,56px); line-height: 0.9;
  color: var(--accent-line); letter-spacing: -0.02em;
}
.svc-stat-label { margin-top: 12px; color: var(--ink-soft); font-size: 15px; line-height: 1.5; }

.svc-case-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px,4vw,56px); align-items: start; }
.svc-case {
  padding: clamp(28px,3vw,40px); border-radius: 22px;
  background: var(--surface); border: 1px solid var(--hairline);
}
.svc-case-title { font-size: clamp(22px,3vw,30px); margin: 12px 0 6px; }
.svc-case-meta { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); line-height: 1.5; margin: 0 0 16px; letter-spacing: 0.02em; }
.svc-case-desc { color: var(--ink-soft); font-size: 16px; line-height: 1.7; margin: 0 0 24px; }
.svc-case-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.svc-case-box {
  padding: 16px 18px; border-radius: 12px;
  background: var(--bg-deep); border: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: 6px;
}
.svc-case-box-k { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); letter-spacing: 0.04em; }
.svc-case-box-v { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--ink); }
.svc-case-insights { list-style: none; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 12px; }
.svc-case-insights li { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); }
.svc-case-insights .ins-mark { color: var(--accent-line); flex: none; }

.svc-deliver { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.svc-deliver li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-soft); font-size: 16px; line-height: 1.6; }
.svc-check {
  flex: none; width: 24px; height: 24px; border-radius: 50%; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-line);
  font-size: 13px; font-weight: 700;
}

@media (max-width: 820px) {
  .svc-intro, .svc-case-grid { grid-template-columns: 1fr; }
  .svc-stats { grid-template-columns: repeat(2,1fr); }
  .svc-modes { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .svc-case-boxes { grid-template-columns: 1fr; }
}

