@font-face{font-family:"Archivo";src:url(fonts/archivo.woff2) format("woff2");font-weight:100 900;font-display:swap}
:root{
  --ink:#101a24;--slate:#1c2733;--paper:#f3f6f9;
  --led:#2a6eff;--pcb:#2f8f86;--muted:#51606f;
  --font:"Archivo",system-ui,-apple-system,"Segoe UI",sans-serif;
}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font:400 1.125rem/1.6 var(--font)}
body.noscroll{overflow:hidden}
a{color:inherit}
:focus-visible{outline:3px solid var(--led);outline-offset:3px}

/* shared pill buttons (back link, full screen) */
.pill{font:600 .95rem var(--font);color:#fff;text-decoration:none;background:rgba(16,26,36,.55);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.35);border-radius:999px;padding:.55rem 1rem;cursor:pointer}
.pill:hover{background:rgba(16,26,36,.8)}

/* model page hero: the live model, drag to rotate, wheel zooms while over the model */
.hero{position:relative;height:72svh;min-height:460px;background:#5f758d;overflow:hidden}
.hero iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.hero::after{content:"";position:absolute;inset:auto 0 0 0;height:55%;background:linear-gradient(transparent,rgba(12,20,30,.62));pointer-events:none}
.hero-copy{position:absolute;z-index:1;left:clamp(16px,4vw,56px);right:clamp(16px,4vw,56px);bottom:clamp(20px,5vh,52px);color:#fff;pointer-events:none}
.hero h1{margin:0 0 .4rem;font-weight:800;font-size:clamp(2.4rem,8vw,5.5rem);line-height:.95;letter-spacing:-.005em}
.hero p{margin:0;font-size:clamp(1.1rem,2.2vw,1.5rem);line-height:1.3}
.hero .back,.hero .fs{position:absolute;z-index:2;top:clamp(14px,3vh,28px)}
.hero .back{left:clamp(14px,3vw,32px)}
.hero .fs{right:clamp(14px,3vw,32px)}
.hero.expanded{position:fixed;inset:0;height:100vh;height:100dvh;min-height:0;z-index:100}
.hero.expanded::after,.hero.expanded .hero-copy,.hero.expanded .back{display:none}

main{max-width:1100px;margin:0 auto;padding:clamp(56px,10vw,120px) clamp(16px,4vw,40px)}
.steps{max-width:46rem}
.steps div{display:grid;grid-template-columns:9rem 1fr;gap:.25rem 1.5rem;padding:.9rem 0;border-top:1px solid rgba(16,26,36,.15)}
.steps dt{font-weight:700}.steps dd{margin:0;color:var(--muted)}
@media (max-width:560px){.steps div{grid-template-columns:1fr}}
h2{margin:0 0 1.25rem;font-weight:800;font-size:clamp(1.75rem,3.5vw,2.5rem);line-height:1.05;letter-spacing:-.01em}
.build{margin:0 0 clamp(56px,9vw,110px)}
.build .steps{margin:0}
.note{margin:-.5rem 0 1.25rem;color:var(--muted)}

/* photos */
.photos[hidden]{display:none}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:12px;margin:0 0 clamp(56px,9vw,110px)}
.grid button{padding:0;border:0;background:#cfd8e1;border-radius:6px;overflow:hidden;cursor:zoom-in;aspect-ratio:4/3;display:block}
.grid img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s}
.grid button:hover img{transform:scale(1.03)}
@media (prefers-reduced-motion:reduce){.grid img{transition:none}.grid button:hover img{transform:none}}
dialog{border:0;padding:0;background:transparent;max-width:100vw;max-height:100vh;width:100%;height:100%}
dialog::backdrop{background:rgba(10,16,22,.88)}
.lb{display:grid;place-items:center;width:100%;height:100%;padding:16px}
.lb img{max-width:100%;max-height:calc(100vh - 32px);border-radius:4px;display:block}
.lb button{position:fixed;font:600 1rem var(--font);color:#fff;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.35);border-radius:999px;padding:.55rem 1rem;cursor:pointer}
.lb button:hover{background:rgba(255,255,255,.26)}
.lb .x{top:16px;right:16px}.lb .p{left:16px;top:50%}.lb .n{right:16px;top:50%}

/* menu page */
.menu-head{max-width:1100px;margin:0 auto;padding:clamp(40px,8vw,96px) clamp(16px,4vw,40px) 0}
.menu-head+main{padding-top:clamp(32px,6vw,72px)}
.menu-head h1{margin:0;font-weight:800;font-size:clamp(2.6rem,9.5vw,6.5rem);line-height:.95;letter-spacing:-.005em;text-transform:uppercase}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,360px),1fr));gap:20px;padding:0;margin:0;list-style:none}
.card{position:relative;display:block;aspect-ratio:4/3;border-radius:6px;overflow:hidden;color:#fff;text-decoration:none;background:#5f758d}
.card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s}
.card::after{content:"";position:absolute;inset:auto 0 0 0;height:50%;background:linear-gradient(transparent,rgba(12,20,30,.62));pointer-events:none}
.card .copy{position:absolute;z-index:1;left:clamp(14px,4vw,22px);right:clamp(14px,4vw,22px);bottom:clamp(14px,3.5vw,20px)}
.card h2{margin:0 0 .3rem;font-size:clamp(1.7rem,5vw,2.4rem);line-height:.95}
.card p{margin:0;font-size:1.05rem;line-height:1.3}
.card:hover img{transform:scale(1.03)}
@media (prefers-reduced-motion:reduce){.card img{transition:none}.card:hover img{transform:none}}

footer{background:var(--slate);color:#c9d4df;padding:40px clamp(16px,4vw,40px)}
footer div{max-width:1100px;margin:0 auto;display:flex;flex-wrap:wrap;gap:12px 32px;justify-content:space-between}
footer a{color:#fff}

.lb video{max-width:100%;max-height:calc(100vh - 32px);border-radius:4px;display:block;background:#000}.lb video[hidden],.lb img[hidden]{display:none}
.grid button{position:relative}.grid button.v::after{content:"";position:absolute;left:50%;top:50%;width:56px;height:56px;margin:-28px 0 0 -28px;border-radius:50%;background:rgba(0,0,0,.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 6.5v11l9-5.5z'/%3E%3C/svg%3E") center/60% no-repeat;pointer-events:none;box-shadow:0 0 0 2px rgba(255,255,255,.7) inset}

/* ===== unified controls (same look on the page and inside every viewer; accent follows the section colour) ===== */
.ctl{--ac:color-mix(in srgb,rgb(var(--c,150,160,175)) 48%,#fff);font:600 .95rem/1 var(--font);color:#10161d;background:var(--ac);border:1px solid rgba(255,255,255,.55);border-radius:999px;padding:.6rem 1.05rem;cursor:pointer;text-decoration:none;box-shadow:0 4px 14px rgba(0,0,0,.35);display:inline-grid;place-items:center}
.ctl:hover{background:color-mix(in srgb,rgb(var(--c,150,160,175)) 30%,#fff)}
.fab{position:fixed;bottom:clamp(14px,3vw,28px);z-index:21;width:48px;height:48px;padding:0;font-size:1.4rem}
.fab.back{left:clamp(14px,3vw,28px)}
.fab.up{right:clamp(14px,3vw,28px);opacity:0;pointer-events:none;transform:translateY(8px);transition:opacity .2s,transform .2s}
.fab.up.on{opacity:1;pointer-events:auto;transform:none}
@media(prefers-reduced-motion:reduce){.fab.up{transition:none}}

/* ===== project pages: dark, section-coloured ===== */
body.proj{background:#0b0f14 radial-gradient(120% 60% at 50% 0,rgba(var(--c),.30),transparent 70%) no-repeat;color:#e7edf3}
body.proj h2{color:#f4f7fa}
body.proj .steps div{border-top-color:rgba(255,255,255,.14)}
body.proj .steps dd,body.proj .note{color:#aebccb}
body.proj .grid button{background:#16202b}
body.proj footer{background:rgba(var(--c),.16);border-top:1px solid rgba(var(--c),.45);color:#c3cdd8}
.phead{position:relative;overflow:hidden;min-height:clamp(210px,30svh,320px);display:flex;align-items:flex-end;border-bottom:2px solid rgba(var(--c),.8)}
.pbg{position:absolute;inset:0;background:linear-gradient(135deg,rgba(var(--c),.55),#0b0f14) center/cover}
.pbg::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,12,17,.9) 0,rgba(8,12,17,.55) 55%,rgba(8,12,17,.25)),linear-gradient(0deg,rgba(var(--c),.35),transparent 60%)}
.pin{position:relative;z-index:1;width:100%;max-width:1100px;margin:0 auto;padding:clamp(70px,12vh,110px) clamp(16px,4vw,40px) clamp(18px,3.5vh,32px);color:#fff}
.pin .prod{margin:0 0 .5rem;font-weight:700;font-size:.95rem;letter-spacing:.03em;text-transform:uppercase;color:color-mix(in srgb,rgb(var(--c)) 40%,#fff)}
.pin .prod a{text-decoration:none}.pin .prod a:hover{text-decoration:underline}
.pin h1{margin:0 0 .4rem;font-weight:800;font-size:clamp(2.2rem,7vw,4.8rem);line-height:.95;letter-spacing:-.005em;text-shadow:0 2px 18px rgba(0,0,0,.6)}
.pin .sub{margin:0 0 .9rem;font-size:clamp(1.05rem,2vw,1.4rem);line-height:1.3}
.pin .cred{margin:0;font-size:.85rem;line-height:1.4;color:#c3cdd8;max-width:46rem}
body.proj .hero{height:clamp(400px,calc(100svh - 300px),68svh);background:#0b0f14}
body.proj .hero::after,body.proj .hero-copy{display:none}
body.proj .hero .allp{display:none}
body.proj .hero .fs{position:absolute;z-index:2;top:clamp(12px,2.5vh,22px);right:clamp(12px,3vw,28px);left:auto}
.fstitle{display:none}
/* full screen: same controls, title at the bottom clear of the viewer's own button bar */
body.proj .hero.expanded .allp{display:inline-grid;place-items:center;width:48px;height:48px;padding:0;font-size:1.4rem;position:absolute;z-index:2;top:14px;left:14px}
body.proj .hero.expanded .fstitle{display:block;position:absolute;z-index:1;left:clamp(14px,3vw,32px);right:clamp(14px,3vw,32px);bottom:68px;color:#fff;pointer-events:none;text-shadow:0 2px 14px rgba(0,0,0,.7)}
.fstitle b{display:block;font-weight:800;font-size:clamp(1.4rem,3.4vw,2.4rem);line-height:1}
.fstitle span{display:block;margin-top:.25rem;font-size:.9rem;opacity:.85}
body.proj .hero.expanded::after{display:block;content:"";position:absolute;inset:auto 0 0 0;height:28%;background:linear-gradient(transparent,rgba(8,12,17,.55));pointer-events:none}
body.proj .hero.expanded .fs{display:none}
body.proj .hero.expanded iframe{z-index:0}
body.proj .hero.expanded .hero-copy{display:none}
.top{background:#dfe6ee!important;color:#10161d!important}
@media(max-width:700px){.pbg::after{background:linear-gradient(0deg,rgba(8,12,17,.9),rgba(8,12,17,.5)),linear-gradient(0deg,rgba(var(--c),.3),transparent 60%)}}

/* ===== project page v3: viewer in a card-shaped box, banner below it fading into the info ===== */
body.proj .stage{padding:clamp(70px,11vh,96px) clamp(12px,3vw,32px) 0;text-align:center;background:radial-gradient(90% 70% at 50% 40%,rgba(var(--c),.28),transparent 75%)}
.vtitle{margin:0 auto clamp(10px,2vh,18px);max-width:1000px;text-align:left}
.vtitle h1{margin:0;font-weight:800;font-size:clamp(1.8rem,4.4vw,3rem);line-height:1;color:#fff}
.vtitle .sub{margin:.35rem 0 0;font-size:clamp(.95rem,1.8vw,1.15rem);color:#c3cdd8}
body.proj .stage .hero{position:relative;width:min(100%,calc((100svh - 215px)*1.3333),1000px);height:auto;min-height:0;aspect-ratio:4/3;margin:0 auto;border-radius:14px;overflow:hidden;border:1px solid rgba(var(--c),.6);box-shadow:0 0 70px -18px rgba(var(--c),.7),0 18px 40px rgba(0,0,0,.5)}
@media(max-width:700px){body.proj .stage .hero{aspect-ratio:1/1;width:100%}}
body.proj .stage .hero.expanded{position:fixed;inset:0;z-index:100;width:auto;max-width:none;aspect-ratio:auto;border-radius:0;border:0;margin:0;box-shadow:none}
.pband{position:relative;height:clamp(250px,44vh,430px);margin-top:clamp(20px,4vh,44px);overflow:hidden}
.pband .pbg{background-position:50% var(--py,30%);background-size:cover;-webkit-mask-image:linear-gradient(180deg,#000 40%,transparent 98%);mask-image:linear-gradient(180deg,#000 40%,transparent 98%)}
.pband .pbg::after{background:linear-gradient(90deg,rgba(8,12,17,.5),transparent 55%)}
.pband .pin{position:absolute;left:0;right:0;bottom:clamp(40px,8vh,80px);padding:0 clamp(16px,4vw,40px);width:auto}
.pband .pin>*{max-width:1000px;margin-left:auto;margin-right:auto}
.pband .prod{font-size:clamp(1rem,2vw,1.3rem);text-shadow:0 2px 14px rgba(0,0,0,.8)}
.pband .cred{text-shadow:0 1px 10px rgba(0,0,0,.9);color:#e1e8ef}
body.proj main{position:relative;margin-top:clamp(-120px,-12vh,-50px)}
.vtitle{width:min(100%,calc((100svh - 215px)*1.3333),1000px);box-sizing:border-box}
.fstitle{text-align:left}
/* phone: whole banner visible, credits underneath instead of over the art */
@media(max-width:700px){
.pband{height:auto;overflow:visible;margin-top:22px}
.pband .pbg{position:relative;inset:auto;display:block;aspect-ratio:1920/560;background-size:cover;background-position:center}
.pband .pin{position:relative;bottom:auto;padding:8px 16px 0}
.pband .pin>*{margin-left:0}
body.proj main{margin-top:0}
}

/* ===== project page v4: banner on top, viewer box overlaps its lower edge, title inside the viewer window ===== */
.pband{position:relative;height:clamp(170px,38svh,440px);margin:0;overflow:hidden}
.pband .pbg{background-position:50% 0%;background-size:cover;-webkit-mask-image:linear-gradient(180deg,#000 55%,transparent 100%);mask-image:linear-gradient(180deg,#000 55%,transparent 100%)}
.pband .pbg::after{background:none}
body.proj .stage{position:relative;z-index:1;padding:0 clamp(12px,3vw,32px);margin-top:calc(-14svh);background:none;text-align:left}
body.proj .stage .hero{width:min(100%,calc((78svh - 20px)*1.3333),1000px)}
body.proj main{margin-top:0}
body.proj .hero::after{display:block;content:"";position:absolute;inset:auto 0 0 0;height:30%;background:linear-gradient(transparent,rgba(8,12,17,.55));pointer-events:none;z-index:1}
.fstitle{display:block;position:absolute;z-index:2;left:clamp(14px,3vw,32px);right:clamp(14px,3vw,32px);bottom:68px;color:#fff;pointer-events:none;text-shadow:0 2px 14px rgba(0,0,0,.7);text-align:left}
.fstitle h1,.fstitle b{display:block;margin:0;font-weight:800;font-size:clamp(1.3rem,3vw,2.3rem);line-height:1}
body.proj .hero.expanded .fstitle h1{font-size:clamp(1.4rem,3.4vw,2.4rem)}
.pinfo{width:min(100%,calc((78svh - 20px)*1.3333),1000px);margin:0 auto;padding:clamp(12px,2.5vh,22px) 0 0;box-sizing:border-box}
.pinfo .prod{margin:0 0 .35rem;font-weight:700;font-size:.95rem;letter-spacing:.03em;text-transform:uppercase;color:color-mix(in srgb,rgb(var(--c)) 40%,#fff)}
.pinfo .prod a{text-decoration:none}.pinfo .prod a:hover{text-decoration:underline}
.pinfo .cred{margin:0;font-size:.88rem;line-height:1.45;color:#c3cdd8}
@media(max-width:700px){
.pband{height:auto;overflow:hidden}
.pband .pbg{position:relative;inset:auto;display:block;aspect-ratio:1920/560}
body.proj .stage{margin-top:-26px}
body.proj .stage .hero,.pinfo{width:100%}
.fstitle{bottom:58px}
}

/* v5: menu-style banner, top menu bar, viewer box covering the banner */
.pbar{position:fixed;top:0;left:0;right:0;z-index:20;display:flex;gap:8px;align-items:center;height:86px;box-sizing:border-box;padding:0 clamp(12px,3vw,28px);background:rgba(8,12,17,.86);backdrop-filter:blur(10px);border-bottom:1px solid rgba(255,255,255,.08)}
.pbar b{font:800 .8rem/1 var(--font,system-ui);letter-spacing:.04em;color:#fff;text-transform:uppercase;padding-right:6px}
.pbar nav{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;flex:1;padding:3px 2px}.pbar nav::-webkit-scrollbar{display:none}
.pbar a{position:relative;flex:0 0 auto;width:156px;height:74px;border-radius:6px;overflow:hidden;background:#1d2733 center/cover no-repeat;box-shadow:0 0 0 1px rgba(255,255,255,.12);filter:brightness(.8);transition:box-shadow .15s,filter .15s;text-decoration:none}
.pbar a::after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 25%,rgba(5,9,14,.9))}
.pbar a span{position:absolute;z-index:1;left:6px;right:6px;bottom:5px;font:700 .72rem/1.1 var(--font,system-ui);text-align:center;color:#fff}
.pbar a:hover{filter:brightness(1);box-shadow:0 0 0 1px rgba(255,255,255,.6)}
.pbar a.cur{filter:brightness(1);box-shadow:0 0 0 2px #fff}
.pband{height:clamp(240px,52svh,520px);margin-top:86px}
.pband .pbg{background-position:50% 0%}
body.proj .stage{margin-top:calc(-1 * clamp(240px,52svh,520px) + 14px)}
body.proj .stage .hero{aspect-ratio:16/9;width:min(100%,calc((100svh - 86px - 14px - 215px)*1.7),1240px)}
.pinfo{width:min(100%,calc((100svh - 86px - 14px - 215px)*1.7),1240px);padding-top:8px}
body.proj main{margin-top:-6px}
body.proj main .build{margin-top:0}
body.proj main .build h2{margin-top:.6rem}
@media(min-width:701px){body.proj main{width:min(100% - 2*clamp(12px,3vw,32px),calc((100svh - 86px - 14px - 215px)*1.7),1240px);max-width:none;padding:14px 0 60px}}
@media(max-width:700px){
.pband{height:auto;margin-top:86px}
.pband .pbg{aspect-ratio:1920/560}
body.proj .stage{margin-top:-26px}
body.proj .stage .hero{aspect-ratio:1/1}body.proj .stage .hero,.pinfo{width:100%}
body.proj main{margin-top:0}
}
@media(min-width:701px){.ctl.fab.back{top:100px;bottom:auto;left:clamp(12px,3vw,28px)}}

@media(max-width:700px){.ctl.fab.back{top:98px;bottom:auto;left:clamp(12px,3vw,28px)}}
body.noscroll .stage{z-index:101}
/* no fade over the viewer: it dimmed the viewer's own buttons */
body.proj .hero::after,body.proj .hero.expanded::after{display:none!important}
/* phone: back arrow inside the viewer box, top-left */
@media(max-width:700px){
body.proj .hero .allp{display:inline-grid;place-items:center;width:48px;height:48px;padding:0;font-size:1.4rem;position:absolute;z-index:2;top:12px;left:12px}
.ctl.fab.back{display:none}
}
/* laptop: back arrow inside the viewer box, top-left (same as phone); floating one removed */
@media(min-width:701px){
body.proj .hero .allp{display:inline-grid;place-items:center;width:48px;height:48px;padding:0;font-size:1.4rem;position:absolute;z-index:2;top:12px;left:12px}
.ctl.fab.back{display:none}
}
html,body,*{scrollbar-width:none!important;-ms-overflow-style:none!important}
html::-webkit-scrollbar,body::-webkit-scrollbar,*::-webkit-scrollbar{display:none;width:0;height:0}
/* short wide screens (phone turned sideways): the height-based sizing above shrank the viewer and text to a sliver */
@media(min-width:701px) and (max-height:520px){
body.proj .stage .hero{aspect-ratio:16/9;width:min(100%,720px)}
body.proj .stage{margin-top:calc(-1 * clamp(240px,52svh,520px) + 104px)}
body.proj main{width:min(100% - 2*clamp(12px,3vw,32px),1000px)}
.vtitle,.pinfo{width:min(100%,1000px)}
}
/* photo grid as flexbox: same columns as before, but a partly filled last row is centred */
.photos{container-type:inline-size}
.grid{display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-start;gap:12px}
.grid button{flex:0 0 100%;width:auto}
@container (min-width:612px){.grid button{flex-basis:calc((100% - 12px)/2)}}
@container (min-width:924px){.grid button{flex-basis:calc((100% - 24px)/3)}}
@container (min-width:1236px){.grid button{flex-basis:calc((100% - 36px)/4)}}
