/* =====================================================================
   CHARMZ & IVY — STYLES
   Layout: an Italian stationery suite, with paper panels on silk,
   stone arches and wisteria. Single light "invitation" look on purpose.
   To change a colour everywhere, change it once here in :root.
   ===================================================================== */
:root {
  --silk: #F6F1E8;          /* Silk Ivory — page background */
  --paper: #FBF8F2;         /* lighter paper panels */
  --champagne: #E6D5B8;     /* Champagne */
  --champagne-deep: #B99B6B;
  --stone: #A79E92;         /* Stone */
  --stone-deep: #6F675D;
  --wisteria: #A898CC;      /* Lavender / wisteria accent */
  --wisteria-deep: #7E6DAA;
  --wisteria-mist: #EEE9F5;
  --lotus: #F2DAD5;        /* Lotus blush, a nod to Vietnam */
  --lotus-deep: #C48F88;
  --leaf: #3E5B35;          /* the green of the logo leaves */
  --ink: #3B3732;
  --ink-soft: #5F5850;
  --line: rgba(111, 103, 93, .22);

  --f-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --f-script: "Pinyon Script", "Snell Roundhand", "Apple Chancery", cursive;
  --f-hand: "Mrs Saint Delafield", "Pinyon Script", cursive;

  --radius: 4px;
  --shadow-paper: 0 1px 2px rgba(80, 66, 45, .06), 0 12px 30px -12px rgba(80, 66, 45, .22);
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--silk);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--wisteria-deep); outline-offset: 3px; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; margin: 0; }
p { margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  border: 1px solid transparent; border-radius: 2px;
  padding: .85em 1.9em; font-size: .78rem; letter-spacing: .26em; text-transform: uppercase;
  font-family: var(--f-display); font-weight: 600;
  transition: background .3s var(--ease), color .3s var(--ease), transform .2s var(--ease), border-color .3s;
}
.btn:active { transform: translateY(1px); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--wisteria-deep); }
.btn--glass { background: rgba(251, 248, 242, .14); color: #fff; border-color: rgba(255, 255, 255, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--glass:hover { background: rgba(251, 248, 242, .9); color: var(--ink); }

/* ---------- full screen layers ---------- */
.screen { position: fixed; inset: 0; z-index: 20; overflow: hidden; }

/* 1. gate */
.gate { background: #2b3b45; }
.gate__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gate__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 28, 34, 0) 45%, rgba(20, 28, 34, .55) 100%); pointer-events: none; }
.gate__ui {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) calc(2.5vh + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.gate__enter { opacity: 0; animation: rise 1.4s var(--ease) 2.2s forwards; }
.pass {
  width: min(440px, 100%); background: rgba(251, 248, 242, .94); color: var(--ink);
  padding: 28px 26px 24px; text-align: center; box-shadow: var(--shadow-paper);
  border: 1px solid rgba(185, 155, 107, .4); outline: 1px solid rgba(255, 255, 255, .6); outline-offset: -7px;
  animation: rise .8s var(--ease) both;
}
.pass__eyebrow { font-family: var(--f-script); font-size: 2rem; line-height: 1.1; color: var(--wisteria-deep); }
.pass__label { display: block; font-size: 1rem; color: var(--ink-soft); margin: 6px 0 16px; }
.pass__row { display: flex; gap: 8px; flex-wrap: wrap; }
.pass__input {
  flex: 1 1 160px; min-width: 0; font: inherit; font-size: 1.05rem; letter-spacing: .08em;
  padding: .7em .9em; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 2px;
}
.pass__input:focus { outline: none; border-color: var(--wisteria); box-shadow: 0 0 0 3px var(--wisteria-mist); }
.pass__row .btn { flex: 0 0 auto; }
.pass__error { margin-top: 12px; font-size: .95rem; color: #8a4b4b; }
.pass.shake { animation: shake .45s; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }

/* 2. booklet — ivory card, champagne-foil logo, lavender silk bow, soft Italian light */
.booklet-screen {
  background: #EFE6D8;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  padding: env(safe-area-inset-top, 0px) 16px env(safe-area-inset-bottom, 0px);
}
.italia { position: absolute; inset: 0; overflow: hidden; }
.italia img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: drift 40s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.12) translate(-1.5%, -1%); } }
.italia::after { /* golden afternoon light + ivory vignette */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(70% 55% at 72% 8%, rgba(255, 228, 178, .55), rgba(255, 228, 178, 0) 70%),
    radial-gradient(120% 90% at 50% 50%, rgba(250, 245, 236, 0) 0%, rgba(246, 240, 230, .35) 65%, rgba(240, 232, 218, .8) 100%);
}
.vines { position: absolute; top: 0; width: clamp(150px, 26vw, 340px); pointer-events: none; opacity: .92; }
.vines svg { width: 100%; height: auto; display: block; }
.vines--l { left: 0; } .vines--r { right: 0; transform: scaleX(-1); }
@media (max-width: 560px) { .vines { width: 118px; } }
.petals { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.paper-tex {
  background-color: #FBF8F1;
  background-image:
    linear-gradient(105deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 35%, rgba(232, 220, 198, .18) 70%, rgba(255, 255, 255, .35)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .48 0 0 0 0 .38 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.booklet-stage { perspective: 2000px; position: relative; z-index: 2; }
.booklet {
  --w: min(80vw, 410px, 52vh);
  width: var(--w); height: calc(var(--w) * 1.45);
  position: relative; transform-style: preserve-3d;
  transition: transform 2s var(--ease);
  filter: drop-shadow(0 28px 34px rgba(70, 55, 35, .22)) drop-shadow(0 4px 8px rgba(70, 55, 35, .12));
}
.booklet__inner {
  position: absolute; inset: 0; z-index: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4%;
  padding: 9% 10%;
}
.inner-arch { position: absolute; inset: 5.5%; border: 1px solid rgba(167, 158, 146, .6); border-radius: 999px 999px 4px 4px / 32% 32% 4px 4px; }
.inner-arch::after { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(185, 155, 107, .45); border-radius: inherit; }
.inner-logo { width: 62%; height: auto; position: relative; opacity: 0; transform: translateY(8px) scale(.98); transition: opacity 1.6s var(--ease) 1.3s, transform 1.6s var(--ease) 1.3s; }
.is-open .inner-logo { opacity: 1; transform: none; }
.booklet__welcome { position: relative; text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; opacity: 0; transition: opacity 1.2s var(--ease) 2.2s; }
.is-open .booklet__welcome { opacity: 1; }
.booklet__eyebrow { font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: var(--stone-deep); font-weight: 600; }
.booklet__place { font-style: italic; color: var(--ink-soft); font-size: .95rem; margin-bottom: 6px; }
.booklet__welcome .btn { font-size: .66rem; padding: .85em 1.7em; }

.door { position: absolute; z-index: 2; top: 0; bottom: 0; width: 50%; transform-style: preserve-3d; transition: transform 2.2s cubic-bezier(.6, .02, .2, 1); }
.door--left { left: 0; transform-origin: left center; }
.door--right { right: 0; transform-origin: right center; }
.door__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.door--left .door__front { box-shadow: inset -1px 0 0 rgba(150, 125, 85, .28), inset -14px 0 18px -14px rgba(110, 90, 60, .22); }
.door--right .door__front { box-shadow: inset 1px 0 0 rgba(150, 125, 85, .28), inset 14px 0 18px -14px rgba(110, 90, 60, .22); }
/* blind-embossed double border, split across both doors */
.emboss { position: absolute; top: 5%; bottom: 5%; border: 1px solid rgba(255, 255, 255, .9); box-shadow: inset 0 0 0 1px rgba(160, 140, 105, .28), 0 0 0 1px rgba(160, 140, 105, .18); }
.emboss::after { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(185, 155, 107, .35); }
.door--left .emboss { left: 10%; right: -2px; border-right: 0; } .door--left .emboss::after { right: -1px; border-right: 0; }
.door--right .emboss { right: 10%; left: -2px; border-left: 0; } .door--right .emboss::after { left: -1px; border-left: 0; }
/* champagne foil logo: a metallic gradient seen through the logo's shape */
.foil {
  position: absolute; top: 8%; width: 112%; aspect-ratio: 900 / 1213;
  background: linear-gradient(118deg, #A8834F 0%, #E9D3A2 22%, #C29A60 38%, #FFF0CC 50%, #BC955D 62%, #E7CFA0 80%, #A8834F 100%);
  background-size: 260% 100%; background-position: 0% 0;
  -webkit-mask: url("../assets/images/logo-mask.png") center / contain no-repeat;
          mask: url("../assets/images/logo-mask.png") center / contain no-repeat;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .8)) drop-shadow(0 -1px 0 rgba(120, 95, 55, .25));
  animation: shimmer 7s ease-in-out infinite alternate;
}
.door--left .foil { left: 44%; } .door--right .foil { left: -56%; }
@keyframes shimmer { to { background-position: 100% 0; } }
.door__back { transform: rotateY(180deg); background: linear-gradient(160deg, #F4EEF6, #E9E1EE 60%, #E3D8E8); display: grid; place-items: center; }
.door__back::after { content: ""; position: absolute; inset: 7%; border: 1px solid rgba(168, 152, 204, .45); }
.door__back svg { width: 54%; opacity: .9; }

/* rendered satin ribbon + bow. The frames are 840x540 and the card spans x 16-824 of them. */
.bow-layer { position: absolute; z-index: 5; left: -1.98%; width: 103.96%; aspect-ratio: 840 / 540; top: calc(var(--w) * .9019); pointer-events: none; }
.bow-layer canvas { width: 100%; height: 100%; display: block; }
.bow-hit { position: absolute; z-index: 6; left: 27%; width: 46%; top: calc(var(--w) * .93); height: calc(var(--w) * .46); background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; border-radius: 40%; }
.bow-hit:focus-visible { outline: 2px solid var(--wisteria-deep); outline-offset: 4px; }
.booklet-stage { --w: min(80vw, 410px, 52vh); }
.booklet-hint { position: relative; z-index: 2; font-style: italic; color: var(--ink-soft); letter-spacing: .06em; font-size: 1.05rem; animation: rise 1s var(--ease) .8s both; text-shadow: 0 1px 8px rgba(250, 245, 236, .9); }
.skip {
  position: absolute; z-index: 3; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .55); border: 1px solid var(--line); border-radius: 99px; padding: 4px 16px; font-size: .85rem; color: var(--stone-deep);
}

.booklet-screen.is-untying-screen .booklet-hint, .booklet-screen.is-untying-screen .skip { visibility: hidden; }

.is-open .door--left { transform: rotateY(-112deg); }
.is-open .door--right { transform: rotateY(112deg); }
.is-open.booklet { transform: scale(1.03); }

/* fade between screens */
.screen.fade-out { animation: fadeOut .9s var(--ease) forwards; }
@keyframes fadeOut { to { opacity: 0; visibility: hidden; } }
.site.fade-in { animation: fadeIn 1s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =====================================================================
   3. THE WEBSITE
   ===================================================================== */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: rgba(246, 241, 232, .96); }
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 12px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px));
  background: rgba(246, 241, 232, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__mono { display: block; line-height: 0; }
.topbar__mono img { height: 50px; width: auto; }
.nav { display: flex; gap: 4px 26px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none;
  padding: 6px 0; border-bottom: 1px solid transparent; transition: color .25s, border-color .25s; font-weight: 600;
}
.nav a:hover { color: var(--wisteria-deep); }
.nav a[aria-current="page"] { color: var(--ink); border-color: var(--wisteria); }
.menu-btn { display: none; width: 42px; height: 42px; background: none; border: 0; position: relative; }
.menu-btn span:not(.sr-only) { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--ink); transition: transform .3s var(--ease); }
.menu-btn span:nth-child(1) { top: 17px; } .menu-btn span:nth-child(2) { top: 25px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: center; gap: 0;
    background: rgba(250, 247, 241, .98); border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px; display: none;
  }
  .nav.is-open { display: flex; animation: rise .35s var(--ease); }
  .nav a { padding: 14px 0; font-size: .8rem; }
}

.view { outline: none; min-height: 70vh; }
.page { animation: fadeIn .7s var(--ease) both; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.section { padding-block: clamp(56px, 9vw, 104px); }
.eyebrow { font-size: .74rem; letter-spacing: .3em; text-transform: uppercase; color: var(--stone-deep); font-weight: 600; }
.script { font-family: var(--f-script); font-weight: 400; }
.page-title { text-align: center; display: grid; gap: 10px; justify-items: center; }
.page-title h1 { font-family: var(--f-script); font-weight: 400; font-size: clamp(3rem, 8vw, 5rem); line-height: 1.05; color: var(--ink); }
.page-title p { max-width: 36em; color: var(--ink-soft); font-size: 1.1rem; }
.divider { width: 200px; height: 40px; margin: 6px auto 0; }
.divider svg { width: 100%; height: 100%; }

/* home hero */
.hero { position: relative; min-height: min(86vh, 820px); display: grid; place-items: end center; overflow: hidden; color: #fff; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: slowzoom 24s ease-out both; }
@keyframes slowzoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 40, 50, .05) 30%, rgba(30, 40, 50, .45) 72%, var(--silk) 100%); }
.hero__text { position: relative; z-index: 1; text-align: center; padding: 0 20px 12vh; display: grid; gap: 6px; justify-items: center; }
.hero__eyebrow { font-size: .78rem; letter-spacing: .34em; text-transform: uppercase; font-weight: 600; text-shadow: 0 1px 10px rgba(0, 0, 0, .35); }
.hero__logo { width: clamp(150px, 20vw, 230px); height: auto; margin: 10px 0 6px; filter: drop-shadow(0 2px 16px rgba(20, 30, 40, .35)); }
.hero__sub { font-size: 1.25rem; font-style: italic; text-shadow: 0 1px 10px rgba(0, 0, 0, .4); }

.welcome { text-align: center; max-width: 40em; margin: 0 auto; font-size: 1.2rem; color: var(--ink-soft); }

/* countdown */
.countdown { background: var(--paper); border: 1px solid var(--line); outline: 1px solid var(--line); outline-offset: -8px; padding: clamp(28px, 5vw, 48px) 20px; text-align: center; display: grid; gap: 18px; box-shadow: var(--shadow-paper); }
.countdown__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 560px; margin: 0 auto; width: 100%; }
.countdown__cell { display: grid; gap: 2px; padding: 0 6px; border-left: 1px solid var(--line); }
.countdown__cell:first-child { border-left: 0; }
.countdown__num { font-size: clamp(2.2rem, 7vw, 3.4rem); line-height: 1; font-variant-numeric: tabular-nums lining-nums; color: var(--ink); }
.countdown__lbl { font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--stone-deep); font-weight: 600; }
.countdown__tba { font-family: var(--f-script); font-size: clamp(2rem, 6vw, 2.8rem); color: var(--wisteria-deep); line-height: 1.1; }
.countdown__note { font-style: italic; color: var(--ink-soft); }
.countdown.is-tba .countdown__num { color: var(--champagne-deep); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 2vw, 22px); }
.gallery figure { margin: 0; background: #fff; padding: 10px 10px 0; box-shadow: var(--shadow-paper); transition: transform .4s var(--ease); }
.gallery figure:nth-child(3n+1) { transform: rotate(-1.2deg); } .gallery figure:nth-child(3n+3) { transform: rotate(1deg); }
.gallery figure:hover { transform: rotate(0) translateY(-4px); }
.gallery .ph { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; background: var(--wisteria-mist); }
.gallery .ph--empty { display: grid; place-items: center; background: linear-gradient(160deg, #F3EEF8, #F4EEE3); }
.gallery .ph--empty svg { width: 46%; opacity: .75; }
.gallery figcaption { font-family: var(--f-hand); font-size: 1.5rem; color: var(--ink-soft); text-align: center; padding: 6px 4px 8px; line-height: 1.2; }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* explore cards */
.explore { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.explore a {
  display: grid; gap: 6px; text-decoration: none; color: inherit; padding: 28px 24px; background: var(--paper);
  border: 1px solid var(--line); text-align: center; transition: border-color .3s, transform .3s var(--ease), background .3s;
}
.explore a:hover { border-color: var(--wisteria); transform: translateY(-3px); background: #fff; }
.explore .script { font-size: 2.2rem; line-height: 1.1; }
.explore .more { font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--wisteria-deep); font-weight: 600; }

/* love story timeline */
.timeline { position: relative; display: grid; gap: clamp(36px, 6vw, 64px); max-width: 920px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(var(--champagne), var(--wisteria), var(--champagne)); }
.chapter { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; position: relative; }
.chapter__mark { position: absolute; left: 50%; top: 50%; width: 34px; height: 24px; margin: -12px 0 0 -17px; background: var(--silk); padding: 0 3px; z-index: 1; }
.chapter__mark svg { width: 100%; height: 100%; display: block; }
.chapter__body { display: grid; gap: 8px; min-width: 0; }
.chapter__body h2 { font-family: var(--f-script); font-size: 2.6rem; line-height: 1.1; font-weight: 400; }
.chapter__body p { color: var(--ink-soft); }
.chapter:nth-child(odd) .chapter__body { grid-column: 1; text-align: right; }
.chapter:nth-child(odd) .chapter__media { grid-column: 2; grid-row: 1; }
.chapter:nth-child(even) .chapter__body { grid-column: 2; }
.chapter:nth-child(even) .chapter__media { grid-column: 1; grid-row: 1; }
.chapter__media img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; padding: 8px; background: #fff; box-shadow: var(--shadow-paper); }
.chapter__media .sprig { width: 120px; margin: 0 auto; opacity: .9; }
@media (max-width: 720px) {
  .timeline::before { left: 8px; }
  .chapter { grid-template-columns: 1fr; gap: 14px; padding-left: 34px; }
  .chapter__mark { left: 8px; top: 14px; }
  .chapter .chapter__body, .chapter:nth-child(odd) .chapter__body, .chapter:nth-child(even) .chapter__body { grid-column: 1; grid-row: 1; text-align: left; }
  .chapter .chapter__media, .chapter:nth-child(odd) .chapter__media, .chapter:nth-child(even) .chapter__media { grid-column: 1; grid-row: 2; }
  .chapter__media .sprig { display: none; }
}

/* proposal */
.proposal { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.polaroid { background: #fff; padding: 14px 14px 56px; box-shadow: var(--shadow-paper); transform: rotate(-2.5deg); position: relative; max-width: 440px; margin: 0 auto; }
.polaroid::before { content: ""; position: absolute; top: -14px; left: 50%; width: 110px; height: 30px; margin-left: -55px; background: rgba(230, 213, 184, .7); transform: rotate(3deg); }
.polaroid img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-family: var(--f-hand); font-size: 1.9rem; color: var(--ink-soft); }
.proposal__text { display: grid; gap: 16px; min-width: 0; }
.proposal__text h2 { font-family: var(--f-script); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1.1; }
.proposal__text p { color: var(--ink-soft); }
.facts { display: flex; gap: 0; border-block: 1px solid var(--line); padding-block: 12px; }
.facts div { flex: 1; display: grid; gap: 2px; padding: 0 14px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; padding-left: 0; }
.facts dt { font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--stone-deep); font-weight: 600; }
.facts dd { margin: 0; font-style: italic; }
@media (max-width: 760px) { .proposal { grid-template-columns: 1fr; } }

/* =====================================================================
   EXPRESSION OF INTEREST — "Italy, anyone?"
   ===================================================================== */
.eoi-hero { position: relative; overflow: hidden; text-align: center; color: var(--ink); }
.eoi-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.eoi-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(246, 241, 232, .9) 0%, rgba(246, 241, 232, .8) 55%, rgba(246, 241, 232, .6) 80%, var(--silk) 100%); }
.eoi-hero__inner { position: relative; z-index: 1; padding-block: clamp(48px, 8vw, 90px) clamp(90px, 14vw, 150px); display: grid; justify-items: center; gap: 4px; }
.eoi-kicker { font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); padding-bottom: 10px; border-bottom: 1px solid var(--stone); margin-bottom: 10px; }
.eoi-title { font-size: clamp(3.4rem, 11vw, 6.4rem); letter-spacing: .08em; line-height: .9; font-weight: 500; text-transform: uppercase; }
.eoi-script { font-family: var(--f-hand); font-size: clamp(3.4rem, 10vw, 5.6rem); line-height: .8; margin-top: -.05em; margin-left: 1.2em; color: var(--ink); }
.eoi-date { margin-top: 18px; font-size: 1.1rem; letter-spacing: .26em; text-transform: uppercase; }
.eoi-place { font-size: .74rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.eoi-stamp { position: absolute; z-index: 2; top: 24px; right: max(20px, env(safe-area-inset-right, 0px)); width: 150px; transform: rotate(8deg); }
.eoi-handnote { position: absolute; z-index: 2; top: 176px; right: max(24px, env(safe-area-inset-right, 0px)); font-family: var(--f-hand); font-size: 1.7rem; line-height: 1.15; color: var(--ink-soft); transform: rotate(-8deg); text-align: center; }
@media (max-width: 760px) { .eoi-stamp { width: 96px; top: 12px; right: 10px; opacity: .85; } .eoi-handnote { display: none; } }
@media (max-width: 560px) { .eoi-stamp { display: none; } }

.paper {
  position: relative; z-index: 1; background: var(--paper); margin-top: -70px;
  box-shadow: var(--shadow-paper);
  clip-path: polygon(0 1.2%, 4% 0.4%, 9% 1%, 15% 0.2%, 22% 0.9%, 30% 0.3%, 38% 1%, 46% 0.2%, 55% 0.8%, 63% 0.1%, 71% 0.9%, 79% 0.3%, 87% 1%, 94% 0.2%, 100% 0.8%, 100% 100%, 0 100%);
  padding-block: clamp(48px, 7vw, 80px);
}
.paper__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 56px); align-items: center; }
.eoi-lead { font-size: 1.05rem; letter-spacing: .2em; text-transform: uppercase; text-align: center; line-height: 1.7; font-weight: 500; }
.eoi-body { text-align: center; color: var(--ink-soft); margin-top: 14px; font-size: 1.12rem; }
.eoi-note { margin-top: 26px; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: center; background: #EFEDE6; border: 1px solid var(--line); padding: 16px 20px; }
.eoi-note h3 { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; line-height: 1.6; }
.eoi-note p { font-size: .98rem; color: var(--ink-soft); line-height: 1.5; margin-top: 4px; }
.eoi-polaroid { background: #fff; padding: 12px 12px 34px; box-shadow: var(--shadow-paper); transform: rotate(5deg); position: relative; }
.eoi-polaroid::before { content: ""; position: absolute; top: -12px; right: 20%; width: 80px; height: 26px; background: rgba(230, 213, 184, .75); transform: rotate(-6deg); }
.eoi-polaroid img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.eoi-polaroid span { position: absolute; bottom: 4px; right: 16px; color: #A07868; font-size: 1.2rem; }
@media (max-width: 760px) {
  .paper__grid { grid-template-columns: 1fr; }
  .eoi-polaroid { max-width: 240px; margin: 0 auto; order: -1; }
  .eoi-note { grid-template-columns: 1fr; text-align: center; }
  .eoi-note svg { max-width: 120px; margin: 0 auto; }
}

.passport { margin-top: clamp(44px, 7vw, 72px); text-align: center; display: grid; gap: 10px; }
.passport__kicker { font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.passport__kicker::after { content: ""; display: block; width: 50px; height: 1px; background: var(--stone); margin: 10px auto 0; }
.passport h2 { font-size: clamp(1.8rem, 4.6vw, 2.6rem); letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; font-weight: 500; }
.passport__disc { color: var(--ink-soft); max-width: 34em; margin: 0 auto; }

.choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; border: 0; padding: 0; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label {
  height: 100%; display: grid; grid-template-rows: 64px 1fr auto; justify-items: center; gap: 10px; text-align: center;
  padding: 20px 14px 18px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); cursor: pointer;
  transition: border-color .25s, background .25s, transform .25s var(--ease), box-shadow .25s;
  font-size: 1.02rem; line-height: 1.35;
}
.choice label svg { height: 58px; width: auto; }
.choice label:hover { border-color: var(--wisteria); transform: translateY(-2px); }
.choice .dot { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--ink-soft); display: grid; place-items: center; }
.choice .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--wisteria-deep); transform: scale(0); transition: transform .25s var(--ease); }
.choice input:checked + label { border-color: var(--wisteria-deep); background: var(--wisteria-mist); box-shadow: 0 0 0 1px var(--wisteria-deep) inset; }
.choice input:checked + label .dot { border-color: var(--wisteria-deep); }
.choice input:checked + label .dot::after { transform: scale(1); }
.choice input:focus-visible + label { outline: 2px solid var(--wisteria-deep); outline-offset: 2px; }
@media (max-width: 860px) { .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px) { .choice label { padding: 16px 10px; font-size: .95rem; } }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; margin-top: 26px; text-align: left; }
.field { display: grid; gap: 6px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); }
.field label small { text-transform: none; letter-spacing: 0; font-weight: 400; font-style: italic; font-size: .95em; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1.05rem; padding: .7em .9em; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 2px; width: 100%;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--wisteria); box-shadow: 0 0 0 3px var(--wisteria-mist); }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } }
.form-error { color: #8a4b4b; margin-top: 14px; }
.submit-row { margin-top: 28px; display: grid; justify-items: center; gap: 14px; }
.submit-row .btn { padding: 1.05em 2.2em; }
.submit-row .btn svg { width: 18px; height: 18px; }
.thanks-line { letter-spacing: .26em; text-transform: uppercase; font-size: .9rem; }
.thanks-line span { color: var(--wisteria-deep); }

.thankyou { text-align: center; padding: 30px 10px 10px; display: grid; gap: 12px; justify-items: center; animation: rise .8s var(--ease) both; }
.thankyou svg { width: 120px; transform: rotate(-8deg); }
.thankyou h3 { font-family: var(--f-script); font-weight: 400; font-size: clamp(2.6rem, 7vw, 3.6rem); line-height: 1.1; color: var(--wisteria-deep); }
.thankyou p { max-width: 30em; color: var(--ink-soft); }

.eoi-foot { position: relative; height: clamp(180px, 30vw, 300px); overflow: hidden; }
.eoi-foot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.eoi-foot::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--paper) 0%, rgba(251, 248, 242, .75) 35%, rgba(251, 248, 242, 0) 65%); z-index: 1; }
.eoi-foot p { position: absolute; z-index: 2; right: max(24px, 6vw); top: 6%; font-family: var(--f-hand); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.05; color: var(--ink); transform: rotate(-12deg); text-shadow: 0 0 14px rgba(251, 248, 242, .9); }

/* simple pages (future tabs) */
.simple { max-width: 720px; margin: 0 auto; text-align: center; display: grid; gap: 22px; }
.info-list { display: grid; gap: 0; text-align: left; border-top: 1px solid var(--line); }
.info-list div { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; }
.info-list h3 { font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; padding-top: 4px; }
@media (max-width: 560px) { .info-list div { grid-template-columns: 1fr; gap: 4px; } }

/* footer */
.footer { text-align: center; padding-block: 56px calc(64px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--paper); }
.footer__logo { width: 132px; height: auto; margin: 0 auto 14px; }
.footer__tag { font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--stone-deep); font-weight: 600; }

/* music button */
.music-btn {
  position: fixed; z-index: 30; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(185, 155, 107, .6);
  background: rgba(251, 248, 242, .92); box-shadow: 0 6px 18px -6px rgba(70, 55, 30, .35); display: grid; place-items: center;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.music-btn__bars { display: flex; align-items: flex-end; gap: 3px; height: 16px; }
.music-btn__bars i { width: 3px; height: 4px; background: var(--wisteria-deep); border-radius: 2px; transition: height .3s; }
.music-btn[aria-pressed="true"] .music-btn__bars i { animation: eq 1s ease-in-out infinite; }
.music-btn[aria-pressed="true"] .music-btn__bars i:nth-child(2) { animation-delay: -.3s; }
.music-btn[aria-pressed="true"] .music-btn__bars i:nth-child(3) { animation-delay: -.6s; }
.music-btn[aria-pressed="true"] .music-btn__bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 16px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .2s !important; transition-delay: 0ms !important; }
}

/* passcode card sits a little lower on wide screens so the monogram stays visible */
.gate.is-asking .gate__scrim { background: linear-gradient(180deg, rgba(20, 28, 34, 0) 30%, rgba(20, 28, 34, .6) 100%); }
/* on wide screens, crop the video from the top so the names at the bottom stay in view above the button */
@media (min-aspect-ratio: 4/3) { .gate__video { object-position: 50% 100%; } }

::selection { background: var(--lotus); color: var(--ink); }
.thanks-line span { color: var(--lotus-deep); }
