/* =========================================================
   STORMTAK – stilark
   Fargepalett hentet fra brosjyren: marineblå + skifergrå
   ========================================================= */

:root {
  --navy-900: #071526;
  --navy-800: #0b1d33;
  --navy-700: #0d2d5e;   /* logo – STORMTAK-blå */
  --navy-600: #173f73;
  --slate-500: #4a6584;  /* logo – skifer */
  --slate-300: #9fb2c8;
  --ice: #cfe2f5;
  --paper: #f3f5f7;
  --paper-2: #e8edf2;
  --ink: #111a24;
  --ink-2: #44515f;
  --line: #d6dde5;
  --zeno: #33b56d;
  --white: #fff;

  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 1px 2px rgba(7,21,38,.06), 0 12px 32px -12px rgba(7,21,38,.25);

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --section: clamp(80px, 11vw, 150px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-variation-settings: "wdth" 100;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); line-height: 1.05; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
button { font: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 999; background: var(--white); padding: 8px 14px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--zeno); outline-offset: 3px; }

/* ---------- Typografi ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--slate-500); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow-light { color: var(--slate-300); }
.eyebrow .dot { display: none; }
h2 {
  font-size: clamp(36px, 5.2vw, 68px);
  font-weight: 800;
  font-variation-settings: "wdth" 112;
  letter-spacing: -.025em;
  margin-bottom: 22px;
  color: var(--navy-800);
}
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }

/* ---------- Knapper ---------- */
.btn {
  --bg: var(--navy-700); --fg: var(--white); --bd: var(--navy-700);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; min-height: 48px;
  font-family: var(--f-display); font-weight: 700; font-size: 15px;
  font-variation-settings: "wdth" 108; letter-spacing: .02em;
  text-decoration: none; color: var(--fg); background: var(--bg);
  border: 1.5px solid var(--bd); border-radius: var(--radius);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn span { transition: transform .2s; }
.btn:hover span { transform: translateX(4px); }
.btn-primary:hover { --bg: var(--navy-600); --bd: var(--navy-600); }
.btn-lg { padding: 17px 30px; font-size: 16px; min-height: 56px; }
.btn-sm { padding: 10px 18px; min-height: 42px; font-size: 14px; }
.btn-ghost { --bg: rgba(255,255,255,.06); --bd: rgba(255,255,255,.45); backdrop-filter: blur(6px); }
.btn-ghost:hover { --bg: var(--white); --fg: var(--navy-800); --bd: var(--white); }
.btn-light { --bg: var(--white); --fg: var(--navy-800); --bd: var(--white); }
.btn-light:hover { --bg: var(--ice); --bd: var(--ice); }
.btn-outline { --bg: transparent; --fg: var(--navy-700); --bd: var(--navy-700); }
.btn-outline:hover { --bg: var(--navy-700); --fg: var(--white); }
.link-arrow {
  font-weight: 700; text-decoration: none; color: var(--navy-700);
  border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
}
.link-arrow::after { content: " →"; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  color: var(--white);
  transition: background .35s, box-shadow .35s, height .35s;
}
.site-header.is-solid {
  background: rgba(7,21,38,.88);
  backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
  --header-h: 64px;
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 48px; height: auto; filter: drop-shadow(0 0 0.5px rgba(255,255,255,.7)); }
.site-header .brand img { background: var(--white); padding: 5px 6px; border-radius: 3px; width: 54px; }
.brand-word {
  font-family: var(--f-display); font-weight: 900; font-size: 22px;
  font-variation-settings: "wdth" 125; letter-spacing: .01em; line-height: 1;
}
.b-tak { color: var(--slate-300); }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 8px 12px; font-size: 14.5px; font-weight: 500;
  text-decoration: none; color: rgba(255,255,255,.82); border-radius: var(--radius);
  transition: color .2s, background .2s;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--white); background: rgba(255,255,255,.08); }
.header-cta { --bg: var(--white); --fg: var(--navy-800); --bd: var(--white); }
.header-cta:hover { --bg: var(--ice); --bd: var(--ice); }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 0; padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: var(--white); margin: 5px 0; transition: transform .3s, opacity .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0; background: var(--navy-900);
  display: flex; flex-direction: column; padding: 24px var(--pad) 40px; gap: 4px; overflow-y: auto;
}
.mobile-nav[hidden] { display: none; }
/* backdrop-filter gjør headeren til "containing block" for fixed – slå av når menyen er åpen */
.site-header.menu-open { backdrop-filter: none; background: var(--navy-900); }
.mobile-nav a:not(.btn) {
  font-family: var(--f-display); font-size: 26px; font-weight: 700; font-variation-settings: "wdth" 112;
  text-decoration: none; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-nav .btn { margin-top: 24px; }

@media (max-width: 1080px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--white); overflow: hidden; isolation: isolate;
  background: var(--navy-900);
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.55) contrast(1.08) brightness(.82);
  /* Forankret nederst + zoomet fra bunnen: kutter himmel/nabohus øverst
     slik at taket ligger høyere i bildet og ikke skjules bak teksten */
  object-position: 50% 100%;
  transform: scale(1.02);
  transform-origin: 50% 100%;
}
/* Jo bredere og lavere skjerm, jo mer kuttes øverst (zoom nedenfra løfter taket opp) */
@media (min-aspect-ratio: 5/4) { .hero-video { transform: scale(1.06); } }
@media (min-aspect-ratio: 3/2) { .hero-video { transform: scale(1.14); } }
@media (min-aspect-ratio: 2/1) { .hero-video { transform: scale(1.1); } }
/* Fargegradering: kaldt stormlys */
.hero-grade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,21,38,.72) 0%, rgba(7,21,38,.15) 28%, rgba(7,21,38,.25) 55%, rgba(7,21,38,.92) 100%),
    linear-gradient(90deg, rgba(7,21,38,.7) 0%, rgba(7,21,38,0) 60%),
    rgba(30,60,100,.28);
  mix-blend-mode: normal;
}
/* Drivende tåke/skyer */
.hero-mist { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-mist span {
  position: absolute; left: -50%; width: 200%; height: 60%;
  background:
    radial-gradient(ellipse 30% 45% at 20% 50%, rgba(200,215,230,.18), transparent 70%),
    radial-gradient(ellipse 25% 40% at 55% 40%, rgba(200,215,230,.14), transparent 70%),
    radial-gradient(ellipse 35% 50% at 85% 60%, rgba(200,215,230,.16), transparent 70%);
  filter: blur(18px);
  animation: mist 38s linear infinite;
}
.hero-mist span:nth-child(1) { top: -10%; }
.hero-mist span:nth-child(2) { top: 35%; opacity: .7; animation-duration: 55s; animation-direction: reverse; }
@keyframes mist { from { transform: translateX(0); } to { transform: translateX(25%); } }

.storm-off .hero-mist, .storm-off .lightning { display: none; }
.storm-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lightning {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse 80% 60% at var(--lx, 70%) 0%, rgba(220,235,255,.85), rgba(160,190,230,.25) 50%, transparent 80%);
  mix-blend-mode: screen;
}
.lightning.flash { animation: flash 1.1s ease-out; }
@keyframes flash {
  0% { opacity: 0; } 4% { opacity: .95; } 9% { opacity: .1; } 14% { opacity: .7; }
  22% { opacity: .05; } 30% { opacity: .35; } 100% { opacity: 0; }
}
.hero.is-flashing .hero-video { filter: saturate(.4) contrast(1.15) brightness(1.25); transition: filter .05s; }

.hero-content { padding-top: calc(var(--header-h) + 60px); padding-bottom: clamp(36px, 6vh, 72px); }
.hero-title {
  font-size: clamp(50px, min(8.4vw, 15vh), 132px);
  font-weight: 900; line-height: .9; letter-spacing: -.035em;
  font-variation-settings: "wdth" 118;
  margin: 0 0 28px; text-wrap: balance;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line:nth-child(2) { color: var(--ice); }
.hero-lead { font-size: clamp(18px, 1.6vw, 22px); max-width: 46ch; color: rgba(255,255,255,.86); margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Inngangsanimasjon */
.hero-content > * { opacity: 0; transform: translateY(24px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-content > :nth-child(1) { animation-delay: .15s; }
.hero-content > :nth-child(2) { animation-delay: .3s; }
.hero-content > :nth-child(3) { animation-delay: .5s; }
.hero-content > :nth-child(4) { animation-delay: .65s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero-stats { border-top: 1px solid rgba(255,255,255,.14); background: linear-gradient(180deg, rgba(7,21,38,.25), rgba(7,21,38,.6)); backdrop-filter: blur(4px); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 22px 20px 24px 0; display: flex; flex-direction: column; gap: 4px; }
.stat + .stat { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.12); }
.stat-num {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 3vw, 40px);
  font-variation-settings: "wdth" 115; line-height: 1;
}
.stat-num small { font-size: .45em; font-weight: 600; margin-left: 4px; color: var(--slate-300); }
.stat-label { font-size: 13.5px; color: rgba(255,255,255,.7); line-height: 1.35; }

.storm-toggle {
  position: absolute; right: var(--pad); top: calc(var(--header-h) + 18px); z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px; border-radius: 999px;
  color: var(--white); background: rgba(7,21,38,.35); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px); font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em;
}
.storm-toggle svg { width: 20px; height: 20px; }
.storm-toggle[aria-pressed="false"] { opacity: .65; }
.storm-toggle:hover { background: rgba(7,21,38,.6); }

.scroll-cue { position: absolute; left: 50%; bottom: 120px; width: 24px; height: 38px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 12px; transform: translateX(-50%); display: none; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; background: var(--white); border-radius: 2px; transform: translateX(-50%); animation: cue 2s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }

@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
  .stat { padding: 16px 12px 16px 0; }
  .stat + .stat { padding-left: 16px; }
  .storm-toggle-label { display: none; }
  .storm-toggle { padding: 8px; }
  .hero-content { padding-top: calc(var(--header-h) + 80px); }
}

/* =========================================================
   SEKSJONER – felles
   ========================================================= */
.section { padding-block: var(--section); position: relative; }
.section-head { margin-bottom: clamp(48px, 6vw, 80px); max-width: 820px; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section-head-row > div:first-child { max-width: 720px; }

/* Avsløringsanimasjon ved scroll */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Om oss ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about-media { position: relative; padding-bottom: 80px; }
.frame { margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame-tall { aspect-ratio: 4 / 4.6; }
.frame-inset {
  position: absolute; right: -28px; bottom: 0; width: 42%; aspect-ratio: 3/4;
  border: 8px solid var(--paper);
}
.about-text h2 { margin-bottom: 26px; }
.about-text .lead { margin-bottom: 22px; color: var(--ink); }
.about-text > p:not(.lead):not(.eyebrow) { color: var(--ink-2); }
.pull { margin: 36px 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--navy-700); }
.pull p {
  font-family: var(--f-display); font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; line-height: 1.2;
  font-variation-settings: "wdth" 108; color: var(--navy-700);
}
.split-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.split-roles h3 { font-size: 15px; font-family: var(--f-mono); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--navy-700); margin-bottom: 8px; }
.split-roles p { font-size: 15.5px; color: var(--ink-2); }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .frame-inset { right: 12px; }
}

/* ---------- Profiler ---------- */
.profiles { background: var(--white); }
.profile {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  background: var(--paper); border-radius: var(--radius-lg); overflow: hidden;
  margin-bottom: 40px; min-height: 620px;
}
.profile-flip .profile-media { order: 2; }
.profile-media { position: relative; overflow: hidden; }
.profile-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.profile:hover .profile-media img { transform: scale(1.04); }
.badge {
  position: absolute; left: 20px; bottom: 20px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 12px; background: rgba(7,21,38,.75); color: var(--white); border-radius: 3px; backdrop-filter: blur(6px);
}
.profile-body { padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.profile-logo { height: 52px; width: auto; margin-bottom: 26px; }
.profile-title { font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; font-variation-settings: "wdth" 108; color: var(--navy-800); margin-bottom: 16px; }
.profile-body > p { color: var(--ink-2); }
.spec { margin: 28px 0 32px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.spec div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec div:nth-child(odd) { padding-right: 16px; }
.spec div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.spec dt { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-500); margin-bottom: 4px; }
.spec dd { margin: 0; font-weight: 700; font-size: 17px; color: var(--navy-800); }
.profile-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .profile { grid-template-columns: 1fr; min-height: 0; }
  .profile-media { aspect-ratio: 4/3; }
  .profile-flip .profile-media { order: 0; }
}

/* ---------- Kalkulator ---------- */
.calc {
  margin-top: 80px; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px);
  padding: clamp(32px, 5vw, 64px); border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(105deg, rgba(255,255,255,.025) 0 2px, transparent 2px 22px),
    linear-gradient(135deg, var(--navy-700), var(--navy-900));
  color: var(--white);
}
.calc h3 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; font-variation-settings: "wdth" 112; margin-bottom: 16px; }
.calc-intro p { color: rgba(255,255,255,.75); }
.calc-form { display: grid; gap: 22px; align-content: center; }
.seg { display: inline-flex; border: 0; padding: 4px; margin: 0; background: rgba(255,255,255,.08); border-radius: 6px; width: max-content; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 10px 26px; border-radius: 4px; font-weight: 700; letter-spacing: .06em; cursor: pointer; transition: background .2s, color .2s; }
.seg input:checked + span { background: var(--white); color: var(--navy-800); }
.seg input:focus-visible + span { outline: 2px solid var(--zeno); }
.calc-area { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-family: var(--f-mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-300); }
.calc-input { display: inline-flex; align-items: baseline; gap: 6px; }
.calc-input input {
  width: 4.2em; text-align: right; background: none; border: 0; border-bottom: 1.5px solid rgba(255,255,255,.3);
  color: var(--white); font-family: var(--f-display); font-size: 34px; font-weight: 800; padding: 0 2px;
}
.calc-input input:focus { outline: none; border-color: var(--white); }
.calc-input em { font-style: normal; font-size: 16px; color: var(--white); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; background: rgba(255,255,255,.2); border-radius: 4px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 6px rgba(255,255,255,.15); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--white); cursor: grab; }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255,255,255,.15); padding-top: 22px; }
.calc-out > div + div { border-left: 1px solid rgba(255,255,255,.15); padding-left: 24px; }
.calc-num { display: block; font-family: var(--f-display); font-size: clamp(40px, 4.5vw, 60px); font-weight: 900; font-variation-settings: "wdth" 115; line-height: 1; }
.calc-unit { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-300); }
.calc .btn { justify-self: start; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }

/* ---------- Farger ---------- */
.color-grid { display: grid; grid-template-columns: 1fr 1fr .85fr; gap: 24px; align-items: stretch; }
.color-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.color-media { aspect-ratio: 4/4.4; overflow: hidden; }
.color-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.color-card:hover .color-media img { transform: scale(1.05); }
.color-body { display: flex; gap: 18px; padding: 26px 26px 30px; }
.color-body h3 { font-size: 24px; font-weight: 800; font-variation-settings: "wdth" 110; color: var(--navy-800); margin-bottom: 6px; }
.color-body p { color: var(--ink-2); font-size: 15.5px; }
.swatch { flex: none; width: 46px; height: 46px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1), 0 2px 6px rgba(0,0,0,.15); }
.swatch-gra { background: radial-gradient(circle at 30% 25%, #c3ccd6, #7f8d9c 45%, #5b6876 80%); }
.swatch-sort { background: radial-gradient(circle at 30% 25%, #6b7480 0%, #22272e 30%, #0d1014 75%); }
.color-note { padding: 34px 30px; border: 1.5px solid var(--line); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 4px; }
.color-note svg { width: 30px; height: 30px; color: var(--navy-700); margin-bottom: 14px; }
.color-note h3 { font-size: 22px; font-weight: 800; color: var(--navy-800); margin-bottom: 12px; font-variation-settings: "wdth" 108; }
.color-note p { color: var(--ink-2); font-size: 15.5px; }
.color-note .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 1000px) { .color-grid { grid-template-columns: 1fr 1fr; } .color-note { grid-column: 1 / -1; } }
@media (max-width: 620px) { .color-grid { grid-template-columns: 1fr; } }

/* ---------- Storm-bånd ---------- */
.storm-band { position: relative; min-height: 78vh; display: flex; align-items: center; color: var(--white); overflow: hidden; isolation: isolate; background: var(--navy-900); }
.storm-band-bg { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; z-index: -2; filter: saturate(.5) brightness(.62) contrast(1.1); will-change: transform; }
.storm-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,21,38,.85) 0%, rgba(7,21,38,.35) 70%); }
.storm-band .storm-canvas { z-index: -1; }
.storm-band-inner { padding-block: 110px; }
.storm-quote {
  font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 115;
  font-size: clamp(34px, 5.2vw, 76px); line-height: 1; letter-spacing: -.03em; max-width: 16ch; margin-bottom: 44px;
}
.storm-quote em { font-style: normal; color: var(--ice); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.storm-points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); gap: 28px; }
.storm-points li { border-top: 1px solid rgba(255,255,255,.3); padding-top: 16px; font-size: 15.5px; color: rgba(255,255,255,.78); }
.storm-points strong { display: block; color: var(--white); font-size: 17px; margin-bottom: 4px; }
@media (max-width: 760px) { .storm-points { grid-template-columns: 1fr; } }

/* ---------- System ---------- */
.system { background: var(--white); }
.system-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sys-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-900); color: var(--white); min-height: 380px; display: flex; align-items: flex-end; }
.sys-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: transform 1.2s cubic-bezier(.2,.7,.2,1), opacity .5s; }
.sys-card:hover img { transform: scale(1.06); opacity: .6; }
.sys-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(7,21,38,.92)); }
.sys-body { position: relative; z-index: 1; padding: 26px; }
.sys-num { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; color: var(--slate-300); }
.sys-body h3 { font-size: 22px; font-weight: 800; font-variation-settings: "wdth" 108; margin: 8px 0 8px; }
.sys-body p { font-size: 14.5px; color: rgba(255,255,255,.8); line-height: 1.5; }
.sys-wide { grid-column: span 4; min-height: 440px; }
.sys-wide .sys-body { max-width: 560px; padding: 40px; }
.sys-wide h3 { font-size: 32px; }
.sys-wide p { font-size: 16.5px; }
.facts-row { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.fact { border-top: 2px solid var(--navy-700); padding-top: 18px; }
.fact h4 { font-size: 17px; font-weight: 800; color: var(--navy-800); margin-bottom: 8px; font-variation-settings: "wdth" 108; }
.fact p { font-size: 15px; color: var(--ink-2); }
@media (max-width: 1000px) {
  .system-grid { grid-template-columns: 1fr 1fr; }
  .sys-wide { grid-column: span 2; }
  .facts-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .system-grid, .facts-row { grid-template-columns: 1fr; }
  .sys-wide { grid-column: auto; }
}

/* ---------- Garanti ---------- */
.warranty {
  color: var(--white);
  background:
    radial-gradient(ellipse 60% 80% at 85% 10%, rgba(74,101,132,.35), transparent 60%),
    var(--navy-800);
  overflow: hidden;
}
.warranty::before {
  content: "40"; position: absolute; right: -2vw; bottom: -10vw; z-index: 0;
  font-family: var(--f-display); font-weight: 900; font-size: 44vw; line-height: 1; font-variation-settings: "wdth" 125;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.06); pointer-events: none;
}
.warranty-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.warranty h2 { color: var(--white); }
.big-40 { color: var(--ice); }
.warranty .lead { color: rgba(255,255,255,.78); }
.timeline { margin-top: 48px; }
.tl-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: rgba(255,255,255,.08); }
.tl-full { width: 37.5%; background: var(--ice); transform-origin: left; }
.tl-fade { width: 62.5%; background: linear-gradient(90deg, var(--slate-300), rgba(159,178,200,.08)); transform-origin: left; }
.reveal .tl-full, .reveal .tl-fade { transform: scaleX(0); transition: transform 1.4s cubic-bezier(.2,.7,.2,1) .3s; }
.reveal .tl-fade { transition-delay: 1.1s; }
.reveal.is-in .tl-full, .reveal.is-in .tl-fade { transform: none; }
.tl-ticks { position: relative; height: 30px; font-family: var(--f-mono); font-size: 12px; color: var(--slate-300); }
.tl-ticks span { position: absolute; top: 10px; transform: translateX(-50%); white-space: nowrap; }
.tl-ticks span:first-child { left: 0; transform: none; }
.tl-ticks span:last-child { transform: translateX(-100%); }
.tl-cols { display: grid; grid-template-columns: 37.5% 1fr; gap: 0; margin-top: 18px; }
.tl-cols > div { padding-right: 24px; }
.tl-cols > div + div { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.15); }
.tl-cols h4 { font-size: 18px; margin-bottom: 6px; font-variation-settings: "wdth" 110; }
.tl-cols p { font-size: 15px; color: rgba(255,255,255,.75); }
.warranty-terms { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); padding: 36px; backdrop-filter: blur(6px); }
.warranty-terms h3 { font-size: 22px; font-weight: 800; margin-bottom: 20px; font-variation-settings: "wdth" 110; }
.checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 32px; font-size: 15.5px; color: rgba(255,255,255,.85); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ice) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230b1d33' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.ert-logo { margin-top: 32px; width: 130px; height: auto; }
@media (max-width: 900px) { .warranty-grid { grid-template-columns: 1fr; } }

/* ---------- Prosess ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.steps li { padding: 34px 32px 40px 0; border-bottom: 1px solid var(--line); }
.steps li:not(:nth-child(3n+1)) { padding-left: 32px; border-left: 1px solid var(--line); }
.step-n { font-family: var(--f-display); font-weight: 900; font-size: 52px; font-variation-settings: "wdth" 120; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--slate-500); display: block; margin-bottom: 20px; }
.steps h3 { font-size: 22px; font-weight: 800; color: var(--navy-800); margin-bottom: 10px; font-variation-settings: "wdth" 108; }
.steps p { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .steps li:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* ---------- Referanser ---------- */
.refs { background: var(--white); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white);
  font-weight: 600; font-size: 14.5px; color: var(--ink-2); transition: all .2s;
}
.chip:hover { border-color: var(--navy-700); color: var(--navy-700); }
.chip.is-active { background: var(--navy-700); border-color: var(--navy-700); color: var(--white); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; grid-auto-flow: dense; gap: 14px; }
.g-item { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); display: block; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.g-item:hover img { transform: scale(1.06); }
.g-item span {
  position: absolute; left: 12px; bottom: 12px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--white); background: rgba(7,21,38,.7); padding: 6px 10px; border-radius: 3px; backdrop-filter: blur(4px);
  opacity: 0; transform: translateY(6px); transition: all .3s;
}
.g-item:hover span, .g-item:focus-visible span { opacity: 1; transform: none; }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }
.g-item.is-hidden { display: none; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; } }
@media (max-width: 480px) { .gallery { grid-auto-rows: 150px; gap: 8px; } .g-item span { opacity: 1; transform: none; } }

/* Lysboks */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(4,12,22,.94); display: flex; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 3px; }
.lightbox figcaption { color: rgba(255,255,255,.75); font-family: var(--f-mono); font-size: 13px; letter-spacing: .05em; text-align: center; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--white); font-size: 44px; line-height: 1; width: 56px; height: 56px; opacity: .75; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 12px; right: 16px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox { padding: 60px 10px; } .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.faq .section-head { position: sticky; top: 110px; margin-bottom: 0; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative;
  font-family: var(--f-display); font-weight: 700; font-size: 19px; font-variation-settings: "wdth" 105; color: var(--navy-800);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background:
    linear-gradient(var(--navy-700), var(--navy-700)) center/14px 2px no-repeat,
    linear-gradient(var(--navy-700), var(--navy-700)) center/2px 14px no-repeat;
  transition: transform .3s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--ink-2); padding: 0 48px 26px 0; margin: 0; }
.faq-list summary:hover { color: var(--navy-600); }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq .section-head { position: static; margin-bottom: 32px; } }

/* ---------- Tilbud + kontakt ---------- */
.quote { background: var(--white); }
.quote-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.quote h2 { font-size: clamp(34px, 4.2vw, 56px); }
.quote-form { margin-top: 40px; display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-size: 14px; font-weight: 600; color: var(--ink); padding: 0; margin-bottom: 8px; }
.field > span { margin-bottom: 0; }
.field abbr { text-decoration: none; color: var(--navy-600); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 14px; background: var(--paper); border: 1.5px solid transparent; border-radius: var(--radius);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230d2d5e' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 36px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--white); border-color: var(--navy-700); box-shadow: 0 0 0 4px rgba(13,45,94,.1); }
.field textarea { resize: vertical; min-height: 120px; }
.field.has-error input { border-color: #c0392b; background: #fdf3f2; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { position: relative; }
.pills input { position: absolute; opacity: 0; }
.pills span { display: block; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 14.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: all .2s; }
.pills span:hover { border-color: var(--navy-700); }
.pills input:checked + span { background: var(--navy-700); border-color: var(--navy-700); color: var(--white); }
.pills input:focus-visible + span { outline: 2px solid var(--zeno); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy-700); flex: none; }
.consent.has-error span { color: #c0392b; }
.form-foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 8px; }
.form-status { margin: 0; font-size: 15px; font-weight: 600; }
.form-status.ok { color: #1e7a4a; }
.form-status.err { color: #c0392b; }

.contact-card { position: sticky; top: 96px; border-radius: var(--radius-lg); overflow: hidden; color: var(--white); background: var(--navy-800); isolation: isolate; scroll-margin-top: 96px; }
.contact-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: .3; filter: saturate(.4); }
.contact-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,29,51,.6), rgba(7,21,38,.96) 60%); }
.contact-inner { padding: clamp(30px, 4vw, 44px); }
.contact-inner h3 { font-size: 30px; font-weight: 800; font-variation-settings: "wdth" 112; margin-bottom: 12px; }
.contact-inner > p { color: rgba(255,255,255,.78); }
.contact-list { list-style: none; padding: 0; margin: 30px 0; display: grid; gap: 0; }
.contact-list li { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.12); }
.contact-list svg { width: 22px; height: 22px; flex: none; color: var(--ice); }
.contact-list small { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-300); }
.contact-list a, .contact-list span { font-size: 17px; font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-brands { display: flex; gap: 22px; align-items: center; padding-top: 6px; }
.contact-brands img { height: 22px; width: auto; }
.invert { filter: invert(1); }
@media (max-width: 1000px) { .quote-grid { grid-template-columns: 1fr; } .contact-card { position: relative; top: 0; } }
@media (max-width: 620px) { .form-row, .form-row-3 { grid-template-columns: 1fr; } }

/* Plassholdere som må fylles inn (synlig markering kun lokalt – fjern klassen ved lansering) */
[data-placeholder] { }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.75); padding: 90px 0 30px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand-footer { color: var(--white); margin-bottom: 20px; }
.brand-footer img { background: var(--white); padding: 6px 7px; border-radius: 3px; width: 60px; }
.tagline { font-family: var(--f-display); font-weight: 700; font-size: 19px; color: var(--white); font-variation-settings: "wdth" 108; }
.muted { color: rgba(255,255,255,.55); max-width: 36ch; }
.site-footer h4 { font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-300); margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 26px; font-size: 13px; color: rgba(255,255,255,.45); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Redusert bevegelse ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-content > * { opacity: 1; transform: none; }
}
