/* Younes & Asmaa — save the date · "Turen går til Libanon"
   Royal Beirut-nat: dyb petroleum/midnat, brass-guld, månelys.
   Cinematisk, eksklusivt, romantisk. Mobile-first. */

:root {
  --night:      #0A141C;   /* dybeste baggrund */
  --night-2:    #0C1B23;
  --petrol:     #10303A;   /* varm dyb blågrøn */
  --aubergine:  #1A1420;
  --ink:        #060D13;

  --gold:       #C9A24B;   /* brass-guld, primær */
  --gold-soft:  #E3C782;   /* lys guld til highlights */
  --gold-deep:  #A6884E;
  --gold-faint: rgba(201, 162, 75, 0.30);
  --gold-line:  rgba(201, 162, 75, 0.22);

  --moon:       #F1E7CC;   /* varmt månelys */
  --ivory:      #E9DEC9;   /* brødtekst på mørk */
  --ivory-dim:  #B4A88F;
  --stone:      #8C8674;
  --error:      #E0916F;

  --caps:   "Marcellus", Georgia, serif;
  --serif:  "Cormorant Garamond", Georgia, serif;
  --arabic: "Amiri", serif;

  --edge: clamp(1.25rem, 5.5vw, 2rem);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--night);
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-align: center;
  overflow-x: hidden;
}

/* Dyb natlig baggrundstone med varm gløden top og bund */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(130% 60% at 50% -8%, rgba(201, 162, 75, 0.16), transparent 55%),
    radial-gradient(120% 70% at 50% 108%, rgba(16, 48, 58, 0.55), transparent 60%),
    linear-gradient(180deg, #0A141C 0%, #0C1D25 42%, #0A171E 72%, #08121A 100%);
  pointer-events: none;
  z-index: -2;
}

/* Stjernehimmel — fine punkter, meget diskret */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, rgba(241,231,204,0.9), transparent 60%),
    radial-gradient(1.2px 1.2px at 28% 9%,  rgba(241,231,204,0.7), transparent 60%),
    radial-gradient(1.1px 1.1px at 47% 22%, rgba(241,231,204,0.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 66% 12%, rgba(241,231,204,0.85), transparent 60%),
    radial-gradient(1.1px 1.1px at 82% 26%, rgba(241,231,204,0.65), transparent 60%),
    radial-gradient(1.3px 1.3px at 91% 8%,  rgba(241,231,204,0.8), transparent 60%),
    radial-gradient(1.1px 1.1px at 20% 40%, rgba(241,231,204,0.5), transparent 60%),
    radial-gradient(1.2px 1.2px at 74% 44%, rgba(241,231,204,0.55), transparent 60%);
  background-repeat: no-repeat;
  animation: twinkle 6s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 0.9; }
}

/* Filmkorn */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.045;
  pointer-events: none;
  z-index: 60;
}

/* ============ TRÆD IND — PORT ============ */

body.pre-enter { overflow: hidden; height: 100svh; }

.portal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--edge);
  background: var(--night);
  transition: opacity 1.3s ease, visibility 1.3s ease;
}

.portal-photo {
  position: absolute;
  inset: 0;
  background: url("assets/lebanon/raouche-moon.png") center 30% / cover no-repeat;
  opacity: 0.55;
  transform: scale(1.06);
  animation: portalDrift 18s ease-in-out infinite alternate;
}

@keyframes portalDrift {
  from { transform: scale(1.06) translateY(0); }
  to   { transform: scale(1.12) translateY(-2%); }
}

.portal-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 60% at 50% 42%, rgba(10,20,28,0.35), rgba(8,15,22,0.82) 78%),
    linear-gradient(180deg, rgba(10,20,28,0.7) 0%, rgba(8,15,22,0.55) 45%, rgba(8,15,22,0.92) 100%);
}

.portal-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  animation: portalRise 1.4s cubic-bezier(0.22, 0.6, 0.2, 1) both;
}

@keyframes portalRise {
  from { opacity: 0; transform: translateY(20px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

.portal-eyebrow {
  font-family: var(--caps);
  font-size: 0.72rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold-soft);
  text-indent: 0.5em;
  margin-bottom: 1.6rem;
}
.portal-eyebrow span { color: var(--gold); font-size: 0.62em; vertical-align: 0.25em; }

.portal-names {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.9rem, 15vw, 4.6rem);
  line-height: 0.98;
  color: var(--moon);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.04em;
  text-shadow: 0 2px 40px rgba(201,162,75,0.28);
}
.portal-amp { color: var(--gold); font-style: italic; font-size: 0.5em; margin: 0.06em 0; }

.portal-ar {
  font-family: var(--arabic);
  font-size: clamp(1.3rem, 5vw, 1.7rem);
  color: var(--gold-soft);
  margin-top: 0.9rem;
  opacity: 0.92;
}

.portal-date {
  font-family: var(--caps);
  font-size: clamp(0.6rem, 3vw, 0.72rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-indent: 0.24em;
  color: var(--ivory-dim);
  margin-top: 1.5rem;
  max-width: 100%;
}

/* Lås + nøgle */
.portal-lock {
  position: relative;
  margin-top: 2.6rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: none;
  border: 0;
  padding: 1rem 1.4rem;
  cursor: pointer;
  color: var(--gold);
  -webkit-tap-highlight-color: transparent;
}
.portal-lock:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 6px; border-radius: 12px; }

.lock-glow {
  position: absolute;
  top: 44%;
  left: 50%;
  width: 150px;
  height: 150px;
  transform: translate(-50%, -50%) scale(0.8);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227,199,130,0.35), transparent 65%);
  opacity: 0.7;
  pointer-events: none;
  animation: lockBreath 3.2s ease-in-out infinite;
}
@keyframes lockBreath {
  0%, 100% { opacity: 0.45; transform: translate(-50%, -50%) scale(0.8); }
  50%      { opacity: 0.8;  transform: translate(-50%, -50%) scale(1); }
}

.lock-svg {
  width: clamp(112px, 30vw, 132px);
  height: auto;
  overflow: visible;
  color: var(--gold-soft);
  filter: drop-shadow(0 6px 18px rgba(201,162,75,0.45));
  position: relative;
  z-index: 1;
}
.lock-hole { fill: var(--night); }

/* bøjle drejer op om nederste højre ben */
.lock-shackle {
  transform-box: fill-box;
  transform-origin: 90% 100%;
  transition: transform 0.7s cubic-bezier(0.34, 1.4, 0.5, 1);
}
/* nøglen drejer om nøglehullet (dens øverste midte) */
.lock-key {
  transform-box: fill-box;
  transform-origin: 50% 6%;
  transition: transform 0.75s cubic-bezier(0.5, 0, 0.3, 1);
  animation: keyWiggle 3.2s ease-in-out infinite;
}
@keyframes keyWiggle {
  0%, 92%, 100% { transform: rotate(0deg); }
  96%           { transform: rotate(-7deg); }
}

.lock-label {
  font-family: var(--caps);
  font-size: 0.74rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  text-indent: 0.34em;
  color: var(--gold-soft);
  position: relative;
  z-index: 1;
  transition: opacity 0.4s ease;
}

.portal-lock:hover .lock-svg { color: var(--gold); filter: drop-shadow(0 8px 22px rgba(201,162,75,0.7)); }

/* --- OPLÅSNING --- */
.portal-lock.is-unlocking .lock-key {
  animation: none;
  transform: rotate(88deg);
}
.portal-lock.is-unlocking .lock-shackle {
  transform: translateY(-14px) rotate(32deg);
}
.portal-lock.is-unlocking .lock-glow {
  animation: none;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.7);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.portal-lock.is-unlocking .lock-label { opacity: 0; }

.portal-hint {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ivory-dim);
  margin-top: 1.4rem;
  transition: opacity 0.5s ease;
}
.portal-lock.is-unlocking ~ .portal-hint { opacity: 0; }

.portal.is-leaving { opacity: 0; visibility: hidden; }

/* ============ LYD-KNAP ============ */

.sound-toggle {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  z-index: 80;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  background: rgba(10, 20, 28, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.sound-toggle:hover { border-color: var(--gold); }
.sound-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.sound-bars { display: flex; align-items: flex-end; gap: 2px; height: 15px; }
.sound-bars i {
  width: 2.5px;
  background: var(--gold-soft);
  border-radius: 2px;
  height: 40%;
  animation: sndBar 1.1s ease-in-out infinite;
}
.sound-bars i:nth-child(2) { animation-delay: 0.2s; }
.sound-bars i:nth-child(3) { animation-delay: 0.4s; }
.sound-bars i:nth-child(4) { animation-delay: 0.15s; }
@keyframes sndBar {
  0%, 100% { height: 30%; }
  50%      { height: 100%; }
}
/* Når lyd er slået fra: frys og dæmp */
.sound-toggle.is-muted .sound-bars i { animation-play-state: paused; height: 35%; opacity: 0.5; }

/* ============ AKT 1 · HERO ============ */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(2.4rem, 6vh, 4rem) var(--edge) 2.4rem;
  position: relative;
}

/* Månelys-glød bag hero */
.hero::before {
  content: "";
  position: absolute;
  top: 8%;
  left: 50%;
  width: min(80vw, 460px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(241,231,204,0.14), transparent 62%);
  pointer-events: none;
}

.eyebrow {
  font-family: var(--caps);
  font-size: 0.74rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: clamp(1.6rem, 4vh, 2.6rem);
  text-indent: 0.5em;
  white-space: nowrap;
}
.eyebrow-orn { font-size: 0.62em; vertical-align: 0.25em; color: var(--gold); }

/* Levantinsk bue med dobbelt guldramme + krone */
.arch {
  width: min(80vw, 400px, calc(46svh * 0.7647));
  aspect-ratio: 13 / 17;
  position: relative;
  border-radius: 50% 50% 0 0 / 38% 38% 0 0;
  border: 1px solid var(--gold);
  outline: 1px solid var(--gold-faint);
  outline-offset: 11px;
  margin-bottom: clamp(2rem, 5vh, 3rem);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7), 0 0 60px -20px rgba(201,162,75,0.35);
}

.arch-crown {
  position: absolute;
  top: -1.7rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 1rem;
  text-shadow: 0 0 16px rgba(201,162,75,0.6);
}

.arch-inner {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

.arch img {
  width: 100%;
  height: 116%;
  object-fit: cover;
  object-position: 50% 24%;
  display: block;
  transform: translateY(var(--parallax, 0px)) scale(1.02);
  will-change: transform;
}

.names {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 13.5vw, 5.2rem);
  letter-spacing: 0.03em;
  line-height: 0.95;
  color: var(--moon);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12em;
  text-shadow: 0 2px 44px rgba(201,162,75,0.25);
}

.amp { font-style: italic; font-weight: 300; color: var(--gold); font-size: 0.52em; line-height: 1; }

@media (min-width: 700px) {
  .names { flex-direction: row; align-items: baseline; gap: 0.22em; }
  .amp { font-size: 0.62em; }
}

.arabic {
  font-family: var(--arabic);
  font-size: clamp(1.25rem, 4.5vw, 1.55rem);
  color: var(--gold-soft);
  margin-top: 1rem;
  opacity: 0.9;
}

.scroll-cue {
  position: absolute;
  bottom: max(1.4rem, env(safe-area-inset-bottom));
  left: 50%;
  width: 1px;
  height: clamp(38px, 6vh, 56px);
  background: linear-gradient(var(--gold), transparent);
  overflow: hidden;
}
.scroll-dot {
  position: absolute;
  top: -6px;
  left: -1px;
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: var(--gold-soft);
  animation: cue 2.6s ease-in-out infinite;
}
@keyframes cue {
  0%   { transform: translateY(0); opacity: 0; }
  25%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { transform: translateY(64px); opacity: 0; }
}

/* ============ FULDSKÆRMS-KAPITLER (Libanon) ============ */

.chapter {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: clamp(3rem, 12vh, 7rem) var(--edge) clamp(4rem, 14vh, 8rem);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.chapter-raouche { background-image: url("assets/lebanon/raouche-moon.png"); background-position: center 30%; }
.chapter-cedars  { background-image: url("assets/lebanon/cedars-stars.png"); }
.chapter-street  { background-image: url("assets/lebanon/beirut-street.png"); }

.chapter-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,15,22,0.55) 0%, rgba(8,15,22,0.15) 38%, rgba(8,15,22,0.55) 72%, rgba(8,15,22,0.94) 100%);
}

.chapter-text {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: min(30rem, 100%);
}
.chapter-text p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.35rem, 5.6vw, 2.1rem);
  line-height: 1.5;
  color: var(--moon);
  text-wrap: balance;
  overflow-wrap: break-word;
  text-shadow: 0 2px 30px rgba(0,0,0,0.8);
}
.chapter-text .orn { display: block; color: var(--gold-soft); font-size: 0.9rem; margin-bottom: 1.4rem; }

/* ============ AKT 2 · DATOEN ============ */

.date-statement {
  position: relative;
  padding: clamp(5.5rem, 15vh, 9rem) var(--edge);
  overflow: hidden;
}

.ghost {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--arabic);
  font-size: clamp(7rem, 26vw, 15rem);
  color: var(--gold);
  opacity: 0.06;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.date-lockup { position: relative; }

.d-eyebrow {
  font-family: var(--caps);
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  text-indent: 0.42em;
  color: var(--gold);
  margin-bottom: 1.4rem;
}

.d-day, .d-month {
  font-family: var(--caps);
  font-size: clamp(0.82rem, 3vw, 1rem);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  text-indent: 0.5em;
  color: var(--ivory-dim);
}

.d-num {
  font-family: var(--caps);
  font-size: clamp(6.5rem, 26vw, 10.5rem);
  line-height: 1.05;
  margin: 0.2rem 0 0.4rem;
  color: var(--moon);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.2rem, 5vw, 2.4rem);
  text-shadow: 0 2px 50px rgba(201,162,75,0.3);
}
.d-rule { width: clamp(2.4rem, 10vw, 5.5rem); height: 1px; background: var(--gold); }

.d-place {
  font-family: var(--caps);
  font-size: 0.8rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  text-indent: 0.34em;
  color: var(--gold-soft);
  margin-top: 1.6rem;
}

.cal-actions {
  margin-top: 2.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.btn.btn-inline { width: auto; padding: 0.95rem 2.4rem; }

.cal-google {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--ivory-dim);
  text-decoration: underline;
  text-decoration-color: var(--gold-line);
  text-underline-offset: 4px;
}
.cal-google:hover { color: var(--moon); text-decoration-color: var(--gold); }
.cal-google:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ============ AKT 3 · INVITATIONEN ============ */

.invitation {
  padding: clamp(4rem, 12vh, 7rem) var(--edge);
  max-width: 38rem;
  margin: 0 auto;
}
.invitation .orn { display: block; color: var(--gold); font-size: 0.9rem; margin-bottom: 2rem; }

.invitation-lead {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 5.6vw, 2rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--moon);
  text-wrap: balance;
  overflow-wrap: break-word;
  margin-bottom: 1.8rem;
}

.invitation-text {
  font-size: clamp(1.2rem, 4.6vw, 1.45rem);
  line-height: 1.65;
  color: var(--ivory);
  text-wrap: pretty;
}
.invitation-text + .invitation-text,
.invitation-highlight + .invitation-text { margin-top: 1.5rem; }

.invitation-highlight {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 5.6vw, 2.1rem);
  line-height: 1.5;
  color: var(--gold-soft);
  text-wrap: balance;
  overflow-wrap: break-word;
  margin: 2.2rem 0;
  position: relative;
  padding: 1.8rem 0;
}
.invitation-highlight::before,
.invitation-highlight::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3.4rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.invitation-highlight::before { top: 0; }
.invitation-highlight::after { bottom: 0; }

/* ============ AKT 4 · NEDTÆLLING ============ */

.countdown { padding: clamp(3rem, 8vh, 5rem) var(--edge) clamp(4.5rem, 12vh, 7rem); }

.count-eyebrow {
  font-family: var(--caps);
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  text-indent: 0.4em;
  color: var(--gold);
  margin-bottom: 2rem;
}

.count-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(1.1rem, 5vw, 2.6rem);
}
.count-unit { display: flex; flex-direction: column; gap: 0.4rem; min-width: 4.2rem; }
.count-num {
  font-family: var(--caps);
  font-size: clamp(2.3rem, 9vw, 3.2rem);
  line-height: 1.1;
  color: var(--moon);
  font-variant-numeric: tabular-nums;
}
.count-label {
  font-family: var(--caps);
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-indent: 0.32em;
  color: var(--ivory-dim);
}
.count-div { width: 1px; background: linear-gradient(transparent, var(--gold), transparent); }

/* ============ AKT 5 · SIGNUP ============ */

.signup { padding: 0 var(--edge) clamp(4.5rem, 12vh, 7.5rem); }

.card {
  max-width: 28rem;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(18,40,50,0.75), rgba(10,22,30,0.85));
  border: 1px solid var(--gold-line);
  position: relative;
  padding: clamp(2.8rem, 8vw, 3.6rem) clamp(1.5rem, 6vw, 2.6rem) 2.8rem;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.75), inset 0 0 60px -30px rgba(201,162,75,0.15);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--gold-faint);
  pointer-events: none;
}

.card-orn { display: block; color: var(--gold); font-size: 0.85rem; margin-bottom: 1.2rem; }

.card h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 8vw, 2.5rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--moon);
}

.card-sub {
  color: var(--ivory-dim);
  font-size: 1.08rem;
  margin: 0.9rem auto 2.4rem;
  max-width: 21rem;
  line-height: 1.55;
}

.field { text-align: left; margin-bottom: 1.7rem; position: relative; }

.field label {
  display: block;
  font-family: var(--caps);
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 0.2rem;
}
.field label em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ivory-dim);
}

.field input {
  width: 100%;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--moon);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(201,162,75,0.35);
  border-radius: 0;
  padding: 0.5rem 0 0.55rem;
  appearance: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.field input::placeholder { color: rgba(180,168,143,0.6); }
.field input:focus-visible {
  outline: none;
  border-bottom-color: var(--gold);
  box-shadow: 0 1px 0 var(--gold);
}
.field input[aria-invalid="true"] {
  border-bottom-color: var(--error);
  box-shadow: 0 1px 0 var(--error);
}
/* Autofyld skal ikke blive hvidt/blåt */
.field input:-webkit-autofill,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--moon);
  transition: background-color 9999s;
}

.error { color: var(--error); font-size: 0.98rem; font-style: italic; margin-top: 0.45rem; }

/* Ekstra gæster */
.guest-block { border-top: 1px solid var(--gold-faint); padding-top: 1.35rem; margin: 1.9rem 0 0.4rem; }
.guest-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.guest-title { font-family: var(--caps); font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.guest-remove {
  background: none; border: 0;
  font-family: var(--serif); font-style: italic; font-size: 0.98rem;
  color: var(--ivory-dim); cursor: pointer; padding: 0.1rem 0.2rem;
  text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: 3px;
}
.guest-remove:hover { color: var(--moon); text-decoration-color: var(--gold); }
.guest-remove:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.add-guest {
  display: inline-block; background: none; border: 0;
  font-family: var(--caps); font-size: 0.76rem; letter-spacing: 0.26em;
  text-transform: uppercase; text-indent: 0.26em; color: var(--gold);
  cursor: pointer; padding: 0.55rem 0.4rem 0.35rem; margin-top: 0.9rem;
  border-bottom: 1px solid var(--gold-faint);
  transition: border-color 0.3s ease, color 0.3s ease;
}
.add-guest:hover { color: var(--gold-soft); border-bottom-color: var(--gold); }
.add-guest:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.add-guest[hidden] { display: none; }
.add-guest-hint { color: var(--ivory-dim); font-size: 0.95rem; font-style: italic; margin-top: 0.55rem; }

.form-error { text-align: center; margin-top: 1rem; }

.btn {
  display: inline-block; width: 100%;
  font-family: var(--caps); font-size: 0.82rem; letter-spacing: 0.3em;
  text-transform: uppercase; text-indent: 0.3em;
  color: var(--night);
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  border: 1px solid var(--gold);
  padding: 1.15rem 1rem; margin-top: 0.7rem; cursor: pointer;
  text-decoration: none; position: relative; overflow: hidden;
}
.btn span { position: relative; z-index: 1; transition: color 0.35s ease; }
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: var(--moon);
  transform: translateY(101%);
  transition: transform 0.4s cubic-bezier(0.22, 0.6, 0.2, 1);
}
.btn:hover::after, .btn:focus-visible::after { transform: translateY(0); }
.btn:hover span { color: var(--night); }
.btn:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }
.btn[disabled] { opacity: 0.55; cursor: default; }
.btn[disabled]::after { display: none; }

.btn-ghost {
  background: transparent; color: var(--gold-soft); border-color: var(--gold);
}
.btn-ghost span { color: var(--gold-soft); }
.btn-ghost::after { background: var(--gold); }
.btn-ghost:hover span { color: var(--night); }

.privacy { color: var(--ivory-dim); font-size: 0.95rem; font-style: italic; margin-top: 1.2rem; }

.thanks-title {
  font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1.2; color: var(--moon);
}
.thanks-sub { color: var(--ivory-dim); font-size: 1.1rem; margin: 0.8rem auto 1.9rem; max-width: 20rem; line-height: 1.55; }

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

.footer {
  border-top: 1px solid var(--gold-faint);
  padding: 3.4rem var(--edge) calc(3.6rem + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

.seal { position: relative; width: 112px; height: 112px; }
.seal-svg { width: 100%; height: 100%; overflow: visible; animation: spin 46s linear infinite; }
.seal-text {
  font-family: var(--caps); font-size: 9.5px; letter-spacing: 0.22em;
  text-transform: uppercase; fill: var(--gold);
}
.seal-amp {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 2.2rem; color: var(--gold-soft);
}
@keyframes spin { to { transform: rotate(360deg); } }

.footer-line { font-size: 1.15rem; font-style: italic; color: var(--moon); line-height: 1.5; }
.footer-sign { font-family: var(--caps); font-size: 0.72rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); }

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

.load {
  opacity: 0; transform: translateY(16px); filter: blur(5px);
  animation: rise 1.1s cubic-bezier(0.22, 0.6, 0.2, 1) forwards;
}
.load-1 { animation-delay: 0.15s; }
.load-2 { animation-delay: 0.45s; animation-duration: 1.4s; }
.load-3 { animation-delay: 0.95s; }
.load-4 { animation-delay: 1.15s; }
.load-5 { animation-delay: 1.3s; }
.load-6 { animation-delay: 1.6s; }
.load-7 { animation-delay: 2.2s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); filter: blur(0); } }

.reveal {
  opacity: 0; transform: translateY(22px);
  transition:
    opacity 1s ease calc(var(--i, 0) * 0.14s),
    transform 1s cubic-bezier(0.22, 0.6, 0.2, 1) calc(var(--i, 0) * 0.14s);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .load { animation: none; opacity: 1; transform: none; filter: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-dot, .seal-svg, .sky, .portal-photo, .enter-ring, .sound-bars i { animation: none; }
  .btn::after { display: none; }
  .arch img { transform: none; }
}
