/* =============================================================
   Økonomiledelse AS
   ============================================================= */

:root {
  /* Nordic minimal */
  --color-bg: #f9fafb;
  --color-navy: #111827;
  --color-gray: #4b5563;
  --color-muted: #6b7280;
  --color-white: #ffffff;
  --color-accent: #3b5b7e;
  --color-accent-gold: #3b5b7e;
  --color-purple: #3b5b7e;
  --color-soft-shape: #e5eaf0;
  --color-pale: #e5eaf0;
  --color-dark-mid: #1f2937;
  --color-line: rgba(17, 24, 39, 0.08);

  --font-heading:
    "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    Arial, system-ui, sans-serif;
  --font-body:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    Arial, system-ui, sans-serif;
  --font-brand:
    Georgia, "Times New Roman", "Iowan Old Style", "Apple Garamond",
    "Baskerville", serif;

  --container-max: 1500px;
  --container-pad: 48px;

  /* Radius: skarpere, fortsatt premium (ikke bubble-UI) */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 14px;

  --shadow-soft: 0 16px 40px -12px rgba(17, 24, 39, 0.14);
  --shadow-card: 0 2px 8px -2px rgba(17, 24, 39, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Myk vertikal innfade øverst på regneark-dekor (kombineres med radial mask) */
  --grid-dekor-mask-fade-top: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.04) 6%,
    rgba(0, 0, 0, 0.11) 11%,
    rgba(0, 0, 0, 0.42) 18%,
    rgba(0, 0, 0, 0.88) 26%,
    #000 34%,
    #000 100%
  );
}

/* --- Reset --- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

section[id],
.scroll-target[id] {
  scroll-margin-top: 96px;
}

.scroll-target:not(section) {
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
}

/* Rolle reveal (html får .js via tidlig inline-script; uten js ingen skjuling) */
html.js .reveal {
  transition:
    opacity 700ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  html.js .reveal:not(.is-visible) {
    opacity: 0;
    transform: translateY(22px);
    will-change: opacity, transform;
  }

  html.js .reveal.is-visible {
    will-change: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    transition: none;
  }

  html.js .reveal:not(.is-visible) {
    opacity: 1;
    transform: none;
    will-change: auto;
  }
}

ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

body {
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-navy);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:focus-visible {
  outline: 2px solid var(--color-purple);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   Header
   ============================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  height: 76px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* Logo */

.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  line-height: 1.25;
  min-width: 0;
}

.brand-mark {
  display: block;
  flex-shrink: 0;
  width: auto;
  height: clamp(28px, 4.2vw, 36px);
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-brand);
  font-size: 17.5px;
  font-weight: 400;
  color: var(--color-navy);
}

.brand-person {
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: 1px;
}

/* Desktop nav */

.main-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  display: inline-block;
  padding: 7px 16px;
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.015em;
  color: var(--color-muted);
  border-radius: calc(var(--radius-xs) - 2px);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-navy);
  background: rgba(17, 24, 39, 0.04);
}

/* Header actions */

.header-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Knapper */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn-primary {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-purple);
}

.header-cta {
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

/* Hamburger */

.hamburger {
  width: 40px;
  height: 40px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-line);
  background: var(--color-white);
}

.hamburger-bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobilmeny */

.mobile-menu {
  padding: 20px var(--container-pad) 28px;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-line);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.mobile-nav-link {
  display: block;
  padding: 14px 0;
  font-size: 17px;
  color: var(--color-navy);
  border-bottom: 1px solid var(--color-line);
  transition: color 0.2s var(--ease);
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
  color: var(--color-purple);
}

.mobile-cta {
  width: 100%;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

/* =============================================================
   Hero
   ============================================================= */

.hero {
  position: relative;
  padding-top: clamp(28px, 3vh, 48px);
  padding-bottom: clamp(48px, 6vh, 72px);
}

/* Dekorform */

.hero-bg-shape {
  position: absolute;
  z-index: 0;
  top: -160px;
  left: -260px;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(229, 234, 240, 0.55) 0%,
    rgba(229, 234, 240, 0) 70%
  );
  filter: blur(60px);
  opacity: 1;
  pointer-events: none;
}

/* Subtilt regneark-dekor (kun linjer, rektangulære celler) */

.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 4%;
  right: max(0px, calc((100% - var(--container-max)) / 2 + var(--container-pad) - 24px));
  width: min(54%, 640px);
  height: min(68%, 520px);
  pointer-events: none;
  --hero-grid-col: 118px;
  --hero-grid-row: 34px;
  --hero-grid-line: rgba(59, 91, 126, 0.14);
  background-image:
    repeating-linear-gradient(
      to right,
      var(--hero-grid-line) 0,
      var(--hero-grid-line) 1px,
      transparent 1px,
      transparent var(--hero-grid-col)
    ),
    repeating-linear-gradient(
      to bottom,
      var(--hero-grid-line) 0,
      var(--hero-grid-line) 1px,
      transparent 1px,
      transparent var(--hero-grid-row)
    );
  -webkit-mask-image: var(--grid-dekor-mask-fade-top),
    radial-gradient(
      ellipse 88% 78% at 68% 32%,
      #000 18%,
      rgba(0, 0, 0, 0.55) 48%,
      transparent 74%
    );
  mask-image: var(--grid-dekor-mask-fade-top),
    radial-gradient(
      ellipse 88% 78% at 68% 32%,
      #000 18%,
      rgba(0, 0, 0, 0.55) 48%,
      transparent 74%
    );
  mask-composite: intersect;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 55% 1fr;
  column-gap: 56px;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* --- Venstre: tekst --- */

.hero-text {
  min-width: 0;
}

.hero-eyebrow {
  display: block;
  margin-bottom: 20px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-accent-gold) 24%, var(--color-muted));
}

.hero-heading {
  max-width: 820px;
  margin-bottom: 24px;
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(2.5rem, 3.6vw + 0.5rem, 4.8rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--color-purple);
}

.hero-heading-rest {
  display: block;
  margin-top: 0.06em;
  font-weight: 300;
  letter-spacing: -0.025em;
}

/* Rotator */

.rotator {
  display: grid;
  position: relative;
  align-items: start;
  min-height: 1.26em;
  padding: 0.07em 0 0.09em;
  overflow: hidden;
  line-height: 1.1;
}

.rotator-sizer,
.rotator-slot {
  grid-area: 1 / 1;
}

.rotator-sizer {
  visibility: hidden;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--color-navy);
  pointer-events: none;
  user-select: none;
}

.rotator-slot {
  position: relative;
  z-index: 1;
  display: block;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--color-navy);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.rotator-slot.is-out {
  opacity: 0;
  transform: translateY(-0.22em);
}

.rotator-slot.is-in {
  opacity: 0;
  transform: translateY(0.22em);
}

@media (prefers-reduced-motion: reduce) {
  .rotator-slot {
    transition: none;
    transform: none !important;
  }
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 28px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--color-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.btn-lg {
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.btn-secondary {
  background: transparent;
  color: var(--color-navy);
  border-color: transparent;
  padding-left: 4px;
  padding-right: 4px;
  text-decoration: underline;
  text-decoration-color: rgba(17, 24, 39, 0.2);
  text-underline-offset: 4px;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  text-decoration-color: color-mix(in srgb, var(--color-accent-gold) 40%, var(--color-navy));
  color: var(--color-navy);
  background: transparent;
}

/* --- Høyre: portrett --- */

.hero-media {
  position: relative;
  min-width: 0;
}

.hero-portrait {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.hero-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: clamp(360px, 50vh, 520px);
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 28px -12px rgba(17, 24, 39, 0.15);
}

.hero-credentials {
  max-width: 380px;
  margin: 14px auto 0;
  padding-top: 2px;
  text-align: left;
}

.hero-credentials-name {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-navy);
  line-height: 1.3;
}

.hero-credentials-line {
  margin: 0;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--color-muted);
}

.hero-credentials-line + .hero-credentials-line {
  margin-top: 2px;
}

.is-section-hidden,
.is-section-hidden.scroll-target {
  display: none !important;
}

/* =============================================================
   Intro (mørk statement)
   ============================================================= */

.intro {
  position: relative;
  background: linear-gradient(170deg, #1f2937 0%, var(--color-navy) 100%);
  padding: 88px 0 96px;
  border-radius: 0;
  overflow: hidden;
}

.intro::after {
  content: "";
  position: absolute;
  bottom: -200px;
  right: -160px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(59, 91, 126, 0.12) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.intro-container {
  position: relative;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  column-gap: 56px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  align-items: start;
}

.intro-label {
  margin: 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-accent-gold) 55%, rgba(255, 255, 255, 0.36));
  padding-top: 6px;
}

.intro-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.intro-body p {
  font-family: var(--font-heading);
  font-size: clamp(18px, 1.4vw + 0.5rem, 28px);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.75);
  max-width: 780px;
}

/* Om Økonomiledelse AS: kompakt, typografi nær Om meg */
#om-morten {
  padding: 64px 0 72px;
}

#om-morten .intro-body {
  gap: 18px;
}

#om-morten .intro-body p {
  font-size: clamp(17px, 1.1vw + 0.4rem, 25px);
  line-height: 1.56;
}

@media (min-width: 901px) {
  #om-morten .intro-container {
    grid-template-columns: minmax(140px, 11rem) minmax(0, 1fr);
    column-gap: clamp(40px, 5vw, 80px);
  }

  #om-morten .intro-body {
    max-width: none;
  }

  #om-morten .intro-body p {
    max-width: min(1000px, 100%);
  }
}

/* Om meg: venstreorientert, bredere tekst */
#om-meg {
  padding-bottom: 72px;
}

#om-meg::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(140px, 22vh);
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(17, 24, 39, 0.45) 48%,
    #111827 100%
  );
  pointer-events: none;
}

#om-meg .intro-container {
  z-index: 2;
  grid-template-columns: minmax(120px, 10rem) minmax(0, 1fr);
  column-gap: clamp(32px, 4vw, 64px);
  justify-items: start;
}

#om-meg .intro-body {
  width: 100%;
  max-width: none;
}

#om-meg .intro-body p {
  max-width: min(920px, 100%);
  font-size: clamp(17px, 1.1vw + 0.4rem, 25px);
  line-height: 1.56;
}

/* Myk overgang Om meg → Kontakt */
#om-meg + .contact {
  padding-top: 56px;
  background: linear-gradient(180deg, #1a2433 0%, #1f2937 14%, #111827 42%, #111827 100%);
  border-top: 1px solid rgba(59, 91, 126, 0.14);
}

@media (min-width: 901px) {
  #om-meg .intro-container {
    grid-template-columns: minmax(130px, 11rem) minmax(0, 1fr);
    column-gap: clamp(36px, 4.5vw, 72px);
  }

  #om-meg .intro-body p {
    max-width: min(960px, 100%);
  }

  #om-meg + .contact {
    padding-top: 48px;
  }

  #om-meg + .contact .contact-container {
    margin-top: -20px;
  }
}

/* =============================================================
   Services (tabs)
   ============================================================= */

.services {
  padding: 112px 0 120px;
  background: var(--color-bg);
}

.services-container {
  position: relative;
  z-index: 0;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* Regneark-dekor: kun overskrift/ingress/tabs-område, øvre høyre, bak innhold */

.services-container::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: clamp(-168px, -11vw, -96px);
  right: 0;
  width: min(46%, 420px);
  height: clamp(416px, calc(32vw + 168px), 504px);
  pointer-events: none;
  --services-top-grid-col: 118px;
  --services-top-grid-row: 36px;
  --services-top-grid-line: rgba(59, 91, 126, 0.115);
  background-image:
    repeating-linear-gradient(
      to right,
      var(--services-top-grid-line) 0,
      var(--services-top-grid-line) 1px,
      transparent 1px,
      transparent var(--services-top-grid-col)
    ),
    repeating-linear-gradient(
      to bottom,
      var(--services-top-grid-line) 0,
      var(--services-top-grid-line) 1px,
      transparent 1px,
      transparent var(--services-top-grid-row)
    );
  -webkit-mask-image: var(--grid-dekor-mask-fade-top),
    radial-gradient(
      ellipse 115% 92% at 98% 4%,
      #000 12%,
      rgba(0, 0, 0, 0.52) 46%,
      transparent 76%
    );
  mask-image: var(--grid-dekor-mask-fade-top),
    radial-gradient(
      ellipse 115% 92% at 98% 4%,
      #000 12%,
      rgba(0, 0, 0, 0.52) 46%,
      transparent 76%
    );
  mask-composite: intersect;
}

.services-header,
.tabs,
.panel-wrapper {
  position: relative;
  z-index: 1;
}

.services-header {
  max-width: 720px;
  margin-bottom: 56px;
}

.services-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2rem, 2.6vw + 0.5rem, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.services-intro {
  max-width: none;
}

@media (min-width: 1025px) {
  .services-header {
    max-width: 920px;
  }

  .services-title {
    white-space: nowrap;
  }
}

.services-lead {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--color-navy);
  margin-bottom: 14px;
}

.services-intro p:not(.services-lead) {
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.68;
  color: var(--color-muted);
  margin-bottom: 12px;
}

.services-intro p:last-child {
  margin-bottom: 0;
}

/* Scroll-progress heading: ord "popper opp" venstre→høyre */
[data-scroll-heading] .scroll-heading__line {
  display: block;
}

html.js-scroll-heading [data-scroll-heading].scroll-heading--ready .scroll-heading__word {
  display: inline-block;
  vertical-align: baseline;
  opacity: calc(0.22 + var(--word-progress, 0) * 0.78);
  transform: translate3d(0, calc((1 - var(--word-progress, 0)) * 0.35em), 0);
  color: rgba(17, 24, 39, calc(0.28 + var(--word-progress, 0) * 0.72));
  will-change: opacity, transform;
}

@media (prefers-reduced-motion: reduce) {
  html.js-scroll-heading [data-scroll-heading].scroll-heading--ready .scroll-heading__word {
    opacity: 1;
    transform: none;
    color: inherit;
    will-change: auto;
  }
}

/* Diskret gull-linje over lys seksjonstitler (visuell tråd) */

.services-title::before,
.experience-title::before,
.scenarios-title::before,
.faq-title::before {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  margin-bottom: 10px;
  background: color-mix(in srgb, var(--color-accent-gold) 42%, transparent);
  border-radius: 1px;
}

/* Tabs */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.services .tabs {
  overflow-x: clip;
}

.tab {
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-purple);
  background: transparent;
  border: 1px solid rgba(17, 24, 39, 0.1);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.tab:hover {
  background: var(--color-white);
  border-color: rgba(17, 24, 39, 0.15);
}

.tab.is-active {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

/* Tjeneste-tabs: staggered slide-in fra venstre (kun knappene) */

@keyframes tab-slide-in {
  from {
    opacity: 0;
    transform: translate3d(calc(-1 * min(45vw, 420px)), 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

html.js .services .tabs .tab {
  opacity: 0;
  transform: translate3d(calc(-1 * min(45vw, 420px)), 0, 0);
}

html.js .services .tabs.is-tabs-visible .tab {
  animation: tab-slide-in 780ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

html.js .services .tabs.is-tabs-visible .tab:nth-child(1) { animation-delay: 0ms; }
html.js .services .tabs.is-tabs-visible .tab:nth-child(2) { animation-delay: 100ms; }
html.js .services .tabs.is-tabs-visible .tab:nth-child(3) { animation-delay: 200ms; }
html.js .services .tabs.is-tabs-visible .tab:nth-child(4) { animation-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  html.js .services .tabs .tab {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Tjenestekort: carousel-wrapper (mobil) / aktiv slide (desktop) */

.services-carousel {
  width: 100%;
}

.services-carousel-track {
  display: block;
  min-height: inherit;
}

.service-slide {
  min-height: inherit;
}

/* Panel wrapper */

.panel-wrapper {
  --service-scroll-scale: 1;
  --service-scroll-opacity: 1;
  --service-scroll-y: 0px;
  display: block;
  background: linear-gradient(165deg, #1f2937 0%, #111827 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 28px -12px rgba(17, 24, 39, 0.1);
  min-height: 480px;
}

/* Full-bleed: kun kortet bryter ut av containeren — header/tabs forblir inne */

@media (min-width: 1025px) {
  .panel-wrapper {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .services-carousel,
  .services-carousel-track {
    display: block;
    width: 100%;
    min-height: 480px;
  }

  .service-slide {
    display: none;
    grid-template-columns: 320px 1fr;
    width: 100%;
    min-height: 480px;
    background: linear-gradient(165deg, #1f2937 0%, #111827 100%);
    border-radius: inherit;
    overflow: hidden;
    box-shadow: none;
  }

  .service-slide.is-active {
    display: grid;
  }
}

/* Nettbrett: horisontal carousel med peek på begge sider (som mobil, litt smalere kort) */
@media (min-width: 769px) and (max-width: 1024px) {
  .panel-wrapper {
    display: block;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    min-height: 0;
  }

  .services-carousel {
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    padding: 4px calc((100% - 76vw) / 2) 8px;
  }

  .services-carousel::-webkit-scrollbar {
    display: none;
  }

  .services-carousel-track {
    display: flex;
    align-items: stretch;
    gap: 16px;
    min-height: 0;
  }

  .service-slide {
    flex: 0 0 76vw;
    max-width: 76vw;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    background: linear-gradient(165deg, #1f2937 0%, #111827 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 22px -14px rgba(17, 24, 39, 0.35);
    transform: scale(0.94);
    opacity: 0.58;
    filter: saturate(0.88);
    transition:
      transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      filter 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
  }

  .service-slide.is-active {
    transform: scale(1);
    opacity: 1;
    filter: none;
    box-shadow: 0 8px 28px -16px rgba(17, 24, 39, 0.45);
  }

  .service-slide .panel[hidden] {
    display: block !important;
  }

  .service-slide .panel.is-fading {
    opacity: 1;
  }

  .panel-visual {
    aspect-ratio: 16 / 9;
    border-radius: 0;
  }

  .panel-content {
    padding: 28px 28px 32px;
  }

  @media (prefers-reduced-motion: reduce) {
    .services-carousel {
      scroll-behavior: auto;
    }

    .service-slide {
      transition: none;
    }
  }
}

@media (max-width: 900px) {
  .panel-wrapper {
    width: calc(100% + 2 * var(--container-pad));
    max-width: none;
    margin-left: calc(-1 * var(--container-pad));
    margin-right: calc(-1 * var(--container-pad));
  }
}

/* Scroll-drevet scale — styrt av JS via CSS-variabler (ingen reveal) */

html.js .panel-wrapper.service-scroll-active {
  transform: translate3d(0, var(--service-scroll-y, 0px), 0) scale(var(--service-scroll-scale, 1));
  transform-origin: center center;
  transition: none;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  html.js .panel-wrapper.service-scroll-active {
    transform: none;
    will-change: auto;
  }
}

/* Visual area (left) */

.panel-visual {
  position: relative;
  background: #111827;
  overflow: hidden;
}

.panel-visual-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  border-radius: var(--radius-md);
  transition: opacity 0.3s var(--ease);
}

.panel-visual-img.is-fading {
  opacity: 0;
}

/* Budsjett og prognoser: samme bildeavrunding som øvrige kort */
.service-slide[data-service-index="2"] .panel-visual-img {
  object-position: 78% 40%;
}

/* Panel content */

.panel-content {
  padding: 56px 60px;
  position: relative;
  overflow: hidden;
}

/* Stor sirkel (delvis utenfor kant), nederst til høyre i mørkt panel — samme fargefamilie */

.panel-content::before {
  content: "";
  position: absolute;
  z-index: 0;
  bottom: -18%;
  right: -11%;
  width: min(48vw, 440px);
  height: min(48vw, 440px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 58% 42%, rgba(59, 91, 126, 0.07) 0%, transparent 55%),
    radial-gradient(circle at 32% 35%, rgba(59, 91, 126, 0.36) 0%, rgba(59, 91, 126, 0.1) 46%, transparent 68%);
  pointer-events: none;
  opacity: 0.55;
}

.panel-content > .panel {
  position: relative;
  z-index: 1;
}

.panel {
  transition: opacity 0.35s var(--ease);
}

.panel[hidden] {
  display: none;
}

.panel.is-fading {
  opacity: 0;
}

.panel-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.5rem, 1.8vw + 0.4rem, 2.2rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-bottom: 20px;
}

.panel-text {
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.6);
  max-width: 560px;
  margin-bottom: 28px;
}

.panel-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.panel-list li {
  font-size: 14px;
  font-weight: 450;
  color: rgba(255, 255, 255, 0.72);
  padding-left: 16px;
  position: relative;
  line-height: 1.55;
}

.panel-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-accent-gold) 40%, rgba(255, 255, 255, 0.22));
}

/* CTA inside panel (solid light button on dark panel — scoped via .panel-cta) */

.panel-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  background: #f9fafb;
  color: #111827;
  border: 1px solid rgba(17, 24, 39, 0.09);
  border-radius: var(--radius-xs);
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: none;
  text-decoration: none;
  transition:
    background 0.22s var(--ease),
    border-color 0.22s var(--ease),
    color 0.22s var(--ease),
    transform 0.22s var(--ease);
}

.panel-cta:hover {
  background: #e5eaf0;
  border-color: color-mix(in srgb, var(--color-accent-gold) 32%, rgba(17, 24, 39, 0.14));
  color: #111827;
  transform: translateY(-1px);
}

.panel-cta:focus-visible {
  outline: 2px solid rgba(255, 252, 248, 0.98);
  outline-offset: 3px;
  background: #f9fafb;
  color: #111827;
  border-color: rgba(17, 24, 39, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .panel,
  .panel-visual-img,
  .panel-cta {
    transition: none;
  }

  .panel-cta:hover,
  .panel-cta:focus-visible {
    transform: none;
  }
}

/* =============================================================
   Scenarios (illustrative examples — not customer testimonials)
   ============================================================= */

.scenarios {
  position: relative;
  padding: 88px 0 72px;
  background: var(--color-bg);
  overflow-x: hidden;
}

/* Samme regneark-dekor som .hero::after — i lyse området til høyre for sitatboksen */

.scenarios::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: clamp(-168px, calc(11vw - 268px), 20px);
  right: max(0px, calc((100% - var(--container-max)) / 2 + var(--container-pad) + 28px));
  width: min(54%, 660px);
  height: min(82%, 780px);
  pointer-events: none;
  --hero-grid-col: 118px;
  --hero-grid-row: 34px;
  --hero-grid-line: rgba(59, 91, 126, 0.14);
  background-image:
    repeating-linear-gradient(
      to right,
      var(--hero-grid-line) 0,
      var(--hero-grid-line) 1px,
      transparent 1px,
      transparent var(--hero-grid-col)
    ),
    repeating-linear-gradient(
      to bottom,
      var(--hero-grid-line) 0,
      var(--hero-grid-line) 1px,
      transparent 1px,
      transparent var(--hero-grid-row)
    );
  /* Lengre, mildere vertikal innfade i toppen — kun scenarios */
  -webkit-mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.02) 9%,
      rgba(0, 0, 0, 0.07) 16%,
      rgba(0, 0, 0, 0.16) 24%,
      rgba(0, 0, 0, 0.35) 34%,
      rgba(0, 0, 0, 0.62) 44%,
      rgba(0, 0, 0, 0.9) 54%,
      #000 64%,
      #000 100%
    ),
    radial-gradient(
      ellipse 88% 78% at 68% 24%,
      #000 18%,
      rgba(0, 0, 0, 0.55) 48%,
      transparent 74%
    );
  mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.02) 9%,
      rgba(0, 0, 0, 0.07) 16%,
      rgba(0, 0, 0, 0.16) 24%,
      rgba(0, 0, 0, 0.35) 34%,
      rgba(0, 0, 0, 0.62) 44%,
      rgba(0, 0, 0, 0.9) 54%,
      #000 64%,
      #000 100%
    ),
    radial-gradient(
      ellipse 88% 78% at 68% 24%,
      #000 18%,
      rgba(0, 0, 0, 0.55) 48%,
      transparent 74%
    );
  mask-composite: intersect;
}

.scenarios-container {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.scenarios-header {
  max-width: 640px;
  margin-bottom: 40px;
}

.scenarios-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.75rem, 2vw + 0.4rem, 2.5rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--color-navy);
  margin-bottom: 10px;
}

.scenarios-intro {
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.68;
  color: var(--color-muted);
}

.scenarios-carousel {
  max-width: 920px;
}

.scenarios-stage {
  position: relative;
  background: #111827;
  border-radius: var(--radius-lg);
  padding: 40px 48px 36px;
  overflow: hidden;
  box-shadow: 0 4px 28px -14px rgba(17, 24, 39, 0.22);
}

.scenarios-viewport {
  position: relative;
  min-height: 10rem;
}

.scenarios-track {
  display: grid;
  grid-template-areas: "slide";
}

.scenarios-slide {
  grid-area: slide;
  margin: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.62s cubic-bezier(0.45, 0, 0.22, 1), visibility 0.62s;
}

.scenarios-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.scenarios-slide[hidden] {
  display: block;
}

.scenarios-quote-mark {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.25rem, 4.8vw, 4.5rem);
  line-height: 0.85;
  font-weight: 400;
  color: #3b5b7e;
  margin: 0 0 22px;
  pointer-events: none;
  user-select: none;
}

.scenarios-blockquote {
  margin: 0;
  padding: 4px 0 4px 28px;
  border-left: 3px solid #3b5b7e;
  max-width: 42rem;
}

.scenarios-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 1.15vw + 0.7rem, 1.85rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  letter-spacing: -0.012em;
  color: #ffffff;
  margin: 0;
}

.scenarios-attribution {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding: 0;
  border: 0;
}

.scenarios-attribution-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b5b7e;
}

.scenarios-attribution-icon svg {
  display: block;
}

.scenarios-attribution-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.scenarios-attribution-label {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.scenarios-attribution-detail {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #9ca3af;
}

.scenarios-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.scenarios-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scenarios-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(17, 24, 39, 0.14);
  cursor: pointer;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}

.scenarios-dot:hover {
  background: color-mix(in srgb, var(--color-accent-gold) 38%, rgba(17, 24, 39, 0.22));
}

.scenarios-dot.is-active {
  background: color-mix(in srgb, var(--color-accent-gold) 72%, rgba(17, 24, 39, 0.2));
  transform: scale(1.15);
}

.scenarios-disclaimer {
  margin-top: 24px;
  max-width: 52rem;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(107, 114, 128, 0.85);
}

@media (prefers-reduced-motion: reduce) {
  .scenarios-slide {
    transition: none;
  }

  .scenarios-dot {
    transition: none;
  }

  .scenarios-dot.is-active {
    transform: none;
  }
}

/* =============================================================
   Contact
   ============================================================= */

.contact {
  position: relative;
  padding: 96px 0 112px;
  background: linear-gradient(165deg, #1f2937 0%, #111827 100%);
  color: rgba(255, 255, 255, 0.88);
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -120px;
  left: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(59, 91, 126, 0.22) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

/* Samme formspråk som .footer-deco — nedre venstre, stor myk masse (speilet plassering) */

.contact::after {
  content: "";
  position: absolute;
  z-index: 0;
  bottom: -18%;
  left: -8%;
  top: auto;
  right: auto;
  width: min(52vw, 620px);
  height: min(72vw, 780px);
  border-radius: 38% 62% 54% 46% / 48% 42% 58% 52%;
  background:
    radial-gradient(ellipse at 62% 48%, rgba(59, 91, 126, 0.08) 0%, transparent 68%),
    radial-gradient(
      ellipse at 35% 40%,
      rgba(59, 91, 126, 0.42) 0%,
      rgba(59, 91, 126, 0.12) 45%,
      transparent 72%
    );
  pointer-events: none;
  opacity: 0.9;
}

.contact-container {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 56px 64px;
  align-items: start;
}

.contact-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-accent-gold) 48%, rgba(255, 255, 255, 0.4));
  margin-bottom: 16px;
}

.contact-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.65rem, 1.5vw + 0.55rem, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--color-white);
  margin-bottom: 20px;
  max-width: 22ch;
}

.contact-lead,
.contact-reassure {
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.68);
  max-width: 38rem;
}

.contact-reassure {
  margin-top: 18px;
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
}

.contact-meta {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-meta-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px 20px;
  align-items: baseline;
  font-size: 14px;
  line-height: 1.45;
}

.contact-meta-row dt {
  font-weight: 500;
  letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--color-accent-gold) 28%, rgba(255, 255, 255, 0.46));
}

.contact-meta-row dd {
  color: rgba(255, 255, 255, 0.88);
}

.contact-meta-value {
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.02em;
}

.contact-panel {
  background: #f9fafb;
  border-radius: var(--radius-lg);
  padding: 36px 40px 40px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 24px 48px -28px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-error-summary {
  font-size: 14px;
  line-height: 1.5;
  color: #5c1f28;
  background: rgba(255, 240, 242, 0.95);
  border: 1px solid rgba(92, 31, 40, 0.18);
  border-radius: var(--radius-xs);
  padding: 12px 14px;
  margin-bottom: 20px;
}

.contact-success {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.55;
  color: #1a3d2e;
  background: rgba(232, 248, 240, 0.98);
  border: 1px solid rgba(26, 61, 46, 0.15);
  border-radius: var(--radius-xs);
  padding: 14px 16px;
  margin-top: 20px;
  outline: none;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
}

.contact-success.is-visible {
  animation: contact-success-in 380ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes contact-success-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.contact-success-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  color: #2d6a4f;
}

.contact-success-text {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

@media (prefers-reduced-motion: reduce) {
  .contact-success.is-visible {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-field--hidden {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.contact-field-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-navy);
}

.contact-req {
  text-decoration: none;
  font-weight: 600;
  color: rgba(59, 91, 126, 0.75);
  font-variant-numeric: normal;
}

.contact-input,
.contact-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
  color: var(--color-navy);
  background-color: #f9fafb;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: var(--radius-xs);
  padding: 11px 14px;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.contact-select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
  color: var(--color-navy);
  background-color: #f9fafb;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: var(--radius-xs);
  padding: 11px 14px;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' viewBox='0 0 12 8'%3E%3Cpath stroke='%23111827' stroke-opacity='0.45' stroke-width='1.2' stroke-linecap='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.contact-textarea {
  min-height: 112px;
  resize: vertical;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: rgba(107, 114, 128, 0.55);
}

.contact-input:hover,
.contact-select:hover,
.contact-textarea:hover {
  border-color: rgba(17, 24, 39, 0.18);
}

.contact-input:focus,
.contact-textarea:focus {
  outline: none;
  border-color: rgba(59, 91, 126, 0.45);
  box-shadow: 0 0 0 3px rgba(59, 91, 126, 0.12);
  background-color: var(--color-white);
}

.contact-select:focus {
  outline: none;
  border-color: rgba(59, 91, 126, 0.45);
  box-shadow: 0 0 0 3px rgba(59, 91, 126, 0.12);
  background-color: var(--color-white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' viewBox='0 0 12 8'%3E%3Cpath stroke='%23111827' stroke-opacity='0.45' stroke-width='1.2' stroke-linecap='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.contact-input[aria-invalid="true"],
.contact-textarea[aria-invalid="true"] {
  border-color: rgba(140, 45, 60, 0.55);
  background: #fffafb;
}

.contact-field-msg {
  font-size: 13px;
  line-height: 1.4;
  color: #7a2834;
  margin: 0;
}

.contact-form-note {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--color-muted);
  margin: 4px 0 0;
}

.contact-submit {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 12px 28px;
  border-radius: var(--radius-xs);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-white);
  background: var(--color-navy);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.contact-submit:hover {
  background: var(--color-purple);
}

.contact-submit:focus-visible {
  outline: 2px solid rgba(255, 252, 248, 0.95);
  outline-offset: 3px;
}

.contact-submit:active {
  transform: translateY(1px);
}

/* =============================================================
   FAQ
   ============================================================= */

.faq {
  position: relative;
  padding: 88px 0 104px;
  background: #f9fafb;
  overflow-x: hidden;
}

/* Samme regneark-dekor som .hero::after (rektangulære celler, kun linjer) */

.faq::after {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: 6%;
  right: max(0px, calc((100% - var(--container-max)) / 2 + var(--container-pad) - 28px));
  width: min(44%, 540px);
  height: min(54%, 600px);
  pointer-events: none;
  --hero-grid-col: 118px;
  --hero-grid-row: 34px;
  --hero-grid-line: rgba(59, 91, 126, 0.14);
  background-image:
    repeating-linear-gradient(
      to right,
      var(--hero-grid-line) 0,
      var(--hero-grid-line) 1px,
      transparent 1px,
      transparent var(--hero-grid-col)
    ),
    repeating-linear-gradient(
      to bottom,
      var(--hero-grid-line) 0,
      var(--hero-grid-line) 1px,
      transparent 1px,
      transparent var(--hero-grid-row)
    );
  -webkit-mask-image: var(--grid-dekor-mask-fade-top),
    radial-gradient(
      ellipse 88% 78% at 72% 70%,
      #000 18%,
      rgba(0, 0, 0, 0.55) 48%,
      transparent 74%
    );
  mask-image: var(--grid-dekor-mask-fade-top),
    radial-gradient(
      ellipse 88% 78% at 72% 70%,
      #000 18%,
      rgba(0, 0, 0, 0.55) 48%,
      transparent 74%
    );
  mask-composite: intersect;
}

.faq-container {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.faq-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.85rem, 2.2vw + 0.35rem, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.028em;
  color: var(--color-navy);
  margin-bottom: 34px;
  max-width: 16ch;
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
}

.faq-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.faq-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #e5eaf0;
  border: 1px solid rgba(17, 24, 39, 0.05);
  transition:
    background 0.22s var(--ease),
    border-color 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}

.faq-item:not(.is-open):hover {
  background: linear-gradient(162deg, #1f2937 0%, #111827 100%);
  border-color: rgba(255, 255, 255, 0.06);
}

.faq-item.is-open {
  background: linear-gradient(162deg, #1f2937 0%, #111827 100%);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 28px -16px rgba(17, 24, 39, 0.35);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  text-align: left;
  color: var(--color-navy);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 0.22s var(--ease);
}

.faq-item:not(.is-open):hover .faq-trigger {
  color: rgba(255, 255, 255, 0.95);
}

.faq-item.is-open .faq-trigger {
  color: rgba(255, 255, 255, 0.95);
  padding-bottom: 12px;
}

.faq-trigger:focus-visible {
  outline: 2px solid var(--color-purple);
  outline-offset: 2px;
}

.faq-item.is-open .faq-trigger:focus-visible {
  outline-color: rgba(255, 252, 248, 0.9);
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.012em;
}

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 4px;
  color: rgba(59, 91, 126, 0.55);
  transition: color 0.22s var(--ease);
}

.faq-item:not(.is-open):hover .faq-icon {
  color: rgba(59, 91, 126, 0.8);
}

.faq-item.is-open .faq-icon,
.faq-item.is-open:hover .faq-icon {
  color: rgba(59, 91, 126, 0.75);
}

.faq-icon-bar {
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  border-radius: 1px;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.faq-icon-bar--h {
  width: 12px;
  height: 1.5px;
}

.faq-icon-bar--v {
  width: 1.5px;
  height: 12px;
}

.faq-item.is-open .faq-icon-bar--v {
  opacity: 0;
  transform: translate(-50%, -50%) scaleY(0);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.42s cubic-bezier(0.45, 0, 0.22,  1);
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel-inner {
  overflow: hidden;
  min-height: 0;
}

.faq-panel-inner p {
  margin: 0;
  padding: 0 18px 18px;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.faq-item.is-open .faq-panel-inner p {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .faq-item,
  .faq-trigger,
  .faq-icon,
  .faq-icon-bar,
  .faq-panel,
  .faq-panel-inner p {
    transition: none;
  }

  .faq-item.is-open .faq-icon-bar--v {
    opacity: 0;
    transform: translate(-50%, -50%) scaleY(0);
  }
}

/* =============================================================
   Experience
   ============================================================= */

.experience {
  position: relative;
  padding: 72px 0 88px;
  background: var(--color-bg);
  overflow-x: hidden;
}

/* Samme regneark-dekor som .hero::after (rektangulære celler, kun linjer) */

.experience::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: clamp(-120px, -7vw, 0px);
  left: max(0px, calc((100% - var(--container-max)) / 2 + clamp(20px, 4vw, 48px) - 28px));
  width: min(46%, 560px);
  height: min(68%, 620px);
  pointer-events: none;
  --hero-grid-col: 118px;
  --hero-grid-row: 34px;
  --hero-grid-line: rgba(59, 91, 126, 0.14);
  background-image:
    repeating-linear-gradient(
      to right,
      var(--hero-grid-line) 0,
      var(--hero-grid-line) 1px,
      transparent 1px,
      transparent var(--hero-grid-col)
    ),
    repeating-linear-gradient(
      to bottom,
      var(--hero-grid-line) 0,
      var(--hero-grid-line) 1px,
      transparent 1px,
      transparent var(--hero-grid-row)
    );
  -webkit-mask-image: var(--grid-dekor-mask-fade-top),
    radial-gradient(
      ellipse 88% 78% at 30% 28%,
      #000 18%,
      rgba(0, 0, 0, 0.55) 48%,
      transparent 74%
    );
  mask-image: var(--grid-dekor-mask-fade-top),
    radial-gradient(
      ellipse 88% 78% at 30% 28%,
      #000 18%,
      rgba(0, 0, 0, 0.55) 48%,
      transparent 74%
    );
  mask-composite: intersect;
}

.experience-container {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: 100%;
  max-width: min(1500px, 100%);
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.experience-header {
  max-width: 640px;
  margin-bottom: 36px;
}

.experience-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.75rem, 2.2vw + 0.45rem, 2.75rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.experience-subtitle {
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.62;
  color: var(--color-muted);
  max-width: 560px;
}

/* Carousel */

.carousel {
  position: relative;
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
  min-width: 0;
}

.exp-stage {
  --exp-duration: 900ms;
  --exp-ease: cubic-bezier(0.5, 0, 0.15, 1);
  --exp-stage-min-h: 320px;
  --exp-scale-active: 1;
  --exp-scale-side-1: 0.94;
  --exp-scale-side-2: 0.9;
  --exp-scale-hidden: 0.88;
  --exp-slot-x: clamp(300px, calc(34vw + 128px), 468px);
  --exp-slot-x-2: calc(var(--exp-slot-x) * 1.38);
  max-width: 100%;
  margin-inline: auto;
  padding-inline: clamp(8px, 1.5vw, 20px);
  overflow: visible;
}

.exp-track {
  position: relative;
  box-sizing: border-box;
  min-width: 0;
  min-height: var(--exp-stage-min-h);
  overflow: visible;
}

.carousel-viewport:has(.exp-track) {
  min-height: var(--exp-stage-min-h);
  overflow: visible;
}

.exp-card {
  position: absolute;
  left: 50%;
  top: 50%;
  box-sizing: border-box;
  width: min(300px, 86%);
  max-width: 320px;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  padding: 13px 14px 15px;
  overflow: hidden;
  overflow-wrap: break-word;
  border-radius: var(--radius-md);
  text-align: left;
  cursor: default;
  isolation: isolate;
  background-color: #f9fafb;
  background-image: linear-gradient(
    168deg,
    rgba(246, 243, 249, 0.98) 0%,
    rgba(238, 234, 244, 0.98) 50%,
    rgba(230, 225, 238, 0.96) 100%
  );
  border: 1px solid rgba(17, 24, 39, 0.07);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 5px 16px -12px rgba(17, 24, 39, 0.14);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0) translate3d(0, 0, 0) scale(var(--exp-scale-hidden));
  transform-origin: center center;
  backface-visibility: hidden;
  will-change: transform, opacity;
  transition:
    transform var(--exp-duration) var(--exp-ease),
    opacity var(--exp-duration) var(--exp-ease),
    width var(--exp-duration) var(--exp-ease),
    max-width var(--exp-duration) var(--exp-ease),
    padding var(--exp-duration) var(--exp-ease),
    border-color var(--exp-duration) var(--exp-ease),
    box-shadow var(--exp-duration) var(--exp-ease),
    filter var(--exp-duration) var(--exp-ease),
    z-index 0ms;
}

.exp-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(162deg, #1f2937 0%, #111827 100%);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity var(--exp-duration) var(--exp-ease);
}

.exp-card > * {
  position: relative;
  z-index: 1;
  transition:
    opacity 0.5s var(--exp-ease),
    color 0.5s var(--exp-ease),
    border-color 0.5s var(--exp-ease),
    background-color 0.5s var(--exp-ease),
    filter 0.5s var(--exp-ease);
}

/* Posisjon — fysisk flyt med transform */
.exp-card.prev-2 {
  transform: translate3d(-50%, -50%, 0) translate3d(calc(var(--exp-slot-x-2) * -1), 0, 0)
    scale(var(--exp-scale-side-2));
  opacity: 0.32;
  z-index: 1;
  pointer-events: none;
}

.exp-card.prev-1 {
  transform: translate3d(-50%, -50%, 0) translate3d(calc(var(--exp-slot-x) * -1), 0, 0)
    scale(var(--exp-scale-side-1));
  opacity: 0.74;
  z-index: 2;
  pointer-events: auto;
  cursor: pointer;
  border-color: rgba(17, 24, 39, 0.1);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28) inset,
    0 8px 22px -12px rgba(17, 24, 39, 0.16);
}

.exp-card.active {
  width: min(680px, calc(100% - 32px));
  max-width: 680px;
  align-items: center;
  justify-content: center;
  padding: 22px 28px 24px;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 10px 28px -18px rgba(17, 24, 39, 0.35);
  transform: translate3d(-50%, -50%, 0) translate3d(0, 0, 0) scale(var(--exp-scale-active));
  opacity: 1;
  z-index: 3;
  pointer-events: auto;
}

.exp-card.active::after {
  opacity: 1;
}

.exp-card.next-1 {
  transform: translate3d(-50%, -50%, 0) translate3d(var(--exp-slot-x), 0, 0) scale(var(--exp-scale-side-1));
  opacity: 0.74;
  z-index: 2;
  pointer-events: auto;
  cursor: pointer;
  border-color: rgba(17, 24, 39, 0.1);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28) inset,
    0 8px 22px -12px rgba(17, 24, 39, 0.16);
}

.exp-card.next-2 {
  transform: translate3d(-50%, -50%, 0) translate3d(var(--exp-slot-x-2), 0, 0) scale(var(--exp-scale-side-2));
  opacity: 0.32;
  z-index: 1;
  pointer-events: none;
}

.exp-card.hidden {
  transform: translate3d(-50%, -50%, 0) translate3d(0, 0, 0) scale(var(--exp-scale-hidden));
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}

.exp-card.active > * {
  width: 100%;
  max-width: min(680px, 100%);
  margin-inline: auto;
}

.exp-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  z-index: 2;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--color-accent-gold) 0%, transparent) 0%,
    color-mix(in srgb, var(--color-accent-gold) 42%, transparent) 42%,
    color-mix(in srgb, var(--color-accent-gold) 32%, transparent) 58%,
    color-mix(in srgb, var(--color-accent-gold) 0%, transparent) 100%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--exp-duration) var(--exp-ease);
}

.exp-card.active::before {
  opacity: 1;
}

.exp-card.active .exp-brand {
  margin-bottom: 10px;
  min-height: 30px;
}

.exp-card .exp-company {
  color: rgba(17, 24, 39, 0.78);
  margin-bottom: 4px;
}

.exp-card .exp-role {
  color: rgba(59, 91, 126, 0.94);
}

.exp-card .exp-meta {
  opacity: 0;
  max-height: 0;
  margin-top: 0;
  margin-bottom: 0;
  overflow: hidden;
  transform: translateY(8px);
  color: rgba(107, 114, 128, 0.38);
}

.exp-card .exp-desc {
  opacity: 0;
  max-height: 0;
  margin: 0;
  overflow: hidden;
  transform: translateY(8px);
  max-width: 100%;
  line-height: 1.56;
  color: rgba(17, 24, 39, 0.67);
}

.exp-card .exp-role ~ .exp-role {
  opacity: 0;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
}

.exp-card .exp-mono {
  color: rgba(17, 24, 39, 0.42);
  border-color: rgba(17, 24, 39, 0.06);
  background: rgba(244, 241, 248, 0.9);
}

.exp-card .exp-logo {
  filter: none;
  opacity: 1;
}

.exp-card.active .exp-company {
  color: rgba(255, 255, 255, 0.96);
  margin-bottom: 5px;
  transition-delay: 50ms;
}

.exp-card.active .exp-role {
  color: color-mix(in srgb, var(--color-accent-gold) 92%, white);
  font-weight: 600;
  transition-delay: 80ms;
}

.exp-card.active .exp-role ~ .exp-role {
  color: color-mix(in srgb, var(--color-accent-gold) 82%, white);
  font-weight: 500;
  opacity: 1;
  max-height: 3em;
  margin-top: 4px;
}

.exp-card.active .exp-meta {
  opacity: 1;
  max-height: 3em;
  margin-top: 9px;
  margin-bottom: 11px;
  transform: translateY(0);
  color: rgba(255, 255, 255, 0.48);
  transition-delay: 150ms;
}

.exp-card.active .exp-desc {
  opacity: 1;
  max-height: 10em;
  transform: translateY(0);
  color: rgba(255, 255, 255, 0.76);
  transition-delay: 220ms;
}

.exp-card.active .exp-mono {
  color: rgba(255, 255, 255, 0.9);
  border-color: color-mix(in srgb, var(--color-accent-gold) 55%, rgba(255, 255, 255, 0.22));
  background: rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 0 1px color-mix(in srgb, var(--color-accent-gold) 28%, transparent);
}

/* ACTIVE EXPERIENCE LOGO FIX */
.exp-card.active .exp-brand {
  background: transparent;
  backdrop-filter: none;
}

.exp-card.active .exp-logo {
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
  background: transparent;
  backdrop-filter: none;
}

.exp-card.prev-1:hover,
.exp-card.next-1:hover {
  opacity: 0.82;
  border-color: color-mix(in srgb, var(--color-accent-gold) 22%, rgba(17, 24, 39, 0.14));
}

.exp-card.prev-1:focus-visible,
.exp-card.next-1:focus-visible {
  opacity: 0.8;
  border-color: color-mix(in srgb, var(--color-accent-gold) 35%, rgba(59, 91, 126, 0.22));
  outline: 2px solid color-mix(in srgb, var(--color-accent-gold) 45%, transparent);
  outline-offset: 2px;
}

.exp-card:not(.active) .exp-brand {
  margin-bottom: 8px;
  max-width: 96px;
  min-height: 26px;
}

.exp-card:not(.active) .exp-company {
  font-size: 12.35px;
  font-weight: 600;
  line-height: 1.32;
}

.exp-card:not(.active) .exp-role {
  font-size: 11.65px;
  font-weight: 500;
  line-height: 1.38;
}

.exp-card:not(.active) .exp-logo {
  max-height: 24px;
  max-width: 96px;
}

.exp-card:not(.active) .exp-logo--agasti {
  max-height: 32px;
  max-width: 96px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.exp-card.active .exp-logo--agasti {
  max-height: 44px;
  max-width: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

/* Mobil/tablet: roligere deck-glide — samme easing som desktop, kun transform/opacity */
@media (max-width: 1024px) {
  .exp-stage {
    --exp-duration: 680ms;
    --exp-ease: cubic-bezier(0.5, 0, 0.15, 1);
  }

  .exp-card {
    width: min(640px, calc(100% - 32px));
    max-width: min(640px, calc(100% - 32px));
    transition:
      transform var(--exp-duration) var(--exp-ease),
      opacity var(--exp-duration) var(--exp-ease);
    will-change: auto;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    contain: layout style;
  }

  .exp-card::after,
  .exp-card::before {
    transition: opacity calc(var(--exp-duration) * 0.88) var(--exp-ease);
  }

  .exp-card > * {
    transition:
      opacity calc(var(--exp-duration) * 0.82) var(--exp-ease),
      color calc(var(--exp-duration) * 0.82) var(--exp-ease),
      border-color calc(var(--exp-duration) * 0.82) var(--exp-ease),
      background-color calc(var(--exp-duration) * 0.82) var(--exp-ease),
      filter calc(var(--exp-duration) * 0.82) var(--exp-ease);
  }

  .exp-card .exp-meta,
  .exp-card .exp-desc,
  .exp-card .exp-role ~ .exp-role {
    transition: opacity calc(var(--exp-duration) * 0.82) var(--exp-ease);
  }

  .exp-card.active {
    width: min(640px, calc(100% - 32px));
    max-width: min(640px, calc(100% - 32px));
  }

  .exp-card.active .exp-company,
  .exp-card.active .exp-role,
  .exp-card.active .exp-meta,
  .exp-card.active .exp-desc {
    transition-delay: 0ms;
  }

  .exp-track.is-exp-animating .exp-card.active,
  .exp-track.is-exp-animating .exp-card.prev-1,
  .exp-track.is-exp-animating .exp-card.next-1,
  .exp-track.is-exp-animating .exp-card.prev-2,
  .exp-track.is-exp-animating .exp-card.next-2 {
    will-change: transform, opacity;
  }
}

/* Controls */

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 17px;
}

/* Felles carousel-piler: erfaring + sitat/eksempler (samme mål, sand/gull) */

.carousel-btn,
.scenarios-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--color-accent-gold) 32%, rgba(17, 24, 39, 0.11));
  background: color-mix(in srgb, var(--color-accent-gold) 14%, #f9fafb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.52) inset;
  transition:
    border-color 0.22s var(--ease),
    color 0.22s var(--ease),
    background 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}

.carousel-btn svg,
.scenarios-btn svg {
  width: 18px;
  height: 18px;
}

.carousel-btn:hover,
.scenarios-btn:hover {
  border-color: color-mix(in srgb, var(--color-accent-gold) 46%, rgba(17, 24, 39, 0.15));
  background: color-mix(in srgb, var(--color-accent-gold) 26%, #f9fafb);
  color: var(--color-navy);
  box-shadow:
    0 1px 0 rgba(255, 252, 248, 0.68) inset,
    0 1px 4px -2px rgba(17, 24, 39, 0.07);
}

.carousel-btn:focus-visible,
.scenarios-btn:focus-visible {
  border-color: color-mix(in srgb, var(--color-accent-gold) 50%, rgba(17, 24, 39, 0.16));
  background: color-mix(in srgb, var(--color-accent-gold) 26%, #f9fafb);
  color: var(--color-navy);
  box-shadow:
    0 1px 0 rgba(255, 252, 248, 0.68) inset,
    0 1px 4px -2px rgba(17, 24, 39, 0.07);
  outline: 2px solid color-mix(in srgb, var(--color-accent-gold) 62%, var(--color-navy));
  outline-offset: 2px;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 4px;
}

.carousel-dot {
  width: 2.5px;
  height: 2.5px;
  border-radius: 50%;
  border: none;
  background: rgba(17, 24, 39, 0.09);
  cursor: pointer;
  padding: 0;
  transition: background 0.45s cubic-bezier(0.4, 0, 0.2, 1), width 0.45s cubic-bezier(0.4, 0, 0.2, 1), border-radius 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s var(--ease);
}

.carousel-dot:hover {
  background: color-mix(in srgb, var(--color-accent-gold) 35%, rgba(17, 24, 39, 0.17));
}

.carousel-dot.is-active {
  background: color-mix(in srgb, var(--color-accent-gold) 78%, rgba(17, 24, 39, 0.25));
  width: 10px;
  height: 2px;
  border-radius: 1px;
}

/* Erfaring: aktiv dot = diskret pause (||), pauset = play (▶) */
#exp-dots .carousel-dot {
  transition: background 0.22s var(--ease);
}

#exp-dots .carousel-dot.is-active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  width: auto;
  min-width: 12px;
  height: 20px;
  border-radius: 0;
  flex-shrink: 0;
  overflow: visible;
  transform: none;
  transition: none;
  animation: none;
}

#exp-dots .exp-dot-icon {
  display: none;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 18px;
  line-height: 0;
  overflow: visible;
  pointer-events: none;
  color: color-mix(in srgb, var(--color-accent-gold) 78%, rgba(17, 24, 39, 0.25));
  transform: none;
  transition: none;
  animation: none;
}

#exp-dots .carousel-dot.is-active .exp-dot-icon {
  display: inline-flex;
}

#exp-dots .carousel-dot.is-active:hover .exp-dot-icon {
  color: color-mix(in srgb, var(--color-accent-gold) 88%, rgba(17, 24, 39, 0.2));
}

#exp-dots .exp-dot-icon__svg {
  display: block;
  width: 12px;
  height: 18px;
  overflow: visible;
  fill: currentColor;
  flex-shrink: 0;
  transform: none;
  transition: none;
  animation: none;
  shape-rendering: geometricPrecision;
}

#exp-dots .exp-dot-icon__svg--play {
  display: none;
}

#exp-dots.is-exp-autoplay-paused .exp-dot-icon__svg--pause {
  display: none;
}

#exp-dots.is-exp-autoplay-paused .exp-dot-icon__svg--play {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  #exp-dots .carousel-dot.is-active {
    display: inline-block;
    background: color-mix(in srgb, var(--color-accent-gold) 78%, rgba(17, 24, 39, 0.25));
    width: 10px;
    height: 2px;
    border-radius: 1px;
  }

  #exp-dots .carousel-dot.is-active .exp-dot-icon {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .exp-card,
  .exp-card::after,
  .exp-card::before,
  .exp-card > * {
    transition: none !important;
    will-change: auto;
  }

  .exp-card.active::after {
    opacity: 1;
  }

  .exp-card.active::before {
    opacity: 1;
  }

  .exp-card:not(.active) .exp-company,
  .exp-card:not(.active) .exp-role,
  .exp-mono,
  .exp-logo {
    transition: none;
  }

  .carousel-btn,
  .scenarios-btn,
  .carousel-dot {
    transition: none;
  }

  .contact-submit {
    transition: none;
  }

  .contact-submit:active {
    transform: none;
  }
}

/* Fallback-logoer (SVG) er egenproduserte visuelle placeholders og kan byttes til offisielle filer med samme filnavn. */
.exp-brand {
  display: grid;
  justify-items: start;
  align-items: start;
  width: 100%;
  max-width: 120px;
  min-height: 28px;
  margin-bottom: 7px;
}

.exp-brand > * {
  grid-column: 1;
  grid-row: 1;
}

.exp-logo {
  z-index: 1;
  max-height: 30px;
  width: auto;
  max-width: 120px;
  height: auto;
  object-fit: contain;
  object-position: left center;
  justify-self: start;
  align-self: start;
}

/* Agasti-logo — beskjært PNG, litt større enn standard erfaring-logoer */
.exp-logo--agasti {
  display: block;
}

.exp-card.active .exp-brand:has(.exp-logo--agasti) {
  width: 100%;
  max-width: 120px;
  min-height: 0;
  height: auto;
  align-self: flex-start;
  margin-bottom: 10px;
  overflow: visible;
}

.exp-card:not(.active) .exp-brand:has(.exp-logo--agasti) {
  width: 100%;
  max-width: 96px;
  min-height: 0;
  height: auto;
  align-self: flex-start;
  margin-bottom: 8px;
  overflow: visible;
}

.exp-card.active > .exp-brand:has(.exp-logo--agasti) {
  width: 100%;
  margin-left: 0;
  margin-right: auto;
}

.exp-brand .exp-mono {
  margin-bottom: 0;
  z-index: 0;
  position: relative;
}

/* Skjul mono-placeholder når logo-bilde er lastet (unngår «boks» bak logo) */
.exp-brand:has(.exp-logo) .exp-mono {
  display: none;
}

.exp-mono {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-xs);
  background: rgba(248, 246, 250, 0.95);
  border: 1px solid rgba(17, 24, 39, 0.072);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 8.75px;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
  color: rgba(17, 24, 39, 0.54);
  margin-bottom: 7px;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition:
    color 0.58s cubic-bezier(0.45, 0, 0.22, 1),
    border-color 0.58s cubic-bezier(0.45, 0, 0.22, 1),
    background 0.58s cubic-bezier(0.45, 0, 0.22, 1);
}

.exp-company {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15.75px;
  line-height: 1.19;
  letter-spacing: -0.022em;
  color: var(--color-navy);
  margin-bottom: 3px;
}

.exp-role {
  font-size: 12.3px;
  font-weight: 500;
  line-height: 1.36;
  letter-spacing: -0.003em;
  color: rgba(59, 91, 126, 0.88);
}

.exp-role + .exp-role {
  margin-top: 3px;
}

.exp-meta {
  font-size: 9.75px;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.045em;
  text-transform: none;
  color: rgba(107, 114, 128, 0.38);
  margin-top: 5px;
  margin-bottom: 6px;
  line-height: 1.45;
}

.exp-desc {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.52;
  color: rgba(17, 24, 39, 0.67);
  max-width: 236px;
}

/* =============================================================
   Responsiv
   ============================================================= */

@media (max-width: 900px) {
  :root {
    --container-pad: 24px;
  }

  .main-nav {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header-inner {
    height: 60px;
  }

  .hero {
    padding-top: 28px;
    padding-bottom: 40px;
  }

  .hero-bg-shape {
    width: 400px;
    height: 400px;
    top: -80px;
    left: -120px;
  }

  .hero::after {
    top: 12%;
    right: 24px;
    width: min(72%, 480px);
    height: min(42%, 320px);
    opacity: 0.45;
  }

  .hero-container {
    display: block;
  }

  .hero-heading {
    font-size: clamp(2.2rem, 6vw, 3.2rem);
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-media {
    margin-top: 48px;
  }

  .hero-portrait {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .intro {
    padding: 56px 0 64px;
    border-radius: 0;
  }

  .intro-container {
    display: block;
  }

  .intro-label {
    margin-bottom: 16px;
  }

  #om-morten {
    padding: 48px 0 56px;
  }

  #om-morten .intro-body {
    gap: 16px;
  }

  #om-morten .intro-body p {
    font-size: clamp(17px, 3.8vw + 0.45rem, 22px);
    line-height: 1.58;
  }

  #om-meg {
    padding-bottom: 52px;
  }

  #om-meg::before {
    height: 96px;
  }

  #om-meg .intro-body p {
    max-width: none;
    font-size: clamp(17px, 3.8vw + 0.45rem, 22px);
    line-height: 1.58;
  }

  #om-meg + .contact {
    padding-top: 44px;
  }

  #om-meg + .contact .contact-container {
    margin-top: 0;
  }

  .scenarios::after {
    top: clamp(-120px, calc(17vw - 248px), 20px);
    right: clamp(28px, 5vw, 56px);
    width: min(62%, 440px);
    height: min(66%, 540px);
    opacity: 0.45;
  }

  .scenarios {
    padding: 56px 0 48px;
  }

  .scenarios-header {
    margin-bottom: 28px;
  }

  .scenarios-stage {
    padding: 28px 22px 26px;
  }

  .scenarios-quote-mark {
    font-size: 3rem;
    margin-bottom: 16px;
  }

  .scenarios-blockquote {
    padding-left: 20px;
    border-left-width: 2px;
  }

  .scenarios-quote {
    font-size: 1.2rem;
  }

  .scenarios-attribution {
    margin-top: 24px;
    gap: 12px;
  }

  .scenarios-attribution-label {
    font-size: 14px;
  }

  .scenarios-attribution-detail {
    font-size: 13px;
  }

  .scenarios-viewport {
    min-height: 8.5rem;
  }

  .contact {
    padding: 64px 0 80px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact::after {
    bottom: -14%;
    left: -22%;
    top: auto;
    width: min(68vw, 480px);
    height: min(88vw, 600px);
    opacity: 0.78;
  }

  .panel-content::before {
    opacity: 0.42;
    bottom: -22%;
    right: -16%;
    width: min(72vw, 300px);
    height: min(72vw, 300px);
  }

  .contact-title {
    max-width: none;
  }

  .contact-panel {
    padding: 28px 22px 30px;
  }

  .contact-meta-row {
    grid-template-columns: 88px 1fr;
  }

  .contact-submit {
    width: 100%;
    align-self: stretch;
  }

  .faq::after {
    bottom: 10%;
    right: 18px;
    width: min(68%, 400px);
    height: min(42%, 380px);
    opacity: 0.45;
  }

  .faq {
    padding: 56px 0 72px;
  }

  .faq-title {
    margin-bottom: 22px;
    max-width: none;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  .faq-column {
    gap: 10px;
  }

  .faq-trigger {
    padding: 14px 16px;
  }

  .faq-question {
    font-size: 14.5px;
  }

  .services {
    padding: 72px 0 80px;
  }

  .services-container::before {
    top: clamp(-120px, -10vw, -52px);
    width: min(40%, 300px);
    height: clamp(300px, calc(36vw + 120px), 380px);
    opacity: 0.55;
    --services-top-grid-line: rgba(59, 91, 126, 0.085);
  }

  .services .tabs {
    overflow: visible;
  }

  .tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
    margin-bottom: 24px;
    padding-bottom: 0;
  }

  .tab {
    width: 100%;
    min-width: 0;
    flex-shrink: 1;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.35;
    white-space: normal;
    text-align: center;
  }

  .panel-cta {
    padding: 9px 20px;
    font-size: 13px;
  }

  .experience::after {
    top: clamp(-72px, -5vw, 0px);
    left: 18px;
    width: min(64%, 420px);
    height: min(54%, 460px);
    opacity: 0.45;
  }

  .experience {
    padding: 56px 0 68px;
  }

  .experience-header {
    margin-bottom: 28px;
  }

  .exp-stage {
    --exp-stage-min-h: 300px;
    --exp-slot-x: clamp(268px, calc(38vw + 96px), 400px);
    --exp-slot-x-2: calc(var(--exp-slot-x) * 1.32);
  }

  .exp-card.active {
    padding: 20px 24px 22px;
  }

  .exp-card.active > * {
    max-width: min(640px, 100%);
  }
}

@media (max-width: 480px) {
  .brand {
    gap: 10px;
  }

  .brand-mark {
    height: 28px;
  }

  .brand-name {
    font-size: 16px;
  }

  .hero-heading {
    font-size: 2rem;
  }

  .hero::after {
    display: none;
  }

  .experience::after {
    display: none;
  }

  .faq::after {
    display: none;
  }

  .scenarios::after {
    display: none;
  }

  .services-container::before {
    display: none;
  }

  .tabs {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn-primary {
    width: 100%;
    text-align: center;
  }

  .hero-portrait {
    max-width: 100%;
  }

  .exp-stage {
    --exp-stage-min-h: clamp(252px, 62vw, 288px);
    --exp-slot-x: clamp(110px, 32vw, 170px);
  }

  .exp-card,
  .exp-card.active {
    width: calc(100% - 40px);
    max-width: calc(100% - 40px);
  }

  .exp-card.active {
    padding: 18px 18px 20px;
  }

  .exp-card.active > * {
    max-width: 100%;
  }

  .exp-card.active .exp-desc {
    max-width: 100%;
  }

  /* Mobil: vis kun ett sidekort på hver side (skjul de ytterste) */
  .exp-card.prev-2,
  .exp-card.next-2 {
    opacity: 0;
  }

  /* Sidekortene holdes subtile, men logoen flyttes til den synlige kanten
     (midten av hvert sidekort ligger bak aktivt kort på mobil) */
  .exp-card.prev-1,
  .exp-card.next-1 {
    opacity: 0.9;
  }

  .exp-card.prev-1 .exp-brand,
  .exp-card.next-1 .exp-brand {
    position: absolute;
    top: 50%;
    margin: 0;
    max-width: 58px;
    z-index: 4;
    opacity: 1;
    transform: translateY(-50%);
    pointer-events: none;
  }

  .exp-card.prev-1 .exp-brand img,
  .exp-card.prev-1 .exp-logo,
  .exp-card.prev-1 .exp-mono,
  .exp-card.next-1 .exp-brand img,
  .exp-card.next-1 .exp-logo,
  .exp-card.next-1 .exp-mono {
    max-width: 58px;
    opacity: 1;
    filter: none;
  }

  .exp-card.prev-1 .exp-company,
  .exp-card.prev-1 .exp-role,
  .exp-card.prev-1 .exp-meta,
  .exp-card.prev-1 .exp-desc,
  .exp-card.next-1 .exp-company,
  .exp-card.next-1 .exp-role,
  .exp-card.next-1 .exp-meta,
  .exp-card.next-1 .exp-desc {
    opacity: 0;
  }

  /* Høyre sidekort: logo i synlig høyrekant */
  .exp-card.next-1 .exp-brand {
    right: clamp(70px, 20vw, 100px);
    left: auto;
    justify-items: end;
  }

  .exp-card.next-1 .exp-brand img,
  .exp-card.next-1 .exp-logo,
  .exp-card.next-1 .exp-mono {
    justify-self: end;
    object-position: right center;
  }

  /* Venstre sidekort: logo i synlig venstrekant (speiler høyre) */
  .exp-card.prev-1 .exp-brand {
    left: clamp(70px, 20vw, 100px);
    right: auto;
    justify-items: start;
  }

  .exp-card.prev-1 .exp-brand img,
  .exp-card.prev-1 .exp-logo,
  .exp-card.prev-1 .exp-mono {
    justify-self: start;
    object-position: left center;
  }
}

/* =============================================================
   Footer
   ============================================================= */

.site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #1f2937 0%, #111827 42%, #1f2937 100%);
  color: #f9fafb;
}

.footer-deco {
  position: absolute;
  top: -18%;
  right: -8%;
  width: min(52vw, 620px);
  height: min(72vw, 780px);
  border-radius: 38% 62% 54% 46% / 48% 42% 58% 52%;
  background: radial-gradient(
    ellipse at 35% 40%,
    rgba(59, 91, 126, 0.42) 0%,
    rgba(59, 91, 126, 0.12) 45%,
    transparent 72%
  );
  pointer-events: none;
  opacity: 0.9;
}

.footer-deco::after {
  content: "";
  position: absolute;
  inset: 18% 12% 8% 28%;
  border-radius: 46% 54% 40% 60% / 52% 44% 56% 48%;
  background: radial-gradient(
    ellipse at 60% 50%,
    rgba(59, 91, 126, 0.1) 0%,
    transparent 68%
  );
}

.footer-container {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 88px) var(--container-pad) clamp(28px, 4vw, 40px);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) repeat(3, minmax(0, 1fr));
  gap: clamp(36px, 4.5vw, 64px);
  align-items: start;
}

.site-footer a.footer-logo {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.25;
  margin-bottom: 22px;
  max-width: 100%;
}

.site-footer a.footer-logo .footer-logo-mark {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: 26px;
  object-fit: contain;
  opacity: 0.92;
}

.site-footer a.footer-logo .footer-logo-copy {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  flex: 0 0 auto;
  width: max-content;
  max-width: 100%;
}

.site-footer a.footer-logo .footer-logo-name {
  display: block;
  flex: 0 0 auto;
  width: max-content;
  max-width: 100%;
  line-height: 1.1;
  font-family: var(--font-brand);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 400;
  color: #f9fafb;
}

.site-footer a.footer-logo .footer-logo-person {
  display: block;
  flex: 0 0 auto;
  width: max-content;
  max-width: 100%;
  margin-top: 4px;
  line-height: 1.2;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(249, 250, 251, 0.62);
  white-space: nowrap;
}

.footer-tagline {
  max-width: 34ch;
  font-size: clamp(15px, 1.35vw, 16.5px);
  line-height: 1.55;
  font-weight: 500;
  color: #f9fafb;
  margin-bottom: 14px;
}

.footer-lead {
  max-width: 42ch;
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(249, 250, 251, 0.72);
  margin-bottom: 26px;
}

.btn-footer-cta {
  display: inline-flex;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  background: var(--color-navy);
  color: var(--color-white);
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid rgba(17, 24, 39, 0.2);
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.btn-footer-cta:hover,
.btn-footer-cta:focus-visible {
  background: var(--color-purple);
  color: var(--color-white);
  border-color: rgba(59, 91, 126, 0.45);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-accent-gold) 20%, rgba(249, 250, 251, 0.52));
  margin-bottom: 18px;
}

.footer-address {
  font-style: normal;
}

.footer-contact-row {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(249, 250, 251, 0.82);
  margin-bottom: 10px;
}

.footer-contact-row:last-child {
  margin-bottom: 0;
}

.footer-contact-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(249, 250, 251, 0.48);
  margin-bottom: 2px;
}

.footer-contact-area {
  margin-top: 4px;
}

.footer-todo {
  color: rgba(249, 250, 251, 0.5);
  font-style: italic;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  display: inline-block;
  font-size: 14.5px;
  line-height: 1.45;
  color: rgba(249, 250, 251, 0.78);
  text-decoration: none;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: color-mix(in srgb, var(--color-accent-gold) 14%, #f9fafb);
}

.footer-link--pending {
  color: rgba(249, 250, 251, 0.45);
  cursor: default;
}

.site-footer :focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(44px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid rgba(249, 250, 251, 0.1);
}

.footer-copy,
.footer-org {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(249, 250, 251, 0.48);
}

.footer-social {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  margin: -6px;
  border-radius: var(--radius-xs);
  color: rgba(249, 250, 251, 0.52);
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

.footer-social-link:hover {
  color: rgba(249, 250, 251, 0.92);
}

.footer-social-link:focus-visible {
  color: rgba(249, 250, 251, 0.98);
  outline-offset: 4px;
}

.footer-social-icon {
  display: block;
}

@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: minmax(240px, 1.2fr) repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 520px;
  }
}

@media (max-width: 768px) {
  html.js .services .tabs .tab {
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  html.js .services .tabs.is-tabs-visible .tab {
    animation: none;
  }

  .panel-wrapper {
    display: block;
    width: calc(100% + 2 * var(--container-pad));
    max-width: none;
    margin-left: calc(-1 * var(--container-pad));
    margin-right: calc(-1 * var(--container-pad));
    background: transparent;
    box-shadow: none;
    overflow: visible;
    min-height: 0;
    scroll-margin-top: calc(76px + 16px);
  }

  .services-carousel {
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    padding: 4px 0 8px;
    scroll-padding-inline: calc((100% - 86vw) / 2);
  }

  .services-carousel::-webkit-scrollbar {
    display: none;
  }

  .services-carousel-track {
    display: flex;
    align-items: stretch;
    gap: 12px;
    min-height: 0;
    padding-inline: 0;
  }

  /* Flex-spacere gir pålitelig scroll-end-space (padding-right telles ikke alltid med på iOS) */
  .services-carousel-track::before {
    content: "";
    flex: 0 0 calc((100% - 86vw) / 2);
    min-width: calc((100% - 86vw) / 2);
    pointer-events: none;
  }

  .services-carousel-track::after {
    content: "";
    flex: 0 0 calc((100% - 86vw) / 2 + 12px);
    min-width: calc((100% - 86vw) / 2 + 12px);
    pointer-events: none;
  }

  .service-slide {
    flex: 0 0 86vw;
    max-width: 86vw;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    background: linear-gradient(165deg, #1f2937 0%, #111827 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 22px -14px rgba(17, 24, 39, 0.35);
    transform: scale(0.94);
    opacity: 0.58;
    filter: saturate(0.88);
    transition:
      transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      filter 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
  }

  .service-slide.is-active {
    transform: scale(1);
    opacity: 1;
    filter: none;
    box-shadow: 0 8px 28px -16px rgba(17, 24, 39, 0.45);
  }

  .service-slide .panel[hidden] {
    display: block !important;
  }

  .service-slide .panel.is-fading {
    opacity: 1;
  }

  .panel-visual {
    aspect-ratio: 16 / 9;
    border-radius: 0;
  }

  .panel-content {
    padding: 24px 22px 28px;
  }

  @media (prefers-reduced-motion: reduce) {
    .services-carousel {
      scroll-behavior: auto;
    }

    .service-slide {
      transition: none;
    }
  }

  .footer-container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-brand {
    max-width: none;
  }

  .footer-deco {
    top: -8%;
    right: -28%;
    opacity: 0.55;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* =============================================================
   Personvernside
   ============================================================= */

.legal-page {
  padding: clamp(72px, 8vw, 104px) 0 clamp(80px, 9vw, 112px);
  background: var(--color-bg);
}

.legal-container {
  max-width: min(720px, 100%);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.legal-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.85rem, 2vw + 0.6rem, 2.5rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--color-navy);
  margin-bottom: 20px;
}

.legal-lead {
  font-size: 16px;
  line-height: 1.68;
  color: var(--color-gray);
  margin-bottom: 8px;
}

.legal-section {
  margin-top: 32px;
}

.legal-heading {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--color-navy);
  margin-bottom: 10px;
}

.legal-section p {
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--color-muted);
}

.legal-section p + p {
  margin-top: 8px;
}

.legal-section a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-section a:hover,
.legal-section a:focus-visible {
  color: var(--color-navy);
}

.legal-back-wrap {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-line);
}

.legal-back-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
}

.legal-back-link:hover,
.legal-back-link:focus-visible {
  color: var(--color-navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom--compact {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
