:root{
  --bg:#f6f3ec;--paper:#fffdf8;--ink:#00163f;--sub:#4a5675;--line:#dcd6c8;
  --acc:#ff5a36;--dark:#000;--on-dark:#f6f3ec;--muted-dark:#a9a69e;
  --display:"Bricolage Grotesque",system-ui,sans-serif;--body:"Hanken Grotesk",system-ui,sans-serif;
  --r:20px;--r-sm:14px;--edge:clamp(16px,4vw,48px);
}
*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:400 17px/1.55 var(--body)}
a{color:inherit}h1,h2,h3,p,ul,figure{margin:0}ul{padding:0;list-style:none}
img{display:block;max-width:100%}
.wrap{max-width:1320px;margin:0 auto;padding-inline:var(--edge)}

/* nav */
.top{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:84px}
.top .logo img{height:30px;width:auto}
.top nav{display:flex;gap:clamp(16px,3vw,36px);font-weight:500}
.top nav a{text-decoration:none;padding-block:6px}
.top nav a[aria-current]{border-bottom:2px solid var(--ink)}

/* type */
h1,h2,h3{font-family:var(--display);font-weight:650;letter-spacing:-.02em;text-wrap:balance}
h1{font-size:clamp(2.6rem,6.4vw,5.8rem);line-height:.98}
h2{font-size:clamp(2rem,4.2vw,3.6rem);line-height:1.02}
h3{font-size:clamp(1.3rem,2vw,1.6rem);line-height:1.1}
.lead{font-size:clamp(1.08rem,1.4vw,1.3rem);line-height:1.5;color:var(--sub);max-width:34ch}
.btn{display:inline-flex;align-items:center;gap:10px;background:var(--ink);color:var(--bg);text-decoration:none;
  font-weight:600;padding:16px 26px;border-radius:999px;border:0;font:600 1rem/1 var(--body);cursor:pointer}
.btn.light{background:var(--on-dark);color:var(--ink)}
.more{font-weight:600;text-underline-offset:5px;white-space:nowrap}
section{padding-block:clamp(64px,9vw,128px)}

/* hero */
.hero{display:grid;grid-template-columns:1fr 1.25fr;gap:clamp(24px,4vw,72px);align-items:center;padding-block:clamp(8px,2vw,24px) 0}
.hero .copy{display:flex;flex-direction:column;gap:24px;align-items:flex-start}
.hero h1{max-width:11ch}
.hero p{font-size:clamp(1.08rem,1.4vw,1.3rem);color:var(--sub);max-width:30ch}
.vid{position:relative;border-radius:var(--r);overflow:hidden;background:var(--paper);aspect-ratio:16/9}
.vid video{display:block;width:100%;height:100%;object-fit:cover}
.vid .pause{position:absolute;right:14px;bottom:14px;width:40px;height:40px;border-radius:50%;border:0;padding:0;
  background:var(--ink);color:var(--bg);display:grid;place-items:center;cursor:pointer}
.vid .pause svg{width:14px;height:14px;fill:currentColor}

/* film */
.film{display:grid;grid-template-columns:1fr 1.25fr;gap:clamp(32px,6vw,96px);align-items:center}
.film .text{display:flex;flex-direction:column;gap:20px}
.poster{position:relative;display:block;width:100%;aspect-ratio:16/10;border-radius:var(--r);overflow:hidden;background:var(--dark);border:0;padding:0;cursor:pointer}
.poster img{width:100%;height:100%;object-fit:cover;object-position:50% 60%}
.poster .play{position:absolute;left:24px;bottom:24px}
.poster .play svg{width:14px;height:14px;fill:currentColor}
.poster.playing{cursor:auto;background:var(--paper)}.poster video{width:100%;height:100%;object-fit:contain;display:block}
.poster .len{color:var(--sub);font-variant-numeric:tabular-nums;font-weight:500}

/* how it works */
.how{display:grid;grid-template-columns:repeat(2,1fr);gap:clamp(16px,2vw,24px)}
.how>div{background:var(--paper);border-radius:var(--r);padding:clamp(28px,3.5vw,48px);display:flex;flex-direction:column;gap:14px}
.how svg{width:100%;height:auto;max-height:180px;margin-bottom:12px}
.how p{color:var(--sub);max-width:36ch}
.how-head{display:flex;flex-direction:column;gap:18px;margin-bottom:clamp(32px,4vw,56px)}
.d-st{fill:var(--ink)}.d-sug{fill:var(--line)}.d-win{fill:var(--acc)}.d-det{fill:none;stroke:var(--ink);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

/* gram for gram */
.ratio{display:grid;grid-template-columns:auto 1fr;gap:clamp(32px,6vw,96px);align-items:end}
.ratio .big{font:700 clamp(7rem,20vw,17rem)/.8 var(--display);letter-spacing:-.05em;color:var(--acc);font-variant-numeric:tabular-nums}
.ratio .text{display:flex;flex-direction:column;gap:20px;padding-bottom:8px}
.cost{margin-top:clamp(48px,6vw,80px);background:var(--paper);border-radius:var(--r);padding:clamp(24px,3.5vw,44px);display:flex;flex-direction:column;gap:22px}
.cost h3{max-width:28ch}
.bar{display:grid;grid-template-columns:9.5rem 1fr;gap:16px;align-items:center;font-variant-numeric:tabular-nums}
.bar span:first-child{font-weight:600}
.bar i{display:block;height:44px;border-radius:10px;background:var(--line);position:relative}
.bar i b{position:absolute;right:14px;top:50%;transform:translateY(-50%);font-weight:600;font-style:normal;white-space:nowrap}
.bar.gova i{background:var(--acc)}
.cost small{color:var(--sub);font-size:.9rem}

/* applications grid */
.apps-head{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:clamp(28px,4vw,48px)}
.tiles{display:grid;grid-template-columns:1.3fr 1fr 1fr;grid-template-rows:repeat(2,minmax(240px,22vw));gap:clamp(10px,1.4vw,18px)}
.tile{position:relative;border-radius:var(--r-sm);overflow:hidden;text-decoration:none;color:var(--on-dark);background:var(--dark)}
.tile:first-child{grid-row:span 2}
.tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.tile span{position:absolute;left:14px;bottom:14px;background:var(--paper);color:var(--ink);padding:8px 14px;border-radius:999px;font-weight:600;font-size:.95rem}

/* closing */
.close{display:grid;grid-template-columns:1fr 1fr;border-radius:var(--r);overflow:hidden;background:var(--ink);color:var(--on-dark)}
.close .text{padding:clamp(32px,5vw,72px);display:flex;flex-direction:column;gap:22px;align-items:flex-start;justify-content:center}
.close p{color:#c4cbe0;max-width:36ch;font-size:1.1rem}
.close img{width:100%;height:100%;object-fit:cover;min-height:420px}

.supporters h2{font:600 1.15rem/1.3 var(--body);color:var(--sub);margin-bottom:28px}
.supporters ul{display:flex;flex-wrap:wrap;align-items:center;gap:28px clamp(32px,5vw,64px)}
.supporters img{height:44px;width:auto;max-width:170px;object-fit:contain;mix-blend-mode:multiply}
@media (max-width:560px){.supporters ul{gap:24px 32px}.supporters img{height:34px;max-width:130px}}
footer{margin-top:24px;padding-block:56px 36px;border-top:1px solid var(--line);color:var(--sub);font-size:.95rem}
footer .foot{display:grid;grid-template-columns:1.6fr 1fr 1fr;gap:32px;align-items:start}
footer .foot-brand{display:flex;flex-direction:column;gap:14px}
footer img{height:26px;width:auto}
footer nav,footer .foot-contact{display:flex;flex-direction:column;gap:10px}
footer a{text-decoration:none;color:var(--ink)}footer a:hover{text-decoration:underline}
footer .foot-base{display:flex;justify-content:space-between;gap:12px 24px;flex-wrap:wrap;margin-top:44px;padding-top:20px;border-top:1px solid var(--line);font-size:.88rem}
@media (max-width:860px){footer .foot{grid-template-columns:1fr 1fr}footer .foot-brand{grid-column:1/-1}}

/* applications page */
.page-head{display:grid;grid-template-columns:1fr 1fr;gap:clamp(32px,5vw,80px);align-items:end;padding-block:clamp(40px,6vw,88px) clamp(40px,5vw,64px)}
.page-head .text{display:flex;flex-direction:column;gap:22px}
.page-hero{border-radius:var(--r);overflow:hidden;background:var(--dark);aspect-ratio:16/7}
.page-hero img{width:100%;height:100%;object-fit:cover;object-position:50% 55%}
.cat{display:grid;grid-template-columns:minmax(220px,1fr) 3fr;gap:clamp(24px,4vw,64px);padding-block:clamp(48px,6vw,88px);border-top:1px solid var(--line)}
.cat:first-of-type{border-top:0}
.cat h2{font-size:clamp(1.8rem,3vw,2.6rem);position:sticky;top:24px}
.gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(10px,1.4vw,18px)}
.gallery figure{display:flex;flex-direction:column;gap:10px}
.gallery figure.wide{grid-column:span 2}
.gallery img{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:var(--r-sm);background:var(--paper)}
.gallery figure.wide img{aspect-ratio:auto;height:0;flex:1 1 auto;min-height:0}
.gallery figcaption{font-size:.95rem;color:var(--sub)}
.formats{display:grid;grid-template-columns:1fr 1fr;gap:clamp(16px,2vw,24px)}
.formats>div{background:var(--paper);border-radius:var(--r);padding:clamp(28px,3.5vw,48px);display:flex;flex-direction:column;gap:16px}
.formats svg{width:200px;height:160px;margin-bottom:8px}
.formats p{color:var(--sub);max-width:34ch}
.reduce{display:flex;flex-direction:column;gap:14px;margin-top:8px}

/* technology + partner */
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(16px,2vw,24px)}
.steps>div{background:var(--paper);border-radius:var(--r);padding:clamp(24px,3vw,40px);display:flex;flex-direction:column;gap:12px}
.steps .n{font:700 1.1rem/1 var(--display);width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--ink);color:var(--bg);margin-bottom:12px;font-variant-numeric:tabular-nums}
.steps p{color:var(--sub)}
.results{display:grid;grid-template-columns:1fr 1fr;gap:clamp(16px,2vw,24px)}
.results>div{background:var(--paper);border-radius:var(--r);padding:clamp(24px,3.5vw,44px);display:flex;flex-direction:column;gap:18px}
.results h3 small{display:block;font:500 .95rem/1.4 var(--body);color:var(--sub);letter-spacing:0;margin-top:6px}
.rbar{display:grid;grid-template-columns:8.5rem 1fr 4.5rem;gap:14px;align-items:center;font-variant-numeric:tabular-nums}
.rbar i{display:block;height:30px;border-radius:8px;background:var(--bg)}
.rbar i b{display:block;height:100%;border-radius:8px;background:var(--line)}
.rbar.g i b{background:var(--acc)}
.rbar span:last-child{font-weight:600;text-align:right}
.note{color:var(--sub);font-size:.92rem;max-width:70ch;margin-top:clamp(20px,2.5vw,32px)}
.tests{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(24px,3vw,48px)}
.tests>div{background:var(--paper);border-radius:var(--r);padding:clamp(28px,3.5vw,48px);display:flex;flex-direction:column;gap:10px}
.tests svg{width:200px;height:160px;margin-bottom:14px}
.tests p{color:var(--sub)}
.sec-head{display:flex;flex-direction:column;gap:18px;margin-bottom:clamp(32px,4vw,56px)}
.brief{display:grid;grid-template-columns:1fr 1.1fr;gap:clamp(24px,4vw,64px);align-items:start}
.sheet{background:var(--paper);border-radius:var(--r);padding:clamp(24px,3vw,40px);box-shadow:0 1px 0 var(--line);display:flex;flex-direction:column;gap:0}
.sheet h3{margin-bottom:18px}
.sheet dl{margin:0}.sheet dt{color:var(--sub);font-size:.92rem;padding-top:14px;border-top:1px solid var(--line)}
.sheet dd{margin:4px 0 14px;font-weight:600;font-size:1.1rem}
form.enq{display:flex;flex-direction:column;gap:18px}
.enq label{display:flex;flex-direction:column;gap:8px;font-weight:600}
.enq input,.enq textarea{font:400 1rem/1.4 var(--body);color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:14px 16px}
.enq textarea{min-height:120px;resize:vertical}
.enq fieldset{border:0;padding:0;margin:0;display:flex;gap:10px;flex-wrap:wrap}
.enq legend{font-weight:600;margin-bottom:10px}
.enq .opt{flex-direction:row;align-items:center;gap:10px;font-weight:500;background:var(--paper);border:1px solid var(--line);border-radius:999px;padding:10px 16px}
.enq .two{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.enq small{color:var(--sub)}
.enq .hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

@media (max-width:860px){
  .top{min-height:68px}.top nav a.hide-s{display:none}
  .top nav{gap:14px;font-size:.94rem}.top .logo img{height:26px}
  .hero{grid-template-columns:1fr;gap:28px}
  .vid{aspect-ratio:4/5}
  .steps,.tests,.results,.brief{grid-template-columns:1fr}
  .film,.ratio,.close,.page-head,.cat,.formats,.how{grid-template-columns:1fr}
  .ratio{align-items:start}
  .cost .bar{grid-template-columns:1fr;gap:6px}
  .tiles{grid-template-columns:1fr 1fr;grid-template-rows:none;grid-auto-rows:220px}
  .tile:first-child{grid-row:auto;grid-column:span 2}
  .close img{min-height:280px;max-height:340px;order:-1}
  .page-hero{aspect-ratio:4/3}
  .cat h2{position:static}
  .gallery{grid-template-columns:1fr 1fr}
  .gallery figure.wide img{aspect-ratio:4/5;height:auto}
  .gallery figure.wide{grid-column:auto}
  .apps-head{flex-direction:column;align-items:flex-start}
  .enq .two{grid-template-columns:1fr}
  .rbar{grid-template-columns:7rem 1fr 3.6rem;gap:10px}
}

/* sticky nav */
.top{position:sticky;top:0;z-index:20;background:var(--bg);box-shadow:0 0 0 100vmax var(--bg),0 1px 0 100vmax transparent;clip-path:inset(0 -100vmax -1px);transition:min-height .25s ease,box-shadow .25s ease}
.top.scrolled{min-height:64px;box-shadow:0 0 0 100vmax var(--bg),0 1px 0 100vmax var(--line)}
[id]{scroll-margin-top:88px}

/* motion: only with JS and without reduced motion */
@media (prefers-reduced-motion:no-preference){
  html.js .rv{opacity:0;transform:translateY(28px);transition:opacity .7s ease var(--d,0ms),transform .8s cubic-bezier(.2,.7,.2,1) var(--d,0ms)}
  html.js .rv.in{opacity:1;transform:none}
  html.js .rv .d-det{stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset 1.1s cubic-bezier(.4,0,.2,1) calc(var(--d,0ms) + .2s)}
  html.js .rv.in .d-det{stroke-dashoffset:0}
  html.js .rv .d-win{transform-box:fill-box;transform-origin:50% 100%;transform:scale(.4);opacity:0;transition:transform .7s cubic-bezier(.3,1.5,.5,1) calc(var(--d,0ms) + .55s),opacity .3s ease calc(var(--d,0ms) + .55s)}
  html.js .rv.in .d-win{transform:none;opacity:1}
  html.js .rv .bar i,html.js .rv .rbar i b{clip-path:inset(0 100% 0 0 round 10px);transition:clip-path 1s cubic-bezier(.4,0,.2,1) calc(var(--d,0ms) + .25s)}
  html.js .rv .bar i{transition-duration:1.1s}
  html.js .rv .bar.gova i{transition-delay:calc(var(--d,0ms) + 1.2s)}
  html.js .rv .bar i b{opacity:0;transition:opacity .45s ease calc(var(--d,0ms) + 1.1s)}
  html.js .rv .bar.gova i b{transition-delay:calc(var(--d,0ms) + 2.1s)}
  html.js .rv.in .bar i b{opacity:1}
  html.js .rv .bar.gova span{transition:color .4s ease calc(var(--d,0ms) + 2.1s)}
  html.js .rv:not(.in) .bar.gova span{color:var(--sub)}
  html.js .rv.in .bar i,html.js .rv.in .rbar i b{clip-path:inset(0 0 0 0 round 10px)}
  .tile img{transition:transform .6s cubic-bezier(.2,.7,.2,1)}
  .tile:hover img{transform:scale(1.04)}
}

/* analytics consent (live build only) */
.consent{position:fixed;z-index:60;left:var(--edge);bottom:16px;max-width:520px;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:var(--r-sm);padding:16px 18px;display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px}
.consent[hidden]{display:none}.consent p{flex:1 1 240px}
.consent-btns{display:flex;gap:10px}
.btn.ghost{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
.cookie-settings{background:none;border:0;padding:0 0 0 14px;font:inherit;color:inherit;text-decoration:underline;cursor:pointer}
@media (max-width:560px){.consent{right:var(--edge)}}
