@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');

:root {
  color-scheme: light;
  --paper: #f7f8f4; --surface: #fff; --soft: #ecefe7; --ink: #202a24;
  --muted: #636d65; --line: #d9dfd5; --accent: #3e634a; --accent-soft: #e3ecdf;
  --header: rgba(247,248,244,.96);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', 'Segoe UI', sans-serif;
  --display: 'Manrope', 'Segoe UI', sans-serif;
  /* Shared with the standalone bill of materials */
  --bg-color: var(--paper); --text-color: var(--ink); --light-bg: var(--surface); --border-color: var(--line); --shadow-sm: none;
}
[data-theme='dark'] {
  color-scheme: dark;
  --paper: #18201b; --surface: #202a23; --soft: #29352c; --ink: #edf1e8;
  --muted: #aab7ab; --line: #3b493d; --accent: #b0d29c; --accent-soft: #2e422f;
  --header: rgba(24,32,27,.96);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow: hidden; }
button, a, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: var(--accent-soft); color: var(--ink); }
img, video { max-width: 100%; display: block; }
svg { flex-shrink: 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; font-weight: 650; }
.container { width: min(1160px, calc(100% - 112px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 12px 20px; background: var(--surface); }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--header); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.header-inner { min-height: 88px; display: flex; align-items: center; gap: 48px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 750 15px var(--display); white-space: nowrap; letter-spacing: -.35px; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; background: var(--ink); color: var(--paper); border-radius: 50%; font-size: 12px; letter-spacing: -1px; }
.site-nav { display: flex; gap: 30px; margin-left: auto; align-self: stretch; align-items: center; }
.site-nav a { font-size: 14px; color: var(--muted); text-decoration: none; position: relative; padding-block: 10px; }
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--ink); }
.site-nav a[aria-current='page']::after { content: ''; position: absolute; bottom: 2px; left: 0; width: 18px; height: 2px; background: var(--accent); }
.header-tools { display: flex; align-items: center; gap: 18px; }
.language-switcher { display: flex; align-items: center; gap: 2px; }
.lang-btn { border: 0; background: transparent; padding: 8px 6px; font-size: 11px; font-weight: 600; color: var(--muted); min-height: 40px; }
.lang-btn.active { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.language-switcher span { color: var(--line); font-size: 12px; }
.theme-toggle { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; color: var(--muted); }
.theme-toggle:hover { background: var(--soft); color: var(--ink); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .sun-icon, [data-theme='dark'] .theme-toggle .moon-icon { display: none; }
[data-theme='dark'] .theme-toggle .sun-icon { display: block; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 25px; min-height: 48px; padding: 12px 21px; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); text-decoration: none; font-size: 13px; font-weight: 500; border-radius: 3px; }
.button:hover { background: var(--accent); border-color: var(--accent); }
.arrow { font-size: 19px; line-height: 1; }
.text-link { display: inline-block; font-size: 14px; text-decoration: none; }
.text-link:hover { color: var(--accent); }
.work-section { padding-block: 8px 70px; }
:where(.projects-page) .container { width: min(1440px, calc(100% - 112px)); }
.portfolio-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; align-items: start; gap: 28px; }
.portfolio-layout > .projects-grid { grid-column: 1; grid-row: 1; }
.ongoing-project { position: relative; grid-column: 2; grid-row: 1; min-width: 0; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 4px; background: var(--accent-soft); overflow: hidden; }
.ongoing-header { padding: 18px 22px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.project-status { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 650; color: var(--accent); }
.project-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ongoing-project .project-media img { height: auto; aspect-ratio: 1200 / 725; object-fit: contain; }
.stage-gallery { position: relative; z-index: 1; min-width: 0; background: var(--surface); }
.stage-gallery-featured { display: block; text-decoration: none; }
.stage-gallery-featured > img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; background: #fff; }
.stage-gallery-featured:focus-visible { outline-offset: -3px; }
.ongoing-content { padding: 24px 22px 20px; }
.ongoing-content h2 { font-size: 25px; line-height: 1.3; letter-spacing: -.7px; margin-bottom: 12px; }
.ongoing-stack { font-size: 11px; line-height: 1.8; color: var(--muted); margin: 14px 0 20px; }
.ongoing-milestone { padding: 16px 0; border-block: 1px solid var(--line); }
.ongoing-milestone h3 { font: 650 13px/1.5 var(--sans); color: var(--accent); margin-bottom: 6px; }
.ongoing-milestone p { font-size: 12px; line-height: 1.8; color: var(--muted); margin: 0; }
.ongoing-next { margin: 16px 0 20px; font-size: 12px; line-height: 1.7; }
.ongoing-next span, .ongoing-next strong { display: block; }
.ongoing-next span { font-size: 11px; color: var(--muted); }
.ongoing-next strong { font-weight: 550; }
.ongoing-actions { display: flex; align-items: center; gap: 20px; border-top: 1px solid var(--line); padding-top: 12px; }
.ongoing-link { display: flex; flex: 1; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; font-size: 13px; text-decoration: none; }
.ongoing-link::after { content: ''; position: absolute; inset: 0; }
.ongoing-link:focus-visible { outline: none; }
.ongoing-link:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -4px; }
.ongoing-github { position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; text-decoration: none; }
.ongoing-link:hover, .ongoing-github:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.projects-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 24px; }
.project-card { min-width: 0; grid-column: span 2; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.project-card.featured { grid-column: span 3; }
.project-overview { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.project-overview:hover h2 { text-decoration: underline; text-underline-offset: 4px; }
.project-overview:focus-visible { outline-offset: -4px; }
.project-media { overflow: hidden; background: var(--soft); }
.project-media img { width: 100%; height: 240px; object-fit: cover; }
.car-image { object-position: center 53%; }
.drone-image { object-position: center 72%; }
.project-content { padding: 24px; }
.project-card h2 { font-size: 21px; letter-spacing: -.5px; line-height: 1.4; margin: 0 0 12px; overflow-wrap: anywhere; }
.project-card.featured h2 { font-size: 24px; }
.project-summary { font-size: 14px; line-height: 1.8; color: var(--muted); margin-bottom: 0; }
.project-flight-profile { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 15px; font-size: 12px; line-height: 1.65; }
.project-flight-profile p { margin-bottom: 0; }
.project-flight-profile .project-flight-hours { margin-bottom: 9px; }
.project-flight-hours strong { display: block; color: var(--accent); font-size: 14px; font-weight: 600; }
.project-flight-hours span { display: block; color: var(--muted); }
#dialog-flight-profile .project-flight-profile { margin: 0 0 20px; padding: 0; border: 0; }
.project-media.preview-media { background: #fff; }
.project-media.preview-media img { height: 160px; object-fit: contain; }
summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font: 400 24px/1 var(--sans); color: var(--muted); flex-shrink: 0; }
details[open] > summary::after { content: '−'; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 25px; padding-block: 31px; font-size: 13px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 25px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.page-intro { padding-block: 64px 40px; }
.page-intro h1 { font-size: clamp(40px,4.5vw,56px); letter-spacing: -2px; margin-bottom: 21px; }
.projects-intro { padding-block: 49px 29px; }
.projects-intro h1 { margin: 0; font-size: 44px; }
.page-intro > p { color: var(--muted); max-width: 650px; font-size: 16px; margin-bottom: 0; }
.reading-page { max-width: 880px; padding-bottom: 80px; }
.experience-list { border-top: 1px solid var(--line); }
.experience-entry { border-bottom: 1px solid var(--line); scroll-margin-top: 130px; }
.experience-entry > summary { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto 24px; gap: 24px; padding-block: 25px; }
.experience-entry h2 { font-size: 21px; letter-spacing: -.5px; margin-bottom: 8px; }
.job-role { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0; }
.job-employment { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 6px 0 0; }
.job-date { font-size: 13px; color: var(--muted); white-space: nowrap; }
.job-timing { display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: 4px 8px; }
.job-duration { font-size: 13px; color: var(--muted); white-space: nowrap; }
.job-duration::before { content: '·'; margin-right: 8px; }
.job-details { max-width: 730px; padding: 0 0 29px; }
.responsibilities { margin: 0; padding-left: 18px; }
.responsibilities li { color: var(--muted); font-size: 14px; line-height: 1.85; padding-left: 5px; margin-bottom: 12px; }
.responsibilities li::marker { color: var(--accent); }
.recommendation-btn { display: inline-block; margin-top: 12px; font-size: 13px; text-decoration-color: var(--line); }
.recommendation-btn:hover { color: var(--accent); text-decoration-color: var(--accent); }
.about-view { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.about-page { flex: 1; display: flex; flex-direction: column; gap: clamp(32px,3vh,48px); padding-block: clamp(36px,5vh,72px) 0; }
.about-overview { display: grid; grid-template-columns: 180px minmax(0,1fr); align-items: center; gap: 38px; }
.profile-pic { width: 100%; height: auto; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: center 30%; border-radius: 4px; }
.biography h1 { font-size: 44px; letter-spacing: -1.7px; margin-bottom: 14px; }
.about-heading { margin-bottom: 14px; }
.about-heading h1 { margin-bottom: 0; }
.about-cv { min-height: 44px; padding: 8px 14px; font-size: 12px; white-space: nowrap; }
.bio-lead { font-size: 20px; line-height: 1.6; letter-spacing: -.3px; margin-bottom: 12px; max-width: 850px; }
.bio { font-size: 15px; color: var(--muted); line-height: 1.8; margin: 0; max-width: 900px; }
.about-sections { flex: 1; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1.4fr); gap: 36px; align-items: stretch; }
.about-sections > section { min-width: 0; padding: 30px; }
.education-panel, .skills-section { display: flex; flex-direction: column; }
.about-sections h2 { font-size: 22px; letter-spacing: -.4px; margin-bottom: 26px; }
.education-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 26px; }
.education-heading h2 { margin: 0; }
.education-panel { background: var(--accent-soft); border: 1px solid var(--line); border-radius: 4px; }
.university-name { font: 750 28px/1.3 var(--display); letter-spacing: -.7px; color: var(--accent); margin-bottom: 28px; }
.education-item { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: 16px; border-top: 1px solid var(--line); }
.education-item h3 { font-size: 15px; letter-spacing: -.2px; margin-bottom: 5px; }
.education-item p { color: var(--muted); font-size: 14px; margin: 0; }
.education-item .education-thesis { font-size: 13px; line-height: 1.7; margin-top: 12px; }
.thesis-label { display: block; color: var(--accent); font-size: 11px; font-weight: 600; line-height: 1.6; margin-bottom: 4px; }
.education-thesis a { text-decoration-color: var(--line); text-underline-offset: 3px; }
.education-thesis a:hover { color: var(--accent); text-decoration-color: currentColor; }
.work-groups { flex: 1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: minmax(min-content,1fr); gap: 28px 30px; margin: 0; }
.work-groups > div { display: flex; flex-direction: column; justify-content: center; padding-block: 16px; border-top: 1px solid var(--line); }
.work-groups dt { font-size: 15px; font-weight: 600; line-height: 1.5; margin-bottom: 8px; }
.work-groups dd { font-size: 14px; line-height: 1.8; color: var(--muted); margin: 0; }
.about-page > .contact-section { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1.4fr); gap: 36px; padding-block: 32px 36px; border-top: 1px solid var(--line); scroll-margin-top: 120px; }
.contact-section h2 { font-size: 24px; letter-spacing: -.5px; margin: 0; }
.contact-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 28px; font-size: 14px; color: var(--muted); }
.contact-list a { overflow-wrap: anywhere; text-decoration: none; }
.contact-list a:hover { color: var(--accent); text-decoration: underline; }
.contact-list address { font: inherit; }
.project-dialog { width: min(760px,calc(100% - 32px)); max-height: min(88dvh,950px); padding: 0; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 24px 100px #0005; }
.project-dialog::backdrop { background: #101a14b8; backdrop-filter: blur(5px); }
.dialog-inner { padding: 32px 40px 40px; }
.dialog-top { display: flex; justify-content: end; margin-bottom: 10px; }
.dialog-close { border: 1px solid var(--line); border-radius: 50%; width: 36px; height: 36px; display: grid; place-items: center; background: transparent; font-size: 24px; line-height: 1; }
.dialog-close:hover { background: var(--soft); }
.project-dialog h2 { font-size: 32px; letter-spacing: -1px; margin-bottom: 20px; }
.dialog-description { font-size: 15px; line-height: 1.85; color: var(--muted); white-space: pre-line; }
.dialog-media { margin-block: 25px; }
.dialog-media:empty { display: none; }
.dialog-media video { width: 100%; max-height: 350px; background: #101713; border-radius: 3px; }
.dialog-media img { width: 100%; height: auto; max-height: 380px; object-fit: contain; background: #fff; border-radius: 3px; }
.dialog-progress h3 { font-size: 19px; margin-bottom: 20px; letter-spacing: -.4px; }
.project-roadmap { list-style: none; counter-reset: phase -1; margin: 0; padding: 0; }
.project-roadmap > li { counter-increment: phase; position: relative; padding: 0 0 22px 42px; }
.project-roadmap > li::before { content: counter(phase); position: absolute; top: 0; left: 0; width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 10px; color: var(--muted); background: var(--surface); }
.project-roadmap > li:not(:last-child)::after { content: ''; position: absolute; left: 13px; top: 31px; bottom: 5px; width: 1px; background: var(--line); }
.project-roadmap > .is-complete::before { color: var(--paper); background: var(--accent); border-color: var(--accent); }
.project-roadmap > .is-active::before { color: #493708; font-weight: 700; background: #f5c542; border-color: #f5c542; }
.roadmap-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 6px; }
.roadmap-heading h4 { margin: 0; font-size: 14px; line-height: 1.6; font-weight: 550; }
.roadmap-state { font-size: 10px; color: var(--muted); }
.is-complete .roadmap-state, .is-active .roadmap-state { color: var(--accent); }
.project-roadmap p { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 0; }
.phase-image { margin: 16px 0 4px; }
.phase-image > a { position: relative; display: block; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: #fff; }
.phase-image img { width: 100%; height: auto; display: block; }
.phase-image-expand { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--ink); background: var(--surface); border: 1px solid var(--line); }
.phase-image > a:hover { border-color: var(--accent); }
.phase-image figcaption { color: var(--muted); font-size: 11px; line-height: 1.7; margin-top: 7px; }
.technical-notes { border-block: 1px solid var(--line); margin-top: 25px; }
.technical-notes > summary { font-size: 14px; padding-block: 17px; }
.dialog-tech { color: var(--accent); font-size: 13px; line-height: 1.9; margin: 0 0 20px; }
.technical-notes .dialog-description { font-size: 14px; }
.project-links { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 27px; }
.project-links:empty { display: none; }
.project-link { font-size: 13px; text-decoration: none; border-bottom: 1px solid var(--line); padding-block: 4px; }
.project-link:hover { color: var(--accent); border-color: var(--accent); }
.redirect-page { max-width: 600px; margin: 15vh auto; padding: 25px; }
@media (min-width:621px) {
  .project-card:last-child { grid-column: 1 / -1; }
  .project-card:last-child .project-content { display: grid; grid-template-columns: 1fr 1.3fr; gap: 35px; align-items: center; }
  .project-card:last-child h2 { margin: 0; }
}
@media (max-width:1200px) {
  .portfolio-layout { grid-template-columns: minmax(0,1fr); }
  .portfolio-layout > .projects-grid { grid-column: 1; grid-row: 2; }
  .ongoing-project { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); }
  .ongoing-header { grid-column: 1 / -1; padding: 20px 24px; }
  .ongoing-project .project-media { margin: 0 0 24px 24px; align-self: stretch; border-radius: 3px; }
  .ongoing-project .project-media img { height: 100%; aspect-ratio: auto; object-fit: cover; }
  .stage-gallery { margin: 0 0 24px 24px; align-self: start; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
  .ongoing-content { padding: 0 24px 20px; }
}
@media (max-width:1000px) {
  .container { width: calc(100% - 72px); }
  .header-inner { gap: 28px; } .site-nav { gap: 22px; } .header-tools { gap: 12px; }
  .projects-grid { gap: 24px; } .project-media img { height: 240px; }
  .project-card { grid-column: span 3; }
  .about-overview { grid-template-columns: 150px minmax(0,1fr); gap: 30px; }
  .about-sections { gap: 24px; }
  .about-sections > section { padding: 24px; }
}
@media (max-width:850px) {
  .about-sections { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .about-page > .contact-section { grid-template-columns: minmax(0,1fr); gap: 24px; }
}
@media (max-width:700px) {
  .container { width: calc(100% - 48px); }
  .header-inner { gap: 20px; } .site-nav { gap: 17px; } .site-nav a { font-size: 13px; }
  .brand { font-size: 14px; } .header-tools { gap: 8px; } .lang-btn { padding-inline: 4px; }
  .project-media img { height: 230px; } .project-card h2, .project-card.featured h2 { font-size: 20px; }
  .project-summary { font-size: 14px; }
  .biography h1 { font-size: 38px; }
  .bio-lead { font-size: 19px; }
}
@media (max-width:620px) {
  html { scroll-padding-top: 140px; } .container { width: calc(100% - 40px); }
  .header-inner { flex-wrap: wrap; gap: 0; min-height: 100px; padding-block: 10px 5px; justify-content: space-between; }
  .brand { font-size: 14px; } .header-tools { gap: 12px; }
  .site-nav { order: 3; width: 100%; margin: 0; gap: 27px; justify-content: center; }
  .site-nav a { font-size: 12px; padding-block: 10px; }
  .site-nav a[aria-current='page']::after { bottom: 3px; }
  .work-section { padding-bottom: 40px; }
  .portfolio-layout { gap: 24px; }
  .ongoing-project { display: block; }
  .ongoing-header { padding: 18px 22px; }
  .ongoing-project .project-media { margin: 0; border-radius: 0; }
  .ongoing-project .project-media img { height: auto; aspect-ratio: 1200 / 725; object-fit: contain; }
  .stage-gallery { margin: 0; border-inline: 0; border-radius: 0; }
  .ongoing-content { padding: 22px; }
  .projects-intro { padding-block: 33px 24px; }
  .projects-grid { grid-template-columns: 1fr; gap: 18px; }
  .project-card, .project-card.featured { grid-column: auto; }
  .project-content { padding: 22px; }
  .project-media img { height: 225px; } .project-card h2, .project-card.featured h2 { font-size: 22px; }
  .project-summary { font-size: 14px; }
  .footer-inner { font-size: 12px; gap: 14px; padding-block: 26px; flex-direction: column; align-items: start; } .footer-links { gap: 18px; }
  .page-intro { padding-block: 40px 30px; } .page-intro h1 { font-size: 42px; letter-spacing: -1.6px; }
  .page-intro > p { font-size: 15px; } .reading-page { padding-bottom: 45px; }
  .experience-entry > summary { grid-template-columns: minmax(0,1fr) 20px; gap: 12px; padding-block: 23px; }
  .experience-entry > summary::after { grid-column: 2; grid-row: 1 / 3; }
  .job-date { grid-column: 1; font-size: 12px; } .experience-entry h2 { font-size: 20px; }
  .job-timing { grid-column: 1; justify-content: start; }
  .job-duration { font-size: 12px; }
  .experience-entry { scroll-margin-top: 140px; } .job-role { font-size: 14px; }
  .about-page { padding-block: 28px 0; }
  .about-overview { grid-template-columns: 100px minmax(0,1fr); gap: 16px 22px; align-items: center; }
  .about-overview .biography { display: contents; }
  .about-heading { grid-column: 2; grid-row: 1; margin: 0; }
  .about-overview .profile-image { grid-column: 1; grid-row: 1; }
  .biography h1 { grid-column: 2; grid-row: 1; font-size: 34px; letter-spacing: -1.2px; margin: 0; }
  .biography .bio-lead, .biography .bio { grid-column: 1 / -1; }
  .bio-lead { font-size: 19px; margin: 0; }
  .about-sections > section { padding: 24px; }
  .about-sections .skills-section { padding: 0; }
  .work-groups { grid-template-columns: minmax(0,1fr); grid-auto-rows: auto; gap: 22px; }
  .work-groups > div { justify-content: start; padding-block: 16px 0; }
  .contact-list { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .dialog-inner { padding: 22px; } .project-dialog h2 { font-size: 26px; }
  .dialog-description { font-size: 14px; } .dialog-media video { max-height: 300px; }
}
@media (max-width:350px) { .footer-inner { align-items: start; flex-direction: column; gap: 12px; } }
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; } *,*::before,*::after { transition: none !important; animation: none !important; }
}
