/* =========================================================
   FREDOLINA WEDDING — Design System v2
   ========================================================= */

:root {
  /* Palette */
  --bg:            #f5f0e6;
  --bg-alt:        #eae3d4;
  --surface:       #fffaf3;
  --surface-strong:#fff;
  --text:          #1a1a1a;
  --text-muted:    #5c564e;
  --text-light:    #8a8278;
  --line:          #d4c5b0;
  --line-light:    #e5ddd0;

  --brand:         #9c6f3c;
  --brand-deep:    #6b4422;
  --wine:          #6b2d3e;
  --gold:          #c4a265;
  --navy:          #0e1b2a;

  /* Spacing */
  --section-pad:   clamp(5rem, 10vw, 9rem);
  --gap:           clamp(1.2rem, 2.5vw, 2rem);

  /* Radius — editorial / sharp */
  --radius:        0.5rem;
  --radius-lg:     0.75rem;

  /* Shadows */
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.04);
  --shadow:        0 8px 30px rgba(0,0,0,0.07);
  --shadow-lg:     0 20px 50px rgba(0,0,0,0.10);

  /* Easing */
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out:    cubic-bezier(0.65, 0, 0.35, 1);
}

/* =========================================================
   RESET & BASE
   ========================================================= */

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

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "EB Garamond", "Georgia", serif;
  font-size: clamp(1.05rem, 1.2vw, 1.15rem);
  font-weight: 400;
  line-height: 1.75;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures contextual;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(196, 162, 101, 0.25);
}

.couple-card:first-child ::selection {
  background: rgba(14, 27, 42, 0.20);
}

.couple-card:last-child ::selection {
  background: rgba(107, 45, 62, 0.22);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 {
  margin: 0;
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-optical-sizing: auto;
  line-height: 1.1;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--navy);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 500;
}

p  { margin: 0; }
a  { color: inherit; text-decoration: none; }
ul { margin: 0; padding-left: 1.2rem; }
li { margin-bottom: 0.5rem; }

img { max-width: 100%; display: block; }

section[id] {
  scroll-margin-top: 5rem;
}

.amp {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 300;
}

.body-text {
  color: var(--text-muted);
  max-width: 42rem;
  line-height: 1.8;
  font-variant-numeric: oldstyle-nums proportional-nums;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.eyebrow {
  font-family: "Manrope", system-ui, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--brand);
  margin-bottom: 0.6rem;
  font-variant-numeric: lining-nums tabular-nums;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   ACCESS GATE
   ========================================================= */

body.site-locked {
  overflow: hidden;
}

body.site-locked .site-header,
body.site-locked main,
body.site-locked .site-footer,
body.site-locked .scroll-progress {
  pointer-events: none;
  user-select: none;
}

.access-gate {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    radial-gradient(1000px 500px at 20% 0%, rgba(196, 162, 101, 0.22), transparent 65%),
    linear-gradient(160deg, rgba(12, 24, 36, 0.82), rgba(13, 11, 17, 0.82));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 320ms ease, visibility 320ms ease;
}

body.site-unlocked .access-gate {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.access-gate-card {
  width: min(30rem, 92vw);
  padding: clamp(1.35rem, 3.2vw, 2.3rem);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 1rem;
  background: rgba(10, 22, 34, 0.58);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  color: #f6f1e8;
  text-align: center;
}

.access-gate-kicker {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.78);
}

.access-gate h1 {
  margin-top: 0.45rem;
  margin-bottom: 0.75rem;
  font-size: clamp(2.15rem, 6.6vw, 3.2rem);
  font-weight: 400;
  color: #fff8ee;
}

.access-gate-copy {
  margin-bottom: 1rem;
  color: rgba(246, 241, 232, 0.92);
  line-height: 1.55;
}

.access-gate-form {
  display: grid;
  gap: 0.7rem;
}

.access-gate-input-wrap {
  position: relative;
}

.access-gate-form input {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.7rem 4.7rem 0.7rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1rem;
}

.access-gate-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.access-gate-toggle {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  min-width: 3.8rem;
  height: 2.1rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.access-gate-toggle:hover,
.access-gate-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
}

.access-gate-form .btn {
  width: 100%;
}

.access-gate-remember {
  margin-top: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.88rem;
  color: rgba(246, 241, 232, 0.82);
}

.access-gate-error {
  min-height: 1.3rem;
  margin-top: 0.55rem;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.9rem;
  color: #ffd9c6;
}

/* =========================================================
   SCROLL PROGRESS BAR
   ========================================================= */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--wine);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 100;
  pointer-events: none;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem clamp(1.2rem, 3vw, 3rem);
  background: transparent;
  transition: background 400ms var(--ease-out-quart),
              padding 400ms var(--ease-out-quart),
              box-shadow 400ms var(--ease-out-quart);
}

.site-header.scrolled {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  background: rgba(245, 240, 230, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.3rem, 2.8vw, 1.7rem);
  font-weight: 500;
  font-style: normal;
  font-variant: small-caps;
  letter-spacing: 0.20em;
  color: #fff;
  transition: color 400ms var(--ease-out-quart);
}

.site-header.scrolled .brand {
  color: var(--text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 1.5vw, 1.5rem);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.site-nav a {
  position: relative;
  color: rgba(255,255,255,0.8);
  transition: color 400ms var(--ease-out-quart);
}

.site-header.scrolled .site-nav a {
  color: var(--text-muted);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 280ms var(--ease-in-out);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform-origin: left;
  transform: scaleX(1);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
}

.site-header.scrolled .site-nav a:hover,
.site-header.scrolled .site-nav a:focus-visible {
  color: var(--brand);
}

.site-nav a.active::after {
  transform-origin: left;
  transform: scaleX(1);
}

/* Hamburger */
.menu-toggle {
  display: none;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  border-radius: 0.4rem;
  width: 2.6rem;
  height: 2.4rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.22rem;
  cursor: pointer;
  transition: border-color 400ms var(--ease-out-quart),
              background 400ms var(--ease-out-quart);
}

.site-header.scrolled .menu-toggle {
  border-color: var(--line);
  background: var(--surface-strong);
}

.menu-toggle span {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: #fff;
  transition: background 400ms var(--ease-out-quart);
}

.site-header.scrolled .menu-toggle span {
  background: var(--text);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  display: grid;
  align-items: end;
  justify-items: center;
  isolation: isolate;
  overflow: hidden;
}


/* Film grain overlay */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.10;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 150px;
  mix-blend-mode: overlay;
}

.hero-slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  z-index: -2;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;                        /* inherit the fixed height from .hero-slides */
  background-size: cover;
  background-position: var(--desktop-pos, center);
  opacity: 0;
  transition: opacity 1400ms ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  animation: ken-burns 10s ease-in-out forwards;
}

@keyframes ken-burns {
  from { transform: scale(1.01); }
  to   { transform: scale(1.06); }
}

.hero-slide:nth-child(2).active {
  animation-name: ken-burns-alt;
}

@keyframes ken-burns-alt {
  from { transform: scale(1.01) translate(-0.2%, -0.1%); }
  to   { transform: scale(1.06) translate(0.2%, 0.1%); }
}

.hero-slide:nth-child(3).active {
  animation-name: ken-burns-c;
}

@keyframes ken-burns-c {
  from { transform: scale(1.01) translate(0.2%, 0); }
  to   { transform: scale(1.06) translate(-0.2%, 0); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(14, 27, 42, 0.25) 0%,
      rgba(14, 27, 42, 0.08) 30%,
      rgba(14, 27, 42, 0.35) 55%,
      rgba(14, 27, 42, 0.70) 100%
    );
}

.hero-content {
  text-align: center;
  color: #faf6f0;
  padding: 2rem clamp(1.2rem, 3vw, 2rem) clamp(3rem, 6vh, 5rem);
  z-index: 2;
  max-width: 48rem;
}

.hero-eyebrow {
  font-family: "Manrope", system-ui, sans-serif;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.85;
}

.hero-title {
  font-size: clamp(3.5rem, 10vw, 5.5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 0.92;
  margin: 0.8rem 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.hero-title .amp {
  font-size: 0.65em;
  vertical-align: 0.08em;
  margin: 0 0.15em;
}

.hero-date {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 0.3rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero-ornament {
  display: flex;
  justify-content: center;
  margin: 1.2rem 0;
}

.hero-ornament span {
  display: block;
  width: 50px;
  height: 2px;
  background: linear-gradient(to right, rgba(196, 162, 101, 0.9), rgba(196, 162, 101, 0.3));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 800ms var(--ease-out-expo);
  position: relative;
}

.hero-ornament span::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(196, 162, 101, 0.7);
  transform: translate(0, -50%) scale(0);
  transition: transform 250ms var(--ease-out-expo);
}

.hero-ornament.cascade.is-visible span {
  transform: scaleX(1);
  transition-delay: 800ms;
}

.hero-ornament.cascade.is-visible span::after {
  transform: translate(0, -50%) scale(1);
  transition-delay: 1500ms;
}

.hero-lead {
  font-family: "EB Garamond", serif;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 400;
  font-style: italic;
  opacity: 0.9;
  max-width: 28rem;
  margin: 0 auto;
  line-height: 1.6;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

/* Hero invitation frame — single-line stationery style */
.hero-frame {
  position: relative;
  border: 1px solid rgba(196, 162, 101, 0.22);
  padding: clamp(2.2rem, 5vw, 3.8rem) clamp(2.2rem, 6vw, 4.5rem);
  margin: 0 auto;
  display: inline-block;
}

/* Inner rule — double-line on mobile only, hidden on desktop */
.hero-frame::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(196, 162, 101, 0.12);
  pointer-events: none;
  display: none;
}

/* Subtle warm inner glow — mobile only */
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 60px rgba(196, 162, 101, 0.06);
  pointer-events: none;
  display: none;
}

.hero-frame-inner {
  position: relative;
}

/* Corner flourishes */
.hero-flourish {
  position: absolute;
  width: clamp(32px, 5.5vw, 52px);
  height: clamp(32px, 5.5vw, 52px);
  color: rgba(196, 162, 101, 0.40);
  pointer-events: none;
  overflow: visible;
}

.hero-flourish--tl { top: -6px;    left: -6px; }
.hero-flourish--tr { top: -6px;    right: -6px; }
.hero-flourish--bl { bottom: -6px; left: -6px; }
.hero-flourish--br { bottom: -6px; right: -6px; }

/* Fade-in for the frame */
.hero-frame.cascade {
  opacity: 0;
  transform: translateY(12px) scale(0.985);
}

.hero-frame.cascade.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 1400ms var(--ease-out-expo),
              transform 1000ms var(--ease-out-expo);
  transition-delay: 50ms;
}

.hero-arrow {
  display: flex;
  width: fit-content;
  margin: 2.5rem auto 0;
  color: rgba(250, 246, 240, 0.5);
  animation: float 3s ease-in-out infinite;
  transition: color 200ms ease;
}

.hero-arrow:hover { color: #fff; }

@keyframes float {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%      { transform: translateY(6px); opacity: 0.9; }
}

/* Cascade entrance */
.cascade {
  opacity: 0;
  transform: translateY(22px);
}

.hero-title.cascade {
  transform: translateY(30px);
}

.cascade.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms var(--ease-out-expo), transform 700ms var(--ease-out-expo);
}

.hero-eyebrow.cascade.is-visible  { transition-delay: 150ms; }
.hero-title.cascade.is-visible    { transition-delay: 400ms; }
.hero-date.cascade.is-visible     { transition-delay: 650ms; }
.hero-ornament.cascade.is-visible { transition-delay: 700ms; }
.hero-lead.cascade.is-visible     { transition-delay: 950ms; }
.hero-arrow.cascade.is-visible    { transition-delay: 1250ms; }

/* =========================================================
   SECTIONS — GENERAL
   ========================================================= */

.section {
  padding: var(--section-pad) clamp(1.2rem, 4vw, 3rem);
}

.section-alt {
  background: var(--bg-alt);
}

/* Subtle section separator */
.section + .section-alt,
.section-alt + .section {
  border-top: 1px solid var(--line-light);
}

.section-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.section-inner.narrow {
  max-width: 42rem;
}

.section-inner h2 {
  margin-top: 0.3rem;
  margin-bottom: 1rem;
}

.section-inner .body-text {
  margin-top: 0.5rem;
}

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-out-expo), transform 700ms var(--ease-out-expo);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 700ms var(--ease-out-expo), transform 700ms var(--ease-out-expo);
}

.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 700ms var(--ease-out-expo), transform 700ms var(--ease-out-expo);
}

.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* =========================================================
   COUPLE SECTION
   ========================================================= */

.couple-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  max-width: 72rem;
  margin: 2.5rem auto 0;
  padding: 0 clamp(1.2rem, 4vw, 3rem);
}

.couple-card {
  text-align: center;
}

.couple-image-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, var(--line-light), var(--bg));
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
  overflow: hidden;
  position: relative;
}

.couple-image-placeholder span {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--text-light);
  font-style: italic;
}

.couple-card h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.8rem;
}

.couple-card .body-text {
  max-width: 28rem;
  margin: 0 auto;
  text-align: left;
}

/* =========================================================
   PULL QUOTE — Dark feature section
   ========================================================= */

.section-quote {
  padding: clamp(4rem, 10vw, 7rem) clamp(1.2rem, 4vw, 3rem);
  text-align: center;
  background: var(--navy);
  border-top: none;
}

.section-quote blockquote {
  max-width: 48rem;
  margin: 0 auto;
  position: relative;
}

.section-quote blockquote::before {
  content: "\201C";
  position: absolute;
  top: -0.6em;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Cormorant Garamond", serif;
  font-size: 8rem;
  line-height: 1;
  color: rgba(196, 162, 101, 0.12);
  pointer-events: none;
  z-index: 0;
}

.section-quote p {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  color: #f5f0e6;
  text-wrap: balance;
  position: relative;
  z-index: 1;
}

/* =========================================================
   TIMELINE (Schedule)
   ========================================================= */

.timeline {
  max-width: 36rem;
  margin: 2.5rem auto 0;
  padding: 0 1.2rem;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1200ms var(--ease-out-expo);
}

.timeline.is-visible::before {
  transform: scaleY(1);
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
  position: relative;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--wine);
  background: var(--bg);
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

.timeline-time {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  font-variant-numeric: lining-nums tabular-nums;
}

.timeline-content h3 {
  margin: 0.2rem 0 0.4rem;
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Timeline stagger */
.timeline-item.reveal.is-visible:nth-child(1) { transition-delay: 0ms; }
.timeline-item.reveal.is-visible:nth-child(2) { transition-delay: 180ms; }
.timeline-item.reveal.is-visible:nth-child(3) { transition-delay: 360ms; }

/* =========================================================
   VENUE CARDS
   ========================================================= */

.venue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  max-width: 72rem;
  margin: 2.5rem auto 0;
  padding: 0 clamp(1.2rem, 4vw, 3rem);
}

.venue-card {
  background: var(--surface-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 400ms var(--ease-in-out), box-shadow 400ms var(--ease-in-out);
}

.venue-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.venue-image-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--line-light) 0%, var(--bg) 100%);
  display: grid;
  place-items: center;
}

.venue-image-placeholder span {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-light);
  font-style: italic;
}

.venue-image {
  width: 100%;
  aspect-ratio: 16/13;
  overflow: hidden;
}

.venue-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out-quart);
}

.venue-card:hover .venue-image img {
  transform: scale(1.04);
}

.venue-text {
  padding: 1.5rem;
}

.venue-subtitle {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-top: 0.2rem;
  margin-bottom: 0.8rem;
}

.venue-text h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.venue-text .body-text {
  font-size: 0.95rem;
}

/* =========================================================
   IMAGE BREAK
   ========================================================= */

.image-break {
  position: relative;
  height: clamp(30vh, 40vw, 50vh);
  overflow: hidden;
}

.image-break-bg {
  position: absolute;
  inset: -15% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

/* =========================================================
   CARDS (Travel, Practical, Skåne)
   ========================================================= */

.cards-stagger {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  max-width: 72rem;
  margin: 2rem auto 0;
  padding: 0 clamp(1.2rem, 4vw, 3rem);
}

.card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 2vw, 1.8rem);
  box-shadow: var(--shadow-sm);
  transition: transform 400ms var(--ease-in-out), box-shadow 400ms var(--ease-in-out);
  position: relative;
  overflow: hidden;
}

/* Warm glow on hover (replaces shine sweep) */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(196, 162, 101, 0.05) 50%, transparent 60%);
  opacity: 0;
  transition: opacity 500ms var(--ease-out-quart);
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-icon {
  margin-bottom: 0.8rem;
  line-height: 1;
  color: var(--brand);
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Stagger animation delays */
.card.reveal.is-visible:nth-child(1) { transition-delay: 0ms; }
.card.reveal.is-visible:nth-child(2) { transition-delay: 120ms; }
.card.reveal.is-visible:nth-child(3) { transition-delay: 240ms; }

/* =========================================================
   SPLIT LAYOUT (Toastmasters, Wishlist)
   ========================================================= */

.split-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 4vw, 3rem);
}

.split-text h2 {
  margin-top: 0.3rem;
  margin-bottom: 1rem;
}

.split-panel {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.split-panel h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.toastmaster-contact {
  padding: 0.8rem 0;
  border-top: 1px solid var(--line-light);
}

.toastmaster-contact:first-of-type {
  border-top: none;
  padding-top: 0;
}

.toastmaster-contact p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 300ms var(--ease-in-out);
  font-variant-numeric: lining-nums tabular-nums;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 16px rgba(156, 111, 60, 0.25);
}

.btn-primary:hover {
  background: var(--wine);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(107, 45, 62, 0.25);
}

.btn-outline {
  border-color: var(--line);
  color: var(--text-muted);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
}

#contact .body-text {
  margin-left: auto;
  margin-right: auto;
}

.contact-actions {
  margin-top: 1.8rem;
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  padding: clamp(3rem, 6vw, 5rem) 1rem clamp(2rem, 4vw, 3rem);
  text-align: center;
  background: var(--navy);
  color: rgba(244, 239, 229, 0.7);
}

.footer-monogram {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 300;
  color: rgba(196, 162, 101, 0.5);
  letter-spacing: 0.20em;
  font-variant: small-caps;
}

.footer-ornament {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

.footer-ornament span {
  display: block;
  width: 40px;
  height: 1px;
  background: rgba(196, 162, 101, 0.3);
}

.footer-date {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(196, 162, 101, 0.5);
  margin-bottom: 0.5rem;
}

.footer-location {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(196, 162, 101, 0.12);
}

.footer-nav a {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: rgba(244, 239, 229, 0.4);
  transition: color 300ms ease;
}

.footer-nav a:hover {
  color: rgba(196, 162, 101, 0.7);
}

.footer-tag {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 1.5rem;
  opacity: 0.35;
}

/* =========================================================
   BODY TEXT LINKS
   ========================================================= */

.body-text a {
  text-decoration: none;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0% 1px;
  background-position: 0% 100%;
  background-repeat: no-repeat;
  transition: background-size 400ms var(--ease-in-out);
}

.body-text a:hover {
  background-size: 100% 1px;
}

/* =========================================================
   THEMATIC DETAILS
   ========================================================= */



/* Drop cap */
.drop-cap::first-letter {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 3.6em;
  float: left;
  line-height: 0.8;
  margin-right: 0.08em;
  margin-top: 0.05em;
  color: var(--wine);
}

/* Literary whispers on headings (desktop) */
h2[data-whisper] {
  position: relative;
  cursor: default;
}

h2[data-whisper]::after {
  content: attr(data-whisper);
  display: block;
  font-family: "EB Garamond", serif;
  font-size: 0.85rem;
  font-style: italic;
  font-weight: 400;
  color: var(--text-light);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 500ms var(--ease-out-expo), transform 500ms var(--ease-out-expo);
  margin-top: 0.5rem;
  pointer-events: none;
}

h2[data-whisper].whisper-active::after {
  opacity: 1;
  transform: translateY(0);
}

/* Colophon */
.colophon {
  font-family: "EB Garamond", serif;
  font-size: 0.72rem;
  font-style: italic;
  font-variant-numeric: oldstyle-nums;
  color: rgba(196, 162, 101, 0.18);
  letter-spacing: 0.02em;
  margin-top: 1.2rem;
  transition: color 600ms ease;
}

.colophon:hover {
  color: rgba(196, 162, 101, 0.45);
}

/* Wine pour progress bar glow */
.scroll-progress.progress-full {
  box-shadow: 0 0 8px rgba(107, 45, 62, 0.5);
  transition: box-shadow 300ms ease;
}

/* Easter egg: Santé / Skål clink */
.clink-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms ease;
}

.clink-overlay.clink-active { opacity: 1; }
.clink-overlay.clink-out { opacity: 0; transition: opacity 600ms ease; }

.clink-glass {
  font-size: 3rem;
  position: absolute;
  bottom: 35%;
  transition: transform 500ms var(--ease-out-expo);
}

.clink-left  { left: 35%; transform: translateX(-40px) rotate(-15deg); }
.clink-right { right: 35%; transform: translateX(40px) rotate(15deg) scaleX(-1); }

.clink-active .clink-left  { transform: translateX(20px) rotate(5deg); }
.clink-active .clink-right { transform: translateX(-20px) rotate(-5deg) scaleX(-1); }

.clink-message {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--wine);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 400ms ease 300ms, transform 400ms var(--ease-out-expo) 300ms;
}

.clink-active .clink-message {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (min-width: 64.01rem) {
  .hero-content {
    padding-bottom: clamp(1.45rem, 3.1vh, 2.6rem);
  }

  .hero-title {
    font-size: clamp(3.7rem, 10.5vw, 5.8rem);
  }

  .hero-frame {
    padding: clamp(2.35rem, 5.3vw, 4.1rem) clamp(2.45rem, 6.2vw, 4.9rem);
  }

  .hero-arrow {
    margin-top: 1.25rem;
  }
}

@media (max-width: 64rem) {
  .couple-grid,
  .venue-grid {
    grid-template-columns: 1fr;
    max-width: 36rem;
  }

  .split-layout {
    grid-template-columns: 1fr;
  }

  .cards-stagger {
    grid-template-columns: 1fr 1fr;
  }

  .site-nav {
    position: fixed;
    inset: calc(env(safe-area-inset-top) + 4.2rem) 0.8rem auto 0.8rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(245, 240, 230, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    color: var(--text-muted) !important;
    font-size: 0.95rem;
  }

  .menu-toggle { display: inline-flex; }

  .footer-nav { gap: 0.8rem; }
}

@media (max-width: 42rem) {
  .cards-stagger {
    grid-template-columns: 1fr;
  }

  .site-header {
    padding-top: max(0.8rem, calc(env(safe-area-inset-top) + 0.35rem));
    padding-bottom: 0.8rem;
  }

  .site-header.scrolled {
    padding-top: max(0.6rem, calc(env(safe-area-inset-top) + 0.2rem));
    padding-bottom: 0.6rem;
  }

  .brand {
    font-size: 1.15rem;
    letter-spacing: 0.12em;
  }

  .hero {
    height: var(--hero-static-height, 100svh);
    min-height: var(--hero-static-height, 100svh);
    align-items: end;
  }

  .hero-slides {
    height: var(--hero-static-height, 100svh);
    min-height: var(--hero-static-height, 100svh);
  }

  .hero-slide {
    background-position: var(--mobile-pos, var(--desktop-pos, center));
  }

  .hero-overlay {
    background:
      linear-gradient(180deg,
        rgba(10, 18, 28, 0.28) 0%,
        rgba(10, 18, 28, 0.16) 30%,
        rgba(10, 18, 28, 0.45) 62%,
        rgba(10, 18, 28, 0.74) 100%
      );
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    padding:
      calc(env(safe-area-inset-top) + 1rem)
      1rem
      calc(env(safe-area-inset-bottom) + 3rem);
  }

  .hero-title {
    font-size: clamp(2.45rem, 13.2vw, 3.6rem);
    line-height: 0.95;
    white-space: normal;
    text-wrap: balance;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
  }

  .hero-eyebrow,
  .hero-date {
    opacity: 0.95;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
  }

  .hero-lead {
    max-width: 18.5rem;
    font-size: 1.05rem;
    line-height: 1.5;
    opacity: 1;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
  }

  /* Tighten frame padding on small screens */
  .hero-frame {
    padding: 1.2rem 1rem 1.25rem;
    max-width: min(92vw, 21rem);
    background: rgba(8, 16, 24, 0.28);
    border: 1px solid rgba(250, 246, 240, 0.38);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.23);
  }

  .hero-frame::before {
    display: none;
  }

  .hero-frame::after {
    display: none;
  }

  .hero-flourish {
    display: none;
  }

  .hero-arrow {
    margin: 0.75rem auto 0;
    color: rgba(255, 255, 255, 0.82);
  }

  /* Disable Ken Burns zoom on mobile to prevent jank while scrolling */
  .hero-slide.active {
    animation: none;
  }

  .footer-nav { flex-direction: column; gap: 0.5rem; }
}

@media (pointer: coarse) {
  .hero-slide,
  .hero-slide.active {
    animation: none !important;
    transform: none !important;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

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

  .cascade,
  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
  }

  .hero-ornament span {
    transform: scaleX(1);
  }

  .hero-frame.cascade {
    opacity: 1;
    transform: none;
  }

  .timeline::before {
    transform: scaleY(1);
  }
}
