@font-face {
  font-family: Manrope;
  src: url("/assets/fonts/manrope.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #111312;
  --surface: #1a1d1b;
  --text: #f3f4f0;
  --muted: #adb5ae;
  --line: #353b37;
  --control-line: #6f7d73;
  --accent: #a3c992;
  --cyan: #4cc2cf;
  --footer: #b6c9a6;
  --footer-text: #182019;
  --fault: #e3a65e;
  --screen: #0b0f0d;
  --seg-on: #c6e3b3;
  --seg-off: rgba(180, 210, 162, 0.07);
  --seg-glow: rgba(180, 210, 162, 0.45);
  --max: 1500px;
  --gutter: clamp(22px, 5vw, 96px);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f3eb;
  --surface: #e7eae0;
  --text: #1b2721;
  --muted: #526157;
  --line: #a5b1a5;
  --control-line: #6e8072;
  --accent: #365e3c;
  --cyan: #21686d;
  --footer: #253b30;
  --footer-text: #f1f3e8;
  --fault: #9a5410;
  --screen: #d5dccb;
  --seg-on: #17221c;
  --seg-off: rgba(23, 34, 28, 0.07);
  --seg-glow: transparent;
}

* {
  box-sizing: border-box;
}
html {
  scrollbar-gutter: stable;
  scroll-padding-top: 110px;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.65 Manrope,
    "Segoe UI",
    Arial,
    sans-serif;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button,
input,
select {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--control-line);
  border-radius: 3px;
}
button {
  min-height: 44px;
  padding: 9px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
button:hover,
a:hover {
  color: var(--cyan);
}
input,
select {
  min-height: 48px;
  padding: 10px 14px;
  max-width: 100%;
}
input[type="search"] {
  width: 100%;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
svg {
  max-width: 100%;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
p + p {
  margin-top: 1em;
}
h1,
h2,
h3 {
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.04em;
}
h1 {
  font-size: clamp(42px, 5.4vw, 82px);
  max-width: 18ch;
}
h2 {
  font-size: clamp(30px, 3.5vw, 49px);
}
h3 {
  font-size: 24px;
}
em {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  color: var(--accent);
}
p {
  max-width: 72ch;
}
h3 + p {
  margin-top: 14px;
}
ul,
ol {
  padding-left: 24px;
}
li + li {
  margin-top: 9px;
}
::selection {
  background: var(--accent);
  color: var(--bg);
}
:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 5px;
}
main:focus {
  outline: none;
}
[hidden] {
  display: none !important;
}
.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  vertical-align: middle;
}
.small,
figcaption {
  font-size: 13px;
  color: var(--muted);
}
figcaption {
  margin-top: 12px;
}
.eyebrow {
  text-transform: uppercase;
  font:
    600 12px/1.7 "Consolas",
    monospace;
  letter-spacing: 0.13em;
  color: var(--muted);
}
.lead {
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 55ch;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 100;
  padding: 12px;
  background: var(--text);
  color: var(--bg);
}
.skip-link:focus {
  top: 10px;
}
section[id],
h2[id] {
  scroll-margin-top: 110px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
[data-motion="off"] {
  scroll-behavior: auto;
}
[data-motion="off"] *,
[data-motion="off"] *:before,
[data-motion="off"] *:after {
  animation: none !important;
  transition: none !important;
}

.wrap {
  max-width: calc(var(--max) + var(--gutter) * 2);
  padding-inline: var(--gutter);
  margin-inline: auto;
}
.section {
  padding-block: 92px;
}
.section + .section {
  border-top: 1px solid var(--line);
}
.section-heading {
  margin-bottom: 35px;
}
.section-heading .eyebrow {
  margin-bottom: 15px;
}
.page-heading {
  padding-block: 88px 58px;
}
.page-heading h1 {
  margin: 20px 0 28px;
  font-size: clamp(48px, 6.7vw, 104px);
  line-height: 1.02;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
  font-weight: 600;
}
.brand img {
  border-radius: 50%;
}
.brand small {
  display: block;
  font:
    9px/1.8 Consolas,
    monospace;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-top: 4px;
}
.desktop-nav,
.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.desktop-nav a {
  font-size: 13px;
  text-decoration: none;
  display: flex;
  gap: 6px;
  align-items: center;
}
.desktop-nav .icon {
  display: none;
}
.desktop-nav a.active {
  color: var(--accent);
  text-decoration: none;
}
.header-actions {
  gap: 4px;
}
.icon-button {
  width: 44px;
  padding: 10px;
  background: transparent;
  border-color: transparent;
}
.icon-button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.locale-link {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  text-decoration: none;
  font-size: 12px;
}
.mobile-toggle {
  display: none;
}
.timeline-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  padding: 27px 0;
  border-top: 1px solid var(--line);
}
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
@media (max-width: 1100px) {
  .desktop-nav {
    gap: 14px;
  }
  .brand small {
    display: none;
  }
  .site-header {
    padding-inline: 26px;
  }
  .header-actions {
    gap: 0;
  }
}
@media (max-width: 950px) {
  .desktop-nav {
    display: none;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .two-column {
    gap: 30px;
  }
}
@media (max-width: 600px) {
  .site-header {
    padding: 10px 16px;
    gap: 8px;
  }
  .brand {
    font-size: 13px;
    gap: 8px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .header-actions .icon-button,
  .locale-link {
    min-width: 38px;
    width: 38px;
  }
  .section {
    padding-block: 48px;
  }
  .page-heading {
    padding-block: 50px 32px;
  }
  .timeline-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .two-column {
    grid-template-columns: 1fr;
  }
}
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  min-height: 40px;
  font-size: 13px;
  text-decoration: none;
  border: 1px solid var(--control-line);
  border-radius: 2px;
  white-space: nowrap;
}
.header-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
}
@media (max-width: 1080px) {
  .header-cta {
    display: none;
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
}
.button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  min-height: 48px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  border-radius: 2px;
}
.button:hover {
  background: var(--text);
  color: var(--bg);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.text-link:hover {
  border-color: var(--cyan);
}
dialog {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 30px 100px #0005;
  max-height: 85dvh;
  width: min(680px, calc(100% - 28px));
  padding: 26px;
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 22px;
}
.dialog-head h2 {
  font-size: 25px;
}
#mobile-menu nav {
  display: grid;
  gap: 8px;
}
#mobile-menu nav a {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 23px;
  text-decoration: none;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  z-index: 60;
  background: var(--text);
  color: var(--bg);
  max-width: 90vw;
  border-radius: 3px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font:
    11px/1.5 Consolas,
    monospace;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.status:before {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}
.rows {
  border-top: 1px solid var(--line);
}
.resource-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.resource-row :is(h2, h3) {
  font-size: 25px;
}
.resource-row p {
  margin-top: 10px;
  color: var(--muted);
}
.resource-row > a {
  flex-shrink: 0;
}
.callout {
  border-left: 3px solid var(--accent);
  padding: 22px 26px;
  background: var(--surface);
  margin-block: 25px;
}
.meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  border-block: 1px solid var(--line);
  padding: 20px 0;
  margin: 28px 0;
}
.meta-grid dt {
  font:
    11px Consolas,
    monospace;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.meta-grid dd {
  margin: 0;
  font-size: 14px;
}
.gallery-trigger {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  width: 100%;
  cursor: zoom-in;
}
.gallery-trigger img {
  width: 100%;
}
.gallery-dialog {
  width: min(1180px, calc(100% - 25px));
}
.gallery-stage {
  overflow: auto;
  max-height: 64vh;
  display: grid;
  place-items: start center;
}
.gallery-stage img {
  max-height: 62vh;
  object-fit: contain;
  width: auto;
}
.gallery-stage.zoom img {
  max-width: none;
  max-height: none;
  width: 150%;
}
.gallery-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}
.mono {
  font-family: Consolas, monospace;
}
@media (max-width: 600px) {
  .resource-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .meta-grid {
    gap: 18px 25px;
  }
  dialog {
    padding: 19px;
  }
}

.ch {
  display: inline-block;
  overflow: clip;
  vertical-align: bottom;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.ch > span {
  display: inline-block;
}
.name-line {
  overflow: visible;
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 36px);
}
.also-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 36px;
  margin-top: 40px;
  padding: 24px 0;
  border-block: 1px solid var(--line);
}
.also-strip h2,
.also-strip h3 {
  font-size: 12px;
}
.also-strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
}
.also-strip li {
  display: flex;
  flex-direction: column;
  font-size: 14px;
}
.also-strip li a {
  font-weight: 600;
}
.also-strip li span {
  color: var(--muted);
  font-size: 13px;
}
.contribution-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}
.contribution-map article {
  border-top: 2px solid var(--accent);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
}
.contribution-map .icon {
  color: var(--cyan);
}
.contribution-map :is(h2, h3) {
  font-size: 23px;
  margin: 16px 0 10px;
}
.contribution-map p {
  color: var(--muted);
  font-size: 15px;
  flex: 1;
}
.contribution-map .text-link {
  font-size: 13px;
  margin-top: 14px;
  align-self: flex-start;
}
.engagement-list,
.cert-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}
.engagement-list li,
.cert-list li {
  display: flex;
  flex-direction: column;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.engagement-list span,
.cert-list span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}
.engagement-list .small {
  margin-top: 6px;
}
.cert-title {
  margin-top: 26px;
}
@media (max-width: 1050px) {
  .contribution-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .case-grid,
  .contribution-map {
    grid-template-columns: 1fr;
  }
  .also-strip {
    display: block;
  }
  .also-strip ul {
    margin: 14px 0;
  }
}
h2 + .contribution-map {
  margin-top: 36px;
}
/* Case cards: schematic band, title and headline figure, then problem / approach / result. */
.case-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  transition:
    border-color 0.35s,
    transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.case-card:hover,
.case-card:focus-within {
  border-color: color-mix(in srgb, var(--accent) 70%, transparent);
}
.case-visual {
  position: relative;
  display: block;
  aspect-ratio: 2.4;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(
      120% 90% at 85% 0%,
      color-mix(in srgb, var(--cyan) 16%, transparent),
      transparent 60%
    ),
    linear-gradient(var(--line) 0.5px, transparent 0.5px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--line) 0.5px, transparent 0.5px) 0 0 / 24px
      24px,
    var(--bg);
}
.case-index,
.case-badge {
  position: absolute;
  top: 14px;
  font:
    600 10px/1.5 Consolas,
    monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.case-index {
  left: 16px;
  color: var(--muted);
}
.case-badge {
  right: 14px;
  padding: 3px 8px;
  border: 1px solid color-mix(in srgb, var(--cyan) 60%, transparent);
  color: var(--cyan);
  border-radius: 2px;
}
.project-art {
  position: absolute;
  inset: 22px 18px 6px;
  width: calc(100% - 36px);
  height: calc(100% - 28px);
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.case-card:hover .project-art {
  transform: scale(1.04);
}
.project-art circle {
  fill: var(--bg);
}
.project-art .hot {
  fill: var(--accent);
  stroke: var(--accent);
}
.project-art .axis,
.project-art .walls {
  stroke: var(--line);
}
.project-art .route,
.project-art .phasor,
.project-art .field {
  stroke: var(--cyan);
  stroke-width: 2;
}
.project-art .phase {
  stroke: var(--accent);
  stroke-dasharray: 3 5;
}
.project-art marker path {
  fill: var(--cyan);
  stroke: none;
}
.project-art .route {
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: art-draw 2.6s 0.3s cubic-bezier(0.6, 0, 0.2, 1) forwards;
}
@keyframes art-draw {
  to {
    stroke-dashoffset: 0;
  }
}
.case-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(22px, 2.4vw, 34px);
}
.case-title :is(h2, h3) {
  font-size: clamp(30px, 2.8vw, 42px);
  line-height: 1;
  letter-spacing: -0.04em;
}
.case-title a {
  text-decoration: none;
}
.case-subtitle {
  color: var(--muted);
  margin-top: 8px;
}
.case-metric {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 22px 0 4px;
  padding: 16px 0;
  border-block: 1px solid var(--line);
}
.case-metric strong {
  font:
    italic clamp(44px, 4vw, 62px) / 1 "Instrument Serif",
    Georgia,
    serif;
  color: var(--accent);
  font-weight: 400;
}
.case-metric strong span {
  font-size: 0.45em;
  font-style: normal;
  margin-left: 6px;
  color: var(--cyan);
}
.case-metric small {
  color: var(--muted);
  font-size: 13px;
}
.case-metric sup,
.evidence-strip dd sup {
  font-size: 0.45em;
  font-style: normal;
  vertical-align: 1.1em;
  margin-left: 2px;
  line-height: 0;
}
.case-steps {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  flex: 1;
}
.case-steps > div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
}
.case-steps dt {
  font:
    600 10.5px/2 Consolas,
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.case-steps dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
}
.case-steps ul {
  margin: 0;
  padding-left: 17px;
}
.case-steps li + li {
  margin-top: 4px;
}
.case-tools {
  margin-top: 22px;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.case-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin-top: 10px;
  font-size: 14px;
}
@media (max-width: 760px) {
  .case-steps > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .case-visual {
    aspect-ratio: 2;
  }
}
@media (prefers-reduced-motion: reduce) {
  .project-art .route {
    animation: none;
    stroke-dashoffset: 0;
  }
}
:root[data-motion="off"] .project-art .route {
  animation: none;
  stroke-dashoffset: 0;
}
/* Tailored greeting for links such as ?pour=schneider. */
.for-company {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 8px 14px 8px 12px;
  border: 1px solid color-mix(in srgb, var(--cyan) 55%, transparent);
  background: color-mix(in srgb, var(--cyan) 10%, transparent);
  border-radius: 999px;
  font-size: 13.5px;
}
.for-company[hidden] {
  display: none;
}
.for-company .icon {
  width: 16px;
  height: 16px;
  color: var(--cyan);
}
/* Proposed internship subjects. */
.proposals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 10px;
}
.proposal {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.4vw, 32px);
  border: 1px solid var(--line);
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--accent) 7%, transparent),
      transparent 45%
    ),
    var(--surface);
}
.proposal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font:
    600 10.5px/1.5 Consolas,
    monospace;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.proposal-head .icon {
  color: var(--cyan);
}
.proposal :is(h2, h3) {
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 18px 0 10px;
}
.proposal > p {
  color: var(--muted);
  font-size: 15px;
}
.proposal dl {
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
  flex: 1;
}
.proposal dl > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.proposal dt {
  font:
    600 10px/2 Consolas,
    monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.proposal dd {
  margin: 0;
}
.proposal-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: 18px;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  min-height: 40px;
}
.proposal-cta:hover {
  border-color: var(--cyan);
}
.replay-control {
  min-height: 30px;
  padding: 2px 10px;
  gap: 7px;
  font:
    600 10.5px/1 Consolas,
    monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}
.replay-control .icon {
  width: 13px;
  height: 13px;
}
.print-button {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0;
  color: inherit;
}
@media (max-width: 760px) {
  .proposals {
    grid-template-columns: 1fr;
  }
  .proposal dl > div {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
/* A clean one-page sheet when a recruiter prints or saves as PDF. */
@media print {
  :root,
  :root[data-theme] {
    --bg: #fff;
    --surface: #fff;
    --text: #111;
    --muted: #444;
    --line: #ccc;
    --accent: #2f5f3a;
    --cyan: #1f6a6e;
  }
  body {
    font-size: 11pt;
  }
  .site-header,
  .site-footer,
  .skip-link,
  dialog,
  .toast,
  .boot,
  .actions,
  .print-button,
  .replay-control,
  .proposal-cta {
    display: none !important;
  }
  .section,
  .page-heading {
    padding-block: 14pt;
  }
  .proposal,
  .case-card,
  .contribution-map article,
  .delivered-grid article {
    break-inside: avoid;
  }
  a {
    text-decoration: none;
  }
}
.section > h2 + p {
  margin: 14px 0 26px;
  color: var(--muted);
  max-width: 60ch;
}

/* Command palette (Ctrl / Cmd K). */
dialog.palette {
  width: min(720px, calc(100% - 24px));
  max-height: min(640px, 82dvh);
  padding: 0;
  margin-top: 12vh;
  display: none;
  flex-direction: column;
  overflow: hidden;
  background: color-mix(in srgb, var(--bg) 92%, var(--surface));
  border-color: var(--control-line);
}
dialog.palette[open] {
  display: flex;
}
.palette-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 20px;
  border-bottom: 1px solid var(--line);
}
.palette-head > .icon {
  color: var(--accent);
}
.palette-head input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 19px;
  letter-spacing: -0.01em;
  padding: 12px 0;
}
.palette-head input:focus-visible {
  outline: none;
}
.palette-head input::-webkit-search-cancel-button {
  display: none;
}
.palette-body {
  overflow: auto;
  padding: 6px 8px 10px;
  flex: 1;
}
.palette-group + .palette-group {
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.palette-label {
  font:
    600 10.5px/1.5 Consolas,
    monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 12px 6px;
}
.palette-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.palette-group li {
  margin: 0;
}
.palette-group :is(a, button) {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 46px;
  padding: 8px 12px;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  font-size: 15px;
}
.palette-group :is(a, button) .icon {
  color: var(--muted);
}
.palette-group :is(a, button):is(:hover, :focus-visible) {
  background: color-mix(in srgb, var(--accent) 11%, transparent);
  border-left-color: var(--accent);
  color: var(--text);
  outline: none;
}
.palette-group :is(a, button):is(:hover, :focus-visible) .icon {
  color: var(--accent);
}
.pi-label {
  flex: 1;
  min-width: 0;
}
.pi-label small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pi-page {
  padding-left: 46px !important;
}
.pi-hint {
  font:
    12px/1.4 Consolas,
    monospace;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 40%;
}
.palette-empty {
  padding: 26px 14px;
  color: var(--muted);
}
.palette-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.palette-brand {
  margin-left: auto;
}
kbd {
  display: inline-block;
  min-width: 22px;
  margin-right: 3px;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 3px;
  font:
    11px/1.5 Consolas,
    monospace;
  text-align: center;
  color: var(--text);
  background: var(--surface);
}
@media (max-width: 600px) {
  dialog.palette {
    margin-top: 10px;
    max-height: 88dvh;
  }
  .palette-foot {
    display: none;
  }
  .pi-hint {
    display: none;
  }
}

.site-footer {
  position: relative;
  margin-top: clamp(110px, 12vw, 170px);
  padding: 0 var(--gutter) 26px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.site-footer:before {
  content: "";
  position: absolute;
  inset: -1px 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--accent) 60%, transparent);
}
.footer-cta {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(30px, 5vw, 90px);
  align-items: end;
  padding-block: clamp(56px, 8vw, 110px) clamp(40px, 5vw, 70px);
  border-bottom: 1px solid var(--line);
}
.footer-pitch .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
}
.footer-pitch h2 {
  font-size: clamp(40px, 5.6vw, 88px);
  line-height: 1;
  letter-spacing: -0.045em;
  margin: 20px 0 22px;
  font-weight: 500;
}
.footer-pitch h2 em {
  display: block;
  font:
    italic 1.08em/1 "Instrument Serif",
    Georgia,
    serif;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.footer-pitch p:last-child {
  color: var(--muted);
  font-size: 14px;
}
.footer-actions {
  display: grid;
  gap: 22px;
}
.footer-mail {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 0;
  border-block: 1px solid var(--line);
  font-size: clamp(17px, 1.7vw, 24px);
  text-decoration: none;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.footer-mail span {
  flex: 1;
}
.footer-mail .icon:last-child {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.footer-mail:hover .icon:last-child {
  transform: translate(4px, -4px);
}
.footer-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--control-line);
  border-radius: 2px;
  text-decoration: none;
  font-size: 14px;
}
.footer-chip:hover {
  border-color: var(--cyan);
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-block: 50px;
}
.footer-identity {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.footer-identity img {
  border-radius: 50%;
}
.footer-identity strong {
  font-size: 19px;
  font-weight: 600;
}
.footer-identity p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}
.footer-grid h3 {
  font:
    600 11px/1.5 Consolas,
    monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.footer-grid nav a {
  display: flex;
  min-height: 34px;
  align-items: center;
  font-size: 14px;
  text-decoration: none;
  width: fit-content;
}
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.footer-bottom a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.footer-bottom .icon {
  width: 15px;
  height: 15px;
}
.footer-toggle {
  min-height: 36px;
  font-size: 12px;
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}
.live-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
}
.live-dot:after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: live-pulse 2.4s ease-out infinite;
}
@keyframes live-pulse {
  from {
    transform: scale(0.4);
    opacity: 0.9;
  }
  to {
    transform: scale(1.6);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot:after {
    animation: none;
  }
}
:root[data-motion="off"] .live-dot:after {
  animation: none;
}
@media (max-width: 950px) {
  .footer-cta {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-identity {
    grid-column: 1/-1;
  }
}
@media (max-width: 600px) {
  .site-footer {
    margin-top: 96px;
    padding-inline: 16px;
  }
  .footer-grid {
    gap: 30px 20px;
    padding-block: 36px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Transmission line along the top edge of the footer. */
.footer-horizon {
  position: absolute;
  left: 0;
  bottom: 100%;
  width: 100%;
  height: clamp(64px, 8vw, 110px);
  pointer-events: none;
}
.fh-pylons path,
.fh-wires,
.fh-ground {
  fill: none;
  stroke: var(--control-line);
  stroke-width: 1;
}
.fh-flow {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 2 46;
  opacity: 0.9;
  filter: drop-shadow(0 0 3px var(--accent));
  animation: fh-flow 2.4s linear infinite;
}
@keyframes fh-flow {
  to {
    stroke-dashoffset: -48;
  }
}
:root[data-motion="off"] .fh-flow {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .fh-flow {
    animation: none;
  }
}

/* Reading gauge: a live wire along the top of the viewport. */
.wire-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: 2px;
  pointer-events: none;
}
.wire-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--accent));
  width: calc(var(--read, 0) * 100%);
  position: relative;
}
.wire-progress i:after {
  content: "";
  position: absolute;
  right: -3px;
  top: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 2px var(--accent);
  opacity: min(1, calc(var(--read, 0) * 40));
}

/* Bench instruments: seven-segment readouts in a rack. In the dark theme the
   display glows like a vacuum fluorescent tube; in the light theme it is a
   reflective LCD with dark segments. */
.bench-band {
  padding-block: clamp(48px, 6vw, 84px);
  border-bottom: 1px solid var(--line);
}
.bench-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px 60px;
  align-items: end;
  margin-bottom: 30px;
}
.bench-head h2 {
  font-size: clamp(30px, 3.4vw, 50px);
  letter-spacing: -0.045em;
}
.bench-head p {
  color: var(--muted);
  max-width: 46ch;
}
.rack {
  position: relative;
  padding: clamp(14px, 2vw, 24px) clamp(14px, 3.4vw, 52px);
  border: 1px solid var(--line);
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--text) 4%, transparent),
      transparent 40%
    ),
    var(--surface);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text) 7%, transparent);
}
.rack-screw {
  position: absolute;
  width: 14px;
  height: 14px;
  color: var(--control-line);
}
.rack-screw svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: color-mix(in srgb, var(--bg) 60%, transparent);
  stroke: currentColor;
  stroke-width: 1.4;
}
.rack-screw:nth-child(1) {
  top: 12px;
  left: 14px;
}
.rack-screw:nth-child(2) {
  bottom: 12px;
  left: 14px;
}
.rack-screw:nth-last-child(2) {
  top: 12px;
  right: 14px;
}
.rack-screw:nth-last-child(1) {
  bottom: 12px;
  right: 14px;
}
.rack-screw:nth-child(2) svg,
.rack-screw:nth-last-child(1) svg {
  transform: rotate(31deg);
}
.bench {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.bench li {
  margin: 0;
  display: flex;
}
.readout {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  padding: 14px 16px 12px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 55%, var(--surface));
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.3s;
}
a.readout:hover,
a.readout:focus-visible {
  border-color: var(--accent);
  color: var(--text);
}
.ro-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ro-mode {
  font:
    600 10px/1.4 Consolas,
    monospace;
  letter-spacing: 0.12em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ro-led {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--seg-glow);
}
.ro-screen {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 14px;
  margin: 12px 0 10px;
  padding: 12px 14px 10px;
  background: var(--screen);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.35);
  border-radius: 2px;
}
:root[data-theme="light"] .ro-screen {
  box-shadow: inset 0 2px 6px rgba(30, 40, 30, 0.18);
}
.seg {
  display: block;
  height: clamp(38px, 3.9vw, 58px);
  width: auto;
  max-width: 80%;
  overflow: visible;
  filter: drop-shadow(0 0 6px var(--seg-glow));
}
.sg {
  fill: var(--seg-off);
  transition: fill 0.06s;
}
.sg.on {
  fill: var(--seg-on);
}
.ro-unit {
  font:
    italic 26px/1 "Instrument Serif",
    Georgia,
    serif;
  color: var(--accent);
  white-space: nowrap;
  min-width: 1.4em;
}
.ro-unit.is-symbol {
  font: 300 28px/0.9 Manrope, sans-serif;
}
.ro-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
}
.ro-foot .icon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
a.readout:hover .ro-foot .icon {
  transform: translate(3px, -3px);
  color: var(--accent);
}
.readout.is-idle .ro-led {
  background: var(--line);
  box-shadow: none;
}
.readout.is-booting .ro-led {
  background: var(--fault);
  box-shadow: 0 0 8px var(--fault);
}
.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin: 18px 0 30px;
}
.figures .seg {
  height: clamp(32px, 3vw, 42px);
}
@media (max-width: 1100px) {
  .bench {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .bench-head {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .bench {
    grid-template-columns: 1fr;
  }
  .rack {
    padding: 30px 12px;
  }
  .rack-screw:nth-child(1),
  .rack-screw:nth-last-child(2) {
    top: 8px;
  }
  .rack-screw:nth-child(2),
  .rack-screw:nth-last-child(1) {
    bottom: 8px;
  }
}
@media print {
  .seg {
    filter: none;
  }
}

/* Window dots on instrument panels, shared by the hero, plates and captures. */
.panel-dots {
  display: flex;
  gap: 5px;
}
.panel-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--control-line);
}
.panel-dots i:first-child {
  background: var(--accent);
  border-color: var(--accent);
}

@view-transition {
  navigation: auto;
}
@keyframes route-out {
  to {
    opacity: 0;
    transform: translateY(-12px);
  }
}
@keyframes route-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}
::view-transition-old(root) {
  animation: route-out 0.25s ease both;
}
::view-transition-new(root) {
  animation: route-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.theme-transition::view-transition-old(root),
.theme-transition::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
.theme-transition::view-transition-new(root) {
  z-index: 2;
}
.desktop-nav a {
  position: relative;
}
.desktop-nav a:after {
  content: "";
  height: 1px;
  position: absolute;
  bottom: -9px;
  left: 0;
  right: 0;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.desktop-nav a:hover:after,
.desktop-nav a:focus-visible:after,
.desktop-nav a.active:after {
  transform: scaleX(1);
  transform-origin: left;
}
.button,
.icon-button,
.footer-arrow {
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
}
.text-link .icon,
.button .icon,
.footer-arrow .icon {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.text-link:hover .icon,
.button:hover .icon {
  transform: translateX(4px);
}
.footer-arrow:hover .icon {
  transform: translate(5px, -5px);
}
@keyframes dialog-enter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
}
dialog:not(.intro)[open] {
  animation: dialog-enter 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}
[data-motion="off"]::view-transition-group(*),
[data-motion="off"]::view-transition-old(*),
[data-motion="off"]::view-transition-new(*) {
  animation: none !important;
}
@media print {
  [data-depth] {
    transform: none !important;
  }
}

/* The header and footer keep their identity across a cross-document navigation
   instead of cross-fading with the rest of the page. */
.site-header {
  view-transition-name: site-header;
}
.site-footer {
  view-transition-name: site-footer;
}
/* Inline links gain a wipe that runs from the cursor side. */
.text-link {
  position: relative;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.text-link:hover,
.text-link:focus-visible {
  background-size: 100% 1px;
}
.button,
.header-cta,
.footer-arrow,
.hero-scroll {
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
}
.button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.button:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--text);
  transform: translateY(101%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.button:hover:before,
.button:focus-visible:before {
  transform: translateY(0);
}
/* Scroll-driven section rules. Progressive enhancement only. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section-heading .eyebrow:after,
    .home-index article .eyebrow:after {
      content: "";
      display: block;
      height: 1px;
      margin-top: 14px;
      background: var(--accent);
      transform-origin: left;
      animation: rule-grow linear both;
      animation-timeline: view();
      animation-range: entry 8% cover 42%;
    }
    @keyframes rule-grow {
      from {
        transform: scaleX(0);
      }
      to {
        transform: scaleX(1);
      }
    }
    .hero-portrait img {
      animation: hero-drift linear both;
      animation-timeline: scroll();
      animation-range: 0 78vh;
    }
    @keyframes hero-drift {
      to {
        transform: translateY(-5%) scale(1.06);
      }
    }
  }
}
[data-motion="off"] .section-heading .eyebrow:after,
[data-motion="off"] .home-index article .eyebrow:after,
[data-motion="off"] .hero-portrait img,
[data-motion="off"] .button:before {
  animation: none !important;
  transform: none !important;
}
[data-motion="off"] .text-link {
  transition: none;
}
@media print {
  [data-depth],
  .button,
  .header-cta,
  .footer-arrow,
  .hero-scroll,
  .hero-portrait img {
    transform: none !important;
    animation: none !important;
  }
}

/* V6: the personal mark carried through the site. Hero in the banner's
   colours, the Zouzou spotlight, photo slots, the simulator panel and the
   documentation library. Loaded last in core.css. */
::selection {
  background: color-mix(in srgb, var(--cyan) 45%, transparent);
  color: var(--text);
}
html {
  scrollbar-color: var(--control-line) var(--bg);
}
.site-header {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
}

/* Hero: name as on the banner, the three arcs of the mark behind the panel. */
.hero {
  isolation: isolate;
}
.hero-arcs {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: max(-140px, -9vw);
  width: min(62vw, 900px);
  translate: 0 -50%;
  fill: none;
  stroke-width: 9;
  stroke-linecap: round;
  opacity: 0.28;
  pointer-events: none;
  animation: arcs-drift 40s ease-in-out infinite alternate;
}
.ha-white {
  stroke: var(--text);
}
.ha-cyan {
  stroke: var(--cyan);
}
.ha-green {
  stroke: var(--accent);
}
@keyframes arcs-drift {
  from {
    rotate: -8deg;
  }
  to {
    rotate: 10deg;
  }
}
.hero h1 {
  letter-spacing: -0.065em;
  line-height: 0.92;
}
.hero .name-line em {
  font-family: inherit;
  font-style: normal;
  font-weight: 500;
  font-size: 1em;
  line-height: inherit;
  letter-spacing: inherit;
  color: var(--cyan);
}
.hero-overline .eyebrow,
.hero .for-company {
  color: var(--accent);
}
.grid-panel {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}
@media (max-width: 900px) {
  .hero-arcs {
    top: 12%;
    right: -30vw;
    width: 110vw;
    translate: none;
    opacity: 0.1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-arcs {
    animation: none;
  }
}
:root[data-motion="off"] .hero-arcs {
  animation: none;
}

/* Bench: eight readings, four across. */
@media (min-width: 1180px) {
  .bench {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Project art for Zouzou: tape instead of walls. */
.project-art .tape {
  stroke: color-mix(in srgb, var(--text) 26%, transparent);
  stroke-width: 9;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
.project-art .goal {
  fill: color-mix(in srgb, var(--accent) 25%, transparent);
  stroke: var(--accent);
}

/* Spotlight: the featured project, across the full width. */
.spotlight {
  position: relative;
  margin-bottom: clamp(24px, 3vw, 44px);
  border: 1px solid var(--line);
  background: var(--surface);
  scroll-margin-top: 100px;
}
.spotlight::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--accent) 60%, transparent);
}
.spot-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 20px clamp(24px, 4vw, 70px);
  align-items: end;
  padding: clamp(24px, 3.2vw, 46px);
  border-bottom: 1px solid var(--line);
}
.spot-head .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan);
}
.spot-head :is(h2, h3) {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 22px;
  margin-top: 14px;
  font-size: clamp(54px, 7vw, 112px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.06em;
}
.spot-head :is(h2, h3) a {
  text-decoration: none;
}
.spot-head :is(h2, h3) a:hover {
  color: var(--cyan);
}
.spot-head :is(h2, h3) > span {
  font:
    italic clamp(22px, 2.3vw, 34px) / 1.1 "Instrument Serif",
    Georgia,
    serif;
  letter-spacing: 0;
  color: var(--accent);
}
.spot-lead {
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 52ch;
}
.spot-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
}
.spot-copy {
  padding: clamp(24px, 3.2vw, 46px);
  border-right: 1px solid var(--line);
  min-width: 0;
}
.spot-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.spot-points li {
  display: flex;
  gap: 14px;
}
.spot-points .icon {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--cyan);
}
.spot-points strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.spot-points p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.spot-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 34px 0 0;
  border-block: 1px solid var(--line);
}
.spot-stats div {
  padding: 18px 16px 18px 0;
}
.spot-stats div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
.spot-stats dt {
  font:
    italic clamp(34px, 3.4vw, 50px) / 1 "Instrument Serif",
    Georgia,
    serif;
  color: var(--text);
}
.spot-stats dd {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
}
.spot-copy .actions {
  margin-top: 30px;
  gap: 10px 22px;
}
.spot-visual {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(18px, 2.2vw, 30px);
  min-width: 0;
}
.spot-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font:
    11px/1.5 Consolas,
    monospace;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.spot-note .icon {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--cyan);
}

/* The drawable face. */
.face-widget {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.face-matrix {
  flex: none;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  width: clamp(150px, 15vw, 196px);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--screen);
  touch-action: none;
}
.led {
  aspect-ratio: 1;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--text) 10%, transparent);
  cursor: pointer;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.led[aria-pressed="true"] {
  background: var(--cyan);
}
.led:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 1px;
}
.face-side .small {
  margin-top: 8px;
  max-width: 34ch;
  color: var(--muted);
}
.face-stamps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.face-stamps button {
  min-height: 34px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: none;
  color: var(--text);
  font-size: 12.5px;
  cursor: pointer;
}
.face-stamps button:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* Photo slots: the real picture when it exists, a reserved frame until then. */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.photo-slot {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  min-width: 0;
  overflow: hidden;
  border-radius: 4px;
}
.photo-slot.is-wide {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}
.photo-slot.is-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px;
  text-align: center;
  border: 1px dashed var(--control-line);
  background:
    repeating-linear-gradient(
      -45deg,
      transparent 0 14px,
      color-mix(in srgb, var(--text) 2.5%, transparent) 14px 15px
    ),
    color-mix(in srgb, var(--bg) 70%, var(--surface));
  transition: border-color 0.3s;
}
.photo-slot.is-empty:hover {
  border-color: var(--cyan);
}
.slot-sketch {
  width: clamp(58px, 22%, 96px);
  margin-bottom: 6px;
  fill: none;
  stroke: var(--control-line);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.slot-sketch .sk-tape {
  stroke: color-mix(in srgb, var(--text) 14%, transparent);
  stroke-width: 7;
}
.slot-sketch .sk-eye,
.slot-sketch .sk-bar {
  stroke: var(--cyan);
}
.slot-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font:
    600 10px/1.5 Consolas,
    monospace;
  letter-spacing: 0.14em;
  color: var(--cyan);
}
.slot-tag .icon {
  width: 14px;
  height: 14px;
}
.photo-slot strong {
  font-size: clamp(15px, 1.3vw, 19px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.slot-hint {
  font-size: 12.5px;
  color: var(--muted);
  max-width: 30ch;
}
.slot-n {
  position: absolute;
  top: 12px;
  left: 14px;
  font:
    600 10px/1 Consolas,
    monospace;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.slot-corners i {
  position: absolute;
  width: 14px;
  height: 14px;
  border: solid var(--text);
  border-width: 2px 0 0 2px;
  opacity: 0.55;
}
.slot-corners i:nth-child(1) {
  top: 8px;
  right: 8px;
  rotate: 90deg;
}
.slot-corners i:nth-child(2) {
  bottom: 8px;
  right: 8px;
  rotate: 180deg;
}
.slot-corners i:nth-child(3) {
  bottom: 8px;
  left: 8px;
  rotate: 270deg;
}
.slot-corners i:nth-child(4) {
  display: none;
}
.photo-slot.is-filled {
  border: 1px solid var(--line);
}
.photo-slot.is-filled :is(img, .gallery-trigger) {
  display: block;
  width: 100%;
  height: 100%;
}
.photo-slot.is-filled img {
  object-fit: cover;
  transition: scale 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.photo-slot.is-filled:hover img {
  scale: 1.04;
}
.photo-slot figcaption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin: 0;
  padding: 30px 14px 12px;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(transparent, #000c);
  pointer-events: none;
}
.photo-slot figcaption span {
  font:
    600 10px/1 Consolas,
    monospace;
  letter-spacing: 0.12em;
  opacity: 0.7;
}
.photo-section {
  margin: 34px 0 10px;
}
.photo-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 16px;
}
.photo-head h2 {
  font-size: clamp(25px, 2.6vw, 35px);
  letter-spacing: -0.03em;
}
.photo-head p {
  font-size: 13px;
  color: var(--muted);
}

/* Simulator panel on the project page. */
.sim-panel {
  margin: 34px 0 6px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 70%, var(--bg));
}
.sim-stage {
  position: relative;
  display: grid;
  min-height: 300px;
  background:
    linear-gradient(var(--line) 0.5px, transparent 0.5px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--line) 0.5px, transparent 0.5px) 0 0 / 28px 28px;
}
.sim-poster {
  align-self: center;
  max-width: 620px;
  padding: clamp(24px, 4vw, 54px);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--surface) 96%, transparent) 70%,
    transparent
  );
}
.sim-poster h2 {
  margin: 12px 0 14px;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.sim-poster > p:not(.eyebrow) {
  color: var(--muted);
}
.sim-poster .actions {
  margin-top: 24px;
  gap: 10px 22px;
}
.sim-poster .small {
  margin-top: 14px;
}
.sim-stage.is-live {
  background: #f8f8f5;
}
.sim-stage iframe {
  display: block;
  width: 100%;
  height: min(86vh, 820px);
  border: 0;
}

/* Dossier figures that are drawn on a light ground. */
.photo-section .photo-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.photo-section .photo-slot.is-wide {
  grid-column: auto;
  aspect-ratio: 4 / 3;
}
.document-section .light-figure img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 560px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8f8f5;
}
.figure-pair {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: 10px 28px;
  align-items: start;
}
.figure-pair figure {
  margin-top: 20px;
}
.source-list {
  list-style: none;
  padding: 0;
}
.source-list li {
  border-top: 1px solid var(--line);
}
.source-list li:last-child {
  border-bottom: 1px solid var(--line);
}
.source-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 10px 2px;
  text-decoration: none;
  color: var(--text);
}
.source-list a::after {
  content: "↗";
  color: var(--cyan);
}
.source-list a:hover {
  color: var(--cyan);
}
.document-section p.callout {
  color: var(--text);
}
.contents a.is-current {
  color: var(--cyan);
}
@media (max-width: 760px) {
  .figure-pair {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Documentation library. */
.lib-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 0 clamp(36px, 5vw, 64px);
  border: 1px solid var(--line);
  background: var(--surface);
}
.lib-stats div {
  position: relative;
  padding: 20px 22px;
}
.lib-stats div + div {
  border-left: 1px solid var(--line);
}
.lib-stats .icon {
  position: absolute;
  top: 20px;
  right: 18px;
  width: 18px;
  height: 18px;
  color: var(--cyan);
}
.lib-stats dt {
  font:
    italic clamp(38px, 4vw, 58px) / 1 "Instrument Serif",
    Georgia,
    serif;
}
.lib-stats dd {
  margin: 8px 0 0;
  font:
    600 10.5px/1.5 Consolas,
    monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.lib-shelf {
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr);
  gap: 30px clamp(30px, 5vw, 80px);
  align-items: center;
  padding: clamp(26px, 3.6vw, 54px);
  border: 1px solid var(--line);
  background: var(--surface);
}
.lib-shelf-head h2 {
  margin: 12px 0 14px;
  font-size: clamp(32px, 3.6vw, 54px);
  letter-spacing: -0.045em;
  line-height: 1;
}
.lib-shelf-head p:last-child {
  color: var(--muted);
  max-width: 30ch;
}
.lib-covers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 30px);
  padding-bottom: 14px;
  border-bottom: 6px solid var(--line);
}
.cover {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  transform-origin: 50% 100%;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cover:hover,
.cover:focus-visible {
  transform: translateY(-10px) rotate(-1.2deg);
}
.cover-book {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 0.72;
  padding: 16px 16px 14px 24px;
  border-radius: 3px 8px 8px 3px;
  color: #101312;
  background: var(--tone);
  box-shadow:
    inset 9px 0 0 #0000001f,
    inset 10px 0 0 #ffffff2e,
    0 22px 40px -18px #000c;
  overflow: hidden;
}
.c-cyan {
  --tone: #4cc2cf;
}
.c-green {
  --tone: #a3c992;
}
.c-paper {
  --tone: #ecebe2;
}
.cover-kicker {
  font:
    700 9.5px/1.4 Consolas,
    monospace;
  letter-spacing: 0.14em;
}
.cover-book strong {
  margin-top: auto;
  font-size: clamp(24px, 2.7vw, 42px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.cover-sub {
  margin-top: 8px;
  font-size: clamp(11px, 0.95vw, 13.5px);
  line-height: 1.3;
}
.cover-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  padding-top: 8px;
  border-top: 1px solid #10131255;
  font:
    600 8.5px/1.4 Consolas,
    monospace;
  letter-spacing: 0.08em;
}
.cover-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}
.cover-meta .icon {
  width: 15px;
  height: 15px;
  color: var(--cyan);
}
.lib-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  gap: 18px 30px;
  align-items: center;
  margin: clamp(44px, 6vw, 80px) 0 22px;
}
.lib-bar h2 {
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -0.04em;
}
.lib-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--control-line);
  background: var(--surface);
}
.lib-search:focus-within {
  border-color: var(--cyan);
}
.lib-search .icon {
  flex: none;
  width: 17px;
  height: 17px;
  color: var(--muted);
}
.lib-search input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  border: 0;
  outline: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.lib-filters {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lib-filters button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: none;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}
.lib-filters .icon {
  width: 15px;
  height: 15px;
}
.lib-filters b {
  font:
    600 10.5px/1 Consolas,
    monospace;
  opacity: 0.7;
}
.lib-filters button:hover {
  color: var(--text);
  border-color: var(--control-line);
}
.lib-filters button[aria-pressed="true"] {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}
.lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.lib-card[hidden] {
  display: none;
}
.lib-card {
  display: flex;
  margin: 0;
}
.lib-card a {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 20px 22px 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  transition:
    border-color 0.3s,
    translate 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.lib-card a::before {
  content: "";
  position: absolute;
  inset: -1px auto -1px -1px;
  width: 3px;
  background: var(--kind, var(--cyan));
  scale: 1 0;
  transform-origin: 50% 0;
  transition: scale 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.lib-card a:hover,
.lib-card a:focus-visible {
  border-color: var(--control-line);
  translate: 0 -3px;
}
.lib-card a:hover::before,
.lib-card a:focus-visible::before {
  scale: 1;
}
.lib-card[data-kind="note"],
.lib-card[data-kind="experiment"] {
  --kind: var(--accent);
}
.lib-card[data-kind="file"] {
  --kind: var(--text);
}
.lib-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font:
    600 10.5px/1.5 Consolas,
    monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.lib-kind {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--kind, var(--cyan));
}
.lib-kind .icon {
  width: 15px;
  height: 15px;
}
.lib-meta {
  color: var(--muted);
  text-align: right;
}
.lib-card h3 {
  margin: 18px 0 10px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.lib-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.lib-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
}
.lib-tag {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 11.5px;
  color: var(--muted);
}
.lib-foot .icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition:
    color 0.2s,
    translate 0.3s;
}
.lib-card a:hover .lib-foot .icon {
  color: var(--cyan);
  translate: 2px -2px;
}
.lib-empty {
  padding: 40px 0;
  color: var(--muted);
}
.library .saved-pages {
  margin-top: 60px;
}

@media (max-width: 1050px) {
  .spot-head,
  .spot-body,
  .lib-shelf {
    grid-template-columns: minmax(0, 1fr);
  }
  .spot-copy {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 700px) {
  .spot-points {
    grid-template-columns: minmax(0, 1fr);
  }
  .spot-stats div {
    padding: 14px 10px 14px 0;
  }
  .spot-stats div + div {
    padding-left: 12px;
  }
  .face-widget {
    flex-direction: column;
    align-items: flex-start;
  }
  .lib-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lib-stats div {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 14px 16px;
  }
  .lib-stats div:nth-child(even) {
    border-left: 1px solid var(--line);
  }
  .lib-stats div:nth-child(-n + 2) {
    border-top: 0;
  }
  .lib-stats div:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .lib-stats .icon {
    top: 14px;
    right: 12px;
  }
  .lib-bar {
    grid-template-columns: minmax(0, 1fr);
  }
  .lib-covers {
    gap: 10px;
  }
  .cover-book {
    padding: 10px 8px 8px 15px;
  }
  .cover-foot span:first-child {
    display: none;
  }
  .cover-sub {
    display: none;
  }
  .photo-slot.is-empty {
    padding: 10px;
  }
  .photo-section .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .slot-hint {
    display: none;
  }
}
@media print {
  .sim-panel,
  .photo-slot.is-empty,
  .face-widget {
    display: none;
  }
}
