/* ---- base ---- */
html{color-scheme:light}
body{margin:0}
img{max-width:100%}
[hidden]{display:none!important}

/* BAFO reference page, one template for every project. One family throughout (Archivo: wide and bold for titles, normal width for text). Bar, closing box and footer are the home page's.
   Layout: a white page head with the project name and its actions over one large rounded photo, the facts as a
   figures row, a photo mosaic that opens into a viewer, and two bordered project cards under a centred intro
   (the card and intro pattern of robinhood.com) before the closing box. */
:root{
  --ink:#0F1115;--text:#2E333B;--grey:#6F7785;--mute:#9BA2AE;--line:#E4E7EC;--mist:#F4F6F9;--white:#FFFFFF;--blue:#094DFF;--blue-d:#0A3FD1;--pale:#E8EEFF;
  /* type: text is Archivo at normal width. Sizes: lead 17-19, body 17, small 15-16, captions 14-15, labels 15 medium */
  --sans:'Archivo',-apple-system,BlinkMacSystemFont,'Helvetica Neue',Helvetica,Arial,sans-serif;
  --wrap:1200px;--gut:clamp(20px,3.4vw,40px);--nav:64px;--r:20px;--top:env(safe-area-inset-top,0px);
  /* every title uses --hd (Archivo, set wide); -w weight, -ls tracking, -k size factor, -st width */
  --hd:var(--sans);--hd-w:600;--hd-ls:-.035em;--hd-k:.92;--hd-st:116%;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-padding-top:calc(var(--nav) + var(--top) + 16px)}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
body{margin:0;background:var(--white);color:var(--ink);font-family:var(--sans);font-stretch:100%;font-size:17px;line-height:1.55;-webkit-font-smoothing:antialiased;overflow-x:hidden}
img,video,canvas{display:block;max-width:100%}
a{color:inherit}
h1,h2,h3,h4,p,dl,dd,ul,ol,figure{margin:0}
ul,ol{padding:0;list-style:none}
:focus-visible{outline:2px solid var(--blue);outline-offset:3px;border-radius:6px}
.w{max-width:var(--wrap);margin-inline:auto;padding-left:max(var(--gut),env(safe-area-inset-left,0px));padding-right:max(var(--gut),env(safe-area-inset-right,0px));box-sizing:content-box}
h1,h2,h3,h4{font-family:var(--hd);font-weight:var(--hd-w);font-stretch:var(--hd-st);letter-spacing:var(--hd-ls);text-wrap:balance}
h2,.h2{font-family:var(--hd);font-weight:var(--hd-w);font-stretch:var(--hd-st);font-size:calc(clamp(28px,3.1vw,40px) * var(--hd-k));line-height:1.14;letter-spacing:var(--hd-ls);text-wrap:balance}
.eyebrow{font-size:15px;line-height:1.3;font-weight:500;color:var(--grey);margin-bottom:10px}
.btn{display:inline-flex;align-items:center;justify-content:center;height:44px;padding:0 28px;border-radius:999px;border:1px solid transparent;background:var(--blue);color:#fff;font:600 15px/1 var(--sans);text-decoration:none;cursor:pointer;transition:background .2s,color .2s,border-color .2s}
.btn:hover{background:var(--blue-d)}
.btn.light{background:#fff;color:var(--ink)}
.btn.light:hover{background:#EEF2FF}
.btn.line{background:none;color:var(--ink);border-color:var(--ink)}
.btn.line:hover{background:var(--ink);color:#fff}
.btn.sm{height:38px;padding:0 20px;font-size:14px}
.tlink{display:inline-flex;align-items:center;min-height:44px;font-size:16px;text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}
.tlink:hover{text-decoration-thickness:2px}
.acts{margin-top:clamp(20px,2.2vw,30px);display:flex;flex-wrap:wrap;align-items:center;gap:8px 24px}
.sec-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px 32px;margin-bottom:clamp(24px,3vw,40px)}
.count{font-size:15px;color:var(--grey);font-variant-numeric:tabular-nums}
.count b{font-weight:500;color:var(--ink)}
.round{width:44px;height:44px;flex:none;padding:0;border-radius:50%;border:1px solid #C9CFD8;background:#fff;color:var(--ink);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:border-color .2s,opacity .2s}
.round:hover{border-color:var(--ink)}
.round:disabled{opacity:.36;cursor:default;border-color:#C9CFD8}

/* ---- bar ---- */
.hdr{position:sticky;top:0;z-index:30;padding-top:var(--top);background:rgba(255,255,255,.9);backdrop-filter:saturate(180%) blur(18px);-webkit-backdrop-filter:saturate(180%) blur(18px);border-bottom:1px solid var(--line)}
.hdr-in{display:flex;align-items:center;min-height:var(--nav);gap:16px}
.logo{display:flex;align-items:center;min-height:44px}
.logo img{height:22px;width:auto}
.menu{display:flex;align-items:center;gap:clamp(18px,2.4vw,32px);margin-left:clamp(20px,3.4vw,48px);font-size:15px;font-weight:500}
.menu a{text-decoration:none;color:var(--ink);min-height:44px;display:inline-flex;align-items:center}
.menu a:hover{color:var(--grey)}
.hdr-r{margin-left:auto;display:flex;align-items:center;gap:8px}
.burger{display:none;width:44px;height:44px;margin-right:-10px;padding:0;border:0;background:none;color:var(--ink);cursor:pointer;align-items:center;justify-content:center}
.hdr.open .i-menu,.hdr:not(.open) .i-close{display:none}
@media (max-width:859px){
  .burger{display:flex}
  .menu{display:none;position:absolute;left:0;right:0;top:100%;margin:0;flex-direction:column;align-items:stretch;gap:0;padding:6px max(var(--gut),env(safe-area-inset-right,0px)) 18px max(var(--gut),env(safe-area-inset-left,0px));background:#fff;border-bottom:1px solid var(--line);font-size:18px}
  .menu a{padding:12px 0;border-top:1px solid var(--line)}
  .menu a:first-child{border-top:0}
  .hdr.open .menu{display:flex}
}
.menu a[aria-current="page"]{text-decoration:underline;text-underline-offset:7px;text-decoration-thickness:1.5px}

/* ---- page head: contract type and project name on the left, the actions on the right, then the building ---- */
.phead{padding:clamp(40px,5vw,72px) 0 clamp(48px,6vw,88px)}
.phead-top{margin-bottom:clamp(22px,2.8vw,38px)}
.phead-top .acts{margin-top:0;padding-bottom:4px}
.phead h1{font-size:clamp(31px,4.7vw,66px);line-height:1.03;letter-spacing:-.045em;outline:none}
.cover{aspect-ratio:2 / 1;max-width:100%;border-radius:var(--r);overflow:hidden;background:var(--mist)}
.cover img{width:100%;height:100%;object-fit:cover}
@media (max-width:859px){.cover{aspect-ratio:16 / 10}}
@media (max-width:559px){.cover{aspect-ratio:4 / 3}}

/* ---- facts: the home page's figures row, one short rule above each ---- */
.facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(28px,3.2vw,44px) clamp(20px,4vw,64px);margin-top:clamp(28px,3.4vw,48px)}
.facts li{min-width:0;padding-top:clamp(16px,1.7vw,24px);border-top:1px solid var(--line)}
.facts strong{display:block;font-family:var(--hd);font-weight:var(--hd-w);font-stretch:var(--hd-st);font-size:calc(clamp(25px,2.7vw,34px) * var(--hd-k));line-height:1.12;letter-spacing:var(--hd-ls);text-wrap:balance;overflow-wrap:break-word;font-variant-numeric:tabular-nums}
.facts span{display:block;margin-top:10px;color:var(--grey);font-size:15px;line-height:1.4}
@media (max-width:859px){.facts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:559px){
  .facts{grid-template-columns:minmax(0,1fr);gap:0;margin-top:20px}
  .facts li{padding:16px 0 18px}
  .facts li:first-child{border-top:0}
  .facts span{margin-top:6px}
}

/* ---- photos: a mosaic in threes (one large with two small, then three in a row), the rest behind one button ---- */
.shots{background:var(--mist);padding:clamp(56px,7vw,104px) 0}
.shots .count{font-size:15px;padding-bottom:6px}
.mos{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-flow:row dense;gap:clamp(8px,1vw,14px)}
.mos li{grid-column:span 2;min-width:0}
.mos li.h{grid-column:span 3}
.mos li.f{grid-column:1 / -1}
.mos li.b{grid-column:span 4;grid-row:span 2}
.mos li.b.r{grid-column:3 / span 4}
.mos li.l2{grid-column:1 / span 2}
.shot{position:relative;display:block;width:100%;aspect-ratio:16 / 10;padding:0;border:0;border-radius:var(--r);overflow:hidden;background:#E6EAF0;cursor:zoom-in}
.shot img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .6s cubic-bezier(.2,.7,.2,1)}
.shot:hover img{transform:scale(1.025)}
.shot:focus-visible{border-radius:var(--r)}
.mos li.b .shot{height:100%;aspect-ratio:auto}
.shots-more{display:flex;justify-content:center;margin-top:clamp(20px,2.6vw,36px)}
@media (max-width:599px){
  .mos{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:row}
  .mos li,.mos li.h,.mos li.l2{grid-column:span 1}
  .mos li.b,.mos li.b.r,.mos li.g1,.mos li.f{grid-column:1 / -1;grid-row:auto}
  .mos li.b .shot{height:auto;aspect-ratio:16 / 10}
  .shot{border-radius:14px}
  .mos li.b .shot,.mos li.g1 .shot,.mos li.f .shot{border-radius:var(--r)}
}

/* ---- viewer: one photo at a time on a light ground, swipe or arrows; a photo is never drawn larger than its file (1600 px) ---- */
.lb{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:var(--white);color:var(--ink);overflow:hidden}
.lb::backdrop{background:rgba(244,246,249,.6)}
.lb-top{position:absolute;z-index:2;left:0;right:0;top:0;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:calc(10px + env(safe-area-inset-top,0px)) max(var(--gut),env(safe-area-inset-right,0px)) 10px max(var(--gut),env(safe-area-inset-left,0px))}
.lb-top .count{font-size:15px}
.lb-strip{display:flex;height:100%;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior:contain;touch-action:pan-x pinch-zoom;outline:none}
.lb-strip::-webkit-scrollbar{display:none}
.lb-s{flex:0 0 100%;min-width:0;display:flex;align-items:center;justify-content:center;scroll-snap-align:center;scroll-snap-stop:always;padding:calc(72px + env(safe-area-inset-top,0px)) clamp(16px,8vw,120px) calc(clamp(24px,6vh,72px) + env(safe-area-inset-bottom,0px))}
.lb-s img{width:min(100%,1600px,calc((100vh - 72px - clamp(24px,6vh,72px) - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)) * 1.6));height:auto;aspect-ratio:16 / 10;object-fit:cover;border-radius:clamp(12px,1.4vw,var(--r));background:var(--mist)}
@supports (height:100dvh){.lb-s img{width:min(100%,1600px,calc((100dvh - 72px - clamp(24px,6vh,72px) - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)) * 1.6))}}
.lb-prev,.lb-next{position:absolute;z-index:2;top:50%;margin-top:-22px}
.lb-prev{left:max(var(--gut),env(safe-area-inset-left,0px))}
.lb-next{right:max(var(--gut),env(safe-area-inset-right,0px))}
@media (max-width:739px){.lb-prev,.lb-next{display:none}.lb-s{padding-left:max(12px,env(safe-area-inset-left,0px));padding-right:max(12px,env(safe-area-inset-right,0px))}}

/* ---- more projects: a centred intro over two bordered cards (previous and next), the photo rising from the card's foot ---- */
.more{padding:clamp(56px,7vw,104px) 0 clamp(40px,5vw,72px)}
.more-head{display:flex;flex-direction:column;align-items:center;text-align:center;margin-bottom:clamp(32px,4vw,56px)}
.more-head h2{max-width:17em}
.more-head .btn{margin-top:clamp(22px,2.4vw,32px)}
.pn{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(12px,2.2vw,32px)}
.pc{display:flex;flex-direction:column;align-items:center;min-width:0;overflow:hidden;padding:clamp(28px,3.6vw,52px) clamp(20px,3.4vw,48px) 0;border:1px solid var(--line);border-radius:var(--r);background:linear-gradient(180deg,var(--white) 0,var(--mist) 52%,#E1E7F0 100%);color:var(--ink);text-align:center;text-decoration:none}
.pc:hover{border-color:#B9C1CE}
.pc-k{display:inline-flex;align-items:center;gap:8px;font-size:15px;line-height:1.3;font-weight:500;color:var(--grey)}
.pc-k svg{flex:none}
.pc-n{display:block;margin-top:10px}
.pc-m{display:block;margin-top:10px;font-size:16px;line-height:1.45;color:var(--text)}
.pc-media{display:block;align-self:stretch;margin-top:clamp(24px,3vw,44px);margin-bottom:-14px;aspect-ratio:16 / 10;border-radius:var(--r) var(--r) 0 0;overflow:hidden;background:#E6EAF0;box-shadow:0 18px 40px rgba(15,17,21,.1);transition:transform .5s cubic-bezier(.2,.7,.2,1)}
.pc:hover .pc-media{transform:translateY(-10px)}
.pc-media img{width:100%;height:100%;object-fit:cover}
@media (max-width:719px){
  .pn{grid-template-columns:minmax(0,1fr)}
  .pc.next{order:-1}
}

/* ---- closing: dash field behind a centred line ---- */
.close{padding:clamp(8px,2vw,32px) 0 clamp(56px,7vw,104px)}
.cta{position:relative;overflow:hidden;display:flex;align-items:center;min-height:clamp(400px,40vw,540px);border-radius:clamp(22px,2.6vw,36px);background:var(--blue);color:#fff}
.cta canvas{position:absolute;inset:0;width:100%;height:100%}
.cta-in{position:relative;z-index:1;max-width:min(100%,700px);padding:clamp(28px,5.4vw,76px)}
.cta h2{font-size:clamp(28px,3.9vw,52px);line-height:1.06}
.cta p{margin-top:18px;max-width:27em;color:rgba(255,255,255,.9);font-size:clamp(17px,1.35vw,19px);line-height:1.5}
.cta .tlink{color:#fff}
@media (max-width:699px){.cta{align-items:flex-start}.cta-in{padding-bottom:320px}}

/* ---- footer: accent colour, contact and e-invoicing, giant wordmark ---- */
.ftr{background:#0B0C0E;color:#fff;overflow:hidden;font-size:15px;line-height:1.55}
.ftr a{color:#fff;text-decoration:none}
.ftr a:hover{text-decoration:underline;text-underline-offset:3px}
.ftr-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.34fr) minmax(0,.34fr);gap:36px clamp(24px,4vw,56px);padding:clamp(44px,5vw,72px) 0 clamp(28px,3vw,44px)}
.ftr h4{margin:0 0 12px;font-size:14px;letter-spacing:-.01em;color:rgba(255,255,255,.6)}
.ftr .big a,.ftr .big span{display:block;font-size:clamp(19px,1.7vw,24px);line-height:1.3;letter-spacing:-.02em}
.ftr .big .gap{margin-top:12px}
.ftr .col a{display:block;padding:3px 0}
.legal{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 28px;padding:16px 0 0;border-top:1px solid rgba(255,255,255,.16);color:rgba(255,255,255,.66);font-size:14px}
.legal nav{display:flex;flex-wrap:wrap;gap:4px 22px}
.wm{display:block;width:100%;aspect-ratio:480/113;margin:clamp(28px,4vw,56px) 0 calc(-1 * clamp(18px,3.4vw,48px));background:#fff;opacity:.4;-webkit-mask:url(assets/wordmark.svg) center/contain no-repeat;mask:url(assets/wordmark.svg) center/contain no-repeat}
@media (max-width:719px){.ftr-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ftr .big{grid-column:1 / -1}}

@media (prefers-reduced-motion:reduce){.btn,.round,.shot img,.pc-media{transition:none}.shot:hover img,.pc:hover .pc-media{transform:none}}

/* ---- entrance: the first screen eases in on load, the rest as it scrolls into view. Only with script and
   only when motion is welcome; without either, everything is simply there. `.rv` is put on by the script and
   taken off again once an element has arrived, so it never fights an element's own hover or state styles ---- */
@media (prefers-reduced-motion:no-preference){
  @keyframes rise{from{opacity:0;transform:translate3d(0,34px,0)}to{opacity:1;transform:none}}
  @keyframes settle{from{transform:scale(1.08)}to{transform:none}}
  @keyframes drop{from{opacity:0;transform:translate3d(0,-12px,0)}to{opacity:1;transform:none}}
  @keyframes rise-s{from{opacity:0;transform:translate3d(0,24px,0) scale(.97)}to{opacity:1;transform:none}}
  @keyframes swap{from{opacity:0}to{opacity:1}}
  .js .hdr{animation:drop .9s cubic-bezier(.16,1,.3,1) both}
  .js .phead .eyebrow{animation:rise 1.1s cubic-bezier(.16,1,.3,1) .1s both}
  .js .phead h1{animation:rise 1.2s cubic-bezier(.16,1,.3,1) .2s both}
  .js .phead .acts{animation:rise 1.2s cubic-bezier(.16,1,.3,1) .3s both}
  .js .phead .cover{animation:rise-s 1.3s cubic-bezier(.16,1,.3,1) .4s both}
  /* another project: its content is simply there, with one short fade; nothing of it waits for a scroll */
  .js .swap{animation:swap .5s cubic-bezier(.2,.6,.2,1) both}
  /* the waiting state has no transition of its own, so an element is never seen fading out first */
  .rv{opacity:0;transform:translate3d(0,30px,0);will-change:opacity,transform}
  .rv.rv-s{transform:translate3d(0,24px,0) scale(.97)}
  .rv.in{opacity:1;transform:none;transition:opacity .9s cubic-bezier(.2,.6,.2,1),transform 1.15s cubic-bezier(.16,1,.3,1);transition-delay:calc(var(--i,0) * 85ms)}
  /* for an element whose own opacity is not 1: it only slides */
  .rv-t{transform:translate3d(0,40px,0);will-change:transform}
  .rv-t.in{transform:none;transition:transform 1.3s cubic-bezier(.16,1,.3,1)}
}

/* ---- wide screens: the column and the type grow in the home page's three steps, so a 1920 or 2560 screen is used
   rather than showing the 1440 layout with wider margins ---- */
@media (min-width:1680px){
  :root{--wrap:1320px;--hd-k:1}
  body{font-size:18px}
  .eyebrow{font-size:16px}
  .phead h1{font-size:74px}
  .pc-k{font-size:16px}
  .pc-m{font-size:17px}
  .cta p{font-size:20px}
  .cta{min-height:580px}
  .cta h2{font-size:58px}
  .cta-in{max-width:780px}
}
@media (min-width:1920px){
  :root{--wrap:1440px;--hd-k:1.06}
  .phead h1{font-size:82px}
  .cta p{font-size:21px}
  .cta{min-height:620px}
  .cta h2{font-size:64px}
  .cta-in{max-width:860px}
}
@media (min-width:2400px){
  :root{--wrap:1680px;--hd-k:1.22;--nav:76px}
  body{font-size:20px}
  .eyebrow{font-size:18px}
  .logo img{height:27px}
  .menu{font-size:17px}
  .btn{height:52px;padding:0 34px;font-size:17px}
  .btn.sm{height:44px;padding:0 24px;font-size:16px}
  .tlink{font-size:18px}
  .phead h1{font-size:98px}
  .facts span,.count,.shots .count,.lb-top .count{font-size:17px}
  .pc-k{font-size:18px}
  .pc-m{font-size:19px}
  .round{width:52px;height:52px}
  .lb-prev,.lb-next{margin-top:-26px}
  .cta p{font-size:24px}
  .cta{min-height:720px}
  .cta h2{font-size:76px}
  .cta-in{max-width:1000px}
  .ftr{font-size:17px}
  .ftr h4,.legal{font-size:16px}
  .ftr .big a,.ftr .big span{font-size:28px}
}


/* ---- page changes: the bar stays, the old page lifts away, the new one rises in (see nav.js) ---- */
@view-transition{navigation:auto}
.hdr{view-transition-name:hdr}
@media (prefers-reduced-motion:no-preference){
  @keyframes pg-out{to{opacity:0;transform:translate3d(0,-12px,0)}}
  @keyframes pg-in{from{opacity:0;transform:translate3d(0,26px,0)}}
  ::view-transition-old(root){animation:pg-out .26s cubic-bezier(.4,0,1,1) both}
  ::view-transition-new(root){animation:pg-in .6s cubic-bezier(.16,1,.3,1) both}
  /* reached from another page of the site: the bar is already there and does not drop in again */
  .nav .hdr{animation:none}
  /* browsers without page transitions of their own: nav.js lifts the old page away, the new one rises in as a whole */
  .leaving body > :not(.hdr){opacity:0;transform:translate3d(0,-12px,0);transition:opacity .2s cubic-bezier(.4,0,1,1),transform .2s cubic-bezier(.4,0,1,1)}
  .nav.no-vt body > :not(.hdr){animation:pg-in .6s cubic-bezier(.16,1,.3,1)}
}
@media (prefers-reduced-motion:reduce){::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}}
