/* ============================================================
   Forsiden og de rikere seksjonene
   Hero, tillitsstripe, kategorimosaikk, karusell, objekt i fokus,
   budsjett, tidslinje, spørsmål og svar, og rytmen mellom dem.
   Maler: template-parts/sections/*.php. Oppførsel: assets/js/front.js.
   ============================================================ */

/* ---------- Felles hode for seksjonene ---------- */
.fp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: 28px; flex-wrap: wrap; }
.fp-head.is-center { justify-content: center; text-align: center; }
.fp-head.is-center .fp-intro { margin-left: auto; margin-right: auto; }
.fp-head h2 {
  font-family: var(--f-display); font-weight: 500; font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.08; letter-spacing: -.018em; margin: 0; color: var(--ink); text-wrap: balance; max-width: 22ch;
}
.fp-head.is-center h2 { margin: 0 auto; }
.fp-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--brass);
}
.fp-eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.fp-head.is-center .fp-eyebrow::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.fp-eyebrow.is-gold { color: #E8C98A; }
.fp-intro { margin: 12px 0 0; max-width: 60ch; font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }
.fp-more {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink);
  padding: 10px 0; border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
.fp-more .fp-ico { width: 18px; height: 18px; transition: transform .2s; }
.fp-more:hover { color: var(--accent); border-color: currentColor; }
.fp-more:hover .fp-ico { transform: translateX(4px); }
.fp-head-actions { display: flex; align-items: center; gap: 20px; }

.fp-arrows { display: flex; gap: 8px; }
.fp-arrows[hidden] { display: none; }
.fp-arrows button {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); transition: background .15s, color .15s, border-color .15s, opacity .15s;
}
.fp-arrows button:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: #fff; }
.fp-arrows button:disabled { opacity: .35; cursor: default; }
.fp-arrows .fp-ico { width: 20px; height: 20px; }

/* Gullknapp og strekknapp, brukt på mørk bakgrunn */
.btn.fp-btn-gold {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--cta); color: #17140D; border: 0;
  box-shadow: 0 10px 30px -12px rgba(232,201,138,.6), inset 0 1px 0 rgba(255,255,255,.45);
  transition: transform .15s, box-shadow .2s, filter .15s;
}
.btn.fp-btn-gold:hover { color: #17140D; background: var(--cta-hi); transform: translateY(-1px); box-shadow: 0 16px 34px -12px rgba(232,201,138,.7), inset 0 1px 0 rgba(255,255,255,.45); }
.btn.fp-btn-gold .fp-ico { width: 18px; height: 18px; transition: transform .2s; }
.btn.fp-btn-gold:hover .fp-ico { transform: translateX(3px); }
.btn.fp-btn-line { background: transparent; color: #fff; border: 1px solid #5A503F; }
.btn.fp-btn-line:hover { border-color: #fff; color: #fff; }

/* ============================================================
   HERO
   ============================================================ */
.fp-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); color: #fff; }
.fp-hero-bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(820px 540px at 76% 46%, rgba(232,201,138,.17), rgba(232,201,138,0) 62%),
    radial-gradient(760px 460px at 4% -10%, rgba(201,168,102,.45), rgba(201,168,102,0) 62%),
    linear-gradient(180deg, #1A1610 0%, #110F0B 100%);
}
.fp-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 72% 45%, #000 10%, transparent 72%);
          mask-image: radial-gradient(ellipse 70% 80% at 72% 45%, #000 10%, transparent 72%);
}
.fp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: 56px; align-items: center; padding-block: 76px 84px; }
.fp-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 14px 7px 12px; border-radius: 99px;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #E8C98A;
  background: rgba(232,201,138,.08); border: 1px solid rgba(232,201,138,.22);
}
.fp-live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #6FCF8E; }
.fp-live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid #6FCF8E; animation: fp-ping 2.4s ease-out infinite; }
@keyframes fp-ping { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(1.8); opacity: 0; } }
.fp-hero h1 {
  font-family: var(--f-display); font-weight: 500; font-size: clamp(38px, 5.1vw, 68px); line-height: 1.02;
  letter-spacing: -.028em; margin: 0 0 22px; text-wrap: balance; max-width: 16ch;
  background: linear-gradient(180deg, #FFFFFF 30%, #E8DCC4 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fp-hero-intro { margin: 0 0 30px; max-width: 50ch; font-size: 18px; line-height: 1.6; color: #CFC5B2; }
.fp-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.fp-hero .btn-ghost { background: rgba(255,255,255,.03); color: #fff; border-color: #5A503F; }
.fp-hero .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.07); }
.fp-hero-proof { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.fp-hero-proof li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #E6DDCB; }
.fp-hero-proof .fp-ico { width: 18px; height: 18px; color: #E8C98A; }
.fp-hero-stats { display: flex; flex-wrap: wrap; gap: 0; margin: 36px 0 0; padding: 26px 0 0; border-top: 1px solid rgba(255,255,255,.1); }
.fp-hero-stats > div { display: flex; flex-direction: column-reverse; gap: 4px; padding-right: 30px; margin-right: 30px; border-right: 1px solid rgba(255,255,255,.1); }
.fp-hero-stats > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.fp-hero-stats dd { margin: 0; font-family: var(--f-display); font-size: clamp(26px, 2.6vw, 36px); font-weight: 500; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.fp-hero-stats dt { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #A0937A; }

.fp-hero-visual { position: relative; perspective: 1200px; padding-bottom: 56px; }
.fp-hero-plate {
  position: relative; display: block; border-radius: 18px; background: #fff;
  box-shadow: 0 50px 90px -40px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.08);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
  animation: fp-float 7s ease-in-out infinite;
}
.fp-hero-halo { position: absolute; inset: -18% -14%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(232,201,138,.32), rgba(232,201,138,0) 66%); filter: blur(6px); }
.fp-hero-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; padding: 7%; }
@keyframes fp-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.fp-hero-card {
  position: absolute; left: -28px; bottom: 0; width: min(330px, 80%);
  display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 14px; color: #fff;
  background: rgba(22,26,33,.82); border: 1px solid rgba(255,255,255,.1);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); transition: transform .2s, border-color .2s;
}
.fp-hero-card:hover { color: #fff; transform: translateY(-3px); border-color: rgba(232,201,138,.45); }
.fp-hero-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fp-hero-card-top .fp-ico { width: 18px; height: 18px; color: #E8C98A; transition: transform .2s; }
.fp-hero-card:hover .fp-hero-card-top .fp-ico { transform: translateX(3px); }
.fp-hero-card-label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #E8C98A; }
.fp-hero-card strong { font-family: var(--f-display); font-size: 18px; font-weight: 500; line-height: 1.3; }
.fp-hero-card-price { font-size: 20px; font-weight: 700; color: #E8C98A; font-variant-numeric: tabular-nums; }
.fp-hero-card-price .amount { color: inherit; }
.fp-hero-card-price del { color: #A0937A; font-size: 14px; font-weight: 400; margin-right: 6px; }
.fp-hero-card-price ins { text-decoration: none; }
.fp-hero-card-note { font-size: 12.5px; color: #A0937A; }

/* ---------- Hero med bakgrunnsbilde (lys variant) ---------- */
.fp-hero.has-image { background: #EFE8DC; color: var(--ink); border-bottom: 3px solid var(--brass); }
.fp-hero-photo { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.fp-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }
.fp-hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #EFE8DC 0%, rgba(239,232,220,.85) 14%, rgba(239,232,220,.35) 28%, rgba(239,232,220,0) 42%);
}
/* Store skjermer: bildet starter et stykke inn, så objektene ikke kommer inntil teksten. */
@media (min-width: 1001px) {
  .fp-hero.has-image .fp-hero-photo { left: 32%; }
}
.fp-hero.has-image .fp-hero-grid { grid-template-columns: minmax(0, 640px); min-height: clamp(520px, 62vh, 700px); padding-block: 72px 80px; }
.fp-hero.has-image .fp-hero-eyebrow { color: var(--brass); background: rgba(255,255,255,.6); border-color: rgba(142,111,54,.3); }
.fp-hero.has-image h1 { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--ink); }
.fp-hero.has-image .fp-hero-intro { color: var(--ink-2); }
.fp-hero.has-image .btn-ghost { background: rgba(255,255,255,.55); color: var(--ink); border-color: rgba(23,20,15,.25); }
.fp-hero.has-image .btn-ghost:hover { background: #fff; border-color: var(--ink); color: var(--ink); }
.fp-hero.has-image .fp-hero-proof li { color: var(--ink-2); }
.fp-hero.has-image .fp-hero-proof .fp-ico { color: var(--brass); }
.fp-hero.has-image .fp-hero-stats { border-top-color: rgba(23,20,15,.14); }
.fp-hero.has-image .fp-hero-stats > div { border-right-color: rgba(23,20,15,.14); }
.fp-hero.has-image .fp-hero-stats dd { color: var(--ink); }
.fp-hero.has-image .fp-hero-stats dt { color: var(--muted); }
.fp-js .fp-hero.has-image .fp-hero-photo img { animation: fp-hero-zoom 14s cubic-bezier(.2,.7,.2,1) both; }
@keyframes fp-hero-zoom { from { transform: scale(1.06); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .fp-js .fp-hero.has-image .fp-hero-photo img { animation: none; } }
@media (max-width: 1000px) {
  .fp-hero-photo::after { background: linear-gradient(90deg, rgba(244,239,230,.96) 0%, rgba(244,239,230,.85) 45%, rgba(244,239,230,.2) 80%); }
}
@media (max-width: 720px) {
  /* Mobil: bildet øverst, teksten under på lys bunn. */
  .fp-hero.has-image { display: flex; flex-direction: column; }
  .fp-hero.has-image .fp-hero-photo { position: relative; inset: auto; z-index: 0; height: 250px; order: -1; }
  .fp-hero.has-image .fp-hero-photo img { object-position: 96% 50%; }
  .fp-hero.has-image .fp-hero-photo::after { background: linear-gradient(180deg, rgba(239,232,220,0) 55%, #EFE8DC 100%); }
  .fp-hero.has-image .fp-hero-grid { min-height: 0; padding-block: 8px 40px; }
}

/* ============================================================
   TILLITSSTRIPE
   ============================================================ */
.fp-trust { background: #100E0A; border-top: 1px solid #2A2419; border-bottom: 3px solid var(--brass); color: #DCD2BF; overflow: hidden; }
.fp-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.fp-marquee-track { display: flex; width: max-content; animation: fp-marquee 48s linear infinite; }
.fp-trust:hover .fp-marquee-track { animation-play-state: paused; }
.fp-marquee-list { display: flex; list-style: none; margin: 0; padding: 0; }
.fp-marquee-list li { display: inline-flex; align-items: center; gap: 10px; padding: 17px 30px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.fp-marquee-list li::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #5A503F; margin-left: 30px; }
.fp-marquee-list .fp-ico { width: 19px; height: 19px; color: #E8C98A; }
@keyframes fp-marquee { to { transform: translateX(-50%); } }

/* ============================================================
   KATEGORIMOSAIKK
   ============================================================ */
.is-front .sec.fp-cats { padding: 80px 0 72px; }
.fp-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 230px; gap: 16px; grid-auto-flow: dense; }
.fp-tile {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .2s;
}
.fp-tile.is-big { grid-column: span 2; grid-row: span 2; background: radial-gradient(circle at 50% 38%, #FFFFFF 0%, #F6F4EE 100%); }
.fp-tile:hover { color: var(--ink); transform: translateY(-4px); border-color: #D9C9A3; box-shadow: 0 26px 50px -30px rgba(23,20,15,.45); }
/* Bildet fyller flaten over teksten, uansett bildets egne mål. */
.fp-tile-media { --pad: 18px; position: relative; flex: 1; min-height: 0; }
.fp-tile.is-big .fp-tile-media { --pad: 40px; }
.fp-tile-media img {
  position: absolute; top: var(--pad); left: var(--pad); width: calc(100% - 2 * var(--pad)); height: calc(100% - var(--pad));
  object-fit: contain; transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.fp-tile:hover .fp-tile-media img { transform: scale(1.06); }
.fp-tile-text { display: flex; flex-direction: column; gap: 3px; padding: 12px 16px 15px; }
.fp-tile-text b { font-family: var(--f-display); font-size: 17px; font-weight: 600; line-height: 1.2; }
.fp-tile.is-big .fp-tile-text { padding: 18px 26px 24px; }
.fp-tile.is-big .fp-tile-text b { font-size: clamp(24px, 2.3vw, 32px); font-weight: 500; letter-spacing: -.01em; }
.fp-tile-desc { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); max-width: 46ch; margin: 4px 0 4px; }
.fp-tile-count { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.fp-tile-go {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; opacity: 0; transform: scale(.8) rotate(-45deg); transition: opacity .25s, transform .3s cubic-bezier(.2,.7,.2,1);
}
.fp-tile-go .fp-ico { width: 18px; height: 18px; }
.fp-tile:hover .fp-tile-go, .fp-tile:focus-visible .fp-tile-go { opacity: 1; transform: none; }

/* Med stemningsbilde: bildet fyller flisen, teksten ligger oppå. */
.fp-tile.has-photo { background: var(--ink); border-color: transparent; color: #fff; }
.fp-tile.has-photo:hover { color: #fff; border-color: transparent; box-shadow: 0 30px 60px -30px rgba(23,20,15,.6); }
.fp-tile.has-photo .fp-tile-media { position: absolute; inset: 0; --pad: 0px; }
.fp-tile.has-photo .fp-tile-media img { top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.fp-tile.has-photo .fp-tile-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(17,14,10,0) 38%, rgba(17,14,10,.55) 68%, rgba(17,14,10,.88) 100%);
}
.fp-tile.has-photo .fp-tile-text { position: relative; z-index: 1; margin-top: auto; }
.fp-tile.has-photo .fp-tile-text b { color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.fp-tile.has-photo .fp-tile-desc { color: #E6DDCB; }
.fp-tile.has-photo .fp-tile-count { color: #E8C98A; }
.fp-tile.has-photo .fp-tile-go { background: #fff; color: var(--ink); z-index: 2; }
.fp-tile.has-photo:hover .fp-tile-media img { transform: scale(1.05); }

/* ============================================================
   KARUSELL
   ============================================================ */
.is-front .sec.fp-carousel { padding: 76px 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fp-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 16px) / 5); gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding: 4px 2px 18px; margin: -4px -2px -18px;
}
.fp-rail::-webkit-scrollbar { display: none; }
.fp-rail > * { scroll-snap-align: start; }

/* ============================================================
   OBJEKT I FOKUS
   ============================================================ */
.fp-spot { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: 96px 0;
  background:
    radial-gradient(700px 520px at 25% 50%, rgba(232,201,138,.14), rgba(232,201,138,0) 65%),
    linear-gradient(160deg, #1C1812 0%, #110F0B 70%);
}
.fp-spot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.fp-spot-media { position: relative; }
.fp-spot-plate {
  display: block; border-radius: 18px; background: #fff; padding: 6%;
  box-shadow: 0 60px 100px -50px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.fp-spot-plate:hover { transform: scale(1.015) rotate(-.4deg); }
.fp-spot-plate img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.fp-spot-thumbs { display: flex; gap: 10px; margin-top: 14px; }
.fp-spot-thumbs span { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
.fp-spot-thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.fp-spot-text h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(30px, 3.5vw, 48px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 18px; text-wrap: balance; }
.fp-spot-text h2 a { color: #fff; }
.fp-spot-text h2 a:hover { color: #F3DDAE; }
.fp-spot-lede { margin: 0 0 28px; font-size: 17px; line-height: 1.7; color: #CFC5B2; max-width: 56ch; }
.fp-spot-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 30px; border-top: 1px solid #352E22; border-bottom: 1px solid #352E22; }
.fp-spot-facts > div { padding: 16px 16px 16px 0; }
.fp-spot-facts > div + div { padding-left: 16px; border-left: 1px solid #352E22; }
.fp-spot-facts dt { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #A0937A; margin-bottom: 5px; }
.fp-spot-facts dd { margin: 0; font-size: 15px; font-weight: 600; color: #fff; }
.fp-spot-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.fp-spot-price { font-family: var(--f-display); font-size: clamp(30px, 3vw, 40px); font-weight: 500; color: #E8C98A; font-variant-numeric: tabular-nums; }
.fp-spot-price .amount { color: inherit; }
.fp-spot-price del { font-size: 18px; color: #A0937A; margin-right: 8px; }
.fp-spot-price ins { text-decoration: none; }
.fp-spot-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fp-spot-trust { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.fp-spot-trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: #DCD2BF; }
.fp-spot-trust .fp-ico { width: 18px; height: 18px; color: #E8C98A; }

/* ============================================================
   BUDSJETT
   ============================================================ */
.is-front .sec.fp-budget { padding: 88px 0; }
.fp-bands { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fp-bands a {
  position: relative; height: 100%; display: flex; flex-direction: column; gap: 8px; padding: 26px 24px 22px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .2s;
}
.fp-bands a:hover { color: var(--ink); transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 26px 50px -30px rgba(23,20,15,.4); }
.fp-band-step { font-size: 14px; letter-spacing: 3px; color: var(--brass); }
.fp-bands b { font-family: var(--f-display); font-size: clamp(22px, 2vw, 27px); font-weight: 500; letter-spacing: -.01em; line-height: 1.15; }
.fp-band-count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fp-band-bar { display: block; height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin: 10px 0 8px; }
.fp-band-bar span { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #CDA75F, #E8C98A); transform-origin: left; transform: scaleX(var(--fill, 1)); transition: transform 1.1s cubic-bezier(.2,.7,.2,1) .2s; }
.fp-js .fp-bands li.rv:not(.in) .fp-band-bar span { transform: scaleX(0); }
.fp-band-go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--accent); }
.fp-band-go .fp-ico { width: 17px; height: 17px; transition: transform .2s; }
.fp-bands a:hover .fp-band-go .fp-ico { transform: translateX(4px); }

/* ============================================================
   TIDSLINJE
   ============================================================ */
.is-front .sec.fp-time { padding: 88px 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.fp-time-rail {
  position: relative; list-style: none; margin: 0; padding: 0 0 8px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, calc((100% - 3 * 20px) / 4)); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
}
.fp-time-rail::-webkit-scrollbar { display: none; }
.fp-time-rail > li { position: relative; scroll-snap-align: start; display: flex; flex-direction: column; padding-top: 30px; }
/* Linjen gjennom prikkene */
.fp-time-rail > li::before { content: ""; position: absolute; top: 7px; left: 0; right: -20px; height: 2px; background: linear-gradient(90deg, #D9C9A3, #EFE6D2); }
.fp-time-rail > li:last-child::before { right: 0; background: linear-gradient(90deg, #D9C9A3, rgba(217,201,163,0)); }
.fp-time-dot { position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brass); box-shadow: 0 0 0 5px var(--surface); }
.fp-time-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--brass); }
.fp-time-period { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); margin-bottom: 12px; }
.fp-time-card {
  flex: 1; display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .2s;
}
a.fp-time-card:hover { color: var(--ink); transform: translateY(-4px); border-color: #D9C9A3; box-shadow: 0 26px 50px -30px rgba(23,20,15,.4); }
.fp-time-media { display: flex; align-items: center; justify-content: center; height: 170px; padding: 18px; background: #fff; border-bottom: 1px solid var(--line); }
.fp-time-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
a.fp-time-card:hover .fp-time-media img { transform: scale(1.06); }
.fp-time-media.has-photo { padding: 0; height: 190px; overflow: hidden; background: var(--ink); }
.fp-time-media.has-photo img { object-fit: cover; }
.fp-time-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.fp-time-body h3 { font-family: var(--f-display); font-size: 21px; font-weight: 600; line-height: 1.2; margin: 0; }
.fp-time-body p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.fp-time-link { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--accent); }
.fp-time-link .fp-ico { width: 17px; height: 17px; transition: transform .2s; }
a.fp-time-card:hover .fp-time-link .fp-ico { transform: translateX(4px); }

/* ============================================================
   SPØRSMÅL OG SVAR
   ============================================================ */
.is-front .sec.fp-faq { padding: 96px 0; }
.fp-faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.fp-faq-side { position: sticky; top: 28px; }
.fp-faq-side h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.08; letter-spacing: -.018em; margin: 0; text-wrap: balance; }
.fp-faq-ask { display: flex; flex-direction: column; gap: 6px; margin-top: 30px; padding: 20px 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.fp-faq-ask span { font-size: 14px; color: var(--ink-2); }
.fp-faq-ask a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent); font-size: 15px; }
.fp-faq-ask .fp-ico { width: 18px; height: 18px; transition: transform .2s; }
.fp-faq-ask a:hover .fp-ico { transform: translateX(4px); }
.fp-faq-list { border-top: 1px solid var(--line-2); }
.fp-qa { border-bottom: 1px solid var(--line-2); }
.fp-qa summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; }
.fp-qa summary::-webkit-details-marker { display: none; }
.fp-qa summary h3 { font-family: var(--f-display); font-size: clamp(18px, 1.6vw, 21px); font-weight: 500; line-height: 1.3; margin: 0; color: var(--ink); transition: color .15s; }
.fp-qa summary:hover h3 { color: var(--accent); }
.fp-qa-ico { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); transition: background .2s, border-color .2s, transform .3s; }
.fp-qa-ico::before, .fp-qa-ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; margin: -.8px 0 0 -6px; background: var(--ink); border-radius: 2px; transition: transform .3s, background .2s; }
.fp-qa-ico::after { transform: rotate(90deg); }
.fp-qa[open] .fp-qa-ico { background: var(--ink); border-color: var(--ink); transform: rotate(180deg); }
.fp-qa[open] .fp-qa-ico::before, .fp-qa[open] .fp-qa-ico::after { background: #fff; }
.fp-qa[open] .fp-qa-ico::after { transform: rotate(0deg); }
.fp-qa-body { overflow: hidden; }
.fp-qa-body p { margin: 0; padding: 0 56px 24px 0; font-size: 16px; line-height: 1.7; color: var(--ink-2); }

/* ============================================================
   Rytme for de eksisterende seksjonene på forsiden
   ============================================================ */
.is-front .split { padding: 96px 0; background: var(--surface); border-top: 1px solid var(--line); }
.is-front .split-text h2 { font-weight: 500; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.08; letter-spacing: -.018em; }
.is-front .features { padding: 88px 0; }
.is-front .features-head h2 { font-weight: 500; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.08; letter-spacing: -.018em; }
.is-front .features-grid li { border-radius: 14px; }
.is-front .posts-sec { padding: 88px 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.is-front .posts-sec .sec-head h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(28px, 3.2vw, 42px); letter-spacing: -.018em; }
.is-front .sec:has(> .wrap > .cta-band) { padding: 88px 0 96px; }
.is-front .cta-band { border-radius: 18px; padding: 52px 56px;
  background: radial-gradient(600px 300px at 90% 10%, rgba(232,201,138,.18), rgba(232,201,138,0) 70%), linear-gradient(150deg, #1C1812, #110F0B);
}
.is-front .cta-band h2 { font-weight: 500; font-size: clamp(26px, 2.8vw, 38px); }

/* ============================================================
   Innkomst ved rulling (klassene settes av front.js)
   ============================================================ */
.fp-js .rv { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1) var(--d, 0s), transform .8s cubic-bezier(.2,.7,.2,1) var(--d, 0s); }
.fp-js .rv.in { opacity: 1; transform: none; }
.fp-js .rv.rv-zoom { transform: scale(.96); }
.fp-js .rv.rv-zoom.in { transform: none; }
/* Hero vises med en gang, i trinn */
.fp-js .fp-hero-copy > * { animation: fp-rise .9s cubic-bezier(.2,.7,.2,1) both; }
.fp-js .fp-hero-copy > :nth-child(2) { animation-delay: .08s; }
.fp-js .fp-hero-copy > :nth-child(3) { animation-delay: .16s; }
.fp-js .fp-hero-copy > :nth-child(4) { animation-delay: .24s; }
.fp-js .fp-hero-copy > :nth-child(5) { animation-delay: .32s; }
.fp-js .fp-hero-copy > :nth-child(6) { animation-delay: .4s; }
.fp-js .fp-hero-visual { animation: fp-rise-in 1.1s cubic-bezier(.2,.7,.2,1) .15s both; }
/* Uten opacity 0: teksten og bildet er synlige fra første bilde (LCP venter ikke på animasjonen). */
@keyframes fp-rise { from { transform: translateY(14px); } to { transform: none; } }
@keyframes fp-rise-in { from { transform: translateY(20px) scale(.98); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .fp-js .rv, .fp-js .rv.rv-zoom { opacity: 1; transform: none; transition: none; }
  .fp-js .fp-hero-copy > *, .fp-js .fp-hero-visual, .fp-hero-plate, .fp-live::after { animation: none; }
  .fp-marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .fp-marquee-list[aria-hidden="true"] { display: none; }
  .fp-marquee-list { flex-wrap: wrap; justify-content: center; }
  .fp-band-bar span { transition: none; }
}

/* ============================================================
   Mindre skjermer
   ============================================================ */
@media (max-width: 1240px) {
  .fp-rail { grid-auto-columns: calc((100% - 3 * 16px) / 4); }
}
@media (max-width: 1000px) {
  .fp-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 52px 60px; }
  .fp-hero-visual { max-width: 560px; }
  .fp-hero-card { left: 16px; }
  .fp-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 210px; }
  .fp-rail { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
  .fp-spot-grid, .fp-faq-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .fp-faq-side { position: static; }
  .fp-bands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fp-time-rail { grid-auto-columns: minmax(260px, 42%); }
}
@media (max-width: 720px) {
  .fp-head { margin-bottom: 22px; }
  .fp-head-actions .fp-arrows { display: none; }
  .fp-hero-grid { padding-block: 36px 44px; }
  .fp-hero-eyebrow { font-size: 11px; margin-bottom: 18px; }
  .fp-hero-intro { font-size: 16.5px; margin-bottom: 24px; }
  .fp-hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .fp-hero-proof { margin-top: 24px; gap: 8px 16px; }
  .fp-hero-proof li { font-size: 13px; }
  .fp-hero-stats { margin-top: 28px; padding-top: 20px; }
  .fp-hero-stats > div { padding-right: 18px; margin-right: 18px; }
  .fp-hero-visual { padding-bottom: 70px; }
  .fp-hero-card { left: 12px; right: 12px; width: auto; padding: 14px 16px; }
  .fp-marquee-list li { padding: 14px 20px; font-size: 13px; }
  .fp-marquee-list li::after { margin-left: 20px; }
  .is-front .sec.fp-cats, .is-front .sec.fp-carousel, .is-front .sec.fp-budget, .is-front .sec.fp-time,
  .is-front .sec.fp-faq, .is-front .split, .is-front .features, .is-front .posts-sec { padding: 56px 0; }
  .fp-spot { padding: 64px 0; }
  .fp-bento { grid-auto-rows: 170px; gap: 10px; }
  .fp-tile.is-big { grid-row: span 2; }
  .fp-tile-media { --pad: 12px; }
  .fp-tile.is-big .fp-tile-media { --pad: 22px; }
  .fp-tile.is-big .fp-tile-text { padding: 12px 16px 16px; }
  .fp-tile-desc { display: none; }
  .fp-tile-text b { font-size: 15px; }
  .fp-tile-go { display: none; }
  .fp-rail { grid-auto-columns: 46%; gap: 11px; }
  .fp-spot-facts { grid-template-columns: minmax(0, 1fr); }
  .fp-spot-facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid #352E22; }
  .fp-spot-actions, .fp-spot-actions .btn { flex: 1 1 100%; justify-content: center; }
  .fp-bands { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .fp-time-rail { grid-auto-columns: 82%; }
  .fp-qa-body p { padding-right: 0; }
  .is-front .cta-band { padding: 32px 24px; }
}

/* Varm bakgrunn i stedet for den kalde blågrå (#F4EFE3) på forsiden og seksjonssidene. */
body.is-front, body.page-template-sections {
  --paper: #F4EFE3;
  --surface-2: #ECE4D2;
  background-color: #F4EFE3;
}

/* Mobil: tallene i heroen på én rad med tre kolonner */
@media (max-width: 720px) {
  .fp-hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fp-hero-stats > div { min-width: 0; padding: 0 10px; margin: 0; }
  .fp-hero-stats > div:first-child { padding-left: 0; }
  .fp-hero-stats > div:last-child { padding-right: 0; }
  .fp-hero-stats dd { font-size: clamp(19px, 5.6vw, 24px); overflow-wrap: anywhere; }
  .fp-hero-stats dt { font-size: 9.5px; letter-spacing: .07em; line-height: 1.35; }
}

/* Mobil: uskarphet bak glasskort er tung å tegne; bruk en tett farge i stedet. */
@media (max-width: 720px) {
  .fp-hero [style*="backdrop"], .fp-hero-card, .fp-hero .fp-glass { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}

/* Ytelse (PageSpeed): på mobil og nettbrett står heroen stille. Lange animasjoner
   i første skjermbilde (zoom over 14 s, svev) gjorde at siden aldri ble «ferdig tegnet». */
@media (max-width: 1100px) {
  .fp-js .fp-hero.has-image .fp-hero-photo img,
  .fp-js .fp-hero-copy > *,
  .fp-js .fp-hero-visual,
  .fp-hero-coin, .fp-hero-visual img { animation: none !important; }
}

/* Seksjoner under bretten tegnes først når de nærmer seg skjermen. */
body.is-front main > section.sec,
body.is-front main > section.fp-spot,
body.page-template-sections main > section.sec { content-visibility: auto; contain-intrinsic-size: auto 760px; }
