/* Anett Egsgaard — site styles. Plain CSS, no build step.
   One paper throughout: Dyb Blomme with Bladløv on top. Mos only as a fine accent line.
   Kamilleblomst is kept for text over photographs and for hover states. */

@font-face { font-family: "La Roue"; src: url("../fonts/LaRoueSerif-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Eleven Eleven"; src: url("../fonts/ElevenEleven-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Signature"; src: url("../fonts/Signature_font.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }

:root {
  --plum: #2d131e;        /* Dyb Blomme */
  --mos: #9c9242;         /* Mos */
  --brick: #8f382d;       /* Bladløv */
  --brick-ink: #b9523c;   /* Bladløv lifted one step so headings read on Dyb Blomme */
  --brick-text: #de9785;  /* Bladløv tint for running text on Dyb Blomme */
  --cream: #f4f6e4;       /* Kamilleblomst */
  --rail: clamp(92px, 11vw, 164px);
  --gut: clamp(20px, 4.2vw, 64px);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --io: cubic-bezier(.65, 0, .35, 1);  /* the slow-fast-slow wipe used by the menu and page changes */
  --serif: "La Roue", "Cormorant Garamond", Georgia, serif;
  --label: "Eleven Eleven", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--brick) var(--plum); background: var(--plum); }
body {
  margin: 0; background: var(--plum) url("../tex/plum.webp") center / 900px; color: var(--brick-text);
  font-family: var(--sans); font-weight: 300; font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--brick); color: var(--cream); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.t-mos :focus-visible { outline-color: var(--plum); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--cream); color: var(--plum); padding: 10px 14px; }
.skip:focus { top: 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- paper surfaces ---------- */
.t-plum { --ink: var(--brick-ink); --text: var(--brick-text); --rule: rgba(185, 82, 60, .42); --root-c: rgba(143, 56, 45, .3);
  background: var(--plum) url("../tex/plum.webp") center / cover; color: var(--text); }
.t-mos { --ink: var(--plum); --text: var(--plum); --rule: rgba(45, 19, 30, .46); --root-c: rgba(45, 19, 30, .11);
  background: var(--mos) url("../tex/mos.webp") center / cover; color: var(--text); }
.t-mos ::selection { background: var(--plum); color: var(--cream); }

/* roots: always enlarged so they run across the whole section, never a small ornament */
.roots::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--root-c);
  -webkit-mask: var(--root) var(--root-pos, 50% 0) / var(--root-size, 185% auto) no-repeat; mask: var(--root) var(--root-pos, 50% 0) / var(--root-size, 185% auto) no-repeat; }
.roots > * { position: relative; z-index: 1; }

/* the logo mark, pressed into the paper */
.mark { display: block; aspect-ratio: 281 / 280.5; background: var(--brick) url("../tex/brick.webp") center / cover;
  -webkit-mask: url("../logo/mono_plum.svg") center / contain no-repeat; mask: url("../logo/mono_plum.svg") center / contain no-repeat; }
.mark-wrap { display: block; filter: drop-shadow(0 1px 0 rgba(255, 225, 205, .14)) drop-shadow(0 -1px 1px rgba(0, 0, 0, .55)); }
.t-mos .mark { background: var(--plum) url("../tex/plum.webp") center / cover; }
.mark-bg { position: absolute; pointer-events: none; width: min(62vw, 760px); right: -9%; bottom: -16%; opacity: .1; }
.mark-bg .mark { background: var(--plum); }

/* ---------- type ---------- */
.display, .lead, .menu-nav a, .sit-list .t, .steps h3, .services li, .faq summary, .stepper li { font-variant-ligatures: none; font-feature-settings: "liga" 0, "clig" 0, "dlig" 0, "calt" 0; }
.display { font-family: var(--serif); font-weight: 400; text-transform: uppercase; line-height: .98; letter-spacing: -.012em; text-wrap: balance; color: var(--ink); }
.d1 { font-size: clamp(2.05rem, 4.3vw, 4.2rem); }
.d2 { font-size: clamp(2.3rem, 5.2vw, 5.2rem); }
.d3 { font-size: clamp(1.5rem, 2.4vw, 2.25rem); line-height: 1.06; }
.label { font-family: var(--label); font-weight: 500; font-size: .75rem; letter-spacing: .07em; text-transform: uppercase; line-height: 1.5; }
.lead { font-family: var(--serif); font-size: clamp(1.45rem, 2.2vw, 2.1rem); line-height: 1.24; letter-spacing: -.005em; text-wrap: pretty; color: var(--ink); }
.t-plum .lead { color: var(--text); }
.body { max-width: 34em; }
.body p + p { margin-top: 1em; }
.signature { font-family: "Signature", var(--serif); font-size: clamp(2.6rem, 4.6vw, 4rem); line-height: 1; color: var(--ink); }

/* ---------- buttons and links ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 26px;
  background: var(--brick) url("../tex/brick.webp") center / cover; color: var(--cream); border: 0; border-radius: 0; cursor: pointer;
  font-family: var(--label); font-weight: 500; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  transition: transform 160ms var(--ease-out), color 200ms ease 80ms;
}
/* a Kamilleblomst sheet wipes across from the left and leaves to the right */
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--cream) url("../tex/kamille.webp") center / cover; transform: scaleX(0); transform-origin: right; transition: transform 420ms var(--io); }
.btn:active { transform: scale(.97); }
.arrow { display: inline-block; white-space: nowrap; text-decoration: none; color: var(--ink); font-family: var(--label); font-weight: 500; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.arrow::before { content: ""; display: inline-block; vertical-align: middle; margin-right: 12px; width: 18px; height: 1px; background: currentColor; transition: width 420ms var(--io); }
/* letters change colour one after another, left to right, in and out */
.sw span { transition: color 150ms linear; transition-delay: calc(var(--i) * 26ms); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { color: var(--plum); }
  .btn:hover::before { transform: scaleX(1); transform-origin: left; }
  .arrow:hover::before { width: 40px; }
  a:hover .sw span, a.sw:hover span, button.sw:hover span { color: var(--cream); }
}

/* ---------- rail, logo, fixed contact ---------- */
.rail {
  position: fixed; inset: 0 auto 0 0; width: var(--rail); z-index: 30;
  display: grid; grid-template-rows: auto 1fr; justify-items: center; padding: 26px 0;
  background: rgba(45, 19, 30, .58); -webkit-backdrop-filter: blur(22px) saturate(1.1); backdrop-filter: blur(22px) saturate(1.1);
  color: var(--brick-ink);
}
.rail-top { display: grid; justify-items: center; gap: 22px; }
.rail-mark { width: clamp(40px, 4.2vw, 58px); }
.rail-btn { background: none; border: 0; padding: 8px 10px; cursor: pointer; color: inherit; }
/* text in the column always reads normally, left to right: never rotated, never stacked letter by letter */
.rail-mid { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; padding: 0 10px; transition: opacity 240ms ease; }
.rail-mid.swap { opacity: 0; }
.rail-label { font-family: var(--label); font-weight: 500; font-size: .75rem; letter-spacing: .07em; text-transform: uppercase; line-height: 1.5; color: var(--brick-text); }
.rail-go { font-family: var(--label); font-weight: 500; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: 4px 8px; }
.rail-go { display: block; text-align: center; white-space: nowrap; }
.rail-go[hidden] { display: none; }
.rail-go::before { content: ""; display: block; margin: 0 auto 10px; width: 16px; height: 1px; background: currentColor; transition: width 420ms var(--io); }
@media (hover: hover) and (pointer: fine) { .rail-go:hover::before { width: 38px; } }

.logo {
  position: fixed; top: 26px; left: calc(var(--rail) + (100vw - var(--rail)) / 2); transform: translateX(-50%); z-index: 29;
  width: clamp(150px, 15vw, 200px); aspect-ratio: 1772.6 / 269.8; color: var(--brick-ink); transition: color 240ms ease, opacity 260ms ease;
}
/* the wordmark steps aside once the page moves, so it never sits on a heading */
.scrolled .logo { opacity: 0; pointer-events: none; }
.logo span { display: block; width: 100%; height: 100%; background: currentColor; -webkit-mask: url("../logo/word_plum.svg") center / contain no-repeat; mask: url("../logo/word_plum.svg") center / contain no-repeat; }
[data-tone="mos"] .logo { color: var(--plum); }
[data-tone="photo"] .logo { color: var(--cream); }
.cta-fixed { position: fixed; top: 16px; right: var(--gut); z-index: 29; min-height: 40px; padding: 0 22px; }

/* ---------- menu: the panel wipes in from the rail, as on the reference ---------- */
.menu { position: fixed; inset: 0; z-index: 40; display: grid; grid-template-columns: var(--rail) 1fr; visibility: hidden; }
.menu[data-state="open"], .menu[data-state="closing"] { visibility: visible; }
.menu-rail { background: var(--plum) url("../tex/plum.webp") center / cover; color: var(--brick-ink); display: grid; align-content: start; justify-items: center; gap: 22px; padding-top: 26px; }
.menu-panel { position: relative; --root: url("../roots/motif_04.svg"); --root-size: 150% auto; --root-pos: 50% 8%; --root-c: rgba(143, 56, 45, .28);
  background: var(--plum) url("../tex/plum.webp") center / cover; color: var(--brick-text);
  display: grid; grid-template-rows: 1fr auto; justify-items: center; padding: 90px var(--gut) 40px; overflow: hidden auto;
  clip-path: inset(0 100% 0 0); }
.menu[data-state="open"] .menu-panel { clip-path: inset(0); transition: clip-path 640ms var(--io); }
.menu[data-state="closing"] .menu-panel { clip-path: inset(0 0 0 100%); transition: clip-path 540ms var(--io); }
/* the roots grow down and outwards from the top of the screen while the menu is open */
@property --grow { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
.menu-panel.roots::before {
  --grow: 0%;
  -webkit-mask: var(--root) var(--root-pos) / var(--root-size) no-repeat, radial-gradient(ellipse 95% 100% at 50% 0, #000 calc(var(--grow) - 22%), transparent var(--grow));
  mask: var(--root) var(--root-pos) / var(--root-size) no-repeat, radial-gradient(ellipse 95% 100% at 50% 0, #000 calc(var(--grow) - 22%), transparent var(--grow));
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.menu[data-state="open"] .menu-panel.roots::before { --grow: 175%; transition: --grow 5200ms cubic-bezier(.33, .6, .3, 1) 380ms; }
.menu[data-state="closing"] .menu-panel.roots::before { --grow: 175%; }
.menu-nav { align-self: center; display: grid; justify-items: center; gap: .04em; }
.menu-nav a { font-family: var(--serif); text-transform: uppercase; text-decoration: none; font-size: clamp(2.7rem, 7.6vw, 6.4rem); line-height: .98; letter-spacing: -.012em; color: var(--brick-ink); }
.menu-foot { display: grid; justify-items: center; gap: 6px; color: var(--brick-ink); text-align: center; }

/* ---------- panels ---------- */
.panel { position: relative; min-height: 100svh; display: grid; overflow: hidden; }
.wrap { width: 100%; padding: clamp(112px, 15vh, 168px) var(--gut) clamp(72px, 11vh, 132px) calc(var(--rail) + var(--gut)); }
.inner { max-width: 1160px; margin-inline: auto; }

.panel--photo { color: var(--cream); background: var(--plum); align-items: center; }
.panel--photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel--photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(45, 19, 30, var(--veil, .46)); }
.panel--photo .wrap { position: relative; z-index: 2; text-align: center; }
.panel--photo .inner { display: grid; justify-items: center; gap: clamp(22px, 3.4vh, 36px); max-width: 980px; }
.panel--photo .display { color: var(--cream); }
.hero-sub { font-size: 1.0625rem; max-width: 31em; }
.panel--short { min-height: 78svh; }

/* offset photograph with the heading over its edge */
.offset { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 28px); align-items: start; }
.offset .photo { grid-column: 7 / 13; grid-row: 1 / span 3; overflow: hidden; }
.offset .photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.offset h2, .offset h1 { grid-column: 1 / 9; grid-row: 1; position: relative; z-index: 2; margin-top: clamp(24px, 8vh, 96px); }
.offset .copy { grid-column: 1 / 6; grid-row: 2; margin-top: clamp(28px, 5vh, 56px); display: grid; gap: 26px; justify-items: start; }
.offset--flip .photo { grid-column: 1 / 6; }
.offset--flip h2, .offset--flip h1 { grid-column: 5 / 13; }
.offset--flip .copy { grid-column: 7 / 13; }
.photo img { transition: transform 700ms var(--ease-out), filter 700ms ease-out; }

/* scrubbed paragraph: words go from quiet to full as you scroll */
.hl span { opacity: .3; transition: opacity 160ms linear; }
.hl span.on { opacity: 1; }

/* situations index */
.sit-list { border-top: 1px solid var(--rule); margin-top: clamp(36px, 6vh, 64px); }
.sit-list a { display: grid; grid-template-columns: 5.2rem minmax(0, 1.05fr) minmax(0, 1fr); align-items: baseline; gap: 20px; padding: clamp(14px, 2.2vh, 22px) 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.sit-list .t { font-family: var(--serif); text-transform: uppercase; font-size: clamp(1.7rem, 3.4vw, 3.1rem); line-height: 1; color: var(--ink); transition: transform 420ms var(--io); }
.sit-list .hook { font-size: 1rem; }
@media (hover: hover) and (pointer: fine) { .sit-list a:hover .t { transform: translateX(12px); } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3.4vw, 56px); margin-top: clamp(40px, 7vh, 80px); }
.steps li { border-top: 1px solid var(--rule); padding-top: 18px; display: grid; gap: 12px; align-content: start; }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.12; color: var(--ink); }
.steps--5 { grid-template-columns: repeat(5, 1fr); gap: clamp(16px, 2vw, 32px); }
.steps--5 h3 { font-size: clamp(1.2rem, 1.5vw, 1.45rem); }

/* split: text on paper with a full-height photograph beside it */
.split { grid-template-columns: 1fr 1fr; }
.split .wrap { padding-right: var(--gut); align-self: center; }
.split .inner { display: grid; gap: 30px; }
.split .photo { position: relative; min-height: 100svh; overflow: hidden; }
.split .photo::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 170px; background: linear-gradient(rgba(45, 19, 30, .55), rgba(45, 19, 30, 0)); pointer-events: none; }
.split .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.services { display: grid; gap: .5em; }
.services li { font-family: var(--serif); text-transform: uppercase; font-size: clamp(1.45rem, 2.5vw, 2.4rem); line-height: 1.04; text-wrap: balance; padding-top: .5em; border-top: 1px solid var(--rule); color: var(--ink); }

/* FAQ */
.faq { max-width: 860px; margin-top: clamp(32px, 5vh, 56px); border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: baseline; padding: 22px 0; font-family: var(--serif); font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.2; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 13px; height: 13px; align-self: center; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat; transition: transform 420ms var(--io); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; max-width: 36em; }

/* closing call: roots across the whole section, the mark in the middle */
.close { text-align: center; }
.close .inner { display: grid; justify-items: center; gap: 28px; max-width: 900px; }
.close .mark-wrap { width: clamp(92px, 9vw, 132px); margin-bottom: 8px; }
.close p { max-width: 30em; }

/* situations page */
.sit { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 28px); row-gap: 28px; align-items: start; }
.sit .num { grid-column: 1 / 3; padding-top: .7em; color: var(--ink); }
.sit .head { grid-column: 3 / 12; display: grid; gap: 20px; }
.sit .core { grid-column: 3 / 8; }
.sit .stepper { grid-column: 3 / 10; }
.stepper { border-top: 1px solid var(--rule); padding-top: 18px; display: grid; gap: 14px; }
.stepper-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--ink); }
.stepper ol { display: grid; }
.stepper li { font-family: var(--serif); font-size: clamp(1.4rem, 2.3vw, 2.1rem); line-height: 1.2; text-wrap: balance; color: var(--ink); }
.js .stepper ol { min-height: 3.7em; }
.js .stepper li { grid-area: 1 / 1; opacity: 0; filter: blur(6px); visibility: hidden; transition: opacity 320ms ease, filter 320ms ease, visibility 0s 320ms; }
.js .stepper li.on { opacity: 1; filter: none; visibility: visible; transition: opacity 320ms ease, filter 320ms ease; }
html:not(.js) .stepper li + li { margin-top: .5em; }
html:not(.js) .stepper-ctrl { display: none; }
.stepper-ctrl { display: flex; align-items: center; gap: 14px; }
.stepper-ctrl button { position: relative; isolation: isolate; overflow: hidden; width: 44px; height: 44px; border: 1px solid currentColor; background: none; cursor: pointer; display: grid; place-items: center; color: inherit; transition: transform 160ms var(--ease-out), color 200ms ease 80ms; }
.stepper-ctrl button::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--cream); transform: scaleX(0); transform-origin: right; transition: transform 420ms var(--io); }
.stepper-ctrl button:active { transform: scale(.95); }
.stepper-ctrl svg { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .stepper-ctrl button:hover { color: var(--plum); } .stepper-ctrl button:hover::before { transform: scaleX(1); transform-origin: left; } }
.count { font-variant-numeric: tabular-nums; min-width: 3.2em; text-align: center; }

/* about */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 5vw, 90px); margin-top: clamp(36px, 6vh, 64px); }
.facts h3 { margin-bottom: 14px; }
.facts li { padding: 13px 0; border-top: 1px solid var(--rule); }
.duo { display: grid; grid-template-columns: 5fr 4fr; gap: clamp(16px, 2vw, 28px); align-items: end; }
.duo .photo { overflow: hidden; }
.duo .photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.duo .photo:last-child img { aspect-ratio: 3 / 4; }

/* contact */
.contact { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 6vw, 110px); align-items: start; }
.contact .photo { overflow: hidden; }
.contact .photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.note { font-size: .9375rem; }

/* footer: the logo itself, across the width, on Bladløv paper */
.footer { position: relative; background: var(--brick) url("../tex/brick.webp") center / cover; color: var(--cream); padding: clamp(48px, 8vh, 88px) var(--gut) 28px calc(var(--rail) + var(--gut)); overflow: hidden; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; max-width: 1160px; margin-inline: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer-nav a { text-decoration: none; }
.footer a:hover .sw span, .footer a.sw:hover span { color: var(--plum); }
.footer-logo { display: block; max-width: 1160px; margin: clamp(40px, 8vh, 96px) auto 0; aspect-ratio: 1665.5 / 221; background: var(--plum) url("../tex/plum.webp") center / cover; -webkit-mask: url("../logo/horiz_plum.svg") center / contain no-repeat; mask: url("../logo/horiz_plum.svg") center / contain no-repeat; }
.footer-base { max-width: 1160px; margin: 26px auto 0; font-size: .875rem; }

/* ---------- motion ---------- */
/* first paint of a page: hero text clears from a soft blur */
.js [data-enter] > * { opacity: 0; filter: blur(8px); }
.js.ready [data-enter] > * { opacity: 1; filter: none; transition: opacity 600ms ease-out, filter 600ms ease-out; }
.js.ready [data-enter] > *:nth-child(2) { transition-delay: 80ms; }
.js.ready [data-enter] > *:nth-child(3) { transition-delay: 160ms; }
.js.ready [data-enter] > *:nth-child(4) { transition-delay: 240ms; }
/* photographs arrive out of focus and sharpen once, as on the reference */
.js [data-reveal] img { filter: blur(18px); transform: scale(1.06); }
.js [data-reveal].in img { filter: none; transform: none; }

/* going to another page: the new page wipes in from the left, blurred, then sharpens */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: none; }
::view-transition-new(root) { animation: vt-wipe 700ms var(--io) both, vt-sharp 520ms ease-out 520ms both; }
@keyframes vt-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes vt-sharp { from { filter: blur(16px); } to { filter: blur(0); } }

/* ---------- smaller screens ---------- */
@media (max-width: 1000px) {
  .sit-list a { grid-template-columns: 4.4rem 1fr; }
  .sit-list .hook { grid-column: 2; }
  .steps, .steps--5 { grid-template-columns: 1fr; }
  .sit .head, .sit .core, .sit .stepper { grid-column: 3 / 13; }
}
@media (max-width: 800px) {
  :root { --rail: 0px; }
  .rail { inset: 0 0 auto 0; width: 100%; height: 60px; grid-template-rows: none; grid-template-columns: 1fr; align-items: center; justify-items: start; padding: 0 var(--gut); }
  .rail-top { grid-auto-flow: column; gap: 10px; align-items: center; }
  .rail-mark { width: 30px; }
  .rail-mid { display: none; }
  .scrolled .logo { opacity: 1; pointer-events: auto; }
  .logo { top: 22px; left: 50%; width: 112px; color: var(--brick-ink) !important; z-index: 31; }
  .cta-fixed { top: 10px; z-index: 31; padding: 0 13px; }
  .footer-top br { display: none; }
  .menu { grid-template-columns: 1fr; grid-template-rows: 60px 1fr; }
  .menu-rail { grid-auto-flow: column; justify-content: start; align-items: center; align-content: center; gap: 10px; padding: 0 var(--gut); }
  .menu-rail .rail-mark { width: 30px; }
  .menu-panel { padding-top: 40px; --root-size: 330% auto; }
  .wrap { padding-top: 112px; }
  .roots { --root-size: 380% auto; }
  .offset, .sit, .contact, .duo, .facts { display: block; }
  .offset .photo { margin-bottom: 28px; }
  .offset h2, .offset h1 { margin-top: 0; }
  .sit > * + * { margin-top: 22px; }
  .duo .photo + .photo { margin-top: 16px; }
  .facts > * + * { margin-top: 36px; }
  .contact .photo { margin-bottom: 32px; }
  .panel--photo { align-items: end; }
  .panel--photo .wrap { text-align: left; padding-bottom: 44px; }
  .panel--photo .inner { justify-items: start; }
  .split { grid-template-columns: 1fr; }
  .split .photo { min-height: 0; }
  .split .photo img { position: static; height: auto; aspect-ratio: 4 / 5; }
  .mark-bg { width: 120vw; right: -40%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-enter] > * { filter: none; }
  .js [data-reveal] img, .photo img { filter: none !important; transform: none !important; }
  .menu-panel, .menu[data-state] .menu-panel { transition: none; }
  .menu[data-state="open"] .menu-panel { clip-path: none; }
  .hl span { opacity: 1; }
  .js .stepper li { filter: none; }
  .sit-list a:hover .t { transform: none; }
  .sw span { transition-delay: 0s; }
  .menu[data-state="open"] .menu-panel.roots::before { transition: none; }
  .btn::before, .stepper-ctrl button::before { transition: none; }
  ::view-transition-new(root) { animation: none; }
}


/* =====================================================================
   Revision 4: one plum paper throughout, photographs lead, more motion
   ===================================================================== */
:root { interpolate-size: allow-keywords; }

/* page progress: a fine Mos line down the edge of the column */
.rail::after { content: ""; position: absolute; top: 0; right: 0; width: 1px; height: 100%; background: var(--mos); transform: scaleY(var(--p, 0)); transform-origin: top; }

/* ---------- sideways travel, as on the reference: a full-height strip with no gaps
   rises over the hero, then travels sideways under the frosted column ---------- */
main > .panel--photo:first-child { position: sticky; top: 0; z-index: 0; }
main > .panel--photo:first-child ~ section { z-index: 1; }
.hscroll { position: relative; }
.hs-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; padding-left: var(--rail); }
.hs-track, .hs-list { display: flex; height: 100%; }
.hs-track { will-change: transform; }
.hs-list { flex: none; }
.hs-intro { flex: none; width: clamp(340px, 36vw, 560px); display: grid; align-content: end; justify-items: start; gap: 20px; padding: 0 var(--gut) clamp(84px, 12vh, 120px); }
.hs-intro .lead { max-width: 14em; }
.hs-card { position: relative; flex: none; width: max(300px, 33vw); height: 100%; overflow: hidden; color: var(--cream);
  --ink: var(--cream); --text: var(--cream); --rule: rgba(244, 246, 228, .38); }
.hs-list > .hs-card:nth-child(3n + 2) { width: max(340px, 44vw); }
.hs-list > .hs-card:nth-child(3n) { width: max(280px, 28vw); }
.hs-card > a { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr; padding: clamp(96px, 13vh, 124px) clamp(20px, 2.4vw, 36px) clamp(64px, 9vh, 88px); text-decoration: none; color: inherit; }
.hs-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.hs-card > a::before, .hs-card--full::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(rgba(45, 19, 30, .4), rgba(45, 19, 30, .3) 40%, rgba(45, 19, 30, .9)); transition: opacity 500ms ease; }
.hs-card .num, .hs-text, .hs-body { position: relative; z-index: 2; }
.hs-text { align-self: end; display: grid; gap: 12px; justify-items: start; }
.hs-text .t { font-family: var(--serif); text-transform: uppercase; font-size: clamp(2rem, 3.3vw, 3.2rem); line-height: .98; font-variant-ligatures: none; }
.hs-text .hook { font-size: 1rem; line-height: 1.5; max-width: 24em; }
.hs-text .arrow { margin-top: 6px; }
.hs-count { position: absolute; z-index: 3; right: var(--gut); bottom: 34px; color: var(--cream); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hs-bar { position: absolute; z-index: 3; left: calc(var(--rail) + var(--gut)); right: var(--gut); bottom: 22px; height: 1px; background: rgba(244, 246, 228, .3); }
.hs-bar span { display: block; height: 100%; background: var(--mos); transform: scaleX(var(--hp, 0)); transform-origin: left; }
@media (hover: hover) and (pointer: fine) {
  .hs-card > a:hover img { transform: scale(1.05); }
  .hs-card > a:hover::before { opacity: .78; }
  .hs-card > a:hover .arrow::before { width: 40px; }
}

/* the situations page: each situation is a full photograph with its text on top */
.hs-card--full { width: calc(100vw - var(--rail)) !important; display: grid; align-items: end; }
.hs-card--full::before { background: linear-gradient(90deg, rgba(45, 19, 30, .9), rgba(45, 19, 30, .62) 46%, rgba(45, 19, 30, .22)); }
.hs-body { display: grid; gap: clamp(14px, 2.2vh, 24px); max-width: 780px; padding: clamp(96px, 13vh, 130px) var(--gut) clamp(72px, 10vh, 100px); }
.hs-body .lead { color: var(--cream); }
.hs-body .core { max-width: 34em; }
.hs-body .stepper { margin-top: 6px; max-width: 640px; }

/* ---------- first visit: a dark screen, a faint photograph and a small counter ---------- */
.loader { display: none; }
.js:not(.seen) .loader { display: grid; place-items: center; position: fixed; inset: 0; z-index: 90; background: var(--plum) url("../tex/plum.webp") center / cover; color: var(--brick-text);
  transition: opacity 700ms ease, filter 700ms ease, visibility 0s 700ms; }
.loader::before { content: ""; position: absolute; inset: 0; background: url("../img/lin_7756-900.webp") 62% 30% / cover; opacity: .13; filter: blur(2px); }
.loader-n { position: relative; font-variant-numeric: tabular-nums; }
.loader-t { position: absolute; right: var(--gut); bottom: 26px; opacity: .7; }
.loader.done { opacity: 0; filter: blur(10px); visibility: hidden; pointer-events: none; }

/* ---------- things arrive as you reach them ---------- */
.js .rise .w { display: inline-block; opacity: 0; transform: translateY(.42em); filter: blur(6px);
  transition: opacity 700ms ease-out, transform 800ms var(--ease-out), filter 700ms ease-out; transition-delay: calc(var(--n) * 42ms); }
.js .rise.in .w { opacity: 1; transform: none; filter: none; }
.js .st { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease-out, transform 800ms var(--ease-out); transition-delay: calc(var(--n, 0) * 90ms); }
.js .st.in { opacity: 1; transform: none; }
/* photographs drift a little against the page */
.offset .photo img, .split .photo img, .duo .photo img, .contact .photo img { scale: 1.1; }
.panel--photo > img { scale: 1.08; animation: settle 2600ms var(--ease-out) both; }
@keyframes settle { from { scale: 1.2; } to { scale: 1.08; } }
/* answers open and close smoothly */
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size 460ms var(--io), content-visibility 460ms allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

@media (max-width: 800px) {
  .rail::after { top: auto; bottom: 0; left: 0; right: auto; width: 100%; height: 1px; transform: scaleX(var(--p, 0)); transform-origin: left; }
  main > .panel--photo:first-child { position: relative; }
  .hscroll { height: auto !important; }
  .hs-pin { position: relative; height: auto; overflow: visible; padding: 60px 0 0; }
  .hs-track { display: block; height: auto; transform: none !important; }
  .hs-intro { width: auto; padding: 56px var(--gut) 28px; }
  .hs-list, .hscroll--full .hs-track { display: flex; height: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .hs-list::-webkit-scrollbar, .hscroll--full .hs-track::-webkit-scrollbar { display: none; }
  .hs-list > .hs-card { width: 82vw !important; height: 70svh; scroll-snap-align: start; }
  .hs-card > a { padding: 22px 20px 64px; }
  .hs-card--full { width: 100vw !important; height: auto; min-height: calc(100svh - 60px); scroll-snap-align: start; }
  .hs-card--full::before { background: linear-gradient(rgba(45, 19, 30, .5), rgba(45, 19, 30, .86)); }
  .hs-body { padding: 56px var(--gut) 84px; }
  .hs-count { bottom: 30px; }
  .hs-bar { left: var(--gut); bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .rise .w, .js .st { opacity: 1; transform: none; filter: none; transition: none; }
  .panel--photo > img { animation: none; }
  .hs-card img { transition: none; }
  .faq details::details-content { transition: none; }
}


/* =====================================================================
   Revision 5: lighter mix. La Roue only for large headings; labels and
   spaced capitals carry the small type. Light paper and light text
   break up the plum.
   ===================================================================== */
.t-light { --ink: var(--plum); --text: #3d2430; --rule: rgba(45, 19, 30, .28); --root-c: rgba(45, 19, 30, .08);
  background: var(--cream) url("../tex/kamille.webp") center / cover; color: var(--text); }
.t-light ::selection { background: var(--plum); color: var(--cream); }
.t-light :focus-visible { outline-color: var(--plum); }
.t-light .num, .t-light .kicker, .t-light .steps h3 { color: var(--brick); }
.t-pale { --ink: var(--cream); --text: rgba(244, 246, 228, .84); --rule: rgba(244, 246, 228, .3); }
.t-pale .num, .t-pale .label, .t-pale .arrow { color: var(--brick-text); }
[data-tone="light"] .logo { color: var(--plum); }

/* small type: Eleven Eleven and spaced capitals instead of the display serif */
.kicker { font-family: var(--sans); font-weight: 300; font-size: .8125rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brick-text); }
.lead { font-family: var(--sans); font-weight: 300; font-size: clamp(1.2rem, 1.65vw, 1.55rem); line-height: 1.42; letter-spacing: 0; }
.steps h3 { font-family: var(--sans); font-weight: 300; font-size: .875rem; line-height: 1.5; letter-spacing: .18em; text-transform: uppercase; }
.steps--5 h3 { font-size: .8125rem; }
.steps li { gap: 14px; padding-top: 20px; }
.services { gap: 0; counter-reset: s; }
.services li { counter-increment: s; display: grid; grid-template-columns: 3.2rem 1fr; align-items: baseline; font-family: var(--label); font-weight: 500; font-size: clamp(.9375rem, 1.2vw, 1.125rem); line-height: 1.45; letter-spacing: .05em; padding: 22px 0; text-wrap: balance; }
.services li::before { content: "( 0" counter(s) " )"; font-size: .75rem; color: var(--brick-text); }
.faq summary { font-family: var(--sans); font-weight: 300; font-size: clamp(1.125rem, 1.5vw, 1.3rem); }
.stepper li { font-family: var(--sans); font-weight: 300; font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.4; }
.js .stepper ol { min-height: 4.4em; }
.hero-sub { font-size: .875rem; letter-spacing: .16em; text-transform: uppercase; line-height: 1.8; max-width: 44em; }
.facts li { font-size: 1rem; }
.hs-body .lead { font-size: clamp(1.15rem, 1.5vw, 1.4rem); }
.hs-intro { gap: 18px; }

/* loader, matched to the reference: near-black screen, a barely visible photograph lit from
   above, a small plain counter that runs down to zero, a quiet word bottom right */
.js:not(.seen) .loader { background: #1c0d13; color: var(--cream); transition: opacity 420ms ease, visibility 0s 420ms; }
.loader::before { opacity: .1; filter: grayscale(1) blur(1px); }
.loader::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 62% 18%, rgba(244, 246, 228, .09), transparent 70%); }
.loader-n { position: relative; z-index: 1; font-family: var(--sans); font-weight: 300; font-size: .875rem; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.loader-t { z-index: 1; font-family: var(--sans); font-weight: 300; font-size: .75rem; opacity: .55; }
.loader-top { position: absolute; z-index: 1; top: 26px; left: 0; right: 0; text-align: center; opacity: .3; }
.loader.done { opacity: 0; filter: none; }

@media (max-width: 800px) {
  .services li { grid-template-columns: 2.8rem 1fr; }
  .hero-sub { font-size: .8125rem; letter-spacing: .12em; }
}

/* progress lines: Dyb Blomme on the column, light on the photo strip. No Mos. */
.rail::after { background: var(--plum); }
.hs-bar span { background: var(--cream); }
/* the column stays readable when a light section sits behind it */
.rail { background: rgba(45, 19, 30, .66); transition: background-color 300ms ease; }
[data-tone="light"] .rail { background: rgba(45, 19, 30, .9); }

/* footer: a full-bleed photograph of Anett under the plum veil, logo and text in light */
.footer { background: linear-gradient(rgba(45, 19, 30, .5), rgba(45, 19, 30, .62) 55%, rgba(45, 19, 30, .9)), var(--plum) url("../img/lin_7011.webp") 50% 16% / cover no-repeat;
  color: var(--cream); min-height: 86svh; display: grid; align-content: end; padding-top: clamp(120px, 22vh, 240px); }
.footer-logo { background: var(--cream); width: 100%; }
.footer-top, .footer-base { width: 100%; }
.footer a:hover .sw span, .footer a.sw:hover span { color: var(--brick-text); }
/* page progress on the column: Bladløv */
.rail::after { background: var(--brick-ink); width: 2px; }
@media (max-width: 800px) {
  .footer { min-height: 78svh; background-image: linear-gradient(rgba(45, 19, 30, .5), rgba(45, 19, 30, .62) 55%, rgba(45, 19, 30, .9)), url("../img/lin_7011-900.webp"); }
  .rail::after { width: 100%; height: 2px; }
}


/* menu hover, as on the reference: a full photograph fades in behind the list,
   the word under the pointer turns light and the others step back */
.menu-bg { position: absolute !important; inset: 0; z-index: 0 !important; pointer-events: none; overflow: hidden; }
.menu-bg span { position: absolute; inset: 0; background: center 28% / cover no-repeat; opacity: 0; transform: scale(1.05); filter: blur(6px);
  transition: opacity 620ms ease, transform 1400ms var(--ease-out), filter 620ms ease; }
.menu-bg span::after { content: ""; position: absolute; inset: 0; background: rgba(45, 19, 30, .56); }
.menu-bg span.on { opacity: 1; transform: none; filter: none; }
.menu-nav a { transition: color 420ms ease, opacity 420ms ease; }
.menu-panel.hov .menu-nav a { color: var(--cream); opacity: .3; }
.menu-panel.hov .menu-nav a.is-hov { opacity: 1; }
.menu-panel.hov .menu-foot { color: var(--cream); transition: color 420ms ease; }
@media (prefers-reduced-motion: reduce) { .menu-bg span { transform: none; filter: none; transition: opacity 200ms linear; } }


/* footer name, as on the reference: the mark and each letter rise from below one after
   another, overshoot a little and settle */
.footer-logo { position: relative; background: none !important; -webkit-mask: none !important; mask: none !important; }
.footer-logo span { position: absolute; top: 0; bottom: 0; clip-path: inset(-60% 0 0 0); }
.footer-logo i { display: block; width: 100%; height: 100%; background: var(--cream); -webkit-mask: url("../logo/horiz_plum.svg") no-repeat; mask: url("../logo/horiz_plum.svg") no-repeat; }
.js .footer-logo i { transform: translateY(112%); }
.js .footer-logo.in i { transform: none; transition: transform 1000ms cubic-bezier(.22, 1.32, .36, 1); transition-delay: calc(var(--n) * 75ms + 120ms); }
@media (prefers-reduced-motion: reduce) { .js .footer-logo i { transform: none; transition: none; } }


/* ---------- full-height sections with a linocut print on the bare ones ---------- */
.panel.mid > .wrap { align-self: center; }
.rt-right { --root-size: auto 128%; --root-pos: 118% 0; }
.t-light.roots { --root-c: rgba(143, 56, 45, .2); }
.t-plum.roots.grow { --root-c: rgba(143, 56, 45, .26); }
/* the print grows down from the top edge the first time the section comes into view */
.js .panel.grow::before {
  --grow: 0%;
  -webkit-mask: var(--root) var(--root-pos) / var(--root-size) no-repeat, radial-gradient(ellipse 120% 100% at 80% 0, #000 calc(var(--grow) - 24%), transparent var(--grow));
  mask: var(--root) var(--root-pos) / var(--root-size) no-repeat, radial-gradient(ellipse 120% 100% at 80% 0, #000 calc(var(--grow) - 24%), transparent var(--grow));
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.js .panel.grow.in::before { --grow: 190%; transition: --grow 4200ms cubic-bezier(.33, .6, .3, 1) 150ms; }
@media (max-width: 800px) {
  .rt-right { --root-size: auto 62%; --root-pos: 160% 0; }
}
@media (prefers-reduced-motion: reduce) { .js .panel.grow::before { --grow: 190%; transition: none; } }


/* ---------- slider photographs: the same even plum veil as the hero ---------- */
.hs-card > a::before { background: linear-gradient(rgba(45, 19, 30, .52), rgba(45, 19, 30, .52) 58%, rgba(45, 19, 30, .74)); }
.hs-card--full::before { background: linear-gradient(90deg, rgba(45, 19, 30, .74), rgba(45, 19, 30, .56) 46%, rgba(45, 19, 30, .5)); }
@media (hover: hover) and (pointer: fine) { .hs-card > a:hover::before { opacity: .86; } }
@media (max-width: 800px) { .hs-card--full::before { background: linear-gradient(rgba(45, 19, 30, .52), rgba(45, 19, 30, .8)); } }

/* ---------- opening, as on the reference: a plain plum screen holds, the photograph comes
   into focus, the column slides in and the headline is written in line by line ---------- */
.js:not(.seen) .loader { background: var(--plum) url("../tex/plum.webp") center / cover; transition: opacity 900ms ease, visibility 0s 900ms; }
.loader::before, .loader::after { content: none; }
.js:not(.seen) main > section:first-child img { filter: blur(34px); }
.js.ready:not(.seen) main > section:first-child img { filter: none; transition: filter 1700ms cubic-bezier(.3, .6, .25, 1) 200ms; }

.ln { display: inline-block; white-space: nowrap; clip-path: inset(-25% 100% -25% 0); }
.js.ready .ln { clip-path: inset(-25% -4% -25% 0); transition: clip-path 1100ms cubic-bezier(.5, 0, .2, 1); transition-delay: calc(1100ms + var(--n) * 380ms); }

.js.ready:not(.seen) [data-enter] > * { transition: opacity 900ms ease-out, filter 900ms ease-out; transition-delay: calc(1500ms + var(--lines, 2) * 380ms); }
.js.ready:not(.seen) [data-enter] > *:nth-child(3) { transition-delay: calc(1750ms + var(--lines, 2) * 380ms); }
.js.ready:not(.seen) [data-enter] > *:nth-child(4) { transition-delay: calc(2000ms + var(--lines, 2) * 380ms); }
@media (min-width: 801px) {
  .js:not(.seen) .rail { transform: translateX(-100%); }
  .js.ready:not(.seen) .rail { transform: none; transition: transform 1100ms cubic-bezier(.5, 0, .2, 1) 500ms, background-color 300ms ease; }
}
.js:not(.seen) [data-enter] > h1.lines, .js.ready:not(.seen) [data-enter] > h1.lines,
.js:not(.seen) [data-enter] > h1.lines-done, .js.ready:not(.seen) [data-enter] > h1.lines-done { opacity: 1; filter: none; transition: none; }

/* every situation in the slider is the same width */
.hs-list > .hs-card, .hs-list > .hs-card:nth-child(3n + 2), .hs-list > .hs-card:nth-child(3n) { width: max(340px, 44vw); }


/* footer: company details left, phone and e-mail right */
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; font-variant-numeric: tabular-nums; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-contact a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 420ms var(--ease-out); padding-bottom: 2px; }
.footer-contact a:hover, .footer-contact a:focus-visible { background-size: 100% 1px; }


/* ---------- plum paper drifts behind its section (parallax) ---------- */
.js .panel.t-plum { isolation: isolate; background-image: none; }
.js .panel.t-plum::after { content: ""; position: absolute; inset: -120px 0; z-index: -1; pointer-events: none;
  background: var(--plum) url("../tex/plum.webp") center / cover; transform: translate3d(0, calc(var(--py, 0) * 1px), 0); }
/* the print drifts at its own, gentler pace, so there are three layers: paper, print, text */
.js .panel.t-plum.roots::before { inset: -60px 0; transform: translate3d(0, calc(var(--py, 0) * .45px), 0); }


/* spaced-capital subheadings in a firmer weight */
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
.steps h3 { font-weight: 500; }

/* footer photograph: Anett in the chair by the curtain, as in the hero */
.footer { background: linear-gradient(rgba(45, 19, 30, .5), rgba(45, 19, 30, .58) 55%, rgba(45, 19, 30, .88)), var(--plum) url("../img/lin_7756.webp") 50% 54% / cover no-repeat; }
@media (max-width: 800px) {
  .footer { background-image: linear-gradient(rgba(45, 19, 30, .5), rgba(45, 19, 30, .58) 55%, rgba(45, 19, 30, .88)), url("../img/lin_7756-900.webp"); background-position: 72% 50%; }
}


/* closing call: write or ring */
.close-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 32px; }
.close-tel { text-decoration: none; color: var(--brick-text); padding: 12px 0 10px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: color 240ms ease; }
.close-tel:hover, .close-tel:focus-visible { color: var(--cream); }


/* ---------- after the critique of the home page ---------- */
/* closing call: the print frames the words instead of running behind them */
.close.roots::before {
  -webkit-mask: var(--root) var(--root-pos, 50% 0) / var(--root-size, 185% auto) no-repeat, radial-gradient(ellipse 48% 44% at 50% 52%, rgba(0, 0, 0, .18), #000 100%);
  mask: var(--root) var(--root-pos, 50% 0) / var(--root-size, 185% auto) no-repeat, radial-gradient(ellipse 48% 44% at 50% 52%, rgba(0, 0, 0, .18), #000 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.close .close-note { font-size: .875rem; margin-top: -6px; }
/* the service numbers never break across lines */
.services li::before { white-space: nowrap; }
/* the faded wordmark leaves the tab order as well */
.logo { transition: color 240ms ease, opacity 260ms ease, visibility 0s; }
.scrolled .logo { visibility: hidden; transition: color 240ms ease, opacity 260ms ease, visibility 0s 260ms; }
@media (max-width: 800px) { .scrolled .logo { visibility: visible; } }

/* returning to the home page in the same session: the same opening, in short */
.js.again:not(.seen) .loader { transition: opacity 420ms ease, visibility 0s 420ms; }
.js.again:not(.seen) main > section:first-child img { filter: blur(16px); }
.js.again.ready:not(.seen) main > section:first-child img { filter: none; transition: filter 800ms cubic-bezier(.3, .6, .25, 1); }
.js.again.ready .ln { transition: clip-path 760ms cubic-bezier(.5, 0, .2, 1); transition-delay: calc(300ms + var(--n) * 160ms); }
.js.again.ready:not(.seen) [data-enter] > * { transition: opacity 600ms ease-out, filter 600ms ease-out; transition-delay: calc(520ms + var(--lines, 2) * 160ms); }
.js.again.ready:not(.seen) [data-enter] > *:nth-child(3) { transition-delay: calc(640ms + var(--lines, 2) * 160ms); }
.js.again.ready:not(.seen) [data-enter] > *:nth-child(4) { transition-delay: calc(760ms + var(--lines, 2) * 160ms); }
.js.again.ready:not(.seen) [data-enter] > h1.lines, .js.again.ready:not(.seen) [data-enter] > h1.lines-done { transition: none; }
@media (min-width: 801px) {
  .js.again:not(.seen) .rail { transform: none; }
}


/* ---------- tap targets: small text links get a 44px hit area without moving anything ---------- */
.arrow, .footer-nav a, .footer-contact a { position: relative; }
.arrow::after, .footer-nav a::after, .footer-contact a::after { content: ""; position: absolute; inset: 50% -8px auto; height: 44px; transform: translateY(-50%); }
@media (max-width: 800px) {
  .logo::after { content: ""; position: absolute; inset: 50% -6px auto; height: 44px; transform: translateY(-50%); }
  .cta-fixed { min-height: 44px; }
  .rail-btn, .rail-mark { position: relative; }
  .rail-btn::after, .rail-mark::after { content: ""; position: absolute; inset: 50% -4px auto; height: 44px; transform: translateY(-50%); }
}

/* ---------- layout pass: text centred on its photograph, tighter groups, room in the top bar ---------- */
@media (min-width: 801px) {
  /* photo and copy share one centre line, and the photo never makes its section taller than the screen */
  .offset { grid-template-rows: 1fr auto auto 1fr; align-items: start; }
  .offset .photo { grid-row: 1 / -1; align-self: center; }
  .offset .photo img { max-height: calc(100svh - clamp(112px, 15vh, 168px) - clamp(72px, 11vh, 132px)); }
  .offset h2, .offset h1 { grid-row: 2; margin-top: 0; }
  .offset .copy { grid-row: 3; }
  /* slider intro sits on the same bottom line as the card text */
  .hs-intro { padding-bottom: clamp(64px, 9vh, 88px); }
  .hs-intro h2 { margin-bottom: 10px; }
  /* services text keeps a clear margin to the photograph */
  .split .wrap { padding-right: clamp(40px, 7vw, 112px); }
  .faq summary { padding: 28px 0; }
}
@media (min-width: 801px) and (max-width: 1100px) {
  .split { grid-template-columns: 1.3fr 1fr; }
  .split .wrap { padding-right: 32px; }
  .steps { gap: 24px; }
}
@media (min-width: 1001px) {
  /* each step: number, then title and text as one pair, held in a band between two rules */
  .steps li { padding: 28px 0 32px; gap: 10px; min-height: clamp(220px, 30vh, 300px); border-bottom: 1px solid var(--rule); }
  .steps h3 { margin-top: 14px; }
}
@media (max-width: 800px) {
  /* heading belongs to its copy, not to the photo above it */
  .offset .photo { margin-bottom: 44px; }
  .offset .copy { margin-top: 24px; }
  .services li { grid-template-columns: 3.5rem 1fr; }
  /* counter and progress line sit under the cards, not on them */
  .hs-pin { padding-bottom: 68px; }
  .hs-card > a { padding-bottom: 30px; }
  .hs-count { bottom: 32px; }
  .hs-bar { bottom: 20px; }
  /* top bar: mark, Menu, name and Kontakt each get air */
  .rail-top { gap: 6px; }
  .rail-btn { padding: 8px 6px; }
  .logo { width: 96px; top: 23px; }
}
@media (min-width: 801px) { .panel > .wrap:has(> .offset) { align-self: center; } }

/* ---------- polish: no stranded last words, visible keyboard focus on the slider, current page marked in the menu ---------- */
main p, main .hook, .footer p { text-wrap: pretty; }
.hs-card > a:focus-visible { outline-offset: -8px; }
.menu-nav a[aria-current="page"] { color: var(--brick-text); }

/* ---------- polish, whole site ---------- */
/* Om Anett: the two photographs never make their section taller than the screen */
@media (min-width: 801px) {
  .duo .photo img { max-height: calc(100svh - clamp(112px, 15vh, 168px) - clamp(72px, 11vh, 132px)); }
  .duo .photo:last-child img { max-height: calc((100svh - clamp(112px, 15vh, 168px) - clamp(72px, 11vh, 132px)) * .85); }
}
/* Kontakt: tighter form so the send button is on the first screen; a field left wrong shows it; direct lines under the form */
.contact-direct { align-items: baseline; margin-top: 6px; }
/* Situationer on phones: the counter now sits under the cards, so the cards need less room at the bottom */
@media (max-width: 800px) { .hs-body { padding-bottom: 48px; } }

/* =====================================================================
   motion: slow and unhurried, as on the reference recording (durup.com).
   The slow-fast-slow curve (--io) carries the menu, the page change and every
   hover; hover answers take about 0.4s, the menu about 0.65s. What moves is
   still only transform, opacity and clip, so slow never means heavy.
   ===================================================================== */
:root { --ease-drawer: cubic-bezier(.32, .72, 0, 1); }

/* hover and press */
.btn::before, .stepper-ctrl button::before { transition: transform 420ms var(--io); }
.rail-btn { transition: transform 160ms var(--ease-out); }
.rail-btn:active { transform: scale(.97); }
/* letters change colour one after another, left to right */
.sw span { transition: color 150ms linear; transition-delay: calc(var(--i) * 26ms); }
.sit-list .t { transition: transform 420ms var(--io); }
/* arrow links: the line lengthens by scaling, the word steps aside by moving; nothing is re-laid out */
.arrow { transition: transform 420ms var(--io); }
.arrow::before { width: 40px; margin-right: -10px; transform: translateX(0) scaleX(.45); transform-origin: left; transition: transform 420ms var(--io); }
.arrow::after { left: -30px; }
.rail-go::before { width: 38px; transform: scaleX(.42); transition: transform 420ms var(--io); }
@media (hover: hover) and (pointer: fine) {
  a.arrow:hover, .hs-card > a:hover .arrow { transform: translateX(22px); }
  a.arrow:hover::before, .hs-card > a:hover .arrow::before { transform: translateX(-22px) scaleX(1); }
  .rail-go:hover::before { transform: scaleX(1); }
  /* photographs breathe slowly under the pointer */
  .photo:hover img, .js [data-reveal].in:hover img { transform: scale(1.03); }
}
.hs-card img { transition: transform 900ms var(--ease-out); }
.hs-card > a::before { transition: opacity 500ms ease; }
/* footer phone and mail: the underline is drawn by scaling a line */
.footer-contact a { background: none; }
.footer-contact a::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 420ms var(--io); }
.footer-contact a:focus-visible::before { transform: scaleX(1); }
.close-tel:hover { color: var(--brick-text); }
@media (hover: hover) and (pointer: fine) {
  .footer-contact a:hover::before { transform: scaleX(1); }
  .close-tel:hover { color: var(--cream); }
}

/* menu: the panel wipes across slowly, gathering pace, and leaves the same way */
/* measured frame by frame on the reference: 0.85s to open, 0.95s to leave, a long slow start,
   a quick middle and a long settling tail */
.menu[data-state="open"] .menu-panel { transition: clip-path 880ms cubic-bezier(.8, .05, .1, 1); }
.menu[data-state="closing"] .menu-panel { transition: clip-path 950ms cubic-bezier(.8, 0, .1, 1); }
.menu-nav a, .menu-panel.hov .menu-foot { transition: color 420ms ease, opacity 420ms ease; }
.menu-bg span { transition: opacity 620ms ease, transform 1400ms var(--ease-out), filter 620ms ease; }

/* page change: the new page wipes in out of focus, holds, then sharpens */
::view-transition-new(root) { animation: vt-wipe 700ms var(--io) both, vt-sharp 520ms ease-out 520ms both; }
@keyframes vt-sharp { from { filter: blur(16px); } to { filter: blur(0); } }

/* questions open slowly; the "Kender du det?" lines dissolve into each other */
.faq details::details-content { transition: block-size 460ms var(--io), content-visibility 460ms allow-discrete; }
.faq summary::after { transition: transform 420ms var(--io); }
.js .stepper li { filter: blur(6px); transition: opacity 320ms ease, filter 320ms ease, visibility 0s 320ms; }
.js .stepper li.on { filter: none; transition: opacity 320ms ease, filter 320ms ease; }

/* arrivals */
.js .st { transition-delay: calc(var(--n, 0) * 90ms); }
/* hero text arrives from slightly below, not as a bare fade */
.js [data-enter] > * { transform: translateY(10px); }
.js.ready [data-enter] > * { transform: none; transition: opacity 600ms ease-out, filter 600ms ease-out, transform 600ms var(--ease-out); }
.js [data-enter] > h1.lines, .js [data-enter] > h1.lines-done { transform: none; transition: none; }
@media (max-width: 800px) { .hs-track { will-change: auto; } }

/* paper, print and the progress line follow the scroll in CSS where the browser can,
   so nothing is recalculated in script while scrolling */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .js .panel.t-plum { view-timeline: --sec block; }
    .js .panel.t-plum::after { transform: none; animation: paper-drift linear both; animation-timeline: --sec; }
    .js .panel.t-plum.roots::before { transform: none; animation: print-drift linear both; animation-timeline: --sec; }
    .rail::after { transform: none; animation: rail-fill linear both; animation-timeline: scroll(root block); }
  }
}
@keyframes paper-drift { from { transform: translate3d(0, -110px, 0); } to { transform: translate3d(0, 110px, 0); } }
@keyframes print-drift { from { transform: translate3d(0, -50px, 0); } to { transform: translate3d(0, 50px, 0); } }
@keyframes rail-fill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (max-width: 800px) { @keyframes rail-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } } }

@media (prefers-reduced-motion: reduce) {
  .arrow, .arrow::before, .rail-go::before, .sit-list .t, .footer-contact a::before { transition: none; }
  a.arrow:hover, .hs-card > a:hover .arrow { transform: none; }
  a.arrow:hover::before, .hs-card > a:hover .arrow::before { transform: translateX(0) scaleX(.45); }
  .js .stepper li, .js .stepper li.on { filter: none; }
  .js [data-enter] > *, .hs-card > a:hover img, .photo:hover img, .js [data-reveal].in:hover img { transform: none; }
  .faq details::details-content { transition: none; }
  .sw span { transition-delay: 0s; }
}

/* ---------- opening, slow and unhurried, as in the earlier version Camilla approved: a plain
   plum screen holds for a second, the photograph lingers out of focus and clears over almost
   two seconds, the column glides in, and the headline is written in line by line. Plays in
   full every time the front page loads. Do not shorten. ---------- */
.js:not(.seen) .loader { transition: opacity 900ms ease, visibility 0s 900ms; }
.js:not(.seen) main > section:first-child img { filter: blur(34px); }
.js.ready:not(.seen) main > section:first-child img { filter: none; transition: filter 1900ms cubic-bezier(.3, .6, .25, 1) 500ms; }
.js.ready .ln { transition: clip-path 1100ms cubic-bezier(.5, 0, .2, 1); transition-delay: calc(1500ms + var(--n) * 380ms); }
.js.ready:not(.seen) [data-enter] > * { transition: opacity 900ms ease-out, filter 900ms ease-out, transform 900ms var(--ease-out); transition-delay: calc(1900ms + var(--lines, 2) * 380ms); }
.js.ready:not(.seen) [data-enter] > *:nth-child(3) { transition-delay: calc(2150ms + var(--lines, 2) * 380ms); }
.js.ready:not(.seen) [data-enter] > *:nth-child(4) { transition-delay: calc(2400ms + var(--lines, 2) * 380ms); }
.js.ready:not(.seen) [data-enter] > h1.lines, .js.ready:not(.seen) [data-enter] > h1.lines-done { transition: none; }
@media (min-width: 801px) {
  .js.ready:not(.seen) .rail { transition: transform 1500ms cubic-bezier(.5, 0, .2, 1) 900ms, background-color 300ms ease; }
}

/* ---------- before the opening begins the screen is already the photograph, out of focus;
   no plain plum screen. A tiny copy of the photo is built into the page so there is something
   blurred to show before the real file has arrived. Logo, button and (on phones) the top bar
   wait until the photograph has started to clear. ---------- */
.js:not(.seen) .loader { display: none; }
main > .panel--photo:first-child { background-image: url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAA4KCw0LCQ4NDA0QDw4RFiQXFhQUFiwgIRokNC43NjMuMjI6QVNGOj1OPjIySGJJTlZYXV5dOEVmbWVabFNbXVn/2wBDAQ8QEBYTFioXFypZOzI7WVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVn/wAARCAA8ACgDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDOkiwjcf8ALJP50mz/AEn/ALez/KrlwuEP/XJP/QqiK/6R/wBvX/stAFGFP3cX/XBx/wCPVR2ZsXP+2o/8catOIYSPP/PJx/49VPH/ABL2/wCuqf8AoJoAj2Aufw/pRT0OX/Af0ooA3rn/AFZ/64r/AOhUxh+/P/XyP/QaSdv3R/64D/0Khm/fN/18D/0GgCkxxGuP7j/zrPL/APEtlPpNGf0NaBOYx/uyVRstUtbK1vI5/meZNq4GcfLigCJH/fnByNo6UVm2D7XcZ47UUAdXJulUJGCzvAAoHc7q6ceHoPL3SSyCXcJGIIwCBj8qzfCn2WW/UtuNwkGUz0Azz+NdP56JCzyMFUckntQB51rWlanDI3kSKtqSVT++2eTkVyrQIrMrStvXORsI5/Guy8ReIZp7nZahY44izAkctgdf1rjriZ7p5JnwG4zjvQBHC5jb60VGTzmigD02zt20m4WaK1LfKUwgGQD9ai1C7lki3yCVuMrEFwB9a3ZIlJPXpWZPboc5z+dAHGOtxNO5aFM7cEHnAOapSadPtIWNR+PWuueFBJwOtVpEUN0oA5NLCTJ3AZBwRRXSzooXNFAH/9k="); background-size: cover; background-position: 62% 30%; }
.js.ready:not(.seen) main > section:first-child img { transition: filter 1900ms cubic-bezier(.3, .6, .25, 1) 300ms; }
.js:not(.seen):not(.ready) .logo, .js:not(.seen):not(.ready) .cta-fixed { opacity: 0; }
.js.ready:not(.seen):not(.opened) .logo { transition: opacity 900ms ease-out 1700ms; }
.js.ready:not(.seen):not(.opened) .cta-fixed { transition: opacity 900ms ease-out 1900ms; }
@media (max-width: 800px) {
  .js:not(.seen):not(.ready) .rail { opacity: 0; }
  .js.ready:not(.seen):not(.opened) .rail { transition: opacity 900ms ease-out 1500ms; }
}


/* ---------- side column: one link per section (2026-11-21) ----------
   The section name is the link, in the darker tone. No second label, no "Læs". */
.rail-go { white-space: normal; line-height: 1.5; letter-spacing: .07em; padding: 8px 6px; }
.rail-go .rl { display: block; white-space: nowrap; }
.rail-go .rl > span { display: inline; }
.rail-go::before { margin-bottom: 12px; }


/* ---------- Metode page and scroll-grown prints (2026-11-21) ---------- */
/* berry print: one large, faint linocut, shown whole (never cut by the section edge) */
.rt-berry { --root: url("../roots/berry.webp"); --root-size: auto 90%; --root-pos: 94% 50%; }
.t-light.roots.rt-berry { --root-c: rgba(143, 56, 45, .13); }
.t-plum.roots.grow.rt-berry { --root-c: rgba(143, 56, 45, .14); }
/* it grows from the tip of its stem, top right */
.js .panel.grow.rt-berry::before {
  -webkit-mask: var(--root) var(--root-pos) / var(--root-size) no-repeat, radial-gradient(ellipse 120% 105% at 85% 4%, #000 calc(var(--grow) - 24%), transparent var(--grow));
  mask: var(--root) var(--root-pos) / var(--root-size) no-repeat, radial-gradient(ellipse 120% 105% at 85% 4%, #000 calc(var(--grow) - 24%), transparent var(--grow));
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
/* sgrow: the print grows out from the top with the scroll (same reveal as the open menu,
   but tied to scroll position). --gs is set in site.js; the transition only softens it. */
.js .panel.grow.sgrow::before { --grow: calc(var(--gs, 0) * 1%); transition: --grow 900ms cubic-bezier(.22, .61, .36, 1); }
@media (max-width: 800px) { .rt-berry { --root-size: auto 62%; --root-pos: 108% 12%; } }
@media (prefers-reduced-motion: reduce) { .js .panel.grow.sgrow::before { --grow: 190%; transition: none; } }

/* the three steps written out, one row each, set like the list of situations on the front page */
.method { margin-top: clamp(36px, 6vh, 72px); border-top: 1px solid var(--rule); }
.method li { display: grid; grid-template-columns: 5.2rem minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px clamp(20px, 3vw, 56px); align-items: baseline;
  padding: clamp(26px, 5vh, 52px) 0; border-bottom: 1px solid var(--rule); }
.method h3 { font-family: var(--serif); font-weight: 400; font-style: normal; font-synthesis: none; text-transform: uppercase; font-size: clamp(1.6rem, 2.7vw, 2.5rem); line-height: 1.04; letter-spacing: 0; color: var(--ink); text-wrap: balance;
  font-variant-ligatures: none; font-feature-settings: "liga" 0, "clig" 0, "dlig" 0, "calt" 0; }
.t-light .method h3 { color: var(--ink); }
.method p { max-width: 30em; text-wrap: pretty; }
/* heading on the left, its introduction on the right */
.head2 { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 28px); align-items: end; }
.head2 h2 { grid-column: 1 / 7; }
.head2 .lead { grid-column: 7 / 13; max-width: 27em; }
@media (max-width: 800px) {
  .method li { grid-template-columns: 3.5rem 1fr; gap: 10px 12px; padding: 26px 0; }
  .method p { grid-column: 2; }
  .head2 { display: block; }
  .head2 .lead { margin-top: 20px; }
}


/* ---------- closing call: roots grow with the scroll (2026-11-21) ---------- */
/* layers: the root print, the quiet area around the mark, the scroll-grown reveal from the top */
.js .panel.close.sgrow::before {
  --grow: calc(var(--gs, 0) * 1%); transition: --grow 900ms cubic-bezier(.22, .61, .36, 1);
  -webkit-mask: var(--root) var(--root-pos, 50% 0) / var(--root-size, 185% auto) no-repeat,
    radial-gradient(ellipse 48% 44% at 50% 52%, rgba(0, 0, 0, .18), #000 100%),
    radial-gradient(ellipse 115% 100% at 50% 0, #000 calc(var(--grow) - 24%), transparent var(--grow)),
    linear-gradient(#000 86%, rgba(0, 0, 0, .25) 100%);
  mask: var(--root) var(--root-pos, 50% 0) / var(--root-size, 185% auto) no-repeat,
    radial-gradient(ellipse 48% 44% at 50% 52%, rgba(0, 0, 0, .18), #000 100%),
    radial-gradient(ellipse 115% 100% at 50% 0, #000 calc(var(--grow) - 24%), transparent var(--grow)),
    linear-gradient(#000 86%, rgba(0, 0, 0, .25) 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
@media (prefers-reduced-motion: reduce) { .js .panel.close.sgrow::before { --grow: 190%; transition: none; } }

/* footer fills the screen exactly on wide screens, with curtain above her head */
@media (min-width: 801px) { .footer { min-height: 100svh; background-position: 50% 44%; } }
/* a short, light fade at the top of the footer photograph: the edge stays, but is not a hard line */
.footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: clamp(70px, 14vh, 130px); pointer-events: none;
  background: linear-gradient(rgba(45, 19, 30, .9), rgba(45, 19, 30, .5) 40%, rgba(45, 19, 30, 0)); }
.footer > * { position: relative; z-index: 1; }

/* ---------- every framed photograph carries the hero's plum veil (2026-11-21) ----------
   Same even veil as the front-page hero (.52), so no photograph is plain black and white. */
.photo { position: relative; }
.photo::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: rgba(45, 19, 30, .52); }


/* services list: a little more air between the number and the line (2026-11-21) */
.services li { column-gap: .75rem; }

/* every La Roue heading asks for the Regular cut explicitly (it is the only cut loaded) */
.display, .menu-nav a, .sit-list .t, .hs-text .t { font-weight: 400; font-style: normal; font-synthesis: none; }


/* ---------- Kontakt without a form: phone and e-mail, one row each (2026-11-21) ---------- */
.reach { margin-top: clamp(30px, 5vh, 52px); border-top: 1px solid var(--rule); max-width: 34rem; }
.reach li { display: grid; grid-template-columns: 6.5rem 1fr; align-items: baseline; gap: 16px; padding: clamp(20px, 3.4vh, 32px) 0; border-bottom: 1px solid var(--rule); }
.reach .label { color: var(--brick); }
.reach a { position: relative; justify-self: start; font-weight: 300; font-size: clamp(1.2rem, 1.65vw, 1.55rem); line-height: 1.3; color: var(--ink); text-decoration: none; padding-bottom: 3px; overflow-wrap: anywhere; }
.reach a::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 420ms var(--io); }
.reach a::after { content: ""; position: absolute; inset: 50% -8px auto; height: 44px; transform: translateY(-50%); }
.reach a:focus-visible::before { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .reach a:hover::before { transform: scaleX(1); } }
.reach + .note { margin-top: 22px; }
@media (max-width: 800px) { .reach li { grid-template-columns: 1fr; gap: 6px; } }
@media (prefers-reduced-motion: reduce) { .reach a::before { transition: none; } }


/* ---------- final test fixes (2026-11-21) ---------- */
/* a single very long word (Danish compounds) may never push a column wider than the screen:
   columns are allowed to shrink, and a word that cannot fit on a line of its own breaks */
body { overflow-wrap: break-word; }
main :where(section, div, ol, ul, li, figure, h1, h2, h3, p), .footer :where(div, p, nav) { min-width: 0; }
@media (max-width: 800px) { .footer-nav { column-gap: 18px; } }
.services li > * { min-width: 0; }
/* smallest phones: the service names are set a touch smaller and may hyphenate, so none is cut off */
@media (max-width: 360px) { .services li { font-size: .8125rem; hyphens: auto; -webkit-hyphens: auto; } }
/* headings and running text: a word longer than its line breaks instead of widening the column */
.display, main h3, main p, main li, .faq summary { overflow-wrap: anywhere; }
.js .rise .w { max-width: 100%; }
/* footer logo: full-height tap area on the smallest phones */
.footer-logo::after { content: ""; position: absolute; inset: 50% 0 auto; height: 44px; transform: translateY(-50%); }
/* short laptop screens: the situation cards tighten so the last lines stay inside the card */
@media (min-width: 801px) and (max-height: 740px) {
  .hs-body { padding-top: 76px; padding-bottom: 44px; gap: 10px; }
  .hs-body .display { font-size: min(5.2vw, 8.2vh); }
  .hs-body .core { font-size: .9375rem; }
  .hs-body .stepper { margin-top: 2px; padding-top: 12px; gap: 8px; }
  .js .hs-body .stepper ol { min-height: 2.9em; }
}
/* smallest phones: no room for the wordmark between Menu and Kontakt; the mark on the left stays */
@media (max-width: 350px) { .logo { display: none; } }


/* ---------- phone header: Menu left, logo mark in the centre, smaller Kontakt (2026-11-21) ---------- */
@media (max-width: 800px) {
  .logo { display: none; }
  .rail .rail-top > .rail-mark, .menu-rail > .rail-mark { position: absolute; left: 50%; top: 30px; width: 32px; margin: -16px 0 0 -16px; }
  .menu-rail { position: relative; }
  .rail-btn { padding-left: 0; }
  .cta-fixed { top: 13px; min-height: 34px; padding: 0 12px; font-size: .625rem; letter-spacing: .1em; }
}


/* ---------- berry print without a frame on phones and tablets (2026-11-21) ---------- */
/* the print used two stacked masks (image + growing reveal); some browsers combine them wrongly
   and tint everything outside the image's box. Now the image is the only mask and the growing
   reveal is painted as the colour itself, so nothing outside the berries can ever show. */
.js .panel.grow.rt-berry::before {
  background: radial-gradient(ellipse 120% 105% at 85% 4%, var(--root-c) calc(var(--grow) - 24%), transparent var(--grow));
  -webkit-mask: var(--root) var(--root-pos) / var(--root-size) no-repeat;
  mask: var(--root) var(--root-pos) / var(--root-size) no-repeat;
  -webkit-mask-composite: source-over; mask-composite: add;
}

/* FAQ in groups (Kontakt) */
.faq-group { margin-top: clamp(40px, 7vh, 72px); }
.faq-group > .label { display: block; }
.faq-group .faq { margin-top: 18px; }

/* ---------- root prints without a frame in Safari (2026-11-23) ----------
   Same cure as the berry print: Safari combines the two stacked masks wrongly and tints the
   area outside the print's own box. The print is now the only mask; the growing reveal is the colour. */
.js .panel.grow::before {
  background: radial-gradient(ellipse 120% 100% at 80% 0, var(--root-c) calc(var(--grow) - 24%), transparent var(--grow));
  -webkit-mask: var(--root) var(--root-pos) / var(--root-size) no-repeat;
  mask: var(--root) var(--root-pos) / var(--root-size) no-repeat;
  -webkit-mask-composite: source-over; mask-composite: add;
}
.js .panel.grow.rt-berry::before {
  background: radial-gradient(ellipse 120% 105% at 85% 4%, var(--root-c) calc(var(--grow) - 24%), transparent var(--grow));
}

/* ---------- privacy page and 404 (2026-11-23) ---------- */
.legal { max-width: 720px; }
.legal h2 { margin: clamp(36px, 6vh, 56px) 0 12px; color: var(--brick); }
.legal p { max-width: 38em; }
.legal p + p { margin-top: 14px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.lost { text-align: center; }
.lost .lead { margin: 22px auto 0; }
.lost .close-acts { margin-top: 34px; justify-content: center; }
.footer-base p a[href="privatliv.html"] { text-decoration: underline; text-underline-offset: 3px; }
