@font-face{font-family:Manrope;src:url(fonts/manrope.woff2) format("woff2");font-weight:200 800;font-display:swap}
@font-face{font-family:Source;src:url(fonts/source.woff2) format("woff2");font-weight:200 900;font-display:swap}
:root{--navy:#081640;--blue:#123272;--accent:#1565d8;--ink:#14213d;--muted:#52607a;--wash:#f3f6fb;--rule:#dce3ee}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:7rem}
body{margin:0;font:1.125rem/1.6 Source,system-ui,sans-serif;color:var(--ink);background:#fff}
h1,h2,h3,h4{font-family:Manrope,system-ui,sans-serif;line-height:1.2;margin:0 0 .6rem;letter-spacing:-.01em}
h1{font-size:clamp(2.4rem,9vw,4.2rem);font-weight:750}h2{font-size:1.7rem}h3{font-size:1.2rem;margin-top:2rem}h4{font-size:1.05rem}
a{color:var(--accent)}a:focus-visible{outline:3px solid #f2a900;outline-offset:3px}img{max-width:100%;height:auto;display:block}
.wrap{max-width:62rem;margin:0 auto;padding:0 1.25rem}section.wrap{padding-top:3.5rem;padding-bottom:1rem}
.skip{position:absolute;left:-999px}.skip:focus{left:1rem;top:1rem;z-index:9;background:#fff;padding:.5rem}
.bar{position:sticky;top:0;z-index:5;display:flex;flex-wrap:wrap;justify-content:space-between;gap:.25rem 1rem;padding:.7rem 1.25rem;background:rgba(255,255,255,.78);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--rule)}
.bar a{text-decoration:none;color:var(--ink);padding:.25rem 0}.brand{font-family:Manrope,sans-serif;font-weight:700}.bar nav{display:flex;gap:1.1rem}.bar nav a:hover{color:var(--accent)}
.hero,.phead,.contact{background:linear-gradient(135deg,var(--navy),var(--blue));color:#fff}
.hero{padding:5rem 0 4rem}.phead{padding:1.5rem 0 2.5rem}.phead h1{font-size:clamp(1.9rem,6vw,3rem)}.hero a,.phead a,.contact a{color:#fff}
.headline{font-size:1.3rem;color:#dbe7fb;max-width:36rem;margin:0}
.actions{display:flex;flex-wrap:wrap;gap:.75rem;margin:1.75rem 0}
.btn{display:inline-block;padding:.65rem 1.15rem;border-radius:.5rem;border:1px solid rgba(255,255,255,.6);text-decoration:none;font-weight:600}
.hero .btn.solid{background:#fff;color:var(--navy)}.btn.dark{background:var(--navy);color:#fff;border-color:var(--navy)}.btn.line{border-color:var(--navy);color:var(--navy)}
.social,.foot{display:flex;flex-wrap:wrap;gap:1.4rem}.social a,.foot a{display:inline-flex;align-items:center;gap:.45rem;text-decoration:none}
svg{width:1.2rem;height:1.2rem;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.lead{font-size:1.35rem;max-width:42rem}
.grid{display:grid;gap:1.75rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,26rem),1fr))}
.card{border:1px solid var(--rule);border-radius:.9rem;overflow:hidden;transition:box-shadow .2s}.card:hover{box-shadow:0 12px 30px rgba(11,31,68,.12)}
.shot{display:block;background:var(--wash);border-bottom:1px solid var(--rule)}.shot img{width:100%;aspect-ratio:16/9;object-fit:cover;object-position:top}
.cardbody{padding:1.2rem}.cardbody h3{margin-top:0}.cardbody h3 a{color:var(--ink);text-decoration:none}.cardbody h3 a:hover{color:var(--accent)}
.tags{display:flex;flex-wrap:wrap;gap:.45rem;list-style:none;padding:0;margin:.8rem 0 0}.tags li{font-size:.9rem;background:var(--wash);padding:.15rem .6rem;border-radius:.35rem}
.course{max-width:46rem}.org{color:var(--muted);margin:0 0 .4rem}ul{padding-left:1.2rem;margin:.4rem 0}
.sub{margin-top:3rem}.rhead{display:flex;justify-content:space-between;align-items:center;gap:1rem}
.entry{display:grid;grid-template-columns:13rem 1fr;gap:1rem;padding:1.2rem 0;border-top:1px solid var(--rule)}.when{color:var(--muted)}
dl>div{display:grid;grid-template-columns:13rem 1fr;gap:.25rem 1rem;padding:.6rem 0;border-top:1px solid var(--rule)}dt{font-weight:700}dd{margin:0}
.contact{margin-top:3.5rem;padding:3rem 0}.contact p a{overflow-wrap:anywhere}
footer{padding:2rem 1.25rem;text-align:center;color:var(--muted)}.foot{justify-content:center}
.case{max-width:48rem;padding-top:1.5rem}.case h2{font-size:1.3rem;margin-top:2rem}figure{margin:1.25rem 0;border:1px solid var(--rule);border-radius:.6rem;overflow:hidden}.figs{margin-top:2rem}.note,.hint{font-size:.95rem;color:var(--muted);overflow-wrap:anywhere}
@media(max-width:40rem){.entry,dl>div{grid-template-columns:1fr;gap:.2rem}.hero{padding:3rem 0}.bar{justify-content:center}.bar nav{width:100%;justify-content:center}}
.js .reveal{opacity:0;transition:opacity .6s}.js .reveal.in{opacity:1}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.js .reveal{opacity:1;transition:none}}
@media print{.reveal{opacity:1!important}}
:root{--navy:#071330;--blue:#123a86;--accent:#1458e0;--mint:#5ff0c2;--wash:#eef2fa}
body{background:#f7f9fd}h1,h2,h3{letter-spacing:-.035em}h2{font-size:clamp(2rem,6vw,3rem);font-weight:750;margin-bottom:1.5rem}
.wrap{max-width:72rem}section.wrap{padding-top:5rem}
.bar{top:.75rem;margin:.75rem auto 0;max-width:70rem;width:calc(100% - 1.5rem);border:1px solid rgba(255,255,255,.6);border-radius:999px;box-shadow:0 8px 30px rgba(7,19,48,.14);padding:.65rem 1.4rem;background:rgba(255,255,255,.82)}
.hero{margin-top:-5rem;padding:9rem 0 5rem;overflow:hidden;background:radial-gradient(60rem 40rem at 85% 10%,#1c5bd6 0,transparent 60%),radial-gradient(40rem 30rem at 0 110%,#0f6f78 0,transparent 60%),var(--navy)}
.phead{margin-top:-5rem;padding-top:7rem}
.split{display:grid;grid-template-columns:1fr 1.1fr;gap:2rem;align-items:center}
.hero h1{font-size:clamp(3.4rem,10vw,6.5rem);line-height:.95;font-weight:800;margin-bottom:1.25rem}
.btn{border-radius:999px;padding:.75rem 1.4rem}.hero .btn.solid{background:var(--mint);border-color:var(--mint);color:var(--navy)}
.stack{position:relative;height:26rem}.stack img{position:absolute;width:82%;height:auto;border-radius:.8rem;border:1px solid rgba(255,255,255,.25);box-shadow:0 30px 60px rgba(0,0,0,.45)}
.stack .s1{top:0;right:-6%;transform:rotate(5deg)}.stack .s2{top:6rem;left:0;transform:rotate(-5deg)}.stack .s3{bottom:0;right:2%;transform:rotate(1deg)}
.bento{display:grid;grid-template-columns:repeat(6,1fr);gap:1.25rem}
.tile{display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden;border-radius:1.5rem;background:#fff;border:1px solid var(--rule);transition:transform .25s,box-shadow .25s,opacity .6s}
.tile:hover{transform:translateY(-4px);box-shadow:0 24px 50px rgba(7,19,48,.16)}
.t0,.t3{grid-column:span 4}.t1,.t2{grid-column:span 2}.t0,.t3{background:var(--navy);color:#fff;border-color:var(--navy)}.t1,.t2{background:#fff}
.info{padding:1.75rem}.info h3{margin:1rem 0 .4rem;font-size:1.45rem}.info h3 a{color:inherit;text-decoration:none}.info h3 a::after{content:"";position:absolute;inset:0}
.info h3 a:focus-visible{outline:none}.tile:focus-within{outline:3px solid #f2a900}
.stat{margin:0}.stat strong{display:block;font:800 clamp(2.6rem,6vw,3.8rem)/1 Manrope,sans-serif;letter-spacing:-.04em;color:var(--accent)}.stat span{font-size:.95rem;opacity:.8}
.t0 .stat strong,.t3 .stat strong{color:var(--mint)}.t0 .tags li,.t3 .tags li{background:rgba(255,255,255,.12)}
.screen{padding:0 0 0 1.75rem}.screen img{width:100%;height:13rem;object-fit:cover;object-position:top left;border-radius:.8rem 0 0 0;border:1px solid var(--rule);border-width:1px 0 0 1px}
.tags li{border-radius:999px;padding:.2rem .75rem}
.lead{font:500 clamp(1.4rem,3vw,2rem)/1.4 Manrope,sans-serif;letter-spacing:-.02em;max-width:54rem}
.box{background:#fff;border:1px solid var(--rule);border-radius:1.25rem;padding:1.5rem}.box h3,.box h4{margin-top:0}.course{max-width:none;margin-top:2rem}
.two{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,28rem),1fr));gap:1rem}
.timeline{display:grid;gap:.75rem}.timeline .entry{background:#fff;border:1px solid var(--rule);border-radius:1.25rem;padding:1.4rem}
.contact{border-radius:1.75rem;padding:3rem 2rem;margin-top:0}
.case{background:#fff;border-radius:1.25rem;margin-top:1.5rem;padding-bottom:2rem}
@media(max-width:60rem){.split{grid-template-columns:1fr}.stack{height:17rem}.stack .s2{top:3.5rem}.t0,.t1,.t2,.t3{grid-column:1/-1}}
@media(max-width:40rem){.bar{border-radius:1.25rem}.hero{margin-top:-7rem;padding:10rem 0 3.5rem}.phead{margin-top:-7rem;padding-top:9rem}.stack{height:14rem}.contact{padding:2rem 1.25rem}.case{margin:1rem .75rem 0}}
@media(prefers-reduced-motion:reduce){.tile{transition:none}.tile:hover{transform:none}}
:root{color-scheme:light}
.theme{font:600 .9rem Source,sans-serif;color:var(--ink);background:transparent;border:1px solid var(--rule);border-radius:999px;padding:.25rem .8rem;cursor:pointer}.theme:focus-visible{outline:3px solid #f2a900;outline-offset:3px}
:root[data-theme=dark]{color-scheme:dark;--ink:#e8eefb;--muted:#a3b0c9;--rule:#27365c;--wash:#1b2a4d;--accent:#7fb0ff}
[data-theme=dark] body{background:#050b1c}
[data-theme=dark] .bar{background:rgba(13,23,48,.82);border-color:#27365c}
[data-theme=dark] :is(.t1,.t2,.box,.timeline .entry,.case){background:#0d1730;border-color:#27365c}
[data-theme=dark] :is(.t0,.t3){background:#12224a;border-color:#324a80}
[data-theme=dark] .contact{background:linear-gradient(135deg,#12224a,#123a86)}
[data-theme=dark] .btn.dark{background:#e8eefb;border-color:#e8eefb;color:#071330}
[data-theme=dark] .btn.line{color:var(--ink);border-color:#5870a8}
@media(max-width:40rem){.bar{align-items:center}.bar .brand{margin-right:auto}.bar .theme{order:0}.bar nav{order:1}.bar{justify-content:space-between}}
@view-transition{navigation:auto}
:root{--cream:#fbf5e9;--card:#fffdf8;--navy:#081640;--blue:#123272;--crimson:#9c2f5c;--coral:#ffa9c4;--ink:#172542;--muted:#4d5874;--rule:#eadfca;--wash:#f4ead6;--accent:#9c2f5c}
body{background:var(--cream);font-size:1.15rem;line-height:1.7}
body,.bar,.tile,.box,.timeline .entry,.case,.theme,.tags li{transition:background-color .45s ease,color .45s ease,border-color .45s ease,box-shadow .35s ease,transform .35s ease,opacity .7s ease}
.bar{background:rgba(255,253,248,.86);border-color:var(--rule)}
.hero{background:radial-gradient(50rem 34rem at 92% 0,#a8456f 0,transparent 62%),radial-gradient(44rem 34rem at 0 100%,#173f8c 0,transparent 65%),#06112e}
.phead{background:linear-gradient(120deg,#06112e 35%,#123272 70%,#8a355c)}
.headline,.hero,.hero a{color:#fdf6e8}.hero h1{color:#fdf6e8}
.hero .btn.solid{background:var(--cream);border-color:var(--cream);color:#7d2348}
.btn{transition:transform .25s ease,background-color .25s ease,box-shadow .25s ease}.btn:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(20,48,92,.22)}
.btn.dark{background:var(--crimson);border-color:var(--crimson);color:#fff}.btn.line{color:var(--navy);border-color:var(--navy)}
#projects>h2,#about>h2,.rhead h2{position:relative;padding-bottom:.6rem}
#projects>h2::after,#about>h2::after,.rhead h2::after{content:"";position:absolute;left:0;bottom:0;width:3.5rem;height:.3rem;border-radius:1rem;background:linear-gradient(90deg,#d9648f,#ffc2d4)}
.bento{grid-template-columns:repeat(2,1fr);gap:1.75rem}
.t0,.t1,.t2,.t3{grid-column:auto;background:var(--card);color:var(--ink);border-color:var(--rule)}
.tile{justify-content:flex-start;flex-direction:column-reverse;justify-content:flex-end}
.screen{padding:1rem 1rem 0}.screen img{height:auto;aspect-ratio:16/9;border:1px solid var(--rule);border-radius:.9rem}
.info{padding:1.5rem 1.75rem 1.75rem}.info h3{font-size:1.5rem;margin-top:1.1rem}
.stat strong,.t0 .stat strong,.t3 .stat strong{color:var(--crimson);font-size:2.6rem}.stat span{display:block;margin-top:.35rem;font-size:1rem;color:var(--muted);opacity:1}
.t1 .stat strong,.t2 .stat strong{color:var(--blue)}
.tags li,.t0 .tags li,.t3 .tags li{background:var(--wash)}
.box,.timeline .entry,.case{background:var(--card);border-color:var(--rule)}
.when{color:var(--crimson);font-weight:700}li::marker{color:var(--crimson)}
.contact{background:linear-gradient(125deg,#06112e 30%,#123272 68%,#93395f)}
[data-theme=dark]{--ink:#f6eedf;--muted:#c3c4d2;--rule:#1c2d57;--wash:#12224a;--accent:#ffa9c4;--navy:#f6eedf;--blue:#9cc2ff;--crimson:#ffa9c4;--card:#0a1738}
[data-theme=dark] body{background:#040b1f}
[data-theme=dark] .bar{background:rgba(10,23,56,.86);border-color:var(--rule)}
[data-theme=dark] :is(.tile,.box,.timeline .entry,.case){background:var(--card);border-color:var(--rule)}
[data-theme=dark] .btn.dark{background:#ffa9c4;border-color:#ffa9c4;color:#3a0f1e}
[data-theme=dark] .contact{background:linear-gradient(125deg,#0b1c47 30%,#123272 68%,#7a2f52)}
.js .reveal{transform:translateY(14px)}.js .reveal.in{transform:none}.js .tile.in:hover,.tile:hover{transform:translateY(-5px)}
@media(max-width:60rem){.bento{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important}.js .reveal,.tile:hover,.btn:hover{transform:none!important}@view-transition{navigation:none}}
:root{--pink:#ffc2d4}
.hero h1 span{color:var(--pink)}
.hero .btn.solid{background:var(--pink);border-color:var(--pink);color:#3a0f1e}
[data-theme=dark] .btn.dark{background:var(--pink);border-color:var(--pink);color:#3a0f1e}
[data-theme=dark] :is(.t0,.t3) .stat strong{color:var(--pink)}
#projects>h2::after,#about>h2::after,.rhead h2::after{background:linear-gradient(90deg,#d9648f,#ffc2d4)}
[data-theme=dark] .when,li::marker{color:var(--pink)}
.tile:hover{border-color:var(--pink)!important}
.tags li,.t0 .tags li,.t3 .tags li{border:1px solid rgba(255,194,212,.35)}
.bar a:hover,.bar nav a:hover{color:var(--pink)}
button.btn{font:600 1.15rem Source,sans-serif;background:transparent;color:#fdf6e8;cursor:pointer}button.btn[hidden]{display:none}button.btn:focus-visible{outline:3px solid #f2a900;outline-offset:3px}
dialog.qr{border:1px solid #ffc2d4;border-radius:1.5rem;background:#0a1738;color:#fdf6e8;text-align:center;padding:1.75rem;width:min(22rem,calc(100% - 2rem))}
dialog.qr::backdrop{background:rgba(5,11,28,.75);backdrop-filter:blur(4px)}dialog.qr h2{font-size:1.4rem}dialog.qr img{margin:0 auto;width:100%;max-width:17.5rem;height:auto;border-radius:.8rem}
#current>h2{position:relative;padding-bottom:.6rem}#current>h2::after{content:"";position:absolute;left:0;bottom:0;width:3.5rem;height:.3rem;border-radius:1rem;background:linear-gradient(90deg,#d9648f,#ffc2d4)}
.now{border-left:.35rem solid #ffc2d4!important}.now h3{font-size:1.5rem;margin-bottom:.25rem}.now p{margin:.25rem 0 .75rem;max-width:42rem}
body{font-size:1rem;line-height:1.6}
.hero h1{font-size:clamp(2.25rem,5vw,3.5rem);line-height:1.05}.phead h1,.case h1{font-size:clamp(1.6rem,4vw,2.25rem)}
#projects>h2,#current>h2,#about>h2,.rhead h2,.contact h2,h2,dialog.qr h2{font-size:clamp(1.5rem,3vw,1.875rem)}
h3,.info h3,.now h3{font-size:1.2rem}h4{font-size:1rem}.case h2{font-size:1.25rem}
.headline{font-size:1.05rem}.lead{font-family:Source,system-ui,sans-serif;font-weight:400;font-size:1.0625rem;line-height:1.7;letter-spacing:0;max-width:44rem}
.stat strong,.t0 .stat strong,.t3 .stat strong{font-size:1.875rem}.stat span{font-size:.875rem}
.tags li{font-size:.8125rem}.btn,button.btn{font-size:.9375rem;padding:.6rem 1.15rem}.bar,.social a,.foot a{font-size:.9375rem}.note,.hint{font-size:.875rem}
section.wrap{padding-top:3.5rem}.hero{padding-bottom:3.5rem}.wrap{max-width:68rem}
.copy{display:flex;flex-direction:column;align-items:stretch;gap:.5rem;margin-top:.75rem}.copy input{width:100%;text-align:center;font:.875rem Source,sans-serif;color:#fdf6e8;background:#040b1f;border:1px solid #1c2d57;border-radius:999px;padding:.55rem .8rem}.copy input:focus-visible{outline:3px solid #f2a900}
.copy button.btn{background:#ffc2d4;border-color:#ffc2d4;color:#3a0f1e;white-space:nowrap}.copied{min-height:1.4rem;margin:.4rem 0;font-size:.875rem;color:#ffc2d4}
.split>div{min-width:0}.stack{height:auto;aspect-ratio:1.3;width:100%;max-width:36rem;justify-self:center}
.stack img{width:82%;height:auto;aspect-ratio:1.6;object-fit:cover;object-position:top left}.stack .s1{top:3%;right:0}.stack .s2{top:19%;left:0}.stack .s3{bottom:3%;right:3%}
/* home page only */
body:has(.hero) .hero{min-height:100vh;min-height:100svh;display:flex;align-items:center;padding-top:8rem;padding-bottom:4rem}
body:has(.hero) .hero>.wrap{width:100%}
body:has(.hero){font-size:1.0625rem}
body:has(.hero) .hero h1{font-size:clamp(2.75rem,6vw,4.5rem)}
body:has(.hero) .headline{font-size:1.25rem}
body:has(.hero) .lead{font-size:1.1875rem}
body:has(.hero) section h2{font-size:clamp(1.75rem,3.4vw,2.25rem)}
body:has(.hero) h3,body:has(.hero) .info h3,body:has(.hero) .now h3{font-size:1.3rem}
body:has(.hero) h4{font-size:1.0625rem}
body:has(.hero) .stat strong{font-size:2.25rem}body:has(.hero) .stat span{font-size:.9375rem}
body:has(.hero) .tags li{font-size:.875rem}
body:has(.hero) .btn,body:has(.hero) button.btn{font-size:1rem;padding:.7rem 1.3rem}
body:has(.hero) .bar,body:has(.hero) .social a,body:has(.hero) .foot a{font-size:1rem}
body:has(.hero) .note,body:has(.hero) .hint{font-size:.9375rem}
@media(max-width:60rem){body:has(.hero) .hero{padding-top:9rem}}
