/* HFB Stays – site.css
   Farben aus der Region: Schiefer der Dächer, das Wasser von Rhein und Mosel,
   das Gelb reifer Rieslingtrauben als einziger Akzent. */

@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --schiefer: #1d2a2f;
  --schiefer-2: #2b3a40;
  --rhein: #3c6378;
  --mosel: #4f7f6e;
  --strom: #2f5d5a;
  --riesling: #e2c044;
  --riesling-dunkel: #b8962a;
  --kiesel: #eceee9;
  --papier: #fafaf7;
  --grauwacke: #56625f;
  --linie: #d3d8d1;

  --bg: var(--papier);
  --bg-2: var(--kiesel);
  --text: var(--schiefer);
  --muted: var(--grauwacke);
  --line: var(--linie);
  --accent: var(--strom);
  --cta-bg: var(--riesling);
  --cta-text: var(--schiefer);
  --band-bg: var(--schiefer);
  --band-text: #e8ece8;
  --band-muted: #a9b6b2;
  --card-bg: #ffffff;
  --river-rhein: var(--rhein);
  --river-mosel: var(--mosel);
  --map-label: var(--grauwacke);

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Schibsted Grotesk", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.45rem, 1.1rem + 1.2vw, 1.75rem);
  --step-3: clamp(1.9rem, 1.3rem + 2.2vw, 2.6rem);
  --step-4: clamp(2.5rem, 1.4rem + 4.4vw, 4.6rem);

  --wrap: 72rem;
  --measure: 38rem;
  --gap: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  --section: clamp(4rem, 2.5rem + 6vw, 8rem);
  --radius-s: 4px;
  --radius-m: 10px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141c1f;
    --bg-2: #1b2529;
    --text: #e6ebe8;
    --muted: #a3b0ac;
    --line: #2f3d42;
    --accent: #7fb3a7;
    --card-bg: #1b2529;
    --band-bg: #0f1517;
    --river-rhein: #6f9bb2;
    --river-mosel: #7fae9b;
    --map-label: #a3b0ac;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141c1f;
  --bg-2: #1b2529;
  --text: #e6ebe8;
  --muted: #a3b0ac;
  --line: #2f3d42;
  --accent: #7fb3a7;
  --card-bg: #1b2529;
  --band-bg: #0f1517;
  --river-rhein: #6f9bb2;
  --river-mosel: #7fae9b;
  --map-label: #a3b0ac;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--riesling); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  font-optical-sizing: auto;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); line-height: 1.2; }
p { margin: 0 0 1em; max-width: var(--measure); text-wrap: pretty; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--muted); }

.wrap { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--tint { background: var(--bg-2); }
/* Zwei aufeinanderfolgende Abschnitte mit gleichem Hintergrund teilen sich den Abstand */
.section:not(.section--tint):not(.band) + .section:not(.section--tint):not(.band) { padding-top: 0; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--bg); padding: 0.5rem 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.7rem 1.4rem;
  font: 600 1rem/1.2 var(--sans);
  border-radius: var(--radius-s);
  text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
}
.btn--primary { background: var(--cta-bg); color: var(--cta-text); }
.btn--primary:hover { background: #ecd06b; }
.btn--ghost { border-color: currentColor; color: var(--text); background: transparent; }
.btn--ghost:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.band .btn--ghost { color: var(--band-text); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; margin-right: auto; }
.logo svg { width: 30px; height: 30px; }
.logo span { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; letter-spacing: -0.01em; }
.nav ul { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.98rem; padding-block: 0.4rem; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--riesling); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); padding: 0.5rem; cursor: pointer; }
.header-cta { min-height: 2.6rem; padding: 0.45rem 1rem; font-size: 0.95rem; }

@media (max-width: 56rem) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; inset: 100% 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav[data-open="true"] { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 0.5rem var(--gap) 1rem; }
  .nav a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .header-cta { display: none; }
}

/* Hero */
.hero { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(3rem, 2rem + 4vw, 6rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: center; }
.hero h1 { max-width: 13ch; margin-bottom: 0.45em; }
.hero .lead { max-width: 32rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero__photo { margin: 0; aspect-ratio: 4 / 5; max-height: 72vh; border-radius: var(--radius-m); overflow: hidden; background: var(--bg-2); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.region-map { margin: 0; max-width: 26rem; }
.region-map figcaption { font-size: var(--step--1); color: var(--muted); margin-top: 0.5rem; }
@media (max-width: 56rem) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { aspect-ratio: 3 / 2; }
}

.confluence .rhein { stroke: var(--river-rhein); }
.confluence .mosel { stroke: var(--river-mosel); }
.confluence .label { fill: var(--map-label); font: 500 13px var(--sans); }
.confluence .label--river { font: italic 500 17px var(--serif); }
.confluence .point { fill: var(--riesling); stroke: var(--text); stroke-width: 1.5; }

/* Booking strip */
.booking {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-left: 4px solid var(--riesling);
  border-radius: var(--radius-s);
  padding: 1.25rem 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem;
}
.booking p { margin: 0; }
.booking strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; display: block; }
.booking__actions { margin-left: auto; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.booking--widget { display: block; border-left-width: 1px; }

/* Section heads */
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2.5rem; }
.section-head h2 { margin: 0; max-width: 20ch; }
.section-head p { margin: 0; color: var(--muted); }

/* Property cards */
.stays { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 2.5rem var(--gap); }
.stay { position: relative; }
.stay__img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-m); background: var(--bg-2); margin-bottom: 1rem; }
.stay__img img { width: 100%; height: 100%; object-fit: cover; }
.stay h3 { font-size: 1.45rem; margin-bottom: 0.3rem; }
.stay h3 a { color: var(--text); text-decoration: none; }
.stay h3 a::after { content: ""; position: absolute; inset: 0; }
.stay h3 a:hover { text-decoration: underline; }
.stay__meta { color: var(--muted); font-size: var(--step--1); margin: 0 0 0.5rem; }
.stay p { margin: 0; }
.badge { display: inline-block; font-size: 0.78rem; font-weight: 600; background: var(--riesling); color: var(--schiefer); padding: 0.15rem 0.5rem; border-radius: 3px; margin-bottom: 0.5rem; }
.empty-state { border: 1px dashed var(--line); border-radius: var(--radius-m); padding: 2rem; }

/* Reasons list (two-column prose items) */
.reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 2rem var(--gap); }
.reasons h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.reasons p { color: var(--muted); margin: 0; }
.reasons > div { border-top: 2px solid var(--text); padding-top: 1rem; }

/* Dark band for owners */
.band { background: var(--band-bg); color: var(--band-text); }
.band h2, .band h3 { color: #fff; }
.band p { color: var(--band-muted); }
.band a:not(.btn) { color: #fff; }
.band__portrait { width: min(14rem, 60%); aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-m); margin-top: 1.5rem; }
.band__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--gap) calc(var(--gap) * 2); }
.band ul.checks { list-style: none; margin: 0; padding: 0; columns: 2 16rem; column-gap: 2rem; }
.band ul.checks li { break-inside: avoid; padding: 0.6rem 0 0.6rem 1.6rem; border-bottom: 1px solid #ffffff1f; position: relative; color: var(--band-text); }
.band ul.checks li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 0.7rem; height: 2px; background: var(--riesling); }
@media (max-width: 56rem) { .band__grid { grid-template-columns: 1fr; } }

/* Steps (true sequence) */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); font: 500 2.4rem/1 var(--serif); color: var(--accent); }
.steps h3 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.steps p { margin: 0; color: var(--muted); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: var(--gap); }
.plan { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 2rem; background: var(--card-bg); display: flex; flex-direction: column; }
.plan--featured { border: 2px solid var(--text); }
.plan__price { font: 500 3rem/1 var(--serif); margin: 0.5rem 0 0.25rem; }
.plan__price small { font: 400 1rem var(--sans); color: var(--muted); }
.plan ul { padding-left: 1.1rem; margin: 1rem 0 1.5rem; }
.plan li { margin-bottom: 0.4rem; }
.plan .btn { margin-top: auto; align-self: flex-start; }

/* FAQ */
.faq { max-width: 48rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.2rem 2.5rem 1.2rem 0; font: 500 1.25rem/1.35 var(--serif); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 1rem; font: 400 1.6rem var(--sans); color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 1.25rem; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Page header for inner pages */
.page-head { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(2rem, 1rem + 3vw, 3.5rem); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 3.8rem); max-width: 20ch; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0 0 1.5rem; font-size: var(--step--1); color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--line); }
.breadcrumbs a { color: var(--muted); }

/* Two column content */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap) calc(var(--gap) * 2); align-items: start; }
@media (max-width: 56rem) { .split { grid-template-columns: 1fr; } }

/* Prose (Ratgeber, Rechtliches) */
.prose { max-width: var(--measure); }
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2rem; max-width: var(--measure); }
.prose li { margin-bottom: 0.45em; }
.prose .note { border-left: 3px solid var(--riesling); padding: 0.75rem 1rem; background: var(--bg-2); font-size: 0.97rem; }
.article-meta { color: var(--muted); font-size: var(--step--1); }

/* Property detail */
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 0.6rem; aspect-ratio: 16 / 8; margin-bottom: 2.5rem; }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius-s); background: var(--bg-2); }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 40rem) { .gallery { grid-template-columns: 1fr; grid-template-rows: auto; aspect-ratio: auto; } .gallery figure:not(:first-child) { display: none; } .gallery figure:first-child { aspect-ratio: 4/3; } }
.facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding: 1rem 0; border-block: 1px solid var(--line); margin-bottom: 2rem; list-style: none; padding-left: 0; }
.facts li { font-weight: 500; }
.amenities { columns: 2 14rem; padding-left: 1.1rem; }
.detail-grid h2 { font-size: var(--step-2); margin-top: 2.2rem; }
.detail-grid ul { padding-left: 1.1rem; }
.book-box { position: sticky; top: 6rem; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.5rem; background: var(--card-bg); }
.book-box .btn { width: 100%; margin-top: 0.75rem; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr); gap: var(--gap) calc(var(--gap) * 1.5); align-items: start; }
@media (max-width: 56rem) { .detail-grid { grid-template-columns: 1fr; } .book-box { position: static; } }

/* Portrait */
.portrait { aspect-ratio: 4 / 5; border-radius: var(--radius-m); overflow: hidden; background: var(--bg-2); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* Form */
.form { display: grid; gap: 1.1rem; max-width: 36rem; }
.form label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.35rem; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--card-bg);
  border: 1px solid #9aa6a2; border-radius: var(--radius-s); padding: 0.7rem 0.8rem;
}
.form textarea { min-height: 9rem; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 40rem) { .form .row { grid-template-columns: 1fr; } }
.form .consent { display: flex; gap: 0.6rem; align-items: start; font-size: 0.93rem; color: var(--muted); }
.form .consent input { width: auto; margin-top: 0.3rem; }
.hp { position: absolute; left: -9999px; }
.form-status { padding: 0.9rem 1rem; border-radius: var(--radius-s); background: var(--bg-2); border-left: 3px solid var(--accent); }

/* Ratgeber list */
.posts { list-style: none; padding: 0; margin: 0; max-width: 48rem; }
.posts li { border-top: 1px solid var(--line); padding: 1.6rem 0; }
.posts h2 { font-size: var(--step-2); margin-bottom: 0.4rem; }
.posts h2 a { color: var(--text); text-decoration: none; }
.posts h2 a:hover { text-decoration: underline; }
.posts p { color: var(--muted); margin: 0; }

/* Footer */
.site-footer { background: var(--band-bg); color: var(--band-muted); padding-block: 4rem 2rem; font-size: 0.95rem; }
.site-footer a { color: var(--band-text); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 2rem; }
.footer-grid h2 { font: 600 0.95rem var(--sans); color: #fff; margin-bottom: 0.8rem; letter-spacing: 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-brand .logo { color: #fff; margin-bottom: 1rem; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #ffffff1f; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
@media (max-width: 48rem) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

.todo { background: #fff3bf; color: #5a4600; padding: 0 0.25em; border-radius: 2px; }

/* ---------- Ferienhaus in Explosionsansicht ---------- */
/* Ohne JavaScript: Standbild, Einleitung und alle Schritte als Liste */
.explode { position: relative; padding-block: var(--section); }
.explode__sticky { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap) calc(var(--gap) * 1.5); align-items: center; }
.explode__stage { position: relative; aspect-ratio: 4 / 3; grid-column: 2; grid-row: 1; }
.explode__overlay { grid-column: 1; grid-row: 1; width: auto; margin: 0; }
.explode__poster { width: 100%; height: 100%; object-fit: contain; }
.explode__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s ease; }
.explode.is-3d .explode__stage canvas { opacity: 1; }
.explode.is-3d .explode__poster, .explode.is-scrolly .explode__poster, .explode.is-auto .explode__poster { visibility: hidden; }
.explode.is-scrolly:not(.is-3d) .explode__stage::before { content: "3D-Modell wird geladen"; position: absolute; left: 62%; top: 50%; transform: translate(-50%, -50%); color: var(--muted); font-size: .95rem; }
.explode__intro h2 { font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.4rem); }
.explode__intro p { font-size: var(--step-1); color: var(--muted); max-width: 30rem; }
.explode__hint, .explode__nav, .explode__replay { display: none; }
.explode__intro h1 { font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.4rem); }
.explode__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.2rem 0; }
.explode__steps { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.explode__step { padding: 1rem 0; border-top: 1px solid var(--line); }
.explode__count { font-size: .95rem; font-weight: 600; color: var(--accent); margin: 0 0 .4rem; }
.explode__step h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.explode__step p { color: var(--muted); }

/* Scroll-Bühne: Haus füllt den Bildschirm, Text groß links, Schrittleiste unten */
.explode.is-scrolly, .explode.is-auto { padding: 0; }
.explode.is-scrolly { height: 640vh; }
.explode.is-scrolly .explode__sticky, .explode.is-auto .explode__sticky { position: sticky; top: 0; width: 100%; height: 100vh; height: 100svh; display: block; overflow: hidden; }
.explode.is-auto .explode__sticky { position: relative; }
.explode.is-scrolly .explode__stage, .explode.is-auto .explode__stage { position: absolute; left: 0; right: 0; top: 4.25rem; bottom: 0; aspect-ratio: auto; }
.explode.is-scrolly .explode__stage::after, .explode.is-auto .explode__stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 85%, transparent) 26%, transparent 46%); }
.explode.is-scrolly .explode__overlay, .explode.is-auto .explode__overlay { position: absolute; left: 0; right: 0; top: 4.25rem; bottom: 0; width: min(100% - 2 * var(--gap), 86rem); margin-inline: auto; display: flex; flex-direction: column; justify-content: center; pointer-events: none; z-index: 2; }
.explode.is-scrolly .explode__captions, .explode.is-auto .explode__captions { display: grid; max-width: min(34rem, 40%); pointer-events: auto; }
.explode.is-scrolly .explode__intro, .explode.is-scrolly .explode__steps,
.explode.is-auto .explode__intro, .explode.is-auto .explode__steps { grid-area: 1 / 1; margin: 0; }
.explode.is-scrolly .explode__steps, .explode.is-auto .explode__steps { display: grid; }
.explode.is-scrolly .explode__step, .explode.is-auto .explode__step { grid-area: 1 / 1; border: 0; padding: 0; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s; pointer-events: none; }
.explode.is-scrolly .explode__step.is-active, .explode.is-auto .explode__step.is-active { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .35s ease .16s, transform .35s ease .16s, visibility 0s linear .16s; }
.explode.is-scrolly .explode__step h3, .explode.is-auto .explode__step h3 { font-size: clamp(2rem, 1.3rem + 2.2vw, 3.2rem); line-height: 1.08; margin-bottom: .8rem; }
.explode.is-scrolly .explode__step p, .explode.is-auto .explode__step p { font-size: var(--step-1); line-height: 1.5; }
.explode.is-scrolly .explode__intro, .explode.is-auto .explode__intro { transition: opacity .35s ease .16s, transform .35s ease .16s, visibility 0s linear .16s; }
.explode.is-scrolly:not([data-step="-1"]) .explode__intro, .explode.is-auto:not([data-step="-1"]) .explode__intro { opacity: 0; visibility: hidden; transform: translateY(-14px); pointer-events: none; transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s; }
.explode.is-scrolly .explode__hint { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--accent); }
.explode.is-scrolly .explode__hint::after { content: ""; width: .6rem; height: .6rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-.2rem); animation: hint 1.6s ease-in-out infinite; }
@keyframes hint { 50% { transform: rotate(45deg) translate(.15rem, .15rem); } }
.explode.is-auto .explode__replay { display: inline-block; margin-top: 1rem; font: 500 .95rem var(--sans); background: none; border: 0; color: var(--accent); text-decoration: underline; cursor: pointer; padding: .25rem 0; justify-self: start; }

.explode.is-scrolly .explode__nav, .explode.is-auto .explode__nav { display: block; position: absolute; left: 0; right: 0; bottom: clamp(1.25rem, 3vh, 2.5rem); pointer-events: auto; }
.explode__nav ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; max-width: 46rem; }
.explode__nav button { width: 100%; text-align: left; font: 500 .9rem/1.2 var(--sans); color: var(--muted); background: none; border: 0; border-top: 3px solid var(--line); padding: .55rem 0 0; cursor: pointer; }
.explode__nav button.is-done { border-top-color: color-mix(in srgb, var(--riesling) 55%, var(--line)); }
.explode__nav button.is-active { border-top-color: var(--riesling); color: var(--text); font-weight: 600; }
.explode__nav button:hover { color: var(--text); }

@media (max-width: 56rem) {
  .explode__sticky { grid-template-columns: 1fr; }
  .explode__stage, .explode__overlay { grid-column: 1; grid-row: auto; }
  .explode.is-scrolly .explode__stage, .explode.is-auto .explode__stage { bottom: auto; height: 50svh; }
  .explode.is-scrolly .explode__stage::after, .explode.is-auto .explode__stage::after { background: linear-gradient(180deg, transparent 80%, var(--bg)); }
  .explode.is-scrolly .explode__overlay, .explode.is-auto .explode__overlay { top: calc(4.25rem + 50svh); justify-content: flex-start; padding-top: .5rem; }
  .explode.is-scrolly .explode__captions, .explode.is-auto .explode__captions { max-width: none; }
  .explode.is-scrolly .explode__intro h2, .explode.is-scrolly .explode__intro h1 { font-size: 1.75rem; margin-bottom: .4rem; }
  .explode.is-scrolly .explode__ctas { margin: .6rem 0; }
  .explode.is-scrolly .explode__ctas .btn { min-height: 2.6rem; padding: .45rem 1rem; font-size: .95rem; }
  .explode.is-scrolly .explode__intro p { font-size: 1rem; }
  .explode.is-scrolly .explode__step h3, .explode.is-auto .explode__step h3 { font-size: 1.6rem; margin-bottom: .5rem; }
  .explode.is-scrolly .explode__step p, .explode.is-auto .explode__step p { font-size: 1rem; }
  .explode__nav ol { gap: .3rem; }
  .explode__nav button { font-size: 0; padding-top: 0; height: 1rem; }
}
@media (min-width: 56.01rem) { .split > .portrait { position: sticky; top: 6rem; } }
.posts .article-meta { margin-top: .4rem; }
.related { padding-left: 1.1rem; }
