/* =====================================================================
   minimalistic.solutions
   Design system: tactical telemetry terminal. Dark only, sharp corners,
   Archivo (wide, heavy) for macro type, JetBrains Mono for telemetry.
   Accent is set per page through --acc (studio = white phosphor).
   ===================================================================== */

:root {
  --bg: #0a0a0b;
  --bg-2: #101012;
  --bg-3: #16161a;
  --line: #222226;
  --line-2: #34343a;
  --fg: #ecebe6;
  --fg-2: #a4a39d;
  --fg-3: #8a8983;

  --acc: #ecebe6;          /* overridden per product */
  --acc-ink: #0a0a0b;      /* text colour on top of --acc */
  --acc-soft: rgba(236, 235, 230, 0.08);

  --outlier: #f7e600;
  --outlier-2: #ff2e88;
  --killswitch: #ff3b30;
  --badsector: #b39dff;
  --badsector-2: #ff3b5c;

  --sans: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1440px;
  --nav-h: 64px;

  color-scheme: dark;
}

.theme-outlier    { --acc: var(--outlier);    --acc-2: var(--outlier-2); --acc-ink: #141200; --acc-soft: rgba(247, 230, 0, 0.07); }
.theme-killswitch { --acc: var(--killswitch); --acc-ink: #1a0503; --acc-soft: rgba(255, 59, 48, 0.09); }
.theme-badsector  { --acc: var(--badsector);  --acc-2: var(--badsector-2); --acc-ink: #120b26; --acc-soft: rgba(179, 157, 255, 0.08); }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'zero' 0;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--acc); color: var(--acc-ink); }

:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
}

/* ---------- language switching ---------- */
html[data-lang="en"] body [lang="pl"],
html[data-lang="pl"] body [lang="en"] { display: none !important; }

/* ---------- analog texture: scanlines + grain (fixed, non-interactive) ---------- */
.crt {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  background:
    repeating-linear-gradient(0deg, transparent 0 2px, rgba(0, 0, 0, 0.16) 2px 3px);
  mix-blend-mode: multiply;
}
.crt::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

/* ---------- layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(88px, 12vw, 168px);
  border-top: 1px solid var(--line);
  position: relative;
}

.mono-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.mono-label .acc { color: var(--acc); }

.h-display {
  font-family: var(--sans);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: 0.9;
}

.h2 {
  font-family: var(--sans);
  font-stretch: 118%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.95;
  font-size: clamp(40px, 6.4vw, 96px);
}

.h3 {
  font-family: var(--sans);
  font-stretch: 112%;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
  font-size: clamp(20px, 1.9vw, 26px);
}

.lede {
  font-family: var(--sans);
  font-stretch: 100%;
  font-weight: 400;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 44ch;
  letter-spacing: 0;
}

.body {
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.7;
  max-width: 62ch;
}

.acc-text { color: var(--acc); }

/* ASCII bracket framing */
.bracket::before { content: '[ '; color: var(--fg-3); }
.bracket::after  { content: ' ]'; color: var(--fg-3); }

/* ---------- buttons (sharp, machined, button-in-button trailing glyph) ---------- */
.btn {
  --b-bg: transparent;
  --b-fg: var(--fg);
  --b-line: var(--line-2);
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  min-height: 48px;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--b-bg);
  color: var(--b-fg);
  border: 1px solid var(--b-line);
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
  user-select: none;
}
.btn > .t { display: inline-flex; align-items: center; padding: 0 20px; }
.btn > .g {
  display: inline-grid;
  place-items: center;
  width: 46px;
  border-left: 1px solid var(--b-line);
  overflow: hidden;
  position: relative;
}
.btn > .g i {
  font-style: normal;
  display: block;
  transition: transform 260ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }

.btn--solid { --b-bg: var(--acc); --b-fg: var(--acc-ink); --b-line: var(--acc); }
.btn--solid > .g { border-left-color: color-mix(in srgb, var(--acc-ink) 25%, transparent); }

.btn--ghost { --b-line: var(--line-2); }

@media (hover: hover) and (pointer: fine) {
  .btn--solid:hover { --b-bg: var(--fg); --b-line: var(--fg); --b-fg: var(--bg); }
  .btn--ghost:hover { --b-line: var(--fg-2); --b-bg: rgba(255, 255, 255, 0.03); }
  .btn:hover > .g i { transform: translate(3px, -3px); }
  .btn[data-dir="down"]:hover > .g i { transform: translateY(3px); }
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* text link with underline draw */
.tlink {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 300ms var(--ease-out), color 200ms ease;
  padding-bottom: 2px;
}
@media (hover: hover) and (pointer: fine) {
  .tlink:hover { color: var(--acc); background-size: 0% 1px; background-position: 100% 100%; }
}

/* =====================================================================
   TOP BAR
   ===================================================================== */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  height: var(--nav-h);
  background: rgba(10, 10, 11, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand-mark {
  width: 22px; height: 22px;
  border: 1.5px solid var(--fg);
  position: relative;
  flex: none;
}
.brand-mark::after {
  content: '';
  position: absolute;
  width: 6px; height: 6px;
  right: -5px; top: -5px;
  background: var(--acc);
  transition: transform 300ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .brand:hover .brand-mark::after { transform: translate(3px, -3px); }
}
.brand .dim { color: var(--fg-3); }
.brand .crumb { color: var(--acc); }

.nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  list-style: none;
}
.nav a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
  text-decoration: none;
  transition: color 160ms ease;
}
.nav a[aria-current="page"] { color: var(--fg); }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--fg); }
}

.bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang {
  display: inline-flex;
  border: 1px solid var(--line-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.lang a {
  padding: 6px 9px;
  color: var(--fg-3);
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}
.lang a[aria-current="true"] { background: var(--fg); color: var(--bg); }
@media (hover: hover) and (pointer: fine) {
  .lang a:not([aria-current]):hover { color: var(--fg); }
}
.nav-wrap { display: flex; justify-content: center; }

.team {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}
.team-q {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  white-space: nowrap;
}
.team .btn { min-height: 36px; font-size: 11px; }
.team .btn > .t { padding: 0 14px; }
.team .btn > .g { width: 34px; }

.menu-btn {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line-2);
  position: relative;
}
.menu-btn span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.5px;
  background: var(--fg);
  transition: transform 300ms var(--ease-out), opacity 200ms ease;
}
.menu-btn span:nth-child(1) { top: 14px; }
.menu-btn span:nth-child(2) { top: 19px; }
.menu-btn span:nth-child(3) { top: 24px; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* mobile sheet */
.sheet {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 79;
  background: rgba(10, 10, 11, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 32px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 240ms var(--ease-out), visibility 0s linear 240ms;
}
.menu-open .sheet { visibility: visible; opacity: 1; transition: opacity 240ms var(--ease-out); }
.sheet ul { list-style: none; border-top: 1px solid var(--line); }
.sheet li { border-bottom: 1px solid var(--line); overflow: hidden; }
.sheet li a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 0;
  text-decoration: none;
  font-family: var(--sans);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  transform: translateY(100%);
  transition: transform 500ms var(--ease-drawer);
}
.sheet li a small { font-family: var(--mono); font-size: 11px; color: var(--fg-3); letter-spacing: 0.1em; font-weight: 500; }
.menu-open .sheet li a { transform: none; }
.menu-open .sheet li:nth-child(2) a { transition-delay: 50ms; }
.menu-open .sheet li:nth-child(3) a { transition-delay: 100ms; }
.menu-open .sheet li:nth-child(4) a { transition-delay: 150ms; }
.menu-open .sheet li:nth-child(5) a { transition-delay: 200ms; }
.sheet-foot { margin-top: auto; display: flex; flex-direction: column; gap: 16px; }

@media (max-width: 1080px) {
  .team-q { display: none; }
  .team { padding-left: 0; border-left: 0; }
}
@media (max-width: 860px) {
  .topbar .wrap { grid-template-columns: 1fr auto; }
  .nav-wrap, .bar-right .lang { display: none; }
  .menu-btn { display: block; }
  .bar-right { gap: 10px; }
}
.brand .short { display: none; }
@media (max-width: 560px) {
  .brand .full { display: none; }
  .brand .short { display: inline; }
}
@media (min-width: 861px) { .sheet { display: none; } }

/* =====================================================================
   REVEAL (scroll entry)
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .rv [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(6px);
    transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out), filter 900ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .rv [data-reveal].in { opacity: 1; transform: none; filter: none; }

  .rv [data-wipe] {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1100ms var(--ease-io);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .rv [data-wipe].in { clip-path: inset(0 0 0 0); }
}

/* =====================================================================
   HUD FRAME (sharp "double bezel": outer tray + inner plate)
   ===================================================================== */
.hud {
  position: relative;
  padding: 8px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0));
}
.hud > .hud-in {
  position: relative;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.hud::before, .hud::after,
.hud > .hud-in::before, .hud > .hud-in::after { content: none; }
.tick {
  position: absolute;
  width: 11px; height: 11px;
  pointer-events: none;
}
.tick::before, .tick::after { content: ''; position: absolute; background: var(--fg-2); }
.tick::before { left: 5px; top: 0; width: 1px; height: 11px; }
.tick::after  { top: 5px; left: 0; height: 1px; width: 11px; }
.tick.tl { top: -6px; left: -6px; }
.tick.tr { top: -6px; right: -6px; }
.tick.bl { bottom: -6px; left: -6px; }
.tick.br { bottom: -6px; right: -6px; }

.hud-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.hud-bar b { color: var(--fg-2); font-weight: 500; }

/* =====================================================================
   HOME: HERO
   ===================================================================== */
.hero {
  min-height: 100dvh;
  padding-top: calc(var(--nav-h) + clamp(40px, 7vh, 88px));
  padding-bottom: clamp(40px, 6vh, 72px);
  display: flex;
  flex-direction: column;
}
.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.hero h1 {
  font-size: clamp(38px, 5.7vw, 92px);
  font-stretch: 106%;
}
.h-display .ln { display: block; }
.hero h1 .dim { color: var(--fg-3); }
.hero-copy { display: flex; flex-direction: column; gap: clamp(28px, 4vh, 44px); }
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 8px 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  margin-top: clamp(40px, 7vh, 80px);
}
.hero-meta dt { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }
.hero-meta dd { font-size: 13px; color: var(--fg); }

@media (prefers-reduced-motion: no-preference) {
  .js .hero h1 .ln, .js .p-hero h1 .ln, .js .doc-head h1 {
    clip-path: inset(0 0 100% 0);
    transform: translateY(0.35em);
    animation: lineUp 1000ms var(--ease-drawer) forwards;
  }
  .js .hero h1 .ln:nth-child(2), .js .p-hero h1 .ln:nth-child(2) { animation-delay: 90ms; }
  .js .hero h1 .ln:nth-child(3), .js .p-hero h1 .ln:nth-child(3) { animation-delay: 180ms; }
  .js .hero-fade { opacity: 0; animation: fadeIn 900ms var(--ease-out) 450ms forwards; }
}
@keyframes lineUp {
  0% { clip-path: inset(0 0 100% 0); transform: translateY(0.35em); }
  99% { clip-path: inset(0 0 0 0); transform: none; }
  100% { clip-path: none; transform: none; }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* galton board visual */
.galton { width: 100%; }
.galton .hud-in { aspect-ratio: 4 / 5; display: flex; flex-direction: column; }
.galton canvas { width: 100%; flex: 1; min-height: 0; }
.galton-foot {
  position: relative;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  gap: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  pointer-events: none;
}
.galton-foot button {
  pointer-events: auto;
  white-space: nowrap;
  color: var(--fg-2);
  padding: 4px 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 10.5px;
  transition: color 160ms ease;
}
@media (hover: hover) and (pointer: fine) { .galton-foot button:hover { color: var(--fg); } }
.galton-foot output { color: var(--fg-2); }

/* =====================================================================
   HOME: APPS
   ===================================================================== */
.apps-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: clamp(48px, 7vw, 96px);
}

.app {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  position: relative;
  text-decoration: none;
  isolation: isolate;
}
.app + .app { margin-top: 24px; }

.app-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding: clamp(24px, 3.4vw, 48px);
  position: relative;
}
.app-name {
  font-size: clamp(40px, 4.9vw, 76px);
  color: var(--fg);
}
.app-name .acc { color: var(--acc); }
.app-tag {
  font-family: var(--sans);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.4;
  color: var(--fg-2);
  max-width: 34ch;
  margin-top: 20px;
}
.app-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.app-specs div { background: var(--bg); padding: 14px 16px; }
.app-specs dt { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }
.app-specs dd { font-size: 13px; color: var(--fg); margin-top: 2px; }
.app-specs dd.acc-text { color: var(--acc); }

.app-visual {
  border-left: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  min-height: 520px;
  background: radial-gradient(120% 80% at 70% 40%, var(--acc-soft), transparent 70%), var(--bg-2);
}
.app-visual img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transition: transform 1200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .app:hover .app-visual img { transform: scale(1.035); }
}

/* killswitch hazard visual */
.hazard {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.hazard::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(255, 59, 48, 0.09) 0 18px, transparent 18px 36px);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hazard-card {
  position: relative;
  width: min(84%, 380px);
  border: 1px solid var(--killswitch);
  background: var(--bg);
  padding: 24px;
  display: grid;
  gap: 18px;
  box-shadow: 0 0 0 8px var(--bg), 0 0 0 9px rgba(255, 59, 48, 0.35);
}
.hazard-card .big {
  font-family: var(--sans);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(26px, 3.2vw, 48px);
  letter-spacing: -0.03em;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--killswitch);
}
.hazard-card .row { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-2); }
.hazard-card .meter { height: 6px; background: repeating-linear-gradient(90deg, var(--killswitch) 0 6px, transparent 6px 9px); }

.app-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.status i {
  width: 7px; height: 7px;
  background: var(--acc);
  flex: none;
}
.status.live i { box-shadow: 0 0 0 3px var(--acc-soft); }
@media (prefers-reduced-motion: no-preference) {
  .status.live i { animation: blink 2.4s steps(1) infinite; }
}
@keyframes blink { 50% { opacity: 0.25; } }

/* =====================================================================
   HOME: PRINCIPLES
   ===================================================================== */
.principles {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(48px, 6vw, 88px);
}
.principle {
  background: var(--bg);
  padding: clamp(24px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 300px;
}
.principle:nth-child(1) { grid-column: span 7; }
.principle:nth-child(2) { grid-column: span 5; }
.principle:nth-child(3) { grid-column: span 5; }
.principle:nth-child(4) { grid-column: span 7; }
.principle .glyph {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-3);
}
.principle h3 {
  font-family: var(--sans);
  font-stretch: 122%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.95;
  font-size: clamp(32px, 3.6vw, 56px);
  margin-top: auto;
}
.principle p { color: var(--fg-2); font-size: 14px; max-width: 46ch; }
.principle--inv { background: var(--fg); color: var(--bg); }
.principle--inv p, .principle--inv .glyph { color: #3c3b37; }

/* =====================================================================
   HOME: CONTACT
   ===================================================================== */
.contact-mail {
  display: block;
  margin-top: 32px;
  font-family: var(--sans);
  font-stretch: 112%;
  font-weight: 800;
  letter-spacing: -0.035em;
  font-size: clamp(28px, 6.2vw, 104px);
  line-height: 1;
  text-decoration: none;
  word-break: break-all;
  position: relative;
  width: fit-content;
  max-width: 100%;
}
.contact-mail::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -10px;
  height: 3px;
  background: var(--acc);
  transform: scaleX(0.12);
  transform-origin: left;
  transition: transform 600ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .contact-mail:hover::after { transform: scaleX(1); }
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(56px, 7vw, 104px);
}
.contact-grid > div { background: var(--bg); padding: 20px; display: grid; gap: 6px; align-content: start; }
.contact-grid dt { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }
.contact-grid dd { font-size: 13.5px; color: var(--fg); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 56px 32px;
  position: relative;
  overflow: hidden;
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.foot-grid .foot-h {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 14px;
}
.foot-grid ul { list-style: none; display: grid; gap: 8px; font-size: 13px; }
.foot-grid a { text-decoration: none; color: var(--fg-2); transition: color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .foot-grid a:hover { color: var(--fg); } }
.foot-brand p { color: var(--fg-3); font-size: 13px; max-width: 36ch; margin-top: 14px; }
.foot-word {
  margin-top: 72px;
  font-family: var(--sans);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.045em;
  line-height: 0.8;
  font-size: clamp(40px, 10.2vw, 172px);
  color: transparent;
  -webkit-text-stroke: 1px var(--line-2);
  white-space: nowrap;
  user-select: none;
}
.foot-base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* =====================================================================
   PRODUCT PAGES (shared)
   ===================================================================== */
.p-hero {
  min-height: 100dvh;
  padding-top: calc(var(--nav-h) + clamp(32px, 6vh, 72px));
  padding-bottom: clamp(40px, 6vh, 72px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.p-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.55;
  mask-image: radial-gradient(70% 70% at 70% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 70% 50%, #000, transparent 75%);
  pointer-events: none;
}
.p-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
}
.p-hero h1 { font-size: clamp(36px, 5.1vw, 90px); font-stretch: 112%; }
.p-hero .lede { margin-top: 28px; }
.p-hero .btn-row { margin-top: 40px; }
.app-id {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}
.app-id img { width: 48px; height: 48px; border: 1px solid var(--line-2); }

.phone-shot {
  position: relative;
  justify-self: center;
  width: min(100%, 440px);
}
.phone-shot .hud-in { aspect-ratio: 9 / 16; }
.phone-shot img { width: 100%; height: 100%; object-fit: cover; }
.phone-shot figcaption {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* stat strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { padding: clamp(24px, 3vw, 40px) var(--gutter); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat .n {
  font-family: var(--sans);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(44px, 5vw, 84px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--fg);
}
.stat .n .acc-text { color: var(--acc); }
.stat .l { margin-top: 10px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-2); }

/* verb rail (how it works) */
.rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(48px, 6vw, 80px);
}
.rail > li {
  list-style: none;
  background: var(--bg);
  padding: clamp(22px, 2.4vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 320px;
  position: relative;
  transition: background-color 300ms ease;
}
.rail h3 {
  font-family: var(--sans);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 0.95;
}
.rail p { color: var(--fg-2); font-size: 13.5px; margin-top: auto; }
.rail .arrow { font-size: 13px; color: var(--acc); }
@media (hover: hover) and (pointer: fine) {
  .rail > li:hover { background: var(--bg-2); }
}
.rail--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* gaussian widget */
.gauss {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.gauss-body { padding: clamp(16px, 2.2vw, 26px); }
.gauss canvas { width: 100%; height: clamp(220px, 26vw, 340px); }
.gauss-read {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 18px;
}
.gauss-read > div { background: var(--bg-2); padding: 12px 14px; }
.gauss-read dt { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }
.gauss-read dd { font-family: var(--sans); font-stretch: 115%; font-weight: 800; font-size: clamp(20px, 2vw, 30px); letter-spacing: -0.02em; color: var(--fg); }
.gauss-read dd.acc-text { color: var(--acc); }
.gauss-ctrl { margin-top: 20px; display: grid; gap: 10px; }
.gauss-ctrl label { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-2); display: flex; justify-content: space-between; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(90deg, var(--acc) var(--p, 50%), var(--line-2) var(--p, 50%));
}
input[type="range"]::-moz-range-track { height: 2px; background: var(--line-2); }
input[type="range"]::-moz-range-progress { height: 2px; background: var(--acc); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  margin-top: -8px;
  background: var(--bg);
  border: 2px solid var(--acc);
  transition: transform 160ms var(--ease-out);
}
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 0;
  background: var(--bg);
  border: 2px solid var(--acc);
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.2); }

/* features bento */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(48px, 6vw, 80px);
}
.cell {
  background: var(--bg);
  padding: clamp(20px, 2.2vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 240px;
  position: relative;
  overflow: hidden;
}
.cell .k { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--acc); }
.cell h3 { margin-top: auto; }
.cell p { color: var(--fg-2); font-size: 13.5px; max-width: 48ch; }
.cell--img { padding: 0; }
.cell--img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: 0.9; }
.cell--img .cap {
  position: relative;
  margin-top: auto;
  padding: clamp(20px, 2.2vw, 32px);
  background: linear-gradient(0deg, var(--bg) 42%, rgba(10,10,11,0.85) 70%, rgba(10,10,11,0));
  padding-top: 96px;
  display: grid;
  gap: 10px;
}
.cell--acc { background: var(--acc); color: var(--acc-ink); }
.cell--acc .k, .cell--acc p { color: color-mix(in srgb, var(--acc-ink) 78%, transparent); }
.cell--tint { background: var(--bg-2); }
.c-8 { grid-column: span 8; }
.c-7 { grid-column: span 7; }
.c-6 { grid-column: span 6; }
.c-5 { grid-column: span 5; }
.c-4 { grid-column: span 4; }
.c-3 { grid-column: span 3; }
.r-2 { grid-row: span 2; }
.tall { min-height: 480px; }

/* theme gallery (scroll-snap strip) */
.strip-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.strip-ctrl { display: flex; gap: 8px; }
.strip-ctrl button {
  width: 48px; height: 48px;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  transition: transform 160ms var(--ease-out), border-color 200ms ease;
}
.strip-ctrl button:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .strip-ctrl button:hover { border-color: var(--fg-2); } }
.strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(220px, 24vw, 340px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px var(--gutter) 24px;
  margin-top: clamp(40px, 5vw, 64px);
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
  overscroll-behavior-x: contain;
}
.strip figure { scroll-snap-align: start; }
.strip .frame { border: 1px solid var(--line); padding: 6px; background: var(--bg-2); }
.strip img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; }
.strip figcaption { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.strip figcaption span:last-child { color: var(--fg-3); }

/* plus block */
.plus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 1px solid var(--line);
}
.plus > div { padding: clamp(28px, 4vw, 64px); }
.plus > div + div { border-left: 1px solid var(--line); }
.plus ul { list-style: none; display: grid; gap: 0; margin-top: 24px; border-top: 1px solid var(--line); }
.plus li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--fg-2); }
.plus li b { color: var(--fg); font-weight: 500; }
.plus li .acc-text { white-space: nowrap; }

/* readout (terminal key/value) */
.readout { border: 1px solid var(--line); background: var(--bg-2); }
.readout .hud-bar { background: var(--bg-3); }
.readout dl { padding: 18px 20px 22px; display: grid; gap: 6px; font-size: 13.5px; }
.readout dl > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: baseline; }
.readout dt { color: var(--fg-2); overflow: hidden; white-space: nowrap; }
.readout dt::after { content: ' ....................................................................................'; color: var(--fg-3); }
.readout dd { color: var(--fg); text-align: right; }
.readout dd.acc-text { color: var(--acc); }

/* legal teaser */
.legal-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.legal-links a {
  background: var(--bg);
  padding: 24px;
  text-decoration: none;
  display: grid;
  gap: 32px;
  transition: background-color 200ms ease;
}
.legal-links a .h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.legal-links a .h3 i { font-style: normal; color: var(--acc); transition: transform 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .legal-links a:hover { background: var(--bg-2); }
  .legal-links a:hover .h3 i { transform: translate(3px, -3px); }
}

/* final CTA */
.final {
  text-align: left;
  display: grid;
  gap: 32px;
}
.final .h-display { font-size: clamp(48px, 9vw, 160px); }

/* =====================================================================
   KILLSWITCH DEMO
   ===================================================================== */
.ks-demo { width: min(100%, 400px); justify-self: center; }
.ks-screen { aspect-ratio: 9 / 16; position: relative; overflow: hidden; background: #0d0d10; }
.ks-app {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
}
.ks-app-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3);
}
.ks-feed {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  overscroll-behavior: contain;
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 12px;
}
.ks-feed::-webkit-scrollbar { display: none; }
.ks-post { border: 1px solid var(--line); background: var(--bg-2); }
.ks-post .who { display: flex; align-items: center; gap: 8px; padding: 10px; }
.ks-post .av { width: 22px; height: 22px; background: var(--line-2); }
.ks-post .nm { height: 6px; width: 38%; background: var(--line-2); }
.ks-post .media { aspect-ratio: 4 / 5; background: linear-gradient(135deg, #17171c, #1e1e24); position: relative; }
.ks-post .media::after { content: attr(data-n); position: absolute; right: 10px; bottom: 8px; font-size: 10px; color: var(--fg-3); letter-spacing: 0.1em; }
.ks-post .ln { height: 6px; background: var(--line); margin: 10px; }
.ks-post .ln.s { width: 55%; }
.ks-hud {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: grid; gap: 6px;
  padding: 10px 12px;
  background: rgba(10, 10, 11, 0.9);
  border: 1px solid var(--line-2);
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  pointer-events: none;
}
.ks-hud .row { display: flex; justify-content: space-between; color: var(--fg-2); }
.ks-hud .row b { color: var(--fg); font-weight: 500; }
.ks-meter { height: 4px; background: var(--line); position: relative; overflow: hidden; }
.ks-meter i { position: absolute; inset: 0; background: var(--killswitch); transform-origin: left; transform: scaleX(0); transition: transform 180ms var(--ease-out); }

.ks-block {
  position: absolute; inset: 0;
  background: var(--killswitch);
  color: #140302;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition: opacity 180ms var(--ease-out), transform 260ms var(--ease-out), visibility 0s linear 260ms;
}
.ks-block.on { opacity: 1; visibility: visible; transform: none; transition: opacity 180ms var(--ease-out), transform 260ms var(--ease-out); }
.ks-block .t { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.ks-block .big { font-family: var(--sans); font-stretch: 105%; font-weight: 800; font-size: 34px; line-height: 0.88; letter-spacing: -0.04em; text-transform: uppercase; }
.ks-block .count { font-family: var(--sans); font-stretch: 125%; font-weight: 800; font-size: 88px; line-height: 0.8; letter-spacing: -0.05em; }
.ks-block .bar { height: 4px; background: rgba(20, 3, 2, 0.25); position: relative; overflow: hidden; }
.ks-block .bar i { position: absolute; inset: 0; background: #140302; transform-origin: left; transform: scaleX(0); }
.ks-block.on .bar i { animation: drain 3s linear forwards; }
@keyframes drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.ks-note { margin-top: 12px; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); display: flex; justify-content: space-between; gap: 12px; }

.perm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(48px, 6vw, 80px);
}
.perm > div { background: var(--bg); padding: clamp(24px, 3vw, 44px); display: grid; gap: 18px; align-content: start; }
.perm code { font-family: var(--mono); font-size: 12px; color: var(--acc); }
.perm ul { list-style: none; display: grid; gap: 10px; }
.perm li { color: var(--fg-2); font-size: 13.5px; padding-left: 22px; position: relative; }
.perm li::before { content: '>'; position: absolute; left: 0; color: var(--fg-3); }
.perm li.no::before { content: 'x'; color: var(--acc); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}

/* =====================================================================
   LEGAL DOCUMENTS
   ===================================================================== */
.doc-head {
  padding-top: calc(var(--nav-h) + clamp(48px, 8vh, 96px));
  padding-bottom: clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}
.doc-head h1 { font-size: clamp(40px, 6.4vw, 104px); margin-top: 24px; }
.doc-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, max-content));
  gap: 8px 48px;
  margin-top: 40px;
}
.doc-meta dt { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }
.doc-meta dd { font-size: 13px; }

.doc {
  display: grid;
  grid-template-columns: minmax(200px, 3fr) minmax(0, 8fr);
  gap: clamp(32px, 5vw, 96px);
  padding-block: clamp(48px, 6vw, 88px) clamp(80px, 10vw, 140px);
}
.toc { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; }
.toc ol { list-style: none; display: grid; gap: 2px; counter-reset: toc; border-left: 1px solid var(--line); }
.toc li { counter-increment: toc; }
.toc a {
  display: flex;
  gap: 12px;
  padding: 6px 0 6px 16px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  text-decoration: none;
  font-size: 12px;
  color: var(--fg-3);
  transition: color 160ms ease, border-color 160ms ease;
}
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--fg-3); opacity: 0.7; }
.toc a.on { color: var(--fg); border-left-color: var(--acc); }
@media (hover: hover) and (pointer: fine) { .toc a:hover { color: var(--fg); } }
.toc .back { display: inline-block; margin-top: 28px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-2); }

.prose { max-width: 72ch; counter-reset: sec; }
.prose section { padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line); counter-increment: sec; }
.prose section:last-child { border-bottom: 0; margin-bottom: 0; }
.prose h2 {
  font-family: var(--sans);
  font-stretch: 118%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1;
  margin-bottom: 24px;
  display: flex;
  gap: 16px;
  align-items: baseline;
}
.prose h2::before { content: counter(sec, decimal-leading-zero); font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; color: var(--acc); transform: translateY(-4px); }
.prose h3 { font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg); margin: 28px 0 10px; }
.prose p, .prose li { color: var(--fg-2); font-size: 14.5px; line-height: 1.75; }
.prose p + p { margin-top: 14px; }
.prose strong { color: var(--fg); font-weight: 500; }
.prose ul { list-style: none; margin: 14px 0; display: grid; gap: 8px; }
.prose ul li { padding-left: 22px; position: relative; }
.prose ul li::before { content: '>'; position: absolute; left: 0; color: var(--acc); }
.prose a { color: var(--fg); }
.prose code { font-family: var(--mono); font-size: 0.92em; color: var(--fg); background: var(--bg-3); padding: 1px 5px; }

.note {
  margin: 20px 0;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--acc);
  background: var(--acc-soft);
  padding: 16px 18px;
  font-size: 13.5px;
  color: var(--fg);
}
.note b { color: var(--acc); font-weight: 700; letter-spacing: 0.1em; margin-right: 8px; }
.note--warn { border-left-color: #ffb020; background: rgba(255, 176, 32, 0.07); }
.note--warn b { color: #ffb020; }

.table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 13px;
}
.table th, .table td { text-align: left; padding: 12px 14px; border: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); background: var(--bg-2); }
.table td { color: var(--fg-2); }
.table td:first-child { color: var(--fg); }
.table td:first-child small { display: block; color: var(--acc); font-size: 10.5px; letter-spacing: 0.12em; }

.rights { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 18px 0; }
.rights > div { background: var(--bg); padding: 16px; }
.rights b { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--acc); font-weight: 700; margin-bottom: 6px; }
.rights p { font-size: 13.5px; }

.mail-cta { margin-top: 20px; }

.translation-note { font-size: 12px; color: var(--fg-3); border: 1px dashed var(--line-2); padding: 12px 14px; margin-bottom: 40px; }

/* =====================================================================
   404
   ===================================================================== */
.nf { min-height: 100dvh; display: grid; place-items: center; padding: var(--nav-h) var(--gutter) 40px; }
.nf .h-display { font-size: clamp(96px, 22vw, 320px); line-height: 0.8; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
.split .h2, .gauss .h2 { font-size: clamp(34px, 4.2vw, 68px); }

@media (max-width: 1080px) {
  .hero-grid, .p-hero-grid, .gauss, .split { grid-template-columns: minmax(0, 1fr); }
  .galton { max-width: 560px; }
  .galton .hud-in { aspect-ratio: 5 / 4; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .app-visual { border-left: 0; border-top: 1px solid var(--line); min-height: 420px; }
  .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail--3 { grid-template-columns: 1fr; }
  .rail > li { min-height: 240px; }
  .bento .c-8, .bento .c-7, .bento .c-6, .bento .c-5, .bento .c-4, .bento .c-3 { grid-column: span 6; }
  .bento .r-2 { grid-row: span 1; }
  .principle:nth-child(n) { grid-column: span 6; }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; }
  .p-hero { min-height: 0; }
  .phone-shot { width: min(100%, 380px); }
}

@media (max-width: 767px) {
  body { font-size: 14px; }
  .hero { min-height: 0; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .rail { grid-template-columns: 1fr; }
  .rail > li { min-height: 0; gap: 24px; }
  .bento { grid-template-columns: 1fr; }
  .bento .c-8, .bento .c-7, .bento .c-6, .bento .c-5, .bento .c-4, .bento .c-3 { grid-column: auto; }
  .cell { min-height: 200px; }
  .tall { min-height: 420px; }
  .principles { grid-template-columns: 1fr; }
  .principle:nth-child(n) { grid-column: auto; min-height: 240px; }
  .contact-grid { grid-template-columns: 1fr; }
  .plus, .perm { grid-template-columns: 1fr; }
  .plus > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .app-specs { grid-template-columns: 1fr 1fr; }
  .app-visual { min-height: 380px; }
  .doc-meta { grid-template-columns: 1fr 1fr; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table thead { display: none; }
  .table tr { border: 1px solid var(--line); margin-bottom: -1px; }
  .table td { border: 0; padding: 8px 14px; }
  .table td:first-child { padding-top: 14px; }
  .table td:last-child { padding-bottom: 14px; }
  .btn-row .btn { flex: 1 1 auto; justify-content: space-between; }
  .gauss-read { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 520px) {
  .h-display, .h2, .principle h3, .rail h3, .stat .n, .contact-mail, .final .h-display { font-stretch: 100%; }
  .h2 { font-size: clamp(30px, 9.4vw, 44px); }
  .p-hero h1 { font-size: 9.4vw; }
  .team .btn > .t { padding: 0 12px; }
  .team .btn > .g { display: none; }
  .topbar .wrap { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* skip link */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--fg); color: var(--bg); padding: 10px 14px; font-size: 12px; text-decoration: none; }
.skip:focus { top: 12px; }
.sheet-foot .lang { align-self: flex-start; }

/* =====================================================================
   PHONE / TOUCH OPTIMISATION
   ===================================================================== */
html { -webkit-tap-highlight-color: transparent; }
.topbar { padding-top: env(safe-area-inset-top); height: calc(var(--nav-h) + env(safe-area-inset-top)); }
.wrap { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.section, .footer { content-visibility: auto; contain-intrinsic-size: auto 900px; }

@media (hover: none) {
  /* cheaper texture on phones: no blend modes, no noise layer */
  .crt { mix-blend-mode: normal; background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0, 0, 0, 0.1) 2px 3px); }
  .crt::after { display: none; }
  .strip-ctrl { display: none; }
  .rv [data-reveal] { filter: none !important; }
}

@media (max-width: 767px) {
  .sheet .lang a { padding: 12px 20px; font-size: 13px; }
  .sheet { padding-bottom: max(40px, env(safe-area-inset-bottom)); }
  .team .btn { min-height: 40px; }
  .menu-btn { width: 44px; height: 44px; }
  .menu-btn span { left: 12px; right: 12px; }
  .menu-btn span:nth-child(1) { top: 16px; }
  .menu-btn span:nth-child(2) { top: 21px; }
  .menu-btn span:nth-child(3) { top: 26px; }
  .strip { grid-auto-columns: 62vw; gap: 12px; }
  .galton .hud-in { aspect-ratio: 1 / 1; }
  .ks-screen { aspect-ratio: 4 / 5; }
  input[type="range"] { height: 44px; }
  .btn { min-height: 52px; }
  .toc { display: none; }
  .foot-grid a, .legal-links a { padding-block: 4px; }
}
.galton-foot > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* =====================================================================
   BADSECTOR
   Palette from the app's TELEMETRY theme: ICE phosphor on the studio
   blacks, trace red for a hit, the board's own digit colours.
   ===================================================================== */
.theme-badsector {
  --bs-covered: #1c1b23;
  --bs-covered-hi: #26252f;
  --bs-open: #0d0d0f;
  --bs-d1: #5aa9ff; --bs-d2: #52d68a; --bs-d3: #ff6b6b; --bs-d4: #b08cff;
  --bs-d5: #ffa94d; --bs-d6: #3ccfc4; --bs-d7: #ecebe6; --bs-d8: #8a8983;
}
.bs-mark { width: 48px; height: 48px; flex: none; }

/* --- home card: three worlds fanned out --- */
.bs-fan { position: absolute; inset: 0; display: grid; place-items: center; }
.bs-fan::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
  mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent 80%);
}
.bs-fan img {
  position: absolute;
  inset: auto;
  width: min(36%, 210px);
  height: auto;
  aspect-ratio: 720 / 1552;
  object-fit: cover;
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  transition: transform 900ms var(--ease-out);
}
.bs-fan img:nth-child(1) { transform: translateX(-62%) rotate(-7deg) scale(0.9); }
.bs-fan img:nth-child(2) { transform: translateX(62%) rotate(7deg) scale(0.9); }
.bs-fan img:nth-child(3) { z-index: 1; border-color: var(--acc); }
@media (hover: hover) and (pointer: fine) {
  .app:hover .bs-fan img:nth-child(1) { transform: translateX(-78%) rotate(-10deg) scale(0.9); }
  .app:hover .bs-fan img:nth-child(2) { transform: translateX(78%) rotate(10deg) scale(0.9); }
  .app:hover .bs-fan img:nth-child(3) { transform: translateY(-2%); }
}

/* --- hero: the boot board --- */
.bs-boot { width: 100%; justify-self: center; max-width: 620px; }
.bs-boot .hud-in { display: flex; flex-direction: column; }
.bs-boot canvas { width: 100%; aspect-ratio: 25 / 17; cursor: crosshair; }
.bs-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 12px; border-top: 1px solid var(--line); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); }
.bs-foot button { color: var(--fg-2); letter-spacing: 0.12em; text-transform: uppercase; font-size: 10.5px; padding: 4px 0; white-space: nowrap; transition: color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .bs-foot button:hover { color: var(--acc); } }

/* --- playable sector --- */
.bs-play { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.bs-play .h2 { font-size: clamp(34px, 4.2vw, 68px); }
.bs-keys { margin-top: 32px; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.bs-keys > div { background: var(--bg); display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 16px; padding: 12px 16px; font-size: 13px; }
.bs-keys dt { color: var(--acc); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; padding-top: 2px; }
.bs-keys dd { color: var(--fg-2); }

.bs-demo { width: min(100%, 600px); justify-self: center; }
.bs-hud { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); }
.bs-cnt { border: 1px solid var(--line-2); background: var(--bg-3); padding: 6px 10px; display: grid; }
.bs-cnt small { font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-3); }
.bs-cnt b { font-family: var(--sans); font-stretch: 112%; font-weight: 800; font-size: 24px; line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.bs-cnt b i { font-style: normal; font-size: 0.6em; color: var(--fg-3); }
.bs-levels { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.bs-chip { border: 1px solid var(--line-2); padding: 7px 10px; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-2); min-height: 36px; transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease; }
.bs-chip[aria-pressed="true"] { border-color: var(--acc); color: var(--acc); background: var(--acc-soft); }
@media (hover: hover) and (pointer: fine) { .bs-chip:hover { color: var(--fg); border-color: var(--fg-3); } }
.bs-hud .bs-chip { min-height: 0; align-self: stretch; padding: 0 14px; }

.bs-stage { position: relative; padding: clamp(10px, 2vw, 18px); background: #0b0b0d; }
.bs-board {
  --w: 9;
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(var(--w), minmax(0, 1fr));
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.bs-cell {
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  background: var(--bs-covered);
  box-shadow: inset 0 0 0 1px #0b0b0d, inset 0 3px 0 rgba(255, 255, 255, 0.06);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  font-size: calc(100cqi / var(--w) * 0.5);
  line-height: 1;
  color: var(--fg);
  transition: background-color 160ms ease var(--d, 0ms);
  outline-offset: -2px;
}
@media (hover: hover) and (pointer: fine) {
  .bs-board:not(.done) .bs-cell:not(.o):hover { background: var(--bs-covered-hi); }
}
.bs-cell.o { background: var(--bs-open); box-shadow: inset 0 0 0 1px #0b0b0d; cursor: default; }
.bs-cell.o span { animation: bsPop 280ms var(--ease-out) var(--d, 0ms) both; }
@keyframes bsPop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: none; } }
.bs-cell[data-n="1"] { color: var(--bs-d1); } .bs-cell[data-n="2"] { color: var(--bs-d2); }
.bs-cell[data-n="3"] { color: var(--bs-d3); } .bs-cell[data-n="4"] { color: var(--bs-d4); }
.bs-cell[data-n="5"] { color: var(--bs-d5); } .bs-cell[data-n="6"] { color: var(--bs-d6); }
.bs-cell[data-n="7"] { color: var(--bs-d7); } .bs-cell[data-n="8"] { color: var(--bs-d8); }
/* marker: corner brackets and a core, like the app */
.bs-cell.f::before {
  content: '';
  position: absolute; inset: 24%;
  --c: var(--acc);
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / 34% 2px no-repeat, linear-gradient(var(--c), var(--c)) 0 0 / 2px 34% no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / 34% 2px no-repeat, linear-gradient(var(--c), var(--c)) 100% 0 / 2px 34% no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / 34% 2px no-repeat, linear-gradient(var(--c), var(--c)) 0 100% / 2px 34% no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / 34% 2px no-repeat, linear-gradient(var(--c), var(--c)) 100% 100% / 2px 34% no-repeat,
    linear-gradient(var(--c), var(--c)) 50% 50% / 30% 30% no-repeat;
  animation: bsPop 200ms var(--ease-out) both;
}
.bs-cell.start::after { content: ''; position: absolute; inset: 10%; border: 2px solid var(--acc); animation: blink 1.6s steps(1) infinite; }
.bs-cell.hint::after { content: ''; position: absolute; inset: 6%; border: 2px solid var(--fg); box-shadow: 0 0 18px rgba(236, 235, 230, 0.35); }
.bs-cell.hint-src { box-shadow: inset 0 0 0 2px var(--fg-3); }
/* ICE shown at the end */
.bs-cell.ice::before {
  content: '';
  position: absolute; inset: 30%;
  background: var(--badsector-2);
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(255, 59, 92, 0.55);
  animation: bsPop 260ms var(--ease-out) var(--d, 0ms) both;
}
.bs-cell.ice.win::before { background: var(--acc); box-shadow: 0 0 12px rgba(179, 157, 255, 0.5); }
.bs-cell.boom { background: var(--badsector-2); }
.bs-cell.boom::before { background: #140306; box-shadow: none; }
.bs-cell.bad::before { --c: var(--badsector-2); }
.bs-cell.bad::after { content: '\00d7'; position: absolute; color: var(--badsector-2); font-size: 1.3em; }

.bs-tool { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--line); }
.bs-seg { display: inline-flex; border: 1px solid var(--line-2); }
.bs-seg button { padding: 0 16px; min-height: 40px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); display: inline-flex; align-items: center; gap: 8px; transition: color 160ms ease, background-color 160ms ease; }
.bs-seg button i { width: 9px; height: 9px; border: 1.5px solid currentColor; display: inline-block; }
.bs-seg button + button i { background: currentColor; }
.bs-seg button[aria-pressed="true"] { color: var(--acc); background: var(--acc-soft); }
.bs-tool-r { display: flex; gap: 6px; }
.bs-tool-r button { min-height: 40px; padding: 0 12px; border: 1px solid var(--line-2); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-2); transition: color 160ms ease, border-color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .bs-tool-r button:hover { color: var(--fg); border-color: var(--fg-3); } }

.bs-null { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px; border-top: 1px solid var(--line); min-height: 74px; }
.bs-null canvas { width: 34px; height: 34px; image-rendering: pixelated; }
.bs-null small { display: block; color: var(--acc); font-size: 10px; letter-spacing: 0.14em; }
.bs-null p { font-size: 12.5px; line-height: 1.5; color: var(--fg); }

.bs-result {
  position: absolute;
  left: clamp(10px, 2vw, 18px); right: clamp(10px, 2vw, 18px); bottom: clamp(10px, 2vw, 18px);
  background: rgba(10, 10, 11, 0.94);
  border: 1px solid var(--acc);
  box-shadow: 0 0 0 6px rgba(10, 10, 11, 0.7), 0 0 40px var(--acc-soft);
  padding: clamp(14px, 2.4vw, 22px);
  display: grid;
  gap: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 220ms var(--ease-out), transform 320ms var(--ease-out), visibility 0s linear 320ms;
}
.bs-result.on { opacity: 1; visibility: visible; transform: none; transition: opacity 220ms var(--ease-out), transform 320ms var(--ease-out); }
.bs-result.lose { border-color: var(--badsector-2); box-shadow: 0 0 0 6px rgba(10, 10, 11, 0.7), 0 0 40px rgba(255, 59, 92, 0.12); }
.bs-result .rt { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); display: flex; justify-content: space-between; gap: 12px; }
.bs-result .rt b { color: var(--acc); font-weight: 500; border: 1px solid currentColor; padding: 1px 6px; white-space: nowrap; }
.bs-result.lose .rt b { color: var(--badsector-2); }
.bs-result .big { font-family: var(--sans); font-stretch: 112%; font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; line-height: 0.9; font-size: clamp(28px, 4.6vw, 48px); color: var(--acc); }
.bs-result.lose .big { color: var(--badsector-2); }
.bs-result dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.bs-result dl > div { background: var(--bg-2); padding: 8px 10px; }
.bs-result dt { font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }
.bs-result dd { font-family: var(--sans); font-stretch: 112%; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.bs-result .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.bs-code { font-size: 11px; letter-spacing: 0.08em; color: var(--fg-2); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bs-code b { color: var(--acc); font-weight: 500; }
.bs-code button { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-2); border-bottom: 1px solid var(--line-2); padding: 2px 0; }
.bs-result .btn { min-height: 42px; }

/* --- worlds strip: tall phone shots --- */
.strip--tall { grid-auto-columns: clamp(200px, 21vw, 300px); }
.strip--tall img { aspect-ratio: 720 / 1552; }
.strip figcaption span.w-tel, .deep figcaption span.w-tel { color: #5cf2ff; }
.strip figcaption span.w-holo { color: #b39dff; }
.strip figcaption span.w-sam, .deep figcaption span.w-sam { color: #f7e600; }

/* --- feature rows: phone + text --- */
.feat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); align-items: center; }
.feat + .feat { margin-top: clamp(72px, 10vw, 140px); }
.feat--rev > :first-child { order: 2; }
.feat .phone { width: min(100%, 360px); justify-self: center; position: relative; }
.feat .phone .hud-in { aspect-ratio: 720 / 1552; }
.feat .phone img { width: 100%; height: 100%; object-fit: cover; }
.feat .phone figcaption { display: flex; justify-content: space-between; margin-top: 12px; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); }
.feat .h2 { font-size: clamp(34px, 4.4vw, 72px); }
.feat .body { margin-top: 24px; }
.feat .readout { margin-top: 32px; }
.feat .k { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--acc); display: block; margin-bottom: 18px; }
.rules { margin-top: 28px; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.rules > div { background: var(--bg); padding: 16px 18px; display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 16px; }
.rules b { color: var(--acc); font-size: 11px; letter-spacing: 0.14em; font-weight: 700; padding-top: 2px; }
.rules p { color: var(--fg-2); font-size: 13.5px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: min(100%, 560px); justify-self: center; align-items: start; }
.duo .phone { width: 100%; }
.duo .phone:last-child { margin-top: 48px; }

/* --- the deep: four layers --- */
.deep { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(48px, 6vw, 80px); }
.deep figure { position: relative; }
.deep .frame { border: 1px solid var(--line); padding: 6px; background: var(--bg-2); position: relative; }
.deep img { width: 100%; height: auto; aspect-ratio: 720 / 1300; object-fit: cover; object-position: 50% 0; }
.deep figcaption { display: grid; gap: 4px; margin-top: 12px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.deep figcaption b { font-weight: 500; color: var(--fg); }
.deep figcaption span { color: var(--fg-3); }
.deep figure:last-child .frame { border-color: var(--badsector-2); }
.deep .depth { position: absolute; top: 14px; left: 14px; font-size: 10px; letter-spacing: 0.14em; background: rgba(10, 10, 11, 0.85); border: 1px solid var(--line-2); padding: 3px 7px; color: var(--fg-2); }
@media (prefers-reduced-motion: no-preference) {
  .deep figure:last-child.in .frame { animation: flat 3.2s steps(1) infinite 1.2s; }
}
@keyframes flat { 0%, 100% { border-color: var(--badsector-2); } 50% { border-color: var(--line); } }

/* --- modes list --- */
.modes { margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.modes > li { list-style: none; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 2fr); gap: 24px; align-items: baseline; padding: clamp(18px, 2.2vw, 28px) 0; border-bottom: 1px solid var(--line); transition: background-color 300ms ease, padding 300ms var(--ease-out); }
.modes h3 { font-family: var(--sans); font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; font-size: clamp(28px, 3.6vw, 56px); line-height: 0.95; }
.modes p { color: var(--fg-2); font-size: 13.5px; }
.modes .meta { text-align: right; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--acc); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .modes > li:hover { background: var(--bg-2); padding-inline: 16px; }
}

@media (max-width: 1080px) {
  .bs-play, .feat { grid-template-columns: minmax(0, 1fr); }
  .feat--rev > :first-child { order: 0; }
  .deep { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modes > li { grid-template-columns: minmax(0, 1fr) auto; }
  .modes > li p { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 767px) {
  .bs-hud { grid-template-columns: 1fr 1fr; }
  .bs-hud .bs-chip { grid-column: 1 / -1; min-height: 40px; }
  .bs-tool { flex-wrap: wrap; }
  .bs-seg { flex: 1 1 auto; }
  .bs-seg button { flex: 1; justify-content: center; }
  .bs-tool-r { flex: 1 1 auto; }
  .bs-tool-r button { flex: 1; }
  .bs-keys > div { grid-template-columns: 1fr; gap: 4px; }
  .bs-result dd { font-size: 16px; }
  .bs-fan img { width: min(40%, 190px); }
  .deep { gap: 12px; }
  .rules > div { grid-template-columns: 1fr; gap: 6px; }
  .modes .meta { font-size: 10px; }
  .strip--tall { grid-auto-columns: 58vw; }
  .duo .phone:last-child { margin-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .bs-cell.start::after { animation: none; }
}
