:root {
  color-scheme: dark;
  --bg: #020304;
  --bg-elevated: #060709;
  --panel: #0a0b0e;
  --panel-2: #0e1014;
  --control: #08090b;
  --text: #d9d9da;
  --strong: #f3f3f4;
  --muted: #8a8d94;
  --dim: #5a5e66;
  --red: #e0001b;
  --red-dark: #650711;
  --red-soft: rgba(224, 0, 27, .11);
  --line: rgba(255, 255, 255, .16);
  --line-soft: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .31);
  --shadow: 0 24px 90px rgba(0, 0, 0, .46);
  --mono: "Courier New", Courier, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --serif: Georgia, "Times New Roman", serif;
  --shell: 1540px;
  --ease: 180ms ease;
  --terminal-text: #d9d9da;
  --terminal-glow: rgba(243, 243, 244, .16);
  --terminal-red-glow: rgba(224, 0, 27, .18);
}

* { box-sizing: border-box; }
html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 18px;
}
body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle, rgba(255,255,255,.28) 0 1px, transparent 1.3px) 0 0 / 74px 74px,
    radial-gradient(circle, rgba(255,255,255,.13) 0 1px, transparent 1.2px) 22px 17px / 109px 109px,
    radial-gradient(circle at 10% 14%, rgba(224,0,27,.055), transparent 28rem),
    radial-gradient(circle at 92% 28%, rgba(224,0,27,.035), transparent 30rem),
    var(--bg);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: .012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
::selection { background: var(--red); color: #fff; }
h1, h2, h3, p, dl, dd { margin-top: 0; }
h1, h2, h3 { color: var(--strong); }
p { color: var(--muted); }

.skip-link {
  position: fixed;
  top: 8px;
  left: -9999px;
  z-index: 10000;
  padding: 9px 13px;
  border: 1px solid var(--red);
  background: #000;
  color: #fff;
  font-size: 11px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.skip-link:focus { left: 8px; }

.sr-only,
.js .founder-source {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.page-shell {
  width: min(calc(100% - clamp(24px, 4vw, 64px)), var(--shell));
  margin: clamp(12px, 2vw, 28px) auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: rgba(2, 3, 4, .34);
  box-shadow: 0 30px 120px rgba(0, 0, 0, .24);
}

.site-head {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(22px, 4vw, 70px);
  padding: 12px clamp(18px, 3vw, 42px);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(2, 3, 4, .88);
  backdrop-filter: blur(16px) saturate(120%);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--strong);
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--strong);
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
  box-shadow: inset 0 0 0 6px var(--bg), inset 0 0 0 7px var(--line-soft);
}
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: .28em;
}
.brand-copy small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 7px;
  letter-spacing: .26em;
  white-space: nowrap;
}
.head-context {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.head-context span + span::before { content: "/"; margin-right: 24px; color: var(--dim); }
.system-state {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .15em;
  text-transform: uppercase;
  white-space: nowrap;
}
.system-state i,
.terminal-toolbar-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px rgba(224,0,27,.8);
}

.nav-strip {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, .54);
}
.nav-strip a,
.nav-strip button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  padding: 10px clamp(14px, 2vw, 24px);
  border: 0;
  border-right: 1px solid var(--line-soft);
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .13em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color var(--ease), background var(--ease);
}
.nav-strip a::before,
.nav-strip button::before { content: "+"; margin-right: 9px; color: var(--red); }
.nav-strip a:hover,
.nav-strip button:hover { color: var(--strong); background: rgba(255,255,255,.025); }

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--strong);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background var(--ease), border-color var(--ease), color var(--ease), transform var(--ease);
}
.button:hover { border-color: var(--strong); background: rgba(255,255,255,.05); }
.button:active { transform: translateY(1px); }
.button.primary { border-color: var(--red); background: var(--red); color: #fff; }
.button.primary:hover { background: #ff0825; border-color: #ff0825; }
.button.secondary { background: rgba(0,0,0,.24); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }


.fluid-header {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: 100%;
  margin: 0 auto clamp(34px, 5vw, 70px);
  padding-bottom: clamp(24px, 3.5vw, 46px);
  border-bottom: 1px solid var(--line-soft);
}
.fluid-header::before {
  content: "";
  position: absolute;
  inset: 10% 12% 4%;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(255,255,255,.055), transparent 40%), radial-gradient(circle at center, rgba(224,0,27,.025), transparent 66%);
  filter: blur(2px);
}
.fluid-header-meta {
  position: relative;
  z-index: 2;
  width: min(100%, 1040px);
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 12px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  color: var(--dim);
  font-size: 8px;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.fluid-header-state { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); }
.fluid-header-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px rgba(224,0,27,.78); }
.fluid-header-state b { font-weight: 400; }
o-fluid-header {
  position: relative;
  z-index: 1;
  display: block;
  width: min(72vw, 790px);
  aspect-ratio: 1;
  margin: clamp(8px, 1.8vw, 24px) auto 0;
  background: transparent;
  pointer-events: none;
  contain: layout paint size;
}
.fluid-header-noscript {
  display: block;
  width: min(72vw, 790px);
  height: auto;
  margin: 18px auto 0;
}
.fluid-header-caption {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: -6px auto 0;
  color: var(--dim);
  font-size: 8px;
  letter-spacing: .13em;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
}

.terminal-hero {
  position: relative;
  padding: clamp(44px, 6vw, 94px) clamp(18px, 4vw, 64px) clamp(38px, 5vw, 70px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(to right, transparent calc(50% - .5px), rgba(255,255,255,.035) 50%, transparent calc(50% + .5px)),
    linear-gradient(to bottom, transparent calc(50% - .5px), rgba(255,255,255,.022) 50%, transparent calc(50% + .5px));
}
.terminal-hero::after {
  content: "00";
  position: absolute;
  right: clamp(16px, 3vw, 48px);
  top: 12px;
  color: rgba(224,0,27,.055);
  font-size: clamp(80px, 13vw, 190px);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}
.terminal-hero-head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: clamp(30px, 6vw, 100px);
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.eyebrow span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 24px;
  border: 1px solid var(--red-dark);
  background: rgba(224,0,27,.055);
}
.eyebrow::after { content: ""; width: 54px; height: 1px; background: var(--red-dark); }
.terminal-hero h1 {
  max-width: 15ch;
  margin: 0;
  color: var(--strong);
  font-size: clamp(42px, 5.8vw, 92px);
  font-weight: 700;
  letter-spacing: -.062em;
  line-height: .93;
  text-transform: uppercase;
}
.terminal-hero h1 em { color: var(--red); font-style: normal; }
.terminal-intro {
  max-width: 560px;
  margin: 0 0 4px;
  color: #b9bbc1;
  font-size: clamp(14px, 1.15vw, 18px);
  line-height: 1.72;
}

.terminal-stage { display: none; }
.js .terminal-stage {
  position: relative;
  z-index: 2;
  display: block;
  border: 1px solid var(--line-strong);
  background: linear-gradient(145deg, rgba(10,11,14,.97), rgba(2,3,4,.96));
  box-shadow: var(--shadow), inset 0 0 80px rgba(0,0,0,.52);
  overflow: hidden;
  animation: terminal-panel-flicker 8s linear infinite;
}
.terminal-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(255,255,255,.022) 4px, transparent 5px);
  mix-blend-mode: screen;
}
.terminal-stage::after {
  content: "";
  position: absolute;
  inset: -16px;
  z-index: 5;
  pointer-events: none;
  opacity: .028;
  background:
    radial-gradient(circle at 13% 17%, #fff 0 .7px, transparent .9px) 0 0 / 7px 9px,
    radial-gradient(circle at 73% 63%, #fff 0 .6px, transparent .9px) 0 0 / 11px 13px,
    radial-gradient(circle at 42% 88%, var(--red) 0 .7px, transparent 1px) 0 0 / 17px 19px;
  animation: terminal-noise 340ms steps(2, end) infinite;
}
.terminal-toolbar {
  position: relative;
  z-index: 6;
  min-height: 44px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 22px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: rgba(0,0,0,.36);
}
.terminal-toolbar-state { display: inline-flex; align-items: center; gap: 8px; }
.terminal-toolbar-state b { color: var(--text); font-weight: 400; }
.terminal-output {
  position: relative;
  z-index: 3;
  min-height: 610px;
  padding: clamp(26px, 4vw, 58px);
  color: var(--terminal-text);
  font-size: clamp(14px, 1.25vw, 20px);
  line-height: 1.68;
  letter-spacing: .025em;
  text-shadow: 0 0 10px var(--terminal-glow), 1px 0 10px var(--terminal-red-glow);
}
.terminal-paragraph {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  max-width: 1060px;
  margin: 0 0 clamp(18px, 2.3vw, 30px);
  color: var(--text);
}
.terminal-paragraph:last-child { margin-bottom: 0; }
.terminal-prompt {
  color: var(--red);
  font-weight: 700;
  text-shadow: 0 0 12px rgba(224,0,27,.36);
}
.terminal-copy { min-width: 0; }
.terminal-cursor {
  display: inline-block;
  width: .62em;
  height: 1.05em;
  margin-left: .18em;
  transform: translateY(.14em);
  background: var(--red);
  box-shadow: 0 0 12px rgba(224,0,27,.5);
  animation: terminal-cursor-blink 1.04s steps(1, end) infinite;
}
.terminal-interference {
  position: absolute;
  left: 0;
  right: 0;
  top: -12%;
  z-index: 6;
  height: 2px;
  opacity: .22;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), rgba(224,0,27,.28), transparent);
  box-shadow: 0 0 16px rgba(255,255,255,.12);
  animation: terminal-roll 10s linear infinite;
}
.founder-source {
  position: relative;
  z-index: 2;
  padding: clamp(24px, 4vw, 54px);
  border: 1px solid var(--line);
  background: var(--panel);
}
.founder-source h2 { font-size: 28px; text-transform: uppercase; }
.founder-source p { max-width: 950px; color: var(--text); }
.terminal-actions {
  position: relative;
  z-index: 7;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}
.terminal-facts {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 36px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.terminal-facts div { min-width: 0; padding: 13px 14px 14px 0; }
.terminal-facts div + div { padding-left: 14px; border-left: 1px solid var(--line-soft); }
.terminal-facts dt { color: var(--dim); font-size: 8px; letter-spacing: .14em; text-transform: uppercase; }
.terminal-facts dd { margin: 6px 0 0; color: var(--strong); font-size: 9px; text-transform: uppercase; }

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line-soft);
  background: rgba(0,0,0,.54);
}
.signal-strip span {
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.signal-strip span::before { content: "+"; margin-right: 9px; color: var(--red); }
.signal-strip span + span { border-left: 1px solid var(--line-soft); }

.directory { padding: clamp(54px, 7vw, 100px) clamp(18px, 4vw, 64px) clamp(26px, 4vw, 58px); }
.directory-head { padding-bottom: clamp(44px, 6vw, 88px); border-bottom: 1px solid var(--line); }
.directory-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(310px, .8fr);
  gap: clamp(34px, 7vw, 110px);
  align-items: end;
}
.directory-head h2,
.frame-section > h2 {
  margin: 0;
  color: var(--strong);
  font-size: clamp(38px, 4.7vw, 76px);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: .96;
  text-transform: uppercase;
}
.directory-head-grid > p {
  max-width: 620px;
  margin: 0 0 2px;
  color: #a9abb1;
  line-height: 1.72;
}
.frame-section { padding: clamp(48px, 6vw, 86px) 0; border-bottom: 1px solid var(--line); }
.frame-section:last-child { border-bottom: 0; padding-bottom: 8px; }
.section-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.section-top::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, var(--red-dark), transparent); }
.section-kicker { color: var(--red); font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.section-kicker::before { content: "+"; margin-right: 9px; }
.frame-section > h2 { font-size: clamp(32px, 3.7vw, 58px); }
.section-intro { max-width: 900px; margin: 18px 0 28px; color: #a9abb1; line-height: 1.7; }
.grid { display: grid; gap: 12px; }
.grid.core { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.branches,
.grid.site { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid.research { grid-template-columns: 1fr; }
.project-card {
  position: relative;
  min-height: 250px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  border: 1px solid var(--line);
  background: #050607;
  overflow: hidden;
  transition: border-color var(--ease), transform var(--ease);
}
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--card-image);
  background-size: var(--card-fit, cover);
  background-position: var(--card-position, center);
  background-repeat: no-repeat;
  opacity: .42;
  filter: saturate(.18) contrast(1.08);
  transition: opacity 280ms ease, transform 420ms ease, filter 280ms ease;
}
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.9));
}
.project-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.project-card:hover::before { opacity: .56; transform: scale(1.018); filter: saturate(.3) contrast(1.12); }
.card-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  padding: 17px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(2,3,4,.86);
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
}
.core .card-copy { background: rgba(2,3,4,.93); }
.card-title { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.card-number { color: var(--red); font-size: 17px; font-weight: 700; line-height: 1.15; }
.card-title h3 { margin: 0; font-size: 17px; line-height: 1.26; text-transform: uppercase; }
.card-copy p { margin: 0 0 16px; color: #b6b8bd; font-size: 11px; line-height: 1.6; }
.read-button {
  align-self: flex-start;
  margin-top: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--strong);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.read-button::before { content: "→"; margin-right: 9px; color: var(--red); }
.read-button:hover { color: var(--red); }

.reader {
  display: none;
  padding: clamp(18px, 3vw, 44px);
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,.88);
}
.reader.is-open { display: block; }
.reader-frame { border: 1px solid var(--line-strong); background: var(--panel); box-shadow: var(--shadow); }
.reader-toolbar {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 12px 8px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.reader-close {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--strong);
  font-size: 8px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.reader-close:hover { border-color: var(--red); color: var(--red); }
.reader-visual {
  min-height: 420px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(255,255,255,.06), transparent 38%), #020203;
}
.reader-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(0,0,0,.72), rgba(0,0,0,.06));
}
.reader-visual model-viewer,
.reader-visual .model-fallback,
.reader-visual .reader-main-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 560px;
  background: radial-gradient(circle at center, rgba(255,255,255,.08), transparent 36%), #020203;
}
.reader-main-image {
  object-fit: var(--reader-fit, cover);
  object-position: var(--reader-position, center);
}
.reader-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  border-bottom: 1px solid var(--line);
  background: var(--line);
}
.reader-gallery[hidden] { display: none; }
.reader-gallery figure {
  min-width: 0;
  margin: 0;
  background: #030405;
}
.reader-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: radial-gradient(circle at center, rgba(255,255,255,.055), transparent 42%), #020304;
}
.reader-gallery figcaption {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 11px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 7px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.reader-gallery figcaption::before { content: "+"; color: var(--red); }
.reader-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(28px, 5vw, 70px);
  padding: clamp(28px, 5vw, 70px);
}
.reader-eyebrow { margin-bottom: 18px; }
.reader-title { margin: 0 0 18px; font-size: clamp(42px, 5vw, 80px); letter-spacing: -.055em; line-height: .94; text-transform: uppercase; }
.reader-type { margin-bottom: 24px; color: var(--red); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.reader-text p { max-width: 900px; color: #b9bbc1; font-size: clamp(14px, 1.15vw, 17px); line-height: 1.72; }
.reader-text .button { margin-top: 14px; }
.reader-side { padding-left: 24px; border-left: 1px solid var(--line); }
.reader-side h3 { margin: 0 0 16px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.reader-side ul { margin: 0; padding: 0; list-style: none; }
.reader-side li { padding: 11px 0; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 10px; }
.reader-side li::before { content: "+"; margin-right: 9px; color: var(--red); }
.small-note { margin-top: 22px; color: var(--dim); font-size: 8px; letter-spacing: .08em; line-height: 1.7; text-transform: uppercase; }
.model-error { display: grid; height: 560px; place-items: center; padding: 30px; color: var(--muted); text-align: center; }

.site-footer {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px clamp(18px, 3vw, 42px);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #07080a, #020304);
  color: var(--dim);
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.site-footer strong { color: var(--red); font-weight: 400; }

@keyframes terminal-cursor-blink {
  0%, 47% { opacity: 1; }
  48%, 100% { opacity: 0; }
}
@keyframes terminal-noise {
  0% { transform: translate3d(0,0,0); }
  25% { transform: translate3d(1px,-1px,0); }
  50% { transform: translate3d(-1px,1px,0); }
  75% { transform: translate3d(2px,0,0); }
  100% { transform: translate3d(0,0,0); }
}
@keyframes terminal-panel-flicker {
  0%, 17%, 19%, 53%, 55%, 100% { opacity: 1; }
  18%, 54% { opacity: .992; }
}
@keyframes terminal-roll {
  0%, 70% { transform: translateY(-20px); opacity: 0; }
  72% { opacity: .2; }
  90% { opacity: .12; }
  100% { transform: translateY(850px); opacity: 0; }
}

@media (max-width: 1180px) {
  .head-context { display: none; }
  .site-head { grid-template-columns: 1fr auto; }
  .grid.core { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.branches,
  .grid.site { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .terminal-output { min-height: 650px; }
}

@media (max-width: 820px) {
  .page-shell { width: min(calc(100% - 18px), var(--shell)); margin-block: 9px; }
  .terminal-hero-head,
  .directory-head-grid,
  .reader-content { grid-template-columns: 1fr; }
  .terminal-hero h1 { max-width: 13ch; }
  .terminal-intro { max-width: 760px; }
  .terminal-facts { grid-template-columns: repeat(2, 1fr); }
  .terminal-facts div:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-soft); }
  .terminal-facts div:nth-child(4) { border-top: 1px solid var(--line-soft); }
  .signal-strip { grid-template-columns: repeat(2, 1fr); }
  .signal-strip span:nth-child(3) { border-left: 0; border-top: 1px solid var(--line-soft); }
  .signal-strip span:nth-child(4) { border-top: 1px solid var(--line-soft); }
  .reader-side { padding: 24px 0 0; border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 680px) {
  o-fluid-header,
  .fluid-header-noscript { width: min(94vw, 520px); }
  .fluid-header-meta { align-items: flex-start; flex-direction: column; gap: 5px; }
  .fluid-header-caption { max-width: 36ch; }

  body { font-size: 14px; }
  .page-shell { width: 100%; margin: 0; border-left: 0; border-right: 0; }
  .site-head { min-height: 68px; padding: 11px 14px; }
  .brand-mark { width: 36px; height: 36px; font-size: 22px; }
  .brand-copy small { font-size: 6px; letter-spacing: .18em; }
  .system-state { display: none; }
  .nav-strip { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: thin; }
  .nav-strip a,
  .nav-strip button { flex: 0 0 auto; min-height: 46px; padding-inline: 14px; }
  .terminal-hero { padding: 38px 14px 50px; }
  .terminal-hero::after { display: none; }
  .terminal-hero-head { margin-bottom: 26px; }
  .eyebrow { margin-bottom: 18px; font-size: 8px; }
  .eyebrow::after { width: 34px; }
  .terminal-hero h1 { font-size: clamp(38px, 13vw, 56px); }
  .terminal-toolbar { grid-template-columns: 1fr auto; gap: 10px; font-size: 7px; }
  .terminal-toolbar-state { display: none; }
  .terminal-output { min-height: 880px; padding: 24px 15px; font-size: 14px; line-height: 1.62; }
  .terminal-paragraph { grid-template-columns: 16px minmax(0, 1fr); gap: 5px; }
  .terminal-actions { display: grid; grid-template-columns: 1fr; }
  .terminal-actions .button { width: 100%; }
  .terminal-facts { grid-template-columns: 1fr; }
  .terminal-facts div { padding: 12px 0; }
  .terminal-facts div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-soft); }
  .signal-strip { grid-template-columns: 1fr; }
  .signal-strip span + span { border-left: 0; border-top: 1px solid var(--line-soft); }
  .signal-strip span { min-height: 50px; padding-inline: 14px; }
  .directory { padding: 58px 14px 28px; }
  .directory-head h2,
  .frame-section > h2 { font-size: clamp(34px, 11vw, 50px); }
  .grid.core,
  .grid.branches,
  .grid.site { grid-template-columns: 1fr; }
  .project-card { min-height: 235px; }
  .reader { padding: 10px; }
  .reader-toolbar { align-items: flex-start; flex-direction: column; padding: 12px; }
  .reader-close { width: 100%; }
  .reader-visual,
  .reader-visual model-viewer,
  .reader-visual .model-fallback { min-height: 360px; height: 360px; }
  .reader-content { padding: 24px 16px; }
  .reader-title { font-size: clamp(36px, 12vw, 54px); }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f3f1ee;
    --bg-elevated: #ece9e4;
    --panel: #f8f6f2;
    --panel-2: #efede9;
    --control: #f5f2ee;
    --text: #2a2d32;
    --strong: #111317;
    --muted: #555a63;
    --dim: #7a7f86;
    --red: #c10c1f;
    --red-dark: #74111d;
    --red-soft: rgba(193, 12, 31, .09);
    --line: rgba(17, 19, 23, .18);
    --line-soft: rgba(17, 19, 23, .08);
    --line-strong: rgba(17, 19, 23, .28);
    --shadow: 0 24px 90px rgba(22, 26, 33, .09);
    --terminal-text: #17191d;
    --terminal-glow: rgba(17, 19, 23, .08);
    --terminal-red-glow: rgba(193, 12, 31, .12);
  }

  body {
    background:
      radial-gradient(circle, rgba(0,0,0,.12) 0 1px, transparent 1.3px) 0 0 / 74px 74px,
      radial-gradient(circle, rgba(0,0,0,.07) 0 1px, transparent 1.2px) 22px 17px / 109px 109px,
      radial-gradient(circle at 10% 14%, rgba(193,12,31,.05), transparent 28rem),
      radial-gradient(circle at 92% 28%, rgba(193,12,31,.04), transparent 30rem),
      var(--bg);
  }

  .page-shell { background: rgba(255, 255, 255, .66); box-shadow: 0 30px 120px rgba(15, 18, 23, .08); }
  .site-head { background: rgba(255, 255, 255, .86); }
  .nav-strip { background: rgba(255, 255, 255, .64); }
  .nav-strip a:hover,
  .nav-strip button:hover { background: rgba(0,0,0,.03); }
  .signal-strip,
  .reader-frame,
  .reader-toolbar,
  .terminal-stage,
  .fluid-header,
  .frame-section,
  .directory-head,
  .reader-content,
  .reader-side,
  .site-foot,
  .terminal-actions .button.secondary,
  .terminal-actions .button.primary,
  .project-card .card-copy { background-color: rgba(255,255,255,.62); }
  .fluid-header-caption,
  .terminal-intro,
  .section-intro,
  .directory-head-grid p,
  .project-card p,
  .terminal-facts dd,
  p { color: var(--muted); }
}

/* Whole-product 3D inspection */
.reader-visual.has-product-viewer,
.reader-visual.has-os-preview {
  min-height: 0;
  height: auto;
  padding: 0;
  place-items: stretch;
  background: #020304;
}
.reader-visual.has-product-viewer::after,
.reader-visual.has-os-preview::after { display: none; }

o-product-viewer {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  min-width: 0;
  background: #020304;
}
.product-viewer-shell {
  min-width: 0;
  border: 0;
  background: #020304;
}
.product-viewer-head {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,.68);
}
.product-viewer-head > div { display: grid; gap: 4px; }
.product-viewer-kicker,
.product-viewer-status {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.product-viewer-head strong {
  color: var(--strong);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.product-viewer-status { text-align: right; }
.product-viewer-status::before { content: "+"; margin-right: 8px; color: var(--red); }
.product-viewer-stage {
  position: relative;
  min-height: 580px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(to right, transparent calc(50% - .5px), rgba(255,255,255,.04) 50%, transparent calc(50% + .5px)),
    linear-gradient(to bottom, transparent calc(50% - .5px), rgba(255,255,255,.025) 50%, transparent calc(50% + .5px)),
    radial-gradient(circle at center, rgba(255,255,255,.075), transparent 40%),
    #020304;
}
.product-viewer-poster,
.product-model-viewer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: transparent;
}
.product-viewer-poster { padding: clamp(22px, 4vw, 58px); }
.product-model-viewer { z-index: 2; --poster-color: transparent; }
.product-viewer-loading {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(2,3,4,.84);
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .11em;
  text-align: center;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.product-viewer-loading[hidden] { display: none; }
.product-viewer-selectors {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,.52);
}
.product-viewer-selectors[hidden] { display: none; }
.product-model-selector {
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.product-model-selector:hover,
.product-model-selector[aria-pressed="true"] { background: var(--panel); color: var(--strong); }
.product-model-selector[aria-pressed="true"] { box-shadow: inset 0 -3px 0 var(--red); }
.product-viewer-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,.58);
}
.product-viewer-controls .button { min-height: 36px; font-size: 8px; }
.product-viewer-controls .button:disabled { opacity: .34; cursor: not-allowed; }
.product-viewer-note {
  margin: 0;
  padding: 10px 14px;
  color: var(--dim);
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
body.model-inspection-open { overflow: hidden; }
o-product-viewer.is-expanded {
  position: fixed;
  inset: 12px;
  z-index: 10000;
  display: block;
  border: 1px solid var(--line-strong);
  background: #020304;
  box-shadow: 0 30px 160px rgba(0,0,0,.88);
}
o-product-viewer.is-expanded .product-viewer-shell {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto auto auto;
}
o-product-viewer.is-expanded .product-viewer-stage { min-height: 0; height: auto; }

/* O OS current research interface preview */
.os-preview-frame {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  min-height: 820px;
  border: 0;
  background: #020304;
}

@media (max-width: 680px) {
  .product-viewer-stage { min-height: 430px; }
  .product-viewer-head { align-items: flex-start; flex-direction: column; }
  .product-viewer-status { text-align: left; }
  .product-viewer-controls { display: grid; grid-template-columns: 1fr; }
  .product-viewer-controls .button { width: 100%; }
  .product-model-selector { flex: 1 1 100%; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .os-preview-frame { min-height: 900px; }
  o-product-viewer.is-expanded { inset: 0; border: 0; }
}

@media (prefers-color-scheme: light) {
  .reader-visual.has-product-viewer,
  .reader-visual.has-os-preview,
  o-product-viewer,
  .product-viewer-shell,
  o-product-viewer.is-expanded,
  .os-preview-frame { background: #f3f1ee; }
  .product-viewer-head,
  .product-viewer-controls,
  .product-viewer-selectors { background: rgba(255,255,255,.72); }
  .product-viewer-stage {
    background:
      linear-gradient(to right, transparent calc(50% - .5px), rgba(0,0,0,.04) 50%, transparent calc(50% + .5px)),
      linear-gradient(to bottom, transparent calc(50% - .5px), rgba(0,0,0,.025) 50%, transparent calc(50% + .5px)),
      radial-gradient(circle at center, rgba(0,0,0,.055), transparent 42%),
      #f3f1ee;
  }
  .product-viewer-loading { background: rgba(255,255,255,.88); }
}

/* Default presentation protection. This suppresses context menus and asset dragging,
   but it is not a substitute for server-side access control. */
html[data-context-menu="disabled"] img,
html[data-context-menu="disabled"] canvas,
html[data-context-menu="disabled"] model-viewer,
html[data-context-menu="disabled"] o-fluid-header,
html[data-context-menu="disabled"] o-product-viewer {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

/* Real CRT founder statement presentation */
.terminal-tv-stage {
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  animation: none;
}
.terminal-tv-stage::before,
.terminal-tv-stage::after { display: none; }
.terminal-tv-scene {
  position: relative;
  width: min(100%, 1160px);
  aspect-ratio: 1.132 / 1;
  margin: 0 auto;
  overflow: hidden;
  background: transparent;
}
.terminal-tv-model {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
  --poster-color: transparent;
  pointer-events: none;
}
.terminal-tv-screen-shell {
  position: absolute;
  left: 17.45%;
  top: 14.55%;
  width: 66.7%;
  height: 58.25%;
  z-index: 4;
  pointer-events: none;
  transform: perspective(1200px) scaleX(.992) scaleY(.988);
  transform-origin: center;
}
.terminal-tv-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 10.5% / 14.5%;
  background:
    radial-gradient(circle at 27% 22%, rgba(207, 220, 214, .045), transparent 22%),
    linear-gradient(180deg, rgba(2, 6, 5, .54), rgba(0, 2, 1, .70));
  box-shadow:
    inset 0 0 38px rgba(0, 0, 0, .72),
    inset 0 0 110px rgba(0, 0, 0, .54),
    inset 0 0 1px rgba(230, 240, 232, .14);
  -webkit-mask-image: radial-gradient(ellipse 72% 68% at 50% 50%, #000 82%, rgba(0,0,0,.96) 92%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 68% at 50% 50%, #000 82%, rgba(0,0,0,.96) 92%, transparent 100%);
}
.terminal-tv-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 16%, rgba(255,255,255,.065), transparent 22%),
    radial-gradient(ellipse at center, transparent 54%, rgba(0,0,0,.22) 82%, rgba(0,0,0,.52) 100%);
  mix-blend-mode: screen;
}
.terminal-tv-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  opacity: .72;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(213,226,216,.018) 2px 3px, transparent 3px 5px);
  mix-blend-mode: screen;
}
.terminal-tv-screen .terminal-toolbar {
  position: relative;
  z-index: 6;
  min-height: 28px;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  padding: 5px 18px 4px;
  border-bottom: 1px solid rgba(218, 228, 219, .09);
  background: linear-gradient(180deg, rgba(0,0,0,.30), rgba(0,0,0,.10));
  color: rgba(210, 219, 211, .52);
  font-size: clamp(6px, .54vw, 8px);
  letter-spacing: .12em;
}
.terminal-tv-screen .terminal-toolbar-state b { color: rgba(218, 226, 218, .72); }
.terminal-tv-screen .terminal-toolbar-state i {
  width: 5px;
  height: 5px;
  background: #b9c4b8;
  box-shadow: 0 0 7px rgba(197,213,198,.35);
}
.terminal-tv-screen .terminal-output {
  position: relative;
  z-index: 5;
  min-height: 0;
  height: calc(100% - 28px);
  overflow: hidden;
  padding: clamp(15px, 1.6vw, 25px) clamp(22px, 2.25vw, 36px) clamp(18px, 1.9vw, 28px);
  color: #cfd8cc;
  font-size: clamp(10px, .91vw, 14px);
  line-height: 1.55;
  letter-spacing: .018em;
  text-shadow: 0 0 6px rgba(193, 212, 190, .14), 0 0 16px rgba(89, 123, 92, .10);
  scrollbar-width: none;
}
.terminal-tv-screen .terminal-output::-webkit-scrollbar { display: none; }
.terminal-tv-screen .terminal-paragraph {
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 5px;
  max-width: none;
  margin: 0 0 clamp(10px, 1.2vw, 17px);
  color: #cfd8cc;
}
.terminal-tv-screen .terminal-prompt {
  color: #d9e0d5;
  font-weight: 400;
  text-shadow: 0 0 8px rgba(209, 224, 208, .18);
}
.terminal-tv-screen .terminal-copy { color: #cfd8cc; }
.terminal-tv-screen .terminal-cursor {
  width: .56em;
  height: .94em;
  margin-left: .16em;
  background: #dbe2d8;
  box-shadow: 0 0 8px rgba(210, 226, 210, .28);
}
.terminal-tv-screen .terminal-interference {
  z-index: 9;
  opacity: .11;
  background: linear-gradient(90deg, transparent, rgba(214,228,216,.24), transparent);
  box-shadow: 0 0 10px rgba(214,228,216,.08);
}

@media (max-width: 900px) {
  .terminal-tv-scene { width: 100%; }
  .terminal-tv-screen-shell { left: 17.55%; top: 14.8%; width: 66.45%; height: 57.9%; }
  .terminal-tv-screen .terminal-toolbar { min-height: 22px; padding: 4px 10px 3px; font-size: 5.5px; }
  .terminal-tv-screen .terminal-toolbar-state { display: none; }
  .terminal-tv-screen .terminal-output {
    height: calc(100% - 22px);
    padding: 10px 14px 12px;
    font-size: clamp(7px, 1.35vw, 10px);
    line-height: 1.42;
  }
  .terminal-tv-screen .terminal-paragraph {
    grid-template-columns: 11px minmax(0, 1fr);
    gap: 3px;
    margin-bottom: 7px;
  }
}

@media (max-width: 520px) {
  .terminal-tv-screen-shell { left: 17.8%; top: 15%; width: 66%; height: 57.4%; }
  .terminal-tv-screen .terminal-toolbar { min-height: 16px; padding: 3px 7px 2px; font-size: 4px; }
  .terminal-tv-screen .terminal-toolbar > :nth-child(2) { display: none; }
  .terminal-tv-screen .terminal-output {
    height: calc(100% - 16px);
    padding: 7px 9px 8px;
    font-size: clamp(5.4px, 1.7vw, 7.5px);
    line-height: 1.34;
  }
  .terminal-tv-screen .terminal-paragraph {
    grid-template-columns: 8px minmax(0, 1fr);
    margin-bottom: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .terminal-tv-screen .terminal-interference { display: none; }
}

/* Minimal directory records. Models and live previews appear only after a project is opened. */
.project-card {
  min-height: 210px;
  align-items: stretch;
  padding: 0;
  background: rgba(5, 6, 7, .82);
}
.project-card::before,
.project-card::after { display: none; }
.project-card:hover { transform: translateY(-2px); background: rgba(9, 10, 12, .92); }
.card-copy,
.core .card-copy {
  min-height: 100%;
  padding: clamp(20px, 2.2vw, 30px);
  border: 0;
  background: transparent;
  box-shadow: none;
}
.card-copy::after {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  margin-top: 20px;
  background: var(--red-dark);
}
.grid.research { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.reader-visual[hidden] { display: none !important; }
.reader.has-no-visual .reader-content {
  padding-top: clamp(42px, 6vw, 86px);
}
.reader.has-no-visual .reader-frame {
  background:
    linear-gradient(to right, transparent calc(50% - .5px), rgba(255,255,255,.018) 50%, transparent calc(50% + .5px)),
    var(--panel);
}
.reader-text { min-width: 0; }
.project-overview { max-width: 980px; }
.project-details {
  display: grid;
  gap: 1px;
  max-width: 1040px;
  margin-top: 34px;
  border: 1px solid var(--line);
  background: var(--line);
}
.project-detail {
  background: var(--panel);
}
.project-detail summary {
  min-height: 58px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  color: var(--strong);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  list-style: none;
  text-transform: uppercase;
}
.project-detail summary::-webkit-details-marker { display: none; }
.project-detail summary::after {
  content: "+";
  color: var(--red);
  font-size: 16px;
  font-weight: 400;
}
.project-detail[open] summary::after { content: "−"; }
.project-detail summary span {
  color: var(--red);
  font-size: 9px;
  letter-spacing: .14em;
}
.project-detail-content {
  padding: 0 18px 24px 74px;
  border-top: 1px solid var(--line-soft);
}
.project-detail-content p {
  max-width: 880px;
  margin: 18px 0 0;
  color: #b9bbc1;
  font-size: 14px;
  line-height: 1.72;
}
.project-detail-content ul {
  display: grid;
  gap: 9px;
  max-width: 860px;
  margin: 20px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line-soft);
  list-style: none;
}
.project-detail-content li {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.project-detail-content li::before {
  content: "+";
  margin-right: 9px;
  color: var(--red);
}

.product-viewer-loading {
  min-width: min(320px, calc(100% - 34px));
}
.product-viewer-loading button[hidden] { display: none; }

@media (max-width: 980px) {
  .grid.research { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .project-card { min-height: 190px; }
  .project-detail summary {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 12px 13px;
    font-size: 9px;
  }
  .project-detail-content { padding: 0 13px 20px 52px; }
  .project-detail-content p { font-size: 13px; }
}

@media (prefers-color-scheme: light) {
  .project-card { background: rgba(255, 255, 255, .58); }
  .project-card:hover { background: rgba(255, 255, 255, .88); }
  .project-detail { background: var(--panel); }
  .project-detail-content p { color: var(--text); }
}

.grid.airborne {
  grid-template-columns: minmax(0, 1fr);
}
.grid.airborne .project-card {
  min-height: 240px;
}
.grid.airborne .card-copy {
  max-width: 980px;
}

.reader-visual.has-image-gallery {
  min-height: 520px;
  background:
    radial-gradient(circle at center, rgba(255,255,255,.05), transparent 42%),
    #020304;
}
.reader-visual.has-image-gallery::after {
  display: none;
}
.reader-visual.has-image-gallery .reader-gallery-main-image {
  width: 100%;
  height: min(68svh, 720px);
  object-fit: contain;
  object-position: center;
  background:
    radial-gradient(circle at center, rgba(255,255,255,.045), transparent 44%),
    #020304;
}
.reader-gallery.is-image-selector {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
}
.reader-gallery-button {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(34px, auto);
  padding: 0;
  border: 0;
  background: var(--panel);
  color: var(--muted);
  text-align: left;
  transition: background var(--ease), color var(--ease), box-shadow var(--ease);
}
.reader-gallery-button:hover,
.reader-gallery-button:focus-visible,
.reader-gallery-button.is-active {
  background: var(--panel-2);
  color: var(--strong);
  box-shadow: inset 0 -2px 0 var(--red);
}
.reader-gallery-button img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background:
    radial-gradient(circle at center, rgba(255,255,255,.05), transparent 44%),
    #020304;
}
.reader-gallery-button span {
  display: flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 8px;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.reader-gallery-button span::before {
  content: "+";
  margin-right: 8px;
  color: var(--red);
}

@media (max-width: 980px) {
  .reader-gallery.is-image-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .grid.airborne .project-card {
    min-height: 0;
  }
  .reader-visual.has-image-gallery {
    min-height: 300px;
  }
  .reader-visual.has-image-gallery .reader-gallery-main-image {
    height: min(52svh, 430px);
  }
  .reader-gallery-button span {
    min-height: 34px;
    padding: 7px 8px;
    font-size: 7px;
  }
}

@media (prefers-color-scheme: light) {
  .reader-visual.has-image-gallery,
  .reader-visual.has-image-gallery .reader-gallery-main-image,
  .reader-gallery-button img {
    background:
      radial-gradient(circle at center, rgba(0,0,0,.04), transparent 44%),
      #ece9e4;
  }
}
