/* Additions for the Pyroduct project pages (loaded after style.css) */

.side .back { font-size: var(--step--1); color: var(--muted); text-decoration: none; }
.side .back:hover { color: var(--ink); }
.side .who { font-size: var(--step-1); }

/* two parts of the project, side by side */
.parts { display: grid; gap: 2.5rem 3rem; }
@media (min-width: 760px) { .parts { grid-template-columns: 1fr 1fr; } }
.part h3 { font-size: var(--step-1); font-weight: 700; font-variation-settings: "wdth" 112; margin: 0 0 .4rem; }
.part h3 a { color: var(--ink); text-decoration: none; }
.part h3 a:hover { color: var(--link); }
.part p { margin: 0 0 .6rem; max-width: var(--measure); }
.part .facts { color: var(--muted); font-size: var(--step--1); }

/* prose blocks */
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1rem; }
.prose ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }
.prose code, .codeish {
  font-size: .92em;
  background: color-mix(in srgb, var(--line) 45%, transparent);
  padding: .05em .35em;
  border-radius: 3px;
}

/* installation: a real sequence, so numbered */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; max-width: var(--measure); }
.steps li { counter-increment: s; position: relative; padding: 0 0 1.1rem 2.6rem; }
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: -.05rem;
  width: 1.75rem; height: 1.75rem;
  border: 1px solid var(--accent); color: var(--accent);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: var(--step--1); font-weight: 600;
}
.steps strong { font-weight: 650; }

/* image slots: replaced by real figures later */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: auto; display: block; border-radius: 3px; }
.slot {
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--line);
  border-radius: 3px;
  display: grid; place-items: center;
  color: var(--muted); font-size: var(--step--1);
  text-align: center; padding: 1rem;
}
.gallery figcaption { font-size: var(--step--1); color: var(--muted); margin-top: .4rem; }

/* citations with a copy button */
.cite { border-top: 1px solid var(--line); padding: 1.1rem 0; max-width: var(--measure); }
.cite:first-of-type { border-top: 0; padding-top: 0; }
.cite h3 { font-size: var(--step-0); font-weight: 650; margin: 0 0 .35rem; }
.cite p { margin: 0 0 .5rem; }
.copy {
  font: inherit; font-size: var(--step--1);
  color: var(--link); background: none;
  border: 1px solid var(--line); border-radius: 999px;
  padding: .15rem .75rem; cursor: pointer;
}
.copy:hover { border-color: var(--link); }

/* download call to action */
.download {
  display: inline-block;
  background: var(--accent); color: var(--bg);
  text-decoration: none; font-weight: 600;
  padding: .6rem 1.1rem; border-radius: 3px; margin: .25rem 1rem .5rem 0;
}
.download:hover { filter: brightness(1.08); }

/* key/value list (file formats, requirements) */
.kv { display: grid; grid-template-columns: minmax(0, 1fr); gap: .2rem 1.5rem; margin: 0; max-width: 72ch; }
@media (min-width: 640px) { .kv { grid-template-columns: 9rem minmax(0, 1fr); } }
.kv dt { font-weight: 650; padding-top: .9rem; }
.kv dd { margin: 0; padding-top: .9rem; color: var(--ink); }
@media (min-width: 640px) { .kv dt, .kv dd { border-top: 1px solid var(--line); } .kv dt:first-of-type, .kv dd:first-of-type { border-top: 0; padding-top: 0; } }

/* catalog: map + table */
#map {
  height: 440px; width: 100%;
  border: 1px solid var(--line); border-radius: 3px;
  margin-bottom: 1.25rem; background: var(--line);
}
.filters { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.filters button {
  font: inherit; font-size: var(--step--1);
  background: none; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .15rem .7rem; cursor: pointer;
}
.filters button[aria-pressed="true"] { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.search { font: inherit; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 3px; background: transparent; color: var(--ink); width: 100%; max-width: 22rem; margin-bottom: .75rem; }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: var(--step--1); }
th, td { text-align: left; padding: .5rem .75rem .5rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 650; color: var(--muted); }
td.code { font-variant-numeric: tabular-nums; white-space: nowrap; }
.count { color: var(--muted); font-size: var(--step--1); margin: 0 0 .5rem; }

/* catalog table details */
td details summary { cursor: pointer; color: var(--link); }
td details { max-width: 32ch; }
td .status { margin-left: .2rem; }
.leaflet-container { font-family: var(--sans); }
td details summary { white-space: nowrap; }
@media (max-width: 640px) { #map { height: 320px; } }

/* ---------- arcade type: Press Start 2P for titles and headings ---------- */
:root {
  --pixel: "Press Start 2P", ui-monospace, monospace;
  --arcade-top: #ffd23f;
  --arcade-bottom: #e2341d;
  --arcade-edge: #1b1730;
  --accent: #c62d17;
  --tube-near: #e2341d;
}
@media (prefers-color-scheme: dark) {
  :root { --accent: #ffd23f; --tube-near: #ffd23f; --arcade-edge: #000; }
}

.hero h1 {
  font-family: var(--pixel);
  font-weight: 400;
  font-variation-settings: normal;
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  line-height: 1.35em;
  letter-spacing: 0;
  margin: 0 0 1.5rem;
  /* one yellow/red split per line, so wrapped titles keep the effect */
  background: linear-gradient(to bottom, var(--arcade-top) 0 57%, var(--arcade-bottom) 57% 100%);
  background-size: 100% 1.35em;
  background-repeat: repeat-y;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(3px 0 0 var(--arcade-edge)) drop-shadow(-3px 0 0 var(--arcade-edge))
    drop-shadow(0 3px 0 var(--arcade-edge)) drop-shadow(0 -3px 0 var(--arcade-edge))
    drop-shadow(0 5px 0 var(--arcade-edge));
}
/* fallback for browsers without background-clip:text */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 { color: var(--arcade-bottom); background: none; }
}

h2 {
  font-family: var(--pixel);
  font-weight: 400;
  font-variation-settings: normal;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  line-height: 1.5;
  margin: 0 0 .9rem;
}

.side .who {
  font-family: var(--pixel);
  font-size: .95rem;
  font-variation-settings: normal;
  line-height: 1.4;
}

.part h3 { font-size: var(--step-1); }
.download { color: #fff; }
@media (prefers-color-scheme: dark) { .download { color: #15181b; } }

/* map tiles: muted to sit with the page, darkened in dark mode */
.leaflet-tile-pane { filter: grayscale(.6) contrast(.95); }
@media (prefers-color-scheme: dark) {
  .leaflet-tile-pane { filter: grayscale(.6) invert(1) hue-rotate(180deg) brightness(.85) contrast(.9); }
}

/* ---------- palette from the Pyroduct logo ---------- */
/* ink #1c1c1c, basalt #4b4e4f, ash #8d7369 / #6b5c55, lava #ff4500, flame #ff8c00,
   sulphur #fbdd12, glow #fef893, scoria #882d27 */
:root {
  --bg: #f6f3f0;
  --ink: #1c1c1c;
  --muted: #5a5554;
  --line: #ddd4ce;
  --link: #882d27;
  --accent: #ff4500;
  --tube: #1c1c1c;
  --tube-near: #ff4500;
  --arcade-top: #fbdd12;
  --arcade-bottom: #ff4500;
  --arcade-edge: #1c1c1c;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1c1c;
    --ink: #f3eee9;
    --muted: #a99e98;
    --line: #3a3634;
    --link: #fef893;
    --accent: #ff8c00;
    --tube: #f3eee9;
    --tube-near: #ff8c00;
    --arcade-edge: #000;
  }
}

/* status pills and active nav marker in scoria red (lava orange is too light for text) */
.status { color: var(--link); }
.side a[aria-current="true"] { box-shadow: inset 2px 0 0 var(--accent); }

/* download button: lava with ink text, like the logo */
.download { background: var(--accent); color: #1c1c1c; border: 2px solid #1c1c1c; box-shadow: 3px 3px 0 #1c1c1c; }
.download:hover { filter: none; background: #ff8c00; }
@media (prefers-color-scheme: dark) { .download { color: #1c1c1c; border-color: #000; box-shadow: 3px 3px 0 #000; } }

.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.copy { color: var(--link); }
.steps li::before { border-color: var(--accent); color: var(--link); }
@media (prefers-color-scheme: dark) { .steps li::before { color: var(--accent); } }

/* ---------- hero drawing: sections swept along the tube ---------- */
.tube.sweep { max-width: 100%; margin: 2rem 0 .75rem; }
.tube.sweep path { stroke-width: .7; opacity: .78; }
.tube.sweep path.near { stroke-width: 2; opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .tube.sweep path {
    animation: draw .55s cubic-bezier(.4, 0, .2, 1) forwards;
    animation-delay: calc(var(--i) * 14ms);
  }
}

/* ---------- pixel font on every heading and on the side menu ---------- */
h3, .part h3, .entry h3, .cite h3, .kv dt {
  font-family: var(--pixel);
  font-weight: 400;
  font-variation-settings: normal;
  letter-spacing: 0;
}
.part h3 { font-size: .95rem; line-height: 1.6; margin-bottom: .7rem; }
.entry h3, .cite h3 { font-size: .78rem; line-height: 1.7; margin-bottom: .45rem; }
.kv dt { font-size: .7rem; line-height: 1.7; padding-top: 1.05rem; }
@media (min-width: 640px) { .kv dt:first-of-type { padding-top: .15rem; } }

.side ul a { font-family: var(--pixel); font-size: .62rem; line-height: 1.6; letter-spacing: 0; }
@media (min-width: 900px) {
  .side ul { gap: 1rem; }
  .side ul a { font-size: .68rem; }
  .side a[aria-current="true"] { padding-left: .8rem; }
}

/* ---------- logo above the menu ---------- */
.side .logo { display: block; line-height: 0; flex: none; }
.side .logo img { width: 34px; height: 34px; image-rendering: auto; }
.side { display: flex; align-items: center; gap: 1rem; }
.side ul { min-width: 0; }
@media (min-width: 900px) {
  .side { align-items: flex-start; gap: 2.25rem; }
  .side .logo img { width: 112px; height: 112px; }
}

/* ---------- dark theme only (lava on basalt, like the logo) ---------- */
:root {
  color-scheme: dark;
  --bg: #1c1c1c;
  --ink: #f3eee9;
  --muted: #a99e98;
  --line: #3a3634;
  --link: #fef893;
  --accent: #ff8c00;
  --tube: #f3eee9;
  --tube-near: #ff4500;
  --arcade-top: #fbdd12;
  --arcade-bottom: #ff4500;
  --arcade-edge: #000;
}
.download { background: #ff4500; color: #1c1c1c; border-color: #000; box-shadow: 3px 3px 0 #000; }
.download:hover { background: #ff8c00; }
.steps li::before { color: var(--accent); }
.status { color: var(--accent); }
.side a[aria-current="true"] { box-shadow: inset 2px 0 0 #ff4500; }
.leaflet-tile-pane { filter: grayscale(.6) invert(1) hue-rotate(180deg) brightness(.85) contrast(.9); }
.leaflet-container { background: #2a2827; }
.leaflet-control-attribution { background: rgba(28, 28, 28, .8) !important; color: var(--muted); }
.leaflet-control-attribution a { color: var(--link); }

/* ---------- basalt grey background, colours taken only from the logo ---------- */
/* logo: #4b4e4f basalt grey, #1c1c1c ink, #fbdd12 sulphur, #ff8c00 flame,
   #ff4500 lava, #fef893 glow, #882d27 scoria, #8d7369 / #6b5c55 ash */
:root {
  --bg: #4b4e4f;
  --ink: #f4f1ee;
  --muted: #d3c9c3;
  --line: #6b5c55;
  --link: #fef893;
  --accent: #fbdd12;
  --tube: #f4f1ee;
  --tube-near: #ff4500;
  --arcade-edge: #1c1c1c;
}
/* title: the three bands of the logo's volcano and flame */
.hero h1 {
  background: linear-gradient(to bottom, #fbdd12 0 38%, #ff8c00 38% 64%, #ff4500 64% 100%);
  background-size: 100% 1.35em;
  background-repeat: repeat-y;
  -webkit-background-clip: text;
  background-clip: text;
}
.download { background: #ff4500; color: #1c1c1c; border: 2px solid #1c1c1c; box-shadow: 3px 3px 0 #1c1c1c; }
.download:hover { background: #ff8c00; }
.status { color: #fbdd12; }
.side a[aria-current="true"] { box-shadow: inset 2px 0 0 #ff4500; }
.steps li::before { border-color: #ff8c00; color: #fbdd12; }
.filters button[aria-pressed="true"] { background: #1c1c1c; color: #fbdd12; border-color: #1c1c1c; }
.copy { color: #fef893; }
.copy:hover, .search:focus { border-color: #fbdd12; }
.prose code, .codeish { background: #1c1c1c; color: #fef893; }
#map, .leaflet-container { background: #3a3c3d; border-color: #1c1c1c; }
.leaflet-control-attribution { background: rgba(28, 28, 28, .85) !important; }
.slot { border-color: #6b5c55; }
.leaflet-control-attribution, .leaflet-control-attribution a { color: #d3c9c3 !important; }
.leaflet-control-attribution a { color: #fef893 !important; }
.leaflet-bar a { background: #1c1c1c !important; color: #fbdd12 !important; border-color: #4b4e4f !important; }

/* ---------- glowing lava, 80s arcade neon ---------- */
@property --glow { syntax: '<length>'; inherits: false; initial-value: 6px; }
@property --heat { syntax: '<number>'; inherits: false; initial-value: 1; }

.hero h1 {
  filter:
    drop-shadow(3px 0 0 #1c1c1c) drop-shadow(-3px 0 0 #1c1c1c)
    drop-shadow(0 3px 0 #1c1c1c) drop-shadow(0 -3px 0 #1c1c1c)
    drop-shadow(0 5px 0 #1c1c1c)
    drop-shadow(0 0 var(--glow) rgba(255, 140, 0, .75))
    drop-shadow(0 0 calc(var(--glow) * 2.4) rgba(255, 69, 0, .45))
    brightness(var(--heat));
}
.side .logo img {
  filter:
    drop-shadow(0 0 calc(var(--glow) * .8) rgba(255, 140, 0, .7))
    drop-shadow(0 0 calc(var(--glow) * 2) rgba(255, 69, 0, .4))
    brightness(var(--heat));
}

@media (prefers-reduced-motion: no-preference) {
  .hero h1 {
    animation:
      neon-ignite 1.4s steps(1, end) 1,
      lava-glow 2.8s ease-in-out 1.4s infinite alternate,
      neon-flicker 9s linear 3s infinite;
  }
  .side .logo img {
    animation:
      neon-ignite 1.4s steps(1, end) .25s 1 backwards,
      lava-glow 3.4s ease-in-out 1.6s infinite alternate,
      neon-flicker 11s linear 5s infinite;
  }
}

/* the sign switching on: a few stuttering flashes, then steady */
@keyframes neon-ignite {
  0%   { opacity: .15; }
  12%  { opacity: 1; }
  18%  { opacity: .3; }
  30%  { opacity: 1; }
  36%  { opacity: .55; }
  44%, 100% { opacity: 1; }
}
/* molten breathing */
@keyframes lava-glow {
  from { --glow: 3px; }
  to   { --glow: 13px; }
}
/* the odd tired-neon dip */
@keyframes neon-flicker {
  0%, 46%, 49.5%, 51%, 86%, 87.5%, 100% { --heat: 1; }
  47%   { --heat: .62; }
  48.5% { --heat: 1.08; }
  50%   { --heat: .7; }
  86.8% { --heat: .78; }
}

/* ---------- hero tube: yellow-to-orange lava, glowing, drawn in a loop ---------- */
.tube.sweep { filter: drop-shadow(0 0 calc(var(--glow) * .6) rgba(255, 140, 0, .55)); overflow: visible; }
.tube.sweep path, .tube.sweep path.near { stroke: url(#lava); opacity: 1; }
.tube.sweep path { stroke-width: .8; }
.tube.sweep path.near { stroke-width: 2.2; }

@media (prefers-reduced-motion: no-preference) {
  .tube.sweep { animation: lava-glow 2.6s ease-in-out infinite alternate; }
  .tube.sweep path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: tube-loop 7s cubic-bezier(.4, 0, .2, 1) infinite;
    animation-delay: calc(var(--i) * 14ms);
  }
}
/* each section: draws in, stays lit, cools and fades, then waits for the next pass */
@keyframes tube-loop {
  0%   { stroke-dashoffset: 1; opacity: 1; }
  10%  { stroke-dashoffset: 0; opacity: 1; }
  58%  { stroke-dashoffset: 0; opacity: 1; }
  74%  { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: 1; opacity: 0; }
}

/* ---------- neon flicker while the visitor is on the page ---------- */
/* irregular stutters: deep dips with a quick re-strike, then steady glow */
@keyframes neon-stutter {
  0%, 31%, 37.5%, 74%, 79%, 100% { --heat: 1; }
  32%   { --heat: .35; }
  33%   { --heat: 1.1; }
  34.5% { --heat: .45; }
  36%   { --heat: 1; }
  75%   { --heat: .55; }
  76.5% { --heat: 1.05; }
  77.5% { --heat: .4; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1 {
    animation:
      neon-ignite 1.4s steps(1, end) 1,
      lava-glow 2.8s ease-in-out 1.4s infinite alternate,
      neon-stutter 6.3s steps(1, end) 2s infinite;
  }
  .side .logo img {
    animation:
      neon-ignite 1.4s steps(1, end) .25s 1 backwards,
      lava-glow 3.4s ease-in-out 1.6s infinite alternate,
      neon-stutter 8.7s steps(1, end) 4.1s infinite;
  }
}

/* ---------- arcade screen: black centre, lighter towards the edges ---------- */
html { background: #1c1c1c; }
body { background: transparent; position: relative; }
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  /* logo black in the middle of the screen, logo basalt grey at the rim */
  background: radial-gradient(ellipse 85% 80% at 50% 50%, #000 0%, #1c1c1c 45%, #2f3132 75%, #4b4e4f 100%);
}
/* faint scanlines, like a CRT */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px);
}
.side { background: transparent; }
@media (max-width: 899px) {
  .side { background: rgba(14, 14, 14, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); margin: 0 -16px; padding: .75rem 16px; }
}
.download { border-color: #000; box-shadow: 3px 3px 0 #000, 0 0 14px rgba(255, 69, 0, .35); }
#map, .leaflet-container { background: #141414; border-color: #3a3634; }
:root { --line: #3a3634; }

/* ---------- body text: VT323, 80s computer terminal ---------- */
:root {
  --sans: "VT323", ui-monospace, "Courier New", monospace;
  --step--1: 1.18rem;
  --step-0: 1.4rem;
  --step-1: 1.7rem;
  --measure: 70ch;
}
body { line-height: 1.35; font-variation-settings: normal; }
.entry h3, .cite h3 { font-size: .78rem; }
.prose li { margin-bottom: .2rem; }
td, th { padding-right: 1rem; }
@media (max-width: 899px) {
  /* full-width bar without widening the page */
  .side { margin: 0; padding: .75rem 0; box-shadow: 0 0 0 100vmax rgba(14, 14, 14, .9); clip-path: inset(0 -100vmax); }
}
.cite p, .prose p, td { overflow-wrap: anywhere; }
.hero .lede { line-height: 1.15; max-width: 40ch; }
footer .stats-note { margin-top: .5rem; }

/* ---------- contact form ---------- */
.contact-form { max-width: 40rem; }
.contact-form .row { display: grid; gap: 0 1.25rem; }
@media (min-width: 640px) { .contact-form .row { grid-template-columns: 1fr 1fr; } }
.contact-form .field { margin-bottom: 1.1rem; }
.contact-form label {
  display: block; margin-bottom: .45rem;
  font-family: var(--pixel); font-size: .68rem; line-height: 1.6; color: #fbdd12;
}
.contact-form input, .contact-form textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: #141414; border: 2px solid #6b5c55; border-radius: 0;
  padding: .45rem .65rem;
}
.contact-form textarea { resize: vertical; min-height: 9rem; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: #fbdd12; box-shadow: 0 0 10px rgba(251, 221, 18, .35); }
.contact-form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { color: var(--muted); font-size: var(--step--1); margin: 0 0 1rem; }
button.download { font: inherit; cursor: pointer; }
button.download:disabled { opacity: .6; cursor: progress; }
.form-status { min-height: 1.5em; margin: .75rem 0 0; }
.form-status[data-kind="ok"] { color: #fbdd12; }
.form-status[data-kind="error"] { color: #ff8c00; }

/* ---------- arcade buttons (video PLAY overlay) ---------- */
.arcade-btn {
  font-family: var(--pixel); font-size: .8rem; line-height: 1; letter-spacing: .04em; text-transform: uppercase;
  color: #1c1c1c; background: #fbdd12;
  border: 3px solid #000; border-radius: 0;
  padding: .85rem 1.25rem .8rem;
  box-shadow: 4px 4px 0 #000, 0 0 18px rgba(251, 221, 18, .35);
  cursor: pointer;
}
.arcade-btn:hover { background: #fef893; }
.arcade-btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #000; }
.arcade-btn:focus-visible { outline: 3px solid #ff8c00; outline-offset: 3px; }
.arcade-btn.alt { background: #ff4500; box-shadow: 4px 4px 0 #000, 0 0 18px rgba(255, 69, 0, .35); }
.arcade-btn.alt:hover { background: #ff8c00; }
.arcade-btn[hidden] { display: none; }
@keyframes insert-coin { 0%, 60% { box-shadow: 4px 4px 0 #000, 0 0 22px rgba(251, 221, 18, .55); } 61%, 100% { box-shadow: 4px 4px 0 #000, 0 0 6px rgba(251, 221, 18, .15); } }

/* ---------- demo video: own poster, YouTube loaded only on PLAY ---------- */
.video { margin: 0; max-width: 52rem; }
.video-frame {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  background: #000; border: 3px solid #000;
  box-shadow: 6px 6px 0 #000, 0 0 26px rgba(255, 140, 0, .22);
  overflow: hidden;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.video-start {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0; margin: 0; border: 0; background: #000; cursor: pointer; display: block;
}
.video-start img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .25s ease; }
.video-start::after {               /* CRT scanlines over the poster */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px);
}
.video-start:hover img, .video-start:focus-visible img { filter: brightness(1.12); }
.video-start:focus-visible { outline: 3px solid #ff8c00; outline-offset: -6px; }
.video-play {
  position: absolute; right: 4%; bottom: 7%; z-index: 1;
  display: inline-block; pointer-events: none;
}
.video-start:hover .video-play { background: #fef893; }
.video-start:active .video-play { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #000; }
@media (prefers-reduced-motion: no-preference) {
  .video-play { animation: insert-coin 1.2s steps(1, end) infinite; }
}
.video-frame.has-play .video-play { display: none; }   /* the poster already shows its own PLAY button */
.video figcaption { color: var(--muted); font-size: var(--step--1); margin-top: 1rem; max-width: var(--measure); }
.video-note { display: block; margin-top: .3rem; }
@media (max-width: 640px) { .video-play { right: 3%; bottom: 5%; } .video-frame { box-shadow: 4px 4px 0 #000; } }
.contact-form .consent { display: flex; gap: .7rem; align-items: flex-start; margin: .2rem 0 1rem;
  font-family: var(--sans); font-size: var(--step--1); line-height: 1.3; color: var(--ink); cursor: pointer; }
.contact-form .consent input { width: 1.2rem; height: 1.2rem; flex: none; margin-top: .15rem; accent-color: #fbdd12; padding: 0; }

/* hero: name of the catalog cave whose real sections are being drawn */
.tube-source { display: block; margin-top: .3rem; color: var(--muted); min-height: 1.4em; }

/* Software: tutorials (grid of click-to-load YouTube videos) */
.tutorials { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1.6rem 1.4rem; }
.video.tutorial { max-width: none; }
.video.tutorial .video-play { font-size: .62rem; padding: .6rem .8rem .55rem; }
.video.tutorial figcaption { margin-top: .6rem; font-size: var(--step--1); line-height: 1.25; }
.video.tutorial figcaption b { color: #fbdd12; font-weight: normal; }
.tut-n { font-family: "Press Start 2P", monospace; font-size: .6rem; color: #ff8c00; margin-right: .3rem; }
.tut-empty { color: var(--muted); max-width: var(--measure); border-left: 4px solid #ff8c00; padding: .4rem 0 .4rem 1rem; }

/* phone menu: the current page is underlined in lava instead of the side bar used on desktop */
@media (max-width: 899px) {
  .side ul { padding-bottom: .45rem; }
  .side a[aria-current="true"] {
    box-shadow: none; padding-left: 0;
    text-decoration: underline; text-decoration-color: #ff4500;
    text-decoration-thickness: 3px; text-underline-offset: .5em;
  }
}
