/* Shared chrome for the full-bleed Home, About, and Resume pages. */
.open-site{--open-gutter:4vw;--open-header-height:72px;--open-tools-gap:12px}
.open-site .shell{position:relative;width:100%;margin:0;border:0}
.open-site .sidebar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;height:var(--open-header-height);min-height:0;padding:4px var(--open-gutter);gap:0;border:0;background:transparent;position:relative;z-index:12}
.open-site.landing-site .sidebar{position:absolute;inset:0 0 auto}
.open-site.resume-immersive .sidebar{position:sticky;top:0}
.open-site .logo{display:flex;justify-self:start;align-items:center;justify-content:start;padding:0;min-height:0;height:44px;border:0;background:none;font-size:2.6rem;line-height:1}
.open-site .logo:hover{background:none}
.open-site .navigation{display:flex;align-self:stretch;align-items:stretch;justify-content:center;border:0;min-width:0}
.open-site .navigation a{padding:0 20px;display:flex;align-items:center;font-size:1rem;text-decoration:none;background:none}
.open-site .navigation a:hover,.open-site .navigation a:focus-visible{text-decoration:none;background:none;color:var(--accent)}
.open-site .navigation a[aria-current=page]:after{bottom:9px;left:20px;right:20px;background:var(--accent)}
.open-site .appearance-controls{justify-self:end;display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;height:44px;border:0;background:none;padding:0;max-width:none}
.open-site .color-select{padding:0 12px 0 0;gap:8px;height:44px;display:flex;align-items:center}
.open-site .color-select select{font-size:.875rem;padding:8px 18px 8px 2px;background:transparent;max-width:88px}
.open-site .color-select:after{right:16px}
.open-site .appearance-controls .theme-toggle{padding:0;min-height:44px;flex:none;gap:10px;font-size:.875rem;border:0;background:none}
.open-site .theme-toggle svg{width:20px;height:20px}
.open-site .scene-tools{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:none;backdrop-filter:none}
.open-site .scene-tools[hidden]{display:none}
.open-site .scene-tools button{box-sizing:border-box;height:44px;min-height:44px;padding:8px 19px;border:1px solid var(--line);border-radius:24px;font:400 .9375rem/1.4 var(--sans);color:var(--text);background:color-mix(in srgb,var(--bg) 65%,transparent);backdrop-filter:blur(12px);white-space:nowrap}
.open-site .scene-tools button:hover{color:var(--text);border-color:var(--accent);background:color-mix(in srgb,var(--bg) 65%,var(--accent) 10%)}
.open-site .scene-tools button[hidden]{display:none}
.open-site .fluid-toolbar{top:calc(var(--open-header-height) + var(--open-tools-gap));right:var(--open-gutter);bottom:auto}
.open-site .resume-heading{margin-top:0;margin-inline:var(--open-gutter);align-items:flex-start;min-height:44px}
.open-site .about-heading{align-items:flex-start;min-height:44px;margin-inline:calc(var(--open-gutter) - 7vw)}
/* Keep page titles on the same baseline and gutter without narrowing the About copy. */
@media screen{
 .open-site :is(.resume-heading,.about-heading,.folio-heading) h1{font-size:clamp(2.5rem,3.4vw,3.3rem);line-height:.96;margin:0}
}
@media screen and (max-width:900px),screen and (max-height:650px){
 .open-site :is(.resume-heading,.about-heading,.folio-heading) h1{font-size:2.5rem}
}
@media screen and (min-width:901px) and (min-height:651px) and (max-height:900px){
 .open-site :is(.resume-heading,.about-heading,.folio-heading) h1{font-size:2.35rem}
}
.open-site .page.about{padding-top:var(--open-tools-gap)}
.open-site.about-site .shell{min-height:100svh;display:flex;flex-direction:column}
.open-site.about-site .sidebar{flex:none}
.open-site.about-site .site-main{flex:1;min-height:0}
.open-site .footer.footer-slim{padding:20px var(--open-gutter);min-height:76px;margin:0;gap:18px 30px;border:0;background:transparent;backdrop-filter:none}
@media(max-width:1100px) and (min-width:701px){
 .open-site .navigation a{padding-inline:12px}
 .open-site .navigation a[aria-current=page]:after{left:12px;right:12px}
 .open-site .sidebar{grid-template-columns:minmax(50px,1fr) auto minmax(218px,1fr)}
 .open-site .appearance-controls .theme-toggle{font-size:.8125rem;gap:7px}
 .open-site .color-select{padding-right:9px}.open-site .color-select:after{right:12px}
}
@media(max-width:700px){
 .open-site{--open-gutter:5vw;--open-header-height:128px}
 .open-site .sidebar{display:grid;grid-template-columns:1fr auto;grid-template-rows:76px 52px;height:var(--open-header-height);padding:0 var(--open-gutter)}
 .open-site .logo{grid-column:1;grid-row:1;font-size:2.25rem}
 .open-site .appearance-controls{grid-column:2;grid-row:1}
 .open-site .appearance-controls .theme-toggle{font-size:.8125rem;gap:7px}
 .open-site .color-select{padding-right:8px;gap:6px}.open-site .color-select select{font-size:.8125rem;padding-right:16px;max-width:80px}.open-site .color-select:after{right:10px}
 .open-site .navigation{grid-column:1/-1;grid-row:2;justify-content:space-between;order:initial}
 .open-site .navigation a{padding:0 8px;font-size:.9375rem;flex:1}
 .open-site .navigation a:first-child{padding-left:0}.open-site .navigation a:last-child{padding-right:0}
 .open-site .navigation a[aria-current=page]:after{left:8px;right:8px;bottom:7px}
 .open-site .navigation a:first-child[aria-current=page]:after{left:0}.open-site .navigation a:last-child[aria-current=page]:after{right:0}
 .open-site .footer.footer-slim{align-items:flex-start;flex-direction:column;gap:18px;padding-block:24px}
 .open-site .footer-slim .footer-contact{justify-content:flex-start;flex-wrap:wrap;gap:14px 20px}
}
@media(max-width:380px){.open-site .navigation{flex-wrap:nowrap}.open-site .navigation a{font-size:.875rem;padding-inline:4px}.open-site .navigation a[aria-current=page]:after{left:4px;right:4px}}
@media print{.open-site .sidebar,.open-site .scene-tools,.open-site .footer{display:none!important}.open-site.about-site .shell{display:block;min-height:0}.open-site .about-heading{margin-inline:0}}

/* Home's footer shares the full-height scene instead of adding another section. */
.open-site.landing-site .site-main{position:relative;isolation:isolate;min-height:100svh;background:var(--bg)}
.open-site.landing-site .page.home{display:flex;flex-direction:column;flex:1;min-height:0}
.open-site .landing-scene{position:static;isolation:auto;overflow:visible;display:flex;flex-direction:column;flex:1;height:auto;min-height:0;background:transparent;padding-top:calc(var(--open-header-height) + var(--open-tools-gap) + 44px)}
.open-site .landing-identity{position:static;flex:1;display:flex;align-items:center;padding:clamp(32px,5svh,80px) 7vw}
.open-site .landing-bottom{position:static;margin:0 7vw 24px}
.open-site.landing-site .footer.footer-slim{position:relative;z-index:2}
/* Keep contact links visible throughout the immersive resume, reserving their actual height. */
.open-site.resume-immersive .footer.footer-slim{position:fixed;inset:auto 0 0;z-index:12}
.open-site.resume-immersive .site-main{padding-bottom:var(--open-footer-height)}
.open-site.resume-immersive .journey-stage{height:calc(100svh - var(--journey-inset) - var(--open-footer-height));padding-bottom:0}
@media(max-width:700px){.open-site .landing-identity{padding-block:24px}.open-site .landing-bottom{margin-bottom:24px}}
@media print{.open-site.resume-immersive .site-main{padding-bottom:0}.open-site.resume-immersive .journey-stage{height:auto}}

/* Rainbow keeps type and controls steady; the spectrum lives in scene color and accents. */
:root[data-palette=rainbow]{--bg:#121319;--surface:#1b1c25;--raised:#2b2b39;--text:#f4f2fb;--body:#d5d1e2;--muted:#b3adc6;--line:#4e4762;--accent:#c9afff;--on-accent:#251637;--field:#201c2c;--field-line:#a58bc8;--spectrum-colors:#ff8d96 #ffba7b #ffe28b #83ddb0 #7edbe4 #9ebdff #d1a5ff;--spectrum:linear-gradient(105deg,#ff8d96,#ffba7b,#ffe28b,#83ddb0,#7edbe4,#9ebdff,#d1a5ff)}
:root[data-theme=light][data-palette=rainbow]{--bg:#f3f2f7;--surface:#fcfbff;--raised:#e7e3ef;--text:#252131;--body:#473e58;--muted:#655b76;--line:#c6bbd5;--accent:#684098;--on-accent:#ffffff;--field:#e9e3f2;--field-line:#8963b0;--spectrum-colors:#b82f49 #b85316 #90700a #267d4d #087c91 #345fac #8546ad;--spectrum:linear-gradient(105deg,#b82f49,#b85316,#90700a,#267d4d,#087c91,#345fac,#8546ad)}
.landing-site .name-band .name-dot{color:var(--accent)}
:root[data-palette=rainbow] .color-dot{background:conic-gradient(#ff7b91,#ffc36d,#f5df79,#73dca0,#71d9ed,#8daaff,#d499ff,#ff7b91)}
:root[data-palette=rainbow] .navigation a[aria-current=page]:after,
:root[data-palette=rainbow] .journey-stop[aria-current=step] .calendar-bar:not(.non-compete),
:root[data-palette=rainbow] .rating-track>span{background:var(--spectrum)}
:root[data-palette=rainbow] :is(.name-dot,.logo>span){background:var(--spectrum);background-clip:text;-webkit-background-clip:text;color:transparent;text-shadow:none}
:root[data-palette=rainbow] .fluid-surface.fluid-fallback{background:radial-gradient(ellipse at 18% 55%,#b8486440,transparent 55%),radial-gradient(ellipse at 50% 45%,#48b89a40,transparent 55%),radial-gradient(ellipse at 85% 60%,#7750c950,transparent 55%),var(--bg)}
