/* Enviz Render
   One page, one typeface, one stylesheet. Dark blue-grey ground, cool white type, grey-blue for the quiet text,
   no accent colour: the renders are the only strong colour on the page. */

@font-face{font-family:"Host Grotesk";src:url("fonts/HostGrotesk.woff2") format("woff2");font-weight:300 700;font-style:normal;font-display:swap}
/* preview only: add ?font=geist or ?font=hanken to the address to compare typefaces */
@font-face{font-family:"Geist";src:url("fonts/Geist.woff2") format("woff2");font-weight:300 700;font-style:normal;font-display:swap}
@font-face{font-family:"Hanken Grotesk";src:url("fonts/HankenGrotesk.woff2") format("woff2");font-weight:300 700;font-style:normal;font-display:swap}

:root{
  /* the palette: ground, raised ground and type as red, green, blue, so veils and glass can be mixed from them */
  --bg-rgb:16,21,28; --panel-rgb:25,33,43; --ink-rgb:238,241,244; --muted:#93a0b0; --faint:#606c7b;
  --bg:rgb(var(--bg-rgb)); --panel:rgb(var(--panel-rgb)); --ink:rgb(var(--ink-rgb)); --hair:rgba(var(--ink-rgb),.13);
  --bar:rgba(var(--panel-rgb),.78); --chip:rgba(var(--bg-rgb),.68); --chip-ink:rgba(var(--ink-rgb),.74); --rule:rgba(var(--ink-rgb),.35); --dim:.34;
  --font:"Host Grotesk",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --edge:clamp(1.25rem,4vw,3.5rem);
  --wide:118rem; --gut:max(var(--edge),calc((100vw - var(--wide)) / 2));
  --ease:cubic-bezier(.22,.8,.2,1);
  --top:5.75rem;
  --dwell:16vh;   /* how long a pinned section is held before the next one starts over it */
  --hold:55vh;    /* the same for the hero: its pictures leave during this stretch and the statement stays (enviz.js, 5b) */
  --grid:rgba(40,84,208,.62);   /* the lines behind the pointer: a deep blue */
  color-scheme:dark;
}
/* preview only: add ?pal=ink, ?pal=steel or ?pal=neutral to the address to compare grounds */
:root[data-pal="ink"]{--bg-rgb:11,17,25; --panel-rgb:19,28,40; --ink-rgb:237,241,245; --muted:#8b9bb0; --faint:#586779}
:root[data-pal="steel"]{--bg-rgb:23,28,34; --panel-rgb:33,40,49; --ink-rgb:240,242,244; --muted:#9aa5b1; --faint:#69737f}
:root[data-pal="neutral"]{--bg-rgb:17,17,17; --panel-rgb:27,27,27; --ink-rgb:243,243,241; --muted:#9a9a97; --faint:#6b6b68}
:root[data-font="geist"]{--font:"Geist",ui-sans-serif,system-ui,sans-serif}
:root[data-font="hanken"]{--font:"Hanken Grotesk",ui-sans-serif,system-ui,sans-serif}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
html,body{margin:0}
html{background:var(--bg)}
body{color:var(--ink);font-family:var(--font);font-size:1rem;line-height:1.5;font-weight:500;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-synthesis:none;overflow-x:hidden}
img,video{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit}
h1,h2,h3,p,ol{margin:0}
ol{padding:0;list-style:none}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
::selection{background:var(--ink);color:var(--bg)}
.skip{position:fixed;left:var(--edge);top:-4rem;z-index:80;padding:.7rem 1rem;background:var(--ink);color:var(--bg);transition:top .2s ease}
.skip:focus{top:1rem}

/* type: one weight throughout and small sizes. Hierarchy comes from white against grey, not from scale. */
h1{font-size:clamp(1.7rem,2.3vw,2.9rem);font-weight:500;line-height:1.1;letter-spacing:-.018em}
h2{font-size:clamp(1.4rem,1.75vw,2.2rem);font-weight:500;line-height:1.15;letter-spacing:-.014em}
h3{font-size:clamp(1.02rem,1.1vw,1.3rem);font-weight:500;line-height:1.3;letter-spacing:-.005em}
p{color:var(--muted);font-size:clamp(.98rem,1.05vw,1.25rem);line-height:1.4;max-width:34em;text-wrap:pretty}

/* header: one quiet bar, inset from the edges */
.head{position:fixed;z-index:40;top:0;left:0;right:0;padding:clamp(.75rem,1.6vw,1.25rem) var(--gut) 0;transition:opacity .5s ease;pointer-events:none}
.bar{pointer-events:auto;display:flex;align-items:center;justify-content:space-between;height:3.5rem;padding:0 clamp(1rem,1.6vw,1.5rem);background:var(--bar);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);transition:background .4s ease,-webkit-backdrop-filter .4s ease,backdrop-filter .4s ease}
/* at the very top of the page the bar is clear; it takes its ground once the page has moved (enviz.js, 1) */
.js:not(.moved) .bar{background:transparent;-webkit-backdrop-filter:blur(0);backdrop-filter:blur(0)}
.brand{display:block;width:4.6rem}
.brand svg{display:block;width:100%;height:auto;fill:currentColor}
.nav{display:flex;gap:clamp(1.25rem,2.4vw,2.25rem);font-size:.95rem}
.nav a{color:var(--muted);transition:color .2s ease}
.nav a:hover{color:var(--ink)}

/* hero: three moments of one film side by side, stepped, with the statement beneath them. The side frames stop 45px short
   of the middle one (the left at the foot, the right at the top), so no two edges line up. */
.hero{height:100vh;height:100dvh;min-height:720px;display:flex;flex-direction:column;overflow:hidden;padding:calc(var(--top) + clamp(.5rem,2.5vh,1.75rem)) var(--gut) 0}
.frames{flex:1 1 0;min-height:0;display:grid;grid-template-columns:minmax(0,3fr) minmax(0,5fr) minmax(0,3fr);gap:clamp(.5rem,.8vw,.9rem);transition:opacity .9s ease}
.frame{position:relative;overflow:hidden;height:100%;background:var(--panel)}
.frame:first-child{height:80%;align-self:end;margin-bottom:45px}
.frame:last-child{height:80%;align-self:start;margin-top:45px}
.frame video{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover}
.lead{flex:none;display:flex;align-items:flex-end;justify-content:space-between;gap:3rem;padding:clamp(1.75rem,4.5vh,3rem) 0 clamp(2rem,5.5vh,3.75rem);transition:opacity .9s ease .15s}
.hero h1{font-size:clamp(2rem,3.3vw,4rem);font-weight:500;line-height:1.08;letter-spacing:-.022em;max-width:16em;text-wrap:balance}
.hero .sub{font-size:clamp(1.3rem,1.8vw,2.15rem);font-weight:500;line-height:1.27;letter-spacing:-.012em;max-width:27em;text-wrap:pretty}
.hero .sub{margin-top:.75em}
.cred{display:flex;align-items:center;gap:.7rem;margin-top:clamp(1.25rem,3vh,2rem);font-size:.9rem;color:var(--muted)}
.cred::before{content:"";flex:none;width:.5rem;height:.5rem;background:var(--ink)}
.start{flex:none;display:inline-flex;align-items:center;gap:.6rem;padding-bottom:.3rem;border-bottom:1px solid rgba(var(--ink-rgb),.4);font-size:.98rem;transition:border-color .25s ease,gap .35s var(--ease)}
.start:hover{border-color:var(--ink);gap:.9rem}
.start svg{flex:none}
.pre .frames,.pre .lead{opacity:0}
/* the hero while it is held (enviz.js, 5b): the middle film opens to the full window behind the words, darkened from the left */
.hero .lead{position:relative;z-index:2}
/* at the top only the headline shows; the rest comes in as the page moves (enviz.js, 5b). The frames reach down into the room the rest will take. */
[data-hold=grow] .hero .frames{margin-bottom:calc(-1 * var(--drop,0px))}
[data-hold=grow] .hero .frame:nth-child(2){position:static;overflow:visible;background:none}
[data-hold=grow] .hero .frame:nth-child(2) video{clip-path:inset(var(--ct,0) var(--cr,0) var(--cb,0) var(--cl,0))}
[data-hold=grow] .hero::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;opacity:var(--veil,0);background:linear-gradient(90deg,rgba(var(--bg-rgb),.9),rgba(var(--bg-rgb),.72) 45%,rgba(var(--bg-rgb),.35))}
[data-hold=grow] .hero .sub{color:rgba(var(--ink-rgb),.78)}

/* a full-width picture with a few words on it */
.bleed{position:relative;min-height:100svh;display:flex;align-items:center;margin-top:clamp(4.5rem,11vh,8rem);overflow:hidden;isolation:isolate}
.bleed .bg{position:absolute;inset:0;z-index:-2;width:100%;height:100%;max-width:none;object-fit:cover}
.bleed::before{content:"";position:absolute;inset:0;z-index:-1;background:rgba(var(--bg-rgb),.72)}

/* the building's life in three points on a line */
.life-in{width:100%;padding:clamp(6rem,14vh,9rem) var(--gut);text-align:center}
.life-in>p{margin:.6rem auto 0;max-width:27em}
.points{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-width:66rem;margin:clamp(3.5rem,12vh,7.5rem) auto 0}
.points::after{content:"";position:absolute;left:16.667%;right:16.667%;bottom:calc(.225rem - .5px);height:1px;background:rgba(255,255,255,.4)}
.points li{display:flex;flex-direction:column;align-items:center;padding:0 clamp(.75rem,2vw,2rem)}
.points li p{flex:1;margin-top:.35rem;max-width:18em;font-size:clamp(.9rem,.95vw,1.1rem)}
.points li::after{content:"";position:relative;z-index:1;width:.45rem;height:.45rem;margin-top:1.5rem;background:var(--ink)}

/* sections */
.sec{padding:clamp(4.5rem,11vh,8rem) var(--gut) 0}
/* a section's title: the heading and a few words alone in a full window, with nothing around them */
.title{height:100vh;height:100svh;min-height:520px;display:flex;align-items:center;padding:var(--top) var(--gut) 0}
.title-in{width:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:clamp(1.25rem,2.4vw,2.25rem);align-items:start}
/* pinned: the hero and the titles stay where they are while the next section slides up over them. Nothing has a solid
   ground, so enviz.js (5) clips away the part of a pinned section that the next one has reached. */
:where(.pin + *,.pin + .at + *){position:relative}   /* :where keeps this weaker than the pin itself, which may follow another pin */
.pin{position:sticky;top:0;margin-bottom:var(--dwell)}   /* the margin is the pause: that much scrolling passes before the next section starts over it */
.hero.pin{margin-bottom:var(--hold)}
.pin + .bleed{margin-top:0}
.at{height:0}

/* text beside a picture */
.split{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:2rem clamp(2rem,5vw,5rem);align-items:center}
.split .copy p{margin-top:1.1rem;max-width:30em}
.media{position:relative;aspect-ratio:3/2;overflow:hidden;background:var(--panel)}
.media img,.media video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

/* the two tours side by side, each with its name and a line underneath. Clicking a picture opens it to the full width
   (.tours.open, and .on for the one that is open) and puts the other away until it is closed again, with Close above it.
   Each tour turns slowly while small and can be walked once open. */
.st-wrap{position:relative;width:min(100%,calc(76svh * 16 / 9))}
/* the tours fill a whole window too, the pair sitting in the middle of it */
.tours{min-height:100vh;min-height:100svh;display:flex;flex-direction:column;justify-content:center;padding-top:calc(var(--top) + 1rem);padding-bottom:clamp(2rem,5vh,3.5rem)}
.pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2.5rem clamp(1.25rem,2.4vw,2.25rem);align-items:start}
.tour-item{margin:0}
.tour-item figcaption{padding-top:1rem}
.tour-item figcaption p{margin-top:.35rem;max-width:30em;font-size:clamp(.9rem,.95vw,1.1rem)}
/* the section title sits above the two tours, in the same window */
.tours .title-in{margin-bottom:clamp(2rem,6vh,4rem)}
.tours.open .pair{grid-template-columns:minmax(0,1fr)}
.tours.open .tour-item:not(.on){display:none}
.am-frame{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;background:var(--panel);isolation:isolate}
.am-frame img,.am-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block;max-width:none;object-fit:cover}
.am-frame iframe{opacity:0;pointer-events:none;transition:opacity .9s ease;z-index:1}
.am-frame.live iframe{opacity:1}
.tour-item.on .am-frame iframe{pointer-events:auto}
.am-open{position:absolute;inset:0;z-index:3;appearance:none;border:0;padding:0;background:none;cursor:zoom-in;display:flex;align-items:flex-start;justify-content:flex-end}
/* the small outlined label at the top right of each picture: it opens the picture, as a click anywhere on it does */
.walk{appearance:none;display:inline-flex;align-items:center;gap:.55rem;margin:clamp(.6rem,1.1vw,.9rem);padding:.42rem .68rem;border:1px solid rgba(var(--ink-rgb),.42);background:rgba(var(--bg-rgb),.55);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:var(--ink);font-size:.78rem;line-height:1.2;white-space:nowrap;cursor:pointer;transition:border-color .25s ease,background .25s ease}
.walk svg{flex:none;transition:transform .3s var(--ease)}
.walk:hover,.am-open:hover .walk{border-color:rgba(var(--ink-rgb),.8);background:rgba(var(--bg-rgb),.75)}
.walk:hover svg,.am-open:hover .walk svg{transform:translateX(3px)}
.am-open:focus-visible{outline-offset:-4px}
.tour-item.on .am-open{display:none}
.am-bar{display:none;position:absolute;right:0;bottom:100%;align-items:baseline;gap:clamp(1.1rem,2vw,1.9rem);padding-bottom:.95rem}
.tour-item.on .am-bar{display:flex}
.am-close{appearance:none;border:0;background:none;padding:.3rem 0;cursor:pointer;display:flex;align-items:baseline;gap:.45rem;color:var(--muted);font-size:.98rem;transition:color .25s ease}
.am-close::after{content:"\00d7";font-size:1.25em;line-height:.8}
.am-close:hover{color:var(--ink)}

/* four uses in a row: a tall picture each, numbered in the corner, with a name and one line underneath */
/* the four pictures fill one window between them, two over two, touching each other and the edges; each carries its
   words out of sight until the pointer is on it: then the picture goes dark and the words show in white */
.stages{padding:0}
/* a short pause on the four pictures before they scroll up off the close: they stay put while an empty strip at the foot of their holder passes (padding would not count: sticky only moves inside the content box) */
@media (min-width:861px){ .stage-hold::after{content:"";display:block;height:calc(var(--dwell) * .75)} .stage-hold > .stages{position:sticky;top:0} }
.uses{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:50vh;grid-auto-rows:50svh;gap:0}
.use{margin:0;position:relative;overflow:hidden;min-height:260px}
.use .ph{position:absolute;inset:0;overflow:hidden;background:var(--panel)}
.use .ph img,.use .ph video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform 1.4s cubic-bezier(.16,1,.3,1)}
.use:hover .ph img,.use:hover .ph video{transform:scale(1.035)}
/* the words are always there, on a soft shade rising from the lower left corner */
.use::after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse 85% 75% at 0% 100%,rgba(var(--bg-rgb),.86),rgba(var(--bg-rgb),.55) 45%,rgba(var(--bg-rgb),0) 78%)}
.use figcaption{position:absolute;z-index:1;left:var(--edge);right:var(--edge);bottom:clamp(1.5rem,4.5vh,2.75rem)}
.use figcaption p{margin-top:.35rem;max-width:19em;font-size:clamp(.9rem,.95vw,1.1rem);color:rgba(var(--ink-rgb),.8)}
.use:focus-visible{outline-offset:-4px}

/* two pictures side by side, each with a one-word caption */
.duo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2rem clamp(1.25rem,2.4vw,2.25rem)}
.duo figure{margin:0}
.duo figcaption{margin-top:.9rem;font-size:.95rem;color:var(--ink)}

/* work: one project, told plainly */
.work{margin-top:clamp(2rem,4.5vh,3rem);align-items:end}
.work .copy p{margin-top:.6rem}
.shot img{transition:transform 1.4s cubic-bezier(.16,1,.3,1)}
.shot:hover img{transform:scale(1.025)}
.links{display:flex;flex-wrap:wrap;gap:.4rem 1.75rem;margin-top:1.4rem!important}
.go{color:var(--ink);border-bottom:1px solid var(--hair);padding-bottom:.15rem;transition:border-color .2s ease}
.go::after{content:"";display:inline-block;width:.42em;height:.42em;margin-left:.5em;border-top:1px solid currentColor;border-right:1px solid currentColor;transform:translateY(-.12em) rotate(45deg);transition:transform .3s var(--ease)}
.go:hover{border-color:var(--ink)}
.go:hover::after{transform:translate(.18em,-.12em) rotate(45deg)}

/* the close: one line over a picture, and the address */
/* the close: plain ground, waiting underneath while the stage pictures scroll up off it (enviz.js, 5c) */
.cta{position:relative;min-height:100vh;min-height:100svh;display:flex;align-items:center}
.reveal .cta{position:sticky;bottom:0}
.cta-in{width:100%;padding:clamp(6rem,14vh,9rem) var(--gut)}
.cta-in h2{max-width:13em;text-wrap:balance}
.cta-in p{margin-top:.8rem;max-width:25em;color:var(--chip-ink)}
.btn{display:inline-flex;align-items:center;margin-top:clamp(1.5rem,3.5vh,2.25rem);padding:.95rem 1.35rem;border:1px solid rgba(var(--ink-rgb),.3);background:rgba(255,255,255,.14);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);font-size:.98rem;transition:background .25s ease}
.btn:hover{background:rgba(255,255,255,.24);border-color:rgba(var(--ink-rgb),.5)}
.btn:active{transform:translateY(1px)}
.foot{display:flex;flex-wrap:wrap;gap:.5rem 2.5rem;padding:1.5rem var(--gut) 2rem;font-size:.9rem;color:var(--faint)}
.foot a{margin-left:auto;color:var(--muted);transition:color .2s ease}
.foot a:hover{color:var(--ink)}
/* things rise in as they are reached; without scripts everything is simply shown */
.js .fade,.js .stagger>*{opacity:0;transform:translateY(14px);transition:opacity .9s cubic-bezier(.16,1,.3,1),transform 1s cubic-bezier(.16,1,.3,1)}
.js .fade.in,.js .stagger.in>*{opacity:1;transform:none}
.stagger>*:nth-child(2){transition-delay:.08s}.stagger>*:nth-child(3){transition-delay:.16s}.stagger>*:nth-child(4){transition-delay:.24s}

@media (max-width:860px){
  :root{--top:5.25rem}
  .hero{min-height:620px}
  .frames{grid-template-columns:1fr} .frame:first-child,.frame:last-child{display:none}
  .lead{flex-direction:column;align-items:flex-start;gap:1.5rem}
  .nav a:not(:last-child){display:none}
  .nav a{color:var(--ink)}
  .split,.duo,.pair{grid-template-columns:1fr}
  .uses{grid-template-columns:minmax(0,1fr)}
  .title-in{grid-template-columns:1fr;row-gap:1.1rem}
  .split .media{order:-1}
  .am-frame{aspect-ratio:4/5}
  .bleed{min-height:0}
  .points{grid-template-columns:1fr;gap:2.25rem}
  .points::after,.points li::after{display:none}
  .foot{flex-direction:column}
  .foot a{margin-left:0}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition-duration:.01ms!important;animation:none!important}
  .js .fade,.js .stagger>*{opacity:1;transform:none}
}

/* diagonal lines behind the pointer (enviz.js, 4; they began as a drafting grid, hence the names): one layer fixed behind the whole page, the hero included; anything with a picture or a
   solid ground covers it. The lines are there all the time; the mask lets them show only in a soft circle at the pointer. */
.dg{position:fixed;inset:0;z-index:-1;pointer-events:none;opacity:0;--mx:-999px;--my:-999px;
  /* one square tile with a line corner to corner, and half a line in the two other corners so the joins stay whole */
  background-image:linear-gradient(135deg,var(--grid) 0 .5px,transparent .5px calc(50% - .5px),var(--grid) calc(50% - .5px) calc(50% + .5px),transparent calc(50% + .5px) calc(100% - .5px),var(--grid) calc(100% - .5px));background-size:16px 16px;
  -webkit-mask-image:radial-gradient(circle 240px at var(--mx) var(--my),#000,rgba(0,0,0,.45) 40%,transparent);
  mask-image:radial-gradient(circle 240px at var(--mx) var(--my),#000,rgba(0,0,0,.45) 40%,transparent)}
