:root{--peach:#efc096;--cream:#fff2d2;--ink:#252323;--work:#382e28;--work-ink:#fff2d2;--contact:#e9b68c;--line:rgba(37,35,35,.22);--body:'Montserrat',sans-serif;--heading:'Fraunces',Georgia,serif;color-scheme:light}
:root[data-theme="dark"]{--peach:#292320;--cream:#25211d;--ink:#fff2d2;--work:#171513;--work-ink:#fff2d2;--contact:#32261f;--line:rgba(255,242,210,.22);color-scheme:dark}
*{box-sizing:border-box}html{overflow-x:clip;scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;overflow-x:clip;background:var(--peach);color:var(--ink);font:14px/1.8 var(--body);isolation:isolate}a{color:inherit;text-decoration:none}button{font:inherit;cursor:pointer}a,button,summary{-webkit-tap-highlight-color:transparent}a:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid currentColor;outline-offset:6px}::selection{color:var(--cream);background:#756052}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:var(--heading);font-weight:500;line-height:1.05;letter-spacing:-.04em}h1{font-size:clamp(54px,6.7vw,100px);margin-bottom:24px}h2{font-size:clamp(44px,5.8vw,84px);margin-bottom:26px}h3{font-size:32px;letter-spacing:-.03em;margin-bottom:18px}em{font-weight:500}.wrap{width:min(1250px,calc(100% - 100px));margin-inline:auto}.eyebrow{font-size:11px;font-weight:500;letter-spacing:.2px;margin-bottom:24px}.skip-link{position:fixed;left:15px;top:-100px;background:var(--ink);color:var(--cream);padding:10px 20px;z-index:50}.skip-link:focus{top:15px}
.site-header{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 40px;background:transparent;border:0;color:var(--ink);--line:currentColor}.wordmark{font-size:22px;font-weight:700;letter-spacing:-1px;display:flex;gap:8px;align-items:center}.lotus-icon{display:inline-block;width:1em;height:1em;vertical-align:middle;flex-shrink:0}.wordmark .lotus-icon{width:32px;height:32px}nav{display:flex;gap:32px;font-size:12px;font-weight:600}.site-controls{display:flex;align-items:center;gap:12px}.theme-toggle{display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--line);border-radius:50%;background:none;color:inherit;padding:7px}.theme-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.theme-sun{display:none}[data-theme="dark"] .theme-moon{display:none}[data-theme="dark"] .theme-sun{display:block}
.button{display:inline-flex;align-items:center;justify-content:center;gap:30px;padding:15px 24px;border-radius:50px;background:var(--ink);color:var(--cream);font-size:12px;font-weight:600}.button span{font-size:22px;line-height:1}.text-link{font-size:12px;font-weight:600;padding-block:5px;border-bottom:1px solid currentColor}.hero-story{position:relative;height:185svh}.hero-stage{position:sticky;top:75px;min-height:calc(100svh - 75px);display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:center;gap:45px;padding-top:45px;padding-bottom:70px}.hero-copy{position:relative;z-index:2}.hero-intro{font-size:14px;max-width:450px;line-height:1.9;margin-bottom:28px}.hero-actions{display:flex;gap:28px;align-items:center;flex-wrap:wrap}.hero-foot{position:absolute;bottom:22px;left:0;right:0;display:flex;justify-content:flex-end;gap:20px;font-size:10px;border-top:1px solid var(--line);padding-top:17px}.orange-scene{position:relative;min-height:450px;display:grid;place-items:center}.orange-halo{position:absolute;width:95%;aspect-ratio:1;border-radius:50%;background:rgba(255,242,210,.35)}.orange-traveler{width:100%;position:relative;z-index:1}.orange-button{display:block;width:min(100%,430px);margin:auto;padding:0;border:0;background:none;border-radius:50%;color:inherit}.orange-art{display:block;width:100%;overflow:visible}.scene-note{position:absolute;top:-18px;right:0;transform:rotate(7deg);font:18px var(--heading);z-index:2}.scene-note span{display:block;font-size:36px;text-align:center}.orange-hint{position:absolute;bottom:-12px;left:0;right:0;text-align:center;font-size:10px}.spark{position:absolute;width:50px;height:50px;z-index:3}.spark .lotus-icon{width:100%;height:100%}.spark-one{left:-12px;top:15px;rotate:-12deg}.spark-two{right:0;bottom:40px;width:70px;height:70px;rotate:15deg}
.orange-glow,.awake-face{opacity:0;transition:opacity .3s}.sleep-face,.sleep-z{opacity:1;transition:opacity .3s}.orange-character{transform-origin:200px 280px;animation:breathe 4s ease-in-out infinite}.wave-arm{transform-origin:285px 212px;transform:rotate(48deg);transition:transform .35s}.orange-button:is(.is-hovered,:focus-visible,.is-awake) .orange-glow,.orange-button:is(.is-hovered,:focus-visible,.is-awake) .awake-face{opacity:1}.orange-button:is(.is-hovered,:focus-visible,.is-awake) .sleep-face,.orange-button:is(.is-hovered,:focus-visible,.is-awake) .sleep-z{opacity:0}.orange-button:is(.is-hovered,:focus-visible,.is-awake) .orange-character{animation:happy-bob 2s ease-in-out infinite}.orange-button:is(.is-hovered,:focus-visible,.is-awake) .wave-arm{animation:wave .65s ease-in-out infinite}.sleep-z{animation:drift 4s ease-in-out infinite}[data-theme="dark"] .sleep-z{fill:#efc096}[data-theme="dark"] .orange-character{stroke:#efc096}[data-theme="dark"] .sleep-face,[data-theme="dark"] .awake-face{stroke:#252323}[data-theme="dark"] .orange-halo{background:rgba(239,192,150,.08)}
.section-pad{padding-block:125px;position:relative}.scallop{position:absolute;top:-1px;left:0;width:100%;height:clamp(70px,10vw,120px);overflow:hidden;pointer-events:none}.scallop svg{display:block;width:100%;height:100%}.from-hero{fill:var(--peach)}.from-work{fill:var(--work)}.from-cream{fill:var(--cream)}.work-section{background:var(--work);color:var(--work-ink);--line:rgba(255,242,210,.23)}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:60px;margin-bottom:60px}.section-heading h2{margin-bottom:0}.section-heading>p{max-width:280px;font-size:13px;margin-bottom:6px}.projects-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}.project{min-width:0}.project-visual{height:410px;position:relative;display:grid;place-items:center;border-radius:20px;overflow:hidden;color:#252323}.habit-visual{background:#efc096}.shop-visual{background:#dedec3}.project-copy{padding:28px 5px 0}.project-copy>p{font-size:13px}.project-index{font-size:10px!important;opacity:.8;margin-bottom:15px}.tags{list-style:none;display:flex;flex-wrap:wrap;gap:7px;padding:0;margin:20px 0}.tags li{border:1px solid var(--line);border-radius:20px;padding:3px 11px;font-size:9px}.project details{border-top:1px solid var(--line)}.project summary{display:flex;justify-content:space-between;font-size:12px;font-weight:500;padding:14px 0;cursor:pointer;list-style:none}.project summary::-webkit-details-marker{display:none}.project summary span{font-size:20px;line-height:1}.project details[open] summary span{rotate:45deg}.project details p{font-size:12px;line-height:1.9;margin:3px 0 20px}.github-link{display:inline-block;margin-top:48px}.illustration-caption{position:absolute;bottom:12px;right:16px;font-size:9px;opacity:.65}
.habit-paper{width:300px;padding:24px 26px;background:#fff2d2;border:2px solid #252323;border-radius:10px;transform:rotate(-7deg);box-shadow:10px 10px 0 rgba(37,35,35,.14);color:#252323}.paper-top{display:flex;justify-content:space-between;font-size:12px;font-weight:600;align-items:center}.paper-top .lotus-icon{width:26px;height:26px}.habit-paper>p{font:36px/1.1 var(--heading);letter-spacing:-1px;margin:15px 0 25px}.habit-row{display:flex;gap:10px;align-items:center;margin-bottom:12px;font-size:10px}.habit-row>span:last-child{margin-left:auto;font-size:9px;opacity:.7}.check{width:20px;height:20px;border:1px solid #252323;border-radius:50%;background:#efc096;display:grid;place-items:center}.check.empty{background:none}.week-dots{display:flex;justify-content:space-between;padding-top:13px;border-top:1px solid rgba(37,35,35,.2);font-size:8px}.week-dots span{width:23px;height:23px;border-radius:50%;background:#efc096;display:grid;place-items:center}.shop-art{position:relative;width:330px;height:280px}.shop-bag{position:absolute;width:190px;height:195px;left:55px;top:55px;background:#efc096;border:3px solid #252323;border-radius:10px;transform:rotate(7deg);box-shadow:8px 9px 0 rgba(37,35,35,.14);display:grid;place-items:center}.shop-bag:before{content:'';position:absolute;width:73px;height:58px;top:-44px;border:4px solid #252323;border-bottom:0;border-radius:45px 45px 0 0}.shop-bag>span{font:36px var(--heading)}.shop-bag>span>span{display:block;text-align:center}.shop-bag .lotus-icon{width:55px;height:55px}.product-tile{position:absolute;width:100px;height:115px;border:2px solid #252323;border-radius:10px;background:#fff2d2;box-shadow:5px 5px 0 rgba(37,35,35,.12);display:grid;place-items:center}.product-tile svg{width:75px}.tile-one{left:0;top:90px;transform:rotate(-12deg)}.tile-two{right:0;bottom:0;transform:rotate(12deg)}
.about-section,.toolbox-section{background:var(--cream)}.about-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:80px;align-items:start}.about-copy p{font-size:13px}.about-copy .about-lead{font:26px/1.4 var(--heading);margin-bottom:25px}.personal-collage{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;margin:95px 20px 70px;perspective:1000px}.personal-card{position:relative;min-width:0;padding:25px;background:#efc096;color:#252323;border:1.5px solid #252323;border-radius:8px;box-shadow:6px 8px 0 rgba(37,35,35,.09);display:flex;flex-direction:column}.card-number{font-size:9px;font-weight:500}.personal-card h3{font-size:29px;margin-bottom:10px}.personal-card p{font-size:12px;margin-bottom:0}.reading-card{--card-tilt:-6deg}.learning-card{background:#dfdfc6;--card-tilt:5deg}.people-card{background:#f5d8b3;--card-tilt:-3deg}.book-art,.flower-art,.people-art{height:175px;display:grid;place-items:center;margin-block:24px}.book-art svg{width:210px;max-width:100%}.flower-art .lotus-icon{width:135px;height:135px}.people-art{width:180px;max-width:100%;margin-inline:auto}.education-line{display:flex;justify-content:space-between;gap:25px;font-size:11px;padding-top:24px;border-top:1px solid var(--line)}.toolbox-section{padding-top:40px;padding-bottom:110px}.toolbox-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.toolbox-list article{border:1px solid var(--line);border-radius:18px;padding:26px 24px}.tool-number{font-size:11px}.toolbox-list h3{font:500 20px var(--heading);margin:38px 0 12px;letter-spacing:0}.toolbox-list p{font-size:12px;margin-bottom:0}
.contact-section{background:var(--contact);padding-bottom:0}.contact-top{display:flex;justify-content:space-between;gap:30px;align-items:center}.contact-top p:not(.eyebrow){font-size:14px}.contact-email{display:inline-block;font-size:13px;border-bottom:1px solid currentColor;margin-top:10px}.footer-garden{position:relative;padding:130px 0 75px}.footer-name{font:500 clamp(60px,12.3vw,180px)/1 var(--heading);letter-spacing:-.055em;text-align:center;margin:0}.garden-flower{position:absolute;width:90px;height:90px;top:75px}.garden-flower .lotus-icon{width:100%;height:100%}.garden-left{left:0;rotate:-20deg}.garden-right{right:0;rotate:25deg}.site-footer{display:flex;justify-content:space-between;gap:20px;font-size:9px;padding-block:24px;border-top:1px solid var(--line)}
main{position:relative;z-index:1}
:root:not([data-theme="dark"]) .lotus-icon>g{stroke:#efc096}:root:not([data-theme="dark"]) .lotus-icon>g>g:first-child{fill:#756052}:root:not([data-theme="dark"]) .lotus-icon>g>g:nth-child(2){fill:#252323}:root:not([data-theme="dark"]) .lotus-icon circle{fill:#fff2d2}.work-section .lotus-icon>g>g:first-child{fill:#756052}.work-section .lotus-icon>g>g:nth-child(2){fill:#252323}
@keyframes breathe{50%{transform:translateY(3px) scaleY(.985)}}@keyframes happy-bob{50%{transform:translateY(-5px)}}@keyframes wave{0%,100%{transform:rotate(-10deg)}50%{transform:rotate(15deg)}}@keyframes drift{50%{transform:translate(4px,-7px)}}
@media(max-width:1000px){.wrap{width:calc(100% - 60px)}.site-header{padding-inline:25px}nav{gap:20px}.hero-stage{gap:20px}h1{font-size:65px}.orange-scene{min-height:360px}.scene-note{font-size:14px}.project-visual{height:340px}.habit-paper{width:260px;padding:20px}.shop-art{transform:scale(.87)}.about-grid{gap:40px}.personal-collage{gap:18px;margin-inline:0}.personal-card{padding:20px}.personal-card h3{font-size:25px}.section-pad{padding-block:100px}.toolbox-section{padding-top:20px}}
@media(max-width:700px){.wrap{width:calc(100% - 40px)}.site-header{padding:13px 20px;flex-wrap:wrap;gap:12px}.wordmark{font-size:20px}.wordmark .lotus-icon{width:26px;height:26px}.site-controls{margin-left:auto}nav{order:3;width:100%;justify-content:space-between;font-size:11px}.hero-story{height:auto}.hero-stage{position:relative;top:0;min-height:0;grid-template-columns:1fr;padding-top:45px;padding-bottom:75px;gap:35px}h1{font-size:clamp(52px,11vw,75px)}.hero-intro{font-size:13px}.eyebrow{font-size:9px}.hero-actions{gap:22px}.hero-foot{font-size:8px;bottom:12px}.orange-scene{min-height:350px;margin-block:12px 25px}.orange-button{width:330px;max-width:100%}.orange-halo{width:310px;max-width:95%}.scene-note{top:0;right:0;font-size:14px}.spark-one{left:5px;width:40px;height:40px}.spark-two{width:55px;height:55px;bottom:20px}.orange-hint{bottom:-10px}.section-pad{padding-block:90px}.section-heading{display:block;margin-bottom:35px}h2{font-size:48px}.section-heading>p{margin-top:25px;max-width:320px}.scallop{height:clamp(60px,20vw,70px)}.scallop svg{width:200%}.projects-grid{grid-template-columns:1fr;gap:45px}.project-visual{height:360px}.about-grid{grid-template-columns:1fr;gap:15px}.about-copy .about-lead{font-size:24px}.personal-collage{grid-template-columns:1fr;gap:35px;width:min(340px,calc(100% - 30px));margin:55px auto}.personal-card{padding:25px}.personal-card h3{font-size:32px}.education-line{flex-direction:column;gap:5px}.toolbox-section{padding-top:0}.toolbox-list{grid-template-columns:1fr}.toolbox-list h3{margin-top:20px}.toolbox-list article{padding:22px}.contact-top{display:block}.contact-top .button{margin-top:15px}.contact-email{font-size:11px;margin-top:25px}.footer-garden{padding-top:120px;padding-bottom:50px}.garden-flower{width:55px;height:55px;top:55px}.footer-name{font-size:clamp(45px,12vw,84px)}.site-footer{flex-wrap:wrap;font-size:8px;gap:10px}.site-footer span:nth-child(2){width:100%;order:3}.site-footer a{margin-left:auto}}
html[data-motion="off"]{scroll-behavior:auto}html[data-motion="off"] *,html[data-motion="off"] *::before,html[data-motion="off"] *::after{animation:none!important;transition:none!important}

/* Leave breathing room below the larger section curves. */
.work-section,.about-section,.contact-section{padding-top:170px}
@media(max-width:700px){.work-section,.about-section,.contact-section{padding-top:115px}}

/* Language navigation and Cyrillic heading proportions. */
@font-face{font-family:'Lora';font-style:normal;font-weight:400 700;font-display:swap;src:url('../fonts/lora-regular.ttf') format('truetype')}
@font-face{font-family:'Lora';font-style:italic;font-weight:400 700;font-display:swap;src:url('../fonts/lora-italic.ttf') format('truetype')}
.site-header nav{align-items:center}
.language-switch{font-size:10px;line-height:1.5;border:1px solid var(--line);border-radius:20px;padding:5px 10px;white-space:nowrap}
html:lang(mn){--heading:'Lora',Georgia,serif}
html:lang(mn) :is(h1,h2,h3){font-weight:600;letter-spacing:-.025em}
html:lang(mn) :is(h1,h2,h3) em{font-weight:600;font-style:italic}
html:lang(mn) h1{font-size:clamp(42px,5vw,76px)}
html:lang(mn) h2{font-size:clamp(38px,5vw,68px)}
html:lang(mn) .scene-note{max-width:270px;line-height:1.4}
html:lang(mn) .habit-paper>p{font-size:30px}
html:lang(mn) .personal-card h3{font-size:26px}
@media(max-width:1000px){.site-header nav{gap:12px}}
@media(max-width:700px){.site-header nav{gap:8px;flex-wrap:wrap}html:lang(mn) h1{font-size:clamp(42px,9vw,62px)}html:lang(mn) h2{font-size:clamp(38px,9vw,48px)}}

/* Keep animated artwork inside the viewport without changing sticky scrolling. */
.hero-copy,.orange-scene,.about-grid>*,.section-heading>*,.toolbox-list article{min-width:0}
.contact-email,.toolbox-list h3,.toolbox-list p{overflow-wrap:anywhere}

/* The scalloped foreground lifts away from the stationary final panel. */
:root{--hero-background:#fff2d2}
:root[data-theme="dark"]{--hero-background:var(--peach)}
body:has(.hero-story){background:var(--hero-background)}
.hero-story{background:var(--hero-background)}
.page-curtain{position:relative;z-index:2;background:var(--hero-background)}
.page-curtain>.scallop{top:100%;z-index:3}
.contact-section{background:var(--cream);padding-bottom:75px}
.footer-panel{position:relative;z-index:1;background:var(--contact);padding-top:clamp(90px,16svh,135px)}
html[data-footer-reveal="yes"] .footer-panel{position:sticky;bottom:0}
.footer-panel .footer-garden{padding-top:clamp(40px,8svh,85px);padding-bottom:clamp(30px,6svh,65px)}
.footer-panel .footer-name{font-size:clamp(40px,min(12.3vw,20svh),180px);translate:none}
.footer-panel .garden-flower{top:clamp(5px,2svh,25px)}
@media(max-width:700px){.footer-panel{padding-top:80px}.footer-panel .footer-name{font-size:clamp(36px,12vw,84px)}}

/* The projects section rises into the peach introduction. */
.scallop.from-hero{background:var(--hero-background);fill:var(--work)}
.scallop.from-hero svg{transform:scaleY(-1)}

/* Projects lift over the introduction, with open space around the round edge. */
.work-section{--projects-edge-height:clamp(70px,10vw,120px);background:transparent;isolation:isolate;z-index:3}
.work-section::before{content:'';position:absolute;inset:calc(var(--projects-edge-height) - 2px) 0 0;background:var(--work);z-index:-1}
.work-section>.scallop{top:0;height:var(--projects-edge-height);background:transparent}
.about-section,.toolbox-section,.contact-section{position:relative;z-index:3}
@media(min-width:701px){
  .hero-story{--hero-peek:clamp(36px,5.5svh,60px)}
  html:not([data-motion="off"]) .hero-story{position:sticky;top:min(var(--hero-header-height,75px),calc(100svh - var(--hero-panel-height,100svh)));height:auto;z-index:1;background:var(--hero-background)}
  html:not([data-motion="off"]) .hero-stage{position:relative;top:0;min-height:calc(100svh - var(--hero-header-height,75px) - var(--hero-peek,45px))}
}
@media(max-width:700px){.work-section{--projects-edge-height:clamp(60px,20vw,70px)}}

/* Navigation follows the visible backdrop, including the moving curtains. */
:root .site-header .lotus-icon>g{fill:currentColor;stroke:none}
.site-header .lotus-icon>g>g{fill:currentColor}
:root .site-header .lotus-icon circle{fill:currentColor}

/* Use the portfolio palette for navigation contrast, without color inversion. */
.site-header [data-surface="light"]{background:#252323;color:#fff2d2}
.site-header [data-surface="dark"]{background:#fff2d2;color:#252323}

/* Compact corner menu; its panel keeps the page palette. */
.site-header{flex-wrap:nowrap}
.header-menu{position:relative;margin-left:auto;border:0}
.menu-toggle{display:flex;align-items:center;justify-content:center;min-width:90px;height:44px;padding:8px 18px;cursor:pointer;list-style:none;font-size:13px;font-weight:600;line-height:1}
.menu-toggle::-webkit-details-marker{display:none}
.menu-toggle:focus-visible{outline:2px solid currentColor;outline-offset:4px}




.menu-panel{position:absolute;right:0;top:calc(100% + 12px);width:min(200px,calc(100vw - 40px));padding:10px;background:var(--cream);color:var(--ink);--line:currentColor;border-radius:14px;box-shadow:0 6px 18px rgba(37,35,35,.1)}
.site-header .menu-panel nav{display:flex;flex-direction:column;align-items:stretch;gap:2px;width:auto;order:0;font-size:12px;line-height:1.5;font-weight:600}
.menu-panel nav a{padding:8px 10px;border-radius:8px}
.menu-panel nav a::after{display:none}
.menu-panel nav a:hover,.menu-panel .theme-toggle:hover{background:color-mix(in srgb,var(--ink) 8%,transparent)}
.menu-panel .language-switch{border:0;font-size:inherit;line-height:inherit}
.menu-panel .site-controls{display:block;margin:6px 0 0;padding-top:4px;border:0}
.menu-panel .theme-toggle{display:flex;justify-content:space-between;width:100%;height:auto;border:0;padding:8px 10px;border-radius:8px;font-size:12px;font-weight:500;line-height:1.5}
.header-menu[open] .menu-panel{animation:menu-enter .2s ease-out}
@keyframes menu-enter{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.header-menu[open] .menu-panel{animation:none}}

/* Compact rounded name and menu badges. */
.wordmark,.menu-toggle{border:0;border-radius:999px;background:#252323;color:#fff2d2;box-shadow:none}
.wordmark{height:30px;padding:5px 11px;font-size:14px;letter-spacing:-.3px;gap:6px}
.menu-toggle{min-width:0;height:28px;padding:5px 11px;font-size:11px;font-weight:500}
.menu-toggle .menu-label{font:inherit;line-height:1;rotate:none}
.wordmark .lotus-icon{width:18px;height:18px}
@media(max-width:700px){.wordmark{font-size:14px;padding-inline:10px}.wordmark .lotus-icon{width:18px;height:18px}.menu-toggle{min-width:0;padding-inline:10px}}

/* Show the real project screens in full, keeping matching card proportions. */
.bookshelf-section{padding:32px;margin-bottom:70px;border-radius:26px;background:color-mix(in srgb,var(--peach) 20%,var(--cream))}
.bookshelf-section>h2,html:lang(mn) .bookshelf-section>h2{font-size:clamp(28px,3vw,40px);margin-bottom:32px}
.book-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px;max-width:960px;margin-inline:auto}
.shelf-book{min-width:0;margin:0;--book-turn:-3deg}
.shelf-book:nth-child(2){--book-turn:2deg}.shelf-book:nth-child(3){--book-turn:-2deg}.shelf-book:nth-child(4){--book-turn:3deg}
.book-cover{height:clamp(170px,23vw,290px);display:flex;justify-content:center;align-items:flex-end;transform:rotate(var(--book-turn));transition:transform .35s cubic-bezier(.16,1,.3,1);margin-bottom:22px}
.book-cover img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;border-radius:2px;box-shadow:5px 8px 13px rgba(37,35,35,.18)}
.shelf-book figcaption{display:flex;flex-direction:column;gap:3px;text-align:center;line-height:1.5}
.book-title{font-size:12px;font-weight:600}.book-author{font-size:10px;opacity:.7}
.reading-shelf-link{display:inline-block;align-self:flex-start;font-size:11px;font-weight:600;margin-top:16px}
.bookshelf-section{display:none}
.reading-books{display:grid;align-items:center;height:175px;margin-block:24px}
.reading-books .book-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;width:100%;margin:0}
.reading-books .book-cover{height:130px;margin:0}
.reading-books .book-cover img{box-shadow:3px 5px 7px rgba(37,35,35,.18)}
.reading-books figcaption{display:none}
@media(hover:hover){.shelf-book:hover .book-cover{transform:translateY(-7px) rotate(0)}}
@media(max-width:700px){.bookshelf-section{padding:24px 18px;margin-bottom:55px}.book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 20px}.book-cover{height:clamp(160px,44vw,250px);margin-bottom:16px}.bookshelf-section>h2,html:lang(mn) .bookshelf-section>h2{font-size:30px}.book-title{font-size:11px}.book-author{font-size:9px}}
.hero-foot,.education-line,.site-footer,.project details{border-top:0}
.education-section{padding-top:15px}
.education-section>h2,html:lang(mn) .education-section>h2{font-size:clamp(30px,3.2vw,44px);margin-bottom:26px}
.education-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:22px}
.education-card{padding:30px;border:0;border-radius:24px;background:var(--peach);color:var(--ink);transition:translate .3s}
.education-school-card{background:color-mix(in srgb,var(--peach) 35%,var(--cream))}
.education-top{display:flex;align-items:center;gap:12px;margin-bottom:24px;flex-wrap:wrap}
.education-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:var(--ink);color:var(--cream);flex-shrink:0}
.education-icon svg{width:32px;height:32px}
.education-level{font-size:11px;font-weight:600}
.education-year{margin-left:auto;font-size:11px;font-weight:500;white-space:nowrap}
.education-card h3,html:lang(mn) .education-card h3{font-size:clamp(24px,2.5vw,34px);letter-spacing:-.025em;line-height:1.2;margin-bottom:12px}
.education-school{font-size:13px;line-height:1.7;margin-bottom:0}
.education-result{display:inline-flex;gap:14px;align-items:center;background:var(--cream);border-radius:999px;padding:6px 14px;font-size:11px;margin:22px 0 0}
.education-result strong{font-size:14px;font-variant-numeric:tabular-nums}
@media(hover:hover){.education-card:hover{translate:0 -3px}}
@media(max-width:700px){.education-grid{grid-template-columns:minmax(0,1fr);gap:16px}.education-card{padding:24px}.education-top{margin-bottom:20px}.education-icon{width:42px;height:42px;border-radius:13px}.education-year{font-size:10px}.education-section>h2,html:lang(mn) .education-section>h2{font-size:32px}}
.project-visual.project-screenshot{height:auto;aspect-ratio:16/10;background:#f6fafb}
.project-screenshot img{display:block;width:100%;height:100%;object-fit:contain}

/* Project cards open a full story with the same palette and navigation. */
.project-link{display:block;border-radius:20px;cursor:pointer;transition:translate .35s cubic-bezier(.16,1,.3,1)}
.project-link:focus-visible{outline-offset:8px}
.project-link .project-visual{position:relative;overflow:hidden;transition:box-shadow .35s}
.project-link .project-screenshot img{transition:transform .5s cubic-bezier(.16,1,.3,1)}
.project-link .project-visual::after{content:'↗';position:absolute;right:16px;bottom:16px;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--cream);color:var(--ink);font-size:24px;opacity:0;transform:translateY(8px);transition:opacity .25s,transform .35s;pointer-events:none}
.project-link:focus-visible{translate:0 -5px}
.project-link:focus-visible .project-visual::after{opacity:1;transform:translateY(0)}
@media(hover:hover){.project-link:hover{translate:0 -5px}.project-link:hover .project-visual{box-shadow:0 12px 26px rgba(0,0,0,.18)}.project-link:hover .project-screenshot img{transform:scale(1.035)}.project-link:hover .project-visual::after{opacity:1;transform:translateY(0)}}

/* Screens sit inside quiet device silhouettes, with alternating project stories. */
.projects-grid{grid-template-columns:minmax(0,1fr);gap:100px}
.projects-grid .project{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);column-gap:60px;row-gap:0;align-items:center;position:relative}
.projects-grid .project-link{display:contents}
.projects-grid .project-copy{grid-column:1;grid-row:1;align-self:end;padding:0}
.projects-grid .project-external-links{grid-column:1;grid-row:2;align-self:start;margin-top:8px}
.projects-grid .project:nth-child(even){grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}
.projects-grid .project:nth-child(even) .project-copy,.projects-grid .project:nth-child(even) .project-external-links{grid-column:2}
.projects-grid .project .device-scene{grid-column:2;grid-row:1 / 3;display:block;position:relative;height:auto;aspect-ratio:1.35;background:none;color:var(--work-ink);overflow:visible;border-radius:0;padding:24px 36px 48px 0;transition:transform .45s cubic-bezier(.16,1,.3,1);filter:drop-shadow(0 16px 14px rgba(0,0,0,.18))}
.projects-grid .project:nth-child(even) .device-scene{grid-column:1}
.device{position:relative;width:100%;isolation:isolate}
.device-screen{position:relative;aspect-ratio:16 / 10;overflow:hidden;border:10px solid #252323;border-top-width:16px;border-radius:16px;background:#f6fafb;box-shadow:0 0 0 1px #756052}
.device-screen img{display:block;width:100%;height:100%;object-fit:contain}
.device-laptop::after{content:'';display:block;position:absolute;top:100%;left:-6%;width:112%;height:12px;border-radius:2px 2px 60% 60%;background:linear-gradient(#a79b8c,#75695e);box-shadow:0 2px 0 #252323}
.device-desktop .device-screen{border-bottom-width:24px}
.device-desktop::before{content:'';position:absolute;top:100%;left:43%;width:14%;height:54px;background:linear-gradient(#75695e,#b7ab9c);transform:perspective(150px) rotateX(15deg);z-index:-1}
.device-desktop::after{content:'';position:absolute;top:calc(100% + 48px);left:32%;width:36%;height:8px;border-radius:50%;background:#b7ab9c}
.device-tablet{width:92%;margin-top:12px}
.device-tablet .device-screen{aspect-ratio:4 / 3;border:13px solid #252323;border-radius:22px}
.device-phone{position:absolute;right:0;bottom:12px;width:24%;transform:rotate(3deg)}
.device-phone .device-screen{aspect-ratio:var(--phone-ratio,9 / 18.5);border:6px solid #252323;border-top-width:12px;border-bottom-width:12px;border-radius:20px}
.device-phone .device-screen::after{content:'';position:absolute;top:0;left:30%;width:40%;height:8px;border-radius:0 0 8px 8px;background:#252323}
.device-phone img{object-fit:contain;object-position:center top}
.device:not(.device-phone) .device-screen{aspect-ratio:auto}
.device:not(.device-phone) .device-screen img{width:100%;height:auto;object-fit:contain}
.game-scene .game-preview{position:absolute;right:0;bottom:5px;width:40%;margin:0;transform:rotate(3deg)}
.game-scene .game-preview .device-screen{border-width:7px;border-radius:14px}
.game-selection{max-width:760px;margin:0 auto 50px;background:#190725}
.game-selection figcaption{padding:16px 20px;font-size:12px;color:#fff2d2}
.project-download-link{display:inline-flex;flex-wrap:wrap;align-items:center;gap:8px}
.download-meta{font-size:10px;font-weight:400;opacity:.75}
.projects-grid .project-link .project-visual::after{right:0;bottom:0;z-index:3}
.projects-grid .project-link:focus-visible .device-scene{outline:2px solid currentColor;outline-offset:8px;border-radius:12px}
@media(hover:hover){.projects-grid .project-link:hover .device-scene{transform:translateY(-7px) rotate(-1deg);box-shadow:none}}
@media(max-width:900px){.projects-grid .project,.projects-grid .project:nth-child(even){column-gap:32px}.projects-grid{gap:80px}.device-screen{border-width:8px;border-top-width:12px}.projects-grid .project .device-scene{padding-right:24px}}
@media(max-width:700px){.projects-grid{gap:65px}.projects-grid .project,.projects-grid .project:nth-child(even){grid-template-columns:minmax(0,1fr);gap:0}.projects-grid .project .device-scene,.projects-grid .project:nth-child(even) .device-scene{grid-column:1;grid-row:1;width:min(100%,500px);justify-self:center;margin-bottom:24px}.projects-grid .project .project-copy,.projects-grid .project:nth-child(even) .project-copy{grid-column:1;grid-row:2}.projects-grid .project .project-external-links,.projects-grid .project:nth-child(even) .project-external-links{grid-column:1;grid-row:3}.device-phone .device-screen{border-radius:16px}}
.project-page{background:var(--cream)}
.project-detail{max-width:1100px}
.project-detail-hero{padding-block:50px 38px}
.project-back{display:inline-block;margin-bottom:38px}
.project-detail-hero h1{margin-bottom:22px}
.project-detail-hero h1{font-size:clamp(40px,5vw,76px)}
html:lang(mn) .project-detail-hero h1{font-size:clamp(36px,4.7vw,68px)}
.project-case-section{margin-top:26px}
.project-case-section h3{font-size:22px;line-height:1.4;margin-bottom:12px}
.project-case-section p+p{margin-top:16px}
.toolbox-section .section-heading .eyebrow{display:none}
.project-detail-intro{font-size:16px;max-width:700px;line-height:1.9}
.project-facts{display:flex;flex-wrap:wrap;gap:28px 70px;margin:32px 0 0}
.project-facts dt{font-size:10px;opacity:.65;margin-bottom:5px}
.project-facts dd{margin:0;font-size:12px;font-weight:500}
.project-detail-image{border-radius:20px;overflow:hidden;background:#f6fafb}
.project-detail-image img{display:block;width:100%;height:auto}
.project-detail-content{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:70px;padding-block:65px}
.project-detail-content h2{font-size:32px;letter-spacing:-.03em}
html:lang(mn) .project-detail-content h2{font-size:32px}
.project-detail-content p{font-size:14px;line-height:2;margin-bottom:0}
.project-detail-content .tags{margin-top:0}
.project-detail-content .tags li{font-size:11px;padding:5px 12px}
.project-pagination{display:flex;flex-wrap:wrap;justify-content:space-between;gap:20px;padding-bottom:45px}
.project-detail-hero,.project-detail-image{animation:detail-enter .65s cubic-bezier(.16,1,.3,1)}
@keyframes detail-enter{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:700px){.project-detail-hero{padding-top:30px}.project-detail-intro{font-size:14px}.project-facts{gap:20px}.project-detail-content{grid-template-columns:1fr;gap:28px;padding-block:40px}.project-detail-content h2,html:lang(mn) .project-detail-content h2{font-size:28px}.project-pagination{width:auto;order:0;font-size:12px;justify-content:space-between}.project-detail-image{border-radius:14px}}

/* Technology marks inherit the palette in light and dark mode. */
.tool-logo{display:inline-block;width:16px;height:16px;flex-shrink:0;fill:currentColor}
.tags li{display:inline-flex;align-items:center;gap:6px}
.tool-chips{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:0}


.tool-chips li{display:inline-flex;align-items:center;gap:6px;font-size:11px;line-height:1.5;border:1px solid var(--line);border-radius:999px;padding:6px 9px}
.project-detail-content .tool-logo{width:18px;height:18px}

.project-actions{display:flex;align-items:center;flex-wrap:wrap;gap:18px 24px;margin-top:28px}
.project-external-links{display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin:14px 5px 0}
.project-repo-link{display:inline-flex;align-items:center;gap:8px}
.project-external-links .text-link{font-size:11px}

/* Comfortable reading sizes for descriptions, on both desktop and mobile. */
.hero-intro,.about-copy p,.project-copy>p,.section-heading>p,.project-detail-intro,.project-detail-content p,.contact-top p:not(.eyebrow){font-size:16px;line-height:1.85}
.personal-card p{font-size:14px;line-height:1.8}
.education-school{font-size:15px;line-height:1.75}

/* A short introduction and two quiet interests, without competing headlines. */
.about-section .about-grid{grid-template-columns:minmax(0,.75fr) minmax(0,1.5fr);gap:70px;align-items:start}
.about-section .about-grid>div>.eyebrow{display:none}
.about-section .about-grid h2,html:lang(mn) .about-section .about-grid h2{font-size:clamp(38px,4vw,56px);line-height:1.15;margin-bottom:0}
.about-section .about-copy{max-width:760px}
.about-section .about-copy .about-lead{font-family:var(--body);font-size:18px;font-weight:500;line-height:1.8;margin-bottom:20px}
.about-section .about-copy>p:last-child{margin-bottom:0}
.about-section .personal-collage{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);max-width:1100px;width:100%;gap:22px;margin:48px auto 64px;perspective:none}
.about-section .personal-card{padding:28px;border:0;border-radius:22px;box-shadow:none;transform:none;background:color-mix(in srgb,var(--peach) 38%,var(--cream));color:var(--ink)}
.about-section .personal-card:hover{box-shadow:none;transform:none}
.about-section .learning-card{background:color-mix(in srgb,var(--peach) 20%,var(--cream))}
.about-section .personal-card h3,html:lang(mn) .about-section .personal-card h3{font-size:24px;line-height:1.3;margin:0 0 12px}
.about-section .personal-card p{margin:0;font-size:14px;line-height:1.8;max-width:450px}
.about-section .reading-books{height:auto;margin:22px 0 0}
.language-list{list-style:none;padding:0;margin:20px 0 0;display:grid;gap:12px}
.language-list li{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:8px 0;font-size:15px;font-weight:500}
.language-level{font-size:11px;font-weight:400;padding:4px 11px;border-radius:999px;background:var(--cream)}
.hero-copy>.eyebrow{font-size:12px;line-height:1.7;margin-bottom:24px}
.hero-copy{--hero-title-size:clamp(48px,5.3vw,76px)}
.hero-copy .hero-name-title{font-size:var(--hero-title-size);line-height:1.08;margin-bottom:14px}
.hero-greeting{font-size:1em;font-style:normal;letter-spacing:-.025em}
.hero-personality{font:500 var(--hero-title-size)/1.15 var(--heading);letter-spacing:-.04em;margin:0 0 24px}
html:lang(mn) .hero-personality{font-weight:600;letter-spacing:-.025em}
.hero-copy .hero-intro{max-width:510px;line-height:1.85;margin-bottom:28px}
.toolbox-list h3,html:lang(mn) .toolbox-list h3{font:600 17px/1.4 var(--body);margin:0 0 18px;letter-spacing:0}
.toolbox-list .tool-logo{object-fit:contain}
@media(max-width:700px){.hero-copy{--hero-title-size:clamp(34px,9vw,60px)}.hero-copy>.eyebrow{font-size:11px;margin-bottom:18px}.hero-copy .hero-name-title{font-size:var(--hero-title-size)}.hero-personality{margin-bottom:18px}}
@media(max-width:700px){.about-section .about-grid{grid-template-columns:minmax(0,1fr);gap:24px}.about-section .about-grid h2,html:lang(mn) .about-section .about-grid h2{font-size:38px}.about-section .personal-collage{grid-template-columns:minmax(0,1fr);margin:34px 0 48px;gap:18px}.about-section .personal-card{padding:24px}.about-section .about-copy .about-lead{font-size:17px}}
