@font-face {
  font-family: Inter;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --canvas: #101318;
  --ink: #edf1f6;
  --muted: #9ca7b6;
  --line: #35404e;
  --panel: #1b222c;
  --accent: #cde99b;
  --radius: 23px;
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
body { background: var(--canvas); color: var(--ink); font: 14px/1.55 Inter, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
h1,h2,h3,p,figure { margin: 0; }
h1,h2,h3 { line-height: 1.07; letter-spacing: -.055em; }
a { color: inherit; text-underline-offset: 4px; }
button,input,select,textarea { font: inherit; }
button { cursor: pointer; color: inherit; }
button,a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:disabled { cursor: default; opacity: .4; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
.sr-only,.bot-trap { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.viewport { height: 100vh; height: 100dvh; width: min(1800px,100%); margin: auto; padding: 0 clamp(14px,3vw,52px); display: grid; grid-template-rows: 72px minmax(0,1fr) 44px; }
.masthead,.colophon { display: flex; align-items: center; }
.masthead { gap: 24px; }
.wordmark { text-decoration: none; font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -2px; }
.wordmark span { color: var(--accent); }
.masthead-label { font-size: 10px; color: var(--muted); }
.local-time { margin-left: auto; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.status-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.colophon { justify-content: space-between; font-size: 10px; color: var(--muted); }
.privacy-control { background: none; border: 0; padding: 6px 0 6px 12px; font-size: 10px; min-height: 36px; }
.bento { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2,minmax(0,1fr)); gap: clamp(10px,1.3vw,22px); min-height: 0; }
.card { position: relative; min-width: 0; min-height: 0; border: 1px solid #ffffff08; border-radius: var(--radius); padding: clamp(20px,2vw,34px); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; isolation: isolate; transition: transform .2s; }
.card:has(.card-trigger:hover) { transform: translateY(-3px); }
.card:has(.card-trigger:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.card-trigger { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; border: 0; border-radius: inherit; background: transparent; }
.card-trigger:focus-visible { outline: none; }
.card-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.eyebrow { text-transform: uppercase; letter-spacing: .13em; font-size: 10px; font-weight: 600; line-height: 1.4; }
.arrow { font-size: 25px; line-height: 1; }
.card h2 { font-size: clamp(26px,2.8vw,43px); font-weight: 550; }
.card p:not(.eyebrow) { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 12px; }
.card-meta { font-size: 9px; opacity: .55; line-height: 1.4; margin-top: 15px; }
.hero-card { grid-column: 1; grid-row: 1/3; background: radial-gradient(ellipse at 85% 70%,#284262,transparent 65%),#192639; padding: clamp(28px,3vw,50px); }
.hero-text { position: relative; z-index: 2; }
.hero-text .eyebrow { font-size: 9px; color: #b9c9da; }
.hero-text h1 { font-size: clamp(58px,6.7vw,106px); font-weight: 550; line-height: .98; letter-spacing: -.075em; margin-top: clamp(25px,5vh,65px); }
.hero-text h1 span { color: var(--accent); }
.hero-text .hero-description { max-width: 290px; font-size: 13px; color: #b9c7d7; margin-top: 25px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; background: none; border: 0; font-size: 12px; text-decoration: underline; text-underline-offset: 5px; }
.hero-text .text-link { margin-top: 14px; font-size: 11px; }
.portrait { position: absolute; right: -10%; bottom: -3%; height: 79%; width: 89%; object-fit: contain; object-position: right bottom; z-index: 1; pointer-events: none; }
.hero-stats { display: flex; gap: 34px; position: relative; z-index: 2; margin-top: 22px; }
.hero-stats span { display: flex; flex-direction: column; font-size: 9px; color: #b9c7d7; }
.hero-stats strong { font-size: 30px; font-weight: 500; letter-spacing: -1px; color: var(--ink); }
.hero-coordinate { position: absolute; right: 18px; top: 30px; font-size: 7px; letter-spacing: 1px; writing-mode: vertical-rl; opacity: .4; }
.about-card { grid-column: 2; grid-row: 1; background: linear-gradient(140deg,#29394a,#232b36); }
.projects-card { grid-column: 3; grid-row: 1; background: #272c3a; }
.lab-card { grid-column: 2; grid-row: 2; background: radial-gradient(ellipse at 80% 20%,#39344a,transparent 80%),#25232e; }
.contact-card { grid-column: 3; grid-row: 2; background: var(--accent); color: #213023; }
.contact-card p:not(.eyebrow) { color: #45523d; }
.contact-card h2 { font-size: clamp(26px,2.7vw,44px); font-weight: 550; }
.contact-symbol { font-size: clamp(45px,7vw,100px); line-height: 1; }
.timeline-art { display: flex; flex-direction: column; gap: 20px; padding-block: 16px; opacity: .8; }
.timeline-art span { display: flex; gap: 36px; position: relative; height: 8px; align-items: center; }
.timeline-art span::before { content: ''; position: absolute; inset-inline: 0; height: 1px; background: #8aa1be55; }
.timeline-art i { display: block; width: 7px; height: 7px; border: 1px solid #adc4dd; border-radius: 50%; background: #29394a; z-index: 1; }
.timeline-art span:nth-child(2) { padding-left: 20px; }
.timeline-art span:nth-child(3) { padding-left: 65px; }
.polaroid-stack { position: relative; height: clamp(100px,16vh,190px); margin-block: 10px; }
.mini-polaroid { position: absolute; background: #ebebe4; padding: 7px 7px 18px; color: #20242b; width: 55%; aspect-ratio: 1/1.1; box-shadow: 0 8px 18px #0004; }
.mini-polaroid img { width: 100%; height: 80%; object-fit: cover; object-position: center; }
.mini-polaroid span { display: block; font-size: 8px; margin-top: 6px; letter-spacing: -.2px; }
.mini-fuelingo { left: 3%; top: 0; transform: rotate(-10deg); }
.mini-purrswap { right: 2%; top: 14px; transform: rotate(9deg); }
.lab-art { display: flex; justify-content: center; align-items: center; gap: 17px; font: 55px/1 Georgia,serif; color: #b9adce; opacity: .8; }
.lab-art i { font-size: 45px; font-style: normal; }
.detail-dialog { position: fixed; inset: 0; width: min(900px,calc(100vw - 32px)); height: min(620px,calc(100vh - 32px)); height: min(620px,calc(100dvh - 32px)); margin: auto; padding: 28px 36px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--ink); box-shadow: 0 30px 140px #0008; overflow: hidden; }
.detail-dialog[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; gap: 16px; animation: reveal .18s ease-out; }
.detail-dialog::backdrop { background: #070c14b8; backdrop-filter: blur(10px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; }
.dialog-heading h2 { font-size: 28px; font-weight: 500; margin-top: 8px; }
.dialog-heading .eyebrow { color: var(--muted); font-size: 9px; }
.dialog-label { font-size: 12px !important; font-weight: 500; letter-spacing: .02em; }
.close-dialog { border: 0; background: none; }
.dialog-heading .close-dialog { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; margin-right: -8px; font-size: 30px; line-height: 1; border-radius: 50%; }
.dialog-heading .close-dialog:hover { background: #ffffff0a; }
.dialog-slides { min-height: 0; display: flex; align-items: center; }
.panel-slide { width: 100%; min-width: 0; }
.panel-slide h2,.panel-slide h3,.consent-content h2 { font-size: clamp(28px,3.6vw,43px); font-weight: 500; margin: 14px 0 22px; line-height: 1.08; }
.panel-slide>p:not(.eyebrow),.project-copy>p:not(.eyebrow) { font-size: 15px; line-height: 1.7; color: var(--muted); }
.panel-slide .organization { color: var(--ink) !important; margin-bottom: 20px; font-size: 13px !important; font-weight: 500; }
.preserve-lines { white-space: pre-line; }
.dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 10px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; min-height: 54px; }
.pagination button,.timeline-controls button { border: 0; background: transparent; padding: 9px 0; min-height: 40px; min-width: 62px; font-size: 11px; }
.page-count { font-variant-numeric: tabular-nums; }
.timeline-dialog { width: min(1260px,calc(100vw - 28px)); height: min(800px,calc(100dvh - 28px)); }
.timeline-dialog[open] { grid-template-rows: auto auto minmax(0,1fr) auto; }
.timeline-intro { max-width: 850px; color: var(--muted); font-size: 12px; }
.timeline-board { display: grid; grid-template-columns: 120px minmax(0,1fr); min-height: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.lane-labels { display: grid; grid-template-rows: 34px repeat(3,minmax(0,1fr)); border-right: 1px solid var(--line); background: #202936; z-index: 2; }
.axis-label { padding: 9px 14px; color: var(--muted); font-size: 10px; border-bottom: 1px solid var(--line); }
.lane-label { padding: 33px 14px 0; border-bottom: 1px solid var(--line); min-height: 0; }
.lane-label strong { font-size: 12px; font-weight: 550; }
.lane-label small { display: block; color: var(--muted); font-size: 9px; margin-top: 8px; }
.timeline-scroll { overflow-x: auto; overflow-y: hidden; min-width: 0; min-height: 0; overscroll-behavior: contain; scrollbar-color: #627087 #202731; scrollbar-width: thin; }
.timeline-canvas { position: relative; display: grid; grid-template-rows: 34px repeat(3,minmax(0,1fr)); height: 100%; width: max-content; }
.timeline-ruler,.timeline-row { display: flex; width: max-content; min-height: 0; }
.year-cell { flex: 0 0 180px; width: 180px; position: relative; border-right: 1px solid #ffffff06; }
.timeline-ruler .year-cell { border-bottom: 1px solid var(--line); font-size: 10px; color: var(--muted); padding: 9px 12px; }
.timeline-row .year-cell { border-bottom: 1px solid #ffffff08; }
.timeline-row .year-cell::before { content: ''; position: absolute; left: 0; right: 0; top: 25px; height: 1px; background: #788ba04a; }
.milestone { position: absolute; inset: 11px 10px auto 12px; padding: 25px 0 0; border: 0; background: transparent; text-align: left; width: 155px; }
.milestone i { position: absolute; left: 0; top: 9px; width: 11px; height: 11px; border: 2px solid #a7cbe5; border-radius: 50%; background: var(--panel); transition: background .15s,transform .15s; }
.milestone:hover i,.milestone:focus-visible i { background: #a7cbe5; transform: scale(1.3); }
.milestone strong { display: block; font-size: 12px; font-weight: 500; line-height: 1.35; }
.milestone small { display: block; margin-top: 7px; font-size: 9px; color: var(--muted); line-height: 1.4; }
.lane-education .milestone i { border-color: #c5c59d; }
.lane-recognition .milestone i { border-color: #baa9d8; }
.recognition-empty { position: absolute; left: 18px; top: calc(75% + 18px); font-size: 11px; color: var(--muted); }
.timeline-controls small { display: block; font-size: 9px; margin-top: 3px; }
.timeline-controls>div { display: flex; gap: 10px; }
.timeline-controls button { font-size: 20px; min-width: 42px; border: 1px solid var(--line); border-radius: 8px; padding: 4px; }
.event-photo { height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.event-photo img { width: 100%; height: calc(100% - 40px); object-fit: contain; border-radius: 8px; }
.event-photo figcaption { font-size: 10px; color: var(--muted); text-align: center; }
.project-detail { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 45px; }
.project-polaroid { background: #e9e9e3; color: #242a30; text-decoration: none; padding: 12px 12px 20px; transform: rotate(-3deg); border-radius: 2px; box-shadow: 0 12px 25px #0004; transition: transform .2s; }
.project-polaroid:hover { transform: rotate(0); }
.project-polaroid img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #d9ddda; }
.project-polaroid>span { display: flex; justify-content: space-between; align-items: center; padding: 15px 5px 0; font-size: 13px; }
.project-polaroid b { font-weight: 600; }
.project-polaroid i { font-style: normal; font-size: 20px; }
.project-copy h3 { font-size: 40px; margin: 10px 0 18px; }
.project-copy>p:not(.eyebrow) { font-size: 13px; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 24px; }
.chips li { border: 1px solid var(--line); border-radius: 20px; font-size: 9px; padding: 4px 9px; }
.action-button { display: inline-flex; align-items: center; justify-content: center; padding: 11px 18px; min-height: 44px; border: 1px solid var(--accent); border-radius: 8px; background: var(--accent); color: #233124; text-decoration: none; font-size: 12px; font-weight: 600; }
.action-button.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.lab-empty .big-asterisk { font-size: 65px; line-height: 1; color: #b8adce; }
.empty-label { display: inline-block; margin-top: 22px; font-size: 11px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 20px; color: var(--muted); }
.note-preview .action-button { margin-top: 25px; }
.contact-dialog { width: min(710px,calc(100vw - 28px)); }
#contact-form { min-height: 0; align-self: center; width: 100%; position: relative; }
.contact-step label { display: block; font-size: 11px; color: #c6ced9; margin-bottom: 16px; }
.contact-step input,.contact-step select,.contact-step textarea { display: block; width: 100%; border: 1px solid #445163; background: #131b26; color: var(--ink); border-radius: 7px; padding: 11px 12px; margin-top: 7px; min-height: 44px; font-size: 13px; }
.contact-step textarea { resize: none; height: clamp(110px,20vh,180px); }
.contact-step [aria-invalid='true'] { border-color: #f8aa9b; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-intro { margin-bottom: 22px; color: var(--muted); font-size: 13px; }
.contact-step-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; gap: 16px; }
.contact-step-actions>span { font-size: 11px; color: var(--muted); }
.form-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 9px; color: var(--muted); margin-top: -8px; }
.form-privacy { font-size: 10px; color: var(--muted); margin-top: 16px; }
.inline-link { border: 0; background: none; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.form-status { margin-top: 12px; color: #edbbab; font-size: 12px; }
.form-status:empty { display: none; }
.form-status.is-success { font-size: 25px; color: var(--accent); line-height: 1.4; padding: 35px 0; }
.email-link { font-size: 11px; text-decoration: none; }
.consent-dialog { width: min(620px,calc(100vw - 28px)); height: min(585px,calc(100dvh - 28px)); }
.consent-content { min-height: 0; }
.consent-content h2 { font-size: 34px; margin: 8px 0 16px; }
.consent-content>p { color: var(--muted); font-size: 12px; line-height: 1.65; }
.consent-setting { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding: 15px 0; font-size: 12px; }
.consent-setting:first-of-type { margin-top: 20px; }
.consent-setting small { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }
.always-on { font-size: 10px; white-space: nowrap; color: var(--muted); }
.consent-setting input { appearance: none; width: 42px; height: 25px; border: 1px solid var(--muted); background: var(--line); border-radius: 20px; position: relative; flex-shrink: 0; cursor: pointer; }
.consent-setting input::after { content: ''; position: absolute; left: 3px; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: var(--muted); }
.consent-setting input:checked { background: var(--accent); }
.consent-setting input:checked::after { left: 20px; background: #233124; }
.signal-note { font-size: 10px !important; }
.consent-actions { display: flex; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.consent-actions button { flex: 1; }
.consent-banner { position: fixed; bottom: 24px; left: 24px; width: min(410px,calc(100vw - 32px)); border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 16px; padding: 20px; box-shadow: 0 15px 70px #0005; z-index: 10; }
.consent-banner h2 { font-size: 16px; font-weight: 500; }
.consent-banner p { margin-top: 8px; font-size: 12px; color: var(--muted); }
.banner-actions { display: flex; gap: 7px; margin-top: 16px; }
.banner-actions button { flex: 1; min-height: 44px; padding: 10px 8px; border: 1px solid var(--line); border-radius: 7px; background: transparent; font-size: 10px; white-space: nowrap; }
.banner-actions .accept-button { background: var(--accent); color: #233124; border-color: var(--accent); }
.noscript-notice { position: fixed; bottom: 20px; inset-inline: 20px; padding: 16px; background: var(--panel); border: 1px solid var(--line); font-size: 12px; }
.error-screen { height: 100dvh; max-width: 750px; margin: auto; padding: 30px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; }
.error-screen h1 { font-size: clamp(36px,6vw,65px); font-weight: 500; }
.standalone { height: 100dvh; max-width: 1100px; margin: auto; padding: 30px; display: grid; grid-template-rows: auto minmax(0,1fr) auto; gap: 25px; }
.standalone .project-detail { align-self: center; }
.standalone-header { display: flex; align-items: center; justify-content: space-between; }
.reader-content { min-height: 0; overflow-y: auto; padding-right: 20px; max-width: 760px; line-height: 1.85; }
.reader-content h1 { font-size: 38px; margin: 15px 0 25px; }
.reader-content h2 { font-size: 24px; margin: 30px 0 16px; }
.reader-content p { color: var(--muted); margin-bottom: 18px; }
.reader-content img { max-height: 380px; object-fit: contain; }
@keyframes reveal { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1100px) {
  .viewport { grid-template-rows: 60px minmax(0,1fr) 40px; padding-inline: 20px; }
  .card { padding: 22px; }
  .hero-card { padding: 32px; }
  .hero-text h1 { font-size: 67px; }
  .hero-text .hero-description { max-width: 245px; font-size: 12px; }
  .card h2 { font-size: 29px; }
  .card-meta { font-size: 8px; }
  .eyebrow { font-size: 8px; }
  .mini-polaroid { width: 60%; }
  .timeline-art span { gap: 28px; }
}
@media (max-width: 900px) and (min-height: 561px) {
  .bento { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: 1.4fr 1fr 1fr; gap: 12px; }
  .hero-card { grid-column: 1/3; grid-row: 1; padding: 25px 30px; }
  .about-card { grid-column: 1; grid-row: 2; }
  .projects-card { grid-column: 2; grid-row: 2; }
  .lab-card { grid-column: 1; grid-row: 3; }
  .contact-card { grid-column: 2; grid-row: 3; }
  .hero-text { width: 62%; }
  .hero-text h1 { font-size: clamp(44px,7.5vw,62px); margin-top: 17px; }
  .hero-text .hero-description { margin-top: 14px; max-width: 280px; }
  .hero-text .text-link { min-height: 32px; margin-top: 4px; }
  .portrait { height: 115%; width: 48%; right: 0; bottom: -5%; }
  .hero-stats { display: none; }
  .hero-coordinate { right: 14px; font-size: 6px; }
  .timeline-art { gap: 12px; padding: 5px 0; }
  .polaroid-stack { position: absolute; right: 16px; top: 45px; width: 48%; height: 110px; opacity: .8; z-index: -1; }
  .mini-polaroid { width: 70%; }
  .projects-card>div:has(h2) { margin-top: auto; }
  .lab-art { position: absolute; right: 20px; top: 50px; font-size: 35px; opacity: .4; z-index: -1; }
  .lab-art i { font-size: 30px; }
  .contact-symbol { position: absolute; right: 20px; top: 43px; font-size: 58px; opacity: .4; }
  .card-meta { display: none; }
  .contact-card h2 { font-size: 31px; }
}
@media (max-width: 540px) {
  .viewport { grid-template-rows: 48px minmax(0,1fr) 34px; padding-inline: 12px; }
  .masthead { gap: 12px; }
  .masthead-label { font-size: 7px; max-width: 115px; }
  .wordmark { font-size: 25px; }
  .local-time { font-size: 8px; gap: 5px; }
  .bento { gap: 9px; grid-template-rows: 1.4fr 1fr 1fr; }
  .card { border-radius: 18px; padding: 16px; }
  .card .eyebrow { font-size: 7px; }
  .card h2 { font-size: 25px; }
  .card p:not(.eyebrow) { font-size: 10px; margin-top: 7px; }
  .card .arrow { font-size: 19px; }
  .hero-card { padding: 21px; }
  .hero-text { width: 65%; }
  .hero-text h1 { font-size: 45px; margin-top: 15px; }
  .hero-text .eyebrow { font-size: 6px; }
  .hero-text .hero-description { max-width: 200px; font-size: 9px; margin-top: 12px; }
  .hero-text .text-link { font-size: 8px; min-height: 30px; }
  .portrait { height: 100%; width: 49%; }
  .timeline-art { gap: 9px; padding-block: 5px; }
  .timeline-art span { gap: 24px; }
  .timeline-art span:nth-child(3) { padding-left: 35px; }
  .timeline-art i { width: 5px; height: 5px; }
  .polaroid-stack { width: 60%; right: 12px; top: 44px; }
  .mini-polaroid { padding: 5px 5px 12px; }
  .mini-polaroid span { font-size: 6px; margin-top: 3px; }
  .lab-art { top: 40px; right: 12px; gap: 10px; font-size: 30px; }
  .lab-art i { font-size: 25px; }
  .contact-card h2 { font-size: 26px; }
  .contact-symbol { font-size: 45px; top: 40px; right: 10px; }
  .colophon,.privacy-control { font-size: 8px; }
  .detail-dialog { width: calc(100vw - 20px); height: min(630px,calc(100dvh - 20px)); padding: 17px 21px 10px; border-radius: 18px; }
  .detail-dialog[open] { gap: 12px; }
  .dialog-heading h2 { font-size: 24px; }
  .dialog-heading .eyebrow { font-size: 8px; }
  .panel-slide h2,.panel-slide h3 { font-size: 31px; margin-block: 12px 18px; }
  .panel-slide>p:not(.eyebrow) { font-size: 13px; line-height: 1.65; }
  .dialog-footer { font-size: 9px; gap: 10px; }
  .timeline-dialog { height: calc(100dvh - 20px); padding-inline: 13px; }
  .timeline-board { grid-template-columns: 82px minmax(0,1fr); }
  .timeline-intro { font-size: 10px; }
  .lane-label { padding: 29px 8px 0; }
  .lane-label strong { font-size: 9px; }
  .lane-label small { font-size: 7px; margin-top: 6px; }
  .axis-label { padding-left: 8px; font-size: 8px; }
  .timeline-controls>span { font-size: 9px; }
  .timeline-controls small { font-size: 7px; }
  .timeline-controls button { min-width: 36px; }
  .project-detail { grid-template-columns: 1fr; gap: 20px; }
  .project-polaroid { width: 150px; justify-self: center; padding: 6px 6px 10px; }
  .project-polaroid>span { font-size: 9px; padding-top: 6px; }
  .project-polaroid img { max-height: 125px; }
  .project-copy h3 { font-size: 30px; margin-block: 7px 12px; }
  .project-copy .eyebrow { font-size: 9px; }
  .project-copy>p:not(.eyebrow) { font-size: 12px; line-height: 1.6; }
  .chips { margin: 12px 0 16px; }
  .chips li { font-size: 8px; padding: 3px 7px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-intro { font-size: 12px; margin-bottom: 16px; }
  .contact-step label { margin-bottom: 13px; font-size: 10px; }
  .contact-step input,.contact-step select { padding: 9px 10px; font-size: 12px; min-height: 42px; margin-top: 5px; }
  .contact-step textarea { height: 150px; font-size: 12px; }
  .form-meta { font-size: 8px; }
  .form-privacy { font-size: 9px; }
  .contact-step-actions { margin-top: 15px; }
  .email-link { font-size: 10px; }
  .consent-content h2 { font-size: 28px; margin: 0 0 14px; }
  .consent-content>p { font-size: 11px; }
  .consent-setting { padding-block: 13px; }
  .consent-setting:first-of-type { margin-top: 14px; }
  .consent-setting small { font-size: 9px; }
  .consent-banner { left: 16px; bottom: 16px; padding: 18px; }
  .banner-actions button { font-size: 9px; }
  .standalone { padding: 18px; gap: 18px; }
}
@media (max-height: 700px) {
  .hero-text h1 { margin-top: 23px; }
  .hero-text .hero-description { margin-top: 15px; }
  .card-meta { display: none; }
  .panel-slide h2,.panel-slide h3 { font-size: 29px; margin-block: 9px 14px; }
  .panel-slide>p:not(.eyebrow) { font-size: 13px; line-height: 1.6; }
  .project-polaroid { max-width: 220px; }
  .project-copy>p:not(.eyebrow) { font-size: 12px; }
}
@media (max-height: 650px) and (max-width: 540px) {
  .hero-text h1 { font-size: 38px; margin-top: 11px; }
  .hero-text .hero-description { font-size: 8px; margin-top: 8px; }
  .hero-text .text-link { font-size: 7px; min-height: 25px; margin-top: 0; }
  .card { padding: 13px; }
  .card h2,.contact-card h2 { font-size: 23px; }
  .card p:not(.eyebrow) { font-size: 9px; }
  .timeline-art { gap: 7px; }
  .polaroid-stack { height: 60px; width: 45%; top: 32px; opacity: .5; }
  .lab-art { opacity: .25; top: 30px; }
  .contact-symbol { font-size: 30px; top: 28px; }
  .detail-dialog { height: calc(100dvh - 16px); padding: 12px 18px 8px; }
  .dialog-heading h2 { font-size: 22px; }
  .project-detail { grid-template-columns: 100px minmax(0,1fr); gap: 18px; }
  .project-polaroid { width: 100%; }
  .project-polaroid>span { font-size: 7px; }
  .project-copy h3 { font-size: 27px; }
  .project-copy>p:not(.eyebrow) { font-size: 11px; }
  .project-copy .chips { display: none; }
  .project-copy .action-button { font-size: 10px; padding-inline: 12px; margin-top: 15px; }
  .panel-slide h2,.panel-slide h3 { font-size: 27px; }
  .panel-slide>p:not(.eyebrow) { font-size: 12px; line-height: 1.6; }
  .timeline-dialog[open] { gap: 9px; }
  .milestone small { display: none; }
  .milestone strong { font-size: 11px; }
  .form-intro { margin-bottom: 12px; }
  .contact-step input,.contact-step select { min-height: 38px; }
  .contact-step textarea { height: 120px; }
  .contact-step-actions { margin-top: 10px; }
  .consent-content h2 { font-size: 26px; }
  .consent-content>p { font-size: 10px; }
  .consent-setting { padding-block: 10px; }
}
@media (max-height: 560px) {
  .viewport { grid-template-rows: 42px minmax(0,1fr) 30px; padding-inline: 12px; }
  .card { padding: 14px; border-radius: 15px; }
  .hero-card { padding: 22px; }
  .hero-text h1 { font-size: clamp(33px,5vw,52px); margin-top: 15px; }
  .hero-text .eyebrow { font-size: 6px; }
  .hero-text .hero-description { max-width: 210px; font-size: 10px; }
  .hero-stats { display: none; }
  .portrait { height: 80%; }
  .card h2,.contact-card h2 { font-size: 23px; }
  .card p:not(.eyebrow) { font-size: 9px; }
  .timeline-art,.polaroid-stack,.lab-art,.contact-symbol { display: none; }
  .card .eyebrow { font-size: 6px; }
  .card .arrow { font-size: 16px; }
  .masthead-label,.local-time,.colophon,.privacy-control { font-size: 8px; }
  .wordmark { font-size: 23px; }
  .detail-dialog { height: calc(100dvh - 14px); padding: 9px 22px; }
  .detail-dialog[open] { gap: 6px; }
  .dialog-heading { min-height: 36px; }
  .dialog-heading .close-dialog { height: 36px; width: 36px; }
  .dialog-heading h2 { font-size: 22px; margin-top: 4px; }
  .dialog-heading .eyebrow { font-size: 7px; }
  .dialog-footer { min-height: 40px; padding-top: 4px; }
  .pagination button { min-height: 34px; }
  .panel-slide h2,.panel-slide h3 { font-size: 25px; margin-block: 8px 12px; }
  .panel-slide>p:not(.eyebrow) { font-size: 12px; line-height: 1.5; }
  .panel-slide .organization { margin-bottom: 10px; }
  .timeline-intro { font-size: 9px; }
  .lane-label { padding-top: 23px; }
  .lane-label small,.milestone small { display: none; }
  .milestone { padding-top: 20px; top: 8px; }
  .milestone strong { font-size: 10px; }
  .milestone i { top: 7px; }
  .timeline-row .year-cell::before { top: 20px; }
  .project-detail { grid-template-columns: 1fr 1.2fr; gap: 24px; }
  .project-polaroid { max-width: 155px; justify-self: center; padding: 6px 6px 12px; }
  .project-polaroid>span { font-size: 9px; padding-top: 8px; }
  .project-copy h3 { font-size: 27px; }
  .project-copy>p:not(.eyebrow) { font-size: 11px; line-height: 1.5; }
  .project-copy .chips { margin-block: 10px; }
  .form-intro { font-size: 10px; margin-bottom: 12px; }
  .contact-step label { margin-bottom: 10px; font-size: 9px; }
  .contact-step input,.contact-step select { min-height: 36px; padding-block: 7px; margin-top: 4px; }
  .contact-step textarea { height: 95px; }
  .contact-step-actions { margin-top: 9px; }
  .contact-step-actions .action-button { min-height: 36px; padding-block: 8px; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .form-meta { font-size: 8px; }
  .form-privacy { font-size: 9px; margin-top: 10px; }
  .form-status { font-size: 10px; }
  .consent-dialog { width: min(790px,calc(100vw - 20px)); }
  .consent-content h2 { font-size: 25px; margin: 0 0 8px; }
  .consent-content>p { font-size: 10px; }
  .consent-setting { padding-block: 6px; font-size: 10px; }
  .consent-setting:first-of-type { margin-top: 8px; }
  .consent-setting small { font-size: 8px; }
  .consent-actions { padding-top: 8px; }
  .consent-content .text-link { min-height: 28px; font-size: 10px; }
}
@media (max-height: 560px) and (max-width: 540px) {
  .masthead-label { display: none; }
  .bento { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: 1.2fr 1fr 1fr; gap: 8px; }
  .hero-card { grid-column: 1/3; grid-row: 1; padding: 14px 18px; }
  .about-card { grid-column: 1; grid-row: 2; }
  .projects-card { grid-column: 2; grid-row: 2; }
  .lab-card { grid-column: 1; grid-row: 3; }
  .contact-card { grid-column: 2; grid-row: 3; }
  .hero-text h1 { font-size: 34px; margin-top: 8px; }
  .hero-text .hero-description,.hero-text .text-link { display: none; }
  .portrait { height: 110%; width: 50%; right: 0; bottom: -6%; }
  .hero-coordinate { display: none; }
  .card p:not(.eyebrow) { font-size: 8px; }
  .contact-card h2 { font-size: 23px; }
  .timeline-dialog { padding-inline: 10px; }
  .timeline-intro { display: none; }
  .timeline-dialog[open] { grid-template-rows: auto minmax(0,1fr) auto; }
  .timeline-board { grid-template-columns: 73px minmax(0,1fr); }
  .lane-label { padding-inline: 7px; }
  .lane-label strong { font-size: 8px; }
  .timeline-controls>span { font-size: 8px; }
  .timeline-controls small { font-size: 6px; }
  .project-detail { grid-template-columns: 85px minmax(0,1fr); gap: 15px; }
  .project-copy h3 { font-size: 26px; }
  .project-polaroid>span { font-size: 6px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-step label { margin-bottom: 8px; }
  .contact-step input,.contact-step select { font-size: 11px; }
  .consent-content h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .detail-dialog::backdrop { backdrop-filter: none; }
}
@media (forced-colors: active) { .card,.detail-dialog,.consent-banner { border: 1px solid CanvasText; } }
@media print {
  @page { margin: 18mm; }
  html,body { height: auto; overflow: visible; background: white; color: #111; }
  .viewport,.consent-banner,.detail-dialog:not(.printable),.close-dialog,.dialog-footer { display: none !important; }
  .printable { display: block !important; position: static; width: 100%; height: auto; margin: 0; padding: 0; border: 0; box-shadow: none; color: #111; background: white; overflow: visible; }
  .printable .panel-slide,.printable .panel-slide[hidden] { display: block !important; margin-bottom: 20px; break-inside: avoid; }
  .printable .event-photo { display: none !important; }
  .printable .panel-slide h2 { font-size: 15pt; }
  .printable .panel-slide p { color: #333 !important; font-size: 10pt; }
}
@media (min-width: 901px) {
  .mini-polaroid { height: calc(100% - 24px); width: auto; aspect-ratio: 1 / 1.1; }
  .mini-polaroid img { height: auto; aspect-ratio: 1; object-fit: cover; }
}
@media (max-height: 560px) {
  .milestone { top: 2px; padding-top: 17px; }
  .milestone i { top: 5px; }
  .milestone strong { font-size: 9px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .timeline-row .year-cell::before { top: 12px; }
  .lane-label { padding-top: 15px; }
}
@media (min-width: 901px) and (min-height: 561px) {
  .project-polaroid { max-width: 320px; width: 100%; justify-self: center; }
}
@media (max-width: 540px) and (max-height: 560px) {
  .project-detail { grid-template-columns: 1fr; }
  .project-polaroid { display: none; }
}
.project-badge { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 6px; flex-shrink: 0; }
.project-badge svg { width: 17px; height: 17px; }
.badge-fuelingo { background: #ad2531; color: white; }
.badge-cat { background: #b7a2d0; color: #302340; }
.project-polaroid b { display: flex; align-items: center; gap: 8px; }
.mini-polaroid>span { display: flex; align-items: center; gap: 4px; }
.mini-polaroid .project-badge { width: 12px; height: 12px; border-radius: 3px; }
.mini-polaroid .project-badge svg { width: 9px; height: 9px; }
@media (max-width: 540px) { .project-polaroid .project-badge { width: 16px; height: 16px; border-radius: 4px; } .project-polaroid .project-badge svg { width: 12px; height: 12px; } .project-polaroid b { gap: 4px; } }
