/* ============================================================================
   ELISAFYLDER21.COM  —  Luxury beauty / rich-girl aesthetic
   Pink marmor · champagne-guld · Playfair Display · redaktionelt layout
   ============================================================================ */

/* ----------------------------- DESIGN TOKENS ----------------------------- */
:root {
  /* Base — varm beige / champagne ("huden") */
  --cream:        #FBF7F1;
  --ivory:        #F7F0E7;
  --champagne:    #F1E6D6;
  --sand:         #EAD9C4;
  --beige:        #E3D2BC;

  /* Pink marmor accent */
  --rose:         #F4DCE1;
  --rose-deep:    #E7C3CC;
  --blush:        #F8E9EC;

  /* Champagne-guld (mat, ikke blank) */
  --gold:         #C2A05E;
  --gold-soft:    #D9C39A;
  --gold-deep:    #A8842F;
  --gold-line:    rgba(194, 160, 94, 0.55);

  /* Tekst */
  --ink:          #2C2723;
  --ink-soft:     #6A5F54;
  --ink-faint:    #9A8E80;

  /* Fonte */
  --f-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --f-accent:  'Cormorant Garamond', Georgia, serif;
  --f-body:    'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Mål */
  --maxw: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --radius: 22px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------- RESET ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--f-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ol, ul { list-style: none; }

::selection { background: var(--rose-deep); color: var(--ink); }

/* Subtil guld-scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ivory); }
::-webkit-scrollbar-thumb { background: var(--gold-soft); border-radius: 10px; }

/* ------------------------- GENBRUGTE ELEMENTER --------------------------- */
.section {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4.5rem, 11vw, 9rem) var(--gutter);
}

.section__head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }

.section__eyebrow {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}

.section__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: 0.005em;
  color: var(--ink);
  max-width: 16ch;
}

.section-mark {
  display: block;
  width: 46px; height: 1px;
  background: var(--gold-line);
  margin: 0 auto 2rem;
}

/* Reveal-animation ved scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ------------------------------- NAV ------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease), padding 0.5s var(--ease);
}
.nav.is-scrolled {
  background: rgba(251, 247, 241, 0.82);
  backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 1px 0 var(--gold-line);
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.nav__brand {
  font-family: var(--f-display);
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  color: var(--ink);
}
.nav__brand-dot { color: var(--gold); }

.nav__links {
  display: flex;
  gap: clamp(1.2rem, 2.6vw, 2.4rem);
}
.nav__links a {
  position: relative;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.3rem 0;
  transition: color 0.35s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

.nav__right { display: flex; align-items: center; gap: 1rem; }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--gold-line);
  border-radius: 100px;
  color: var(--ink-soft);
  transition: border-color 0.35s var(--ease);
}
.lang-toggle:hover { border-color: var(--gold); }
.lang-toggle__opt { transition: color 0.3s var(--ease); }
.lang-toggle__opt.is-active { color: var(--gold-deep); font-weight: 500; }
.lang-toggle__sep { color: var(--ink-faint); }

/* Sprog-knappen bor nu inde i menuen (ikke i top-banneret) */
.nav__links .lang-toggle { margin-left: 0.5rem; align-self: center; }

.nav__burger {
  display: none;
  width: 30px; height: 18px;
  position: relative;
}
.nav__burger span {
  position: absolute; left: 0;
  width: 100%; height: 1.4px;
  background: var(--ink);
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.nav__burger span:nth-child(1) { top: 4px; }
.nav__burger span:nth-child(2) { bottom: 4px; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ------------------------------- HERO ------------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem var(--gutter) 4rem;
  overflow: hidden;
  isolation: isolate;
}
.hero__marble {
  position: absolute; inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(251,247,241,0.35), rgba(251,247,241,0.0) 30%),
    url("../assets/marble.svg") center/cover no-repeat,
    var(--rose);
  transform: scale(1.06);
  animation: heroDrift 26s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(0,0,0); }
  to   { transform: scale(1.12) translate3d(-1.5%, -1.5%, 0); }
}
.hero__veil {
  position: absolute; inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 80% at 50% 18%, rgba(251,247,241,0.0), rgba(251,247,241,0.55) 78%),
    linear-gradient(180deg, rgba(251,247,241,0.0) 55%, var(--cream) 99%);
}

.hero__inner { max-width: 760px; }

.hero__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.6rem;
  animation: fadeUp 1.2s var(--ease) both;
}

.hero__title { line-height: 0.98; margin-bottom: 1.6rem; }
.hero__title-top {
  display: block;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(3.4rem, 13vw, 8.5rem);
  letter-spacing: 0.02em;
  color: var(--ink);
  animation: fadeUp 1.2s var(--ease) 0.1s both;
}
.hero__title-script {
  display: block;
  font-family: var(--f-accent);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.7rem, 6.5vw, 3.6rem);
  color: var(--gold-deep);
  margin-top: 0.2rem;
  letter-spacing: 0.01em;
  animation: fadeUp 1.2s var(--ease) 0.25s both;
}

.hero__rule {
  display: flex; align-items: center; justify-content: center;
  gap: 0.9rem;
  margin: 1.8rem auto;
  color: var(--gold);
  animation: fadeUp 1.2s var(--ease) 0.4s both;
}
.hero__rule-line { display: block; width: clamp(40px, 12vw, 90px); height: 1px; background: var(--gold-line); }
.hero__rule-leaf { color: var(--gold); }

.hero__tagline {
  font-family: var(--f-accent);
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 2.8rem;
  animation: fadeUp 1.2s var(--ease) 0.5s both;
}

/* Nedtælling */
.countdown { animation: fadeUp 1.2s var(--ease) 0.65s both; }
.countdown__label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.1rem;
}
.countdown__grid {
  display: flex;
  justify-content: center;
  gap: clamp(0.6rem, 2.5vw, 1.6rem);
}
.countdown__cell {
  position: relative;
  min-width: clamp(62px, 16vw, 92px);
  padding: 1rem 0.6rem;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--gold-line);
  border-radius: 16px;
  backdrop-filter: blur(6px);
}
.countdown__num {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(1.7rem, 5.5vw, 2.7rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown__unit {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.countdown.is-done .countdown__grid { display: none; }
.countdown__celebrate {
  display: none;
  font-family: var(--f-accent);
  font-style: italic;
  font-size: clamp(1.3rem, 4vw, 2rem);
  color: var(--gold-deep);
}
.countdown.is-done .countdown__celebrate { display: block; }

.hero__scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  animation: fadeUp 1.2s var(--ease) 0.9s both;
}
.hero__scroll-arrow {
  width: 1px; height: 38px;
  background: linear-gradient(var(--gold), transparent);
  position: relative;
}
.hero__scroll-arrow::after {
  content: ""; position: absolute; bottom: 0; left: 50%;
  width: 6px; height: 6px;
  border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold);
  transform: translateX(-50%) rotate(45deg);
  animation: scrollPulse 2s var(--ease) infinite;
}
@keyframes scrollPulse { 0%,100% { opacity: 0.3; transform: translate(-50%, -4px) rotate(45deg);} 50% { opacity: 1; transform: translate(-50%, 2px) rotate(45deg);} }

@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ------------------------------- INTRO ----------------------------------- */
.intro {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) var(--gutter);
  text-align: center;
}
.intro__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin-bottom: 1.4rem;
  color: var(--ink);
}
.intro__text {
  font-family: var(--f-accent);
  font-size: clamp(1.1rem, 2.6vw, 1.45rem);
  line-height: 1.8;
  color: var(--ink-soft);
}

/* ----------------------------- TIDSLINJE --------------------------------- */
.timeline {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 1rem 0;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 1px;
  background: linear-gradient(var(--gold-line), var(--gold-line));
  transform: translateX(-50%);
}
.tl-item {
  position: relative;
  width: 50%;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.tl-item:nth-child(odd)  { left: 0; text-align: right; }
.tl-item:nth-child(even) { left: 50%; text-align: left; }
.tl-item::after {
  content: "";
  position: absolute; top: 0.35rem;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--cream);
  border: 1.5px solid var(--gold);
}
.tl-item:nth-child(odd)::after  { right: -6px; }
.tl-item:nth-child(even)::after { left: -6px; }
.tl-date {
  font-family: var(--f-body);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.5rem;
}
.tl-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.tl-text {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.75;
}

/* ------------------------------ GALLERI ---------------------------------- */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3.2vw, 2.4rem);
  align-items: start;
}
/* Redaktionel, asymmetrisk rytme */
.gallery__grid > *:nth-child(3n+2) { margin-top: clamp(1.5rem, 5vw, 3.5rem); }
.gallery__grid > *:nth-child(6n+4) { margin-top: clamp(-1rem, -2vw, -0.5rem); }

.gallery__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background:
    url("../assets/marble.svg") center/cover no-repeat, var(--rose);
  box-shadow: 0 18px 40px -28px rgba(124, 96, 64, 0.6);
  cursor: pointer;
}
.gallery__item--circle { aspect-ratio: 1 / 1; border-radius: 50%; }
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter 0.6s var(--ease);
}

/* Film-fliser i den blandede pulje (lodret 9:16, auto-loop lydløst) */
.gallery__item--video { aspect-ratio: 9 / 16; cursor: default; }
.gallery__item--video video,
.gallery__item--video .video__el,
.gallery__item--video iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border: 0;
  display: block;
  background: #15110f;
}
.gallery__embed { position: absolute; inset: 0; }
.gallery__item--video:hover video { transform: scale(1.03); transition: transform 1.1s var(--ease); }
.gallery__item::before {
  content: "";
  position: absolute; inset: 9px;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: inherit;
  z-index: 2;
  pointer-events: none;
  transition: border-color 0.5s var(--ease);
}
.gallery__item:hover::before { border-color: var(--gold-soft); }
.gallery__item:hover img { transform: scale(1.06); }

.gallery__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  padding: 1.6rem 1.2rem 1.1rem;
  font-family: var(--f-accent);
  font-style: italic;
  font-size: 1rem;
  color: #fff;
  text-align: center;
  background: linear-gradient(transparent, rgba(44, 39, 35, 0.55));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.gallery__item--circle .gallery__cap { background: none; text-shadow: 0 1px 8px rgba(44,39,35,0.6); }
.gallery__item:hover .gallery__cap { opacity: 1; transform: none; }

/* Pladsholder — vises mens billedet loader / hvis det fejler, skjules når loadet */
.gallery__item.is-placeholder { cursor: default; }
.gallery__item.is-placeholder img { display: none; }
.gallery__ph {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.6rem;
  color: var(--gold-deep);
  text-align: center;
  padding: 1rem;
}
.gallery__item.is-loaded .gallery__ph { display: none; }
.gallery__ph svg { opacity: 0.7; }
.gallery__ph span {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ------------------------------ 21 GRUNDE -------------------------------- */
.reasons { isolation: isolate; }
.reasons__marble {
  position: absolute; inset: 0;
  z-index: -1;
  margin: 0 calc(var(--gutter) * -1);
  background:
    linear-gradient(var(--cream), rgba(244, 220, 225, 0.0)),
    url("../assets/marble.svg") center/cover no-repeat;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}
.reasons__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.5rem, 2vw, 1.1rem) clamp(2rem, 5vw, 4rem);
  counter-reset: r;
  max-width: 980px;
  margin: 0 auto;
}
.reason {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--gold-line);
  counter-increment: r;
}
.reason::before {
  content: counter(r, decimal-leading-zero);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold);
  min-width: 2.2ch;
  line-height: 1;
}
.reason span {
  font-family: var(--f-accent);
  font-size: clamp(1.05rem, 2.3vw, 1.3rem);
  color: var(--ink);
  line-height: 1.5;
}
.reason:last-child span { color: var(--gold-deep); font-style: italic; }

/* ------------------------------- BREV ------------------------------------ */
.letter { max-width: 820px; margin: 0 auto; }
.letter__card {
  position: relative;
  padding: clamp(2.4rem, 7vw, 5rem) clamp(1.8rem, 6vw, 4.5rem);
  background: var(--blush);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -40px rgba(124, 96, 64, 0.5);
}
.letter__card::before {
  content: "";
  position: absolute; inset: 12px;
  border: 1px solid var(--gold-line);
  border-radius: calc(var(--radius) - 8px);
  pointer-events: none;
}
.letter__greeting {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--gold-deep);
  margin-bottom: 1.6rem;
}
.letter__body p {
  font-family: var(--f-accent);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  line-height: 1.85;
  color: var(--ink);
  margin-bottom: 1.2rem;
}
.letter__sign {
  margin-top: 2.2rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.letter__name {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--ink);
  margin-top: 0.3rem;
}

/* ------------------------------- MUSIK ----------------------------------- */
.music { max-width: 760px; margin: 0 auto; text-align: center; }
.music .section__head { text-align: center; }
.music .section__title { margin-left: auto; margin-right: auto; }
.music__frame {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--gold-line);
  box-shadow: 0 26px 50px -36px rgba(124, 96, 64, 0.55);
}
.music__frame iframe { display: block; width: 100%; border: 0; }
.music__empty {
  padding: 3rem 1.5rem;
  background: var(--blush);
  font-family: var(--f-accent);
  font-style: italic;
  color: var(--ink-soft);
}

/* ------------------------------ FOOTER ----------------------------------- */
.footer {
  position: relative;
  text-align: center;
  padding: clamp(3.5rem, 9vw, 6rem) var(--gutter) clamp(2.5rem, 6vw, 4rem);
  background: linear-gradient(var(--cream), var(--champagne));
  border-top: 1px solid var(--gold-line);
}
.footer__leaf { color: var(--gold); margin: 0 auto 1.2rem; }
.footer__line {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(1.3rem, 3.5vw, 1.9rem);
  color: var(--ink);
}
.footer__sub {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 0.7rem;
}
.footer__top {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  margin-top: 2rem;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  color: var(--gold-deep);
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.footer__top:hover { background: var(--gold); color: #fff; }

/* ----------------------------- LIGHTBOX ---------------------------------- */
.lightbox {
  position: fixed; inset: 0;
  z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  background: rgba(44, 39, 35, 0.82);
  backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__fig {
  max-width: min(90vw, 760px);
  transform: scale(0.96);
  transition: transform 0.5s var(--ease);
}
.lightbox.is-open .lightbox__fig { transform: scale(1); }
.lightbox__img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--gold-line);
}
.lightbox__cap {
  margin-top: 1rem;
  text-align: center;
  font-family: var(--f-accent);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--champagne);
}
.lightbox__close {
  position: absolute;
  top: 1.4rem; right: 1.6rem;
  font-size: 2rem;
  line-height: 1;
  color: var(--champagne);
  transition: transform 0.3s var(--ease);
}
.lightbox__close:hover { transform: rotate(90deg); }

/* ============================ DEN SØDE KAT 🐱 ============================ */
.cat-root {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 55;            /* over indhold, under nav (60) og modaler (90+) */
  overflow: hidden;
}
.cat {
  position: absolute;
  left: 0; bottom: 0;
  width: 84px; height: 68px;
  pointer-events: auto;
  cursor: pointer;
  will-change: transform;
  transform: translate3d(0,0,0);
}
.cat__flip {
  width: 100%; height: 100%;
  transform-origin: 50% 100%;
  transition: transform 0.25s var(--ease);
}
.cat__bob {
  width: 100%; height: 100%;
  transform-origin: 50% 100%;
}
.cat svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* skygge "ånder" let */
.cat-shadow { transition: opacity 0.3s ease; }
.cat.is-perched .cat-shadow { opacity: 0.35; }

/* --- Idle: blink + halehvip + ører --- */
.cat-tail { transform-origin: 26px 64px; animation: catTail 2.6s var(--ease) infinite; }
@keyframes catTail {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-9deg); }
  60% { transform: rotate(7deg); }
}
.cat-eye { transform-origin: center; animation: catBlink 5.2s ease-in-out infinite; }
@keyframes catBlink {
  0%, 92%, 100% { transform: scaleY(1); }
  95%, 97% { transform: scaleY(0.1); }
}
.cat-charm { transform-origin: 98px 75px; animation: catCharm 2.6s var(--ease) infinite; }
@keyframes catCharm {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(0.6px) rotate(4deg); }
}

/* --- Gang: blød bob + bevægende ben --- */
.cat.is-walking .cat__bob { animation: catBob 0.34s linear infinite; }
@keyframes catBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2.5px); }
}
.cat.is-walking .cat-tail { animation: catTailRun 0.5s var(--ease) infinite; }
@keyframes catTailRun {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(10deg); }
}
.cat-leg { transform-origin: 50% 0; }
.cat.is-walking .cat-leg--f1, .cat.is-walking .cat-leg--b2 { animation: catLegA 0.34s linear infinite; }
.cat.is-walking .cat-leg--b1, .cat.is-walking .cat-leg--f2 { animation: catLegB 0.34s linear infinite; }
@keyframes catLegA { 0%,100%{ transform: rotate(12deg);} 50%{ transform: rotate(-12deg);} }
@keyframes catLegB { 0%,100%{ transform: rotate(-12deg);} 50%{ transform: rotate(12deg);} }

/* --- Siddende: benene i ro --- */
.cat.is-sitting .cat-leg { animation: none !important; }

/* --- Pudser sig (idle-gestus): hovedet dypper --- */
.cat.is-groom .cat-head { animation: catGroom 1.5s var(--ease); transform-origin: 98px 60px; }
@keyframes catGroom {
  0%, 100% { transform: rotate(0deg); }
  30% { transform: rotate(11deg) translateY(2px); }
  60% { transform: rotate(7deg) translateY(1px); }
}

/* --- Mav-boble --- */
.cat__bubble {
  position: absolute;
  top: -14px; left: 50%;
  transform: translate(-50%, 6px) scale(0.8);
  background: var(--cream);
  border: 1px solid var(--gold-line);
  color: var(--gold-deep);
  font-family: var(--f-accent);
  font-style: italic;
  font-size: 0.9rem;
  padding: 0.2rem 0.7rem;
  border-radius: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 6px 16px -10px rgba(124,96,64,0.6);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.cat__bubble::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -5px;
  width: 8px; height: 8px;
  background: var(--cream);
  border-right: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
  transform: translateX(-50%) rotate(45deg);
}
.cat__bubble.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* --- Hjerte ved klap --- */
.cat-heart {
  position: absolute;
  font-size: 1.1rem;
  color: #E08AA0;
  pointer-events: none;
  animation: catHeart 1.4s var(--ease) forwards;
}
@keyframes catHeart {
  0% { opacity: 0; transform: translateY(0) scale(0.6); }
  20% { opacity: 1; transform: translateY(-10px) scale(1); }
  100% { opacity: 0; transform: translateY(-60px) scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  .cat-tail, .cat-eye, .cat-charm, .cat__bob, .cat-leg, .cat-head { animation: none !important; }
}
@media (max-width: 480px) {
  .cat { width: 66px; height: 54px; }
}

/* ===================== VIDEO / FILM ===================== */
.videos { text-align: center; }
.videos__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.4rem, 4vw, 2.6rem);
  max-width: 960px;
  margin: 0 auto;
}
.videos__grid.is-single { grid-template-columns: 1fr; max-width: 760px; }
.video-card { margin: 0; }
.video__frame {
  position: relative;
  aspect-ratio: 9 / 16;
  max-width: 300px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gold-line);
  background:
    url("../assets/marble.svg") center/cover no-repeat, var(--rose);
  box-shadow: 0 26px 50px -36px rgba(124, 96, 64, 0.55);
}
.video__frame::before {
  content: "";
  position: absolute; inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: inherit;
  z-index: 2;
  pointer-events: none;
}
.video__el {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  border: 0;
  object-fit: contain;
  background: #15110f;
}
.video-card__cap {
  margin-top: 1rem;
  font-family: var(--f-accent);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

/* ===================== FARVEDE BALLONER (f\u00f8dselsdag) ==================== */
.balloons-layer {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 110;
  overflow: hidden;
}
.balloon {
  position: absolute;
  bottom: -110px;
  will-change: transform, opacity;
  animation: balloonFloat var(--dur, 9s) ease-in var(--delay, 0s) forwards;
  filter: drop-shadow(0 10px 14px rgba(124, 96, 64, 0.28));
}
.balloon svg { display: block; width: 100%; height: auto; }
@keyframes balloonFloat {
  0%   { transform: translateY(0) translateX(0) rotate(-2deg); opacity: 0; }
  8%   { opacity: 1; }
  50%  { transform: translateY(-55vh) translateX(var(--sway, 0px)) rotate(3deg); }
  92%  { opacity: 1; }
  100% { transform: translateY(-120vh) translateX(0) rotate(-2deg); opacity: 0; }
}

/* ===================== HEMMELIG GAVE / VAULT ============================= */
.vault { isolation: isolate; text-align: center; }
.vault__marble {
  position: absolute; inset: 0;
  z-index: -1;
  margin: 0 calc(var(--gutter) * -1);
  background:
    linear-gradient(var(--cream), rgba(231, 195, 204, 0.0)),
    url("../assets/marble.svg") center/cover no-repeat;
  opacity: 0.42;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
}
.vault__inner {
  position: relative;
  max-width: 580px;
  margin: 0 auto;
  padding: clamp(2.6rem, 7vw, 4.2rem) clamp(1.6rem, 6vw, 3.4rem);
  background: var(--blush);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -40px rgba(124, 96, 64, 0.5);
}
.vault__inner::before {
  content: "";
  position: absolute; inset: 11px;
  border: 1px solid var(--gold-line);
  border-radius: calc(var(--radius) - 7px);
  pointer-events: none;
}
.vault__badge {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding: 0.35rem 0.95rem;
  border: 1px solid var(--gold-line);
  border-radius: 100px;
  margin-bottom: 1.6rem;
}
.vault__lock {
  color: var(--gold);
  margin: 0 auto 1.3rem;
  width: 56px; height: 64px;
}
.vault__lock svg { width: 100%; height: 100%; }
.vault__inner.is-unlocked .vault__lock {
  color: var(--gold-deep);
  animation: lockGlow 2.8s var(--ease) infinite;
}
@keyframes lockGlow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(194,160,94,0)); transform: translateY(0); }
  50%      { filter: drop-shadow(0 6px 16px rgba(194,160,94,0.5)); transform: translateY(-3px); }
}
.vault__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  color: var(--ink);
  margin-bottom: 0.9rem;
}
.vault__text {
  font-family: var(--f-accent);
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 42ch;
  margin: 0 auto;
}
.vault__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2rem;
  padding: 0.95rem 2.2rem;
  font-family: var(--f-body);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border: 1px solid var(--gold);
  border-radius: 100px;
  background: transparent;
  transition: background 0.45s var(--ease), color 0.45s var(--ease), letter-spacing 0.45s var(--ease);
}
.vault__btn::after { content: "\2192"; font-size: 1rem; transition: transform 0.45s var(--ease); }
.vault__btn:hover {
  background: var(--gold);
  color: #fff;
  letter-spacing: 0.28em;
}
.vault__btn:hover::after { transform: translateX(4px); }

/* ----------------------------- KODEORDS-L\u00c5S --------------------------------- */
.gate {
  position: fixed; inset: 0;
  z-index: 95;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  background: rgba(60, 44, 47, 0.55);
  backdrop-filter: blur(10px) saturate(1.05);
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
.gate.is-open { opacity: 1; visibility: visible; }
.gate__card {
  position: relative;
  width: min(92vw, 430px);
  padding: clamp(2.2rem, 6vw, 3.2rem) clamp(1.6rem, 5vw, 2.6rem);
  text-align: center;
  background: var(--cream);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  box-shadow: 0 36px 70px -36px rgba(60, 44, 47, 0.7);
  transform: scale(0.94) translateY(10px);
  transition: transform 0.55s var(--ease);
}
.gate.is-open .gate__card { transform: none; }
.gate__card::before {
  content: "";
  position: absolute; inset: 10px;
  border: 1px solid var(--gold-line);
  border-radius: calc(var(--radius) - 7px);
  pointer-events: none;
}
.gate__card.is-wrong { animation: shake 0.45s var(--ease); }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-9px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(4px); }
}
.gate__close {
  position: absolute; top: 0.8rem; right: 1rem;
  font-size: 1.7rem; line-height: 1;
  color: var(--ink-faint);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.gate__close:hover { color: var(--gold-deep); transform: rotate(90deg); }
.gate__lock { color: var(--gold); margin-bottom: 1.1rem; }
.gate__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.gate__hint {
  font-family: var(--f-accent);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
  margin-bottom: 1.7rem;
}
.gate__form { display: flex; flex-direction: column; gap: 1rem; }
.gate__input {
  width: 100%;
  padding: 0.8rem 0.4rem;
  font-family: var(--f-accent);
  font-size: 1.25rem;
  text-align: center;
  letter-spacing: 0.05em;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--gold-line);
  transition: border-color 0.4s var(--ease);
}
.gate__input:focus { outline: none; border-bottom-color: var(--gold); }
.gate__input::placeholder { color: var(--ink-faint); font-style: italic; }
.gate__btn {
  align-self: center;
  padding: 0.85rem 2.4rem;
  font-family: var(--f-body);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border: 1px solid var(--gold);
  border-radius: 100px;
  background: transparent;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.gate__btn:hover { background: var(--gold); color: #fff; }
.gate__error {
  min-height: 1.2em;
  margin-top: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: #b06a72;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.gate__error.is-shown { opacity: 1; }

/* ----------------------------- GAVE-REVEAL --------------------------------- */
.giftview {
  position: fixed; inset: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1.5rem, 6vw, 4rem);
  overflow-y: auto;
  background: var(--cream);
  opacity: 0; visibility: hidden;
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
  isolation: isolate;
}
.giftview.is-open { opacity: 1; visibility: visible; }
.giftview__marble {
  position: absolute; inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 50% 12%, rgba(251,247,241,0.0), rgba(251,247,241,0.6) 80%),
    url("../assets/marble.svg") center/cover no-repeat,
    var(--rose);
  opacity: 0.85;
}
.giftview__close {
  position: absolute; top: 1.3rem; right: 1.6rem;
  font-size: 2rem; line-height: 1;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.giftview__close:hover { color: var(--gold-deep); transform: rotate(90deg); }
.giftview__inner {
  max-width: 640px;
  text-align: center;
}
.giftview.is-open .gv-anim {
  animation: giftRise 1s var(--ease) both;
}
.giftview.is-open .gv-anim.d1 { animation-delay: 0.12s; }
.giftview.is-open .gv-anim.d2 { animation-delay: 0.24s; }
.giftview.is-open .gv-anim.d3 { animation-delay: 0.4s; }
.giftview.is-open .gv-anim.d4 { animation-delay: 0.56s; }
@keyframes giftRise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.giftview__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.4rem;
}
.giftview__rule {
  width: 48px; height: 1px;
  background: var(--gold-line);
  margin: 0 auto 1.8rem;
}
.giftview__headline {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 7vw, 4rem);
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 1.6rem;
}
.giftview__lines p {
  font-family: var(--f-accent);
  font-size: clamp(1.15rem, 2.8vw, 1.5rem);
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.giftview__sign {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--gold-deep);
  margin-top: 2.2rem;
}

/* ---------------------------- RESPONSIVE --------------------------------- */
@media (max-width: 820px) {
  .nav__burger { display: block; }
  .nav__links {
    position: fixed;
    inset: 0 0 auto 0;
    top: 0;
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
    padding: 6rem 2rem 3rem;
    background: rgba(251, 247, 241, 0.96);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px -30px rgba(124,96,64,0.6);
    transform: translateY(-110%);
    transition: transform 0.55s var(--ease);
  }
  .nav__links.is-open { transform: none; }
  .nav__links a { font-size: 1rem; }
  /* Sprog-knappen vises nederst i burger-menuen med lidt ekstra luft over */
  .nav__links .lang-toggle {
    margin: 0.9rem 0 0;
    font-size: 0.82rem;
    padding: 0.55rem 1rem;
  }

  .reasons__list { grid-template-columns: 1fr; }

  .timeline::before { left: 7px; }
  .tl-item { width: 100%; left: 0 !important; text-align: left !important; padding-left: 2.2rem; padding-right: 0; }
  .tl-item::after { left: 2px !important; right: auto !important; }

  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid > *:nth-child(3n+2) { margin-top: 0; }
  .gallery__grid > *:nth-child(2n) { margin-top: clamp(1.2rem, 5vw, 2.5rem); }

  .videos__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__grid > * { margin-top: 0 !important; }
  .countdown__grid { gap: 0.5rem; }
  .countdown__cell { min-width: 0; flex: 1; padding: 0.8rem 0.3rem; }
}

/* Respekter brugere der foretrækker mindre bevægelse */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
