/* ==========================================================================
   M-Tek ApS — stylesheet
   Tokens svarer én-til-én til variablerne i Figma-filen.
   ========================================================================== */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../assets/fonts/archivo-latin.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;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../assets/fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Tokens ------------------------------------------------------------- */

:root {
  /* Primitiver */
  --ink-950: #0b0c0e;
  --ink-900: #131519;
  --ink-800: #1d2025;
  --ink-700: #2c3037;
  --ink-600: #464c56;
  --ink-500: #6a707b;
  --ink-400: #8e949e;
  --ink-300: #b4b9c2;
  --ink-200: #d3d7dd;
  --ink-100: #e6e8ec;
  --paper-0: #ffffff;
  --paper-50: #fafaf8;
  --paper-100: #f2f2ee;
  --paper-200: #e8e8e1;
  --blue-100: #dce6f7;
  --blue-200: #b3c9eb;
  --blue-300: #7fa5dc;
  --blue-400: #4a80c9;
  --blue-500: #2a63b0;
  --blue-600: #1b4e92;
  --blue-700: #123c74;
  --blue-800: #0a2b58;
  --blue-900: #061b38;
  /* Handlingsfarve — refleksvestens gule, samme tone som på fotos og i animationen */
  --hivis-300: #e6ee78;
  --hivis-400: #d4de4e;
  --hivis-500: #c2cc3a;
  /* Eneste røde i paletten: bruges kun til formularvalidering */
  --alert-500: #c8453b;

  /* Semantiske farver */
  --bg-page: var(--paper-50);
  --bg-surface: var(--paper-0);
  --bg-muted: var(--paper-100);
  /* Mat kul på alle mørke flader — mindre hård end ren sort */
  --bg-dark: var(--ink-900);
  --bg-dark-card: var(--ink-800);
  --bg-accent: var(--blue-800);
  --bg-action: var(--blue-500);
  --bg-cta: var(--hivis-400);
  --bg-cta-hover: var(--hivis-300);
  --text-on-cta: var(--ink-950);
  --text-primary: var(--ink-950);
  --text-secondary: var(--ink-600);
  --text-muted: var(--ink-500);
  --text-on-dark: var(--paper-0);
  --text-on-dark-mut: var(--ink-400);
  --text-on-accent: var(--paper-0);
  --text-accent: var(--blue-800);
  --text-accent-on-dark: var(--blue-300);
  --border-default: var(--ink-200);
  --border-dark: var(--ink-700);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 40px;
  --radius-full: 999px;

  /* Skygger */
  --shadow-card: 0 2px 6px rgb(11 12 14 / 0.05), 0 10px 28px rgb(11 12 14 / 0.07);
  --shadow-lift: 0 8px 16px rgb(11 12 14 / 0.06), 0 24px 60px rgb(11 12 14 / 0.12);

  /* Layout */
  --wrap: 1440px;
  --gutter: 24px;
  --section-y: 64px;
  --header-h: 64px;
}

@media (min-width: 700px) {
  :root {
    --gutter: 56px;
    --section-y: 88px;
  }
}

@media (min-width: 1100px) {
  :root {
    --gutter: 80px;
    --section-y: 112px;
    --header-h: 78px;
  }
}

@media (min-width: 1600px) {
  :root {
    --gutter: 96px;
  }
}

/* --- Reset -------------------------------------------------------------- */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul {
  list-style: none;
  padding: 0;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--bg-action);
  color: var(--text-on-accent);
  font-weight: 600;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

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

/* --- Typografi ---------------------------------------------------------- */

.display-xxl,
.display-xl,
.display-l,
.heading-xl,
.heading-l,
.heading-m {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
  text-wrap: balance;
}

.display-xxl {
  font-size: clamp(2.5rem, 1.35rem + 5.1vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.display-xl {
  font-size: clamp(2.125rem, 1.35rem + 3.4vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.display-l {
  font-size: clamp(1.875rem, 1.4rem + 2.1vw, 3.25rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.heading-xl {
  font-size: clamp(1.75rem, 1.45rem + 1.3vw, 2.5rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.heading-l {
  font-size: clamp(1.25rem, 1.1rem + 0.65vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.22;
}

.heading-m {
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.33;
}

.body-xl {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.6;
}

.body-l {
  font-size: clamp(1rem, 0.95rem + 0.22vw, 1.125rem);
  line-height: 1.6;
}

.body-m {
  font-size: 1rem;
  line-height: 1.625;
}

.body-s {
  font-size: 0.875rem;
  line-height: 1.57;
}

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.33;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stat-xl {
  font-size: clamp(2.75rem, 1.9rem + 3.7vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-l {
  font-size: clamp(2.25rem, 1.85rem + 1.8vw, 2.875rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

.measure {
  max-width: 62ch;
}

.measure p + p {
  margin-top: 1rem;
}

.text-accent {
  color: var(--text-accent);
}

.text-accent-dark {
  color: var(--text-accent-on-dark);
}

/* --- Layout ------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section--dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.section--muted {
  background: var(--bg-muted);
}

.section--accent {
  background: var(--bg-accent);
  color: var(--text-on-accent);
}

/* --- Knapper ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 30px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  text-align: center;
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, transform 0.18s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  flex: none;
  margin-left: -2px;
}

/* Pilen sidder efter teksten og skubber en anelse ved hover */
.btn__arrow {
  margin-left: 0;
  margin-right: -4px;
  transition: transform 0.18s ease;
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

.btn--sm {
  padding: 13px 22px;
  font-size: 0.9375rem;
}

.btn--primary {
  background: var(--bg-cta);
  color: var(--text-on-cta);
  font-weight: 700;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.35) inset,
    0 6px 18px rgb(212 222 78 / 0.24);
}

.btn--primary:hover {
  background: var(--bg-cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.45) inset,
    0 10px 26px rgb(212 222 78 / 0.34);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--outline {
  border: 1.5px solid var(--border-dark);
  color: var(--text-on-dark);
}

.btn--outline:hover {
  border-color: var(--ink-600);
  background: rgb(255 255 255 / 0.04);
}

.btn--solid {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  font-weight: 700;
}

.btn--solid:hover {
  background: var(--ink-700);
  transform: translateY(-1px);
}

.btn--solid:active {
  transform: translateY(0);
}

.btn--light {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.btn--light:hover {
  background: var(--blue-100);
}

.btn--block {
  width: 100%;
}

/* --- Header ------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-dark);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.header.is-stuck {
  border-bottom-color: var(--border-dark);
  background: rgb(19 21 25 / 0.92);
  backdrop-filter: blur(12px);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-height: var(--header-h);
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-on-dark);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg-action);
}

.nav {
  display: none;
  flex: 1;
  gap: clamp(20px, 2.2vw, 32px);
}

.nav a {
  color: var(--text-on-dark-mut);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.18s ease;
}

.nav a:hover {
  color: var(--text-on-dark);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: var(--text-on-dark);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.burger[aria-expanded='true'] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.burger[aria-expanded='true'] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-nav {
  display: grid;
  grid-template-rows: 0fr;
  background: var(--bg-dark);
  border-top: 1px solid var(--border-dark);
  transition: grid-template-rows 0.28s ease;
}

.mobile-nav[data-open='true'] {
  grid-template-rows: 1fr;
}

.mobile-nav__inner {
  overflow: hidden;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  padding-block: var(--space-sm) var(--space-lg);
}

.mobile-nav a {
  display: block;
  padding: 14px 0;
  color: var(--text-on-dark);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--border-dark);
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding-block: clamp(40px, 6vw, 88px);
}

.hero__eyebrow {
  color: var(--text-accent-on-dark);
  margin-bottom: var(--space-lg);
}

.hero__title {
  max-width: 20ch;
}

.hero__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
}

.hero__lead {
  color: var(--text-on-dark-mut);
  max-width: 54ch;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: var(--space-xl);
}

.hero__stats {
  display: flex;
  gap: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-dark);
}

/* Talrækkefølgen i markup er dt (etiket) før dd (værdi) af hensyn til
   semantikken; visuelt skal værdien stå øverst. */
.hero__stat {
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
}

.hero__stat-value {
  color: var(--text-accent-on-dark);
}

.hero__stat-label {
  color: var(--text-on-dark-mut);
}

.hero-figure {
  background: var(--bg-dark-card);
}

.hero-figure img,
.hero-video {
  display: block;
  width: 100%;
  height: clamp(240px, 39vw, 560px);
  object-fit: cover;
}

/* --- Løbetekst ---------------------------------------------------------- */

.marquee {
  display: flex;
  overflow: hidden;
  background: var(--bg-action);
  color: var(--text-on-accent);
  padding-block: 16px;
  user-select: none;
}

.marquee__track {
  display: flex;
  flex-shrink: 0;
  gap: 28px;
  padding-right: 28px;
  align-items: center;
  animation: marquee 38s linear infinite;
}

.marquee__track span {
  white-space: nowrap;
}

.marquee__sep {
  opacity: 0.45;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* --- Ydelser ------------------------------------------------------------ */

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.section-head .eyebrow {
  color: var(--text-accent);
}

.section--dark .section-head .eyebrow {
  color: var(--text-accent-on-dark);
}

.section-head__lead {
  color: var(--text-secondary);
  max-width: 46ch;
}

.section--dark .section-head__lead {
  color: var(--text-on-dark-mut);
}

/* --- Søjler (modellen) -------------------------------------------------- */

.pillar-grid {
  display: grid;
  gap: var(--space-xl) var(--space-2xl);
  margin-top: var(--space-2xl);
}

.pillar-grid--flush {
  margin-top: 0;
}

.pillar-grid > div {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-default);
}

.section--dark .pillar-grid > div {
  border-top-color: var(--border-dark);
}

.pillar-grid h3 {
  margin-bottom: var(--space-sm);
}

.pillar-grid p {
  color: var(--text-secondary);
  max-width: 46ch;
}

.section--dark .pillar-grid p {
  color: var(--text-on-dark-mut);
}

/* --- Fremhævede tal ----------------------------------------------------- */

.highlights {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
}

.highlight {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-md) var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 2px solid var(--text-primary);
}

.highlight__value {
  color: var(--text-accent);
  flex: none;
}

.highlight__body {
  flex: 1 1 260px;
}

.highlight__body h3 {
  margin-bottom: var(--space-xs);
}

.highlight__body p {
  color: var(--text-secondary);
}

.highlight--dark {
  border-top: 0;
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  background: var(--bg-dark);
  color: var(--text-on-dark);
  align-items: center;
}

.highlight--dark .highlight__value {
  color: var(--text-accent-on-dark);
}

.highlight--dark .highlight__body p {
  color: var(--text-on-dark-mut);
}

/* --- Procesforløb ------------------------------------------------------- */

.flow {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.flow > li {
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-default);
}

.section--dark .flow > li {
  border-top-color: var(--border-dark);
}

.flow__num {
  display: block;
  color: var(--text-accent);
  margin-bottom: var(--space-sm);
}

.section--dark .flow__num {
  color: var(--text-accent-on-dark);
}

.flow h3 {
  margin-bottom: var(--space-xs);
}

.flow p {
  color: var(--text-secondary);
}

.section--dark .flow p {
  color: var(--text-on-dark-mut);
}

/* --- Underafsnit -------------------------------------------------------- */

.subsection {
  margin-top: var(--space-4xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border-default);
}

.section--dark .subsection {
  border-top-color: var(--border-dark);
}

.subsection > .eyebrow {
  color: var(--text-accent);
  margin-bottom: var(--space-lg);
}

.section--dark .subsection > .eyebrow {
  color: var(--text-accent-on-dark);
}

/* --- Før / efter -------------------------------------------------------- */

.compare {
  display: grid;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.compare > div {
  padding-left: var(--space-lg);
  border-left: 3px solid var(--border-default);
}

.compare--before {
  border-left-color: var(--ink-300);
}

.compare--after {
  border-left-color: var(--bg-action);
}

.compare h3 {
  margin-bottom: var(--space-md);
}

.compare li {
  position: relative;
  padding-left: 22px;
  color: var(--text-secondary);
}

.compare li + li {
  margin-top: 10px;
}

.compare li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-300);
}

.compare--after li::before {
  background: var(--bg-action);
}

/* --- Sorteringsanimation ------------------------------------------------ */

.sortdemo {
  margin-top: var(--space-2xl);
  padding: var(--space-lg) var(--space-lg) 0;
  border-radius: var(--radius-xl);
  background: var(--bg-dark);
  color: var(--text-on-dark);
  overflow: hidden;
}

.sortdemo svg {
  width: 100%;
  height: auto;
}

.sortdemo__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-md) var(--space-lg);
  padding: var(--space-lg) var(--space-sm) var(--space-xl);
  border-top: 1px solid var(--border-dark);
}

.sortdemo__value {
  color: var(--text-accent-on-dark);
  flex: none;
}

.sortdemo__body {
  flex: 1 1 280px;
}

.sortdemo__body h3 {
  margin-bottom: var(--space-xs);
}

.sortdemo__body p {
  color: var(--text-on-dark-mut);
  max-width: 62ch;
}

/* Farver i scenen */
.sd-body { fill: var(--ink-800); }
.sd-rib { stroke: var(--ink-700); stroke-width: 3; }
.sd-void { fill: var(--ink-950); }
.sd-frame { fill: var(--ink-700); }
.sd-leg { fill: var(--ink-800); }
.sd-deck { fill: var(--ink-600); }
.sd-block { fill: var(--ink-700); }
.sd-label { fill: var(--blue-300); font: 600 22px/1 'Archivo', sans-serif; letter-spacing: 0.06em; }
.sd-carton { fill: #b98a54; }
.sd-carton-top { fill: #cfa06a; }
.sd-lane-a { fill: var(--blue-300); }
.sd-lane-b { fill: var(--blue-400); }
.sd-lane-c { fill: var(--blue-500); }

/* Operatøren. Refleksvest og hud er illustrationsfarver som papkasserne —
   bevidst uden for brandpaletten, så scenen ligner virkeligheden. */
.sd-worker-body { fill: var(--ink-800); }
.sd-worker-leg { fill: var(--ink-700); }
.sd-worker-boot { fill: var(--ink-950); }
.sd-worker-arm { fill: var(--ink-800); }
.sd-worker-vest { fill: #cfd94b; }
.sd-worker-band { fill: #aeb6c2; opacity: 0.85; }
.sd-worker-skin { fill: #c9a184; }
.sd-scanner-body { fill: var(--ink-600); }
.sd-scanner-screen { fill: var(--blue-300); }

/* Transportbånd i bevægelse */
.sd-belt-line {
  fill: none;
  stroke: var(--blue-400);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 14 14;
  animation: sd-belt 0.9s linear infinite;
}

@keyframes sd-belt {
  to { stroke-dashoffset: -28; }
}

/* Scannerens lysstribe. Gradienten ligger i <defs> og arver ikke farve fra
   det element der bruger den, så stop-farverne sættes direkte her. */
.sd-beam-top {
  stop-color: var(--blue-400);
  stop-opacity: 0.75;
}

.sd-beam-bottom {
  stop-color: var(--blue-400);
  stop-opacity: 0;
}

/* Ét glimt i sekundet — samme takt som kasserne passerer operatøren. */
.sd-beam {
  animation: sd-beam 1s ease-in-out infinite;
}

@keyframes sd-beam {
  0%, 100% { opacity: 0.18; }
  38% { opacity: 0.18; }
  50% { opacity: 1; }
  72% { opacity: 0.18; }
}

/* Kasser der kører ud og fordeles */
.sd-box {
  animation-duration: 6s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.5, 1);
  animation-iteration-count: infinite;
}

.sd-box--a { animation-name: sd-travel-a; }
.sd-box--b { animation-name: sd-travel-b; }
.sd-box--c { animation-name: sd-travel-c; }

.sd-d1 { animation-delay: -0s; }
.sd-d2 { animation-delay: -1s; }
.sd-d3 { animation-delay: -2s; }
.sd-d4 { animation-delay: -3s; }
.sd-d5 { animation-delay: -4s; }
.sd-d6 { animation-delay: -5s; }

@keyframes sd-travel-a {
  0% { transform: translate(0, 0); opacity: 0; }
  4% { opacity: 1; }
  55% { transform: translate(474px, 0); opacity: 1; }
  76% { transform: translate(594px, -190px); opacity: 1; }
  84% { transform: translate(594px, -190px); opacity: 0; }
  100% { transform: translate(594px, -190px); opacity: 0; }
}

@keyframes sd-travel-b {
  0% { transform: translate(0, 0); opacity: 0; }
  4% { opacity: 1; }
  55% { transform: translate(474px, 0); opacity: 1; }
  76% { transform: translate(594px, -30px); opacity: 1; }
  84% { transform: translate(594px, -30px); opacity: 0; }
  100% { transform: translate(594px, -30px); opacity: 0; }
}

@keyframes sd-travel-c {
  0% { transform: translate(0, 0); opacity: 0; }
  4% { opacity: 1; }
  55% { transform: translate(474px, 0); opacity: 1; }
  76% { transform: translate(594px, 120px); opacity: 1; }
  84% { transform: translate(594px, 120px); opacity: 0; }
  100% { transform: translate(594px, 120px); opacity: 0; }
}

/* Stakkene på pallerne vokser */
.sd-stack {
  animation: sd-stack 18s linear infinite;
  opacity: 0;
}

.sd-s1 { animation-delay: -13.5s; }
.sd-s2 { animation-delay: -7.5s; }
.sd-s3 { animation-delay: -1.5s; }

@keyframes sd-stack {
  0%, 4% { opacity: 0; transform: translateY(-14px); }
  8%, 94% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .sd-belt-line,
  .sd-beam,
  .sd-box,
  .sd-stack {
    animation: none;
  }

  .sd-beam { opacity: 0.3; }
  .sd-stack { opacity: 1; }
  .sd-box--a { transform: translate(200px, 0); }
  .sd-box--b { transform: translate(340px, 0); }
  .sd-box--c { transform: translate(474px, 0); }
  .sd-d4, .sd-d5, .sd-d6 { opacity: 0; }
}

/* --- Noter under tal --------------------------------------------------- */

.stat-note {
  margin-top: var(--space-lg);
  color: var(--text-muted);
}

.section--dark .stat-note {
  color: var(--text-on-dark-mut);
}

/* --- Nummereret proces (lys) -------------------------------------------- */

.steps {
  display: grid;
  gap: 0;
  margin-top: var(--space-2xl);
  border-top: 2px solid var(--border-default);
}

.steps > li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: var(--space-md);
  align-items: start;
  padding-block: var(--space-lg);
  border-bottom: 1px solid var(--border-default);
}

.steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-accent);
  color: var(--text-on-accent);
  font-size: 0.9375rem;
  font-weight: 700;
}

.steps strong {
  font-weight: 700;
}

.steps p {
  color: var(--text-secondary);
  max-width: 72ch;
}

/* --- Billedbånd --------------------------------------------------------- */

.media {
  margin-top: var(--space-2xl);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-dark-card);
}

.media img {
  width: 100%;
  height: clamp(220px, 32vw, 440px);
  object-fit: cover;
}

/* De kvadratiske fotos vises smallere: skarpere gengivelse og variation i
   rytmen, så ikke hvert billede er et fuldbredde-bånd. */
.media--inset {
  max-width: 860px;
}

/* --- Personer ----------------------------------------------------------- */

.people {
  display: grid;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.person {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-default);
}

.section--accent .person {
  border-top-color: rgb(255 255 255 / 0.25);
}

.person__initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--bg-accent);
  color: var(--text-on-accent);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.section--accent .person__initials {
  background: var(--paper-0);
  color: var(--bg-accent);
}

.person__role {
  color: var(--text-secondary);
  margin-top: 2px;
}

.section--accent .person__role {
  color: rgb(255 255 255 / 0.75);
}

.person__contact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: var(--space-sm);
}

.person__contact a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* --- Bliv vikar --------------------------------------------------------- */

.join {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.join__text .eyebrow {
  color: var(--text-accent);
  margin-bottom: var(--space-md);
}

.join__text h2 {
  margin-bottom: var(--space-md);
}

.join__text p {
  color: var(--text-secondary);
  max-width: 52ch;
}

.join__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.signup {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.signup__label {
  font-size: 0.875rem;
  font-weight: 600;
}

.signup__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.signup__input {
  flex: 1 1 190px;
  min-width: 0;
  padding: 15px 20px;
  border: 1.5px solid var(--ink-300);
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--text-primary);
  font: inherit;
}

.signup__input::placeholder {
  color: var(--text-muted);
}

.signup__input:focus-visible {
  border-color: var(--blue-500);
}

.signup__input:user-invalid {
  border-color: var(--alert-500);
  box-shadow: 0 0 0 1px var(--alert-500);
}

/* Honeypot: usynligt for mennesker, udfyldes kun af bots. Placeres uden for
   skærmen frem for display:none, som nogle bots springer over. */
.signup__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.signup__status {
  margin-top: 4px;
  font-weight: 600;
}

.signup__status--ok {
  color: var(--text-primary);
}

.signup__status--error {
  color: var(--alert-500);
}

.signup__help,
.signup__alt {
  color: var(--text-muted);
  max-width: 46ch;
}

.signup__alt a {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 1100px) {
  .join {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-4xl);
  }

  .join__actions {
    flex: none;
    width: min(430px, 100%);
  }
}

/* --- Kontakt ------------------------------------------------------------ */

.contact__top {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact__eyebrow {
  margin-bottom: var(--space-md);
}

.contact__title {
  max-width: 16ch;
}

.contact__rule {
  height: 1px;
  margin-block: var(--space-2xl);
  background: currentColor;
  opacity: 0.25;
}

/* --- Footer ------------------------------------------------------------- */

.footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding-block: var(--space-3xl) var(--space-xl);
}

.footer__grid {
  display: grid;
  gap: var(--space-xl);
}

.footer__tagline {
  color: var(--text-on-dark-mut);
  margin-top: var(--space-md);
  max-width: 40ch;
}

.footer__col h2 {
  color: var(--text-accent-on-dark);
  margin-bottom: var(--space-md);
}

.footer__col li + li {
  margin-top: 10px;
}

.footer__col a,
.footer__col span {
  color: var(--text-on-dark-mut);
  font-size: 0.875rem;
  transition: color 0.18s ease;
}

.footer__col a:hover {
  color: var(--text-on-dark);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-dark);
  color: var(--text-on-dark-mut);
  font-size: 0.875rem;
}

.footer__bottom p {
  flex: 1 1 260px;
}

.footer__bottom a:hover {
  color: var(--text-on-dark);
}

/* --- Breakpoints -------------------------------------------------------- */

@media (min-width: 700px) {
  .hero__actions {
    flex-direction: row;
  }

  .pillar-grid,
  .people,
  .compare {
    grid-template-columns: repeat(2, 1fr);
  }

  .compare {
    gap: var(--space-2xl);
  }

  .flow {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }

  .steps > li {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: var(--space-lg);
    padding-block: var(--space-xl);
  }

  .footer__grid {
    grid-template-columns: 1.4fr repeat(3, minmax(0, 0.8fr));
    gap: var(--space-3xl);
  }
}

@media (min-width: 1100px) {
  .nav {
    display: flex;
  }

  .burger {
    display: none;
  }

  .mobile-nav {
    display: none;
  }

  .hero__bottom {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-4xl);
  }

  .hero__text {
    flex: 1;
  }

  .hero__stats {
    padding-top: 0;
    border-top: 0;
    flex: none;
  }

  .section-head {
    gap: var(--space-lg);
  }

  .contact__top {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-3xl);
  }

  .flow {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
  }

  .highlights {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
  }
}

/* --- Bevægelse ---------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .marquee__track {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .header,
  .mobile-nav,
  .marquee,
  .btn {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
