/* =============================================================
   SupplyOS — global stylesheet

   Built on the 10media.dk design system, unchanged in structure:
   a cream ground with a 60px rule grid, fluid `clamp()` type, and
   role-named colour tokens so a rebrand is a few lines at the top.

   1. Design tokens          <- colours, type and spacing live here
   2. Reset
   3. Base typography (elements)
   4. Components             <- .container .button .tag .chip .pill .lines
   5. Sections               <- hero, metrics, rows, cards, steps, faq
   6. Motion                 <- transitions; timelines live in motion.js
   7. Card colour system     <- .row--* / .card--* families
   8. Navigation
   9. Footer
  10. Brand mark             <- the supplied wordmark, painted by token
  11. Calculator             <- .promise .calc .field
  12. Homepage components    <- .tiles .final

   Mobile-first, logical properties, and most markup needs no class.
   ============================================================= */
:root {
  /* --- Colour ------------------------------------------------
     Names describe the ROLE, not the hue, so a rebrand is a
     one-line change here instead of a find/replace everywhere. */
  /* Brand palette: each dusty base has a neon partner that doubles
     as its hover. */
  --color-orange: #c75337;         /* dusty / dark orange (primary) */
  --color-orange-hover: #ff6016;
  --color-orange-neon: #ff6016;
  --color-yellow: #ffc363;         /* dusty yellow                  */
  --color-yellow-hover: #ffdb4b;
  --color-yellow-neon: #ffdb4b;
  --color-red: #8b3022;            /* dusty / darker red            */
  --color-red-hover: #bf1d17;
  --color-red-neon: #bf1d17;
  --color-red-light: #d0504a;      /* the menu's exit button, hover */
  --color-blue: #2e6471;           /* darker blue                   */
  --color-blue-hover: #23b5cf;
  --color-blue-neon: #23b5cf;

  --color-accent: var(--color-orange);              /* hero, tags      */
  --color-accent-strong: var(--color-orange-hover); /* primary hover   */
  --color-action: var(--color-orange-neon);         /* call to action  */
  --color-action-strong: #e85714;  /* the button's shaded lower lip */
  --color-ink: #121212;            /* primary text                  */
  --color-ink-muted: #646464;      /* secondary text                */
  --color-on-action: #ffffff;
  --color-ink-subtle: #606366;     /* metric source line             */
  --color-surface-raised: #ffffff; /* light button                   */
  --color-surface: #f4efe8;        /* page background (cream)       */
  --color-grid: #e2ddd7;           /* background grid rule          */
  --color-grid-cross: #d1cec9;     /* faint + at each intersection  */
  --color-step: #e1790a;           /* process rail + ring           */
  --color-track: #e7e8e8;          /* rail before it is filled      */
  --color-border: rgb(18 18 18 / 0.12);

  /* --- Font families -----------------------------------------
     Every stack ends in a system fallback so the page stays
     readable while webfonts load, or if they fail. */
  --font-heading: "Satoshi", "DM Sans", system-ui, -apple-system, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-wordmark: "Instrument Serif", "Times New Roman", Times, serif;
  --font-numeral: "Onest", "DM Sans", system-ui, sans-serif;
  --font-hand: "Patrick Hand", "Comic Sans MS", cursive;

  /* --- Fluid type scale --------------------------------------
     clamp(min, preferred, max) replaces the export's three sets
     of hard-coded per-breakpoint sizes. Each ramp interpolates
     linearly between a 390px phone and a 1300px desktop — the
     two widths the original design was actually drawn at.
     Comment shows: <phone size> → <desktop size> */
  --text-hero:     clamp(2.375rem, 0.982rem + 5.714vw, 5.625rem);   /* 38 → 90px */
  /* The centred hero runs a step below the display scale above, so the
     section reads as a statement rather than a shout. */
  /* The hero heading must break to exactly two lines. A 70-character
     sentence needs roughly 35 characters per line, so the size has to
     stay below (hero width) / (35 x 0.48). That makes it a function of
     the viewport rather than a plateau — hence the steep 5.5vw ramp.
     If the copy gets longer, lower the slope or widen .hero__title's
     measure, and re-check at 360/390/768px. */
  --text-hero-compact: clamp(1.1rem, -0.119rem + 5.500vw, 2.75rem); /* 18 → 44px */
  /* Four figures in a 2x2 need to be a size below the full-width
     metric so they do not fight each other. */
  --text-metric-grid:  clamp(1.75rem, 1.214rem + 2.198vw, 3rem);     /* 28 → 48px */
  --text-hero-sub:     clamp(1rem, 0.939rem + 0.245vw, 1.1875rem);  /* 16 → 19px */
  --text-wordmark: clamp(2.4375rem, 1.339rem + 4.505vw, 5rem);      /* 39 → 80px */
  --text-h2:       clamp(1.5625rem, 1rem + 2.308vw, 2.875rem);      /* 25 → 46px */
  --text-h3:       clamp(1.375rem, 1.214rem + 0.659vw, 1.75rem);    /* 22 → 28px */
  --text-h4:       clamp(1.25rem, 1.143rem + 0.440vw, 1.5rem);      /* 20 → 24px */
  --text-h5:       clamp(1.125rem, 1.071rem + 0.220vw, 1.25rem);    /* 18 → 20px */
  --text-h6:       clamp(1rem, 0.946rem + 0.220vw, 1.125rem);       /* 16 → 18px */
  --text-lead:     clamp(1.125rem, 0.964rem + 0.659vw, 1.5rem);     /* 18 → 24px */
  --text-body:     clamp(1.125rem, 1.098rem + 0.110vw, 1.1875rem);  /* 18 → 19px */
  --text-note:     clamp(0.9375rem, 0.830rem + 0.440vw, 1.1875rem); /* 15 → 19px */
  --text-metric:   clamp(1.75rem, 0.759rem + 4.066vw, 4.0625rem);   /* 28 → 65px */
  --text-metric-label: clamp(1.1875rem, 1.056rem + 0.538vw, 1.5rem);/* 19 → 24px */
  --text-byline:   clamp(1rem, 0.893rem + 0.440vw, 1.25rem);        /* 16 → 20px */
  --text-footer-lead: clamp(1.5rem, 1.121rem + 1.549vw, 2.5rem);    /* 24 → 40px */
  --text-display-md: clamp(1.75rem, 1.253rem + 2.033vw, 2.875rem); /* 28 -> 46px */
  --text-row-title:  clamp(1.25rem, 1.113rem + 0.560vw, 1.5625rem); /* 20 -> 25px */
  --text-faq-title:  clamp(1.125rem, 1.041rem + 0.344vw, 1.375rem);  /* 18 -> 22px */
  --text-card-title: clamp(1.25rem, 1.113rem + 0.560vw, 1.5625rem); /* 20 -> 25px */
  --text-step-title: clamp(1.5rem, 1.253rem + 1.011vw, 2.0625rem);  /* 24 -> 33px */
  --text-ui:       0.9rem;                                          /*     14.4px */
  --text-om-title: clamp(2rem, 1.484rem + 2.110vw, 3rem);          /* 32 -> 48px */
  --text-om-label: clamp(1.5rem, 1.319rem + 0.742vw, 1.875rem);    /* 24 -> 30px */
  --text-om-body:  clamp(1.0625rem, 1.004rem + 0.242vw, 1.25rem);  /* 17 -> 20px */
  --text-om-sub:   clamp(1.375rem, 1.203rem + 0.703vw, 1.625rem);  /* 22 -> 26px */
  --text-om-intro: clamp(1.0625rem, 1.004rem + 0.242vw, 1.25rem);  /* 17 -> 20px */
  --text-om-lead:  clamp(1rem, 0.945rem + 0.220vw, 1.125rem);      /* 16 -> 18px */
  --text-om-cases: clamp(2rem, 1.385rem + 2.527vw, 3.125rem);      /* 32 -> 50px */
  --text-caption:  0.875rem;                                        /*       14px */
  /* Case page */
  --text-case-title:  clamp(1.75rem, 1.101rem + 2.66vw, 2.9375rem);   /* 28 -> 47px */
  --text-case-h1:     clamp(2.25rem, 1.601rem + 2.66vw, 3.75rem);     /* 36 -> 60px */
  --text-case-lead:   clamp(1.125rem, 0.946rem + 0.73vw, 1.625rem);   /* 18 -> 26px */
  --text-case-metric: clamp(2.5rem, 1.799rem + 2.88vw, 4.0625rem);    /* 40 -> 65px */
  --text-case-fact:   clamp(0.9375rem, 0.882rem + 0.23vw, 1.0625rem); /* 15 -> 17px */
  --text-case-block:  clamp(1.375rem, 1.095rem + 1.15vw, 2rem);       /* 22 -> 32px */
  --text-case-name:   clamp(1.375rem, 1.161rem + 0.879vw, 1.875rem);  /* 22 -> 30px */
  --text-cases-title: clamp(2.5rem, 1.429rem + 4.396vw, 5rem);        /* 40 -> 80px */
  /* Kontakt page */
  --text-kontakt-title: clamp(2.75rem, 2.027rem + 2.967vw, 4.4375rem);/* 44 -> 71px */
  --text-kontakt-lead:  clamp(1.0625rem, 0.982rem + 0.330vw, 1.25rem);/* 17 -> 20px */
  --text-field:         1rem;                                         /*       16px */

  /* --- Line height ------------------------------------------- */
  --leading-none: 1;
  --leading-tight: 1.1;
  --leading-snug: 1.2;
  --leading-normal: 1.4;
  --leading-relaxed: 1.6;

  /* --- Letter spacing ----------------------------------------
     Large type needs negative tracking, small type does not.
     The export applied -0.04em by hand on every node; here it
     is one token. */
  --tracking-display: -0.04em;
  --tracking-tight: -0.02em;
  --tracking-snug: -0.05em;
  --tracking-normal: 0;
  --tracking-wide: 0.014em;

  /* --- Weight ------------------------------------------------ */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* --- Spacing ----------------------------------------------- */
  --space-3xs: 0.375rem;  /*  6px */
  --space-2xs: 0.75rem;   /* 12px */
  --space-xs: 1rem;       /* 16px */
  --space-sm: 1.5rem;     /* 24px */
  --space-md: 2rem;       /* 32px */
  --space-lg: 3rem;       /* 48px */
  --space-xl: 4rem;       /* 64px */

  --measure: 34ch;
  /* Hairline shared by the process rail and the section-head rules. */
  --line-weight: 0.225rem;   /* 3.6px */
  --radius-md: 0.75rem;      /* 12px */
  --radius-button: 0.875rem; /* 14px */
  --radius-pill: 999px;

  /* --- Background grid ---------------------------------------
     60px cells, lines on the 30px mark, as in the design. The
     spotlight (see "Background grid" below and motion.js) reads
     these, so every page's grid and its crosses stay aligned. */
  --grid-size: 60px;
  --grid-offset: 30px;

  /* 120rem keeps type and grids on a comfortable measure while letting
     large screens (>1920px) use more of the viewport than the old
     1800px cap did. Case photography goes full-bleed on top of this
     (see .case-hero__media), so images still reach the screen edge. */
  --container-max: 120rem;                                  /* 1920px */
  --container-gutter: clamp(1rem, -0.714rem + 7.033vw, 5rem); /* 16 → 80px */
  /* Below the hero the page sits further from the edges than the hero's
     own ground. Widen the multiplier to give the whole page more air,
     or set it to 1 to match the hero exactly. */
  --container-gutter-page: calc(var(--container-gutter) * 1.6);
}

/* =============================================================
   2. RESET
   ============================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote,
ul, ol, dl, dd {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  /* The entrance slides content in from the right; clip stops that
     briefly producing a horizontal scrollbar. clip rather than
     hidden, so position:sticky keeps working. */
  overflow-x: clip;
}

/* In-page anchors must clear the sticky bar, which sits above the
   flow and would otherwise cover the heading they point at. */
section[id],
main[id] {
  scroll-margin-top: calc(var(--nav-top) + var(--nav-height) + 1.5rem);
}

/* Deliberately no `scroll-behavior: smooth` on html: a deep link would
   animate its way through the whole page on load, and it races the
   reveal animations, so a shared #anchor can land short. An instant
   jump is what a link from outside should do. */

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =============================================================
   3. BASE TYPOGRAPHY
   Elements carry the defaults, so most markup needs no classes.
   ============================================================= */

/* Every face is served from the site itself: no third-party font CSS
   in the critical path and no extra origins to connect to. Only the
   faces a page actually uses are ever downloaded. */
@font-face {
  font-family: "DM Sans";
  src: url("documentation/fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("documentation/fonts/dm-sans-italic-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("documentation/fonts/satoshi-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Medium, so a two-part display title can run one line lighter than
   the other. Satoshi ships no 600 — 500 is the step below bold. */
@font-face {
  font-family: "Satoshi";
  src: url("documentation/fonts/satoshi-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("documentation/fonts/satoshi-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("documentation/fonts/satoshi-700-italic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("documentation/fonts/instrument-serif-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Onest";
  src: url("documentation/fonts/onest-latin.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

/* The team cards are set in a handwritten face. */
@font-face {
  font-family: "Patrick Hand";
  src: url("documentation/PatrickHand-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body {
  overflow-x: clip;
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-relaxed);
  letter-spacing: var(--tracking-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Cream ground with a 60px rule grid and a faint + on every
     intersection. Each layer is one 60px tile, so the rhythm never
     breaks at the edge of the page. The + tile is drawn centred, so
     it sits half a cell back. Its colour mirrors --color-grid-cross
     (a data URI cannot read custom properties). */
  background-color: var(--color-surface);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath fill='%23d1cec9' d='M26.5 29.875h8v1.25h-8zM29.875 26.5h1.25v8h-1.25z'/%3E%3C/svg%3E"),
    repeating-linear-gradient(to right, var(--color-grid) 0 1px, transparent 1px var(--grid-size)),
    repeating-linear-gradient(to bottom, var(--color-grid) 0 1px, transparent 1px var(--grid-size));
  background-size: var(--grid-size) var(--grid-size);
  background-position:
    calc(var(--grid-offset) - var(--grid-size) / 2) calc(var(--grid-offset) - var(--grid-size) / 2),
    var(--grid-offset) var(--grid-offset),
    var(--grid-offset) var(--grid-offset);
}

/* =============================================================
   BACKGROUND GRID: cursor spotlight
   Darker + marks light up around the pointer. Built by motion.js as
   two elements, and every frame only changes their transforms, so
   the compositor moves them without repainting anything:
   - .grid-spot follows the pointer. Its radial mask is static:
     full ink inside the core, fading to nothing at the radius.
   - .grid-spot__ink is a flat colour masked by a static + tile,
     counter-shifted so the marks stay locked to the page grid,
     scroll included.
   It sits under all content and never takes pointer events.
   ============================================================= */
:root {
  --grid-spot-ink: #787877;
  --grid-spot-core: 45px;     /* full strength within this distance */
  --grid-spot-radius: 256px;  /* gone by this distance */
  --grid-spot-fade: 320ms;
}

.grid-spot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: calc(var(--grid-spot-radius) * 2);
  height: calc(var(--grid-spot-radius) * 2);
  overflow: hidden;
  contain: strict;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-100vw, -100vh, 0);
  -webkit-mask-image: radial-gradient(closest-side, #000 var(--grid-spot-core), transparent 100%);
  mask-image: radial-gradient(closest-side, #000 var(--grid-spot-core), transparent 100%);
  transition: opacity var(--grid-spot-fade) ease;
}

/* Only while the pointer is on the page: no permanent layers. */
.grid-spot.is-visible {
  opacity: 1;
  will-change: transform, opacity;
}

.grid-spot__ink {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% + var(--grid-size));
  height: calc(100% + var(--grid-size));
  background-color: var(--grid-spot-ink);
  /* 8px + with a 1.5px stroke, centred on the 1px rule. */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M26.5 29.75h8v1.5h-8zM29.75 26.5h1.5v8h-1.5z'/%3E%3C/svg%3E") 0 0 / var(--grid-size) var(--grid-size) repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M26.5 29.75h8v1.5h-8zM29.75 26.5h1.5v8h-1.5z'/%3E%3C/svg%3E") 0 0 / var(--grid-size) var(--grid-size) repeat;
  transform: translate3d(0, 0, 0);
}

.grid-spot.is-visible .grid-spot__ink {
  will-change: transform;
}

/* --- Headings ------------------------------------------------
   h1 is display type: Satoshi bold, terracotta, tight.
   h2/h3 are section headings, h4-h6 step down into UI type. */
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance; /* avoids an orphaned last word */
}

h1 {
  font-family: var(--font-heading);
  font-size: var(--text-hero);
  font-weight: var(--weight-bold);
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-display);
  color: var(--color-accent);
}

h2 {
  font-family: var(--font-body);
  font-size: var(--text-h2);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-snug);
  color: var(--color-accent);
}

h3 {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  color: var(--color-ink);
}

h4 {
  font-family: var(--font-body);
  font-size: var(--text-h4);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-tight);
  color: var(--color-ink);
}

h5 {
  font-family: var(--font-body);
  font-size: var(--text-h5);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-tight);
  color: var(--color-ink);
}

h6 {
  font-family: var(--font-body);
  font-size: var(--text-h6);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-normal);
  color: var(--color-ink);
}

p {
  color: var(--color-ink);
  text-wrap: pretty;
  max-width: var(--measure);
}

/* =============================================================
   4. COMPONENTS
   ============================================================= */

/* --- Container ----------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-gutter);
}

/* --- Line-broken text ----------------------------------------
   The design sets its own line breaks. Rather than hard-coding
   <br>, each line is a span that is a block on wide screens and
   collapses back to inline text when there is no room for it. */
.lines > span {
  display: block;
}

@media (max-width: 47.5rem) {
  .lines > span {
    display: inline;
  }
}

/* --- Wordmark ------------------------------------------------ */
.wordmark {
  font-family: var(--font-wordmark);
  font-size: var(--text-wordmark);
  font-weight: var(--weight-regular);
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-display);
  color: var(--color-ink);
  max-width: none;
  white-space: nowrap;
}

/* --- Button --------------------------------------------------
   A solid slab with a shaded lower lip: the lip is an inset
   shadow, so there is only one box and the radius stays true. */
.button {
  --button-lip: 0.6rem; /* 9.6px */

  display: inline-flex;
  flex: none;                /* never let a flex row squash the slab */
  align-items: center;
  justify-content: center;
  min-height: clamp(2.5625rem, 2.321rem + 0.989vw, 3.125rem); /* 41 -> 50px */
  padding-inline: 1rem;      /* 16px */
  border: 0;
  border-radius: var(--radius-button);
  background-color: var(--color-action);
  /* The lit face is inset from the bottom-right, so the darker body
     of the slab shows along both of those edges. */
  box-shadow:
    inset calc(-1 * var(--button-lip)) calc(-1 * var(--button-lip)) 0 rgb(0 0 0 / 0.09),
    0 0.125rem 0.625rem rgb(0 0 0 / 0.3);
  color: var(--color-on-action);
  font-family: var(--font-body);
  font-size: var(--text-ui);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-normal);
  text-align: center;
  cursor: pointer;
  transition: background-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.button:hover {
  background-color: var(--color-action-strong);
}

/* Short labels still get a slab wide enough to read as a button. */
@media (min-width: 60rem) {
  .button {
    min-width: 7.5rem; /* 120px */
  }
}

/* Same slab, light face -- used for secondary calls to action. */
.button--light {
  background-color: var(--color-surface-raised);
  color: var(--color-ink);
}

.button--light:hover {
  background-color: #f2f2f2;
}

/* Pressing shrinks the lip, so the slab looks pushed down. */
.button:active {
  --button-lip: 0.25rem;
  transform: translateY(0.1875rem);
  box-shadow:
    inset calc(-1 * var(--button-lip)) calc(-1 * var(--button-lip)) 0 rgb(0 0 0 / 0.09),
    0 0.0625rem 0.25rem rgb(0 0 0 / 0.26);
}

/* --- Tag ----------------------------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 2rem; /* 32px */
  padding-inline: 0.75rem;
  /* Hairline drawn inside the box so it does not widen the pill --
     a real border would add 2px to a content-sized inline-flex box. */
  box-shadow: inset 0 0 0 1px var(--color-accent);
  border-radius: var(--radius-pill);
  background-color: var(--color-surface);
  color: var(--color-accent);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-wide);
  white-space: nowrap;
}

/* Solid variant: the case hero labels the work with filled pills
   instead of the outlined ones used on the home page. */
.tag--solid {
  min-height: 1.625rem; /* 26px */
  padding-inline: 0.75rem;
  box-shadow: none;
  background-color: var(--tag-bg);
  color: var(--tag-ink);
  font-size: 0.8125rem;  /* 13px */
  line-height: 1.385;    /* 18px */
  letter-spacing: 0.1px;
}

.tag--amber { --tag-bg: var(--color-yellow); --tag-ink: #4a3510; }
.tag--teal  { --tag-bg: var(--color-blue); --tag-ink: rgb(255 255 255 / 0.85); }
.tag--terracotta { --tag-bg: var(--color-accent); --tag-ink: #fff; }
.tag--rust  { --tag-bg: var(--color-red); --tag-ink: rgb(244 239 232 / 0.85); }
.tag--ink   { --tag-bg: var(--color-ink); --tag-ink: rgb(244 239 232 / 0.9); }

/* =============================================================
   5. SECTIONS
   ============================================================= */

/* --- Hero ----------------------------------------------------
   The first section is exactly one viewport tall, so the pitch lands
   on its own before anything else scrolls into view.

   Layout is two children: a stack that centres itself in whatever
   room is left, and a tag row that sits on the section's floor. That
   way the tags are always at the bottom of the viewport with the
   bottom margin respected, and the centred copy can never collide
   with them — the stack simply takes the space that is left over.

   100dvh keeps the promise honest on mobile, where the browser chrome
   slides away; 100vh is the fallback. min-height rather than height
   means a short landscape phone grows the section instead of clipping
   it. */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-block: calc(var(--nav-top) + var(--nav-height) + var(--space-lg)) var(--space-lg);
}

/* Everything above the tags. flex:1 claims the leftover height, and
   the column centres its own contents inside it. */
.hero__stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero__logo {
  --logo-height: clamp(2rem, 1.3rem + 2.6vw, 3rem); /* 32 → 48px */
}

.hero__title {
  /* Two lines, never three. The size comes from --text-hero-compact
     and the measure is set so the sentence breaks exactly once; if it
     ever wraps to a third line, lower the token rather than the
     measure, so the balance stays.

     The sentence runs in Medium, and the three objects — din webshop,
     dit merchandise, direkte ud — carry the Bold: the same two-cut
     trick as the two-line titles, so the promise reads through. */
  font-size: var(--text-hero-compact);
  font-weight: var(--weight-regular);
  margin-top: clamp(1.25rem, 0.9rem + 1.4vw, 2rem);
  max-width: 34ch;
}

.hero__title strong {
  font-weight: var(--weight-bold);
}

/* The explanatory line is an <h2> in the outline, so the element's
   own display styling is reset here and the copy reads as prose. */
.hero__sub {
  margin-top: 1.25rem;
  font-family: var(--font-body);
  font-size: var(--text-hero-sub);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-normal);
  color: var(--color-ink);
  /* Wide enough for the longer of the two sentences to stay on one
     line — above 47.5rem the .lines spans put each sentence on its own
     line. Measured: the longer sentence runs ~43.1em. */
  max-width: 44em;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  margin-top: clamp(2rem, 1.385rem + 2.527vw, 3.125rem);
}

.hero__price {
  font-size: var(--text-note);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-tight);
  color: var(--color-ink-muted);
  max-width: none;
}

/* The tag row sits on the section's floor. It is centred because the
   hero is, and it wraps to a second line on narrow screens rather
   than overflowing. */
.hero__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
  margin-top: var(--space-lg);
  padding: 0;
  list-style: none;
}

/* Short viewports: the copy has to win over the type scale, so the
   hero steps down rather than pushing the action off the screen. */
@media (max-height: 48rem) {
  .hero {
    padding-block: calc(var(--nav-top) + var(--nav-height) + var(--space-md)) var(--space-md);
  }

  .hero__logo { --logo-height: 2.25rem; }

  .hero__title {
    font-size: var(--text-h3);
    margin-top: var(--space-xs);
    max-width: none;
  }

  .hero__sub { margin-top: var(--space-2xs); }

  .hero__cta { margin-top: var(--space-sm); }

  .hero__tags { margin-top: var(--space-sm); }
}

/* --- Section head --------------------------------------------
   Title, dot, then a rule that eats the rest of the row. Reused
   by every section that opens this way; the rule is drawn at the
   shared hairline weight, rounded. */
.section-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-head__title {
  /* The design strokes the heading half a pixel to thicken it
     slightly without jumping to the next weight. */
  -webkit-text-stroke: 0.5px var(--color-accent);
}

.section-head__dot {
  font-size: calc(var(--text-h4) * 0.5);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--color-accent);
}

.section-head__rule {
  flex: 1;
  height: var(--line-weight);
  border-radius: var(--radius-pill);
  background-color: var(--color-accent);
}

/* --- Results -------------------------------------------------- */
.results {
  padding-block: 1.625rem 5.5rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 64rem; /* 1024px -- sets the 341px column pitch */
  margin-top: 6.25rem;
  padding: 0;
  list-style: none;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.metric__value {
  font-size: var(--text-metric);
  font-weight: var(--weight-bold);
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-snug);
  color: var(--color-accent);
  /* Tabular figures keep the numbers from jittering if they ever
     animate up from zero. */
  font-feature-settings: "tnum" 1;
  max-width: none;
}

.metric__label {
  font-size: var(--text-metric-label);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-snug);
  color: var(--color-ink);
  max-width: none;
}

.metric__source {
  font-size: var(--text-metric-label);
  font-weight: var(--weight-regular);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-snug);
  color: var(--color-ink-subtle);
  max-width: none;
}

/* Button and byline stay on one row at every width -- the byline
   shrinks and rewraps rather than dropping below the button. */
.results__cta {
  display: flex;
  align-items: flex-start;
  gap: clamp(1.5rem, 1.018rem + 1.978vw, 2.625rem); /* 24 -> 42px */
  margin-top: 2.5rem;
}

.results__byline {
  font-size: var(--text-byline);
  font-weight: 300;
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-display);
  color: var(--color-ink);
  max-width: none;
  min-width: 0; /* lets the byline shrink instead of forcing a wrap */
}

/* Three metrics side by side need room; below that they stack. */
@media (max-width: 60rem) {
  .metrics {
    grid-template-columns: 1fr;
    gap: 1.375rem;
    margin-top: 0;
  }

  /* On a phone the row is tight, so buttons shrink-wrap their
     labels instead of holding the wider desktop minimum. */
  .button {
    min-width: 5rem;
  }
}

/* --- Problem / Services / Process / Cases / Team / FAQ -------
   Everything below shares three building blocks: the section
   head above, the .split two-column shell, and the .row
   disclosure used by both the reasons list and the FAQ. */

/* The reasons list used to sit in a .split with an intro column
   beside it. It now runs the whole measure, so it carries its own
   top margin. */
.reasons {
  margin-top: 2rem;
}

/* Only the process section is inset now; the reasons list runs the
   same width as the block above it. */
.container--inset {
  max-width: calc(var(--container-max) - 12.8125rem); /* -205px */
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4.125rem; /* 66px */
  align-items: start;
  margin-top: 1rem;
}

/* The FAQ leads with a narrow intro and a wide answer column. */
.split--narrow {
  grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr);
}

.split__intro > * + * {
  margin-top: 1.5rem;
}

/* Desktop: the intro column stays in view under the header while the
   list beside it is read. As a grid item it is bounded by the grid,
   so it lets go at the foot of the section rather than following on
   into the next one. */
@media (min-width: 60.0625rem) {
  .problem .split__intro,
  .process .split__intro,
  .faq .split__intro {
    position: sticky;
    top: calc(var(--nav-top) + var(--nav-height) + 1.5rem);
  }
}

.heading-lg {
  font-family: var(--font-heading);
  font-size: var(--text-display-md);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  color: var(--color-ink);
}

.heading-lg--center {
  text-align: center;
}

.prose {
  font-size: var(--text-byline);
  font-weight: var(--weight-medium);
  line-height: 1.3;
  letter-spacing: var(--tracking-display);
  color: var(--color-ink);
  max-width: 65ch;
}

.prose--center {
  text-align: center;
  margin-inline: auto;
  max-width: 50ch;
}

.prose--muted {
  color: var(--color-ink-subtle);
  font-weight: var(--weight-regular);
}

.prose--sm {
  font-size: var(--text-note);
  max-width: 30ch;
}

/* Outline pill used as a small section label. */
.pill {
  display: inline-block;
  padding: 0.3125rem 0.875rem;
  border-radius: var(--radius-pill);
  box-shadow: inset 0 0 0 1px var(--color-accent);
  background-color: var(--color-surface);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  line-height: var(--leading-normal);
  color: var(--color-accent);
  max-width: none;
}

/* --- Disclosure row ------------------------------------------
   <details>/<summary> gives a working accordion with no script
   and correct keyboard and screen-reader behaviour. */
.reasons,
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--row-gap, 0.5625rem);
  padding: 0;
  list-style: none;
}

.row {
  border-radius: 1.25rem; /* 20px */
  background-color: var(--row-bg);
  color: var(--row-ink);
}

.row summary {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--row-height, 5.4375rem); /* 87px */
  padding-inline: 2.25rem;
  cursor: pointer;
  list-style: none;
}

/* Hide the native disclosure triangle in every engine. */
.row summary::-webkit-details-marker {
  display: none;
}

.row summary::after {
  content: "";
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin-left: auto;
  background:
    linear-gradient(currentColor 0 0) center / 100% 2px no-repeat,
    linear-gradient(currentColor 0 0) center / 2px 100% no-repeat;
  opacity: 0.65;
  transition: transform 180ms ease;
}

.row[open] summary::after {
  transform: rotate(45deg);
}

.row__num {
  font-family: var(--font-numeral);
  font-size: var(--text-row-title);
  font-weight: var(--weight-regular);
  line-height: var(--leading-none);
  letter-spacing: -0.07em;
  color: var(--row-muted);
}

.row__title {
  font-family: var(--font-heading);
  font-size: var(--text-row-title);
  font-weight: var(--weight-bold);
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-display);
  color: var(--row-ink);
}

.row__body {
  margin: 0 2.25rem 1.75rem;
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  line-height: var(--leading-normal);
  letter-spacing: -0.03em;
  color: var(--row-ink);
  max-width: 60ch;
}


/* Three short cause tags under each open reason. */
.row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem 1rem;
  margin: -0.5rem 2.25rem 1.75rem;
  padding: 0;
  list-style: none;
}

.tag--chip {
  min-height: 2.25rem; /* 36px */
  padding-inline: 1.125rem;
  box-shadow: none;
  background-color: var(--color-surface);
  color: var(--color-ink);
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
}

/* FAQ questions run a step smaller than the reason rows. */
.row--faq .row__title {
  font-size: var(--text-faq-title);
  letter-spacing: var(--tracking-tight);
  line-height: 1.4;
}

/* =============================================================
   Services cards
   ============================================================= */
.cards {
  gap: 1.3125rem; /* 21px */
  max-width: 66.875rem; /* 1070px */
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}

/* Small pointer under the services cards, leading to the Ydelser page. */
.services__more {
  margin-top: 1.75rem;
  font-size: var(--text-note);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-display);
  max-width: none;
}

.services__more a {
  color: var(--color-accent);
}

.services__more a:hover {
  text-decoration: underline;
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 16.25rem; /* 260px */
  padding: 1.875rem;
  border-radius: 1.5rem;
}

/* Side by side, a card holds one fixed height whether open or shut.
   Without this the long copy reflows taller while the card is still
   mid-widen, so the row grows and then snaps back. */
@media (min-width: 60.0625rem) {
  /* Was a fixed height, on the assumption that the expanded copy always
     fitted inside 16.25rem. The open panel now holds two text boxes, so
     it has to be free to grow. The min-height set on .card above keeps
     the collapsed cards at the same size as before. */
  /* Stacked, the two boxes sit one after the other, so no single height
     fits every card. Here the card is free to grow and motion.js tweens
     the panel open — which is what the phone path was written for. The
     fixed height above applies only where the cards sit side by side, so
     the row never jumps. */
  .card {
    height: auto;
    min-height: 18rem;
  }
}

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.125rem 0.5rem 0.875rem;
  border-radius: var(--radius-pill);
  background-color: var(--card-badge);
  font-size: 1rem;
  font-weight: var(--weight-semibold);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-tight);
  color: #ffffff;
  max-width: none;
}

.card__icon {
  width: 1.375rem;
  height: 1.375rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card__title {
  position: relative;
  margin-top: 2.375rem;
  max-width: 21.25rem; /* 340px -- the design fixes the measure */
  padding-bottom: 0.875rem;
  font-family: var(--font-body);
  font-size: var(--text-card-title);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-none);
  letter-spacing: -0.08em;
  color: var(--row-ink);
}

/* Each half of the heading wraps as a unit, so "&" stays on the
   first line. */
.card__title > span {
  white-space: nowrap;
}

/* The rule under the heading: a pseudo-element rather than a border,
   so its ends can be rounded. */
.card__title::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2.5px;
  border-radius: 2.5px;
  background-color: currentColor;
}

.card__body {
  margin-top: 1.125rem;
  font-size: 1rem;
  font-weight: var(--weight-medium);
  line-height: var(--leading-normal);
  letter-spacing: -0.03em;
  color: var(--row-muted);
  max-width: 34ch;
}

/* The process intro runs to a shorter measure than the others. */
.process .prose {
  max-width: 59ch;
}

/* =============================================================
   Process timeline
   ============================================================= */
.steps {
  --rail-x: 1.5rem;    /* distance from the copy to the rail axis */
  --marker: 0.9rem;    /* 14.4px ring */
  --rail-gap: 0.75rem; /* clearance between a rail and the rings */
  --step-gap: 3rem;

  display: flex;
  flex-direction: column;
  gap: var(--step-gap);
  margin: 0;
  padding: 0 0 0 calc(var(--rail-x) + var(--marker) / 2);
  list-style: none;
}

.step {
  position: relative;
}

/* Ring marker: stroke only until the rail running into it arrives,
   then it fills solid. Trin 1 starts filled, so its class ships in
   the markup and survives no matter how the page is entered. */
.step__marker {
  position: absolute;
  top: 0.25rem;
  left: calc(-1 * var(--rail-x) - var(--marker) / 2);
  width: var(--marker);
  height: var(--marker);
  border: 2px solid var(--color-step);
  border-radius: 50%;
  background-color: transparent;
  opacity: 0.27;
  transition: opacity 420ms ease, background-color 420ms ease;
}

.step.is-reached .step__marker {
  opacity: 1;
  background-color: var(--color-step);
}

/* One rail per step, rounded like the rings and drawn at the shared
   hairline weight. It runs from a ring's underside to just above the
   next one, held clear of both by the same gap. The grey track is the
   full span; the orange fill grows through it on scroll. */
.step__rail {
  position: absolute;
  top: calc(0.25rem + var(--marker) + var(--rail-gap));
  bottom: calc(var(--rail-gap) - 0.25rem - var(--step-gap));
  left: calc(-1 * var(--rail-x));
  width: var(--line-weight);
  transform: translateX(-50%);
  border-radius: var(--radius-pill);
  background-color: var(--color-track);
  overflow: hidden;
}

.step:last-child .step__rail {
  display: none;
}

.step__rail i {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-color: var(--color-step);
  transform-origin: top center;
  transform: scaleY(0);
}

.step__eyebrow {
  font-size: var(--text-byline);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--color-accent);
  max-width: none;
}

.step__title {
  margin-top: 0.375rem;
  font-family: var(--font-heading);
  font-size: var(--text-h4);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  color: var(--color-ink);
}

.step__body {
  margin-top: 1rem;
  font-size: var(--text-byline);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-tight);
  color: var(--color-ink-subtle);
  max-width: 64ch;
}

.step__body strong {
  font-weight: var(--weight-semibold);
  color: var(--color-ink);
}

.step__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 1.25rem;
  max-width: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  line-height: var(--leading-normal);
  white-space: nowrap;
}

.chip--soft {
  background-color: #ecdad0;
  color: var(--color-accent);
}

.chip--amber {
  background-color: var(--color-yellow);
  color: #4a3510;
}

.chip--outline {
  box-shadow: inset 0 0 0 1px var(--color-accent);
  background-color: var(--color-surface);
  color: var(--color-accent);
}

/* =============================================================
   Cases
   ============================================================= */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3.25rem;
  margin-top: 2.375rem;
  padding: 0;
  list-style: none;
}

.case__figure {
  display: grid;
  place-items: center;
  margin: 0;
  aspect-ratio: 3 / 2;
  border-radius: 1.25rem;
  /* Placeholder ground while the photography loads. */
  background-color: #b9b2ab;
  /* CMS cases set the photograph inline; these keep it covered. */
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* The photograph is an <img> so `srcset` can pick a smaller file. */
.case__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The case photography carries the client's mark, so it replaces
   the placeholder ground. Both pages' figures share these. */
.case__figure--storm,
.case__figure--klinik {
  background-size: cover;
  background-position: center;
}

.case__figure--storm {
  background-image: url("documentation/storm-card.webp");
}

.case__figure--klinik {
  background-image: url("documentation/klinik-case.webp");
}

/* A hidden case card (the Klinik case is parked) must not fetch its
   photograph; unhiding it brings the image straight back. */
[hidden] .case__figure--klinik {
  background-image: none;
}

.case__name {
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  font-weight: var(--weight-bold);
  letter-spacing: -0.03em;
  color: #ffffff;
}

/* =============================================================
   Team
   ============================================================= */
.team__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1rem;
  text-align: center;
}

.portraits {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding: 0;
  list-style: none;
}

/* The frame itself lives on .flip__face so the front and back share
   it. The figure only sets the width the two faces are cut to. */
.portrait figure {
  width: min(19rem, 44vw);
  margin: 0;
}

/* Square crop, as in the om-os portraits, so the polaroid sits
   wider without growing taller. An <img> now carries the photo, so
   the browser can pick a smaller file on phones. */
.portrait__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background-color: #cfc7bd;
}

.portrait figcaption {
  margin-top: 1rem;
  font-size: var(--text-body);
  color: var(--color-ink);
}

/* The two frames lean towards each other, as in the design. */
.portrait--left {
  transform: rotate(-5deg);
}

.portrait--right {
  transform: rotate(4deg);
  margin-left: -2.5rem;
}

.team__cta {
  margin-top: 2.5rem;
  text-align: center;
  max-width: none;
}

/* =============================================================
   Section rhythm
   ============================================================= */
.problem,
.services,
.process,
.cases,
.team,
.faq {
  padding-block: 4.5rem;
}

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 60rem) {
  .split,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .split {
    gap: 2.5rem;
    margin-top: 2.5rem;
  }

  .portraits {
    gap: 0.75rem;
  }

  .portrait--right {
    margin-left: -1.25rem;
  }

  .row summary {
    gap: 1rem;
    padding-inline: 1.25rem;
  }

  .row__body,
  .row__tags {
    margin-inline: 1.25rem;
  }

  .steps {
    padding-left: 1.75rem;
  }

  .step::before {
    left: -2.8125rem;
  }
}

/* Narrow screens cannot hold the pair side by side once the backs
   carry a full story, so the polaroids stack, each one wide enough
   for its text. */
@media (max-width: 40rem) {
  .portraits {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .portrait--right {
    margin-left: 0;
  }

  .portrait figure {
    width: min(19rem, 78vw);
  }
}

/* =============================================================
   6. MOTION
   Hover and state transitions live here in CSS; anything driven
   by scroll position or page load is in motion.js (GSAP).
   ============================================================= */
:root {
  --ripple-1: var(--color-red-neon);    /* dark red, arrives first  */
  --ripple-2: var(--color-orange-neon); /* orange, second          */
  --ripple-3: var(--color-yellow-neon); /* yellow, fills the button */
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Button: colour wave rises off the bottom edge ------------
   Three full-width layers stacked at the floor travel up in
   sequence, so the fill sweeps in from below instead of blooming
   out of the middle. The shallow dome keeps it reading as liquid. */
.button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.button__wave,
.button__wave i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160%;
  border-radius: 50% 50% 0 0 / 22% 22% 0 0;
  transform: translateY(100%);
  transition: transform 800ms var(--ease-out-quint);
  z-index: -1;
}

.button__wave {
  background-color: var(--ripple-1);
}

.button__wave i:first-child {
  background-color: var(--ripple-2);
  transition-delay: 110ms;
}

.button__wave i:last-child {
  background-color: var(--ripple-3);
  transition-delay: 220ms;
}

.button:hover .button__wave,
.button:hover .button__wave i,
.button:focus-visible .button__wave,
.button:focus-visible .button__wave i {
  transform: translateY(0);
}

/* The label swaps for a copy of itself: the white one leaves
   upward as the dark one arrives from below. */
.button__text {
  position: relative;
  display: block;
  transition: transform 480ms var(--ease-out-quint),
              opacity 260ms ease;
}

/* The incoming label is a sibling of the outgoing one -- as a child
   it would inherit the fade and never be seen. Its ink is the dark
   brown the yellow cards use, so the filled state stays on palette. */
.button::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform: translateY(115%);
  color: #4a3510;
  font-weight: var(--weight-semibold);
  opacity: 0;
  transition: transform 480ms var(--ease-out-quint),
              opacity 260ms ease 160ms;
  pointer-events: none;
}

.button:hover .button__text,
.button:focus-visible .button__text {
  transform: translateY(-115%);
  opacity: 0;
}

.button:hover::after,
.button:focus-visible::after {
  transform: translateY(0);
  opacity: 1;
}

/* The wave supplies the colour, so hold the base fill steady. */
.button:hover {
  background-color: var(--color-action);
}

.button--light:hover {
  background-color: var(--color-surface-raised);
}

/* --- Reason rows and service cards: lighting up --------------
   A soft highlight rises through the panel and the whole thing
   lifts a little, so it reads as switching on rather than
   just changing colour. */
.row,
.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.row:hover,
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.875rem 1.75rem rgb(74 53 16 / 0.18);
}

/* Rows carry the hover on the whole panel, but only the summary
   should feel clickable. */
.row[open] {
  transform: none;
}

/* --- Disclosure panel ----------------------------------------
   GSAP animates the height, so the panel starts closed and
   clipped rather than display:none. */
.row__panel {
  overflow: hidden;
}

.row summary::after {
  transition: transform 320ms var(--ease-out-quint), opacity 320ms ease;
}

/* --- Images: scale and pop ----------------------------------- */
.case__figure,
.portrait__photo {
  transition: transform 520ms var(--ease-out-quint),
              box-shadow 520ms var(--ease-out-quint);
}

.case {
  display: block;
  border-radius: 1.25rem;
}

.case:hover .case__figure,
.case:focus-visible .case__figure {
  transform: scale(1.035) translateY(-6px);
  box-shadow: 0 1.5rem 3rem rgb(18 18 18 / 0.22);
}

/* --- Portraits: flip to a back face --------------------------- */
.flip {
  margin: 0;
  perspective: 1200px;
}

.flip__inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 700ms var(--ease-out-quint);
}

.portrait:hover .flip__inner,
.portrait:focus-within .flip__inner {
  transform: rotateY(180deg);
}

.flip__face {
  padding: 0.875rem 0.875rem 3.25rem;
  border-radius: 0.375rem;
  background-color: var(--color-surface-raised);
  box-shadow: 0 0.75rem 1.75rem rgb(0 0 0 / 0.16);
  text-align: center;
  backface-visibility: hidden;
}

.flip__face--back {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.5rem;
  padding: 1.75rem;
  transform: rotateY(180deg);
  /* The story on the back is written by hand, the way notes usually
     end up on a polaroid; the front caption keeps the body face. */
  font-family: var(--font-hand);
}

/* The back of a team card: the story, then the name and the
   specialty set in the brand's neon orange. */
.portrait__bio {
  font-size: var(--text-note);
  line-height: var(--leading-normal);
  color: var(--color-ink);
  max-width: none;
}

.portrait__name,
.portrait__specialty {
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  line-height: var(--leading-tight);
  color: var(--color-orange-neon);
  max-width: none;
}

/* On a phone the back of the polaroid is read as ordinary copy, so it
   is set in the body face; the handwritten note is kept for desktop. */
@media (max-width: 40rem) {
  .flip__face--back {
    font-family: var(--font-body);
  }
}

/* --- Section head rule: drawn in on scroll -------------------- */
.section-head__rule {
  transform-origin: left center;
}

/* --- Process timeline ---------------------------------------- */
.steps {
  position: relative;
}

/* --- Entrance defaults ----------------------------------------
   The hero entrance is a CSS animation, so it starts with the
   stylesheet at first paint instead of waiting for the scripts.
   `--hero-i` (set in the markup) keeps the original rhythm: a
   120ms delay, then 90ms between the blocks, in power3.out. */
.js [data-hero] {
  opacity: 0;
  transform: translateX(46px);
  animation: hero-in 0.9s cubic-bezier(0.215, 0.61, 0.355, 1) both;
  animation-delay: calc(0.12s + var(--hero-i, 0) * 0.09s);
}

@keyframes hero-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Arriving under a page wipe: the wipe is the entrance, so the
   snapshot must catch the block at rest. */
.js.vt-arrive [data-hero] {
  animation: none;
  opacity: 1;
  transform: none;
}

/* Everything else that fades up on scroll is armed by the script. */
.js [data-reveal] {
  opacity: 0;
}

/* =============================================================
   Reduced motion: keep the state changes, drop the travel.
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .js [data-hero] {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .js [data-reveal] {
    opacity: 1;
  }

  .button__wave,
  .button__wave i {
    transition: none;
  }

  .row:hover,
  .card:hover {
    transform: none;
  }

  .flip__inner {
    transition-duration: 1ms;
  }
}

/* =============================================================
   PAGE TRANSITIONS
   Cross-document View Transitions: the browser runs these only when
   moving between pages of this site (links, back/forward), never on
   a first visit or a reload. Browsers without support simply load
   the next page as before.

   The opt-in (@view-transition { navigation: auto }) is not here: it
   lives in each page's <head>, before this stylesheet. Chrome can
   check for it during the reveal without waiting for external CSS,
   and when it misses the rule the transition is skipped — which read
   as an intermittent failure.

   Both wipes (angle 270deg) travel up the screen. Leaving page:
   fades, rises 30% of its height, and is erased from the bottom
   edge upwards (its mask is anchored to the top and shrinks).
   Arriving page: after 0.5s, fades in from 30% below and is
   revealed from the bottom edge upwards (its mask is anchored to
   the bottom and grows).
   ============================================================= */
:root {
  --page-ease: cubic-bezier(0.73, 0, 0.33, 1);
  --page-duration: 0.5s;
  --page-exit-delay: 0s;
  --page-enter-delay: 0.1s;
  --page-shift: 30%;
}

@keyframes page-exit {
  to {
    opacity: 0;
    transform: translate(0, calc(-1 * var(--page-shift))) scale(1);
    -webkit-mask-size: 100% 0%;
    mask-size: 100% 0%;
  }
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translate(0, var(--page-shift)) scale(1);
    -webkit-mask-size: 100% 0%;
    mask-size: 100% 0%;
  }
}

::view-transition-old(root),
::view-transition-new(root) {
  /* A solid mask, resized in height: the wipe. */
  -webkit-mask-image: linear-gradient(#000, #000);
  mask-image: linear-gradient(#000, #000);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center bottom;
  mask-position: center bottom;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  /* The default cross-fade blend would brighten the overlap. */
  mix-blend-mode: normal;
  animation-timing-function: var(--page-ease);
  animation-duration: var(--page-duration);
}

::view-transition-old(root) {
  -webkit-mask-position: center top;
  mask-position: center top;
  animation-name: page-exit;
  animation-delay: var(--page-exit-delay);
  animation-fill-mode: both;
}

::view-transition-new(root) {
  animation-name: page-enter;
  animation-delay: var(--page-enter-delay);
  /* Hidden during its delay, not flashed in first. */
  animation-fill-mode: both;
}

/* =============================================================
   7. CARD COLOUR SYSTEM + OPEN STATE
   Each family declares one surface colour; heading, body and
   badge are mixed from it, so a hover only has to restate the
   surface and every tone follows.
   ============================================================= */
.row,
.card {
  --row-ink: color-mix(in srgb, var(--row-bg) 20%, #fff);
  --row-muted: color-mix(in srgb, var(--row-bg) 78%, #fff);
  --card-badge: color-mix(in srgb, var(--row-bg) 58%, #000);
  background-color: var(--row-bg);
  color: var(--row-ink);
  transition: background-color 380ms var(--ease-out-quint),
              transform 380ms var(--ease-out-quint),
              box-shadow 380ms var(--ease-out-quint);
}

.row--amber,
.card--amber {
  --row-bg: var(--color-yellow);
  --row-bg-hover: var(--color-yellow-hover);
  /* The light card inverts: dark ink instead of a white mix. */
  --row-ink: #4a3510;
  --row-muted: color-mix(in srgb, #4a3510 78%, var(--row-bg));
  --card-badge: #94733e;
}

.row--terracotta,
.card--terracotta { --row-bg: var(--color-orange); --row-bg-hover: var(--color-orange-hover); }

.row--rust,
.card--rust { --row-bg: var(--color-red); --row-bg-hover: var(--color-red-hover); }

.row--teal,
.card--teal { --row-bg: var(--color-blue); --row-bg-hover: var(--color-blue-hover); }

.row--faq {
  --row-bg: var(--color-accent);
  --row-bg-hover: var(--color-orange-hover);
  --row-ink: #fff;
}

/* Hover warms the surface rather than washing it out — but only
   while the row is closed. Once a row is open it is at rest: the
   cursor that just opened it should not repaint it, so the open row
   keeps its own colour and only its closed siblings warm up. */
.row:not([open]):hover,
.card:hover {
  --row-bg: var(--row-bg-hover);
}

.card--amber:hover { --card-badge: #a5823f; }

/* Body copy: soft white on the dark families, full ink on yellow. */
.row--terracotta, .card--terracotta,
.row--rust, .card--rust,
.row--teal, .card--teal { --body-ink: rgb(255 255 255 / 0.8); }

.row--amber, .card--amber { --body-ink: #4a3510; }

.row__num { color: var(--row-muted); }
.row__title { color: var(--row-ink); }
.row__body { color: var(--body-ink, var(--row-ink)); }

.card__body { color: var(--body-ink, var(--row-muted)); }
.card--amber .card__title { color: #4a3510; }

/* A lighter lip along the right and bottom edge of every card. */
.card {
  --card-lip: inset -5px -5px 0 5px rgb(255 255 255 / 0.2);
  box-shadow: var(--card-lip);
}

.card:hover {
  box-shadow: var(--card-lip), 0 0.875rem 1.75rem rgb(74 53 16 / 0.18);
}

/* =============================================================
   Service card: open state
   Within a row the open card takes three quarters and its
   neighbour gives way. flex-basis animates, so the resize is a
   single CSS transition rather than a layout script.
   ============================================================= */
.cards {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.card {
  flex: 0 1 calc(50% - 0.65625rem);
  /* Same timing as the nav bar's contract and expand, so the card
     resize and the neighbour giving way settle at one rhythm. */
  transition: flex-basis var(--nav-duration) var(--nav-ease),
              background-color 380ms var(--ease-out-quint),
              transform 380ms var(--ease-out-quint),
              box-shadow 380ms var(--ease-out-quint);
}

.card.is-open { flex-basis: calc(75% - 0.65625rem); }
.card.is-collapsed { flex-basis: calc(25% - 0.65625rem); }

/* An open card shouldn't also lift on hover. */
.card.is-open:hover { transform: none; }

.card__expand {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--card-toggle, 2.875rem);
  height: var(--card-toggle, 2.875rem);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: var(--card-badge);
  color: #fff;
  cursor: pointer;
  transition: background-color 320ms ease, transform 320ms var(--ease-out-quint);
}

.card__expand:hover { transform: scale(1.08); }

.card__glyph {
  grid-area: 1 / 1;
  width: var(--card-glyph, 1.25rem);
  height: var(--card-glyph, 1.25rem);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 220ms ease, transform 320ms var(--ease-out-quint);
}

.card__glyph--close { opacity: 0; transform: rotate(-45deg); }

.card.is-open .card__expand {
  background-color: var(--color-red-neon);
  transform: none;
}

.card.is-open .card__glyph--open { opacity: 0; transform: rotate(45deg); }
.card.is-open .card__glyph--close { opacity: 1; transform: rotate(0); }

/* The badge gives up its place to the heading when open. */
.card__badge {
  transition: opacity 240ms ease, transform 320ms var(--ease-out-quint);
}

/* The badge is removed rather than faded, so the toggle slides to
   the start of the row on a collapsed card, as in the design. */
.card.is-open .card__badge,
.card.is-collapsed .card__badge {
  display: none;
}

/* On an open card the toggle is lifted out of the flow and laid over
   the top corner of the artwork, so title, copy and image get the
   card's full height side by side. */
.card.is-open .card__top {
  position: absolute;
  top: 1.875rem;
  right: 1.875rem;
  z-index: 2;
}

.card__main {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  min-width: 0;
  min-height: 0;
}

.card__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Closed: the heading sits low. Open: it rises to the top. */
.card__title {
  margin-top: 2.375rem;
  transition: margin-top var(--nav-duration) var(--nav-ease);
}

.card.is-open .card__title {
  margin-top: 0;
  /* The closed card fixes the measure to force a two-line heading;
     open, there is room for it to run the full column. */
  max-width: none;
}

/* Collapsed neighbours keep only the heading, pushed to the foot. */
/* Stretch so margin-top:auto has room to push the heading down. */
.card.is-collapsed .card__main { align-items: stretch; }
.card.is-collapsed .card__title { margin-top: auto; }

.card.is-collapsed .card__body,
.card.is-collapsed .card__art { display: none; }

/* Long copy and artwork are clipped shut until the card opens. */
.card__detail {
  overflow: hidden;
  height: 0;
}

/* The expanded copy runs a step smaller and tighter than the
   summary, which is what lets it sit inside the fixed card height. */
.card__body--full {
  margin-top: 1.125rem;
  font-size: 0.9375rem;  /* 15px */
  line-height: 1.38;
  max-width: none;
}

/* Only the short summary steps aside; the long copy is also a
   .card__body, so exclude it explicitly. */
.card.is-open .card__body:not(.card__body--full) { display: none; }

.card__art {
  flex: none;
  width: min(15rem, 32%);
  height: auto;
  opacity: 0;
  display: none;
}

.card.is-open .card__art {
  display: block;
  /* Fit the artwork to the height the card has left rather than
     letting its aspect ratio push the card taller. */
  height: 100%;
  width: auto;
  max-width: 40%;
  object-fit: contain;
}

/* --- Phone: stacked cards ---------------------------------------
   No badge; a larger toggle shares the first row with a heading that
   is always two lines tall, exactly the toggle's height. Opening
   rolls the long copy down, then the artwork below it. */
@media (max-width: 60rem) {
  .card {
    --card-toggle: 3rem;
    --card-glyph: 1.375rem;
    flex-basis: 100%;
    min-height: 0;
  }

  .card.is-open,
  .card.is-collapsed { flex-basis: 100%; }

  .card__badge,
  .card.is-collapsed .card__badge { display: none; }

  .card__top,
  .card.is-open .card__top {
    position: absolute;
    top: 1.875rem;
    right: 1.875rem;
    z-index: 2;
  }

  .card__main {
    flex-direction: column;
    align-items: stretch;
  }

  .card__title,
  .card.is-open .card__title,
  .card.is-collapsed .card__title {
    margin-top: 0;
    max-width: none;
    padding-right: calc(var(--card-toggle) + 1rem);
    /* Line height is pinned to half the toggle so two lines always
       match it; the type itself shrinks on very narrow phones. */
    font-size: min(calc(var(--card-toggle) / 2), 6.4vw);
    line-height: calc(var(--card-toggle) / 2);
  }

  /* One half of the heading per line: always exactly two. */
  .card__title > span {
    display: block;
    white-space: nowrap;
  }

  /* The rule runs the full card width, under the toggle as well. */
  .card__title { padding-bottom: 1rem; }

  /* Stacked cards have no neighbour to shrink, so a collapsed
     card is just a normal one. */
  .card.is-collapsed .card__body { display: block; }

  .card__body { max-width: none; }

  .card.is-open .card__art {
    width: 100%;
    max-width: none;
    height: auto;
    margin-top: 1.75rem;
  }

  .card__main { gap: 0; }
}

.u-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .card__title,
  .card__glyph,
  .card__badge { transition-duration: 1ms; }
}

/* =============================================================
   8. NAVIGATION
   One bar serves every state. Rest: brand, links, and the call to
   action pushed to the far end. Scrolled: the bar contracts around
   the brand and the burger. The links stay in the flex row and are
   squeezed out by the shrinking bar while they fade, and the burger
   grows in, so the contents move with the bar instead of jumping.

   The glass is drawn by .nav__bar::before rather than the bar
   itself. Opening the menu grows only that layer, down and out,
   so the brand and the burger never move; the links then fade in
   inside the grown glass.
   ============================================================= */
:root {
  /* Over the cream page this composites to exactly #e7e2da, the bar
     colour of the design; over content it frosts. */
  --nav-bar: rgb(202 203 204 / 0.35);
  --nav-glass-blur: 14px;
  --nav-height: 4rem;       /* 64px */
  --nav-pad: 1.5625rem;     /* 25px from the bar's ends to the pills */
  --nav-gap: 0.8125rem;     /* 13px between pills */
  --nav-top: 0.75rem;
  --text-nav: 1.125rem;     /* 18px */
  --nav-pill: 2.1rem;       /* 33.6px, pill and burger height */
  --nav-duration: 560ms;
  --nav-ease: cubic-bezier(0.65, 0, 0.35, 1);

  /* Open menu panel */
  --nav-panel-width: 22rem;
  --nav-menu-link: 3.125rem;  /* 50px */
  --nav-menu-gap: 0.625rem;   /* 10px */
  --nav-panel-duration: 420ms;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* The header itself is only as tall as the bar plus its offset,
     so it never blocks clicks on the page behind it. */
  height: 0;
}

.site-nav {
  /* Same box as .container, so the bar lines up with the content. */
  max-width: var(--container-max);
  margin-inline: auto;
  padding-top: var(--nav-top);
  padding-inline: var(--container-gutter);
}

.nav__bar {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: var(--nav-gap);
  width: 100%;
  height: var(--nav-height);
  margin-inline: auto;
  padding: 0 var(--nav-pad);
  transition: width var(--nav-duration) var(--nav-ease);

  /* Open panel geometry. The link count is set by motion.js; the
     width is never narrower than the bar, and never wider than the
     screen allows. */
  --nav-panel-w: max(100%, min(var(--nav-panel-width), 100vw - 2 * var(--container-gutter)));
  --nav-panel-h: calc(
    var(--nav-height)
    + var(--nav-link-count, 3) * var(--nav-menu-link)
    + (var(--nav-link-count, 3) - 1) * var(--nav-menu-gap)
    + var(--nav-pad) * 0.6);
}

/* Liquid glass: a thin tinted pane that blurs and saturates the page
   behind it. */
.nav__bar::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  border-radius: calc(var(--nav-height) / 2);
  background-color: var(--nav-bar);
  -webkit-backdrop-filter: blur(var(--nav-glass-blur)) saturate(180%);
  backdrop-filter: blur(var(--nav-glass-blur)) saturate(180%);
  /* Closing: wait for the links to fade before folding up. */
  transition: height var(--nav-panel-duration) var(--nav-ease) 80ms,
              left var(--nav-panel-duration) var(--nav-ease) 80ms,
              right var(--nav-panel-duration) var(--nav-ease) 80ms,
              border-radius var(--nav-panel-duration) var(--nav-ease) 80ms;
}

/* --- Pills ---------------------------------------------------- */
.nav__brand,
.nav__link {
  display: inline-flex;
  align-items: center;
  height: var(--nav-pill);
  padding-inline: 1.125rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-nav);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  letter-spacing: -0.05em;
  white-space: nowrap;
  transition: background-color 240ms ease, color 240ms ease;
}

.nav__brand {
  flex: none;
  justify-content: center;
  /* The stretched pill grows and folds at the panel's own pace, so
     opening and closing read as one movement. */
  transition: background-color 240ms ease,
              color 240ms ease,
              flex-grow var(--nav-panel-duration) var(--nav-ease);
}

.nav__link {
  background-color: transparent;
  color: var(--color-ink);
}

/* The brand is the only filled pill in the bar; all the section
   links, Kontakt included, stay transparent until the hover. */
.nav__brand {
  background-color: var(--color-accent);
  color: #fff;
}

/* The section pills fill with the neon orange on hover; the filled
   brand and the burger keep the same neon orange. */
.nav__link:hover {
  background-color: var(--color-orange-neon);
  color: #fff;
}

.nav__brand:hover,
.nav__burger:hover {
  background-color: var(--color-orange-neon);
  color: #fff;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--nav-gap);
  /* Zero basis and min-width so the row gives way as the bar shrinks;
     the clip margin leaves room for focus rings. */
  flex: 1 1 0;
  min-width: 0;
  overflow: clip;
  overflow-clip-margin: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  /* Expanding: fade back in once the bar has made some room. */
  transition: opacity 280ms ease 200ms,
              margin var(--nav-duration) var(--nav-ease),
              visibility 0s linear 0s;
}

/* The call to action sits at the far end of the bar. */
.nav__cta {
  margin-left: auto;
}

/* --- Burger ----------------------------------------------------
   On a wide screen at rest the burger is present but folded to
   nothing: zero width, and a negative margin that cancels its flex
   gap, so it can grow in rather than pop in. */
.nav__burger {
  display: grid;
  place-items: center;
  flex: none;
  width: 0;
  height: var(--nav-pill);
  margin-left: calc(-1 * var(--nav-gap));
  padding: 0;
  border: 0;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--color-accent);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.6);
  transition: width var(--nav-duration) var(--nav-ease),
              margin var(--nav-duration) var(--nav-ease),
              opacity 160ms ease,
              transform 220ms var(--ease-out-quint),
              visibility 0s linear var(--nav-duration),
              background-color 260ms ease;
}

/* Three rules that fold into a cross when the menu is open. */
.nav__bars,
.nav__bars::before,
.nav__bars::after {
  display: block;
  width: 0.9375rem;
  height: 2px;
  border-radius: 2px;
  background-color: currentColor;
  transition: transform 320ms var(--ease-out-quint), opacity 200ms ease;
}

.nav__bars {
  position: relative;
}

.nav__bars::before,
.nav__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav__bars::before { top: -0.3125rem; }
.nav__bars::after { top: 0.3125rem; }

/* --- Scrolled: contract around brand + burger ------------------
   --nav-collapsed is measured by motion.js so the bar ends exactly
   around its contents; the fallback covers a no-JS visit. */
.site-nav.is-stuck .nav__bar {
  width: var(--nav-collapsed, 12.5rem);
}

/* The squeezed-out links also give back their share of the flex
   gap, so brand and burger end one gap apart. They leave the flex
   row entirely rather than merely hiding: a hidden flex item still
   takes free space, and when the close released them mid-transition
   they grabbed a share and the brand pill snapped shorter. */
.site-nav.is-stuck .nav__links {
  position: absolute;
  left: 0;
  right: 0;
  margin-right: calc(-1 * var(--nav-gap));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* Collapsing: fade out first, hide once invisible. */
  transition: opacity 160ms ease,
              margin var(--nav-duration) var(--nav-ease),
              visibility 0s linear 160ms;
}

.site-nav.is-stuck .nav__burger,
.site-nav.is-open .nav__burger {
  width: var(--nav-pill);
  margin-left: 0;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: width var(--nav-duration) var(--nav-ease),
              margin var(--nav-duration) var(--nav-ease),
              opacity 260ms ease 180ms,
              transform 340ms var(--ease-out-quint) 180ms,
              visibility 0s linear 0s,
              background-color 260ms ease;
}

.site-nav.is-stuck .nav__burger:hover {
  transform: scale(1.06);
}

/* --- Open: the glass grows down and out; nothing else moves -----
   .is-closing keeps the panel layout for the links while they fade,
   so they never flash back into the row on their way out. */
.site-nav.is-open .nav__bar::before {
  left: calc((100% - var(--nav-panel-w)) / 2);
  right: calc((100% - var(--nav-panel-w)) / 2);
  height: var(--nav-panel-h);
  border-radius: 2rem;
  transition: height var(--nav-panel-duration) var(--nav-ease),
              left var(--nav-panel-duration) var(--nav-ease),
              right var(--nav-panel-duration) var(--nav-ease),
              border-radius var(--nav-panel-duration) var(--nav-ease);
}

/* With the menu open the bar takes the panel's own width (never
   narrower than the collapsed bar), so the top row spans the glass:
   the brand pill runs the room between the paddings and the burger
   keeps its size in the right corner. Links and glass are measured
   from the bar, so neither moves while the bar widens. */
.site-nav.is-open .nav__bar,
.site-nav.is-closing .nav__bar {
  width: max(var(--nav-collapsed, 12.5rem),
             min(var(--nav-panel-width), 100vw - 2 * var(--container-gutter)));
}

/* The brand pill and the exit symbol hold their open state while the
   links fade (.is-closing), and in the contracted bar the pill keeps
   filling the row for the whole width transition (.is-folding), so the
   bar edge follows the exit symbol instead of trailing behind it. */
.site-nav.is-open .nav__brand,
.site-nav.is-closing .nav__brand,
.site-nav.is-folding.is-stuck .nav__brand {
  flex-grow: 1;
}

.site-nav.is-open .nav__links,
.site-nav.is-closing .nav__links {
  position: absolute;
  top: var(--nav-height);
  left: calc((100% - var(--nav-panel-w)) / 2 + var(--nav-pad) * 0.6);
  /* Sized by width rather than a right edge so the row's own
     margin-right can stay as it is: resetting it here used to be
     animated back by the collapsed row once the panel closed,
     dragging the burger sideways with it. */
  width: calc(var(--nav-panel-w) - var(--nav-pad) * 1.2);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--nav-menu-gap);
}

.site-nav.is-closing .nav__links {
  transition: opacity 120ms ease, visibility 0s linear 120ms;
}

/* The links wait for the glass to reach its size. */
.site-nav.is-open .nav__links {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 240ms ease calc(var(--nav-panel-duration) - 80ms),
              visibility 0s linear 0s;
}

.site-nav.is-open .nav__cta,
.site-nav.is-closing .nav__cta {
  margin-left: 0;
}

.site-nav.is-open .nav__link,
.site-nav.is-closing .nav__link {
  display: flex;
  justify-content: center;
  width: 100%;
  height: var(--nav-menu-link);
  font-size: var(--text-body);
}

.site-nav.is-open .nav__burger,
.site-nav.is-closing .nav__burger {
  background-color: var(--color-red-neon);
}

/* The exit button lifts to a lighter red under the pointer. */
.site-nav.is-open .nav__burger:hover,
.site-nav.is-closing .nav__burger:hover {
  background-color: var(--color-red-light);
}

.site-nav.is-open .nav__bars,
.site-nav.is-closing .nav__bars {
  background-color: transparent;
}

.site-nav.is-open .nav__bars::before,
.site-nav.is-closing .nav__bars::before {
  transform: translateY(0.3125rem) rotate(45deg);
}

.site-nav.is-open .nav__bars::after,
.site-nav.is-closing .nav__bars::after {
  transform: translateY(-0.3125rem) rotate(-45deg);
}

/* --- Phone: burger is always on ---------------------------------- */
@media (max-width: 60rem) {
  /* The links never sit in the row here: they live in the panel
     position, hidden, so opening only has to fade them in. */
  .nav__links,
  .site-nav.is-stuck .nav__links {
    position: absolute;
    top: var(--nav-height);
    left: calc((100% - var(--nav-panel-w)) / 2 + var(--nav-pad) * 0.6);
    right: calc((100% - var(--nav-panel-w)) / 2 + var(--nav-pad) * 0.6);
    flex-direction: column;
    align-items: stretch;
    gap: var(--nav-menu-gap);
    margin: 0;
  }

  /* No transition on this rule: the close fade belongs to
     .is-closing, and one here would replay whenever the viewport
     crosses the breakpoint, flashing the panel open on the way in. */
  .site-nav:not(.is-open) .nav__links {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .nav__cta {
    margin-left: 0;
  }

  .nav__link {
    display: flex;
    justify-content: center;
    width: 100%;
    height: var(--nav-menu-link);
    font-size: var(--text-body);
  }

  /* The burger is always out; auto margin keeps it at the right
     edge, so it simply rides the edge in as the bar contracts.
     Resting here it only ever changes colour, so the in-row
     transitions are dropped: crossing the breakpoint should swap
     the row for the burger at once, not replay a delayed grow-in. */
  .nav__burger,
  .site-nav.is-stuck .nav__burger,
  .site-nav.is-open .nav__burger {
    width: var(--nav-pill);
    margin-left: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav:not(.is-stuck):not(.is-open) .nav__burger {
    transition: background-color 260ms ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav__bar,
  .nav__bar::before,
  .nav__links,
  .nav__bars,
  .nav__bars::before,
  .nav__bars::after,
  .nav__burger,
  .site-nav.is-stuck .nav__links,
  .site-nav.is-stuck .nav__burger,
  .site-nav.is-open .nav__bar::before,
  .site-nav.is-open .nav__links,
  .site-nav.is-closing .nav__links,
  .site-nav.is-open .nav__burger,
  .site-nav:not(.is-stuck):not(.is-open) .nav__burger { transition-duration: 1ms; transition-delay: 0s; }
}

/* =============================================================
   9. FOOTER
   Full-bleed terracotta with the wordmark set large enough to
   run the width of the container.
   ============================================================= */
.site-footer {
  max-height: 100vh;
  margin-top: 5rem;
  padding-block: 4.5rem 2rem;
  background-color: var(--color-accent);
  color: var(--color-surface);
  overflow: hidden; /* the wordmark is sized to the edge */
}

.footer__lead {
  font-family: var(--font-heading);
  font-size: var(--text-footer-lead);
  font-weight: var(--weight-bold);
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-display);
  color: var(--color-surface);
  max-width: 43rem; /* holds the three-line break of the design */
}

.footer__lead + .footer__lead {
  margin-top: 2.6875rem; /* the blank line in the original */
}

.footer__mail {
  margin-top: 2.25rem;
  font-size: var(--text-byline);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  color: var(--color-surface);
  max-width: none;
}

.footer__mail a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: color 200ms ease;
}

.footer__mail a:hover {
  color: var(--ripple-3);
}

/* The wordmark art spans the container at every width. The width is
   capped against the viewport height so it never crowds the mail under
   it, and the height then follows from .logo's aspect ratio. max-width
   is reset because `p` ships with a 34ch measure. */
.footer__wordmark {
  --logo-height: auto;
  width: min(100%, calc(40vh * 4.2757)); /* 3970.1 / 928.56 */
  max-width: none;
  color: var(--color-surface);
}

/* --- The footer is a screen of its own ------------------------
   It closes the page the way the hero opens it: exactly one viewport
   tall, with the wordmark and the mail centred together. The source
   rule capped the block at 100vh and would clip that, so the cap is
   lifted — min-height lets it grow if content ever needs more. */
.site-footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: none;
  padding-block: 3rem; /* symmetric, so the centring is true */
}

/* Full width, so the container keeps its own max-width and gutters
   while the flex column centres it. */
.site-footer > .container {
  width: 100%;
}

.footer__legal {
  margin-top: 3.5rem;
  font-size: var(--text-body);
  color: rgb(255 255 255 / 0.5);
  max-width: none;
}

/* Storm's footer reverses the house colours: beige ground, ink text
   all the way through. */
.page-storm .site-footer {
  background-color: var(--color-surface);
  color: var(--color-ink);
}

.page-storm .footer__lead,
.page-storm .footer__mail,
.page-storm .footer__wordmark,
.page-storm .footer__legal {
  color: var(--color-ink);
}

.page-storm .footer__mail a:hover {
  color: var(--color-accent);
}

@media (max-width: 60rem) {
  .site-footer {
    margin-top: 3rem;
    /* Symmetric, because the footer is a centred viewport screen now:
       an uneven padding would tilt the whole block. */
    padding-block: 3rem;
  }

  .footer__wordmark {
    margin-top: 0; /* the centring handles the space */
  }

  .footer__legal {
    margin-top: 2rem;
  }
}

/* =============================================================
   10. BRAND MARK
   The supplied wordmark is a one-colour SVG. It is applied as a
   mask and painted with currentColor, so one file serves the dark
   bar, the cream page and the terracotta footer — and a palette
   change needs no second asset.

   Size it with --logo-height; width follows from the artwork's
   aspect ratio. Assets: documentation/supplyos-logo-wordmark.svg
   ============================================================= */
.logo {
  display: block;
  height: var(--logo-height, 1.125rem);
  aspect-ratio: 3970.1 / 928.56; /* the wordmark's own viewBox */
  background-color: currentColor;
  -webkit-mask: url("documentation/supplyos-logo-wordmark.svg") no-repeat center / contain;
  mask: url("documentation/supplyos-logo-wordmark.svg") no-repeat center / contain;
}

/* The mark alone, with no lettering — the bar and the favicon. */
.logo--mark {
  aspect-ratio: 770.8 / 906.62;
  -webkit-mask-image: url("documentation/supplyos-logo-typemark.svg");
  mask-image: url("documentation/supplyos-logo-typemark.svg");
}

/* The lettering alone, with no mark — the hero.
   The utility's height/width logic is the same; only the artwork and
   its ratio change, so any lockup drops straight in. */
.logo--word {
  aspect-ratio: 3206.86 / 928.56;
  -webkit-mask-image: url("documentation/supplyos-logo-word.svg");
  mask-image: url("documentation/supplyos-logo-word.svg");
}

/* The bar's brand is a round bubble at rest: its width is pinned to the
   bar's own height and the shared padding is removed, so the pill's
   border-radius lands as a circle. When the menu opens, flex-grow
   stretches the same element into the panel's header and the radius reads
   as a pill again. */
.nav__brand {
  width: var(--nav-pill);
  padding-inline: 0;
}

/* Two lockups in one element: the mark alone while the bar is at rest,
   the full wordmark once the panel is open and there is room for it. */
.nav__brand-full {
  display: none;
}

.site-nav.is-open .nav__brand-mark,
.site-nav.is-closing .nav__brand-mark {
  display: none;
}

.site-nav.is-open .nav__brand-full,
.site-nav.is-closing .nav__brand-full {
  display: block;
}

.site-nav.is-open .nav__brand .logo,
.site-nav.is-closing .nav__brand .logo {
  --logo-height: 1rem; /* 16px tall, about 68px wide */
}

/* Sized to match the burger's 15px bars, which it sits opposite. */
.nav__brand .logo {
  --logo-height: 1.1875rem; /* 19px tall, about 16px wide */
}

/* =============================================================
   11. CALCULATOR
   The savings panel and the form field it borrows. Shared by any
   page that includes calculator.js.
   ============================================================= */

.field {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

/* The message block carries the extra slack the design leaves
   before the actions. */
.field--message {
  padding-bottom: 1rem;
}

.field__label {
  font-size: var(--text-field);
  font-weight: var(--weight-medium);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-tight);
  color: var(--color-ink-muted);
}

.field__input {
  width: 100%;
  height: 2.75rem; /* 44px */
  padding: 0 0.875rem;
  border: 1px solid #e8e8e8;
  border-radius: 0.625rem;
  background-color: #f9f9f9;
  color: #202020;
  font-family: var(--font-body);
  font-size: var(--text-field);
  font-weight: var(--weight-regular);
  line-height: var(--leading-snug);
  transition: background-color 200ms cubic-bezier(0.44, 0, 0.56, 1),
              border-color 200ms cubic-bezier(0.44, 0, 0.56, 1);
}

.field__input--area {
  height: 9.875rem; /* 158px */
  padding: 0.875rem;
  resize: vertical;
}

.field__input::placeholder {
  color: #bbb;
}

.field__input:focus {
  outline: none;
  border-color: #ffdb73;
  background-color: #fff;
}

.promise {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 1.875rem);
  border-radius: 1.75rem;
  background-color: var(--color-surface-raised);
  box-shadow:
    0 0.0375rem 0.0375rem -0.078rem rgb(0 0 0 / 0.18),
    0 0.625rem 1.875rem rgb(18 18 18 / 0.08);
}

/* On the home page the calculator stands on its own under the
   services, so the panel takes the cards' measure. */
.calculator {
  padding-block: 0 4.5rem;
}

.calculator .promise {
  max-width: 66.875rem;
}

.calc {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.calc__title {
  font-family: var(--font-heading);
  font-size: var(--text-h4);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  color: var(--color-ink);
}

.calc__fields {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

/* One compact row per control: label, slider, and an editable value. */
.calc__control {
  display: grid;
  grid-template-columns: auto minmax(5rem, 1fr) 6rem;
  align-items: center;
  gap: 0.25rem 0.75rem;
}

.calc__control .field__label {
  font-size: var(--text-caption);
  white-space: nowrap;
}

.calc__value {
  width: 100%;
  height: 2.25rem;
  padding-inline: 0.625rem;
  text-align: right;
  font-size: 0.9375rem;
}

.calc__lift {
  justify-self: end;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--color-accent);
}

/* The range is drawn as a 6px track with the accent as the fill and a
   white-ringed thumb, so it reads as part of the same design system. */
.calc__range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-width: 0;
  height: 1.25rem;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.calc__range::-webkit-slider-runnable-track {
  height: 0.375rem;
  border-radius: var(--radius-pill);
  background-image: linear-gradient(to right,
      var(--color-accent) 0 var(--fill, 50%),
      var(--color-track) var(--fill, 50%) 100%);
}

.calc__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: -0.375rem;
  border: 2px solid #fff;
  border-radius: 50%;
  background-color: var(--color-accent);
  box-shadow: 0 0.0625rem 0.1875rem rgb(18 18 18 / 0.25);
  transition: background-color 140ms ease, transform 140ms ease;
}

/* The filled bar and the circle light up neon orange together while
   the slider is hovered, dragged or focused, using the brand's neon
   hover pair. */
.calc__range:hover::-webkit-slider-runnable-track,
.calc__range:active::-webkit-slider-runnable-track,
.calc__range:focus-visible::-webkit-slider-runnable-track {
  background-image: linear-gradient(to right,
      var(--color-orange-neon) 0 var(--fill, 50%),
      var(--color-track) var(--fill, 50%) 100%);
}

.calc__range:hover::-webkit-slider-thumb,
.calc__range:active::-webkit-slider-thumb,
.calc__range:focus-visible::-webkit-slider-thumb {
  background-color: var(--color-orange-neon);
  transform: scale(1.12);
}

.calc__range::-moz-range-track {
  height: 0.375rem;
  border-radius: var(--radius-pill);
  background-color: var(--color-track);
}

.calc__range::-moz-range-progress {
  height: 0.375rem;
  border-radius: var(--radius-pill);
  background-color: var(--color-accent);
}

.calc__range::-moz-range-thumb {
  width: 1.125rem;
  height: 1.125rem;
  border: 2px solid #fff;
  border-radius: 50%;
  background-color: var(--color-accent);
  box-shadow: 0 0.0625rem 0.1875rem rgb(18 18 18 / 0.25);
  transition: background-color 140ms ease, transform 140ms ease;
}

.calc__range:hover::-moz-range-progress,
.calc__range:active::-moz-range-progress,
.calc__range:focus-visible::-moz-range-progress {
  background-color: var(--color-orange-neon);
}

.calc__range:hover::-moz-range-thumb,
.calc__range:active::-moz-range-thumb,
.calc__range:focus-visible::-moz-range-thumb {
  background-color: var(--color-orange-neon);
  transform: scale(1.12);
}

.calc__range:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 0.125rem;
  border-radius: var(--radius-pill);
}

.calc__ticks {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  margin-top: -0.125rem;
  font-size: 0.6875rem;
  color: var(--color-ink-subtle);
}

/* Narrow phones: stack each control, label and value first, then the
   slider underneath, so nothing overflows the panel. */
@media (max-width: 32rem) {
  .calc__control {
    grid-template-columns: minmax(0, 1fr) 6rem;
  }

  .calc__control .field__label {
    white-space: normal;
  }

  .calc__value,
  .calc__lift {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .calc__range {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .calc__ticks {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}

.calc__result {
  margin-top: 0.125rem;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  background-color: var(--color-surface);
}

.calc__gain {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-accent);
}

.calc__gain-label {
  font-size: var(--text-caption);
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-normal);
  color: var(--color-ink-muted);
}

.calc__year {
  margin-top: 0.375rem;
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  color: var(--color-ink);
}

/* =============================================================
   THE PAGE BELOW THE HERO
   The hero sets a compact register, so everything under it runs a step
   smaller and tighter. The tokens are re-declared on the sections
   themselves, which cascades to every descendant — so re-tuning the
   whole page is a matter of editing this one block.

   Each ramp is written out in full rather than derived, because the
   originals are viewport-based clamps.
   ============================================================= */
main > section:not(.hero),
.site-footer > .container {
  /* The stock cap is 1920px, which at a 1440px window spends 350px on
     outer margin before the gutters even apply. 1376px keeps the text
     off the edges without hollowing out the middle. Raise it and the
     measure grows; lower it and the whole page draws in. */
  --container-max: 86rem;
}

main > section:not(.hero) {
  --text-h2:            clamp(1.1875rem, 0.839rem + 1.429vw, 2rem);      /* 19 → 32px */
  --text-h3:            clamp(1.0625rem, 0.955rem + 0.440vw, 1.3125rem);  /* 17 → 21px */
  --text-h4:            clamp(1.0625rem, 0.990rem + 0.297vw, 1.25rem);    /* 17 → 20px */
  --text-display-md:    clamp(1.3125rem, 1.071rem + 0.989vw, 1.875rem);   /* 21 → 30px */
  --text-metric:        clamp(1.5rem, 1.071rem + 1.758vw, 2.5rem);        /* 24 → 40px */
  --text-metric-label:  clamp(1rem, 0.946rem + 0.220vw, 1.125rem);        /* 16 → 18px */
  --text-card-title:    clamp(1.0625rem, 0.982rem + 0.330vw, 1.25rem);    /* 17 → 20px */
  --text-step-title:    clamp(1.1875rem, 1.054rem + 0.549vw, 1.5rem);     /* 19 → 24px */
  --text-faq-title:     clamp(1rem, 0.946rem + 0.220vw, 1.125rem);        /* 16 → 18px */
  /* Body copy runs at the stock size — the reduced scale made it a touch
     small to read at length. It is still the small end of standard. */
  --text-body:          clamp(1.125rem, 1.098rem + 0.110vw, 1.1875rem);   /* 18 → 19px */
  --text-byline:        clamp(1rem, 0.945rem + 0.220vw, 1.125rem);        /* 16 → 18px */
  --text-note:          clamp(0.9375rem, 0.884rem + 0.220vw, 1.0625rem);  /* 15 → 17px */

  /* Tighter rhythm, so the smaller type does not float in the old
     spacing. */
  --section-rhythm: 3.25rem;
}

/* The service cards set their own size, so the token has to reach them. */
.card__body {
  font-size: var(--text-body);
}

/* The section rhythm and the two-column gutter follow the type down. */
.problem,
.services,
.tiles-section,
.process,
.cases,
.team,
.faq {
  padding-block: var(--section-rhythm, 4.5rem);
}

.split {
  gap: 3rem;
}

.numbers {
  gap: 2rem 1.75rem;
}

.deal {
  gap: 2.5rem;
}

/* The footer is below the hero too, and closes the page rather than
   announcing it, so it steps down as well. */
.site-footer {
  --text-footer-lead: clamp(1.25rem, 0.982rem + 1.099vw, 1.875rem); /* 20 → 30px */
}


/* --- Page gutter ---------------------------------------------
   Every section below the hero is held further from the edges than
   the hero itself, so the page reads calmer as soon as you scroll.
   The hero keeps the base gutter. Change --container-gutter-page to
   adjust every section at once. */
main > section:not(.hero),
.site-footer > .container {
  --container-gutter: var(--container-gutter-page);
}

/* =============================================================
   12. HOMEPAGE COMPONENTS
   ============================================================= */

/* --- Numbers and the product picker ---------------------------
   The "tallene først" section: three figures across the top, then the
   earnings calculator beside a product picker. The picker owns the
   product list — the price shown on a slide is the cost price the
   calculators use, so a price is stated in exactly one place.
   --------------------------------------------------------------- */
.numbers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 2rem;
  margin-top: 0;
}

/* The mockup and the calculator share one white surface, so the block
   reads as a single card rather than two objects side by side. The panel
   itself comes from .promise, which .deal is tagged with in the markup;
   the grid is set here.

   The heading that used to sit inside the card now sits above it, on the
   page — see .panel-title — so the card holds only the picture and the
   calculator. Both columns start on the same line, which is what makes
   the first slider sit level with the top of the picture. */
.deal {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1.5rem 4.125rem; /* row, then the .split 66px gutter */
  align-items: start;
}

.picker {
  grid-column: 1;
  grid-row: 1;
}

.earn {
  grid-column: 2;
  grid-row: 1;
}

/* --- The panel s heading --------------------------------------
   On the page, above the white card, so the card is purely the picture
   and the calculator. Same typography as the platform section s heading,
   so the two read as the page s two top-level titles. */
.panel-title {
  margin-bottom: 0;
  font-family: var(--font-heading);
  font-size: var(--text-hero-compact);
  font-weight: var(--weight-bold);
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-display);
  color: var(--color-accent);
}

/* On wide screens the picture takes two thirds of the card and the
   calculator a third: the products and their piece prices lead,
   the numbers follow. */
@media (min-width: 75rem) {
  .deal {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }
}

/* The third line of a figure is a full sentence, so it drops to body
   size and takes the muted ink rather than the label's weight. */
.numbers .metric__source {
  font-size: var(--text-body);
  line-height: var(--leading-normal);
}

/* --- Earnings panel ------------------------------------------
   The calculator sits in the left column, which is about half the
   page, so each control stacks its label over the slider instead of
   running them side by side. Same markup as the savings panel. */
.earn {
  gap: 1rem;
  /* space-between spreads the blocks over the column s height, so the
     sliders sit at the top and the result hugs the bottom. */
  align-self: start;
  justify-content: space-between;
}

/* From 80rem the column takes the picture s height — and only the
   picture s. The picture column is twice this one (2fr/1fr), so half
   of this column s width is the picture s height, and the same 37rem
   cap applies to both; that makes the two equal at every width. With
   the height fixed to the picture, space-between only has the slack
   the copy leaves — gaps stay tight instead of stretching — and the
   result box ends exactly on the picture s bottom edge. Below 80rem
   the copy is taller than the picture, so the column simply runs its
   natural height. */
@media (min-width: 80rem) {
  .earn {
    align-self: start;
    /* width: 100% keeps the column at its track width; without it the
       height cap transfers through the ratio and narrows the column. */
    width: 100%;
    aspect-ratio: 1 / 2;
    max-height: 36rem;
  }
}

.earn .calc__control {
  grid-template-columns: minmax(0, 1fr) 6rem;
  gap: 0.375rem 0.75rem;
}

.earn .calc__control .field__label {
  grid-column: 1;
  grid-row: 1;
  white-space: normal;
}

.earn .calc__value,
.earn .calc__lift {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

.earn .calc__range {
  grid-column: 1 / -1;
  grid-row: 2;
}

.earn .calc__ticks {
  grid-column: 1 / -1;
  grid-row: 3;
}

/* Names the product the figure is based on, and describes it, so the
   number is never a mystery when the picker moves. The description is
   the slide's, printed here rather than on the picture. */
.earn__cost {
  margin-top: 0.25rem;
  font-size: var(--text-caption);
  line-height: var(--leading-relaxed);
  color: var(--color-ink-muted);
  max-width: none;
}

.earn__cost strong {
  font-weight: var(--weight-semibold);
  color: var(--color-ink);
}

.earn__desc {
  margin-top: 0.375rem;
  max-width: none;
}

/* --- Product picker ------------------------------------------
   A scroll-snap carousel. The track is the scroller, so swiping works
   natively on touch and the arrows only nudge it along.

   The column reads from the top down: the mockup (uncropped, with the
   controls overlaid on its floor), the product name and price just
   under it, and the facts pinned to the bottom — so the tags line up
   with the result box in the calculator beside them.

   Only the picture is inside the track. Name, price and tags are single
   elements outside it that follow whichever slide is showing, which
   keeps one set of controls and one accessible name for the carousel.
   The first product is written into them in the markup, so a visitor
   with no JavaScript still sees a complete card.
   --------------------------------------------------------------- */
.picker {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0; /* lets the track shrink instead of forcing a wrap */
}

/* Wraps only the pictures, so the controls can sit over them. */
.picker__stage {
  position: relative;
}

.picker__track {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.picker__track::-webkit-scrollbar {
  display: none;
}

/* Honours the reduced-motion setting for the arrow jumps. */
@media (prefers-reduced-motion: no-preference) {
  .picker__track {
    scroll-behavior: smooth;
  }
}

.picker__slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
}

.picker__figure {
  margin: 0;
  /* Square, like the source files: nothing is cropped. A letterbox crop
     would take the model's legs, and anchoring it anywhere but the top
     would take the head — the sources have almost no headroom. */
  aspect-ratio: 1 / 1;
  border-radius: 1.5rem;
  /* Placeholder ground while the mockup loads. */
  background-color: #e6e4de;
  overflow: hidden;
}

.picker__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Name and price share one baseline row, so the price sits at the right
   edge of the column rather than dropping to its own line. */
.picker__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.picker__name {
  font-family: var(--font-body);
  font-size: var(--text-card-title);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--color-ink);
}

.picker__price {
  flex: none;
  margin-left: auto;
  font-family: var(--font-heading);
  font-size: var(--text-h4);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-display);
  color: var(--color-accent);
  max-width: none;
}

/* The facts sit on the column's floor, which is what lines them up with
   the result box in the panel beside them. */
.picker__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding: 0;
  list-style: none;
}

/* Product facts read as quiet labels rather than brand marks: a neutral
   hairline and muted ink, so they inform without shouting. */
.tag--meta {
  min-height: 1.75rem;
  padding-inline: 0.8125rem;
  box-shadow: inset 0 0 0 1px var(--color-border);
  background-color: transparent;
  color: var(--color-ink-muted);
  font-size: var(--text-caption);
  font-weight: var(--weight-regular);
}

/* --- Controls, over the picture ------------------------------
   The dots and arrows sit on the mockup itself. They are an ink wash
   and a cream fill rather than the pale track grey, so they read on
   both the studio ground and the shirt. */
.picker__overlay {
  position: absolute;
  z-index: 1;
  inset-inline: 0;
  bottom: 0;
  padding: 0 1.5rem 1.25rem;
  /* A soft floor under the text; invisible on the studio ground,
     it keeps the name and price readable where the garment reaches
     the bottom edge. */
  background: linear-gradient(to top,
    rgb(255 255 255 / 0.94),
    rgb(255 255 255 / 0.62) 55%,
    rgb(255 255 255 / 0));
  border-radius: 0 0 1.5rem 1.5rem; /* matches the picture's corners */
}

.picker__head {
  margin-bottom: 0.75rem;
}

.picker__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.picker__dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}

.picker__dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: color-mix(in srgb, var(--color-ink) 28%, transparent);
  cursor: pointer;
  transition: background-color 200ms ease, transform 200ms ease;
}

.picker__dot[aria-selected="true"] {
  background-color: var(--color-accent);
  transform: scale(1.25);
}

.picker__dot:hover {
  background-color: var(--color-accent-strong);
}

.picker__arrows {
  display: flex;
  gap: 0.5rem;
}

.picker__arrow {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  /* Translucent white so the picture reads through, with a hairline to
     hold the shape on a pale mockup. */
  background-color: rgb(255 255 255 / 0.72);
  box-shadow: inset 0 0 0 1px rgb(18 18 18 / 0.12);
  color: var(--color-ink);
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease;
}

.picker__arrow:hover {
  background-color: var(--color-accent);
  color: #fff;
}

.picker__arrow svg {
  width: 1rem;
  height: 1rem;
}

/* Narrow: the figures go back to one column and the panel and picker
   stack, so both keep a readable measure. */
@media (max-width: 60rem) {
  .numbers {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .tiles {
    grid-template-columns: 1fr;
  }

  /* One column: the explicit placement has nowhere to point, and the
     calculator is free to be as tall as its contents need. */
  .picker,
  .earn {
    grid-column: 1;
    grid-row: auto;
  }

  .earn {
    aspect-ratio: auto;
    justify-content: flex-start;
  }

  .deal {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}


/* --- Tiles ---------------------------------------------------
   A plain grid of linked panels, used by the "bygget til" section
   where each tile is one audience. Add or remove a tile in the
   markup and the grid reflows on its own. */
.tiles {
  display: grid;
  /* Fixed two columns rather than auto-fit: there are exactly four
     tiles and they are designed as a 2x2. auto-fit gave three columns
     at some widths and left one tile stranded on its own row. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3125rem; /* the cards' 21px gutter */
  max-width: 66.875rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.875rem;
  border-radius: 1.5rem;
  background-color: var(--color-surface-raised);
  box-shadow:
    0 0.0375rem 0.0375rem -0.078rem rgb(0 0 0 / 0.14),
    0 0.625rem 1.5rem rgb(18 18 18 / 0.07);
  transition: transform 320ms var(--ease-out-quint),
              box-shadow 320ms var(--ease-out-quint);
}

.tile:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0.0375rem 0.0375rem -0.078rem rgb(0 0 0 / 0.14),
    0 1rem 2rem rgb(18 18 18 / 0.12);
}

.tile__title {
  font-family: var(--font-body);
  font-size: var(--text-card-title);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--color-ink);
}

.tile__body {
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  color: var(--color-ink-muted);
  max-width: none;
}

.tile__link {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
  color: var(--color-accent);
}

.tile__link::after {
  content: " →";
}

/* --- Closing call to action ----------------------------------
   Reuses the calculator panel so the two read as the same surface. */
.final {
  padding-block: 0 4.5rem;
}

.final .promise {
  align-items: flex-start;
  gap: 1.25rem;
  max-width: 66.875rem;
}

.final .button {
  margin-top: 0.25rem;
}

.final__note {
  font-size: var(--text-caption);
  line-height: var(--leading-normal);
  color: var(--color-ink-subtle);
  max-width: none;
}

/* The tiles section carries the same rhythm as its neighbours. */
.tiles-section {
  padding-block: 4.5rem;
}

/* --- Accordion rows ------------------------------------------
   A two-line summary: the heading, and the line that says what the row
   covers. Both stay visible once it opens; the longer text arrives
   underneath. Same <details> mechanics as the FAQ, so it works with no
   JavaScript and only one row is open at a time.

   Everything here runs a step below the page's body copy — this is a
   dense block of four rows, and the smaller setting keeps it sleek
   rather than shouty. The tracking is pulled in a touch as well. */
.row__lead {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.reasons .row__title {
  font-size: clamp(1.0625rem, 0.982rem + 0.330vw, 1.25rem); /* 17 → 20px */
  letter-spacing: -0.02em;
}

.row__byline,
.row__box,
.row__facts li {
  font-size: 0.9375rem;   /* 15px */
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--body-ink, var(--row-muted));
  max-width: 62ch;
}

/* The row's own paragraph, and the facts under it. */
.row__box {
  margin: 0 2.25rem 1.125rem;
}

/* The facts are a proper bullet list, set in from the paragraph above,
   so label, copy and facts each get their own left edge. The marker hangs
   outside the text, so a wrapped line stays under the words rather than
   under the dot. */
.row__facts {
  margin: 0 2.25rem 1.75rem clamp(2.5rem, 5vw, 3.75rem);
  padding: 0 0 0 1.125rem;
  list-style: disc;
  max-width: 68ch;
}

.row__facts li {
  margin-top: 0.625rem;
}

.row__facts li:first-child {
  margin-top: 0;
}

.row__facts li::marker {
  color: var(--row-ink);
}

.row__facts strong {
  font-weight: var(--weight-semibold);
  color: var(--row-ink);
}

/* The number up front follows the heading down a step, so it does not
   outgrow the line it sits on. */
.reasons .row__num {
  font-size: clamp(1.0625rem, 0.982rem + 0.330vw, 1.25rem); /* 17 → 20px */
}

/* The two labels the bento panel used — "Sådan virker det" and "Det får
   du" — kept so the open row and the card it replaced read the same way. */
.row__label {
  margin: 0 2.25rem 0.5rem;
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  color: var(--row-ink);
}

.row__box + .row__label {
  margin-top: 1.5rem;
}

/* A hairline between the title block and the copy ----------------
   Opened, the row is two parts: the title + byline up in the summary,
   and the text below. The gap alone did not read as a split, so the
   first label carries a quiet rule that spans exactly the text column
   — inset like everything else, so it stops well inside the rounded
   corners. It sits on the label rather than the summary, so it needs
   no extra markup and works with or without the script's panel
   wrapper. currentColor keeps it in the row's own ink, at a strength
   that stays quiet on all four colour families. */
.row[open] .row__label:first-of-type {
  /* The source's `p` rule caps every paragraph at 34ch; lift it here or
     the rule would stop a third of the way across. */
  max-width: none;
  margin-top: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, currentColor 26%, transparent);
}

/* --- Several paragraphs in one answer ------------------------
   The delivery and payout answers lead with a bold line and then
   explain. The paragraphs sit nearer each other than the row's own
   bottom padding, so the parts read as one block. Only the last
   paragraph keeps the full spacing, so single-paragraph answers are
   unchanged. */
.row__body:not(:last-child) {
  margin-bottom: 0.75rem;
}

/* --- The platform section clears the panel above --------------
   The calculator card and the accordion's headline were sitting almost
   on top of each other; this lifts the section clear, scaled so a phone
   gets proportionally less. */
.services {
  margin-top: clamp(2.75rem, 6vw, 4.5rem);
}

/* --- The open heading sits on the toggle's line ---------------
   The heading's line box is made the toggle's own height, so its text
   centres on the same axis as the × and the rule lands on the toggle's
   bottom edge. The heading therefore always starts at the same place at
   the top of the card, open or closed.

   The rule is inset from the right by the toggle's width plus a gap, so
   the two never overlap — the rule stops just short of the cross. */
/* The toggle's own size. It is only declared inside the phone layout in
   the source, so the desktop values have to be given one — and a min-width
   query keeps this from overriding the phone's 3rem. */
@media (min-width: 60.0625rem) {
  .card {
    --card-toggle: 2.875rem;
  }
}

.card.is-open .card__title {
  line-height: var(--card-toggle);
  padding-bottom: 0;
}

.card.is-open .card__title::after {
  right: calc(var(--card-toggle) + 1.25rem);
}

/* --- The lead section heading ---------------------------------
   The platform section opens the page below the hero, so its heading
   runs at the hero's own size with a byline under it, and no rule. The
   mark is a small cube rather than the old dot — it echoes the brand's
   own geometry instead of being a stray bullet. */
.section-head--display {
  align-items: flex-start;
  gap: 0.75rem;
}

.section-head--display .section-head__title {
  font-family: var(--font-heading);
  font-size: var(--text-hero-compact);
  font-weight: var(--weight-bold);
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-display);
  color: var(--color-accent);
}

.section-head__mark {
  flex: none;
  /* Optically level with the cap height of the heading's first line. */
  margin-top: 0.5rem;
  color: var(--color-accent);
}

.section-head__mark svg {
  width: 1.125rem;
  height: 1.125rem;
}

.section-head__byline {
  margin-top: 1rem;
  font-size: var(--text-byline);
  line-height: var(--leading-normal);
  color: var(--color-ink-muted);
  max-width: 58ch;
}

/* --- The figures band ----------------------------------------
   Three figures, centred, sitting just under the hero. Not a screen of
   its own — the band simply carries a generous top and bottom margin, so
   the panel that follows comes up close behind it. */
.results {
  padding-block: clamp(3.5rem, 11vh, 8rem);
  text-align: center;
}

/* Centred as a group and inside each cell, so the three read as one
   block rather than three left-aligned columns. */
.numbers {
  justify-items: center;
  text-align: center;
}

.numbers .metric {
  align-items: center;
}

/* The band's closing line: what the subscription buys — the platform,
   the production and the design — and what it does not. Centred under
   the three figures; body-sized, because the figures are the shout. */
.numbers__lead {
  margin: clamp(2rem, 5vh, 3.5rem) auto 0;
  font-size: var(--text-byline);
  line-height: var(--leading-normal);
  color: var(--color-ink);
  max-width: 62ch;
}

/* The panel's own section only needs top rhythm: the heading sits directly
   above the card, and the card carries its own bottom edge. */
.panel-section {
  padding-block: var(--section-rhythm, 4.5rem) 0;
}

/* --- One card height, open or closed --------------------------
   The expand used to grow the card from about 263px to 344px, which
   pushed the whole row — and every section under it — down the page.
   That is the jump. One height for both states means the panel opens
   into space the card already occupies.

   Two steps, because the panel needs more room when the open card is
   narrower: the facts simply wrap to more lines between 60 and 75rem
   (960–1200px) than they do on a wide screen.

                        measured need    set to
     above 75rem            312px         20rem  (320px)
     60–75rem               356px         23rem  (368px)
     below 60rem            —             free

   Below 60rem the two boxes stack, so no single height fits, and
   motion.js tweens the panel open there — which is what the phone path
   was written for.

   This block sits at the end of the stylesheet, so it wins over both the
   source's fixed 16.25rem and the media query earlier in the file. If you
   raise anything in .card__boxes, these numbers go up with it.
   ----------------------------------------------------------------- */
.card {
  height: 20rem;
  min-height: 0;
}

/* The heading sits at the top of the card's copy area in both states,
   so expanding does not move it. In the closed state the badge occupies
   the top row, so "the top" there is directly under it — the heading
   still rises by the badge's height when the card opens, which is the
   one shift a top-row badge makes unavoidable. Move the badge beside the
   toggle if that rise has to go as well. */
.card:not(.is-open) .card__title {
  margin-top: 0.75rem;
}

@media (max-width: 75rem) {
  .card {
    height: 23rem;
  }
}

@media (max-width: 60rem) {
  .card {
    height: auto;
    min-height: 18rem;
  }
}

/* --- Expanded card: two text boxes ----------------------------
   The panel that opens used to hold an illustration on the right. It now
   holds two text columns instead: how it works, and the facts. The split
   is uneven because the facts run longer than the lead-in.
   Both boxes take the card family's ink, so they follow the colour. */
/* The panel has to fit the fixed card height, so the split leans toward
   the facts — they run longest — and the type is a step down from the
   summary. Widen the measure and the lines drop; the panel gets
   shorter. */
.card__boxes {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 1.25rem 1.75rem;
  align-items: start;
  /* Only a hairline's worth of air: the panel should read as carrying on
     straight from the rule above it. */
  margin-top: 0.5rem;
}

.card__box-label {
  margin-bottom: 0.25rem;
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  color: var(--row-ink);
}

/* The first paragraph and the list items share their type, so the two
   boxes read as one block of copy split in two. */
.card__box,
.card__list li {
  font-size: 0.9375rem;  /* 15px */
  line-height: 1.48;
  color: var(--body-ink, var(--row-muted));
}

.card__box {
  max-width: 42ch;
}

.card__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card__list li {
  max-width: none;
}

/* The term before the colon carries the card's own ink, so each fact
   is scannable without a bullet. */
.card__list strong {
  font-weight: var(--weight-semibold);
  color: var(--row-ink);
}

/* Stacked, the two boxes read better one after the other. */
@media (max-width: 60rem) {
  .card__boxes {
    grid-template-columns: 1fr;
  }
}

/* --- The per-shirt margin ------------------------------------
   What the customer keeps on a single sale. It gets its own figure with
   the arithmetic beside it, so the headline number is never a mystery
   when the picker moves. */
.calc__margin {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.625rem;
  padding-top: 0.625rem;
  border-top: 1px solid var(--color-border);
  max-width: none;
}

.calc__margin-value {
  font-family: var(--font-heading);
  font-size: var(--text-h4);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-display);
  color: var(--color-accent);
}

.calc__margin-label {
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  color: var(--color-ink);
}

.calc__margin-math {
  flex-basis: 100%;
  font-size: var(--text-caption);
  color: var(--color-ink-muted);
}


/* --- The catalogue note ---------------------------------------
   The picker holds three products, not the whole shop. A quiet,
   honest line in the space between the controls and the result,
   set off by a hairline so it reads as a footnote rather than a
   control. It is the third flex child of .earn, so space-between
   keeps the result on the picture's bottom edge. */
.earn__catalog {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, var(--color-ink) 12%, transparent);
}

.earn__catalog-title {
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  color: var(--color-ink);
}

.earn__catalog-text {
  margin-top: 0.375rem;
  font-size: var(--text-caption);
  line-height: var(--leading-normal);
  color: var(--color-ink-muted);
  max-width: 46ch;
}

/* =============================================================
   13. CONTACT — the closing call to action
   One line, one address. The "Kontakt os" buttons in the bar and
   the hero point here, and the button itself is the mailto.
   ============================================================= */
.contact {
  padding-block: clamp(4rem, 10vw, 7rem);
  text-align: center;
}

.contact__title {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: var(--weight-bold);
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-display);
  color: var(--color-accent);
}

.contact__text {
  margin: 1.125rem auto 0;
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  color: var(--color-ink);
  max-width: 46ch;
}

.contact__button {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}

/* --- The panel head ------------------------------------------
   The title on the left, a lead line on the right at paragraph
   size — the same two-column title row the .split sections use.
   Stacks under 60rem. */
.panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem 4.125rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.panel-lead {
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  color: var(--color-ink-muted);
  max-width: 44ch;
  padding-bottom: 0.25rem; /* optical seat against the title's last line */
}

/* Stacked, the lead reads under the title. */
@media (max-width: 60rem) {
  .panel-head {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* --- The panel title, split in weight -------------------------
   The first line runs in Satoshi Medium, the last keeps the bold:
   the range is stated, the promise presses — the same shape on the
   panel title and the platform title. The rest of the display
   titles stay all-bold. */
.panel-title > span:first-child,
.section-head--display .section-head__title > span:first-child {
  font-weight: var(--weight-medium);
}

/* The tag row is the floor of the picture column, and the CTA docks
   in the same band; a little more air above it gives the button room
   without growing the card. */
.picker__tags {
  margin-top: 1.5rem;
}

/* --- The panel's closing CTA ----------------------------------
   Bottom right of the card: a row of its own under the result box,
   aligned to the card's right edge. It links to the contact section
   with the address. */
.panel-cta {
  justify-self: end;
}

@media (min-width: 60rem) {
  .panel-cta {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    align-self: start;
    margin-top: clamp(1rem, 2vw, 1.25rem);
  }
}

/* Where the picture column is the taller one, the card has a band of
   air on the right, under the result box. The CTA docks in it —
   bottom edge on the same line as the tags — and the card keeps its
   height instead of growing. */
@media (min-width: 80rem) {
  .panel-cta {
    grid-row: 1;
    align-self: end;
    margin-top: 0;
    /* A few px down into the card's padding, so the button clears the
       result box without growing the card. */
    margin-bottom: -0.5rem;
  }

  /* With the copy shorter than the picture, the catalogue note joins
     the result box at the bottom: controls up top, outcome below,
     one clean gap between. */
  .earn__catalog {
    margin-top: auto;
  }
}

/* --- The product's own line -----------------------------------
   Right under its title in the picker: the description belongs with
   the product, not with the numbers. */
.picker__desc {
  margin-top: 0.375rem;
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  color: var(--color-ink-muted);
  max-width: 56ch;
}

/* --- Paragraph copy: a notch tighter --------------------------
   Body-sized paragraphs run at −0.02em across the page; the .prose
   intro keeps its own display tracking. */
main > section p:not(.prose) {
  letter-spacing: -0.02em;
}

/* --- Tighter kerning in the panel -----------------------------
   The small copy runs in wide faces with no tracking of its own; the
   design's tight step reads closer and calmer across the whole card. */
.earn .field__label,
.earn .calc__gain-label,
.earn__cost,
.earn__desc,
.earn__catalog-title,
.earn__catalog-text,
.calc__margin-label,
.calc__margin-math,
.picker__price-note {
  letter-spacing: var(--tracking-tight); /* −0.02em */
}

/* --- The picker's price says what it is -----------------------
   A small right-aligned line under the figure: the piece price is
   the garment with one print, not a blank. Set in the body face so
   it reads as a footnote to the number above it. */
.picker__price {
  text-align: right;
}

.picker__price-note {
  font-weight: var(--weight-medium);
  color: var(--color-ink);
}

/* --- The picker now leads -------------------------------------
   Two thirds of the card, so the square is capped: it stops growing
   at 40rem and the picture crops instead of towering. The crop is
   anchored to the top, where the model's head is — the sources have
   almost no headroom, so any other anchor takes it. */
.picker__figure img {
  object-position: center top;
}

@media (min-width: 75rem) {
  .picker__figure {
    /* width: 100% keeps the column edge; without it the ratio would
       transfer the height cap to the width and pillarbox the picture. */
    width: 100%;
    max-height: 36rem;
  }
}

/* =============================================================
   14. PHONE PASS
   Phone-only tuning, collected in one place so the phone layout
   can be re-tuned without hunting through the stylesheet.
   ============================================================= */

/* Bigger display type. The hero's h1, the panel title and the
   platform title all share --text-hero-compact; on a phone the old
   floor left them barely above body size. The section h2 gets the
   same treatment, and body copy runs a touch tighter. */
@media (max-width: 47.5rem) {
  :root {
    --text-hero-compact: clamp(1.75rem, -0.119rem + 5.500vw, 2.75rem); /* 28 → 44px */
  }

  /* The hero sentence breaks where the design says so on a phone:
     Vi bygger din webshop, / trykker dit merchandise og / sender det
     direkte ud. On wider screens the spans flow and wrap in two. */
  .hero__title > span {
    display: block;
  }

  main > section {
    --leading-normal: 1.35;
  }

  /* Same specificity as the token block above, so this later rule
     wins: 24px minimum instead of 19. */
  main > section:not(.hero) {
    --text-h2: clamp(1.5rem, 0.839rem + 1.429vw, 2rem); /* 24 → 32px */
  }

  /* The design's own line breaks stay on the phone — the source's
     collapse is re-blocked here — except the hero byline, which
     collapses so the tall hero keeps its room. */
  .lines > span {
    display: block;
  }

  .hero__sub > span {
    display: inline;
  }
}

/* --- Accordion on the phone -----------------------------------
   The panel content follows the summary's own 1.25rem inset — the
   source shrinks the summary at 60rem but not the panel, so the
   copy below the title sat 16px further in than the title itself.
   The number and the × ride with the title's first line instead of
   centring against a three-line block (which parked the number
   beside the byline), and the rows get a little more air. */
@media (max-width: 60rem) {
  .row summary {
    align-items: flex-start;
    min-height: 0;
    padding-block: 1.25rem;
  }

  .row summary::after {
    align-self: flex-start;
  }

  .row__num {
    align-self: flex-start;
    margin-top: 0.125rem;
  }

  .reasons .row__title {
    font-size: 1.1875rem; /* 19px, was 17px */
  }

  .row__label,
  .row__box,
  .row__facts,
  .row[open] .row__label:first-of-type {
    margin-inline: 1.25rem;
  }

  .row__facts {
    margin-left: 2.25rem;
    margin-bottom: 1.5rem;
  }

  .row__byline,
  .row__box,
  .row__facts li {
    line-height: 1.45;
  }
}

