/* ============================================================
   Melanie Dahl — Warm Editorial / Personal
   Design DNA lives here. Never hardcode color/font/spacing
   in markup — everything references these variables.
   ============================================================ */

/* ---- Fonts (Design Lab can swap --font-heading at runtime) ---- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..600;1,9..144,300..500&family=Mulish:ital,wght@0,300..800;1,400..600&family=Cormorant+Garamond:ital,wght@0,400..600;1,400..500&family=Syne:wght@400..800&family=Newsreader:ital,opsz,wght@0,6..72,300..500;1,6..72,300..400&family=DM+Serif+Display:ital@0;1&display=swap');

/* ============================================================
   1. DESIGN DNA — Palette 1 (brand default): warm cream/clay/ink
   ============================================================ */
:root {
  /* Colors */
  --color-bg:          #F7F2EA;
  --color-bg-alt:      #EFE7DA;
  --color-surface:     #FFFDF8;
  --color-text:        #2A2622;
  --color-text-muted:  #7A7066;
  --color-heading:     #1F1B17;
  --color-accent:      #C5603A;
  --color-accent-soft: #E4A988;
  --color-cta:         #C5603A;
  --color-cta-text:    #FFFDF8;
  --color-border:      #E2D8C8;

  /* The theatrical "stage" tones used by Scene sections */
  --color-stage-bg:    #1F1B17;
  --color-stage-surface:#2A241E;
  --color-stage-text:  #F2E9DB;
  --color-stage-muted: #B6A893;

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'Mulish', system-ui, -apple-system, sans-serif;
  --font-accent:  'Cormorant Garamond', Georgia, serif;

  /* Layout */
  --max-width:       1200px;
  --container-gutter: clamp(1.25rem, 5vw, 4rem);
  --section-padding: clamp(4.5rem, 10vw, 7.5rem);
  --border-radius:   8px;
  --card-radius:     14px;

  /* Type scale */
  --text-xs:   0.8rem;
  --text-sm:   0.95rem;
  --text-base: 1.0625rem;   /* 17px */
  --text-lg:   1.25rem;
  --text-xl:   1.6rem;
  --h3:        clamp(1.4rem, 2.5vw, 1.9rem);
  --h2:        clamp(2rem, 4.5vw, 3.25rem);
  --h1:        clamp(2.6rem, 7vw, 5rem);
  --display:   clamp(3rem, 9vw, 6rem);

  --shadow-sm: 0 2px 10px rgba(31, 27, 23, 0.05);
  --shadow-md: 0 12px 34px rgba(31, 27, 23, 0.10);
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   PER-PAGE IDENTITY — each sub-page is its own "room".
   Home stays warm/neutral; Coaching = Scandinavian calm;
   Scene = theatrical. Placed before the Design Lab palette
   overrides so the Lab (data-palette 2/3) can still override.
   ============================================================ */

/* Coaching — Skandinavisk ro: cool sage/stone, airy soft serif */
body.theme-coaching {
  --color-bg:          #F2F4EF;
  --color-bg-alt:      #E7EBE2;
  --color-surface:     #FBFCF9;
  --color-text:        #2C302B;
  --color-text-muted:  #6E756B;
  --color-heading:     #1E231D;
  --color-accent:      #5E7367;   /* muted sage/eucalyptus — calm, Nordic */
  --color-accent-soft: #9DB0A0;
  --color-cta:         #5E7367;
  --color-cta-text:    #FBFCF9;
  --color-border:      #D7DCD0;
  --color-stage-bg:    #232A23;   /* calm deep spruce for dark bands */
  --color-stage-surface:#2E362D;
  --color-stage-text:  #EEF1EA;
  --color-stage-muted: #A9B4A6;
  --font-heading: 'Newsreader', Georgia, serif;
}
body.theme-coaching h1,
body.theme-coaching h2,
body.theme-coaching h3 { font-weight: 400; letter-spacing: -0.005em; }
body.theme-coaching .hero__title { font-weight: 380; }

/* Scene — Teatralsk: deep stage dark, marigold accent, dramatic display serif */
body.theme-scene {
  --color-accent:      #DA762B;   /* theatrical marigold-terracotta */
  --color-accent-soft: #E7A949;   /* warm amber — echoes the yellow scene photo */
  --color-cta:         #DA762B;
  --color-stage-bg:    #18140F;   /* deeper, richer dark than the home stage */
  --color-stage-surface:#241D15;
  --color-stage-text:  #F4EAD7;
  --color-stage-muted: #B8A98E;
  --font-heading: 'DM Serif Display', Georgia, serif;
}
body.theme-scene h1,
body.theme-scene h2,
body.theme-scene h3 { letter-spacing: 0; }

/* ---- Palette 2: Midnight Luxury (dark) ---- */
body[data-palette="2"] {
  --color-bg:          #0D0F12;
  --color-bg-alt:      #14171B;
  --color-surface:     #181C21;
  --color-text:        #E7DFD2;
  --color-text-muted:  #9A9388;
  --color-heading:     #F4ECDD;
  --color-accent:      #C9A35E;
  --color-accent-soft: #8A7340;
  --color-cta:         #C9A35E;
  --color-cta-text:    #14171B;
  --color-border:      #2A2E34;
  --color-stage-bg:    #060708;
  --color-stage-surface:#14171B;
  --color-stage-text:  #F4ECDD;
  --color-stage-muted: #9A9388;
}

/* ---- Palette 3: Nordic Sage (organic) ---- */
body[data-palette="3"] {
  --color-bg:          #F2F4F2;
  --color-bg-alt:      #E6EAE4;
  --color-surface:     #FCFDFB;
  --color-text:        #1C2820;
  --color-text-muted:  #5E6B61;
  --color-heading:     #16201A;
  --color-accent:      #4A6B57;
  --color-accent-soft: #9CB6A4;
  --color-cta:         #4A6B57;
  --color-cta-text:    #FCFDFB;
  --color-border:      #D2DAD2;
  --color-stage-bg:    #16201A;
  --color-stage-surface:#1F2C24;
  --color-stage-text:  #EAF0EA;
  --color-stage-muted: #9CB6A4;
}

/* ---- Design Lab font swaps ---- */
body[data-font="2"] { --font-heading: 'Cormorant Garamond', Georgia, serif; }
body[data-font="3"] { --font-heading: 'Syne', system-ui, sans-serif; }

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }

p { max-width: 62ch; }
::selection { background: var(--color-accent); color: var(--color-cta-text); }

/* ============================================================
   3. LAYOUT PRIMITIVES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--container-gutter);
}
.section { padding-block: var(--section-padding); }
.section--alt { background: var(--color-bg-alt); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }

.kicker {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-accent);
  display: inline-block;
  margin-bottom: 1rem;
}
.lead { font-size: var(--text-lg); color: var(--color-text-muted); }
.muted { color: var(--color-text-muted); }
.center { text-align: center; }
.center p { margin-inline: auto; }

/* ============================================================
   4. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  padding: 0.95em 1.7em;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease);
  will-change: transform;
}
.btn--primary { background: var(--color-cta); color: var(--color-cta-text); box-shadow: var(--shadow-sm); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; border-color: var(--color-border); color: var(--color-heading); }
.btn--ghost:hover { border-color: var(--color-accent); color: var(--color-accent); transform: translateY(-2px); }
.btn--on-stage { background: var(--color-stage-text); color: var(--color-stage-bg); }
.btn--on-stage:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.4); }
.btn--ghost-stage { background: transparent; border-color: rgba(242,233,219,0.3); color: var(--color-stage-text); }
.btn--ghost-stage:hover { border-color: var(--color-accent-soft); color: var(--color-accent-soft); }
.btn--lg { padding: 1.1em 2.1em; font-size: var(--text-base); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-weight: 700; color: var(--color-accent);
  position: relative;
}
.link-arrow::after { content: "→"; transition: transform 0.3s var(--ease); }
.link-arrow:hover::after { transform: translateX(5px); }

/* ============================================================
   5. NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--container-gutter);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav--scrolled {
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 1px 0 var(--color-border);
  padding-block: 0.7rem;
}
.nav__brand {
  font-family: var(--font-heading);
  font-size: 1.4rem; font-weight: 500; letter-spacing: -0.02em;
  color: var(--color-heading);
}
.nav__links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav__links a { font-weight: 600; font-size: var(--text-sm); position: relative; padding-block: 0.2em; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--color-accent); transition: width 0.3s var(--ease);
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }
.nav__cta { margin-left: 0.5rem; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; }
.nav__toggle span { width: 26px; height: 2px; background: var(--color-heading); transition: 0.3s var(--ease); }

@media (max-width: 900px) {
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 1.5rem; padding: 2rem;
    background: var(--color-surface);
    transform: translateX(100%); transition: transform 0.45s var(--ease);
    box-shadow: -20px 0 60px rgba(0,0,0,0.15);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__toggle { display: flex; z-index: 101; }
  .nav__cta { display: none; }
}

/* ---- Full stage page (Scene) ---- */
body.stage-page { background: var(--color-stage-bg); color: var(--color-stage-text); }
body.stage-page .nav__brand, body.stage-page .nav__links a { color: var(--color-stage-text); }
body.stage-page .nav__links a.btn--on-stage { color: var(--color-stage-bg); } /* keep dark text on the cream CTA pill */
body.stage-page .nav__toggle span { background: var(--color-stage-text); }
body.stage-page .nav--scrolled {
  background: color-mix(in srgb, var(--color-stage-bg) 88%, transparent);
  box-shadow: 0 1px 0 var(--color-stage-surface);
}
body.stage-page .nav__links { background: var(--color-stage-surface); }

/* ============================================================
   6. HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding-top: 6rem; overflow: hidden;
}
.hero__video-wrap { position: absolute; inset: 0; z-index: 0; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(115deg,
    color-mix(in srgb, var(--color-bg) 95%, transparent) 0%,
    color-mix(in srgb, var(--color-bg) 90%, transparent) 50%,
    color-mix(in srgb, var(--color-bg) 82%, transparent) 100%);
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center; width: 100%;
}
.hero__title { font-size: var(--h1); margin-bottom: 1.5rem; }
.hero__title em { font-style: italic; color: var(--color-accent); }
.hero__sub { font-size: var(--text-lg); color: var(--color-text-muted); margin-bottom: 2.2rem; max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero__portrait {
  position: relative; border-radius: var(--card-radius); overflow: hidden;
  box-shadow: var(--shadow-md); aspect-ratio: 4/5; will-change: transform;
}
.hero__portrait img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__portrait { order: -1; max-width: 320px; aspect-ratio: 1/1; }
}

/* ============================================================
   7. THE TWO DOORS
   ============================================================ */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.door {
  position: relative; overflow: hidden;
  border-radius: var(--card-radius);
  padding: clamp(2rem, 4vw, 3.2rem);
  min-height: 360px;
  display: flex; flex-direction: column; justify-content: flex-end;
  border: 1px solid var(--color-border);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  will-change: transform;
}
.door:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.door__icon { font-size: 2.4rem; margin-bottom: auto; }
.door__title { font-size: var(--h3); margin-bottom: 0.5rem; }
.door__desc { font-size: var(--text-sm); margin-bottom: 1.4rem; }
.door--coaching { background: var(--color-surface); }
.door--coaching .door__desc { color: var(--color-text-muted); }
.door--scene {
  background: var(--color-stage-bg);
  border-color: var(--color-stage-surface);
}
.door--scene .door__title { color: var(--color-stage-text); }
.door--scene .door__desc { color: var(--color-stage-muted); }
.door--scene .link-arrow { color: var(--color-accent-soft); }
@media (max-width: 720px) { .doors { grid-template-columns: 1fr; } }

/* ---- Home: "Hva er du her for?" — two large image doors ---- */
.hero-choice {
  padding-top: clamp(4.5rem, 7vw, 5.75rem);
  min-height: 100vh;
  display: flex; flex-direction: column;
}
.choice-intro {
  max-width: 760px; margin: 0 auto;
  padding: clamp(0.6rem, 1.5vw, 1rem) var(--container-gutter) clamp(0.75rem, 1.8vw, 1.25rem);
  text-align: center;
}
.choice-intro .kicker { margin-bottom: 0.4rem; }
.choice-intro h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.05; margin-bottom: 0.5rem; }
.choice-intro .lead { font-size: var(--text-base); }
.choice-doors { display: grid; grid-template-columns: 1fr 1fr; gap: 0; flex: 1; }
.img-door {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(360px, 62vh, 720px);
  display: flex; align-items: flex-end;
}
.img-door__bg {
  position: absolute; inset: 0; z-index: -1;
  background-size: cover; background-position: center 22%;
  transition: transform 0.9s var(--ease);
  will-change: transform;
}
.img-door:hover .img-door__bg { transform: scale(1.05); }
.img-door__overlay { position: absolute; inset: 0; z-index: 0; }
/* Both doors share one dark cinematic overlay + light text, so the shading and
   text colour match and stay legible over any photo. */
.img-door--coaching .img-door__overlay,
.img-door--scene .img-door__overlay {
  background: linear-gradient(0deg,
    var(--color-stage-bg) 0%,
    color-mix(in srgb, var(--color-stage-bg) 72%, transparent) 38%,
    transparent 78%);
}
.img-door__content { position: relative; z-index: 1; padding: clamp(2rem, 4vw, 3.4rem); max-width: 500px; }
.img-door__icon { font-size: 2.4rem; display: block; margin-bottom: 0.7rem; }
.img-door__content h2 { font-size: var(--h2); margin-bottom: 0.5rem; }
.img-door__content p { font-size: var(--text-base); margin-bottom: 1.2rem; }
.img-door--coaching .img-door__content h2,
.img-door--scene .img-door__content h2 { color: var(--color-stage-text); }
.img-door--coaching .img-door__content p,
.img-door--scene .img-door__content p { color: var(--color-stage-muted); }
.img-door--coaching .link-arrow,
.img-door--scene .link-arrow { color: var(--color-accent-soft); }
@media (max-width: 760px) {
  .choice-doors { grid-template-columns: 1fr; }
  .img-door { min-height: clamp(380px, 60vh, 520px); }
}

/* ============================================================
   8. STAGE SECTION (Scene theme)
   ============================================================ */
.stage {
  background: var(--color-stage-bg);
  color: var(--color-stage-text);
}
.stage h1, .stage h2, .stage h3 { color: var(--color-stage-text); }
.stage .lead, .stage .muted { color: var(--color-stage-muted); }
.stage .kicker { color: var(--color-accent-soft); }
.stage .hero__video-overlay {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--color-stage-bg) 30%, transparent) 0%,
    color-mix(in srgb, var(--color-stage-bg) 45%, transparent) 45%,
    color-mix(in srgb, var(--color-stage-bg) 82%, transparent) 100%);
}
.stage .hero__sub { color: var(--color-stage-muted); }

/* Full-bleed cinematic image band (e.g. the Sanctuary award section) */
.image-band {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  padding-block: clamp(6rem, 16vw, 11rem);
}
.image-band__bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
}
.image-band__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    var(--color-stage-bg) 0%,
    color-mix(in srgb, var(--color-stage-bg) 52%, transparent) 38%,
    color-mix(in srgb, var(--color-stage-bg) 52%, transparent) 62%,
    var(--color-stage-bg) 100%);
}

/* CV / résumé rows */
.cv-block { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.cv-block__title { font-size: var(--h3); margin-bottom: 1.2rem; }
.cv-row {
  display: grid; grid-template-columns: 130px 1fr; gap: 1.5rem;
  padding: 0.9rem 0; border-bottom: 1px solid var(--color-border);
  align-items: baseline;
}
.cv-row:last-child { border-bottom: 0; }
.cv-row__year {
  font-family: var(--font-body); font-weight: 700; font-size: var(--text-sm);
  letter-spacing: 0.02em; color: var(--color-accent);
}
.cv-row__detail strong, .cv-row__detail b { color: var(--color-heading); font-weight: 700; }
.cv-row__detail { color: var(--color-text-muted); font-size: var(--text-base); }
.cv-facts { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; font-size: var(--text-sm); color: var(--color-text-muted); }
.cv-facts strong { color: var(--color-heading); }
@media (max-width: 600px) {
  .cv-row { grid-template-columns: 1fr; gap: 0.2rem; padding: 0.8rem 0; }
}

/* On the dark stage theme, lift CV text/borders for contrast */
.stage .cv-row { border-color: rgba(242, 233, 219, 0.12); }
.stage .cv-row__detail { color: var(--color-stage-muted); }
.stage .cv-row__detail strong, .stage .cv-row__detail b { color: var(--color-stage-text); }
.stage .cv-facts { color: var(--color-stage-muted); }
.stage .cv-facts strong { color: var(--color-stage-text); }

/* ============================================================
   9. CARDS / GRIDS
   ============================================================ */
/* Vertical card stack — uniform gaps from CSS so added/reordered items stay even
   (never put margins on the items inline; cloning the last item would drop them). */
.card-stack { display: flex; flex-direction: column; gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3rem); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 820px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  padding: 2rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__num { font-family: var(--font-heading); font-size: 2.6rem; color: var(--color-accent-soft); line-height: 1; }
.card h3 { margin: 0.8rem 0 0.5rem; }
.card p { font-size: var(--text-sm); color: var(--color-text-muted); }

/* Pricing */
.price-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--card-radius); padding: 2rem; display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price-card--featured { border-color: var(--color-accent); box-shadow: var(--shadow-md); }
.price-card__tag {
  align-self: flex-start; font-size: var(--text-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--color-accent); margin-bottom: 0.8rem;
}
.price-card h3 { margin-bottom: 0.4rem; }
.price-card__price { font-family: var(--font-heading); font-size: 2.2rem; color: var(--color-heading); margin: 0.6rem 0 1rem; }
.price-card ul { list-style: none; margin-bottom: 1.5rem; flex-grow: 1; }
.price-card li { font-size: var(--text-sm); color: var(--color-text-muted); padding: 0.4em 0 0.4em 1.5em; position: relative; }
.price-card li::before { content: "✦"; position: absolute; left: 0; color: var(--color-accent-soft); }

/* Production cards (Scene) */
.prod-card {
  background: var(--color-stage-surface); border-radius: var(--card-radius);
  overflow: hidden; border: 1px solid rgba(242,233,219,0.08);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.prod-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(0,0,0,0.45); }
.prod-card__media { aspect-ratio: 16/10; background: #000; overflow: hidden; }
.prod-card__media img, .prod-card__media video { width: 100%; height: 100%; object-fit: cover; }
/* Clown cards use portrait photos (~2:3) — taller media + top-anchored crop so
   the face always shows instead of being cut off by a wide centre crop. */
[data-editable-list="klovner"] .prod-card__media { aspect-ratio: 3/4; }
[data-editable-list="klovner"] .prod-card__media img { object-position: center top; }
.prod-card__body { padding: 1.4rem; }
.prod-card__body h3 { font-size: var(--text-xl); color: var(--color-stage-text); margin-bottom: 0.3rem; }
.prod-card__body p { font-size: var(--text-sm); color: var(--color-stage-muted); }
.prod-card__meta { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-accent-soft); margin-bottom: 0.6rem; }
/* Optional photo credit for the cover image (e.g. "Foto: Kristian Davik Larssen") */
.prod-card__foto { font-size: var(--text-xs); font-style: italic; color: var(--color-stage-muted); opacity: 0.75; margin-bottom: 0.5rem; }
.prod-card__foto:empty { display: none; margin: 0; }

/* Photo credit on a STANDALONE image (hero portraits, feature media).
   Overlaid inside the media box on purpose: those boxes are direct grid children
   with a fixed aspect-ratio + overflow:hidden, so a sibling caption would become
   a stray third grid item and an inside-flow one would be clipped. Riding along
   with the parallax transform is correct — the credit belongs to the photo. */
.media-credit {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  padding: 1.6rem 1rem 0.7rem; text-align: right;
  font-size: var(--text-xs); font-style: italic;
  color: rgba(255,255,255,0.92); text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
  pointer-events: none;   /* never intercept the admin's image-swap click */
}
.media-credit:empty { display: none; }

/* Clickable production cards (open detail modal) */
.prod-card.is-clickable { cursor: pointer; }
.prod-card__more {
  display: inline-block; margin-top: 0.9rem;
  font-size: var(--text-sm); font-weight: 700; color: var(--color-accent);
  transition: gap 0.2s var(--ease);
}
.prod-card.is-clickable:hover .prod-card__more { text-decoration: underline; }
.prod-card__detail { display: none; }

/* "Fokuset er å styrke" + its cards + the closing text belong to the production /
   mental-training feature directly above them. Kept tight underneath it, with a
   label demoted from the section-opening .kicker style (softer colour, tighter
   tracking), so the eye reads one continuous part instead of a new section. */
.prod-fokus { margin-top: 1.25rem; }
.prod-fokus__label {
  display: block; text-align: center; margin: 0 0 0.9rem;
  font-family: var(--font-body); text-transform: uppercase;
  letter-spacing: 0.16em; font-size: var(--text-xs); font-weight: 700;
  color: var(--color-accent-soft);
}
.prod-fokus__slutt { max-width: 760px; margin: 2rem auto 0; }

/* Optional images on offering cards and price cards */
.card__img, .price-card__img {
  display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover;
  border-radius: 12px; margin-bottom: 1rem;
}
.price-card__img { aspect-ratio: 16/9; }

/* Sub-group headings inside "Andre måter å jobbe sammen på" */
.tilbud-gruppe {
  text-align: center; font-size: var(--text-xl); margin: 2.5rem 0 1.4rem;
  color: var(--color-accent);
}
.tilbud-gruppe:first-of-type { margin-top: 0; }

/* Clickable offering cards (.card) share the detail-modal behaviour */
.card.is-clickable { cursor: pointer; }
.card__more {
  display: inline-block; margin-top: 0.9rem;
  font-size: var(--text-sm); font-weight: 700; color: var(--color-accent);
}
.card.is-clickable:hover .card__more { text-decoration: underline; }
.card__detail { display: none; }

/* Items the admin has hidden, and empty image slots, are invisible to visitors */
.is-hidden-item { display: none !important; }
img[data-list-image-field]:not([src]), img[data-list-image-field][src=""],
img[data-edit-image]:not([src]),  img[data-edit-image][src=""] { display: none; }

/* Production detail modal */
.prod-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 4vh 1rem; overflow-y: auto;
  background: rgba(12,10,8,0.78); backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity 0.25s var(--ease);
}
.prod-modal.is-open { opacity: 1; pointer-events: auto; }
.prod-modal__box {
  position: relative; width: 100%; max-width: 720px; margin: auto;
  background: var(--color-stage-surface); color: var(--color-stage-text);
  border-radius: var(--card-radius); border: 1px solid rgba(242,233,219,0.1);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6); overflow: hidden;
  transform: translateY(16px); transition: transform 0.25s var(--ease);
}
.prod-modal.is-open .prod-modal__box { transform: translateY(0); }
.prod-modal__media { aspect-ratio: 16/9; background: #000; }
.prod-modal__media img { width: 100%; height: 100%; object-fit: cover; }
.prod-modal__content { padding: 2rem 2.2rem 2.4rem; }
.prod-modal__meta { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-accent-soft); margin-bottom: 0.5rem; }
.prod-modal__title { font-size: var(--text-2xl); margin-bottom: 1.2rem; color: var(--color-stage-text); }
.prod-modal__body p { font-size: var(--text-base); color: var(--color-stage-text); opacity: 0.92; margin-bottom: 1rem; line-height: 1.65; }
.prod-modal__media { background: var(--color-stage-surface); }
.prod-modal__body strong { color: var(--color-stage-text); }
.prod-modal__body a { color: var(--color-accent); font-weight: 700; }
.prod-modal__body blockquote {
  margin: 1.2rem 0; padding-left: 1.1rem; border-left: 3px solid var(--color-accent);
  font-style: italic; color: var(--color-stage-text);
}
.prod-modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(12,10,8,0.6); color: #fff; font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px);
  transition: background 0.2s var(--ease);
}
.prod-modal__close:hover { background: var(--color-accent); }
/* Image gallery inside a detail modal */
.galleri {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 1.4rem 0;
}
.galleri__item { margin: 0; }
.galleri__item img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; display: block;
}
/* Optional photo credit under a gallery image (e.g. "Foto: Kristian Davik Larssen") */
.galleri__credit { margin: 4px 2px 0; font-size: var(--text-xs); font-style: italic; color: var(--color-stage-muted); opacity: 0.75; }
.galleri__credit:empty { display: none; margin: 0; }
@media (max-width: 600px) { .galleri { grid-template-columns: 1fr; } }

/* Responsive embedded video (auto-generated from a YouTube/Vimeo link) */
.video-embed {
  position: relative; padding-top: 56.25%; margin: 1.4rem 0;
  border-radius: 12px; overflow: hidden; background: #000;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.prod-modal__back {
  margin-top: 1.6rem; padding: 0.7rem 1.4rem; cursor: pointer;
  background: transparent; color: var(--color-accent); font-weight: 700; font-size: var(--text-sm);
  border: 1px solid var(--color-accent); border-radius: 100px; transition: all 0.2s var(--ease);
}
.prod-modal__back:hover { background: var(--color-accent); color: #fff; }
body.prod-modal-open { overflow: hidden; }
@media (max-width: 600px) {
  .prod-modal__content { padding: 1.4rem 1.3rem 1.8rem; }
}

/* ============================================================
   10. TESTIMONIALS
   ============================================================ */
.quote {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--card-radius); padding: 2rem;
  border-left: 4px solid var(--color-accent);
}
.quote p { font-family: var(--font-accent); font-style: italic; font-size: var(--text-lg); color: var(--color-heading); }
.quote cite { display: block; margin-top: 1rem; font-style: normal; font-size: var(--text-sm); font-weight: 700; color: var(--color-text-muted); }

/* Feature row */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.feature__media { position: relative; border-radius: var(--card-radius); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/5; }
.feature__media img { width:100%; height:100%; object-fit: cover; }
.feature--reverse .feature__media { order: 2; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } .feature--reverse .feature__media { order: -1; } }

/* FAQ */
.faq { border-bottom: 1px solid var(--color-border); }
.faq summary { cursor: pointer; padding: 1.3rem 0; font-family: var(--font-heading); font-size: var(--text-xl); color: var(--color-heading); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--color-accent); transition: transform 0.3s var(--ease); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding-bottom: 1.3rem; color: var(--color-text-muted); }

/* Logos / trust strip */
.trust { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; justify-content: center; }
.trust span { font-family: var(--font-heading); font-size: 1.2rem; color: var(--color-text-muted); opacity: 0.8; }

/* ============================================================
   11. CONTACT
   ============================================================ */
.form { display: grid; gap: 1.1rem; max-width: 540px; }
.form label { font-size: var(--text-sm); font-weight: 700; color: var(--color-heading); display: grid; gap: 0.4rem; }
.form input, .form textarea, .form select {
  font-family: var(--font-body); font-size: var(--text-base);
  padding: 0.85em 1em; border: 1.5px solid var(--color-border);
  border-radius: var(--border-radius); background: var(--color-surface); color: var(--color-text);
  width: 100%; transition: border-color 0.3s var(--ease);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--color-accent); }
.intent { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.intent label {
  flex: 1; min-width: 160px; cursor: pointer; border: 1.5px solid var(--color-border);
  border-radius: var(--border-radius); padding: 1rem; text-align: center; transition: 0.3s var(--ease);
}
.intent input { position: absolute; opacity: 0; }
.intent label:has(input:checked) { border-color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 8%, transparent); }

/* ============================================================
   12. FOOTER
   ============================================================ */
.footer { background: var(--color-stage-bg); color: var(--color-stage-muted); padding-block: clamp(3rem,6vw,4.5rem) 2rem; }
.footer a { color: var(--color-stage-text); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer__brand { font-family: var(--font-heading); font-size: 1.6rem; color: var(--color-stage-text); margin-bottom: 0.6rem; }
.footer h4 { color: var(--color-stage-text); font-family: var(--font-body); font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1rem; }
.footer ul { list-style: none; display: grid; gap: 0.5rem; }
.footer__bottom { border-top: 1px solid rgba(242,233,219,0.12); padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: var(--text-xs); }
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr; } }

/* Social profiles. Icons are inline SVG on purpose: no icon font, no third-party
   request, and they inherit the footer's colour in every per-page theme.
   Needs to out-specify `.footer ul`, which sets display:grid for the link lists. */
.footer .footer__social { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.footer__social a {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid rgba(242,233,219,0.22);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}
.footer__social a:hover, .footer__social a:focus-visible {
  border-color: var(--color-accent); background: rgba(242,233,219,0.07); transform: translateY(-2px);
}
.footer__social svg { width: 19px; height: 19px; display: block; }

/* oppskalert credit */
.footer__credit {
  max-width: var(--max-width); margin: 2.5rem auto 0;
  padding: 1.75rem var(--container-gutter) 0;
  border-top: 1px solid rgba(242,233,219,0.12);
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-size: var(--text-xs); color: rgba(182,168,147,0.6); letter-spacing: 0.02em;
}
.footer__credit-logo {
  position: relative; display: inline-flex; align-items: center; gap: 0.2em;
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em;
  color: var(--color-stage-text); padding-right: 1.1em;
  transition: opacity 0.25s, transform 0.25s;
}
.footer__credit-logo:hover { opacity: 0.85; transform: translateY(-1px); }
.footer__credit-dot { color: var(--color-accent); }
.footer__credit-spark { position: absolute; right: 0; bottom: 0.05em; width: 0.85em; height: 0.85em; color: var(--color-accent); opacity: 0.9; }

/* ============================================================
   13. SCROLL REVEAL — bulletproof.
   Content is VISIBLE by default. Hiding only happens once JS adds
   `js-anim` to <body> (so if JS/GSAP fails or is blocked, everything
   still shows). Reveal is driven by IntersectionObserver adding
   `.is-visible` — no dependency on GSAP/ScrollTrigger firing.
   ============================================================ */
.reveal, [data-hero] { opacity: 1; }

body.js-anim .reveal {
  opacity: 0; transform: translateY(42px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
body.js-anim .reveal.is-visible { opacity: 1; transform: none; }

/* Staggered containers: animate the children, not the wrapper */
body.js-anim .reveal[data-stagger],
body.js-anim [data-hero] { opacity: 1; transform: none; transition: none; }
body.js-anim .reveal[data-stagger] > *,
body.js-anim [data-hero] > * {
  opacity: 0; transform: translateY(42px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  will-change: opacity, transform;
}
body.js-anim .reveal[data-stagger].is-visible > *,
body.js-anim [data-hero].is-visible > * { opacity: 1; transform: none; }
body.js-anim .reveal[data-stagger].is-visible > *:nth-child(2),
body.js-anim [data-hero].is-visible > *:nth-child(2) { transition-delay: 0.08s; }
body.js-anim .reveal[data-stagger].is-visible > *:nth-child(3),
body.js-anim [data-hero].is-visible > *:nth-child(3) { transition-delay: 0.16s; }
body.js-anim .reveal[data-stagger].is-visible > *:nth-child(4),
body.js-anim [data-hero].is-visible > *:nth-child(4) { transition-delay: 0.24s; }
body.js-anim .reveal[data-stagger].is-visible > *:nth-child(5) { transition-delay: 0.32s; }
body.js-anim .reveal[data-stagger].is-visible > *:nth-child(6) { transition-delay: 0.40s; }

/* ============================================================
   14. GRAIN OVERLAY
   ============================================================ */
.grain {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  opacity: 0.04; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  transition: opacity 0.4s var(--ease);
}
body[data-grain="off"] .grain { opacity: 0; }

/* ============================================================
   15. DESIGN LAB — Apple "Liquid Glass" review panel
   ============================================================ */
.lab { position: fixed; bottom: 20px; left: 20px; z-index: 9999; font-family: var(--font-body); }
.lab__toggle {
  display: inline-flex; align-items: center; gap: 0.5em;
  background: rgba(255,255,255,0.35); color: #1a1a1a;
  border: 0.5px solid rgba(255,255,255,0.4); border-radius: 100px;
  padding: 0.7em 1.1em; font-size: 0.9rem; font-weight: 700; cursor: pointer;
  backdrop-filter: blur(30px) saturate(210%); -webkit-backdrop-filter: blur(30px) saturate(210%);
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.04), inset 0 1.5px 0.5px rgba(255,255,255,0.65), inset 0 -1px 2px rgba(0,0,0,0.05), inset 0 10px 20px rgba(255,255,255,0.3);
  transition: all 0.4s var(--ease);
}
.lab__toggle:hover { transform: scale(1.04); }
body[data-palette="2"] .lab__toggle { background: rgba(15,20,25,0.4); color: #f4ecdd; border-color: rgba(255,255,255,0.12);
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.2), inset 0 1.5px 0.5px rgba(255,255,255,0.25), inset 0 -1px 2px rgba(255,255,255,0.05), inset 0 10px 20px rgba(255,255,255,0.05); }

.lab__panel {
  position: absolute; bottom: calc(100% + 12px); left: 0;
  width: 280px; padding: 1.3rem;
  background: rgba(255,255,255,0.35); border: 0.5px solid rgba(255,255,255,0.4); border-radius: 24px;
  backdrop-filter: blur(30px) saturate(210%); -webkit-backdrop-filter: blur(30px) saturate(210%);
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.04), inset 0 1.5px 0.5px rgba(255,255,255,0.65), inset 0 -1px 2px rgba(0,0,0,0.05), inset 0 10px 20px rgba(255,255,255,0.3);
  color: #1a1a1a;
  opacity: 0; transform: translateY(12px) scale(0.96); pointer-events: none;
  transition: all 0.4s var(--ease);
}
.lab__panel.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
body[data-palette="2"] .lab__panel { background: rgba(15,20,25,0.55); border-color: rgba(255,255,255,0.12); color: #f4ecdd;
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.2), inset 0 1.5px 0.5px rgba(255,255,255,0.25), inset 0 -1px 2px rgba(255,255,255,0.05), inset 0 10px 20px rgba(255,255,255,0.05); }

.lab__row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.9rem; }
.lab__label { font-size: 0.9rem; font-weight: 700; display: flex; align-items: center; gap: 0.4em; }
.lab__opts { display: flex; gap: 0.35rem; }
.lab__opts button {
  width: 30px; height: 30px; border-radius: 100px; cursor: pointer;
  border: 0.5px solid rgba(255,255,255,0.4); background: rgba(255,255,255,0.4); color: inherit;
  font-size: 0.85rem; font-weight: 700; transition: all 0.3s var(--ease);
}
body[data-palette="2"] .lab__opts button { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); }
.lab__opts button:hover { transform: scale(1.1); }
.lab__opts button.is-active { background: var(--color-accent); color: #fff; border-color: transparent; }
.lab__title { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.16em; opacity: 0.6; margin-bottom: 1rem; }

.design-lab__credit { margin-top: 1.1rem; padding-top: 0.9rem; border-top: 0.5px solid rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: center; gap: 0.5em; font-size: 0.7rem; opacity: 0.75; }
body[data-palette="2"] .design-lab__credit { border-top-color: rgba(255,255,255,0.12); }
.design-lab__credit-logo { position: relative; display: inline-flex; align-items: center; gap: 0.2em; font-weight: 700; font-size: 0.85rem; color: var(--color-heading); padding-right: 1em; transition: transform 0.25s var(--ease); }
.design-lab__credit-logo:hover { transform: scale(1.04); }
.design-lab__credit-dot { color: var(--color-accent); }
.design-lab__credit-spark { position: absolute; right: 0; bottom: 0.05em; width: 0.8em; height: 0.8em; color: var(--color-accent); transition: transform 0.5s var(--ease); }
.design-lab__credit-logo:hover .design-lab__credit-spark { animation: spark 0.8s var(--ease); }
@keyframes spark { 50% { transform: rotate(180deg) scale(1.4); } 100% { transform: rotate(360deg) scale(1); } }

@media (max-width: 600px) { .lab__panel { width: min(78vw, 280px); } }

/* ============================================================
   CERT LIST — "Faglig fundament" as a proper editable list.
   Separator lines + text colour come from CSS, so a newly
   added row always matches the others (no inline styling).
   ============================================================ */
.cert-list {
  list-style: none;
  padding: 0.4rem 1.6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  background: var(--color-surface);
}
.cert-list__item {
  padding: 0.7em 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: var(--text-base);
}
.cert-list__item:last-child { border-bottom: 0; }

/* ============================================================
   COLLAPSIBLE LIST — show a few items, fade out the rest behind a
   "Vis mer" button. Used by the Scene repertoire (data-collapsible="3").
   Admin always sees every item (collapse skipped for logged-in admin).
   ============================================================ */
.collapsible { position: relative; overflow: hidden; transition: max-height 0.55s var(--ease); }
.collapsible__fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: 2;
  background: linear-gradient(to bottom, transparent, var(--color-stage-bg));
  pointer-events: none; opacity: 0; transition: opacity 0.35s var(--ease);
}
.collapsible.is-collapsed .collapsible__fade { opacity: 1; }
.collapsible-more-wrap { text-align: center; margin-top: 1.6rem; position: relative; z-index: 3; }

/* ============================================================
   16. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.js-anim .reveal,
  body.js-anim .reveal[data-stagger] > *,
  body.js-anim [data-hero] > * { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
