@font-face{font-family:"Nico Moji";font-style:normal;font-weight:400;font-display:swap;src:url(assets/fonts/nico-moji.woff2) format("woff2")}
:root{
  --navy:#100062; --bg:#F3FAFF; --white:#fff;
  --lav:#B6B7DB; --grid:rgba(16,0,98,.07); --cell:56px;
  --font:"Nico Moji","Trebuchet MS",system-ui,sans-serif;
  color-scheme:light;
  box-sizing:border-box;
  padding-top:env(safe-area-inset-top,0px);
  padding-bottom:env(safe-area-inset-bottom,0px);
}
*,*::before,*::after{box-sizing:inherit}
html{scroll-behavior:smooth;scroll-padding-top:env(safe-area-inset-top,0px)}
body{margin:0;background:var(--bg);color:var(--navy);font-family:var(--font);font-weight:400;overflow-x:hidden}
/* fixed background grid */
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background-image:linear-gradient(var(--grid) 1px,transparent 1px),linear-gradient(90deg,var(--grid) 1px,transparent 1px);
  background-size:var(--cell) var(--cell)}
a{color:inherit}
:focus-visible{outline:3px solid var(--navy);outline-offset:3px;border-radius:4px}
section{scroll-margin-top:24px}

/* HERO */
.hero{position:relative;height:90svh;min-height:420px;max-height:820px;margin:2.5vw 3.2vw 0;color:var(--white)}
.hero .shape{position:absolute;inset:0;width:100%;height:100%;display:block}
.hero .cut{position:absolute;left:10%;top:0;height:101%;width:auto;transform:translateX(-51%);fill:var(--bg);overflow:visible;z-index:1}
.hero-text{position:absolute;z-index:2;left:20%;top:19%}
.hero-text p{margin:0 0 .15em;color:var(--lav);font-size:clamp(1rem,2.4vw,2rem)}
.hero-text h1{margin:0;font-weight:400;font-size:clamp(2.1rem,6.4vw,5.6rem);line-height:1;white-space:nowrap}

/* NAV (fixed glass pill) */
nav{position:fixed;z-index:50;left:50%;transform:translateX(-50%);bottom:calc(6svh + env(safe-area-inset-bottom,0px));
  display:flex;gap:.3rem;padding:.35rem;border-radius:999px;
  background:rgba(16,0,98,.5);-webkit-backdrop-filter:blur(14px) saturate(140%);backdrop-filter:blur(14px) saturate(140%);
  border:1px solid rgba(255,255,255,.28);box-shadow:0 8px 30px rgba(16,0,98,.18)}
nav a{color:var(--white);text-decoration:none;padding:.65rem 1.05rem;border-radius:999px;font-size:clamp(.8rem,1.5vw,1.05rem);transition:background .25s,transform .25s}
nav a:hover{background:rgba(255,255,255,.16)}
nav a.active{background:rgba(255,255,255,.28)}

/* SECTION HEADINGS */
.head{display:flex;align-items:center;gap:1.4rem;margin:clamp(90px,14vw,170px) 0 clamp(40px,6vw,80px);overflow:hidden}
.head h2{margin:0;font-weight:400;font-size:clamp(1.9rem,4vw,3.4rem);line-height:1;flex:none}
.head .ln{height:3px;background:var(--navy);flex:none;border-radius:999px}
.head .l{width:clamp(30px,6vw,70px)}
.head .grow{flex:1;min-width:20px}
.head .d{width:var(--w)}
.head .star{width:clamp(40px,5.4vw,66px);height:auto;fill:var(--navy);flex:none;animation:twinkle 5s ease-in-out infinite}
.head .tail{display:flex;align-items:center;gap:1.4rem;flex:none}
@media(max-width:640px){.head{gap:.8rem}.head .tail{gap:.8rem}.head .tail .d:nth-child(n+3):not(.star){display:none}}

/* PROJECTS carousel */
.track{--cw:clamp(250px,44vw,600px);overflow:hidden;padding:30px 0;cursor:grab;user-select:none;-webkit-user-select:none;touch-action:pan-y}
.track.dragging{cursor:grabbing}
.rail{position:relative;display:flex;gap:clamp(20px,5vw,90px);padding-left:calc(50% - var(--cw)/2);will-change:transform}
.card{--s:1;flex:none;width:var(--cw);aspect-ratio:5/3;border:0;padding:0;background:#C8C8C8;cursor:inherit;
  transform:scale(var(--s));transition:filter .3s,background .3s;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0Q50 9 100 0V100Q50 91 0 100Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0Q50 9 100 0V100Q50 91 0 100Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat}
.card video{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
/* banner image comes from the PROJECTS list in script.js */
.card.pic{background:var(--img) center/100% 100% no-repeat}
/* hover: glass overlay (#2332C9 @ 60%, frost 4) with the project's hover text from script.js */
.card{position:relative}
.card .ov{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 8%;white-space:pre-line;
  color:#fff;font-family:var(--font);font-size:clamp(1.1rem,2.5vw,2.2rem);line-height:1.15;text-align:center;text-shadow:0 2px 14px rgba(16,0,98,.35);
  background:rgba(35,50,201,.6);
  -webkit-backdrop-filter:blur(4px) saturate(125%);backdrop-filter:blur(4px) saturate(125%);
  opacity:0;transition:opacity .3s;pointer-events:none}
.card .ov small{font-size:.5em;margin-bottom:.5em;opacity:.9}
.card .ov img{width:20%;height:auto;margin-bottom:.6em}
.lens .card .ov{backdrop-filter:url(#glass) saturate(125%)}
@media(hover:hover){.card:hover .ov{opacity:1}}
.card:focus-visible .ov{opacity:1}
.track.dragging .card .ov{opacity:0}
.card.pop{animation:pop .5s cubic-bezier(.3,1.6,.5,1)}
@keyframes pop{0%{transform:scale(var(--s))}30%{transform:scale(calc(var(--s) * .94));filter:brightness(.92)}100%{transform:scale(var(--s))}}

#projects .pin{position:sticky;top:0;height:100svh;display:flex;flex-direction:column;justify-content:center;overflow:hidden}
#projects .head{margin:0 0 clamp(20px,4vw,60px)}
#projects.static .pin{position:static;height:auto;padding:clamp(60px,10vw,120px) 0}
/* ABOUT (empty for now) */
/* about card: photo left, intro + skills right (same blue card as the project pages) */
#about .about-card{margin:0 clamp(24px,9.4vw,170px);display:grid;grid-template-columns:minmax(0,29%) minmax(0,1fr);gap:clamp(24px,4.4vw,64px);align-items:stretch;
  padding:clamp(28px,6vw,110px) clamp(22px,5.4vw,96px) clamp(28px,6vw,96px) clamp(22px,3.4vw,60px);border-radius:clamp(12px,1.4vw,20px);background:#7480E0;color:#fff;
  box-shadow:0 10px 40px rgba(116,128,224,.45),inset 0 0 0 1px rgba(255,255,255,.18)}
#about .about-photo{background:#D9D9D9;/* stretches to the text's height: top of "Hi," to the bottom of the skills */background-size:cover;background-position:center}
#about .about-photo img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:50% 40%}
/* white sparkle stars around the photo (positions in % of the photo box) */
#about .about-photo{position:relative}
#about .about-photo .spark{position:absolute;left:var(--x);top:var(--y);width:var(--w);height:auto;translate:-50% -50%;fill:#fff;pointer-events:none;filter:drop-shadow(0 2px 6px rgba(16,0,98,.18));animation:twinkle 5s var(--d) ease-in-out infinite}
#about .about-copy h3{margin:0 0 clamp(14px,1.6vw,24px);font-weight:400;font-size:clamp(1.4rem,2.5vw,2.3rem);line-height:1;-webkit-text-stroke:.6px #fff}
#about .about-copy p{margin:0 0 clamp(40px,5.5vw,84px);font-family:"Roboto Condensed","Arial Narrow",system-ui,sans-serif;font-weight:300;font-size:clamp(.9rem,1.15vw,1.12rem);line-height:1.5;text-align:justify}
#about .skills{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:clamp(10px,1.3vw,20px) clamp(14px,1.4vw,22px);font-family:"Roboto Condensed","Arial Narrow",system-ui,sans-serif;font-weight:300;font-size:clamp(1.05rem,1.75vw,1.65rem);line-height:1.1}
#about .skills li{display:flex;align-items:center;gap:.25em}
#about .skills svg{width:1.25em;height:auto;fill:#fff;flex:none}
@media(max-width:640px){#about .about-card{grid-template-columns:1fr;margin:0 16px}#about .about-photo{width:70%;justify-self:center;aspect-ratio:372/398}}

/* CONTACT + FOOTER */
.end{--sw:clamp(40px,5.4vw,66px);position:relative;overflow-x:clip}
.contact-list{padding:0 clamp(24px,8vw,100px);display:grid;gap:2.2rem;padding-bottom:clamp(110px,14vw,200px)}
.contact-list small{display:block;font-size:.8rem;opacity:.75;margin-bottom:.3rem}
.contact-list a{font-size:clamp(1rem,1.9vw,1.4rem);text-underline-offset:4px;transition:opacity .2s}
.contact-list a:hover{opacity:.6}
.stripes{position:relative;z-index:1}
.stripes i{display:block;background:var(--navy);margin-bottom:14px}
.stripes i:nth-child(1){height:12px;opacity:.3}
.stripes i:nth-child(2){height:26px;opacity:.5}
.stripes i:nth-child(3){height:38px;opacity:.75}
.foot{height:clamp(90px,10vw,130px);background:var(--navy);position:relative;z-index:1}
.big{position:absolute;z-index:2;left:calc(100% - 104.8px - var(--sw)/2 - 31.74%);bottom:calc(clamp(90px,10vw,130px) - 40px);width:62.3%;height:auto;fill:var(--navy);pointer-events:none;animation:float 9s ease-in-out infinite}
.contact-wrap{position:relative}
@media(max-width:640px){.hero{margin:3vw}.hero-text{left:14%}.big{left:calc(100% - var(--sw)/2 - 31.74%)}}

/* PROJECT PAGE */
[hidden]{display:none!important}
#view-project{--body:"Roboto Condensed","Arial Narrow",system-ui,sans-serif;--blue:#2B37CC;--padx:7.8%}
.p-text{font-family:var(--body);font-weight:300;font-size:clamp(.85rem,1.1vw,1.05rem);line-height:1.45;max-width:50%;text-align:justify;margin:0}
.p-text p{margin:0 0 1em}.p-text p:last-child{margin-bottom:0}.p-text strong{font-weight:600}
.p-head{padding:clamp(28px,4.5vw,56px) var(--padx) 0}
.p-head h1{margin:0;font-weight:400;font-size:clamp(2rem,4.4vw,3.8rem);line-height:1.1}
.p-head h1 small{display:block;font-size:.5em;margin-bottom:.25em}
.p-line{display:flex;align-items:center;gap:1.1rem;margin:.7rem 0 1.5rem}
.p-line .ln{height:3px;background:var(--navy);border-radius:999px;flex:none}
.p-line .grow{flex:1;min-width:20px}
.p-line .star{width:clamp(36px,4.6vw,56px);height:auto;fill:var(--navy);flex:none;animation:twinkle 5s ease-in-out infinite}
.gal{margin:clamp(30px,5vw,60px) var(--padx) 0}
.gal-track{display:flex;gap:1.9%;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;cursor:grab;user-select:none;-webkit-user-select:none}
.gal-track::-webkit-scrollbar{display:none}
.gal-track.dragging{cursor:grabbing;scroll-snap-type:none}
.gal-card{scroll-snap-align:start;flex:none;width:38.9%;aspect-ratio:290/175;background:#D9D9D9}
.gal-card img{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
.gal-card video{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
.bar{position:relative;height:4px;border-radius:999px;background:#B4B9EE;margin-top:clamp(22px,3.4vw,40px)}
.thumb{position:absolute;top:0;height:100%;border-radius:999px;background:var(--blue)}
.p-first{padding-bottom:clamp(120px,14vw,190px)}
.band{display:flex;flex-direction:column}
.band i{display:block;background:var(--navy);margin-bottom:14px}
.band i:nth-child(1){height:12px;opacity:.3}
.band i:nth-child(2){height:26px;opacity:.5}
.band i:nth-child(3){height:38px;opacity:.75}
.band.down{flex-direction:column-reverse}
.band.down i{margin:14px 0 0}
.p-sec-head{display:flex;align-items:center;gap:1.1rem;padding-left:2.8%}
.p-sec-head h2{margin:0;font-weight:400;font-size:clamp(1.8rem,3.8vw,3.2rem);line-height:1}
.p-sec-head .star{width:clamp(34px,4.6vw,56px);height:auto;flex:none;animation:twinkle 5s ease-in-out infinite}
.p-research{background:var(--navy);color:#fff;padding:clamp(50px,7vw,90px) 0 clamp(60px,8vw,100px)}
.p-research .star{fill:#fff}
.p-research .p-text{margin:clamp(28px,4vw,50px) 0 0 calc(var(--padx) + 3px)}
.rqs{margin:clamp(40px,6vw,80px) var(--padx) 0}
.rq{padding:clamp(30px,4vw,52px) 0;border-top:2px solid #fff}
.rq:first-child{border-top:0;padding-top:0}
.rq .lbl{font-size:clamp(.9rem,1.25vw,1.15rem);margin-bottom:.6rem;opacity:.8}
.rq .q{font-family:var(--body);font-weight:300;font-size:clamp(.95rem,1.5vw,1.25rem);line-height:1.4;max-width:78%;margin:0 0 clamp(20px,2.6vw,32px)}
.chips{display:flex;flex-wrap:wrap;gap:12px}
.chip{display:flex;align-items:center;gap:.8rem;width:clamp(190px,24.4vw,300px);padding:.65rem .9rem;border-radius:8px;border:1px solid #3340D6;background:rgba(40,50,210,.28);color:#fff;font-family:var(--body);font-weight:300;font-size:clamp(.78rem,.95vw,.9rem);cursor:pointer;transition:background .2s,transform .2s}
.chip{text-decoration:none}
.chip:hover{background:rgba(60,70,230,.5);transform:translateY(-2px)}
.chip:active{transform:scale(.97)}
.chip svg{width:16px;height:16px;flex:none;fill:none;stroke:#fff;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.p-design{padding:clamp(50px,7vw,90px) 0 clamp(60px,8vw,100px)}
.p-design .star{fill:var(--blue)}
.p-design .p-text{margin:clamp(40px,6vw,80px) 0 0 calc(var(--padx) + 3px)}
.p-next{background:var(--navy);color:#fff;text-align:center;padding:clamp(60px,9vw,120px) 1rem clamp(120px,15vw,180px)}
.p-next small{display:block;font-size:clamp(.85rem,1.2vw,1.05rem)}
.p-next a{display:inline-block;margin-top:1.6rem;font-size:clamp(1.3rem,3.2vw,2.8rem);text-underline-offset:6px;transition:opacity .2s}
.p-next a:hover{opacity:.7}
/* "media" project layout: one framed video/image under the intro, Process on navy */
.p-media{margin:clamp(40px,6vw,80px) var(--padx) 0;width:52%}
.frame{aspect-ratio:16/9;background:#D9D9D9;border:clamp(6px,.9vw,12px) solid var(--navy);box-shadow:0 0 0 clamp(3px,.45vw,6px) #4B4FC9;overflow:hidden}
.frame video,.frame img{display:block;width:100%;height:100%;object-fit:cover}
.frame video:not([src]){display:none}
.frame{position:relative}
.frame.fit{aspect-ratio:auto}
.frame.fit img{height:auto}
/* video placed over the phone in the photo; corners rounded like the phone frame inside the video */
.frame .screen{position:absolute;height:auto;border-radius:11%/5.2%;object-fit:cover}
.p-design.dark{background:var(--navy);color:#fff}
.p-design.dark .star{fill:#fff}
@media(max-width:640px){.p-media{width:auto}}
/* "bubbles" project layout: text beside a thought-bubble video with a betta fish */
.p-feel{display:grid;grid-template-columns:1fr 1.2fr;gap:6%;align-items:center;margin:clamp(30px,5vw,70px) var(--padx) 0}
.p-now{background:var(--navy);color:#fff;display:grid;grid-template-columns:1.2fr 1fr;gap:6%;align-items:center;padding:clamp(50px,7vw,90px) var(--padx) clamp(60px,8vw,100px)}
.b-copy h2{margin:0 0 1.1rem;font-weight:400;font-size:clamp(1.4rem,2.6vw,2.4rem);line-height:1.15}
.b-copy .p-text{max-width:none}
.p-feel .b-copy{align-self:start;margin-top:clamp(10px,3vw,40px)}
.b-copy .b-q{margin:clamp(40px,7vw,100px) 0 0}
.bubble{position:relative;aspect-ratio:8/5}
.cloud{position:absolute;inset:0;clip-path:url(#cloud);background:#D9D9D9}
.cloud video{display:block;width:100%;height:100%;object-fit:cover}
.cloud video:not([src]){display:none}
.rim{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;opacity:.85}
.fishy{position:absolute;width:28%;height:auto;bottom:-6%;pointer-events:none}
.fish-left .fishy{left:-14%}
.fish-right .fishy{right:-14%}
.dots i{position:absolute;border-radius:50%;background:#B4BEF5;opacity:.85}
.fish-left .dots i:nth-child(1){width:4.5%;aspect-ratio:1;left:-4%;bottom:42%}
.fish-left .dots i:nth-child(2){width:3%;aspect-ratio:1;left:-9%;bottom:33%}
.fish-left .dots i:nth-child(3){width:2%;aspect-ratio:1;left:-13%;bottom:27%}
.fish-right .dots i:nth-child(1){width:4.5%;aspect-ratio:1;right:-2%;bottom:36%}
.fish-right .dots i:nth-child(2){width:3%;aspect-ratio:1;right:-7%;bottom:30%}
.fish-right .dots i:nth-child(3){width:2%;aspect-ratio:1;right:-12%;bottom:24%}
@media(max-width:640px){.p-feel,.p-now{grid-template-columns:1fr;gap:40px}.p-now .bubble{order:2}.bubble{margin:0 10%}}
@media(max-width:640px){.p-text,.rq .q{max-width:none}.chip{width:100%}}

/* "feature" project layout (Center Parcs): Research + main question, Concept slider, design steps */
.f-sec{padding:clamp(50px,7vw,90px) 0 clamp(60px,8vw,100px)}
.f-sec .star{fill:var(--blue)}
.f-sec.dark{background:var(--navy);color:#fff}
.f-sec.dark .star{fill:#fff}
.f-sec.dark .bar{background:#2A2A8C}
.f-sec>.p-text{margin:clamp(28px,4vw,50px) 0 0 calc(var(--padx) + 3px)}
.f-sec .rqs.main{padding-bottom:clamp(50px,7vw,90px);border-bottom:2px solid rgba(255,255,255,.75)}
.f-sec .rqs.main .q{max-width:82%}
.f-step h3{margin:0 var(--padx) clamp(14px,1.6vw,22px);font-weight:400;font-size:clamp(1.1rem,1.9vw,1.7rem);line-height:1.2}
.f-step .p-sec-head+h3{margin-top:clamp(40px,6vw,80px)}
.f-step>.p-text{margin:0 0 1em calc(var(--padx) + 3px)}
.f-step>.gal{margin-top:clamp(30px,4vw,50px)}
.gal.contain .gal-card{background:var(--card-bg,#D9D9D9)}
.gal.contain .gal-card img{object-fit:contain}
/* same height for every image (the default card height), width follows each image's own format */
.gal.height{container-type:inline-size}
.gal.height .gal-card{width:auto;height:23.47cqw;background:none}
.gal.height .gal-card img{width:auto;height:100%}
.f-concept+.f-step{padding-top:clamp(10px,2vw,30px)}
.f-list{list-style:none;margin:0 0 1em calc(var(--padx) + 3px);padding:0 0 0 clamp(14px,2.4vw,34px);max-width:calc(50% - clamp(14px,2.4vw,34px));display:grid;gap:.9em;font-family:var(--body);font-weight:300;font-size:clamp(.85rem,1.1vw,1.05rem);line-height:1.45}
.f-list li{display:flex;align-items:flex-start;gap:clamp(10px,1.4vw,18px)}
.f-list .star{width:clamp(16px,1.7vw,22px);height:auto;flex:none;margin-top:.05em;animation:none}
/* split step (e.g. ASML mini-game): copy left, tall image right */
.f-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,31%);gap:6%;align-items:start;padding:clamp(70px,10vw,140px) var(--padx) clamp(80px,11vw,150px) 0}
.f-split .s-kick{display:block;margin:0 0 .5rem var(--padx);font-size:clamp(.9rem,1.3vw,1.2rem)}
.f-split .p-sec-head h2{font-size:clamp(1.6rem,3.2vw,2.8rem)}
.f-split .p-text{max-width:none;margin:0 0 1em var(--padx)}
.f-split .p-sec-head+.p-text{margin-top:clamp(30px,4.5vw,64px)}
.s-fig{aspect-ratio:5/7;background:#D9D9D9;overflow:hidden}
.s-fig img,.s-fig video{display:block;width:100%;height:100%;object-fit:cover}
@media(max-width:640px){.f-split{grid-template-columns:1fr;gap:40px;padding-right:0}.f-split .p-text{margin-right:var(--padx)}.s-fig{margin:0 var(--padx);width:auto}}
/* single showcase card (e.g. Drum): laptop mockup left, copy right */
.f-show{padding:clamp(70px,10vw,140px) 0 clamp(80px,11vw,150px)}
.f-show .slider{margin-top:0;min-height:clamp(260px,40vw,560px);display:flex;flex-direction:column;justify-content:center}
.slide.laptop{grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding-left:0}
.laptop{padding:0 7%}
.laptop-screen{aspect-ratio:16/10;background:#D9D9D9;border:clamp(4px,.6vw,8px) solid #14141c;border-bottom-width:clamp(7px,.9vw,12px);border-radius:clamp(6px,.8vw,12px) clamp(6px,.8vw,12px) 0 0;overflow:hidden}
.laptop-screen img,.laptop-screen video{display:block;width:100%;height:100%;object-fit:cover}
.bare-screen{aspect-ratio:16/10;background:#D9D9D9;border-radius:clamp(6px,.8vw,12px);overflow:hidden;box-shadow:0 12px 30px rgba(16,0,98,.28)}
.bare-screen img,.bare-screen video{display:block;width:100%;height:100%;object-fit:cover}
.laptop-base{height:clamp(6px,.8vw,11px);margin:0 -8%;border-radius:0 0 50% 50%/0 0 100% 100%;background:linear-gradient(#eef0f4,#a6aab4);box-shadow:0 8px 18px rgba(16,0,98,.25)}
@media(max-width:640px){.slide.laptop{grid-template-columns:1fr}.slide.laptop .laptop,.slide.laptop .bare{width:88%}}
/* captions on gallery cards (title top, caption bottom) */
.gal-card{position:relative}
.gal-card .cap{position:absolute;left:3%;right:3%;color:#fff;font-size:clamp(.7rem,1.15vw,1.05rem);line-height:1.15;text-shadow:0 1px 8px rgba(16,0,98,.55);pointer-events:none}
.gal-card .cap.top{top:4%}
.gal-card .cap.bot{bottom:4%}
.f-step>.gal+.p-text{margin-top:clamp(40px,5vw,70px)}
/* feature layout with one plain video/image under the intro (no frame) */
.p-media.plain{width:47%}
.p-media.plain .frame{border:0;box-shadow:none}
@media(max-width:640px){.p-media.plain{width:auto}}
/* concept slider: pinned while scrolling steps through the slides (script.js); static when it doesn't fit the screen or motion is reduced */
.f-concept{padding:0;margin-top:clamp(50px,6vw,80px)}/* space under the stripes above it (margin, so the pinned scroll range stays the same) */
.f-pin{position:sticky;top:0;height:100svh;display:flex;flex-direction:column;justify-content:center;padding:20px 0 calc(6svh + 64px)}
.f-concept.static .f-pin{position:static;height:auto;padding:clamp(50px,7vw,90px) 0 clamp(20px,3vw,40px)}
/* concept slider: the bars under it jump to a slide */
.slider{margin:clamp(30px,5vw,60px) var(--padx) 0;padding:clamp(28px,4.4vw,60px) clamp(22px,4vw,56px) clamp(18px,2.4vw,30px);border-radius:clamp(10px,1.2vw,16px);
  background:#7480E0;color:#fff;box-shadow:0 10px 40px rgba(116,128,224,.45),inset 0 0 0 1px rgba(255,255,255,.18)}
.slides{display:grid}
/* while pinned the card takes all the free screen height (capped on very tall screens), slides centred in it */
.f-pin .slider{flex:1 1 auto;max-height:780px;display:flex;flex-direction:column}
.f-pin .slides{flex:1;align-content:center}
.f-concept.static .slider{flex:none;max-height:none}
.slide{grid-area:1/1;display:grid;grid-template-columns:minmax(90px,min(24%,24svh)) 1fr;gap:clamp(24px,5vw,70px);align-items:center;padding-left:clamp(0px,9%,120px);
  opacity:0;visibility:hidden;transform:translateX(var(--x,48px));transition:opacity .45s,transform .6s cubic-bezier(.2,.7,.2,1),visibility 0s .6s}
.slide.on{opacity:1;visibility:visible;transform:none;transition:opacity .5s .1s,transform .7s .05s cubic-bezier(.2,.7,.2,1),visibility 0s}
.phone{position:relative;aspect-ratio:9/19;padding:5.5%;border-radius:16%/7.6%;background:#14141c;box-shadow:0 0 0 2px #3a3a48,0 14px 30px rgba(16,0,98,.3)}
.phone::before{content:"";position:absolute;z-index:1;left:50%;top:3.8%;width:32%;height:3.4%;border-radius:999px;background:#14141c;transform:translateX(-50%)}
.phone-screen{width:100%;height:100%;border-radius:12%/5.6%;background:#D9D9D9;overflow:hidden}
.phone-screen img{display:block;width:100%;height:100%;object-fit:cover}
.slide-copy small{display:block;font-size:clamp(.8rem,1.1vw,1rem);margin-bottom:clamp(14px,2vw,26px)}
.slide-copy h3{margin:0 0 clamp(26px,4vw,56px);font-weight:400;font-size:clamp(1.2rem,2.2vw,2rem);line-height:1.2}
.slide-copy p{margin:0;max-width:34em;font-family:var(--body);font-weight:300;font-size:clamp(.85rem,1.05vw,1rem);line-height:1.45;text-align:justify}
.sl-nav{display:flex;gap:clamp(8px,1.4vw,20px);margin:clamp(18px,2.4vw,30px) auto 0;width:min(100%,78%)}
.sl-nav button{flex:1;height:24px;padding:0;border:0;background:none;cursor:pointer;position:relative}
.sl-nav button::before{content:"";position:absolute;left:0;right:0;top:50%;height:4px;margin-top:-2px;border-radius:999px;background:var(--blue);transition:background .35s,transform .35s}
.sl-nav button:hover::before{transform:scaleY(1.6)}
.sl-nav button[aria-current]::before{background:#fff}
.sl-nav button:focus-visible{outline-color:#fff}
@media(max-width:640px){
  .slide{grid-template-columns:1fr;padding-left:0;justify-items:center;text-align:left}
  .phone{width:30%}
  .slide{gap:18px}
  .slide-copy small{margin-bottom:8px}
  .slide-copy h3{margin-bottom:14px}
  .slide-copy{justify-self:stretch}
  .sl-nav{width:100%}
  .f-list{max-width:none}
  .f-sec .rqs.main .q{max-width:none}
}

/* MOTION */
@keyframes twinkle{0%,100%{transform:scale(1) rotate(0)}50%{transform:scale(.86) rotate(0)}}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-14px)}}
@keyframes rise{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}
.hero-text p{animation:rise .8s .15s both cubic-bezier(.2,.7,.2,1)}
.hero-text h1{animation:rise .9s .3s both cubic-bezier(.2,.7,.2,1)}
.js .reveal{opacity:0;transform:translateY(22px);transition:opacity .8s cubic-bezier(.2,.7,.2,1),transform .8s cubic-bezier(.2,.7,.2,1)}
.js .reveal.in{opacity:1;transform:none}
/* project page extras: bubbles grow in, fish swim in after them, gallery photos settle from a slight zoom */
.js .reveal.zoom{transform:scale(.92)}
.js .reveal.zoom.in{transform:none}
.gal-card{overflow:hidden}
.js .gal-card img{transform:scale(1.12);transition:transform 1.4s cubic-bezier(.2,.7,.2,1)}
.js .gal-card.in img{transform:none}
.js .bubble .fishy{opacity:0;transition:opacity .8s .35s,transform 1.1s .35s cubic-bezier(.2,.7,.2,1)}
.js .fish-left .fishy{transform:translate(-50px,12px)}
.js .fish-right .fishy{transform:translate(50px,12px)}
.js .bubble.in .fishy{opacity:1;transform:none}
.js .bubble .dots i{opacity:0;transition:opacity .5s}
.js .bubble.in .dots i{opacity:.85}
.js .bubble.in .dots i:nth-child(1){transition-delay:1.1s}
.js .bubble.in .dots i:nth-child(2){transition-delay:.95s}
.js .bubble.in .dots i:nth-child(3){transition-delay:.8s}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{animation:none!important;transition:none!important}
  .js .reveal{opacity:1;transform:none}
  .js .gal-card img,.js .bubble .fishy{transform:none}
  .js .bubble .fishy{opacity:1}
  .js .bubble .dots i{opacity:.85}
}
