@font-face {
  font-family: Manrope;
  src: url("assets/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --base: #0c111a;
  --section: #101826;
  --panel: #151f2e;
  --line: #2d3b50;
  --control-border: #587290;
  --chip: #1b293d;
  --selected: #253d5d;
  --text: #e8eef7;
  --muted: #aab9ce;
  --accent: #93bdf9;
  --highlight: #c4dbff;
  --viewer-text: #f2f6fd;
  --viewer-muted: #b9cae0;
  --viewer-accent: #a8ccff;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --sans: Manrope, "Segoe UI", system-ui, sans-serif;
  --max: 1240px;
  --header: 108px;
  --header-main: 64px;
  font-family: var(--sans);
  background: var(--base);
  color: var(--text);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 16px);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
img { display: block; width: 100%; height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.skip { position: fixed; z-index: 20; left: 15px; top: 12px; padding: 12px 20px; background: var(--accent); color: var(--base); transform: translateY(-150%); }
.skip:focus { transform: none; }
.wrap { width: min(var(--max), calc(100% - 104px)); margin-inline: auto; }
.header { height: var(--header); position: sticky; top: 0; z-index: 10; background: #0d1521f5; border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.resume-header { --header: 64px; }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header-main { min-height: var(--header-main); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.header-identity { display: flex; align-items: baseline; gap: 19px; min-width: 0; }
.brand { font-weight: 730; font-size: 19px; letter-spacing: -.027em; white-space: nowrap; }
.header-email { color: var(--muted); font-size: 13px; white-space: nowrap; }
.header-email span { font-weight: 680; margin-right: 4px; color: var(--text); }
.header-actions { display: flex; align-items: center; gap: clamp(9px, 1.9vw, 24px); white-space: nowrap; font-size: 13px; font-weight: 670; }
.header-actions span { color: var(--accent); }
.header-resume { padding: 8px 11px; background: var(--chip); color: var(--highlight); border: 1px solid var(--control-border); border-radius: 7px; }
.section-nav { display: flex; align-items: center; gap: clamp(15px, 3vw, 36px); height: calc(var(--header) - var(--header-main) - 1px); border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.section-nav a { flex: none; padding-block: 7px; font-size: 13px; font-weight: 630; color: var(--muted); }
.section-nav a:focus-visible { outline-offset: -2px; }
.section-nav a:hover, .header-actions a:hover, .header-email:hover, .nav a:hover, .footer-line a:hover, .links a:hover { color: var(--highlight); }
.footer-line a { color: var(--muted); }
.nav-contact { font-size: 14px; white-space: nowrap; }
.nav-contact span { color: var(--accent); }
.progress { position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background: var(--accent); transform: scaleX(var(--progress, 0)); transform-origin: left; }

.eyebrow { font: 650 11px/1.5 var(--mono); letter-spacing: .115em; color: var(--muted); }
.eyebrow span, h1 span, h2 span { color: var(--accent); }
h1, h2, h3 { font-weight: 720; letter-spacing: -.048em; line-height: 1.04; }
h1 { font-size: clamp(62px, 6.7vw, 108px); margin: 15px 0 18px; }
h2 { font-size: clamp(43px, 5.8vw, 82px); }
.hero-deck { font-size: clamp(22px, 2.42vw, 33px); font-weight: 580; letter-spacing: -.032em; line-height: 1.17; max-width: 440px; }
.intro { max-width: 430px; font-size: 16px; margin: 14px 0 19px; }
p:not(.eyebrow, .hero-deck, .feature-deck) { line-height: 1.62; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 48px; padding: 0 17px; width: fit-content; border-radius: 7px; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.primary { background: var(--accent); border: 1px solid var(--accent); color: #0b1626; }
.primary:hover { background: #afcdf8; }
.primary:disabled { opacity: .66; cursor: wait; }
.outline { background: transparent; border: 1px solid var(--control-border); color: var(--text); }
.outline:hover { border-color: var(--accent); color: var(--accent); }

.portfolio-intro { border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 74% 38%, #182841, transparent 66%), var(--base); }
.feature-viewer { --accent: var(--viewer-accent); --highlight: var(--viewer-text); --muted: var(--viewer-muted); color: var(--viewer-text); }
.instrument-head, .instrument-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 2px 10px; color: var(--viewer-text); font: 650 13px/1.4 var(--sans); }
.instrument-head span:last-child { color: var(--viewer-muted); font-weight: 480; text-align: right; }
.instrument-foot { padding: 9px 2px 7px; color: var(--viewer-muted); font-size: 12px; font-weight: 500; }
.instrument-tools { display: flex; gap: 5px; }
.instrument-foot button { color: var(--highlight); background: #121f36; border: 1px solid #395479; border-radius: 5px; cursor: pointer; min-height: 32px; min-width: 32px; padding: 3px 6px; font: 650 12px var(--sans); white-space: nowrap; }
.instrument-foot button:hover { border-color: var(--accent); }
.story-meter { background: #253953; height: 2px; border-radius: 2px; }
.story-meter span { display: block; width: 100%; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--story-progress, 0)); }

.camera-demo { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: center; gap: clamp(30px, 5vw, 70px); padding-block: clamp(56px, 8vw, 104px); }
.camera-demo-copy, .camera-demo-media { min-width: 0; }
.camera-demo h2 { margin: 14px 0 18px; font-size: clamp(43px, 5.5vw, 72px); }
.camera-demo-copy > p:not(.eyebrow, .feature-deck) { margin-top: 12px; font-size: 15px; }
.camera-demo-copy .links { margin-top: 22px; }
.camera-video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid #3b5371; border-radius: 12px; background: #050a12; box-shadow: 0 18px 48px #030a1740; }
.camera-video-frame iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.camera-video-caption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 16px; padding-top: 12px; font-weight: 500; line-height: 1.55; }
.camera-pipeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 22px 0 0; padding: 0; list-style: none; }
.camera-pipeline li { position: relative; min-width: 0; padding-top: 12px; border-top: 1px solid var(--control-border); }
.camera-pipeline li:not(:last-child)::after { content: "\2192"; position: absolute; right: -15px; top: 11px; color: var(--accent); font-size: 14px; }
.camera-pipeline span { display: block; color: var(--highlight); font-size: 13px; font-weight: 650; line-height: 1.4; }
.camera-pipeline small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }

.camera-gallery, .work, .clubs, .vex, .models, .contact { border-top: 1px solid var(--line); }
.camera-gallery { background: var(--section); padding-block: 50px 61px; }
.model-credit { margin-top: 13px; font-size: 11px; }
.gallery-intro { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 9px 22px; margin-bottom: 21px; }
.gallery-intro h2 { font-size: clamp(26px, 3.3vw, 42px); }
.siwave-study { margin-bottom: 22px; padding: clamp(16px, 3vw, 32px); border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.siwave-study h3 { font-size: clamp(24px, 3vw, 38px); }
.siwave-intro { margin-top: 9px; max-width: 70ch; }
.siwave-plots, .siwave-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.6vw, 28px); }
.siwave-plots { margin-top: 23px; }
.siwave-plots figure { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--section); }
.siwave-plots a { display: block; }
.siwave-plots a:focus-visible { outline-offset: -3px; }
.siwave-plots img { aspect-ratio: 2 / 1; object-fit: contain; }
.siwave-plots figcaption { display: block; padding: 11px 13px; border-top: 1px solid var(--line); }
.siwave-plots figcaption strong { display: block; margin-bottom: 3px; color: var(--highlight); font-size: 14px; }
.siwave-scale-note { margin-top: 10px; font-size: 13px; }
.siwave-details { margin-top: 24px; padding-top: 21px; border-top: 1px solid var(--line); }
.siwave-changes { margin: 0; }
.siwave-changes dt, .siwave-results h4 { margin: 0; color: var(--highlight); font-size: 16px; font-weight: 730; }
.siwave-changes dd { margin: 5px 0 15px; font-size: 14px; line-height: 1.6; }
.siwave-changes dd:last-child { margin-bottom: 0; }
.siwave-peaks { width: 100%; margin-block: 8px 11px; border-collapse: collapse; font-size: 14px; text-align: left; }
.siwave-peaks th, .siwave-peaks td { padding: 8px 9px; border-bottom: 1px solid var(--line); }
.siwave-peaks thead th { color: var(--muted); font-size: 12px; }
.siwave-peaks td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.siwave-peaks td:last-child { color: var(--highlight); }
.siwave-results p { font-size: 13px; }
.siwave-results .links { margin-top: 12px; }
.gallery-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gallery-strip figure { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.gallery-strip .media-frame { aspect-ratio: 1.52; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.gallery-strip figcaption { padding: 9px 11px; }
.gallery-strip .portrait { background: #050910; }
.gallery-strip .silk { background: #1a3d72; padding: 7px; }
.reverse-silk img { transform: scaleY(-1); }
figcaption { padding: 10px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font: 620 12px/1.45 var(--sans); }

.section-lead { display: grid; grid-template-columns: 1fr minmax(190px, 310px); gap: 13px 35px; align-items: end; padding-block: 81px 37px; }
.section-lead .eyebrow { grid-column: 1 / -1; }
.section-lead > p:last-child { font-size: clamp(16px, 1.6vw, 20px); max-width: 310px; }
.board-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; padding-bottom: 86px; }
.board-card, .lab-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); overflow: hidden; }
.board-card .media-frame { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; aspect-ratio: 1.7; }
.board-card > div:last-child { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: 20px; flex: 1; }
.board-card h3, .lab-card h3 { font-size: clamp(23px, 2.6vw, 37px); letter-spacing: -.055em; line-height: 1.08; }
.board-card a, .lab-card a { margin-top: auto; padding-top: 7px; }
.board-card p:not(.eyebrow), .lab-card p:not(.eyebrow) { font-size: 15px; }

.clubs { background: var(--section); padding-bottom: 88px; }
.arc-feature { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(28px, 5vw, 74px); align-items: center; padding-block: 27px 35px; border-top: 1px solid var(--line); }
.arc-copy h3 { font-size: clamp(36px, 4.7vw, 60px); margin: 14px 0; }
.arc-copy > p:not(.eyebrow) { max-width: 520px; }
.arc-visual { background: radial-gradient(ellipse at 56% 35%, #254367, #111c31 74%); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.arc-image { overflow: hidden; }
.arc-visual img { padding: 15px; aspect-ratio: 1.6; object-fit: contain; }
.arc-visual figcaption { flex-wrap: wrap; padding: 12px; background: #13233b; border-top: 1px solid #3b5371; color: var(--viewer-muted); }
.arc-visual a { color: var(--viewer-accent); }
.clubs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.club-card { display: flex; flex-direction: column; gap: 11px; padding: clamp(18px, 3vw, 32px); border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.club-card h3 { font-size: clamp(26px, 3.2vw, 42px); }
.club-card .links { margin-top: auto; padding-top: 5px; }

.vex { padding-block: 82px; }
.vex-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(32px, 7vw, 92px); align-items: center; }
.vex h2 { margin: 13px 0 18px; }
.vex p + p { margin-top: 12px; }
.vex .links { margin-top: 18px; }
.vex .vex-result { font: 650 12px/1.5 var(--mono); color: var(--highlight); text-transform: uppercase; letter-spacing: .07em; }
.vex-record { overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.vex-record img { aspect-ratio: 4 / 3; object-fit: contain; }
.vex-record figcaption { flex-wrap: wrap; padding: 12px; border-top: 1px solid var(--line); }
.vex-record a { color: var(--highlight); }

.feature { display: grid; grid-template-columns: .88fr 1.12fr; align-items: start; column-gap: clamp(26px, 6vw, 98px); padding-block: 56px; border-top: 1px solid var(--line); }
.feature-copy { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: min(65svh, 510px); padding-bottom: 29px; }
.feature-viewer { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: calc(var(--header) + 21px); min-width: 0; z-index: 2; padding: 12px; border: 1px solid #344c69; border-radius: 13px; background: #101d32; box-shadow: 0 16px 40px #18335525; }
.feature .project-media { grid-column: 1; grid-row: 2; padding-bottom: 13px; }
.feature.reverse { grid-template-columns: 1.12fr .88fr; }
.feature.reverse .feature-copy, .feature.reverse .project-media { grid-column: 2; }
.feature.reverse .feature-viewer { grid-column: 1; }
.feature-viewer .feature-model-list { display: flex; flex-flow: row wrap; gap: 6px; padding-top: 9px; }
.feature-model-list .model-choice { min-height: 31px; padding: 3px 10px; font-size: 12px; text-transform: capitalize; }
.feature h2, .feature h3 { font-size: clamp(43px, 5.6vw, 75px); margin: 14px 0 15px; }
.feature-deck { font-size: clamp(20px, 2.05vw, 27px); font-weight: 580; line-height: 1.22; letter-spacing: -.032em; margin-bottom: 12px; }
.feature-copy > p:not(.eyebrow, .feature-deck) { max-width: 445px; }
.feature-copy .project-status { margin-top: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 19px 0 22px; padding: 0; list-style: none; }
.tags li { border: 1px solid var(--line); background: var(--chip); border-radius: 5px; color: var(--muted); padding: 5px 9px; font: 11px var(--mono); }
.links { display: flex; flex-wrap: wrap; gap: 16px; }
.links a, .lab-card a, .board-card a { color: var(--accent); font-weight: 660; font-size: 14px; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #8cbcff68; }
.media-frame { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #111c2e; aspect-ratio: 1.49; }
.media-frame img { width: 100%; height: 100%; object-fit: contain; }
#saturnarm .project-media .media-frame { aspect-ratio: 4 / 3; padding: 6px; }
.gallery-controls { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.gallery-controls button, .model-tools button, .model-choice { background: var(--panel); border: 1px solid var(--control-border); border-radius: 6px; cursor: pointer; min-width: 39px; min-height: 37px; }
.gallery-controls button:hover, .model-tools button:hover, .model-choice:hover { border-color: var(--accent); color: var(--accent); }
.lab-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; padding-block: 8px 90px; }
.lab-card { align-items: flex-start; gap: 10px; padding: 20px; min-height: 190px; }
.lab-card img { border-radius: 5px; aspect-ratio: 1.64; object-fit: contain; }

.models { padding-bottom: 96px; background: var(--section); }
.model-layout { display: grid; grid-template-columns: minmax(180px, .32fr) minmax(0, 1fr); gap: 24px; }
.model-list { display: flex; flex-direction: column; gap: 8px; }
.model-choice { text-align: left; padding: 10px 13px; min-height: 45px; font-size: 14px; }
.model-choice[aria-pressed="true"] { color: var(--highlight); border-color: #81a4d0; background: var(--selected); }
.model-faces { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.model-faces button { min-height: 31px; padding: 3px 10px; color: var(--highlight); background: var(--panel); border: 1px solid var(--control-border); border-radius: 6px; font-size: 12px; cursor: pointer; }
.feature-viewer .model-choice, .feature-viewer .model-faces button { background: #172a43; border-color: #426084; color: var(--viewer-text); }
.feature-viewer .model-choice[aria-pressed="true"] { color: #d8e9ff; background: #294568; border-color: #79a0cf; }
.model-faces button:hover { border-color: var(--accent); }
.model-faces button[aria-pressed="true"] { background: #294568; border-color: #8bb5eb; color: #edf5ff; }
.model-stage { display: grid; position: relative; overflow: hidden; min-width: 0; border: 1px solid #395479; border-radius: 9px; background: radial-gradient(ellipse at 49% 43%, #263e61, #0c1629 76%); }
.model-stage canvas, .model-stage img { width: 100%; height: auto; aspect-ratio: 1.77; grid-area: 1 / 1; }
.model-stage img { object-fit: contain; background: #111f34; }
.feature-stage { background: radial-gradient(ellipse at 47% 40%, #2c456a, #111e35 72%, #0b1426); }
.feature-stage canvas, .feature-stage img { aspect-ratio: 1.49; max-height: min(53svh, 490px); }
.model-stage canvas { cursor: grab; touch-action: pan-y; }
.model-stage canvas:active { cursor: grabbing; }
.model-stage canvas:focus-visible { outline-offset: -5px; }
.model-stage .model-status { align-self: end; grid-area: 1 / 1; background: #111e35f2; color: var(--viewer-muted); padding: 10px 14px; position: relative; z-index: 2; pointer-events: none; }
.model-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; padding-top: 12px; }
.model-meta p { font-size: 13px; }
.model-tools { display: flex; flex-wrap: wrap; gap: 7px; }
.model-tools button { padding: 0 9px; }
.model-tools a { color: var(--accent); align-self: center; margin-left: 6px; font-size: 13px; }

.pcb-inspector { display: grid; gap: 10px; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.pcb-inspector:not(:has([data-pcb-part-title]:not(:empty))) .pcb-part-copy { display: none; }
.pcb-part-copy h3 { margin-block: 3px 5px; font-size: 21px; letter-spacing: -.035em; }
.pcb-part-copy p { font-size: 13px; }
.pcb-part-copy .pcb-part-side { color: var(--accent); font: 630 10px/1.45 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.pcb-part-copy .pcb-part-number { color: var(--highlight); font: 650 12px/1.45 var(--mono); margin-bottom: 5px; overflow-wrap: anywhere; }
.pcb-part-picker { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-size: 12px; }
.pcb-part-picker span { flex-shrink: 0; }
.pcb-part-picker select { min-width: 0; width: 100%; padding: 6px 8px; border: 1px solid var(--control-border); border-radius: 6px; background: var(--panel); color: var(--text); font: inherit; }

.pcb-tour { --tour-view: calc(100svh - var(--header)); --tour-step: clamp(250px, 56svh, 540px); --tour-overview: 33svh; border-block: 1px solid var(--line); background: #0a1220; }
.pcb-tour-pin { display: grid; grid-template-columns: minmax(240px, .38fr) minmax(0, 1fr); align-items: stretch; gap: clamp(16px, 3vw, 44px); min-height: var(--tour-view); padding: clamp(16px, 3vw, 44px) max(24px, calc((100% - 1520px) / 2)); background: #0b1422; }
.pcb-tour-copy { --pcb-tour-overlay-edge: left; align-self: center; min-width: 0; }
.pcb-tour-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.pcb-tour-kicker span { color: var(--accent); font: 650 11px/1.5 var(--mono); white-space: nowrap; }
.pcb-tour h2 { margin: 8px 0 10px; font-size: clamp(28px, 3.3vw, 46px); }
.pcb-tour-copy:has([data-pcb-part-title]:not(:empty)) h2 { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
.pcb-tour-copy [data-pcb-tour-intro] { max-width: 38ch; font-size: 14px; }
.pcb-tour-facts { display: flex; flex-wrap: wrap; gap: 6px 10px; list-style: none; padding: 0; margin: 10px 0 0; color: var(--highlight); font: 630 11px/1.5 var(--mono); }
.pcb-tour-facts li { border: 1px solid #415d85; border-radius: 4px; padding: 3px 6px; }
.pcb-tour .pcb-inspector { gap: 12px; margin-top: 10px; padding-top: 10px; }
.pcb-tour .pcb-part-copy h3 { margin-block: 5px 7px; font-size: clamp(22px, 2.8vw, 36px); }
.pcb-tour .pcb-part-copy [data-pcb-part-description] { max-width: 42ch; font-size: 14px; }
.pcb-chapter-nav { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.pcb-chapter-nav button { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--control-border); border-radius: 6px; background: var(--panel); color: var(--highlight); font-size: 20px; cursor: pointer; }
.pcb-chapter-nav button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.pcb-chapter-nav button:disabled { color: var(--muted); opacity: .4; cursor: default; }
.pcb-chapter-nav [data-pcb-tour-progress] { flex: 1; min-width: 0; color: var(--accent); text-align: center; font: 650 12px/1.5 var(--mono); }
.pcb-tour-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 14px; margin-top: 12px; font-size: 12px; color: var(--accent); }
.pcb-tour-actions a:hover { text-decoration: underline; }
.pcb-tour-button { padding: 6px 10px; border: 1px solid var(--control-border); border-radius: 6px; background: var(--panel); color: var(--highlight); cursor: pointer; font: 660 12px var(--sans); }
.pcb-tour-button:hover, .pcb-tour-button[aria-current] { border-color: var(--accent); }
.pcb-tour-visual { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.pcb-tour-stage { flex: 1; min-height: min(380px, 48svh); background: radial-gradient(ellipse at 58% 42%, #213959, #101d31 66%, #0a1322); }
.pcb-tour-stage canvas, .pcb-tour-stage img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.pcb-tour-stage img { background: transparent; }
.pcb-tour-stage .model-status { position: absolute; inset: auto 0 0; }
.pcb-tour-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; padding: 20px max(24px, calc((100% - 1520px) / 2)); }
.pcb-tour-steps:empty { display: none; }
.pcb-tour-step { padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.pcb-tour-step h3 { font-size: 20px; margin-bottom: 7px; }
.pcb-tour-step p { font-size: 13px; margin-bottom: 8px; }

@media (prefers-reduced-motion: no-preference) and (min-height: 611px) {
  .pcb-tour { scroll-margin-top: calc(-1 * var(--header) - 16px); }
  .pcb-tour { --tour-view: 100svh; }
  .pcb-tour-pin { position: relative; display: block; height: var(--tour-view); padding: 0; }
  .pcb-tour:has(.pcb-tour-step) .pcb-tour-pin { position: sticky; top: 0; z-index: 11; }
  .pcb-tour-visual, .pcb-tour-stage { position: absolute; inset: 0; }
  .pcb-tour-stage { border: 0; border-radius: 0; min-height: 0; }
  .pcb-tour-copy { position: absolute; z-index: 2; left: clamp(14px, 3vw, 48px); bottom: max(24px, env(safe-area-inset-bottom)); width: clamp(260px, 29vw, 370px); max-height: calc(100% - 80px); overflow: auto; padding: clamp(14px, 2.25vw, 26px); border: 1px solid #536e93; border-radius: 14px; background: #101b2ce8; box-shadow: 0 14px 45px #030a1780; backdrop-filter: blur(14px); }
  .pcb-tour-visual > :is(.model-faces, .instrument-foot) { position: absolute; z-index: 1; top: max(12px, env(safe-area-inset-top)); margin: 0; padding: 0; }
  .pcb-tour-visual > .model-faces { left: clamp(14px, 3vw, 48px); }
  .pcb-tour-visual > .instrument-foot { right: clamp(14px, 3vw, 48px); }
  .pcb-tour-visual [data-story-hint] { padding: 5px 8px; border-radius: 5px; background: #101b2ce8; }
  .pcb-tour-stage .model-status { inset: 54px 0 auto; }
  .pcb-tour-steps { display: block; padding: 0 0 var(--tour-view); }
  .pcb-tour:has(.pcb-tour-step) .pcb-tour-steps { margin-top: calc(-1 * var(--tour-view)); }
  .pcb-tour-steps:empty:not([data-pcb-tour-ready]) { display: block; min-height: calc(var(--tour-overview) + var(--tour-step) * var(--tour-chapters)); padding: 0; }
  .pcb-tour-step { visibility: hidden; height: var(--tour-step); padding: 0; border: 0; }
  .pcb-tour-overview { height: var(--tour-overview); }
}
@media (max-width: 700px) {
  .pcb-tour-pin { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .pcb-tour-visual { grid-row: 1; }
  .pcb-tour-copy { grid-row: 2; }
  .pcb-tour-stage { min-height: min(250px, 35svh); }
  .pcb-tour h2 { margin: 3px 0 7px; }
  .pcb-tour .pcb-inspector { margin-top: 8px; padding-top: 8px; gap: 8px; }
  .pcb-tour .pcb-part-copy h3 { margin-block: 3px 4px; }
  .pcb-tour .pcb-part-copy [data-pcb-part-description] { font-size: 13px; }
  .pcb-tour-actions { margin-top: 8px; }
  .pcb-tour .instrument-foot { font-size: 11px; }
}
@media (max-width: 700px) and (min-height: 611px) and (prefers-reduced-motion: no-preference) {
  .pcb-tour-copy { --pcb-tour-overlay-edge: bottom; inset: auto 12px max(12px, env(safe-area-inset-bottom)); width: auto; max-height: 49svh; }
  .pcb-tour-stage { min-height: 0; }
  .pcb-tour-visual [data-story-hint] { display: none; }
}

.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 8vw, 103px); align-items: center; min-height: min(670px, calc(100svh - var(--header))); padding-block: clamp(56px, 9vh, 106px); }
.about p:not(.eyebrow) { max-width: 460px; }
.about .intro { margin-block: 16px 24px; }
.toolbox { padding: 23px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.toolbox dl { margin: 13px 0 0; }
.toolbox dl div { border-top: 1px solid var(--line); display: grid; grid-template-columns: .65fr 1.35fr; gap: 14px; padding-block: 13px; }
.toolbox dt { font-size: 14px; font-weight: 660; }
.toolbox dd { margin: 0; color: var(--muted); font-size: 14px; }
.contact { background: #0e1827; padding: 77px 0 23px; }
.contact-main { display: flex; justify-content: space-between; align-items: end; gap: 26px; margin-top: 14px; }
.contact-main p { margin-top: 14px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 11px 24px; margin: 26px 0 49px; }
.contact-links a { color: var(--accent); font-weight: 630; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #8cbcff68; }
.footer-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 19px; border-top: 1px solid var(--line); color: var(--muted); font: 11px var(--mono); }
.resume-page { min-height: calc(100svh - 64px); display: grid; place-items: start center; padding-block: clamp(62px, 13vh, 130px); }
.resume-panel { width: min(100%, 460px); }
.resume-panel h1 { font-size: clamp(46px, 8vw, 76px); margin: 0 0 14px; }
.resume-panel form { display: grid; gap: 9px; margin-block: 23px 4px; }
.resume-panel label { font-size: 15px; font-weight: 660; }
.resume-panel input { width: 100%; padding: 12px; border: 1px solid var(--control-border); background: var(--panel); color: var(--text); border-radius: 6px; }
.resume-panel button { margin-top: 4px; }
.resume-panel a:not(.button) { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
#unlock-status { min-height: 1.6em; margin-block: 7px; }

@media (prefers-reduced-motion: no-preference) {
  [data-effects] .reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .8s cubic-bezier(.18,.68,.23,1); }
  [data-effects] .reveal.visible, [data-effects] .reveal:focus-within, [data-effects] .reveal:target { opacity: 1; transform: none; }
  .portfolio-intro .about { animation: enter .75s cubic-bezier(.2,.6,.2,1) both; }
  .arc-visual img { transform: perspective(750px) translateY(var(--tilt-lift, 0px)) rotateY(var(--tilt-yaw, 0deg)) rotateZ(var(--tilt-roll, 0deg)) scale(.88); }
  @keyframes enter { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 950px) {
  .wrap { width: calc(100% - 56px); }
  h1 { font-size: clamp(58px, 8.9vw, 94px); }
  .feature { column-gap: 27px; }
  .lab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .camera-demo { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .camera-demo-copy { max-width: 640px; }
}
@media (max-width: 780px) {
  .siwave-plots, .siwave-details { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 670px) {
  :root { --header: 99px; --header-main: 59px; }
  .wrap { width: calc(100% - 36px); }
  .header-identity { flex-direction: column; align-items: start; gap: 2px; }
  .brand { font-size: 16px; }
  .header-email, .header-actions { font-size: 11px; }
  .header-email span { margin-right: 2px; }
  .header-resume { padding: 6px 8px; }
  .section-nav { gap: clamp(9px, 2.8vw, 14px); }
  .section-nav a { font-size: clamp(10px, 2.95vw, 12px); }
  h1 { font-size: clamp(48px, 12.8vw, 80px); margin: 12px 0 14px; }
  .intro { margin-block: 12px 19px; }
  .instrument-head { padding-block: 4px 8px; }
  .instrument-foot { padding-block: 5px 3px; }
  .camera-demo { padding-block: 43px; }
  .camera-demo h2 { margin-block: 12px 15px; }
  .camera-pipeline { gap: 16px; margin-top: 18px; }
  .camera-pipeline span { font-size: clamp(10px, 2.5vw, 13px); }
  .camera-pipeline li:not(:last-child)::after { right: -13px; }
  .camera-gallery { padding-block: 32px; }
  .gallery-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .section-lead { display: block; padding-block: 58px 34px; }
  .section-lead h2 { margin-top: 11px; }
  .section-lead > p:last-child { margin-top: 13px; }
  .feature, .feature.reverse { display: flex; flex-direction: column; gap: 17px; padding-block: 35px; }
  .feature-copy { min-height: 0; padding-bottom: 0; }
  .feature-viewer, .feature .project-media { width: 100%; }
  .feature-viewer { position: static; padding: 9px; }
  .arc-feature, .clubs-grid, .vex-grid, .model-layout, .about { grid-template-columns: 1fr; }
  .vex { padding-block: 58px; }
  .model-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clubs, .models, .board-grid, .lab-grid { padding-bottom: 57px; }
  .board-grid, .lab-grid { grid-template-columns: 1fr; }
  .lab-card { min-height: 0; }
  .about { padding-block: 64px; }
  .contact { padding-top: 53px; }
  .contact-main { display: block; }
  .contact-main .button { margin-top: 18px; }
  .contact-links { margin-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .feature-viewer { position: static; }
  .feature-copy { min-height: 0; }
  .story-meter { display: none; }
}
@media (max-height: 510px) {
  .feature-viewer { position: static; }
  .feature-copy { min-height: 0; }
}
