/* ==========================================================================
   Ekdahl Media — designsystem
   Palett, typografi og komponenter for hele nettstedet.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonter (self-hostet variabel woff2 — ingen tredjepartskall)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Baloo 2";
  src: url("../fonts/baloo2-var.woff2") format("woff2-variations"),
       url("../fonts/baloo2-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/jakarta-var.woff2") format("woff2-variations"),
       url("../fonts/jakarta-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   2. Designtokens

   Kontrastnotat (WCAG 2.2 AA, se .claude/guidelines/wcag.md):
   --brand #1F95A1 gir 3,58:1 mot hvitt. Det består kravet på 3:1 for stor
   tekst, ikoner, rammer og flater — men IKKE 4,5:1 for vanlig tekst eller for
   hvit tekst på knapp. Derfor finnes --brand-deep (#157F8A → 4,74:1), som
   brukes til knappefyll og all merkefarget tekst under 24px.
   --brand-light er kun for mørk bakgrunn (7,15:1 mot --ink).
   -------------------------------------------------------------------------- */
:root {
  /* Merkevare */
  --brand:        #1f95a1;
  --brand-deep:   #157f8a;
  --brand-darker: #10646d;
  --brand-light:  #4fbeca;

  /* Nøytraler */
  --ink:      #232323;
  --ink-soft: #3a3a3a;
  --muted:    #666666;
  --bg:       #fafafa;
  --surface:  #ffffff;
  --tint:     #e8f4f5;
  --line:     #e4e4e4;
  --line-tint: #cfe6e9;

  /* Typografi */
  --font-display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;

  /* Flytende typeskala (min → maks mellom 360px og 1280px) */
  --step-xs: 0.8125rem;
  --step-sm: 0.9375rem;
  --step-0:  1rem;
  --step-1:  clamp(1.125rem, 0.30vw + 1.05rem, 1.3125rem);
  --step-2:  clamp(1.375rem, 0.65vw + 1.22rem, 1.75rem);
  --step-3:  clamp(1.75rem, 1.15vw + 1.47rem, 2.375rem);
  --step-4:  clamp(2.125rem, 2.05vw + 1.64rem, 3.25rem);
  --step-5:  clamp(2.5rem, 3.30vw + 1.72rem, 4.25rem);

  /* Rytme */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --measure: 68ch;
  --wrap: 1180px;
  --wrap-narrow: 760px;
  --section-y: clamp(4rem, 9vw, 7.5rem);

  /* Form */
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 12px;
  --r-pill: 999px;

  /* Dybde */
  --shadow-sm: 0 1px 2px rgba(35, 35, 35, .05), 0 2px 6px rgba(35, 35, 35, .04);
  --shadow-md: 0 2px 4px rgba(35, 35, 35, .04), 0 8px 24px rgba(35, 35, 35, .07);
  --shadow-lg: 0 4px 8px rgba(35, 35, 35, .05), 0 18px 44px rgba(35, 35, 35, .11);
  --shadow-brand: 0 6px 20px rgba(31, 149, 161, .28);

  /* Bevegelse */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: 220ms;
}

/* --------------------------------------------------------------------------
   3. Reset og basis
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p, ul, ol, dl, figure, blockquote, table { margin: 0 0 1.15rem; }
p { max-width: var(--measure); text-wrap: pretty; }

a { color: var(--brand-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-darker); }

img, svg, video, picture { max-width: 100%; height: auto; display: block; }

strong, b { font-weight: 700; }
small { font-size: var(--step-xs); }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--gutter) 0;
}

/* Synlig fokusindikator på alt interaktivt (WCAG 2.4.7) */
:focus-visible {
  outline: 3px solid var(--brand-deep);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

::selection { background: var(--brand); color: #fff; }

/* --------------------------------------------------------------------------
   4. Layoutprimitiver
   -------------------------------------------------------------------------- */
.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.section--tint { background: var(--tint); }
.section--surface { background: var(--surface); }
.section--dark {
  background: var(--ink);
  color: #fff;
}
.section--dark :is(h1, h2, h3, h4) { color: #fff; }
.section--dark p { color: rgba(255, 255, 255, .82); }
.section--dark a:not(.btn) { color: var(--brand-light); }

.stack > * + * { margin-top: var(--flow, 1.15rem); }

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

/* Seksjonsoverskrift */
.section-head {
  max-width: 62ch;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center p { margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--step-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: .85rem;
}
.section--dark .eyebrow { color: var(--brand-light); }

.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-soft);
}
.section--dark .lead { color: rgba(255, 255, 255, .86); }

/* Merkefarget nøkkelord i overskrifter — stort nok for 3:1 */
.hl { color: var(--brand-deep); }
.section--dark .hl { color: var(--brand-light); }

/* --------------------------------------------------------------------------
   5. Hopp-til-innhold
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); color: #fff; }

/* --------------------------------------------------------------------------
   6. Knapper
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand-deep);
  --btn-fg: #fff;
  --btn-bd: var(--brand-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .8rem 1.6rem;
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: var(--step-sm);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.btn:hover {
  --btn-bg: var(--brand-darker);
  --btn-bd: var(--brand-darker);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand);
}
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line);
}
.btn--ghost:hover {
  --btn-bg: var(--tint);
  --btn-fg: var(--brand-darker);
  --btn-bd: var(--brand);
  box-shadow: var(--shadow-sm);
}

.btn--on-dark {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
  --btn-bd: #fff;
}
.btn--on-dark:hover {
  --btn-bg: var(--tint);
  --btn-fg: var(--brand-darker);
  --btn-bd: var(--tint);
}

.btn--ghost-on-dark {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, .45);
}
.btn--ghost-on-dark:hover {
  --btn-bg: rgba(255, 255, 255, .1);
  --btn-fg: #fff;
  --btn-bd: #fff;
  box-shadow: none;
}

.btn--lg { min-height: 54px; padding: 1rem 2rem; font-size: var(--step-0); }
.btn--full { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  align-items: center;
}

/* Tekstlenke med pil */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 700;
  font-size: var(--step-sm);
  color: var(--brand-deep);
  text-decoration: none;
}
.arrow-link::after {
  content: "→";
  transition: transform var(--dur) var(--ease);
}
.arrow-link:hover { text-decoration: underline; }
.arrow-link:hover::after { transform: translateX(4px); }
.section--dark .arrow-link { color: var(--brand-light); }

/* --------------------------------------------------------------------------
   7. Header og navigasjon
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header[data-scrolled="true"] {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 12px rgba(35, 35, 35, .05);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}

.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 165px; height: auto; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: -.6rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: .35rem;
}
/* :not(.btn) er nødvendig — uten det overstyrer denne regelen .btn sin egen
   farge, og CTA-knappen i menyen ville fått mørk tekst på teal (3,3:1). */
.site-nav a:not(.btn) {
  display: block;
  padding: .6rem .7rem;
  border-radius: var(--r-sm);
  color: var(--ink);
  font-size: var(--step-sm);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.site-nav a:not(.btn):hover { color: var(--brand-darker); background: var(--tint); }
/* --brand-darker, ikke --brand-deep: på tint gir deep bare 4,2:1 mot kravet 4,5:1 */
.site-nav a:not(.btn)[aria-current="page"] { color: var(--brand-darker); background: var(--tint); }
.site-nav .btn { margin-left: .5rem; }

@media (max-width: 1100px) {
  .site-nav {
    position: fixed;
    inset: 74px 0 auto;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 1rem var(--gutter) 1.75rem;
    display: none;
  }
  .site-nav[data-open="true"] { display: block; animation: sheet-in 260ms var(--ease) both; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: .15rem; }
  .site-nav a { padding: .85rem .9rem; font-size: var(--step-0); }
  .site-nav .btn { margin: .75rem 0 0; width: 100%; }
}
@media (min-width: 1101px) {
  .nav-toggle { display: none; }
  .site-nav { display: block !important; }
}

@keyframes sheet-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 8vw, 6rem); }
.hero__grid {
  display: grid;
  gap: clamp(2.25rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
}
.hero h1 { margin-bottom: .45em; }
.hero__lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); max-width: 46ch; }

/* Etterprøvbart bevis øverst i heroen. Står før overskriften fordi tallet er
   det eneste konkurrentene ikke kan gjenta. */
.usp-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.15rem;
  padding: .5rem 1rem .5rem .7rem;
  border: 1px solid var(--line-tint);
  border-radius: var(--r-pill);
  background: var(--tint);
  color: var(--brand-darker);
  font-size: var(--step-sm);
  font-weight: 700;
  line-height: 1.3;
}
.usp-badge svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--brand-deep);
}
.usp-badge b { font-weight: 800; }

/* Nummererte USP-kort */
.usp-grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  counter-reset: usp;
}
.usp {
  position: relative;
  display: flex;
  flex-direction: column;
  counter-increment: usp;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 2.6vw, 2.1rem);
  box-shadow: var(--shadow-sm);
  transition: scale var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.usp:hover,
.usp:focus-within {
  scale: 1.05;
  box-shadow: var(--shadow-lg);
  border-color: var(--line-tint);
  z-index: 2;
}
.usp::before {
  content: counter(usp);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.15rem;
  border-radius: var(--r-pill);
  background: var(--tint);
  color: var(--brand-darker);
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 800;
  line-height: 1;
}
.usp h3 { margin-bottom: .5em; }
.usp p { color: var(--muted); font-size: var(--step-sm); margin-bottom: 0; }

/* Risikoavlastning rett under USP-ene — der innvendingen faktisk oppstår */
.risk-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.5rem, 3vw, 2.1rem);
  border: 1px solid var(--line-tint);
  border-radius: var(--r-lg);
  background: var(--tint);
}
.risk-strip p {
  margin: 0;
  max-width: 52ch;
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--ink);
}
.risk-strip .btn { flex: 0 0 auto; }

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.hero__proof div { min-width: 0; }
.hero__proof dt {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 800;
  color: var(--brand-deep);
  line-height: 1;
}
.hero__proof dd {
  margin: .35rem 0 0;
  font-size: var(--step-xs);
  color: var(--muted);
  line-height: 1.4;
}

/* På PC skal de tre punktene alltid stå på én linje. Uten dette brøt de til
   to linjer mellom ~900 og 1280 px, fordi tallet krevde mer plass enn
   spalten ga. Typen skalerer med bredden i stedet for å brekke. */
@media (min-width: 900px) {
  .hero__proof {
    flex-wrap: nowrap;
    gap: clamp(.9rem, 1.7vw, 1.75rem);
  }
  .hero__proof > div { flex: 1 1 0; min-width: 0; }
  .hero__proof dt { font-size: clamp(1.05rem, 1.9vw, 1.75rem); }
}

/* --------------------------------------------------------------------------
   9. Kort
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  box-shadow: var(--shadow-sm);
  transition: scale var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-bottom: .45em; }
/* En h2 inne i et kort er en underoverskrift, ikke en seksjonstittel —
   den skal ikke bære full seksjonsstørrelse. */
.card h2 { font-size: var(--step-2); margin-bottom: .5em; }
.card p { color: var(--muted); font-size: var(--step-sm); }

/* Vokser 5 % ved mouseover. z-index løfter kortet over naboene mens det
   vokser, ellers ville kanten skjult seg bak kortet ved siden av.
   :focus-within gir samme effekt for tastaturbrukere. */
.card:hover,
.card:focus-within {
  scale: 1.05;
  box-shadow: var(--shadow-lg);
  border-color: var(--line-tint);
  position: relative;
  z-index: 2;
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.15rem;
  border-radius: var(--r-md);
  background: var(--tint);
  color: var(--brand-deep);
}
.card__icon svg { width: 24px; height: 24px; }

/* Nummererte prosessteg */
.step { position: relative; padding-left: 3.6rem; }
.step__num {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--r-pill);
  background: var(--brand-deep);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
}

/* --------------------------------------------------------------------------
   10. Video — fasade som laster YouTube først ved klikk
       (ingen tredjeparts-cookies eller sporing før brukeren velger det)
   -------------------------------------------------------------------------- */
.video-card {
  background: var(--ink);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-facade {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--ink);
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.video-facade--vertical { aspect-ratio: 9 / 16; }

.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms var(--ease), opacity var(--dur) var(--ease);
}
.video-facade:hover img { transform: scale(1.035); }

.video-facade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(35, 35, 35, .05) 0%, rgba(35, 35, 35, .55) 100%);
  pointer-events: none;
}

.video-facade__play {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.video-facade__play svg { width: 26px; height: 26px; margin-left: 4px; }
.video-facade:hover .video-facade__play,
.video-facade:focus-visible .video-facade__play {
  transform: scale(1.08);
  background: var(--brand-deep);
}

.video-facade__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 1.5rem 1.35rem 1.15rem;
  color: #fff;
  font-weight: 600;
  font-size: var(--step-sm);
  text-align: left;
  line-height: 1.4;
}

.video-facade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  padding: 1rem 1.25rem 1.15rem;
  background: var(--ink);
  color: rgba(255, 255, 255, .75);
  font-size: var(--step-xs);
}
.video-caption strong { color: #fff; display: block; font-size: var(--step-sm); margin-bottom: .1rem; }

/* --------------------------------------------------------------------------
   10b. Videolightbox

   Bygget på native <dialog> + showModal(). Det gir topplag-rendering over alt
   annet, Escape-lukking, fokusflytting og inert bakgrunn uten egen kode.
   Inn- og utanimasjon krever @starting-style og `allow-discrete`, siden
   dialogen bytter display; nettlesere uten støtte får den bare umiddelbart.
   -------------------------------------------------------------------------- */
.lightbox {
  width: min(94vw, 1400px);
  max-width: min(94vw, 1400px);
  max-height: 94vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  color: #fff;

  opacity: 0;
  scale: .97;
  transition: opacity 240ms var(--ease), scale 240ms var(--ease),
              overlay 240ms var(--ease) allow-discrete,
              display 240ms var(--ease) allow-discrete;
}
.lightbox[open] { opacity: 1; scale: 1; }
@starting-style { .lightbox[open] { opacity: 0; scale: .97; } }

.lightbox::backdrop {
  background: rgba(18, 18, 18, .86);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 240ms var(--ease),
              overlay 240ms var(--ease) allow-discrete,
              display 240ms var(--ease) allow-discrete;
}
.lightbox[open]::backdrop { opacity: 1; }
@starting-style { .lightbox[open]::backdrop { opacity: 0; } }

/* Rammen holder 16:9 og krymper for å få plass til lukkeknapp og tekst */
/* Rammen tar videoens faktiske sideforhold, ikke en antatt 16:9. Uten dette
   fikk formater som verken er 16:9 eller 9:16 — f.eks. 1420x1080 — svarte
   felt på sidene. `--lb-ar` settes fra data-video-aspect ved åpning, og
   brukes både til aspect-ratio og til breddeberegningen, så videoen fyller
   den begrensende dimensjonen uansett format. */
.lightbox__frame {
  --lb-ar: 1.7778;                       /* 16:9 som utgangspunkt */
  --lb-chrome: 7rem;                     /* tittellinje + hint + luft */
  --lb-plass: calc(94vh - var(--lb-chrome));
  position: relative;
  aspect-ratio: var(--lb-ar);
  width: min(100%, var(--lb-plass) * var(--lb-ar));
  margin-inline: auto;
  background: #000;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
}

.lightbox__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.lightbox__bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
}
.lightbox__caption {
  margin: 0;
  max-width: none;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .6);
}

.lightbox__close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  padding: .55rem 1rem;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--step-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.lightbox__close:hover { background: rgba(255, 255, 255, .2); border-color: #fff; }
.lightbox__close svg { width: 16px; height: 16px; }

.lightbox__hint {
  margin: .7rem 0 0;
  max-width: none;
  text-align: center;
  font-size: var(--step-xs);
  color: rgba(255, 255, 255, .6);
}

/* Låser siden bak dialogen så den ikke ruller under videoen */
html:has(.lightbox[open]) { overflow: hidden; }

@media (max-width: 640px) {
  .lightbox__caption { font-size: var(--step-0); }
  .lightbox { width: 96vw; max-width: 96vw; max-height: 96vh; }
  /* Strammere ramme på telefon slik at en Short får nesten hele skjermen */
  .lightbox__frame { --lb-chrome: 5.5rem; }
  .lightbox__hint { margin-top: .5rem; }
}

/* --------------------------------------------------------------------------
   10c. Fotografier
   -------------------------------------------------------------------------- */
.photo-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.photo {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-sm);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: scale 420ms var(--ease);
}
.photo--tall img { aspect-ratio: 3 / 4; }
.photo--wide img { aspect-ratio: 16 / 9; }
.photo:hover img { scale: 1.04; }

.photo figcaption {
  padding: .75rem 1rem .9rem;
  font-size: var(--step-xs);
  color: rgba(255, 255, 255, .78);
}

/* Fullbreddebånd. Ligger utenfor .wrap, så det trengs ingen 100vw-triks —
   og dermed heller ingen risiko for horisontal rulling fra rullefeltet. */
/* Bredere enn brødteksten, men med luft ut til kantene — bildet skal være
   stort uten å gå helt i kant. Bakgrunnen ligger på bildet, ikke på figuren;
   lå den på figuren havnet bildeteksten på mørk flate med bare 2,7:1. */
.photo-band {
  width: min(94vw, 1560px);
  margin-inline: auto;
}
.photo-band img {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 72vh;
  object-fit: cover;
  background: var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.photo-band figcaption {
  padding-top: .9rem;
  font-size: var(--step-xs);
  color: var(--muted);
}
@media (max-width: 640px) {
  /* Høyere utsnitt på telefon, ellers blir båndet en tynn stripe */
  .photo-band img { aspect-ratio: 4 / 3; }
}

/* Portrett i full spaltebredde (Om meg) — mellom ingress og brødtekst */
.portrait-wide {
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  max-width: var(--wrap-narrow);
}
.portrait-wide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.portrait-wide figcaption {
  padding-top: .8rem;
  font-size: var(--step-xs);
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .photo:hover img { scale: none; }
}

/* --------------------------------------------------------------------------
   11. Priskort
   -------------------------------------------------------------------------- */
.price-grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  align-items: start;
}
@media (min-width: 760px)  { .price-grid { grid-template-columns: repeat(3, 1fr); } }

.price {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 2.6vw, 2.1rem);
  box-shadow: var(--shadow-sm);
  transition: scale var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.price:hover,
.price:focus-within {
  scale: 1.05;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.price--featured {
  border-color: var(--brand);
  border-width: 2px;
  box-shadow: var(--shadow-md);
}

.price__badge {
  position: absolute;
  top: -.85rem;
  left: clamp(1.6rem, 2.6vw, 2.1rem);
  background: var(--brand-deep);
  color: #fff;
  font-size: var(--step-xs);
  font-weight: 700;
  letter-spacing: .04em;
  padding: .3rem .8rem;
  border-radius: var(--r-pill);
}

.price__name {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  margin: 0 0 .2rem;
}
.price__kicker { font-size: var(--step-xs); color: var(--muted); margin: 0 0 1.15rem; }

.price__amount {
  display: flex;
  align-items: baseline;
  gap: .35rem;
  flex-wrap: wrap;
  padding-bottom: 1.15rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}
.price__amount b {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
}
.price__amount span { font-size: var(--step-xs); color: var(--muted); }

.price__list {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: grid;
  gap: .7rem;
  font-size: var(--step-sm);
}
.price__list li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--ink-soft);
}
.price__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: var(--r-pill);
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23157f8a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5'/%3E%3C/svg%3E") center / .8rem no-repeat;
}
.price__cta { margin-top: auto; }

/* Fotnotehenvisning. Stjernen er dekorativ; lenketeksten ligger skjult for
   skjermlesere, som ellers bare ville lest «stjerne». */
.fn-ref {
  position: relative;
  display: inline-block;
  padding: 0 .15rem;
  font-size: .7em;
  vertical-align: super;
  line-height: 1;
  color: var(--brand-deep);
  font-weight: 700;
  text-decoration: none;
}
/* Selve stjernen er bare ~12 px. Denne usynlige flaten løfter treffområdet
   til over 24×24 px (WCAG 2.2, 2.5.8) uten å endre layouten. */
.fn-ref::after {
  content: "";
  position: absolute;
  inset: -9px -7px;
}
.fn-ref:hover { color: var(--brand-darker); text-decoration: underline; }

.footnote {
  max-width: var(--measure);
  margin: 1.75rem 0 0;
  font-size: var(--step-xs);
  line-height: 1.6;
  color: var(--muted);
}
.footnote:target {
  background: var(--tint);
  border-radius: var(--r-sm);
  padding: .6rem .8rem;
  margin-inline: -.8rem;
}

/* --------------------------------------------------------------------------
   12. Faktabånd / statistikk
   -------------------------------------------------------------------------- */
.stat-band {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 800;
  line-height: 1;
  color: var(--brand);
}
.stat span { display: block; margin-top: .5rem; font-size: var(--step-sm); color: rgba(255, 255, 255, .8); }
.section--tint .stat b { color: var(--brand-deep); }
.section--tint .stat span { color: var(--muted); }

/* --------------------------------------------------------------------------
   13. Merkelapper
   -------------------------------------------------------------------------- */
.tag {
  display: inline-block;
  padding: .3rem .7rem;
  border-radius: var(--r-pill);
  background: var(--tint);
  color: var(--brand-darker);
  font-size: var(--step-xs);
  font-weight: 600;
}
.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }

/* --------------------------------------------------------------------------
   14. FAQ (native <details> — tastaturvennlig uten JS)
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: .75rem; }

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.faq details[open] { border-color: var(--line-tint); box-shadow: var(--shadow-sm); }

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.3;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: .15rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23157f8a' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M8 3v10M3 8h10'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--dur) var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq summary:hover { color: var(--brand-darker); }

.faq__body { padding: 0 1.3rem 1.3rem; }
.faq__body > :last-child { margin-bottom: 0; }
.faq__body p { color: var(--muted); font-size: var(--step-sm); }

/* --------------------------------------------------------------------------
   15. Skjema
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 1.15rem; }
.form__row { display: grid; gap: 1.15rem; }
@media (min-width: 620px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: .4rem; }
.field label { font-size: var(--step-sm); font-weight: 600; }
.field .hint { font-size: var(--step-xs); color: var(--muted); }
.req { color: var(--brand-darker); font-weight: 700; }

.field :is(input, select, textarea) {
  width: 100%;
  min-height: 50px;
  padding: .7rem .9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: var(--step-0);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field :is(input, select, textarea):hover { border-color: var(--line-tint); }
.field :is(input, select, textarea):focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 149, 161, .18);
}
.field :is(input, textarea)::placeholder { color: #9a9a9a; }

fieldset { border: 0; margin: 0; padding: 0; }
legend { font-size: var(--step-sm); font-weight: 600; padding: 0; margin-bottom: .4rem; }

.check {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: var(--step-sm);
  color: var(--muted);
}
.check input { width: 20px; height: 20px; min-height: 0; flex: 0 0 auto; margin-top: .2rem; accent-color: var(--brand-deep); }

/* Honeypot mot søppelpost — skjult for både syn og skjermleser */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note {
  font-size: var(--step-xs);
  color: var(--muted);
}

.form-status {
  padding: .9rem 1.1rem;
  border-radius: var(--r-sm);
  font-size: var(--step-sm);
  font-weight: 600;
}
.form-status[data-state="ok"]  { background: var(--tint); color: var(--brand-darker); border: 1px solid var(--line-tint); }
.form-status[data-state="err"] { background: #fdecec; color: #96231f; border: 1px solid #f3c9c7; }
.form-status:empty { display: none; }

/* --------------------------------------------------------------------------
   16. Kontaktdetaljer
   -------------------------------------------------------------------------- */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.15rem; }
.contact-list a { font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-list dt, .contact-list .k {
  font-size: var(--step-xs);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: .15rem;
}

/* --------------------------------------------------------------------------
   17. Portefølje
   -------------------------------------------------------------------------- */
/* Shorts vises stående og liggende videoer i 16:9, så kortene har svært ulik
   høyde. Grunnoppsettet er et vanlig rutenett: leserekkefølgen blir riktig,
   men lave kort etterlater tomrom i raden. JS måler kortene og setter
   `--span`, som pakker dem tett uten å endre rekkefølgen — spaltebasert flyt
   ville pakket like tett, men flyttet rekkefølgen nedover hver spalte. */
.work-grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  align-items: start;
}
/* `start` er avgjørende: med `stretch` ville kortet vokse til å fylle hele
   raddekningen og spise mellomrommet som er reservert i --span. */
.work-grid.is-masonry {
  align-items: start;
  grid-auto-rows: 8px;
  row-gap: 0;
}
.work-grid.is-masonry > * { grid-row: span var(--span, 40); }
.work-item { display: flex; flex-direction: column; }
.work-item .video-card { height: 100%; display: flex; flex-direction: column; }
.work-item .video-caption { margin-top: auto; }

/* --------------------------------------------------------------------------
   18. Brødsmuler
   -------------------------------------------------------------------------- */
.breadcrumb { padding-block: 1.15rem 0; }
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0;
  padding: 0;
  font-size: var(--step-xs);
  color: var(--muted);
}
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-deep); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   19. Fotnote / footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .74);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: var(--step-sm);
}
.site-footer__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}
.site-footer img { width: 175px; }
.site-footer h2 {
  font-size: var(--step-xs);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .09em;
  color: #fff;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p { color: rgba(255, 255, 255, .7); }

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(2.25rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: var(--step-xs);
  color: rgba(255, 255, 255, .6);
}
.site-footer__base p { margin: 0; color: inherit; }

.social-row { display: flex; gap: .6rem; }
.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.social-row a:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  transform: translateY(-2px);
}
.social-row svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   20. CTA-bånd
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--tint);
  border: 1px solid var(--line-tint);
  border-radius: var(--r-lg);
  padding: clamp(2rem, 4.5vw, 3.5rem);
  text-align: center;
}
.cta-band h2 { margin-bottom: .4em; }
.cta-band p { margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 1.75rem; }

/* --------------------------------------------------------------------------
   20a. Sammenligningstabell
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;              /* brede tabeller ruller i seg selv */
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.cmp {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: var(--step-sm);
}
.cmp caption {
  padding: 1.15rem 1.25rem .25rem;
  text-align: left;
  font-size: var(--step-xs);
  color: var(--muted);
}
.cmp :is(th, td) {
  padding: .95rem 1.25rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.cmp thead th {
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.cmp tbody th {
  font-weight: 600;
  color: var(--ink);
}
.cmp tbody tr:last-child :is(th, td) { border-bottom: 0; }
.cmp tbody tr:hover { background: var(--tint); }
.cmp td { color: var(--muted); }

/* Ja/nei-markør med tekst i tillegg til farge (WCAG 1.4.1) */
.mark { display: inline-flex; align-items: baseline; gap: .4rem; font-weight: 600; }
.mark--ja  { color: var(--brand-darker); }
.mark--nei { color: var(--muted); }
.mark::before { font-size: .95em; }
.mark--ja::before  { content: "✓"; }
.mark--nei::before { content: "✕"; }

/* --------------------------------------------------------------------------
   20b. Referansebanner (kontinuerlig rotasjon)
   -------------------------------------------------------------------------- */
.ref-marquee {
  position: relative;
  overflow: hidden;
  padding-block: .5rem;
  /* Toner ut mot kantene så båndet ikke stopper brått */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ref-marquee__track {
  display: flex;
  width: max-content;
  gap: clamp(.75rem, 2vw, 1.25rem);
  animation: ref-scroll 38s linear infinite;
}
.ref-marquee:hover .ref-marquee__track,
.ref-marquee:focus-within .ref-marquee__track { animation-play-state: paused; }

/* Sporet inneholder listen to ganger; -50 % gir et sømløst omslag */
@keyframes ref-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ref-marquee ul {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.ref-chip {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  white-space: nowrap;
  padding: .7rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.ref-chip::before {
  content: "";
  flex: 0 0 auto;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--brand);
}
.section--dark .ref-chip {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .16);
  color: #fff;
  box-shadow: none;
}
.section--dark .ref-chip::before { background: var(--brand-light); }

/* --------------------------------------------------------------------------
   20c. Referansesitater
   -------------------------------------------------------------------------- */
.quote {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 2.6vw, 2.1rem);
  box-shadow: var(--shadow-sm);
}
.quote blockquote {
  margin: 0 0 1.25rem;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink);
}
.quote blockquote::before { content: "\201C"; color: var(--brand); font-weight: 700; }
.quote blockquote::after  { content: "\201D"; color: var(--brand); font-weight: 700; }
.quote figcaption {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: var(--step-sm);
  color: var(--muted);
}
.quote figcaption b { display: block; color: var(--ink); }

/* Plassholder til referanser som ennå ikke er samlet inn */
.quote--tom {
  border-style: dashed;
  border-color: var(--line-tint);
  background: var(--tint);
  box-shadow: none;
}
.quote--tom p { color: var(--muted); font-size: var(--step-sm); }

/* --------------------------------------------------------------------------
   21. Mikroanimasjoner
   -------------------------------------------------------------------------- */
/* Innhold er synlig som standard. Først når JS har slått på `reveal-on`
   skjuler vi det for å kunne animere det inn — slik kan verken manglende
   eller feilende JavaScript etterlate en tom side. */
/* Bruker `translate` (egen egenskap), ikke `transform` — da kolliderer ikke
   inntoningen med `scale` på hover, som ellers ville tapt på spesifisitet. */
.reveal-on [data-reveal] {
  opacity: 0;
  translate: 0 18px;
  /* `scale` må stå her også — ellers arver kortene denne listen og
     hover-veksten hopper i stedet for å animere. */
  transition: opacity 620ms var(--ease), translate 620ms var(--ease),
              scale var(--dur) var(--ease);
  /* Trinnvis forsinkelse gjelder kun inntoningen — scale får 0 så hover
     svarer umiddelbart, ikke etter kortets innkomstforsinkelse. */
  transition-delay: var(--reveal-delay, 0ms), var(--reveal-delay, 0ms), 0ms;
}
.reveal-on [data-reveal].is-visible { opacity: 1; translate: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-on [data-reveal] { opacity: 1; transform: none; }
  /* Uten dette ville kortene fortsatt hoppe 5 % — bare uten overgang */
  .card:hover, .card:focus-within,
  .price:hover, .price:focus-within { scale: none; }
  .ref-marquee__track { animation: none; }
}

/* --------------------------------------------------------------------------
   22. Hjelpeklasser
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.flow-lg { --flow: 1.75rem; }

@media print {
  .site-header, .site-footer, .skip-link, .video-facade__play { display: none; }
  body { background: #fff; }
}
