/* ============================================================
   GODBALLE BYG — main.css
   Modern Scandi-minimal · paper white · architectural grotesque
   ============================================================ */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  /* scroll-behavior intentionally NOT smooth — Lenis handles smoothing */
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 400;
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--ink); color: var(--paper); }

/* ---------- utilities ---------- */
.mono {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
}
.dim { color: var(--ink-3); }
.hide-sm { display: inline; }
@media (max-width: 760px) { .hide-sm { display: none; } }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  background: transparent;
  transition: padding 0.35s ease, background 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 14px var(--gutter);
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: blur(12px) saturate(1.05);
  -webkit-backdrop-filter: blur(12px) saturate(1.05);
  border-bottom-color: var(--hairline);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand-mark {
  width: 28px;
  height: 28px;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-wordmark {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--ink);
}

.nav-links { display: inline-flex; align-items: center; gap: 32px; }
.nav-links a {
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--ink);
  transition: width 0.3s ease;
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  padding: 11px 18px;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink) !important;
  transition: background 0.25s ease, color 0.25s ease;
}
.nav-cta:hover {
  background: var(--ink);
  color: var(--paper) !important;
}
.nav-cta span {
  margin-left: 8px;
  transition: transform 0.25s ease;
  display: inline-block;
}
.nav-cta:hover span { transform: translateX(3px); }

/* ----- Floating quote CTA — fades in after hero, hides near contact ----- */
.float-cta {
  position: fixed;
  right: clamp(16px, 3vw, 36px);
  bottom: clamp(16px, 3vw, 36px);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--clay);
  color: var(--paper-on-ink);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.01em;
  border: 1px solid var(--clay);
  border-radius: var(--r-1);
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(196, 78, 44, 0.30), 0 2px 10px rgba(33, 26, 20, 0.14);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease, border-color 0.25s ease;
}
.float-cta.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.float-cta:hover { background: var(--clay-deep); border-color: var(--clay-deep); }
.float-cta-arr { display: inline-block; transition: transform 0.25s ease; }
.float-cta:hover .float-cta-arr { transform: translateX(3px); }
/* hide the floating CTA while the mobile menu is open (backdrop precedes it in the DOM) */
.nav-backdrop--open ~ .float-cta { opacity: 0; pointer-events: none; }
@media (max-width: 600px) {
  .float-cta {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    padding: 13px 20px;
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .float-cta { transition: opacity 0.25s ease; transform: none; }
  .float-cta.is-visible { transform: none; }
}

/* ----- Phone CTA in nav — direct call link, clay-coloured ----- */
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  color: var(--clay) !important;
  background: rgba(196, 78, 44, 0.08);
  border: 1px solid rgba(196, 78, 44, 0.18);
  border-radius: 8px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.nav-phone:hover {
  background: var(--clay);
  color: var(--paper) !important;
  border-color: var(--clay);
}
.nav-phone svg {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.nav-phone:hover svg { transform: rotate(-8deg); }
@media (max-width: 880px) {
  .nav-phone span { display: none; }
  .nav-phone { padding: 8px; }
}

/* ---------- Mobile hamburger menu ---------- */
.nav-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
  position: relative;
  z-index: 70;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.nav-mobile-toggle:hover { border-color: var(--ink); }
.nav-mobile-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transform-origin: center;
  transition:
    transform 0.4s cubic-bezier(0.4, 0.05, 0.3, 1),
    opacity 0.25s ease;
}
.nav-mobile-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-mobile-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-mobile-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(33, 26, 20, 0.45);
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.nav-backdrop.nav-backdrop--open {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 880px) {
  .nav-mobile-toggle { display: inline-flex; }

  /* Transform .nav-links into a slide-in panel on the right */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(86vw, 360px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 88px var(--s-5) var(--s-6);
    background: var(--paper);
    border-left: 1px solid var(--hairline);
    transform: translateX(105%);
    transition: transform 0.5s cubic-bezier(0.4, 0.05, 0.3, 1);
    z-index: 60;
    overflow-y: auto;
    box-shadow: -20px 0 60px -10px rgba(33, 26, 20, 0.25);
  }
  .nav-links.nav-links--open {
    transform: translateX(0);
  }

  /* Show all anchor links inside the overlay (override the desktop hide) */
  .nav-links a:not(.nav-cta) {
    display: flex;
    align-items: center;
    padding: 18px 4px;
    font-family: var(--f-display);
    font-size: 22px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: -0.01em;
    color: var(--ink);
    border-bottom: 1px solid var(--hairline);
  }
  .nav-links a:not(.nav-cta)::after { display: none; }
  .nav-links a:not(.nav-cta):hover { color: var(--clay); }

  /* Phone CTA — clay highlight, full width pill */
  .nav-phone {
    margin-top: var(--s-4);
    padding: 14px 18px !important;
    background: var(--clay);
    color: var(--paper) !important;
    border-color: var(--clay);
    border-radius: 10px;
    justify-content: center;
    border-bottom: 0 !important;
    font-family: var(--f-display) !important;
    font-size: 17px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: -0.005em !important;
  }
  .nav-phone span {
    display: inline !important;
    font-size: 16px;
    letter-spacing: -0.005em;
  }

  /* "Få et tilbud" — bottom of overlay, big primary button */
  .nav-cta {
    margin-top: var(--s-5);
    padding: 18px 24px !important;
    background: var(--ink);
    color: var(--paper) !important;
    text-align: center;
    border-radius: 10px;
    font-size: 13px;
  }
  .nav-cta:hover { background: var(--clay) !important; border-color: var(--clay); }
}

/* ---------- hero — type-led poster with blurred photo background ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: clamp(120px, 16vh, 180px) var(--gutter) var(--s-7);
  /* Same noise as Anatomi so the texture matches across the boundary
     and no visible seam appears at the hero → anatomy join. */
  background:
    var(--noise) repeat,
    var(--paper);
  background-size: 220px 220px, auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--s-9);
  overflow: hidden;
  isolation: isolate;
}
/* Blurred photo background — sits behind everything in the hero.
   Slow ambient drift gives the otherwise-static hero a subtle "breathing"
   feel — barely perceptible per frame, very visible over the full 28s cycle. */
@keyframes hero-bg-drift {
  0%   { transform: scale(1.04) translate(0,      0); }
  25%  { transform: scale(1.07) translate(-1.4%, -0.8%); }
  50%  { transform: scale(1.09) translate(0,     -1.6%); }
  75%  { transform: scale(1.07) translate(1.4%,  -0.6%); }
  100% { transform: scale(1.04) translate(0,      0); }
}
.hero::before {
  content: "";
  position: absolute;
  inset: -50px;
  background-image: url("../images/hero/roof-aerial.jpg");
  background-size: cover;
  background-position: center;
  filter: blur(8px) saturate(1.08);
  transform: scale(1.04);
  /* animation chained at the bottom of the file in "Hero LOAD animations"
     — hero-bg-focus runs once on load, then hero-bg-drift loops forever */
  will-change: transform;
  z-index: -2;
  opacity: 0.85;
}
/* Paper-tinted overlay — the photo gradually dissolves into the paper
   colour of the Anatomi section below. Noise is added to the overlay
   so the bottom of the hero matches Anatomi's noise texture exactly. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    var(--noise) repeat,
    linear-gradient(180deg,
      rgba(250, 250, 247, 0.08)  0%,
      rgba(250, 250, 247, 0.12)  35%,
      rgba(250, 250, 247, 0.35)  62%,
      rgba(250, 250, 247, 0.78)  82%,
      rgba(250, 250, 247, 0.98)  95%,
      rgba(250, 250, 247, 1.00)  100%);
  background-size: 220px 220px, auto;
  z-index: -1;
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-7);
  min-height: 60vh;
}

/* Unified centered text block — eyebrow + wordmark + tag flow as one composition */
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s-5);
  max-width: 900px;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  justify-content: center;
  align-items: center;
}
.hero-eyebrow span {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  /* No box, no border, no padding, no background — just text */
}

/* wordmark — heavy display type, confident */
.hero-name {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: var(--t-display-xl);
  line-height: 0.88;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.hero-name-line { display: block; }
.hero-name-line:last-child { color: var(--clay); }   /* "Byg." in terracotta */

/* ---------- Hero contact card — wide flat horizontal panel, soft & translucent ---------- */
.hero-cta {
  width: 100%;
  max-width: 920px;
  padding: var(--s-5) var(--s-6);
  background: rgba(250, 250, 247, 0.55);
  backdrop-filter: blur(22px) saturate(1.10);
  -webkit-backdrop-filter: blur(22px) saturate(1.10);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 18px;
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr auto;
  gap: var(--s-5);
  align-items: end;
  box-shadow:
    0 32px 80px -32px rgba(33, 26, 20, 0.22),
    0 8px 24px -12px rgba(33, 26, 20, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  z-index: 5;
}
.hero-cta .hp { position: absolute; left: -9999px; }
.hero-cta-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-cta-field .mono {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero-cta-field input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline-2);
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 0 6px;
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s ease;
  width: 100%;
}
.hero-cta-field input::placeholder {
  color: var(--ink-3);
  font-weight: 400;
  opacity: 0.6;
}
.hero-cta-field input:focus { border-color: var(--clay); }

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  background: var(--clay);
  color: var(--paper);
  border: 0;
  padding: var(--s-3) var(--s-5);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.005em;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  height: 44px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.hero-cta-btn .arr {
  display: inline-block;
  transition: transform 0.25s ease;
  font-weight: 500;
}
.hero-cta-btn:hover { background: var(--clay-deep); }
.hero-cta-btn:hover .arr { transform: translateX(4px); }

/* Standalone hero CTA — erstatter den tidligere hero-form, så alle leads samles i den ene form nederst */
.hero-cta-solo {
  height: 54px;
  padding: 0 var(--s-6);
  font-size: 15px;
  border-radius: 14px;
  box-shadow: 0 14px 34px -12px rgba(196, 78, 44, 0.45);
}
.hero-cta-solo:hover { transform: translateY(-2px); }

/* Wraps the primary submit button inside the slim hero CTA cell. */
.hero-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

@media (max-width: 880px) {
  .hero-cta {
    grid-template-columns: 1fr;
    gap: var(--s-3);
    padding: var(--s-5);
  }
  .hero-cta-btn { width: 100%; height: 48px; }
}

/* bottom meta strip — 4 columns, edge-to-edge with hairline above */
.hero-foot {
  width: 100%;
  margin: 0 auto;
  max-width: var(--max);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  padding-top: var(--s-6);
  border-top: 1px solid var(--hairline);
}
.hero-foot-item {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.hero-foot-item dt {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}
.hero-foot-item dd {
  margin: 0;
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.005em;
}

/* ----- Trust badges row below the hero-foot meta strip ----- */
.hero-trust {
  width: 100%;
  margin: var(--s-5) auto 0;
  max-width: var(--max);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(250, 250, 247, 0.72);
  border: 1px solid rgba(33, 26, 20, 0.08);
  border-radius: 10px;
  /* Heavier resting shadow so they read as lifted off the hero photo */
  box-shadow:
    0 4px 8px rgba(33, 26, 20, 0.08),
    0 18px 36px -10px rgba(33, 26, 20, 0.20);
  --hover-y: 0px;
  --hover-scale: 1;
  transform: translateY(calc(var(--idle-y, 0px) + var(--hover-y))) scale(var(--hover-scale));
  /* Slow contemplative cycle — hero is the entry, motion should feel calm */
  animation: faq-float 7s ease-in-out infinite;
  /* Fast close transitions */
  transition:
    --hover-y 0.4s cubic-bezier(0.4, 0, 0.6, 1),
    --hover-scale 0.4s cubic-bezier(0.4, 0, 0.6, 1),
    background 0.35s ease,
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.6, 1);
  will-change: transform, box-shadow;
}
/* Stagger the 3 badges so they drift independently */
.hero-trust .trust-badge:nth-child(2) { animation-delay: -2.3s; }
.hero-trust .trust-badge:nth-child(3) { animation-delay: -4.6s; }

.trust-badge:hover {
  --hover-y: -8px;
  --hover-scale: 1.008;
  background: rgba(250, 250, 247, 0.94);
  box-shadow:
    0 12px 20px rgba(33, 26, 20, 0.12),
    0 32px 56px -8px rgba(33, 26, 20, 0.26);
  /* Slow gentle open transitions */
  transition:
    --hover-y 1.1s cubic-bezier(0.4, 0.05, 0.3, 1),
    --hover-scale 1.1s cubic-bezier(0.4, 0.05, 0.3, 1),
    background 0.9s ease,
    box-shadow 1.0s cubic-bezier(0.4, 0.05, 0.3, 1);
}
/* Real logos with transparent backgrounds. */
.trust-logo {
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}
.trust-logo--wide {
  height: 28px;
  width: auto;
  max-width: 120px;
}
.trust-logo--round {
  width: 38px;
  height: 38px;
}
.trust-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}
.trust-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.trust-name {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
@media (max-width: 880px) {
  .hero-trust { grid-template-columns: 1fr; gap: var(--s-3); }
}

@media (max-width: 880px) {
  .hero { gap: var(--s-7); }
  .hero-inner { gap: var(--s-7); }
  .hero-foot { grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
}
@media (max-width: 480px) {
  .hero-foot { grid-template-columns: 1fr; gap: var(--s-4); }
}

/* ---------- shared section eyebrow ---------- */
.section-eyebrow {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 400;
}

/* ---------- shared H2 — Outfit 700, heavy and confident ---------- */
.h2 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--t-display-l);
  line-height: 0.94;
  letter-spacing: -0.03em;
  color: var(--ink);
}

/* ---------- anatomi intro — value prop panel before the animation ---------- */
.anatomy-intro {
  padding: var(--rhythm) var(--gutter);
  background:
    var(--noise) repeat,
    radial-gradient(ellipse at 30% 0%, rgba(196, 78, 44, 0.03), transparent 55%),
    linear-gradient(180deg, #F5F2EC 0%, #FAFAF7 70%, #F4F1EA 100%);
  background-size: 220px 220px, auto, auto;
  border-top: 0;
  display: grid;
  place-items: center;
  min-height: 70vh;
}
.anatomy-intro-inner {
  max-width: 980px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-5);
}
.anatomy-intro-title {
  font-size: clamp(40px, 6vw, 92px);
  line-height: 1.0;
  letter-spacing: -0.035em;
}
.anatomy-intro-title .clay-em {
  color: var(--clay);
  display: inline-block;
}
.anatomy-intro-sub {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 64ch;
  margin: 0;
}

/* ---------- about ---------- */
/* ============================================================
   THEME FLOW — Om → Footer
   A SINGLE continuous gradient on the .theme-flow wrapper paints the
   sky-blue → clay-orange journey across all post-Anatomi sections in
   one piece. Sections themselves are transparent so there are no
   seam lines where one section ends and the next begins. Each section
   keeps its own subtle noise/blob overlays for atmosphere, but the
   colour itself flows seamlessly.
   ============================================================ */

.theme-flow {
  position: relative;
  /* Blue starts a touch shorter, warm tones come in earlier (around
     25%), and the gradient pushes to a more saturated clay-orange by
     the time it reaches the footer. */
  background:
    var(--noise) repeat,
    linear-gradient(180deg,
      #D8E4F0 0%,
      #D2DCE6 10%,
      #D5D2CC 22%,
      #E1CCB0 32%,
      #ECC094 44%,
      #E8A878 56%,
      #DE8E58 68%,
      #D17944 80%,
      #C66A33 92%,
      #BE5C24 100%
    );
  background-size: 220px 220px, auto;
}

.about {
  position: relative;
  padding: var(--rhythm) var(--gutter);
  /* Fully transparent — everything comes from .theme-flow wrapper. */
  background: transparent;
  border-top: 0;
  overflow: hidden;
}
.about-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: stretch;
}
.about-figure {
  margin: 0;
  align-self: stretch;
}
/* Frame wraps the image so border-radius + shadow apply to the
   container while the img itself stays a clean rectangle for crop.
   Resting state already has a pronounced "lifted off the page" shadow
   so it floats; hover pulls the WHOLE frame toward the viewer as a
   single unit (no inner zoom). */
.about-figure-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 540px;
  max-height: 760px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper-2);
  /* Strong resting shadow — visible "float" without hover */
  box-shadow:
    0 4px 8px rgba(33, 26, 20, 0.05),
    0 22px 44px -14px rgba(33, 26, 20, 0.22),
    0 52px 96px -28px rgba(33, 26, 20, 0.20);
  --hover-y: 0px;
  --hover-scale: 1;
  transform: translateY(calc(var(--idle-y, 0px) + var(--hover-y))) scale(var(--hover-scale));
  animation: service-float 6s ease-in-out infinite;
  /* Fast close transitions */
  transition:
    --hover-y 0.4s cubic-bezier(0.4, 0, 0.6, 1),
    --hover-scale 0.4s cubic-bezier(0.4, 0, 0.6, 1),
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.6, 1);
  will-change: transform, box-shadow;
}
.about-figure-frame img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 540px;
  max-height: 760px;
  object-fit: cover;
  filter: contrast(1.02) saturate(0.92);
  /* No inner transition — image moves with the frame, not separately. */
}
/* Hover: whole frame translates toward the viewer + scales as one piece.
   Shadow grows so the lift reads cleanly. NO inner image scale. */
.about-figure-frame:hover {
  --hover-y: -14px;
  --hover-scale: 1.018;
  box-shadow:
    0 12px 22px rgba(33, 26, 20, 0.10),
    0 38px 72px -10px rgba(33, 26, 20, 0.30),
    0 80px 130px -28px rgba(33, 26, 20, 0.28);
  /* Slow gentle open transitions */
  transition:
    --hover-y 1.2s cubic-bezier(0.4, 0.05, 0.3, 1),
    --hover-scale 1.2s cubic-bezier(0.4, 0.05, 0.3, 1),
    box-shadow 1.1s cubic-bezier(0.4, 0.05, 0.3, 1);
}
.about-figure figcaption {
  margin-top: var(--s-3);
  display: flex;
  gap: var(--s-4);
  align-items: center;
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  padding: clamp(36px, 4vw, 56px) clamp(32px, 3.6vw, 52px);
  max-width: 60ch;
  align-self: center;
  background: var(--paper-2);
  border-radius: 16px;
  box-shadow:
    0 4px 8px rgba(33, 26, 20, 0.04),
    0 22px 44px -14px rgba(33, 26, 20, 0.18),
    0 52px 96px -28px rgba(33, 26, 20, 0.16);
  --hover-y: 0px;
  --hover-scale: 1;
  transform: translateY(calc(var(--idle-y, 0px) + var(--hover-y))) scale(var(--hover-scale));
  /* 0.4s shorter cycle than .about-figure-frame so the two cards drift out of phase */
  animation: service-float 6.4s ease-in-out infinite -3.2s;
  transition:
    --hover-y 0.4s cubic-bezier(0.4, 0, 0.6, 1),
    --hover-scale 0.4s cubic-bezier(0.4, 0, 0.6, 1),
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.6, 1);
  will-change: transform, box-shadow;
}
.about-body:hover {
  --hover-y: -12px;
  --hover-scale: 1.012;
  box-shadow:
    0 12px 20px rgba(33, 26, 20, 0.08),
    0 36px 68px -10px rgba(33, 26, 20, 0.26),
    0 76px 124px -28px rgba(33, 26, 20, 0.22);
  transition:
    --hover-y 1.2s cubic-bezier(0.4, 0.05, 0.3, 1),
    --hover-scale 1.2s cubic-bezier(0.4, 0.05, 0.3, 1),
    box-shadow 1.1s cubic-bezier(0.4, 0.05, 0.3, 1);
}
.about-meta {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
.about-title { /* uses .h2 base */ }
.about-body .lead {
  font-family: var(--f-display);
  font-style: normal;
  font-weight: 600;
  font-size: var(--t-lead);
  line-height: 1.35;
  letter-spacing: -0.018em;
  margin: 0;
  color: var(--ink);
}
.about-body .lead strong { color: var(--clay); font-weight: 700; }
.about-body p {
  margin: 0;
  color: var(--ink-2);
  font-size: var(--t-body);
  line-height: 1.65;
}
.about-body strong { color: var(--ink); font-weight: 500; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: var(--s-7) 0 0;
  padding-top: var(--s-5);
  border-top: 1px solid var(--hairline);
}
.about-stats div {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: 0 var(--s-4) 0 0;
  border-right: 1px solid var(--hairline);
}
.about-stats div:last-child { border-right: 0; }
.about-stats div + div { padding-left: var(--s-4); }
.about-stats dt {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}
.about-stats dd {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.3;
}

@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: var(--s-8); }
  .about-figure-frame { min-height: 0; max-height: 640px; aspect-ratio: 3/4; }
  .about-figure-frame img { min-height: 0; max-height: 640px; }
  .about-body { max-width: 100%; padding: var(--s-7) var(--s-6); }
  .about-stats { grid-template-columns: 1fr 1fr; gap: 0; }
  .about-stats div { padding: var(--s-4) var(--s-4) var(--s-4) 0; border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
  .about-stats div + div { padding-left: var(--s-4); }
  .about-stats div:nth-child(2) { border-right: 0; }
  .about-stats div:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ---------- testimonials — kundeudtalelser ---------- */
.testimonials {
  position: relative;
  padding: var(--rhythm) var(--gutter) var(--s-9);
  background: transparent;
  overflow: hidden;
}
.testimonials-header {
  max-width: var(--max);
  margin: 0 auto var(--s-8);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--s-7);
  align-items: end;
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--hairline);
}
.testimonials-sub {
  color: var(--ink-2);
  font-size: var(--t-lead);
  font-weight: 400;
  line-height: 1.45;
  margin: 0;
}
.testimonials-grid {
  max-width: var(--max);
  margin: 0 auto;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}
/* Testimonials idle float — 3 cards, slow contemplative cycle */
@keyframes testimonial-float {
  0%, 100% { --idle-y: 0px; }
  50%      { --idle-y: -5px; }
}

.testimonial {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: clamp(24px, 2.8vw, 36px);
  background: var(--paper-2);
  border-radius: 16px;
  border: 1px solid rgba(33, 26, 20, 0.04);
  box-shadow:
    0 6px 12px rgba(33, 26, 20, 0.05),
    0 24px 48px -14px rgba(33, 26, 20, 0.18),
    0 52px 96px -28px rgba(33, 26, 20, 0.16);
  --hover-y: 0px;
  --hover-scale: 1;
  transform: translateY(calc(var(--idle-y, 0px) + var(--hover-y))) scale(var(--hover-scale));
  animation: testimonial-float 6.5s ease-in-out infinite;
  /* Fast close transitions */
  transition:
    --hover-y 0.4s cubic-bezier(0.4, 0, 0.6, 1),
    --hover-scale 0.4s cubic-bezier(0.4, 0, 0.6, 1),
    border-color 0.35s ease-out,
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.6, 1);
  will-change: transform, box-shadow;
}
/* Stagger float per testimonial */
.testimonials-grid .testimonial:nth-child(2) { animation-delay: -2.0s; }
.testimonials-grid .testimonial:nth-child(3) { animation-delay: -4.2s; }

.testimonial:hover {
  --hover-y: -12px;
  --hover-scale: 1.01;
  border-color: rgba(196, 78, 44, 0.25);
  box-shadow:
    0 16px 24px rgba(33, 26, 20, 0.10),
    0 40px 72px -10px rgba(33, 26, 20, 0.28),
    0 72px 120px -32px rgba(33, 26, 20, 0.22);
  /* Slow gentle open transitions */
  transition:
    --hover-y 1.2s cubic-bezier(0.4, 0.05, 0.3, 1),
    --hover-scale 1.2s cubic-bezier(0.4, 0.05, 0.3, 1),
    border-color 1.0s ease-out,
    box-shadow 1.1s cubic-bezier(0.4, 0.05, 0.3, 1);
}
.testimonial-stars {
  display: flex;
  gap: 2px;
  font-size: 16px;
  color: var(--clay);
  letter-spacing: 0.04em;
}
.testimonial-quote {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  font-style: normal;
}
.testimonial-quote::before {
  content: "\201C";
  display: block;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 48px;
  line-height: 0.4;
  color: var(--clay);
  margin-bottom: 12px;
  height: 16px;
}
.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
  padding-top: var(--s-3);
  border-top: 1px solid var(--hairline);
}
.testimonial-name {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
}
.testimonial-role {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
@media (max-width: 1100px) {
  .testimonials-header { grid-template-columns: 1fr; align-items: start; gap: var(--s-3); }
}
@media (max-width: 880px) {
  /* Swipe-carousel on mobile — same pattern as Projekter gallery */
  .testimonials-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
    gap: 14px;
    padding: 20px var(--gutter);
    margin: 0 calc(-1 * var(--gutter));
  }
  .testimonials-grid::-webkit-scrollbar { display: none; }
  .testimonials-grid .testimonial {
    flex: 0 0 min(82vw, 360px);
    scroll-snap-align: center;
  }
}

/* ---------- services — fully transparent ---------- */
.services {
  position: relative;
  padding: var(--rhythm) var(--gutter);
  background: transparent;
  color: var(--ink);
  border-top: 0;
  overflow: hidden;
}
.services-header {
  max-width: var(--max);
  margin: 0 auto var(--s-9);
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--s-7);
  align-items: end;
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--hairline);
}
.services-header .section-eyebrow { color: var(--ink-3); }
.services-title { color: var(--ink); }
.services-sub {
  color: var(--ink-2);
  font-size: var(--t-lead);
  font-weight: 400;
  line-height: 1.45;
  max-width: 56ch;
  margin: 0;
}
@media (max-width: 880px) {
  .services-header { grid-template-columns: 1fr; align-items: start; gap: var(--s-5); }
}

.services-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: var(--max);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.service {
  display: grid;
  grid-template-columns: 56px 1.4fr 2fr 1.3fr;
  gap: var(--s-5);
  align-items: center;
  padding: clamp(22px, 2.4vw, 28px) clamp(26px, 2.8vw, 36px);
  background: var(--paper-2);
  border-radius: 14px;
  border: 1px solid rgba(33, 26, 20, 0.06);
  /* Heavier resting shadow so cards already look like they're floating */
  box-shadow:
    0 6px 12px rgba(33, 26, 20, 0.05),
    0 24px 48px -12px rgba(33, 26, 20, 0.18);
  position: relative;
  overflow: hidden;
  /* Combined transform — animation drives --idle-y, hover drives --hover-y/--hover-scale */
  --hover-y: 0px;
  --hover-scale: 1;
  transform: translateY(calc(var(--idle-y, 0px) + var(--hover-y))) scale(var(--hover-scale));
}
.service::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--clay);
  opacity: 0;
  transform: scaleY(0.6);
  transform-origin: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.service .num {
  color: var(--clay);
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.service h3 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 600;
  font-style: normal;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--ink);
}
.service p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
  max-width: 56ch;
}
.service .tag {
  color: var(--ink-3);
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: right;
}

@media (max-width: 900px) {
  .service {
    grid-template-columns: 1fr;
    gap: var(--s-3);
    padding: var(--s-6) var(--s-5);
    align-items: start;
  }
  .service .tag { text-align: left; }
}
@media (max-width: 880px) {
  /* Swipe-carousel on mobile — same pattern as testimonials + Projekter */
  .services-list {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 14px;
    padding: 20px var(--gutter);
    margin: 0 calc(-1 * var(--gutter));
    max-width: 100%;
  }
  .services-list::-webkit-scrollbar { display: none; }
  .services-list .service {
    flex: 0 0 min(85vw, 420px);
    scroll-snap-align: center;
  }
}

/* ---------- area — service-område sektion ---------- */
.area {
  position: relative;
  padding: var(--rhythm) var(--gutter) var(--s-9);
  background: transparent;
  overflow: hidden;
}
.area-header {
  max-width: var(--max);
  margin: 0 auto var(--s-8);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--s-7);
  align-items: end;
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--hairline);
}
.area-title { /* uses .h2 */ }
.area-sub {
  margin: 0;
  font-size: var(--t-lead);
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 60ch;
}

.area-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
}
.area-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: clamp(20px, 2.2vw, 28px) clamp(18px, 2vw, 24px);
  background: var(--paper-2);
  border-radius: 12px;
  border: 1px solid rgba(33, 26, 20, 0.06);
  box-shadow:
    0 2px 4px rgba(33, 26, 20, 0.04),
    0 16px 32px -16px rgba(33, 26, 20, 0.12);
  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.3s ease;
}
.area-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 78, 44, 0.30);
  box-shadow:
    0 4px 8px rgba(33, 26, 20, 0.06),
    0 24px 48px -16px rgba(33, 26, 20, 0.18);
}

/* Home base tile — Silkeborg, clay-coloured emphasis */
.area-tile--home {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  background: var(--clay);
  border-color: var(--clay);
  color: var(--paper);
  grid-column: span 1;
}
.area-tile--home:hover {
  background: var(--clay-deep);
  border-color: var(--clay-deep);
  box-shadow:
    0 4px 8px rgba(155, 59, 31, 0.18),
    0 24px 48px -14px rgba(155, 59, 31, 0.30);
}
.area-tile--home .area-pin {
  color: var(--paper);
  flex-shrink: 0;
}
.area-tile--home .area-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.area-tile--home .area-name { color: var(--paper); }
.area-tile--home .area-meta {
  color: rgba(250, 250, 247, 0.78);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.area-name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.area-meta {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.area-foot {
  max-width: var(--max);
  margin: var(--s-7) auto 0;
  text-align: center;
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}
.area-foot a {
  color: var(--clay);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.area-foot a:hover {
  border-bottom-color: var(--clay);
}

@media (max-width: 1100px) {
  .area-header { grid-template-columns: 1fr; align-items: start; gap: var(--s-3); }
  .area-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .area-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- gallery — strict 3-column index ---------- */
.gallery {
  position: relative;
  padding: var(--rhythm) var(--gutter);
  background: transparent;
  border-top: 0;
  overflow: hidden;
}
.gallery-header {
  max-width: var(--max);
  margin: 0 auto var(--s-8);
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--s-7);
  align-items: end;
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--hairline);
}
.gallery-title { /* .h2 base */ }
.gallery-sub {
  color: var(--ink-2);
  font-size: var(--t-lead);
  font-weight: 400;
  line-height: 1.45;
  max-width: 56ch;
  margin: 0;
}
@media (max-width: 880px) {
  .gallery-header { grid-template-columns: 1fr; align-items: start; gap: var(--s-5); }
}

/* ----- Peek carousel: one image centred, two peeking on the sides ----- */
.gallery-carousel {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}
.gallery-track {
  display: flex;
  gap: clamp(20px, 2.5vw, 40px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Side padding so the first/last item can snap to centre.
     Combined with item width (~58vw), that leaves ~21vw peek on each side. */
  padding: var(--s-3) calc((100vw - min(58vw, 680px)) / 2) var(--s-7);
  scroll-padding-inline: calc((100vw - min(58vw, 680px)) / 2);
}
.gallery-track::-webkit-scrollbar { display: none; }

.gallery-track .g-item {
  /* Subtle resting state for side items — small tilt back + slight
     shrink + gentle dip. Just enough to suggest depth, not aggressive. */
  --rot: 10deg;
  --tx: 0px;
  --ty: 6px;
  --tz: -30px;
  --sc: 0.86;
  --bl: 1.2px;
  --op: 0.72;
  flex: 0 0 min(58vw, 680px);
  margin: 0;
  position: relative;
  cursor: zoom-in;
  scroll-snap-align: center;
  scroll-snap-stop: always;

  filter: blur(var(--bl));
  opacity: var(--op);
  transform:
    perspective(1400px)
    translate3d(var(--tx), var(--ty), var(--tz))
    rotateY(var(--rot))
    scale(var(--sc));
  transform-origin: center center;
  transition:
    filter 360ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 360ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 460ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 460ms cubic-bezier(0.2, 0.8, 0.2, 1);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(33, 26, 20, 0.06);
  will-change: transform, filter, opacity;
}
.gallery-track .g-item.is-current {
  filter: blur(0);
  opacity: 1;
  box-shadow:
    0 4px 8px rgba(33, 26, 20, 0.06),
    0 18px 36px -12px rgba(33, 26, 20, 0.20),
    0 40px 80px -24px rgba(33, 26, 20, 0.22);
}
.g-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: contrast(1.02) saturate(0.92);
  display: block;
}
.g-item figcaption {
  position: absolute;
  left: var(--s-5);
  right: var(--s-5);
  bottom: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--s-3) var(--s-4);
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-radius: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 360ms ease, transform 360ms ease;
}
.g-item.is-current figcaption {
  opacity: 1;
  transform: translateY(0);
}
.g-item figcaption .mono {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.g-item figcaption span:not(.mono) {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.3;
}

/* ----- Nav arrows ----- */
.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: rgba(250, 250, 247, 0.94);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border: 1px solid rgba(33, 26, 20, 0.08);
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink);
  box-shadow:
    0 4px 12px rgba(33, 26, 20, 0.08),
    0 16px 32px -10px rgba(33, 26, 20, 0.14);
  transform: translateY(-50%);
  transition:
    background 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}
.gallery-nav:hover {
  background: var(--clay);
  color: var(--paper);
  transform: translateY(-50%) scale(1.06);
  box-shadow:
    0 6px 16px rgba(196, 78, 44, 0.20),
    0 22px 44px -12px rgba(196, 78, 44, 0.28);
}
.gallery-nav--prev { left: clamp(12px, 3vw, 56px); }
.gallery-nav--next { right: clamp(12px, 3vw, 56px); }

@media (max-width: 880px) {
  .g-item { flex-basis: min(82vw, 480px); }
  .gallery-track {
    padding-inline: calc((100vw - min(82vw, 480px)) / 2);
    scroll-padding-inline: calc((100vw - min(82vw, 480px)) / 2);
  }
  .gallery-nav { width: 44px; height: 44px; }
}
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ---------- contact ---------- */
.contact {
  position: relative;
  /* Tighter bottom padding so the footer card sits closer to contact. */
  padding: var(--rhythm) var(--gutter) var(--s-7);
  background: transparent;
  border-top: 0;
  overflow: hidden;
}
.contact-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: stretch;
}

/* ----- Contact pitch as a paper card ----- */
.contact-pitch {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  background: var(--paper-2);
  border-radius: 16px;
  padding: clamp(24px, 2.8vw, 36px) clamp(28px, 3.2vw, 44px);
  box-shadow:
    0 4px 8px rgba(33, 26, 20, 0.05),
    0 22px 44px -14px rgba(33, 26, 20, 0.22),
    0 52px 96px -28px rgba(33, 26, 20, 0.20);
  align-self: start;
  --hover-y: 0px;
  --hover-scale: 1;
  transform: translateY(calc(var(--idle-y, 0px) + var(--hover-y))) scale(var(--hover-scale));
  animation: faq-float 5.8s ease-in-out infinite;
  transition:
    --hover-y 0.4s cubic-bezier(0.4, 0, 0.6, 1),
    --hover-scale 0.4s cubic-bezier(0.4, 0, 0.6, 1),
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.6, 1);
  will-change: transform, box-shadow;
}
.contact-pitch:hover {
  --hover-y: -10px;
  --hover-scale: 1.008;
  box-shadow:
    0 12px 20px rgba(33, 26, 20, 0.09),
    0 36px 68px -10px rgba(33, 26, 20, 0.30),
    0 76px 124px -28px rgba(33, 26, 20, 0.26);
  transition:
    --hover-y 1.2s cubic-bezier(0.4, 0.05, 0.3, 1),
    --hover-scale 1.2s cubic-bezier(0.4, 0.05, 0.3, 1),
    box-shadow 1.1s cubic-bezier(0.4, 0.05, 0.3, 1);
}
.contact-title { /* .h2 base */ }
.contact-lede {
  color: var(--ink-2);
  font-size: var(--t-lead);
  font-weight: 400;
  line-height: 1.45;
  max-width: 52ch;
  margin: 0;
}
.contact-list {
  margin: var(--s-4) 0 0;
  padding-top: var(--s-4);
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}
.contact-list div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--s-3) var(--s-4);
  background: rgba(250, 250, 247, 0.7);
  border-radius: 8px;
  border: 1px solid rgba(33, 26, 20, 0.06);
}
.contact-list dt {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}
.contact-list dd {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.contact-list a {
  transition: color 0.2s ease;
  border-bottom: 1px solid transparent;
}
.contact-list a:hover {
  color: var(--clay);
  border-bottom-color: var(--clay);
}

/* ----- Contact form as a paper card ----- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  background: var(--paper-2);
  border-radius: 16px;
  padding: clamp(24px, 2.8vw, 36px) clamp(28px, 3.2vw, 44px);
  box-shadow:
    0 4px 8px rgba(33, 26, 20, 0.05),
    0 22px 44px -14px rgba(33, 26, 20, 0.22),
    0 52px 96px -28px rgba(33, 26, 20, 0.20);
  align-self: start;
  --hover-y: 0px;
  --hover-scale: 1;
  transform: translateY(calc(var(--idle-y, 0px) + var(--hover-y))) scale(var(--hover-scale));
  /* Different cycle so pitch + form drift out of phase */
  animation: faq-float 6.6s ease-in-out infinite -2.9s;
  transition:
    --hover-y 0.4s cubic-bezier(0.4, 0, 0.6, 1),
    --hover-scale 0.4s cubic-bezier(0.4, 0, 0.6, 1),
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.6, 1);
  will-change: transform, box-shadow;
}
.contact-form:hover {
  --hover-y: -10px;
  --hover-scale: 1.008;
  box-shadow:
    0 12px 20px rgba(33, 26, 20, 0.09),
    0 36px 68px -10px rgba(33, 26, 20, 0.30),
    0 76px 124px -28px rgba(33, 26, 20, 0.26);
  transition:
    --hover-y 1.2s cubic-bezier(0.4, 0.05, 0.3, 1),
    --hover-scale 1.2s cubic-bezier(0.4, 0.05, 0.3, 1),
    box-shadow 1.1s cubic-bezier(0.4, 0.05, 0.3, 1);
}
.contact-form .hp { position: absolute; left: -9999px; }

/* Form fields: bordered boxes instead of underlines */
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field label {
  font-family: var(--f-mono);
  color: var(--ink-2);
  font-size: var(--t-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}
.field input,
.field textarea,
.field select {
  background: rgba(250, 250, 247, 0.8);
  border: 1px solid rgba(33, 26, 20, 0.12);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  outline: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}
.field textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.5;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M0 0 L6 8 L12 0' fill='%2314140F'/></svg>") right 14px center no-repeat,
    rgba(250, 250, 247, 0.8);
  padding-right: 36px;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--clay);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(196, 78, 44, 0.12);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}
.submit {
  margin-top: var(--s-4);
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  background: var(--clay);
  color: var(--paper);
  border: 1px solid var(--clay);
  padding: 16px 32px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.005em;
  border-radius: 8px;
  box-shadow: 0 8px 24px -10px rgba(196, 78, 44, 0.45);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
  cursor: pointer;
}
.submit span { transition: transform 0.25s ease; display: inline-block; }
.submit:hover {
  background: var(--clay-deep);
  border-color: var(--clay-deep);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px -10px rgba(155, 59, 31, 0.55);
}
.submit:hover span { transform: translateX(4px); }

/* Submit button row */
.submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4);
  margin-top: var(--s-3);
}

.form-foot {
  margin: 0;
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .contact-list { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: var(--s-5); }
}

/* ---------- cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: clamp(16px, 2vw, 32px);
  transform: translateX(-50%) translateY(0);
  z-index: 100;
  max-width: min(720px, calc(100vw - 32px));
  width: 100%;
  background: var(--paper-2);
  border: 1px solid rgba(33, 26, 20, 0.08);
  border-radius: 14px;
  box-shadow:
    0 4px 8px rgba(33, 26, 20, 0.06),
    0 22px 44px -14px rgba(33, 26, 20, 0.22),
    0 52px 96px -28px rgba(33, 26, 20, 0.20);
  animation: cookie-rise 480ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.cookie-banner[hidden] { display: none; }
@keyframes cookie-rise {
  from { opacity: 0; transform: translateX(-50%) translateY(24px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.cookie-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(16px, 2vw, 28px);
  align-items: center;
  padding: clamp(16px, 2vw, 22px) clamp(20px, 2.4vw, 26px);
}
.cookie-title {
  margin: 0 0 6px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.cookie-text {
  margin: 0;
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 56ch;
}
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}
.cookie-btn--secondary {
  background: transparent;
  color: var(--ink-2);
  border: 1px solid rgba(33, 26, 20, 0.18);
}
.cookie-btn--secondary:hover {
  background: rgba(33, 26, 20, 0.04);
  color: var(--ink);
}
.cookie-btn--primary {
  background: var(--clay);
  color: var(--paper);
  border: 1px solid var(--clay);
  box-shadow: 0 4px 12px -4px rgba(196, 78, 44, 0.4);
}
.cookie-btn--primary:hover {
  background: var(--clay-deep);
  border-color: var(--clay-deep);
  transform: translateY(-1px);
}
@media (max-width: 640px) {
  .cookie-inner { grid-template-columns: 1fr; }
  .cookie-actions { flex-direction: column-reverse; }
  .cookie-btn { width: 100%; justify-content: center; }
}

/* ---------- footer — paper card so text stays legible on orange ---------- */
.footer {
  position: relative;
  /* Tight top so contact + footer feel like one bottom zone. */
  padding: 0 var(--gutter) var(--s-7);
  background: transparent;
  border-top: 0;
  overflow: hidden;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--s-6);
  align-items: stretch;
  background: var(--paper-2);
  border-radius: 16px;
  padding: clamp(28px, 3.2vw, 44px) clamp(28px, 3.2vw, 44px);
  box-shadow:
    0 4px 8px rgba(33, 26, 20, 0.04),
    0 22px 44px -14px rgba(33, 26, 20, 0.18),
    0 52px 96px -28px rgba(33, 26, 20, 0.16);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-4);
}
.footer-brand .brand-mark { width: 28px; height: 28px; color: var(--ink); }
.footer-brand .brand-wordmark {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.footer-col span,
.footer-col a {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--clay); }
/* Designer-credit → bridge tilbage til Madsen Studio (subtil men findbar konverterings-link) */
.footer-col a.footer-credit { margin-top: var(--s-2); color: var(--clay); opacity: 0.85; }
.footer-col a.footer-credit:hover { opacity: 1; color: var(--clay); }

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--s-5);
    padding: var(--s-6) var(--s-5);
  }
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: var(--scrim);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox[aria-hidden="false"] { opacity: 1; pointer-events: auto; }
.lightbox-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: transparent;
  border: 1px solid var(--ink-3);
  color: var(--paper);
  width: 44px; height: 44px;
  font-family: var(--f-mono);
  font-size: 16px;
  border-radius: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ============================================================
   MOTION LAYER — custom cursor, parallax, hover effects, reveal
   Active on devices with a pointer (skipped on mobile via JS).
   ============================================================ */

/* ---------- Custom cursor ---------- */
html.has-cursor,
html.has-cursor body,
html.has-cursor * { cursor: none; }
html.has-cursor a,
html.has-cursor button,
html.has-cursor [role="button"],
html.has-cursor input,
html.has-cursor textarea,
html.has-cursor select,
html.has-cursor .g-item { cursor: none; }

.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 40px;
  border: 1.5px solid var(--clay);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  animation: cursor-in 0.4s 0.3s ease forwards;
  transition: width 0.30s cubic-bezier(.2,.9,.3,1.2),
              height 0.30s cubic-bezier(.2,.9,.3,1.2),
              border-color 0.25s ease,
              background 0.25s ease;
  will-change: transform;
  mix-blend-mode: normal;
}
@keyframes cursor-in { to { opacity: 1; } }

.cursor-dot {
  position: absolute;
  top: 50%; left: 50%;
  width: 6px; height: 6px;
  background: var(--clay);
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.cursor.hover {
  width: 64px;
  height: 64px;
  background: rgba(196, 78, 44, 0.06);
}
.cursor.hover .cursor-dot { opacity: 0; }
.cursor.press {
  width: 28px;
  height: 28px;
  background: rgba(196, 78, 44, 0.18);
}

/* ---------- Hero wordmark — 3D transform ---------- */
.hero-name {
  transform-style: preserve-3d;
  will-change: transform;
  transition: none;
}

/* ---------- Magnetic buttons — smooth return ---------- */
.nav-cta,
.submit {
  will-change: transform;
  transition: transform 0.25s cubic-bezier(.3,.9,.4,1),
              background 0.25s ease,
              color 0.25s ease;
}

/* ---------- Service cards — idle float + dramatic hover lift ---------- */
@property --idle-y {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
@keyframes service-float {
  0%, 100% { --idle-y: 0px; }
  50%      { --idle-y: -5px; }
}
.service {
  animation: service-float 5.5s ease-in-out infinite;
  transition:
    --hover-y 1.2s cubic-bezier(0.4, 0.05, 0.3, 1),
    --hover-scale 1.2s cubic-bezier(0.4, 0.05, 0.3, 1),
    box-shadow 1.2s cubic-bezier(0.4, 0.05, 0.3, 1),
    border-color 1.0s ease-out;
  will-change: transform, box-shadow;
}
/* Stagger so the cards drift out of phase — never the elevator look */
.services-list .service:nth-child(1) { animation-delay: 0s; }
.services-list .service:nth-child(2) { animation-delay: -0.9s; }
.services-list .service:nth-child(3) { animation-delay: -1.8s; }
.services-list .service:nth-child(4) { animation-delay: -2.7s; }
.services-list .service:nth-child(5) { animation-delay: -3.6s; }
.services-list .service:nth-child(6) { animation-delay: -4.5s; }

.service:hover {
  --hover-y: -16px;
  --hover-scale: 1.01;
  border-color: rgba(196, 78, 44, 0.30);
  box-shadow:
    0 16px 24px rgba(33, 26, 20, 0.10),
    0 40px 72px -10px rgba(33, 26, 20, 0.28),
    0 72px 120px -28px rgba(33, 26, 20, 0.22);
}
.service:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

/* ---------- Gallery hover lift ---------- */
.g-item {
  transition: transform 0.4s cubic-bezier(.3,.9,.4,1), outline-color 0.25s ease, outline-offset 0.2s ease;
}
.g-item:hover {
  transform: translateY(-6px);
}

/* ---------- Scroll-reveal — fade + lift on enter ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(.2,.6,.2,1),
              transform 0.9s cubic-bezier(.2,.6,.2,1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children in services list + gallery */
.services-list .service:nth-child(1) { transition-delay: 0.00s; }
.services-list .service:nth-child(2) { transition-delay: 0.06s; }
.services-list .service:nth-child(3) { transition-delay: 0.12s; }
.services-list .service:nth-child(4) { transition-delay: 0.18s; }
.services-list .service:nth-child(5) { transition-delay: 0.24s; }
.services-list .service:nth-child(6) { transition-delay: 0.30s; }
.gallery-grid .g-item:nth-child(n) { transition-delay: calc((var(--i, 0) - 1) * 0.04s); }
.gallery-grid .g-item:nth-child(1) { --i: 1; }
.gallery-grid .g-item:nth-child(2) { --i: 2; }
.gallery-grid .g-item:nth-child(3) { --i: 3; }
.gallery-grid .g-item:nth-child(4) { --i: 4; }
.gallery-grid .g-item:nth-child(5) { --i: 5; }
.gallery-grid .g-item:nth-child(6) { --i: 6; }

/* ============================================================
   Hero LOAD animations — soft settling reveal on page load
   ============================================================ */
@keyframes hero-bg-focus {
  from {
    opacity: 0;
    filter: blur(36px) saturate(1.0);
    transform: scale(1.10);
  }
  to {
    opacity: 0.85;
    filter: blur(8px) saturate(1.08);
    transform: scale(1.04);
  }
}
@keyframes drop-in {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes soft-scale-in {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* background image — slow focus pull from blurred + zoomed to settled,
   THEN continuous ambient drift kicks in (chained via animation-delay) */
.hero::before {
  animation:
    hero-bg-focus 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0s both,
    hero-bg-drift 28s ease-in-out 1.8s infinite;
}

/* eyebrow line "drops" in from above */
.hero-eyebrow {
  animation: drop-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.10s both;
}

/* wordmark — soft scale + rise so it lands like a stamp */
.hero-name {
  animation: soft-scale-in 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s both;
}

/* contact card rises up from below */
.hero-cta {
  animation: rise-in 1.0s cubic-bezier(0.2, 0.7, 0.2, 1) 0.55s both;
}

/* foot meta strip arrives last */
.hero-foot {
  animation: rise-in 0.95s cubic-bezier(0.2, 0.7, 0.2, 1) 0.75s both;
}

/* ---------- VÆRDIER — hvorfor Godballe Byg ---------- */
.values {
  position: relative;
  padding: 0 var(--gutter) var(--s-7);
  background: transparent;
  overflow: hidden;
  scroll-margin-top: 80px;
}
.values-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.6vw, 20px);
}
.values-header {
  grid-column: 1 / -1;
  margin-bottom: var(--s-3);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--hairline);
}
.values-eyebrow {
  font-size: var(--t-mono);
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.values-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(28px, 2.6vw, 38px);
  letter-spacing: -0.018em;
  line-height: 1.1;
  color: var(--ink);
  margin: 0;
  max-width: 24ch;
}
/* Værdier idle float — 4 tiles, slightly faster cycle */
@keyframes value-float {
  0%, 100% { --idle-y: 0px; }
  50%      { --idle-y: -4px; }
}

.value-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(22px, 2.4vw, 30px) clamp(22px, 2.4vw, 28px);
  background: var(--paper-2);
  border-radius: 14px;
  border: 1px solid rgba(33, 26, 20, 0.06);
  /* Heavier resting shadow so tiles already look floating */
  box-shadow:
    0 6px 12px rgba(33, 26, 20, 0.05),
    0 22px 44px -14px rgba(33, 26, 20, 0.16);
  overflow: hidden;
  --hover-y: 0px;
  --hover-scale: 1;
  transform: translateY(calc(var(--idle-y, 0px) + var(--hover-y))) scale(var(--hover-scale));
  animation: value-float 5s ease-in-out infinite;
  /* Fast close transitions — used when hover ends */
  transition:
    --hover-y 0.4s cubic-bezier(0.4, 0, 0.6, 1),
    --hover-scale 0.4s cubic-bezier(0.4, 0, 0.6, 1),
    border-color 0.35s ease-out,
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.6, 1);
  will-change: transform, box-shadow;
}
/* Stagger float per tile */
.values-grid .value-tile:nth-child(2) { animation-delay: -1.2s; }
.values-grid .value-tile:nth-child(3) { animation-delay: -2.4s; }
.values-grid .value-tile:nth-child(4) { animation-delay: -3.6s; }
.values-grid .value-tile:nth-child(5) { animation-delay: -4.4s; }

.value-tile::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--clay);
  opacity: 0;
  transform: scaleY(0.6);
  transform-origin: center;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.value-tile:hover {
  --hover-y: -10px;
  --hover-scale: 1.008;
  border-color: rgba(196, 78, 44, 0.30);
  box-shadow:
    0 14px 22px rgba(33, 26, 20, 0.09),
    0 38px 72px -10px rgba(33, 26, 20, 0.26),
    0 60px 100px -28px rgba(33, 26, 20, 0.18);
  /* Slow gentle open transitions */
  transition:
    --hover-y 1.2s cubic-bezier(0.4, 0.05, 0.3, 1),
    --hover-scale 1.2s cubic-bezier(0.4, 0.05, 0.3, 1),
    border-color 1.0s ease-out,
    box-shadow 1.1s cubic-bezier(0.4, 0.05, 0.3, 1);
}
.value-tile:hover::before {
  opacity: 1;
  transform: scaleY(1);
}
.value-num {
  font-size: var(--t-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
}
.value-name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
}
.value-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}
@media (max-width: 1100px) {
  .values-grid { grid-template-columns: 1fr 1fr; }
}
/* Mobile: keep 2×2 grid (don't collapse to 1-col) — Jens's request */

/* ---------- FAQ — ofte stillede spørgsmål ---------- */
.faq {
  position: relative;
  padding: var(--rhythm) var(--gutter) var(--s-9);
  background: transparent;
  overflow: hidden;
  scroll-margin-top: 80px;
}
.faq-header {
  max-width: var(--max);
  margin: 0 auto var(--s-8);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--s-7);
  align-items: end;
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--hairline);
}
.faq-title { /* uses .h2 */ }
.faq-sub {
  margin: 0;
  font-size: var(--t-lead);
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 60ch;
}
.faq-sub a {
  color: var(--clay);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.faq-sub a:hover { border-bottom-color: var(--clay); }

.faq-list {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
/* FAQ idle float — reuses the global @property --idle-y from services */
@keyframes faq-float {
  0%, 100% { --idle-y: 0px; }
  50%      { --idle-y: -4px; }
}

.faq-item {
  background: var(--paper-2);
  border-radius: 14px;
  border: 1px solid rgba(33, 26, 20, 0.06);
  /* Heavier resting shadow so they read as floating */
  box-shadow:
    0 6px 12px rgba(33, 26, 20, 0.05),
    0 22px 44px -14px rgba(33, 26, 20, 0.16);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  outline: none;
  --hover-y: 0px;
  --hover-scale: 1;
  transform: translateY(calc(var(--idle-y, 0px) + var(--hover-y))) scale(var(--hover-scale));
  animation: faq-float 6s ease-in-out infinite;
  /* Fast close transitions — gets used when hover ends */
  transition:
    --hover-y 0.4s cubic-bezier(0.4, 0, 0.6, 1),
    --hover-scale 0.4s cubic-bezier(0.4, 0, 0.6, 1),
    border-color 0.35s ease-out,
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.6, 1);
  will-change: transform, box-shadow;
}
/* Stagger the float so the items drift independently */
.faq-list .faq-item:nth-child(1) { animation-delay: 0s; }
.faq-list .faq-item:nth-child(2) { animation-delay: -1.0s; }
.faq-list .faq-item:nth-child(3) { animation-delay: -2.0s; }
.faq-list .faq-item:nth-child(4) { animation-delay: -3.0s; }
.faq-list .faq-item:nth-child(5) { animation-delay: -4.0s; }
.faq-list .faq-item:nth-child(6) { animation-delay: -5.0s; }

.faq-item:hover,
.faq-item:focus-within {
  --hover-y: -10px;
  --hover-scale: 1.008;
  border-color: rgba(196, 78, 44, 0.35);
  box-shadow:
    0 14px 22px rgba(33, 26, 20, 0.09),
    0 38px 72px -10px rgba(33, 26, 20, 0.26),
    0 60px 100px -28px rgba(33, 26, 20, 0.18);
  /* Slow gentle transitions while opening */
  transition:
    --hover-y 1.2s cubic-bezier(0.4, 0.05, 0.3, 1),
    --hover-scale 1.2s cubic-bezier(0.4, 0.05, 0.3, 1),
    border-color 1.0s ease-out,
    box-shadow 1.1s cubic-bezier(0.4, 0.05, 0.3, 1);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: clamp(20px, 2.4vw, 28px) clamp(22px, 2.6vw, 32px);
  cursor: pointer;
  list-style: none;
  user-select: none;
  position: relative;
}
.faq-q-text {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(17px, 1.4vw, 20px);
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.3;
  flex: 1;
}

.faq-a {
  /* Collapsed by default — quick close transitions live on the base rule */
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 clamp(22px, 2.6vw, 32px) 0;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 68ch;
  transition:
    max-height 0.4s cubic-bezier(0.4, 0, 0.6, 1),
    opacity 0.25s ease,
    padding 0.4s cubic-bezier(0.4, 0, 0.6, 1);
}
.faq-item:hover .faq-a,
.faq-item:focus-within .faq-a {
  max-height: 420px;
  opacity: 1;
  padding-bottom: clamp(22px, 2.6vw, 28px);
  /* Slow gentle open transitions — only apply when hover engages */
  transition:
    max-height 1.0s cubic-bezier(0.4, 0.05, 0.3, 1),
    opacity 0.7s ease 0.18s,
    padding 1.0s cubic-bezier(0.4, 0.05, 0.3, 1);
}
.faq-a p { margin: 0; }
.faq-a a {
  color: var(--clay);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.faq-a a:hover { border-bottom-color: var(--clay); }
.faq-a strong { color: var(--ink); font-weight: 600; }

@media (max-width: 1100px) {
  .faq-header { grid-template-columns: 1fr; align-items: start; gap: var(--s-3); }
}

/* ---------- footer socials ---------- */
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--paper);
  color: var(--ink-2);
  transition:
    background 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.footer-social-link:hover {
  background: var(--clay);
  border-color: var(--clay);
  color: var(--paper);
  transform: translateY(-2px);
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto;
  }
  .reveal { opacity: 1; transform: none; }
}
