/* =========================================================
   HOME.CSS (MERGED / CLEAN + SENTRERINGS-FIXES V2 – BUGFIX FOR KORT/MODAL)
   One source of truth for home page styling
   ========================================================= */

/* =========================================================
   HOME.CSS NAVIGATION HELP
   Search anchors:
   - [HOME > HERO]
   - [HOME > MANIFESTO]
   - [HOME > PROCESS]
   - [HOME > PROOF]
   - [HOME > APPS]
   - [HOME > WORK]
   - [HOME > CONTACT]
   ========================================================= */

/* =========================================================
   01. TOKENS / ROOT / PAGE VARS
   ========================================================= */

.home { width: 100%; }

:root {
  /* Base UI tokens */
  --ui-border: var(--frame-border);
  --ui-border-strong: var(--frame-border-strong);
  --ui-border-hot: rgba(255, 78, 78, 0.44);
  --ui-border-magenta: var(--accent-magenta-border);

  --ui-card-radius: var(--frame-radius-md);
  --ui-card-radius-lg: var(--frame-radius-lg);
  --ui-btn-radius: var(--frame-radius-sm);

  --ui-line-red: rgba(229, 88, 88, 0.52);
  --ui-line-magenta: rgba(255, 45, 143, 0.52);
  --ui-line-blue: rgba(106, 158, 252, 0.46);
  --ui-line-soft: var(--frame-line);

  --ui-surface: var(--frame-surface);
  --ui-surface-soft: rgba(12, 12, 20, 0.74);

  --ui-shadow: var(--frame-shadow);
  --ui-shadow-hover: var(--frame-shadow-hover);
  --ui-glow-magenta: var(--glow-magenta);
  --ui-glow-magenta-soft: var(--glow-magenta-soft);

  --ui-fade-red: var(--frame-fade-red);
  --ui-fade-blue: var(--frame-fade-blue);

  --ease-smooth: var(--ps-ease-smooth);
  --ease-soft: var(--ps-ease-soft);

  /* Journey tokens */
  --journey-ink-strong: rgba(245, 247, 255, 0.98);
  --journey-ink-soft: rgba(232, 236, 249, 0.88);
  --journey-ink-muted: rgba(232, 236, 249, 0.68);
  --journey-line-soft: rgba(245, 247, 255, 0.14);
  --journey-line: rgba(245, 247, 255, 0.24);
  --journey-line-hot: rgba(255, 80, 80, 0.54);
  --journey-line-cool: rgba(106, 158, 252, 0.48);
  --journey-wash: linear-gradient(108deg, rgba(255, 86, 86, 0.11), rgba(106, 158, 252, 0.11));
}

/* Home detection: data-page (server) or :has(main.home) (DOM) */
body[data-page="home"],
main.home,
body:has(main.home) {
  --sectionY: 108px;
  --section-stack: clamp(72px, 8vw, 120px);
  --section-head-space: clamp(18px, 2.2vw, 30px);
  --content-band: min(1040px, 100%);
}

/* =========================================================
   02. GLOBAL HOME LAYOUT
   ========================================================= */

body[data-page="home"] .top,
body:has(main.home) .top {
  margin-bottom: 0;
}

main {
  position: relative;
  z-index: 1;
}

body[data-page="home"] .section,
main.home .section,
body:has(main.home) .section {
  margin: var(--section-stack) auto;
  scroll-margin-top: clamp(84px, 10vh, 126px);
}

body[data-page="home"] .section-head,
main.home .section-head,
body:has(main.home) .section-head {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
  margin-bottom: var(--section-head-space);
}

body[data-page="home"] .section-head .section-sub,
main.home .section-head .section-sub,
body:has(main.home) .section-head .section-sub {
  margin-inline: auto;
  text-align: center;
}

/* Innsikt (#innsikt): match #apps — section is a grid so the head shrinks to content and centers */
body[data-page="home"] #innsikt.home-editorial,
main.home #innsikt.home-editorial,
body:has(main.home) #innsikt.home-editorial {
  display: grid;
  justify-items: center;
}

body[data-page="home"] #innsikt.home-editorial .home-editorial-featured,
main.home #innsikt.home-editorial .home-editorial-featured,
body:has(main.home) #innsikt.home-editorial .home-editorial-featured,
body[data-page="home"] #innsikt.home-editorial .home-editorial-list,
main.home #innsikt.home-editorial .home-editorial-list,
body:has(main.home) #innsikt.home-editorial .home-editorial-list,
body[data-page="home"] #innsikt.home-editorial .home-editorial-cta,
main.home #innsikt.home-editorial .home-editorial-cta,
body:has(main.home) #innsikt.home-editorial .home-editorial-cta {
  justify-self: stretch;
  width: 100%;
}

/* Innsikt (#innsikt): same centered header treatment as #apps (explicit cascade win) */
body[data-page="home"] #innsikt.home-editorial .section-head,
main.home #innsikt.home-editorial .section-head,
body:has(main.home) #innsikt.home-editorial .section-head {
  display: grid !important;
  justify-items: center !important;
  text-align: center !important;
  margin-inline: auto !important;
  width: fit-content !important;
  max-width: 100% !important;
}

body[data-page="home"] #innsikt.home-editorial .section-head h2,
main.home #innsikt.home-editorial .section-head h2,
body:has(main.home) #innsikt.home-editorial .section-head h2 {
  margin-inline: auto !important;
  text-align: center !important;
}

body[data-page="home"] #innsikt.home-editorial .section-head .section-sub,
main.home #innsikt.home-editorial .section-head .section-sub,
body:has(main.home) #innsikt.home-editorial .section-head .section-sub {
  margin-inline: auto !important;
  text-align: center !important;
  max-width: 42ch;
}

/* =========================================================
   04. BUTTONS + CHIPS
   ========================================================= */

.btn {
  --magnet-x: 0px;
  --magnet-y: 0px;
  --lift: 0px;
  --press: 1;
  --btn-ring-red: rgba(238, 86, 86, 0.88);
  --btn-ring-blue: rgba(108, 168, 255, 0.82);
  --btn-ring-soft: rgba(245, 247, 250, 0.34);
  --btn-inner-warm: rgba(255, 78, 78, 0.16);
  --btn-inner-cool: rgba(110, 170, 255, 0.14);
  --btn-shell: linear-gradient(180deg, rgba(13, 13, 21, 0.95), rgba(8, 8, 14, 0.98));

  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: var(--ui-btn-radius);
  padding: 11px 20px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  color: rgba(245, 247, 250, 0.96);
  font-size: var(--fs-sm);
  border: 1px solid transparent;
  cursor: pointer;
  appearance: none;
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: visible;

  background:
    var(--btn-shell) padding-box,
    linear-gradient(
      112deg,
      rgba(236, 90, 90, 0.34) 0%,
      rgba(245, 247, 250, 0.2) 44%,
      rgba(108, 168, 255, 0.34) 100%
    ) border-box;

  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);

  transition:
    transform .24s var(--ease-smooth),
    box-shadow .28s var(--ease-soft),
    background .28s var(--ease-soft),
    filter .28s var(--ease-soft);

  transform: translate3d(var(--magnet-x), var(--magnet-y), 0) translateY(var(--lift)) scale(var(--press));
  will-change: transform, box-shadow;
}

.btn::before { content: none; }

.btn::after {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(85% 145% at -6% 50%, var(--btn-inner-warm), transparent 62%),
    radial-gradient(85% 145% at 106% 50%, var(--btn-inner-cool), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 40%);
  opacity: 0.58;
  transition: opacity .24s var(--ease-soft), filter .24s var(--ease-soft);
}

.btn:hover {
  --lift: -1px;
  box-shadow:
    0 14px 26px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(245, 247, 250, 0.14),
    0 0 16px rgba(255, 76, 76, 0.2),
    0 0 18px rgba(110, 170, 255, 0.16);
}

.btn:hover::after { opacity: 0.94; }

.btn:active {
  --press: 0.978;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(245, 247, 250, 0.26),
    0 0 22px rgba(255, 86, 86, 0.42),
    0 0 26px rgba(116, 178, 255, 0.32);
  filter: brightness(1.08) saturate(1.08);
}

.btn:active::after {
  opacity: 1;
  filter: brightness(1.22);
}

.btn:focus-visible {
  outline: 2px solid var(--accent-magenta-focus);
  outline-offset: 3px;
}

.btn.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.2);
  box-shadow: none;
  animation: none;
}
.btn.is-disabled::after { opacity: 0.24; }

.btn-primary {
  --btn-inner-warm: rgba(255, 126, 126, 0.28);
  --btn-inner-cool: rgba(148, 196, 255, 0.2);
  --btn-shell: linear-gradient(180deg, rgba(229, 64, 64, 0.95), rgba(197, 45, 45, 0.96));
  color: #fff;
  box-shadow:
    0 14px 28px rgba(156, 36, 36, 0.34),
    0 0 0 1px rgba(255, 219, 219, 0.14);
}

.btn-primary:hover {
  --btn-shell: linear-gradient(180deg, rgba(236, 80, 80, 0.97), rgba(205, 52, 52, 0.97));
  box-shadow:
    0 18px 34px rgba(156, 36, 36, 0.44),
    0 0 0 1px rgba(255, 228, 228, 0.26),
    0 0 20px rgba(255, 98, 98, 0.36),
    0 0 18px rgba(130, 186, 255, 0.2);
}

.btn-ghost {
  --btn-inner-warm: rgba(255, 82, 82, 0.14);
  --btn-inner-cool: rgba(110, 170, 255, 0.16);
  --btn-shell: linear-gradient(180deg, rgba(14, 14, 24, 0.95), rgba(8, 8, 14, 0.98));
  color: rgba(245, 247, 250, 0.96);
  box-shadow: var(--ui-shadow);
}

.btn-ghost:hover {
  --btn-shell: linear-gradient(180deg, rgba(16, 16, 25, 0.96), rgba(11, 11, 18, 0.98));
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.chip {
  border: 1px solid var(--stroke);
  background: rgba(12, 12, 20, 0.72);
  color: rgba(245, 247, 250, 0.92);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  font-size: var(--fs-sm);
}

/* =========================================================
   03–12. HERO / MANIFESTO / PROCESS / PROOF / APPS / FORMS / EFFECTS
   (Inlined – @import fails to load sub-files in some environments)
   ========================================================= */

.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero-network.page-network {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  -webkit-mask-image: none;
  mask-image: none;
}

.page-network::before,
.page-network::after {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.page-network::before {
  content: "";
  position: absolute;
  inset: -14% -8% -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(980px 360px at 84% 8%, rgba(226, 64, 64, 0.2), transparent 72%),
    radial-gradient(860px 320px at 16% -8%, rgba(94, 148, 246, 0.14), transparent 70%);
  opacity: 0.78;
  filter: blur(0.35px);
}

.hero-network .net-line {
  position: absolute;
  inset: -20%;
  z-index: 1;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 45, 143, 0.56) 50%, transparent 100%);
  background-size: var(--segment, 28%) 1.5px;
  background-repeat: no-repeat;
  background-position: -40% 50%;
  opacity: 0;
  transform: rotate(var(--angle));
  transform-origin: center;
  filter: blur(0.22px) drop-shadow(0 0 5px rgba(230, 0, 122, 0.24));
  mix-blend-mode: screen;
  animation: radarLine var(--duration, 140s) linear infinite;
  animation-delay: var(--delay, 0s);
}

.hero-network .line-1 { --angle: 12deg; --delay: 0s; --segment: 30%; }
.hero-network .line-2 { --angle: -26deg; --delay: 10s; --segment: 22%; }
.hero-network .line-3 { --angle: 38deg; --delay: 20s; --segment: 26%; }
.hero-network .line-4 { --angle: -58deg; --delay: 30s; --segment: 18%; }
.hero-network .line-5 { --angle: 74deg; --delay: 40s; --segment: 34%; }
.hero-network .line-6 { --angle: -98deg; --delay: 50s; --segment: 24%; }
.hero-network .line-7 { --angle: 146deg; --delay: 60s; --segment: 28%; }
.hero-network .line-8 { --angle: -142deg; --delay: 70s; --segment: 20%; }
.hero-network .line-9 { --angle: 6deg; --delay: 80s; --segment: 32%; }
.hero-network .line-10 { --angle: -82deg; --delay: 90s; --segment: 16%; }

body[data-page="home"] .journey-hero.hero,
main.home .journey-hero.hero {
  position: relative;
  display: flex;
  align-items: center;
  max-width: none;
  min-height: clamp(420px, 68vh, 760px);
  margin: clamp(26px, 5vw, 76px) 0 clamp(52px, 8vw, 112px);
  padding-inline: clamp(20px, 5vw, 74px);
  overflow: visible;
}

@media (min-width: 981px) {
  body[data-page="home"] .journey-hero.hero,
  main.home .journey-hero.hero {
    margin-top: clamp(16px, 3.4vw, 52px);
  }
}

.page-network::after {
  content: "";
  position: absolute;
  inset: -18% -12% -38%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(840px 320px at 8% 0%, rgba(255, 78, 78, 0.18), transparent 70%),
    radial-gradient(860px 340px at 90% 8%, rgba(96, 150, 246, 0.16), transparent 72%);
  opacity: 0.76;
  transform: translate3d(0, calc(var(--bg-shift, 0px) * 0.12), 0);
  animation: journeyGlowFloat 22s ease-in-out infinite alternate;
}

body[data-page="home"] .journey-hero__inner,
main.home .journey-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(1220px, 100%);
  margin-inline: auto;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: clamp(14px, 2vw, 24px);
}

body[data-page="home"] .journey-hero__kicker,
main.home .journey-hero__kicker {
  margin: 0;
  display: inline-flex;
  justify-self: center;
  align-items: center;
  gap: 12px;
  color: var(--journey-ink-muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

body[data-page="home"] .journey-hero__kicker::before,
main.home .journey-hero__kicker::before {
  content: "";
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, var(--journey-line-hot), var(--journey-line-cool));
}

body[data-page="home"] .journey-hero__title,
main.home .journey-hero__title {
  margin: 0;
  max-width: none;
  width: max-content;
  font-size: clamp(42px, 7vw, 94px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--journey-ink-strong);
  white-space: nowrap;
}

body[data-page="home"] .journey-hero__lead,
main.home .journey-hero__lead {
  margin: 0;
  max-width: 58ch;
  color: var(--journey-ink-soft);
  font-size: clamp(19px, 2.2vw, 30px);
  line-height: 1.45;
  text-align: center;
  justify-self: center;
}

.hero-actions,
.journey-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

body[data-page="home"] .journey-hero__actions.hero-actions,
main.home .journey-hero__actions.hero-actions {
  margin-top: clamp(6px, 1vw, 10px);
  gap: 12px;
  justify-content: center;
}

.hero-actions .btn { min-width: 148px; }

body[data-page="home"] .journey-hero__edge,
main.home .journey-hero__edge { display: none; }

body[data-page="home"] .manifesto,
main.home .manifesto {
  max-width: min(1260px, 100%);
  padding-inline: clamp(20px, 5vw, 74px);
}

body[data-page="home"] .manifesto-grid,
main.home .manifesto-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 42px);
  padding-block: clamp(18px, 3vw, 38px);
  border-block: 1px solid var(--journey-line-soft);
}

.manifesto-item {
  display: grid;
  justify-items: center;
  text-align: center;
}

body[data-page="home"] .manifesto-item:not(:first-child),
main.home .manifesto-item:not(:first-child) {
  border-left: 1px solid var(--journey-line-soft);
  padding-left: clamp(16px, 2vw, 28px);
}

.manifesto-word,
.trusttitle {
  margin: 0;
  margin-inline: auto;
  text-align: center;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(28px, 4vw, 56px);
  color: #fff;
}

body[data-page="home"] .manifesto-line,
body[data-page="home"] .trustsub,
main.home .manifesto-line,
main.home .trustsub {
  margin: 0;
  color: var(--journey-ink-soft);
  font-size: clamp(18px, 2vw, 20px);
  line-height: 1.35;
  max-width: 28ch;
}

body[data-page="home"] .manifesto-meta,
body[data-page="home"] .trustmeta,
main.home .manifesto-meta,
main.home .trustmeta {
  margin: 0;
  color: var(--journey-ink-muted);
  font-size: 15px;
  line-height: 1.45;
  max-width: 34ch;
}

.journey-progress {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  z-index: 1400;
  background: rgba(245, 247, 250, 0.08);
  pointer-events: none;
}

.journey-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(255, 45, 45, 0.92), rgba(106, 158, 252, 0.86));
  box-shadow: 0 0 12px rgba(255, 45, 45, 0.36);
  transform-origin: left center;
  transition: width .18s linear;
}

.process,
.process-journey { position: relative; }

body[data-page="home"] .process-journey,
main.home .process-journey {
  max-width: min(1280px, 100%);
  padding-inline: clamp(20px, 5vw, 74px);
}

body[data-page="home"] .process-journey-intro,
main.home .process-journey-intro {
  position: relative;
  max-width: min(1220px, 100%);
  margin-inline: auto;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0;
  margin-bottom: clamp(38px, 6vw, 92px);
  padding: clamp(24px, 3.2vw, 42px) 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

body[data-page="home"] .process-journey .process-idea-eyebrow,
main.home .process-journey .process-idea-eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 10px;
  color: var(--journey-ink-muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

body[data-page="home"] .process-journey .process-idea-eyebrow::before,
main.home .process-journey .process-idea-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--journey-line-hot), var(--journey-line-cool));
}

body[data-page="home"] .process-journey .process-idea-lead,
main.home .process-journey .process-idea-lead {
  margin: 14px 0 0;
  margin-inline: auto;
  max-width: none;
  width: fit-content;
  text-align: center;
  color: var(--journey-ink-strong);
  font-size: clamp(34px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: normal;
}

body[data-page="home"] .process-journey .process-idea-lead .process-idea-lead-line,
main.home .process-journey .process-idea-lead .process-idea-lead-line {
  display: block;
  white-space: nowrap;
}

body[data-page="home"] .process-journey .process-idea-body,
main.home .process-journey .process-idea-body {
  margin: 18px 0 0;
  max-width: 58ch;
  color: var(--journey-ink-soft);
  font-size: clamp(18px, 2.1vw, 28px);
  line-height: 1.45;
  text-align: center;
  justify-self: center;
}

body[data-page="home"] .process-journey .journey-switch-wrap,
main.home .process-journey .journey-switch-wrap {
  margin-top: 120px;
  display: grid;
  gap: 10px;
  width: min(58ch, 100%);
  justify-self: center;
  text-align: center;
}

body[data-page="home"] .process-journey .journey-switch-label,
main.home .process-journey .journey-switch-label {
  margin: 0;
  color: var(--journey-ink-muted);
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

body[data-page="home"] .process-journey .journey-switch,
main.home .process-journey .journey-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  width: fit-content;
  margin-inline: auto;
}

body[data-page="home"] .process-journey .journey-switch-btn,
main.home .process-journey .journey-switch-btn {
  min-height: 36px;
  min-width: 96px;
  border-radius: 999px;
  border: 1px solid var(--journey-line-soft);
  background: transparent;
  color: var(--journey-ink-soft);
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: border-color 220ms ease, color 220ms ease, background-color 220ms ease;
}

body[data-page="home"] .process-journey .journey-switch-btn:hover,
body[data-page="home"] .process-journey .journey-switch-btn:focus-visible,
body[data-page="home"] .process-journey .journey-switch-btn.is-active,
main.home .process-journey .journey-switch-btn:hover,
main.home .process-journey .journey-switch-btn:focus-visible,
main.home .process-journey .journey-switch-btn.is-active {
  border-color: rgba(245, 247, 255, 0.34);
  color: var(--journey-ink-strong);
  background: rgba(245, 247, 255, 0.06);
}

body[data-page="home"] .process-journey .process-segment-copy,
main.home .process-journey .process-segment-copy {
  margin: 0;
  margin-inline: auto;
  max-width: 54ch;
  color: var(--journey-ink-muted);
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}

body[data-page="home"] .process-journey-layout,
main.home .process-journey-layout {
  display: block;
  max-width: min(860px, 100%);
  margin-inline: auto;
}

body[data-page="home"] .process-journey-sticky,
main.home .process-journey-sticky {
  display: none;
}

body[data-page="home"] .process-focus-kicker,
body[data-page="home"] .process-active,
body[data-page="home"] .process-journey-progress-track,
body[data-page="home"] .process-journey-progress-fill,
main.home .process-focus-kicker,
main.home .process-active,
main.home .process-journey-progress-track,
main.home .process-journey-progress-fill {
  display: none;
}

body[data-page="home"] .process-journey-rail,
main.home .process-journey-rail {
  display: grid;
  gap: clamp(34px, 5vw, 72px);
}

body[data-page="home"] .process-step-panel,
main.home .process-step-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(220px, 30vh, 340px);
}

body[data-page="home"] .process-step-trigger,
main.home .process-step-trigger {
  position: relative;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 18px 0 38px;
  border-bottom: 1px solid var(--journey-line-soft);
  text-align: center;
  display: grid;
  justify-items: center;
  grid-template-columns: 1fr;
  gap: 18px;
  cursor: pointer;
  transition: transform 220ms ease;
}

body[data-page="home"] .process-step-trigger::before,
main.home .process-step-trigger::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--journey-line-hot), var(--journey-line-cool));
  transition: width 280ms ease;
}

body[data-page="home"] .process-step-trigger:hover,
body[data-page="home"] .process-step-trigger:focus-visible,
main.home .process-step-trigger:hover,
main.home .process-step-trigger:focus-visible {
  transform: translate3d(0, -2px, 0);
}

body[data-page="home"] .process-step-trigger.is-active::before,
main.home .process-step-trigger.is-active::before {
  width: 100%;
}

body[data-page="home"] .process-step-index,
main.home .process-step-index {
  display: inline-flex;
  min-width: 34px;
  color: var(--journey-ink-muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  line-height: 1.4;
}

body[data-page="home"] .process-step-copy,
main.home .process-step-copy {
  display: grid;
  gap: 12px;
  justify-items: center;
}

body[data-page="home"] .process-step-title,
main.home .process-step-title {
  color: var(--journey-ink-soft);
  font-size: clamp(26px, 2.5vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.014em;
  transition: color 220ms ease;
}

body[data-page="home"] .process-step-desc,
main.home .process-step-desc {
  color: var(--journey-ink-muted);
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.55;
  max-width: 52ch;
  margin-inline: auto;
  transition: color 220ms ease;
}

body[data-page="home"] .process-step-trigger.is-active .process-step-title,
main.home .process-step-trigger.is-active .process-step-title {
  color: var(--journey-ink-strong);
}

body[data-page="home"] .process-step-trigger.is-active .process-step-desc,
main.home .process-step-trigger.is-active .process-step-desc {
  color: var(--journey-ink-soft);
}

.proof,
.proof-stream { margin-top: 0; }

body[data-page="home"] .proof-stream,
main.home .proof-stream {
  max-width: min(1260px, 100%);
  padding-inline: clamp(20px, 5vw, 74px);
}

body[data-page="home"] .proof-stream-head,
main.home .proof-stream-head {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
  margin-bottom: clamp(18px, 3vw, 34px);
}

body[data-page="home"] .proof-stream-head h2,
main.home .proof-stream-head h2 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

body[data-page="home"] .proof-stream-head .section-sub,
main.home .proof-stream-head .section-sub {
  margin: 0;
  margin-inline: auto;
  max-width: 54ch;
  text-align: center;
}

body[data-page="home"] .proof-metrics,
main.home .proof-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.2vw, 34px);
  padding-block: clamp(20px, 3.4vw, 38px);
  border-top: 1px solid var(--journey-line-soft);
  border-bottom: 1px solid var(--journey-line-soft);
}

body[data-page="home"] .proof-metric,
main.home .proof-metric {
  margin: 0;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
}

body[data-page="home"] .proof-metric:not(:first-child),
main.home .proof-metric:not(:first-child) {
  border-left: 1px solid var(--journey-line-soft);
  padding-left: clamp(14px, 2vw, 24px);
}

body[data-page="home"] .proof-metric-value,
main.home .proof-metric-value {
  margin: 0;
  color: var(--journey-ink-strong);
  font-size: clamp(38px, 5vw, 78px);
  line-height: 1;
  letter-spacing: -0.03em;
}

body[data-page="home"] .proof-metric-label,
main.home .proof-metric-label {
  margin: 0;
  color: var(--journey-ink-soft);
  font-size: clamp(18px, 1.9vw, 26px);
  line-height: 1.3;
}

body[data-page="home"] .proof-metric-feed,
main.home .proof-metric-feed { min-height: 40px; }

body[data-page="home"] .proof-metric-icons,
main.home .proof-metric-icons {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}

body[data-page="home"] .proof-metric-icons li,
main.home .proof-metric-icons li { margin: 0; }

body[data-page="home"] .proof-metric .stat-icon-bubble,
main.home .proof-metric .stat-icon-bubble {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--journey-line-soft);
  background: var(--journey-wash);
}

body[data-page="home"] .proof-metric .stat-icon,
main.home .proof-metric .stat-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

body[data-page="home"] #apps,
main.home #apps {
  display: grid;
  justify-items: center;
}

body[data-page="home"] #apps .section-head,
main.home #apps .section-head {
  display: grid !important;
  justify-items: center !important;
  text-align: center !important;
  margin-inline: auto !important;
}

body[data-page="home"] #apps .section-head h2,
main.home #apps .section-head h2 {
  margin: 0 auto !important;
  text-align: center !important;
}

body[data-page="home"] #apps .section-head .section-sub,
main.home #apps .section-head .section-sub {
  margin: 0 auto !important;
  text-align: center !important;
  max-width: 28ch !important;
}

.apps-wrap {
  margin-top: clamp(12px, 1.6vw, 24px);
  display: flex;
  justify-content: center;
  margin-inline: auto;
  width: 100%;
  max-width: 100%;
}

.apps-scroller {
  --apps-card-width: 360px;
  --apps-col-gap: var(--gap, 32px);
  --apps-row-gap: clamp(16px, 2vw, 24px);
  display: grid;
  grid-template-columns: repeat(3, var(--apps-card-width));
  justify-content: center;
  column-gap: var(--apps-col-gap);
  row-gap: var(--apps-row-gap);
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  overflow-x: visible;
  overflow-y: visible;
  padding: 52px 0 72px;
}

.category-card {
  text-decoration: none;
  color: inherit;
  width: var(--apps-card-width);
  flex: none;
  max-width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  perspective: 1400px;
  position: relative;
}

.category-card:focus-visible { outline: none; }

.category-card:focus-visible .card-frame {
  outline: 3px solid var(--ui-border-magenta);
  outline-offset: 4px;
}

.card-frame {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --glow-x: 50%;
  --glow-y: 50%;
  --card-scale: 1;
  --media-shift-x: 0px;
  --media-shift-y: 0px;
  --title-shift-x: 0px;
  --title-shift-y: 0px;
  --meta-shift-x: 0px;
  --meta-shift-y: 0px;
  --lift: 0px;
  height: 230px;
  overflow: visible;
  position: relative;
  border-radius: var(--ui-card-radius-lg);
  border: 1px solid rgba(245, 247, 250, 0.16);
  background: linear-gradient(140deg, rgba(13, 13, 22, 0.96), rgba(8, 8, 14, 0.98));
  box-shadow: var(--ui-shadow);
  isolation: isolate;
  transform-style: preserve-3d;
  transition: transform 0.14s ease-out, box-shadow 0.22s var(--ease-soft), border-color 0.22s var(--ease-soft), filter 0.22s var(--ease-soft);
  transform: translateY(var(--lift)) scale3d(var(--card-scale), var(--card-scale), 1);
}

.card-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(280px 180px at var(--glow-x) var(--glow-y), rgba(106, 158, 252, 0.16), transparent 64%),
    radial-gradient(320px 190px at calc(100% - var(--glow-x)) calc(100% - var(--glow-y)), rgba(229, 88, 88, 0.16), transparent 68%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.28));
  opacity: 0.92;
}

.card-frame::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(229, 88, 88, 0.94) 34%, rgba(106, 158, 252, 0.86) 50%, rgba(229, 88, 88, 0.84) 66%, transparent);
  background-size: 220% 100%;
  animation: appCardBorderShift 7s linear infinite;
  pointer-events: none;
  z-index: 5;
  opacity: 0.92;
  mix-blend-mode: screen;
}

.category-card:hover .card-frame,
.category-card:focus-visible .card-frame,
.category-card:focus-within .card-frame {
  --lift: -4px;
  --card-scale: 1.02;
  box-shadow: var(--ui-shadow-hover), 0 0 40px rgba(106, 158, 252, 0.12), 0 0 24px rgba(229, 88, 88, 0.1);
  border-color: rgba(106, 158, 252, 0.4);
  filter: brightness(1.05);
}

.card-stage,
.card-core {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  transform-style: preserve-3d;
}

.card-stage { transition: transform 125ms ease-in-out; }

.card-core {
  transition: transform 840ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.card-face {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card-face-front {
  transform: rotateY(0deg) translateZ(1px);
  background: linear-gradient(180deg, rgba(11, 11, 19, 0.72), rgba(7, 7, 13, 0.92));
}

.card-face-front::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.06), transparent 44%),
    linear-gradient(180deg, rgba(5, 5, 10, 0.06), rgba(6, 6, 12, 0.72));
}

.card-face-back {
  transform: rotateY(180deg) translateZ(1px);
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(145deg, rgba(10, 10, 18, 0.96), rgba(4, 4, 10, 0.98));
  padding: 12px;
}

.card-face-back::before {
  content: "";
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(60% 48% at 20% 22%, rgba(255, 45, 45, 0.28), transparent 70%),
    radial-gradient(58% 52% at 78% 74%, rgba(76, 141, 255, 0.26), transparent 72%);
  filter: blur(8px);
  opacity: 0.42;
}

.card-face-back::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: calc(var(--ui-card-radius-lg) - 2px);
  background: linear-gradient(160deg, rgba(10, 10, 18, 0.94), rgba(8, 8, 14, 0.97));
}

.card-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: translate3d(var(--media-shift-x), var(--media-shift-y), 0);
  transition: transform 0.14s ease-out;
}

.card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1.01);
  transition: opacity .28s ease-in-out, transform .38s var(--ease-soft);
}

.category-card:hover .card-media img,
.category-card:focus-visible .card-media img,
.category-card:focus-within .card-media img {
  transform: scale(1.05);
}

.card-hover-img { opacity: 0; pointer-events: none; }

.category-card:hover .card-hover-img,
.category-card:focus-visible .card-hover-img,
.category-card:focus-within .card-hover-img {
  opacity: 1;
  transform: scale(1.07);
}

.card-title {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  z-index: 3;
  text-align: center;
  color: #fff;
  padding: 0 22px;
  gap: 8px;
}

.card-title h3 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: 1.2px;
  line-height: 1.15;
  text-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  background: linear-gradient(45deg, rgba(229, 88, 88, 1), rgba(106, 158, 252, 0.96) 50%, rgba(229, 88, 88, 0.96));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(106, 158, 252, 0.22));
  transform: translate3d(var(--title-shift-x), var(--title-shift-y), 40px);
  transition: transform 0.14s ease-out, opacity 0.28s ease;
}

.card-subtitle {
  margin: 0;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(245, 247, 250, 0.68);
  transform: translate3d(calc(var(--title-shift-x) * 0.8), calc(var(--title-shift-y) * 0.8), 30px);
  transition: transform 0.14s ease-out, opacity 0.28s ease;
}

.card-meta {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(255, 45, 45, 0.32), rgba(76, 141, 255, 0.28)),
    rgba(8, 8, 14, 0.56);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: rgba(245, 247, 250, 0.95);
  font-size: 11px;
  text-align: center;
  border: 1px solid rgba(245, 247, 250, 0.14);
  opacity: 0.9;
  transform: translate3d(var(--meta-shift-x), var(--meta-shift-y), 24px);
  transition: opacity .22s ease, transform .14s ease-out, border-color .22s ease;
  z-index: 4;
}

.card-meta p {
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-card:hover .card-title h3,
.category-card:focus-visible .card-title h3,
.category-card:focus-within .card-title h3 {
  transform: translate3d(var(--title-shift-x), calc(var(--title-shift-y) - 6px), 46px);
}

.category-card:hover .card-subtitle,
.category-card:focus-visible .card-subtitle,
.category-card:focus-within .card-subtitle {
  transform: translate3d(calc(var(--title-shift-x) * 0.8), calc(var(--title-shift-y) * 0.8 - 4px), 34px);
  opacity: .92;
}

.category-card:hover .card-meta,
.category-card:focus-visible .card-meta,
.category-card:focus-within .card-meta {
  opacity: 1;
  transform: translate3d(var(--meta-shift-x), calc(var(--meta-shift-y) - 2px), 30px);
  border-color: rgba(245, 247, 250, 0.2);
}

.card-back-content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--ui-card-radius-lg) - 2px);
  padding: 16px 14px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  transform: translateZ(38px);
  transition: transform 0.28s var(--ease-soft);
}

.category-card:hover .card-back-content,
.category-card:focus-visible .card-back-content,
.category-card:focus-within .card-back-content,
.category-card.is-flipped .card-back-content {
  transform: translateZ(48px);
}

.card-back-badge {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(245, 247, 250, 0.9);
  background: rgba(255, 255, 255, 0.06);
}

.card-back-badge.is-live { border-color: rgba(76,141,255,0.45); background: rgba(76,141,255,0.18); }
.card-back-badge.is-soon { border-color: rgba(255,45,45,0.4); background: rgba(255,45,45,0.12); }
.card-back-badge.is-pipeline { border-color: rgba(106,158,252,0.42); background: rgba(106,158,252,0.14); }

.card-back-icon {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  padding: 6px;
  background:
    linear-gradient(150deg, rgba(12, 12, 20, 0.95), rgba(6, 6, 12, 0.92)) padding-box,
    linear-gradient(145deg, rgba(229,88,88,0.52), rgba(106,158,252,0.45), rgba(229,88,88,0.4)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.card-back-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.04);
}

.card-back-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: rgba(245, 247, 250, 0.96);
}

.card-back-meta {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(236, 238, 246, 0.78);
  max-width: 90%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-back-action {
  margin: 4px 0 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: rgba(106, 158, 252, 0.92);
}

.category-card:hover .card-core,
.category-card:focus-visible .card-core,
.category-card:focus-within .card-core,
.category-card.is-flipped .card-core {
  transform: rotateY(180deg);
}

.category-card.isSoon,
.category-card.isLocked {
  cursor: not-allowed;
  opacity: 0.84;
  filter: saturate(0.86) grayscale(0.12);
}

.category-card.isSoon .card-frame,
.category-card.isLocked .card-frame {
  border-color: var(--ui-border);
  box-shadow: var(--ui-shadow);
  filter: brightness(0.97);
}

.contactCard {
  margin-top: 20px;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-card-radius);
  background: var(--ui-surface);
  padding: 18px;
  box-shadow: var(--ui-shadow);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
  transition: transform .28s var(--ease-smooth), border-color .28s var(--ease-soft), box-shadow .28s var(--ease-soft), background .28s var(--ease-soft);
}

.contactCard:hover,
.contactCard:focus-within {
  transform: translateY(-1px);
  border-color: var(--ui-border-magenta);
  box-shadow: var(--ui-shadow-hover), var(--ui-glow-magenta-soft);
  background: var(--frame-surface-strong);
}

.contactCard::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(300px 150px at 90% -8%, var(--ui-fade-red), transparent 74%),
    radial-gradient(220px 120px at 6% 110%, rgba(94, 148, 246, 0.1), transparent 72%);
  opacity: 0.76;
  animation: uiFadeFloat 18s var(--ease-soft) infinite alternate;
}

.contactCard::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 12%, var(--ui-line-red) 12% 88%, transparent 88% 100%) top / 100% 1px no-repeat,
    linear-gradient(90deg, transparent 0 18%, rgba(245, 247, 250, 0.16) 18% 82%, transparent 82% 100%) bottom / 100% 1px no-repeat;
  opacity: 0.52;
  animation: uiLineDrift 15s linear infinite;
}

.contactCard > * { position: relative; z-index: 1; }

#work .section-head {
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
  margin-bottom: clamp(18px, 2.2vw, 28px);
  justify-content: center;
}

#work .section-sub { max-width: 36ch; }

#work .section-head,
#work .opportunity-grid,
#work .leadForm,
#contact .section-head,
#contact .contactCard {
  width: 100%;
  max-width: var(--content-band);
  margin-inline: auto;
}

.opportunity-grid {
  display: grid;
  gap: 14px;
}

#work .opportunity-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(12px, 1.8vw, 20px);
}

#work .opportunity-card {
  --card-line: var(--ui-line-red);
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 186px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(245, 247, 250, 0.09);
  border-radius: var(--frame-radius-sm);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(10, 10, 16, 0.58), rgba(7, 7, 12, 0.68));
  transition: border-color .28s var(--ease-soft), background .28s var(--ease-soft), filter .28s var(--ease-soft);
}

#work .opportunity-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(300px 150px at 88% -8%, var(--ui-fade-red), transparent 74%),
    radial-gradient(220px 120px at 8% 110%, rgba(94, 148, 246, 0.1), transparent 72%);
  opacity: 0.54;
  z-index: 0;
  animation: uiFadeFloat 18s var(--ease-soft) infinite alternate;
}

#work .opportunity-card-investor { --card-line: var(--ui-line-blue); }

#work .opportunity-card-investor::before {
  background:
    radial-gradient(300px 150px at 88% -8%, var(--ui-fade-blue), transparent 74%),
    radial-gradient(220px 120px at 8% 110%, rgba(226, 64, 64, 0.1), transparent 72%);
}

#work .opportunity-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 8%, var(--card-line) 16% 84%, transparent 92% 100%) top / 180% 1px no-repeat,
    linear-gradient(180deg, var(--ui-line-soft), rgba(245, 247, 250, 0) 72%) top / 100% 44px no-repeat;
  background-position: -20% 0, 0 0;
  opacity: 0.42;
  z-index: 0;
  animation: uiLineDrift 24s var(--ease-soft) infinite;
}

#work .opportunity-card > * { position: relative; z-index: 1; }

#work .opportunity-card:hover,
#work .opportunity-card:focus-within,
#work .opportunity-card.is-selected {
  border-color: var(--ui-border-magenta);
  box-shadow: var(--ui-glow-magenta-soft);
  background: linear-gradient(180deg, rgba(11, 11, 18, 0.64), rgba(7, 7, 12, 0.72));
}

.opportunity-card h3 {
  margin: 0;
  font-size: clamp(28px, 2.1vw, 34px);
  line-height: 1.14;
}

.opportunity-card p {
  margin: 0;
  color: rgba(236, 238, 246, 0.9);
  font-size: var(--fs-sm);
  line-height: 1.56;
}

#work .opportunity-card .btn {
  align-self: end;
  justify-self: start;
  white-space: nowrap;
  min-width: 166px;
}

#work .leadForm {
  --card-line: var(--ui-line-red);
  margin-top: clamp(16px, 2.1vw, 24px);
  padding: 18px 18px 16px;
  border: 1px solid rgba(245, 247, 250, 0.09);
  border-radius: var(--frame-radius-sm);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(10, 10, 16, 0.58), rgba(7, 7, 12, 0.68));
  box-shadow: none;
}

#work .leadForm.contactCard::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(320px 160px at 90% -8%, var(--ui-fade-red), transparent 74%),
    radial-gradient(220px 120px at 6% 110%, rgba(94, 148, 246, 0.1), transparent 72%);
  opacity: 0.52;
  z-index: 0;
  animation: uiFadeFloat 20s var(--ease-soft) infinite alternate;
}

#work .leadForm.leadForm-investor { --card-line: var(--ui-line-blue); }

#work .leadForm.leadForm-investor.contactCard::before {
  background:
    radial-gradient(320px 160px at 90% -8%, var(--ui-fade-blue), transparent 74%),
    radial-gradient(220px 120px at 6% 110%, rgba(226, 64, 64, 0.1), transparent 72%);
}

#work .leadForm::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 8%, var(--card-line) 16% 84%, transparent 92% 100%) top / 180% 1px no-repeat,
    linear-gradient(180deg, var(--ui-line-soft), rgba(245, 247, 250, 0) 72%) top / 100% 44px no-repeat;
  background-position: -20% 0, 0 0;
  opacity: 0.42;
  z-index: 0;
  animation: uiLineDrift 24s var(--ease-soft) infinite;
}

#work .leadForm > * { position: relative; z-index: 1; }

#work .leadForm.contactCard:hover,
#work .leadForm.contactCard:focus-within {
  border-color: var(--ui-border-magenta);
  box-shadow: var(--ui-glow-magenta-soft);
  background: linear-gradient(180deg, rgba(11, 11, 18, 0.64), rgba(7, 7, 12, 0.72));
}

.leadForm h3 {
  margin: 0;
  font-size: var(--fs-md);
  font-weight: 600;
}

.leadFormSub {
  margin: 6px 0 0;
  color: rgba(236, 238, 246, 0.9);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.leadFormGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.leadFormField { display: grid; gap: 6px; }

.leadFormField span {
  color: rgba(236, 238, 246, 0.88);
  font-size: var(--fs-xs);
  line-height: 1.35;
}

.leadFormField input,
.leadFormField select,
.leadFormField textarea {
  width: 100%;
  border: 1px solid rgba(245,247,250,0.14);
  border-radius: 10px;
  background: rgba(8, 8, 14, 0.82);
  color: var(--text);
  padding: 10px 12px;
  line-height: 1.45;
}

.leadFormField textarea {
  resize: vertical;
  min-height: 100px;
}

.leadFormField input:focus-visible,
.leadFormField select:focus-visible,
.leadFormField textarea:focus-visible {
  outline: 2px solid var(--accent-magenta-focus);
  outline-offset: 2px;
  border-color: var(--ui-border-magenta);
}

.leadFormFieldFull { grid-column: 1 / -1; }

.leadFormActions {
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.leadFormNote {
  margin: 0;
  color: rgba(236, 238, 246, 0.86);
  font-size: var(--fs-xs);
  line-height: 1.45;
  flex: 1 1 200px;
  min-width: 0;
}

#contact .contactCard { margin-top: 0; }

.contactRow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 24px;
  border-bottom: 1px solid rgba(245,247,250,.08);
}

.contactRow:last-child { border-bottom: none; }

.label {
  color: rgba(236, 238, 246, 0.88);
  font-size: var(--fs-md);
  line-height: 1.45;
}

.value {
  color: var(--text);
  text-decoration: none;
  font-size: var(--fs-md);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.value:hover { text-decoration: underline; }

.footer {
  margin-top: 26px;
  border-top: 1px solid rgba(245,247,250,.08);
}

.footerInner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: var(--fs-xs);
}

.footerLinks { display: flex; gap: 12px; }

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover { color: var(--text); }

@keyframes radarLine {
  0% { opacity: 0; background-position: -40% 50%; }
  3% { opacity: 0.58; background-position: -10% 50%; }
  8% { opacity: 0.46; background-position: 100% 50%; }
  10% { opacity: 0; background-position: 120% 50%; }
  100% { opacity: 0; background-position: 120% 50%; }
}

@keyframes appCardBorderShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes uiFadeFloat {
  0% { background-position: 2% -2%, 98% 102%; }
  50% { background-position: 6% 2%, 94% 106%; }
  100% { background-position: -2% 4%, 102% 96%; }
}

@keyframes uiLineDrift {
  0% { opacity: 0.44; background-position: -20% 0, 0 0; }
  50% { opacity: 0.62; background-position: 60% 0, 0 0; }
  100% { opacity: 0.44; background-position: 140% 0, 0 0; }
}

@keyframes scanline {
  0% { background-position: 0% 50%; opacity: 0.35; }
  50% { background-position: 100% 50%; opacity: 0.7; }
  100% { background-position: 0% 50%; opacity: 0.35; }
}

@keyframes journeyGlowFloat {
  0% {
    transform: translate3d(0, calc(var(--bg-shift, 0px) * 0.1), 0);
    opacity: 0.72;
  }
  100% {
    transform: translate3d(0, calc(var(--bg-shift2, 0px) * 0.16), 0);
    opacity: 0.84;
  }
}

/* =========================================================
   13. RESPONSIVE
   ========================================================= */

@media (min-width: 1100px) {
  body[data-page="home"],
  main.home,
  body:has(main.home) {
    --sectionY: 160px;
    --section-stack: clamp(88px, 6.6vw, 126px);
    --section-head-space: clamp(24px, 2vw, 34px);
    --content-band: min(1080px, 100%);
    --gutter: 56px;
    --gap: 52px;
    --fs-sm: 17px;
    --fs-md: 20px;
    --fs-lg: 25px;
    --fs-xl: 31px;
  }

  body[data-page="home"] .section-head,
  main.home .section-head { margin-bottom: 36px; }
  body[data-page="home"] .section-head h2,
  main.home .section-head h2 { font-size: clamp(30px, 2.8vw, 44px); }

  body[data-page="home"] .process-journey-intro,
  main.home .process-journey-intro {
    margin-bottom: clamp(46px, 5.8vw, 82px);
    padding: clamp(30px, 3.4vw, 56px) 0;
  }

  /* [HOME > PROCESS > LAYOUT] Desktop width for centered single-column version */
  body[data-page="home"] .process-journey-layout,
  main.home .process-journey-layout {
    max-width: min(980px, 100%);
  }

  body[data-page="home"] .proof-metric-value,
  main.home .proof-metric-value {
    font-size: clamp(26px, 2.4vw, 36px);
  }
  .card-frame { height: 270px; }

  .contactCard { padding: 26px; }
  .contactRow { padding: 18px 0 26px; }

  .footerInner { padding: 28px var(--gutter); font-size: var(--fs-sm); }
}


@media (max-width: 980px) {
  body[data-page="home"],
  main.home,
  body:has(main.home) {
    --section-stack: clamp(64px, 8.5vw, 100px);
    --section-head-space: clamp(16px, 1.8vw, 24px);
  }

  body[data-page="home"] .journey-hero__title,
  main.home .journey-hero__title {
    max-width: 14ch;
    width: auto;
    white-space: normal;
    text-wrap: balance;
  }

  body[data-page="home"] .manifesto-grid,
  main.home .manifesto-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .manifesto-item:not(:first-child),
  main.home .manifesto-item:not(:first-child) {
    border-left: 0;
    border-top: 1px solid var(--journey-line-soft);
    padding-left: 0;
    padding-top: 16px;
  }

  /* [HOME > PROCESS > LAYOUT] Tablet width for centered single-column version */
  body[data-page="home"] .process-journey-layout,
  main.home .process-journey-layout,
  body:has(main.home) .process-journey-layout {
    max-width: min(900px, 100%);
  }

  body[data-page="home"] .process-step-panel,
  main.home .process-step-panel,
  body:has(main.home) .process-step-panel {
    min-height: clamp(150px, 34vh, 260px);
  }

  body[data-page="home"] .proof-metrics,
  main.home .proof-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="home"] .proof-metric:not(:first-child),
  main.home .proof-metric:not(:first-child) {
    border-left: 1px solid var(--journey-line-soft);
    padding-left: clamp(14px, 2vw, 24px);
  }

  body[data-page="home"] .proof-metric:nth-child(2n),
  main.home .proof-metric:nth-child(2n) {
    border-left: 0;
    padding-left: 0;
  }

  #work .opportunity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .apps-scroller {
    grid-template-columns: repeat(2, var(--apps-card-width));
    width: fit-content;
    max-width: 100%;
    --apps-col-gap: clamp(12px, 1.6vw, 20px);
    --apps-row-gap: clamp(12px, 1.8vw, 18px);
    padding: 42px 0 58px;
  }

  .card-frame { height: 198px; }
}

@media (max-width: 720px) {
  body[data-page="home"],
  main.home {
    --sectionY: 96px;
    --section-stack: clamp(50px, 10.2vw, 70px);
    --section-head-space: 14px;
  }

  body[data-page="home"] .section,
  main.home .section {
    scroll-margin-top: 76px;
  }

  body[data-page="home"] .journey-hero.hero,
  main.home .journey-hero.hero,
  body[data-page="home"] .manifesto,
  main.home .manifesto,
  body[data-page="home"] .process-journey,
  main.home .process-journey,
  body[data-page="home"] .proof-stream,
  main.home .proof-stream {
    padding-inline: 16px;
  }

  body[data-page="home"] .journey-hero__title,
  main.home .journey-hero__title {
    font-size: clamp(34px, 12vw, 58px);
  }

  body[data-page="home"] .journey-hero__lead,
  main.home .journey-hero__lead {
    font-size: clamp(17px, 5vw, 22px);
  }

  body[data-page="home"] .journey-hero__actions,
  main.home .journey-hero__actions { gap: 10px; }

  body[data-page="home"] .process-journey-intro,
  main.home .process-journey-intro {
    margin-bottom: 26px;
    padding: 20px 0;
    text-align: center;
    justify-items: center;
  }

  body[data-page="home"] .process-journey .process-idea-lead,
  main.home .process-journey .process-idea-lead {
    font-size: clamp(28px, 9.2vw, 44px);
  }

  body[data-page="home"] .process-journey .process-idea-lead .process-idea-lead-line,
  main.home .process-journey .process-idea-lead .process-idea-lead-line {
    white-space: normal;
  }

  body[data-page="home"] .process-journey .process-idea-body,
  main.home .process-journey .process-idea-body {
    font-size: 17px;
  }

  body[data-page="home"] .process-journey .journey-switch,
  main.home .process-journey .journey-switch {
    width: 100%;
  }

  body[data-page="home"] .process-journey .journey-switch-btn,
  main.home .process-journey .journey-switch-btn,
  body:has(main.home) .process-journey .journey-switch-btn {
    flex: 1 1 0;
    min-width: 0;
  }

  body[data-page="home"] .process-step-trigger,
  main.home .process-step-trigger {
    gap: 12px;
  }

  body[data-page="home"] .process-step-title,
  main.home .process-step-title {
    font-size: clamp(20px, 7.4vw, 30px);
  }

  body[data-page="home"] .proof-metrics,
  main.home .proof-metrics {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  body[data-page="home"] .proof-metric:not(:first-child),
  body[data-page="home"] .proof-metric:nth-child(2n),
  main.home .proof-metric:not(:first-child),
  main.home .proof-metric:nth-child(2n) {
    border-left: 0;
    border-top: 1px solid var(--journey-line-soft);
    padding-left: 0;
    padding-top: 14px;
  }

  #work .opportunity-grid { grid-template-columns: 1fr; }
  .leadFormGrid { grid-template-columns: 1fr; }

  .apps-scroller {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    --apps-row-gap: 14px;
    padding: 30px 12px 44px;
    width: 100%;
  }

  .category-card { width: min(100%, var(--apps-card-width)); }
  .card-frame { height: 188px; }

  .contactRow {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0 18px;
  }
}

@media (max-width: 520px) {
  body[data-page="home"] .process-journey-intro,
  main.home .process-journey-intro { padding: 18px 0; }

  .hero-actions a,
  .journey-hero__actions a {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================================
   14. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn::after,
  .journey-progress-fill,
  .process-journey-progress-fill,
  .process-active,
  .contactCard,
  #work .opportunity-card,
  #work .leadForm,
  .process-step-trigger,
  .process-step-trigger::before {
    transition: none !important;
  }

  .hero-network .net-line,
  .contactCard::before,
  .contactCard::after,
  #work .opportunity-card::before,
  #work .opportunity-card::after,
  #work .leadForm.contactCard::before,
  #work .leadForm::after,
  .card-frame::after,
  .page-network::after {
    animation: none !important;
  }

  .page-network::after {
    transform: none;
  }
}



/* Kontakt-header: sentrer kun teksten */
body[data-page="home"] #contact .section-head,
main.home #contact .section-head {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  display: grid;
  justify-items: center;
  text-align: center;
}

body[data-page="home"] #contact .section-head h2,
body[data-page="home"] #contact .section-head .section-sub {
  text-align: center;
  margin-inline: auto;
}

/* Kun kant-lekkasje fra vignette – behold midt-glow */
body[data-page="home"] .page-network::before,
body[data-page="home"] .page-network::after,
main.home .page-network::before,
main.home .page-network::after {
  inset: -5% -5% -10%;
  background: radial-gradient(500px 700px at 90% 30%, rgba(255, 78, 78, 0.0), transparent 50%);
  opacity: 0.62;
  filter: blur(0.2px);
}


@media (min-width: 981px) {
  /* HOMEPAGE hero final polish */
  body[data-page="home"] .journey-hero__title,
  main.home .journey-hero__title {
    font-size: clamp(40px, 6.4vw, 86px);
    line-height: 1.08;
    letter-spacing: -0.024em;
  }
}
