/* Home page sections. Motion values come from docs/motion-spec.md. */

/* ───────── 0 · Page background (fixed, Olive ↔ Off-white) ───────── */
/* Behind the hero: Olive (Bea, 24 Nov: tried Dark olive, kept Olive) */
.page-bg {
  position: fixed; inset: 0; z-index: -1;
  background: var(--color-olive);
  transition: background-color var(--dur-page-bg) var(--ease-standard);
}
body[data-bg="off-white"] .page-bg { background: var(--color-off-white); }
body { background: transparent; }

/* Site navbar and menu: css/nav.css (shared with rsvp.html) */

/* Josh & Bea: the date's small copy, fixed in the bottom-right corner once it has landed */
.corner-date {
  --corner-s: .2;
  position: fixed; right: 20px; bottom: 24px; z-index: 19;
  width: calc(305px * var(--corner-s)); height: calc(357px * var(--corner-s));
  color: var(--color-cream); pointer-events: none;
  opacity: 0; transition: color var(--dur-nav) var(--ease-swing);
}
@media (min-width: 810px) { .corner-date { --corner-s: .26; right: 30px; bottom: 36px; } }
.corner-date[data-theme="off-white"], .corner-date[data-theme="sand"] { color: var(--color-black); }
body[data-version="jb"].hero-landed .corner-date { opacity: 1; }
body:not([data-version="jb"]) .corner-date { display: none; }
.corner-date__box { position: absolute; left: 0; top: 0; width: 305px; height: 357px; scale: var(--corner-s); transform-origin: 0 0; }

/* Josh & Bea words (Framer: 148/170/127/130px Poetry Night at -34°), shared by the hero, the logo and the corner date */
.jb-word {
  position: absolute; white-space: nowrap; line-height: 1;
  font-family: var(--font-poetry-night); font-weight: 400;
  font-feature-settings: "blwf", "cv03", "cv04", "cv09", "cv11";
  rotate: -34deg;
}
.jb-word--josh  { left: -18.12px; top: 16.29px; font-size: 148px; }
.jb-word--amp   { right: 17.23px; top: -36.17px; font-size: 170px; }
.jb-word--bea   { right: 31.85px; bottom: 26.6px; font-size: 148px; }
.jb-word--13    { right: 77.49px; top: .53px; font-size: 127px; }
.jb-word--march { left: 50%; top: 50%; translate: -50% -50%; font-size: 130px; }
.jb-word--2027  { right: 15.03px; bottom: 39.61px; font-size: 127px; }

/* "Bea & Josh": four overlapping pieces in a 786 × 275 box, drawn at 81%. Used by the hero title and the navbar logo */
.bj-name { position: absolute; inset: 0; scale: .81; }
.bj-piece { position: absolute; top: 0; white-space: nowrap; }
.bj-piece--bea { left: 2px; }
.bj-piece--osh { left: 572.5px; top: 1.97px; }
.bj-piece--j   { left: 439.5px; top: 8.99px; }
.bj-piece--amp { left: 48.47%; top: 49.03px; width: 0; display: flex; justify-content: center; }
.bj-glyph {
  display: inline-block; white-space: nowrap;
  font-family: var(--font-poetry-night); font-weight: 400; font-size: 210px; line-height: 1;
  font-feature-settings: "blwf", "cv03", "cv04", "cv09", "cv11";
  rotate: var(--rot, 0deg); transform-origin: 50% 50%;
}
.bj-piece--amp .bj-glyph { font-size: 120px; }

/* ───────── 1 · Hero ─────────
   Always fills the window: navbar space on top, the art (scaled to fit, top-aligned), countdown at the bottom.
   A 200vh spacer after the sticky stage makes the pin. */
.hero {
  --hero-fg: var(--color-off-white);
  --nav-space: 60px;
  --caption-h: 72px;                /* just the countdown; the invitation grows up from here */
  --strip-gap: 44px;
  /* Where the Bea & Josh title and date sit around the 800 × 400 oval */
  --title-x: 213px; --title-y: -152px;
  --date-x: 400px;  --date-y: 283px;   /* Bea, 9 Nov: overlaps the photo like the name does */
  --pad-bottom: 56px;                  /* phone, under the countdown (Bea, 23 Nov: was 40) */
  position: relative;
  color: var(--hero-fg);
}
@media (min-width: 810px) { .hero { --nav-space: 76px; --pad-bottom: 64px; --caption-h: 88px; --count-gap: 44px; } }

.hero__stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  padding: var(--nav-space) 16px var(--pad-bottom);
  overflow: visible;
}
.hero__pin { height: 200vh; pointer-events: none; }
.hero__slides { flex: 1; width: 100%; min-height: 0; display: flex; flex-direction: column; align-items: center; }

/* Art box: takes the free space. js/home.js scales the composition (--k) to fit what is actually drawn
   (title, oval, date) and sets its top margin, so there is no dead space above the title. */
.hero__art { flex: 1; min-height: 0; width: 100%; display: flex; align-items: flex-start; justify-content: center; }
.hero__art-inner {
  position: relative; flex: none;
  /* The oval's size in art units: 800 × 400, taller on tablet and its own tall shape on phone (js/home.js) */
  --oval-w: 800px; --oval-h: 400px;
  width: var(--oval-w); height: var(--oval-h);
  scale: var(--k, 1); transform-origin: 50% 0;
}
.hero__oval {
  position: absolute; inset: 0;
  border-radius: 50%; overflow: hidden;
  isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black);
  transition: translate var(--dur-hero-roll) var(--ease-out-expo);
}
/* Photo 2 and white: the photo lifts towards the navbar to make room for the invitation (--lift set by js) */
.hero__slides:not([data-state="photo-1"]) .hero__oval { translate: 0 calc(-1 * var(--lift, 40px)); }
.hero__strip {
  position: absolute; top: 0; left: 0; width: 100%;
  transition: transform var(--dur-hero-slide) var(--ease-swing);
  will-change: transform;
}
.hero__photo { width: 100%; object-fit: cover; }
.hero__photo--palms { height: calc(var(--oval-h) * 1.1111); margin-top: calc(var(--oval-h) * -.055); }   /* Framer: 444 strip in a 400 oval */
/* Sunset photo (Bea, 23 Nov: both faces must always show, never Josh's legs). The faces sit about 44% down and
   53% across the photo; the oval is centred on that spot. --sun-zoom (js/home.js, from the oval's shape) crops in
   only as much as a tall oval needs to leave the legs out, and never so far that Bea's face leaves the side */
.hero__art-inner { --sun-zoom: 1; --sun-fx: .53; --sun-fy: .44; }
.hero__photo--sunset {
  aspect-ratio: 2 / 3; height: auto; max-width: none; width: calc(100% * var(--sun-zoom));
  margin-left: clamp(calc((1 - var(--sun-zoom)) * 100%), calc(50% - var(--sun-fx) * var(--sun-zoom) * 100%), 0%);
}
.hero__gap { height: var(--strip-gap); background: #15140A; }
.hero__shadow { position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 52px 40px 2px -12px rgba(40, 36, 30, .55), inset 60px 48px 20px -12px rgba(40, 36, 30, .14); pointer-events: none; }
.hero__slides[data-state="photo-2"] .hero__strip,
.hero__slides[data-state="white"] .hero__strip {
  /* Past the palms and the gap, then into the sunset photo (2:3, as wide as the oval): 820px on the 800 × 400 oval */
  transform: translateY(calc(-1 * (var(--oval-h) * 1.0556 + var(--strip-gap) + clamp(0px, var(--oval-w) * 1.5 * var(--sun-zoom) * var(--sun-fy) - var(--oval-h) / 2, var(--oval-w) * 1.5 * var(--sun-zoom) - var(--oval-h)))));
}

/* Title: the earlier "Bea & Josh" box, 64px above the oval. js/home.js shrinks the whole box into the navbar logo */
/* Bea & Josh name (Framer T0vJah8Us, 8 Nov): the stacked "Josh & Bea" in a 394 × 332 frame turned 22°.
   js/home.js shrinks it onto the navbar logo (the same frame, unturned), turning it back to 0° on the way */
.bj-title {
  position: absolute; left: var(--title-x); top: var(--title-y); z-index: 2; margin: 0;
  width: 394.25px; height: 332px; font-weight: 400;
  color: var(--hero-fg);
  rotate: 22deg; transform-origin: 50% 50%; will-change: translate, scale, rotate;
}
.bj-title.is-landed { visibility: hidden; }

/* Date: each word sits in its own clipping window (padding gives the swashes room) and rolls up out of it */
.bj-date {
  position: absolute; left: var(--date-x); top: calc(var(--oval-h) - 400px + var(--date-y)); z-index: 2; margin: 0;   /* follows the oval's bottom */
  width: 521px; height: 204px; translate: -50% 0;
  font-family: var(--font-poetry-night); font-size: 120px; line-height: 1; color: var(--hero-fg);
  font-feature-settings: "blwf", "cv03", "cv04", "cv09", "cv11";
}
.bj-date > .roll { position: absolute; overflow: hidden; padding: .45em .3em; margin: -.45em -.3em; }
.bj-date-13    { top: 10.53px; left: 9px; }
.bj-date-march { left: 17.5px; bottom: 28.51px; }
.bj-date-year  { right: 14.5px; bottom: 28.98px; }

/* Roller: the date words and countdown units roll up and out as the invitation comes in, and roll
   back down when you scroll back up. Out: no delay; back in: after the invitation has rolled away. */
.roll > span, .countdown__roll {
  display: block;
  transition: translate var(--dur-hero-out) var(--ease-swing);
  transition-delay: calc(.25s + var(--n, 0) * .05s);
}
.roll > span { white-space: nowrap; rotate: -8deg; }
.hero__slides:not([data-state="photo-1"]) .roll > span { translate: 0 -1.9em; transition-delay: calc(var(--n, 0) * .05s); }
.hero__slides:not([data-state="photo-1"]) .countdown__roll { translate: 0 -115%; transition-delay: calc(var(--n, 0) * .04s); }

/* Josh & Bea composition (Framer UIKafMmfS): name frame 342 × 288 at (-75, 20) from the oval's corner,
   date frame 305 × 357 off its right side. js/home.js shrinks each whole frame onto its small copy */
.jb-name, .jb-date {
  position: absolute; z-index: 2; margin: 0; font-weight: 400; color: var(--hero-fg);
  transform-origin: 50% 50%; will-change: translate, scale;
}
.jb-name { left: -75px; top: 20px; width: 342px; height: 288px; }
.jb-date { left: 601px; top: 90px; width: 304.84px; height: 356.92px; }
.jb-name.is-landed, .jb-date.is-landed { visibility: hidden; }
body:not([data-version="jb"]) :is(.jb-name, .jb-date) { display: none; }
body[data-version="jb"] :is(.bj-title, .bj-date) { display: none; }

/* While js/home.js measures the art: everything at rest, nothing animating. Then one frame with no transitions
   while it goes back to the scrolled state, so resizing never replays the rolls */
.hero.is-fitting :is(.roll > span, .countdown__roll, .hero__oval) { transition: none !important; translate: none !important; }
.hero.is-settling :is(.roll > span, .countdown__roll, .hero__oval, .hero__line-text, .hero__strip, .hero__invite) { transition: none !important; }

/* Caption: countdown sits at the bottom; the invitation takes its place on scroll */
.hero__caption { position: relative; z-index: 3; flex: none; width: 100%; height: var(--caption-h); margin-top: 24px; }
.hero__countdown { position: absolute; left: 0; right: 0; bottom: 0; column-gap: var(--count-gap, 16px); }
.hero__countdown .countdown__unit { overflow: hidden; padding-block: 4px; margin-block: -4px; }
.countdown__roll { display: flex; flex-direction: column; align-items: center; gap: 8px; }

.hero__invite {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  transition: opacity var(--dur-hero-white) var(--ease-standard);
}
.hero__line { overflow: hidden; }
.hero__line--small { padding: 2px 8px; }
.hero__line--small:first-child { padding-bottom: 6px; margin-bottom: 18px; }
.hero__line--name { padding: 4px 24px; }
/* Lines roll in quickly once the date and countdown are on their way out; going back they drop away at once */
.hero__line-text { display: block; transition: transform .4s var(--ease-swing); }
.hero__slides[data-state="photo-1"] .hero__invite--photo .hero__line-text { transform: translateY(calc(100% + 12px)); }
.hero__slides[data-state="photo-2"] .hero__invite--photo .hero__line-text {
  transition: transform var(--dur-hero-roll) var(--ease-out-expo);
  transition-delay: calc(.15s + var(--i, 0) * var(--dur-hero-roll-stagger));
}
/* White: the black copy snaps in over the off-white copy, in place */
.hero__invite--white { opacity: 0; color: var(--color-black); }
.hero__slides[data-state="white"] .hero__invite--photo { opacity: 0; }
.hero__slides[data-state="white"] .hero__invite--white { opacity: 1; }

.hero__short { display: none; }
@media (max-width: 809px) {
  .hero__line--name { padding-inline: 0; }
  /* Bea, 23 Nov: the same Red Eye Thick as desktop and tablet, on one line: shorter copy on phone */
  .hero__long { display: none; }
  .hero__slides .hero__short { display: inline; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .bj-title { will-change: auto; }
  .hero__slides *, .hero__oval { transition-duration: 0s !important; transition-delay: 0s !important; }
}


/* ───────── Placeholder for sections not built yet ───────── */
.placeholder {
  min-height: 140vh; padding: 160px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--color-charcoal); text-align: center;
}

/* ───────── 2 · Entourage (Framer lhu5TeHyC) ─────────
   Desktop values are Framer's. Tablet and phone are a first pass, to be set in the breakpoint pass. */
.entourage {
  --ent-pad: 24px 24px 72px;
  --ent-gap: 40px;                  /* between blocks of names */
  --ent-col: 1fr;                   /* name column width */
  position: relative; z-index: 1;
  padding: var(--ent-pad);
  background: var(--color-off-white); color: var(--color-black);
  overflow: clip;
}
@media (min-width: 810px) { .entourage { --ent-pad: 24px 48px 120px; --ent-col: 200px; } }

/* Collage: two photos centred, poem and doodles placed from the photos' centre */
.ent-collage { position: relative; padding-bottom: 72px; }
.ent-photos { position: relative; width: 444px; height: 456px; margin-inline: auto; }
.ent-photo { position: absolute; margin: 0; overflow: hidden; }
.ent-photo img { width: 100%; height: 100%; object-fit: cover; }
.ent-photo--kiss { right: 98px; bottom: 0; width: 346px; height: 456px; border-left: 6px solid var(--color-ikb); }
.ent-photo--veil { right: 0; top: 112px; width: 200px; height: 232px; border: 2px solid var(--color-ikb); }
/* Poem (Bea, 23 Nov): the same M style as the Dindi lyrics (24px at every size), layered over the photo and its blue border */
.ent-poem {
  position: absolute; left: calc(50% - 337.5px); bottom: 109px; z-index: 3; margin: 0;
  color: var(--color-black); white-space: nowrap;
}
.ent-poem__copy { margin: 0; display: flex; flex-direction: column; }
.ent-poem__copy--lit { position: absolute; inset: 0; color: var(--color-off-white); clip-path: var(--poem-clip, inset(0 0 0 100%)); text-shadow: 0 0 10px rgba(20, 18, 16, .55), 0 0 2px rgba(20, 18, 16, .4); }   /* stays legible over the white dress */
.ent-star     { position: absolute; left: max(0px, calc(50% - 431px)); top: 56px; width: 128px; z-index: 2; }
.ent-squiggle { position: absolute; left: calc(50% + 196px); top: 46px; width: 140px; }
.ent-dot      { position: absolute; left: calc(50% + 290px); top: 372px; width: 84px; }
.doodle { display: block; height: auto; fill: none; }

/* Names */
.ent-content { width: min(1080px, 100%); margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: 56px; }
.ent-title { margin: 0; text-align: center; }
.ent-groups { width: 100%; display: flex; flex-direction: column; gap: var(--ent-gap); }
.ent-group { display: flex; flex-direction: column; gap: 16px; }
.ent-group--centre { align-items: center; text-align: center; }
.ent-group__title { margin: 0; }
.ent-group__title--centre { text-align: center; }
.ent-block { display: flex; flex-direction: column; gap: 20px; }
.ent-block--sponsors { gap: 8px; }
.ent-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ent-col { width: var(--ent-col); display: flex; flex-direction: column; gap: 16px; }
.ent-col--start { align-items: flex-start; text-align: left; }
.ent-col--end { align-items: flex-end; text-align: right; }
.ent-roles { gap: 12px; }
.ent-roles > .ent-group__title { margin-bottom: 4px; }
.ent-role { display: flex; flex-direction: column; }
.ent-col--end .ent-role { align-items: flex-end; }
.ent-role__label { margin: 0; }
.ent-names { list-style: none; margin: 0; padding: 0; }
.ent-doodle { flex: none; }
.ent-doodle--sponsors { width: 130px; }
/* One Calder for the whole Bride/Groom block, centred between the columns */
.ent-doodle--bridal { position: absolute; left: calc(50% - 125px); top: 50%; width: 250px; margin-top: calc(-125px * 400 / 296); }
/* Bride/Groom lists: top-aligned, label sits right on its names, rows closer together */
.ent-block--bridal { position: relative; gap: 24px; }
.ent-block--bridal .ent-row { align-items: flex-start; }
.ent-block--bridal .ent-col.ent-role { gap: 0; }
.ent-doodle--orbits { width: 230px; }

/* Phone (Bea, 23 Nov): the whole collage kept, as one compact piece (photos at 72%, every doodle in its corner),
   so it shares the window with the hero's invitation as you scroll in. Names: everything centred in one column,
   like Parents, with each doodle between its groups */
@media (max-width: 809px) {
  .entourage { --ent-pad: 24px 24px 72px; }
  .ent-collage { width: 342px; max-width: 100%; margin-inline: auto; padding-bottom: 32px; }
  .ent-photos { width: 320px; height: 328px; margin-left: auto; margin-right: 0; }
  .ent-photo--kiss { right: 71px; width: 249px; height: 328px; border-left-width: 5px; }
  .ent-photo--veil { top: 81px; width: 144px; height: 167px; }
  .ent-poem { left: -8px; bottom: 40px; }
  .ent-star { left: -12px; top: -8px; width: 76px; }
  .ent-squiggle { left: auto; right: -12px; top: 24px; width: 96px; }
  .ent-dot { left: auto; right: -8px; top: auto; bottom: 8px; width: 52px; }
  .ent-content { gap: 40px; }
  /* Two columns stay side by side (Bea, 23 Nov); only the text is centred in each. Doodles drop under their row */
  .ent-row { flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px 16px; }
  .ent-col, .ent-col--start, .ent-col--end { width: calc(50% - 8px); align-items: center; text-align: center; }
  .ent-col--end .ent-role, .ent-role { align-items: center; }
  .ent-block--bridal { gap: 32px; }
  .ent-doodle { order: 3; margin: 0 auto; }
  .ent-doodle--sponsors { width: 96px; }
  .ent-doodle--orbits { width: 180px; }
  .ent-doodle--bridal { position: static; margin: 0 auto; width: 180px; }
}
ul.ent-col { gap: 0; }               /* sponsor lists are the column themselves */

/* ───────── 3 · Photo interlude (Framer ugSfRUk3J) ─────────
   A full-window photo with two "Dindi" quotes. Parallax in js/home.js: the photo is 120% tall and drifts
   from -10% to +10%; the quotes rise 60px and 100px (half on phone). */
.interlude {
  --il-inset: 20px; --il-top: 96px; --il-bottom: 48px; --il-w: 290px;
  --il-big: var(--type-lyric-big-size); --il-big-lh: 28px;   /* Lyric Big */
  position: relative; z-index: 1;
  height: 100vh; height: 100svh;
  overflow: clip;
  color: var(--color-off-white);
  background: var(--color-black);
}
/* Lyrics are the M style at desktop size everywhere now (Bea, 23 Nov), so the phone quotes get the width they need */
@media (max-width: 809px) { .interlude { --il-w: min(350px, calc(100% - 32px)); --il-inset: 16px; } }
@media (min-width: 810px) and (max-width: 1199px) { .interlude { --il-w: 400px !important; } }
@media (min-width: 810px) {
  .interlude { --il-inset: 48px; --il-top: 120px; --il-bottom: 64px; --il-w: 305px; --il-big-lh: 36px; }
}
.interlude__photo { position: absolute; left: 0; right: 0; top: -10%; height: 120%; will-change: translate; }
.interlude__photo img { width: 100%; height: 100%; object-fit: cover; }
.interlude__quote { position: absolute; z-index: 1; width: var(--il-w); margin: 0; text-align: center; will-change: translate; }
.interlude__quote--sky   { left: var(--il-inset); top: var(--il-top); }
.interlude__quote--dindi { right: var(--il-inset); bottom: var(--il-bottom); }
.interlude__big { font-size: var(--il-big); }
.interlude__big-lines { display: block; font-size: var(--il-big); line-height: var(--il-big-lh); padding-block: 6px 2px; }

/* ───────── 4 · Itinerary (Framer GAFszUvbV, component "Itinerary") ─────────
   A 100vh stage pinned for 280vh. js/home.js sets data-day (0–3) from the scroll position:
   Mar 10 for the first 60vh, Mar 12 for the next 80vh, Mar 13 for the next 80vh, then Mar 14.
   Desktop is Framer's layout, also on tablet (Bea, 9 Nov). Photos stay in the side margins (js/home.js: layoutItinMedia), so they never cover the table, arrows or Skip. */
.itin {
  --itin-bg: var(--color-burgundy); --itin-ui: var(--color-off-white); --itin-skip: var(--color-off-white);
  position: relative; z-index: 1;
  background: var(--itin-bg); color: var(--color-off-white);
  transition: background-color .7s var(--ease-out-quart);
}
.itin[data-day="1"] { --itin-bg: var(--color-rust);      --itin-ui: var(--color-black);     --itin-skip: var(--color-black); }
.itin[data-day="2"] { --itin-bg: var(--color-magenta);   --itin-ui: var(--color-off-white); --itin-skip: var(--color-mustard); }
.itin[data-day="3"] { --itin-bg: var(--color-chocolate); --itin-ui: var(--color-off-white); --itin-skip: var(--color-off-white); }
.itin__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip;
  display: flex; align-items: center; justify-content: center;
}
.itin__pin { height: 280vh; pointer-events: none; }
.itin__end { position: absolute; bottom: 0; left: 0; width: 1px; height: 1px; }

/* Photos and trinkets (Framer "Itinerary" component). They sit behind the table, like Framer, so text and
   buttons always stay on top. Each day's set comes in like Framer's variant switch: fade, rise 18px and grow
   from 95%, 0.68s, each on its own delay (--d); the old set goes the same way with no delay.
   --fit pieces (cut-out trinkets) are shown whole instead of cropped.
   Parallax (Bea, 9 Nov): while a day is up, its pieces drift a little with the scroll, each at its own depth.
   The drift rides on `transform`, separate from the entrance (`translate`, `scale`). */
.itin__media { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.itin__m {
  --ease-itin: cubic-bezier(.16, 1, .3, 1);
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h);
  object-fit: cover; rotate: var(--r, 0deg);
  opacity: 0; translate: 0 18px; scale: .95;
  transform: translate3d(0, calc(var(--p, 0) * var(--depth, 40) * -1px), 0);
  transition: opacity .68s var(--ease-itin), translate .68s var(--ease-itin), scale .68s var(--ease-itin);
}
.itin__m[data-day="0"] { --p: var(--pd0, 0); }
.itin__m[data-day="1"] { --p: var(--pd1, 0); }
.itin__m[data-day="2"] { --p: var(--pd2, 0); }
.itin__m[data-day="3"] { --p: var(--pd3, 0); }
.itin__m:nth-child(4n+1) { --depth: 34; }
.itin__m:nth-child(4n+2) { --depth: 58; }
.itin__m:nth-child(4n+3) { --depth: 26; }
.itin__m:nth-child(4n+4) { --depth: 46; }
.itin__m.itin__m--fit { object-fit: contain; --depth: 70; }
.itin[data-day="0"] .itin__m[data-day="0"], .itin[data-day="1"] .itin__m[data-day="1"],
.itin[data-day="2"] .itin__m[data-day="2"], .itin[data-day="3"] .itin__m[data-day="3"] {
  opacity: 1; translate: 0 0; scale: 1;
  transition-delay: var(--d, calc(.14s + var(--i) * .07s));
}
@media (prefers-reduced-motion: reduce) { .itin__m { transform: none; } }
.itin__media--narrow { display: none; }

.itin__content { position: relative; z-index: 1; width: min(66.7%, 1000px); display: flex; flex-direction: column; gap: 14px; }
.itin__header { display: flex; justify-content: space-between; align-items: flex-end; }
.itin__title { display: flex; align-items: flex-end; gap: 22px; }
.itin__title h2 { margin: 0; }
.itin__skip {
  display: inline-flex; align-items: center; gap: 8px; padding-bottom: 18px;
  color: var(--itin-skip); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px;
  transition: color .5s var(--ease-out-quart);
}
.itin__skip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.itin__progress { display: flex; align-items: center; gap: 14px; padding-bottom: 8px; color: var(--itin-ui); transition: color .5s var(--ease-out-quart); }
.itin__count { margin: 0; min-width: 4.5em; text-align: center; }
/* Arrows are the shared .arrow component (css/components.css); here they just take the itinerary's UI colour */
.itin__arrow { color: inherit; }

/* Table: four columns; the day you're on is filled black */
.itin__table { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--color-black); min-height: 400px; }
.itin__col {
  display: flex; flex-direction: column; min-width: 0;
  border-right: 1px solid var(--color-black); color: var(--color-black);
  transition: background-color .5s var(--ease-out-quart), color .5s var(--ease-out-quart);
}
.itin__col:last-child { border-right: 0; }
.itin[data-day="0"] .itin__col[data-day="0"], .itin[data-day="1"] .itin__col[data-day="1"],
.itin[data-day="2"] .itin__col[data-day="2"], .itin[data-day="3"] .itin__col[data-day="3"] {
  background: var(--color-black); color: var(--color-off-white);
}
.itin__day {
  width: 100%; padding: 24px 0; border: 0; border-bottom: 1px dotted currentColor;
  background: none; color: inherit; cursor: pointer; text-align: center;
}
.itin__icon { display: none; }
.itin__plans { flex: 1; padding: 16px 16px 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.itin__summary { display: none; margin: 0; }
.itin__events { display: flex; flex-direction: column; gap: var(--gap, 24px); }
.itin__event { display: flex; flex-direction: column; gap: 8px; }
.itin__event p, .itin__note { margin: 0; }
/* "Not sure when to fly out?": Sub (14px on desktop as before); Small on tablet (Bea, 23 Nov); Sub on phone */
.itin__note { padding-top: 12px; border-top: 1px dotted currentColor;
  font-family: var(--font-greenstone); font-style: italic; font-size: 14px; line-height: var(--type-sub-lh); }
@media (min-width: 810px) and (max-width: 1199px) {
  .itin__note { font-family: var(--font-favorit); font-style: normal; font-size: var(--type-small-size); line-height: var(--type-small-lh); }
}
@media (max-width: 809px) { .itin__note { font-size: var(--type-sub-size); } }

/* Scroll indicator (Bea, 23 Nov): a bar sitting on the table's bottom border that fills black as you scroll through
   the four days (--itin-p from js/home.js). The phone story view swaps it for four segments, one per day */
.itin__scrollbar { position: relative; order: 3; height: 4px; margin-top: -17px;   /* on the table's bottom border (Bea, 23 Nov) */ background: color-mix(in srgb, var(--color-black) 22%, transparent); z-index: 1; }
.itin__scrollbar-fill { position: absolute; inset: 0; background: var(--color-black); transform-origin: 0 50%; scale: var(--itin-p, 0) 1; }
.itin__count-date, .itin__pills { display: none; }

/* Day lines in script (Framer "Day name"), placed from the content box */
.itin__script {
  position: absolute; z-index: 3; margin: 0; white-space: nowrap; pointer-events: none;
  opacity: 0; translate: 0 12px; transition: opacity .3s var(--ease-standard), translate .3s var(--ease-standard);
}
.itin__script--1 { left: 28%;   top: calc(100% - 20px); color: var(--color-mustard); }
.itin__script--2 { left: -112px; top: calc(100% - 58px); color: #FF5036; }
.itin__script-narrow { display: none; }
.itin__script--3 { left: 43%;   top: calc(100% - 30px); color: var(--color-chartreuse); }
.itin[data-day="1"] .itin__script--1, .itin[data-day="2"] .itin__script--2, .itin[data-day="3"] .itin__script--3 {
  opacity: 1; translate: 0 0;
  transition: opacity .7s var(--ease-out-quart) .25s, translate .7s var(--ease-out-quart) .25s;
}

/* Phone (Bea, 23 Nov). Both views are pinned to the scroll like desktop, so every day is seen before the next section.
   Title centred. The table is ~58% of the window: rows, the day you're on grows open (flex-grow, so it expands rather
   than fades) while its one-line summary slides out and its plans rise in. Desktop's pieces for the day float around
   the page (absolute; js/home.js: layoutItinPhone finds spots that never cover any table text).
   "Day by day" shows one day as a card, with the arrows in its header. */
@media (max-width: 809px) {
  .itin__stage { align-items: stretch; flex-direction: column; padding: 76px 16px 16px; }
  .itin__media--narrow { display: none; }
  .itin__content { width: 100%; flex: 1; min-height: 0; gap: 12px; }
  /* Header: the title centred, then the arrows and the day centred under it */
  .itin__header { display: flex; flex-direction: column; align-items: center; gap: 8px; }
  .itin__title { justify-content: center; gap: 12px; }
  .itin__skip { padding-bottom: 6px; }
  .itin__progress { padding-bottom: 0; gap: 16px; }
  .itin__count { min-width: 5em; }
  .itin__scrollbar { margin-top: -15px; }
  .itin__table { display: flex; flex-direction: column; flex: none; height: clamp(360px, 50svh, 520px); min-height: 0; border-color: var(--color-off-white); }
  .itin__col {
    flex: 0 0 57px; min-height: 0; overflow: hidden; flex-direction: row;
    border-right: 0; border-bottom: 1px solid var(--color-off-white); color: var(--color-off-white);
    transition: flex-grow .6s var(--ease-out-quart), background-color .5s var(--ease-out-quart), color .5s var(--ease-out-quart);
  }
  .itin__col:last-child { border-bottom: 0; }
  .itin[data-day="0"] .itin__col[data-day="0"], .itin[data-day="1"] .itin__col[data-day="1"],
  .itin[data-day="2"] .itin__col[data-day="2"], .itin[data-day="3"] .itin__col[data-day="3"] { flex-grow: 1; }
  .itin__day {
    flex: none; width: auto; min-width: 116px; padding: 12px 10px; display: flex; align-items: flex-start; gap: 6px; text-align: left;
    border-bottom: 0; border-right: 1px solid var(--color-off-white);
  }
  .itin__icon { display: none; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }   /* table: no icons (Bea, 23 Nov) */
  .itin__day { min-width: 96px; }
  .itin__date span { display: block; white-space: nowrap; }
  .itin__plans { position: relative; min-width: 0; flex: 1; padding: 12px; justify-content: flex-start; overflow: hidden; }
  /* Collapsed: the summary. Open: it slides away and the plans rise in, one after another */
  .itin__col .itin__summary {
    display: block; position: absolute; left: 12px; right: 12px; top: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: opacity .3s var(--ease-out-quart) .15s, translate .45s var(--ease-out-quart) .15s;
  }
  .itin__col :is(.itin__event, .itin__note) { opacity: 0; translate: 0 14px; transition: opacity .25s var(--ease-out-quart), translate .25s var(--ease-out-quart); }
  .itin__col .itin__note { display: block; margin-top: auto; }
  .itin[data-day="0"] .itin__col[data-day="0"], .itin[data-day="1"] .itin__col[data-day="1"],
  .itin[data-day="2"] .itin__col[data-day="2"], .itin[data-day="3"] .itin__col[data-day="3"] {
    & .itin__summary { opacity: 0; translate: 0 -12px; transition-delay: 0s; transition-duration: .2s; }
    & :is(.itin__event, .itin__note) { opacity: 1; translate: 0 0; transition: opacity .5s var(--ease-out-quart), translate .6s var(--ease-out-quart); transition-delay: .22s; }
    & .itin__event:nth-child(2) { transition-delay: .32s; }
    & .itin__note { transition-delay: .42s; }
  }
  .itin__events { --gap: 16px !important; }
  /* Desktop's pieces float over the whole stage, placed by js (--mx/--my/--mw/--mh), never over table text */
  .itin__media--wide { display: block; z-index: 2; }
  .itin__media--wide .itin__m { left: var(--mx, -999px); top: var(--my, 0px); width: var(--mw, 0px); height: var(--mh, 0px); object-fit: contain; transform: none; }
  .itin.is-measuring, .itin.is-measuring * { transition: none !important; animation: none !important; }
  /* Day lines sit centred just under the table */
  .itin__script { left: 0; right: 0; top: var(--script-top, auto); bottom: auto; text-align: center; white-space: normal; z-index: 3; }   /* Day Line style: 48 on phone */
  .itin__script-wide { display: none; }
  .itin__script-narrow { display: inline; }

  /* Day by day (Bea, 23 Nov): like an Instagram story. No arrows; four pills run the full width of the card's header,
     above the icon and date, filled up to the day you're on. Tap the left third for back, anywhere else for next */
  .itin[data-view="story"] .itin__progress, .itin[data-view="story"] .itin__scrollbar { display: none; }
  .itin[data-view="story"] .itin__pills { display: flex; gap: 4px; align-self: stretch; margin-bottom: 4px; }
  .itin__pill { flex: 1; height: 3px; border-radius: 2px; background: color-mix(in srgb, var(--color-off-white) 30%, transparent); transition: background-color .35s var(--ease-standard); }
  .itin[data-day="0"] .itin__pill[data-day="0"],
  .itin[data-day="1"] .itin__pill:is([data-day="0"], [data-day="1"]),
  .itin[data-day="2"] .itin__pill:not([data-day="3"]),
  .itin[data-day="3"] .itin__pill { background: var(--color-off-white); }
  .itin[data-view="story"] .itin__table { border: 0; cursor: pointer; user-select: none; }
  .itin[data-view="story"] .itin__col { display: none; flex: 1 1 auto; flex-direction: column; border: 1px solid var(--color-off-white); }
  .itin[data-view="story"][data-day="0"] .itin__col[data-day="0"], .itin[data-view="story"][data-day="1"] .itin__col[data-day="1"],
  .itin[data-view="story"][data-day="2"] .itin__col[data-day="2"], .itin[data-view="story"][data-day="3"] .itin__col[data-day="3"] { display: flex; animation: itin-card .5s var(--ease-out-quart); }
  @keyframes itin-card { from { opacity: 0; translate: 24px 0; } }
  .itin[data-view="story"] .itin__day { flex-direction: column; align-items: center; gap: 12px; padding: 12px 12px 20px; border-right: 0; border-bottom: 1px dotted currentColor; text-align: center; pointer-events: none; }
  .itin[data-view="story"] .itin__icon { display: block; width: 40px; height: 40px; }
  .itin[data-view="story"] .itin__date { display: flex; gap: .5em; }
  .itin[data-view="story"] .itin__plans { padding: 24px 20px; text-align: center; align-items: center; }
  .itin[data-view="story"] .itin__summary { display: none; }
  .itin[data-view="story"] .itin__events { --gap: 28px !important; align-items: center; }
  .itin[data-view="story"] .itin__event { align-items: center; }
  .itin[data-view="story"] .itin__event .t-default { font-size: var(--type-title-size); line-height: 1.3; }
}
/* Tablet: the desktop table, a little wider so the four columns have room; photos shrink into the margins (or go above/below on tall screens) */
@media (min-width: 810px) and (max-width: 1199px) {
  .itin__content { width: 70%; }
  .itin__plans { padding: 12px 12px 16px; }
  .itin__day { padding: 18px 0; }
}


/* Invitation names (Bea, 8 Nov): Greenstone "Names" style (.t-names) in both versions, "Ana Beatriz Venezuela" */
.hero__line--name { padding-block: 2px 6px; }
.hero__line--small:first-child { margin-bottom: 10px; }
/* Kept clear of the lifted photo by js/home.js (measureLift): moved down (--inv-y), then names shrunk (--inv-s) */
.hero__invite { translate: 0 var(--inv-y, 0px); }
.hero__invite .t-names { font-size: calc(var(--type-names-size) * var(--inv-s, 1)); }

/* ───────── 5 · The waters of March (Framer M0cVeDBmw) ─────────
   Canvas: the collage is laid out at Framer's 1200 wide (phone 390), 1910 × 2060 tall: Framer's 1620 / 2000 plus room for
   the Default-size write-up and the Spotify player, so neither runs into the stage (Bea, 9 Nov). Scaled to the window
   by js/home.js (--s). Section = collage + 100vh pinned stage + pin length (1080px; phone 800px). */
.wom {
  --s: 1;
  /* --dawn (0 → 1) and --til (0 → 1) are scrubbed by js/home.js at the end of the section (Bea, 23 Nov) */
  --wom-bg: color-mix(in srgb, var(--color-chocolate), var(--color-black) calc(var(--dawn, 0) * 100%));
  --wom-ink: color-mix(in srgb, var(--color-black), var(--color-sand) calc(var(--dawn, 0) * 100%));
  --wom-pin: 1080px;
  position: relative; z-index: 1;
  background: var(--wom-bg); color: var(--color-off-white);
  overflow: clip;
}
@media (max-width: 809px) { .wom { --wom-pin: 800px; } }

/* Lyrics: one column behind everything, the full height of the section.
   Parking (Bea, 23 Nov: parked lines still bobbed up and down against the photo while scrolling): the column is
   sticky, so once the song's last line reaches the photo the browser holds it there itself, in step with the
   pinned stage, rather than a script nudging it a frame late. js/home.js sets the sticky top (where it parks), the
   layer's bottom (so it lets go exactly when the stage does) and margin-top (the lag before it parks). */
.wom__lyrics { position: absolute; inset: 0; z-index: 1; overflow: clip; pointer-events: none; }
.wom__lyrics-col {
  position: sticky; top: -100000px; width: 1200px; margin-left: calc(50% - 600px);
  padding: 120px 100px 0;
  display: flex; flex-direction: column; gap: 20px;
  transform-origin: 50% 0; scale: var(--s);
}
/* Lyric Big, as in the Dindi interlude (Bea, 23 Nov): the same size on screen as Dindi's big lines; the column is
   scaled by --s, so the size is divided by it */
.wom__big { font-size: calc(var(--type-lyric-big-size) / var(--s, 1)); line-height: var(--type-lyric-big-lh); }
.wom__line.is-off { opacity: 0 !important; transition: opacity .35s var(--ease-standard); }   /* phone: never under the write-up (js/home.js) */
.wom__line {
  margin: 0; white-space: nowrap;
  /* Indents in fixed canvas px (one step = a Greenstone 32px space), so the wave keeps its shape in any font */
  padding-left: calc(var(--in, 0) * 3.776px);
  /* Lyrics text style (tokens.json): 44px on desktop and tablet (the column is scaled), 22px on phone */
  font-family: var(--font-poetry-night); font-style: normal; font-size: var(--type-lyrics-size); line-height: var(--type-lyrics-lh);
  font-feature-settings: "blwf", "cv03", "cv04", "cv09", "cv11";
  color: var(--color-brick); opacity: .72;
  will-change: translate, opacity;
}

/* Collage canvas */
.wom__comp-layer { position: absolute; left: 0; right: 0; top: 0; z-index: 2; pointer-events: none; }
.wom__comp-wrap { position: sticky; top: var(--wom-comp-stick, -100000px); height: calc(1640px * var(--s)); pointer-events: none; }
.wom__comp-space { height: calc(1640px * var(--s)); }   /* 1910 until the photos moved up (Bea, 23 Nov) */
.wom__comp {
  position: absolute; top: 0; left: 50%; width: 1200px; height: 1640px; margin-left: -600px;
  transform-origin: 50% 0; scale: var(--s);
}
.wom__comp > * { position: absolute; left: var(--x); top: var(--y); width: var(--w); margin: 0; }
.wom__i { height: var(--h); object-fit: cover; will-change: translate; }
.wom__i.is-cutout { object-fit: contain; }
/* The sunblock hand is cut off at its right edge: keep that edge on the window's right edge at any width */
.wom__i--sunblock { left: calc(var(--x) + var(--wom-edge, 0px)); object-position: right center; }
.wom__title { text-align: right; font-size: 64px;   /* Section, desktop size: the canvas is scaled as a whole */ color: var(--color-off-white); will-change: translate; }
.wom__about {
  padding: 4px 0 8px 12px; color: var(--color-off-white);
  /* Default text style (Bea, 9 Nov): desktop size in canvas units, so it scales with the collage */
  font-family: var(--font-greenstone); font-size: 24px; line-height: 1.4; text-align: justify;   /* Default, desktop size (scaled canvas) */
}
.wom__about p { margin: 0; }
.wom__about ol { margin: 0; padding-left: 24px; list-style: none; counter-reset: wom; }
.wom__about li { position: relative; counter-increment: wom; }
.wom__about li::before {
  content: counter(wom) "."; position: absolute; left: -24px;
  font-family: var(--font-redward-mono); font-weight: 800; font-variation-settings: "wght" 800, "slnt" 0; font-size: 16px; letter-spacing: .1em;   /* Red Eye Thick */
}
.wom__about b { font-size: 16px; }   /* Red Eye Thick (it has the class; this pins it in the scaled canvas) */
.wom__play { color: var(--color-off-white); line-height: 1; white-space: nowrap; }   /* one line, above the player (Bea, 23 Nov) */
.wom__spotify { height: var(--h); pointer-events: auto; box-shadow: 0 18px 40px -24px rgba(30, 28, 26, .55); border-radius: 12px; overflow: hidden; }
.wom__spotify iframe { display: block; border: 0; border-radius: 12px; }

/* Pinned stage */
.wom__stage {
  position: sticky; top: 0; z-index: 6; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 14px;
  padding-bottom: 96px; pointer-events: none;
}
.wom__pin { height: var(--wom-pin); pointer-events: none; }
.wom__cutoff { position: absolute; left: 0; right: 0; bottom: 0; height: 236px; }
.wom__cutoff--dusk { background: linear-gradient(180deg, rgba(78, 42, 36, 0) 0%, rgba(78, 42, 36, 1) 40%); }
.wom__cutoff--dawn { background: linear-gradient(180deg, rgba(30, 28, 26, 0) 0%, rgba(30, 28, 26, 1) 40%); opacity: var(--dawn, 0); }
.wom__cutoff--dusk { opacity: calc(1 - var(--dawn, 0)); }
/* The photo shrinks on short windows so the song's last lines have room to park above it */
.wom__photos { position: relative; z-index: 1; height: clamp(280px, calc(100svh - 400px), 467px); aspect-ratio: 1 / 2; flex: none; background: var(--color-off-white); }
/* Hummingbird stamp (Bea, 23 Nov): the collage's last piece, held with the photo to the end. Small, just left of the
   photo (the same 32px gap as the lyrics on the right), level with its middle; % here are of the photo's width */
.wom__stamp { position: absolute; top: 50%; right: calc(100% + 32px); width: 42%; height: auto; max-width: none; translate: 0 -50%; pointer-events: none; }
@media (max-width: 809px) { .wom__stamp { display: none; } }   /* phone: no room beside the photo */
.wom__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wom__photo--night { opacity: var(--dawn, 0); }
.wom__from, .wom__row { position: relative; z-index: 1; margin: 0; color: var(--wom-ink); }
.wom__row { display: flex; align-items: flex-start; gap: 12px; height: 64px; }
.wom__end { width: 96px; padding-top: 37px; }
.wom__end--dusk { text-align: right; }
.wom__track { position: relative; width: 350px; height: 64px; }
.wom__track::after { content: ""; position: absolute; left: 0; right: 0; top: 44px; height: 1.5px; background: currentColor; opacity: .55; }
/* "til" sits over the start of the line and slides 310px along it at dawn */
.wom__til { position: absolute; left: 0; top: 6px; translate: calc(var(--til, 0) * var(--til-run, 310px)) 0; }

/* Phone (Bea, 23 Nov): the collage breaks into parts in reading order: title, intro, the player, the two photos,
   point 1, the first cluster, point 2, the second cluster, point 3, then the lyrics. One 390px column (shrunk only on
   narrower phones), a grid with one row per part; pieces in a cluster overlap in their row, placed by --pl / --pt,
   and each row is as tall as what's in it. Text is the phone Default style, never scaled up on wide phones. */
@media (max-width: 809px) {
  .wom__comp-wrap, .wom__comp-space { height: var(--comp-h, 2060px); }
  .wom__comp {
    left: 50%; width: 390px; height: auto; margin-left: -195px; padding: 96px 0 24px;
    display: grid; grid-template-columns: 390px; align-items: start; row-gap: 24px;
  }
  .wom__comp > *, .wom__about > p, .wom__about li {
    position: relative; left: auto; top: auto; grid-column: 1; grid-row: var(--pr);
    justify-self: start; width: var(--pw); margin: var(--pt, 0) 0 0 var(--pl, 0);
  }
  .wom__about, .wom__about ol { display: contents; }
  .wom__i, .wom__spotify { height: var(--ph); }
  .wom__i--sunblock { left: auto; margin-left: calc(var(--pl) + var(--wom-edge, 0px)); }
  .wom__title { font-size: var(--type-section-size); line-height: 1; }
  .wom__about > p, .wom__about li { --pl: 24px; --pw: 342px; padding: 0; font-size: var(--type-default-size); line-height: var(--type-default-lh); text-align: left; }
  /* Order (Bea, 23 Nov): title, intro, the two photos, point 1, the player, point 2, cluster 2, point 3, cluster 3.
     Title and intro centred like the points */
  .wom__intro { --pr: 2; text-align: center !important; }
  .wom__title { text-align: center; }
  .wom__pt--1 { --pr: 4; } .wom__pt--2 { --pr: 6; } .wom__pt--3 { --pr: 8; }
  /* Points (Bea, 23 Nov): not a list on phone. The number, the label and the text stacked and centred */
  .wom__about li { padding-left: 0 !important; --pw: 342px; text-align: center; }
  .wom__about li::before { position: static; display: block; margin-bottom: 8px; font-size: var(--type-red-eye-thick-size); }
  .wom__about li b { display: block; margin-bottom: 4px; }
  .wom__pt--1::before { content: "1" !important; } .wom__pt--2::before { content: "2" !important; } .wom__pt--3::before { content: "3" !important; }
  
  .wom__play { white-space: normal; line-height: 1.3; }
  .wom__lyrics-col { width: 390px; margin-left: calc(50% - 195px); padding: 0 16px; gap: 12px; }
  .wom__line { padding-left: calc(var(--in, 0) * 2.596px); }   /* a Greenstone 22px space */
  /* The stage photo is much bigger on phone, as tall as the window allows */
  .wom__stage { padding-bottom: 40px; gap: 12px; }
  /* Smaller than before (Bea, 23 Nov) so the song's last lines, set big above it, stay the focus at the end */
  .wom__photos { height: clamp(280px, calc(100svh - 480px), 440px); }
  .wom__line.is-end { white-space: normal; text-align: center; font-size: var(--type-script-title-size); line-height: 1.05; color: var(--color-brick); opacity: 1 !important; }
  .wom__row { gap: 8px; }
  .wom__end { width: 64px; }
  .wom__track { width: 180px; --til-run: 150px; }
}

/* ───────── 6 · Attire (Framer q4T3pdLOa, component "Attire") ─────────
   Binoculars like a View-Master. Each lens is a 920px reel holding one 400px panel per day at 0°, 120° and 240°;
   the reel turns −120° per day (0.55s, ease-out-quart; the right lens 0.03s after the left, like one lever).
   Desktop is Framer's 1200 × 1000 layout; tablet scales the binoculars to 82% with the swatches in a row under them;
   phone stacks the lenses (76% on Framer's phone frame). */
.att {
  position: relative; z-index: 1; overflow-x: clip;
  padding: 72px 16px 56px;
  background: var(--color-black); color: var(--color-off-white);
}
.att__header, .att__stage, .att__notes { position: relative; width: min(1200px, 100%); margin-inline: auto; }
/* Header (Bea, 23 Nov): centred stack. Date eyebrow, the day's event as the title, step dots, save button.
   Gaps on the 8px grid. The three days' dates share one grid cell, so the header doesn't jump between days. */
.att__header { display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 12px; }
.att__dates { display: grid; width: 100%; }
.att__date {
  grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; gap: 0;   /* eyebrow → title 0 */
  opacity: 0; transition: opacity .3s var(--ease-standard);
}
.att__date p { margin: 0; }
.att__steps { display: flex; justify-content: center; width: fit-content; margin: 8px auto 0; }   /* under the binoculars (Bea, 23 Nov) */
/* Desktop and tablet (Bea, 23 Nov): download button → lenses 24 and captions → stepper 8, exactly.
   The lenses start 21px into the zoomed stage and the full-size captions (40px tags) end 40px below 421px × zoom,
   with the stage 464px × zoom tall, so these margins take up the difference (they can go negative) */
@media (min-width: 810px) {
  .att__header { padding-bottom: 0; margin-bottom: calc(24px - 21px * var(--att-k)); }
  .att__steps { margin-top: calc(24px - (464px - 439px) * var(--att-k)); }   /* lens bottom (439 × zoom) → stepper 24 */
}
/* Download button is the shared .tag component, the same as the lens captions (Bea, 23 Nov) */
.att__save { margin-top: 16px; gap: 8px; padding-left: 12px; text-decoration: none; }   /* a download link (Bea, 24 Nov) */
.att__save:hover { background: color-mix(in srgb, var(--color-off-white) 12%, transparent); }
.att__save svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.att__step { height: 24px; padding: 0 2px; border: 0; background: none; display: flex; align-items: center; cursor: pointer; }
.att__step span { display: block; width: 8px; height: 6px; border-radius: 3px; background: var(--color-off-white); opacity: .3; transition: width .35s var(--ease-out-quart), opacity .35s var(--ease-out-quart); }

/* Binoculars: two rings and two lenses cut straight where they meet */
.att__stage { height: 464px; }   /* lenses end at 439, captions at ~459 */
.att__binoculars { position: absolute; left: 50%; top: 21px; width: 784px; height: 418px; margin-left: -392px; }
.att__ring { position: absolute; top: 0; width: 392px; height: 418px; overflow: clip; }
.att__ring--left { left: 0; }
.att__ring--right { left: 392px; }
.att__ring span { position: absolute; top: 0; width: 418px; height: 418px; border: 2.5px solid var(--att-ring); border-radius: 50%; transition: border-color .4s var(--ease-standard); }
/* Ring colour per day (Framer): Sand, Mustard, Brick */
.att { --att-ring: var(--color-sand); }
.att[data-day="1"] { --att-ring: var(--color-mustard); }
.att[data-day="2"] { --att-ring: var(--color-brick); }
.att__ring--left span { left: 0; }
.att__ring--right span { left: -26px; }
.att__lens { position: absolute; top: 9px; width: 383px; height: 400px; overflow: clip; }
.att__lens--ladies { left: 9px; }
.att__lens--gents { left: 392px; }
.att__circle {
  position: absolute; top: 0; left: 0; width: 400px; height: 400px; border-radius: 50%; overflow: hidden;
  background: var(--color-charcoal); isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.att__lens--gents .att__circle { left: -17px; }
.att__reel {
  position: absolute; left: -260px; top: 0; width: 920px; height: 920px; transform-origin: 460px 460px;
  transition: rotate .55s var(--ease-out-quart);
}
.att__lens--gents .att__reel { transition-delay: .03s; }
/* --turn counts every step (it keeps going past Mar 13 back round to Mar 10), so the reel always turns the way you clicked */
.att__reel { rotate: calc(var(--turn, 0) * -120deg); }
.att__panel { position: absolute; width: 400px; height: 400px; overflow: clip; background: var(--color-charcoal); transition: background-color .4s var(--ease-standard); }
/* Each day's panel takes its colour when it's the one showing (Framer: the others are charcoal) */
.att[data-day="0"] .att__panel--0 { background: var(--color-mustard); }
.att[data-day="1"] .att__panel--1 { background: var(--color-ikb); }
.att[data-day="2"] .att__panel--2 { background: var(--color-dusty-rose); }
.att__panel--0 { left: 260px; top: 0; }
.att__panel--1 { left: 485.17px; top: 390px; rotate: 120deg; }
.att__panel--2 { left: 34.83px; top: 390px; rotate: 240deg; }
.att__panel img { position: absolute; max-width: none; object-fit: contain; }
.att__bridge { position: absolute; left: 390.5px; top: 126.3px; width: 3px; height: 165.4px; background: var(--color-black); }
/* Arrows are the shared .arrow component (css/components.css), the same as the itinerary's.
   On desktop and tablet the stage is zoomed to fit (--att-k), so the arrows undo that zoom to stay 44px
   and are placed by the zoomed lens centre (y 230, x ±458 from the middle) */
.att__arrow { position: absolute; z-index: 2; }
@media (min-width: 810px) {
  .att { --att-k: var(--att-z, 1); }
  .att__arrow { zoom: calc(1 / var(--att-k)); top: calc(230px * var(--att-k) - 22px); }
  .att__arrow--prev { left: calc(50% - 458px * var(--att-k) - 22px); }
  .att__arrow--next { left: calc(50% + 458px * var(--att-k) - 22px); }
}
@media (min-width: 1200px) { .att { --att-k: var(--att-fit, 1); } }

/* Colour swatches around the binoculars (Framer "Colour dot": large 56px, medium 44px) */
.att__dot {
  position: absolute; z-index: 1;               /* placed by Framer's own anchors, inline */
  display: flex; flex-direction: column; align-items: center; gap: 8px; width: max-content;
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease-standard);
}
/* All swatches 56px with no outline, scattered loosely (Bea, 16 Nov: like confetti, not in pairs) */
.att__swatch { display: block; width: 56px; height: 56px; border-radius: 50%; background: var(--c); }
.att__dot-label { line-height: 1; }
.att__dot-hex { margin-top: -2px; opacity: .7; }

/* Notes for the day */
.att__notes { height: 228px; }
.att__note {
  position: absolute; left: 0; right: 0; top: 28px; display: flex; justify-content: center; gap: 32px;
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease-standard);
}
.att__list { width: 440px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; text-align: center; }
.att__roles { width: 360px; padding-left: 32px; border-left: 1px solid var(--color-charcoal); display: flex; flex-direction: column; gap: 10px; }
.att__roles p { margin: 0; }
.att__roles b { font-weight: 500; }

/* The day you're on */
.att[data-day="0"] :is(.att__date, .att__note, .att__dot, .att__caption)[data-day="0"],
.att[data-day="1"] :is(.att__date, .att__note, .att__dot, .att__caption)[data-day="1"],
.att[data-day="2"] :is(.att__date, .att__note, .att__dot, .att__caption)[data-day="2"] { opacity: 1; pointer-events: auto; transition-delay: .2s; }
.att[data-day="0"] .att__step[data-go="0"] span, .att[data-day="1"] .att__step[data-go="1"] span, .att[data-day="2"] .att__step[data-go="2"] span { width: 22px; opacity: 1; }

/* Entrance: binoculars fade up, then everything else is already there */
.att__binoculars[data-reveal] { --rise: 16px; --rv-dur: .6s; }

.att__confetti { display: none; }
@media (min-width: 810px) { .att__confetti { display: block; } }

/* Desktop (Bea, 23 Nov): everything in the Dress Code fits in the window. Less empty space under the notes,
   and the binoculars stage is scaled as one piece to the height that's left (js/home.js sets --att-fit) */
@media (min-width: 1200px) {
  /* Top: 112px navbar + 24px, so the navbar never covers the date. Bottom: the same, so the section ends as calmly as it starts (Bea, 23 Nov) */
  .att { padding-top: 136px; padding-bottom: 136px; }
  /* Notes stack in one grid cell, so the area is as tall as the longest day's note */
  .att__notes { height: auto; display: grid; }
  .att__note { position: static; grid-area: 1 / 1; padding-top: 24px; }
  .att__stage { zoom: var(--att-fit, 1); }

}
/* Swatches, desktop and tablet (Bea, 23 Nov): all one size, scattered across the side gutters of the whole section.
   The gutter runs from 16px in from the edge to 8px short of the binoculars' rings (392px x --att-k from the middle;
   the arrows only sit in the middle band, which the swatches keep out of). It never gets narrower than one swatch,
   so --gx (0 outer edge → 1 inner) always gives a zig-zag, never a vertical line, at any width. --y: % of height */
@media (min-width: 810px) {
  .att__stage .att__dot { display: none; }
  .att__confetti {
    --s: 64px;
    --gut: max(var(--s), calc(50% - 392px * var(--att-k) - 8px - 16px - var(--s)));
    position: absolute; inset: 0; pointer-events: none;
  }
  .att__confetti .att__dot { top: var(--y); translate: 0 -50%; }
  .att__confetti .att__dot--left { left: calc(16px + var(--gut) * var(--gx)); }
  .att__confetti .att__dot--right { right: calc(16px + var(--gut) * var(--gx)); }
  .att__confetti .att__swatch { width: var(--s); height: var(--s); }
}
@media (min-width: 1200px) { .att__confetti { --s: clamp(80px, 7.5vw, 120px); } }

/* Tablet (Bea, 9 Nov): Framer's desktop stage, swatches in their Framer places, scaled down as one piece to fit
   (js/home.js sets --att-z = window width / 1200). The header is the same centred stack as desktop. */
@media (min-width: 810px) and (max-width: 1199px) {
  .att { padding-bottom: 72px; }   /* bottom = top (Bea, 23 Nov) */
  .att__stage { width: 1200px; zoom: var(--att-z, 1); }
  .att__notes { height: auto; display: grid; }
  .att__note { position: static; grid-area: 1 / 1; padding-top: 24px; flex-wrap: wrap; }
}
/* Phone (Bea, 23 Nov): the binoculars are the focal point, so the stacked lenses are as big as the window allows
   with the whole section still on screen (js/home.js sets --att-ps, 53% to 86% of Framer's 400px lens). Swatches float
   in the side gutters (absolute, so they never push the content), captions sit on the top and bottom lens. */
@media (max-width: 809px) {
  .att { padding-top: 24px; padding-bottom: 32px; }
  .att__header { padding-bottom: 8px; }
  .att__save { margin-top: 8px; }
  .att__caption { display: none; }   /* Bea, 23 Nov: no lens captions on phone */
  .att__stage { --ps: var(--att-ps, .53); height: calc(784px * var(--ps) + 8px); }
  /* Centred with the negative margin (translate is the entrance's); turned 90° about its centre, each lens turned back */
  .att__binoculars { left: 50%; top: calc(392px * var(--ps) - 209px); rotate: 90deg; scale: var(--ps); transform-origin: 50% 50%; }
  .att__circle { rotate: -90deg; }
  .att__arrow { top: calc(392px * var(--ps) - 22px); }
  /* Arrows tucked right beside the binoculars' waist, where the two lenses meet (Bea, 23 Nov) */
  .att__arrow--prev { left: calc(50% - 209px * var(--ps) * .66 - 52px); }
  .att__arrow--next { left: calc(50% + 209px * var(--ps) * .66 + 8px); right: auto; }
  .att__dot { position: absolute; z-index: 1; opacity: 1; pointer-events: auto; }
  .att__dot .att__swatch { width: 48px; height: 48px; }   /* Bea, 23 Nov: 32 was too small */
  .att[data-day="0"] .att__dot:not([data-day="0"]), .att[data-day="1"] .att__dot, .att[data-day="2"] .att__dot:not([data-day="2"]) { display: none; }
  /* Slots in the gutters beside the lenses, zig-zagging left and right, clear of the arrows in the middle */
  .att__stage .att__dot { top: var(--sy) !important; left: var(--sx, auto) !important; right: var(--sr, auto); translate: 0 -50%; }   /* over the Framer spots inline */
  .att__stage .att__dot[data-slot="0"] { --sy: 5%;  --sx: 2px; }
  .att__stage .att__dot[data-slot="1"] { --sy: 13%; --sr: 2px; }
  .att__stage .att__dot[data-slot="2"] { --sy: 24%; --sx: 6px; }
  .att__stage .att__dot[data-slot="3"] { --sy: 33%; --sr: 6px; }
  .att__stage .att__dot[data-slot="4"] { --sy: 67%; --sx: 4px; }
  .att__stage .att__dot[data-slot="5"] { --sy: 76%; --sr: 2px; }
  .att__stage .att__dot[data-slot="6"] { --sy: 88%; --sx: 8px; }
  .att__stage .att__dot[data-slot="7"] { --sy: 96%; --sr: 8px; }
  .att__steps { margin-top: 12px; }
  .att__notes { height: auto; display: grid; }
  .att__note { position: static; grid-area: 1 / 1; padding-top: 12px; flex-wrap: wrap; }
  .att__list, .att__roles { width: 100%; text-align: center; }
  .att__roles { border-left: 0; padding-left: 0; border-top: 1px solid var(--color-charcoal); padding-top: 16px; }
}
/* Swatch boxes hug their content (Framer's are auto-width), and beige is placed from the bottom right as in Framer */

/* Swatch pop (Bea, 9 Nov): each colour springs up from nothing, one after another (--k from js/home.js),
   when its day comes in and once the binoculars have revealed; labels follow just behind */
.att__swatch { scale: 0; transition: scale .2s var(--ease-standard); }
.att__dot-label, .att__dot-hex { opacity: 0; translate: 0 6px; transition: opacity .2s var(--ease-standard), translate .2s var(--ease-standard); }
.att:has(.att__binoculars.is-in)[data-day="0"] .att__dot[data-day="0"],
.att:has(.att__binoculars.is-in)[data-day="1"] .att__dot[data-day="1"],
.att:has(.att__binoculars.is-in)[data-day="2"] .att__dot[data-day="2"] {
  & .att__swatch { scale: 1; transition: scale .55s cubic-bezier(.34, 1.6, .5, 1) calc(.3s + var(--k, 0) * .06s); }
  & :is(.att__dot-label, .att__dot-hex) { opacity: var(--o, 1); translate: 0 0; transition: opacity .4s var(--ease-out-quart) calc(.42s + var(--k, 0) * .06s), translate .4s var(--ease-out-quart) calc(.42s + var(--k, 0) * .06s); }
}
.att__dot-hex { --o: .7; }
@media (prefers-reduced-motion: reduce) { .att__swatch { scale: 1 !important; } .att__dot-label, .att__dot-hex { opacity: 1 !important; translate: none !important; } }

/* The day's panel sits above its neighbours so their corners never show in the lens */
.att[data-day="0"] .att__panel--0, .att[data-day="1"] .att__panel--1, .att[data-day="2"] .att__panel--2 { z-index: 1; }

/* ───────── 7 · Reminders (was FAQs) + Things to come (Framer duWDMiwbF) ───────── */
.reminders { position: relative; z-index: 1; padding-bottom: 48px; background: var(--color-sand); color: var(--color-black); }

/* Poster */
.reminders__poster { position: relative; height: 100vh; height: 100svh; overflow: clip; }
.reminders__photo { position: absolute; inset: 0; }
.reminders__photo img { width: 100%; height: 100%; object-fit: cover; }
.reminders__poster-title {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); z-index: 1; margin: 0;
  font-family: var(--font-poetry-night); font-weight: 400; font-size: var(--type-poster-size); line-height: var(--type-poster-lh); text-align: center;   /* Poster */
  font-feature-settings: "blwf", "cv03", "cv04", "cv09", "cv11";
  color: var(--color-chartreuse);
}
/* Poetry Night has no accented letters: Framer sets these two in Liesel Printed */
.reminders__accent { font-family: var(--font-liesel-printed); font-style: normal; }
/* "20" pinned to the photo's top-left corner, "27" to its bottom-right (sizes from Framer: 136 / 88 / 40px) */
.reminders__year {
  position: absolute; z-index: 2; margin: 0; pointer-events: none;
  font-family: var(--font-poetry-night); font-weight: 400; font-size: var(--type-year-size); line-height: 1;   /* Year */
  font-feature-settings: "blwf", "cv03", "cv04", "cv09", "cv11"; color: var(--color-chartreuse);
}
/* Mirrored (Bea, 23 Nov): the visible ink of "20" and "27" sits exactly --year-inset from its corner. Poetry Night's
   glyphs don't fill their text box evenly, so each side is corrected by the ink offset measured in em (any size) */
.reminders__year--20 { left: calc(var(--year-inset) + .093em); top: calc(var(--year-inset) - .178em); }
.reminders__year--27 { right: calc(var(--year-inset) + .181em); bottom: calc(var(--year-inset) - .136em); }
.reminders__poster { --year-inset: 24px; }

/* Reminders */
.reminders__reminders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px; max-width: 1240px; margin: 0 auto; padding: 88px 72px 120px; }
.reminders__reminder { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.reminders__rtext { display: flex; flex-direction: column; gap: 16px; }
.reminders__message { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.reminders__reminder p { margin: 0; }
.reminders__icon { width: auto; height: 72px; }
.reminders__icon--tall { height: 80px; margin-top: -8px; }   /* shell and orchid read short next to the martini; grows upward so titles stay level */
.reminders__icon--orchid { filter: saturate(.7) contrast(.85) brightness(1.3); }   /* tone the orchid down to the martini and shell */
.reminders__rtitle { margin: 0; font-family: var(--font-poetry-night); font-weight: 400; font-size: var(--type-script-title-size); line-height: .85;   /* Script Title (was 48px by hand) */ font-feature-settings: "blwf", "cv03", "cv04", "cv09", "cv11"; }
.reminders__apps { display: flex; flex-wrap: wrap; gap: 4px; }
.reminders__app { height: 36px; padding: 0 16px; display: inline-flex; align-items: center; border: 1px solid var(--color-black); border-radius: 999px; color: var(--color-black); text-decoration: none; }
.reminders__app:hover { background: color-mix(in srgb, var(--color-black) 8%, transparent); }

/* Things to come: Framer's 1128 × 900 composition, scaled down on tablet (--tcs, js/home.js) */
.tc {
  position: relative; left: 50%; width: 1128px; height: 900px; margin-left: -564px;
  transform-origin: 50% 0; scale: var(--tcs, 1); margin-bottom: calc(900px * (var(--tcs, 1) - 1));
}
.tc__bg { position: absolute; inset: 0; border-radius: 16px; overflow: hidden; }
.tc__bg img { position: absolute; left: 0; top: -40px; width: 100%; height: calc(100% + 40px); object-fit: cover; }
.tc__piece { position: absolute; will-change: translate; }
/* Lyric above the card, white like the Dindi interlude */
.tc__lyric { position: absolute; z-index: 7; left: 464px; top: 96px; margin: 0; white-space: nowrap; text-align: left; color: var(--color-off-white); pointer-events: none; text-shadow: 0 1px 12px rgba(20, 16, 12, .35); }
.tc__lyric p { margin: 0; }
.tc__lyric-en { margin-top: 0; padding-left: 64px; }   /* ends inside the card's right edge (796px) */   /* English couplet indented under the Portuguese (Bea, 23 Nov) */
.tc__lyric-big { font-size: var(--type-lyric-big-size); line-height: var(--type-lyric-big-lh); }   /* Lyric Big */
@media (hover: hover) { .tc__piece { cursor: grab; } .tc__piece.is-dragging { cursor: grabbing; } }
.tc__piece.is-dragging > * { filter: drop-shadow(0 18px 24px rgba(30, 28, 26, .28)); }
.tc__card-wrap { left: 296px; top: 248px; z-index: 6; }   /* layout and stacking: Bea's arrangement, 17 Nov */
.tc__mat-wrap { z-index: 1; }
/* Framer 15 Nov. The tops allow for the parallax drift (data-par × ~0.5 when the section fills the window),
   so pieces land on Framer's spots: angpao 133/47, faces mat 741/360, stamps 626/113, 913/679, 67/572. */
.tc__angpao-wrap { left: 759px; top: 473px; z-index: 5; }   /* tucked behind the card's bottom-right corner */
.tc__mat-wrap { left: 37px; top: 148px; }
.tc__stamp--1 { left: 259px; top: 144px; z-index: 2; }
.tc__stamp--2 { left: 258px; top: 285px; z-index: 4; }
.tc__stamp--3 { left: 360px; top: 225px; z-index: 3; }

.tc__card {
  position: relative; width: 500px; padding: 74px 64px;   /* 48px inside the inner border, top and bottom */
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: var(--color-mustard); color: var(--color-deep-olive);
  box-shadow: 0 1px 1px rgba(20, 12, 6, .05), 0 6px 14px -10px rgba(20, 12, 6, .24);
}
/* Framer's card border: a thin line, a row of round dots, a hairline, in Forest */
.tc__border { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--color-forest); pointer-events: none; overflow: visible; }
.tc__border rect { vector-effect: non-scaling-stroke; }
.tc__border-dots { vector-effect: none; }
.tc__label, .tc__copy, .tc__button { position: relative; margin: 0; }
/* text style: .t-default (Bea, 23 Nov). Always the same rendered size as the Reminders body text (Bea, 23 Nov):
   the scene is scaled by --tcs, so the type is scaled back up by the same amount */
.tc__copy { width: 80%; font-size: calc(var(--type-default-size) / var(--tcs, 1)); }
/* RSVP button: outline only; fills black with off-white text on hover */
.tc__button {
  display: inline-flex; align-items: center; height: 64px; padding: 0 48px; flex: none;
  font-size: var(--type-button-large-size);   /* Button Large */
  background: transparent; color: var(--color-black); text-decoration: none;
  box-shadow: inset 0 0 0 1.5px var(--color-black);
  transition: background-color .2s var(--ease-standard), color .2s var(--ease-standard),
    opacity var(--rv-dur) var(--rv-ease) var(--delay, 0s), translate var(--rv-dur) var(--rv-ease) var(--delay, 0s);   /* keeps the scroll-in reveal */
}
.tc__button:hover, .tc__button:focus-visible { background: var(--color-black); color: var(--color-off-white); }
/* Black sun crest heading the card, just above "RSVP by" */
.tc__sun { position: relative; width: 84px; height: auto; flex: none; margin-bottom: 24px; pointer-events: none; }
.tc__label { margin-bottom: 12px; }   /* closer to the copy than to the sun */
.tc__button { margin-top: 36px; }

.tc__angpao { position: relative; width: 260px; height: 430px; }
.tc__envelope { position: absolute; left: -40px; top: -40px; width: 340px; height: 510px; max-width: none; }
.tc__mat { display: grid; place-items: center; padding: 1px; box-shadow: 0 10px 22px -14px rgba(30, 28, 26, .6); }
.tc__mat--gold { position: absolute; left: 61px; top: 47px; width: 138px; height: 138px; background: var(--color-mustard); }
.tc__mat--ikb { width: 199px; height: 213px; background: var(--color-ikb); }
.tc__paper { width: 136px; height: 136px; padding: 4px; background: var(--color-off-white); }
.tc__paper img { width: 128px; height: 128px; object-fit: cover; }
/* Double happiness seal on the angpao (Framer: 69px, Mustard, left 95.5 / top 318) */
.tc__seal { position: absolute; left: 95.5px; top: 318px; width: 69px; height: 69px; }
.tc__names { position: absolute; left: 0; top: 205px; width: 260px; margin: 0; text-align: center; color: var(--color-mustard); }
.tc__seal-date { position: absolute; left: 0; top: 292px; width: 260px; margin: 0; text-align: center; color: var(--color-mustard); }

@media (max-width: 1199px) {
  .reminders__reminders { gap: 32px; padding: 88px 48px 72px; }

}
@media (max-width: 809px) {
  .reminders__reminders { grid-template-columns: 1fr; gap: 40px; padding: 72px 24px 56px; }
  /* Year style: 152 on phone (Bea, 23 Nov) */
  .reminders__poster { --year-inset: 16px; }
  /* Poster style: 40 on phone */
  /* Phone (Bea, 23 Nov, from her arrangement): the lyric across the top, the IKB photo mat over the card's top-left
     corner, the yellow card the biggest piece with the same text styles as desktop and tablet, the pink-star stamp
     peeking out behind its left edge, the angpao over its bottom-right corner and running past the photo, two stamps
     bottom left. One 390px composition, centred (and shrunk only on narrower phones, --tcs) */
  /* The photo spans the full width less the 16px gutters at any phone width (Bea, 23 Nov); the pieces stay grouped
     around the middle. Below 390px the whole scene shrinks to fit (--tcs) */
  .tc { left: 0; width: calc((100% - 32px) / var(--tcs)); height: 744px; margin: 0 16px calc(744px * (var(--tcs) - 1)); scale: var(--tcs); transform-origin: 0 0; }
  .tc__bg { bottom: 72px; border-radius: 16px; }
  .tc__lyric { display: none; }   /* Bea, 23 Nov: no lyric on phone; everything moved up into its place */
  .tc__card-wrap { left: calc(50% - 163px); top: 84px; z-index: 4; }   /* centred; everything else holds the edges */
  .tc__card { width: 326px; padding: 56px 32px 48px; }
  .tc__copy { width: 100%; }
  .tc__sun { width: 72px; margin-bottom: 20px; }
  .tc__button { margin-top: 32px; padding: 0 40px; }
  .tc__mat-wrap { left: 0; top: 24px; z-index: 5; scale: .62; transform-origin: 0 0; }
  .tc__stamp--2 { left: -8px; top: 188px; z-index: 3; }
  .tc__angpao-wrap { left: calc(100% - 153px); top: 484px; z-index: 6; scale: .62; transform-origin: 0 0; }
  .tc__stamp--1 { left: 4px; top: 556px; z-index: 6; }
  .tc__stamp--3 { left: 100px; top: 556px; z-index: 6; }
}

/* Captions under the lenses (Framer: Mar 10 and Mar 13). They sit in the stage, so phone can put them above and
   below the stacked lenses; on desktop and tablet they keep their old spots (binoculars left + 209 / 575, top 21 + 400). */
/* Lens captions are the shared .tag component (css/components.css), placed over the foot of each lens */
.att__caption {
  --tag-bg: var(--color-black);
  position: absolute; top: 421px; z-index: 2; margin: 0; translate: -50% 0;
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease-standard);
}
/* Desktop and tablet: the stage is zoomed to fit, so the tags undo it (like the arrows) to stay full size */
@media (min-width: 810px) {
  .att__caption { zoom: calc(1 / var(--att-k)); top: calc(421px * var(--att-k)); }
  .att__caption--ladies { left: calc(50% - 183px * var(--att-k)) !important; }
  .att__caption--gents { left: calc(50% + 183px * var(--att-k)) !important; }
}
.att__caption--ladies { left: calc(50% - 183px); }
.att__caption--gents { left: calc(50% + 183px); }
/* Mar 13 note: two short paragraphs, centred (Framer 15 Nov) */
/* Notes (Bea, 23 Nov): Default style, no gap between lines, and always narrower than the binoculars.
   Tablet: 75% of the zoomed binoculars (784px × --att-z). Desktop: a fixed 520px, since tying it to the
   fit would loop (narrower notes → taller → smaller binoculars); js/home.js keeps the binoculars wider */
.att__list, .att__list--wide { gap: 0; width: min(560px, 100%); }
@media (min-width: 810px) and (max-width: 1199px) {
  .att__list, .att__list--wide { width: min(560px, 784px * var(--att-z, 1) * .75); }
}
@media (min-width: 1200px) {
  .att__list, .att__list--wide { width: 520px; }
}
.att__note[data-day="2"] .att__list { text-align: center; }
@media (max-width: 809px) {
  /* Phone: each caption on its own lens, the ladies' near the top of the upper one, the gents' near the foot of the lower */
  .att__caption { top: calc(392px * var(--ps) * .1); left: 50%; z-index: 3; }
  .att__caption--gents { top: calc(784px * var(--ps) * .95 - 40px); left: 50%; }
  .att__list--wide { width: 100%; }
}

/* Dress code, tablet (Bea, 23 Nov: captions and the download button broke on narrow tablets). The captions sit just
   under their lenses instead of over the foot, never closer than 8px to each other, and the step dots go under them */
@media (min-width: 810px) and (max-width: 1199px) {
  .att__caption { top: calc(439px * var(--att-k) + 12px); }
  .att__caption--ladies { left: min(calc(50% - 183px * var(--att-k)), calc(50% - 130px)) !important; }
  .att__caption--gents { left: max(calc(50% + 183px * var(--att-k)), calc(50% + 120px)) !important; }
  .att__steps { margin-top: calc(64px - 25px * var(--att-k)); }
}

/* Reminders, tablet (Bea, 23 Nov): "20" and "27" heavily exaggerated, bigger than desktop's */
@media (min-width: 810px) and (max-width: 1199px) {
  /* Year style: 240 on tablet */
  .reminders__poster { --year-inset: 32px; }
}
/* Reminders, phone (Bea, 23 Nov): the blue drawing on the left, the title, note and any buttons stacked to its right */
@media (max-width: 809px) {
  .reminders__reminders { gap: 40px; padding: 64px 24px 56px; }
  .reminders__reminder { display: grid; grid-template-columns: 64px 1fr; align-items: start; column-gap: 16px; }
  .reminders__icon, .reminders__icon--tall { width: 64px; height: auto; max-height: 96px; object-fit: contain; margin-top: 0; }
  .reminders__rtext { gap: 12px; min-width: 0; }
}

/* Waters of March, tablet (Bea, 23 Nov): the figs a little higher, and the sunblock raised so it only overlaps the
   bottom ~20px of Josh's baby photo (which starts at 1073 in the canvas) */
@media (min-width: 810px) and (max-width: 1199px) {
  .wom__i--fig { top: calc(var(--y) - 48px); }
  .wom__i--sunblock { top: calc(1073px + 20px - var(--h)); }
}

/* Interlude, phone (Bea, 23 Nov): both quotes centred. The Sky quote sits right under the navbar, above the kiss,
   so it never covers Josh's face; Dindi stays at the foot */
@media (max-width: 809px) {
  .interlude__quote--sky, .interlude__quote--dindi { left: 50%; right: auto; margin-left: calc(var(--il-w) / -2); }
  .interlude__quote--sky { display: none; }   /* Bea, 23 Nov: it covered Josh's face; phone keeps only Dindi */
  .interlude__quote--dindi { bottom: 40px; }
}

/* Angpao on phone (Bea, 23 Nov): "Gift details to follow" in Redward (Red Eye Thick), no date. The envelope is drawn
   at 62%, so the text is set larger to show at about 11px */
.tc__names-short { display: none; }
@media (max-width: 809px) {
  .tc__names-long { display: none; }
  .tc__names-short { display: inline; }
  .tc__names {
    top: 214px; font-family: var(--font-redward-mono); font-weight: 800; font-variation-settings: "wght" 800, "slnt" 0;
    font-size: var(--type-red-eye-thick-size); line-height: 1.25; letter-spacing: .1em;   /* Red Eye Thick, in the envelope's own (62%) scale */
  }
  .tc__seal-date { display: none; }
}
