@import url('https://fonts.googleapis.com/css2?family=Anton&family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --paper: #edece7;
    --ink: #17171a;
    --muted: #72716e;
    --line: #c9c8c2;
    --accent: #ef392f;
    --scroll-progress: 0;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 85px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'DM Sans', sans-serif; line-height: 1.6; }
h1,h2,h3,h4 { margin-top: 0; font-family: 'Space Grotesk',sans-serif; font-weight: 500; line-height: 1.05; }
p { margin-top: 0; }
a { color: inherit; text-decoration: none; }
button,input { font: inherit; }
button,a,label { -webkit-tap-highlight-color: transparent; }
button,label,a { cursor: pointer; }
img { max-width: 100%; display: block; }
button { border: 0; }
::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.eyebrow { font: 500 10px 'Space Grotesk',sans-serif; text-transform: uppercase; letter-spacing: .12em; }
.site-header { height: 80px; position: fixed; inset: 0 0 auto; z-index: 100; display: flex; justify-content: space-between; align-items: center; padding: 0 4vw; background: rgba(237,236,231,.92); backdrop-filter: blur(12px); border-bottom: 1px solid #17171a1c; }
.site-header:after { content: ''; position: absolute; bottom: -1px; left: 0; height: 2px; width: calc(var(--scroll-progress)*100%); background: var(--accent); }
.brand { display: inline-flex; align-items: center; gap: 7px; font: 700 25px 'Space Grotesk',sans-serif; letter-spacing: -2px; }
.brand-star { color: var(--accent); font-size: 23px; margin-left: 2px; }
.desktop-nav { display: flex; gap: 32px; }
.nav-link { font-size: 11px; position: relative; text-transform: uppercase; letter-spacing: .07em; padding: 7px 0; }
.nav-link[aria-current]:after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: var(--accent); }
.nav-link:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 25px; }
.language-switch { display: flex; align-items: center; gap: 8px; font: 500 10px 'Space Grotesk'; position: relative; }
.language-switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.toggle-track { width: 30px; height: 16px; border: 1px solid #a09f99; border-radius: 20px; position: relative; }
.toggle-track:after { content: ''; position: absolute; left: 3px; top: 3px; height: 8px; width: 8px; background: var(--ink); border-radius: 50%; transition: transform .2s; }
.language-switch input:checked+.toggle-track:after { transform: translateX(14px); background: var(--accent); }
.language-switch input:focus-visible+.toggle-track { outline: 2px solid var(--accent); outline-offset: 4px; }
.menu-button { display: none; padding: 3px; background: transparent; width: 28px; }
.menu-button span { height: 1px; background: var(--ink); display: block; margin: 6px 0; }
.mobile-menu { position: fixed; inset: 0; background: var(--accent); color: var(--paper); height: 100dvh; padding: 110px 7vw; z-index: 120; }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 25px; margin-bottom: 60px; }
.mobile-menu nav a { font-family: 'Anton'; text-transform: uppercase; font-size: clamp(30px,7vw,52px); line-height: 1.1; }
.menu-close { position: absolute; right: 7vw; top: 18px; background: none; color: inherit; font-size: 40px; }
.menu-open,.modal-open { overflow: hidden; }
main { padding-top: 80px; }
.scene-grid,.cover-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(#17171a0c 1px,transparent 1px),linear-gradient(90deg,#17171a0c 1px,transparent 1px); background-size: 8vw 8vw; }
.opening-scene { position: relative; height: 175svh; }
.opening-stage { position: sticky; top: 80px; height: calc(100svh - 80px); min-height: 570px; overflow: hidden; background: #e9e9e4; padding: 30px 4vw; }
.hero-kicker { display: flex; align-items: center; gap: 7px; font: 500 9px 'Space Grotesk'; letter-spacing: .07em; position: relative; z-index: 3; }
.hero-kicker>span:last-child { margin-left: auto; }
.live-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.hero-name { font-family: 'Anton'; font-size: clamp(110px,20.5vw,340px); letter-spacing: -.035em; line-height: .98; text-align: center; margin: 26px 0 0; position: relative; z-index: 1; }
.name-line { display: block; will-change: transform; }
.name-one { transform: translateX(calc(var(--intro-p,0)*-32vw)); }
.name-two { transform: translateX(calc(var(--intro-p,0)*25vw)); }
.name-period { color: var(--accent); }
.orb-stage { position: absolute; top: 48%; left: 50%; width: clamp(230px,35vw,590px); aspect-ratio: 1; z-index: 4; transform: translate(-50%,-50%) translateY(calc(var(--intro-p,0)*12vh)) rotate(calc(-18deg + var(--intro-p,0)*95deg)) scale(calc(1 + var(--intro-p,0)*.7)); will-change: transform; }
.hero-orb { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(12px 25px 12px #17171a27); }
.orb-halo { position: absolute; inset: 3%; border: 1px solid #17171a20; border-radius: 50%; transform: scale(1.27) rotate(20deg); }
.orb-halo:after { content: ''; position: absolute; inset: 18%; border: 1px dashed #17171a25; border-radius: 50%; }
.orb-star { position: absolute; line-height: 1; color: var(--accent); }
.star-one { font-size: 90px; top: -6%; right: -20%; transform: rotate(calc(var(--intro-p,0)*-190deg)); }
.star-two { font-size: 70px; bottom: 10%; left: -25%; }
.orb-caption { position: absolute; right: -45%; bottom: 24%; font: 500 8px 'Space Grotesk'; letter-spacing: .08em; transform: rotate(18deg); background: var(--paper); padding: 4px 9px; border: 1px solid #17171a3d; }
.hero-note { position: absolute; left: 5vw; bottom: 17%; width: 130px; font: 500 12px 'Space Grotesk'; line-height: 1.4; z-index: 5; transform: rotate(-7deg); }
.note-arrow { display: block; font-size: 55px; line-height: 1.3; transform: rotate(20deg); margin-left: 40px; }
.hero-stamp { position: absolute; right: 6vw; bottom: 15%; width: 115px; height: 115px; border: 1px solid var(--ink); border-radius: 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; font: 500 7px 'Space Grotesk'; letter-spacing: .06em; transform: rotate(calc(12deg + var(--intro-p,0)*-65deg)); z-index: 3; }
.opening-bottom { position: absolute; bottom: 25px; left: 4vw; right: 4vw; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #17171a40; padding-top: 20px; font: 500 9px 'Space Grotesk'; letter-spacing: .07em; z-index: 7; }
.scroll-cue { display: flex; align-items: center; gap: 25px; }
.scroll-cue>span:last-child { font-size: 20px; line-height: .5; }
.bio-scene { background: var(--ink); color: var(--paper); padding: 90px 7vw 110px; position: relative; overflow: hidden; }
.bio-heading { display: flex; align-items: baseline; gap: 40px; border-bottom: 1px solid #ffffff30; padding-bottom: 20px; margin-bottom: 75px; }
.bio-heading h2 { font-family: 'Anton'; font-size: clamp(60px,8vw,125px); text-transform: uppercase; margin: 0; letter-spacing: -.015em; }
.bio-heading .eyebrow { white-space: nowrap; }
.bio-star { margin-left: auto; font-size: 60px; color: var(--accent); }
.bio-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 8vw; align-items: start; }
.bio-text { font: 500 clamp(22px,2.35vw,38px)/1.55 'Space Grotesk'; letter-spacing: -.025em; }
.bio-word { color: #ffffff42; transition: color .12s; }
.bio-word.is-read { color: var(--paper); }
.bio-text strong { font-weight: 500; color: var(--accent); }
.bio-text strong .is-read { color: #ff675e; }
.text-link { display: inline-flex; gap: 35px; align-items: center; font-size: 12px; border-bottom: 1px solid currentColor; padding: 15px 0 8px; }
.portrait-cutout { position: sticky; top: 120px; margin: 0; padding: 14px 14px 55px; background: #d8d7cc; color: var(--ink); transform: rotate(6deg) translateY(calc(var(--bio-p,0)*-60px)); box-shadow: 15px 20px 0 #0002; }
.hero-portrait { width: 100%; height: 360px; object-fit: cover; object-position: 65% 22%; filter: grayscale(1); }
.portrait-cutout figcaption { position: absolute; left: 15px; bottom: 13px; font: 500 8px/1.6 'Space Grotesk'; letter-spacing: .08em; }
.portrait-pin { position: absolute; top: -33px; right: 20px; color: var(--accent); font-size: 65px; line-height: 1; }
.portrait-pokemon { position: absolute; width: 125px; right: -35px; bottom: -35px; image-rendering: pixelated; transform: rotate(-6deg); }
.story-chapter { position: relative; height: 155svh; }
.chapter-stage { height: calc(100svh - 80px); min-height: 650px; position: sticky; top: 80px; overflow: hidden; padding: 35px 5vw 55px; isolation: isolate; }
.scene-1 { background: #b7b8e9; color: #252333; }
.scene-2 { background: #eb482d; color: #291d18; }
.scene-3 { background: #b8d4c9; color: #182e2c; }
.scene-4 { background: #efe3c4; color: #422b26; }
.scene-5 { background: #212039; color: #e0dff3; }
.scene-coordinate { position: absolute; top: 30px; right: 5vw; font: 500 9px 'Space Grotesk'; letter-spacing: .09em; }
.chapter-label { font: 500 9px 'Space Grotesk'; letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: 20px; }
.chapter-title { font-family: 'Anton'; text-transform: uppercase; font-size: clamp(65px,11.8vw,200px); line-height: 1; margin: 0; white-space: nowrap; letter-spacing: -.018em; transform: translateX(calc(var(--scene-p,0)*-4vw)); position: relative; z-index: 2; }
.chapter-title i { display: none; }
.chapter-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center; position: relative; z-index: 3; height: calc(100% - 200px); }
.chapter-copy { transform: translateY(calc((1 - var(--scene-p,0))*20px)); }
.chapter-content ul { list-style: none; padding: 0; margin: 0; }
.chapter-content li { font: 500 clamp(17px,2vw,29px)/1.5 'Space Grotesk'; padding: 10px 0; border-bottom: 1px solid currentColor; }
.chapter-content p { font: 500 clamp(24px,3.3vw,50px)/1.25 'Space Grotesk'; letter-spacing: -.045em; max-width: 570px; }
.scene-1 .chapter-content ul { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 30px; }
.scene-1 .chapter-content li { font-size: clamp(22px,2.7vw,45px); border-bottom: 1px solid #25233333; }
.scene-3 .chapter-content li { padding: 18px 0; font-size: clamp(16px,1.8vw,27px); }
.scene-4 .chapter-content ul { display: flex; flex-wrap: wrap; gap: 15px 12px; }
.scene-4 .chapter-content li { padding: 12px 22px; border: 1px solid currentColor; border-radius: 50%; font-size: clamp(15px,1.5vw,23px); }
.scene-4 .chapter-content li:nth-child(2n) { transform: rotate(-6deg); }
.scene-4 .chapter-content li:nth-child(3n) { transform: rotate(8deg); }
.chapter-art { height: 100%; min-height: 330px; position: relative; display: flex; align-items: center; justify-content: center; }
.scene-pokemon { width: clamp(180px,23vw,390px); max-height: 75%; object-fit: contain; image-rendering: pixelated; position: relative; z-index: 3; transform: translateY(calc((.5 - var(--scene-p,0))*85px)) rotate(calc((var(--scene-p,0) - .5)*16deg)); filter: drop-shadow(15px 18px 0 #17171a18); }
.scene-5 .scene-pokemon { width: clamp(220px,34vw,510px); }
.journey-line { position: absolute; width: 110%; max-width: 620px; height: 100%; opacity: .45; overflow: visible; }
.journey-line path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 1500; stroke-dashoffset: calc(1500 - var(--scene-p,0)*1800); }
.journey-line circle { fill: currentColor; }
.art-asterisk { position: absolute; font-size: 290px; line-height: 1; color: currentColor; opacity: .12; transform: rotate(calc(var(--scene-p,0)*90deg)); }
.scene-2 .art-asterisk { font-size: 430px; }
.art-caption { position: absolute; right: 0; bottom: 15%; font: 500 9px 'Space Grotesk'; text-transform: uppercase; border: 1px solid currentColor; padding: 4px 10px; transform: rotate(-8deg); z-index: 4; }
.scene-number { position: absolute; bottom: -75px; left: -15px; font: 400 400px/.9 'Anton'; letter-spacing: -.02em; -webkit-text-stroke: 1px currentColor; color: transparent; opacity: .1; z-index: -1; }
.scene-bottom { position: absolute; bottom: 20px; left: 5vw; right: 5vw; display: flex; justify-content: space-between; align-items: center; font: 500 8px 'Space Grotesk'; letter-spacing: .1em; text-transform: uppercase; padding-top: 18px; border-top: 1px solid #17171a25; }
.scene-5 .scene-bottom { border-color: #ffffff30; }
.home-next { position: relative; background: var(--accent); color: var(--paper); padding: 80px 5vw 65px; overflow: hidden; min-height: 75svh; }
.home-next>a { display: flex; justify-content: space-between; align-items: center; font: 400 clamp(55px,12vw,180px)/1.05 'Anton'; text-transform: uppercase; letter-spacing: -.02em; position: relative; z-index: 2; max-width: 95%; margin-top: 45px; }
.next-arrow { font-family: 'Space Grotesk'; font-size: 120px; }
.next-meta { display: flex; justify-content: space-between; gap: 20px; margin-top: 100px; border-top: 1px solid #ffffff50; padding-top: 20px; font: 500 8px 'Space Grotesk'; letter-spacing: .06em; position: relative; z-index: 2; }
.next-pokemon { position: absolute; right: 13%; top: 12%; width: 125px; image-rendering: pixelated; transform: rotate(12deg); }
.next-pokemon-two { right: 34%; top: auto; bottom: 18%; width: 150px; transform: rotate(-8deg); }
.work-main,.skills-main,.case-main { padding-top: 80px; }
.page-hero { min-height: 72svh; padding: 45px 5vw; position: relative; border-bottom: 1px solid var(--line); overflow: hidden; background-image: linear-gradient(#17171a08 1px,transparent 1px),linear-gradient(90deg,#17171a08 1px,transparent 1px); background-size: 8vw 8vw; }
.page-hero h1 { font: 400 clamp(65px,13vw,210px)/1.05 'Anton'; text-transform: uppercase; letter-spacing: -.02em; margin: 65px 0 90px; max-width: 90%; position: relative; z-index: 2; overflow-wrap: anywhere; }
.page-hero-bottom { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 20px; font: 500 9px 'Space Grotesk'; border-top: 1px solid #17171a40; padding-top: 20px; }
.page-hero-bottom img { width: 32px; height: 32px; image-rendering: pixelated; transform: rotate(calc(var(--scroll-progress)*400deg)); }
.page-art-mark { position: absolute; right: 1%; top: 60px; font-size: 400px; line-height: 1; color: var(--accent); opacity: .85; transform: rotate(-12deg); }
.work-gallery { background: #262437; color: var(--paper); position: relative; }
.gallery-stage { height: calc(100svh - 80px); min-height: 650px; position: sticky; top: 80px; padding: 25px 0; overflow: hidden; display: flex; flex-direction: column; }
.gallery-top,.gallery-bottom { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding: 0 5vw; font: 500 9px 'Space Grotesk'; text-transform: uppercase; letter-spacing: .1em; }
.gallery-top { margin-bottom: 30px; }
.gallery-bottom { margin-top: auto; padding-top: 25px; }
.gallery-progress { height: 1px; flex: 1; background: #ffffff30; max-width: 60%; }
.gallery-progress>span { display: block; width: calc(var(--gallery-p,0)*100%); height: 1px; background: var(--accent); }
.project-viewport { overflow: hidden; flex: 1; min-height: 0; display: flex; align-items: stretch; }
.project-list { display: flex; width: max-content; height: 100%; min-height: 0; gap: 4vw; padding: 0 5vw; transform: translateX(calc(var(--gallery-x,0px)*-1)); will-change: transform; }
.project-card { width: 54vw; max-width: 760px; flex-shrink: 0; height: 100%; min-height: 0; display: flex; flex-direction: column; position: relative; }
.project-image { background: #c1bde5; flex: 0 0 auto; width: 100%; height: clamp(190px, 36svh, 320px); min-height: 0; padding: 0; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.project-card:nth-child(3n+2) .project-image { background: #d6e5cf; }
.project-card:nth-child(3n) .project-image { background: #eb8f68; }
.project-image:before { content: attr(data-number); position: absolute; left: -15px; bottom: -45px; font: 400 240px/1 'Anton'; color: #17171a15; }
.project-image img { position: absolute; inset: 20px 30px; width: calc(100% - 60px); height: calc(100% - 40px); object-fit: contain; z-index: 1; transition: transform .4s; filter: drop-shadow(0 15px 13px #17171a20); }
.project-image:hover img { transform: scale(1.025) rotate(-1deg); }
.project-info { position: relative; padding: 22px 0 0; }
.project-info>.eyebrow { position: absolute; right: 0; top: 29px; font-size: 8px; }
.project-info h2 { font: 400 clamp(25px,3.4vw,54px)/1.1 'Anton'; text-transform: uppercase; margin: 0 65px 15px 0; }
.project-info .project-description { font-size: 12px; line-height: 1.65; max-width: 65%; margin-bottom: 10px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; }
.project-tags span { font: 500 8px 'Space Grotesk'; color: #d1ccd9; text-transform: uppercase; }
.project-info .text-link { position: absolute; right: 0; bottom: 5px; font-size: 10px; gap: 16px; }
.skills-main .page-art-mark { color: #777ab7; }
.skill-groups { display: grid; grid-template-columns: 1fr 1fr; padding: 75px 5vw; gap: 0; counter-reset: skills; }
.skill-group { padding: 40px 45px 60px; position: relative; border: 1px solid var(--ink); background: #b7b8e9; overflow: hidden; }
.skill-group:nth-child(2) { background: #ed653b; }
.skill-group:nth-child(3) { background: #c4d8cb; }
.skill-group:nth-child(4) { background: #e5dbb9; }
.skill-group:nth-child(5) { background: #242337; color: var(--paper); grid-column: 1/-1; }
.skill-group:before { content: attr(data-index); display: block; font: 500 10px 'Space Grotesk'; margin-bottom: 20px; }
.skill-group>div:first-child { border-bottom: 0; padding-bottom: 15px; position: relative; z-index: 1; }
.skill-group>div:first-child>i { display: none; }
.skill-group h2 { font-family: 'Anton'; text-transform: uppercase; font-size: clamp(35px,4vw,60px); margin: 0 0 20px; color: inherit; }
.skill-group .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 25px; }
.skill-item { display: flex; gap: 12px; align-items: center; padding: 18px 0; border-bottom: 1px solid #17171a40; position: relative; z-index: 1; }
.skill-item i { font-size: 23px; width: 27px; }
.skill-item p { font: 500 14px 'Space Grotesk'; margin: 0; }
.skill-asterisk { position: absolute; right: -50px; bottom: -70px; font-size: 300px; opacity: .1; line-height: 1; transform: rotate(calc(var(--scroll-progress)*150deg)); }
.experience-section { padding: 80px 8vw 100px; background: #dad8d0; }
.experience-section>div { max-width: 1000px; margin: auto; }
.experience-section h2 { font-family: 'Anton'; text-transform: uppercase; color: var(--ink); font-size: clamp(40px,6vw,90px); text-align: left; margin-bottom: 50px; }
.experience-section h3 { font-size: 26px; color: var(--ink); margin-top: 40px; }
.experience-section p,.experience-section li { font-size: 16px; line-height: 1.9; }
.experience-section .bg-blue-50 { background: #ed653b; border-color: var(--ink); color: var(--ink); box-shadow: none; border-radius: 0; padding: 30px; margin: 40px 0; }
.experience-section .bg-blue-50 strong { color: var(--ink); }
.case-hero { padding-bottom: 0; min-height: 100svh; }
.case-hero h1 { margin: 65px 0 55px; font-size: clamp(58px,10.5vw,165px); max-width: 90%; }
.case-hero-mark { position: absolute; right: 3%; top: 70px; font-size: 200px; line-height: 1; color: var(--accent); transform: rotate(-12deg); opacity: .8; }
.case-cover { position: relative; height: 75svh; background: #b7b8e9; display: flex; align-items: center; justify-content: center; padding: 55px; margin-top: 45px; overflow: hidden; }
.case-cover img { max-width: 80%; width: auto; height: 95%; object-fit: contain; filter: drop-shadow(0 15px 20px #17171a30); transform: rotate(-4deg) scale(calc(.85 + var(--cover-p,0)*.15)); z-index: 2; }
.cover-index { position: absolute; left: 25px; top: 25px; font: 500 9px 'Space Grotesk'; }
.cover-plus { position: absolute; right: 25px; bottom: 25px; font: 400 50px 'Space Grotesk'; }
body[data-page=ifcc] .case-cover,body[data-page=meerkatgaming] .case-cover { background: #e86243; }
body[data-page=spinshare] .case-cover,body[data-page=game] .case-cover { background: #c4d8cb; }
body[data-page=resbeijer] .case-cover,body[data-page=animecollection] .case-cover { background: #e5dbb9; }
.case-body { padding: 85px 5vw 0; }
.case-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 7vw; align-items: start; }
.case-media { position: sticky; top: 115px; min-width: 0; padding: 30px; background: #17171a; color: var(--paper); display: flex; flex-direction: column; align-items: center; gap: 25px; }
.case-media>.chat-preview { width: 100%; overflow: hidden; }
.case-media .chat-preview img { width: 100%; height: auto; max-height: 55svh; object-fit: contain; }
.case-media .map-preview img { max-height: calc(100svh - 220px); object-fit: contain; }
.case-media>div:has(>#appSlider) { width: min(300px,calc((100svh - 210px)*.46)); }
.case-media>div:not(.chat-preview) { max-width: 100%; }
.case-media .pt-4 { display: flex; flex-wrap: wrap; width: 100%; gap: 12px; padding: 0; }
.case-media a,.case-media button[onclick],.case-chapter a,.case-chapter button[onclick] { background: var(--accent); color: var(--paper); padding: 12px 17px; font-size: 11px; border-radius: 0; }
.case-media a:nth-child(2) { background: var(--paper); color: var(--ink); }
.case-narrative { min-width: 0; }
.case-chapter { padding: 45px 0 65px; min-height: 45svh; border-bottom: 1px solid var(--line); }
.case-chapter:first-child { padding-top: 0; }
.case-chapter:before { content: attr(data-index); display: block; font: 400 60px/1 'Anton'; color: var(--accent); margin-bottom: 25px; }
.case-chapter h2,.case-chapter h3,.case-highlights h3 { font: 400 clamp(28px,3vw,45px)/1.1 'Anton'; text-transform: uppercase; color: var(--ink)!important; }
.case-chapter p,.case-chapter li,.case-highlights p { font-size: 14px; line-height: 1.9; color: #62615e; }
.case-chapter h4 { font-size: 17px; }
.case-chapter span.bg-blue-100 { background: #dbd9d0; color: var(--ink); border-radius: 0; font: 500 11px 'Space Grotesk'; padding: 8px 12px; }
.feature-icon { width: 35px; height: 35px; flex-shrink: 0; background: var(--accent); color: var(--paper); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.case-highlights { padding: 65px 0; border-bottom: 1px solid var(--line); }
.case-highlights>div.grid>div { background: #dddbd2; padding: 30px; border-radius: 0; }
.case-highlights:last-child { padding: 40px 0 60px; }
.case-highlights>a { color: var(--ink); font-size: 14px; }
#appSlider { display: flex; width: 100%; transition: transform .5s; }
#appSlider img { width: 100%; min-width: 100%; flex-shrink: 0; }
#sliderPrev,#sliderNext { opacity: 1; }
#sliderDotsContainer button { opacity: .4; }
#sliderDotsContainer button[aria-current=true] { opacity: 1; }
#videoModal { position: fixed; inset: 0; z-index: 200; background: #111018f5; padding: 70px 20px 20px; overflow-y: auto; }
#videoModal.hidden,#videoModal[hidden] { display: none!important; }
#videoModal:not(.hidden):not([hidden]) { display: flex; align-items: center; justify-content: center; }
.video-dialog { position: relative; width: 100%; max-width: 1000px; }
#videoModal video { display: block; width: 100%; max-height: calc(100dvh - 110px); background: #000; }
#videoModal .video-close { position: absolute; right: 0; top: -55px; width: 44px; height: 44px; background: var(--paper); color: var(--ink); font-size: 32px; line-height: 1; z-index: 201; }
.project-video-link { display: inline-flex; align-items: center; gap: 8px; }
.site-footer { background: var(--ink); color: var(--paper); padding: 60px 5vw 0; overflow: hidden; }
.footer-top { padding-bottom: 55px; }
.footer-top>p { font-size: 12px; color: #b1b0ab; margin-bottom: 25px; }
.contact-link { font: 500 clamp(20px,4.2vw,67px)/1.2 'Space Grotesk'; letter-spacing: -.04em; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.contact-link>span { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; align-items: center; padding: 25px 0 0; border-top: 1px solid #ffffff30; font: 500 9px 'Space Grotesk'; }
.socials { display: flex; gap: 25px; }
.footer-wordmark { font: 400 17vw/1 'Anton'; letter-spacing: -.035em; white-space: nowrap; color: var(--accent); margin-top: 55px; transform: translateY(7%); }
.footer-wordmark>span { font-family: 'Space Grotesk'; margin-left: 2vw; }
.reveal { opacity: 1; }
.motion-ready .reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s,transform .7s; }
.motion-ready .reveal.visible { opacity: 1; transform: none; }
.cursor-ring { position: fixed; top: 0; left: 0; border: 1px solid var(--accent); width: 32px; height: 32px; border-radius: 50%; pointer-events: none; z-index: 300; transform: translate(-100px,-100px); opacity: 0; transition: width .15s,height .15s,background .15s,opacity .15s; }
.cursor-ring.is-visible { opacity: 1; }
.cursor-ring.over-link { width: 54px; height: 54px; background: #ef392f18; }
/* Every scene still reads naturally if scripts are disabled. */
.no-scroll-scenes .opening-scene,.no-scroll-scenes .story-chapter { height: auto; }
.no-scroll-scenes .project-list { flex-wrap: wrap; width: 100%; height: auto; transform: none; }
.no-scroll-scenes .project-card { width: 100%; }
.no-scroll-scenes .gallery-stage { height: auto; position: relative; }
@media(min-width:1800px) {
    .hero-name { font-size: 20.5vw; }
    .orb-stage { width: 35vw; }
    .chapter-stage { padding-left: 7vw; padding-right: 7vw; }
}
@media(max-height:740px) and (min-width:768px) {
    .opening-stage { min-height: 540px; }
    .hero-name { font-size: 17.5vw; line-height: .95; margin-top: 25px; }
    .orb-stage { width: 31vw; top: 47%; }
    .chapter-stage { min-height: 590px; }
    .chapter-title { font-size: 10vw; }
    .chapter-layout { height: calc(100% - 165px); }
    .chapter-content li { padding: 7px 0; font-size: 20px; }
    .scene-1 .chapter-content li { font-size: 27px; }
    .gallery-stage { min-height: 570px; }
    .project-image { height: clamp(180px, 32svh, 250px); }
    .project-info h2 { font-size: 30px; margin-bottom: 9px; }
    .project-info .project-description { font-size: 11px; }
}
@media(max-width:1000px) {
    .hero-name { font-size: 21vw; }
    .hero-note { width: 115px; font-size: 10px; }
    .hero-stamp { width: 95px; height: 95px; font-size: 6px; }
    .hero-portrait { height: 300px; }
    .bio-layout { gap: 6vw; }
    .chapter-content li { font-size: 18px; }
    .scene-1 .chapter-content li { font-size: 25px; }
    .chapter-title { font-size: 10.5vw; }
    .project-card { width: 62vw; }
    .project-info .project-description { max-width: 70%; }
    .case-layout { gap: 4vw; }
    .skill-group { padding: 30px; }
}
@media(max-width:767px) {
    html { scroll-padding-top: 65px; }
    .site-header { height: 64px; padding: 0 6vw; }
    .brand { font-size: 24px; }
    .desktop-nav { display: none; }
    .menu-button { display: block; }
    .header-actions { gap: 22px; }
    main,.work-main,.skills-main,.case-main { padding-top: 64px; }
    .scene-grid,.cover-grid { background-size: 18vw 18vw; }
    .opening-scene { height: 135svh; }
    .opening-stage { top: 64px; height: calc(100svh - 64px); min-height: 570px; padding: 28px 6vw; }
    .hero-kicker { font-size: 6.5px; }
    .hero-kicker>span:last-child { display: none; }
    .hero-name { font-size: 28vw; margin-top: 95px; line-height: 1.1; }
    .orb-stage { width: 60vw; top: 48%; }
    .orb-caption { font-size: 6px; right: -25%; bottom: 5%; }
    .star-one { font-size: 50px; right: -12%; }
    .star-two { font-size: 40px; left: -17%; }
    .hero-note { left: 7vw; bottom: 19%; width: 120px; font-size: 11px; }
    .note-arrow { font-size: 35px; }
    .hero-stamp { right: 6vw; bottom: 17%; width: 85px; height: 85px; }
    .hero-stamp img { width: 17px; height: 17px; }
    .opening-bottom { bottom: 22px; left: 6vw; right: 6vw; font-size: 7px; }
    .intro-index { display: none; }
    .bio-scene { padding: 60px 6vw 90px; }
    .bio-heading { gap: 20px; margin-bottom: 35px; align-items: center; }
    .bio-heading h2 { font-size: clamp(34px,11vw,65px); }
    .bio-heading .eyebrow { font-size: 7px; }
    .bio-star { font-size: 35px; }
    .bio-layout { display: flex; flex-direction: column; gap: 60px; }
    .bio-text { font-size: 23px; line-height: 1.65; }
    .portrait-cutout { width: 75%; margin: 0 auto; position: relative; top: auto; }
    .hero-portrait { height: 330px; }
    .portrait-pokemon { width: 95px; }
    .story-chapter { height: auto; }
    .chapter-stage { position: relative; top: auto; height: auto; min-height: 100svh; padding: 35px 6vw 65px; }
    .scene-coordinate { right: 6vw; font-size: 7px; }
    .chapter-label { margin-bottom: 30px; font-size: 8px; }
    .chapter-title { font-size: clamp(36px,9.5vw,72px); white-space: normal; overflow-wrap: anywhere; transform: none; line-height: 1.1; }
    .chapter-layout { display: flex; flex-direction: column-reverse; gap: 10px; height: auto; }
    .chapter-art { min-height: 260px; width: 100%; height: 290px; }
    .scene-pokemon { width: 200px; max-height: 240px; }
    .scene-5 .scene-pokemon { width: 270px; }
    .art-asterisk { font-size: 220px; }
    .scene-2 .art-asterisk { font-size: 280px; }
    .journey-line { width: 90%; height: 100%; }
    .art-caption { bottom: 10%; right: 5%; font-size: 7px; }
    .chapter-copy { width: 100%; transform: none; }
    .chapter-content li { font-size: 18px; padding: 11px 0; }
    .chapter-content p { font-size: 30px; }
    .scene-1 .chapter-content ul { gap: 15px 20px; }
    .scene-1 .chapter-content li { font-size: 23px; }
    .scene-3 .chapter-content li { font-size: 17px; }
    .scene-4 .chapter-content li { font-size: 16px; }
    .scene-number { font-size: 260px; bottom: -50px; opacity: .08; }
    .scene-bottom { font-size: 6px; left: 6vw; right: 6vw; }
    .home-next { min-height: 65svh; padding: 55px 6vw 40px; }
    .home-next>a { font-size: 14vw; margin-top: 65px; }
    .next-arrow { font-size: 65px; }
    .next-meta { flex-direction: column; gap: 18px; margin-top: 90px; font-size: 7px; }
    .next-pokemon { width: 90px; right: 15%; top: 9%; }
    .next-pokemon-two { width: 100px; right: 33%; bottom: 23%; }
    .page-hero { min-height: 60svh; padding: 40px 6vw; }
    .page-hero h1 { font-size: 17vw; margin: 70px 0 70px; max-width: 100%; }
    .page-hero-bottom { font-size: 8px; gap: 10px; }
    .page-hero-bottom img { width: 24px; height: 24px; }
    .page-art-mark { font-size: 190px; top: 65px; right: 0; opacity: .5; }
    .work-gallery { height: auto!important; }
    .gallery-stage { height: auto; min-height: 0; position: relative; top: auto; padding-top: 35px; overflow: visible; }
    .gallery-top { margin-bottom: 35px; padding: 0 6vw; font-size: 7px; }
    .project-viewport { display: block; overflow: visible; }
    .project-list { display: block; width: 100%; height: auto; padding: 0 6vw; transform: none; }
    .project-card { width: 100%; height: auto; margin-bottom: 55px; }
    .project-image { height: 240px; min-height: 0; padding: 0; }
    .project-info { padding-top: 20px; }
    .project-info h2 { font-size: 32px; margin: 0 30px 15px 0; }
    .project-info>.eyebrow { top: 25px; font-size: 7px; }
    .project-info .project-description { max-width: 100%; font-size: 13px; }
    .project-info .text-link { position: relative; right: auto; bottom: auto; font-size: 11px; }
    .project-tags { gap: 10px; margin-bottom: 15px; }
    .gallery-bottom { padding: 0 6vw 30px; font-size: 7px; }
    .gallery-progress { display: none; }
    .skill-groups { grid-template-columns: 1fr; padding: 45px 6vw; }
    .skill-group { padding: 30px 25px 45px; }
    .skill-group h2 { font-size: 40px; }
    .skill-group .grid { gap: 0 20px; }
    .skill-item p { font-size: 12px; }
    .skill-item { gap: 8px; }
    .experience-section { padding: 55px 6vw; }
    .experience-section h2 { font-size: 44px; }
    .experience-section p,.experience-section li { font-size: 14px; }
    .experience-section h3 { font-size: 23px; }
    .case-hero { padding-bottom: 0; }
    .case-hero h1 { font-size: 16vw; margin: 55px 0; }
    .case-hero-mark { font-size: 160px; top: 55px; right: -15px; opacity: .4; }
    .case-cover { margin-top: 40px; height: 60svh; padding: 25px; }
    .case-cover img { max-width: 100%; max-height: 95%; }
    .case-body { padding: 50px 6vw 0; }
    .case-layout { display: flex; flex-direction: column; gap: 40px; }
    .case-media { position: relative; top: auto; width: 100%; padding: 25px; }
    .case-media>div:has(>#appSlider) { width: min(300px,100%); }
    .case-media .map-preview img { max-height: 65svh; }
    .case-narrative { width: 100%; }
    .case-chapter { padding: 35px 0 50px; min-height: 0; }
    .case-chapter:before { font-size: 45px; }
    .case-chapter .grid-cols-2 { grid-template-columns: 1fr; }
    .case-chapter h2,.case-chapter h3,.case-highlights h3 { font-size: 33px; }
    .case-highlights { padding: 40px 0; }
    .site-footer { padding: 50px 6vw 0; }
    .footer-top { padding-bottom: 40px; }
    .footer-bottom { flex-wrap: wrap; justify-content: flex-start; gap: 20px; font-size: 8px; }
    .footer-bottom .socials { margin-left: auto; }
    .footer-bottom>a:last-child { width: 100%; }
    .footer-wordmark { font-size: 16vw; margin-top: 40px; }
    .cursor-ring { display: none; }
}
@media(prefers-reduced-motion:reduce) {
    html { scroll-behavior: auto; }
    *,*:before,*:after { animation: none!important; transition: none!important; }
    .opening-scene,.story-chapter { height: auto; }
    .opening-stage,.chapter-stage { position: relative; top: auto; }
    .name-line,.orb-stage,.scene-pokemon,.chapter-copy,.chapter-title,.portrait-cutout,.case-cover img { transform: none; }
    .orb-stage { transform: translate(-50%,-50%) rotate(-18deg); }
    .bio-word { color: var(--paper); }
    .gallery-stage { position: relative; top: auto; height: auto; }
    .work-gallery { height: auto!important; }
    .project-list { flex-wrap: wrap; width: 100%; height: auto; transform: none; }
    .project-card { width: 100%; height: auto; margin-bottom: 50px; }
    .project-image { height: clamp(190px, 36svh, 320px); }
    .motion-ready .reveal { opacity: 1; transform: none; }
    .cursor-ring { display: none; }
}
.no-scroll-scenes .opening-stage,.no-scroll-scenes .chapter-stage{position:relative;top:auto}
.no-scroll-scenes .gallery-stage{padding:40px 0}
.no-scroll-scenes .project-image{height:clamp(190px,36svh,320px)}
.no-scroll-scenes .project-card{margin-bottom:60px}
@media(max-width:767px){.orb-caption{right:-12%;font-size:5.5px}}
.journey-nav{position:fixed;right:1.6vw;top:50%;transform:translateY(-50%);z-index:80;display:flex;flex-direction:column;gap:18px;opacity:0;visibility:hidden;transition:opacity .25s;color:var(--ink)}
.reading-story .journey-nav{opacity:1;visibility:visible}
.journey-nav a{position:relative;display:flex;align-items:center;gap:8px;font:500 7px 'Space Grotesk';padding:4px}
.journey-stop{border:1px solid currentColor;width:23px;height:23px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--paper)}
.journey-nav a[aria-current] .journey-stop{background:var(--ink);color:var(--paper)}
.journey-tooltip{position:absolute;right:35px;white-space:nowrap;background:var(--paper);padding:3px 8px;opacity:0;pointer-events:none}
.journey-nav a:hover .journey-tooltip,.journey-nav a:focus-visible .journey-tooltip{opacity:1}
@media(max-width:767px){.journey-nav{display:none}}
/* Keyboard focus uses the same vertical journey as wheel and touch input. */
@media(min-width:768px){.project-viewport{overflow:clip}}
@media(prefers-reduced-motion:reduce){.journey-line path{stroke-dashoffset:0}}

/* The disc's colour fills the viewport, then dissolves into the case study. */
.cd-navigation-color { position: fixed; inset: 0; z-index: 600; pointer-events: all; visibility: visible; }
html.cd-arriving body { visibility: hidden; }
html.cd-arriving { background: var(--cd-arrival-color,var(--paper)); }
