@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --paper: #f4f4f2;
  --ink: #202327;
  --graphite: #5b6067;
  --rule: #d6d8d3;
  --tint: #e9e9e5;
  --pencil: #4a36b0;
  --wide: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html {
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 18px; line-height: 1.55;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
body { margin: 0; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { color: var(--pencil); }
:focus-visible { outline: 2px solid var(--pencil); outline-offset: 3px; }
p { margin: 0 0 1em; max-width: 62ch; }
figure { margin: 0; }
figcaption { font-size: 0.8rem; color: var(--graphite); margin-top: 10px; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--gutter); top: 10px; background: var(--paper); padding: 6px 10px; z-index: 9; }

h1, h2, h3 { margin: 0; font-weight: 640; letter-spacing: -0.025em; overflow-wrap: break-word; }
h1 { font-size: clamp(2.1rem, 6.2vw, 5.6rem); line-height: 0.98; font-stretch: 118%; font-weight: 680; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1.04; font-stretch: 116%; }
h3 { font-size: 1.1rem; line-height: 1.3; letter-spacing: -0.01em; font-stretch: 108%; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.45; max-width: 44ch; }
.quiet { color: var(--graphite); }

/* Header */
.top { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-top: 26px; padding-bottom: 26px; }
.name { font-weight: 680; font-stretch: 118%; text-decoration: none; letter-spacing: -0.01em; }
.nav { display: flex; gap: clamp(16px, 2.8vw, 34px); }
.nav a { text-decoration: none; color: var(--graphite); }
.nav a:hover { color: var(--ink); }

/* Section frame */
.block { padding-top: clamp(80px, 11vw, 160px); }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: clamp(28px, 4vw, 56px); }

/* Intro */
.intro { padding-top: clamp(48px, 9vw, 130px); }
.intro h1 { max-width: 14ch; }
.intro .lede { margin-top: clamp(20px, 3vw, 34px); }
.contact-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin-top: 30px; }
.button { display: inline-block; background: var(--ink); color: var(--paper); text-decoration: none; padding: 12px 20px; border-radius: 999px; font-weight: 560; }
.button:hover { background: var(--pencil); color: var(--paper); }
.ghost { display: inline-block; padding: 11px 19px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--ink); text-decoration: none; font-weight: 560; }
.ghost:hover { box-shadow: inset 0 0 0 1px var(--pencil); }

/* Live signal under the intro */
.signal { margin-top: clamp(40px, 6vw, 80px); }
.signal canvas { display: block; width: 100%; height: clamp(110px, 14vw, 180px); cursor: crosshair; }
.signal p { font-size: 0.8rem; color: var(--graphite); margin-top: 8px; max-width: none; }


/* Work: large alternating features */
.features { display: grid; gap: clamp(72px, 10vw, 140px); }
.feature { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(20px, 4vw, 56px); align-items: end; text-decoration: none; }
.feature:nth-child(even) { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.feature:nth-child(even) .feature-img { order: 2; }
.feature-img { overflow: hidden; background: var(--tint); }
.feature-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.feature:hover .feature-img img { transform: scale(1.025); }
.feature h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.05; font-stretch: 116%; letter-spacing: -0.025em; }
.feature:hover h3 { color: var(--pencil); }
.feature p { margin: 14px 0 0; color: var(--graphite); }
.feature .meta { margin-top: 14px; font-size: 0.85rem; color: var(--graphite); }
.feature .more { display: inline-block; margin-top: 18px; font-weight: 560; text-decoration: underline; text-underline-offset: .25em; }

/* Small image cards (other work) */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.card { display: block; text-decoration: none; }
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--tint); }
.card h3 { margin-top: 14px; }
.card:hover h3 { color: var(--pencil); }
.card p { margin: 6px 0 0; color: var(--graphite); font-size: 0.92rem; }

/* Plain lists (timeline) */


/* Footer */
.foot { margin-top: clamp(96px, 12vw, 180px); background: var(--ink); color: var(--paper); }
.foot .wrap { padding-top: clamp(56px, 8vw, 110px); padding-bottom: 48px; }
.foot .say { font-size: clamp(1.8rem, 4.4vw, 3.6rem); line-height: 1.02; font-stretch: 118%; font-weight: 660; letter-spacing: -0.025em; margin: 0 0 clamp(32px, 5vw, 64px); max-width: 16ch; }
.foot .say a { text-decoration: none; color: #b9adff; }
.foot .say a:hover { color: var(--paper); }
.foot .line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; color: #a7abb1; font-size: 0.9rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot a:hover { color: #b9adff; }

/* Case study */
.case-head { padding-top: clamp(40px, 7vw, 100px); }
.crumb { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; color: var(--graphite); text-decoration: none; }
.crumb::before { content: ""; width: 7px; height: 7px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-top: 1px; }
.crumb:hover { color: var(--pencil); }
.case-head h1 { max-width: 18ch; }
.case-head .lede { margin-top: 24px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 24px; margin: 40px 0 0; }
.facts div { padding: 0; }
.facts dt { font-size: 0.8rem; color: var(--graphite); }
.facts dd { margin: 4px 0 0; font-weight: 560; }
.lead-img { margin-top: clamp(40px, 6vw, 72px); background: var(--tint); }
.lead-img img { width: 100%; max-height: 86vh; object-fit: cover; margin: 0 auto; }
.lead-img.contain { background: transparent; max-width: var(--wide); margin-left: auto; margin-right: auto; padding: 0 var(--gutter); }
.lead-img.contain img { width: auto; max-width: 100%; max-height: 82vh; object-fit: contain; background: var(--tint); }
.chapter { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(16px, 4vw, 64px); padding-top: clamp(64px, 9vw, 128px); }
.chapter > h2 { position: sticky; top: 28px; align-self: start; }
.chapter ul { margin: 0 0 1em; padding-left: 1.1em; max-width: 62ch; }
.chapter li { margin-bottom: 8px; }
.points { list-style: none; padding: 0 !important; }
.points li { padding: 0 0 18px; margin: 0; }
.points b { display: block; font-weight: 640; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.grid2 img, .grid2 video, .grid3 img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--tint); }
.grid3 img { aspect-ratio: 3 / 4; }
.tall img, .tall video { aspect-ratio: 3 / 4 !important; }
.white img { object-fit: contain; background: #fff; padding: 10px; }
.bleed { margin-top: 32px; }
blockquote { margin: 0 0 16px; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.3; letter-spacing: -0.01em; max-width: 32ch; }
.cite { font-size: 0.9rem; color: var(--graphite); overflow-wrap: anywhere; }
.next { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(96px, 12vw, 160px); }
.next a { text-decoration: none; font-size: clamp(1.2rem, 2.2vw, 1.8rem); font-stretch: 114%; font-weight: 640; letter-spacing: -0.02em; line-height: 1.1; }
.next span { display: block; font-weight: 400; color: var(--graphite); font-size: 0.85rem; letter-spacing: 0; margin-bottom: 8px; font-stretch: 100%; }

/* Figures that span the full content width */
.figure-wide { margin-top: clamp(40px, 6vw, 72px); background: #fff; padding: clamp(10px, 1.8vw, 24px); }
.figure-wide img { width: 100%; height: auto; }

/* Press */
.press { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.press img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; background: #fff; }

/* MEP demo */
.mep-demo { margin-top: 32px; background: #fff; padding: clamp(16px, 2.5vw, 32px); max-width: 100%; overflow: hidden; }
.mep-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 18px; }
.mep-controls button { font: inherit; font-weight: 560; padding: 9px 16px; border-radius: 999px; border: 0; background: var(--ink); color: var(--paper); cursor: pointer; }
.mep-controls button.alt { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.mep-controls button:hover { background: var(--pencil); color: var(--paper); box-shadow: none; }
.mep-controls label { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--graphite); max-width: 100%; }
.mep-controls input[type=range] { width: min(220px, 55vw); max-width: 100%; accent-color: var(--pencil); }
.mep-body { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 14px; }
.mep-labels { display: grid; grid-template-rows: repeat(4, 1fr); }
.mep-labels button { all: unset; cursor: pointer; display: flex; flex-direction: column; justify-content: center; font-size: 0.82rem; line-height: 1.25; }
.mep-labels button b { font-weight: 620; font-size: 0.9rem; }
.mep-labels button:hover b, .mep-labels button:focus-visible b { color: var(--pencil); }
.mep-labels span.warn, .mep-labels span .warn { color: #b4412f; }
.mep-labels [data-pct] { color: var(--graphite); font-variant-numeric: tabular-nums; }
.mep-labels [data-pct].warn { color: #b4412f; font-weight: 620; }
.mep-traces { width: 100%; height: 300px; display: block; cursor: pointer; }
.mep-scalogram { width: 100%; height: 150px; display: block; }
.mep-sub { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 14px; margin-top: 18px; }
.mep-sub p { font-size: 0.82rem; color: var(--graphite); margin: 0; }
.mep-status { margin: 16px 0 0; font-weight: 560; }
.mep-status.warn { color: #b4412f; }
.mep-note { font-size: 0.8rem; color: var(--graphite); margin-top: 12px; }

@media (max-width: 900px) {
  .feature, .feature:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .feature:nth-child(even) .feature-img { order: 0; }
  .chapter { grid-template-columns: minmax(0, 1fr); }
  .chapter > h2 { position: static; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  html { font-size: 16px; }
  .cards, .press { grid-template-columns: minmax(0, 1fr); }
  .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .block-head { flex-direction: column; gap: 4px; }
  .mep-controls label { flex-wrap: wrap; gap: 6px 10px; width: 100%; }
  .mep-controls input[type=range] { width: 100%; }
  .mep-body, .mep-sub { grid-template-columns: minmax(0, 1fr); }
  .mep-labels { grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .next { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Selected pieces: studio cutouts in a staggered grid (wide and tall tiles) */
.pieces { --cap: 40px; --cell: calc((100cqw - 24px) / 3 * 4 / 3); container-type: inline-size; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.pieces img { display: block; width: 100%; height: var(--cell); object-fit: contain; background: #eeeeeb; }
.pieces figcaption { height: var(--cap); margin: 0; padding-top: 8px; box-sizing: border-box; overflow: hidden; }
.pieces .w { grid-column: span 2; }
.pieces .t { grid-row: span 2; }
.pieces .t img { height: calc(var(--cell) * 2 + var(--cap) + 12px); }
@media (max-width: 600px) {
  .pieces { grid-template-columns: 1fr; }
  .pieces .w, .pieces .t { grid-column: auto; grid-row: auto; }
  .pieces img, .pieces .t img { height: auto; aspect-ratio: 3 / 4; }
  .pieces .w img { aspect-ratio: 3 / 2; }
  .pieces figcaption { height: auto; }
}

/* Language switch */
.nav .lang { color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); border-radius: 999px; padding: 0 10px; }
.nav .lang:hover { box-shadow: inset 0 0 0 1px var(--ink); }

.card-dark { aspect-ratio: 4 / 5; background: var(--ink); color: var(--paper); display: flex; align-items: flex-end; padding: clamp(18px, 2.4vw, 30px); }
.card-dark p { color: var(--paper) !important; font-size: clamp(1.05rem, 1.5vw, 1.3rem) !important; line-height: 1.3; margin: 0 !important; }

/* Videos that play while on screen */
.vid { position: relative; }
.vid video { display: block; width: 100%; background: var(--tint); }
.vid-btn { position: absolute; right: 14px; top: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: conic-gradient(var(--paper) calc(var(--p, 0) * 1turn), rgba(244,244,242,.35) 0) ; }
.vid-btn::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: rgba(32,35,39,.82); }
.vid-btn::after { content: ""; position: absolute; left: 17px; top: 14px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent var(--paper); }
.vid.playing .vid-btn::after { left: 15px; top: 14px; width: 4px; height: 16px; border: 0; border-left: 4px solid var(--paper); border-right: 4px solid var(--paper); box-sizing: content-box; padding: 0 3px 0 0; }
.vid-btn:focus-visible { outline: 2px solid var(--pencil); outline-offset: 3px; }
.vid figcaption { margin-top: 10px; }

/* Press */
.press { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); align-items: start; }
.press-item h3 { margin-top: 14px; }
.press-item p { margin: 6px 0 0; font-size: 0.92rem; }
.press-meta { color: var(--graphite); font-size: 0.82rem !important; }
.press-open { all: unset; display: block; cursor: zoom-in; }
.press-open img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; background: #fff; box-shadow: 0 0 0 1px var(--rule); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.press-open:hover img { transform: translateY(-4px); }
.press-open:focus-visible img { outline: 2px solid var(--pencil); outline-offset: 3px; }
.press-read { display: inline-block; margin-top: 12px; font: inherit; font-weight: 560; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .25em; color: var(--ink); }
.press-read:hover { color: var(--pencil); }
dialog.reader { width: min(1100px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0 auto; padding: 0; border: 0; background: #2a2d31; color: var(--paper); }
dialog.reader::backdrop { background: rgba(20,22,25,.82); }
.reader-bar { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 16px; background: #202327; z-index: 1; }
.reader-title { font-weight: 600; }
.reader-close { font: inherit; font-size: 1.2rem; background: none; border: 0; color: var(--paper); cursor: pointer; width: 40px; height: 40px; }
.reader-pages { height: calc(100dvh - 64px); overflow: auto; padding: 16px; display: grid; gap: 16px; justify-items: center; }
.reader-pages img { width: 100%; max-width: 1000px; height: auto; background: #fff; cursor: zoom-in; }
.reader-pages img.zoom { width: 180%; max-width: none; cursor: zoom-out; }

/* Report */
.report { max-width: 760px; padding-top: clamp(32px, 5vw, 56px); }
.report p { font-size: 1.05rem; line-height: 1.65; max-width: none; }
.report-img { margin: 28px 0 32px; }
.report-img img { width: 100%; height: auto; }

/* Operating room illustration with animation */
.or-stage { position: relative; }
.or-stage img { width: 100%; height: auto; }
.or-overlay { position: absolute; inset: clamp(10px, 1.8vw, 24px); width: calc(100% - 2 * clamp(10px, 1.8vw, 24px)); height: calc(100% - 2 * clamp(10px, 1.8vw, 24px)); pointer-events: none; }
.or-steps { list-style: none; counter-reset: s; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.or-steps li { counter-increment: s; font-size: 0.84rem; line-height: 1.4; color: var(--graphite); padding-top: 12px; box-shadow: inset 0 2px 0 var(--rule); transition: color .3s, box-shadow .3s; cursor: pointer; }
.or-steps li b { display: block; color: var(--ink); font-size: 0.95rem; margin-bottom: 4px; }
.or-steps li b::before { content: counter(s) ". "; }
.or-steps li.on { color: var(--ink); box-shadow: inset 0 3px 0 var(--pencil); }
.or-steps li.on b { color: var(--pencil); }

.mep-guess { margin: 14px 0 0; font-size: 0.9rem; }
.mep-legend { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mep-legend p { font-size: 0.84rem; color: var(--graphite); margin: 0; max-width: none; }
.mep-legend b { color: var(--ink); }

@media (max-width: 900px) {
  .or-steps { grid-template-columns: 1fr 1fr; }
  .press { grid-template-columns: 1fr 1fr; }
  .mep-legend { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .or-steps { grid-template-columns: 1fr; }
  .press { grid-template-columns: 1fr; }
}
.chapter.full { grid-template-columns: 1fr; }
.chapter.full > h2 { position: static; }
.chapter.full > div > p:first-child { max-width: 70ch; }
@media (max-width: 600px) {
  .or-steps li:not(.on) { display: none; }
  .or-steps li { min-height: 7.5em; }
}
@media (max-width: 600px) and (prefers-reduced-motion: reduce) { .or-steps li:not(.on) { display: block; } }
.report { max-width: var(--wide); }
.report > * { max-width: 700px; }

/* Awards band on the thesis page */
.awards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); margin-top: clamp(40px, 6vw, 72px); }
.award { background: #fff; padding: clamp(20px, 2.6vw, 32px); display: flex; flex-direction: column; }
.award-year { font-size: clamp(2.8rem, 5vw, 4.4rem); line-height: .9; font-stretch: 120%; font-weight: 700; letter-spacing: -0.04em; color: var(--pencil); }
.award h2 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.15; margin-top: 18px; font-stretch: 112%; }
.award p { font-size: 0.9rem; color: var(--graphite); margin: 10px 0 16px; }
.award a { margin-top: auto; font-size: 0.88rem; font-weight: 560; }

/* Exoskeleton: the two modes side by side */
.modes { padding-top: clamp(64px, 9vw, 128px); }
.modes h2 { margin-bottom: clamp(24px, 3vw, 40px); }
.modes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); align-items: start; }
.modes-grid img, .modes-grid video { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--tint); }
.modes-grid figcaption { font-size: 0.9rem; color: var(--graphite); }
.modes-grid figcaption b { color: var(--ink); }

@media (max-width: 900px) { .awards, .modes-grid { grid-template-columns: 1fr; } .modes-grid img, .modes-grid video { aspect-ratio: 4 / 5; } }

.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.two .card img { aspect-ratio: 4 / 3; }
@media (max-width: 460px) { .cards.two { grid-template-columns: 1fr; } }

/* Homepage: the animated operating room illustration inside the work feature */
.feature-img.or-home { background: #fff; aspect-ratio: 3 / 2; display: flex; flex-direction: column; justify-content: center; padding: 4% 3% 0; position: relative; }
.feature-img.or-home .or-stage.flush { position: relative; }
.feature-img.or-home img { aspect-ratio: auto; object-fit: fill; width: 100%; height: auto; transition: none; }
.feature:hover .feature-img.or-home img { transform: none; }
.or-stage.flush .or-overlay { inset: 0; width: 100%; height: 100%; }
.or-steps.mini { display: block; margin: 0; padding: 10px 0 0; min-height: 2.6em; text-align: center; }
.or-steps.mini li { display: none; box-shadow: none; padding: 0; font-size: 0.85rem; color: var(--pencil); font-weight: 560; }
.or-steps.mini li.on { display: block; }
.or-steps.mini li b::before, .or-steps.mini li::before { content: none; }
@media (max-width: 600px) { .or-steps.mini li { min-height: 0; } }

/* No cropped heads: gallery images keep their own proportions */
.grid2 img, .grid2 video, .grid3 img { object-fit: contain; }
.modes-grid img, .modes-grid video { aspect-ratio: 3 / 5; object-position: 50% 30%; }
@media (max-width: 900px) { .grid2 img, .grid2 video, .grid3 img, .modes-grid img, .modes-grid video { aspect-ratio: auto; height: auto; } }


/* Selected muscle stays marked in violet, also when its numbers turn red */
.mep-labels button { padding-left: 12px; border-left: 3px solid transparent; transition: border-color .2s; }
.mep-labels button.on { border-left-color: var(--pencil); }
.mep-labels button.on b { color: var(--pencil); }

/* Achievements inside the project cards */
.feature .feat-award { margin: 14px 0 0; font-size: 0.86rem; font-weight: 560; color: var(--ink); padding-left: 14px; position: relative; max-width: 46ch; }
.feature .feat-award::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 6px; height: 6px; border-radius: 50%; background: var(--pencil); }
.feature .feat-award + .meta { margin-top: 6px; }


/* About: a clear statement, then the path, then the rest in small pieces */
#about h3 { font-size: 0.95rem; font-weight: 560; color: var(--graphite); margin: 0 0 18px; }
.about-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.about-lead { font-size: clamp(1.45rem, 2.6vw, 2.25rem); line-height: 1.22; letter-spacing: -0.02em; font-stretch: 104%; max-width: 26ch; margin: 0; }
.about-side p { color: var(--graphite); margin: 0 0 14px; max-width: 46ch; }
.about-side p.quiet { font-size: 0.88rem; margin-top: 22px; }
.cv { margin-top: clamp(64px, 9vw, 120px); }
.cv-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.cv-list > li { display: grid; grid-template-columns: 10em minmax(0, 1fr); gap: clamp(16px, 3vw, 48px); padding: 20px 0; border-top: 1px solid var(--rule); }
.cv-list time { color: var(--graphite); font-variant-numeric: tabular-nums; padding-top: 2px; }
.cv-list b { display: block; font-size: clamp(1.05rem, 1.4vw, 1.2rem); font-weight: 600; font-stretch: 106%; }
.cv-list div > span { display: block; color: var(--graphite); margin-top: 2px; }
.cv-list .led { margin: 18px 0 8px; font-size: 0.82rem; font-weight: 560; color: var(--ink); }
.led-list { list-style: none; margin: 0; padding: 0; font-size: 0.9rem; line-height: 1.45; color: var(--graphite); columns: 2; column-gap: clamp(20px, 3vw, 48px); }
.led-list li { position: relative; padding-left: 14px; margin: 0 0 8px; break-inside: avoid; }
.led-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--pencil); }
.also { margin-top: clamp(56px, 8vw, 96px); }
.also-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(20px, 3vw, 48px); }
.also-grid b { display: block; font-weight: 600; }
.also-grid span { display: block; color: var(--graphite); font-size: 0.9rem; margin-top: 4px; max-width: 34ch; }
.side { margin-top: clamp(56px, 8vw, 96px); }
.side-work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.side-card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(16px, 2vw, 28px); align-items: center; color: inherit; text-decoration: none; background: #fff; padding: clamp(12px, 1.4vw, 18px); }
.side-card img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #eeefea; }
.side-card b { display: block; font-size: 1.1rem; font-weight: 600; font-stretch: 106%; }
.side-card span { display: block; margin-top: 8px; font-size: 0.9rem; line-height: 1.5; color: var(--graphite); }
.side-card em { display: inline-block; margin-top: 14px; font-style: normal; font-size: 0.88rem; font-weight: 560; color: var(--pencil); }
a.side-card:hover b { color: var(--pencil); }
.side-more { margin-top: 22px; color: var(--graphite); }
@media (max-width: 900px) { .about-intro, .side-work { grid-template-columns: minmax(0, 1fr); } .also-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cv-list > li { grid-template-columns: minmax(0, 1fr); gap: 4px; } .led-list { columns: 1; } .also-grid { gap: 20px 16px; } }

/* Leonardo: annotated product photo. Pins and list are linked by anno.js; without JS both stay readable */
.anno { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin-top: clamp(40px, 6vw, 72px); }
.anno-stage { background: #e9e6e1; }
.anno-pic { position: relative; }
.anno-stage img { width: 100%; height: auto; }
.anno-pin { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: 0.8rem; font-weight: 640; line-height: 30px; text-align: center; background: var(--ink); color: var(--paper);
  box-shadow: 0 0 0 3px rgba(244,244,242,.8); transition: background-color .15s, opacity .15s; }
.anno.has-on .anno-pin { opacity: .4; }
.anno .anno-pin.on { opacity: 1; background: var(--pencil); }
.anno-pin:focus-visible { outline: 2px solid var(--pencil); outline-offset: 3px; }
.anno-now { display: none; }
.anno-list { margin: 0; font-size: 1rem; color: var(--ink); }
.anno-hint { font-size: 0.85rem; color: var(--graphite); margin: 0 0 14px; }
.anno-list ol { list-style: none; margin: 0; padding: 0; counter-reset: a; border-bottom: 1px solid var(--rule); }
.anno-list li { counter-increment: a; display: grid; grid-template-columns: 2.2em minmax(0, 1fr); padding: 12px 0; border-top: 1px solid var(--rule);
  font-size: 0.94rem; line-height: 1.45; color: var(--graphite); cursor: default; transition: color .15s; }
.anno-list li::before { content: counter(a); grid-row: span 2; font-weight: 640; color: var(--ink); font-variant-numeric: tabular-nums; }
.anno-list li b { display: block; font-weight: 600; color: var(--ink); }
.anno-list li.on::before, .anno-list li.on b { color: var(--pencil); }
@media (max-width: 900px) {
  .anno { grid-template-columns: minmax(0, 1fr); }
  .anno-now { margin: 0; padding: 10px 12px; background: rgba(32,35,39,.88); color: var(--paper);
    font-size: 0.85rem; line-height: 1.4; max-width: none; }
  .anno-now b { display: block; }
  .anno.has-on .anno-now { display: block; }
  .anno-pin { width: 28px; height: 28px; line-height: 28px; }
}

/* Leonardo: kit and assembled trainer side by side; small extra photo under an annotation list */
.grid2.w43 img { aspect-ratio: 4 / 3; object-fit: cover; }
.anno-extra { margin: 20px 0 0; max-width: 240px; }
.anno-extra img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #e6e3de; }
.anno-extra figcaption { margin-top: 8px; }
@media (max-width: 900px) { .grid2.w43 img { aspect-ratio: 4 / 3; } }

/* Exoskeleton: how the pilot interface connects, as a simple block diagram */
.sys { margin-top: 36px; }
.sys-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 36px; }
.sys-node { position: relative; background: #fff; padding: 14px 16px; box-shadow: inset 0 0 0 1px var(--rule); }
.sys-node.mine { box-shadow: inset 0 0 0 1.5px var(--pencil); }
.sys-node b { display: block; font-weight: 600; font-size: 0.98rem; }
.sys-node span { display: block; font-size: 0.84rem; line-height: 1.4; color: var(--graphite); margin-top: 3px; }
.sys-node em { display: none; font-style: normal; font-size: 0.78rem; color: var(--pencil); margin-bottom: 4px; }
.sys-node.r::after { content: ""; position: absolute; top: 50%; right: -30px; width: 24px; height: 1px; background: var(--ink); }
.sys-node.r::before { content: ""; position: absolute; top: calc(50% - 4px); right: -31px; border: solid transparent; border-width: 4px 0 4px 7px; border-left-color: var(--ink); }
.sys-node.pn::before { content: ""; position: absolute; left: 50%; top: -24px; width: 1px; height: 18px; background: var(--ink); }
.sys-node.pn { grid-column: 2; }
.sys-node.pn::after { content: ""; position: absolute; left: calc(50% - 4px); top: -7px; border: solid transparent; border-width: 7px 4px 0 4px; border-top-color: var(--ink); }
.sys figcaption { margin-top: 14px; }
@media (max-width: 700px) {
  .sys-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .sys-node.r::after { top: auto; bottom: -18px; right: auto; left: 50%; width: 1px; height: 14px; }
  .sys-node.r::before { top: auto; bottom: -22px; right: auto; left: calc(50% - 4px); border-width: 7px 4px 0 4px; border-color: transparent; border-top-color: var(--ink); }
  .sys-node.pn { grid-column: auto; margin: 6px 0 0 24px; }
  .sys-node.pn::before, .sys-node.pn::after { display: none; }
  .sys-node.pn em { display: block; }
}

/* Footer: PDF link and a note on how the site is built */
.foot .colophon { margin: 28px 0 0; font-size: 0.8rem; line-height: 1.5; color: #7d8187; max-width: 72ch; }
.pdf-link { font-weight: 560; }
