/* ═════════════════════════════════════════════════════════════
   Anil & Victor · Hochzeitswebsite
   Palette: Ivory · Blush · Sage · Gold
   ═════════════════════════════════════════════════════════════ */

:root {
  --ivory: #FAF7F1;
  --ivory-deep: #F3EDE2;
  --blush: #DBA9A9;
  --blush-soft: #F6E9E6;
  --blush-deep: #C98F8F;
  --sage: #9FAF97;
  --sage-deep: #71856B;
  --sage-soft: #EAEFE6;
  --gold: #C0A268;
  --gold-soft: #E9DDC3;
  --ink: #443F3C;
  --ink-soft: #857B73;
  --white: #FFFFFF;

  --script: 'Parisienne', cursive;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', sans-serif;

  --shadow: 0 10px 34px rgba(88, 74, 58, 0.10);
  --shadow-soft: 0 6px 20px rgba(88, 74, 58, 0.07);
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

img, svg, iframe { max-width: 100%; }

::selection { background: var(--gold-soft); color: var(--ink); }

/* ═══ Intro overlay ═══════════════════════════════════════════ */

.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(55% 45% at 15% 12%, var(--blush-soft) 0%, transparent 62%),
    radial-gradient(50% 42% at 85% 88%, var(--sage-soft) 0%, transparent 62%),
    var(--ivory);
  cursor: pointer;
}

.intro-stage { text-align: center; padding: 1rem; }

/* — Envelope — */

.envelope {
  position: relative;
  width: min(340px, 84vw);
  aspect-ratio: 340 / 230;
  margin: 0 auto;
  perspective: 1000px;
}

.intro:not(.opening) .envelope { animation: env-float 3.2s ease-in-out infinite; }

.env-back {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(var(--blush-soft) 0%, var(--blush-soft) 42%, #F1EAE0 42%);
  border: 1px solid var(--gold-soft);
  box-shadow: var(--shadow);
}

.env-front {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.env-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 67%;
  z-index: 4;
  transform-origin: top center;
  transition: transform 0.6s cubic-bezier(0.55, 0.06, 0.35, 1);
}

.env-flap svg { display: block; width: 100%; height: 100%; }

.env-seal {
  position: absolute;
  left: 50%;
  top: 64%;
  z-index: 5;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #D8BF8C, var(--gold) 70%);
  color: var(--white);
  font-family: var(--script);
  font-size: 1.22rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(139, 109, 55, 0.35);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.env-seal em { font-style: normal; font-size: 0.68em; padding: 0 0.08em; opacity: 0.9; }

.intro-hint {
  margin-top: 1.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  animation: hint-pulse 2.2s ease-in-out infinite;
  transition: opacity 0.4s ease;
}

/* — Invitation card inside the envelope — */

.env-card {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 88%;
  transform: translate(-50%, -44%) scale(0.52);
  background: var(--white);
  border: 1px solid var(--gold-soft);
  border-radius: 14px;
  padding: 1.5rem 1.1rem 1.3rem;
  box-shadow: 0 10px 30px rgba(88, 74, 58, 0.14);
  transition: transform 0.85s cubic-bezier(0.25, 0.7, 0.25, 1);
}

.intro-ring-wrap {
  position: relative;
  width: min(11rem, 46vw);
  margin: 0 auto 0.9rem;
}

.intro-ring { display: block; width: 100%; height: auto; }

.intro .ring-path { stroke-dasharray: 100; stroke-dashoffset: 100; }
.intro .ring-sprigs { opacity: 0; }

.intro-monogram {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--script);
  font-size: clamp(2.1rem, 7vw, 2.7rem);
  color: var(--ink);
  opacity: 0;
}

.intro-monogram em { font-style: normal; color: var(--gold); font-size: 0.62em; padding: 0 0.06em; }

.intro-names {
  font-family: var(--serif);
  font-size: 0.98rem;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0;
}

.intro-date {
  font-family: var(--serif);
  font-size: 0.88rem;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--gold);
  margin-top: 0.45rem;
  opacity: 0;
}

/* — Opening choreography (classes set by JS) — */

.intro.opening .env-flap { transform: rotateX(180deg); z-index: 1; }
.intro.opening .env-seal { opacity: 0; transform: scale(0.5); }
.intro.opening .intro-hint { opacity: 0; animation: none; }

.intro.out .env-card { transform: translate(-50%, -104%) scale(0.8); }

.intro.settle .env-card { transform: translate(-50%, -50%) scale(1); }

.intro.settle .env-back,
.intro.settle .env-front {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.intro.settle .env-flap { opacity: 0; transition: opacity 0.5s ease; }

.intro.out .ring-path { animation: ring-draw 1.4s cubic-bezier(0.5, 0, 0.3, 1) 0.35s forwards; }
.intro.out .ring-sprigs { animation: fade-in 0.8s ease 1.25s forwards; }
.intro.out .intro-monogram { animation: fade-in 0.9s ease 0.85s forwards; }
.intro.out .intro-names { animation: fade-up 0.9s ease 1.15s forwards; }
.intro.out .intro-date { animation: fade-up 0.9s ease 1.35s forwards; }

.intro.intro-leave {
  transform: translateY(-100%);
  transition: transform 0.95s cubic-bezier(0.7, 0, 0.3, 1);
}

@keyframes ring-draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes env-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes hint-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

/* ═══ Header & language switch ════════════════════════════════ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem clamp(1rem, 4vw, 2.2rem);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.site-header.scrolled {
  background: rgba(250, 247, 241, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(68, 63, 60, 0.07);
}

.header-monogram {
  font-family: var(--script);
  font-size: 1.55rem;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}

.header-monogram em { font-style: normal; color: var(--gold); font-size: 0.8em; }

.lang-switch {
  display: flex;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  padding: 0.22rem;
}

.lang-switch button {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 0.32rem 0.68rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.lang-switch button:hover { color: var(--ink); }

.lang-switch button[aria-pressed="true"] {
  background: var(--sage-deep);
  color: var(--white);
}

.lang-switch button:focus-visible,
.btn:focus-visible,
.scroll-cue:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ═══ Hero ════════════════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.25rem 5rem;
  background:
    radial-gradient(58% 46% at 12% 10%, var(--blush-soft) 0%, transparent 60%),
    radial-gradient(52% 44% at 90% 88%, var(--sage-soft) 0%, transparent 60%),
    var(--ivory);
  overflow: hidden;
}

.hero-corner {
  position: absolute;
  width: clamp(150px, 26vw, 320px);
  height: auto;
  opacity: 0.85;
  pointer-events: none;
}

.hero-corner.tl { top: -6px; left: -6px; }
.hero-corner.br { bottom: -6px; right: -6px; transform: rotate(180deg); }

.hero-content { position: relative; max-width: 46rem; }

.hero-pre {
  font-family: var(--serif);
  font-size: clamp(0.95rem, 2.6vw, 1.2rem);
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 1.2rem;
  animation: fade-up 1.1s ease 0.1s backwards;
}

.hero-names {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(3.4rem, 12vw, 6.4rem);
  line-height: 1.15;
  color: var(--ink);
  animation: fade-up 1.1s ease 0.3s backwards;
}

.hero-names .amp { color: var(--gold); font-size: 0.68em; padding: 0 0.05em; }

.orn-divider {
  display: block;
  width: min(15rem, 70vw);
  height: auto;
  margin: 0.9rem auto;
  animation: fade-in 1.2s ease 0.7s backwards;
}

.hero-date {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink);
  animation: fade-up 1.1s ease 0.55s backwards;
}

.hero-venue {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  color: var(--ink-soft);
  margin-top: 0.35rem;
  animation: fade-up 1.1s ease 0.7s backwards;
}

/* — Bloom mode: hidden floral easter egg (toggle in footer) — */

.bloom-extras { display: none; }

body.bloom .bloom-extras { display: block; }

.hero-corner.tr { top: -6px; right: -6px; transform: scaleX(-1); }
.hero-corner.bl { bottom: -6px; left: -6px; transform: scaleY(-1); }

.bloom-flower,
.bloom-bud,
.bloom-leaf {
  position: absolute;
  height: auto;
  opacity: 0.75;
  animation: sway 5s ease-in-out infinite;
  pointer-events: none;
}

.bloom-leaf { opacity: 0.6; }

@keyframes sway {
  0%, 100% { rotate: -7deg; }
  50% { rotate: 9deg; }
}

.petals {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.petal {
  position: absolute;
  top: -30px;
  left: var(--l);
  width: var(--s);
  height: calc(var(--s) * 1.35);
  background: linear-gradient(135deg, #F3D8D3, var(--blush));
  border-radius: 62% 38% 58% 42% / 55% 45% 60% 40%;
  animation: petal-fall var(--d) linear var(--delay) infinite;
  will-change: transform;
  opacity: 0;
}

.petal:nth-child(3n) { background: linear-gradient(135deg, #EFE3C8, var(--gold-soft)); }
.petal:nth-child(4n) { background: linear-gradient(135deg, var(--sage-soft), var(--sage)); opacity: 0; }

@keyframes petal-fall {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  8% { opacity: 0.85; }
  100% { transform: translate3d(var(--drift), 105vh, 0) rotate(230deg); opacity: 0.6; }
}

.scroll-cue {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2.4rem;
  height: 2.4rem;
  color: var(--gold);
  animation: bob 2.4s ease-in-out 1.8s infinite;
}

.scroll-cue svg { width: 100%; height: 100%; }

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ═══ Sections (general) ══════════════════════════════════════ */

.section { padding: clamp(4rem, 9vw, 6.5rem) 1.25rem; }

.section-inner { max-width: 60rem; margin: 0 auto; text-align: center; }

.section-title {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 3.3rem);
  line-height: 1.25;
  color: var(--sage-deep);
  margin-bottom: 0.6rem;
}

.section-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 2.4rem;
}

/* ═══ Countdown ═══════════════════════════════════════════════ */

.countdown-section {
  background: var(--ivory-deep);
}

.countdown-section .section-title { margin-bottom: 2.2rem; }

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(4.4rem, 8.5rem));
  justify-content: center;
  gap: clamp(0.6rem, 2.4vw, 1.4rem);
}

.count-tile {
  background: var(--white);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(0.9rem, 2.6vw, 1.5rem) 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.count-num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 5.5vw, 2.9rem);
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.count-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.countdown-married {
  font-family: var(--script);
  font-size: clamp(2rem, 6vw, 2.8rem);
  color: var(--blush-deep);
}

/* ═══ Timeline / Programm ═════════════════════════════════════ */

.timeline {
  list-style: none;
  max-width: 34rem;
  margin: 0 auto;
  text-align: left;
  position: relative;
  padding-left: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 1.75rem;
  top: 1.2rem;
  bottom: 1.2rem;
  width: 1px;
  background: linear-gradient(var(--gold-soft), var(--gold), var(--gold-soft));
}

.tl-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
  padding: 1.15rem 0;
}

.tl-icon {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  color: var(--sage-deep);
}

.tl-icon svg { width: 1.8rem; height: 1.8rem; }

.tl-body { padding-top: 0.15rem; }

.tl-time {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--white);
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  padding: 0.12rem 0.7rem;
  margin-bottom: 0.35rem;
}

.tl-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--ink);
}

.tl-desc { color: var(--ink-soft); font-size: 0.98rem; }

/* ═══ Location ════════════════════════════════════════════════ */

.location-section { background: var(--sage-soft); }

.venue-card { margin-bottom: 2rem; }

.venue-pin { width: 2.2rem; height: 2.2rem; color: var(--blush-deep); margin-bottom: 0.4rem; }

.venue-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.9rem;
  color: var(--ink);
}

.venue-addr {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
  margin-bottom: 2.4rem;
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: clamp(260px, 42vw, 380px);
  border: 0;
  filter: grayscale(0.25) sepia(0.08);
}

.travel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  text-align: center;
}

.travel-card {
  background: var(--white);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.6rem 1.4rem;
}

.travel-card svg { width: 2.1rem; height: 2.1rem; color: var(--sage-deep); margin-bottom: 0.5rem; }

.travel-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.travel-card p { font-size: 0.95rem; color: var(--ink-soft); white-space: pre-line; }

@media (min-width: 720px) {
  .travel-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ═══ Buttons ═════════════════════════════════════════════════ */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85rem 1.9rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn:active { transform: translateY(0); }

.btn-fill {
  background: var(--sage-deep);
  color: var(--white);
  border: 1px solid var(--sage-deep);
}

.btn-fill:hover { background: #62755C; }

.btn-outline {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  border: 1px solid var(--gold);
}

.btn-outline:hover { background: var(--white); }

/* ═══ RSVP ════════════════════════════════════════════════════ */

.rsvp-section {
  background:
    radial-gradient(60% 70% at 50% 0%, var(--blush-soft) 0%, transparent 70%),
    var(--ivory);
}

.rsvp-section .orn-divider { margin-bottom: 1.4rem; }

.rsvp-text { max-width: 32rem; margin: 0 auto 0.6rem; }

.rsvp-deadline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--blush-deep);
  margin-bottom: 2.2rem;
}

/* — RSVP form — */

.rsvp-form {
  max-width: 34rem;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.5rem, 4vw, 2.3rem);
  text-align: left;
}

.form-field { margin-bottom: 1.3rem; border: 0; padding: 0; }

.form-field label,
.form-field legend {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

.form-field input[type="text"],
.form-field textarea {
  width: 100%;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--gold-soft);
  border-radius: 12px;
  padding: 0.7rem 0.95rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-field input[type="text"]:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(192, 162, 104, 0.15);
}

.form-field textarea { resize: vertical; min-height: 5.5rem; }

.attend-options { display: flex; flex-direction: column; gap: 0.55rem; }

.attend-pill { display: block; cursor: pointer; }

.attend-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.attend-pill span {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  padding: 0.65rem 1.2rem;
  text-align: center;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.attend-pill:hover span { border-color: var(--gold); }

.attend-pill input:checked + span {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  color: var(--white);
}

.attend-pill input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.rsvp-submit {
  display: block;
  width: 100%;
  border: 1px solid var(--sage-deep);
  margin-top: 0.4rem;
}

.rsvp-submit:disabled {
  opacity: 0.65;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.rsvp-success { padding-top: 0.5rem; }

.rsvp-success .orn-divider { margin: 0 auto 1rem; }

.rsvp-success-title {
  font-family: var(--script);
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  color: var(--sage-deep);
  margin-bottom: 0.3rem;
}

.rsvp-success-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

/* ═══ Details cards (dress code & gifts) ══════════════════════ */

.details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  max-width: 60rem;
  margin: 0 auto;
}

.card {
  background: var(--white);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 2rem 1.7rem;
  text-align: center;
}

.card svg { width: 2.3rem; height: 2.3rem; color: var(--blush-deep); margin-bottom: 0.6rem; }

.card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.card p { font-size: 0.98rem; color: var(--ink-soft); }

@media (min-width: 900px) {
  .details-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ═══ Footer ══════════════════════════════════════════════════ */

.site-footer {
  text-align: center;
  padding: 3.5rem 1.25rem 2.6rem;
  background: var(--ivory-deep);
}

.site-footer .orn-divider { width: min(13rem, 60vw); margin: 0 auto 1.2rem; }

.footer-names {
  font-family: var(--script);
  font-size: 2.1rem;
  color: var(--ink);
  line-height: 1.3;
}

.footer-meta {
  font-family: var(--serif);
  letter-spacing: 0.12em;
  font-size: 0.98rem;
  color: var(--ink-soft);
  margin-top: 0.2rem;
}

.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--sage-deep);
  margin-top: 0.9rem;
}

.bloom-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.6rem;
  padding: 0.3rem 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-soft);
}

.bloom-toggle:hover { color: var(--ink); }

.bloom-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

.bloom-label {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.bloom-switch {
  position: relative;
  width: 46px;
  height: 25px;
  border-radius: 999px;
  background: var(--ivory);
  border: 1px solid var(--gold-soft);
  transition: background 0.35s ease, border-color 0.35s ease;
}

.bloom-knob {
  position: absolute;
  top: 50%;
  left: 3px;
  width: 19px;
  height: 19px;
  transform: translateY(-50%) rotate(0deg);
  transition: left 0.35s cubic-bezier(0.3, 1.2, 0.4, 1), transform 0.5s ease;
}

.bloom-knob svg { display: block; width: 100%; height: 100%; }

.bloom-toggle[aria-pressed="true"] .bloom-switch {
  background: var(--sage-soft);
  border-color: var(--sage);
}

.bloom-toggle[aria-pressed="true"] .bloom-knob {
  left: calc(100% - 22px);
  transform: translateY(-50%) rotate(360deg);
}

.footer-made {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 1.8rem;
}

.footer-heart { width: 0.85rem; height: 0.85rem; color: var(--blush-deep); }

/* ═══ Toast ═══════════════════════════════════════════════════ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%) translateY(calc(100% + 2.5rem));
  z-index: 500;
  background: var(--ink);
  color: var(--ivory);
  font-size: 0.9rem;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.4s cubic-bezier(0.3, 1.2, 0.4, 1);
  max-width: min(92vw, 30rem);
  text-align: center;
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* ═══ Scroll reveal ═══════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══ Reduced motion ══════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .scroll-cue { animation: none; }
  .petal { display: none; }
  .bloom-flower, .bloom-bud, .bloom-leaf { animation: none; }
}
