/* Eight worlds. Shared controls, individual art direction. */
.story-controls{display:flex;justify-content:space-between;align-items:center;gap:25px;margin:36px 0 0;font:10px ui-monospace,monospace}
.story-chapters{display:flex;gap:24px;flex-wrap:wrap}
.story-chapters button{padding:12px 0;color:#a8b39a;border-bottom:1px solid transparent}
.story-chapters button[aria-pressed=true]{color:var(--lime);border-color:var(--lime)}
#story-explore{display:flex;align-items:center;gap:20px;padding:12px 0;white-space:nowrap;color:var(--paper)}
.project-theatre{--world-bg:#242424;--world-ink:#efeee7;--world-accent:#b9bcc0;--demo-w:73%;--demo-x:58%;--note-x:3%;--note-w:18%;--demo-h:70%;height:clamp(610px,48vw,790px);margin:25px 0 30px;background:var(--world-bg);color:var(--world-ink);overflow:hidden;perspective:1400px;transition:background .5s;isolation:isolate;border:1px solid #ffffff15}
.project-theatre .film-ghost{display:none}
.story-canvases,.story-panel,.story-identity{position:absolute;inset:0;overflow:hidden}
.story-identity{color:var(--world-ink);background:var(--world-bg);transition:width .7s var(--ease),clip-path .7s var(--ease)}
.story-piece{position:absolute;overflow:hidden;will-change:transform;inset:7% 5% 7% 47%}
.story-piece img{width:100%;height:100%;object-fit:cover}
.story-eyebrow,.story-signoff{position:absolute;left:4%;top:6%;font:9px ui-monospace,monospace;letter-spacing:.05em;z-index:4}
.story-signoff{top:auto;bottom:6%;font-size:8px}
.story-headline{position:absolute;left:5%;right:5%;top:30%;font-size:clamp(65px,7.6vw,124px);line-height:.9;z-index:3;letter-spacing:-.065em;pointer-events:none}
.story-headline>span,.story-headline>em{display:block}.story-headline>em{font-size:1.1em}
.story-reason{position:absolute;top:0;bottom:0;right:0;width:43%;padding:10% 5% 8%;display:flex;flex-direction:column;justify-content:center;background:var(--world-bg);color:var(--world-ink);opacity:0;visibility:hidden;transform:translateX(35px);transition:opacity .45s,transform .7s var(--ease),visibility .7s;z-index:5;border-left:1px solid color-mix(in srgb,var(--world-ink) 18%,transparent)}
.story-reason>span{font:8px ui-monospace,monospace;letter-spacing:.06em;opacity:.6;margin-bottom:25px}
.story-reason h3{font-size:clamp(30px,3.1vw,48px);line-height:1.05;letter-spacing:-.045em;margin-bottom:22px}
.story-reason>p{font-size:13px;line-height:1.7;max-width:360px}
.story-palette{display:flex;align-items:center;gap:6px;margin-top:30px;flex-wrap:wrap}
.story-palette>i{width:20px;height:20px;border:1px solid #8885;display:block}
.story-palette>span{width:100%;font:7px ui-monospace,monospace;letter-spacing:.03em;margin-top:7px;opacity:.65}
.story-reason>a{align-self:flex-start;display:flex;gap:25px;font-size:10px;border-bottom:1px solid currentColor;margin-top:30px;padding-bottom:6px}
[data-chapter=thinking] .story-reason{opacity:1;visibility:visible;transform:none}
[data-chapter=thinking] .story-identity{width:57%}
[data-chapter=thinking] .story-headline{font-size:clamp(45px,4.5vw,75px);top:37%;left:7%}
[data-chapter=thinking] .story-piece{inset:14% 7% 14% 19%}
[data-chapter=thinking] .story-eyebrow{left:7%;font-size:8px;max-width:80%;line-height:1.5}
[data-chapter=thinking] .story-signoff{left:7%;font-size:7px}
[data-chapter=website] .story-canvases{visibility:hidden;opacity:0;pointer-events:none}
.project-theatre .live-aperture{left:var(--demo-x);top:49%;width:var(--demo-w);height:var(--demo-h);aspect-ratio:auto;transform:translate(-50%,-50%);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .6s,transform .8s var(--ease),visibility .6s;background:var(--world-bg);box-shadow:0 25px 60px #0002}
.project-theatre[data-chapter=website] .live-aperture{opacity:1;visibility:visible;pointer-events:auto;animation:website-unfold .8s var(--ease) both}
.project-theatre .live-frames{color:var(--world-accent);inset:-5px}.project-theatre .live-frames i{border-color:currentColor;opacity:.6}.project-theatre .live-frames i:nth-child(2){inset:-6px;opacity:.3;transform:none}.project-theatre .live-frames i:nth-child(3){inset:-12px;opacity:.14;transform:none}
.project-theatre .aperture-shutter{display:none}
.project-theatre #enter-project>span{background:var(--world-accent);color:var(--world-bg);font-size:9px;padding:13px}
.project-theatre .film-arrows{top:auto;bottom:18px;right:24px;left:auto;width:auto;padding:0;gap:8px;z-index:20}
.project-theatre .film-arrows button{width:34px;height:34px;border:1px solid currentColor;color:var(--world-ink);background:var(--world-bg);backdrop-filter:none}
.project-theatre .film-arrows button:hover{background:var(--world-ink);color:var(--world-bg)}
.story-demo-note{position:absolute;left:var(--note-x);top:27%;width:var(--note-w);opacity:0;visibility:hidden;z-index:8;transform:translateY(20px);transition:opacity .6s,transform .6s var(--ease),visibility .6s}
[data-chapter=website] .story-demo-note{opacity:1;visibility:visible;transform:none}
.story-demo-note>span:first-child{font:7px/1.5 ui-monospace,monospace;letter-spacing:.03em;opacity:.6;display:block;margin-bottom:25px}
.story-demo-note>h3{font-size:clamp(28px,3vw,46px);line-height:1;margin-bottom:20px}
.story-demo-note>p{font-size:11px;line-height:1.65}
.story-demo-hint{display:flex;font:7px/1.5 ui-monospace,monospace;gap:12px;margin-top:25px;opacity:.7}
/* GLZD: an ellipse becomes an editorial portal. */
[data-world=glzd]{--world-bg:#242424;--world-ink:#eeeee7;--world-accent:#c9cbd1}
[data-world=glzd] .story-piece{inset:3% 13% 3% 43%;clip-path:ellipse(48% 49% at 50% 50%);filter:grayscale(1)}
[data-world=glzd] .story-headline>span{font-family:Condensed,DM,sans-serif;text-transform:uppercase;letter-spacing:-.025em;font-size:1.2em}
[data-world=glzd] .story-headline>em{padding-left:8%}
.story-orbits{position:absolute;inset:12% 4% 12% 27%;transform:rotate(-24deg)}
.story-orbits i{position:absolute;inset:0;border:1px solid #c9cbd150;border-radius:50%}.story-orbits i:nth-child(2){inset:9% -6%;transform:rotate(35deg)}.story-orbits i:nth-child(3){inset:20% -13%;transform:rotate(65deg)}
[data-world=glzd][data-chapter=identity] .story-piece,.case-world[data-world=glzd] .story-piece{animation:orbit-arrival 1.5s var(--ease) both}
[data-world=glzd][data-chapter=identity] .story-orbits{animation:orbit-lines 1.8s var(--ease) both}
@keyframes orbit-arrival{from{clip-path:ellipse(1% 49% at 50% 50%);transform:rotate(-12deg) scale(1.12)}to{clip-path:ellipse(48% 49% at 50% 50%);transform:none}}
@keyframes orbit-lines{from{opacity:.1;transform:rotate(-65deg) scale(.6)}to{opacity:1;transform:rotate(-24deg) scale(1)}}
/* DAR NOOR: textile emerges through a botanical arch. */
[data-world=dar-noor]{--world-bg:#332936;--world-ink:#eee5d8;--world-accent:#a6ad8b;--demo-w:65%;--demo-x:38%;--note-x:75%;--note-w:20%}
[data-world=dar-noor] .story-piece{inset:7% 9% 0 44%;border-radius:48% 48% 0 0;filter:brightness(.78)}
[data-world=dar-noor] .story-headline{top:36%;font-family:Editorial,Georgia,serif;font-weight:400;font-size:clamp(65px,7vw,110px)}
.story-botanical{position:absolute;left:-6%;bottom:-10%;width:49%;height:95%;object-fit:contain;opacity:.35;pointer-events:none}
[data-world=dar-noor][data-chapter=identity] .story-piece,.case-world[data-world=dar-noor] .story-piece{animation:botanical-arrival 1.6s var(--ease) both}
[data-world=dar-noor][data-chapter=identity] .story-botanical{animation:botanical-draw 1.8s var(--ease) both}
@keyframes botanical-arrival{from{clip-path:inset(100% 0 0);transform:translateY(30px)}to{clip-path:inset(0);transform:none}}
@keyframes botanical-draw{from{clip-path:inset(100% 0 0)}to{clip-path:inset(0)}}
/* VÉLAIRE: a quiet circular ritual, then a mobile-first demonstration. */
[data-world=velaire]{--world-bg:#ecede4;--world-ink:#3d4937;--world-accent:#747c60;--demo-w:28%;--demo-x:34%;--note-x:58%;--note-w:30%;--demo-h:82%}
[data-world=velaire] .story-piece{inset:8% 9% 8% 46%;border-radius:50%}
[data-world=velaire] .story-headline{top:32%;font-size:clamp(60px,7.8vw,125px);font-family:Editorial,Georgia,serif}
[data-world=velaire] .story-headline>em{padding-left:9%;margin-top:5px}
.story-ritual{position:absolute;right:14%;bottom:5%;font:8px ui-monospace,monospace;letter-spacing:.1em}
[data-world=velaire][data-chapter=identity] .story-piece,.case-world[data-world=velaire] .story-piece{animation:ritual-arrival 2s var(--ease) both}
[data-world=velaire][data-chapter=website] .live-aperture{border-radius:22px;padding:6px;background:#737b60}.project-theatre[data-world=velaire] #embed-home{border-radius:17px;overflow:hidden}
@keyframes ritual-arrival{from{opacity:.2;transform:scale(.86);filter:blur(8px)}to{opacity:1;transform:scale(1);filter:blur(0)}}
/* CACAO: a wrapping fold opens onto texture. */
[data-world=cacao]{--world-bg:#39271f;--world-ink:#f3e8d7;--world-accent:#c59e73;--demo-w:66%;--demo-x:60%;--note-x:4%;--note-w:21%}
[data-world=cacao] .story-piece{inset:0 0 0 42%;filter:brightness(.7)}
[data-world=cacao] .story-headline{top:30%;font-family:Editorial,Georgia,serif;font-size:clamp(68px,7.8vw,130px)}
[data-world=cacao] .story-headline>em{padding-left:9%;font-size:1em}
.story-stamp{position:absolute;right:6%;top:8%;border:1px solid #f3e8d788;outline:1px solid #f3e8d744;outline-offset:7px;width:105px;height:105px;border-radius:50%;display:grid;place-content:center;font:8px/1.6 ui-monospace,monospace;letter-spacing:.05em;text-align:center;transform:rotate(12deg)}
[data-world=cacao][data-chapter=identity] .story-piece,.case-world[data-world=cacao] .story-piece{animation:chocolate-unwrapped 1.3s var(--ease) both}
@keyframes chocolate-unwrapped{from{clip-path:polygon(0 0,0 0,0 100%,0 100%);transform:scale(1.09)}to{clip-path:polygon(0 0,100% 0,100% 100%,0 100%);transform:scale(1)}}
/* OFFHOUR: typography cuts in, the original transparent figure stays intact. */
[data-world=offhour]{--world-bg:#e9e6dd;--world-ink:#24241f;--world-accent:#e65320;--demo-w:72%;--demo-x:58%;--note-x:3%;--note-w:18%}
[data-world=offhour] .story-piece{inset:0 5% 0 47%;z-index:4;overflow:visible}
[data-world=offhour] .story-piece img{object-fit:contain;object-position:center bottom}
[data-world=offhour] .story-headline{top:28%;font-family:Condensed,DM,sans-serif;text-transform:uppercase;font-size:clamp(82px,10.8vw,170px);line-height:.86;letter-spacing:-.035em}
[data-world=offhour] .story-headline>em{font:inherit;padding-left:5%}
.story-rule{position:absolute;left:0;right:0;top:58%;height:14%;background:#e65320;z-index:1}
.story-time{position:absolute;right:4%;top:7%;font:9px ui-monospace,monospace;writing-mode:vertical-rl}
[data-world=offhour][data-chapter=identity] .story-piece,.case-world[data-world=offhour] .story-piece{animation:offhour-arrival .95s var(--ease) both}
[data-world=offhour][data-chapter=identity] .story-rule{animation:offhour-rule .7s var(--ease) both}
@keyframes offhour-arrival{from{transform:translateX(18%);clip-path:inset(0 0 0 100%)}to{transform:none;clip-path:inset(0)}}
@keyframes offhour-rule{from{transform:scaleX(0);transform-origin:left}to{transform:scaleX(1);transform-origin:left}}
/* MAISON ÉDIT: a pair of deliberately offset editorial plates. */
[data-world=maison-edit]{--world-bg:#eae6dd;--world-ink:#2d302b;--world-accent:#777866;--demo-w:64%;--demo-x:38%;--note-x:75%;--note-w:20%}
[data-world=maison-edit] .story-piece{inset:5% 9% 18% 54%;transform:rotate(3deg)}
[data-world=maison-edit] .story-headline{left:6%;top:33%;max-width:70%;font-family:Editorial,Georgia,serif;font-size:clamp(54px,6.7vw,110px)}
[data-world=maison-edit] .story-headline>em{max-width:75%;line-height:.9}
.story-detail-piece{position:absolute;bottom:9%;left:36%;width:18%;height:30%;object-fit:cover;transform:rotate(-6deg);z-index:2;border:8px solid var(--world-bg)}
.story-folio{position:absolute;right:4%;bottom:5%;font:10px ui-monospace,monospace;letter-spacing:.09em}
[data-world=maison-edit][data-chapter=identity] .story-piece,.case-world[data-world=maison-edit] .story-piece{animation:editorial-arrival 1.1s var(--ease) both}
[data-world=maison-edit][data-chapter=identity] .story-detail-piece{animation:editorial-detail 1.3s var(--ease) both}
@keyframes editorial-arrival{from{opacity:.2;transform:translateY(-35px) rotate(-6deg)}to{opacity:1;transform:translateY(0) rotate(3deg)}}
@keyframes editorial-detail{from{opacity:0;transform:translateY(70px) rotate(9deg)}to{opacity:1;transform:translateY(0) rotate(-6deg)}}
/* CRUMB: the original cookie photo arrives like an oversized stamp. */
[data-world=crumb]{--world-bg:#ffdb62;--world-ink:#2a1813;--world-accent:#ff6f91;--demo-w:65%;--demo-x:60%;--note-x:4%;--note-w:22%}
[data-world=crumb] .story-piece{inset:9% 5% 6% 49%;border-radius:48% 52% 46% 54% / 52% 43% 57% 48%;transform:rotate(7deg)}
[data-world=crumb] .story-piece img{object-position:58% center}
[data-world=crumb] .story-headline{left:5%;top:24%;font:700 clamp(55px,6.7vw,110px)/.93 Georgia,serif;letter-spacing:-.065em;max-width:76%}
[data-world=crumb] .story-headline>em{font-family:Georgia,serif;font-weight:700;font-size:1em;color:#b84442;max-width:66%;line-height:.93}
.story-cookie-stamp{position:absolute;right:6%;top:5%;width:100px;height:100px;background:#ff6f91;border:2px solid #2a1813;border-radius:50%;display:grid;place-content:center;text-align:center;font:700 16px/1.1 DM,sans-serif;transform:rotate(13deg);z-index:5}
[data-world=crumb][data-chapter=identity] .story-piece,.case-world[data-world=crumb] .story-piece{animation:cookie-arrival 1.2s cubic-bezier(.19,1,.36,1) both}
[data-world=crumb][data-chapter=identity] .story-cookie-stamp{animation:cookie-stamp 1.1s var(--ease) both}
@keyframes cookie-arrival{0%{opacity:0;transform:translateY(90px) rotate(-18deg) scale(.7)}70%{opacity:1;transform:translateY(-8px) rotate(9deg) scale(1.02)}100%{opacity:1;transform:translateY(0) rotate(7deg) scale(1)}}
@keyframes cookie-stamp{0%,30%{opacity:0;transform:rotate(-25deg) scale(1.8)}100%{opacity:1;transform:rotate(13deg) scale(1)}}
/* THE CUT: a decisive horizontal reveal, structured like a counter ticket. */
[data-world=cut]{--world-bg:#eee9df;--world-ink:#312e22;--world-accent:#a2483c;--demo-w:68%;--demo-x:59%;--note-x:4%;--note-w:20%}
[data-world=cut] .story-piece{inset:5% 5% 13% 44%}
[data-world=cut] .story-headline{top:25%;font:600 clamp(60px,6.8vw,110px)/.95 Georgia,serif;letter-spacing:-.065em}
[data-world=cut] .story-headline>em{font-family:Georgia,serif;font-size:.95em;color:#a2483c;max-width:65%}
.story-counter{position:absolute;left:5%;right:5%;bottom:5%;border-top:1px solid #312e2255;display:flex;justify-content:space-between;padding-top:15px;font:9px ui-monospace,monospace}
[data-world=cut][data-chapter=identity] .story-piece,.case-world[data-world=cut] .story-piece{animation:counter-cut 1s var(--ease) both}
@keyframes counter-cut{from{clip-path:inset(49.8% 0);transform:translateX(20px)}to{clip-path:inset(0);transform:none}}
@keyframes website-unfold{from{opacity:0;clip-path:inset(12% 25%);transform:translate(-50%,-48%)}to{opacity:1;clip-path:inset(0);transform:translate(-50%,-50%)}}
.project-theatre:not(.story-running) .story-identity *{animation-play-state:paused!important}
/* Case studies inherit the project's entrance and typography. */
.case-world{position:relative;overflow:hidden;background:var(--world-bg);height:clamp(500px,52vw,800px)}
.case-world .story-identity{position:absolute;inset:0}
.case-world>a{z-index:9}
.case-world .story-signoff{bottom:7%}
/* Smaller screens keep every chapter and its direct website route accessible. */
@media(max-width:1000px){.story-reason{padding:8% 4%;width:44%}.story-reason h3{font-size:30px}.story-reason>p{font-size:12px}.story-demo-note>h3{font-size:30px}.story-demo-note>p{font-size:10px}.story-headline{font-size:8vw}.project-theatre{height:610px}.story-stamp{width:80px;height:80px;font-size:7px}.story-cookie-stamp{width:75px;height:75px;font-size:12px}}
@media(max-width:760px){
 .story-controls{margin-top:25px;display:block}.story-chapters{justify-content:space-between;gap:12px;font-size:8px}.story-chapters button{padding:12px 0}#story-explore{font-size:10px;margin-top:13px;gap:25px}
 .project-theatre{height:660px;margin:18px -2vw 25px;min-height:0;max-height:none;--demo-w:86%;--demo-x:50%;--demo-h:57%;--note-x:7%;--note-w:80%}
 .story-eyebrow{top:5%;left:7%;font-size:7px;max-width:77%;line-height:1.6}.story-signoff{left:7%;bottom:5%;font-size:6px}
 .story-headline,[data-world] .story-headline{left:7%;right:5%;top:22%;font-size:12.5vw;max-width:none;line-height:.95}
 .story-headline>em{font-size:1.05em}.story-piece,[data-world] .story-piece{inset:29% 7% 10% 22%}
 [data-world=glzd] .story-piece{inset:18% 11% 7% 30%}.story-orbits{inset:27% -2% 17% 12%}
 [data-world=dar-noor] .story-piece{inset:20% 8% 0 28%}.story-botanical{width:70%;height:70%;bottom:-5%;left:-10%}
 [data-world=velaire] .story-piece{inset:28% 7% 12% 22%}.story-ritual{bottom:9%;font-size:6px;right:12%}
 [data-world=cacao] .story-piece{inset:22% 0 0 26%}[data-world=cacao] .story-headline{top:20%}.story-stamp{width:66px;height:66px;right:9%;top:9%;font-size:6px;outline-offset:4px}
 [data-world=offhour] .story-piece{inset:17% -6% 0 29%}[data-world=offhour] .story-headline{font-size:17vw;top:25%}.story-rule{top:48%;height:10%}.story-time{font-size:7px}
 [data-world=maison-edit] .story-piece{inset:13% 7% 17% 44%}[data-world=maison-edit] .story-headline{font-size:12vw;top:29%}.story-detail-piece{left:12%;bottom:12%;width:30%;height:25%;border-width:4px}.story-folio{font-size:7px}
 [data-world=crumb] .story-headline{font-size:12.5vw;top:20%}[data-world=crumb] .story-piece{inset:32% 5% 12% 19%}.story-cookie-stamp{width:64px;height:64px;right:8%;top:9%;font-size:11px}
 [data-world=cut] .story-headline{font-size:12vw;top:24%}[data-world=cut] .story-piece{inset:32% 3% 13% 19%}.story-counter{font-size:6px;left:7%;right:7%;bottom:6%}
 [data-chapter=thinking] .story-identity{width:100%;height:39%}
 [data-chapter=thinking] .story-headline{font-size:9vw;top:27%;left:7%;max-width:75%}
 [data-chapter=thinking] .story-piece{inset:0 0 0 54%}
 [data-chapter=thinking] .story-eyebrow{font-size:6px;top:7%}
 [data-chapter=thinking] .story-signoff,[data-chapter=thinking] .story-stamp,[data-chapter=thinking] .story-cookie-stamp,[data-chapter=thinking] .story-ritual,[data-chapter=thinking] .story-counter,[data-chapter=thinking] .story-detail-piece{display:none}
 .story-reason{left:0;right:0;top:39%;bottom:0;width:100%;padding:20px 7% 26px;justify-content:flex-start;overflow-y:auto;border-left:0;border-top:1px solid color-mix(in srgb,var(--world-ink) 18%,transparent);transform:translateY(15px)}
 .story-reason>span{font-size:7px;margin-bottom:10px}.story-reason h3{font-size:26px;max-width:330px;margin-bottom:10px}.story-reason>p{font-size:11px;line-height:1.55}.story-palette{margin-top:12px}.story-palette>i{width:16px;height:16px}.story-palette>span{font-size:6px}.story-reason>a{font-size:9px;margin-top:16px}
 .project-theatre .live-aperture{left:50%;top:33%;width:86%;height:56%}
 .project-theatre[data-world=velaire] .live-aperture{width:57%;height:60%;top:34%}
 .story-demo-note{left:7%;top:68%;width:80%}.story-demo-note>span:first-child{margin-bottom:10px;font-size:6px}.story-demo-note>h3{font-size:28px;margin-bottom:10px}.story-demo-note>p{font-size:11px;max-width:300px}.story-demo-hint{font-size:6px;margin-top:15px}
 .project-theatre .film-arrows{bottom:12px;right:15px}.project-theatre .film-arrows button{width:28px;height:28px}.project-theatre #enter-project{padding:9px}.project-theatre #enter-project>span{padding:10px;font-size:8px}
 .case-world{height:590px;min-height:0;max-height:none}.case-world>a{bottom:20px}.case-world .story-signoff{display:none}
}
@media(prefers-reduced-motion:reduce){.story-identity *,.story-reason,.project-theatre .live-aperture{animation:none!important;transition:none!important}}

@media(min-width:761px){[data-world][data-chapter=thinking] .story-headline{font-size:clamp(42px,4.4vw,72px);top:36%;left:7%;max-width:90%}[data-world][data-chapter=thinking] .story-piece{inset:13% 5% 13% 26%}[data-world][data-chapter=thinking] .story-stamp,[data-world][data-chapter=thinking] .story-cookie-stamp{width:65px;height:65px;font-size:8px}[data-world][data-chapter=thinking] .story-detail-piece{left:12%;width:25%}}

.story-original{display:inline-flex;align-items:center;gap:10px;font-size:9px;border-bottom:1px solid currentColor;padding-bottom:5px;margin-top:16px;line-height:1.4}.case-original{display:flex;gap:25px;align-items:center;width:fit-content;font-size:12px;margin-top:20px;border-bottom:1px solid currentColor;padding-bottom:6px}
@media(max-width:760px){.story-original{font-size:9px;margin-top:10px}.story-demo-hint{margin-top:12px}.story-demo-note:has(.story-original:not([hidden])) .story-demo-hint{display:none}}

.story-noscript{padding:30px 0}.story-noscript>a{display:block;padding:15px 0;border-bottom:1px solid #ffffff33;font-size:14px}
