/* main.css */
/* theme.css */
/* Soft White & Indigo, shared by every portfolio page. */
:root {
  color-scheme: light;
  --paper: #f7f9fa;
  --surface: #fff;
  --white: #fff;
  --ink: #111827;
  --muted: #3f4c5e;
  --border: #d8e0ea;
  --line: var(--border);
  --accent: #6366f1;
  --accent-ink: #4338ca;
  --accent-hover: #818cf8;
  --action: #4f46e5;
  --action-hover: #4338ca;
  --on-accent: #fff;
  --accent-on-dark: #4338ca;
  --secondary: #4338ca;
  --secondary-on-dark: #4338ca;
  --tint: rgba(99, 102, 241, .08);
  --dark: #eef2ff;
  --selection: #c7d2fe;
  --diagram-line: #7b8ba0;
  --glow: rgba(99, 102, 241, .1);
  --footer-bg: #111b2e;
  --footer-panel: #18263c;
  --footer-ink: #f8fafc;
  --footer-muted: #cbd5e1;
  --footer-accent: #b7c5ff;
  --footer-line: #7b8da8;
  --footer-tint: rgba(165, 180, 252, .12);
}

/* base.css */
:root {
  --sans: "Product Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

::selection { background: var(--selection); color: var(--ink); }

a { color: inherit; text-decoration: none; text-underline-offset: 5px; }

button { font: inherit; }

a, button, summary { -webkit-tap-highlight-color: transparent; }

a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

img { display: block; max-width: 100%; }

h1, h2, h3, p, figure { margin: 0; }

h1, h2, h3 { font-weight: 600; line-height: 1.14; }

ul { padding: 0; margin: 0; list-style: none; }

[hidden] { display: none !important; }

.shell { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 20px; background: var(--ink); color: white; transform: translateY(-160%); }

.skip-link:focus { transform: translateY(0); }

.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 600; line-height: 1.6; letter-spacing: 1.65px; text-transform: uppercase; }

.eyebrow-line { width: 25px; height: 2px; flex: 0 0 25px; background: var(--accent); }

.accent { color: var(--accent-ink); }

.muted-heading { color: var(--muted); }

.mono { font-family: var(--font-secondary); font-size: var(--text-xs); letter-spacing: .8px; }

/* Keep the old #stack bookmark working after the section rename. */
.section-anchor { display: block; height: 0; }

.breadcrumbs { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); margin-bottom: 24px; }
.breadcrumbs a { text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); }

/* layout.css */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); background: color-mix(in srgb, var(--paper) 96%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }

.site-nav { min-height: 82px; display: flex; align-items: center; gap: 30px; }

.brand { display: flex; align-items: center; gap: 14px; margin-right: auto; white-space: nowrap; }

.brand-mark { font-size: 55px; font-weight: 700; line-height: .9; letter-spacing: -6px; padding-right: 6px; }

.brand-mark > span { color: var(--accent); }

.brand-copy { font-size: 14px; font-weight: 600; line-height: 1.5; }

.brand-copy > span { display: block; color: var(--muted); font-size: 10px; font-weight: 400; margin-top: 1px; }

.nav-links { display: flex; align-items: center; gap: 26px; }

.nav-links a { display: flex; align-items: baseline; min-height: 82px; padding-block: 28px 23px; gap: 6px; position: relative; font-size: 13px; }

.nav-number { font-size: 9px; font-weight: 500; position: relative; top: -5px; color: var(--muted); }

.nav-links a[aria-current] { font-weight: 600; }

.nav-links a[aria-current]:after { content: ""; position: absolute; height: 2px; width: 28px; background: var(--accent); bottom: -1px; left: 50%; transform: translateX(-50%); }

.nav-github { border-left: 1px solid var(--border); padding-left: 25px; font-size: 12px; color: var(--muted); }

.mobile-menu { display: none; position: relative; }

.site-footer { color-scheme: dark; background: var(--footer-bg); color: var(--footer-ink); border-top: 1px solid var(--footer-line); }
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; padding-block: 32px; font-size: var(--text-xs); }

.footer-brand { font-size: 13px; font-weight: 600; }

.footer-brand > span { color: var(--footer-accent); }

.footer-inner > p { color: var(--footer-muted); font-size: var(--text-xs); }

.footer-inner > nav { display: flex; gap: 22px; margin-left: auto; }

.footer-inner > nav a { display: flex; align-items: center; min-height: 35px; }
.site-footer .footer-inner a:hover { color: var(--footer-accent); }
.site-footer a:focus-visible { outline-color: var(--footer-accent); }

.copyright { color: var(--footer-muted); font-size: 10px; }

.back-top { font-size: 22px; margin-left: 5px; }

/* components.css */
.button { display: inline-flex; align-items: center; justify-content: space-between; min-height: 50px; gap: 24px; padding: 12px 23px; border: 1px solid transparent; border-radius: 5px; font-size: 13px; font-weight: 600; line-height: 1.4; transition: background 180ms ease, transform 180ms ease; }

.button span { font-size: 18px; font-weight: 400; }

.button-primary, .button-dark { background: var(--action); color: var(--on-accent); }

.button-outline { background: var(--surface); border-color: var(--border); }

.button-light { background: var(--surface); border-color: var(--accent); color: var(--ink); }

.section-space { padding-block: 88px; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 38px; }

.section-heading h2 { font-size: 43px; letter-spacing: -1.9px; margin-top: 19px; }

.section-note { color: var(--muted); font-size: 14px; line-height: 1.8; padding-bottom: 2px; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 25px; margin-bottom: 23px; }

.tags > li { border: 1px solid var(--border); border-radius: 30px; padding: 4px 11px; background: var(--tint); color: var(--accent-ink); font-size: 10px; font-weight: 500; }

.text-link { display: inline-flex; align-items: center; min-height: 44px; gap: 24px; font-size: 13px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); }

.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 30px; min-width: 0; }

.contact-label { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }

.email-link { font-size: clamp(16px, 1.55vw, 22px); font-weight: 500; letter-spacing: -.5px; line-height: 1.6; display: inline-block; margin-top: 7px; text-decoration: underline; text-decoration-color: var(--accent); overflow-wrap: anywhere; }

.copy-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 11px; min-height: 34px; }

.copy-button { display: flex; align-items: center; gap: 18px; padding: 8px 0; border: 0; background: transparent; cursor: pointer; font-size: 11px; color: var(--accent-ink); font-weight: 500; }

.copy-status { font-size: 11px; color: var(--accent-ink); }

.contact-card-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 15px; align-items: baseline; padding-top: 21px; margin-top: 20px; border-top: 1px solid var(--border); }

.contact-card-row > a, .contact-card-row > div { font-size: 12px; }

.contact-card-row > div { display: flex; gap: 20px; }

.contact-page-link { display: flex; justify-content: space-between; gap: 20px; font-size: 11px; color: var(--muted); margin-top: 27px; padding-top: 23px; border-top: 1px solid var(--border); }

/* pages/home.css */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 0 80px; padding-top: 84px; align-items: center; }

.hero-copy { padding-bottom: 16px; }

.hero h1 { font-size: clamp(78px, 7.8vw, 106px); letter-spacing: -6px; line-height: .98; margin-top: 32px; }

.hero-name { display: block; font-size: 19px; font-weight: 500; letter-spacing: -.4px; line-height: 1.5; margin-bottom: 21px; }

.hero-description { color: var(--muted); font-size: 17px; line-height: 1.85; max-width: 560px; margin-top: 28px; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 29px; }

.hero-portrait { position: relative; margin-top: 28px; }

.portrait-monogram { position: absolute; z-index: -1; font-size: 264px; line-height: 1; letter-spacing: -35px; font-weight: 700; color: #e5ebed; top: -88px; left: -62px; user-select: none; }

.portrait-monogram > span { color: #d9e9e4; }

.portrait-frame { position: relative; border-radius: 5px; overflow: hidden; background: var(--surface); }

.portrait-frame > img { width: 100%; height: 435px; object-fit: cover; object-position: center 32%; filter: grayscale(.85); }

.hero-portrait figcaption { display: flex; align-items: center; gap: 10px; font-size: 10px; color: var(--muted); margin-top: 13px; }

.hero-portrait figcaption > span { width: 24px; height: 1px; background: var(--ink); flex-shrink: 0; }

.hero-footnote { grid-column: 1/-1; display: flex; justify-content: space-between; gap: 20px; margin-top: 69px; padding-block: 19px; border-top: 1px solid var(--border); color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: 1px; }

.hero-footnote > span:last-child { letter-spacing: .5px; }

.hero-footnote i { font-style: normal; color: var(--accent); padding-inline: 6px; }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

.project-card { min-width: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; background: var(--white); }

.card-copy { padding: 35px 38px; display: flex; flex-direction: column; flex: 1; }

.card-copy .eyebrow { font-size: 10px; letter-spacing: 1.3px; }

.card-copy h3 { font-size: 36px; line-height: 1.16; letter-spacing: -1.5px; font-weight: 500; margin-top: 24px; }

.card-description { color: var(--muted); font-size: 14px; line-height: 1.9; margin-top: 18px; }

.project-lead { grid-column: 1/-1; display: grid; grid-template-columns: 1fr 1fr; }

.project-lead .card-copy { padding: 38px 40px; }

.project-lead h3 { font-size: 40px; margin-top: 23px; }

.project-metrics { display: flex; gap: 30px; padding-top: 23px; margin-top: 23px; border-top: 1px solid var(--border); }

.project-metrics strong { display: block; font-size: 28px; font-weight: 500; letter-spacing: -1px; line-height: 1.2; }

.project-metrics span { display: block; color: var(--muted); font-size: 11px; margin-top: 6px; }

.project-link { display: flex; justify-content: space-between; align-items: center; gap: 15px; border-top: 1px solid var(--border); padding-top: 17px; margin-top: auto; font-size: 13px; font-weight: 600; }

.project-link > span[aria-hidden] { font-size: 20px; font-weight: 400; transition: transform 180ms ease; }

.ticket-stage { position: relative; isolation: isolate; background: #e8eeec; min-height: 490px; display: grid; place-items: center; overflow: hidden; }

.ticket-stage:before { position: absolute; z-index: -1; content: ""; width: 440px; height: 440px; border: 1px solid #ccd9d3; border-radius: 50%; }

.ticket-stage:after { position: absolute; z-index: -1; content: ""; width: 540px; height: 540px; border: 1px solid #d5e0db; border-radius: 50%; }

.stage-caption, .stage-index { position: absolute; font-size: 9px; letter-spacing: 1.6px; color: #4c655d; }

.stage-caption { top: 27px; left: 30px; }

.stage-index { right: 30px; bottom: 26px; }

.ticket-sheet { width: 76%; max-width: 345px; height: 240px; border: 1px solid #afc2b9; border-radius: 9px; }

.ticket-sheet-back { position: absolute; transform: rotate(-10deg) translate(-7px, -9px); background: #d2e3dc; }

.ticket-sheet-front { position: relative; background: #fff; padding: 25px; transform: rotate(5deg); box-shadow: 0 18px 28px #1f3e2e13; }

.ticket-logo { display: flex; align-items: center; gap: 11px; }

.ticket-logo > img { width: 38px; height: 38px; object-fit: contain; border-radius: 6px; }

.ticket-logo > span { font-size: 22px; font-weight: 600; letter-spacing: -.7px; line-height: 1; }

.ticket-logo > span > span { display: block; font-size: 6px; letter-spacing: 1.1px; font-weight: 500; color: var(--muted); margin-top: 8px; }

.ticket-rule { border-bottom: 1px dashed #bccbc4; margin-block: 18px; position: relative; }

.ticket-rule:before, .ticket-rule:after { content: ""; width: 18px; height: 18px; border-radius: 50%; background: #e8eeec; border: 1px solid #afc2b9; position: absolute; top: -9px; }

.ticket-rule:before { left: -35px; }

.ticket-rule:after { right: -35px; }

.ticket-pass { font-size: 11px; letter-spacing: 1px; color: var(--accent); line-height: 1.6; font-weight: 500; }

.ticket-bottom { display: flex; align-items: end; justify-content: space-between; margin-top: 17px; font-size: 7px; letter-spacing: 1.3px; }

.ticket-barcode { width: 85px; height: 25px; background: repeating-linear-gradient(90deg, #253d33 0 1px, transparent 1px 3px, #253d33 3px 5px, transparent 5px 7px); }

.project-travel { background: #eff3f5; }

.card-top { display: flex; align-items: start; justify-content: space-between; gap: 15px; min-height: 56px; }

.card-top .eyebrow { padding-top: 5px; }

.card-app-icon { width: 48px; height: 48px; object-fit: contain; border-radius: 10px; }

.project-travel h3, .project-community h3 { margin-top: 14px; }

.project-detail { display: flex; align-items: center; gap: 17px; margin-top: 27px; }

.detail-mark { font-size: 36px; color: var(--accent); line-height: 1; }

.project-detail p { font-size: 15px; line-height: 1.4; }

.project-detail p > span { display: block; color: var(--muted); font-size: 10px; margin-top: 7px; line-height: 1.7; }

.project-community { background: var(--dark); color: #f7fafb; border-color: var(--dark); }

.project-community .card-description, .project-community .project-detail p > span { color: #bac9cf; }

.project-community .eyebrow { color: #d4e2e1; }

.project-community .tags > li { border-color: #536167; color: #eef5f3; }

.project-community .project-link { border-color: #455359; }

.project-community .detail-mark { color: #a4d7c5; }

.project-community .community-logo { border-radius: 10px; background: #fff; padding: 2px; }

.more-work-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 57px; margin-bottom: 17px; }

.more-work-heading h3 { font-size: 15px; font-weight: 500; }

.more-work-heading > span { font-size: 9px; letter-spacing: 1.2px; color: var(--muted); }

.project-row { border-top: 1px solid var(--border); }

.project-row:last-child { border-bottom: 1px solid var(--border); }

.project-row > a { display: grid; grid-template-columns: 52px minmax(0, 1fr) 130px 20px; gap: 24px; align-items: center; padding-block: 23px; transition: background 180ms ease, padding 180ms ease; }

.project-icon { width: 52px; height: 52px; border: 1px solid var(--border); border-radius: 8px; background: #fff; overflow: hidden; }

.project-icon img { width: 100%; height: 100%; object-fit: contain; }

.project-row-copy h3 { font-size: 17px; font-weight: 500; letter-spacing: -.3px; }

.project-row-copy p { font-size: 13px; color: var(--muted); line-height: 1.8; margin-top: 5px; }

.project-category { font-size: 11px; color: var(--muted); text-align: right; }

.row-arrow { font-size: 22px; color: var(--muted); }

.about-section { background: var(--surface); padding-block: 90px; border-block: 1px solid #e5eaed; }

.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 100px; }

.about-intro h2 { font-size: 40px; font-weight: 500; letter-spacing: -1.8px; line-height: 1.18; margin-top: 22px; }

.about-copy { padding-top: 97px; }

.about-copy > p { font-size: 15px; line-height: 1.9; color: var(--muted); }

.about-copy > p:first-child { font-size: 23px; line-height: 1.5; letter-spacing: -.6px; color: var(--ink); }

.about-copy > p + p { margin-top: 21px; }

.about-copy .text-link { margin-top: 20px; }

.system-sketch { margin-top: 42px; padding: 20px 0; max-width: 370px; border-block: 1px solid #cfdade; position: relative; }

.sketch-label, .sketch-caption { font-size: 8px; letter-spacing: 1.8px; color: #536e6b; }

.sketch-flow { display: flex; align-items: center; margin-block: 26px; }

.sketch-interface { width: 92px; height: 76px; border: 1px solid #8fa9a3; border-radius: 3px; position: relative; padding: 2px 7px; display: flex; align-items: start; gap: 4px; }

.sketch-interface > i { width: 3px; height: 3px; border-radius: 50%; background: #789b91; margin-top: 5px; }

.sketch-interface:after { content: ""; position: absolute; height: 1px; background: #8fa9a3; top: 16px; left: 0; right: 0; }

.sketch-interface > b { position: absolute; top: 26px; left: 0; width: 100%; text-align: center; font-size: 19px; font-weight: 500; color: var(--accent); }

.sketch-connector { flex: 1; height: 1px; background: #8fa9a3; position: relative; }

.sketch-connector:after { position: absolute; content: ""; width: 5px; height: 5px; border-top: 1px solid #8fa9a3; border-right: 1px solid #8fa9a3; transform: rotate(45deg); right: 0; top: -2px; }

.sketch-api { width: 64px; height: 64px; border: 1px solid #8fa9a3; border-radius: 50%; display: grid; place-items: center; font-size: 16px; font-weight: 500; color: var(--accent); }

.sketch-data { width: 68px; height: 68px; border: 1px solid #8fa9a3; border-radius: 50% / 15%; display: grid; place-items: center; position: relative; font-size: 10px; color: var(--accent); }

.sketch-data > i { position: absolute; height: 13px; border: 1px solid #8fa9a3; border-radius: 50%; top: -1px; left: -1px; right: -1px; }

.stack-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; margin-top: 43px; }

.stack-grid > article { border-top: 1px solid var(--border); padding-top: 20px; }

.stack-index { font-size: 10px; color: var(--accent); }

.stack-grid h3 { font-size: 18px; font-weight: 500; letter-spacing: -.4px; margin-top: 22px; }

.stack-grid p { font-size: 13px; color: var(--muted); line-height: 1.9; margin-top: 12px; min-height: 50px; }

.stack-tools { display: block; font-size: 10px; font-weight: 500; color: var(--accent); margin-top: 24px; }

.contact-section { background: #ecf1f1; border-top: 1px solid var(--border); padding-block: 90px; }

.contact-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 100px; align-items: center; }

.contact-intro h2 { font-size: 63px; font-weight: 500; letter-spacing: -3px; margin-top: 23px; line-height: 1.06; }

.contact-intro > p:not(.eyebrow) { max-width: 440px; font-size: 15px; line-height: 1.9; color: var(--muted); margin-top: 25px; }

.contact-intro > .button { margin-top: 28px; }

/* pages/inner.css */
/* Standalone profile, contact, and error pages. */
.inner-hero { padding-top: 78px; padding-bottom: 56px; border-bottom: 1px solid var(--border); }

.inner-hero h1 { font-size: clamp(58px, 6.5vw, 88px); font-weight: 500; letter-spacing: -4px; line-height: 1.03; margin-top: 30px; max-width: 950px; }

.inner-lead { font-size: 18px; color: var(--muted); max-width: 650px; line-height: 1.85; margin-top: 29px; }

.about-detail { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 95px; padding-block: 65px 85px; }

.about-photo { width: 280px; height: 350px; object-fit: cover; object-position: center 32%; filter: grayscale(.85); border-radius: 5px; }

.about-photo-caption { font-size: 11px; margin-top: 13px; color: var(--muted); }

.prose h2 { font-size: 35px; font-weight: 500; letter-spacing: -1.4px; margin-bottom: 26px; }

.prose p { font-size: 15px; line-height: 1.95; color: var(--muted); }

.prose p + p { margin-top: 20px; }

.prose > .text-link { margin-top: 25px; }
.about-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 25px; }
.about-links .text-link { max-width: 100%; }

.career-section { border-top: 1px solid var(--border); padding-block: 48px 72px; }
.career-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; margin-bottom: 32px; }
.career-heading h2 { font-size: var(--heading-section); line-height: 1.15; letter-spacing: -.035em; margin-top: 16px; }
.career-heading > p { color: var(--muted); font-size: var(--text-base); line-height: 1.8; max-width: 460px; }
.career-list { list-style: none; padding: 0; margin: 0; }
.career-entry { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px; padding-block: 28px; border-top: 1px solid var(--border); }
.career-number, .career-date { font: 400 var(--text-xs)/1.7 var(--font-secondary); }
.career-number { color: var(--accent-ink); }
.career-entry h3 { font-size: var(--text-lg); font-weight: 500; line-height: 1.4; }
.career-role, .career-location { font-size: var(--text-sm); line-height: 1.7; margin-top: 5px; }
.career-location, .career-date, .career-description { color: var(--muted); }
.career-date { display: block; margin-top: 10px; }
.career-description { font-size: var(--text-base); line-height: 1.85; }
.education-list .career-entry { grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1.25fr); }
.education-list .career-description { background: var(--tint); color: var(--secondary); padding: 16px 20px; border-radius: 4px; }
@media (max-width: 700px) {
  .career-heading { grid-template-columns: 1fr; }
  .career-entry, .education-list .career-entry { grid-template-columns: 28px minmax(0, 1fr); gap: 12px; }
  .career-description { grid-column: 2; }
}

.expertise-section { border-top: 1px solid var(--border); padding-block: 48px 80px; }

.expertise-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 35px; margin-top: 35px; }

.expertise-item { border-top: 1px solid var(--border); padding-top: 20px; }

.expertise-item .mono { color: var(--accent-ink); font-size: 10px; }

.expertise-item h3 { font-size: 21px; font-weight: 500; letter-spacing: -.6px; line-height: 1.3; margin-top: 24px; }

.expertise-item p { font-size: 13px; line-height: 1.9; color: var(--muted); margin-top: 14px; }

.contact-band { background: var(--surface); border: 1px solid var(--accent); color: var(--ink); border-radius: 8px; padding: 48px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; margin-bottom: 25px; box-shadow: 0 0 32px var(--glow); }

.contact-band h2 { font-size: 48px; font-weight: 500; letter-spacing: -2px; margin-top: 22px; line-height: 1.12; }

.contact-band h2 > span { font-size: 33px; margin-left: 15px; }

.contact-band-copy { align-self: end; }

.contact-band-copy > p { color: var(--muted); font-size: 14px; line-height: 1.85; margin-bottom: 24px; max-width: 270px; }

.contact-band a:focus-visible { outline-color: var(--accent-ink); }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 100px; padding-block: 57px 90px; }

.contact-layout h2 { font-size: 17px; font-weight: 500; margin-bottom: 24px; }

.contact-layout .email-link { font-size: clamp(18px, 2vw, 27px); }

.phone-block { margin-top: 28px; border-top: 1px solid var(--border); padding-top: 26px; }

.phone-block > a { display: inline-block; font-size: 20px; margin-top: 9px; }

.contact-aside { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 30px; align-self: start; }

.contact-aside h2 { font-size: 27px; letter-spacing: -.8px; margin-bottom: 19px; }

.contact-aside p { font-size: 14px; line-height: 1.9; color: var(--muted); }

.contact-aside p + p { margin-top: 12px; }

.contact-aside ul { display: flex; gap: 25px; font-size: 13px; margin-top: 23px; }

.talk-page { min-height: calc(100vh - 185px); }

.error-page { min-height: calc(100vh - 185px); padding-block: 80px; }

.error-page h1 { font-size: clamp(60px, 6vw, 80px); font-weight: 500; line-height: 1.05; letter-spacing: -3px; margin-top: 27px; }

.error-page > p:not(.eyebrow) { color: var(--muted); font-size: 16px; margin-block: 26px; }

/* responsive.css */
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover, .nav-github:hover, .text-link:hover, .site-footer a:hover, .contact-card a:hover, .contact-aside a:hover { color: var(--accent-ink); }
  .button-primary:hover, .button-dark:hover { background: var(--action-hover); transform: translateY(-2px); }
  .button-outline:hover, .button-light:hover { background: var(--tint); border-color: var(--accent-hover); transform: translateY(-2px); }
  .project-link:hover > span[aria-hidden] { transform: translate(2px, -2px); }
  .project-row > a:hover { background: var(--surface); padding-inline: 12px; }
  .project-row > a:hover .row-arrow { color: var(--accent); }
  .copy-button:hover { text-decoration: underline; }
}
@media (max-width: 1100px) {
  .shell { width: calc(100% - 80px); }
  .site-nav { gap: 23px; }
  .nav-links { gap: 19px; }
  .brand-copy > span { font-size: 9px; }
  .hero { grid-template-columns: minmax(0, 1fr) 320px; gap: 0 55px; padding-top: 70px; }
  .hero h1 { font-size: 91px; }
  .hero-description { font-size: 16px; }
  .portrait-frame > img { height: 410px; }
  .portrait-monogram { font-size: 230px; left: -45px; top: -70px; }
  .hero-portrait figcaption { font-size: 9px; }
  .card-copy, .project-lead .card-copy { padding: 30px; }
  .card-copy h3 { font-size: 33px; }
  .project-lead h3 { font-size: 37px; }
  .project-metrics { gap: 24px; }
  .project-metrics strong { font-size: 25px; }
  .ticket-stage { min-height: 500px; }
  .ticket-sheet { width: 80%; padding: 20px; }
  .ticket-rule:before { left: -30px; }
  .ticket-rule:after { right: -30px; }
  .about-grid { gap: 65px; }
  .about-intro h2 { font-size: 35px; }
  .about-copy > p:first-child { font-size: 21px; }
  .contact-grid { gap: 60px; }
  .contact-intro h2 { font-size: 55px; }
  .contact-card { padding: 25px; }
  .about-detail { gap: 65px; }
  .contact-layout { gap: 60px; }
  .footer-inner > p { display: none; }
}
@media (max-width: 900px) {
  .brand-copy > span { display: none; }
  .nav-links { gap: 16px; }
  .nav-github { padding-left: 18px; }
  .hero { grid-template-columns: minmax(0, 1fr) 280px; gap: 0 38px; }
  .hero h1 { font-size: 80px; letter-spacing: -4px; }
  .hero-description { font-size: 15px; }
  .portrait-frame > img { height: 370px; }
  .portrait-monogram { font-size: 210px; letter-spacing: -30px; }
  .hero-actions { gap: 12px; }
  .button { padding-inline: 18px; gap: 20px; }
  .hero-footnote { font-size: 9px; letter-spacing: .5px; }
  .ticket-sheet { height: 230px; }
  .ticket-logo > span { font-size: 18px; }
  .ticket-logo > span > span { font-size: 5px; }
  .ticket-logo > img { width: 31px; height: 31px; }
  .project-metrics { gap: 18px; }
  .project-metrics strong { font-size: 23px; }
  .card-copy h3 { font-size: 30px; }
  .card-copy, .project-lead .card-copy { padding: 26px; }
  .card-description { font-size: 13px; }
  .project-detail p { font-size: 13px; }
  .about-grid { gap: 45px; }
  .about-intro h2 { font-size: 32px; }
  .about-copy { padding-top: 85px; }
  .stack-grid { gap: 25px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack-grid p { min-height: 0; }
  .stack-tools { margin-top: 15px; }
  .contact-grid { gap: 35px; }
  .contact-intro h2 { font-size: 48px; letter-spacing: -2px; }
  .contact-intro > p:not(.eyebrow) { font-size: 14px; }
  .email-link { font-size: 16px; }
  .contact-card { padding: 22px; }
  .contact-card-row { gap: 10px; }
}
@media (max-width: 840px) {
  .shell { width: calc(100% - 56px); }
  .site-nav { min-height: 76px; }
  .brand-copy > span { display: block; }
  .nav-links, .nav-github { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; width: 44px; height: 44px; list-style: none; cursor: pointer; border: 1px solid var(--border); border-radius: 5px; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary > span { height: 1px; width: 18px; background: var(--ink); }
  .mobile-menu ul { position: absolute; top: 53px; right: 0; width: 220px; padding: 9px; z-index: 60; background: var(--paper); border: 1px solid var(--border); border-radius: 7px; box-shadow: 0 10px 25px #18232b12; }
  .mobile-menu a { display: block; min-height: 44px; padding: 11px 12px; font-size: 14px; }
  .hero { grid-template-columns: 1fr; padding-top: 55px; gap: 0; }
  .hero-copy { max-width: 620px; padding-bottom: 0; }
  .hero h1 { font-size: 98px; }
  .hero-description { max-width: 560px; font-size: 17px; }
  .hero-portrait { max-width: 380px; width: 80%; justify-self: center; margin-top: 80px; }
  .portrait-frame > img { height: 410px; }
  .hero-portrait figcaption { font-size: 10px; }
  .hero-footnote { margin-top: 40px; }
  .section-space { padding-block: 65px; }
  .section-heading h2 { font-size: 39px; }
  .section-heading { gap: 35px; }
  .section-note { font-size: 13px; }
  .project-lead { grid-template-columns: 1fr; }
  .ticket-stage { min-height: 330px; }
  .ticket-sheet { width: 330px; }
  .ticket-logo > span { font-size: 22px; }
  .ticket-logo > span > span { font-size: 6px; }
  .ticket-logo > img { width: 38px; height: 38px; }
  .project-lead .card-copy { padding: 32px; }
  .project-lead h3 { font-size: 38px; }
  .project-metrics { gap: 45px; }
  .project-metrics strong { font-size: 29px; }
  .project-card:not(.project-lead) .card-top { flex-direction: column-reverse; gap: 15px; }
  .card-copy h3 { font-size: 30px; }
  .project-detail { gap: 12px; }
  .detail-mark { font-size: 29px; }
  .project-row > a { grid-template-columns: 48px minmax(0, 1fr) 18px; gap: 18px; }
  .project-icon { width: 48px; height: 48px; }
  .project-category { display: none; }
  .about-section, .contact-section { padding-block: 65px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-intro h2 { font-size: 40px; }
  .system-sketch { max-width: 400px; }
  .about-copy { padding-top: 0; max-width: 600px; }
  .about-copy > p:first-child { font-size: 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-intro h2 { font-size: 59px; }
  .contact-intro > p:not(.eyebrow) { font-size: 15px; max-width: 480px; }
  .contact-card { max-width: 540px; padding: 30px; }
  .email-link { font-size: 22px; }
  .inner-hero h1 { font-size: 71px; letter-spacing: -3px; }
  .about-detail { grid-template-columns: 220px minmax(0, 1fr); gap: 35px; }
  .about-photo { width: 220px; height: 280px; }
  .prose h2 { font-size: 29px; }
  .prose p { font-size: 14px; }
  .expertise-grid { grid-template-columns: 1fr; gap: 28px; }
  .expertise-item h3 { margin-top: 15px; }
  .contact-band { grid-template-columns: 1fr; gap: 28px; padding: 35px; }
  .contact-band-copy { display: flex; align-items: center; gap: 30px; justify-content: space-between; }
  .contact-band-copy > p { margin: 0; max-width: 280px; }
  .contact-layout { gap: 35px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .contact-aside { padding: 24px; }
  .contact-aside h2 { font-size: 25px; }
}
@media (max-width: 580px) {
  html { scroll-padding-top: 96px; }
  .shell { width: calc(100% - 40px); }
  .site-nav { min-height: 74px; gap: 12px; }
  .brand { gap: 10px; }
  .brand-mark { font-size: 48px; letter-spacing: -5px; }
  .brand-copy { font-size: 13px; }
  .brand-copy > span { font-size: 9px; }
  .hero { padding-top: 39px; }
  .eyebrow { font-size: 10px; letter-spacing: 1.3px; }
  .eyebrow-line { width: 18px; flex-basis: 18px; }
  .hero h1 { font-size: clamp(62px, 18vw, 86px); line-height: 1; letter-spacing: -4px; margin-top: 25px; }
  .hero-name { font-size: 17px; margin-bottom: 19px; }
  .hero-description { font-size: 15px; line-height: 1.85; margin-top: 25px; }
  .hero-actions { gap: 12px; margin-top: 25px; }
  .button { font-size: 12px; min-height: 48px; padding-inline: 18px; gap: 22px; }
  .hero-portrait { width: calc(100% - 20px); max-width: 350px; margin-top: 70px; }
  .portrait-frame > img { height: auto; aspect-ratio: .95; object-position: center 34%; }
  .portrait-monogram { top: -65px; left: -12px; font-size: 200px; }
  .hero-portrait figcaption { font-size: 9px; gap: 8px; }
  .hero-portrait figcaption > span { width: 17px; }
  .hero-footnote { flex-direction: column; gap: 8px; margin-top: 31px; padding-block: 18px; font-size: 8px; letter-spacing: .7px; }
  .section-space { padding-block: 53px; }
  .section-heading { display: block; margin-bottom: 28px; }
  .section-heading h2 { font-size: 36px; letter-spacing: -1.5px; margin-top: 16px; }
  .section-note { font-size: 13px; margin-top: 18px; }
  .project-grid { grid-template-columns: 1fr; gap: 20px; }
  .card-copy, .project-lead .card-copy { padding: 25px; }
  .card-copy .eyebrow { font-size: 9px; letter-spacing: 1px; }
  .card-copy h3, .project-lead h3 { font-size: 33px; letter-spacing: -1.3px; margin-top: 20px; }
  .card-description { font-size: 14px; line-height: 1.85; margin-top: 17px; }
  .project-metrics { gap: 22px; padding-top: 21px; margin-top: 21px; justify-content: space-between; }
  .project-metrics strong { font-size: 24px; }
  .project-metrics span { font-size: 10px; }
  .tags { margin-top: 23px; margin-bottom: 22px; gap: 6px; }
  .tags > li { font-size: 10px; padding-inline: 10px; }
  .project-link { font-size: 12px; padding-top: 16px; }
  .ticket-stage { min-height: 310px; }
  .ticket-sheet { width: 77%; height: 215px; padding: 19px; }
  .ticket-logo { gap: 9px; }
  .ticket-logo > span { font-size: 19px; }
  .ticket-logo > span > span { font-size: 4.5px; letter-spacing: .9px; }
  .ticket-logo > img { width: 32px; height: 32px; }
  .ticket-pass { font-size: 10px; }
  .ticket-rule { margin-block: 16px; }
  .ticket-rule:before { left: -29px; }
  .ticket-rule:after { right: -29px; }
  .ticket-bottom { font-size: 6px; }
  .ticket-barcode { width: 65px; height: 21px; }
  .stage-caption { top: 20px; left: 22px; font-size: 7px; }
  .stage-index { bottom: 18px; right: 22px; font-size: 7px; }
  .project-card:not(.project-lead) .card-top { flex-direction: row; }
  .project-travel h3, .project-community h3 { margin-top: 18px; }
  .project-detail { margin-top: 24px; }
  .project-detail p { font-size: 14px; }
  .project-detail p > span { font-size: 10px; }
  .more-work-heading { margin-top: 38px; margin-bottom: 15px; }
  .more-work-heading h3 { font-size: 13px; }
  .more-work-heading > span { font-size: 8px; letter-spacing: .7px; }
  .project-row > a { grid-template-columns: 42px minmax(0, 1fr) 16px; gap: 14px; padding-block: 21px; }
  .project-icon { width: 42px; height: 42px; border-radius: 6px; }
  .project-row-copy h3 { font-size: 16px; }
  .project-row-copy p { font-size: 12px; line-height: 1.8; margin-top: 5px; }
  .row-arrow { font-size: 20px; }
  .about-section, .contact-section { padding-block: 53px; }
  .about-intro h2 { font-size: 33px; letter-spacing: -1.4px; margin-top: 19px; }
  .system-sketch { margin-top: 31px; }
  .about-copy > p:first-child { font-size: 21px; line-height: 1.55; }
  .about-copy > p { font-size: 14px; }
  .stack-grid { grid-template-columns: 1fr; gap: 27px; margin-top: 28px; }
  .stack-grid > article { padding-top: 15px; }
  .stack-grid h3 { margin-top: 12px; font-size: 20px; }
  .stack-grid p { font-size: 14px; margin-top: 10px; }
  .stack-tools { font-size: 11px; margin-top: 14px; }
  .contact-intro h2 { font-size: clamp(42px, 12.8vw, 58px); letter-spacing: -2px; margin-top: 20px; }
  .contact-intro > p:not(.eyebrow) { font-size: 14px; margin-top: 23px; }
  .contact-intro > .button { margin-top: 25px; }
  .contact-card { padding: 25px 22px; }
  .email-link { font-size: clamp(15px, 4.65vw, 21px); letter-spacing: -.4px; }
  .contact-card-row > a, .contact-card-row > div { font-size: 11px; }
  .contact-card-row > div { gap: 17px; }
  .contact-page-link { font-size: 10px; }
  .footer-inner { gap: 12px 22px; padding-block: 27px; }
  .footer-inner > nav { margin-left: 0; width: 100%; order: 2; gap: 24px; }
  .copyright { margin-left: auto; }
  .back-top { font-size: 20px; }
  .inner-hero { padding-top: 42px; padding-bottom: 35px; }
  .inner-hero h1 { font-size: clamp(48px, 12.5vw, 67px); letter-spacing: -2px; margin-top: 25px; }
  .inner-lead { font-size: 16px; margin-top: 25px; }
  .about-detail { grid-template-columns: 1fr; gap: 34px; padding-block: 35px 50px; }
  .about-photo { width: 100%; height: auto; aspect-ratio: 1.05; object-position: center 35%; }
  .prose h2 { font-size: 31px; letter-spacing: -1px; }
  .prose p { font-size: 14px; }
  .expertise-section { padding-block: 35px 50px; }
  .expertise-grid { margin-top: 25px; }
  .expertise-item h3 { font-size: 21px; }
  .expertise-item p { font-size: 14px; }
  .contact-band { padding: 29px 25px; gap: 25px; }
  .contact-band h2 { font-size: 36px; letter-spacing: -1.4px; }
  .contact-band h2 > span { margin-left: 10px; font-size: 26px; }
  .contact-band-copy { display: block; }
  .contact-band-copy > p { margin-bottom: 23px; }
  .contact-layout { grid-template-columns: 1fr; padding-block: 35px 50px; gap: 35px; }
  .contact-layout .email-link { font-size: clamp(17px, 5vw, 24px); }
  .contact-aside { padding: 25px; }
  .contact-aside h2 { font-size: 27px; }
  .error-page { padding-block: 55px; }
  .error-page h1 { font-size: 56px; letter-spacing: -2px; }
}
@media (max-width: 360px) {
  .brand-copy > span { font-size: 8px; }
  .hero-actions { gap: 10px; }
  .button { font-size: 11px; padding-inline: 15px; gap: 17px; }
  .project-metrics { gap: 12px; }
  .project-metrics strong { font-size: 21px; }
  .project-metrics span { font-size: 9px; }
  .card-copy, .project-lead .card-copy { padding: 22px; }
  .ticket-logo > span { font-size: 16px; }
  .ticket-logo > span > span { font-size: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* typography.css */
@font-face {
  font-family: "Product Sans";
  src: url("../fonts/product-sans-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Product Sans";
  src: url("../fonts/product-sans-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Product Sans";
  src: url("../fonts/product-sans-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --font-primary: "Product Sans", Arial, sans-serif;
  --font-secondary: "Instrument Sans", Arial, sans-serif;
  --font: var(--font-primary);
  --font-display: var(--font-primary);
  --sans: var(--font-primary);
  --text-xs: .8125rem;
  --text-sm: .9375rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.5rem;
  --heading-card: clamp(1.5rem, 2.5vw, 2rem);
  --heading-section: clamp(2rem, 3.4vw, 3rem);
  --heading-page: clamp(2.5rem, 5.5vw, 4.5rem);
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-family: var(--font-primary); font-size: var(--text-base); line-height: 1.75; font-synthesis: none; }
button, input, textarea, select { font-family: inherit; }

body h1, body .intro h1, body .hero h1, body .inner-hero h1, body.error-page h1 {
  font-family: var(--font-primary);
  font-size: var(--heading-page);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.045em;
}

body h2, body .section-heading h2, body .about-intro h2, body .prose h2,
body .craft-copy h2, body .hero-copy h2, body .contact h2,
body .contact-intro h2, body .contact-band h2 {
  font-family: var(--font-primary);
  font-size: var(--heading-section);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.035em;
}

body h3, body .portfolio-grid h3, body .card-copy h3, body .project-lead h3 {
  font-family: var(--font-primary);
  font-size: var(--heading-card);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.025em;
}

body .more-work-heading h3, body .list-copy h3, body .project-row-copy h3,
body .engineering-heading h3, body .stack-grid h3, body .expertise-item h3,
body .contact-aside h2, body .contact-layout h2 {
  font-size: var(--text-xl);
  line-height: 1.3;
}

body .hero-description, body .project-description, body .card-description,
body .work-heading p, body .section-note, body .list-copy > p:not(.eyebrow),
body .about-copy > p, body .prose p, body .expertise-item p, body .stack-grid p,
body .craft-copy > p, body .contact-intro > p:not(.eyebrow), body .contact-aside p,
body .contact-band-copy > p, body.error-page > p:not(.eyebrow) {
  font-size: var(--text-base);
  line-height: 1.8;
}

body .intro-lead, body .inner-lead, body .about-copy > p:first-child {
  font-size: var(--text-lg);
  line-height: 1.75;
}

body .eyebrow, body .mono, body .breadcrumbs, body .intro-baseline,
body .intro-portrait figcaption, body .about-photo-caption, body .hero-caption,
body .hero-baseline .byline, body .project-stack, body .contribution-note,
body .list-number, body .list-detail, body .contact-label, body .copy-status,
body .tags > li, body .stack-tools, body .section-code, body .section-kicker,
body .physics-top, body .physics-help, body .physics-values, body .reset,
body .code-head, body .screen-head, body pre, body .study-help,
body .diagram-status, body .diagram-legend, body .node-index, body .node-caption,
body .footer-note, body .copyright {
  font-family: var(--font-secondary);
  font-size: var(--text-xs);
  line-height: 1.6;
}

body .eyebrow, body .eyebrow.mono, body .expertise-item .mono,
body .portfolio-grid .project-copy > .eyebrow, body .list-copy .eyebrow,
body .more-work-heading .eyebrow, body .hero-copy .eyebrow,
body .intro-copy .eyebrow, body .engineering-heading .eyebrow {
  font-size: var(--text-xs);
  letter-spacing: .08em;
}

body .button, body .text-link, body .project-link, body .copy-button,
body .nav-github, body .brand-copy, body .footer-brand, body .footer-links,
body .build-status, body .contact-card-row > a, body .contact-card-row > div,
body .contact-page-link, body .contact-aside ul, body .craft-detail,
body .craft-detail p, body .project-facts, body .metric > span,
body .state-buttons button, body .live-ticket button, body .demo-control,
body .section-current {
  font-size: var(--text-sm);
}

body .nav-links a, body .header .nav-links a, body .nav-contact,
body .show-navigation, body .identity, body .header .identity,
body .site-footer, body .footer-inner > p {
  font-size: var(--text-xs);
}

body .header .nav-links a[href="#about"] { font-size: var(--text-xs); }
body .section-kicker { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body pre, body code, body kbd, body samp { font-family: var(--font-secondary); }
body .source-grid :is(.code-head, .screen-head) { font-size: var(--text-sm); }
body .code-window pre { font-size: var(--text-base); line-height: 1.8; }
body .live-ticket h4 { font-size: var(--heading-section); }
body .live-ticket p:not(.eyebrow) { font-size: var(--text-lg); }
@media (max-width: 760px) {
  body .code-window pre { font-size: var(--text-sm); }
  body .live-ticket p:not(.eyebrow) { font-size: var(--text-base); }
}
body .brand-copy > span, body .identity small { font-size: var(--text-xs); }
body .physics-values small { font-size: var(--text-xs); }
body .physics-values output { font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
body .diagram-node h4 { font-family: var(--font-primary); font-size: var(--text-sm); }
body .node-glyph text, body .wire-caption { font-family: var(--font-secondary); }
body .nav-number, body .visual-index, body .visual-note,
body .figure-label, body .diagram-caption, body .scroll-cue,
body .annotation, body .annotation .eyebrow, body .layer-number {
  font-family: var(--font-secondary);
  font-size: var(--text-xs);
  line-height: 1.6;
}
body .visual-index { right: 24px; }
body .portfolio-grid > .project:not(.project-lead) .project-visual { height: 400px; min-height: 400px; }
body .section-code { width: auto; min-width: 32px; padding-inline: 6px; }
body .section-code:empty { display: none; }
body .diagram-stage, body .diagram-key { display: contents; }
body .hero-baseline { flex-wrap: wrap; }
body .hero-baseline .diagram-caption { position: static; transform: none; white-space: normal; }
body .email-link, body .contact-layout .email-link { font-size: clamp(1rem, 2vw, 1.5rem); }
body .phone-block > a { font-size: var(--text-lg); }

.icon {
  display: inline-block;
  width: 1.125em;
  height: 1.125em;
  flex: 0 0 auto;
  vertical-align: -.18em;
  overflow: visible;
}

body .button .icon, body .text-link .icon, body .project-link .icon,
body .nav-github .icon, body .footer-links .icon, body .site-footer .icon,
body .reset .icon { width: 1rem; height: 1rem; }
body .text-link { align-items: center; }
body .site-footer nav a { gap: 6px; }
body .project-link > span[aria-hidden] { display: inline-flex; }
body .row-arrow, body .list-arrow { display: inline-flex; }
body .row-arrow .icon, body .list-arrow .icon, body .back-top .icon { width: 1.5rem; height: 1.5rem; }
body .contact-action .icon { width: 2rem; height: 2rem; }
body .contact-band h2 > span { display: inline-flex; font-size: inherit; }
body .contact-band h2 .icon { width: .7em; height: .7em; }
body .section-number .icon { width: 1rem; height: 1rem; }
body .source-connector .icon { width: 1.25rem; height: 1.25rem; }
body .travel-route .icon { width: 2rem; height: 2rem; }
body .signal { display: inline-flex; align-items: center; gap: 3px; }
body .signal .icon { width: 13px; height: 9px; }
body .signal .icon-battery { width: 16px; }
body .phone-status { min-height: 31px; }
body .workspace-add .icon, body .plane .icon { width: 1em; height: 1em; }
body .booking-icons { display: inline-flex; align-items: center; }
body .booking-icons .icon { width: 1rem; height: 1rem; }
body #booking-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
body #booking-button .icon-check, body #booking-button .icon-loader,
body #booking-button[data-variant="reserving"] .icon-arrow-up-right,
body #booking-button[data-variant="confirmed"] .icon-arrow-up-right { display: none; }
body #booking-button[data-variant="reserving"] .icon-loader,
body #booking-button[data-variant="confirmed"] .icon-check { display: inline-block; }

@media (max-width: 760px) {
  body .header .nav-links a { padding-inline: 6px; }
  body .header .nav { padding-inline: 8px; gap: 6px; }
  body .header .identity { gap: 6px; }
  body .section-code { min-width: 28px; }
  body .section-top { align-items: flex-start; }
  body .engineering-caption { flex-wrap: wrap; gap: 8px; }
  body .diagram-node, body .release-canvas .diagram-node { min-height: 144px; height: auto; }
  body .physics-values { gap: 8px; }
  body .contact-action .icon { width: 1.5rem; height: 1.5rem; }
  body .exploded { height: auto; }
  body .hero-pin { position: relative; top: 0; height: auto; min-height: 0; overflow: visible; }
  body .hero-layout { height: auto; }
  body .hero-copy { position: relative; top: auto; left: auto; width: 100%; padding-top: 32px; }
  body .diagram { position: relative; top: auto; right: auto; width: 100%; height: auto; margin-top: 32px; }
  body .figure-label { position: static; margin-bottom: 24px; }
  body .diagram-stage { display: block; position: relative; height: 440px; }
  body .diagram-key { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
  body .diagram-key .annotation { position: static; width: auto; opacity: 1 !important; transform: none !important; }
  body .diagram-key .annotation::before, body .diagram-key .annotation::after { display: none; }
  body .diagram-key .annotation .eyebrow { letter-spacing: .03em; }
  body .hero-baseline { position: static; margin-top: 32px; padding-bottom: 24px; }
  body .hero-baseline .diagram-caption { flex-basis: 100%; }
  body .hero-baseline .scroll-cue { gap: 12px; }
}

@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  body .diagram-stage { height: 640px; }
}

/* pages/privacy.css */
.privacy-intro { padding-block: 64px 48px; }
.privacy-heading { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 64px; margin-top: 24px; }
.privacy-heading h1 { max-width: 680px; }
.privacy-heading .inner-lead { margin: 0; max-width: 440px; }
.privacy-date { margin-top: 22px; color: var(--muted); font: 400 var(--text-xs)/1.6 var(--font-secondary); }
.privacy-meta, .privacy-step-number { font: 500 var(--text-xs)/1.6 var(--font-secondary); letter-spacing: .045em; }
.privacy-figure { padding: 24px 32px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.privacy-figure-top { min-height: 38px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); }
.privacy-motion { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 7px 12px; border: 1px solid var(--diagram-line); border-radius: 5px; background: transparent; color: var(--ink); font-size: var(--text-sm); cursor: pointer; }
.privacy-motion:hover { background: var(--tint); }
.privacy-flow { display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr) 48px minmax(0, 1fr); align-items: start; gap: 16px; padding-block: 44px 32px; }
.privacy-flow-step { min-width: 0; }
.privacy-browser, .privacy-filter, .privacy-chart { height: 178px; position: relative; }
.privacy-browser, .privacy-chart { background: var(--paper); border: 1px solid var(--diagram-line); border-radius: 7px; box-shadow: 0 12px 24px #18232b0f; overflow: hidden; }
.privacy-browser-bar { height: 32px; border-bottom: 1px solid var(--border); padding-inline: 12px; display: flex; gap: 4px; align-items: center; }
.privacy-browser-bar i { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.privacy-browser-bar span { margin-left: auto; font: 400 var(--text-xs)/1.6 var(--font-secondary); color: var(--muted); }
.privacy-browser-body { padding: 23px 20px; }
.privacy-mini-heading { width: 62%; height: 9px; background: var(--accent-ink); border-radius: 2px; }
.privacy-mini-line { width: 80%; height: 4px; background: var(--border); margin-top: 10px; border-radius: 2px; }
.privacy-mini-line.short { width: 48%; margin-top: 12px; }
.privacy-mini-projects { display: flex; gap: 8px; margin-top: 16px; }
.privacy-mini-projects span { height: 35px; flex: 1; border-radius: 3px; background: var(--border); }
.privacy-mini-projects span:nth-child(2) { background: var(--accent); }
.privacy-mini-projects span:nth-child(3) { background: var(--secondary); }
.privacy-cursor { position: absolute; top: 96px; left: 61%; color: var(--accent-ink); filter: drop-shadow(0 2px 0 #0006); animation: privacy-cursor 6s ease-in-out infinite; }
.privacy-filter { display: grid; place-items: center; padding-bottom: 26px; }
.privacy-shield { position: relative; display: grid; place-items: center; width: 94px; height: 94px; border: 1px solid var(--diagram-line); border-radius: 50%; background: var(--surface); color: var(--accent-ink); box-shadow: 0 0 0 11px var(--tint); }
.privacy-orbit { position: absolute; width: 148px; height: 148px; top: 1px; left: calc(50% - 74px); border: 1px dashed var(--diagram-line); border-radius: 50%; animation: privacy-orbit 22s linear infinite; }
.privacy-orbit::after { content: ""; display: block; width: 7px; height: 7px; background: var(--accent-ink); border: 2px solid var(--surface); border-radius: 50%; position: absolute; top: 9px; left: 30px; }
.privacy-filter-chip { position: absolute; bottom: 0; padding: 4px 11px; background: var(--tint); border: 1px solid var(--border); border-radius: 4px; color: var(--accent-ink); font: 500 var(--text-xs)/1.6 var(--font-secondary); white-space: nowrap; }
.privacy-chart { padding: 14px 17px 10px; }
.privacy-chart-head, .privacy-chart-foot { display: flex; align-items: center; gap: 7px; color: var(--muted); font: 400 var(--text-xs)/1.6 var(--font-secondary); }
.privacy-chart-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.privacy-bars { display: flex; height: 97px; align-items: end; gap: 9px; padding-top: 15px; border-bottom: 1px solid var(--border); background: repeating-linear-gradient(to top, transparent 0, transparent 25px, var(--border) 25px, var(--border) 26px); }
.privacy-bars i { flex: 1; height: 45%; background: var(--accent); border-radius: 3px 3px 0 0; transform-origin: bottom; animation: privacy-bar 6s ease-in-out infinite; }
.privacy-bars i:nth-child(2) { height: 62%; animation-delay: -.5s; }
.privacy-bars i:nth-child(3) { height: 48%; animation-delay: -1s; }
.privacy-bars i:nth-child(4) { height: 83%; background: var(--accent-ink); animation-delay: -1.5s; }
.privacy-bars i:nth-child(5) { height: 66%; animation-delay: -2s; }
.privacy-bars i:nth-child(6) { height: 90%; background: var(--secondary-on-dark); animation-delay: -2.5s; }
.privacy-bars i:nth-child(7) { height: 73%; animation-delay: -3s; }
.privacy-chart-foot { justify-content: space-between; margin-top: 6px; }
.privacy-step-number { color: var(--muted); margin-top: 30px; }
.privacy-step-title { font-size: var(--text-lg); line-height: 1.4; margin-top: 6px; letter-spacing: -.015em; }
.privacy-step-description { font-size: var(--text-sm); line-height: 1.7; color: var(--muted); margin-top: 7px; }
.privacy-connector { position: relative; height: 32px; margin-top: 74px; display: flex; align-items: center; justify-content: end; color: var(--muted); }
.privacy-connector::before { content: ""; position: absolute; left: -7px; right: 12px; top: 50%; border-top: 1px dashed var(--diagram-line); }
.privacy-connector span { position: absolute; width: 6px; height: 6px; top: calc(50% - 3px); left: 0; background: var(--accent-ink); border-radius: 50%; animation: privacy-signal 3s ease-in-out infinite; }
.privacy-connector:nth-of-type(4) span { animation-delay: -1.5s; }
.privacy-figure figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid var(--border); padding-top: 15px; color: var(--muted); font: 400 var(--text-xs)/1.65 var(--font-secondary); }
.privacy-figure :is(.privacy-cursor, .privacy-orbit, .privacy-bars i, .privacy-connector span) { animation-play-state: paused; }
.privacy-figure[data-running="true"] :is(.privacy-cursor, .privacy-orbit, .privacy-bars i, .privacy-connector span) { animation-play-state: running; }
.privacy-current { display: flex; align-items: start; gap: 14px; margin-top: 22px; padding: 20px 24px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); }
.privacy-current > svg { flex: 0 0 auto; margin-top: 2px; color: var(--accent-ink); }
.privacy-current .privacy-meta { margin-bottom: 5px; color: var(--muted); }
.privacy-current [data-analytics-summary] { font-size: var(--text-sm); line-height: 1.75; }
.privacy-reading { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 80px; padding-block: 72px 90px; }
.privacy-index { align-self: start; position: sticky; top: 118px; display: grid; gap: 7px; }
.privacy-index > p { color: var(--muted); margin-bottom: 15px; }
.privacy-index a { display: flex; gap: 12px; align-items: baseline; min-height: 40px; padding-block: 6px; font-size: var(--text-sm); }
.privacy-index a > span { min-width: 22px; font: 400 var(--text-xs)/1.6 var(--font-secondary); color: var(--accent-ink); }
.privacy-index a:hover { color: var(--accent-ink); text-decoration: underline; }
.privacy-sections { min-width: 0; max-width: 750px; }
.privacy-section { scroll-margin-top: 112px; }
.privacy-section + .privacy-section { border-top: 1px solid var(--border); margin-top: 42px; padding-top: 36px; }
.privacy-section > .privacy-meta { margin-bottom: 14px; color: var(--accent-ink); }
.privacy-section h2 { margin-bottom: 22px; }
.privacy-section p:not(.privacy-meta), .privacy-data-list { color: var(--muted); font-size: var(--text-base); line-height: 1.8; }
.privacy-section p + p { margin-top: 16px; }
.privacy-section a:not(.text-link) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent-ink); }
.privacy-section a:hover { color: var(--accent-ink); }
.privacy-section code { font-size: var(--text-sm); overflow-wrap: anywhere; }
.privacy-data-list { margin-block: 24px; }
.privacy-data-list > div { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 24px; padding-block: 19px; border-top: 1px solid var(--border); }
.privacy-data-list dt { color: var(--ink); font-weight: 500; }
.privacy-data-list dd { margin: 0; }
.privacy-choice { display: flex; gap: 18px; padding: 25px; margin-block: 24px; background: var(--tint); border: 1px solid var(--border); border-radius: 6px; }
.privacy-choice-icon { flex: 0 0 auto; color: var(--accent-ink); margin-top: 2px; }
.privacy-choice h3 { font-size: var(--text-xl); margin-bottom: 10px; }
.privacy-preference { display: inline-flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 46px; margin-top: 18px; padding: 10px 16px; border: 1px solid var(--accent); border-radius: 4px; background: var(--action); color: var(--on-accent); font-size: var(--text-sm); text-align: left; cursor: pointer; }
.privacy-preference:hover { background: var(--action-hover); }
.privacy-preference:disabled { cursor: default; opacity: .65; }
.privacy-preference > svg { flex: 0 0 auto; }
.privacy-section .text-link { margin-top: 25px; }
.privacy-section a { overflow-wrap: anywhere; }
.privacy-site-credit { margin-top: 36px; border-top: 1px solid var(--border); padding-top: 20px; color: var(--muted); font: 400 var(--text-xs)/1.8 var(--font-secondary); }
.privacy-site-credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.privacy-site-credit a:hover { color: var(--accent-ink); }
.footer-inner > nav { flex-wrap: wrap; gap: 8px 22px; }

@keyframes privacy-signal { 0%, 10% { transform: translateX(0); opacity: 0; } 25% { opacity: 1; } 80% { transform: translateX(24px); opacity: 1; } 100% { transform: translateX(24px); opacity: 0; } }
@keyframes privacy-bar { 0%, 100% { transform: scaleY(.85); } 50% { transform: scaleY(1); } }
@keyframes privacy-cursor { 0%, 100% { transform: translate(0, 0); } 45%, 60% { transform: translate(-24px, -12px); } }
@keyframes privacy-orbit { to { transform: rotate(360deg); } }

@media (max-width: 1000px) {
  .privacy-heading { grid-template-columns: 1fr; gap: 26px; }
  .privacy-heading .inner-lead { max-width: 630px; }
  .privacy-flow { gap: 10px; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr); }
  .privacy-browser-bar { padding-inline: 8px; }
  .privacy-browser-bar i { display: none; }
  .privacy-browser-bar span { margin: 0; }
  .privacy-chart { padding-inline: 12px; }
  .privacy-bars { gap: 5px; }
  .privacy-reading { gap: 40px; grid-template-columns: 190px minmax(0, 1fr); }
  .privacy-data-list > div { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 760px) {
  .privacy-intro { padding-block: 42px 32px; }
  .privacy-heading { gap: 24px; }
  .privacy-figure { padding: 20px; }
  .privacy-flow { grid-template-columns: 1fr; gap: 22px; padding-block: 30px; }
  .privacy-flow-step { display: grid; grid-template-columns: minmax(140px, 1fr) 1fr; gap: 0 24px; align-items: start; }
  .privacy-flow-step > :first-child { grid-row: 1 / 4; }
  .privacy-step-number { margin-top: 10px; }
  .privacy-step-title { margin-top: 5px; }
  .privacy-step-description { margin-top: 7px; }
  .privacy-connector { display: none; }
  .privacy-reading { display: block; padding-block: 40px 60px; }
  .privacy-index { position: static; grid-template-columns: 1fr 1fr; gap: 0 24px; border-bottom: 1px solid var(--border); margin-bottom: 36px; padding-bottom: 28px; }
  .privacy-index > p { grid-column: 1 / -1; margin-bottom: 10px; }
  .privacy-current { padding: 18px; }
}
@media (max-width: 480px) {
  .privacy-heading h1 { font-size: clamp(2.2rem, 9vw, 2.7rem); }
  .privacy-figure-top { gap: 10px; }
  .privacy-figure-top > .privacy-meta { max-width: 220px; }
  .privacy-flow { gap: 30px; }
  .privacy-flow-step { display: block; }
  .privacy-browser, .privacy-filter, .privacy-chart { max-width: 260px; margin-inline: auto; }
  .privacy-step-number { margin-top: 20px; }
  .privacy-step-title { font-size: var(--text-lg); }
  .privacy-step-description { max-width: 260px; }
  .privacy-index { grid-template-columns: 1fr; gap: 0; }
  .privacy-choice { display: block; padding: 20px; }
  .privacy-choice-icon { margin-bottom: 12px; }
  .privacy-preference { width: 100%; padding-inline: 12px; gap: 10px; }
}
html[data-a11y-reading] .privacy-flow { grid-template-columns: 1fr; }
html[data-a11y-reading] .privacy-flow-step { display: block; }
html[data-a11y-reading] .privacy-flow-step > :first-child { max-width: 300px; }
html[data-a11y-reading] .privacy-connector { display: none; }
html[data-a11y-reading] .privacy-heading { grid-template-columns: 1fr; }
html[data-a11y-reading] .privacy-reading { display: block; }
html[data-a11y-reading] .privacy-index { position: static; margin-bottom: 36px; }
@media (prefers-reduced-motion: reduce) {
  .privacy-figure * { animation: none !important; }
}

/* accessibility.css */
/* Shared reading preferences for the standalone homepage and inner pages. */
.accessibility-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line, var(--border));
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.accessibility-trigger svg { width: 22px; height: 22px; }
.accessibility-trigger:hover { background: var(--surface); }
.accessibility-trigger[data-customized]::after { content: ""; position: absolute; top: 5px; right: 5px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.nav-actions { display: flex; align-items: center; justify-self: end; gap: 8px; }
.mobile-menu { position: relative; }
.mobile-menu summary { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; width: 44px; height: 44px; list-style: none; cursor: pointer; border: 1px solid var(--border); border-radius: 5px; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary > span { height: 1px; width: 18px; background: var(--ink); }
.mobile-menu ul { position: absolute; top: 53px; right: 0; width: min(260px, calc(100vw - 40px)); padding: 9px; z-index: 60; background: var(--paper); border: 1px solid var(--border); border-radius: 7px; box-shadow: 0 10px 25px #18232b12; }
.mobile-menu a { display: block; min-height: 44px; padding: 11px 12px; font-size: var(--text-sm); }
.a11y-panel {
  box-sizing: border-box;
  width: min(420px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100vh - 112px);
  max-height: calc(100dvh - 112px);
  margin: 96px clamp(16px, 4.5vw, 64px) auto auto;
  padding: 24px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line, var(--border));
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  line-height: 1.5;
  box-shadow: 0 16px 64px #0003;
}
.a11y-panel::backdrop { background: #0005; }
html[data-a11y-panel-open] { overflow: hidden; }
.a11y-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
body .a11y-panel h2 { min-width: 0; margin: 0; font-size: var(--text-xl); line-height: 1.3; letter-spacing: -.025em; overflow-wrap: anywhere; }
.a11y-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line, var(--border)); border-radius: 4px; background: transparent; color: inherit; cursor: pointer; }
.a11y-close:hover, .a11y-reset:hover { background: var(--surface); }
.a11y-panel p { margin: 0; }
#a11y-description { margin: 4px 0 24px; color: var(--muted); }
.a11y-size-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-bottom: 20px; }
.a11y-size-row label, .a11y-option-title { font-weight: 500; }
.a11y-size-row select { max-width: 100%; min-height: 44px; padding: 8px 28px 8px 10px; border: 1px solid var(--line, var(--border)); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; }
.a11y-option { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; padding-block: 16px; border-top: 1px solid var(--line, var(--border)); cursor: pointer; }
.a11y-option > span { min-width: 0; }
.a11y-option-title, .a11y-hint { display: block; }
.a11y-hint { margin-top: 4px; color: var(--muted); font: 400 var(--text-xs)/1.6 var(--font-secondary); }
.a11y-option input { flex: 0 0 22px; width: 22px; height: 22px; margin: 0; accent-color: var(--accent-ink, var(--accent)); cursor: pointer; }
.a11y-option input:disabled { cursor: default; }
.a11y-footer { border-top: 1px solid var(--line, var(--border)); padding-top: 20px; }
.a11y-reset { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line, var(--border)); border-radius: 4px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.a11y-footer .a11y-hint { margin-top: 12px; }
body :is(input, select, textarea, .accessibility-trigger, .a11y-panel button):focus-visible { outline: 2px solid var(--accent-ink, var(--accent)); outline-offset: 4px; }

html[data-a11y-size="125"] { font-size: 125%; }
html[data-a11y-size="150"] { font-size: 150%; }
html[data-a11y-links] a { text-decoration-line: underline !important; text-underline-offset: .2em; text-decoration-thickness: .08em; }
html[data-a11y-spacing] :is(main p, main li, main h1, main h2, main h3, main h4, main a, main button, main figcaption, main .annotation) {
  letter-spacing: .12em !important;
  word-spacing: .16em !important;
  line-height: 1.8 !important;
}
html:is([data-a11y-spacing], [data-a11y-size="125"], [data-a11y-size="150"]) main { overflow-wrap: anywhere; }
html[data-a11y-contrast] {
  --paper: #fff; --white: #fff; --surface: #f3f5fa; --ink: #0b0f19;
  --muted: #374151; --line: #6b7280; --border: #6b7280;
  --accent: #4338ca; --accent-hover: #3730a3; --accent-ink: #3730a3;
  --action: #4338ca; --action-hover: #3730a3;
  --on-accent: #fff;
  --secondary: #3730a3; --secondary-on-dark: #3730a3; --accent-on-dark: #3730a3;
  --dark: #eef2ff; --tint: rgba(99, 102, 241, .06); --diagram-line: #64748b;
  --footer-bg: #080f1c; --footer-panel: #111b2e; --footer-ink: #fff;
  --footer-muted: #e2e8f0; --footer-accent: #c7d2fe; --footer-line: #94a3b8;
}
html[data-a11y-contrast] .site-header { background: var(--paper); }
html[data-a11y-contrast] .contact-band-copy > p { color: var(--muted); }
html[data-a11y-contrast] .code-comment { color: var(--muted); }

html[data-a11y-motion="reduce"], html[data-a11y-motion="reduce"] *, html[data-a11y-motion="reduce"] *::before, html[data-a11y-motion="reduce"] *::after {
  scroll-behavior: auto !important;
  transition: none !important;
  animation: none !important;
}
/* Keep the phone layers and their descriptions readable when motion is disabled. */
html[data-a11y-motion="reduce"] .exploded { height: auto; }
html[data-a11y-motion="reduce"] .hero-pin { position: relative; top: 0; height: 840px; min-height: 840px; }
html[data-a11y-motion="reduce"] .diagram { height: 90%; }
html[data-a11y-motion="reduce"] .layer-ui { transform: translate(-50%,-50%) translate(-46px,-152px) rotateX(38deg) rotateY(-18deg) rotateZ(14deg); }
html[data-a11y-motion="reduce"] .layer-state { transform: translate(-50%,-50%) translate(-15px,-50px) rotateX(38deg) rotateY(-18deg) rotateZ(14deg); }
html[data-a11y-motion="reduce"] .layer-network { transform: translate(-50%,-50%) translate(15px,52px) rotateX(38deg) rotateY(-18deg) rotateZ(14deg); }
html[data-a11y-motion="reduce"] .layer-data { transform: translate(-50%,-50%) translate(46px,154px) rotateX(38deg) rotateY(-18deg) rotateZ(14deg); }
html[data-a11y-motion="reduce"] .annotation { opacity: 1; }
html[data-a11y-motion="reduce"] .source-study { height: auto; }
html[data-a11y-motion="reduce"] .source-pin { position: static; }

/* Let larger and more widely spaced text grow outside the original sticky frames. */
html[data-a11y-reading] .exploded { height: auto; }
html[data-a11y-reading] .hero-pin { position: relative; top: 0; height: auto; min-height: 0; overflow: visible; }
html[data-a11y-reading] .hero-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); height: auto; gap: 48px; align-items: start; }
html[data-a11y-reading] .hero-copy { position: static; width: auto; padding-top: 48px; }
html[data-a11y-reading] .hero-description { max-width: 36rem; }
html[data-a11y-reading] .diagram { position: relative; top: auto; right: auto; width: 100%; height: auto; margin-top: 48px; }
html[data-a11y-reading] .figure-label { position: static; margin-bottom: 24px; }
html[data-a11y-reading] .diagram-stage { display: block; position: relative; height: 800px; }
html[data-a11y-reading] .diagram-key { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
html[data-a11y-reading] .diagram-key .annotation { position: static; width: auto; opacity: 1 !important; transform: none !important; }
html[data-a11y-reading] .diagram-key .annotation::before, html[data-a11y-reading] .diagram-key .annotation::after { display: none; }
html[data-a11y-reading] .hero-baseline { position: static; grid-column: 1 / -1; flex-wrap: wrap; padding-bottom: 24px; }
html[data-a11y-reading] .diagram-node, html[data-a11y-reading] .release-canvas .diagram-node { height: auto; min-height: 144px; gap: 16px; }
html[data-a11y-reading] :is(.node-heading, .engineering-heading, .engineering-caption, .code-head, .screen-head, .source-title, .state-buttons, .live-ticket, .study-controls) { flex-wrap: wrap; }
html[data-a11y-reading] .source-study { height: auto; }
html[data-a11y-reading] .source-pin { position: static; min-height: 0; }
html[data-a11y-reading] .code-window pre { white-space: pre-wrap; overflow-wrap: anywhere; }
html[data-a11y-reading] #booking-button { max-width: 100%; white-space: normal; }
html[data-a11y-reading] [data-booking-label] { min-width: 0; }

@media (max-width: 1100px) {
  html[data-a11y-reading] .hero-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  html:is([data-a11y-size="125"], [data-a11y-size="150"]) .site-nav > :is(.nav-links, .nav-github) { display: none; }
  html:is([data-a11y-size="125"], [data-a11y-size="150"]) .mobile-menu { display: block; }
}
@media (max-width: 760px) {
  .nav-actions { gap: 4px; }
  body .header .nav { inset-block: 10px; padding-block: 6px; }
  .a11y-panel { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: 16px auto; padding: 20px; }
  html[data-a11y-motion="reduce"] .hero-pin { height: auto; min-height: 0; }
  html[data-a11y-motion="reduce"] .diagram { top: auto; height: auto; }
  html[data-a11y-motion="reduce"] .diagram-stage { height: 640px; }
  html[data-a11y-motion="reduce"] .layer-ui { transform: translate(-50%,-50%) translateY(-204px) rotateX(50deg) rotateZ(-8deg); }
  html[data-a11y-motion="reduce"] .layer-state { transform: translate(-50%,-50%) translateY(-68px) rotateX(50deg) rotateZ(-8deg); }
  html[data-a11y-motion="reduce"] .layer-network { transform: translate(-50%,-50%) translateY(68px) rotateX(50deg) rotateZ(-8deg); }
  html[data-a11y-motion="reduce"] .layer-data { transform: translate(-50%,-50%) translateY(204px) rotateX(50deg) rotateZ(-8deg); }
  html[data-a11y-reading] .hero-copy { padding-top: 32px; }
  html[data-a11y-reading] .diagram { margin-top: 32px; }
  html[data-a11y-reading] .diagram-stage { height: 440px; }
  html[data-a11y-reading][data-a11y-motion="reduce"] .diagram-stage { height: 640px; }
  html:is([data-a11y-size="125"], [data-a11y-size="150"]) .header { height: 142px; }
  html:is([data-a11y-size="125"], [data-a11y-size="150"]) .header .nav { grid-template-columns: 1fr auto; align-content: center; gap: 8px; }
  html:is([data-a11y-size="125"], [data-a11y-size="150"]) .header .nav-links { grid-row: 2; grid-column: 1 / -1; justify-self: stretch; }
  html:is([data-a11y-size="125"], [data-a11y-size="150"]) .header .nav-links a { flex: 1; min-height: 40px; }
  html:is([data-a11y-size="125"], [data-a11y-size="150"]) .nav-actions { grid-row: 1; grid-column: 2; }
  html:is([data-a11y-spacing], [data-a11y-size="125"], [data-a11y-size="150"]) .intro-baseline { flex-wrap: wrap; }
  html:is([data-a11y-spacing], [data-a11y-size="125"], [data-a11y-size="150"]) :is(.engineering-heading, .physics-top, .state-buttons, .physics-help, .contact-card-row) { flex-wrap: wrap; }
  html[data-a11y-reading] .contact-main { flex-wrap: wrap; }
  html:is([data-a11y-spacing], [data-a11y-size="125"], [data-a11y-size="150"]) :is(.visual-index, .visual-note, .figure-label, .annotation) { white-space: normal; }
}
@media (max-width: 420px) {
  .header .identity-short { display: none; }
  .brand-copy > span { display: none; }
  .site-nav .brand { min-width: 0; white-space: normal; }
  .site-nav .brand-copy { min-width: 0; overflow-wrap: anywhere; line-height: 1.3; }
}
@media (max-width: 360px) {
  body .header .nav { padding-inline: 6px; gap: 4px; }
  body .header .nav-links a, body .header .nav-links a[href="#about"] { padding-inline: 1px; letter-spacing: 0; }
  .a11y-panel { padding: 16px; }
  .a11y-heading { gap: 8px; }
  html[data-a11y-reading] .site-nav .brand { gap: 6px; }
  html[data-a11y-reading] .site-nav .brand-mark { font-size: 36px; letter-spacing: -4px; }
  html[data-a11y-reading] .site-nav .brand-copy { overflow-wrap: normal; }
}
