/* ============================================================
   VARDEN — vardenturnus.no
   Dark-first «expensive matte». Aurora rationed. Hairlines as
   depth, light does the lifting — no drop-shadows.
   All assets self-hosted; no external requests.
   ============================================================ */

@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/fonts/SchibstedGrotesk-Variable.woff2') format('woff2');
  font-weight: 400 900; font-display: swap;
}
/* Bredde-matchet reserveskrift: rendres i Schibsteds bredde (~0.90x Arial) mens
   web-fonten lastes, så overskrifter ikke «hopper» smalere når fonten kommer.
   Fikser FOUT-reflowen på iOS Safari der font-display alene ikke holdt. */
@font-face {
  font-family: 'Schibsted Fallback';
  src: local('Arial'), local('Helvetica Neue'), local('Liberation Sans'), local('Roboto');
  size-adjust: 90%;
  ascent-override: 97.7%;
  descent-override: 25.8%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/IBMPlexMono-Regular.woff2') format('woff2');
  font-weight: 400; font-display: block;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/IBMPlexMono-Medium.woff2') format('woff2');
  font-weight: 500; font-display: block;
}

:root {
  --bg: #06181F;
  --lift: #081D26;
  --ink: #E9F2F2;
  --muted: #93ABB0;
  --ghost: #849AA0;

  --a1: #0F6E7C;
  --a2: #18B9C4;
  --a3: #3DE8A0;
  --aurora-grad: linear-gradient(135deg, var(--a1) 0%, var(--a2) 50%, var(--a3) 100%);

  --dag: var(--a3);
  --kveld: var(--a2);
  --natt: var(--a1);

  --s2: #0A222C;
  --s3: #0D2934;
  --line: rgba(233, 242, 242, 0.08);
  --line-strong: rgba(233, 242, 242, 0.16);

  --font-ui: 'Schibsted Grotesk', 'Schibsted Fallback', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --maxw: 1120px;
  --pad: clamp(20px, 5vw, 64px);
  --nav-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  scrollbar-gutter: stable;
}
body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}
::selection { background: var(--a3); color: #052018; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--a3); outline-offset: 3px; border-radius: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  background: var(--a3); color: #052018; text-decoration: none;
  font-weight: 600; font-size: 14px; padding: 10px 18px; border-radius: 4px;
  transition: top 0.2s;
}
.skip:focus { top: 12px; }

/* ============================================================
   Scenen — fast bak alt innhold
   ============================================================ */
.scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#sky { opacity: 0; transition: opacity 1.4s ease; }
#sky.live { opacity: 1; }
#field { z-index: 2; }

/* CSS-himmel: reserven når WebGL mangler — og grunnfargen bak alt.
   Samme strata som WebGL-scenen: lyset øverst, mørk bakke nederst. */
#cssSky {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 55% at 50% -10%, rgba(24, 185, 196, 0.16) 0%, rgba(24, 185, 196, 0.05) 45%, transparent 70%),
    radial-gradient(70% 42% at 24% -6%, rgba(61, 232, 160, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, #07202B 0%, var(--bg) 45%, #04121A 100%);
}
.js:not(.reduced):not(.webgl) #cssSky { animation: skydrift 46s ease-in-out infinite alternate; }
@keyframes skydrift {
  from { filter: hue-rotate(0deg) brightness(1); }
  to   { filter: hue-rotate(-14deg) brightness(1.12); }
}

/* film grain — soft-light, statisk, billig */
.grain {
  position: fixed; inset: -2%; z-index: 40; pointer-events: none;
  mix-blend-mode: soft-light; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* egendefinert peker — kun fin peker, kun med JS */
#cursor, #cursorRing { position: fixed; top: 0; left: 0; z-index: 120; pointer-events: none; display: none; }
.has-cursor #cursor {
  display: block; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%;
  background: var(--a3);
}
.has-cursor #cursorRing {
  display: block; width: 32px; height: 32px; margin: -16px; border-radius: 50%;
  border: 1px solid rgba(61, 232, 160, 0.38);
}
.has-cursor { cursor: none; }
.has-cursor a, .has-cursor button, .has-cursor input,
.has-cursor textarea, .has-cursor [tabindex] { cursor: none; }

/* ============================================================
   Forlaster — merket løser seg i takt med innlastingen
   ============================================================ */
#preloader { display: none; }
.pre #preloader {
  display: flex; position: fixed; inset: 0; z-index: 150;
  background: #04121A;
  flex-direction: column; align-items: center; justify-content: center; gap: 26px;
}
.pre-stage { position: relative; width: 132px; height: 132px; }
.pre-art { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: visible; }
.pre-art circle { fill: none; stroke-width: 1.5; }
.pre-art .bgc { stroke: rgba(233, 242, 242, 0.09); }
.pre-art .fgc { stroke: var(--a2); stroke-linecap: round; }
.pre-word {
  font-weight: 700; font-size: 15px; letter-spacing: 0.3em; padding-left: 0.3em;
  color: var(--ink);
}
.pre-word .pre-sub {
  display: block; width: fit-content; margin: 9px auto 0;
  font-family: var(--font-mono); font-weight: 500; font-size: 8.5px;
  letter-spacing: 0.26em; text-transform: uppercase; line-height: 1;
  color: var(--a2); border: 1px solid rgba(24, 185, 196, 0.4);
  border-radius: 4px; padding: 4px 3px 4px 8px;
}
.pre-num {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em;
  color: var(--ghost); font-variant-numeric: tabular-nums;
}
.pre-num em { font-style: normal; color: var(--ink); }
.pre #preloader { transition: opacity 0.45s ease; }
.pre #preloader.fade { opacity: 0; pointer-events: none; }
.pre #preloader.done #pb4 { filter: drop-shadow(0 0 16px rgba(61, 232, 160, 0.85)); transition: filter 0.3s ease; }

/* «Kopiér adressen»-knapp i kontaktnoten */
.copy-mail { font: 500 12px/1 var(--font-mono); color: var(--a2); background: none;
  border: 1px solid var(--line); border-radius: 6px; padding: 5px 9px; margin-left: 5px;
  letter-spacing: 0.04em; cursor: pointer; transition: border-color 0.2s, color 0.2s; white-space: nowrap; }
.copy-mail:hover, .copy-mail:focus-visible { border-color: var(--a2); color: var(--a3); outline: none; }
.copy-mail.done { color: var(--a3); border-color: var(--a3); }

/* ============================================================
   Topplinje — glass
   ============================================================ */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 20px;
  height: var(--nav-h); padding: 0 clamp(16px, 3vw, 34px);
  background: rgba(6, 24, 31, 0.62);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.lockup svg { width: 22px; height: 22px; }
.lk-name { font-weight: 700; font-size: 14px; letter-spacing: 0.07em; color: var(--ink); line-height: 1; }
/* produktbetegnelsen som systemmerke — samme språk som Alpha-merket og
   vaktbrikkene i generatoren */
.lk-sub {
  font-family: var(--font-mono); font-size: 8.5px; font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase; line-height: 1;
  color: var(--a2); border: 1px solid rgba(24, 185, 196, 0.4);
  border-radius: 4px; padding: 4px 3px 4px 8px;
}
.bar-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); }
.bar-nav a {
  text-decoration: none; font-size: 13.5px; font-weight: 500; color: var(--muted);
  transition: color 0.25s;
}
.bar-nav a:hover { color: var(--ink); }
.bar-nav .bar-cta {
  color: var(--ink); border: 1px solid var(--line-strong);
  padding: 9px 16px; border-radius: 100px; transition: border-color 0.25s, color 0.25s;
}
.bar-nav .bar-cta:hover { border-color: var(--a2); color: var(--a3); }
@media (max-width: 720px) { .bar-nav a:not(.bar-cta) { display: none; } }

/* ============================================================
   Akter — felles
   ============================================================ */
main { position: relative; z-index: 10; }
.act {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 18vh var(--pad); position: relative;
}
/* flex-sentrerte barn måler ellers sin egen innholdsbredde og kan
   sprenge små viewporter — lås alt til containeren */
.act > *, .solve-sticky > * { max-width: 100%; }
.act-inner { max-width: 780px; width: 100%; margin: 0 auto; }
.act-inner.wide { max-width: var(--maxw); }

.eyebrow {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--a2);
  margin-bottom: 26px;
}
.alpha {
  font-size: 9px; letter-spacing: 0.2em; color: #052018; background: var(--a3);
  border-radius: 3px; padding: 2px 7px; margin-left: 10px; vertical-align: 2px;
}

.display {
  font-weight: 700; letter-spacing: 0.015em; line-height: 1.04;
  font-size: clamp(40px, 6.6vw, 88px);
  font-variation-settings: 'wght' 700;
  text-wrap: balance;
}
.display .lnw { display: block; overflow: hidden; padding-bottom: 0.09em; margin-bottom: -0.09em; }
.display .ln { display: inline-block; will-change: transform; }

/* avsløringer: alt synlig uten JS; med JS animeres inn ved scroll */
.js .rv { opacity: 0; transform: translateY(26px); }
.js .rv.in {
  opacity: 1; transform: none;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 110ms);
}
.js .rv-h .ln { transform: translateY(112%); }
.js .rv-h { font-variation-settings: 'wght' 400; }
.js .rv-h.in .ln {
  transform: none;
  transition: transform 1s var(--ease);
}
.js .rv-h.in .lnw:nth-child(2) .ln { transition-delay: 90ms; }
.js .rv-h.in {
  font-variation-settings: 'wght' 700;
  transition: font-variation-settings 1.15s var(--ease) 0.3s;
}

.lede {
  margin-top: 28px; font-size: clamp(16px, 1.8vw, 19px); line-height: 1.7;
  color: var(--muted); max-width: 58ch; margin-inline: auto; text-wrap: pretty;
}
.lede strong, .lede b { color: var(--ink); font-weight: 600; }
.sub { margin-top: 14px; font-size: 14px; color: var(--ghost); max-width: 52ch; margin-inline: auto; }

.strap {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--ghost); margin-top: 34px; text-transform: uppercase;
}

/* ============================================================
   Akt 1 · Hero
   ============================================================ */
.act-hero { padding-top: calc(var(--nav-h) + 10vh); }
.act-hero .display { font-size: clamp(46px, 9vw, 128px); }
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-size: 15px; font-weight: 600; padding: 15px 28px; border-radius: 100px;
  border: 1px solid transparent; transition: box-shadow 0.35s, border-color 0.25s, color 0.25s, filter 0.25s;
}
.btn-primary { background: var(--aurora-grad); color: #052018; }
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 0 44px rgba(61, 232, 160, 0.28); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--a2); color: var(--a3); }

.scrolldown {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.sd-word {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--ghost); padding-left: 0.34em;
}
.sd-line { position: relative; width: 1px; height: 52px; background: linear-gradient(rgba(233,242,242,0), rgba(233,242,242,0.5)); }
.sd-line i { position: absolute; left: -1.5px; bottom: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--a3); opacity: 0; }

/* ============================================================
   Akt 2 · Problemet
   ============================================================ */
.kravrow { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 40px; list-style: none; }
.kravrow li {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: 100px; padding: 9px 18px;
}
.krav-punch { margin-top: 26px; font-size: 15.5px; color: var(--ink); font-weight: 500; }

/* ============================================================
   Akt 3 · Løsningen — festet skrubb
   ============================================================ */
.act-solve { position: relative; }
.solve-track { height: 230vh; position: relative; }
.solve-sticky {
  position: sticky; top: 0; height: 100vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 0 var(--pad);
}
.solve-hud { margin-top: 44px; }
.hud-phases {
  display: flex; gap: 26px; justify-content: center;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hud-phase { color: var(--ghost); transition: color 0.4s; position: relative; padding-top: 12px; }
.hud-phase::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--line-strong);
}
/* skrubbe-affordans: fasestrekene ER fremdriften */
.hud-phase .ph-fill {
  position: absolute; top: 0; left: 0; width: 100%; height: 1px;
  background: var(--a3); transform: scaleX(0); transform-origin: left;
}
.hud-phase.on { color: var(--a3); }
.hud-readouts { display: flex; gap: clamp(20px, 5vw, 64px); justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.ro b {
  display: block; font-weight: 700; font-size: clamp(30px, 4.4vw, 54px);
  letter-spacing: 0.01em; font-variant-numeric: tabular-nums; color: var(--ink);
}
.ro-u {
  display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ghost);
}
.solve-cap { margin-top: 44px; font-size: clamp(16px, 2vw, 21px); color: var(--muted); }
.solve-cap b { color: var(--ink); }
.js .solve-cap { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .solve-cap.on { opacity: 1; transform: none; }

/* ============================================================
   Akt 4 · Demoen
   ============================================================ */
.act-demo { padding-bottom: 12vh; }
.demo-panel {
  margin-top: 46px; text-align: left;
  background: rgba(8, 29, 38, 0.72);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 16px;
  padding: clamp(16px, 2.6vw, 30px);
}
.demo-controls { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.demo-methods { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 260px; }
.demo-chip {
  font-family: var(--font-ui); font-size: 13px; font-weight: 500; color: var(--muted);
  background: transparent; border: 1px solid var(--line-strong); border-radius: 100px;
  padding: 8px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.demo-chip:hover { color: var(--ink); border-color: rgba(24, 185, 196, 0.5); }
.demo-chip.on { color: #052018; background: var(--a3); border-color: var(--a3); font-weight: 600; }
.demo-chip .dc-phase { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; opacity: 0.75; }
.demo-chip .dc-badges i { font-style: normal; font-size: 11px; margin-left: 2px; }
.b-cov { color: var(--a3); } .b-fair { color: var(--a2); } .b-cost { color: var(--muted); }
.demo-chip.on .dc-badges i { color: #052018; }
.demo-gen {
  font-family: var(--font-ui); font-size: 13px; font-weight: 600; color: var(--ink);
  background: transparent; border: 1px solid var(--line-strong); border-radius: 100px;
  padding: 9px 18px; cursor: pointer; transition: border-color 0.2s, color 0.2s;
}
.demo-gen:hover { border-color: var(--a2); color: var(--a3); }
.demo-gen.busy { opacity: 0.6; pointer-events: none; }

.demo-readouts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.d-readout {
  flex: 1; min-width: 118px; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; background: rgba(6, 24, 31, 0.5);
}
.d-readout .dr-n { font-weight: 700; font-size: 19px; font-variant-numeric: tabular-nums; }
.d-readout .dr-l {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ghost); margin-top: 3px;
}
.d-readout.win { border-color: rgba(61, 232, 160, 0.4); }
.d-readout.win .dr-n { color: var(--a3); }

.demo-grid-wrap { margin-top: 18px; overflow-x: auto; border-radius: 10px; }
.demo-grid { min-width: 720px; }
.demo-grid .dg-head, .demo-grid .dg-row { display: flex; align-items: center; }
.demo-grid .dg-corner, .demo-grid .dg-name {
  flex: 0 0 128px; font-size: 11.5px; color: var(--muted);
  padding: 3px 10px 3px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.demo-grid .dg-name i { font-style: normal; color: var(--ghost); font-family: var(--font-mono); font-size: 9px; margin-left: 6px; }
.demo-grid .dg-corner { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ghost); }
.demo-grid .dg-days, .demo-grid .dg-cells { display: flex; gap: 3px; flex: 1; }
.demo-grid .dg-day {
  flex: 1; text-align: center; font-family: var(--font-mono); font-size: 8.5px;
  color: var(--ghost); line-height: 1.25; padding-bottom: 4px;
}
.demo-grid .dg-day b { display: block; font-weight: 500; }
.demo-grid .dg-day.we { color: var(--a2); }
/* vaktbrikker: FULLE merkefarger bærer forskjellen (dag lysest →
   natt dypest), strukturen bærer profesjonaliteten: avrundede
   brikker med tynn innfelt kant, frie dager som prikk. */
.demo-grid .dg-cell {
  flex: 1; aspect-ratio: 1; min-width: 13px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 8.5px; font-weight: 500;
  background: rgba(233, 242, 242, 0.025);
  box-shadow: inset 0 0 0 1px rgba(233, 242, 242, 0.06);
}
.demo-grid .dg-cell.off::after { content: "·"; color: rgba(233, 242, 242, 0.22); }
.demo-grid .dg-cell.dag {
  background: var(--dag); color: #052018;
  box-shadow: inset 0 0 0 1px rgba(5, 32, 24, 0.20);
}
.demo-grid .dg-cell.kveld {
  background: var(--kveld); color: #04181C;
  box-shadow: inset 0 0 0 1px rgba(4, 24, 28, 0.20);
}
.demo-grid .dg-cell.natt {
  background: var(--natt); color: #DFF3F0;
  box-shadow: inset 0 0 0 1px rgba(233, 242, 242, 0.16);
}
.demo-grid .dg-row { margin-top: 3px; }
.js .demo-grid .dg-cell { opacity: 0; transform: scale(0.6); }
.js .demo-grid.revealing .dg-cell {
  opacity: 1; transform: none;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.demo-legend {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 16px; font-size: 12px; color: var(--muted);
}
.demo-legend .lg { display: inline-flex; align-items: center; gap: 7px; }
.demo-legend .sw { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.sw.dag { background: var(--dag); }
.sw.kveld { background: var(--kveld); }
.sw.natt { background: var(--natt); }
.sw.off { background: rgba(233, 242, 242, 0.025); box-shadow: inset 0 0 0 1px rgba(233, 242, 242, 0.10); }
.lg-meta { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--ghost); }
.demo-badgekey { margin-top: 12px; font-size: 12px; color: var(--ghost); }
.demo-note { margin-top: 26px; font-size: 13.5px; color: var(--ghost); max-width: 74ch; margin-inline: auto; line-height: 1.7; }
.demo-note b { color: var(--muted); }
.demo-fallback { padding: 30px; color: var(--muted); font-size: 14px; min-width: 0; white-space: normal; }

/* ============================================================
   Akt 5 · Tillit og lov
   ============================================================ */
.lawgrid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px; margin-top: 46px; text-align: left;
}
.law {
  border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px;
  background: rgba(8, 29, 38, 0.55); transition: border-color 0.3s;
}
.law:hover { border-color: rgba(24, 185, 196, 0.4); }
.law dt { font-weight: 600; font-size: 15px; }
.law-ref {
  display: block; font-family: var(--font-mono); font-weight: 500; font-size: 11px;
  letter-spacing: 0.12em; color: var(--a2); text-transform: uppercase; margin-bottom: 8px;
}
.law dd { margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.65; }
.honest {
  margin-top: 40px; font-size: 14.5px; color: var(--muted); line-height: 1.75;
  max-width: 62ch; margin-inline: auto;
  text-align: left; border-left: 1px solid var(--line-strong);
  padding-left: clamp(16px, 3vw, 24px);
}
.honest b { color: var(--ink); }
/* mono-kicker som forankrer en ærlig-note (samme språk som .law-ref / .sec-kick) */
.honest-k {
  display: block; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--a2);
  margin-bottom: 10px;
}
.proofstrap {
  margin-top: 26px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ghost); line-height: 2;
}

/* ============================================================
   Akt 6 · Sektorer
   ============================================================ */
.sectors {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px; margin-top: 46px; text-align: left;
}
.sector {
  border: 1px solid var(--line); border-radius: 12px; padding: 24px 22px;
  background: rgba(8, 29, 38, 0.55);
  transition: border-color 0.3s, transform 0.45s var(--ease);
}
.sector:hover { border-color: rgba(61, 232, 160, 0.35); transform: translateY(-4px); }
.sec-kick {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--a2); margin-bottom: 14px;
}
.sector h3 { font-size: 17px; font-weight: 600; letter-spacing: 0.01em; }
.sector p:last-child { margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.65; }

/* ============================================================
   Akt 7 · Kontakt
   ============================================================ */
.form { margin-top: 44px; text-align: left; max-width: 460px; margin-inline: auto; display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; font-weight: 500; color: var(--muted); }
.field input, .field textarea {
  font-family: var(--font-ui); font-size: 15px; color: var(--ink);
  background: rgba(8, 29, 38, 0.72); border: 1px solid var(--line-strong);
  border-radius: 10px; padding: 12px 14px; width: 100%;
  transition: border-color 0.25s;
}
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--a2); }
.field textarea { resize: vertical; min-height: 96px; }
.form .btn { border: 0; cursor: pointer; justify-self: start; }
.form-status { font-size: 13px; color: var(--a3); min-height: 1.2em; }
.contact-note { margin-top: 22px; font-size: 13px; color: var(--ghost); max-width: 56ch; margin-inline: auto; }
.contact-note a { color: var(--muted); }
.contact-note a:hover { color: var(--a3); }

/* ============================================================
   Ansvarserklæring + bunn
   ============================================================ */
.disclaimer { position: relative; z-index: 10; padding: 0 var(--pad) 12vh; }
.disclaimer .box {
  max-width: 720px; margin: 0 auto;
  border: 1px solid rgba(24, 185, 196, 0.35); border-radius: 12px;
  background: rgba(6, 24, 31, 0.8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 26px 30px; font-size: 14px; color: var(--muted); line-height: 1.75; text-wrap: pretty;
}
.disclaimer .box b { color: var(--ink); }

.site-footer { position: relative; z-index: 10; border-top: 1px solid var(--line); padding: 54px var(--pad) 34px; }
.foot-inner {
  max-width: var(--maxw); margin: 0 auto; display: flex; gap: 34px;
  align-items: flex-start; justify-content: space-between; flex-wrap: wrap;
}
.foot-brand p { margin-top: 14px; font-size: 13px; color: var(--ghost); max-width: 34ch; }
.foot-brand a { color: var(--muted); }
.foot-brand a:hover { color: var(--a3); }
.foot-links { display: flex; flex-direction: column; gap: 10px; }
.foot-links a { font-size: 13.5px; color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--a3); }
.foot-bottom {
  max-width: var(--maxw); margin: 40px auto 0; padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ghost);
}

/* ============================================================
   Tekstpresentasjon — tekst/design-revisjon (juli 2026)
   Gjenbruker eksisterende språk: hårstrek, mono-kicker, store tall,
   kort-rutenett. Ingen nye farger. Mål: ett prosaavsnitt per seksjon;
   alt opplistbart blir et merket, skannbart element.
   ============================================================ */

/* Stat-fliser: stort tall + mono-etikett (samme tall-språk som .ro) */
.statrow {
  display: flex; gap: clamp(18px, 4vw, 48px); justify-content: center;
  flex-wrap: wrap; margin-top: 40px; list-style: none;
}
.stat b {
  display: block; font-weight: 700; font-size: clamp(22px, 2.6vw, 32px);
  font-variant-numeric: tabular-nums; letter-spacing: 0.01em; color: var(--ink);
}
.stat span {
  display: block; margin-top: 4px; font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ghost);
}

/* Bevislinje i hero: tall løftet til UI-font, hårstrek som skille */
.proofrow { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 34px; list-style: none; }
.proofrow li {
  display: flex; align-items: baseline; gap: 7px;
  padding: 0 clamp(12px, 2vw, 20px); font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ghost);
}
.proofrow li + li { border-left: 1px solid var(--line); }
.proofrow b {
  font-family: var(--font-ui); font-size: 16px; font-weight: 700;
  color: var(--ink); font-variant-numeric: tabular-nums;
}

/* To-korts kontrast: språkmodell vs Varden (#ikke-ai) */
.contrast {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px; margin-top: 34px; text-align: left;
}
.con {
  border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px;
  background: rgba(8, 29, 38, 0.55); font-size: 14px; color: var(--muted); line-height: 1.65;
}
.con-k {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ghost); margin-bottom: 8px;
}
.con--varden { border-color: rgba(61, 232, 160, 0.35); }
.con--varden .con-k { color: var(--a3); }
.con--varden p:last-child { color: var(--ink); }

/* Løft en enkelt lov-celle til full bredde (GDPR-kortet i #tillit) */
.law--wide { grid-column: 1 / -1; }

/* Grunnleggerkort: menneskehistorien + merket faktarutenett (#tillit) */
.founder {
  margin-top: 40px; text-align: left; border: 1px solid var(--line);
  border-radius: 12px; background: rgba(8, 29, 38, 0.55); padding: 24px 26px;
}
.founder-lead { font-size: 15px; color: var(--ink); line-height: 1.7; max-width: 58ch; }
.founder-facts {
  margin-top: 18px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 22px;
}
.founder-facts dt {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--a2);
}
.founder-facts dd { margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.6; }

/* Prosess-steg (#kontakt): nummererte kort */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px; margin-top: 40px; list-style: none; text-align: left;
}
.steps li {
  border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px;
  background: rgba(8, 29, 38, 0.55);
}
.step-k {
  display: block; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--a2);
}
.steps b { display: block; margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--ink); }
.steps p { margin-top: 6px; font-size: 13.5px; color: var(--muted); line-height: 1.65; }

/* Primærsektor: den ene målte sektoren skiller seg visuelt ut (#sektorer) */
.sector--primary { border-color: rgba(61, 232, 160, 0.35); }
.sector--primary .sec-kick { color: var(--a3); }

/* hero-tittel: bokstavkaskade styres av JS. Med forlaster lar vi tittelen
   male FULLT under det tette teppet (tidlig LCP — okklusjon teller ikke);
   uten forlaster skjules den til splittingen er gjort, så ingenting blinker. */
.js:not(.pre) #heroH:not(.split) .ln { opacity: 0; }
#heroH .ch { display: inline-block; will-change: transform, opacity; }

/* ============================================================
   Berøring: ingen festet skrubb — akten løser seg selv i syne
   ============================================================ */
.coarse .solve-track { height: auto; }
.coarse .solve-sticky { position: static; height: auto; padding: 18vh var(--pad); }

/* ============================================================
   Redusert bevegelse + små skjermer
   ============================================================ */
.reduced .scene canvas, .reduced #cursor, .reduced #cursorRing,
.reduced .scrolldown, .reduced #preloader { display: none !important; }
.reduced #cssSky { animation: none; }
.reduced .rv, .reduced .solve-cap { opacity: 1 !important; transform: none !important; transition: none !important; }
.reduced .rv-h { font-variation-settings: 'wght' 700 !important; }
.reduced .rv-h .ln, .reduced #heroH .ln { transform: none !important; transition: none !important; opacity: 1 !important; }
.reduced .demo-grid .dg-cell { opacity: 1 !important; transform: none !important; }
.reduced .solve-track { height: auto; }
.reduced .solve-sticky { position: static; height: auto; padding: 18vh var(--pad); }
.reduced .hud-phase .ph-fill { transform: none; }
.reduced .hud-phase { color: var(--a3); }
/* setninger som beskriver den levende scenen: skjules når scenen er av */
.reduced .scene-note, html:not(.js) .scene-note { display: none; }
html:not(.js) .hud-phase .ph-fill { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

@media (max-width: 760px) {
  .act { padding: 16vh 6vw; }
  .act-hero { padding-top: calc(var(--nav-h) + 8vh); }
  .hud-readouts { gap: 22px; }
  .demo-grid .dg-corner, .demo-grid .dg-name { flex-basis: 104px; }
  .foot-inner { flex-direction: column; }
}
