/* === Wedding invitation — editorial cinematic === */
:root {
  --ink: #1a1612;
  --ink-2: #14110d;
  --paper: #f4ecdc;
  --paper-dim: #e8dec8;
  --brass: #b89a6a;
  --brass-deep: #8a6f47;
  --brass-soft: #d9c192;
  --rose: #c98a7a;
  --leaf: #6b7a52;
  --shadow: rgba(0, 0, 0, 0.45);

  --display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --hand: "Caveat", "Homemade Apple", cursive;
  --sans: "Inter Tight", "Inter", -apple-system, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}

body {
  cursor: none;
  overflow: hidden;
}

/* === Custom cursor === */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--paper);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, background 0.25s ease;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid var(--brass-soft);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s cubic-bezier(.2,.8,.2,1), height 0.3s cubic-bezier(.2,.8,.2,1), border-color 0.3s ease;
}
.cursor-ring.hover {
  width: 64px; height: 64px;
  border-color: var(--paper);
}
.cursor-dot.hover { width: 2px; height: 2px; }

/* === Chapter rail === */
.rail {
  position: fixed; inset: 0;
  display: flex;
  flex-direction: row;
  width: max-content;
  height: 100vh;
  will-change: transform;
  transition: transform 1.1s cubic-bezier(.7, 0, .2, 1);
}

.chapter {
  position: relative;
  width: 100vw;
  height: 100vh;
  flex: 0 0 100vw;
  overflow: hidden;
  padding: clamp(32px, 5vw, 80px) clamp(32px, 6vw, 120px);
  display: flex;
  flex-direction: column;
}

/* === Chapter chrome (number + title) === */
.chap-meta {
  position: absolute;
  top: clamp(28px, 3.5vw, 52px);
  left: clamp(32px, 6vw, 120px);
  right: calc(clamp(32px, 6vw, 120px) + 180px); /* keep clear of right-side TOC */
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-soft);
  opacity: 0.7;
  z-index: 4;
}
.chap-meta .num { font-feature-settings: "tnum"; }
.chap-meta .label-en { color: var(--paper); opacity: 0.85; }
.chap-meta .label-ro { font-style: italic; color: var(--brass); }

/* === Navigation === */
.nav {
  position: fixed;
  bottom: clamp(24px, 3vw, 44px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 18px;
  align-items: center;
  z-index: 100;
}
.nav-dots {
  display: flex;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(20, 17, 13, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(184, 154, 106, 0.25);
  border-radius: 100px;
}
.nav-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(244, 236, 220, 0.25);
  border: none;
  padding: 0;
  cursor: none;
  transition: all 0.4s ease;
  position: relative;
}
.nav-dot.active {
  background: var(--brass-soft);
  width: 22px;
  border-radius: 6px;
}
.nav-dot:hover:not(.active) { background: rgba(244, 236, 220, 0.55); }

.nav-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(20, 17, 13, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(184, 154, 106, 0.25);
  color: var(--paper);
  cursor: none;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
}
.nav-arrow:hover { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.nav-arrow:disabled { opacity: 0.3; }

.scroll-hint {
  position: fixed;
  bottom: clamp(24px, 3vw, 44px);
  right: clamp(32px, 6vw, 120px);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  opacity: 0.6;
  z-index: 100;
  display: flex; align-items: center; gap: 10px;
}
.scroll-hint .line {
  width: 28px; height: 1px;
  background: currentColor;
  position: relative;
  overflow: hidden;
}
.scroll-hint .line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  animation: lineSlide 2.4s ease-in-out infinite;
}
@keyframes lineSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* === Top brand strip === */
.brand {
  position: fixed;
  top: clamp(24px, 3vw, 40px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--brass-soft);
  z-index: 100;
  display: flex; align-items: center; gap: 14px;
  pointer-events: none;
}
.brand .star { width: 8px; height: 8px; opacity: 0.8; }

/* === Reveal animations === */
.letter {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.9s cubic-bezier(.2,.8,.2,1), opacity 0.7s ease;
  will-change: transform;
}
.letter.in { transform: translateY(0); opacity: 1; }

/* line-wrap: enough vertical padding so descenders (g, p, ț, ș) and italic kerning don't clip */
.line-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.12em 0.06em 0.22em;
  margin: -0.12em -0.06em -0.22em;
}

.fade-up {
  transform: translateY(28px);
  opacity: 0;
  transition: transform 1s cubic-bezier(.2,.8,.2,1), opacity 0.8s ease;
}
.fade-up.in { transform: translateY(0); opacity: 1; }

.mask-img {
  position: relative;
  overflow: hidden;
}
.mask-img::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--ink);
  transform: scaleX(1);
  transform-origin: right;
  transition: transform 1.4s cubic-bezier(.7, 0, .2, 1);
}
.mask-img.in::after { transform: scaleX(0); }
.mask-img > * {
  transform: scale(1.15);
  transition: transform 2.2s cubic-bezier(.2,.8,.2,1);
}
.mask-img.in > * { transform: scale(1); }

/* === Tweaks panel theme overrides === */
[data-tweaks-root] {
  --tp-bg: rgba(20, 17, 13, 0.92);
  --tp-fg: var(--paper);
  --tp-accent: var(--brass);
}

/* === Type system === */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
}
.kicker {
  font-family: var(--hand);
  font-size: clamp(28px, 3vw, 44px);
  color: var(--brass-soft);
  font-weight: 400;
  line-height: 1;
}
.display {
  font-family: var(--display);
  font-weight: 300;
  font-style: italic;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.body {
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.55;
  color: rgba(244, 236, 220, 0.78);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: transparent;
  border: 1px solid var(--brass);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: none;
  transition: all 0.4s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--brass);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s cubic-bezier(.7,0,.2,1);
  z-index: -1;
}
.btn:hover { color: var(--ink); border-color: var(--brass); }
.btn:hover::before { transform: scaleY(1); }
.btn .arrow { transition: transform 0.4s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-solid {
  background: var(--brass);
  color: var(--ink);
  border-color: var(--brass);
}
.btn-solid::before { background: var(--paper); }
.btn-solid:hover { color: var(--ink); border-color: var(--paper); }

/* === Floral motif === */
.motif {
  position: absolute;
  pointer-events: none;
  opacity: 0.4;
}
.motif path, .motif circle, .motif line {
  stroke: var(--brass);
  stroke-width: 0.6;
  fill: none;
  vector-effect: non-scaling-stroke;
}
.motif .leaf-fill { fill: var(--brass); opacity: 0.15; stroke: none; }

.motif.draw path, .motif.draw line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 2.4s cubic-bezier(.5,.1,.2,1);
}
.motif.draw.in path, .motif.draw.in line {
  stroke-dashoffset: 0;
}

/* === Texture / grain === */
.grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
}

/* === Chapter 1: Hero === */
.ch-hero {
  background: radial-gradient(ellipse at 70% 40%, #2a2218 0%, var(--ink) 60%);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  padding-right: calc(clamp(32px, 6vw, 120px) + 200px);
}
.ch-hero .left { position: relative; z-index: 2; }
.ch-hero .right {
  position: relative;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-eyebrow {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 32px;
}
.hero-eyebrow::before {
  content: "";
  width: 48px;
  height: 1px;
  background: var(--brass);
}
.hero-names {
  font-size: clamp(64px, 9.5vw, 150px);
  margin: 0;
  line-height: 0.95;
}
.hero-names .amp {
  font-family: var(--hand);
  font-style: normal;
  margin: 0 0.18em 0 0.08em;
  display: inline-block;
  color: var(--brass);
  font-size: 0.72em;
  margin: 0 0.05em;
  transform: translateY(-0.05em) rotate(-6deg);
}
.hero-names .stack {
  display: block;
}
.hero-names .stack:nth-child(2) {
  padding-left: clamp(20px, 5vw, 90px);
  margin-top: 0.12em;
}
.hero-meta {
  margin-top: 48px;
  display: grid;
  grid-template-columns: auto 1px auto auto;
  gap: 24px;
  align-items: center;
}
.hero-meta .divider {
  width: 1px;
  height: 36px;
  background: rgba(184, 154, 106, 0.4);
}
.hero-meta .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 6px;
}
.hero-meta .val {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  color: var(--paper);
}
.hero-meta .small {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--brass-soft);
  letter-spacing: 0.1em;
}

/* Hero placeholder visual */
.hero-vis {
  position: relative;
  width: min(540px, 100%);
  aspect-ratio: 3/4;
}
.hero-vis .frame {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(184,154,106,0.15), rgba(20,17,13,0)),
    linear-gradient(45deg, #3a2d1f, #1a1612 60%);
  border: 1px solid rgba(184, 154, 106, 0.25);
  overflow: hidden;
}
.hero-vis .frame::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 30% 20%, rgba(217, 193, 146, 0.18), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(201, 138, 122, 0.12), transparent 50%);
}
.hero-vis .label {
  position: absolute;
  bottom: 24px;
  left: 24px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-soft);
  opacity: 0.6;
}
.hero-vis .corner {
  position: absolute;
  width: 28px; height: 28px;
  border-color: var(--brass);
  border-style: solid;
  border-width: 0;
}
.hero-vis .corner.tl { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.hero-vis .corner.tr { top: -1px; right: -1px; border-top-width: 1px; border-right-width: 1px; }
.hero-vis .corner.bl { bottom: -1px; left: -1px; border-bottom-width: 1px; border-left-width: 1px; }
.hero-vis .corner.br { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }

.hero-vis .floating-tag {
  position: absolute;
  background: var(--paper);
  color: var(--ink);
  padding: 14px 18px;
  font-family: var(--display);
  font-style: italic;
  font-size: 14px;
  font-weight: 400;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  transform: rotate(-4deg);
}
.hero-vis .floating-tag.tl { top: 24px; right: -36px; left: auto; }
.hero-vis .floating-tag.br {
  bottom: 24px; left: -36px; right: auto;
  transform: rotate(3deg);
  background: var(--brass);
}

/* === Chapter 2: Countdown === */
.ch-countdown {
  background:
    radial-gradient(ellipse at 20% 90%, rgba(138, 111, 71, 0.25), transparent 60%),
    var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: clamp(32px, 8vw, 160px);
}
.ch-countdown .stamp {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1;
  margin: 0 0 18px;
}
.ch-countdown .stamp em {
  font-family: var(--hand);
  font-style: normal;
  color: var(--brass);
  font-size: 0.85em;
}
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: clamp(40px, 5vw, 88px);
  margin-top: 60px;
  align-items: end;
}
.countdown-cell .num {
  font-family: var(--display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(80px, 11vw, 180px);
  line-height: 0.85;
  color: var(--paper);
  font-feature-settings: "tnum";
  display: block;
  position: relative;
}
.countdown-cell .num::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 32px;
  height: 1px;
  background: var(--brass);
}
.countdown-cell .lab {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass-soft);
}
.countdown-cell .lab .ro { color: var(--brass); font-style: italic; opacity: 0.7; display: block; margin-top: 4px; font-family: var(--display); font-size: 13px; letter-spacing: 0.05em; text-transform: none; }

.ch-countdown .lower {
  position: absolute;
  bottom: clamp(120px, 14vh, 180px);
  left: clamp(32px, 8vw, 160px);
  right: clamp(32px, 8vw, 160px);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
}
.ch-countdown .quote {
  max-width: 360px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 20px;
  line-height: 1.4;
  color: rgba(244, 236, 220, 0.7);
}
.ch-countdown .quote::before {
  content: "“";
  font-size: 60px;
  line-height: 0;
  color: var(--brass);
  vertical-align: -0.4em;
  margin-right: 6px;
}

/* === Chapter 3: Schedule === */
.ch-schedule {
  background: var(--ink-2);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
  padding-left: clamp(32px, 8vw, 160px);
  padding-right: calc(clamp(32px, 8vw, 160px) + 180px);
}
.sched-side h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(60px, 8vw, 120px);
  line-height: 0.92;
  margin: 16px 0 32px;
}
.sched-side h2 em {
  font-family: var(--hand);
  font-style: normal;
  color: var(--brass);
  font-size: 0.6em;
  display: block;
  margin-top: 8px;
}
.sched-side p { max-width: 380px; }

.sched-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.sched-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid rgba(184, 154, 106, 0.18);
  align-items: center;
  position: relative;
  transition: padding-left 0.4s ease;
}
.sched-item:last-child { border-bottom: 1px solid rgba(184, 154, 106, 0.18); }
.sched-item:hover { padding-left: 16px; }
.sched-item:hover::before {
  transform: scaleY(1);
}
.sched-item::before {
  content: "";
  position: absolute;
  left: 0; top: 50%; transform: translateY(-50%) scaleY(0);
  width: 3px; height: 60%;
  background: var(--brass);
  transition: transform 0.4s ease;
  transform-origin: center;
}

.sched-time {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--brass);
  font-feature-settings: "tnum";
}
.sched-event h4 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 26px;
  color: var(--paper);
}
.sched-event .ro {
  font-family: var(--hand);
  font-size: 18px;
  color: var(--brass-soft);
}
.sched-icon {
  width: 28px; height: 28px;
  color: var(--brass);
  opacity: 0.6;
}

/* === Chapter 4: Gallery === */
.ch-gallery {
  background: var(--ink);
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 18px;
  padding: 80px 240px 80px 80px !important;
}
.ch-gallery .gal-meta {
  grid-column: 1 / 4;
  grid-row: 1 / 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 28px 20px 8px;
  min-width: 0;
}
.ch-gallery .gal-meta h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(40px, 4.2vw, 64px);
  line-height: 1.0;
  margin: 12px 0;
  word-break: keep-all;
}
.ch-gallery .gal-meta h2 em {
  font-family: var(--hand);
  color: var(--brass);
  font-style: normal;
  display: block;
  font-size: 0.55em;
}

.gal-tile {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #3a2d1f, #1a1612);
  border: 1px solid rgba(184, 154, 106, 0.15);
}
.gal-tile .ph {
  position: absolute; inset: 0;
}
.gal-tile .ph::before {
  content: "";
  position: absolute; inset: 0;
}
.gal-tile.t1 .ph::before { background: radial-gradient(circle at 30% 30%, rgba(217,193,146,0.35), transparent 60%), linear-gradient(135deg, #4a3a28, #1f1812); }
.gal-tile.t2 .ph::before { background: radial-gradient(ellipse at 60% 70%, rgba(201,138,122,0.3), transparent 65%), linear-gradient(45deg, #2a2218, #3a2818); }
.gal-tile.t3 .ph::before { background: radial-gradient(circle at 70% 30%, rgba(107,122,82,0.4), transparent 60%), linear-gradient(180deg, #1a2018, #2a3022); }
.gal-tile.t4 .ph::before { background: radial-gradient(circle at 50% 50%, rgba(184,154,106,0.3), transparent 60%), linear-gradient(45deg, #3a2818, #1a1410); }
.gal-tile.t5 .ph::before { background: radial-gradient(ellipse at 30% 70%, rgba(217,193,146,0.25), transparent 60%), linear-gradient(135deg, #2a2018, #3a2818); }
.gal-tile.t6 .ph::before { background: radial-gradient(circle at 60% 40%, rgba(201,138,122,0.35), transparent 60%), linear-gradient(180deg, #3a2418, #1a1410); }
.gal-tile.t7 .ph::before { background: radial-gradient(ellipse at 50% 50%, rgba(184,154,106,0.4), transparent 65%), #2a1f14; }

.gal-tile .tag {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.55;
  z-index: 2;
}
.gal-tile .tag::before {
  content: "";
  display: inline-block;
  width: 8px; height: 1px;
  background: var(--brass);
  margin-right: 8px;
  vertical-align: middle;
}

.gal-a { grid-column: 4 / 8; grid-row: 1 / 5; }
.gal-b { grid-column: 8 / 13; grid-row: 1 / 4; }
.gal-c { grid-column: 1 / 4; grid-row: 4 / 9; }
.gal-d { grid-column: 4 / 7; grid-row: 5 / 9; }
.gal-e { grid-column: 7 / 10; grid-row: 4 / 7; }
.gal-f { grid-column: 10 / 13; grid-row: 4 / 9; }
.gal-g { grid-column: 7 / 10; grid-row: 7 / 9; }

/* === Chapter 5: Venue === */
.ch-venue {
  background:
    linear-gradient(180deg, rgba(20,17,13,0) 0%, rgba(20,17,13,0.9) 100%),
    radial-gradient(ellipse at 70% 30%, rgba(107,122,82,0.2), transparent 60%),
    var(--ink-2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: clamp(32px, 5vw, 80px) calc(clamp(32px, 8vw, 160px) + 180px) clamp(32px, 5vw, 80px) clamp(32px, 8vw, 160px);
  align-items: center;
}
.venue-card {
  background: rgba(20, 17, 13, 0.6);
  border: 1px solid rgba(184, 154, 106, 0.25);
  padding: 56px 48px;
  position: relative;
  backdrop-filter: blur(6px);
}
.venue-card .corner-orn {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  color: var(--brass);
  opacity: 0.6;
}
.venue-card h3 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 56px;
  line-height: 1;
  margin: 16px 0 8px;
}
.venue-card .ro-name {
  font-family: var(--hand);
  color: var(--brass);
  font-size: 28px;
  margin-bottom: 28px;
  display: block;
}
.venue-card address {
  font-style: normal;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(244, 236, 220, 0.8);
  margin-bottom: 28px;
  display: block;
}
.venue-card .meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(184,154,106,0.2);
  margin-bottom: 32px;
}
.venue-card .meta .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 4px;
}
.venue-card .meta .val {
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  color: var(--paper);
}

.map-frame {
  position: relative;
  height: 75vh;
  border: 1px solid rgba(184, 154, 106, 0.25);
  background: #0d100a;
  overflow: hidden;
}
.map-frame .map-svg { width: 100%; height: 100%; display: block; }
.map-frame .pin {
  position: absolute;
  top: 48%;
  left: 52%;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.map-frame .pin .dot {
  width: 14px; height: 14px;
  background: var(--brass);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(184,154,106,0.2), 0 0 0 16px rgba(184,154,106,0.1);
  animation: pulse 2.4s ease-in-out infinite;
}
.map-frame .pin .lbl {
  margin-top: 12px;
  background: var(--paper);
  color: var(--ink);
  padding: 6px 12px;
  font-family: var(--display);
  font-style: italic;
  font-size: 14px;
  white-space: nowrap;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(184,154,106,0.2), 0 0 0 16px rgba(184,154,106,0.1); }
  50% { box-shadow: 0 0 0 14px rgba(184,154,106,0.15), 0 0 0 28px rgba(184,154,106,0.05); }
}

/* === Chapter 6: RSVP === */
.ch-rsvp {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(184, 154, 106, 0.18), transparent 60%),
    var(--ink);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
  padding: clamp(32px, 5vw, 80px) calc(clamp(32px, 8vw, 160px) + 180px) clamp(32px, 5vw, 80px) clamp(32px, 8vw, 160px);
}
.rsvp-side h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(72px, 9vw, 140px);
  line-height: 0.9;
  margin: 16px 0 24px;
}
.rsvp-side h2 em {
  font-family: var(--hand);
  font-style: normal;
  color: var(--brass);
  font-size: 0.55em;
  display: block;
}
.rsvp-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
}
.rsvp-form .full { grid-column: 1 / -1; }
.field {
  position: relative;
  border-bottom: 1px solid rgba(184,154,106,0.3);
  padding: 20px 0 10px;
  transition: border-color 0.3s ease;
}
.field:focus-within { border-color: var(--brass); }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--paper);
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  resize: none;
  padding: 4px 0;
  cursor: none;
}
.field input::placeholder, .field textarea::placeholder {
  color: rgba(244, 236, 220, 0.3);
}

.attendance-toggle {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.attendance-toggle input { display: none; }
.attendance-toggle label {
  flex: 1;
  margin: 0;
  padding: 16px 20px;
  border: 1px solid rgba(184,154,106,0.3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  text-align: center;
  cursor: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.attendance-toggle input:checked + label {
  background: var(--brass);
  color: var(--ink);
  border-color: var(--brass);
}
.attendance-toggle label:hover { border-color: var(--brass); }

/* === Chapter 7: Registry === */
.ch-registry {
  background: var(--ink-2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: clamp(32px, 5vw, 80px) calc(clamp(32px, 8vw, 160px) + 180px) clamp(32px, 5vw, 80px) clamp(32px, 8vw, 160px);
  align-items: center;
}
.reg-intro h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(60px, 8vw, 110px);
  line-height: 0.92;
  margin: 16px 0 24px;
}
.reg-intro h2 em {
  font-family: var(--hand);
  font-style: normal;
  color: var(--brass);
  font-size: 0.55em;
  display: block;
}
.reg-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.reg-card {
  position: relative;
  padding: 32px 36px;
  background: rgba(20, 17, 13, 0.5);
  border: 1px solid rgba(184, 154, 106, 0.25);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  transition: all 0.4s ease;
  cursor: none;
}
.reg-card:hover {
  border-color: var(--brass);
  background: rgba(184, 154, 106, 0.06);
  transform: translateX(8px);
}
.reg-card .icon {
  width: 36px; height: 36px;
  color: var(--brass);
  flex-shrink: 0;
  margin-bottom: 18px;
}
.reg-card h4 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 30px;
  line-height: 1;
  margin: 0 0 6px;
  color: var(--paper);
}
.reg-card .ro {
  font-family: var(--hand);
  font-size: 18px;
  color: var(--brass-soft);
  display: block;
  margin-bottom: 12px;
}
.reg-card p {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(244, 236, 220, 0.65);
  margin: 0;
}
.reg-card .arrow {
  width: 32px; height: 32px;
  border: 1px solid var(--brass);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brass);
  transition: all 0.3s ease;
}
.reg-card:hover .arrow {
  background: var(--brass);
  color: var(--ink);
  transform: rotate(-45deg);
}

/* === Chapter 8: Guestbook === */
.ch-guestbook {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(201, 138, 122, 0.15), transparent 60%),
    var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 5vw, 80px);
  text-align: center;
}
.gb-eyebrow { margin-bottom: 16px; }
.gb-title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(60px, 8vw, 130px);
  line-height: 0.95;
  margin: 0 0 24px;
  max-width: 900px;
}
.gb-title em {
  font-family: var(--hand);
  font-style: normal;
  color: var(--brass);
  font-size: 0.65em;
}
.gb-sub {
  max-width: 520px;
  text-align: center;
  margin-bottom: 48px;
}

.ch-guestbook .gb-eyebrow,
.ch-guestbook .gb-title,
.ch-guestbook .gb-sub,
.ch-guestbook .gb-input {
  position: relative;
  z-index: 2;
}

.ch-guestbook .gb-input {
  width: min(640px, 80%);
}

.gb-input {
  width: min(720px, 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.gb-input textarea {
  width: 100%;
  min-height: 120px;
  background: rgba(20, 17, 13, 0.5);
  border: 1px solid rgba(184, 154, 106, 0.3);
  padding: 24px;
  color: var(--paper);
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  text-align: center;
  outline: none;
  resize: none;
  cursor: none;
}
.gb-input textarea:focus { border-color: var(--brass); }
.gb-input textarea::placeholder { color: rgba(244, 236, 220, 0.3); }
.gb-input .row {
  display: flex;
  gap: 14px;
  align-items: center;
}
.gb-input input {
  flex: 1;
  background: rgba(20, 17, 13, 0.5);
  border: 1px solid rgba(184, 154, 106, 0.3);
  padding: 18px 24px;
  color: var(--paper);
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  text-align: center;
  outline: none;
  cursor: none;
}
.gb-input input:focus { border-color: var(--brass); }
.gb-input input::placeholder { color: rgba(244, 236, 220, 0.3); }

.gb-wishes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.gb-wish {
  position: absolute;
  font-family: var(--hand);
  font-size: 20px;
  color: var(--brass-soft);
  opacity: 0.55;
  transform: rotate(var(--rot, -2deg));
  max-width: 200px;
  text-align: left;
  line-height: 1.35;
}
.gb-wish .who {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 4px;
  color: var(--brass);
  opacity: 0.7;
}

.gb-final {
  position: absolute;
  bottom: clamp(120px, 14vh, 160px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--display);
  font-style: italic;
  font-size: 16px;
  color: var(--brass-soft);
  opacity: 0.7;
  text-align: center;
}
.gb-final::before, .gb-final::after {
  content: "";
  display: inline-block;
  width: 40px; height: 1px;
  background: var(--brass);
  vertical-align: middle;
  margin: 0 16px;
}

/* === Floating particles (petals / dust) === */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.particle {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 193, 146, 0.7), rgba(184, 154, 106, 0));
  opacity: 0;
  animation: floatUp var(--dur, 14s) linear infinite;
  animation-delay: var(--del, 0s);
  left: var(--x, 50%);
  bottom: -20px;
  filter: blur(0.4px);
}
.particle.petal {
  width: 10px; height: 14px;
  background: linear-gradient(135deg, var(--rose), var(--brass));
  border-radius: 60% 40% 60% 40% / 70% 30% 70% 30%;
  opacity: 0.55;
}
@keyframes floatUp {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10%  { opacity: var(--op, 0.6); }
  50%  { transform: translate(var(--drift, 40px), -50vh) rotate(180deg); }
  90%  { opacity: var(--op, 0.6); }
  100% { transform: translate(calc(var(--drift, 40px) * -1), -110vh) rotate(360deg); opacity: 0; }
}

/* === Hero parallax orbs === */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  will-change: transform;
}
.orb-1 { width: 400px; height: 400px; background: rgba(184, 154, 106, 0.25); top: -100px; right: -100px; }
.orb-2 { width: 300px; height: 300px; background: rgba(201, 138, 122, 0.18); bottom: -80px; left: 20%; }
.orb-3 { width: 220px; height: 220px; background: rgba(107, 122, 82, 0.18); top: 30%; left: -60px; }

/* Subtle breathing on countdown numbers */
.countdown-cell .num {
  animation: breath 4s ease-in-out infinite;
}
.countdown-cell:nth-child(2) .num { animation-delay: 0.4s; }
.countdown-cell:nth-child(3) .num { animation-delay: 0.8s; }
.countdown-cell:nth-child(4) .num { animation-delay: 1.2s; }
@keyframes breath {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.85; transform: translateY(-4px); }
}

/* Schedule item floating icon */
.sched-item .sched-icon {
  animation: spin-slow 24s linear infinite;
  display: inline-block;
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

/* Gallery tile parallax shimmer */
.gal-tile .ph::after {
  content: "";
  position: absolute;
  inset: -50%;
  background: linear-gradient(115deg, transparent 30%, rgba(244, 236, 220, 0.08) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 6s ease-in-out infinite;
  animation-delay: var(--shim, 0s);
}
.gal-tile.t1 .ph::after { --shim: 0s; }
.gal-tile.t2 .ph::after { --shim: 1s; }
.gal-tile.t3 .ph::after { --shim: 2s; }
.gal-tile.t4 .ph::after { --shim: 3s; }
.gal-tile.t5 .ph::after { --shim: 1.5s; }
.gal-tile.t6 .ph::after { --shim: 2.5s; }
.gal-tile.t7 .ph::after { --shim: 0.5s; }
@keyframes shimmer {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

/* Gentle hover lift on gallery tiles */
.gal-tile { transition: transform 0.6s cubic-bezier(.2,.8,.2,1); }
.gal-tile:hover { transform: scale(1.02); }
.gal-tile:hover .ph { transform: scale(1.08); transition: transform 1.4s ease; }

/* Map pin pulse already exists; add radar sweep */
.map-frame::before {
  content: "";
  position: absolute;
  top: 48%; left: 52%;
  width: 200px; height: 200px;
  margin: -100px 0 0 -100px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(184, 154, 106, 0.3) 30deg, transparent 60deg);
  animation: radar 4s linear infinite;
  pointer-events: none;
  z-index: 2;
  opacity: 0.6;
}
@keyframes radar {
  to { transform: rotate(360deg); }
}

/* Hero name letter glow on reveal */
.hero-names .letter.in {
  text-shadow: 0 0 30px rgba(184, 154, 106, 0.15);
}
.toc {
  position: fixed;
  right: clamp(16px, 2vw, 32px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  background: rgba(20, 17, 13, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 18px 18px 18px 22px;
  border: 1px solid rgba(184, 154, 106, 0.22);
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.toc .toc-item { flex-direction: row-reverse; justify-content: flex-end; }
.toc .toc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 236, 220, 0.4);
  transition: color 0.4s ease;
}
.toc .toc-item .bullet {
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: all 0.4s ease;
}
.toc .toc-item.active { color: var(--brass-soft); }
.toc .toc-item.active .bullet { width: 32px; background: var(--brass); }

@media (max-width: 920px) {
  .toc { display: none; }
  .ch-hero { grid-template-columns: 1fr; }
  .ch-hero .right { display: none; }
  .ch-schedule, .ch-venue, .ch-rsvp, .ch-registry { grid-template-columns: 1fr; }
  .ch-gallery { grid-template-columns: 1fr; grid-template-rows: auto; }
}

/* === Custom additions for A & C === */
.hero-vis .hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  filter: saturate(0.95) contrast(1.02);
}
.hero-vis .frame::before { z-index: 2; mix-blend-mode: overlay; opacity: 0.6; }
.hero-vis .corner { z-index: 3; }

/* Make gallery tiles render the background photo cleanly (override the gradient) */
.gal-tile .ph {
  background-color: #1a1410;
}
.gal-tile.t1 .ph::before,
.gal-tile.t2 .ph::before,
.gal-tile.t3 .ph::before,
.gal-tile.t4 .ph::before,
.gal-tile.t5 .ph::before,
.gal-tile.t6 .ph::before,
.gal-tile.t7 .ph::before {
  background: linear-gradient(180deg, rgba(20,17,13,0) 50%, rgba(20,17,13,0.5) 100%);
}

/* Map iframe fills the frame */
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* RSVP textarea matches the form's input styling */
.rsvp-form textarea {
  outline: none;
}
.rsvp-form textarea:focus {
  border-color: var(--brass) !important;
}
