/* Stone Pit Sons — site styles
   Brand tokens come from the brand kit v1.0 ("Crystal"). */
:root {
  --sps-obsidian: #0A0B0D;
  --sps-quartz: #F2F4F7;
  --sps-silicon-cyan: #22D3EE;
  --sps-graphite: #4B4C4F;
  --sps-stone: #8A8B8E;
  --sps-deep-cyan: #0891B2;

  --font: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --bg: var(--sps-obsidian);
  --bg-1: #0F1114;
  --bg-2: #15181C;
  --line: #1F2328;
  --line-2: #2B3036;
  --text: var(--sps-quartz);
  --text-2: #B4B8BF;
  --text-3: #7D8187;
  --accent: var(--sps-silicon-cyan);

  --ok: #4ADE80;
  --warn: #FBBF24;
  --info: #22D3EE;

  --nav-bg: rgba(10, 11, 13, 0.88);
  --solid-hover: #FFFFFF;
  --ladder-from: #3A3A3A;
  --ladder-to: #D8D8D8;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 10px;
  --nav-h: 64px;

  color-scheme: dark;
}

/* Light theme: set on <html data-theme="light"> by the inline head script */
:root[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-1: #F6F7F9;
  --bg-2: #EDEFF2;
  --line: #E3E6EA;
  --line-2: #D3D7DD;
  --text: var(--sps-obsidian);
  --text-2: #4A4F57;
  --text-3: #767B83;
  --accent: var(--sps-deep-cyan);

  --ok: #16A34A;
  --warn: #D97706;
  --info: var(--sps-deep-cyan);

  --nav-bg: rgba(255, 255, 255, 0.88);
  --solid-hover: #2A2D33;
  --ladder-from: #D3D7DD;
  --ladder-to: #2A2D33;

  color-scheme: light;
}
:root[data-theme="light"] .on-dark,
:root:not([data-theme="light"]) .on-light { display: none !important; }

/* Product themes */
.theme-gc { --accent: #2EE27F; --accent-solid: #2EE27F; }
.theme-lok { --accent: #D8D8D8; }
:root[data-theme="light"] .theme-gc { --accent: #15803D; }
:root[data-theme="light"] .theme-lok { --accent: #444444; }

/* Language switching: content is written in both languages, one is hidden. */
html:lang(tr) [data-l="en"],
html:lang(en) [data-l="tr"] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; }
::selection { background: var(--accent); color: var(--sps-obsidian); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 6px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 8px; }

/* ---------- Announcement ---------- */
.announce {
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
  font-size: 14px;
}
.announce .wrap { display: flex; align-items: center; gap: 10px; min-height: 40px; padding-block: 8px; }
.announce a { color: var(--text); text-underline-offset: 3px; }
.announce .tag { flex: none; }

/* ---------- Header ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { height: var(--nav-h); display: flex; align-items: center; gap: 24px; }
.nav__brand { flex: none; display: flex; }
.nav__brand img { height: 30px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__links a {
  text-decoration: none; color: var(--text-2); font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: 6px;
}
.nav__links a:hover { color: var(--text); background: var(--bg-2); }
.nav__links a[aria-current="page"] { color: var(--text); }
.nav__sep { width: 1px; height: 20px; background: var(--line-2); margin: 0 8px; }
.nav__tools { display: flex; align-items: center; gap: 8px; }
.lang {
  font: 500 12px/1 var(--mono); color: var(--text-3);
  background: none; border: 1px solid var(--line-2); border-radius: 6px;
  padding: 7px 9px; cursor: pointer; display: inline-flex; gap: 6px; text-decoration: none;
}
.lang:hover { color: var(--text-2); }
html:lang(tr) .lang [data-lang="tr"],
html:lang(en) .lang [data-lang="en"] { color: var(--text); }
.theme {
  display: inline-grid; place-items: center; width: 32px; height: 30px;
  background: none; border: 1px solid var(--line-2); border-radius: 6px; color: var(--text-2); cursor: pointer;
}
.theme:hover { color: var(--text); }
.theme svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="light"] .theme .i-sun,
:root:not([data-theme="light"]) .theme .i-moon { display: none; }
.burger { display: none; }

/* ---------- Buttons & tags ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 8px;
  font: 600 15px/1 var(--font); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn--solid { background: var(--text); color: var(--bg); }
.btn--solid:hover { background: var(--solid-hover); }
.btn--line { border-color: var(--line-2); color: var(--text); }
.btn--line:hover { border-color: var(--text-3); background: var(--bg-2); }
.btn .ext { font-size: 13px; opacity: .7; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.tag {
  display: inline-flex; align-items: center; gap: 7px;
  font: 500 12px/1 var(--mono); color: var(--text-2);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 10px 5px 8px;
  white-space: nowrap;
}
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.tag--ok::before { background: var(--ok); }
.tag--warn::before { background: var(--warn); }
.tag--info::before { background: var(--info); }
.tag--plain::before { display: none; }
.tag--plain { padding-left: 10px; }

.link-arrow { color: var(--text); font-weight: 600; text-decoration: none; font-size: 15px; }
.link-arrow:hover { color: var(--accent); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; border-top: 1px solid var(--line); }
.section--flush { border-top: 0; }
.section__head { display: grid; gap: 12px; margin-bottom: 40px; max-width: 760px; }
.section__head--row {
  max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.label {
  font: 500 12px/1 var(--mono); color: var(--text-3); text-transform: uppercase; letter-spacing: .08em;
}
.label b { color: var(--accent); font-weight: 500; }
.section h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section__head p:not(.label):not(.mono) { color: var(--text-2); font-size: 17px; }

.prose { display: grid; gap: 16px; max-width: 720px; color: var(--text-2); font-size: 17px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--text); text-underline-offset: 3px; }

/* ---------- Home hero ---------- */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 8vw, 96px); }
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__kicker { margin-bottom: 20px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); letter-spacing: -0.035em; line-height: 1.05; max-width: 13em; }
.hero__lead { margin-top: 20px; font-size: clamp(17px, 1.5vw, 19px); color: var(--text-2); max-width: 34em; }
.hero .actions { margin-top: 32px; }

/* Status board */
.board { border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-1); overflow: hidden; }
.board__head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.board__row {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center;
  padding: 16px 18px; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: background .15s;
}
.board__row:last-of-type { border-bottom: 0; }
.board__row:hover { background: var(--bg-2); }
.board__row img { width: 40px; height: 40px; border-radius: 9px; object-fit: contain; }
.board__name { font-weight: 600; font-size: 16px; }
.board__meta { font: 400 12.5px/1.4 var(--mono); color: var(--text-3); margin-top: 2px; }
.board__foot { padding: 12px 18px; border-top: 1px solid var(--line); background: var(--bg); }

/* ---------- Product rows (home) ---------- */
.prow {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  padding: clamp(32px, 5vw, 56px) 0; border-top: 1px solid var(--line);
}
.prow:first-of-type { border-top: 0; padding-top: 0; }
.prow:nth-of-type(even) .prow__media { order: -1; }
.prow__title { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.prow__title img { width: 48px; height: 48px; border-radius: 10px; }
.prow h3 { font-size: clamp(24px, 2.6vw, 30px); }
.prow__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.prow__text { color: var(--text-2); font-size: 17px; }
.facts { list-style: none; margin: 20px 0 26px; display: grid; gap: 8px; }
.facts li { display: flex; gap: 10px; font-size: 15px; color: var(--text); }
.facts li::before { content: "—"; color: var(--text-3); font-family: var(--mono); }

.shot {
  border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: var(--bg-1);
  aspect-ratio: 16 / 9;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }

/* LoK panel used on home + LoK page */
.lokpanel {
  aspect-ratio: 16 / 9; border: 1px solid var(--line-2); border-radius: var(--r);
  background: #111; display: grid; grid-template-rows: auto 1fr; overflow: hidden;
}
.lokpanel__top { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #222; }
.lokpanel__top img { height: 26px; width: auto; }
.lokpanel__body { display: grid; grid-template-columns: 1fr 1fr; }
.lokpanel__match { padding: 20px; display: grid; align-content: center; gap: 14px; border-right: 1px solid #222; }
.lokpanel__line { font: 500 clamp(12px, 1.3vw, 15px)/1.6 var(--mono); color: #6f6f6f; }
.lokpanel__line .ok { color: #d8d8d8; }
.lokpanel__line .cur { border-left: 2px solid #d8d8d8; margin-left: -1px; }
.lokpanel__line .err { color: #f87171; text-decoration: underline; text-underline-offset: 3px; }
.lokpanel__stats { display: flex; gap: 20px; font-family: var(--mono); }
.lokpanel__stats b { display: block; font-size: clamp(18px, 2vw, 24px); color: #eee; font-weight: 600; }
.lokpanel__stats span { font-size: 11px; color: #777; text-transform: uppercase; letter-spacing: .06em; }
.lokpanel__ladder { padding: 16px 20px; display: grid; align-content: center; gap: 4px; }
.lokpanel__tier { display: grid; grid-template-columns: 1fr auto; font: 500 12px/1.9 var(--mono); color: #777; }
.lokpanel__tier.is-you { color: #eee; background: #1d1d1d; margin: 0 -8px; padding: 0 8px; border-radius: 4px; }

/* ---------- Press ---------- */
.press { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.press a {
  display: grid; gap: 6px; padding: 22px 20px; text-decoration: none;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0;
  transition: background .15s;
}
.press a:hover { background: var(--bg-1); }
.press__name { font-weight: 650; font-size: 17px; letter-spacing: -0.01em; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; display: grid; }
.timeline li {
  display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 16px 0;
  border-top: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline time, .timeline .when { font: 500 13px/1.7 var(--mono); color: var(--text-3); }
.timeline strong { font-weight: 600; }
.timeline p { color: var(--text-2); font-size: 15px; }
.timeline .is-next time, .timeline .is-next .when { color: var(--accent); }

/* ---------- Two-column split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.split > * { min-width: 0; }

/* ---------- Product page ---------- */
.crumbs { padding-top: 28px; }
.crumbs a { color: var(--text-3); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.phero { padding: 32px 0 clamp(48px, 7vw, 80px); }
.phero__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.phero__logo { width: 88px; height: 88px; margin-bottom: 24px; }
.phero h1 { font-size: clamp(40px, 5vw, 60px); letter-spacing: -0.035em; }
.phero__claim { font-size: clamp(20px, 2vw, 24px); font-weight: 550; letter-spacing: -0.015em; margin-top: 10px; }
.phero__lead { color: var(--text-2); font-size: 17px; margin-top: 16px; max-width: 32em; }
.phero__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.phero .actions { margin-top: 28px; }

.phero__logo--icon { border-radius: 20px; }
.lok-hero-logo { width: 220px; margin-bottom: 28px; }
.theme-gc .btn--solid { background: var(--accent-solid); color: #04120B; }
.theme-gc .btn--solid:hover { background: #5BEA9C; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; border-top: 1px solid var(--line-2); }
.steps li { counter-increment: step; padding: 20px 20px 0 0; display: grid; gap: 8px; align-content: start; }
.steps li::before { content: counter(step, decimal-leading-zero); font: 500 12px/1 var(--mono); color: var(--accent); }
.steps strong { font-size: 17px; font-weight: 600; }
.steps p { color: var(--text-2); font-size: 15px; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 0; }
.features > div { padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; display: grid; gap: 6px; align-content: start; }
.features dt { font-weight: 600; font-size: 16px; }
.features dd { margin: 0; color: var(--text-2); font-size: 15px; }

.groups { display: grid; gap: 0; }
.group { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 28px 0; border-top: 1px solid var(--line); }
.group:last-child { border-bottom: 1px solid var(--line); }
.group h3 { font-size: 19px; }
.group ul { list-style: none; display: grid; gap: 10px; color: var(--text-2); }
.group li { display: flex; gap: 10px; }
.group li::before { content: "—"; color: var(--text-3); font-family: var(--mono); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.gallery a { display: block; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; aspect-ratio: 16/9; background: var(--bg-1); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.03); }

.notes { display: grid; gap: 12px; }
.note {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 18px 20px;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg-1);
}
.note__icon { font: 600 13px/1.6 var(--mono); color: var(--text-3); }
.note strong { display: block; margin-bottom: 2px; font-weight: 600; }
.note p { color: var(--text-2); font-size: 15px; }
.note--warn { border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .05); }
.note--warn .note__icon { color: var(--warn); }

.spec { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec th, .spec td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec thead th { font: 500 12px/1 var(--mono); color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; padding-top: 0; }
.spec tbody th { font-weight: 500; color: var(--text-2); width: 22%; }
.spec td { color: var(--text); overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; }

kbd {
  font: 500 13px/1 var(--mono); color: var(--text);
  border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px;
  padding: 4px 7px; background: var(--bg-2); white-space: nowrap;
}

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 17px;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--text-3); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--text-2); padding: 0 0 20px; max-width: 760px; }

/* Steam store widget: fixed 646×190 iframe, scaled down by script.js on narrow screens */
.steam-widget { width: 100%; max-width: 646px; height: 190px; overflow: hidden; border-radius: 4px; }
/* color-scheme must match Steam's page, or Chrome paints an opaque white backdrop behind the iframe */
.steam-widget iframe { display: block; width: 646px; height: 190px; border: 0; transform-origin: 0 0; color-scheme: light; }

.changelog { list-style: none; display: grid; border-top: 1px solid var(--line); }
.changelog > li { display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.changelog__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.changelog__lead { font-weight: 550; }
.changelog ul { list-style: none; display: grid; gap: 8px; margin-top: 12px; color: var(--text-2); font-size: 15px; }
.changelog ul li { display: flex; gap: 10px; }
.changelog ul li::before { content: "—"; color: var(--text-3); font-family: var(--mono); }

.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 32px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-1);
}
.cta-band h2 { font-size: clamp(22px, 2.4vw, 28px); }
.cta-band p { color: var(--text-2); margin-top: 6px; }

/* ---------- LoK page ---------- */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mode { border: 1px solid var(--line-2); border-radius: var(--r); padding: 24px; background: var(--bg-1); display: grid; gap: 12px; align-content: start; }
.mode__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mode h3 { font-size: 20px; }
.mode p { color: var(--text-2); font-size: 15px; }
.mode .tag { color: var(--text-2); }

.ladder { list-style: none; display: grid; gap: 6px; }
.ladder li { display: grid; grid-template-columns: 120px 1fr 124px; gap: 16px; align-items: center; font-size: 15px; }
.ladder__name { font-weight: 600; }
.ladder__bar { height: 8px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.ladder__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--ladder-from), var(--ladder-to)); border-radius: 4px; }
.ladder__lp { font: 500 13px/1 var(--mono); color: var(--text-3); text-align: right; white-space: nowrap; min-width: 4ch; }

/* ---------- Roadmap ---------- */
.lanes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.lane { display: grid; gap: 10px; }
.lane__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.lane__head h2 { font-size: 20px; }
.card { border: 1px solid var(--line-2); border-radius: var(--r); padding: 18px; background: var(--bg-1); display: grid; gap: 8px; }
.card__product { font: 500 12px/1 var(--mono); color: var(--text-3); display: flex; align-items: center; gap: 8px; }
.card__product img { width: 18px; height: 18px; border-radius: 4px; }
.card h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.card p { color: var(--text-2); font-size: 14.5px; }
.card__foot { font: 500 12px/1 var(--mono); color: var(--text-3); padding-top: 4px; }

/* ---------- Studio page ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 0; }
.stats > div { padding: 24px; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats dt { font: 500 12px/1 var(--mono); color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.stats dd { margin: 10px 0 0; font-size: clamp(22px, 2.4vw, 30px); font-weight: 650; letter-spacing: -0.02em; }

.principles { list-style: none; display: grid; }
.principles li { display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px; padding: 28px 0; border-top: 1px solid var(--line); }
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles h3 { font-size: 19px; }
.principles p { color: var(--text-2); }

.downloads { list-style: none; display: grid; border-top: 1px solid var(--line); }
.downloads li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.downloads strong { font-weight: 600; }
.downloads .dim { font-size: 14px; }

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.swatch { border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.swatch i { display: block; height: 56px; }
.swatch div { padding: 10px 12px; display: grid; gap: 2px; }
.swatch b { font-size: 14px; font-weight: 600; }

.contact-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-list > div { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list a { color: var(--text); text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 32px; background: var(--bg); }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer__brand img { height: 28px; width: auto; margin-bottom: 14px; }
.footer__brand p { color: var(--text-3); font-size: 14px; max-width: 26em; }
.footer .footer__h { font: 500 12px/1 var(--mono); color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer ul a { color: var(--text-2); text-decoration: none; font-size: 14px; }
.footer ul a:hover { color: var(--text); }
.footer__base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line);
  color: var(--text-3); font-size: 13px;
}

/* ---------- Lightbox ---------- */
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1400px, 94vw); width: 100%; }
.lightbox::backdrop { background: rgba(0, 0, 0, .86); }
.lightbox img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line-2); }
.lightbox button {
  position: absolute; top: 10px; right: 10px; font: 500 13px/1 var(--mono);
  background: rgba(0,0,0,.7); color: #fff; border: 1px solid var(--line-2); border-radius: 6px; padding: 8px 10px; cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .burger {
    display: grid; gap: 5px; place-content: center;
    width: 38px; height: 38px; background: none; border: 1px solid var(--line-2); border-radius: 6px; cursor: pointer;
  }
  .burger span { width: 16px; height: 1.5px; background: var(--text); transition: transform .2s; }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .nav__tools { margin-left: auto; }
  .nav__sep { display: none; }
  .nav__links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 16px; }
  .nav__links a:hover { background: none; }
  .nav__links a:last-child { border-bottom: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .hero__grid, .phero__grid, .prow, .split { grid-template-columns: 1fr; }
  .prow:nth-of-type(even) .prow__media { order: 0; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 12px; }
  .modes, .lanes { grid-template-columns: 1fr; }
  .group, .principles li, .changelog > li { grid-template-columns: 1fr; gap: 12px; }
  .changelog__meta { flex-direction: row; align-items: center; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .contact-list > div { grid-template-columns: 1fr; gap: 4px; }
  .ladder li { grid-template-columns: 92px 1fr 40px; gap: 10px; font-size: 14px; }
  .ladder__lp { font-size: 12px; }
  .ladder__seat { display: none; }
  .lokpanel { aspect-ratio: auto; }
  .lokpanel__body { grid-template-columns: 1fr; }
  .lokpanel__match { border-right: 0; border-bottom: 1px solid #222; }
  .board__row { grid-template-columns: 36px 1fr; }
  .board__row .tag { grid-column: 2; justify-self: start; }
  .board__row img { width: 36px; height: 36px; }
  .cta-band { padding: 24px; }
  .announce .wrap { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
