/* =========================================================
   INNHOLD — designsystem
   Farger: petrol #32464F + krem #F8F3DD (fra logoen)
   Font:   Archivo. Overskrifter i smal, rett, tung variant
           (wdth 66) — beslektet med, men tydelig ulik den
           brede kursive ordlogoen.
   ========================================================= */

:root {
  /* Farger */
  --petrol: #32464F;
  --petrol-deep: #263740;
  --petrol-line: rgba(248, 243, 221, 0.16);
  --cream: #F8F3DD;
  --cream-muted: rgba(248, 243, 221, 0.74);
  --cream-line: rgba(50, 70, 79, 0.18);
  --petrol-muted: rgba(50, 70, 79, 0.78);

  /* Semantiske */
  --bg: var(--petrol);
  --fg: var(--cream);
  --fg-muted: var(--cream-muted);
  --line: var(--petrol-line);

  /* Typografi */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display-wdth: 66;

  /* Avstand (8pt) */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --section-y: clamp(5rem, 11vw, 10rem);

  /* Bevegelse */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 900ms;

  /* Lag */
  --z-header: 40;
  --z-menu: 50;

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

::selection { background: var(--cream); color: var(--petrol); }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 200;
  background: var(--cream); color: var(--petrol);
  padding: 0.75rem 1rem; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }

/* ---------- Typografi ---------- */
.hero-title, .contact-title, .section-title, .service-name, .service-group-title,
.pillars h3, .profile-meta h3, .profile-name, .profile-h2, .fact-value, .tv-name, .charity-amount, .member h3, .project-head h3, .mobile-menu a {
  font-weight: 800;
  font-variation-settings: "wdth" var(--display-wdth);
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.9;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
}

.section-head { margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-head .eyebrow { margin-bottom: var(--s-3); }
.section-title { font-size: clamp(2.75rem, 9vw, 8.5rem); text-wrap: balance; }
.section-lead {
  margin-top: var(--s-3);
  max-width: 34rem;
  color: var(--fg-muted);
  font-size: 1.125rem;
}

/* ---------- Knapper / lenker ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.btn:active { transform: scale(0.97); }
.btn-outline { border: 1px solid currentColor; background: transparent; }
.btn-outline:hover { background: var(--cream); color: var(--petrol); }
.btn-solid { background: var(--cream); color: var(--petrol); border: 1px solid var(--cream); }
.btn-solid:hover { background: transparent; color: var(--cream); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 calc(100% - 10px);
  background-repeat: no-repeat;
  transition: background-size var(--dur) var(--ease-out);
}
.text-link:hover { background-size: 100% 1px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  transition: background-color var(--dur) ease, border-color var(--dur) ease, transform var(--dur) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(38, 55, 64, 0.9);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  height: 4.5rem;
}
.brand { display: block; flex-shrink: 0; }
.brand img { width: clamp(7.5rem, 12vw, 9.5rem); height: auto; }

.main-nav { margin-left: auto; }
.main-nav ul, .mobile-menu ul { list-style: none; padding: 0; }
.main-nav ul { display: flex; gap: clamp(1rem, 2.4vw, 2.25rem); }
.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--fg-muted);
  transition: color var(--dur-fast) ease;
  position: relative;
}
.site-header:not(.is-scrolled) .main-nav a { color: var(--cream); }
.main-nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 10px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.main-nav a:hover, .main-nav a[aria-current="true"] { color: var(--fg); }
.main-nav a:hover::after, .main-nav a[aria-current="true"]::after { transform: scaleX(1); }

.header-cta { min-height: 40px; padding: 0.5rem 1.25rem; }

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 48px; height: 48px;
  background: none; border: 0; cursor: pointer;
  position: relative;
}
.menu-toggle-bar {
  position: absolute; left: 12px; right: 12px; height: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease-out);
}
.menu-toggle-bar:nth-of-type(2) { top: 19px; }
.menu-toggle-bar:nth-of-type(3) { top: 27px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-of-type(2) { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-of-type(3) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0;
  z-index: var(--z-menu);
  background: var(--petrol-deep);
  padding: 6.5rem var(--gutter) var(--s-4);
  display: flex; flex-direction: column; justify-content: space-between;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  display: block;
  padding-block: 0.3rem;
  font-size: clamp(2.5rem, 12vw, 4rem);
  line-height: 1;
  text-decoration: none;
}
.mobile-menu-foot { color: var(--fg-muted); font-size: 0.875rem; }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { z-index: calc(var(--z-menu) + 1); background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.menu-open .header-cta { visibility: hidden; }

/* ---------- Hero med showreel ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--petrol-deep);
  isolation: isolate;
}
.hero-media {
  position: absolute; inset: 0; z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.hero-poster {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 1.2s ease;
}
.hero-media.is-ready .hero-poster { opacity: 0; }
/* YouTube-iframe som dekker hele flaten (16:9), litt forstørret for å skjule kanter og tittel */
.hero-media iframe {
  position: absolute; top: 50%; left: 50%;
  width: max(100%, 177.78vh);
  width: max(100%, 177.78svh);
  height: max(100%, 56.25vw);
  border: 0;
  transform: translate(-50%, -50%) scale(1.2);
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(25, 37, 43, 0.5) 0%, rgba(25, 37, 43, 0) 22%),
    linear-gradient(0deg, rgba(25, 37, 43, 0.92) 0%, rgba(25, 37, 43, 0.55) 40%, rgba(25, 37, 43, 0.08) 72%);
}
.hero-content {
  padding-top: 7rem;
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}
.hero-eyebrow { margin-bottom: clamp(1rem, 2vw, 1.5rem); color: var(--cream); }
.hero-title {
  font-size: clamp(3.25rem, 12.5vw, 13.5rem);
  line-height: 0.86;
}
.hero-title .line, .contact-title .line { display: block; overflow: hidden; padding-bottom: 0.02em; }
.hero-title .line > span, .contact-title .line > span { display: inline-block; }
.hero-foot {
  margin-top: clamp(1.5rem, 4vw, 3rem);
  padding-top: var(--s-3);
  border-top: 1px solid rgba(248, 243, 221, 0.24);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
}
.hero-lead { max-width: 30rem; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--cream); }
.hero-controls { display: flex; gap: 0.5rem; flex-shrink: 0; }
.reel-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 48px; padding: 0 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 243, 221, 0.5);
  background: rgba(25, 37, 43, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.reel-btn:hover { background: var(--cream); color: var(--petrol); border-color: var(--cream); }
.reel-btn--icon { width: 48px; padding: 0; justify-content: center; }
.reel-btn .icon-play { display: none; }
.reel-btn[aria-pressed="true"] .icon-play { display: block; }
.reel-btn[aria-pressed="true"] .icon-pause { display: none; }
.hero:not(.has-reel) .hero-controls { display: none; }

/* Hero-intro (kun når JS er på) */
.js .hero-title .line > span { transform: translateY(105%); }
.js .hero-eyebrow, .js .hero-foot { opacity: 0; }
.is-loaded .hero-title .line > span { transform: none; transition: transform 1.1s var(--ease-out) 0.15s; }
.is-loaded .hero-title .line:nth-child(2) > span { transition-delay: 0.27s; }
.is-loaded .hero-eyebrow, .is-loaded .hero-foot { opacity: 1; transition: opacity 1s ease 0.6s; }

/* ---------- Om oss ---------- */
.about { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.statement {
  font-size: clamp(1.75rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  max-width: 24em;
  text-wrap: balance;
}
.statement em { font-style: normal; font-weight: 800; }
.about-grid {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4) clamp(2rem, 5vw, 5rem);
  max-width: 62rem;
  margin-left: auto;
  color: var(--fg-muted);
  font-size: 1.125rem;
}
.pillars {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.pillars li { padding: var(--s-4) var(--s-4) 0 0; }
.pillars li + li { padding-left: var(--s-4); border-left: 1px solid var(--line); }
.pillar-num { font-size: 0.8125rem; font-weight: 600; color: var(--fg-muted); letter-spacing: 0.1em; }
.pillars h3 { margin-top: var(--s-2); font-size: clamp(2.25rem, 4.5vw, 3.75rem); }
.pillars p { margin-top: var(--s-2); color: var(--fg-muted); max-width: 26rem; }

/* ---------- Merkevarer (logo-marquee) ---------- */
.clients {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  border-block: 1px solid var(--line);
  overflow: hidden;
}
.clients .eyebrow { margin-bottom: clamp(2rem, 4vw, 3rem); }
.marquee-viewport {
  position: relative;
  overflow: hidden;
}
/* Uttoning i kantene ligger på et skjermbredt lag – ikke på den lange stripen
   (mask-image på et svært bredt animert element får iOS Safari til å slutte å tegne deler av det) */
.marquee-viewport::before, .marquee-viewport::after {
  content: "";
  position: absolute; top: 0; bottom: 0; z-index: 1;
  width: 8%;
  pointer-events: none;
}
.marquee-viewport::before { left: 0; background: linear-gradient(90deg, var(--bg), rgba(50, 70, 79, 0)); }
.marquee-viewport::after { right: 0; background: linear-gradient(-90deg, var(--bg), rgba(50, 70, 79, 0)); }
.marquee {
  display: flex;
  width: max-content;
}
.marquee-track {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  animation: marquee 60s linear infinite;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li {
  display: flex; align-items: center; justify-content: center;
  height: 64px;
  padding-inline: clamp(1.75rem, 3.5vw, 3.25rem);
}
.marquee-track img {
  height: calc(var(--h, 36) * 1px);
  width: auto;
  max-width: none;
  opacity: 0.9;
}
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-100%, 0, 0); } }

/* ---------- Tjenester (krem) ---------- */
.services {
  --bg: var(--cream);
  --fg: var(--petrol);
  --fg-muted: var(--petrol-muted);
  --line: var(--cream-line);
  background: var(--bg);
  color: var(--fg);
}
.services ::selection { background: var(--petrol); color: var(--cream); }
.service-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: var(--s-4);
  border-top: 1px solid var(--petrol);
  padding-top: var(--s-3);
}
.service-group + .service-group { margin-top: clamp(3.5rem, 7vw, 6rem); }
.service-group-title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  position: sticky; top: 6rem; align-self: start;
}
.service-list { padding: 0; }
.service {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: baseline;
  gap: var(--s-4);
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--line);
}
.service:first-child { padding-top: 0; }
.service-num { font-size: 0.875rem; font-weight: 600; color: var(--fg-muted); letter-spacing: 0.1em; }
.service-name {
  font-size: clamp(2.25rem, 5.2vw, 4.75rem);
  transition: transform var(--dur) var(--ease-out);
}
.service-desc { color: var(--fg-muted); font-size: 1.0625rem; max-width: 30rem; }
@media (hover: hover) {
  .service:hover .service-name { transform: translateX(0.6rem); }
}

/* ---------- Profiler ---------- */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}
.profile-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 6px;
  background: var(--petrol-deep);
}
.profile-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.profile:hover .profile-media img { transform: scale(1.035); }
.profile-media.is-fallback img { display: none; }
.profile-media.is-fallback::before {
  content: attr(data-initials);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  font-variation-settings: "wdth" var(--display-wdth);
}
.profile-meta { padding-top: var(--s-2); }
.profile-meta h3, .profile-name { font-size: clamp(1.625rem, 2.4vw, 2.125rem); }
/* Klikkbart profilkort (profiler med egen side) */
.profile-link { display: block; text-decoration: none; }
.profile-link .profile-name { padding-top: var(--s-2); transition: opacity var(--dur-fast) ease; }
.profile-link + .profile-meta { padding-top: 0; }
.profile-more {
  position: absolute; left: 0.75rem; bottom: 0.75rem; z-index: 1;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--cream); color: var(--petrol);
  font-size: 0.8125rem; font-weight: 700;
  opacity: 0; transform: translateY(6px);
  transition: opacity var(--dur) ease, transform var(--dur) var(--ease-out);
}
.profile-link:hover .profile-more, .profile-link:focus-visible .profile-more { opacity: 1; transform: none; }
@media (hover: none) { .profile-more { opacity: 1; transform: none; } }
.profile-link:hover .profile-name { opacity: 0.8; }
.profile-meta p { margin-top: 0.375rem; color: var(--fg-muted); font-size: 0.9375rem; }
.profile-social {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: var(--s-2);
}
.profile-social a {
  display: inline-flex; align-items: center; gap: 0.3rem;
  min-height: 36px; padding: 0 0.875rem;
  border: 1px solid rgba(248, 243, 221, 0.3);
  border-radius: 999px;
  font-size: 0.8125rem; font-weight: 600;
  text-decoration: none;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.profile-social a:hover { background: var(--cream); color: var(--petrol); border-color: var(--cream); }

/* ---------- Produksjoner ---------- */
.productions { background: var(--petrol-deep); }
.project + .project { margin-top: clamp(4rem, 8vw, 7rem); }
.project-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--s-2) var(--s-4);
  padding-bottom: var(--s-3);
  margin-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
}
.project-client { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); }
.project-head h3 { margin-top: 0.5rem; font-size: clamp(2.25rem, 5vw, 4.25rem); }
.project-desc { color: var(--fg-muted); font-size: 1.0625rem; max-width: 30rem; }
.project-head .text-link { justify-self: end; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.video-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.video-grid--feature { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.video-grid--single { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }

.video-card {
  display: block; width: 100%;
  padding: 0; background: none; border: 0;
  text-align: left; text-decoration: none; cursor: pointer;
}
.video-thumb {
  position: relative; display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: var(--petrol);
}
.video-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.video-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(38, 55, 64, 0.18);
  transition: background-color var(--dur) ease;
}
.video-card:hover .video-thumb img { transform: scale(1.045); }
.video-card:hover .video-thumb::after { background: rgba(38, 55, 64, 0); }
.video-play {
  position: absolute; z-index: 1;
  left: 50%; top: 50%;
  width: 3.5rem; height: 3.5rem;
  margin: -1.75rem 0 0 -1.75rem;
  border-radius: 50%;
  background: var(--cream);
  opacity: 0; transform: scale(0.85);
  transition: opacity var(--dur) ease, transform var(--dur) var(--ease-out);
}
.video-play::before {
  content: ""; position: absolute; left: 54%; top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid; border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent var(--petrol);
}
.video-card:hover .video-play, .video-card:focus-visible .video-play { opacity: 1; transform: scale(1); }
@media (hover: none) { .video-play { opacity: 0.92; transform: scale(0.8); } }
.video-badge {
  position: absolute; z-index: 1; left: 0.75rem; bottom: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--cream); color: var(--petrol);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.video-meta {
  display: block;
  padding-top: 0.875rem;
  font-size: 1rem; font-weight: 500; line-height: 1.4;
}
.video-grid--feature .video-meta { font-size: 1.125rem; }
.video-ep {
  display: inline-block; margin-right: 0.5rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--fg-muted);
}

/* ---------- Produksjoner: recap på forsiden ---------- */
.recap {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  text-decoration: none;
  isolation: isolate;
}
.recap-mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
  aspect-ratio: 21 / 10;
  background: var(--petrol-deep);
}
.recap-tile { position: relative; overflow: hidden; display: block; }
.recap-tile:first-child { grid-row: 1 / -1; }
.recap-tile:nth-child(n+8) { display: none; }
.recap-tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.recap:hover .recap-tile img { transform: scale(1.05); }
.recap-image { width: 100%; aspect-ratio: 21 / 10; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.recap:hover .recap-image { transform: scale(1.03); }
.recap-overlay {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: linear-gradient(0deg, rgba(25, 37, 43, 0.9) 0%, rgba(25, 37, 43, 0.35) 45%, rgba(25, 37, 43, 0.05) 75%);
  transition: background-color var(--dur) ease;
}
.recap-meta {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cream);
}
.recap-cta {
  display: inline-flex; align-items: center; gap: 0.75rem;
  min-height: 52px; padding: 0 1.5rem;
  border-radius: 999px;
  background: var(--cream); color: var(--petrol);
  font-weight: 700; font-size: 1rem;
  transition: transform var(--dur-fast) ease;
}
.recap-arrow { display: inline-block; transition: transform var(--dur) var(--ease-out); }
.recap:hover .recap-arrow, .recap:focus-visible .recap-arrow { transform: translateX(6px); }
.recap:active .recap-cta { transform: scale(0.97); }
.recap:focus-visible { outline-offset: 6px; }

/* ---------- Produksjoner: egen side ---------- */
.page-hero {
  padding-top: clamp(7rem, 12vw, 10rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.page-hero .eyebrow { margin-bottom: var(--s-3); }
.back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px; margin-bottom: clamp(1.5rem, 4vw, 3rem);
  font-weight: 600; font-size: 0.9375rem;
  color: var(--fg-muted); text-decoration: none;
  transition: color var(--dur-fast) ease;
}
.back-link:hover { color: var(--fg); }
.productions-page { padding-top: clamp(3rem, 6vw, 5rem); }

/* ---------- Profilside ---------- */
.profile-hero { padding-top: clamp(6.5rem, 11vw, 9rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.profile-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.profile-hero-media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 8px; background: var(--petrol-deep); }
.profile-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.profile-hero-text .eyebrow { margin-bottom: var(--s-3); }
.profile-lead { margin-top: var(--s-4); max-width: 34rem; font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.5; }
.profile-social--lg { margin-top: var(--s-4); }
.profile-social--lg a { min-height: 44px; padding: 0 1.125rem; font-size: 0.9375rem; }

.profile-facts { border-block: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts-grid li { padding: clamp(1.75rem, 3vw, 2.5rem) var(--s-4) clamp(1.75rem, 3vw, 2.5rem) 0; }
.facts-grid li + li { padding-left: var(--s-4); border-left: 1px solid var(--line); }
.fact-value { display: block; font-size: clamp(2rem, 3.6vw, 3.25rem); }
.fact-label { display: block; margin-top: 0.5rem; color: var(--fg-muted); font-size: 0.9375rem; }

.profile-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: var(--s-4) clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.profile-h2 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); }
.profile-body { display: grid; gap: var(--s-3); font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.65; max-width: 44rem; }
.profile-body strong { font-weight: 700; }
.profile-body a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.profile-body a:hover { text-decoration-thickness: 2px; }
.profile-about { padding-bottom: 0; }

.tv-list { border-top: 1px solid var(--line); }
.tv-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3);
  padding-block: clamp(1.1rem, 2vw, 1.5rem);
  border-bottom: 1px solid var(--line);
}
.tv-name { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.tv-role { color: var(--fg-muted); font-size: 0.9375rem; text-align: right; }

.profile-charity {
  --bg: var(--cream);
  --fg: var(--petrol);
  --fg-muted: var(--petrol-muted);
  --line: var(--cream-line);
  background: var(--bg); color: var(--fg);
}
.profile-charity ::selection { background: var(--petrol); color: var(--cream); }
.charity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.charity-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.charity-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--petrol);
  border-radius: 8px;
}
.charity-amount { display: block; font-size: clamp(2.5rem, 4.5vw, 4rem); }
.charity-card h3:first-child { margin-top: 0; }
.charity-card h3 { margin-top: var(--s-2); font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.charity-card p { margin-top: 0.5rem; color: var(--fg-muted); }

/* Bildepar på profilsiden */
.photo-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.photo { margin: 0; }
.photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  background: var(--petrol-deep);
}
.photo figcaption {
  margin-top: 0.75rem;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-muted);
}
.photo-pair--charity { margin-top: 0; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.profile-aside .photo { margin-top: var(--s-4); max-width: 22rem; }
.profile-stunt .stunt-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.stunt-media { margin: 0; justify-self: center; width: 100%; max-width: 22rem; }
.stunt-media img { width: 100%; border-radius: 18px; box-shadow: 0 24px 60px rgba(25, 37, 43, 0.25); }
.stunt-text .eyebrow { margin-bottom: var(--s-3); }
.stunt-text .section-lead + .section-lead { margin-top: var(--s-2); }

.profile-work { background: var(--petrol-deep); }
.profile-work .project-head h2 { margin-top: 0.5rem; }

/* ---------- Teamet (krem) ---------- */
.team {
  --bg: var(--cream);
  --fg: var(--petrol);
  --fg-muted: var(--petrol-muted);
  --line: var(--cream-line);
  background: var(--bg);
  color: var(--fg);
}
.team ::selection { background: var(--petrol); color: var(--cream); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.member-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 6px;
  background: var(--cream-line);
}
.member-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  transition: transform 0.9s var(--ease-out);
}
.member:hover .member-media img { transform: scale(1.03); }
.member h3 { margin-top: var(--s-3); font-size: clamp(1.75rem, 2.8vw, 2.5rem); }
.member-role { margin-top: 0.375rem; color: var(--fg-muted); }
.member-contact { margin-top: var(--s-2); padding-top: var(--s-2); border-top: 1px solid var(--line); }
.member-contact a {
  display: inline-flex; align-items: center; min-height: 32px;
  font-weight: 500; text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-position: 0 85%; background-repeat: no-repeat;
  transition: background-size var(--dur) var(--ease-out);
}
.member-contact a:hover { background-size: 100% 1px; }

/* ---------- Kontakt ---------- */
.contact { padding-block: var(--section-y); }
.contact .eyebrow { margin-bottom: var(--s-4); }
.contact-title { font-size: clamp(3rem, 11.5vw, 12.5rem); line-height: 0.86; }
.contact-row {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
}
.contact-row p { max-width: 34rem; color: var(--fg-muted); font-size: 1.125rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--petrol-deep);
  padding-top: clamp(3.5rem, 6vw, 5rem);
  font-size: 0.9375rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.footer-mark { width: 4.5rem; height: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.25rem clamp(1.25rem, 2.5vw, 2.25rem); }
.footer-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 500; text-decoration: none;
  color: var(--fg-muted);
  transition: color var(--dur-fast) ease;
}
.footer-nav a:hover { color: var(--fg); }
.footer-base {
  display: flex; justify-content: space-between; align-items: center;
  padding-block: var(--s-3);
  border-top: 1px solid var(--line);
  color: var(--fg-muted); font-size: 0.875rem;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.footer-base a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.footer-base a:hover { color: var(--fg); }

/* ---------- Video-modal ---------- */
.video-modal {
  width: min(92vw, 1280px);
  max-width: none;
  padding: 0; border: 0;
  background: transparent; color: var(--cream);
  overflow: visible;
}
.video-modal::backdrop {
  background: rgba(20, 30, 35, 0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.video-modal[open] { animation: modal-in var(--dur) var(--ease-out); }
@keyframes modal-in { from { opacity: 0; transform: scale(0.97); } }
.modal-frame {
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
}
.modal-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal-close {
  position: absolute; right: 0; top: -3.5rem;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--cream); color: var(--petrol);
  border: 0; cursor: pointer;
  transition: transform var(--dur-fast) ease;
}
.modal-close:hover { transform: rotate(90deg); }

/* ---------- Scroll-avsløring ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsivt ---------- */
@media (max-width: 1100px) {
  .charity-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-nav { display: none; }
  .menu-toggle { display: block; margin-left: 0; }
  .header-cta { margin-left: auto; }
  .profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .project-head { grid-template-columns: minmax(0, 1fr) auto; }
  .project-desc { grid-column: 1 / -1; grid-row: 2; }
  .service-group { grid-template-columns: 1fr; }
  .service-group-title { position: static; }
}

@media (max-width: 860px) {
  .profile-stunt .stunt-grid { grid-template-columns: 1fr; }
  .stunt-media { max-width: 18rem; }
  .profile-hero-grid, .profile-columns { grid-template-columns: 1fr; }
  .profile-hero-media { max-width: 26rem; }
  .facts-grid, .charity-grid { grid-template-columns: 1fr; }
  .facts-grid li, .facts-grid li + li { padding: 1.5rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .facts-grid li:last-child { border-bottom: 0; }
  .tv-list li { flex-direction: column; gap: 0.25rem; }
  .tv-role { text-align: left; }
  .recap-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr 1fr; aspect-ratio: 4 / 5; }
  .recap-tile:first-child { grid-row: auto; grid-column: 1 / -1; }
  .recap-tile:nth-child(n+6) { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillars li, .pillars li + li { padding: var(--s-3) 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .service { grid-template-columns: minmax(0, 1fr); gap: var(--s-1); }
  .service-name { font-size: clamp(2.25rem, 11vw, 3.5rem); }
  .video-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-grid--single { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; max-width: 28rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-base { align-items: flex-start; }
  .footer-legal { flex-direction: column; }
  .contact-row { flex-direction: column; align-items: flex-start; }
  .marquee-track li { height: 52px; }
  .marquee-track img { height: calc(var(--h, 36) * 0.78px); }
}

@media (max-width: 600px) {
  .hero-foot { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .header-cta { display: none; }
  .menu-toggle { margin-left: auto; }
  .video-grid, .video-grid--3, .video-grid--feature { grid-template-columns: 1fr; }
  .project-head { grid-template-columns: 1fr; }
  .project-head .text-link { justify-self: start; }
  .profile-grid { gap: 1.5rem 0.75rem; }
  .profile-social a { padding: 0 0.7rem; }
  .modal-close { top: -3.75rem; }
}

/* ---------- Redusert bevegelse ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .hero-title .line > span { transform: none; }
  .js .hero-eyebrow, .js .hero-foot { opacity: 1; }
  .marquee { width: auto; }
  .marquee-viewport::before, .marquee-viewport::after { display: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; row-gap: 1.5rem; padding-inline: var(--gutter); }
  .marquee-track[aria-hidden="true"] { display: none; }
}
.footer-address { font-style: normal; }
