@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #07080c;
  --surface: #10121a;
  --text: #eef0f6;
  --muted: #a7adbe;
  --line: #2b2f3d;
  --cyan: #63e6e2;
  --amber: #ffd27a;
  --scan: linear-gradient(90deg, #2f7bff, #1fd6c9, #63e6e2);
  --foil: conic-gradient(from 210deg at 45% 55%, #63e6e2, #7c8cff, #2f7bff, #1fd6c9, #63e6e2);

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s6: 48px; --s8: 64px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; color: var(--text); font-family: var(--display);
  font-size: 1.0625rem; line-height: 1.55; overflow-wrap: anywhere;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(99, 230, 226, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 230, 226, .035) 1px, transparent 1px);
  background-size: 64px 64px;
}
h1, h2, h3 { font-weight: 500; line-height: 1.04; letter-spacing: -0.025em; margin: 0; overflow-wrap: normal; }
h1 { font-size: clamp(2.9rem, 10.5vw, 7.4rem); margin-top: var(--s1); }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); }
.h1--mid { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.h1--long { font-size: clamp(2.1rem, 5vw, 3.6rem); max-width: 22ch; }
h2 { font-size: clamp(2rem, 5vw, 3.6rem); margin-top: var(--s1); }
h3 { font-size: 1.4rem; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: inherit; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }
#main:focus { outline: none; }

.skip { position: fixed; top: 12px; left: 12px; z-index: 60; background: var(--text); color: var(--ink); padding: 10px 16px; transform: translateY(-200%); }
.skip:focus { transform: none; }
.wrap { max-width: 1400px; margin-inline: auto; padding-inline: var(--gutter); }
.label { font-family: var(--mono); font-size: .8125rem; letter-spacing: .02em; color: var(--muted); }
.lede { font-size: clamp(1.15rem, 2.2vw, 1.35rem); line-height: 1.4; max-width: 36ch; margin-top: var(--s3); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--line { border-top: 1px solid var(--line); }
.sec-head { margin-bottom: var(--s6); }

.scan-track { position: fixed; inset: 0 0 auto; height: 3px; z-index: 50; background: var(--line); }
.scan-track span { display: block; height: 100%; background: var(--scan); transform: scaleX(0); transform-origin: left; }

/* Header */
.header { position: sticky; top: 0; z-index: 40; background: rgba(7, 8, 12, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; padding-block: 8px; }
.brand__mark { border-radius: 6px; flex: none; }
.brand small { font-family: var(--mono); font-size: .75rem; font-weight: 400; letter-spacing: 0; color: var(--cyan); margin-left: 2px; }
.menu-toggle { display: none; min-height: 44px; min-width: 72px; padding: 0 14px; background: none; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
.js .menu-toggle { display: block; }
.nav__list { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; }
.nav a:hover { color: var(--cyan); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--cyan); }
.nav a.nav__cta { margin-left: 8px; padding: 0 16px; border: 1px solid var(--line); border-radius: 4px; }
.nav__readout { display: none; }

.nav__group { position: relative; }
.nav__group-trigger {
  display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 0 10px;
  background: none; border: 0; font: inherit; color: inherit; cursor: pointer;
}
.nav__group-trigger::after { content: "▾"; font-size: .65em; opacity: .65; }
.nav__group-trigger:hover, .nav__group-trigger.is-active { color: var(--cyan); }
.nav__submenu { list-style: none; margin: 0; padding: 0; }

@media (min-width: 1100px) {
  .nav__submenu {
    position: absolute; top: 100%; left: 0; min-width: 190px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 6px;
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: opacity .15s var(--ease), transform .15s var(--ease), visibility .15s; z-index: 10;
  }
  .nav__group:hover .nav__submenu, .nav__group:focus-within .nav__submenu { opacity: 1; visibility: visible; transform: none; }
  .nav__submenu a { min-height: 40px; padding: 0 10px; border-radius: 4px; white-space: nowrap; }
  .nav__submenu a:hover { background: var(--ink); }
}

@media (max-width: 1099px) {
  .js .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: var(--s2) var(--gutter) var(--s3);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .js .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s; }
  .js .nav__list { flex-direction: column; align-items: stretch; }
  .js .nav a { font-size: 1.5rem; }
  .js .nav a.nav__cta { margin: 8px 0 0; justify-content: center; font-size: 1.0625rem; }
  .header__row { flex-wrap: wrap; }
  html:not(.js) .nav { width: 100%; padding-bottom: 8px; }
  .nav__group-trigger { pointer-events: none; font-size: 1.0625rem; opacity: .7; min-height: 36px; }
  .nav__group-trigger::after { display: none; }
  .nav__submenu { padding-left: var(--s3); border-left: 1px solid var(--line); margin: 0 0 var(--s2); }
}
@media (min-width: 1100px) {
  .js .menu-toggle { display: none; }
  .nav { display: flex; align-items: center; }
}
@media (min-width: 1320px) { .nav__readout { display: inline; margin-right: 8px; min-width: 9ch; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 4px;
  border: 1px solid var(--text); background: var(--text); color: var(--ink);
  text-decoration: none; font-weight: 500; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s;
}
.btn:hover { transform: translateY(-2px); background: var(--cyan); border-color: var(--cyan); }
.btn--ghost { background: none; color: var(--text); }
.btn--ghost:hover { background: none; color: var(--cyan); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }

/* Hero */
.hero { padding-block: var(--s4) var(--s8); overflow: hidden; }
.hero__grid { display: grid; gap: var(--s4); }
.hero__copy, .hero__stage { min-width: 0; }
.specs { display: grid; gap: var(--s2); margin-top: var(--s4); padding-top: var(--s2); border-top: 1px solid var(--line); }
.specs dt { font-family: var(--mono); font-size: .8125rem; color: var(--muted); }
.specs dd { font-size: 1.125rem; }
@media (min-width: 560px) { .hero .specs { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); } }
@media (min-width: 960px) {
  .hero { padding-block: var(--s6); }
  .hero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; gap: var(--s6); }
  .hero__stage .stage__view { aspect-ratio: auto; height: min(62vh, 640px); min-height: 420px; }
}

/* 3D stage */
.stage { margin: 0; position: relative; }
.stage__frame { position: relative; border: 1px solid var(--line); background: rgba(16, 18, 26, .55); }
.stage__frame::before, .stage__frame::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid var(--cyan); pointer-events: none; z-index: 2; }
.stage__frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.stage__frame::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.stage__view { position: relative; aspect-ratio: 1 / 1; width: 100%; overflow: hidden; touch-action: pan-y; }
.stage__foil { position: absolute; inset: 20%; border-radius: 50%; background: var(--foil); filter: blur(1px); box-shadow: 0 0 80px rgba(99, 230, 226, .22); transition: opacity .6s var(--ease); }
.stage.is-live .stage__foil { opacity: 0; }
.stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; animation: stage-in .7s var(--ease) both; }
.stage__canvas.is-dragging { cursor: grabbing; }
@keyframes stage-in { from { opacity: 0; } to { opacity: 1; } }
.stage__labels { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.stage:not(.is-live) .stage__labels { display: none; }
.stage__labels span { position: absolute; left: 0; top: 0; font-family: var(--mono); font-size: .8125rem; padding: 1px 6px; background: rgba(7, 8, 12, .72); border-radius: 2px; }
.stage__labels [data-layer="0"] { color: var(--cyan); }
.stage__labels [data-layer="2"] { color: #c4b5fd; }
.stage__labels [data-layer="4"] { color: var(--amber); }
.hud { position: absolute; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: var(--s2); pointer-events: none; z-index: 2; }
.hud--top { top: 10px; }
.hud--bottom { bottom: 10px; }
.hud b { font-weight: 400; color: var(--cyan); }
.stage.is-fallback .hud--bottom, html:not(.js) .hud--bottom { display: none; }
.stage__note { display: none; margin-top: var(--s1); }
.stage.is-fallback .stage__note, html:not(.js) .stage__note { display: block; }
.stage.is-fallback .stage__controls { display: none; }
.stage__controls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1); margin-top: var(--s2); }
.stage__controls[hidden] { display: none; }
.chip, .finish span { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 4px; font-family: var(--mono); font-size: .8125rem; }
.chip { background: none; cursor: pointer; }
.chip:hover { border-color: var(--cyan); }
.finish { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.finish legend { float: left; margin-right: 8px; padding: 0; }
.finish label { position: relative; display: inline-flex; }
.finish input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.finish span { display: inline-flex; align-items: center; }
.finish input:checked + span { background: var(--text); color: var(--ink); border-color: var(--text); }
.finish input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* Modules */
.modules { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 720px) { .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .modules { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.module { background: var(--ink); padding: var(--s3); display: grid; gap: var(--s2); align-content: start; transition: background-color .2s; text-decoration: none; }
.module--flat { background: none; padding: 0; margin-top: var(--s4); }
.module:hover { background: var(--surface); }
.module dl { display: grid; gap: var(--s1); font-size: .9375rem; }
.module dl div { display: grid; grid-template-columns: 6ch minmax(0, 1fr); gap: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
.module dt { font-family: var(--mono); font-size: .8125rem; color: var(--cyan); }

@media (min-width: 1000px) { .modules--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.module__title { font-size: 1.4rem; letter-spacing: -0.015em; margin: 0; }
.module__title a { display: inline-flex; align-items: center; min-height: 32px; text-decoration: none; }
.module__title a:hover { color: var(--cyan); text-decoration: underline; text-underline-offset: 4px; }
.visit { display: inline-flex; align-items: center; min-height: 44px; }

/* Pipeline */
.pipe { display: grid; gap: 0; counter-reset: none; }
.pipe li { position: relative; padding: 0 0 var(--s3) var(--s4); border-left: 1px solid var(--line); }
.pipe li::before { content: ""; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; background: var(--ink); border: 1px solid var(--cyan); transition: background-color .3s; }
.pipe h3 { margin-top: 2px; }
.pipe p { color: var(--muted); font-size: .9375rem; margin-top: 4px; }
.pipe.is-in li::before { background: var(--cyan); }
.pipe li:nth-child(1)::before { transition-delay: .1s; } .pipe li:nth-child(2)::before { transition-delay: .25s; }
.pipe li:nth-child(3)::before { transition-delay: .4s; } .pipe li:nth-child(4)::before { transition-delay: .55s; }
.pipe li:nth-child(5)::before { transition-delay: .7s; } .pipe li:nth-child(6)::before { transition-delay: .85s; }
.pipe li:nth-child(7)::before { transition-delay: 1s; }
@media (min-width: 960px) {
  .pipe { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--s2); }
  .pipe li { padding: var(--s3) 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .pipe li::before { left: 0; top: -5px; }
  .pipe h3 { font-size: 1.25rem; }
}
.delivery { display: grid; gap: var(--s1); margin-top: var(--s6); padding-top: var(--s2); border-top: 1px solid var(--line); }
.delivery ul { display: flex; flex-wrap: wrap; gap: 4px 0; color: var(--text); }
.delivery li:not(:last-child)::after { content: "→"; margin: 0 10px; color: var(--cyan); }
@media (min-width: 960px) { .delivery { grid-template-columns: 120px minmax(0, 1fr); } }

/* Table */
.table-wrap { overflow-x: auto; }
.spec { width: 100%; border-collapse: collapse; }
.spec caption { text-align: left; padding-bottom: var(--s2); }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-top: 1px solid var(--line); font-weight: 400; }
.spec thead th { font-family: var(--mono); font-size: .8125rem; color: var(--muted); }
.spec tbody th { font-family: var(--mono); font-size: .875rem; color: var(--cyan); width: 34%; min-width: 150px; }

/* Page furniture */
.page-head { padding-block: clamp(48px, 8vw, 96px) var(--s6); }
.page-head .lede { max-width: 48ch; }
.section--tight { padding-bottom: clamp(56px, 8vw, 104px); }
.muted { color: var(--muted); }
.more { margin-top: var(--s4); }
.more a, .back, .pager a { display: inline-flex; align-items: center; min-height: 44px; }
.cta { display: grid; gap: var(--s1); }
.cta .btn-row { margin-top: var(--s2); }
.two-col { display: grid; gap: var(--s6); }
@media (min-width: 960px) { .two-col { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s8); } }
.specs--flat { margin-top: 0; align-self: start; }
.specs--flat a { display: inline-flex; align-items: center; min-height: 44px; }

.cards { display: grid; gap: var(--s3); }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; transition: border-color .2s, transform .2s var(--ease); }
.card:hover { border-color: var(--cyan); transform: translateY(-3px); }
.card .stage__frame { border: 0; background: none; }
.card .stage__frame::before, .card .stage__frame::after { display: none; }
.card__body { padding: var(--s3); display: grid; gap: var(--s1); }
.card__title { font-size: 1.5rem; margin: 0; }
.card__link { text-decoration: none; display: inline-flex; min-height: 24px; }
.card__link:hover { text-decoration: underline; text-underline-offset: 4px; }

.detail { display: grid; gap: var(--s4); padding-block: var(--s4) var(--s8); }
@media (min-width: 960px) { .detail { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--s6); align-items: start; } }
.notes { display: grid; gap: var(--s4); }
@media (min-width: 760px) { .notes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); } }
.notes h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: var(--s1); }
.notes--3 h3 { margin-bottom: var(--s1); }
.notes--3 { gap: var(--s4); }
.qs.qs--plain li { display: block; }
.qs.qs--plain li::before { content: none; }
.row h3 { margin: 0; }
.creds { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 560px) { .creds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .creds { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.creds li { background: var(--ink); padding: var(--s3); display: grid; gap: 4px; align-content: start; }
.creds strong { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.015em; }
.lede--flush { margin-top: 0; max-width: 44ch; }
.two-col .specs--flat { margin-top: var(--s3); }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); }

.rows { border-top: 1px solid var(--line); }
.row { display: grid; gap: 4px; padding-block: var(--s3); border-bottom: 1px solid var(--line); }
.row h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); margin: 0; }
.row h2 a { display: inline-flex; align-items: center; min-height: 32px; }
@media (min-width: 760px) { .row { grid-template-columns: 72px minmax(0, 5fr) minmax(0, 6fr); gap: var(--s3); align-items: baseline; } }

.flow { display: flex; flex-wrap: wrap; gap: 4px 0; color: var(--text); }
.flow li:not(:last-child)::after { content: "→"; margin: 0 10px; color: var(--cyan); }
.spec--3 tbody th { width: 22%; }
.spec td.mono { font-family: var(--mono); font-size: .875rem; color: var(--muted); }
.qs { counter-reset: q; border-top: 1px solid var(--line); }
.qs li { counter-increment: q; display: grid; grid-template-columns: 4ch minmax(0, 1fr); padding-block: 14px; border-bottom: 1px solid var(--line); }
.qs li::before { content: "Q" counter(q); font-family: var(--mono); font-size: .875rem; color: var(--cyan); }

.posts { border-top: 1px solid var(--line); }
.post { padding-block: var(--s3); border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.post h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0; }
.post a { text-decoration: none; display: inline-block; min-height: 24px; }
.post a:hover { color: var(--cyan); }
.article { padding-block: var(--s6) var(--s8); }
.article h1 { margin-bottom: var(--s4); }
.prose { max-width: 68ch; }
.prose > * + * { margin-top: var(--s2); }
.prose h2, .prose h3, .prose h4 { margin-top: var(--s4); font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.prose ul, .prose ol { padding-left: 1.2em; list-style: disc; }
.prose li + li { margin-top: 6px; }

.warn { color: var(--amber); }
.form { display: grid; gap: var(--s3); padding: var(--s4); background: var(--surface); border: 1px solid var(--line); }
.field { display: grid; gap: 6px; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field label { font-weight: 500; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; background: var(--ink); border: 1px solid #5d6478; border-radius: 4px; }
.field [aria-invalid="true"] { border-color: #ff9d9d; }
.field__error { color: #ffb4b4; font-size: .9375rem; }
.field__error[hidden] { display: none; }
.form__status:empty { display: none; }
.form__status { color: var(--cyan); }

.footer { border-top: 1px solid var(--line); padding-block: var(--s6) var(--s3); }
.footer__grid { display: grid; gap: var(--s4); }
@media (min-width: 560px) { .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer__grid > :first-child { grid-column: 1 / -1; } }
@media (min-width: 960px) { .footer__grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); } .footer__grid > :first-child { grid-column: auto; } }
.footer__heading { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text, inherit); margin-bottom: var(--s1); }
.footer__brand { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: var(--s1); }
.footer a { display: inline-flex; align-items: center; min-height: 40px; }
.footer__legal { margin-top: var(--s3); padding-top: var(--s2); border-top: 1px solid var(--line); }
.footer__consent { background: none; border: 0; padding: 0; min-height: 40px; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.footer__consent:hover { color: var(--cyan); }

/* Cookie consent banner */
.consent {
  position: fixed; z-index: 50; inset-inline-start: var(--s2); bottom: var(--s2);
  max-width: min(400px, calc(100vw - 2 * var(--s2)));
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45); font-size: .875rem;
}
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 180px; color: var(--muted); }
.consent a { display: inline-flex; align-items: center; min-height: 32px; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.consent__actions { display: flex; gap: 8px; }
.consent__btn { min-height: 40px; min-width: 40px; padding: 0 14px; border-radius: 4px; border: 1px solid var(--line); background: none; color: var(--text); cursor: pointer; font-size: .875rem; }
.consent__btn:hover { border-color: var(--cyan); color: var(--cyan); }
.consent__btn--yes { background: var(--text); border-color: var(--text); color: var(--ink); }
.consent__btn--yes:hover { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
}

/* Accessibility toolbar */
.a11y { position: fixed; right: var(--s3); bottom: var(--s3); z-index: 60; }
.a11y__toggle {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--cyan); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(0,0,0,.4);
}
.a11y__toggle:hover, .a11y__toggle[aria-expanded="true"] { background: var(--ink); border-color: var(--cyan); }
.a11y__panel {
  position: absolute; right: 0; bottom: 64px; width: 260px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: var(--s3); box-shadow: 0 12px 32px rgba(0,0,0,.5);
}
.a11y__panel .label { margin-bottom: var(--s2); }
.a11y__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: 9px 0; font-size: .9375rem; }
.a11y__toggle-row { cursor: pointer; border-top: 1px solid var(--line); }
.a11y__toggle-row input { width: 18px; height: 18px; accent-color: var(--cyan); }
.a11y__btns { display: flex; gap: 6px; }
.a11y__btns button {
  min-width: 34px; height: 34px; border-radius: 4px; border: 1px solid var(--line);
  background: var(--ink); color: var(--text); cursor: pointer; font-family: var(--display);
}
.a11y__btns button:hover { border-color: var(--cyan); color: var(--cyan); }
.a11y__reset { margin-top: var(--s2); width: 100%; min-height: 38px; border-radius: 4px; border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer; }
.a11y__reset:hover { color: var(--text); border-color: var(--text); }

html[data-a11y-size="lg"] { font-size: 112.5%; }
html[data-a11y-size="xl"] { font-size: 125%; }

html.a11y-contrast {
  --ink: #000000; --surface: #0c0c0c; --text: #ffffff; --muted: #d8d8d8; --line: #6b6b6b; --cyan: #7CF5F0;
}
html.a11y-contrast img, html.a11y-contrast .stage { filter: contrast(1.1); }

html.a11y-underline a:not(.btn):not(.nav__group-trigger):not(.brand) { text-decoration: underline; text-underline-offset: 3px; }

html.a11y-motion-off, html.a11y-motion-off * , html.a11y-motion-off *::before, html.a11y-motion-off *::after {
  animation-duration: .01ms !important; animation-iteration-count: 1 !important;
  transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important;
}
html.a11y-motion-off .reveal { opacity: 1; transform: none; }

html.a11y-dyslexia body, html.a11y-dyslexia input, html.a11y-dyslexia textarea, html.a11y-dyslexia button {
  font-family: Verdana, Arial, sans-serif !important; letter-spacing: .01em; line-height: 1.65;
}

/* Language switcher (header dropdown) */
.lang-switch__menu a { min-width: 24px; padding: 0 10px; justify-content: center; }
.lang-switch__menu a[aria-current] { color: var(--cyan); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1099px) { .lang-switch__menu { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); padding-left: 0; border-left: 0; } }

/* RTL (Arabic) */
html[dir="rtl"] { direction: rtl; text-align: right; }
html[dir="rtl"] .nav__list { direction: rtl; }
html[dir="rtl"] .nav a.nav__cta { margin-left: 0; margin-right: 8px; }
html[dir="rtl"] .btn-row, html[dir="rtl"] .footer__links { direction: rtl; }
html[dir="rtl"] .module dl div { grid-template-columns: minmax(0, 1fr) 6ch; }
html[dir="rtl"] .flow li:not(:last-child)::after { content: "←"; }
html[dir="rtl"] .pipe li { border-left: 0; border-right: 1px solid var(--line); padding: 0 var(--s4) var(--s3) 0; }
html[dir="rtl"] .pipe li::before { left: auto; right: -5px; }
@media (min-width: 900px) {
  html[dir="rtl"] .pipe li { border-right: 0; border-top: 1px solid var(--line); padding: var(--s3) 0 0; }
  html[dir="rtl"] .pipe li::before { right: 0; }
}
