/* ============================================================
   KIRKENS KORSHÆR FREDERICIA
   style.css — Cinematic editorial aesthetic
   Fonts: Cormorant Garamond (serif display) + DM Sans (body)
   Palette: warm cream / deep charcoal / muted gold
   ============================================================ */

/* ---- RESET & BASE ----------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --cream:      #F5F0E8;
  --warm-white: #FAF8F4;
  --sand:       #E8E0D0;
  --gold:       #B8956A;
  --gold-light: #D4B896;
  --bark:       #7A6548;
  --charcoal:   #1C1814;
  --charcoal-2: #2C2620;
  --mid:        #6B6258;
  --muted:      #9A9088;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.65, 0, 0.35, 1);
}

html { scroll-behavior: auto; /* Lenis handles this */ }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--charcoal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }

a { color: inherit; text-decoration: none; }

/* ---- SCROLLBAR -------------------------------------------- */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold); }

/* ---- SELECTION -------------------------------------------- */
::selection { background: var(--gold); color: var(--warm-white); }

/* ---- SECTION LABEL --------------------------------------- */
.section-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}
.section-label.light { color: var(--gold-light); }

/* ---- SPLIT HEADING (GSAP targets .char inside) ----------- */
.split-heading .word { display: inline-block; overflow: hidden; }
.split-heading .char { display: inline-block; }

/* ============================================================
   NAV
   ============================================================ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease-out-expo),
              box-shadow 0.4s var(--ease-out-expo);
}

#nav.scrolled {
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(122, 101, 72, 0.15);
}

.nav-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--warm-white);
  transition: color 0.4s;
}
#nav.scrolled .nav-logo { color: var(--charcoal); }
.nav-logo em { font-style: italic; color: var(--gold); }

.nav-logo-cross {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--gold);
  font-family: var(--sans);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(250, 248, 244, 0.85);
  transition: color 0.25s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease-out-expo);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

#nav.scrolled .nav-links a { color: var(--mid); }
#nav.scrolled .nav-links a:hover { color: var(--charcoal); }

.lang-toggle {
  background: transparent;
  border: 1px solid rgba(250, 248, 244, 0.4);
  color: rgba(250, 248, 244, 0.85);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s;
}
.lang-toggle:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--warm-white);
}
#nav.scrolled .lang-toggle {
  border-color: var(--bark);
  color: var(--bark);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--warm-white);
  transition: all 0.3s;
}
#nav.scrolled .nav-burger span { background: var(--charcoal); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--warm-white);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 2rem 2.5rem;
  gap: 1.5rem;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.4s var(--ease-out-expo), opacity 0.3s;
  box-shadow: 0 8px 32px rgba(28, 24, 20, 0.12);
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
}
.mobile-menu a {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--charcoal);
  border-bottom: 1px solid var(--sand);
  padding-bottom: 1rem;
}

/* ============================================================
   HERO — optical flow field canvas
   ============================================================ */

/* The canvas fills the full viewport height */
#hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  cursor: none;          /* custom cursor takes over */
}

#flow-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  mix-blend-mode: screen;
  z-index: 1;
}

/* Hero background photo — sits beneath the flow canvas */
.hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.35) saturate(0.7);
  z-index: 0;
}

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

/* Thin vertical gold line — from ŌKAMI left-margin aesthetic */
#hero-vline {
  position: absolute;
  top: 0; bottom: 0;
  left: 52px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(201,168,76,0.15) 20%,
    rgba(201,168,76,0.15) 80%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 3;
  animation: hero-fade-up 2s 0.8s both;
}

/* All hero text content sits above the canvas (z-index 4+) */
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 52px;
  pointer-events: none; /* sliders/links re-enable below */
}

/* Top row: big title left, entropy readout right */
.hero-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

/* ── Title ────────────────────────────────────────────────── */
.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 0.92;
  color: rgba(240, 232, 216, 0.95);
  margin-bottom: 0.75rem;
}

.hero-line {
  display: block;
  font-size: clamp(4.5rem, 10vw, 9.5rem);
  animation: hero-slam 1.2s cubic-bezier(0.19, 1, 0.22, 1) both;
  transform-origin: left top;
}
.hero-line:nth-child(2) { animation-delay: 0.12s; }

.hero-line-italic {
  font-style: italic;
  color: rgba(201, 168, 76, 0.9);
}

@keyframes hero-slam {
  0%   { opacity: 0; transform: scale(1.3) rotate(-2deg); filter: blur(16px); }
  60%  { opacity: 1; filter: blur(0); }
  80%  { transform: scale(0.98) rotate(0.2deg); }
  100% { transform: scale(1) rotate(0); }
}

/* Eyebrow line below title */
.hero-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  color: rgba(201, 168, 76, 0.65);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6em;
  animation: hero-fade-up 1.5s 0.4s both;
}
.hero-eyebrow-sep { opacity: 0.4; }

/* ── HUD top-right: entropy readout ─────────────────────── */
.hero-hud-top {
  text-align: right;
  animation: hero-fade-up 1.5s 0.6s both;
}
.hud-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.48rem;
  letter-spacing: 0.28em;
  color: rgba(201, 168, 76, 0.45);
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}
.hud-value {
  font-family: 'Space Mono', monospace;
  font-size: 1.0rem;
  color: rgba(240, 232, 216, 0.55);
}

/* ── Centred tagline ─────────────────────────────────────── */
.hero-tagline-wrap {
  text-align: center;
  animation: hero-fade-up 1.6s 0.7s both;
}
.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(240, 232, 216, 0.55);
  letter-spacing: 0.04em;
}

/* ── Bottom row: status left, sliders right ─────────────── */
.hero-bottom-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  animation: hero-fade-up 1.5s 0.85s both;
}

.hero-hud-left {
  font-family: 'Space Mono', monospace;
  font-size: 0.46rem;
  letter-spacing: 0.18em;
  color: rgba(201, 168, 76, 0.38);
  line-height: 2.2;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
}
.hud-hot {
  color: rgba(201, 168, 76, 0.7);
  transition: color 0.3s;
}

/* Sliders — same spec as ŌKAMI, pointer-events re-enabled */
.hero-hud-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: all;
}

.flow-ctrl {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Mono', monospace;
  font-size: 0.46rem;
  letter-spacing: 0.14em;
  color: rgba(240, 232, 216, 0.32);
  text-transform: uppercase;
}
.flow-ctrl input[type=range] {
  -webkit-appearance: none;
  width: 80px; height: 1px;
  background: rgba(201, 168, 76, 0.22);
  outline: none;
  cursor: pointer;
}
.flow-ctrl input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(201, 168, 76, 0.6);
}

/* ── Scroll CTA ─────────────────────────────────────────── */
.hero-scroll-cta {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 0.46rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(201, 168, 76, 0.5);
  pointer-events: all;
  transition: color 0.25s;
  animation: hero-fade-up 2s 1.2s both;
  text-decoration: none;
}
.hero-scroll-cta:hover { color: rgba(201, 168, 76, 0.9); }
.hero-scroll-cta svg {
  animation: scroll-bob 2s ease-in-out infinite;
}
@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}

/* ── Custom cursor (only shows on desktop) ──────────────── */
#flow-cursor {
  position: fixed;
  width: 3px; height: 3px;
  background: rgba(240, 232, 216, 0.9);
  border-radius: 50%;
  pointer-events: none;
  z-index: 500;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(240,232,216,0.7), 0 0 20px rgba(240,232,216,0.25);
  display: none; /* shown via JS when mouse moves */
}
#flow-cursor::after {
  content: '';
  position: absolute;
  width: 26px; height: 26px;
  border: 1px solid rgba(240, 232, 216, 0.18);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

/* ── Shared hero animation ──────────────────────────────── */
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   ABOUT
   ============================================================ */
#about {
  background: var(--warm-white);
  padding: 10rem 8vw;
}

.about-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  align-items: center;
}

/* Image reveal — clip-path wipe on scroll */
.about-image-wrap {
  position: relative;
}

.about-image-frame {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  clip-path: inset(100% 0 0 0); /* JS animates to inset(0% 0 0 0) */
  will-change: clip-path;
}

.about-img {
  transform: scale(1.08); /* slight zoom that settles on reveal */
  will-change: transform;
}

.about-image-caption {
  margin-top: 1rem;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.about-image-caption::before {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--gold);
}

.about-text { opacity: 0; transform: translateY(40px); }

.about-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 2rem;
  color: var(--charcoal);
}

.about-body p {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--mid);
  margin-bottom: 1.25rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--sand);
}

.stat { display: flex; flex-direction: column; gap: 0.25rem; }

.stat-number {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ============================================================
   QUOTE BREAK
   ============================================================ */
#quote-break {
  background: var(--charcoal);
  padding: 7rem 8vw;
  display: flex;
  align-items: center;
  gap: 3rem;
  overflow: hidden;
}

.quote-line {
  flex: 1;
  height: 1px;
  background: var(--bark);
  transform: scaleX(0);
  will-change: transform;
}
.quote-line-left  { transform-origin: right center; }
.quote-line-right { transform-origin: left center; }

.pull-quote {
  text-align: center;
  flex-shrink: 0;
  max-width: 700px;
}

.pull-quote p {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 300;
  font-style: italic;
  color: var(--warm-white);
  line-height: 1.3;
  opacity: 0;
  transform: translateY(20px);
}

.pull-quote-mark {
  font-family: var(--serif);
  font-size: 5rem;
  line-height: 0;
  color: var(--gold);
  opacity: 0.4;
  vertical-align: -0.3em;
  display: inline-block;
}

/* ============================================================
   SERVICES
   ============================================================ */
#services {
  background: var(--cream);
  padding: 10rem 0;
}

.services-header {
  max-width: 1280px;
  margin: 0 auto 6rem;
  padding: 0 8vw;
}

.services-heading {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--charcoal);
}

/* Each panel: image + text side by side */
.service-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  margin-bottom: 2px;
  overflow: hidden;
}
.service-panel-reverse { direction: rtl; }
.service-panel-reverse > * { direction: ltr; }

/* Image side — clip-path wipe reveal */
.service-image-wrap {
  position: relative;
  overflow: hidden;
  clip-path: inset(0 100% 0 0); /* JS animates to inset(0 0% 0 0) */
  will-change: clip-path;
}

.service-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 0.8s var(--ease-out-expo);
  will-change: transform;
}
.service-panel:hover .service-img { transform: scale(1.02); }

/* Text side */
.service-text {
  background: var(--warm-white);
  padding: 5rem 6vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  transform: translateX(40px);
  will-change: opacity, transform;
}
.service-panel-reverse .service-text {
  transform: translateX(-40px);
}

.service-number {
  font-family: var(--serif);
  font-size: 5rem;
  font-weight: 300;
  color: var(--sand);
  line-height: 1;
  display: block;
}

.service-text h3 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.2;
}

.service-text p {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--mid);
  max-width: 480px;
}

/* ============================================================
   GALLERY
   ============================================================ */
#gallery {
  background: var(--charcoal);
  padding: 10rem 8vw;
}

.gallery-header {
  max-width: 1280px;
  margin: 0 auto 4rem;
}

.gallery-heading {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--warm-white);
}

/* Masonry grid */
.gallery-grid {
  max-width: 1280px;
  margin: 0 auto;
  columns: 3;
  column-gap: 12px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  will-change: opacity, transform;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s var(--ease-out-expo);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 24, 20, 0);
  transition: background 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .gallery-item-overlay {
  background: rgba(28, 24, 20, 0.35);
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-zoom-icon {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s, transform 0.3s var(--ease-out-expo);
  color: var(--warm-white);
  font-size: 1.5rem;
}
.gallery-item:hover .gallery-zoom-icon {
  opacity: 1;
  transform: scale(1);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(18, 15, 12, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
}
.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.25s;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: 1px solid rgba(250, 248, 244, 0.2);
  color: var(--warm-white);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.lightbox-close {
  top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  border-radius: 2px;
}
.lightbox-prev {
  left: 1.5rem; top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  font-size: 1.6rem;
  border-radius: 2px;
}
.lightbox-next {
  right: 1.5rem; top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  font-size: 1.6rem;
  border-radius: 2px;
}

.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(250, 248, 244, 0.5);
}

/* ============================================================
   VOLUNTEER / DONATE
   ============================================================ */
#volunteer {
  background: var(--charcoal-2);
  padding: 10rem 8vw;
}

.volunteer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 8rem;
  align-items: center;
}

.volunteer-heading {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--warm-white);
  margin-bottom: 1.75rem;
  opacity: 0;
  transform: translateY(40px);
}
.volunteer-heading em {
  font-style: italic;
  color: var(--gold-light);
}

.volunteer-body {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(250, 248, 244, 0.6);
  margin-bottom: 2.5rem;
  max-width: 500px;
  opacity: 0;
  transform: translateY(20px);
}

.volunteer-hours {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 1.25rem 1.5rem;
  border-left: 2px solid var(--gold);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
}

.volunteer-hours-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.volunteer-hours-time {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--warm-white);
}

.volunteer-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 2rem;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gold);
  color: var(--warm-white);
  border: 1px solid var(--gold);
}
.btn-primary:hover {
  background: var(--bark);
  border-color: var(--bark);
}

.btn-outline {
  background: transparent;
  color: var(--warm-white);
  border: 1px solid rgba(250, 248, 244, 0.3);
}
.btn-outline:hover {
  background: rgba(250, 248, 244, 0.08);
  border-color: rgba(250, 248, 244, 0.6);
}

/* Volunteer image */
.volunteer-image-wrap {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  clip-path: inset(100% 0 0 0);
  will-change: clip-path;
}

.volunteer-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
}

.volunteer-image-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: var(--gold);
  color: var(--warm-white);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 2px;
}

/* ============================================================
   CONTACT
   ============================================================ */
#contact {
  background: var(--warm-white);
  padding: 10rem 8vw;
}

.contact-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: start;
}

.contact-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--charcoal);
  margin-bottom: 2.5rem;
}
.contact-heading em { font-style: italic; color: var(--gold); }

.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1rem;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.5;
}

.contact-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: var(--sand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bark);
}

.contact-details a {
  color: var(--mid);
  transition: color 0.2s;
}
.contact-details a:hover { color: var(--gold); }

.contact-org {
  padding-top: 1.5rem;
  border-top: 1px solid var(--sand);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.contact-org p {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-national {
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  transition: color 0.2s;
}
.contact-national:hover { color: var(--bark); }

/* Map */
.contact-map {
  height: 480px;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  will-change: opacity, transform;
  border: 1px solid rgba(122, 101, 72, 0.2);
  background: #0f0c09;  /* matches map bg while loading */
  position: relative;
}

/* Loading shimmer shown before the map API fires */
.contact-map::before {
  content: 'Indlæser kort…';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(201, 168, 76, 0.3);
  pointer-events: none;
}

/* Hide the placeholder once the map canvas appears */
.contact-map.map-loaded::before { display: none; }

/* Override Google Maps default info window chrome */
.gm-style .gm-style-iw-c {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 4px !important;
}
.gm-style .gm-style-iw-d {
  overflow: hidden !important;
}
.gm-style .gm-style-iw-tc::after {
  background: #1c1814 !important;
}
/* Hide the default close button — our info window has its own */
.gm-style .gm-ui-hover-effect { display: none !important; }

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: var(--charcoal);
  padding: 4rem 8vw;
  border-top: 1px solid rgba(122, 101, 72, 0.2);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--warm-white);
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo em { font-style: italic; color: var(--gold); }
.footer-cross { color: var(--gold); font-family: var(--sans); font-size: 0.9rem; }

.footer-tagline {
  font-size: 13px;
  font-weight: 300;
  color: rgba(250, 248, 244, 0.4);
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 248, 244, 0.4);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }

.footer-copy {
  font-size: 11px;
  color: rgba(250, 248, 244, 0.2);
  letter-spacing: 0.06em;
}

/* ============================================================
   PAGE LOAD ANIMATION — curtain wipe
   ============================================================ */
.page-curtain {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--charcoal);
  transform-origin: top;
  pointer-events: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about-inner { grid-template-columns: 1fr; gap: 4rem; }
  .about-image-frame { aspect-ratio: 16/9; }
  .service-panel { grid-template-columns: 1fr; min-height: auto; }
  .service-panel-reverse { direction: ltr; }
  .service-image-wrap { aspect-ratio: 16/9; }
  .service-text { padding: 4rem 8vw; transform: none !important; }
  .volunteer-inner { grid-template-columns: 1fr; gap: 4rem; }
  .volunteer-image-wrap { aspect-ratio: 16/9; }
  .contact-inner { grid-template-columns: 1fr; }
  .contact-map { height: 320px; }
}

@media (max-width: 768px) {
  #nav { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  .gallery-grid { columns: 2; }

  #quote-break { flex-direction: column; gap: 2rem; padding: 5rem 8vw; }
  .quote-line { display: none; }

  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }

  .hero-content { padding: 0 6vw 6vh; }
}

@media (max-width: 480px) {
  .gallery-grid { columns: 1; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   UTILITY
   ============================================================ */
.no-select { user-select: none; }
