:root {
  --bg: #080808;
  --surface: #0f0f0f;
  --border: #222;
  --border-light: #2a2a2a;
  --text: #e8e8e8;
  --text-dim: #777;
  --text-muted: #555;
  --green: #8faa85;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', -apple-system, sans-serif;
  --mono: 'DM Mono', 'SF Mono', Consolas, monospace;
  --site-max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  z-index: 9999;
}

a { color: var(--text); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--green); }
button { font: inherit; }

.container {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

/* ── Nav ── */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  max-width: var(--site-max);
  margin: 0 auto;
  animation: fadeDown 0.6s ease both;
}

.wordmark {
  font-family: 'Jura', -apple-system, sans-serif;
  font-optical-sizing: auto;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-dim);
}
.wordmark .bci { color: var(--green); font-weight: 600; }

.nav-links {
  display: flex;
  gap: 2rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}
.nav-links a,
.nav-links button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0;
}
.nav-links a:hover,
.nav-links button:hover,
.nav-links button:focus-visible {
  color: var(--green);
  outline: none;
}
.nav-links a.is-active { color: var(--green); }

/* Hamburger — hidden on desktop */
.nav-hamburger { display: none; }

/* ── Subpages ── */
.page-header {
  padding: 4rem 0 2.5rem;
  animation: fadeUp 0.7s ease 0.1s both;
}

.page-header .page-eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.page-content {
  max-width: 640px;
  animation: fadeUp 0.7s ease 0.2s both;
}

.page-content p {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 1.4rem;
}

.page-content p:last-of-type { margin-bottom: 0; }

.source-header {
  padding-bottom: 2rem;
}

.source-intro {
  max-width: 600px;
  margin-top: 1.2rem;
  color: var(--text-dim);
  font-size: 0.96rem;
  line-height: 1.75;
  font-weight: 400;
}

.source-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.58fr) minmax(0, 1fr);
  gap: clamp(2rem, 4.5vw, 4.5rem);
  align-items: start;
  animation: fadeUp 0.7s ease 0.2s both;
}

.source-copy {
  animation: none;
}

.page-contact {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-contact a,
.page-contact button {
  appearance: none;
  background: transparent;
  color: var(--text-dim);
  border: 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
  cursor: pointer;
}

.page-contact a:hover,
.page-contact button:hover,
.page-contact button:focus-visible {
  color: var(--green);
  border-color: var(--green);
  outline: none;
}

.source-visual {
  border: 1px solid var(--border);
  background:
    radial-gradient(70% 80% at 70% 48%, rgba(143, 170, 133, 0.08), transparent 60%),
    var(--surface);
  overflow: hidden;
}

.source-visual-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #050607;
}

.source-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.source-img--schematic {
  object-position: 28% center;
  opacity: 0.78;
  filter: saturate(0.6) contrast(1.1) brightness(0.78);
  -webkit-mask-image: linear-gradient(to right, black 0%, black 40%, rgba(0,0,0,0.4) 57%, transparent 72%);
  mask-image: linear-gradient(to right, black 0%, black 40%, rgba(0,0,0,0.4) 57%, transparent 72%);
}

.source-img--routing {
  object-position: center;
  filter: saturate(1.06) contrast(1.06) brightness(0.88);
  transform-origin: center;
  transform: scale(1.22) translateX(10%);
  -webkit-mask-image: linear-gradient(to right, transparent 24%, rgba(0,0,0,0.4) 40%, black 60%);
  mask-image: linear-gradient(to right, transparent 24%, rgba(0,0,0,0.4) 40%, black 60%);
}

.source-blend {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 28% 90% at 48% 50%, rgba(143, 170, 133, 0.12), transparent 70%),
    linear-gradient(to bottom, rgba(8, 8, 8, 0.06), rgba(8, 8, 8, 0.28));
}

.source-visual-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(8, 8, 8, 0.28), transparent 18%, transparent 85%, rgba(8, 8, 8, 0.36)),
    linear-gradient(to bottom, rgba(8, 8, 8, 0.1), transparent 22%, transparent 80%, rgba(8, 8, 8, 0.38));
}

.source-visual-stage::after {
  content: "";
  position: absolute;
  top: -18%;
  bottom: -18%;
  left: 47%;
  z-index: 3;
  width: 1px;
  transform: rotate(7deg);
  background: linear-gradient(to bottom, transparent, rgba(143, 170, 133, 0.55), transparent);
  box-shadow: 0 0 24px rgba(143, 170, 133, 0.28);
}

.source-visual figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.wordmark-link { color: inherit; }
.wordmark-link:hover { color: var(--text); }

/* ── Build Log / changelog ── */
.log-intro {
  max-width: 560px;
  margin-bottom: 1rem;
  animation: fadeUp 0.7s ease 0.2s both;
}

.log-intro p {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.8;
  font-weight: 300;
}

.changelog {
  animation: fadeUp 0.7s ease 0.3s both;
}

.release {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 2.5rem;
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
}
.release:first-child {
  border-top: none;
  padding-top: 1.5rem;
}

.release-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  position: sticky;
  top: 2rem;
  align-self: start;
}

.release-version {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 2px 9px;
}

.release-date {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.release-body {
  max-width: 640px;
}

.release-eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.release-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 2.55rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 1rem;
}

.release-lead {
  color: rgba(232, 232, 232, 0.82);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 1.6rem;
}

.release-media {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-bottom: 1.6rem;
  background: var(--surface);
}

.release-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.release-media.is-empty {
  aspect-ratio: auto;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  border-color: var(--border-light);
  background:
    radial-gradient(circle at 30% 20%, rgba(143, 170, 133, 0.06), transparent 45%),
    var(--surface);
}

.release-media-note {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.release-body p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 1.1rem;
}
.release-body p:last-of-type { margin-bottom: 0; }
.release-body strong { color: var(--text); font-weight: 500; }
.release-body a {
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1px;
}
.release-body a:hover { color: var(--green); border-color: var(--green); }

/* ── Updates / signup ── */
.log-subscribe {
  margin-top: 3.5rem;
  padding: 2rem;
  border: 1px solid var(--border);
  background: var(--surface);
  max-width: 640px;
  animation: fadeUp 0.7s ease 0.4s both;
}

.log-subscribe h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.log-subscribe p {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 1.3rem;
}

.subscribe-form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.subscribe-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 0.7rem 0.9rem;
}
.subscribe-form input[type="email"]::placeholder { color: var(--text-muted); }
.subscribe-form input[type="email"]:focus { outline: none; border-color: var(--green); }

.subscribe-form button {
  background: transparent;
  border: 1px solid var(--green);
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.subscribe-form button:hover { background: var(--green); color: var(--bg); }

.subscribe-note {
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.subscribe-note a { color: var(--text-dim); border-bottom: 1px solid var(--border); }
.subscribe-note a:hover { color: var(--green); border-color: var(--green); }

/* ── Hero ── */
.hero {
  position: relative;
  padding: 4.7rem 0 3.4rem;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 2.5rem;
  align-items: center;
  min-height: clamp(540px, calc(100dvh - 98px), 720px);
  animation: fadeUp 0.7s ease 0.1s both;
}

.hero::before {
  content: '';
  position: absolute;
  top: 6%;
  right: -12%;
  width: min(62vw, 760px);
  height: min(54vw, 620px);
  pointer-events: none;
  background:
    radial-gradient(circle at 56% 58%, rgba(63, 140, 72, 0.2), transparent 42%),
    radial-gradient(circle at 52% 82%, rgba(144, 199, 100, 0.12), transparent 28%);
  filter: blur(28px);
  opacity: 0.88;
}

.hero-text {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: clamp(0.48rem, 0.65vw, 0.63rem);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
  white-space: nowrap;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5.25vw, 4.65rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 1.8rem;
  max-width: 860px;
}

.hero h1 em {
  font-style: italic;
  color: var(--green);
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 560px;
  line-height: 1.75;
  font-weight: 300;
}

.hero-product {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: min(70vw, 840px);
  min-height: clamp(430px, 48vw, 660px);
  overflow: hidden;
  pointer-events: none;
  transform: translateX(7vw) rotate(-0.8deg);
  filter: drop-shadow(0 30px 42px rgba(0, 0, 0, 0.56));
  background: var(--bg);
}

.hero-product img {
  position: absolute;
  top: 50%;
  right: -18%;
  width: 126%;
  max-width: none;
  height: auto;
  display: block;
  transform: translateY(-50%);
}

.hero-product--image3 img {
  right: -3%;
  width: 110%;
}

.hero-product--new {
  /* Opaque plate so lighten blends #000 → --bg, not the green hero glow */
  background: var(--bg);
  overflow: visible;
  filter: none;
}

/* Vignette: paint --bg over the photo's outer edges */
.hero-product--new::after {
  content: '';
  position: absolute;
  inset: -10%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.5;
  background: radial-gradient(
    ellipse 90% 88% at 56% 50%,
    transparent 30%,
    rgba(8, 8, 8, 0.65) 50%,
    var(--bg) 68%
  );
}

/* #000 in PNG → #080808 page; mask softens the rectangular file bounds */
.hero-product--new img {
  left: 50%;
  right: auto;
  width: auto;
  height: 100%;
  transform: translate(-45%, -50%);
  mix-blend-mode: lighten;
  filter: drop-shadow(0 30px 42px rgba(0, 0, 0, 0.5));
  -webkit-mask-image: radial-gradient(
    ellipse 100% 96% at 54% 50%,
    #000 0%,
    #000 40%,
    rgba(0, 0, 0, 0.75) 54%,
    rgba(0, 0, 0, 0.25) 68%,
    transparent 82%
  );
  mask-image: radial-gradient(
    ellipse 100% 96% at 54% 50%,
    #000 0%,
    #000 40%,
    rgba(0, 0, 0, 0.75) 54%,
    rgba(0, 0, 0, 0.25) 68%,
    transparent 82%
  );
}

/* ── EEG Strip ── */
.eeg-strip {
  border: 1px solid var(--border);
  background: #050505;
  overflow: hidden;
}

.eeg-strip.standalone {
  margin-bottom: 5rem;
  animation: fadeUp 0.7s ease 0.25s both;
}

.eeg-strip-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 7px 14px;
  border-bottom: 1px solid #151515;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: #282828;
}

.eeg-strip-header .live {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  margin-right: auto;
}

.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.15; }
}

.eeg-strip-body {
  display: flex;
  height: 272px;
}

.eeg-ch-labels {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #151515;
  flex-shrink: 0;
}

.eeg-ch-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: #252525;
  padding: 0 11px;
  display: flex;
  align-items: center;
  flex: 1;
  letter-spacing: 0.04em;
}

#eeg { display: block; flex: 1; min-width: 0; }

/* ── Spec Strip ── */
.spec-strip-wrap {
  margin-bottom: 6rem;
  animation: fadeUp 0.7s ease 0.35s both;
}

.spec-strip-note {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 0.9rem;
  max-width: 42rem;
}

.spec-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
}

.spec-col {
  padding: 2rem;
  border-right: 1px solid var(--border);
}
.spec-col:last-child { border-right: none; }

.spec-col h3 {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 0.55rem;
}

.spec-status {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--text-dim);
  line-height: 1.45;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.spec-status strong {
  color: var(--text-muted);
  font-weight: 400;
}

.spec-status strong::after {
  content: ":";
  margin-right: 0.35em;
}

.spec-col ul { list-style: none; }

.spec-col li {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
  font-family: var(--mono);
  font-weight: 300;
}
.spec-col li strong { color: var(--text-dim); font-weight: 400; }

/* ── Section label ── */
.section-label {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.section-label .num {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
}

.section-label h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.section-label .seis {
  flex: 1;
  height: 24px;
  position: relative;
}

.section-label .seis canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.section-label .seis::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(to right, var(--border) 0%, var(--border) 70%, transparent 100%);
  opacity: 0.35;
}

.section-label .line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

section { margin-bottom: 6.5rem; }

/* ── Feature block ── */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.feature-block--board {
  row-gap: 0.55rem;
  column-gap: 3.5rem;
}

.feature-block--board .board-frame {
  grid-column: 1;
  grid-row: 1;
}

.feature-block--board .feature-text {
  grid-column: 2;
  grid-row: 1;
}

.feature-board-spec {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  padding: 0 0.15rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  color: #444;
  line-height: 1.45;
  letter-spacing: 0.02em;
  font-weight: 300;
}

.feature-text p {
  margin-bottom: 1.4rem;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.8;
  font-weight: 300;
}
.feature-text p:last-of-type { margin-bottom: 0; }

/* Feature expand — always open on desktop, collapsible on mobile */
.feature-more > summary { display: none; }

.feature-text strong {
  color: var(--text);
  font-weight: 500;
}

/* ── Image frame ── */
.img-frame {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2a2a2a;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  position: relative;
  overflow: hidden;
}

.img-frame .corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--green);
  border-style: solid;
  opacity: 0.3;
}
.img-frame .corner.tl { top: 10px; left: 10px; border-width: 1px 0 0 1px; }
.img-frame .corner.tr { top: 10px; right: 10px; border-width: 1px 1px 0 0; }
.img-frame .corner.bl { bottom: 10px; left: 10px; border-width: 0 0 1px 1px; }
.img-frame .corner.br { bottom: 10px; right: 10px; border-width: 0 1px 1px 0; }

.feature-media {
  max-width: 480px;
  width: 100%;
}
.feature-media-frame {
  aspect-ratio: 3 / 4;
}
.feature-media-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  background: #050608;
}
.feature-media-caption {
  margin: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-top: none;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.61rem;
  line-height: 1.45;
  letter-spacing: 0.03em;
  background: rgba(8, 8, 8, 0.72);
}

/* ── Dual-board floating composition (front + back at once) ── */
.board-frame {
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 70% 30%, rgba(143, 170, 133, 0.10), transparent 55%),
    var(--surface);
}
.board-duo {
  position: relative;
  width: 100%;
  height: 100%;
}
.board-duo::after {
  /* soft grounding glow under the boards */
  content: "";
  position: absolute;
  left: 50%;
  bottom: 9%;
  width: 62%;
  height: 14%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), transparent 70%);
  filter: blur(6px);
  z-index: 0;
}
.board-duo .board-trigger {
  position: absolute;
  width: 64%;
  height: auto;
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: zoom-in;
  will-change: transform;
}
.board-duo .board-trigger img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.6));
  transition: filter 0.25s ease;
  pointer-events: none;
}
.board-duo .board-trigger:hover img,
.board-duo .board-trigger:focus-visible img {
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.65)) brightness(1.08);
}
.board-duo .board-trigger:focus-visible {
  outline: 1px solid var(--green);
  outline-offset: 4px;
}
.board-duo .board-back {
  top: 7%;
  right: 5%;
  z-index: 1;
  opacity: 0.94;
  animation: boardFloatBack 9.5s ease-in-out infinite;
}
.board-duo .board-front {
  bottom: 6%;
  left: 4%;
  z-index: 2;
  animation: boardFloatFront 8s ease-in-out infinite;
}
@keyframes boardFloatFront {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50%      { transform: rotate(-5deg) translateY(-11px); }
}
@keyframes boardFloatBack {
  0%, 100% { transform: rotate(7deg) translateY(0); }
  50%      { transform: rotate(7deg) translateY(11px); }
}
@media (prefers-reduced-motion: reduce) {
  .board-duo .board-back  { animation: none; transform: rotate(7deg); }
  .board-duo .board-front { animation: none; transform: rotate(-5deg); }
}

/* ── PCB Gallery ── */
.pcb-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.pcb-gallery .img-frame { aspect-ratio: 1/1; }

.pcb-gallery-item {}

.gallery-trigger {
  width: 100%;
  height: 100%;
  display: block;
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  padding: 0;
}

.gallery-trigger img {
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.gallery-trigger:hover img,
.gallery-trigger:focus-visible img {
  opacity: 0.86;
  transform: scale(1.025);
}

.gallery-trigger:focus-visible {
  outline: 1px solid var(--green);
  outline-offset: -1px;
}

.gallery-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.6rem 0 0;
}

/* ── Image lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 3rem;
  background: rgba(4, 4, 4, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-inner {
  width: min(100%, 1180px);
  max-height: 100%;
  display: grid;
  gap: 0.9rem;
}

.lightbox-img {
  width: 100%;
  max-height: calc(100vh - 8.5rem);
  object-fit: contain;
  display: block;
  border: 1px solid var(--border-light);
  background: #050607;
}

.lightbox-caption {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 1;
  border: 1px solid var(--border-light);
  background: rgba(8, 8, 8, 0.72);
  color: var(--text);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.65rem 0.9rem;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  border-color: var(--green);
  color: var(--green);
  outline: none;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 700px) {
  .lightbox { padding: 4.5rem 1rem 1.5rem; }
  .lightbox-img { max-height: calc(100vh - 8rem); }
  .lightbox-close { top: 0.9rem; right: 0.9rem; }
}

/* ── Tags ── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 1.5rem;
}

.tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: #3a3a3a;
  border: 1px solid #1e1e1e;
  padding: 3px 9px;
  font-weight: 300;
}

/* ── Pipeline ── */
.pipeline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 2rem;
}

.pipe-step {
  border: 1px solid var(--border);
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: #484848;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.pipe-arrow {
  font-size: 0.7rem;
  color: #222;
  padding: 0 6px;
}

/* ── Timeline ── */
.timeline { max-width: 760px; }

.tl-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 2.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--border);
}
.tl-item:first-child { border-top: 1px solid var(--border); }

.tl-item .yr {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--green);
  padding-top: 2px;
}

.tl-item .desc {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.75;
  font-weight: 300;
}

.tl-item .desc strong {
  display: block;
  color: #aaa;
  font-weight: 500;
  margin-bottom: 4px;
  font-size: 0.88rem;
}

/* ── Process / iteration ── */
.process-overview {
  margin-bottom: 2.6rem;
}

.process-lead {
  color: var(--text-dim);
  font-size: 0.96rem;
  line-height: 1.8;
  font-weight: 300;
  max-width: 720px;
}
.process-lead strong { color: var(--text); font-weight: 500; }

/* Revision entries */
.rev-entry {
  display: grid;
  grid-template-columns: minmax(310px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.rev-copy {
  position: sticky;
  top: 1.5rem;
  align-self: start;
}

.rev-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.rev-ver {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}
.rev-year {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.rev-wip {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 1px 7px;
  margin-left: 4px;
  vertical-align: middle;
}

.rev-title {
  max-width: 460px;
  margin-bottom: 1rem;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.45vw, 2rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
}

.rev-images {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 0.75rem;
}
.rev-images--v1 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.rev-images--v2 .rev-image:nth-child(4) {
  grid-column: span 2;
}
.rev-images--v2 .rev-image:nth-child(4) .img-frame {
  aspect-ratio: 16 / 9;
}
.rev-image {
  min-width: 0;
}
.rev-image .img-frame {
  aspect-ratio: 4 / 5;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  background:
    linear-gradient(135deg, rgba(143, 170, 133, 0.035), transparent 42%),
    var(--surface);
}
.rev-image.is-square .img-frame {
  aspect-ratio: 1 / 1;
}
.rev-image .gallery-trigger {
  flex: 1;
  min-height: 0;
}
.rev-image .gallery-trigger img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #050608;
}
.rev-image .gallery-trigger:hover img,
.rev-image .gallery-trigger:focus-visible img {
  transform: none;
  opacity: 0.9;
}

.rev-images--v3 .rev-image:nth-child(1),
.rev-images--v3 .rev-image:nth-child(2) {
  grid-column: span 2;
}
.rev-images--v3 .rev-image:nth-child(1) .img-frame,
.rev-images--v3 .rev-image:nth-child(2) .img-frame {
  aspect-ratio: 16 / 11;
}
.rev-images--v3 .rev-image:nth-child(7) {
  grid-column: span 2;
  grid-row: span 2;
}
.rev-images--v3 .rev-image:nth-child(7) .img-frame {
  aspect-ratio: 1 / 1;
}

.rev-body {
  max-width: 520px;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 1rem;
}
.rev-body:last-of-type {
  margin-bottom: 0;
}
.rev-body em {
  font-style: italic;
  color: var(--text);
  font-weight: 400;
}

.rev-note {
  max-width: 520px;
  margin-top: 0.35rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.86rem;
  line-height: 1.75;
  font-weight: 300;
}
.rev-note strong {
  color: var(--text);
  font-weight: 500;
}

.rev-caption {
  flex-shrink: 0;
  min-height: 42px;
  padding: 0.55rem 0.7rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.61rem;
  line-height: 1.45;
  letter-spacing: 0.03em;
  background: rgba(8, 8, 8, 0.72);
}
.rev-placeholder {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: #2a2a2a;
  text-align: center;
}

/* Collapsible deep notes */
.rev-details {
  margin-top: 1.1rem;
  border-top: 1px solid var(--border);
  padding-top: 0.5rem;
}
.rev-details > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.45rem 0;
  transition: color 0.18s ease;
}
.rev-details > summary::-webkit-details-marker { display: none; }
.rev-details > summary::before {
  content: "+";
  font-size: 0.9rem;
  line-height: 1;
  color: var(--green);
}
.rev-details[open] > summary::before { content: "\2013"; }
.rev-details > summary:hover { color: var(--text-dim); }
.rev-details[open] > summary { color: var(--text-dim); margin-bottom: 0.3rem; }
.rev-details .rev-body:first-of-type { margin-top: 0.2rem; }

/* ── Board gallery (staged carousel) ── */
.board-gallery {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.software-gallery {
  gap: 0;
}
.software-gallery .bg-stage { aspect-ratio: 16 / 10; }

.software-gallery .bg-caption {
  margin-top: 0;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-top: none;
  background: rgba(8, 8, 8, 0.72);
}

.software-gallery .bg-thumbs {
  margin-top: 0.7rem;
}

/* Fan layout — 3 portrait screenshots shown simultaneously */
.bg-slide--fan {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050608;
  overflow: visible;
}

.fan-card {
  position: absolute;
  width: 24%;
  height: 82%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 16px 48px rgba(0,0,0,0.8),
    0 0 0 1px rgba(255,255,255,0.14),
    0 0 22px rgba(143,170,133,0.09);
  transform-origin: center bottom;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.4s ease;
}

.fan-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fan-card--center {
  transform: translateX(0) rotate(0deg) scale(1);
  z-index: 3;
  opacity: 1;
}

.fan-card--left {
  transform: translateX(-62%) rotate(-10deg) scale(0.88);
  z-index: 2;
  opacity: 0.65;
}

.fan-card--right {
  transform: translateX(62%) rotate(10deg) scale(0.88);
  z-index: 2;
  opacity: 0.65;
}

.bg-slide--fan:hover .fan-card--left { opacity: 0.82; }
.bg-slide--fan:hover .fan-card--right { opacity: 0.82; }

.bg-slide--fan:not(.is-active) {
  overflow: hidden;
  pointer-events: none;
}

.bg-slide--video {
  background: #050608;
}

.bg-slide--video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #050608;
}

.bg-thumb-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.bg-stage {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 0;
  background: #050608;
  touch-action: pan-y;
}

.bg-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.15, 1);
  will-change: transform;
}

.bg-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.bg-blur {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.18);
  filter: blur(34px) brightness(0.42) saturate(1.05);
  opacity: 0.9;
  pointer-events: none;
}

.bg-slide .bg-trigger {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  cursor: zoom-in;
}
.bg-slide .bg-trigger img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.bg-slide .bg-trigger:hover img,
.bg-slide .bg-trigger:focus-visible img {
  transform: none;
  opacity: 0.92;
}

.bg-slide--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.bg-placeholder {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: #3a3a3a;
}

/* Arrows */
.bg-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  background: rgba(8, 8, 8, 0.55);
  backdrop-filter: blur(6px);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.board-gallery:hover .bg-arrow,
.bg-arrow:focus-visible { opacity: 1; }
.bg-arrow:hover { background: rgba(8, 8, 8, 0.85); border-color: var(--green); color: var(--green); }
.bg-prev { left: 12px; }
.bg-next { right: 12px; }

/* Counter */
.bg-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  background: rgba(8, 8, 8, 0.6);
  border: 1px solid var(--border);
  padding: 2px 8px;
  backdrop-filter: blur(6px);
}
.bg-counter .bg-cur { color: var(--green); }

/* Caption */
.bg-caption {
  min-height: 1.4em;
  font-family: var(--mono);
  font-size: 0.66rem;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

/* Thumbnail rail */
.bg-thumbs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) transparent;
}
.bg-thumbs::-webkit-scrollbar { height: 4px; }
.bg-thumbs::-webkit-scrollbar-thumb { background: var(--border-light); }
.bg-thumb {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid var(--border);
  background: #050608;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.18s ease, border-color 0.18s ease;
  overflow: hidden;
}
.bg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bg-thumb:hover { opacity: 0.85; }
.bg-thumb.is-active {
  opacity: 1;
  border-color: var(--green);
}
.bg-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  color: #3a3a3a;
}

@media (prefers-reduced-motion: reduce) {
  .bg-track { transition: none; }
}

/* ChatGPT rewind */
.rewind {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 2.5rem;
  margin-bottom: 2.5rem;
}
.rewind-eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}
.rewind-stat {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.3rem;
}
.rewind-stat span {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-top: 0.55rem;
}
.rewind-text p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.75;
  font-weight: 300;
}
.rewind-proof {
  border-left: 1px solid var(--border);
  padding-left: 2rem;
}
.rewind-proof-row {
  display: grid;
  grid-template-columns: minmax(5.6rem, auto) 1fr;
  gap: 1.2rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.rewind-proof-row:first-child { padding-top: 0; }
.rewind-proof-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.rewind-proof-row strong {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
  line-height: 1;
  font-weight: 400;
  color: var(--text);
}
.rewind-proof-row span {
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Process CTA */
.process-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}
.process-cta-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-width: 0;
  color: var(--text-dim);
  font-size: 0.88rem;
  font-weight: 300;
}
.process-cta-copy > span:first-child {
  min-width: 0;
  line-height: 1.7;
}
.proc-cta-link {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid #2f3b2c;
  padding: 9px 18px;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.process-cta:hover .proc-cta-link,
.process-cta:focus-visible .proc-cta-link {
  background: rgba(143, 170, 133, 0.07);
  border-color: var(--green);
  color: var(--green);
}
.process-cta:focus-visible {
  outline: 1px solid var(--green);
  outline-offset: 6px;
}
.process-cta-preview {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  min-height: 118px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #050608;
}
.process-cta-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.82;
  transition: transform 0.35s ease, opacity 0.25s ease;
}
.process-cta:hover .process-cta-preview video,
.process-cta:focus-visible .process-cta-preview video {
  transform: scale(1.025);
  opacity: 0.95;
}
.process-cta-preview-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 10px 8px;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: linear-gradient(to top, rgba(4, 4, 4, 0.86), transparent);
  pointer-events: none;
}

/* ── Profile card ── */
.profile-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 3rem;
}

.profile-img {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2a2a2a;
  font-family: var(--mono);
  font-size: 0.68rem;
  overflow: hidden;
}
.profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.profile-body .name {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.profile-body .role {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  margin-bottom: 1.5rem;
}

.profile-body p {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 1.1rem;
  font-weight: 300;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
}
.profile-links a,
.profile-links button {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
  cursor: pointer;
}
.profile-links a:hover,
.profile-links button:hover,
.profile-links button:focus-visible {
  color: var(--green);
  border-color: var(--green);
  outline: none;
}

/* ── Contact modal ── */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(4, 4, 4, 0.78);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.contact-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.contact-dialog {
  width: min(100%, 520px);
  position: relative;
  border: 1px solid var(--border-light);
  background:
    linear-gradient(140deg, rgba(143, 170, 133, 0.06), transparent 46%),
    #0b0b0b;
  padding: 2rem;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.contact-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 0.7rem;
}

.contact-close:hover,
.contact-close:focus-visible {
  color: var(--green);
  border-color: var(--green);
  outline: none;
}

.contact-kicker {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.9rem;
}

.contact-dialog h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 2.55rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.contact-dialog p {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.75;
  max-width: 440px;
}

.contact-email {
  margin: 1.6rem 0 1.1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-family: var(--mono);
  font-size: clamp(0.82rem, 3.6vw, 1rem);
  overflow-wrap: anywhere;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.contact-actions button,
.contact-actions a {
  appearance: none;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 0.9rem;
}

.contact-actions button:first-child {
  border-color: #2f3b2c;
  color: var(--green);
}

.contact-actions button:hover,
.contact-actions button:focus-visible,
.contact-actions a:hover,
.contact-actions a:focus-visible {
  border-color: var(--green);
  color: var(--green);
  outline: none;
}

.contact-note {
  color: var(--text-muted) !important;
  font-family: var(--mono);
  font-size: 0.68rem !important;
  line-height: 1.65 !important;
}

body.contact-open {
  overflow: hidden;
}

/* ── Footer ── */
footer {
  margin-top: 4rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: #282828;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
footer .bci { color: #3d5239; }

/* ══════════════════════════════════════════════════════════════
   Builds page — photo/video timeline
   ══════════════════════════════════════════════════════════════ */
.builds-container { max-width: 1140px; }

.builds-header { padding-bottom: 1.5rem; }
.builds-intro {
  max-width: 620px;
  margin-top: 1.4rem;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.8;
  font-weight: 300;
}
.builds-intro::after { content: none; }

.builds-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-top: 1.8rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.builds-stat strong {
  color: var(--green);
  font-weight: 500;
  font-size: 0.82rem;
  margin-right: 0.3rem;
}

/* Timeline + justified rows */
.builds-timeline {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.builds-timeline.is-ready { opacity: 1; }

.b-section {
  margin-top: 4.2rem;
}
.b-section:first-child { margin-top: 0; }
.b-section-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-top: 0.4rem;
  margin-bottom: 0.6rem;
  max-width: 480px;
}
.b-section-title {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.b-rows {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.b-rows.is-mobile-packed {
  flex-direction: column;
  flex-wrap: nowrap;
}
.b-mobile-row {
  display: flex;
  width: 100%;
  gap: 10px;
}

/* Tiles */
.b-tile {
  position: relative;
  display: block;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  cursor: zoom-in;
  flex: 0 0 auto;
}
.b-tile img,
.b-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.3s ease;
}
.b-tile:hover img,
.b-tile:hover video,
.b-tile:focus-visible img,
.b-tile:focus-visible video { transform: scale(1.045); opacity: 0.9; }
.b-tile:focus-visible { outline: 1px solid var(--green); outline-offset: -1px; }

.b-meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 16px 10px 7px;
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: linear-gradient(to top, rgba(4, 4, 4, 0.82), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.b-tile:hover .b-meta,
.b-tile:focus-visible .b-meta { opacity: 0.92; }
.b-proj { color: var(--green); }
.b-dot { color: var(--text-muted); }

/* Video badge */
.b-play {
  position: absolute;
  top: 8px; right: 8px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(4, 4, 4, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
}
.b-play::after {
  content: '';
  position: absolute;
  top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 4px 0 4px 6px;
  border-color: transparent transparent transparent var(--green);
}

/* Feature (written) drops — bigger "posts" that sit inside the stream,
   no fencing borders so the gallery just opens up for a beat. */
.b-feature { margin: 2.4rem 0; }
.b-feature-mediawrap { width: 100%; }

.b-feature-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  cursor: zoom-in;
}
.b-feature-media img,
.b-feature-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.3s ease;
}
.b-feature-media:hover img,
.b-feature-media:hover video { transform: scale(1.03); opacity: 0.92; }
.b-feature-media:focus-visible { outline: 1px solid var(--green); outline-offset: -1px; }
.b-feature-extra { cursor: default; }

/* Tall / portrait media: caption sits beside it */
.b-feature--side {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.6rem;
  align-items: center;
}
.b-feature--side .b-feature-media { height: 460px; }

/* Wide / landscape media (and image pairs): caption tucks underneath */
.b-feature--wide .b-feature-copy { margin-top: 1.1rem; }
.b-feature-mediawrap.is-pair { display: flex; gap: 10px; }
.b-feature-mediawrap.is-pair .b-feature-media { flex: 1 1 0; height: 420px; }

.b-feature-meta {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.7rem;
}
.b-feature-meta .b-dot { color: var(--text-muted); }
.b-feature-title {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.b-feature-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  line-height: 1.45;
  font-weight: 400;
  color: var(--text);
}
.b-feature--wide .b-feature-note { max-width: 62ch; }

/* Year rail */
.year-rail {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1px;
  z-index: 50;
  opacity: 0;
  transition: opacity 0.6s ease;
  padding-left: 12px;
  border-left: 1px solid var(--border);
}
.year-rail.is-ready { opacity: 1; }
.year-tick {
  background: transparent;
  border: 0;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: #333;
  cursor: pointer;
  padding: 6px 2px;
  text-align: left;
  transition: color 0.2s ease;
}
.year-tick:hover { color: var(--text-dim); }
.year-tick.is-current { color: var(--green); }

/* Builds lightbox */
.builds-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 3rem;
  background: rgba(4, 4, 4, 0.93);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.builds-lightbox.is-open { opacity: 1; pointer-events: auto; }
.b-lb-inner {
  width: min(100%, 1180px);
  max-height: 100%;
  display: grid;
  gap: 0.9rem;
  justify-items: center;
}
.b-lb-stage {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.b-lb-stage img,
.b-lb-stage video {
  max-width: 100%;
  max-height: calc(100vh - 9rem);
  object-fit: contain;
  display: block;
  border: 1px solid var(--border-light);
  background: #050607;
}
.b-lb-cap {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}
.b-lb-proj { color: var(--green); }
.b-lb-title { color: var(--text); text-transform: none; font-style: italic; }
.b-lb-close,
.b-lb-nav {
  position: fixed;
  z-index: 1;
  border: 1px solid var(--border-light);
  background: rgba(8, 8, 8, 0.72);
  color: var(--text);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 0.6rem 0.85rem;
}
.b-lb-close { top: 1.25rem; right: 1.25rem; text-transform: uppercase; font-size: 0.72rem; }
.b-lb-nav { top: 50%; transform: translateY(-50%); width: 42px; text-align: center; }
.b-lb-prev { left: 1.25rem; }
.b-lb-next { right: 1.25rem; }
.b-lb-close:hover,
.b-lb-nav:hover { border-color: var(--green); color: var(--green); }

@media (max-width: 1199px) {
  .year-rail { display: none; }
}

@media (max-width: 700px) {
  .b-feature { margin: 1.4rem 0; }
  .b-feature--side {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
  .b-feature--side .b-feature-media { height: auto; max-height: 70vh; aspect-ratio: 3 / 4; }
  .b-feature-mediawrap.is-pair { flex-direction: column; }
  .b-feature-mediawrap.is-pair .b-feature-media { height: auto; aspect-ratio: 4 / 3; }
  .b-feature-note { font-size: 1.12rem; }
  .b-meta { opacity: 0.85; }
  .builds-stats { gap: 1.1rem; }
  .b-lb-nav { top: auto; bottom: 1.25rem; transform: none; }
  .b-lb-prev { left: 1.25rem; }
  .b-lb-next { right: 1.25rem; }
  .builds-lightbox { padding: 4.5rem 0.8rem 1.5rem; }
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 820px) {
  .spec-strip { grid-template-columns: repeat(2, 1fr); }
  .spec-col:nth-child(2) { border-right: none; }
  .spec-col:nth-child(1),
  .spec-col:nth-child(2) { border-bottom: 1px solid var(--border); }
  .source-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .source-visual {
    max-width: 760px;
  }
  .source-visual-stage {
    min-height: 360px;
  }
  .profile-card {
    grid-template-columns: 1fr;
    gap: 1.35rem;
    padding: 2rem;
  }
  .profile-img {
    width: min(42vw, 148px);
  }
}

@media (min-width: 1200px) {
  .hero-text {
    transform: translateX(clamp(0.75rem, 2vw, 1.9rem));
  }
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    gap: 1rem;
  }
  .hero h1 { font-size: clamp(2.35rem, 5.7vw, 4rem); }
  .hero-product {
    width: min(76vw, 700px);
    transform: translateX(10vw) rotate(-0.8deg);
  }
  .hero-product img {
    right: -28%;
    width: 142%;
  }
  .hero-product--image3 img {
    right: -12%;
    width: 122%;
  }
  .hero-product--new img {
    left: 50%;
    right: auto;
    width: auto;
    height: 108%;
    transform: translate(-45%, -50%);
  }
}

@media (max-width: 700px) {
  /* Layout */
  .container {
    padding: 0 1.1rem 3rem;
    overflow-x: hidden;
  }
  header {
    padding: 1rem 1.1rem;
    position: relative;
    z-index: 500;
    overflow: visible;
  }

  /* Hamburger button */
  .nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 22px;
    height: 16px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
  }
  .nav-hamburger span {
    display: block;
    height: 1.5px;
    width: 100%;
    background: var(--text-dim);
    transition: transform 0.22s ease, opacity 0.22s ease, background 0.2s;
    transform-origin: center;
  }
  .nav-hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .nav-hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .nav-hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }
  .nav-hamburger[aria-expanded="true"] span { background: var(--green); }

  /* Nav dropdown */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 200;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 0;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a,
  .nav-links button {
    flex: none;
    width: 100%;
    text-align: left;
    min-height: 0;
    padding: 0.95rem 1.1rem;
    border: 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-dim);
    display: block;
    background: transparent;
  }
  .nav-links > *:last-child { border-bottom: 0; }
  .nav-links a.is-active { color: var(--green); }
  .nav-links a:hover,
  .nav-links button:hover { color: var(--text); }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    padding: 1rem 0 2.5rem;
    gap: 1.5rem;
    min-height: 0;
    overflow: visible;
  }
  .hero::before {
    top: auto;
    bottom: -6%;
    right: -20vw;
    width: 100vw;
    height: 44vh;
    filter: blur(32px);
    opacity: 0.35;
  }
  .hero-text {
    order: 2;
  }
  .hero-product {
    order: 1;
    justify-self: center;
    width: calc(100% + 2.2rem);
    min-height: clamp(330px, 88vw, 440px);
    margin: 0 -1.1rem;
    transform: translateX(0) rotate(-0.5deg);
  }
  .hero-product img {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 58% center;
    transform: none;
  }
  .hero-product--image3 img {
    object-position: 52% center;
    transform: scale(1.08);
  }
  .hero-product--new {
    overflow: hidden;
  }

  .hero-product--new::after {
    inset: 0;
    opacity: 0.5;
    background: radial-gradient(
      ellipse 108% 98% at 52% 48%,
      transparent 24%,
      rgba(8, 8, 8, 0.7) 46%,
      var(--bg) 64%
    );
  }

  .hero-product--new img {
    object-position: 52% center;
    transform: scale(0.96);
    -webkit-mask-image: radial-gradient(
      ellipse 105% 95% at 52% 48%,
      #000 0%,
      #000 32%,
      rgba(0, 0, 0, 0.82) 48%,
      rgba(0, 0, 0, 0.35) 64%,
      transparent 80%
    );
    mask-image: radial-gradient(
      ellipse 105% 95% at 52% 48%,
      #000 0%,
      #000 32%,
      rgba(0, 0, 0, 0.82) 48%,
      rgba(0, 0, 0, 0.35) 64%,
      transparent 80%
    );
  }
  .hero h1 {
    font-size: clamp(2.22rem, 10.8vw, 3.25rem);
    margin-bottom: 1.25rem;
  }
  .hero-eyebrow {
    margin-bottom: 1.05rem;
  }
  .hero-sub {
    font-size: 0.95rem;
  }

  .page-header { padding: 2.8rem 0 2rem; }
  .page-content p { font-size: 0.9rem; }
  .source-header { padding-bottom: 1.6rem; }
  .source-intro { font-size: 0.9rem; }
  .source-layout { gap: 1.6rem; }
  .source-visual-stage {
    aspect-ratio: 4 / 3;
  }

  .source-img--schematic {
    object-position: 32% center;
    -webkit-mask-image: linear-gradient(to right, black 0%, black 36%, rgba(0,0,0,0.4) 54%, transparent 70%);
    mask-image: linear-gradient(to right, black 0%, black 36%, rgba(0,0,0,0.4) 54%, transparent 70%);
  }
  .source-img--routing {
    object-position: 60% center;
    -webkit-mask-image: linear-gradient(to right, transparent 26%, rgba(0,0,0,0.4) 42%, black 62%);
    mask-image: linear-gradient(to right, transparent 26%, rgba(0,0,0,0.4) 42%, black 62%);
  }
  .source-visual-stage::after {
    left: 48%;
  }
  .contact-modal {
    align-items: end;
    padding: 0.8rem;
  }
  .contact-dialog {
    padding: 1.5rem;
  }
  .contact-close {
    top: 0.8rem;
    right: 0.8rem;
  }

  /* Build log / changelog */
  .release {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 2.5rem 0;
  }
  .release-meta {
    position: static;
    top: auto;
  }
  .release-title { font-size: clamp(1.6rem, 8vw, 2.1rem); }
  .log-subscribe { padding: 1.4rem; }

  /* EEG strip */
  .eeg-strip-header {
    gap: 10px;
    padding: 6px 10px;
    flex-wrap: wrap;
  }
  .eeg-strip-header span:nth-child(n+4) { display: none; }
  .eeg-strip-body { height: 200px; }

  /* Spec strip */
  .spec-strip-wrap { margin-bottom: 2.5rem; }
  .spec-strip {
    display: flex;
    gap: 0.7rem;
    border: 0;
    overflow-x: auto;
    padding: 0 1.1rem 0.2rem;
    margin: 0 -1.1rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .spec-strip::-webkit-scrollbar { display: none; }
  .spec-col {
    flex: 0 0 min(82vw, 330px);
    scroll-snap-align: start;
    border: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1rem;
  }
  .spec-col:nth-child(1),
  .spec-col:nth-child(2),
  .spec-col:nth-child(3),
  .spec-col:nth-child(4) { border-right: 1px solid var(--border); }
  .spec-col:nth-child(3),
  .spec-col:nth-child(4) { border-bottom: 1px solid var(--border); }
  .spec-col li {
    font-size: 0.8rem;
    line-height: 1.48;
  }

  /* Section label — num + seis on same row, h2 below */
  .section-label {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.8rem;
    row-gap: 0.35rem;
    margin-bottom: 2.5rem;
    padding-top: 0.5rem;
  }
  .section-label .num {
    grid-column: 1;
    grid-row: 1;
    white-space: nowrap;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    align-self: center;
  }
  .section-label h2 {
    grid-column: 1 / -1;
    grid-row: 2;
    white-space: normal;
    font-size: 1.8rem;
    letter-spacing: -0.025em;
  }
  .section-label .seis {
    grid-column: 2;
    grid-row: 1;
    flex: none;
    width: auto;
    height: 22px;
    margin-top: 0;
    align-self: center;
  }
  .section-label .line {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    height: 1px;
  }

  /* Feature blocks */
  .feature-block { grid-template-columns: 1fr; gap: 1.75rem; }
  .feature-block--board { row-gap: 0.45rem; }
  .feature-block--board .board-frame { grid-column: 1; grid-row: 1; }
  .feature-block--board .feature-board-spec { grid-column: 1; grid-row: 2; }
  .feature-block--board .feature-text { grid-column: 1; grid-row: 3; }
  .feature-text p { font-size: 0.9rem; }

  /* Feature expand — toggle on mobile */
  .feature-more > summary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    list-style: none;
    cursor: pointer;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0.5rem 0 0.2rem;
    transition: color 0.18s ease;
    user-select: none;
  }
  .feature-more > summary::-webkit-details-marker { display: none; }
  .feature-more > summary::before {
    content: "+";
    font-size: 0.9rem;
    line-height: 1;
    color: var(--green);
  }
  .feature-more[open] > summary::before { content: "\2013"; }
  .feature-more > summary:hover { color: var(--text-dim); }

  /* Pipeline — vertical on mobile */
  .pipeline {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-top: 1.5rem;
  }
  .pipe-step { padding: 7px 12px; font-size: 0.66rem; }
  .pipe-arrow {
    padding: 2px 14px;
    font-size: 0.65rem;
    color: #303030;
  }

  /* PCB gallery — asymmetric 2-col: tall board photo left, routing + schematic stacked right */
  .pcb-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 155px 155px;
    gap: 0.5rem;
    margin-top: 1.5rem;
  }
  .pcb-gallery-item:nth-child(1) {
    grid-row: 1 / 3;
  }
  .pcb-gallery .img-frame {
    aspect-ratio: unset !important;
    height: 100%;
    width: 100%;
  }

  /* Timeline — keep year column, just narrower */
  .tl-item { grid-template-columns: 80px 1fr; gap: 1rem; padding: 1.25rem 0; }
  .tl-item .yr { font-size: 0.72rem; }

  /* Process */
  .process-overview {
    margin-bottom: 2rem;
  }
  .process-lead { font-size: 0.9rem; }
  .rev-entry {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 2rem 0;
  }
  .rev-copy { position: static; }
  .rev-title { font-size: 1.7rem; }
  .rev-body { max-width: none; }
  .rev-note { max-width: none; }
  .rev-images,
  .rev-images--v1 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }
  .rev-images--v3 .rev-image:nth-child(1),
  .rev-images--v3 .rev-image:nth-child(2),
  .rev-images--v3 .rev-image:nth-child(7) {
    grid-column: span 1;
    grid-row: auto;
  }
  .rev-images--v3 .rev-image:nth-child(1) .img-frame,
  .rev-images--v3 .rev-image:nth-child(2) .img-frame,
  .rev-images--v3 .rev-image:nth-child(7) .img-frame {
    aspect-ratio: 4 / 5;
  }
  .process-cta {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-top: 1.5rem;
  }
  .process-cta-copy {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }
  .process-cta-preview {
    width: min(100%, 420px);
    min-height: 0;
  }
  .rewind { grid-template-columns: 1fr; gap: 1.75rem; padding: 1.5rem; }
  .rewind-proof {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 1.5rem;
  }

  /* Profile card */
  .profile-card {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1.35rem;
  }
  .profile-img {
    width: min(42vw, 148px);
  }
  .profile-body {
    min-width: 0;
  }
  .profile-body .name { font-size: 1.4rem; }

  footer { margin-top: 2rem; }

  /* Sections */
  section { margin-bottom: 3.5rem; }

  /* Source/Docs page — hide image on mobile */
  .source-visual { display: none; }
}

/* Extra-small screens */
@media (max-width: 400px) {
  .container { padding: 0 0.9rem 3rem; }
  .hero h1 { font-size: 2.08rem; }
  .hero-product {
    min-height: 290px;
    width: calc(100% + 1.8rem);
    margin: 0 -0.9rem;
  }
  .hero-product img {
    object-position: 57% center;
  }
  .rev-images,
  .rev-images--v1 {
    grid-template-columns: 1fr;
  }
  .rev-images--v2 .rev-image:nth-child(4) {
    grid-column: span 1;
  }
  .rev-images--v2 .rev-image:nth-child(4) .img-frame {
    aspect-ratio: 4 / 5;
  }
  .spec-col { padding: 1.1rem 0.9rem; }
  .profile-card { padding: 1.25rem; }
}

/* ── Secondary reading text ──
   Body copy uses DM Sans 400 (not Light/300) at a slightly brighter ink than
   --text-dim, so paragraphs don't go thin and anemic on the dark background. */
.hero-sub,
.feature-text p,
.rev-body,
.rev-note,
.process-lead,
.profile-body p,
.page-content p,
.tl-item .desc,
.release-body p,
.builds-intro,
.rewind-text p,
.process-cta p {
  font-weight: 400;
  color: #8a8a8a;
}
