/* Spanggaard Blik — Hybrid · Brand-grøn · Fuld cinematisk */

:root {
  --bg: oklch(0.23 0.05 152);
  --bg-deep: oklch(0.19 0.045 152);
  --surface: oklch(0.27 0.055 152);
  --ink: oklch(0.96 0.012 95);
  --ink-2: oklch(0.78 0.02 110);
  --ink-3: oklch(0.68 0.03 130);
  --accent: oklch(0.78 0.13 82);
  --accent-soft: oklch(0.78 0.13 82 / 0.14);
  --border: oklch(0.96 0.01 95 / 0.10);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --text-display: clamp(3.2rem, 10vw + 1rem, 11rem);
  --text-h2: clamp(1.9rem, 3.2vw + 0.6rem, 3.4rem);
  --text-body: clamp(1rem, 0.5vw + 0.78rem, 1.125rem);
  --text-label: clamp(0.6875rem, 0.3vw + 0.5rem, 0.8125rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.55;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.02; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }

/* film grain */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 99; background: var(--bg-deep); display: grid; place-items: center; }
.loader-num { font-family: var(--font-display); font-size: clamp(4rem, 12vw, 9rem); color: var(--accent); font-style: italic; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; gap: 2.5rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  transition: background 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.site-header.is-solid {
  background: oklch(0.21 0.048 152 / 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}
.brand { font-family: var(--font-display); font-size: 1.35rem; text-decoration: none; letter-spacing: 0.01em; }
.brand span { font-style: italic; color: var(--accent); }
.site-nav { display: flex; gap: 1.9rem; margin-left: auto; }
.site-nav a {
  position: relative; text-decoration: none; font-size: 0.92rem; color: var(--ink-2);
  transition: color 0.25s var(--ease-out); padding: 0.25rem 0;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.site-nav a:hover, .site-nav a.is-active { color: var(--ink); }
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }
.cta-pill {
  border: 1px solid var(--accent); color: var(--accent); text-decoration: none;
  font-size: 0.88rem; font-weight: 500; padding: 0.55rem 1.15rem; border-radius: 99px;
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out);
  white-space: nowrap;
}
.cta-pill:hover { background: var(--accent); color: var(--bg-deep); }
.nav-toggle { display: none; }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 85; background: var(--bg-deep);
  display: flex; flex-direction: column; justify-content: center; gap: 1.4rem;
  padding: 0 2rem; visibility: hidden; opacity: 0;
}
.mobile-menu a {
  font-family: var(--font-display); font-size: clamp(2rem, 8vw, 3rem);
  text-decoration: none; color: var(--ink); transform: translateY(30px); opacity: 0;
}
.mobile-menu .mobile-call { color: var(--accent); font-style: italic; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 40%; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(200deg, oklch(0.19 0.045 152 / 0.10) 0%, oklch(0.19 0.045 152 / 0.55) 62%, var(--bg) 100%);
}
.hero-text {
  position: absolute; left: clamp(1.25rem, 4vw, 3rem); right: clamp(1.25rem, 4vw, 3rem); bottom: 9vh;
}
.kicker { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.hero h1 { font-size: var(--text-display); line-height: 0.92; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-sub { margin-top: 1.4rem; max-width: 34ch; color: var(--ink-2); font-size: clamp(1rem, 1.1vw + 0.7rem, 1.3rem); }
.scroll-hint { position: absolute; right: clamp(1.25rem, 4vw, 3rem); bottom: 9vh; width: 1px; height: 64px; background: var(--border); overflow: hidden; }
.scroll-hint span { position: absolute; top: -40%; left: 0; width: 100%; height: 40%; background: var(--ink-2); animation: hint 2.2s var(--ease-in-out) infinite; }
@keyframes hint { 0% { top: -40%; } 60%, 100% { top: 110%; } }

/* ---------- manifest ---------- */
.manifest { position: relative; }
.manifest-stage { position: relative; height: 100vh; text-align: center; overflow: hidden; }
.manifest .word {
  position: absolute; inset: 0; margin: auto; width: max-content; height: max-content;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(3.5rem, 12vw, 12rem); opacity: 0; letter-spacing: -0.02em;
}
.manifest .creed {
  position: absolute; inset: 0; margin: auto; width: min(24ch, 88vw); height: max-content;
  font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2.4rem); color: var(--accent); opacity: 0;
}

/* ---------- marquee ---------- */
/* negativ top-margin trækker båndet op i manifest-scenens tomme bund efter pin-release */
.marquee { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 0.9rem 0; margin-top: -36vh; position: relative; }
.marquee-track { display: flex; white-space: nowrap; width: max-content; }
.marquee-track span { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); padding-right: 1ch; }

/* ---------- craft ---------- */
.craft { padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 4vw, 3rem); }
.section-head { max-width: 1200px; margin: 0 auto clamp(2.5rem, 5vw, 4.5rem); }
.label { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.9rem; }
.craft h2, .summer h2 { font-size: var(--text-h2); }
.craft-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); max-width: 1200px; margin: 0 auto; }
.craft-card { background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.card-media { overflow: hidden; aspect-ratio: 4 / 3.4; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.craft-card:hover .card-media img { transform: scale(1.05); }
.craft-card h3 { font-size: 1.35rem; padding: 1.3rem 1.4rem 0.4rem; }
.craft-card p { padding: 0 1.4rem 1.5rem; color: var(--ink-2); font-size: 0.95rem; }
.craft-card:nth-child(2) { margin-top: clamp(0px, 3vw, 42px); }

/* ---------- summer ---------- */
.summer { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(2rem, 4vw, 4rem); padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 4vw, 3rem); max-width: 1300px; margin: 0 auto; }
.summer-media { overflow: hidden; }
.summer-media img { width: 100%; aspect-ratio: 16/11; object-fit: cover; }
.summer-body p:not(.label) { color: var(--ink-2); margin: 1.3rem 0 2rem; max-width: 46ch; }
.btn-line { font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 0.35rem; transition: opacity 0.25s var(--ease-out); }
.btn-line:hover { opacity: 0.7; }

/* ---------- proof ---------- */
.proof { padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 4vw, 3rem); background: var(--bg-deep); }
.proof-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; max-width: 1100px; margin: 0 auto clamp(3rem, 6vw, 5rem); text-align: center; }
.stat-num { display: block; font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4.5rem); color: var(--ink); font-weight: 500; line-height: 1.1; }
.stat-word { font-size: clamp(1.9rem, 3.4vw, 3rem); letter-spacing: 0.04em; }
.stat-label { display: block; margin-top: 0.5rem; color: var(--ink-3); font-size: 0.9rem; max-width: 24ch; margin-inline: auto; }
.workshop { max-width: 1100px; margin: 0 auto; }
.workshop img { width: 100%; aspect-ratio: 21/9; object-fit: cover; }
.workshop figcaption { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); padding-top: 0.9rem; }

/* ---------- contact ---------- */
.contact { padding: clamp(6rem, 12vw, 10rem) clamp(1.25rem, 4vw, 3rem); text-align: center; }
.contact-title { font-size: clamp(2.6rem, 7vw, 6.5rem); margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.contact-actions { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.6rem; }
.btn-big {
  font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  text-decoration: none; padding: 1rem 2.4rem; border-radius: 99px;
  background: var(--accent); color: var(--bg-deep); display: inline-block;
  transition: background 0.25s var(--ease-out);
}
.btn-big:hover { background: color-mix(in oklch, var(--accent), white 12%); }
.btn-big.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-big.ghost:hover { background: var(--accent-soft); }
.contact-meta { display: flex; flex-direction: column; gap: 0.5rem; color: var(--ink-2); font-size: 0.95rem; }
.contact-meta a { text-decoration: none; border-bottom: 1px solid var(--border); width: max-content; margin-inline: auto; transition: border-color 0.25s var(--ease-out); }
.contact-meta a:hover { border-color: var(--accent); }

/* ---------- footer ---------- */
.site-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.4rem clamp(1.25rem, 4vw, 3rem); border-top: 1px solid var(--border); color: var(--ink-3); font-size: 0.8rem; flex-wrap: wrap; }

/* ---------- fokus ---------- */
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ---------- reveals (JS sætter slutværdier) ---------- */
[data-reveal] { opacity: 0; transform: translateY(40px); }
.reduced-motion [data-reveal], .no-js [data-reveal] { opacity: 1; transform: none; }
.reduced-motion .manifest .word, .reduced-motion .manifest .creed,
.no-js .manifest .word, .no-js .manifest .creed { position: static; opacity: 1; margin: 0; }
.reduced-motion .manifest-stage, .no-js .manifest-stage { height: auto; padding: 5rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; align-items: center; }
.reduced-motion .marquee, .no-js .marquee { margin-top: 0; }
.no-js .loader { display: none; }
.no-js .hero .reveal { opacity: 1; transform: none; }

/* ---------- mobil ---------- */
@media (max-width: 860px) {
  .site-nav, .cta-pill { display: none; }
  .nav-toggle {
    display: grid; gap: 6px; margin-left: auto; border: none; padding: 0.7rem 0.65rem; cursor: pointer; z-index: 86; position: relative;
    background: oklch(0.19 0.045 152 / 0.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 10px;
  }
  .nav-toggle span { width: 26px; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease-out), opacity 0.3s; }
  .nav-toggle.is-open span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav-toggle.is-open span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .craft-grid { grid-template-columns: 1fr; }
  .craft-card:nth-child(2) { margin-top: 0; }
  .summer { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .workshop img { aspect-ratio: 4/3; }
}
