/* Cast83 — shared stylesheet */

/* ---------- Fonts ---------- */
/* Two typefaces only: PP Migra (display) and Instrument Sans (UI and body). */
/* Display serif: PP Migra Extralight and Extralight Italic. */
@font-face {
  font-family: 'Cast Display';
  src: url('/assets/fonts/pp-migra-extralight.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cast Display';
  src: url('/assets/fonts/pp-migra-extralight-italic.woff2') format('woff2');
  font-weight: 100 900; font-style: italic; font-display: swap;
}
/* UI and body: Instrument Sans (variable, 400–700). */
@font-face {
  font-family: 'Instrument Sans';
  src: url('/assets/fonts/instrument-sans-latin.woff2') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0C0B0A;
  --text: #ECE6DC;
  --muted: #A8A195;
  --body: #CFC8BC;
  --line: #2A2723;
  --placeholder: #1C1A17;
  --tan: #C3996B;

  --serif: 'Cast Display', 'Times New Roman', serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, sans-serif;

  --gutter: 20px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, picture, svg, video { display: block; max-width: 100%; }
a { color: var(--text); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
:focus-visible { outline: 1px solid var(--text); outline-offset: 4px; }
figure { margin: 0; }
h1, h2, h3, p { margin: 0; }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 10;
  background: var(--text); color: var(--bg); padding: 10px 16px; font-size: 14px;
}
.skip:focus { top: var(--gutter); }

/* ---------- Type ---------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .005em;
  text-wrap: balance;
}
.h1 { font-size: clamp(38px, 3.9vw, 56px); line-height: .98; }
.h2 {
  font-size: clamp(34px, 3.5vw, 50px); line-height: 1;
  max-width: 1100px; margin: 0 auto; text-align: center;
}
.it { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; }

.link {
  display: inline-block; font-size: 14px;
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease-out), color .2s;
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

.button {
  /* The site's one button style: filled cream, dark uppercase letter-spaced text, square corners. */
  display: inline-block;
  font: 500 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  background: var(--text); color: var(--bg);
  padding: 18px 32px;
  transition: background-color .25s, color .25s;
}
.button:hover { background: #fff; color: var(--bg); }

.center { display: flex; justify-content: center; }

/* Section headings (From our couples, Featured weddings, Tell us about your day):
   one large style, sentence case, centred. */
.section-title {
  margin: 0; text-align: center; text-transform: none;
  font-size: clamp(56px, 9vw, 140px); line-height: 1.05;
}
.reviews .section-title { padding: 0 var(--gutter); }

/* Footer: links on the left; location, copyright and the Instagram icon on the right. */
.footer-end { display: flex; align-items: center; gap: 16px; }
.footer-ig { display: inline-flex; color: var(--text); transition: color .2s; }
.footer-ig:hover { color: var(--tan); }
/* Footer links: 8px either side of each separator dot. */
.footer-nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }

/* ---------- Header ---------- */
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px; padding: var(--gutter);
}
.logo { display: block; line-height: 0; }
.logo img { height: 24px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 14px; }
.nav a[aria-current="page"] { color: var(--muted); }
.nav-cta {
  /* The header's Contact button: the same button style, just smaller. */
  font: 500 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  background: var(--text); color: var(--bg) !important;
  padding: 10px 16px; margin: -10px 0;
  transition: background-color .25s, color .25s;
}
.nav-cta:hover { background: #fff; }

/* Sticky header for the whole page, with a soft dark gradient behind it
   (no solid bar) so the logo and links stay readable over anything. */
.site-header { position: sticky; top: 0; z-index: 60; }
.ch-header::before, .site-header::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 150px; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(12, 11, 10, .9) 0%, rgba(12, 11, 10, .55) 45%, rgba(12, 11, 10, 0) 100%);
}

/* ---------- Menu drawer ----------
   Slides in from the right, about 500px wide (full width on phones), over a
   dark scrim. Clicking the scrim, Close or Esc closes it. */
.menu-toggle {
  display: none;
  background: none; border: 0; padding: 6px 0; margin: -6px 0;
  color: var(--text); font: 14px/1.5 var(--sans); cursor: pointer;
}
.menu {
  position: fixed; inset: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--text);
  overflow: hidden;
  overflow: clip; /* not a scroll container, so Safari can't scroll it sideways when focus moves in */
}
.menu::backdrop { background: transparent; }
.menu .menu-toggle { display: inline-block; } /* Close is always shown inside the drawer */
.menu-scrim { position: absolute; inset: 0; background: rgba(12, 11, 10, .62); }
.menu-inner {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(500px, 100%); will-change: transform;
  display: flex; flex-direction: column; overflow-y: auto;
  background: var(--bg); border-left: 1px solid var(--line);
  padding: 0 32px calc(28px + env(safe-area-inset-bottom));
}
.menu-head {
  display: flex; align-items: center; justify-content: flex-end;
  padding: 26px 0 var(--gutter);
}
.menu-head .logo { display: none; margin-right: auto; }
.menu-body { margin: auto 0; padding: 32px 0; } /* links + Contact us, centred in the drawer */
.menu-nav { display: flex; flex-direction: column; align-items: flex-start; }
.menu-nav a {
  font-family: var(--serif); font-weight: 400; text-transform: uppercase;
  font-size: clamp(40px, 11vw, 54px); line-height: 1.04; letter-spacing: .005em;
}
.menu-nav a:hover { color: var(--muted); }
.menu-nav a[aria-current="page"] { color: var(--tan); } /* current page: same type, tan */
.menu-mask { display: block; overflow: clip; padding-bottom: .08em; margin-bottom: -.08em; }
.menu-word { display: block; }
.menu-cta { align-self: flex-start; margin-top: 40px; }
.menu-foot {
  display: flex; flex-wrap: wrap; gap: 6px 20px;
  padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.menu-foot span { margin-right: auto; }
@media (max-width: 599px) {
  /* Full-width on phones: show the logo so the top bar matches the page's. */
  .menu-inner { border-left: 0; padding: 0 var(--gutter) calc(24px + env(safe-area-inset-bottom)); }
  .menu-head { justify-content: space-between; padding: var(--gutter) 0; }
  .menu-head .logo { display: block; }
}
html.menu-open { overflow: hidden; }
/* Keep the scrollbar's space when the menu locks scrolling, so the page doesn't jump sideways. */
html { scrollbar-gutter: stable; }

/* ---------- Hero ---------- */
.hero { padding: 150px var(--gutter) 170px; text-align: center; }

/* ---------- Image frames ---------- */
/* .frame clips, .media is what GSAP scales/fades in, img is what zooms on hover. */
.frame {
  position: relative; display: block; overflow: hidden;
  background: var(--placeholder);
  aspect-ratio: 4 / 5;
}
.frame .media, .frame img { width: 100%; height: 100%; }
.frame img { object-fit: cover; transition: transform .8s var(--ease-out); }
a:hover .frame img { transform: scale(1.035); }

/* ---------- Gallery ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gutter); padding: 0 var(--gutter); align-items: start;
}
.tile { display: block; }
.t-c1 { grid-column: 1; }
.t-c2 { grid-column: 2; }
.t-c4 { grid-column: 4; }
.t-c12 { grid-column: 1 / span 2; }
.t-c23 { grid-column: 2 / span 2; }
.t-c34 { grid-column: 3 / span 2; }
.tile-film .frame { aspect-ratio: 16 / 9; }
.play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  color: var(--text); transition: scale .6s var(--ease-out);
}
.tile-film:hover .play { scale: 1.08; }

/* ---------- About ---------- */
/* About (Figma 2016:625): heading, then the portrait flush to the left edge
   (732 of 1440) with the text column beside it (from 796, 560 wide). */
.about { padding: 116px var(--gutter) 0; }
.about-title {
  max-width: 800px; margin: 0 auto; text-align: center; text-transform: none;
  font-size: clamp(40px, 4.6vw, 66px); line-height: 1.04;
}
.about-sub { display: block; margin-top: .45em; font-size: .52em; line-height: 1.2; color: #C4B8AA; text-wrap: balance; }
.about-split {
  /* The 1440 frame, edge to edge over the page gutters, capped and centred. */
  width: min(calc(100% + var(--gutter) * 2), 1440px);
  margin: 63px 0 0 50%; transform: translateX(-50%);
  display: grid; grid-template-columns: calc(732 / 1440 * 100%) 1fr;
  column-gap: calc(64 / 1440 * 100%); align-items: start;
}
.about-main { margin: 0; }
/* Side by side: the portrait stays put while the text column scrolls past it. */
@media (min-width: 900px) { .about-main { position: sticky; top: 120px; } }
.about-main .frame { display: block; aspect-ratio: 732 / 521; }
.about-text {
  display: flex; flex-direction: column; align-items: flex-start;
  width: min(560px, 100%); padding: 16px var(--gutter) 0 0;
}
.lead { margin: 0; font-family: var(--serif); font-size: clamp(26px, 2.1vw, 30px); line-height: 1.24; } /* Migra is wider than the Figma's Instrument Serif; 30px keeps it to two lines */
.body { margin: 24px 0 0; font-size: 17px; line-height: 1.6; color: var(--body); }
.about-text .stats { align-self: stretch; margin-top: 32px; }
.about-text .button { margin-top: 32px; }
.stats {
  /* One spacing everywhere (About, Contact, story details): 24px between rows. */
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px var(--gutter); margin: 8px 0 0; font-size: 15px;
}
.stats > div { position: relative; padding-top: 14px; }
.stats > div::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--line); transform-origin: 0 50%;
}
.stats dt { color: var(--muted); padding-bottom: 4px; line-height: 18px; }
.stats dd { margin: 0; font-family: var(--serif); font-size: 28px; line-height: 1.25; }

/* ---------- Featured weddings ---------- */
.featured { padding: 220px var(--gutter) 0; }
.cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px var(--gutter); margin-top: 120px;
}
.card { display: block; }
.card-title {
  display: block; margin-top: 16px;
  font-family: var(--serif); font-size: 24px; line-height: 1.1;
  text-transform: uppercase; letter-spacing: .01em;
}
.card-meta {
  display: block; margin-top: 2px;
  font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.2; color: var(--muted);
}
.featured .center { margin-top: 72px; }

/* ---------- CTA ---------- */
.cta { padding: 240px var(--gutter) 220px; text-align: center; }
.eyebrow { margin-bottom: 24px; font-size: 14px; color: var(--muted); }
.cta .button { margin-top: 56px; }
.cta-email { margin-top: 24px; font-size: 14px; color: var(--muted); }
.cta-email a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }

/* ---------- Footer ---------- */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  padding: 24px var(--gutter) 28px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}

/* ---------- Film dialog ---------- */
.film-dialog {
  width: min(1280px, calc(100vw - 2 * var(--gutter)));
  max-width: none; max-height: none;
  padding: 0; border: 0; background: transparent; color: var(--text); overflow: visible;
}
.film-dialog::backdrop { background: rgba(12, 11, 10, .94); }
.film-player { aspect-ratio: 16 / 9; background: #000; }
.film-player iframe, .film-player video { width: 100%; height: 100%; border: 0; }
.film-close {
  position: absolute; right: 0; bottom: calc(100% + 12px);
  background: none; border: 0; color: var(--text); font: 14px var(--sans); cursor: pointer; padding: 4px 0;
}

/* ---------- Motion: initial states (only when JS + motion are on) ---------- */
.motion [data-split],
.motion [data-fade],
.motion [data-header] { visibility: hidden; }
.motion .frame .media { opacity: 0; }
.motion .frame { clip-path: inset(100% 0 0 0); }
.motion .frame.no-reveal { clip-path: none; }
.motion .frame.no-reveal .media { opacity: 1; }
.motion [data-stats] > div::before { transform: scaleX(0); }
[data-stats] > div::before { transition: transform 1.1s var(--ease-out); }
[data-stats].is-in > div::before { transform: scaleX(1); }
[data-stats].is-in > div:nth-child(2)::before { transition-delay: .08s; }
[data-stats].is-in > div:nth-child(3)::before { transition-delay: .16s; }
[data-stats].is-in > div:nth-child(4)::before { transition-delay: .24s; }
.split-line { padding-bottom: .06em; margin-bottom: -.06em; } /* room for descenders inside the mask */

/* ---------- Responsive ---------- */
@media (max-width: 999px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-c1, .t-c2, .t-c4 { grid-column: auto; }
  .t-c12, .t-c23, .t-c34 { grid-column: 1 / -1; }

  .about { padding-top: 160px; }

  .featured { padding-top: 160px; }
  .cta { padding: 180px var(--gutter) 160px; }
}
@media (max-width: 899px) {
  /* About: portrait edge to edge, text below it. */
  .about-split { display: block; margin-top: 48px; }
  .about-text { width: auto; max-width: 560px; margin: 40px auto 0; padding: 0 var(--gutter); }
}
@media (max-width: 799px) {
  .cards { grid-template-columns: 1fr; margin-top: 72px; }


  /* With JS, the text links move into the menu overlay; Contact stays in the bar. */
  .js .nav { flex-wrap: nowrap; gap: 20px; }
  .js .nav-link { display: none; }
  .js .menu-toggle { display: inline-block; }
}
@media (min-width: 800px) {
  /* Never show the overlay on wide screens, even if left open — except on pages
     whose header only has a menu button (body.has-burger). */
  body:not(.has-burger) .menu { display: none; }
}
@media (max-width: 599px) {
  .hero { padding: 96px var(--gutter) 110px; }
  .hero .h1 br { display: none; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .tile { grid-column: 1; }
  .stats dd { font-size: 24px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
}


/* ---------- Reviews ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.reviews { padding-top: 220px; overflow: hidden; }
.marquee { overflow-x: auto; scrollbar-width: none; }
.marquee::-webkit-scrollbar { display: none; }
.marquee-track { display: flex; width: max-content; }
.motion .marquee { overflow: hidden; }
.motion .marquee.is-ready:not([data-drag]) .marquee-track { animation: marquee var(--marquee-duration, 40s) linear infinite; }
.motion .marquee.is-reverse .marquee-track { animation-direction: reverse; }
.motion .rv-cards:hover .marquee-track,
.motion .rv-cards:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }


.rv-count {
  display: inline-block; vertical-align: top; margin: .3em 0 0 .18em; padding: 4px 8px; border: 1px solid var(--line);
  font: 400 14px/1 var(--sans); letter-spacing: 0; color: var(--tan);
}
.rv-cards { margin-top: 90px; padding: 0 0 4px; }
/* Draggable row (main.js drives it): grab with the mouse, swipe on touch / trackpad. */
.marquee[data-drag].is-ready { overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.marquee[data-drag].is-dragging { cursor: grabbing; }
.marquee[data-drag] .marquee-track { will-change: transform; }
.rv-cards .marquee-track { align-items: stretch; gap: 16px; padding-right: 16px; }
.review {
  flex: none; width: clamp(300px, 40vw, 600px); margin: 0;
  display: flex; flex-direction: column; gap: 28px;
  padding: 32px 36px 30px; background: #151311; border: 1px solid #1F1C19;
}
.review-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.stars { color: var(--tan); letter-spacing: .18em; font-size: 13px; }
.review blockquote { margin: 0; font: 400 28px/1.25 var(--serif); color: var(--text); }
.review figcaption { margin-top: auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 14px; }
.review-who { color: var(--text); }
.review-where { color: var(--muted); }
.review-src {
  margin-left: auto; padding: 3px 8px; border: 1px solid var(--line);
  font-size: 12px; color: var(--muted); letter-spacing: .02em;
}
@media (max-width: 799px) {
  .reviews { padding-top: 160px; }
  .rv-cards { margin-top: 56px; }
  .review { width: 82vw; padding: 26px 24px; }
  .review blockquote { font-size: 22px; } /* 28px is too big for a phone-width card */
}

/* ---------- Canvas hero (test pages: /hero/a/, /hero/b/, /hero/c/) ----------
   Layout and motion live in canvas-hero.js. Without JS the photos simply wrap
   in a grid under the headline. */
.hero-test { overscroll-behavior-x: none; }
.ch { position: relative; }
.ch-sticky { position: relative; min-height: 100svh; overflow: hidden; background: var(--bg); }
.ch-on .ch { height: calc(100svh + 110vh); }
.ch-on.ch-calm .ch { height: auto; }
.ch-on .ch-sticky { position: sticky; top: 0; height: 100svh; }

/* Header sits over the canvas */
.ch-header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: var(--gutter); pointer-events: none;
}
.ch-header > * { pointer-events: auto; }
.ch-header .logo { justify-self: start; }
.ch-header .logo img { display: block; width: auto; height: 36px; }
.burger {
  justify-self: end; display: grid; place-items: center; width: 40px; height: 40px; margin: -8px;
  background: none; border: 0; color: var(--text); cursor: pointer;
}
.ch-eyebrow {
  margin: 0; font: 400 13px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--body); text-align: center;
}
/* Soft fades top and bottom so photos sink under the header */
.ch-sticky::before, .ch-sticky::after {
  content: ''; position: absolute; left: 0; right: 0; z-index: 5; pointer-events: none;
}
.ch-sticky::before { top: 0; height: 150px; background: linear-gradient(var(--bg) 10%, rgba(12, 11, 10, 0)); }
.ch-sticky::after { bottom: 0; height: 120px; background: linear-gradient(rgba(12, 11, 10, 0), var(--bg)); }

/* The canvas */
.ch-viewport { display: flex; flex-wrap: wrap; gap: var(--gutter); padding: 140px var(--gutter) 60px; }
.ch-viewport .ch-item { width: calc(33.33% - 14px); }
.ch-on .ch-viewport {
  position: absolute; inset: 0; z-index: 1; display: block; padding: 0;
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
  transform-origin: 50% 40%;
}
.ch-on .ch-viewport.is-dragging { cursor: grabbing; }
.ch-on .ch-viewport .ch-item {
  position: absolute; left: 0; top: 0; width: auto;
  will-change: transform; background: var(--placeholder); overflow: hidden;
}
.ch-item, .ch-item img { -webkit-user-drag: none; }
.ch-item .media, .ch-item img, .ch-item video { display: block; width: 100%; height: 100%; }
.ch-item video, .frame video { object-fit: cover; }
.ch-item img { object-fit: cover; transition: transform 1.2s var(--ease-out), opacity .9s ease; }
.ch-on .ch-item img { opacity: 0; }
.ch-on .ch-item.is-loaded img { opacity: 1; }
.ch-viewport:not(.is-dragging) a.ch-item:hover img { transform: scale(1.035); }

/* Big line, centred over the canvas (A, C) */
.ch-line {
  position: absolute; inset: 0; z-index: 4; display: grid; place-items: center;
  padding: 0 var(--gutter); pointer-events: none;
}
.ch-big {
  margin: 0; font-size: clamp(48px, 7.8vw, 112px); line-height: 1; letter-spacing: -.01em;
  text-transform: none; text-align: center;
}
.ch-line .ch-big { text-shadow: 0 0 48px rgba(12, 11, 10, .55); }
.ch--rows .ch-line::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 340px; transform: translateY(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(12, 11, 10, .55), rgba(12, 11, 10, 0));
}
.ch--rows .ch-big { position: relative; }

/* B: sticky split. The left panel holds still while the collage on the right
   scrolls; collage positions are in units of the 758px-wide Figma column. */
.split { display: grid; grid-template-columns: minmax(0, 682fr) minmax(0, 758fr); } /* minmax: Safari otherwise squeezes the collage */
.split-left {
  position: sticky; top: 0; height: 100svh; z-index: 2;
  /* Logo at the top, links at the bottom, headline centred in the space between. */
  display: flex; flex-direction: column;
  padding: 24px var(--gutter) var(--gutter); border-right: 1px solid var(--line); background: var(--bg);
}
.split-left .logo { align-self: flex-start; }
.split-text { margin: auto 0; padding: 40px 0; }
.split-left .logo img { display: block; width: auto; height: 28px; }
.split-text .ch-eyebrow { text-align: left; margin-bottom: 18px; }
.split-text .ch-big { text-align: left; font-size: clamp(48px, 7.4vw, 106px); }
.split-nav { display: flex; flex-direction: column; align-items: flex-start; font-size: 15px; line-height: 1.8; }
.split-nav a:hover { color: var(--muted); }
.split-burger { position: fixed; top: 22px; right: var(--gutter); z-index: 30; margin: -8px; }
.split-right { position: relative; container-type: inline-size; min-width: 0; }
.split-fade { position: sticky; top: 0; height: 0; z-index: 3; }
.split-fade::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 140px; pointer-events: none;
  background: linear-gradient(var(--bg) 5%, rgba(12, 11, 10, 0));
}
.collage { position: relative; height: calc(var(--h) / 758 * 100cqw); margin-bottom: 120px; }
.sc-item {
  position: absolute; display: block;
  left: calc(var(--x) / 758 * 100cqw); top: calc(var(--y) / 758 * 100cqw); width: calc(var(--w) / 758 * 100cqw);
}
.sc-item .frame { display: block; }

/* C: radial vignette over the photos, under the headline */
.ch-vignette {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(ellipse 75% 70% at 50% 50%, rgba(12, 11, 10, 0) 35%, rgba(12, 11, 10, .55) 75%, rgba(12, 11, 10, .92) 100%);
}

/* D: no dragging; a longer scroll so the photos have time to gather */
.ch-on .ch--stack { height: calc(100svh + 220vh); } /* gather 180vh, hold 40vh */
.ch-on.ch-calm .ch--stack { height: auto; }
.ch-on .ch--stack .ch-viewport { cursor: auto; touch-action: auto; user-select: auto; -webkit-user-select: auto; }
.ch--stack .ch-item { box-shadow: 0 10px 40px rgba(0, 0, 0, .45); }

/* E: photos at different depths; the closest pass in front of the headline */
.ch-on .ch--float { height: calc(100svh + 110vh); } /* a short flight, a beat for the buttons, then on */
/* The next section starts rising over the hero while it fades, so there's no gap. */
.ch-on:not(.ch-calm) .ch--float { margin-bottom: -55vh; }
.ch--float ~ section { position: relative; z-index: 2; background: var(--bg); }
.ch-on:not(.ch-calm) .ch--float + section::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 180px; pointer-events: none;
  background: linear-gradient(rgba(12, 11, 10, 0), var(--bg));
}
.ch-on.ch-calm .ch--float { height: auto; }
.ch-on .ch--float .ch-viewport { position: absolute; inset: 0; z-index: auto; cursor: auto; touch-action: auto; user-select: auto; -webkit-user-select: auto; }
.ch--float .ch-item { transform-origin: 50% 50%; will-change: transform, opacity; }
.ch--float .ch-line { z-index: 60; will-change: transform; }
.ch--float .ch-sticky::before, .ch--float .ch-sticky::after { z-index: 140; }
.ch--float .ch-header { z-index: 150; }

/* Headline swap: "Just as it felt." rises out and "Beautifully kept." rises in,
   in the same spot (main.js, [data-swap]). Both phrases share one grid cell. */
.swap { display: inline-grid; vertical-align: top; text-align: left; }
.swap > span { grid-area: 1 / 1; white-space: nowrap; }
.swap-b { visibility: hidden; } /* without motion, only the first phrase shows */
.motion .swap-a { visibility: hidden; } /* revealed with the rest of the headline (main.js) */
.ch-line .swap { justify-items: start; }
@media (max-width: 599px) {
  /* Phones: the phrase gets its own line and may wrap. */
  .swap { display: grid; width: 100%; }
  .swap > span { white-space: normal; }
  .ch-line .swap { justify-items: center; text-align: center; }
}

/* Hero buttons: they load in once "Beautifully kept." is up (main.js). The
   headline stays centred; the buttons hang just below it. */
.ch-line-inner { position: relative; }
.ch-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; pointer-events: auto; }
.ch-line .ch-actions { position: absolute; top: 100%; left: 0; right: 0; justify-content: center; }
.split-text .ch-actions { justify-content: flex-start; }
.motion .ch-actions .button { visibility: hidden; }
@media (max-width: 599px) { .ch-actions { margin-top: 28px; } .ch-actions .button { padding: 16px 16px; font-size: 12px; letter-spacing: .1em; } }

/* Hero picker (test pages only) */
.ch-switch {
  position: fixed; left: 50%; bottom: 16px; z-index: 20; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 14px;
  background: rgba(28, 26, 23, .88); border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; color: var(--muted); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.ch-switch span { margin-right: 6px; }
.ch-switch a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.ch-switch a[aria-current="page"] { background: var(--text); color: var(--bg); }

@media (max-width: 799px) {
  .ch-eyebrow { font-size: 11px; letter-spacing: .12em; }
  .ch-header { grid-template-columns: auto 1fr auto; gap: 12px; }
  .ch-header .logo img { height: 28px; }
  .ch-viewport .ch-item { width: calc(50% - 10px); }
  .split { grid-template-columns: 1fr; }
  .split-left { position: relative; height: auto; min-height: 78svh; border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 48px; }
  .split-nav { display: none; }
  .split-fade { display: none; }
  .collage { margin: 40px 0 80px; }
}
@media (max-width: 599px) {
  /* No room in the bar: keep the H1 for search engines and screen readers only. */
  .ch-header .ch-eyebrow { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ======================================================================
   Subpages (Figma 2017:661 Weddings, 2017:737 About): big title, then a
   wide image or the page's content.
   ====================================================================== */
.page-hero { padding: 200px var(--gutter) 0; text-align: center; }
.page-title {
  margin: 0 auto; max-width: 1100px; text-transform: none; color: #E6DFD8;
  font-size: clamp(56px, 8vw, 115px); line-height: .98; letter-spacing: -.01em;
}
.page-hero-image {
  width: min(calc(100vw - 38px), 1402px); margin: 168px 0 0 50%; transform: translateX(-50%);
}
.page-hero-image .frame { display: block; aspect-ratio: 1402 / 863; }
.page-hero-image video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 799px) {
  .page-hero { padding-top: 150px; }
  .page-hero-image { width: 100%; margin-top: 72px; }
  .page-hero-image .frame { aspect-ratio: 4 / 3; }
}

/* Text blocks on subpages */
.text-block { max-width: 720px; margin: 0 auto; padding: 200px var(--gutter) 0; text-align: center; }
.text-block .section-title { margin-bottom: 48px; }
.text-block p { margin: 0 auto 1.1em; font-size: 19px; line-height: 1.65; color: var(--body); }
.text-block .lead { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.25; color: var(--text); margin-bottom: 1em; }
.text-block a:not(.button) { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.text-block .button { margin-top: 24px; }

/* Three short points in a row (About: our story, how we work) */
.points {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
  max-width: 1400px; margin: 0 auto; padding: 160px var(--gutter) 0;
}
.point { border-top: 1px solid var(--line); padding-top: 20px; }
.point-n { display: block; font: 400 13px/1 var(--sans); letter-spacing: .12em; color: var(--muted); margin-bottom: 28px; }
.point h3 { margin: 0 0 14px; font: 400 clamp(28px, 2.4vw, 36px)/1.1 var(--serif); }
.point p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--body); }
@media (max-width: 799px) { .points { grid-template-columns: 1fr; gap: 40px; padding-top: 120px; } }

/* ---------- Weddings index ---------- */
.weddings-index { padding: 0 var(--gutter); }
.filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin: 72px auto 64px;
}
.filter {
  display: inline-flex; align-items: baseline; gap: 8px; cursor: pointer;
  padding: 13px 20px; border: 1px solid var(--line); background: transparent; color: var(--text);
  font: 500 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  transition: background-color .25s, color .25s, border-color .25s;
}
.filter:hover { border-color: var(--muted); }
.motion [data-filters] .filter { visibility: hidden; } /* revealed by main.js after the title */
.filter[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.filter-n { font-size: 11px; letter-spacing: 0; opacity: .6; }
.story-grid { margin-top: 0; }
.story-grid .card[hidden] { display: none; }
.filters-empty { text-align: center; color: var(--muted); margin: 40px 0; }
.card .frame { position: relative; }
.card-play { position: absolute; left: 16px; bottom: 16px; color: var(--text); filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .45)); pointer-events: none; }
@media (max-width: 599px) { .filters { margin: 48px auto 40px; } .filter { padding: 11px 14px; } }

/* ---------- Wedding story ---------- */
.story-hero { padding: 200px var(--gutter) 0; text-align: center; }
.story-title { font-size: clamp(48px, 7vw, 104px); }
.story-tagline { margin: 28px auto 0; max-width: 760px; font: italic 400 clamp(22px, 2vw, 28px)/1.3 var(--serif); color: var(--muted); }
.story-meta { margin: 20px 0 0; font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--body); }
.story-film {
  position: relative; width: min(calc(100vw - 38px), 1402px); margin: 120px 0 0 50%; transform: translateX(-50%);
  aspect-ratio: var(--film-a, 16 / 9); background: var(--placeholder); overflow: hidden; /* each film's own shape */
}
.story-film + .story-film { margin-top: 20px; }
.story-film-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-film-play {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: var(--text); background: linear-gradient(rgba(12, 11, 10, .05), rgba(12, 11, 10, .35));
  font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; transition: background-color .3s;
}
.story-film-play svg { transition: transform .4s var(--ease-out); }
.story-film-play:hover svg { transform: scale(1.06); }
.story-film iframe, .story-film video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.story-intro { max-width: 720px; margin: 120px auto 0; padding: 0 var(--gutter); }
.story-intro p { margin: 0 0 1.1em; font-size: 19px; line-height: 1.7; color: var(--body); }
.story-gallery { padding: 120px var(--gutter) 0; }
.story-film + .story-gallery, .story-intro + .story-gallery { padding-top: 120px; }
.g-row { display: flex; gap: 20px; max-width: 1400px; margin: 0 auto 20px; }
.g-item { flex: var(--a) 1 0; min-width: 0; margin: 0; }
.g-item .frame { display: block; aspect-ratio: var(--a); }
.g-row--single { max-width: 1100px; } /* a photo on its own row stays within the screen */
.story-details { padding: 200px var(--gutter) 0; }
.story-details-title { margin: 0; text-align: center; text-transform: none; font-size: clamp(44px, 5vw, 72px); }
.story-details-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 80px;
  max-width: 1000px; margin: 72px auto 0; align-items: start;
}
.story-facts { margin: 0; }
.story-vendors-title { margin: 0 0 18px; font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--line); }
.story-vendors ul { list-style: none; margin: 0; padding: 0; font-size: 16px; line-height: 1.5; }
.story-vendors li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; }
.story-vendors li span { color: var(--muted); }
.story-vendors a { text-align: right; }
.story-vendors a:hover { color: var(--muted); }
.story-more .story-grid { margin-top: 120px; }
@media (max-width: 799px) {
  .story-hero { padding-top: 150px; }
  .story-film { width: 100%; margin-top: 64px; }
  .story-details-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 599px) {
  .story-gallery { padding-top: 64px; }
  /* Phones: one grid, landscapes full width, portraits two-up (dense fills the gaps). */
  .story-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 8px; }
  .g-row { display: contents; }
  .g-item--wide { grid-column: 1 / -1; }
}

/* ---------- Packages (Photography, Film, FAQ & Pricing) ---------- */
.packages {
  display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 20px;
  max-width: 1400px; margin: 0 auto; padding: 120px var(--gutter) 0;
}
.package { display: flex; flex-direction: column; padding: 40px 36px; background: #151311; border: 1px solid #1F1C19; }
.package-tag { align-self: flex-start; margin-bottom: 24px; padding: 6px 10px; border: 1px solid var(--tan); color: var(--tan); font: 500 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.package h3 { margin: 0 0 24px; font: 400 clamp(30px, 2.6vw, 38px)/1.08 var(--serif); }
.package ul { list-style: none; margin: 0 0 32px; padding: 0; font-size: 16px; line-height: 1.5; color: var(--body); }
.package li { padding: 10px 0; border-top: 1px solid var(--line); }
.package-prices { margin: auto 0 0; padding-top: 8px; }
.package-prices div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.package-prices dt { color: var(--muted); font-size: 15px; }
.package-prices dd { margin: 0; font: 400 28px/1.1 var(--serif); }
@media (max-width: 999px) { .packages { grid-template-columns: 1fr; max-width: 640px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 900px; margin: 0 auto; padding: 200px var(--gutter) 0; }
.faq .section-title { margin-bottom: 72px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; cursor: pointer; list-style: none;
  padding: 26px 0; font: 400 clamp(22px, 2vw, 28px)/1.25 var(--serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font: 300 28px/1 var(--sans); color: var(--muted); transition: transform .3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 28px; max-width: 720px; font-size: 17px; line-height: 1.7; color: var(--body); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px 80px;
  max-width: 1400px; margin: 0 auto; padding: 160px var(--gutter) 0; align-items: start;
}
.contact-info .lead { margin: 0 0 24px; font-size: clamp(30px, 2.8vw, 40px); line-height: 1.15; }
.contact-info p { color: var(--body); font-size: 17px; line-height: 1.65; }
.contact-info dl { margin: 40px 0 0; }
.contact-form { min-height: 640px; background: #151311; border: 1px solid #1F1C19; padding: 32px; }
@media (max-width: 899px) { .contact-grid { grid-template-columns: 1fr; padding-top: 100px; } .contact-form { padding: 16px; } }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 200px var(--gutter) 0; }
.notfound p { color: var(--body); font-size: 18px; }
.notfound-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
@media (max-width: 599px) { .contact-info .stats { grid-template-columns: 1fr; } .contact-info .stats dd { overflow-wrap: anywhere; } }

.contact-alt { margin: 24px 0 0; font-size: 15px; color: var(--muted); }
.contact-alt a { color: var(--text); }
.story-notes { max-width: 720px; margin: 0 auto; padding: 160px var(--gutter) 0; text-align: center; }
.story-notes-body { margin-top: 48px; text-align: left; }
.story-notes-body p { margin: 0 0 1.1em; font-size: 19px; line-height: 1.7; color: var(--body); }

/* ---------- Venues (/venues/ and /venues/<slug>/, made by scripts/venues.mjs) ---------- */
.venue-intro { padding-top: 160px; }
.featured .venue-stories { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1100px; margin: 120px auto 0; }
.venues-featured { padding-top: 120px; }
.venue-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; }
.venue-list { max-width: 900px; margin: 0 auto; padding: 200px var(--gutter) 0; }
.venue-list .section-title { margin-bottom: 72px; }
.venue-group + .venue-group { margin-top: 56px; }
.venue-group ul { list-style: none; margin: 0; padding: 0; }
.venue-group li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.venue-group li a { font-family: var(--serif); font-size: 24px; line-height: 1.2; }
.venue-group li a:hover, .venue-links a:hover, .story-venue-link a:hover, .story-facts dd a:hover { color: var(--muted); }
.venue-group li span { font-size: 14px; color: var(--muted); text-align: right; }
.story-facts dd a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.story-venue-link { margin: 96px 0 0; padding: 0 var(--gutter); text-align: center; font: italic 400 clamp(22px, 2vw, 28px)/1.3 var(--serif); }
.venue-links {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 10px 28px;
  margin: 120px auto 0; max-width: 1000px; text-align: center;
  font: 500 12px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase;
}
.venue-links-label { flex-basis: 100%; color: var(--muted); margin-bottom: 6px; }
.venue-links a { border-bottom: 1px solid var(--line); padding-bottom: 3px; }
@media (max-width: 999px) { .venue-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) {
  .featured .venue-stories, .venue-cards { grid-template-columns: 1fr; }
  .venue-group li { flex-direction: column; gap: 2px; }
  .venue-group li span { text-align: left; }
  .venue-list, .venue-intro { padding-top: 140px; }
}

/* ---------- Mobile & responsive pass (2026-11-05) ---------- */
/* No orphans in headings and short lines; nicer rag in body text. */
.display, .card-title, .story-meta, .story-tagline, .lead, .faq summary, .package h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
/* Tablets: story cards two-up instead of one huge card per row. */
@media (min-width: 600px) and (max-width: 999px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px var(--gutter); }
}
@media (max-width: 599px) {
  .cards { grid-template-columns: 1fr; }
  /* About stats: a touch smaller so two-word values don't strand a word. */
  .about-text .stats dd { font-size: 21px; }
  /* Footer: no dangling dots at line ends, and links big enough to tap. */
  .footer-nav { gap: 0 18px; }
  .footer-sep { display: none; }
  .footer-nav a { padding: 12px 0; }
  .footer-end { width: 100%; justify-content: space-between; }
  .footer-ig { padding: 13px; margin: -13px; }
  /* Taller tap areas for small text links. */
  .venue-links a { padding: 10px 0 6px; }
  .venue-group li a { padding: 6px 0; }
  .story-vendors a { padding: 10px 0; margin: -10px 0; }
  .cta-email a, .contact-alt a { display: inline-block; padding: 10px 0; margin: -10px 0; }
  /* Section rhythm: slightly tighter on phones. */
  .featured, .about { padding-top: 140px; }
  .cta { padding: 160px var(--gutter) 140px; }
  .faq, .story-details, .venue-list { padding-top: 140px; }
}
