:root {
  color-scheme: light;
  --bg: #eaeaec; --soft: #eaeaec; --surface: #fff; --text: #1d1d1f;
  --muted: #606068; --line: #dedee3; --accent: #0069d3; --button: #0071e3;
  --nav: rgba(255,255,255,.97); --chip: #f5f5f7; --radius: 26px;
  --security-bg: #eef4f0; --security-text: #285b45; --security-line: #90ad9d;
  --performance-bg: #eef2fa; --performance-text: #205597; --performance-line: #abc2de;
  --portal-bg: #edf2f7; --portal-text: #3c5975; --portal-window: #fff; --portal-panel: #f1f5f8;
}
html[data-theme=dark] {
  color-scheme: dark;
  --bg: #171719; --soft: #171719; --surface: #050506; --text: #f5f5f7;
  --muted: #a1a1a6; --line: #38383c; --accent: #6eb0ff; --button: #0071e3;
  --nav: rgba(0,0,0,.97); --chip: #29292d;
  --security-bg: #182a22; --security-text: #b9ddc6; --security-line: #547b65;
  --performance-bg: #172438; --performance-text: #9bc6ff; --performance-line: #48668c;
  --portal-bg: #1b2938; --portal-text: #c1d8ed; --portal-window: #26394b; --portal-panel: #31495e;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    color-scheme: dark;
    --bg: #171719; --soft: #171719; --surface: #050506; --text: #f5f5f7;
    --muted: #a1a1a6; --line: #38383c; --accent: #6eb0ff; --button: #0071e3;
    --nav: rgba(0,0,0,.97); --chip: #29292d;
    --security-bg: #182a22; --security-text: #b9ddc6; --security-line: #547b65;
    --performance-bg: #172438; --performance-text: #9bc6ff; --performance-line: #48668c;
    --portal-bg: #1b2938; --portal-text: #c1d8ed; --portal-window: #26394b; --portal-panel: #31495e;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4,p { margin: 0; }
h1,h2,h3,h4 { font-weight: 600; line-height: 1.1; letter-spacing: -.035em; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
a,button { -webkit-tap-highlight-color: transparent; }
a:focus-visible,button:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 5px; }
svg { display: block; max-width: 100%; }
::selection { background: #abd5ff; color: #1d1d1f; }
.container { width: min(1280px,calc(100% - 64px)); margin-inline: auto; }
.section { padding: 52px 0; }
.section-soft { background: var(--soft); }
.eyebrow { font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: .045em; text-transform: uppercase; color: var(--muted); }
.tile { background: var(--surface); border-radius: var(--radius); position: relative; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.js-only { display: none; }
html[data-js=true] .js-only { display: inline-flex; }
.skip-link { position: fixed; left: 16px; top: 7px; z-index: 50; padding: 10px 18px; background: var(--surface); border: 2px solid var(--accent); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--nav); border-bottom: 1px solid var(--line); }
.nav-shell { height: 58px; width: min(1280px,calc(100% - 64px)); margin: auto; display: flex; align-items: center; gap: 25px; }
.brand { display: flex; align-items: center; gap: 13px; margin-right: auto; }
.monogram { font-size: 29px; font-weight: 700; letter-spacing: -.075em; line-height: 1; }
.monogram span { color: var(--accent); }
.site-header nav { display: flex; gap: 28px; align-items: center; font-size: 13px; }
.site-header nav a { padding: 13px 0; }
.site-header nav a:hover { color: var(--accent); }
.theme-toggle { width: 44px; height: 44px; padding: 10px; display: inline-flex; align-items: center; justify-content: center; background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 50%; flex: 0 0 44px; -webkit-appearance: none; appearance: none; }
.theme-toggle svg { width: 22px; height: 22px; flex: 0 0 22px; }
.theme-toggle:disabled { cursor: default; opacity: 1; }
.theme-toggle:hover { background: var(--chip); }
.theme-sun { display: none; }
html[data-theme=dark] .theme-sun { display: block; }
html[data-theme=dark] .theme-moon { display: none; }
.overview { padding: 28px 0 12px; }
.intro-actions { display: flex; justify-content: flex-start; align-items: center; gap: 25px; margin-top: 29px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 23px; font-size: 16px; line-height: 1.5; border-radius: 100px; font-weight: 400; transition: background .15s; }
.button-primary { background: var(--button); color: #fff; }
.button-primary:hover { background: #0063c7; }
.text-link { color: var(--accent); display: inline-flex; align-items: center; gap: 7px; font-size: 16px; }
.text-link:hover,.case-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 30px; margin-bottom: 39px; }
.section-heading h2 { font-size: 40px; letter-spacing: -.045em; }
.section-heading>p { max-width: 330px; color: var(--muted); font-size: 16px; }
.work-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 16px; }
.work-card { padding: 0; grid-column: span 6; }
.work-card:nth-child(1) { grid-column: span 7; }
.work-card:nth-child(2) { grid-column: span 5; }
.work-card:nth-child(3) { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch; }
.project-visual { height: 290px; border-radius: 0; padding: 25px 28px; position: relative; display: flex; flex-direction: column; overflow: hidden; }
.visual-kicker { font-size: 11px; font-weight: 600; letter-spacing: .04em; line-height: 1.4; opacity: .82; }
.visual-security { background: var(--security-bg); color: var(--security-text); }
.visual-performance { background: var(--performance-bg); color: var(--performance-text); }
.visual-portal { background: var(--portal-bg); color: var(--portal-text); }
.visual-bottom { display: flex; gap: 16px; align-items: baseline; margin-top: auto; }
.visual-bottom strong { font-size: 33px; font-weight: 600; letter-spacing: -.04em; line-height: 1.2; white-space: nowrap; }
.visual-bottom>span { font-size: 12px; line-height: 1.5; }
.security-diagram { --flow-gap: 40px; display: flex; justify-content: center; align-items: center; flex: 1; gap: var(--flow-gap); padding: 15px 0 19px; }
.flow-pill { padding: 7px 13px; border: 1px solid var(--security-line); border-radius: 24px; font-size: 12px; }
.security-gate { position: relative; display: flex; align-items: center; flex-direction: column; gap: 10px; text-align: center; font-size: 11px; line-height: 1.4; }
.security-gate::before,.security-gate::after { content: ""; position: absolute; top: 50%; width: var(--flow-gap); height: 1px; background: var(--security-line); }
.security-gate::before { right: 100%; }
.security-gate::after { left: 100%; }
.security-gate svg { width: 83px; }
.performance-art { --art-gap: 10px; display: flex; gap: calc(14px + 2 * var(--art-gap)); align-items: center; justify-content: center; margin-top: 32px; font-size: 11px; }
.performance-art>span { position: relative; padding: 6px 11px; border: 1px solid var(--performance-line); border-radius: 8px; }
.performance-art>span+span::before { content: ""; position: absolute; top: 50%; left: calc(-14px - var(--art-gap)); width: 14px; height: 1px; background: var(--performance-line); }
.performance-number { font-size: 79px; font-weight: 600; letter-spacing: -.055em; line-height: 1.1; text-align: center; margin-top: 25px; }
.performance-caption { font-size: 13px; text-align: center; margin-top: 7px; }
.portal-art { width: 85%; max-width: 355px; margin: 20px auto; border-radius: 13px; background: var(--portal-window); box-shadow: 0 5px 25px #0000000a; font-size: 11px; }
.portal-top { display: flex; align-items: center; gap: 9px; padding: 12px 15px; font-weight: 600; border-bottom: 1px solid var(--portal-bg); }
.mini-monogram { color: var(--accent); font-size: 16px; }
.portal-top::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #4d9a76; margin-left: auto; }
.portal-body { padding: 16px; }
.portal-body>span { font-size: 9px; letter-spacing: .045em; }
.portal-tiles { display: flex; gap: 11px; margin: 11px 0 13px; }
.portal-tiles>div { padding: 13px 10px; background: var(--portal-panel); display: flex; align-items: center; justify-content: center; gap: 10px; flex: 1; border-radius: 8px; }
.portal-tiles svg { width: 28px; }
.portal-tiles strong { font-size: 10px; font-weight: 500; }
.portal-access { display: flex; justify-content: center; align-items: center; gap: 10px; font-size: 9px; }
.portal-access span:last-child { margin-left: auto; }
.work-card-content { padding: 28px 25px 23px; }
.work-card-content h3 { font-size: 29px; line-height: 1.15; margin-top: 13px; }
.work-card-content h3 a:hover { color: var(--accent); }
.work-card-content>p:not(.eyebrow) { font-size: 16px; color: var(--muted); line-height: 1.6; margin-top: 14px; }
.work-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); margin-top: 27px; padding-top: 17px; font-size: 12px; color: var(--muted); }
.work-meta>span { max-width: 240px; }
.case-link { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--accent); font-size: 14px; }
.work-card:nth-child(3) .project-visual { height: 100%; min-height: 323px; }
.work-card:nth-child(3) .work-card-content { display: flex; flex-direction: column; justify-content: center; padding: 36px; }
.work-card:nth-child(3) .work-meta { flex-wrap: wrap; align-items: flex-start; }
.expertise-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.expertise-card { background: var(--soft); padding: 30px 25px; }
.expertise-card h3 { font-size: 21px; line-height: 1.25; margin-bottom: 23px; }
.skill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.skill-list li { padding: 5px 8px; font-size: 12px; line-height: 1.5; background: var(--surface); color: var(--muted); border-radius: 6px; }
.about-grid { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(0,1fr); gap: 24px; }
.experience-card { padding: 38px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline>li { position: relative; padding: 0 0 32px 25px; border-left: 1px solid var(--line); }
.timeline>li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline>li:before { content: ""; position: absolute; top: 5px; left: -4px; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 5px var(--surface); }
.timeline-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.timeline-heading h3 { font-size: 22px; }
.timeline-heading>span { color: var(--muted); font-size: 12px; }
.company { margin-top: 11px; font-size: 14px; }
.company span { color: var(--muted); }
.timeline ul { padding-left: 16px; margin: 19px 0 0; font-size: 14px; line-height: 1.7; color: var(--muted); }
.timeline ul li+li { margin-top: 9px; }
.about-aside { display: flex; flex-direction: column; gap: 24px; }
.awards-card,.education-card { padding: 32px; }
.awards-card h3,.education-card>h3 { font-size: 24px; }
.awards-card ul { list-style: none; padding: 0; margin: 24px 0 0; }
.awards-card li { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 7px; font-size: 14px; }
.awards-card li+li { margin-top: 19px; padding-top: 19px; border-top: 1px solid var(--line); }
.awards-card li>span { font-size: 12px; color: var(--muted); }
.awards-card li p { width: 100%; font-size: 13px; color: var(--muted); }
.education-card { flex: 1; }
.education-card>div { margin-top: 24px; }
.education-card h4 { font-size: 16px; line-height: 1.35; }
.education-card span { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.education-card>div>p { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.contact-section { padding: 94px 0 77px; }
.contact-card { text-align: center; }
.contact-card h2 { font-size: 55px; letter-spacing: -.045em; }
.contact-card>p:not(.copy-status):not(.contact-detail) { max-width: 560px; margin: 22px auto 0; color: var(--muted); font-size: 19px; line-height: 1.6; }
.contact-actions { display: flex; align-items: center; justify-content: center; gap: 27px; margin-top: 28px; }
.email-row { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 31px; font-size: 21px; letter-spacing: -.01em; }
.email-row>a { overflow-wrap: anywhere; }
.email-row>a:hover { color: var(--accent); }
.copy-email { width: 42px; height: 42px; padding: 12px; align-items: center; justify-content: center; color: var(--muted); border: 0; background: transparent; border-radius: 50%; flex-shrink: 0; }
.copy-email svg { width: 18px; height: 18px; flex: 0 0 18px; }
.copy-email:hover { background: var(--soft); }
.contact-detail { margin-top: 16px; color: var(--muted); font-size: 13px; }
.site-footer { display: flex; align-items: center; gap: 25px; color: var(--muted); font-size: 12px; padding: 25px 0 29px; border-top: 1px solid var(--line); }
.footer-name { font-weight: 600; color: var(--text); font-size: 14px; }
.site-footer>p { margin-right: auto; }
.site-footer>a:not(.footer-name) { color: var(--accent); }
.case-study { padding-top: 39px; padding-bottom: 80px; }
.back-link { font-size: 14px; color: var(--accent); display: inline-flex; gap: 8px; }
.case-heading { max-width: 850px; margin: 56px 0 39px; }
.case-heading h1 { font-size: 64px; margin-top: 18px; letter-spacing: -.045em; }
.case-heading>p:not(.eyebrow) { font-size: 21px; line-height: 1.6; color: var(--muted); margin-top: 25px; max-width: 780px; }
.case-role { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 18px; margin-top: 29px; font-size: 15px; }
.case-role>span { font-size: 11px; letter-spacing: .04em; color: var(--muted); }
.case-role>strong { font-weight: 500; }
.case-visual { height: 375px; padding: 29px 39px; }
.case-visual .security-gate svg { width: 106px; }
.case-visual .security-gate span { font-size: 13px; }
.case-visual .security-diagram { --flow-gap: 100px; }
.case-visual .flow-pill { font-size: 14px; padding: 9px 19px; }
.case-visual .visual-bottom>strong { font-size: 41px; }
.case-visual .visual-bottom>span { font-size: 15px; }
.case-visual .performance-art { margin-top: 40px; }
.case-visual .performance-number { font-size: 116px; margin-top: 28px; }
.case-visual .performance-caption { font-size: 16px; }
.case-visual .portal-art { max-width: 400px; margin-top: 20px; }
.case-visual .portal-body { padding: 21px; }
.case-visual .portal-tiles>div { padding: 21px 12px; }
.case-content { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr); gap: 80px; margin: 58px 0 70px; }
.case-facts { font-size: 14px; color: var(--muted); }
.case-facts>div { margin-bottom: 33px; }
.case-facts>div>strong { display: block; font-size: 38px; color: var(--accent); line-height: 1.2; letter-spacing: -.04em; margin: 12px 0 8px; }
.case-facts .skill-list { margin-top: 15px; }
.case-facts .skill-list li { background: var(--soft); }
.case-source { font-size: 13px; line-height: 1.7; }
.case-story section+section { margin-top: 40px; }
.case-story h2 { font-size: 29px; margin-bottom: 18px; }
.case-story section>p,.case-story ol { font-size: 17px; color: var(--muted); line-height: 1.8; }
.case-story ol { padding-left: 21px; margin: 0; }
.case-story li { padding-left: 5px; margin-top: 13px; }
.case-story li::marker { color: var(--accent); }
.case-next { background: var(--soft); display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 35px 38px; }
.case-next h2 { font-size: 27px; margin: 12px 0 16px; }
.error-page { padding: 100px 0; min-height: 70vh; }
.error-page h1 { font-size: 49px; margin: 22px 0; }
.error-page>p:not(.eyebrow) { color: var(--muted); margin-bottom: 25px; }
@keyframes arrive { from { opacity: .85; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.in-view { animation: arrive .32s ease-out both; }

/* Keynote summary: one primary tile, concise supporting highlights and even gutters. */
.overview-caption { display: flex; justify-content: space-between; margin: 0 2px 20px; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.keynote-grid { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr 1fr; grid-template-rows: minmax(300px,auto) minmax(150px,auto); gap: 16px; }
.intro-tile { grid-column: span 2; grid-row: span 2; padding: 40px; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(135deg,var(--surface) 45%,#eef0fa); }
.intro-tile .eyebrow { font-size: 11px; letter-spacing: .035em; }
.intro-tile h1 { font-size: clamp(48px,5.8vw,80px); line-height: 1.01; letter-spacing: -.055em; margin: 35px 0 25px; }
.intro-tile h1>span { display: block; }
.name-accent { color: #6153b9; background: linear-gradient(100deg,#326dd1,#a64390); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.summary-copy { max-width: 470px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.intro-tile .intro-actions { margin-top: 30px; gap: 24px; flex-wrap: wrap; }
.career-highlight { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 20px; }
.career-highlight>strong { font-size: 90px; font-weight: 600; letter-spacing: -.05em; line-height: 1.05; color: #2b68b7; }
.career-highlight h2 { font-size: 20px; letter-spacing: -.025em; line-height: 1.2; margin-top: 18px; }
.career-highlight p { max-width: 190px; color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 12px; }
.team-highlight { background: #f3ecfa; }
.team-highlight>strong { font-size: 34px; color: #694a9a; margin-top: 22px; }
.team-icon { width: 91px; height: 68px; color: #8e6fc1; }
.toolkit-tile { grid-column: 3 / 5; display: flex; align-items: center; justify-content: center; gap: 24px; padding: 25px 32px; }
.toolkit-mark { font-size: 46px; font-weight: 600; color: #7961c5; letter-spacing: -.1em; flex-shrink: 0; }
.toolkit-tile .eyebrow { font-size: 11px; }
.toolkit-tile ul { display: flex; flex-wrap: wrap; gap: 8px 19px; list-style: none; margin: 14px 0 0; padding: 0; }
.toolkit-tile li { font-size: 21px; font-weight: 600; line-height: 1.3; letter-spacing: -.025em; }
html[data-theme=dark] .intro-tile { background: linear-gradient(135deg,#0b0b0e 35%,#222033); }
html[data-theme=dark] .name-accent { background-image: linear-gradient(100deg,#8fbcff,#da9ee7); }
html[data-theme=dark] .career-highlight>strong { color: #8fbcff; }
html[data-theme=dark] .team-highlight { background: #29203c; }
html[data-theme=dark] .team-highlight>strong,html[data-theme=dark] .team-icon { color: #c5a5ed; }
html[data-theme=dark] .toolkit-mark { color: #bda2f4; }
.work-security { background: var(--security-bg); }
.work-performance { background: var(--performance-bg); }
.work-portal { background: var(--portal-bg); }
.work-card .project-visual { padding-top: 30px; }
.work-card .work-card-content { padding-top: 18px; }
.work-card:nth-child(3) .project-visual { min-height: 310px; }
.work-card:nth-child(3) .work-card-content { justify-content: center; }
.work-card .work-meta { border-top-color: var(--line); }
.personal-projects-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.personal-project-card { padding: 32px; display: flex; flex-direction: column; gap: 20px; overflow-wrap: anywhere; }
.personal-project-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.personal-project-card h3 { font-size: 29px; line-height: 1.2; }
.personal-project-card>p { color: var(--muted); font-size: 16px; }
.personal-project-card .skill-list li { background: var(--chip); }
.personal-project-links { display: flex; flex-wrap: wrap; gap: 14px 25px; margin-top: auto; }
.contact-card { padding: 55px 30px; border-radius: var(--radius); background: var(--surface); }
.contact-actions { flex-wrap: wrap; row-gap: 14px; }

@media (max-width: 1000px) {
  .container,.nav-shell { width: calc(100% - 48px); }
  .section { padding: 74px 0; }
  .work-card-content { padding: 25px 19px 22px; }
  .work-card-content h3 { font-size: 27px; }
  .project-visual { padding: 24px; }
  .performance-number { font-size: 66px; }
  .performance-art { --art-gap: 6px; font-size: 10px; }
  .performance-art>span { padding-inline: 8px; }
  .visual-bottom { flex-wrap: wrap; gap: 5px 12px; }
  .work-meta { flex-wrap: wrap; align-items: flex-start; gap: 12px; }
  .security-diagram { --flow-gap: 27px; }
  .expertise-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .experience-card { padding: 31px; }
  .about-grid { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); }
  .awards-card,.education-card { padding: 28px; }
  .timeline-heading h3 { font-size: 21px; }
  .case-content { gap: 40px; }
}
@media (max-width: 740px) {
  .nav-shell { gap: 18px; }
  .personal-projects-grid { grid-template-columns: 1fr; }
  .site-header nav { gap: 20px; }
  .overview { padding: 59px 0 49px; }
  .section-heading { display: block; margin-bottom: 30px; }
  .section-heading h2 { font-size: 39px; }
  .section-heading>p { margin-top: 18px; max-width: 450px; font-size: 16px; }
  .work-grid { grid-template-columns: 1fr; gap: 22px; }
  .work-card,.work-card:nth-child(1),.work-card:nth-child(2),.work-card:nth-child(3) { grid-column: auto; display: block; }
  .project-visual,.work-card:nth-child(3) .project-visual { height: 290px; min-height: 0; }
  .work-card:nth-child(3) .work-card-content { display: block; padding: 27px 24px 23px; }
  .work-card-content { padding: 27px 24px 23px; }
  .work-meta { flex-wrap: nowrap; align-items: flex-end; }
  .performance-number { font-size: 84px; }
  .performance-art { --art-gap: 12px; font-size: 12px; }
  .performance-art>span { padding: 6px 13px; }
  .security-diagram { --flow-gap: 40px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .contact-card h2 { font-size: 47px; }
  .contact-card>p:not(.copy-status):not(.contact-detail) { font-size: 18px; }
  .site-footer { flex-wrap: wrap; gap: 16px; }
  .site-footer>p { margin-right: auto; }
  .case-heading h1 { font-size: 53px; }
  .case-heading>p:not(.eyebrow) { font-size: 19px; }
  .case-visual { height: 330px; }
  .case-visual .security-diagram { --flow-gap: 55px; }
  .case-visual .performance-number { font-size: 93px; }
  .case-visual .visual-bottom>strong { font-size: 33px; }
  .case-visual .visual-bottom>span { font-size: 13px; }
  .case-content { grid-template-columns: 1fr; gap: 38px; }
  .case-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
  .case-facts>div { margin-bottom: 0; }
  .case-source { grid-column: 1 / -1; }
  .case-next h2 { font-size: 24px; }
}
@media (max-width: 480px) {
  .container,.nav-shell { width: calc(100% - 32px); }
  .nav-shell { height: 56px; gap: 10px; }
  .monogram { font-size: 26px; }
  .site-header nav { font-size: 12px; gap: 13px; }
  .site-header nav a[href="/#expertise"] { display: none; }
  .site-header nav.has-personal-projects a[href="/#about"] { display: none; }
  .personal-project-card { padding: 25px; }
  .overview { padding: 48px 0 37px; }
  .intro-actions { gap: 23px; margin-top: 24px; }
  .button { font-size: 15px; padding: 10px 20px; }
  .text-link { font-size: 15px; }
  .section { padding: 54px 0; }
  .section-heading h2 { font-size: 36px; }
  .section-heading>p { font-size: 16px; }
  .tile { border-radius: 24px; }
  .project-visual { border-radius: 18px; padding: 22px 20px; }
  .project-visual,.work-card:nth-child(3) .project-visual { height: 267px; }
  .visual-kicker { font-size: 10px; }
  .flow-pill { font-size: 11px; padding: 6px 10px; }
  .security-diagram { --flow-gap: 24px; }
  .security-gate svg { width: 76px; }
  .security-gate { font-size: 10px; }
  .visual-bottom>strong { font-size: 29px; }
  .visual-bottom>span { font-size: 11px; }
  .performance-art { --art-gap: 8px; font-size: 10px; margin-top: 32px; }
  .performance-art>span { padding: 6px 9px; }
  .performance-number { font-size: 69px; margin-top: 25px; }
  .performance-caption { font-size: 12px; }
  .portal-art { width: 95%; margin: 19px auto; }
  .portal-top { font-size: 10px; padding: 10px 13px; }
  .portal-body { padding: 13px; }
  .portal-tiles>div { padding: 11px 7px; gap: 7px; }
  .portal-tiles strong { font-size: 9px; }
  .portal-tiles svg { width: 24px; }
  .work-card-content,.work-card:nth-child(3) .work-card-content { padding: 25px 17px 21px; }
  .work-card-content h3 { font-size: 27px; }
  .work-card-content>p:not(.eyebrow) { font-size: 16px; }
  .work-meta { flex-wrap: wrap; gap: 13px; font-size: 12px; }
  .eyebrow { font-size: 11px; }
  .expertise-grid { grid-template-columns: 1fr; gap: 14px; }
  .expertise-card { padding: 27px; }
  .expertise-card h3 { font-size: 23px; margin-bottom: 19px; }
  .skill-list li { font-size: 13px; padding: 6px 9px; }
  .experience-card { padding: 28px 23px; }
  .timeline>li { padding-left: 20px; padding-bottom: 29px; }
  .timeline-heading { display: block; }
  .timeline-heading h3 { font-size: 22px; }
  .timeline-heading>span { display: block; margin-top: 10px; }
  .timeline ul { font-size: 14px; margin-top: 16px; }
  .company { font-size: 13px; }
  .company span { display: block; margin-top: 3px; }
  .about-aside { grid-template-columns: 1fr; gap: 16px; }
  .awards-card,.education-card { padding: 29px 26px; }
  .contact-section { padding: 58px 0 46px; }
  .contact-card h2 { font-size: 41px; }
  .contact-card>p:not(.copy-status):not(.contact-detail) { font-size: 17px; }
  .email-row { font-size: 17px; gap: 5px; }
  .site-footer { font-size: 11px; gap: 15px; padding-bottom: 23px; }
  .footer-name { margin-right: auto; font-size: 13px; }
  .site-footer>p { order: 4; width: 100%; margin: 0; }
  .case-study { padding-top: 27px; padding-bottom: 48px; }
  .case-heading { margin: 37px 0 29px; }
  .case-heading h1 { font-size: 43px; }
  .case-heading>p:not(.eyebrow) { font-size: 18px; }
  .case-role { display: block; }
  .case-role>span { display: block; margin-bottom: 7px; }
  .case-visual { padding: 23px; height: 290px; }
  .case-visual .security-diagram { --flow-gap: 22px; }
  .case-visual .flow-pill { font-size: 11px; padding: 7px 10px; }
  .case-visual .security-gate svg { width: 80px; }
  .case-visual .security-gate span { font-size: 11px; }
  .case-visual .visual-bottom>strong { font-size: 29px; }
  .case-visual .visual-bottom>span { font-size: 12px; }
  .case-visual .performance-art { margin-top: 31px; }
  .case-visual .performance-number { font-size: 74px; margin-top: 25px; }
  .case-visual .performance-caption { font-size: 12px; }
  .case-visual .portal-art { margin-top: 20px; }
  .case-visual .portal-body { padding: 14px; }
  .case-visual .portal-tiles>div { padding: 13px 8px; }
  .case-content { margin: 37px 0 40px; gap: 33px; }
  .case-facts { gap: 23px; }
  .case-facts>div>strong { font-size: 30px; }
  .case-facts .skill-list li { font-size: 11px; }
  .case-facts .skill-list { gap: 6px; }
  .case-story h2 { font-size: 27px; }
  .case-story section>p,.case-story ol { font-size: 17px; }
  .case-next { flex-direction: column; align-items: flex-start; padding: 29px; gap: 25px; }
  .error-page h1 { font-size: 38px; }
}
@media (max-width: 360px) {
  .flow-pill { padding-inline: 8px; font-size: 10px; }
  .security-diagram { --flow-gap: 17px; }
  .performance-number { font-size: 59px; }
  .performance-art { --art-gap: 5px; }
  .performance-art>span { padding-inline: 7px; }
  .portal-body { padding: 11px; }
  .portal-tiles>div { padding-inline: 6px; gap: 5px; }
  .portal-tiles strong { font-size: 8px; }
  .portal-tiles svg { width: 21px; }
  .case-visual .security-diagram { --flow-gap: 12px; }
  .case-visual .flow-pill { font-size: 10px; padding-inline: 7px; }
  .case-visual .performance-number { font-size: 62px; }
  .case-visual .portal-tiles>div { padding-inline: 5px; }
}

@media (max-width: 1000px) {
  .keynote-grid { grid-template-columns: 1.15fr 1.15fr 1fr 1fr; grid-template-rows: minmax(290px,auto) minmax(160px,auto); gap: 13px; }
  .intro-tile { padding: 31px; }
  .intro-tile h1 { font-size: 63px; }
  .summary-copy { font-size: 16px; }
  .career-highlight { padding-inline: 15px; }
  .career-highlight>strong { font-size: 77px; }
  .team-highlight>strong { font-size: 29px; }
  .career-highlight h2 { font-size: 18px; }
  .toolkit-tile { padding: 24px; gap: 21px; }
  .toolkit-tile li { font-size: 19px; }
  .toolkit-mark { font-size: 39px; }
}
@media (max-width: 740px) {
  .overview { padding: 24px 0 8px; }
  .keynote-grid { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: auto; gap: 13px; }
  .intro-tile { grid-column: 1 / -1; grid-row: auto; padding: 33px; }
  .intro-tile h1 { font-size: clamp(50px,9vw,70px); margin-top: 28px; }
  .summary-copy { max-width: 570px; }
  .career-highlight { min-height: 250px; padding: 26px 17px; }
  .career-highlight>strong { font-size: 72px; }
  .team-highlight>strong { font-size: 29px; }
  .career-highlight h2 { font-size: 18px; }
  .toolkit-tile { grid-column: 1 / -1; padding: 28px; }
  .work-grid { gap: 13px; }
  .section { padding: 47px 0; }
  .contact-card { padding: 40px 24px; }
}
@media (max-width: 480px) {
  .intro-tile { padding: 28px 25px; }
  .intro-tile .eyebrow { font-size: 10px; line-height: 1.65; }
  .intro-tile h1 { font-size: 53px; }
  .summary-copy { font-size: 16px; }
  .intro-tile .intro-actions { gap: 22px; }
  .career-highlight { min-height: 220px; padding: 25px 15px; }
  .career-highlight>strong { font-size: 64px; }
  .career-highlight h2 { font-size: 16px; }
  .career-highlight p { font-size: 12px; }
  .team-icon { width: 70px; height: 51px; }
  .team-highlight>strong { font-size: 25px; }
  .toolkit-tile { gap: 19px; padding: 26px 23px; }
  .toolkit-tile li { font-size: 18px; }
  .toolkit-mark { font-size: 37px; }
  .section-heading h2 { font-size: 34px; }
}
@media (max-width: 360px) {
  .intro-tile h1 { font-size: 49px; }
  .career-highlight { padding-inline: 11px; }
  .team-highlight>strong { font-size: 23px; }
  .toolkit-tile { gap: 17px; padding-inline: 21px; }
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .theme-sun { display: block; }
  html:not([data-theme]) .theme-moon { display: none; }
  html:not([data-theme]) .intro-tile { background: linear-gradient(135deg,#0b0b0e 35%,#222033); }
  html:not([data-theme]) .name-accent { background-image: linear-gradient(100deg,#8fbcff,#da9ee7); }
  html:not([data-theme]) .career-highlight>strong { color: #8fbcff; }
  html:not([data-theme]) .team-highlight { background: #29203c; }
  html:not([data-theme]) .team-highlight>strong,html:not([data-theme]) .team-icon { color: #c5a5ed; }
  html:not([data-theme]) .toolkit-mark { color: #bda2f4; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*:before,*:after { animation: none!important; transition: none!important; }
}
@media (forced-colors: active) {
  .tile { border: 1px solid CanvasText; }
  .name-accent { background: none; -webkit-text-fill-color: CanvasText; color: CanvasText; }
  .button { border: 1px solid ButtonText; }
}
@media print {
  body { background: #fff; color: #000; }
  .container { width: 100%; }
  .site-header,.intro-actions,.project-visual,.contact-actions,.copy-email,.case-next { display: none!important; }
  .overview,.section { padding: 20px 0; }
  .section-soft,.tile { background: #fff; color: #000; }
  .tile { border: 1px solid #ccc; break-inside: avoid; }
  .intro h1,.case-heading h1 { font-size: 38px; }
  .section-heading h2 { font-size: 30px; }
  .work-grid { display: block; }
  .work-card,.work-card:nth-child(3) { display: block; margin-bottom: 16px; }
  .case-content { display: block; }
  .case-facts { margin-bottom: 30px; }
  .in-view { animation: none; }
}
