/* The Gift of Christmas 2026: a printed concert program.
   Grammar: chaptered editorial. Paper chapters (house lights up) and dark chapters (the concert),
   each on its own ground, hard cuts between them. Brand: ivory, evergreen, antique gold, cranberry. */

:root {
  --ivory: #F7F3E9;
  --evergreen: #0C4035;
  --evergreen-soft: #47594F;
  --gold: #C69339;
  --gold-light: #F2D58A;
  --gold-deep: #85601E;
  --cranberry: #7B293B;

  --night: #0E0C0A;
  --night-green: #0A1411;
  --night-red: #160B0E;
  --night-blue: #0A0D15;
  --night-gold: #13100B;
  --ink-night: #F3EBDC;
  --ink-night-soft: #C2B6A1;
  --gold-night: #E7C87F;

  --sc-canvas: var(--ivory);
  --sc-surface: #FFFDF6;
  --sc-ink: var(--evergreen);
  --sc-ink-soft: var(--evergreen-soft);
  --sc-accent: var(--gold-deep);
  --sc-accent-ink: var(--ivory);
  --sc-font-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --sc-font-text: "EB Garamond", Garamond, Georgia, serif;
  --sc-shadow-color: 35 45% 10%;
  --sc-maxw: 84rem;

  --paper: var(--ivory) url("assets/paper.webp") repeat;
  --cap-track: 0.06em;
}

body {
  font-size: clamp(1.14rem, 1.06rem + 0.32vw, 1.32rem);
  line-height: 1.55;
  background: var(--paper);
}
html:not(.js) [data-sc-in], html:not(.js) [data-sc-stagger] > * { opacity: 1; transform: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------ grounds */
.ch { position: relative; isolation: isolate; }
.ch--paper, .colophon { background: var(--paper); color: var(--sc-ink); }
.ch[data-ground="dark"] {
  --sc-ink: var(--ink-night);
  --sc-ink-soft: var(--ink-night-soft);
  --sc-accent: var(--gold-night);
  --sc-accent-ink: var(--night);
  color: var(--sc-ink);
  background: var(--night);
}
.ch--green { background: var(--night-green); }
.ch--red { background: var(--night-red); }
.ch--blue { background: var(--night-blue); }
.ch--gold { background: var(--night-gold); }
/* a whisper of grain on the dark grounds so they read as a lit room, not a flat fill */
.ch[data-ground="dark"]::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: url("assets/paper.webp") repeat; mix-blend-mode: overlay; opacity: 0.09;
}

/* ------------------------------------------------------------ type */
.ch__no {
  font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-sm);
  letter-spacing: 0.2em; color: var(--sc-accent); margin: 0;
}
.ch__title {
  font-family: var(--sc-font-display); font-weight: 600; margin: 0;
  font-size: clamp(2.5rem, 1.7rem + 3.6vw, 5rem); line-height: 1.02; letter-spacing: 0.01em;
  text-wrap: balance;
}
.ch__prose { margin: 0; max-width: 38ch; color: var(--sc-ink-soft); font-size: var(--sc-t-lg); line-height: 1.5; text-wrap: pretty; }
.ch__head { display: grid; gap: var(--sc-3); margin-bottom: clamp(2rem, 5vw, 4.5rem); }
figure { margin: 0; }
figure img { width: 100%; height: auto; border-radius: 2px; box-shadow: var(--sc-e2); }
figcaption {
  font-style: italic; font-size: var(--sc-t-sm); color: var(--sc-ink-soft);
  margin-top: var(--sc-3); padding-left: 1.4em; position: relative;
}
figcaption::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.9em; height: 1px; background: var(--sc-accent); }
cite { font-style: normal; font-family: var(--sc-font-display); font-size: 0.62em; letter-spacing: 0.18em; display: block; margin-top: 0.9em; color: var(--sc-accent); }
a { color: inherit; text-decoration-color: color-mix(in oklab, var(--sc-accent) 70%, transparent); }
a:hover { text-decoration-color: var(--sc-accent); }

/* ------------------------------------------------------------ title page (the curtain: the film under the cover) */
.cover {
  --sc-ink: var(--ink-night); --sc-ink-soft: var(--ink-night-soft); --sc-accent: var(--gold-night); --sc-accent-ink: var(--night);
  position: relative; min-height: 100svh; overflow: clip; display: grid; place-items: center;
  padding: clamp(4.5rem, 9vh, 6.5rem) var(--sc-gutter) clamp(3rem, 8vh, 5rem);
  background: var(--night); color: var(--sc-ink);
}
.cover__film { position: absolute; inset: 0; z-index: 1; background: var(--night); }
.cover__video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; background: var(--night); }
/* density where the type is (a column under the details, a soft vignette), not a flat wash over the whole frame */
.cover__scrim {
  position: absolute; inset: 0; pointer-events: none; transition: opacity 600ms var(--sc-ease-out);
  background:
    linear-gradient(to right, rgb(10 8 6 / 0.5), rgb(10 8 6 / 0.4) 42%, rgb(10 8 6 / 0.62) 70%, rgb(10 8 6 / 0.72)),
    radial-gradient(115% 95% at 50% 50%, transparent 38%, rgb(10 8 6 / 0.78));
}
.cover__dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.cover__hbc { position: absolute; top: clamp(1.1rem, 3vh, 2rem); left: 50%; translate: -50% 0; z-index: 6; }
.cover__hbc img { height: clamp(30px, 4.2vh, 42px); width: auto; }

.cover__grid {
  position: relative; z-index: 4; width: min(1260px, 100%);
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 6rem); align-items: center;
}
.cover__logo { margin: 0; }
.logo { position: relative; display: block; width: 100%; aspect-ratio: 1400 / 1168; will-change: transform; filter: drop-shadow(0 6px 22px rgb(0 0 0 / 0.55)); }
.logo__l { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; }
.logo__glow {
  position: absolute; left: 50.1%; top: 25.3%; width: 70%; aspect-ratio: 1; translate: -50% -50%;
  background: radial-gradient(closest-side, rgb(255 236 186 / 0.6), rgb(242 213 138 / 0.18) 45%, transparent 72%);
  pointer-events: none; opacity: 0.55;
}
/* the wordmark is evergreen in the artwork; on the dark cover it is set in ivory through its own shape */
.logo__ink {
  position: absolute; inset: 0; background: var(--ink-night);
  -webkit-mask: url("assets/logo-word.webp") center / 100% 100% no-repeat;
  mask: url("assets/logo-word.webp") center / 100% 100% no-repeat;
}
.logo__shine {
  -webkit-mask: url("assets/logo-word.webp") center / 100% 100% no-repeat;
  mask: url("assets/logo-word.webp") center / 100% 100% no-repeat;
  background: linear-gradient(100deg, transparent 42%, rgb(242 213 138 / 0.95) 50%, transparent 58%) no-repeat;
  background-size: 300% 100%; background-position: 120% 0; opacity: 0;
}

.cover__details {
  position: relative; isolation: isolate; container-type: inline-size;
  display: grid; gap: var(--sc-3); justify-items: start;
  padding: clamp(1.5rem, 2.6vw, 2.4rem) clamp(1.5rem, 2.8vw, 2.6rem);
  border-left: 1px solid var(--gold); border-radius: 0 var(--sc-r-md) var(--sc-r-md) 0;
}
/* the frosted box is its own layer so it can arrive with the first line of type, not before it */
.cover__details::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: rgb(10 8 6 / 0.58); -webkit-backdrop-filter: blur(18px) saturate(1.1); backdrop-filter: blur(18px) saturate(1.1);
  box-shadow: inset 0 0 0 1px rgb(242 213 138 / 0.14), var(--sc-e3);
}
.cover__details > p { margin: 0; }
.cover__eyebrow { font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(0.82rem, 0.76rem + 0.25vw, 0.98rem); letter-spacing: 0.18em; color: var(--gold-light); line-height: 1.5; }
.cover__date { font-family: var(--sc-font-display); font-weight: 700; color: var(--ink-night); font-size: min(clamp(2.4rem, 1.4rem + 3.4vw, 4.6rem), calc(100cqi / 6.75)); line-height: 0.98; letter-spacing: 0.005em; }
.cover__md { font-weight: inherit; white-space: nowrap; }
.cover__date span { display: block; font-size: 0.4em; letter-spacing: 0.22em; font-weight: 600; margin-bottom: 0.3em; color: var(--gold-night); }
.cover__times { font-family: var(--sc-font-display); font-weight: 700; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); letter-spacing: 0.02em; color: var(--gold-light); }
.cover__where { color: var(--ink-night); font-size: var(--sc-t-lg); }
.cover__where strong { color: var(--gold-light); font-weight: 600; white-space: nowrap; }
.cover__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sc-3) var(--sc-4); margin-top: var(--sc-4); }
.cover__watch {
  display: inline-flex; align-items: center; gap: 0.7em; cursor: pointer;
  font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-sm); letter-spacing: 0.16em;
  color: var(--ink-night); background: rgb(10 8 6 / 0.35); border: 0; border-radius: var(--sc-r-pill);
  padding: 0.95em 1.7em; box-shadow: inset 0 0 0 1px var(--gold), var(--sc-e2); white-space: nowrap;
  transition: transform 140ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out);
}
@media (hover: hover) and (pointer: fine) { .cover__watch:hover { background: rgb(10 8 6 / 0.6); transform: translateY(-1px); } }
.cover__watch:active { transform: translateY(1px); }
.cover__play { width: 0; height: 0; border-style: solid; border-width: 0.42em 0 0.42em 0.7em; border-color: transparent transparent transparent var(--gold-light); }

/* watching with sound: the cover steps aside and the film has the screen */
.cover__close {
  position: absolute; z-index: 8; top: clamp(1rem, 3vh, 2rem); right: max(var(--sc-gutter), env(safe-area-inset-right)); cursor: pointer;
  font-family: var(--sc-font-display); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.16em;
  color: var(--ink-night); background: rgb(10 8 6 / 0.72); border: 0; border-radius: var(--sc-r-pill); padding: 0.65em 1.05em;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--gold) 70%, transparent);
}
.cover.is-watching .cover__video { object-fit: contain; }
.cover.is-watching .cover__scrim, .cover.is-watching .cover__grid,
.cover.is-watching .cover__dust, .cover.is-watching .cover__hbc { opacity: 0 !important; pointer-events: none; transition: opacity 500ms var(--sc-ease-out); }
.cover.is-watching .cover__film { z-index: 7; }
.cover.is-watching .cover__video { pointer-events: auto; }

/* ------------------------------------------------------------ add to calendar (one label everywhere) */
.cal { position: relative; z-index: 30; }
.cal summary { list-style: none; cursor: pointer; }
.cal summary::-webkit-details-marker { display: none; }
.cal--button summary {
  margin-top: var(--sc-4);
  font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-sm); letter-spacing: 0.16em;
  color: var(--ivory); background: var(--evergreen);
  padding: 0.95em 1.9em; border-radius: var(--sc-r-pill);
  box-shadow: inset 0 0 0 1px var(--gold), inset 0 0 0 5px var(--evergreen), inset 0 0 0 6px color-mix(in oklab, var(--gold) 70%, transparent), var(--sc-e2);
  transition: transform 140ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out);
  display: inline-block; white-space: nowrap;
}
.cover .cal--button summary { margin-top: 0; color: var(--night); background: var(--gold-light); box-shadow: inset 0 0 0 1px #FFF3CF, var(--sc-e2); }
@media (hover: hover) and (pointer: fine) { .cal--button summary:hover { background: #0F4E41; transform: translateY(-1px); } .cover .cal--button summary:hover { background: #F7E2A8; } }
.cal--button summary:active { transform: translateY(1px); }
.cal--text summary {
  display: inline; font-family: inherit; text-decoration: underline; text-underline-offset: 0.22em;
  text-decoration-thickness: 1px; text-decoration-color: var(--sc-accent); color: var(--sc-ink); font-weight: 600;
}
.cal__menu {
  position: absolute; left: 0; top: calc(100% + 0.6rem); min-width: min(22rem, 86vw);
  background: var(--paper); color: var(--evergreen);
  border: 1px solid color-mix(in oklab, var(--gold) 60%, transparent); border-radius: var(--sc-r-md);
  padding: var(--sc-4) var(--sc-5); box-shadow: var(--sc-e3); display: grid; gap: var(--sc-3);
  font-size: var(--sc-t-base);
}
.cal--up .cal__menu { top: auto; bottom: calc(100% + 0.6rem); left: 50%; translate: -50% 0; }
.cal__row { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 1rem; }
.cal__time { font-family: var(--sc-font-display); font-weight: 600; font-size: 0.78em; letter-spacing: 0.14em; width: 100%; color: var(--cranberry); }
.cal__row a { color: var(--evergreen); font-weight: 600; }

/* ------------------------------------------------------------ folio (the running head) */
.folio { position: fixed; z-index: 70; top: max(0.75rem, env(safe-area-inset-top)); left: max(var(--sc-gutter), env(safe-area-inset-left)); opacity: 0; visibility: hidden; translate: 0 -8px; pointer-events: none; transition: opacity 260ms var(--sc-ease-out), translate 260ms var(--sc-ease-out), visibility 0s linear 260ms; }
.folio.is-on { opacity: 1; visibility: visible; translate: 0 0; pointer-events: auto; transition: opacity 260ms var(--sc-ease-out), translate 260ms var(--sc-ease-out), visibility 0s; }
.folio__btn {
  display: inline-flex; align-items: baseline; gap: 0.8em; border: 0; cursor: pointer;
  font-family: var(--sc-font-display); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em;
  color: var(--folio-ink, var(--evergreen)); padding: 0.65em 1.05em; border-radius: var(--sc-r-pill);
  background: var(--folio-bg, color-mix(in oklab, var(--ivory) 90%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--gold) 55%, transparent);
  transition: color 200ms var(--sc-ease-out), background-color 200ms var(--sc-ease-out);
}
.folio__no { color: var(--folio-accent, var(--gold-deep)); }
html[data-here="dark"] .folio { --folio-ink: var(--ink-night); --folio-accent: var(--gold-night); --folio-bg: color-mix(in oklab, #0E0C0A 86%, transparent); }
.program {
  margin-top: 0.6rem; background: var(--paper); color: var(--evergreen); border-radius: var(--sc-r-md);
  border: 1px solid color-mix(in oklab, var(--gold) 60%, transparent); box-shadow: var(--sc-e3);
  padding: var(--sc-5) var(--sc-6) var(--sc-5) var(--sc-5); min-width: 17rem;
}
.program__head { margin: 0 0 var(--sc-3); font-family: var(--sc-font-display); font-weight: 700; letter-spacing: 0.2em; font-size: 0.8rem; color: var(--cranberry); }
.program__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.program__list a { display: grid; grid-template-columns: 2.6em 1fr; text-decoration: none; padding: 0.25em 0; font-size: var(--sc-t-base); }
.program__list a span { font-family: var(--sc-font-display); font-size: 0.78em; color: var(--gold-deep); letter-spacing: 0.08em; padding-top: 0.12em; }
.program__list a:hover, .program__list a[aria-current="true"] { color: var(--cranberry); }

/* ------------------------------------------------------------ the staff (signature) */
.staff {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; pointer-events: none;
  height: calc(104px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  opacity: 0; transform: translate3d(0, var(--staff-y, 0px), 0) scale(var(--staff-s, 1)); transform-origin: 50% 50%;
}
.staff::before {
  content: ""; position: absolute; inset: -30px 0 0 0; opacity: var(--staff-bed, 1);
  background: linear-gradient(to top, rgb(10 8 6 / 0.82), rgb(10 8 6 / 0.5) 55%, transparent);
}
.staff__svg { position: absolute; left: 0; bottom: calc(10px + env(safe-area-inset-bottom)); height: 84px; width: auto; max-width: none; overflow: visible; will-change: transform; }
.mus { fill: var(--gold); stroke: none; }
.mus-line { stroke: var(--gold); stroke-width: 1.1; fill: none; }
.mus-stem { stroke: var(--gold); stroke-width: 1.3; }
.mus-hollow { fill: none; stroke: var(--gold); stroke-width: 1.6; }
.mus-glyph { font-family: "Noto Music", serif; fill: var(--gold); }
.mus-time { font-family: var(--sc-font-display); font-weight: 700; fill: var(--gold); }
.mus-lyric { font-family: var(--sc-font-text); font-style: italic; fill: var(--ink-night); font-size: 12.5px; }
.note { opacity: 0; transform-box: fill-box; transform-origin: 50% 70%; transform: translateY(3px) scale(0.7); transition: opacity 220ms var(--sc-ease-out), transform 260ms var(--sc-ease-out); }
.note.is-written { opacity: 1; transform: none; }
.note.is-fresh .mus, .note.is-fresh .mus-hollow, .note.is-fresh .mus-stem { fill: var(--gold-light); stroke: var(--gold-light); }
.note.is-fresh .mus-hollow { fill: none; }
.score .note.is-on .mus, .score .note.is-on .mus-stem { fill: #FFF3CF; stroke: #FFF3CF; }
.score .note.is-on .mus-hollow { stroke: #FFF3CF; }
.score .note.is-on { filter: drop-shadow(0 0 6px rgb(242 213 138 / 0.8)); }

/* ------------------------------------------------------------ I · the evening */
.evening { padding-block: clamp(5rem, 11vw, 10rem) clamp(5rem, 10vw, 9rem); }
.evening__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2.5rem, 7vw, 8rem); align-items: start; }
.evening__lead { display: grid; gap: var(--sc-4); }
.evening__big { margin: var(--sc-4) 0 var(--sc-2); font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.9rem); line-height: 1.12; color: var(--cranberry); max-width: 16ch; text-wrap: balance; }
.evening__num { font-weight: 800; color: var(--evergreen); }
.facts { margin: 0; display: grid; gap: 0; border-top: 1px solid color-mix(in oklab, var(--gold) 55%, transparent); }
.facts > div { display: grid; grid-template-columns: 6.4rem 1fr; gap: var(--sc-4); padding: var(--sc-4) 0; border-bottom: 1px solid color-mix(in oklab, var(--gold) 35%, transparent); }
.facts dt { font-family: var(--sc-font-display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.16em; color: var(--gold-deep); padding-top: 0.35em; }
.facts dd { margin: 0; container-type: inline-size; }
/* the date and both times always on one line; shrinks only if a column is ever narrower than the phrase */
.facts__when { white-space: nowrap; font-size: min(1em, calc(100cqi / 17.6)); }
@media (max-width: 1180px) {
  .facts > div { grid-template-columns: 1fr; gap: var(--sc-1); }
}
.facts__note, .countdown { display: block; color: var(--sc-ink-soft); font-style: italic; margin-top: 0.25em; }
.countdown { font-style: normal; font-family: var(--sc-font-display); font-size: 0.78rem; letter-spacing: 0.16em; color: var(--cranberry); margin-top: 0.6em; }
.facts__link { display: inline-block; margin-top: 0.35em; font-weight: 600; }
.facts > .facts__cta { display: block; border-bottom: 0; padding-top: var(--sc-5); }

/* ------------------------------------------------------------ II · overture (the peak) */
.overture { background: var(--ivory); }
.overture__stage {
  /* the lights go down warm (paper -> candlelight amber -> the dark hall), never through grey */
  --warm: clamp(0, calc((var(--sc-p, 0) - 0.02) / 0.12), 1);
  --dim: clamp(0, calc((var(--sc-p, 0) - 0.08) / 0.22), 1);
  background: color-mix(in oklab, var(--night) calc(var(--dim) * 100%), color-mix(in oklab, #B4864A calc(var(--warm) * 55%), var(--ivory)));
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr); gap: clamp(2rem, 4.5vw, 5rem);
  align-items: center; padding: clamp(4.5rem, 10vh, 7rem) var(--sc-gutter) clamp(7rem, 15vh, 9rem);
  color: var(--ink-night); overflow: clip;
}
/* the paper fades as the lights go down; the edges go first, like a hall */
.overture__stage::before { content: ""; position: absolute; inset: 0; background: url("assets/paper.webp") repeat; mix-blend-mode: multiply; opacity: calc(1 - var(--dim)); pointer-events: none; }
.overture__stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, transparent 35%, rgb(8 6 5 / 0.9));
  opacity: clamp(0, calc((var(--sc-p, 0) - 0.0) / 0.16), 1);
}
.overture__copy { position: relative; z-index: 2; display: grid; gap: var(--sc-4); align-self: start; padding-top: clamp(1rem, 6vh, 4rem); }
.overture__title { font-size: clamp(2.6rem, 1.6rem + 4vw, 5.4rem); }
/* the copy is on the page before the lights go down: evergreen on paper, ivory once the hall is dark */
.overture .ch__no { color: color-mix(in oklab, var(--gold-night) calc(min(1, var(--dim, 1) * 2) * 100%), var(--gold-deep)); }
.overture__title { color: color-mix(in oklab, var(--ink-night) calc(min(1, var(--dim, 1) * 2) * 100%), var(--evergreen)); }
.overture .ch__prose { color: var(--ink-night-soft); }
.overture__fig { position: relative; z-index: 2; }
.overture__fig figcaption { color: var(--ink-night-soft); }
.overture__fig figcaption::before { background: var(--gold-night); }

/* layered photographs: painted-out plate + cut-out subject, scaled apart by gift.js */
.depth { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 2px; box-shadow: var(--sc-e3); background: #000; }
.depth img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; box-shadow: none; border-radius: 0; will-change: transform; }
.depth[data-depth="34"] .depth__cut { transform-origin: 35.6% 100%; }
.depth[data-depth="279"] .depth__cut { transform-origin: 49.6% 100%; }

/* ------------------------------------------------------------ spreads (III and VII) */
.joy, .worship, .shepherds { padding-block: clamp(5rem, 10vw, 9rem) clamp(7rem, 12vw, 11rem); }
.joy, .worship, .shepherds { padding-top: clamp(2.5rem, 5vw, 4rem); }
.spread { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.25rem, 2.6vw, 2.75rem) clamp(1rem, 2.2vw, 2.4rem); align-items: start; }
.spread--joy .spread__a { grid-column: 1 / 8; }
.spread--joy .spread__b { grid-column: 8 / 13; margin-top: 18%; }
.spread--joy .spread__c { grid-column: 9 / 13; grid-row: 2; margin-top: 6%; }
.spread--joy .spread__d { grid-column: 2 / 9; grid-row: 2; margin-top: -4%; }
.spread--worship .spread__a { grid-column: 1 / 9; }
.spread--worship .spread__b { grid-column: 9 / 13; margin-top: 8%; }
.spread--worship .spread__c { grid-column: 8 / 13; grid-row: 2; margin-top: -10%; }
.spread--worship .spread__d { grid-column: 2 / 8; grid-row: 2; margin-top: 6%; }

/* ------------------------------------------------------------ IV · the red ballet (pan) */
.counselor__stage { display: flex; align-items: center; overflow: clip; }
.rail { gap: clamp(1.5rem, 4vw, 4.5rem); align-items: center; padding-inline: var(--sc-gutter) 12vw; }
.rail__lead { flex: 0 0 min(30rem, 32vw); display: grid; gap: var(--sc-4); }
.rail__item { flex: 0 0 min(52vw, 820px); }
.rail__item--tall { flex-basis: min(44vw, 700px); margin-top: -6vh; }
.rail__end { flex: 0 0 min(26rem, 30vw); margin: 0; font-style: italic; font-size: var(--sc-t-xl); line-height: 1.3; color: var(--sc-ink); text-wrap: balance; }

/* ------------------------------------------------------------ V · shepherds and angels */
.shepherds__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.25rem, 2.6vw, 2.75rem) clamp(1rem, 2.2vw, 2.4rem); }
.shepherds__grid .ch__head { grid-column: 1 / 7; }
.shepherds__a { grid-column: 1 / 8; }
.shepherds__b { grid-column: 8 / 13; align-self: end; }
.shepherds__c { grid-column: 4 / 10; margin-top: clamp(1rem, 4vw, 3rem); }

/* ------------------------------------------------------------ VI · the nativity (pin) */
.nativity { background: var(--night-blue); }
.nativity__stage { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 6rem); align-items: center; padding: clamp(4.5rem, 10vh, 7rem) var(--sc-gutter) clamp(7rem, 15vh, 9rem); background: var(--night-blue); }
.nativity__copy { display: grid; gap: var(--sc-4); }
.nativity__quote { margin: var(--sc-4) 0 0; font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.9rem); line-height: 1.35; font-style: italic; color: var(--sc-ink); max-width: 24ch; text-wrap: balance; }

/* ------------------------------------------------------------ VIII · curtain call + the score */
.curtain { padding-block: clamp(5rem, 10vw, 9rem); }
.curtain__fig { max-width: 1200px; }
.score { margin: clamp(3rem, 7vw, 6rem) auto 0; max-width: 1180px; display: grid; justify-items: center; gap: var(--sc-5); text-align: center; }
.score__lead { margin: 0; font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(1.35rem, 1rem + 1.4vw, 2.2rem); line-height: 1.2; color: var(--sc-ink); max-width: 22ch; text-wrap: balance; }
.score__sheet { width: 100%; }
.score__svg { width: 100%; height: auto; overflow: visible; }
.score__play {
  display: inline-flex; align-items: center; gap: 0.8em; cursor: pointer;
  font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-sm); letter-spacing: 0.16em;
  color: var(--night); background: var(--gold-light); border: 0; border-radius: var(--sc-r-pill);
  padding: 0.95em 1.8em; box-shadow: inset 0 0 0 1px #FFF3CF, var(--sc-e2);
  transition: transform 140ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out);
}
@media (hover: hover) and (pointer: fine) { .score__play:hover { background: #F7E2A8; transform: translateY(-1px); } }
.score__play:active { transform: translateY(1px); }
.score__icon { width: 0; height: 0; border-style: solid; border-width: 0.45em 0 0.45em 0.75em; border-color: transparent transparent transparent currentColor; }
.score__play[aria-pressed="true"] .score__icon { width: 0.7em; height: 0.8em; border: 0; border-inline: 0.22em solid currentColor; }
.score__note { margin: 0; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); font-style: italic; }
.score__note cite { display: inline; font: inherit; letter-spacing: 0; color: inherit; font-style: normal; }

/* ------------------------------------------------------------ IX · before you come (lights up) */
.before { background: var(--night); color: var(--evergreen); overflow: clip; padding-block: clamp(5rem, 10vw, 9rem) clamp(4rem, 8vw, 7rem); }
.before__lights { position: absolute; inset: 0; background: var(--paper); }
.before__wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr); gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.faq { margin: 0; display: grid; gap: 0; border-top: 1px solid color-mix(in oklab, var(--gold) 55%, transparent); }
.faq > div { padding: var(--sc-4) 0 var(--sc-5); border-bottom: 1px solid color-mix(in oklab, var(--gold) 35%, transparent); }
.faq dt { font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(1rem, 0.9rem + 0.35vw, 1.2rem); letter-spacing: 0.03em; color: var(--evergreen); }
.faq dd { margin: var(--sc-2) 0 0; color: var(--sc-ink-soft); max-width: 52ch; }
.faq a { color: var(--evergreen); font-weight: 600; }

/* ------------------------------------------------------------ colophon (the close) */
.colophon { padding: clamp(5rem, 10vw, 8rem) var(--sc-gutter) clamp(3rem, 6vw, 5rem); text-align: center; border-top: 1px solid color-mix(in oklab, var(--gold) 45%, transparent); }
.colophon__inner { max-width: 50rem; margin: 0 auto; display: grid; justify-items: center; gap: var(--sc-4); }
.colophon__star { width: clamp(150px, 17vw, 210px); height: auto; margin-bottom: calc(var(--sc-4) * -1); }
.colophon__invite { margin: 0; font-style: italic; color: var(--cranberry); font-size: clamp(2rem, 1.3rem + 2.8vw, 3.6rem); line-height: 1.12; text-wrap: balance; }
.colophon__line { margin: var(--sc-2) 0 0; color: var(--sc-ink-soft); line-height: 1.6; }
.colophon__line strong { color: var(--evergreen); font-weight: 600; }
.colophon__actions { margin: var(--sc-3) 0 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0.4rem 0.8rem; font-size: var(--sc-t-lg); }
.colophon__actions a, .share { font-weight: 600; color: var(--evergreen); }
.share { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 1px; text-decoration-color: var(--sc-accent); }
.dot { color: var(--gold); }
.share__status { margin: 0; min-height: 1.4em; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.colophon__hbc img { height: 44px; width: auto; margin-top: var(--sc-5); }
.colophon__small { margin: 0; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }

/* ------------------------------------------------------------ entrance (title page build) */
.js .logo__star { animation: star-in 1.15s 0.25s both var(--sc-ease-out); transform-origin: 50.1% 25.3%; }
.js .logo__glow { animation: glow-in 1.9s 0.25s both var(--sc-ease-out); }
.js .logo__ribbon { animation: ribbon-in 1.35s 0.8s both var(--sc-ease-in-out); }
.js .logo__word {
  -webkit-mask: linear-gradient(100deg, #000 46%, transparent 54%) 0 0 / 300% 100% no-repeat;
  mask: linear-gradient(100deg, #000 46%, transparent 54%) 0 0 / 300% 100% no-repeat;
  animation: word-in 1.15s 1.75s both var(--sc-ease-in-out);
}
.js .logo__shine { animation: shine 1.15s 1.75s both var(--sc-ease-in-out); }
.js .cover__details > * { animation: rise 0.8s both var(--sc-ease-out); }
.js .cover__film { animation: fade-in 1.2s 0.1s both var(--sc-ease-out); }
.js .cover__details > :nth-child(1) { animation-delay: 2.45s; }
.js .cover__details > :nth-child(2) { animation-delay: 2.55s; }
.js .cover__details > :nth-child(3) { animation-delay: 2.65s; }
.js .cover__details > :nth-child(4) { animation-delay: 2.75s; }
.js .cover__details > :nth-child(5) { animation-delay: 2.85s; }
.js .cover__details { animation: rule-in 0.9s 2.3s both var(--sc-ease-out); }
.js .cover__details::before { animation: fade-in 0.7s 2.35s both var(--sc-ease-out); }
.js .cover__hbc { animation: fade-in 1.4s 0.2s both var(--sc-ease-out); }
@keyframes star-in { from { opacity: 0; transform: scale(0.55) rotate(-30deg); filter: brightness(2.4); } 60% { filter: brightness(1.5); } to { opacity: 1; transform: none; filter: none; } }
@keyframes glow-in { 0% { opacity: 0; transform: scale(0.4); } 35% { opacity: 1; transform: scale(1.15); } 100% { opacity: 0.55; transform: none; } }
@keyframes ribbon-in { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0 0 0 0); } }
@keyframes word-in { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
@keyframes shine { 0% { opacity: 1; background-position: 100% 0; } 85% { opacity: 1; } 100% { opacity: 0; background-position: 0 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes rule-in { from { border-left-color: transparent; } to { border-left-color: var(--gold); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ------------------------------------------------------------ phones */
@media (max-width: 860px) {
  .cover { align-items: start; padding-top: clamp(4.2rem, 10vh, 5.5rem); }
  .cover__grid { grid-template-columns: 1fr; gap: clamp(1.25rem, 4vh, 2rem); }
  .cover__logo { width: min(92%, 480px); justify-self: center; }
  .cover__details { justify-self: stretch; border-left: 0; border-radius: var(--sc-r-md); }
  .cover__date { font-size: min(clamp(2.3rem, 9.5vw, 3.4rem), calc(100cqi / 6.75)); }
  .cover__scrim { background: linear-gradient(to bottom, rgb(10 8 6 / 0.72), rgb(10 8 6 / 0.4) 34%, rgb(10 8 6 / 0.62) 58%, rgb(10 8 6 / 0.9) 100%); }
  .cover__actions { gap: var(--sc-3); }
  .evening__grid, .before__wrap { grid-template-columns: 1fr; }
  .facts > div { grid-template-columns: 1fr; gap: var(--sc-1); }
  .overture__stage, .nativity__stage { grid-template-columns: 1fr; align-content: center; gap: var(--sc-5); padding-top: clamp(4.5rem, 11vh, 6rem); }
  .overture__fig { order: -1; }
  .nativity__fig { order: -1; }
  .spread, .shepherds__grid { grid-template-columns: 1fr 1fr; }
  .spread > figure, .shepherds__grid > * { grid-column: 1 / -1 !important; grid-row: auto !important; margin-top: 0 !important; }
  .spread > figure:nth-child(2), .shepherds__b { grid-column: 2 / 3 !important; }
  .spread > figure:nth-child(3) { grid-column: 1 / 2 !important; grid-row: 2 !important; }
  .spread > figure:nth-child(2) { grid-row: 2 !important; }
  .rail__lead { flex-basis: 78vw; }
  .rail__item, .rail__item--tall { flex-basis: 78vw; margin-top: 0; }
  .rail__item img { aspect-ratio: 4 / 5; object-fit: cover; }
  .rail__item:nth-of-type(1) img { object-position: 38% 50%; }
  .rail__item:nth-of-type(2) img { object-position: 52% 50%; }
  .rail__item:nth-of-type(3) img { object-position: 50% 50%; }
  .rail__end { flex-basis: 74vw; }
  .score__lead { font-size: 1.35rem; }
  .colophon__actions { font-size: var(--sc-t-base); }
}
@media (max-width: 860px) and (max-height: 700px) {
  .cover__logo { width: min(74%, 380px); }
  .cover__date { font-size: min(2.2rem, calc(100cqi / 6.75)); }
  .cover__details { gap: var(--sc-2); }
}

/* ------------------------------------------------------------ reduced motion: fewer, gentler, never empty */
@media (prefers-reduced-motion: reduce) {
  .js .logo__star, .js .logo__glow, .js .logo__ribbon, .js .logo__word, .js .logo__shine, .js .cover__details,
  .js .cover__details > *, .js .cover__details::before, .js .cover__hbc, .js .cover__film { animation: none; }
  .js .logo__word { -webkit-mask: none; mask: none; }
  .note { transition: opacity 200ms linear; transform: none; }
}
