/* Seven Peaks website — design tokens & shared styles */

:root {
  /* Surfaces */
  --prussian: #0D2C54;
  --prussian-600: #0A2343;
  --prussian-700: #081A32;
  --prussian-800: #051222;
  --prussian-900: #030911;
  --crayola: #006FFF;
  --crayola-600: #0059CC;
  --crayola-300: #66A9FF;
  --crayola-50: #E6F1FF;
  --alice: #F0F4FA;
  --azureish: #DCE3EF;
  --white: #FFFFFF;

  /* Text */
  --text-primary: #1F2632;
  --text-secondary: #3C506A;
  --text-tertiary: #5F7388;
  --text-brand: #0D2C54;
  --text-brand-secondary: #0059CC;
  --text-white: #FFFFFF;
  --text-on-brand-secondary: #DCE3EF;
  --text-on-brand-tertiary: #99C5FF;

  /* Accents */
  --awesome: #F92155;
  --spanish-yellow: #FCB710;
  --caribbean: #11D399;
  --carolina: #00A4EB;

  /* Fonts */
  --font-display: 'Lora', Georgia, serif;
  --font-body: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Spacing & radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-1: 0 1px 2px rgba(13,44,84,0.08);
  --shadow-2: 0 4px 12px rgba(13,44,84,0.10);
  --shadow-3: 0 8px 24px rgba(13,44,84,0.16);
  --shadow-4: 0 16px 48px rgba(13,44,84,0.20);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --motion-scale: 1;

  /* Accent intensity (tweakable) */
  --accent-opacity: 1;

  /* Layout */
  --container: 1280px;
  --gutter: 64px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  background: var(--white);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

::selection {
  background: var(--crayola);
  color: #fff;
}

/* ---------- Accessibility: skip link + focus indicators ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  z-index: 9999;
  background: #0A1E3D;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 8px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Visible focus ring on all interactive elements when keyboard-navigated */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #006FFF;
  outline-offset: 3px;
  border-radius: 4px;
}
.topnav a.nav-link:focus-visible,
.topnav .btn:focus-visible {
  outline-color: #fff;
}

/* Bridge-mock visual-only headings (demoted from h5/h6 for heading-order a11y) */
.bridge-head {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: inherit;
  margin: 0;
}
.bridge-card-head {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: inherit;
  margin: 0 0 10px;
}

/* ---------- Display type ---------- */
.serif { font-family: var(--font-display); font-weight: 600; }
.mono  { font-family: var(--font-mono); }

/* ---------- Top nav ---------- */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 400ms var(--ease-out), backdrop-filter 400ms var(--ease-out), padding 400ms var(--ease-out), border-color 400ms var(--ease-out), transform 420ms var(--ease-out), opacity 320ms var(--ease-out);
  border-bottom: 1px solid transparent;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.topnav.is-hidden {
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
}
.topnav.is-light {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--azureish);
  padding: 14px 48px;
}
.topnav.is-dark {
  background: transparent;
}
.topnav .logo {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.topnav .logo img {
  display: block;
  height: 28px;
  width: auto;
  transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out);
}
.topnav .logo .logo-icon {
  position: absolute;
  left: 0; top: 50%;
  height: 32px;
  transform: translateY(-50%) scale(0.92);
  opacity: 0;
  pointer-events: none;
}
.topnav.is-light .logo .logo-full {
  opacity: 0;
  transform: translateX(-6px);
  pointer-events: none;
}
.topnav.is-light .logo .logo-icon {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}
.topnav .links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topnav .links a.nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-white);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  transition: color 180ms var(--ease-out), background 180ms var(--ease-out);
  letter-spacing: -0.005em;
}
.topnav.is-light .links a.nav-link {
  color: var(--text-secondary);
}
.topnav .links a.nav-link:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
}
.topnav.is-light .links a.nav-link:hover {
  background: var(--alice);
  color: var(--text-primary);
}
.topnav .cta {
  margin-left: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  padding: 12px 20px;
  line-height: 1;
  transition: background 180ms var(--ease-out), color 180ms var(--ease-out), border-color 180ms var(--ease-out), transform 180ms var(--ease-out);
  letter-spacing: -0.005em;
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--crayola);
}
.btn-primary { background: var(--crayola-600); color: #fff; }
.btn-primary:hover { background: #004499; }
.btn-secondary {
  background: transparent;
  color: var(--text-brand);
  border: 1.5px solid var(--prussian);
  padding: 10.5px 18.5px;
}
.btn-secondary:hover { background: var(--crayola-50); }
.btn-ghost {
  background: transparent;
  color: inherit;
  padding: 10px 16px;
  position: relative;
}
.btn-ghost::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: 6px;
  height: 1px;
  background: currentColor;
  opacity: 0.25;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms var(--ease-out), opacity 240ms var(--ease-out);
}
.btn-ghost:hover::after { transform: scaleX(1); opacity: 0.6; }
.on-dark .btn-secondary, .btn-secondary.on-dark {
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.on-dark .btn-secondary:hover, .btn-secondary.on-dark:hover {
  background: rgba(255,255,255,0.08);
  border-color: #fff;
}

/* ---------- Section primitives ---------- */
section.band {
  position: relative;
  padding: 160px 48px;
}
.container {
  max-width: var(--container);
  margin: 0 auto;
}
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crayola-600);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow .num {
  display: none;
}
.eyebrow.on-dark { color: var(--crayola-300); }
.eyebrow.on-dark .num { display: none; }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.08;
  color: var(--text-brand);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section-sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 58ch;
  text-wrap: pretty;
}
.on-dark .section-title { color: #fff; }
.on-dark .section-sub { color: rgba(230, 241, 255, 0.82); }
.shield-band .section-sub { color: rgba(230, 241, 255, 0.82); }

/* ---------- Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
  transition-delay: calc(var(--reveal-delay, 0ms) * var(--motion-scale));
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  color: #fff;
  overflow: hidden;
  background: #05111F;
  isolation: isolate;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 60% at 50% 45%, rgba(13, 44, 84, 0) 0%, rgba(5, 17, 31, 0.55) 80%),
    linear-gradient(180deg, rgba(5,17,31,0.35) 0%, rgba(5,17,31,0) 30%, rgba(5,17,31,0) 55%, rgba(5,17,31,0.85) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  max-width: var(--container);
  margin: 0 auto;
  padding: 108px 48px 72px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.hero-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(230, 241, 255, 0.72);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--crayola);
  box-shadow: 0 0 12px var(--crayola);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
.hero-headline {
  align-self: center;
  max-width: 100%;
}
.hero-headline h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(44px, 6.4vw, 96px);
  line-height: 1.08;
  letter-spacing: -0.028em;
  margin: 24px 0 0;
  color: #fff;
  text-wrap: balance;
}
.hero-headline h1 .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
}
.hero-headline h1 .word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 900ms var(--ease-out), opacity 600ms var(--ease-out);
}
.hero-headline h1 .word.is-in { transform: translateY(0); opacity: 1; }
.hero-headline h1 em {
  font-style: italic;
  font-weight: 600;
  /* Solid hex — matches desktop render across iOS/Android/Safari (rgba alpha was compositing to pure white on mobile) */
  color: #a8b8cf;
  -webkit-text-fill-color: #a8b8cf;
}
.hero-cursor {
  display: inline-block;
  width: 0.21em;
  height: 0.88em;
  background: var(--crayola);
  vertical-align: -0.12em;
  margin-left: 0.08em;
  opacity: 0;
  animation: none;
}
.hero-cursor.is-in {
  opacity: 1;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 48px;
}
.hero-sub {
  font-size: 17px;
  line-height: 1.5;
  color: rgba(230, 241, 255, 0.72);
  max-width: 42ch;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(230, 241, 255, 0.5);
  text-transform: uppercase;
  pointer-events: none;
}
.hero-scroll .track {
  width: 1px;
  height: 48px;
  background: rgba(230, 241, 255, 0.2);
  position: relative;
  overflow: hidden;
}
.hero-scroll .track::after {
  content: '';
  position: absolute;
  top: -50%;
  left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, transparent, var(--crayola-300));
  animation: scroll-trace 2.4s var(--ease-in-out) infinite;
}
@keyframes scroll-trace {
  0% { top: -50%; }
  100% { top: 100%; }
}

/* ---------- Trusted by ---------- */
.trusted {
  background: var(--alice);
  padding: 120px 48px;
}
.trusted-eyebrow {
  display: flex;
  justify-content: center;
  margin: 0 auto 12px;
  color: var(--crayola-600);
}
.trusted-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
  max-width: 34ch;
  margin: 0 auto 64px;
  color: var(--text-brand);
  text-wrap: balance;
}
.trusted-bot {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-tertiary);
  text-align: center;
  margin: 64px auto 0;
  line-height: 1;
}
.logo-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px 16px;
}
.logo-wall .cell {
  aspect-ratio: 1.9 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 28px;
  transition: opacity 240ms var(--ease-out), filter 240ms var(--ease-out);
  opacity: 0.78;
}
.logo-wall .cell:hover {
  opacity: 1;
}
.logo-wall .cell .logo-img {
  width: 55%;
  height: 55%;
  max-width: 55%;
  max-height: 55%;
  object-fit: contain;
  display: block;
  /* Keep original logos, ~75% opacity, gentle blue-cool tint */
  opacity: 0.75;
  filter: saturate(0.55) hue-rotate(-8deg) brightness(0.9);
  transition: opacity 240ms var(--ease-out), filter 240ms var(--ease-out), transform 240ms var(--ease-out);
}
.logo-wall .cell:hover .logo-img {
  opacity: 0.95;
  filter: saturate(0.7) hue-rotate(-8deg) brightness(0.95);
  transform: translateY(-1px);
}
.logo-wall .cell:hover .logo-img {
  transform: translateY(-1px);
}
.logo-wall .cell .brand-mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-align: center;
  line-height: 1;
}
.logo-wall .cell.sans .brand-mark {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.015em;
}
.logo-wall .cell.mono .brand-mark {
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.02em;
  font-size: 18px;
  text-transform: uppercase;
}
.logo-wall .cell.caps .brand-mark {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 15px;
  text-transform: uppercase;
}

/* ---------- What we do (between Trusted and Delivery) ---------- */
.what-we-do {
  background: var(--white);
  padding: 160px 48px;
}
.what-we-do-intro {
  max-width: 1200px;
  margin: 0 auto 80px;
  text-align: left;
}
.what-we-do-intro .eyebrow { margin-bottom: 16px; }
.what-we-do-intro .section-title {
  font-size: clamp(28px, 3vw, 40px);
  max-width: 22ch;
}
.what-we-do-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.what-card {
  background: var(--white);
  border: 1px solid var(--azureish);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 240ms var(--ease-out), border-color 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}
.what-card:hover {
  transform: translateY(-2px);
  border-color: var(--crayola);
  box-shadow: var(--shadow-2);
}
.what-card .num {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--crayola);
  display: block;
  margin-bottom: 24px;
}
.what-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.25;
  color: var(--text-brand);
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
.what-card p {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-tertiary);
  margin: 0;
  max-width: 42ch;
}

/* ---------- Section 3 — Delivery model ---------- */
.delivery {
  background: var(--alice);
  padding: 160px 48px;
}
.delivery-intro {
  text-align: center;
  max-width: 880px;
  margin: 0 auto 120px;
}
.delivery-intro .eyebrow { justify-content: center; margin-bottom: 12px; display: flex; }
.delivery-intro .section-sub { margin: 24px auto 0; }

.sub-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: center;
  padding: 120px 0;
  border-top: 1px solid var(--azureish);
}
.sub-section.reversed .copy { order: 2; }
.sub-section.reversed .visual { order: 1; }
.sub-section .copy { max-width: 52ch; }
.sub-section .copy h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-brand);
  margin: 0 0 20px;
  text-wrap: balance;
}
.sub-section .copy p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-secondary);
  text-wrap: pretty;
}
.powered-by {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 32px;
  letter-spacing: 0;
  white-space: nowrap;
  width: max-content;
  max-width: 100%;
}
@media (min-width: 900px) {
  .powered-by { max-width: none; }
}
.powered-by .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--azureish);
  color: var(--text-brand);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0;
}
.pill.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: -0.005em;
  padding: 4px 11px 4px 7px;
  gap: 4px;
}
.pill.brand .pill-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  display: block;
}
.powered-by .pill.brand::before { display: none; }
.powered-by .pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--crayola);
}
.powered-by .sep { color: var(--text-tertiary); padding: 0 2px; }

/* Visual frame shared */
.visual {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* 3a2 Coordination — orchestration scene */
.coord-section {
  padding: 120px 0;
  border-top: 1px solid var(--azureish);
}
.coord-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.coord-intro .eyebrow {
  justify-content: center;
  margin-bottom: 20px;
  display: flex;
}
.coord-intro h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-brand);
  margin: 0 0 20px;
  text-wrap: balance;
}
.coord-intro p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 60ch;
  margin: 0 auto;
  text-wrap: pretty;
}
.coord-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7.5;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, #0d2f5a 0%, #07182e 70%, #03111f 100%);
  overflow: hidden;
  box-shadow: var(--shadow-3);
  border: 1px solid rgba(102, 169, 255, 0.08);
}
.coord-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.coord-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(230, 241, 255, 0.52);
  pointer-events: none;
  white-space: nowrap;
}
.coord-label-memory { left: 4.5%; top: 14%; }
.coord-label-orch { right: 4.5%; top: 14%; }
.coord-label-agents { left: 50%; bottom: 7%; transform: translateX(-50%); }

@media (max-width: 860px) {
  .coord-stage { aspect-ratio: 4 / 5; }
  .coord-label { font-size: 10px; letter-spacing: 0.14em; }
  .coord-section { padding: 80px 0; }
}

/* 3a Client Memory */
.memory-stage {
  background: linear-gradient(160deg, #0D2C54 0%, #081A32 100%);
  color: #fff;
  padding: 40px;
  border: 1px solid var(--prussian-600);
}
.memory-stage .stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.2px 1.2px at 14% 22%, rgba(255,255,255,0.4), transparent 60%),
    radial-gradient(1px 1px at 76% 14%, rgba(255,255,255,0.3), transparent 60%),
    radial-gradient(1.4px 1.4px at 42% 78%, rgba(255,255,255,0.35), transparent 60%),
    radial-gradient(1px 1px at 88% 60%, rgba(255,255,255,0.28), transparent 60%),
    radial-gradient(1.2px 1.2px at 24% 58%, rgba(255,255,255,0.3), transparent 60%);
}
.memory-vial {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 260px;
  border: 1.5px solid rgba(204, 226, 255, 0.35);
  border-radius: 100px;
  background: linear-gradient(180deg, rgba(0,111,255,0.02) 0%, rgba(0,111,255,0.14) 100%);
  box-shadow: inset 0 0 60px rgba(0, 111, 255, 0.08), 0 0 0 1px rgba(255,255,255,0.03);
  overflow: hidden;
}
.memory-vial::before {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: var(--memory-fill, 0%);
  background: linear-gradient(180deg, rgba(102, 169, 255, 0.38) 0%, rgba(0, 111, 255, 0.55) 100%);
  transition: height 1200ms var(--ease-in-out);
}
.memory-vial::after {
  content: '';
  position: absolute;
  left: 10%; right: 10%;
  bottom: var(--memory-fill, 0%);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(102, 169, 255, 0.8), transparent);
  opacity: var(--memory-opacity, 0);
  transition: bottom 1200ms var(--ease-in-out), opacity 400ms;
}
.memory-label {
  position: absolute;
  left: 50%;
  top: 28px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(204, 226, 255, 0.65);
  white-space: nowrap;
}
.memory-fragment {
  position: absolute;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(204, 226, 255, 0.22);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(230, 241, 255, 0.85);
  backdrop-filter: blur(4px);
  white-space: nowrap;
  letter-spacing: -0.005em;
  opacity: 0;
  transform: translate(var(--fx, 0), var(--fy, 0)) scale(0.9);
  transition: opacity 800ms var(--ease-out), transform 1400ms var(--ease-out);
  z-index: 2;
}
.memory-fragment .kind {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--crayola-300);
  margin-right: 6px;
}
.memory-fragment.is-in {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}
.memory-fragment.is-settled {
  opacity: 0.55;
  transform: translate(var(--sx, 0), var(--sy, 0)) scale(0.6);
}
.memory-quote {
  position: absolute;
  left: 0; right: 0;
  bottom: 24px;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: rgba(204, 226, 255, 0.7);
  letter-spacing: 0;
  opacity: 0;
  transition: opacity 1200ms var(--ease-out);
  padding: 0 48px;
}
.memory-quote.is-in { opacity: 1; }

/* Agent threads around vial (Stage 3) */
.memory-agents {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 600ms var(--ease-out);
}
.memory-agents.is-in { opacity: 1; }
.memory-agents .thread {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(102,169,255,0.55), transparent);
  height: 1px;
  transform-origin: left center;
}
.memory-agent-node {
  position: absolute;
  width: 28px; height: 28px;
  border-radius: 999px;
  background: rgba(13,44,84,0.9);
  border: 1px solid rgba(102,169,255,0.5);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--crayola-300);
  letter-spacing: 0;
}

/* 3b Build — architecture */
.arch-wrap {
  position: relative;
  aspect-ratio: unset;
  height: auto;
  overflow: visible;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.mem-badge {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--white);
  border: 1px solid var(--azureish);
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(16, 38, 90, 0.02);
  position: relative;
  z-index: 4;
}
.mem-badge .mem-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--crayola);
  box-shadow: 0 0 0 3px rgba(0, 111, 255, 0.14);
}
.mem-badge .mem-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-brand);
}
.mem-bridge {
  position: relative;
  align-self: center;
  width: 140px;
  height: 56px;
  margin: -2px 0 -2px;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
}
@keyframes memGreenUp {
  0%   { transform: translateY(0);    opacity: 0; }
  8%   { opacity: 1; }
  42%  { transform: translateY(-56px); opacity: 1; }
  48%  { transform: translateY(-56px); opacity: 0; }
  100% { transform: translateY(-56px); opacity: 0; }
}
@keyframes memBlueDown {
  0%, 50%  { transform: translateY(0);   opacity: 0; }
  58%      { opacity: 1; }
  92%      { transform: translateY(56px); opacity: 1; }
  96%      { transform: translateY(56px); opacity: 0; }
  100%     { transform: translateY(56px); opacity: 0; }
}
.mem-dot-green {
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
}
.mem-dot-blue {
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
}
@media (prefers-reduced-motion: reduce) {
  .mem-dot-green, .mem-dot-blue { animation: none; opacity: 0.3; }
}

.arch-stage {
  background: var(--white);
  border: 1px solid var(--azureish);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  aspect-ratio: unset;
  height: auto;
  min-height: 520px;
  position: relative;
  overflow: hidden;
}
.arch-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}
.arch-layers, .arch-panel { position: relative; z-index: 2; }
.arch-layers {
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 100%;
  position: relative;
}
.arch-layers::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 1.5px dashed rgba(16, 38, 90, 0.28);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}
.arch-layer {
  z-index: 1;
}
.arch-layer {
  background: var(--alice);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: background 280ms var(--ease-out), border-color 280ms var(--ease-out), opacity 280ms var(--ease-out);
  position: relative;
  cursor: pointer;
}
.arch-layer .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}
.arch-layer .role {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-brand);
  letter-spacing: -0.005em;
}
.arch-layer .tag {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 6px;
  letter-spacing: -0.005em;
}
.arch-layers.has-active .arch-layer:not(.is-active) > * {
  opacity: 0.35;
  transition: opacity 280ms var(--ease-out);
}
.arch-layer.is-active {
  background: var(--white);
  border-color: var(--crayola-600);
  box-shadow: 0 0 0 3px rgba(0,111,255,0.08), var(--shadow-2);
}
.arch-layer-humans .nodes {
  display: flex;
  gap: 20px;
  justify-content: space-around;
  padding-top: 12px;
}
.arch-layer-humans .node {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.arch-layer-humans .avatar {
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--prussian);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.9), 0 2px 8px rgba(0, 28, 77, 0.08);
}
.arch-layer-humans .avatar::before,
.arch-layer-humans .avatar::after {
  display: none;
}

.arch-layer-orch .orch-core {
  display: flex; align-items: center; gap: 16px;
}
.arch-layer-orch .pulse {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--crayola);
  position: relative;
  flex-shrink: 0;
}
.arch-layer-orch .pulse::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 999px;
  border: 2px solid var(--crayola);
  animation: ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping {
  0% { transform: scale(1); opacity: 0.6; }
  80%, 100% { transform: scale(1.8); opacity: 0; }
}

.arch-layer-agents .agent-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.arch-layer-agents .agent {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  padding: 10px 6px;
  background: var(--white);
  border: 1px solid var(--azureish);
  border-radius: 10px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.arch-layer-agents .agent .agent-icon {
  width: 18px;
  height: 18px;
  color: var(--crayola-600);
  opacity: 0.85;
}

.arch-layer-skills .skills-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.arch-layer-skills .skill-group {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(17,211,153,0.08);
  border: 1px solid rgba(17,211,153,0.3);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.arch-layer-skills .skill-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.arch-layer-skills .skill-icon {
  width: 16px;
  height: 16px;
  color: var(--caribbean);
  opacity: 0.9;
  flex-shrink: 0;
}
.arch-layer-skills .skill-group.client .skill-icon { color: var(--crayola-600); }
.arch-layer-skills .skill-group.client {
  background: rgba(0,111,255,0.06);
  border-color: rgba(0,111,255,0.28);
}
.arch-layer-skills .skill-group .name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-brand);
}
.arch-layer-skills .skill-group .scope {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-tertiary);
}
.arch-layer-skills .skill-group .count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--caribbean);
  margin-top: 4px;
}
.arch-layer-skills .skill-group.client .count { color: var(--crayola-600); }

/* Memory & Shield columns */
.arch-rails {
  position: absolute;
  top: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  pointer-events: none;
}
.arch-rails.memory { left: -32px; align-items: flex-end; padding-right: 8px; border-right: 1px solid var(--azureish); overflow: visible; }
.arch-rails.memory::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; right: -1px;
  width: 2px;
  background: linear-gradient(180deg, rgba(0,111,255,0) 0%, rgba(0,111,255,0.35) 50%, rgba(0,111,255,0) 100%);
  animation: rail-breathe 4s ease-in-out infinite;
}
@keyframes rail-breathe {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.7; }
}
.arch-rails.memory .rail-ripple {
  position: absolute;
  right: -6px;
  width: 12px; height: 12px;
  border-radius: 999px;
  border: 1.5px solid rgba(0,111,255,0.6);
  transform: translate(50%, -50%);
  pointer-events: none;
  animation: rail-ripple 700ms ease-out forwards;
}
@keyframes rail-ripple {
  0% { opacity: 0.9; transform: translate(50%, -50%) scale(0.4); }
  100% { opacity: 0; transform: translate(50%, -50%) scale(2.2); }
}
.arch-rails.shield { right: -32px; align-items: flex-start; padding-left: 8px; border-left: 1px solid var(--azureish); }
.arch-rails .rail-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}
.arch-rails.shield .rail-label { color: var(--crayola-600); }

.arch-panel {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--prussian);
  color: var(--white);
  font-size: 13px;
  line-height: 1.55;
  min-height: 56px;
  transition: background 200ms var(--ease-out);
  letter-spacing: -0.005em;
}
.arch-panel .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crayola-300);
  display: block;
  margin-bottom: 4px;
}

/* Bridge mock */
.bridge-block {
  margin-top: 120px;
  padding-top: 96px;
  border-top: 1px solid var(--azureish);
}
.bridge-header {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 48px;
}
.bridge-header h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-brand);
  text-wrap: balance;
}
.bridge-header p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
}
.bridge-mock {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--azureish);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  display: grid;
  grid-template-columns: 244px 1fr;
  min-height: 540px;
  font-size: 13px;
}
.bridge-side {
  background: var(--alice);
  border-right: 1px solid var(--azureish);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bridge-workspace {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.bridge-workspace .mark {
  width: 22px; height: 22px;
  border-radius: 5px;
  background: var(--prussian);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 10px;
}
.bridge-workspace .name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  flex: 1;
}
.bridge-workspace .chev {
  font-size: 10px;
  color: var(--text-tertiary);
}
.bridge-nav-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 16px 12px 10px;
}
.bridge-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: -0.005em;
  cursor: pointer;
}
.bridge-nav-item .ico {
  width: 14px; height: 14px;
  border-radius: 3px;
  background: var(--text-tertiary);
  opacity: 0.55;
  flex-shrink: 0;
}
.bridge-nav-item .nav-ico {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  opacity: 0.75;
  flex-shrink: 0;
}
.bridge-nav-item .chev {
  margin-left: auto;
  color: var(--text-tertiary);
  font-size: 11px;
}
.bridge-nav-item .count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
}
.bridge-nav-item:hover { background: rgba(13,44,84,0.04); }
.bridge-nav-item.active {
  background: var(--crayola-50);
  color: var(--text-primary);
  font-weight: 600;
}
.bridge-nav-item.active .ico { background: var(--crayola); opacity: 1; }
.bridge-nav-item.active .nav-ico { color: var(--crayola); opacity: 1; }

.bridge-main { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 20px; }
.bridge-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bridge-top h5 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--text-brand);
  letter-spacing: -0.015em;
}
.bridge-top .sub {
  font-size: 12px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}
.bridge-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.bridge-metric {
  background: var(--alice);
  border: 1px solid var(--azureish);
  border-radius: var(--radius-md);
  padding: 14px;
}
/* Fire farge-varianter: kort 1–4 fra venstre */
.bridge-metric:nth-child(1) { background: #518FFF; border-color: #518FFF; }
.bridge-metric:nth-child(2) { background: #70CBFA; border-color: #70CBFA; }
.bridge-metric:nth-child(3) { background: #F2B45D; border-color: #F2B45D; }
.bridge-metric:nth-child(4) { background: #67C9A3; border-color: #67C9A3; }
.bridge-metric .k {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.bridge-metric .v {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}
.bridge-metric .d {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 4px;
}
.bridge-metric .d.warn { color: #fff; }

.bridge-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  flex: 1;
}
.bridge-card {
  background: var(--alice);
  border: 1px solid var(--azureish);
  border-radius: var(--radius-md);
  padding: 16px;
}
.bridge-card h6 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.bridge-timeline { display: flex; flex-direction: column; gap: 10px; }
.bridge-timeline .row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--azureish);
  align-items: center;
}
.bridge-timeline .row:last-child { border-bottom: none; }
.bridge-timeline .row .when {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
}
.bridge-timeline .row .what {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.bridge-signals .sig {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--azureish);
  font-size: 12.5px;
  line-height: 1.4;
}
.bridge-signals .sig:last-child { border-bottom: none; }
.bridge-signals .sig .bullet {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--crayola);
  flex-shrink: 0;
  margin-top: 6px;
}
.bridge-signals .sig .bullet.done { background: var(--caribbean); }
.bridge-signals .sig .bullet.warn { background: var(--spanish-yellow); }
.bridge-signals .sig .label {
  color: var(--text-primary);
}
.bridge-signals .sig .label small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
  margin-top: 2px;
  letter-spacing: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: -0.005em;
}
.badge-open { background: var(--crayola-50); color: var(--crayola-600); }
.badge-progress { background: rgba(252,183,16,0.2); color: var(--text-primary); }
.badge-done { background: rgba(17,211,153,0.2); color: var(--text-primary); }
.badge-neutral { background: var(--azureish); color: var(--text-secondary); }

.bridge-crew { display: flex; flex-direction: column; gap: 8px; }
.bridge-crew .person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
  letter-spacing: -0.005em;
}
.bridge-crew .avatar {
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--prussian);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 9px;
  flex-shrink: 0;
}
.bridge-crew .avatar.agent {
  background: var(--crayola-50);
  color: var(--crayola-600);
  border: 1px dashed var(--crayola-300);
}
.bridge-crew .avatar.photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: transparent;
  font-size: 0;
}
.bridge-crew .role {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0;
}

/* 3c Shield */
.shield-band {
  background: var(--prussian);
  color: #fff;
  padding: 160px 48px;
  position: relative;
  overflow: hidden;
}
.shield-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 60% at 10% 10%, rgba(0,111,255,0.18), transparent 60%),
    radial-gradient(ellipse 40% 60% at 90% 80%, rgba(43,119,218,0.12), transparent 60%);
  pointer-events: none;
}
.shield-band .container { position: relative; }
.shield-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 96px;
}
.shield-flow {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  gap: 16px;
  align-items: stretch;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(204,226,255,0.12);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.shield-node {
  min-width: 120px;
  padding: 18px 14px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(204,226,255,0.15);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
}
.shield-node .ico {
  width: 28px; height: 28px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  color: var(--crayola-300);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}
.shield-node .name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  letter-spacing: -0.005em;
}
.shield-node .detail {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(230,241,255,0.55);
  line-height: 1.4;
}
.shield-gate {
  background: rgba(0,111,255,0.08);
  border: 1px solid rgba(102,169,255,0.35);
  transition: background 300ms var(--ease-out), border-color 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
  position: relative;
}
.shield-gate.lit {
  background: rgba(0,111,255,0.2);
  border-color: var(--crayola-300);
  box-shadow: 0 0 0 3px rgba(0,111,255,0.1), 0 0 24px rgba(0,111,255,0.25);
}
.shield-gate .num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--crayola-300);
  letter-spacing: 0.1em;
}
.shield-link {
  align-self: center;
  height: 1px;
  background: linear-gradient(90deg, rgba(102,169,255,0.4), rgba(102,169,255,0.1));
  position: relative;
  overflow: hidden;
}
.shield-link::after {
  content: '';
  position: absolute;
  top: -1px; bottom: -1px; left: -40%;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--crayola-300), transparent);
  animation: shield-flow 3.5s linear infinite;
  animation-delay: var(--d, 0s);
}
@keyframes shield-flow {
  0% { left: -40%; }
  100% { left: 100%; }
}
.shield-node.done { background: rgba(17,211,153,0.08); border-color: rgba(17,211,153,0.35); }
.shield-node.done .ico { color: var(--caribbean); background: rgba(17,211,153,0.15); }

/* 3d Grow */
.grow {
  background: var(--alice);
  padding: 160px 48px;
}
.grow-intro {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 72px;
  border-bottom: 1px solid var(--azureish);
  padding-bottom: 64px;
}
.grow-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.grow-pane {
  background: var(--white);
  border: 1px solid var(--azureish);
  border-radius: var(--radius-lg);
  padding: 32px;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.grow-pane .layer-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crayola-600);
}
.grow-pane h3,
.grow-pane h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-brand);
  text-wrap: balance;
}
.grow-pane p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}
.grow-feed {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--azureish);
}
.grow-feed .item {
  padding: 10px 12px;
  background: var(--alice);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--crayola);
  font-size: 13px;
  color: var(--text-primary);
  letter-spacing: -0.005em;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}
.grow-feed .item.is-in { opacity: 1; transform: translateY(0); }
.grow-feed .item.green { border-left-color: var(--caribbean); }
.grow-feed .item.warn { border-left-color: var(--spanish-yellow); }
.grow-feed .item .tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.globe {
  position: relative;
  width: 100%;
  aspect-ratio: 1.6;
  margin-top: 12px;
}

/* Section 4 Promises */
.promises {
  background: var(--white);
  padding: 160px 48px;
}
.promises-intro {
  max-width: 800px;
  margin: 0 auto 96px;
  text-align: center;
}
.promises-intro .eyebrow { justify-content: center; margin-bottom: 12px; display: flex; }
.promises-sub { margin: 32px auto 0; }
.promises-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.promise {
  padding-top: 32px;
  border-top: 1px solid var(--azureish);
}
.promise .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--crayola-600);
  letter-spacing: 0.12em;
}
.promise h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-brand);
  margin: 24px 0 16px;
  text-wrap: balance;
}
.promise p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
  text-wrap: pretty;
}
.promise .tag {
  display: block;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 12.5px;
  color: var(--text-tertiary);
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed var(--azureish);
  line-height: 1.45;
}

/* Section 5 Cases + Limelight */
.cases {
  background: var(--alice);
  padding: 160px 48px;
}
.cases-intro { margin-bottom: 72px; max-width: 720px; }
.cases-intro .eyebrow { margin-bottom: 0; }
.cases-intro .section-sub { margin-top: 32px; }
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 28px;
}
@media (max-width: 720px) {
  .cases-grid { grid-template-columns: 1fr; gap: 24px; }
}
.case-card {
  background: var(--white);
  border: none;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(13, 44, 84, 0.04);
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
  cursor: default;
  color: inherit;
  text-decoration: none;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(13, 44, 84, 0.08);
}
.case-thumb {
  aspect-ratio: 16 / 9;
  background: var(--prussian);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.case-thumb svg { display: block; width: 100%; height: 100%; }
.case-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out), filter 900ms var(--ease-out);
  /* Unified treatment: pull palettes toward a cooler, lower-contrast feel */
  filter: saturate(0.78) contrast(1.04) brightness(0.94);
}
.case-card:hover .case-thumb img {
  transform: scale(1.04);
  filter: saturate(0.88) contrast(1.06) brightness(0.97);
}
.case-thumb::before {
  /* Unifying blue-navy wash — harmonizes warm + cool images into one family */
  content: '';
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(13, 44, 84, 0.18) 0%, rgba(13, 44, 84, 0.06) 50%, rgba(13, 44, 84, 0.42) 100%),
    radial-gradient(ellipse at 50% 40%, rgba(0, 111, 255, 0.08), transparent 70%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.case-thumb::after {
  content: '';
  position: absolute; inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(8, 26, 50, 0) 55%, rgba(8, 26, 50, 0.55) 100%);
  pointer-events: none;
}
.case-body { padding: 28px 28px 28px; }
.case-body .cust {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crayola-600);
  margin-bottom: 10px;
}
.case-body h3,
.case-body h5 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.18;
  letter-spacing: -0.018em;
  color: var(--text-brand);
  margin-bottom: 14px;
  text-wrap: balance;
}
.case-body p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 18px;
  max-width: 48ch;
}
.case-body .metric {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  padding: 12px 0;
  border-top: 1px solid var(--azureish);
  border-bottom: 1px solid var(--azureish);
  margin-bottom: 18px;
  letter-spacing: 0;
  line-height: 1.5;
}
.case-body .read {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--crayola-600);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.005em;
}
.case-body .read::after {
  content: '→';
  transition: transform 240ms var(--ease-out);
}
.case-card:hover .read::after { transform: translateX(4px); }

.limelight {
  padding: 120px 48px;
  background: var(--white);
}
.limelight-intro { margin-bottom: 96px; max-width: 720px; }
.limelight-intro .eyebrow { margin-bottom: 0; }
.limelight-intro .section-title { font-size: clamp(28px, 3vw, 40px); }
.limelight-intro .section-sub { margin-top: 8px; }
.limelight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.article {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  padding-top: 20px;
  border-top: 1px solid var(--azureish);
}
.article .kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.article .article-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.article .article-top .kicker {
  margin-bottom: 0;
}
.article .play-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--azureish);
  color: var(--crayola-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 200ms var(--ease-out), border-color 200ms var(--ease-out), color 200ms var(--ease-out), transform 200ms var(--ease-out);
  flex: 0 0 auto;
}
.article .play-btn svg {
  width: 12px;
  height: 12px;
  margin-left: 1px; /* visual-center the play triangle */
}
.article .play-btn:hover,
.article .play-btn:focus-visible,
.play-btn:hover,
.play-btn:focus-visible {
  background: var(--crayola-600);
  border-color: var(--crayola-600);
  color: #fff;
  transform: scale(1.06);
}
.play-btn:focus-visible {
  outline: 2px solid var(--crayola-600);
  outline-offset: 3px;
}
.article h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text-brand);
  margin-bottom: 16px;
  transition: color 200ms var(--ease-out);
  text-wrap: balance;
}
.article:hover h3 { color: var(--crayola-600); }
.article p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
}
.article .by {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: auto;
}
.article .by .author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-weight: 500;
}
.article .by .author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background-size: cover;
  background-position: center top;
  background-color: var(--alice);
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px var(--azureish) inset;
}

/* Closing strip */
.closing {
  background: var(--prussian);
  color: #fff;
  padding: 180px 48px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.closing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(102,169,255,0.08) 25%, transparent 50%);
  transform: translateX(-100%);
  pointer-events: none;
}
.closing.is-in::before {
  animation: sweep 2.6s var(--ease-in-out) forwards;
}
@keyframes sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.closing h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 18ch;
  margin: 0 auto 20px;
  text-wrap: balance;
}
.closing-sub {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  color: rgba(230, 241, 255, 0.72);
  max-width: 48ch;
  margin: 0 auto 36px;
  text-wrap: pretty;
}
.closing-chat {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(230, 241, 255, 0.14);
  border-radius: 16px;
  padding: 18px 18px 14px;
  text-align: left;
  transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out);
}
.closing-chat:focus-within {
  border-color: rgba(102, 169, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
}
.closing-chat textarea {
  width: 100%;
  min-height: 56px;
  max-height: 200px;
  background: transparent;
  border: 0;
  outline: 0;
  resize: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  padding: 4px 4px 0;
}
.closing-chat textarea::placeholder {
  color: rgba(230, 241, 255, 0.42);
}
.chat-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 10px;
}
.chat-icon,
.chat-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  cursor: pointer;
  transition: background 180ms var(--ease-out), color 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.chat-icon {
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(230, 241, 255, 0.6);
}
.chat-icon:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.chat-icon svg {
  width: 18px;
  height: 18px;
}
.chat-send {
  width: 40px;
  height: 40px;
  background: var(--crayola);
  border: 0;
  color: #fff;
}
.chat-send:hover {
  background: var(--crayola-600, #0059d6);
  transform: translateY(-1px);
}
.chat-send svg {
  width: 18px;
  height: 18px;
  margin-left: -1px; /* visual-center the paper plane */
  margin-top: -1px;
}
/* Challenge Us — inline chat widget (replaces placeholder closing-chat) */
.challenge-chat {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}
.challenge-chat-intro {
  text-align: center;
  margin-bottom: 20px;
}
.challenge-chat-kicker {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(230, 241, 255, 0.55);
  margin: 0 0 10px;
}
.challenge-chat-lead {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: rgba(230, 241, 255, 0.78);
  max-width: 48ch;
  margin: 0 auto;
}
.challenge-chat-transcript {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  max-height: 0;
  overflow-y: auto;
  transition: max-height 300ms var(--ease-out);
}
.challenge-chat.is-active .challenge-chat-transcript {
  max-height: 420px;
  padding: 6px 2px;
}
.chat-bubble {
  display: flex;
  margin: 0 0 10px;
  animation: chat-bubble-in 280ms var(--ease-out);
}
.chat-bubble p {
  margin: 0;
  padding: 12px 16px;
  border-radius: 16px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  max-width: 82%;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
.chat-bubble-user {
  justify-content: flex-end;
}
.chat-bubble-user p {
  background: var(--crayola);
  color: #fff;
  border-bottom-right-radius: 4px;
  min-width: 96px;
  text-align: left;
}
.chat-bubble-assistant {
  justify-content: flex-start;
}
.chat-bubble-assistant p {
  background: rgba(230, 241, 255, 0.08);
  color: rgba(230, 241, 255, 0.94);
  border: 1px solid rgba(230, 241, 255, 0.12);
  border-bottom-left-radius: 4px;
}
.chat-bubble-thinking {
  justify-content: flex-start;
  padding: 4px 8px 4px 16px;
}
.chat-bubble-thinking .dots {
  display: inline-flex;
  gap: 4px;
  padding: 10px 12px;
  background: rgba(230, 241, 255, 0.06);
  border-radius: 14px;
}
.chat-bubble-thinking .dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(230, 241, 255, 0.55);
  animation: dot-bounce 1.2s infinite ease-in-out;
}
.chat-bubble-thinking .dots span:nth-child(2) { animation-delay: 0.15s; }
.chat-bubble-thinking .dots span:nth-child(3) { animation-delay: 0.3s; }
.chat-bubble-thinking .sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
@keyframes chat-bubble-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes dot-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.6; }
  30%           { transform: translateY(-3px); opacity: 1; }
}
.challenge-chat-hint {
  font-size: 12px;
  color: rgba(230, 241, 255, 0.45);
  flex: 1;
  margin-right: 12px;
}
.challenge-chat-hint-footer {
  font-size: 12px;
  color: rgba(230, 241, 255, 0.45);
  text-align: center;
  margin: 14px 0 0;
}
.about-hero-figure {
  margin: 48px 0 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  line-height: 0;
}
.about-hero-figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
/* Assistant avatar (Endre) */
.chat-bubble-assistant {
  gap: 10px;
  align-items: flex-start;
}
.chat-bubble-assistant .chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid rgba(230, 241, 255, 0.2);
  background: rgba(255,255,255,0.05);
}
.chat-bubble-assistant .chat-bubble-body { display: flex; flex-direction: column; min-width: 0; }
.chat-bubble-assistant .chat-bubble-body p { margin: 0; }
.chat-bubble-thinking .chat-avatar { margin-right: 10px; }

/* Chip row */
.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
  padding-left: 44px;
}
.chat-chip {
  background: rgba(230, 241, 255, 0.06);
  color: rgba(230, 241, 255, 0.92);
  border: 1px solid rgba(230, 241, 255, 0.2);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  transition: background 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.chat-chip:hover {
  background: rgba(102, 169, 255, 0.15);
  border-color: rgba(102, 169, 255, 0.55);
  transform: translateY(-1px);
}
.chat-chip:active { transform: translateY(0); }

/* Composer locked state */
.closing-chat.is-locked textarea { opacity: 0.55; cursor: not-allowed; }

/* Booking card */
.booking-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 18px 0 6px;
}
.booking-day {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(230, 241, 255, 0.14);
  border-radius: 14px;
  padding: 14px 14px 12px;
}
.booking-day-label {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(230, 241, 255, 0.55);
}
.booking-slots {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.booking-slot {
  background: rgba(230, 241, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(230, 241, 255, 0.2);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 15px;
  cursor: pointer;
  transition: background 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.booking-slot:hover:not(:disabled) {
  background: var(--crayola);
  border-color: var(--crayola-600);
}
.booking-slot:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Handoff card + summary */
.booking-handoff {
  display: flex;
  gap: 14px;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(230, 241, 255, 0.14);
  border-radius: 16px;
  padding: 18px 18px;
  margin: 18px 0 6px;
}
.booking-handoff-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(230, 241, 255, 0.25);
  flex: 0 0 auto;
}
.booking-handoff-body { flex: 1; min-width: 0; }
.booking-handoff-who {
  margin: 0 0 2px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(230, 241, 255, 0.55);
}
.booking-handoff-line {
  margin: 0 0 10px;
  font-size: 15px;
  color: rgba(230, 241, 255, 0.88);
}
.booking-handoff-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 14px;
}

.chat-bubble-summary .summary-label {
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(230, 241, 255, 0.5);
}
.chat-bubble-summary .summary-text {
  margin: 0;
  font-style: italic;
}

@media (max-width: 640px) {
  .booking-handoff { flex-direction: column; align-items: flex-start; text-align: left; }
  .booking-handoff-avatar { width: 48px; height: 48px; }
}

.challenge-chat-status {
  margin: 12px 0 0;
  font-size: 14px;
}
.challenge-chat-status.is-ok { color: rgba(170, 230, 180, 0.9); }
.challenge-chat-status.is-error { color: rgba(255, 180, 180, 0.9); }
.challenge-chat-fallback {
  margin: 20px 0 0;
  font-size: 13px;
  color: rgba(230, 241, 255, 0.5);
  text-align: center;
}
.challenge-chat-fallback a {
  color: inherit;
  border-bottom: 1px solid rgba(230, 241, 255, 0.25);
}
.visually-hidden {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Adjust the composer when chat mode is active */
.challenge-chat .closing-chat {
  margin-top: 0;
}
.challenge-chat .chat-actions {
  gap: 10px;
}
@media (max-width: 640px) {
  .challenge-chat.is-active .challenge-chat-transcript {
    max-height: 52vh;
  }
  .chat-bubble p {
    font-size: 14px;
    padding: 10px 14px;
  }
}

.closing-foot {
  margin: 28px 0 0;
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(230, 241, 255, 0.55);
}
.closing-foot a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(230, 241, 255, 0.2);
  padding-bottom: 1px;
  transition: color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}
.closing-foot a:hover {
  color: #fff;
  border-color: #fff;
}
.closing-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.closing-ctas .btn-ghost { color: rgba(230,241,255,0.8); }
.closing-ctas .btn-ghost:hover { color: #fff; }

/* Footer */
.footer {
  background: var(--prussian-700);
  color: rgba(230,241,255,0.72);
  padding: 80px 48px 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(5, 1fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(204,226,255,0.1);
}
.footer-offices {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-offices .office {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13.5px;
  color: rgba(230,241,255,0.72);
  letter-spacing: -0.005em;
  line-height: 1.5;
}
.footer-offices .office-city {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: rgba(230,241,255,0.95);
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.footer-top .brand img { height: 32px; width: auto; display: block; margin-bottom: 20px; }
.footer-top .brand p {
  font-size: 13px;
  color: rgba(230,241,255,0.55);
  line-height: 1.5;
  max-width: 28ch;
}
.footer-top h3,
.footer-top h5 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-top ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-top ul a {
  font-size: 13.5px;
  color: rgba(230,241,255,0.82);
  transition: color 180ms var(--ease-out);
  letter-spacing: -0.005em;
}
.footer-top ul a:hover { color: #fff; }
.footer-bot {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(230,241,255,0.55);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bot .mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.footer-lang {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-lang a {
  color: rgba(230,241,255,0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(230,241,255,0.25);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.footer-lang a:hover,
.footer-lang a:focus-visible {
  color: #fff;
  border-bottom-color: rgba(230,241,255,0.7);
}

/* Tweaks panel */
.tweaks {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 80;
  background: rgba(13, 44, 84, 0.96);
  color: #fff;
  border: 1px solid rgba(204,226,255,0.18);
  border-radius: var(--radius-lg);
  padding: 18px;
  width: 280px;
  box-shadow: var(--shadow-4);
  display: none;
  backdrop-filter: blur(16px);
  font-size: 13px;
}
.tweaks.is-open { display: block; }
.tweaks h6 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(230,241,255,0.55);
  margin-bottom: 14px;
}
.tweaks .tweak-row {
  margin-bottom: 14px;
}
.tweaks label {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(230,241,255,0.72);
  display: block;
  margin-bottom: 6px;
}
.tweaks .segments {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 2px;
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius-md);
  padding: 2px;
}
.tweaks .segments button {
  background: transparent;
  color: rgba(230,241,255,0.6);
  border: none;
  border-radius: 6px;
  padding: 7px 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 180ms var(--ease-out), color 180ms var(--ease-out);
}
.tweaks .segments button.active {
  background: var(--crayola);
  color: #fff;
}
.tweaks input[type="range"] {
  width: 100%;
  accent-color: var(--crayola-300);
}
.tweaks .val {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--crayola-300);
  float: right;
}

/* Responsive */
@media (max-width: 1100px) {
  .sub-section { grid-template-columns: 1fr; gap: 48px; padding: 80px 0; }
  .sub-section.reversed .copy { order: 0; }
  .sub-section.reversed .visual { order: 0; }
  .arch-rails { display: none; }
  .bridge-mock { grid-template-columns: 1fr; }
  .bridge-side { display: none; }
  .bridge-metrics { grid-template-columns: repeat(2, 1fr); }
  .bridge-body { grid-template-columns: 1fr; }
  .promises-grid { grid-template-columns: 1fr; gap: 32px; }
  .cases-grid, .limelight-grid { grid-template-columns: 1fr; }
  .grow-split { grid-template-columns: 1fr; }
  .grow-intro { grid-template-columns: 1fr; }
  .bridge-header { grid-template-columns: 1fr; gap: 24px; }
  .shield-top { grid-template-columns: 1fr; }
  .shield-flow { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
  .shield-link { height: 16px; background: linear-gradient(180deg, rgba(102,169,255,0.4), rgba(102,169,255,0.1)); margin: 0 auto; width: 1px; }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
  }
  .footer-top > .brand {
    grid-column: 1 / -1;
    text-align: left;
    display: block;
  }
  .footer-top > .brand img { margin: 0 0 14px; }
  .footer-top > .brand p { max-width: 320px; margin: 0; }
  /* Row order on mobile: brand / Modell Leveranser / Selskap Kontakt / Kontorer */
  .footer-top > .brand        { order: 1; }
  .footer-top > div:nth-of-type(3) { order: 2; } /* Modell */
  .footer-top > div:nth-of-type(4) { order: 3; } /* Leveranser */
  .footer-top > div:nth-of-type(2) { order: 4; } /* Selskap */
  .footer-top > div:nth-of-type(5) { order: 5; } /* Kontakt */
  .footer-top > .footer-offices { order: 6; grid-column: 1 / -1; }
  .footer-offices {
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
  }
  .footer-offices > h3 { flex: 1 1 100%; margin: 0 0 4px; }
  .footer-offices .office { flex: 1 1 0; min-width: 0; }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  section.band, .trusted, .delivery, .shield-band, .grow, .promises, .cases, .limelight, .closing, .what-we-do { padding-left: 24px; padding-right: 24px; }
  .what-we-do { padding-top: 96px; padding-bottom: 96px; }
  .what-we-do-grid { grid-template-columns: 1fr; gap: 20px; }
  .what-card { padding: 28px; }
  .topnav { padding: 16px 24px; }
  .topnav.is-light { padding: 12px 24px; }
  .hero-inner { padding: 100px 24px 80px; }
}
@media (max-width: 640px) {
  .topnav .links .nav-link { display: none; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .hero-foot { flex-direction: column; align-items: flex-start; }
}

/* ---------- Mobile nav: hamburger + chat-icon CTA + slide-down panel ---------- */
.topnav .mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: inherit;
  order: 1;
}
.topnav .mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 220ms var(--ease-out), opacity 180ms var(--ease-out);
}
.topnav.is-dark .mobile-toggle { color: var(--text-white); }
.topnav.is-light .mobile-toggle { color: var(--text-primary); }
.topnav.is-mobile-open .mobile-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.topnav.is-mobile-open .mobile-toggle span:nth-child(2) { opacity: 0; }
.topnav.is-mobile-open .mobile-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.topnav .cta-icon {
  display: none;
  width: 20px;
  height: 20px;
}
.topnav .cta { order: 2; }
.topnav .mobile-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: flex;
  flex-direction: column;
  padding: 4px 24px 12px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height 280ms var(--ease-out), opacity 220ms var(--ease-out), padding 280ms var(--ease-out);
  z-index: 5;
}
.topnav.is-dark .mobile-panel {
  background: #05111F;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topnav.is-light .mobile-panel {
  background: var(--white);
  border-bottom: 1px solid rgba(13,44,84,0.08);
}
body.has-bg-lightblue .topnav.is-light .mobile-panel {
  background: var(--alice);
}
.topnav .mobile-panel a {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 14px 4px;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.topnav.is-dark .mobile-panel a {
  color: var(--text-white);
  border-top-color: rgba(255,255,255,0.08);
}
.topnav.is-light .mobile-panel a {
  color: var(--text-secondary);
  border-top-color: rgba(13,44,84,0.08);
}
.topnav .mobile-panel a:first-child { border-top: 0; }
.topnav.is-mobile-open .mobile-panel {
  max-height: 70vh;
  opacity: 1;
  pointer-events: auto;
  padding: 8px 24px 16px;
}

@media (max-width: 640px) {
  .topnav .links { gap: 4px; }
  .topnav .mobile-toggle { display: flex; }
  .topnav .cta {
    margin-left: 6px;
    padding: 10px;
    width: 40px;
    height: 40px;
    justify-content: center;
  }
  .topnav .cta .cta-text { display: none; }
  .topnav .cta .cta-icon { display: block; }
}

/* Mobile: fyll iOS safe-area (statusfelt/home-indicator) med mørkeblå (samme som hero bg)
 * — gjelder kun sider som faktisk har den mørke heroen (forside). Subsider har lys bakgrunn. */
@media (max-width: 860px) {
  html, body { overflow-x: clip; max-width: 100vw; }
  body:has(.hero) { background: #05111F !important; }
  body:has(.hero) html { background: #05111F !important; }
  /* Hero strekkes til eksakt viewport-høyde (svh = stabil selv når Safari toolbar skjules) */
  .hero, .hero-inner { min-height: calc(100lvh + 120px); }
}

/* Mobile: skaler ned logoer så de passer mindre skjermer */
@media (max-width: 860px) {
  .topnav .logo img { height: 44px; }
  .topnav .logo .logo-icon { height: 50px; }
  .logo-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px 10px;
    width: 100%;
  }
  .logo-wall .cell {
    padding: 10px 12px;
    aspect-ratio: 1.6 / 1;
    min-width: 0;
    overflow: hidden;
  }
  .logo-wall .cell .logo-img { width: 57.5%; height: 57.5%; max-height: 57.5%; max-width: 57.5%; }
  .logo-wall .cell .brand-mark { font-size: 14px; }
  .logo-wall .cell.mono .brand-mark { font-size: 11px; }
  .logo-wall .cell.caps .brand-mark { font-size: 10px; }
}
@media (max-width: 640px) {
  .topnav .logo img { height: 39px; }
  .topnav .logo .logo-icon { height: 48px; }
  .logo-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px 8px;
    width: 100%;
  }
  .logo-wall .cell {
    padding: 8px 8px;
    aspect-ratio: 1.5 / 1;
    min-width: 0;
    overflow: hidden;
  }
  .logo-wall .cell .logo-img { width: 57.5%; height: 57.5%; max-height: 57.5%; max-width: 57.5%; }
  .logo-wall .cell .brand-mark { font-size: 12px; }
  .logo-wall .cell.mono .brand-mark { font-size: 10px; }
  .logo-wall .cell.caps .brand-mark { font-size: 9px; }
  .trusted { padding: 72px 12px 96px; }
}

/* SVG-logoer har tight viewBox — BBC (PNG) trenger liten nedskalering for å matche SVG-høyde */
.logo-wall .cell img[alt="BBC"] { transform: scale(0.75); transform-origin: center; }

/* Seven Peaks full-logo har intern whitespace i PNG — dra venstre så den flukter med innhold */
.topnav .logo img { margin-left: -8px; }
.footer .brand img { margin-left: -8px; }

/* Mobile: trusted-bot (2009 — 2026) må ligge luftig under logoene */
@media (max-width: 860px) {
  .trusted-bot {
    display: block;
    position: relative;
    z-index: 2;
    margin: 56px auto 0;
    padding-top: 8px;
    clear: both;
  }
}

/* Mobile: Build-seksjonen (Humans lead / Agents execute / Skills compound) + arch-layout */
@media (max-width: 860px) {
  /* H3 i copy-blokker: bruk full størrelse, la wrappe istedenfor å skaleres ned */
  .sub-section .copy h3 {
    font-size: clamp(30px, 8vw, 40px) !important;
    line-height: 1.12;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
  }
  .sub-section .copy p { font-size: 15px; }

  /* Powered by-pills må wrappe, ikke presse bredde ut av viewport */
  .powered-by {
    flex-wrap: wrap !important;
    white-space: normal !important;
    width: auto !important;
    max-width: 100% !important;
    gap: 6px 8px;
  }

  /* HUMANS-kortet: avatarer må wrappe, ikke flyte utenfor */
  .arch-layer-humans .nodes {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 12px;
  }
  .arch-layer-humans .node { flex: 0 0 auto; min-width: 0; }
  .arch-layer-humans .avatar { width: 52px; height: 52px; }

  /* AGENT TEAM: 7 ikoner → 3 per rad på mobil (eller 4 på litt bredere) */
  .arch-layer-agents .agent-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .arch-layer-agents .agent {
    font-size: 10px;
    padding: 8px 4px;
    min-width: 0;
  }
  .arch-layer-agents .agent .agent-icon { width: 16px; height: 16px; }

  /* SKILLS: 2 kolonner → 1 kolonne stablet på mobil */
  .arch-layer-skills .skills-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .arch-layer-skills .skill-group { min-width: 0; }

  /* Arch-wrap generelt skal ikke overflyte viewport */
  .arch-wrap, .arch-stage, .arch-layers { max-width: 100%; min-width: 0; overflow: hidden; }
  .arch-layer { min-width: 0; }
}

@media (max-width: 640px) {
  /* Enda litt mindre på små skjermer */
  .sub-section .copy h3 { font-size: clamp(28px, 9vw, 36px) !important; }
  .arch-layer-humans .avatar { width: 48px; height: 48px; }
  .arch-layer-agents .agent { font-size: 9.5px; padding: 6px 3px; }
}

/* Mobile: hero-layout-fiks
   1) Flytt "Human-led AI partner" ned som mini-heading over hero-sub (via grid-order)
   2) Skjul CTA-knappene (Talk to us finnes i topbar)
   3) Høyere hero-bakgrunn så ingen hvit kant nederst ved load */
@media (max-width: 860px) {
  .hero {
    min-height: calc(100lvh + 120px);
    padding-bottom: env(safe-area-inset-bottom);
  }
  /* Eksplisitt grid-plassering: headline topp, 1fr spacer, eyebrow rett over sub (8px gap), foot nederst */
  .hero-inner {
    grid-template-rows: auto 1fr auto auto !important;
    padding-bottom: 228px !important; /* 120px overshoot-buffer + 108px Faz (50+50+8) for å løfte teksten på mobil */
  }
  .hero-headline { grid-row: 1; margin-top: 40px; }
  .hero-eyebrow  { grid-row: 3; margin: 0 0 8px; }
  .hero-foot     { grid-row: 4; padding-top: 0 !important; }

  .hero-ctas { display: none !important; }
}

/* Desktop: logo +50% og eyebrow flyttet ned til rett over hero-sub (samme layout-mønster som mobil) */
@media (min-width: 861px) {
  .topnav .logo img { height: 42px; }
  .topnav .logo .logo-icon { height: 48px; }

  .hero-inner {
    grid-template-rows: auto 1fr auto auto;
  }
  .hero-headline { grid-row: 1; align-self: start; margin-top: 125px; }
  .hero-eyebrow  { grid-row: 3; margin: 0 0 16px; }
  .hero-foot     { grid-row: 4; padding-top: 0; }

  /* 7-Eleven og Reitan Retail +50% kun på desktop (0.5 -> 0.75, 0.75 -> 1.125) */
  .logo-wall .cell img[alt="7-Eleven"] { transform: scale(0.75); }
  .logo-wall .cell img[alt="Reitan Retail"] { transform: scale(1.125); }
}


/* ---------- Subpages (listing / article / case / pillar / about) ---------- */

/* Shared spine for all subpages: consistent nav offset, container, heading scale, transitions */
.subpage {
  max-width: var(--container);
  margin: 0 auto;
  padding: 152px 48px 96px;
}
.subpage.narrow { max-width: 900px; }
.subpage.mid { max-width: 900px; }
.subpage.wide { max-width: 1180px; }
.subpage.about-page,
.subpage.svc-page,
.subpage.pillar-page { max-width: 1180px; }

.subpage .breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 24px;
}
.subpage .breadcrumb a {
  color: inherit;
  border-bottom: 1px solid rgba(95, 115, 136, 0.35);
  padding-bottom: 1px;
  transition: color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}
.subpage .breadcrumb a:hover { color: var(--text-brand); border-bottom-color: var(--crayola-600); }

.subpage .kicker,
.subpage .eyebrow-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--crayola-600);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.subpage .kicker::before,
.subpage .eyebrow-mono::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--crayola);
  box-shadow: 0 0 10px rgba(0, 111, 255, 0.45);
}

.subpage h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-brand);
  margin: 0 0 28px;
  text-wrap: balance;
}
.subpage h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.018em;
  color: var(--text-brand);
  margin: 56px 0 20px;
  text-wrap: balance;
}
.subpage h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--text-brand);
  margin: 40px 0 14px;
}
.subpage .lede {
  font-family: var(--font-body);
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0 0 56px;
  max-width: none;
  text-wrap: pretty;
}
.subpage p {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-primary);
  margin: 0 0 18px;
  max-width: none;
  text-wrap: pretty;
}
.subpage ul, .subpage ol {
  padding-left: 22px;
  margin: 0 0 22px;
  max-width: none;
}
.subpage li {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.subpage li::marker { color: var(--crayola-600); }
.subpage strong { color: var(--text-brand); font-weight: 600; }
.subpage em { color: inherit; }
.subpage a { color: var(--text-brand-secondary); border-bottom: 1px solid rgba(0, 89, 204, 0.25); padding-bottom: 1px; transition: color 180ms var(--ease-out), border-color 180ms var(--ease-out); }
.subpage a:hover { color: var(--crayola-600); border-bottom-color: var(--crayola-600); }
.subpage .pull {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.35;
  color: var(--text-brand);
  border-left: 3px solid var(--crayola);
  padding: 6px 0 6px 28px;
  margin: 40px 0;
  max-width: 58ch;
  text-wrap: balance;
}

.subpage .byline {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  margin: 0 0 48px;
  border-top: 1px solid var(--azureish);
  border-bottom: 1px solid var(--azureish);
  font-size: 13px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}
.subpage .byline .author { display: inline-flex; align-items: center; gap: 10px; color: var(--text-brand); font-weight: 600; text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-size: 14px; }
.subpage .byline .author-avatar { width: 28px; height: 28px; border-radius: 999px; background-size: cover; background-position: center top; background-color: var(--alice); flex: 0 0 auto; box-shadow: inset 0 0 0 1px var(--azureish); }

.subpage section { margin-bottom: 8px; }
.subpage section .eyebrow-mono { margin-top: 8px; }

/* Eyebrow/kicker sits visually with the heading it belongs to:
   12px gap to the heading below, generous breathing room above. */
.subpage section > .eyebrow,
.subpage section > .eyebrow-mono {
  margin-top: 56px;
  margin-bottom: 6px;
}
.subpage .eyebrow + h1,
.subpage .eyebrow + h2,
.subpage .eyebrow + h3,
.subpage .eyebrow-mono + h1,
.subpage .eyebrow-mono + h2,
.subpage .eyebrow-mono + h3,
.subpage .kicker + h1,
.subpage .kicker + h2,
.subpage .kicker + h3 {
  margin-top: 6px;
}

.subpage .published,
.subpage .pub {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin: 0 0 32px;
}

.subpage .hero-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 8px 0 48px;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--alice);
}
.subpage .case-figure {
  margin: 24px 0 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  line-height: 0;
  background: var(--alice);
}
.subpage .case-figure img {
  width: 100%;
  height: auto;
  display: block;
}
.subpage .case-figure-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0 40px;
}
.subpage .case-figure-pair figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  line-height: 0;
  background: var(--alice);
}
.subpage .case-figure-pair img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 720px) {
  .subpage .case-figure-pair { grid-template-columns: 1fr; }
}

/* Case detail: images extend wider than the text column, centered in viewport via negative margin (no transform — avoids layout/stacking issues) */
.case-detail .hero-img,
.case-detail .case-figure,
.case-detail .case-figure-pair {
  width: min(1180px, calc(100vw - 96px));
  max-width: none;
  margin-left: calc((100% - min(1180px, calc(100vw - 96px))) / 2);
  margin-right: calc((100% - min(1180px, calc(100vw - 96px))) / 2);
}
/* Case detail: +30px breathing room above and below text-parts between images */
.case-detail .hero-img { margin-top: 8px; margin-bottom: 78px; }
.case-detail .case-figure,
.case-detail .case-figure-pair { margin-top: 54px; margin-bottom: 70px; }
/* About page: intro hero 2pt smaller (h1 + lede) per Faz — match old site visual weight */
.about-page h1 { font-size: clamp(36px, 4.5vw, 64px); }
/* Match /perspektiver lede sizing on /om-oss, /tjenester and pillar pages per Faz */
.about-page > .lede,
.svc-page > .lede,
.pillar-page > .lede { font-size: 18px; line-height: 1.7; }

/* Homepage cases: "Se flere leveranser →" CTA below 4-card grid */
.cases-cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}
.cases-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
}
.cases-cta .btn span {
  transition: transform 220ms var(--ease-out);
  display: inline-block;
}
.cases-cta .btn:hover span { transform: translateX(3px); }

/* Case detail: lede matches body text size (per Faz — sub-heading same as body) */
.case-detail > .lede {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 28px;
}
/* Case detail: top text (breadcrumb → lede → published) left-aligns with image edge on desktop */
@media (min-width: 721px) {
  .case-detail > .breadcrumb,
  .case-detail > .eyebrow-mono,
  .case-detail > h1,
  .case-detail > .lede,
  .case-detail > .published {
    width: min(1180px, calc(100vw - 96px));
    max-width: none;
    margin-left: calc((100% - min(1180px, calc(100vw - 96px))) / 2);
    margin-right: calc((100% - min(1180px, calc(100vw - 96px))) / 2);
  }
}
@media (max-width: 720px) {
  .case-detail .hero-img,
  .case-detail .case-figure,
  .case-detail .case-figure-pair {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

.subpage .summary {
  margin-top: 40px;
  padding: 28px 32px;
  background: var(--alice);
  border: 1px solid var(--azureish);
  border-radius: var(--radius-lg);
}
.subpage .summary .summary-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crayola-600);
  margin-bottom: 12px;
}
.subpage .summary p:last-child { margin-bottom: 0; }

.subpage .section-cta,
.subpage .cta-block {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--azureish);
}

/* Pillars grid (services index) */
.subpage .pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 40px 0 16px;
}
.subpage .pillar {
  position: relative;
  padding: 32px 28px 28px;
  background: #05111F;
  border: 1px solid rgba(178, 205, 235, 0.14);
  border-radius: var(--radius-lg);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  transition: transform 240ms var(--ease-out), border-color 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}
.subpage .pillar::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 30% 0%, rgba(0, 111, 255, 0.28) 0%, rgba(0, 111, 255, 0) 60%),
    radial-gradient(ellipse 90% 60% at 90% 100%, rgba(13, 44, 84, 0.55) 0%, rgba(5, 17, 31, 0) 70%),
    linear-gradient(180deg, rgba(5, 17, 31, 0) 0%, rgba(5, 17, 31, 0.55) 100%);
  z-index: 0;
  pointer-events: none;
}
.subpage .pillar::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 28%, rgba(178, 205, 235, 0.55) 0.8px, transparent 1.4px),
    radial-gradient(circle at 72% 18%, rgba(178, 205, 235, 0.4) 0.7px, transparent 1.3px),
    radial-gradient(circle at 40% 62%, rgba(178, 205, 235, 0.5) 0.7px, transparent 1.3px),
    radial-gradient(circle at 86% 74%, rgba(178, 205, 235, 0.35) 0.6px, transparent 1.2px),
    radial-gradient(circle at 12% 88%, rgba(178, 205, 235, 0.45) 0.7px, transparent 1.3px),
    radial-gradient(circle at 58% 40%, rgba(178, 205, 235, 0.3) 0.6px, transparent 1.2px);
  background-size: 100% 100%;
  opacity: 0.85;
  z-index: 0;
  pointer-events: none;
}
.subpage .pillar > * { position: relative; z-index: 1; }
.subpage .pillar:hover { transform: translateY(-4px); border-color: rgba(0, 111, 255, 0.45); box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45); }
.subpage .pillar .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--crayola);
  margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px;
}
.subpage .pillar .label::before {
  content: ''; width: 5px; height: 5px; border-radius: 999px; background: var(--crayola); box-shadow: 0 0 10px var(--crayola);
}
.subpage .pillar h2,
.subpage .pillar h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 14px;
  color: #fff;
}
.subpage .pillar p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(230, 241, 255, 0.78);
  margin: 0 0 18px;
  flex: 1;
}
.subpage .pillar p em { color: rgba(230, 241, 255, 0.92); font-style: italic; }
.subpage .pillar a.read {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  align-self: flex-start;
  padding-bottom: 2px;
}
.subpage .pillar a.read:hover { color: var(--crayola); border-bottom-color: var(--crayola); }

/* Related (next / prev pillar) */
.subpage .related {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--azureish);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.subpage .related a {
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--azureish);
  border-radius: var(--radius-lg);
  color: var(--text-brand);
  border-bottom: 1px solid var(--azureish);
  transition: transform 240ms var(--ease-out), border-color 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}
.subpage .related a:hover { transform: translateY(-3px); border-color: rgba(0, 111, 255, 0.28); box-shadow: var(--shadow-2); color: var(--text-brand); }
.subpage .related .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--crayola-600);
  margin-bottom: 8px;
}
.subpage .related .name { font-weight: 600; font-size: 16px; font-family: var(--font-body); }

/* Old-services reference block (services index) */
.subpage .old-services {
  margin-top: 56px;
  padding: 24px 28px;
  border: 1px dashed var(--azureish);
  border-radius: var(--radius-lg);
  background: var(--alice);
  font-size: 15px;
  color: var(--text-secondary);
}
.subpage .old-services ul { padding-left: 22px; margin: 10px 0 0; }
.subpage .old-services li { font-size: 15px; margin-bottom: 6px; line-height: 1.55; }

/* Listing (cases, perspectives) */
.listing-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 152px 48px 96px;
}
.listing-page .breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 24px;
}
.listing-page .breadcrumb a { color: inherit; border-bottom: 1px solid rgba(95,115,136,0.35); padding-bottom: 1px; }
.listing-page .breadcrumb a:hover { color: var(--text-brand); border-bottom-color: var(--crayola-600); }

.listing-page .kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--crayola-600);
  margin-bottom: 16px;
  display: inline-flex; align-items: center; gap: 10px;
}
.listing-page .kicker::before {
  content: ''; width: 6px; height: 6px; border-radius: 999px; background: var(--crayola);
  box-shadow: 0 0 10px rgba(0, 111, 255, 0.45);
}
.listing-page h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 4.5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-brand);
  margin: 0 0 24px;
  text-wrap: balance;
}
.listing-page .lede {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 64px;
  max-width: none;
  text-wrap: pretty;
}
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.listing-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--azureish);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 280ms var(--ease-out), border-color 280ms var(--ease-out), box-shadow 280ms var(--ease-out);
  border-bottom: 1px solid var(--azureish);
}
.listing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 111, 255, 0.28);
  box-shadow: var(--shadow-3);
  color: inherit;
}
.listing-thumb {
  aspect-ratio: 16 / 10;
  background: var(--alice);
  overflow: hidden;
  position: relative;
}
.listing-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,44,84,0) 55%, rgba(13,44,84,0.04) 100%);
  pointer-events: none;
}
.listing-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 600ms var(--ease-out);
}
.listing-card:hover .listing-thumb img { transform: scale(1.04); }
.listing-body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.listing-client, .listing-kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crayola-600);
  display: inline-flex; align-items: center; gap: 8px;
}
.listing-client::before, .listing-kicker::before {
  content: ''; width: 5px; height: 5px; border-radius: 999px; background: var(--crayola);
}
.listing-body h2,
.listing-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.012em;
  margin: 0;
  color: var(--text-brand);
}
.listing-body p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
  flex: 1;
}
.listing-meta {
  display: flex; gap: 14px;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-top: 6px;
}
.listing-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.listing-meta > span:last-child {
  text-align: right;
}
.listing-meta .author-avatar {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background-size: cover;
  background-position: center top;
  background-color: var(--alice);
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px var(--azureish) inset;
}
.listing-read {
  font-family: var(--font-body);
  font-size: 13.5px; font-weight: 600;
  color: var(--text-brand);
  margin-top: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 220ms var(--ease-out), color 220ms var(--ease-out);
}
.listing-card:hover .listing-read { color: var(--crayola-600); gap: 10px; }

/* Light blue background for listing pages (matches legacy /prosjekter) */
body.has-bg-lightblue { background: var(--alice); }
body.has-bg-lightblue .topnav.is-light {
  background: var(--alice);
  border-bottom: 1px solid rgba(13, 44, 84, 0.06);
}
/* Footer stays dark on light-bg pages — light-alice override was hiding footer text (light-on-light) */

/* Bento grid — alternating 7/5 · 5/7 pattern, matches legacy /prosjekter */
.listing-grid.bento {
  grid-template-columns: repeat(12, 1fr);
  gap: 60px 52px;
}
/* Mirrored pattern per row: long-short, short-long, repeating */
.listing-grid.bento > * { grid-column: span 6; }
.listing-grid.bento > :nth-child(4n+1) { grid-column: span 7; }
.listing-grid.bento > :nth-child(4n+2) { grid-column: span 5; }
.listing-grid.bento > :nth-child(4n+3) { grid-column: span 5; }
.listing-grid.bento > :nth-child(4n+4) { grid-column: span 7; }

/* Flat card look for bento grid */
.listing-grid.bento .listing-card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(13, 44, 84, 0.04);
}
.listing-grid.bento .listing-card:hover {
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(13, 44, 84, 0.08);
}
.listing-grid.bento .listing-thumb {
  aspect-ratio: auto;
  flex: 1 1 auto;
  min-height: 280px;
  border-radius: 8px 8px 0 0;
}
.listing-grid.bento .listing-card { height: 100%; }
.listing-grid.bento .listing-body {
  padding: 24px 28px 28px;
  gap: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 0 0 auto;
}
.listing-grid.bento .listing-body p { display: none; }
.listing-grid.bento .listing-body h2,
.listing-grid.bento .listing-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.012em;
  margin: 0;
  color: var(--text-brand);
}
.listing-grid.bento .listing-client {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
  color: var(--crayola-600);
  margin: 0;
}
.listing-grid.bento .listing-client::before { display: none; }
.listing-grid.bento .listing-industry {
  font-weight: 400;
  color: var(--text-tertiary);
}
.listing-grid.bento .listing-industry::before {
  content: ' · ';
  color: var(--text-tertiary);
}
.listing-grid.bento .listing-read {
  margin: 6px 0 0;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--crayola-600);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
}
.listing-grid.bento .listing-card.is-disabled .listing-read {
  display: none;
}

@media (max-width: 900px) {
  .listing-grid.bento { gap: 20px; }
  .listing-grid.bento > *,
  .listing-grid.bento > :nth-child(4n+1),
  .listing-grid.bento > :nth-child(4n+2),
  .listing-grid.bento > :nth-child(4n+3),
  .listing-grid.bento > :nth-child(4n+4) { grid-column: 1 / -1; }
  .listing-grid.bento .listing-thumb { aspect-ratio: 16 / 10; }
}

/* About-specific bits */
.about-page .dna {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0 28px;
  margin-top: 32px;
}
.about-page .dna-item {
  padding: 22px 0;
  border-top: 1px solid var(--azureish);
}
.about-page .dna-item h3 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-brand);
  margin: 0 0 6px;
}
.about-page .dna-item p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}
.about-page .team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px 32px;
  margin-top: 32px;
}
@media (max-width: 640px) {
  .about-page .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
  }
  .about-page .member .avatar {
    width: 96px; height: 96px;
    margin-bottom: 12px;
  }
}
.about-page .member .avatar {
  width: 112px; height: 112px;
  border-radius: 50%;
  background-color: var(--alice);
  background-size: cover;
  background-position: center;
  margin-bottom: 16px;
  border: 1px solid var(--azureish);
}
.about-page .member .avatar.placeholder {
  background: linear-gradient(135deg, var(--prussian) 0%, var(--prussian-600) 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 40px;
}
.about-page .member h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-brand);
  margin: 0 0 4px;
}
.about-page .member .role {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.4;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.about-page .team-group-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 48px 0 8px;
}

/* CTA button inside subpages (overrides a: styles) */
.subpage .cta-btn,
.listing-page .cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--crayola-600);
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  border-bottom: none;
  transition: background 180ms var(--ease-out), transform 180ms var(--ease-out);
  font-family: var(--font-body);
}
.subpage .cta-btn:hover,
.listing-page .cta-btn:hover { background: #004499; color: #fff; border-bottom: none; }
.subpage .cta-btn::after,
.listing-page .cta-btn::after { content: '→'; transition: transform 180ms var(--ease-out); }
.subpage .cta-btn:hover::after,
.listing-page .cta-btn:hover::after { transform: translateX(3px); }

@media (max-width: 860px) {
  .subpage, .listing-page { padding: 124px 24px 64px; }
  .subpage h1 { font-size: clamp(36px, 8vw, 48px); }
  .subpage h2 { font-size: clamp(24px, 5.5vw, 30px); margin: 44px 0 16px; }
  .subpage p, .subpage li { font-size: 18px; }
  .subpage .lede { font-size: 18px; }
  .listing-page h1 { font-size: clamp(36px, 8.5vw, 56px); }
  .subpage .pull { padding: 4px 0 4px 20px; font-size: 20px; }
  .subpage .summary { padding: 24px 22px; }
}

/* Disabled card = case without a full narrative yet. Keep the visual
 * identical to an active card; just soften the call-to-action label. */
.listing-card.is-disabled,
.case-card.is-disabled {
  cursor: default;
}
.listing-card.is-disabled:hover,
.case-card.is-disabled:hover {
  transform: none;
  box-shadow: none;
}
.listing-card.is-disabled:hover .listing-thumb img,
.case-card.is-disabled:hover .case-thumb img { transform: none; }
.listing-card.is-disabled .listing-read,
.case-card.is-disabled .read {
  color: var(--text-tertiary);
  font-style: italic;
  font-weight: 500;
}

/* /slik-jobber-vi + /en/how-we-start — FAQ accordion + CTA section */
.subpage details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.subpage details:last-of-type { border-bottom: 1px solid var(--line); }
.subpage summary {
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  list-style: none;
  padding-right: 32px;
  position: relative;
}
.subpage summary::-webkit-details-marker { display: none; }
.subpage summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--crayola-600);
  transition: transform 0.2s ease;
}
.subpage details[open] summary::after { content: "−"; }
.subpage details p {
  margin: 12px 0 0;
  color: var(--text-secondary);
}
.subpage-cta {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.subpage-cta h2 { margin: 0 0 8px; }
.subpage-cta p { margin: 0 0 24px; }
.pillar-page .lag-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}
.pillar-page .lag {
  background: var(--alice);
  border: 1px solid var(--azureish);
  border-radius: var(--radius-lg);
  padding: 32px 32px 28px;
}
.pillar-page .lag > .eyebrow { margin-bottom: 8px; }
.pillar-page .signal-example {
  background: #fff;
  color: #0a1e3d;
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin: 16px 0 14px;
}
.pillar-page .signal-example .eyebrow {
  margin: 0 0 10px;
}
.pillar-page .signal-example ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.55;
  color: #0a1e3d;
}
.pillar-page .signal-example li { margin-bottom: 6px; }
.pillar-page .signal-example li:last-child { margin-bottom: 0; }
@media (max-width: 720px) {
  .pillar-page .lag-grid { grid-template-columns: 1fr; gap: 40px; margin-top: 36px; }
}
.subpage-cta .btn { margin-top: 8px; }

/* ─── Bridge mock — rebuild with real data (Acme) ───────────────────────────── */
.bridge-mock { pointer-events: none; user-select: none; }
.bridge-head .crumb-sep { color: var(--text-tertiary); margin: 0 6px; font-weight: 400; }
.bridge-card-head .head-link {
  float: right;
  font-weight: 500;
  font-size: 11px;
  color: var(--crayola-600);
  text-transform: none;
  letter-spacing: 0;
}

/* 2-col body v2 */
.bridge-body-v2 {
  display: grid;
  grid-template-columns: 1.28fr 1fr;
  gap: 14px;
}
.bridge-col { display: flex; flex-direction: column; gap: 14px; }
.bridge-col > :last-child { margin-top: auto; }

/* Signals split */
.bridge-signals-v2 { padding: 0; }
.bridge-signals-v2 .bridge-card-head { padding: 12px 16px 10px; margin: 0; border-bottom: 1px solid var(--azureish); }
.signals-split { display: grid; grid-template-columns: 1fr 1fr; }
.signals-col { padding: 12px 14px; }
.signals-col-right { border-left: 1px solid var(--azureish); }
.signals-sub {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}
.sig-row { display: flex; gap: 10px; margin-bottom: 12px; }
.sig-row:last-child { margin-bottom: 0; }
.sig-thumb {
  width: 40px; height: 40px;
  border-radius: 9px;
  flex-shrink: 0;
  border: 1px solid var(--azureish);
}
.sig-body { flex: 1; min-width: 0; }
.sig-title {
  display: flex; align-items: center; gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.005em;
  margin-bottom: 2px;
}
.sig-title .urgency { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.urgency-high { background: #DC2626; }
.urgency-medium { background: #D97706; }
.urgency-low { background: var(--text-tertiary); }
.sig-text {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sig-actions { display: flex; gap: 4px; margin-top: 5px; flex-wrap: wrap; }
.chip {
  font-size: 10px;
  color: var(--crayola-600);
  background: var(--crayola-50);
  border: 1px solid var(--crayola-300);
  border-radius: 9px;
  padding: 2px 7px;
}
.code-sig {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 11px;
}
.code-sig:last-of-type { margin-bottom: 6px; }
.code-sig .dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0; margin-top: 5px;
}
.dot-green { background: #11D399; box-shadow: 0 0 5px #11D399; }
.dot-blue { background: #006FFF; box-shadow: 0 0 5px #006FFF; }
.cs-title { font-size: 12.5px; font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.cs-body { font-size: 11.5px; color: var(--text-secondary); line-height: 1.4; margin-top: 2px; }
.cs-meta { font-family: var(--font-mono); font-size: 10px; color: var(--text-tertiary); margin-top: 3px; }
.cs-more { font-size: 11px; color: var(--crayola-600); margin-top: 4px; }

/* Kanban */
.kanban {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.kan-col { min-width: 0; }
.kan-h {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}
.kan-card {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--azureish);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 11.5px;
  color: var(--text-primary);
  letter-spacing: -0.005em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kan-card .pri { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.pri-high { background: #DC2626; }
.pri-medium { background: #D97706; }
.pri-low { background: var(--text-tertiary); }
.kan-card .tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

/* Backlog fully collapsed */
.bl-collapsed { padding: 10px 16px; }
.bl-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.bl-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Backlog compact (legacy, kept for fallback) */
.bl-compact .bridge-card-head { display: flex; justify-content: space-between; align-items: center; }
.bl-actions { display: inline-flex; gap: 6px; }
.bl-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--alice);
  border: 1px solid var(--azureish);
  color: var(--text-secondary);
}
.bl-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.bl-stat {
  display: flex; flex-direction: column;
  padding: 8px 10px;
  background: var(--alice);
  border: 1px solid var(--azureish);
  border-radius: 8px;
}
.bl-stat .bl-num {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}
.bl-stat .bl-lbl {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-top: 4px;
}
.bl-stat.bl-active {
  background: var(--crayola-50);
  border-color: var(--crayola-300);
}
.bl-stat.bl-active .bl-num { color: var(--crayola-600); }
.bl-peek { border-top: 1px solid var(--azureish); padding-top: 8px; }
.bl-peek-h {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}
.bl-peek-row {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px;
  color: var(--text-primary);
  padding: 4px 0;
}
.bl-peek-row .pri { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.bl-peek-row .tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
  background: var(--alice);
  border: 1px solid var(--azureish);
  border-radius: 4px;
  padding: 1px 5px;
}

/* Signal thumbs with bg image */
.sig-thumb {
  background-size: cover;
  background-position: center;
}

/* Milestone */
.milestone-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.ms-meta { font-size: 11.5px; color: var(--text-tertiary); font-family: var(--font-mono); }
.ms-pct { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.ms-bar {
  height: 5px;
  background: var(--azureish);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 10px;
}
.ms-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--crayola), #8B5CF6);
  border-radius: 6px;
}
.ms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  margin-bottom: 8px;
}
.ms-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}
.ms-item::before {
  content: '';
  width: 12px; height: 12px;
  border-radius: 4px;
  border: 1px solid var(--azureish);
  flex-shrink: 0;
  background: transparent;
}
.ms-item.ms-done {
  color: var(--text-tertiary);
}
.ms-item.ms-done::before {
  background: rgba(17,211,153,0.15) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7' fill='none'><path d='M1 3.5L2.8 5.5L6 1.5' stroke='%2311D399' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/7px no-repeat;
  border-color: #11D399;
}
.ms-foot {
  font-size: 11.5px;
  color: var(--text-tertiary);
  border-top: 1px solid var(--azureish);
  padding-top: 6px;
  font-family: var(--font-mono);
}

/* Cost chart */
.cost-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 72px;
}
.cost-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.cost-bar .cost-num { font-size: 10px; color: var(--text-tertiary); font-family: var(--font-mono); }
.cost-bar.cost-now .cost-num { color: var(--text-secondary); font-weight: 600; }
.cost-stack {
  width: 100%;
  height: 52px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
}
.cb-addon { width: 100%; background: #A78BFA; }
.cb-base { width: 100%; background: #C7D2FE; }
.cb-base-now { background: var(--crayola); }
.cost-bar .cost-lbl { font-size: 10px; color: var(--text-tertiary); font-family: var(--font-mono); }
.cost-foot {
  display: flex; justify-content: space-between;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--azureish);
  font-size: 11.5px;
  color: var(--text-tertiary);
}
.cost-warn { color: #D97706; font-weight: 500; }

/* Crew refined */
.team-sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 6px 0 4px;
}
.team-sub + .bridge-crew .person:first-child { padding-top: 4px; }
.bridge-crew .person {
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(226,228,233,0.5);
  font-size: 12px;
}
.bridge-crew .person:last-child { border-bottom: none; }
.bridge-crew .p-name {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.2;
  overflow: hidden;
}
.bridge-crew .p-name small {
  font-size: 10.5px;
  color: var(--text-tertiary);
  font-weight: 400;
  margin-top: 1px;
  letter-spacing: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bridge-crew .avatar {
  width: 24px; height: 24px;
}
.bridge-crew .avatar.agent-sq {
  border-radius: 6px;
  color: #fff;
  font-size: 10px;
}
.status {
  width: 7px; height: 7px; border-radius: 50%;
  background: #059669;
  flex-shrink: 0;
  box-shadow: 0 0 0 1.5px #fff;
}
.ag-chip {
  font-size: 10px;
  border: 1px solid var(--crayola-300);
  border-radius: 7px;
  padding: 2px 6px;
  flex-shrink: 0;
  font-family: var(--font-mono);
  letter-spacing: 0;
}
.chip-ticket {
  color: var(--crayola-600);
  background: var(--crayola-50);
  font-weight: 600;
}

/* Audit list */
.audit-list { margin-top: -4px; }
.audit-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(226,228,233,0.5);
}
.audit-row:last-child { border-bottom: none; }
.au-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.au-code { background: var(--crayola); }
.au-ok { background: #059669; }
.au-fin { background: #D97706; }
.au-plan { background: var(--text-tertiary); }
.au-txt {
  flex: 1; min-width: 0;
  font-size: 12px;
  color: var(--text-secondary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.au-meta {
  display: flex; flex-direction: column; align-items: flex-end;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}
.au-meta small { font-size: 10px; margin-top: 0; }

/* Bridge mobile phone (hidden on desktop) */
.bridge-phone { display: none; }

@media (max-width: 860px) {
  .bridge-mock { display: none; }
  .bridge-phone {
    display: flex;
    justify-content: center;
    padding: 16px 0 24px;
  }
  .phone-frame {
    position: relative;
    width: 340px;
    background: #1a1a2e;
    border-radius: 42px;
    padding: 10px;
    box-shadow: 0 30px 60px -20px rgba(13,44,84,0.3), 0 0 0 2px rgba(13,44,84,0.08);
    pointer-events: none;
    user-select: none;
  }
  .phone-notch {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 22px;
    background: #000;
    border-radius: 16px;
    z-index: 2;
  }
  .phone-screen {
    background: #F0F4FB;
    border-radius: 32px;
    overflow: hidden;
    padding: 42px 14px 12px;
    max-height: 640px;
    overflow-y: hidden;
    position: relative;
  }
  .ph-top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 4px 2px 10px;
  }
  .ph-brand {
    display: flex; align-items: center; gap: 6px;
    font-family: var(--font-display); font-weight: 600; font-size: 18px;
    color: var(--text-primary); letter-spacing: -0.3px;
  }
  .ph-logo {
    width: 22px; height: 22px;
    object-fit: contain;
    display: block;
  }
  .ph-actions { display: flex; align-items: center; gap: 10px; }
  .ph-bell {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    width: 22px; height: 22px;
  }
  .ph-badge {
    position: absolute; top: -4px; right: -5px;
    min-width: 14px; height: 14px; padding: 0 3px;
    border-radius: 7px;
    background: #DC2626; color: #fff;
    font-size: 9px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
    border: 1.5px solid #F0F4FB;
  }
  .ph-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background-size: cover; background-position: center;
    border: 1.5px solid var(--azureish);
  }
  .ph-pill {
    display: flex; align-items: center; gap: 8px;
    background: #fff;
    border: 1px solid var(--azureish);
    border-radius: 10px;
    padding: 7px 10px;
    margin-bottom: 10px;
    font-size: 13px; font-weight: 500;
    color: var(--text-primary);
  }
  .ph-pill-dot {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; border-radius: 5px;
    background: linear-gradient(135deg, #0D2C54, #1E5FBF);
    flex-shrink: 0;
  }
  .ph-chev { margin-left: auto; color: var(--text-tertiary); font-size: 10px; }
  .ph-title {
    font-family: var(--font-display);
    font-weight: 600; font-size: 22px;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    margin-bottom: 10px;
  }
  .ph-kpis {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 8px; margin-bottom: 10px;
  }
  .ph-kpi {
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 3px 10px rgba(13,44,84,0.1);
    color: #fff;
  }
  .ph-kpi .k {
    font-size: 9px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: rgba(255,255,255,0.85);
    margin-bottom: 3px;
  }
  .ph-kpi .v {
    font-family: var(--font-display); font-weight: 600;
    font-size: 22px; color: #fff;
    letter-spacing: -0.5px; line-height: 1;
  }
  .ph-kpi .d {
    font-size: 10px; color: rgba(255,255,255,0.9);
    margin-top: 3px;
  }
  .ph-card {
    background: #fff;
    border: 1px solid var(--azureish);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
  }
  .ph-card-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 9px 12px;
    border-bottom: 1px solid var(--azureish);
    font-size: 13px; font-weight: 700;
    color: var(--text-secondary);
  }
  .ph-link { font-size: 10px; font-weight: 500; color: var(--crayola-600); }
  .ph-sig {
    display: flex; gap: 8px; padding: 8px 12px;
    border-bottom: 1px solid rgba(226,228,233,0.5);
  }
  .ph-sig:last-child { border-bottom: none; }
  .ph-sig-thumb {
    width: 36px; height: 36px; border-radius: 8px;
    flex-shrink: 0;
    border: 1px solid var(--azureish);
    background-size: cover;
    background-position: center;
  }
  .ph-sig-title {
    display: flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
  }
  .ph-sig-body {
    font-size: 11px; color: var(--text-tertiary);
    line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .ph-bl {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(226,228,233,0.5);
    font-size: 12px;
    color: var(--text-primary);
  }
  .ph-bl:last-child { border-bottom: none; }
  .ph-bl .tag {
    margin-left: auto;
    font-family: var(--font-mono); font-size: 10px;
    color: var(--text-tertiary);
    background: var(--alice);
    border: 1px solid var(--azureish);
    border-radius: 4px;
    padding: 1px 5px;
    flex-shrink: 0;
  }
  .ph-card .milestone-row { padding: 10px 12px 4px; margin: 0; }
  .ph-card .ms-bar { margin: 0 12px 10px; }
  .ms-grid-ph { grid-template-columns: 1fr 1fr; padding: 0 12px 10px; margin: 0; gap: 4px 10px; }
  .ms-grid-ph .ms-item { font-size: 11px; }
  .ph-nav {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    display: flex;
    background: #fff;
    border-top: 1px solid var(--azureish);
    padding: 8px 0 10px;
    transform: translateY(110%);
    transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 3;
  }
  .phone-frame.nav-in .ph-nav { transform: translateY(0); }
  .ph-nav-i {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; gap: 2px;
    font-size: 10px;
    color: var(--text-tertiary);
  }
  .ph-nav-i.active { color: var(--crayola-600); font-weight: 600; }
  .ph-nav-ico {
    font-size: 16px; line-height: 1;
  }
}

/* ---------- Simple contact form (replaces challenge-chat) ---------- */
.contact-form {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  padding: 28px 28px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(230, 241, 255, 0.14);
  border-radius: 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-form-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.contact-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-form-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(230, 241, 255, 0.78);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(230, 241, 255, 0.16);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  transition: border-color 180ms var(--ease-out), background 180ms var(--ease-out);
  outline: 0;
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
  max-height: 320px;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(230, 241, 255, 0.42);
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(102, 169, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
}
.contact-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.contact-form-hint {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(230, 241, 255, 0.58);
}
.contact-form .btn-primary {
  flex: 0 0 auto;
}
.contact-form-fallback {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(230, 241, 255, 0.58);
  text-align: center;
  margin: 6px 0 0;
}
.contact-form-fallback a {
  color: rgba(230, 241, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.contact-form-fallback a:hover {
  color: #fff;
}
.contact-form-status {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  padding: 10px 12px;
  border-radius: 8px;
}
.contact-form-status.is-error {
  background: rgba(255, 120, 120, 0.1);
  border: 1px solid rgba(255, 120, 120, 0.3);
  color: rgba(255, 200, 200, 0.95);
}
.contact-form-status.is-ok {
  background: rgba(140, 220, 170, 0.1);
  border: 1px solid rgba(140, 220, 170, 0.3);
  color: rgba(200, 235, 215, 0.95);
}
.contact-form-success {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  color: rgba(230, 241, 255, 0.92);
  text-align: center;
  padding: 8px 0;
}
.contact-form button[aria-busy="true"] {
  opacity: 0.7;
  cursor: progress;
}
@media (max-width: 560px) {
  .contact-form {
    padding: 22px 20px 20px;
  }
  .contact-form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .contact-form-actions .btn-primary {
    width: 100%;
    justify-content: center;
  }
  .contact-form-hint {
    text-align: center;
  }
}
