/* Nextera Sales: upplevelselagret. Laddning, muspekare, WebGL-hero, scroll-effekter. */

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

html.has-gsap { scroll-behavior: auto; }

/* Kornighet over hela sidan */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
  mix-blend-mode: overlay;
}

/* Laddning */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 40px 48px;
  will-change: transform;
}
.preloader .preloader-brand { display: flex; align-items: center; gap: 14px; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.preloader .preloader-brand svg { width: 36px; height: 36px; }
.preloader .preloader-num { font-family: var(--font-head); font-weight: 700; font-size: clamp(4rem, 14vw, 11rem); line-height: 0.85; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; color: var(--white); }
.preloader .preloader-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: rgba(255, 255, 255, 0.08); }
.preloader .preloader-bar i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.preloader[data-fast] .preloader-num { display: none; }
@media (max-width: 600px) { .preloader { padding: 24px; } }

/* Sidbyte */
.wipe {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: var(--ink);
  transform: translateY(101%);
  pointer-events: none;
}

/* Muspekare */
.cursor { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; display: none; }
@media (pointer: fine) {
  html.has-gsap .cursor { display: block; }
  html.has-gsap.cursor-on, html.has-gsap.cursor-on a, html.has-gsap.cursor-on button { cursor: none; }
}
.cursor-dot { position: absolute; left: 0; top: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--amber); }
.cursor-ring {
  position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 176, 32, 0.8);
  transition: width 0.25s ease, height 0.25s ease, margin 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  display: grid; place-items: center;
  font: 600 0.7rem/1 var(--font-body);
  color: var(--ink);
  letter-spacing: 0.04em;
}
.cursor.is-hover .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255, 176, 32, 0.18); }
.cursor.is-drag .cursor-ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--amber); border-color: var(--amber); }
.cursor.is-drag .cursor-ring::after { content: "DRA"; }
.cursor.is-hidden { opacity: 0; }

/* Sidhuvud over hero */
.site-header.over {
  position: fixed;
  left: 0; right: 0; top: 0;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header.over.scrolled {
  background: rgba(11, 18, 34, 0.78);
  border-bottom-color: var(--line-dark);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.scroll-progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 60; transform-origin: 0 0; transform: scaleX(0); background: linear-gradient(90deg, var(--blue), var(--cyan)); }

/* Hero, stor version */
.hero.xl {
  min-height: 100svh;
  padding: 150px 0 110px;
  display: flex;
  align-items: center;
}
.hero.xl::before, .hero.xl::after { display: none; }
.hero.xl .aurora { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero.xl .aurora-fallback {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 20% 30%, rgba(47, 107, 255, 0.55), transparent 65%),
    radial-gradient(40% 50% at 80% 70%, rgba(95, 211, 255, 0.28), transparent 65%),
    radial-gradient(30% 30% at 70% 15%, rgba(255, 176, 32, 0.22), transparent 65%);
}
.hero.xl .hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 18, 34, 0.75) 0%, rgba(11, 18, 34, 0.35) 50%, rgba(11, 18, 34, 0.1) 100%), linear-gradient(0deg, var(--ink) 0%, rgba(11, 18, 34, 0) 35%); }
.hero.xl .container { grid-template-columns: 1.15fr 0.85fr; }
.hero.xl h1 { font-size: clamp(2.6rem, 5.6vw, 5.2rem); letter-spacing: -0.035em; line-height: 1.0; max-width: 11ch; }
.hero.xl h1 .line { overflow: hidden; display: block; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero.xl .hero-intro, .page-hero .hero-intro { opacity: 0; }
html.no-gsap .hero.xl .hero-intro, html.no-gsap .page-hero .hero-intro { opacity: 1; }
.page-hero h1 .line { overflow: hidden; display: block; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.statement em { font-style: normal; color: var(--amber); }
.scroll-hint {
  position: absolute; left: 50%; bottom: 28px;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.scroll-hint i { width: 1px; height: 44px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent); display: block; animation: hint 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); opacity: 0; } 40% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1) translateY(20px); opacity: 0; } }
@media (max-width: 900px) {
  .hero.xl { padding: 120px 0 90px; }
  .hero.xl .container { grid-template-columns: 1fr; }
  .scroll-hint { display: none; }
}

/* Lopande remsa */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: var(--ink);
  color: var(--white);
  padding: 18px 0;
  white-space: nowrap;
}
.marquee .track { display: inline-flex; gap: 0; animation: marquee 38s linear infinite; will-change: transform; }
.marquee span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; color: rgba(255, 255, 255, 0.85); }
.marquee span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } }

/* Manifest, ord som tands */
.statement-section { background: var(--ink); color: var(--white); padding: 140px 0; }
.statement { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.6rem, 3.6vw, 3.1rem); line-height: 1.22; letter-spacing: -0.025em; max-width: 1000px; margin: 0; }
.statement .w { display: inline-block; opacity: 0.18; }
html.no-gsap .statement .w { opacity: 1; }
.statement .w.hl { color: var(--amber); }
@media (max-width: 700px) { .statement-section { padding: 90px 0; } }

/* Tjanster, sidledes scroll */
.hscroll { background: var(--paper); color: var(--ink); overflow: hidden; }
.hscroll-pin { padding: 90px 0 60px; }
.hscroll-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 44px; }
.hscroll-head .section-head { margin-bottom: 0; }
.hscroll-head .count { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--muted); white-space: nowrap; padding-bottom: 8px; }
.hscroll-track { display: flex; gap: 24px; padding-left: var(--gutter); padding-right: var(--gutter); will-change: transform; }
.hcard {
  flex: 0 0 auto;
  width: min(440px, 82vw);
  min-height: 460px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 34px 32px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.hcard .n { font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; color: var(--blue); letter-spacing: 0.06em; }
.hcard .icon { width: 56px; height: 56px; border-radius: 16px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin: 26px 0 22px; }
.hcard .icon svg { width: 28px; height: 28px; }
.hcard h3 { font-size: 1.55rem; margin-bottom: 12px; }
.hcard p { color: var(--muted); margin: 0 0 auto; }
.hcard .more { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-weight: 600; color: var(--ink); }
.hcard .more svg { width: 18px; height: 18px; transition: transform 0.2s; }
.hcard:hover .more svg { transform: translateX(4px); }
.hcard::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(47, 107, 255, 0.14), transparent 70%); }
.hcard.dark { background: var(--ink); color: var(--white); border-color: transparent; justify-content: center; }
.hcard.dark h3 { font-size: 2rem; }
.hcard.dark p { color: rgba(255, 255, 255, 0.72); margin-bottom: 26px; }
.hcard.dark::after { background: radial-gradient(circle, rgba(255, 176, 32, 0.35), transparent 70%); }
@media (max-width: 900px) {
  .hscroll-pin { padding: 70px 0 60px; }
  .hscroll-track { flex-wrap: wrap; justify-content: center; gap: 18px; transform: none !important; }
  .hcard { width: 100%; min-height: 0; }
}

/* Processen, klistrad rubrik */
.process { background: var(--white); padding: 110px 0; }
.process .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; }
.process .sticky { position: sticky; top: 120px; }
.process .sticky p { color: var(--muted); font-size: 1.1rem; }
.process .line { position: relative; padding-left: 44px; }
.process .line::before { content: ""; position: absolute; left: 11px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.process .line .fill { position: absolute; left: 11px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(180deg, var(--blue), var(--cyan)); transform: scaleY(0); transform-origin: top; }
.pstep { position: relative; padding: 10px 0 56px; }
.pstep::before { content: ""; position: absolute; left: -40px; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--line); border: 2px solid var(--white); box-shadow: 0 0 0 2px var(--line); }
.pstep.active::before { background: var(--amber); box-shadow: 0 0 0 2px var(--amber); }
.pstep .k { font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em; color: var(--blue); text-transform: uppercase; margin-bottom: 8px; }
.pstep h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 10px; }
.pstep p { color: var(--muted); font-size: 1.06rem; margin: 0; max-width: 480px; }
@media (max-width: 900px) {
  .process { padding: 80px 0; }
  .process .wrap { grid-template-columns: 1fr; gap: 30px; }
  .process .sticky { position: static; }
}

/* Varden med lutning */
.value.tilt { transform-style: preserve-3d; transition: transform 0.2s ease; will-change: transform; }

/* Sidfot med jattelogga */
.giant {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(3.4rem, 15.5vw, 15rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  margin: 0 0 10px;
  user-select: none;
}
.giant span { display: inline-block; }

/* Granskningslage (?enkel=1): inga effekter, allt synligt, inget klistrat */
html.enkel .hero.xl, html.enkel .hero.film { min-height: 0; padding-top: 140px; }
html.enkel .page-hero.photo-hero { min-height: 0; }
html.enkel .hscroll-track { flex-wrap: wrap; justify-content: center; }
html.enkel .hcard { width: min(440px, 82vw); }
html.enkel [data-rise], html.enkel.has-gsap [data-rise], html.enkel .statement .w { opacity: 1; transform: none; }

/* Textsplit-rader */
[data-split] .line { overflow: hidden; display: block; }

/* Overgripande intoning via GSAP */
html.has-gsap [data-rise] { opacity: 0; transform: translateY(36px); }
