/* rfidblocker.in — one-page film. Mobile-first, custom CSS only. */

/* Metric-matched fallbacks so the web-font swap does not reflow the headline. */
@font-face { font-family: "Serif Fallback"; src: local("Times New Roman"), local("TimesNewRomanPSMT"); size-adjust: 83%; }
@font-face { font-family: "Serif Fallback"; font-style: italic; src: local("Times New Roman Italic"), local("TimesNewRomanPS-ItalicMT"); size-adjust: 84%; }
@font-face { font-family: "Serif Fallback Android"; src: local("Noto Serif"), local("NotoSerif"); size-adjust: 76%; }

:root {
  --night: #090a0d;
  --night-2: #13151b;
  --ink: #15171b;
  --ink-2: #4c4f55;
  --bone: #efebe3;
  --bone-2: #e4dfd4;
  --paper: #f8f6f1;
  --amber: #ffb04a;
  --ember: #ff6a3d;
  --ember-ink: #b83c0b;
  --steel-1: #e3e6ea;
  --steel-2: #a3a9b1;
  --steel-3: #666c75;
  --line: rgba(21, 23, 27, 0.14);

  --serif: "Instrument Serif", "Serif Fallback", "Serif Fallback Android", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 5vw, 72px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
em { font-style: italic; }

:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }

/* ---------- Top bar ---------- */
.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: max(10px, env(safe-area-inset-top)) var(--gutter) 0;
  color: var(--bone);
  pointer-events: none;
  transition: color 300ms;
}
.top.is-ink { color: var(--ink); }
.top.is-past {
  background: rgba(239, 235, 227, 0.94);
  box-shadow: 0 1px 0 var(--line);
}
.how, .shop { scroll-margin-top: 56px; }
.top a {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.top__mark span { letter-spacing: 0.04em; text-transform: none; font-size: 13px; }
.top__shop { padding: 0 2px; border-bottom: 1px solid currentColor; min-height: 30px !important; padding-block: 12px; }

/* ---------- Film ---------- */
.film {
  position: relative;
  background: var(--night);
  color: var(--bone);
}
.js .film { height: 520vh; }

.stage {
  position: relative;
  height: 100vh;
  height: 100lvh;
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
}
.js .stage { position: sticky; top: 0; }

.stage__glow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(40% 36% at var(--cx, 50%) var(--cy, 46%), rgba(255, 138, 61, 0.22), transparent 70%),
    radial-gradient(70% 60% at 50% 110%, rgba(40, 60, 90, 0.35), transparent 70%);
  will-change: opacity;
}
.stage__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.stage__day {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at var(--cx, 50%) var(--cy, 46%), var(--paper), transparent 75%),
    var(--bone);
  opacity: 0;
  will-change: opacity;
}

/* card holder: positioned by CSS, animated by JS (transform only) */
.hold {
  position: absolute;
  left: 50%;
  top: 58%;
  width: min(62vw, 300px);
  aspect-ratio: 85.6 / 54;
  transform: translate(-50%, -50%);
  perspective: 900px;
  z-index: 3;
}
.hold__bump, .hold__tilt { position: absolute; inset: 0; transform-style: preserve-3d; }
.hold__tilt { will-change: transform; }
.hold.is-sealed .hold__bump { animation: bump 700ms var(--ease-out); }
@keyframes bump {
  0% { transform: scale(1); }
  22% { transform: scale(0.965); }
  100% { transform: scale(1); }
}

.card {
  position: absolute;
  inset: 0;
  border-radius: 6.5% / 10.3%;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(255, 176, 74, 0.2), transparent 55%),
    linear-gradient(135deg, #2b2f38 0%, #16181e 55%, #0c0d11 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    0 30px 60px -20px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
.card__sheen {
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.08) 48%, transparent 56%);
  transform: translateX(var(--sheen, 0%));
}
.card__chip {
  position: absolute;
  left: 9%;
  top: 34%;
  width: 15%;
  height: 18.3%;
  border-radius: 14% / 18%;
  background: linear-gradient(135deg, #f3d79b, #b98b3e 60%, #e6c27a);
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  padding: 0;
  box-shadow: inset 0 0 0 1px rgba(80, 50, 10, 0.35);
}
.card__chip i { border-top: 1px solid rgba(80, 50, 10, 0.45); }
.card__wave {
  position: absolute;
  left: 28%;
  top: 33%;
  width: 11%;
  color: var(--amber);
  filter: drop-shadow(0 0 6px rgba(255, 176, 74, 0.8));
  opacity: var(--talk, 1);
}
.card__num {
  position: absolute;
  left: 9%;
  bottom: 15%;
  display: flex;
  gap: 7%;
  width: 70%;
}
.card__num b {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, rgba(239, 235, 227, 0.55) 0 4px, transparent 4px 8px);
}

.sleeve {
  position: absolute;
  inset: -5% -4% -5% -6%;
  border-radius: 7% / 11%;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(120, 160, 255, 0.35), transparent 60%),
    linear-gradient(115deg, #1b3fb8 0%, #1535a0 40%, #0f2672 100%);
  box-shadow:
    inset 0 0 0 1px rgba(170, 195, 255, 0.35),
    inset 0 -18px 30px -18px rgba(0, 0, 0, 0.5),
    0 24px 50px -18px rgba(0, 0, 0, 0.6);
  -webkit-mask: radial-gradient(circle at 100% 50%, transparent 15%, #000 15.5%);
  mask: radial-gradient(circle at 100% 50%, transparent 15%, #000 15.5%);
  transform: translate3d(-160%, 0, 30px);
  opacity: 0;
  will-change: transform;
  overflow: hidden;
}
.sleeve__mesh {
  position: absolute;
  inset: 7% 6%;
  border-radius: 4px;
  background:
    repeating-linear-gradient(0deg, rgba(240, 145, 90, 0.34) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(90deg, rgba(240, 145, 90, 0.34) 0 1px, transparent 1px 9px);
  opacity: 0.55;
  transition: opacity 600ms;
}
.hold.is-sealed .sleeve__mesh { opacity: 0.9; }
.sleeve__eddy {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.sleeve__eddy rect {
  fill: none;
  stroke: #ffb27a;
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 0.16 0.84;
  opacity: 0;
  filter: drop-shadow(0 0 4px rgba(255, 150, 90, 0.9));
}
.hold.is-sealed .sleeve__eddy rect { animation: eddy 1.6s linear 2 forwards; }
@keyframes eddy {
  0% { stroke-dashoffset: 0; opacity: 1; }
  85% { opacity: 1; }
  100% { stroke-dashoffset: -1; opacity: 0.35; }
}
.sleeve__tag {
  position: absolute;
  left: 9%;
  bottom: 11%;
  font-family: var(--mono);
  font-size: clamp(7px, 1.9vw, 10px);
  letter-spacing: 0.18em;
  color: rgba(214, 228, 255, 0.85);
}
.sleeve__reg { position: absolute; width: 8%; aspect-ratio: 1; border: 1px solid rgba(214, 228, 255, 0.55); }
.sleeve__reg--a { left: 5%; top: 7%; border-right: 0; border-bottom: 0; }
.sleeve__reg--b { right: 22%; top: 7%; border-left: 0; border-bottom: 0; }
.sleeve__shine {
  position: absolute;
  inset: -20% auto -20% -60%;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  transform: translateX(-100%) skewX(-18deg);
  opacity: 0;
}
.hold.is-sealed .sleeve__shine { animation: shine 1100ms var(--ease-out) 60ms; }
@keyframes shine {
  0% { transform: translateX(0) skewX(-18deg); opacity: 0.9; }
  100% { transform: translateX(420%) skewX(-18deg); opacity: 0; }
}

/* reader */
.reader {
  position: absolute;
  left: 50%;
  top: 84%;
  width: clamp(74px, 20vw, 120px);
  aspect-ratio: 2 / 3;
  transform: translate(-50%, -50%) translate3d(0, 60vh, 0);
  z-index: 2;
  will-change: transform;
}
.reader__body {
  position: absolute;
  inset: 12% 0 0 0;
  border-radius: 18%/12%;
  background: linear-gradient(160deg, #2e323a, #16181d 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 20px 40px -18px #000;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 14% 12%;
  gap: 10%;
}
.reader__screen {
  position: relative;
  aspect-ratio: 1.35;
  border-radius: 10%;
  background: #0b0c0f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  color: var(--steel-3);
}
.reader__screen svg { position: absolute; width: 44%; transition: opacity 250ms, transform 350ms var(--ease-out); }
.reader__tick { opacity: 0; transform: scale(0.6); color: #7ee2a8; }
.reader[data-state="listen"] .reader__wait,
.reader[data-state="search"] .reader__wait { color: var(--amber); }
.reader[data-state="search"] .reader__wait { animation: search 1.1s ease-in-out infinite; }
@keyframes search { 50% { opacity: 0.2; } }
.reader[data-state="done"] .reader__wait { opacity: 0; }
.reader[data-state="done"] .reader__tick { opacity: 1; transform: none; }
.reader__keys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12%;
  align-content: start;
}
.reader__keys i { aspect-ratio: 1.6; border-radius: 30%; background: rgba(255, 255, 255, 0.07); }
.reader__leds {
  position: absolute;
  inset: 0 18% auto;
  height: 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.reader__leds i {
  width: 16%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #2a2d33;
  transition: background 200ms, box-shadow 200ms;
}
.reader[data-lvl="1"] .reader__leds i:nth-child(-n+1),
.reader[data-lvl="2"] .reader__leds i:nth-child(-n+2),
.reader[data-lvl="3"] .reader__leds i:nth-child(-n+3),
.reader[data-lvl="4"] .reader__leds i {
  background: #7ee2a8;
  box-shadow: 0 0 10px 1px rgba(126, 226, 168, 0.8);
}

/* captions */
.caps {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.cap {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: calc(max(10px, env(safe-area-inset-top)) + 64px);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 10.5vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.012em;
  text-wrap: balance;
  max-width: 16ch;
  color: var(--bone);
  text-shadow: 0 2px 30px rgba(9, 10, 13, 0.55);
  opacity: 0;
  will-change: opacity, transform;
}
.cap small {
  display: block;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(239, 235, 227, 0.62);
}
.cap--quiet { color: var(--ink); text-shadow: none; }
.cap--quiet em { display: block; font-size: 1.5em; line-height: 0.9; }
.cap--quiet span { display: block; margin-top: 14px; font-size: 0.42em; font-style: italic; color: var(--ink-2); }

.cap--0 h1 { font: inherit; letter-spacing: inherit; margin: 0; }
.cap--0 { font-size: clamp(32px, 9vw, 76px); line-height: 1.02; max-width: 15ch; }
.cap__sub {
  margin-top: 14px;
  max-width: 34ch;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(239, 235, 227, 0.82);
}
.cap--0 small { color: var(--amber); margin-top: 12px; }
.js .cap--0 .cap__sub, .js .cap--0 small { opacity: 0; animation: word 1000ms var(--ease-out) 520ms forwards; }
.cap--0 .w { display: inline; }
.js .cap--0 { opacity: 1; }
.js .cap--0 .w { display: inline-block; opacity: 0; transform: translateY(0.35em); animation: word 1100ms var(--ease-out) forwards; }
.js .cap--0 .w:nth-child(2) { animation-delay: 90ms; }
.js .cap--0 .w:nth-child(3) { animation-delay: 180ms; }
.js .cap--0 .w:nth-child(4) { animation-delay: 270ms; }
.js .cap--0 .w:nth-child(5) { animation-delay: 360ms; }
@keyframes word { to { opacity: 1; transform: none; } }

.js .hold { animation: rise 1400ms var(--ease-out) 150ms both; }
@keyframes rise { from { opacity: 0; } to { opacity: 1; } }

/* scroll cue + reel progress */
.cue {
  position: absolute;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  width: 1px;
  height: 48px;
  background: rgba(239, 235, 227, 0.18);
  overflow: hidden;
  z-index: 4;
}
.cue span {
  position: absolute;
  inset: 0;
  background: var(--amber);
  transform: translateY(-100%);
  animation: cue 2.2s var(--ease-in-out) 1.2s infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
.reel {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  z-index: 4;
  background: rgba(127, 127, 127, 0.15);
}
.reel i {
  position: absolute;
  inset: 0;
  background: var(--ember);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* no-JS: a plain, static first screen */
html:not(.js) .reader, html:not(.js) .cue, html:not(.js) .reel, html:not(.js) .cap:not(.cap--0) { display: none; }
html:not(.js) .cap--0 { opacity: 1; }

/* ---------- How it works ---------- */
.how {
  padding: clamp(88px, 16vw, 180px) var(--gutter) clamp(64px, 10vw, 120px);
  max-width: 1320px;
  margin: 0 auto;
}
.eyebrow {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(28px, 5vw, 48px);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.board {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 36px;
}
.frame p {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: clamp(24px, 6.4vw, 32px);
  line-height: 1.08;
  max-width: 17ch;
}
.frame__n {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ember-ink);
  margin-bottom: 8px;
}
.frame__art {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  background: var(--paper);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.defs { position: absolute; }
.s-reader { fill: #23262c; }
.s-led { fill: var(--led, #7ee2a8); }
.s-screen { fill: #0d0e11; }
.s-card { fill: var(--cf, #2a2d33); }
.s-chip { fill: #d6b36d; }
use.is-lit { --cf: #3a2a1c; }
use.is-off { --cf: #8d9199; }
.field path, .reply path { fill: none; stroke-width: 3; stroke-linecap: round; }
.field path { stroke: var(--ink); opacity: 0.18; }
.field--faint path { opacity: 0.1; }
.reply path { stroke: var(--ember); opacity: 0.25; }
.metal { fill: url(#hatch); stroke: #7d848c; stroke-width: 1; }
.board.is-on .field:not(.field--faint) path { animation: pulse 1.8s ease-in-out infinite; animation-delay: calc(var(--i) * 0.22s); }
.board.is-on .reply path { animation: pulseR 1.5s ease-in-out infinite; animation-delay: calc(var(--i) * 0.2s); }
@keyframes pulse { 0%, 100% { opacity: 0.12; } 40% { opacity: 0.9; } }
@keyframes pulseR { 0%, 100% { opacity: 0.15; } 40% { opacity: 1; } }

/* ---------- Shop ---------- */
.shop {
  padding: clamp(40px, 8vw, 96px) var(--gutter) clamp(88px, 14vw, 160px);
  max-width: 1320px;
  margin: 0 auto;
}
.shop__h {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 13vw, 140px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin-bottom: clamp(36px, 7vw, 80px);
}
.shop__h em { color: var(--ember-ink); }
.shop__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 40px;
}
.item {
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  column-gap: 16px;
  align-items: start;
}
.item__plate { grid-row: 1 / 4; }
.item__act { grid-column: 1 / -1; }
.item__plate {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
}
.item__plate img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
.item:hover .item__plate img { transform: scale(1.03); }
.item__name {
  margin-top: 2px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(23px, 6.4vw, 36px);
  line-height: 1.02;
}
.item__line { margin-top: 8px; color: var(--ink-2); font-size: 14px; }
.item__price {
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.item__act { margin-top: 18px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bone);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: background 200ms;
}
.btn span { transition: transform 300ms var(--ease-out); }
.btn:hover { background: #000; }
.btn:hover span { transform: translateX(4px); }
.watch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.06em;
  box-shadow: inset 0 0 0 1px var(--line);
}
.watch svg { width: 14px; height: 14px; }
.watch:hover { box-shadow: inset 0 0 0 1px var(--ink); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 22px var(--gutter) calc(22px + env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  font-size: 12px;
  color: var(--ink-2);
  max-width: 1320px;
  margin: 0 auto;
}
.footer a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 3px; }

/* ---------- Video dialog ---------- */
.video {
  border: 0;
  padding: 0;
  background: transparent;
  width: min(92vw, calc(84vh * 9 / 16));
  max-height: 92vh;
  overflow: visible;
}
.video::backdrop { background: rgba(9, 10, 13, 0.86); }
.video__frame { aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: #000; }
.video__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video__close {
  position: absolute;
  top: -52px;
  right: 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--bone);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}


/* ---------- Inside the shield: blueprint drawings ---------- */
.lab {
  --bp: #0c2a47;
  --bp-ink: #d9e9ff;
  --bp-dim: #8fb3d9;
  --bp-amb: #ffb04a;
  --bp-cu: #f0915a;
  background:
    linear-gradient(rgba(143, 179, 217, 0.07) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(143, 179, 217, 0.07) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(rgba(143, 179, 217, 0.1) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(90deg, rgba(143, 179, 217, 0.1) 1px, transparent 1px) 0 0 / 120px 120px,
    var(--bp);
  color: var(--bp-ink);
  scroll-margin-top: 56px;
}
.lab__in { max-width: 1320px; margin: 0 auto; padding: clamp(72px, 12vw, 150px) var(--gutter); }
.lab__eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bp-amb);
  display: flex;
  align-items: center;
  gap: 12px;
}
.lab__eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lab__h {
  margin-top: 18px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 10vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  max-width: 14ch;
}
.lab__h--2 { margin-top: 0; }
.lab__spec {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bp-dim);
}
.figs {
  margin-top: clamp(36px, 7vw, 72px);
  display: grid;
  gap: clamp(28px, 5vw, 40px);
}
.build { margin-top: clamp(80px, 14vw, 160px); }

.fig {
  --p: 1;
  margin: 0;
  border: 1px solid rgba(143, 179, 217, 0.35);
  border-radius: 4px;
  background: rgba(12, 42, 71, 0.72);
}
.fig__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(143, 179, 217, 0.35);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bp-dim);
}
.fig__head span:first-child { color: var(--bp-ink); }
.fig svg { width: 100%; height: auto; overflow: visible; padding: 10px 6px 0; }
.fig figcaption {
  padding: 4px 14px 16px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(217, 233, 255, 0.86);
  max-width: 52ch;
}
.fig text {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  fill: var(--bp-ink);
}
.fig .amb { fill: var(--bp-amb); }
.fig .cop { fill: var(--bp-cu); }
.fig .ttl { fill: var(--bp-dim); letter-spacing: 0.14em; }

/* line styles */
.fig .ln { fill: rgba(217, 233, 255, 0.03); stroke: var(--bp-ink); stroke-width: 1.4; }
.fig .ln-a { fill: none; stroke: var(--bp-amb); stroke-width: 1.2; opacity: 0.9; }
.fig .card-s { fill: rgba(217, 233, 255, 0.12); stroke: var(--bp-ink); stroke-width: 1.2; }
.fig .chip { fill: url(#bp-hatch); stroke: var(--bp-ink); stroke-width: 1.2; }
.fig .chip--off { stroke: var(--bp-dim); opacity: 0.7; }
.fig .glow { fill: var(--bp-amb); opacity: 0.35; filter: blur(4px); }
.fig .cond circle, .fig .cond path, .fig .eddy circle, .fig .eddy path { fill: var(--bp); stroke: var(--bp-ink); stroke-width: 1.3; }
.fig .cond .dot { fill: var(--bp-ink); }
.fig .eddy circle, .fig .eddy path { stroke: var(--bp-cu); }
.fig .eddy .dot { fill: var(--bp-cu); }
.fig .field path, .fig .field-s path { fill: none; stroke: var(--bp-amb); stroke-width: 1.3; stroke-dasharray: 5 6; opacity: 0.9; }
.fig .field-s path { marker-end: url(#ar-a); stroke-dasharray: none; }
.fig .counter path { fill: none; stroke: var(--bp-cu); stroke-width: 1.3; stroke-dasharray: 2 5; }
.fig .shield { fill: url(#cu-hatch); stroke: var(--bp-cu); stroke-width: 1.2; }
.fig .shield-o { fill: none; stroke: var(--bp-cu); stroke-width: 3; }
.fig .dim path { fill: none; stroke: var(--bp-dim); stroke-width: 0.9; }
.fig .dim .arr { marker-start: url(#ar); marker-end: url(#ar); }
.fig .dim text { fill: var(--bp-dim); }
.fig .call path { fill: none; stroke: var(--bp-dim); stroke-width: 0.9; }
.fig .call circle { fill: var(--bp-ink); }
.fig .in-arr { stroke: var(--bp-amb) !important; stroke-width: 1.6 !important; marker-end: url(#ar-a); }
.fig .ax { fill: none; stroke: var(--bp-ink); stroke-width: 1.2; }
.fig .tick path { fill: none; stroke: var(--bp-dim); stroke-width: 1; }
.fig .tick .guide { stroke-dasharray: 2 3; }
.fig .tick text { fill: var(--bp-dim); font-size: 12.5px; }
.fig .metal { fill: url(#bp-hatch); opacity: 0.35; }
.fig .curve { fill: none; stroke: var(--bp-amb); stroke-width: 2.2; }
.fig .pts circle { fill: var(--bp-amb); }
.fig .pts text { fill: var(--bp-amb); }
.fig .sep { stroke: rgba(143, 179, 217, 0.35); stroke-dasharray: 3 4; }
.fig .plate polygon { fill: #123a60; stroke: var(--bp-ink); stroke-width: 1.3; stroke-linejoin: round; }
.fig .plate--shield polygon { fill: url(#cu-grid); stroke: var(--bp-cu); }
.fig .eddy-iso { fill: none; stroke: #ffb27a; stroke-width: 1.4; stroke-dasharray: 18 300; opacity: 0; }
.fig .guide { fill: none; stroke: var(--bp-dim); stroke-width: 0.8; stroke-dasharray: 3 4; }
.fig .balloon path { fill: none; stroke: var(--bp-dim); stroke-width: 0.9; }
.fig .balloon circle { fill: var(--bp); stroke: var(--bp-ink); stroke-width: 1.2; }
.fig .balloon text { text-anchor: middle; font-size: 11px; }
.fig .sleeve-d { fill: rgba(27, 63, 184, 0.35); stroke: var(--bp-ink); stroke-width: 1.4; }
.fig .lattice { opacity: 0.55; }
.fig .card-in { fill: none; stroke: var(--bp-ink); stroke-width: 1.2; stroke-dasharray: 5 4; }
.fig .push { stroke: var(--bp-amb); stroke-width: 1.6; marker-end: url(#ar-a); }
.legend { margin: 0; padding-left: 1.5em; }
.legend li { padding-left: 4px; }
.legend li::marker { font-size: 11px; color: var(--bp-dim); }

/* scroll-drawn: --p (0..1) is set per figure by film.js; defaults to 1 */
.fig .dr { stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, (var(--p) - var(--d, 0)) * 2.4, 1)); }
.fig .fi { opacity: clamp(0, (var(--p) - var(--d, 0)) * 3, 1); }
.fig .plate { transform: translateY(calc((1 - clamp(0, (var(--p) - 0.1) * 1.8, 1)) * var(--y, 0px))); }
.fig.is-on .field path { animation: flow 1.1s linear infinite; }
.fig.is-on .counter path { animation: flow 1.1s linear infinite reverse; }
.fig.is-on .glow { animation: glow 1.6s ease-in-out infinite; }
.fig.is-on .eddy-iso { animation: loop 2.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -22; } }
@keyframes glow { 50% { opacity: 0.8; } }
@keyframes loop { 0% { stroke-dashoffset: 0; opacity: 0.95; } 100% { stroke-dashoffset: -318; opacity: 0.95; } }

/* ---------- Larger screens ---------- */
@media (min-width: 600px) {
  .shop__list { grid-template-columns: 1fr 1fr; gap: 56px 32px; }
  .item { display: flex; flex-direction: column; align-items: stretch; }
  .item__act { align-self: flex-start; }
  .item__name { margin-top: 22px; }
}

@media (min-width: 900px) {
  .hold { left: 58%; top: 42%; width: clamp(300px, 30vw, 440px); }
  .reader { left: 87%; top: 42%; width: clamp(112px, 10vw, 150px); transform: translate(-50%, -50%) translate3d(40vw, 0, 0); }
  .cap {
    top: auto;
    bottom: 13vh;
    right: auto;
    width: min(46vw, 760px);
    max-width: none;
    font-size: clamp(56px, 6.6vw, 120px);
  }
  .cap--quiet em { font-size: 1.6em; }
  .board { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .figs { grid-template-columns: 1fr 1fr; }
  .cap.cap--0 { font-size: clamp(44px, 4.6vw, 76px); max-width: none; }
  .cap__sub { font-size: 14.5px; }
  .shop__list { grid-template-columns: repeat(3, 1fr); align-items: start; gap: 40px; }
}

/* ---------- Reduced motion: no continuous motion, no transitions ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  .cue { display: none; }
  .fig .eddy-iso { opacity: 0.9; }
  .board .field path { opacity: 0.55; }
  .board .reply path { opacity: 0.9; }
  .item:hover .item__plate img { transform: none; }
}
