/* Julien & Margot wedding invitation. An evening at a Loire château. Mobile first, wide layout from 900px. */
:root {
  --midnight: #14213D;
  --midnight-d: #0C152B;
  --ivory: #F6F1E7;
  --ivory-2: #EFE6D3;
  --card: #FBF7EE;
  --gold: #C8A96A;
  --gold-l: #DCC48B;
  --gold-d: #7A5E24;
  --gold-art: #B08A3E;
  --burgundy: #6E1F2E;
  --burgundy-d: #4A1220;
  --rose: #D9B3A6;
  --forest: #1F3D33;
  --blush: #F1E3D8;
  --mist: #E4EAF2;
  --ink: #22222B;
  --ink-2: #4A4A55;
  --paper-img: url('/assets/img/paper.jpg');
  --lining: url('/assets/img/lining.jpg');
  --f-display: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --f-ui: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --f-script: 'Mrs Saint Delafield', 'Snell Roundhand', cursive;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --pad: 24px;
  --foil: linear-gradient(135deg, #F1DFA8 0%, #C8A96A 28%, #A88740 48%, #E9D6A0 66%, #B79555 100%);
}

*, *::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(--ivory); color: var(--ink);
  font-family: var(--f-ui); font-weight: 400; 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(--burgundy); 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: #22366A 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 150px rgba(4, 10, 30, .42); }
.env__back {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(16,4,10,.5), transparent 48%), var(--lining) 0 0 / 440px auto;
  transition: opacity .7s ease;
}

.env__card {
  position: absolute; z-index: 2; left: 9%; right: 9%; top: 7%; bottom: 9%;
  background: #F6F1E7;
  box-shadow: 0 10px 40px rgba(0,0,0,.55);
  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::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 70% at 50% 40%, rgba(255,255,255,.55), rgba(222,196,140,.18)); }
.env__card-frame {
  position: relative; width: 100%; height: 100%; border: 1px solid var(--gold); outline: 1px solid rgba(200,169,106,.55); outline-offset: -7px;
  display: grid; place-content: center; justify-items: center; gap: 9px; text-align: center;
  transition: opacity .5s ease;
}
.env__card-tower { width: 22px; height: 44px; fill: var(--gold-art); }
.env__card-eyebrow { font-size: .7rem; font-weight: 600; letter-spacing: .4em; text-transform: uppercase; color: var(--burgundy); padding-left: .4em; }
.env__card-mono { font-family: var(--f-display); font-weight: 400; font-size: clamp(4rem, 18vw, 6rem); line-height: 1; color: var(--midnight); letter-spacing: .02em; }
.env__card-mono i { font-family: var(--f-script); color: var(--gold-art); font-weight: 400; font-size: .95em; padding: 0 .1em; }
.env__card-date { font-family: var(--f-display); font-style: italic; font-size: 1.2rem; letter-spacing: .06em; color: var(--midnight); }
.env__card-num { font-size: .72rem; font-weight: 600; letter-spacing: .3em; color: var(--ink-2); padding-left: .3em; }
.env__card-place { font-size: .64rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--burgundy); padding-left: .26em; }

.env__piece {
  position: absolute; inset: 0; z-index: 3;
  background: #22366A 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; pointer-events: none; }
.env__piece--l::after { background: linear-gradient(90deg, rgba(150,175,235,.17), transparent 45%, rgba(0,4,16,.34) 100%); }
.env__piece--r::after { background: linear-gradient(270deg, rgba(150,175,235,.06), rgba(0,4,16,.12) 50%, rgba(0,4,16,.4) 100%); }
.env__piece--b::after { background: radial-gradient(ellipse 85% 62% at 50% 52%, rgba(0,4,16,.4), transparent 70%), linear-gradient(0deg, rgba(150,175,235,.14), transparent 55%); }

/* gold-foil line set inside the edge of the envelope */
.env__piece::before, .env__flap-front::before {
  content: ""; position: absolute; inset: 13px; padding: 2px; pointer-events: none; z-index: 1;
  background: var(--foil);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask-composite: exclude;
  opacity: .95;
}

.env__to { position: absolute; z-index: 2; left: 0; right: 0; top: 83%; margin: 0; text-align: center; font-family: var(--f-script); font-size: clamp(2.4rem, 10vw, 3.2rem); line-height: 1.1; color: #F6E8BC; text-shadow: 0 1px 8px rgba(0,0,0,.5); padding: 0 12%; }

.env__creases { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; transition: opacity .5s ease; }
.c-dark { stroke: rgba(0, 4, 16, .5); stroke-width: 1; }
.c-gold { stroke: rgba(244, 222, 150, .95); stroke-width: 1.7; }
.c-soft { stroke: rgba(236, 212, 150, .6); stroke-width: 1.3; }

.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(0, 3, 14, .6); }
.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(170,195,250,.2), rgba(0,4,16,.12)), #27407A var(--paper-img) center top / cover; }
.env__flap-back { transform: rotateX(180deg); background: linear-gradient(0deg, rgba(16,4,10,.4), transparent), var(--lining) 0 0 / 440px auto; }

.env__top {
  position: absolute; z-index: 6; top: 8.5%; left: 0; right: 0; text-align: center; margin: 0;
  font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: clamp(1.5rem, 6.4vw, 2.1rem); letter-spacing: .05em; color: #F6E8BC; text-shadow: 0 1px 8px rgba(0,0,0,.45);
  transition: opacity .5s ease;
}
.env__top i { font-family: var(--f-script); font-size: 1.4em; color: var(--gold); padding: 0 .06em; line-height: 0; }

.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::before { content: ""; position: absolute; left: 50%; top: 50%; width: 210%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(246,228,170,.34), rgba(246,228,170,.1) 40%, transparent 65%); animation: breathe 3.2s ease-in-out infinite; pointer-events: none; }
.env__seal img { position: relative; width: 100%; height: auto; filter: drop-shadow(0 8px 9px rgba(0, 0, 0, .55)); }
.env__seal:focus-visible { outline-offset: 6px; border-radius: 50%; outline-color: var(--gold-l); }
.env__pulse {
  position: absolute; left: 50%; top: 50%; width: 118px; height: 118px; margin: -59px 0 0 -59px; border-radius: 50%;
  border: 1.5px solid rgba(246,228,170,.9); animation: pulse 2.8s ease-out infinite; pointer-events: none;
}
.env__hint {
  position: absolute; z-index: 6; left: 50%; top: 71%; margin: 0; width: max-content; max-width: 90%; text-align: center; transform: translateX(-50%);
  font-size: .74rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: #F8EBC4; padding: 11px 18px 10px 22px;
  background: rgba(16, 28, 58, .86); border: 1px solid rgba(232, 208, 144, .75); border-radius: 2px;
  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-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(0, 0, 0, .6); }
.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: .72; } 50% { opacity: 1; } }

/* ================= INVITE ================= */
.invite { position: relative; overflow: hidden; background: var(--ivory); }
.invite > * { position: relative; z-index: 1; }

.eyebrow { margin: 0 0 18px; font-size: .72rem; font-weight: 700; letter-spacing: .34em; text-transform: uppercase; color: var(--burgundy); padding-left: .34em; line-height: 2; }
.script { margin: 0 0 4px; font-family: var(--f-script); font-size: clamp(2.8rem, 11vw, 3.8rem); color: var(--burgundy); line-height: 1.1; }
.h2 { text-wrap: balance; margin: 0 0 14px; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.9rem, 8vw, 2.7rem); line-height: 1.14; color: var(--midnight); letter-spacing: .005em; }
.body { margin: 0 auto 22px; max-width: 34em; color: var(--ink-2); font-size: 1rem; }
.body strong { font-weight: 600; color: var(--ink); }

/* progress: a candle flame travels along a gold thread */
.progress { position: fixed; z-index: 50; left: 0; right: 0; top: 0; height: 30px; pointer-events: none; opacity: 0; transition: opacity .8s ease 1.2s; }
.opened .progress { opacity: 1; }
.progress i { position: absolute; left: 0; top: 0; height: 2px; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, transparent, var(--gold) 40%, #F4E2A8); box-shadow: 0 0 8px rgba(244,226,168,.7); }
.progress svg { position: absolute; top: 1px; left: calc((100% - 14px) * var(--p, 0)); width: 14px; height: 25px; fill: #FFD98A; filter: drop-shadow(0 0 5px rgba(255,190,80,.95)) drop-shadow(0 0 12px rgba(255,170,60,.55)); transform-origin: 50% 90%; animation: flicker 1.9s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { transform: scale(1, 1) rotate(-1.5deg); } 22% { transform: scale(.94, 1.06) rotate(2deg); } 48% { transform: scale(1.04, .97) rotate(-2.5deg); } 71% { transform: scale(.97, 1.04) rotate(1.5deg); } }

/* ornament: hairline with a fleur-de-lis */
.orn { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 auto 24px; max-width: 280px; }
.orn i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.orn i:last-child { background: linear-gradient(270deg, transparent, var(--gold)); }
.orn svg { width: 22px; height: 26px; fill: var(--gold-art); flex: none; }

/* lambrequin edge: dark sections hang from the section above */
.edge { --edge: var(--ivory); }
.edge::before, .edge::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 20px; pointer-events: none; z-index: 3; background-repeat: repeat-x; background-size: 44px 20px; background-position: 50% 0; }
.edge::before { background-color: var(--edge); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 20' preserveAspectRatio='none'><path d='M0 0H44V1.5C38 1.5 33 8 22 18 11 8 6 1.5 0 1.5Z'/></svg>") repeat-x 50% 0 / 44px 20px; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 20' preserveAspectRatio='none'><path d='M0 0H44V1.5C38 1.5 33 8 22 18 11 8 6 1.5 0 1.5Z'/></svg>") repeat-x 50% 0 / 44px 20px; }
.edge::after { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 20'><path d='M0 1.5C6 1.5 11 8 22 18 33 8 38 1.5 44 1.5' fill='none' stroke='%23C8A96A' stroke-width='1.1'/><circle cx='22' cy='18.6' r='1.5' fill='%23C8A96A'/></svg>"); }
.sec--there { --edge: var(--ivory-2); }

/* ---- hero ---- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 300px 18px 230px;
  background: radial-gradient(70% 34% at 50% 36%, rgba(228, 190, 108, .32), transparent 72%), linear-gradient(180deg, #F9F4EA 0%, #F3E9D6 55%, #E9D9BC 100%); }
.hero__garland { position: absolute; left: 50%; top: -1.2%; width: 176%; transform: translateX(-50%); z-index: 3; pointer-events: none; transform-origin: 50% 0; }
.hero__garland img { width: 100%; height: auto; }
.hero__cage { --drop: 30px; position: absolute; left: 50%; top: 0; width: clamp(118px, 34vw, 140px); padding-top: var(--drop); transform: translateX(-50%); z-index: 4; transform-origin: 50% 0; pointer-events: none; }
.hero__cage::before { content: ""; position: absolute; left: 50%; top: 0; width: 1.6px; height: calc(var(--drop) + 8px); margin-left: -.8px; background: repeating-linear-gradient(180deg, #B08A3E 0 5px, #EBDAA4 5px 6.5px, transparent 6.5px 8px); }
.hero__cage img { width: 100%; height: auto; filter: drop-shadow(0 16px 18px rgba(80, 55, 15, .28)); }
.hero__tower { position: absolute; left: 50%; top: 250px; width: 250px; height: auto; transform: translateX(-50%); z-index: 1; pointer-events: none; }
.hero__table { position: absolute; left: 50%; bottom: -8px; width: 104%; transform: translateX(-50%); z-index: 3; pointer-events: none; }
.hero__table img { width: 100%; height: auto; max-width: none; }
.fl { position: absolute; left: var(--x); top: var(--y); width: 7.4%; aspect-ratio: 1; margin: -3.7% 0 0 -3.7%; border-radius: 50%; background: radial-gradient(circle, rgba(255,226,140,.95) 0, rgba(255,200,90,.5) 24%, rgba(255,180,70,.16) 52%, transparent 72%); animation: glow 3.3s ease-in-out infinite; animation-delay: var(--t, 0s); }
@keyframes glow { 0%, 100% { opacity: .95; transform: scale(1); } 30% { opacity: .65; transform: scale(.88); } 55% { opacity: 1; transform: scale(1.1); } 80% { opacity: .75; transform: scale(.95); } }
.hero__body { position: relative; z-index: 4; width: 100%; max-width: 560px; }
.hero__eyebrow { margin-bottom: 18px; }

.names { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(2.9rem, 14.4vw, 4.6rem); letter-spacing: .07em; line-height: 1.04; color: var(--midnight); text-transform: uppercase; display: grid; justify-items: center; }
.names__a { display: block; padding-left: .07em; }
.names__a i { display: inline-block; font-style: normal; }
.names__amp { display: flex; align-items: center; justify-content: center; gap: .3em; font-family: var(--f-script); text-transform: none; font-weight: 400; letter-spacing: 0; font-size: 1.9em; line-height: .5; height: .95em; margin: .12em 0 .04em; color: var(--gold-art); }
.names__amp::before, .names__amp::after { content: ""; width: clamp(34px, 15vw, 70px); height: 1px; background: linear-gradient(90deg, transparent, var(--gold-art)); }
.names__amp::after { background: linear-gradient(270deg, transparent, var(--gold-art)); }
.hero__date { margin: 22px 0 4px; font-family: var(--f-display); font-size: 1.12rem; letter-spacing: .14em; text-transform: uppercase; color: var(--midnight); }
.hero__date time { padding-left: .14em; }
.hero__place { margin: 0; font-size: .68rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--burgundy); padding-left: .24em; }

/* hero entrance (starts when the envelope opens) */
.hero__garland, .hero__table, .hero__cage, .hero__tower { opacity: 0; }
.hero__eyebrow, .hero__date, .hero__place { 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__tower { animation: towerIn 2.6s ease .9s both; }
.opened .hero__table { animation: tableIn 1.8s var(--ease) .3s both; }
.opened .hero__cage { animation: cageIn 1.9s var(--ease) .2s both, sway 6.5s 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) * .08s) both; }
.opened .names__amp { animation: fadeUp 1.2s var(--ease) 1.9s both; }
.opened .hero__date { animation: fadeUp 1.2s var(--ease) 2.3s both; }
.opened .hero__place { animation: fadeUp 1.2s var(--ease) 2.5s both; }
@keyframes dropIn { from { opacity: 0; transform: translate(-50%, -46px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes tableIn { from { opacity: 0; transform: translate(-50%, 60px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes cageIn { from { opacity: 0; transform: translate(-50%, -90px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes sway { from { transform: translateX(-50%) rotate(-2.6deg); } to { transform: translateX(-50%) rotate(2.6deg); } }
@keyframes breeze { from { transform: translateX(-50%) rotate(-.3deg); } to { transform: translateX(-50%) rotate(.3deg); } }
@keyframes towerIn { from { opacity: 0; transform: translate(-50%, 18px); } to { opacity: .5; transform: translate(-50%, 0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes letterIn { from { opacity: 0; transform: translateY(14px) scale(.96); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }

/* ---- sections ---- */
.sec { padding: 112px var(--pad) 88px; text-align: center; position: relative; }
.sec--together { background: var(--ivory); padding-top: 92px; }
.sec--date { background: radial-gradient(90% 46% at 50% 0, rgba(200,169,106,.22), transparent 70%), var(--blush); }
.sec--venue { background: var(--ivory); }
.sec--day { background: linear-gradient(180deg, rgba(92,24,42,.88), rgba(58,14,28,.92)), var(--lining) 0 0 / 460px auto, #290911; color: var(--ivory); overflow: hidden; }
.sec--dress { background: var(--ivory); }
.sec--stay { background: var(--ivory-2); }
.sec--there { background: radial-gradient(90% 46% at 50% 100%, rgba(200,169,106,.2), transparent 70%), var(--mist); }
.sec--rsvp { background: var(--ivory); }
.sec--day > * { position: relative; z-index: 1; }
.sec--day .eyebrow { color: var(--gold-l); }
.sec--day .h2 { color: var(--ivory); }
.sec--day :focus-visible { outline-color: var(--gold-l); }

.guest { margin: 0 auto 18px; font-family: var(--f-script); font-size: clamp(2.2rem, 8vw, 3rem); color: var(--burgundy); line-height: 1.1; }
.lead { margin: 6px auto 22px; max-width: 14em; font-family: var(--f-display); font-weight: 400; font-size: clamp(2.1rem, 9.2vw, 3.1rem); line-height: 1.1; color: var(--midnight); letter-spacing: .005em; }
.lead i { font-family: var(--f-script); font-style: normal; color: var(--gold-art); font-size: 1.5em; padding: 0 .1em; line-height: .6; }
.lead span { display: block; margin-top: 22px; font-family: var(--f-ui); font-style: normal; font-weight: 400; font-size: 1.02rem; line-height: 1.65; color: var(--ink-2); max-width: 22em; margin-inline: auto; letter-spacing: 0; text-wrap: balance; }

.split { display: grid; gap: 8px; }
.split__text { display: block; }

/* calendar: the day sealed in wax */
.cal { margin: 8px auto 30px; width: min(100%, 320px); background: var(--card); color: var(--ink); border: 1px solid var(--gold); outline: 1px solid rgba(200,169,106,.6); outline-offset: -8px; box-shadow: 0 20px 38px rgba(90,50,40,.2); }
.cal__m { margin: 0; padding: 22px 10px 14px; font-family: var(--f-display); font-style: italic; font-size: 1.9rem; line-height: 1; color: var(--burgundy); letter-spacing: .02em; }
.cal__m small { display: block; margin-top: 6px; font-family: var(--f-ui); font-style: normal; font-size: .66rem; font-weight: 700; letter-spacing: .34em; color: var(--ink-2); padding-left: .34em; }
.cal__g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 8px 20px 24px; font-size: .92rem; }
.cal__g span { aspect-ratio: 1; display: grid; place-items: center; color: var(--ink-2); position: relative; }
.cal__g .dw { font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-d); aspect-ratio: auto; padding: 2px 0 8px; }
.cal__g .on { color: #FBF3E2; font-weight: 700; isolation: isolate; }
.cal__g .on::before { content: ""; position: absolute; inset: -5px; z-index: -1; border-radius: 47% 53% 51% 49% / 52% 47% 53% 48%; background: radial-gradient(circle at 34% 28%, #A33048, #6E1F2E 56%, #4A1220); box-shadow: 0 3px 7px rgba(60,10,20,.5), inset 0 0 0 2px rgba(220,196,139,.6); }

.count { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 380px; margin: 8px auto 32px; border-top: 1px solid rgba(176,138,62,.7); border-bottom: 1px solid rgba(176,138,62,.7); padding: 14px 0 12px; }
.count div { position: relative; text-align: center; }
.count div + div::before { content: ""; position: absolute; left: 0; top: 14%; bottom: 14%; width: 1px; background: rgba(176,138,62,.45); }
.count b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 2.2rem; line-height: 1.15; color: var(--burgundy); font-variant-numeric: lining-nums tabular-nums; }
.count span { font-size: .6rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); padding-left: .22em; }

.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 30px; border-radius: 2px; border: 0; background: var(--burgundy); color: var(--ivory); font-family: var(--f-ui); font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  box-shadow: inset 0 0 0 1px var(--gold), inset 0 0 0 4px var(--burgundy), inset 0 0 0 5px rgba(220,196,139,.55), 0 12px 24px rgba(74,18,32,.32); transition: background .3s ease, color .3s ease, transform .3s var(--ease), box-shadow .3s ease; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255,240,200,.5) 50%, transparent 65%); transform: translateX(-130%); transition: transform .9s var(--ease); }
.btn:hover::after, .btn:focus-visible::after { transform: translateX(130%); }
.btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-2px); background: var(--burgundy-d); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--burgundy); box-shadow: inset 0 0 0 1px var(--burgundy), inset 0 0 0 4px transparent, inset 0 0 0 5px rgba(110,31,46,.35); }
.btn--ghost:hover { background: var(--burgundy); color: var(--ivory); }
.link { background: none; border: 0; padding: 6px 2px; cursor: pointer; font-size: .88rem; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--gold-art); text-underline-offset: 4px; transition: color .25s ease; }
.link:hover { color: var(--burgundy); }
.sec--date .actions .link, .sec--rsvp .link { display: inline-flex; align-items: center; min-height: 48px; }

/* venue: the watercolor in a hung gilded frame */
.gilt { position: relative; width: min(78%, 310px); margin: 56px auto 36px; padding: 0; }
.gilt__cord { position: absolute; left: 6%; right: 6%; top: -48px; height: 50px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 50' preserveAspectRatio='none'><path d='M0 50 L50 3 L100 50' fill='none' stroke='%237A5E24' stroke-width='1.2' vector-effect='non-scaling-stroke'/></svg>") no-repeat 50% 100% / 100% 100%; }
.gilt__cord::after { content: ""; position: absolute; left: 50%; top: 0; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #F1DFA8, #8A6D2F); box-shadow: 0 1px 2px rgba(0,0,0,.4); }
.gilt__frame { padding: 13px; background: var(--foil); box-shadow: inset 0 0 0 1px rgba(90,62,15,.6), inset 0 0 0 5px rgba(255,238,180,.5), inset 0 0 0 6px rgba(90,62,15,.5), 0 26px 46px rgba(20,33,61,.35), 0 2px 0 rgba(255,255,255,.5) inset; }
.gilt__frame img { width: 100%; height: auto; aspect-ratio: 900 / 1270; object-fit: cover; border: 1px solid rgba(90,62,15,.7); box-shadow: 0 0 0 5px #F3ECDC; }
.gilt__frame { padding: 18px; }
.gilt__plaque { width: 72%; margin: 18px auto 0; padding: 8px 6px 7px; background: linear-gradient(135deg, #E3CE96, #B8964F 55%, #D9BF80); color: #2B2108; font-family: var(--f-display); font-size: .78rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; line-height: 1.35; box-shadow: inset 0 0 0 1px rgba(90,62,15,.55), 0 4px 8px rgba(20,33,61,.25); }
.gilt__plaque small { font-family: var(--f-ui); font-size: .6rem; font-weight: 600; letter-spacing: .28em; padding-left: .28em; }
.addr { font-style: normal; margin: 0 0 18px; font-family: var(--f-display); font-size: 1.15rem; font-style: italic; color: var(--ink); line-height: 1.5; }

/* schedule: a dance card */
.card { position: relative; margin: 34px auto 0; max-width: 480px; padding: 36px 26px 100px; background: var(--card); color: var(--ink); border: 1px solid var(--gold); outline: 1px solid rgba(200,169,106,.6); outline-offset: -9px; box-shadow: 0 28px 54px rgba(0,0,0,.45); text-align: left; }
.card__cord { position: absolute; z-index: -1; left: 40px; top: -24px; width: 44px; height: 44px; border: 2.5px solid var(--gold); border-radius: 50%; }
.card__t { margin: 0 0 8px; text-align: center; font-family: var(--f-display); font-style: italic; font-size: 1.15rem; color: var(--burgundy); }
.card__list { list-style: none; margin: 0; padding: 0; }
.card__list li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: start; padding: 16px 0 16px; }
.card__list li + li { border-top: 1px solid rgba(200,169,106,.5); }
.no { font-family: var(--f-display); font-style: italic; font-size: 3.4rem; line-height: .95; color: var(--gold-art); text-align: center; }
.card__list time { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--burgundy); }
.card__list h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; line-height: 1.25; color: var(--midnight); }
.card__list p { margin: 0; font-size: .95rem; color: var(--ink-2); }
.card__pencil { position: absolute; left: 50%; bottom: 46px; width: 10px; height: 104px; margin-left: -5px; transform: rotate(90deg); filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }

/* dress code: ribbons on a brass rod */
.rod { position: relative; width: min(100%, 360px); height: 9px; margin: 34px auto 0; border-radius: 5px; background: var(--foil); box-shadow: 0 3px 6px rgba(20,33,61,.3); }
.rod::before, .rod::after { content: ""; position: absolute; top: -4px; width: 17px; height: 17px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #F1DFA8, #8A6D2F); box-shadow: 0 2px 3px rgba(0,0,0,.3); }
.rod::before { left: -9px; } .rod::after { right: -9px; }
.ribbons { list-style: none; margin: 0 auto 34px; padding: 0 4px; display: flex; justify-content: center; gap: 9px; max-width: 360px; }
.ribbons li { width: 56px; text-align: center; transform-origin: 50% 0; animation: hang 6s ease-in-out infinite alternate; }
.ribbons li:nth-child(2) { animation-delay: -1.2s; } .ribbons li:nth-child(3) { animation-delay: -2.4s; } .ribbons li:nth-child(4) { animation-delay: -3.3s; } .ribbons li:nth-child(5) { animation-delay: -4.5s; }
@keyframes hang { from { transform: rotate(-1.4deg); } to { transform: rotate(1.4deg); } }
.ribbons span { display: block; height: 146px; background: linear-gradient(90deg, rgba(0,0,0,.2), rgba(255,255,255,.3) 38%, rgba(255,255,255,0) 60%, rgba(0,0,0,.16)), var(--c); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 88%, 0 100%); }
.ribbons li { filter: drop-shadow(0 8px 6px rgba(20,33,61,.22)); }
.ribbons b { display: block; margin-top: 12px; font-size: .58rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); line-height: 1.35; }

/* stay: visiting cards */
.hotels { display: grid; gap: 18px; max-width: 460px; margin: 32px auto 0; text-align: left; }
.hotel { position: relative; padding: 26px 24px 24px; background: var(--card); border: 1px solid var(--gold); outline: 1px solid rgba(200,169,106,.5); outline-offset: -7px; box-shadow: 0 16px 30px rgba(20,33,61,.12); }
.hotel__no { position: absolute; right: 22px; top: 12px; font-family: var(--f-display); font-style: italic; font-size: 3.2rem; line-height: 1; color: rgba(176,138,62,.55); }
.hotel__tag { margin: 0 0 6px; font-size: .64rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--burgundy); max-width: 78%; }
.hotel h3 { margin: 0 0 8px; font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; line-height: 1.2; color: var(--midnight); }
.hotel p:last-child { margin: 0; font-size: .95rem; color: var(--ink-2); }

/* getting there: line 9 */
.line { max-width: 460px; margin: 30px auto 0; padding: 30px 24px 14px; text-align: left; border: 1px solid rgba(176,138,62,.6); background: rgba(255,255,255,.6); box-shadow: 0 18px 36px rgba(20,33,61,.1); }
.line__badge { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; }
.line__badge span { order: -1; font-size: .7rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--burgundy); }
.line__badge b { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--foil); color: var(--midnight); font-family: var(--f-ui); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.stops { list-style: none; margin: 0; padding: 0; }
.stops li { position: relative; padding: 0 0 26px 46px; }
.stops li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--mist); border: 4px solid var(--gold-art); z-index: 1; }
.stops li::after { content: ""; position: absolute; left: 9px; top: 25px; bottom: -3px; width: 4px; background: var(--gold-art); }
.stops li:last-child { padding-bottom: 12px; }
.stops li:last-child::after { display: none; }
.stops .stop--key::before { left: -3px; top: 1px; width: 28px; height: 28px; background: var(--card); }
.stops .stop--end::before { left: -3px; top: 1px; width: 28px; height: 28px; background: var(--burgundy); }
.stops h3 { margin: 0 0 2px; font-family: var(--f-display); font-weight: 400; font-size: 1.4rem; line-height: 1.25; color: var(--midnight); }
.stops p { margin: 0; font-size: .95rem; color: var(--ink-2); }
.stops strong { color: var(--burgundy); font-weight: 600; }
.stop__ico { display: inline-block; vertical-align: -3px; width: 14px; height: 28px; margin-left: 6px; fill: var(--gold-art); }
.routes { display: grid; gap: 16px; max-width: 460px; margin: 18px auto 0; }
.route { padding: 26px 24px 24px; background: rgba(255,255,255,.55); border: 1px solid rgba(176,138,62,.5); }
.route svg { width: 34px; height: 34px; margin: 0 auto 10px; fill: none; stroke: var(--gold-d); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.route h3 { margin: 0 0 6px; font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; color: var(--midnight); }
.route p { margin: 0; font-size: .95rem; color: var(--ink-2); }

/* rsvp */
.rsvp { margin: 30px auto 0; max-width: 460px; text-align: left; padding: 40px 24px 26px; background: var(--card); border: 1px solid var(--gold); outline: 1px solid rgba(200,169,106,.5); outline-offset: -9px; box-shadow: 0 24px 46px rgba(20,33,61,.16); position: relative; }
.rsvp::before { content: ""; position: absolute; left: 50%; top: -14px; width: 22px; height: 26px; margin-left: -11px; padding: 0; background: var(--card); }
.rsvp::after { content: ""; position: absolute; left: 50%; top: -14px; width: 22px; height: 26px; margin-left: -11px; background: var(--gold-art); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 48'><path d='M20 1.5c4.4 4.8 6.2 11.2 3.6 18.2L20 28.6l-3.6-8.9C13.8 12.7 15.6 6.3 20 1.5Z'/><path d='M17.2 24.5C11.6 14.6 5.2 12.6 2.4 16.8c-2.6 3.9.4 10.2 7.6 11.4 3.2.5 5.6-.4 7.4-2.4-3.1.9-5.9.4-7.1-1.5-1.3-2.1.5-4.4 3.3-3.7 2.2.6 3.3 2.4 3.6 4.6Z'/><path d='M22.8 24.5c5.6-9.9 12-11.9 14.8-7.7 2.6 3.9-.4 10.2-7.6 11.4-3.2.5-5.6-.4-7.4-2.4 3.1.9 5.9.4 7.1-1.5 1.3-2.1-.5-4.4-3.3-3.7-2.2.6-3.3 2.4-3.6 4.6Z'/><rect x='12.6' y='29.6' width='14.8' height='3.1' rx='1.2'/><path d='M20 33.6c3.4 2.6 4.4 7.6 0 13.4-4.4-5.8-3.4-10.8 0-13.4Z'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 48'><path d='M20 1.5c4.4 4.8 6.2 11.2 3.6 18.2L20 28.6l-3.6-8.9C13.8 12.7 15.6 6.3 20 1.5Z'/><path d='M17.2 24.5C11.6 14.6 5.2 12.6 2.4 16.8c-2.6 3.9.4 10.2 7.6 11.4 3.2.5 5.6-.4 7.4-2.4-3.1.9-5.9.4-7.1-1.5-1.3-2.1.5-4.4 3.3-3.7 2.2.6 3.3 2.4 3.6 4.6Z'/><path d='M22.8 24.5c5.6-9.9 12-11.9 14.8-7.7 2.6 3.9-.4 10.2-7.6 11.4-3.2.5-5.6-.4-7.4-2.4 3.1.9 5.9.4 7.1-1.5 1.3-2.1-.5-4.4-3.3-3.7-2.2.6-3.3 2.4-3.6 4.6Z'/><rect x='12.6' y='29.6' width='14.8' height='3.1' rx='1.2'/><path d='M20 33.6c3.4 2.6 4.4 7.6 0 13.4-4.4-5.8-3.4-10.8 0-13.4Z'/></svg>") center / contain no-repeat; }
.field { display: block; margin-bottom: 18px; }
.field span { display: block; margin-bottom: 6px; font-size: .66rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.field em { font-style: normal; text-transform: none; letter-spacing: .03em; font-weight: 500; }
.field input, .field select { width: 100%; min-height: 52px; padding: 10px 14px; font: inherit; font-size: 1rem; font-weight: 500; color: var(--ink); background: #FFFFFF; border: 1px solid #CDBF9F; border-radius: 2px; appearance: none; -webkit-appearance: none; transition: border-color .25s ease, box-shadow .25s ease; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--burgundy) 50%), linear-gradient(135deg, var(--burgundy) 50%, transparent 50%); background-position: calc(100% - 20px) 23px, calc(100% - 15px) 23px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field input::placeholder { color: #6C6A72; font-weight: 400; }
.field input:focus, .field select:focus { outline: none; border-color: var(--burgundy); box-shadow: 0 0 0 3px rgba(110,31,46,.2); }
.form-error { margin: -4px 0 14px; font-size: .9rem; font-weight: 600; color: #A12238; }
.rsvp__btns { display: grid; gap: 12px; margin-top: 8px; }
.rsvp__btns .btn { width: 100%; padding: 0 14px; }
.rsvp__via { margin: 14px 0 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 4px; text-align: center; font-size: .88rem; color: var(--ink-2); }
.rsvp__via .link { min-height: 48px; padding: 0 6px; font-size: inherit; }
.rsvp__via .link[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
.contact { margin-top: 44px; }
.contact .eyebrow { margin-bottom: 6px; }
.phone { display: inline-block; font-family: var(--f-display); font-variation-settings: 'opsz' 8; font-size: 2rem; font-weight: 500; letter-spacing: .02em; color: var(--burgundy); text-decoration: none; padding: 6px; }
.phone:hover { color: var(--midnight); }
.contact__who { margin: 2px 0 0; font-size: .92rem; color: var(--ink-2); }

/* footer */
.foot { padding: 84px var(--pad) 60px; text-align: center; background: radial-gradient(80% 60% at 50% 0, rgba(200,169,106,.18), transparent 70%), linear-gradient(180deg, #1F3263, #14213D); color: var(--ivory); }
.foot__tower { width: 24px; height: 48px; margin: 0 auto 14px; fill: var(--gold); }
.foot .script { color: var(--gold-l); font-size: 3rem; margin-bottom: 0; }
.foot__names { margin: 0 0 10px; font-family: var(--f-display); font-weight: 400; font-size: 2.3rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; }
.foot__names i { font-family: var(--f-script); text-transform: none; font-size: 1.5em; color: var(--gold); padding: 0 .06em; line-height: 0; }
.foot__num { margin: 0 0 4px; font-size: .78rem; font-weight: 600; letter-spacing: .32em; color: var(--gold-l); padding-left: .32em; }
.foot__tag { margin: 0 0 28px; font-size: .78rem; font-weight: 600; letter-spacing: .28em; color: rgba(246,241,231,.78); padding-left: .28em; }
.foot__top { display: inline-flex; align-items: center; min-height: 48px; font-size: .7rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: rgba(246,241,231,.88); text-decoration: none; border-bottom: 1px solid var(--gold); padding: 0 0 2px; }
.foot__top:hover { color: #fff; }
.foot :focus-visible { outline-color: var(--gold-l); }

/* 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 38px; }

  .env__seal { width: 200px; }
  .env__pulse { width: 156px; height: 156px; margin: -78px 0 0 -78px; }
  .env__card { left: 31%; right: 31%; top: 8%; bottom: 8%; }
  .env__card-mono { font-size: 6.4rem; }
  .env__card-tower { width: 26px; height: 52px; }
  .env__top { font-size: 2.3rem; top: 9%; }
  .env__hint { font-size: .84rem; top: 66%; }
  .env__to { font-size: 3.6rem; top: 80%; }
  .env__piece::before, .env__flap-front::before { inset: 20px; padding: 2px; }

  .hero { padding: 290px 40px 240px; }
  .hero__garland { width: 90%; top: -1%; }
  .hero__tower { top: 262px; width: 340px; }
  .hero__cage { --drop: 108px; width: clamp(96px, 7.4vw, 118px); }
  .hero__table { width: clamp(440px, 36vw, 560px); bottom: -10px; }
  .hero__body { max-width: 1100px; }
  .names { font-size: clamp(3.2rem, 5vw, 5.4rem); display: flex; justify-content: center; align-items: center; gap: .42em; white-space: nowrap; letter-spacing: .08em; }
  .names__amp { font-size: 1.55em; height: auto; line-height: .5; gap: 0; margin: 0; }
  .names__amp::before, .names__amp::after { display: none; }
  .hero__eyebrow { font-size: .84rem; margin-bottom: 30px; }
  .hero__date { margin-top: 24px; font-size: 1.3rem; }
  .hero__place { font-size: .8rem; }

  .sec { padding: 136px var(--pad) 104px; }
  .sec > .split { max-width: 1040px; margin-left: auto; margin-right: auto; }
  .script { font-size: 4.6rem; }
  .h2 { font-size: 3.1rem; }
  .lead { font-size: 4.2rem; max-width: 12em; }
  .lead span { font-size: 1.15rem; max-width: 30em; }
  .body { font-size: 1.08rem; }
  .edge::before, .edge::after { height: 26px; background-size: 58px 26px; }
  .edge::before { -webkit-mask-size: 58px 26px; mask-size: 58px 26px; }

  .split { grid-template-columns: 1fr 1fr; align-items: center; gap: 88px; text-align: left; margin-top: 30px; }
  .split .cal { margin: 0 0 0 auto; width: min(100%, 400px); }
  .split .cal__g { font-size: 1.02rem; padding: 12px 26px 30px; }
  .split .cal__m { font-size: 2.3rem; padding: 28px 10px 16px; }
  .split .body { margin-left: 0; }
  .split .count { margin-left: 0; margin-right: auto; max-width: 440px; }
  .split .actions { justify-items: start; }
  .split--venue .gilt { margin: 56px 0 36px auto; width: min(100%, 360px); }
  .split--venue .split__text .h2 { font-size: 3.6rem; }
  .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.7rem; padding-left: 0; }
  .sec--venue .eyebrow, .sec--date .eyebrow, .sec--date .h2 { text-align: center; }

  .card { max-width: 900px; padding: 44px 56px 108px; }
  .card__list { display: grid; grid-auto-flow: column; grid-template-rows: repeat(3, auto); grid-template-columns: 1fr 1fr; column-gap: 64px; }
  .card__list li { grid-template-columns: 68px 1fr; gap: 18px; padding: 22px 0; }
  .card__list li:nth-child(3n+1) { border-top: 0; }
  .no { font-size: 4.2rem; }
  .card__list h3 { font-size: 1.8rem; }
  .card__list p { font-size: 1rem; }
  .rod { width: 520px; margin-top: 40px; }
  .ribbons { max-width: 520px; gap: 16px; }
  .ribbons li { width: 76px; }
  .ribbons span { height: 190px; }
  .ribbons b { font-size: .68rem; letter-spacing: .1em; }
  .hotels { grid-template-columns: repeat(3, 1fr); max-width: 1040px; gap: 22px; }
  .line { max-width: 1000px; padding: 36px 40px 40px; }
  .line__badge { justify-content: flex-start; }
  .stops { display: grid; grid-template-columns: repeat(4, 1fr); }
  .stops li { padding: 48px 20px 0 0; }
  .stops li::before { top: 0; }
  .stops li::after { left: 22px; right: 0; top: 9px; bottom: auto; width: auto; height: 4px; }
  .stops li:last-child { padding-bottom: 0; }
  .stops .stop--key::before, .stops .stop--end::before { top: -3px; }
  .routes { grid-template-columns: 1fr 1fr; max-width: 1000px; gap: 24px; }
  .count b { font-size: 2.6rem; }
  .foot { padding: 110px var(--pad) 80px; }
  .foot__names { font-size: 3.6rem; }
}

@media (min-width: 900px) and (max-height: 800px) {
  .hero { padding-top: 290px; padding-bottom: 240px; }
}

/* very small phones */
@media (max-width: 359px) {
  :root { --pad: 18px; }
  .btn { padding: 0 18px; letter-spacing: .12em; }
  .ribbons li { width: 48px; }
  .ribbons { gap: 6px; }
}

@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__table, .opened .hero__cage, .opened .hero__eyebrow, .opened .names__a i, .opened .names__amp, .opened .hero__date, .opened .hero__place { opacity: 1; }
  .opened .hero__garland, .opened .hero__table, .opened .hero__cage { transform: translateX(-50%); }
  .opened .hero__tower { opacity: .5; transform: translateX(-50%); }
}
