/* Neutral UI themes, natural-color media, and a restrained motion vocabulary. */
@font-face { font-family:'Caveat'; font-style:normal; font-weight:500; font-display:swap; src:url('assets/fonts/caveat-latin-500.woff2') format('woff2'); }
@font-face { font-family:'Manrope'; font-style:normal; font-weight:600; font-display:swap; src:url('assets/fonts/manrope-latin-600.woff2') format('woff2'); }
:root {
    color-scheme:light;
    --bg:#ffffff; --surface:#ffffff; --surface-alt:#e8e8e8; --surface-soft:#f3f3f3;
    --heading:#111111; --text:#303030; --body-copy:#303030; --muted:#555555; --line:#c9c9c9; --accent:#454545; --field-line:#858585;
    --solid:#151515; --on-solid:#ffffff; --solid-hover:#363636;
 --footer-bg:#080808; --close-filter:none;
    --serif:'Segoe UI',Arial,sans-serif; --ease:cubic-bezier(.22,1,.36,1); --page-gutter:clamp(18px,4vw,64px);
}
:root[data-theme="dark"] {
    color-scheme:dark;
    --bg:#0b0b0b; --surface:#151515; --surface-alt:#202020; --surface-soft:#101010;
    --heading:#f5f5f5; --text:#e9e9e9; --body-copy:#adadad; --muted:#adadad; --line:#373737; --accent:#d0d0d0; --field-line:#626262;
    --solid:#f3f3f3; --on-solid:#111111; --solid-hover:#d6d6d6;
 --close-filter:invert(1);
}
*,*::before,*::after { box-sizing:border-box; }
html { background:var(--bg); scroll-behavior:smooth; scroll-padding-top:110px; }
.icon-library { position:absolute; width:0; height:0; overflow:hidden; pointer-events:none; }
body { margin:0; background:var(--bg); color:var(--text); font-family:'Segoe UI',Arial,sans-serif; font-size:16px; line-height:1.7; -webkit-font-smoothing:antialiased; }
/* Decorative outlines and offscreen slide reveals must not widen the viewport. */
main { overflow-x:clip; }
img { max-width:100%; }
a { color:inherit; text-decoration:none; }
button { font:inherit; }
button,a { -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
:focus-visible { outline:3px solid #808080; outline-offset:5px; }
h1,h2,h3,p { margin-top:0; }
h1,h2,h3 { color:var(--heading); }
h2 { margin-bottom:0; font:800 clamp(2.1rem,4.5vw,4rem)/1.03 var(--serif); letter-spacing:-.055em; }
h2 em { color:var(--muted); font-style:normal; }
h3 { font-size:1.3rem; line-height:1.25; font-weight:700; letter-spacing:-.025em; }
p { color:var(--body-copy); }
.container-shell { width:min(1200px,calc(100% - var(--page-gutter) - var(--page-gutter))); margin-inline:auto; }
.section-space { padding-block:clamp(44px,min(7vw,7.5vh),96px); }
.eyebrow { display:block; margin-bottom:23px; color:var(--accent); font-size:.64rem; font-weight:650; line-height:1.6; letter-spacing:.16em; }
.section-heading { margin-bottom:clamp(24px,4vh,44px); }
.section-heading > p:last-child { margin:22px 0 0; }
.section-line { display:block; width:58px; height:2px; margin-top:25px; background:var(--accent); transform-origin:left; }
.heading-row { display:flex; align-items:end; justify-content:space-between; gap:32px; }
.heading-row > p { max-width:340px; margin-bottom:0; font-size:.88rem; }
.sr-only { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.skip-link { position:fixed; top:-100px; left:16px; z-index:2000; padding:10px 20px; }
.skip-link:focus { top:10px; }

/* Navigation collapses only after its independent JavaScript handlers exist. */
.scroll-progress { position:fixed; z-index:1100; inset:0 0 auto; height:3px; pointer-events:none; }
.scroll-progress span { display:block; height:100%; background:#8f8f8f; transform:scaleX(0); transform-origin:left; }
.topbar { position:sticky; top:0; z-index:1000; background:var(--bg); border-bottom:1px solid var(--line); transition:background-color .25s,box-shadow .25s,border-color .25s; }
.topbar.is-scrolled { background:var(--bg); border-color:var(--line); box-shadow:0 4px 24px #00000012; }
.brand { display:flex; align-items:center; min-height:44px; flex-shrink:0; font-size:.63rem; font-weight:650; }
.avatar-frame { display:block; width:42px; height:42px; flex-shrink:0; overflow:hidden; border-radius:50%; background:#ededed; border:1px solid var(--line); }
.avatar-frame .brand-avatar { display:block; width:100%; height:100%; max-width:none; border:0; object-fit:cover; object-position:center top; transform:scale(1.85); transform-origin:50% 20%; }
.brand-caption { display:block; margin-top:4px; font-size:.5rem; color:var(--muted); letter-spacing:.2em; font-weight:400; }
.nav-links { display:flex; align-items:center; }
.nav-links a { position:relative; display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; padding:8px 10px; border-radius:20px; transition:color .2s,background-color .2s; }
.nav-links a::after { content:''; position:absolute; bottom:6px; left:12px; width:calc(100% - 24px); height:1px; background:var(--accent); transform:scaleX(0); transform-origin:left; transition:transform .25s var(--ease); }
.nav-links a:hover::after,.nav-links a[aria-current="location"]::after { transform:scaleX(1); }
.nav-links a[aria-current="location"] { color:var(--heading); background:var(--surface-alt); }
.nav-links a:focus-visible,.nav-toggle:focus-visible,.theme-toggle:focus-visible { outline:2px solid var(--heading); outline-offset:3px; background:var(--surface-alt); color:var(--heading); }
@media (hover:hover) { .nav-links a:hover,.nav-toggle:hover { color:var(--heading); background:var(--surface-alt); } }
.nav-contact span { margin-left:15px; }
.nav-toggle { display:none; }

/* Hero */
.button { display:inline-flex; justify-content:center; align-items:center; gap:22px; min-height:48px; padding:12px 20px; border:1px solid transparent; border-radius:3px; font-size:.76rem; line-height:1.5; font-weight:550; transition:background-color .25s,color .25s,box-shadow .25s,transform .25s var(--ease); }
.button-primary { background:var(--solid); color:var(--on-solid); }
.button-primary:hover { background:var(--solid-hover); color:var(--on-solid); box-shadow:0 5px 15px #00000020; transform:translateY(-2px); }
.button span { transition:transform .25s; }
.button:hover span { transform:translate(2px,-2px); }
.scroll-cue { display:inline-flex; align-items:center; gap:11px; font-size:.55rem; font-weight:600; letter-spacing:.15em; }

/* About: two creative disciplines, with native focus details. */
#about { display:block; }
#about .section-heading { margin-bottom:28px; }
.about-layout { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr)); gap:clamp(28px,4.5vw,64px); align-items:center; }
.about-text { max-width:470px; min-width:0; font-size:.94rem; line-height:1.85; }
.about-text .lead-copy { max-width:340px; font-size:1.3rem; font-weight:500; color:var(--heading); line-height:1.5; letter-spacing:-.025em; }
.about-text p:last-of-type { margin-bottom:24px; }
.about-footnote { display:flex; gap:14px; align-items:center; padding-top:18px; border-top:1px solid var(--line); color:var(--accent); font-size:.72rem; }
.about-connection { position:relative; display:flex; align-items:center; width:36px; flex-shrink:0; }
.about-connection::before { content:''; height:1px; width:100%; background:var(--muted); }
.about-connection i { position:absolute; left:0; top:50%; transform:translateY(-50%); width:9px; height:9px; border:1px solid var(--heading); border-radius:50%; background:var(--surface); }
.about-connection i:last-child { margin-left:27px; background:var(--heading); }
.about-focus-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr)); gap:16px; align-items:stretch; min-width:0; }
.about-focus { min-width:0; border:1px solid var(--line); border-radius:20px; background:var(--surface); transition:border-color .25s,background-color .25s; }
.about-focus:hover,.about-focus:focus-within,.about-focus[open] { border-color:var(--muted); }
.about-focus[open] { background:var(--surface-alt); }
.about-focus :is(summary,.card-face) { padding:20px; border-radius:inherit; list-style:none; cursor:pointer; }
.about-focus summary::-webkit-details-marker { display:none; }
.about-focus summary::marker { content:''; }
.about-focus summary:focus-visible { outline:2px solid var(--heading); outline-offset:-5px; }
.about-focus-top { display:flex; align-items:center; justify-content:space-between; gap:10px; font:.56rem/1.5 Consolas,monospace; letter-spacing:.07em; color:var(--muted); }
.about-focus-plus { font:1.4rem/1 Consolas,monospace; color:var(--heading); transition:transform .25s; }
.about-focus[open] .about-focus-plus { transform:rotate(45deg); }
.about-focus h3 { margin:0 0 7px; font-size:1rem; line-height:1.4; letter-spacing:-.02em; }
.about-focus-caption { display:block; min-height:36px; color:var(--muted); font-size:.78rem; line-height:1.6; }
.about-focus-cue { display:flex; justify-content:space-between; gap:10px; margin-top:18px; color:var(--heading); font-size:.7rem; }
.about-focus-cue > span { transition:transform .25s; }
.about-focus:hover .about-focus-cue > span,.about-focus:focus-within .about-focus-cue > span { transform:translate(2px,-2px); }
.about-focus-art { position:relative; display:block; height:132px; margin:20px 0; border-bottom:1px solid var(--line); overflow:hidden; }
.about-browser { position:absolute; left:2%; top:8px; width:85%; height:96px; padding:9px; border:1px solid var(--muted); border-radius:8px; background:var(--surface-soft); }
.about-browser-bar { display:flex; gap:4px; padding-bottom:8px; border-bottom:1px solid var(--line); }
.about-browser-bar i { width:3px; height:3px; border-radius:50%; background:var(--muted); }
.about-browser-layout { display:grid; grid-template-columns:1fr .7fr; gap:7px; padding-top:10px; }
.about-browser-layout i { height:8px; width:75%; border-radius:2px; background:var(--heading); }
.about-browser-layout b { grid-column:2; grid-row:1 / span 2; height:46px; border:1px solid var(--muted); border-radius:4px; background:linear-gradient(145deg,var(--surface-alt),var(--surface-soft)); }
.about-browser-layout > span { height:24px; border-top:3px solid var(--muted); border-bottom:3px solid var(--line); }
.about-phone { position:absolute; right:0; top:41px; width:37px; height:73px; padding:11px 5px; border:1px solid var(--heading); border-radius:7px; background:var(--surface); transform:rotate(5deg); transition:transform .4s var(--ease); }
.about-phone i,.about-phone b,.about-phone > span { display:block; height:5px; margin-bottom:6px; border-radius:2px; background:var(--heading); }
.about-phone b { height:21px; border:1px solid var(--muted); background:var(--surface-alt); }
.about-phone > span { width:75%; height:3px; background:var(--muted); }
.about-focus:hover .about-phone,.about-focus:focus-within .about-phone { transform:rotate(0deg) translateY(-4px); }
.about-art-cursor { position:absolute; left:35%; top:67px; width:25px; height:25px; fill:var(--surface); stroke:var(--heading); stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; filter:drop-shadow(0 2px 2px var(--surface)); animation:about-cursor 6s var(--ease) infinite; animation-play-state:paused; }
.about-preview-frame { position:absolute; left:15%; top:0; width:70%; height:69px; border:1px solid var(--muted); border-radius:6px; overflow:hidden; background:var(--surface-soft); }
.about-preview-frame svg { width:100%; height:100%; stroke:var(--muted); stroke-width:1.4; }
.about-edit-tracks { position:absolute; left:4%; right:4%; bottom:13px; display:grid; gap:5px; padding:8px 0; border-top:1px solid var(--muted); }
.about-edit-tracks > span { display:flex; gap:4px; }
.about-edit-tracks i { display:block; width:34%; height:10px; border:1px solid var(--muted); border-radius:2px; background:var(--surface-alt); }
.about-edit-tracks > span:last-of-type { margin-left:12%; }
.about-edit-tracks > span:last-of-type i { width:43%; height:6px; background:var(--muted); }
.about-playhead { position:absolute; top:-4px; bottom:0; left:10%; width:1px; background:var(--heading); animation:about-playhead 7s ease-in-out infinite alternate; animation-play-state:paused; }
.about-playhead::before { content:''; position:absolute; left:-3px; width:7px; height:6px; background:var(--heading); clip-path:polygon(0 0,100% 0,50% 100%); }
.about-focus.is-revealed .about-art-cursor,.about-focus.is-revealed .about-playhead { animation-play-state:running; }
.about-focus-details { margin:0 20px; padding:15px 0 19px; border-top:1px solid var(--line); }
.about-focus-details p { margin:0 0 12px; font-size:.73rem; line-height:1.75; }
.about-focus-details > span { display:block; color:var(--muted); font-size:.54rem; line-height:1.6; }
.about-focus[open] .about-focus-details { animation:education-detail .25s var(--ease); }
@keyframes about-cursor { 0%,100% { transform:translate(0,0); } 40%,60% { transform:translate(25px,-20px); } }
@keyframes about-playhead { to { left:90%; } }
@media (max-width:1000px) {
    .about-focus :is(summary,.card-face) { padding:17px; }
    .about-focus-details { margin-inline:17px; }
}
@media (max-width:900px) {
    .about-text { max-width:650px; }
}
@media (max-width:480px) {
    .about-focus-art { max-width:260px; margin-inline:auto; }
    .about-focus-caption { min-height:0; }
}


/* Cards and quieter sections */
.skill-card { display:flex; flex-direction:column; min-width:0; width:100%; height:100%; border:1px solid var(--line); background:var(--surface); color:var(--text); border-radius:14px; text-align:left; transition:transform .35s var(--ease),border-color .3s,box-shadow .3s; }
.skill-number { font-size:.6rem; color:var(--muted); }
.skill-category { font-size:.52rem; letter-spacing:.14em; color:var(--accent); margin-bottom:7px; }
.skill-card > strong { font:750 clamp(1.65rem,2.2vw,2rem)/1.2 var(--serif); margin-bottom:10px; letter-spacing:-.045em; }
.skill-description { font-size:.8rem; color:var(--muted); }
.skill-bottom { display:flex; justify-content:space-between; width:100%; gap:15px; padding-top:12px; border-top:1px solid var(--line); margin-top:auto; }
.skill-bottom > span { font-size:.9rem; }
.skill-card:focus-visible { border-color:var(--accent); }
.interests-band { background:var(--surface-soft); border-block:1px solid var(--line); }
.interests-layout { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr)); gap:clamp(28px,4vw,56px); align-items:start; }
.interests-layout .section-heading { margin-bottom:27px; }
.hobby-description { max-width:345px; margin-bottom:0; font-size:.9rem; color:var(--body-copy); }
.hobby-list { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr)); gap:18px; align-items:stretch; }
.hobby-list .interest-card { height:100%; }
.hobby-list > li { min-width:0; }
.interest-card { border:1px solid var(--line); border-radius:20px; background:var(--surface); overflow:hidden; transition:border-color .25s,background-color .25s; }
.interest-card[open] { border-color:var(--muted); background:var(--surface-alt); }
.interest-card :is(summary,.card-face) { display:block; list-style:none; cursor:pointer; color:var(--heading); }
.interest-card summary::-webkit-details-marker { display:none; }
.interest-card summary:focus-visible { outline:2px solid var(--heading); outline-offset:-5px; border-radius:19px; }
.interest-art { position:relative; height:170px; display:block; overflow:hidden; border-bottom:1px solid var(--line); background:radial-gradient(ellipse at 50% 35%,var(--surface-alt),var(--surface-soft) 75%); color:var(--heading); }
.interest-art-caption { position:absolute; bottom:13px; inset-inline:12px; text-align:center; font:.52rem/1.4 monospace; letter-spacing:.12em; color:var(--muted); }
.interest-summary { display:block; padding:20px; }
.interest-number { display:block; color:var(--muted); font:.55rem/1.4 monospace; letter-spacing:.12em; margin-bottom:10px; }
.interest-summary strong { display:block; font:650 1.05rem/1.4 var(--serif); letter-spacing:-.02em; }
.interest-summary small { display:block; margin-top:10px; color:var(--body-copy); font-size:.76rem; line-height:1.65; }
.interest-action { display:flex; align-items:center; justify-content:space-between; gap:10px; border-top:1px solid var(--line); padding-top:13px; margin-top:20px; font-size:.66rem; }
.interest-plus { display:grid; place-items:center; width:24px; height:24px; border:1px solid var(--line); border-radius:50%; font-size:1rem; line-height:1; transition:transform .3s var(--ease),background .3s; }
.interest-card[open] .interest-plus { transform:rotate(45deg); background:var(--surface); }
.interest-details { margin:0 20px; border-top:1px solid var(--line); padding-block:16px 20px; }
.interest-details p { margin:0; color:var(--body-copy); font-size:.77rem; line-height:1.8; }
.interest-card[open] .interest-details { animation:interest-reveal .32s var(--ease) both; }
/* Only the illustrations move; the disclosure targets stay in place. */
.filmstrip { position:absolute; top:26px; left:50%; width:290px; height:90px; display:flex; gap:8px; padding:10px 0; border-block:4px dotted var(--muted); transform:translateX(-50%) rotate(-9deg); opacity:.26; animation:film-travel 8s ease-in-out infinite alternate; animation-play-state:paused; }
.filmstrip > span { width:62px; flex:none; border:1px solid currentColor; border-radius:3px; }
.film-viewfinder { position:absolute; top:33px; left:50%; width:126px; height:87px; transform:translateX(-50%); border:1px solid var(--muted); border-radius:6px; overflow:hidden; background:var(--surface); box-shadow:0 8px 24px #00000018; transition:transform .5s var(--ease); }
.film-viewfinder::before,.film-viewfinder::after { content:''; position:absolute; z-index:2; width:13px; height:13px; border:solid var(--heading); }
.film-viewfinder::before { left:9px; top:9px; border-width:1px 0 0 1px; }
.film-viewfinder::after { right:9px; bottom:9px; border-width:0 1px 1px 0; }
.film-horizon { position:absolute; width:115px; height:70px; left:28px; top:48px; border:1px solid var(--muted); background:var(--surface-alt); transform:rotate(-28deg); border-radius:5px; }
.film-sun { position:absolute; left:29px; top:23px; height:18px; width:18px; border:1px solid var(--muted); border-radius:50%; background:var(--surface-alt); }
.film-focus { position:absolute; left:50%; top:50%; width:13px; height:13px; transform:translate(-50%,-50%); border:1px solid var(--heading); border-radius:50%; opacity:.65; }
.music-orbit { position:absolute; top:50%; left:50%; width:170px; height:170px; transform:translate(-50%,-58%); border:1px solid var(--line); border-radius:50%; }
.music-orbit-two { width:118px; height:118px; }
.music-wave { position:absolute; inset:32px 22px 52px; display:flex; justify-content:center; align-items:center; gap:5px; }
.music-wave > span { width:5px; height:42%; flex:none; border-radius:6px; background:var(--heading); transform-origin:center; animation:music-wave 1.8s ease-in-out infinite alternate; animation-play-state:paused; }
.music-wave > span:nth-child(3n) { height:75%; animation-delay:-.7s; }
.music-wave > span:nth-child(3n + 1) { height:30%; animation-delay:-1.4s; }
.music-wave > span:nth-child(4n) { height:60%; animation-delay:-.35s; }
.hobby-list > .is-revealed .filmstrip,.hobby-list > .is-revealed .music-wave > span { animation-play-state:running; }
.interest-card:hover .film-viewfinder,.interest-card:focus-within .film-viewfinder,.interest-card[open] .film-viewfinder { transform:translateX(-50%) rotate(3deg) scale(1.05); }
.interest-card:hover,.interest-card:focus-within { border-color:var(--muted); }
@keyframes film-travel { from { transform:translateX(-55%) rotate(-9deg); } to { transform:translateX(-45%) rotate(-9deg); } }
@keyframes music-wave { from { transform:scaleY(.65); opacity:.55; } to { transform:scaleY(1.1); opacity:1; } }
@keyframes interest-reveal { from { opacity:0; transform:translateY(7px); } to { opacity:1; transform:none; } }
@media (max-width:1000px) {
    .interests-layout .section-heading { margin-bottom:0; }
    .hobby-description { max-width:none; }
}
@media (max-width:600px) {
    .interests-layout > div { display:block; }
    .interests-layout .section-heading { margin-bottom:22px; }
    .interest-art { height:155px; }
    .interest-summary { padding:20px; }
    .interest-summary strong { font-size:1.08rem; }
    .interest-summary small { margin-top:6px; }
    .interest-action { margin-top:16px; }
}
.journey-band { background:#eaeaea; }
.timeline { position:relative; margin:0; padding:0 0 0 31px; list-style:none; border-left:1px solid #bababa; }
.timeline::after { content:''; position:absolute; left:-1px; top:0; width:2px; height:100%; background:var(--heading); transform:scaleY(var(--timeline-progress,0)); transform-origin:top; pointer-events:none; }
.timeline li { position:relative; }
.timeline h3 { max-width:410px; margin-bottom:0; font-size:1.08rem; }
.timeline p { font-size:.76rem; margin-top:8px; margin-bottom:0; }
.current-label { display:inline-block; margin-left:10px; padding:2px 7px; background:var(--surface-alt); border:1px solid var(--line); border-radius:2px; font-size:.45rem; letter-spacing:.1em; vertical-align:middle; }
.contact-band { background:#e0e0e0; border-top:1px solid #cccccc; }
footer { background:var(--footer-bg); color:#d0d0d0; }
.footer-content { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:24px; min-height:76px; padding-block:14px; }
.footer-copy { color:#d4d4d4; font-size:.63rem; margin:0; text-align:center; }
.footer-top { display:inline-flex; justify-self:end; align-items:center; font-size:.63rem; }
.footer-top span { margin-left:15px; }
.popover { --bs-popover-bg:var(--surface); --bs-popover-header-bg:var(--surface-alt); --bs-popover-header-color:var(--heading); --bs-popover-body-color:var(--text); --bs-popover-border-color:var(--line); --bs-popover-border-radius:5px; --bs-popover-font-size:.8rem; font-family:inherit; box-shadow:0 8px 26px #00000025; }

/* Visible scenes respond to scroll in both directions without moving text hit targets. */
[data-scroll-motion] { transform:translate3d(var(--motion-x,0px),var(--motion-y,0px),0) rotate(calc(var(--base-turn,0deg) + var(--motion-turn,0deg))); }
.ribbon-track { display:flex; align-items:center; gap:40px; width:max-content; margin-inline:-140px; font:750 2.1rem/1 var(--serif); letter-spacing:-.04em; text-transform:uppercase; }

/* Reset only after an element leaves the viewport; re-entry replays the movement. */
.reveal-pending { opacity:0; transform:translate3d(0,56px,0); transition:none; }
.reveal-pending[data-reveal="left"] { transform:translate3d(-64px,16px,0) rotate(-1.2deg); }
.reveal-pending[data-reveal="right"] { transform:translate3d(64px,16px,0) rotate(1.2deg); }
.reveal-pending[data-reveal="scale"] { transform:translate3d(0,38px,0) scale(.9); }
.is-revealed { transition:opacity .6s var(--ease) var(--reveal-delay,0ms),transform 1.05s var(--ease) var(--reveal-delay,0ms); opacity:1; transform:none; }
.reveal-pending .section-line { transform:scaleX(0); }
.is-revealed .section-line { transform:scaleX(1); transition:transform .9s var(--ease) .15s; }
@keyframes scroll-hint { 0%,100% { transform:translateY(0); opacity:.65; } 55% { transform:translateY(8px); opacity:1; } }
@media (hover:hover) and (pointer:fine) {
    .skill-card:hover { transform:translateY(-6px); border-color:#9f9f9f; box-shadow:0 14px 30px #3535350d; }
}
@media (max-width:1100px) {

    .interests-layout,.journey-layout { gap:65px; }
}
@media (max-width:900px) {
    .nav-links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; padding:14px 0 2px; }
    .nav-links .nav-contact { grid-column:1 / -1; }
    .nav-ready .nav-toggle { display:flex; flex-direction:column; justify-content:center; gap:6px; width:44px; height:44px; padding:12px 8px; background:none; border:1px solid var(--line); border-radius:50%; }
    .nav-toggle span { display:block; width:100%; height:1px; background:var(--heading); transition:transform .25s; }
    .nav-toggle[aria-expanded="true"] span:first-child { transform:translateY(3.5px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:last-child { transform:translateY(-3.5px) rotate(-45deg); }
    .nav-ready .nav-links { display:none; }
    .nav-ready .nav-links.is-open { display:grid; }
    .nav-links a { min-height:44px; display:inline-flex; align-items:center; }
    .heading-row { align-items:start; flex-direction:column; gap:24px; }
    .heading-row p br { display:none; }
    .skill-card > strong { font-size:1.7rem; }
    .skill-description { font-size:.73rem; }
    .skill-bottom { gap:8px; }
    .footer-content { gap:15px; }
    .footer-copy { font-size:.56rem; }
    .footer-top { font-size:.55rem; }
}
@media (max-width:600px) {
    html { scroll-padding-top:98px; }
    .eyebrow { font-size:.55rem; margin-bottom:18px; }
    .section-heading { margin-bottom:32px; }
    .section-line { margin-top:20px; }
    .scroll-cue { font-size:.49rem; gap:9px; }

    .about-text { font-size:.87rem; }
    .heading-row { gap:22px; }
    .heading-row > p { font-size:.8rem; }
    .skill-card > strong { font-size:2rem; }
    .skill-description { font-size:.8rem; }
    .hobby-description { max-width:none; }
    .timeline { margin-left:6px; }
    .timeline h3 { font-size:1.04rem; }
    .contact-intro .section-line { margin-left:0; }
    .footer-top { margin-left:auto; }
    .ribbon-track { font-size:2rem; gap:30px; }
}
@media (max-width:360px) {
    .footer-content { align-items:start; }
    .footer-top { margin-left:0; }
}
@media (prefers-reduced-motion:reduce) {
    html { scroll-behavior:auto; }
    *,*::before,*::after { animation:none !important; transition:none !important; }
    .reveal-pending,.is-revealed { opacity:1; transform:none; }
    .reveal-pending .section-line { transform:none; }
    [data-scroll-motion] { transform:rotate(var(--base-turn,0deg)); }
    .timeline::after { transform:scaleY(1); }
}
/* CSS layout stays live while decorative painting yields to a native window drag. */
.is-resizing :is(.tech-card-face,.hero-down,.circuit-node,.circuit-light,.about-art-cursor,.about-playhead,.filmstrip,.music-wave > span,.education-trail-trace,.education-node,.contact-route-signal,.service-orbit,.runner-body,.runner-eyes,.runner-leg) { animation-play-state:paused !important; }
.is-resizing .reveal-pending { opacity:1; transform:none; transition:none !important; }
.is-resizing .education-rail-cursor,.is-resizing .timeline::after,.is-resizing .tech-card { transition:none !important; }
/* Neutral UI surfaces adapt to each theme while media retains its original colors. */
.journey-band,.contact-band,.interests-band { background:var(--surface-soft); border-color:var(--line); }
.skills-grid > :nth-child(2) .skill-card { background:var(--surface-soft); }
.skills-grid > :nth-child(3) .skill-card { background:var(--surface-alt); }
.timeline li::before { content:''; position:absolute; height:11px; width:11px; border:2px solid #8e8e8e; border-radius:50%; background:var(--surface-soft); border-color:var(--muted); }
.timeline .timeline-current::before { box-shadow:0 0 0 5px #35353510; background:var(--heading); border-color:var(--heading); }
.ribbon-track { color:var(--muted); }

/* Small, persistent theme control. Stored preference is applied before first paint. */
::selection { background:var(--solid); color:var(--on-solid); }
.skip-link { background:var(--solid); color:var(--on-solid); }
.site-nav { display:flex; align-items:center; justify-content:space-between; gap:24px; }
.nav-links { order:1; margin-left:auto; }
.nav-actions { display:flex; align-items:center; gap:10px; order:2; }
.theme-toggle { display:grid; place-items:center; padding:0; border:1px solid var(--line); border-radius:50%; background:var(--surface); color:var(--heading); transition:background-color .2s,transform .2s; }
.theme-toggle:hover { background:var(--surface-alt); }
.theme-toggle[hidden] { display:none; }
.theme-toggle svg { fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.theme-icon-scene { position:relative; display:block; width:20px; height:20px; view-transition-name:theme-icon; }
.theme-icon-scene svg { position:absolute; inset:0; display:block; transition:opacity .45s,transform .55s var(--ease); }
.theme-sun { opacity:1; transform:rotate(0) scale(1); }
.theme-moon { opacity:0; transform:rotate(-90deg) scale(.3); }
[data-theme="light"] .theme-sun { opacity:0; transform:rotate(90deg) scale(.3); }
[data-theme="light"] .theme-moon { opacity:1; transform:rotate(0) scale(1); }
.theme-view-transition .theme-icon-scene svg { transition:none; }
/* Snapshot final theme colors; the circular reveal supplies the color transition. */
.theme-view-transition :is(a,button,input,textarea,details,.topbar,.message-panel,.skill-icon,.skill-details > span,.interest-plus,.contact-link-icon svg) { transition-property:transform,opacity !important; }
::view-transition { pointer-events:none; }
::view-transition-group(root) { z-index:1; }
::view-transition-image-pair(root) { isolation:auto; }
::view-transition-old(root),::view-transition-new(root) { animation:none; mix-blend-mode:normal; }
::view-transition-old(root) { z-index:1; }
::view-transition-new(root) { z-index:2; }
::view-transition-group(theme-icon) { z-index:3; animation-duration:.65s; }
::view-transition-old(theme-icon) { animation:theme-icon-out .25s ease-in both; }
::view-transition-new(theme-icon) { animation:theme-icon-in .55s cubic-bezier(.2,.8,.3,1) both; }
@keyframes theme-icon-out { to { opacity:0; transform:rotate(-100deg) scale(.25); } }
@keyframes theme-icon-in { from { opacity:0; transform:rotate(100deg) scale(.25); } to { opacity:1; transform:rotate(0) scale(1); } }
.theme-color-fade :is(body,.topbar,section,footer,.skill-card,.about-focus,.interest-card,.education-card,.message-panel,.contact-item,input,textarea,h1,h2,h3,p) { transition:background-color .5s ease,color .5s ease,border-color .5s ease,box-shadow .5s ease; }


/* Direct email submission preserves the note until the service accepts it. */
.message-panel { grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:42px; border:1px solid var(--line); background:var(--surface); }
.message-intro .eyebrow { font-size:.5rem; }
.message-intro h3 { font:750 2rem/1.1 var(--serif); letter-spacing:-.045em; }
.message-intro p:last-child { font-size:.82rem; margin:0; overflow-wrap:anywhere; }
.form-row { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr)); gap:0 16px; }
.form-field { min-width:0; display:flex; flex-direction:column; gap:8px; margin-bottom:18px; }
.form-field label { color:var(--text); font-size:.8rem; }
.form-field input,.form-field textarea { width:100%; min-width:0; max-width:100%; border:1px solid var(--line); padding:12px; color:var(--text); font:400 1rem/1.6 'Segoe UI',Arial,sans-serif; }
.form-field input { min-height:48px; }
.form-field input::placeholder,.form-field textarea::placeholder { color:var(--muted); opacity:1; }
.form-submit { display:flex; align-items:center; flex-wrap:wrap; gap:14px; }
.form-status { margin:16px 0 0; font-size:.76rem; color:var(--muted); }
.form-status:empty { display:none; }
.form-status[data-state] { padding:13px 15px; border:1px solid var(--line); border-radius:9px; background:var(--surface-soft); }
.form-status[data-state="error"],.form-status[data-state="pending"] { border-left:3px solid var(--heading); }
.form-trap { display:none; }
.form-submit button:disabled { cursor:wait; opacity:.65; }
.send-spinner { display:inline-block; width:14px; height:14px; margin-right:7px; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; animation:send-spin .8s linear infinite; }
@keyframes send-spin { to { transform:rotate(360deg); } }
.message-dialog { width:min(440px,calc(100% - 36px)); max-height:calc(100vh - 36px); max-height:calc(100svh - 36px); margin:auto; padding:38px; border:1px solid var(--line); border-radius:22px; background:var(--surface); color:var(--text); box-shadow:0 25px 90px #00000044; text-align:center; overflow:auto; }
.message-dialog:not([open]) { display:none; }
.message-dialog::backdrop { background:#00000099; backdrop-filter:blur(5px); }
.message-dialog-close { position:absolute; top:12px; right:12px; width:36px; height:36px; border:0; border-radius:50%; background:var(--surface-alt); color:var(--heading); font-size:1.25rem; }
.message-dialog-symbol { display:grid; place-items:center; width:64px; height:64px; margin:0 auto 24px; border:1px solid var(--line); border-radius:50%; background:var(--surface-soft); color:var(--heading); }
.message-dialog-symbol svg { fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.message-dialog .dialog-error { display:none; }
.message-dialog[data-state="error"] .dialog-check { display:none; }
.message-dialog[data-state="error"] .dialog-error { display:block; }
.message-dialog .eyebrow { margin-bottom:10px; font-size:.56rem; }
.message-dialog h2 { font:600 clamp(1.65rem,5vw,2rem)/1.2 'Segoe UI',Arial,sans-serif; letter-spacing:-.035em; }
.message-dialog > p:not(.eyebrow) { margin:16px 0 24px; font-size:.86rem; line-height:1.7; }
.message-dialog > .button { justify-content:center; min-width:140px; }
.message-dialog > .button:hover { transform:none; }

/* Two original little runners occupy only their own hit targets at the screen edge. */
.buddy-widget { position:fixed; z-index:980; left:0; right:0; bottom:calc(var(--buddy-bottom,8px) + env(safe-area-inset-bottom,0px)); height:70px; pointer-events:none; }
.buddy-widget[hidden] { display:none; }
.runner { position:absolute; left:0; bottom:0; width:56px; height:65px; transform:translate3d(var(--runner-x,12px),0,0); will-change:transform; }
.runner-catch { position:relative; display:block; width:56px; height:65px; padding:0; border:0; border-radius:15px; background:none; pointer-events:auto; cursor:grab; }
.runner-catch:active { cursor:grabbing; }
.runner-character { display:block; overflow:visible; filter:drop-shadow(0 3px 2px #00000015); }
.runner[data-direction="-1"] .runner-character { transform:scaleX(-1); }
.runner-arm,.runner-leg { fill:none; stroke:var(--solid); stroke-width:4; stroke-linecap:round; }
.runner-shadow { fill:var(--muted); opacity:.16; }
.runner-body { transform-origin:32px 60px; animation:runner-idle 2.7s ease-in-out infinite alternate; }
.runner.is-running .runner-body { animation:runner-hop .32s ease-in-out infinite alternate; }
.runner.is-running .runner-leg { transform-origin:32px 56px; animation:runner-step .22s ease-in-out infinite alternate; }
.runner.is-running .leg-right { animation-delay:-.22s; }
.runner-alert { position:absolute; top:-8px; left:23px; font-weight:800; font-size:1rem; color:var(--heading); opacity:0; }
.runner.is-fleeing .runner-alert { opacity:1; }
.runner[data-caught="true"] .runner-body { animation:none; transform:rotate(-7deg); }
.runner-bubble { position:absolute; bottom:83px; max-width:calc(100vw - 24px); border:1px solid var(--line); background:var(--surface); box-shadow:0 5px 25px #00000014; pointer-events:none; }
.runner-bubble[hidden] { display:none; }
.runner-bubble p { margin:0; color:var(--heading); line-height:1.5; }
.runner-bubble > button { position:absolute; top:1px; right:1px; width:32px; height:36px; border:0; background:none; color:var(--muted); font-size:1.2rem; pointer-events:auto; }
@keyframes runner-idle { to { transform:translateY(-3px) rotate(2deg); } }
@keyframes runner-hop { to { transform:translateY(-3px) rotate(-4deg); } }
@keyframes runner-step { from { transform:rotate(-24deg); } to { transform:rotate(24deg); } }
@keyframes runner-blink { 0%,90%,100% { transform:scaleY(1); } 94%,96% { transform:scaleY(.12); } }
@media (max-width:900px) {
    .nav-actions { margin-left:auto; }
    .nav-links { order:3; margin-left:0; }
    .message-panel { grid-template-columns:1fr; gap:28px; }
    .message-intro { max-width:540px; }
}
@media (max-width:600px) {
}
@media (max-width:360px) {
    .nav-actions { gap:8px; }
}
/* Personal introduction: compact mixed typography and a lightweight graphic scene. */
.brand { letter-spacing:.07em; gap:12px; }
.brand > span { max-width:220px; line-height:1.5; }
.motion-ribbon { overflow:clip; margin-top:32px; border-block:1px solid #dcdcdc; border-color:var(--line); padding-block:23px; background:var(--surface-soft); }
.circuit-rail { position:relative; display:flex; justify-content:space-between; gap:35px; width:100%; min-width:660px; margin:0; color:var(--muted); }
.circuit-rail::before { content:""; position:absolute; inset:50% 0 auto; border-top:1px dashed var(--line); }
.circuit-node { position:relative; display:grid; place-items:center; width:70px; height:70px; flex-shrink:0; border:1px solid var(--line); border-radius:18px; background:var(--bg); transform:rotate(-5deg); box-shadow:4px 5px 0 var(--surface-alt); animation:circuit-float 5s ease-in-out var(--node-delay) infinite alternate; }
.circuit-node:nth-child(even) { transform:rotate(5deg); }
.circuit-node svg { width:30px; height:30px; }
.circuit-light { position:absolute; right:7px; top:7px; width:4px; height:4px; background:var(--heading); border-radius:50%; animation:circuit-pulse 2.8s ease-in-out var(--node-delay) infinite; }
@keyframes circuit-float { to { translate:0 -5px; rotate:6deg; } }
@keyframes circuit-pulse { 50% { opacity:.15; } }

/* Reference composition: floating navigation, portrait cutout, name, and a field of cards. */
.topbar,.topbar.is-scrolled { position:fixed; inset:18px 0 auto; background:none; border:0; box-shadow:none; pointer-events:none; }
.site-nav { width:min(1200px,calc(100% - 64px)); min-height:70px; padding:10px 22px; border:1px solid var(--line); border-radius:25px; background:var(--bg); box-shadow:0 8px 30px #00000009; pointer-events:auto; }
.nav-links { gap:6px; }
.nav-links a { font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; }
.nav-links .nav-contact { border:1px solid var(--line); border-radius:20px; text-transform:none; letter-spacing:0; padding:8px 16px; }
.theme-toggle { width:44px; height:44px; }
/* Loose Halo: proportional card centers preserve the selected scattered composition. */
.hero { --hero-scene-width:1680px; --hero-height:clamp(580px,100vh,940px); --hero-portrait-top:clamp(108px,min(calc(400px - 13vw),24vh),300px); --hero-card-w:clamp(58px,min(6.666667vw,10.5vh),112px); --hero-card-h:calc(var(--hero-card-w) * 1.15); position:relative; display:block; width:100%; min-height:var(--hero-height); margin:0; padding:0; overflow:hidden; background:radial-gradient(ellipse at 56% 45%,var(--surface-alt),transparent 58%),var(--bg); }
.hero-heading { position:absolute; z-index:3; top:clamp(188px,min(max(315px,calc(470px - 10vw)),30vh),360px); left:max(5%,calc((100% - var(--hero-scene-width)) / 2 + 84px)); width:max-content; max-width:31%; animation:hero-name-in .9s var(--ease) both; }
.hero-kicker { margin-bottom:23px; color:var(--muted); font:.6rem/1 Consolas,monospace; letter-spacing:.19em; }
.hero h1 { width:max-content; max-width:100%; margin:0; color:var(--heading); font-size:clamp(2.2rem,5.1vw,4.6rem); line-height:1; }
.hero h1 .name-first { display:block; width:max-content; font:500 1em/1.05 'Caveat','Segoe Print',cursive; letter-spacing:-.04em; }
.hero h1 .name-last { display:block; width:max-content; margin-top:-.08em; font:600 .85em/1.18 'Manrope','Segoe UI',sans-serif; letter-spacing:.08em; text-transform:uppercase; }
.hero-signoff { margin:24px 0 0; padding-left:15px; border-left:2px solid var(--heading); color:var(--text); font-size:clamp(.75rem,1vw,.82rem); line-height:1.7; }
.hero-signoff > span { color:var(--muted); font-size:.65rem; }
.hero-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; max-width:100%; margin-top:20px; }
.hero-work-link { display:inline-flex; min-height:44px; align-items:center; gap:15px; color:var(--heading); font-size:.75rem; white-space:nowrap; text-underline-offset:5px; }
.hero-work-link span { display:grid; place-items:center; width:36px; height:36px; border:1px solid var(--line); border-radius:50%; background:var(--surface); transition:transform .25s var(--ease),border-color .25s; }
.hero-work-link:hover { color:var(--heading); text-decoration:underline; }
.hero-work-link:hover span { transform:translate(2px,-2px); border-color:var(--muted); }
/* Anchored to the hero floor: a narrower screen shrinks the photo upward, never leaving a gap below it. */
.hero-portrait { position:absolute; z-index:2; left:calc(50% + min(8vw,134.4px)); bottom:0; width:min(34.5vw,490px,calc((var(--hero-height) - var(--hero-portrait-top)) * 2 / 3)); aspect-ratio:2 / 3; margin:0; transform:translateX(-50%); }
.portrait-frame { display:block; width:100%; height:100%; border:0; background:transparent; overflow:hidden; }
.portrait-frame img { display:block; width:100%; height:100%; object-fit:contain; object-position:center bottom; mask-image:linear-gradient(to bottom,#000 0%,#000 79%,transparent 99%); animation:hero-portrait-in 1s var(--ease) both; }
.hero-tech-field { position:absolute; top:0; bottom:0; left:0; right:0; width:min(100%,var(--hero-scene-width)); margin-inline:auto; pointer-events:none; }
.hero-tech-field::before,.hero-tech-field::after { content:''; position:absolute; left:58%; top:51%; width:66%; height:64%; border:1px solid var(--line); border-radius:50%; opacity:.18; transform:translate(-50%,-50%) rotate(-20deg); }
.hero-tech-field::after { width:57%; height:78%; border-style:dashed; transform:translate(-50%,-50%) rotate(24deg); }
.tech-card { position:absolute; z-index:1; left:calc(var(--icon-x) - var(--hero-card-w) * var(--card-scale,1) / 2); top:calc(var(--icon-y) - var(--hero-card-h) * var(--card-scale,1) / 2); width:calc(var(--hero-card-w) * var(--card-scale,1)); height:calc(var(--hero-card-h) * var(--card-scale,1)); color:var(--heading); transform:rotate(var(--card-angle,-7deg)); }
.tech-card-face { display:flex; flex-direction:column; justify-content:center; align-items:center; gap:10px; width:100%; height:100%; padding:12px 7px; border:1px solid var(--line); border-radius:20px; background:linear-gradient(145deg,var(--surface),var(--surface-soft)); box-shadow:5px 12px 30px #00000014,inset 0 1px 0 #ffffff12; animation:tech-drift 7s ease-in-out var(--card-delay) infinite alternate; }
.tech-card svg,.tech-card .brand-icon { display:block; flex:none; width:clamp(28px,2.6vw,38px); height:clamp(28px,2.6vw,38px); object-fit:contain; overflow:visible; }
.brand-icon-capcut { filter:var(--close-filter); }
.tech-card svg,.circuit-node svg,.skill-icon svg { fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.tech-card span { color:var(--heading); font-size:clamp(.56rem,.8vw,.7rem); text-align:center; line-height:1.3; }
/* Hover only on real pointers so touch taps never leave a stuck lifted card. */
@media (hover:hover) and (pointer:fine) {
  .tech-card { pointer-events:auto; transition:transform .35s var(--ease); }
  .tech-card-face,.tech-card svg,.tech-card .brand-icon { transition:border-color .35s var(--ease),box-shadow .35s var(--ease),transform .35s var(--ease); }
  .tech-card:hover { transform:rotate(0deg) translateY(-6px) scale(1.08); }
  .tech-card:hover .tech-card-face { border-color:var(--accent); box-shadow:8px 18px 38px #00000029,0 0 0 1px var(--accent),inset 0 1px 0 #ffffff1f; }
  .tech-card:hover svg,.tech-card:hover .brand-icon { transform:scale(1.12); }
}
@media (prefers-reduced-motion:reduce) { .tech-card,.tech-card-face,.tech-card svg,.tech-card .brand-icon { transition:none; } }
.tech-html { --icon-x:8.333333%; --icon-y:21.111111%; --card-angle:-12deg; }
.tech-css { --icon-x:22.916667%; --icon-y:18.888889%; --card-angle:7deg; }
.tech-bootstrap { --icon-x:38.541667%; --icon-y:17.777778%; --card-scale:.916667; --card-angle:-6deg; }
.tech-vscode { --icon-x:33.680556%; --icon-y:38.333333%; --card-angle:-8deg; }
.tech-git { --icon-x:calc(70.138889% + clamp(0px,calc(37.5vw - 540px),110px)); --icon-y:17.555556%; --card-scale:.833333; --card-angle:6deg; }
.tech-react { --icon-x:86.111111%; --icon-y:22.777778%; --card-scale:1.083333; --card-angle:-8deg; }
.tech-js { --icon-x:80.208333%; --icon-y:44.444444%; --card-angle:8deg; }
.tech-java { --icon-x:92.361111%; --icon-y:53.888889%; --card-angle:-6deg; }
.tech-php { --icon-x:84%; --icon-y:70%; --card-scale:.916667; --card-angle:9deg; }
.tech-eclipse { --icon-x:9%; --card-scale:.916667; --card-angle:9deg; top:auto; bottom:clamp(18px,4vh,34px); }
.tech-python { --icon-x:23%; --card-scale:.916667; --card-angle:-7deg; top:auto; bottom:clamp(22px,5.5vh,52px); }
.hero-bottom { position:absolute; z-index:4; left:0; right:0; bottom:18px; display:flex; justify-content:center; }
.hero .scroll-cue { display:flex; flex-direction:column; align-items:center; gap:4px; font-size:.5rem; letter-spacing:.22em; color:var(--muted); }
.hero-down { font-size:1.2rem; line-height:1; animation:scroll-hint 2.4s ease-in-out infinite; }
@keyframes tech-drift { from { transform:translateY(-4px) rotate(-.5deg); } to { transform:translateY(4px) rotate(.5deg); } }
@keyframes hero-name-in { from { opacity:0; transform:translateX(-18px); } to { opacity:1; transform:none; } }
@keyframes hero-portrait-in { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:none; } }
@supports (height:100svh) { .hero { --hero-height:clamp(580px,100svh,940px); } }
@media (max-width:1100px) { .site-nav { padding-inline:17px; } }
@media (max-width:900px) {
    .site-nav { gap:0; flex-wrap:wrap; }
    .nav-ready .site-nav:has(.nav-links.is-open) { max-height:calc(100vh - 28px); max-height:calc(100dvh - 28px); overflow-y:auto; overscroll-behavior:contain; }
}
@media (min-width:701px) and (max-width:1080px) {
    .hero { --hero-height:clamp(500px,min(100vh,calc(46vw + 190px)),760px); --hero-portrait-top:clamp(96px,calc(var(--hero-height) * .19),144px); --hero-card-w:clamp(50px,min(6.4vw,calc(var(--hero-height) * .105)),82px); }
    .hero-heading { top:clamp(156px,calc(var(--hero-height) * .31),250px); max-width:29%; }
    .hero-kicker { margin-bottom:14px; }
    .hero-signoff,.hero-actions { margin-top:14px; }
    .hero-portrait { left:calc(50% + min(10vw,134.4px)); width:min(35vw,400px,calc((var(--hero-height) - var(--hero-portrait-top)) * 2 / 3)); }
    .tech-html { --icon-x:8%; --icon-y:15%; }
    .tech-css { --icon-x:21%; --icon-y:14%; }
    .tech-bootstrap { --icon-x:34.5%; --icon-y:14%; }
    .tech-vscode { --icon-x:38.5%; --icon-y:30%; }
    .tech-git { --icon-x:84%; --icon-y:15%; }
    .tech-react { --icon-x:92.5%; --icon-y:28%; }
    .tech-js { --icon-x:84%; --icon-y:44%; }
    .tech-java { --icon-x:92.5%; --icon-y:58%; }
    .tech-php { --icon-x:84.5%; --icon-y:74%; }
    .tech-eclipse { --icon-x:8%; bottom:14px; }
    .tech-python { --icon-x:21%; bottom:18px; }
}
@supports (height:100svh) {
    @media (min-width:701px) and (max-width:1080px) {
        .hero { --hero-height:clamp(500px,min(100svh,calc(46vw + 190px)),760px); }
    }
}
@media (max-width:700px) {
    .hero { --hero-card-w:clamp(54px,12vw,68px); --hero-card-h:calc(var(--hero-card-w) * 1.15); --hero-step:calc(var(--hero-card-h) + 12px); display:flex; flex-direction:column; align-items:center; justify-content:flex-start; min-height:0; padding:clamp(92px,13vh,112px) 0 18px; }
    .hero-heading { position:relative; top:auto; left:auto; order:1; width:calc(100% - 40px); max-width:540px; margin:0 auto 14px; }
    .hero-kicker { margin-bottom:12px; font-size:.5rem; }
    .hero-signoff { margin-top:14px; font-size:.75rem; }
    .hero-signoff > span { font-size:.62rem; }
    .hero-actions { margin-top:14px; }
    .hero-tech-field::before,.hero-tech-field::after { left:50%; top:64%; width:86%; height:56%; }
    .hero-portrait { position:relative; left:auto; bottom:auto; transform:none; order:2; width:min(270px,calc(100% - var(--hero-card-w) * 2 - 52px)); margin:0 auto calc(var(--hero-card-h) + 6px); }
    .hero-bottom { position:relative; bottom:auto; order:4; margin-top:4px; }
    .tech-card { --card-scale:1; left:auto; right:auto; top:auto; }
    .tech-card svg,.tech-card .brand-icon { width:24px; height:24px; }
    .tech-card-face { padding:7px 4px; gap:4px; border-radius:14px; }
    .tech-card span { font-size:.55rem; }
    /* Bottom-anchored flanking cards stay synced to the portrait and bottom row. */
    .tech-eclipse { left:5%; bottom:calc(var(--hero-card-h) + 70px); --card-angle:-6deg; }
    .tech-vscode { left:4%; bottom:calc(var(--hero-card-h) + 70px + var(--hero-step)); --card-angle:-6deg; }
    .tech-css { left:6%; bottom:calc(var(--hero-card-h) + 70px + var(--hero-step) * 2); --card-angle:6deg; }
    .tech-html { left:5%; bottom:calc(var(--hero-card-h) + 70px + var(--hero-step) * 3); --card-angle:-10deg; }
    .tech-java { right:6%; bottom:calc(var(--hero-card-h) + 66px); --card-angle:6deg; }
    .tech-js { right:4%; bottom:calc(var(--hero-card-h) + 66px + var(--hero-step)); --card-angle:7deg; }
    .tech-git { right:6%; bottom:calc(var(--hero-card-h) + 66px + var(--hero-step) * 2); --card-angle:-6deg; }
    .tech-bootstrap { right:5%; bottom:calc(var(--hero-card-h) + 66px + var(--hero-step) * 3); --card-angle:6deg; }
    .tech-python { left:calc(18% - var(--hero-card-w) / 2); bottom:48px; --card-angle:7deg; }
    .tech-react { left:calc(50% - var(--hero-card-w) / 2); bottom:54px; --card-angle:-6deg; }
    .tech-php { left:calc(82% - var(--hero-card-w) / 2); bottom:46px; --card-angle:7deg; }
}
@media (max-width:430px) {
    .hero { padding:88px 0 18px; }
    .hero-heading { width:calc(100% - 32px); margin-bottom:12px; }
    .hero-portrait { width:clamp(196px,66vw,264px); margin:0 auto; }
    .hero-tech-field { position:relative; inset:auto; order:3; display:flex; flex-wrap:wrap; justify-content:center; gap:7px; width:calc(100% - 24px); max-width:400px; margin:15px auto 12px; pointer-events:auto; }
    .hero-tech-field::before,.hero-tech-field::after { display:none; }
    .tech-card { position:relative; left:auto; right:auto; top:auto; bottom:auto; width:auto; height:auto; transform:none; }
    .tech-card-face { flex-direction:row; gap:6px; padding:6px 10px; border-radius:12px; box-shadow:0 4px 12px #00000012; animation:none; }
    .tech-card svg,.tech-card .brand-icon { width:18px; height:18px; }
    .tech-card span { font-size:.66rem; line-height:1.2; white-space:nowrap; }
}
@media (max-width:600px) {
    .topbar,.topbar.is-scrolled { top:12px; }
    .site-nav { width:calc(100% - 28px); min-height:66px; padding:10px 12px; border-radius:21px; }
}
@media (max-width:360px) {
    .site-nav { width:calc(100% - 20px); padding-inline:8px; }
    .avatar-frame { width:34px; height:34px; }
    .hero-heading { left:20px; width:calc(100% - 40px); }
}
/* Native scroll-snap remains available when JavaScript is disabled. */
.gallery-track { display:flex; width:100%; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory; scrollbar-width:thin; scrollbar-color:var(--muted) var(--surface); }
.carousel-ready .gallery-track::-webkit-scrollbar { display:none; }
.gallery-slide { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); position:relative; flex:0 0 100%; min-width:0; min-height:450px; margin:0; scroll-snap-align:start; overflow:hidden; background:var(--surface-soft); }
.gallery-slide img { grid-column:2; grid-row:1; display:block; align-self:center; width:100%; height:auto; max-height:350px; object-fit:contain; transform:scale(.94) rotate(-3deg); transition:transform .8s var(--ease); }
.gallery-slide.is-active img { transform:scale(1) rotate(0); }
.gallery-slide figcaption { grid-column:1; grid-row:1; align-self:center; padding:38px 12px 38px 42px; min-width:0; }
.gallery-slide figcaption > span { display:block; margin-bottom:18px; color:var(--muted); font-size:.54rem; letter-spacing:.16em; }
.gallery-slide h3 { margin-bottom:16px; font-size:clamp(1.7rem,3vw,2.65rem); line-height:1.08; font-weight:650; letter-spacing:-.045em; }
.gallery-slide p { margin:0 0 22px; max-width:370px; font-size:.8rem; }
.gallery-controls { display:flex; align-items:center; justify-content:center; padding:8px 22px; border-top:1px solid var(--line); }
.gallery-controls[hidden] { display:none; }
.gallery-arrows { display:flex; gap:12px; align-items:center; }
.gallery-arrows button { display:grid; place-items:center; width:44px; height:44px; padding:0; border:1px solid var(--line); border-radius:50%; background:var(--surface); color:var(--heading); font-size:1.15rem; cursor:pointer; transition:background-color .2s,border-color .2s; }
.gallery-arrows button:hover { background:var(--surface-alt); border-color:var(--muted); }

.skills-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.skill-card { padding:24px; }
.skill-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.skill-icon { display:inline-flex; justify-content:center; align-items:center; border:1px solid #bfbfbf; font:.95rem monospace; color:var(--accent); border-radius:12px; width:48px; height:48px; font-size:1.1rem; background:var(--surface-soft); }
.skill-icon svg { width:25px; height:25px; }
.skill-description { max-width:100%; margin-bottom:12px; }
.skill-details { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:12px; }
.skill-bottom { font-size:.68rem; }
.skills-group + .skills-group { margin-top:42px; }
.skills-group-title { display:flex; flex-wrap:wrap; align-items:baseline; gap:14px; margin-bottom:22px; font-size:1.15rem; }
.skills-group-title > span { color:var(--muted); font-size:.59rem; font-weight:500; letter-spacing:.13em; }
.skill-icon img { width:26px; height:26px; object-fit:contain; }

/* Education milestones and contact cards share a clear, comfortable reading rhythm. */
.timeline { padding-left:28px; border-color:var(--line); }
.timeline li { margin-bottom:18px; padding:24px; border:1px solid var(--line); background:var(--surface); border-radius:15px; }
.timeline li:last-child { margin-bottom:0; padding-bottom:24px; }
.timeline li::before { left:-35px; top:31px; }
.timeline-date { display:block; color:var(--heading); font-size:1.25rem; font-weight:650; letter-spacing:-.03em; margin-bottom:13px; }
.timeline h3 { font-weight:550; line-height:1.45; }
.timeline .timeline-current { border-color:var(--heading); }
.contact-layout { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr)); gap:clamp(28px,5vw,72px); align-items:start; }
.contact-summary { min-width:0; }
.contact-intro { text-align:left; margin-bottom:14px; }
.contact-intro h2 { margin-bottom:0; font-weight:650; font-size:clamp(2.45rem,4.3vw,3.5rem); line-height:1.1; }
.contact-intro h2 em { font-family:Georgia,serif; font-style:italic; font-weight:400; color:var(--heading); }
.contact-intro > p:not(.eyebrow) { max-width:350px; margin:22px 0 0; font-size:.9rem; line-height:1.8; }
.contact-route { display:block; width:min(270px,100%); height:86px; margin:14px 0; stroke:var(--muted); stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; }
.contact-route-line { stroke:var(--line); }
.contact-route-signal { stroke:var(--heading); stroke-width:3; stroke-dasharray:4 280; animation:contact-signal 5s linear infinite; animation-play-state:paused; }
.contact-envelope { fill:var(--surface-soft); }
.is-revealed .contact-route-signal { animation-play-state:running; }
@keyframes contact-signal { to { stroke-dashoffset:-284; } }
.contact-grid { display:grid; grid-template-columns:1fr; gap:0; margin:0; max-width:none; border:1px solid var(--line); border-radius:18px; background:var(--surface); overflow:hidden; }
.contact-item { background:var(--surface); display:grid; grid-template-columns:38px minmax(0,1fr); align-items:center; gap:14px; min-height:86px; padding:18px; color:var(--heading); }
.contact-item + .contact-item { border-top:1px solid var(--line); }
.contact-link-icon { display:grid; place-items:center; width:38px; height:38px; border:1px solid var(--line); border-radius:12px; color:var(--muted); }
.contact-link-icon svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; transition:transform .3s,color .3s; }
.contact-link-copy { min-width:0; }
.contact-link-copy .contact-label { display:block; margin:0 0 5px; color:var(--muted); font-size:.5rem; letter-spacing:.13em; }
.contact-link-copy strong { display:block; font-size:clamp(.82rem,1.08vw,.95rem); font-weight:500; overflow-wrap:anywhere; }
.message-panel { position:relative; display:block; min-width:0; width:100%; max-width:none; margin:0; padding:clamp(20px,3vw,32px); border-radius:22px; box-shadow:0 12px 40px #00000008; transition:border-color .3s,box-shadow .3s; }
.message-panel::before { content:''; position:absolute; top:-1px; left:32px; width:52px; height:2px; border-radius:2px; background:var(--heading); transition:width .4s var(--ease); }
.message-panel:focus-within { border-color:var(--muted); box-shadow:0 12px 40px #00000013; }
.message-panel:focus-within::before { width:calc(100% - 64px); }
.message-intro { margin-bottom:28px; padding-right:38px; }
.message-intro h3 { margin-bottom:12px; font-size:1.8rem; }
.message-intro .eyebrow { margin-bottom:14px; }
.message-icon { position:absolute; right:28px; top:27px; display:grid; place-items:center; width:38px; height:38px; border:1px solid var(--line); border-radius:12px; color:var(--muted); }
.message-icon svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; }
.compose-flap { transition:transform .3s; }
.message-panel:focus-within .compose-flap { transform:translateY(-2px); }
.form-field input,.form-field textarea { border-radius:9px; border-color:var(--field-line); background:var(--surface-soft); transition:border-color .25s,background-color .25s,box-shadow .25s; }
.form-field:focus-within label { color:var(--heading); }
.form-field input:focus,.form-field textarea:focus { border-color:var(--heading); background:var(--surface); box-shadow:0 0 0 3px var(--surface-alt); }
.form-field input:focus-visible,.form-field textarea:focus-visible { outline:1px solid var(--heading); outline-offset:2px; }
.form-field-meta { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.message-count { color:var(--muted); font:.6rem/1.5 Consolas,monospace; font-variant-numeric:tabular-nums; }
.form-submit .button:hover { transform:none; }
.send-arrow { display:inline-flex; }
.send-arrow svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.form-submit button:hover .send-arrow,.form-submit button:focus-visible .send-arrow { animation:send-arrow .55s var(--ease); }
@keyframes send-arrow { 45% { opacity:0; transform:translate(8px,-8px); } 46% { opacity:0; transform:translate(-5px,5px); } to { opacity:1; transform:none; } }

/* Byte and Bit stay black in both themes, with a fine edge for dark backgrounds. */
.runner-shell { fill:#111111; stroke:#777777; stroke-width:1.2; }
.runner-eyes { transform-box:fill-box; transform-origin:center; animation:runner-blink 6s infinite; fill:#ffffff; }
.runner-mouth { fill:none; stroke-linecap:round; stroke:#cfcfcf; stroke-width:1.4; }
.runner-leg,.runner-arm { stroke:#777777; }
.runner-bit .runner-body { animation-delay:-1.3s; }
.runner-bubble { width:190px; padding:12px 30px 12px 14px; border-radius:14px 14px 14px 3px; }
.runner-bubble p { font-size:.8rem; }
.runner.is-fleeing .runner-body { animation-duration:.12s; }
.runner.is-fleeing .runner-leg { animation-duration:.09s; }
.form-field input,.form-field textarea,.form-submit { scroll-margin-bottom:110px; }
html { scroll-padding-bottom:100px; }
@media (max-width:1100px) {
    .skills-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .nav-links { gap:6px; }
    .nav-links a { font-size:.72rem; }
}
@media (max-width:900px) {
    .contact-grid { grid-template-columns:1fr; }
    .timeline li { padding:20px; }
}
@media (max-width:600px) {
    .brand { gap:9px; font-size:.6rem; }
    .brand > span { max-width:150px; }
    .brand-caption { font-size:.41rem; letter-spacing:.13em; }
    .gallery-slide { grid-template-columns:1fr; grid-template-rows:210px 1fr; min-height:610px; }
    .gallery-slide img { grid-column:1; grid-row:1; width:90%; height:210px; margin:auto; }
    .gallery-slide figcaption { grid-column:1; grid-row:2; padding:17px 24px 28px; }
    .gallery-slide h3 { font-size:1.8rem; }
    .gallery-slide p { font-size:.77rem; margin-bottom:18px; }
    .skills-grid { grid-template-columns:1fr; gap:16px; }
    .skill-card { padding:22px; }
    .timeline li::before { left:-35px; }
    .timeline-date { font-size:1.1rem; }
    .contact-grid { grid-template-columns:1fr; }
    .message-intro h3 { font-size:1.55rem; }
}
@media (max-width:360px) {
    .brand > span { max-width:115px; font-size:.55rem; }
    .brand-avatar { width:32px; height:32px; }
    .gallery-slide figcaption { padding-inline:18px; }
    .skill-card { padding:18px; }
}
.nav-links a { font-weight:600; }
.contact-intro h2 { letter-spacing:-.06em; }

/* Service cards stand freely on the page, with the active card raised. */
.gallery-section { padding-block:clamp(44px,min(7vw,7vh),84px); }
.visual-carousel { position:relative; border:0; border-radius:0; background:transparent; overflow:visible; }
.visual-carousel .gallery-track { position:relative; gap:0; perspective:1400px; }
.visual-carousel .gallery-slide { display:flex; flex-direction:column; min-height:0; border:1px solid var(--line); border-radius:20px; background:var(--surface); overflow:hidden; }
.service-artwork { position:relative; flex-shrink:0; border-bottom:1px solid var(--line); }
.visual-carousel .gallery-slide img { display:block; width:100%; height:auto; aspect-ratio:16/9; margin:0; padding:0; object-fit:cover; transform:none; background:var(--surface-soft); }
.service-concept-tag { position:absolute; right:10px; bottom:10px; padding:4px 8px; border:1px solid #ffffff40; border-radius:20px; background:#111111e8; color:#ffffff; font-size:.55rem; line-height:1.4; letter-spacing:.03em; }
.visual-carousel .gallery-slide figcaption { display:block; padding:18px 20px; }
.visual-carousel .service-category { display:block; margin-bottom:8px; color:var(--muted); font-size:.55rem; letter-spacing:.11em; }
.visual-carousel .gallery-slide h3 { margin-bottom:10px; font-size:1.5rem; line-height:1.15; }
.visual-carousel .gallery-slide p { max-width:none; margin-bottom:14px; font-size:.78rem; line-height:1.6; }
.service-workflow { display:grid; gap:9px; padding:0; margin:0 0 14px; list-style:none; counter-reset:service-step; }
.service-workflow li { position:relative; padding-left:24px; counter-increment:service-step; font-size:.73rem; line-height:1.55; }
.service-workflow li::before { content:counter(service-step,decimal-leading-zero); position:absolute; left:0; top:1px; color:var(--muted); font:.6rem/1.7 Consolas,monospace; }
.service-workflow b { color:var(--heading); font-size:inherit; font-weight:600; }
.service-workflow b::after { content:' · '; }
.service-workflow span { color:var(--muted); font-size:inherit; line-height:inherit; }
.service-deliverables { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 12px; padding:0; list-style:none; }
.service-deliverables li { padding:4px 9px; border:1px solid var(--line); border-radius:20px; color:var(--muted); font-size:.61rem; }
.visual-carousel .service-card-action { display:flex; justify-content:space-between; align-items:center; gap:12px; min-height:36px; margin-bottom:0; padding-top:10px; border-top:1px solid var(--line); color:var(--heading); font-size:.72rem; font-weight:600; letter-spacing:0; }
.gallery-select { display:none; }
.carousel-ready .gallery-track { scrollbar-width:none; height:var(--carousel-height,580px); overflow:hidden; scroll-snap-type:none; touch-action:pan-y; user-select:none; cursor:grab; }
.carousel-ready .gallery-track.is-dragging { cursor:grabbing; }
.carousel-ready .gallery-slide { position:absolute; left:50%; top:24px; width:clamp(250px,34vw,380px); max-width:74%; flex:none; z-index:1; transform:translateX(-50%) translateX(var(--slide-x)) translateX(var(--drag-x,0px)) translateY(30px) scale(.82); opacity:.56; filter:saturate(.7); transition:transform .75s var(--ease),box-shadow .6s; transform-origin:50% 50%; }
.carousel-ready .gallery-slide[data-position="previous"] { --slide-x:-100%; }
.carousel-ready .gallery-slide[data-position="next"] { --slide-x:100%; }
.carousel-ready .gallery-slide.is-active { --slide-x:0%; z-index:3; opacity:1; filter:none; transform:translateX(-50%) translateX(var(--drag-x,0px)); box-shadow:0 14px 35px #00000024; }
.carousel-ready .gallery-track:has(> .gallery-slide:only-child) { height:auto; overflow:visible; cursor:default; touch-action:auto; user-select:auto; }
.carousel-ready .gallery-slide:only-child,
.carousel-ready .gallery-slide:only-child.is-active { position:relative; left:auto; top:auto; display:grid; grid-template-columns:minmax(0,1.15fr) minmax(260px,.9fr); width:100%; max-width:none; transform:none; opacity:1; filter:none; box-shadow:none; }
.carousel-ready .gallery-slide:only-child .service-artwork { display:flex; border-bottom:0; border-right:1px solid var(--line); }
.carousel-ready .gallery-slide:only-child .service-artwork img { width:100%; height:100%; min-height:280px; aspect-ratio:auto; object-fit:cover; }
.carousel-ready .gallery-slide:only-child figcaption { align-self:center; padding:clamp(22px,3vw,40px); }
.carousel-ready .gallery-slide:only-child h3 { font-size:clamp(1.8rem,3vw,2.4rem); }
@media (max-width:800px) {
    .carousel-ready .gallery-slide:only-child,
    .carousel-ready .gallery-slide:only-child.is-active { grid-template-columns:1fr; }
    .carousel-ready .gallery-slide:only-child .service-artwork { border-right:0; border-bottom:1px solid var(--line); }
    .carousel-ready .gallery-slide:only-child .service-artwork img { height:auto; min-height:0; aspect-ratio:16/9; }
}
.carousel-ready .gallery-slide .gallery-select { display:block; position:absolute; inset:0; z-index:4; padding:0; border:0; border-radius:inherit; background:none; cursor:pointer; }
.carousel-ready .gallery-select:focus-visible { outline-offset:-5px; }
.carousel-ready .gallery-echo { pointer-events:none; }
.carousel-ready .gallery-select[hidden] { display:none; }
.visual-carousel .gallery-controls { border:0; background:transparent; }
.visual-carousel .gallery-controls[hidden] { display:none; }
.service-dialog { width:min(880px,calc(100% - 32px)); max-height:calc(100vh - 32px); max-height:calc(100svh - 32px); margin:auto; padding:28px; border:1px solid var(--line); border-radius:20px; background:var(--surface); color:var(--text); overflow:auto; box-shadow:0 24px 90px #00000055; }
.service-dialog:not([open]) { display:none; }
.service-dialog::backdrop { background:#000000a6; backdrop-filter:blur(6px); }
.service-dialog-header { position:sticky; top:0; z-index:1; display:flex; align-items:start; justify-content:space-between; gap:16px; padding-bottom:22px; background:var(--surface); }
.service-dialog-header > div { min-width:0; }
.service-dialog-header .eyebrow { margin-bottom:8px; font-size:.55rem; }
.service-dialog h2 { font-size:clamp(1.6rem,4vw,2.3rem); line-height:1.2; }
.service-dialog-close { flex-shrink:0; width:44px; height:44px; border:1px solid var(--line); border-radius:50%; background:var(--surface-soft); color:var(--heading); font-size:1.4rem; }
.service-detail-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:28px; align-items:start; }
.service-sample { margin:0; padding:16px; border:1px solid var(--line); border-radius:12px; background:var(--surface-soft); }
.service-sample img { display:block; width:100%; height:auto; border-radius:6px; }
.service-sample figcaption { margin-top:15px; color:var(--muted); font-size:.68rem; line-height:1.6; }
.service-detail-copy h3 { margin:0 0 10px; font-size:1rem; }
.service-detail-copy p,.service-detail-copy ul { margin:0 0 24px; font-size:.82rem; line-height:1.7; }
.service-detail-copy ul { padding-left:18px; color:var(--body-copy); }
.service-detail-copy li + li { margin-top:7px; }
.service-detail-copy .service-detail-tools { margin:0; color:var(--heading); }
@media (max-width:600px) {
    .service-dialog { padding:20px; border-radius:16px; }
    .service-detail-grid { grid-template-columns:1fr; gap:24px; }
}
.creative-skills .skills-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.skill-card { position:relative; }
.skill-use { display:block; margin:0 0 10px; }
.skill-use b { display:block; margin-bottom:5px; color:var(--heading); font-size:.68rem; font-weight:600; }
.skill-use > span { display:block; color:var(--muted); font-size:.78rem; line-height:1.7; }
.skill-icon { transition:transform .4s var(--ease),background-color .3s; }
.skill-icon img,.skill-icon svg { transition:transform .4s var(--ease); }
.skill-card:hover .skill-icon img,.skill-card:focus-visible .skill-icon img,.skill-card:hover .skill-icon svg,.skill-card:focus-visible .skill-icon svg { transform:scale(1.12) rotate(-7deg); }
.skill-details > span { padding:3px 7px; border:1px solid var(--line); border-radius:2px; color:var(--muted); font-size:.58rem; transition:background-color .3s,border-color .3s; }
.skill-card:hover .skill-details > span { background:var(--surface-soft); border-color:var(--muted); }
.journey-layout { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:72px; align-items:start; }
.journey-layout .section-heading { max-width:none; margin:0; }
.journey-layout .section-heading > p:last-of-type { max-width:320px; margin-top:24px; font-size:.85rem; }
.education-intro h2 { font-size:clamp(2.3rem,4.5vw,3.6rem); }
.education-visual { max-width:370px; margin-top:32px; padding:22px; border:1px solid var(--line); border-radius:22px; background:linear-gradient(145deg,var(--surface),var(--surface-soft)); }
.education-visual-label,.education-visual-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; color:var(--muted); font-size:.54rem; letter-spacing:.1em; }
.education-visual-label { color:var(--heading); }
.education-visual-footer { font-size:.6rem; letter-spacing:0; }
.education-map { position:relative; margin:17px 0; }
.education-map > svg { display:block; width:100%; overflow:visible; }
.education-path-controls { position:absolute; inset:0; }
.education-path-point { position:absolute; left:var(--point-x); top:var(--point-y); width:44px; height:72px; padding:0; transform:translate(-50%,-50%); border:0; border-radius:20px; background:transparent; cursor:pointer; }
.education-path-point::after { content:''; position:absolute; left:50%; top:50%; width:28px; height:28px; border:1px solid var(--muted); border-radius:50%; transform:translate(-50%,-50%) scale(.7); opacity:0; transition:opacity .2s,transform .2s var(--ease); }
.education-path-point:hover::after,.education-path-point:focus-visible::after,.education-path-point[aria-pressed="true"]::after { opacity:1; transform:translate(-50%,-50%) scale(1); }
.education-path-point:focus-visible { outline:none; }
.education-path-point:focus-visible::after { outline:2px solid var(--heading); outline-offset:3px; }
.education-trail { stroke:var(--line); stroke-width:1.5; }
.education-trail-trace { stroke:var(--heading); stroke-width:1.5; stroke-dasharray:5 11; animation:education-route 14s linear infinite; animation-play-state:paused; }
.education-book { stroke:var(--muted); stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.education-node { fill:var(--surface); stroke:var(--heading); stroke-width:2; transform-box:fill-box; transform-origin:center; animation:education-node 4s ease-in-out var(--node-delay,0s) infinite; animation-play-state:paused; }
.education-node.is-selected { fill:var(--heading); }
.is-revealed .education-trail-trace,.is-revealed .education-node { animation-play-state:running; }
.education-visual-years { fill:var(--muted); font:9px Consolas,monospace; text-anchor:middle; }
.education-visual-years .is-selected { fill:var(--heading); font-weight:700; }
@keyframes education-route { to { stroke-dashoffset:-160; } }
@keyframes education-node { 50% { transform:scale(1.25); } }
.journey-layout .timeline { padding:0 0 0 35px; border:0; margin:0; }
.journey-layout .timeline::before,.journey-layout .timeline::after { content:''; display:block; position:absolute; left:8px; top:42px; width:1px; height:calc(100% - 84px); background:var(--line); pointer-events:none; }
.journey-layout .timeline::after { background:var(--heading); transform:scaleY(var(--timeline-progress,0)); transform-origin:top; }
.journey-layout .timeline li { display:block; margin:0 0 10px; padding:0; border:0; border-radius:0; background:none; }
.journey-layout .timeline li:last-child { margin:0; padding:0; border:0; }
.journey-layout .timeline li::before { display:block; left:-32px; top:42px; width:11px; height:11px; border:2px solid var(--line); background:var(--surface-soft); box-shadow:0 0 0 6px var(--surface-soft); }
.journey-layout .timeline li:has(details[open])::before { border-color:var(--heading); background:var(--heading); }
.education-card { border:1px solid var(--line); border-radius:18px; background:var(--surface); transition:border-color .25s,background-color .25s,box-shadow .25s; }
.education-card:hover,.education-card:focus-within { border-color:var(--muted); }
.education-card[open] { border-color:var(--heading); background:var(--surface-alt); box-shadow:0 12px 32px #0000000c; }
.education-card :is(summary,.card-face) { min-height:clamp(76px,10vh,104px); padding:clamp(14px,2vh,20px) 20px; border-radius:inherit; list-style:none; cursor:pointer; }
.education-card summary::-webkit-details-marker { display:none; }
.education-card summary::marker { content:''; }
.education-card summary:focus-visible { outline:2px solid var(--heading); outline-offset:-5px; }
.journey-layout .timeline .education-summary-content { display:grid; grid-template-columns:44px minmax(0,1fr) 20px; gap:8px 16px; align-items:center; max-width:none; margin:0; color:var(--heading); font:inherit; }
.education-icon { display:grid; grid-row:span 2; place-items:center; width:44px; height:44px; border:1px solid var(--line); border-radius:13px; background:var(--surface-soft); }
.education-icon svg { width:23px; height:23px; stroke:currentColor; stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; transition:transform .4s var(--ease); }
.education-card:hover .education-icon svg,.education-card:focus-within .education-icon svg { transform:rotate(-8deg) scale(1.08); }
.education-meta { display:flex; flex-wrap:wrap; align-items:center; gap:5px 9px; min-width:0; }
.education-summary-content .timeline-date { display:block; margin:0; color:var(--muted); font-size:.73rem; letter-spacing:0; font-weight:500; }
.education-meta .current-label { margin:0; padding:3px 6px; border:1px solid var(--line); border-radius:5px; color:var(--heading); font-size:.45rem; line-height:1.2; letter-spacing:.08em; }
.education-school-name { grid-column:2; font-size:1rem; font-weight:600; line-height:1.45; letter-spacing:-.015em; overflow-wrap:anywhere; }
.education-expand { grid-column:3; grid-row:1 / span 2; align-self:center; color:var(--muted); }
.education-expand svg { display:block; width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.3; transition:transform .3s var(--ease); }
.education-card[open] .education-expand svg { transform:rotate(45deg); color:var(--heading); }
.education-details { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:end; gap:18px; margin:0 22px; padding:18px 0 20px; border-top:1px solid var(--line); }
.education-card[open] .education-details { animation:education-detail .22s var(--ease); }
.education-details dl { display:flex; flex-wrap:wrap; gap:14px 30px; margin:0; }
.education-details dt { color:var(--muted); font-size:.6875rem; font-weight:400; margin-bottom:3px; }
.education-details dd { margin:0; color:var(--heading); font-size:.8125rem; line-height:1.5; }
.education-stage { color:var(--muted); font:.53rem/1.5 Consolas,monospace; letter-spacing:.07em; }
@keyframes education-detail { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:none; } }
@media (max-width:1000px) {
    .journey-layout { grid-template-columns:1fr; gap:34px; }
    .journey-layout .education-intro { display:grid; grid-template-columns:minmax(0,1fr) minmax(200px,.8fr); gap:0 30px; align-items:start; }
    .education-intro > .eyebrow,.education-intro > h2,.education-intro > .section-line,.education-intro > p { grid-column:1; }
    .education-intro .education-visual { grid-column:2; grid-row:1 / span 4; margin:0; }
}
@media (max-width:600px) {
    .carousel-ready .gallery-slide { border-radius:16px; }
    .visual-carousel .gallery-slide figcaption { padding:16px; }
    .visual-carousel .gallery-slide p { font-size:.78rem; }
    .service-workflow { gap:9px; }
    .service-deliverables { gap:5px; }
    .service-deliverables li { font-size:.59rem; padding:3px 7px; }
    .creative-skills .skills-grid { grid-template-columns:1fr; }
    .journey-layout .education-intro { display:block; }
    .education-intro .education-visual { max-width:340px; margin:26px 0 0; padding:18px; }
    .journey-layout .timeline { padding-left:24px; }
    .journey-layout .timeline::before,.journey-layout .timeline::after { left:4px; }
    .journey-layout .timeline li::before { left:-25px; }
    .education-card :is(summary,.card-face) { padding:18px; }
    .journey-layout .timeline .education-summary-content { grid-template-columns:34px minmax(0,1fr) 16px; gap:7px 10px; }
    .education-icon { width:34px; height:38px; border-radius:10px; }
    .education-icon svg { width:21px; height:21px; }
    .education-school-name { font-size:.95rem; }
    .education-summary-content .timeline-date { font-size:.67rem; }
    .education-expand svg { width:16px; height:16px; }
    .education-details { margin-inline:18px; }
}
@media (max-width:360px) {
    .visual-carousel .gallery-slide figcaption { padding:14px; }
    .education-card :is(summary,.card-face) { padding:16px 12px; }
    .journey-layout .timeline .education-summary-content { grid-template-columns:minmax(0,1fr) 16px; gap:7px 8px; }
    .education-icon { display:none; }
    .education-meta,.education-school-name { grid-column:1; }
    .education-expand { grid-column:2; }
    .education-details { margin-inline:12px; }
}
/* Fixed card faces open top-layer details without changing document geometry. */
.about-focus,.interest-card,.education-ready .education-card { position:relative; }
.card-open-button { position:absolute; z-index:2; inset:0; width:100%; height:100%; padding:0; border:0; border-radius:inherit; background:transparent; cursor:pointer; }
.card-open-button:focus-visible { outline:2px solid var(--heading); outline-offset:-5px; }
.service-dialog { overscroll-behavior:contain; }
.service-dialog.is-personal { width:min(560px,calc(100% - 32px)); }
.personal-detail > .about-focus-art { height:160px; max-width:320px; margin:8px auto 24px; }
.personal-detail > .interest-art { height:190px; margin-bottom:24px; border:1px solid var(--line); border-radius:14px; }
.personal-detail :is(.about-focus-details,.interest-details) { margin:0; padding:0; border:0; }
.personal-detail :is(.about-focus-details,.interest-details) p { font-size:.9rem; line-height:1.8; }
.service-dialog[open] .personal-detail :is(.about-art-cursor,.about-playhead,.filmstrip,.music-wave > span) { animation-play-state:running; }

/* Two preview folders contain the existing, complete skill grids. */
.skills-folders { display:grid; grid-template-columns:minmax(0,1fr); gap:clamp(18px,2vw,24px); }
.skills-folders[hidden] { display:none; }
.skill-folder { display:block; min-width:0; width:100%; padding:26px; border:1px solid var(--line); border-radius:22px; background:var(--surface); color:var(--heading); text-align:left; cursor:pointer; transition:border-color .25s,background-color .25s,box-shadow .25s; }
@media (min-width:760px) {
    .skill-folder { display:grid; grid-template-columns:minmax(200px,280px) minmax(0,1fr); column-gap:clamp(20px,4vw,40px); align-items:center; padding:28px clamp(22px,3vw,40px); }
    .skill-folder .folder-scene { grid-row:1 / span 3; width:100%; margin:0; }
    .skill-folder :is(.folder-title,.folder-caption,.folder-action) { grid-column:2; }
    .skill-folder .folder-action { margin-top:16px; }
}
.skill-folder:hover,.skill-folder:focus-visible { border-color:var(--muted); background:var(--surface-soft); box-shadow:0 14px 36px #0000000a; }
.skill-folder:focus-visible { outline:2px solid var(--heading); outline-offset:4px; }
.folder-scene { position:relative; display:block; width:min(280px,100%); height:180px; margin:2px auto 22px; perspective:700px; }
.folder-back { position:absolute; left:7%; right:7%; bottom:6px; height:130px; border:1px solid var(--muted); border-radius:12px; background:var(--surface-alt); }
.folder-back::before { content:''; position:absolute; left:-1px; top:-18px; width:42%; height:23px; border:1px solid var(--muted); border-bottom:0; border-radius:10px 12px 0 0; background:var(--surface-alt); }
.folder-front { position:absolute; z-index:2; left:3%; right:3%; bottom:0; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:12px; height:115px; border:1px solid var(--line); border-radius:12px; background:linear-gradient(150deg,var(--surface),var(--surface-alt)); transform-origin:bottom; transform:rotateX(-12deg); transition:transform .45s var(--ease); }
.folder-front svg { width:37px; height:37px; fill:none; stroke:var(--heading); stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; }
.folder-front > span { color:var(--muted); font:.49rem/1.5 Consolas,monospace; letter-spacing:.12em; }
.folder-sheet { position:absolute; z-index:1; left:16%; bottom:18px; display:grid; place-items:start center; width:56%; height:124px; padding-top:16px; border:1px solid var(--muted); border-radius:9px; background:var(--surface); transform-origin:50% 100%; transition:transform .45s var(--ease); }
.folder-sheet svg,.folder-sheet img { width:31px; height:31px; fill:none; stroke:currentColor; }
.sheet-one { transform:rotate(-9deg) translateY(-7px); }
.sheet-two { left:23%; transform:translateY(-15px); }
.sheet-three { left:28%; transform:rotate(9deg) translateY(-5px); }
.skill-folder:hover .sheet-one,.skill-folder:focus-visible .sheet-one { transform:rotate(-13deg) translate(-8px,-24px); }
.skill-folder:hover .sheet-two,.skill-folder:focus-visible .sheet-two { transform:translateY(-35px); }
.skill-folder:hover .sheet-three,.skill-folder:focus-visible .sheet-three { transform:rotate(13deg) translate(8px,-22px); }
.skill-folder:hover .folder-front,.skill-folder:focus-visible .folder-front { transform:rotateX(-28deg); }
.folder-title { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; font-size:1.08rem; font-weight:650; }
.folder-title > span { padding:4px 8px; border:1px solid var(--line); border-radius:20px; color:var(--muted); font-size:.58rem; font-weight:400; }
.folder-caption { display:block; margin-top:10px; color:var(--muted); font-size:.85rem; line-height:1.7; }
.folder-action { display:flex; justify-content:space-between; gap:12px; margin-top:22px; padding-top:15px; border-top:1px solid var(--line); font-size:.75rem; }
.skills-dialog { width:min(1120px,calc(100% - 32px)); }
.skills-dialog .skills-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); gap:16px; padding-top:6px; }
.skills-dialog[open] .skills-grid > div { animation:folder-card-in .4s var(--ease) calc(var(--skill-order,0)*45ms) both; }
.skills-dialog .skill-card { padding:20px; }
@keyframes folder-card-in { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:none; } }

/* Low-contrast orbit lines sit behind the services, away from hit targets. */
#gallery { position:relative; isolation:isolate; }
.services-backdrop { position:absolute; z-index:-1; inset:150px -40px 40px; overflow:hidden; pointer-events:none; }
.service-orbit { position:absolute; left:50%; top:42%; width:80%; max-width:900px; height:250px; border:1px solid var(--line); border-radius:50%; opacity:.45; transform:translate(-50%,-50%) rotate(-18deg); animation:service-orbit 32s linear infinite; animation-play-state:paused; }
.service-orbit::after { content:''; position:absolute; right:3%; top:25%; width:6px; height:6px; border-radius:50%; background:var(--muted); }
.orbit-two { width:60%; height:360px; opacity:.25; animation-direction:reverse; animation-duration:42s; }
.services-backdrop.is-revealed .service-orbit { animation-play-state:running; }
.service-grid-glow { position:absolute; inset:15% 5%; background-image:radial-gradient(var(--line) .7px,transparent .7px); background-size:26px 26px; mask-image:radial-gradient(ellipse,#0004,transparent 65%); }
@keyframes service-orbit { to { transform:translate(-50%,-50%) rotate(342deg); } }

/* All school panels occupy the same grid cell: selections never grow the page. */
.education-content { position:relative; min-width:0; }
.education-selection { display:grid; margin-top:14px; border:1px solid var(--line); border-radius:18px; background:var(--surface); overflow:hidden; }
.education-panel { grid-area:1 / 1; min-width:0; padding:clamp(16px,2.2vh,22px); visibility:hidden; opacity:0; pointer-events:none; transform:translateY(5px); transition:opacity .23s,transform .23s var(--ease),visibility 0s .23s; }
.education-panel.is-active { visibility:visible; opacity:1; pointer-events:auto; transform:none; transition-delay:0s; }
.education-panel > h3 { margin:0 0 17px; font-size:.84rem; line-height:1.5; }
.education-panel .education-details { margin:0; padding:15px 0 0; gap:15px; }
.education-panel .education-details dl { gap:14px 24px; }
.education-ready .education-card.is-selected { border-color:var(--heading); background:var(--surface-alt); }
.journey-layout .education-ready { padding-left:50px; counter-reset:education-stage; }
.journey-layout .education-ready li { counter-increment:education-stage; }
.journey-layout .education-ready li::before { content:counter(education-stage,decimal-leading-zero); z-index:2; display:grid; place-items:center; left:-50px; top:var(--education-node-y,55px); width:28px; height:28px; transform:translateY(-50%); border:1px solid var(--line); background:var(--surface-soft); color:var(--muted); box-shadow:0 0 0 5px var(--surface-soft); font:.58rem/1 Consolas,monospace; transition:background-color .3s,color .3s,border-color .3s; }
.journey-layout .education-ready li:has(.is-selected)::before { border-color:var(--heading); background:var(--heading); color:var(--bg); }
.journey-layout .education-ready::before,.journey-layout .education-ready::after { left:13px; top:var(--education-rail-top,55px); width:2px; height:var(--education-rail-height,calc(100% - 110px)); border-radius:2px; }
.journey-layout .education-ready::after { transform:scaleY(var(--education-selection-progress,1)); transition:transform .45s var(--ease); }
.education-rail-cursor { position:absolute; z-index:1; left:14px; top:var(--education-cursor-y,55px); width:42px; height:42px; transform:translate(-50%,-50%); border:1px solid var(--muted); border-radius:50%; background:var(--surface-soft); box-shadow:0 0 20px #80808010; pointer-events:none; transition:top .45s var(--ease); }
.education-ready .card-open-button::before { content:''; position:absolute; left:-50px; top:50%; width:44px; height:44px; transform:translateY(-50%); border-radius:50%; }
.education-ready .education-expand svg { transition:transform .25s; }
.education-ready .is-selected .education-expand svg { transform:scale(1.12); color:var(--heading); }

.form-field-number { display:inline-block; margin-right:7px; color:var(--muted); font:.59rem/1 Consolas,monospace; }
.form-field-heading { display:flex; align-items:baseline; gap:7px; }
.form-field-heading > .form-field-number { margin:0; }
.form-field-meta label { display:inline-block; }
.form-submit .button { min-width:164px; justify-content:space-between; border-radius:9px; width:100%; min-height:52px; }
.form-field textarea { resize:vertical; min-height:clamp(108px,15vh,150px); }
.footer-signoff { margin:0; color:#e7e7e7; font-size:.82rem; display:flex; align-items:center; gap:11px; }
.footer-mark { display:grid; place-items:center; width:31px; height:31px; flex:none; border:1px solid #ffffff29; border-radius:9px; background:#ffffff07; }
.footer-mark svg { width:18px; height:18px; fill:none; stroke:#d0d0d0; stroke-width:1.6; }
.footer-top { min-height:44px; }
.footer-top span { display:grid; place-items:center; width:33px; height:33px; border:1px solid #ffffff29; border-radius:50%; transition:transform .25s,background .25s; }
.footer-top:hover span,.footer-top:focus-visible span { transform:translateY(-3px); background:#ffffff14; }

@media (max-width:700px) {
    .skill-folder { padding:22px; }
}
@media (max-width:600px) {
    .education-panel { padding:18px; }
    .footer-content { flex-wrap:wrap; display:grid; grid-template-columns:minmax(0,1fr) 44px; gap:8px; min-height:96px; padding-block:14px; }
    .footer-signoff { margin:0; font-size:.75rem; }
    .footer-copy { order:3; width:100%; grid-column:1 / -1; grid-row:2; justify-self:start; text-align:left; font-size:.7rem; }
    .footer-top { grid-column:2; grid-row:1; justify-self:end; width:44px; font-size:0; }
    .footer-top span { margin:0; width:40px; height:40px; font-size:1rem; }
}
@media (prefers-reduced-motion:reduce) {
    .journey-layout .timeline:not(.education-ready)::after { transform:scaleY(1); }
    .carousel-ready .gallery-slide,.skill-icon,.skill-icon img,.skill-icon svg { transition:none; }
}


