/* Bypuls (bypuls.app), from bypuls-pro-v2. Values resolve to landing-page-design (Part B): Tailwind type scale, the B2
   spacing table, Tailwind radii with the nested formula, flat backgrounds, one curve. Colours are the brand guide's (v1.1);
   a town's colour is an accent (its dot, its outline, its card), never a surface. */

@font-face { font-family: "Familjen Grotesk"; src: url("/assets/fonts/familjen-grotesk-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Familjen Grotesk"; src: url("/assets/fonts/familjen-grotesk-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Always dusk, like v2 and bypuls.pro (orchestrator 29/10, after Nate's v2 base); the app phone keeps its day look */
  color-scheme: dark;
  --white: #FFFFFF;
  --night: #120A1B; --dusk: #1B0F28; --plum: #261538;
  --bg: #120A1B; --canvas: #1B0F28; --muted: rgba(255, 255, 255, .07);
  --ink: #F6EEFA; --ink-2: #D6CBDF; --ink-3: #A99DB5; --line: rgba(233, 213, 242, .14); --line-strong: rgba(233, 213, 242, .32);
  --lyng: #7A2C91; --lyng-strong: #5E1F73; --lyng-soft: rgba(217, 165, 234, .14); --lyng-dim: #8E5AA3; --lyng-ink: #D9A5EA; --lilac: #E9D5F2;
  --amber: #FFB45E; --amber-2: #FFD7A1; --amber-ink: #3B1D06;
  --town: #009933; --town-ui: #04892E;
  --ok: #7AD6A2; --ok-bg: rgba(122, 214, 162, .14); --err-bg: rgba(255, 128, 128, .14); --err-fg: #FFCACA;
  --glass: rgba(27, 15, 40, .62); --glass-2: rgba(18, 10, 27, .82); --glass-menu: rgba(18, 10, 27, .96);
  --map-land: #2D2734; --dim-word: rgba(246, 238, 250, .26); --hero-from: #FFFFFF; --hero-to: #D9A5EA;
  /* B2 */
  --s-25: 2px; --s-50: 4px; --s-75: 8px; --s-100: 12px; --s-200: 16px; --s-300: 24px; --s-400: 32px;
  --s-500: 40px; --s-600: 48px; --s-700: 64px; --s-800: 80px; --s-900: 96px;
  /* B3 (Tailwind) */
  --r-sm: 4px; --r-md: 6px; --r-lg: 8px; --r-xl: 12px; --r-2xl: 16px; --r-3xl: 24px; --r-4xl: 32px; --r-full: 9999px;
  /* B7 */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 32px 64px rgba(0, 0, 0, .55), 0 8px 16px rgba(0, 0, 0, .35);
  --glow: 0 0 0 1px rgba(233, 213, 242, .12), 0 20px 60px rgba(122, 44, 145, .28);
  --font: "Familjen Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: var(--s-300);
}
@media (max-width: 640px) { :root { --gutter: var(--s-200); } }
/* the app phone is the app by day, on the dusk page too */
.phone { --bg: #FFFFFF; --canvas: #F7F6F9; --muted: #ECE9F0; --ink: #17141C; --ink-2: #3E3846; --ink-3: #655E70; --line: #E3E0E8; --line-strong: #8A8394;
  --lyng-ink: #7A2C91; --lyng-soft: #F4E8F7; --lyng-dim: #D9A5EA; color: var(--ink); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--s-900); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
b, strong { font-weight: 600; }
em { font-style: normal; }
h1, h2, h3, .tl, .close-h, .seg-big, .beat-line, .beat-punch { text-wrap: balance; }
p, dd, li { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--lyng-ink); outline-offset: 2px; border-radius: var(--r-sm); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 20px; height: 20px; flex: none; }
[hidden] { display: none !important; }

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

.skip { position: fixed; left: var(--s-200); top: var(--s-200); z-index: 60; padding: var(--s-75) var(--s-100); background: var(--ink); color: var(--bg); border-radius: var(--r-lg); font-weight: 600; transform: translateY(-200%); transition: transform .5s var(--ease); }
.skip:focus { transform: none; }

/* type */
.eyebrow { display: inline-flex; align-items: center; gap: var(--s-75); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--lyng-ink); letter-spacing: .01em; }
.h2 { font-size: 48px; line-height: 1; font-weight: 700; letter-spacing: -.025em; }
.sec-head { max-width: 680px; display: grid; gap: var(--s-200); margin-bottom: var(--s-700); }
.sec-lead { font-size: 18px; line-height: 28px; color: var(--ink-2); }
.sec-lead a { color: var(--lyng-ink); }
@media (max-width: 768px) { .h2 { font-size: 36px; line-height: 40px; } .sec-head { margin-bottom: var(--s-600); } }

/* buttons (B1, B2, B9) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-75); padding: var(--s-75) var(--s-100); min-height: 40px; border-radius: var(--r-xl); border: 1px solid transparent; font: inherit; font-size: 16px; line-height: 24px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .5s var(--ease), background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease); }
.btn .i { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.btn:hover .i { transform: translateX(2px); }
.btn:active { transform: scale(.98); }
.btn-sm { font-size: 14px; line-height: 20px; min-height: 36px; }
.btn-primary { background: var(--amber); color: var(--amber-ink); box-shadow: 0 10px 30px rgba(255, 180, 94, .3), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-primary:hover { background: var(--amber-2); }
.btn-ghost { background: var(--bg); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--line-strong); background: var(--canvas); }
.btn-light { background: var(--white); color: var(--lyng-strong); }
.btn-light:hover { background: var(--lyng-soft); }
.btn-light:focus-visible { outline-color: var(--white); }
.link-arrow { display: inline-flex; align-items: center; gap: var(--s-75); font-weight: 600; color: var(--lyng-ink); text-decoration: none; }
.link-arrow .i { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.link-arrow:hover .i { transform: translate(2px, -2px); }
.badge { display: inline-flex; align-items: center; padding: var(--s-25) var(--s-75); border-radius: var(--r-sm); background: var(--muted); color: var(--ink-2); font-size: 12px; line-height: 16px; font-weight: 600; }
.badge-lyng { background: var(--lyng-soft); color: var(--lyng-ink); }

/* nav (B7) */
.nav-wrap { position: fixed; inset: var(--s-200) 0 auto; z-index: 50; display: flex; justify-content: center; padding-inline: var(--s-200); pointer-events: none; }
.nav { pointer-events: auto; display: flex; align-items: center; gap: var(--s-300); padding: var(--s-75) var(--s-75) var(--s-75) var(--s-200); background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border: 1px solid rgba(233, 213, 242, .16); border-radius: var(--r-2xl); box-shadow: 0 10px 40px rgba(0, 0, 0, .3); transition: box-shadow .3s var(--ease), background-color .3s var(--ease); }
.nav-wrap.is-scrolled .nav { background: var(--glass-2); box-shadow: 0 12px 32px rgba(0, 0, 0, .4); }
.brand { display: inline-flex; align-items: center; gap: var(--s-75); text-decoration: none; font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.brand .mark { width: 32px; height: auto; color: var(--lyng-ink); }
.nav-links { display: flex; gap: var(--s-50); }
.nav-links a { display: block; padding: var(--s-75) var(--s-100); border-radius: var(--r-lg); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink-2); text-decoration: none; transition: background-color .3s var(--ease), color .3s var(--ease); }
.nav-links a:hover { background: var(--muted); color: var(--ink); }
.nav-links a[aria-current="true"] { background: var(--lyng-soft); color: var(--ink); }
.nav-end { display: flex; align-items: center; gap: var(--s-75); }
.nav-login { padding: var(--s-75) var(--s-100); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink-2); text-decoration: none; border-radius: var(--r-lg); transition: background-color .3s var(--ease); }
.nav-login:hover { background: var(--muted); }
.menu-btn { display: none; width: 40px; height: 40px; border: 0; border-radius: var(--r-lg); background: var(--muted); cursor: pointer; place-items: center; }
.menu-lines { position: relative; width: 16px; height: 12px; display: block; }
.menu-lines span { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .5s var(--ease); }
.menu-lines span:first-child { top: 2px; } .menu-lines span:last-child { top: 8px; }
.menu-btn[aria-expanded="true"] .menu-lines span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines span:last-child { transform: translateY(-3px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 40; padding: 112px var(--s-300) var(--s-600); background: var(--glass-menu); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); overflow-y: auto; }
.menu-links { display: grid; gap: var(--s-50); }
.menu-links a:not(.btn) { display: block; padding: var(--s-75) 0; font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -.02em; text-decoration: none; }
.menu-links .btn { margin-top: var(--s-300); }
.menu-links li { opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.menu.is-open .menu-links li { opacity: 1; transform: none; }
@media (max-width: 1080px) {
  .nav-links, .nav-login { display: none; }
  .menu-btn { display: grid; }
  .nav-wrap { justify-content: stretch; }
  .nav { width: 100%; justify-content: space-between; }
}
@media (min-width: 1081px) { .menu { display: none; } }
/* the pause takes the word's room on small phones: the mark stays, the link is named "Bypuls" */
@media (max-width: 430px) { .nav .brand span { display: none; } .nav .brand .mark { flex: none; } .nav { gap: var(--s-100); } }

.proof { display: flex; align-items: flex-start; gap: var(--s-75); max-width: 320px; font-size: 14px; line-height: 20px; color: var(--ink-3); }
.proof b { color: var(--ink); font-variant-numeric: tabular-nums; }
.live-dot { position: relative; flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: var(--r-full); background: var(--town); }
.eyebrow .live-dot { margin-top: 0; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--town); animation: ping 2s var(--ease) infinite; }
@keyframes ping { from { transform: scale(1); opacity: .55; } to { transform: scale(2.6); opacity: 0; } }

.close-line path { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hl-base { stroke: var(--line); stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s var(--ease) .2s forwards; }
.hl-beat { stroke: var(--lyng); stroke-width: 4; stroke-dasharray: .06 1.06; stroke-dashoffset: .06; filter: drop-shadow(0 0 6px rgba(122, 44, 145, .55)); animation: beat 4.2s cubic-bezier(0.65, 0, 0.35, 1) 2s infinite; opacity: 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes beat { 0% { stroke-dashoffset: .06; opacity: 1; } 70% { stroke-dashoffset: -1; opacity: 1; } 71%, 100% { opacity: 0; stroke-dashoffset: -1; } }

/* hero visual: aktører wired into the phone */
.hero-visual { position: relative; z-index: 1; height: 640px; }
.hero-visual::before { content: ""; position: absolute; right: -120px; top: 50%; width: 560px; height: 560px; margin-top: -280px; border-radius: var(--r-full); background: var(--lyng-soft); z-index: -1; }
.hv-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hv-wire { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke .3s var(--ease); }
.hv-wire.is-you { stroke-dasharray: .015 .015; stroke-dashoffset: 0; opacity: 0; transition: opacity .6s var(--ease); }
.threads.is-in .hv-wire:not(.is-you) { animation: draw 1.2s var(--ease) forwards; }
.threads.is-in .hv-wire:nth-of-type(2) { animation-delay: .15s; } .threads.is-in .hv-wire:nth-of-type(3) { animation-delay: .3s; }
.threads.is-in .hv-wire.is-you { opacity: 1; transition-delay: .8s; }
.hv-wire.is-hot { stroke: var(--lyng-dim); }
.hv-pulse { fill: var(--lyng); opacity: 0; filter: drop-shadow(0 0 6px rgba(122, 44, 145, .7)); }
.hv-chips { position: absolute; left: 0; top: 0; width: 176px; height: 100%; z-index: 2; }
.hv-chip { position: absolute; left: 0; width: 176px; display: flex; align-items: center; gap: var(--s-75); padding: var(--s-75); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow); transform: translateY(-50%); transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .5s var(--ease); }
.hv-chip-1 { top: 112px; } .hv-chip-2 { top: 248px; } .hv-chip-3 { top: 384px; } .hv-chip-4 { top: 520px; }
.hv-chip > span:last-child { display: grid; min-width: 0; }
.hv-chip b { font-size: 14px; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hv-chip span span { font-size: 12px; line-height: 16px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hv-init { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--muted); font-size: 12px; line-height: 16px; font-weight: 700; color: var(--ink-2); transition: background-color .3s var(--ease), color .3s var(--ease); }
.hv-chip.is-hot { border-color: var(--lyng-dim); box-shadow: 0 8px 24px rgba(122, 44, 145, .16); transform: translateY(-50%) translateX(4px); }
.hv-chip.is-hot .hv-init { background: var(--lyng); color: var(--white); }
.hv-chip.is-you { border-style: dashed; border-color: var(--line-strong); background: color-mix(in srgb, var(--bg) 70%, transparent); box-shadow: none; }

.phone { position: absolute; right: 0; top: 0; width: 300px; height: 640px; padding: var(--s-75); border-radius: var(--r-4xl); background: #1C1922; box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .08); z-index: 3; }
.phone-screen { position: relative; height: 100%; overflow: hidden; border-radius: var(--r-3xl); background: var(--canvas); display: flex; flex-direction: column; }
.ph-status { display: flex; justify-content: space-between; align-items: center; padding: var(--s-100) var(--s-300) var(--s-50); font-size: 12px; line-height: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ph-sys { display: flex; gap: var(--s-25); }
.ph-sys i { width: 4px; height: 8px; border-radius: 1px; background: var(--ink); }
.ph-sys i:nth-child(2) { height: 10px; } .ph-sys i:nth-child(3) { width: 16px; height: 8px; border-radius: 2px; }
/* the app's welcome card (frame 1038652, ledger #62): the town at dusk in a photo, the day, its pulse and the greeting */
.ph-welcome { position: relative; height: 150px; margin: var(--s-50) var(--s-100) var(--s-75); border-radius: 22px; overflow: hidden; background: #3B1E63; }
.ph-welcome img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.ph-welcome::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 10, 27, .05) 30%, rgba(18, 10, 27, .88)); }
.ph-welcome > div { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; display: grid; gap: 1px; color: #fff; }
.ph-kicker { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #FFD7A1; }
.ph-greet { font-size: 24px; line-height: 28px; font-weight: 700; letter-spacing: -.02em; }
.ph-sun { font-size: 12px; line-height: 16px; font-weight: 500; color: rgba(255, 255, 255, .8); }
.ph-doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-50); margin: 0 var(--s-100) var(--s-50); }
.ph-doors span { display: grid; padding: var(--s-75); border-radius: var(--r-lg); background: var(--bg); font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-3); }
.ph-doors b { font-size: 16px; line-height: 24px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.ph-door-ghost { background: transparent !important; box-shadow: inset 0 0 0 1px var(--line-strong); }
.ph-door-ghost b { color: var(--lyng-ink) !important; }
.ph-section { padding: var(--s-75) var(--s-200) var(--s-50); font-size: 12px; line-height: 16px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.ph-rows { display: grid; gap: var(--s-50); padding: 0 var(--s-100); }
.ph-row { display: flex; align-items: center; gap: var(--s-100); padding: var(--s-75); border-radius: var(--r-xl); background: var(--bg); transition: box-shadow .3s var(--ease), transform .5s var(--ease), background-color .3s var(--ease); }
.ph-row.is-hot { box-shadow: 0 0 0 2px var(--lyng-dim), 0 8px 16px rgba(122, 44, 145, .12); transform: translateX(-2px); }
.ph-row[hidden] { display: none; }
.ph-chip { flex: none; width: 64px; white-space: nowrap; display: grid; justify-items: center; padding: var(--s-50) 0; border-radius: var(--r-md); background: var(--muted); font-size: 12px; line-height: 16px; font-variant-numeric: tabular-nums; }
.ph-chip b { font-weight: 700; color: var(--lyng-strong); }
.ph-row-text { display: grid; min-width: 0; }
.ph-row-text b { font-size: 14px; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-row-text span { font-size: 12px; line-height: 16px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-offer { margin: var(--s-75) var(--s-100) 0; padding: var(--s-100); border-radius: var(--r-xl); background: var(--bg); border: 1px dashed var(--line-strong); display: grid; gap: var(--s-25); transition: border-color .3s var(--ease), background-color .3s var(--ease); }
.ph-offer.is-hot { border-style: solid; border-color: var(--lyng); background: var(--lyng-soft); }
.ph-offer-tag { font-size: 12px; line-height: 16px; font-weight: 700; color: var(--lyng-ink); }
.ph-offer b { font-size: 14px; line-height: 20px; }
.ph-offer span:last-child { font-size: 12px; line-height: 16px; color: var(--ink-3); }

/* hero entrance (B7) */
/* the hero rises in on its first paint, in CSS, so the headline never waits for the JS (it is the largest paint) */
html.js:not(.reduced) .nb [data-rise] { animation: riseIn .8s var(--ease) both; }
html.js:not(.reduced) .nb [data-rise]:nth-child(2) { animation-delay: .06s; }
html.js:not(.reduced) .nb [data-rise]:nth-child(3) { animation-delay: .12s; }
html.js:not(.reduced) .nb [data-rise]:nth-child(4) { animation-delay: .18s; }
html.js:not(.reduced) .nb [data-rise]:nth-child(5) { animation-delay: .24s; }
@keyframes riseIn { from { opacity: .01; transform: translateY(24px); } }
html.js:not(.reduced) .phone { opacity: 0; transform: translateY(24px) scale(.985); filter: blur(6px); }
html.js:not(.reduced) .threads.is-in .phone { opacity: 1; transform: none; filter: none; transition: opacity .6s var(--ease) .2s, transform .9s var(--ease) .2s, filter .8s var(--ease) .2s; }
html.js:not(.reduced) .hv-chip { opacity: 0; }
html.js:not(.reduced) .threads.is-in .hv-chip { opacity: 1; transition: opacity .7s var(--ease), transform .5s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease); }
html.js:not(.reduced) .threads.is-in .hv-chip-1 { transition-delay: .5s, 0s, 0s, 0s; } html.js:not(.reduced) .threads.is-in .hv-chip-2 { transition-delay: .6s, 0s, 0s, 0s; }
html.js:not(.reduced) .threads.is-in .hv-chip-3 { transition-delay: .7s, 0s, 0s, 0s; } html.js:not(.reduced) .threads.is-in .hv-chip-4 { transition-delay: 1s, 0s, 0s, 0s; }

@media (max-width: 1180px) { .hv-chips, .hv-chip { width: 152px; } }
@media (max-width: 960px) {
  .hero-visual { height: 640px; width: 100%; max-width: 480px; margin-inline: auto; }
}
@media (max-width: 560px) {
  .hero-visual { max-width: 300px; height: 640px; }
  .hv-chips, .hv-wires { display: none; }
  .hero-visual::before { right: -130px; width: 420px; height: 420px; margin-top: -210px; }
  .phone { right: auto; left: 0; }
}

/* reveals (B7) */
html.js:not(.reduced) [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js:not(.reduced) [data-reveal].is-in { opacity: 1; transform: none; }
html.js.reduced [data-reveal], html.js.reduced [data-rise] { transition: opacity .3s linear; }

/* stories, the lyng band */
.stories { position: relative; overflow: clip; background: var(--night); color: var(--white); padding: var(--s-900) 0; }
.stories-label { font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: .01em; color: var(--lyng-dim); margin-bottom: var(--s-700); }
.beats { display: grid; gap: var(--s-800); }
.beat { display: grid; gap: var(--s-200); max-width: 880px; }
.beat:nth-child(2) { margin-left: auto; text-align: right; }
.beat-line { font-size: 30px; line-height: 36px; font-weight: 500; color: rgba(255, 255, 255, .7); letter-spacing: -.01em; }
.beat-punch { font-size: 48px; line-height: 1; font-weight: 700; letter-spacing: -.03em; }
.stories-close { margin-top: var(--s-900); display: grid; gap: var(--s-300); }
.stories-close p:first-child { max-width: 760px; font-size: 30px; line-height: 36px; font-weight: 500; color: rgba(255, 255, 255, .78); }
.alt { font-size: clamp(56px, 16vw, 128px); line-height: 1; font-weight: 700; letter-spacing: -.05em; text-transform: uppercase; }
@media (max-width: 768px) {
  .stories { padding: var(--s-800) 0; }
  .beats { gap: var(--s-600); }
  .beat:nth-child(2) { text-align: left; margin-left: 0; }
  .beat-line { font-size: 20px; line-height: 28px; }
  .beat-punch { font-size: 30px; line-height: 36px; }
  .stories-close { margin-top: var(--s-700); }
  .stories-close p:first-child { font-size: 20px; line-height: 28px; }

}

/* sections */
.versus, .benefits, .threads, .live, .faq { padding: var(--s-900) 0; }
.pro-band { padding: var(--s-800) 0; }
@media (max-width: 768px) { .versus, .benefits, .threads, .live, .faq { padding: var(--s-800) 0; } .pro-band { padding: var(--s-700) 0; } }

/* versus */
.vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-300); }
.vs-col { border-radius: var(--r-3xl); padding: var(--s-300) var(--s-300) 0; overflow: hidden; }
.vs-noise { background: var(--muted); }
.vs-town { background: var(--lyng-soft); }
.vs-label { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-75); font-size: 18px; line-height: 28px; font-weight: 700; padding-bottom: var(--s-200); }
.vs-label span { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-3); margin-left: auto; }
.vs-label .i { width: 20px; height: 20px; color: #C0252E; }
.vs-label .mark { width: 28px; height: auto; color: var(--lyng-ink); }
.vs-window { height: 480px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 80%, transparent); mask-image: linear-gradient(180deg, transparent, #000 12%, #000 80%, transparent); }
.vs-track { display: grid; gap: var(--s-100); padding-block: var(--s-200); }
html.js:not(.reduced) .vs-track { animation: rise 40s linear infinite; }
html.js:not(.reduced) .vs-town .vs-track { animation-duration: 56s; }
.vs-grid.is-paused .vs-track { animation-play-state: paused; }
@keyframes rise { to { transform: translateY(-50%); } }
.nz { display: flex; gap: var(--s-100); align-items: center; padding: var(--s-100); border-radius: var(--r-xl); background: var(--bg); filter: grayscale(1); opacity: .62; }
.nz img { width: 96px; height: 64px; object-fit: cover; border-radius: var(--r-md); flex: none; }
.nz > span { display: grid; min-width: 0; }
.nz em { font-size: 12px; line-height: 16px; color: var(--ink-3); font-weight: 600; }
.nz b { font-size: 16px; line-height: 24px; }
.nz span span { font-size: 12px; line-height: 16px; color: var(--ink-3); }
.vs-noise .vs-track { position: relative; }
.tf-card { display: flex; gap: var(--s-100); align-items: center; padding: var(--s-100); border-radius: var(--r-xl); background: var(--bg); box-shadow: var(--shadow); }
.tf-art, .mq-art { flex: none; display: grid; place-items: center; overflow: hidden; background: var(--canvas); color: var(--ink-3); }
.tf-art { width: 96px; height: 64px; border-radius: var(--r-md); }
.tf-art img, .mq-art img { width: 100%; height: 100%; object-fit: cover; }
.tf-art .i { width: 24px; height: 24px; }
.tf-body { display: grid; min-width: 0; }
.tf-kicker, .mq-kicker { font-size: 12px; line-height: 16px; color: var(--lyng-ink); font-variant-numeric: tabular-nums; }
.tf-kicker b, .mq-kicker b { font-weight: 700; }
.tf-title { font-size: 16px; line-height: 24px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf-by { font-size: 12px; line-height: 16px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.motif-food { color: #A0580A; } .motif-music { color: var(--lyng-ink); } .motif-nature { color: var(--ok); } .motif-kids { color: #2457B5; } .motif-sport { color: #C0252E; } .motif-books { color: #5E1F73; }
@media (max-width: 768px) { .vs-grid { grid-template-columns: 1fr; } .vs-window { height: 320px; } .vs-label span { margin-left: 0; width: 100%; } }

/* tagline (B11) */
.tagline { padding: var(--s-900) 0; background: var(--bg); }
.tl { max-width: 880px; font-size: 60px; line-height: 1; font-weight: 700; letter-spacing: -.03em; }
.tl-line { display: block; }
.tl-line + .tl-line { margin-top: var(--s-200); }
.tl-w { color: var(--dim-word); transition: color .5s var(--ease); }
.tl-w.is-lit { color: var(--ink); }
.tl-line:last-child .tl-w.is-lit { color: var(--lyng-ink); }
html:not(.js) .tl-w, html.reduced .tl-w { color: var(--ink); }
@media (max-width: 768px) { .tagline { padding: var(--s-800) 0; } .tl { font-size: 36px; line-height: 40px; } }

/* cards + bento */
.card { background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)); border: 1px solid var(--line); border-radius: var(--r-3xl); box-shadow: var(--glow); }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s-300); }
.bento .card { display: flex; flex-direction: column; gap: var(--s-300); padding: var(--s-300); overflow: hidden; min-height: 440px; }
.b-reach { grid-column: span 7; } .b-offer { grid-column: span 5; } .b-sync { grid-column: span 5; } .b-stats { grid-column: span 7; }
.card-text { display: grid; gap: var(--s-75); max-width: 440px; }
.card-text h3 { font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -.015em; }
.card-text p { color: var(--ink-2); }
.viz { position: relative; flex: 1; min-height: 240px; border-radius: var(--r-2xl); background: var(--canvas); overflow: hidden; isolation: isolate; }
.viz-stat { position: absolute; left: var(--s-200); bottom: var(--s-200); right: var(--s-200); display: flex; align-items: baseline; gap: var(--s-75); flex-wrap: wrap; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.viz-stat b { font-size: 24px; line-height: 32px; color: var(--ink); font-variant-numeric: tabular-nums; }
.viz-stat em { font-size: 12px; line-height: 16px; padding: 0 var(--s-50); border-radius: var(--r-sm); background: var(--muted); color: var(--ink-3); font-weight: 600; }
@media (max-width: 960px) { .bento .card { grid-column: 1 / -1; min-height: 0; } .viz { min-height: 280px; } }

/* reach story */
.reach-field { position: absolute; inset: var(--s-300) var(--s-300) 64px; display: grid; grid-template-columns: repeat(14, 1fr); align-content: center; gap: var(--s-100); }
.reach-field i { justify-self: center; width: 8px; height: 8px; border-radius: var(--r-full); background: var(--line); transition: background-color .5s var(--ease), transform .5s var(--ease); }
.reach-field i.is-lit { background: var(--lyng); transform: scale(1.25); }
.reach-shop { position: absolute; left: 50%; top: calc(50% - 20px); width: 48px; height: 48px; margin: -24px 0 0 -24px; display: grid; place-items: center; border-radius: var(--r-xl); background: var(--lyng); color: var(--white); box-shadow: 0 8px 24px rgba(122, 44, 145, .35); z-index: 2; }
.reach-shop .i { width: 24px; height: 24px; }
.reach-ring { position: absolute; left: 50%; top: calc(50% - 20px); width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: var(--r-full); border: 2px solid var(--lyng-ink); opacity: 0; }
html.js:not(.reduced) [data-story].is-live .reach-ring { animation: ring 2.4s var(--ease) infinite; }
html.js:not(.reduced) [data-story].is-live .reach-ring.r2 { animation-delay: 1.2s; }
@keyframes ring { from { transform: scale(1); opacity: .55; } to { transform: scale(6); opacity: 0; } }

/* offer story */
.viz-offer { display: grid; place-items: center; padding: var(--s-300) var(--s-300) 64px; }
.of-card { position: relative; width: 100%; max-width: 320px; display: grid; gap: var(--s-50); padding: var(--s-200); border-radius: var(--r-2xl); background: var(--bg); box-shadow: var(--shadow); overflow: hidden; }
.of-tag { display: inline-flex; align-items: center; gap: var(--s-50); font-size: 12px; line-height: 16px; font-weight: 700; color: var(--lyng-ink); }
.of-tag .i { width: 16px; height: 16px; }
.of-card > b { font-size: 18px; line-height: 28px; }
.of-meta { font-size: 14px; line-height: 20px; color: var(--ink-3); }
.of-code { margin-top: var(--s-100); display: flex; align-items: center; gap: var(--s-100); padding: var(--s-100); border-radius: var(--r-lg); background: var(--canvas); }
.of-qr .i { width: 40px; height: 40px; }
.of-chars { font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.of-caret { width: 2px; height: 24px; margin-left: -8px; background: var(--lyng); opacity: 0; }
[data-story].is-typing .of-caret { opacity: 1; }
.of-scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--lyng); box-shadow: 0 0 12px var(--lyng); opacity: 0; }
.of-done { position: absolute; right: var(--s-200); top: var(--s-200); display: inline-flex; align-items: center; gap: var(--s-50); padding: var(--s-25) var(--s-75); border-radius: var(--r-md); background: var(--ok-bg); color: var(--ok); font-size: 14px; line-height: 20px; font-weight: 700; opacity: 0; transform: scale(.86); filter: blur(4px); transition: opacity .5s var(--ease), transform .5s var(--ease), filter .5s var(--ease); }
.of-done .i { width: 16px; height: 16px; }
[data-story].is-done .of-done { opacity: 1; transform: none; filter: none; }

/* sync story */
.viz-sync { display: grid; grid-template-columns: 1fr 32px 1fr; align-items: center; gap: var(--s-75); padding: var(--s-300); }
.sy-site { border-radius: var(--r-xl); background: var(--bg); box-shadow: var(--shadow); overflow: hidden; font-size: 12px; line-height: 16px; }
.sy-bar { display: flex; align-items: center; gap: var(--s-50); padding: var(--s-75); background: var(--muted); color: var(--ink-3); white-space: nowrap; overflow: hidden; }
.sy-bar i { width: 6px; height: 6px; border-radius: var(--r-full); background: var(--line-strong); flex: none; }
.sy-bar span { margin-left: var(--s-50); overflow: hidden; text-overflow: ellipsis; }
.sy-site ul { display: grid; gap: var(--s-75); padding: var(--s-100); }
.sy-site li { display: grid; color: var(--ink-2); }
.sy-site li b { color: var(--ink-3); }
.sy-wire { width: 100%; height: 40px; overflow: visible; }
.sy-wire path { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: .06 .04; vector-effect: non-scaling-stroke; }
.sy-wire circle { fill: var(--lyng); opacity: 0; }
.sy-app { display: grid; gap: var(--s-75); }
.sy-app li { display: grid; padding: var(--s-75) var(--s-100); border-radius: var(--r-lg); background: var(--bg); box-shadow: var(--shadow); font-size: 14px; line-height: 20px; opacity: 0; transform: translateY(10px); filter: blur(4px); transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease); }
.sy-app li span { font-size: 12px; line-height: 16px; color: var(--town-ui); }
.sy-app li.is-in { opacity: 1; transform: none; filter: none; }
html:not(.js) .sy-app li, html.reduced .sy-app li { opacity: 1; transform: none; filter: none; }
@media (max-width: 420px) { .viz-sync { grid-template-columns: 1fr; } .sy-wire { display: none; } }

/* stats story */
.viz-stats { padding: var(--s-300) var(--s-300) 64px; display: grid; align-content: center; }
.st-bars { display: grid; gap: var(--s-200); }
.st-bars li { display: grid; grid-template-columns: 96px 1fr 48px; align-items: center; gap: var(--s-100); font-size: 14px; line-height: 20px; color: var(--ink-2); }
.st-bars b { text-align: right; font-size: 18px; line-height: 28px; color: var(--ink); font-variant-numeric: tabular-nums; }
.st-track { height: 24px; border-radius: var(--r-md); background: var(--muted); overflow: hidden; }
.st-fill { display: block; height: 100%; width: 100%; border-radius: var(--r-md); background: var(--lyng); transform-origin: left; transform: scaleX(var(--f, 1)); }
.st-bars li:nth-child(2) .st-fill { background: #9A55AF; } .st-bars li:nth-child(3) .st-fill { background: var(--lyng-strong); }

/* how */
.how-grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s-700); align-items: start; }
.how-head { position: sticky; top: 120px; display: grid; gap: var(--s-200); justify-items: start; }
.steps { position: relative; display: grid; gap: var(--s-300); }
.step { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: var(--s-300); padding: var(--s-300); border-radius: var(--r-3xl); background: var(--canvas); }
.step-n { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--r-xl); background: var(--lyng); color: var(--white); font-size: 20px; line-height: 28px; font-weight: 700; }
.step h3 { font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -.015em; margin-bottom: var(--s-75); }
.step p { color: var(--ink-2); font-size: 18px; line-height: 28px; }
@media (max-width: 960px) { .how-grid { grid-template-columns: 1fr; gap: var(--s-600); } .how-head { position: static; } }
@media (max-width: 480px) { .step { grid-template-columns: 1fr; gap: var(--s-200); } }

/* faq: side by side, no accordion */
.faq-grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s-700); align-items: start; }
.faq-head { position: sticky; top: 120px; display: grid; gap: var(--s-200); }
.qa { display: grid; gap: var(--s-300); }
.qa > div { display: grid; gap: var(--s-75); padding: var(--s-300); border-radius: var(--r-2xl); background: var(--canvas); }
.qa dt { font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -.01em; }
.qa dd { color: var(--ink-2); font-size: 16px; line-height: 24px; }
@media (max-width: 960px) { .faq-grid { grid-template-columns: 1fr; gap: var(--s-400); } .faq-head { position: static; } }

/* close */
.close { position: relative; background: var(--night); color: var(--white); padding: var(--s-900) 0 160px; overflow: clip; }
.close-inner { display: grid; gap: var(--s-300); justify-items: start; position: relative; z-index: 1; }
.close-h { max-width: 680px; font-size: 72px; line-height: 1; font-weight: 700; letter-spacing: -.035em; }
.close-inner > p { max-width: 560px; font-size: 20px; line-height: 28px; color: rgba(255, 255, 255, .82); }
.close-act { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-300); padding-top: var(--s-75); }
.link-light { color: var(--white); font-weight: 600; text-underline-offset: 4px; }
.link-light:focus-visible { outline-color: var(--white); }
.close-line { position: absolute; left: 0; right: 0; bottom: var(--s-300); width: 100%; height: 120px; }
.close-line .hl-base { stroke: rgba(255, 255, 255, .24); animation: none; stroke-dashoffset: 0; }
.close-line .hl-beat { stroke: var(--bg); filter: drop-shadow(0 0 6px rgba(255, 255, 255, .7)); }
@media (max-width: 768px) { .close { padding: var(--s-800) 0 144px; } .close-h { font-size: 48px; } }

/* footer */
.foot { padding: var(--s-700) 0 var(--s-400); background: var(--bg); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s-400); }
.foot-grid > div { display: grid; gap: var(--s-200); align-content: start; max-width: 360px; color: var(--ink-2); }
.foot-small { font-size: 14px; line-height: 20px; color: var(--ink-3); }
.foot-links { display: grid; gap: var(--s-75); align-content: start; }
.foot-links a { color: var(--ink-2); text-decoration: none; font-size: 14px; line-height: 20px; transition: color .3s var(--ease); }
.foot-links a:hover { color: var(--lyng-ink); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-100); margin-top: var(--s-600); padding-top: var(--s-300); font-size: 12px; line-height: 16px; color: var(--ink-3); }
@media (max-width: 768px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* 404 */
.nf-main { min-height: 100svh; display: grid; place-content: center; justify-items: start; gap: var(--s-300); padding: var(--s-900) var(--gutter); max-width: 680px; margin: 0 auto; }
.nf-main .mark { width: 96px; color: var(--lyng-ink); }
.nf-main h1 { font-size: 48px; line-height: 1; font-weight: 700; letter-spacing: -.03em; }
.nf-main p { font-size: 18px; line-height: 28px; color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .hl-beat { display: none; }
  .hl-base { stroke-dashoffset: 0; }
}

/* ================= bypuls.app ================= */

/* fields (the town pickers) */
.field { display: grid; gap: var(--s-75); }
.field-label { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink-2); }
.field-box { position: relative; display: flex; align-items: center; gap: var(--s-75); height: 48px; padding: 0 var(--s-100); border: 1px solid var(--line-strong); border-radius: var(--r-xl); background: var(--bg); transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.field-box:focus-within { border-color: var(--lyng); box-shadow: 0 0 0 4px var(--lyng-soft); }
.field-box .i { color: var(--ink-3); width: 20px; height: 20px; }
.field-box select { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font: inherit; font-size: 16px; line-height: 24px; color: var(--ink); outline: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
.field-box .i:last-child { position: absolute; right: var(--s-100); width: 16px; height: 16px; pointer-events: none; }

/* Alle trådene: byens steder sender deres ting ind i Pulsen */
.threads { background: var(--canvas); overflow: clip; }
.threads-grid { display: grid; grid-template-columns: minmax(0, 1fr) 560px; gap: var(--s-700); align-items: center; }
.threads-copy { display: grid; gap: var(--s-200); justify-items: start; }
.threads .steps { margin-top: var(--s-200); width: 100%; gap: var(--s-100); }
.threads .step { padding: var(--s-200); background: var(--bg); gap: var(--s-200); grid-template-columns: 40px 1fr; align-items: center; }
.threads .step-n { width: 40px; height: 40px; font-size: 18px; }
.threads .step h3 { font-size: 20px; line-height: 28px; margin-bottom: 0; }
.threads .step p { font-size: 16px; line-height: 24px; }
.threads .hero-visual::before { background: var(--lyng-soft); }
@media (max-width: 1180px) { .threads-grid { grid-template-columns: minmax(0, 1fr) 480px; gap: var(--s-400); } }
@media (max-width: 960px) { .threads-grid { grid-template-columns: 1fr; gap: var(--s-600); } }

/* Du er ajour: shows when the bars are full */
.viz-stat.ajour { align-items: center; color: var(--ok); font-weight: 700; opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.viz-stat.ajour .i { width: 20px; height: 20px; }
[data-story].is-done .viz-stat.ajour { opacity: 1; transform: none; }
html.reduced .viz-stat.ajour { opacity: 1; transform: none; }

/* Se din by: the one live part, when someone picks a town */
.live { background: var(--bg); }
.live-box { max-width: 760px; padding: var(--s-300); box-shadow: var(--shadow); display: grid; gap: var(--s-200); }
.live-box .field { max-width: 320px; }
.live-box .field-box { padding-right: var(--s-400); }
.live-box .field-box .i:first-child { color: var(--lyng-ink); }
.live-sum { font-size: 16px; line-height: 24px; color: var(--ink-2); min-height: 24px; }
.live-list { display: grid; gap: var(--s-75); }
.live-item { display: flex; align-items: center; gap: var(--s-100); padding: var(--s-75); border-radius: var(--r-xl); background: var(--canvas); }
.live-chip { flex: none; width: 76px; display: grid; justify-items: center; padding: var(--s-50) 0; border-radius: var(--r-md); background: var(--bg); font-size: 12px; line-height: 16px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.live-chip b { font-weight: 700; color: var(--lyng-ink); }
.live-text { display: grid; min-width: 0; }
.live-text b { font-size: 16px; line-height: 24px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-text span { font-size: 13px; line-height: 18px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-empty { padding: var(--s-200); border-radius: var(--r-xl); background: var(--canvas); color: var(--ink-2); }
.live-skel { height: 56px; border-radius: var(--r-xl); background: var(--muted); }
html.js:not(.reduced) .live-skel { animation: glim 2.4s var(--ease) infinite; }
@keyframes glim { 50% { opacity: .55; } }
.live-note { font-size: 13px; line-height: 18px; color: var(--ink-3); }
html:not(.js) .live-box { display: none; }

/* for butikker og foreninger: one band, a link to bypuls.pro */
.pro-band { background: var(--bg); }
.pro-grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s-700); padding: var(--s-600); border-radius: var(--r-3xl); background: var(--lyng-soft); }
.pro-grid > div:first-child { display: grid; gap: var(--s-200); align-content: start; }
.pro-body { display: grid; gap: var(--s-200); justify-items: start; }
@media (max-width: 960px) { .pro-grid { grid-template-columns: 1fr; gap: var(--s-300); padding: var(--s-300); } }

/* close: the app */
.badges { display: flex; flex-wrap: wrap; gap: var(--s-200); padding-top: var(--s-75); }
.badges a { display: block; border-radius: var(--r-lg); }
.badges img { height: 48px; width: auto; }
.badges a:focus-visible { outline-color: var(--white); }
.close-note { font-size: 14px !important; line-height: 20px !important; color: rgba(255, 255, 255, .72) !important; }
.close .link-light { display: inline-flex; align-items: center; gap: var(--s-75); }
.close .link-light .i { width: 16px; height: 16px; }
.foot-legal a { color: inherit; }

/* the corner chat (data/site.json chat): fixed questions (the FAQ's, as <details>) and free questions to bypuls-api; without JS #chat:target opens it */
.chat-launch { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; display: inline-flex; align-items: center; gap: var(--s-75); padding: var(--s-100) var(--s-200) var(--s-100) var(--s-100); border-radius: var(--r-full); background: var(--lyng); color: var(--white); font-weight: 600; text-decoration: none; box-shadow: var(--shadow-lg); transition: background-color .3s var(--ease), opacity .3s var(--ease), transform .4s var(--ease); }
.chat-launch .i { width: 22px; height: 22px; }
.chat-launch:hover { background: var(--lyng-strong); }
.chat-launch[aria-expanded="true"] { opacity: 0; pointer-events: none; transform: scale(.9); }
@media (max-width: 640px) { .chat-launch { padding: var(--s-100); } .chat-launch span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.chat { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 70; width: min(400px, calc(100vw - 32px)); max-height: min(680px, calc(100svh - 32px)); display: none; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-3xl); background: var(--bg); color: var(--ink); box-shadow: var(--shadow-lg); }
.chat:target, .chat.is-open { display: flex; }
html.js .chat:target:not(.is-open) { display: none; }
html.js:not(.reduced) .chat.is-open { animation: chatIn .35s var(--ease); }
@keyframes chatIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.chat-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-100); padding: var(--s-100) var(--s-100) var(--s-100) var(--s-300); border-bottom: 1px solid var(--line); }
.chat-h { font-size: 18px; line-height: 24px; font-weight: 700; letter-spacing: -.01em; }
.chat-h:focus { outline: none; }
.chat-x { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r-full); background: var(--canvas); color: var(--ink-2); }
.chat-x .i { width: 18px; height: 18px; }
.chat-x:hover { background: var(--muted); }
.chat-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--s-200) var(--s-200) var(--s-100); }
.chat-hello { margin-bottom: var(--s-100); font-size: 14px; line-height: 20px; color: var(--ink-2); }
.chat-fixed { display: grid; gap: var(--s-75); }
.chat .qa-item { border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--canvas); }
.chat .qa-item[open] { background: var(--lyng-soft); border-color: var(--lyng-dim); }
.chat .qa-item summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s-100); padding: var(--s-100) var(--s-200); font-size: 14px; line-height: 20px; font-weight: 600; cursor: pointer; list-style: none; border-radius: var(--r-xl); }
.chat .qa-item summary::-webkit-details-marker { display: none; }
.chat .qa-item summary::after { content: ""; width: 7px; height: 7px; flex: none; border-right: 2px solid var(--lyng-ink); border-bottom: 2px solid var(--lyng-ink); transform: translateY(-2px) rotate(45deg); transition: transform .4s var(--ease); }
.chat .qa-item[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.chat .qa-item p { padding: 0 var(--s-200) var(--s-100); font-size: 14px; line-height: 20px; color: var(--ink-2); }
.chat .qa-item a, .chat-msg a { color: var(--lyng-ink); }
.chat-log { display: grid; gap: var(--s-75); margin-top: var(--s-100); }
.chat-log:empty { display: none; }
.chat-msg { max-width: 88%; padding: var(--s-100) var(--s-200); border-radius: var(--r-2xl); font-size: 14px; line-height: 20px; white-space: pre-line; overflow-wrap: anywhere; }
.chat-msg p + p { margin-top: var(--s-75); }
.chat-msg.is-user { justify-self: end; border-bottom-right-radius: var(--r-sm); background: var(--lyng); color: var(--white); }
.chat-msg.is-user a { color: var(--white); }
.chat-msg.is-bot { justify-self: start; border-bottom-left-radius: var(--r-sm); background: var(--canvas); }
.chat-msg.is-error { justify-self: start; background: var(--err-bg); color: var(--err-fg); }
.chat-msg.is-note { justify-self: stretch; max-width: none; background: var(--lyng-soft); }
.chat-restart { margin-top: var(--s-75); padding: var(--s-75) var(--s-200); border: 0; border-radius: var(--r-full); background: var(--lyng); color: var(--white); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.chat-dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.chat-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
html.js:not(.reduced) .chat-dots i { animation: chatDot 1.2s ease-in-out infinite; }
html.js:not(.reduced) .chat-dots i:nth-child(2) { animation-delay: .15s; } html.js:not(.reduced) .chat-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes chatDot { 0%, 80%, 100% { opacity: .35; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-form { display: grid; gap: var(--s-75); padding: var(--s-100) var(--s-200) var(--s-200); border-top: 1px solid var(--line); background: var(--bg); }
.chat-ai, .chat-note { font-size: 12px; line-height: 16px; color: var(--ink-3); }
.chat-ai a, .chat-note a { color: var(--ink-2); }
.chat-row { display: flex; align-items: flex-end; gap: var(--s-75); }
.chat-row textarea { flex: 1; min-width: 0; max-height: 120px; padding: var(--s-100); border: 1px solid var(--line-strong); border-radius: var(--r-xl); background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; line-height: 22px; resize: none; }
.chat-row textarea:focus { outline: none; border-color: var(--lyng); box-shadow: 0 0 0 4px var(--lyng-soft); }
.chat-row textarea:disabled { opacity: .5; }
.chat-send { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: var(--r-full); background: var(--lyng); color: var(--white); cursor: pointer; }
.chat-send .i { width: 20px; height: 20px; }
.chat-send:disabled { opacity: .45; cursor: default; }
@media (max-width: 560px) { .chat { left: 8px; right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); width: auto; max-height: calc(100svh - 16px); border-radius: var(--r-3xl); } }

/* dusk: the rules that must come after the ones they override */
  .motif-food { color: #EBAB66; } .motif-music, .motif-books { color: var(--lyng-ink); } .motif-nature { color: var(--ok); } .motif-kids { color: #93B4F6; } .motif-sport { color: #F2939A; }
  .nz { opacity: .5; }

/* ---------- Natbyen's hero and the zoom into the town (plan docs/plans/2026-10-29-natbyen-hero.md). The night is the same
   on the dusk page: the map is dots on dark, as in Natbyen. map.js sets the zoom's variables (--z, --tx, --ty, --map,
   --copy, --stars, --fly, --rv, --dio, --dcopy) from the scroll, a tap, or at once with Reduce Motion. */
.nb { --nb-night: #120A1B; --nb-text: #F6EEFA; --nb-text-2: rgba(246, 238, 250, .74); --nb-text-3: rgba(246, 238, 250, .56); --nb-line: rgba(233, 213, 242, .16);
  --nb-lilac: #D9A5EA; --nb-amber: #FFB45E; --nb-amber-2: #FFD7A1;
  position: relative; color: var(--nb-text); background: radial-gradient(60% 55% at 72% 55%, rgba(122, 44, 145, .32), transparent 70%), var(--nb-night); }
.nb-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); grid-template-rows: 1fr auto; align-items: center; column-gap: var(--s-500);
  min-height: 100svh; max-width: 1360px; margin-inline: auto; padding: 112px clamp(20px, 5vw, 80px) var(--s-300); overflow: clip; }
.nb .wrap { width: auto; max-width: 600px; margin: 0; padding: 0; }
.nb-copy, .nb-dio-copy { grid-column: 1; grid-row: 1; position: relative; z-index: 3; display: grid; justify-items: start; gap: var(--s-200); }
.nb-copy { opacity: var(--copy, 1); transform: translateY(calc((1 - var(--copy, 1)) * -32px)); }
.nb.is-away .nb-copy { visibility: hidden; }
.nb-chip { display: inline-grid; grid-template-columns: auto minmax(0, auto) auto; align-items: center; gap: 0 8px; padding: 6px 14px 6px 12px; border-radius: 20px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--nb-line); font-size: 14px; line-height: 20px; color: var(--nb-text-2); }
.nb-chip b { color: var(--nb-text); font-variant-numeric: tabular-nums; }
.nb-chip small { font-size: 12px; color: var(--nb-text-3); }
.nb-live { width: 8px; height: 8px; border-radius: var(--r-full); background: var(--nb-amber); box-shadow: 0 0 10px var(--nb-amber); }
.nb-h { font-size: clamp(44px, 6vw, 80px); line-height: .98; font-weight: 700; letter-spacing: -.04em; color: #fff; }
.nb-h span { display: block; }
.nb .glow { background: linear-gradient(92deg, var(--nb-lilac) 0%, var(--nb-amber-2) 62%, var(--nb-amber) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nb-lead { font-size: 19px; line-height: 28px; color: var(--nb-text-2); max-width: 540px; }
.nb-get { margin-top: var(--s-100); font-size: 15px; font-weight: 700; color: #fff; }
.nb-stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.nb-badge img { display: block; height: 44px; width: auto; }
.nb-qr { display: inline-flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: var(--r-xl); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--nb-line); color: var(--nb-text); text-decoration: none; }
.nb-qr img { width: 72px; height: 72px; padding: 6px; border-radius: 12px; background: #fff; }
.nb-qr span { display: grid; font-size: 14px; line-height: 20px; } .nb-qr small { color: var(--nb-text-3); font-size: 13px; }
.nb-fine { font-size: 13px; color: var(--nb-text-3); }
.nb-town { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 6px 14px 6px 6px; border-radius: var(--r-full); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--nb-line); font-size: 14px; color: var(--nb-text-2); }
.nb-town b { color: #fff; }
.nb-town-i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-full); background: #B5263C; color: #fff; }
.nb-town-i .i { width: 16px; height: 16px; }
.nb-town-pick { position: relative; color: var(--nb-amber-2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.nb-town-pick select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.nb-town-pick:focus-within { outline: 2px solid var(--nb-amber); outline-offset: 3px; border-radius: 4px; }

/* the dotted Denmark (the build's), the towns' glow and the pin */
.nb-map { grid-column: 2; grid-row: 1; position: relative; z-index: 1; width: 100%; max-width: calc((100svh - 230px) * 600 / 520); justify-self: center; opacity: var(--map, 1); }
.nb-dk { display: block; width: 100%; height: auto; overflow: visible; transform-origin: var(--ox, 50%) var(--oy, 50%); transform: translate(var(--tx, 0), var(--ty, 0)) scale(var(--z, 1)); }
.nb-land { fill: none; stroke: rgba(217, 165, 234, .3); stroke-width: 2.3; stroke-linecap: round; }
.nb-inset { fill: none; stroke: var(--nb-line); stroke-width: 1; }
.nb-t { fill: #FFF6E8; opacity: .9; filter: drop-shadow(0 0 3px rgba(255, 215, 161, .85)); }
.nb-t.is-on { fill: var(--nb-amber); }
.nb-pin { opacity: var(--copy, 1); }
.nb-pin-glow { fill: rgba(255, 180, 94, .22); }
.nb-pin-dot { fill: var(--nb-amber); filter: drop-shadow(0 0 6px rgba(255, 180, 94, .9)); }
.nb-pin-box { fill: rgba(18, 10, 27, .88); stroke: var(--nb-line); stroke-width: .8; }
.nb-pin-mark { fill: var(--nb-amber); }
.nb-pin-t { fill: var(--nb-text); font: 600 10px var(--font); }
html.js:not(.reduced) .nb-pin-glow { transform-box: fill-box; transform-origin: center; animation: nbGlow 2.6s var(--ease) infinite; }
@keyframes nbGlow { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

/* the zoom: stars, the circle and the island with its pins */
.nb-stars { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: var(--stars, 0); transform: scale(var(--fly, 1)); }
.nb-stars i { position: absolute; left: var(--sx); top: var(--sy); width: calc(2px * var(--ss)); height: calc(2px * var(--ss)); border-radius: 50%; background: #fff; opacity: .8; }
.nb-stars i.is-gold { background: var(--nb-amber-2); }
.nb-dio { grid-column: 2; grid-row: 1; position: relative; z-index: 2; width: min(100%, 76svh); aspect-ratio: 1; justify-self: center; opacity: var(--dio, 0); pointer-events: none; }
.nb.is-town .nb-dio { pointer-events: auto; z-index: 4; }
.nb-dio::before { content: ""; position: absolute; left: 50%; top: 50%; width: calc(var(--rv, 0) * 200%); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 215, 161, .6), 0 0 48px rgba(255, 180, 94, .4); opacity: calc(1 - var(--rv, 0) / .75); pointer-events: none; }
.nb-reveal { position: absolute; inset: 0; clip-path: circle(calc(var(--rv, 0) * 100%) at 50% 50%); }
.nb-img { width: 100%; height: 100%; object-fit: contain; transform: scale(calc(1.25 - var(--rv, 0) * .33)); }
.nb-pins { position: absolute; inset: 0; }
.nb-dot { position: absolute; left: var(--x); top: var(--y); width: 34px; height: 40px; margin: -40px 0 0 -17px; padding: 0; border: 0; background: none; cursor: pointer; opacity: 0; transform: translateY(-10px); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.nb.is-town .nb-dot { opacity: 1; transform: none; }
.nb-dot::before { content: ""; position: absolute; left: 50%; top: 3px; width: 24px; height: 24px; margin-left: -12px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--lyng); box-shadow: 0 6px 14px rgba(0, 0, 0, .35), inset 0 0 0 2px rgba(255, 255, 255, .9); transition: background-color .25s var(--ease); }
.nb-dot::after { content: ""; position: absolute; left: 50%; top: 11px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #fff; }
.nb-dot:hover::before, .nb-dot.is-on::before { background: #9D4FB8; }
.nb-dot:focus-visible { outline: 2px solid var(--nb-amber); outline-offset: 2px; border-radius: 8px; }
.nb-card { position: absolute; z-index: 4; left: var(--x); top: var(--y); width: min(300px, 78vw); transform: translate(22px, -70%); display: grid; gap: 8px; padding: 12px; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.nb-card.is-left { transform: translate(calc(-100% - 22px), -70%); }
.nb-card-top { display: flex; justify-content: space-between; align-items: center; }
.nb-card-top em { padding: 2px 10px; border-radius: var(--r-full); background: #F1ECF5; font-style: normal; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.nb-card-x, .nb-card-foot button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: var(--r-full); background: #F1ECF5; color: var(--ink); cursor: pointer; }
.nb-card-x .i, .nb-card-foot .i { width: 14px; height: 14px; }
.nb-card-body { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: #F7F4FA; }
.nb-card-k { flex: none; display: grid; place-items: center; min-width: 52px; height: 52px; padding: 0 6px; border-radius: 12px; background: #F4E8F7; color: var(--lyng); font-size: 12px; font-weight: 700; }
.nb-card-body > span:last-child { display: grid; min-width: 0; line-height: 1.3; }
.nb-card-body b { font-size: 16px; } .nb-card-body small { font-size: 13px; color: var(--ink-3); }
.nb-card-foot { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.nb-card-foot span { flex: 1; }
.nb-dio-copy { opacity: var(--dcopy, 0); pointer-events: none; }
.nb.is-town .nb-dio-copy { pointer-events: auto; }
.nb-kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--nb-lilac); }
.nb-h2 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.02; font-weight: 700; letter-spacing: -.035em; color: #fff; }
.nb-h2 .glow { display: block; }
.nb-dio-copy > p:not([class]) { font-size: 18px; line-height: 27px; color: var(--nb-text-2); max-width: 480px; }
.nb-hover { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--nb-lilac); }
.nb-hover .i { width: 16px; height: 16px; }
.nb-caption { font-size: 12px; line-height: 18px; color: var(--nb-text-3); max-width: 440px; }

/* the way in: "Scroll, og kom tættere på" on a big screen, the buttons elsewhere */
.nb-acts { grid-column: 1 / -1; grid-row: 2; position: relative; z-index: 3; display: flex; justify-content: center; padding-top: var(--s-200); }
.nb-scroll { display: none; font-size: 13px; color: var(--nb-text-3); }
.nb-go, .nb-back { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 22px; border: 0; border-radius: var(--r-full); background: var(--nb-amber); color: #3B1D06; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; box-shadow: 0 10px 30px rgba(255, 180, 94, .3); }
.nb-back { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px var(--nb-line); }
.nb-go .i, .nb-back .i { width: 18px; height: 18px; }
.nb.is-scrub { height: 320svh; }
.nb.is-scrub .nb-stage { position: sticky; top: 0; height: 100svh; min-height: 0; }
.nb.is-scrub .nb-scroll { display: block; opacity: var(--copy, 1); }
.nb.is-scrub .nb-go, .nb.is-scrub .nb-back { display: none; }

/* small screens: the copy, then the map and the island in one box, then the island's words */
@media (max-width: 960px), (max-height: 639px) {
  .nb-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; row-gap: var(--s-400); padding-top: 104px; }
  .nb-copy { grid-row: 1; opacity: 1; transform: none; }
  .nb.is-away .nb-copy { visibility: visible; }
  .nb-map, .nb-dio { grid-column: 1; grid-row: 2; }
  .nb-map { max-width: none; overflow: hidden; border-radius: var(--r-3xl); }
  .nb-card, .nb-card.is-left { left: 50%; top: 100%; transform: translate(-50%, -24px); }
  .nb-dio { width: 100%; max-width: 520px; }
  .nb-dio-copy { grid-row: 3; }
  .nb-acts { grid-row: 4; padding-top: 0; }
  .nb:not(.is-zoomed) .nb-dio-copy { display: none; }
}
@media (max-width: 560px) { .nb-badge img { height: 40px; } .nb-card { width: min(260px, 70vw); } .nb-chip { grid-template-columns: auto minmax(0, 1fr); } .nb-chip small { grid-column: 2; } }

/* Reduce Motion (and the pause): no scaling or flying; the map and the island cross-fade */
.nb.is-still .nb-dk, .nb.is-still .nb-img, .nb.is-still .nb-stars { transform: none; }
.nb.is-still .nb-stars, .nb.is-still .nb-dio::before { display: none; }
.nb.is-still .nb-reveal { clip-path: none; }
.nb.is-still .nb-map, .nb.is-still .nb-dio, .nb.is-still .nb-copy, .nb.is-still .nb-dio-copy { transition: opacity .7s ease !important; }

/* the nav is dark while the night hero is under it (Natbyen), and light again after it (map.js sets .is-night) */
.nav-wrap.is-night .nav { background: rgba(27, 15, 40, .62); border-color: rgba(233, 213, 242, .16); box-shadow: 0 10px 40px rgba(0, 0, 0, .3); }
.nav-wrap.is-night .brand { color: #fff; } .nav-wrap.is-night .brand .mark { color: #D9A5EA; }
.nav-wrap.is-night .nav-links a { color: rgba(246, 238, 250, .74); }
.nav-wrap.is-night .nav-links a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-wrap.is-night .nav-links a[aria-current="true"] { background: rgba(217, 165, 234, .18); color: #fff; }
.nav-wrap.is-night .menu-btn { background: rgba(255, 255, 255, .1); } .nav-wrap.is-night .menu-lines span { background: #fff; }
/* the hero fades into the stories below, on every screen */
.nb::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(rgba(18, 10, 27, 0), var(--night)); pointer-events: none; }
.nb-acts { padding-bottom: var(--s-600); }
/* a QR is for another device: on a phone the store buttons are enough */
@media (max-width: 720px) { .nb-qr { display: none; } }
/* on a phone the whole of Denmark, Bornholm's box too, sits inside its box with room around it */
@media (max-width: 960px), (max-height: 639px) { .nb-map { padding: 6% 6% 4%; } }

/* ---------- v2's visual layer (orchestrator 29/10, ledger #44): dusk, glow, and v2's own films and pictures (Higgsfield) ---------- */
.glow { background: linear-gradient(92deg, var(--lyng-ink) 0%, var(--amber-2) 62%, var(--amber) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h2 .glow, .close-h .glow { display: inline-block; padding-bottom: .06em; }
/* a film behind a section: its poster first, the film only while seen (app.js), a shade so the words stay readable */
.sec-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.sec-shade { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(180deg, var(--night) 0%, rgba(18, 10, 27, .7) 22%, rgba(18, 10, 27, .62) 60%, var(--night) 100%); }
.stories > .wrap, .close > .wrap { position: relative; z-index: 1; }
.stories-label { color: var(--amber-2); }
.beat-line { color: rgba(255, 255, 255, .78); }
.beat-punch { text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.close .sec-shade { background: linear-gradient(180deg, var(--night) 0%, rgba(18, 10, 27, .55) 30%, rgba(18, 10, 27, .7) 100%); }
/* noise against calm: v2's two pictures over the two columns */
.vs-art { display: block; width: calc(100% + 2 * var(--s-300)); max-width: none; height: 180px; margin: calc(-1 * var(--s-300)) calc(-1 * var(--s-300)) var(--s-300); object-fit: cover; }
.vs-noise .vs-art { filter: grayscale(.3); }
.vs-col { background: rgba(255, 255, 255, .04); box-shadow: var(--glow); }
@media (max-width: 768px) { .vs-art { height: 140px; } }
/* the pause for all motion, as on bypuls.pro: pressed, the films stop and the map cross-fades */
.motion-btn { width: 40px; height: 40px; flex: none; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--ink-2); cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.motion-btn:hover { background: rgba(255, 255, 255, .14); color: var(--ink); }
.motion-btn svg { grid-area: 1 / 1; width: 16px; height: 16px; fill: currentColor; }
.motion-btn .mb-play { display: none; }
.motion-btn[aria-pressed="true"] { color: var(--amber-2); border-color: rgba(255, 180, 94, .5); }
.motion-btn[aria-pressed="true"] .mb-pause { display: none; }
.motion-btn[aria-pressed="true"] .mb-play { display: block; }
html:not(.js) .motion-btn { display: none; }

/* ---------- Pulsens hjerteslag (orchestrator 29/10, ledger #75; beat.js): the line through the town's week, a tall beat for
   a big thing and a small one for a small thing; written examples on the beats. Still (phones, Reduce Motion, the pause,
   no JS): the whole line in a track to swipe. Scrub (beat.js): pinned, the scroll moves the line past a fixed "now". ---------- */
.hb { position: relative; padding: var(--s-900) 0 var(--s-700); background: radial-gradient(70% 50% at 50% 70%, rgba(122, 44, 145, .22), transparent 70%), var(--night); color: var(--white); }
.hb-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; gap: var(--s-300) var(--s-700); margin-bottom: var(--s-600); }
.hb-head .sec-lead { margin: 0; max-width: 46ch; }
.hb-view { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); scrollbar-width: none; padding: 0 var(--gutter); }
.hb-view .bc { scroll-snap-align: center; }
.hb-view::-webkit-scrollbar { display: none; }
.hb-view:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
.hb-track { position: relative; height: 480px; }
.hb-svg { position: absolute; left: 0; bottom: 0; display: block; overflow: visible; }
.hb-ghost { fill: none; stroke: rgba(217, 165, 234, .14); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.hb-path { fill: none; stroke: var(--lyng-ink); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 10px rgba(217, 165, 234, .5)); }
.hb-dot { fill: var(--night); stroke: var(--amber-2); stroke-width: 3; display: none; }
.hb-cards { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
/* each card stands on its beat: the line's base is 80 px over the track's bottom */
.bc { position: absolute; left: var(--x); bottom: calc(80px + var(--h) + 14px); transform: translateX(-50%); display: flex; align-items: center; gap: 12px; width: 250px; padding: 10px 14px 10px 10px; border-radius: 18px; background: rgba(36, 22, 52, .92); box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(0, 0, 0, .35); }
.bc::after { content: ""; position: absolute; left: 50%; bottom: -14px; width: 2px; height: 14px; margin-left: -1px; background: var(--lyng-ink); opacity: .6; }
.bc-when { flex: none; width: 52px; height: 52px; display: grid; place-content: center; justify-items: center; border-radius: 14px; background: rgba(255, 255, 255, .07); line-height: 1.15; }
.bc-when small { font-size: 12px; font-weight: 700; text-transform: uppercase; }
.bc-when b { font-size: 15px; color: var(--white); font-variant-numeric: tabular-nums; }
.bc-body { display: grid; gap: 2px; min-width: 0; }
.bc-t { font-size: 15px; line-height: 1.25; color: var(--white); }
.bc-body > span { font-size: 12px; color: var(--ink-3); }
.bc-big { display: grid; gap: 4px; width: 240px; padding: 10px; }
.bc-top { display: grid; justify-items: start; gap: 0; padding: 10px 12px 12px; border-radius: 14px; background: linear-gradient(150deg, rgba(122, 44, 145, .55), rgba(122, 44, 145, .2)); line-height: 1.1; }
.bc-chip { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: var(--white); font-size: 12px; font-weight: 700; }
.bc-chip .i { width: 13px; height: 13px; }
.bc-top small { font-size: 12px; font-weight: 700; text-transform: uppercase; }
.bc-top b { font-size: 34px; letter-spacing: -.02em; color: var(--white); font-variant-numeric: tabular-nums; }
.bc-k { padding: 4px 4px 0; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--lyng-ink); }
.bc-big .bc-t { padding: 0 4px; font-size: 17px; }
.bc-go { justify-self: start; margin: 6px 4px 2px; padding: 7px 14px; border-radius: 999px; background: var(--ok); color: #0E2A1A; font-size: 13px; font-weight: 700; }
.bc-offer { width: 230px; padding: 12px 14px; background: rgba(255, 180, 94, .14); box-shadow: 0 0 0 1px rgba(255, 180, 94, .45), 0 18px 40px rgba(0, 0, 0, .35); }
.bc-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--amber-2); }
.bc-tag .i { width: 13px; height: 13px; }
.bc-offer::after { background: var(--amber-2); }
.hb-note { margin-top: var(--s-200); font-size: 13px; color: var(--ink-3); }

/* scrub: pinned, the line moves through the view; the cards come on as their beat passes "now" */
.hb.is-scrub { height: 300svh; padding: 0; }
.hb.is-scrub .hb-stage { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 72px; }
.hb.is-scrub .hb-view { overflow: hidden; padding: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 88%, transparent); }
.hb.is-scrub .hb-track { will-change: transform; }
.hb.is-scrub .hb-dot { display: block; }
.hb.is-scrub .hb-hint { display: none; }
.hb.is-scrub .bc { opacity: 0; translate: 0 18px; scale: .96; transition: opacity .5s var(--ease), translate .6s var(--ease), scale .6s var(--ease); }
.hb.is-scrub .bc.is-on { opacity: 1; translate: 0 0; scale: 1; }
@media (max-width: 960px) {
  .hb-head { grid-template-columns: 1fr; margin-bottom: var(--s-400); }
  .hb-track { height: 460px; }
}

/* ---------- "Sluk for støjen" (Ulrik's Uden støj, ledger #81): a switch over the versus columns; on, the noise column
   goes quiet: its feed falls away, the noise picture turns into the calm one, and the quiet's words take its place ---------- */
.vs-switch { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-100) var(--s-300); margin: 0 auto var(--s-400); padding: var(--s-100) var(--s-100) var(--s-100) var(--s-300); width: fit-content; max-width: 100%; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: 0 0 0 1px var(--line), var(--glow); }
.vs-switch p { font-size: 15px; font-weight: 600; color: var(--lyng-ink); }
.vs-toggle { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; padding: 6px 8px 6px 20px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.vs-toggle i { position: relative; width: 48px; height: 28px; flex: none; border-radius: 999px; background: rgba(18, 10, 27, .25); transition: background-color .3s var(--ease); }
.vs-toggle i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 999px; background: var(--bg); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .3s var(--ease); }
.vs-toggle[aria-checked="true"] i { background: var(--amber); }
.vs-toggle[aria-checked="true"] i::after { transform: translateX(20px); }
.vs-toggle:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
html:not(.js) .vs-switch { display: none; }
.vs-art-box { position: relative; margin: calc(-1 * var(--s-300)) calc(-1 * var(--s-300)) var(--s-300); }
.vs-art-box .vs-art { width: 100%; margin: 0; }
.vs-art-calm { position: absolute; inset: 0; height: 100%; opacity: 0; filter: none !important; transition: opacity 1.2s var(--ease); }
.vs-noise { position: relative; }
.vs-noise .vs-label, .vs-noise .vs-window { transition: opacity .6s var(--ease); }
.vs-noise .vs-track { transition: opacity .8s var(--ease), transform 1s var(--ease); }
.vs-quiet { position: absolute; left: var(--s-300); right: var(--s-300); top: calc(180px + var(--s-300)); bottom: 0; display: grid; align-content: center; justify-items: center; gap: var(--s-75); text-align: center; opacity: 0; pointer-events: none; transition: opacity .9s var(--ease) .3s; }
.vs-quiet b { font-size: 26px; line-height: 1.15; letter-spacing: -.02em; color: var(--white); }
.vs-quiet span { max-width: 30ch; font-size: 16px; color: var(--ink-2); }
.versus.is-quiet .vs-art-calm { opacity: 1; }
.versus.is-quiet .vs-noise .vs-label { opacity: .35; }
.versus.is-quiet .vs-noise .vs-track { opacity: 0; transform: translateY(40px); animation-play-state: paused; }
.versus.is-quiet .vs-quiet { opacity: 1; }
html.reduced .vs-art-calm, html.reduced .vs-noise .vs-label, html.reduced .vs-noise .vs-track, html.reduced .vs-quiet, html.reduced .vs-toggle i, html.reduced .vs-toggle i::after { transition: none; }
@media (max-width: 768px) {
  .vs-switch { border-radius: 24px; padding: var(--s-200); }
  .vs-quiet { top: calc(140px + var(--s-300)); }
  .vs-quiet b { font-size: 22px; }
}

/* the beats' places, from scripts/build.mjs BEATS */
.hb-track { width: 2180px; }
.bc[data-beat="0"] { --x: 260px; --h: 150px; }
.bc[data-beat="1"] { --x: 560px; --h: 62px; }
.bc[data-beat="2"] { --x: 860px; --h: 84px; }
.bc[data-beat="3"] { --x: 1160px; --h: 56px; }
.bc[data-beat="4"] { --x: 1460px; --h: 140px; }
.bc[data-beat="5"] { --x: 1760px; --h: 72px; }
