/* Analog layer — loaded after site.css.
   The browser window is the terminal screen itself: a dark tube, blue phosphor for
   everything (the way old terminals used green), white only where something needs
   to stand out. One fixed-width face on screen.
   The moulded-case version is kept in case-shell.css / archive/v4-terminal-case. */
:root {
  --header: 46px;
  --tube: #01040f;
  --tube-2: #030b29;
  --brand: #0a3dff;                 /* fills, selection bars, the status line: a purer, more saturated cut of the brand blue */
  --phos: #5580ff;                  /* brand blue as emitted light: text and lines */
  --phos-dim: rgba(85, 128, 255, .74);
  --white: #F8F8F8;                 /* accent */
  --glow: 0 0 1px rgba(85, 128, 255, .95), 0 0 9px rgba(10, 61, 255, .85), 0 0 22px rgba(10, 61, 255, .35);
  --glow-white: 0 0 1px #fff, 0 0 10px rgba(85, 128, 255, .8), 0 0 24px rgba(10, 61, 255, .45);
  /* screen typeface: Aktiv Grotesk; the FONT MONO command swaps in a fixed-width face to compare */
  --type: "aktiv-grotesk", "Aktiv Grotesk", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .08 0 0 0 0 .3 0 0 0 0 1 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* COLOR WHITE (a command-line easter egg) swaps to a paper-white phosphor */
:root.type-mono { --type: "IBM Plex Mono", ui-monospace, Menlo, monospace; }
:root.phos-white { --phos: #e6ebf5; --phos-dim: rgba(230, 235, 245, .55); --glow: 0 0 1px #fff, 0 0 8px rgba(200, 215, 255, .45); }

html, body { height: 100%; }
body {
  overflow: hidden; background: var(--tube);
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='22' shape-rendering='crispEdges'%3E%3Cpath d='M1 1v17l4-4 3 7 3-1-3-7h6z' fill='%235580ff' stroke='%2301030a' stroke-width='1.5'/%3E%3C/svg%3E") 1 1, auto;
}

/* ================= the screen ================= */
.machine { position: fixed; inset: 0; }
.screen {
  position: absolute; inset: 0; overflow: hidden; background: var(--tube);
  /* site.css colour roles, remapped to the tube */
  --blue: var(--phos);
  --paper: var(--tube);
  --line: rgba(85, 128, 255, .34);
  --muted: var(--phos-dim);
  --sans: var(--type);
  --serif: var(--type);
  --screen: var(--type);
}
.screen-scroll {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden;
  display: flex; flex-direction: column;
  background: radial-gradient(110% 85% at 50% 42%, var(--tube-2), #020823 45%, var(--tube) 80%);
  color: var(--phos);
  font-family: var(--type); font-weight: 400; font-size: 14px; line-height: 1.55; letter-spacing: 0;
  font-feature-settings: "tnum" 1; /* steady digits for counters and numbers */
  text-shadow: var(--glow);
  scrollbar-width: thin; scrollbar-color: var(--brand) var(--tube);
}
.screen-scroll::-webkit-scrollbar { width: 10px; }
.screen-scroll::-webkit-scrollbar-track { background: var(--tube); border-left: 1px solid var(--line); }
.screen-scroll::-webkit-scrollbar-thumb { background: var(--brand); border: 2px solid var(--tube); }
.screen-scroll ::selection { background: var(--brand); color: var(--white); text-shadow: none; }
main { flex: 1; display: flex; flex-direction: column; }
main > * { flex: none; }
main > .desk-center, main > .tv { flex: 1; }
.hi { color: var(--white); text-shadow: var(--glow-white); }

/* the glass: scanlines, grain, a slow rolling band, curved-tube shading, a ghost of burn-in */
.glass { position: absolute; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; }
.glass::before {
  content: ""; position: absolute; inset: -40px 0;
  background:
    linear-gradient(transparent 0, rgba(85, 128, 255, .045) 45%, transparent 60%) 0 0 / 100% 360px no-repeat,
    repeating-linear-gradient(rgba(0, 6, 42, .42) 0 1px, transparent 1px 3px),
    var(--grain) 0 0 / 160px;
  animation: roll 10s linear infinite, grain .5s steps(3) infinite;
}
.glass::after {
  content: ""; position: absolute; inset: 0;
  background:
    url("/assets/logo/burn-in.svg") right 6% bottom 9% / 24vmin no-repeat, /* a ghost of the logo burnt into the phosphor */
    radial-gradient(135% 120% at 50% 50%, transparent 58%, rgba(0, 5, 34, .78) 100%),
    linear-gradient(160deg, rgba(80, 120, 255, .06) 0%, transparent 32%);
  box-shadow: inset 0 0 120px rgba(0, 8, 50, .65), inset 0 0 40px rgba(10, 61, 255, .08);
}
@keyframes roll { from { background-position: 0 -360px, 0 0, 0 0; } to { background-position: 0 calc(100% + 360px), 0 0, 0 0; } }
@keyframes grain { 33% { transform: translate(-3px, 2px); } 66% { transform: translate(2px, -2px); } }

/* boot */
.boot { position: absolute; inset: 0; z-index: 50; padding: clamp(22px, 3vw, 48px); background: var(--tube); color: var(--phos); font: 400 clamp(14px, 1.4vw, 18px)/1.6 var(--type); white-space: pre-wrap; text-shadow: var(--glow); }
@keyframes crt-on {
  0% { transform: scale(1, .003); filter: brightness(5); }
  40% { transform: scale(1, .003); }
  100% { transform: scale(1, 1); filter: brightness(1); }
}
.screen.powering .screen-scroll { animation: crt-on .6s ease-out; }

/* degauss: the picture wobbles while the colour washes through the screensaver's
   red, yellow and green, then settles back on blue */
.screen.degauss .screen-scroll { animation: degauss 1.3s cubic-bezier(.2, .6, .3, 1); }
@keyframes degauss {
  0% { transform: none; }
  8% { transform: skewX(4deg) scale(1.02); }
  20% { transform: skewX(-3deg) scale(.99); }
  35% { transform: skewX(2deg); }
  55% { transform: skewX(-1deg); }
  75% { transform: skewX(.4deg); }
  100% { transform: none; }
}
.screen::before { content: ""; position: absolute; inset: 0; z-index: 39; pointer-events: none; opacity: 0; mix-blend-mode: color; }
.screen.degauss::before { animation: degauss-wash 1.3s steps(1, end) forwards, degauss-fade 1.3s ease-in forwards; }
@keyframes degauss-wash {
  0% { background: #ff3b30; }
  22% { background: #ffd60a; }
  44% { background: #34c759; }
  66% { background: #0148D8; }
}
@keyframes degauss-fade { 0% { opacity: 1; } 60% { opacity: 1; } 100% { opacity: 0; } }

/* screensaver (idle): the mark drifts around so nothing burns in */
.saver { position: absolute; inset: 0; z-index: 45; background: #000210; color: var(--phos); }
.saver { color: #0148D8; }  /* the brand blue, exact */
.saver-mark { position: absolute; left: 0; top: 0; width: auto; height: clamp(72px, 12vw, 144px); max-width: 48vw; filter: drop-shadow(0 0 4px currentColor) drop-shadow(0 0 27px currentColor); will-change: transform; }
.saver-mark[hidden] { display: none; }
.saver.flash { animation: saver-flash .5s steps(3); }
@keyframes saver-flash { 50% { background: #111; } }

.cmd[hidden], .saver[hidden], .boot[hidden], .game[hidden] { display: none; }

/* PLAY.EXE */
/* the game runs on the moulded computer from the earlier design (see case-shell.css) */
.game {
  position: absolute; inset: 0; z-index: 44; background: #1a1a18; touch-action: manipulation; user-select: none;
  --case: #dcd8cd; --case-lo: #bdb8ab; --case-hi: #ebe8e0; --bezel: #121212;
  --case-pad: clamp(12px, 2.2vw, 34px); --chin: clamp(58px, 8vh, 80px);
}
.game-case {
  position: absolute; inset: 0; display: grid; grid-template-rows: minmax(0, 1fr) var(--chin);
  padding: calc(var(--case-pad) + 14px) var(--case-pad) 0;
  background: var(--noise) 0 0 / 180px, linear-gradient(180deg, var(--case-hi) 0%, var(--case) 22%, var(--case) 70%, var(--case-lo) 100%);
  background-blend-mode: multiply, normal;
  border-radius: clamp(8px, 1.2vw, 16px);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .7), inset 0 -4px 0 rgba(0, 0, 0, .12);
  font-family: var(--type); text-shadow: none;
}
.game-case::before { /* cooling vents along the top */
  content: ""; position: absolute; top: clamp(6px, .9vw, 12px); left: 50%; transform: translateX(-50%);
  width: min(60%, 640px); height: 10px; border-radius: 2px; opacity: .55;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .28) 0 34px, transparent 34px 46px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6);
}
.game-tube {
  position: relative; min-height: 0; overflow: hidden;
  margin: clamp(10px, 1.3vw, 20px);
  border-radius: clamp(18px, 2.6vw, 40px) / clamp(16px, 2.2vw, 34px);
  background: radial-gradient(110% 85% at 50% 42%, var(--tube-2), #020823 45%, var(--tube) 80%);
  box-shadow:
    0 0 0 clamp(10px, 1.3vw, 20px) var(--bezel),
    0 0 0 calc(clamp(10px, 1.3vw, 20px) + 2px) rgba(0, 0, 0, .35),
    0 0 0 calc(clamp(10px, 1.3vw, 20px) + 4px) rgba(255, 255, 255, .45);
}
/* the game's picture is softer and older than the rest of the site: blurred beam, colour fringing,
   bloom, a little tracking wobble */
.game-canvas {
  display: block; position: absolute; inset: 0;
  filter: blur(.9px) contrast(1.15) brightness(1.15)
    drop-shadow(1.6px 0 0 rgba(255, 50, 70, .35)) drop-shadow(-1.6px 0 0 rgba(0, 210, 255, .3))
    drop-shadow(0 0 6px rgba(10, 61, 255, .55));
  animation: tracking 5.5s steps(1) infinite;
}
@keyframes tracking {
  0%, 100% { transform: none; }
  31% { transform: translateX(1.5px); } 32% { transform: none; }
  58% { transform: translateX(-2px) skewX(.4deg); } 59% { transform: translateX(1px); } 60% { transform: none; }
  83% { transform: translateY(1px); } 84% { transform: none; }
}
/* the tube's own glass: scanlines, grain, shading */
.game-glass { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; overflow: hidden; }
.game-glass::before {
  content: ""; position: absolute; inset: -40px 0;
  background:
    linear-gradient(transparent 0, rgba(85, 128, 255, .09) 40%, rgba(255, 255, 255, .03) 50%, transparent 62%) 0 0 / 100% 420px no-repeat,
    repeating-linear-gradient(rgba(0, 4, 30, .62) 0 1.5px, transparent 1.5px 4px),
    var(--grain) 0 0 / 160px;
  animation: roll 10s linear infinite, grain .5s steps(3) infinite;
}
.game-glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(130% 115% at 50% 50%, transparent 52%, rgba(0, 0, 0, .7) 100%), linear-gradient(155deg, rgba(255, 255, 255, .07) 0%, transparent 30%);
  box-shadow: inset 0 0 90px rgba(0, 0, 0, .55), inset 0 0 8px rgba(0, 0, 0, .8);
}
/* the chin: nameplate, keys, power */
.game-chin { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; padding: 0 clamp(8px, 1.4vw, 20px); color: #3a3833; }
.game-plate { justify-self: start; display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 4px; background: linear-gradient(180deg, #2a2a28, #141413); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 0 rgba(255, 255, 255, .6); color: #e4e2dc; }
.game-plate-mark { display: block; height: clamp(18px, 2.6vh, 24px); width: auto; }
.game-plate:hover { background: linear-gradient(180deg, #34342f, #1b1b19); color: #fff; }
.game-plate:active { transform: translateY(1px); }
.game-model { font: 600 9px/1.1 var(--type); letter-spacing: .14em; text-transform: uppercase; color: #a9a69e; padding-left: 10px; border-left: 1px solid #444; }
.game-keys { display: flex; gap: 8px; }
.game-key {
  display: inline-grid; place-items: center; min-width: 52px; padding: 7px 12px 9px; border: 0; border-radius: 4px;
  background: linear-gradient(180deg, #3a3a38 0%, #222220 100%); color: #ecebe6;
  box-shadow: 0 4px 0 #0e0e0d, 0 5px 8px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .15);
  font: 600 11px/1 var(--type); letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
}
.game-space { min-width: clamp(110px, 14vw, 180px); cursor: default; }
.game-key:active, .game-key.down { transform: translateY(3px); box-shadow: 0 1px 0 #0e0e0d, inset 0 2px 4px rgba(0, 0, 0, .6); background: #1a1a19; }
.game-power { justify-self: end; display: flex; align-items: center; gap: 10px; font: 700 10px/1 var(--type); letter-spacing: .16em; text-transform: uppercase; }
.game-led { width: 7px; height: 7px; border-radius: 50%; background: #ff4a36; box-shadow: 0 0 6px 1px rgba(255, 74, 54, .7); }
@media (max-width: 760px) {
  .game { --case-pad: 8px; --chin: 58px; }
  .game-case { padding-top: 20px; }
  .game-case::before { width: 70%; top: 6px; height: 7px; }
  .game-tube { margin: 8px; }
  .game-chin { grid-template-columns: auto 1fr auto; gap: 8px; }
  .game-model { display: none; }
  .game-plate { padding: 5px 8px; }
  .game-plate-mark { height: 16px; }
  .game-keys { justify-self: center; }
  .game-key { min-width: 0; padding: 6px 9px 8px; }
  .game-space { min-width: 80px; }
  .game-power { font-size: 0; letter-spacing: 0; gap: 0; }
}
.game.crash .game-tube { animation: crash .35s steps(4); }
/* live static over the picture, and a faint flicker */
.game-tube::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: var(--noise) 0 0 / 120px; mix-blend-mode: screen; opacity: .1;
  animation: snow .25s steps(4) infinite, tube-flicker 3.2s steps(1) infinite;
}
@keyframes snow { 25% { background-position: 37px 51px; } 50% { background-position: -23px 17px; } 75% { background-position: 11px -40px; } }
@keyframes tube-flicker { 0%, 100% { opacity: .1; } 23% { opacity: .16; } 24% { opacity: .08; } 61% { opacity: .13; } 62% { opacity: .1; } }
@media (prefers-reduced-motion: reduce) { .game-canvas, .game-tube::after { animation: none; } }
@keyframes crash { 25% { transform: translate(-6px, 2px); filter: brightness(1.8); } 50% { transform: translate(5px, -3px); } 75% { transform: translate(-3px, 1px); } }

/* command line */
.cmd { position: absolute; left: 0; right: 0; bottom: 0; z-index: 46; max-height: 60%; display: flex; flex-direction: column; background: rgba(2, 5, 12, .97); border-top: 1px solid var(--phos); color: var(--phos); font: 400 13px/1.55 var(--type); text-shadow: var(--glow); }
.cmd-out { margin: 0; padding: 12px 16px 0; overflow-y: auto; white-space: pre-wrap; font: inherit; }
.cmd-out a { color: var(--white); text-decoration: underline; }
.cmd-line { display: flex; gap: 8px; padding: 8px 16px 12px; }
.cmd-line input { flex: 1; min-width: 0; border: 0; background: none; color: var(--white); font: inherit; text-shadow: var(--glow-white); caret-color: var(--white); outline: 0; text-transform: uppercase; }

/* ================= text-mode interface ================= */
.eyebrow, .filter-label, .win-title, .nav-link, .btn, .chip, .mail-label, .status-bar { text-transform: uppercase; letter-spacing: .08em; }

/* menu bar */
.site-header { background: linear-gradient(var(--tube) 60%, rgba(1, 4, 15, 0)); box-shadow: none; border: 0; }
.site-nav { font-size: 14px; font-weight: 500; }
.nav-link { position: relative; isolation: isolate; display: inline-flex; align-items: center; padding: 2px 10px; text-decoration: none !important; }
/* resonance: a very wide, soft bloom of light behind each word */
.nav-link::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 510%; height: 780%;
  transform: translate(-50%, -50%) scale(.85);
  background: radial-gradient(closest-side, rgba(10, 61, 255, .55), rgba(10, 61, 255, .18) 55%, transparent);
  filter: blur(15px); opacity: .22; pointer-events: none;
  transition: opacity .6s ease, transform .9s cubic-bezier(.2, .8, .2, 1);
}
.nav-link:hover::before, .nav-link.fx-on::before { opacity: .85; transform: translate(-50%, -50%) scale(1); animation: resonate 2.4s ease-in-out .6s infinite; }
.nav-link[aria-current="page"]::before { opacity: .6; transform: translate(-50%, -50%) scale(1); }
@keyframes resonate { 50% { opacity: .6; transform: translate(-50%, -50%) scale(1.08); } }
.nav-link .word { display: inline-flex; }
.nav-link .ch { display: inline-block; white-space: pre; }
.nav-link[aria-current="page"], .nav-link:hover, .nav-link.fx-on { color: var(--white); text-shadow: var(--glow-white); }
.brand-mark { height: 26px; color: var(--phos); filter: drop-shadow(0 0 5px rgba(10, 61, 255, .9)); }
.brand:hover .brand-mark { color: var(--white); }
.brand:hover .brand-mark, .brand-mark { transform: none; }

/* per-word hover icons */
.fx-icon { width: 0; height: 13px; margin-right: 0; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; transition: width .2s, margin .2s; }
/* the folder has its own fixed spot just left of the word, so nothing shifts when it appears */
.nav-link .folder { position: absolute; left: -12px; top: 50%; width: 15px; margin: -6px 0 0; opacity: 0; transition: opacity .12s; }
.nav-link[data-fx="portfolio"]:hover .folder, .nav-link[data-fx="portfolio"].fx-on .folder { opacity: 1; }
.folder-lid { transform-origin: 2px 11px; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1) .05s; }
.nav-link:hover .folder-lid, .nav-link.fx-on .folder-lid { transform: skewX(-22deg) scaleY(.7); fill: rgba(85, 128, 255, .15); }
.plane { position: absolute; left: 0; top: 50%; width: 15px; height: 15px; margin: -8px 0 0 -14px; opacity: 0; }
.nav-link .cursor { display: inline-block; width: .6em; background: var(--white); color: transparent; animation: blink .7s steps(1) infinite; }
.nav-link[data-fx="display"] .play-glyph { display: inline-block; width: 0; overflow: hidden; transition: width .2s; }
.nav-link[data-fx="display"]:hover .play-glyph { width: 1.4em; }

/* layout */
.desk { display: grid; gap: clamp(20px, 2.6vw, 34px); width: 100%; max-width: 1400px; margin: 0 auto; padding: clamp(22px, 3vw, 44px) var(--pad) clamp(40px, 5vw, 70px); }
.desk-center { align-content: center; justify-items: center; }
.desk-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(20px, 2.6vw, 34px); align-items: start; }

/* boxes drawn with double rules, title set into the frame */
.win { position: relative; min-width: 0; width: 100%; background: transparent; border: 3px double var(--phos); box-shadow: none; }
.win-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: auto; padding: 6px 12px; border-bottom: 1px solid var(--line); background: none; }
.win-title { margin: 0; padding: 0; background: none; color: var(--white); text-shadow: var(--glow-white); font: 700 12px/1.4 var(--type); max-width: none; }
.win-title::before { content: "■ "; color: var(--phos); text-shadow: var(--glow); }
.win-box { display: none; }
.win-info { position: static; padding: 0; background: none; font: 400 12px/1.4 var(--type); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.win-body { padding: clamp(16px, 2vw, 24px); }
.win-tools { display: flex; align-items: center; gap: 4px 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); margin: 0; font-size: 12px; }
.tools-hint { margin-left: auto; color: var(--muted); font-size: 11px; letter-spacing: .06em; }
.win-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--line); }

/* commands: [ BRACKETED ], white on blue when chosen */
.btn, .btn.filter-toggle, .copy-btn {
  display: inline-flex; align-items: center; gap: 0; padding: 2px 4px;
  border: 0; border-radius: 0; background: none; color: var(--phos); box-shadow: none; outline: 0;
  font: 500 12px/1.4 var(--type); text-decoration: none; transition: none; transform: none;
}
.btn::before, .copy-btn::before { content: "[ "; white-space: pre; }
.btn::after, .copy-btn::after { content: " ]"; white-space: pre; }
.btn:hover, .copy-btn:hover, .btn.filter-toggle[aria-expanded="true"], .copy-btn.done { background: var(--brand); color: var(--white); text-shadow: none; transform: none; box-shadow: none; }
.btn:active { transform: none; }
.btn[hidden] { display: none; }
.btn-default { background: var(--white); color: var(--tube); font-weight: 700; text-shadow: none; outline: 0; }
.btn-default:hover { background: var(--brand); color: var(--white); }
.btn-small { font-size: 11px; padding: 1px 3px; }
.btn-hint { font: 400 11px/1.2 var(--type); color: var(--muted); }
.btn:hover .btn-hint { color: inherit; }
.filter-active-n:not(:empty)::before { content: ":"; }
.clear-filters { font-size: 12px; text-decoration: none; }
.link { color: var(--white); text-shadow: var(--glow-white); text-underline-offset: .25em; }
.link:hover { opacity: 1; background: var(--brand); color: var(--white); text-decoration: none; text-shadow: none; }

/* placeholders: an empty frame on the tube */
.ph { background: #01030a; color: var(--muted); font: 400 11px/1.45 var(--type); }
.ph::before { border: 1px dashed rgba(85, 128, 255, .3); border-radius: 0; }
.ph-kind { font-weight: 500; color: var(--phos); }
.ph-title { font: 500 clamp(12px, 1.2vw, 16px)/1.3 var(--type); color: var(--phos); text-transform: uppercase; letter-spacing: .06em; }

/* ---- portfolio: two-up grid of previews ---- */
.filters { padding: 12px; border-bottom: 1px solid var(--line); gap: 16px; }
.filter-label { font: 500 11px/1 var(--type); }
.chips { gap: 2px 6px; }
.chip { border: 0; border-radius: 0; padding: 1px 3px; font: 400 12px/1.5 var(--type); }
.chip::before { content: "[ ]"; margin-right: 6px; white-space: pre; }
.chip[aria-pressed="true"]::before { content: "[X]"; }
.chip[aria-pressed="true"] { background: none; color: var(--white); text-shadow: var(--glow-white); }
.chip:hover { background: var(--brand); color: var(--white); text-shadow: none; }
.chip-n { font-size: 11px; color: var(--muted); }
.chip:hover .chip-n { color: inherit; }
.chip:disabled { opacity: .3; }

.portfolio-body { padding-bottom: 0; }
.portfolio-body .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 3vw, 40px) clamp(14px, 2vw, 26px); padding: clamp(14px, 2vw, 24px); }
.card a { display: block; }
.card-media { position: relative; border: 1px solid var(--line); background: #01030a; }
.card-cap { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 10px; padding-top: 10px; font-size: 13px; }
.card-cap .no { color: var(--muted); }
.card-cap b { font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.card a:hover .card-cap b { color: var(--white); text-shadow: var(--glow-white); }
.card a:hover .card-cap b::before { content: "> "; }

/* ---- labels: category outlined, what we did filled (terminal keycaps, square corners) ---- */
.tags, .svcs { display: flex; flex-wrap: wrap; gap: 6px; }
.tag, .svc { display: inline-block; padding: 3px 8px 2px; font: 500 11px/1.4 var(--type); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.tag { border: 1px solid var(--phos); color: var(--phos); background: rgba(10, 61, 255, .14);
  box-shadow: 0 0 8px rgba(10, 61, 255, .45), inset 0 0 6px rgba(10, 61, 255, .35); text-shadow: var(--glow); }
.svc { border: 1px solid transparent; background: rgba(85, 128, 255, .13); color: var(--white); opacity: .88; }
.project-tags { display: grid; gap: 10px; margin: -6px 0 18px; }

/* ---- the Portfolio window runs wider: halfway between the usual page width and the screen edge ---- */
.desk-portfolio { max-width: calc((1400px + 300vw) / 4); }

/* ---- media: a still on top of the preview loop; the still fades away when the project goes live ---- */
.card-media { display: block; position: relative; aspect-ratio: 1.639; overflow: hidden; }  /* between 3:2 and 16:9 */
.media-live, .media-still { position: absolute; inset: 0; display: block; }
.media-live > *, .media-still > * { width: 100%; height: 100%; object-fit: cover; }
.media-still { transition: opacity .7s ease; }
.card.live .media-still { opacity: 0; }
.media-live .ph { background: #020a2a; }

/* ---- portfolio layout 1 (default): one project per row, picture left, notes right ---- */
.portfolio-body[data-layout="rows"] .grid { grid-template-columns: 1fr; gap: 0; padding: 0; }
.portfolio-body[data-layout="rows"] .card { border-bottom: 1px solid var(--line); }
.portfolio-body[data-layout="rows"] .card:last-child { border-bottom: 0; }
.portfolio-body[data-layout="rows"] .card a { --gut: clamp(34px, 3.2vw, 52px); --top: clamp(18px, 2.4vw, 36px); position: relative; display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 28.5%, 460px); gap: clamp(16px, 2vw, 30px); align-items: center; padding: var(--top) clamp(16px, 2vw, 30px) var(--top) var(--gut); }
.portfolio-body[data-layout="rows"] .card-media:hover { border-color: var(--white); box-shadow: 0 0 0 1px var(--white), 0 0 18px rgba(10, 61, 255, .55); }
.card-info { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card-head { display: flex; flex-direction: column; gap: 6px; }
.card-artist { font: 800 clamp(24px, 2.8vw, 46px)/.92 var(--type); text-transform: uppercase; letter-spacing: -.01em; color: var(--white); text-shadow: var(--glow-white); overflow-wrap: anywhere; }
.card-title { font-size: clamp(15px, 1.5vw, 20px); color: var(--phos); text-shadow: var(--glow); }
.card-year { font-size: 12px; letter-spacing: .1em; color: var(--muted); }
.props { display: block; margin-top: 16px; border: 1px solid var(--line); background: var(--tube); font-size: 12px; }
.props-bar { display: block; padding: 6px 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-shadow: var(--glow); }
.prop { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 10px; padding: 7px 10px; }
.prop + .prop { border-top: 1px dotted var(--line); }
.prop-k { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; padding-top: 1px; }
.prop-v { color: var(--white); text-transform: uppercase; letter-spacing: .03em; font-weight: 600; }
.did { display: block; font-weight: 500; }
/* project number: small, in the gutter between the window edge and the picture, level with its top */
.card-no { display: none; }
.portfolio-body[data-layout="rows"] .card-no { display: block; position: absolute; left: 0; top: var(--top); width: var(--gut); text-align: center; font-size: 10px; line-height: 1; letter-spacing: .08em; color: var(--muted); text-shadow: none; }
.card-name { display: none; }
.portfolio-body[data-layout="rows"] .card-head:hover .card-title { color: var(--white); }

/* ---- portfolio layout 2: contact sheet, five across, every row lined up ---- */
.portfolio-body[data-layout="sheet"] .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px 14px; padding: clamp(16px, 2vw, 26px); align-items: start; }
.portfolio-body[data-layout="sheet"] .card-info > :not(.card-name) { display: none; }
.portfolio-body[data-layout="sheet"] .card-name { display: block; padding-top: 8px; font-size: 11px; line-height: 1.35; letter-spacing: .04em; text-transform: uppercase; color: var(--phos); }
.portfolio-body[data-layout="sheet"] .card-name b { display: block; color: var(--white); font-weight: 700; }
.portfolio-body[data-layout="sheet"] .card-media .ph-spec { display: none; }
.portfolio-body[data-layout="sheet"] .card-media .ph-title { font-size: 10px; }
.portfolio-body[data-layout="sheet"] .card-media .ph-kind { font-size: 9px; }
.portfolio-body[data-layout="sheet"] .card a:hover .card-media { border-color: var(--white); box-shadow: 0 0 0 1px var(--white), 0 0 14px rgba(10, 61, 255, .55); }
.portfolio-body[data-layout="sheet"] .card a:hover .card-name { text-shadow: var(--glow-white); }

/* layout switch, top right of the window toolbar */
.view-switch { display: inline-flex; align-items: center; gap: 4px; margin-left: 14px; }
.tools-hint + .view-switch { margin-left: 14px; }
.view-label { color: var(--muted); margin-right: 4px; text-transform: uppercase; letter-spacing: .08em; }
.view-btn { display: inline-grid; place-items: center; width: 30px; height: 24px; border: 1px solid var(--line); color: var(--muted); }
.view-btn svg { width: 16px; height: 12px; fill: none; stroke: currentColor; }
.view-btn:hover { color: var(--white); border-color: var(--white); }
.view-btn[aria-pressed="true"] { color: var(--white); border-color: var(--phos); background: rgba(10, 61, 255, .3); box-shadow: 0 0 8px rgba(10, 61, 255, .6); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 1000px) {
  .portfolio-body[data-layout="sheet"] .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .portfolio-body[data-layout="rows"] .card a { grid-template-columns: 1fr; --gut: 30px; padding-right: 14px; }
  .card-desc { display: none; }
  .portfolio-body[data-layout="sheet"] .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 10px; }
  .view-switch { margin-left: auto; }
}
.row[hidden], .card[hidden] { display: none; }

/* ---- display (placeholder) ---- */
.display-body { display: grid; gap: 22px; }
.display-lede { font: 700 clamp(18px, 2.2vw, 30px)/1.3 var(--type); text-transform: uppercase; }
.display-load { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.progress { color: var(--phos); letter-spacing: 0; }
.display-slots { display: grid; gap: 0; border-top: 1px solid var(--line); }
.display-slots li { display: grid; grid-template-columns: 3.2rem 1fr auto; gap: 12px; padding: 14px 4px; border-bottom: 1px dotted var(--line); text-transform: uppercase; letter-spacing: .06em; }

/* ---- project ---- */
.player { padding: 0; background: #000; }
.player > * { width: 100%; }
.yt-play { border-radius: 0; background: var(--white); color: var(--tube); font: 700 14px/1 var(--type); letter-spacing: .1em; text-transform: uppercase; }
.project-artist { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.project-name { font: 700 clamp(24px, 3vw, 40px)/1.1 var(--type); text-transform: uppercase; margin-top: 4px; color: var(--white); text-shadow: var(--glow-white); }
.project-kicker { margin: 6px 0 16px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.project-desc { font-size: 14px; line-height: 1.65; }
.project-meta { font-size: 12px; gap: 4px 18px; }
.project-meta dt { text-transform: uppercase; letter-spacing: .08em; }
.project-meta dd { font-weight: 500; }
.project-nav { display: flex; justify-content: space-between; gap: 12px; border: 0; margin: 0; }
.project-nav .btn { display: grid; gap: 2px; padding: 4px 6px; max-width: 38%; }
.project-nav .btn::before, .project-nav .btn::after { content: none; }
.project-nav .btn:last-child { text-align: right; justify-items: end; }

/* ---- about ---- */
.about-grid { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.about-badge { display: grid; justify-items: start; gap: 12px; padding: 4px 0; }
.about-mark { width: 130px; height: auto; filter: drop-shadow(0 0 8px rgba(10, 61, 255, .8)); }
.about-version { font: 400 12px/1 var(--type); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.about-copy { max-width: 62ch; gap: 1.1em; font-size: 14px; line-height: 1.7; }
.about-copy .page-statement { font: 700 clamp(17px, 1.8vw, 24px)/1.35 var(--type); text-transform: uppercase; color: var(--white); text-shadow: var(--glow-white); }
.about-lists { gap: 24px; font-size: 13px; }
.about-lists .eyebrow { color: var(--muted); }
.about-lists li::before { content: "- "; color: var(--muted); }

/* ---- the closing prompt (About only) ---- */
.site-footer-cta { display: flex; flex-direction: column; }
.site-footer-cta .desk { padding-top: clamp(24px, 4vw, 56px); padding-bottom: clamp(44px, 6vw, 90px); }
.win-alert { max-width: 600px; }
.alert-body { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 18px; padding: 20px 18px 16px; font-size: 13px; line-height: 1.6; }
.alert-icon { width: 54px; height: auto; }
.alert-msg { font: 700 clamp(18px, 2vw, 24px)/1.25 var(--type); text-transform: uppercase; margin-bottom: 8px; color: var(--white); text-shadow: var(--glow-white); }
.alert-msg::after { content: "_"; animation: blink 1s steps(1) infinite; }
.win-alert .win-foot { justify-content: flex-end; }

/* ---- status line along the bottom of every page: quiet phosphor text on the screen ---- */
.site-footer-slim { display: block; padding: 0; border: 0; }
.status-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 22px;
  padding: 6px var(--pad); border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--muted);
  font: 500 11px/1.5 var(--type); text-shadow: var(--glow);
}
.status-plate { display: inline-flex; align-items: center; gap: 10px; padding: 1px 4px; margin-left: -4px; color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; }
.status-plate:hover { color: var(--white); text-shadow: var(--glow-white); }
.status-plate:hover .plate-mark { color: var(--white); }
.plate-mark { height: 16px; width: auto; color: var(--phos); }
.status-os { opacity: .8; }
.status-read { display: inline-flex; gap: 18px; opacity: .85; }
.status-read b { font-weight: 500; }
.status-hint { animation: blink 2.6s steps(1) infinite; }
.status-bar .slim-links { display: inline-flex; align-items: center; gap: 16px; }
.status-bar a:hover, .degauss:hover { color: var(--white); text-shadow: var(--glow-white); }
.degauss { padding: 0 4px; border: 1px solid var(--line); font: inherit; letter-spacing: inherit; color: inherit; }
@keyframes blink { 50% { opacity: 0; } }

/* ---- contact ---- */
.win-mail { max-width: 760px; }
.mail-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px dotted var(--line); font-size: 13px; }
.mail-label { font: 500 11px/1.4 var(--type); color: var(--muted); }
.mail-body { padding: clamp(18px, 2.6vw, 28px) 12px; }
.contact-big { font: 700 clamp(26px, 4vw, 52px)/1.1 var(--type); text-transform: uppercase; color: var(--white); text-shadow: var(--glow-white); }
/* every line of the message is a field you can type into */
.mail-row input, .mail-line input, .mail-line textarea {
  width: 100%; min-width: 0; padding: 2px 0; border: 0; border-bottom: 1px dotted transparent; border-radius: 0;
  background: none; color: var(--white); font: 500 14px/1.5 var(--type); letter-spacing: .02em;
  text-shadow: var(--glow-white); caret-color: var(--white); outline: 0;
}
.mail-row input::placeholder { color: var(--muted); text-shadow: none; }
.mail-row input:focus, .mail-line input:focus, .mail-line textarea:focus { border-bottom-color: var(--phos); }
.mail-row:focus-within .mail-label, .mail-line:focus-within > span { color: var(--white); }
.mail-lines { display: grid; gap: 2px; margin-top: 22px; }
.mail-line { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 4px 0; border-bottom: 1px dotted var(--line); cursor: text; }
.mail-line > span { font: 400 14px/1.7 var(--type); color: var(--muted); white-space: nowrap; }
.mail-notes { grid-template-columns: 1fr; gap: 2px; }
.mail-line textarea { resize: vertical; min-height: 3.2em; }
.mail-row.invalid .mail-label, .mail-row.invalid input::placeholder { color: #ff6b5e; }
.mail-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.mail-status { flex: 1; margin: 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); text-align: right; }
.mail-status.ok { color: var(--white); text-shadow: var(--glow-white); }
.mail-status.err { color: #ff6b5e; text-shadow: none; }
.caret { display: inline-block; width: .6em; height: 1.1em; margin-left: 4px; background: var(--white); vertical-align: -3px; animation: blink 1s steps(1) infinite; }

/* ---- 404: a disk error ---- */
.notfound { padding: clamp(30px, 6vw, 90px) var(--pad); display: grid; gap: 8px; align-content: start; }
.dos { margin: 0; font: 400 clamp(14px, 1.5vw, 18px)/1.6 var(--type); white-space: pre-wrap; }
.dos-choices { display: flex; align-items: center; gap: 10px; }

/* ================= home: the tube shows the work ================= */
.home .screen-scroll { overflow: hidden; }
.tv { display: grid; min-height: 0; }
.immersive { height: auto; min-height: 0; background: radial-gradient(90% 80% at 50% 48%, #040f36, #020823 50%, var(--tube) 85%); color: var(--phos); }
.slide > img, .slide > video { filter: saturate(.8) contrast(1.08) brightness(.9); }
.slide .ph { background: #01030a; padding: 22px 26px; font-size: 12px; }
.slide .ph::before { inset: 14px 16px; }
.crt-static { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; background: var(--noise); mix-blend-mode: screen; }
.crt-static.on { animation: static .4s steps(5) forwards; }
@keyframes static {
  0% { opacity: .85; background-position: 0 0; }
  40% { opacity: .6; background-position: 37px 51px; }
  80% { opacity: .3; background-position: -23px 17px; }
  100% { opacity: 0; background-position: 11px -40px; }
}
.hero-wordmark { color: var(--phos); filter: blur(0) brightness(1) drop-shadow(0 0 2px rgba(80, 120, 255, .9)) drop-shadow(0 0 22px rgba(10, 61, 255, .9)); }
.hero-mark { position: absolute; }

/* ---- home startup: a login prompt on the terminal; once access is granted the screen clears,
        a line of light crosses the tube and the wordmark bleeds into focus ---- */
.tv { position: static; }
.startup { display: none; }
.login .startup {
  display: grid; place-items: center; position: absolute; inset: 0; z-index: 30;
  background: radial-gradient(110% 85% at 50% 42%, var(--tube-2), #020823 45%, var(--tube) 80%);
  animation: login-fallback 0s 14s forwards;  /* if scripts never run, it steps aside */
}
@keyframes login-fallback { to { visibility: hidden; } }
.login-text {
  min-width: min(440px, 80vw); margin: 0; white-space: pre-wrap;
  font: 500 clamp(14px, 1.3vw, 17px)/1.75 var(--type); letter-spacing: .06em; text-transform: uppercase;
  color: var(--phos); text-shadow: var(--glow);
}
.login-text .hi { color: var(--white); text-shadow: var(--glow-white); }
.login-text .cur { display: inline-block; width: .6em; height: 1.05em; margin-left: 2px; vertical-align: -.15em; background: var(--phos); box-shadow: 0 0 10px rgba(10, 61, 255, .9); animation: blink .8s steps(1) infinite; }
.login .startup.clearing .login-text { animation: clear-screen .42s steps(3) forwards; }
@keyframes clear-screen { 0% { opacity: 1; } 34% { opacity: .2; } 67% { opacity: .7; } 100% { opacity: 0; } }

.hero-mark { position: absolute; }
.warm .hero-wordmark { animation: bleed 4.2s cubic-bezier(.35, .05, .2, 1) both; }
@keyframes bleed {
  0%   { opacity: 0;   transform: scale(1.08); color: #061238; filter: blur(22px) brightness(.15) drop-shadow(0 0 0 rgba(80, 120, 255, 0)) drop-shadow(0 0 0 rgba(10, 61, 255, 0)); }
  30%  { opacity: .55; transform: scale(1.05); color: #0a1f66; filter: blur(14px) brightness(.35) drop-shadow(0 0 1px rgba(80, 120, 255, .2)) drop-shadow(0 0 30px rgba(10, 61, 255, .4)); }
  60%  { opacity: 1;   transform: scale(1.015); color: var(--brand); filter: blur(4px) brightness(.85) drop-shadow(0 0 2px rgba(80, 120, 255, .6)) drop-shadow(0 0 40px rgba(10, 61, 255, .9)); }
  82%  { transform: scale(1); color: #9db4ff; filter: blur(.5px) brightness(1.5) drop-shadow(0 0 3px rgba(150, 180, 255, 1)) drop-shadow(0 0 36px rgba(85, 128, 255, 1)); }
  100% { opacity: 1;   transform: none; color: var(--phos); filter: blur(0) brightness(1) drop-shadow(0 0 2px rgba(80, 120, 255, .9)) drop-shadow(0 0 22px rgba(10, 61, 255, .9)); }
}
/* a smear of light across the middle as the tube catches */
.warm .hero-mark::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 50%; height: 2px; margin-top: -1px;
  background: var(--phos); box-shadow: 0 0 30px 8px rgba(10, 61, 255, .9), 0 0 90px 30px rgba(10, 61, 255, .45);
  animation: smear 2s ease-out both;
}
@keyframes smear { 0% { opacity: 0; transform: scaleX(.05); } 15% { opacity: 1; } 60% { opacity: .7; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(1.05) scaleY(8); } }
/* the wordmark arrives on a blank tube; only once it has finished (4.2s) do the previews fade up behind it */
.warm .slides { animation: tube-up 1.6s ease-out 4.2s both; }
@keyframes tube-up { 0% { opacity: 0; filter: blur(8px) brightness(.4); } 100% { opacity: 1; filter: none; } }
/* then the details flicker on, one after another */
.warm .site-nav > *, .warm .osd .slide-caps, .warm .channels, .warm .status-bar { animation: flicker-in .75s steps(6) both; }
.warm .site-nav > :nth-child(1) { animation-delay: 3.5s; }
.warm .site-nav > :nth-child(2) { animation-delay: 3.7s; }
.warm .site-nav > :nth-child(3) { animation-delay: 3.25s; }
.warm .site-nav > :nth-child(4) { animation-delay: 3.9s; }
.warm .site-nav > :nth-child(5) { animation-delay: 4.1s; }
.warm .osd .slide-caps { animation-delay: 4.45s; }
.warm .channels { animation-delay: 4.75s; }
.warm .status-bar { animation-delay: 5.05s; }
@keyframes flicker-in { 0% { opacity: 0; } 25% { opacity: .9; } 40% { opacity: .1; } 60% { opacity: 1; } 75% { opacity: .35; } 100% { opacity: 1; } }

.osd { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.osd .slide-caps { position: absolute; left: 28px; right: 28px; bottom: 22px; top: 20px; min-height: 0; }
.osd .slide-cap { inset: 0; display: block; transform: none; font: 500 14px/1.4 var(--type); text-transform: uppercase; letter-spacing: .06em; text-shadow: var(--glow); }
.osd .slide-cap.on { pointer-events: none; }
.osd .cap-name { position: absolute; left: 0; bottom: 22px; font-weight: 700; color: var(--white); text-shadow: var(--glow-white); pointer-events: auto; }
.osd .cap-name::before { content: "> "; color: var(--phos); }
.osd .cap-meta { position: absolute; left: 0; bottom: 0; color: var(--muted); }
.osd .slide-cap:hover .cap-name { background: var(--brand); color: var(--white); text-shadow: none; }
.channels { position: absolute; right: 28px; bottom: 22px; display: flex; align-items: center; gap: 2px; pointer-events: auto; font: 500 12px/1 var(--type); }
.ch-label { margin-right: 8px; color: var(--muted); letter-spacing: .1em; }
.channels .tick { width: auto; padding: 3px 5px; border: 0; background: none; color: var(--phos); font: inherit; text-shadow: var(--glow); }
.channels .tick:hover { color: var(--white); }
.channels .tick.on { background: var(--brand); color: var(--white); text-shadow: none; }

/* ---- smaller screens ---- */
@media (max-width: 900px) {
  .desk-row, .about-grid { grid-template-columns: 1fr; }
  .about-mark { width: 90px; }
  .status-read .status-hint { display: none; }
}
@media (max-width: 760px) {
  :root { --header: 48px; }
  .site-nav { font-size: 10.5px; }
  .nav-link { padding: 2px 3px; letter-spacing: .02em; }
  .brand-mark { height: 22px; }
  .tools-hint { display: none; }
  .win-tools { flex-wrap: wrap; }
  .project-nav { flex-wrap: wrap; }
  .project-nav .btn { max-width: none; flex: 1 1 40%; }
  .project-nav .btn:nth-child(2) { order: 3; flex-basis: 100%; justify-content: center; }
  .mail-row { grid-template-columns: 70px minmax(0, 1fr); }
  .mail-row .copy-btn { grid-column: 2; justify-self: start; }
  .mail-line { grid-template-columns: 1fr; gap: 0; }
  .mail-status { flex-basis: 100%; order: -1; text-align: left; margin: 0; }
  .win-foot { flex-wrap: wrap; }
  .status-read { display: none; }
  .status-bar .slim-links a[href^="mailto"] { display: none; }

  .osd .slide-caps { left: 16px; right: 16px; top: 14px; bottom: 50px; }
  .osd .slide-cap { font-size: 12px; }
  .osd .cap-name { bottom: 18px; }
  .channels { left: 16px; right: auto; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .warm *, .warm *::before { animation: none !important; }
  .login .startup { display: none; }
  .glass::before, .caret, .alert-msg::after, .status-hint, .nav-link .cursor { animation: none; }
}





/* ---- project page: Back button ---- */
.win-bar-back { justify-content: flex-start; padding-left: 84px; }
.win-bar-back .win-info { margin-left: auto; }
/* Back: an arrow and the word. Narrow screens: in the window's title bar.
   Wide screens: out in the margin to the left of the window. */
.back { position: absolute; z-index: 2; left: 8px; top: 4px; display: inline-flex; align-items: center; gap: 7px;
  padding: 2px 9px; border: 1px solid var(--phos); color: var(--phos); background: var(--tube);
  font: 700 11px/1.3 var(--type); letter-spacing: .12em; text-transform: uppercase; text-shadow: var(--glow); }
.back-arrow { font-size: 1.2em; line-height: 1; letter-spacing: 0; }
.back:hover { background: var(--brand); color: var(--white); text-shadow: none; }
.win-video { position: relative; }
@media (min-width: 1560px) {
  .win-bar-back { padding-left: 12px; }
  .back { left: auto; top: 0; right: calc(100% + 16px); width: min(150px, calc((100vw - 1400px) / 2 + var(--pad) - 34px));
    justify-content: center; padding: 10px 8px; font-size: 13px; letter-spacing: .16em; }
}

/* ---- short description above Properties ---- */
.card-desc { font-size: 13px; line-height: 1.5; color: var(--phos); opacity: .9; text-transform: none; }

/* ---- a series on a project page (e.g. the 14 Scarlet House visualizers) ---- */
.eps { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px 14px; padding: clamp(14px, 2vw, 22px); }
.ep { display: grid; grid-template-columns: auto 1fr; gap: 4px 8px; width: 100%; text-align: left; color: var(--phos); }
.ep-img { grid-column: 1 / -1; aspect-ratio: 16 / 9; background: #01030a center / cover no-repeat; border: 1px solid var(--line); }
.ep-no { font-size: 11px; color: var(--muted); }
.ep-name { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ep:hover .ep-img { border-color: var(--white); box-shadow: 0 0 0 1px var(--white), 0 0 14px rgba(10, 61, 255, .55); }
.ep:hover .ep-name, .ep.on .ep-name { color: var(--white); text-shadow: var(--glow-white); }
.ep.on .ep-img { border-color: var(--phos); box-shadow: 0 0 0 1px var(--phos); }
@media (max-width: 760px) { .eps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- About: services as keycaps drifting across the page, two rows in opposite directions ---- */
.ticker { display: grid; gap: 14px; padding: clamp(18px, 2.4vw, 30px) 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.ticker-row { overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker-row.rev .ticker-track { animation-direction: reverse; animation-duration: 56s; }
.ticker-run { display: flex; gap: 14px; padding-right: 14px; }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }
.key { display: inline-block; padding: 10px 18px 9px; font: 700 clamp(13px, 1.2vw, 16px)/1 var(--type); letter-spacing: .1em;
  text-transform: uppercase; white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s; }
/* what we do: solid keys with a pressed-in bottom edge */
.key-do { background: rgba(85, 128, 255, .16); color: var(--white); border: 1px solid rgba(85, 128, 255, .35);
  box-shadow: 0 3px 0 rgba(10, 61, 255, .55); }
/* what we make: outlined in glowing blue */
.key-make { border: 1px solid var(--phos); color: var(--phos); background: rgba(10, 61, 255, .1); text-shadow: var(--glow);
  box-shadow: 0 0 10px rgba(10, 61, 255, .45), inset 0 0 8px rgba(10, 61, 255, .3); }
.key:hover { background: var(--brand); color: var(--white); text-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  .ticker { -webkit-mask-image: none; mask-image: none; padding: 18px; }
  .ticker-track { animation: none; width: auto; }
  .ticker-run { flex-wrap: wrap; }
  .ticker-run[aria-hidden] { display: none; }
}
