/* sections.css
   Per-section styles, in the order the reader meets them.
   Part of the Mici & Tungi invitation. Load order: base -> sections -> responsive. */
/* ---------- CURTAIN ---------- */
  .curtain-stage {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100dvh;
    z-index: 100;
    pointer-events: auto;
  }
  .curtain-stage.gone { pointer-events: none; }

  .panel {
    position: absolute;
    top: 0; bottom: 0;
    width: 52%;
    background:
      repeating-linear-gradient(
        90deg,
        var(--curtain-dk) 0px,
        var(--curtain) 14px,
        var(--curtain-dk) 28px,
        var(--curtain) 46px
      );
    background-color: var(--curtain);
    box-shadow: inset 0 0 80px rgba(0,0,0,0.35);
    transition: transform 2200ms cubic-bezier(.77,0,.18,1);
    will-change: transform;
  }
  .panel::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    width: 60px;
    pointer-events: none;
  }
  .panel.left  { left: 0;   transform-origin: left center; }
  .panel.right { right: 0;  transform-origin: right center; }
  .panel.left::after  { right: 0;  background: linear-gradient(to left,  rgba(0,0,0,.45), transparent); }
  .panel.right::after { left: 0;   background: linear-gradient(to right, rgba(0,0,0,.45), transparent); }

  .curtain-open .panel.left  { transform: translateX(-104%); }
  .curtain-open .panel.right { transform: translateX(104%); }

  /* Rod */
  .rod {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 14px;
    background: linear-gradient(180deg, oklch(0.85 0.03 70), oklch(0.55 0.04 60));
    box-shadow: 0 6px 14px rgba(0,0,0,.25);
    z-index: 2;
    transition: transform 900ms cubic-bezier(.77,0,.18,1), opacity 700ms ease;
  }
  /* The rod lingers after the panels slide off — a soft last trace of the
     reveal. It lifts away the moment the guest begins scrolling. -140%
     ensures the round finials clear the viewport as well. */
  .curtain-stage.rod-gone .rod { transform: translateY(-140%); opacity: 0; }
  .rod::before, .rod::after {
    content: "";
    position: absolute;
    top: -4px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, oklch(0.88 0.04 70), oklch(0.45 0.04 60));
  }
  .rod::before { left: -8px; }
  .rod::after  { right: -8px; }

  /* Marquee text behind curtain */
  .curtain-message {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 1;
    text-align: center;
    color: oklch(0.96 0.012 85);
    padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
    text-shadow: 0 1px 24px rgba(0,0,0,0.35);
    transition: opacity 380ms ease, transform 700ms cubic-bezier(.22,.61,.36,1);
  }
  .curtain-open .curtain-message { opacity: 0; transform: translateY(-10px); }
  .curtain-message .eyebrow {
    font-family: var(--sans);
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: oklch(0.88 0.012 85 / 0.85);
    margin-bottom: 28px;
  }
  .curtain-message .title {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(40px, 7vw, 88px);
    line-height: 1;
    color: oklch(0.97 0.012 85);
  }
  .curtain-message .amp {
    color: oklch(0.82 0.05 90);
    font-style: italic;
    font-weight: 500;
  }
  .curtain-message .sub {
    margin-top: 24px;
    font-family: var(--sans);
    font-size: 13px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: oklch(0.82 0.012 85 / 0.78);
  }
  .open-btn {
    margin-top: 56px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--ink);
    color: var(--bg);
    border: none;
    padding: 16px 30px 16px 32px;
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.30em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 999px;
    transition: transform 240ms ease, background 240ms ease, letter-spacing 320ms ease;
  }
  .open-btn:hover {
    background: var(--accent);
    letter-spacing: 0.36em;
  }
  .open-btn .arrow {
    width: 26px; height: 1px; background: currentColor; position: relative;
  }
  .open-btn .arrow::before, .open-btn .arrow::after {
    content: ""; position: absolute; width: 14px; height: 1px; background: currentColor;
    left: -12px;
  }
  .open-btn .arrow::before { transform: rotate(-30deg) translate(-2px, -2px); }
  .open-btn .arrow::after  { transform: rotate(30deg)  translate(-2px,  2px); }
  .open-btn .arrow.right { transform: scaleX(-1); }

  /* Soft floating intro animation */
  .reveal-in { opacity: 0; transform: translateY(14px); animation: rIn 1400ms ease 200ms forwards; }
  .reveal-in.d1 { animation-delay: 600ms; }
  .reveal-in.d2 { animation-delay: 1000ms; }
  .reveal-in.d3 { animation-delay: 1500ms; }
  @keyframes rIn { to { opacity: 1; transform: translateY(0); } }

  /* ---------- SHARED PAGE ELEMENTS ---------- */
  .section {
    width: 100%;
    padding: 140px 24px;
    position: relative;
  }
  .wrap {
    max-width: 980px;
    margin: 0 auto;
  }
  .narrow { max-width: 640px; margin: 0 auto; }
  .band-sage { background: var(--bg-sage); }
  .section.even { padding-top: 96px; padding-bottom: 96px; }
  .band-sand { background: var(--bg-deep); }
  .section.tight-bottom { padding-bottom: 92px; }
  .section.tight-top { padding-top: 24px; }

  .eyebrow {
    font-family: var(--sans);
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--ink-mute);
  }
  .eyebrow .dot {
    display: inline-block;
    width: 4px; height: 4px;
    background: var(--accent);
    border-radius: 50%;
    margin: 0 12px 2px;
    vertical-align: middle;
  }

  .display {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(48px, 9vw, 132px);
    line-height: 0.98;
    letter-spacing: -0.01em;
  }
  .display .it { font-style: italic; font-weight: 400; }
  .display .amp { color: var(--accent); font-style: italic; font-weight: 500; }

  .h2 {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(28px, 4.2vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.005em;
  }

  .body {
    font-family: var(--serif);
    font-size: clamp(18px, 1.4vw, 22px);
    color: var(--ink-soft);
    line-height: 1.65;
    font-weight: 400;
  }

  .rule {
    height: 1px;
    background: var(--rule);
    width: 100%;
    transform-origin: left center;
  }
  .vrule {
    width: 1px; height: 56px; background: var(--rule); margin: 0 auto;
  }

  /* Fade-up on scroll */
  .fade {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1100ms cubic-bezier(.22,.61,.36,1), transform 1100ms cubic-bezier(.22,.61,.36,1);
    transition-delay: var(--d, 0ms);
  }
  .fade.in { opacity: 1; transform: translateY(0); }

  .rule.fade {
    transform: scaleX(0);
    transition: transform 1500ms cubic-bezier(.77,0,.18,1);
    opacity: 1;
  }
  .rule.fade.in { transform: scaleX(1); }

  /* ---------- HERO ---------- */
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    padding: clamp(40px, 6vh, 96px) 24px 40px;
    position: relative;
  }
  .hero .stamp {
    width: 78px; height: 78px;
    border-radius: 50%;
    border: 1px solid var(--ink);
    display: grid; place-items: center;
    margin: 0 auto 28px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 22px;
    color: var(--ink);
    letter-spacing: 0.03em;
  }
  .hero .hero-portrait {
    display: block;
    width: clamp(240px, 36vw, 340px);
    height: auto;
    margin: 0 auto 28px;
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(60, 50, 40, 0.14), 0 2px 6px rgba(60, 50, 40, 0.08);
  }
  .hero .flourish {
    display: block;
    width: 50vw;
    max-width: none;
    height: auto;
    margin: 18px 0 24px calc(50% - 50vw);
    color: var(--accent-soft);
    opacity: 0.75;
    pointer-events: none;
  }
  .scratch-section .flourish {
    display: block;
    width: 50vw;
    max-width: none;
    height: auto;
    margin: 48px calc(50% - 50vw) 0 auto;
    color: var(--accent-soft);
    opacity: 0;
    pointer-events: none;
    transform: scaleX(-1);
    transition: opacity 900ms ease 600ms;
  }
  .scratch-card.revealed ~ .flourish { opacity: 0.75; }
  .hero .pre {
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 30px;
  }
  .hero .post {
    margin-top: 30px;
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(18px, 1.6vw, 22px);
    color: var(--ink-soft);
  }
  .hero .meta {
    margin-top: 60px;
    display: flex;
    gap: 36px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }
  .hero .meta .sep { width: 28px; height: 1px; background: var(--ink-soft); display: inline-block; }

  .scroll-cue {
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--ink-mute);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .scroll-cue .line {
    width: 1px;
    height: 56px;
    background: linear-gradient(to bottom, transparent, var(--ink-mute));
    animation: cue 2400ms ease-in-out infinite;
  }
  @keyframes cue {
    0%   { transform: scaleY(0); transform-origin: top; }
    40%  { transform: scaleY(1); transform-origin: top; }
    60%  { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
  }

  /* ---------- SCRATCH CARD ---------- */
  .scratch-section { background: var(--bg-deep); }
  .scratch-card {
    margin: 56px auto 0;
    width: min(560px, 92%);
    aspect-ratio: 4/3;
    background: var(--paper);
    border-radius: 6px;
    position: relative;
    box-shadow:
      0 1px 0 rgba(0,0,0,.04),
      0 22px 40px -20px rgba(0,0,0,.18),
      0 6px 16px -12px rgba(0,0,0,.10);
    overflow: hidden;
  }
  .scratch-card::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid var(--rule);
    border-radius: 3px;
    pointer-events: none;
    z-index: 3;
  }
  .scratch-content {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 32px;
  }
  .scratch-content .label {
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 18px;
  }
  .scratch-content .day {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(40px, 7vw, 78px);
    line-height: 1;
  }
  .scratch-content .day .num { font-style: normal; font-weight: 500; color: var(--accent); }
  .scratch-content .full {
    margin-top: 18px;
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }
  .scratch-canvas {
    position: absolute;
    inset: 0;
    cursor: grab;
    touch-action: none;
    z-index: 2;
  }
  .scratch-canvas:active { cursor: grabbing; }
  #scratchCaption:empty { display: none; }
  .scratch-hint {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
    z-index: 4;
    color: oklch(0.96 0.01 85);
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    transition: opacity 600ms ease;
    text-shadow: 0 1px 8px rgba(0,0,0,.2);
  }
  .scratch-hint .coin {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: oklch(0.96 0.01 85);
    margin-right: 14px; vertical-align: middle;
    animation: pulse 1800ms ease-in-out infinite;
  }
  @keyframes pulse { 50% { transform: scale(1.6); opacity: .5; } }
  .scratch-card.revealed .scratch-hint { opacity: 0; }

  /* ---------- CONFETTI ---------- */
  #confetti {
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    opacity: 0;
    transition: opacity 700ms ease;
  }
  #confetti.on { opacity: 1; transition: opacity 400ms ease; }


  /* ---------- COUNTDOWN ---------- */
  .countdown {
    margin: 26px auto 0;
    display: inline-grid;
    grid-auto-flow: column;
    align-items: start;
    gap: 4px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 1000ms ease 500ms, transform 1000ms cubic-bezier(.22,.61,.36,1) 500ms;
    pointer-events: none;
  }
  .countdown.show { opacity: 1; transform: translateY(0); }
  .cd-unit { min-width: 82px; text-align: center; }
  .cd-num {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
  }
  .cd-lab {
    margin-top: 12px;
    font-family: var(--sans);
    font-size: 9px;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--ink-mute);
  }
  .cd-sep {
    font-family: var(--serif);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1;
    color: var(--accent);
    opacity: 0.5;
    transform: translateY(2px);
  }
  @media (max-width: 520px) {
    .cd-unit { min-width: 58px; }
    .cd-lab { font-size: 8px; letter-spacing: 0.22em; }
  }

  /* Hidden until the scratch card is revealed — scratch.js adds .show at the
     same moment it shows the countdown, so the two appear together. */
  .cal-btn {
    margin: 32px auto 0;
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 9px;
    padding: 10px 18px;
    background: transparent;
    border: 1px solid var(--rule);
    border-radius: 999px;
    cursor: pointer;
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--ink);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 900ms ease 600ms,
      color 240ms ease,
      border-color 240ms ease,
      background 240ms ease,
      transform 240ms ease;
    -webkit-tap-highlight-color: transparent;
  }
  .cal-btn.show { opacity: 1; pointer-events: auto; }
  .cal-btn:hover { color: var(--accent); border-color: var(--accent); }
  .cal-btn:active { transform: translateY(1px); }
  .cal-btn__icon {
    width: 13px;
    height: 13px;
    flex: none;
    color: var(--accent);
    opacity: 0.85;
  }
  @media (max-width: 400px) {
    .cal-btn { padding: 9px 16px; letter-spacing: 0.20em; gap: 8px; }
  }

  /* ---------- VENUE ---------- */
  .venue-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-top: 48px;
  }
  @media (max-width: 760px) {
    .venue-grid { grid-template-columns: 1fr; gap: 48px; }
  }
  .map-card {
    aspect-ratio: 4/5;
    background: var(--paper);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 22px 40px -28px rgba(0,0,0,.2);
  }
  .map-card svg { width: 100%; height: 100%; display: block; }
  .map-pin {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -100%);
    display: flex; flex-direction: column; align-items: center;
    gap: 4px;
  }
  .map-pin .dot {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 6px oklch(0.42 0.045 135 / 0.18);
    animation: ping 2200ms ease-out infinite;
  }
  @keyframes ping {
    0%   { box-shadow: 0 0 0 6px oklch(0.42 0.045 135 / 0.35); }
    100% { box-shadow: 0 0 0 22px oklch(0.42 0.045 135 / 0); }
  }
  .map-pin .label {
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--paper);
    padding: 4px 8px;
    border: 1px solid var(--rule);
    transform: translateY(8px);
    white-space: nowrap;
  }

  .venue-info .place {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.05;
    margin-top: 18px;
  }
  .venue-info .addr {
    margin-top: 22px;
    font-family: var(--sans);
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.8;
    letter-spacing: 0.04em;
  }
  .venue-info .addr strong {
    font-weight: 500;
    color: var(--ink);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 11px;
    display: block;
    margin-bottom: 6px;
  }
  .link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ink);
    border-bottom: 1px solid var(--ink);
    padding-bottom: 6px;
    text-decoration: none;
    transition: color 200ms ease, border-color 200ms ease, gap 240ms ease;
  }
  .link:hover { color: var(--accent); border-color: var(--accent); gap: 16px; }
  .link::after { content: "→"; font-family: var(--serif); font-size: 14px; transform: translateY(-1px); }

  /* ---------- TIMELINE ---------- */
  .week-month {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    max-width: 240px;
    margin: 56px auto 18px;
  }
  .week-month__rule {
    flex: 1;
    height: 1px;
    background: var(--accent-soft);
    opacity: 0.4;
  }
  .week-month__name {
    font-family: var(--serif);
    font-style: italic;
    font-size: 19px;
    color: var(--ink);
    letter-spacing: 0.04em;
    white-space: nowrap;
  }
  .week-strip {
    display: flex;
    justify-content: space-between;
    max-width: 380px;
    margin: 0 auto;
    position: relative;
  }
  .week-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
  }
  .week-label {
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--ink-mute);
  }
  .week-date {
    font-family: var(--serif);
    font-size: 20px;
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
  }
  .week-day.is-wedding .week-date {
    color: var(--ink);
  }
  .week-day.is-wedding .week-date::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
    background: var(--bg-sage);
    z-index: -1;
  }

  .week-connector-wrap {
    position: relative;
    max-width: 380px;
    margin: 0 auto;
    height: 60px;
    pointer-events: none;
  }
  .week-connector {
    position: absolute;
    top: 0;
    left: 50%;
    width: calc(50% - 21px);
    height: 100%;
    color: var(--accent-soft);
    opacity: 0.55;
    overflow: visible;
  }

  .timeline {
    margin: 0 auto;
    max-width: 540px;
    position: relative;
  }
  .timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 24px;
    left: 50%;
    width: 1px;
    background: var(--accent-soft);
    transform: translateX(-0.5px);
    opacity: 0.55;
  }
  .timeline-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "time dot name";
    gap: 24px;
    padding: 16px 0;
    align-items: center;
  }
  .timeline-row::before {
    content: "";
    grid-area: dot;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-sage);
    border: 1.5px solid var(--accent-soft);
    position: relative;
    z-index: 1;
    transition: background 300ms ease, border-color 300ms ease;
  }
  .timeline-row:last-child::before {
    background: var(--accent);
    border-color: var(--accent);
  }
  .timeline-row .time {
    grid-area: time;
    text-align: right;
    font-family: var(--sans);
    font-size: 13px;
    letter-spacing: 0.18em;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
  }
  .timeline-row .name {
    grid-area: name;
    text-align: left;
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(20px, 2vw, 26px);
    color: var(--ink);
  }
  @media (max-width: 640px) {
    .timeline-row { gap: 14px; padding: 14px 0; }
    .timeline-row::before { width: 8px; height: 8px; }
    .timeline-row .name { font-size: 18px; }
    .week-month { max-width: 200px; margin: 40px auto 14px; }
    .week-month__name { font-size: 17px; }
    .week-strip { max-width: 320px; margin: 0 auto; }
    .week-date { font-size: 18px; width: 38px; height: 38px; }
    .week-connector-wrap { max-width: 320px; height: 52px; }
    .week-connector { width: calc(50% - 19px); }
  }



  /* ---------- MENU ---------- */
  .menu-card {
    position: relative;
    margin-top: 64px;
    padding: clamp(48px, 6vw, 84px) clamp(24px, 5vw, 68px);
    background: var(--paper);
    border-radius: 4px;
    box-shadow:
      0 1px 0 rgba(0,0,0,.04),
      0 24px 44px -28px rgba(0,0,0,.22),
      0 8px 18px -14px rgba(0,0,0,.12);
  }
  .menu-card::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid var(--rule);
    border-radius: 2px;
    pointer-events: none;
  }
  .menu-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(32px, 5vw, 72px);
    row-gap: clamp(44px, 5vw, 68px);
  }
  .menu-course--wide { grid-column: 1 / -1; }
  .menu-course--center {
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }
  .menu-course__title {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin: 0 0 26px;
    font-family: var(--sans);
    font-weight: 500;
    font-size: 10px;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--accent);
    text-align: center;
  }
  .menu-course__title::before,
  .menu-course__title::after {
    content: "";
    flex: 0 0 60px;
    height: 1px;
    background: var(--rule);
  }
  .menu-course__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
    text-align: center;
  }
  .menu-course__list li {
    font-family: var(--serif);
    font-size: clamp(16px, 1.15vw, 19px);
    line-height: 1.45;
    color: var(--ink);
    text-wrap: pretty;
  }
  .menu-course--wide .menu-course__list {
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(28px, 4vw, 56px);
    row-gap: 10px;
  }
  .menu-course__tag {
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.82em;
    color: var(--accent-soft);
    margin-left: 4px;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }
  .menu-course__note {
    display: block;
    margin-top: 3px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.78em;
    color: var(--ink-mute);
    letter-spacing: 0.02em;
  }
  @media (max-width: 720px) {
    .menu-card { padding: 48px 22px; margin-top: 48px; }
    .menu-card::before { inset: 10px; }
    .menu-grid { grid-template-columns: 1fr; row-gap: 44px; }
    .menu-course--wide .menu-course__list { grid-template-columns: 1fr; gap: 10px; }
    .menu-course__title { letter-spacing: 0.28em; gap: 8px 12px; }
    .menu-course__title::before,
    .menu-course__title::after { flex-basis: 34px; }
  }

  /* ---------- FAQ ---------- */
  .faq { margin-top: 64px; }
  .faq-item { border-top: 1px solid var(--rule); }
  .faq-item:last-child { border-bottom: 1px solid var(--rule); }
  .faq-q {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 30px 0;
    text-align: left;
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(19px, 1.7vw, 23px);
    color: var(--ink);
    transition: color 240ms ease;
  }
  .faq-q:hover { color: var(--accent); }
  .faq-mark {
    position: relative;
    width: 16px;
    height: 16px;
    flex: none;
  }
  .faq-mark::before, .faq-mark::after {
    content: "";
    position: absolute;
    background: var(--accent);
    transition: transform 420ms cubic-bezier(.22,.61,.36,1), opacity 320ms ease;
  }
  .faq-mark::before { left: 0; top: 7.5px; width: 16px; height: 1px; }
  .faq-mark::after  { top: 0; left: 7.5px; height: 16px; width: 1px; }
  .faq-item.open .faq-mark::after { transform: rotate(90deg); opacity: 0; }
  .faq-a {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 560ms cubic-bezier(.22,.61,.36,1), opacity 420ms ease;
  }
  .faq-item.open .faq-a { grid-template-rows: 1fr; opacity: 1; }
  .faq-a > div { overflow: hidden; min-height: 0; }
  .faq-a p {
    font-family: var(--serif);
    font-size: clamp(17px, 1.3vw, 20px);
    line-height: 1.7;
    color: var(--ink-soft);
    max-width: 62ch;
    padding-bottom: 32px;
    text-wrap: pretty;
  }
  .faq-a .links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 34px;
  }
  .faq-a .links a {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 5px;
    transition: color 200ms ease, border-color 200ms ease;
  }
  .faq-a .links a:hover { color: var(--accent); border-color: var(--accent); }

  /* ---------- RSVP ---------- */
  .rsvp-form {
    margin: 56px auto 0;
    max-width: 520px;
    display: grid;
    gap: 0;
  }
  .rsvp-form > *:not(.reveal) { margin-bottom: 30px; }
  .rsvp-form > .reveal { margin: 0; }
  .rsvp-form > *:last-child { margin-bottom: 0; }
  .field {
    position: relative;
  }
  .field input, .field select, .field textarea {
    width: 100%;
    font-family: var(--serif);
    font-size: 18px;
    color: var(--ink);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--rule);
    padding: 14px 0 10px;
    outline: none;
    transition: border-color 200ms ease;
  }
  .field input::placeholder, .field textarea::placeholder { color: var(--ink-mute); font-style: italic; }
  .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
  .field textarea { resize: none; line-height: 1.6; font-size: 17px; overflow: hidden; }
  .field select {
    font-family: var(--sans);
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-soft);
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
                      linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
    background-position: calc(100% - 16px) 22px, calc(100% - 10px) 22px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 32px;
  }
  /* Sub-group label */
  .f-label {
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    color: var(--ink-mute);
    text-align: left;
    margin-bottom: 10px;
  }
  .f-label + .choice { margin-top: 6px; }

  /* Attend choice */
  .choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .choice label {
    position: relative;
    display: block;
    cursor: pointer;
  }
  .choice input { position: absolute; opacity: 0; pointer-events: none; }
  .choice span {
    display: block;
    text-align: center;
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--ink-soft);
    padding: 16px 10px;
    border: 1px solid var(--rule);
    border-radius: 2px;
    transition: color 240ms ease, border-color 240ms ease, background 240ms ease, letter-spacing 300ms ease;
  }
  .choice label:hover span { border-color: var(--ink-mute); color: var(--ink); }
  .choice input:checked + span {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--bg);
    letter-spacing: 0.30em;
  }
  .choice input:focus-visible + span { border-color: var(--accent); }

  /* Collapsible reveal */
  .reveal {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 720ms cubic-bezier(.22,.61,.36,1), opacity 520ms ease;
  }
  .reveal > .reveal-inner {
    overflow: hidden;
    min-height: 0;
  }
  /* Fallback for browsers without [inert]: visibility is inherited and does
     remove descendants from the focus order, unlike opacity or overflow. */
  .reveal:not(.open) > .reveal-inner { visibility: hidden; }
  .reveal.open > .reveal-inner { visibility: visible; transition: visibility 0s; }
  .reveal.open { grid-template-rows: 1fr; opacity: 1; }
  .reveal-stack {
    display: grid;
    gap: 0;
    padding-top: 22px;
  }
  #yesBlock > .reveal-inner > .reveal-stack,
  #noBlock > .reveal-inner > .reveal-stack { padding-top: 0; padding-bottom: 30px; }
  #guestBlock > .reveal-inner > .reveal-stack { padding-top: 0; padding-bottom: 30px; }
  #commentsBlock > .reveal-inner > .reveal-stack { padding-top: 0; padding-bottom: 30px; }
  .reveal-stack > *:not(.reveal) { margin-bottom: 30px; }
  .reveal-stack > *:last-child { margin-bottom: 0; }
  .reveal-stack > .reveal { margin: 0; }

  /* Guest name rows */
  .guest-list { display: grid; gap: 16px; }
  .guest-row {
    display: grid;
    grid-template-columns: 74px 1fr;
    align-items: center;
    gap: 14px;
    opacity: 0;
    transform: translateY(10px);
    animation: gIn 620ms cubic-bezier(.22,.61,.36,1) forwards;
  }
  @keyframes gIn { to { opacity: 1; transform: translateY(0); } }
  .guest-row .n {
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ink-mute);
    text-align: left;
    font-variant-numeric: tabular-nums;
  }
  .guest-row input { padding-top: 10px; padding-bottom: 8px; font-size: 17px; }

  /* From — to pair */
  .from-to {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: 14px;
  }
  .from-to .dash {
    font-family: var(--serif);
    font-size: 20px;
    color: var(--ink-mute);
    padding-bottom: 12px;
    line-height: 1;
  }

  .note {
    font-family: var(--serif);
    font-style: italic;
    font-size: 15px;
    color: var(--ink-mute);
    text-align: left;
    line-height: 1.5;
  }

  .submit {
    margin-top: 0;
    background: var(--ink);
    color: var(--bg);
    border: none;
    padding: 18px 28px;
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 240ms ease, letter-spacing 320ms ease;
  }
  .submit:hover { background: var(--accent); letter-spacing: 0.42em; }
  .submit.sent { background: var(--accent); pointer-events: none; }
  /* No hover jitter while the request is in flight. */
  .submit.loading { pointer-events: none; }
  .submit[disabled] { opacity: 0.85; cursor: default; }

  /* Spinner collapses to zero width when idle so the button hugs the label; on
     .loading it expands, gains its ring, and spins. All timings match the
     button's own 240ms hover ease, so the entry feels intentional. */
  .submit .spinner {
    width: 0;
    height: 14px;
    border-radius: 50%;
    border: 0 solid rgba(247, 241, 232, 0.28);
    border-top-color: var(--bg);
    box-sizing: border-box;
    margin-right: 0;
    opacity: 0;
    transition: opacity 200ms ease, width 220ms ease, margin-right 220ms ease, border-width 220ms ease;
  }
  .submit.loading .spinner {
    width: 14px;
    border-width: 1.5px;
    margin-right: 14px;
    opacity: 1;
    animation: rsvp-spin 720ms linear infinite;
  }
  @keyframes rsvp-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
  }
  @media (prefers-reduced-motion: reduce) {
    .submit.loading .spinner { animation-duration: 1600ms; }
  }

  /* Honeypot is a functional control, so it must remain in the accessibility
     tree until JS reads it. Off-screen positioning keeps it invisible while
     display:none would let some bots skip it. */
  .rsvp-form .hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
  }

  .rsvp-error {
    margin-top: 14px;
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: oklch(0.48 0.10 30);
    text-align: center;
  }

  .rsvp-meta {
    margin-top: 28px;
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ink-mute);
    text-align: center;
  }

  .rsvp-contact {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 22px;
  }
  .rsvp-contact__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    font-family: var(--sans);
    font-size: 13px;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
    text-decoration: none;
    transition: color 200ms ease;
  }
  .rsvp-contact__link:hover { color: var(--accent); }
  .rsvp-contact__icon {
    width: 15px;
    height: 15px;
    flex: none;
    color: var(--accent);
    opacity: 0.85;
  }
  .rsvp-contact__sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--rule);
    flex: none;
  }
  @media (max-width: 480px) {
    .rsvp-contact { flex-direction: column; gap: 4px; }
    .rsvp-contact__sep { display: none; }
  }

  /* ---------- FOOTER ---------- */
  footer {
    padding: 96px 24px 64px;
    text-align: center;
  }
  footer .mono {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1;
  }
  footer .amp { color: var(--accent); font-weight: 500; }
  footer .signoff {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(20px, 2.4vw, 30px);
    line-height: 1.4;
    color: var(--ink-soft);
    max-width: 24ch;
    margin: 0 auto 20px;
    text-wrap: pretty;
  }
  footer .sign-close {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(17px, 1.9vw, 22px);
    color: var(--ink-soft);
    margin: 0 0 20px;
  }
  footer .city {
    margin-top: 18px;
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--ink-mute);
  }

  .center { text-align: center; }
  .mt-l { margin-top: 64px; }
  .mt-m { margin-top: 36px; }
