/* Edseth. One fjord, one day. Brand tokens first, then the world, then one scene after another.
   States: html.motion is added by main.js when it boots, and every hidden or pre-animation state hangs on it; without script (or if it fails) the page is plain and complete.
   html.is-intro (head script) holds the page on the drawn monogram for the opening. A scene pins (.is-pinned, set by main.js) only when its content fits the screen.
   Material: paper is the default (html.mat-paper and paper.css in the page; ?mat=glass shows glass). main.js writes --sun-x, --sun-y and --sun-warm on the paper sheets' ancestors, never on <html>. */

@font-face { font-family: 'Newsreader'; src: url('../fonts/newsreader-300.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('../fonts/newsreader-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('../fonts/newsreader-300i.woff2') format('woff2'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('../fonts/hanken-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('../fonts/hanken-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('../fonts/hanken-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Edseth Display'; src: url('../fonts/EdsethDisplay-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Edseth Display'; src: url('../fonts/EdsethDisplay-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Newsreader Fallback'; src: local('Georgia'); size-adjust: 92%; ascent-override: 98%; descent-override: 26%; }
@font-face { font-family: 'Hanken Fallback'; src: local('Arial'); size-adjust: 97%; ascent-override: 98%; descent-override: 26%; }

:root {
  --evergreen: #142321;
  --evergreen-80: #2C3B39;
  --ivory: #F4F0E8;
  --clay: #9B563D;
  --sage: #718B7B;
  --stone: #B9AA95;
  --lowsun: #E9B88F;
  --fjord: #4D6A66;

  --ink: var(--evergreen);
  --ink-soft: rgba(20, 35, 33, .86);
  --line: rgba(20, 35, 33, .16);
  --mist-c: rgba(244, 240, 232, .74);

  --serif: 'Newsreader', 'Newsreader Fallback', Georgia, serif;
  --sans: 'Hanken Grotesk', 'Hanken Fallback', Arial, system-ui, sans-serif;
  --sign: 'Edseth Display', 'Hanken Grotesk', system-ui, sans-serif;

  --fs-display: clamp(60px, 11.2vw, 196px);
  --fs-h2: clamp(36px, 4.6vw, 76px);
  --fs-lead: clamp(18px, 1.45vw, 22px);
  /* One display scale: the h1 (8.4vw) stays the largest type; act titles and the address sit below it */
  --fs-act: clamp(52px, 7.2vw, 128px);
  --margin: clamp(20px, 5.6vw, 88px);
  --radius: 22px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  /* The opening's monogram sits where the fjord draws it: bottom on the logo waterline (main.js sets the exact value) */
  --yw: .39;
}
:lang(en) { --fs-act: clamp(46px, 6vw, 108px); } /* below the English h1 (6.7vw) */
@media (min-aspect-ratio: 5/4) { :root { --yw: .4; } }
@media (max-aspect-ratio: 31/50) { :root { --yw: .38; } }
.on-dark { --ink: var(--ivory); --ink-soft: rgba(244, 240, 232, .86); --line: rgba(244, 240, 232, .2); --mist-c: rgba(20, 35, 33, .76); }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; scroll-padding-top: 104px; overflow-x: clip; }
body { background: var(--ivory); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
section, footer { color: var(--ink); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
em { font-style: italic; letter-spacing: -.02em; }
::selection { background: var(--evergreen); color: var(--ivory); }
/* Two-tone focus ring: one band always contrasts with what is behind it (a11y S3) */
:focus-visible { outline: 2px solid var(--evergreen); outline-offset: 2px; box-shadow: 0 0 0 4px var(--ivory); border-radius: 6px; }
.on-dark :focus-visible, .nav-dark .nav :focus-visible { outline-color: var(--ivory); box-shadow: 0 0 0 4px var(--evergreen); }
.glass:not(.glass-dark) :focus-visible { outline-color: var(--evergreen); box-shadow: 0 0 0 4px var(--ivory); }
section[tabindex="-1"]:focus, main[tabindex="-1"]:focus { outline: none; box-shadow: none; }
.wrap { width: 100%; max-width: 1560px; margin-inline: auto; padding-inline: var(--margin); }
.skip { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--evergreen); color: var(--ivory); padding: 12px 18px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- Type ---------- */
.display, .h2 { font-family: var(--serif); font-weight: 300; text-wrap: balance; }
.display { font-size: var(--fs-display); line-height: .9; letter-spacing: -.038em; }
.h2 { font-size: var(--fs-h2); line-height: 1.02; letter-spacing: -.022em; }
.lead { font-size: var(--fs-lead); line-height: 1.5; }

/* Buttons and links. [data-magnet] leans toward a fine pointer (main.js); hover and press use translate/scale so they compose with it */
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 14px 28px; border-radius: 999px; background: var(--ink); color: var(--ivory); font: 600 15px/1 var(--sans); text-decoration: none; transition: translate .2s var(--ease-out), scale .2s var(--ease-out), box-shadow .3s ease; }
.on-dark .btn { color: var(--evergreen); }
.btn:active { scale: .97; }
.btn > span, .pill > span, .ct-mail > span { display: inline-block; }
[data-magnet] { transition: transform .6s var(--ease-out), translate .2s var(--ease-out), scale .2s var(--ease-out), box-shadow .3s ease, background-color .25s ease, background-size .7s var(--ease-out); }
[data-magnet] > span { transition: transform .6s var(--ease-out); }
[data-magnet].is-pulled, [data-magnet].is-pulled > span { transition-duration: .22s; }
.link { position: relative; font-weight: 500; text-decoration: none; padding-block: 6px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; transition: background-size .45s var(--ease-out); }
.link:focus-visible { outline-offset: 5px; } /* the ring clears the first letter (a11y round 2, N4) */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { box-shadow: 0 12px 30px -12px rgba(20, 35, 33, .55); translate: 0 -1px; }
  .link:hover { background-size: 0 1.5px; background-position: 100% 100%; }
}

/* ---------- The world ---------- */
/* 100lvh: on phones the toolbar does not resize the world mid-scroll (code review M6) */
.stage { position: fixed; inset: 0 0 auto; height: 100lvh; z-index: -1; background: var(--ivory); }
.fjord { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.intro-mark { display: none; }
.sky-fallback { display: none; }
:is(.no-fjord, .fjord-late) .sky-fallback { display: block; position: absolute; inset: 0; }
:is(.no-fjord, .fjord-late) .sky-fallback img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
:is(.no-fjord, .fjord-late) .sky-fallback img:first-child { opacity: 1; }
/* A slow shader (main.js .fjord-late): the painted lights come in with the opening, and fade off the live fjord once it has drawn behind them */
.fjord-late.no-fjord .sky-fallback { animation: sky-in 1.6s cubic-bezier(.65, 0, .35, 1) both; }
.fjord-late.has-fjord .sky-fallback { opacity: 0; visibility: hidden; animation: sky-out .35s ease; }
@keyframes sky-in { from { opacity: 0; } }
@keyframes sky-out { from { opacity: 1; visibility: visible; } }
.no-fjord .stage::after { content: ""; position: absolute; inset: 0; background: var(--evergreen); opacity: calc(var(--night, 0) * .82); }
.no-fjord .fjord { display: none; }

/* Mist: a soft veil of the fjord's own haze behind text that stands straight on the landscape (a11y S1).
   Floors: at the text's edge at least .5 ivory behind Evergreen text and .6 Evergreen behind ivory text. */
:is(.manifest-text, .acts-side .h2, .act-stage, .del-head > *, .del-note, .proj-intro, .pr-stage > .h2, .vows, .faq-side .h2, .faq-list, .contact .wrap > *) { position: relative; isolation: isolate; }
:is(.manifest-text, .acts-side .h2, .act-stage, .del-head > *, .del-note, .proj-intro, .pr-stage > .h2, .vows, .faq-side .h2, .faq-list, .contact .wrap > *)::before {
  /* a wide, very soft rounded field: with blur 36px and 48 px of margin the veil still gives ~.66 of its alpha at the text's corners */
  content: ""; position: absolute; inset: -48px -80px; z-index: -1; pointer-events: none; border-radius: 64px; background: var(--mist-c); filter: blur(36px);
}
.del-note::before { inset: -10px -20px; border-radius: 30px; filter: blur(12px); }
/* One layer per group: all its veils sit under all its text, so one block's veil never paints over its neighbour's letters (jury 2, fix 1) */
.acts-grid, .del-head { isolation: isolate; }
:is(.acts-side .h2, .act-stage, .del-head > *) { isolation: auto; }
.pr-stage > .h2::before { inset: -20px -36px; filter: blur(28px); opacity: .5; } /* jury round 2, fix 3: large text needs 3:1, not a cloud */
/* On narrow screens the hero's lead comes down over the ridge; its mist arrives with it (on the desktop it stands in clear sky) */
@media (max-width: 999px) {
  .hero :is(.lead, .actions) { position: relative; isolation: isolate; }
  .hero :is(.lead, .actions)::before { content: ""; position: absolute; inset: -22px -30px; z-index: -1; pointer-events: none; border-radius: 40px; background: var(--mist-c); filter: blur(20px); }
}

/* ---------- Opening: the page waits while the monogram becomes the fjord. The drawn monogram is the very first frame. ---------- */
.is-intro .intro-mark, .newday-veil .intro-mark { display: block; position: absolute; left: 50%; bottom: calc(var(--yw) * 100%); height: min(20%, 36vw); width: auto; aspect-ratio: 4754.72 / 4000; translate: -50% 0; fill: var(--evergreen); }
.is-intro.fjord-live .intro-mark { display: none; }
.fjord-late.is-intro .intro-mark { display: block; opacity: 0; transition: opacity 1s ease; } /* a late shader: the drawn monogram melts into the painted morning, even if the fjord arrives meanwhile */
.is-intro:not(.fjord-live) .fjord { visibility: hidden; }
.is-intro:not(.is-ready) .hero .wrap { opacity: 0; }
.motion .nav, .motion .dayline { transition: opacity 1s ease .2s; }
.is-intro .nav, .is-intro .dayline { opacity: 0; }
.is-intro .nav:focus-within, .is-intro .hero .wrap:focus-within { opacity: 1; transition: none; }
/* Sign of life while the shader compiles: the waterline draws out from under the monogram, and fades as the fjord takes over */
.intro-line { display: none; }
.is-intro .intro-line { display: block; position: absolute; left: 50%; bottom: calc(var(--yw) * 100%); width: min(64vw, 40rem); height: 1px; translate: -50% 0;
  background: linear-gradient(90deg, transparent, var(--evergreen) 35% 65%, transparent); opacity: .8; animation: intro-line 1.5s cubic-bezier(.25, .6, .3, 1) .12s both; transition: opacity .45s ease; }
.is-intro.fjord-live .intro-line, .fjord-late .intro-line { opacity: 0; }
.intro-waited.fjord-live .intro-line { transition-delay: .5s; } /* no rest after a wait: the line fades as the bars start to part, about .6 s into the morph */
@keyframes intro-line { from { transform: scaleX(0); } }

/* Words rise out of a mask (the hero keeps the opening's timing) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w > * { display: inline-block; }
.motion [data-split] .w > * { transform: translateY(135%); transition: transform .9s var(--ease-out) calc(var(--i) * 45ms); }
.motion .hero [data-split] .w > * { transition: transform 1.25s var(--ease-out) calc(var(--i) * 70ms); }
.motion [data-split].is-in .w > *, .is-ready .hero [data-split] .w > * { transform: none; }
.is-ready .hero [data-split] .w > * { transition-delay: calc(var(--i) * 110ms + 80ms); }

/* Text clears out of the mist */
.motion [data-reveal] { transition: opacity .8s ease, filter .8s ease, transform .9s var(--ease-out); }
.motion [data-reveal]:not(.is-in) { opacity: 0; filter: blur(6px); transform: translateY(10px); }
/* Paper owns its own entrance (paper.css unfolds cards on .is-in), so the fog stays off its sheets */
.mat-paper :is(.proj, .who-card, .faq-list)[data-reveal] { opacity: 1; filter: none; transform: none; }
.motion .hero [data-reveal] { transition: opacity 1.3s ease, filter 1.3s ease, transform 1.3s var(--ease-out); transition-delay: .15s; }
.motion:not(.is-ready) .hero [data-reveal] { opacity: 0; filter: blur(10px); transform: translateY(14px); }
.is-ready .hero [data-reveal] { transition-delay: .55s; }
.is-ready .hero .actions { transition-delay: .7s; }
.motion [data-reveal]:focus-within { opacity: 1; filter: none; transform: none; transition: none; }

/* ---------- Navigation: glass over a band of mist that blurs whatever passes under it ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--margin); color: var(--evergreen); pointer-events: none; transition: color .6s ease, opacity 1s ease .2s; }
.nav > * { pointer-events: auto; }
.nav::before { content: ""; position: absolute; inset: 0 0 auto; height: 132px; z-index: -1; pointer-events: none;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); -webkit-mask-image: linear-gradient(#000 30%, transparent); mask-image: linear-gradient(#000 30%, transparent); }
.nav-dark .nav { color: var(--ivory); }
.nav ul { background: rgba(244, 240, 232, .42); border: 1px solid rgba(255, 255, 255, .45); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); transition: background-color .6s ease, border-color .6s ease; }
.nav-logo { position: relative; isolation: isolate; display: grid; place-items: center; height: 52px; padding: 0; border-radius: 999px; } /* a bare mark on the nav's mist band (jury 2, fix 4) */
/* No pill: a soft mist of the fjord's haze keeps the bare mark at 3:1 when the dusk sky darkens behind the ink logo */
.nav-logo::before { content: ""; position: absolute; inset: 4px -22px; z-index: -1; pointer-events: none; border-radius: 40px; background: rgba(244, 240, 232, .62); filter: blur(14px); transition: background-color .6s ease; }
.nav-dark .nav-logo::before { background: rgba(20, 35, 33, .5); }
.nav-logo img { grid-area: 1 / 1; height: 17px; width: auto; transition: opacity .6s ease; clip-path: inset(0 0 0 18%); }
/* The nav monogram is drawn in three bars: on hover or focus they part a few pixels, an echo of the opening, and spring back (lengths in the mark's units, 1000 = 17 px) */
.logo-mono { grid-area: 1 / 1; justify-self: start; height: 17px; width: auto; fill: currentColor; overflow: visible; }
@media (prefers-reduced-motion: no-preference) {
  .logo-mono use { transition: transform .8s cubic-bezier(.3, 1.9, .5, 1), opacity .5s ease .1s; }
  .nav-logo:is(:hover, :focus-visible) .logo-mono use { transition: transform .35s var(--ease-out), opacity .2s ease; }
  .nav-logo:is(:hover, :focus-visible) .lm-top { transform: translateX(170px); }
  .nav-logo:is(:hover, :focus-visible) .lm-bot { transform: translateX(-170px); }
  .nav-logo:is(:hover, :focus-visible) .lm-spine { opacity: 0; }
}
.logo-paper, .nav-dark .logo-ink { opacity: 0; }
.nav-dark .logo-paper { opacity: 1; }
.nav ul { display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; }
.nav-dark .nav ul { background: rgba(20, 35, 33, .38); border-color: rgba(244, 240, 232, .14); }
.nav ul a, .motion-toggle { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; white-space: nowrap; border-radius: 999px; font: 500 14px/1 var(--sans); text-decoration: none; transition: background-color .25s ease; }
.nav ul a:hover, .motion-toggle:hover { background: rgba(255, 255, 255, .4); }
.nav ul a[aria-current]:not(.pill) { background: rgba(255, 255, 255, .34); }
.nav-dark .nav ul a:hover, .nav-dark .motion-toggle:hover, .nav-dark .nav ul a[aria-current]:not(.pill) { background: rgba(244, 240, 232, .12); }
.nav .pill { background: var(--evergreen); color: var(--ivory); }
.nav .pill:hover { background: var(--evergreen-80); }
.nav-dark .nav .pill { background: var(--ivory); color: var(--evergreen); }
/* The motion switch (WCAG 2.2.2): pause while things move, play once they are stopped */
.motion-toggle { gap: 9px; border: 0; background: none; color: inherit; cursor: pointer; min-width: 40px; justify-content: center; }
.motion-toggle[hidden] { display: none; }
.motion-toggle svg { width: 12px; height: 12px; fill: currentColor; flex: none; }
.motion-toggle .i-play, .is-still .motion-toggle .i-pause { display: none; }
.is-still .motion-toggle .i-play { display: inline; }
.sound-toggle[aria-pressed="false"] .i-wave { opacity: .35; }
@media (max-width: 860px) { .nav .wide { display: none; } }
@media (max-width: 1180px) { .mt-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .motion-toggle { padding: 0 12px; } }
@media (max-height: 480px) { .nav { position: absolute; } }

/* ---------- The day, as a ruler with a clock on the right edge ---------- */
.dayline { position: fixed; right: calc(var(--margin) * .4); top: 30vh; z-index: 15; width: 14px; height: 40vh; container-type: size; color: var(--evergreen); transition: color .6s ease, opacity .6s ease; }
.nav-dark .dayline { color: var(--ivory); }
.at-end .dayline, .wide-scene .dayline { opacity: 0; }
.dayline b { position: absolute; left: 6px; top: 0; bottom: 0; width: 1px; background: currentColor; opacity: .25; }
.dayline i { position: absolute; left: 3px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: currentColor; will-change: transform; }
.dayline span { position: absolute; left: 0; top: calc(100% + 18px); writing-mode: vertical-rl; font: 400 11px/1 var(--sign); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Phones and small tablets: the ruler goes, the clock stays as a small label in the bottom-left corner */
@media (max-width: 900px) {
  .dayline { inset: auto auto calc(14px + env(safe-area-inset-bottom)) var(--margin); width: auto; height: auto; container-type: normal; }
  .dayline :is(b, i) { display: none; }
  /* a chip like the nav pill, so the text that scrolls under the fixed label never shows through it (jury 4, fix 1) */
  .dayline span { position: static; writing-mode: horizontal-tb; display: inline-block; padding: 5px 10px; border-radius: 999px; background: rgba(244, 240, 232, .78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background-color .6s ease; }
  .nav-dark .dayline span { background: rgba(20, 35, 33, .72); }
  html:not(.motion) .dayline { display: none; } /* without script the clock stands still at 05:40 and the chip would only cover text */
}
/* Phones: a taller, softer blur band under the nav (text softens before it reaches the header), no halo box behind the logo, 44 px targets for pause and sound */
@media (max-width: 759px) {
  .nav::before { height: 120px; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
  .nav-logo::before { display: none; }
  .motion-toggle { min-width: 44px; min-height: 44px; margin: -2px; } /* the -2px keeps the pill's size: only the hit area grows */
  .delivery .dm:not(.is-stamped) .dm-stamp { transform: rotate(-8deg); } /* the waiting stamp is invisible; scaled 1.6 it reached 8 px past a 360 px screen */
  .delivery { overflow-x: clip; } /* the slam's first frames (scale 2.5) stay on screen; clip keeps the pin's sticky */
}

/* ---------- Hero (unchanged: the opening ends on it) ---------- */
.hero { min-height: 100svh; display: flex; align-items: flex-start; padding-top: clamp(112px, 15svh, 170px); }
.hero .wrap { display: grid; gap: 28px; }
.hero h1 { max-width: 9.6em; font-size: clamp(54px, 8.4vw, 148px); }
/* The English line is longer and sets on three lines; a smaller size keeps all three in the sky above the ridges */
:lang(en) .hero h1 { font-size: clamp(46px, 6.7vw, 116px); }
.hero-foot { display: grid; gap: 24px; max-width: 30em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
@media (min-width: 1000px) {
  /* The headline and the lead both stay in the sky, above the ridges */
  .hero .wrap { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .hero h1 { grid-column: 1 / span 8; }
  .hero-foot { grid-column: 9 / span 4; padding-top: 1.6vw; }
}

/* ---------- Manifesto: lit word by word ---------- */
.manifest { min-height: 130svh; display: flex; align-items: center; padding-block: 18svh; overflow-x: clip; }
.manifest-text { max-width: 21em; font: 300 clamp(30px, 3.9vw, 64px)/1.16 var(--serif); letter-spacing: -.016em; }
.manifest-text::before { inset: -6% -5%; filter: blur(30px); border-radius: 80px; }
.motion .manifest-text span[aria-hidden] { opacity: .5; transition: opacity .5s ease; } /* unlit floor .5 (a11y S6) */
.motion .manifest-text span[aria-hidden].lit { opacity: 1; }

/* ---------- Pinned scenes (main.js pins a scene only when its content fits the screen) ---------- */
.pin { position: relative; }
.motion .is-pinned .pin { position: sticky; top: 0; height: 100svh; overflow: clip; }
/* A scene arrives out of mist and leaves into it, never sliding under the nav */
.motion .is-pinned .pin > * { opacity: calc(1 - var(--fade, 0)); filter: blur(calc(var(--fade, 0) * 8px)); translate: 0 calc(var(--exit, 0) * -4svh); }

/* Acts: build, improve, run; the monogram fills bar by bar beside the word */
.motion .acts.is-pinned { height: 300svh; }
@media (max-width: 759px) { .motion .acts.is-pinned { height: 240svh; } } /* on a phone a long pin feels stuck */
.acts .pin { display: flex; align-items: flex-start; padding-block: clamp(110px, 17svh, 190px) 48px; }
.acts:not(.is-pinned) .pin { padding-block: 14svh; }
.acts-grid { display: grid; gap: 40px 24px; }
.act-stage { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(14px, 1.6vw, 28px); align-items: start; }
.mono-progress { width: calc(var(--fs-act) * .5); height: auto; margin-top: calc(var(--fs-act) * .14); }
.mono-base { fill: var(--ink); opacity: .16; }
/* One fill rises through the whole mark as the three acts pass, with a soft top edge, like ink soaking up into it */
.mono-progress stop { stop-color: var(--ink); }
.mono-progress .fill { fill: url(#mono-fill); transform: translateY(calc((1 - var(--fill, 0)) * 100%)); transform-box: fill-box; }
html:not(.motion) .mono-progress .fill { transform: none; }
.act-list { display: grid; gap: 48px; }
.act-title { font: 300 var(--fs-act)/.9 var(--serif); letter-spacing: -.045em; }
.act-title .ch { display: inline-block; }
.act p { margin-top: 26px; max-width: 26em; font-size: var(--fs-lead); line-height: 1.5; }
.motion .acts.is-pinned .act-list { gap: 0; }
.motion .acts.is-pinned .act { grid-area: 1 / 1; pointer-events: none; }
.motion .acts.is-pinned .act.is-on { pointer-events: auto; }
/* The outgoing act leaves fast and upward; the incoming one waits, then rises letter by letter. No double exposure. */
.motion .acts.is-pinned .act-title { overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.motion .acts.is-pinned .act .ch { transform: translateY(135%); transition: transform .3s var(--ease-io); }
.motion .acts.is-pinned .act.is-past .ch { transform: translateY(-135%); }
.motion .acts.is-pinned .act.is-on .ch { transform: none; transition: transform .9s var(--ease-out) calc(.26s + var(--i) * 18ms); }
.motion .acts.is-pinned .act p { opacity: 0; transform: translateY(16px); filter: blur(4px); transition: opacity .28s ease, transform .4s var(--ease-io), filter .28s ease; }
.motion .acts.is-pinned .act.is-past p { transform: translateY(-12px); }
.motion .acts.is-pinned .act.is-on p { opacity: 1; transform: none; filter: none; transition: opacity .7s ease .4s, transform 1s var(--ease-out) .4s, filter .7s ease .4s; }
@media (min-width: 1000px) {
  .acts-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .acts-side { grid-column: 1 / span 4; }
  .act-stage { grid-column: 5 / span 8; }
}

/* Delivery: one piece of work travels from the agents to a human yes (demo.js plays the card when present; this is its stage) */
.motion .delivery.is-pinned { height: 300svh; }
/* The delivery comes up over the acts' last, already dissolved screen, so no bare landscape sits between them (jury 2, fix 5) */
.motion .acts.is-pinned + .delivery { margin-top: -45svh; }
.delivery .pin { display: flex; align-items: flex-start; padding-block: clamp(100px, 15svh, 170px) 32px; }
.delivery:not(.is-pinned) .pin { padding-block: 14svh; }
.del-head { display: grid; gap: 20px 24px; }
.del-head .h2 { max-width: 11em; }
.del-lead { max-width: 32em; font-size: var(--fs-lead); line-height: 1.5; }
@media (min-width: 1000px) { .del-head { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; } .del-head .h2 { grid-column: 1 / span 7; } .del-lead { grid-column: 8 / span 5; } }
.del-stage { position: relative; margin-top: clamp(32px, 6svh, 72px); --cw: min(380px, 100%); }
.stations { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 18px 22px; border-radius: 16px;
  background: rgba(244, 240, 232, .72); border: 1px solid rgba(255, 255, 255, .5); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--evergreen); }
.stations li { position: relative; display: grid; gap: 6px; align-content: start; padding-left: 18px; }
/* Every station at full strength (a11y S6); a filled dot marks the stations the work has reached */
.stations li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; transition: background-color .35s ease; }
.motion .delivery[data-station="0"] .stations li:nth-child(-n+1)::before, .motion .delivery[data-station="1"] .stations li:nth-child(-n+2)::before,
.motion .delivery[data-station="2"] .stations li:nth-child(-n+3)::before, .motion .delivery[data-station="3"] .stations li::before, html:not(.motion) .stations li::before { background: currentColor; }
.stations b { font: 500 16px/1.3 var(--sans); }
.stations span { font-size: 14px; line-height: 1.45; color: rgba(20, 35, 33, .86); max-width: 22em; }
/* Wide screens: the stations are labels on the rail over a soft mist, not a box (jury 2, fix 6) */
@media (min-width: 1000px) {
  .stations { position: relative; isolation: isolate; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0 0 14px; border-radius: 0; }
  .stations::before { content: ""; position: absolute; inset: -18px -28px; z-index: -1; pointer-events: none; border-radius: 40px; background: var(--mist-c); filter: blur(20px); }
}
.rail { position: relative; height: 1px; margin-top: 22px; background: var(--line); }
.rail i { position: absolute; inset: 0; background: var(--ink); transform: scaleX(var(--pos, 0)); transform-origin: 0 50%; }
.task { position: relative; width: var(--cw); margin-top: 28px; padding: 22px 24px 24px; }
.motion .delivery.is-pinned .task { transform: translateX(calc(var(--pos, 0) * (min(1384px, 100vw - 2 * var(--margin)) - var(--cw)))); will-change: transform; }
.task header { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(20, 35, 33, .86); }
.task header img { width: 20px; height: auto; }
.task .state { margin-left: auto; display: grid; font-style: normal; }
.task .state i { grid-area: 1 / 1; font-style: normal; padding: 5px 10px; border-radius: 999px; background: rgba(20, 35, 33, .07); color: var(--evergreen); opacity: 0; transition: opacity .4s ease; }
.delivery[data-station="0"] .state i:nth-child(1), .delivery[data-station="1"] .state i:nth-child(2),
.delivery[data-station="2"] .state i:nth-child(3), .delivery[data-station="3"] .state i:nth-child(4) { opacity: 1; }
.task .task-title { margin-top: 14px; font: 400 21px/1.25 var(--serif); }
.task ul { margin-top: 16px; display: grid; gap: 9px; padding-right: 112px; font-size: 14px; } /* room for the stamp */
.task li { display: flex; align-items: center; gap: 10px; transition: opacity .4s ease; }
.task li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid currentColor; flex: none; transition: background-color .35s ease, box-shadow .35s ease; }
.motion .task li { opacity: .5; }
.delivery[data-station="0"] .task li:nth-child(-n+1), .delivery[data-station="1"] .task li:nth-child(-n+2),
.delivery[data-station="2"] .task li:nth-child(-n+3), .delivery[data-station="3"] .task li { opacity: 1; }
.delivery[data-station="1"] .task li:nth-child(-n+1)::before, .delivery[data-station="2"] .task li:nth-child(-n+2)::before,
.delivery[data-station="3"] .task li::before { background: var(--evergreen); box-shadow: inset 0 0 0 3px var(--ivory); }
.stamp { position: absolute; right: 22px; bottom: 22px; padding: 8px 12px 6px; border: 2px solid #7E4430; border-radius: 6px; color: #7E4430; font: 500 15px/1 var(--sign); letter-spacing: .14em; text-transform: uppercase; transform: rotate(-9deg); transition: opacity .25s ease, transform .45s cubic-bezier(.2, 1.6, .4, 1); }
.motion .stamp { opacity: 0; transform: rotate(-9deg) scale(1.7); }
.motion .delivery[data-station="2"] .stamp, .motion .delivery[data-station="3"] .stamp { opacity: .92; transform: rotate(-9deg) scale(1); }
.del-note { margin-top: 16px; font-size: 13px; color: var(--ink-soft); }
@media (max-width: 760px) {
  .stations { grid-template-columns: 1fr; gap: 14px; }
  .del-stage { --cw: 100%; }
}
/* Not pinned on a phone: the stations read as a list, then the card holds still under the nav while the scroll runs it through the four stations */
@media (min-height: 560px) and (prefers-reduced-motion: no-preference) {
  .motion .delivery:not(.is-pinned) .del-stage { display: flex; flex-direction: column; }
  .motion .delivery:not(.is-pinned) .del-note { order: 1; }
  .motion .delivery:not(.is-pinned) .task { order: 2; position: sticky; top: 92px; }
  .motion .delivery:not(.is-pinned) .del-stage::after { content: ""; order: 3; display: block; height: 110svh; }
}

/* Projects: on the way, sideways (main.js pins the scene, sets its height and moves the track, eased like the fjord) */
.projects .pin { display: flex; align-items: center; }
.projects:not(.is-pinned) .pin { padding-block: 16svh; }
.track { display: flex; align-items: stretch; gap: clamp(16px, 2vw, 28px); padding-inline: var(--margin) calc(var(--margin) + 48px); }
.projects.is-pinned .track { will-change: transform; }
.projects:not(.is-pinned) .track { overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; padding-bottom: 14px; scroll-padding-inline: var(--margin); }
.projects:not(.is-pinned) .proj-intro { scroll-snap-align: start; } /* the row opens on the intro, not snapped to the first card */
.proj-intro { flex: none; width: min(34em, 80vw); align-self: flex-start; padding-right: clamp(0px, 4vw, 64px); }
.proj-intro p { margin-top: 24px; font-size: var(--fs-lead); line-height: 1.5; max-width: 26em; }
.proj-intro .proj-note { margin-top: 18px; font-size: 14px; color: var(--ink-soft); }
/* Card rows line up across cards: art, status, name, text (takes the slack), for whom, link */
.proj { flex: none; width: clamp(290px, 27vw, 420px); min-height: min(68svh, 620px); display: grid; grid-template-rows: auto auto auto 1fr auto auto; align-content: start; gap: 12px; padding: 28px; scroll-snap-align: center; color: var(--evergreen);
  border-radius: var(--radius); background: rgba(244, 240, 232, .6); border: 1px solid rgba(255, 255, 255, .6); -webkit-backdrop-filter: blur(20px) saturate(1.2); backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 30px 60px -40px rgba(20, 35, 33, .45), inset 0 1px 0 rgba(255, 255, 255, .7); }
.proj-art { order: -2; width: 100%; height: auto; padding-bottom: 20px; fill: none; stroke: var(--evergreen); stroke-width: 1.5; stroke-linecap: round; }
.proj .status { order: -1; }
.proj-art .hit { stroke: var(--clay); stroke-width: 2.5; }
.proj-art .dot { fill: var(--evergreen); }
.proj-art .hit.dot { fill: var(--clay); }
.proj-art .traveller { fill: var(--clay); stroke: none; opacity: 0; offset-path: path('M30 170 C 90 170, 90 60, 160 60 S 230 160, 290 70'); offset-distance: 0%; }
.motion .proj-art > :not(.traveller) { stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 2.2s var(--ease-out); }
.proj.is-in .proj-art > * { stroke-dashoffset: 0; }
.proj.is-in .proj-art > :nth-child(2) { transition-delay: .15s; } .proj.is-in .proj-art > :nth-child(3) { transition-delay: .3s; }
.proj.is-in .proj-art > :nth-child(4) { transition-delay: .45s; } .proj.is-in .proj-art > :nth-child(n+5) { transition-delay: .6s; }
/* Cards are uncovered by a wipe, not by fog; the inset stays wide open afterwards so the shadow is not clipped */
.motion:not(.mat-paper) .proj[data-reveal] { opacity: 1; filter: none; transform: none; clip-path: inset(0 0 100% 0 round var(--radius)); transition: clip-path .9s var(--ease-io), translate .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.motion:not(.mat-paper) .proj[data-reveal].is-in, .motion:not(.mat-paper) .proj[data-reveal]:focus-within { clip-path: inset(-90px round var(--radius)); }
.status { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 6px 12px; border-radius: 999px; background: rgba(20, 35, 33, .07); font: 500 13px/1 var(--sans); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.status.build { position: relative; }
.status.build::before { background: var(--clay); }
/* The pulse is a ring that scales and fades (no repainted shadow), and it stops with the motion switch */
.status.build::after { content: ""; position: absolute; left: 12px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--clay); opacity: 0; }
.motion:not(.is-still) .status.build::after { animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .45; } 70%, 100% { transform: scale(2.8); opacity: 0; } }
.status.explore::before { border: 1.5px solid currentColor; }
/* sized so the longest name (SYNLIGHETSRAPPORT, 17 signs at about .67em each) fits one line in the narrowest card */
.proj-name { font: 400 clamp(19px, 1.8vw, 30px)/1.05 var(--sign); letter-spacing: .05em; text-transform: uppercase; overflow-wrap: anywhere; }
.proj p { max-width: 28em; }
.proj .for { color: rgba(20, 35, 33, .86); font-size: 15px; }
.proj .link { justify-self: start; margin-top: 6px; }
/* Hover: the card lifts, its shadow grows, and the drawing plays once */
@media (hover: hover) and (pointer: fine) {
  .proj:hover { translate: 0 -4px; box-shadow: 0 40px 70px -40px rgba(20, 35, 33, .58), inset 0 1px 0 rgba(255, 255, 255, .7); }
  .motion:not(.is-still) .proj:hover .art-search .hit { animation: underline 1s var(--ease-out) both; }
  .motion:not(.is-still) .proj:hover .art-search .hit + .hit { animation-delay: .14s; }
  .motion:not(.is-still) .proj:hover .art-journey .traveller { animation: travel 1.8s var(--ease-io) both; }
  .motion:not(.is-still) .proj:hover .art-access rect, .motion:not(.is-still) .proj:hover .art-signal circle:not(.dot) { animation: ring 1.1s var(--ease-out) both; }
  .motion:not(.is-still) .proj:hover .art-access rect:nth-child(2), .motion:not(.is-still) .proj:hover .art-signal circle:nth-child(2) { animation-delay: .1s; }
  .motion:not(.is-still) .proj:hover .art-access rect:nth-child(3), .motion:not(.is-still) .proj:hover .art-signal circle:nth-child(3) { animation-delay: .2s; }
}
@keyframes underline { from { stroke-dasharray: 260; stroke-dashoffset: 260; } to { stroke-dasharray: 260; stroke-dashoffset: 0; } }
@keyframes travel { 0% { offset-distance: 0%; opacity: 0; } 12%, 88% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes ring { 40% { stroke-width: 3.2; } }

/* Principles: written on the horizon, one at a time, each with its reflection in the water.
   Without script, with reduced motion, or where the scene does not fit, they are a plain list on a veil of mist. */
.principles .pin { padding-block: clamp(80px, 14svh, 160px) clamp(100px, 18svh, 200px); }
.pr-stage { display: grid; gap: clamp(28px, 5svh, 56px); }
.vows { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21em), 1fr)); gap: 16px 48px; font: 300 clamp(21px, 1.8vw, 28px)/1.3 var(--serif); letter-spacing: -.01em; }
.vows li { position: relative; padding-left: 1.2em; }
.vows li::before { content: ""; position: absolute; left: 0; top: .5em; width: .56em; height: .47em; background: currentColor; opacity: .55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4755 4000'%3E%3Cpath d='M754.72,0 L4754.72,0 L4075.47,905.66 L1735.85,905.66 L1283.02,1509.43 L4000,1509.43 L3320.75,2415.09 L1433.96,2415.09 L981.13,3018.87 L4754.72,3018.87 L4018.87,4000 L0,4000 L1584.91,1735.85 L452.83,1735.85 Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4755 4000'%3E%3Cpath d='M754.72,0 L4754.72,0 L4075.47,905.66 L1735.85,905.66 L1283.02,1509.43 L4000,1509.43 L3320.75,2415.09 L1433.96,2415.09 L981.13,3018.87 L4754.72,3018.87 L4018.87,4000 L0,4000 L1584.91,1735.85 L452.83,1735.85 Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.vow-count, .vow-water { display: none; }
/* Pinned: main.js sets --horizon (px from the top) where the fjord's waterline is, as the camera lowers toward the water */
.motion .principles.is-pinned { height: 360svh; }
@media (max-width: 759px) { .motion .principles.is-pinned { height: 300svh; } }
.motion .principles.is-pinned .pin { padding: 0; }
.principles.is-pinned .pr-stage { position: relative; display: block; height: 100%; }
.principles.is-pinned .pr-stage > .h2 { position: absolute; top: clamp(104px, 15svh, 168px); left: var(--margin); }
.principles.is-pinned :is(.vows, .vows-mirror) { position: absolute; left: 50%; width: min(20em, calc(100% - 2 * var(--margin))); translate: -50% 0; display: grid; gap: 0;
  font: 300 clamp(26px, 3.4vw, 60px)/1.12 var(--serif); letter-spacing: -.018em; text-align: center; text-wrap: balance; }
.principles.is-pinned .vows { bottom: calc(100% - var(--horizon, 58svh) + .32em); }
.principles.is-pinned :is(.vows, .vows-mirror) li { grid-area: 1 / 1; align-self: end; padding: 0; }
.principles.is-pinned :is(.vows, .vows-mirror) li::before { display: none; }
/* A thin breath of mist hugs the line itself and leaves with it (no cloud: the line is large text over the light horizon) */
.principles.is-pinned .vows::before { display: none; }
.principles.is-pinned .vows li { position: relative; isolation: isolate; justify-self: center; width: fit-content; max-width: 100%; }
.principles.is-pinned .vows li::after { content: ""; position: absolute; inset: -12px -36px; z-index: -1; border-radius: 40px; background: var(--mist-c); filter: blur(24px); opacity: .55; pointer-events: none; }
/* The outgoing line rises into mist; the next one rises out of the water line */
.principles.is-pinned :is(.vows, .vows-mirror) li { opacity: 0; transform: translateY(.55em); filter: blur(3px); transition: opacity .45s ease, transform .55s var(--ease-io), filter .45s ease; }
.principles.is-pinned :is(.vows, .vows-mirror) li.is-past { transform: translateY(-.6em); filter: blur(6px); }
.principles.is-pinned :is(.vows, .vows-mirror) li.is-on { opacity: 1; transform: none; filter: none; transition: opacity .9s ease .22s, transform 1.1s var(--ease-out) .22s, filter .9s ease .22s; }
/* The reflection: the same lines upside down under the waterline, faint, fading with depth, broken by a slow ripple (one small filtered element) */
.principles.is-pinned .vow-water { display: block; position: absolute; left: 0; right: 0; top: calc(var(--horizon, 58svh) + .1em); height: 30svh; pointer-events: none; opacity: .24;
  filter: url(#vow-ripple) blur(.5px); -webkit-mask-image: linear-gradient(#000 15%, transparent 80%); mask-image: linear-gradient(#000 15%, transparent 80%); will-change: transform; }
/* The water moves the reflection, the reflection is drawn once: only the strip's transform animates (compositor), never the filter */
.principles.is-rippling.is-pinned .vow-water { animation: vow-sway 7s ease-in-out infinite alternate; }
@keyframes vow-sway { from { transform: translate3d(-4px, 0, 0) scale(1, 1); } to { transform: translate3d(4px, 1px, 0) scale(1.012, .97); } }
.principles.is-pinned .vows-mirror { top: 0; transform: scaleY(-1); font-size: clamp(26px, 3.4vw, 60px); }
.principles.is-pinned .vow-count { display: block; position: absolute; right: var(--margin); top: calc(var(--horizon, 58svh) - 2.4em); font: 400 13px/1 var(--sign); letter-spacing: .22em; font-variant-numeric: tabular-nums; }
.principles.is-pinned .vow-count b { font-weight: 400; }
.vow-defs { position: absolute; width: 0; height: 0; }
@media (max-width: 759px) {
  .principles.is-pinned :is(.vows, .vows-mirror) { font-size: clamp(27px, 7.4vw, 32px); line-height: 1.16; width: calc(100% - 2 * var(--margin)); }
  /* the counter at the right end, above a line of up to three rows (English runs to three), out of the water */
  .principles.is-pinned .vow-count { right: var(--margin); left: auto; top: calc(var(--horizon, 58svh) - 4.45 * clamp(27px, 7.4vw, 32px) - 20px); }
  /* a soft local veil hugs the line so the ridge cannot cut through the glyphs */
  .principles.is-pinned .vows li::after { inset: -.35em -.8em; border-radius: 0; background: radial-gradient(closest-side, rgba(244, 240, 232, .5), transparent); filter: none; opacity: 1; }
  /* the line stands higher, clear of the ridge and the lanterns; the counter above moves up with it; the heading's veil has no edge (jury 4, fix 7) */
  .principles.is-pinned .vows { bottom: calc(100% - var(--horizon, 58svh) + .9em); }
  .pr-stage > .h2::before { inset: -44px -72px; border-radius: 0; background: radial-gradient(closest-side, rgba(244, 240, 232, .36), rgba(244, 240, 232, .22) 45%, rgba(244, 240, 232, .07) 75%, transparent); filter: none; opacity: 1; }
}
/* 375 px: «AI tar grovarbeidet. Dømmekraften beholder vi selv.» needs 26 px to set on two rows (27.75 px gave three) */
@media (max-width: 389px) { .principles.is-pinned :is(.vows, .vows-mirror) { font-size: 26px; } }

/* Glass */
.glass { border-radius: var(--radius); background: rgba(244, 240, 232, .55); border: 1px solid rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); box-shadow: 0 24px 50px -36px rgba(20, 35, 33, .5), inset 0 1px 0 rgba(255, 255, 255, .65); color: var(--evergreen); }
.glass-dark { background: rgba(20, 35, 33, .74); border-color: rgba(244, 240, 232, .14); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(244, 240, 232, .1); color: var(--ivory); }

/* Who */
.who { min-height: 110svh; display: flex; align-items: center; padding-block: 14svh; }
.who-card { max-width: 40em; padding: clamp(28px, 4.5vw, 64px); }
.who-mono { width: 44px; height: auto; margin-bottom: 28px; }
.who-card p { margin-top: 18px; font-size: var(--fs-lead); line-height: 1.55; }
.who-card p + p { font-size: 17px; color: var(--ink-soft); }
/* Phones: no glass box; the text stands on the dusk landscape over the same mist as every other block (jury 4, fix 6) */
@media (max-width: 759px) {
  .who-card { position: relative; isolation: isolate; padding-inline: 0; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .who-card::before { content: ""; position: absolute; inset: -48px -80px; z-index: -1; pointer-events: none; border-radius: 64px; background: var(--mist-c); filter: blur(36px); }
}

/* Questions: the heading holds in the left column while the answers pass */
.faq { padding-block: 18svh; }
.faq-grid { display: grid; gap: 32px 24px; }
@media (min-width: 1000px) {
  .faq-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .faq-side { grid-column: 1 / span 4; position: sticky; top: 140px; }
  .faq-list { grid-column: 6 / span 7; }
}
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; padding-block: 16px; cursor: pointer; list-style: none; font: 400 clamp(20px, 1.7vw, 25px)/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 14px; height: 14px; flex: none; background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat; transition: transform .45s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { padding-bottom: 24px; max-width: 34em; color: var(--ink); font-size: 17px; }

/* Contact, under the night sky */
.contact { min-height: 115svh; display: flex; align-items: center; padding-block: 16svh; }
.contact .wrap { display: grid; justify-items: start; }
.contact .h2 { max-width: 10em; }
.ct-body { margin-top: 24px; max-width: 28em; font-size: var(--fs-lead); line-height: 1.5; color: var(--ink); }
.ct-line { margin-top: clamp(32px, 6svh, 64px); }
.ct-mail { position: relative; display: inline-block; font: 300 clamp(40px, 6.2vw, 112px)/1 var(--serif); letter-spacing: -.035em; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; padding-bottom: .08em; }
.ct-mail:hover, .ct-mail:focus-visible { background-size: 100% 2px; }

/* Footer: the day closes. With the fjord the landscape folds back into the monogram behind it (the moon stays); without it the monogram is drawn here */
.footer { position: relative; padding-block: 56px 36px; background: var(--evergreen); }
.footer .wrap { display: grid; justify-items: center; text-align: center; }
.footer-mono { width: clamp(56px, 6vw, 88px); height: auto; margin-bottom: 8svh; }
.footer-sign { width: 38%; min-width: 210px; max-width: 640px; }
.footer-mark { width: 100%; height: auto; opacity: .96; }
.footer-line { margin-top: 28px; font: 300 var(--fs-lead) var(--serif); color: var(--ink-soft); }
.footer-row { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 40px; font-size: 14px; color: var(--ink-soft); text-align: left; }
.footer-about { width: 100%; max-width: 62em; justify-self: start; margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--ink-soft); text-align: left; text-wrap: pretty; }
.folds .footer { min-height: 100svh; display: flex; align-items: flex-end; background: none; }
.folds .footer .wrap { padding-top: 62svh; }
/* The words arrive only once the landscape has folded into the monogram (main.js writes --fold on the footer; unset means 1, fully shown) */
.folds .footer .wrap { opacity: clamp(0, (var(--fold, 1) - .85) * 6.7, 1); translate: 0 calc((1 - var(--fold, 1)) * 5svh); }
.folds .footer .wrap:focus-within { opacity: 1; translate: none; }
/* Under the folded monogram the stack must stay low: the colophon's height comes back out of the spacing, so «EDSETH» clears the monogram */
.folds .footer { padding-bottom: 22px; overflow: clip; } /* the rising words must not lengthen the page while they travel */
.folds .footer-row { margin-top: 24px; }
.folds .footer-about { margin-top: 8px; }
.folds .footer-mono { display: none; }
/* Where the space under the folded monogram cannot hold the whole stack (phones, and screens up to 820 px tall) the monogram is the mark, so the wordmark steps aside;
   on phones the line also rises above the monogram, while «Se dagen igjen» and the colophon stay below it */
@media (min-width: 760px) and (max-height: 820px), (max-width: 759px) and (max-height: 700px) { .folds .footer-mark { display: none; } }
/* Phones with room (owner: «Bør stå edseth»): the wordmark stands above the line, over the folded monogram, smaller */
@media (max-width: 759px) and (min-height: 701px) { .folds .footer-sign { width: 46%; min-width: 0; max-width: 200px; } }
/* Notched phones: the nav stays clear of the status bar (viewport-fit=cover) */
.nav { padding-top: max(18px, env(safe-area-inset-top)); }
@media (max-width: 759px) { .folds .footer-line { margin-bottom: calc(59svh - 250px); } }
/* Short phones: the line sits about 20 px above the monogram, so on the way in it would cross it; it appears only in the fold's last 20 px (jury 4, fix 4) */
@media (max-width: 759px) and (max-height: 700px) { .folds .footer-line { opacity: clamp(0, (var(--fold, 1) - .996) * 250, 1); } }
/* Short phones (320×568): the button rises too, and only the colophon stays under the monogram */
@media (max-width: 759px) and (max-height: 640px) {
  .folds .footer-line { margin-bottom: 0; }
  .folds .footer-again { margin-top: 20px; margin-bottom: calc(59svh - 185px); }
}
html { scroll-padding-bottom: 24px; } /* QA item 3: the focus ring on the last answers is not cut at the bottom edge */
/* A new day (main.js): the button turns the night's monogram into the morning's and plays the opening again; the line under it fills while you keep scrolling at the end */
.footer-again { display: grid; justify-items: center; gap: 16px; margin-top: 30px; }
html:not(.motion) .footer-again { display: none; }
.newday { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 22px; border: 1px solid rgba(244, 240, 232, .4); border-radius: 999px; background: none; color: var(--ink); font: 500 14px/1 var(--sans); cursor: pointer; transition: background-color .25s ease, border-color .25s ease; }
.newday:hover { background: rgba(244, 240, 232, .12); border-color: rgba(244, 240, 232, .7); }
.newday[hidden], .newday-hint[hidden] { display: none; }
.newday svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; overflow: visible; }
.newday-hint { display: block; width: 96px; height: 1px; background: rgba(244, 240, 232, .22); }
.newday-hint i { display: block; height: 100%; background: var(--ink); transform: scaleX(var(--k, 0)); transition: transform .3s var(--ease-out); }
@media (prefers-reduced-motion: no-preference) {
  .newday .sun { transition: transform .5s var(--ease-out); }
  .newday:is(:hover, :focus-visible) .sun { transform: translateY(-2.5px); }
}
.newday-veil, .newday-veil > div { position: fixed; inset: 0 0 auto; height: 100lvh; }
.newday-veil { z-index: 60; background: var(--lowsun); clip-path: circle(0 at 50% 50%); }
.newday-veil > div { background: var(--ivory); clip-path: circle(0 at 50% 50%); }
.newday-snap, .newday-snap * { transition: none !important; }
.hero h1[tabindex="-1"]:focus { outline: none; box-shadow: none; }

/* Without script (or if main.js did not run): no pinning, everything in reading order, dark sections on Evergreen */
html:not(.motion) .on-dark { background: var(--evergreen); }

/* Reduced motion: no travel, no blur, no loops; the light still follows the scroll */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .motion [data-reveal], .motion [data-split] .w > *, .motion .act *, .stamp, .task, .motion .proj[data-reveal], .proj-art > * { transition: none !important; }
  .motion [data-reveal], .motion:not(.is-ready) .hero [data-reveal] { opacity: 1; filter: none; transform: none; }
  .motion [data-split] .w > * { transform: none; }
  .motion .proj[data-reveal] { clip-path: none; }
  .motion .proj-art > * { stroke-dashoffset: 0; }
  .motion .delivery.is-pinned .task { transform: none; }
  .motion .manifest-text span[aria-hidden] { opacity: 1; }
  .motion .is-pinned .pin > * { translate: none; filter: none; }
}
