/* ==========================================================================
   Happy Nordic Living · the site's shared styles
   One grid on every page: twelve columns with the seam after column 5. The North stands on
   columns 1 to 5, Ukraine from 6 on. Two sizes matter, very big and small-crisp, nothing grey
   in between. Big lines cross the seam, so the two halves meet on one line. Things travel sideways.
   Page-specific scenes live in each page's own <style>.
   ========================================================================== */

:root {
  --paper: #EEF0EC; --paper-rgb: 238, 240, 236;
  --ink: #0F1B2D; --ink-rgb: 15, 27, 45;
  --mute: #7D8899;          /* the North half of a two-beat line, on paper */
  --mute2: #566276;         /* small text that steps back */
  --night: #0A1322; --night-rgb: 10, 19, 34;
  --mute-n: #7F8CA2;        /* the North half on the night */
  --wheat: #E2B65A;         /* only on dark grounds */
  --stone: #dfddd6;         /* behind a picture until it loads */
  --line: rgba(var(--ink-rgb), .16);
  --line-n: rgba(var(--paper-rgb), .18);
  --disp: "Inter Tight", "Inter", "Helvetica Neue", Arial, sans-serif;
  --text: "Inter", "Helvetica Neue", Arial, sans-serif;
  --pad: 48px;
  --g: 24px;
  --pitch: calc((100vw - 2 * var(--pad) + var(--g)) / 12);
  --seam: calc(var(--pad) + 5 * var(--pitch) - var(--g) / 2);   /* the middle of the gutter after column 5 */
  --sr: calc(var(--seam) + var(--g) / 2);                      /* where Ukraine starts */
  --H: clamp(44px, 8.2vw, 160px);      /* the biggest lines */
  --T: clamp(38px, 7.2vw, 136px);      /* page and section titles */
  --S: clamp(30px, 4.4vw, 84px);       /* statements */
  --M: clamp(24px, 2.3vw, 40px);       /* the one in-between size: names, rows, post titles */
  --nav-fg: var(--ink);
  --veil-rgb: var(--paper-rgb);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
/* clip, not hidden: overflow-x:hidden on body breaks position:sticky in Chrome */
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
body { font-family: var(--text); font-weight: 400; font-size: 18px; line-height: 1.5; background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
em { font-style: normal; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- language: every translatable run carries all three, the page shows one ---------- */
html[data-lang="en"] [data-l]:not([data-l="en"]),
html[data-lang="uk"] [data-l]:not([data-l="uk"]),
html[data-lang="fi"] [data-l]:not([data-l="fi"]) { display: none !important; }

/* ---------- type ---------- */
.d { font-family: var(--disp); font-weight: 300; letter-spacing: -.042em; line-height: .92; }
.lab { font-family: var(--text); font-weight: 500; font-size: 13.5px; line-height: 1.35; letter-spacing: .005em; color: var(--mute2); }
.cap { font-family: var(--text); font-size: 13.5px; line-height: 1.45; }
.cap b { display: block; font-weight: 500; color: var(--ink); }
.cap .s { color: var(--mute2); }
.lead { font-size: clamp(20px, 1.6vw, 26px); line-height: 1.36; letter-spacing: -.008em; text-wrap: balance; }
.prose { font-size: 18px; line-height: 1.62; max-width: 33em; text-wrap: pretty; }
.prose p + p { margin-top: .9em; }
.prose.mute { color: var(--mute2); font-size: 17px; }
.num .ts { display: inline-block; width: .27em; }

/* two-beat lines: the North half steps back in grey-blue, the Ukrainian half is full ink.
   .a hangs from the page margin, .b from the seam. */
.tt { font-family: var(--disp); font-weight: 300; font-size: var(--T); line-height: .93; letter-spacing: -.044em; }
.say { font-family: var(--disp); font-weight: 300; font-size: var(--S); line-height: .98; letter-spacing: -.036em; }
.tt .a, .tt .b, .say .a, .say .b { display: block; text-wrap: balance; }
.tt .a, .say .a { padding: 0 var(--pad) 0 calc(var(--pad) - .05em); color: var(--mute); }
.tt .b, .say .b { padding: 0 var(--pad) 0 calc(var(--sr) - .05em); }
.night .tt .a, .night .say .a { color: var(--mute-n); }
[data-meet] .a, [data-meet] .b { will-change: transform; }

/* ---------- nav: the logo left, five pages and the languages right ---------- */
.skip { position: fixed; left: var(--pad); top: -80px; z-index: 90; padding: 10px 14px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 500; text-decoration: none; }
.skip:focus { top: 12px; }
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 22px var(--pad); color: var(--nav-fg); transition: color .45s ease; }
html:not(.js) .nav { position: absolute; }
#nav { view-transition-name: nav; }
/* a soft backdrop so text scrolling under the bar never overprints it: always on paper, on the night only where
   the ground asks for it (data-veil="on"), never over a photograph (data-veil="off") */
.nav::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(100% + 30px); z-index: -1; pointer-events: none; opacity: 0; transition: opacity .45s ease;
  background: linear-gradient(to bottom, rgba(var(--veil-rgb), 1) 0%, rgba(var(--veil-rgb), 1) 58%, rgba(var(--veil-rgb), 0) 100%); }
html[data-nav="light"] { --nav-fg: var(--ink); --veil-rgb: var(--paper-rgb); }
html[data-nav="dark"] { --nav-fg: var(--paper); --veil-rgb: var(--night-rgb); }
html[data-nav="light"]:not([data-veil="off"]) .nav::before { opacity: 1; }
html[data-nav="dark"][data-veil="on"] .nav::before { opacity: 1; }
.nav.no-veil::before { display: none; }

.lockup { display: flex; align-items: flex-end; gap: 14px; color: inherit; text-decoration: none; }
.hnl-mark { display: block; width: 44px; aspect-ratio: 832 / 816; background: currentColor;
  -webkit-mask: url(logo/hnl-mark.svg) center / contain no-repeat; mask: url(logo/hnl-mark.svg) center / contain no-repeat; }
.hnl-words { display: flex; flex-direction: column; gap: .5em; padding-bottom: 5px; font-family: "Familjen Grotesk", var(--text); font-weight: 400; font-size: 11.5px; line-height: 1; letter-spacing: .34em; white-space: nowrap; }
.hnl-words i { font-style: normal; }

.nav .links { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); font-family: var(--text); font-size: 14px; font-weight: 500; line-height: 1; }
.nav .links > a { padding: 8px 0; text-decoration: none; opacity: .9; white-space: nowrap; text-underline-offset: 7px; text-decoration-thickness: 1px; transition: opacity .3s; }
.nav .links > a:hover, .nav .links > a.hov { opacity: 1; text-decoration-line: underline; }
.nav .links > a[aria-current="page"] { opacity: 1; text-decoration-line: underline; }
.lang { display: flex; gap: 10px; font-family: var(--text); font-size: 13px; font-weight: 500; letter-spacing: .04em; }
.nav .lang { margin-left: 8px; }
.lang button { all: unset; cursor: pointer; opacity: .5; padding: 6px 0; transition: opacity .3s; }
.lang button:hover, .lang button.hov { opacity: .85; }
.lang button[aria-pressed="true"] { opacity: 1; }
.lang button:focus-visible, .nav a:focus-visible, .menu-btn:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 12px 0 12px 10px; font-family: var(--text); font-size: 14px; font-weight: 500; line-height: 1; color: inherit; }

/* the phone menu: a night sheet that opens from the right edge (a clip, never a transform, so nothing hangs
   off the page and widens it on a phone) */
.menu { position: fixed; inset: 0; z-index: 80; overflow: hidden; display: flex; flex-direction: column; padding: 20px var(--pad) 34px; background: var(--night); color: var(--paper);
  -webkit-clip-path: inset(0 0 0 100%); clip-path: inset(0 0 0 100%); visibility: hidden; transition: clip-path .55s cubic-bezier(.6, 0, .3, 1), -webkit-clip-path .55s cubic-bezier(.6, 0, .3, 1), visibility 0s linear .55s; }
.menu.open { -webkit-clip-path: inset(0); clip-path: inset(0); visibility: visible; transition: clip-path .6s cubic-bezier(.16, .8, .2, 1), -webkit-clip-path .6s cubic-bezier(.16, .8, .2, 1); }
.menu-top { display: flex; align-items: center; justify-content: space-between; }
.menu-top .lockup .hnl-mark { width: 34px; }
.menu-top .hnl-words { font-size: 9.5px; padding-bottom: 4px; }
.menu-x { background: none; border: 0; cursor: pointer; padding: 12px 0 12px 12px; font-family: var(--text); font-size: 14px; font-weight: 500; color: inherit; }
.menu-links { margin-top: auto; display: flex; flex-direction: column; }
.menu-links a { padding: 3px 0; font-family: var(--disp); font-weight: 300; font-size: clamp(40px, 12vw, 72px); line-height: 1.04; letter-spacing: -.045em; text-decoration: none; transform: translate3d(14vw, 0, 0); opacity: 0; transition: transform .6s cubic-bezier(.16, .8, .2, 1), opacity .4s ease; }
.menu-links a[aria-current="page"] { color: var(--wheat); }
.menu.open .menu-links a { transform: none; opacity: 1; }
.menu.open .menu-links a:nth-child(2) { transition-delay: .04s; }
.menu.open .menu-links a:nth-child(3) { transition-delay: .08s; }
.menu.open .menu-links a:nth-child(4) { transition-delay: .12s; }
.menu.open .menu-links a:nth-child(5) { transition-delay: .16s; }
.menu.open .menu-links a:nth-child(6) { transition-delay: .2s; }
.menu-foot { margin-top: 7svh; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 14px 24px; font-size: 15px; color: rgba(var(--paper-rgb), .78); }
.menu-foot .lang { gap: 0; font-size: 14px; }
.menu-foot .lang button { min-width: 44px; padding: 10px 0; }
.menu-foot a { text-decoration: none; }
html.menu-open { overflow: hidden; }

/* ---------- co-brand row: Nordevo × Lindbäcks ---------- */
.cobrand { display: inline-flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 13px; }
.cobrand img { display: block; width: auto; }
.cobrand .cb-nordevo { height: 16px; }
.cobrand .cb-lind { height: 20px; transform: translateY(3px); }
.cobrand .cb-x { font-family: var(--text); font-size: 12px; line-height: 1; opacity: .5; }
.cobrand .cb-arch { flex-basis: 100%; margin-top: 2px; font-family: var(--disp); font-weight: 400; font-size: 15.5px; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }   /* the architects: their own line under the two owners */

/* ---------- a link with an arrow ---------- */
.cta-link { display: inline-flex; align-items: center; gap: 14px; font-family: var(--text); font-size: 15px; font-weight: 500; line-height: 1.3; letter-spacing: 0; text-decoration: none; cursor: pointer; background: none; border: 0; color: inherit; }
.cta-link .arr { flex: none; display: block; width: 34px; height: 1px; background: currentColor; position: relative; transition: width .4s cubic-bezier(.2, .7, .2, 1); }
.cta-link .arr::after { content: ""; position: absolute; right: 0; top: -3.5px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.cta-link:hover .arr, .cta-link:focus-visible .arr { width: 52px; }
.cta-link:focus-visible { outline: 1px solid currentColor; outline-offset: 6px; }
.night .cta-link:hover { color: var(--wheat); }

/* ---------- grounds ---------- */
.night { background: var(--night); color: var(--paper); }
.night .lab, .night .cap .s { color: rgba(var(--paper-rgb), .66); }
.night .cap b { color: var(--paper); }
.night .prose.mute { color: rgba(var(--paper-rgb), .72); }
/* the day turning to night before a page's dark end: a still gradient, read as dusk while scrolling past */
.dusk { position: relative; height: 46svh; background: linear-gradient(to bottom, var(--paper) 0, color-mix(in oklab, var(--paper) 87%, var(--night)) 14%, color-mix(in oklab, var(--paper) 68%, var(--night)) 32%, color-mix(in oklab, var(--paper) 44%, var(--night)) 54%, color-mix(in oklab, var(--paper) 23%, var(--night)) 74%, color-mix(in oklab, var(--paper) 8%, var(--night)) 89%, var(--night) 100%); }
.dusk > i { position: absolute; left: 0; right: 0; height: 50%; }
.dusk > i:first-child { top: 0; }
.dusk > i:last-child { bottom: 0; }

/* ---------- sections, blocks, pictures ---------- */
/* lines and pictures that travel in from the edges must never widen the page: on a phone a page that is wider
   than the screen at load stays zoomed out. clip, not hidden, keeps sticky working inside. */
main, .night, .dusk, .sunrise { overflow-x: clip; }
.sec { position: relative; padding-top: 24svh; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); padding: 0 var(--pad); }
.k { grid-column: 1 / 6; }
.v { grid-column: 6 / 12; }
.v.wide { grid-column: 6 / 13; }
.shot { display: block; position: relative; overflow: hidden; background: var(--stone); }
.shot img, .shot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.night .shot { background: #1a2333; }
figure { margin: 0; }
figcaption.cap { margin-top: 14px; }
html.js:not(.rm) [data-win] { will-change: clip-path; }
html.js:not(.rm) [data-win] img, html.js:not(.rm) [data-win] video { will-change: transform; }
[data-win="r"] img, [data-win="r"] video { transform-origin: 100% 50%; }
[data-win="l"] img, [data-win="l"] video { transform-origin: 0 50%; }

/* a page's head: the title on two beats, the lead on Ukraine's side, a picture that opens from the seam */
.ph { position: relative; padding-top: calc(108px + 10svh); }
.ph .tt .a { white-space: nowrap; }
/* the title's two beats share one baseline when the North beat fits its five columns, so a short word like
   "Contact." is answered on the same line from the seam instead of leaving a hole beside it. A longer first
   beat sends the second to the next line, still hanging from the seam. */
@media (min-width: 861px) {
  .ph > .tt { display: flex; flex-wrap: wrap; align-items: baseline; row-gap: .02em; }
  .ph > .tt .a { flex: 0 0 auto; min-width: calc(var(--sr) - .06em); padding-right: .3em; }
  .ph > .tt .b { flex: 0 0 calc(100% - var(--sr) + .05em); min-width: 0; margin-left: auto; padding-left: 0; }
}
.ph-lead { margin: 8svh var(--pad) 0 var(--sr); max-width: 23em; }
.ph-fig { margin-top: 13svh; }
.ph-fig .shot { height: min(86svh, 62vw); }
.ph-fig .cap { margin: 14px var(--pad) 0 var(--sr); }
html.js:not(.rm) [data-arrive] .a, html.js:not(.rm) [data-arrive] .b, html.js:not(.rm) [data-arrive-x] { transition: transform 1.25s cubic-bezier(.16, .8, .2, 1), opacity .9s ease; }
html.js.pre:not(.rm) [data-arrive] .a { transform: translate3d(-14vw, 0, 0); opacity: 0; }
html.js.pre:not(.rm) [data-arrive] .b { transform: translate3d(14vw, 0, 0); opacity: 0; }
html.js.pre:not(.rm) [data-arrive-x] { transform: translate3d(6vw, 0, 0); opacity: 0; }
html.js.arrived [data-arrive] .a, html.js.arrived [data-arrive] .b, html.js.arrived [data-arrive-x] { transition: none; }

/* the page's one ruled register */
.reg { border-bottom: 1px solid var(--line); }
.reg > li, .reg > .row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: baseline; padding: 22px 0 24px; border-top: 1px solid var(--line); }
.night .reg, .night .reg > li, .night .reg > .row { border-color: var(--line-n); }
.reg-wrap { margin: 0 var(--pad); }

/* rows that come in from the two sides */
[data-rows] > * > .rk, [data-rows] > * > .rv { will-change: transform, opacity; }

/* a horizontal track: pinned on wide screens, the pictures travelling right to left */
.trk-sec { position: relative; }
.trk-stage { position: relative; }
.trk-row { display: flex; align-items: flex-start; width: max-content; padding: 0 var(--pad); }
html.trk-on .trk-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
html.trk-on .trk-row { height: 100svh; will-change: transform; }
.trk-row > * { flex: none; position: relative; }
.trk-row .tp-pic .shot img, .trk-row .tp-pic .shot video { left: -6%; width: 112%; max-width: none; will-change: transform; }
/* still (reduced motion, no script): the track wraps into rows instead of running off the page */
html:not(.trk-on) .trk-row { flex-wrap: wrap; width: auto; row-gap: 8svh; }
html:not(.trk-on) .trk-row .tp-pic .shot img, html:not(.trk-on) .trk-row .tp-pic .shot video { left: 0; width: 100%; }

/* the door at the end of a page: the next page announces itself on the night */
.door { position: relative; padding: 14svh 0 22svh; }
.door a { text-decoration: none; color: inherit; }
.door a.grid { display: grid; }
.door .k, .door .say, .door .lab { display: block; }
.door .grid { align-items: end; }
.door .lab { margin-bottom: 4svh; color: var(--wheat); }
.door .say .a, .door .say .b { padding: 0; }
.door .say .b { margin-left: 1.2em; }
.door .go { margin-top: 5svh; }
.door .shot { height: min(62svh, 40vw); }
.door a:hover .cta-link .arr { width: 52px; }
.door a:hover .say .b { color: var(--wheat); transition: color .3s; }

/* ---------- the close: the forest at sunrise ---------- */
/* the tagline stands on the film; under it one ruled block stands on the bottom edge: the four doors as a row
   of big links, four columns of small print, the legal line. It is laid out in flow, so the footer grows with
   its content instead of letting lines run into each other on short or narrow screens. */
.sunrise { position: relative; min-height: max(100svh, 640px); overflow: hidden; background: #0c120e url(video/metsa-valo-mobile-poster.jpg) 50% 50% / cover; color: var(--paper); --rule: rgba(var(--paper-rgb), .3); }
.sunrise video { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% + 14px); object-fit: cover; }
html.js:not(.rm) .sunrise video { opacity: 0; transition: opacity 1s ease; }
html.js:not(.rm) .sunrise video.is-playing { opacity: 1; }
html:not(.js) .sunrise video { display: none; }
.sunrise .shade { position: absolute; inset: 0; background: linear-gradient(180deg, var(--night) 0, rgba(var(--night-rgb), .55) 9%, rgba(var(--night-rgb), 0) 26%), linear-gradient(90deg, rgba(9, 14, 11, .74) 0, rgba(9, 14, 11, .56) 36%, rgba(9, 14, 11, .14) 72%, rgba(9, 14, 11, 0) 100%); }
.sunrise .over { position: relative; min-height: inherit; display: flex; flex-direction: column; justify-content: space-between; gap: 9svh; padding: 19svh var(--pad) 22px; }
.sunrise .tagline { margin-left: -.05em; font-family: var(--disp); font-weight: 300; font-size: clamp(44px, min(8.6vw, 17svh), 164px); line-height: .92; letter-spacing: -.046em; }
.sunrise .tagline em { color: var(--wheat); }
/* the block darkens the film under itself, however tall it is, and leaves the light above it alone */
.sunrise .end { position: relative; isolation: isolate; }
.sunrise .end::before { content: ""; position: absolute; z-index: -1; left: calc(-1 * var(--pad)); right: calc(-1 * var(--pad)); top: -14svh; bottom: -22px; pointer-events: none;
  background: linear-gradient(180deg, rgba(9, 14, 11, 0) 0, rgba(9, 14, 11, .5) 34%, rgba(9, 14, 11, .82) 100%); }
.sunrise a { color: inherit; text-decoration: none; transition: color .25s; }
.sunrise a:hover { color: var(--wheat); }
.sunrise a:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
/* the four doors */
.sunrise .doors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sunrise .doors a { display: flex; align-items: center; gap: 18px; padding: 20px var(--g) 23px 0; border-top: 1px solid var(--rule); font-family: var(--disp); font-weight: 300; font-size: var(--M); line-height: 1.1; letter-spacing: -.03em; }
.sunrise .doors .arr { flex: none; display: block; position: relative; top: .06em; width: 34px; height: 1px; background: currentColor; transition: width .4s cubic-bezier(.2, .7, .2, 1); }
.sunrise .doors .arr::after { content: ""; position: absolute; right: 0; top: -3.5px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.sunrise .doors a:hover .arr, .sunrise .doors a:focus-visible .arr { width: 52px; }
/* the small print: company, pages, contact, the sister company */
.end-info { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 22px 0 30px; border-top: 1px solid var(--rule); font-size: 14.5px; line-height: 1.5; color: rgba(var(--paper-rgb), .94); }
.end-info > * { padding-right: var(--g); }
.end-info .eh { margin-bottom: 9px; font-size: 13px; font-weight: 500; color: rgba(var(--paper-rgb), .62); }
.end-info address { font-style: normal; }
.end-info li a { display: inline-block; vertical-align: top; }
.end-info a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.end-info .pages ul { display: grid; grid-template-rows: repeat(3, auto); grid-auto-flow: column; grid-auto-columns: max-content; column-gap: clamp(22px, 2.6vw, 44px); }
.end-info .sib p:not(.eh) { max-width: 17em; text-wrap: balance; }
.end-info .sib .cta-link { margin-top: 3px; font-size: 14.5px; }
.end-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 28px; padding-top: 15px; border-top: 1px solid var(--rule); font-size: 13px; line-height: 1.45; color: rgba(var(--paper-rgb), .7); }
.end-base ul { display: flex; flex-wrap: wrap; gap: 0 26px; }

/* ---------- forms ---------- */
.field { display: block; }
.field + .field { margin-top: 30px; }
.field > span { display: block; margin-bottom: 8px; font-size: 13.5px; font-weight: 500; color: var(--mute2); }
.field input, .field select, .field textarea { display: block; width: 100%; padding: 10px 0 12px; border: 0; border-bottom: 1px solid rgba(var(--ink-rgb), .34); border-radius: 0; background: transparent; color: var(--ink); font-family: var(--text); font-size: 19px; line-height: 1.4; outline: none; transition: border-color .25s; -webkit-appearance: none; appearance: none; }
.field textarea { min-height: 150px; resize: vertical; }
.field select { background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230F1B2D' stroke-width='1.2'/%3E%3C/svg%3E") right 4px center / 12px 8px no-repeat; padding-right: 28px; cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--ink); }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 30px; font-size: 15px; line-height: 1.5; color: var(--mute2); cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); }

/* ---------- reading: a news post, the legal pages ---------- */
.read { font-size: 18.5px; line-height: 1.66; max-width: 34em; text-wrap: pretty; }
.read > * + * { margin-top: 1em; }
.read h2, .read h3 { margin-top: 1.9em; font-family: var(--disp); font-weight: 400; letter-spacing: -.02em; line-height: 1.15; }
.read h2 { font-size: clamp(25px, 2vw, 32px); }
.read h3 { font-size: 21px; }
.read h2 + *, .read h3 + * { margin-top: .6em; }
.read ul, .read ol { padding-left: 0; }
.read li { position: relative; padding-left: 1.35em; }
.read li + li { margin-top: .45em; }
.read ul > li::before { content: ""; position: absolute; left: .1em; top: .78em; width: .55em; height: 1px; background: currentColor; opacity: .55; }
.read ol { counter-reset: n; }
.read ol > li { counter-increment: n; }
.read ol > li::before { content: counter(n) "."; position: absolute; left: 0; color: var(--mute2); }
.read a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.read blockquote { padding-left: 1.2em; font-family: var(--disp); font-weight: 300; font-size: 1.35em; line-height: 1.3; letter-spacing: -.02em; color: var(--mute2); }
.read hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }
.read strong { font-weight: 500; }
.read em { font-style: italic; }

/* ---------- phone: the seam turns horizontal, everything stacks ---------- */
@media (max-width: 980px) {
  .nav .links > a { display: none; }
  .menu-btn { display: block; }
}
@media (max-width: 1100px) {
  .end-info { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
  .sunrise .over { gap: 6svh; }
  /* here the footer is taller than the screen, so its lines travel under the bar: a night band rides along
     under the bar so nothing overprints the logo and the menu. clip, not hidden, or sticky has nothing to stick to. */
  .sunrise { overflow: clip; }
  .sunrise::before { content: ""; display: block; position: sticky; top: 0; z-index: 2; height: 124px; margin-bottom: -124px; pointer-events: none;
    background: linear-gradient(to bottom, rgba(var(--night-rgb), 1) 0, rgba(var(--night-rgb), .94) 50%, rgba(var(--night-rgb), 0) 100%); }
}
@media (max-width: 960px) {
  .sunrise .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  :root { --pad: 22px; --g: 14px; --H: clamp(40px, 12.2vw, 76px); --T: clamp(36px, 11vw, 72px); --S: clamp(30px, 8.6vw, 52px); --M: clamp(22px, 6.2vw, 30px); }
  html { scroll-padding-top: 80px; }
  .nav { padding: 18px var(--pad); }
  .lockup .hnl-mark { width: 34px; }
  .hnl-words { font-size: 9.5px; padding-bottom: 4px; }
  .nav .lang { gap: 0; margin-left: 0; }
  .nav .lang button { min-width: 36px; padding: 12px 0; text-align: center; }
  .grid { display: block; }
  .tt .b, .say .b { padding-left: calc(var(--pad) + 1.2em); }
  .ph { padding-top: calc(84px + 9svh); }
  .ph .tt .a, .ph .tt .b { white-space: normal; }
  .ph-lead { margin: 5svh var(--pad) 0; }
  .ph-fig { margin-top: 8svh; }
  .ph-fig .shot { height: 112vw; max-height: 74svh; }
  .ph-fig .cap { margin: 12px var(--pad) 0; }
  .sec { padding-top: 15svh; }
  .reg-wrap { margin: 0 var(--pad); }
  .reg > li, .reg > .row { display: block; padding: 18px 0 20px; }
  .trk-row { display: block; width: auto; padding: 0; }
  .trk-row > * { margin: 0; width: auto; }
  .trk-row .tp-pic .shot img, .trk-row .tp-pic .shot video { left: 0; width: 100%; }
  .door { padding: 8svh 0 14svh; }
  .door a.grid { display: block; }
  .door .say .b { margin-left: 1em; }
  .door .shot { height: 62vw; margin-top: 6svh; }
  .door .go { margin-top: 4svh; }
  .dusk { height: 30svh; }
  .sunrise { min-height: 100svh; }
  .sunrise .over { gap: 8svh; padding: 17svh var(--pad) 20px; }
  .sunrise .tagline { font-size: clamp(40px, 13vw, 92px); }
  .sunrise .doors { grid-template-columns: minmax(0, 1fr); }
  .sunrise .doors a { justify-content: space-between; padding: 17px 0 19px; }
  /* one column on a phone: every group hangs from the margin, the film's light stays free on the right */
  .sunrise .doors .arr { margin-right: 2px; }
  .end-info { display: flex; flex-direction: column; gap: 26px; padding: 26px 0 30px; }
  .end-info > * { padding-right: 0; }
  .end-info .pages { order: 1; }
  .end-info .reach { order: 2; }
  .end-info .who { order: 3; }
  .end-info .sib { order: 4; }
  .end-info .pages ul { column-gap: 52px; }
  .end-info li a { padding: 6px 0; }
  .end-info .eh { margin-bottom: 3px; }
  .end-info .who .eh, .end-info .sib .eh { margin-bottom: 8px; }
  .end-info .sib p:not(.eh) { max-width: none; }
  .end-base { padding-top: 14px; }
  .read { font-size: 17.5px; }
}
@media (max-width: 860px) and (orientation: landscape) {
  .ph-fig .shot { height: 80svh; }
}

/* ---------- still: reduced motion and no script ---------- */
html:not(.js) video { display: none; }
@media print { .nav, .menu, .skip, .sunrise video { display: none !important; } }

/* ---------- moving between pages: the old page steps left and goes, the new one comes in from the right ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: hnl-out .34s cubic-bezier(.5, 0, .9, .4) both; }
::view-transition-new(root) { animation: hnl-in .7s cubic-bezier(.16, .8, .2, 1) both; }
@keyframes hnl-out { to { opacity: 0; transform: translate3d(-3vw, 0, 0); } }
@keyframes hnl-in { from { opacity: 0; transform: translate3d(5vw, 0, 0); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .menu, .menu-links a { transition: none !important; }
}

/* ---------- event notice (footer partial, hidden by site.js after its day) ---------- */
.ev-pill { position: fixed; left: var(--pad); bottom: 24px; z-index: 60; display: flex; align-items: stretch; max-width: min(480px, calc(100vw - 2 * var(--pad)));
  background: var(--night); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.22); font-family: var(--text); animation: ev-in .6s .8s both cubic-bezier(.2,.7,.2,1); }
.ev-pill[hidden] { display: none; }
/* it steps aside while the footer is on screen, so it never sits on the company details and legal links */
.ev-pill { transition: opacity .35s ease, visibility 0s; }
.ev-pill.away { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .35s ease, visibility 0s linear .35s; }
.ev-pill a { display: block; padding: 14px 18px 15px; color: inherit; text-decoration: none; border-left: 3px solid var(--wheat); }
.ev-pill b { display: block; font-weight: 500; font-size: 15px; line-height: 1.3; }
.ev-pill small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--mute-n); }
.ev-pill a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.ev-x { flex: none; width: 40px; border: 0; background: none; color: var(--mute-n); font-size: 20px; cursor: pointer; }
.ev-x:hover { color: #fff; }
@keyframes ev-in { from { transform: translateY(16px); opacity: 0; } }
@media (max-width: 860px) { .ev-pill { left: 16px; right: 16px; bottom: 16px; max-width: none; } .ev-pill b { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .ev-pill { animation: none; } }
