﻿:root {
  --bg: #fdf8f0;
  --ink: #1c1a17;
  --muted: #5c574f;
  --red: #c40000;
  --red-deep: #a80000;
  --line: #d9d0c3;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --script: "Pinyon Script", cursive;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.section {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) max(1.15rem, env(safe-area-inset-right, 0px))
    clamp(3.5rem, 8vw, 6.5rem) max(1.15rem, env(safe-area-inset-left, 0px));
}

h2 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.01em;
}

h3 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 500;
  text-align: center;
}

.lead {
  max-width: 38rem;
  margin: 0 auto 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.98rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12rem;
  padding: 0.85rem 1.8rem;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.btn:hover {
  background: var(--red-deep);
  transform: translateY(-1px);
}

.btn-sm {
  min-width: auto;
  padding: 0.55rem 1.2rem;
  font-size: 0.85rem;
}

.wave {
  display: block;
  width: 100%;
  height: 36px;
  margin: 0;
  color: var(--red);
  opacity: 0.85;
}

.script-banner,
.script-line,
.love-diag,
.love-wallpaper {
  font-family: var(--script);
  color: var(--red);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

.script-banner {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin: 0.5rem 0 1.5rem;
  overflow: hidden;
}

.script-line {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 1.8rem;
  transform: rotate(-8deg);
}

/* Polaroid */
.polaroid {
  margin: 0;
  background: #fff;
  padding: 0.7rem 0.7rem 2.2rem;
  box-shadow: 0 12px 40px rgba(40, 20, 10, 0.12);
}

.polaroid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.hero-polaroid.reveal.is-in {
  transform: rotate(-6deg);
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.hero-date {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.hero-stack {
  --polaroid-w: min(260px, 62vw);
  --polaroid-img-h: calc(var(--polaroid-w) * 5 / 4);
  position: relative;
  isolation: isolate;
  width: min(560px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 1rem;
  overflow: visible;
}

.love-wallpaper {
  position: absolute;
  z-index: 0;
  left: 50%;
  /* верх фона = середина фотографии, дальше вниз */
  top: calc(100% - 1rem - 2.2rem - var(--polaroid-img-h) * 0.5);
  bottom: auto;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.12em;
  font-size: clamp(2rem, 6.5vw, 3.6rem);
  line-height: 1;
  opacity: 0.95;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  transform: translateX(-50%);
  animation: drift 22s ease-in-out infinite alternate;
}

.love-wallpaper span {
  display: block;
  width: max-content;
  min-width: 100%;
  text-align: center;
  white-space: nowrap;
}

@keyframes drift {
  from { transform: translateX(-50%); }
  to { transform: translateX(calc(-50% - 1.2rem)); }
}

.names {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 10vw, 5.6rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.names .amp {
  font-size: 0.55em;
  font-weight: 400;
}

.name-gleb,
.name-valeria {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  cursor: default;
}

.names-sm {
  font-size: clamp(2.6rem, 7vw, 4rem);
  text-align: center;
}

.hero-polaroid {
  position: relative;
  z-index: 2;
  width: min(260px, 62vw);
  margin-top: 1.25rem;
  transform: rotate(-6deg);
  animation: floaty 5.5s ease-in-out infinite;
  background: #fff;
}

.site-shell,
.cyber-deck {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

@keyframes floaty {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(-8px); }
}

/* INVITE */
.invite-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.invite-text h2 {
  text-align: left;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.invite-text p {
  margin: 0 0 1rem;
  max-width: 28rem;
  font-family: var(--serif);
  font-size: 1.15rem;
}

.invite-meta {
  color: var(--muted);
  font-family: var(--sans) !important;
  font-size: 0.95rem !important;
}

.calendar-wrap {
  display: flex;
  justify-content: center;
}

.calendar {
  width: min(280px, 100%);
  padding: 1.4rem 1.2rem 1.6rem;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 8px 10px 0 rgba(0, 0, 0, 0.04);
  transform: rotate(2deg);
}

.calendar h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.cal-head,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
  text-align: center;
}

.cal-head {
  margin-bottom: 0.5rem;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: lowercase;
}

.cal-grid span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 0.95rem;
}

.cal-grid .heart {
  position: relative;
  color: var(--red);
  font-weight: 600;
}

.cal-grid .heart::after {
  content: "♥";
  position: absolute;
  top: -0.15rem;
  right: 0.05rem;
  font-size: 0.55rem;
  color: var(--red);
}

/* VENUE */
.venue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.venue-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.love-diag {
  position: absolute;
  left: -5%;
  right: -5%;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  transform: rotate(-18deg);
  text-align: center;
}

.love-diag-2 {
  bottom: 8%;
  transform: rotate(-18deg);
}

.envelope {
  position: relative;
  width: min(260px, 70vw);
  height: 300px;
  background: var(--red);
  border-radius: 4px 4px 8px 8px;
  box-shadow: 0 16px 40px rgba(160, 0, 0, 0.25);
  transform: rotate(-4deg);
}

.envelope-flap {
  position: absolute;
  inset: 0 0 auto;
  height: 90px;
  background: linear-gradient(160deg, #e00000, var(--red-deep));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  opacity: 0.9;
}

.venue-photo {
  position: absolute;
  left: 50%;
  top: 18%;
  width: 78%;
  transform: translateX(-50%) rotate(-8deg);
  padding-bottom: 1.6rem;
  animation: floaty 6s ease-in-out infinite;
}

.venue-text {
  text-align: left;
}

.venue-text h2 {
  text-align: left;
}

.venue-text p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  line-height: 1.7;
}

.venue-text .btn {
  margin-top: 0.25rem;
}

/* TIMING */
.timing {
  text-align: center;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 3rem 0 2rem;
  padding: 0 0.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 3.1rem;
  height: 1px;
  background: #2a2a2a;
}

.t-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.t-item time {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
}

.t-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2a2a2a;
  z-index: 1;
}

.t-item p {
  margin: 0;
  max-width: 10rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* COUNTDOWN */
.countdown {
  display: flex;
  justify-content: center;
}

.countdown-card {
  width: min(420px, 100%);
  padding: 0.85rem 0.85rem 2.8rem;
}

.countdown-bg {
  position: relative;
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.countdown-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.countdown-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 1.5rem;
}

.countdown-inner > p {
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.25;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  width: 100%;
}

.countdown-grid strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 500;
  line-height: 1;
}

.countdown-grid span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  opacity: 0.9;
}

/* DRESS */
.palette {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  max-width: 22rem;
  margin: 2rem auto 3rem;
}

.palette span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.dress-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.carousel {
  max-width: min(560px, 100%);
  margin: 0 auto;
}

.dress-ref {
  max-width: min(560px, 100%);
  margin: 0 auto;
  border-radius: 6px;
  overflow: hidden;
  background: #eee;
  cursor: zoom-in;
}

.dress-ref img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel-track {
  overflow: hidden;
  border-radius: 6px;
  background: #eee;
  cursor: zoom-in;
}

.carousel-track img {
  width: 100%;
  height: auto;
  display: none;
}

.carousel-track img.is-active {
  display: block;
  animation: fade 0.45s ease;
}

@keyframes fade {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.9rem;
}

.carousel-nav button,
.wishes-nav button {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.carousel-nav button:hover,
.wishes-nav button:hover {
  color: var(--ink);
}

/* Dress lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  margin: auto;
  width: fit-content;
  height: fit-content;
  border: 0;
  padding: 0;
  max-width: min(960px, 94vw);
  max-height: 92vh;
  background: transparent;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(12, 10, 8, 0.82);
  backdrop-filter: blur(4px);
}

.lightbox img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  background: #111;
}

.lightbox-close {
  position: absolute;
  top: -0.4rem;
  right: -0.4rem;
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.lightbox-close:hover {
  background: #f0eae2;
}

html.lightbox-open,
html.lightbox-open body {
  overflow: hidden;
  overscroll-behavior: none;
}

html.lightbox-open body {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

body.bros-mode .lightbox-close {
  background: #0a0a0c;
  color: #fff;
  border: 1px solid rgba(255, 42, 61, 0.5);
}

body.princess-mode .lightbox img {
  border-radius: 18px;
}

/* WISHES / CONTACTS */
.wishes,
.contacts,
.rsvp {
  text-align: center;
}

.wishes-slider {
  max-width: 34rem;
  margin: 0 auto 1.75rem;
  min-height: 6.5rem;
}

.wish-slide {
  display: none;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.wish-slide.is-active {
  display: block;
  animation: fade 0.4s ease;
}

.wishes-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-name {
  margin: 0 0 0.35rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.contact-phone {
  display: inline-block;
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-size: 1.8rem;
  text-decoration: none;
}

/* RSVP */
.rsvp-form {
  max-width: 420px;
  margin: 2rem auto 0;
  text-align: left;
}

.rsvp-form label,
.rsvp-form legend {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
}

.rsvp-form > label {
  margin-bottom: 1.4rem;
}

.rsvp-form input[type="text"] {
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #cfc7bb;
  border-radius: 4px;
  background: #fff;
  font: inherit;
}

.rsvp-form input[type="text"]:focus {
  outline: 2px solid rgba(196, 0, 0, 0.25);
  border-color: var(--red);
}

.rsvp-form fieldset {
  border: 0;
  margin: 0 0 1.5rem;
  padding: 0;
}

.radio,
.check {
  display: flex !important;
  align-items: center;
  gap: 0.6rem;
  margin: 0.55rem 0 !important;
  cursor: pointer;
}

.radio input,
.check input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--red);
}

.deadline {
  margin: 0;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
}

.form-ok {
  margin-top: 1rem;
  text-align: center;
  color: var(--red);
}

.form-err {
  margin-top: 0.85rem;
  text-align: center;
  color: #a12020;
  font-size: 0.92rem;
}

.rsvp-form .btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* CLOSING */
.closing {
  text-align: center;
  padding-bottom: 5rem;
}

.closing-hi {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.5;
}

.credit-3d {
  margin: 1.5rem 0 0;
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  opacity: 0.55;
}

.credit-3d a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.closing-photos {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 2rem 0 1.5rem;
  min-height: 280px;
}

.closing-photos .polaroid {
  width: min(200px, 42vw);
}

.tilt-left {
  transform: rotate(-8deg) translateX(18px);
  z-index: 1;
  animation: floaty 6s ease-in-out infinite;
}

.tilt-right {
  transform: rotate(7deg) translateX(-18px);
  z-index: 2;
  animation: floaty 7s ease-in-out infinite reverse;
}

.love-wallpaper-bottom {
  position: relative;
  inset: auto;
  margin-top: 1rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  animation: none;
}

/* Responsive — основной сайт (не пасхалки) */
@media (max-width: 820px) {
  body:not(.bros-mode):not(.princess-mode) {
    -webkit-text-size-adjust: 100%;
  }

  body:not(.bros-mode):not(.princess-mode) .section {
    width: 100%;
    padding: clamp(2.4rem, 7vw, 4rem) max(1.15rem, env(safe-area-inset-right, 0px))
      clamp(2.4rem, 7vw, 4rem) max(1.15rem, env(safe-area-inset-left, 0px));
  }

  body:not(.bros-mode):not(.princess-mode) h2 {
    font-size: clamp(2rem, 8vw, 2.8rem);
    line-height: 1.15;
  }

  body:not(.bros-mode):not(.princess-mode) .lead {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    padding: 0 0.25rem;
  }

  body:not(.bros-mode):not(.princess-mode) .btn {
    min-width: min(12rem, 100%);
    width: min(20rem, 100%);
  }

  body:not(.bros-mode):not(.princess-mode) .btn-sm {
    width: auto;
  }

  body:not(.bros-mode):not(.princess-mode) .script-banner {
    font-size: clamp(1.25rem, 5.5vw, 1.8rem);
    margin: 0.25rem 0 1rem;
  }

  body:not(.bros-mode):not(.princess-mode) .script-line {
    font-size: 1.35rem;
  }

  /* Hero */
  body:not(.bros-mode):not(.princess-mode) .hero {
    min-height: 100svh;
    padding-top: max(2rem, env(safe-area-inset-top));
    padding-bottom: 1.5rem;
  }

  body:not(.bros-mode):not(.princess-mode) .hero-date {
    margin-bottom: 1rem;
    font-size: 0.82rem;
  }

  body:not(.bros-mode):not(.princess-mode) .hero-stack {
    --polaroid-w: min(240px, 68vw);
    width: min(520px, 100%);
  }

  body:not(.bros-mode):not(.princess-mode) .love-wallpaper {
    font-size: clamp(1.45rem, 7vw, 2.2rem);
    opacity: 0.78;
  }

  body:not(.bros-mode):not(.princess-mode) .names {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  body:not(.bros-mode):not(.princess-mode) .hero-polaroid {
    width: min(240px, 68vw);
    margin-top: 1rem;
  }

  /* Invite / venue / dress grids */
  body:not(.bros-mode):not(.princess-mode) .invite-grid,
  body:not(.bros-mode):not(.princess-mode) .venue-grid,
  body:not(.bros-mode):not(.princess-mode) .dress-cols {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  body:not(.bros-mode):not(.princess-mode) .invite-text h2,
  body:not(.bros-mode):not(.princess-mode) .venue-text,
  body:not(.bros-mode):not(.princess-mode) .venue-text h2 {
    text-align: center;
  }

  body:not(.bros-mode):not(.princess-mode) .invite-text p {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 1.05rem;
  }

  body:not(.bros-mode):not(.princess-mode) .invite-meta {
    text-align: center;
  }

  body:not(.bros-mode):not(.princess-mode) .calendar {
    width: min(300px, 100%);
    transform: rotate(1deg);
  }

  body:not(.bros-mode):not(.princess-mode) .venue-visual {
    min-height: 0;
    padding: 1rem 0 0.5rem;
  }

  body:not(.bros-mode):not(.princess-mode) .love-diag {
    display: none;
  }

  body:not(.bros-mode):not(.princess-mode) .envelope {
    width: min(240px, 72vw);
    height: 280px;
    margin: 0 auto;
  }

  body:not(.bros-mode):not(.princess-mode) .venue-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  body:not(.bros-mode):not(.princess-mode) .venue-text p {
    text-align: center;
  }

  /* Timing: на всю ширину секции */
  body:not(.bros-mode):not(.princess-mode) .timeline {
    grid-template-columns: 1fr;
    gap: 0;
    margin: 1.75rem 0 1rem;
    max-width: none;
    width: 100%;
    padding: 0;
  }

  body:not(.bros-mode):not(.princess-mode) .timeline::before {
    display: none;
  }

  body:not(.bros-mode):not(.princess-mode) .t-item {
    display: grid;
    grid-template-columns: 4.6rem 12px 1fr;
    align-items: center;
    gap: 0.85rem;
    text-align: left;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  body:not(.bros-mode):not(.princess-mode) .t-item:last-child {
    border-bottom: 0;
  }

  body:not(.bros-mode):not(.princess-mode) .t-item::after {
    display: none;
  }

  body:not(.bros-mode):not(.princess-mode) .t-item time {
    font-size: 1.35rem;
    text-align: right;
  }

  body:not(.bros-mode):not(.princess-mode) .t-dot {
    width: 8px;
    height: 8px;
    justify-self: center;
  }

  body:not(.bros-mode):not(.princess-mode) .t-item p {
    max-width: none;
    text-align: left;
    font-size: 0.92rem;
  }

  /* Countdown */
  body:not(.bros-mode):not(.princess-mode) .countdown-card {
    width: min(400px, 100%);
    padding: 0.65rem 0.65rem 2.2rem;
  }

  body:not(.bros-mode):not(.princess-mode) .countdown-inner {
    padding: 1.1rem 0.75rem;
  }

  body:not(.bros-mode):not(.princess-mode) .countdown-inner > p {
    font-size: 1.15rem;
    margin-bottom: 1.1rem;
  }

  body:not(.bros-mode):not(.princess-mode) .countdown-grid {
    gap: 0.35rem;
  }

  body:not(.bros-mode):not(.princess-mode) .countdown-grid strong {
    font-size: clamp(1.35rem, 6vw, 1.9rem);
  }

  body:not(.bros-mode):not(.princess-mode) .countdown-grid span {
    font-size: 0.65rem;
  }

  /* Dress */
  body:not(.bros-mode):not(.princess-mode) .palette {
    gap: 0.55rem;
    max-width: 18.5rem;
    margin: 1.5rem auto 2.25rem;
  }

  body:not(.bros-mode):not(.princess-mode) .palette span {
    width: 30px;
    height: 30px;
  }

  body:not(.bros-mode):not(.princess-mode) .carousel,
  body:not(.bros-mode):not(.princess-mode) .dress-ref {
    max-width: min(420px, 100%);
  }

  body:not(.bros-mode):not(.princess-mode) .carousel-track img,
  body:not(.bros-mode):not(.princess-mode) .dress-ref img {
    max-height: min(68vh, 560px);
    width: 100%;
    object-fit: contain;
    background: #f3eee6;
  }

  body:not(.bros-mode):not(.princess-mode) .dress-ref {
    aspect-ratio: auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* RSVP */
  body:not(.bros-mode):not(.princess-mode) .rsvp-form {
    max-width: none;
    width: 100%;
    padding: 1.15rem 1rem 1.35rem;
  }

  body:not(.bros-mode):not(.princess-mode) .rsvp-form input[type="text"] {
    font-size: 16px; /* без авто-зума iOS */
  }

  body:not(.bros-mode):not(.princess-mode) .deadline {
    font-size: 1.65rem;
  }

  /* Closing */
  body:not(.bros-mode):not(.princess-mode) .closing {
    padding-bottom: max(3.5rem, calc(2rem + env(safe-area-inset-bottom)));
  }

  body:not(.bros-mode):not(.princess-mode) .closing-photos {
    min-height: 0;
    margin: 1.5rem 0 1rem;
    gap: 0.25rem;
    overflow: hidden;
    width: 100%;
  }

  body:not(.bros-mode):not(.princess-mode) .closing-photos .polaroid {
    width: min(148px, 38vw);
  }

  body:not(.bros-mode):not(.princess-mode) .tilt-left {
    transform: rotate(-5deg) translateX(4px);
  }

  body:not(.bros-mode):not(.princess-mode) .tilt-right {
    transform: rotate(4deg) translateX(-4px);
  }

  body:not(.bros-mode):not(.princess-mode) .love-wallpaper-bottom {
    font-size: clamp(1.3rem, 5vw, 1.9rem);
    width: 100%;
    overflow: hidden;
  }

  body:not(.bros-mode):not(.princess-mode) .names-sm {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  body:not(.bros-mode):not(.princess-mode) .wave {
    width: 100%;
    margin: 0;
  }

  body:not(.bros-mode):not(.princess-mode) .lightbox {
    max-width: min(960px, calc(100% - 1.25rem));
  }

  body:not(.bros-mode):not(.princess-mode) .lightbox-close {
    top: 0.35rem;
    right: 0.35rem;
  }
}

@media (max-width: 520px) {
  body:not(.bros-mode):not(.princess-mode) .section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  body:not(.bros-mode):not(.princess-mode) .hero-polaroid {
    width: min(210px, 72vw);
  }

  body:not(.bros-mode):not(.princess-mode) .envelope {
    width: min(210px, 78vw);
    height: 250px;
  }

  body:not(.bros-mode):not(.princess-mode) .t-item {
    grid-template-columns: 4.1rem 10px 1fr;
    gap: 0.65rem;
  }

  body:not(.bros-mode):not(.princess-mode) .t-item time {
    font-size: 1.2rem;
  }

  body:not(.bros-mode):not(.princess-mode) .countdown-grid span {
    letter-spacing: 0;
  }

  body:not(.bros-mode):not(.princess-mode) .wishes-slider {
    min-height: 7.5rem;
    margin-bottom: 1.25rem;
  }

  body:not(.bros-mode):not(.princess-mode) .contact-phone {
    font-size: 1.35rem;
    word-break: break-word;
  }
}

@media (max-width: 820px) {
  .invite-grid,
  .venue-grid,
  .dress-cols {
    grid-template-columns: 1fr;
  }

  .invite-text h2,
  .venue-text,
  .venue-text h2 {
    text-align: center;
  }

  .invite-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .venue-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .timeline {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1rem;
  }

  .timeline::before {
    display: none;
  }

  .t-item::after {
    content: "";
    width: 40%;
    height: 1px;
    background: #2a2a2a;
    order: 1;
    margin: -0.4rem 0;
  }

  .t-dot {
    order: 1;
  }

  .t-item p {
    order: 2;
  }
}

@media (max-width: 520px) {
  .timeline {
    grid-template-columns: 1fr;
  }

  .countdown-grid {
    gap: 0.4rem;
  }
}

/* visibility helpers */
.bros-only,
.princess-only { display: none !important; }
body.bros-mode .bros-only { display: block !important; }
body.bros-mode .bros-only.cyber-divider { display: block !important; }
body.bros-mode .bros-only.cyber-stats { display: grid !important; }

.forge-chrome { display: none; }
body.bros-mode .forge-chrome.cyber-menu { display: flex !important; }
body.bros-mode .forge-chrome.cyber-stepper { display: flex !important; }
body.bros-mode .forge-chrome.cyber-stage { display: block !important; }
body.princess-mode .forge-chrome { display: none !important; }
body.bros-mode figure.bros-only { display: block !important; }
body.bros-mode .romantic-only,
body.bros-mode .princess-only { display: none !important; }
body.princess-mode .princess-only { display: block !important; }
body.princess-mode .princess-only.princess-ribbon { display: flex !important; }
body.princess-mode .princess-only.princess-charms { display: grid !important; }
body.princess-mode figure.princess-only { display: block !important; }
body.princess-mode .romantic-only,
body.princess-mode .bros-only { display: none !important; }
.cyber-bg,
.princess-bg { display: none; }

/* ——— BROS MODE: tech neon cyberpunk (ref: dark HUD + neon red) ——— */
body.bros-mode {
  --bg: #050505;
  --surface: #0c0c0e;
  --ink: #f5f5f5;
  --muted: #8a8a90;
  --accent: #ff2a3d;
  --accent-2: #ff5a6a;
  --line: rgba(255, 255, 255, 0.12);
  --glass: rgba(255, 255, 255, 0.04);
  --serif: "Syne", "Space Grotesk", system-ui, sans-serif;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --script: "JetBrains Mono", ui-monospace, monospace;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --red: var(--accent);
  --red-deep: #c01020;
  background: transparent;
  color: var(--ink);
}

body.bros-mode .cyber-bg {
  display: block;
  position: fixed;
  inset: 0;
  z-index: -1;
  /* VRTX-like void: vignette + faint dots; accents stay red/gold via brand chrome */
  background:
    radial-gradient(ellipse 85% 70% at 50% 45%, transparent 30%, rgba(0, 0, 0, 0.75) 100%),
    radial-gradient(600px 400px at 72% 18%, rgba(255, 42, 61, 0.08), transparent 55%),
    radial-gradient(500px 360px at 18% 78%, rgba(196, 165, 116, 0.05), transparent 50%),
    radial-gradient(1.2px 1.2px at 20% 30%, rgba(255, 255, 255, 0.045) 0.6px, transparent 0.7px),
    radial-gradient(1.2px 1.2px at 70% 60%, rgba(255, 255, 255, 0.03) 0.6px, transparent 0.7px),
    #030303;
  background-size:
    auto,
    auto,
    auto,
    48px 48px,
    48px 48px,
    auto;
}

body.bros-mode::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 18%, transparent 82%, rgba(0, 0, 0, 0.45) 100%),
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 3px,
      rgba(255, 255, 255, 0.01) 3px,
      rgba(255, 255, 255, 0.01) 4px
    );
}

/* HUD top bar */
.cyber-hud-bar {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 1rem 0 0.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.cyber-hud-bar .hud-live {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(255, 42, 61, 0.6);
}

.cyber-hud-bar .hud-live::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  vertical-align: middle;
  animation: blink 1.2s steps(2) infinite;
}

@keyframes blink {
  50% { opacity: 0.25; }
}

/* Hero */
body.bros-mode .hero {
  min-height: auto;
  padding-top: 2rem;
}

body.bros-mode .hero-date {
  font-family: var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--muted);
}

body.bros-mode .cyber-tag {
  margin: 0.75rem auto 1.5rem;
  max-width: 34rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255, 42, 61, 0.45);
  border-radius: 999px;
  background: rgba(255, 42, 61, 0.08);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  box-shadow: 0 0 24px rgba(255, 42, 61, 0.15);
}

body.bros-mode .glitch-text::before,
body.bros-mode .glitch-text::after { display: none; }

body.bros-mode .hero-stack {
  perspective: 1000px;
  width: min(640px, 94vw);
}

body.bros-mode .love-wallpaper {
  color: rgba(255, 255, 255, 0.06);
  font-family: var(--mono);
  font-size: clamp(1rem, 3vw, 1.5rem);
  letter-spacing: 0.28em;
  text-shadow: none;
  opacity: 1;
}

body.bros-mode .names {
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 40px rgba(255, 42, 61, 0.35);
  transform: translateZ(20px);
}

body.bros-mode .hero-polaroid,
body.bros-mode .glass-media.polaroid,
body.bros-mode .countdown-card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0.45rem;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 42, 61, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: rotateX(6deg) rotateY(-10deg) translateZ(30px);
  animation: card-3d 8s ease-in-out infinite;
}

body.bros-mode .hero-polaroid.reveal.is-in {
  transform: rotateX(6deg) rotateY(-10deg) translateZ(30px);
}

body.bros-mode .hero-polaroid img,
body.bros-mode .glass-media img,
body.bros-mode .countdown-bg {
  border-radius: 14px;
  filter: grayscale(0.35) contrast(1.1);
}

@keyframes card-3d {
  0%, 100% { transform: rotateX(6deg) rotateY(-10deg) translateZ(30px); }
  50% { transform: rotateX(3deg) rotateY(-4deg) translateZ(50px); }
}

/* Stats row */
.cyber-stats {
  width: min(1100px, 92vw);
  margin: 0.5rem auto 2rem;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.cyber-stat {
  padding: 1.1rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.cyber-stat strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.cyber-stat span {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.cyber-stat:nth-child(2) {
  background: rgba(255, 42, 61, 0.1);
  border-color: rgba(255, 42, 61, 0.35);
}

.cyber-stat:nth-child(2) strong {
  color: var(--accent);
  text-shadow: 0 0 18px rgba(255, 42, 61, 0.45);
}

/* Panels — sparse overlay chrome (VRTX), not heavy glass cards */
body.bros-mode .glass-panel,
body.bros-mode .glass-card,
body.bros-mode .glass-chip {
  position: relative;
  background: rgba(3, 3, 3, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.bros-mode .glass-panel {
  padding: clamp(1.6rem, 4vw, 2.6rem);
  margin: 1.1rem auto;
}

body.bros-mode .glass-panel::before,
body.bros-mode .glass-panel::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(196, 165, 116, 0.55);
  opacity: 0.85;
  pointer-events: none;
}

body.bros-mode .glass-panel::before {
  top: 8px;
  left: 8px;
  border-right: 0;
  border-bottom: 0;
}

body.bros-mode .glass-panel::after {
  right: 8px;
  bottom: 8px;
  border-left: 0;
  border-top: 0;
}

body.bros-mode .glass-card { border-radius: 0; transform: none; }

body.bros-mode h2,
body.bros-mode h3 {
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

body.bros-mode .cyber-kicker {
  margin: 0 0 0.55rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-align: center;
}

body.bros-mode .invite-text .cyber-kicker,
body.bros-mode .venue-text .cyber-kicker { text-align: left; }

body.bros-mode .btn {
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 28px rgba(255, 42, 61, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  font-size: 0.82rem;
}

body.bros-mode .btn:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
}

body.bros-mode .btn.btn-ghost,
body.bros-mode a.btn[href^="https"] {
  /* keep solid for CTAs */
}

body.bros-mode .cyber-divider {
  width: min(920px, 88vw);
  height: 1px;
  margin: 0.35rem auto;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), rgba(255, 42, 61, 0.7), rgba(255, 255, 255, 0.2), transparent);
}

body.bros-mode .calendar {
  background: rgba(12, 12, 14, 0.85);
  border: 1px solid var(--line);
  box-shadow: none;
  transform: none;
}

body.bros-mode .cal-grid .heart {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(255, 42, 61, 0.6);
}

body.bros-mode .venue-cyber {
  margin: 0 auto;
  width: min(280px, 75vw);
  padding: 0.5rem 0.5rem 1rem;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  transform: perspective(800px) rotateY(-6deg);
  animation: float-3d 7s ease-in-out infinite;
}

body.bros-mode .venue-cyber img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 12px;
  filter: grayscale(0.4) contrast(1.1);
}

body.bros-mode .venue-cyber figcaption {
  margin-top: 0.6rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}

@keyframes float-3d {
  0%, 100% { transform: perspective(800px) rotateY(-6deg) translateY(0); }
  50% { transform: perspective(800px) rotateY(-1deg) translateY(-10px); }
}

body.bros-mode .timeline { gap: 0.75rem; }
body.bros-mode .timeline::before { display: none; }

body.bros-mode .t-item.glass-chip {
  border-radius: 14px;
  padding: 1rem 0.55rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

body.bros-mode .t-item.glass-chip:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 42, 61, 0.45);
}

body.bros-mode .t-dot {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

body.bros-mode .countdown-card {
  transform: perspective(800px) rotateY(8deg);
  animation: float-3d-alt 7s ease-in-out infinite;
}

@keyframes float-3d-alt {
  0%, 100% { transform: perspective(800px) rotateY(8deg) translateY(0); }
  50% { transform: perspective(800px) rotateY(2deg) translateY(-10px); }
}

body.bros-mode .countdown-bg::before {
  background: linear-gradient(160deg, rgba(0, 0, 0, 0.55), rgba(40, 0, 8, 0.72));
}

body.bros-mode .carousel-track,
body.bros-mode .dress-ref {
  border: 1px solid var(--line);
  border-radius: 14px;
}

body.bros-mode .rsvp-form { padding: 1.25rem; }

body.bros-mode .rsvp-form input[type="text"] {
  background: rgba(0, 0, 0, 0.45);
  border-color: var(--line);
  color: var(--ink);
  border-radius: 10px;
}

body.bros-mode .rsvp-form input[type="text"]:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(255, 42, 61, 0.25);
}

body.bros-mode .contact-phone {
  color: var(--accent);
  text-shadow: 0 0 14px rgba(255, 42, 61, 0.4);
}

body.bros-mode .invite-text h2,
body.bros-mode .venue-text h2 { text-align: left; }
body.bros-mode .venue-text { text-align: left; }
body.bros-mode .venue-text .btn { align-self: flex-start; }

body.bros-mode .closing-photos { perspective: 900px; }
body.bros-mode .tilt-left { animation: polaroid-l 7s ease-in-out infinite; }
body.bros-mode .tilt-right { animation: polaroid-r 8s ease-in-out infinite; }

@keyframes polaroid-l {
  0%, 100% { transform: rotateY(16deg) rotateZ(-6deg); }
  50% { transform: rotateY(6deg) rotateZ(-2deg) translateY(-8px); }
}
@keyframes polaroid-r {
  0%, 100% { transform: rotateY(-16deg) rotateZ(6deg); }
  50% { transform: rotateY(-6deg) rotateZ(2deg) translateY(-8px); }
}

/* Player */
.bros-player {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 12000;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.8rem 0.5rem 0.5rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 8, 10, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 42, 61, 0.12);
  color: #f5f5f5;
}
.bros-player[hidden] { display: none !important; }
.bros-player-toggle {
  width: 2.3rem;
  height: 2.3rem;
  border: 0;
  border-radius: 10px;
  background: #ff2a3d;
  color: #fff;
  font-size: 0.7rem;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(255, 42, 61, 0.45);
}
.bros-player.is-paused .bros-player-toggle {
  background: rgba(255, 255, 255, 0.08);
  color: #ff2a3d;
  box-shadow: none;
}
.bros-player-meta { display: flex; flex-direction: column; gap: 0.15rem; min-width: 7.2rem; }
.bros-player-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  color: #ff2a3d;
}
.bros-player-vol { width: 100%; accent-color: #ff2a3d; cursor: pointer; }

/* ——— VRTX layout: menu top, stepper left, model back, content right ——— */

/* Top menu */
.cyber-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1010;
  height: 3.5rem;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  pointer-events: none;
}

.cyber-menu-item {
  pointer-events: auto;
  padding: 0.4rem 0.85rem;
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.cyber-menu-item:hover {
  color: #fff;
}

.cyber-menu-item.is-active {
  display: inline-block;
  color: #050505;
  background: #fff;
  transform: skewX(-14deg);
  font-weight: 600;
}

/* Left stepper */
.cyber-stepper {
  position: fixed;
  left: 1.1rem;
  top: 50%;
  z-index: 1010;
  transform: translateY(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0;
  pointer-events: none;
}

.cyber-stepper::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  bottom: 0.35rem;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.18);
}

.cyber-stepper a {
  position: relative;
  z-index: 1;
  width: 9px;
  height: 9px;
  margin: 0.55rem 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: transparent;
  pointer-events: auto;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.cyber-stepper a.is-active {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15);
  transform: scale(1.15);
}

/* Fullscreen model behind everything */
body.bros-mode .site-shell {
  display: block;
  position: relative;
  min-height: 100vh;
}

body.bros-mode .cyber-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* VRTX void lives HERE (stage sat on solid #030303 and hid .cyber-bg) */
  background:
    radial-gradient(ellipse 90% 75% at 42% 48%, transparent 22%, rgba(0, 0, 0, 0.82) 100%),
    radial-gradient(520px 340px at 70% 20%, rgba(255, 42, 61, 0.1), transparent 60%),
    radial-gradient(420px 300px at 15% 80%, rgba(196, 165, 116, 0.06), transparent 55%),
    radial-gradient(1px 1px at 25% 35%, rgba(255, 255, 255, 0.07) 0.55px, transparent 0.65px),
    radial-gradient(1px 1px at 65% 55%, rgba(255, 255, 255, 0.05) 0.55px, transparent 0.65px),
    radial-gradient(1px 1px at 45% 75%, rgba(255, 255, 255, 0.04) 0.55px, transparent 0.65px),
    #050505;
  background-size:
    auto,
    auto,
    auto,
    56px 56px,
    56px 56px,
    56px 56px,
    auto;
}

/* giant faded word behind character — like VRTX «FORGE» */
body.bros-mode .cyber-stage::after {
  content: "WED";
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-58%, -50%);
  z-index: 0;
  font-family: var(--serif, "Syne", sans-serif);
  font-weight: 800;
  font-size: clamp(8rem, 28vw, 22rem);
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.045);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

body.bros-mode .cyber-3d {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
}

/* Vertical brand like VRTX / FORGE */
body.bros-mode .cyber-brand {
  position: absolute;
  left: 12%;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  display: flex;
  gap: 0.85rem;
  pointer-events: none;
  opacity: 0.9;
}

body.bros-mode .cyber-brand-main,
body.bros-mode .cyber-brand-sub {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--serif, "Syne", sans-serif);
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
}

body.bros-mode .cyber-brand-main {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  color: #c4a574;
}

body.bros-mode .cyber-brand-sub {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.5rem;
}

body.bros-mode .cyber-stage-chrome {
  position: absolute;
  left: 3.2rem;
  bottom: 1.25rem;
  z-index: 2;
  width: min(240px, 40vw);
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 5, 5, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.bros-mode .forge-kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  color: var(--accent);
}

body.bros-mode .forge-name {
  margin: 0.3rem 0 0.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: #fff;
}

body.bros-mode .forge-status {
  margin: 0 0 0.4rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  min-height: 1.1em;
}

body.bros-mode .forge-track {
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

body.bros-mode .forge-track i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 42, 61, 0.6);
}

body.bros-mode .forge-pct {
  margin: 0.4rem 0 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

body.bros-mode .cyber-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.2rem;
  z-index: 2;
  margin: 0;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.45);
  animation: cue-pulse 1.6s ease-in-out infinite;
}

@keyframes cue-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/*
  Text overlay = Tailwind absolute w-full h-full z-[1001] top-0 left-0
  relative (not absolute): window.scrollY + deck.scrollHeight drive cyber3d
*/
body.bros-mode .cyber-deck {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100%;
  z-index: 1001;
  display: block;
  padding: 0 0 2rem;
  background: transparent;
  pointer-events: none;
}

body.bros-mode .cyber-deck > .wave,
body.bros-mode .cyber-deck > .cyber-divider,
body.bros-mode .cyber-deck > .princess-divider {
  display: none !important;
}

body.bros-mode .cyber-deck > .section {
  position: relative;
  width: min(420px, 42vw);
  min-height: 100vh;
  margin: 0 5vw 0 auto;
  padding: 2.5rem 1.75rem 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  pointer-events: auto;
  border: 0;
  border-radius: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(5, 5, 5, 0.35) 18%,
    rgba(5, 5, 5, 0.72) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: none;
  clip-path: none;
  opacity: 0.22;
  transform: translateY(22px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

body.bros-mode .cyber-deck > .section.is-in-view {
  opacity: 1;
  transform: none;
}

body.bros-mode .cyber-deck > .section.glass-panel {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(5, 5, 5, 0.4) 15%,
    rgba(5, 5, 5, 0.78) 100%
  );
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  padding: 2.5rem 1.75rem 2.5rem 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.bros-mode .cyber-deck > .section.glass-panel::before,
body.bros-mode .cyber-deck > .section.glass-panel::after {
  display: none;
}

body.bros-mode .cyber-deck > .section h2 {
  font-family: var(--serif, "Syne", sans-serif);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  margin: 0.15rem 0 0.35rem;
}

body.bros-mode .cyber-deck > .section p {
  color: rgba(245, 245, 245, 0.78);
  line-height: 1.55;
  max-width: 34ch;
}

body.bros-mode #hero {
  width: min(420px, 42vw) !important;
  margin: 0 5vw 0 auto !important;
  text-align: left;
  min-height: 100vh;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 2.5rem 1.75rem 2.5rem 2rem !important;
  border: 0 !important;
  border-left: 1px solid rgba(255, 255, 255, 0.28) !important;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(5, 5, 5, 0.4) 15%,
    rgba(5, 5, 5, 0.78) 100%
  ) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  opacity: 1 !important;
  transform: none !important;
}

body.bros-mode #hero .hero-date,
body.bros-mode #hero .cyber-tag,
body.bros-mode #hero .names {
  text-align: left;
}

body.bros-mode #hero .love-wallpaper,
body.bros-mode #hero .hero-polaroid {
  display: none !important;
}

body.bros-mode #hero .hero-stack {
  width: auto;
  min-height: 0;
  align-items: flex-start;
}

body.bros-mode #hero .names {
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  text-shadow: 0 0 40px rgba(255, 42, 61, 0.45);
}

body.bros-mode #hero .cyber-stats {
  width: 100%;
  margin-top: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

body.bros-mode .invite-grid,
body.bros-mode .venue-grid,
body.bros-mode .dress-cols {
  grid-template-columns: 1fr;
  gap: 1rem;
}

body.bros-mode .timeline {
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

body.bros-mode .countdown-card {
  width: 100%;
  max-width: none;
  transform: none !important;
  animation: none !important;
}

body.bros-mode .bros-player {
  z-index: 1010;
  left: 50%;
  right: auto;
  bottom: 1rem;
  transform: translateX(-50%);
}

body.bros-mode .cyber-enter {
  animation: none;
}

/* Boot — no viewport jitter */
html.boot-lock,
html.boot-lock body {
  overflow: hidden;
  overscroll-behavior: none;
}

.cyber-boot {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 20000;
  display: grid;
  place-items: center;
  background: #050505;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}
.cyber-boot[hidden] { display: none !important; }
.cyber-boot.is-open {
  opacity: 1;
  pointer-events: auto;
}
.cyber-boot.is-out {
  opacity: 0;
  pointer-events: none;
}

.cyber-boot-panel {
  width: min(480px, 92vw);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(12, 12, 14, 0.96);
  box-shadow: 0 0 60px rgba(255, 42, 61, 0.18);
  transform: translateZ(0);
}
.cyber-boot-brand {
  margin: 0 0 0.9rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: #ff2a3d;
}
.cyber-boot-log {
  margin: 0 0 1rem;
  min-height: 9.5rem;
  max-height: 12rem;
  overflow: auto;
  overflow-anchor: none;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #c8c8cc;
  white-space: pre-wrap;
}
.cyber-boot-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.cyber-boot-track i {
  display: block;
  height: 100%;
  width: 0;
  background: #ff2a3d;
  box-shadow: 0 0 12px rgba(255, 42, 61, 0.7);
  transition: width 0.2s ease;
}
.cyber-boot-pct {
  margin: 0.6rem 0 0.2rem;
  font-family: "Syne", sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.cyber-boot-hint {
  margin: 0;
  font-size: 0.75rem;
  color: #8a8a90;
}

.bros-mode-toast {
  position: fixed;
  left: 50%;
  bottom: 5.5rem;
  z-index: 10000;
  transform: translateX(-50%);
  padding: 0.7rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 8, 10, 0.9);
  color: #ff2a3d;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  backdrop-filter: blur(12px);
  pointer-events: none;
  animation: toast-in 0.3s ease;
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

body.bros-exit {
  animation: mode-fade 0.4s ease;
}
@keyframes mode-fade {
  to { filter: brightness(0.25); }
}

/* ——— Bros mobile = VRTX phone: centered cards, model behind, player bottom ——— */
@media (max-width: 820px) {
  body.bros-mode {
    overflow-x: clip;
  }

  /* top nav: scroll row + right fade/arrow cue */
  body.bros-mode .cyber-menu {
    display: flex !important;
    justify-content: flex-start;
    align-items: center;
    gap: 0.1rem;
    height: 2.6rem;
    padding: 0 1.85rem 0 1.6rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.55), transparent);
  }

  body.bros-mode .cyber-menu::-webkit-scrollbar {
    display: none;
  }

  body.bros-mode .cyber-menu::after {
    content: "›";
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1011;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 2.1rem;
    height: 2.6rem;
    padding-right: 0.45rem;
    font-size: 1.35rem;
    line-height: 1;
    color: #ff2a3d;
    pointer-events: none;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(5, 5, 5, 0.55) 35%,
      rgba(5, 5, 5, 0.92) 100%
    );
    animation: cyber-menu-nudge 1.4s ease-in-out infinite;
  }

  body.bros-mode .cyber-menu.is-scroll-end::after {
    opacity: 0;
    animation: none;
  }

  @keyframes cyber-menu-nudge {
    0%, 100% { transform: translateX(0); opacity: 0.85; }
    50% { transform: translateX(3px); opacity: 1; }
  }

  body.bros-mode .cyber-menu-item {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.56rem;
    letter-spacing: 0.1em;
    padding: 0.28rem 0.5rem;
  }

  body.bros-mode .cyber-menu-item.is-active {
    transform: skewX(-10deg);
  }

  body.bros-mode .cyber-stepper {
    left: 0.4rem;
    z-index: 1010;
  }

  body.bros-mode .cyber-stepper a {
    width: 7px;
    height: 7px;
    margin: 0.42rem 0;
  }

  body.bros-mode .cyber-brand,
  body.bros-mode .cyber-stage-chrome,
  body.bros-mode .cyber-scroll-cue {
    display: none !important;
  }

  body.bros-mode .cyber-stage::after {
    font-size: clamp(5rem, 42vw, 12rem);
    left: 52%;
    opacity: 0.9;
  }

  body.bros-mode .cyber-deck {
    padding: 0 0 5.25rem;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  /*
    Compact floating card + big vertical margins:
    model fills the phone; text is a smaller plate on top (VRTX mobile).
  */
  body.bros-mode .cyber-deck > .section,
  body.bros-mode #hero {
    width: min(84vw, 19.5rem) !important;
    max-width: min(84vw, 19.5rem) !important;
    min-height: 0 !important;
    max-height: none;
    overflow: visible;
    margin: 18vh auto 22vh !important;
    padding: 1.05rem 1rem 1.15rem !important;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0.4rem;
    background: rgba(5, 5, 5, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    border-radius: 0 !important;
    backdrop-filter: blur(7px) !important;
    -webkit-backdrop-filter: blur(7px) !important;
    box-shadow: none !important;
    opacity: 0.4;
    transform: translateY(12px);
    text-align: left;
  }

  body.bros-mode .cyber-deck > .section.is-in-view,
  body.bros-mode #hero.is-in-view,
  body.bros-mode #hero {
    opacity: 1 !important;
    transform: none !important;
  }

  body.bros-mode #hero {
    align-items: stretch;
    gap: 0.55rem !important;
    margin: calc(3rem + 10vh) auto 16vh !important; /* clear fixed top menu */
    padding-top: 1.15rem !important;
  }

  body.bros-mode #hero .hero-date {
    margin: 0;
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body.bros-mode #hero .cyber-tag {
    font-size: 0.62rem;
    line-height: 1.3;
    margin: 0 !important;
    max-width: 100%;
    padding: 0.35rem 0.55rem;
    white-space: normal;
    text-align: left;
  }

  body.bros-mode #hero .hero-stack {
    width: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    perspective: none;
    align-items: flex-start;
  }

  body.bros-mode #hero .names {
    position: relative;
    z-index: 2;
    font-size: clamp(1.35rem, 6.5vw, 1.85rem);
    line-height: 1.05;
    max-width: 100%;
    margin: 0 0 0.15rem !important;
    word-break: break-word;
    transform: none !important;
    text-shadow: 0 0 24px rgba(255, 42, 61, 0.4);
  }

  body.bros-mode #hero .cyber-stats {
    position: relative;
    z-index: 1;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.4rem !important;
    width: 100% !important;
    margin: 0.35rem 0 0 !important;
  }

  body.bros-mode #hero .cyber-stat {
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
  }

  body.bros-mode #hero .cyber-stats .cyber-stat strong {
    font-size: 1rem;
  }

  body.bros-mode #hero .cyber-stat span {
    font-size: 0.55rem;
  }

  body.bros-mode .cyber-deck > .section > *,
  body.bros-mode #hero > * {
    max-width: 100%;
  }

  body.bros-mode .cyber-deck > .section p {
    max-width: none;
  }

  body.bros-mode h2,
  body.bros-mode h3,
  body.bros-mode .cyber-kicker {
    color: #c4a574;
    text-align: left !important;
  }

  body.bros-mode .cyber-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    margin-bottom: 0.3rem;
  }

  body.bros-mode h2 {
    font-size: clamp(1.2rem, 5.5vw, 1.65rem);
    margin: 0 0 0.65rem;
  }

  body.bros-mode .invite-text,
  body.bros-mode .venue-text,
  body.bros-mode .invite-text h2,
  body.bros-mode .venue-text h2,
  body.bros-mode .invite-text p {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    align-items: flex-start !important;
  }

  body.bros-mode .invite-grid,
  body.bros-mode .venue-grid,
  body.bros-mode .dress-cols,
  body.bros-mode .calendar-wrap,
  body.bros-mode .calendar,
  body.bros-mode .countdown-card,
  body.bros-mode form,
  body.bros-mode .rsvp,
  body.bros-mode .contacts {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.bros-mode .invite-grid,
  body.bros-mode .venue-grid,
  body.bros-mode .dress-cols {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  body.bros-mode .timeline {
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
  }

  body.bros-mode input,
  body.bros-mode textarea,
  body.bros-mode select,
  body.bros-mode .btn {
    max-width: 100%;
  }

  /* player: center bottom like VRTX mobile */
  body.bros-mode .bros-player {
    left: 50% !important;
    right: auto !important;
    bottom: 0.85rem !important;
    width: min(16.5rem, calc(100vw - 2rem));
    max-width: calc(100vw - 2rem);
    transform: translateX(-50%) !important;
    transform-origin: center bottom;
    justify-content: center;
  }

  body.bros-mode .cyber-deck figure,
  body.bros-mode .cyber-deck .polaroid,
  body.bros-mode .cyber-deck .hero-polaroid,
  body.bros-mode .cyber-deck .love-wallpaper,
  body.bros-mode .cyber-deck .wave,
  body.bros-mode .cyber-deck .calendar-wrap,
  body.bros-mode .cyber-deck .venue-visual,
  body.bros-mode .cyber-deck .venue-cyber,
  body.bros-mode .cyber-deck .closing-photos {
    display: none !important;
  }

  /* last slide: hug text, sit low so face stays clear above */
  body.bros-mode #closing {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    margin: 48vh auto 5.75rem !important;
    padding: 0.85rem 0.9rem 0.95rem !important;
    padding-bottom: 0.95rem !important;
    gap: 0.35rem !important;
    justify-content: flex-start !important;
  }

  body.bros-mode #closing .closing-hi {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.35;
  }

  body.bros-mode #closing .names-sm {
    margin: 0.15rem 0 0;
    font-size: clamp(1.35rem, 6.5vw, 1.75rem);
    line-height: 1.05;
  }

  body.bros-mode #closing .credit-3d {
    margin: 0.45rem 0 0;
    font-size: 0.58rem;
  }

  body.bros-mode .cyber-deck > .section.glass-panel::before,
  body.bros-mode .cyber-deck > .section.glass-panel::after {
    display: block !important;
    width: 12px;
    height: 12px;
    border-color: rgba(255, 255, 255, 0.9);
    opacity: 1;
  }

  body.bros-mode #hero {
    position: relative;
  }

  body.bros-mode #hero::before,
  body.bros-mode #hero::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    pointer-events: none;
    z-index: 2;
  }

  body.bros-mode #hero::before {
    top: 8px;
    left: 8px;
    border-right: 0;
    border-bottom: 0;
  }

  body.bros-mode #hero::after {
    right: 8px;
    bottom: 8px;
    border-left: 0;
    border-top: 0;
  }

  .cyber-stats { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  body.bros-mode .cyber-deck > .section,
  body.bros-mode #hero {
    width: min(86vw, 19rem) !important;
    max-width: min(86vw, 19rem) !important;
    max-height: none;
    overflow: visible;
    margin: 18vh auto 22vh !important;
    padding: 0.95rem 0.9rem 1.05rem !important;
  }

  body.bros-mode .timeline {
    grid-template-columns: 1fr;
  }

  body.bros-mode .bros-player {
    bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.bros-mode .hero-polaroid,
  body.bros-mode .venue-cyber,
  body.bros-mode .countdown-card,
  body.bros-mode .tilt-left,
  body.bros-mode .tilt-right,
  body.bros-mode .cyber-enter {
    animation: none !important;
  }
}

/* ——— PRINCESS MODE → VOGUE editorial (magazine, no 3D) ——— */
body.princess-mode {
  --bg: #faf8f5;
  --ink: #0a0a0a;
  --muted: #5c5c5c;
  --accent: #b01030;
  --accent-2: #0a0a0a;
  --line: #d8d2c8;
  --glass: #fff;
  --serif: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --script: "Playfair Display", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --red: var(--accent);
  --red-deep: #8a0c24;
  background: var(--bg);
  color: var(--ink);
  display: block;
}

body.princess-mode .princess-bg {
  display: block;
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, #faf8f5 0%, #f3efe8 100%);
  overflow: hidden;
}

body.princess-mode .princess-bg i { display: none; }

body.princess-mode .cyber-deck {
  position: relative;
  z-index: 1;
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 0 0 4rem;
  background: transparent;
  pointer-events: auto;
}

body.princess-mode .cyber-deck > .wave,
body.princess-mode .cyber-deck > .cyber-divider,
body.princess-mode .cyber-deck > .princess-divider {
  display: none !important;
}

/* Masthead */
.vogue-masthead {
  display: none;
  width: min(1120px, 92vw);
  margin: 1.25rem auto 0;
  padding: 1rem 0 1.35rem;
  text-align: center;
  border-bottom: 1px solid var(--ink, #0a0a0a);
}

body.princess-mode .vogue-masthead {
  display: block;
  color: #0a0a0a;
  border-color: #0a0a0a;
}

.vogue-masthead-issue {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #5c5c5c;
}

.vogue-masthead-logo {
  margin: 0.15rem 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: clamp(3.2rem, 12vw, 6.5rem);
  letter-spacing: 0.18em;
  line-height: 0.9;
  text-transform: uppercase;
}

.vogue-masthead-sub {
  margin: 0.35rem 0 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Cover hero — fashion spread */
body.princess-mode #hero {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  min-height: calc(100vh - 10rem);
  margin: 0 0 3rem !important;
  padding: 2.5rem 0 3rem !important;
  border: 0 !important;
  border-bottom: 1px solid #0a0a0a !important;
  background: transparent !important;
  backdrop-filter: none !important;
  width: 100% !important;
  max-width: none !important;
  text-align: left;
  opacity: 1 !important;
  transform: none !important;
}

body.princess-mode #hero .hero-date {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b01030;
}

body.princess-mode #hero .princess-tag {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.15rem;
  color: #5c5c5c;
  border: 0;
  background: none;
  padding: 0;
  box-shadow: none;
  max-width: none;
}

body.princess-mode #hero .hero-stack {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem 2.75rem;
  align-items: end;
  width: 100%;
  min-height: 0;
  padding: 0;
  perspective: none;
}

body.princess-mode #hero .love-wallpaper { display: none !important; }

body.princess-mode #hero .names {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: clamp(3.4rem, 9vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: none;
  color: #0a0a0a;
  text-shadow: none;
  transform: none;
  align-self: end;
}

body.princess-mode #hero .names .amp {
  font-style: italic;
  font-weight: 400;
  color: #b01030;
}

body.princess-mode #hero .hero-polaroid {
  display: block !important;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transform: none !important;
  animation: none !important;
}

body.princess-mode #hero .hero-polaroid img {
  width: 100%;
  height: min(68vh, 560px);
  object-fit: cover;
  border-radius: 0;
  filter: grayscale(0.15) contrast(1.05);
}

body.princess-mode #hero .princess-charms {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: 100%;
  margin: 0.5rem 0 0;
  border-top: 1px solid #0a0a0a;
}

body.princess-mode .princess-charm {
  padding: 0.85rem 0.65rem 0.75rem;
  border: 0;
  border-right: 1px solid #d8d2c8;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

body.princess-mode .princess-charm:last-child { border-right: 0; }

body.princess-mode .princess-charm strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0a0a0a;
}

body.princess-mode .princess-charm span {
  display: block;
  margin-top: 0.2rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5c5c5c;
}

/* Editorial sections — centered columns */
body.princess-mode .cyber-deck > .section {
  width: 100%;
  min-height: 0;
  margin: 0 0 2.75rem;
  padding: 2.25rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 0;
  border-top: 1px solid #d8d2c8;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  clip-path: none;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

body.princess-mode .cyber-deck > .section > * {
  margin-left: auto;
  margin-right: auto;
}

body.princess-mode .wishes-slider,
body.princess-mode .wish-slide,
body.princess-mode .lead,
body.princess-mode .invite-text,
body.princess-mode .venue-text {
  text-align: center;
}

body.princess-mode .invite-text p,
body.princess-mode .venue-text p,
body.princess-mode .section p,
body.princess-mode .lead {
  max-width: 38ch;
  margin-left: auto;
  margin-right: auto;
}

body.princess-mode .wishes,
body.princess-mode .contacts,
body.princess-mode .rsvp {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
}

body.princess-mode .wishes-slider {
  width: min(36rem, 100%);
  margin: 0 auto 0.5rem;
}

body.princess-mode .wishes-nav {
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
}

body.princess-mode .contact-name,
body.princess-mode .contact-phone {
  display: block;
  width: 100%;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

body.princess-mode .contact-phone {
  margin-bottom: 1rem;
}

body.princess-mode .contacts > .btn {
  margin-left: auto;
  margin-right: auto;
}

body.princess-mode .cyber-deck > .section.glass-panel,
body.princess-mode .glass-panel,
body.princess-mode .glass-card {
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid #d8d2c8 !important;
  border-radius: 0 !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

body.princess-mode .glass-panel::before,
body.princess-mode .glass-panel::after { display: none !important; }

body.princess-mode h2,
body.princess-mode h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  color: #0a0a0a;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  margin: 0 0 1rem;
}

body.princess-mode .invite-grid,
body.princess-mode .venue-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
}

body.princess-mode .dress-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

body.princess-mode .invite-text p,
body.princess-mode .venue-text p,
body.princess-mode .section p {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.55;
  color: #2a2a2a;
  max-width: 38ch;
}

body.princess-mode .calendar,
body.princess-mode .countdown-card,
body.princess-mode .glass-media {
  border-radius: 0 !important;
  border: 1px solid #0a0a0a !important;
  background: #fff !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  transform: none !important;
  animation: none !important;
}

body.princess-mode .polaroid,
body.princess-mode .venue-photo,
body.princess-mode .venue-castle {
  border-radius: 0;
  transform: none !important;
  animation: none !important;
  box-shadow: none;
  border: 1px solid #0a0a0a;
  background: #fff;
  padding: 0.45rem;
}

body.princess-mode .polaroid img,
body.princess-mode .glass-media img {
  border-radius: 0;
  filter: grayscale(0.2) contrast(1.04);
}

body.princess-mode .btn {
  border-radius: 0;
  background: #0a0a0a;
  color: #faf8f5;
  border: 1px solid #0a0a0a;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.85rem 1.4rem;
}

body.princess-mode .btn:hover {
  background: #b01030;
  border-color: #b01030;
  color: #fff;
}

body.princess-mode .timeline {
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

body.princess-mode .closing {
  text-align: center;
  border-top: 2px solid #0a0a0a;
  padding-top: 2.5rem;
}

body.princess-mode .closing-hi {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.35rem;
  color: #5c5c5c;
  text-align: center;
}

body.princess-mode .names-sm {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  text-align: center;
}

body.princess-mode .credit-3d {
  display: none !important;
}

body.princess-mode .fairy-kicker {
  margin: 0 auto 0.65rem;
  width: 100%;
  text-align: center !important;
  font-family: "JetBrains Mono", monospace !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: #b01030 !important;
  font-style: normal !important;
}

body.princess-mode .love-wallpaper {
  opacity: 0.06;
  color: #0a0a0a;
  font-family: "Playfair Display", serif;
}

@keyframes vogue-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

body.princess-mode .vogue-enter {
  animation: vogue-enter 0.55s ease both;
}

/* Boot — print desk */
.princess-boot {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  place-items: center;
  background: #faf8f5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.princess-boot[hidden] { display: none !important; }
.princess-boot.is-open {
  opacity: 1;
  pointer-events: auto;
}
.princess-boot.is-out { opacity: 0; }
.princess-boot-panel {
  width: min(26rem, 88vw);
  padding: 1.75rem 1.5rem;
  border: 1px solid #0a0a0a;
  background: #fff;
}
.princess-boot-brand {
  margin: 0 0 1rem;
  font-family: "Playfair Display", serif;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 1.1rem;
}
.princess-boot-log {
  margin: 0 0 1rem;
  min-height: 7rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  line-height: 1.55;
  color: #5c5c5c;
  white-space: pre-wrap;
}
.princess-boot-track {
  height: 2px;
  background: #e5e0d8;
}
.princess-boot-track i {
  display: block;
  height: 100%;
  width: 0;
  background: #b01030;
  transition: width 0.2s linear;
}
.princess-boot-hint {
  margin: 0.75rem 0 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #888;
}

.princess-player {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 12000;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.75rem 0.45rem 0.45rem;
  border: 1px solid #0a0a0a;
  border-radius: 0;
  background: #fff;
  color: #0a0a0a;
  box-shadow: none;
}
.princess-player[hidden] { display: none !important; }
.princess-player-toggle {
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 0;
  background: #b01030;
  color: #fff;
  font-size: 0.65rem;
  cursor: pointer;
}
.princess-player.is-paused .princess-player-toggle {
  background: #0a0a0a;
}
.princess-player-meta { display: flex; flex-direction: column; gap: 0.1rem; min-width: 7rem; }
.princess-player-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  color: #b01030;
}
.princess-player-vol { width: 100%; accent-color: #b01030; cursor: pointer; }

.princess-mode-toast {
  position: fixed;
  left: 50%;
  bottom: 5.25rem;
  z-index: 10000;
  transform: translateX(-50%);
  padding: 0.55rem 1rem;
  border: 1px solid #0a0a0a;
  border-radius: 0;
  background: #fff;
  color: #0a0a0a;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  animation: toast-in 0.3s ease;
}

body.princess-exit { animation: mode-fade 0.4s ease; }

@media (max-width: 820px) {
  body.princess-mode .cyber-deck {
    width: min(100%, 94vw);
    padding-bottom: 5.5rem;
  }

  body.princess-mode #hero {
    gap: 1rem;
    min-height: 0;
    padding: 1.5rem 0 2rem !important;
  }

  body.princess-mode #hero .hero-stack {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  body.princess-mode #hero .hero-polaroid {
    order: -1;
  }

  body.princess-mode #hero .hero-polaroid img {
    height: min(48vh, 360px);
  }

  body.princess-mode #hero .names {
    font-size: clamp(2.6rem, 14vw, 3.8rem);
  }

  body.princess-mode #hero .princess-charms {
    grid-template-columns: 1fr;
  }

  body.princess-mode .princess-charm {
    border-right: 0;
    border-bottom: 1px solid #d8d2c8;
  }

  body.princess-mode .invite-grid,
  body.princess-mode .venue-grid,
  body.princess-mode .dress-cols {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  body.princess-mode .timeline { grid-template-columns: 1fr; }

  body.princess-mode .princess-player {
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  body.princess-mode .vogue-enter { animation: none !important; }
}
