@font-face { font-family: 'Marcellus'; src: url('assets/Marcellus-Regular.ttf?v=2ce64972') format('truetype'); font-weight: 400; font-display: block; }
:root { --ground: #14202C; --text: #E8E3D8; --hair: #E8E3D8; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--ground); }
body { font-family: 'Marcellus', serif; color: var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }

.hero { position: relative; width: 100vw; height: 100vh; min-height: 560px; overflow: hidden; background: var(--ground); }
#c { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.grain { position: absolute; inset: 0; pointer-events: none; background-size: 200px 200px; mix-blend-mode: normal; }
.hair { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* the poster (round 24): the design as the first paint, an image in the html, filling the hero by the canvas's own cropping rule (a cover fit, centred on the scene); the grain, the logo and the rest lie over it;
   it dissolves off the canvas when that has drawn its first frame. The background is a tiny blurred stand-in (a data uri set in the head) for the first moments on a slow connection. */
.poster { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background-size: cover; background-position: 50% 50%; background-repeat: no-repeat; pointer-events: none; }
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 50%; }
html:not(.poster-on) .poster { display: none; }
.hero.pre .hair, .hero.pre .navx, .hero.pre .navplates { visibility: hidden; }

.nav { position: absolute; left: 0; right: 0; top: 0; height: 84px; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; z-index: 3; }
.logo { display: block; height: 46px; }
.logo svg { height: 100%; width: auto; display: block; }
.links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 44px; }
.links a { color: var(--text); text-decoration: none; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; opacity: .92; }
.navr { width: 190px; }

.copy { position: absolute; left: 64px; bottom: 58px; z-index: 3; }
h1 { font-weight: 400; font-size: clamp(64px, 8.6vw, 136px); line-height: .98; letter-spacing: -.012em; }
.sub { margin-top: 22px; font-size: 20px; letter-spacing: .01em; opacity: .86; }

.copy.sr-only { left: 0; right: auto; bottom: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; pointer-events: none; }

@media (max-width: 760px) {
  .nav { padding: 0 20px; height: 70px; }
  .logo { height: 26px; }
  .links { gap: 18px; }
  .links a { font-size: 11px; letter-spacing: .14em; }
  .navr { display: none; }
  .nav { gap: 16px; }
  .links { position: static; transform: none; }
  .copy { left: 22px; bottom: 44px; right: 22px; }
  .sub { font-size: 16px; }
}
@media (max-width: 540px) { .links { display: none; } .menu { display: block !important; } }
.menu { display: none; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }

/* ---- nav "Carved on the beam" (nav.js; scene n2h only: other scenes keep the old top bar). Hover = the word turns icy blue and a fine underline fades in (round 19: no hairline in the gaps between the pillars). ---- */
@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }
.navx { position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: 3; pointer-events: none; }
.navplates { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
/* a link: an invisible hit box (at least 44 x 44) with the lettering centred in it; --p is the hover amount, 0..1 */
.nl { position: absolute; display: flex; align-items: center; box-sizing: border-box; height: 44px; min-width: 44px; pointer-events: auto; text-decoration: none;
  font-family: 'Marcellus', serif; font-weight: 400; text-transform: uppercase; -webkit-tap-highlight-color: transparent; outline: none; transition: --p .32s cubic-bezier(.2, .7, .2, 1); }
.nl .t { display: block; line-height: 1; white-space: nowrap; font-size: var(--fs); letter-spacing: var(--ls); margin-right: calc(var(--ls) * -1);
  color: #E8E3D8; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 7px; }
.nl.on .t { color: #B6DFED; text-decoration-color: #B6DFED; }                 /* no colour-mix: the lit word snaps to blue with its underline */
@supports (color: color-mix(in srgb, red 50%, blue)) {
  .nl .t, .nl.on .t { color: color-mix(in srgb, #B6DFED calc(var(--p) * 100%), #E8E3D8); text-decoration-color: color-mix(in srgb, #B6DFED calc(var(--p) * 100%), transparent); }
}
.nl:focus-visible .t { text-decoration-color: #B6DFED; }                         /* keyboard focus: always underlined */
