:root {
  --bg: #0d0d0c;
  --bg-2: #161614;
  --fg: #f1eee8;
  --muted: #8f8b83;
  --line: #2a2926;
  --accent: #e8572a;
  --pad: clamp(16px, 4vw, 56px);
  --font: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- Topbar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--pad);
  transition: background .3s, backdrop-filter .3s;
}
.topbar.solid {
  background: rgba(13,13,12,.82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.mark { font-weight: 700; letter-spacing: .08em; }
.topbar nav { display: flex; gap: clamp(14px, 3vw, 32px); font-size: 15px; }
.topbar nav a { opacity: .85; }
.topbar nav a:hover { opacity: 1; }

/* ---------- Hero / kontaktark ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 520px;
  overflow: hidden; background: var(--bg);
  cursor: grab; user-select: none; -webkit-user-select: none;
  touch-action: pan-y;
}
.hero.dragging { cursor: grabbing; }
.sheet { position: absolute; inset: 0; }
.tile {
  position: absolute; top: 0; left: 0;
  border-radius: 3px; overflow: hidden;
  will-change: transform;
  display: flex; align-items: flex-end;
  padding: 10px 12px;
  font-size: 12px; letter-spacing: .02em; color: rgba(255,255,255,.75);
  transition: filter .3s;
}
.tile::after { /* filmkorn */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 3px 3px; pointer-events: none;
}
.tile b { font-weight: 600; color: #fff; margin-right: 6px; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(13,13,12,.85) 0%, rgba(13,13,12,.35) 45%, rgba(13,13,12,0) 70%),
    radial-gradient(ellipse at center, rgba(13,13,12,.25) 0%, rgba(13,13,12,.55) 100%);
}
.hero-text {
  position: absolute; left: var(--pad); bottom: clamp(80px, 14vh, 140px);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(44px, 9vw, 148px);
  line-height: .9; letter-spacing: -.035em; font-weight: 700;
}
.roles { margin-top: 18px; font-size: clamp(15px, 1.6vw, 20px); color: var(--fg); opacity: .85; }
.roles span { color: var(--accent); margin: 0 .35em; }
.hint {
  position: absolute; right: var(--pad); bottom: 28px;
  font-size: 13px; color: var(--muted); pointer-events: none;
  display: flex; align-items: center; gap: 8px;
}
.hint-icon { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.scroll-cue {
  position: absolute; left: var(--pad); bottom: 28px;
  font-size: 20px; color: var(--muted);
}

/* ---------- Sektioner ---------- */
main > section { padding: clamp(72px, 12vw, 160px) var(--pad); border-top: 1px solid var(--line); }
h2 { font-size: clamp(30px, 4.5vw, 64px); letter-spacing: -.03em; line-height: 1; font-weight: 700; }
h3 { font-size: 15px; font-weight: 600; letter-spacing: .02em; }

/* Showreel */
main > section.reel { padding-top: clamp(16px, 3vw, 40px); padding-bottom: clamp(16px, 3vw, 40px); border-top: 0; }
.reel-player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 3px; overflow: hidden; }
.reel-player video { width: 100%; height: 100%; display: block; object-fit: cover; }
.reel-play {
  position: absolute; inset: 0; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.15));
  transition: background .3s;
}
.reel-play:hover { background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,.05)); }
.reel-icon {
  width: clamp(64px, 8vw, 104px); aspect-ratio: 1; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.85); position: relative;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), background .3s;
}
.reel-icon::after { /* trekant */
  content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff;
}
.reel-play:hover .reel-icon { transform: scale(1.06); background: var(--accent); border-color: var(--accent); }
.reel-label { font-size: clamp(15px, 1.4vw, 18px); font-weight: 600; letter-spacing: .02em; }
.reel-label em { font-style: normal; color: rgba(255,255,255,.6); font-weight: 400; margin-left: 6px; }
.reel.playing .reel-play { display: none; }

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 56px);
}
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button {
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; color: var(--muted); transition: all .2s;
}
.filters button:hover { color: var(--fg); border-color: var(--muted); }
.filters button.active { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.grid {
  display: grid; gap: clamp(16px, 2vw, 28px);
  grid-template-columns: repeat(12, 1fr);
}
.card { grid-column: span 4; cursor: pointer; }
.card.wide { grid-column: span 8; }
.card.hidden { display: none; }
.card .ph { aspect-ratio: 16 / 10; }
.card.wide { display: flex; flex-direction: column; }
.card.wide .ph { aspect-ratio: auto; flex: 1 1 0; min-height: 0; }
.card-meta { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; font-size: 15px; }
.card-meta .t { font-weight: 600; }
.card-meta .s { color: var(--muted); white-space: nowrap; }

/* Pladsholder-flade (erstattes af billeder/video) */
.ph {
  position: relative; border-radius: 3px; overflow: hidden;
  background:
    linear-gradient(135deg, hsl(var(--h, 20) 28% 26%), hsl(calc(var(--h, 20) + 40) 22% 12%));
  display: flex; align-items: center; justify-content: center;
}
.ph > span {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.card .ph::before { /* afspil-ikon på video */
  content: none; position: absolute; width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5); opacity: 0; transition: opacity .25s, transform .25s;
  transform: scale(.9);
}
.card[data-type="film"] .ph::before,
.card[data-type="animation"] .ph::before { content: ""; }
.card:hover .ph::before { opacity: 1; transform: scale(1); }
.card .ph { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card:hover .ph { transform: scale(.985); }

/* Om */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.about-photo { aspect-ratio: 4 / 5; }
.about-text h2 { margin-bottom: 28px; }
.lead { font-size: clamp(20px, 2.2vw, 30px); line-height: 1.3; letter-spacing: -.01em; margin-bottom: 20px; }
.about-text p { color: #cfcac1; max-width: 60ch; }
.tools { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 40px; }
.tools li { font-size: 13px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.about-text h3 { margin-bottom: 8px; color: var(--muted); }
.clients { font-size: 15px; }

/* Kontakt */
.contact { text-align: left; }
.contact h2 { color: var(--muted); }
.mail {
  display: inline-block; margin: 16px 0 40px;
  font-size: clamp(28px, 6.5vw, 104px); font-weight: 700; letter-spacing: -.035em; line-height: 1;
  overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .4s, color .2s;
}
.mail:hover { color: var(--accent); background-size: 100% 3px; }
.links { list-style: none; display: flex; gap: 24px; margin-bottom: 64px; }
.links a { color: var(--muted); }
.links a:hover { color: var(--fg); }
.small { font-size: 13px; color: var(--muted); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 50; background: rgba(8,8,7,.94);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--pad); gap: 18px;
}
.lightbox[hidden] { display: none; }
.lb-media { width: min(1200px, 100%); aspect-ratio: 16 / 9; }
.lb-meta { width: min(1200px, 100%); display: flex; justify-content: space-between; gap: 16px; }
.lb-meta p { color: var(--muted); }
.lb-close { position: absolute; top: 14px; right: var(--pad); font-size: 34px; line-height: 1; color: var(--muted); }
.lb-close:hover { color: var(--fg); }

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  .card, .card.wide { grid-column: span 12; }
  .card.wide .ph { aspect-ratio: 16 / 10; flex: none; }
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .topbar nav { gap: 14px; font-size: 14px; }
  .hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hint-icon { animation: none; }
}
