/* ════════════════════════════════════════════════════════
   Earvin & Plexy · wedding site (playful pastel)
   Content is always visible by default. Hidden starting
   states only apply under html.motion (JS on + motion OK).
════════════════════════════════════════════════════════ */

:root {
  --ink:      #2E2A4F;
  --ink-soft: #5D5884;
  --cream:    #FFF8F1;
  --white:    #FFFFFF;

  /* pastel fills */
  --pink:   #FFC4DA;
  --pink-2: #FF8FB8;
  --peach:  #FFD5C2;
  --butter: #FFEFA8;
  --mint:   #BDEFD8;
  --sky:    #C6E2FF;
  --lilac:  #DCCBFF;

  /* softer section backgrounds */
  --pink-bg:   #FFE1EC;
  --peach-bg:  #FFE8DC;
  --butter-bg: #FFF6CF;
  --mint-bg:   #DDF7EA;
  --sky-bg:    #E0EFFF;
  --lilac-bg:  #EEE6FF;

  --script: 'Style Script', 'Brush Script MT', cursive;
  --sans:   'Bricolage Grotesque', system-ui, -apple-system, sans-serif;

  /* paper grain, drawn in SVG (no image download) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='d' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .18 0 0 0 0 .16 0 0 0 0 .31 .95 0 0 0 -.42'/%3E%3C/filter%3E%3Cfilter id='l' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .95 0 0 0 -.4'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23d)'/%3E%3Crect width='220' height='220' filter='url(%23l)'/%3E%3C/svg%3E");
  --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='d' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .05 0 0 0 0 .04 0 0 0 0 .1 .8 0 0 0 -.34'/%3E%3C/filter%3E%3Cfilter id='l' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .7 0 0 0 -.31'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23d)'/%3E%3Crect width='220' height='220' filter='url(%23l)'/%3E%3C/svg%3E");

  --r: 28px;
  --line: 2px solid var(--ink);
  --pop: 5px 5px 0 var(--ink);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--grain) var(--cream);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
:focus-visible { outline: 3px solid var(--pink-2); outline-offset: 3px; }

/* ── Sections + wavy tops ─────────────────────────── */
section {
  position: relative;
  background: var(--grain) var(--bg, var(--cream));
  padding: clamp(96px, 13vw, 160px) 20px;
  text-align: center;
  overflow-x: clip;
  transition: background-color .7s var(--out);
}
section:not(.hero)::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 1px;
  height: 46px;
  transform: translateY(-100%);
  background: inherit;
  transition: inherit;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 46' preserveAspectRatio='none'%3E%3Cpath d='M0 46V26C160 4 320 4 480 22S800 46 960 26 1280 2 1440 18V46Z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 46' preserveAspectRatio='none'%3E%3Cpath d='M0 46V26C160 4 320 4 480 22S800 46 960 26 1280 2 1440 18V46Z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
  pointer-events: none;
  z-index: 1;
}

/* ── Type ─────────────────────────────────────────── */
.kicker {
  display: inline-block;
  font: 700 12.5px/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 9px 15px;
  background: var(--white);
  border: var(--line);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
}
.script-title {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(64px, 12vw, 148px);
  line-height: 1;
  letter-spacing: -.01em;
  margin: .22em 0 .12em;
}
.sub { font-size: 19px; color: var(--ink-soft); }

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 16px/1.1 var(--sans);
  padding: 16px 26px;
  color: var(--ink);
  background: var(--white);
  border: var(--line);
  border-radius: 999px;
  box-shadow: var(--pop);
  text-decoration: none;
  cursor: pointer;
  transition: transform .3s var(--spring), box-shadow .3s var(--out), background-color .25s;
}
.btn:hover  { transform: translate(-2px, -2px) rotate(-1.5deg); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn--ink { background: var(--ink); color: var(--white); box-shadow: 5px 5px 0 var(--pink-2); }
.btn--ink:hover { box-shadow: 7px 7px 0 var(--pink-2); background: #3b3566; }
.btn--sm  { font-size: 14px; padding: 11px 18px; box-shadow: 3px 3px 0 var(--ink); }
.btn--ink.btn--sm { box-shadow: 3px 3px 0 var(--pink-2); }
.btn--big { font-size: 20px; padding: 22px 36px; }
.btn svg  { width: 20px; height: 20px; fill: var(--pink-2); }
.magnetic { will-change: transform; }

/* ── Scroll progress ──────────────────────────────── */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 5px; z-index: 60;
  background: linear-gradient(90deg, var(--pink-2), var(--peach), var(--butter), var(--mint), var(--sky), var(--lilac));
  transform-origin: 0 50%;
  transform: scaleX(var(--pg, 0));
}

/* ── Nav ──────────────────────────────────────────── */
.nav {
  position: fixed; top: 14px; left: 50%; z-index: 50;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px;
  padding: 7px 7px 7px 18px;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  border: var(--line);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .45s var(--out);
}
.nav.is-hidden { transform: translate(-50%, -160%); }
.nav-logo {
  font: 400 34px/1 var(--script);
  text-decoration: none;
  margin-right: 10px;
  padding-top: 2px;
}
.nav-logo span { color: var(--pink-2); margin: 0 1px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  font: 600 14px/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  padding: 11px 13px;
  border-radius: 999px;
  transition: background-color .2s;
}
.nav-links a:hover { background: var(--butter); }
.nav .btn { margin-left: 6px; }
.nav-menu {
  display: none;
  width: 44px; height: 44px;
  margin-left: 6px;
  border: var(--line); border-radius: 50%;
  background: var(--butter);
  cursor: pointer;
  position: relative;
}
.nav-menu span {
  position: absolute; left: 12px; right: 12px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--out);
}
.nav-menu span:first-child { top: 17px; }
.nav-menu span:last-child  { top: 24px; }
.nav-menu[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-menu[aria-expanded="true"] span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--grain) var(--pink-bg);
  display: grid; place-items: center;
  padding: 90px 20px 40px;
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.menu a {
  font: 400 clamp(46px, 13vw, 64px)/1.15 var(--script);
  text-decoration: none;
}
html.motion .menu.is-open a { animation: menuIn .55s var(--spring) both; animation-delay: calc(var(--k, 0) * 55ms); }
@keyframes menuIn { from { opacity: 0; transform: translateY(24px) rotate(-4deg); } }

@media (max-width: 1080px) {
  .nav { left: 14px; right: 14px; transform: none; justify-content: space-between; }
  .nav.is-hidden { transform: translateY(-160%); }
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .nav-menu { display: block; }
}

/* ── Intro curtain ────────────────────────────────── */
.intro { position: fixed; inset: 0; z-index: 100; display: flex; pointer-events: none; }
.intro i { flex: 1; transition: transform .75s var(--out); transition-delay: calc(var(--k) * 70ms); }
.intro i:nth-child(1) { background: var(--pink); }
.intro i:nth-child(2) { background: var(--peach); }
.intro i:nth-child(3) { background: var(--butter); }
.intro i:nth-child(4) { background: var(--mint); }
.intro i:nth-child(5) { background: var(--lilac); }
.intro b {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font: 400 clamp(90px, 24vw, 200px)/1 var(--script);
  animation: introMark .7s var(--spring) both;
  transition: opacity .3s, transform .5s var(--out);
}
.intro b span { color: var(--pink-2); }
.intro.is-leaving i { transform: translateY(-101%); }
.intro.is-leaving b { opacity: 0; transform: scale(.8); }
@keyframes introMark { from { opacity: 0; transform: scale(.5) rotate(-8deg); } }

/* ── Reveal system ────────────────────────────────── */
html.motion [data-rv] {
  opacity: 0;
  transition:
    opacity .7s var(--out) calc(var(--d, 0) * 90ms),
    transform 1s var(--spring) calc(var(--d, 0) * 90ms);
}
html.motion [data-rv="up"]         { transform: translateY(44px); }
html.motion [data-rv="pop"]        { transform: scale(.55) rotate(-6deg); }
html.motion [data-rv="drop"]       { transform: translateY(-140px) rotate(var(--r0, -8deg)); }
html.motion [data-rv="fan"]        { transform: translateY(90px) rotate(calc(var(--r, 0deg) * 5)) scale(.85); }
html.motion [data-rv="straighten"] { transform: translateY(50px) rotate(calc(var(--r, 0deg) * 4)); }
html.motion [data-rv].in { opacity: 1; transform: var(--rest, none); }
[data-rv="fan"], [data-rv="straighten"] { --rest: rotate(var(--r, 0deg)); }

/* ═════════════════ HERO ═════════════════ */
.hero {
  min-height: 100vh; min-height: 100svh;
  padding: 120px 20px 90px;
  display: flex; flex-direction: column; justify-content: center;
  overflow: clip;
  background: var(--cream);
}
/* grain sits above the drifting color blobs, below the content */
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--grain); pointer-events: none; }
.aurora { position: absolute; inset: -10%; pointer-events: none; }
.aurora i {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  opacity: .85;
}
.aurora i:nth-child(1) { background: radial-gradient(circle, var(--pink) 0%, transparent 62%);   top: -20%; left: -15%; animation: drift1 22s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { background: radial-gradient(circle, var(--sky) 0%, transparent 62%);    top: 10%;  right: -25%; animation: drift2 26s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { background: radial-gradient(circle, var(--butter) 0%, transparent 60%); bottom: -30%; left: 10%; animation: drift3 24s ease-in-out infinite alternate; }
.aurora i:nth-child(4) { background: radial-gradient(circle, var(--lilac) 0%, transparent 60%);  bottom: -20%; right: 0;  animation: drift1 30s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(12vw, 10vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-14vw, 8vh) scale(.9); } }
@keyframes drift3 { to { transform: translate(8vw, -12vh) scale(1.1); } }

.hero-grid {
  position: relative; z-index: 2;
  width: min(1240px, 100%); margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr .85fr;
  align-items: center; gap: 40px;
  text-align: left;
}
.hero-names {
  font-family: var(--script); font-weight: 400;
  font-size: clamp(96px, min(14vw, 22vh), 220px);
  line-height: .86;
  margin: 26px 0 30px;
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .18em;
}
.hero-names .w { display: inline-block; padding: 0 .06em .1em; }
.hero-names .amp { color: var(--pink-2); font-size: .7em; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts li {
  background: var(--c); border: var(--line); border-radius: 20px;
  box-shadow: 3px 3px 0 var(--ink);
  padding: 10px 16px;
  display: flex; flex-direction: column; line-height: 1.15;
}
.hero-facts b { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.hero-facts span { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.hero-place {
  margin-top: 22px; font-size: 20px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.hero-place svg { width: 24px; height: 24px; fill: var(--pink); stroke: var(--ink); stroke-width: 1.8; }
.hero-tag { margin-top: 6px; font: 400 30px/1.2 var(--script); color: var(--ink-soft); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.hero-art { position: relative; justify-self: center; width: min(430px, 100%); }
.arch-wrap {
  transform: translateY(calc(var(--p, 0) * 60px)) rotate(calc(var(--p, 0) * -5deg)) scale(calc(1 + var(--p, 0) * .08));
  will-change: transform;
}
.arch {
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px 34px 34px;
  overflow: hidden;
  border: var(--line);
  box-shadow: 12px 12px 0 var(--ink);
  background: var(--pink);
  transform: rotate(3deg);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.photo-ph {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(160deg, var(--pink) 0%, var(--lilac) 55%, var(--sky) 100%);
}
.ph-mono { font: 400 clamp(96px, 11vw, 150px)/1 var(--script); padding: 0 .1em .1em; }
.ph-mono i { font-style: normal; color: var(--pink-2); font-size: .75em; margin: 0 .04em; }
.ph-date { font: 700 15px/1 var(--sans); letter-spacing: .3em; background: var(--white); border: var(--line); border-radius: 999px; padding: 9px 14px 9px 18px; box-shadow: 3px 3px 0 var(--ink); }

.float {
  position: absolute; z-index: 3;
  transform:
    translate(calc(var(--mx, 0) * var(--depth) * 14px), calc(var(--my, 0) * var(--depth) * 14px))
    translateY(calc(var(--p, 0) * var(--depth) * -110px));
  transition: transform .5s var(--out);
}
.float > * { animation: bob 5s ease-in-out infinite alternate; }
.f-sticker { top: -6%; left: -18%; width: 150px; }
.f-sticker svg { width: 100%; animation: spin 18s linear infinite; }
.sticker-round .sr-bg { fill: var(--butter); stroke: var(--ink); stroke-width: 3; }
.sticker-round text { font: 700 14px var(--sans); fill: var(--ink); }
.sticker-round .sr-heart { font-size: 48px; fill: var(--pink-2); letter-spacing: 0; }
.f-tag { bottom: 12%; right: -14%; }
.tag {
  display: inline-block; font: 400 34px/1 var(--script);
  background: var(--mint); border: var(--line); border-radius: 16px;
  padding: 10px 18px 12px; box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-8deg);
}
.f-heart { top: 34%; right: -12%; width: 70px; }
.f-heart svg { fill: var(--pink-2); stroke: var(--ink); stroke-width: 3; }
.f-star { bottom: -4%; left: -8%; width: 64px; }
.f-star svg { fill: var(--sky); stroke: var(--ink); stroke-width: 3; }
.f-dot { top: 8%; right: 2%; width: 34px; height: 34px; }
.f-dot::before { content: ""; display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--lilac); border: var(--line); animation: bob 4s ease-in-out infinite alternate; }
.f-squiggle { bottom: 30%; left: -22%; width: 110px; }
.f-squiggle svg { fill: none; stroke: var(--pink-2); stroke-width: 6; stroke-linecap: round; }
@keyframes bob  { to { transform: translateY(-14px) rotate(6deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; z-index: 3;
  width: 30px; height: 48px; margin-left: -15px;
  border: var(--line); border-radius: 20px; background: var(--white);
}
.scroll-cue span {
  position: absolute; left: 50%; top: 9px; width: 6px; height: 10px; margin-left: -3px;
  background: var(--pink-2); border-radius: 3px;
  animation: cue 1.6s var(--out) infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80%, 100% { transform: translateY(16px); opacity: 0; } }

/* hero entrance: names "write" themselves in, then everything else pops */
html.motion .hero .w { clip-path: inset(-40% 100% -40% -8%); }
html.motion .hero.go .w { animation: write 1.15s var(--out) forwards; animation-delay: var(--wd); }
@keyframes write { to { clip-path: inset(-40% -12% -40% -8%); } }
html.motion [data-hero] {
  opacity: 0; transform: translateY(30px);
  transition: opacity .8s var(--out), transform 1s var(--spring);
  transition-delay: calc(.6s + var(--hd, 0) * 110ms);
}
html.motion .hero.go [data-hero] { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .hero { padding-top: 104px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .hero-names { justify-content: center; margin: 18px 0 22px; font-size: clamp(92px, 25vw, 170px); }
  .hero-facts, .hero-ctas, .hero-place { justify-content: center; }
  .hero-art { width: min(270px, 68vw); margin: 34px auto 20px; }
  .hero .kicker { font-size: 10.5px; letter-spacing: .1em; padding: 8px 12px; }
  .hero-facts { gap: 8px; flex-wrap: nowrap; }
  .hero-facts li { padding: 8px 11px; border-radius: 16px; }
  .hero-facts b { font-size: 18px; }
  .hero-facts span { font-size: 11.5px; }
  .f-sticker { width: 108px; left: -20%; }
  .f-tag { right: -16%; }
  .tag { font-size: 26px; }
  .f-squiggle { left: -24%; width: 80px; }
  .scroll-cue { display: none; }
}

/* ═════════════════ RIBBONS ═════════════════ */
.ribbons { position: relative; z-index: 4; height: 170px; overflow: clip; margin: -40px 0 -60px; pointer-events: none; }
.ribbon {
  position: absolute; left: -5%; right: -5%;
  border-block: var(--line);
  padding: 14px 0;
  white-space: nowrap;
  overflow: hidden;
}
.ribbon--a { top: 34px; background: var(--pink); transform: rotate(-3deg); z-index: 2; }
.ribbon--b { top: 70px; background: var(--lilac); transform: rotate(2.5deg); }
.ribbon-track { display: inline-flex; will-change: transform; }
.ribbon-track span { font: 800 26px/1 var(--sans); letter-spacing: .02em; text-transform: uppercase; padding-right: 0; }
.ribbon--b .ribbon-track span { font: 400 34px/1 var(--script); text-transform: none; letter-spacing: 0; }

/* ═════════════════ COUNTDOWN ═════════════════ */
.count-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  width: min(940px, 100%); margin: 34px auto 0;
  perspective: 900px;
}
.count-card {
  background: var(--c);
  border: var(--line); border-radius: var(--r);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 26px 8px 20px;
  display: flex; flex-direction: column; align-items: center;
  transform-style: preserve-3d;
}
.count-card .num {
  font-weight: 800; font-size: clamp(54px, 9vw, 104px); line-height: 1;
  letter-spacing: -.04em; font-variant-numeric: tabular-nums;
}
.count-card .lbl { margin-top: 8px; font-weight: 700; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; }
.count-card .num.tick { animation: tick .35s var(--spring); }
@keyframes tick { 40% { transform: translateY(-8px) scale(1.06); } }
@media (max-width: 640px) { .count-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }

/* ═════════════════ STORY (pinned) ═════════════════ */
.story { padding: clamp(96px, 13vw, 160px) 20px; background: var(--grain) var(--bg, var(--butter-bg)); transition: none; }
/* while pinned, the grain rides with the sticky panel so it doesn't slide under it */
html.motion .story { background-image: none; }
html.motion .story::before { background-image: var(--grain); }
.story-track { display: flex; flex-direction: column; gap: 80px; }
.panel { display: grid; justify-items: center; gap: 24px; }
.panel-intro-inner { max-width: 640px; margin: 0 auto; }
.panel-intro-inner > p:not(.kicker) { font-size: 20px; line-height: 1.75; margin-top: 16px; }
.keep-going { display: none; }
.panel-photo {
  margin: 0; width: min(380px, 78vw); overflow: hidden;
  border: var(--line); box-shadow: 10px 10px 0 var(--ink); background: var(--white);
}
.panel-photo img { width: 100%; height: 100%; object-fit: cover; }
.shape-arch   { aspect-ratio: 3 / 4; border-radius: 999px 999px 26px 26px; }
.shape-circle { aspect-ratio: 1; border-radius: 50%; }
.shape-blob   { aspect-ratio: 1; border-radius: 58% 42% 52% 48% / 46% 56% 44% 54%; animation: morph 9s ease-in-out infinite alternate; }
@keyframes morph {
  50%  { border-radius: 42% 58% 38% 62% / 58% 40% 60% 42%; }
  100% { border-radius: 54% 46% 62% 38% / 40% 60% 40% 60%; }
}
.step { display: inline-block; font-weight: 700; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; background: var(--white); border: var(--line); border-radius: 999px; padding: 7px 13px; }
.script-word { font: 400 clamp(84px, 13vw, 176px)/1 var(--script); margin: 12px 0 0; }
.cap { font-size: 22px; font-weight: 600; color: var(--ink-soft); }
.story-progress { display: none; }

/* pinned + sideways only when motion is welcome */
html.motion .story { height: 440vh; padding: 0; }
html.motion .story::before { z-index: 2; }
html.motion .story-sticky {
  background-image: var(--grain);
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}
html.motion .story-track {
  flex-direction: row; gap: 0;
  width: 400%; height: 100%;
  transform: translate3d(calc(var(--sp, 0) * -75%), 0, 0);
  will-change: transform;
}
html.motion .panel {
  flex: 0 0 25%; height: 100%;
  grid-template-columns: auto auto; align-content: center; justify-content: center;
  align-items: center; column-gap: clamp(30px, 6vw, 90px);
  padding: 90px 6vw 80px;
}
html.motion .panel--intro { grid-template-columns: 1fr; }
html.motion .panel-intro-inner { max-width: 820px; }
html.motion .panel--intro .script-title { font-size: clamp(56px, min(8.5vw, 12vh), 116px); }
html.motion .panel-intro-inner > p:not(.kicker) { font-size: clamp(16px, 2.3vh, 20px); line-height: 1.7; max-width: 640px; margin-inline: auto; }
html.motion .panel-text { text-align: left; }
html.motion .panel-photo {
  width: clamp(240px, 30vw, 420px);
  transform: rotate(calc(var(--dist, 0) * 18deg)) scale(calc(1 - var(--adist, 0) * .15));
}
html.motion .keep-going {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 28px;
  font-weight: 700; font-size: 15px; letter-spacing: .12em; text-transform: uppercase;
}
html.motion .keep-going svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.4; animation: nudge 1.2s var(--out) infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }
html.motion .story-progress {
  display: block; position: absolute; left: 50%; bottom: 36px;
  width: min(420px, 70vw); height: 6px; margin-left: calc(min(420px, 70vw) / -2);
  background: rgba(46, 42, 79, .15); border-radius: 3px;
}
html.motion .sp-bar { position: absolute; inset: 0; background: var(--ink); border-radius: 3px; transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); }
html.motion .sp-heart {
  position: absolute; top: 50%; left: calc(var(--sp, 0) * 100%);
  transform: translate(-50%, -54%);
  font-size: 30px; color: var(--pink-2); line-height: 1;
  text-shadow: 0 0 0 var(--ink), 1px 1px 0 var(--ink), -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink);
}

@media (max-width: 760px) {
  html.motion .panel { grid-template-columns: 1fr; justify-items: center; row-gap: 18px; padding: 96px 24px 90px; }
  html.motion .panel-text { text-align: center; }
  html.motion .panel-photo { width: min(250px, 62vw); }
  html.motion .panel--intro .script-title { font-size: clamp(56px, 15vw, 90px); }
  html.motion .panel-intro-inner > p:not(.kicker) { font-size: 17px; line-height: 1.7; }
  .script-word { font-size: clamp(72px, 20vw, 110px); }
}

/* ═════════════════ VENUE TICKET ═════════════════ */
.ticket {
  width: min(1040px, 100%); margin: 42px auto 0;
  display: grid; grid-template-columns: 1fr 1.35fr .75fr;
  background: var(--white);
  border: var(--line); border-radius: var(--r);
  box-shadow: 10px 10px 0 var(--ink);
  overflow: hidden; text-align: left;
  transform-origin: 50% 100%;
  transform: perspective(1400px) rotateX(calc((1 - var(--ep, 1)) * 55deg)) translateY(calc((1 - var(--ep, 1)) * 90px));
}
.ticket-photo { position: relative; min-height: 320px; border-right: var(--line); }
.ticket-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.ticket-badge {
  position: absolute; left: 14px; top: 14px;
  font: 400 26px/1 var(--script);
  background: var(--butter); border: var(--line); border-radius: 12px;
  padding: 6px 12px 8px; transform: rotate(-6deg); box-shadow: 3px 3px 0 var(--ink);
}
.ticket-body { padding: 26px 28px; display: flex; flex-direction: column; gap: 20px; }
.ticket small { display: block; font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.ticket b { font-size: 21px; font-weight: 800; line-height: 1.2; }
.t-route { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.t-plane { width: 40px; flex-shrink: 0; fill: var(--pink); stroke: var(--ink); stroke-width: 4; animation: bob 2.4s ease-in-out infinite alternate; }
.t-to { text-align: right; }
.t-grid { display: grid; grid-template-columns: repeat(4, auto); gap: 12px 18px; padding-top: 18px; border-top: 2px dashed rgba(46, 42, 79, .3); }
.t-grid b { font-size: 18px; }
.t-note { font-size: 15px; color: var(--ink-soft); }
.ticket-stub {
  position: relative;
  padding: 26px 22px;
  background: var(--pink);
  border-left: 2px dashed var(--ink);
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
}
.ticket-stub::before, .ticket-stub::after {
  content: ""; position: absolute; left: -15px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--grain) var(--bg, var(--peach-bg)); border: var(--line);
}
.ticket-stub::before { top: -16px; }
.ticket-stub::after  { bottom: -16px; }
.ticket-stub b { font: 400 34px/1 var(--script); }
.barcode {
  height: 46px; margin: 4px 0 6px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 5px, var(--ink) 5px 6px, transparent 6px 10px, var(--ink) 10px 14px, transparent 14px 16px);
}
.map-reveal {
  width: min(1040px, 100%); margin: 40px auto 0;
  border: var(--line); border-radius: var(--r); overflow: hidden;
  box-shadow: 6px 6px 0 var(--ink); background: var(--white);
  clip-path: circle(calc(12% + var(--ep, 1) * 88%) at 50% 50%);
}
.map-reveal iframe { display: block; width: 100%; height: 360px; border: 0; }
@media (max-width: 860px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket-photo { min-height: 340px; border-right: 0; border-bottom: var(--line); }
  .t-grid { grid-template-columns: 1fr 1fr; }
  .ticket-stub { border-left: 0; border-top: 2px dashed var(--ink); text-align: center; align-items: center; }
  .ticket-stub::before, .ticket-stub::after { top: -15px; bottom: auto; }
  .ticket-stub::before { left: -15px; }
  .ticket-stub::after  { left: auto; right: -15px; }
  .barcode { width: 100%; }
  .map-reveal iframe { height: 280px; }
}

/* ═════════════════ SCHEDULE ═════════════════ */
.tl {
  position: relative; width: min(940px, 100%); margin: 50px auto 0;
  display: flex; flex-direction: column; gap: 64px; padding: 10px 0;
}
.tl-line { position: absolute; top: 0; left: 50%; width: 120px; height: 100%; transform: translateX(-50%); overflow: visible; }
.tl-line path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.tl-track { stroke: rgba(46, 42, 79, .18); stroke-width: 3; stroke-dasharray: 2 10; }
.tl-draw  { stroke: var(--ink); stroke-width: 4; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.tl-item {
  position: relative; z-index: 1;
  width: calc(50% - 90px);
  background: var(--white); border: var(--line); border-radius: var(--r);
  box-shadow: var(--pop);
  padding: 22px 26px 24px; text-align: left;
}
.tl-item:nth-of-type(odd)  { align-self: flex-start; }
.tl-item:nth-of-type(even) { align-self: flex-end; }
.tl-time {
  display: inline-block; font: 400 clamp(46px, 6vw, 66px)/1 var(--script);
  background: var(--c); border: var(--line); border-radius: 18px;
  padding: 4px 16px 10px; transform: rotate(-3deg); margin-bottom: 12px;
  box-shadow: 3px 3px 0 var(--ink);
}
.tl-item h3 { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.tl-item p  { margin-top: 4px; color: var(--ink-soft); font-size: 17px; }
@media (max-width: 760px) {
  .tl { gap: 40px; }
  .tl-line { left: 26px; width: 52px; }
  .tl-item, .tl-item:nth-of-type(odd), .tl-item:nth-of-type(even) { width: calc(100% - 60px); align-self: flex-end; }
}

/* ═════════════════ DRESS CODE ═════════════════ */
.dress-grid {
  width: min(1120px, 100%); margin: 40px auto 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start;
}
.dress-card {
  background: rgba(255, 255, 255, .72);
  border: var(--line); border-radius: var(--r);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 28px 28px 32px;
}
.script-sub { font: 400 clamp(52px, 7vw, 76px)/1 var(--script); margin-bottom: 20px; }
.polaroid {
  display: block; text-decoration: none;
  background: var(--white); border: var(--line); border-radius: 8px;
  padding: 12px 12px 10px; box-shadow: 6px 6px 0 var(--ink);
  transform: rotate(var(--r, 0deg));
  transition: transform .45s var(--spring);
  cursor: zoom-in;
}
html.motion .polaroid[data-rv].in:hover,
.polaroid:hover { transform: rotate(0deg) scale(1.03); }
.polaroid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.polaroid span { display: block; margin-top: 8px; font: 400 24px/1 var(--script); color: var(--ink-soft); }
.dress-note { margin-top: 26px; font-size: 18px; font-weight: 600; }
.try { margin-top: 4px; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.palette {
  display: grid; grid-template-columns: repeat(6, 58px); justify-content: center; gap: 14px;
  margin-top: 18px;
}
.swatch {
  width: 58px; height: 58px; padding: 0;
  background: var(--c); border: var(--line);
  border-radius: 46% 54% 60% 40% / 50% 40% 60% 50%;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer; position: relative;
  animation: morph 6s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -1.1s);
  transition: transform .35s var(--spring);
}
.swatch:hover { transform: scale(1.14) rotate(10deg); }
.swatch[aria-checked="true"] { transform: scale(1.22); box-shadow: 4px 4px 0 var(--ink), 0 0 0 5px var(--white), 0 0 0 7px var(--ink); }
.swatch[aria-checked="true"]::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 10px;
  border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  transform: translate(-50%, -70%) rotate(-45deg);
}
.picked { margin-top: 20px; min-height: 64px; }
.picked-name { display: inline-block; font: 400 clamp(44px, 6vw, 60px)/1 var(--script); color: var(--ink-soft); }
.picked-name.is-on { color: var(--ink); }
html.motion .picked-name.bump { animation: bump .5s var(--spring); }
@keyframes bump { 0% { transform: scale(.6) rotate(-6deg); opacity: 0; } }
.checks { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.checks li { display: flex; gap: 14px; align-items: center; background: var(--white); border: var(--line); border-radius: 18px; padding: 12px 16px; }
.checks svg { width: 34px; height: 34px; flex-shrink: 0; padding: 5px; border-radius: 50%; background: var(--mint); border: var(--line); fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.checks b { display: block; font-size: 19px; font-weight: 800; }
.checks span { font-size: 15px; color: var(--ink-soft); }
@media (max-width: 900px) { .dress-grid { grid-template-columns: 1fr; max-width: 620px; } }
@media (max-width: 520px) {
  .dress-card { padding: 22px 18px 26px; }
  .palette { grid-template-columns: repeat(3, 58px); gap: 16px 22px; }
}

/* ═════════════════ NOTES (flip cards) ═════════════════ */
.flip-grid {
  width: min(1120px, 100%); margin: 40px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: stretch;
}
.flip {
  appearance: none; border: 0; background: none; padding: 0; margin: 0;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
  perspective: 1400px; display: block; width: 100%;
  transform: rotate(var(--r, 0deg));
  transition: transform .45s var(--spring);
}
.flip:hover { transform: rotate(0deg) translateY(-6px); }
html.motion .flip[data-rv].in:hover { transform: rotate(0deg) translateY(-6px); }
.flip-inner {
  display: grid; height: 100%;
  transform-style: preserve-3d;
  transition: transform .9s var(--spring);
}
.flip.is-flipped .flip-inner { transform: rotateY(180deg); }
.face {
  grid-area: 1 / 1;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  border: var(--line); border-radius: var(--r);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 30px 26px;
  min-height: 330px;
  display: flex; flex-direction: column; gap: 12px;
}
.front { background: var(--c); align-items: center; justify-content: center; text-align: center; }
.back  { background: var(--white); transform: rotateY(180deg); font-size: 16px; line-height: 1.6; justify-content: center; }
.f-icon { width: 76px; height: 76px; fill: var(--white); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.f-title { font: 400 54px/1 var(--script); }
.f-hint { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; background: var(--white); border: var(--line); border-radius: 999px; padding: 6px 12px; }
.b-title { font: 400 38px/1 var(--script); margin-bottom: 4px; }
@media (max-width: 900px) { .flip-grid { grid-template-columns: 1fr; max-width: 520px; } .face { min-height: 280px; } }

/* ═════════════════ ENTOURAGE ═════════════════ */
.tabs {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  margin-top: 30px; padding: 7px;
  background: var(--white); border: var(--line); border-radius: 999px;
  box-shadow: var(--pop);
}
.tabs button {
  appearance: none; border: 0; background: transparent; color: var(--ink);
  font: 700 16px/1 var(--sans); padding: 13px 20px; border-radius: 999px; cursor: pointer;
  transition: background-color .25s, color .25s;
}
.tabs button:hover { background: var(--butter); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--white); }
.tab-panels { width: min(960px, 100%); margin: 40px auto 0; display: flex; flex-direction: column; gap: 50px; }
html.js .tab-panels { display: block; }
html.js .tp:not(.is-on) { display: none; }
.tp-label { font-weight: 700; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 18px; }
.people { display: grid; gap: 18px; }
.people--4 { grid-template-columns: 1fr 1fr; }
.people--2 { grid-template-columns: 1fr 1fr; max-width: 640px; margin-inline: auto; }
.person {
  background: var(--c, var(--white)); border: var(--line); border-radius: var(--r);
  box-shadow: var(--pop); padding: 22px 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.person small { font-weight: 700; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.person b { font: 400 clamp(38px, 5vw, 52px)/1.1 var(--script); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.col { background: var(--white); border: var(--line); border-radius: var(--r); box-shadow: var(--pop); padding: 24px 22px 28px; }
.col-title { font: 400 54px/1 var(--script); margin-bottom: 14px; }
.col li { font-size: 19px; font-weight: 500; padding: 7px 0; border-bottom: 2px dotted rgba(46, 42, 79, .15); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.col li:last-child { border-bottom: 0; }
.col li b { font-weight: 800; }
.role { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: var(--pink); border: 1.5px solid var(--ink); border-radius: 999px; padding: 3px 9px; }
html.motion .squad:not(.seen) .nm { opacity: 0; }
html.motion .squad.seen .tp.is-on .nm { animation: nameIn .6s var(--spring) both; animation-delay: calc(var(--k, 0) * 45ms); }
@keyframes nameIn { from { opacity: 0; transform: translateY(22px) scale(.92); } }
@media (max-width: 680px) {
  .tabs { border-radius: 26px; }
  .tabs button { padding: 12px 15px; font-size: 15px; }
  .cols, .people--4, .people--2 { grid-template-columns: 1fr; }
}

/* ═════════════════ RSVP ═════════════════ */
.rsvp {
  display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 50px;
  padding-inline: max(20px, calc((100% - 1160px) / 2));
  text-align: left; overflow-x: clip;
}
.rsvp-art { position: relative; justify-self: center; width: min(460px, 100%); }
.rsvp-blob {
  aspect-ratio: 1; overflow: hidden;
  border: var(--line); box-shadow: 12px 12px 0 var(--ink);
  border-radius: 58% 42% 52% 48% / 46% 56% 44% 54%;
  animation: morph 10s ease-in-out infinite alternate;
  transform: rotate(calc(var(--p, 0) * 12deg - 6deg));
}
.rsvp-blob img { width: 100%; height: 100%; object-fit: cover; }
.panel-art svg { display: block; width: 100%; height: 100%; }
.rsvp-chip {
  position: absolute; font: 400 34px/1 var(--script);
  background: var(--butter); border: var(--line); border-radius: 16px;
  padding: 8px 16px 10px; box-shadow: 4px 4px 0 var(--ink);
}
.chip-1 { top: 6%; right: -2%; transform: rotate(10deg); animation: bob 3.6s ease-in-out infinite alternate; }
.chip-2 { bottom: 4%; left: -4%; background: var(--mint); transform: rotate(-8deg); animation: bob 4.4s ease-in-out infinite alternate-reverse; }
.rsvp-copy .script-title { font-size: clamp(72px, 10vw, 140px); }
.rsvp-copy > p { font-size: 20px; max-width: 520px; }
.deadline { margin-top: 14px; font-weight: 600; }
.rsvp-copy .btn--big { margin-top: 30px; }
@media (max-width: 860px) {
  .rsvp { grid-template-columns: 1fr; text-align: center; gap: 30px; }
  .rsvp-art { width: min(320px, 80vw); }
  .rsvp-copy > p { margin-inline: auto; }
}

/* confetti layer */
.confetti { position: fixed; z-index: 90; pointer-events: none; width: 10px; height: 14px; border-radius: 3px; border: 1.5px solid var(--ink); }
.sparkle { position: fixed; z-index: 80; pointer-events: none; font-size: 16px; line-height: 1; color: var(--pink-2); }

/* ═════════════════ CONTACT ═════════════════ */
.contact-grid { width: min(860px, 100%); margin: 36px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; perspective: 900px; }
.person-card {
  background: var(--c); border: var(--line); border-radius: var(--r);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 26px 22px 30px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  transform-style: preserve-3d;
}
.pc-name { font: 400 76px/1 var(--script); }
.person-card .btn { width: 100%; max-width: 300px; }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }

/* ═════════════════ FOOTER ═════════════════ */
.foot {
  position: relative;
  background: var(--grain-light) var(--ink); color: var(--cream);
  text-align: center;
  padding: 110px 20px 50px;
  overflow-x: clip;
}
.foot::before {
  content: ""; position: absolute; left: 0; right: 0; top: 1px; height: 46px; transform: translateY(-100%);
  background: var(--grain-light) var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 46' preserveAspectRatio='none'%3E%3Cpath d='M0 46V26C160 4 320 4 480 22S800 46 960 26 1280 2 1440 18V46Z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 46' preserveAspectRatio='none'%3E%3Cpath d='M0 46V26C160 4 320 4 480 22S800 46 960 26 1280 2 1440 18V46Z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.foot-line { font-size: 19px; opacity: .85; }
.foot-love { margin-top: 26px; font: 400 40px/1 var(--script); color: var(--butter); }
.foot-names {
  font: 400 clamp(88px, 17vw, 230px)/1.05 var(--script);
  padding: 0 .1em .12em;
  background: linear-gradient(90deg, var(--pink), var(--butter), var(--mint), var(--sky), var(--lilac));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: scale(calc(.72 + var(--ep, 1) * .28)) rotate(calc((1 - var(--ep, 1)) * -6deg));
  display: inline-block;
}
.foot-meta { margin-top: 6px; font-weight: 600; letter-spacing: .06em; }

/* ── Reduced motion: everything visible, nothing moves ── */
@media (prefers-reduced-motion: reduce) {
  html:not(.motion) *, html:not(.motion) *::before, html:not(.motion) *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
