/* =============================================================
   NordOps Consulting, v3 system (1 Nov 2026).
   The approved home-page concept, applied to every page. Loaded LAST,
   after style.css / v2.css / v2-unify.css, so it only restyles: no page
   markup or copy depends on it, and removing this file restores v2.

   - Type: Familjen Grotesk (headings), Schibsted Grotesk (body),
     IBM Plex Mono (labels). Self-hosted, /assets/fonts/fonts-v3.css.
   - Floating pill nav, pill buttons with an icon circle.
   - Double-bezel cards: a faint outer shell ring around a lit core.
   - Motion lives in js/motion.js. This file only defines the start and
     end states, and html.js-motion gates every hidden state, so pages
     without JS or with prefers-reduced-motion are complete and static.
   ============================================================= */

:root {
  --font-heading: 'Familjen Grotesk', 'Trebuchet MS', sans-serif;
  --font-body: 'Schibsted Grotesk', 'Segoe UI', sans-serif;
  --font-display: 'Familjen Grotesk', 'Trebuchet MS', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --v3-night: #060f1f;
  --v3-deep: #0a1628;
  --v3-plate: #0f2038;
  --v3-line: rgba(240, 244, 255, .12);
  --v3-ink: #f0f4ff;
  --v3-mute: #9db0cc;
  --v3-cyan: #00e0ed;
  --v3-ice: #bff7fb;
  --v3-spring: cubic-bezier(.32, .72, 0, 1);
}

html body.v2 { font-family: var(--font-body); font-size: 17px; line-height: 1.6; }
html body.v2 h1, html body.v2 h2, html body.v2 h3, html body.v2 h4 {
  font-family: var(--font-heading); font-weight: 600; letter-spacing: -0.025em; text-wrap: balance;
}
html body.v2 h1 { font-weight: 700; letter-spacing: -0.04em; }
html body.v2 h1 em, html body.v2 h2 em, html body.v2 .v2-h2 em {
  font-family: var(--font-heading) !important; font-weight: inherit !important; color: var(--v3-cyan) !important;
}
html body.v2 .eyebrow, html body.v2 .section-label, html body.v2 .v2-layer__tag, html body.v2 .v2-case__tag {
  font: 500 11px/1 var(--font-mono) !important; letter-spacing: .12em !important; text-transform: uppercase;
  color: var(--v3-cyan) !important;
}
html body.v2 .eyebrow {
  display: inline-block; padding: 8px 13px; border-radius: 99px; background: rgba(0, 224, 237, .08); margin-bottom: 24px;
}
html body.v2 .v2-note { font-family: var(--font-mono); font-size: 12px; letter-spacing: .01em; }

/* ---------- Floating pill nav ---------- */
html body .site-nav {
  position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%);
  width: max-content; max-width: calc(100vw - 24px); height: auto; right: auto; border-radius: 99px; border: 0 !important;
  background: rgba(10, 22, 40, .72) !important; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px var(--v3-line), 0 18px 40px -24px rgba(0, 0, 0, .6);
  transition: background .5s var(--v3-spring), box-shadow .5s var(--v3-spring);
}
html body .site-nav.scrolled { background: rgba(6, 15, 31, .86) !important; }
html body .site-nav .nav-inner { height: auto; padding: 7px 7px 7px 20px; gap: 22px; max-width: none; }
html body .site-nav .nav-logo img, html body .site-nav.scrolled .nav-logo img { height: 26px; }
html body .nav-links { gap: 18px; }
html body .nav-links a:not(.btn-primary) { font-size: 14px; color: var(--v3-mute); transition: color .4s var(--v3-spring); }
html body .nav-links a:not(.btn-primary)::after { display: none; }
html body .nav-links a:not(.btn-primary):hover, html body .nav-links a.active:not(.btn-primary) { color: var(--v3-ink); }
@media (max-width: 1440px) { html body .nav-links { gap: 14px; } html body .nav-links a:not(.btn-primary) { font-size: 13.5px; } }
@media (max-width: 1280px) {
  html body .site-nav { width: calc(100vw - 24px); border-radius: 26px; }
  html body .site-nav .nav-inner { padding: 7px 10px 7px 18px; justify-content: space-between; }
  html body .nav-links {
    top: calc(76px + env(safe-area-inset-top, 0px)) !important; left: 12px !important; right: 12px !important; width: auto !important;
    border-radius: 24px; background: rgba(6, 15, 31, .97) !important; box-shadow: inset 0 0 0 1px var(--v3-line);
  }
}

/* ---------- Buttons: pill with an icon circle ---------- */
html body .btn-primary, html body .btn-outline {
  display: inline-flex; align-items: center; gap: 12px; border-radius: 99px !important;
  font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 1.2;
  padding: 6px 6px 6px 20px; transition: transform .5s var(--v3-spring), box-shadow .5s var(--v3-spring), background .4s;
}
html body .btn-primary { background: var(--v3-cyan); color: #04202a !important; border: 0; }
html body .btn-primary:hover { background: var(--v3-cyan); transform: none; box-shadow: 0 10px 30px -12px rgba(0, 224, 237, .6); }
html body .btn-primary:active, html body .btn-outline:active { transform: scale(.97); }
html body .btn-primary > svg { display: none; }
html body .btn-primary::after, html body .btn-outline::after {
  content: "\2197"; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(4, 32, 42, .14); font-size: 15px; line-height: 1; transition: transform .5s var(--v3-spring);
}
html body .btn-primary:hover::after, html body .btn-outline:hover::after { transform: translate(3px, -2px) scale(1.06); }
html body .btn-outline { background: transparent; color: var(--v3-ink); border: 0; box-shadow: inset 0 0 0 1px var(--v3-line); }
html body .btn-outline::after { content: "\2192"; background: rgba(240, 244, 255, .08); }
html body .btn-outline:hover { background: rgba(240, 244, 255, .04); color: var(--v3-ink); transform: none; }
html body .nav-links .btn-primary { font-size: 13.5px; padding: 4px 4px 4px 15px; }
html body .nav-links .btn-primary::after { width: 28px; height: 28px; font-size: 13px; }
html body .btn-sm::after { width: 28px; height: 28px; }
html body button.btn-primary::after, html body .booking-modal .btn-primary::after,
html body form .btn-primary::after { content: "\2192"; }
html body .v2-link { font-weight: 500; transition: color .4s var(--v3-spring), border-color .4s var(--v3-spring); }

/* ---------- Double-bezel cards (outer shell ring, lit core) ---------- */
html body.v2 .v2-tile, html body.v2 .v2-case, html body.v2 .v2-fact, html body.v2 .v2-layer,
html body.v2u .card-panel, html body.v2u .credential-card, html body.v2u .card, html body.v2u .card-accent-top,
html body.v2u .card-data, html body.v2u .insight-card, html body.v2u .contact-card, html body.v2u .portal-feature,
html body.v2u .position-box, html body.v2u .processor-flow__step, html body.v2u .scenario-card, html body.v2u .soft-return,
html body.v2u .v2-tile, html body.v2u .v2-case {
  background: linear-gradient(170deg, var(--v3-plate), var(--v3-deep)) !important;
  border-radius: 21px !important; border: 0 !important;
  box-shadow: inset 0 1px 0 rgba(240, 244, 255, .10), 0 0 0 7px rgba(240, 244, 255, .035), 0 0 0 8px var(--v3-line) !important;
}
html body.v2 .v2-fact { padding: clamp(22px, 3vw, 36px); margin: 8px; }
html body.v2 .v2-gap__facts { gap: 18px; }

/* ---------- Section rhythm on inner pages: the concept's night palette ---------- */
html body.v2 { --v2-surface: var(--v3-night); --v2-surface-2: var(--v3-deep); background: var(--v3-night); }
html body.v2u .page-hero {
  padding-top: calc(110px + clamp(30px, 4vw, 70px));
  background: radial-gradient(90% 80% at 50% 120%, #10305a 0, var(--v3-night) 70%), var(--v3-night);
  border-bottom: 0;
}
html body.v2u .cta-section, html body.v2 .v2-cta {
  background: radial-gradient(70% 90% at 50% 110%, #10305a, var(--v3-night) 70%) !important;
}

/* ---------- Reveal: a gentle rise from a VISIBLE state ----------
   Only when motion.js has said motion is allowed (html.js-motion).
   Everything else (no JS, reduced motion) is fully shown. */
html body.v2 .fade-up { opacity: 1; transform: none; transition: none; }
html.js-motion body.v2 .fade-up:not(.visible), html.js-motion [data-rise]:not(.is-in) { opacity: .25; transform: translateY(38px); }
html.js-motion body.v2 .fade-up, html.js-motion [data-rise] { transition: opacity 1.1s cubic-bezier(.22, 1, .36, 1), transform 1.1s cubic-bezier(.22, 1, .36, 1); }
html.js-motion.motion-calm body.v2 .fade-up:not(.visible) { opacity: .6; transform: translateY(14px); }

/* ---------- Path line (timelines) ---------- */
.v3-path-fill { position: absolute; background: var(--v3-cyan); box-shadow: 0 0 12px var(--v3-cyan); transform-origin: left center; pointer-events: none; }

/* =============================================================
   HOME (body.v3-home)
   ============================================================= */
body.v3-home { background: var(--v3-night); }

/* --- Hero --- */
.v3-hero { position: relative; }
.v3-stage {
  position: relative; overflow: hidden;
  background: radial-gradient(90% 70% at 50% 110%, #10305a 0, var(--v3-night) 72%);
  padding: clamp(110px, 14vh, 140px) 0 40px;
}
html.v3-live .v3-hero { height: 320vh; }
html.v3-live .v3-stage { position: sticky; top: 0; height: 100vh; height: 100dvh; min-height: 560px; padding-bottom: 0; }
.v3-points { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.v3-front { position: relative; z-index: 1; }
body.v3-home .v3-hero h1 { font-size: clamp(2.7rem, 5.6vw, 5.2rem); line-height: 1; margin: 0; letter-spacing: -0.04em; }
body.v3-home .v3-hero h1 em { font-style: normal !important; }
.v3-hl { position: relative; width: min(100%, calc((100vh - 230px) * 2.4)); aspect-ratio: 1728 / 706; margin: clamp(22px, 4vh, 44px) auto 0; }
.v3-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.v3-wires line { stroke: #2e6fd0; stroke-width: 1.5; opacity: .6; stroke-linecap: round; }
.v3-wires circle { fill: #c7f7fb; filter: drop-shadow(0 0 6px var(--v3-cyan)); }
.v3-slab {
  position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  text-align: center; border-radius: clamp(10px, 1.2vw, 18px); padding: 6px 10px; color: var(--v3-ink); line-height: 1.15;
}
.v3-slab b { font-family: var(--font-heading); font-weight: 600; letter-spacing: -.01em; }
.v3-ag { top: 0; height: 21.2%; width: 27.8%; background: #13233e; box-shadow: inset 0 0 0 2px #2e6fd0, inset 0 0 26px rgba(46, 111, 208, .25), 0 0 18px rgba(46, 111, 208, .25); }
.v3-ag b { font-size: clamp(1rem, 1.9vw, 1.75rem); }
.v3-ag span { font-size: clamp(.72rem, 1vw, .98rem); color: #7fb0f5; }
.v3-a1 { left: 3.5%; } .v3-a2 { left: 36.1%; } .v3-a3 { left: 68.7%; }
.v3-core { left: 26.9%; top: 42.5%; width: 46.3%; height: 21.2%; background: #07262d; box-shadow: inset 0 0 0 2px var(--v3-cyan), 0 0 50px rgba(0, 200, 212, .3); }
html.js-motion .v3-core { animation: v3-breathe 2.8s ease-in-out infinite; }
.v3-core b { font-size: clamp(1.4rem, 2.8vw, 2.6rem); font-weight: 700; color: #cffbff; letter-spacing: .03em; }
.v3-core span { font-size: clamp(.78rem, 1.2vw, 1.2rem); color: var(--v3-cyan); }
.v3-found { left: 15.3%; top: 83.3%; width: 69.4%; height: 16.7%; background: #14263f; outline: 2px dashed #3c62a0; outline-offset: -2px; }
.v3-found b { font-size: clamp(.92rem, 1.5vw, 1.4rem); font-weight: 500; color: #c6d6ec; }
@keyframes v3-breathe { 0%, 100% { box-shadow: inset 0 0 0 2px var(--v3-cyan), 0 0 44px rgba(0, 200, 212, .28); } 50% { box-shadow: inset 0 0 0 2px var(--v3-cyan), 0 0 74px rgba(0, 200, 212, .6); } }
.v3-words { display: none; }
html.v3-live .v3-words { display: block; position: absolute; inset: 0; }
.v3-words span { position: absolute; font: 500 clamp(13px, 1.5vw, 20px)/1 var(--font-mono); color: var(--v3-ice); }
.v3-hint { display: none; }
html.v3-live .v3-hint { display: block; position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); font: 500 11px/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--v3-mute); }

.v3-after { padding: clamp(50px, 7vw, 90px) 0 0; }
.v3-after .lead { max-width: 58ch; color: var(--v3-mute); font-size: clamp(1.02rem, 1.5vw, 1.2rem); }
.v3-after .v2-ctas { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
body.v3-home .v2-proof { border: 0; margin-top: clamp(36px, 5vw, 60px); }
body.v3-home .v2-proof__item, body.v3-home .v2-proof__item + .v2-proof__item { border: 0; padding: 0 24px 0 0; }
body.v3-home .v2-proof__num { font-size: 1.5rem; }

/* --- 5% --- */
body.v3-home .v2-gap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
body.v3-home #cost .v2-wrap > .v2-gap { position: relative; }
.v3-dots:empty { display: none; }
.v3-dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: clamp(8px, 1.4vw, 16px); max-width: 460px; }
.v3-dots span { aspect-ratio: 1; border-radius: 50%; background: rgba(157, 176, 204, .32); }
.v3-dots span.on { background: var(--v3-cyan); box-shadow: 0 0 22px rgba(0, 224, 237, .65); }
body.v3-home #cost .v2-gap { grid-template-areas: "dots lead" "facts facts"; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: clamp(60px, 8vw, 110px); }
body.v3-home #cost .v3-dots { grid-area: dots; }
body.v3-home #cost .v2-gap__lead { grid-area: lead; }
body.v3-home #cost .v2-gap__facts { grid-area: facts; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
body.v3-home .v2-mega { font-family: var(--font-heading); font-weight: 700; letter-spacing: -.05em; color: var(--v3-cyan); font-variant-numeric: tabular-nums; }

/* --- Steps: staggered bento --- */
body.v3-home .v2-bento { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto; gap: 18px; margin-top: 56px; }
body.v3-home .v2-bento .v2-tile { grid-row: auto; margin: 8px; }
body.v3-home .v2-bento .v2-tile:nth-child(1) { grid-column: span 5; }
body.v3-home .v2-bento .v2-tile:nth-child(2) { grid-column: span 4; margin-top: 52px; }
body.v3-home .v2-bento .v2-tile:nth-child(3) { grid-column: span 3; margin-top: 96px; }
body.v3-home .v2-tile--lead h3 { font-size: clamp(1.4rem, 2.3vw, 1.9rem); }

/* --- Agent tabs --- */
html body .v2-tabs__bar { background: transparent; padding: 0; gap: 8px; }
html body .v2-tabs__btn { background: rgba(240, 244, 255, .05); color: var(--v3-mute); padding: 13px 20px; font-family: var(--font-body); transition: background .45s var(--v3-spring), color .45s var(--v3-spring), transform .45s var(--v3-spring); }
html body .v2-tabs__btn:hover { color: var(--v3-ink); }
html body .v2-tabs__btn:active { transform: scale(.97); }
html body .v2-tabs__btn[aria-selected="true"] { background: var(--v3-ink); color: var(--v3-night); }
html body .v2-tabs__panel {
  background: linear-gradient(170deg, var(--v3-plate), var(--v3-deep)); border-radius: 21px; padding: clamp(22px, 3vw, 36px); margin: 8px;
  box-shadow: inset 0 1px 0 rgba(240, 244, 255, .10), 0 0 0 7px rgba(240, 244, 255, .035), 0 0 0 8px var(--v3-line);
}
.v3-typing::after { content: ""; display: inline-block; width: .07em; height: .9em; background: var(--v3-cyan); margin-left: 4px; vertical-align: -.1em; animation: v3-blink 1s steps(2) infinite; }
@keyframes v3-blink { 50% { opacity: 0; } }
body.v3-home .v2-tabs__cols li:first-child { font-family: var(--font-heading); font-size: clamp(1.2rem, 2.4vw, 1.8rem); line-height: 1.25; letter-spacing: -.015em; border-top: 0; }

/* --- Layers: iso plates beside the stack --- */
.v3-layers { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(30px, 5vw, 70px); align-items: center; margin-top: 40px; }
.v3-layers > * { min-width: 0; }
.v3-iso { height: min(60vh, 480px); perspective: 1400px; display: grid; place-items: center; }
.v3-isoin { position: relative; width: min(70%, 320px); aspect-ratio: 1; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-40deg); }
.v3-plate { position: absolute; inset: 0; border-radius: 26px; background: linear-gradient(135deg, rgba(0, 224, 237, .2), rgba(16, 48, 90, .75)); box-shadow: inset 0 0 0 1px rgba(0, 224, 237, .45); display: grid; place-items: center; font: 500 12px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--v3-ice); }
.v3-p1 { transform: translateZ(-90px); } .v3-p3 { transform: translateZ(90px); }
body.v3-home .v2-layer, body.v3-home .v2-layer--1, body.v3-home .v2-layer--2, body.v3-home .v2-layer--3 { margin: 8px; grid-template-columns: minmax(0, 1fr); gap: 8px; }
body.v3-home .v2-layer + .v2-layer { margin-top: 18px; }

/* --- Ladder --- */
body.v3-home .v2-timeline { grid-template-columns: minmax(0, 1fr); gap: 42px; padding-left: 44px; margin-top: 54px; }
body.v3-home .v2-timeline::before { left: 11px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; background: var(--v3-line); }
body.v3-home .v2-timeline li { padding-top: 0; }
body.v3-home .v2-timeline__dot { left: -39px; top: 9px; width: 12px; height: 12px; font-size: 0; background: var(--v3-night); box-shadow: 0 0 0 2px var(--v3-cyan); border: 0; }
body.v3-home .v2-timeline h4 { font-size: clamp(1.4rem, 3vw, 2.3rem); }
body.v3-home .v2-timeline p { font-size: 17px; color: var(--v3-mute); max-width: 56ch; }

/* --- Europe --- */
body.v3-home .v2-europe__list ul { display: grid; gap: 18px; }
body.v3-home .v2-europe__list li { list-style: none; padding: clamp(18px, 2vw, 26px); border-radius: 21px; background: linear-gradient(170deg, rgba(15, 32, 56, .9), rgba(10, 22, 40, .9)); box-shadow: inset 0 1px 0 rgba(240, 244, 255, .10), 0 0 0 7px rgba(240, 244, 255, .035), 0 0 0 8px var(--v3-line); margin: 8px; }

/* --- Cases --- */
body.v3-home .v2-rail { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; gap: 18px; padding: 8px; }
body.v3-home .v2-case dd { font-family: var(--font-heading); font-variant-numeric: tabular-nums; }

/* --- Options --- */
body.v3-home .v2-options { display: block; background: none; border: 0; border-radius: 0; margin-top: 44px; }
body.v3-home .v2-option { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 18px; padding: 24px 0; background: none; box-shadow: inset 0 1px 0 var(--v3-line); transition: transform .6s var(--v3-spring); }
body.v3-home .v2-option:hover { transform: translateX(10px); }
body.v3-home .v2-option h4 { font-size: clamp(1.15rem, 2.2vw, 1.6rem); margin: 0; }
body.v3-home .v2-option p { color: var(--v3-mute); }

/* --- Founder --- */
html body.v2 .v2-quote p { font-family: var(--font-heading); font-weight: 500; letter-spacing: -.025em; }
.v3-word { display: inline-block; }

/* --- Final CTA: centred --- */
body.v3-home .v2-cta__grid { display: block; text-align: center; }
body.v3-home .v2-cta h2 { max-width: 17em; margin-inline: auto; }
body.v3-home .v2-cta p { max-width: 58ch; margin: 20px auto 26px; }

/* ---------- Phones ---------- */
@media (max-width: 860px) {
  .v3-hl { width: 100%; aspect-ratio: 360 / 470; }
  .v3-ag { height: 20.4%; width: 31.2%; } .v3-a1 { left: 0; } .v3-a2 { left: 34.4%; } .v3-a3 { left: 68.8%; }
  .v3-ag span { font-size: .66rem; line-height: 1.2; } .v3-ag b { font-size: .92rem; line-height: 1.1; }
  .v3-core { left: 8%; width: 84%; top: 39.5%; }
  .v3-found { left: 0; width: 100%; top: 79.6%; height: 20.4%; }
  body.v3-home #cost .v2-gap { grid-template-areas: "lead" "dots" "facts"; grid-template-columns: minmax(0, 1fr); }
  body.v3-home #cost .v2-gap__facts, .v3-layers, body.v3-home .v2-rail { grid-template-columns: minmax(0, 1fr); }
  body.v3-home .v2-bento { grid-template-columns: minmax(0, 1fr); }
  body.v3-home .v2-bento .v2-tile:nth-child(n) { grid-column: auto; margin-top: 8px; }
  .v3-iso { height: 300px; }
  body.v3-home .v2-option { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  body.v3-home .v2-proof__row { gap: 12px; }
  body.v3-home .v2-proof__label { font-size: 12px; }
  body.v3-home .v2-proof__num { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .v3-core, .v3-typing::after { animation: none !important; }
  html body .btn-primary, html body .btn-outline, html body .v2-tabs__btn, body.v3-home .v2-option { transition: none !important; }
}

/* Home hero while GSAP is loading: the diagram waits for the scroll (a 5 s
   fallback in motion.js drops v3-live, which shows it static again). */
html.v3-live:not(.v3-ready) .v3-slab, html.v3-live:not(.v3-ready) .v3-wires { opacity: 0; }
/* v2.css collapses the home timeline at small widths; v3 keeps the vertical ladder */
body.v3-home .v2-timeline li { padding: 0 !important; }
body.v3-home .v2-timeline::before { display: block !important; }
/* the eyebrow is a label, never a full-width bar */
html body.v2 .eyebrow { display: inline-flex !important; width: fit-content !important; max-width: 100%; align-items: center; }
/* long translated labels (de, pl, fi) wrap inside the pill instead of widening the page */
html body .btn-primary, html body .btn-outline, html body.v2 .btn-primary, html body.v2 .btn-outline { white-space: normal; max-width: 100%; text-align: left; }
html body .v2-tabs__bar { max-width: 100%; flex-wrap: wrap; }
html body .v2-tabs__btn { flex: 0 0 auto; max-width: 100%; }
html body .v2-ctas > * { min-width: 0; max-width: 100%; }
/* the drifting words and the scaled heading never widen the page; clip (not hidden) keeps position:sticky working */
.v3-hero { overflow-x: clip; }
@media (max-width: 860px) {
  html body .v2-tabs__bar { display: flex; width: auto; border-radius: 0; }
  html body .v2-tabs__btn { padding: 11px 16px; text-align: center; border-radius: 99px; }
}
/* long compound words (fi, sv, de, nl) and long link texts break inside cards and articles on phones */
html body.v2 :is(.card-data, .scenario-strip__card, .card, .card-panel, .v2-tile, .v2-case, .v2-fact, .insight-card) { min-width: 0; overflow-wrap: break-word; hyphens: auto; }
html body.v2 :is(.article-body, .article-body a, .card-data, .scenario-strip__card) { overflow-wrap: anywhere; }

/* ---------- Animated inner-page heroes (js/hero-anim.js) ----------
   The canvas takes the place of the still picture. Without it (no JS, reduced
   motion) the desktop keeps the picture; phones never show a picture under the text. */
html body.v2u .page-hero.v3-anim .container::after { display: none !important; }
.v3-hero-anim { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); width: min(36%, 460px); aspect-ratio: 1 / 1; pointer-events: none; }
@media (max-width: 1024px) { .v3-hero-anim { width: min(36%, 380px); } }
@media (max-width: 768px) {
  html body.v2u .page-hero.has-visual .container::after { display: none !important; }
  .v3-hero-anim { right: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(100%, 420px); opacity: .32; z-index: 0; }
  html body.v2u .page-hero.v3-anim .container > *:not(.v3-hero-anim) { position: relative; z-index: 1; }
}
/* buttons whose label already ends in an arrow get no second arrow (class set in motion.js) */
html body .btn-primary.has-arrow::after, html body .btn-outline.has-arrow::after { display: none; }
html body .btn-primary.has-arrow, html body .btn-outline.has-arrow { padding: 14px 22px; }

/* ---------- Fixes after the 1 Nov review (Claus, phone) ---------- */
/* fixed-width digits ('tnum' on .card-data, from style.css) gave Schibsted a wide comma: "€3 , 000" */
html body.v2 .card-data, html body.v2 .card-data * { font-feature-settings: normal; }
/* rows that were designed as ruled rows stay rows, not boxes (they had no gap, so the rings collided) */
html body.v2 .v2p-rows > * { background: none !important; box-shadow: none !important; border-radius: 0 !important; margin: 0 !important;
  border-top: 1px solid var(--v3-line) !important; padding: 28px 0 !important; }
html body.v2 .v2p-rows > *:last-child { border-bottom: 1px solid var(--v3-line) !important; }
/* the highlighted middle pricing tier keeps its highlight */
html body.v2 .v2p-tiers > :nth-child(2) {
  background: linear-gradient(170deg, rgba(0, 224, 237, .16), rgba(10, 22, 40, .95)) !important;
  box-shadow: inset 0 0 0 1px rgba(0, 224, 237, .45), 0 0 0 7px rgba(0, 224, 237, .06), 0 0 0 8px rgba(0, 224, 237, .25) !important;
}
/* every boxed card keeps clear space around its outer ring */
html body.v2 :is(.v2-tile, .v2-case, .v2-fact, .v2-layer, .card-panel, .credential-card, .card, .card-accent-top, .card-data, .insight-card,
  .contact-card, .portal-feature, .position-box, .processor-flow__step, .scenario-card, .soft-return) { margin: 12px; }
@media (max-width: 768px) {
  /* side-scrolling rails stack on phones, so no box is cut off at the screen edge */
  html body.v2 .v2p-rail { grid-auto-flow: row !important; grid-auto-columns: auto !important; grid-template-columns: minmax(0, 1fr) !important; overflow: visible !important; }
  /* thinner ring, half the padding and spacing inside boxes (Claus: "lower these by half") */
  html body.v2 :is(.v2-tile, .v2-case, .v2-fact, .v2-layer, .card-panel, .credential-card, .card, .card-accent-top, .card-data, .insight-card,
    .contact-card, .portal-feature, .position-box, .processor-flow__step, .scenario-card, .soft-return, .v2-tabs__panel) {
    padding: 18px !important; margin: 8px 6px !important;
    box-shadow: inset 0 1px 0 rgba(240, 244, 255, .10), 0 0 0 4px rgba(240, 244, 255, .035), 0 0 0 5px var(--v3-line) !important;
  }
  html body.v2 .v2p-tiers > :nth-child(2) { box-shadow: inset 0 0 0 1px rgba(0, 224, 237, .45), 0 0 0 4px rgba(0, 224, 237, .06), 0 0 0 5px rgba(0, 224, 237, .25) !important; }
  html body.v2 :is(.card-data, .card-panel, .card, .scenario-card) li { padding-top: 7px !important; padding-bottom: 7px !important; }
  html body.v2 :is(.card-data, .card-panel, .card, .scenario-card) p { margin-bottom: .5em; }
  html body.v2 :is(.card-data, .card-panel, .card, .scenario-card) h3 { margin-bottom: .4em; }
}
/* ruled rows win over every card rule, phones included (placed last, higher specificity) */
html body.v2 .v2p-rows > *, html body.v2 .v2p-rows > .card-panel, html body.v2 .v2p-rows > .card {
  background: none !important; box-shadow: none !important; border-radius: 0 !important; margin: 0 !important;
  border-top: 1px solid var(--v3-line) !important; padding: 24px 0 !important;
}
@media (max-width: 768px) { .v3-hero-anim { opacity: .22; } }
