/* Concept: the product is restraint, so the page is a breaker panel. Dark enamel modules with engraved
   condensed labels sit on a quiet concrete page. Orange means tripped or not built; green means armed or built.
   Everything else is neutral. */
:root {
  --bg: #e4e7e7;
  --bg2: #dadede;
  --ink: #10181c;
  --muted: #475660;
  --line: #bcc4c6;
  --link: #0a5f66;
  --panel: #1b2125;
  --panel-hi: #262e33;
  --panel-lo: #12171a;
  --engrave: #d3dce0;
  --engrave-dim: #8fa1a9;
  --ok: #38c172;
  --trip: #ff6a2b;
  --trip-ink: #a8400e;
  --trip-soft: #fbe6da;
  --amber: #e0a526;
  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1114; --bg2: #11171b; --ink: #e7eef1; --muted: #93a4ad; --line: #223037; --link: #5fd0c4;
    --panel: #161c20; --panel-hi: #1f272c; --panel-lo: #0e1316; --trip-ink: #ff8a52; --trip-soft: #34211a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1114; --bg2: #11171b; --ink: #e7eef1; --muted: #93a4ad; --line: #223037; --link: #5fd0c4;
  --panel: #161c20; --panel-hi: #1f272c; --panel-lo: #0e1316; --trip-ink: #ff8a52; --trip-soft: #34211a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; padding-inline: 1rem; padding-block: 0 3rem; }
.wrap { max-width: 72rem; margin-inline: auto; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--link); }
code, .mono { font-family: var(--font-mono); font-size: 0.88em; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* header */
.top { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; justify-content: space-between; padding-block: 1.25rem; }
.mark { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-size: 0.92rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); text-decoration: underline; }

/* hero */
.hero { padding-block: clamp(1.5rem, 5vw, 3.5rem) 2rem; display: flex; flex-direction: column; gap: 1.1rem; }
.kicker { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.hero h1 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.005em; line-height: 0.95; font-size: clamp(3rem, 11vw, 7.2rem); max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--trip-ink); }
.hero .lede { font-size: 1.2rem; color: var(--muted); max-width: 38rem; }
.status { display: flex; flex-wrap: wrap; gap: 0.6rem 0.9rem; align-items: center; margin-top: 0.5rem; }
.pill { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.34rem 0.75rem; border-radius: 999px; background: var(--trip-soft); color: var(--trip-ink); }
.btn { display: inline-block; padding: 0.6rem 1.05rem; border: 1.5px solid var(--ink); border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.btn:hover { background: var(--ink); color: var(--bg); }

/* panel */
.panel-wrap { background: var(--panel); border-radius: 14px; padding: clamp(0.9rem, 3vw, 1.6rem); border: 1px solid #000; box-shadow: 0 30px 60px -34px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.05); }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.4rem 1rem; margin-bottom: 1rem; }
.panel-title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--engrave); font-size: 1.05rem; }
.panel-hint { font-family: var(--font-mono); font-size: 0.72rem; color: var(--engrave-dim); }
.breakers { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.6rem, 1fr)); gap: 0.75rem; }
.breaker { background: linear-gradient(var(--panel-hi), var(--panel)); border: 1px solid #000; border-radius: 8px; padding: 0.85rem 0.8rem 0.9rem; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-align: center; box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 8px 16px -10px rgba(0,0,0,0.7); min-width: 0; }
.b-label { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; font-size: 1.12rem; line-height: 1.1; color: var(--engrave); text-shadow: 0 -1px 0 rgba(0,0,0,0.6); }
.b-rating { font-family: var(--font-mono); font-size: 0.66rem; color: var(--engrave-dim); letter-spacing: 0.03em; }
.toggle { all: unset; box-sizing: border-box; cursor: pointer; position: relative; width: 3.4rem; height: 5.2rem; border-radius: 7px; background: var(--panel-lo); border: 1px solid #000; box-shadow: inset 0 3px 8px rgba(0,0,0,0.8); }
.toggle:focus-visible { outline: 3px solid var(--engrave); outline-offset: 3px; }
.lever { position: absolute; left: 14%; width: 72%; height: 47%; top: 7%; border-radius: 5px; background: linear-gradient(#f1f5f6, #a9b6bc); box-shadow: 0 3px 5px rgba(0,0,0,0.6), inset 0 1px 0 #fff; }
.toggle[aria-checked="false"] .lever { top: 46%; background: linear-gradient(#ffb08a, var(--trip)); box-shadow: 0 -3px 5px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.4); }
@media (prefers-reduced-motion: no-preference) { .lever { transition: top 0.14s ease-out; } }
.led { width: 0.62rem; height: 0.62rem; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px 1px var(--ok); }
.breaker[data-state="tripped"] .led { background: var(--trip); box-shadow: 0 0 8px 1px var(--trip); }
.b-state { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--engrave); }
.breaker[data-state="tripped"] .b-state { color: var(--trip); }
.b-stops { font-size: 0.84rem; line-height: 1.4; color: var(--engrave-dim); }
.breaker details { font-size: 0.78rem; color: var(--engrave-dim); width: 100%; text-align: left; }
.breaker summary { cursor: pointer; text-align: center; color: var(--engrave); font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; }
.breaker details p { margin-top: 0.4rem; line-height: 1.4; }

.main { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.9rem 1.2rem; padding: 0.9rem 1rem; border-radius: 8px; border: 1px solid #000; background: repeating-linear-gradient(-45deg, var(--panel-lo) 0 14px, #2b2420 14px 28px); }
.main .b-label { font-size: 1.35rem; text-align: left; }
.main .b-stops { max-width: 28rem; text-align: left; }
.main-btns { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.big { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 1.15rem; padding: 0.7rem 1.4rem; border-radius: 6px; border: 1px solid #000; cursor: pointer; background: var(--trip); color: #190a03; box-shadow: 0 4px 0 #7a2d0a, 0 8px 14px -6px rgba(0,0,0,0.7); }
.big:active { transform: translateY(2px); box-shadow: 0 2px 0 #7a2d0a; }
.big.plain { background: var(--panel-hi); color: var(--engrave); box-shadow: 0 4px 0 #000, 0 8px 14px -6px rgba(0,0,0,0.7); }
.big:disabled { opacity: 0.45; cursor: not-allowed; }
.big:focus-visible { outline: 3px solid var(--engrave); outline-offset: 3px; }

.eventstrip { margin-top: 1rem; background: #090d10; color: var(--engrave); font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.55; padding: 0.9rem 1rem; border-left: 4px solid var(--ok); border-radius: 6px; min-height: 4.6rem; }
.eventstrip[data-kind="trip"], .eventstrip[data-kind="main"], .eventstrip[data-kind="locked"] { border-left-color: var(--trip); }
.eventstrip .t { color: var(--engrave-dim); }
.counter { font-family: var(--font-mono); font-size: 0.72rem; color: var(--engrave-dim); }

/* sections */
section { padding-block: 3.75rem 0.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
h2 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.98; font-size: clamp(2.2rem, 6vw, 3.6rem); max-width: 20ch; }
.prose { max-width: 40rem; color: var(--muted); }
.two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem 3rem; }
@media (min-width: 48rem) { .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* the run: a real sequence, so numbered terminals on a bus */
ol.run { list-style: none; margin: 0; padding: 0; counter-reset: t; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.9rem; }
ol.run li { position: relative; counter-increment: t; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 3.6rem 1.1rem 1.1rem; font-size: 0.97rem; line-height: 1.5; overflow: hidden; }
ol.run li::before { content: "0" counter(t); position: absolute; left: 1.1rem; top: 0.8rem; font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--trip-ink); letter-spacing: 0.02em; }
ol.run li .ic { position: absolute; right: 1rem; top: 0.9rem; width: 2.1rem; height: 2.1rem; color: var(--muted); }
ol.run b { font-weight: 700; display: block; margin-bottom: 0.25rem; }

.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.list li { padding-left: 1rem; border-left: 3px solid var(--line); }
.list b { font-weight: 700; }
.group h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.5rem; margin-bottom: 0.8rem; }

/* status board */
.scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); }
table { border-collapse: collapse; width: 100%; min-width: 36rem; font-size: 0.97rem; }
th, td { text-align: left; vertical-align: top; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
td:first-child { font-weight: 700; }
.lamp { display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.04em; text-transform: uppercase; }
.lamp::before { content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%; border: 2px solid var(--ink); }
.lamp.built::before { background: var(--ok); border-color: var(--ok); box-shadow: 0 0 6px var(--ok); }
.lamp.part::before { background: linear-gradient(90deg, var(--amber) 50%, transparent 50%); border-color: var(--amber); }
.lamp.none { color: var(--trip-ink); }
.lamp.none::before { border-color: var(--trip-ink); }

/* meters */
.meters { display: flex; flex-direction: column; gap: 1.4rem; max-width: 46rem; }
.mod h3 { font-family: var(--font-mono); font-size: 0.82rem; font-weight: 500; margin-bottom: 0.45rem; }
.mrow { display: grid; grid-template-columns: 8rem minmax(0, 1fr) 4.6rem; gap: 0.7rem; align-items: center; font-size: 0.85rem; padding-block: 0.15rem; }
.mrow .lab { color: var(--muted); }
.track { position: relative; height: 1rem; border-radius: 3px; background-color: var(--bg2); background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); background-size: 25% 100%; border-right: 1px solid var(--line); }
.fill { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 3px; background: var(--ink); }
.fill.seen { background: var(--engrave-dim); }
.fill.low { background: var(--trip); }
.mrow .val { font-family: var(--font-mono); text-align: right; font-variant-numeric: tabular-nums; }
.axis { display: grid; grid-template-columns: 8rem minmax(0, 1fr) 4.6rem; gap: 0.7rem; font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); }
.axis .ticks { display: flex; justify-content: space-between; }
@media (max-width: 30rem) { .mrow, .axis { grid-template-columns: 5.6rem minmax(0, 1fr) 3.8rem; } }
.note { font-size: 0.88rem; color: var(--muted); max-width: 40rem; }

.limits { background: var(--trip-soft); border-radius: 10px; padding: 1.1rem 1.3rem; max-width: 46rem; }
.limits h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.4rem; margin-bottom: 0.5rem; }
.limits ul { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.4rem; }

pre { margin: 0; background: var(--panel); color: var(--engrave); border-radius: 10px; padding: 1rem 1.25rem; font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.65; overflow-x: auto; }
pre .d { color: var(--engrave-dim); }
pre.agent { border-left: 4px solid var(--ok); }
.callout { background: var(--bg2); border-left: 4px solid var(--ink); padding: 1rem 1.2rem; max-width: 46rem; border-radius: 0 8px 8px 0; }
.callout b { font-weight: 700; }

footer { margin-top: 4rem; padding-top: 1.25rem; border-top: 2px solid var(--ink); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; font-size: 0.85rem; color: var(--muted); }

pre.receipt { border-left: 4px solid var(--trip); }
pre.receipt .stop { color: var(--trip); }
ul.finds { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; max-width: 44rem; }
ul.finds li { padding-left: 1rem; border-left: 3px solid var(--line); }
ul.finds b { font-weight: 700; }
.crumb { font-family: var(--font-mono); font-size: 0.78rem; }

/* path schematic: where a task is stopped */
.flow { list-style: none; margin: 0 0 1.1rem; padding: 0.9rem 0.6rem; display: grid; grid-template-columns: 1fr; gap: 0; background: var(--panel-lo); border: 1px solid #000; border-radius: 8px; box-shadow: inset 0 2px 8px rgba(0,0,0,0.7); }
.stn { position: relative; display: grid; grid-template-columns: 1.4rem 1fr; column-gap: 0.8rem; align-items: center; padding: 0.42rem 0; min-width: 0; }
.stn b { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; font-size: 1rem; color: var(--engrave); line-height: 1.05; }
.stn i { grid-column: 2; font-style: normal; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--engrave-dim); }
.stn .dot { grid-row: 1 / span 2; justify-self: center; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px 1px var(--ok); position: relative; z-index: 1; }
.stn.node .dot { border-radius: 3px; background: var(--engrave); box-shadow: 0 0 0 3px var(--panel-hi); }
.stn:not(:last-child)::after { content: ""; position: absolute; left: 0.7rem; top: 50%; width: 3px; height: 100%; margin-left: -1.5px; background: linear-gradient(var(--ok) 0 50%, transparent 50% 100%) 0 0 / 3px 14px; opacity: 0.85; }
.stn.dead { opacity: 0.38; }
.stn.dead .dot { background: var(--engrave-dim); box-shadow: none; }
.stn.dead:not(:last-child)::after, .stn.open:not(:last-child)::after { background: none; border-left: 2px dashed var(--engrave-dim); opacity: 0.4; width: 0; }
.stn.open .dot { background: var(--trip); box-shadow: 0 0 12px 2px var(--trip); border-radius: 2px; }
.stn.open b { color: var(--trip); }
.stn.open i::before { content: "stopped here · "; color: var(--trip); }
@media (prefers-reduced-motion: no-preference) {
  .stn:not(.dead):not(.open):not(:last-child)::after { animation: flow-v 0.9s linear infinite; }
  @keyframes flow-v { to { background-position: 0 14px; } }
}
@media (min-width: 58rem) {
  .flow { grid-template-columns: repeat(9, minmax(0, 1fr)); padding: 1.1rem 0.8rem 0.9rem; }
  .stn { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 0 0.2rem; row-gap: 0.25rem; }
  .stn i { grid-column: 1; }
  .stn .dot { grid-row: auto; margin-bottom: 0.2rem; }
  .stn:not(:last-child)::after { left: 50%; top: 0.45rem; width: 100%; height: 3px; margin: -1.5px 0 0; background: linear-gradient(90deg, var(--ok) 0 50%, transparent 50% 100%) 0 0 / 14px 3px; }
  .stn.dead:not(:last-child)::after, .stn.open:not(:last-child)::after { height: 0; width: 100%; border-left: 0; border-top: 2px dashed var(--engrave-dim); }
  @media (prefers-reduced-motion: no-preference) {
    .stn:not(.dead):not(.open):not(:last-child)::after { animation: flow-h 0.9s linear infinite; }
    @keyframes flow-h { to { background-position: 14px 0; } }
  }
}
@media (min-width: 40rem) { ol.run { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 58rem) { ol.run { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* mission page */
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); filter: saturate(0.92); }
.photo figcaption { margin-top: 0.4rem; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.04em; color: var(--muted); }
.photo.wide img { aspect-ratio: 5 / 2; object-fit: cover; object-position: 50% 0; }
.split { display: grid; gap: 1.5rem; align-items: center; margin-top: 1rem; }
@media (min-width: 52rem) { .split { grid-template-columns: 1fr 1fr; gap: 2.5rem; } .split.flip .photo { order: -1; } }
.cards3 { display: grid; gap: 0.9rem; grid-template-columns: 1fr; margin-top: 1.4rem; }
@media (min-width: 46rem) { .cards3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem 1.15rem 1.2rem; }
.card b { display: block; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.25rem; line-height: 1.1; margin-bottom: 0.4rem; }
.card p { font-size: 0.97rem; line-height: 1.5; color: var(--muted); }
.card.built b { color: #1f8f55; }
.card.part b { color: var(--amber); }
.card.none b { color: var(--trip-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card.built b { color: var(--ok); } }

.cat { display: grid; gap: 0.6rem; grid-template-columns: 1fr; margin: 1.4rem 0; align-items: stretch; }
.cat-step, .cat-out > div { background: var(--panel); color: var(--engrave); border: 1px solid #000; border-radius: 10px; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.25rem; }
.cat-step b, .cat-out b { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; font-size: 1.25rem; line-height: 1.1; }
.cat-step i, .cat-out i { font-style: normal; font-size: 0.92rem; color: var(--engrave-dim); }
.cat-step .n { font-family: var(--font-mono); font-size: 0.7rem; color: var(--engrave-dim); letter-spacing: 0.08em; }
.cat-step.key { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok), 0 0 18px -6px var(--ok); }
.cat-out { display: grid; gap: 0.6rem; }
.cat-out .yes { border-color: var(--ok); }
.cat-out .yes b { color: var(--ok); }
.cat-out .no b { color: var(--amber); }
.cat-arrow { align-self: center; justify-self: center; width: 2px; height: 1.2rem; background: var(--muted); position: relative; }
.cat-arrow::after { content: ""; position: absolute; bottom: -2px; left: -4px; border: 5px solid transparent; border-top: 7px solid var(--muted); }
@media (min-width: 56rem) {
  .cat { grid-template-columns: 1fr 1.4rem 1.2fr 1.4rem 1.5fr; }
  .cat-arrow { width: 1.2rem; height: 2px; }
  .cat-arrow::after { bottom: auto; left: auto; right: -2px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--muted); border-top-color: transparent; }
}
ol.run.four { margin-top: 1.4rem; }
@media (min-width: 58rem) { ol.run.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
ol.run.four li::before { content: ""; }
ol.run.four li { padding-top: 3.6rem; }
ol.run.four li .ic { left: 1.1rem; right: auto; top: 0.9rem; width: 2.2rem; height: 2.2rem; color: var(--trip-ink); }
.card.area { display: flex; flex-direction: column; gap: 0.5rem; }
.card.area .tag { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.card.area b { margin-bottom: 0; font-size: 1.45rem; }
.card.area .stat { margin-top: auto; padding-top: 0.7rem; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--ink); }
.card.area.ask { border-style: dashed; }
.card.area .stat .lamp { margin-right: 0.5rem; }

/* Featured projects carousel (enhanced by featured.js; without it the slides simply stack). Dark enamel like the panel. */
.carousel { display: flex; flex-direction: column; gap: 1rem; }
.carousel .slide { display: flex; flex-direction: column; gap: 1rem; background: linear-gradient(var(--panel-hi), var(--panel)); color: var(--engrave); border: 1px solid #000; border-radius: 14px; padding: clamp(1rem, 3vw, 1.6rem); box-shadow: 0 30px 60px -34px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.06); }
.carousel .slide[hidden] { display: none; }
.carousel .slide .kicker, .carousel .slide .note { color: var(--engrave-dim); }
.carousel .slide .note a { color: var(--engrave); }
.carousel .slide h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; font-size: clamp(2.1rem, 6vw, 3.1rem); line-height: 1; margin: 0.15rem 0 0.7rem; color: #fff; }
.slide-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; }
.slide-head .art { width: min(15rem, 100%); height: auto; color: var(--engrave-dim); flex: none; }
.art .hot { stroke: var(--ok); }
.art .dot circle { fill: var(--trip); }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; }
.slide .lamp { color: var(--engrave); }
.slide .lamp::before { border-color: var(--engrave-dim); }
.slide .lamp.none { color: var(--trip); }
.slide .lamp.none::before { border-color: var(--trip); background: var(--trip); box-shadow: 0 0 6px var(--trip); }
.slide .lamp.built::before { background: var(--ok); border-color: var(--ok); box-shadow: 0 0 6px var(--ok); }
.slide .list li { border-left-color: #3a464d; }
.slide .list li:first-child { border-left-color: var(--ok); }
.carousel-bar { display: flex; align-items: center; gap: 0.8rem; font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.carousel-bar button { font: inherit; padding: 0.4rem 0.9rem; border: 1px solid #000; background: var(--panel-hi); color: var(--engrave); border-radius: 6px; cursor: pointer; box-shadow: 0 3px 0 #000; }
.carousel-bar button:active { transform: translateY(2px); box-shadow: 0 1px 0 #000; }
.carousel-bar button:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) { .carousel .slide:not([hidden]) { animation: slidein 0.35s ease-out; } @keyframes slidein { from { opacity: 0; transform: translateY(6px); } } }
