/* Sterke råd v2 — C network + A boldness */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #0d0d0d;
  --paper: #f2ede6;
  --yellow: #FFE034;
  --orange: #FF5C1A;
  --blue: #1A3CFF;
  --green: #00E87A;
  --pink: #FF2D8A;
  --muted: rgba(13, 13, 13, 0.58);
  --nav-h: 73px;
  --rail: 44vw;
}

html { scroll-behavior: auto; }
html, body { background: var(--paper); color: var(--ink); }
body {
  font-family: "Cabinet Grotesk", sans-serif;
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; }

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.logo {
  font-family: "Anybody", sans-serif;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -1px;
  text-decoration: none;
}
.logo em { font-style: italic; color: var(--orange); }
.nav-end { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.5;
}
.nav-links a:hover { opacity: 1; }
.nav-pill {
  background: var(--ink) !important;
  color: var(--yellow) !important;
  opacity: 1 !important;
  padding: 9px 18px;
  border-radius: 100px;
}
.nav-pill:hover { background: var(--orange) !important; color: #fff !important; }
.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.lang-switch a { text-decoration: none; opacity: 0.4; }
.lang-switch a:hover,
.lang-switch a[aria-current="page"] { opacity: 1; }
.lang-switch a[aria-current="page"] { pointer-events: none; }
.lang-switch .sep { opacity: 0.3; }

.stripe { display: flex; height: 8px; position: relative; z-index: 41; }
.stripe i { flex: 1; display: block; }
.s1 { background: var(--yellow); }
.s2 { background: var(--orange); }
.s3 { background: var(--pink); }
.s4 { background: var(--blue); }
.s5 { background: var(--green); }

#metode, #tjenester, #team, #om, #kontakt, #top {
  scroll-margin-top: var(--nav-h);
}

.eyebrow {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(13, 13, 13, 0.42);
}

/* NETWORK — fixed rail, position driven by JS/CSS vars */
.network-wrap {
  position: fixed;
  top: var(--nav-h);
  left: 56%;
  width: 44%;
  height: calc(100vh - var(--nav-h));
  z-index: 5;
  pointer-events: none;
  transition: left 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              width 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.55s ease;
}
.network-wrap.is-interactive { pointer-events: auto; }
.network-wrap.is-story:not(.is-contact) {
  left: 0;
  width: 42%;
}
.network-wrap.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.network-wrap.is-contact {
  left: 0;
  width: 48%;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  opacity: 1;
  z-index: 8;
  pointer-events: none;
  overflow: hidden;
}
.network-wrap.is-contact .net-label[data-node="center"] {
  color: #fff;
  opacity: 1 !important;
  font-size: 14px;
}
.network-wrap.is-contact .net-label:not([data-node="center"]) { opacity: 0 !important; }
.network-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.net-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.net-label {
  position: absolute;
  top: 0; left: 0;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0;
  will-change: transform, opacity;
}
.net-label.is-ready { opacity: 0.8; }
.net-label[data-node="center"] {
  font-family: "Anybody", sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.03em;
  text-transform: none;
}
.net-label[data-node="center"].is-ready { opacity: 1; }
.network-wrap.is-dim .net-label { opacity: 0; }
.network-wrap.is-hidden { opacity: 0; pointer-events: none; }

/* HERO */
.hero {
  position: relative;
  z-index: 6;
  min-height: calc(100svh - var(--nav-h) - 8px);
  padding: 28px 46vw 48px 40px;
  display: flex;
  flex-direction: column;
  border-bottom: 2px solid var(--ink);
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.pulse {
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}
.hero-title {
  font-family: "Anybody", sans-serif;
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.06em;
  font-size: clamp(80px, 11.5vw, 188px);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2vh 0 4vh;
  pointer-events: none;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .char { display: inline-block; will-change: transform; }
.line-b { color: var(--orange); font-style: italic; margin-left: 0.06em; }

.hero-end { display: flex; flex-direction: column; gap: 22px; max-width: 520px; }
.tagline-box {
  background: var(--yellow);
  border: 2px solid var(--ink);
  padding: 18px 22px;
  display: inline-block;
  box-shadow: 6px 6px 0 var(--ink);
  align-self: flex-start;
}
.tagline-box p {
  font-family: "Anybody", sans-serif;
  font-weight: 800;
  font-size: clamp(18px, 1.8vw, 26px);
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.tagline-box em { font-style: italic; color: var(--orange); }
.hero-copy p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 20px;
}
.hero-copy strong { color: var(--ink); font-weight: 700; }
.btn-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.btn-main {
  background: var(--ink);
  color: var(--yellow);
  font-family: "DM Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 24px;
  text-decoration: none;
  border: 2px solid var(--ink);
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.btn-main:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-sec {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(13, 13, 13, 0.5);
}
.btn-sec:hover { color: var(--ink); }

/* STORY CHAPTERS — content on the left in hero, on the right once the rail moves */
.method { padding-top: 80px; padding-bottom: 20px; padding-left: 40px; padding-right: 40px; }
.services { padding-right: 40px; padding-left: 40px; }
@media (min-width: 861px) {
  .method, .services { padding-left: 44vw; padding-right: 40px; }
}
.chapter-intro { margin-bottom: 12px; max-width: 38em; }
.chapter-intro h2 {
  font-family: "Anybody", sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 5.5vw, 80px);
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 14px 0 22px;
}
.chapter-intro h2 em { font-style: italic; color: var(--orange); }
.chapter-intro .lede {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 42ch;
}
.chapter-intro .lede strong { color: var(--ink); }

.step {
  scroll-margin-top: var(--nav-h);
  min-height: 72vh;
  padding: 80px 0;
  border-top: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.28;
  transition: opacity 0.4s ease;
  max-width: 28em;
}
.step.is-on { opacity: 1; }
.step .num {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--orange);
  margin-bottom: 16px;
}
.step h3 {
  font-family: "Anybody", sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 4.4vw, 64px);
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin-bottom: 18px;
}
.step p { font-size: 17px; line-height: 1.7; color: var(--muted); }

/* SERVICES PANELS */
.services { padding-top: 40px; padding-bottom: 0; }
.services .chapter-intro { padding-bottom: 28px; }
.panel {
  min-height: calc(100vh - var(--nav-h));
  scroll-margin-top: var(--nav-h);
  margin-left: 0;
  margin-right: -40px;
  padding: 80px 48px 64px;
  border-top: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
  position: relative;
}
.panel header {
  display: flex;
  justify-content: space-between;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
}
.panel h3 {
  font-family: "Anybody", sans-serif;
  font-weight: 900;
  font-size: clamp(56px, 8vw, 128px);
  letter-spacing: -0.05em;
  line-height: 0.86;
  margin: 28px 0 24px;
}
.panel p {
  max-width: 26ch;
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.85;
}
.panel ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.panel ul li {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1.5px solid currentColor;
  opacity: 0.7;
}
.c-green { background: var(--green); }
.c-blue { background: var(--blue); color: #fff; }
.c-yellow { background: var(--yellow); }
.c-pink { background: var(--pink); color: #fff; }

/* TEAM */
.team {
  background: var(--ink);
  color: var(--paper);
  padding: 100px 40px 80px;
  border-top: 2px solid var(--ink);
}
.chapter-intro.invert .eyebrow { color: rgba(242, 237, 230, 0.4); }
.chapter-intro.invert h2 { color: var(--paper); }
.chapter-intro.invert .lede { color: rgba(242, 237, 230, 0.6); }
.chapter-intro.invert .lede strong { color: var(--paper); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 48px;
  perspective: 1200px;
}
.flip { min-height: 260px; }
.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 260px;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.flip:hover .flip-inner,
.flip:focus-within .flip-inner { transform: rotateY(180deg); }
.flip-front, .flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: 28px 22px;
  background: #141414;
}
.flip:nth-child(1) .flip-front { box-shadow: inset 0 -6px 0 var(--green); }
.flip:nth-child(2) .flip-front { box-shadow: inset 0 -6px 0 var(--blue); }
.flip:nth-child(3) .flip-front { box-shadow: inset 0 -6px 0 var(--yellow); }
.flip:nth-child(4) .flip-front { box-shadow: inset 0 -6px 0 var(--pink); }
.flip-back { transform: rotateY(180deg); }
.tc-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--ink);
}
.tc-icon.c-green { background: var(--green); }
.tc-icon.c-blue { background: var(--blue); color: #fff; }
.tc-icon.c-yellow { background: var(--yellow); }
.tc-icon.c-pink { background: var(--pink); color: #fff; }
.tc-name {
  font-family: "Anybody", sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.tc-role {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(242, 237, 230, 0.4);
}
.flip-back p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(242, 237, 230, 0.7);
  margin-top: 12px;
}

/* ABOUT */
.about {
  padding: 100px 40px;
  border-top: 2px solid var(--ink);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  margin-top: 28px;
  align-items: start;
}
blockquote {
  font-family: "Anybody", sans-serif;
  font-weight: 900;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 28px;
}
blockquote em { font-style: italic; color: var(--orange); }
.about-grid p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 48ch;
}
.kpis {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.kpis li {
  border: 2px solid var(--ink);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kpis li:nth-child(1) { background: var(--yellow); }
.kpis li:nth-child(2) { background: var(--orange); color: #fff; }
.kpis li:nth-child(3) { background: var(--blue); color: #fff; }
.kpis li:nth-child(4) { background: var(--green); }
.kpis strong {
  font-family: "Anybody", sans-serif;
  font-weight: 900;
  font-size: 42px;
  letter-spacing: -0.04em;
  line-height: 1;
}
.kpis span {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* CONTACT */
.contact {
  background: var(--orange);
  color: #fff;
  padding: 96px 40px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 6;
  min-height: calc(100svh - var(--nav-h));
}
.contact-copy, .contact-form { position: relative; z-index: 9; }
.contact .eyebrow.light { color: rgba(255, 255, 255, 0.72); }
.contact h2 {
  font-family: "Anybody", sans-serif;
  font-weight: 900;
  font-size: clamp(48px, 6vw, 88px);
  letter-spacing: -0.05em;
  line-height: 0.9;
  margin: 16px 0 20px;
}
.contact .lede { font-size: 16px; line-height: 1.7; color: rgba(255,255,255,0.88); max-width: 36ch; }
.facts { list-style: none; margin-top: 36px; display: flex; flex-direction: column; gap: 16px; }
.facts li { display: flex; flex-direction: column; gap: 2px; }
.facts span {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}
.facts a, .facts b { font-weight: 700; font-size: 16px; text-decoration: none; }
.facts a:hover { text-decoration: underline; }

.contact-form {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-form label { display: flex; flex-direction: column; gap: 8px; }
.contact-form label span {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  font-size: 16px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--ink);
  padding: 8px 0 10px;
  color: var(--ink);
  border-radius: 0;
  outline: none;
  resize: vertical;
  width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus { border-bottom-color: var(--orange); }
.contact-form button {
  margin-top: 8px;
  align-self: flex-start;
  background: var(--ink);
  color: var(--yellow);
  font-family: "DM Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 26px;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.contact-form button:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.form-note { font-size: 13px; line-height: 1.6; color: var(--muted); }
.form-note a { color: var(--ink); text-decoration: underline; }
.trap {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 22px 40px;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  color: rgba(13,13,13,0.45);
  position: relative;
  z-index: 6;
  background: var(--paper);
}
.ft {
  font-family: "Anybody", sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: var(--ink);
}
.ft em { font-style: italic; color: var(--orange); }

/* MOBILE */
@media (max-width: 860px) {
  nav { padding: 14px 20px; }
  .nav-links a:not(.nav-pill) { display: none; }
  .network-wrap {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: 34vh;
    inset: auto;
    z-index: 1;
    overflow: hidden;
  }
  .hero {
    min-height: auto;
    padding: 0 20px 32px;
  }
  .hero-kicker { padding-top: 20px; }
  .hero-title { font-size: clamp(64px, 20vw, 112px); padding: 8px 0 4px; }
  .hero-end { gap: 16px; }
  .tagline-box { padding: 14px 16px; }
  .method, .services, body.is-story .method, body.is-story .services {
    padding-left: 20px;
    padding-right: 20px;
  }
  .panel {
    margin-left: -20px;
    margin-right: -20px;
    padding: 36px 20px 48px;
    min-height: 72vh;
    scroll-margin-top: var(--nav-h);
  }
  .panel h3 { font-size: clamp(48px, 16vw, 80px); }
  .step { min-height: 0; padding: 40px 0; opacity: 1; }
  .team, .about, .contact { padding: 64px 20px; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact { grid-template-columns: 1fr; gap: 36px; }
  .flip-inner { transform: none !important; transition: none; }
  .flip-front, .flip-back {
    position: relative;
    transform: none;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
  }
  .flip, .flip-inner { min-height: 0; }
  .flip-back { padding-top: 0; background: transparent; }
  .flip-back .tc-name { display: none; }
  footer { padding: 20px; flex-direction: column; gap: 8px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .network-wrap { transition: none; }
  .pulse { animation: none; }
  .hero-title .char { transform: none !important; }
  .flip-inner { transition: none; }
  .flip:hover .flip-inner,
  .flip:focus-within .flip-inner { transform: none; }
  .flip-back { position: static; transform: none; backface-visibility: visible; padding-top: 0; }
  .flip-front, .flip-back { position: relative; }
  .flip { min-height: 0; }
  .flip-inner { min-height: 0; }
  .step { opacity: 1; }
}

.cf-turnstile-slot { min-height: 0; margin-top: 4px; }
