/* ============================================================
   Samuel Kohtala — samuelkohtala.fi
   "Bench instrument" design: putty-beige front panels, dark
   bakelite chassis, phosphor-green CRT, amber LED readouts.
   Plain CSS, no build step.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --chassis:    #16140f;
  --chassis-2:  #1e1b14;
  --chassis-3:  #2a261d;
  --chassis-hi: #3a352a;
  --glass:      #07120c;

  --phos:       #8dff9f;
  --phos-2:     #46e07a;
  --phos-dim:   rgba(90, 255, 140, .14);
  --phos-glow:  rgba(120, 255, 160, .45);

  --amber:      #ffb531;
  --amber-2:    #e08a10;
  --amber-dim:  rgba(255, 181, 49, .16);

  --putty:      #d9cfb5;
  --putty-2:    #cbc0a4;
  --putty-3:    #b5a98b;
  --putty-hi:   #ece5d3;
  --putty-lo:   #9a8e72;

  --ink:        #26221b;
  --ink-2:      #5b5344;
  --ink-3:      #7f7661;
  --red:        #e0472c;

  --font-display: 'Michroma', 'Eurostile', 'Arial Black', sans-serif;
  --font-body:    'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --font-crt:     'VT323', 'IBM Plex Mono', monospace;
  --font-label:   'Barlow Condensed', 'Arial Narrow', sans-serif;

  --measure: 62ch;
  --wrap: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --r-sm: 3px;
  --r-md: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--chassis);
  color: var(--putty-hi);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.panel :focus-visible { outline-color: var(--red); }
::selection { background: var(--amber); color: var(--chassis); }
.panel ::selection { background: var(--ink); color: var(--putty-hi); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.mono { font-family: var(--font-mono); }

/* ---------- Surfaces ---------- */
.deck  { background: var(--chassis); color: var(--putty-hi); }
.deck-2 { background: var(--chassis-2); }
.panel {
  background: var(--putty);
  color: var(--ink);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(255,255,255,.35), transparent 55%),
    linear-gradient(180deg, var(--putty-hi), var(--putty) 18%, var(--putty) 82%, var(--putty-2));
}
.panel a { color: var(--ink); }
.section { padding-block: clamp(4rem, 9vw, 7rem); position: relative; }

/* Ventilation grille between chassis and panel */
.grille {
  height: 18px;
  background:
    repeating-linear-gradient(90deg, transparent 0 10px, rgba(0,0,0,.55) 10px 13px);
  background-color: var(--chassis-3);
  box-shadow: inset 0 2px 3px rgba(0,0,0,.6), inset 0 -1px 0 rgba(255,255,255,.06);
}

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  letter-spacing: .02em;
  font-weight: 400;
}
.h-sec {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.9vw, 2.35rem);
  letter-spacing: .015em;
  margin-top: .8rem;
  max-width: 22ch;
}
.lede {
  font-size: 1.15rem;
  max-width: var(--measure);
  color: inherit;
  opacity: .9;
}
.deck .lede { color: var(--putty-2); opacity: 1; }
.small { font-size: .9rem; }

/* Engraved / silkscreened labels */
.label {
  font-family: var(--font-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .82rem;
  line-height: 1;
}
.panel .label { color: var(--ink-2); text-shadow: 0 1px 0 rgba(255,255,255,.55); }
.deck  .label { color: var(--amber); }

/* Riveted nameplate */
.plate {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  padding: .55rem 1.1rem;
  border-radius: var(--r-sm);
  position: relative;
}
.plate::before, .plate::after {
  content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 35%, #fff 0 15%, #9c927a 40%, #4b4436 100%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35), 0 1px 0 rgba(255,255,255,.4);
}
.plate::before { transform: rotate(38deg); }
.plate::after  { transform: rotate(-24deg); }
.plate span { position: relative; }
.panel .plate {
  background: linear-gradient(180deg, var(--putty-hi), var(--putty-2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 -1px 0 rgba(0,0,0,.18), 0 1px 2px rgba(0,0,0,.25);
}
.deck .plate {
  background: linear-gradient(180deg, var(--chassis-hi), var(--chassis-3));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 -1px 0 rgba(0,0,0,.6), 0 1px 2px rgba(0,0,0,.5);
}
.deck .plate::before, .deck .plate::after {
  background: radial-gradient(circle at 35% 35%, #d6cfbd 0 15%, #6e675a 40%, #23201a 100%);
}
.sec-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head .lede { margin-top: 1rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, var(--chassis-3), var(--chassis-2));
  border-bottom: 1px solid rgba(0,0,0,.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 1px 0 rgba(255,255,255,.04);
}
.nav-in {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 60px;
}
.brand {
  display: flex; align-items: center; gap: .8rem; text-decoration: none;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 4px; flex: none;
  background: var(--putty);
  display: grid; place-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 1px 2px rgba(0,0,0,.6);
}
.brand-mark img { width: 30px; height: 30px; mix-blend-mode: multiply; }
.brand-text { display: grid; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-size: .78rem; letter-spacing: .08em; color: var(--putty-hi); }
.brand-sub  { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; color: var(--amber); text-transform: uppercase; }
.nav-links { display: flex; gap: .15rem; }
.nav-links a {
  font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem;
  color: var(--putty-2); text-decoration: none; padding: .55rem .7rem; border-radius: var(--r-sm);
  position: relative;
}
.nav-links a:hover { color: var(--putty-hi); background: rgba(255,255,255,.05); }
.nav-links a[aria-current="true"] { color: var(--amber); }
.nav-links a[aria-current="true"]::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .3rem; height: 2px;
  background: var(--amber); box-shadow: 0 0 6px var(--amber);
}
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-sm); color: var(--putty-hi); }
.nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; margin: 4px auto; transition: transform .25s var(--ease), opacity .25s; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; padding: .6rem var(--gutter) 1rem;
    background: var(--chassis-2); border-bottom: 1px solid rgba(0,0,0,.7);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem);
  background:
    radial-gradient(ellipse at 70% 40%, rgba(70, 224, 122, .07), transparent 55%),
    var(--chassis);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.2vw, 3.9rem);
  line-height: 1.02; letter-spacing: .01em; text-transform: uppercase;
  margin-top: 1.2rem;
}
.hero-name .thin { color: var(--putty-2); }
.hero-name .suffix { font-size: .42em; letter-spacing: .06em; text-transform: none; color: var(--amber); vertical-align: .18em; margin-left: .15em; }
.hero-alias { margin: .55rem 0 0; font-family: var(--font-display); font-size: clamp(.95rem, 2vw, 1.45rem); letter-spacing: .22em; text-transform: uppercase; color: var(--phos-2); text-shadow: 0 0 10px var(--phos-dim); }
.hero-alias a { text-decoration: none; }
.hero-alias a:hover { color: var(--phos); }
.hero-thesis { margin-top: 1.4rem; font-size: 1.15rem; color: var(--putty-2); max-width: 46ch; }
.hero-thesis strong { color: var(--putty-hi); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 2rem; font-family: var(--font-mono); font-size: .78rem; color: var(--putty-3); letter-spacing: .04em; }
.hero-tags li::before { content: "▸ "; color: var(--phos-2); }

/* Buttons: keycaps */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem;
  padding: .75rem 1.15rem; border-radius: var(--r-sm); text-decoration: none;
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), filter .12s;
}
.btn:active { transform: translateY(2px); }
.btn-key {
  color: var(--ink); background: linear-gradient(180deg, var(--putty-hi), var(--putty-2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 3px 0 var(--putty-lo), 0 5px 8px rgba(0,0,0,.5);
}
.btn-key:hover { filter: brightness(1.04); }
.btn-key:active { box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 1px 0 var(--putty-lo), 0 2px 4px rgba(0,0,0,.5); }
.btn-dark {
  color: var(--putty-hi); background: linear-gradient(180deg, var(--chassis-hi), var(--chassis-3));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 3px 0 #0b0a07, 0 5px 8px rgba(0,0,0,.5);
}
.panel .btn-dark { color: var(--putty-hi); }
.btn-dark:hover, .panel .btn-dark:hover { color: var(--amber); }
.btn-dark:active { box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 #0b0a07, 0 2px 4px rgba(0,0,0,.5); }
.btn svg { width: 14px; height: 14px; }

/* Oscilloscope unit. The housing is a rendered image; the screen and controls are
   live elements placed over it. All positions are percentages of the 1009×1019 render,
   and type inside the unit is sized in container-query units so it scales with it. */
.scope {
  position: relative;
  container-type: inline-size;
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  filter: drop-shadow(0 30px 30px rgba(0,0,0,.55));
}
.scope-housing img { width: 100%; height: auto; display: block; }
.scope > * { position: absolute; }
.scope > .scope-housing { position: static; }

/* Screen: exact glass area of the render */
.crt {
  left: 5.65%; top: 9.72%; width: 69.57%; height: 58.68%;
  border-radius: 2.4cqw; overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #0d2316 0%, var(--glass) 62%, #020503 100%);
  box-shadow: inset 0 0 0 .2cqw #05080a, inset 0 0 6cqw 1cqw rgba(0,0,0,.9);
}
.crt-grat {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(140,255,170,.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(140,255,170,.10) 1px, transparent 1px),
    linear-gradient(to right, transparent calc(50% - 1px), rgba(140,255,170,.22) calc(50% - 1px), rgba(140,255,170,.22) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(to bottom, transparent calc(50% - 1px), rgba(140,255,170,.22) calc(50% - 1px), rgba(140,255,170,.22) calc(50% + 1px), transparent calc(50% + 1px));
  background-size: 10% 12.5%, 10% 12.5%, 100% 100%, 100% 100%;
}
.crt canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.crt-glass {
  position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.26) 2px 3px),
    radial-gradient(ellipse at 50% 50%, transparent 52%, rgba(0,0,0,.6) 100%),
    radial-gradient(ellipse 70% 55% at 30% 20%, rgba(255,255,255,.10), transparent 70%),
    radial-gradient(ellipse 22% 8% at 22% 10%, rgba(255,255,255,.16), transparent 100%),
    radial-gradient(ellipse 80% 70% at 80% 95%, rgba(0,0,0,.3), transparent 70%);
}
.crt-text {
  position: absolute; inset: 3.2cqw 2.6cqw auto 2.6cqw; display: flex; justify-content: space-between; pointer-events: none;
  font-family: var(--font-crt); font-size: 2.55cqw; line-height: 1; color: var(--phos); letter-spacing: .04em;
  text-shadow: 0 0 .6cqw var(--phos-glow);
}
.crt-text .ch2 { color: var(--amber); text-shadow: 0 0 .6cqw rgba(255,181,49,.5); }
.crt-foot { inset: auto 2.6cqw 2.6cqw 2.6cqw; }
.crt-foot output { font-variant-numeric: tabular-nums; }

/* Fader: sits on the painted slot; the track covers the painted knob so only the live one shows */
.fader { left: 4.56%; top: 77.6%; width: 54.6%; height: 4.6%; display: grid; align-items: center; }
.fader input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 100%; margin: 0; background: transparent; cursor: ew-resize; }
.fader input[type="range"]::-webkit-slider-runnable-track {
  height: .8cqw; border-radius: .4cqw; background: linear-gradient(180deg, #0a0a0a, #1b1b1a);
  box-shadow: inset 0 .15cqw .35cqw rgba(0,0,0,1), 0 .1cqw 0 rgba(255,255,255,.14);
}
.fader input[type="range"]::-moz-range-track {
  height: .8cqw; border-radius: .4cqw; background: linear-gradient(180deg, #0a0a0a, #1b1b1a);
  box-shadow: inset 0 .15cqw .35cqw rgba(0,0,0,1), 0 .1cqw 0 rgba(255,255,255,.14);
}
.fader input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 2.6cqw; height: 2.2cqw; margin-top: -0.7cqw; border-radius: .3cqw;
  background: linear-gradient(180deg, #f7f5ef, #dcd9d1 65%, #c2bfb6);
  box-shadow: inset 0 .1cqw 0 rgba(255,255,255,.9), inset 0 0 0 1px rgba(0,0,0,.35), 0 .35cqw .5cqw rgba(0,0,0,.75);
}
.fader input[type="range"]::-moz-range-thumb {
  width: 2.6cqw; height: 2.2cqw; border: 0; border-radius: .3cqw;
  background: linear-gradient(180deg, #f7f5ef, #dcd9d1 65%, #c2bfb6);
  box-shadow: inset 0 .1cqw 0 rgba(255,255,255,.9), inset 0 0 0 1px rgba(0,0,0,.35), 0 .35cqw .5cqw rgba(0,0,0,.75);
}
.fader input[type="range"]:focus-visible { outline: 2px solid var(--amber); outline-offset: .4cqw; border-radius: .5cqw; }

/* Keys: both built from the same sprite cut out of the render, stacked at identical size */
.key {
  left: 61.35%; width: 14.37%; height: 6.1%; border-radius: .7cqw; overflow: hidden;
  background: url("../assets/scope/key.png") center / 100% 100% no-repeat;
  font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: 1.55cqw;
  color: #fff; text-shadow: 0 .1cqw 0 rgba(0,0,0,.35);
  transition: transform .06s, filter .1s;
}
.key-stim { top: 76.4%; }
.key-ket  { top: 83.6%; filter: grayscale(1) brightness(.62); color: #e6e8e9; }
.key:hover { filter: brightness(1.06); }
.key-ket:hover { filter: grayscale(1) brightness(.72); }
.key:active { transform: translateY(.3cqw); filter: brightness(.85); }
.key-ket:active { filter: grayscale(1) brightness(.5); }
.key-ket[aria-pressed="true"] { filter: sepia(1) saturate(4) hue-rotate(-12deg) brightness(1.05); color: var(--ink); text-shadow: 0 .1cqw 0 rgba(255,255,255,.35); }
@media (max-width: 960px) { .scope { max-width: 560px; filter: drop-shadow(0 16px 18px rgba(0,0,0,.55)); } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(220px, .6fr) minmax(0, 1.4fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.monitor {
  background: linear-gradient(180deg, var(--putty-hi), var(--putty-2));
  padding: 12px 12px 34px; border-radius: 8px; margin: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -2px 0 rgba(0,0,0,.15), 0 12px 30px -14px rgba(0,0,0,.7);
  position: sticky; top: 84px; max-width: 360px;
}
@media (max-width: 900px) { .monitor { position: static; max-width: 320px; } }
.monitor img { border-radius: 6px / 9px; box-shadow: inset 0 0 0 2px #000, 0 0 0 2px #0e0d0a; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; width: 100%; height: auto; }
.monitor::after {
  content: ""; position: absolute; left: 22px; bottom: 12px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--phos-2); box-shadow: 0 0 8px var(--phos-glow);
}
.monitor figcaption { position: absolute; left: 40px; right: 14px; bottom: 9px; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.about-text p { max-width: var(--measure); }
.about-text p + p { margin-top: .2em; }

.spec {
  margin-top: 2rem; border-top: 1px solid var(--putty-3);
}
.spec div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--putty-3); font-size: .95rem; }
@media (max-width: 560px) { .spec div { grid-template-columns: 1fr; gap: .2rem; } }
.spec dt { font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--ink-2); padding-top: .2rem; text-shadow: 0 1px 0 rgba(255,255,255,.55); }
.spec dd { margin: 0; color: var(--ink); }

/* Readout rack: rendered cassette decks carrying the research-portal counts */
.rack { margin: 2.5rem 0 0; }
.rack img { width: 100%; height: auto; display: block; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25), 0 14px 30px -18px rgba(0,0,0,.7); }

/* LED readout strip (retired in favour of the rack image; kept for reuse) */
.readouts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 2px;
  margin-top: 2.5rem; background: #0c0b09; padding: 2px; border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 1px 0 rgba(255,255,255,.5);
}
.readout { background: #121009; padding: .9rem 1rem .8rem; border-radius: 4px; }
.readout b { display: block; font-family: var(--font-crt); font-size: 2.1rem; line-height: 1; color: var(--amber); text-shadow: 0 0 8px rgba(255,181,49,.55); font-weight: 400; }
.readout span { display: block; margin-top: .35rem; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--putty-3); }
.readouts-note { font-family: var(--font-mono); font-size: .7rem; color: var(--ink-3); margin-top: .6rem; }

/* ---------- Research ---------- */
.research-head { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(240px, 340px); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 860px) { .research-head { grid-template-columns: 1fr; } }
.pixel-unit { margin: 0; position: relative; container-type: inline-size; width: 100%; max-width: 380px; margin-inline: auto; filter: drop-shadow(0 24px 24px rgba(0,0,0,.5)); }
.pixel-housing img { width: 100%; height: auto; display: block; }
/* the screen: exact glass area of the render, percentages of the 716×942 cutout */
.pixel-screen {
  position: absolute; left: 13.27%; top: 8.39%; width: 67.74%; height: 47.56%;
  border-radius: 4.5cqw / 5cqw; overflow: hidden;
  background: radial-gradient(ellipse at 50% 42%, #10241a 0%, #08140d 60%, #040a07 100%);
  box-shadow: inset 0 0 0 .3cqw #05080a, inset 0 0 6cqw 1cqw rgba(0,0,0,.85);
}
.pixel-screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; image-rendering: pixelated; image-rendering: crisp-edges; }
.pixel-glass {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(4,10,7,.5) 1px, transparent 1px), linear-gradient(to bottom, rgba(4,10,7,.5) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0,0,0,.55) 100%),
    radial-gradient(ellipse 70% 50% at 30% 18%, rgba(255,255,255,.09), transparent 70%);
  background-size: calc(100% / 108) calc(100% / 100), calc(100% / 108) calc(100% / 100), 100% 100%, 100% 100%;
}
.pixel-foot {
  position: absolute; left: 6%; right: 6%; bottom: 5%; display: flex; justify-content: space-between; pointer-events: none;
  font-family: var(--font-crt); font-size: 2.6cqw; letter-spacing: .06em; color: var(--phos); text-shadow: 0 0 .6cqw var(--phos-glow);
}
.pixel-foot span:last-child { color: #ffd6b3; text-shadow: 0 0 .6cqw rgba(255,181,49,.5); }
@media (max-width: 860px) { .pixel-unit { max-width: 320px; } }
.themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; margin-top: 2.5rem; }
.module {
  background: linear-gradient(180deg, var(--chassis-3), var(--chassis-2));
  border-radius: 8px; padding: 1.4rem 1.4rem 1.5rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 -1px 0 rgba(0,0,0,.6), 0 1px 0 rgba(0,0,0,.7);
  display: flex; flex-direction: column; gap: .8rem;
}
.module .trace { position: relative; aspect-ratio: 96 / 28; width: 100%; border-radius: 6px; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #0d1a13 0%, #07110c 70%, #040a07 100%); box-shadow: inset 0 0 0 2px #0a0d0a, inset 0 0 14px rgba(0,0,0,.9); }
.module .trace canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; image-rendering: pixelated; image-rendering: crisp-edges; }
.module .trace::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, rgba(4,10,7,.5) 1px, transparent 1px), linear-gradient(to bottom, rgba(4,10,7,.5) 1px, transparent 1px), radial-gradient(ellipse at 50% 50%, transparent 60%, rgba(0,0,0,.5) 100%);
  background-size: calc(100% / 96) calc(100% / 28), calc(100% / 96) calc(100% / 28), 100% 100%; }
.module h3 { font-family: var(--font-display); font-size: 1.02rem; letter-spacing: .02em; color: var(--putty-hi); }
.module p { color: var(--putty-2); font-size: .97rem; margin: 0; flex: 1; }
.module .kw { display: flex; flex-wrap: wrap; gap: .35rem; }
.module .kw span { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; color: var(--phos-2); border: 1px solid rgba(70,224,122,.3); padding: .2rem .5rem; border-radius: 3px; }

.research-aside { display: grid; grid-template-columns: 1fr; gap: 1.2rem; margin-top: 1.2rem; }
.module .list { display: grid; gap: .55rem; }
.module .list li { display: grid; grid-template-columns: 5.2rem 1fr; gap: .8rem; font-size: .95rem; color: var(--putty-2); }
.module .list time, .module .list .k { font-family: var(--font-mono); font-size: .72rem; color: var(--amber); letter-spacing: .06em; padding-top: .25rem; }
.module .list a { color: var(--putty-hi); }
.module .inline-list { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-family: var(--font-mono); font-size: .74rem; color: var(--putty-2); }
.module .inline-list li::before { content: "·"; color: var(--amber); margin-right: .5rem; }
.module .inline-list li:first-child::before { content: none; }
.link-arrow { text-decoration: none; border-bottom: 1px solid currentColor; font-weight: 500; }
.link-arrow:hover { color: var(--amber); }
.panel .link-arrow:hover { color: var(--red); }

/* ---------- Publications ---------- */
.pubs-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(240px, 380px); gap: clamp(1rem, 3vw, 2.5rem); align-items: center; }
@media (max-width: 800px) { .pubs-head { grid-template-columns: 1fr; } .pubs-photo { max-width: 360px; margin-inline: auto; } }
.pubs-photo { margin: 0; }
.pubs-photo img {
  width: 100%; height: auto; display: block;
  /* the render's beige ground dissolves into the panel */
  -webkit-mask-image: radial-gradient(ellipse 62% 60% at 50% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 62% 60% at 50% 50%, #000 55%, transparent 100%);
  filter: drop-shadow(0 14px 22px rgba(0,0,0,.25));
}
.pubs { display: grid; gap: 0; }
.pub-year { display: grid; grid-template-columns: 6rem 1fr; gap: 1.5rem; padding: 1.6rem 0; border-top: 1px solid var(--putty-3); }
.pub-year:last-child { border-bottom: 1px solid var(--putty-3); }
@media (max-width: 640px) { .pub-year { grid-template-columns: 1fr; gap: .6rem; } }
.pub-year > .yr { font-family: var(--font-crt); font-size: 2.2rem; line-height: 1; color: var(--ink-2); text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.pub { padding: .55rem 0; display: grid; gap: .2rem; }
.pub + .pub { border-top: 1px dashed var(--putty-3); padding-top: .9rem; margin-top: .35rem; }
.pub .t { font-weight: 500; font-size: 1.02rem; line-height: 1.35; }
.pub .t a { text-decoration: none; }
.pub .t a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.pub .a { font-size: .9rem; color: var(--ink-2); }
.pub .m { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; font-family: var(--font-mono); font-size: .74rem; color: var(--ink-3); }
.pub .m em { font-style: normal; color: var(--ink-2); }
.tag {
  font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .66rem;
  padding: .18rem .45rem; border-radius: 2px; border: 1px solid var(--ink-3); color: var(--ink-2);
}
.tag-hi { background: var(--ink); color: var(--putty-hi); border-color: var(--ink); }
.pub-foot { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.pub-foot p { margin: 0; font-size: .9rem; color: var(--ink-2); flex-basis: 100%; }

/* ---------- Talks & media ---------- */
.log { border-top: 1px solid rgba(255,255,255,.1); }
.log-row {
  display: grid; grid-template-columns: 4.2rem 7.2rem 1fr auto; gap: 1rem; align-items: baseline;
  padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 760px) { .log-row { grid-template-columns: 4.2rem 1fr; } .log-row .k { grid-column: 2; } .log-row .t { grid-column: 1 / -1; } .log-row .l { grid-column: 1 / -1; justify-self: start; } }
.log-row .y { font-family: var(--font-crt); font-size: 1.35rem; color: var(--amber); text-shadow: 0 0 6px rgba(255,181,49,.4); }
.log-row .k { font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; color: var(--phos-2); }
.log-row .t { color: var(--putty-hi); }
.log-row .t small { display: block; color: var(--putty-3); font-size: .85rem; margin-top: .1rem; }
.log-row .l { font-family: var(--font-mono); font-size: .74rem; color: var(--putty-2); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); white-space: nowrap; }
.log-row .l:hover { color: var(--amber); border-color: var(--amber); }
.talks-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 900px) { .talks-grid { grid-template-columns: 1fr; } }
.module-photo { margin: -.4rem -.4rem .4rem; }
.module-photo img { width: 100%; height: auto; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.6), 0 8px 20px -12px rgba(0,0,0,.9); filter: sepia(.12) contrast(1.02); }
.module-photo figcaption { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; color: var(--putty-3); margin-top: .5rem; padding: 0 .4rem; }
.module .topics { display: grid; gap: .35rem; font-size: .95rem; color: var(--putty-2); }
.module .topics li::before { content: "—"; color: var(--amber); margin-right: .6rem; }

/* ---------- Studio ---------- */
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.2rem; margin-top: 2.5rem; }
.project {
  display: grid; grid-template-rows: auto 1fr; text-decoration: none; border-radius: 8px; overflow: hidden;
  background: linear-gradient(180deg, var(--putty-hi), var(--putty-2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(0,0,0,.15), 0 10px 24px -14px rgba(0,0,0,.6);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.project:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 16px 30px -14px rgba(0,0,0,.7); }
.project .shot { aspect-ratio: 16 / 10; overflow: hidden; margin: 10px 10px 0; border-radius: 5px; background: #000; box-shadow: inset 0 0 0 2px #000; }
.project .shot img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); transition: transform .6s var(--ease); }
.project:hover .shot img { transform: scale(1.03); }
.project .body { padding: 1rem 1.1rem 1.2rem; display: grid; gap: .45rem; align-content: start; }
.project .kind { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.project h3 { font-family: var(--font-display); font-size: 1rem; letter-spacing: .02em; }
.project p { margin: 0; font-size: .93rem; color: var(--ink-2); }
.project .url { font-family: var(--font-mono); font-size: .74rem; color: var(--ink); margin-top: .3rem; }

.gallery-head { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: flex-start; justify-content: space-between; margin-top: 4rem; }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; border-radius: 6px; background: var(--putty-3); box-shadow: inset 0 1px 2px rgba(0,0,0,.35); }
.tabs button {
  font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .74rem;
  padding: .55rem .85rem; border-radius: 4px; color: var(--ink-2);
}
.tabs button[aria-selected="true"] { background: linear-gradient(180deg, var(--putty-hi), var(--putty)); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(0,0,0,.3); }
.tabs button:hover:not([aria-selected="true"]) { color: var(--ink); }
.gallery-note { font-size: .9rem; color: var(--ink-2); max-width: 52ch; margin: 0; min-height: 4.4em; }
.subtabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.subtabs[hidden] { display: none; }
.subtabs button {
  font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .7rem;
  padding: .45rem .8rem; border-radius: 3px; color: var(--ink-2); border: 1px solid var(--putty-3);
  background: linear-gradient(180deg, var(--putty-hi), var(--putty-2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 2px 0 var(--putty-lo);
}
.subtabs button[aria-selected="true"] { color: var(--putty-hi); background: var(--ink); border-color: var(--ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 #000; transform: translateY(1px); }
.subtabs button:hover:not([aria-selected="true"]) { color: var(--ink); }
.gal { columns: 4 210px; column-gap: 1rem; margin-top: 1.5rem; }
.gal-item { break-inside: avoid; margin: 0 0 1rem; display: block; width: 100%; padding: 0; text-align: left; border-radius: 5px; overflow: hidden; background: var(--putty-2); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 1px 3px rgba(0,0,0,.25); position: relative; }
.gal-item img, .gal-item video { width: 100%; height: auto; display: block; transition: filter .3s; }
.gal-item:hover img { filter: brightness(1.06); }
.gal-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .75rem .6rem; display: block;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .04em; color: var(--putty-hi);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.75)); opacity: 0; transition: opacity .25s;
}
.gal-item:hover .cap, .gal-item:focus-visible .cap { opacity: 1; }
.gal-item[hidden] { display: none; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); width: auto; }
.lightbox::backdrop { background: rgba(8, 7, 5, .92); }
.lightbox-frame { position: relative; display: grid; gap: .6rem; }
.lightbox img, .lightbox video { max-width: 96vw; max-height: 82vh; width: auto; height: auto; margin: 0 auto; border-radius: 4px; box-shadow: 0 0 0 2px #000, 0 30px 60px -20px rgba(0,0,0,.9); display: block; }
.lightbox img[hidden], .lightbox video[hidden] { display: none; }
.lightbox figcaption { text-align: center; font-family: var(--font-mono); font-size: .8rem; color: var(--putty-2); }
.lightbox-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 4px;
  background: linear-gradient(180deg, var(--putty-hi), var(--putty-2)); color: var(--ink); font-size: 1.4rem; line-height: 1;
  box-shadow: 0 3px 0 var(--putty-lo), 0 4px 8px rgba(0,0,0,.6);
}
.lightbox-btn:active { transform: translateY(calc(-50% + 2px)); box-shadow: 0 1px 0 var(--putty-lo); }
.lightbox-prev { left: -56px; } .lightbox-next { right: -56px; }
.lightbox-close { position: absolute; top: -52px; right: 0; transform: none; }
.lightbox-close:active { transform: translateY(2px); }
@media (max-width: 1000px) { .lightbox-prev { left: 6px; } .lightbox-next { right: 6px; } .lightbox img { max-height: 76vh; } }

/* ---------- Archive ---------- */
.archive-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 260px); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 760px) { .archive-head { grid-template-columns: 1fr; } .archive-photo { max-width: 260px; } }
.archive-photo { margin: 0 0 2rem; }
.archive-photo img { width: 100%; height: auto; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.6), 0 12px 28px -14px rgba(0,0,0,.9); filter: sepia(.12) contrast(1.02); }
.archive-photo figcaption { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; color: var(--putty-3); margin-top: .5rem; }
.archive-list { border-top: 1px solid rgba(255,255,255,.1); }
.arc-row { display: grid; grid-template-columns: 7rem 3rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.08); align-items: baseline; }
@media (max-width: 640px) { .arc-row { grid-template-columns: 7rem 1fr; } .arc-row .lang { order: 2; } .arc-row .txt { grid-column: 1 / -1; } }
.arc-row time { font-family: var(--font-mono); font-size: .78rem; color: var(--amber); letter-spacing: .04em; }
.arc-row .lang { font-family: var(--font-label); font-weight: 600; font-size: .66rem; letter-spacing: .12em; color: var(--phos-2); }
.arc-row .txt a { color: var(--putty-hi); text-decoration: none; font-weight: 500; }
.arc-row .txt a:hover { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.arc-row .txt p { margin: .15rem 0 0; font-size: .9rem; color: var(--putty-3); }
.arc-note { font-size: .9rem; color: var(--putty-3); margin-top: 1.4rem; max-width: var(--measure); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-big { font-family: var(--font-display); font-size: clamp(1.1rem, 2.2vw, 1.5rem); letter-spacing: .02em; word-break: break-all; text-decoration: none; border-bottom: 2px solid var(--ink); display: inline-block; margin-top: 1rem; }
.contact-big:hover { color: var(--red); border-color: var(--red); }
.jacks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.jack {
  display: flex; align-items: center; gap: .7rem; text-decoration: none; padding: .7rem .8rem; border-radius: 5px;
  background: linear-gradient(180deg, var(--putty-hi), var(--putty-2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 2px 0 var(--putty-lo), 0 3px 5px rgba(0,0,0,.35);
  font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .76rem;
  transition: transform .1s;
}
.jack:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 0 0 var(--putty-lo); }
.jack i { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #000 0 30%, var(--ink-3) 32% 45%, var(--putty-3) 47% 60%, transparent 62%); flex: none; }
.jack small { font-family: var(--font-mono); font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink-3); font-size: .68rem; margin-left: auto; }
.contact-lines { display: grid; gap: .8rem; margin-top: 1.5rem; font-size: .95rem; }
.contact-lines div { display: grid; grid-template-columns: 8rem 1fr; gap: .8rem; }
@media (max-width: 480px) { .contact-lines div { grid-template-columns: 1fr; gap: .1rem; } }
.contact-lines dt { font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; color: var(--ink-2); padding-top: .2rem; }
.contact-lines dd { margin: 0; }

/* ---------- Footer ---------- */
.footer { padding: 2rem 0 2.5rem; font-family: var(--font-mono); font-size: .74rem; color: var(--putty-3); letter-spacing: .04em; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; justify-content: space-between; align-items: center; }
.footer a { color: var(--putty-2); text-decoration: none; }
.footer a:hover { color: var(--amber); }
.footer .serial { display: inline-flex; align-items: center; gap: .6rem; }
.footer .serial i { width: 7px; height: 7px; border-radius: 50%; background: var(--phos-2); box-shadow: 0 0 6px var(--phos-glow); }

/* ---------- Archive article pages ---------- */
.article-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem; }
.article-head .back { font-family: var(--font-mono); font-size: .78rem; color: var(--putty-2); text-decoration: none; letter-spacing: .04em; }
.article-head .back:hover { color: var(--amber); }
.article-head h1 { font-family: var(--font-display); font-size: clamp(1.35rem, 3vw, 2.1rem); letter-spacing: .015em; margin-top: 1.2rem; max-width: 28ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1rem; font-family: var(--font-mono); font-size: .76rem; color: var(--putty-3); letter-spacing: .04em; }
.article-meta time { color: var(--amber); }
.article-body { padding-block: clamp(2.5rem, 5vw, 4rem); }
.article { max-width: 70ch; font-size: 1.08rem; line-height: 1.7; }
.article figure { margin: 0 0 2rem; }
.article figure img { border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 8px 20px -12px rgba(0,0,0,.6); }
.article figcaption { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-3); margin-top: .5rem; }
.article p { margin: 0 0 1.1em; }
.article a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ink-3); }
.article a:hover { color: var(--red); }
.article h2, .article h3, .article h4 { font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: 1rem; margin: 2rem 0 .7rem; color: var(--ink-2); }
.article ul, .article ol { margin: 0 0 1.1em 1.2em; padding: 0; list-style: disc; }
.article ol { list-style: decimal; }
.article li { margin-bottom: .3em; }
.article .video { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: 5px; background: #000; box-shadow: 0 0 0 2px #000; margin: 0 0 1.6rem; }
.article .note { font-size: .9rem; color: var(--ink-2); border-left: 3px solid var(--putty-3); padding-left: 1rem; }
.article blockquote { margin: 0 0 1.1em; padding-left: 1rem; border-left: 3px solid var(--putty-3); color: var(--ink-2); }
.article-nav { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--putty-3); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .92rem; }
.article-nav a { text-decoration: none; border-bottom: 1px solid var(--ink-3); }
.article-nav a:hover { color: var(--red); border-color: var(--red); }

/* ---------- Motion ---------- */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .led i { animation: none; }
  .project, .project .shot img, .btn, .key { transition: none; }
}

/* Publications: fold earlier years */
.pubs-more { border-top: 1px solid var(--putty-3); }
.pubs-more > summary { list-style: none; margin: 1.2rem 0; width: max-content; user-select: none; }
.pubs-more > summary::-webkit-details-marker { display: none; }
.pubs-more > summary .when-open { display: none; }
.pubs-more[open] > summary .when-open { display: inline; }
.pubs-more[open] > summary .when-closed { display: none; }
.pubs-more > summary::before { content: "▾"; color: var(--amber); }
.pubs-more[open] > summary::before { content: "▴"; }
.pubs-more[open] > summary { margin-bottom: 0; }
.pubs-more .pub-year:first-of-type { border-top: 0; }

/* Archive: fold entries after the first five */
.arc-more > summary { list-style: none; margin: 1.2rem 0; width: max-content; user-select: none; }
.arc-more > summary::-webkit-details-marker { display: none; }
.arc-more > summary .when-open { display: none; }
.arc-more[open] > summary .when-open { display: inline; }
.arc-more[open] > summary .when-closed { display: none; }
.arc-more > summary::before { content: "▾"; color: var(--red); }
.arc-more[open] > summary::before { content: "▴"; }
.arc-more[open] > summary { margin-bottom: .6rem; }

/* Talks log: fold entries after the first ten */
.log-more > summary { list-style: none; margin: 1.2rem 0; width: max-content; user-select: none; }
.log-more > summary::-webkit-details-marker { display: none; }
.log-more > summary .when-open { display: none; }
.log-more[open] > summary .when-open { display: inline; }
.log-more[open] > summary .when-closed { display: none; }
.log-more > summary::before { content: "▾"; color: var(--red); }
.log-more[open] > summary::before { content: "▴"; }
.log-more[open] > summary { margin-bottom: .6rem; }
