/* EFKS Momoi Areto o le Ola - cinematic draft. Static; /cinema.js is an optional enhancement.
   Palette + type: Coco's brand sheet (ink, navy, wine, cream, stone, gold; Cormorant Garamond + Source Sans 3).
   All motion lives in the CINEMA section near the end of this file. */

@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/fonts/cormorant-garamond-500.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap;
  src: url("/fonts/cormorant-garamond-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/fonts/source-sans-3-400.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/fonts/source-sans-3-600.woff2") format("woff2"); }

:root {
  --ink: #080B12;
  --navy: #102040;
  --wine: #6B1F33;
  --wine-deep: #3F1220;
  --cream: #F4F1EA;
  --stone: #B7C0D0;
  --gold-hi: #F6E7B0;
  --gold-lt: #E8C766;
  --gold: #D4AF37;
  --gold-deep: #A87F1E;
  --line: rgba(212,175,55,.34);
  --line-soft: rgba(212,175,55,.18);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 1.25rem;
  --section: clamp(4rem, 9vw, 7.5rem);
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--sans); font-weight: 400; font-size: 1.125rem; line-height: 1.65;
  color: var(--stone); background: var(--ink); min-height: 100vh;
  display: flex; flex-direction: column; overflow-x: hidden;
}
main { flex: 1 0 auto; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
a { color: var(--cream); text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
em { font-style: italic; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--cream); line-height: 1.08; letter-spacing: .005em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 9.5vw, 5.25rem); }
h2 { font-size: clamp(2.1rem, 6.5vw, 3.6rem); line-height: 1.1; }
p { max-width: 38rem; }
p + p { margin-top: 1rem; }

.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 46rem; }
.measure p, .measure .facts { max-width: none; }

/* skip link */
.skip { position: absolute; left: .75rem; top: -4rem; z-index: 100; background: var(--cream); color: var(--ink);
  padding: .75rem 1rem; font-weight: 600; text-decoration: none; }
.skip:focus { top: .75rem; }

/* header / nav */
.site-header { background: var(--navy); border-bottom: 1px solid var(--line); }
.nav { max-width: 72rem; margin-inline: auto; padding: .35rem var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; min-height: 48px; text-decoration: none; color: var(--cream); }
.brand-name { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; letter-spacing: .02em; line-height: 1.1; }
.mini-cross { position: relative; width: 2px; height: 20px; background: var(--gold); flex: 0 0 2px; }
.mini-cross::before { content: ""; position: absolute; top: 5px; left: 50%; width: 11px; height: 2px; background: var(--gold); transform: translateX(-50%); }
.brand-crest { display: block; width: auto; height: 56px; flex: 0 0 auto; }
@media (max-width: 420px) { .brand-crest { height: 44px; } }
.nav ul { display: flex; gap: .25rem; }
.nav li a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 .7rem; font-size: .875rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--stone); border-bottom: 1px solid transparent; }
.nav li a:hover { color: var(--cream); }
.nav li a[aria-current="page"] { color: var(--cream); border-bottom-color: var(--gold); }
.brand .brand-name { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .3em; text-decoration-thickness: 1px; }

/* shared bits */
.kicker { font-size: .875rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-lt); margin-bottom: 1rem; }
.label { font-family: var(--sans); font-size: .875rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-lt); line-height: 1.4; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .8rem 1.6rem;
  font-family: var(--sans); font-size: .875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-align: center;
  text-decoration: none; color: var(--cream); border: 1px solid var(--gold); border-image: linear-gradient(135deg, var(--gold-hi), var(--gold) 38%, var(--gold-deep) 68%, var(--gold)) 1; border-radius: 0; }
.btn-main { background: var(--wine); }
.btn-main:hover { background: var(--wine-deep); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--navy); }
.actions { display: flex; flex-direction: column; gap: .85rem; margin-top: 2rem; max-width: none; }

/* static fine cross motif (gold hairlines) */
.cross-motif { position: relative; width: 4px; height: 7rem; margin: 0 auto 2rem; background: linear-gradient(to bottom, transparent, var(--gold) 18%, var(--gold)); }
.cross-motif::before { content: ""; position: absolute; left: 50%; top: 40%; width: 3.4rem; height: 4px; background: var(--gold); transform: translateX(-50%); }
.rule { display: flex; align-items: center; gap: 1.5rem; max-width: 34rem; margin: 0 auto; padding: 0 var(--gutter); }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.rule i { position: relative; display: block; flex: 0 0 2px; width: 2px; height: 30px; background: var(--gold); }
.rule i::before { content: ""; position: absolute; left: 50%; top: 9px; width: 16px; height: 2px; background: var(--gold); transform: translateX(-50%); }

/* soft light-on-dark depth. .glow::after breathes slowly (see CINEMA) */
.glow { position: relative; isolation: isolate; overflow: hidden; }
.glow::after { content: ""; position: absolute; inset: -25% -15%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 42% 34% at 50% 38%, rgba(232,199,102,.13), rgba(232,199,102,0) 72%); }

/* hero */
.hero { text-align: center; padding: clamp(0rem, 2vw, 1rem) 0 clamp(4rem, 9vw, 7rem);
  background:
    radial-gradient(ellipse 80% 60% at 50% 22%, rgba(16,32,64,.95), rgba(16,32,64,0) 70%),
    radial-gradient(ellipse 38% 28% at 50% 30%, rgba(232,199,102,.12), rgba(232,199,102,0) 70%),
    radial-gradient(ellipse 60% 32% at 50% 108%, rgba(107,31,51,.42), rgba(107,31,51,0) 72%),
    var(--ink); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  box-shadow: inset 0 0 160px 30px rgba(8,11,18,.85); }
.hero .cross-motif, .page-head .cross-motif { height: clamp(6rem, 18vw, 10rem); margin-bottom: 2.4rem; }
.hero .cross-motif, .page-head .cross-motif { width: 5px; }
.hero .cross-motif::before, .page-head .cross-motif::before { width: 4.8rem; height: 5px; }
.hero h1 { margin-bottom: 1rem; }
.hero-line { margin: 0 auto; font-size: .875rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-lt); max-width: 30rem; }
.lead { margin: 2rem auto 0; font-family: var(--serif); font-size: clamp(1.5rem, 4.6vw, 2.1rem); line-height: 1.3; color: var(--cream); }
.hero-addr { margin: 1.4rem auto 0; font-size: 1.0625rem; }
.hero .actions { align-items: stretch; max-width: 22rem; margin-inline: auto; }

/* bands */
.band { padding-block: var(--section); }
.band-alt { background: linear-gradient(to bottom, rgba(16,32,64,.0), rgba(16,32,64,.55) 18%, rgba(16,32,64,.55) 82%, rgba(16,32,64,0)); }
.split { display: grid; gap: 2.2rem; align-items: center; }
.split-text p { margin-top: 1.2rem; }
.prose p { color: var(--stone); font-size: 1.1875rem; max-width: none; }
.prose p:first-child { font-family: var(--serif); font-size: clamp(1.45rem, 3.6vw, 1.9rem); line-height: 1.35; color: var(--cream); }
.prose p + p { margin-top: 1.3rem; }

/* photo frame: 1px line border, offset gold hairline, soft edge vignette (overlay only, photo untouched) */
.frame { position: relative; margin: 0 14px 14px 0; }
.frame::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--line); pointer-events: none; }
.frame-portrait { max-width: 30rem; margin-inline: auto 14px; }
.frame img { position: relative; width: 100%; border: 1px solid var(--line); background: var(--navy); }
.frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 70px 6px rgba(8,11,18,.42); }

/* seat */
.seat { text-align: center; padding-block: var(--section);
  background: radial-gradient(ellipse 70% 70% at 50% 0%, rgba(16,32,64,.95), rgba(16,32,64,.0) 75%), var(--ink); }
.seat h2 { font-size: clamp(2.5rem, 9vw, 5rem); }
.seat .kicker { margin-bottom: .8rem; }
.seat-line { margin: 1.6rem auto 0; color: var(--cream); font-size: 1.1875rem; }
.seat .actions { align-items: stretch; max-width: 22rem; margin-inline: auto; }
.seat-mail { margin: 1.4rem auto 0; }

/* inner pages */
.page-head { text-align: center; padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(1rem, 3vw, 2rem);
  background: radial-gradient(ellipse 70% 80% at 50% 0%, rgba(16,32,64,.9), rgba(16,32,64,0) 72%), var(--ink); }
.page-head .wrap { text-align: center; }
.page-head h1 { font-size: clamp(2.4rem, 8vw, 4.4rem); }
.intro { margin: 1.6rem auto 0; font-size: 1.1875rem; }
.when-where { display: grid; gap: 0; border: 1px solid var(--line); background: var(--navy); }
.ww { padding: 1.6rem 1.4rem; }
.ww + .ww { border-top: 1px solid var(--line); }
.big { margin-top: .5rem; font-family: var(--serif); font-size: clamp(1.7rem, 5.2vw, 2.4rem); line-height: 1.2; color: var(--cream); max-width: none; }
.big a { text-decoration-color: var(--line); }
.small-note { margin-top: .6rem; font-size: 1.0625rem; }
.facts > div { padding: 1.3rem 0; border-top: 1px solid var(--line-soft); display: grid; gap: .35rem; }
.facts > div:last-child { border-bottom: 1px solid var(--line-soft); }
.facts dt { font-size: .875rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-lt); }
.facts dd { color: var(--cream); font-size: 1.1875rem; }
.note-line { margin-top: 2rem; font-family: var(--serif); font-size: 1.6rem; line-height: 1.3; color: var(--cream); }
.reach { margin-top: 1.6rem; border-top: 1px solid var(--line-soft); }
.reach li { display: grid; gap: .2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line-soft); }
.reach a { font-family: var(--serif); font-size: 1.7rem; line-height: 1.2; overflow-wrap: anywhere; }
.band h2 + p { margin-top: 1.1rem; }
.hero-addr a, .seat-line a, .big a, .seat-mail a, .reach a { display: inline-flex; align-items: center; min-height: 44px; }

/* footer */
.site-footer { background: var(--navy); border-top: 1px solid var(--line); padding: clamp(2.5rem, 6vw, 4rem) 0 0; }
.footer-grid { display: grid; gap: 2rem; align-items: center; }
.footer-logo img { width: 100%; max-width: 420px; height: auto; mix-blend-mode: screen; margin-inline: auto;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 66%, transparent 71%);
  mask-image: radial-gradient(ellipse at center, #000 66%, transparent 71%); }
.footer-name { font-family: var(--serif); font-size: 1.6rem; color: var(--cream); line-height: 1.2; }
.footer-info p { max-width: none; margin-top: .6rem; }
.footer-info a { display: inline-flex; align-items: center; min-height: 44px; }
.social { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; margin-top: .8rem; }
.social { gap: .25rem .5rem; margin-left: -.6rem; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 44px; color: var(--gold-lt); text-decoration: none; }
.social a:hover { color: var(--cream); }
.social svg { display: block; }
.privacy { max-width: 40rem; margin: 2rem auto 0; padding: 1.2rem var(--gutter) 0; text-align: left; font-size: .9375rem; border-top: 1px solid var(--line-soft); }
.privacy-photos { display: block; margin-top: .6rem; } /* v3.47: Photos starts on its own line; whole statement left-aligned */
.privacy + .legal { margin-top: 0; border-top: 0; padding-top: .8rem; }
.legal { max-width: none; margin-top: 2rem; padding: 1.2rem var(--gutter) 1.6rem; text-align: center; font-size: .9375rem; border-top: 1px solid var(--line-soft); }

/* >= 600px */
@media (min-width: 600px) {
  .actions { flex-direction: row; flex-wrap: wrap; }
  .hero .actions, .seat .actions { flex-direction: row; justify-content: center; max-width: none; }
  .when-where { grid-template-columns: 1fr 1fr; }
  .ww + .ww { border-top: 0; border-left: 1px solid var(--line); }
  .ww { padding: 2.2rem 2rem; }
  .facts > div { grid-template-columns: 12rem 1fr; gap: 1.5rem; align-items: baseline; }
  .reach li { grid-template-columns: 12rem 1fr; gap: 1.5rem; align-items: baseline; }
  .footer-grid { grid-template-columns: minmax(0, 420px) 1fr; gap: 3rem; }
  .footer-logo img { margin-inline: 0; }
}
/* >= 900px */
@media (min-width: 900px) {
  :root { --gutter: 2rem; }
  .split { grid-template-columns: 1fr 1.25fr; gap: clamp(3rem, 6vw, 6rem); }
  .split-flip { grid-template-columns: 1.05fr 1fr; }
  .split-flip .frame { order: 2; }
  .split-wide { grid-template-columns: .8fr 1.4fr; }
  .nav li a { padding: 0 1rem; }
}
/* very narrow phones: links drop to their own row rather than squeezing the name */
@media (max-width: 420px) {
  .brand-name { font-size: 1.2rem; }
  .nav ul { width: 100%; justify-content: flex-start; margin-left: -.7rem; }
}

/* ===== CINEMA =====
   Opacity / transform / translate / scale / clip-path only: nothing here changes layout.
   Without JS everything is visible; html.js .cin-pre is only ever set on elements below the first screen.
   prefers-reduced-motion: reduce switches every animation, transition, parallax and zoom off. */

/* light: three layers of warm glow centred on the hero cross; flares on arrival, then breathes (8s cycle) */
.hero { --cy: calc(clamp(0rem, 2vw, 1rem) + clamp(6rem, 18vw, 10rem) * .4); }
.hero.glow::after { inset: 0; transform-origin: 50% var(--cy);
  background:
    radial-gradient(8rem 8rem at 50% var(--cy), rgba(246,231,176,.34), rgba(246,231,176,.13) 36%, rgba(246,231,176,0) 74%),
    radial-gradient(24rem 17rem at 50% var(--cy), rgba(232,199,102,.2), rgba(232,199,102,0) 72%),
    radial-gradient(52rem 34rem at 50% var(--cy), rgba(212,175,55,.09), rgba(212,175,55,0) 74%); }
.glow::after {
  background: radial-gradient(ellipse 42% 34% at 50% 38%, rgba(232,199,102,.2), rgba(232,199,102,0) 72%); }

/* film: vignette and fine grain, fixed above the page, never catch clicks.
   The corners stop at .28 dark so stone body text on navy keeps 4.5:1 even there, grain included. */
/* film: ONE static fixed layer, smooth vignette only (v3.14: grain removed). Never animated. */
body::before { content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none; transform: translateZ(0);
  background:
    radial-gradient(ellipse farthest-corner at 50% 45%, rgba(4,6,10,0) 40%, rgba(4,6,10,.12) 66%, rgba(4,6,10,.28) 100%); }

/* photo clip (wrapper added by cinema.js): carries the photo's 1px line so the zoomed photo stays inside it */
.frame .cin-clip { display: block; overflow: hidden; border: 1px solid var(--line); background: var(--navy); }
.frame .cin-clip img { border: 0; }

@keyframes cin-rise { from { opacity: 0; transform: translate3d(0, 32px, 0); } to { opacity: 1; transform: none; } }
@keyframes cin-rise-lg { from { opacity: 0; transform: translate3d(0, 50px, 0); } to { opacity: 1; transform: none; } }
@keyframes cin-draw { from { opacity: 0; clip-path: inset(-2rem -4rem calc(100% + 2rem) -4rem); } 25% { opacity: 1; }
  to { opacity: 1; clip-path: inset(-2rem -4rem -2rem -4rem); } }
@keyframes cin-arm { from { opacity: 0; transform: translateX(-50%) scaleX(0); } to { opacity: 1; transform: translateX(-50%) scaleX(1); } }
@keyframes cin-bloom { 0% { opacity: 0; transform: scale(.45); } 45% { opacity: 1; transform: scale(1.16); } 100% { opacity: .78; transform: none; } }
@keyframes cin-breathe { 0%, 100% { opacity: .78; transform: none; } 50% { opacity: 1; transform: scale(1.07); } }

@media (prefers-reduced-motion: no-preference) {
  /* opening, about 2.5s: the cross draws top to bottom, its arm opens from the centre and the light blooms;
     the title rises 50px over 1.4s, then the lines below follow .25s apart */
  .hero .cross-motif, .page-head .cross-motif { animation: cin-draw .9s cubic-bezier(.55, 0, .3, 1) .1s both; }
  .hero .cross-motif::before, .page-head .cross-motif::before { animation: cin-arm .6s cubic-bezier(.22, 1, .36, 1) .8s both; }
  .hero h1, .page-head h1 { animation: cin-rise-lg 1.4s cubic-bezier(.25, .7, .3, 1) .8s both; }
  .hero-line, .hero .lead, .hero-addr, .hero .actions, .page-head .kicker, .page-head .intro {
    animation: cin-rise .8s cubic-bezier(.25, .7, .3, 1) both; }
  .hero-line { animation-delay: 1s; }
  .hero .lead { animation-delay: 1.25s; }
  .hero-addr { animation-delay: 1.5s; }
  .hero .actions { animation-delay: 1.75s; }
  .page-head .kicker { animation-delay: .6s; }
  .page-head .intro { animation-delay: 1.15s; }

  .glow::after { animation: cin-breathe 8s ease-in-out infinite; will-change: opacity, transform; }
  .hero.glow::after { animation: cin-bloom 2.4s cubic-bezier(.3, .6, .3, 1) both, cin-breathe 8s ease-in-out 2.4s infinite; }

  /* scroll reveal (classes set by cinema.js): 60px rise over 1.2s, siblings .18s apart */
  html.js .cin-pre.cin-in { transition: opacity 1.2s cubic-bezier(.33, 1, .68, 1) var(--cin-d, 0s), transform 1.2s cubic-bezier(.22, 1, .36, 1) var(--cin-d, 0s); }
  html.js .cin-pre:not(.rule):not(.cin-in):not(:focus-within) { opacity: 0; transform: translate3d(0, 60px, 0); }

  /* separators: the cross fades in, then both hairlines draw outward from it */
  html.js .rule.cin-pre::before { transform-origin: 100% 50%; }
  html.js .rule.cin-pre::after { transform-origin: 0 50%; }
  html.js .rule.cin-pre:not(.cin-in) i { opacity: 0; transform: scale(.5); }
  html.js .rule.cin-pre:not(.cin-in)::before, html.js .rule.cin-pre:not(.cin-in)::after { transform: scaleX(0); }
  html.js .rule.cin-in i { transition: opacity .8s ease-out var(--cin-d, 0s), transform .8s cubic-bezier(.22, 1, .36, 1) var(--cin-d, 0s); }
  html.js .rule.cin-in::before, html.js .rule.cin-in::after { transition: transform 1.2s cubic-bezier(.22, 1, .36, 1) calc(var(--cin-d, 0s) + .4s); }

  /* photos: the framed photo drifts against the page (--py from cinema.js: up to 50px wide, 24px tablet, 10px phone)
     and slowly zooms 1 -> 1.08 inside its clip as it arrives */
  html.js .frame { translate: 0 var(--py, 0px); }
  .frame .cin-clip img { transition: scale 1.6s cubic-bezier(.22, 1, .36, 1) var(--cin-d, 0s); }
  .frame.cin-in .cin-clip img { scale: 1.08; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .cin-pre, html.js .rule.cin-pre i, html.js .rule.cin-pre::before, html.js .rule.cin-pre::after { opacity: 1 !important; transform: none !important; }
  .frame, .frame img { translate: none !important; scale: none !important; }
}
@media print {
  body::before { display: none; }
  html.js .cin-pre, html.js .rule.cin-pre i, html.js .rule.cin-pre::before, html.js .rule.cin-pre::after { opacity: 1 !important; transform: none !important; }
  .frame, .frame img { translate: none !important; scale: none !important; }
}

/* shiny gold crosses (static metallic gradients, no motion) */
.cross-motif { background: linear-gradient(to bottom, transparent, var(--gold-lt) 14%, var(--gold-hi) 30%, var(--gold) 48%, var(--gold-deep) 78%, var(--gold) 100%); box-shadow: 0 0 10px rgba(232, 199, 102, .22); }
.cross-motif::before { background: linear-gradient(to right, var(--gold-deep), var(--gold) 22%, var(--gold-hi) 50%, var(--gold) 78%, var(--gold-deep)); box-shadow: 0 0 10px rgba(232, 199, 102, .22); }
.mini-cross { background: linear-gradient(to bottom, var(--gold-hi), var(--gold) 55%, var(--gold-deep)); }
.mini-cross::before { background: linear-gradient(to right, var(--gold-deep), var(--gold-hi) 50%, var(--gold-deep)); }
.rule i { background: linear-gradient(to bottom, var(--gold-hi), var(--gold) 55%, var(--gold-deep)); }
.rule i::before { background: linear-gradient(to right, var(--gold-deep), var(--gold-hi) 50%, var(--gold-deep)); }

.lord { font-variant-caps: all-small-caps; letter-spacing: .04em; }
.reach a[href^="mailto:"] { white-space: nowrap; font-size: clamp(1rem, 5.4vw, 1.7rem); }
.verse-ref { margin-top: 1rem; font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-lt); }

/* ===== CINEMA v3 =====
   Pinned full-screen stage, scroll-driven crossfades + slow camera drift (driven from /cinema.js through --p),
   hero loop video, gold progress hairline, chapter dots, growing underlines, clip-path wipes.
   Transform / opacity / clip-path only: no layout change while moving. No libraries, no storage, no network beyond our own files.
   Reduced motion: html.cin3 is never set, so the stage is plain stacked sections, the hero shows its still poster, nothing moves. */
:root { --hh: 60px; }
@media (max-width: 420px) { :root { --hh: 108px; } }
.site-header { position: sticky; top: 0; z-index: 60; }
.site-footer { position: relative; z-index: 1; }

/* nav: underline grows from the left on hover / current (was a static border) */
.nav li a, .nav li a[aria-current="page"] { border-bottom: 0; position: relative; }
.nav li a::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: 9px; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.nav li a:hover::after, .nav li a:focus-visible::after, .nav li a[aria-current="page"]::after { transform: scaleX(1); }
@media (min-width: 900px) { .nav li a::after { left: 1rem; right: 1rem; } }

/* gold hairline: scroll progress */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 70; pointer-events: none;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-hi) 60%, var(--gold)); box-shadow: 0 0 10px rgba(232,199,102,.55);
  transform: scaleX(var(--prog, 0)); transform-origin: 0 50%; }
@keyframes v3-prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) { .progress { animation: v3-prog linear both; animation-timeline: scroll(root); } }
}

/* hero: video loop over a still poster, big tight headline, dark scrim, line-by-line rise */
.hero { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
  min-height: calc(100svh - var(--hh)); padding: clamp(2rem, 5vh, 3.5rem) 0 clamp(3rem, 8vh, 5rem); }
.hero-inner-wrap { width: 100%; }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--ink); }
.hero-media .hm { position: absolute; inset: 0; }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; image-rendering: auto; }
.hero-media video { opacity: 0; transition: opacity 1.4s ease; }
.hero-media.on video { opacity: 1; }
.hero-media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 58% 50% at 50% 54%, rgba(8,11,18,.82), rgba(8,11,18,.52) 58%, rgba(8,11,18,.1) 100%),
    linear-gradient(to bottom, rgba(8,11,18,.5), rgba(8,11,18,0) 24%, rgba(8,11,18,0) 66%, var(--ink)); }
@media (max-width: 699px) {
  .hero-media::after { background:
    radial-gradient(ellipse 100% 62% at 50% 54%, rgba(8,11,18,.84), rgba(8,11,18,.58) 62%, rgba(8,11,18,.2) 100%),
    linear-gradient(to bottom, rgba(8,11,18,.5), rgba(8,11,18,0) 20%, rgba(8,11,18,0) 62%, var(--ink)); }
}
.hero h1 { font-size: clamp(2.9rem, min(14.5vw, 15vh), 8.5rem); line-height: .94; letter-spacing: -.04em; margin-bottom: clamp(.9rem, 2.5vh, 1.6rem);
  text-shadow: 0 2px 36px rgba(4,6,10,.7); text-wrap: initial; }
.hero h1 .ln { display: block; overflow: hidden; padding: .04em .08em .16em; margin: -.04em -.08em -.16em; }
.hero h1 .ln > span { display: block; }
.hero-line, .hero .lead, .hero-addr { text-shadow: 0 1px 18px rgba(4,6,10,.85); }
.hero-line { color: var(--gold-hi); }
@keyframes v3-line { from { transform: translate3d(0, 112%, 0); } to { transform: none; } }
@keyframes v3-wipe { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }

/* chapter nav: dots on the right edge, only while the stage is on screen */
.chapnav { display: none; }
html.cin3 .chapnav { display: block; position: fixed; right: 0; top: 50%; z-index: 55; transform: translateY(-50%);
  opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s; }
html.cin3 .chapnav.on { opacity: 1; visibility: visible; }
.chapnav a { display: flex; align-items: center; justify-content: flex-end; gap: .9rem; min-height: 44px; padding: 0 .55rem 0 .9rem; text-decoration: none; }
.chapnav a::after { content: ""; flex: 0 0 auto; width: 9px; height: 9px; border: 1px solid var(--gold); border-radius: 50%; background: rgba(8,11,18,.5);
  transition: background .4s, transform .4s cubic-bezier(.22, 1, .36, 1); }
.chapnav a[aria-current="true"]::after { background: var(--gold-lt); transform: scale(1.5); box-shadow: 0 0 10px rgba(232,199,102,.7); }
.chapnav span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 900px) {
  .chapnav a { padding-right: 1.4rem; }
  .chapnav span { position: static; width: auto; height: auto; clip-path: none; font-size: .8125rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
    color: var(--stone); opacity: 0; transform: translateX(8px); transition: opacity .4s, transform .5s cubic-bezier(.22, 1, .36, 1); text-shadow: 0 1px 12px rgba(4,6,10,.9); }
  .chapnav a:hover span, .chapnav a:focus-visible span, .chapnav a[aria-current="true"] span { opacity: 1; transform: none; }
  .chapnav a[aria-current="true"] span { color: var(--cream); }
}

/* stage: plain stacked sections by default (no JS / reduced motion) */
.chapter { position: relative; z-index: 1; padding-block: var(--section); }
.chapter .scene { max-width: 38rem; margin: 0 auto 2.2rem; padding-inline: var(--gutter); }
.chapter .scene .pic { overflow: hidden; border: 1px solid var(--line); background: var(--navy); }
.chapter .scene-seat { display: none; }
.chapter-house, .chapter-seat { text-align: left; }
.chapter-seat { text-align: center; background: radial-gradient(ellipse 70% 70% at 50% 0%, rgba(16,32,64,.95), rgba(16,32,64,0) 75%), var(--ink); }
.chapter .cc { max-width: 38rem; margin-inline: auto; }
.chapter .cc p { margin-top: 1.2rem; }
.chapter .cc .kicker { margin-bottom: 1rem; margin-top: 0; }
.chapter h2 { font-size: clamp(2.3rem, 7vw, 4.4rem); line-height: .98; letter-spacing: -.03em; }
.chapter-seat .cc { max-width: 46rem; }
.chapter-seat h2 { font-size: clamp(2.5rem, 9vw, 5rem); }
.chapter-seat .cc > p { margin-inline: auto; }
.chapter-seat .cc > .actions { margin-top: 2rem; }
.chapter-seat .cc > .kicker { margin-top: 0; }
.chapter-seat .cc > .seat-line { margin-top: 1.6rem; }
.chapter-seat .cc > .seat-mail { margin-top: 1.4rem; }
.chapter-seat .cc > .intro { margin-top: 1.6rem; }

/* stage: pinned (motion allowed + JS) */
html.cin3 .chapter { padding: 0; height: 175svh; }
html.cin3 .chapter-seat { height: 135svh; background: none; text-align: center; }
/* v3.2: the photo layer is ONE sticky box inside the stage (scrolled by the compositor, never fixed, never JS-positioned).
   cinema.js moves the three .scene nodes into .scenes before first paint; plain mode keeps them inside their chapters. */
.scenes { display: none; }
html.cin3 .scenes { display: block; position: sticky; top: 0; height: 100lvh; margin-bottom: -100lvh; z-index: 0; overflow: hidden; pointer-events: none; }
html.cin3 .scenes .scene { position: absolute; inset: 0; max-width: none; margin: 0; padding: 0; background: var(--ink); contain: layout paint;
  pointer-events: none; backface-visibility: hidden; }
html.cin3 .scenes .scene-house { opacity: 1; }
html.cin3 .scenes .scene-chapel, html.cin3 .scenes .scene-seat { opacity: .001; will-change: opacity; } /* .001 (not 0) keeps the layer painted and decoded, so the first crossfade frame costs nothing */
html.cin3 .scenes .scene-seat { display: block; background: radial-gradient(ellipse 80% 70% at 50% 60%, rgba(16,32,64,1), rgba(8,11,18,1) 78%); }
html.cin3 .scene::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
html.cin3 .scene .pic { position: absolute; border: 0; background: var(--navy); }
html.cin3 .scene .pic img { width: 100%; height: 100%; object-fit: cover; will-change: transform;
  transform: translate3d(0, 0, 0) scale(1.05); transform-origin: 50% 50%; backface-visibility: hidden; }
html.cin3 .scene-house { --dx: -3; --dy: -2; }
html.cin3 .scene-chapel { --dx: 3; --dy: 1.5; }
@media (max-width: 899px) { html.cin3 .scene-house { --dx: -18; --dy: 0; } html.cin3 .scene-chapel { --dx: 4; --dy: 0; } }
/* chapel: full-bleed on wide screens, dark scrim from the left behind the copy */
@media (min-width: 900px) {
  html.cin3 .scene-chapel .pic { inset: 0 0 0 30%; }
  /* was a mask-image (forces a masked render surface under a moving photo); an ink gradient on top looks the same on the ink scene */
  html.cin3 .scene-chapel .pic::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--ink), rgba(8,11,18,0) 26%); }
}
html.cin3 .scene-chapel::after { background:
  linear-gradient(90deg, rgba(8,11,18,.9) 0, rgba(8,11,18,.74) 32%, rgba(8,11,18,.22) 62%, rgba(8,11,18,.05) 100%),
  linear-gradient(to bottom, rgba(8,11,18,.45), rgba(8,11,18,0) 22%, rgba(8,11,18,0) 78%, rgba(8,11,18,.5)); }
/* house: tall photo on the right, warm light behind it */
html.cin3 .scene-house { background: radial-gradient(ellipse 46% 60% at 72% 50%, rgba(212,175,55,.2), rgba(212,175,55,0) 72%), radial-gradient(ellipse 80% 70% at 30% 40%, rgba(16,32,64,.9), rgba(16,32,64,0) 70%), var(--ink); }
html.cin3 .scene-house .pic { right: clamp(3.5rem, 9vw, 10rem); top: calc(var(--hh) + 3.5svh); height: calc(100svh - var(--hh) - 7svh); aspect-ratio: 3 / 4;
  outline: 1px solid var(--line); outline-offset: 14px; }
html.cin3 .scene-seat .seat-glow { position: absolute; inset: -20%; pointer-events: none;
  background: radial-gradient(ellipse 36% 30% at 50% 46%, rgba(232,199,102,.2), rgba(232,199,102,0) 72%), radial-gradient(ellipse 60% 44% at 50% 106%, rgba(107,31,51,.45), rgba(107,31,51,0) 72%);
  transform: scale(.8); will-change: transform; }

html.cin3 .chapter-copy { position: sticky; top: var(--hh); min-height: calc(100svh - var(--hh)); display: flex; align-items: center; }
html.cin3 .chapter-copy > .wrap { width: 100%; }
html.cin3 .chapter .cc { max-width: 31rem; margin: 0; padding-block: 2rem; text-shadow: 0 1px 22px rgba(4,6,10,.9);
  transform: translate3d(0, 0, 0); }
html.cin3 .chapter h2 { font-size: clamp(2.7rem, 8vw, 6rem); }
html.cin3 .chapter-chapel h2 { font-size: clamp(2.5rem, 6.4vw, 4.8rem); }
html.cin3 .chapter-seat .cc { max-width: 46rem; margin-inline: auto; }
html.cin3 .chapter-seat h2 { font-size: clamp(2.5rem, 8vw, 5rem); }
html.cin3 .chapter-chapel .cc p, html.cin3 .chapter-house .cc p { color: var(--cream); }
@media (max-width: 899px) {
  html.cin3 .chapter-copy { align-items: flex-end; }
  html.cin3 .chapter-seat .chapter-copy { align-items: center; }
  html.cin3 .chapter .cc { padding: 0 2rem 7svh 0; max-width: none; }
  html.cin3 .chapter-seat .cc { padding: 2rem 1.4rem 2rem 0; }
  html.cin3 .scene-house .pic { inset: 0; height: auto; aspect-ratio: auto; outline: 0; }
  html.cin3 .scene-house::after { background: linear-gradient(to bottom, rgba(8,11,18,.5), rgba(8,11,18,0) 18%, rgba(8,11,18,.12) 45%, rgba(8,11,18,.9) 78%, rgba(8,11,18,.96)); }
  html.cin3 .scene-chapel .pic { inset: calc(var(--hh) + 3svh) 0 auto 0; height: min(75vw, 36svh); }
  html.cin3 .scene-chapel::after { background: linear-gradient(to bottom, rgba(8,11,18,0) 0, rgba(8,11,18,0) 16%, rgba(8,11,18,.9) 40%, rgba(8,11,18,.97)); }
}

/* motion only where the visitor allows it */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: none; }
  .hero h1 .ln > span { animation: v3-line 1.5s cubic-bezier(.2, .8, .2, 1) .75s both; }
  .hero h1 .ln + .ln > span { animation-delay: .95s; }
  .hero-media .hm { transform: translate3d(0, 0, 0) scale(1.03); will-change: transform; backface-visibility: hidden; }
  html.cin3 .hero-inner-wrap { will-change: transform, opacity; }
  /* the pinned photos open like a window as the stage arrives (clip-path set from cinema.js) */
  .footer-logo img { transition: none; }
  @supports (animation-timeline: view()) {
    .footer-logo img { animation: v3-wipe linear both; animation-timeline: view(); animation-range: entry 0% entry 85%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media video { display: none; }
  .hero-media .hm, .hero-inner-wrap { transform: none !important; opacity: 1 !important; }
}
@media (max-width: 380px) { .chapnav a { padding-left: .4rem; } }
.chapter-seat .actions { justify-content: center; }
@media (min-width: 900px) { html.cin3 .chapter-chapel .cc { max-width: 26rem; } }
@media (prefers-reduced-motion: reduce) { .progress { display: none; } }
@media (min-width: 600px) and (max-width: 899px) { .reach a[href^="mailto:"] { white-space: normal; overflow-wrap: anywhere; font-size: 1.5rem; } }
html.cin3 .chapter .kicker { color: var(--gold-hi); }
@media (max-width: 899px) { html.cin3 .scene-chapel .pic { height: min(75vw, 32svh); } }
@media (max-width: 899px) and (max-height: 640px) { html.cin3 .scene-chapel::after { background: linear-gradient(to bottom, rgba(8,11,18,0) 0, rgba(8,11,18,.5) 12%, rgba(8,11,18,.9) 26%, rgba(8,11,18,.97)); } }

/* ===== v3.2: scroll-driven motion is native (compositor), not JS =====
   Everything below the @supports line is CSS scroll/view timelines on transform + opacity only. No per-frame JS, no easing lag.
   Browsers without animation-timeline (or with it disabled) get the same effects from the small rAF fallback in /cinema.js,
   which writes the same values straight from scrollY (no easing). Reduced motion: html.cin3 is never set, nothing here applies.
   Stage geometry (svh): chapters 175 + 175 + 135 = 485. Crossfade into chapter i is centred where its top is at 50% of the screen, 20svh of scroll wide. */
html.cin3 .scenes .scene .pic { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) and (view-timeline-name: --x) {
    @keyframes v32-in { from { opacity: .001; } to { opacity: 1; } }
    @keyframes v32-open { from { transform: scale(.93); } to { transform: none; } }
    @keyframes v32-zoom { from { transform: translate3d(calc(var(--dx) * -.5%), calc(var(--dy) * -.5%), 0) scale(1.05); }
                          to   { transform: translate3d(calc(var(--dx) * .5%),  calc(var(--dy) * .5%),  0) scale(1.25); } }
    @keyframes v32-glow { from { transform: scale(.8); } to { transform: scale(1.3); } }
    @keyframes v32-hm { from { transform: translate3d(0, 0, 0) scale(1.03); } to { transform: translate3d(0, 0, 0) scale(1.08); } }
    @keyframes v32-lift { 0% { opacity: 1; transform: translate3d(0, 0, 0); } 77% { opacity: 0; } 100% { opacity: 0; transform: translate3d(0, -10svh, 0); } }

    html.cin3 .stage { view-timeline: --stage block; }
    /* the photo layer opens like a window as the stage arrives */
    html.cin3 .scenes { animation: v32-open linear both; animation-timeline: --stage; animation-range: cover 15svh cover 100svh; }
    /* crossfades */
    html.cin3 .scenes .scene-chapel { animation: v32-in cubic-bezier(.45, 0, .55, 1) both; animation-timeline: --stage; animation-range: cover 215svh cover 235svh; }
    html.cin3 .scenes .scene-seat   { animation: v32-in cubic-bezier(.45, 0, .55, 1) both; animation-timeline: --stage; animation-range: cover 390svh cover 410svh; }
    /* camera drift per scene */
    html.cin3 .scenes .scene-house .pic img  { animation: v32-zoom linear both; animation-timeline: --stage; animation-range: cover 0svh cover 200svh; }
    html.cin3 .scenes .scene-chapel .pic img { animation: v32-zoom linear both; animation-timeline: --stage; animation-range: cover 150svh cover 375svh; }
    html.cin3 .scenes .seat-glow { animation: v32-glow linear both; animation-timeline: --stage; animation-range: cover 325svh cover 510svh; }
    /* hero: image scales slowly, copy lifts and fades over the first ~0.9 screen of scrolling */
    html.cin3 .hero-media .hm { animation: v32-hm linear both; animation-timeline: scroll(root block); animation-range: 0px calc(90svh - .9 * var(--hh)); }
    html.cin3 .hero-inner-wrap { animation: v32-lift linear both; animation-timeline: scroll(root block); animation-range: 0px calc(90svh - .9 * var(--hh)); }
  }
}

/* v3.33: shared scripture block - Psalm 145:18 (Visit) and John 14:2-3 (Home, A SEAT) use the same .verse-head / .verse-ref styling; only the size is scaled for the longer John text */
.verse-head,html.cin3 .verse-head{font-family:var(--serif);font-style:normal;font-weight:500;color:var(--cream);line-height:1.15;letter-spacing:.005em;text-wrap:balance;max-width:42rem;margin-inline:auto}
.page-head h1.verse-head{font-size:clamp(1.9rem,5vw,3.2rem)}
.chapter-seat h2.verse-head,html.cin3 .chapter-seat h2.verse-head{font-size:clamp(1.45rem,1.05rem + 1.6vw,2.35rem);text-wrap:pretty}
.chapter-seat .cc > .verse-ref,html.cin3 .chapter-seat .cc > .verse-ref{margin-top:.8rem;font-family:var(--sans);font-size:1rem;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:var(--gold-lt)}

/* v3.31: slow Ken Burns on the opening hero photo (4s still before the video); restarts each loop as data-step returns to 0 */
@keyframes kb-hero { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-1%, -.6%, 0) scale(1.048); } }
.hero-media img.hp { transform-origin: 50% 45%; backface-visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  /* v3.33: runs through the whole 1.4s crossfade (4.0-5.4s) and holds its end value; cinema.js restarts it only while the video fully covers the photo */
  .hero-media img.hp.kb { animation: kb-hero 5.6s cubic-bezier(.3, .1, .4, 1) forwards; will-change: transform; }
}
@media (prefers-reduced-motion: reduce) { .hero-media img.hp { animation: none !important; transform: none !important; } }

/* v3.34: both scripture blocks left-aligned inside the same centred 42rem column; the "A seat" label sits directly above the John verse, so it aligns with it */
.verse-head,html.cin3 .verse-head,.verse-ref,html.cin3 .verse-ref,.chapter-seat .cc > .verse-ref,html.cin3 .chapter-seat .cc > .verse-ref{text-align:left;max-width:42rem;margin-inline:auto;width:100%}
.chapter-seat .cc > .kicker,html.cin3 .chapter-seat .cc > .kicker{text-align:left;max-width:42rem;margin-inline:auto;width:100%}

/* v3.34: hero photo roll (outdoor group -> indoor group -> chapel photo -> video). The incoming photo fades in ON TOP of the outgoing one, which stays fully
   visible underneath until the fade ends (no dip); every photo restarts its Ken Burns only while invisible. Without JS / reduced motion only the first shows. */
.hero-media img.hp { opacity: 0; z-index: 0; transition: none; }
.hero-media img.hp.prev { opacity: 1; z-index: 1; }
.hero-media img.hp.cur { opacity: 1; z-index: 2; transition: opacity 1.4s ease; }
.hero-media img.hp.cur.snap { transition: none; }
.hero-media video { z-index: 3; }

/* v3.35: portrait phones get dedicated hero-1/2 composites (whole group over a blurred fill, 1080x2340); centre them so a wider or narrower phone trims only fill */
@media (max-aspect-ratio: 4/5) { .hero-media picture img.hp { object-position: 50% 30%; } }
/* v3.36: mobile video (hero-mz.mp4, same 1080x2340-ratio composite as the photos) sits exactly where the photo composites do */
@media (max-width: 699px) and (max-aspect-ratio: 4/5) { .hero-media video { object-position: 50% 30%; } }
/* v3.38: scripture blocks wrap with text-wrap:pretty instead of balance, so the Psalm 145:18 heading on Visit fills the full content column (42rem = 672px at desktop, the column's content width) instead of three short balanced lines; John 14 on Home already used pretty, so both stay uniform */
.verse-head,html.cin3 .verse-head{text-wrap:pretty}

/* v3.46 pause/play buttons */
.pp-ic{display:inline-block;width:12px;height:14px;border-left:4px solid currentColor;border-right:4px solid currentColor;box-sizing:border-box}
.is-paused .pp-ic{width:0;height:0;border-style:solid;border-width:7px 0 7px 12px;border-color:transparent transparent transparent currentColor}
.sl-pause{display:inline-flex;align-items:center;justify-content:center}
.hero-pause{position:absolute;right:1rem;bottom:1rem;z-index:5;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;border:1px solid rgba(255,255,255,.55);background:rgba(0,0,0,.55);color:#fff;cursor:pointer}
.hero-pause[hidden]{display:none}
.hero-pause:hover{background:rgba(0,0,0,.75)}
.hero-pause:focus-visible,.sl-pause:focus-visible{outline:3px solid var(--gold-hi,#e8c46a);outline-offset:3px}
.hero-media.paused *{animation-play-state:paused!important}

/* v3.48: photos 2 and 3 and the video (slides 2-4 of the hero roll) are shown zoomed out (scale .90 -> .94) so more of each frame is visible.
   The margin this opens is filled by a blurred, enlarged copy of the same photo (no new image files, no empty bars). Slide 1 is unchanged. */
.hero-media .hbg { position: absolute; inset: -6%; z-index: 0; opacity: 0; transition: opacity 1.4s ease; background: center / cover no-repeat;
  filter: blur(28px) brightness(.8); pointer-events: none; }
.hero-media .hbg-1 { background-image: url(/assets/hero-2.webp); }
.hero-media .hbg-2 { background-image: url(/assets/hero-photo.webp); }
@media (max-aspect-ratio: 4/5) {
  .hero-media .hbg-1 { background-image: url(/assets/hero-2-m.webp); }
  .hero-media .hbg-2 { background-image: url(/assets/hero-photo-m.webp); }
}
.hero-media[data-photo="1"] .hbg-1, .hero-media[data-photo="2"] .hbg-2, .hero-media[data-step="2"] .hbg-2 { opacity: 1; }
@keyframes kb-hero-out { from { transform: translate3d(0, 0, 0) scale(.9); } to { transform: translate3d(-.6%, -.4%, 0) scale(.94); } }
.hero-media picture:nth-of-type(2) img.hp, .hero-media picture:nth-of-type(3) img.hp { transform: scale(.9); }
.hero-media video { transform: scale(.94); transform-origin: 50% 45%; }
@media (prefers-reduced-motion: no-preference) {
  .hero-media picture:nth-of-type(2) img.hp.kb, .hero-media picture:nth-of-type(3) img.hp.kb { animation-name: kb-hero-out; }
}
@media (prefers-reduced-motion: reduce) { .hero-media .hbg { display: none; } }
/* v3.54 mobile only: shorter fade-to-black at the foot of the hero so there is no long black gap before The House (desktop untouched; cross unchanged) */
@media (max-width: 699px) {
  .hero-media::after { background:
    radial-gradient(ellipse 100% 62% at 50% 54%, rgba(8,11,18,.84), rgba(8,11,18,.58) 62%, rgba(8,11,18,.2) 100%),
    linear-gradient(to bottom, rgba(8,11,18,.5), rgba(8,11,18,0) 20%, rgba(8,11,18,0) 90%, var(--ink)); }
}
/* v3.54: slides 1 and 2 of the hero roll zoomed out further so more of each photo shows (slide 1: 1.00->1.048 now .90->.94; slide 2: .90->.94 now .84->.88).
   Slide 1 gets the same blurred fill as slides 2-3 (hbg-0). Slide 3 and the video unchanged. */
.hero-media .hbg-0 { background-image: url(/assets/hero-1.webp); }
@media (max-aspect-ratio: 4/5) { .hero-media .hbg-0 { background-image: url(/assets/hero-1-m.webp); } }
.hero-media[data-photo="0"]:not([data-step="2"]) .hbg-0 { opacity: 1; }
@keyframes kb-hero-out2 { from { transform: translate3d(0, 0, 0) scale(.84); } to { transform: translate3d(-.6%, -.4%, 0) scale(.88); } }
.hero-media picture:nth-of-type(1) img.hp { transform: scale(.9); }
.hero-media picture:nth-of-type(2) img.hp { transform: scale(.84); }
@media (prefers-reduced-motion: no-preference) {
  .hero-media picture:nth-of-type(1) img.hp.kb { animation-name: kb-hero-out; }
  .hero-media picture:nth-of-type(2) img.hp.kb { animation-name: kb-hero-out2; }
}
/* v3.55: slides 1-2 (zoomed out) - no hard rectangle where the sharp photo meets the blurred fill. The GPU-composited, scaled photo layer
   antialiased its outer 1px against the brighter blurred fill, drawing a thin light frame. Feather the photo's edges into the fill instead. */
.hero-media picture:nth-of-type(1) img.hp, .hero-media picture:nth-of-type(2) img.hp,
.hero-media picture:nth-of-type(3) img.hp, .hero-media video { /* v3.56: same feather on slides 3-4 */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
  mask-composite: intersect; }
/* v3.57: slide 1 zoomed out further (.90->.94 now .82->.86); feather and blurred fill (hbg-0) unchanged */
@keyframes kb-hero-out3 { from { transform: translate3d(0, 0, 0) scale(.82); } to { transform: translate3d(-.6%, -.4%, 0) scale(.86); } }
.hero-media picture:nth-of-type(1) img.hp { transform: scale(.82); }
@media (prefers-reduced-motion: no-preference) { .hero-media picture:nth-of-type(1) img.hp.kb { animation-name: kb-hero-out3; } }
/* v3.58: slide 1 only - the two men's heads sit at the very top of the photo. Nudge the photo down, narrow its top feather
   (sides and bottom keep the 6% feather; blurred fill hbg-0 still behind it) and lighten the top fade while slide 1 shows. */
@keyframes kb-hero-out4 { from { transform: translate3d(0, 3.5%, 0) scale(.82); } to { transform: translate3d(-.6%, 3.1%, 0) scale(.86); } }
.hero-media picture:nth-of-type(1) img.hp { transform: translate3d(0, 3.5%, 0) scale(.82);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 3%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 3%, #000 94%, transparent); }
@media (prefers-reduced-motion: no-preference) { .hero-media picture:nth-of-type(1) img.hp.kb { animation-name: kb-hero-out4; } }
.hero-media[data-photo="0"]:not([data-step="2"])::after { background:
  radial-gradient(ellipse 58% 50% at 50% 58%, rgba(8,11,18,.78), rgba(8,11,18,.42) 58%, rgba(8,11,18,.06) 100%),
  linear-gradient(to bottom, rgba(8,11,18,.12), rgba(8,11,18,0) 14%, rgba(8,11,18,0) 66%, var(--ink)); }
@media (max-width: 699px) {
  .hero-media[data-photo="0"]:not([data-step="2"])::after { background:
    radial-gradient(ellipse 100% 62% at 50% 58%, rgba(8,11,18,.8), rgba(8,11,18,.5) 62%, rgba(8,11,18,.16) 100%),
    linear-gradient(to bottom, rgba(8,11,18,.12), rgba(8,11,18,0) 14%, rgba(8,11,18,0) 90%, var(--ink)); }
}
/* v3.59: no blur/feather at the top or bottom of any roll slide - each photo (and the video) runs crisp from the top to the bottom of the hero.
   The zoomed-out look is kept only left/right: the frame is narrowed by side insets (blurred fill + 6% side feather still show at the sides).
   Ken Burns now grows from the top edge on slide 1 so the men's heads stay in view. */
@keyframes kb-fill { from { transform: scale(1); } to { transform: scale(1.03); } }
.hero-media picture img.hp, .hero-media video { top: 0; bottom: 0; height: 100%; transform: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.hero-media picture:nth-of-type(1) img.hp { top: 1.5%; left: 5%; right: 5%; width: 90%; object-position: 42% 0%; transform: none; transform-origin: 50% 0%; }
@media (max-aspect-ratio: 4/5) { .hero-media picture:nth-of-type(1) img.hp { object-position: 50% 30%; } }
.hero-media picture:nth-of-type(2) img.hp { left: 8%; right: 8%; width: 84%; }
.hero-media picture:nth-of-type(3) img.hp { left: 5%; right: 5%; width: 90%; }
.hero-media video { left: 3%; right: 3%; width: 94%; }
@media (prefers-reduced-motion: no-preference) {
  .hero-media picture:nth-of-type(1) img.hp.kb, .hero-media picture:nth-of-type(2) img.hp.kb, .hero-media picture:nth-of-type(3) img.hp.kb { animation-name: kb-fill; }
}
/* v3.60: phones get new crisp crops of the desktop photos/video (no baked-in blurred bands). Each sits full-width at the top of the hero,
   crisp to its top and bottom edges; no blurred fill or feather on phone. */
@media (max-aspect-ratio: 4/5) {
  .hero-media .hbg { display: none; }
  .hero-media picture:nth-of-type(1) img.hp, .hero-media picture:nth-of-type(2) img.hp, .hero-media picture:nth-of-type(3) img.hp, .hero-media video {
    top: 0; bottom: auto; left: 0; right: 0; width: 100%; height: auto; object-fit: cover; object-position: 50% 0%; transform-origin: 50% 0%;
    -webkit-mask-image: none; mask-image: none; }
  .hero-media picture:nth-of-type(1) img.hp { top: 1.5%; }
  .hero-media video { aspect-ratio: 4 / 3; }
}
