/* Prototype A — "Den røde linje". Cream/navy, Poppins, one continuous red line. */
:root {
  --cream: #f6f0e4;   /* sampled from the brand JPGs so they sit flush on the page */
  --cream-2: #ebe3d2;
  --navy: #12203a;
  --red: #e31c26;
  --ink-2: #4b566b;
  --rule: #d9cfbb;
  --pad: 20px;
  --head: 58px;
  /* the line: a spine that zigzags ±off around its centre */
  --spine: 22px;
  --off: 9px;
  --stroke: 8px;
  --inset: 36px;      /* text inset that keeps copy clear of the mobile spine */
}
@media (min-width: 960px) {
  :root { --pad: 40px; --head: 72px; --off: 76px; --stroke: 14px; --inset: 0px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 56px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; position: relative; background: var(--cream); color: var(--navy);
  font: 400 1.0625rem/1.65 Poppins, 'Scheherazade New', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
@media (min-width: 960px) { body { font-size: 1.125rem; } }
h1, h2, h3, p, ol, ul, blockquote, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--pad); top: -4rem; z-index: 50; background: var(--navy); color: var(--cream); padding: .6rem 1rem; border-radius: 10px; }
.skip:focus { top: .5rem; }

.wrap { max-width: 1280px; margin-inline: auto; padding-inline: var(--pad); }
.display { font-weight: 800; text-transform: uppercase; line-height: .98; letter-spacing: -.015em; overflow-wrap: break-word; text-wrap: balance; }
.h2 { font-size: clamp(2.1rem, 5vw, 3.75rem); }
.h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.04; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; line-height: 1.5; }
sup a { font-weight: 600; text-decoration: none; padding: 0 .15em; }
sup a:hover { text-decoration: underline; }

/* ---------- the red line ---------- */
.line { position: absolute; inset: 0 auto auto 0; width: 100%; height: 1px; overflow: visible; pointer-events: none; z-index: 2; }
.line polyline { fill: none; stroke: var(--red); stroke-width: var(--stroke); stroke-linejoin: miter; transition: stroke-dashoffset .7s cubic-bezier(.2, .7, .2, 1); }
.rail { position: absolute; top: 0; bottom: 0; width: 0; left: calc(var(--spine) + var(--off)); }
.rail.b { left: calc(var(--spine) - var(--off)); }
.startline { height: var(--stroke); margin-block: clamp(1.1rem, 2vw, 1.75rem) clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 960px) {
  .rail { left: calc(50% + var(--off)); }
  .rail.b { left: calc(50% - var(--off)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .line polyline { transition: none; }
}

/* ---------- header / nav ---------- */
.site-head { position: sticky; top: 0; z-index: 20; height: var(--head); background: var(--cream); }
.site-head .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pill { display: inline-block; background: var(--red); color: #fff; font-weight: 700; letter-spacing: .04em; padding: .32em .7em; border-radius: .55em; text-decoration: none; line-height: 1.3; }
.site-head .pill { font-size: .9rem; }
.nav-toggle { background: none; border: 2px solid var(--navy); border-radius: 10px; padding: .3rem .9rem; font-weight: 600; font-size: .9rem; }
.nav ul { display: flex; gap: clamp(1.1rem, 2.2vw, 2.2rem); }
.nav a { position: relative; display: block; padding: .5rem 0; font-weight: 500; font-size: .95rem; text-decoration: none; }
.nav a:hover, .nav a[aria-current] { box-shadow: 0 3px 0 var(--navy); }
.nav a[aria-current] { font-weight: 600; }
a.soon { color: var(--ink-2); cursor: default; }
a.soon small { display: inline-block; text-decoration: none; font-size: .68rem; font-weight: 500; margin-left: .5em; border: 1px solid currentColor; border-radius: 5px; padding: .05em .4em; vertical-align: .15em; }
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav a.soon { box-shadow: none; }
  .nav a.soon small { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin: 0; background: var(--cream); opacity: 0; transition: opacity .15s; }
  .nav a.soon:hover small, .nav a.soon:focus-visible small { opacity: 1; }
}
@media (max-width: 959px) {
  .nav { position: fixed; inset: var(--head) 0 0; background: var(--navy); color: var(--cream); padding: 2rem var(--pad); overflow: auto; display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { font-size: 2rem; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; padding: .7rem 0; border-bottom: 1px solid rgb(246 240 228 / .18); }
  .nav a:hover, .nav a[aria-current] { box-shadow: none; }
  .nav a[aria-current] { font-weight: 800; color: var(--red); }
  .nav a.soon { color: rgb(246 240 228 / .6); }
  .nav a.soon small { text-transform: none; letter-spacing: 0; }
}

/* ---------- sections & the two-sided row ---------- */
.sec { position: relative; padding-block: clamp(4.5rem, 11vw, 9rem); }
.sec.navy { background: var(--navy); color: var(--cream); }
.sec.navy .muted { color: rgb(246 240 228 / .72); }
.row { padding-left: var(--inset); }
.wrap.row { padding-left: calc(var(--pad) + var(--inset)); }
.row > * + * { margin-top: 2rem; }
.stack > * + * { margin-top: 1.1rem; }
@media (min-width: 960px) {
  .row { display: grid; grid-template-columns: minmax(0, 1fr) 240px minmax(0, 1fr); align-items: start; }
  .row > * { grid-row: 1; margin-top: 0 !important; }
  .L { grid-column: 1; }
  .R { grid-column: 3; }
  .sticky { position: sticky; top: calc(var(--head) + 3rem); }
}

.btn { display: inline-block; background: var(--navy); color: var(--cream); border: 2px solid var(--navy); font-weight: 600; text-decoration: none; padding: .7rem 1.25rem; border-radius: 10px; line-height: 1.3; }
.btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn.ghost { background: none; color: inherit; border-color: currentColor; }
.btn.ghost:hover { background: var(--cream); color: var(--navy); border-color: var(--cream); }
.sec:not(.navy) .btn.ghost:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.more { font-weight: 600; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(1.5rem, 4vw, 3rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.hero h1 { font-size: clamp(2.5rem, 12.6vw, 9.4rem); line-height: .92; letter-spacing: -.025em; }
.hero h1 span { display: block; }
.lede { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 500; line-height: 1.3; text-wrap: balance; }
.cta { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; }
.hero-mark { width: min(78%, 420px); margin-left: auto; }
@media (min-width: 960px) { .hero-mark { margin: -1rem auto 0; width: min(100%, 440px); } }

/* ---------- ayah ---------- */
.ayah { padding-block: clamp(2rem, 6vw, 5rem) clamp(4rem, 9vw, 7rem); }
.ar { font-family: 'Scheherazade New', serif; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.85; }
.ayah .tr { font-size: clamp(1.3rem, 2.3vw, 1.75rem); font-weight: 600; line-height: 1.3; text-wrap: balance; }
@media (min-width: 960px) { .ayah .row { align-items: center; } }

/* ---------- proofs ---------- */
.proofs { padding-bottom: clamp(2rem, 5vw, 4rem); }
.proof { position: relative; padding-block: 2.5rem; }
.hex { display: grid; place-items: center; width: 56px; aspect-ratio: .866; background: var(--navy); color: #fff; font-weight: 800; font-size: 1.6rem; line-height: 1; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.fig-num { font-size: clamp(5rem, 12vw, 10.5rem); font-weight: 800; line-height: .85; letter-spacing: -.04em; white-space: nowrap; }
.said p { font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 500; line-height: 1.4; }
.said footer { margin-top: .8rem; }
.proof .row > * + * { margin-top: 1.25rem; }
@media (min-width: 960px) {
  .proof { padding-block: 0; }
  .proof .row { min-height: 430px; align-items: center; }
  .proof .hex { position: absolute; left: 50%; top: 50%; width: 104px; font-size: 3.2rem; transform: translate(-50%, -50%); }
  .proof .txt { grid-column: 1; }
  .proof .fig { grid-column: 3; }
  .proof.flip .txt { grid-column: 3; }
  .proof.flip .fig { grid-column: 1; text-align: right; }
}

/* ---------- Mariam ---------- */
.quote-xl { font-size: clamp(1.9rem, 4.4vw, 3.4rem); }
.poster { font-size: clamp(1.7rem, 3.4vw, 2.6rem); padding-top: 1rem; }

/* ---------- timeline ---------- */
.chart, .axis { display: grid; grid-template-columns: repeat(25, minmax(0, 1fr)) minmax(0, 3fr) minmax(0, 1fr); }
.chart { align-items: end; height: 132px; border-bottom: 3px solid var(--navy); }
.chart > * { display: flex; flex-direction: column-reverse; align-items: center; gap: 3px; height: 100%; padding: 0 0 5px; background: none; border: 0; min-width: 0; }
.chart i { width: min(16px, 82%); aspect-ratio: .866; background: var(--navy); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); flex: none; }
.chart button:hover i { background: var(--ink-2); }
.chart button[aria-pressed="true"] i { background: var(--red); }
.axis { padding-top: .4rem; font-size: .75rem; font-weight: 600; }
.axis span { grid-row: 1; justify-self: center; white-space: nowrap; }
.axis span:last-child { display: none; }
@media (min-width: 1200px) { .axis span:last-child { display: block; } }
.tl-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.75rem; }
.tl-year { font-size: clamp(3rem, 7vw, 4.5rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.tl-step { display: flex; gap: .5rem; }
.tl-step button { width: 44px; height: 44px; border: 2px solid var(--navy); border-radius: 10px; background: none; font-weight: 600; font-size: 1.2rem; line-height: 1; }
.tl-step button:hover { background: var(--navy); color: var(--cream); }
.tl-list { margin-top: .5rem; min-height: 15rem; }
.tl-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1rem; align-items: baseline; padding: .7rem 0; border-top: 1px solid var(--rule); font-size: 1rem; line-height: 1.4; }
.tl-list .y { grid-column: 1 / -1; font-weight: 800; }
.js .tl-list .y, .js .tl-list li[hidden] { display: none; }
.tag { font-size: .75rem; font-weight: 600; border: 1.5px solid currentColor; border-radius: 6px; padding: .1em .5em; white-space: nowrap; }

/* ---------- entry points ---------- */
.ways li { border-top: 3px solid var(--navy); }
.ways li:last-child { border-bottom: 3px solid var(--navy); }
.ways a { display: block; padding: 1.25rem 0 1.4rem; text-decoration: none; }
.ways strong { display: block; font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.015em; line-height: 1.1; }
.ways span { display: block; margin-top: .35rem; font-size: 1rem; line-height: 1.5; color: var(--ink-2); max-width: 34em; }
.ways a:not(.soon):hover strong { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: .12em; }
.ways a.soon strong small { text-transform: none; letter-spacing: 0; vertical-align: .5em; }

/* ---------- share / footer ---------- */
.share .pill { font-size: clamp(1.35rem, 3.6vw, 2.5rem); }
.share .cta .btn { flex: 1 1 12rem; text-align: center; }
.foot { padding-block: 3rem 4rem; }
.foot .row { row-gap: 2rem; }
.notes li { display: grid; grid-template-columns: 1.6em 1fr; padding: .3rem 0; }
.notes li:target { background: var(--cream-2); }

/* ================= teksten.html ================= */
.prog { position: fixed; top: var(--head); left: 0; width: 100%; height: 3px; background: var(--navy); transform: scaleX(0); transform-origin: 0 50%; z-index: 21; }
.lr-hero { padding-top: clamp(1.5rem, 5vw, 4rem); padding-bottom: 0; }
.lr-hero h1 { font-size: clamp(3.6rem, 17vw, 12rem); line-height: .9; letter-spacing: -.03em; }
.lr-dek { padding-left: var(--inset); max-width: 44rem; }
.tocbar { position: sticky; top: var(--head); z-index: 15; background: var(--cream); border-bottom: 1px solid var(--rule); margin-top: 2.5rem; }
.tocbar summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem var(--pad); font-size: .9rem; font-weight: 600; list-style: none; cursor: pointer; }
.tocbar summary::-webkit-details-marker { display: none; }
.tocbar summary::after { content: ""; flex: none; width: .55em; height: .55em; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-25%); }
.tocbar[open] summary::after { transform: rotate(-135deg) translateY(-25%); }
.tocbar summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tocbar .toc { padding: 0 var(--pad) 1rem; max-height: 60vh; overflow: auto; }
.toc a { display: grid; grid-template-columns: 1.6em 1fr; gap: .25rem; padding: .5rem 0; font-size: .875rem; line-height: 1.35; text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--navy); }
.toc a b { font-weight: 800; color: var(--navy); }
.toc a[aria-current] { color: var(--navy); font-weight: 600; }
.toc-side { display: none; }

.lr { --tpad: var(--inset); }
.part { position: relative; padding: 3.5rem 0 3.5rem var(--tpad); }
.part > * { max-width: 39rem; }
.part > * + * { margin-top: 1.25em; }
.part .rail { left: calc(var(--spine) - var(--pad) + var(--off)); }
.part .rail.b { left: calc(var(--spine) - var(--pad) - var(--off)); }
.part .hex { width: 48px; font-size: 1.4rem; }
.kicker { font-weight: 600; color: var(--ink-2); margin-top: 1rem; }
.part h2 { font-size: clamp(1.6rem, 3.3vw, 2.5rem); line-height: 1.05; margin-top: .3rem; }
.part .kicker + h2 { margin-top: .3rem; }
.part h2 + p { margin-top: 1.75rem; }
.part p { line-height: 1.75; }
.pull { max-width: 46rem; margin-block: 3rem; font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 600; line-height: 1.28; letter-spacing: -.01em; text-wrap: balance; }
.pull::before { content: ""; display: block; width: 3.5rem; height: 6px; background: var(--navy); margin-bottom: 1.25rem; }
.share-part { background: none; border: 0; padding: .4rem 0; font-size: .875rem; font-weight: 600; color: var(--ink-2); text-decoration: underline; text-underline-offset: .2em; margin-top: 2rem; }
.share-part:hover { color: var(--navy); }
.part .ar { text-align: right; margin-top: 2.5rem; }
.part .tr { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 600; line-height: 1.3; }
.end { margin-top: 3rem; }

@media (min-width: 960px) {
  .tocbar { display: none; }
  .lr { --tpad: 150px; --off: 50px; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 30px; margin-top: 1rem; }
  .lr-dek { margin-left: calc(240px + 150px); padding: 0; }
  .toc-side { display: block; position: sticky; top: calc(var(--head) + 2.5rem); align-self: start; max-height: calc(100vh - var(--head) - 4rem); overflow: auto; margin-top: 5rem; padding-right: .5rem; }
  .toc-side a { padding-left: .9rem; border-left: 3px solid transparent; }
  .toc-side a[aria-current] { border-left-color: var(--navy); }
  .part { padding-block: 5.5rem 4rem; }
  .part .rail { left: calc(var(--tpad) / 2 + var(--off)); }
  .part .rail.b { left: calc(var(--tpad) / 2 - var(--off)); }
  .part .hex { position: absolute; left: calc(var(--tpad) / 2); top: 5.5rem; width: 68px; font-size: 2rem; transform: translateX(-50%); margin: 0; }
  .part .hex + .kicker { margin-top: 0; }
}
@media (min-width: 1200px) {
  .lr { --tpad: 190px; --off: 58px; grid-template-columns: 250px minmax(0, 1fr); }
  .lr-dek { margin-left: calc(280px + 190px); }
  .part .hex { width: 80px; font-size: 2.4rem; }
}

/* ---------- theme: light (default tokens above) / dark ----------
   The palette tokens are named by brand colour but used by role: --cream is the
   surface, --navy the ink. Dark mode swaps them; navy "band" sections restore the
   light values inside a lifted navy surface so their cream-on-navy rules still hold. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --cream: #0f1a2e;
  --cream-2: #18263f;
  --navy: #f1ebde;
  --ink-2: #aeb6c4;
  --rule: #2b3a55;
}
:root[data-theme="dark"] :is(.sec.navy, .fejl, .found div:nth-child(4)) {
  --cream: #f6f0e4; --navy: #12203a; --ink-2: #c3cbd8; --rule: rgb(246 240 228 / .2);
  background: #1c2c4a; color: #f6f0e4;
}
@media (max-width: 959px) {
  :root[data-theme="dark"] .nav { --cream: #f6f0e4; --navy: #12203a; background: #1c2c4a; color: #f6f0e4; }
}
:root[data-theme="dark"] :is(.hex, .pick a[aria-current] b) { color: var(--cream); }
:root[data-theme="dark"] img[src*="kampagne-profil"] { border-radius: 1.5rem; }

.site-head .wrap { justify-content: flex-start; }
.site-head .pill { margin-right: auto; }
.site-head .nav { order: 2; }
.theme-toggle { order: 3; display: grid; place-items: center; width: 40px; height: 40px; flex: none; background: none; color: inherit; border: 2px solid var(--navy); border-radius: 10px; padding: 0; cursor: pointer; }
.nav-toggle { order: 4; color: inherit; }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.theme-toggle .i-moon { fill: currentColor; stroke: none; }
.theme-toggle .i-sun, :root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
.theme-toggle:hover { background: var(--navy); color: var(--cream); }
/* Paper stays paper: the A4 poster and anything printed always use the light tokens */
:root[data-theme="dark"] .opslag { --cream: #f6f0e4; --cream-2: #ebe3d2; --navy: #12203a; --ink-2: #4b566b; --rule: #d9cfbb; }
@media print {
  :root[data-theme="dark"] { color-scheme: light; --cream: #f6f0e4; --cream-2: #ebe3d2; --navy: #12203a; --ink-2: #4b566b; --rule: #d9cfbb; }
}
