:root {
  --ink: #18352c;
  --cream: #f6f1e7;
  --paper: #fffdf8;
  --eucalyptus: #668272;
  --olive: #7a7d49;
  --terracotta: #a95839;
  --wine: #672d30;
  --gold: #c6a66c;
  --sun: #f1c65d;
  --eucalyptus-deep: #4f6f5c;
  --strelitzia: #bf7040;
  --mediterranean: #255d63;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  --script: "Snell Roundhand", "Segoe Script", cursive;
}

* { box-sizing: border-box; }

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

body.auth-locked { overflow: hidden; }

.password-gate {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  min-height: 100svh;
  place-items: center;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  overflow-y: auto;
  padding:
    max(clamp(18px, 4vw, 48px), env(safe-area-inset-top))
    max(clamp(18px, 4vw, 48px), env(safe-area-inset-right))
    max(clamp(18px, 4vw, 48px), env(safe-area-inset-bottom))
    max(clamp(18px, 4vw, 48px), env(safe-area-inset-left));
  background: #18352c;
  color: var(--ink);
}

.password-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(17, 48, 37, .92), rgba(57, 79, 52, .72)),
    url("assets/becci-nick-vineyard-dolce-vita.webp") center 45% / cover;
  filter: saturate(.78);
}

.password-backdrop::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(246, 226, 168, .2), transparent 38%),
    linear-gradient(180deg, transparent, rgba(7, 31, 24, .36));
  content: "";
}

.password-card {
  position: relative;
  width: min(560px, 100%);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: clamp(34px, 7vw, 64px);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 28px;
  background: rgba(255, 250, 237, .96);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .34);
  text-align: center;
  backdrop-filter: blur(16px);
}

.password-card::before {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(102, 130, 114, .25);
  border-radius: 20px;
  content: "";
  pointer-events: none;
}

.password-kicker {
  margin: 0 0 20px;
  color: var(--eucalyptus-deep);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.password-seal {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--eucalyptus-deep);
  color: #fff7df;
  font-family: var(--serif);
  box-shadow: 0 6px 18px rgba(24, 53, 44, .22);
}

.password-card h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 8vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .92;
  overflow-wrap: anywhere;
}

.password-card h1 i { color: var(--terracotta); font-weight: 400; }
.password-card > p:not(.password-kicker):not(.password-hint) { max-width: 430px; margin: 24px auto 28px; color: #5c6c64; }
.password-card form { position: relative; z-index: 1; text-align: left; }
.password-card label { display: block; margin-bottom: 7px; color: var(--eucalyptus-deep); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.password-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.password-row input {
  min-width: 0;
  height: 54px;
  padding: 0 17px;
  border: 1px solid rgba(24, 53, 44, .3);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
}
.password-row input:focus { border-color: var(--eucalyptus-deep); outline: 3px solid rgba(102, 130, 114, .18); }
.password-row button {
  height: 54px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: var(--eucalyptus-deep);
  color: #fff;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
}
.password-row button:hover, .password-row button:focus-visible { background: var(--terracotta); }
.password-error { min-height: 1.5em; margin: 8px 2px 0; color: #a83f33; font-size: .82rem; }
.password-hint { margin: 18px 0 0; color: #87938e; font-size: .76rem; font-style: italic; }
.password-card.is-wrong { animation: password-no .38s ease; }
.password-gate.is-leaving { animation: password-leave .45s ease forwards; pointer-events: none; }

@keyframes password-no {
  20%, 60% { transform: translateX(-8px) rotate(-.4deg); }
  40%, 80% { transform: translateX(8px) rotate(.4deg); }
}

@keyframes password-leave {
  to { opacity: 0; transform: scale(1.025); }
}

button { font: inherit; }
button:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
[hidden] { display: none !important; }
.page { min-height: 100svh; }

.eyebrow {
  margin: 0;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.gate {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(14px, 2.5vw, 36px);
  background:
    radial-gradient(circle at 84% 12%, rgba(255, 225, 132, .82), transparent 25%),
    radial-gradient(circle at 8% 92%, rgba(191, 112, 64, .13), transparent 30%),
    linear-gradient(135deg, #dfe9df, #cbdccb 55%, #adc5b2);
  color: var(--ink);
}

.gate::before,
.gate::after {
  position: absolute;
  width: 38vw;
  height: 38vw;
  border-radius: 50%;
  content: "";
}

.gate::before { top: -23vw; right: -8vw; border: 1px solid rgba(255,247,220,.34); box-shadow: 0 0 0 34px rgba(255,247,220,.06), 0 0 0 70px rgba(255,247,220,.04); }
.gate::after { bottom: -28vw; left: -10vw; border: 1px solid rgba(255,247,220,.2); }

.gate-noise {
  position: absolute;
  inset: 0;
  opacity: .14;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

.gate-frame {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1380px, 100%);
  min-height: calc(100svh - clamp(28px, 5vw, 72px));
  margin: auto;
  grid-template-columns: minmax(0, 1fr) minmax(410px, .95fr);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 30px;
  background: #fff5dc;
  box-shadow: 0 24px 80px rgba(45, 70, 54, .22);
}

.gate-content {
  display: flex;
  min-width: 0;
  padding: clamp(32px, 4.5vw, 68px);
  flex-direction: column;
  justify-content: center;
}

.gate-photo {
  position: relative;
  min-height: calc(100% - 48px);
  margin: 24px 24px 24px 0;
  overflow: hidden;
  border-radius: 48% 48% 22px 22px / 22% 22% 22px 22px;
  background: #d9b765;
  box-shadow: 0 20px 50px rgba(87, 47, 27, .22);
}

.gate-photo::after {
  position: absolute;
  inset: 38% 0 0;
  background: linear-gradient(180deg, transparent, rgba(74, 32, 18, .56));
  content: "";
  pointer-events: none;
}

.gate-photo img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 48%; }
.gate-photo figcaption { position: absolute; z-index: 1; right: 28px; bottom: 24px; color: #fff; font-family: var(--serif); font-size: 1.25rem; font-style: italic; letter-spacing: .03em; text-shadow: 0 2px 12px rgba(0,0,0,.5); }

.gate .eyebrow { color: var(--eucalyptus-deep); }
.gate h1 {
  max-width: 650px;
  margin: 16px 0 14px;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6.7vw, 6rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .98;
}
.gate-copy { margin: 0 0 clamp(30px, 4vw, 48px); color: #706451; }

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.choice {
  min-height: 108px;
  padding: 16px 18px;
  border: 1px solid rgba(24,53,44,.14);
  border-radius: 16px;
  background: rgba(255,255,255,.46);
  color: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(80,54,25,.05);
  transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.choice-number { display: block; margin-bottom: 12px; color: var(--eucalyptus-deep); font-size: .72rem; letter-spacing: .12em; }
.choice strong { display: block; font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 400; }
.choice small { color: #7a6e5c; font-size: .78rem; }
.choice:hover, .choice:focus-visible { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(80,54,25,.14); }
.choice-family:hover, .choice-family:focus-visible { background: #56715e; color: #fff; }
.choice-friends:hover, .choice-friends:focus-visible { background: var(--strelitzia); color: #fff; }
.choice-unknown:hover, .choice-unknown:focus-visible { background: var(--mediterranean); color: #fff; }
.choice-stalker:hover, .choice-stalker:focus-visible { background: var(--wine); color: #fff; }
.choice-more { grid-column: 1 / -1; min-height: 86px; display: grid; grid-template-columns: auto 1fr; column-gap: 22px; align-content: center; background: rgba(241,198,93,.2); }
.choice-more .choice-number { grid-row: 1 / span 2; margin: 7px 0 0; }
.choice-more:hover, .choice-more:focus-visible { background: var(--sun); color: var(--ink); }
.choice:hover small, .choice:focus-visible small { color: currentColor; opacity: .7; }
.gate .choice:focus-visible { outline-color: var(--eucalyptus-deep); }

@media (max-width: 1040px) {
  .gate-frame { grid-template-columns: minmax(0, 1fr) minmax(350px, .9fr); }
}

.wedding { background: var(--cream); }
.wedding-hero {
  position: relative;
  min-height: min(820px, 100svh);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
}
.wedding-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.family .wedding-hero > img,
.friends .wedding-hero > img { object-position: center center; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,25,19,.3), rgba(14,28,21,.06) 42%, rgba(9,20,16,.48)); }
.friends .hero-shade { background: linear-gradient(180deg, rgba(52,12,16,.48), rgba(72,23,25,.14) 45%, rgba(35,10,13,.62)); }
.back {
  position: absolute;
  z-index: 4;
  top: clamp(18px, 4vw, 44px);
  left: clamp(18px, 4vw, 48px);
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 999px;
  background: rgba(16,35,29,.16);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.back:hover { background: #fff; color: #18352c; }
.hero-copy { position: relative; z-index: 2; width: min(920px, 88vw); text-align: center; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero-copy h1 { margin: 0; font-family: var(--serif); font-size: clamp(3.7rem, 10vw, 9.5rem); font-weight: 400; letter-spacing: -.055em; line-height: .84; }
.hero-copy h1 i { font-weight: 400; }
.friends .hero-copy h1 { font-size: clamp(3.2rem, 8vw, 8rem); line-height: .92; }
.hero-date { margin: 34px 0 0; font-size: .88rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.scroll-note { position: absolute; z-index: 2; bottom: 24px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.scroll-note b { margin-left: 12px; }

.wedding-body { overflow: hidden; background: var(--paper); }
.intro-lockup { width: min(760px, calc(100% - 40px)); margin: 0 auto; padding: clamp(90px, 14vw, 170px) 0 clamp(70px, 10vw, 130px); text-align: center; }
.script { margin: 0; color: var(--terracotta); font-family: var(--script); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; transform: rotate(-3deg); }
.intro-lockup h2 { margin: 20px 0 28px; font-family: var(--serif); font-size: clamp(2.3rem, 5vw, 4.8rem); font-weight: 400; letter-spacing: -.04em; line-height: 1.05; }
.intro-lockup > p:last-child { max-width: 620px; margin: auto; color: #53655e; font-size: 1.08rem; }

.schedule { width: min(1080px, calc(100% - 40px)); margin: 0 auto; border-top: 1px solid #ccd3cc; }
.schedule article { display: grid; grid-template-columns: 180px 1fr; gap: clamp(30px, 6vw, 100px); padding: clamp(60px, 8vw, 100px) 0; border-bottom: 1px solid #ccd3cc; }
.day-mark { width: 118px; height: 118px; display: grid; place-items: center; border: 1px solid var(--eucalyptus); border-radius: 50%; }
.day-mark span { font-family: var(--serif); font-size: 2.6rem; }
.schedule .eyebrow, .friend-plan .eyebrow, .drinking-note .eyebrow { color: var(--terracotta); }
.schedule h3, .friend-plan h3 { margin: 8px 0 17px; font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 3.5rem); font-weight: 400; line-height: 1.08; }
.schedule article > div:last-child > p:not(.eyebrow):not(.place) { max-width: 680px; color: #53655e; }
.day-flow { max-width: 680px; margin: 34px 0 0; padding: 0; border-top: 1px solid #d9ded9; list-style: none; }
.day-flow li { display: grid; grid-template-columns: minmax(110px, .34fr) minmax(0, 1fr); gap: 22px; padding: 17px 0; border-bottom: 1px solid #d9ded9; }
.day-flow span { color: var(--terracotta); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.day-flow strong { color: var(--ink); font-family: var(--serif); font-size: 1.05rem; font-weight: 400; line-height: 1.35; }
.day-flow .flow-with-note > div { min-width: 0; }
.day-flow .flow-with-note strong { display: block; }
.day-flow .flow-with-note small { display: block; margin-top: 8px; color: #66776f; font-size: .88rem; line-height: 1.55; }
.place { margin-top: 26px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
blockquote { max-width: 860px; margin: clamp(90px, 15vw, 180px) auto; padding: 0 30px; color: var(--terracotta); font-family: var(--serif); font-size: clamp(2.1rem, 5vw, 4.5rem); font-style: italic; line-height: 1.08; text-align: center; }

.wedding-footer { display: flex; min-height: 420px; padding: 70px 20px; align-items: center; flex-direction: column; justify-content: center; background: var(--ink); color: #fff; text-align: center; }
.mini-monogram { width: 72px; height: 72px; display: grid; place-items: center; margin-bottom: 24px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-family: var(--serif); }
.wedding-footer .script { margin-top: 18px; color: var(--gold); }

.friends { --ink: #3d1719; --terracotta: #a83f33; }
.friends .wedding-body { background: #f4eee5; }
.friend-plan { width: min(1180px, calc(100% - 40px)); display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 auto; border-top: 1px solid #cbbeb3; border-bottom: 1px solid #cbbeb3; }
.friend-plan article { position: relative; min-height: 390px; padding: 55px 38px; border-right: 1px solid #cbbeb3; }
.friend-plan article:last-child { border-right: 0; }
.friend-time { display: block; margin-bottom: 54px; color: rgba(61,23,25,.34); font-family: var(--serif); font-size: clamp(2.5rem, 4vw, 4rem); line-height: 1; white-space: nowrap; }
.friend-plan h3 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.friend-plan article > p:last-child { color: #705d5b; }
.drinking-note { width: min(950px, calc(100% - 40px)); display: grid; grid-template-columns: 130px 1fr; gap: 30px; align-items: center; margin: clamp(90px, 14vw, 160px) auto; padding: clamp(34px, 7vw, 70px); border: 1px solid #cbbeb3; background: rgba(255,255,255,.35); }
.glass { font-size: 5.2rem; filter: grayscale(.2); }
.drinking-note h2 { margin: 8px 0 12px; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.7rem); font-weight: 400; letter-spacing: -.03em; line-height: 1; }
.drinking-note p:last-child { color: #705d5b; }
.friends .wedding-footer { background: var(--wine); }

.info { position: relative; overflow: hidden; padding: clamp(96px, 12vw, 150px) 20px 0; background: radial-gradient(circle at 85% 8%, rgba(198,166,108,.2), transparent 28%), radial-gradient(circle at 8% 46%, rgba(102,130,114,.14), transparent 24%), var(--cream); color: var(--ink); }
.info::before { position: absolute; top: -190px; right: -150px; width: 420px; height: 420px; border: 1px solid rgba(102,130,114,.24); border-radius: 50%; content: ""; }
.info-shell { position: relative; z-index: 1; width: min(1120px, 100%); margin: 0 auto; }
.info-back { position: absolute; border-color: rgba(24,53,44,.35); background: rgba(255,253,248,.72); color: var(--ink); }
.info-back:hover { background: var(--ink); color: #fff; }
.info-hero { max-width: 800px; margin: 0 auto; padding-bottom: clamp(70px, 10vw, 120px); text-align: center; }
.info-hero .mini-monogram { margin: 0 auto 38px; }
.info-hero .eyebrow, .info-card .eyebrow { color: var(--terracotta); }
.info-hero h1 { margin: 14px 0 24px; font-family: var(--serif); font-size: clamp(3.3rem, 8vw, 7.2rem); font-weight: 400; letter-spacing: -.055em; line-height: .92; }
.info-hero h1 i { font-weight: 400; }
.info-hero > p:last-child { max-width: 620px; margin: auto; color: #53655e; font-size: 1.08rem; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #ccd3cc; border-left: 1px solid #ccd3cc; }
.info-card { position: relative; min-width: 0; padding: clamp(38px, 6vw, 68px); border-right: 1px solid #ccd3cc; border-bottom: 1px solid #ccd3cc; background: rgba(255,253,248,.72); }
.info-number { display: block; margin-bottom: 46px; color: rgba(24,53,44,.28); font-family: var(--serif); font-size: 2.5rem; line-height: 1; }
.info-card h2 { margin: 8px 0 22px; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 400; letter-spacing: -.035em; line-height: 1.05; }
.info-card > p:not(.eyebrow) { color: #53655e; }
.contact-list { display: grid; gap: 10px; margin-top: 32px; }
.contact-list div { display: grid; grid-template-columns: 86px 1fr auto; gap: 12px; align-items: baseline; padding: 15px 0; border-top: 1px solid #d9ded9; }
.contact-list span, .dress-list span, .rsvp-deadline > span { color: var(--terracotta); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.contact-list strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 400; }
.contact-list em { color: #87938e; font-size: .78rem; font-style: normal; }
.dress-list { margin-top: 28px; border-top: 1px solid #d9ded9; }
.dress-list div { padding: 19px 0; border-bottom: 1px solid #d9ded9; }
.dress-list p { margin: 7px 0 0; color: #53655e; }
.stay-list { margin: 30px 0 18px; padding: 0; border-top: 1px solid #d9ded9; list-style: none; }
.stay-list li { border-bottom: 1px solid #d9ded9; }
.stay-list a { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; color: var(--ink); font-family: var(--serif); font-size: 1.08rem; text-decoration: none; }
.stay-list a:hover, .stay-list a:focus-visible { color: var(--terracotta); }
.info-card small { color: #7c8983; }
.info-card-wide { grid-column: 1 / -1; }
.venue-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 6vw, 80px); margin-top: 32px; border-top: 1px solid #d9ded9; }
.venue-list a { display: grid; align-content: start; gap: 8px; padding: 24px 0 6px; color: var(--ink); text-decoration: none; }
.venue-list span { color: var(--terracotta); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.venue-list strong { margin-top: 3px; font-family: var(--serif); font-size: clamp(1.35rem, 2.5vw, 1.8rem); font-weight: 400; line-height: 1.15; }
.venue-list address { color: #53655e; font-style: normal; line-height: 1.55; }
.venue-list em { width: max-content; margin-top: 10px; color: #7c8983; font-size: .8rem; font-style: normal; }
.venue-list a:hover em, .venue-list a:focus-visible em { color: var(--terracotta); }
.venue-list em b { font-weight: 400; }
.rsvp-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(40px, 8vw, 100px); align-items: end; }
.rsvp-card .info-number { position: absolute; top: clamp(38px, 6vw, 68px); right: clamp(38px, 6vw, 68px); }
.rsvp-card h2 { max-width: 600px; }
.rsvp-card > div:first-of-type > p:last-child { max-width: 640px; color: #53655e; }
.rsvp-deadline { min-width: 245px; padding: 26px; border: 1px solid var(--eucalyptus); background: rgba(102,130,114,.08); }
.rsvp-deadline strong, .rsvp-deadline time { display: block; }
.rsvp-deadline strong { margin: 10px 0 2px; font-family: var(--serif); font-size: 1.55rem; font-weight: 400; }
.rsvp-deadline time { color: #53655e; }
.info-footer { display: flex; min-height: 310px; align-items: center; flex-direction: column; justify-content: center; text-align: center; }
.info-footer .mini-monogram { margin-bottom: 16px; }
.info-footer button { margin-top: 18px; padding: 12px 18px; border: 1px solid var(--eucalyptus); border-radius: 999px; background: transparent; color: var(--ink); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.info-footer button:hover { background: var(--ink); color: #fff; }

.unknown { position: relative; display: grid; min-height: 100svh; place-items: center; overflow: hidden; background: #07111d; color: #fff; }
.cat-stage { position: absolute; inset: -2%; overflow: hidden; animation: cat-stalk 4.8s cubic-bezier(.45,.05,.55,.95) infinite; }
.cat-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: cat-charge 4.8s ease-in-out infinite; }
.laser-system { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; }
.laser-pair { position: absolute; width: 30px; height: 24px; opacity: 0; filter: drop-shadow(0 0 12px #ff1010); animation: laser-fire 4.8s cubic-bezier(.2,.75,.25,1) infinite; }
.laser-pair::before { position: absolute; inset: -18px -10px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.95) 0 5%, #ff1111 16%, rgba(255,0,0,.32) 42%, transparent 70%); content: ""; animation: eye-core .16s steps(2) infinite; }
.laser-pair i { position: absolute; top: 7px; width: 6px; height: 115svh; border-radius: 999px; background: linear-gradient(90deg, #ff2424, #fff 45% 55%, #ff2424); box-shadow: 0 0 5px #fff, 0 0 12px #ff0000, 0 0 28px #ff0000; transform-origin: 50% 0; }
.laser-pair i:first-child { left: 1px; }
.laser-pair i:last-child { right: 1px; }
.laser-left { left: 30.4%; top: 54.7%; animation-delay: 0s; }
.laser-center { left: 49.1%; top: 47.6%; animation-delay: 1.6s; }
.laser-right { left: 71.5%; top: 55.4%; animation-delay: 3.2s; }
.laser-left i:first-child { transform: rotate(32deg); }
.laser-left i:last-child { transform: rotate(-15deg); }
.laser-center i:first-child { transform: rotate(13deg); }
.laser-center i:last-child { transform: rotate(-13deg); }
.laser-right i:first-child { transform: rotate(17deg); }
.laser-right i:last-child { transform: rotate(-30deg); }
.laser-flash { position: absolute; inset: 0; background: radial-gradient(circle at 52% 58%, rgba(255,0,0,.28), transparent 66%); opacity: 0; animation: screen-flash 1.6s steps(2) infinite; }
.cat-vignette { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,7,13,.88) 0%, rgba(2,7,13,.48) 48%, rgba(2,7,13,.12)), linear-gradient(0deg, rgba(1,5,9,.72), transparent 48%); }
.cat-copy { position: relative; z-index: 2; width: min(1160px, calc(100% - 40px)); padding: 100px 0 50px; }
.warning-tag { display: inline-block; margin: 0 0 24px; padding: 7px 12px; border: 1px solid rgba(255,79,79,.65); color: #ff7777; font-size: .7rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.cat-copy h1 { max-width: 800px; margin: 0 0 20px; font-family: var(--serif); font-size: clamp(3rem, 7vw, 7rem); font-weight: 400; letter-spacing: -.05em; line-height: .9; }
.cat-copy > p:not(.warning-tag) { font-size: 1.1rem; }
.cat-status { display: flex; gap: 10px; flex-wrap: wrap; margin: 34px 0 38px; }
.cat-status span { padding: 8px 13px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: rgba(0,0,0,.25); font-size: .73rem; letter-spacing: .07em; text-transform: uppercase; backdrop-filter: blur(8px); }
.firing-status { border-color: rgba(255,69,69,.75) !important; color: #ff8585; box-shadow: 0 0 16px rgba(255,0,0,.2); animation: firing-text 1.6s steps(2) infinite; }
.cat-button { padding: 15px 22px; border: 0; border-radius: 2px; background: #ff3038; color: #fff; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; box-shadow: 0 0 28px rgba(255,48,56,.35); }
.cat-button:hover { background: #fff; color: #111; }

.stalker { position: relative; display: grid; width: 100%; max-width: 100vw; min-height: 100svh; place-items: center; overflow: hidden; padding: 30px 20px; background: #090909; color: #fff; }
.alarm-grid { position: absolute; inset: 0; opacity: .2; background-image: linear-gradient(#f22 1px, transparent 1px), linear-gradient(90deg, #f22 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(circle at center, #000, transparent 72%); }
.stalker::before { position: absolute; inset: -50%; background: conic-gradient(from 0deg, transparent 0 43%, rgba(255,0,0,.32) 49%, transparent 55% 100%); content: ""; animation: sweep 2.4s linear infinite; }
.alarm-beacon { position: relative; z-index: 2; width: 118px; margin-bottom: 28px; filter: drop-shadow(0 0 30px rgba(255, 19, 19, .7)); }
.beacon-light { width: 86px; height: 76px; margin: 0 auto; border: 4px solid #ff7777; border-bottom: 0; border-radius: 52px 52px 8px 8px; background: repeating-linear-gradient(110deg, #f90000 0 12px, #a00000 13px 22px); animation: beacon .42s steps(2) infinite; }
.beacon-base { width: 118px; height: 20px; border-radius: 4px; background: #343434; box-shadow: inset 0 3px 0 #737373; }
.stalker-panel { position: relative; z-index: 2; width: min(720px, 100%); min-width: 0; max-width: 100%; overflow: hidden; padding: clamp(28px, 6vw, 62px); border: 1px solid #ff2424; background: rgba(10,10,10,.9); text-align: center; box-shadow: 0 0 80px rgba(255,0,0,.2); }
.alert-code { margin: 0 0 20px; overflow-wrap: anywhere; color: #ff4747; font: 700 .72rem/1 var(--sans); letter-spacing: .18em; }
.stalker h1 { max-width: 100%; margin: 0; overflow-wrap: anywhere; font-family: Impact, "Arial Black", sans-serif; font-size: clamp(4rem, 12vw, 9rem); letter-spacing: .02em; line-height: .78; }
.fbi { margin: 38px 0; color: #ff3030; font-size: clamp(1.35rem, 3vw, 2.1rem); font-weight: 900; letter-spacing: .04em; text-transform: uppercase; animation: flash .8s steps(2) infinite; }
.incident-log { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 34px; border: 1px solid #454545; text-align: left; }
.incident-log div { padding: 14px; border-right: 1px solid #454545; }
.incident-log div:last-child { border-right: 0; }
.incident-log span, .incident-log strong { display: block; }
.incident-log span { color: #777; font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; }
.incident-log strong { margin-top: 4px; color: #f2f2f2; font-size: .78rem; }
.panic-back { width: 100%; padding: 17px 20px; border: 0; background: #ec1111; color: #fff; font-weight: 900; letter-spacing: .08em; cursor: pointer; }
.panic-back:hover { background: #fff; color: #111; }
.stalker-panel small { display: block; margin-top: 18px; color: #5c5c5c; }

@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes beacon { 50% { background: #fff; box-shadow: 0 0 50px #f00; } }
@keyframes flash { 50% { opacity: .28; } }
@keyframes cat-stalk {
  0%, 8%, 100% { transform: scale(1.01) translate3d(0, 0, 0); }
  10% { transform: scale(1.075) translate3d(-.5%, -1.5%, 0) rotate(-.35deg); }
  14% { transform: scale(1.035) translate3d(.35%, .4%, 0) rotate(.2deg); }
  42% { transform: scale(1.095) translate3d(.5%, -2%, 0) rotate(.4deg); }
  47% { transform: scale(1.045) translate3d(-.35%, .35%, 0) rotate(-.18deg); }
  75% { transform: scale(1.11) translate3d(-.6%, -2.2%, 0) rotate(-.45deg); }
  81% { transform: scale(1.04) translate3d(.25%, .3%, 0) rotate(.15deg); }
}
@keyframes cat-charge {
  0%, 20%, 27%, 53%, 60%, 86%, 93%, 100% { filter: saturate(1) brightness(1); }
  22%, 55%, 88% { filter: saturate(1.35) brightness(1.18) contrast(1.08); }
  24%, 57%, 90% { filter: saturate(1.1) brightness(.94) contrast(1.04); }
}
@keyframes laser-fire {
  0%, 8% { opacity: 0; transform: scale(.7); }
  10% { opacity: 1; transform: scale(1.15); }
  12% { opacity: .18; transform: scale(.96); }
  14%, 18% { opacity: 1; transform: scale(1); }
  22%, 100% { opacity: 0; transform: scale(.72); }
}
@keyframes eye-core { 50% { filter: brightness(2); transform: scale(1.35); } }
@keyframes screen-flash { 12% { opacity: .7; } 18%, 100% { opacity: 0; } }
@keyframes firing-text { 50% { color: #fff; background: rgba(255,0,0,.35); } }

@media (max-width: 820px) {
  .gate { overflow: visible; }
  .gate-frame { grid-template-columns: 1fr; border-radius: 24px; }
  .gate-content { padding: 34px 24px 28px; }
  .gate-photo { order: -1; min-height: 44svh; margin: 14px 14px 0; border-radius: 220px 220px 24px 24px / 110px 110px 24px 24px; }
  .gate-photo img { object-position: 50% 46%; }
  .gate-photo figcaption { right: 20px; bottom: 16px; }
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
  .choice { min-height: 126px; }
  .choice-number { margin-bottom: 18px; }
  .schedule article { grid-template-columns: 100px 1fr; gap: 24px; }
  .day-mark { width: 82px; height: 82px; }
  .day-mark span { font-size: 2rem; }
  .friend-plan { grid-template-columns: 1fr; }
  .friend-plan article { min-height: auto; border-right: 0; border-bottom: 1px solid #cbbeb3; }
  .friend-plan article:last-child { border-bottom: 0; }
  .friend-time { margin-bottom: 24px; }
  .cat-vignette { background: linear-gradient(0deg, rgba(2,7,13,.94) 0%, rgba(2,7,13,.5) 62%, rgba(2,7,13,.22)); }
  .cat-copy { align-self: end; padding-bottom: 40px; }
  .incident-log { grid-template-columns: 1fr; }
  .incident-log div { border-right: 0; border-bottom: 1px solid #454545; }
  .incident-log div:last-child { border-bottom: 0; }
  .info-grid { grid-template-columns: 1fr; }
  .info-card-wide { grid-column: auto; }
  .venue-list { grid-template-columns: 1fr; gap: 8px; }
  .rsvp-card { grid-template-columns: 1fr; align-items: start; }
  .rsvp-card .info-number { position: static; }
}

@media (max-width: 560px) {
  .password-gate {
    padding:
      max(10px, env(safe-area-inset-top))
      max(10px, env(safe-area-inset-right))
      max(10px, env(safe-area-inset-bottom))
      max(10px, env(safe-area-inset-left));
  }
  .password-card { padding: 32px 16px; border-radius: 22px; }
  .password-card::before { inset: 7px; border-radius: 16px; }
  .password-card h1 { font-size: clamp(2rem, 11vw, 3rem); }
  .password-row { grid-template-columns: 1fr; }
  .password-row input, .password-row button { min-width: 0; max-width: 100%; }
  .password-row button { width: 100%; }
  .gate { padding: 8px; }
  .gate-frame { min-height: calc(100svh - 16px); border-radius: 20px; }
  .gate-content { padding: 30px 18px 22px; }
  .gate-photo { min-height: 42svh; margin: 8px 8px 0; border-radius: 160px 160px 18px 18px / 78px 78px 18px 18px; }
  .gate h1 { font-size: clamp(2.5rem, 13vw, 4rem); }
  .gate-copy { margin-bottom: 26px; }
  .choice-grid { gap: 8px; }
  .choice { min-height: 106px; padding: 14px; border-radius: 13px; }
  .choice small { display: none; }
  .choice-more { min-height: 78px; grid-template-columns: auto 1fr; }
  .choice-more .choice-number { margin-top: 6px; }
  .wedding-hero { min-height: 88svh; }
  .hero-copy h1 { font-size: 4.2rem; }
  .friends .hero-copy h1 { font-size: 3.4rem; }
  .hero-date { font-size: .7rem; }
  .schedule article { grid-template-columns: 1fr; }
  .day-mark { width: 66px; height: 66px; }
  .day-flow li { grid-template-columns: 1fr; gap: 4px; }
  .drinking-note { grid-template-columns: 1fr; text-align: center; }
  .glass { font-size: 4rem; }
  .cat-stage { inset: 0; }
  .cat-bg { object-position: 58% center; }
  .laser-pair { display: none; }
  .laser-flash { display: block; }
  .cat-copy h1 { font-size: 3.25rem; }
  .cat-status span { font-size: .64rem; }
  .stalker { padding: 20px 12px; }
  .alarm-beacon { transform: scale(.78); margin-bottom: 16px; }
  .stalker-panel { width: 100%; padding: 28px 14px; }
  .stalker h1 { font-size: clamp(2.5rem, 13.5vw, 4.5rem); letter-spacing: 0; line-height: .82; }
  .alert-code { font-size: .65rem; letter-spacing: .12em; }
  .fbi { font-size: clamp(1.05rem, 6vw, 1.45rem); }
  .panic-back { padding-inline: 10px; font-size: .76rem; letter-spacing: .04em; }
  .info { padding: 92px 12px 0; }
  .info-hero { padding-inline: 12px; }
  .info-card { padding: 34px 24px; }
  .contact-list div { grid-template-columns: 72px 1fr; }
  .contact-list em { grid-column: 2; }
  .rsvp-deadline { min-width: 0; }
}

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