/* Robert & Emma — April 3, 2027 */

:root {
  --cream: #faf6ec;
  --olive: #5c6b38;
  --dark: #4f5d2a;
  --deep: #36401d;
  --sand: #efe6c8;
  --sage: #c9d2b7;
  --mist: #f4f2e6;
  --pale: #e4e5d4;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --script: 'Pinyon Script', cursive;
  --stripes: repeating-linear-gradient(90deg, var(--sage) 0 22px, var(--mist) 22px 44px);
  --gutter: clamp(16px, 4.5vw, 48px);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--olive);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-wrap: break-word;
}
@supports (overflow-x: clip) { body { overflow-x: clip; } }
img { max-width: none; }
a { color: inherit; }
a:hover { color: var(--deep); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.no-scroll { overflow: hidden; }

/* ---------- type helpers ---------- */
.eyebrow { font-size: 13px; letter-spacing: .3em; text-transform: uppercase; font-weight: 600; line-height: 1.5; }
.caps { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; }
.script { font-family: var(--script); font-weight: 400; line-height: 1.05; }
.title { font-size: clamp(24px, 4.2vw, 40px); letter-spacing: .22em; text-transform: uppercase; font-weight: 500; line-height: 1.25; margin: 0; padding-left: .22em; }
.lede { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.55; text-wrap: pretty; }
.rule { display: flex; align-items: center; gap: 6px; margin: 14px 0 10px; }
.rule::before, .rule::after { content: ''; width: 26px; height: .75px; background: currentColor; }
.rule i { width: 4px; height: 4px; background: currentColor; transform: rotate(45deg); }
.rule.center { justify-content: center; }
.dash { width: 26px; height: .75px; background: currentColor; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 28px;
  border: .75px solid currentColor; background: none; cursor: pointer;
  font-family: var(--serif); font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none; text-align: center; color: inherit;
  transition: background-color .2s, color .2s;
}
.btn.solid { background: var(--dark); border-color: var(--dark); color: var(--sand); }
.btn.solid:hover { background: var(--deep); color: var(--sand); }
.on-dark .btn:hover { background: var(--sand); color: var(--dark); }
.btn.light { background: var(--sand); border-color: var(--sand); color: var(--dark); }
.btn.light:hover { background: var(--cream); }

/* ---------- decoration ---------- */
.ticker { height: 10px; background: repeating-linear-gradient(90deg, var(--sage) 0 6px, var(--mist) 6px 12px); }
.stripes { background: var(--stripes); }
.on-dark { background: var(--dark); color: var(--sand); }
.scallop { position: absolute; left: 0; right: 0; top: 0; height: 48px; pointer-events: none; z-index: 1; }
.scallop::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 18px; background: var(--sc, var(--dark)); }
.scallop::after {
  content: ''; position: absolute; left: 0; right: 0; top: 17px; height: 30px;
  background:
    radial-gradient(circle at 22px 0, var(--sc, var(--dark)) 0 21.5px, transparent 22px) 0 0/44px 24px repeat-x,
    radial-gradient(circle at 22px 0, transparent 0 23px, var(--sc-line, var(--sand)) 23px 24px, transparent 24.5px) 0 0/44px 30px repeat-x;
}
.scallop.cream { --sc: var(--cream); --sc-line: rgba(239, 230, 200, .7); }
.scallop.cream::before { height: 12px; }
.scallop.cream::after { top: 11px; }
.tile { background: url(web/liner-tile.png) 0 0/240px 280px space, var(--stripes); }
.frame { background: var(--cream); padding: 12px; box-shadow: 0 2px 10px rgba(60, 60, 40, .15); }
.frame > .in { border: .75px solid var(--olive); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(250, 246, 236, .96);
  -webkit-backdrop-filter: saturate(1.2) blur(8px); backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: .75px solid rgba(92, 107, 56, .3);
  padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right);
}
.header-bar {
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 calc(var(--gutter) - 8px);
}
.monogram {
  grid-column: 2; display: flex; align-items: center; gap: 10px;
  font-size: 22px; font-weight: 500; letter-spacing: .2em; padding-left: .2em; text-decoration: none; color: var(--olive);
}
.monogram img { width: 22px; height: 30px; object-fit: contain; }
.menu-btn {
  grid-column: 1; justify-self: start;
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px;
  background: none; border: 0; cursor: pointer;
  font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
}
.menu-btn .bars { position: relative; width: 22px; height: 12px; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ''; position: absolute; left: 0; right: 0; height: 1.25px; background: currentColor; transition: transform .3s, top .3s; }
.menu-btn .bars::before { top: 0; }
.menu-btn .bars::after { top: 10px; }
.menu-open .menu-btn .bars::before { top: 5px; transform: rotate(45deg); }
.menu-open .menu-btn .bars::after { top: 5px; transform: rotate(-45deg); }
.header-rsvp { grid-column: 3; justify-self: end; min-height: 40px; padding: 8px 16px; font-size: 11px; }
.desk-nav { display: none; }
[data-current="rsvp"] .header-rsvp { visibility: hidden; }

.nav-link { text-decoration: none; }

/* mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 25;
  padding: calc(var(--header-h) + 10px + 28px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  overflow-y: auto; overscroll-behavior: contain;
  visibility: hidden; opacity: 0; transform: translateY(-12px);
  transition: opacity .3s, transform .3s, visibility 0s .3s;
}
.menu-open .menu { visibility: visible; opacity: 1; transform: none; transition: opacity .3s, transform .3s; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.menu a {
  display: block; padding: 10px 16px;
  font-size: clamp(20px, 6vw, 26px); letter-spacing: .2em; padding-left: calc(16px + .2em); text-transform: uppercase; font-weight: 500;
}
.menu a[aria-current="page"] { font-family: var(--script); text-transform: none; letter-spacing: 0; font-size: clamp(32px, 9vw, 40px); line-height: 1.1; padding-left: 16px; }
.menu .menu-foot { margin-top: auto; padding-top: 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.menu .menu-foot img { width: 34px; }

@media (min-width: 1000px) {
  :root { --header-h: 100px; }
  .header-bar { height: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 20px 10px; }
  .menu-btn, .header-rsvp, .menu { display: none; }
  .desk-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; }
  .desk-nav a {
    padding: 6px 0 4px; border-bottom: 1px solid transparent;
    font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
    transition: border-color .2s;
  }
  .desk-nav a:hover { border-bottom-color: rgba(92, 107, 56, .4); }
  .desk-nav a[aria-current="page"] { border-bottom-color: var(--olive); }
}

/* ---------- pages ---------- */
main { flex: 1; }
.page { display: none; }
.page.is-active { display: block; animation: pageIn .5s ease-out both; }
.shell { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
section { position: relative; }
.wrap { max-width: 1080px; margin: 0 auto; }

/* ---------- HOME: hero ---------- */
.hero {
  overflow: hidden; display: flex; justify-content: center;
  padding: clamp(80px, 10vw, 120px) var(--gutter) clamp(60px, 8vw, 100px);
}
.hero .palm { position: absolute; bottom: -10px; width: auto; transform-origin: bottom center; pointer-events: none; }
.hero .palm.l { left: max(-60px, calc(50% - 760px)); height: min(88%, 860px); transform: scaleX(-1) rotate(-4deg); animation: swayL 5.5s ease-in-out infinite; }
.hero .palm.r { right: max(-60px, calc(50% - 740px)); height: min(76%, 760px); transform: rotate(-3deg); animation: swayR 6.8s ease-in-out -2s infinite; }
.oval {
  position: relative; width: min(100%, max(720px, 62vw), 1060px); aspect-ratio: 1.32 / 1;
  border-radius: 50%; background: var(--cream); box-shadow: 0 6px 24px rgba(60, 60, 40, .22); overflow: hidden;
  container-type: inline-size;
}
.oval .fairway {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 35%; object-fit: cover; object-position: bottom;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 70%); mask-image: linear-gradient(to bottom, transparent, #000 70%);
}
.oval .ring1 { position: absolute; inset: 14px; border: 1.5px solid var(--olive); border-radius: 50%; }
.oval .ring2 { position: absolute; inset: 20px; border: .75px solid var(--olive); border-radius: 50%; }
.invite {
  position: absolute; inset: 0 0 22% 0; padding: 8% 0 0;
  display: flex; flex-direction: column; align-items: center; justify-content: safe center; text-align: center;
}
.invite > :not(.names) { max-width: 74%; }
.invite .hosts { font-size: clamp(10px, 1.95cqw, 20px); letter-spacing: .2em; text-transform: uppercase; font-weight: 600; line-height: 1.55; }
.invite .hosts em { font-style: italic; font-weight: 400; font-size: 1.35em; letter-spacing: 0; text-transform: none; margin-right: .3em; }
.invite .request { margin-top: .5em; font-style: italic; font-size: clamp(14px, 3cqw, 31px); line-height: 1.35; }
.invite .names { display: flex; align-items: baseline; justify-content: center; flex-wrap: nowrap; white-space: nowrap; margin: 1.6cqw 0 0; font-family: var(--script); font-size: clamp(36px, 11cqw, 118px); font-weight: 400; line-height: 1; }
.invite .names > span, .invite .amp-row > span { display: inline-flex; padding: 0 .08em; }
.invite .amp-row > span:first-child { padding: 0 .14em; }
.invite .date { font-size: clamp(12px, 2.7cqw, 28px); letter-spacing: .3em; padding-left: .3em; font-weight: 600; margin-top: 1.6cqw; }
.invite .venue {
  margin-top: 1.8cqw; line-height: 1.7; font-size: clamp(10px, 2.15cqw, 22px); letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--dark);
  text-shadow: 0 0 4px var(--cream), 0 0 8px var(--cream), 0 0 12px var(--cream);
}
.invite .venue span { display: inline-block; }
.invite .venue i { font-style: normal; }

/* ink-written letters */
.ink {
  display: inline-block; padding: .5em .3em; margin: -.5em -.3em; transform-origin: 0 80%;
  -webkit-mask-image: linear-gradient(90deg, #000 42%, transparent 58%); mask-image: linear-gradient(90deg, #000 42%, transparent 58%);
  -webkit-mask-size: 260% 100%; mask-size: 260% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  animation: ink var(--dur, .32s) cubic-bezier(.35, .15, .25, 1) var(--d, 0s) both;
}
.ink.first { padding-left: .8em; margin-left: -.8em; }

/* Palms are pinned to the oval's edges so they stay beside it at any size */
@media (min-width: 761px) {
  /* width-limited, and also height-limited so the whole oval fits in the window under the header */
  .hero { --ow: min(100vw - 2 * var(--gutter), max(720px, 62vw), 1060px, max(520px, (100vh - var(--header-h) - 10px - clamp(80px, 10vw, 120px) - clamp(60px, 8vw, 100px)) * 1.32)); }
  @supports (height: 100svh) { .hero { --ow: min(100vw - 2 * var(--gutter), max(720px, 62vw), 1060px, max(520px, (100svh - var(--header-h) - 10px - clamp(80px, 10vw, 120px) - clamp(60px, 8vw, 100px)) * 1.32)); } }
  .oval { width: var(--ow); }
  .hero .palm.l { left: auto; right: calc(50% + var(--ow) * .23); height: calc(var(--ow) * .84); }
  .hero .palm.r { right: auto; left: calc(50% + var(--ow) * .25); height: calc(var(--ow) * .74); }
}

/* Small screens: same wide oval and palm layout, just scaled down */
@media (max-width: 760px) {
  .hero { container-type: inline-size; padding: max(64px, 15cqw) 12px max(40px, 9cqw); }
  .hero .palm.l { left: -9cqw; height: 92%; }
  .hero .palm.r { right: -9cqw; height: 80%; }
  .oval { width: min(100%, 640px); }
  .invite { inset: 0 0 15% 0; padding: 7.5% 0 0; }
  .invite > :not(.names) { max-width: 82%; }
  .invite .hosts { font-size: clamp(8.5px, 2.5cqw, 14px); letter-spacing: .14em; line-height: 1.45; }
  .invite .request { font-size: clamp(11.5px, 3.6cqw, 21px); margin-top: .35em; line-height: 1.3; }
  .invite .names { font-size: 12cqw; margin-top: 1.4cqw; }
  .invite .date { font-size: clamp(10px, 3cqw, 19px); margin-top: 1.6cqw; }
  .invite .venue { font-size: clamp(8.5px, 2.5cqw, 15px); letter-spacing: .1em; line-height: 1.6; margin-top: 1.6cqw; max-width: 92%; }
  .oval .ring1 { inset: 8px; }
  .oval .ring2 { inset: 12px; }
}
@media (max-width: 370px) {
  .hero { padding-left: 6px; padding-right: 6px; }
  .invite { padding-top: 6%; inset: 0 0 10% 0; }
  .invite .venue { letter-spacing: .06em; max-width: 96%; }
  .invite .request { font-size: 11px; }
}

/* ---------- HOME: countdown ---------- */
.countdown { padding: 18px var(--gutter); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 28px; }
.countdown .script { font-size: clamp(26px, 3vw, 32px); }
.cd { display: flex; align-items: center; gap: clamp(8px, 2.4vw, 22px); }
.cd > div { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 52px; }
.cd b { font-size: clamp(28px, 3.4vw, 36px); font-weight: 500; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.cd small { font-size: 10px; letter-spacing: .26em; padding-left: .26em; text-transform: uppercase; font-weight: 600; }
.cd i { width: 5px; height: 5px; background: var(--sand); transform: rotate(45deg); }

/* ---------- HOME: welcome + golf cart ---------- */
.welcome {
  overflow: hidden; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding: clamp(56px, 8vw, 96px) var(--gutter) calc(clamp(40px, 8vw, 96px) + var(--scene-h));
  --scene-h: 200px; --pin: 76%; --cart-w: clamp(110px, 12vw, 140px);
}
.welcome .lede { max-width: 640px; }
.welcome .sig { font-size: 36px; }
.scene { position: absolute; left: 0; right: 0; bottom: 0; height: var(--scene-h); pointer-events: none; }
.scene .tree { position: absolute; left: calc(var(--pin) + 34px); bottom: 8px; height: calc(var(--scene-h) - 10px); width: auto; }
.scene .green { position: absolute; left: calc(var(--pin) - 70px); bottom: 4px; width: 170px; height: 18px; border-radius: 50%; background: var(--sage); }
.scene .cup { position: absolute; left: calc(var(--pin) + 8px); bottom: 10px; width: 12px; height: 5px; border-radius: 50%; background: var(--dark); }
.scene .pole { position: absolute; left: calc(var(--pin) + 13px); bottom: 12px; width: 2px; height: 96px; background: var(--dark); }
.scene .flag { position: absolute; left: calc(var(--pin) + 15px); bottom: 76px; width: 44px; height: 30px; transform-origin: 0 50%; animation: flagWave 1.6s ease-in-out infinite; }
.scene .flag svg { display: block; width: 100%; height: 100%; }
.scene .cart { position: absolute; left: -200px; bottom: 10px; width: var(--cart-w); animation: cartDrive 6s cubic-bezier(.25, .6, .35, 1) .3s both paused; }
.scene .cart > div { transform-origin: 50% 100%; animation: cartBob .45s ease-in-out .3s 13 paused; }
.scene .cart img { display: block; width: 100%; height: auto; }
.scene.go .cart, .scene.go .cart > div { animation-play-state: running; }
@media (max-width: 640px) { .welcome { --scene-h: 150px; --pin: 64%; --cart-w: 104px; } .scene .pole { height: 76px; } .scene .flag { bottom: 56px; } }

/* ---------- HOME: order of events ---------- */
.order { padding: calc(clamp(56px, 7vw, 80px) + 30px) var(--gutter) clamp(56px, 7vw, 80px); text-align: center; }
.timeline { position: relative; list-style: none; margin: 40px auto 0; padding: 0; max-width: 1080px; display: grid; grid-template-columns: repeat(5, 1fr); }
.timeline::before { content: ''; position: absolute; left: 10%; right: 10%; top: 38px; height: 1px; background: linear-gradient(90deg, rgba(239, 230, 200, .6) 0 4px, transparent 4px 10px) 0 0/10px 1px; }
.timeline li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 10px; }
.timeline .ic {
  width: 76px; height: 76px; border-radius: 50%; background: var(--dark); margin-bottom: 12px; flex-shrink: 0;
  box-shadow: 0 0 0 1.25px var(--sand), 0 0 0 5px var(--dark), 0 0 0 5.75px rgba(239, 230, 200, .55);
  display: flex; align-items: center; justify-content: center;
}
.timeline .ic svg { width: 42px; height: 42px; display: block; fill: none; stroke: var(--sand); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.timeline .ic img { width: 30px; height: 40px; object-fit: contain; }
.timeline .day { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; font-weight: 600; }
.timeline .time { font-size: 26px; font-weight: 500; letter-spacing: .06em; line-height: 1.2; }
.timeline .what { font-family: var(--script); font-size: 26px; line-height: 1.1; }
.order .btn { margin-top: 44px; }
@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; max-width: 380px; gap: 22px; text-align: left; }
  .timeline::before { left: 38px; right: auto; top: 30px; bottom: 30px; width: 1px; height: auto; background: linear-gradient(180deg, rgba(239, 230, 200, .6) 0 4px, transparent 4px 10px) 0 0/1px 10px; }
  .timeline li { display: grid; grid-template-columns: 76px 1fr; grid-template-rows: auto auto; column-gap: 20px; row-gap: 0; align-items: center; padding: 0; }
  .timeline .ic { grid-row: 1 / 3; margin: 0; }
  .timeline .meta { align-self: end; display: flex; align-items: baseline; gap: 10px; }
  .timeline .time { font-size: 22px; }
  .timeline .what { align-self: start; font-size: 28px; }
}
@media (min-width: 761px) { .timeline .meta { display: contents; } }

/* ---------- HOME: reply card ---------- */
.reply-sec { display: flex; align-items: center; justify-content: center; min-height: 560px; padding: 64px var(--gutter); background: url(web/fairway.jpg) center/cover no-repeat; }
.postcard { position: relative; width: min(100%, 560px); background: var(--cream); padding: 12px; box-shadow: 0 4px 18px rgba(40, 45, 20, .25); }
.postcard .o { border: 1.5px solid var(--olive); padding: 4px; }
.postcard .i { border: .75px solid var(--olive); padding: clamp(40px, 8vw, 48px) clamp(20px, 6vw, 32px) 40px; text-align: center; position: relative; }
.postcard .stamp { position: absolute; right: 14px; top: 14px; width: 52px; height: 64px; border: 1.5px dashed var(--olive); display: flex; align-items: center; justify-content: center; background: var(--sand); }
.postcard .stamp img { width: 26px; }
.postcard h2 { margin: 0; font-size: clamp(50px, 7vw, 66px); }
.postcard p { font-size: 20px; line-height: 1.55; margin: 14px 0 24px; font-style: italic; text-wrap: pretty; }
@media (max-width: 480px) { .reply-sec { min-height: 0; padding: 56px 16px; } .postcard .stamp { width: 42px; height: 52px; right: 10px; top: 10px; } .postcard .stamp img { width: 20px; } .postcard h2 { padding: 0 34px; } }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.split .panel { padding: clamp(48px, 6vw, 72px) var(--gutter); display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.split .panel p { margin: 0; font-size: 20px; line-height: 1.55; max-width: 440px; text-wrap: pretty; }
.split .panel .btn { align-self: flex-start; margin-top: 8px; }
.bars-art { min-height: 240px; background: repeating-linear-gradient(90deg, var(--dark) 0 26px, var(--cream) 26px 52px); }
@media (max-width: 700px) { .bars-art { min-height: 120px; } }

/* ---------- WEEKEND ---------- */
.page-hero { overflow: hidden; text-align: center; padding: clamp(56px, 8vw, 104px) var(--gutter); }
.page-hero .fronds { position: absolute; width: clamp(260px, 36vw, 440px); opacity: .35; pointer-events: none; }
.page-hero .fronds.a { left: -18%; top: -40%; transform: scaleX(-1) rotate(10deg); }
.page-hero .fronds.b { right: -18%; bottom: -40%; transform: rotate(190deg) scaleX(-1); }
@media (min-width: 900px) { .page-hero .fronds.a { left: -120px; top: -70px; } .page-hero .fronds.b { right: -120px; bottom: -70px; } }
.page-hero h1 { position: relative; margin: 10px 0 0; font-size: clamp(60px, 9vw, 104px); line-height: 1; }
.page-hero .eyebrow { position: relative; }

.wp { padding: clamp(48px, 7vw, 88px) var(--gutter); }
.wp .grid { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(32px, 5vw, 64px); align-items: center; }
.flip-col { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.flip { position: relative; width: min(300px, 100%); aspect-ratio: 480 / 672; padding: 0; border: 0; background: none; cursor: pointer; perspective: 1400px; color: var(--olive); font-variant-numeric: lining-nums; -webkit-tap-highlight-color: transparent; }
.flip .card { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 1.1s cubic-bezier(.4, .1, .2, 1); }
.flip.flipped .card { transform: rotateY(180deg); }
.flip .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip .face.back { transform: rotateY(180deg); }
.flip .art { position: absolute; left: 0; top: 0; width: 480px; height: 672px; transform: scale(var(--s, .625)); transform-origin: 0 0; }
.flip .art > img { position: absolute; left: 0; top: 0; width: 480px; height: 672px; }
.flip .art .shadow { filter: drop-shadow(0 1px 3px rgba(60, 60, 40, .25)); }
.flip .addr { position: absolute; left: 11px; top: 141px; width: 480px; transform: rotate(7.5deg) scale(1.13); transform-origin: 50% 45px; display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--sand); font-size: 16.8px; font-weight: 500; line-height: 22px; white-space: nowrap; }
.flip .addr b { font-size: 14.7px; line-height: 20px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; padding-left: .24em; }
.flip svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.flip-hint { background: var(--cream); padding: 6px 14px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; }
.details { display: flex; flex-direction: column; gap: 10px; }
.details h2 { margin: 0; font-size: clamp(54px, 6vw, 76px); }
.details .intro { font-size: 21px; line-height: 1.5; font-style: italic; margin: 0; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; align-items: baseline; margin: 0; }
.facts dt { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; }
.facts dd { margin: 0; font-size: 20px; line-height: 1.4; }
.details .btn { align-self: flex-start; margin-top: 16px; }
.details .in { padding: clamp(28px, 4vw, 48px) clamp(20px, 3.5vw, 40px); display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 400px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 10px; } }

.arch-sec { display: flex; justify-content: center; padding: clamp(56px, 8vw, 104px) var(--gutter); background: url(web/fairway.jpg) center bottom/cover no-repeat; }
.arch { width: min(100%, 560px); background: var(--cream); border-radius: 999px 999px 6px 6px; padding: 10px; box-shadow: 0 4px 18px rgba(40, 45, 20, .25); }
.arch > div { border: 1.5px solid var(--olive); border-radius: 999px 999px 3px 3px; padding: 4px; }
.arch > div > div { border: .75px solid var(--olive); border-radius: 999px 999px 2px 2px; padding: clamp(64px, 14vw, 88px) clamp(20px, 5vw, 32px) 48px; text-align: center; }
.arch h2 { margin: 10px 0 0; font-size: clamp(54px, 7vw, 76px); }
.arch .when { font-size: 15px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; }
.arch p { font-size: 20px; line-height: 1.55; margin: 6px 0 0; }
.arch .after { font-family: var(--script); font-size: 26px; line-height: 1.2; margin-top: 12px; }

.pb { overflow: hidden; }
.pb .art { min-height: 300px; display: flex; align-items: center; justify-content: center; padding: 40px var(--gutter); }
.pb .art > div { background: var(--cream); border-radius: 50%; width: min(100%, 300px); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1.5px var(--olive); }
.pb .art img { width: 70%; height: auto; }
.pb .panel h2 { margin: 0; font-size: clamp(50px, 6vw, 72px); }
.pb .panel .when { font-size: 15px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; }
.pb .panel .dash { margin: 8px 0; }
.ball { position: absolute; bottom: 26px; left: -50px; width: 36px; height: 36px; z-index: 2; pointer-events: none; animation: ballX 7s linear infinite; }
.ball > div { width: 100%; height: 100%; animation: ballY .9s infinite; }
.ball svg { display: block; width: 36px; height: 36px; animation: spin .8s linear infinite; filter: drop-shadow(0 2px 2px rgba(40, 45, 20, .2)); }
@media (max-width: 700px) { .ball { animation-duration: 5s; } @keyframes ballY { 0% { transform: translateY(0); animation-timing-function: cubic-bezier(.2, .6, .4, 1); } 50% { transform: translateY(-90px); animation-timing-function: cubic-bezier(.6, 0, .8, .4); } 100% { transform: translateY(0); } } }

.wear-sec { padding: clamp(40px, 6vw, 72px) var(--gutter); }
.wear { max-width: 960px; margin: 0 auto; padding: clamp(36px, 5vw, 64px) clamp(20px, 4vw, 56px); background: var(--cream); box-shadow: 0 2px 10px rgba(60, 60, 40, .15); }
.wear .head { text-align: center; }
.wear .head .script { font-size: clamp(30px, 4vw, 40px); line-height: 1.2; margin-top: 8px; }
.wear .cols { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; }
.wear .cols > div { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.wear .code { font-size: 23px; font-weight: 600; line-height: 1.2; }
.wear .cols p { margin: 0; font-size: 19px; line-height: 1.55; text-wrap: pretty; }
.wear .dash { width: 22px; }

/* ---------- TRAVEL ---------- */
.travel-head { text-align: center; padding: clamp(40px, 5vw, 60px) var(--gutter) 0; }
.travel-head .script { font-size: clamp(30px, 3.5vw, 38px); margin-top: 8px; }
.plane-strip { position: relative; margin-top: 18px; height: clamp(190px, 26vw, 320px); overflow: hidden; }
.plane-strip .fairway { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; object-fit: cover; object-position: bottom; opacity: .75; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 60%); mask-image: linear-gradient(to bottom, transparent, #000 60%); }
.plane-strip .runway { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: var(--dark); }
.plane-strip .runway::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 1.5px; background: linear-gradient(90deg, var(--sand) 0 22px, transparent 22px 44px) 0 0/44px 1.5px; }
.plane-strip .flight { position: absolute; left: 50%; bottom: 13px; width: clamp(260px, 52vw, 600px); transform: translateX(-50%); }
.plane-strip .flight > div { animation: planeX 5.2s cubic-bezier(.22, .61, .36, 1) .2s both; }
.plane-strip .flight > div > div { animation: planeY 5.2s .2s both; }
.plane-strip .flight > div > div > div { position: relative; transform-origin: 52% 100%; animation: planeR 5.2s ease-in-out .2s both; }
.plane-strip .flight img { display: block; width: 100%; height: auto; }
.plane-strip .puff { position: absolute; bottom: -3px; border-radius: 50%; background: var(--sand); opacity: 0; }
.plane-strip .puff.a { left: 48%; width: 26px; height: 12px; animation: puff 1.1s ease-out 4.05s both; }
.plane-strip .puff.b { left: 53%; bottom: -1px; width: 18px; height: 9px; animation: puff 1.1s ease-out 4.15s both; }
.plane-strip .tag { position: absolute; right: var(--gutter); top: 18px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; font-weight: 600; background: var(--cream); padding: 8px 14px; border: .75px solid var(--olive); animation: fadeUp .8s ease-out 5.3s both; }
.airports { max-width: 760px; margin: 28px auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 18px; }
.airport { border: 1.5px solid var(--olive); padding: 4px; }
.airport > div { border: .75px dashed var(--olive); padding: 22px 16px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.airport b { font-size: 42px; letter-spacing: .16em; padding-left: .16em; font-weight: 600; line-height: 1; }
.airport span { font-size: 17px; }
.airport small { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; margin-top: 6px; }
@media (max-width: 520px) { .airports { grid-template-columns: 1fr 1fr; gap: 10px; } .airport > div { padding: 18px 8px; } .airport b { font-size: 34px; } .airport span { font-size: 15px; line-height: 1.3; text-align: center; } .airport small { font-size: 10.5px; letter-spacing: .16em; text-align: center; } .plane-strip .tag { top: 10px; font-size: 10px; padding: 6px 10px; } }

.hotels-sec { padding: clamp(48px, 7vw, 88px) var(--gutter); background: linear-gradient(rgba(79, 93, 42, .35), rgba(79, 93, 42, .35)), url(web/fairway.jpg) center/cover no-repeat; }
.hotels-sec .title { text-align: center; color: var(--cream); text-shadow: 0 1px 8px rgba(40, 45, 20, .5); }
.hotels { list-style: none; padding: 0; max-width: 1120px; margin: 36px auto 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.hotel { background: var(--dark); color: var(--sand); padding: 26px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hotel .caps { font-size: 11px; opacity: .9; }
.hotel b { font-size: 22px; font-weight: 600; line-height: 1.2; }
.hotel .dash { width: 22px; margin: 4px 0; }
.hotel p { margin: 0; font-size: 17px; line-height: 1.45; }
.hotel .script { font-size: 23px; margin-top: 4px; }
@media (max-width: 520px) {
  .hotels { gap: 10px; }
  .hotel { display: grid; grid-template-columns: 1fr auto; text-align: left; align-items: baseline; gap: 2px 14px; padding: 18px 18px; }
  .hotel .caps { grid-column: 1 / -1; }
  .hotel b { font-size: 21px; }
  .hotel .dash { display: none; }
  .hotel p { grid-column: 1; font-size: 16px; }
  .hotel .script { grid-column: 2; grid-row: 2 / 4; align-self: center; margin: 0; font-size: 22px; white-space: nowrap; text-align: right; }
  .hotel .script span { display: block; font-size: 15px; }
}

/* ---------- TODO ---------- */
.todo-sec { padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(56px, 7vw, 88px); }
.pill { margin: 0 auto 32px; width: fit-content; max-width: 100%; background: var(--cream); padding: 20px clamp(24px, 6vw, 40px); text-align: center; border-radius: 60px; }
.pill h1 { margin: 0; font-size: clamp(46px, 6vw, 64px); }
.todos { list-style: none; padding: 0; margin: 0 auto; max-width: 1080px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.todo { position: relative; background: var(--cream); padding: 10px; }
.todo > .body { border: .75px solid var(--olive); padding: 26px 22px; display: flex; flex-direction: column; gap: 8px; height: 100%; }
.todo .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.todo .top span:last-child { font-size: 12px; letter-spacing: .14em; font-weight: 600; }
.todo h2 { margin: 0; font-size: 28px; font-weight: 600; line-height: 1.15; }
.todo p { margin: 0; font-size: 18px; line-height: 1.5; text-wrap: pretty; }
.todo .pick { position: absolute; right: -8px; bottom: -14px; z-index: 1; width: 84px; height: 84px; border-radius: 50%; background: var(--dark); color: var(--sand); display: flex; align-items: center; justify-content: center; text-align: center; transform: rotate(-8deg); box-shadow: 0 2px 8px rgba(40, 45, 20, .25); font-family: var(--script); font-size: 21px; line-height: 1; padding: 0 8px; }
.todo .pick::before { content: ''; position: absolute; inset: 5px; border: 1px dashed var(--sand); border-radius: 50%; }
.todo.has-pick > .body { padding-bottom: 40px; }

/* ---------- PARTY ---------- */
.party { padding: clamp(40px, 6vw, 80px) var(--gutter); }
.party.leafy { overflow: hidden; background: var(--cream); padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(64px, 9vw, 120px); }
.leaf { position: absolute; width: clamp(280px, 38vw, 560px); pointer-events: none; filter: brightness(0) saturate(100%) invert(38%) sepia(20%) saturate(900%) hue-rotate(40deg); opacity: .8; }
.leaf.a { left: -140px; top: -60px; transform: scaleX(-1) rotate(10deg); }
.leaf.b { right: -140px; top: -60px; transform: rotate(10deg); }
.leaf.c { left: -160px; bottom: -80px; transform: rotate(190deg); }
.leaf.d { right: -160px; bottom: -80px; transform: rotate(190deg) scaleX(-1); }
.leaf.e { left: -220px; top: 36%; transform: scaleX(-1) rotate(-70deg); opacity: .6; }
.leaf.f { right: -220px; top: 30%; transform: rotate(-70deg); opacity: .6; }
.party-card { position: relative; max-width: 860px; margin: 0 auto; box-shadow: 0 6px 24px rgba(60, 60, 40, .18); }
@media (max-width: 600px) { .leaf { opacity: .55; } .leaf.e, .leaf.f { display: none; } }
.party-card .in { display: grid; grid-template-columns: 1fr 1fr; padding: clamp(36px, 5vw, 56px) clamp(16px, 4vw, 40px); }
.party-col { text-align: center; padding: 0 clamp(12px, 3vw, 32px); }
.party-col + .party-col { border-left: .75px solid rgba(92, 107, 56, .35); }
.party-col h2 { margin: 0 0 22px; font-size: clamp(38px, 4.5vw, 50px); }
.party-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.party-col b { display: block; font-size: 21px; font-weight: 600; line-height: 1.25; }
.party-col span { display: block; font-size: 10.5px; letter-spacing: .24em; padding-left: .24em; text-transform: uppercase; font-weight: 600; margin-top: 3px; }
@media (max-width: 600px) {
  .party-card .in { grid-template-columns: 1fr; }
  .party-col + .party-col { border-left: 0; border-top: .75px solid rgba(92, 107, 56, .35); margin-top: 32px; padding-top: 32px; }
}

/* ---------- RSVP ---------- */
.rsvp-sec { overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); min-height: calc(100svh - var(--header-h) - 10px); }
.rsvp-main { padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(56px, 7vw, 88px); display: flex; flex-direction: column; gap: 16px; background: var(--cream); color: var(--deep); }
.rsvp-main > .title { color: var(--dark); }
.rsvp-main > p { margin: 0; font-size: 21px; line-height: 1.55; max-width: 500px; }
.rsvp-art { display: flex; align-items: center; justify-content: center; padding: 40px; }
.rsvp-art > div { position: relative; width: min(100%, 300px); aspect-ratio: 3 / 4; border-radius: 50%; background: var(--cream); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.rsvp-art > div::before { content: ''; position: absolute; inset: 10px; border: 1.5px solid var(--olive); border-radius: 50%; }
.rsvp-art img { position: relative; width: 44px; }
.rsvp-art .script { position: relative; font-size: 46px; }
.rsvp-art .caps { position: relative; }
@media (max-width: 860px) {
  .rsvp-sec { grid-template-columns: 1fr; min-height: 0; }
  .rsvp-art { padding: 28px var(--gutter); }
  .rsvp-art > div { width: min(100%, 220px); }
  .rsvp-art .script { font-size: 32px; }
}
/* RSVP form: dark text on cream, large type and targets for easy reading */
.form { display: flex; flex-direction: column; gap: 16px; max-width: 580px; margin-top: 6px; font-size: 20px; }
.form .caps { font-size: 18px; letter-spacing: .02em; text-transform: none; font-weight: 700; color: var(--deep); }
.field {
  font-family: var(--serif); font-size: 21px; font-weight: 500; padding: 14px 16px; min-height: 56px; width: 100%;
  border: 1.5px solid var(--olive); border-radius: 4px; background: #fff; color: var(--deep); outline: none;
  -webkit-appearance: none; appearance: none;
}
.field:focus { border-color: var(--dark); box-shadow: 0 0 0 3px rgba(79, 93, 42, .25); }
.field::placeholder { color: #7a8560; opacity: 1; }
.form .msg { font-size: 19px; line-height: 1.5; padding: 12px 16px; border-left: 4px solid #a0522d; background: #fbeee4; color: #6b2e12; font-weight: 600; }
.form .msg:empty { display: none; }
.choices { display: flex; flex-direction: column; gap: 10px; }
.choice { cursor: pointer; text-align: left; padding: 14px 18px; min-height: 56px; border: 1.5px solid var(--olive); border-radius: 4px; background: #fff; color: var(--deep); font-size: 21px; font-weight: 600; }
.choice:hover { background: var(--dark); color: var(--cream); }
.party-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.party-head .script { font-family: var(--serif); font-size: clamp(26px, 5vw, 32px); font-weight: 600; line-height: 1.2; color: var(--dark); }
.linkish { background: none; border: 0; cursor: pointer; color: var(--dark); font-size: 17px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; padding: 10px 0; }
.guest { border: 1.5px solid rgba(79, 93, 42, .45); border-radius: 6px; background: #fffdf7; padding: 22px clamp(16px, 4vw, 24px); display: flex; flex-direction: column; gap: 14px; }
.guest .script { font-family: var(--serif); font-size: 25px; font-weight: 700; line-height: 1.2; color: var(--deep); }
.ev { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; align-items: center; padding: 14px 0; border-top: 1px solid rgba(79, 93, 42, .25); }
.ev .caps { font-size: 20px; }
.ev .d { font-size: 18px; color: #4a5530; }
.seg { display: flex; gap: 8px; }
.tog {
  cursor: pointer; min-height: 52px; padding: 10px 18px; border: 1.5px solid var(--olive); border-radius: 4px; background: #fff; color: var(--deep);
  font-size: 18px; font-weight: 600; letter-spacing: .01em; transition: background-color .15s, color .15s;
}
.tog[aria-pressed="true"] { background: var(--dark); border-color: var(--dark); color: #fff; }
.tog[aria-pressed="true"]::before { content: '✓ '; }
.tog:hover:not([aria-pressed="true"]) { background: #eef0e4; }
.meals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.meals .tog { padding: 12px 6px; }
.diets { display: flex; flex-wrap: wrap; gap: 8px; }
.diets .tog { font-size: 17px; min-height: 48px; padding: 8px 14px; }
.form .hint { font-size: 18px; line-height: 1.5; margin: 0; color: #4a5530; }
.form .send { min-height: 60px; font-size: 18px; letter-spacing: .12em; margin-top: 6px; border-radius: 4px; }
.form .send.light { background: var(--dark); border-color: var(--dark); color: #fff; }
.form .send.light:hover { background: var(--deep); }
.form .send[disabled] { opacity: .7; cursor: progress; }
@media (max-width: 520px) {
  .ev { grid-template-columns: 1fr; gap: 10px; }
  .seg .tog { flex: 1; }
  .meals { grid-template-columns: 1fr; }
}
.thanks { padding: 24px 0; color: var(--dark); }
.thanks .script { font-size: 56px; }
.thanks p { font-size: 22px; margin: 6px 0 0; }
.leaves { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 3; }
.leaves img { position: absolute; top: 0; height: auto; filter: brightness(0) saturate(100%) invert(38%) sepia(20%) saturate(900%) hue-rotate(40deg); opacity: .8; animation: leafFall var(--t) cubic-bezier(.3, .1, .6, 1) var(--dl) both; }

/* ---------- REGISTRY ---------- */
.reg-sec { display: flex; justify-content: center; padding: calc(clamp(56px, 8vw, 104px) + 30px) calc(var(--gutter) + 12px) clamp(64px, 8vw, 104px) var(--gutter); background: var(--cream) url(web/liner-tile.png) 0 0/240px 280px space; }
.scallop.olive-line { --sc-line: var(--dark); }
.gift { position: relative; width: min(100%, 640px); }
.gift::before { content: ''; position: absolute; inset: 14px -12px -12px 14px; border: 2px solid var(--dark); }
@media (min-width: 700px) { .gift::before { inset: 18px -18px -18px 18px; } }
.gift .card { position: relative; background: var(--cream); border: .75px solid var(--olive); padding: clamp(44px, 6vw, 72px) clamp(20px, 5vw, 56px); text-align: center; }
.gift h1 { margin: 0; font-size: clamp(60px, 7vw, 80px); }
.gift p { font-size: 21px; line-height: 1.6; margin: 18px 0 0; text-wrap: pretty; }
.gift .links { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 480px) { .gift .links { flex-direction: column; } }
.wrap-anim { position: absolute; inset: 0; z-index: 2; pointer-events: none; perspective: 1400px; }
.wrap-anim .flap { position: absolute; top: 0; bottom: 0; width: 50.4%; background: var(--stripes); backface-visibility: hidden; animation-fill-mode: both; }
.wrap-anim .flap.l { left: 0; transform-origin: 0 50%; box-shadow: 3px 0 10px rgba(30, 35, 15, .25); animation: flapL 1.1s cubic-bezier(.55, 0, .25, 1) 1.85s both; }
.wrap-anim .flap.r { right: 0; transform-origin: 100% 50%; animation: flapR 1.1s cubic-bezier(.55, 0, .25, 1) 1.85s both; }
.wrap-anim .ribs { position: absolute; inset: 0; overflow: hidden; }
.wrap-anim .rib { position: absolute; box-shadow: 0 1px 4px rgba(30, 35, 15, .3), inset 0 0 0 3px var(--dark), inset 0 0 0 3.75px rgba(239, 230, 200, .8); }
.wrap-anim .rib.v { left: calc(50% - 15px); width: 30px; height: 50%; background: linear-gradient(90deg, var(--dark), #6f7e46 50%, var(--dark)); }
.wrap-anim .rib.h { top: calc(50% - 15px); height: 30px; width: 50%; background: linear-gradient(180deg, var(--dark), #6f7e46 50%, var(--dark)); }
.wrap-anim .rib.up { top: 0; animation: ribUp .7s cubic-bezier(.5, 0, .8, .4) 1.35s both; }
.wrap-anim .rib.down { top: 50%; animation: ribDown .7s cubic-bezier(.5, 0, .8, .4) 1.35s both; }
.wrap-anim .rib.left { left: 0; animation: ribL .7s cubic-bezier(.5, 0, .8, .4) 1.4s both; }
.wrap-anim .rib.right { left: 50%; animation: ribR .7s cubic-bezier(.5, 0, .8, .4) 1.4s both; }
.wrap-anim .bow { position: absolute; left: 50%; top: calc(50% + 12px); width: clamp(160px, 28vw, 230px); transform: translate(-50%, -50%); }
.wrap-anim .bow svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 4px 6px rgba(30, 35, 15, .35)); }
.wrap-anim .bow g { transform-box: fill-box; animation-fill-mode: both; }

/* ---------- FAQ ---------- */
.faq-sec { padding: clamp(32px, 6vw, 72px) var(--gutter); }
.faq { max-width: 820px; margin: 0 auto; }
.faq .in { padding: clamp(32px, 5vw, 60px) clamp(16px, 4vw, 48px); }
.faq .title { text-align: center; }
.faq .sub { text-align: center; font-size: 32px; margin-top: 6px; }
.faq details { border-bottom: .75px solid rgba(92, 107, 56, .3); }
.faq details:first-of-type { margin-top: 24px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-size: 14px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; line-height: 1.5; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; line-height: 1; font-weight: 400; letter-spacing: 0; transition: transform .25s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { font-size: 20px; line-height: 1.6; margin: 0 0 18px; text-wrap: pretty; }
.faq .ask { text-align: center; font-size: 19px; margin-top: 28px; }

/* ---------- footer ---------- */
footer { padding: 44px var(--gutter) calc(44px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
footer .mono { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 500; letter-spacing: .2em; padding-left: .2em; }
footer .mono img { width: 20px; height: 28px; object-fit: contain; }
footer .script { font-size: 32px; }
footer .caps { font-size: 11px; letter-spacing: .26em; }

/* ---------- keyframes ---------- */
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes swayL { 0%, 100% { transform: scaleX(-1) rotate(-4deg) skewX(0deg); } 50% { transform: scaleX(-1) rotate(-1deg) skewX(-1.5deg); } }
@keyframes swayR { 0%, 100% { transform: rotate(-3deg) skewX(0deg); } 50% { transform: rotate(.5deg) skewX(1.5deg); } }
@keyframes ink { 0% { -webkit-mask-position: 100% 0; mask-position: 100% 0; filter: blur(1.2px); transform: translateY(.04em) rotate(-2deg); } 70% { filter: blur(0); } 100% { -webkit-mask-position: 0 0; mask-position: 0 0; filter: blur(0); transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ballX { from { left: -50px; } to { left: calc(100% + 50px); } }
@keyframes ballY { 0% { transform: translateY(0); animation-timing-function: cubic-bezier(.2, .6, .4, 1); } 50% { transform: translateY(-150px); animation-timing-function: cubic-bezier(.6, 0, .8, .4); } 100% { transform: translateY(0); } }
@keyframes leafFall { 0% { transform: translate(0, -160px) rotate(0deg); opacity: 0; } 8% { opacity: 1; } 100% { transform: translate(var(--dx), calc(100vh + 120px)) rotate(var(--r)); opacity: 1; } }
@keyframes planeX { from { transform: translateX(75vw); } to { transform: translateX(0); } }
@keyframes planeY { 0% { transform: translateY(-190px); animation-timing-function: cubic-bezier(.35, .1, .45, 1); } 74%, 100% { transform: translateY(0); } }
@keyframes planeR { 0% { transform: rotate(-3.5deg); } 50% { transform: rotate(-2deg); } 68% { transform: rotate(1.2deg); } 82%, 100% { transform: rotate(0deg); } }
@keyframes puff { 0% { opacity: 0; transform: scale(.3); } 20% { opacity: .7; } 100% { opacity: 0; transform: scale(2.4) translateX(14px); } }
@keyframes cartDrive { from { left: -200px; } to { left: calc(var(--pin) - var(--cart-w) - 18px); } }
@keyframes flagWave { 0%, 100% { transform: skewY(0deg) scaleX(1); } 50% { transform: skewY(-5deg) scaleX(.92); } }
@keyframes cartBob { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-2px) rotate(-.6deg); } }
@keyframes ribUp { to { transform: translateY(-105%); } }
@keyframes ribDown { to { transform: translateY(105%); } }
@keyframes ribL { to { transform: translateX(-105%); } }
@keyframes ribR { to { transform: translateX(105%); } }
@keyframes loopUntieL { 0% { transform: none; opacity: 1; } 60% { opacity: 1; } 100% { transform: translateX(18%) scale(.15, .5) rotate(25deg); opacity: 0; } }
@keyframes loopUntieR { 0% { transform: none; opacity: 1; } 60% { opacity: 1; } 100% { transform: translateX(-18%) scale(.15, .5) rotate(-25deg); opacity: 0; } }
@keyframes knotOff { 0% { transform: none; opacity: 1; } 100% { transform: translateY(30%) scale(.5); opacity: 0; } }
@keyframes tailFallL { 0% { transform: none; opacity: 1; } 100% { transform: translateY(60%) rotate(18deg); opacity: 0; } }
@keyframes tailFallR { 0% { transform: none; opacity: 1; } 100% { transform: translateY(60%) rotate(-18deg); opacity: 0; } }
@keyframes flapL { 0% { transform: rotateY(0deg); opacity: 1; } 80% { opacity: 1; } 100% { transform: rotateY(-105deg); opacity: 0; } }
@keyframes flapR { 0% { transform: rotateY(0deg); opacity: 1; } 80% { opacity: 1; } 100% { transform: rotateY(105deg); opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .hero .palm, .ball, .leaves, .wrap-anim { display: none; }
  .scene .cart { animation: none !important; left: calc(var(--pin) - var(--cart-w) - 18px); }
}
