:root {
  --porcelain: #eee8de;
  --cashmere: #c9b9a5;
  --cognac: #8a6044;
  --chocolate: #332620;
  --gold: #a88958;
  --charcoal: #1d1a18;
  --serif: "Bodoni 72", Didot, "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--charcoal); }
body { margin: 0; color: var(--charcoal); background: var(--porcelain); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--charcoal); animation: intro-away .9s 2.15s cubic-bezier(.7,0,.2,1) forwards; }
.intro__line { position: absolute; top: 50%; left: 50%; width: 1px; height: 0; background: var(--gold); animation: line-open 1.45s .15s cubic-bezier(.7,0,.2,1) forwards; }
.intro__mark { color: var(--porcelain); font: 400 13px/1 var(--sans); letter-spacing: .45em; opacity: 0; animation: mark-in .7s .65s ease forwards; }
@keyframes line-open { 45% { height: 24vh; transform: translateY(-12vh); } 100% { width: 100vw; height: 1px; left: 0; transform: none; } }
@keyframes mark-in { to { opacity: 1; } }
@keyframes intro-away { to { opacity: 0; visibility: hidden; transform: scaleY(0); } }

.hero { position: relative; height: 100svh; min-height: 680px; overflow: hidden; color: var(--porcelain); background: var(--charcoal); }
.hero__image { position: absolute; inset: -3%; background: url("/wedding-demo/assets/wedding-demo/quiet-luxury/manor-hero.png") center/cover; animation: hero-breathe 14s ease-out both; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,14,.32), rgba(20,16,14,.04) 45%, rgba(20,16,14,.68)); }
@keyframes hero-breathe { from { transform: scale(1.055); } to { transform: scale(1); } }
.nav { position: absolute; z-index: 2; top: 0; left: 0; width: 100%; display: flex; justify-content: space-between; padding: 32px 4vw; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
.monogram { font-family: var(--serif); font-size: 18px; letter-spacing: .28em; }
.hero__content { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-top: 8vh; }
.eyebrow { margin: 0 0 28px; font-size: 10px; line-height: 1.4; letter-spacing: .35em; text-transform: uppercase; }
.hero h1 { display: flex; flex-direction: column; margin: 0; font: 400 clamp(58px, 9vw, 145px)/.72 var(--serif); letter-spacing: -.055em; }
.hero h1 span:first-child { transform: translateX(-.25em); }
.hero h1 span:last-child { transform: translateX(.25em); }
.hero h1 i { margin: .22em 0 .12em; color: var(--gold); font-size: .38em; font-weight: 400; }
.hero__date { margin: 42px 0 0; font: 400 13px/1 var(--sans); letter-spacing: .32em; }
.hero__date b { padding: 0 .5em; font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: lowercase; }
.scroll-cue { position: absolute; z-index: 2; bottom: 28px; left: 50%; display: grid; gap: 9px; place-items: center; transform: translateX(-50%); font-size: 9px; letter-spacing: .25em; text-transform: uppercase; }
.scroll-cue span { width: 1px; height: 35px; background: linear-gradient(var(--gold) 50%, rgba(255,255,255,.22) 50%); background-size: 100% 200%; animation: scroll-line 1.8s infinite; }
@keyframes scroll-line { from { background-position: 0 100%; } to { background-position: 0 -100%; } }

.journey { height: 500vh; background: var(--charcoal); }
.journey__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; color: var(--porcelain); }
.journey__frames, .journey__frame, .journey__veil { position: absolute; inset: 0; width: 100%; height: 100%; }
.journey__frame { object-fit: cover; opacity: 0; transform: scale(1.018); transition: opacity 1.05s cubic-bezier(.22,1,.36,1), transform 1.65s cubic-bezier(.22,1,.36,1); }
.journey__frame.is-active { opacity: 1; transform: scale(1); }
.journey__veil { background: linear-gradient(90deg, rgba(20,15,13,.55), transparent 35%, transparent 65%, rgba(20,15,13,.35)), linear-gradient(0deg, rgba(20,15,13,.62), transparent 55%); }
.journey__copy { position: absolute; z-index: 3; left: 7vw; bottom: 12vh; width: min(580px, 80vw); }
.journey__line { position: absolute; bottom: 0; margin: 0; opacity: 0; transform: translateY(20px); font: 400 clamp(33px, 4.3vw, 72px)/1.02 var(--serif); letter-spacing: -.035em; transition: opacity .9s ease, transform 1s cubic-bezier(.22,1,.36,1); }
.journey__line.is-active { opacity: 1; transform: translateY(0); }
.journey__line--date { color: var(--gold); font-size: clamp(38px, 5vw, 78px); letter-spacing: .1em; }
.journey__progress { position: absolute; z-index: 4; right: 3vw; top: 15vh; width: 1px; height: 70vh; background: rgba(255,255,255,.25); }
.journey__progress span { display: block; width: 1px; height: 0; background: var(--gold); }

.story { padding: 10vw 9vw 12vw; background: var(--porcelain); }
.story .eyebrow { color: var(--cognac); }
.story h2 { margin: 0; font: 400 clamp(62px, 10vw, 150px)/.82 var(--serif); letter-spacing: -.06em; }
.story h2 em { color: var(--cognac); font-weight: 400; }
.story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; width: min(850px, 70vw); margin: 6vw 0 0 auto; font: 300 16px/1.85 var(--sans); }
.story__grid p { margin: 0; }

.countdown { position: relative; min-height: 72svh; display: grid; place-items: center; overflow: hidden; color: var(--porcelain); background: var(--chocolate); }
.countdown__photo { position: absolute; inset: 0; opacity: .33; background: url("/wedding-demo/assets/wedding-demo/quiet-luxury/stationery.png") center/cover; filter: saturate(.65); }
.countdown__photo::after { content: ""; position: absolute; inset: 0; background: rgba(29,22,19,.58); }
.countdown__content { position: relative; z-index: 2; width: min(1100px, 88vw); text-align: center; }
.timer { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 70px; background: rgba(238,232,222,.28); }
.timer div { display: grid; gap: 14px; padding: 35px 12px; background: rgba(40,29,24,.42); backdrop-filter: blur(10px); }
.timer strong { font: 400 clamp(42px, 7vw, 105px)/1 var(--serif); font-variant-numeric: tabular-nums; }
.timer span { font-size: 9px; letter-spacing: .28em; text-transform: uppercase; }

.wishes { padding: 11vw 8vw; color: var(--porcelain); background: var(--chocolate); }
.wishes__heading { display: grid; grid-template-columns: 1fr 2fr; gap: 6vw; align-items: start; }
.wishes__heading .eyebrow { color: var(--gold); }
.wishes h2 { margin: 0; font: 400 clamp(50px, 7vw, 105px)/.93 var(--serif); letter-spacing: -.045em; }
.wishes h2 em { color: var(--cashmere); font-weight: 400; }
.wishes__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 9vw 0 0 30%; background: rgba(238,232,222,.2); }
.wishes article { position: relative; padding: clamp(30px, 5vw, 70px); background: var(--chocolate); }
.wishes article > span { color: var(--gold); font: italic 20px/1 var(--serif); }
.wishes h3 { margin: 55px 0 20px; font: 400 clamp(30px, 3vw, 45px)/1 var(--serif); }
.wishes article p { margin: 0; color: var(--cashmere); font-size: 14px; line-height: 1.8; }

.notes { display: grid; grid-template-columns: .8fr 1.2fr; gap: 10vw; padding: 10vw 8vw; background: var(--porcelain); }
.notes__intro { position: sticky; top: 10vh; align-self: start; }
.notes__intro .eyebrow { color: var(--cognac); }
.notes h2 { margin: 0; font: 400 clamp(48px, 6vw, 88px)/.93 var(--serif); letter-spacing: -.045em; }
.notes h2 em { color: var(--cognac); font-weight: 400; }
.hashtag { margin: 65px 0 0; color: var(--gold); font: italic 30px/1 var(--serif); }
.notes__list { border-top: 1px solid rgba(51,38,32,.26); }
.notes details { border-bottom: 1px solid rgba(51,38,32,.26); }
.notes summary { display: grid; grid-template-columns: 45px 1fr; align-items: center; padding: 28px 5px; cursor: pointer; list-style: none; font: 400 clamp(23px, 2.4vw, 34px)/1 var(--serif); }
.notes summary::-webkit-details-marker { display: none; }
.notes summary::after { content: "+"; grid-column: 3; color: var(--cognac); font: 300 24px/1 var(--sans); transition: transform .3s; }
.notes details[open] summary::after { transform: rotate(45deg); }
.notes summary span { color: var(--gold); font: italic 14px/1 var(--serif); }
.notes details p { max-width: 580px; margin: -3px 30px 30px 50px; color: #63554d; font-size: 14px; line-height: 1.75; }
.notes details strong { color: var(--cognac); font-weight: 500; }
.arrival-info { margin: 0 5px 32px 50px; }
.arrival-info > p { margin: -3px 0 25px; }
.arrival-info address { padding: 20px 0 0; color: var(--chocolate); font: 400 15px/1.65 var(--sans); font-style: normal; }
.arrival-info address span { display: block; margin-bottom: 7px; color: var(--cognac); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; }
.mini-map { position: relative; height: 220px; overflow: hidden; border: 1px solid rgba(51,38,32,.18); background: #d9cdbd; }
.mini-map::before, .mini-map::after { content: ""; position: absolute; border: 1px solid rgba(107,89,76,.17); border-radius: 50%; }
.mini-map::before { width: 160px; height: 160px; left: -45px; top: -45px; box-shadow: 185px 85px 0 22px rgba(238,232,222,.2), 390px -70px 0 42px rgba(238,232,222,.16); }
.mini-map::after { width: 80px; height: 80px; right: 8%; bottom: -25px; box-shadow: -170px -110px 0 35px rgba(130,107,88,.08); }
.mini-map__road { position: absolute; z-index: 2; height: 2px; background: rgba(238,232,222,.88); transform-origin: left center; }
.mini-map__road--one { width: 125%; left: -8%; top: 58%; transform: rotate(-8deg); }
.mini-map__road--two { width: 78%; left: 24%; top: 8%; transform: rotate(63deg); }
.mini-map__road--three { width: 68%; left: 4%; top: 25%; transform: rotate(30deg); }
.mini-map__water { position: absolute; right: -8%; top: -18%; width: 33%; height: 150%; border-left: 1px solid rgba(138,96,68,.33); border-radius: 50%; background: rgba(238,232,222,.26); transform: rotate(8deg); }
.mini-map__pin { position: absolute; z-index: 4; left: 58%; top: 43%; width: 32px; height: 32px; border: 1px solid var(--chocolate); border-radius: 50% 50% 50% 0; background: var(--gold); transform: rotate(-45deg); box-shadow: 0 8px 18px rgba(51,38,32,.2); }
.mini-map__pin i { position: absolute; left: 9px; top: 9px; width: 11px; height: 11px; border-radius: 50%; background: var(--porcelain); }
.mini-map small { position: absolute; z-index: 5; left: calc(58% + 30px); top: calc(43% + 4px); padding: 7px 10px; color: var(--porcelain); background: var(--chocolate); font-size: 9px; letter-spacing: .08em; white-space: nowrap; }
.dress-palette { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; margin: 0 30px 35px 50px; }
.dress-palette div { display: grid; gap: 10px; justify-items: center; text-align: center; }
.dress-palette span { color: #6b5a50; font-size: 9px; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; }
.swatch { display: block; width: clamp(42px, 5vw, 66px); aspect-ratio: 1; border: 1px solid rgba(51,38,32,.18); border-radius: 50%; box-shadow: inset 0 0 0 5px rgba(238,232,222,.13), 0 8px 18px rgba(51,38,32,.08); }
.swatch--cashmere { background: repeating-linear-gradient(35deg, #c9b9a5 0 2px, #d4c6b5 2px 4px); }
.swatch--cognac { background: radial-gradient(circle at 35% 30%, #a77a5a, #754a32); }
.swatch--chocolate { background: linear-gradient(135deg, #4b3830, #2e211c); }
.swatch--gold { background: repeating-linear-gradient(110deg, #b59a69 0 3px, #9c8053 3px 5px); }
.swatch--charcoal { background: radial-gradient(circle at 35% 30%, #38322f, #171413); }

.closing { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; padding: 10vw 7vw; color: var(--porcelain); background: var(--charcoal); }
.closing__image { position: absolute; inset: 0; opacity: .6; background: url("/wedding-demo/assets/wedding-demo/quiet-luxury/evening-terrace.png") center/cover; }
.closing__image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,15,13,.88), rgba(18,15,13,.48)), linear-gradient(rgba(18,15,13,.1), rgba(18,15,13,.72)); }
.closing__content { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr minmax(340px, .72fr); gap: 10vw; align-items: center; width: min(1200px, 100%); }
.closing__intro > p { font-size: 10px; letter-spacing: .32em; text-transform: uppercase; }
.closing h2 { margin: 25px 0 55px; font: 400 clamp(65px, 8vw, 125px)/.82 var(--serif); letter-spacing: -.045em; }
.organizer-link { display: inline-flex; flex-direction: column; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--gold); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.organizer-link span { color: var(--cashmere); font-size: 13px; letter-spacing: .12em; }
.organizer-actions { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.telegram-button { display: inline-flex; gap: 10px; align-items: center; padding: 14px 20px; color: var(--charcoal); border: 1px solid var(--gold); border-radius: 100px; background: var(--gold); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; transition: transform .3s, background .3s, color .3s; }
.telegram-button svg { width: 18px; fill: currentColor; }
.telegram-button:hover { color: var(--porcelain); background: transparent; transform: translateY(-2px); }
.rsvp-form { padding: clamp(28px, 4vw, 55px); border: 1px solid rgba(201,185,165,.45); background: rgba(29,26,24,.68); backdrop-filter: blur(16px); }
.rsvp-form label { display: block; margin-bottom: 35px; }
.rsvp-form label span { display: block; margin-bottom: 12px; color: var(--cashmere); font-size: 9px; letter-spacing: .22em; text-transform: uppercase; }
.rsvp-form input { width: 100%; padding: 10px 0 14px; color: var(--porcelain); border: 0; border-bottom: 1px solid rgba(238,232,222,.42); border-radius: 0; outline: 0; background: transparent; font: 400 16px/1.4 var(--sans); transition: border-color .3s; }
.rsvp-form input::placeholder { color: rgba(238,232,222,.42); }
.rsvp-form input:focus { border-color: var(--gold); }
.rsvp-form button { width: 100%; padding: 17px 25px; color: var(--porcelain); border: 1px solid var(--gold); border-radius: 100px; background: rgba(29,26,24,.15); cursor: pointer; letter-spacing: .14em; text-transform: uppercase; transition: color .35s, background .35s, transform .35s; }
.rsvp-form button:hover { color: var(--charcoal); background: var(--gold); transform: translateY(-3px); }
.rsvp-form small { display: block; margin-top: 18px; color: rgba(238,232,222,.55); font-size: 9px; line-height: 1.5; text-align: center; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: 25px; padding: 15px 22px; color: var(--porcelain); border: 1px solid rgba(168,137,88,.55); border-radius: 100px; background: rgba(29,26,24,.93); transform: translate(-50%, 150%); transition: transform .55s cubic-bezier(.22,1,.36,1); font-size: 12px; white-space: nowrap; }
.toast.is-visible { transform: translate(-50%, 0); }
.demo-footer { display:flex; justify-content:space-between; gap:24px; padding:22px 30px; color:var(--cashmere); background:var(--charcoal); border-top:1px solid rgba(201,185,165,.22); font-size:9px; letter-spacing:.13em; text-transform:uppercase; }
.demo-footer a { color:var(--gold); }

@media (max-width: 700px) {
  .nav { padding: 24px 20px; }
  .nav a:last-child { display: none; }
  .hero { min-height: 620px; }
  .hero h1 { font-size: clamp(54px, 18vw, 88px); line-height: .82; }
  .hero__date { margin-top: 34px; font-size: 10px; }
  .journey { height: 575vh; }
  .journey__frame { object-position: center; }
  .journey__copy { left: 24px; bottom: 9vh; width: calc(100vw - 70px); }
  .journey__progress { right: 18px; }
  .story { padding: 120px 24px; }
  .story h2 { font-size: 18vw; }
  .story__grid { grid-template-columns: 1fr; width: 100%; margin-top: 75px; gap: 28px; }
  .timer { grid-template-columns: repeat(2, 1fr); margin-top: 45px; }
  .wishes { padding: 95px 24px; }
  .wishes__heading, .wishes__cards { grid-template-columns: 1fr; }
  .wishes__cards { margin: 65px 0 0; }
  .wishes h2 { margin-top: 25px; }
  .notes { grid-template-columns: 1fr; gap: 65px; padding: 90px 24px; }
  .notes__intro { position: static; }
  .hashtag { margin-top: 35px; }
  .notes summary { padding: 24px 2px; }
  .arrival-info { margin-left: 0; }
  .mini-map { height: 190px; }
  .dress-palette { grid-template-columns: repeat(5, minmax(48px, 1fr)); gap: 8px; margin: 0 0 32px; overflow-x: auto; }
  .dress-palette span { font-size: 8px; }
  .closing { padding: 90px 20px; }
  .closing__content { grid-template-columns: 1fr; gap: 65px; }
  .closing h2 { font-size: 19vw; }
  .toast { max-width: calc(100vw - 32px); white-space: normal; text-align: center; }
  .demo-footer { padding:20px; flex-direction:column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .intro { display: none; }
}
