/* ---------- Opening stage: the sealed envelope ---------- */
.stage {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  background: var(--wine-950);
  overflow: hidden;
}
.stage.desk {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(125, 38, 53, 0.55), transparent 60%),
    url("/img/tex/satin-burgundy.jpg") center / cover, var(--wine-900);
}
.env { position: relative; perspective: 1700px; perspective-origin: 50% 0%; }
.env.card { box-shadow: 0 40px 80px rgba(20, 2, 8, 0.55), 0 8px 18px rgba(20, 2, 8, 0.35); border-radius: 3px; }
.env-back {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #2e0a13, #43101c 60%, #3a0d18);
  border-radius: inherit;
}
.env-letter {
  position: absolute; z-index: 2;
  background: var(--paper) var(--paper-grain);
  box-shadow: 0 -2px 18px rgba(20, 2, 8, 0.35);
  border-radius: 2px;
  will-change: transform;
}
.env-pocket { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.env-pocket svg, .env-flap svg { display: block; }
.env-flap {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  transform-origin: 50% 0;
  transform-style: preserve-3d;
  pointer-events: none;
}
.env-flap.behind { z-index: 1; }
.env-flap .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.env-flap .face.front svg { filter: drop-shadow(0 5px 7px rgba(20, 2, 8, 0.45)); }
.env-flap .face.back { transform: rotateX(180deg); }

.env-top, .env-bottom {
  position: absolute; left: 0; right: 0; z-index: 6;
  text-align: center; color: var(--on-wine); pointer-events: none;
  padding: 0 24px;
}
.env-top .caps { opacity: 0.78; font-size: 12px; letter-spacing: 0.34em; }
.env-top .names {
  margin-top: 14px; font-size: clamp(34px, 10.5vw, 50px); letter-spacing: 0.2em; text-transform: uppercase;
  display: flex; align-items: baseline; justify-content: center; gap: 0.18em; flex-wrap: wrap;
}
.env-top .amp { font-size: 1.35em; letter-spacing: 0; text-transform: none; color: var(--champagne); margin: 0 0.05em 0 -0.1em; }
.env-bottom .caps { opacity: 0.7; font-size: 11.5px; letter-spacing: 0.32em; }
.env-bottom .to { font-size: clamp(30px, 8.6vw, 42px); color: var(--cream); margin: 2px 0 26px; }
.env-bottom .cta { font-size: 11.5px; letter-spacing: 0.3em; opacity: 0.85; animation: breathe 2.6s var(--ease-in-out) infinite; }
@keyframes breathe { 50% { opacity: 0.4; } }

.env-seal {
  position: absolute; z-index: 7;
  padding: 0; border: 0; background: none;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
}
.env-seal .half { position: absolute; inset: 0; filter: drop-shadow(0 6px 8px rgba(20, 2, 8, 0.5)) drop-shadow(0 1px 1px rgba(20, 2, 8, 0.4)); }
.env-seal .half.l { clip-path: polygon(0 0, 54.5% 0, 48.5% 17%, 56.5% 33%, 47.5% 50%, 55.5% 68%, 48.5% 84%, 52.5% 100%, 0 100%); }
.env-seal .half.r { clip-path: polygon(53% 0, 100% 0, 100% 100%, 51% 100%, 47% 84%, 54% 68%, 46% 50%, 55% 33%, 47% 17%); }
.env-seal .ring {
  position: absolute; inset: -14px; border-radius: 50%;
  border: 1px solid rgba(236, 220, 189, 0.45);
  animation: ring 2.6s var(--ease) infinite;
}
@keyframes ring { 0% { transform: scale(0.9); opacity: 0.9; } 100% { transform: scale(1.25); opacity: 0; } }
.env-seal:hover .half { transform: translateY(-1px); transition: transform 0.25s var(--ease); }
.env-seal:active .half { transform: scale(0.98); }
.env.opening .env-seal { pointer-events: none; }

/* The letter inside the envelope */
.letter-inner {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 8% 7%;
  border: 1px solid var(--line); outline: 1px solid var(--line); outline-offset: -8px;
}
.letter-inner .caps { color: var(--ink-2); font-size: 10px; }
.letter-inner .script { color: var(--wine-700); font-size: clamp(30px, 9vw, 44px); margin: 6px 0 14px; }
.letter-inner .display { font-size: clamp(22px, 6vw, 30px); letter-spacing: 0.18em; text-transform: uppercase; }

/* ---------- Gate: someone without an invitation link ---------- */
.door {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  max-width: 520px; margin: 0 auto;
  background: var(--paper) var(--paper-grain);
  padding: 26px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  border-radius: 3px 3px 0 0;
  box-shadow: 0 -20px 50px rgba(20, 2, 8, 0.45);
  transform: translateY(105%); transition: transform 0.6s var(--ease);
}
.door.open { transform: none; }
.door h2 { margin: 0 0 4px; font: 400 34px/1.1 var(--f-script); color: var(--wine-700); }
.door p { margin: 0 0 18px; color: var(--ink-2); font-size: 16.5px; }
.door form { display: grid; gap: 14px; }
.door .err { color: var(--danger); font-size: 15.5px; min-height: 1.2em; margin: 0; }

/* ---------- Page ---------- */
.page { position: relative; }
.page.reveal { animation: pageIn 1.1s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: scale(0.985); } to { opacity: 1; transform: none; } }

.sec { padding: 88px var(--gutter); position: relative; }
.col { max-width: var(--col); margin: 0 auto; }
.wine { background: var(--wine-800); color: var(--on-wine); }
.wine .muted { color: var(--on-wine-2); }
.sec-head { text-align: center; margin-bottom: 40px; }
.sec-head .caps { color: var(--ink-3); }
.wine .sec-head .caps { color: var(--on-wine-2); }
.sec-head h2 { margin: 6px 0 0; font: 400 clamp(46px, 13vw, 66px)/1 var(--f-script); color: var(--wine-700); }
.wine .sec-head h2 { color: var(--cream); }

.orn { width: 150px; height: 26px; margin: 0 auto; color: var(--wine-600); opacity: 0.85; }
.wine .orn { color: var(--champagne); opacity: 0.7; }

/* Hero — the opened letter */
.hero {
  min-height: 100dvh; display: grid; place-items: center;
  padding: 72px var(--gutter) 64px; text-align: center;
}
.hero .frame {
  width: 100%; max-width: 560px; padding: 48px 22px 40px;
  border: 1px solid var(--line); outline: 1px solid var(--line); outline-offset: -9px;
}
.hero .caps { color: var(--ink-2); }
.hero .lead { font: 400 clamp(46px, 13.5vw, 70px)/1.05 var(--f-script); color: var(--wine-700); margin: 10px 0 26px; }
.hero .names { font-size: clamp(38px, 11vw, 60px); letter-spacing: 0.2em; text-transform: uppercase; display: grid; gap: 2px; }
.hero .names .amp { font: 400 1.25em/0.9 var(--f-script); color: var(--wine-600); letter-spacing: 0; text-transform: none; }
.hero .rule { width: 56px; height: 1px; background: var(--line-strong); margin: 30px auto; }
.hero .when { font: 500 21px/1.5 var(--f-display); letter-spacing: 0.04em; }
.hero .where { color: var(--ink-2); font-size: 17px; }
.hero .dear { margin-top: 34px; font-style: italic; color: var(--ink-2); font-size: 17.5px; }
.hero .dear b { font-style: normal; font-weight: 500; color: var(--ink); }
.scroll-cue { margin-top: 40px; display: grid; justify-items: center; gap: 10px; color: var(--ink-3); }
.scroll-cue i { display: block; width: 1px; height: 46px; background: linear-gradient(var(--wine-600), transparent); animation: cue 2.2s var(--ease-in-out) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Hello, with a photo card */
.hello .col { display: grid; gap: 34px; justify-items: center; text-align: center; }
.photo-card {
  width: min(78vw, 330px); aspect-ratio: 4 / 5;
  background: var(--paper); padding: 10px 10px 42px;
  box-shadow: 0 22px 40px rgba(20, 2, 8, 0.45);
  transform: rotate(-2.2deg);
}
.photo-card img, .polaroid img { width: 100%; height: 100%; object-fit: cover; background: var(--paper-2); }
.hello h2 { margin: 0; font: 400 clamp(44px, 12vw, 60px)/1.05 var(--f-script); color: var(--cream); }
.hello p { margin: 0; max-width: 470px; color: var(--on-wine-2); font-size: 18px; }

/* Calendar */
.cal { max-width: 420px; margin: 0 auto; text-align: center; }
.cal .month { font: 400 44px/1 var(--f-script); color: var(--wine-700); margin-bottom: 20px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 10px; font: 500 17px/1 var(--f-display); }
.cal-grid .dow { font-size: 11px; letter-spacing: 0.2em; color: var(--ink-3); padding-bottom: 6px; }
.cal-grid .d { position: relative; height: 40px; display: grid; place-items: center; color: var(--ink-2); }
.cal-grid .d.the { color: var(--wine-700); font-weight: 700; }
.cal-grid .heart { position: absolute; width: 58px; height: 54px; left: 50%; top: 50%; transform: translate(-50%, -54%); overflow: visible; pointer-events: none; }
.cal-grid .heart path { fill: none; stroke: var(--wine-600); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 220; stroke-dashoffset: 220; transition: stroke-dashoffset 1.8s var(--ease-in-out) 0.3s; }
.cal.in .heart path { stroke-dashoffset: 0; }
.cal .btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 34px; }

/* Countdown */
.count { text-align: center; padding: 76px var(--gutter); }
.count .script { font-size: clamp(36px, 10vw, 50px); color: var(--cream); }
.count .digits { display: flex; justify-content: center; gap: clamp(4px, 2.2vw, 26px); margin-top: 22px; }
.count .digits div { display: grid; gap: 6px; min-width: 0; width: clamp(58px, 17vw, 96px); }
.count .digits b { font: 400 clamp(36px, 10.5vw, 64px)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.count .digits span { font-family: var(--f-display); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-wine-2); }
.count .sep { font: 300 clamp(28px, 8vw, 54px)/1 var(--f-display); opacity: 0.4; align-self: start; width: auto !important; }
.count .after { margin-top: 18px; color: var(--on-wine-2); font-style: italic; }

/* Story: polaroids on a thread */
.story { position: relative; display: grid; gap: 62px; }
.story::before { content: ""; position: absolute; left: 50%; top: 10px; bottom: 10px; border-left: 1px dashed var(--line-strong); }
.moment-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: center; }
.moment-row:nth-child(even) .polaroid { order: 2; transform: rotate(2.4deg); }
.polaroid {
  background: #fffaf1; padding: 8px 8px 34px; aspect-ratio: 4 / 5;
  box-shadow: 0 14px 28px rgba(44, 26, 30, 0.18), 0 2px 4px rgba(44, 26, 30, 0.12);
  transform: rotate(-2.4deg); position: relative; z-index: 1;
}
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font: 400 21px/1 var(--f-script); color: var(--ink-2); }
.moment-row .txt .yr { font: italic 400 40px/1 var(--f-display); color: var(--wine-700); }
.moment-row .txt .caps { color: var(--ink-3); margin: 6px 0 10px; display: block; }
.moment-row .txt p { margin: 0; font-size: 16.5px; color: var(--ink-2); }

/* The day, on lace */
.lace-card {
  max-width: 470px; margin: 0 auto; padding: 46px 30px 40px;
  background: #fbf6ec;
  --s: 14px;
  -webkit-mask:
    radial-gradient(calc(var(--s) * 0.62) at 50% calc(var(--s) * 0.62), #000 98%, #0000) 50% 0 / var(--s) var(--s) repeat-x,
    radial-gradient(calc(var(--s) * 0.62) at 50% calc(100% - var(--s) * 0.62), #000 98%, #0000) 50% 100% / var(--s) var(--s) repeat-x,
    radial-gradient(calc(var(--s) * 0.62) at calc(var(--s) * 0.62) 50%, #000 98%, #0000) 0 50% / var(--s) var(--s) repeat-y,
    radial-gradient(calc(var(--s) * 0.62) at calc(100% - var(--s) * 0.62) 50%, #000 98%, #0000) 100% 50% / var(--s) var(--s) repeat-y,
    linear-gradient(#000 0 0) 50% 50% / calc(100% - var(--s) * 1.1) calc(100% - var(--s) * 1.1) no-repeat;
  mask:
    radial-gradient(calc(var(--s) * 0.62) at 50% calc(var(--s) * 0.62), #000 98%, #0000) 50% 0 / var(--s) var(--s) repeat-x,
    radial-gradient(calc(var(--s) * 0.62) at 50% calc(100% - var(--s) * 0.62), #000 98%, #0000) 50% 100% / var(--s) var(--s) repeat-x,
    radial-gradient(calc(var(--s) * 0.62) at calc(var(--s) * 0.62) 50%, #000 98%, #0000) 0 50% / var(--s) var(--s) repeat-y,
    radial-gradient(calc(var(--s) * 0.62) at calc(100% - var(--s) * 0.62) 50%, #000 98%, #0000) 100% 50% / var(--s) var(--s) repeat-y,
    linear-gradient(#000 0 0) 50% 50% / calc(100% - var(--s) * 1.1) calc(100% - var(--s) * 1.1) no-repeat;
  filter: drop-shadow(0 18px 30px rgba(20, 2, 8, 0.35));
  position: relative;
}
.lace-card::before {
  content: ""; position: absolute; inset: 18px;
  border: 1px dotted rgba(92, 22, 38, 0.35);
  pointer-events: none;
}
.lace-card h3 { margin: 0 0 22px; text-align: center; font: 400 40px/1 var(--f-script); color: var(--wine-700); }
.sched { list-style: none; margin: 0; padding: 0; color: var(--ink); }
.sched li { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.sched li:first-child { border-top: 0; }
.sched .t { font: 600 13px/1.6 var(--f-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--wine-600); }
.sched .what b { display: block; font: 500 20px/1.25 var(--f-display); }
.sched .what span { color: var(--ink-2); font-size: 15.5px; }
.day-bg { background: var(--wine-800) url("/img/tex/satin-burgundy.jpg") center / cover; }

/* Venue */
.venue-photo {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 34px;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, #000 72%, transparent);
}
.venue h3 { margin: 0; text-align: center; font: 400 clamp(32px, 9vw, 44px)/1.1 var(--f-display); letter-spacing: 0.04em; }
.venue .area { text-align: center; color: var(--ink-2); margin-bottom: 26px; }
/* The real map, framed like a print, with a polaroid of the beach tucked on */
.map-wrap { position: relative; max-width: 560px; margin: 0 auto 44px; padding: 56px 12px 0 0; }
.map-frame {
  position: relative; background: #fffaf1; padding: 10px;
  box-shadow: 0 22px 44px rgba(44, 26, 30, 0.2), 0 2px 5px rgba(44, 26, 30, 0.12);
}
.map-frame::after { content: ""; position: absolute; inset: 5px; border: 1px solid var(--line); pointer-events: none; }
.map-frame iframe { display: block; width: 100%; aspect-ratio: 4 / 3.4; border: 0; filter: sepia(0.12) saturate(0.9); }
.map-pol {
  position: absolute; right: -6px; top: 0; z-index: 2; margin: 0;
  width: clamp(104px, 30%, 160px); background: #fffaf1; padding: 6px 6px 24px;
  box-shadow: 0 14px 26px rgba(44, 26, 30, 0.28); transform: rotate(5deg);
}
.map-pol img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.map-pol figcaption { position: absolute; left: 0; right: 0; bottom: 5px; text-align: center; font: 400 17px/1 var(--f-script); color: var(--ink-2); }
.notes { list-style: none; padding: 0; margin: 0 auto 28px; max-width: 520px; }
.notes li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 16.5px; display: grid; grid-template-columns: 32px minmax(0, 1fr); }
.notes li i { font: italic 500 15px/1.6 var(--f-display); color: var(--wine-600); font-style: normal; }

/* Dress code */
.dress .col { text-align: center; }
.dress h3 { margin: 0 0 12px; font: 400 clamp(34px, 9vw, 46px)/1.1 var(--f-script); color: var(--cream); }
.dress p { margin: 0 auto 30px; max-width: 480px; color: var(--on-wine-2); }
.swatches { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.swatches figure { margin: 0; display: grid; justify-items: center; gap: 8px; }
.swatches figcaption { font-size: 10px !important; letter-spacing: 0.14em !important; }
.swatches i { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-on-wine); box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.18); }
.swatches figcaption { font-family: var(--f-display); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-wine-2); }
.dress .tip { font-style: italic; font-size: 16.5px; }

/* Two-up info */
.duo { display: grid; gap: 40px; max-width: 900px; margin: 0 auto; }
.duo article { border-top: 1px solid var(--line-strong); padding-top: 18px; }
.duo .caps { color: var(--ink-3); }
.duo h3 { margin: 6px 0 10px; font: 400 40px/1.05 var(--f-script); color: var(--wine-700); }
.duo p { margin: 0 0 10px; color: var(--ink-2); }

/* Questions */
.faq { max-width: 600px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 34px 16px 0; position: relative; font: 500 19px/1.35 var(--f-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 300 26px/1 var(--f-display); color: var(--wine-600); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--ink-2); font-size: 16.5px; }

.ask { max-width: 600px; margin: 54px auto 0; padding: 26px 20px; background: #fbf6ec; border: 1px solid var(--line); position: relative; }
.ask::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--line); pointer-events: none; }
.ask h3 { margin: 0; font: 400 38px/1.1 var(--f-script); color: var(--wine-700); }
.ask > p { margin: 4px 0 16px; color: var(--ink-2); font-size: 16px; }
.ask .log { display: grid; gap: 14px; margin-bottom: 14px; }
.ask .q { justify-self: end; max-width: 85%; background: var(--wine-700); color: var(--on-wine); padding: 9px 14px; border-radius: 2px; font-size: 16px; }
.ask .a { max-width: 92%; font: italic 400 18px/1.5 var(--f-body); color: var(--ink); border-left: 2px solid var(--wine-300); padding-left: 12px; }
.ask .a.typing::after { content: "…"; animation: breathe 1.2s infinite; }
.ask .sugg { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ask .sugg button { border: 1px solid var(--line-strong); background: transparent; border-radius: 2px; padding: 8px 12px; font-size: 15px; color: var(--ink-2); transition: background-color 0.2s, transform 0.2s var(--ease); }
.ask .sugg button:hover { background: rgba(92, 22, 38, 0.05); transform: translateY(-1px); }
.ask form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; position: relative; }
.ask .btn { padding: 12px 16px; }

/* RSVP */
.rsvp { background: var(--wine-900) url("/img/tex/satin-burgundy.jpg") center / cover; }
.rsvp-card {
  position: relative; max-width: 520px; margin: 0 auto;
  background: var(--paper) var(--paper-grain); color: var(--ink);
  padding: 40px 22px 30px;
  box-shadow: 0 30px 60px rgba(20, 2, 8, 0.5);
  border-radius: 2px;
}
.rsvp-card::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--line); pointer-events: none; }
.rsvp-card .head { text-align: center; margin-bottom: 26px; }
.rsvp-card h2 { margin: 0; font: 400 clamp(46px, 13vw, 62px)/1 var(--f-script); color: var(--wine-700); }
.rsvp-card .by { color: var(--ink-2); font-size: 15.5px; }
.person { border-top: 1px solid var(--line); padding: 16px 0; display: grid; gap: 12px; }
.person .nm { font: 500 21px/1.2 var(--f-display); }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice label { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span {
  display: grid; place-items: center; min-height: 46px; padding: 8px; text-align: center;
  border: 1px solid var(--line-strong); border-radius: 2px; font-size: 15.5px; color: var(--ink-2);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.choice input:checked + span { background: var(--wine-700); border-color: var(--wine-700); color: var(--on-wine); }
.choice input:focus-visible + span { outline: 2px solid var(--wine-500); outline-offset: 2px; }
.meal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rsvp-card .extras { display: grid; gap: 16px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 4px; }
.rsvp-card .send { margin-top: 22px; width: 100%; }
.rsvp-card .err { color: var(--danger); font-size: 15.5px; margin: 10px 0 0; min-height: 1.2em; text-align: center; }
.rsvp-done { text-align: center; }
.rsvp-done .seal-wrap { width: 96px; margin: 0 auto 10px; animation: stamp 0.7s var(--ease) both; }
@keyframes stamp { 0% { transform: scale(1.8) rotate(-12deg); opacity: 0; } 60% { transform: scale(0.94); opacity: 1; } 100% { transform: none; } }
.rsvp-done h3 { margin: 0 0 6px; font: 400 44px/1.1 var(--f-script); color: var(--wine-700); }
.rsvp-done ul { list-style: none; padding: 0; margin: 16px 0 20px; }
.rsvp-done li { padding: 8px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; font-size: 16.5px; }
.rsvp-done li span:last-child { color: var(--ink-2); font-style: italic; }
.rsvp-card.sending { animation: tuck 0.9s var(--ease-in-out) both; }
@keyframes tuck { 40% { transform: translateY(8px) scale(0.98); } 100% { transform: none; } }

/* On the day, and after */
.together .rows { max-width: 640px; margin: 0 auto; border-bottom: 1px solid var(--line); }
.together a {
  display: grid; grid-template-columns: 38px minmax(0, 1fr) 20px; gap: 12px; align-items: baseline;
  padding: 20px 0; border-top: 1px solid var(--line); text-decoration: none;
  transition: background-color 0.25s;
}
.together a:hover { background: rgba(92, 22, 38, 0.035); }
.together a i { font: italic 500 16px/1 var(--f-display); color: var(--wine-600); }
.together a b { display: block; font: 500 22px/1.25 var(--f-display); }
.together a span { color: var(--ink-2); font-size: 16px; }
.together a em { font-style: normal; color: var(--wine-600); transition: transform 0.3s var(--ease); }
.together a:hover em { transform: translateX(4px); }

.foot { text-align: center; padding: 80px var(--gutter) 130px; }
.foot .script { font-size: 44px; color: var(--wine-700); }
.foot .mono { margin-top: 10px; }
.foot small { display: block; margin-top: 28px; color: var(--ink-3); font-size: 13px; letter-spacing: 0.04em; }

.mono { display: inline-flex; align-items: baseline; gap: 4px; font: 500 22px/1 var(--f-display); letter-spacing: 0.12em; color: var(--wine-700); }
.mono i { font: 400 26px/1 var(--f-script); color: var(--wine-600); }

/* Dock: the guest tools, always one tap away */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  background: rgba(58, 12, 23, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid rgba(243, 230, 211, 0.12);
  transform: translateY(100%); transition: transform 0.6s var(--ease);
}
.dock.show { transform: none; }
.dock a {
  display: grid; justify-items: center; gap: 4px; padding: 10px 4px 9px;
  color: var(--on-wine-2); text-decoration: none;
  font-family: var(--f-display); font-weight: 600; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  transition: color 0.2s;
}
.dock a svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.3; }
.dock a.on, .dock a:hover { color: var(--on-wine); }

.sound {
  position: fixed; top: calc(12px + env(safe-area-inset-top)); right: 12px; z-index: 55;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-strong); background: rgba(246, 239, 227, 0.86);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-radius: 2px; padding: 8px 12px; color: var(--wine-700);
  font-family: var(--f-display); font-weight: 600; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  transition: transform 0.2s var(--ease);
}
.sound:hover { transform: translateY(-1px); }
.sound .bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 11px; }
.sound .bars i { width: 2px; background: currentColor; height: 4px; }
.sound.on .bars i { animation: eq 1s var(--ease-in-out) infinite; }
.sound.on .bars i:nth-child(2) { animation-delay: 0.2s; }
.sound.on .bars i:nth-child(3) { animation-delay: 0.4s; }
@keyframes eq { 50% { height: 11px; } }

@media (min-width: 760px) {
  .sec { padding: 120px 32px; }
  .hello .col { grid-template-columns: auto minmax(0, 1fr); text-align: left; justify-items: start; align-items: center; max-width: 820px; gap: 56px; }
  .duo { grid-template-columns: 1fr 1fr; }
  .moment-row { gap: 44px; }
  .moment-row .txt p { font-size: 17.5px; }
  .dock { left: 50%; right: auto; bottom: 18px; width: 520px; transform: translate(-50%, 140%); border: 1px solid rgba(243, 230, 211, 0.14); border-radius: 3px; padding-bottom: 0; }
  .dock.show { transform: translate(-50%, 0); }
  .rsvp-card { padding: 52px 44px 40px; }
}
