:root {
  --crimson: #d82a5f;
  --crimson-deep: #b8204f;
  --rosa: #f6cad7;
  --ink: #0b0708;
  --ink-2: #17100f;
  --paper: #f4eef0;
  --muted: rgba(244, 238, 240, .55);
  --line: rgba(244, 238, 240, .14);
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 2.4vw, 36px);
  --ease: cubic-bezier(.65, 0, .35, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--crimson); color: #fff; }

.label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}
.dim { color: var(--muted); }
.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; }
.link-arrow { transition: color .25s; }
.link-arrow:hover { color: var(--crimson); }

/* ================= INTRO ================= */
.intro { position: fixed; inset: 0; z-index: 100; }
.intro__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.room path, .room rect, .room circle, .room ellipse { stroke-dasharray: 1; stroke-dashoffset: 1; }
.intro__logo {
  position: absolute; left: 50%; top: 50%;
  width: min(64vw, 820px);
  aspect-ratio: 1073 / 265;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.intro__logo svg { display: block; width: 100%; height: 100%; overflow: visible; }
.intro__logo svg path {
  fill: var(--rosa); fill-opacity: 0;
  stroke: var(--rosa); stroke-width: 2;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transform-box: fill-box; transform-origin: 50% 100%;
}
.intro__skip {
  position: absolute; right: var(--gutter); bottom: var(--gutter);
  font-size: 14px; font-weight: 600;
  color: #1a070d; padding: 10px 16px; border: 1.5px solid currentColor; border-radius: 99px;
  transition: background .2s, color .2s;
}
.intro__skip:hover { background: #1a070d; color: var(--crimson); }

/* ================= HEADER ================= */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--gutter);
  pointer-events: none;
}
.header > * { pointer-events: auto; }
.header__logo { width: clamp(84px, 7.5vw, 116px); display: block; }
#headerLogo { display: block; }
#headerLogo svg { display: block; width: 100%; height: auto; }
#headerLogo path { fill: var(--crimson); transition: fill .3s; }
.header__logo:hover #headerLogo path { fill: var(--rosa); }
body[data-page="home"] #headerLogo { opacity: 0; }
body[data-page="home"].is-ready #headerLogo { opacity: 1; }
.theme-crimson #headerLogo path { fill: #fff; }
.header__right { display: flex; align-items: center; gap: 10px; }
/* Klokka i Oslo */
.header__clock { margin-right: 6px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--paper); text-shadow: 0 0 12px rgba(0, 0, 0, .5); }
/* Knappene oppe til høyre ligger på en mørk, uskarp flate, så de alltid synes – også over 3D-rommet */
.header__nav, .header__view, .header__menu {
  background: rgba(11, 7, 8, .72);
  border-radius: 99px;
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
}
.header__nav { display: flex; gap: 2px; padding: 5px; font-size: 15px; font-weight: 600; line-height: 1; }
.header__nav a { padding: 11px 18px; border-radius: 99px; color: var(--paper); transition: background .25s, color .25s; }
.header__nav a:hover, .header__nav a:focus-visible { background: rgba(244, 238, 240, .16); outline: none; }
.header__nav a[aria-current="page"] { background: var(--crimson); color: #fff; }
.header__view, .header__menu { padding: 16px 20px; font-size: 15px; font-weight: 600; line-height: 1; color: var(--paper); transition: background .25s; }
.header__view:hover, .header__menu:hover, .header__view:focus-visible, .header__menu:focus-visible { background: var(--crimson); outline: none; }
.header__view[hidden] { display: none; }
/* «3D-stua» skal synes godt når man er på den vanlige siden */
.header__view.is-3d { background: var(--crimson); color: #fff; }
.header__view.is-3d:hover, .header__view.is-3d:focus-visible { background: #fff; color: var(--ink); }
.theme-crimson .header__view.is-3d { background: #1a070d; }
.header__menu { display: none; }

.mobile-nav {
  position: fixed; inset: 0; z-index: 45;
  background: var(--crimson);
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: var(--gutter);
  display: none;
}
.mobile-nav.is-open { display: flex; animation: navIn .7s var(--ease); }
@keyframes navIn { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.mobile-nav a { font-size: clamp(44px, 13vw, 88px); font-weight: 700; letter-spacing: -.04em; line-height: 1; color: #fff; }

/* ================= SIDEOPPSETT ================= */
.page { padding: clamp(120px, 16vh, 180px) var(--gutter) clamp(80px, 10vw, 140px); min-height: 80vh; }
.page__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 20px var(--gutter);
  margin-bottom: clamp(36px, 5vw, 72px);
}
.page__lede { margin-top: clamp(14px, 1.6vw, 22px); font-size: clamp(18px, 1.5vw, 22px); font-weight: 500; max-width: 44ch; }
.page__title {
  font-size: clamp(44px, 6.5vw, 100px);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.055em;
  margin-left: -.04em;
  width: 100%;
}
.page__title sup { font-size: .22em; letter-spacing: 0; font-weight: 500; vertical-align: top; color: var(--muted); margin-left: .2em; }
.back { display: inline-block; margin-bottom: 18px; }

.section { padding: clamp(80px, 10vw, 140px) var(--gutter) 0; }
.section__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--gutter);
  margin-bottom: clamp(16px, 2vw, 28px);
}
.section__title { font-size: clamp(28px, 3vw, 44px); font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.section__more { font-size: 15px; font-weight: 500; }

/* ================= HERO ================= */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #000; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  position: absolute; inset: 0;
  /* nøytral skygge over filmen så teksten kan leses */ /* taste-skill-ignore */
  background:
    linear-gradient(180deg, rgba(11,7,8,.5) 0%, rgba(11,7,8,0) 20%),
    linear-gradient(0deg, rgba(11,7,8,.8) 0%, rgba(11,7,8,0) 45%), /* taste-skill-ignore */
    linear-gradient(90deg, rgba(11,7,8,.55) 0%, rgba(11,7,8,0) 55%); /* lista kan leses over lyse filmer, taste-skill-ignore */
}
/* Forhåndsvisningene som tar over bildet når man peker på en tittel i lista */
.hero__swap { position: absolute; inset: 0; pointer-events: none; }
.hero__swap video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease-out); }
.hero__swap video.is-on { opacity: 1; }
.hero__works { position: absolute; z-index: 2; left: var(--gutter); top: 50%; transform: translateY(-50%); width: min(440px, 60vw); }
.hero__works ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hero__works button { display: grid; gap: 1px; padding: 5px 0; text-align: left; color: rgba(244, 238, 240, .55); transition: color .3s, transform .5s var(--ease-out); }
.hero__works button span { font-size: 19px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.hero__works button small { font-size: 13px; font-weight: 500; }
.hero__works button:hover, .hero__works button:focus-visible, .hero__works button.is-on { color: #fff; transform: translateX(6px); outline: none; }
.hero__all { display: inline-block; margin-top: 18px; font-size: 14px; font-weight: 600; }
.hero__ui { position: absolute; inset: auto 0 0 0; padding: var(--gutter); display: grid; gap: clamp(18px, 2.5vw, 32px); }
.hero__title {
  font-size: clamp(52px, 10.5vw, 196px);
  font-weight: 700;
  line-height: .86;
  letter-spacing: -.055em;
  margin-left: -.04em;
}
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: inline-block; transform: translateY(110%); }
.hero__name { font-size: clamp(34px, 4.4vw, 72px); font-weight: 700; letter-spacing: -.045em; line-height: .95; }
.hero__sub { margin-top: 14px; font-size: clamp(18px, 1.4vw, 21px); font-weight: 500; max-width: 40ch; }
/* Kontaktlinja nederst i første skjermbilde */
.hero__foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px;
  font-size: 14px; font-weight: 500; color: rgba(244, 238, 240, .75); opacity: 0;
}
.hero__foot a { transition: color .25s; }
.hero__foot a:hover { color: var(--crimson); }
.rec { display: inline-flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--crimson); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ================= INDEKSLISTE (forside) ================= */
.index-list { list-style: none; margin: 0; padding: 0; }
.index-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: baseline;
  gap: var(--gutter);
  padding: clamp(14px, 1.6vw, 22px) 0;
  cursor: pointer;
  transition: color .3s;
}
.index-row__title { font-size: clamp(20px, 2vw, 30px); font-weight: 700; letter-spacing: -.04em; line-height: 1; transition: transform .6s var(--ease-out); }
.index-row__meta { color: var(--muted); font-size: 15px; }
.index-row:hover, .index-row:focus-visible { color: var(--crimson); outline: none; }
.index-row:hover .index-row__title { transform: translateX(14px); }

.peek {
  position: fixed; top: 0; left: 0; z-index: 30;
  width: clamp(240px, 24vw, 400px); aspect-ratio: 16 / 10;
  pointer-events: none; overflow: hidden; background: var(--ink-2);
  opacity: 0; transform: translate(-50%, -50%) scale(.7);
  transition: opacity .3s, transform .5s var(--ease-out);
}
.peek.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.peek img, .peek video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ================= CTA ================= */
.cta {
  padding: clamp(60px, 8vw, 120px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: var(--gutter);
}
.cta__link { display: grid; gap: 18px; }
.cta__3d { aspect-ratio: 1; max-height: 40vh; max-width: 380px; width: 100%; justify-self: center; }

/* ================= 3D-STUA (forsiden) ================= */
.room3d, .room__canvas { display: none; }
.room-on .room3d { display: block; position: relative; }
.room-on .classic { display: none; }
.room__canvas { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; }
.room-on .room__canvas { display: block; }
.room-hover { cursor: pointer; }
.room__fx { display: none; position: fixed; inset: 0; z-index: -1; pointer-events: none; /* vignett over 3D-rommet, taste-skill-ignore */ background: radial-gradient(ellipse 75% 70% at 50% 45%, transparent 45%, rgba(8, 4, 5, .68) 100%); }
.room-on .room__fx { display: block; }

.chapter {
  min-height: 135vh;
  display: flex; align-items: center;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.chapter:first-of-type { min-height: 100vh; min-height: 100svh; }
.chapter--right { justify-content: flex-end; padding-right: calc(var(--gutter) + 120px); }
.chapter--bottom { align-items: flex-end; padding-bottom: clamp(32px, 8vh, 80px); }
.chapter__panel {
  pointer-events: auto;
  width: clamp(300px, 32vw, 440px);
  padding: clamp(20px, 2.2vw, 30px);
  background: rgba(11, 7, 8, .58);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease-out), transform .9s var(--ease-out);
}
.chapter--bottom .chapter__panel { width: min(560px, 100%); position: sticky; bottom: clamp(32px, 8vh, 80px); }
.chapter.is-active .chapter__panel { opacity: 1; transform: none; }
/* Start: kinoformat. Ytre lag glir inn etter introen, indre lag følger scrollen (--open 0–1, settes i main.js) */
.chapter--start { min-height: 100vh; min-height: 100svh; }
.scope { position: fixed; inset: 0; z-index: 35; pointer-events: none; --open: 0; }
.scope.is-open { visibility: hidden; }
.scope__in { position: absolute; left: 0; right: 0; transition: transform 1.4s var(--ease-out); }
.scope__in--top { top: 0; }
.scope__in--bot { bottom: 0; }
body.is-loading .scope__in--top { transform: translateY(-100%); }
body.is-loading .scope__in--bot { transform: translateY(100%); }
.scope__bar { background: #000; color: #fff; pointer-events: auto; will-change: transform; }
.scope__bar--top { height: clamp(72px, 10vh, 104px); transform: translateY(calc(var(--open) * -100%)); }
.scope__bar--bot {
  min-height: clamp(150px, 22vh, 230px);
  padding: clamp(22px, 3vh, 36px) var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 18px 40px;
  transform: translateY(calc(var(--open) * 100%));
}
.scope__title { font-size: clamp(64px, 9vw, 150px); font-weight: 700; letter-spacing: -.055em; line-height: .9; }
.scope__title span { color: var(--crimson); }
.scope__s { position: relative; flex: none; width: clamp(120px, 20vh, 210px); aspect-ratio: 1; margin: -12px 0; cursor: grab; }
.scope__s canvas { width: 100%; height: 100%; display: block; }
.scope__side { display: grid; justify-items: end; gap: 16px; text-align: right; }
.scope__sub { font-size: clamp(17px, 1.4vw, 21px); font-weight: 500; color: rgba(255, 255, 255, .8); }
.scope__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 26px; }
.scope__alt { font-size: 15px; font-weight: 600; color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; transition: color .2s; }
.scope__alt:hover { color: var(--crimson); }
.scope .btn--light { background: #fff; color: var(--ink); padding: 15px 24px; font-size: 16px; }
.scope .btn--light:hover { background: var(--crimson); color: #fff; }
body.is-loading .scope__s, body.is-loading .scope__side { opacity: 0; transform: translateY(16px); }
.scope__s, .scope__side { transition: opacity 1s var(--ease-out) .6s, transform 1s var(--ease-out) .6s; }
.scope__side { transition-delay: .8s; }
.btn__arrow { display: inline-block; animation: hint 2.4s var(--ease) infinite; }
.chapter--walk { min-height: 170vh; align-items: flex-end; padding-bottom: clamp(32px, 8vh, 80px); }
.chapter__slug { position: sticky; bottom: clamp(32px, 8vh, 80px); font-size: 15px; color: var(--paper); opacity: 0; transition: opacity .8s var(--ease-out); }
.chapter--walk.is-active .chapter__slug { opacity: 1; }
.chapter__title { font-size: clamp(40px, 5vw, 76px); font-weight: 700; letter-spacing: -.05em; line-height: .95; margin: 14px 0 22px; }
.chapter__lead { display: block; font-size: clamp(36px, 4.6vw, 68px); font-weight: 700; letter-spacing: -.05em; line-height: .95; margin-top: 12px; }
.chapter__sub { margin-top: 16px; font-size: 18px; font-weight: 500; line-height: 1.35; }
.chapter__h { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.chapter__rec { margin: 0 0 22px; font-size: 15px; font-weight: 500; }
.chapter__hint { margin-top: 22px; font-size: 15px; color: var(--muted); animation: hint 2.4s var(--ease) infinite; }
.chapter__alt { display: inline-block; margin-top: 12px; font-size: 15px; font-weight: 500; color: var(--paper); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; transition: color .2s; }
.chapter__alt:hover { color: var(--crimson); }
@keyframes hint { 50% { transform: translateY(5px); opacity: .6; } }
.chapter__contact { margin-top: 18px; font-size: 15px; color: var(--muted); }
.chapter__contact a:hover { color: var(--crimson); }
.chapter__list { list-style: none; margin: 10px 0 0; padding: 0; }
.chapter__list button, .chapter__list a {
  width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 8px 0; text-align: left; font-size: 18px; font-weight: 700; letter-spacing: -.02em;
  transition: color .25s, padding .4s var(--ease-out);
}
/* Kunden står lite og grått til høyre for tittelen, på én linje */
.chapter__list small { flex: none; font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--muted); white-space: nowrap; }
.chapter__list button:hover, .chapter__list a:hover, .chapter__list button:focus-visible, .chapter__list a:focus-visible { color: var(--crimson); padding-left: 8px; outline: none; }
.chapter__more { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 500; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 99px;
  background: var(--paper); color: var(--ink);
  font-size: 15px; font-weight: 700;
  transition: background .25s, color .25s, transform .3s var(--ease-out);
}
.btn:hover { background: var(--crimson); color: #fff; transform: translateY(-2px); }

.room-nav {
  position: fixed; right: var(--gutter); top: 50%; z-index: 40;
  transform: translateY(-50%);
  display: grid; gap: 14px;
}
.room-nav a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; font-size: 14px; font-weight: 500; color: var(--muted); }
.room-nav a::after { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; transition: background .3s, transform .3s; }
.room-nav a span { opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s; }
.room-nav a:hover span, .room-nav a[aria-current] span { opacity: 1; transform: none; }
.room-nav a[aria-current] { color: var(--paper); }
.room-nav a[aria-current]::after { background: var(--crimson); border-color: var(--crimson); transform: scale(1.25); }
body.is-loading .room-nav { opacity: 0; }

/* ================= WebGL-lag ================= */
.gl-layer { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.gl-on .hero { background: transparent; }
.gl-on .card__media.gl-ready { background: transparent; overflow: visible; }
.gl-ready > img, .gl-ready > video { opacity: 0 !important; }

/* ================= 3D ================= */
[data-3d] { position: relative; }
[data-3d] canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; touch-action: pan-y; }
[data-3d="s"] canvas { cursor: grab; }
[data-3d="s"] canvas:active { cursor: grabbing; }
[data-3d] > [data-logo] { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .6s; }
[data-3d] > [data-logo] svg { width: 70%; height: auto; }
[data-3d].is-3d > [data-logo] { opacity: 0; pointer-events: none; }
.cta__3d path { fill: var(--crimson); }
.cta__link .label { color: var(--muted); }
.cta__title { font-size: clamp(36px, 4.6vw, 76px); font-weight: 700; letter-spacing: -.055em; line-height: .9; transition: color .3s; }
.cta__link:hover .cta__title { color: var(--crimson); }

/* ================= FILTER ================= */
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button {
  padding: 9px 15px; font-size: 15px; font-weight: 500;
  background: rgba(244, 238, 240, .08); border-radius: 99px;
  transition: background .25s, color .25s;
}
.filters button:hover { background: rgba(244, 238, 240, .16); }
.filters button.is-active { background: var(--paper); color: var(--ink); }
/* Arbeider: rutenett eller liste */
.page__head .filters { flex: 1; }
.layout-switch { display: flex; gap: 2px; padding: 4px; border-radius: 99px; background: rgba(244, 238, 240, .08); }
.layout-switch button { padding: 7px 14px; border-radius: 99px; font-size: 14px; font-weight: 600; color: var(--muted); transition: background .25s, color .25s; }
.layout-switch button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.work-list { list-style: none; margin: 0; padding: 0; }
.grid[hidden], .work-list[hidden] { display: none; }
.work-list li[hidden] { display: none; }
.work-row {
  width: 100%; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1.2fr) auto;
  align-items: baseline; gap: var(--gutter); padding: 14px 0; text-align: left;
  transition: color .25s;
}
.work-row__title { font-size: clamp(18px, 1.6vw, 24px); font-weight: 700; letter-spacing: -.02em; transition: transform .5s var(--ease-out); }
.work-row__meta { font-size: 14px; color: var(--muted); }
.work-row__time { font-variant-numeric: tabular-nums; text-align: right; }
.work-row:hover, .work-row:focus-visible { color: var(--crimson); outline: none; }
.work-row:hover .work-row__title { transform: translateX(10px); }

/* ================= RUTENETT / KORT ================= */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(40px, 4.5vw, 72px) var(--gutter);
}
.card { cursor: pointer; outline: none; }
.card.is-hidden { display: none; }
.card__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--ink-2); }
.card__media img, .card__media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease-out), opacity .4s;
}
.card__media video { opacity: 0; }
.card.is-playing .card__media video { opacity: 1; }
.card:hover .card__media img, .card:hover .card__media video { transform: scale(1.04); }
.card:focus-visible .card__media { outline: 2px solid var(--crimson); outline-offset: 4px; }
.card__badge { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 5px 8px; background: rgba(11,7,8,.7); border-radius: 99px; font-size: 13px; font-weight: 500; }
.card__info { padding-top: 14px; display: grid; gap: 3px; }

/* Kontaktark på regissørsidene: stripa med 12 bilder byttes ut etter hvor musa er */
.sheet__media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--ink-2); touch-action: pan-y; }
.sheet__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sheet__frames { position: absolute; inset: 0; background-size: 1200% 100%; background-repeat: no-repeat; background-position: 0 0; opacity: 0; }
.sheet.is-scrubbing .sheet__frames { opacity: 1; }
.sheet__tc { position: absolute; left: 12px; bottom: 14px; padding: 5px 9px; border-radius: 99px; background: rgba(11, 7, 8, .75); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .2s; }
.sheet__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--crimson); transform: scaleX(0); transform-origin: left; opacity: 0; transition: opacity .2s; }
.sheet.is-scrubbing .sheet__tc, .sheet.is-scrubbing .sheet__bar { opacity: 1; }
.sheet:focus-visible .sheet__media { outline: 2px solid var(--crimson); outline-offset: 4px; }

.card__title { font-size: 19px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.card__meta { font-size: 14px; color: var(--muted); }
.card__meta b { font-weight: 500; color: var(--paper); }

/* ================= REGISSØRER ================= */
.director-list { list-style: none; margin: 0; padding: 0; }
.director-row {
  display: block;
  padding: clamp(10px, 1.2vw, 18px) 0;
  transition: color .3s;
}
.director-row__name { font-size: clamp(28px, 3.8vw, 56px); font-weight: 700; letter-spacing: -.05em; line-height: .95; transition: transform .6s var(--ease-out); }
.director-row:hover { color: var(--crimson); }
.director-row:hover .director-row__name { transform: translateX(16px); }
.director-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: clamp(80px, 10vw, 140px); font-size: 17px; }
.director-nav span { color: var(--muted); width: 100%; }
.director-nav a:hover { color: var(--crimson); }

/* ================= KONTAKT (crimson) ================= */
.theme-crimson {
  background-color: var(--crimson);
  color: #fff;
  --muted: rgba(26, 7, 13, .7);
  --line: rgba(26, 7, 13, .35);
}
.theme-crimson ::selection { background: #1a070d; }
.contact__title { font-size: clamp(52px, 9vw, 150px); }
.contact__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter);
  margin-top: clamp(48px, 7vw, 100px);
}
.contact__h2 { font-size: clamp(26px, 2.6vw, 40px); font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.contact__link {
  display: block; width: fit-content; margin-top: 10px;
  font-size: clamp(22px, 2.4vw, 36px); font-weight: 700; letter-spacing: -.03em; line-height: 1.15;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .14em;
  text-decoration-color: transparent; transition: text-decoration-color .3s;
}
a.contact__link:hover, a.contact__link:focus-visible { text-decoration-color: currentColor; outline: none; }
.about { margin-top: clamp(80px, 10vw, 140px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--gutter); }
.about__text { font-size: clamp(20px, 2vw, 28px); font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.clients { margin-top: clamp(80px, 10vw, 140px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--gutter); }
.clients__list { list-style: none; margin: 0; padding: 0; columns: 3; column-gap: var(--gutter); font-size: 17px; font-weight: 500; line-height: 1.8; }
.bigmark { margin: clamp(60px, 8vw, 120px) calc(var(--gutter) * -1) 0; aspect-ratio: 1073 / 380; }
.bigmark > [data-logo] svg { width: 92%; }
.bigmark path { fill: var(--rosa); }

/* ================= FOOTER ================= */
.footer {
  display: flex; flex-wrap: wrap; gap: 10px 32px;
  padding: 22px var(--gutter) 26px;
  background: rgba(244, 238, 240, .04);
  font-size: 14px; color: var(--muted);
}
.footer span:first-child { margin-right: auto; }
.footer a { transition: color .25s; }
.footer a:hover { color: var(--crimson); }
.theme-crimson .footer a:hover { color: #fff; }

/* ================= SPILLER ================= */
.player {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: var(--gutter); border: 0;
  background: rgba(11,7,8,.97); color: var(--paper);
  display: none; grid-template-rows: auto minmax(0, 1fr) auto; gap: clamp(12px, 1.6vw, 20px);
  overflow: hidden;
}
.player[open] { display: grid; animation: playerIn .45s var(--ease-out); }
@keyframes playerIn { from { opacity: 0; transform: translateY(20px); } }
.player::backdrop { background: rgba(0,0,0,.6); }
.player__top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--gutter); }
.player__title { font-size: clamp(22px, 2.6vw, 40px); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; margin-top: 4px; }
.player__credits { margin-top: 6px; font-size: 14px; color: var(--muted); }
.player__credits a:hover { color: var(--crimson); }
.player__close { flex: none; padding: 9px 16px; font-size: 15px; font-weight: 500; background: rgba(244, 238, 240, .1); border-radius: 99px; }
.player__close:hover { background: var(--paper); color: var(--ink); }
.player__stage { position: relative; min-height: 0; }
/* Ambilight: et lite bilde av filmen, uskarpt og forstørret bak videoen */
.glow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; filter: blur(70px) saturate(1.6); opacity: .55; transform: scale(1.15); }
.player__stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.player__versions { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.player__versions:empty { display: none; }
.version {
  flex: none; width: clamp(120px, 12vw, 176px); text-align: left;
  opacity: .55; transition: opacity .25s;
}
.version:hover, .version.is-active { opacity: 1; }
.version img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ink-2); outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .25s; }
.version.is-active img { outline-color: var(--crimson); }
.version span { display: block; margin-top: 6px; font-size: 13px; font-weight: 500; line-height: 1.3; }

/* ================= MARKØR + OVERGANG ================= */
/* Søkeren: fire hjørner som følger musa og legger seg rundt det man peker på (main.js styrer posisjon og størrelse) */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 200;
  width: 28px; height: 28px; pointer-events: none; opacity: 0;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, .55));
  transition: opacity .3s;
}
.cursor i { position: absolute; width: 9px; height: 9px; border: 0 solid var(--paper); transition: border-color .3s; }
.cursor i:nth-child(1) { left: 0; top: 0; border-left-width: 2px; border-top-width: 2px; }
.cursor i:nth-child(2) { right: 0; top: 0; border-right-width: 2px; border-top-width: 2px; }
.cursor i:nth-child(3) { left: 0; bottom: 0; border-left-width: 2px; border-bottom-width: 2px; }
.cursor i:nth-child(4) { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px; }
.cursor b { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: var(--crimson); transition: opacity .2s; }
.cursor.is-locked i { border-color: var(--crimson); }
.cursor.is-locked b { opacity: 0; }
.cursor span { position: absolute; left: 0; top: calc(100% + 6px); padding: 3px 8px; border-radius: 99px; background: var(--crimson); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .35s var(--ease-out); }
.cursor.has-label span { opacity: 1; transform: none; }
.theme-crimson .cursor.is-locked i { border-color: #1a070d; }
.theme-crimson .cursor span { background: #1a070d; }
@media (hover: hover) and (pointer: fine) {
  .cursor { opacity: 1; }
  /* Søkeren erstatter den vanlige pekeren, men ikke i filmspilleren (den ligger over alt annet) */
  html.cursor-on, html.cursor-on * { cursor: none !important; }
  html.cursor-on dialog[open], html.cursor-on dialog[open] * { cursor: auto !important; }
}

.curtain {
  position: fixed; inset: 0; z-index: 150; background: var(--crimson);
  display: grid; place-items: center; pointer-events: none;
  transform: translateY(100%);
}
/* S-en er en maske, så den er på plass med en gang (ingen henting av logo før den vises) */
.curtain__s, html.nav-in::after {
  width: clamp(48px, 6vw, 80px); aspect-ratio: 589 / 642; background: var(--rosa);
  -webkit-mask: url(/assets/img/stua-s.svg) center / contain no-repeat; mask: url(/assets/img/stua-s.svg) center / contain no-repeat;
}
/* Teppet som dekker siden fra første bilde når man kommer fra en lenke (fjernes av main.js) */
html.nav-in::before { content: ""; position: fixed; inset: 0; z-index: 150; background: var(--crimson); }
html.nav-in::after { content: ""; position: fixed; left: 50%; top: 50%; z-index: 151; transform: translate(-50%, -50%); }

/* ================= RESPONSIVT ================= */
@media (max-width: 1000px) {
  .director-row { grid-template-columns: 1fr; gap: 4px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .index-row__meta:last-child { display: none; }
}
@media (max-width: 720px) {
  .header__nav { display: none; }
  .header__menu { display: block; }
  .header__right { gap: 8px; }
  .header__view, .header__menu { padding: 13px 16px; font-size: 14px; }
  .header__clock { display: none; }
  .hero__works { top: 96px; transform: none; width: calc(100% - 2 * var(--gutter)); }
  .hero__works li:nth-child(n+6) { display: none; }
  .hero__works button span { font-size: 17px; }
  .hero__foot { gap: 6px 20px; font-size: 13px; }
  .page__head .filters { flex: 1 1 100%; }
  .work-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; }
  .work-row__meta:not(.work-row__time) { grid-column: 1; }
  .work-row__time { grid-row: 1; grid-column: 2; }
  .grid { grid-template-columns: 1fr; }
  .index-row { grid-template-columns: minmax(0, 1fr); }
  .index-row__meta { margin-top: -8px; }
  .index-row__meta:last-child { display: none; }
  .director-row { grid-template-columns: 1fr; }
  .contact__grid, .about, .clients { grid-template-columns: 1fr; gap: 20px; }
  .clients__list { columns: 2; }
  .cta { grid-template-columns: 1fr; }
  .chapter, .chapter--right { align-items: flex-end; justify-content: center; padding-bottom: 24px; padding-right: var(--gutter); }
  .chapter__panel, .chapter--bottom .chapter__panel { width: 100%; position: sticky; bottom: 24px; }
  .scope__bar--top { height: 76px; }
  .scope__bar--bot { flex-direction: column; align-items: flex-start; padding-bottom: 28px; }
  .scope__s { width: 112px; margin: -8px 0 -4px -8px; }
  .scope__side { justify-items: start; text-align: left; }
  .scope__actions { flex-direction: row-reverse; justify-content: flex-end; }
  .chapter__list button, .chapter__list a { font-size: 16px; padding: 9px 0; }
  #roomFeatured li:nth-child(n+7) { display: none; }
  .room-nav { right: 10px; gap: 12px; }
  .room-nav a span { display: none; }
  .cta__3d { max-width: 260px; order: -1; }
  .player { padding: 14px; }
  .footer span:first-child { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ================= EKSTRA I 3D-STUA ================= */
/* Svart kutt mellom kameravinkler (klapperbrett, VHS) */
.room-cut { position: fixed; inset: 0; z-index: 34; background: #000; opacity: 0; pointer-events: none; }
/* Panelet som dukker opp når en VHS-kassett spilles på TV-en */
.vhs-panel { position: fixed; left: var(--gutter); bottom: clamp(32px, 8vh, 80px); z-index: 33; width: min(440px, calc(100% - 2 * var(--gutter))); pointer-events: none; }
.vhs-panel.is-on { opacity: 1; transform: none; pointer-events: auto; }
.vhs-panel .chapter__title { margin: 0 0 8px; }
.vhs-panel__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.vhs-panel__actions .chapter__alt { margin-top: 0; }
/* Spilleren fortsetter zoomen inn i plakaten */
.player.is-zoom[open] { animation: playerZoom .45s var(--ease-out); }
@keyframes playerZoom { from { opacity: 0; transform: scale(1.08); } }
.chapter__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.chapter__actions .chapter__alt { margin-top: 0; }
/* Mens en VHS spilles, er det bare TV-en og VHS-panelet som vises */
.vhs-on .chapter__panel:not(.vhs-panel), .vhs-on .room-nav, .room-focus .chapter__panel, .room-focus .room-nav { opacity: 0 !important; pointer-events: none; }
