@font-face { font-family: "Club Kufi"; src: url("fonts/NotoKufiArabic-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Club Kufi"; src: url("fonts/NotoKufiArabic-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Club Kufi"; src: url("fonts/NotoKufiArabic-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Club Sans"; src: url("fonts/IBMPlexSansArabic-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Club Sans"; src: url("fonts/IBMPlexSansArabic-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Club Sans"; src: url("fonts/IBMPlexSansArabic-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Club Sans"; src: url("fonts/IBMPlexSansArabic-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --night: #011417;
  --night-2: #02232a;
  --petrol: #04444d;
  --petrol-deep: #022e35;
  --petrol-mid: #0a5862;
  --teal: #0d7377;
  --teal-2: #12898e;
  --ice: #9be7e0;
  --silver: #c9ced0;
  --silver-2: #e9eced;
  --silver-dim: #9aa6aa;
  --red: #cb282d;
  --flag-black: #111314;

  --paper: #f4f3ee;
  --paper-2: #ebe9e1;
  --paper-3: #e2dfd5;
  --card: #fffefb;
  --ink: #0e1a1c;
  --ink-2: #27393c;
  --muted: #5b6869;
  --line: #dddad0;
  --line-2: #c8c4b8;

  --on-night: #eef3f3;
  --on-night-2: #a7bfc0;
  --on-night-3: #6f8f91;
  --night-line: rgba(233, 236, 237, .12);

  --ok: #187a4e;
  --ok-soft: #dcefe4;
  --part: #a3640b;
  --part-soft: #f6e9cf;
  --bad: #b3232a;
  --bad-soft: #f7e0df;
  --wait: #3d5d84;
  --wait-soft: #e1e8f1;

  --kufi: "Club Kufi", "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
  --sans: "Club Sans", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gut: clamp(18px, 4vw, 48px);
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 30px;

  --shadow-1: 0 1px 2px rgba(14, 26, 28, .06), 0 4px 14px -6px rgba(14, 26, 28, .12);
  --shadow-2: 0 2px 6px rgba(14, 26, 28, .07), 0 24px 50px -22px rgba(2, 46, 53, .38);
  --shadow-3: 0 2px 4px rgba(1, 20, 23, .2), 0 40px 80px -30px rgba(1, 20, 23, .7);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --top: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.9 var(--sans);
  font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--teal-2); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--ice); color: var(--night); }
h1, h2, h3, h4 { margin: 0; font-family: var(--kufi); font-weight: 800; line-height: 1.25; letter-spacing: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.num, .tnum { font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.mono { font-family: var(--mono); font-size: .88em; letter-spacing: 0; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - var(--gut) * 2, var(--wrap)); margin-inline: auto; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }

/* grain over the night bands */
.night {
  position: relative;
  background: var(--night);
  color: var(--on-night);
  isolation: isolate;
}
.night::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .5;
  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='.85' 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 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* flag stripe from the crest */
.stripe { display: flex; flex-direction: column; gap: 3px; width: 92px; }
.stripe i { display: block; height: 4px; border-radius: 2px; }
.stripe i:nth-child(1) { background: var(--red); }
.stripe i:nth-child(2) { background: #f4f5f5; }
.stripe i:nth-child(3) { background: var(--flag-black); box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.paper .stripe i:nth-child(2) { background: #fff; box-shadow: 0 0 0 1px var(--line); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 16px/1 var(--sans);
  text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-ice { background: var(--ice); color: var(--night); box-shadow: 0 10px 30px -12px rgba(155, 231, 224, .7); }
.btn-ice:hover { background: #b6f0ea; }
.btn-ghost { border-color: rgba(233, 236, 237, .28); color: var(--on-night); }
.btn-ghost:hover { border-color: var(--on-night); }
.btn-ink { background: var(--petrol-deep); color: #fff; }
.btn-ink:hover { background: var(--petrol); box-shadow: var(--shadow-2); }
.btn-line { border-color: var(--line-2); color: var(--ink); background: var(--card); }
.btn-line:hover { border-color: var(--ink); }
.btn .ico { width: 18px; height: 18px; }
.btn .go { transition: transform .35s var(--ease); }
.btn:hover .go { transform: translateX(-4px); }

/* status chips */
.st {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 11px 3px 10px; border-radius: 999px;
  font: 600 13px/1.6 var(--sans); white-space: nowrap;
}
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.st-ok { background: var(--ok-soft); color: var(--ok); }
.st-part { background: var(--part-soft); color: var(--part); }
.st-bad { background: var(--bad-soft); color: var(--bad); }
.st-wait { background: var(--wait-soft); color: var(--wait); }
.night .st-ok { background: rgba(98, 214, 156, .14); color: #7fe0ae; }
.night .st-part { background: rgba(242, 199, 126, .14); color: #f2c77e; }
.night .st-bad { background: rgba(255, 90, 98, .14); color: #ff8a90; }
.night .st-wait { background: rgba(150, 180, 220, .14); color: #a9c3e6; }
.st-ok.live::before { animation: live 2.4s var(--ease) infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 currentColor; } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }

/* top bar */
.topbar {
  position: fixed; inset-inline: 0; top: 0; z-index: 60;
  height: var(--top);
  display: flex; align-items: center; gap: 18px;
  padding-inline: var(--gut);
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(244, 243, 238, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-110%);
  transition: transform .6s var(--ease);
}
.topbar.on { transform: none; }
.topbar .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 15px/1.2 var(--kufi); }
.topbar .brand img { width: 32px; height: 32px; }
.topbar .here { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; overflow: hidden; }
.topbar .here b { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .here .n { font: 800 13px/1 var(--kufi); color: var(--teal); }
.topbar .acts { display: flex; gap: 8px; }
.topbar .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.topbar .bar { position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: transparent; }
.topbar .bar i { display: block; height: 100%; width: 100%; background: var(--teal); transform-origin: right center; transform: scaleX(var(--p, 0)); }

/* chapter menu */
.menu {
  position: fixed; inset: 0; z-index: 80;
  display: grid; grid-template-columns: minmax(0, 1fr) min(560px, 100%);
  visibility: hidden;
}
.menu.open { visibility: visible; }
.menu .scrim { background: rgba(1, 20, 23, .5); opacity: 0; transition: opacity .5s var(--ease); grid-column: 1 / -1; grid-row: 1; }
.menu.open .scrim { opacity: 1; }
.menu .panel {
  grid-column: 2; grid-row: 1; justify-self: end; width: 100%;
  background: var(--night); color: var(--on-night);
  overflow-y: auto; overscroll-behavior: contain;
  padding: 26px clamp(20px, 4vw, 40px) 40px;
  padding-top: calc(26px + env(safe-area-inset-top, 0px));
  transform: translateX(-104%);
  transition: transform .7s var(--ease);
}
[dir="rtl"] .menu { grid-template-columns: min(560px, 100%) minmax(0, 1fr); }
[dir="rtl"] .menu .panel { grid-column: 1; transform: translateX(104%); }
.menu.open .panel { transform: none; }
.menu .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.menu .head h2 { font-size: 20px; }
.menu .close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--night-line); background: none; display: grid; place-items: center; color: var(--on-night); }
.menu ol { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.menu li a {
  display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px;
  padding: 13px 4px; border-bottom: 1px solid var(--night-line);
  text-decoration: none; color: var(--on-night);
  transition: background-color .2s, padding .35s var(--ease);
}
.menu li a:hover { padding-inline-start: 12px; background: rgba(255,255,255,.03); }
.menu li .n { font: 800 22px/1 var(--kufi); color: var(--on-night-3); }
.menu li a:hover .n { color: var(--ice); }
.menu li .t { font: 600 17px/1.4 var(--sans); }
.menu li .c { font-size: 13px; color: var(--on-night-2); }

/* cover */
.cover {
  min-height: 100svh;
  display: grid; align-content: center;
  padding-block: calc(70px + env(safe-area-inset-top, 0px)) 120px;
  overflow: hidden;
}
.cover .lanes { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cover .lanes svg { position: absolute; inset-inline-end: -22vw; top: 50%; width: max(1100px, 92vw); height: auto; transform: translateY(-50%); }
.cover .lanes path, .cover .lanes circle { fill: none; stroke: rgba(201, 206, 208, .14); stroke-width: 1.4; }
.cover .lanes .hot { stroke: rgba(155, 231, 224, .5); stroke-width: 2; }
.cover .lanes .red { stroke: rgba(203, 40, 45, .75); stroke-width: 2.4; }
.cover-top {
  position: absolute; top: calc(22px + env(safe-area-inset-top, 0px)); inset-inline: var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 14px; color: var(--on-night-2);
}
.cover-top .who { display: flex; align-items: center; gap: 12px; }
.cover-top .who img { width: 40px; height: 40px; }
.cover-top .who b { display: block; color: var(--on-night); font: 700 15px/1.3 var(--kufi); }
.cover-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.cover .crest { width: min(100%, 420px); aspect-ratio: 1; justify-self: center; position: relative; }
.cover .crest svg { width: 100%; height: 100%; filter: drop-shadow(0 40px 60px rgba(0,0,0,.5)); }
.cover .crest .halo { position: absolute; inset: -14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(13, 115, 119, .38), transparent 70%); z-index: -1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 14px/1.4 var(--sans); color: var(--on-night-2);
  margin-bottom: 26px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.cover h1 { font-size: clamp(44px, 6.6vw, 104px); line-height: 1.12; }
.cover h1 .l2 { display: block; color: var(--silver); font-weight: 500; font-size: .62em; line-height: 1.35; margin-top: .25em; }
.cover .lede { margin-top: 28px; max-width: 40ch; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.9; color: var(--on-night-2); }
.cover .stripe { margin-top: 34px; }
.byline {
  margin-top: 40px;
  display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; align-items: center;
  padding: 18px 20px; max-width: 520px;
  border: 1px solid var(--night-line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
}
.byline .av {
  grid-row: span 3; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--petrol); color: var(--ice); font: 800 22px/1 var(--kufi);
  box-shadow: inset 0 0 0 2px rgba(201,206,208,.35);
}
.byline .k { font-size: 13px; color: var(--on-night-3); }
.byline b { font: 700 19px/1.4 var(--kufi); }
.byline .r { font-size: 14px; color: var(--on-night-2); line-height: 1.6; }
.cover .scroll-cue {
  position: absolute; bottom: 28px; inset-inline-start: var(--gut);
  display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--on-night-3);
}
.cover .scroll-cue i { width: 22px; height: 36px; border-radius: 12px; border: 1.5px solid var(--on-night-3); position: relative; }
.cover .scroll-cue i::after { content: ""; position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--ice); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 80%, 100% { transform: translateY(12px); opacity: 0; } }
.ticker {
  position: absolute; bottom: 0; inset-inline: 0;
  border-top: 1px solid var(--night-line);
  overflow: hidden; white-space: nowrap;
  font: 500 14px/1 var(--sans); color: var(--on-night-3);
  padding: 15px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker .track { display: inline-flex; gap: 40px; padding-inline-end: 40px; animation: tick 70s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: 40px; }
.ticker span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--petrol-mid); }
@keyframes tick { to { transform: translateX(50%); } }

/* section heads */
.sec { padding-block: clamp(80px, 11vw, 160px); position: relative; }
.sec.tight { padding-block: clamp(56px, 7vw, 100px); }
.kicker { display: flex; align-items: center; gap: 12px; font: 600 14px/1.4 var(--sans); color: var(--teal); margin-bottom: 18px; }
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.night .kicker { color: var(--ice); }
.h-xl { font-size: clamp(36px, 5vw, 72px); line-height: 1.2; }
.h-lg { font-size: clamp(30px, 3.8vw, 54px); line-height: 1.25; }
.h-md { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.35; }
.h-sm { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.45; font-weight: 700; }
.lede { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.9; color: var(--ink-2); max-width: 62ch; }
.night .lede { color: var(--on-night-2); }
.prose { max-width: 66ch; }
.prose p + p { margin-top: 1em; }
.prose strong { font-weight: 700; }
.head-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.head-row .lede { margin-top: 0; }

/* summary scoreboard */
.board {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
}
.board .cell { padding: 30px 26px 28px; border-inline-start: 1px solid var(--line); position: relative; }
.board .cell:first-child { border-inline-start: 0; padding-inline-start: 0; }
.board .v { font: 800 clamp(46px, 5.6vw, 84px)/1 var(--kufi); font-feature-settings: "tnum"; color: var(--petrol-deep); display: flex; align-items: baseline; gap: 6px; }
.board .v small { font-size: .38em; font-weight: 700; color: var(--teal); }
.board .l { margin-top: 14px; font: 600 16px/1.5 var(--sans); }
.board .d { margin-top: 4px; font-size: 14px; line-height: 1.7; color: var(--muted); }

.verdict {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px);
}
.meter { margin-top: 10px; }
.meter .bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--paper-3); gap: 3px; }
.meter .bar i { display: block; height: 100%; transform-origin: right; }
.meter .bar .ok { background: var(--ok); }
.meter .bar .part { background: #d39a3a; }
.meter .bar .bad { background: var(--bad); }
.meter .bar .wait { background: #7f9bbd; }
.meter .keys { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.meter .keys b { color: var(--ink); font-feature-settings: "tnum"; margin-inline-start: 4px; }
.meter .keys span { display: inline-flex; align-items: center; gap: 8px; }
.meter .keys span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.pull {
  font: 700 clamp(22px, 2.3vw, 31px)/1.6 var(--kufi);
  color: var(--petrol-deep);
  padding-inline-start: 26px; border-inline-start: 3px solid var(--red);
}
.pull small { display: block; margin-top: 14px; font: 500 15px/1.6 var(--sans); color: var(--muted); }

/* demo pass: credentials styled as a club access card */
.access { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.pass {
  position: relative; border-radius: 26px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(155, 231, 224, .16), transparent 55%),
    linear-gradient(160deg, var(--petrol) 0%, var(--petrol-deep) 55%, var(--night) 100%);
  color: var(--on-night);
  box-shadow: var(--shadow-3);
  padding: 26px 26px 22px;
  aspect-ratio: 1.58;
  display: flex; flex-direction: column;
  transform-style: preserve-3d;
}
.pass::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-radial-gradient(circle at 115% 120%, transparent 0 34px, rgba(233,236,237,.06) 34px 35.5px);
}
.pass .sheen { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.12) 48%, transparent 60%); transform: translateX(var(--sx, 120%)); transition: transform 1.2s var(--ease); }
.pass:hover .sheen { --sx: -120%; }
.pass .top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; }
.pass .top img { width: 52px; height: 52px; }
.pass .top .t { font: 700 15px/1.4 var(--kufi); }
.pass .top .t small { display: block; font: 500 12px/1.5 var(--sans); color: var(--on-night-2); }
.pass .mid { margin-top: auto; position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.pass .url { font: 600 clamp(15px, 1.6vw, 19px)/1.4 var(--mono); direction: ltr; color: #fff; word-break: break-all; }
.pass .lbl { font-size: 12px; color: var(--on-night-3); margin-bottom: 4px; }
.pass .qr { width: 92px; height: 92px; padding: 7px; background: #fff; border-radius: 12px; flex: none; }
.pass .qr svg { width: 100%; height: 100%; }
.pass .stripe { position: absolute; inset-inline-end: 26px; bottom: 22px; width: 64px; gap: 2px; }
.pass .stripe i { height: 3px; }
.creds { display: grid; gap: 10px; }
.cred {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line);
  transition: border-color .25s, box-shadow .35s var(--ease), transform .35s var(--ease);
}
.cred:hover { border-color: var(--line-2); box-shadow: var(--shadow-1); transform: translateY(-1px); }
.cred .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--paper-2); color: var(--petrol); }
.cred .ic .ico { width: 22px; height: 22px; }
.cred .who { font: 600 15px/1.5 var(--sans); }
.cred .who small { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.cred .keys { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.copy {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px dashed var(--line-2); background: var(--paper); border-radius: 8px;
  padding: 4px 10px; font: 600 13.5px/1.6 var(--mono); direction: ltr; color: var(--ink);
  transition: background-color .2s, border-color .2s;
}
.copy:hover { border-color: var(--teal); background: #fff; }
.copy .ico { width: 14px; height: 14px; color: var(--muted); }
.copy.done { border-style: solid; border-color: var(--ok); color: var(--ok); }
.note {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--r); font-size: 15px; line-height: 1.8;
  background: var(--wait-soft); color: #23405f;
}
.note .ico { margin-top: 5px; }
.note.warm { background: var(--part-soft); color: #5b3c0b; }

/* system map */
.map { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.zone {
  grid-column: span 4; position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 210px; padding: 22px 22px 18px;
  border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line);
  text-decoration: none;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.zone:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.zone.wide { grid-column: span 6; }
.zone .n { font: 800 13px/1 var(--kufi); color: var(--teal); }
.zone h3 { font-size: 21px; }
.zone p { font-size: 14.5px; line-height: 1.75; color: var(--muted); }
.zone .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; }
.zone .cnt { font: 800 28px/1 var(--kufi); font-feature-settings: "tnum"; color: var(--petrol-deep); }
.zone .cnt small { font: 500 13px/1 var(--sans); color: var(--muted); margin-inline-start: 4px; }
.zone .big-ic { position: absolute; inset-inline-end: -14px; top: -14px; width: 120px; height: 120px; color: var(--paper-2); transition: transform .8s var(--ease), color .4s; }
.zone:hover .big-ic { transform: rotate(-8deg) scale(1.06); color: var(--paper-3); }
.zone > * { position: relative; }
.zone.dark { background: var(--petrol-deep); color: var(--on-night); border-color: transparent; }
.zone.dark p { color: var(--on-night-2); }
.zone.dark .cnt { color: #fff; }
.zone.dark .n { color: var(--ice); }
.zone.dark .big-ic { color: rgba(255,255,255,.05); }

/* status mix bar */
.mix { display: flex; gap: 2px; height: 6px; border-radius: 6px; overflow: hidden; background: var(--paper-3); }
.mix i { display: block; height: 100%; }
.mix .ok { background: var(--ok); }
.mix .part { background: #d39a3a; }
.mix .wait { background: #7f9bbd; }
.mix .bad { background: var(--bad); }
.zone .mix { margin-top: 12px; }
.zone.dark .mix { background: rgba(255,255,255,.1); }
.opener .mix { height: 8px; background: rgba(255,255,255,.08); }
.opener .mix .ok { background: #3fb980; }
.mix-l { margin: 22px 0 10px; font-size: 13px; color: var(--on-night-3); }

/* chapter opener */
.opener { padding-block: clamp(90px, 12vw, 170px) clamp(70px, 9vw, 130px); overflow: hidden; }
.opener .big {
  position: absolute; inset-inline-start: -.06em; top: 50%; transform: translateY(-50%);
  font: 800 clamp(220px, 34vw, 520px)/.8 var(--kufi); font-feature-settings: "tnum";
  color: transparent; -webkit-text-stroke: 1.5px rgba(155, 231, 224, .16);
  z-index: -1; pointer-events: none; user-select: none;
}
.opener .inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px 72px; align-items: end; }
.opener h2 { font-size: clamp(40px, 6vw, 92px); line-height: 1.15; }
.opener .lede { margin-top: 24px; }
.opener .facts { display: grid; gap: 0; border-top: 1px solid var(--night-line); }
.opener .facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--night-line); }
.opener .facts dt { color: var(--on-night-2); font-size: 15px; }
.opener .facts dd { margin: 0; font: 800 26px/1 var(--kufi); font-feature-settings: "tnum"; }
.opener .lane { position: absolute; inset-inline: 0; bottom: 0; height: 6px; display: flex; gap: 0; }
.opener .lane i { flex: 1; }
.opener .lane i:nth-child(1) { background: var(--red); }
.opener .lane i:nth-child(2) { background: var(--silver-2); }
.opener .lane i:nth-child(3) { background: var(--flag-black); }

/* chapter body */
.ch { padding-block: clamp(64px, 8vw, 120px); }
.ch + .ch { padding-top: 0; }
.block + .block { margin-top: clamp(72px, 9vw, 130px); }
.block-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 40px; align-items: end; margin-bottom: 32px; }
.block-head .lede { margin-top: 12px; font-size: 18px; }

/* screen frame */
.frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-2);
  border: 1px solid var(--line);
}
.frame .chrome {
  display: flex; align-items: center; gap: 12px;
  height: 44px; padding-inline: 14px;
  background: var(--paper-2); border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.frame .chrome .addr {
  flex: 1; min-width: 0; height: 28px; border-radius: 8px; background: var(--card);
  display: flex; align-items: center; gap: 8px; padding-inline: 10px;
  direction: ltr; font: 500 12.5px/1 var(--mono); color: var(--ink-2);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-decoration: none;
  border: 1px solid var(--line);
  transition: border-color .2s, color .2s;
}
.frame .chrome .addr:hover { border-color: var(--teal); color: var(--teal); }
.frame .chrome .addr .host { color: var(--muted); }
.frame .chrome .open { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--teal); text-decoration: none; white-space: nowrap; }
.frame .chrome .open .ico { width: 16px; height: 16px; }

/* guided tour: sticky screen + steps */
.tour { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: clamp(24px, 3.4vw, 56px); align-items: start; }
.tour .stage { position: sticky; top: calc(var(--top) + 24px); }
.tour .view { position: relative; overflow: hidden; background: var(--paper-2); }
.tour .cam { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }
.tour .cam img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.tour .spot {
  position: absolute; border-radius: 10px; pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(1, 20, 23, .5);
  outline: 2px solid var(--ice);
  outline-offset: 4px;
  opacity: 0;
}
.tour .spot.bad { outline-color: #ff6a71; }
.tour .pin {
  position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  display: grid; place-items: center; font: 800 14px/1 var(--kufi);
  background: var(--ice); color: var(--night); box-shadow: 0 6px 16px rgba(0,0,0,.35);
  opacity: 0;
}
.tour .pin.bad { background: #ff6a71; color: #fff; }
.tour .steps { display: grid; gap: 0; padding-block: 8vh 30vh; }
.step {
  position: relative; padding: 26px 26px 26px 0; padding-inline-start: 62px;
  border-inline-start: 2px solid var(--line);
  transition: border-color .4s;
  min-height: 46vh;
}
.step:last-child { min-height: 0; }
.step .no {
  position: absolute; inset-inline-start: -17px; top: 24px;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper); border: 2px solid var(--line-2);
  font: 800 13px/1 var(--kufi); color: var(--muted);
  transition: background-color .4s, border-color .4s, color .4s, transform .5s var(--ease);
}
.step.on { border-color: var(--teal); }
.step.on .no { background: var(--teal); border-color: var(--teal); color: #fff; transform: scale(1.12); }
.step.bad.on { border-color: var(--bad); }
.step.bad.on .no { background: var(--bad); border-color: var(--bad); }
.step h4 { font-size: 21px; line-height: 1.45; margin-bottom: 10px; }
.step p { color: var(--ink-2); font-size: 16.5px; line-height: 1.85; }
.step .st { margin-bottom: 12px; }
.step ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.step li { display: flex; gap: 10px; font-size: 15.5px; line-height: 1.75; color: var(--ink-2); }
.step li .ico { margin-top: 6px; width: 16px; height: 16px; color: var(--ok); }
.step li.wait-it .ico { color: var(--wait); }
.step .crop { display: none; }

.tour.ptour { grid-template-columns: minmax(250px, 330px) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); }
.tour.ptour .stage .phone { flex: none; width: 100%; }
.tour.ptour .view { height: 100%; }
.tour.ptour .spot { border-radius: 14px; }
.tour.ptour .step .crop { max-width: 360px; }

/* zoom crops: thumbnail with the region marked, then the enlarged part */
.loupes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px); }
.loupe { display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.loupe.full { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-rows: none; }
.loupe .pic { position: relative; background: var(--paper-2); padding: 22px; display: grid; place-items: center; overflow: hidden; }
.loupe .pic .zoomed { position: relative; z-index: 1; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-2); border: 1px solid var(--line); background: #fff; max-height: 520px; }
.loupe .pic .zoomed img { width: 100%; height: auto; }
.loupe .thumb { position: absolute; inset-inline-end: 14px; bottom: 14px; z-index: 2; width: 132px; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 20px rgba(1,20,23,.28); border: 2px solid #fff; background: #fff; }
.loupe .thumb img { width: 100%; }
.loupe .thumb i { position: absolute; border: 2px solid var(--red); border-radius: 3px; box-shadow: 0 0 0 999px rgba(1,20,23,.35); }
.loupe .txt { padding: 24px 26px 26px; display: grid; gap: 14px; align-content: start; }
.loupe .txt h4 { font-size: 21px; line-height: 1.45; }
.loupe .txt p { font-size: 15.5px; line-height: 1.85; color: var(--ink-2); }
.yn { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.yn li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15px; line-height: 1.75; }
.yn li .ico { width: 18px; height: 18px; margin-top: 4px; }
.yn .y .ico { color: var(--ok); }
.yn .n .ico { color: var(--bad); }
.yn .w .ico { color: var(--wait); }

/* works / does not ledger */
.ledger { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.ledger > div { padding: clamp(22px, 3vw, 36px); }
.ledger > div + div { border-inline-start: 1px solid var(--line); background: #fbf9f4; }
.ledger h4 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 18px; }
.ledger h4 .ico { width: 24px; height: 24px; }
.ledger .ok h4 { color: var(--ok); }
.ledger .wt h4 { color: var(--wait); }
.ledger.solo { grid-template-columns: minmax(0, 1fr); }
.ledger.solo ul { columns: 2; column-gap: 48px; display: block; }
.ledger.solo li { break-inside: avoid; margin-bottom: 12px; }
.ledger ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.ledger li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; font-size: 15.5px; line-height: 1.8; color: var(--ink-2); }
.ledger li::before { content: ""; width: 7px; height: 7px; margin-top: 11px; border-radius: 2px; background: var(--ok); transform: rotate(45deg); justify-self: center; }
.ledger .wt li::before { background: #7f9bbd; }
.ledger li b { color: var(--ink); font-weight: 600; }

/* try it yourself */
.try {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: center;
  padding: clamp(26px, 3.4vw, 44px);
  border-radius: var(--r-xl); background: var(--petrol-deep); color: var(--on-night);
}
.try::before { content: ""; position: absolute; inset-inline-end: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; border: 1px solid rgba(155,231,224,.14); box-shadow: 0 0 0 40px rgba(155,231,224,.03), 0 0 0 80px rgba(155,231,224,.02); pointer-events: none; }
.try .k { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1.4 var(--sans); color: var(--ice); margin-bottom: 10px; }
.try h4 { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.4; }
.try ol { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.try li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 12px; font-size: 16px; line-height: 1.75; color: var(--on-night-2); }
.try li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(155,231,224,.12); color: var(--ice); font: 800 13px/1 var(--kufi); margin-top: 2px; }
.try li b { color: var(--on-night); font-weight: 600; }
.try .side { display: grid; gap: 12px; justify-items: stretch; position: relative; }
.try .who { font-size: 13px; color: var(--on-night-3); text-align: center; }

/* every screen of the chapter */
.screens { border-top: 1px solid var(--line-2); }
.screens summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0; font: 700 19px/1.4 var(--kufi);
}
.screens summary::-webkit-details-marker { display: none; }
.screens summary .c { font: 500 14px/1 var(--sans); color: var(--muted); margin-inline-start: 10px; }
.screens summary .pm { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: transform .5s var(--ease), background-color .3s; flex: none; }
.screens[open] summary .pm { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.screens .list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; padding-bottom: 28px; }
.scr {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px dashed var(--line); text-decoration: none;
}
.scr .t { font: 600 15px/1.5 var(--sans); }
.scr .u { grid-column: 1; font: 500 12px/1.4 var(--mono); color: var(--muted); direction: ltr; text-align: end; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scr .s { grid-row: span 2; grid-column: 2; }
.scr .s i { display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.scr .s i.part { background: #d39a3a; }
.scr .s i.bad { background: var(--bad); }
.scr .s i.wait { background: #7f9bbd; }
.scr:hover .t { color: var(--teal); }
.scr .note-line { grid-column: 1 / -1; font-size: 13px; color: var(--muted); line-height: 1.6; }

/* phones */
.phones { display: flex; justify-content: center; align-items: flex-start; gap: clamp(14px, 2.6vw, 40px); padding-block: 20px; }
.phone {
  flex: 0 1 280px; position: relative;
  border-radius: 46px; padding: 11px; background: #0b1214;
  box-shadow: inset 0 0 0 1.5px #2a3437, inset 0 0 0 4px #0b1214, 0 50px 90px -40px rgba(1,20,23,.65), 0 12px 30px -10px rgba(1,20,23,.35);
}
.phone .scr-in { border-radius: 36px; overflow: hidden; aspect-ratio: 390 / 844; background: #000; position: relative; }
.phone .scr-in img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone .island { position: absolute; top: 20px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #000; z-index: 2; }
.phone figcaption { position: absolute; top: calc(100% + 18px); inset-inline: 0; text-align: center; font: 600 14.5px/1.5 var(--sans); color: var(--ink-2); }
.phone figcaption small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.night .phone figcaption { color: var(--on-night); }
.night .phone figcaption small { color: var(--on-night-2); }
.phones .phone:nth-child(2) { margin-top: 70px; }
.phones .phone:nth-child(4) { margin-top: 40px; }
.phones-wrap { padding-bottom: 80px; }

/* cycles */
.cycles { display: grid; gap: 18px; }
.cycle { border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); padding: 26px clamp(20px, 3vw, 34px) 28px; }
.cycle .ch-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.cycle h4 { font-size: 20px; }
.cycle .ch-h small { display: block; margin-top: 2px; color: var(--muted); font: 400 14px/1.6 var(--sans); }
.stations { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
.stations .rail { position: absolute; inset-inline: 22px; top: 21px; height: 3px; background: var(--paper-3); border-radius: 2px; }
.stations .rail i { position: absolute; inset: 0; background: var(--teal); border-radius: 2px; transform-origin: right center; transform: scaleX(var(--p, 1)); }
.station { position: relative; display: grid; justify-items: center; text-align: center; gap: 10px; }
.station .dot {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card); border: 2.5px solid var(--teal); color: var(--teal);
  z-index: 1;
}
.station .dot .ico { width: 20px; height: 20px; }
.station.part .dot { border-color: #d39a3a; color: var(--part); }
.station.bad .dot { border-color: var(--bad); color: var(--bad); background: var(--bad-soft); }
.station.wait .dot { border-color: #7f9bbd; color: var(--wait); border-style: dashed; }
.station .t { font: 600 14px/1.5 var(--sans); max-width: 16ch; }
.station .w { font-size: 12.5px; line-height: 1.55; color: var(--muted); max-width: 20ch; }
.cycle .why { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 15px; line-height: 1.8; color: var(--ink-2); display: flex; gap: 10px; }
.cycle .why .ico { margin-top: 6px; color: var(--bad); }
.cycle .why.ok .ico { color: var(--ok); }

/* open issues */
.issues { display: grid; gap: 12px; }
.issue {
  display: grid; grid-template-columns: 120px minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px 28px; align-items: start;
  padding: 22px 24px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line);
  border-inline-start: 4px solid var(--c, var(--bad));
}
.issue h4 { font: 700 17.5px/1.5 var(--sans); }
.issue p { margin-top: 6px; font-size: 15px; line-height: 1.8; color: var(--ink-2); }
.issue .next { font-size: 14.5px; line-height: 1.8; color: var(--muted); }
.issue .next b { display: block; font: 600 13px/1.4 var(--sans); color: var(--ink); margin-bottom: 4px; }

/* full index */
.finder { position: sticky; top: calc(var(--top) + 10px); z-index: 5; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; padding: 12px; margin-bottom: 26px; border-radius: 18px; background: rgba(255, 254, 251, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.finder label { flex: 1 1 280px; position: relative; }
.finder input { width: 100%; height: 48px; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fff; padding-inline: 46px 16px; font: 500 16px/1 var(--sans); color: var(--ink); }
.finder input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(13, 115, 119, .12); }
.finder label .ico { position: absolute; inset-inline-start: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 20px; height: 20px; }
.finder .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font: 600 13.5px/1 var(--sans); color: var(--ink-2); transition: background-color .2s, color .2s, border-color .2s; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.finder .count { font-size: 14px; color: var(--muted); padding-inline: 6px; white-space: nowrap; }
.idx { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.idx-group { break-inside: avoid; margin-bottom: 30px; }
.idx-group h4 { font: 700 16px/1.4 var(--kufi); color: var(--petrol); padding-bottom: 10px; border-bottom: 2px solid var(--ink); display: flex; justify-content: space-between; }
.idx-group h4 span { font: 500 13px/1.4 var(--sans); color: var(--muted); }
.idx-group[hidden] { display: none; }
.idx .scr[hidden] { display: none; }
.empty { padding: 40px 0; text-align: center; color: var(--muted); }

/* production status */
.prod { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.prod .p { padding: 26px; border-radius: var(--r-lg); border: 1px solid var(--night-line); background: rgba(255,255,255,.03); }
.prod .p .ico { width: 30px; height: 30px; color: var(--ice); }
.prod .p h4 { margin-top: 16px; font-size: 19px; }
.prod .p p { margin-top: 8px; color: var(--on-night-2); font-size: 15px; line-height: 1.85; }

/* sign-off */
.signoff { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.sig { font: 800 clamp(30px, 3.4vw, 46px)/1.3 var(--kufi); }
.sig-role { margin-top: 10px; color: var(--on-night-2); font-size: 16px; line-height: 1.8; }
.foot-line { margin-top: 70px; padding-top: 22px; border-top: 1px solid var(--night-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--on-night-3); }

/* quote / aside */
.aside { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 22px 24px; border-radius: var(--r); background: var(--paper-2); }
.aside .ico { width: 28px; height: 28px; color: var(--teal); margin-top: 3px; }
.aside p { font-size: 16px; line-height: 1.85; color: var(--ink-2); }
.aside b { color: var(--ink); }

/* two-up text + media */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.duo.rev { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.duo .prose h3 { margin-bottom: 16px; }


/* three ways in for members */
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.door { position: relative; display: grid; gap: 14px; align-content: start; padding: 26px 24px 24px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.door.lead { background: var(--petrol-deep); color: var(--on-night); border-color: transparent; }
.door .d-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--paper-2); color: var(--petrol); }
.door.lead .d-ic { background: rgba(155, 231, 224, .12); color: var(--ice); }
.door .d-ic .ico { width: 26px; height: 26px; }
.door h4 { font-size: 21px; line-height: 1.4; }
.door .u { font: 600 13px/1.4 var(--mono); direction: ltr; text-align: end; color: var(--muted); }
.door.lead .u { color: var(--on-night-2); }
.door p { font-size: 15px; line-height: 1.85; color: var(--ink-2); }
.door.lead p { color: var(--on-night-2); }
.door .yn li { font-size: 14.5px; }
.door.lead .yn li { color: var(--on-night); }
.door.lead .yn .y .ico { color: #7fe0ae; }
.door.lead .yn .n .ico { color: #ff8a90; }
.door.lead .yn .w .ico { color: #a9c3e6; }

/* store images */
.store-strip { display: flex; gap: clamp(12px, 1.6vw, 22px); overflow-x: auto; padding: 10px var(--gut) 30px; margin-inline: calc(var(--gut) * -1); scroll-snap-type: x mandatory; scrollbar-width: none; }
.store-strip::-webkit-scrollbar { display: none; }
.store-strip figure { margin: 0; flex: 0 0 clamp(180px, 17vw, 240px); scroll-snap-align: start; }
.store-strip img { width: 100%; border-radius: 22px; box-shadow: 0 30px 60px -30px rgba(1, 20, 23, .6); }
.store-strip figcaption { margin-top: 10px; font-size: 13.5px; color: var(--muted); text-align: center; }

@media (max-width: 900px) { .doors { grid-template-columns: minmax(0, 1fr); } }

/* motion pre-states (only when JS will animate) */
html.motion [data-r] { opacity: 0; transform: translateY(26px); }
html.motion [data-r="fade"] { transform: none; }
html.motion [data-r="wipe"] { opacity: 1; transform: none; clip-path: inset(0 0 0 100%); }
html.motion [data-r="scale"] { transform: scale(.96); }
html.motion .words .w { display: inline-block; opacity: 0; transform: translateY(.5em); }
html.motion .cover .crest { opacity: 0; }

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

@media (max-width: 1100px) {
  .tour { grid-template-columns: minmax(0, 1fr); }
  .tour .stage { position: relative; top: 0; }
  .tour .steps { padding-block: 24px 0; }
  .step { min-height: 0; }
  .tour.stack .stage { display: none; }
  .tour.ptour { grid-template-columns: minmax(0, 1fr); }
  .tour.stack .step .crop { display: block; margin-top: 16px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-1); }
  .screens .list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map .zone, .map .zone.wide { grid-column: span 6; }
  .issue { grid-template-columns: 110px minmax(0, 1fr); }
  .issue .next { grid-column: 2; }
}
@media (max-width: 900px) {
  .cover-grid, .access, .opener .inner, .head-row, .verdict, .duo, .duo.rev, .signoff, .loupe.full { grid-template-columns: minmax(0, 1fr); }
  .cover .crest { width: min(64vw, 300px); order: -1; justify-self: start; }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board .cell:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .board .cell { border-top: 1px solid var(--line); }
  .board .cell:nth-child(-n+2) { border-top: 0; }
  .loupes { grid-template-columns: minmax(0, 1fr); }
  .ledger { grid-template-columns: minmax(0, 1fr); }
  .ledger > div + div { border-inline-start: 0; border-top: 1px solid var(--line); }
  .ledger.solo ul { columns: 1; }
  .try { grid-template-columns: minmax(0, 1fr); }
  .prod { grid-template-columns: minmax(0, 1fr); }
  .idx { grid-template-columns: minmax(0, 1fr); }
  .stations { grid-auto-flow: row; grid-auto-columns: auto; gap: 16px; }
  .stations .rail { inset-inline: auto; inset-inline-start: 21px; top: 22px; bottom: 22px; width: 3px; height: auto; }
  .stations .rail i { transform-origin: center top; transform: scaleY(var(--p, 1)); }
  .station { grid-template-columns: 44px 1fr; justify-items: start; text-align: start; column-gap: 14px; row-gap: 2px; }
  .station .dot { grid-row: span 2; }
  .station .t, .station .w { max-width: none; }
  .phones { flex-wrap: wrap; }
  .phones .phone { flex-basis: 44%; }
  .phones .phone:nth-child(n) { margin-top: 0; }
  .phones .phone:nth-child(even) { margin-top: 40px; }
  .phone figcaption { position: static; margin-top: 14px; }
  .phones-wrap { padding-bottom: 20px; }
  .topbar .here { display: none; }
  .topbar { justify-content: space-between; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .map .zone, .map .zone.wide { grid-column: span 12; min-height: 0; }
  .screens .list { grid-template-columns: minmax(0, 1fr); }
  .cred { grid-template-columns: 40px minmax(0, 1fr); }
  .cred .keys { grid-column: 1 / -1; justify-content: flex-start; }
  .issue { grid-template-columns: minmax(0, 1fr); }
  .issue .next { grid-column: auto; }
  .pass { aspect-ratio: auto; min-height: 220px; }
  .pass .qr { width: 76px; height: 76px; }
  .topbar .btn .lbl { display: none; }
  .board .v { font-size: 44px; }
  .cover-top .meta { display: none; }
  .phones .phone { flex-basis: 47%; border-radius: 34px; padding: 8px; }
  .phone .scr-in { border-radius: 27px; }
  .phone .island { top: 14px; width: 64px; height: 19px; margin-left: -32px; }
}

@media print {
  .topbar, .menu, .ticker, .scroll-cue, .finder, .tour .stage { display: none !important; }
  .night { background: #fff; color: #000; }
  html.motion [data-r], html.motion .words .w { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .tour { grid-template-columns: 1fr; }
  .step .crop { display: block !important; }
  .screens .list { display: grid !important; }
}
