@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=DM+Serif+Display:ital@0;1&display=swap');
:root{color-scheme:light;--bg:#f8f8f6;--surface:#fff;--subtle:#f0f0ed;--ink:#1c1d1c;--muted:#666a67;--line:#dcdeda;--accent:#394b44;--visual:#e9eae6;--visual-ink:#39433e;--shadow:0 22px 65px #1b201b10}
html[data-theme="dark"]{color-scheme:dark;--bg:#151817;--surface:#1d211f;--subtle:#232825;--ink:#f0f1ec;--muted:#b1b8b0;--line:#3a413b;--accent:#a8c3b2;--visual:#303b34;--visual-ink:#e4eee6;--shadow:0 22px 65px #0005}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',Arial,sans-serif;-webkit-font-smoothing:antialiased;transition:background .2s,color .2s}button,a{font:inherit}a{color:inherit;text-decoration:none}button{cursor:pointer}.section-wrap{max-width:1160px;margin:auto;padding-left:44px;padding-right:44px}.site-header{height:86px;display:flex;align-items:center;justify-content:space-between;max-width:1160px;padding:0 44px;margin:auto;border-bottom:1px solid var(--line)}.wordmark{font-size:24px;font-weight:700;letter-spacing:-1px}.dot{color:var(--accent)}nav{display:flex;gap:31px}nav a{font-size:12px;font-weight:600;color:var(--muted)}nav a:hover,.text-link:hover,.inline-arrow:hover{color:var(--ink)}.theme-toggle{border:1px solid var(--line);border-radius:4px;background:transparent;color:var(--ink);display:flex;align-items:center;gap:10px;padding:10px 13px;font-size:12px;font-weight:600}.theme-toggle:hover{background:var(--subtle)}.theme-icon{font-size:17px;line-height:1}.hero{min-height:625px;display:grid;grid-template-columns:1.2fr .8fr;align-items:center;position:relative;padding-top:55px;padding-bottom:85px;gap:60px}.eyebrow,.section-label,.hero-bottom,.project-meta,.dialog-kicker{font-size:10px;letter-spacing:1.5px;font-weight:700}.eyebrow{display:flex;align-items:center;gap:10px;color:var(--muted)}.pulse{width:7px;height:7px;background:var(--accent);border-radius:50%}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(72px,9vw,122px);line-height:.97;letter-spacing:-7px;margin:26px 0 34px;font-weight:600}h1 em,.serif{font-family:'DM Sans',Arial,sans-serif;font-weight:400}h1 em{color:var(--accent)}.hero-lead{font-size:23px;line-height:1.4;max-width:480px;font-weight:400}.hero-lead strong{font-weight:600}.hero-sub{max-width:470px;color:var(--muted);font-size:14px;line-height:1.9}.hero-actions{display:flex;gap:30px;align-items:center;margin-top:30px}.btn{display:inline-flex;gap:35px;align-items:center;justify-content:space-between;padding:15px 20px;border-radius:3px;font-size:12px;font-weight:600}.btn-dark{background:var(--ink);color:var(--bg)}.btn-dark:hover{opacity:.8}.text-link{font-size:12px;font-weight:600}.hero-art{height:440px;position:relative;display:flex;align-items:center;justify-content:center}.portrait{width:100%;max-width:330px;height:405px;background:var(--visual);border:1px solid var(--line);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;color:var(--muted)}.portrait-icon{font-size:76px;font-family:'DM Sans',Arial,sans-serif;letter-spacing:-4px;opacity:.35}.portrait span{font-size:10px;letter-spacing:1.5px;font-weight:600}.hero-bottom{position:absolute;bottom:22px;left:44px;right:44px;display:flex;justify-content:space-between;color:var(--muted)}.section-space{padding-top:112px;padding-bottom:112px}.section-label{display:flex;gap:25px;align-items:center;margin-bottom:56px;white-space:nowrap;color:var(--muted)}.rule{height:1px;background:var(--line);width:100%}h2{font-size:clamp(46px,5.8vw,74px);letter-spacing:-3.5px;line-height:1.1;font-weight:600}.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:90px}.about-grid>div p{font-size:14px;line-height:1.95;color:var(--muted)}.about-grid .large-copy{font-size:22px;line-height:1.55;color:var(--ink);font-weight:500}mark{background:transparent;color:var(--accent);padding:0}.chips,.detail-tags{display:flex;gap:9px;flex-wrap:wrap;margin-top:24px}.chips span,.detail-tags span{border:1px solid var(--line);padding:9px 13px;border-radius:3px;font-size:11px;font-weight:500}.experience{background:var(--subtle)}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:60px;margin-bottom:60px}.section-heading h2{margin-bottom:0}.section-heading p{max-width:260px;font-size:13px;line-height:1.8;color:var(--muted)}.timeline{border-top:1px solid var(--line)}.timeline-item{border-bottom:1px solid var(--line)}.timeline-item summary{list-style:none;display:grid;grid-template-columns:190px 1fr 45px;gap:20px;align-items:center;padding:27px 0;cursor:pointer}.timeline-item summary::-webkit-details-marker{display:none}.timeline-date{font-size:12px;color:var(--muted);font-weight:500}.timeline-main strong{display:block;font-size:23px;letter-spacing:-.5px;font-weight:600}.timeline-main small{display:block;color:var(--muted);font-size:12px;margin-top:7px}.expand-symbol{width:34px;height:34px;border:1px solid var(--line);border-radius:3px;display:grid;place-items:center;font-size:20px}.timeline-item[open] .expand-symbol{background:var(--ink);color:var(--bg);transform:rotate(45deg)}.timeline-detail{margin-left:210px;max-width:670px;padding:0 0 30px;color:var(--muted);font-size:13px;line-height:1.85}.achievement{display:flex;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--line);padding:15px 20px;margin:20px 0;width:max-content;max-width:100%;flex-wrap:wrap}.achievement strong{font-size:26px;color:var(--ink);font-weight:600}.achievement span{font-size:12px;margin-right:12px}.inline-arrow{display:inline-block;margin-top:17px;font-weight:600;font-size:12px}.education{display:flex;gap:50px;margin-top:55px;align-items:start}.education>span{font-size:10px;font-weight:700;letter-spacing:1.5px}.education p{font-size:13px;line-height:2;color:var(--muted)}.education strong{color:var(--ink)}.project-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px}.project-card{text-align:left;border:1px solid var(--line);padding:15px 15px 25px;background:var(--surface);border-radius:3px;transition:transform .2s,box-shadow .2s}.project-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}.project-visual{height:280px;overflow:hidden;display:grid;place-items:center;position:relative;background:var(--visual)}.project-meta{display:flex;justify-content:space-between;margin-top:23px;font-size:10px;color:var(--muted)}.project-meta span:last-child{font-size:21px;line-height:10px;color:var(--ink)}.project-card h3{font-size:24px;letter-spacing:-.8px;margin:15px 0 8px;font-weight:600}.project-card p{font-size:13px;line-height:1.7;color:var(--muted);max-width:360px;margin:0}.visual-podcast{height:175px;width:210px;background:var(--surface);color:var(--visual-ink);border:1px solid var(--line);display:flex;flex-direction:column;justify-content:space-around;padding:23px;font-size:18px;font-weight:600;line-height:1.25}.sound-bars{font-size:25px;letter-spacing:2px;white-space:nowrap}.visual-game{height:170px;width:260px;border:1px solid var(--visual-ink);border-radius:3px;position:relative;background:var(--surface);overflow:hidden;color:var(--visual-ink)}.game-cross{position:absolute;font-size:110px;left:35px;top:-20px;font-weight:400}.game-ui{position:absolute;bottom:20px;left:20px;font-size:9px;font-weight:600;letter-spacing:1px;z-index:2}.game-block{position:absolute;background:var(--visual);border:1px solid var(--visual-ink);width:90px;height:115px;right:20px;top:25px}.visual-dnd{text-align:center;display:grid;justify-items:center;gap:15px;font-size:11px;font-weight:600;letter-spacing:2px;color:var(--visual-ink)}.d20{width:145px;height:140px;display:grid;place-items:center;background:var(--visual-ink);color:var(--visual);font-size:65px;font-weight:600;clip-path:polygon(50% 0,93% 25%,93% 75%,50% 100%,7% 75%,7% 25%)}.visual-thesis{display:grid;justify-items:center;gap:30px;font-size:10px;letter-spacing:1.5px;font-weight:600;color:var(--visual-ink)}.controller{width:210px;height:115px;border-radius:45% 45% 35% 35%;background:var(--surface);border:4px solid var(--visual-ink);display:flex;align-items:center;justify-content:space-around;color:var(--visual-ink);font-size:25px}.project-note{font-size:12px;color:var(--muted);margin-top:28px}.approach{background:var(--subtle)}.approach-grid{display:grid;grid-template-columns:1fr 1fr;gap:90px}.approach-list>div{display:flex;gap:25px;border-bottom:1px solid var(--line);padding:22px 0}.approach-list span{font-size:12px;color:var(--muted)}.approach-list p{font-size:14px;line-height:1.8;color:var(--muted)}.approach-list strong{color:var(--ink);font-size:16px;font-weight:600}.contact>p{font-size:11px;letter-spacing:1.5px;font-weight:700;color:var(--muted)}.contact h2{font-size:clamp(70px,10vw,125px);line-height:.98;letter-spacing:-6px;margin:25px 0 55px}.contact h2 .serif{color:var(--accent)}.contact-links{display:flex;gap:12px;flex-wrap:wrap}.contact-links a{border:1px solid var(--line);border-radius:3px;padding:14px 22px;font-size:12px;font-weight:600}.contact-links a:hover{background:var(--ink);color:var(--bg)}.contact small{display:block;margin-top:25px;color:var(--muted);font-size:11px}.footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding-top:28px;padding-bottom:28px;font-size:10px;letter-spacing:1px;font-weight:600;color:var(--muted)}.project-dialog{width:min(680px,calc(100vw - 30px));max-height:85vh;border:1px solid var(--line);border-radius:4px;padding:0;box-shadow:var(--shadow);background:var(--surface);color:var(--ink)}.project-dialog::backdrop{background:#111a16ac;backdrop-filter:blur(3px)}.dialog-inner{padding:45px;position:relative}.close-dialog{position:absolute;right:25px;top:18px;border:0;background:transparent;color:var(--ink);font-size:35px}.dialog-kicker{color:var(--muted);margin-bottom:20px}.dialog-inner h2{font-size:46px;letter-spacing:-2px}.dialog-intro{font-size:19px;line-height:1.5;font-weight:500}.dialog-content h3{font-size:13px;text-transform:uppercase;letter-spacing:1px;margin:28px 0 8px}.dialog-content p{font-size:14px;line-height:1.8;color:var(--muted)}.dialog-footnote{margin-top:30px;border-top:1px solid var(--line);padding-top:15px;font-size:11px;color:var(--muted)}
@media(max-width:800px){.section-wrap{padding-left:25px;padding-right:25px}.site-header{padding:0 25px;height:75px}nav{gap:14px}nav a{font-size:11px}.hero{grid-template-columns:1fr;padding-top:35px;padding-bottom:75px;gap:15px}.hero-art{height:340px;grid-row:2}.portrait{width:245px;height:310px}.hero-bottom{left:25px;right:25px;font-size:9px}.hero-bottom span:last-child{display:none}h1{font-size:clamp(65px,13vw,100px);letter-spacing:-5px}.section-space{padding-top:75px;padding-bottom:75px}.section-label{margin-bottom:35px}.about-grid,.approach-grid{grid-template-columns:1fr;gap:25px}.section-heading{display:block}.section-heading p{margin-top:22px}.timeline-item summary{grid-template-columns:100px 1fr 35px;gap:10px}.timeline-main strong{font-size:19px}.timeline-date{font-size:11px}.timeline-detail{margin-left:110px}.project-grid{gap:14px}.project-visual{height:220px}.visual-podcast{transform:scale(.75)}.visual-game{transform:scale(.75)}.visual-dnd{transform:scale(.75)}.visual-thesis{transform:scale(.75)}.project-card h3{font-size:21px}.contact h2{letter-spacing:-4px}.footer{gap:12px;flex-wrap:wrap}}
@media(max-width:560px){nav a:nth-child(2),nav a:nth-child(3){display:none}.theme-label{display:none}.hero-lead{font-size:21px}.hero-actions{gap:15px;flex-wrap:wrap}.project-grid{grid-template-columns:1fr}.project-visual{height:260px}.timeline-item summary{grid-template-columns:75px 1fr 30px}.timeline-detail{margin-left:85px}.timeline-main strong{font-size:17px}.timeline-main small{font-size:11px}.education{display:block}.education p{margin-top:15px}.contact h2{font-size:64px}.dialog-inner{padding:30px 24px}.dialog-inner h2{font-size:37px}.footer span:nth-child(2){display:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important}}

/* Revised introduction: editorial, text-first, with portrait at right */
.intro{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(250px,.85fr);gap:clamp(45px,6vw,110px);align-items:start;padding-top:95px;padding-bottom:130px}
.intro-label{font-size:11px;letter-spacing:2px;font-weight:800;color:var(--muted);margin:0 0 22px}
.intro h1{font-size:clamp(58px,7vw,100px);letter-spacing:-5px;line-height:1.03;margin:0 0 35px;font-weight:700}
.intro-opening{font-size:clamp(20px,2.2vw,27px);font-weight:600;line-height:1.45;letter-spacing:-.4px;margin:0 0 32px}
.intro-story p{font-size:15px;line-height:1.88;color:var(--muted);margin:0 0 19px}
.intro-story em{color:var(--ink)}
.intro-links{display:flex;gap:28px;flex-wrap:wrap;margin-top:35px;font-size:13px;font-weight:700}
.intro-links a{border-bottom:1px solid var(--ink);padding-bottom:7px}
.intro-links a:hover{color:var(--accent);border-color:var(--accent)}
.intro-aside{position:sticky;top:38px;padding-top:54px}
.intro-photo{aspect-ratio:3/4;background:var(--line);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:var(--muted);border-radius:2px}
.intro-photo span{font-size:17px;letter-spacing:2px;font-weight:700}
.intro-photo small{font-size:12px}
.intro-photo-caption{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:17px;font-size:9px;letter-spacing:1px;color:var(--muted);font-weight:700}
@media(max-width:800px){.intro{grid-template-columns:minmax(0,1fr) minmax(180px,.65fr);gap:28px;padding-top:65px;padding-bottom:90px}.intro-aside{padding-top:50px}.intro h1{font-size:clamp(52px,8vw,80px)}}
@media(max-width:620px){.intro{display:flex;flex-direction:column;padding-top:50px;padding-bottom:75px}.intro-aside{order:-1;position:static;padding:0;width:100%;max-width:260px}.intro-photo{aspect-ratio:4/3}.intro-photo-caption{font-size:8px}.intro h1{font-size:60px}.intro-story p{font-size:14px}}

/* Professional experience: longer, readable expandable narratives */
.timeline-detail p{margin:0 0 15px;line-height:1.85;max-width:720px}
.timeline-detail p:last-of-type{margin-bottom:18px}
.education-entries{display:grid;gap:10px}
.education-entries p{margin:0 0 8px}

/* Real headshot: restrained editorial crop, responsive in both themes */
.intro-photo{display:block;overflow:hidden;background:var(--subtle);aspect-ratio:3/4}
.intro-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 35%}
@media(max-width:620px){.intro-photo{aspect-ratio:3/4}}

/* Editorial project cards — deliberately restrained in both themes */
.editorial-project{background:var(--surface, var(--paper));border:1px solid var(--line);padding:13px 13px 24px;box-shadow:none}
.editorial-project:hover{box-shadow:0 10px 26px #00000010;transform:translateY(-3px)}
.editorial-project-visual{height:245px;background:var(--subtle, #e9e9e5);color:var(--ink);display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;padding:25px;text-align:left}
.project-visual-number{font-size:12px;letter-spacing:2px;font-weight:700;opacity:.6}
.project-visual-title{font-family:'DM Sans',Arial,sans-serif;font-size:clamp(28px,3vw,42px);line-height:1.08;max-width:320px;letter-spacing:-1.5px}
.project-visual-stat{font-size:10px;letter-spacing:1.3px;font-weight:700;opacity:.7}
@media(max-width:560px){.editorial-project-visual{height:220px}}

/* V7: In-page project accordions, matching the experience section. */
.project-grid{align-items:start}
.project-entry{min-width:0;border:1px solid var(--line);background:var(--surface);border-radius:3px;overflow:hidden}
.project-entry .project-card{display:block;width:100%;padding:13px 13px 24px;border:0;border-radius:0;cursor:pointer;background:transparent;list-style:none;transition:background .2s;box-shadow:none;transform:none}
.project-entry .project-card::-webkit-details-marker{display:none}
.project-entry .project-card:hover{background:var(--subtle);box-shadow:none;transform:none}
.project-entry .project-card:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
.project-entry[open] .project-card{border-bottom:1px solid var(--line)}
.project-expand-symbol{display:grid;place-items:center;width:26px;height:26px;border:1px solid var(--line);font-size:18px;line-height:1;color:var(--ink);transition:transform .2s}
.project-entry[open] .project-expand-symbol{transform:rotate(45deg);background:var(--ink);color:var(--bg)}
.project-expanded{padding:24px 27px 30px}
.project-expanded-intro{font-size:16px;font-weight:500;line-height:1.7;color:var(--ink);margin:0 0 25px}
.project-expanded section{margin-top:22px}
.project-expanded h4{font-size:11px;letter-spacing:1.1px;text-transform:uppercase;font-weight:700;margin:0 0 8px;color:var(--ink)}
.project-expanded section p{font-size:13px;line-height:1.85;color:var(--muted);margin:0}
@media(max-width:560px){.project-expanded{padding:20px}.project-expanded-intro{font-size:15px}}

/* Expanded project occupies the full grid row, pushing the adjacent card below. */
.project-grid > .project-entry[open] { grid-column: 1 / -1; }
.project-grid > .project-entry[open] .project-card { display:grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 30px; align-items:center; padding:18px; }
.project-grid > .project-entry[open] .project-visual { grid-column:1; grid-row:1 / span 3; }
.project-grid > .project-entry[open] .project-meta,
.project-grid > .project-entry[open] .project-card h3,
.project-grid > .project-entry[open] .project-card > p { grid-column:2; }
.project-grid > .project-entry[open] .project-meta { align-self:end; }
.project-grid > .project-entry[open] .project-card h3 { align-self:center; }
.project-grid > .project-entry[open] .project-card > p { align-self:start; }
.project-grid > .project-entry[open] .project-expanded { max-width:900px; padding:28px 35px 38px; }
@media(max-width:700px) {
 .project-grid > .project-entry[open] .project-card { display:block; padding:13px 13px 24px; }
 .project-grid > .project-entry[open] .project-expanded { padding:20px; }
}

/* V9: biography disclosure and streamlined project headings */
.read-more-toggle{display:inline-flex;align-items:center;gap:15px;padding:0 0 7px;border:0;border-bottom:1px solid var(--ink);background:transparent;color:var(--ink);font-size:13px;font-weight:700;cursor:pointer;margin:0 0 26px}
.read-more-toggle span{font-size:19px;font-weight:400;line-height:1}
.read-more-toggle:hover{color:var(--accent);border-color:var(--accent)}
.intro-story[hidden]{display:none!important}
.project-entry .project-card > p{margin-top:15px;max-width:100%}
/* The expanded project now has two rows: visual and category/description */
.project-grid > .project-entry[open] .project-card > p{grid-column:2;grid-row:2;align-self:start}
.project-grid > .project-entry[open] .project-meta{grid-column:2;grid-row:1;align-self:end}
.project-grid > .project-entry[open] .project-visual{grid-row:1 / span 2}
@media(max-width:700px){.project-grid > .project-entry[open] .project-card > p,.project-grid > .project-entry[open] .project-meta,.project-grid > .project-entry[open] .project-visual{grid-column:auto;grid-row:auto}}

/* V10: controller prototype gallery, and disclosure positioned below the biography. */
.intro-copy .read-more-toggle{margin-top:20px;margin-bottom:26px}
.controller-gallery-section{margin-top:36px!important;padding-top:24px;border-top:1px solid var(--line)}
.controller-gallery-section>p{margin:8px 0 20px!important}
.controller-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:18px}
.controller-gallery figure{margin:0;min-width:0}
.controller-gallery img{display:block;width:100%;aspect-ratio:4/5;object-fit:contain;background:#e9e9e5;border:1px solid var(--line);border-radius:2px}
.controller-gallery figcaption{font-size:12px;font-weight:600;color:var(--ink);padding:9px 0 4px}
@media(max-width:700px){.controller-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}

/* V11: warm editorial light, neon city dark, and hidden arcade theme */
:root{color-scheme:light;--bg:#f5eee3;--surface:#fffaf2;--subtle:#ede2d2;--ink:#302820;--muted:#78695b;--line:#d9c8b5;--accent:#85502e;--visual:#e7d8c5;--visual-ink:#62422f;--shadow:0 22px 65px #51371d1b}
html[data-theme="dark"]{color-scheme:dark;--bg:#0c101b;--surface:#161c2b;--subtle:#111827;--ink:#e9edff;--muted:#a2acc7;--line:#323b53;--accent:#e39a72;--visual:#202941;--visual-ink:#eeb795;--shadow:0 22px 65px #0008}
/* Arcade is deliberately more playful than the two standard themes. */
html[data-theme="arcade"]{color-scheme:dark;--bg:#0b0820;--surface:#181037;--subtle:#100b2b;--ink:#fff5f9;--muted:#c6a6df;--line:#6b3a9b;--accent:#38f5dc;--visual:#251049;--visual-ink:#ff5acb;--shadow:0 16px 50px #ef3fa53b}
html[data-theme="arcade"] body{background-image:linear-gradient(transparent 97%,#a44bfa12 100%),linear-gradient(90deg,transparent 97%,#a44bfa12 100%);background-size:38px 38px}
html[data-theme="arcade"] h1,html[data-theme="arcade"] h2,html[data-theme="arcade"] .project-visual-title{ text-shadow:2px 2px 0 #ff46b86b}
html[data-theme="arcade"] .project-visual{border:1px solid #ff4dc57a;box-shadow:inset 0 0 35px #f945a51c}
html[data-theme="arcade"] .theme-toggle{border-color:var(--accent);box-shadow:0 0 15px #38f5dc35}
html[data-theme="arcade"] .dot{color:#ff5acb}
/* Accent is used on actual links and interactive elements, not body text. */
nav a:hover,.intro-links a,.text-link,.inline-arrow,.contact-links a,.footer a,.read-more-toggle,.wordmark:hover,.konami-hint{color:var(--accent)}
.contact-links a:hover{background:var(--accent);border-color:var(--accent);color:var(--bg)}
.theme-toggle:hover{border-color:var(--accent);color:var(--accent)}
.reference-note{margin:24px 0 0;color:var(--muted);font-size:12px}
.konami-hint{font-size:10px;letter-spacing:1.3px;white-space:nowrap}
.arcade-toast{position:fixed;top:100px;left:50%;transform:translateX(-50%);z-index:50;padding:15px 24px;border:1px solid #38f5dc;background:#181037;color:#38f5dc;font-weight:700;font-size:12px;letter-spacing:1px;box-shadow:0 12px 35px #0008;text-align:center}
.arcade-toast[hidden]{display:none}
@media(max-width:600px){.footer{gap:14px;flex-wrap:wrap}.konami-hint{order:3;width:100%;text-align:center}}

/* V12: consistent stroke-based mode icons */
.theme-icon{display:inline-flex;align-items:center;justify-content:center;width:21px;height:21px;flex-shrink:0}
.theme-icon svg{display:block}

/* V13: warmer brown-based light palette and reversed project-card contrast. */
html:not([data-theme]),html[data-theme="light"]{
  --bg:#f6eee4;--surface:#fffaf3;--subtle:#e9d9c7;
  --ink:#38291f;--muted:#79604e;--line:#d6bfa9;
  --accent:#875536;--visual:#fff8ee;--visual-ink:#513727;
  --shadow:0 22px 65px #65452b17;
}
/* Light project titles sit on pale cream, framed by a deeper warm-brown card. */
html:not([data-theme]) .project-entry,html[data-theme="light"] .project-entry{
  background:#e5d2bc;border-color:#cdb397;
}
html:not([data-theme]) .project-entry .project-card,html[data-theme="light"] .project-entry .project-card{background:transparent}
html:not([data-theme]) .project-entry .editorial-project-visual,html[data-theme="light"] .project-entry .editorial-project-visual{
  background:#fff9f0;color:#4a3224;
}
html:not([data-theme]) .project-entry .project-meta,html[data-theme="light"] .project-entry .project-meta,
html:not([data-theme]) .project-entry .project-card>p,html[data-theme="light"] .project-entry .project-card>p{color:#644a38}
html:not([data-theme]) .project-entry .project-card:hover,html[data-theme="light"] .project-entry .project-card:hover{background:#dcc5aa}
html:not([data-theme]) .project-entry .project-expanded,html[data-theme="light"] .project-entry .project-expanded{background:#fffaf3}

/* V14: quieter warm-light project cards; cyan highlights in unlocked Arcade Mode. */
html:not([data-theme]) .project-entry,
html[data-theme="light"] .project-entry {
  background:var(--surface);
  border-color:var(--line);
}
html:not([data-theme]) .project-entry .editorial-project-visual,
html[data-theme="light"] .project-entry .editorial-project-visual {
  background:#f0e5d7;
  color:var(--ink);
}
html:not([data-theme]) .project-entry .project-card:hover,
html[data-theme="light"] .project-entry .project-card:hover {
  background:#f7f0e7;
}
html:not([data-theme]) .project-entry .project-meta,
html[data-theme="light"] .project-entry .project-meta,
html:not([data-theme]) .project-entry .project-card>p,
html[data-theme="light"] .project-entry .project-card>p {
  color:var(--muted);
}
html[data-theme="arcade"] .project-expand-symbol,
html[data-theme="arcade"] .expand-symbol {
  border-color:var(--accent);
  color:var(--accent);
}
html[data-theme="arcade"] .project-entry[open] .project-expand-symbol,
html[data-theme="arcade"] .timeline-item[open] .expand-symbol {
  background:var(--accent);
  border-color:var(--accent);
  color:#0b0820;
}
html[data-theme="arcade"] .project-expanded h4,
html[data-theme="arcade"] .project-meta,
html[data-theme="arcade"] .project-visual-stat,
html[data-theme="arcade"] .achievement strong {
  color:var(--accent);
}

/* V15: distinct contact band, tighter transition, balanced two-column contact. */
.projects.section-space{padding-bottom:76px}
.contact.section-space{padding-top:76px;padding-bottom:94px}
.contact{background:var(--subtle);border-top:1px solid var(--line)}
.contact-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(260px,.85fr);gap:clamp(35px,6vw,95px);align-items:center}
.contact-heading>p{font-size:11px;letter-spacing:1.5px;font-weight:700;color:var(--muted)}
.contact-heading h2{margin:22px 0 0}
.contact-links{display:flex;flex-direction:column;align-items:stretch;gap:12px}
.contact-links a{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;background:var(--surface);border:1px solid var(--line)}
.contact small{margin-top:35px}
/* Centre the subject and the photographed controllers within their frames. */
.intro-photo img{object-position:50% 50%}
.controller-gallery img{object-position:50% 50%;padding:8px}
@media(max-width:700px){.projects.section-space{padding-bottom:60px}.contact.section-space{padding-top:65px;padding-bottom:75px}.contact-layout{grid-template-columns:1fr;gap:30px}.contact-heading h2{margin-bottom:0}.contact-links{max-width:none}}

/* V16: footer and contact form one continuous themed band. */
.footer{background:var(--subtle);border-top:1px solid var(--line);display:block;padding:0}
.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-top:28px;padding-bottom:28px}
@media(max-width:600px){.footer-inner{gap:14px;flex-wrap:wrap}}

/* V17: consistent secondary accents in every theme. The accent token is
   warm brown in light, muted orange in dark and cyan in arcade. */
html[data-theme="light"] .project-expand-symbol,
html[data-theme="dark"] .project-expand-symbol,
html[data-theme="light"] .expand-symbol,
html[data-theme="dark"] .expand-symbol {
  color:var(--accent);border-color:var(--accent);
}
html[data-theme="light"] .project-entry[open] .project-expand-symbol,
html[data-theme="dark"] .project-entry[open] .project-expand-symbol,
html[data-theme="light"] .timeline-item[open] .expand-symbol,
html[data-theme="dark"] .timeline-item[open] .expand-symbol {
  background:var(--accent);border-color:var(--accent);color:var(--bg);
}
html[data-theme="light"] .project-expanded h4,
html[data-theme="dark"] .project-expanded h4,
html[data-theme="light"] .project-meta,
html[data-theme="dark"] .project-meta,
html[data-theme="light"] .project-visual-stat,
html[data-theme="dark"] .project-visual-stat,
html[data-theme="light"] .achievement strong,
html[data-theme="dark"] .achievement strong {
  color:var(--accent);
}
/* Headline punctuation follows the same accent as the hero name. */
.section-heading h2 .dot,.contact h2 .dot{color:var(--accent)}

/* V20: reserve a stable navigation footprint for all theme labels. */
.site-header .theme-toggle{
  width:148px;
  min-width:148px;
  flex:0 0 148px;
  justify-content:center;
  white-space:nowrap;
}
@media(max-width:560px){
  .site-header .theme-toggle{
    width:46px;
    min-width:46px;
    flex-basis:46px;
    padding:10px;
  }
}

/* V21: mobile header and centred portrait */
@media (max-width:620px){
  .site-header nav{display:none}
  .site-header{gap:12px}
  .site-header .theme-toggle{width:46px;min-width:46px;flex:0 0 46px;padding:10px}
  .site-header .theme-label{display:none}
  .intro-aside{align-self:center;margin-inline:auto;max-width:min(100%,300px)}
  .intro-photo{margin-inline:auto;width:100%}
}

/* Hover highlights should only persist while a mouse is actually hovering.
   Touchscreen browsers can otherwise leave a tapped link in :hover state. */
@media (hover:none), (pointer:coarse){
  .site-header nav a:hover{color:var(--muted)}
  .site-header nav a:active{color:var(--accent)}
  .site-header nav a:focus:not(:focus-visible){outline:none;color:var(--muted)}
}
@media (hover:hover) and (pointer:fine){
  .site-header nav a:hover{color:var(--accent)}
}
.site-header nav a:focus-visible{outline:2px solid var(--accent);outline-offset:5px;border-radius:2px}

/* V23: consistent typography across all modes and sections. */
:root{--font-ui:'DM Sans',Arial,sans-serif}
body,button,input,textarea,select,h1,h2,h3,h4,h5,h6,.serif,h1 em,.portrait-icon,.project-visual-title{font-family:var(--font-ui)}
.project-visual-title{font-weight:600;letter-spacing:-1.2px}
.serif{font-weight:500}

/* V24: restore the original editorial serif for display typography. */
:root{--font-display:'DM Serif Display',Georgia,serif}
h1,h2,h3,.serif,h1 em,.project-visual-title,.contact h2{font-family:var(--font-display)}
.project-visual-title{font-weight:400;letter-spacing:-.7px}
h1,h2,h3,.serif{font-weight:400}
/* Keep compact interface labels, navigation and paragraph copy in DM Sans. */
body,button,input,textarea,select,.timeline-main strong,.project-meta,.section-label{font-family:var(--font-ui)}

/* V25: Give the large serif name natural breathing room. */
.intro h1{letter-spacing:-1.5px;line-height:1.12}
@media(max-width:620px){.intro h1{letter-spacing:-.8px;line-height:1.13}}

/* Mixed Reality ATM interaction demos */
.atm-showcase { margin-top: 1.5rem; }
.atm-video-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin: 1.2rem 0 1.5rem; }
.atm-video-grid figure { margin: 0; min-width: 0; }
.atm-video-grid video { display: block; width: 100%; max-width: 900px; aspect-ratio: 16 / 9; object-fit: contain; background: #101218; border-radius: 0.4rem; }
.atm-video-grid figcaption { display: flex; flex-direction: column; gap: 0.25rem; padding-top: 0.6rem; font-size: 0.85rem; line-height: 1.45; }
.atm-video-grid figcaption span { opacity: 0.75; }
.atm-github-link { display: inline-block; margin-top: 0.3rem; text-decoration: underline; text-underline-offset: 0.25em; }
@media (max-width: 900px) { .atm-video-grid { gap: 1.5rem; } }

/* V30: restrained, evidence-led editorial layout. */
html:not([data-theme]),html[data-theme="light"]{--bg:#f5f6f4;--surface:#ffffff;--subtle:#e8ece9;--ink:#202925;--muted:#52615a;--line:#cbd4ce;--accent:#28634f;--visual:#e2e8e4;--visual-ink:#263d33}
.intro{padding-top:72px;padding-bottom:85px}.section-space{padding-top:76px;padding-bottom:76px}.section-heading{margin-bottom:32px;display:block}.section-heading h2,.contact h2{font-size:clamp(36px,5vw,60px);letter-spacing:-1px;line-height:1.12;color:var(--ink)}.contact h2 .serif{color:inherit}.contact-heading h2{margin:0}.contact.section-space{padding-block:65px}.projects.section-space{padding-bottom:65px}
.project-grid{gap:30px 36px;align-items:start}.project-grid .project-entry{border:0;border-top:1px solid var(--line);border-radius:0;background:transparent!important;box-shadow:none}.project-grid .project-entry .project-card{padding:16px 0 22px;background:transparent!important;transform:none;box-shadow:none;border:0}.project-grid .project-entry .project-card:hover{background:transparent!important}.project-grid .project-card:hover .project-title{text-decoration:underline;text-underline-offset:5px}.project-preview{display:flex;gap:4px;height:clamp(155px,22vw,255px);overflow:hidden;background:var(--subtle);margin-bottom:18px}.project-preview img{width:100%;min-width:0;flex:1;object-fit:contain}.project-preview img:only-child{object-fit:cover}.project-grid .project-meta{font-size:12px;letter-spacing:0;font-weight:500;margin:0 0 10px;color:var(--muted)}.project-grid .project-title{font-size:clamp(24px,3vw,32px);letter-spacing:-.35px;line-height:1.15;margin:0 0 12px;font-weight:400}.project-grid .project-card>p{max-width:none;color:var(--muted);font-size:14px}.project-fact{display:block;font-size:12px;color:var(--muted);margin-top:12px}.project-grid .project-expanded{background:var(--surface)!important}.education>span,.footer{letter-spacing:0}.contact-links a{background:transparent;border:0;border-bottom:1px solid var(--line);padding:12px 0}.contact-links a:hover{background:transparent;color:var(--accent)}
@media(max-width:620px){.intro{padding-block:40px 55px}.section-space{padding-block:48px}.project-grid{grid-template-columns:1fr;gap:14px}.contact.section-space{padding-block:48px}}

/* V31: consistent boxed project summaries and contact links. */
.project-grid{gap:20px;align-items:stretch}
.project-grid .project-entry{border:1px solid var(--line);border-radius:3px;background:var(--surface)!important;display:flex;flex-direction:column}
.project-grid .project-entry .project-card,.project-grid > .project-entry[open] .project-card{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:24px;background:transparent!important;flex:1;min-height:210px}
.project-grid .project-entry .project-card:hover{background:var(--subtle)!important}
.project-grid .project-card:hover .project-title{text-decoration:none}
.project-grid .project-meta{align-items:center;align-self:stretch;gap:12px;margin-bottom:12px}
.project-grid .project-title,.project-grid .project-card>p{align-self:stretch}
.project-grid .project-card>p{margin:0 0 16px}
.project-grid .project-fact{margin-top:auto;padding-top:8px}
.project-grid > .project-entry[open] .project-card{min-height:0;flex:none;border-bottom:1px solid var(--line)}
.project-grid > .project-entry[open] .project-expanded{max-width:none}
.project-grid .project-entry:not([open]) .project-expanded{display:none}
.contact-links{gap:12px}
.contact-links a{background:var(--surface);border:1px solid var(--line);border-radius:3px;padding:18px 22px}
.contact-links a:hover{background:var(--accent);border-color:var(--accent);color:var(--bg)}
.contact-links a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:620px){.project-grid{gap:14px}.project-grid .project-entry .project-card,.project-grid > .project-entry[open] .project-card{padding:20px;min-height:0}}

/* V32: Morning After, shared copper accents and slate neutrals. */
html:not([data-theme]),html[data-theme="light"]{--bg:#f1eee9;--surface:#faf8f5;--subtle:#e3e1df;--ink:#303b4b;--muted:#566170;--line:#c8c9cb;--accent:#9b5838;--visual:#e3e1df;--visual-ink:#303b4b;--shadow:0 22px 65px #303b4b12}
.languages{margin-top:26px}.languages h2{font-family:var(--font-ui);font-size:15px;font-weight:600;letter-spacing:0;margin:0 0 12px;line-height:1.4}.language-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.language-grid>div{border:1px solid var(--line);background:var(--surface);border-radius:3px;padding:11px 13px;display:flex;flex-direction:column;gap:3px;text-align:left}.language-grid strong{font-size:13px;font-weight:600;color:var(--ink)}.language-grid span{font-size:12px;color:var(--muted);line-height:1.4}.podcast-example{margin:24px 0}.podcast-example h3{font-size:23px;letter-spacing:0;color:var(--ink);margin:0 0 8px}.podcast-example iframe{display:block;width:100%;border:0;border-radius:8px;margin:12px 0}.podcast-example a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}.podcast-example a:focus-visible{outline:2px solid var(--accent)}

/* V33: full-width language row below the portrait and introduction. */
.intro{row-gap:30px}.intro>.languages{grid-column:1 / -1;margin-top:0;width:100%;min-width:0}.language-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.language-grid>div{min-width:0;overflow-wrap:anywhere}.podcast-example iframe{height:352px}
@media(max-width:620px){.intro>.languages{align-self:stretch}.language-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.language-grid>div{padding:8px 5px}.language-grid strong{font-size:12px}.language-grid span{font-size:11px}}

/* Theme-consistent secondary highlights */
.detail-tags span,.project-grid .project-fact{color:var(--accent);}
.detail-tags span{border-color:var(--accent);}

/* V35: language cards share the theme accent with experience tags. */
.language-grid>div{border-color:var(--accent)}
.language-grid strong,.language-grid span{color:var(--accent)}

/* V36: languages are revealed with the full biography. */
.intro>.languages[hidden]{display:none!important}

/* V37: standalone skills section */
.skills.section-space{background:var(--subtle);border-top:1px solid var(--line)}
.skills-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 36px}
.skill-group{min-width:0}
.skill-group h3,.skills .languages h3{font-family:var(--font-ui);font-size:16px;font-weight:600;letter-spacing:0;line-height:1.4;margin:0 0 12px}
.skill-group .detail-tags{margin:0;gap:8px}
.skill-group .detail-tags span{font-size:13px;background:var(--surface);padding:8px 12px}
.skills .languages{margin-top:30px;padding-top:24px;border-top:1px solid var(--line)}
@media(max-width:620px){.skills-grid{grid-template-columns:1fr;gap:24px}.skills .language-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.skills .language-grid>div{padding:11px 13px}}

/* V38: alternate full-width section backgrounds; keep footer with contact. */
.contact,.footer{background:var(--bg)}

/* V39: stable left-aligned project summaries and animated disclosure. */
.project-grid{container-type:inline-size;overflow-anchor:none}
.project-grid .project-entry{scroll-margin-top:24px}
.project-grid > .project-entry[open] .project-card{min-height:210px;position:relative;align-items:flex-start}
.project-grid > .project-entry[open] .project-card > :not(.project-meta){width:calc((100cqw - 20px)/2 - 50px);max-width:100%;align-self:flex-start}
.project-grid > .project-entry[open] .project-meta{align-self:stretch;align-items:center}
.project-grid > .project-entry[open] .project-fact{margin-top:auto}
.timeline-item .expand-symbol{transition:transform .25s,background .25s,color .25s}
@media(max-width:620px){.project-grid > .project-entry[open] .project-card{min-height:0}.project-grid > .project-entry[open] .project-card > :not(.project-meta){width:100%}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.project-expand-symbol,.timeline-item .expand-symbol{transition:none}}

/* V41: coordinate icon rotation and colour with the disclosure motion. */
.project-grid .project-expand-symbol{transition:transform 320ms cubic-bezier(.2,.7,.2,1),background-color 320ms,color 320ms,border-color 320ms;position:relative;z-index:1;flex-shrink:0}
@media(prefers-reduced-motion:reduce){.project-grid .project-expand-symbol{transition:none}}

/* V42: simultaneous two-axis disclosure; keep text unscaled and icon attached to the moving edge. */
.intro-story{display:flow-root;overflow:hidden}
.project-grid.project-motion{position:relative;display:block;overflow-anchor:none}
.project-grid.project-motion>.project-entry{position:absolute;overflow:hidden;min-width:0;max-width:none;box-sizing:border-box;flex:none}
.project-grid.project-motion>.project-entry .project-card{position:relative;flex:none;min-height:0;box-sizing:border-box;align-items:flex-start;width:100%;}
.project-grid.project-motion>.project-entry .project-card>:not(.project-meta){width:calc(var(--motion-summary-width) - 48px);max-width:none;align-self:flex-start}
.project-grid.project-motion>.project-entry .project-meta{align-self:stretch;min-height:26px}
.project-grid.project-motion>.project-entry .project-expanded{width:var(--motion-content-width);max-width:none;flex:none;box-sizing:border-box}
.project-grid .project-expand-symbol{transition:transform 400ms cubic-bezier(.4,0,.2,1),background-color 400ms cubic-bezier(.4,0,.2,1),color 400ms cubic-bezier(.4,0,.2,1),border-color 400ms cubic-bezier(.4,0,.2,1)}
.project-grid .project-closing .project-expand-symbol{transform:rotate(0deg);background:transparent;color:var(--ink)}
@media(max-width:620px){.project-grid.project-motion>.project-entry .project-card>:not(.project-meta){width:calc(var(--motion-summary-width) - 40px)}}
@media(prefers-reduced-motion:reduce){.project-grid .project-expand-symbol{transition:none}}

/* V43: work eligibility tag and reversible experience disclosure. */
.work-authorisation{display:table;border:1px solid var(--accent);color:var(--accent);border-radius:3px;padding:6px 10px;font-size:12px;font-weight:500;margin:-16px 0 20px}
.timeline-item.timeline-animating{overflow:hidden;overflow-anchor:none}
.timeline-item .expand-symbol{transition:transform 400ms cubic-bezier(.4,0,.2,1),background-color 400ms cubic-bezier(.4,0,.2,1),color 400ms cubic-bezier(.4,0,.2,1),border-color 400ms cubic-bezier(.4,0,.2,1)}
html .timeline-item.timeline-closing[open] .expand-symbol{transform:rotate(0deg);background:transparent;color:var(--ink);border-color:var(--line)}
@media(prefers-reduced-motion:reduce){.timeline-item .expand-symbol{transition:none}}

/* V44: compact introduction, projects first, separate personal biography. */
.brief-intro{display:block;padding-block:72px 76px;min-height:0}
.brief-intro .intro-copy{max-width:850px}
.brief-intro .intro-opening{max-width:780px}
.projects.section-space{background:var(--subtle);max-width:none;padding-inline:max(44px,calc((100% - 1072px)/2));border-top:1px solid var(--line)}
.experience.section-space{background:var(--bg)}
.about-section{background:var(--bg);border-top:1px solid var(--line)}
.about-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(250px,.85fr);gap:clamp(45px,6vw,110px);align-items:start}
.about-layout .intro-aside{padding-top:0;position:sticky;top:38px}
.contact,.footer{background:var(--subtle)}
@media(max-width:800px){.about-layout{grid-template-columns:minmax(0,1fr) minmax(180px,.65fr);gap:28px}}
@media(max-width:620px){.brief-intro{padding-block:40px 48px}.projects.section-space{padding-inline:22px}.about-layout{display:flex;flex-direction:column;gap:28px}.about-layout .intro-aside{position:static;order:-1;align-self:center}}

/* V46: align portrait with the About heading, not the biography. */
.about-copy{min-width:0}
.about-copy .section-heading{margin-bottom:36px}
@media(min-width:621px){.about-copy .section-heading{margin-bottom:48px}}
@media(max-width:620px){.about-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:28px}.about-copy{display:contents}.about-copy .section-heading{grid-row:1;margin-bottom:0}.about-layout .intro-aside{grid-row:2;order:0;justify-self:center}.about-copy>.intro-story{grid-row:3}}

/* V48: identical theme-aware disclosure colours, including closing states. */
html .project-grid .project-entry .project-expand-symbol,
html .timeline-item .expand-symbol {
  background-color:transparent;color:var(--accent);border-color:var(--accent);
}
html .project-grid .project-entry[open]:not(.project-closing) .project-expand-symbol,
html .timeline-item[open]:not(.timeline-closing) .expand-symbol {
  background-color:var(--accent);color:var(--bg);border-color:var(--accent);
}
html .project-grid .project-entry.project-closing[open] .project-expand-symbol,
html .timeline-item.timeline-closing[open] .expand-symbol {
  background-color:transparent;color:var(--accent);border-color:var(--accent);transform:rotate(0deg);
}
/* Projects use explicit keyframes; avoid a competing CSS transition. */
html .project-grid.project-motion .project-expand-symbol {transition:none;}
