/* Wedding invitation — scrollable, cinematic */
@import url("assets/colors_and_type.css");

* { box-sizing: border-box; }
html {
  scroll-behavior: auto;
}
html.snap-active {
  scroll-snap-type: y proximity;
  scroll-padding-top: 2px;
  overscroll-behavior: none;
}
html.snap-active body {
  overscroll-behavior: none;
}
html.snap-active.scroll-animating {
  scroll-snap-type: none;
}
html.snap-active.snap-touch {
  scroll-snap-type: none;
}
html.snap-active.snap-touch,
html.snap-active.snap-touch body {
  touch-action: none;
  overscroll-behavior: none;
}
html.snap-active.snap-touch button,
html.snap-active.snap-touch a,
html.snap-active.snap-touch input,
html.snap-active.snap-touch textarea,
html.snap-active.snap-touch select,
html.snap-active.snap-touch .scroll-cue,
html.snap-active.snap-touch .cal-modal-panel {
  touch-action: manipulation;
}
html.snap-active.snap-touch .sect.photo .sect-bg img {
  will-change: auto;
}
html, body { margin: 0; padding: 0; }
@media (min-width: 960px) {
  html {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  html::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
}
body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* paper grain across whole document */
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='9'/><feColorMatrix values='0 0 0 0 0.16  0 0 0 0 0.14  0 0 0 0 0.12  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* lock body scroll while envelope is on screen */
body.locked { overflow: hidden; height: 100vh; }

/* ============================================================
   ENVELOPE — full-screen overlay before invitation reveal
   ============================================================ */
:root {
  --env-paper-grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='3' seed='17'/><feColorMatrix values='0 0 0 0 0.18  0 0 0 0 0.15  0 0 0 0 0.12  0 0 0 0.07 0'/></filter><rect width='100%25' height='100%25' filter='url(%23g)'/></svg>");
}

.env-stage {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  background:
    url("assets/backgrounds/envelope-bg.png") center center / cover no-repeat;
  background-color: #F5D4C4;
  z-index: 100;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.85s var(--ease-silk), visibility 0s linear 0.85s;
}
.env-stage.env-ready {
  animation: stage-intro 1.1s var(--ease-silk) both;
}
.env-stage:not(.env-ready) .env-scene,
.env-stage:not(.env-ready) .env-hint,
.env-stage:not(.env-ready) .soft-particles-envelope {
  opacity: 0;
  visibility: hidden;
  animation: none !important;
}
@keyframes stage-intro {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.env-stage.hide {
  animation: none !important;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.env-stage.closing {
  animation: stage-close 0.85s var(--ease-silk) forwards !important;
  pointer-events: none;
}
@keyframes stage-close {
  from { opacity: 1; }
  to   { opacity: 0; }
}
.env-stage.closing .env-scene {
  animation: env-close 0.75s var(--ease-silk) forwards !important;
}
@keyframes env-close {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(28px) scale(0.95);
  }
}
.env-stage.closing .env-asset {
  animation: none !important;
}
.env-stage.closing .env-hint {
  animation: hint-close 0.35s var(--ease-silk) forwards !important;
}
@keyframes hint-close {
  from { opacity: 0.35; }
  to   { opacity: 0; }
}

/* stacked: sliding letter + 3D envelope */
.env-stage-inner {
  display: grid;
  place-items: center;
  width: 100%;
}
.env-stage-inner > * { grid-area: 1 / 1; }

/* kiri — algab ümbrikus, liigub alla */
.env-letter-slide {
  width: min(480px, calc(100vw - 64px));
  z-index: 6;
  pointer-events: none;
  transform: translateY(-14vh) scale(0.94);
  opacity: 0;
}
.env-letter-slide.opening {
  z-index: 4;
  animation: letter-descend 1.55s var(--ease-rise) 0.65s forwards;
}
@keyframes letter-descend {
  0% {
    transform: translateY(-14vh) scale(0.94);
    opacity: 0;
  }
  18% { opacity: 1; }
  72% {
    transform: translateY(5vh) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(10vh) scale(1);
    opacity: 0;
  }
}
.env-letter-card {
  position: relative;
  background-image:
    var(--env-paper-grain),
    radial-gradient(130% 90% at 28% 8%, rgba(255, 252, 247, 0.9) 0%, transparent 48%),
    linear-gradient(168deg, #FDF9F2 0%, #F8F0E4 42%, #F2E8D8 100%);
  background-size: 180px 180px, auto, auto;
  border-radius: 2px;
  padding: var(--space-8) var(--space-6);
  box-shadow:
    inset 0 0 0 1px rgba(110, 80, 40, .1),
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -18px 36px rgba(150, 95, 65, 0.06),
    0 22px 50px -18px rgba(0, 0, 0, .42),
    0 2px 0 rgba(255, 252, 248, 0.4);
}
.env-letter-card > * { position: relative; z-index: 1; }

/* realistic envelope photo asset */
.env-scene {
  position: relative;
  width: min(92vw, 520px);
  z-index: 8;
  animation: env-intro 1.4s var(--ease-rise) 0.2s both;
  transition: opacity 0.75s var(--ease-silk), transform 0.75s var(--ease-silk);
}
@keyframes env-intro {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.93);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.env-scene.opening {
  opacity: 1;
  transform: none;
  animation: none;
}
.env-shell-wrap {
  display: block;
  width: 100%;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.env-shell-wrap:focus-visible .env-asset {
  outline: 2px solid rgba(150, 95, 65, 0.45);
  outline-offset: 6px;
}
.env-stage.opening .env-shell-wrap { pointer-events: none; cursor: default; }
.env-asset {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.55s var(--ease-silk), filter 0.55s var(--ease-silk);
  filter:
    drop-shadow(0 6px 12px rgba(90, 58, 38, 0.14))
    drop-shadow(0 22px 44px rgba(70, 45, 30, 0.2))
    drop-shadow(0 40px 72px rgba(50, 32, 22, 0.12));
  animation: env-shadow-in 1.4s var(--ease-rise) 0.2s both;
}
@keyframes env-shadow-in {
  from {
    filter:
      drop-shadow(0 2px 4px rgba(90, 58, 38, 0))
      drop-shadow(0 6px 12px rgba(70, 45, 30, 0));
  }
  to {
    filter:
      drop-shadow(0 6px 12px rgba(90, 58, 38, 0.14))
      drop-shadow(0 22px 44px rgba(70, 45, 30, 0.2))
      drop-shadow(0 40px 72px rgba(50, 32, 22, 0.12));
  }
}
.env-shell-wrap:hover .env-asset {
  transform: scale(1.012) translateY(-3px);
  filter:
    drop-shadow(0 8px 16px rgba(90, 58, 38, 0.16))
    drop-shadow(0 28px 52px rgba(70, 45, 30, 0.24))
    drop-shadow(0 48px 80px rgba(50, 32, 22, 0.14));
}
.env-stage.opening .env-asset {
  animation: asset-open 1.05s var(--ease-silk) 0.4s forwards;
}
@keyframes asset-open {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  28% {
    opacity: 1;
    transform: scale(1.025) translateY(-1.2vh);
  }
  100% {
    opacity: 0;
    transform: scale(0.94) translateY(5vh);
  }
}

.env-hint {
  position: absolute; bottom: 6%; left: 50%;
  transform: translateX(-50%) translateY(10px);
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(92, 68, 54, 0.58);
  white-space: nowrap;
  z-index: 4;
  opacity: 0;
  animation:
    hint-enter 0.9s var(--ease-silk) 1.05s forwards,
    hint-pulse 2.8s ease-in-out 2.2s infinite;
}
.env-hint.gone {
  opacity: 0;
  transition: opacity .4s;
  animation: none;
}
@keyframes hint-enter {
  to {
    opacity: 0.35;
    transform: translateX(-50%) translateY(0);
  }
}
@keyframes hint-pulse {
  0%, 100% { opacity: .35; transform: translateX(-50%) translateY(0); }
  50%      { opacity: .75; transform: translateX(-50%) translateY(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .env-stage:not(.env-ready) .env-scene,
  .env-stage:not(.env-ready) .env-hint {
    opacity: 0 !important;
    visibility: hidden;
  }
  .env-stage.env-ready,
  .env-stage.env-ready .env-scene,
  .env-stage.env-ready .env-asset,
  .env-stage.env-ready .env-hint {
    animation: none !important;
    opacity: 1;
    transform: none;
    filter: none;
  }
  .env-stage.env-ready .env-hint { transform: translateX(-50%); opacity: 0.35; }
  .letter-hero .letter-panel,
  .letter-hero::before { transition: none; }
  .letter-hero.letter-exiting .letter-panel {
    opacity: 1;
    transform: none;
  }
  .page.in .letter-panel { animation: none; }
  .env-stage.closing,
  .env-stage.closing .env-scene,
  .env-stage.closing .env-hint { animation: none !important; }
  .letter-hero.letter-exiting .letter-panel,
  .letter-hero.letter-exiting::before { animation: none !important; }
  .letter-particles,
  .soft-particles { display: none; }
}

/* shared invitation copy */
.invitation-content.center {
  text-align: center;
  align-items: center;
  width: 100%;
}
.invitation-content.center .lede,
.invitation-content.center .tiny,
.invitation-content.center .eyebrow {
  width: 100%;
}

/* golden monogram */
.mono-gold {
  background: linear-gradient(145deg, #FAEDB8 0%, #E8C875 22%, #D4A843 48%, #C9982E 72%, #F0D878 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 3px rgba(160, 115, 35, 0.4));
}
.mono-gold .amp {
  -webkit-text-fill-color: #C9982E;
  color: #C9982E;
  opacity: 0.95;
}

/* ============================================================
   PAGE — the long scrollable invitation
   ============================================================ */
.page {
  position: relative;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page.in {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.7s var(--ease-silk), visibility 0s;
}
.page.in .letter-panel {
  animation: letter-enter 1s var(--ease-rise) 0.12s both;
}
@keyframes letter-enter {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* letter hero — cream paper with grain */
.sect.letter-hero {
  background:
    radial-gradient(120% 80% at 50% 28%, var(--pearl) 0%, var(--ivory) 58%, var(--cream) 100%);
  position: relative;
}
.sect.letter-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--env-paper-grain);
  background-size: 200px 200px;
  opacity: 0.18;
  pointer-events: none;
  transition: opacity 0.58s var(--ease-silk);
}
.letter-hero .letter-panel {
  position: relative;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: opacity 0.58s var(--ease-silk), transform 0.58s var(--ease-silk);
}
.letter-particles,
.soft-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.env-stage .soft-particles {
  z-index: 2;
}
.soft-particles-envelope .soft-particle-heart {
  background: rgba(175, 95, 75, 0.5);
}
.soft-particles-envelope .soft-particle-dot {
  background: radial-gradient(circle at 35% 30%, rgba(210, 140, 100, 0.4) 0%, rgba(168, 100, 70, 0.22) 100%);
}
.letter-particle,
.soft-particle {
  position: absolute;
  bottom: -8%;
  width: var(--size);
  height: var(--size);
  animation: soft-particle-rise var(--dur) var(--ease-silk) var(--delay) infinite;
  opacity: 0;
}
.letter-particle-heart,
.soft-particle-heart {
  background: rgba(168, 108, 78, 0.55);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}
.letter-particle-dot,
.soft-particle-dot {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(201, 152, 46, 0.35) 0%, rgba(168, 120, 80, 0.2) 100%);
}
@keyframes soft-particle-rise {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(0.75);
    opacity: 0;
  }
  3% { opacity: var(--op); }
  88% { opacity: var(--op); }
  100% {
    transform: translate(var(--drift), -108vh) rotate(40deg) scale(1);
    opacity: 0;
  }
}
@keyframes letter-particle-rise {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(0.75);
    opacity: 0;
  }
  3% { opacity: var(--op); }
  88% { opacity: var(--op); }
  100% {
    transform: translate(var(--drift), -108vh) rotate(40deg) scale(1);
    opacity: 0;
  }
}
.letter-hero.letter-exiting .soft-particles,
.env-stage.closing .soft-particles,
.env-stage.hide .soft-particles {
  opacity: 0;
  transition: opacity 0.45s var(--ease-silk);
}
.letter-hero.letter-exiting .letter-panel {
  animation: letter-exit 0.72s var(--ease-silk) forwards !important;
  pointer-events: none;
}
@keyframes letter-exit {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(36px);
  }
}
.letter-hero.letter-exiting::before {
  animation: grain-exit 0.72s var(--ease-silk) forwards;
}
@keyframes grain-exit {
  from { opacity: 0.18; }
  to   { opacity: 0; }
}

/* progress indicator (slim line at top) */
.progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  z-index: 300;
  pointer-events: none;
}
.progress-bar {
  height: 100%;
  background: var(--terracotta);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform .15s linear;
}

/* tiny restart pill (top-right) */
.restart {
  position: fixed; top: 18px; right: 18px;
  font-family: var(--font-sans);
  font-size: 9px; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(42, 38, 32, .55);
  background: rgba(246, 239, 229, .8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  z-index: 300;
  transition: all .24s var(--ease-silk);
  opacity: 0;
}
.page.in ~ .restart { opacity: 1; }
.restart:hover { color: var(--terracotta); border-color: var(--terracotta); }

/* section base — full-viewport snap targets */
.sect {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--space-9) var(--space-6);
  overflow: hidden;
}
html.snap-active .page .sect {
  scroll-snap-align: start;
}
.sect.compact { min-height: 80vh; min-height: 80dvh; }
.sect.tall    { min-height: 100vh; min-height: 100dvh; }
.sect-inner {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  z-index: 2;
}
.sect-inner.center { text-align: center; }
.sect-inner.narrow { max-width: 480px; }
.sect.photo .sect-inner.stack > * {
  width: 100%;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}
.sect.photo .sect-inner.stack > .reveal {
  max-width: none;
}
.sect.photo .sect-inner.stack > .reveal > * {
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

/* photo sections */
.sect.photo { color: var(--pearl); }
.sect.photo .sect-bg {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
}
.sect.photo .sect-bg img {
  position: absolute; inset: -10% -5%;
  width: 110%; height: 120%;
  object-fit: cover;
  will-change: transform;
}
.sect.photo .sect-veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(42, 38, 32, .55) 0%, rgba(42, 38, 32, .2) 60%, rgba(42, 38, 32, .65) 100%),
    linear-gradient(180deg,
      rgba(42, 38, 32, .25) 0%,
      rgba(42, 38, 32, .05) 35%,
      rgba(42, 38, 32, .15) 65%,
      rgba(42, 38, 32, .55) 100%);
}
.sect.photo.date-slide .sect-veil {
  background:
    rgba(26, 22, 18, .22),
    radial-gradient(ellipse at 50% 50%, rgba(42, 38, 32, .72) 0%, rgba(42, 38, 32, .42) 60%, rgba(42, 38, 32, .8) 100%),
    linear-gradient(180deg,
      rgba(42, 38, 32, .48) 0%,
      rgba(42, 38, 32, .28) 35%,
      rgba(42, 38, 32, .38) 65%,
      rgba(42, 38, 32, .72) 100%);
}

/* text on photos — soft shadow for readability */
.sect.photo .mono,
.sect.photo .display-xl,
.sect.photo .display-lg,
.sect.photo .display-md,
.sect.photo .lede,
.sect.photo .body {
  text-shadow: 0 2px 30px rgba(0, 0, 0, .55), 0 1px 3px rgba(0, 0, 0, .35);
}
.sect.photo .display-xl,
.sect.photo .display-lg,
.sect.photo .display-md {
  color: var(--pearl);
}
.sect.photo .script {
  color: var(--pearl);
}

/* date slide — single serif voice */
.date-slide-copy .date-line {
  font-family: var(--font-serif);
  color: var(--pearl);
  text-align: center;
  text-wrap: pretty;
  margin: 0;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .55), 0 1px 3px rgba(0, 0, 0, .35);
}
.date-slide-copy .date-line-lede {
  font-size: clamp(20px, 3vw, 28px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.45;
}
.date-slide-copy .date-line-intro {
  font-size: clamp(20px, 3vw, 28px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.32;
}
.date-slide-copy .date-line-intro-times {
  display: block;
  margin-top: clamp(14px, 2.4vw, 22px);
  font-size: clamp(16px, 2.8vw, 18px);
  font-style: normal;
  font-weight: 400;
  line-height: 1.32;
}
.date-slide-copy .date-line-intro br {
  display: block;
  content: "";
  margin-top: 0;
  line-height: 1.32;
}
.date-slide-copy .date-line-hero,
.date-slide-copy .date-line-welcome {
  font-size: clamp(20px, 3vw, 28px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.45;
}
.date-slide-copy .date-line-body {
  font-size: clamp(14px, 2.4vw, 16px);
  font-style: normal;
  font-weight: 400;
  line-height: 1.6;
}
.date-slide-copy .date-line-body-lg {
  font-size: clamp(16px, 2.8vw, 18px);
  line-height: 1.62;
}
.date-slide-copy .date-line-body-lg,
.date-slide-copy .date-line-intro-times {
  font-style: normal;
  font-weight: 400;
}
@media (max-width: 720px) {
  .date-slide-copy .date-line-lede,
  .date-slide-copy .date-line-welcome,
  .date-slide-copy .date-line-intro {
    font-size: clamp(17px, 4.2vw, 22px);
  }
  .date-slide-copy .date-line-intro-times {
    font-size: clamp(15px, 4vw, 17px);
    line-height: 1.32;
  }
  .date-slide-copy .date-line-body {
    font-size: clamp(13px, 3.4vw, 15px);
    line-height: 1.55;
  }
  .date-slide-copy .date-line-body-lg {
    font-size: clamp(15px, 4vw, 17px);
    line-height: 1.58;
  }
  .date-slide .sect-inner.stack.gap-4 > * + * { margin-top: 12px; }
}

/* split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
.split .photo-arch {
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-photo);
}
.split .photo-arch img {
  width: 100%; height: 100%; object-fit: cover;
}
@media (max-width: 720px) {
  .split { grid-template-columns: 1fr; gap: var(--space-6); }
}

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--graphite);
  font-weight: 500;
}
.eyebrow.on-photo { color: rgba(246, 239, 229, .7); }

.script {
  font-family: var(--font-script);
  color: var(--terracotta);
  font-size: clamp(32px, 5vw, 40px);
  line-height: 1;
}

.accent-serif {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--terracotta);
  font-weight: 400;
}

.display-hero {
  font-family: var(--font-display);
  font-size: clamp(64px, 11vw, 140px);
  line-height: .92;
  letter-spacing: .01em;
  color: var(--ink);
  font-weight: 400;
}
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 110px);
  line-height: .95;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: .01em;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: .01em;
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: .01em;
}
.body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--graphite);
  font-weight: 400;
  text-wrap: pretty;
}
.body.on-photo { color: rgba(246, 239, 229, .85); }
.lede {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.5;
  font-style: italic;
  font-weight: 300;
  color: var(--ink);
  text-wrap: pretty;
}
.lede.on-photo { color: var(--pearl); }
.tiny {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--mist);
  font-weight: 500;
}
.tiny.on-photo { color: rgba(246, 239, 229, .55); }

/* monogram */
.mono {
  font-family: var(--font-display);
  line-height: .9;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .04em;
  font-weight: 400;
  letter-spacing: .02em;
  align-self: center;
}
.mono .amp {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--terracotta);
  font-size: .72em;
  font-weight: 300;
  margin: 0 .04em;
  transform: translateY(-0.04em);
}
.mono.on-photo { color: var(--pearl); }

/* ornamental rule */
.rule {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
}
.rule.center { justify-content: center; max-width: 280px; margin: 0 auto; }
.rule .line { flex: 1; height: 1px; background: var(--rule); }
.rule.center .line { max-width: 100px; }
.rule.on-photo .line { background: rgba(246, 239, 229, .35); }
.rule .glyph {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--ink);
  opacity: .7;
}
.rule.on-photo .glyph { color: var(--pearl); opacity: .85; }

/* scroll cue — tap to advance */
.scroll-cue {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--font-sans);
  font-size: 9px; letter-spacing: .45em; text-transform: uppercase;
  color: rgba(246, 239, 229, .55);
  z-index: 3;
  cursor: pointer;
  transition: opacity .3s var(--ease-silk), transform .3s var(--ease-silk);
}
.scroll-cue:hover { opacity: 0.85; transform: translateX(-50%) translateY(2px); }
.scroll-cue.dark { color: rgba(42, 38, 32, .5); }
.scroll-cue .line {
  width: 1px; height: 36px;
  background: currentColor;
  animation: scroll-line 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   COMPONENTS
   ============================================================ */
.btn {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  padding: 16px 30px;
  border-radius: 999px;
  background: var(--terracotta);
  color: var(--pearl);
  transition: all .24s var(--ease-silk);
  display: inline-flex; align-items: center; gap: 10px;
}
.btn:hover { background: var(--rust); transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn:active { transform: scale(.98); }

.btn-ghost {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  border: none;
  color: var(--ink);
  padding: 8px 0;
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-ghost::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--ink); transition: background .3s;
}
.btn-ghost:hover { color: var(--terracotta); }
.btn-ghost:hover::after { background: var(--terracotta); }
.btn-ghost.on-photo { color: var(--pearl); }
.btn-ghost.on-photo::after { background: var(--pearl); }
.btn-ghost.on-photo:hover { color: var(--peach); }
.btn-ghost.on-photo:hover::after { background: var(--peach); }

/* venue / info card */
.info-card {
  border: 1px solid var(--rule);
  padding: 26px 28px;
  display: flex; flex-direction: column; gap: 8px;
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(4px);
}
.info-address {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--ink);
}
.info-card.on-photo {
  background: rgba(42, 38, 32, 0.42);
  border-color: rgba(246, 239, 229, 0.22);
  backdrop-filter: blur(10px);
}
.info-address.on-photo { color: var(--pearl); }

/* schedule timeline */
.timeline { display: flex; flex-direction: column; gap: 6px; position: relative; margin-top: 12px; }
.timeline::before {
  content: ''; position: absolute; left: 56px; top: 18px; bottom: 18px; width: 1px;
  background: var(--rule);
}
.tl-row {
  display: grid; grid-template-columns: 100px 1fr; gap: var(--space-5);
  align-items: baseline; position: relative;
  padding: 14px 0;
}
.tl-row::before {
  content: ''; position: absolute; left: 52px; top: 22px; width: 9px; height: 9px;
  background: var(--ivory); border: 1px solid var(--terracotta); border-radius: 99px;
}
.tl-time {
  font-family: var(--font-display); font-size: 24px; color: var(--ink); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.tl-body { padding-left: 24px; }
.tl-body h3 {
  font-family: var(--font-serif); font-size: 20px; font-weight: 400;
  color: var(--ink); margin: 0;
}
.tl-body p {
  font-family: var(--font-sans); font-size: 13px;
  color: var(--graphite); margin: 4px 0 0;
}

/* dresscode */
.sect.dresscode {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-5) var(--space-3);
  overflow: hidden;
}
.dresscode-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  gap: var(--space-4);
}
.dresscode-copy {
  width: 100%;
  max-width: 520px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.dresscode-visual {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  gap: clamp(10px, 1.4vw, 18px);
}
.dresscode-grid-mobile {
  display: none !important;
  width: 100%;
}
.dresscode-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 6px;
  max-width: 360px;
  margin: 0 auto;
}
.dresscode-grid .swatch-item {
  gap: 4px;
}
.dresscode-grid .swatch {
  width: clamp(28px, 7vw, 36px);
  height: clamp(28px, 7vw, 36px);
}
.dresscode-grid .swatch-label {
  font-size: clamp(5px, 1.4vw, 6.5px);
  letter-spacing: .06em;
  line-height: 1.15;
  max-width: 72px;
  hyphens: auto;
  text-wrap: balance;
}
.dresscode-lede {
  max-width: none;
  margin: 0;
  text-align: center;
  font-size: clamp(14px, 2.8vw, 16px);
  line-height: 1.6;
}
.dresscode-photo {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: var(--shadow-photo);
}
.dresscode-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(42vh, 360px);
  object-fit: cover;
  object-position: center top;
}
.dresscode-edge {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  align-self: stretch;
  width: clamp(56px, 6vw, 76px);
  min-height: min(38vh, 340px);
  padding: var(--space-1) 0;
}
.swatch-item-edge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
  width: 100%;
}
.swatch-item-left,
.swatch-item-right {
  align-items: center;
}
.swatch-item-left .swatch-label-edge,
.swatch-item-right .swatch-label-edge {
  text-align: center;
}
.swatch-edge {
  width: clamp(24px, 6.5vw, 36px);
  height: clamp(24px, 6.5vw, 36px);
  flex-shrink: 0;
}
.swatch-label-edge {
  font-size: clamp(5px, 1.35vw, 6.5px);
  letter-spacing: .05em;
  line-height: 1.15;
  max-width: 72px;
  hyphens: auto;
  text-wrap: balance;
}
@media (max-width: 959px) {
  .dresscode-visual {
    display: block;
  }
  .dresscode-edge { display: none; }
  .dresscode-grid-mobile { display: none !important; }
  .swatch-grid.dresscode-grid.dresscode-grid-mobile {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 6px;
    max-width: min(360px, 92vw);
  }
  .dresscode-copy { max-width: 520px; }
}
@media (min-width: 960px) {
  .dresscode-shell {
    max-width: min(960px, 92vw);
    gap: clamp(16px, 2vw, 24px);
  }
  .dresscode-shell .dresscode-grid-mobile,
  .dresscode-shell .swatch-grid.dresscode-grid-mobile {
    display: none !important;
  }
  .dresscode-copy {
    max-width: 480px;
    gap: 12px;
  }
  .dresscode-lede {
    font-size: clamp(14px, 1.15vw, 16px);
    line-height: 1.58;
  }
  .dresscode-visual {
    gap: clamp(14px, 1.6vw, 22px);
  }
  .dresscode-edge {
    min-height: min(44vh, 400px);
  }
  .dresscode-photo img {
    max-height: min(46vh, 420px);
  }
  .swatch-edge {
    width: clamp(28px, 2.8vw, 36px);
    height: clamp(28px, 2.8vw, 36px);
  }
  .swatch-label-edge {
    font-size: clamp(5.5px, 0.55vw, 6.5px);
    max-width: 72px;
  }
}
@media (max-width: 720px) {
  .sect.dresscode { padding: var(--space-4) var(--space-2); }
  .dresscode-photo img { max-height: min(42vh, 320px); }
}

/* swatches */
.swatch-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px 10px;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}
.swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.swatch {
  width: 56px; height: 56px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(110,80,40,.18), 0 6px 14px -6px rgba(0,0,0,.18);
  flex-shrink: 0;
}
.swatch-label {
  font-family: var(--font-sans);
  font-size: 8px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mist);
  text-align: center;
  line-height: 1.35;
  max-width: 88px;
}
.swatch::after {
  content: attr(data-name);
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  font-family: var(--font-sans); font-size: 9px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--mist); white-space: nowrap;
}
@media (max-width: 720px) {
  .swatch-grid:not(.dresscode-grid) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 8px; }
  .swatch-grid:not(.dresscode-grid) .swatch { width: 48px; height: 48px; }
  .swatch-grid:not(.dresscode-grid) .swatch-label { font-size: 7px; letter-spacing: .12em; max-width: 76px; }
  .swatch-grid.dresscode-grid.dresscode-grid-mobile {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 5px;
    max-width: min(340px, 94vw);
  }
  .dresscode-grid .swatch {
    width: clamp(26px, 6.5vw, 32px);
    height: clamp(26px, 6.5vw, 32px);
  }
}

/* IBAN pill */
.iban {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  background: var(--pearl);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 18px 22px;
  font-family: var(--font-sans);
  color: var(--ink);
  width: 100%;
}
.iban-num { font-size: 14px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.iban-copy {
  font-size: 10px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--terracotta); cursor: pointer; border: none; background: none;
  padding: 4px 0;
}
.iban-copy:hover { color: var(--rust); }

/* flowers list */
.flowers {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 14px;
  margin: 0;
  padding: 0;
  align-items: center;
  list-style: none;
}
.flowers li { list-style: none; }
.info-accordion-bare {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.info-accordion-bare .info-accordion-body {
  padding-top: 0;
  padding-bottom: 0;
  gap: 0;
}
.info-accordion-compact .info-accordion-body {
  gap: 6px;
}

/* lisainfo accordion */
.sect.info-slide {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-6) var(--space-3);
}
.sect-inner.info-slide-inner { max-width: 520px; }
.info-accordion-list {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.info-accordion {
  border: 1px solid rgba(110, 80, 40, .14);
  border-radius: 2px;
  background: rgba(255, 252, 247, .72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset;
  overflow: hidden;
}
.info-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(18px, 3.2vw, 22px);
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: .01em;
}
.info-accordion-trigger:hover { color: var(--rust); }
.info-accordion-icon {
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1;
  color: var(--mist);
  transition: transform .25s ease;
}
.info-accordion.is-open .info-accordion-icon { transform: rotate(180deg); }
.info-accordion-panel.is-collapsed { display: none; }
.info-accordion-body {
  padding: 0 18px 20px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  text-align: center;
}
.info-accordion-body .body { max-width: 420px; margin: 0 auto; }
.info-accordion-body .flowers,
.info-accordion-body .info-contact-name,
.info-accordion-body .info-contact-link {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 400;
  color: var(--graphite);
  max-width: 420px;
  margin: 0 auto;
}
.info-accordion-body .flowers {
  width: 100%;
  gap: 4px;
}
.info-accordion-body .display-md {
  font-size: clamp(22px, 3.6vw, 30px);
}
.info-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
  width: 100%;
}
.info-contact-name {
  font-family: var(--font-sans);
  font-size: inherit;
  line-height: inherit;
  color: var(--graphite);
  margin-top: 0;
  font-weight: 500;
}
.info-contact-link {
  font-family: var(--font-sans);
  font-size: inherit;
  line-height: inherit;
  color: var(--graphite);
  text-decoration: none;
}
a.info-contact-link:hover {
  color: var(--rust);
}
.info-contact-plain {
  cursor: default;
}
.info-accordion-dresscode .swatch-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 8px;
  max-width: 100%;
}
.info-accordion-dresscode .swatch {
  width: clamp(36px, 8vw, 48px);
  height: clamp(36px, 8vw, 48px);
}
.info-accordion-dresscode .swatch-label {
  font-size: 7px;
  max-width: 72px;
}
@media (max-width: 959px) {
  .sect.info-slide {
    padding: max(10px, env(safe-area-inset-top)) 12px max(8px, env(safe-area-inset-bottom));
  }
  .sect-inner.info-slide-inner.gap-5 > * + * { margin-top: 10px; }
  .info-accordion-list {
    max-width: none;
    gap: 6px;
    display: flex;
    flex-direction: column;
  }
  .info-accordion-list .info-accordion:nth-child(1) { order: 2; }
  .info-accordion-list .info-accordion:nth-child(2) { order: 3; }
  .info-accordion-list .info-accordion:nth-child(3) { order: 1; }
  .info-accordion-list .info-accordion:nth-child(4) { order: 4; }
  .info-accordion-list .info-accordion:nth-child(5) { order: 5; }
  .info-accordion-body .flowers {
    gap: 4px 10px;
  }
  .info-accordion-trigger {
    pointer-events: none;
    cursor: default;
    justify-content: center;
    text-align: center;
    padding: 10px 12px 8px;
    font-size: clamp(14px, 3.6vw, 16px);
    line-height: 1.2;
  }
  .info-accordion-trigger:hover { color: var(--ink); }
  .info-accordion-icon { display: none; }
  .info-accordion-panel.is-collapsed { display: block; }
  .info-accordion-body {
    padding: 0 12px 12px;
    gap: 8px;
  }
  .info-accordion-body .body,
  .info-accordion-body .flowers,
  .info-accordion-body .info-contact-name,
  .info-accordion-body .info-contact-link {
    font-size: 11px;
    line-height: 1.45;
    max-width: none;
  }
  .info-accordion-body .display-md,
  .info-accordion-body .dresscode-title {
    font-size: clamp(14px, 3.6vw, 16px);
    line-height: 1.2;
  }
  .info-accordion .eyebrow {
    font-size: 9px;
    letter-spacing: .22em;
  }
  .info-accordion-bare .info-accordion-body {
    padding: 0 12px 8px;
  }
  .info-accordion-compact .info-accordion-body {
    gap: 6px;
    padding-bottom: 10px;
  }
  .info-accordion .rule {
    margin: 0;
    transform: scale(.85);
  }
  .info-accordion .iban {
    padding: 10px 12px;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  .info-accordion .iban-num {
    font-size: 11px;
    line-height: 1.45;
  }
  .info-accordion .iban-copy { font-size: 9px; }
  .info-accordion .iban .tiny { font-size: 9px; }
  .info-accordion-dresscode .swatch-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px 3px;
  }
  .info-accordion-dresscode .swatch {
    width: 20px;
    height: 20px;
  }
  .info-accordion-dresscode .swatch-label { display: none; }
  .info-slide .scroll-cue {
    transform: scale(.85);
    margin-top: -4px;
  }
}
@media (max-width: 959px) and (max-height: 780px) {
  .info-accordion-list {
    transform: scale(.94);
    transform-origin: center center;
  }
  .sect-inner.info-slide-inner.gap-5 > * + * { margin-top: 6px; }
}
@media (min-width: 960px) {
  .sect-inner.info-slide-inner { max-width: 1180px; }
  .info-accordion-list {
    max-width: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
  }
  .info-accordion-span { grid-column: 1 / -1; }
  .info-accordion-compact { align-self: start; }
  .info-accordion {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .info-accordion-trigger {
    pointer-events: none;
    cursor: default;
    justify-content: center;
    text-align: center;
    padding: 14px 16px 12px;
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.2;
  }
  .info-accordion-trigger:hover { color: var(--ink); }
  .info-accordion-icon { display: none; }
  .info-accordion-panel.is-collapsed { display: block; }
  .info-accordion-body {
    flex: 1;
    padding: 0 16px 18px;
    gap: 10px;
  }
  .info-accordion-body .body,
  .info-accordion-body .flowers,
  .info-accordion-body .info-contact-name,
  .info-accordion-body .info-contact-link,
  .info-accordion-body .display-md {
    max-width: none;
  }
  .info-accordion-body .display-md {
    font-size: clamp(17px, 1.5vw, 20px);
  }
  .info-accordion-body .body,
  .info-accordion-body .flowers,
  .info-accordion-body .info-contact-name,
  .info-accordion-body .info-contact-link {
    font-size: clamp(13px, 1.05vw, 14px);
    line-height: 1.5;
  }
  .info-accordion-compact .info-accordion-body {
    gap: 8px;
    padding-bottom: 14px;
  }
  .info-accordion-dresscode .swatch-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 6px;
  }
  .info-accordion-dresscode .swatch {
    width: clamp(28px, 2.4vw, 36px);
    height: clamp(28px, 2.4vw, 36px);
  }
  .info-accordion-dresscode .swatch-label {
    font-size: 6px;
    max-width: 64px;
  }
  .info-accordion .iban {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    width: 100%;
  }
  .info-accordion .iban-num {
    font-size: clamp(13px, 1.05vw, 14px);
    line-height: 1.5;
  }
  .info-accordion-bare .info-accordion-body {
    padding: 0 16px 8px;
  }
}
@media (max-width: 520px) {
  .info-accordion-dresscode .swatch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* chips row */
.chips { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.chip {
  font-family: var(--font-sans);
  font-size: 10px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--graphite);
  padding: 7px 14px;
  border: 1px solid var(--rule); border-radius: 999px;
  background: rgba(255,255,255,.4);
}
.michelin-badge {
  width: 64px; height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.12));
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transition: opacity 0.9s var(--ease-silk);
}
.reveal.in { opacity: 1; }
.reveal.delay-1 { transition-delay: .12s; }
.reveal.delay-2 { transition-delay: .24s; }
.reveal.delay-3 { transition-delay: .36s; }
.reveal.delay-4 { transition-delay: .48s; }
.reveal.delay-5 { transition-delay: .6s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transition: none;
  }
}

/* line draw */
.draw-x { transform: scaleX(0); transform-origin: left center; transition: transform 1s var(--ease-silk); }
.draw-x.in { transform: scaleX(1); }

/* utility */
.stack { display: flex; flex-direction: column; }
.gap-2 > * + * { margin-top: 8px; }
.gap-3 > * + * { margin-top: 14px; }
.gap-4 > * + * { margin-top: 20px; }
.gap-5 > * + * { margin-top: 28px; }
.gap-6 > * + * { margin-top: 38px; }
.gap-7 > * + * { margin-top: 52px; }
.center { text-align: center; }
.align-center { display: flex; flex-direction: column; align-items: center; }
ul { padding: 0; margin: 0; }

/* small-screen tweaks */
@media (max-width: 520px) {
  .sect { padding: var(--space-8) var(--space-5); }
  .sect.photo { padding: var(--space-7) var(--space-5); }
  .sect.photo .display-xl { font-size: clamp(44px, 11vw, 72px); }
  .sect.photo .sect-inner.stack.gap-4 > * + * { margin-top: 16px; }
  .tl-row { grid-template-columns: 70px 1fr; }
  .timeline::before { left: 36px; }
  .tl-row::before { left: 32px; }
}

/* calendar picker modal */
.cal-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(var(--space-5), env(safe-area-inset-top)) max(var(--space-5), env(safe-area-inset-right)) max(var(--space-5), env(safe-area-inset-bottom)) max(var(--space-5), env(safe-area-inset-left));
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  box-sizing: border-box;
}
.cal-modal-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(42, 38, 32, .62);
  backdrop-filter: blur(6px);
  cursor: pointer;
}
.cal-modal-panel {
  position: relative;
  width: min(100%, 420px);
  max-height: min(88dvh, 560px);
  overflow: auto;
  background: var(--cream);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-3);
  padding: clamp(24px, 5vw, 36px) clamp(20px, 4vw, 28px);
  animation: cal-modal-in .35s var(--ease-rise) both;
}
@keyframes cal-modal-in {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.cal-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}
.cal-modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.05;
}
.cal-modal-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--mist);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color .25s;
}
.cal-modal-close:hover { color: var(--ink); }
.cal-modal-sub {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--graphite);
  letter-spacing: .02em;
}
.cal-modal-list {
  list-style: none;
  margin: var(--space-5) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cal-modal-option {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border-soft);
  background: var(--ivory);
  cursor: pointer;
  text-align: left;
  transition: border-color .25s, background .25s, transform .2s;
}
.cal-modal-option:hover {
  border-color: var(--terracotta);
  background: var(--shell);
  transform: translateY(-1px);
}
.cal-modal-option-label {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
}
.cal-modal-option-hint {
  font-size: 12px;
  color: var(--mist);
  letter-spacing: .02em;
}
