/* Glimtly · web-identitet (forslag 2)
   Ét stylesheet for landingssiden, 404 og stilguiden (system.html). Bygget som et system:
   1 tokens · 2 grund · 3 layout · 4 komponenter · 5 sektioner · 6 bevægelse · 7 print.
   Palet fra den godkendte designguide: blækblå #263742, abrikos #E97E57 (kun glimtet), varmt papir #F7F2E9.
   Ingen eksterne kald. Kontrasttal står i README og i system.html. */

/* 1 · Tokens ------------------------------------------------------------ */

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Tilpasset reserveskrift, så teksten ikke flytter sig, når Hanken Grotesk er hentet. */
@font-face {
  font-family: "Hanken Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 101.85%;
  ascent-override: 98.18%;
  descent-override: 29.46%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light;

  /* Brand (fast) */
  --blaek: #263742;
  --abrikos: #e97e57;
  --papir: #f7f2e9;

  /* Roller, lys tilstand. .ink nedenfor bytter de samme roller om til blækblå tilstand. */
  --bg: var(--papir);
  --surface: #fffefa;
  --wash: #f0eee7;
  --fg: var(--blaek);
  --fg-soft: #4d5e69;
  --fg-muted: #69645d;
  --fg-faint: #7a8790;          /* kun stor tekst (mindst 24 px), 3,3:1 */
  --line: #e3dfd8;
  --line-strong: #8a857e;      /* kanter på kontroller og mærkater, mindst 3:1 */
  --action: var(--blaek);
  --action-hover: #1d2c36;
  --on-action: var(--papir);
  --focus: var(--blaek);

  /* Hjælpetoner til flader og illustration (aldrig tekst) */
  --blaek-dyb: #17232c;
  --tint-1: #e3edf3;
  --tint-2: #ccdae3;
  --tint-3: #acbfcc;
  --tint-4: #839cad;

  /* Skrift */
  --font: "Hanken Grotesk", "Hanken Fallback", system-ui, sans-serif;
  --t-small: .875rem;
  --t-body: 1rem;
  --t-lede: clamp(1.125rem, 1.02rem + .45vw, 1.375rem);
  --t-h3: clamp(1.5rem, 1.2rem + 1.3vw, 2.25rem);
  --t-h2: clamp(2rem, 1.3rem + 3vw, 3.75rem);
  --t-display: clamp(2.5rem, 1.1rem + 6vw, 6.5rem);
  --t-hero: clamp(2.5rem, 13.2vw, 5.5rem);

  /* Afstand: produktets skala (4–48) forlænget med tre sektionstrin */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px;
  --s-8: 72px; --s-9: 112px; --s-10: 160px;
  --section: clamp(72px, 11vw, 168px);
  --gutter: clamp(20px, 5vw, 72px);
  --gap: clamp(16px, 2.2vw, 32px);
  --max: 1240px;

  /* Form */
  --r-control: 8px;
  --r-card: 12px;
  --r-panel: 20px;
  --r-pill: 999px;
  --r-glimt: 28%;

  /* Bevægelse */
  --dur-state: 150ms;
  --dur-enter: 700ms;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --ease-out: cubic-bezier(.2, .75, .2, 1);

  /* Billedpladser. De fire filer er abstrakte lysflader; byt dem med rigtige festbilleder (se README). */
  --img-nat: url("/assets/billeder/glimt-nat.webp");
  --img-bord: url("/assets/billeder/glimt-bord.webp");
  --img-dans: url("/assets/billeder/glimt-dans.webp");
  --img-daggry: url("/assets/billeder/glimt-daggry.webp");
}

/* Blækblå tilstand: sæt .ink på en sektion, så følger alle komponenter med. */
.ink {
  --bg: var(--blaek);
  --surface: #2e414d;
  --wash: #1f2e38;
  --fg: var(--papir);
  --fg-soft: #dfe3e2;
  --fg-muted: #c3cdd4;
  --fg-faint: #8fa0ac;
  --line: rgb(247 242 233 / .16);
  --line-strong: rgb(247 242 233 / .45);
  --action: var(--papir);
  --action-hover: #fffefa;
  --on-action: var(--blaek);
  --focus: var(--papir);
  background-color: var(--bg);
  color: var(--fg);
}

/* 2 · Grund -------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--s-5);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  /* Papirkorn: en lille flise, der ruller med siden. */
  background-image: url("/assets/korn-papir.svg");
  background-size: 220px 220px;
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

main { flex: 1 0 auto; }

::selection { background: #d8dad9; color: var(--blaek); }

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: var(--s-4);
  top: var(--s-4);
  z-index: 10;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-control);
  background: var(--action);
  color: var(--on-action);
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* 3 · Layout ------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

/* 12 kolonner. To faste akser: kolonne 1 (overskrifter) og kolonne 7 (svar, billede, handling). */
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: var(--s-5);
}

.section { padding-block: var(--section); }

/* 4 · Komponenter ---------------------------------------------------------- */

/* Glimtet: logoets afrundede prik. Eneste sted abrikos bruges. Højst ét ad gangen i et skærmbillede. */
.glimt {
  display: inline-block;
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: var(--r-glimt);
  background: var(--abrikos);
}

.glimt--halo { box-shadow: 0 0 0 6px rgb(233 126 87 / .16), 0 0 26px 8px rgb(233 126 87 / .2); }

/* Skrifttrin */
.display, .h2, .h3 { font-weight: 500; text-wrap: balance; }

.display {
  font-size: var(--t-display);
  line-height: 1;
  letter-spacing: -.04em;
}

.h2 {
  font-size: var(--t-h2);
  line-height: 1.04;
  letter-spacing: -.035em;
}

.h3 {
  font-size: var(--t-h3);
  line-height: 1.12;
  letter-spacing: -.025em;
}

.lede {
  font-size: var(--t-lede);
  line-height: 1.5;
  color: var(--fg-muted);
  text-wrap: pretty;
}

.body { color: var(--fg-muted); text-wrap: pretty; }

/* Øjenbryn: siger hvor eller hvornår i festen vi er. Sætningsform, aldrig versaler. */
.eyebrow {
  font-size: var(--t-small);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .01em;
  color: var(--fg-muted);
}

/* Mærkat */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 30px;
  padding: 4px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-size: var(--t-small);
  font-weight: 500;
  line-height: 1.3;
  color: var(--fg);
}

/* Knapper */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  min-height: 48px;
  max-width: 100%;
  padding: 12px 22px;
  border: 1px solid var(--action);
  border-radius: var(--r-control);
  background: var(--action);
  color: var(--on-action);
  font: inherit;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: background-color var(--dur-state) var(--ease), border-color var(--dur-state) var(--ease), color var(--dur-state) var(--ease);
}

.btn:hover { background: var(--action-hover); border-color: var(--action-hover); }

.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn--ghost:hover { background: transparent; border-color: var(--fg); }

.btn svg, .link svg, .mail svg { flex: none; transition: transform var(--dur-state) var(--ease); }
.btn:hover svg, .link:hover svg { transform: translateX(3px); }

/* Tekstlink: understregning i linjefarve, der bliver til tekstfarve. Altid mindst 44 px højt som selvstændigt link. */
.link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .28em;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color var(--dur-state) var(--ease);
}
.link:hover { text-decoration-color: currentColor; }

/* Sektionshoved: overskrift på akse 1, kort svar på akse 7. */
.section-head { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: var(--s-4); }
.section-head__note { color: var(--fg-muted); font-size: var(--t-lede); line-height: 1.5; max-width: 30ch; }

/* Billedflade: holder pladsen (ingen layoutskift) og bærer korn. Et <img> indeni dækker fladen. */
.frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  background-color: var(--blaek-dyb);
  background-size: cover;
  background-position: center;
}
.frame::after, .slit__scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/korn-lys.svg") 0 0 / 180px 180px;
  opacity: .5;
  pointer-events: none;
}
.frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.img-nat { background-image: var(--img-nat); }
.img-bord { background-image: var(--img-bord); }
.img-dans { background-image: var(--img-dans); }
.img-daggry { background-image: var(--img-daggry); background-color: #dcd9cf; }

/* Teaserkort */
.card {
  display: flex;
  flex-direction: column;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--surface);
}
.card__art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  border-radius: var(--r-card);
  background: var(--wash);
}
.card__text { padding: clamp(20px, 2.4vw, 32px) clamp(4px, .8vw, 12px) clamp(8px, 1vw, 12px); }
.card__text .h3 { margin-top: var(--s-2); }
.card__text .body { margin-top: var(--s-3); max-width: 38ch; }

/* Sidehoved og navigation (navigationen bruges først på det fulde websted; se system.html) */
.site-header { padding-top: max(clamp(16px, 2.6vw, 32px), env(safe-area-inset-top)); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }

.brand {
  display: inline-block;
  /* Logoets frirum er indbygget i filen; negativ margin flugter de synlige bogstaver med akse 1. */
  --logo-w: clamp(132px, 12vw, 164px);
  margin-left: calc(var(--logo-w) * -.0835);
  border-radius: var(--r-control);
}
.brand img { width: var(--logo-w); height: auto; aspect-ratio: 2036 / 840; }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--fg-soft);
  transition: color var(--dur-state) var(--ease);
}
.nav__link:hover { color: var(--fg); }
.nav__link[aria-current="page"] { color: var(--fg); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .5em; }

/* Sidefod */
.site-footer {
  padding-top: var(--s-5);
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: .9375rem;
  color: var(--fg-muted);
}
.site-footer__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-5); }

/* 5 · Sektioner ------------------------------------------------------------ */

/* Hero */
.hero {
  position: relative;
  padding-top: clamp(36px, 6vw, 88px);
  padding-bottom: clamp(56px, 8vw, 120px);
}

/* Lys på papir: en blød lysning øverst til højre. */
.hero::before {
  content: "";
  position: absolute;
  inset: -160px 0 30% 30%;
  z-index: -1;
  background: radial-gradient(ellipse 62% 70% at 78% 18%, rgb(255 254 250 / .95), rgb(255 254 250 / 0) 70%);
  pointer-events: none;
}

.hero__title {
  margin-top: clamp(18px, 2.2vw, 28px);
  font-size: var(--t-hero);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.045em;
}
.hero__title .line { display: block; }
.hero__title .soft { color: var(--fg-soft); }

/* Overskriftens punktum er glimtet. */
.hero__title .glimt {
  width: .19em;
  height: .19em;
  margin-left: .07em;
  vertical-align: baseline;
}

.hero__lede { margin-top: clamp(20px, 2.6vw, 36px); max-width: 30ch; }

/* Sprækkerne: syv udsnit af ét og samme billede. Hvert udsnit ejer sin del af bredden (--w), og
   scenen indeni er lagt, så billedet hænger sammen på tværs. clip-path gør udsnittet til en sprække. */
.slits {
  display: flex;
  height: clamp(200px, 30vw, 440px);
  margin-top: clamp(40px, 6vw, 88px);
}
.slit {
  position: relative;
  flex: 0 0 calc(var(--w) * 1%);
  overflow: hidden;
  clip-path: inset(0 var(--r) 0 var(--l) round 10px);
}
.slit__scene {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(-100% * var(--x) / var(--w));
  width: calc(100% * 100 / var(--w));
  background: var(--blaek-dyb) var(--img-nat) center / cover no-repeat;
}
/* På blæk lyser sprækkerne: dér bruges et lyst billede. */
.ink .slit__scene { background-color: #dcd9cf; background-image: var(--img-daggry); }
.slit::after { content: ""; position: absolute; inset: 0; background: var(--surface); opacity: 0; pointer-events: none; }
.slit:nth-child(1) { --x: 0;  --w: 11; --l: 30%; --r: 45%; --n: 2; }
.slit:nth-child(2) { --x: 11; --w: 16; --l: 20%; --r: 30%; --n: 5; }
.slit:nth-child(3) { --x: 27; --w: 9;  --l: 40%; --r: 38%; --n: 0; }
.slit:nth-child(4) { --x: 36; --w: 22; --l: 18%; --r: 22%; --n: 3; }
.slit:nth-child(5) { --x: 58; --w: 13; --l: 42%; --r: 35%; --n: 6; }
.slit:nth-child(6) { --x: 71; --w: 17; --l: 25%; --r: 40%; --n: 1; }
.slit:nth-child(7) { --x: 88; --w: 12; --l: 35%; --r: 35%; --n: 4; }

/* Stemning */
.mood { padding-block: clamp(56px, 9vw, 136px) var(--section); }
.mood__text {
  max-width: 21em;
  font-size: clamp(1.75rem, 1rem + 3.3vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.035em;
  text-wrap: pretty;
}
.mood__resolve {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-top: clamp(32px, 4.5vw, 64px);
  font-size: var(--t-h3);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.025em;
}
.mood__resolve .glimt { width: 12px; height: 12px; }

/* Teasere */
.teasers { border-top: 1px solid var(--line); padding-top: var(--section); }

.story { margin-top: clamp(48px, 7vw, 104px); display: grid; grid-template-columns: minmax(0, 1fr); row-gap: var(--s-6); }
.step .eyebrow { font-size: .9375rem; }
.step .h3 { margin-top: var(--s-3); font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); line-height: 1.06; letter-spacing: -.03em; }
.step .body { margin-top: var(--s-4); max-width: 34ch; font-size: var(--t-lede); line-height: 1.5; }
.step--2 { margin-top: var(--s-7); }

.scene { position: relative; width: 100%; max-width: 540px; }
.scene__card {
  padding: clamp(16px, 4.6%, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--surface);
}
.scene__cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 24px;
  margin-top: clamp(14px, 4%, 22px);
  font-size: var(--t-small);
  font-weight: 500;
  line-height: 1.3;
  color: var(--fg-muted);
}
.scene__cap svg { flex: none; color: var(--fg); }

/* Matrixen: 25 × 25 felter. QR-koden og galleriet deler net, så det ene kan blive til det andet. */
.matrix { position: relative; aspect-ratio: 1; }
.matrix .glimt { position: absolute; left: 44.6%; top: 56.6%; width: 2.8%; height: 2.8%; }
.qr { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--blaek); fill: currentColor; }

.tile { position: absolute; }
.tile--a { left: 0;   top: 0;   width: 44%; height: 56%; background-position: 28% 40%; background-size: 420% auto; }
.tile--b { left: 48%; top: 0;   width: 52%; height: 32%; background-position: 50% 78%; }
.tile--c { left: 48%; top: 36%; width: 24%; height: 36%; background-position: 30% 30%; background-size: 520% auto; }
.tile--d { left: 76%; top: 36%; width: 24%; height: 20%; background-position: 70% 30%; }
.tile--e { left: 76%; top: 60%; width: 24%; height: 40%; background-position: 82% 55%; background-size: 700% auto; }
.tile--f { left: 0;   top: 60%; width: 44%; height: 40%; background-position: 60% 60%; }
.tile--g { left: 48%; top: 76%; width: 24%; height: 24%; background-position: 20% 80%; }

/* Godkendt: et lille flueben. Venter: fladen er dæmpet og har stiplet kant. */
.tile__ok {
  position: absolute;
  right: 7%;
  bottom: 7%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(18px, 20%, 26px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--surface);
  color: var(--blaek);
}
.tile__ok svg { width: 62%; height: 62%; }
.tile--g { background-color: var(--wash); outline: 1.5px dashed var(--line-strong); outline-offset: -1.5px; }
.tile--g::before { content: ""; position: absolute; inset: 0; background: var(--surface); opacity: .62; }

/* Live på storskærm */
.live {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: var(--section);
  padding-block: var(--section);
}
.live__head { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: var(--s-5); }
.live__head .display { margin-top: var(--s-4); }
.live__head .lede { max-width: 28ch; }

.screen {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-panel);
  background: var(--blaek-dyb);
}
/* Skærmens lys falder blødt ned på væggen under den. */
.screen-wrap { position: relative; margin-top: clamp(40px, 6vw, 88px); }
.screen-wrap::before {
  content: "";
  position: absolute;
  inset: 10% 2% -14% 2%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(226 160 92 / .42), rgb(226 160 92 / 0));
  filter: blur(40px);
  pointer-events: none;
}
.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(247 242 233 / .16);
  pointer-events: none;
}
.screen__img { position: absolute; inset: 0; border-radius: 0; }
.screen__led { display: block; margin: var(--s-5) auto 0; width: 8px; height: 8px; }

/* Lyset, der følger markøren. Tændes kun af site.js, og kun med mus og uden ønske om mindre bevægelse. */
.live__lys {
  position: absolute;
  left: -380px;
  top: -380px;
  z-index: -1;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(247 242 233 / .1), rgb(247 242 233 / 0));
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms var(--ease);
  will-change: transform;
}
.live.is-lys .live__lys { opacity: 1; }

/* Bagefter og mere */
.after { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); margin-top: var(--section); }

.pile { position: absolute; inset: 0; }
.pile__print {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52%;
  aspect-ratio: 3 / 2;
  border: 5px solid var(--surface);
  border-radius: var(--r-control);
  box-shadow: 0 14px 28px -16px rgb(38 55 66 / .55);
  transform: translate(-50%, -50%) translate(var(--dx), var(--dy)) rotate(var(--rot));
}
.pile__print:nth-child(1) { --rot: -8deg;  --dx: -13%; --dy: 7%;  --sx: -92%; --sy: 30%;  background-position: 20% 60%; }
.pile__print:nth-child(2) { --rot: 6deg;   --dx: 12%;  --dy: -6%; --sx: 96%;  --sy: -34%; background-position: 80% 40%; }
.pile__print:nth-child(3) { --rot: -3.5deg; --dx: 5%;  --dy: 9%;  --sx: 84%;  --sy: 46%; }
.pile__print:nth-child(4) { --rot: 3deg;   --dx: -6%;  --dy: -4%; --sx: -88%; --sy: -40%; background-position: 65% 30%; }
.pile__print:nth-child(5) { --rot: -1deg;  --dx: 0%;   --dy: 0%;  --sx: 0%;   --sy: -70%; }

.veil { position: absolute; inset: 0; display: grid; place-items: center; }
.veil__bag { position: absolute; inset: -12%; background: var(--img-daggry) center / cover; filter: blur(22px); opacity: .9; }
.veil__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid rgb(38 55 66 / .2);
  transform: translate(-50%, -50%);
  filter: blur(1.5px);
}
.veil__ring:nth-child(2) { height: 74%; }
.veil__ring:nth-child(3) { height: 50%; border-color: rgb(38 55 66 / .16); }
.veil__ring:nth-child(4) { height: 24%; border-color: rgb(38 55 66 / .12); background: rgb(255 254 250 / .35); }
.veil .glimt { position: relative; width: 14px; height: 14px; }

/* Kontakt */
.contact { border-top: 1px solid var(--line); margin-top: var(--section); padding-block: var(--section) clamp(56px, 8vw, 120px); }
.contact__head { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: var(--s-4); }
.contact__head .lede { max-width: 30ch; }

/* Mailadressen er handlingen: stor, rolig, understreget. */
.mail {
  display: inline-flex;
  align-items: center;
  gap: .22em;
  max-width: 100%;
  min-height: 48px;
  margin-top: clamp(32px, 5vw, 72px);
  font-size: clamp(1.5rem, .6rem + 4.6vw, 5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.04em;
  text-decoration: underline;
  text-decoration-thickness: max(1px, .028em);
  text-underline-offset: .17em;
  text-decoration-color: rgb(38 55 66 / .32);
  transition: text-decoration-color var(--dur-state) var(--ease);
}
.mail:hover { text-decoration-color: currentColor; }
.mail svg { width: .5em; height: .5em; margin-top: .08em; }
.mail:hover svg { transform: translate(.06em, -.06em); }

/* 404 */
.notfound { padding-top: clamp(40px, 9vw, 128px); padding-bottom: var(--section); }
.notfound__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-7) var(--gap); align-items: end; }
.notfound .h2 { margin-top: var(--s-5); max-width: 12ch; font-size: var(--t-display); line-height: 1; letter-spacing: -.04em; }
.notfound .lede { margin-top: var(--s-5); max-width: 34ch; }
.notfound .btn { margin-top: var(--s-6); }
.notfound .slits { height: clamp(160px, 24vw, 320px); margin-top: 0; }

/* Brede skærme ----------------------------------------------------------- */

@media (min-width: 700px) {
  .screen { aspect-ratio: 16 / 9; }
}

@media (min-width: 760px) {
  :root { --t-hero: clamp(3.5rem, 7.4vw, 7.25rem); }

  .grid, .section-head, .live__head, .contact__head, .notfound__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
  }

  .br-m { display: none; }

  .hero__lede { margin-left: calc((100% + var(--gap)) / 2); max-width: 26ch; }

  .mood__resolve { margin-left: calc((100% + var(--gap)) / 2); }

  .section-head { align-items: end; }
  .section-head > :first-child { grid-column: 1 / span 6; }
  .section-head__note { grid-column: 7 / -1; padding-bottom: .35em; }

  .story { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s-9); align-items: center; }
  .step { grid-column: 1 / span 5; }
  .step--1, .scene--qr { grid-row: 1; }
  .step--2, .scene--galleri { grid-row: 2; }
  .step--2 { margin-top: 0; }
  .scene { grid-column: 7 / -1; justify-self: end; }

  .live__head > :first-child { grid-column: 1 / -1; }
  .live__head .lede { grid-column: 7 / -1; }
  .screen { aspect-ratio: 21 / 9; }

  /* De to kort deler rækker (subgrid), så billedbund og tekst flugter på tværs. */
  .after { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto; }
  .after .card { display: grid; grid-template-rows: subgrid; grid-row: span 2; row-gap: 0; }
  .card--bagefter { grid-column: 1 / span 7; }
  .card--mere { grid-column: 8 / -1; }
  .card--mere .card__art { aspect-ratio: auto; min-height: 240px; }

  .contact__head > :first-child { grid-column: 1 / span 6; }
  .contact__head .lede { grid-column: 7 / -1; align-self: end; padding-bottom: .3em; }

  .notfound__text { grid-column: 1 / span 7; }
  .notfound .slits { grid-column: 9 / -1; }
}

@media (min-width: 900px) {
  .nav { display: block; }
}

@media (min-width: 1800px) {
  :root { --max: 1360px; --t-body: 1.0625rem; --t-hero: 8rem; }
}

/* 6 · Bevægelse ------------------------------------------------------------
   Kun transform, opacity og clip-path. Ingen uendelige animationer. Rulningen styrer selv tempoet
   (CSS scroll-driven animations), så siden aldrig overtager rulningen. Uden understøttelse, uden
   JavaScript eller med ønske om mindre bevægelse står alt færdigt og stille. */

@media (prefers-reduced-motion: no-preference) {
  /* Indgang: overskriften rejser sig, sprækkerne glimter frem én ad gangen. */
  .hero .badge, .hero__title .line, .hero__lede { animation: rejs var(--dur-enter) var(--ease-out) both; }
  .hero__title .line:nth-child(1) { animation-delay: 60ms; }
  .hero__title .line:nth-child(2) { animation-delay: 150ms; }
  .hero__lede { animation-delay: 260ms; }
  .slit { animation: glimt-ind 500ms var(--ease-out) both; animation-delay: calc(380ms + var(--n) * 110ms); }
  .slit::after { animation: blink 900ms var(--ease-out) both; animation-delay: calc(380ms + var(--n) * 110ms); }

  @supports ((animation-timeline: view()) and (timeline-scope: --a)) {
    /* Sprækkerne åbner sig til ét billede, mens de ruller op gennem skærmen. */
    .slit {
      animation: glimt-ind 500ms var(--ease-out) both, aabn linear both;
      animation-delay: calc(380ms + var(--n) * 110ms), 0s;
      animation-timeline: auto, view();
      animation-range: normal, cover 34% cover 64%;
    }

    /* Stemningen: sætningerne får blæk, når de når midten. */
    .mood__text { view-timeline: --stemning block; }
    .mood__text span { animation: blaek linear both; animation-timeline: --stemning; }
    .mood__text span:nth-child(1) { animation-range: cover 12% cover 26%; }
    .mood__text span:nth-child(2) { animation-range: cover 22% cover 36%; }
    .mood__text span:nth-child(3) { animation-range: cover 32% cover 46%; }
    .mood__text span:nth-child(4) { animation-range: cover 42% cover 56%; }

    /* Rolig indgang for blokke længere nede. */
    .rise { animation: rejs linear both; animation-timeline: view(); animation-range: entry 0% cover 24%; }

    /* Storskærmen tændes, når den ruller ind, og skifter billede, mens man ruller forbi. */
    .screen-wrap { view-timeline: --skaerm block; }
    .screen-wrap::before, .screen__img { animation: ind linear both; animation-timeline: --skaerm; }
    .screen-wrap::before { animation-range: cover 10% cover 30%; }
    .screen__img--1 { animation-range: cover 8% cover 24%; }
    .screen__img--2 { animation-range: cover 44% cover 50%; }
    .screen__img--3 { animation-range: cover 60% cover 66%; }

    /* Bunken samler sig. */
    .card--bagefter .card__art { view-timeline: --bunke block; }
    .pile__print { animation: saml linear both; animation-timeline: --bunke; animation-range: entry 10% cover 50%; }
  }
}

/* Fortællingen med fast scene: kun på brede, høje skærme, med understøttelse og uden ønske om mindre bevægelse. */
@supports ((animation-timeline: view()) and (timeline-scope: --a)) {
  @media (min-width: 900px) and (min-height: 680px) and (prefers-reduced-motion: no-preference) {
    .story { timeline-scope: --trin2; row-gap: 0; align-items: stretch; }
    .step { display: flex; flex-direction: column; justify-content: center; min-height: 92vh; animation: none; }
    .step--2 { view-timeline: --trin2 block; }
    .scene {
      grid-row: 1 / span 2;
      align-self: start;
      position: sticky;
      top: max(24px, calc(50vh - 300px));
      margin-top: max(0px, calc(46vh - 300px));
      animation: none;
    }
    .scene--galleri .scene__card { background: transparent; border-color: transparent; }

    .scene--qr .qr__g, .scene--qr .scene__cap { animation: ud linear both; animation-timeline: --trin2; }
    .scene--qr .qr__g--rest { animation-range: cover 10% cover 18%; }
    .scene--qr .qr__g--a { animation-range: cover 12% cover 20%; }
    .scene--qr .qr__g--b { animation-range: cover 15% cover 23%; }
    .scene--qr .qr__g--c { animation-range: cover 18% cover 26%; }
    .scene--qr .qr__g--d { animation-range: cover 21% cover 29%; }
    .scene--qr .qr__g--e { animation-range: cover 24% cover 32%; }
    .scene--qr .qr__g--f { animation-range: cover 27% cover 35%; }
    .scene--qr .qr__g--g { animation-range: cover 30% cover 38%; }
    .scene--qr .scene__cap { animation-range: cover 22% cover 27%; }

    .scene--galleri .tile { animation: felt-ind linear both; animation-timeline: --trin2; }
    .scene--galleri .tile--a { animation-range: cover 14% cover 26%; }
    .scene--galleri .tile--b { animation-range: cover 17% cover 29%; }
    .scene--galleri .tile--c { animation-range: cover 20% cover 32%; }
    .scene--galleri .tile--d { animation-range: cover 23% cover 35%; }
    .scene--galleri .tile--e { animation-range: cover 26% cover 38%; }
    .scene--galleri .tile--f { animation-range: cover 29% cover 41%; }
    .scene--galleri .tile--g { animation-range: cover 32% cover 44%; }
    .scene--galleri .scene__cap { animation: ind linear both; animation-timeline: --trin2; animation-range: cover 27% cover 33%; }
  }
}

@keyframes rejs {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes glimt-ind {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes blink {
  0%   { opacity: 0; }
  30%  { opacity: .6; }
  100% { opacity: 0; }
}
@keyframes aabn {
  from { clip-path: inset(0 var(--r) 0 var(--l) round 10px); }
  to   { clip-path: inset(0 3px 0 3px round 10px); }
}
@keyframes blaek {
  from { color: var(--fg-faint); }
  to   { color: var(--fg); }
}
@keyframes ind {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes ud {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes felt-ind {
  from { opacity: 0; transform: scale(.8); }
  to   { opacity: 1; transform: none; }
}
@keyframes saml {
  from { opacity: 0; transform: translate(-50%, -50%) translate(var(--sx), var(--sy)) rotate(calc(var(--rot) * 3)); }
  35%  { opacity: 1; }
  to   { opacity: 1; transform: translate(-50%, -50%) translate(var(--dx), var(--dy)) rotate(var(--rot)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .live__lys { display: none; }
}

/* 7 · Print ---------------------------------------------------------------- */

@media print {
  body { background: #fff; }
  .slits, .scene, .screen-wrap, .screen__led, .card__art, .live__lys, .skip { display: none; }
  .ink { background: #fff; color: #000; }
}
