/* ─────────────────────────────────────────────
   Ruben & Delné · tokens
   ───────────────────────────────────────────── */
:root {
  --linen: #FBFBF9;
  --linen-deep: #F0F0ED;
  --ink: #141414;
  --night: #0D0D0D;
  --chocolate: #4F321E;
  --dark-green: #484D39;
  --lime: #B3B440;
  --lilac: #CDB4DD;
  --fig: #7A3850;
  --wildberry: #8E2149;
  --soft-pink: #E9BCBF;

  /* live theme, tweened by main.js as sections scroll past */
  --bg: var(--linen);
  --fg: var(--ink);

  --display: "Italiana", "Didot", "Times New Roman", serif;
  --serif: "Montserrat", "Helvetica Neue", Arial, sans-serif; /* body + labels */
  --accent: "Cormorant Garamond", "Times New Roman", serif; /* italic accents in display type */
  --script: "Mrs Saint Delafield", "Brush Script MT", cursive;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--fg) 35%, transparent) transparent; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.05rem, 0.35vw + 1rem, 1.22rem);
  line-height: 1.65;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--ink); color: var(--linen); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto; }
.section { padding-block: clamp(6rem, 14vw, 12rem); position: relative; }

/* ─────────────────────────────────────────────
   Type
   ───────────────────────────────────────────── */
.label {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  line-height: 1.8;
}
.title {
  font-family: var(--display); font-size-adjust: none;
  font-weight: 400;
  font-size: clamp(3rem, 7.2vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.title > * { display: block; }
.title em { font-style: italic; letter-spacing: -0.035em; text-transform: none; font-size: 1.08em; padding-left: 0.6em; }
.lede { max-width: 27rem; font-size: 1.14em; line-height: 1.65; }
.script { font-family: var(--script); font-weight: 400; font-size: clamp(2.1rem, 3.4vw, 3rem); line-height: 1; }
.mark { font-family: var(--display); font-size-adjust: none; font-size: 1.5rem; letter-spacing: -0.04em; line-height: 1; text-decoration: none; }
.mark em { font-style: italic; font-size: 0.78em; margin: 0 -0.04em; }

/* split text */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.02em 0.08em 0.14em; margin: -0.02em -0.08em -0.14em; }
.w__i, .c { display: inline-block; will-change: transform; }
.ln { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.ln > span { display: block; will-change: transform; }

/* buttons + links */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1.8rem;
  padding: 1.05rem 1.5rem 1.05rem 1.8rem;
  border: 1px solid color-mix(in srgb, currentColor 55%, transparent);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: var(--fg); transform: translateY(101%); transition: transform 0.6s var(--ease);
}
.btn i { font-style: normal; font-size: 1rem; letter-spacing: 0; transition: transform 0.5s var(--ease); }
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: none; }
.btn:hover i { transform: translateX(0.35rem); }
.btn--solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--solid::before { background: var(--bg); }
.btn--solid:hover { color: var(--fg); }

.link { font-weight: 600; font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 0.3rem; transition: background-size 0.5s var(--ease); }
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* photographs */
.ph { position: relative; overflow: hidden; background: color-mix(in srgb, var(--fg) 8%, transparent); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph img[data-parallax] { height: 118%; margin-top: -9%; will-change: transform; }
.ph--arch { border-radius: 999px 999px 0 0; }
[data-zoom] { cursor: pointer; }
html.has-cursor [data-zoom], html.has-cursor [data-cursor] { cursor: none; }
.js [data-reveal] { clip-path: inset(100% 0 0 0); }
.js [data-reveal] img { transform: scale(1.3); }

/* ─────────────────────────────────────────────
   Overlays: grain, cursor, loader
   ───────────────────────────────────────────── */
.grain {
  position: fixed; inset: -100px; z-index: 90; pointer-events: none; opacity: 0.085; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-40px, 30px); } 40% { transform: translate(30px, -50px); } 60% { transform: translate(-60px, -20px); } 80% { transform: translate(50px, 40px); } 100% { transform: translate(0, 0); } }

.cursor {
  position: fixed; left: 0; top: 0; z-index: 120; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--fg); pointer-events: none; opacity: 0; display: grid; place-items: center;
  transition: width 0.45s var(--ease), height 0.45s var(--ease), margin 0.45s var(--ease), opacity 0.3s, background-color 0.4s;
}
html.has-cursor .cursor { opacity: 1; }
.cursor__label { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity 0.25s; padding-left: 0.26em; white-space: nowrap; }
.cursor.is-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--linen); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18); }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: color-mix(in srgb, var(--fg) 18%, transparent); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

.loader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; color: var(--ink); }
.loader__panel { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--linen); }
.loader__panel--a { top: 0; }
.loader__panel--b { bottom: 0; }
.loader__inner { position: relative; display: grid; justify-items: center; gap: 1.6rem; }
.loader__mark { font-family: var(--display); font-size-adjust: none; font-size: clamp(3.4rem, 8vw, 6rem); letter-spacing: -0.04em; line-height: 1; }
.loader__mark em { font-style: italic; font-size: 0.7em; margin: 0 0.02em; }
.loader__line { width: min(40vw, 220px); height: 1px; background: color-mix(in srgb, var(--ink) 18%, transparent); overflow: hidden; }
.loader__line i { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; }
.loader__count { font-size: 0.72rem; letter-spacing: 0.34em; font-weight: 500; }
html:not(.js) .loader { display: none; }

/* ─────────────────────────────────────────────
   Header + menu
   ───────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 1.4rem var(--gutter);
  color: var(--fg);
  transition: transform 0.7s var(--ease), color 0.6s;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav.is-hidden { transform: translateY(-110%); }
.nav__mark { justify-self: start; }
.nav__links { display: flex; gap: clamp(1.4rem, 2.6vw, 2.8rem); }
.nav__links a, .nav__rsvp {
  position: relative; font-weight: 500; font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; text-decoration: none; padding: 0.4rem 0;
}
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0.3em; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform 0.5s var(--ease); }
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav__rsvp { justify-self: end; padding: 0.7rem 1.3rem 0.7rem 1.6rem; border: 1px solid color-mix(in srgb, currentColor 50%, transparent); border-radius: 999px; transition: background-color 0.4s, color 0.4s; }
.nav__rsvp:hover { background: var(--fg); color: var(--bg); }
.nav__toggle { display: none; justify-self: end; width: 44px; height: 44px; position: relative; }
.nav__toggle i { position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor; transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.nav__toggle i:nth-of-type(1) { top: 18px; }
.nav__toggle i:nth-of-type(2) { top: 26px; }
.nav__toggle[aria-expanded="true"] i:nth-of-type(1) { top: 22px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] i:nth-of-type(2) { top: 22px; transform: rotate(-45deg); }
body.menu-open .nav { color: var(--linen); transform: none; }

.menu {
  position: fixed; inset: 0; z-index: 95; background: var(--night); color: var(--linen);
  display: flex; flex-direction: column; justify-content: center; padding: 6rem var(--gutter) 3rem;
  clip-path: inset(0 0 100% 0); transition: clip-path 0.8s var(--ease-io);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu nav { display: grid; gap: 0.2rem; }
.menu nav a { font-family: var(--display); font-size-adjust: none; font-size: clamp(2.2rem, 10vw, 3.6rem); line-height: 1.15; text-decoration: none; display: flex; align-items: baseline; gap: 1.2rem; transform: translateY(40px); opacity: 0; transition: transform 0.8s var(--ease), opacity 0.6s; }
.menu nav a small { font-family: var(--serif); font-size: 0.7rem; letter-spacing: 0.3em; opacity: 0.6; }
.menu.is-open nav a { transform: none; opacity: 1; }
.menu.is-open nav a:nth-child(1) { transition-delay: 0.25s; } .menu.is-open nav a:nth-child(2) { transition-delay: 0.3s; }
.menu.is-open nav a:nth-child(3) { transition-delay: 0.35s; } .menu.is-open nav a:nth-child(4) { transition-delay: 0.4s; }
.menu.is-open nav a:nth-child(5) { transition-delay: 0.45s; } .menu.is-open nav a:nth-child(6) { transition-delay: 0.5s; }
.menu.is-open nav a:nth-child(7) { transition-delay: 0.55s; }
.menu__foot { margin-top: auto; opacity: 0.7; }

/* ─────────────────────────────────────────────
   Hero
   ───────────────────────────────────────────── */
.hero { position: relative; }
.hero__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg); }
/* two identical layers of type: ink on the page, white on the photograph. The photograph's clip decides which one you read. */
.hero__clip { position: absolute; inset: 0; clip-path: inset(0% 0% 0% 0%); will-change: clip-path; color: #fff; }
.hero__ph { position: absolute; inset: 0; }
.hero__ph picture { display: contents; }
.hero__ph img { width: 100%; height: 100%; object-fit: cover; object-position: 56% 8%; }
.hero__ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.06) 45%, rgba(0, 0, 0, 0.32)); }
.hero__type { position: absolute; inset: 0; pointer-events: none; }
.hero__type--ink { color: var(--ink); }
.hero__names {
  position: absolute; left: 0; right: 0; top: 16vh; top: 16svh; margin: 0;
  display: flex; justify-content: center; align-items: baseline; gap: 0.18em;
  font-family: var(--display); font-size-adjust: none; font-weight: 400; text-transform: uppercase;
  font-size: min(13.2vw, 27vh); line-height: 0.9; letter-spacing: -0.035em; white-space: nowrap;
}
.hero__amp { font-style: italic; text-transform: none; font-size: 0.62em; letter-spacing: 0; transform: translateY(-0.08em); display: inline-block; }
.hero__name { display: inline-block; }
.hero__name .w { padding-top: 0.3em; margin-top: -0.3em; }
.hero__meta .label { position: absolute; bottom: 2.2rem; overflow: hidden; }
.hero__meta .label span { display: block; }
.hero__date { left: var(--gutter); }
.hero__place { right: var(--gutter); text-align: right; }
.hero__hint { position: absolute; left: 50%; bottom: 1.6rem; z-index: 3; transform: translateX(-50%); display: grid; justify-items: center; gap: 0.6rem; font-size: 0.62rem; letter-spacing: 0.34em; text-transform: uppercase; font-weight: 600; }
.hero__hint i { width: 1px; height: 2.6rem; background: currentColor; transform-origin: 50% 0; animation: hint 2.2s var(--ease-io) infinite; }
@keyframes hint { 0% { transform: scaleY(0); transform-origin: 50% 0; } 45% { transform: scaleY(1); transform-origin: 50% 0; } 55% { transform: scaleY(1); transform-origin: 50% 100%; } 100% { transform: scaleY(0); transform-origin: 50% 100%; } }

/* ─────────────────────────────────────────────
   Invitation
   ───────────────────────────────────────────── */

/* ─────────────────────────────────────────────
   Gallery
   ───────────────────────────────────────────── */
.gallery { position: relative; }
.gallery__head { display: none; }
.gallery__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.gallery__track { position: absolute; top: 0; left: 0; height: 100%; display: flex; align-items: center; gap: clamp(4rem, 9vw, 11rem); padding-inline: var(--gutter) 22vw; will-change: transform; }
.gallery__intro { flex: none; width: min(34rem, 38vw); display: grid; gap: 1.6rem; align-content: center; }
.gallery__go { font-size: 2.4rem; opacity: 0.75; }
.gallery__go span { font-family: var(--serif); font-size: 1.2rem; display: inline-block; animation: nudge 1.8s var(--ease-io) infinite; }
@keyframes nudge { 50% { transform: translateX(0.6rem); } }
.plate { flex: none; position: relative; display: grid; gap: 1rem; }
.plate__img { position: relative; overflow: hidden; background: color-mix(in srgb, var(--fg) 8%, transparent); clip-path: inset(0 0 0 0); }
.plate__img img { width: 116%; max-width: none; height: 100%; object-fit: cover; will-change: transform; transition: filter 0.8s var(--ease); }
.plate--tall .plate__img { height: 68vh; height: 68svh; aspect-ratio: 2 / 3; }
.plate--wide .plate__img { height: 56vh; height: 56svh; aspect-ratio: 3 / 2; }
.plate--high { align-self: flex-start; margin-top: 13vh; }
.plate--low { align-self: flex-end; margin-bottom: 9vh; }
.plate--mid { align-self: center; }
.plate figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 2rem; }
.plate__no { font-family: var(--display); font-size-adjust: none; font-style: italic; font-size: 1.05rem; letter-spacing: 0.02em; }
.plate__title { font-size: 0.7rem; letter-spacing: 0.32em; text-transform: uppercase; font-weight: 500; }
.gallery__quote { flex: none; font-size: clamp(2.8rem, 5vw, 4.8rem); align-self: flex-end; margin-bottom: 16vh; transform: rotate(-4deg); margin-inline: -3vw; }
.gallery__outro { flex: none; align-self: center; }
.gallery__outro .script { font-size: clamp(2.8rem, 5vw, 4.6rem); }
.gallery__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 1.8rem; display: flex; align-items: center; gap: 1.2rem; font-family: var(--display); font-size-adjust: none; font-style: italic; font-size: 0.95rem; }
.gallery__bar i { flex: 1; height: 1px; background: color-mix(in srgb, var(--fg) 20%, transparent); position: relative; }
.gallery__bar b { position: absolute; inset: 0; background: var(--fg); transform: scaleX(0); transform-origin: 0 50%; }

/* ─────────────────────────────────────────────
   Dogs
   ───────────────────────────────────────────── */
.dogs { position: relative; }
.dogs__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.dogs__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dogs__cap { position: absolute; z-index: 2; display: grid; gap: 0.9rem; opacity: 0; visibility: hidden; will-change: transform, opacity; }
.dogs__cap--intro, .dogs__cap--go { left: 0; right: 0; top: 13vh; justify-items: center; text-align: center; }
.dogs__cap--intro .title em, .dogs__cap--go .title em { padding-left: 0; }
.dogs__cap--japie { right: var(--gutter); top: 50%; width: min(24rem, 34vw); translate: 0 -50%; }
.dogs__cap--saartjie { left: var(--gutter); top: 50%; width: min(24rem, 34vw); translate: 0 -50%; }
.dogs__name { font-family: var(--display); font-size-adjust: none; font-weight: 400; font-size: clamp(3.6rem, 7.4vw, 7rem); line-height: 0.9; letter-spacing: -0.03em; }
.dogs__script { font-size: clamp(2.3rem, 3.6vw, 3.2rem); }
.dogs__hint { position: absolute; left: 0; right: 0; bottom: 2rem; text-align: center; opacity: 0; font-size: 0.62rem; }
.dogs__static { display: none; padding-block: 7rem; gap: 1.6rem; justify-items: center; text-align: center; }
.no-3d .dogs__pin { display: none; }
.no-3d .dogs__static { display: grid; }

/* ─────────────────────────────────────────────
   Our weekend
   ───────────────────────────────────────────── */
.weekend__top { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(1rem, 2vw, 2rem); align-items: end; }
.weekend__intro { grid-column: 1 / span 6; display: grid; gap: 2rem; padding-bottom: 2rem; }
.weekend__photo { grid-column: 8 / span 4; aspect-ratio: 2 / 3; }
.days { margin-top: clamp(4rem, 9vw, 8rem); }
.day { position: relative; display: grid; grid-template-columns: minmax(8rem, 2fr) 5fr 3fr; align-items: center; column-gap: clamp(1.5rem, 4vw, 4rem); padding-block: clamp(1.8rem, 3.4vw, 3rem); }
.day::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: color-mix(in srgb, var(--fg) 28%, transparent); transform: scaleX(var(--line, 1)); transform-origin: 0 50%; }
.day:last-child::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: color-mix(in srgb, var(--fg) 28%, transparent); transform: scaleX(var(--line, 1)); transform-origin: 0 50%; }
.day__num { font-family: var(--display); font-size-adjust: none; font-size: clamp(4.5rem, 11vw, 10rem); line-height: 0.85; letter-spacing: -0.04em; overflow: hidden; padding-bottom: 0.06em; }
.day__num span { display: block; transition: transform 0.9s var(--ease); }
.day__body { display: grid; gap: 0.6rem; }
.day__title { font-family: var(--display); font-size-adjust: none; font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.5rem); line-height: 1.1; letter-spacing: -0.01em; }
.day__text { max-width: 26rem; opacity: 0.85; }
.day__script { justify-self: end; text-align: right; font-size: clamp(2rem, 3vw, 2.8rem); transform: rotate(-3deg); }
@media (hover: hover) { .day:hover .day__num span { transform: translateX(0.12em) skewX(-8deg); } }

/* ─────────────────────────────────────────────
   Ubunye game drive
   ───────────────────────────────────────────── */
.safari { position: relative; background: #0D0D0D; color: var(--linen); }
.safari__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.safari__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.safari__veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 42%), linear-gradient(to bottom, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0) 22%); }
.safari__cap { position: absolute; left: var(--gutter); bottom: clamp(3.5rem, 9vh, 6.5rem); z-index: 2; display: grid; gap: 1rem; opacity: 0; visibility: hidden; max-width: 90vw; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45); }
.safari__title { font-family: var(--display); font-size-adjust: none; font-weight: 400; font-size: clamp(2.8rem, 7.4vw, 7rem); line-height: 0.95; letter-spacing: -0.025em; }
.safari__script { font-size: clamp(2.4rem, 4vw, 3.6rem); color: inherit; }
.safari__cap--stars { left: 0; right: 0; bottom: auto; top: 50%; translate: 0 -50%; justify-items: center; text-align: center; max-width: none; }
.safari__progress { position: absolute; right: var(--gutter); top: 50%; width: 1px; height: 22vh; transform: translateY(-50%); background: rgba(255, 255, 255, 0.25); }
.safari__progress i { position: absolute; inset: 0; background: var(--linen); transform: scaleY(0); transform-origin: 50% 0; }
.safari__static { display: none; min-height: 80vh; place-content: center; justify-items: center; text-align: center; gap: 1.2rem; padding: 7rem var(--gutter); }
.no-safari .safari__pin { display: none; }
.no-safari .safari__static { display: grid; }
.no-3d .safari__pin { display: none; }
.no-3d .safari__static { display: grid; }

/* ─────────────────────────────────────────────
   The location
   ───────────────────────────────────────────── */
.location__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(1rem, 2vw, 2rem); align-items: center; }
.location__copy { grid-column: 1 / span 6; display: grid; gap: 2rem; justify-items: start; }
.location__photo { grid-column: 8 / span 4; aspect-ratio: 2 / 3; }
.location__script { grid-column: 6 / span 3; grid-row: 1; align-self: end; justify-self: start; z-index: 2; color: inherit; transform: rotate(-5deg) translateY(1.5rem); font-size: clamp(2.4rem, 3.8vw, 3.6rem); pointer-events: none; }
.location__copy, .location__photo { grid-row: 1; }

/* ─────────────────────────────────────────────
   Dress code
   ───────────────────────────────────────────── */
.dress__head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(1rem, 2vw, 2rem); row-gap: 1.6rem; align-items: end; }
.dress__head .label { grid-column: 1 / -1; }
.dress__head .title { grid-column: 1 / span 6; }
.dress__script { grid-column: 1 / span 6; font-size: clamp(2.6rem, 4.2vw, 4rem); }
.dress__head .lede { grid-column: 8 / span 5; grid-row: 2 / span 2; align-self: end; }
.palette { display: grid; grid-template-columns: repeat(7, 1fr); gap: clamp(0.6rem, 1.6vw, 1.6rem); margin-top: clamp(4rem, 8vw, 7rem); }
.palette li { display: grid; gap: 1.2rem; justify-items: center; text-align: center; }
.palette .arch { width: 100%; aspect-ratio: 1 / 1.9; border-radius: 999px 999px 0 0; overflow: hidden; background: var(--swatch); transition: transform 0.8s var(--ease); }
.palette .arch img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s var(--ease); }
.palette span { font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 500; line-height: 1.8; }
@media (hover: hover) { .palette li:hover .arch { transform: translateY(-1.2rem); } .palette li:hover .arch img { transform: scale(1.14); } }
.dress__notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 4rem); margin-top: clamp(4rem, 8vw, 7rem); padding-top: 2.4rem; border-top: 1px solid color-mix(in srgb, var(--fg) 28%, transparent); }
.dress__notes > div { display: grid; gap: 0.8rem; align-content: start; }
.dress__notes p:last-child { max-width: 22rem; }

/* ─────────────────────────────────────────────
   Details
   ───────────────────────────────────────────── */
.details__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(1rem, 2vw, 2rem); align-items: start; }
.details__media { grid-column: 1 / span 4; position: sticky; top: 14vh; }
.details__photo { aspect-ratio: 2 / 3; }
.details__script { position: absolute; right: -22%; bottom: -1.4rem; transform: rotate(-5deg); font-size: clamp(2.2rem, 3.2vw, 3rem); pointer-events: none; }
.details__copy { grid-column: 6 / span 7; display: grid; gap: 1.6rem; }
.faq { margin-top: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--fg) 28%, transparent); }
.faq details { border-bottom: 1px solid color-mix(in srgb, var(--fg) 28%, transparent); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 1.5rem 0; font-family: var(--display); font-size-adjust: none; font-size: clamp(1.3rem, 2vw, 1.8rem); letter-spacing: -0.01em; transition: padding 0.5s var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 15px; height: 15px; background: linear-gradient(currentColor, currentColor) 50% 50% / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) 50% 50% / 1px 100% no-repeat; transition: transform 0.6s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
@media (hover: hover) { .faq summary:hover { padding-left: 0.8rem; } }
.faq__a { overflow: hidden; }
.faq__a > :first-child { padding-top: 0.2rem; }
.faq__a > :last-child { margin-bottom: 1.8rem; }
.faq__a p { max-width: 34rem; }
.faq__a .link { display: inline-block; margin-top: 1rem; }
.runsheet { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 2rem; margin-top: 1.4rem; max-width: 30rem; }
.runsheet dt { font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase; font-weight: 600; padding-top: 0.35em; white-space: nowrap; }

/* ─────────────────────────────────────────────
   RSVP
   ───────────────────────────────────────────── */
.rsvp__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(1rem, 2vw, 2rem); align-items: center; }
.rsvp__photo { grid-column: 1 / span 4; aspect-ratio: 2 / 3; }
.rsvp__copy { grid-column: 6 / span 7; display: grid; gap: 1.6rem; justify-items: start; }
.rsvp__title { font-family: var(--display); font-size-adjust: none; font-weight: 400; font-style: italic; font-size: clamp(6rem, 21vw, 20rem); line-height: 0.8; letter-spacing: -0.05em; margin-left: -0.04em; }
.rsvp__script { font-size: clamp(2.6rem, 4.4vw, 4.2rem); margin-top: -0.2em; }
.countdown { display: flex; gap: clamp(1.4rem, 3.4vw, 3.4rem); margin-top: 1.6rem; padding-top: 1.8rem; border-top: 1px solid color-mix(in srgb, var(--fg) 30%, transparent); }
.countdown div { display: grid; gap: 0.3rem; }
.countdown b { font-family: var(--display); font-size-adjust: none; font-weight: 400; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.countdown span { font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 500; opacity: 0.8; }

/* ─────────────────────────────────────────────
   Closing
   ───────────────────────────────────────────── */
.closing { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; color: var(--linen); overflow: hidden; }
.closing__photo { position: absolute; inset: 0; }
.closing__photo img { width: 100%; height: 118%; object-fit: cover; object-position: 50% 40%; will-change: transform; }
.closing__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--bg) 0%, rgba(13, 13, 13, 0.25) 26%, rgba(13, 13, 13, 0.35) 60%, rgba(13, 13, 13, 0.88) 100%); }
.closing__inner { position: relative; display: grid; align-content: center; justify-items: center; gap: 2.6rem; text-align: center; padding: 9rem var(--gutter) 4rem; }
.closing__title { font-family: var(--display); font-size-adjust: none; font-weight: 400; font-size: clamp(2.8rem, 8.2vw, 8rem); line-height: 0.95; letter-spacing: -0.03em; }
.closing__title > * { display: block; }
.closing__title em { font-style: italic; }
.closing__meta { display: flex; gap: 2.5rem; flex-wrap: wrap; justify-content: center; }
.footer { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 1.6rem var(--gutter) 2rem; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.footer > :last-child { justify-self: end; text-align: right; }
.footer .label { font-size: 0.62rem; opacity: 0.8; }

/* ─────────────────────────────────────────────
   Lightbox
   ───────────────────────────────────────────── */
.lightbox { position: fixed; inset: 0; z-index: 150; color: var(--linen); }
.lightbox__bg { position: absolute; inset: 0; background: rgba(10, 10, 10, 0.96); opacity: 0; }
.lightbox__img { position: absolute; left: 0; top: 0; max-width: none; object-fit: cover; will-change: transform, width, height; cursor: zoom-out; }
.lightbox__count { position: absolute; left: var(--gutter); bottom: 1.6rem; opacity: 0.8; font-family: var(--display); font-size-adjust: none; font-style: italic; letter-spacing: 0.04em; font-size: 1rem; text-transform: none; }
.lightbox__close { position: absolute; right: var(--gutter); top: 1.5rem; padding: 0.8rem 0; }
.lightbox__btn { position: absolute; top: 50%; width: 3.4rem; height: 3.4rem; margin-top: -1.7rem; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 50%; font-size: 1.1rem; transition: background-color 0.4s, color 0.4s; }
.lightbox__btn:hover { background: var(--linen); color: var(--ink); }
.lightbox__btn--prev { left: var(--gutter); }
.lightbox__btn--next { right: var(--gutter); }
.lightbox__count, .lightbox__close, .lightbox__btn { opacity: 0; }

/* ─────────────────────────────────────────────
   Small screens
   ───────────────────────────────────────────── */
@media (max-width: 0px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__links, .nav__rsvp { display: none; }
  .nav__toggle { display: block; }

  .hero__names { top: 12svh; font-size: 10.8vw; }
  .hero__meta .label { bottom: 5.6rem; font-size: 0.62rem; }
  /* the portrait crop has open sky behind the names, so they stay ink */
  .hero__ph img { object-position: 57% 70%; }


  /* the gallery becomes a vertical hang */
  .gallery__pin { height: auto; overflow: visible; padding-block: 3rem 5rem; }
  .gallery__track { position: static; flex-direction: column; align-items: stretch; gap: 4.5rem; padding-inline: var(--gutter); transform: none !important; }
  .gallery__intro { width: auto; }
  .gallery__go { display: none; }
  .plate { align-self: stretch !important; margin: 0 !important; }
  .plate--tall { width: 78%; }
  .plate--tall:nth-of-type(even) { margin-left: auto !important; }
  .plate--tall .plate__img, .plate--wide .plate__img { height: auto; width: 100%; }
  .plate__img img { width: 100%; height: 112%; }
  .gallery__quote { align-self: center; margin: 0; text-align: center; }
  .gallery__outro { text-align: center; }
  .gallery__bar { display: none; }

  .dogs__cap--japie, .dogs__cap--saartjie { left: var(--gutter); right: var(--gutter); width: auto; top: auto; bottom: 3.2rem; translate: none; gap: 0.4rem; }
  .dogs__cap--japie .lede, .dogs__cap--saartjie .lede { font-size: 1rem; max-width: 22rem; }
  .dogs__cap--intro, .dogs__cap--go { top: 12svh; }
  .dogs__hint { display: none; }

  .weekend__intro { grid-column: 1 / -1; }
  .weekend__photo { grid-column: 3 / span 10; margin-top: 3rem; }
  .day { grid-template-columns: auto 1fr; row-gap: 0.6rem; }
  .day__script { grid-column: 2; justify-self: start; text-align: left; }

  .location__copy { grid-column: 1 / -1; }
  .location__photo { grid-column: 2 / span 10; grid-row: 2; margin-top: 4rem; }
  .location__script { grid-column: 1 / -1; grid-row: 3; transform: rotate(-4deg); margin-top: 1.5rem; justify-self: center; text-align: center; }

  .dress__head .title, .dress__script, .dress__head .lede { grid-column: 1 / -1; grid-row: auto; }
  .palette { grid-template-columns: repeat(4, 1fr); row-gap: 2.2rem; }
  .palette span { font-size: 0.56rem; letter-spacing: 0.22em; }
  .dress__notes { grid-template-columns: 1fr; }

  .details__media { grid-column: 2 / span 9; position: relative; top: 0; margin-bottom: 5rem; }
  .details__script { right: -12%; }
  .details__copy { grid-column: 1 / -1; }

  .rsvp__photo { grid-column: 3 / span 8; margin-bottom: 3.5rem; }
  .rsvp__copy { grid-column: 1 / -1; }
  .countdown { gap: 1.3rem; }

  .footer { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 0.8rem; }
  .footer > :last-child { justify-self: center; text-align: center; }
}

/* ─────────────────────────────────────────────
   Calm mode: no JS or reduced motion
   ───────────────────────────────────────────── */
html.static [data-reveal] { clip-path: none; }
html.static [data-reveal] img { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero__hint i, .gallery__go span { animation: none; }
}


/* ─────────────────────────────────────────────
   Editorial: white page, full-bleed spreads
   ───────────────────────────────────────────── */
.nav { color: var(--ink); }
.nav.on-dark { color: #fff; }
.nav__rsvp:hover { background: currentColor; }
.nav__rsvp:hover span { color: var(--linen); }
.nav.on-dark .nav__rsvp:hover span { color: var(--ink); }
.ph--arch, .palette .arch { border-radius: 0; }
.section:has(> .spread:first-child) { padding-top: 0; }

.spread { --fg: #fff; --bg: #141414; position: relative; height: 100vh; height: 100svh; min-height: 34rem; overflow: hidden; display: grid; align-items: end; color: #fff; }
.spread--short { height: 78vh; height: 78svh; }
.spread__ph { position: absolute; inset: 0; background: #1a1a1a; }
.spread__ph img { width: 100%; height: 120%; max-width: none; object-fit: cover; object-position: var(--pos, 50% 40%); will-change: transform; }
.spread__ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0) 58%), linear-gradient(to bottom, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0) 22%); }
.spread__type { position: relative; z-index: 1; display: grid; gap: 1.2rem; padding-bottom: clamp(2.4rem, 6vh, 4.5rem); }
.spread__type .title { font-size: clamp(3.6rem, 10.5vw, 10.5rem); }
.spread__row { display: flex; justify-content: space-between; align-items: flex-end; gap: clamp(2rem, 6vw, 6rem); }
.spread__row > .lede, .spread__side { flex: none; width: min(26rem, 34vw); padding-bottom: 0.6rem; }
.spread__side { display: grid; gap: 1.6rem; justify-items: start; }
.spread + .days { margin-top: clamp(3rem, 7vw, 6rem); }

.plate--tall .plate__img { height: 72vh; height: 72svh; }
.plate--wide .plate__img { height: 60vh; height: 60svh; }
.plate--high { margin-top: 9vh; }
.plate--low { margin-bottom: 10vh; }

.details__grid { margin-top: clamp(3.5rem, 8vw, 7rem); }
.details__aside { grid-column: 1 / span 4; position: sticky; top: 16vh; }
.details__aside .script { font-size: clamp(2.6rem, 4vw, 3.8rem); }
.details__copy { grid-column: 6 / span 7; }
.details__copy .faq { margin-top: 0; }

.rsvp__title { font-size: clamp(6rem, 17vw, 17rem); line-height: 0.82; }
.rsvp__script { margin-top: 0; }
.rsvp .countdown { margin-top: 0; padding-top: 1.4rem; border-top-color: rgba(255, 255, 255, 0.4); }
.rsvp .spread__side { width: auto; }

@media (max-width: 0px) {
  .spread__row { flex-direction: column; align-items: flex-start; gap: 1.4rem; }
  .spread__row > .lede, .spread__side { width: auto; max-width: 26rem; }
  .details__aside { grid-column: 1 / -1; position: static; margin-bottom: 2.5rem; }
  .details__copy { grid-column: 1 / -1; }
  .rsvp .countdown { gap: 1.3rem; }
}

/* spreads with a column of copy on the right get a little extra shade behind it */
.spread:has(.spread__row) .spread__ph::after { background: linear-gradient(to top, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0) 60%), linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 48%), linear-gradient(to bottom, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0) 22%); }

/* ─────────────────────────────────────────────
   Set pieces
   ───────────────────────────────────────────── */
/* opening reel */
.loader { background: var(--linen); display: block; }
.loader.is-done { background: transparent; }
.loader.is-done .loader__reel { visibility: hidden; }
.loader__reel { position: absolute; left: 50%; top: 50%; width: min(30vh, 56vw); aspect-ratio: 2 / 3; transform: translate(-50%, -50%); overflow: hidden; background: var(--linen-deep); }
.loader__reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; visibility: hidden; }
.loader__reel img.is-on { visibility: visible; }
.loader__mark { position: absolute; left: var(--gutter); top: 1.4rem; font-size: 1.5rem; }
.loader__mark em { font-size: 0.78em; }
.loader__count { position: absolute; left: var(--gutter); bottom: 1.2rem; font-family: var(--display); font-size-adjust: none; font-style: italic; font-weight: 400; font-size: clamp(4.5rem, 13vw, 12rem); line-height: 0.8; letter-spacing: -0.04em; font-variant-numeric: tabular-nums lining-nums; }
.loader__note { position: absolute; right: var(--gutter); bottom: 1.6rem; text-align: right; }
.hero__open { position: absolute; inset: 0; will-change: clip-path; }

/* folio */
.folio { position: fixed; right: 1.15rem; top: 50%; z-index: 99; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 1rem; color: #fff; mix-blend-mode: difference; pointer-events: none; }
.folio__no { font-family: var(--display); font-size-adjust: none; font-style: italic; font-size: 0.95rem; letter-spacing: 0.04em; overflow: hidden; }
.folio__name { writing-mode: vertical-rl; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; white-space: nowrap; }
.folio__line { width: 1px; height: 5.5rem; background: rgba(255, 255, 255, 0.28); position: relative; }
.folio__line i { position: absolute; inset: 0; background: #fff; transform: scaleY(0); transform-origin: 50% 0; }
body.is-loading .folio, body.menu-open .folio { opacity: 0; }


/* marquee */
.marquee { overflow: hidden; padding-block: clamp(3rem, 7vw, 7rem); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__track span { flex: none; font-family: var(--display); font-size-adjust: none; font-size: clamp(4rem, 12.5vw, 12.5rem); line-height: 1; letter-spacing: -0.03em; white-space: nowrap; padding-right: 0.3em; }
.marquee__track em { font-style: italic; color: transparent; -webkit-text-stroke: 1px var(--ink); }
.marquee__track i { font-style: normal; font-family: var(--serif); font-size: 0.4em; vertical-align: 0.35em; margin-inline: 0.25em; }

.plate { will-change: transform; }
.closing__photo img { object-position: 50% 50%; }

@media (max-width: 0px) {
  .folio { display: none; }
}

/* lodge drive: the folio already shows progress; keep the last caption clear of the constellation */
.safari__progress { display: none; }
.safari__cap--stars { top: 70%; }


/* cover: names sit in the sky above the couple */
@media (min-width: 0px) { .hero__names { top: 16vh; top: 16svh; font-size: min(10.5vw, 21vh); } }
.hero__ph::after { background: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.14) 42%, rgba(0, 0, 0, 0.04) 60%, rgba(0, 0, 0, 0.34)); }

/* ─────────────────────────────────────────────
   Invitation: words on the left, a small collage on the right
   ───────────────────────────────────────────── */
.invite { position: relative; padding-block: clamp(5rem, 11vw, 10rem); }
.invite__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(1rem, 2vw, 2rem); row-gap: 4rem; align-items: center; }
.invite__copy { grid-column: 1 / span 5; display: grid; gap: 2rem; justify-items: start; align-content: center; }
.invite__text { font-family: var(--display); font-size-adjust: none; font-size: clamp(1.8rem, 2.75vw, 3rem); line-height: 1.14; letter-spacing: -0.015em; }
.invite__script { font-size: clamp(2.8rem, 4.4vw, 4.2rem); margin-top: 0.5rem; }
.collage { grid-column: 6 / span 7; position: relative; height: min(76vh, 46vw); min-height: 28rem; margin-block: 6vh; }
.collage > * { position: absolute; will-change: transform; }
.collage__strip { left: 30%; top: 48%; width: 38%; height: 48%; background: var(--lime); }
.collage__chip { position: absolute; left: 0.9rem; bottom: 0.9rem; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: rgba(20, 20, 20, 0.7); }
.collage__tall { right: 2%; bottom: 0; width: 32%; margin: 0; display: grid; gap: 0.7rem; z-index: 2; }
.collage__tall .collage__frame { aspect-ratio: 2 / 3; }
.collage__wide { left: 0; top: 2%; width: 74%; margin: 0; display: grid; gap: 0.7rem; z-index: 1; }
.collage__wide .collage__frame { aspect-ratio: 3 / 2; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.35); }
.collage__frame { position: relative; overflow: hidden; background: var(--linen-deep); }
.collage__frame img { width: 100%; height: 100%; object-fit: cover; }
.collage figcaption { display: flex; gap: 1rem; align-items: baseline; }
.collage figcaption .label { font-size: 0.6rem; }
@media (max-width: 0px) {
  .invite__copy { grid-column: 1 / -1; }
  /* same proportions as the desktop collage, just scaled to the phone */
  .collage { grid-column: 1 / -1; height: 80vw; min-height: 0; margin-block: 0 2rem; }
  .invite__grid { row-gap: 2.5rem; }
}
.collage__wide figcaption { order: -1; }
.collage__tall .collage__frame { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.35); }
.collage__wide .collage__frame { box-shadow: none; }

.details__copy { grid-column: 3 / span 8; }
@media (max-width: 0px) { .details__copy { grid-column: 1 / -1; } }
@media (min-width: 0px) { .day { grid-template-columns: minmax(8rem, 2fr) 8fr; } }

/* ─────────────────────────────────────────────
   The date: numerals first, then the page composes itself, type left and the photograph right
   ───────────────────────────────────────────── */
.date__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.date__copy { position: absolute; left: var(--gutter); top: 0; bottom: 0; width: calc(54vw - var(--gutter)); display: grid; align-content: center; justify-items: start; gap: 1.4rem; }
.date__photo { position: absolute; right: 0; top: 0; bottom: 0; width: 44vw; margin: 0; overflow: hidden; }
.date__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; will-change: transform; }
@media (max-width: 0px) {
  .date__copy { left: var(--gutter); right: var(--gutter); width: auto; bottom: auto; top: 0; height: 42%; gap: 0.9rem; padding-top: 3rem; }
  .date__photo { left: 0; width: auto; top: 42%; }
  .date__photo img { object-position: 50% 22%; }
}
/* the photograph sits as a framed plate, clear of the nav and the folio */
@media (min-width: 0px) { .date__photo { top: clamp(5.5rem, 13vh, 8rem); bottom: clamp(3rem, 8vh, 5rem); right: var(--gutter); width: 36vw; } .date__photo img { object-position: 50% 26%; } }

/* the date, spelled out; the section is tall and its page holds with native sticky (no scripted pin) */
.date { height: 230vh; height: 230svh; }
.date__pin { position: sticky; top: 0; }
.date__type { margin: 0; font-family: var(--display); font-size-adjust: none; font-weight: 400; font-size: min(8.4vw, 21vh); line-height: 0.92; letter-spacing: -0.035em; text-transform: uppercase; white-space: nowrap; transform-origin: 0 50%; will-change: transform; }
.date__type span, .date__type em { display: block; }
.date__type em { font-style: italic; text-transform: none; padding-left: 0.5em; }
html.static .date { height: auto; }
@media (max-width: 0px) { .date__type { font-size: 15vw; } }

/* ─────────────────────────────────────────────
   The welcoming committee: the title over the two portraits, then a short film played by the scroll
   ───────────────────────────────────────────── */
.pups__stage { position: relative; height: 360vh; height: 360svh; }
.pups__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(1.25rem, 4vh, 3rem); padding-top: 4.5rem; }
.pups__head { display: grid; justify-items: center; gap: min(0.9rem, 1.6vh); text-align: center; padding-inline: var(--gutter); color: var(--ink); }
.pups__title { margin: 0; font-family: var(--display); font-size-adjust: none; font-weight: 400; font-size: min(4.6vw, 7.2vh); line-height: 0.95; letter-spacing: -0.03em; text-transform: uppercase; }
.pups__title span, .pups__title em { display: block; }
.pups__title em { font-style: italic; text-transform: none; }
/* the film sits as a plate, its edges melting into the page */
.pups__plate { position: relative; flex: none; width: min(62vw, 42vh * 1.882, (100svh - 22rem) * 1.882); aspect-ratio: 1024 / 544; }
.pups__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(transparent, #000 8%, #000 92%, transparent); mask-composite: intersect; }
.pups__still { display: none; }
.pups__name { position: absolute; left: 0; top: 0; margin: 0; transform: translateX(-50%); font-family: var(--display); font-size-adjust: none; font-style: italic; font-size: clamp(0.95rem, 1.3vw, 1.35rem); line-height: 1; color: var(--ink); white-space: nowrap; }
html.static .pups__stage { height: auto; }
html.static .pups__pin { position: relative; height: auto; padding-block: 12vh; }
html.static .pups__canvas, html.static .pups__name { display: none; }
html.static .pups__still { display: block; width: 100%; height: auto; }
@media (max-width: 0px) { .pups__plate { width: min(92vw, (100svh - 22rem) * 1.882); } .pups__title { font-size: min(9vw, 7.2vh); } }

/* the weekend's dates, set large on the spread */
.spread__dates { margin: 0; font-family: var(--display); font-size-adjust: none; font-weight: 400; font-size: clamp(1.8rem, 4.2vw, 4.4rem); line-height: 1; letter-spacing: -0.02em; }


/* ─────────────────────────────────────────────
   Day drawings: hand-inked, in the ink colour (the art is a mask), each with its own small life
   ───────────────────────────────────────────── */
@media (min-width: 0px) { .day { grid-template-columns: minmax(8rem, 2fr) 5fr 3fr; } }
.day__art { justify-self: center; height: clamp(5.5rem, 8vw, 7.75rem); background: var(--fg); -webkit-mask: var(--art) center / contain no-repeat; mask: var(--art) center / contain no-repeat; will-change: transform; }
.day__art--disco { --art: url("../assets/art/disco.png"); aspect-ratio: 385 / 450; transform-origin: 50% 0; animation: art-swing 3.2s ease-in-out infinite alternate; }
.day__art--toast { --art: url("../assets/art/toast.png"); aspect-ratio: 509 / 458; transform-origin: 50% 100%; animation: art-rock 2.6s ease-in-out infinite alternate; }
.day__art--bush { --art: url("../assets/art/bush.png"); aspect-ratio: 480 / 329; height: clamp(4.25rem, 6.2vw, 6rem); transform-origin: 50% 100%; animation: art-sway 4.2s ease-in-out infinite alternate; }
@keyframes art-swing { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
@keyframes art-rock { from { transform: rotate(-2.5deg); } to { transform: rotate(2deg); } }
@keyframes art-sway { from { transform: skewX(-1.6deg); } to { transform: skewX(1.6deg); } }
/* a little more on hover: the ball spins up, the glasses clink, the giraffe has a look around */
.day:hover .day__art--disco { animation: art-swing 0.5s ease-in-out infinite alternate; }
.day:hover .day__art--toast { animation: art-clink 0.45s ease-in-out 3; }
.day:hover .day__art--bush { animation: art-sway 1.1s ease-in-out infinite alternate; }
@keyframes art-clink { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-5deg) translateY(-3px); } 60% { transform: rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .day__art { animation: none !important; } }
/* phone: same three-part row as desktop (date, words, drawing), scaled down */
@media (max-width: 0px) {
  .day { grid-template-columns: auto 1fr auto; column-gap: 1rem; }
  .day__num { font-size: 3.6rem; }
  .day__title { font-size: 1.35rem; }
  .day__art { grid-column: auto; justify-self: end; height: 4.2rem; }
  .day__art--bush { height: 3.3rem; }
}

.dress__notes { grid-template-columns: repeat(3, minmax(0, 24rem)); justify-content: space-between; }
@media (max-width: 0px) { .dress__notes { grid-template-columns: 1fr; } }

/* copy additions */
.pups__sub { margin: 0.3rem 0 0; max-width: 31rem; font-size: clamp(0.95rem, 1.1vw, 1.1rem); line-height: 1.55; opacity: 0.85; }
.pups__sub em { font-family: var(--display); font-size-adjust: none; font-style: italic; }
.dress__tag { margin: 0; font-family: var(--display); font-size-adjust: none; font-style: italic; font-size: clamp(1.5rem, 2.4vw, 2.3rem); line-height: 1.15; letter-spacing: -0.01em; }
.details__lede { max-width: 34rem; margin: 0 0 clamp(2rem, 4vw, 3.5rem); }
.rsvp__lede { margin: 0; }
@media (min-width: 0px) {
  .dress__head .title { grid-row: 2 / span 2; }
  .dress__tag { grid-column: 8 / span 5; grid-row: 2; align-self: end; }
  .dress__head .lede { grid-row: 3; align-self: start; }
}
@media (max-width: 0px) { .dress__tag { grid-column: 1 / -1; } }
.closing__photo img { object-position: 50% 26%; }

/* ─────────────────────────────────────────────
   Details: a second collage in lilac, held in view while the questions scroll past
   ───────────────────────────────────────────── */
.collage--details { grid-column: 1 / span 5; grid-row: 1; height: auto; min-height: 0; aspect-ratio: 5 / 6; margin-block: 0; align-self: start; }
@media (min-width: 0px) {
  .details__grid .details__copy { grid-column: 7 / span 6; grid-row: 1; }
  .collage--details { position: sticky; top: 14vh; }
}
.collage--details .collage__strip { left: 22%; top: 44%; width: 52%; height: 52%; background: var(--lilac); }
.collage--details .collage__wide { left: auto; right: 0; top: 0; width: 64%; }
.collage--details .collage__wide .collage__frame { aspect-ratio: 2 / 3; }
.collage--details .collage__tall { right: auto; left: 0; bottom: 0; width: 40%; }
@media (max-width: 0px) {
  .collage--details { grid-column: 1 / -1; width: 100%; height: auto; margin-bottom: 3rem; }
}

/* ─────────────────────────────────────────────
   The road's ending: the lodge settles into its line drawing on paper
   ───────────────────────────────────────────── */
.safari__cap { z-index: 2; }
.safari__paper { position: absolute; inset: 0; z-index: 3; background: var(--linen); opacity: 0; pointer-events: none; }
.safari__sketch { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; pointer-events: none; }
.safari__ink { --w: min(88vw, 100svh * 2.1); width: var(--w); aspect-ratio: 1600 / 533; background: var(--ink); -webkit-mask: url("../assets/art/ubunye.png") center / contain no-repeat; mask: url("../assets/art/ubunye.png") center / contain no-repeat; opacity: 0; }
.safari__place { position: absolute; left: 0; right: 0; top: calc(50% + min(88vw, 100svh * 2.1) * 0.1666 + 1.5rem); z-index: 4; margin: 0; text-align: center; color: var(--ink); opacity: 0; visibility: hidden; }

/* ─────────────────────────────────────────────
   Dress code: tap a colour for outfit ideas (popup styles: .look, at the end)
   ───────────────────────────────────────────── */
.palette li[data-inspo] { cursor: pointer; }
.palette li[data-inspo]:focus-visible { outline: 1px solid var(--fg); outline-offset: 6px; }
.palette__tip { margin-top: 2.2rem; text-align: center; opacity: 0.6; }

/* ─────────────────────────────────────────────
   The R&D monogram: one ink mask, coloured by whatever it sits on
   ───────────────────────────────────────────── */
.mono { display: inline-block; vertical-align: middle; aspect-ratio: 600 / 709; height: 1em; background: currentColor; -webkit-mask: url(../assets/art/monogram.png) center / contain no-repeat; mask: url(../assets/art/monogram.png) center / contain no-repeat; }
.nav__mark { display: inline-flex; align-items: center; }
.nav__mark .mono { height: 2.5rem; }
.loader__mark .mono { height: 2.5rem; }
.footer__mark .mono { height: 3.6rem; }

/* ─────────────────────────────────────────────
   Stay: accommodation and the banking slip
   ───────────────────────────────────────────── */
.stay__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(1rem, 2vw, 2rem); align-items: center; }
.stay__copy { grid-column: 1 / span 6; display: grid; gap: 1.8rem; justify-items: start; }
.stay__steps { list-style: none; margin: 1rem 0 0; padding: 0; width: 100%; max-width: 32rem; border-top: 1px solid color-mix(in srgb, var(--fg) 28%, transparent); }
.stay__steps li { display: grid; grid-template-columns: 3.2rem 1fr; padding: 1.3rem 0; border-bottom: 1px solid color-mix(in srgb, var(--fg) 28%, transparent); }
.stay__steps span { font-family: var(--display); font-size-adjust: none; font-style: italic; font-size: 1.3rem; line-height: 1.3; }
.stay__steps p { margin: 0; }
.stay__steps strong { font-weight: 600; }
.stay__art { grid-column: 8 / span 5; position: relative; padding: 4rem 0 4rem 3rem; }
.stay__block { position: absolute; left: 0; top: 0; width: 62%; height: 78%; background: var(--fig); }
.stay__mono { position: absolute; right: -0.5rem; bottom: -0.5rem; height: clamp(7rem, 12vw, 11rem); color: var(--fg); opacity: 0.1; }
.slip { position: relative; background: var(--linen); color: var(--ink); padding: clamp(1.6rem, 3vw, 2.6rem); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.4); border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.slip__head { margin: 0 0 1.4rem; }
.slip__list { margin: 0; }
.slip__row { display: grid; grid-template-columns: 9.5rem 1fr; align-items: baseline; gap: 1rem; padding: 0.95rem 0; border-top: 1px dashed color-mix(in srgb, var(--ink) 25%, transparent); }
.slip__row:last-child { border-bottom: 1px dashed color-mix(in srgb, var(--ink) 25%, transparent); }
.slip__row dt { font-size: 0.62rem; letter-spacing: 0.26em; text-transform: uppercase; opacity: 0.7; }
.slip__row dd { margin: 0; display: flex; justify-content: space-between; gap: 1rem; font-family: var(--display); font-size-adjust: none; font-size: 1.25rem; letter-spacing: -0.01em; }
.slip__copy { font-family: inherit; font-size: 0.58rem; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.6; text-decoration: underline; text-underline-offset: 3px; }
.slip__copy:hover { opacity: 1; }
.slip__foot { margin: 1.4rem 0 0; font-size: 0.85rem; opacity: 0.7; }
@media (max-width: 0px) {
  .stay__copy, .stay__art { grid-column: 1 / -1; }
  .stay__art { margin-top: 3rem; padding: 2.5rem 0 2.5rem 1.5rem; }
  .slip__row { grid-template-columns: 1fr; gap: 0.3rem; }
}

/* ─────────────────────────────────────────────
   Gifts: a photo, a soft pink block and the banking slip (mirror of Stay)
   ───────────────────────────────────────────── */
.gifts__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(1rem, 2vw, 2rem); align-items: center; }
.gifts__art { grid-column: 1 / span 6; position: relative; min-height: clamp(34rem, 48vw, 42rem); }
.gifts__block { position: absolute; left: 14%; top: 10%; width: 54%; height: 62%; background: var(--soft-pink); }
.gifts__photo { position: absolute; left: 0; top: 0; width: 46%; aspect-ratio: 2 / 3; margin: 0; overflow: hidden; }
.gifts__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.gifts__slip { position: absolute; right: 0; bottom: 0; width: min(54%, 24rem); z-index: 2; padding: clamp(1.3rem, 2.2vw, 2rem); }
.gifts__slip .slip__row { grid-template-columns: 1fr; gap: 0.25rem; padding: 0.7rem 0; }
.gifts__slip .slip__row dd { font-size: 1.15rem; }
@media (min-width: 0px) {
  .gifts__art { min-height: clamp(38rem, 52vw, 46rem); }
  .gifts__photo { width: 56%; }
  .gifts__block { left: 22%; top: 8%; width: 56%; height: 70%; }
}
.gifts__copy { grid-column: 8 / span 5; display: grid; gap: 1.4rem; justify-items: start; }
.gifts__copy > p:not(.label):not(.lede) { max-width: 27rem; margin: 0; }
.gifts__sign { font-family: var(--display); font-size-adjust: none; font-style: italic; font-size: clamp(1.6rem, 2.4vw, 2.2rem); letter-spacing: -0.01em; margin-top: 0.6rem !important; }
@media (max-width: 0px) {
  .gifts__copy { grid-column: 1 / -1; grid-row: 1; margin-bottom: 3rem; }
  .gifts__art { grid-column: 1 / -1; min-height: 0; display: grid; gap: 0; padding-bottom: 0; }
  .gifts__photo { position: relative; width: 70%; }
  .gifts__block { left: 20%; top: 8%; width: 70%; height: 40%; }
  .gifts__slip { position: relative; width: auto; margin: -4rem 0 0 8%; }
}

/* ─────────────────────────────────────────────
   Nav band: content disappears behind the bar instead of running through it
   ───────────────────────────────────────────── */
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--bg); box-shadow: 0 1px 0 color-mix(in srgb, var(--fg) 10%, transparent); opacity: 0; transition: opacity 0.45s var(--ease); }
.nav.is-solid::before { opacity: 1; }
/* over full-bleed photos and the night scenes: a soft dark fade instead of a cream bar */
/* one look everywhere once you've scrolled: a white band with ink type (the cover keeps its clear, white-type nav) */
.nav::before { background: var(--linen); box-shadow: 0 1px 0 rgba(20, 20, 20, 0.08); }
.nav.is-solid, .nav.is-solid.on-dark { color: var(--ink); }
.nav.is-solid.on-dark .nav__rsvp:hover span { color: var(--linen); }
body.menu-open .nav.is-solid { color: var(--linen); }
body.menu-open .nav::before { opacity: 0; }

/* tablet: all seven colours in one row, like desktop */
@media (max-width: 0px) { .palette { grid-template-columns: repeat(7, 1fr); } }
/* phone: palette as 4 + 3, the second row centred */
@media (max-width: 0px) {
  .palette { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.2rem 0.6rem; }
  .palette li { flex: 0 0 calc((100% - 1.8rem) / 4); }
}

/* ═════════════════════════════════════════════
   Phones: the laptop layout, scaled
   Everything sized in rem / vw shrinks in proportion (1rem = 16px on a 1440px laptop),
   so placements match the laptop; text gets a readable floor.
   ═════════════════════════════════════════════ */
@media (max-width: 899.5px) {
  html { font-size: calc(100vw / 90); }
  body { font-size: 12.5px; }

  /* nav: the links don't fit, so the menu button stands in for them */
  .nav { grid-template-columns: 1fr auto; padding: 12px var(--gutter); }
  .nav__links, .nav__rsvp { display: none; }
  .nav__toggle { display: block; margin-right: -10px; }
  .nav__mark .mono { height: 34px; }
  .folio { display: none; }

  /* full-screen moments keep filling the phone */
  .hero__names { top: 12svh; font-size: 10.8vw; }
  .hero__meta .label { bottom: 2.2rem; }
  .hero__ph img { object-position: 57% 70%; }
  .pups__plate { width: min(92vw, (100svh - 22rem) * 1.882); }
  .pups__title { font-size: min(9vw, 7.2vh); }
  .pups__sub { font-size: 12.5px; }
  .pups__name { font-size: 13px; }
  .safari__title { font-size: 2.6rem; font-size: max(10vw, 2.4rem); }

  /* photo spreads keep the laptop's landscape frame, so the crop matches */
  .spread { height: 62.5vw; min-height: 0; }
  .spread--short { height: 48.75vw; }

  /* readable floors for small type */
  .label { font-size: 7.5px; letter-spacing: 0.24em; }
  .lede { font-size: 13.5px; line-height: 1.55; }
  .link, .btn { font-size: 7.5px; letter-spacing: 0.22em; }
  .btn { padding: 8px 12px; gap: 8px; }
  .invite__text { font-size: max(2.75vw, 12.5px); }
  .day__title { font-size: max(2.6vw, 12px); }
  .day__text { font-size: 11px; }
  .palette span { font-size: 6px; letter-spacing: 0.12em; }
  .palette__tip { font-size: 7px; }
  .faq summary { font-size: 13.5px; padding: 12px 0; gap: 12px; }
  .faq summary::after { width: 10px; height: 10px; }
  .faq__a p, .runsheet { font-size: 12px; }
  .stay__steps span { font-size: 12px; }
  .stay__steps p { font-size: 11.5px; line-height: 1.5; }
  .slip__row dt { font-size: 6px; letter-spacing: 0.16em; }
  .slip__row dd { font-size: 11px; }
  .slip__copy { font-size: 6px; letter-spacing: 0.14em; }
  .slip__foot { font-size: 9px; }
  .dress__notes p:not(.label) { font-size: 11.5px; line-height: 1.5; }
  .gifts__copy > p:not(.label):not(.lede) { font-size: 11.5px; }
  .gifts__sign { font-size: max(2.4vw, 15px); }
  .countdown span { font-size: 6px; letter-spacing: 0.18em; }
  .pups__name, .collage figcaption .label { font-size: 6.5px; }
}

/* phones (scaled layout): banking rows stack label over value; the closing title stays a statement */
@media (max-width: 899.5px) {
  .slip { padding: 10px; }
  .slip__head { margin-bottom: 6px; }
  .slip__row, .gifts__slip .slip__row { grid-template-columns: 1fr; gap: 2px; padding: 5px 0; }
  .slip__row dd { font-size: 10.5px; }
  .closing__title { font-size: 12vw; }
}
@media (max-width: 899.5px) {
  .gifts__slip { width: 62%; }
  .gifts__slip .slip__row dd { font-size: 10.5px; }
}
@media (max-width: 899.5px) { .gifts__art { min-height: 82vw; } .gifts__slip { width: 58%; } }

@media (max-width: 899.5px) { .loader__mark .mono { height: 34px; } .loader__mark { top: 12px; } }

/* phones: the date stacks, big type over a wide photograph */
@media (max-width: 899.5px) {
  .date__copy { left: var(--gutter); right: var(--gutter); width: auto; top: 0; bottom: auto; height: 39%; padding-top: 58px; align-content: center; gap: 12px; }
  .date__type { font-size: 15.5vw; }
  .date__photo { left: var(--gutter); right: var(--gutter); width: auto; top: 39%; bottom: 4svh; }
  .date__photo img { object-position: 50% 28%; }
}

/* phones: the cover is a still, full-screen photograph */
@media (max-width: 899.5px) {
  .hero__ph img { object-position: 57% 70%; }
  .hero__hint { display: none; }
}

/* phones: the invitation stacks, the words big across the page, the collage full width beneath */
@media (max-width: 899.5px) {
  .invite { padding-block: 64px 40px; }
  .invite__grid { row-gap: 28px; }
  .invite__copy { grid-column: 1 / -1; gap: 16px; }
  .invite__copy .label { font-size: 9px; }
  .invite__text { font-size: 7.4vw; line-height: 1.16; }
  .invite .collage { grid-column: 1 / -1; height: 100vw; min-height: 0; margin-block: 0; }
  .invite .collage__wide { width: 82%; }
  .invite .collage__tall { width: 42%; right: 0; }
  .invite .collage__strip { left: 14%; top: 36%; width: 50%; height: 56%; }
}

/* phones: the welcoming committee, bigger words and a shorter note */
@media (max-width: 899.5px) {
  .pups__more { display: none; }
  .pups__pin { gap: 28px; padding-top: 58px; }
  .pups__head { gap: 12px; }
  .pups__pre { font-size: 9px; }
  .pups__title { font-size: 10.2vw; }
  .pups__sub { font-size: 15px; max-width: 78vw; }
  .pups__name { font-size: 15px; }
}

/* phones: our weekend fills the screen, a taller photograph and bigger days */
@media (max-width: 899.5px) {
  .weekend .spread { height: 96vw; }
  .weekend .days { margin-top: 28px; }
  .day { grid-template-columns: 22vw 1fr auto; padding-block: 22px; column-gap: 18px; }
  .day__num { font-size: 19vw; }
  .day .label { font-size: 8.5px; }
  .day__body { gap: 6px; }
  .day__title { font-size: 17px; }
  .day__text { font-size: 13px; }
  .day__art { height: 64px; }
  .day__art--bush { height: 50px; }
}

/* phones: location, stay and dress code stack into one readable column */
@media (max-width: 899.5px) {
  .label { font-size: 8.5px; }

  /* location: a taller photograph, the words stacked under the title */
  .location .spread { height: 118vw; }
  .location .spread__row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .location .spread__side { width: auto; max-width: 80vw; gap: 14px; padding-bottom: 0; }
  .location .lede { font-size: 16px; }
  .location .btn { font-size: 8.5px; padding: 10px 14px; }

  /* stay: words first, then the banking slip at full width */
  .stay.section { padding-block: 56px; }
  .stay__copy, .stay__art { grid-column: 1 / -1; }
  .stay__copy { gap: 14px; }
  .stay .lede { font-size: 17px; }
  .stay__steps { max-width: none; margin-top: 6px; }
  .stay__steps li { grid-template-columns: 34px 1fr; padding: 14px 0; }
  .stay__steps span { font-size: 16px; }
  .stay__steps p { font-size: 14.5px; line-height: 1.55; }
  .stay__art { margin-top: 32px; padding: 26px 0 26px 22px; }
  .stay__block { width: 70%; height: 80%; }
  .stay__mono { height: 90px; right: -6px; bottom: -6px; }
  .stay .slip { padding: 18px 18px 16px; }
  .stay .slip__head { margin-bottom: 10px; }
  .stay .slip__row { grid-template-columns: 38% 1fr; gap: 8px; padding: 10px 0; }
  .stay .slip__row dt { font-size: 8.5px; letter-spacing: 0.18em; }
  .stay .slip__row dd { font-size: 15px; }
  .stay .slip__copy { font-size: 8px; }
  .stay .slip__foot { font-size: 12.5px; margin-top: 12px; }

  /* dress code: the words full width, the palette in two rows, the notes one under another */
  .dress.section { padding-block: 56px; }
  .dress__head { row-gap: 14px; }
  .dress__head .title, .dress__head .lede { grid-column: 1 / -1; grid-row: auto; }
  .dress .lede { font-size: 16px; }
  .palette { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 10px; margin-top: 32px; }
  .palette li { flex: 0 0 calc((100% - 30px) / 4); gap: 8px; }
  .palette span { font-size: 8px; letter-spacing: 0.16em; }
  .palette__tip { font-size: 8.5px; margin-top: 20px; }
  .dress__notes { grid-template-columns: 1fr; gap: 20px; margin-top: 32px; padding-top: 22px; }
  .dress__notes > div { gap: 6px; }
  .dress__notes p:not(.label) { font-size: 14.5px; max-width: none; }
}
@media (max-width: 899.5px) {
  .location .lede, .stay .lede, .dress .lede { max-width: none; }
  .location .spread__side { max-width: 86vw; }
  .palette .arch { aspect-ratio: 1 / 1.4; }
}

/* ─────────────────────────────────────────────
   RSVP dialog (js/rsvp.js)
   ───────────────────────────────────────────── */
.rsvp-dlg {
  --fg: var(--ink); --bg: var(--linen);
  width: min(100% - 2rem, 40rem); max-height: min(100% - 2rem, 52rem); padding: 0; border: 0; border-radius: 4px;
  background: var(--linen); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.rsvp-dlg::backdrop { background: rgba(13, 13, 13, 0.72); backdrop-filter: blur(4px); }
.rsvp-dlg[open] { animation: rsvp-in 0.5s var(--ease); }
@keyframes rsvp-in { from { opacity: 0; transform: translateY(24px); } }
.rsvp-dlg__inner { position: relative; max-height: inherit; overflow-y: auto; overscroll-behavior: contain; padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 3.5rem); display: grid; gap: 1.2rem; }
.rsvp-dlg__close { position: absolute; top: 0.6rem; right: 0.8rem; width: 2.75rem; height: 2.75rem; border: 0; background: none; color: inherit; font: 400 2rem/1 var(--display); cursor: pointer; }
.rsvp-dlg__title, .rsvp-dlg__thanks { margin: 0; font-family: var(--display); font-size-adjust: none; font-weight: 400; font-size: clamp(2.6rem, 7vw, 4rem); line-height: 0.95; letter-spacing: -0.02em; }
.rsvp-dlg__thanks { font-style: italic; }
.rsvp-dlg p { margin: 0; }
.rsvp-step { display: grid; gap: 1.4rem; }
.rsvp-step[hidden] { display: none; }
.rsvp-note { font-style: italic; opacity: 0.75; }

.field { display: grid; gap: 0.35rem; }
.field[hidden] { display: none; }
.field input, .field textarea {
  width: 100%; padding: 0.7rem 0; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); border-radius: 0;
  background: none; color: inherit; font: inherit; font-size: max(16px, 1.1rem); /* 16px+ stops iOS zooming in */
  transition: border-color 0.3s;
}
.field textarea { resize: vertical; min-height: 4.5rem; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }

.choice { margin: 0; padding: 0; border: 0; display: grid; gap: 0.6rem; }
.choice legend { padding: 0; margin-bottom: 0.6rem; }
.choice__opts { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.choice__opts label { position: relative; cursor: pointer; }
.choice__opts input { position: absolute; opacity: 0; pointer-events: none; }
.choice__opts span { display: inline-block; padding: 0.75rem 1.2rem; border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); border-radius: 999px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.choice__opts input:checked + span { background: var(--ink); color: var(--linen); border-color: var(--ink); }
.choice__opts input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.rsvp-yes { display: grid; gap: 1.4rem; }
.rsvp-yes[hidden] { display: none; }
.rsvp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.rsvp-msg { color: var(--wildberry); }
.rsvp-msg:empty { display: none; }
.rsvp-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.rsvp-actions .btn { margin-left: auto; cursor: pointer; font-family: inherit; }
button.link { border: 0; background-color: transparent; color: inherit; font-family: inherit; cursor: pointer; }
.btn.is-busy { opacity: 0.55; pointer-events: none; }
button.btn { font-family: inherit; cursor: pointer; }
html.rsvp-open .cursor { opacity: 0; }

/* phone menu: fixed sizes (the scaled rem makes it tiny otherwise) */
@media (max-width: 899.5px) {
  .menu { padding: 88px 28px max(28px, env(safe-area-inset-bottom)); justify-content: flex-start; overflow-y: auto; }
  .menu nav { margin-block: auto; gap: 0; }
  .menu nav a { font-size: clamp(30px, 8.6vw, 44px); line-height: 1.1; gap: 18px; padding: 12px 0; border-bottom: 1px solid rgba(251, 251, 249, 0.12); }
  .menu nav a:last-child { border-bottom: 0; }
  .menu nav a small { flex: none; width: 24px; font-size: 11px; letter-spacing: 0.2em; opacity: 0.5; }
  .menu__foot { margin-top: 32px; font-size: 11px; letter-spacing: 0.24em; line-height: 1.6; }
}


/* dress code: outfit-ideas popup (main.js) */
.look {
  --fg: var(--ink); --bg: var(--linen);
  width: min(100% - 24px, 560px); max-height: calc(100svh - 24px); padding: 0; border: 0; border-radius: 4px; overflow: hidden;
  background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  display: none; flex-direction: column;
}
.look[open] { display: flex; animation: rsvp-in 0.5s var(--ease); }
.look::backdrop { background: rgba(13, 13, 13, 0.72); backdrop-filter: blur(4px); }
.look__head { position: relative; display: grid; gap: 4px; padding: 20px 64px 12px 22px; border-top: 6px solid var(--sw, var(--ink)); }
.look__head .label { margin: 0; font-size: 11px; }
.look__name { margin: 0; font-family: var(--display); font-size-adjust: none; font-weight: 400; font-style: italic; font-size: 32px; line-height: 1.05; }
.look__close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: none; color: inherit; font: 400 30px/1 var(--display); cursor: pointer; }
.look__img { display: block; flex: 1 1 auto; min-height: 0; width: 100%; object-fit: contain; }
.look__nav { display: flex; justify-content: space-between; padding: 10px 14px 14px; }
.look__nav button { width: 48px; height: 48px; border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); border-radius: 50%; background: none; color: inherit; font-size: 18px; cursor: pointer; transition: background-color 0.3s, color 0.3s; }
.look__nav button:hover { background: var(--ink); color: var(--linen); }

/* phone: the little details stack, with a bigger collage and readable questions */
@media (max-width: 899.5px) {
  .details__grid { display: block; }
  .collage--details { position: relative; top: 0; width: 68%; margin: 0 auto 32px; }
  .details__lede { max-width: none; margin: 0 0 20px; font-size: 15px; line-height: 1.6; }
  .faq summary { font-size: 18px; padding: 16px 0; gap: 16px; }
  .faq summary::after { width: 12px; height: 12px; }
  .faq__a p { max-width: none; font-size: 15px; line-height: 1.6; }
  .faq__a > :last-child { margin-bottom: 20px; }
  .faq__a .link { font-size: 11px; }
}

/* phone: "Our next chapter" stacks: words first, then the photo with the banking slip overlapping it */
@media (max-width: 899.5px) {
  .gifts__grid { display: flex; flex-direction: column; align-items: stretch; }
  .gifts__copy { order: -1; gap: 14px; margin-bottom: 36px; }
  .gifts__copy .label { font-size: 11px; }
  .gifts__copy .lede { max-width: none; font-size: min(16px, 4.1vw); line-height: 1.55; } /* .lede caps its width at 27rem, which is tiny on phones */
  .gifts__copy > p:not(.label):not(.lede) { max-width: none; font-size: 15px; line-height: 1.6; }
  .gifts__sign { font-size: 22px; }

  .gifts__art { min-height: 0; display: grid; }
  .gifts__block { left: 12%; top: 3%; width: 74%; height: 62%; }
  .gifts__photo { position: relative; width: 60%; margin-left: 4%; }
  .gifts__slip { position: relative; width: 84%; margin: -72px 0 0 auto; padding: 18px 20px; }
  .gifts__slip .slip__head { font-size: 11px; margin-bottom: 8px; }
  .gifts__slip .slip__row { padding: 10px 0; gap: 3px; }
  .gifts__slip .slip__row dt { font-size: 10px; letter-spacing: 0.2em; }
  .gifts__slip .slip__row dd { font-size: 17px; align-items: baseline; }
  .gifts__slip .slip__copy { font-size: 10px; letter-spacing: 0.18em; padding: 6px 0 6px 12px; }
}

/* Italiana has no italic, so italic accents in display type use Cormorant Garamond italic instead (never a faked slant) */
html { font-synthesis: none; }
.title em, .mark em, .loader__mark em, .hero__amp, .plate__no, .gallery__bar, .rsvp__title, .closing__title em,
.lightbox__count, .loader__count, .folio__no, .marquee__track em, .date__type em, .pups__title em, .pups__name,
.pups__sub em, .dress__tag, .stay__steps span, .gifts__sign, .rsvp-dlg__thanks, .look__name { font-family: var(--accent); font-size-adjust: none; }

/* phone cover: the names stack (Ruben / & / Delné) so they can be set much larger */
@media (max-width: 899.5px) {
  .hero__names { flex-direction: column; align-items: center; gap: 0; top: 11svh; font-size: min(19vw, 12svh); line-height: 0.92; letter-spacing: -0.02em; }
  .hero__amp { font-size: 0.5em; line-height: 1; margin: 0.04em 0 0.02em; transform: none; }
}

/* Montserrat body: light weight, and scaled so it sits at the size the layout was drawn for */
body { font-weight: 300; font-size-adjust: 0.44; }

/* RSVP deadline: on desktop above the title; on phones it moves under the button, where the photo is darkest */
.rsvp__by-m { display: none; }
@media (max-width: 899.5px) {
  .rsvp__by { display: none; }
  .rsvp__by-m { display: block; margin: 0; font-size: 10px; letter-spacing: 0.2em; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
}

/* phone: the closing dates/venue and the footer were scaled down to near-invisible */
@media (max-width: 899.5px) {
  .closing__meta { gap: 6px 20px; }
  .closing__meta .label { font-size: 11px; letter-spacing: 0.22em; }
  .footer { padding: 18px var(--gutter) max(22px, env(safe-area-inset-bottom)); gap: 12px; }
  .footer .label { font-size: 11px; letter-spacing: 0.22em; opacity: 0.85; }
  .footer__mark .mono { height: 40px; }
}

/* location: the directions popup (Waze or Google Maps) */
.location__waze { margin: 0; font-size: 0.95em; opacity: 0.8; }
.maps {
  --fg: var(--ink); --bg: var(--linen);
  width: calc(100vw - 32px); max-width: 440px; padding: 36px 28px 30px; box-sizing: border-box; border: 0; border-radius: 4px;
  background: var(--linen); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); text-align: center;
}
.maps[open] { display: grid; gap: 14px; justify-items: center; animation: maps-in 0.25s ease-out; }
@keyframes maps-in { from { opacity: 0; } } /* fade only: no movement or resizing while it opens */
.maps::backdrop { background: rgba(13, 13, 13, 0.78); }
.maps p { margin: 0; }
.maps .label { font-size: 11px; }
.maps__title { margin: 0; font-family: var(--display); font-size-adjust: none; font-weight: 400; font-size: 32px; line-height: 1.1; }
.maps p:not(.label) { font-size: 15px; line-height: 1.55; max-width: 300px; }
.maps__opts { display: grid; gap: 10px; width: 100%; margin-top: 8px; }
.maps__opts .btn { justify-content: space-between; font-size: 11px; padding: 14px 18px 14px 22px; cursor: pointer; }
.maps__close { position: absolute; top: 6px; right: 8px; width: 44px; height: 44px; border: 0; background: none; color: inherit; font: 400 28px/1 var(--display); cursor: pointer; }
@media (max-width: 899.5px) { .location__waze { font-size: 13px; } }

/* phone: spread photos sit still, framed exactly (no parallax overscan) */
@media (max-width: 899.5px) {
  .spread__ph img { height: 100%; will-change: auto; }
}

/* banking cards: one clean font for every value, with room to breathe */
.slip__row dd { font-family: var(--serif); font-size-adjust: none; font-weight: 400; font-size: 1.05rem; letter-spacing: 0.01em; line-height: 1.4; font-variant-numeric: lining-nums; align-items: center; }
.slip__row dd [data-copy-src] { white-space: nowrap; }
.slip__copy { flex: none; }
@media (max-width: 899.5px) {
  .slip { padding: 16px 18px; }
  .slip__head { font-size: 11px; margin-bottom: 8px; }
  .slip__row, .gifts__slip .slip__row { padding: 10px 0; gap: 4px; }
  .slip__row dt, .gifts__slip .slip__row dt { font-size: 10px; letter-spacing: 0.18em; }
  .slip__row dd, .gifts__slip .slip__row dd { font-size: 15px; }
  .slip__copy, .gifts__slip .slip__copy { font-size: 10px; letter-spacing: 0.16em; padding: 6px 0 6px 12px; }
  .slip__foot { font-size: 12px; margin-top: 12px; }
}

/* phone: the RSVP opens full-screen, with sizes in px (rem is scaled tiny on phones) */
@media (max-width: 899.5px) {
  .rsvp-dlg { width: 100%; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; border-radius: 0; box-shadow: none; }
  .rsvp-dlg[open] { animation: maps-in 0.25s ease-out; }
  .rsvp-dlg__inner { height: 100%; max-height: none; padding: 64px 22px max(32px, env(safe-area-inset-bottom)); gap: 18px; align-content: start; }
  .rsvp-dlg .label { font-size: 11px; letter-spacing: 0.22em; }
  .rsvp-dlg__title, .rsvp-dlg__thanks { font-size: 48px; }
  .rsvp-dlg p, .rsvp-done-text { font-size: 15px; line-height: 1.55; }
  .rsvp-dlg__close { top: 10px; right: 10px; width: 48px; height: 48px; font-size: 34px; }
  .rsvp-step, .rsvp-yes { gap: 22px; }
  .field { gap: 6px; }
  .field input, .field textarea { font-size: 16px; padding: 10px 0; }
  .choice legend { margin-bottom: 10px; }
  .choice__opts { gap: 8px; }
  .choice__opts span { font-size: 11px; letter-spacing: 0.14em; padding: 13px 16px; }
  .rsvp-msg { font-size: 14px; }
  .rsvp-actions { gap: 14px; }
  .rsvp-actions .btn { font-size: 12px; letter-spacing: 0.2em; padding: 16px 22px 16px 26px; gap: 16px; }
  .rsvp-actions .link { font-size: 11px; }
}

/* RSVP: missing answers, sending, success */
.is-error .field-err, .field-err { margin: 2px 0 0; color: var(--wildberry); font-size: 13px; font-weight: 500; line-height: 1.4; }
.field.is-error input { border-bottom-color: var(--wildberry); border-bottom-width: 2px; }
.choice.is-error { padding: 12px 14px; margin-inline: -14px; background: color-mix(in srgb, var(--wildberry) 7%, transparent); border-left: 3px solid var(--wildberry); }
.choice.is-error .choice__opts span { border-color: color-mix(in srgb, var(--wildberry) 60%, transparent); }
.rsvp-msg { font-weight: 500; }

.btn.is-busy { opacity: 1; pointer-events: none; }
.btn.is-busy i { font-size: 0; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: rsvp-spin 0.7s linear infinite; transform: none; }
@keyframes rsvp-spin { to { rotate: 360deg; } }
form[aria-busy="true"] .choice, form[aria-busy="true"] .field { opacity: 0.55; transition: opacity 0.2s; }

.rsvp-check { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--dark-green); color: var(--linen); animation: rsvp-pop 0.5s var(--ease); }
@keyframes rsvp-pop { from { transform: scale(0.6); opacity: 0; } }

/* ─────────────────────────────────────────────
   Line-art sketches on the colour collages
   Each one is cropped straight out of assets/sketches.jpeg (a 1536×1024 sheet):
   --x/--y/--w/--h are its box on the sheet, and "multiply" drops the white paper so only the ink shows.
   ───────────────────────────────────────────── */
.sk {
  position: absolute; z-index: 3; display: block; pointer-events: none;
  background: url("../assets/sketches.jpeg") no-repeat; mix-blend-mode: multiply;
  aspect-ratio: var(--w) / var(--h);
  background-size: calc(1536 / var(--w) * 100%) auto;
  background-position: calc(var(--x) / (1536 - var(--w)) * 100%) calc(var(--y) / (1024 - var(--h)) * 100%);
}
.sk--bow     { --x: 835;  --y: 780; --w: 305; --h: 244; }
.sk--coupe   { --x: 575;  --y: 775; --w: 240; --h: 230; }
.sk--rings   { --x: 1205; --y: 805; --w: 300; --h: 210; }
.sk--poppies { --x: 20;   --y: 695; --w: 270; --h: 320; }
.sk--wine    { --x: 1160; --y: 30;  --w: 140; --h: 335; }
.sk--fig     { --x: 846;  --y: 530; --w: 250; --h: 240; clip-path: polygon(0 0, 82% 0, 100% 36%, 100% 100%, 0 100%); } /* corner cut hides a neighbouring flower */
.sk--cake    { --x: 380;  --y: 40;  --w: 284; --h: 405; }
.sk--roses   { --x: 700;  --y: 38;  --w: 300; --h: 325; }

/* desktop placements: tucked into the gaps around the photos, half on the colour, half on the paper */
.invite .sk--bow     { right: 3%; top: -6%; width: 17%; rotate: 8deg; }
.invite .sk--coupe   { left: 4%; bottom: -2%; width: 13%; rotate: -6deg; }
.collage--details .sk--rings   { left: 2%; top: 8%; width: 28%; rotate: -8deg; }
.collage--details .sk--poppies { right: -2%; bottom: -4%; width: 22%; rotate: 6deg; }
.stay__art .sk--wine { right: 4%; top: -7%; width: 11%; rotate: 8deg; }
.stay__art .sk--fig  { left: -7%; bottom: -5%; width: 17%; rotate: -8deg; }
.gifts__art .sk--cake  { right: 4%; top: 0; width: 20%; rotate: 4deg; }
.gifts__art .sk--roses { left: 2%; bottom: 2%; width: 24%; rotate: -6deg; }

/* phones: fewer and a touch larger, kept clear of text */
@media (max-width: 899.5px) {
  .invite .sk--bow     { right: 0; top: -4%; width: 22%; }
  .invite .sk--coupe   { left: 2%; bottom: -4%; width: 17%; }
  .collage--details .sk--rings   { left: -4%; top: 4%; width: 34%; }
  .collage--details .sk--poppies { right: -8%; bottom: -6%; width: 26%; }
  .stay__art .sk--wine { right: 3%; top: -26px; width: 48px; }
  .stay__art .sk--fig  { display: none; }
  .gifts__art .sk--cake  { right: 2%; top: 4%; width: 30%; }
  .gifts__art .sk--roses { display: none; }
}

/* dogs: the line under the film */
.pups__foot { display: grid; justify-items: center; text-align: center; padding-inline: var(--gutter); color: var(--ink); }
.pups__foot .pups__sub { margin: 0; }

/* RSVP on desktop: the inner panel is the scroller, with a real height to scroll within
   (a % max-height resolved to nothing, so the wheel had no scroll area to move) */
@media (min-width: 900px) {
  .rsvp-dlg { overflow: hidden; }
  .rsvp-dlg__inner { max-height: min(100vh - 2rem, 52rem); max-height: min(100dvh - 2rem, 52rem); overflow-y: auto; overscroll-behavior: contain; }
}

/* RSVP: name and surname side by side (stacked on narrow phones) */
.rsvp-names { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.2rem; }
@media (max-width: 899.5px) { .rsvp-names { gap: 22px 16px; } }
@media (max-width: 420px) { .rsvp-names { grid-template-columns: 1fr; } }
