/* ==========================================================================
   Line of Flowers — Різдвяний віночок
   Tokens
   ========================================================================== */
/* Two self-hosted families only: Nyght Serif (decorative) and PP Neue Montreal (body).
   Body: Medium serves weights up to 599, Bold serves 600+, so the browser
   never synthesizes bold. Both cover Ukrainian Cyrillic; they lack ₴ and №. */
@font-face {
  font-family: "PP Neue Montreal";
  src: url("../assets/fonts/pp-neue-montreal-medium.woff") format("woff");
  font-weight: 100 599;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Neue Montreal";
  src: url("../assets/fonts/pp-neue-montreal-bold.woff") format("woff");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}
/* Nyght Serif Light Italic (OFL) is the only serif face; it covers Ukrainian
   Cyrillic, Latin, digits and punctuation. Declared as italic across all
   weights: upright requests still match it, italic requests don't get a
   second slant, and no weight is synthesized. */
@font-face {
  font-family: "Nyght Serif";
  src: url("../assets/fonts/nyght-serif-light-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --ivory: #F7F2E0;
  --green: #28301C;
  --pink: #FFC3CC;
  --lime: #D2DB76;
  --green-soft: #4A5536;          /* secondary text on ivory/pink (≈7:1) */
  --ivory-soft: #D9D6C3;          /* secondary text on green (≈9:1) */
  --rule: rgb(40 48 28 / 0.22);
  --rule-strong: rgb(40 48 28 / 0.55);
  --rule-light: rgb(247 242 224 / 0.28);

  --serif: "Nyght Serif", Georgia, "Times New Roman", serif;
  --sans: "PP Neue Montreal", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --header-h: 88px;
  --section-y: clamp(72px, 10vw, 144px);
  --panel-inset: clamp(8px, 1.4vw, 20px);
  --radius-panel: clamp(24px, 3vw, 40px);
  --radius-card: 28px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h); /* anchors + keyboard focus clear the fixed header */
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgb(210 219 118 / 0.4);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--green);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "kern";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
/* Avoid one-word last lines in running text; headings opt into balance. */
p, li, dd, summary, figcaption { text-wrap: pretty; }
ul[role="list"], ol { list-style: none; padding: 0; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  border-radius: 6px;
}

main:focus { outline: none; }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--green);
  color: var(--ivory);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus-visible { transform: none; outline-color: var(--lime); }

/* ==========================================================================
   Type
   ========================================================================== */
.display-1,
.display-2,
.hero__title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  line-height: 0.98;
  text-wrap: balance;
}

.display-1 { font-size: clamp(2.75rem, 1.6rem + 5vw, 6.25rem); }
.display-2 { font-size: clamp(2.25rem, 1.5rem + 3.2vw, 4.5rem); }

.eyebrow-heading {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 420;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  min-height: 56px;
  padding: 14px 32px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 600 1.0625rem/1.2 var(--sans);
  text-decoration: none;
  text-align: center;
}

.btn--lime { background: var(--lime); color: var(--green); border-color: var(--lime); }
.btn--lime:hover { background: var(--ivory); border-color: var(--green); }
.btn--lime:active { background: #E3E8A6; }
/* Lime and pink share a luminance (≈1:1), so on pink the pill gets a green edge. */
.panel--pink .btn--lime,
.plan--self .btn--lime,
.plan--family .btn--lime { border-color: var(--green); }

.btn--small { min-height: 44px; padding: 10px 20px; font-size: 0.9375rem; }
.btn--wide { width: 100%; max-width: 420px; }

.btn--unavailable {
  border: 1.5px dashed currentColor;
  color: inherit;
  cursor: not-allowed;
}

/* ==========================================================================
   Header + navigation
   ========================================================================== */
.site-header {
  --bar-h: 60px;
  --glass-bg: hsla(45, 6%, 86%, 0.6);
  --glass-filter: blur(32px) saturate(280%);
  --glass-shadow: 0 0 0 1px rgb(40 48 28 / 0.05), 0 1px 2px rgb(40 48 28 / 0.06), 0 10px 30px -12px rgb(40 48 28 / 0.25);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-std: cubic-bezier(0.2, 0, 0, 1);
  position: fixed;
  inset: 12px 0 auto;
  z-index: 50;
  padding-inline: var(--gutter);
  padding-top: env(safe-area-inset-top);
  pointer-events: none;
}

/* Progressive blur under the top edge: three backdrop layers, each masked to a
   band, so the blur deepens toward the edge instead of ending in a hard line. */
.site-header__blur {
  position: fixed;
  inset: 0 0 auto;
  z-index: -1;
  height: calc(104px + env(safe-area-inset-top));
  pointer-events: none;
}
.site-header__blur > span { position: absolute; inset: 0; }
.site-header__blur > span:nth-child(1) {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 33.33%, #000 66.67%, transparent 100%);
  mask-image: linear-gradient(to top, transparent 0%, #000 33.33%, #000 66.67%, transparent 100%);
}
.site-header__blur > span:nth-child(2) {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(to top, transparent 33.33%, #000 66.67%, #000 100%);
  mask-image: linear-gradient(to top, transparent 33.33%, #000 66.67%, #000 100%);
}
.site-header__blur > span:nth-child(3) {
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  -webkit-mask-image: linear-gradient(to top, transparent 66.67%, #000 100%);
  mask-image: linear-gradient(to top, transparent 66.67%, #000 100%);
}

.site-header__pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--max);
  margin-inline: auto;
  padding: 8px 8px 8px 28px;
  /* Frosted glass */
  background-color: var(--glass-bg);
  border-radius: 999px;
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-filter);
  backdrop-filter: var(--glass-filter);
}

.site-nav { margin-inline: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
}
.site-nav a:hover { background: rgb(255 195 204 / 0.6); }

.menu { position: relative; display: flex; }
.menu__bar { position: relative; z-index: 1; display: flex; align-items: center; gap: 4px; }
.menu__card { display: none; }

/* Icon-only toggle: two lines that cross into an X while the menu is open. */
.menu-toggle {
  display: none;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  transition: background-color 0.2s var(--ease-std);
}
.menu-toggle:hover { background-color: rgb(40 48 28 / 0.08); }
.menu-toggle:focus-visible { border-radius: 999px; }
.menu-toggle__icon { position: relative; width: 20px; height: 10px; }
.menu-toggle__icon::before,
.menu-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out);
}
.menu-toggle__icon::before { top: 0; }
.menu-toggle__icon::after { bottom: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { transform: translateY(4.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { transform: translateY(-4.25px) rotate(-45deg); }

/* Tinted, blurred page behind the open menu; a click on it closes the menu. */
.menu-scrim {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: rgb(40 48 28 / 0.32);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease-std), visibility 0s linear 0.25s;
}
.site-header.is-menu-open .menu-scrim {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.25s var(--ease-std);
}
html.menu-open { overflow: hidden; }
/* The wordmark drops under the scrim with the rest of the page while the menu is open. */
.site-header .wordmark { position: relative; transition: z-index 0s linear 0.25s; }
.wordmark__image { display: block; width: clamp(126px, 12vw, 156px); height: auto; }
.site-header.is-menu-open .wordmark { z-index: -3; transition: none; }

@media (max-width: 1023px) {
  .site-nav { display: none; }

  /* Two floating pills: wordmark on the left, CTA + menu toggle on the right. */
  .site-header__pill {
    justify-content: space-between;
    gap: 8px;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .site-header .wordmark,
  .menu__bar {
    min-height: var(--bar-h);
    border-radius: 999px;
    background-color: var(--glass-bg);
    -webkit-backdrop-filter: var(--glass-filter);
    backdrop-filter: var(--glass-filter);
  }
  .site-header .wordmark { padding: 0 16px; box-shadow: var(--glass-shadow); }
  .site-header .wordmark:focus-visible { border-radius: 999px; outline-offset: 2px; }
  .menu__bar { padding: 8px; }
  /* The pill's shadow lives on a pseudo-element: clip-path on the card would cut it off. */
  .menu__bar::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    box-shadow: var(--glass-shadow);
    pointer-events: none;
    transition: opacity 0.2s var(--ease-std);
  }
  .is-menu-open .menu__bar::after { opacity: 0; }
  .site-header__cta { padding-inline: 16px; }
  .site-header__cta-extra { display: none; }

  .js .menu-toggle { display: grid; }
  /* Once JS has measured the pill, the card below draws the glass so the pill can grow into the menu. */
  .menu.is-ready .menu__bar { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

  /* The card always has its open size; clip-path reveals it from the pill's
     shape (--bar-w is measured in JS) instead of animating width/height. */
  .menu.is-ready .menu__card {
    --menu-w: 272px;
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: max(100%, var(--menu-w));
    padding-top: var(--bar-h);
    border-radius: 24px;
    background-color: var(--glass-bg);
    -webkit-backdrop-filter: var(--glass-filter);
    backdrop-filter: var(--glass-filter);
    clip-path: inset(0 0 calc(100% - var(--bar-h)) calc(100% - var(--bar-w, 100%)) round calc(var(--bar-h) / 2));
    transition: clip-path 0.3s var(--ease-std), background-color 0.3s var(--ease-std);
  }
  .is-menu-open .menu.is-ready .menu__card {
    background-color: rgb(247 242 224 / 0.84);
    clip-path: inset(0 round 24px);
    transition: clip-path 0.55s var(--ease-out), background-color 0.3s var(--ease-std);
  }

  .menu__panel {
    /* Short (landscape) viewports: the list scrolls inside the card. */
    max-height: calc(100dvh - var(--bar-h) - 24px - env(safe-area-inset-top));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4px 8px 8px;
    visibility: hidden;
    transition: visibility 0s linear 0.3s;
  }
  .is-menu-open .menu__panel { visibility: visible; transition: none; }

  .menu__list { list-style: none; margin: 0; padding: 0; }
  .menu__list li { border-top: 1px solid var(--rule); }
  .menu__list a {
    display: flex;
    align-items: baseline;
    gap: 12px;
    min-height: 52px;
    padding: 13px 12px;
    overflow: hidden; /* clips the label roll-in */
    border-radius: 14px;
    font: 500 1.125rem/1.25 var(--sans);
    letter-spacing: -0.005em;
    text-decoration: none;
    transition: background-color 0.2s var(--ease-std);
  }
  .menu__list a:hover { background-color: rgb(255 195 204 / 0.55); }
  .menu__list a:focus-visible { outline-offset: -2px; }
  .menu__num {
    min-width: 1.6em;
    font: 500 0.8125rem/1 var(--sans);
    font-variant-numeric: tabular-nums;
    color: var(--green-soft);
  }

  /* Labels roll up into place, one row after another. */
  .menu__num,
  .menu__label { translate: 0 120%; }
  .is-menu-open .menu__num,
  .is-menu-open .menu__label {
    translate: none;
    transition: translate 0.5s var(--ease-out) calc(80ms + var(--row, 0) * 40ms);
  }
  .menu__list li:nth-child(2) { --row: 1; }
  .menu__list li:nth-child(3) { --row: 2; }
  .menu__list li:nth-child(4) { --row: 3; }
  .menu__list li:nth-child(5) { --row: 4; }
  .menu__list li:nth-child(6) { --row: 5; }

  /* Narrow phones: the pill holds only the toggle, so the CTA moves into the menu. */
  .menu__action { display: none; padding: 12px 4px 4px; border-top: 1px solid var(--rule); }
  .menu__action .btn { max-width: none; }
}

/* Phones: no wordmark pill; the CTA + toggle pill sits alone on the right. */
@media (max-width: 767px) {
  .site-header .wordmark { display: none; }
  .site-header__pill { justify-content: flex-end; }
}

@media (max-width: 379px) {
  .site-header__cta { display: none; }
  .menu__action { display: block; }
}

@media (min-width: 480px) and (max-width: 1023px) {
  .site-header .wordmark { padding: 0 20px; }
  .site-header__cta-extra { display: inline; }
}

@media (min-width: 600px) and (max-width: 1023px) {
  .menu.is-ready .menu__card { --menu-w: 320px; }
  .menu__list a { font-size: 1.25rem; }
}

/* No backdrop-filter, or reduced transparency: opaque surfaces, no edge blur. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { --glass-bg: rgb(247 242 224 / 0.96); }
  .site-header__blur { display: none; }
  .menu-scrim { background: rgb(40 48 28 / 0.55); }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { --glass-bg: rgb(247 242 224 / 0.97); }
  .site-header__blur { display: none; }
  .menu-scrim { background: rgb(40 48 28 / 0.6); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle__icon::before,
  .menu-toggle__icon::after,
  .menu-scrim,
  .menu__card,
  .is-menu-open .menu__card,
  .menu__panel,
  .menu__num,
  .menu__label { transition: none !important; }
  .menu__num,
  .menu__label { translate: none; }
}

/* ==========================================================================
   Panels + sections
   ========================================================================== */
.section { padding-block: var(--section-y); }
.section:has(> .panel) { padding-block: 0; margin-block: var(--panel-inset); }

.panel {
  margin-inline: var(--panel-inset);
  border-radius: var(--radius-panel);
  padding-block: var(--section-y);
}
.panel--pink { background: var(--pink); }
.panel--green { background: var(--green); color: var(--ivory); }

/* ==========================================================================
   01. Hero
   ========================================================================== */
/* Layout reference: comm5.ch. Dark stage, headline bottom-left, the photo cut
   into one bold shape: an arch on small screens, a half-stadium bleeding off
   the right edge on desktop. A round hole is cut through the wreath's centre,
   and the wreath sits concentric with the shape's round end. */
.hero {
  --edge: max(var(--gutter), (100cqi - var(--max)) / 2);
  --hero-pad-b: clamp(32px, 4vw, 56px);
  container-type: inline-size;
  position: relative;
  background: var(--green);
  color: var(--ivory);
  padding-block: calc(var(--header-h) + 24px) var(--hero-pad-b);
  /* Rounded foot so the hero reads as a panel, matching the stacked panels below. */
  border-radius: 0 0 var(--radius-panel) var(--radius-panel);
}

/* Clear separation between the full-bleed hero and the first panel. */
.hero + .section:has(> .panel) { margin-top: clamp(40px, 6vw, 96px); }

.hero__copy {
  display: grid;
  gap: clamp(20px, 2.4vw, 32px);
  padding-inline: var(--edge);
}

.hero__title {
  font-size: clamp(3.125rem, 1rem + 5.6vw, 7.25rem);
  line-height: 0.94;
  letter-spacing: -0.025em;
  max-width: 11ch;
}

.hero__aside { display: grid; gap: 24px; align-content: start; }
.hero__lead { font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.4375rem); line-height: 1.4; text-wrap: balance; }
.hero__actions { display: grid; justify-items: start; gap: 16px; }
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  font-size: 0.9375rem;
  color: var(--ivory-soft);
}
.hero__facts li + li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-inline: 10px;
  border-radius: 50%;
  background: var(--lime);
  vertical-align: 0.2em;
}
.hero__byline {
  font-size: 0.9375rem;
  color: var(--ivory-soft);
  padding-top: 14px;
  border-top: 1px solid var(--rule-light);
}

.hero__stage {
  /* Target centre of the wreath within the frame. */
  --cx: 50cqw;
  --cy: 50cqw;
  position: relative;
  container-type: size;
  aspect-ratio: 7 / 8;
  width: min(100% - var(--gutter) * 2, 520px);
  margin: clamp(40px, 8vw, 64px) var(--gutter) 0 auto;
  border-radius: 999px 999px 0 0; /* arch: radii scale down to a half-circle */
  overflow: clip;
}

.hero__wreath {
  /* Both srcset files share a square crop. Align the opening when the
     excess image area allows it, while keeping the entire frame covered. */
  --photo-size: max(100cqw, 100cqh);
  --opening-x: 0.48;
  --opening-y: 0.42;
  --opening-center: calc(var(--opening-x) * 100%) calc(var(--opening-y) * 100%);
  position: absolute;
  left: clamp(calc(100cqw - var(--photo-size)), calc(var(--cx) - var(--photo-size) * var(--opening-x)), 0px);
  top: clamp(calc(100cqh - var(--photo-size)), calc(var(--cy) - var(--photo-size) * var(--opening-y)), 0px);
  width: var(--photo-size);
  max-width: none;
  height: var(--photo-size);
}

@media (min-width: 960px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
    column-gap: clamp(24px, 3vw, 48px);
    min-height: max(640px, 100svh);
    padding-block: 0;
  }

  .hero__copy {
    align-self: end;
    padding-inline-end: 0;
    padding-block: calc(var(--header-h) + 32px) var(--hero-pad-b);
  }

  .hero__stage {
    --cx: 50cqh;
    --cy: 50cqh;
    aspect-ratio: auto;
    width: auto;
    margin: 0 0 var(--hero-pad-b);
    border-radius: 999px 0 0 999px; /* round end on the left, bleeds off the right */
  }
}

/* ==========================================================================
   02. Symbolism
   ========================================================================== */
.symbolism__title { max-width: 16ch; }

.symbols {
  display: grid;
  gap: 0;
  margin-top: clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--rule-strong);
}
.symbol {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 20px;
  row-gap: 6px;
  padding-block: 28px;
  border-bottom: 1px solid var(--rule-strong);
}
.symbol__glyph { width: 56px; height: 56px; grid-row: span 2; }
.symbol__term { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); line-height: 1.05; }
.symbol p { max-width: 32ch; }

@media (min-width: 900px) {
  .symbols { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--rule-strong); }
  .symbol {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 16px;
    padding: 36px 32px 8px 0;
    border-bottom: 0;
  }
  .symbol + .symbol { border-left: 1px solid var(--rule-strong); padding-left: 32px; }
  .symbol__glyph { grid-row: auto; width: 64px; height: 64px; margin-bottom: 8px; }
  .symbol p { padding-bottom: 28px; }
}

/* ==========================================================================
   03. Format
   ========================================================================== */
.format__intro {
  display: grid;
  gap: 16px;
  padding-bottom: clamp(32px, 4vw, 56px);
}
.format__lead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  max-width: 34ch;
  text-wrap: pretty;
}

@media (min-width: 900px) {
  .format__intro { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 32px; }
  .format__intro .eyebrow-heading { padding-top: 0.5rem; }
}

.figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--rule-strong);
}
.figure { padding: clamp(20px, 3vw, 40px) clamp(10px, 2.4vw, 32px); min-width: 0; }
.figure:first-child { padding-left: 0; }
.figure + .figure { border-left: 1px solid var(--rule-strong); }
.figure__num {
  font-family: var(--serif);
  font-weight: 330;
  font-size: clamp(4.5rem, 2rem + 11vw, 11.5rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  font-variant-numeric: lining-nums;
}
.figure__label {
  margin-top: 12px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.0625rem, 0.8rem + 1.1vw, 1.875rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.inclusions {
  display: grid;
  gap: 0;
  margin-top: clamp(32px, 4vw, 56px);
}
.inclusions li { padding-block: 20px; border-bottom: 1px solid var(--rule); }
.inclusions h3 { font: 600 1.125rem/1.3 var(--sans); margin-bottom: 4px; }
.inclusions p { color: var(--green-soft); }

@media (min-width: 900px) {
  .inclusions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .inclusions li { border-bottom: 0; border-top: 2px solid var(--green); padding-top: 20px; }
}

/* ==========================================================================
   04. Light (emotional)
   ========================================================================== */
.light__grid { display: grid; gap: 48px; align-items: center; }
.light__text { display: grid; gap: 28px; justify-items: start; }
.light__title { max-width: 10ch; }
.light__lead { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); max-width: 30ch; color: var(--ivory); }
.light__frame-defs { position: absolute; }
.light__figure { width: min(100%, 280px); justify-self: center; }
.light__frame {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 7;
  object-fit: cover;
  background: var(--green);
  clip-path: url(#scallop);
}
/* Added by main.js around the video: click/tap/Enter/Space pauses and resumes it. */
.loop-video {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--green);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.loop-video:focus-visible { outline-offset: 6px; }
.loop-video__icon {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: rgb(247 242 224 / 0.88);
  box-shadow: 0 1px 2px rgb(40 48 28 / 0.2), 0 8px 24px rgb(40 48 28 / 0.25);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.loop-video__icon svg { margin-left: 3px; }
.loop-video.is-paused .loop-video__icon { opacity: 1; transform: none; }

@media (min-width: 900px) {
  .light__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; }
  .light__figure { width: min(100%, 460px); justify-self: end; }
}

.panel--green :focus-visible { outline-color: var(--lime); }

/* ==========================================================================
   05. Pricing
   ========================================================================== */
.pricing__title { margin-bottom: clamp(32px, 5vw, 64px); }

.plans { display: grid; gap: 16px; }

.plan {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-card);
  min-width: 0;
}
.plan--online { background: var(--ivory); border: 1.5px solid var(--green); }
/* Pink marks the plans that include a kit; no plan is singled out. */
.plan--self,
.plan--family { background: var(--pink); }

.plan__name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.plan__summary { font-weight: 600; font-size: 0.9375rem; }

.plan__list {
  flex: 1;
  list-style: none;
  padding: 16px 0 0;
  border-top: 1px solid var(--rule-strong);
  display: grid;
  align-content: start;
  gap: 10px;
  font-size: 1rem;
  line-height: 1.5;
}
.plan__list li { position: relative; padding-left: 22px; max-width: 48ch; }
.plan__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.plan__kit { font-weight: 600; }
.plan__kit::before { background: currentColor; }
.plan__list .plan__inherit { padding-left: 0; color: var(--green-soft); }
.plan__list .plan__inherit::before { content: none; }

.plan__buy {
  display: grid;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-strong);
}

.plan__price {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.875rem);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.plan__price-regular { font-size: 0.65em; opacity: 0.7; margin-right: 0.3em; }
.plan__price-sale { font-weight: 500; }
.plan__note { font-size: 0.875rem; }
.plan__buy .btn { max-width: none; }

@media (min-width: 960px) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ==========================================================================
   06. Author
   ========================================================================== */
/* Storytelling order: eyebrow → greeting with name → story → belief → signature. */
.author__grid { display: grid; gap: clamp(36px, 5vw, 48px); align-items: start; }

.author__photo {
  width: 100%;
  max-width: 520px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  /* Arch top below 900px (4:5 frame: 50% wide ÷ 40% tall = a semicircle). */
  border-radius: 50% 50% 16px 16px / 40% 40% 16px 16px;
}
/* Below 900px the photo leads the panel: keep the gap above the arch close
   to the side gutter instead of the full section padding. */
.author > .panel { padding-top: var(--gutter); }

.author__text { display: grid; gap: clamp(24px, 3vw, 36px); align-content: start; }

.author__eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.author__eyebrow::before {
  content: "";
  width: 48px;
  border-top: 1px solid currentColor;
}

.author__title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.author__title { color: var(--green-soft); }
.author__accent { color: var(--green); }

.author__bio {
  display: grid;
  gap: 20px;
  max-width: 50ch; /* ≈70 Cyrillic characters per line */
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--green-soft);
}
.author__lead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem);
  line-height: 1.45;
  color: var(--green);
}

.author__sign {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 24px;
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--rule-strong);
}
.author__sign-name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem);
  line-height: 1.1;
}
.author__sign-role {
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-soft);
}

@media (min-width: 900px) {
  .author__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 6vw, 96px); }
  /* Photo spans the full text column height, as in the reference layout. */
  .author__grid { align-items: stretch; }
  .author > .panel { padding-top: var(--section-y); }
  .author__photo { max-width: none; height: 100%; min-height: 520px; aspect-ratio: auto; contain: size; border-radius: 12px; }
}

/* ==========================================================================
   Access steps
   ========================================================================== */
.steps {
  counter-reset: step;
  display: grid;
  margin-top: clamp(32px, 5vw, 64px);
  padding: 0;
}
.step {
  counter-increment: step;
  position: relative;
  padding: 0 0 32px 72px;
}
.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--green);
  background: var(--ivory);
  font: 400 1.375rem/1 var(--serif);
  font-variant-numeric: lining-nums tabular-nums;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 52px;
  bottom: 4px;
  border-left: 1px solid var(--rule-strong);
}
.step__title { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 1.75rem; line-height: 1.1; padding-top: 6px; margin-bottom: 8px; }
.step p { max-width: 34ch; color: var(--green-soft); }

@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .step { padding: 76px 0 0; }
  .step:not(:last-child)::after {
    left: 56px;
    right: -28px;
    top: 24px;
    bottom: auto;
    border-left: 0;
    border-top: 1px solid var(--rule-strong);
  }
}

/* ==========================================================================
   Works + reviews
   ========================================================================== */
.works { padding-top: 0; container-type: inline-size; }
.works__head { display: grid; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
.works__intro { display: grid; gap: 12px; }
.works__intro p { color: var(--green-soft); max-width: 40ch; }

@media (min-width: 900px) {
  .works__head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}

.works__controls { display: flex; gap: 12px; }
/* Arrows need the Blossom script; hide them until its elements are defined (or if it never loads). */
.works__controls:has(blossom-prev:not(:defined), blossom-next:not(:defined)) { display: none; }
.works__controls blossom-prev,
.works__controls blossom-next { display: contents; }
.works__arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1.5px solid var(--rule-strong);
  border-radius: 50%;
  background: var(--ivory);
  color: var(--green);
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 1px 2px rgb(40 48 28 / 0.08), 0 4px 12px rgb(40 48 28 / 0.08);
  transition: background-color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}
.works__arrow:hover { background: var(--lime); border-color: var(--green); }
.works__arrow:disabled { opacity: 0.4; cursor: default; background: var(--ivory); border-color: var(--rule-strong); }

/* <blossom-carousel> is the scroll container. It spans the full viewport, and the
   first card lines up with the container edge. Blossom's defaults sit in
   @layer blossom-carousel, so these unlayered rules win. Keep scroll-snap-type
   constant: the drag engine reads it once on connect. */
.works__viewport {
  /* cqi (not %) so scroll-padding computes to px: Blossom parses it as a number. */
  --works-edge: max(var(--gutter), (100cqi - var(--max)) / 2);
  display: flex;
  gap: clamp(12px, 1.6vw, 20px);
  width: 100%;
  overflow-x: auto;
  overflow-y: clip;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--works-edge);
  scrollbar-width: none;
  /* Room for the card shadow (it reaches ~32px below a card), which the
     scroller would otherwise clip; negative margins keep the layout in place. */
  padding: 24px var(--works-edge) 48px;
  margin-block: -20px -32px;
}
/* Mouse/trackpad: no native snapping, so Shift+wheel and trackpad swipes scroll
   linearly instead of jumping a whole card per notch. Blossom re-applies native
   snapping through --snap-type (inline style); its drag engine and prev/next
   still snap to cards from the snap-align points it measured on connect. */
@media (hover: hover) and (pointer: fine) {
  .works__viewport { --snap-type: none !important; }
}
@media (prefers-reduced-motion: no-preference) {
  .works__viewport { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  .works__viewport { scroll-behavior: auto; }
}
.works__viewport::-webkit-scrollbar { display: none; }
.works__viewport:focus-visible { outline-offset: -3px; border-radius: 0; }
/* Soft fade on the trailing edge while more cards remain (set by JS). */
.works__viewport.has-more {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - clamp(40px, 8vw, 120px)), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - clamp(40px, 8vw, 120px)), transparent);
}

.work-card {
  --work-radius: clamp(36px, 4.8vw, 68px);
  --work-panel: var(--pink);
  position: relative;
  flex: 0 0 auto;
  width: clamp(232px, 24vw, 340px);
  scroll-snap-align: start;
}
.work-card:nth-child(even) { --work-panel: var(--lime); }

.work-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--work-radius);
  background: var(--green);
  color: var(--ivory);
  box-shadow: 0 1px 2px rgb(40 48 28 / 0.1), 0 12px 28px -8px rgb(40 48 28 / 0.28);
}
.work-card__media img { width: 100%; height: 100%; object-fit: cover; }
/* Dark gradient keeps the overlay title readable on any photo. */
.work-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(20 24 14 / 0.72) 0%, rgb(20 24 14 / 0.2) 38%, rgb(20 24 14 / 0) 60%);
  pointer-events: none;
}
.work-card__title {
  position: absolute;
  z-index: 1;
  inset-inline: clamp(20px, 2.4vw, 32px);
  bottom: clamp(20px, 2.4vw, 32px);
  font: italic 300 clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem)/1.15 var(--serif);
  color: var(--ivory);
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.work-card--intro .work-card__media { background: linear-gradient(170deg, #34401F 0%, var(--green) 55%, #1B2112 100%); }
.work-card__media > .work-card__icon {
  position: absolute;
  top: 15%;
  left: 50%;
  width: 48%;
  height: auto;
  translate: -50% 0;
}

/* Touch / no-hover default: description sits below the card, like the reference mobile view. */
.work-card__panel { display: grid; gap: 4px; justify-items: start; padding: 16px clamp(8px, 1.6vw, 20px) 0; }
.work-card__text { color: var(--green-soft); font-size: 0.9375rem; line-height: 1.5; }
.work-card__panel-title { display: none; }
.work-card__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 600 0.9375rem/1.2 var(--sans);
  text-decoration: underline;
  touch-action: manipulation;
}

/* Hover-capable pointers: description replaces the photo in a colored panel. */
@media (hover: hover) and (pointer: fine) {
  .work-card__panel {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: clamp(28px, 3vw, 44px);
    border-radius: var(--work-radius);
    background: var(--work-panel);
    color: var(--green);
    opacity: 0;
    pointer-events: none;
  }
  .work-card:hover .work-card__panel,
  .work-card:focus-within .work-card__panel { opacity: 1; pointer-events: auto; }

  .work-card__text { color: var(--green); font-size: clamp(1rem, 0.9rem + 0.3vw, 1.1875rem); line-height: 1.45; }
  .work-card__panel-title {
    display: block;
    margin-top: auto;
    font: italic 300 clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem)/1.15 var(--serif);
    text-wrap: balance;
  }
  .work-card__link {
    margin-top: 20px;
    min-height: 52px;
    padding-inline: 28px;
    border-radius: 999px;
    background: var(--ivory);
    text-decoration: none;
    box-shadow: 0 1px 2px rgb(40 48 28 / 0.1), 0 6px 16px -4px rgb(40 48 28 / 0.25);
    transition: background-color 160ms ease;
  }
  .work-card__link:hover { background: #fff; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .work-card__panel { transition: opacity 280ms ease; }
}

/* ==========================================================================
   FAQ (native details/summary)
   ========================================================================== */
.faq { padding-top: 0; }
.faq__grid { display: grid; gap: 32px; }
@media (min-width: 900px) {
  .faq__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
  .faq__grid > h2 { max-width: 9ch; }
}

.faq__list { border-top: 1px solid var(--rule-strong); }
.faq__item { border-bottom: 1px solid var(--rule-strong); }
.faq__item summary {
  position: relative;
  display: block;
  min-height: 44px;
  padding: 22px 56px 22px 0;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before,
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform 200ms ease;
}
.faq__item summary::after { transform: rotate(90deg); }
.faq__item[open] summary::after { transform: rotate(0deg); }
.faq__item summary:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.faq__answer { padding: 0 48px 24px 0; max-width: 52ch; color: var(--green-soft); }

/* ===========================================================================
   Closing call to action
   ========================================================================== */
.closing .panel { padding-block: clamp(28px, 5vw, 72px); }
.closing__grid {
  display: grid;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  max-width: calc(1080px + var(--gutter) * 2);
}
.closing__copy { display: grid; justify-items: start; gap: 20px; }
.closing__copy p:not(.eyebrow-heading) { max-width: 45ch; }
.closing__media {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-card);
  overflow: clip;
}
.closing__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%; /* keep Olena's face in frame */
}
@media (min-width: 700px) {
  .closing__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
}

/* ==========================================================================
   Contacts + footer
   Layout reference: comm5.ch. A band of simple shapes (sparkles, clovers,
   dot flowers) sits on the ivory page above the green footer panel, whose top
   corners are rounded. The shapes are inline SVG (three generated 1200×240
   tiles side by side, cropped with preserveAspectRatio slice) so each one
   can be hovered.
   ========================================================================== */
.site-footer {
  --ivory-muted: #ABAA95;          /* tertiary text on green (≈6:1) */
  --footer-gap: clamp(16px, 2.6vw, 40px);
  background: var(--ivory);
  color: var(--ivory);
}
.site-footer :focus-visible { outline-color: var(--lime); }

.footer-motifs {
  padding-block: clamp(48px, 7vw, 112px) clamp(24px, 3.5vw, 56px); /* ivory air */
}
.footer-motifs__art {
  display: block;
  width: 100%;
  height: clamp(130px, 15vw, 220px);  /* the shapes' height */
  overflow: hidden;
}
.motif { fill: var(--green); }
.motif--pink { fill: var(--pink); }

/* Hover: each shape gives a springy spin/pop and settles back on leave.
   Transitions (not keyframes) so the motion follows the pointer and can be
   interrupted. Only for real hover pointers and when motion is allowed. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .motif {
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .motif--sparkle:hover   { transform: rotate(90deg) scale(1.25); }
  .motif--clover:hover    { transform: rotate(-90deg) scale(1.12); }
  .motif--dotflower:hover { transform: rotate(45deg) scale(1.18); }
  .motif--dot:hover       { transform: scale(2); }
}

.footer__panel {
  background: var(--green);
  border-radius: var(--radius-panel) var(--radius-panel) 0 0;
}

.footer__grid {
  display: grid;
  gap: 48px var(--footer-gap);
  padding-block: clamp(40px, 6vw, 88px) clamp(48px, 6vw, 88px);
}
.footer__brand { display: grid; justify-items: start; gap: 20px; }
.wordmark--footer { min-height: 0; }
.wordmark--footer .wordmark__image { width: clamp(220px, 12rem + 10vw, 340px); }
.footer__tagline {
  font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.5rem);
  line-height: 1.35;
  max-width: 24ch;
  text-wrap: balance;
}
.footer__brand .btn { margin-top: 8px; }

.footer__col { scroll-margin-top: calc(var(--header-h) + 16px); }
.footer__label {
  margin-bottom: 20px;
  font: 600 0.8125rem/1.2 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory-soft);
}
.footer__list { display: grid; gap: 8px; font-size: 1.0625rem; line-height: 1.5; }
.footer__muted { color: var(--ivory-muted); }
.footer__link,
.footer__top {
  position: relative;
  color: var(--ivory);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.2s ease;
}
/* Rows stay tight; the hit area grows to 44px without moving the text. */
.footer__link::after,
.footer__top::after { content: ""; position: absolute; inset: -13px -8px; }
.footer__link:hover,
.footer__top:hover { text-decoration-color: currentColor; }
.footer__arrow { display: inline-block; margin-left: 0.4em; font-size: 0.85em; }

.legal { font-size: 1rem; }
.legal li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--ivory-soft); }
.legal__status {
  padding: 1px 10px;
  border: 1px solid var(--rule-light);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--ivory-muted);
  white-space: nowrap;
}

/* Leafy vine between the columns and the bottom bar. Like the reference's pale
   sage on white, it is a quiet tint of the footer green, a step toward ivory.
   On narrow screens the viewBox is cropped (slice) so the leaves keep size. */
.footer-decor {
  display: block;
  width: 100%;
  height: clamp(64px, 7.2vw, 120px);
  color: color-mix(in oklab, var(--ivory) 22%, var(--green));
  pointer-events: none;
}
.footer-decor path { vector-effect: non-scaling-stroke; }

.footer__bar {
  padding-block: 24px calc(24px + env(safe-area-inset-bottom));
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ivory-muted);
}
.footer__dot { margin-inline: 12px; opacity: 0.6; }

@media (min-width: 600px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / 3; }
}

/* ==========================================================================
   Scroll reveals (motion pattern reference: comm5.ch)
   - [data-reveal]: words rise out of a clip mask, staggered per rendered line.
   - [data-fade], [data-fade-group] > *: fade up, staggered per batch.
   - [data-text-fill]: words fill in as the paragraph scrolls up.
   - [data-parallax]: image drifts inside its .parallax-frame.
   Hidden states apply only on screen, with JS and motion allowed. If main.js
   never arms the reveals, the failsafe animation shows everything after 3s.
   ========================================================================== */
.reveal__word,
.reveal__inner { display: inline-block; }
.reveal__word { clip-path: inset(-0.25em -0.12em -0.2em -0.12em); }

.parallax-frame { overflow: clip; }

@media screen and (prefers-reduced-motion: no-preference) {
  html.js:not(.reveal-off) :is([data-reveal], [data-fade], [data-fade-group] > *):not(.is-revealed) {
    opacity: 0;
  }
  html.js:not(.reveal-armed):not(.reveal-off) :is([data-reveal], [data-fade], [data-fade-group] > *) {
    animation: reveal-failsafe 0.6s ease-out 3s forwards;
  }
  @keyframes reveal-failsafe { to { opacity: 1; } }

  /* The photo opens outward from the wreath's centre. */
  html.js .hero__wreath { animation: hero-iris 1.3s cubic-bezier(0.65, 0, 0.15, 1) 0.15s backwards; }
  @keyframes hero-iris {
    from { clip-path: circle(0% at var(--opening-center)); }
    to { clip-path: circle(100% at var(--opening-center)); }
  }

  .text-fill__word {
    --f: clamp(0, (var(--p, 1) * (var(--n) + 3) - var(--i)) / 3, 1);
    color: color-mix(in srgb, currentColor calc(28% + var(--f) * 72%), transparent);
  }
}
