/* ==========================================================================
   Jennifer Ellis Celebrant — components
   Principle: words sit on opaque paper; imagery sits in mounted plates in
   the margin or in wordless bands; only scenery moves, and slowly.
   ========================================================================== */

@layer layout {
  .container {
    width: min(100% - 2 * var(--gutter), var(--container));
    margin-inline: auto;
  }
  .container--text {
    width: min(100% - 2 * var(--gutter), var(--container-text));
    margin-inline: auto;
  }
  .section { padding-block: var(--section); }
  .section--tight { padding-block: var(--space-3xl); }
  .section--flush-top { padding-top: 0; }
  .grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--space-m);
    row-gap: var(--space-xl);
  }
  .col-words, .col-plate { grid-column: 1 / -1; }
  @media (min-width: 60em) {
    .col-words { grid-column: 1 / span 7; grid-row: 1; }
    .col-plate { grid-column: 8 / span 5; grid-row: 1; }
    .grid--reverse .col-words { grid-column: 7 / span 6; grid-row: 1; }
    .grid--reverse .col-plate { grid-column: 1 / span 5; grid-row: 1; }
    .col-words--wide { grid-column: 1 / span 8; }
    .col-plate--narrow { grid-column: 9 / span 4; }
  }
  main { display: block; }
  body { padding-bottom: calc(var(--callbar-h) + env(safe-area-inset-bottom, 0px)); }
  body.page-contact, body.no-callbar { padding-bottom: 0; }
  @media (min-width: 48em) { body { padding-bottom: 0; } }
}

@layer components {

  /* ---------- Type helpers ---------- */
  .eyebrow {
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: var(--text-eyebrow);
    letter-spacing: var(--tracking-caps);
    text-transform: uppercase;
    color: var(--ink-soft);
    line-height: 1.4;
  }
  .eyebrow + h1, .eyebrow + h2 { margin-top: var(--space-m); }
  .display {
    font-family: var(--font-display);
    font-weight: 300;
    font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 0;
    color: var(--green);
    line-height: 1.08;
    letter-spacing: var(--tracking-display);
    text-wrap: balance;
  }
  h1, h2, h3, .display { font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 0; }
  h1 { max-width: var(--measure-heading); }
  h2 { max-width: 28ch; }
  .standfirst {
    font-family: var(--font-body);
    font-size: var(--step-1);
    line-height: 1.5;
    max-width: var(--measure-narrow);
    color: var(--ink);
    font-variation-settings: 'opsz' 24;
  }
  .lead { font-size: var(--step-1); line-height: 1.5; max-width: 48ch; }
  .prose { max-width: var(--measure); }
  .prose > * + * { margin-top: 1em; }
  .prose h2 { margin-top: 2.5em; margin-bottom: 0.5em; }
  .prose h3 { margin-top: 2em; margin-bottom: 0.4em; }
  .prose ul { padding-left: 0; list-style: none; }
  .prose li { position: relative; padding-left: 1.4em; }
  .prose li + li { margin-top: 0.5em; }
  .prose li::before {
    content: '\2013';
    position: absolute; left: 0; top: 0;
    color: var(--sage-deep);
  }
  .figure-amount {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: var(--step-3);
    line-height: 1.1;
    color: var(--green);
    font-variation-settings: 'opsz' 144;
  }
  .pull {
    font-family: var(--font-display);
    font-weight: 400;
    font-style: italic;
    font-size: var(--step-3);
    line-height: 1.2;
    color: var(--green);
    max-width: 24ch;
    text-wrap: balance;
    padding-block: var(--space-l);
    border-top: 1px solid var(--gold-soft);
    border-bottom: 1px solid var(--gold-soft);
  }
  .statement {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: var(--step-3);
    line-height: 1.15;
    color: var(--green);
    max-width: 26ch;
    text-wrap: balance;
  }

  /* ---------- Rules ---------- */
  .rule {
    display: block;
    width: 64px; height: 1px;
    background: var(--gold);
    border: 0; margin: var(--space-m) 0;
  }
  .rule--center { margin-inline: auto; }
  .rule--long {
    width: 100%; height: 1px;
    background: var(--gold-soft);
    border: 0; margin: 0;
  }

  /* ---------- Buttons and links ---------- */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
    min-height: 56px; padding: 0 var(--space-m);
    font-family: var(--font-ui); font-weight: 600; font-size: var(--text-control);
    line-height: 1.2; text-decoration: none; text-align: center;
    border-radius: var(--radius-s);
    border: 1.5px solid var(--green);
    background: var(--green); color: var(--cream);
    transition: background-color var(--t-fast) var(--ease-std), border-color var(--t-fast) var(--ease-std), color var(--t-fast) var(--ease-std);
    -webkit-tap-highlight-color: transparent;
  }
  .btn:hover { background: var(--green-deep); border-color: var(--green-deep); color: var(--cream); }
  .btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; box-shadow: 0 0 0 6px var(--mint); }
  .btn--secondary { background: var(--cream); color: var(--green); }
  .btn--secondary:hover { background: var(--cream-2); color: var(--green-deep); border-color: var(--green-deep); }
  .btn svg { width: 1.1em; height: 1.1em; flex: none; }
  .actions { display: flex; flex-wrap: wrap; gap: var(--space-s) var(--space-m); align-items: center; }
  .link {
    display: inline-flex; align-items: center; gap: 0.35em; min-height: 48px;
    font-family: var(--font-ui); font-weight: 600; font-size: var(--text-nav);
    color: var(--green); text-decoration: underline; text-underline-offset: 0.2em;
    text-decoration-thickness: 1px; text-decoration-color: var(--sage);
    transition: text-decoration-thickness var(--t-fast) var(--ease-std), color var(--t-fast) var(--ease-std);
  }
  .link:hover { text-decoration-thickness: 2px; text-decoration-color: currentColor; color: var(--green-deep); }
  .link--arrow::after { content: '\2192'; margin-left: 0.45em; transition: transform var(--t-fast) var(--ease-out); }
  .link--arrow:hover::after { transform: translateX(3px); }
  .link-list { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-l); }
  .tel { white-space: nowrap; font-variant-numeric: tabular-nums; }

  /* ---------- Header ---------- */
  .site-header { background: var(--cream); position: relative; z-index: 20; }
  .site-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    min-height: var(--header-h); gap: var(--space-m);
  }
  .site-header__brand { display: inline-flex; align-items: center; min-height: 48px; }
  .site-header__brand img { height: 48px; width: auto; }
  .site-header__toggle {
    display: inline-flex; align-items: center; gap: 0.5em;
    min-height: 48px; padding: 0 var(--space-xs);
    font-family: var(--font-ui); font-weight: 600; font-size: var(--text-nav); color: var(--green);
  }
  .site-header__toggle svg { width: 24px; height: 24px; }
  .site-header__toggle .icon-close { display: none; }
  .site-header__toggle[aria-expanded="true"] .icon-menu { display: none; }
  .site-header__toggle[aria-expanded="true"] .icon-close { display: block; }
  .site-nav { display: none; }
  .site-nav[data-open] { display: block; }
  .site-nav__list { display: flex; flex-direction: column; }
  .site-nav__link {
    display: flex; align-items: center; min-height: 56px;
    font-family: var(--font-ui); font-weight: 600; font-size: 22px;
    color: var(--green); text-decoration: none;
    border-bottom: 1px solid var(--gold-soft);
  }
  .site-nav__link[aria-current="page"] { color: var(--green-deep); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
  .site-nav__contact { display: flex; flex-direction: column; gap: var(--space-s); padding-top: var(--space-l); }
  .site-header__rule { height: 1px; background: var(--gold-soft); }
  body.nav-open { overflow: hidden; }
  @media (max-width: 59.99em) {
    .site-nav[data-open] {
      position: fixed; inset: var(--header-h) 0 0 0; z-index: 30;
      background: var(--cream); overflow-y: auto;
      padding: var(--space-m) var(--gutter) calc(var(--space-2xl) + var(--callbar-h));
      animation: sheet-in var(--t-base) var(--ease-in-out);
    }
    .site-header__rule { display: none; }
    .site-header { position: sticky; top: 0; box-shadow: 0 1px 0 var(--gold-soft); }
    .site-header.is-scrolled { box-shadow: 0 1px 0 var(--gold-soft), 0 8px 24px -16px rgba(0,40,34,0.25); }
  }
  @keyframes sheet-in { from { opacity: 0; } to { opacity: 1; } }
  @media (min-width: 60em) {
    .site-header__inner { flex-direction: column; justify-content: center; gap: var(--space-m); padding-block: var(--space-m) var(--space-s); min-height: 0; }
    .site-header__brand img { height: 112px; }
    .site-header__toggle { display: none; }
    .site-nav { display: block; width: 100%; }
    .site-nav__list { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 0 var(--space-l); }
    .site-nav__link {
      min-height: 56px; font-size: var(--text-nav); letter-spacing: 0.12em; text-transform: uppercase;
      border-bottom: 0; padding-top: 2px; box-shadow: inset 0 -2px 0 transparent;
      transition: box-shadow var(--t-fast) var(--ease-std), color var(--t-fast) var(--ease-std);
    }
    .site-nav__link:hover { color: var(--green-deep); box-shadow: inset 0 -2px 0 var(--sage-deep); }
    .site-nav__link[aria-current="page"] { text-decoration: none; box-shadow: inset 0 -2px 0 var(--green); }
    .site-nav__contact { display: none; }
    .site-header__rule { display: block; }
  }

  /* ---------- Hero (home) ---------- */
  .hero { padding-block: var(--space-3xl) var(--space-3xl); }
  .hero__words { display: flex; flex-direction: column; gap: var(--space-m); }
  .hero__title { font-size: var(--step-4); max-width: 24ch; }
  .hero__standfirst { margin-top: var(--space-2xs); }
  .hero__actions { margin-top: var(--space-s); }
  @media (min-width: 60em) {
    .hero { padding-block: var(--space-4xl) var(--space-4xl); }
    .hero .grid { align-items: start; }
  }

  /* ---------- Page title block ---------- */
  .page-title { padding-block: var(--space-3xl) var(--space-2xl); }
  .page-title h1 { margin-top: var(--space-s); }
  .page-title .rule { margin-top: var(--space-l); }

  /* ---------- Plates: images and clips mounted on paper ---------- */
  .plate {
    position: relative;
    background: var(--cream-2);
    padding: var(--plate-mount);
    box-shadow: var(--shadow-plate), inset 0 0 0 1px var(--gold-soft);
    border-radius: var(--radius-s);
  }
  .plate__media { position: relative; overflow: hidden; background: var(--cream-2); }
  .plate__media > img, .plate__media > picture > img, .plate__media > video, .plate__media > .poster > img {
    width: 100%; height: 100%; object-fit: cover; display: block;
  }
  .plate--4x5 .plate__media { aspect-ratio: 4 / 5; }
  .plate--3x4 .plate__media { aspect-ratio: 3 / 4; }
  .plate--16x9 .plate__media { aspect-ratio: 16 / 9; }
  .plate--1x1 .plate__media { aspect-ratio: 1 / 1; }
  .plate--square-sm { max-width: 320px; }
  .plate__caption {
    font-family: var(--font-ui); font-size: var(--text-small); color: var(--ink-soft);
    padding-top: var(--space-xs); line-height: 1.4;
  }

  /* ---------- Ambient media: a poster with an optional clip above it ---------- */
  [data-ambient] { position: relative; }
  [data-ambient] .poster { position: absolute; inset: 0; }
  [data-ambient] .poster img { width: 100%; height: 100%; object-fit: cover; }
  [data-ambient] video {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transition: opacity var(--t-video) linear;
  }
  [data-ambient].is-playing video { opacity: 1; }
  [data-ambient].is-still video { display: none; }
  .plate__media[data-ambient] { aspect-ratio: inherit; }

  /* Wordless band between sections */
  .band {
    position: relative; overflow: hidden;
    height: clamp(240px, 36vw, 440px);
    background: var(--cream-2);
  }
  .band::before, .band::after {
    content: ''; position: absolute; left: 0; right: 0; height: 96px; z-index: 2; pointer-events: none;
  }
  .band::before { top: 0; background: linear-gradient(to bottom, var(--cream), rgba(254,248,238,0)); }
  .band::after { bottom: 0; background: linear-gradient(to top, var(--cream), rgba(254,248,238,0)); }
  .band .poster, .band video { z-index: 1; }
  @media (max-width: 47.99em) {
    .band video { display: none; }          /* posters only on phones: hero plate alone may play */
  }

  /* ---------- Cards ---------- */
  .card {
    background: var(--cream-2);
    padding: var(--space-l);
    border-radius: var(--radius-m);
    box-shadow: inset 0 0 0 1px var(--gold-soft);
  }
  .card > * + * { margin-top: var(--space-s); }
  .card h3 { font-size: var(--step-2); }
  .card-grid { display: grid; gap: var(--space-m); }
  @media (min-width: 48em) { .card-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }

  .fee-card { background: var(--cream-2); padding: var(--space-l); border-radius: var(--radius-m); box-shadow: inset 0 0 0 1px var(--gold-soft); }
  .fee-card + .fee-card { margin-top: var(--space-m); }
  .fee-card__amount { display: flex; align-items: baseline; gap: var(--space-s); flex-wrap: wrap; }
  .fee-card ul { margin-top: var(--space-s); }

  /* ---------- Testimonial placeholder ---------- */
  .notice {
    display: flex; gap: var(--space-s); align-items: flex-start; flex-wrap: wrap;
    background: var(--mint-wash); padding: var(--space-s) var(--space-m);
    border-radius: var(--radius-m); box-shadow: inset 0 0 0 1px var(--sage-deep);
    font-family: var(--font-ui); font-size: var(--text-small); color: var(--ink);
  }
  .chip {
    display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px;
    font-family: var(--font-ui); font-weight: 600; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase;
    background: var(--mint); color: var(--green-deep); border-radius: var(--radius-s);
  }
  .testimonial {
    position: relative; padding: var(--space-l);
    border: 1.5px dashed var(--sage-deep); border-radius: var(--radius-m);
  }
  .testimonial + .testimonial { margin-top: var(--space-m); }
  .testimonial .chip { position: absolute; top: var(--space-s); right: var(--space-s); }
  .testimonial__quote {
    font-family: var(--font-body); font-style: italic; font-size: var(--step-1); line-height: 1.5;
    color: var(--ink-soft); max-width: 48ch; padding-right: 7rem;
  }
  .testimonial__quote::before { content: '\201C'; font-family: var(--font-display); font-size: 2.2em; line-height: 0; color: var(--sage); vertical-align: -0.35em; margin-right: 0.1em; }
  .testimonial__by { margin-top: var(--space-s); font-family: var(--font-ui); font-size: var(--text-small); color: var(--ink-soft); }

  /* ---------- FAQ entries ---------- */
  .faq { padding-block: var(--space-xl); border-top: 1px solid var(--gold-soft); }
  .faq:first-of-type { border-top: 0; padding-top: 0; }
  .faq h2 { max-width: 30ch; }
  .faq .rule { margin: var(--space-m) 0 var(--space-l); width: 40px; }
  .on-this-page { font-family: var(--font-ui); }
  .on-this-page ul { display: flex; flex-direction: column; gap: var(--space-2xs); }
  .on-this-page a { display: inline-flex; min-height: 48px; align-items: center; color: var(--green); font-weight: 600; text-decoration: none; }
  .on-this-page a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
  @media (min-width: 60em) {
    .faq-layout { display: grid; grid-template-columns: 1fr 260px; gap: var(--space-2xl); align-items: start; }
    .on-this-page { position: sticky; top: var(--space-l); }
  }

  /* ---------- Contact ---------- */
  .contact-lines { display: flex; flex-direction: column; gap: var(--space-s); }
  .contact-line {
    display: inline-flex; align-items: center; gap: 0.5em; min-height: 56px;
    font-family: var(--font-display); font-weight: 300; font-variation-settings: 'opsz' 144;
    font-size: var(--step-3); color: var(--green); text-decoration: none; line-height: 1.1;
    overflow-wrap: anywhere;
  }
  .contact-line--email { font-size: var(--step-2); }
  .contact-line:hover { color: var(--green-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
  .contact-line svg { width: 0.8em; height: 0.8em; flex: none; color: var(--sage-deep); }

  /* ---------- Form ---------- */
  .form-sheet { background: var(--cream-2); padding: var(--space-l); border-radius: var(--radius-m); box-shadow: inset 0 0 0 1px var(--gold-soft); }
  .form-sheet > * + * { margin-top: var(--space-m); }
  .field { display: flex; flex-direction: column; gap: var(--space-2xs); }
  .field label { font-family: var(--font-ui); font-weight: 600; font-size: var(--text-control); color: var(--ink); }
  .field label .req { font-weight: 400; color: var(--ink-soft); }
  .field .hint { font-family: var(--font-ui); font-size: var(--text-small); color: var(--ink-soft); }
  .field input, .field textarea {
    width: 100%; min-height: 56px; padding: 14px 16px;
    font-family: var(--font-body); font-size: var(--text-control); color: var(--ink);
    background: var(--paper-bright); border: 1.5px solid var(--sage-deep); border-radius: var(--radius-s);
    transition: border-color var(--t-fast) var(--ease-std), box-shadow var(--t-fast) var(--ease-std);
  }
  .field textarea { min-height: 180px; resize: vertical; line-height: 1.5; }
  .field input:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--green); }
  .field .error { display: none; font-family: var(--font-ui); font-size: var(--text-small); color: var(--error); font-weight: 600; }
  .field.is-invalid .error { display: block; }
  .field.is-invalid input, .field.is-invalid textarea { border-color: var(--error); border-width: 2px; }
  .form-error { display: block; font-family: var(--font-ui); font-size: var(--text-small); color: var(--error); font-weight: 600; }
  .form-error[hidden] { display: none; }
  .form-sheet .privacy { font-family: var(--font-ui); font-size: var(--text-small); color: var(--ink-soft); }
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

  /* ---------- Footer ---------- */
  .site-footer { background: var(--cream-2); margin-top: var(--section); border-top: 1px solid var(--gold-soft); }
  .site-footer__inner { padding-block: var(--space-2xl) var(--space-xl); display: grid; gap: var(--space-xl); }
  .site-footer__brand img { height: 96px; width: auto; }
  .site-footer p { font-family: var(--font-ui); font-size: var(--text-small); color: var(--ink); max-width: 44ch; }
  .site-footer p + p { margin-top: var(--space-2xs); }
  .site-footer__nav ul { display: flex; flex-direction: column; gap: 0; }
  .site-footer__nav a, .site-footer__contact a {
    display: inline-flex; align-items: center; gap: 0.35em; min-height: 48px;
    font-family: var(--font-ui); font-weight: 600; font-size: var(--text-nav); color: var(--green); text-decoration: none;
  }
  .site-footer__nav a:hover, .site-footer__contact a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
  .site-footer__contact { display: flex; flex-direction: column; }
  .site-footer__small { padding-block: var(--space-m); border-top: 1px solid var(--gold-soft); display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-l); }
  .site-footer__small p { font-size: var(--text-small); color: var(--ink-soft); }
  @media (min-width: 48em) {
    .site-footer__inner { grid-template-columns: 1.4fr 1fr 1fr; }
  }

  /* ---------- Fixed call bar (phones only) ---------- */
  .callbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xs);
    padding: var(--space-2xs) var(--gutter) calc(var(--space-2xs) + env(safe-area-inset-bottom, 0px));
    background: var(--cream); box-shadow: var(--shadow-bar);
  }
  .callbar .btn { min-height: 48px; padding-inline: var(--space-s); font-size: 17px; }
  body.page-contact .callbar, body.no-callbar .callbar { display: none; }
  @media (min-width: 48em) { .callbar { display: none; } }

  /* ---------- Reveal: one slow fade, once, only with JS ---------- */
  html.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); }
  html.js .reveal.is-visible { opacity: 1; transform: none; }
  html.js .hero__words { animation: hero-in var(--t-slow) var(--ease-out) both; }
  @keyframes hero-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  @media (prefers-reduced-motion: reduce) {
    html.js .reveal { opacity: 1; transform: none; transition: none; }
    html.js .hero__words { animation: none; }
    [data-ambient] video { transition: none; }
    .link--arrow::after { transition: none; }
  }
}

/* ==========================================================================
   Scenes: one long scroll. Each scene pins a full-viewport ambient loop
   behind it while its paper panels scroll over the top; the next scene's
   loop then takes over. No JS needed for the pinning (position: sticky).
   Text never sits on video: it is always inside .panel.
   ========================================================================== */
@layer components {
  .scene { position: relative; isolation: isolate; }
  .scene__bg {
    position: sticky; top: 0; height: 100svh; z-index: 0;
    margin-bottom: -100svh; overflow: hidden; background: var(--cream-2);
  }
  .scene__bg .poster, .scene__bg video { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); }
  .scene__bg .poster img, .scene__bg video { width: 100%; height: 100%; object-fit: cover; }
  .scene__bg::after {
    content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(to bottom, rgba(254,248,238,0.55), rgba(254,248,238,0.15) 30%, rgba(254,248,238,0.15) 70%, rgba(254,248,238,0.6));
  }
  .scene__content { position: relative; z-index: 1; padding-block: clamp(12svh, 16vh, 20svh); }
  .scene--hero .scene__content { min-height: 100svh; display: flex; align-items: center; padding-block: var(--space-2xl); }
  .scene--hero .scene__bg::after { background: linear-gradient(to bottom, rgba(254,248,238,0.35), rgba(254,248,238,0.05) 40%, rgba(254,248,238,0.05) 70%, rgba(254,248,238,0.7)); }
  .scene--still .scene__bg::after { background: linear-gradient(to bottom, rgba(254,248,238,0.6), rgba(254,248,238,0.25) 40%, rgba(254,248,238,0.65)); }

  .panel {
    background: var(--cream);
    padding: clamp(28px, 5vw, 56px);
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-plate), inset 0 0 0 1px var(--gold-soft);
  }
  .panel--wide { max-width: var(--container); margin-inline: auto; }
  .panel--text { max-width: var(--container-text); margin-inline: auto; }
  .panel--hero { max-width: 760px; }
  .panel > * + * { margin-top: var(--space-m); }
  .panel .grid { margin-top: 0; }
  .panel + .panel { margin-top: var(--space-xl); }
  .panel .faq { padding-block: var(--space-l); }
  .panel .faq:first-of-type { padding-top: 0; }

  @media (max-width: 47.99em) {
    .scene__bg video { display: none; }
    .scene--hero .scene__bg video { display: block; }
    .scene__content { padding-block: 10svh; }
  }
  @media (prefers-reduced-motion: reduce) {
    .scene__bg { position: relative; height: min(56svh, 480px); margin-bottom: 0; }
    .scene--hero .scene__bg { height: min(40svh, 360px); }
  }
  html.js .scene__bg .poster { opacity: 1; }
}

/* Standalone pages inside a panel: collapse the page-level spacing */
@layer components {
  .panel .page-title { padding: 0 0 var(--space-l); }
  .panel .section { padding-block: var(--space-xl) 0; }
  .panel .section--flush-top, .panel .section:first-child { padding-top: 0; }
  .panel .container, .panel .container--text { width: 100%; }
  .panel .chapter { padding-block: var(--space-xl); }
  .panel .chapter:first-child { padding-top: 0; }
  .panel .site-footer { display: none; }
}
