/* Alex & Anna wedding invitation. Mobile first, wide layout from 900px. */
:root {
  --ivory: #FBF6EE;
  --blush: #F4E6D8;
  --sand: #EADBC8;
  --sage: #8A9A74;
  --sage-d: #5C6B49;
  --olive: #46513A;
  --gold: #B8975A;
  --gold-l: #DCC590;
  --ink: #3A382F;
  --ink-2: #6E695B;
  --paper: url('/assets/img/paper.svg');
  --paper-img: url('/assets/img/paper.jpg');
  --lining: url('/assets/img/lining.jpg');
  --f-display: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --f-ui: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --f-script: 'Pinyon Script', 'Snell Roundhand', cursive;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --pad: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.locked, html.locked body { overflow: hidden; height: 100%; }
body {
  font-variant-numeric: lining-nums;
  margin: 0; background: var(--blush); color: var(--ink);
  font-family: var(--f-ui); font-weight: 300; font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
i { font-style: italic; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
button { font: inherit; color: inherit; }

/* ================= ENVELOPE ================= */
.env {
  position: fixed; inset: 0; z-index: 100; overflow: hidden; cursor: pointer;
  perspective: 1800px; perspective-origin: 50% 20%;
  background: #E9DCC8 var(--paper-img) center / cover;
  -webkit-tap-highlight-color: transparent;
}
.env::after { content: ""; position: absolute; inset: 0; z-index: 9; pointer-events: none; box-shadow: inset 0 0 140px rgba(110, 80, 45, .22); }
.env__back {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(40,55,30,.35), transparent 45%), var(--lining) 0 0 / 280px auto;
  transition: opacity .7s ease;
}

.env__card {
  position: absolute; z-index: 2; left: 9%; right: 9%; top: 7%; bottom: 9%;
  background: #FBF6EC var(--paper-img) center / cover;
  box-shadow: 0 10px 40px rgba(40,30,15,.35);
  transform: translateY(78%);
  transition: transform 1.1s var(--ease), left .9s var(--ease), right .9s var(--ease), top .9s var(--ease), bottom .9s var(--ease), box-shadow .9s ease;
  display: grid; place-items: center; padding: 14px;
}
.env__card-frame {
  width: 100%; height: 100%; border: 1px solid var(--gold-l); outline: 1px solid rgba(184,151,90,.35); outline-offset: -7px;
  display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center;
  transition: opacity .5s ease;
}
.env__card-eyebrow { font-size: .74rem; letter-spacing: .42em; text-transform: uppercase; color: var(--ink-2); padding-left: .42em; }
.env__card-mono { font-family: var(--f-display); font-weight: 500; font-size: clamp(3.2rem, 14vw, 5.2rem); line-height: 1; color: var(--olive); letter-spacing: .04em; }
.env__card-mono i { color: var(--gold); font-weight: 400; }
.env__card-date { font-size: .78rem; letter-spacing: .38em; color: var(--gold); padding-left: .38em; }

.env__piece {
  position: absolute; inset: 0; z-index: 3;
  background: #EBDDC9 var(--paper-img) center / cover;
  transition: transform .95s cubic-bezier(.55, 0, .6, 1) , opacity .6s ease;
}
.env__piece--l { clip-path: polygon(0 0, 50% 52%, 0 100%); }
.env__piece--r { clip-path: polygon(100% 0, 50% 52%, 100% 100%); }
.env__piece--b { clip-path: polygon(0 100%, 50% 52%, 100% 100%); }
.env__piece::after { content: ""; position: absolute; inset: 0; }
.env__piece--l::after { background: linear-gradient(90deg, rgba(255,255,255,.22), transparent 45%, rgba(95,65,35,.2) 100%); }
.env__piece--r::after { background: linear-gradient(270deg, rgba(255,255,255,.05), rgba(95,65,35,.1) 50%, rgba(95,65,35,.3) 100%); }
.env__piece--b::after { background: radial-gradient(ellipse 85% 62% at 50% 52%, rgba(95,65,35,.3), transparent 70%), linear-gradient(0deg, rgba(255,255,255,.25), transparent 55%); }

.env__creases { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; transition: opacity .5s ease; }
.c-dark { stroke: rgba(120, 92, 62, .22); stroke-width: 1; }
.c-light { stroke: rgba(255, 255, 255, .55); stroke-width: .8; }

.env__flap-shadow { position: absolute; z-index: 4; left: 0; right: 0; top: 0; height: 52%; filter: blur(9px); transform: translateY(10px); pointer-events: none; transition: opacity .4s ease; }
.env__flap-shadow i { position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 50% 100%); background: rgba(70, 48, 25, .5); }
.env__flap {
  position: absolute; z-index: 5; left: 0; right: 0; top: 0; height: 52%;
  transform-origin: 50% 0; transform-style: preserve-3d;
  transition: transform 1.25s cubic-bezier(.5, .05, .25, 1);
}
.env__flap-front, .env__flap-back { position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 50% 100%); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.env__flap-front {
  background: linear-gradient(180deg, rgba(255,255,255,.3), rgba(110,80,45,.12)), #F0E4D1 var(--paper-img) center top / cover;
}
.env__flap-back { transform: rotateX(180deg); background: linear-gradient(0deg, rgba(40,55,30,.25), transparent), var(--lining) 0 0 / 280px auto; }

.env__top {
  position: absolute; z-index: 6; top: 7.5%; left: 0; right: 0; text-align: center; margin: 0;
  font-family: var(--f-display); font-size: clamp(1.05rem, 4.4vw, 1.5rem); letter-spacing: .34em; text-transform: uppercase; color: rgba(110, 90, 62, .62);
  padding-left: .34em; transition: opacity .5s ease;
}
.env__top i { text-transform: none; letter-spacing: 0; color: var(--gold); }

.env__seal {
  position: absolute; z-index: 7; left: 50%; top: 52%; width: 150px; padding: 0; border: 0; background: none; cursor: pointer;
  transform: translate(-50%, -50%); -webkit-tap-highlight-color: transparent;
  transition: transform .9s var(--ease), opacity .6s ease, filter .6s ease;
}
.env__seal img { width: 100%; height: auto; filter: drop-shadow(0 7px 7px rgba(70, 48, 25, .42)); }
.env__seal:focus-visible { outline-offset: 6px; border-radius: 50%; }
.env__pulse {
  position: absolute; left: 50%; top: 50%; width: 110px; height: 110px; margin: -55px 0 0 -55px; border-radius: 50%;
  border: 1px solid rgba(184,151,90,.75); animation: pulse 2.8s ease-out infinite; pointer-events: none;
}
.env__hint {
  position: absolute; z-index: 6; left: 0; right: 0; top: 77%; margin: 0; text-align: center;
  font-size: .68rem; font-weight: 400; letter-spacing: .28em; text-transform: uppercase; color: rgba(96, 76, 48, .85); padding-left: .28em;
  animation: breathe 3.2s ease-in-out infinite; transition: opacity .4s ease;
}

/* envelope choreography */
.env.is-breaking .env__seal { transform: translate(-50%, -50%) scale(1.28) rotate(-6deg); opacity: 0; filter: blur(3px); }
.env.is-breaking .env__hint, .env.is-breaking .env__pulse { opacity: 0; animation: none; }
.env.is-flap .env__flap { transform: rotateX(180deg); }
.env.is-flap .env__top, .env.is-flap .env__flap-shadow { opacity: 0; }
.env.is-flap .env__creases .c-light { opacity: 0; }
.env.is-card .env__card { transform: translateY(0); }
.env.is-out .env__piece--l { transform: translateX(-105%); }
.env.is-out .env__piece--r { transform: translateX(105%); }
.env.is-out .env__piece--b { transform: translateY(105%); }
.env.is-out .env__creases, .env.is-out .env__flap, .env.is-out .env__flap-shadow { opacity: 0; transition: opacity .4s ease; }
.env.is-out .env__card { box-shadow: 0 18px 50px rgba(30, 40, 20, .45); }
.env.is-zoom .env__card { z-index: 8; left: 0; right: 0; top: 0; bottom: 0; box-shadow: none; transform: translateY(0); transition-duration: 1.1s; }
.env.is-zoom .env__card-frame { opacity: 0; transition: opacity .9s ease .2s; }
.env.is-zoom .env__back { opacity: 0; }
.env.is-gone { opacity: 0; transition: opacity .9s ease; pointer-events: none; }

@keyframes pulse { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.75); opacity: 0; } }
@keyframes breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* ---- phones: cinematic envelope (AI video + music) ---- */
.env__video { display: none; position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; background: #EFE3D0; }
.env.is-cine { background: #EFE3D0; }
.env.is-cine::after { display: none; }
.env.is-cine .env__video { display: block; }
.env.is-cine .env__back, .env.is-cine .env__card, .env.is-cine .env__piece, .env.is-cine .env__creases, .env.is-cine .env__flap, .env.is-cine .env__flap-shadow { display: none; }
.env.is-cine .env__top { top: 6.5%; font-size: clamp(1.5rem, 7.6vw, 2.2rem); font-weight: 500; letter-spacing: .28em; padding-left: .28em; color: #4A3B22; text-shadow: 0 0 22px rgba(251, 246, 238, 1), 0 0 10px rgba(251, 246, 238, .95), 0 0 3px rgba(251, 246, 238, .9); }
.env.is-cine .env__top i { color: #A07C36; }
.env.is-cine .env__hint { left: 50%; right: auto; width: max-content; max-width: 92%; transform: translateX(-50%); top: 77%; padding: .75em 1.5em .75em 1.7em; border-radius: 999px; background: rgba(251, 246, 238, .86); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); font-size: .82rem; font-weight: 500; letter-spacing: .24em; color: #4A3B22; box-shadow: 0 6px 20px rgba(80, 60, 30, .14); }
.env.is-cine .env__seal { top: 51.6%; }

.sound { position: fixed; right: 14px; bottom: 14px; z-index: 120; width: 48px; height: 48px; padding: 0; border-radius: 50%; border: 1px solid rgba(184, 151, 90, .65); background: rgba(251, 246, 238, .88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--olive); display: grid; place-items: center; cursor: pointer; opacity: 0; transform: scale(.9); transition: opacity .9s ease, transform .9s var(--ease); box-shadow: 0 8px 20px rgba(70, 60, 30, .18); -webkit-tap-highlight-color: transparent; }
.sound.show { opacity: 1; transform: none; }
.sound svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sound[aria-pressed="true"] .sound__off, .sound[aria-pressed="false"] .sound__on { display: none; }

/* ================= INVITE ================= */
.invite { position: relative; overflow: hidden; background: var(--blush); }
.invite::before { content: ""; position: absolute; inset: 0; background: var(--paper); mix-blend-mode: multiply; opacity: .55; pointer-events: none; z-index: 0; }
.invite > * { position: relative; z-index: 1; }

.eyebrow { margin: 0 0 20px; font-size: .7rem; font-weight: 400; letter-spacing: .42em; text-transform: uppercase; color: var(--ink-2); padding-left: .42em; line-height: 2; }
.script { margin: 0 0 8px; font-family: var(--f-script); font-size: clamp(1.9rem, 7vw, 2.5rem); color: var(--gold); line-height: 1.3; }
.h2 { margin: 0 0 14px; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.9rem, 7.4vw, 2.6rem); line-height: 1.15; letter-spacing: .01em; color: var(--olive); }
.body { margin: 0 auto 22px; max-width: 34em; color: var(--ink-2); font-size: 1.02rem; }
.body strong { font-weight: 500; color: var(--ink); }

/* ---- hero ---- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 280px 20px 255px; background: radial-gradient(120% 75% at 50% 32%, #FCF1E7 0%, #F4E4D5 62%, #EFDCCB 100%); }
.hero__garland { position: absolute; left: 0; top: 0; width: 100%; display: block; z-index: 3; pointer-events: none; transform-origin: 50% 0; }
.hero__garland { height: 300px; }
.hero__garland img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.hero__chandelier { position: absolute; left: 50%; top: 14px; width: clamp(120px, 34%, 150px); height: auto; transform: translateX(-50%); z-index: 2; transform-origin: 50% 0; pointer-events: none; filter: drop-shadow(0 14px 18px rgba(140,110,60,.2)); }
.hero__table { position: absolute; left: 50%; bottom: -22px; width: 112%; max-width: none; height: auto; transform: translateX(-50%); z-index: 3; pointer-events: none; }
.hero__body { position: relative; z-index: 4; width: 100%; max-width: 520px; }
.hero__eyebrow { margin-bottom: 26px; }
.names { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(2.3rem, 10.6vw, 3.1rem); letter-spacing: .26em; text-transform: uppercase; line-height: 1.25; color: var(--olive); display: grid; justify-items: center; }
.names__a { display: block; padding-left: .26em; }
.names__a i { display: inline-block; font-style: normal; }
.names__amp { display: block; margin: 4px 0; font-family: var(--f-display); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 1.3em; line-height: 1; color: var(--gold); }
.hero__date { margin: 30px 0 6px; display: flex; align-items: center; justify-content: center; gap: 16px; font-size: .86rem; font-weight: 400; letter-spacing: .38em; color: var(--ink); }
.hero__date time { padding-left: .38em; }
.dash { width: 30px; height: 1px; background: var(--gold); }
.hero__place { margin: 0; font-size: .7rem; letter-spacing: .38em; text-transform: uppercase; color: var(--ink-2); padding-left: .38em; }

.scroll { position: absolute; z-index: 5; left: 50%; bottom: 12px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; font-size: .62rem; letter-spacing: .36em; text-transform: uppercase; text-decoration: none; color: var(--olive); padding: 8px 14px; }
.scroll span { padding-left: .36em; background: rgba(251,246,238,.85); border-radius: 20px; padding: 2px 10px 2px 12px; }
.scroll i { width: 1px; height: 30px; background: linear-gradient(var(--olive), transparent); animation: drip 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* hero entrance (starts when the envelope opens) */
.hero__garland, .hero__table { opacity: 0; }
.hero__chandelier { opacity: 0; }
.hero__eyebrow, .hero__date, .hero__place, .scroll { opacity: 0; }
.names__a i, .names__amp { opacity: 0; }
.opened .hero__garland { animation: dropIn 1.6s var(--ease) .1s both, breeze 9s ease-in-out 2s infinite alternate; }
.opened .hero__table { animation: tableIn 1.8s var(--ease) .3s both; }
.opened .hero__chandelier { animation: lampIn 1.9s var(--ease) .2s both, sway 8s ease-in-out 2.2s infinite alternate; }
.opened .hero__eyebrow { animation: fadeUp 1.2s var(--ease) .9s both; }
.opened .names__a i { animation: letterIn 1.1s var(--ease) calc(1.2s + var(--n) * .07s) both; }
.opened .names__amp { animation: fadeUp 1.2s var(--ease) 1.7s both; }
.opened .hero__date { animation: fadeUp 1.2s var(--ease) 2s both; }
.opened .hero__place { animation: fadeUp 1.2s var(--ease) 2.2s both; }
.opened .scroll { animation: fadeUp 1.2s var(--ease) 2.8s both; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-46px); } to { opacity: 1; transform: none; } }
@keyframes tableIn { from { opacity: 0; transform: translate(-50%, 60px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes lampIn { from { opacity: 0; transform: translate(-50%, -60px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes sway { from { transform: translateX(-50%) rotate(-.9deg); } to { transform: translateX(-50%) rotate(.9deg); } }
@keyframes breeze { from { transform: rotate(-.5deg); } to { transform: rotate(.5deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes letterIn { from { opacity: 0; transform: translateY(10px); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }

/* ---- sections ---- */
.sec { padding: 88px var(--pad); text-align: center; position: relative; }
.sec + .sec::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 44px; background: linear-gradient(var(--gold-l), transparent); }
.sec--together { background: var(--ivory); padding-top: 96px; }
.sec--date { background: var(--blush); }
.sec--venue { background: #EFE9D8; }
.sec--day { background: var(--ivory); }
.sec--dress { background: #EDE5D4; }
.sec--rsvp { background: var(--blush); }
.sec--together::after, .sec--date::after { content: none; }

.guest { margin: 0 auto 22px; font-family: var(--f-script); font-size: clamp(1.8rem, 7vw, 2.4rem); color: var(--olive); line-height: 1.3; }
.lead { margin: 6px auto 26px; max-width: 16em; font-family: var(--f-display); font-weight: 500; font-size: clamp(2rem, 8.2vw, 2.9rem); line-height: 1.12; color: var(--olive); }
.lead i { color: var(--gold); font-weight: 400; }
.lead span { display: block; margin-top: 18px; font-size: 1.12rem; font-weight: 400; font-style: italic; line-height: 1.5; color: var(--ink-2); max-width: 22em; margin-inline: auto; }
.orn { margin: 0 auto 24px; width: 130px; }
.orn svg { width: 100%; height: 14px; overflow: visible; }
.o-line { stroke: var(--gold-l); stroke-width: 1; fill: none; }
.o-dia { fill: none; stroke: var(--gold); stroke-width: 1; }

.split { display: grid; gap: 8px; }
.split__text { display: block; }

/* calendar */
.cal { margin: 8px auto 30px; width: min(100%, 320px); padding: 20px 18px 16px; background: rgba(255,253,248,.6); border: 1px solid rgba(184,151,90,.4); border-radius: 4px; }
.cal__m { margin: 0 0 12px; font-family: var(--f-display); font-size: 1.3rem; letter-spacing: .22em; text-transform: uppercase; color: var(--olive); font-weight: 500; padding-left: .22em; }
.cal__g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; font-size: .86rem; }
.cal__g span { aspect-ratio: 1; display: grid; place-items: center; color: var(--ink-2); font-weight: 300; }
.cal__g .dw { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); aspect-ratio: auto; padding-bottom: 6px; font-weight: 400; }
.cal__g .on { position: relative; color: var(--ivory); font-weight: 500; }
.cal__g .on::before { content: ""; position: absolute; inset: 1px; border-radius: 50%; background: var(--sage-d); z-index: -1; }
.cal__g .on::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid var(--gold); }
.cal__g .on { z-index: 0; }

.count { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 360px; margin: 6px auto 34px; }
.count div { padding: 6px 0; }
.count div + div { border-left: 1px solid rgba(184,151,90,.4); }
.count b { display: block; font-family: var(--f-display); font-weight: 500; font-size: 2.3rem; line-height: 1.1; color: var(--olive); font-variant-numeric: lining-nums tabular-nums; }
.count span { font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-2); padding-left: .3em; }

.actions { display: grid; gap: 14px; justify-items: center; margin-top: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 32px; border-radius: 40px; border: 1px solid var(--sage-d); background: var(--sage-d); color: var(--ivory); font-size: .78rem; font-weight: 400; letter-spacing: .24em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .3s ease, color .3s ease, transform .3s var(--ease), box-shadow .3s ease; box-shadow: 0 8px 22px rgba(70,81,58,.22); }
.btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { background: var(--olive); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--olive); box-shadow: none; }
.btn--ghost:hover { background: var(--sage-d); color: var(--ivory); }
.link { background: none; border: 0; padding: 4px 2px; cursor: pointer; font-size: .86rem; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--gold-l); text-underline-offset: 4px; transition: color .25s ease; }
.link:hover { color: var(--olive); }

/* venue */
.arch { width: min(78%, 280px); aspect-ratio: 220 / 260; margin: 6px auto 34px; border-radius: 999px 999px 4px 4px; overflow: hidden; border: 1px solid rgba(184,151,90,.55); box-shadow: 0 0 0 7px #EFE9D8, 0 0 0 8px rgba(184,151,90,.4), 0 24px 40px rgba(70,60,30,.14); }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.addr { font-style: normal; margin: 0 0 18px; font-family: var(--f-display); font-size: 1.25rem; font-style: italic; color: var(--ink); line-height: 1.5; }

/* timeline */
.tl { list-style: none; margin: 34px auto 0; padding: 0; max-width: 440px; text-align: left; position: relative; }
.tl::before { content: ""; position: absolute; left: 104px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--gold-l), var(--gold), var(--gold-l)); }
.tl li { display: grid; grid-template-columns: 92px 1fr; gap: 0 38px; padding: 12px 0; position: relative; align-items: baseline; }
.tl li::before { content: ""; position: absolute; left: 100px; top: 24px; width: 9px; height: 9px; border-radius: 50%; background: var(--ivory); border: 1px solid var(--gold); }
.tl time { font-size: .78rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); text-align: right; white-space: nowrap; }
.tl h3 { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: 1.4rem; line-height: 1.25; color: var(--olive); }
.tl p { margin: 2px 0 0; font-size: .9rem; color: var(--ink-2); }

/* dress code */
.swatches { list-style: none; margin: 28px auto 34px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 18px; max-width: 420px; }
.swatches li { display: grid; justify-items: center; gap: 10px; font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); width: 64px; }
.swatches span { width: 52px; height: 52px; border-radius: 50%; background: var(--c); border: 3px solid #FBF6EE; box-shadow: 0 0 0 1px rgba(184,151,90,.5), 0 8px 14px rgba(70,60,30,.14); }

/* rsvp */
.rsvp { margin: 30px auto 0; max-width: 440px; text-align: left; padding: 28px 24px 26px; background: rgba(255,253,248,.66); border: 1px solid rgba(184,151,90,.4); border-radius: 6px; box-shadow: 0 20px 40px rgba(70,60,30,.08); }
.field { display: block; margin-bottom: 18px; }
.field span { display: block; margin-bottom: 6px; font-size: .66rem; font-weight: 400; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); }
.field em { font-style: normal; text-transform: none; letter-spacing: .04em; opacity: .75; }
.field input, .field select { width: 100%; min-height: 50px; padding: 10px 14px; font: inherit; font-size: 1.02rem; font-weight: 300; color: var(--ink); background: #FFFDF8; border: 1px solid #D9CDB7; border-radius: 4px; appearance: none; -webkit-appearance: none; transition: border-color .25s ease, box-shadow .25s ease; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,151,90,.22); }
.form-error { margin: -4px 0 14px; font-size: .88rem; color: #9A4B3B; }
.rsvp__btns { display: grid; gap: 12px; margin-top: 8px; }
.rsvp__btns .btn { width: 100%; padding: 0 14px; letter-spacing: .2em; }
.rsvp__via { margin: 18px 0 0; text-align: center; font-size: .86rem; color: var(--ink-2); }
.rsvp__via .link { font-size: inherit; }
.rsvp__via .link[aria-pressed="true"] { color: var(--olive); font-weight: 500; text-decoration-color: var(--gold); }
.contact { margin-top: 44px; }
.contact .eyebrow { margin-bottom: 6px; }
.phone { display: inline-block; font-family: var(--f-display); font-size: 2rem; font-weight: 500; color: var(--olive); text-decoration: none; letter-spacing: .02em; padding: 4px 6px; }
.phone:hover { color: var(--gold); }
.contact__who { margin: 2px 0 0; font-size: .9rem; color: var(--ink-2); }

/* footer */
.foot { padding: 80px var(--pad) 60px; text-align: center; background: var(--olive); color: var(--ivory); }
.foot .o-line { stroke: rgba(220,197,144,.6); } .foot .o-dia { stroke: var(--gold-l); }
.foot .script { color: var(--gold-l); font-size: 2.1rem; margin-bottom: 6px; }
.foot__names { margin: 0 0 10px; font-family: var(--f-display); font-size: 2.2rem; letter-spacing: .26em; text-transform: uppercase; padding-left: .26em; font-weight: 500; }
.foot__names i { color: var(--gold-l); text-transform: none; letter-spacing: 0; }
.foot__tag { margin: 0 0 28px; font-size: .78rem; letter-spacing: .3em; color: rgba(251,246,238,.7); padding-left: .3em; }
.foot__top { font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(251,246,238,.75); text-decoration: none; border-bottom: 1px solid rgba(220,197,144,.5); padding: 4px 0 6px; }
.foot__top:hover { color: #fff; }

/* scroll reveal */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ================= WIDE (desktop & tablet landscape) ================= */
@media (min-width: 900px) {
  :root { --pad: 56px; }
  body { font-size: 17px; }
  .eyebrow { font-size: .76rem; }
  .btn { min-height: 58px; padding: 0 40px; }

  .env__seal { width: 190px; }
  .env__pulse { width: 140px; height: 140px; margin: -70px 0 0 -70px; }
  .env__card { left: 25%; right: 25%; top: 9%; bottom: 8%; }
  .env__top { font-size: 1.6rem; top: 8%; }
  .env__hint { font-size: .8rem; top: 76%; }
  .env__card-mono { font-size: 6rem; }

  .hero { padding: 350px 40px 270px; }
  .hero__garland { height: 400px; }
  .hero__garland img { height: 100%; object-fit: cover; object-position: 50% 0; -webkit-mask-image: linear-gradient(#000 74%, transparent); mask-image: linear-gradient(#000 74%, transparent); }
  .hero__table { width: clamp(460px, 34vw, 560px); bottom: -12px; }
  .hero__chandelier { width: clamp(150px, 12vw, 185px); top: 16px; }
  .scroll { display: none; }
  .hero__body { max-width: 1100px; }
  .names { white-space: nowrap; font-size: clamp(3.2rem, 6vw, 5.4rem); grid-auto-flow: column; justify-content: center; align-items: baseline; column-gap: .45em; }
  .names__amp { margin: 0; font-size: 1.15em; }
  .hero__eyebrow { font-size: .84rem; margin-bottom: 34px; }
  .hero__date { font-size: 1rem; margin-top: 40px; }
  .hero__place { font-size: .8rem; }
  .dash { width: 52px; }

  .sec { padding: 120px var(--pad); }
  .sec > * { max-width: 1040px; margin-left: auto; margin-right: auto; }
  .script { font-size: 3rem; }
  .h2 { font-size: 3.1rem; }
  .lead { font-size: 3.8rem; max-width: 14em; }
  .lead span { font-size: 1.4rem; max-width: 26em; }
  .body { font-size: 1.1rem; }

  .split { grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; text-align: left; margin-top: 28px; }
  .split .cal { margin: 0 0 0 auto; width: min(100%, 400px); padding: 28px 26px 22px; }
  .split .cal__g { font-size: 1rem; }
  .split .body { margin-left: 0; }
  .split .count { margin-left: 0; margin-right: auto; }
  .split .actions { justify-items: start; }
  .split--venue .arch { margin: 0 0 0 auto; width: min(100%, 340px); }
  .split--venue .split__text .h2 { font-size: 2.7rem; }
  .split--rsvp { align-items: start; }
  .split--rsvp .rsvp { margin: 0 0 0 auto; width: 100%; }
  .split--rsvp .contact { margin: 0; text-align: left; align-self: center; }
  .split--rsvp .phone { font-size: 2.6rem; padding-left: 0; }
  .sec--venue .eyebrow, .sec--date .eyebrow, .sec--date .h2 { text-align: center; }

  .tl { max-width: 560px; }
  .tl::before { left: 140px; }
  .tl li { grid-template-columns: 124px 1fr; gap: 0 48px; padding: 15px 0; }
  .tl li::before { left: 136px; top: 29px; }
  .tl h3 { font-size: 1.7rem; }
  .tl time { font-size: .86rem; }
  .swatches { max-width: 640px; gap: 20px 34px; }
  .swatches li { width: 84px; font-size: .68rem; }
  .swatches span { width: 68px; height: 68px; }
  .rsvp__btns { grid-template-columns: 1fr 1fr; }
  .count b { font-size: 3rem; }
  .count { max-width: 440px; }
  .foot { padding: 110px var(--pad) 80px; }
  .foot__names { font-size: 3.2rem; }
}

@media (min-width: 900px) and (max-height: 800px) {
  .hero { padding-top: 350px; padding-bottom: 270px; }
}

/* very small phones */
@media (max-width: 359px) {
  :root { --pad: 20px; }
  .names { letter-spacing: .18em; }
  .btn { padding: 0 20px; letter-spacing: .16em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .rv { opacity: 1; transform: none; }
  .opened .hero__garland, .opened .hero__flora, .opened .hero__chandelier, .opened .hero__eyebrow, .opened .names__a i, .opened .names__amp, .opened .hero__date, .opened .hero__place, .opened .scroll { opacity: 1; }
  .opened .hero__chandelier { transform: translateX(-50%); }
}
