/* Site v7, "One night" on film (board, 25 Oct 2026: high-fidelity photos and video, motion on the level of
   Awwwards winners; reference forgeautomotive.co.uk). Base styles are the still page (no script, reduced motion,
   Pause motion). html.film is set by film.js when the film runs: scenes pin and everything moves. */

@font-face { font-family: "Schibsted Grotesk"; font-weight: 400; font-display: swap; src: url(/fonts/schibsted-grotesk-latin-400.woff2) format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 500; font-display: swap; src: url(/fonts/schibsted-grotesk-latin-500.woff2) format("woff2"); }

:root { --bar-h: 60px; }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--void); color: var(--paper); }
body { font: 400 var(--text-body)/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
h1 { font-size: clamp(44px, 7.4vw, 120px); line-height: 0.98; letter-spacing: -0.045em; }
h2 { font-size: clamp(36px, 5.4vw, 88px); line-height: 1; letter-spacing: -0.04em; }
h3 { font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; max-width: 34em; }
a { color: inherit; }
.small { font-size: 14px; color: var(--dim); }
.lede { font-size: clamp(19px, 1.6vw, 24px); color: var(--paper); text-shadow: 0 1px 18px rgb(0 0 0 / 0.6); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 99; background: var(--paper); color: var(--void); padding: 8px 12px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.key { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; white-space: nowrap; text-decoration: none; font: 500 15px/1 var(--sans); background: var(--paper); color: var(--void); }
.link { font-weight: 500; text-underline-offset: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.wm { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w { display: inline-block; }
.cover { width: 100%; height: 100%; object-fit: cover; }

/* chrome */
.bar { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--bar-h); display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(16px, 3vw, 40px); mix-blend-mode: difference; color: #fff; }
.bar .key { background: #fff; color: #000; min-height: 34px; font-size: 13px; padding: 0 14px; }
.bar-links { display: flex; align-items: center; gap: 22px; font-size: 13px; }
.bar-links a:not(.key) { text-decoration: none; }
.bar-pause { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.hud { position: fixed; z-index: 40; left: clamp(16px, 3vw, 40px); bottom: 22px; margin: 0; font: 500 14px/1 var(--sans); letter-spacing: 0.01em; color: #fff; mix-blend-mode: difference; opacity: 0; }
.progress { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; height: 2px; background: rgb(255 255 255 / 0.12); }
.progress span { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); mix-blend-mode: difference; }
.grain { position: fixed; inset: -50%; z-index: 45; pointer-events: none; opacity: 0.07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* gate */
.gate { position: fixed; inset: 0; z-index: 80; display: grid; place-content: center; justify-items: center; gap: 26px; text-align: center; background: var(--void); padding: 24px; }
.no-film .gate { display: none; }
/* While the gate is up, the hero waits behind it, so the first paint is the gate alone. */
.gate:not(.is-leaving) ~ main .hero-copy { visibility: hidden; }
/* Behind the gate nothing below the hero is laid out, so nothing below it downloads until Enter. */
.gate:not(.is-leaving) ~ main > .scene:not(.hero), .gate:not(.is-leaving) ~ main > section:not(.scene), .gate:not(.is-leaving) ~ footer { display: none; }
.no-film .gate ~ main > *, .no-film .gate ~ footer { display: revert; }
.no-film .gate ~ main .hero-copy { visibility: visible; }
@media (prefers-reduced-motion: reduce) { .gate ~ main .hero-copy { visibility: visible; } .gate ~ main > *, .gate ~ footer { display: revert; } }
@media (prefers-reduced-motion: reduce) { .gate { display: none; } }
.gate-mark { width: 40px; height: 40px; filter: invert(1); }
.gate-line { font-size: clamp(30px, 4vw, 56px); line-height: 1.05; letter-spacing: -0.03em; max-width: 14em; }
.gate-enter { font: 500 15px/1 var(--sans); color: var(--paper); background: none; border: 1px solid rgb(255 255 255 / 0.4); border-radius: 999px; padding: 16px 40px; cursor: pointer; letter-spacing: 0.02em; }
.gate-enter:hover { background: var(--paper); color: var(--void); }
.gate-small { font-size: 13px; color: var(--dim); }
.gate-still { font: inherit; color: inherit; background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 0; }

/* scenes: still layout first */
.scene { position: relative; }
.pin { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; }
.media { position: absolute; inset: 0; }
.shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(11 12 14 / 0.25), rgb(11 12 14 / 0.75)); }

.hero-copy { position: relative; z-index: 2; min-height: 100svh; display: grid; align-content: end; gap: 22px; padding: 0 clamp(16px, 4vw, 64px) clamp(56px, 9vh, 110px); max-width: 1100px; }

.tunnel-bg video { filter: brightness(0.35) saturate(0.8); }
.cloud { position: absolute; inset: 0; pointer-events: none; }
.cloud img { position: absolute; left: 50%; top: 50%; width: clamp(110px, 12vw, 200px); height: auto; border-radius: 4px; box-shadow: 0 30px 60px rgb(0 0 0 / 0.45); opacity: 0.0; }
.tunnel-copy { position: relative; z-index: 3; min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 22px; text-align: center; padding: 0 24px; }
.tunnel-copy p { color: var(--dim-2); }
.tunnel-copy::before { content: ""; position: absolute; inset: 18% 4%; z-index: -1; background: radial-gradient(closest-side, rgb(11 12 14 / 0.85), rgb(11 12 14 / 0)); }
.no-film .cloud img { opacity: 0.25; }

.rooms-pin { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.rooms-copy { position: relative; padding: calc(var(--bar-h) + 6vh) clamp(16px, 4vw, 64px) 8vh; display: grid; align-content: center; }
.room-text { display: grid; gap: 14px; margin-bottom: 40px; }
.room-text p { color: var(--dim-2); font-size: clamp(17px, 1.3vw, 20px); }
.rooms-frame { position: relative; min-height: 100svh; }
.room-pic { position: absolute; inset: 0; overflow: hidden; }
.room-pic[data-pic="2"] img { filter: brightness(1.35); }

.night-pin { background: var(--void); }
.night-layer { position: absolute; inset: 0; }
.night-layer[data-layer="street"] img { filter: brightness(0.7); }
.night-shade { position: absolute; inset: 0; background: rgb(11 12 14 / 0.35); }
.square { position: absolute; left: 50%; top: 50%; width: min(38vmin, 340px); aspect-ratio: 1; margin: 0; translate: -50% -50%; overflow: hidden; border-radius: 6px; z-index: 2; }
.beat { position: relative; z-index: 3; padding: 12vh clamp(16px, 4vw, 64px); display: grid; gap: 18px; max-width: 980px; }
.beat p { color: var(--dim-2); font-size: clamp(17px, 1.3vw, 20px); }
.beat .said { color: var(--paper); font: 500 clamp(40px, 6vw, 96px)/1 var(--sans); letter-spacing: -0.045em; max-width: 12em; }
.beat .said u { text-decoration-thickness: 3px; text-underline-offset: 0.12em; }
.note { margin: 6px 0 0; background: var(--paper); color: var(--void); border-radius: 4px; padding: 26px 28px; max-width: 30em; }
.note figcaption { font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.note p { color: var(--void); font: 400 clamp(20px, 1.9vw, 27px)/1.35 var(--sans); max-width: none; }

.ask { background: var(--paper); color: var(--void); }
.ask-pin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--paper); }
.ask-photo { position: relative; min-height: 60svh; }
.ask-side { display: grid; align-content: center; gap: 18px; padding: calc(var(--bar-h) + 3vh) clamp(16px, 4vw, 64px) 5vh; }
.ask-side h2 { font-size: clamp(32px, 4.2vw, 68px); }
@media (min-width: 861px) {
  .ask-side { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); column-gap: 20px; align-items: center; }
  .ask-side > h2, .ask-side > p { grid-column: 1 / -1; }
  .ask-side .pass { grid-template-columns: 1fr; max-width: 220px; }
  .ask-side .qr { width: 100%; height: auto; }
}
.ask-side > p { color: var(--ink-2); }
.ask-card { background: var(--void); color: var(--paper); border-radius: 20px; padding: 26px; display: grid; gap: 18px; max-width: 420px; }
.ask-q { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; font-weight: 500; }
.ask-keys { display: grid; gap: 10px; justify-items: center; }
.yes-key { position: relative; width: 100%; min-height: 54px; border: 0; border-radius: 14px; background: none; color: var(--void); font: 500 16px/1 var(--sans); cursor: pointer; isolation: isolate; overflow: hidden; }
.yes-key::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--amber); transform-origin: left center; transition: transform 300ms cubic-bezier(.22,1,.36,1); }
.not-now { background: none; border: 0; color: var(--paper); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 6px; }
.ask-record { min-height: 1.4em; color: var(--dim-2); font-size: 15px; }
.ask-card.is-yes .yes-key { color: var(--paper); pointer-events: none; box-shadow: inset 0 0 0 1px var(--line-on-void); }
.ask-card.is-yes .yes-key::before { transform: scaleX(0); }
.ask-card.is-yes .not-now { visibility: hidden; }

.screens-pin { padding: calc(var(--bar-h) + 8vh) clamp(16px, 4vw, 64px) 10vh; display: grid; gap: 6vh; align-content: center; }
.big-film { display: none; }
.screens-copy { display: grid; gap: 16px; max-width: 760px; }
.screens-copy p { color: var(--dim-2); }
.devices { display: grid; grid-template-columns: 1.6fr 1fr 0.42fr; gap: clamp(16px, 3vw, 48px); align-items: end; }
.device { margin: 0; display: grid; gap: 12px; }
.device .frame { display: block; border: 2px solid var(--paper); background: var(--void); overflow: hidden; }
.device .frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.device figcaption { font-size: 13px; color: var(--dim); }
.tv .frame { aspect-ratio: 16 / 9; border-radius: 10px; padding: 6px; }
.laptop .frame { aspect-ratio: 16 / 10; border-radius: 10px 10px 2px 2px; padding: 6px 6px 8px; }
.phone .frame { aspect-ratio: 9 / 19; border-radius: 26px; padding: 7px; }
.tv .frame img, .laptop .frame img { border-radius: 4px; }
.phone .frame img { border-radius: 19px; }

.bills { background: var(--paper); color: var(--void); }
.bills-pin { display: grid; align-content: center; gap: 4vh; padding: calc(var(--bar-h) + 6vh) clamp(16px, 4vw, 64px) 10vh; background: var(--paper); }
.bills-h { font-size: clamp(36px, 5.4vw, 88px); color: var(--void); }
.bill-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.06em; font: 500 clamp(40px, 7.2vw, 120px)/1.02 var(--sans); letter-spacing: -0.05em; }
.bill-list li { position: relative; width: fit-content; color: var(--ink-2); white-space: nowrap; }
.bill-list li::after { content: ""; position: absolute; left: -0.04em; right: -0.04em; top: 54%; height: 0.07em; background: var(--void); transform-origin: left center; transform: scaleX(var(--s, 1)); }
.bills-own { font: 500 clamp(22px, 2.4vw, 36px)/1.2 var(--sans); letter-spacing: -0.02em; max-width: 22em; }

.setup-copy { position: relative; z-index: 2; min-height: 100svh; display: grid; align-content: end; gap: 18px; padding: calc(var(--bar-h) + 2vh) clamp(16px, 4vw, 64px) 9vh; max-width: 900px; }
.steps { margin: 0; padding-left: 1.2em; display: grid; gap: 12px; font-size: clamp(18px, 1.5vw, 22px); }
.setup .media video { filter: brightness(0.55); }

.close-pin { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: 4vw; padding: calc(var(--bar-h) + 4vh) clamp(16px, 4vw, 64px) 10vh; }
.close-bg video { filter: blur(6px) brightness(0.4); transform: scale(1.06); }
.close-mark { position: relative; z-index: 2; width: min(100%, 360px); justify-self: center; overflow: visible; }
.close-mark path { fill: none; stroke: var(--paper); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.close-mark circle { fill: var(--paper); transform-box: fill-box; transform-origin: center; }
.close-copy { position: relative; z-index: 2; display: grid; gap: 22px; }
.close-copy p:not(.actions) { color: var(--dim-2); }

.facts { background: var(--paper); color: var(--void); padding: 12vh clamp(16px, 4vw, 64px); display: grid; gap: 32px; }
.fact-list { margin: 0; display: grid; grid-template-columns: minmax(8em, 16em) minmax(0, 40em); gap: 14px 32px; }
.fact-list dt { font-weight: 500; }
.fact-list dd { margin: 0; color: var(--ink-2); }
.credits { color: var(--ink-2); max-width: 60em; }
.foot { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; padding: 40px clamp(16px, 4vw, 64px) 56px; color: var(--dim); }
.foot-links { display: flex; gap: 20px; margin-left: auto; }

/* the guest pass the Yes makes */
.pass { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; margin: 0; max-width: 420px; padding: 16px; background: #fff; color: var(--void); border: 1px solid var(--line-on-paper); border-radius: 14px; }
.pass figcaption { display: grid; gap: 2px; font-size: 14px; color: var(--ink-2); }
.pass b { font-size: 20px; font-weight: 500; color: var(--void); }
.qr { width: 96px; height: 96px; }
.qr path { fill: var(--void); }
.film .pass { opacity: 0; transform: translateY(16px); transition: opacity 300ms linear, transform 500ms cubic-bezier(.22,1,.36,1); }
.film .ask-side:has(.is-yes) .pass { opacity: 1; transform: none; }

/* the waitlist */
.join-sec { background: var(--paper); color: var(--void); padding: 14vh clamp(16px, 4vw, 64px) 10vh; display: grid; gap: 22px; scroll-margin-top: var(--bar-h); }
.join-sec > p { color: var(--ink-2); font-size: clamp(18px, 1.5vw, 22px); }
.join { display: grid; gap: 22px; max-width: 760px; }
.join-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.lab { font-size: 14px; color: var(--ink-2); }
.join input[type=email], .join select { font: 400 17px/1.2 var(--sans); padding: 14px 14px; border: 1px solid var(--line-on-paper); border-radius: 10px; background: #fff; color: var(--void); width: 100%; }
.interest { border: 0; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.interest label { display: flex; gap: 8px; align-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.join-ask { display: grid; gap: 12px; padding: 22px; background: var(--void); color: var(--paper); border-radius: 18px; max-width: 460px; }
.join-ask .ask-q { font-size: 20px; }
.join-yes { min-height: 52px; border: 0; border-radius: 12px; background: var(--paper); color: var(--void); font: 500 16px/1 var(--sans); cursor: pointer; width: 100%; }
.join .small a { color: inherit; }
.join-sec .small { color: var(--ink-2); }

/* film mode: pinned scenes are full-screen stages; film.js drives them */
.film .hud { opacity: 1; }
.film .pin { height: 100vh; height: 100svh; }
.film .hero-copy, .film .tunnel-copy, .film .setup-copy { position: absolute; inset: 0; min-height: 0; }
.film .rooms-copy { height: 100svh; }
.film .room-text { position: absolute; left: clamp(16px, 4vw, 64px); right: 8%; top: 50%; translate: 0 -50%; margin: 0; }
.film .rooms-frame { height: 100svh; min-height: 0; }
.film .beat { position: absolute; left: 0; right: 0; bottom: 0; }
.film .beat[data-beat="stop"], .film .beat[data-beat="fix"] { top: 0; bottom: auto; padding-top: calc(var(--bar-h) + 8vh); }
.film .ask-pin { height: 100svh; }
.film .ask-photo { min-height: 0; }
.film .big-film { display: block; position: absolute; z-index: 5; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 0 0; }
.film .bills-pin, .film .close-pin, .film .screens-pin { height: 100svh; }

@media (max-width: 860px) {
  .bar-links a[href="#facts"], .bar-links .key { display: none; }
  .rooms-pin, .ask-pin, .close-pin { grid-template-columns: 1fr; }
  .rooms-frame { min-height: 60svh; }
  .film .rooms-pin { grid-template-rows: 46svh 1fr; }
  .film .rooms-frame { height: 46svh; grid-row: 1; }
  .film .rooms-copy { height: auto; grid-row: 2; padding-top: 4vh; }
  .film .room-text { top: 22%; translate: none; }
  .film .ask-pin { grid-template-rows: 34svh 1fr; }
  .ask-photo { min-height: 34svh; }
  .ask-side { padding-top: 3vh; gap: 12px; }
  .ask-side > p { font-size: 15px; }
  .steps { font-size: 16px; gap: 8px; }
  .setup .small { display: none; }
  .close-mark { width: 120px; }
  .cloud img { width: 20vw; }
  .hero-media video { filter: brightness(1.35); object-position: 50% 42%; }
  .bill-list { font-size: 9vw; }
  .screens-pin { padding: calc(var(--bar-h) + 2vh) 16px 4vh; gap: 3vh; }
  .screens-copy p { font-size: 15px; }
  .devices { grid-template-columns: 1fr 0.34fr; align-items: end; }
  .devices .tv { grid-column: auto; }
  .devices .laptop { display: none; }
  .fact-list { grid-template-columns: 1fr; gap: 4px; }
  .join-row { grid-template-columns: 1fr; }
  .fact-list dd { margin-bottom: 14px; }
  .hud { bottom: 16px; }
}
