@font-face {
  font-family: 'Sanchez';
  src: url('/assets/fonts/sanchez-regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #24262d;
  --muted: #626774;
  --subtle: #8a8e99;
  --paper: #fff;
  --soft: #f3f7fd;
  --border: #dce6f5;
  --blue: #245ec9;
  --hero-copy: #4f5f78;
  --accent-surface: #e9f1ff;
  --accent-border: #bfd2f5;
  --card-surface: #fff;
  --education-accent: #245ec9;
  --education-fill: #245ec9;
  --education-surface: #f0f5ff;
  --education-border: #adc8f7;
  --work-accent: #086f83;
  --work-fill: #086f83;
  --work-surface: #eef9fb;
  --work-border: #addde4;
  --purple: #7b65ad;
  --radius: 22px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, 'Helvetica Neue', Arial, sans-serif;
  --identity-font: 'Sanchez', Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 102px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body, button, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, a { touch-action: manipulation; }
button { border: 0; }
button:focus-visible, a:focus-visible { outline: 3px solid #5572cb; outline-offset: 5px; }
::selection { background: #e0e6fa; color: #20232c; }
svg { display: block; flex-shrink: 0; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.14; }
h2 { font-size: clamp(32px, 3.4vw, 46px); letter-spacing: -1.8px; }
h3 { letter-spacing: -.5px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.container { width: min(1184px, calc(100% - 96px)); margin-inline: auto; }
.section { padding-block: 110px; }
.soft-section { background: var(--soft); }
.icon { width: 22px; height: 22px; }
.eyebrow { font-size: 11px; font-weight: 650; line-height: 1.5; letter-spacing: 2.1px; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; }
.section-heading { margin-bottom: 46px; }
.section-heading h2 { max-width: 800px; }
.section-intro { color: var(--muted); margin-top: 18px; font-size: 17px; max-width: 680px; }
.centered { text-align: center; }
.centered h2, .centered .section-intro { margin-inline: auto; }
.skip-link { position: fixed; left: 24px; top: 12px; z-index: 100; padding: 12px 20px; border-radius: 10px; background: var(--ink); color: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: fixed; z-index: 50; inset: 0 0 auto; height: 82px; background: rgba(255,255,255,.72); border-bottom: 1px solid transparent; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); transition: background .25s, border-color .25s, box-shadow .25s; }
.site-header.scrolled { background: rgba(255,255,255,.9); border-color: rgba(226,229,239,.75); box-shadow: 0 4px 24px #25294303; }
.nav-shell { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; white-space: nowrap; font-family: var(--identity-font); font-weight: 700; font-size: 21px; letter-spacing: -.5px; line-height: 1.2; }
.brand-dot { color: inherit; }
.desktop-nav { display: flex; align-items: center; gap: 30px; }
.desktop-nav a { position: relative; font-size: 13px; color: #696d78; transition: color .2s; padding-block: 12px; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--blue); }
.desktop-nav a.active::after { content: ''; position: absolute; inset-inline: 0; bottom: 5px; height: 2px; border-radius: 2px; background: var(--blue); }
.nav-controls { display: flex; align-items: center; gap: 14px; }
.theme-toggle { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--accent-border); background: var(--accent-surface); color: var(--blue); border-radius: 10px; transition: background .2s, border-color .2s; }
.theme-toggle:hover { background: #dfeaff; border-color: #99b6ed; }
.theme-toggle .icon { width: 17px; height: 17px; }
.theme-toggle .theme-sun { display: none; }
.no-js .theme-toggle { display: none; }
.locale-switch { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border: 1px solid #e8eaf0; background: #f1f2f6a6; border-radius: 10px; }
.locale-switch a { font-size: 10px; font-weight: 650; line-height: 1; min-width: 30px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 6px; color: #686d7c; }
.locale-switch a[aria-current] { background: var(--accent-surface); color: var(--blue); box-shadow: 0 1px 4px #18244810; }
.menu-toggle { display: none; padding: 11px; background: transparent; border-radius: 8px; }
.menu-close-icon { display: none; }
.menu-toggle[aria-expanded="true"] .menu-open-icon { display: none; }
.menu-toggle[aria-expanded="true"] .menu-close-icon { display: block; }
.mobile-menu { background: #fff; border-bottom: 1px solid var(--border); padding: 8px 28px 24px; box-shadow: 0 20px 30px #24294206; }
.mobile-menu a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 2px; font-size: 17px; border-bottom: 1px solid #f0f1f5; }
.mobile-menu .icon { width: 17px; color: var(--subtle); }
.hero { position: relative; min-height: 790px; min-height: min(870px, 100svh); overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-top: 105px; background: linear-gradient(180deg, #fbfdff, #f3f7ff); border-bottom: 1px solid #dce8fc; }
.hero-content { position: relative; z-index: 2; text-align: center; padding-top: 30px; padding-bottom: 105px; }
.hero-eyebrow { font-size: 12px; font-weight: 550; text-transform: uppercase; letter-spacing: 2.5px; color: var(--blue); margin-bottom: 30px; }
.hero h1 { font-family: var(--identity-font); font-size: clamp(86px, 9vw, 128px); font-weight: 400; line-height: 1.08; letter-spacing: -4.8px; }
.hero-dot { color: inherit; }
.hero-role { font-size: clamp(30px, 3.3vw, 46px); letter-spacing: -1.8px; font-weight: 500; line-height: 1.24; margin-top: 20px; }
.hero-description { max-width: 596px; margin: 26px auto 0; color: var(--hero-copy); font-size: 18px; line-height: 1.7; letter-spacing: -.1px; text-wrap: pretty; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 13px; margin-top: 35px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; border-radius: 12px; padding: 15px 23px; min-height: 52px; font-size: 13px; line-height: 1.25; font-weight: 550; transition: transform .22s, box-shadow .22s, background .22s; }
.button .icon { width: 18px; height: 18px; }
.button-primary { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; border: 1px solid #2154c9; box-shadow: 0 6px 18px #2563eb25; }
.button-primary:hover { background: linear-gradient(135deg, #1d4ed8, #1e40af); box-shadow: 0 8px 24px #2563eb35; transform: translateY(-2px); }
.button-secondary { background: #ffffffb3; color: #28589e; border: 1px solid #b8cff4; }
.button-secondary:hover { background: #f0f5ff; transform: translateY(-2px); box-shadow: 0 5px 16px #2563eb12; }
.button .external-icon { width: 12px; height: 12px; margin-left: 4px; color: #838999; }
.hero-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-size: 11px; color: #73798a; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: #2563eb; box-shadow: 0 0 0 3px #2563eb15; }
.hero-ambient { pointer-events: none; position: absolute; inset: 0; }
.ambient { position: absolute; border-radius: 50%; filter: blur(65px); }
.ambient-blue { width: 680px; height: 300px; left: calc(50% - 670px); top: 46%; background: #94b7f85c; transform: rotate(-22deg); }
.ambient-sky { width: 640px; height: 330px; left: calc(50% + 20px); top: 41%; background: #a6dff84d; transform: rotate(-22deg); }
.ambient-center { width: 490px; height: 220px; left: calc(50% - 245px); bottom: 70px; background: #dce3f723; }
.hero-bottom { position: absolute; bottom: 27px; left: 50%; transform: translateX(-50%); display: flex; justify-content: center; align-items: center; gap: 20px; font-size: 10px; color: #7b8190; letter-spacing: .15px; }
.hero-bottom a { display: grid; place-items: center; padding: 10px; }
.hero-bottom .icon { width: 17px; height: 17px; }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 100px; align-items: center; }
.about-copy > p { font-size: 19px; line-height: 1.75; letter-spacing: -.25px; color: #656a76; }
.about-focus { display: flex; align-items: center; gap: 16px; margin-top: 29px; padding-top: 25px; border-top: 1px solid var(--border); }
.about-focus > .icon { color: var(--blue); width: 28px; height: 28px; }
.about-focus span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #858a96; margin-bottom: 3px; }
.about-focus strong { font-size: 13px; font-weight: 550; color: #484e5d; }
.timeline-legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; font-weight: 600; margin: -14px 0 33px; }
.timeline-legend span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid; border-radius: 8px; }
.timeline-legend .legend-education { color: var(--education-accent); background: var(--education-surface); border-color: var(--education-border); }
.timeline-legend .legend-work { color: var(--work-accent); background: var(--work-surface); border-color: var(--work-border); }
.timeline-legend .icon { width: 14px; height: 14px; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.timeline::before { content: ''; position: absolute; left: 22px; right: 22px; top: 21px; height: 2px; background: linear-gradient(90deg, #96b8ed, #83c8d5); }
.timeline-item { position: relative; display: flex; flex-direction: column; --event-accent: var(--education-accent); --event-fill: var(--education-fill); --event-surface: var(--education-surface); --event-border: var(--education-border); }
.timeline-item.work { --event-accent: var(--work-accent); --event-fill: var(--work-fill); --event-surface: var(--work-surface); --event-border: var(--work-border); }
.timeline-marker { position: relative; align-self: flex-start; width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid var(--event-fill); border-radius: 13px; background: var(--event-fill); box-shadow: 0 0 0 5px var(--soft); margin-bottom: 23px; color: #fff; }
.timeline-marker .icon { width: 19px; height: 19px; }
.timeline-item.work .timeline-marker { color: #fff; }
.timeline-card { background: var(--event-surface); border: 1px solid var(--event-border); border-top: 4px solid var(--event-fill); border-radius: 16px; padding: 22px 20px; flex: 1; display: flex; flex-direction: column; box-shadow: 0 3px 10px #2563eb05; transition: transform .25s, box-shadow .25s; }
.timeline-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px #27305406; }
.timeline-period { font-size: 10px; line-height: 1.55; color: #717787; margin-bottom: 13px; min-height: 30px; }
.type-label { align-self: flex-start; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .7px; padding: 4px 8px; border-radius: 5px; background: var(--event-fill); color: #fff; margin-bottom: 11px; }
.timeline h3 { font-size: 16px; line-height: 1.35; margin-bottom: 13px; letter-spacing: -.25px; min-height: 43px; }
.timeline-place { font-size: 11px; color: #5c6270; line-height: 1.65; min-height: 54px; }
.timeline-place span { display: block; color: #7d8290; }
.timeline-description { font-size: 11px; line-height: 1.65; color: #777d8b; margin: 15px 0 9px; }
.current-label { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; font-size: 9px; line-height: 1.7; font-weight: 550; color: #5574a2; border: 1px solid #e0e7f5; background: #f4f7fd; padding: 2px 8px; border-radius: 30px; white-space: nowrap; }
.timeline .current-label { margin-top: auto; }
.experience-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; align-items: stretch; }
.experience-section .eyebrow { color: var(--work-accent); }
.experience-card { border: 1px solid var(--work-border); border-top: 4px solid var(--work-fill); border-radius: var(--radius); padding: 32px; background: var(--card-surface); transition: transform .25s, box-shadow .25s; }
.experience-card:hover { transform: translateY(-3px); box-shadow: 0 9px 28px #28345707; }
.experience-featured { background: linear-gradient(140deg, var(--work-surface), var(--card-surface) 75%); }
.experience-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 26px; }
.icon-tile { display: inline-flex; align-items: center; justify-content: center; width: 43px; height: 43px; border-radius: 12px; border: 1px solid var(--accent-border); color: var(--blue); background: var(--accent-surface); flex-shrink: 0; }
.experience-card .icon-tile { color: var(--work-accent); background: var(--work-surface); border-color: var(--work-border); }
.icon-tile .icon { width: 22px; height: 22px; }
.experience-period { font-size: 11px; color: #7f8592; text-align: right; }
.experience-company { display: flex; align-items: center; gap: 13px; }
.experience-company h3 { font-size: 30px; letter-spacing: -.9px; }
.experience-company .current-label { align-self: center; }
.company-city { font-size: 12px; color: #888e9b; margin-top: 4px; }
.experience-role { font-weight: 500; font-size: 15px; line-height: 1.45; margin-top: 13px; }
.experience-description { font-size: 13px; color: #767c88; margin-top: 16px; max-width: 500px; line-height: 1.7; }
.mission-list { margin-top: 21px; display: grid; gap: 10px; }
.mission-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: #636977; line-height: 1.7; }
.mission-list .icon { width: 13px; height: 13px; margin-top: 4px; color: #8190ad; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 10px; color: #636b7b; line-height: 1.6; padding: 5px 9px; background: #f6f7fa; border: 1px solid #eceef4; border-radius: 6px; }
.experience-card .tags { margin-top: 26px; }
.skills-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.skill-card { padding: 29px; background: #fff; border: 1px solid #d9e5f8; border-radius: 18px; transition: box-shadow .25s, transform .25s, border-color .25s; }
.skill-card:hover { transform: translateY(-3px); border-color: #acc6f1; box-shadow: 0 8px 24px #2563eb0f; }
.skill-card .icon-tile { margin-bottom: 24px; background: var(--accent-surface); border-color: var(--accent-border); }
.skill-card h3 { font-size: 17px; line-height: 1.4; margin-bottom: 9px; }
.skill-card p { font-size: 12px; color: #777d8b; line-height: 1.7; }
.skill-card .tags { margin-top: 22px; }
.skill-card .tags li { font-size: 10px; }
.skill-wide { grid-column: 1 / -1; padding: 27px 30px; display: flex; align-items: flex-start; gap: 23px; background: #fafbfe; }
.skill-wide .icon-tile { margin: 4px 0 0; }
.skill-wide .skill-content { display: grid; grid-template-columns: 1fr auto; gap: 4px 30px; align-items: center; width: 100%; }
.skill-wide h3 { grid-column: 1; margin: 0; }
.skill-wide p { grid-column: 1; max-width: 740px; }
.skill-wide .tags { grid-column: 2; grid-row: 1 / 3; margin: 0; max-width: 240px; justify-content: flex-end; }
.technology-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 15px; }
.technology-card { text-align: center; padding: 29px 8px 24px; border: 1px solid var(--border); border-radius: 17px; background: #fff; transition: transform .22s, box-shadow .22s, border-color .22s; }
.technology-card:hover { transform: translateY(-4px); box-shadow: 0 7px 22px #2563eb0f; border-color: #acc6f1; }
.tech-mark { width: 51px; height: 51px; margin: 0 auto 21px; }
.technology-card h3 { font-size: 13px; font-weight: 600; letter-spacing: -.2px; }
.technology-card p { font-size: 10px; color: #7d8391; margin-top: 7px; }
.homelab-section { padding-bottom: 30px; }
.homelab-card { position: relative; border: 1px solid #bed3f4; border-radius: 27px; background: linear-gradient(115deg, #edf4ff, #eef9fb 100%); padding: 58px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 35px; align-items: center; overflow: hidden; }
.homelab-card .eyebrow { font-size: 10px; }
.homelab-card h2 { font-size: clamp(31px, 3.3vw, 43px); letter-spacing: -1.6px; }
.homelab-description { font-size: 14px; color: #70768a; line-height: 1.8; margin-top: 24px; max-width: 560px; }
.homelab-card .tags { margin-top: 24px; }
.homelab-card .tags li { background: #ffffff87; border-color: #e3e7f1; }
.homelab-footnote { font-size: 11px; color: #7c8395; margin-top: 25px; }
.homelab-illustration { position: relative; min-width: 0; height: 360px; display: grid; place-items: center; }
.homelab-orbit { position: absolute; width: 300px; height: 300px; border: 1px solid #bdd2f47f; border-radius: 50%; box-shadow: 0 0 0 30px #c5d8f420, 0 0 0 60px #c5d8f40e; background: radial-gradient(ellipse at center, #95b4ef28, transparent 70%); }
.lab-stack { position: relative; width: 230px; height: 240px; margin-top: -12px; }
.lab-layer { position: absolute; inset: 0; border: 1px solid #bed1ee; border-radius: 22px; background: #e0edff; box-shadow: 0 9px 25px #2563eb0b; }
.lab-base { transform: translate(18px, 22px) rotate(9deg); opacity: .8; }
.lab-middle { transform: translate(-12px, 10px) rotate(-8deg); background: #ecf4ff; }
.lab-front { position: relative; height: 100%; padding: 24px 23px; border: 1px solid #e4e3f1; border-radius: 22px; background: #ffffffd9; box-shadow: 0 10px 40px #716ea011; transform: rotate(-2deg); backdrop-filter: blur(12px); }
.lab-symbol { display: grid; place-items: center; background: linear-gradient(135deg, #d8e8ff, #ddf2f7); color: #245ec9; width: 45px; height: 45px; border: 1px solid #bdd3f4; border-radius: 13px; margin-bottom: 9px; }
.lab-symbol .icon { width: 23px; height: 23px; }
.lab-label { font-size: 9px; font-weight: 600; color: #7d8196; margin-bottom: 12px; display: block; }
.lab-row { display: flex; align-items: center; gap: 10px; font-size: 11px; color: #6e7387; height: 34px; border-bottom: 1px solid #ececf4; }
.lab-row:last-child { border: 0; }
.lab-row .icon { width: 14px; height: 14px; color: #858db2; }
.lab-indicator { width: 4px; height: 4px; background: #9aa8c6; border-radius: 50%; margin-left: auto; }
.lab-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; bottom: 38px; right: 12px; background: #ffffffec; border: 1px solid #e3e4f0; border-radius: 11px; padding: 11px 15px; color: #7d7f99; font-size: 10px; box-shadow: 0 6px 14px #60658205; transform: rotate(3deg); }
.lab-chip .icon { width: 17px; height: 17px; }
.project-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.project-grid .text-link { display: inline-flex; gap: 9px; margin-top: 25px; font-size: 12px; }
.project-grid .text-link .icon { width: 14px; height: 14px; }
.contact-section { text-align: center; padding-top: 123px; padding-bottom: 126px; }
.contact-heading h2 { font-size: clamp(42px, 4.8vw, 64px); letter-spacing: -2.7px; }
.contact-heading > p:last-child { font-size: 16px; color: #7a7f8d; margin-top: 20px; }
.contact-options { display: flex; justify-content: center; gap: 18px; margin-top: 42px; }
.contact-option { display: flex; align-items: center; gap: 18px; min-width: 290px; max-width: 400px; padding: 22px 24px; text-align: left; background: #fff; border: 1px solid #c6d8f5; border-radius: 17px; transition: transform .22s, border-color .22s, box-shadow .22s; }
.contact-option:hover { transform: translateY(-3px); border-color: #91b3ec; box-shadow: 0 7px 22px #2563eb0f; }
.contact-icon { display: grid; place-items: center; width: 42px; height: 42px; color: var(--blue); background: var(--accent-surface); border-radius: 12px; flex-shrink: 0; }
.contact-icon .icon { width: 20px; height: 20px; }
.contact-label { min-width: 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.contact-label strong { font-size: 14px; font-weight: 600; }
.contact-label > span { font-size: 10px; color: #89909d; overflow-wrap: anywhere; }
.contact-option > .icon { width: 15px; height: 15px; color: #a2a7b2; margin-left: auto; }
.contact-noscript { font-size: 12px; color: #7a7f8d; margin-top: 20px; }
.site-footer { border-top: 1px solid var(--border); padding-top: 36px; padding-bottom: 28px; }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-main .brand { font-size: 19px; }
.footer-main p { font-size: 11px; color: #818795; margin-top: 9px; }
.footer-links { display: flex; align-items: center; gap: 24px; }
.text-link { font-size: 11px; color: #7b8190; padding: 8px 0; background: transparent; transition: color .2s; }
.text-link:hover { color: #3f4f75; }
.back-top { display: grid; place-items: center; width: 36px; height: 36px; background: #f7f8fb; border: 1px solid #e8eaf1; border-radius: 11px; color: #838b9c; margin-left: 7px; }
.back-top .icon { width: 16px; height: 16px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #8b909c; font-size: 9px; margin-top: 32px; }
.notice { position: fixed; z-index: 80; bottom: 22px; left: 50%; transform: translateX(-50%); max-width: min(520px, calc(100% - 32px)); display: flex; gap: 15px; align-items: center; padding: 15px 18px 15px 22px; background: #fff; color: #505a70; border: 1px solid #dfe4ef; border-radius: 14px; box-shadow: 0 10px 50px #2f416220; font-size: 13px; }
.notice button { display: grid; place-items: center; padding: 5px; background: transparent; color: #7d8494; border-radius: 5px; }
.notice .icon { width: 16px; height: 16px; }
.not-found { display: flex; min-height: 100svh; flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 80px; }
.not-found .brand { margin-bottom: 55px; }
.not-found-code { color: #bdc7e4; font-size: 70px; font-weight: 650; }
.not-found h1 { font-size: clamp(28px,4vw,45px); letter-spacing: -1px; }
.not-found p { color: var(--muted); margin-block: 20px 35px; }
/* Small text keeps AA contrast on white and pale surfaces. */
.hero-status, .hero-bottom, .about-focus span, .timeline-legend, .timeline-period,
.timeline-place span, .timeline-description, .experience-period, .company-city,
.experience-description, .skill-card p, .technology-card p, .homelab-description,
.homelab-footnote, .contact-heading > p:last-child, .contact-label > span,
.footer-main p, .footer-bottom, .text-link, .lab-label, .lab-chip { color: #687082; }
.type-label, .work .type-label { color: #fff; }
.current-label { color: #506b96; }
/* Content remains visible when JavaScript is unavailable or motion is reduced. */
@media (prefers-reduced-motion: no-preference) {
  html.motion-ready .reveal { opacity: 0; transform: translateY(16px); transition: opacity .65s ease var(--delay, 0ms), transform .65s ease var(--delay, 0ms); }
  html.motion-ready .reveal.is-visible { opacity: 1; transform: none; }
}
@media (min-width: 1600px) { .hero-content { padding-top: 15px; } .hero { min-height: 870px; } }
@media (max-width: 1100px) {
  .container { width: calc(100% - 72px); }
  .desktop-nav { gap: 21px; }
  .nav-shell { gap: 20px; }
  .about-grid { gap: 52px; }
  .timeline { gap: 11px; }
  .timeline-card { padding: 19px 14px; }
  .timeline h3 { font-size: 15px; }
  .experience-card { padding: 28px; }
  .skills-grid { gap: 14px; }
  .skill-card { padding: 25px; }
  .homelab-card { padding: 44px; gap: 20px; }
  .lab-stack { width: 205px; }
  .lab-front { padding: 22px 21px; }
  .lab-chip { right: -4px; }
}
@media (max-width: 900px) {
  .container { width: calc(100% - 56px); }
  .desktop-nav { gap: 16px; }
  .desktop-nav a { font-size: 11px; }
  .nav-shell { gap: 15px; }
  .brand { font-size: 19px; }
  .section { padding-block: 85px; }
  .hero { min-height: 790px; }
  .hero h1 { font-size: 100px; letter-spacing: -3.8px; }
  .hero-role { font-size: 35px; }
  .hero-bottom { font-size: 9px; }
  .about-grid { gap: 38px; grid-template-columns: .95fr 1.05fr; }
  .about-copy > p { font-size: 16px; }
  h2 { font-size: 34px; letter-spacing: -1.2px; }
  .timeline { display: flex; overflow-x: auto; gap: 16px; padding: 6px 0 14px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #d8deec transparent; }
  .timeline::before { top: 27px; width: calc(5 * 218px - 34px); right: auto; }
  .timeline-item { flex: 0 0 202px; scroll-snap-align: start; }
  .timeline-card { padding: 21px 19px; }
  .timeline h3 { font-size: 16px; }
  .experience-grid { grid-template-columns: 1.15fr 1fr; gap: 16px; }
  .experience-card { padding: 25px; }
  .experience-top { gap: 10px; }
  .experience-period { font-size: 10px; }
  .skills-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .skill-wide .skill-content { display: block; }
  .skill-wide h3 { margin-bottom: 8px; }
  .skill-wide .tags { margin-top: 17px; max-width: none; justify-content: flex-start; }
  .technology-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
  .technology-card { padding-block: 24px; }
  .homelab-card { padding: 36px; grid-template-columns: 1.2fr .8fr; gap: 15px; }
  .homelab-illustration { height: 340px; }
  .homelab-orbit { width: 245px; height: 245px; }
  .lab-stack { width: 180px; height: 225px; }
  .lab-front { padding: 20px 16px; }
  .lab-label { font-size: 8px; }
  .lab-chip { right: -10px; bottom: 26px; padding: 9px 12px; }
  .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .contact-section { padding-block: 105px; }
  .contact-option { min-width: 270px; padding: 21px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 90px; }
  .container { width: calc(100% - 44px); }
  .site-header { height: 72px; }
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  html.no-js .menu-toggle { display: none; }
  html.no-js .site-header { position: static; height: auto; }
  html.no-js .nav-shell { height: 72px; }
  html.no-js .mobile-menu { display: block !important; }
  .nav-controls { gap: 8px; }
  .locale-switch a { min-width: 28px; }
  .section { padding-block: 72px; }
  .hero { min-height: 740px; min-height: max(720px, 94svh); padding-top: 80px; }
  .hero-content { padding-top: 4px; padding-bottom: 95px; }
  .hero-eyebrow { font-size: 9px; letter-spacing: 1.8px; margin-bottom: 29px; }
  .hero h1 { font-size: clamp(76px, 17vw, 110px); letter-spacing: -3px; }
  .hero-role { font-size: clamp(21px, 5vw, 32px); letter-spacing: -.9px; margin-top: 20px; white-space: nowrap; }
  .hero-description { font-size: 16px; line-height: 1.75; max-width: 430px; margin-top: 25px; }
  .hero-actions { gap: 10px; margin-top: 30px; }
  .button { padding: 14px 19px; border-radius: 11px; font-size: 12px; min-height: 50px; gap: 9px; }
  .button .external-icon { margin-left: 0; width: 11px; }
  .hero-status { margin-top: 24px; font-size: 10px; }
  .hero-bottom { display: flex; justify-content: center; gap: 15px; bottom: 25px; }
  .hero-bottom > span { display: none; }
  .hero-bottom a { border: 1px solid #e5e7f1; border-radius: 50%; background: #ffffff6b; width: 35px; height: 35px; padding: 8px; }
  .ambient { filter: blur(50px); }
  .ambient-blue { width: 460px; height: 340px; left: -230px; top: 32%; background: #94b7f852; }
  .ambient-sky { width: 420px; height: 300px; left: 160px; top: 32%; background: #a6dff847; }
  .about-grid { grid-template-columns: 1fr; gap: 25px; }
  h2 { font-size: 33px; letter-spacing: -1.2px; }
  .eyebrow { font-size: 10px; letter-spacing: 1.8px; margin-bottom: 16px; }
  .about-copy > p { font-size: 16px; line-height: 1.8; }
  .about-focus { margin-top: 23px; padding-top: 22px; }
  .section-heading { margin-bottom: 31px; }
  .section-intro { font-size: 15px; line-height: 1.75; margin-top: 16px; }
  .timeline-legend { margin: -7px 0 30px; gap: 22px; }
  .timeline { display: grid; grid-template-columns: 1fr; gap: 18px; overflow: visible; padding: 0; }
  .timeline::before { left: 19px; top: 18px; bottom: 18px; width: 1px; height: auto; }
  .timeline-item { display: grid; grid-template-columns: 39px 1fr; gap: 19px; min-width: 0; }
  .timeline-marker { width: 39px; height: 39px; margin-bottom: 0; margin-top: 19px; border-radius: 12px; }
  .timeline-card { padding: 23px; border-radius: 17px; }
  .timeline-period { margin-bottom: 10px; min-height: 0; font-size: 10px; }
  .timeline h3 { min-height: 0; margin-bottom: 11px; font-size: 17px; }
  .timeline-place { min-height: 0; font-size: 12px; }
  .timeline-description { font-size: 12px; margin: 13px 0 0; }
  .timeline .current-label { margin-top: 14px; }
  .experience-grid { grid-template-columns: 1fr; gap: 18px; }
  .experience-card { padding: 27px; }
  .experience-top { margin-bottom: 24px; }
  .experience-company h3 { font-size: 28px; }
  .experience-description { font-size: 13px; }
  .mission-list li { font-size: 12px; }
  .skills-grid { gap: 13px; }
  .skill-card { padding: 22px 20px; }
  .skill-card .icon-tile { width: 38px; height: 38px; margin-bottom: 21px; }
  .skill-card h3 { font-size: 16px; }
  .skill-card .tags { gap: 5px; }
  .skill-card .tags li { font-size: 9px; padding: 4px 7px; }
  .skill-wide { padding: 26px; gap: 18px; }
  .skill-wide .icon-tile { margin: 2px 0 0; }
  .skill-wide h3 { font-size: 16px; }
  .technology-grid { gap: 12px; }
  .technology-card { border-radius: 15px; padding: 22px 7px 20px; }
  .tech-mark { width: 44px; height: 44px; margin-bottom: 17px; }
  .technology-card h3 { font-size: 12px; }
  .technology-card p { font-size: 10px; }
  .homelab-card { grid-template-columns: 1fr; padding: 32px 27px 21px; border-radius: 23px; gap: 15px; }
  .homelab-card h2 { font-size: 31px; letter-spacing: -1.2px; }
  .homelab-description { font-size: 13px; }
  .homelab-card .tags li { font-size: 9px; padding: 4px 8px; }
  .homelab-footnote { font-size: 10px; }
  .homelab-illustration { height: 290px; max-width: 310px; width: 100%; margin: 10px auto 0; }
  .lab-stack { width: 203px; height: 235px; margin-top: -10px; }
  .lab-front { padding: 21px 20px; }
  .lab-chip { right: 0; bottom: 7px; }
  .project-grid { grid-template-columns: 1fr; }
  .contact-section { padding-top: 91px; padding-bottom: 86px; }
  .contact-heading h2 { font-size: 41px; letter-spacing: -1.9px; }
  .contact-heading > p:last-child { font-size: 14px; max-width: 320px; margin: 19px auto 0; line-height: 1.8; }
  .contact-options { flex-direction: column; gap: 12px; align-items: center; margin-top: 30px; }
  .contact-option { width: min(100%, 370px); min-width: 0; padding: 20px 22px; gap: 17px; }
  .footer-main { align-items: flex-start; }
  .footer-links { gap: 17px; }
  .footer-main p { font-size: 10px; max-width: 150px; line-height: 1.7; }
  .footer-bottom { align-items: flex-start; gap: 15px; font-size: 9px; }
  .footer-bottom > span:last-child { text-align: right; max-width: 130px; }
}
@media (max-width: 420px) {
  .container { width: calc(100% - 36px); }
  .hero h1 { font-size: 78px; letter-spacing: -2.6px; }
  .hero-role { font-size: clamp(18px, 5.6vw, 23px); letter-spacing: -.8px; }
  .hero-description { font-size: 15px; max-width: 335px; }
  .hero-eyebrow { letter-spacing: 1.35px; }
  .hero-actions .button { padding-inline: 16px; font-size: 11px; }
  .hero-actions .button .icon { width: 15px; height: 15px; }
  .hero-actions .external-icon { display: none; }
  .skills-grid { grid-template-columns: 1fr; }
  .skill-card { padding: 27px; }
  .skill-card h3 { font-size: 17px; }
  .skill-card .tags li { font-size: 10px; }
  .skill-wide { gap: 16px; padding: 24px; }
  .skill-wide h3 { font-size: 16px; }
  .timeline-item { gap: 15px; }
  .timeline-card { padding: 21px 18px; }
  .technology-grid { gap: 9px; }
  .technology-card h3 { font-size: 11px; }
  .technology-card p { font-size: 10px; }
  .contact-heading h2 { font-size: 36px; }
  .footer-links { gap: 13px; }
  .footer-links .back-top { margin-left: 0; width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .site-header, .hero-ambient, .hero-bottom, .notice, .back-top { display: none !important; }
  .hero { min-height: 0; padding-top: 45px; }
  .hero-content { padding-bottom: 45px; }
  .section { padding-block: 35px; }
  .container { width: 100%; }
  .reveal { opacity: 1 !important; transform: none !important; }
  article { break-inside: avoid; }
}

/* Dark blue palette; event colors use the same semantic tokens as light mode. */
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e8eaf1;
  --muted: #afb5c5;
  --subtle: #9ba3b8;
  --paper: #121b2c;
  --soft: #172234;
  --border: #2d405f;
  --blue: #9bbdff;
  --hero-copy: #c0cee5;
  --accent-surface: #21365a;
  --accent-border: #3b5c90;
  --card-surface: #202a39;
  --education-accent: #adc8ff;
  --education-fill: #2864c9;
  --education-surface: #202e47;
  --education-border: #405f93;
  --work-accent: #91d8e7;
  --work-fill: #076b7e;
  --work-surface: #1d333e;
  --work-border: #316578;
  --purple: #b4a0d6;
}
html[data-theme="dark"] ::selection { background: #3e4c70; color: #f5f7ff; }
html[data-theme="dark"] .site-header { background: #121b2cd6; }
html[data-theme="dark"] .site-header.scrolled { background: #142138ed; border-color: #30466c; box-shadow: 0 4px 24px #00000015; }
html[data-theme="dark"] .desktop-nav a { color: #abb2c5; }
html[data-theme="dark"] .desktop-nav a:hover,
html[data-theme="dark"] .desktop-nav a.active { color: var(--blue); }
html[data-theme="dark"] .locale-switch { background: #222630; border-color: #363b49; }
html[data-theme="dark"] .locale-switch a { color: #adb8cc; }
html[data-theme="dark"] .locale-switch a[aria-current] { background: var(--accent-surface); color: var(--blue); box-shadow: 0 1px 4px #00000020; }
html[data-theme="dark"] .theme-toggle { background: var(--accent-surface); border-color: var(--accent-border); color: var(--blue); }
html[data-theme="dark"] .theme-toggle:hover { background: #2a4675; border-color: #597db5; }
html[data-theme="dark"] .theme-toggle .theme-moon { display: none; }
html[data-theme="dark"] .theme-toggle .theme-sun { display: block; }
html[data-theme="dark"] .mobile-menu { background: #1c1f27; border-color: #343b4b; box-shadow: 0 20px 30px #00000018; }
html[data-theme="dark"] .mobile-menu a { border-color: #303746; }
html[data-theme="dark"] .hero { background: linear-gradient(180deg, #111c30, #192c4a); border-color: #304d76; }
html[data-theme="dark"] .hero-eyebrow { color: var(--blue); }
html[data-theme="dark"] .ambient-blue { background: #3973dd47; }
html[data-theme="dark"] .ambient-sky { background: #228ead33; }
html[data-theme="dark"] .ambient-center { background: #387ede1a; }
html[data-theme="dark"] .button-primary { background: linear-gradient(135deg, #2563eb, #1d4ed8); border-color: #4e86ee; color: #fff; box-shadow: 0 6px 22px #2563eb28; }
html[data-theme="dark"] .button-primary:hover { background: linear-gradient(135deg, #1d4ed8, #1e40af); border-color: #76a3f5; box-shadow: 0 8px 24px #2563eb40; }
html[data-theme="dark"] .button-secondary { background: #1d3253b3; border-color: #436391; color: #d6e5ff; }
html[data-theme="dark"] .button-secondary:hover { background: #2b4570; box-shadow: 0 5px 16px #00000015; }
html[data-theme="dark"] .button .external-icon { color: #bbc6de; }
html[data-theme="dark"] .about-copy > p { color: #b0b8ca; }
html[data-theme="dark"] .about-focus strong { color: #c4cce0; }
html[data-theme="dark"] .about-focus > .icon { color: var(--blue); }
html[data-theme="dark"] .timeline::before { background: linear-gradient(90deg, #416bad, #347d91); }
html[data-theme="dark"] .timeline-marker { background: var(--event-fill); border-color: var(--event-fill); color: #fff; box-shadow: 0 0 0 5px var(--soft); }
html[data-theme="dark"] .timeline-item.work .timeline-marker { color: #fff; }
html[data-theme="dark"] .timeline-card { background: var(--event-surface); border-color: var(--event-border); border-top-color: var(--event-fill); box-shadow: 0 3px 10px #00000008; }
html[data-theme="dark"] .timeline-card:hover { box-shadow: 0 8px 22px #00000020; }
html[data-theme="dark"] .type-label { background: var(--event-fill); color: #fff; }
html[data-theme="dark"] .work .type-label { background: var(--event-fill); color: #fff; }
html[data-theme="dark"] .timeline-place { color: #c0c8d9; }
html[data-theme="dark"] .current-label { background: #283a58; color: #aac8f7; border-color: #3e536f; }
html[data-theme="dark"] .experience-card { background: var(--card-surface); border-color: var(--work-border); border-top-color: var(--work-fill); }
html[data-theme="dark"] .experience-featured { background: linear-gradient(140deg, var(--work-surface), var(--card-surface) 75%); }
html[data-theme="dark"] .experience-card:hover,
html[data-theme="dark"] .skill-card:hover { box-shadow: 0 9px 28px #00000018; }
html[data-theme="dark"] .icon-tile,
html[data-theme="dark"] .skill-card .icon-tile { background: var(--accent-surface); border-color: var(--accent-border); color: var(--blue); }
html[data-theme="dark"] .experience-card .icon-tile { background: var(--work-surface); border-color: var(--work-border); color: var(--work-accent); }
html[data-theme="dark"] .mission-list li { color: #b4bdcf; }
html[data-theme="dark"] .mission-list .icon { color: #a5b5d9; }
html[data-theme="dark"] .tags li { background: #2b303c; border-color: #384055; color: #bac4d9; }
html[data-theme="dark"] .skill-card { background: var(--card-surface); border-color: #354c70; }
html[data-theme="dark"] .skill-wide { background: #1b2b44; }
html[data-theme="dark"] .technology-card { background: var(--card-surface); border-color: #354c70; }
html[data-theme="dark"] .technology-card:hover { border-color: #6588bb; box-shadow: 0 7px 22px #00000015; }
html[data-theme="dark"] .homelab-card { background: linear-gradient(115deg, #1c3359, #1c3a48 100%); border-color: #43658c; }
html[data-theme="dark"] .homelab-card .tags li { background: #ffffff06; border-color: #46506a; color: #c0c8dc; }
html[data-theme="dark"] .homelab-orbit { border-color: #ffffff0c; background: radial-gradient(ellipse at center, #9ca8e812, transparent 70%); box-shadow: 0 0 0 30px #8492be0a, 0 0 0 60px #8492be05; }
html[data-theme="dark"] .lab-layer { background: #2e3249; border-color: #48516c; box-shadow: 0 9px 25px #00000018; }
html[data-theme="dark"] .lab-middle { background: #29344a; }
html[data-theme="dark"] .lab-front { background: #2c3344d9; border-color: #4c5774; box-shadow: 0 10px 40px #00000020; }
html[data-theme="dark"] .lab-symbol { background: linear-gradient(135deg, #234b85, #22546b); border-color: #567cb8; color: #bad3ff; }
html[data-theme="dark"] .lab-row { color: #b9c4dc; border-color: #44516a; }
html[data-theme="dark"] .lab-row .icon { color: #b3c5eb; }
html[data-theme="dark"] .lab-indicator { background: #a5b7de; }
html[data-theme="dark"] .lab-chip { background: #30364bec; border-color: #4b556f; box-shadow: 0 6px 14px #00000015; }
html[data-theme="dark"] .contact-option { background: var(--card-surface); border-color: #3d5a83; }
html[data-theme="dark"] .contact-option:hover { border-color: #7199d2; box-shadow: 0 7px 22px #00000020; }
html[data-theme="dark"] .contact-icon { background: var(--accent-surface); color: var(--blue); }
html[data-theme="dark"] .contact-option > .icon { color: #bbc4d4; }
html[data-theme="dark"] .text-link:hover { color: #dae4fc; }
html[data-theme="dark"] .back-top { background: #232b37; border-color: #3a455e; color: #b5c3df; }
html[data-theme="dark"] .notice { background: #293247; border-color: #4a5b80; color: #d7e0f5; box-shadow: 0 10px 50px #00000040; }
html[data-theme="dark"] .notice button { color: #c2cee7; }
html[data-theme="dark"] .not-found-code { color: #8fa8dc; }
html[data-theme="dark"] .hero-status,
html[data-theme="dark"] .hero-bottom,
html[data-theme="dark"] .about-focus span,
html[data-theme="dark"] .timeline-legend,
html[data-theme="dark"] .timeline-period,
html[data-theme="dark"] .timeline-place span,
html[data-theme="dark"] .timeline-description,
html[data-theme="dark"] .experience-period,
html[data-theme="dark"] .company-city,
html[data-theme="dark"] .experience-description,
html[data-theme="dark"] .skill-card p,
html[data-theme="dark"] .technology-card p,
html[data-theme="dark"] .homelab-description,
html[data-theme="dark"] .homelab-footnote,
html[data-theme="dark"] .contact-heading > p:last-child,
html[data-theme="dark"] .contact-label > span,
html[data-theme="dark"] .footer-main p,
html[data-theme="dark"] .footer-bottom,
html[data-theme="dark"] .text-link,
html[data-theme="dark"] .lab-label,
html[data-theme="dark"] .lab-chip { color: #b0bbd1; }
@media (max-width: 700px) {
  html[data-theme="dark"] .hero-bottom a { background: #2428357a; border-color: #333b50; }
}
