/* Overrides live here and are imported last from main.css (after base rules). */
@media(min-width:1500px){.hero{padding-top:70px}.hero-layout{gap:110px}.hero-visual{max-width:460px}}
@media(max-width:1050px){.hero-layout{gap:40px;grid-template-columns:1.18fr 1fr}.hero-visual{margin-right:15px}.hero h1{font-size:85px}.hero-actions{gap:18px}.availability{font-size:8px;letter-spacing:.9px}.hero-note{font-size:9px}.contact-layout{gap:45px}.about-layout{gap:50px}.skill-grid{grid-template-columns:repeat(2,1fr)}.skill-card{min-height:220px}.form-row{grid-template-columns:1fr;gap:0}.section{padding-block:75px}.about-section{padding-top:35px}.footer-bottom{flex-wrap:wrap}.footer-bottom p:last-child{margin-right:88px}}
@media(max-width:760px){:root{--header-height:74px;--gutter:28px}.brand-copy strong{font-size:12px}.brand-copy small{font-size:8px}.monogram{width:36px;height:36px;font-size:21px}.header-actions{gap:9px}.career-trigger{font-size:11px}.hero{padding-top:41px}.hero-layout{grid-template-columns:1fr;gap:38px}.hero-copy{padding:0}.hero h1{font-size:85px;letter-spacing:-5.5px}.hero-role{font-size:18px;margin-top:22px}.hero-intro{font-size:13px;margin-top:17px}.hero-actions{gap:24px;margin-top:25px}.hero-note{font-size:9px;margin-top:25px}.availability{font-size:8px;letter-spacing:1px;margin-bottom:23px}.hero-visual{justify-self:center;max-width:420px;margin-right:0;width:calc(100% - 20px)}.portrait-wrap{aspect-ratio:4/4.3}.portrait-edge-label{right:-22px}.portrait-caption{padding:15px 17px}.hero-bottom{margin-top:33px;padding-top:0;padding-bottom:8px;display:grid;grid-template-columns:1fr 1fr;gap:22px}.hero-bottom .scroll-cue{display:none}.hero-bottom>div>span:last-child{font-size:10px;max-width:150px}.section{padding-block:60px}.about-section{padding-top:35px}.section-topline{padding-top:20px;padding-bottom:20px;margin-bottom:20px}.section-aside{display:none}.section-kicker{font-size:9px}h2{font-size:34px;letter-spacing:-1.6px}.about-layout,.split-layout,.contact-layout{grid-template-columns:1fr;gap:30px}.about-body p{font-size:13px;line-height:1.95}.small-rule{margin:22px 0}.section-intro{font-size:13px}.values-grid{grid-template-columns:1fr;gap:12px;margin-top:33px}.value-card{padding:23px 23px 23px 65px;min-height:120px}.value-card>[data-icon]{position:absolute;left:23px;top:23px;width:22px;height:22px;margin:0}.value-card h3{font-size:16px;margin-right:27px}.value-card p{max-width:100%;font-size:11px;margin-top:9px}.value-number{font-size:9px;right:20px;top:22px}.section-lead p{font-size:13px;max-width:370px;margin-top:18px}.section-lead .outline-badge{margin-top:22px}.empty-entry{padding-left:26px;margin-top:10px;margin-left:4px}.empty-entry h3{font-size:26px}.entry-bottom{margin-top:24px}.education-card{padding:25px;min-height:210px;gap:18px}.education-card h3{font-size:19px}.education-icon{width:42px;height:42px}.education-icon .icon{width:22px;height:22px}.skills-heading{display:block}.skills-heading p{max-width:390px;margin-top:19px;font-size:12px}.skill-tabs{margin-top:26px;gap:3px}.skill-tabs button{font-size:10px;padding:9px 10px}.skill-grid{gap:12px;margin-top:18px}.skill-card{padding:23px 19px;min-height:248px}.skill-card h3{font-size:15px;line-height:1.35}.skill-card p{font-size:11px}.skill-card>.icon{margin-bottom:22px}.skill-note{font-size:9px;align-items:flex-start;line-height:1.7}.skill-note .icon{margin-top:2px;flex:none}.contact-copy h2{font-size:49px;letter-spacing:-2.4px;margin-top:21px}.contact-copy>p{font-size:13px;margin-top:18px}.contact-note{margin-top:23px}.contact-layout{gap:32px}.form-card{padding:25px 22px}.form-row{grid-template-columns:1fr 1fr;gap:15px}.site-footer{padding-bottom:110px}.footer-top{gap:20px;align-items:flex-start;padding-bottom:25px}.footer-brand small{font-size:8px}.footer-brand .monogram{width:35px;height:35px}.back-top{margin-right:0;font-size:9px;gap:6px;padding-top:12px;white-space:nowrap}.footer-bottom{display:grid;grid-template-columns:1fr auto;gap:13px}.footer-bottom p:last-child{grid-column:1/-1;margin:0}.footer-bottom p,.footer-privacy{font-size:8px}.orbit-dock{right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom))}.orbit-location{font-size:9px}.modal-body{padding:22px}.modal-header{padding:21px}.modal-header h2{font-size:22px}.modal-body{font-size:12px}.toast-region{right:16px;width:calc(100vw - 32px)}}
@media(max-width:410px){:root{--gutter:22px}.brand{gap:9px}.brand-copy strong{font-size:11px}.brand-copy small{font-size:7px;letter-spacing:.2px}.monogram{width:33px;height:33px;font-size:20px}.header-actions{gap:4px}.header-divider{height:19px}.career-trigger{padding-left:6px;gap:6px}.career-label{font-size:10px}.career-trigger>.icon{width:15px;height:15px}.career-chevron{display:none}.icon-button{width:36px;height:36px}.hero h1{font-size:76px}.hero-actions{gap:18px}.hero-actions .button{padding:12px 16px;font-size:11px}.hero-actions .text-link{font-size:11px;gap:9px}.availability{font-size:7px;letter-spacing:.85px}.hero-note{font-size:8px}.section h2{font-size:31px}.contact-copy h2{font-size:46px}.form-row{grid-template-columns:1fr;gap:0}.skill-card{padding:21px 15px}.skill-tabs button{padding:8px;font-size:9px}.skill-tabs button span{margin-left:8px}.education-card{padding:23px 19px;gap:14px}.education-card h3{font-size:17px}.education-icon{width:35px;height:35px}.education-icon .icon{width:20px;height:20px}.dropdown-panel{right:-3px;width:min(280px,calc(100vw - 40px))}.footer-brand strong{font-size:11px}}
@media(max-width:340px){.brand-copy small{display:none}.career-label{display:none}.career-trigger{width:33px;justify-content:center;padding:0}.career-trigger:after{content:'CV';font-size:9px}.career-trigger>.icon{display:none}.hero h1{font-size:67px;letter-spacing:-4px}.hero-role{font-size:16px}.hero-actions{gap:15px}.hero-actions .text-link{font-size:10px}.skill-grid{grid-template-columns:1fr}.skill-card{min-height:210px}.hero-note{font-size:7px}.availability{font-size:6.5px}.section h2{font-size:28px}.contact-copy h2{font-size:42px}}
@media(max-height:420px){.orbit-dock.is-open{bottom:calc(50dvh - 28px)}.site-modal{max-height:calc(100dvh - 20px)}}
@media(hover:none){.skill-card:hover{transform:none}.tooltip{display:none!important}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}.motion-ready .reveal.pending-reveal{opacity:1;transform:none}}

@media(max-width:760px){.field input,.field textarea{font-size:16px}.field input::placeholder,.field textarea::placeholder{font-size:12px}.field label{font-size:12px}.field textarea{min-height:150px}.field-error{font-size:11px}}

/* ===== November 2026 UI refinement — professional header and measured spacing ===== */
:root {--header-height:78px;--header-offset:calc(var(--header-height) + 12px)}
/* Use one scroll offset. Scroll-padding plus scroll-margin would double the header gap. */
html {scroll-padding-top:0;scrollbar-color:var(--faint) var(--page);scrollbar-width:thin}
.section-anchor {scroll-margin-top:var(--header-offset)}
.site-header {height:var(--header-height)}
.header-inner {display:grid;grid-template-columns:minmax(210px,1fr) auto minmax(205px,1fr);gap:clamp(16px,2.1vw,36px)}
.header-inner>.brand {min-width:0;justify-self:start}
.monogram {padding:0;border:0;border-radius:12px;overflow:hidden;flex:none;background:transparent;letter-spacing:0}
.monogram img {display:block;width:100%;height:100%;object-fit:contain}
.desktop-nav {display:flex;align-items:center;justify-content:center;gap:clamp(12px,1.45vw,24px);white-space:nowrap}
.desktop-nav a {font-size:11px;font-weight:550;line-height:1.5;color:var(--muted);border-bottom:2px solid transparent;padding:10px 1px 8px;transition:color .2s,border-color .2s}
.desktop-nav a:hover,.desktop-nav a[aria-current="location"] {color:var(--ink)}
.desktop-nav a[aria-current="location"] {border-bottom-color:var(--accent)}
.header-actions {justify-self:end;gap:10px;min-width:0}
.career-trigger {min-height:40px;padding:9px 13px;background:var(--button);color:var(--inverse);border:1px solid var(--button);border-radius:6px;font-size:11px;gap:8px;transition:background .18s}
.career-trigger:hover {background:var(--button-hover)}
.career-trigger>.icon {width:16px;height:16px}
.career-chevron .icon {width:12px;height:12px}
.icon-button.theme-toggle {border:1px solid var(--border);width:40px;height:40px;background:var(--surface)}
.icon-button.theme-toggle:hover {background:var(--surface-alt)}
.orbit-dock,.nav-backdrop {display:none}
/* Anchored sections begin near the sticky header without 1–2 inches of dead space. */
.section {padding-block:40px 62px}
.about-section,.experience-section,.education-section,.skills-section,.contact-section {padding-top:28px}
.section-topline {padding-top:12px;padding-bottom:14px;margin-bottom:19px}
.about-layout,.split-layout {gap:clamp(28px,5vw,70px)}
.values-grid {margin-top:34px}
.hero {padding-top:34px}
.hero-bottom {margin-top:30px;padding-top:18px;padding-bottom:18px}
.experience-section {padding-bottom:62px}
.education-section {padding-bottom:55px}
.contact-section {padding-bottom:55px}
.site-footer {padding-block:26px 24px}
.footer-top {padding-bottom:19px}
.footer-top .footer-brand {flex:none}
.footer-quicklinks {display:flex;align-items:center;gap:24px}
.footer-quicklinks>a {display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted);transition:color .18s}
.footer-quicklinks>a:hover {color:var(--ink)}
.footer-quicklinks .icon {height:14px;width:14px}
.footer-bottom {padding-top:17px;gap:16px}
.footer-bottom p:last-child {margin-right:0}
.footer-bottom p,.footer-privacy {font-size:10px;line-height:1.5}
.footer-bottom a {text-decoration-color:var(--border)}
.footer-bottom a:hover {color:var(--accent-ink)}
/* The loader appears only if critical content has actually not finished loading. */
.page-loader {position:fixed;inset:0;display:grid;place-items:center;background:var(--page);z-index:140;transition:opacity .2s}
.page-loader-card {display:flex;align-items:center;flex-direction:column;gap:8px;color:var(--ink);padding:24px}
.page-loader-card img {width:48px;height:48px;margin-bottom:5px}
.page-loader-card strong {font-family:var(--font-heading);font-size:15px;font-weight:650}
.page-loader-card>span:not(.loader-line) {font-size:11px;color:var(--muted)}
.loader-line {height:2px;width:110px;overflow:hidden;background:var(--border);margin-top:10px;position:relative}
.loader-line:after {content:'';position:absolute;top:0;left:0;width:40%;height:100%;background:var(--accent);animation:loading-line 1.1s linear infinite}
.document-loading-state {display:flex;align-items:center;gap:12px;min-height:75px;color:var(--muted)}
.document-loading-state .icon {color:var(--accent)}
.document-loading-state p {margin:0}
.experience-item .experience-meta,.education-location {font-size:11px;color:var(--muted);margin:8px 0}
.experience-item ul,.education-entry ul {color:var(--muted);font-size:12px;line-height:1.8;padding-left:20px;margin:12px 0}
.skill-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.skill-card {min-height:235px}
/* Coherent custom scrollbar for Chromium/WebKit; Firefox uses scrollbar-color above. */
::-webkit-scrollbar {width:9px;height:9px}
::-webkit-scrollbar-track {background:var(--page)}
::-webkit-scrollbar-thumb {background:var(--faint);border:2px solid var(--page);border-radius:12px}
::-webkit-scrollbar-thumb:hover {background:var(--accent)}
/* Branded 404 page is also served with the correct 404 status in local dev. */
.error-page {min-height:100dvh;display:flex;flex-direction:column}
.error-header {width:100%;min-height:var(--header-height);display:flex;align-items:center;border-bottom:1px solid var(--border)}
.error-main {flex:1;width:100%;display:flex;flex-direction:column;justify-content:center;padding-block:54px 70px}
.error-main .error-divider {width:44px;height:2px;background:var(--accent);margin:25px 0}
.error-main h1 {font-size:clamp(58px,10vw,135px);line-height:1.05;letter-spacing:-.07em}
.error-main h1 span {color:var(--muted)}
.error-main>p:not(.section-kicker) {font-size:14px;max-width:430px;margin-top:26px}
.error-main .button {align-self:flex-start;margin-top:27px}
.error-footer {width:100%;padding-block:21px;border-top:1px solid var(--border);display:flex;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted)}
@media(max-width:1080px) {
  :root {--header-height:74px}
  .header-inner {grid-template-columns:minmax(0,1fr) auto;gap:12px}
  .desktop-nav {display:none}
  .orbit-dock {display:block}
  .nav-backdrop:not([hidden]) {display:block}
  .orbit-dock[hidden] {display:none}
  .footer-quicklinks {gap:17px}
}
@media(max-width:760px) {
  :root {--header-height:70px}
  .site-header {height:var(--header-height)}
  .header-inner {display:grid;grid-template-columns:minmax(0,1fr) auto}
  .header-actions {gap:7px}
  .career-trigger {min-height:36px;padding:7px 10px;font-size:10px}
  .icon-button.theme-toggle {width:36px;height:36px}
  .hero {padding-top:28px}
  .hero-bottom {margin-top:26px;padding-block:12px}
  .section {padding-block:34px 48px}
  .about-section,.experience-section,.education-section,.skills-section,.contact-section {padding-top:23px}
  .section-topline {padding-top:8px;padding-bottom:12px;margin-bottom:16px}
  .site-footer {padding-top:23px;padding-bottom:max(24px,env(safe-area-inset-bottom))}
  .footer-top {padding-bottom:16px;align-items:center}
  .footer-quicklinks {gap:12px;flex-direction:column;align-items:flex-end}
  .footer-quicklinks a {font-size:10px}
  .footer-bottom {padding-top:15px;grid-template-columns:1fr auto;gap:8px 14px}
  .footer-bottom p,.footer-privacy {font-size:9px}
  .footer-bottom p:last-child {grid-column:1/-1}
  .footer-brand small {font-size:9px}
  .back-top {margin:0;padding:0}
  .orbit-location {display:none}
  .orbit-dock {bottom:max(14px,env(safe-area-inset-bottom));right:max(14px,env(safe-area-inset-right))}
  .skill-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .skill-card {min-height:218px}
  .error-main {padding-block:40px 60px}
}
@media(max-width:410px) {
  .brand-copy small {font-size:7px}
  .career-label {font-size:10px}
  .skill-card {min-height:210px}
  .footer-quicklinks {gap:8px}
  .footer-bottom p,.footer-privacy {font-size:8.5px}
}
@media(max-width:340px) {
  .career-label {display:none}
  .career-trigger {width:38px;min-width:38px;justify-content:center;padding:0}
  .career-trigger:after {content:none}
  .career-trigger>.icon {display:block}
  .skill-grid {grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce) {
  .loader-line:after {animation:none;width:100%}
  .page-loader {transition:none}
}
