@charset "UTF-8";

:root {
  color-scheme: dark;
  --background: #151b18;
  --panel: #1b241e;
  --ink: #edece3;
  --secondary: #b6bdb2;
  --accent: #bdcfa6;
  --line: #3b463c;
  --sans: 'Segoe UI', Arial, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
  --mono: 'Cascadia Code', Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--background); color: var(--ink); font: 16px/1.75 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-color: #7c8c71; text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #d5e7bd; outline-offset: 4px; }
::selection { background: var(--accent); color: var(--background); }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { line-height: 1.25; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: calc(100% - 112px); max-width: 1160px; margin-inline: auto; }
.skip-link { position: fixed; z-index: 60; top: 12px; left: 20px; padding: 12px 18px; color: var(--background); background: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 30; border-top: 2px solid #8d9d77; border-bottom: 1px solid #46523e; background: #172019; box-shadow: 0 8px 28px rgba(0, 0, 0, .14); }
.header-inner { position: relative; min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; min-height: 54px; text-decoration: none; flex-shrink: 0; }
.brand-symbol { width: 42px; height: 42px; fill: none; stroke: #c7d7ae; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.brand-copy { display: flex; flex-direction: column; gap: 6px; }
.brand-name { color: #f0f0e5; font: 400 25px/1.05 var(--serif); letter-spacing: -.55px; white-space: nowrap; }
.brand-name em { color: #cfdfb7; font-weight: 400; }
.brand-description { color: #c1cdb8; font: 500 11px/1.4 var(--sans); letter-spacing: .35px; white-space: nowrap; }
nav { display: flex; align-items: center; gap: 5px; }
nav a { min-height: 46px; padding: 10px 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 6px; color: #e5eadc; font-size: 14px; font-weight: 500; text-decoration: none; transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease; }
nav a:hover { color: #f4f5ec; background: #28382b; }
nav a[aria-current="location"] { color: #f4f5ec; border-color: #7e916b; background: #2b3c2c; }
.site-header .nav-resume { margin-left: 12px; padding-inline: 17px; }
.nav-arrow { display: none; }
.menu-toggle { display: none; min-height: 48px; min-width: 104px; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #8c9e7c; border-radius: 6px; padding: 10px 15px; background: #253428; color: #f1f3e9; font-size: 14px; font-weight: 600; transition: border-color 160ms ease, background-color 160ms ease; }
.menu-toggle:hover, .menu-toggle[aria-expanded="true"] { color: #f6f6ed; background: #354a33; border-color: #b9cda5; }
.menu-icon { position: relative; display: block; width: 15px; height: 15px; flex-shrink: 0; }
.menu-icon::before, .menu-icon::after { content: ''; position: absolute; top: 7px; left: 0; width: 15px; height: 1px; background: currentColor; transition: transform 180ms ease; }
.menu-icon::before { transform: translateY(-3px); }
.menu-icon::after { transform: translateY(3px); }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: rotate(-45deg); }
.intro { position: relative; isolation: isolate; min-height: 690px; overflow: hidden; display: flex; align-items: center; }
.intro-landscape { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; z-index: -3; }
.intro-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(12, 22, 16, .94) 0%, rgba(12, 22, 16, .76) 37%, rgba(12, 22, 16, .16) 78%), linear-gradient(0deg, rgba(12, 22, 16, .9), transparent 30%); }
.intro-content { padding-block: 55px 140px; }
.intro-copy { max-width: 670px; }
.intro-location { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #d1ddc5; margin-bottom: 25px; }
h1 { font: 400 clamp(80px, 8.3vw, 116px)/.94 var(--serif); letter-spacing: -4px; }
h1 em { color: #d0ddbd; font-weight: 400; }
.intro-role { font-size: 16px; margin-top: 30px; color: var(--ink); }
.intro-copy > p:not(.intro-location):not(.intro-role) { max-width: 460px; margin-top: 13px; color: #c8d0c2; font-size: 14px; }
.intro-links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.action-button, .project-link, .section-heading > a, .about-details a, .contact-links a, .contact-links button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; max-width: 100%; padding: 12px 18px; border: 1px solid #849876; border-radius: 5px; background: #233226; color: #f0f2e8; font: 600 14px/1.45 var(--sans); text-align: center; text-decoration: none; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
.action-button:hover, .project-link:hover, .section-heading > a:hover, .about-details a:hover, .contact-links a:hover, .contact-links button:hover { color: #f8f8ef; background: #35482f; border-color: #c0d4a9; }
.action-button:active, .project-link:active, .contact-links a:active, .contact-links button:active { background: #405739; }
.action-primary, .site-header .action-primary { color: #19251b; background: #e5ecd8; border-color: #e5ecd8; }
.action-primary:hover, .site-header .action-primary:hover { color: #142017; background: #f2f5e8; border-color: #f2f5e8; }
.action-primary:active, .site-header .action-primary:active { background: #cbdcb7; border-color: #cbdcb7; }
.file-type { font: 600 11px/1.5 var(--mono); color: inherit; letter-spacing: .35px; }
.intro-bottom { position: absolute; bottom: 28px; left: 0; right: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.intro-bottom > p { font-size: 10px; color: #d4dbc9; }
.intro-bottom blockquote { max-width: 335px; text-align: right; }
.intro-bottom blockquote > p { font: italic 19px/1.5 var(--serif); color: #dce3d0; }
.intro-bottom cite { font-style: normal; font-size: 9px; color: #bfcbb2; }
.intro-bottom cite a { display: inline-flex; min-height: 32px; align-items: center; text-decoration: none; }
.intro-bottom cite a:hover { text-decoration: underline; }
.now-strip { border-block: 1px solid var(--line); }
.now-strip > div { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 72px; }
.now-strip p { font-size: 11px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.now-strip p span { color: var(--secondary); }
.focus-strip { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; margin-block: 24px 0; border: 1px solid var(--line); background: #1a241d; }
.focus-strip li { display: flex; align-items: center; gap: 14px; padding: 23px 18px; }
.focus-strip li + li { border-left: 1px solid var(--line); }
.focus-strip svg { width: 30px; height: 30px; flex-shrink: 0; stroke: #c9dab2; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.focus-strip strong { display: block; font-size: 14px; font-weight: 500; line-height: 1.5; }
.focus-strip li > span > span { display: block; color: #c2cdb9; font-size: 12px; margin-top: 4px; }
.work-section { padding-block: 82px 36px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px 24px; margin-bottom: 36px; }
h2 { font: 400 42px/1.15 var(--serif); letter-spacing: -1px; }
.project { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 35px; padding: 35px; border: 1px solid var(--line); background: var(--panel); }
.project + .project { margin-top: 20px; }
.project-type { display: flex; flex-direction: column; gap: 3px; padding-top: 4px; font: 12px/1.8 var(--sans); color: var(--accent); }
.project-type span + span { color: var(--secondary); font-size: 12px; }
h3 { font: 400 32px/1.25 var(--serif); letter-spacing: -.6px; }
.project-body, .section-content { min-width: 0; }
.project-body > p { max-width: 750px; color: var(--secondary); margin-top: 16px; font-size: 15px; }
.project-body > .project-tools { color: var(--accent); font: 12px/1.9 var(--mono); margin-top: 22px; }
.project-link { justify-content: space-between; margin-top: 18px; text-align: left; }
.project-screenshot { margin-top: 28px; }
.project-screenshot a { display: block; }
.project-screenshot img { border: 1px solid #425043; width: 100%; }
figcaption { color: var(--secondary); font-size: 10px; margin-top: 8px; }
.project-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; }
.source-note { font-size: 12px; color: var(--secondary); }
.research-flow { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 25px 0 0; }
.research-flow li { padding: 18px; border: 1px solid #596a50; background: #223025; }
.flow-number { display: inline-flex; align-items: center; justify-content: center; width: 31px; height: 31px; margin-bottom: 13px; border-radius: 50%; color: #172319; background: #ceddb9; font: 600 12px/1 var(--mono); }
.research-flow strong { display: block; font-size: 14px; font-weight: 600; }
.research-flow li > span:last-child { display: block; margin-top: 6px; font-size: 12px; color: #c5d0bb; }
.stack-overview { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr); align-items: center; gap: 10px; margin-top: 24px; }
.stack-overview > span:not(.stack-connector) { display: flex; flex-direction: column; gap: 7px; padding: 19px 16px; border: 1px solid #596a50; background: #223025; }
.stack-overview small { color: #c5d0bb; font-size: 12px; }
.stack-overview strong { font-size: 16px; font-weight: 500; }
.stack-connector { color: #c9dab2; font-size: 22px; text-align: center; }
.carousel { min-width: 0; }
.carousel-toolbar, .credentials-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; }
.gallery-label { color: #d7e1cb; font-size: 14px; font-weight: 500; }
.carousel-controls { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.carousel-arrow { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex-shrink: 0; padding: 0; border: 1px solid #a6b891; border-radius: 5px; background: #293b2b; color: #f2f5e9; font-size: 24px; line-height: 1; transition: background-color 160ms ease, border-color 160ms ease; }
.carousel-arrow:not(:disabled):hover { background: #40583a; border-color: #e1ebd2; }
.carousel-arrow:disabled { color: #8d9a85; border-color: #4d5b49; background: #1c271e; cursor: default; }
.carousel-status { min-width: 86px; color: #d7e1cb; font: 500 13px/1.5 var(--mono); text-align: center; }
.project-gallery { margin-top: 28px; }
.project-gallery-track, .credential-track { display: grid; grid-auto-flow: column; gap: 20px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #9fb18b #172319; padding: 4px 0 15px; }
.project-gallery-track { grid-auto-columns: 100%; margin-top: 14px; }
[data-carousel-slide] { min-width: 0; scroll-snap-align: start; }
.project-gallery-track figure { border: 1px solid #52634b; background: #101710; }
.project-gallery-track figure > a { display: block; }
.project-gallery-track img { width: 100%; height: clamp(220px, 35vw, 430px); object-fit: contain; }
.project-gallery-track figcaption { display: flex; flex-direction: column; gap: 5px; margin: 0; padding: 17px 19px; border-top: 1px solid #52634b; background: #223025; font-size: 13px; color: #d2ddc7; }
.project-gallery-track figcaption strong { color: #f0f2e7; font-size: 14px; font-weight: 600; }
.gallery-hint { margin-top: 9px; font-size: 12px; color: #c1cdb5; }
.credentials-showcase { grid-column: 1 / -1; }
.credentials-heading { align-items: flex-end; margin-bottom: 24px; }
.section-kicker { color: #c9dab2; font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 10px; }
.credentials-heading h3 { font-size: 36px; }
.credentials-heading p:not(.section-kicker) { color: #c4ceba; font-size: 14px; margin-top: 12px; }
.credential-filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 14px; }
.credential-filter { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 10px 15px; border: 1px solid #80936f; border-radius: 5px; background: #223126; color: #eff3e6; font: 500 14px/1.4 var(--sans); }
.credential-filter:hover { border-color: #c3d6aa; background: #34482f; }
.credential-filter[aria-pressed="true"] { color: #19251b; background: #e5ecd8; border-color: #e5ecd8; }
.credential-filter > span { font: 600 12px/1.4 var(--mono); }
.credential-summary { color: #cbd8bf; font-size: 13px; margin-bottom: 13px; }
.credential-track { grid-auto-columns: calc((100% - 40px) / 3); }
.credential-card { display: flex; flex-direction: column; border: 1px solid #5b6a50; background: #202b22; }
.credential-link { display: flex; flex: 1; flex-direction: column; color: inherit; text-decoration: none; }
.credential-link:focus-visible { outline-offset: -4px; }
.credential-link:hover .project-link { color: #f8f8ef; background: #35482f; border-color: #c0d4a9; }
.credential-art { display: flex; align-items: center; justify-content: center; height: 180px; padding: 20px; background: #e4e9da; border-bottom: 1px solid #7a896a; }
.credential-art img { width: 140px; height: 140px; object-fit: contain; }
.credential-art--certificate img { width: 100%; height: 140px; }
.credential-art--course { flex-direction: column; gap: 12px; color: #283c2d; text-align: center; }
.credential-art--course svg { width: 58px; height: 58px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.credential-art--course > span { font: 400 19px/1.3 var(--serif); }
.credential-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 24px; }
.credential-kind { display: inline-flex; padding: 3px 8px; border: 1px solid #748969; border-radius: 3px; color: #d8e6c9; font-size: 12px; line-height: 1.6; margin-bottom: 13px; }
.credential-card--archive .credential-kind { color: #f0ddb6; border-color: #af9668; }
.credential-issuer { color: #cfddbd; font-size: 12px; font-weight: 500; margin-bottom: 11px; }
.credential-copy h4 { min-height: 88px; color: #f0f1e8; font: 400 25px/1.25 var(--serif); letter-spacing: -.3px; }
.credential-copy h4 span { display: block; color: #c8d3bd; font: 500 14px/1.6 var(--sans); letter-spacing: 0; margin-top: 7px; }
.credential-date { color: #c7d1bd; font-size: 12px; margin-top: 12px; margin-bottom: 19px; }
.credential-copy .project-link { width: 100%; margin-top: auto; }
.section-block { display: grid; grid-template-columns: 265px minmax(0, 1fr); gap: 60px; padding-block: 70px; border-bottom: 1px solid var(--line); }
.section-block > h2 { font-size: 38px; }
.section-content > p { font-size: 15px; color: var(--secondary); margin-bottom: 20px; }
.section-content > .personal-note { color: #d8dfcc; border-left: 2px solid #8b9e76; padding-left: 22px; margin-top: 29px; }
.about-details { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; margin-top: 35px; }
.about-details h3 { font: 500 13px/1.5 var(--sans); letter-spacing: 0; margin-bottom: 9px; color: var(--accent); }
.about-details p { color: var(--secondary); font-size: 12px; line-height: 1.9; }
.about-details a { margin-top: 15px; }
.timeline-item + .timeline-item { margin-top: 30px; }
.timeline-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 3px 20px; }
.timeline-heading h3 { font: 500 17px/1.5 var(--sans); letter-spacing: 0; }
.timeline-date { font: 12px/1.8 var(--sans); color: var(--secondary); }
.timeline-item > p { font-size: 13px; margin-top: 5px; }
.timeline-item > .experience-description { font-size: 12px; color: var(--secondary); max-width: 570px; margin-top: 9px; }
.timeline > .project-link { margin-top: 30px; }
.contact-section { padding-block: 55px 38px; }
.contact-section .section-content > p { margin-bottom: 9px; }
.contact-email { font-size: 24px; letter-spacing: -.4px; overflow-wrap: anywhere; display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); }
.contact-links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.section-content > .copy-status { font-size: 11px; min-height: 21px; margin: 7px 0 0; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 100px; color: var(--secondary); font-size: 10px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 48px; color: #e2e9d8; font-size: 14px; }
.error-page { min-height: 70vh; padding-block: 90px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.error-page h1 { font-size: 62px; letter-spacing: -2px; }
.error-page p { max-width: 550px; color: var(--secondary); }
.error-code { font: 12px/1.8 var(--mono); }

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 64px); }
  .intro { min-height: 660px; }
  .project { grid-template-columns: 120px minmax(0, 1fr); gap: 25px; padding: 28px; }
  .section-block { grid-template-columns: 200px minmax(0, 1fr); gap: 35px; }
  .about-details { gap: 20px; }
  .focus-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .focus-strip li:nth-child(3) { border-left: 0; }
  .focus-strip li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .credential-track { grid-auto-columns: calc((100% - 20px) / 2); }
}

@media (max-width: 900px) {
  .header-inner { min-height: 84px; flex-wrap: wrap; gap: 0 16px; }
  .js-ready .header-inner { flex-wrap: nowrap; }
  .brand { gap: 11px; }
  .brand-symbol { width: 35px; height: 35px; }
  .brand-name { font-size: 24px; }
  .brand-description { font-size: 11px; letter-spacing: .15px; }
  .menu-toggle:not([hidden]) { display: inline-flex; }
  nav { width: 100%; padding: 12px 0 15px; gap: 8px; flex-wrap: wrap; }
  .js-ready nav { position: absolute; top: calc(100% + 12px); right: 0; left: auto; width: min(100%, 350px); display: flex; align-items: stretch; flex-direction: column; flex-wrap: nowrap; gap: 5px; max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); overflow-y: auto; overscroll-behavior: contain; padding: 11px; border: 1px solid #81916f; border-radius: 10px; background: #1c271f; box-shadow: 0 22px 65px rgba(0, 0, 0, .42); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px) scale(.985); transform-origin: top right; transition: opacity 180ms ease, transform 220ms cubic-bezier(.2, .8, .2, 1), visibility 0s linear 220ms; }
  .js-ready nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1); transition-delay: 0s; }
  .js-ready nav a { justify-content: space-between; min-height: 56px; padding: 12px 16px; border-radius: 5px; font-size: 17px; }
  .js-ready nav .nav-arrow { display: block; color: inherit; font-size: 16px; }
  .js-ready nav a:not(.nav-resume):hover, .js-ready nav a:not(.nav-resume):focus-visible { color: #f4f5ec; background: #2c3b2d; }
  .js-ready nav .nav-resume { justify-content: center; gap: 14px; margin: 7px 0 0; font-size: 15px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 110px; }
  .wrap { width: calc(100% - 40px); }
  .intro { min-height: 725px; }
  .intro-shade { background: linear-gradient(90deg, rgba(12, 22, 16, .87), rgba(12, 22, 16, .43)), linear-gradient(0deg, rgba(12, 22, 16, .94), transparent 65%); }
  .intro-landscape { object-position: 61% center; }
  .intro-content { padding-block: 40px 180px; }
  h1 { font-size: clamp(76px, 15.5vw, 106px); letter-spacing: -3px; }
  .intro-location { font-size: 9px; letter-spacing: 1.3px; margin-bottom: 24px; }
  .intro-role { font-size: 14px; margin-top: 28px; max-width: 290px; }
  .intro-copy > p:not(.intro-location):not(.intro-role) { font-size: 13px; max-width: 370px; }
  .intro-links { margin-top: 25px; gap: 12px; }
  .intro-bottom { flex-direction: column; align-items: flex-start; gap: 18px; bottom: 25px; }
  .intro-bottom > p { font-size: 9px; order: 2; }
  .intro-bottom blockquote { text-align: left; max-width: 300px; }
  .intro-bottom blockquote > p { font-size: 18px; }
  .now-strip > div { flex-direction: column; align-items: flex-start; gap: 10px; padding-block: 20px; }
  .now-strip p { font-size: 10px; gap: 5px 10px; }
  .work-section { padding-block: 54px 20px; }
  .section-heading { margin-bottom: 25px; align-items: center; }
  .section-heading h2 { font-size: 29px; }
  .project { grid-template-columns: 1fr; gap: 15px; padding: 24px; }
  .project + .project { margin-top: 16px; }
  .project-type { flex-direction: row; align-items: baseline; gap: 18px; padding-top: 0; }
  h3 { font-size: 28px; }
  .project-body > p { font-size: 15px; margin-top: 15px; }
  .project-screenshot { margin-top: 22px; }
  .project-bottom { align-items: flex-start; flex-direction: column; gap: 0; }
  .source-note { margin-top: 2px; }
  .project-body > .project-tools { font-size: 12px; margin-top: 19px; }
  .section-block { grid-template-columns: 1fr; padding-block: 42px; gap: 27px; }
  .section-block > h2 { font-size: 33px; }
  .section-content > p { font-size: 14px; }
  .section-content > .personal-note { padding-left: 18px; margin-top: 26px; }
  .about-details { grid-template-columns: 1fr; gap: 25px; margin-top: 30px; }
  .timeline-heading { flex-direction: column; gap: 4px; }
  .timeline-date { font-size: 12px; }
  .timeline-item > p { font-size: 13px; }
  .contact-email { font-size: 20px; }
  .site-footer { min-height: 100px; font-size: 9px; gap: 5px 20px; flex-wrap: wrap; padding-block: 20px; }
  .site-footer p:nth-child(2) { display: none; }
  .error-page h1 { font-size: 44px; }
}

@media (max-width: 640px) {
  .focus-strip li { flex-direction: column; align-items: flex-start; padding: 20px 14px; gap: 12px; }
  .focus-strip strong { font-size: 14px; }
  .focus-strip li > span > span { font-size: 12px; }
  .research-flow { grid-template-columns: 1fr; }
  .research-flow li { position: relative; padding: 16px 16px 16px 62px; }
  .flow-number { position: absolute; top: 19px; left: 16px; margin: 0; }
  .stack-overview { grid-template-columns: 1fr; gap: 5px; }
  .stack-connector { transform: rotate(90deg); line-height: 1; }
  .credentials-heading h3 { font-size: 30px; }
  .credential-track { grid-auto-columns: 100%; }
  .credential-copy h4 { min-height: 85px; }
  .gallery-hint { font-size: 12px; }
}

@media (max-width: 420px) {
  .brand-symbol { display: none; }
  .brand-name { font-size: 23px; }
  .header-inner { column-gap: 10px; }
  .menu-toggle { min-width: 100px; padding-inline: 13px; }
}

@media (max-width: 360px) {
  .brand-name { font-size: 20px; }
  .brand-description { font-size: 10.5px; }
  .menu-toggle { min-width: 96px; padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  nav, nav a, .menu-toggle, .menu-icon::before, .menu-icon::after, .action-button, .project-link, .section-heading > a, .about-details a, .contact-links a, .contact-links button, .carousel-arrow { transition: none !important; }
  .project-gallery-track, .credential-track { scroll-behavior: auto; }
}

@media (forced-colors: active) {
  a, button { text-decoration: underline; }
  .intro-landscape { display: none; }
  .intro-shade { background: Canvas; }
  .project-screenshot img { border: 1px solid CanvasText; }
  .action-button, .project-link, .menu-toggle, .contact-links a, .contact-links button { border-color: ButtonText; }
}
