/* LOWM Brand Design Language v1.0. One sealed concrete hall with his mark cut through the wall, then black space, a mirror floor and one thread of light. */
@font-face { font-family: "LOWM Serif"; src: url("fonts/LibreCaslonDisplay.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "LOWM Sans"; src: url("fonts/HankenGrotesk-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --black: #0a0a0a;
  --paper: #f7f7f5;
  --stone: #dcdad6;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --serif: "LOWM Serif", Georgia, "Times New Roman", serif;
  --sans: "LOWM Sans", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--black); }
body { margin: 0; background: var(--black); color: var(--paper); font-family: var(--sans); font-size: 18px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; }

#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; background: var(--black); }

.top { position: fixed; inset: 0 0 auto; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: max(18px, env(safe-area-inset-top, 0px)) var(--gutter-r) 10px var(--gutter-l); font-size: 15px; color: var(--paper); transition: opacity 900ms var(--ease); opacity: 0; }
.top.on { opacity: 1; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 18px; text-decoration: none; }
.brand svg { width: 22px; height: 22px; }
.enquire { text-decoration: none; }
.enquire:hover, .brand:hover { opacity: 0.7; }

/* The thread, small, across the top. Each tick is a project. */
.dial { position: absolute; left: 50%; top: max(14px, env(safe-area-inset-top, 0px)); width: 168px; height: 24px; margin-left: -84px; transition: opacity 700ms var(--ease); }
body.athero .dial { opacity: 0; pointer-events: none; }
.dial svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dial a { position: absolute; top: 0; width: 26px; height: 24px; margin-left: -13px; }
@media (max-width: 720px) { .dial { display: none; } }

/* Scroll is only ever the camera or the light moving: each section is exactly as long as its move, and the words stay still on screen */
main { position: relative; }
.ch { position: relative; }
.ch[data-kind="hero"] { height: 130vh; height: 130svh; }
.ch[data-kind="project"] { height: 100vh; height: 100svh; }
.ch[data-kind="words"] { height: 110vh; height: 110svh; }
.ch[data-kind="end"] { height: 180vh; height: 180svh; }
.pin { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.pin a { pointer-events: auto; }

/* Under the bars, as his lockup has it: cut into the wall they are cut through */
.name { position: absolute; left: 0; top: 0; margin: 0; white-space: nowrap; font-family: var(--serif); line-height: 1; letter-spacing: 0.002em; color: var(--paper); opacity: 0; transform: translate(-50%, -50%); }
.byline { position: absolute; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 40px); bottom: max(22px, env(safe-area-inset-bottom, 0px)); margin: 0; text-align: center; font-size: 15px; opacity: 0; }

/* Beside each slab, under its logo. A clean grotesque, light and tight. */
.side { position: absolute; display: grid; justify-items: start; align-content: start; gap: calc(12px * var(--k, 1)); opacity: 0; font-size: calc(15px * var(--k, 1)); line-height: 1.42; font-weight: 400; color: #e9e8e4; }
.side p { margin: 0; text-wrap: balance; min-width: 0; }
.side .left { font-size: 1.62em; line-height: 1.16; font-weight: 300; letter-spacing: -0.016em; color: #fff; order: -1; }
.side .fit { color: #b9b8b4; }
.side .link { margin-top: 0.3em; }
.side .link a { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; color: #fff; }
.side .link a::after { content: " \2192"; }
.note { color: #8f8e8a; font-size: 0.86em; }

/* Him, with the whole line seen from above */
.say { position: absolute; display: grid; justify-items: start; align-content: start; gap: calc(22px * var(--k, 1)); opacity: 0; font-size: calc(16px * var(--k, 1)); line-height: 1.5; color: #dcdbd7; }
.say p { margin: 0; text-wrap: balance; min-width: 0; }
.say .states { font-size: calc(52px * var(--k, 1)); line-height: 1.06; font-weight: 300; letter-spacing: -0.024em; color: #fff; }

@media (max-width: 720px) { .say .states { font-size: calc(38px * var(--k, 1)); } }

.last { position: absolute; display: grid; justify-items: start; gap: 18px; opacity: 0; }
.last p { margin: 0; }
.last .states { font-family: var(--serif); font-size: clamp(38px, min(5vw, 9vh), 92px); line-height: 1.04; letter-spacing: -0.01em; text-wrap: balance; }
.legal { position: absolute; left: var(--gutter-l); right: var(--gutter-r); bottom: max(18px, env(safe-area-inset-bottom, 0px)); margin: 0; font-size: 13px; line-height: 1.45; color: var(--stone); opacity: 0; text-wrap: balance; }

body.nogl { background: var(--paper); color: var(--black); }
body.nogl #gl, body.nogl .dial, body.nogl .name { display: none; }
body.nogl .top { color: var(--black); opacity: 1; }
body.nogl .ch { height: auto !important; }
body.nogl .pin { position: static; overflow: visible; padding: 88px var(--gutter-r) 24px var(--gutter-l); }
body.nogl .sr { position: static; width: auto; height: auto; clip-path: none; font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1.1; white-space: normal; }
body.nogl .say, body.nogl .side, body.nogl .last, body.nogl .byline, body.nogl .legal { position: static; width: auto; opacity: 1; color: inherit; padding: 8px 0; display: block; text-align: left; transform: none; }
