/* ============================================================
   TYPOGRAPHY — font faces + stacks: assets/css/fonts.css
                 colours: assets/css/theme-colors.css
   ============================================================ */

/* ============================================================
   BASE RESET & GLOBALS
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --nav-height: 90px;
  --breakpoint-md: 768px;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: clamp(16px, 1.2vw, 20px);
  overflow-x: hidden;
  background: var(--canvas);
}

body {
  font-family: var(--fb);
  background: var(--canvas);
  color: var(--text-primary);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--nav-height);
  padding-bottom: 72px;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   AMBIENT ORBS — decorative blurred radial accents
   ============================================================ */
.section-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  opacity: 0.55;
}
.section-orb--tl {
  top: -120px; left: -120px;
  width: 480px; height: 480px;
}
.section-orb--tr {
  top: -80px; right: -80px;
  width: 400px; height: 400px;
}
.section-orb--bl {
  bottom: -100px; left: 5%;
  width: 420px; height: 420px;
}
.section-orb--br {
  bottom: -100px; right: 5%;
  width: 360px; height: 360px;
}
.section-orb--sage { background: radial-gradient(circle, rgba(124,145,136,0.45) 0%, transparent 70%); }
.section-orb--deep { background: radial-gradient(circle, rgba(20,56,21,0.5) 0%, transparent 70%); }
.section-orb--bright { background: radial-gradient(circle, rgba(124,145,136,0.3) 0%, transparent 70%); }
.section-orb--spark { background: radial-gradient(circle, rgba(232,228,224,0.2) 0%, transparent 70%); }

/* ============================================================
   EYEBROW PATTERN
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fm);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

/* Spark variant — for dark backgrounds */
.eyebrow--spark {
  color: var(--spark);
}

/* Oak Bright variant — for light backgrounds */
.eyebrow--bright {
  color: var(--oak-bright);
}

/* Stage pill badge — replaces plain eyebrow on stage sections */
.eyebrow--stage {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  gap: 7px;
  background: rgba(var(--rgb-sage), 0.22);
  border: 1px solid rgba(var(--rgb-sage), 0.42);
  border-radius: 9999px;
  padding: 7px 13px 7px 5px;
  font-family: var(--fm);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 2px rgba(var(--rgb-forest), 0.06);
}
.eyebrow--stage::before { display: none; }
.eyebrow-stage-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--oak-forest) 0%, var(--oak-bright) 100%);
  color: var(--white);
  font-size: 0.48rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
  box-shadow: 0 1px 5px rgba(var(--rgb-sage), 0.38);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fb);
  font-weight: 700;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

/* Primary button — demo CTA; same 135° gradient as .hero-gradient-word */
.btn-primary {
  font-size: 0.9rem;
  padding: 12px 26px;
  background: var(--oak-forest);
  background: linear-gradient(135deg, var(--oak-forest) 0%, var(--oak-bright) 100%);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--oak-bright-hover);
  background: linear-gradient(135deg, var(--ink-soft) 0%, var(--oak-bright-hover) 100%);
}

/* Ghost button — on light surfaces */
.btn-ghost {
  font-size: 0.9rem;
  padding: 12px 26px;
  background: transparent;
  border: 1.5px solid var(--oak-bright);
  color: var(--text-primary);
}

.btn-ghost:hover {
  background: var(--oak-whisper);
}

/* Hero secondary CTA — solid mid green (lighter than primary forest) */
.hero-buttons .btn-ghost {
  background: var(--oak-mid);
  color: var(--white);
  border: 1px solid var(--oak-mid);
}

.hero-buttons .btn-ghost:hover {
  background: var(--oak-bright);
  border-color: var(--oak-bright);
}

/* Nav CTA — same gradient as .btn-primary */
.btn-nav {
  font-size: 0.83rem;
  padding: 10px 22px;
  background: var(--oak-forest);
  background: linear-gradient(135deg, var(--oak-forest) 0%, var(--oak-bright) 100%);
  color: var(--white);
}

.btn-nav:hover {
  background: var(--oak-bright-hover);
  background: linear-gradient(135deg, var(--ink-soft) 0%, var(--oak-bright-hover) 100%);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--canvas);
  border-bottom: 1px solid var(--border);
  transition: border-bottom-color 0.2s ease, background 0.2s ease;
}

#nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: var(--border-mid);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  padding: 0 80px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-primary);
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--oak-bright);
  outline-offset: 2px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

#nav.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#nav.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

#nav.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-panel {
  display: contents;
}

.nav-inner .btn-nav {
  justify-self: end;
}

/* Logo — Oli by Oaklin */
.nav-brand {
  justify-self: start;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.nav-brand-attribution {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.nav-brand-by {
  font-family: var(--fb);
  font-size: 0.72rem;
  font-weight: 500;
  color: #104911;
  line-height: 1;
  letter-spacing: 0.03em;
}

.nav-oaklin-img {
  height: 13px;
  width: auto;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  object-position: left center;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: center;
}

.nav-links a {
  font-family: var(--fm);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #104911;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover {
  color: #0c3a0e;
  border-bottom-color: var(--oak-bright);
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  background: var(--canvas);
  display: flex;
  align-items: center;
}

/* Radial glow — soft green wash on light ground */
#hero::before {
  content: '';
  position: absolute;
  z-index: 0;
  right: -80px;
  top: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--tint-hero-glow) 0%, transparent 65%);
  pointer-events: none;
}

#hero::after {
  content: '';
  position: absolute;
  inset: -5%;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(124,145,136,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(20,56,21,0.10) 0%, transparent 60%);
  animation: hero-gradient-shift 12s ease-in-out infinite alternate;
  will-change: transform, opacity;
  pointer-events: none;
}

@keyframes hero-gradient-shift {
  0%   { opacity: 0.7; transform: scale(1) rotate(0deg); }
  100% { opacity: 1;   transform: scale(1.06) rotate(2deg); }
}

/* Page-wide node network — hero only; hidden past hero so sections (e.g. Ideas Pipeline) aren’t overlaid */
.hero-network-svg {
  position: fixed;
  z-index: 1;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 72px;
  width: 100%;
  height: calc(100vh - var(--nav-height) - 72px);
  max-height: calc(100vh - var(--nav-height) - 72px);
  pointer-events: none;
  will-change: transform;
  transform-origin: center center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.hero-network-svg.hero-network-svg--past-hero {
  opacity: 0;
  visibility: hidden;
}

/* Scroll-synced thread: hero Problem Definition card → Stage 01 mockup */
.problem-def-connector-wrap {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 4;
  overflow: visible;
}

.problem-def-connector-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.problem-def-connector-path {
  fill: none;
  stroke: var(--oak-bright);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(80px, 10vh, 140px) 80px;
  display: grid;
  grid-template-columns: 55% 45%;
  align-items: center;
  gap: 4rem;
}

/* Left: copy */
.hero-copy {
  display: flex;
  flex-direction: column;
}

.hero-copy .eyebrow {
  background: rgba(var(--rgb-sage), 0.12);
  border: 1px solid rgba(var(--rgb-sage), 0.3);
  border-radius: 9999px;
  padding: 5px 16px;
  display: inline-flex;
}
.hero-copy .eyebrow::before { display: none; }

.hero-headline {
  font-family: var(--fd);
  font-size: 4.5rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 40px rgba(var(--rgb-sage), 0.15);
}

.hero-headline strong {
  font-weight: 700;
  font-style: normal;
  color: inherit;
}

.hero-gradient-word {
  background: linear-gradient(135deg, var(--oak-forest) 0%, var(--oak-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Same treatment on dark sections — lighter stops for contrast */
.hero-gradient-word--light {
  background: linear-gradient(135deg, var(--tint-sage-light) 0%, var(--spark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-family: var(--fb);
  font-size: 1.15rem;
  color: var(--ink-muted);
  line-height: 1.52;
  max-width: 560px;
  margin-bottom: 0;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  margin-top: 2rem;
}


/* ============================================================
   BROWSER FRAME — shared pattern (used hero + all stages)
   ============================================================ */
.browser-frame {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-mid);
}

.browser-chrome {
  height: 36px;
  background: var(--oak-whisper);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 6px;
}

.browser-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(var(--rgb-sage), 0.35);
  flex-shrink: 0;
}

.browser-url-bar {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  height: 20px;
  margin: 0 8px;
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.browser-url-text {
  font-family: var(--fm);
  font-size: 0.6rem;
  color: var(--oak-bright);
}

.browser-screen {
  background: var(--oak-mist);
  padding: 24px;
}

/* oli-avatar — shared */
.oli-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--oak-forest);
  font-family: var(--fd);
  font-size: 1rem;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-weight: 400;
}

/* oli-card — shared */
.oli-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.oli-card {
  background: var(--white);
  border: 1px solid rgba(var(--rgb-sage),0.15);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}

.oli-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--graphic-icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  color: var(--text-primary);
}

.oli-card-title {
  font-family: var(--fd);
  font-size: 0.82rem;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.26;
  margin-bottom: 4px;
}

.oli-card-desc {
  font-family: var(--fb);
  font-size: 0.65rem;
  color: var(--ink-muted);
  line-height: 1.42;
}

/* ============================================================
   HERO MOCKUP
   ============================================================ */
.mockup-fit-host {
  width: 100%;
  max-width: 100%;
}

.mockup-fit-slot {
  display: block;
}

.mockup-fit {
  width: 100%;
}

.hero-mockup-wrap {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-mockup {
  animation: float-flat 4s ease-in-out infinite alternate;
  transition: transform 0.3s ease;
  box-shadow: 0 24px 64px rgba(var(--rgb-forest), 0.12);
  transform: none;
}

.hero-mockup:hover {
  animation-play-state: paused;
  transform: translateY(-3px);
}

/* Hero mockup only — dark green browser chrome */
.hero-mockup .browser-chrome {
  background: var(--oak-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-mockup .browser-dot {
  background: rgba(255, 255, 255, 0.15);
}

.hero-mockup .browser-url-bar {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-mockup .browser-url-text {
  color: rgba(255, 255, 255, 0.35);
}

.hero-mockup .browser-frame {
  overflow: hidden;
  background: var(--mockup-browser-surface);
  border-color: var(--mockup-browser-border);
}

.hero-mockup .browser-screen {
  background: var(--mockup-browser-surface);
}

.hero-mockup .oli-avatar {
  position: relative;
}

.hero-mockup .oli-avatar::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 11px;
  height: 5px;
  margin-left: -5.5px;
  border: 1.5px solid transparent;
  border-bottom-color: rgba(255, 255, 255, 0.88);
  border-radius: 0 0 12px 12px;
  pointer-events: none;
}

.oli-welcome-title {
  font-family: var(--fd);
  font-size: 1.35rem;
  color: var(--text-primary);
  text-align: center;
  font-weight: 700;
  margin-bottom: 4px;
}

.oli-welcome-sub {
  font-family: var(--fb);
  font-size: 0.72rem;
  color: var(--ink-muted);
  text-align: center;
  margin-bottom: 16px;
}

.oli-mockup-label {
  font-family: var(--fm);
  font-size: 0.6rem;
  color: var(--ink-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  margin-bottom: 8px;
  margin-top: 12px;
}

.oli-project-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.hero-mockup-wrap .oli-project-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.oli-project-row {
  font-family: var(--fb);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.oli-project-row-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--graphic-icon-bg);
  color: var(--text-primary);
  flex-shrink: 0;
}

.oli-project-row-chevron {
  display: flex;
  align-items: center;
  color: var(--ink-faint);
  flex-shrink: 0;
  margin-left: auto;
}

.oli-project-row-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}

.oli-project-title {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.26;
}

.oli-project-sub {
  font-size: 0.62rem;
  font-weight: 400;
  color: var(--ink-muted);
  line-height: 1.26;
}

.hero-mockup .oli-card-title {
  /* Two-line title block so descriptions align across the three tiles */
  min-height: calc(2 * 1.3em);
}

.hero-mockup-wrap .oli-card {
  position: relative;
  background: var(--white);
  border-color: rgba(var(--rgb-sage), 0.18);
  transition: background 0.35s ease, border-color 0.35s ease;
}

.hero-mockup-wrap .oli-card.card-selected {
  background: rgba(var(--rgb-forest), 0.11);
  border-color: var(--text-primary);
}

@keyframes card-select-in {
  0%   { transform: scale(1); }
  40%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.hero-mockup-wrap .oli-card.card-selected {
  animation: card-select-in 0.25s ease-out;
}

/* ============================================================
   THE PROBLEM
   ============================================================ */
#the-problem {
  --problem-surface: rgba(255,255,255,0.06); /* override so card containers match dark bg */
  position: relative;
  z-index: 3;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  /* avoid overflow-x:hidden here — it forces overflow-y to auto and causes a nested vertical scroll */
  overflow: visible;
  background-color: var(--oak-forest);
  padding-top: clamp(80px, 10vh, 140px);
  padding-right: clamp(20px, 5vw, 80px);
  padding-left: clamp(20px, 5vw, 80px);
  padding-bottom: clamp(112px, 14vh, 180px);
}

/* Remove gradient glow in Problem section to avoid hard cutoff at next section */
#the-problem .section-orb {
  display: none;
}

.problem-inner {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  overflow: visible;
  z-index: 1;
}

.problem-eyebrow {
  font-family: var(--fm);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.35;
  margin: 0 0 clamp(0.85rem, 2vw, 1.1rem);
  color: rgba(255, 255, 255, 0.48);
}

.problem-headline {
  margin: 0 0 clamp(3rem, 5vw, 4.5rem);
  font-family: var(--fd);
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--ink);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.problem-grid {
  display: grid;
  /* fr shares space after gap — % + gap overflowed past viewport */
  grid-template-columns: minmax(0, 5.5fr) minmax(0, 4.5fr);
  gap: 4rem;
  align-items: stretch;
}

/* Left column — cards only (no full-column panel) so the section bg reads full-bleed */
.problem-cards {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(0.75rem, 2vh, 1.25rem);
  min-width: 0;
  min-height: 0;
  height: 100%;
  background: transparent;
  border-radius: 0;
}

#the-problem .problem-cards > .problem-card {
  background: var(--problem-surface);
  padding: 16px 20px;
  text-align: left;
}

#the-problem .problem-cards > .problem-card .problem-card-headline {
  margin: 0 0 6px;
  color: var(--white);
}

#the-problem .problem-cards > .problem-card .problem-card-body {
  margin: 0;
  color: rgba(255,255,255,0.6);
}

.problem-card-headline {
  font-family: var(--fd);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.26;
  margin-bottom: 6px;
}

.problem-card-body {
  font-family: var(--fb);
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

/* Right column — sticky; intrinsic image height (no height:100% stretch → avoids section overflow) */
.problem-photo-col {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
  align-self: start;
  min-width: 0;
}

.problem-photo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: contain;
  object-position: center;
}

/* Stagger overrides for problem cards */
#the-problem .reveal-delay-1 { transition-delay: 0.15s; }
#the-problem .reveal-delay-2 { transition-delay: 0.30s; }

/* Dark background text overrides for #the-problem */
#the-problem .eyebrow--bright { color: var(--spark); }
#the-problem p.problem-headline { color: var(--white); }  /* element is <p>, not <h2> */
#the-problem .problem-card {
  border-color: rgba(255,255,255,0.1);
}

/* ============================================================
   STATS STRIP
   ============================================================ */
#stats-strip {
  background: var(--oak-forest);
  padding-top: 52px;
  padding-right: 80px;
  padding-left: 80px;
  padding-bottom: 64px;
  position: relative;
  z-index: 3;
}

#stats-strip .kpi-grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 2rem;
  align-items: start;
}

#stats-strip .kpi-item {
  text-align: center;
  display: grid;
  grid-template-rows: clamp(3.45rem, 7.5vw, 5.25rem) auto auto;
  justify-items: center;
  row-gap: 0.42rem;
}

#stats-strip .kpi-num {
  margin: 0;
  text-align: center;
  font-family: var(--fd);
  font-size: clamp(2.3rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

#stats-strip .kpi-num--infinity {
  font-size: clamp(3.45rem, 7.5vw, 5.25rem);
  line-height: 1;
  transform: translateY(0.12em);
}

#stats-strip .kpi-unit {
  margin: 0;
  text-align: center;
  font-family: var(--fd);
  font-size: clamp(1.25rem, 2.8vw, 1.8rem);
  font-weight: 400;
  line-height: 1.02;
  text-transform: lowercase;
  color: var(--white);
}

#stats-strip .kpi-text {
  margin: 0;
  text-align: center;
  font-family: var(--fm);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 900px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }

  .problem-photo-col {
    position: static;
    order: 1;
    align-self: stretch;
  }

  .problem-photo {
    width: 100%;
    height: auto;
  }

  .problem-cards {
    order: 0;
    height: auto;
    justify-content: flex-start;
    gap: 1rem;
  }
}

/* ============================================================
   WHAT IS OLI
   ============================================================ */
#what-is-oli {
  position: relative;
  z-index: 2;
  overflow: visible;
  background: var(--tint-surface);
  padding: clamp(80px, 10vh, 140px) 80px;
}

/* Orb on section (not inside max-width inner) so the sage wash is full-bleed */
#what-is-oli .section-orb {
  opacity: 0.35;
}

.what-is-oli-inner {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  overflow: visible;
  z-index: 1;
}

.what-is-oli-top {
  text-align: center;
  margin-bottom: 4rem;
}

.what-is-oli-headline {
  font-family: var(--fd);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.what-is-oli-headline em {
  font-style: italic;
  color: inherit;
}

.what-is-oli-sub {
  font-family: var(--fb);
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
}

.pillar-grid .oli-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  align-items: start;
  column-gap: 0.75rem;
  row-gap: 0.5rem;
  text-align: left;
  padding: 1.25rem 1.35rem;
}

.pillar-grid a.oli-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.pillar-grid a.oli-card:focus-visible {
  outline: 2px solid var(--oak-bright);
  outline-offset: 3px;
}

.pillar-icon {
  width: 40px;
  height: 40px;
  background: var(--graphic-icon-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: var(--oak-bright);
  flex-shrink: 0;
  grid-column: 1;
  grid-row: 1;
}

.pillar-headline {
  font-family: var(--fd);
  color: var(--ink);
  font-size: 1.2rem;
  margin: 0;
  line-height: 1.25;
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}

.pillar-body {
  font-family: var(--fb);
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  grid-column: 1 / -1;
  grid-row: 2;
}

.pillar-link {
  font-family: var(--fb);
  color: var(--oak-bright);
  font-size: 0.85rem;
  text-decoration: none;
  margin: 0;
  padding-top: 0.15rem;
  display: inline-block;
  grid-column: 1 / -1;
  grid-row: 3;
}

.pillar-grid .oli-card:hover .pillar-link,
.pillar-grid .oli-card:focus-visible .pillar-link {
  text-decoration: underline;
}

/* Scoped stagger timing — matches #the-problem cadence */
#what-is-oli .reveal-delay-1 { transition-delay: 0.12s; }
#what-is-oli .reveal-delay-2 { transition-delay: 0.24s; }
#what-is-oli .reveal-delay-3 { transition-delay: 0.36s; }

/* Pillar card hover lift */
#what-is-oli .oli-card {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s ease,
              border-color 0.25s ease;
}
#what-is-oli .oli-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(27,34,27,0.12);
  border-color: var(--oak-bright);
}
#what-is-oli .pillar-icon {
  transition: background 0.2s ease, color 0.2s ease;
}
#what-is-oli .oli-card:hover .pillar-icon {
  background: var(--oak-forest);
  color: var(--white);
}

@media (max-width: 700px) {
  .pillar-grid {
    grid-template-columns: 1fr;
  }

  #stats-strip {
    padding: 42px 24px 48px;
  }
  #stats-strip .kpi-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
  #stats-strip .kpi-item {
    grid-template-rows: clamp(3rem, 15vw, 4.2rem) auto auto;
    row-gap: 0.35rem;
  }
  #stats-strip .kpi-num {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }
  #stats-strip .kpi-num--infinity {
    font-size: clamp(3rem, 15vw, 4.2rem);
  }
  #stats-strip .kpi-unit {
    font-size: clamp(1.05rem, 6vw, 1.35rem);
  }
}

/* ============================================================
   TRUST BAR
   ============================================================ */
#trust {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--white);
  border-top: 1px solid rgba(var(--rgb-forest),0.1);
  padding: 0 80px;
  height: 72px;
  box-sizing: border-box;
}

.trust-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.trust-headline {
  font-family: var(--fb);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--ink);
  white-space: nowrap;
}

.trust-divider {
  display: block;
  width: 1px;
  height: 28px;
  background: rgba(var(--rgb-forest),0.12);
  flex-shrink: 0;
}

.trust-brand-img {
  height: 26px;
  width: auto;
  max-width: min(200px, 28vw);
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center;
}

.trust-copy {
  font-family: var(--fm);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  white-space: nowrap;
}

@media (max-width: 1024px) {
  #trust .trust-headline,
  #trust .trust-inner > .trust-headline + .trust-divider {
    display: none;
  }
}

/* ============================================================
   STAGE SECTIONS — shared layout
   ============================================================ */
.stage-inner {
  position: relative;
  overflow: hidden;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(80px, 10vh, 140px) 80px;
  display: grid;
  align-items: center;
  gap: 4rem;
}

.stage-copy {
  display: flex;
  flex-direction: column;
}

.stage-headline {
  font-family: var(--fd);
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.stage-headline strong {
  font-weight: 700;
  font-style: normal;
  color: inherit;
}

.stage-body {
  font-family: var(--fb);
  font-size: 1.05rem;
  color: var(--ink-muted);
  line-height: 1.52;
  max-width: 500px;
  margin-bottom: 1.5rem;
}
.stage-body strong {
  color: var(--text-primary);
  font-weight: 700;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 0;
}

/* Match .feature-item text: vertical-center tick with first line (cap / x-height) */
.feature-dot {
  --feature-line: calc(1.05rem * 1.52);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--oak-bright);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: calc((var(--feature-line) - 20px) / 2);
}
.feature-dot::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  margin-top: -2px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg);
  transform-origin: center;
}

.feature-item span:last-child {
  font-family: var(--fb);
  font-size: 1.05rem;
  color: var(--ink-muted);
  line-height: 1.52;
}

/* ============================================================
   STAGE 01 — PROBLEM STATEMENT
   ============================================================ */
#methodology {
  background: var(--canvas);
}

/* Remove Problem Statement orb glow to avoid visible cutoff into Stage 02 */
#methodology .section-orb {
  display: none;
}

#methodology .stage-inner {
  grid-template-columns: 45% 55%;
  padding-top: clamp(48px, 6vh, 80px);
}

#methodology .stage-headline {
  font-size: 3.2rem;
}

.oli-card.card-selected {
  background: rgba(var(--rgb-sage), 0.12);
  border: 1px solid var(--oak-bright);
}

/* Bidirectional repeat reveal — methodology section */
.reveal-repeat {
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-repeat.reveal-left  { transform: translateX(-40px) translateY(14px) scale(0.98); }
.reveal-repeat.reveal-right { transform: translateX(40px)  translateY(14px) scale(0.98); }

.reveal-repeat.visible {
  opacity: 1;
  transform: none;
}

#methodology .reveal-delay-1 {
  transition-delay: 0.18s;
}

/* Hero enters quickly so mockup / card carousel reads immediately on load */
#hero .reveal-repeat {
  transition: opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1), transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mockup — flat (no tilt); gentle vertical float + same shadow as hero */
#methodology .stage-mockup {
  transform: none;
  animation: float-flat 4s ease-in-out infinite alternate;
  box-shadow: 0 24px 64px rgba(var(--rgb-forest), 0.12);
  transition: transform 0.3s ease;
}

#methodology .stage-mockup:hover {
  animation-play-state: paused;
  transform: translateY(-3px);
}

/* Dark green chrome — same as hero mockup */
#methodology .browser-chrome {
  background: var(--oak-deep);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

#methodology .browser-dot {
  background: rgba(255,255,255,0.15);
}

#methodology .browser-url-bar {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}

#methodology .browser-url-text {
  color: rgba(255,255,255,0.35);
}

/* Stage 01 chat mockup — light green card (matches product UI) */
.stage-mockup .browser-frame {
  background: var(--mockup-browser-surface);
  border: 1px solid var(--mockup-browser-border);
  overflow: hidden;
}

.chat-header {
  background: var(--oak-mist);
  padding: 20px 24px;
  border-bottom: 1px solid rgba(var(--rgb-forest),0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}

#methodology .chat-header {
  background: transparent;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-bottom: 1px solid rgba(var(--rgb-forest), 0.08);
  padding: 20px 24px 16px;
  gap: 6px;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--oak-forest);
  font-family: var(--fd);
  font-size: 1rem;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 400;
}

.chat-header-text {
  display: flex;
  flex-direction: column;
}

.chat-header-title {
  font-family: var(--fd);
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 400;
  line-height: 1.2;
}

#methodology .chat-header-title {
  font-size: 1.5rem;
  font-weight: 700;
}

#methodology .chat-header-sub {
  text-align: center;
}

.chat-header-sub {
  font-family: var(--fb);
  font-size: 0.72rem;
  color: var(--ink-muted);
  margin-top: 2px;
  line-height: 1.32;
}

.chat-area {
  background: var(--oak-mist);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#methodology .chat-panel {
  margin: 0 clamp(14px, 5%, 22px) 14px;
  border: 1px solid var(--oak-bright);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
}

#methodology .chat-area {
  background: var(--white);
  padding: 20px clamp(12px, 4%, 20px);
  gap: 0;
}

#methodology .chat-area-inner {
  margin: 0 auto;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  max-width: 82%;
  padding: 10px 14px;
}

.chat-msg p {
  font-family: var(--fb);
  font-size: 0.8rem;
  color: var(--text-primary);
  line-height: 1.42;
}

.chat-msg--oli {
  background: var(--oak-whisper);
  border-radius: 0 10px 10px 10px;
  align-self: flex-start;
}

#methodology .chat-msg--oli {
  background: var(--mockup-chat-oli-bubble);
  border-radius: 18px;
}

.chat-msg--user {
  background: var(--white);
  border: 1px solid rgba(var(--rgb-sage),0.15);
  border-radius: 10px 0 10px 10px;
  align-self: flex-end;
}

#methodology .chat-msg--user {
  background: transparent;
  border-radius: 0;
  border: none;
  padding: 2px 0;
  max-width: none;
  flex: 0 1 auto;
  min-width: 0;
}

#methodology .chat-row--user {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  align-self: stretch;
  width: 100%;
  padding-left: 36px;
}

#methodology .chat-user-indicator {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--oak-forest);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#methodology .chat-user-indicator-icon {
  display: block;
}

.chat-msg--user p {
  color: var(--text-primary);
}

.chat-input-bar {
  background: var(--oak-mist);
  border-top: 1px solid rgba(var(--rgb-forest),0.08);
  padding: 12px 16px;
  display: flex;
  gap: 8px;
  align-items: center;
}

#methodology .chat-input-bar {
  background: var(--white);
  border-top: 1px solid rgba(var(--rgb-sage), 0.2);
}

#methodology .chat-oli-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  max-width: 100%;
  width: 100%;
  gap: 4px;
}

#methodology .chat-oli-block .chat-row--oli {
  max-width: 100%;
  width: 100%;
}

#methodology .chat-row--oli {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  align-self: stretch;
  max-width: 100%;
  width: 100%;
}

#methodology .chat-msg-report {
  font-family: var(--fb);
  font-size: 0.62rem;
  font-weight: 400;
  color: var(--ink-faint);
  line-height: 1.26;
  margin: 0 0 0 36px;
}

#methodology .chat-bubble-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--oak-forest);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

#methodology .chat-bubble-avatar-face {
  display: block;
  flex-shrink: 0;
}

#methodology .chat-row--oli .chat-msg--oli {
  align-self: stretch;
  max-width: none;
  flex: 1;
  min-width: 0;
}

#methodology .chat-input-hint {
  font-family: var(--fm);
  font-size: 0.6rem;
  color: var(--ink-faint);
  text-align: center;
  padding: 0 16px 12px;
  margin: 0;
  line-height: 1.32;
  background: transparent;
}

#methodology .chat-input {
  border-width: 2px;
}

.chat-input {
  flex: 1;
  border: 1.5px solid var(--oak-bright);
  border-radius: 6px;
  padding: 8px 12px;
  font-family: var(--fb);
  font-size: 0.8rem;
  color: var(--text-primary);
  background: var(--white);
  outline: none;
}

.chat-input::placeholder {
  color: var(--ink-faint);
}

.chat-send {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--oak-forest);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.chat-send:hover {
  background: var(--oak-mid);
}

/* Stage 01 send — mirrors hero Problem Definition tile (same transition + card-select-in pulse) */
#methodology .chat-send {
  background: var(--white);
  border: 1px solid rgba(var(--rgb-sage), 0.18);
  box-sizing: border-box;
  color: var(--text-primary);
  transform-origin: center center;
  transition: background 0.35s ease, border-color 0.35s ease;
}

#methodology .chat-send:hover:not(.chat-send--selected) {
  background: var(--white);
  border-color: rgba(var(--rgb-sage), 0.18);
}

#methodology .chat-send.chat-send--selected {
  background: rgba(var(--rgb-forest), 0.11);
  border-color: var(--text-primary);
  animation: card-select-in 0.25s ease-out;
}

#methodology .chat-send.chat-send--selected:hover {
  background: rgba(var(--rgb-forest), 0.16);
  border-color: var(--text-primary);
}

/* ============================================================
   STAGE 02 — PROTOTYPE LAB
   ============================================================ */
#design-thinking {
  background: var(--canvas);
}

#design-thinking .stage-inner {
  grid-template-columns: 55% 45%;
  overflow: visible;
}

#design-thinking .stage-headline {
  font-size: 3.2rem;
}

#design-thinking .reveal-delay-1 {
  transition-delay: 0.18s;
}

/* Mockup — same treatment as Stage 01 */
#design-thinking .stage-mockup {
  animation: float-flat 4s ease-in-out infinite alternate;
  box-shadow: 0 24px 64px rgba(var(--rgb-forest), 0.12);
  transition: transform 0.3s ease;
}

#design-thinking .stage-mockup:hover {
  animation-play-state: paused;
  transform: translateY(-3px);
}

#design-thinking .browser-chrome {
  background: var(--oak-deep);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

#design-thinking .browser-dot {
  background: rgba(255,255,255,0.15);
}

#design-thinking .browser-url-bar {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}

#design-thinking .browser-url-text {
  color: rgba(255,255,255,0.35);
}

#design-thinking .browser-frame {
  background: var(--mockup-browser-surface);
  border: 1px solid var(--mockup-browser-border);
}

/* Lab screen */
.lab-screen {
  position: relative;
  background: var(--mockup-browser-surface);
  overflow: hidden;
}

.lab-screen-inner {
  position: relative;
  z-index: 1;
}

/* Decorative background icons (replaces geometric-only feel) */
.lab-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.lab-decor-item {
  position: absolute;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--text-primary);
  opacity: 0.07;
  user-select: none;
}

.lab-decor-item--1 { top: 12%; left: 6%; }
.lab-decor-item--2 { top: 22%; right: 10%; }
.lab-decor-item--3 { top: 48%; left: 4%; }
.lab-decor-item--4 { top: 38%; right: 6%; }
.lab-decor-item--5 { bottom: 28%; left: 8%; }
.lab-decor-item--6 { bottom: 18%; right: 12%; }
.lab-decor-item--7 { top: 62%; right: 4%; }
.lab-decor-item--8 { bottom: 42%; left: 14%; }

/* Stage progress tab bar */
.lab-stepper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
  background: var(--white);
  border-bottom: 1px solid rgba(var(--rgb-forest),0.08);
  padding: 0 10px;
}

.lab-step {
  font-family: var(--fb);
  font-size: 0.68rem;
  font-weight: 400;
  padding: 9px 10px;
  color: var(--ink-faint);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  line-height: 1;
}

.lab-step--done {
  color: var(--oak-mid);
}

.lab-step--active {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
  font-weight: 700;
}

/* Stage header */
.lab-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(var(--rgb-forest),0.06);
}

.lab-stage-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--graphic-icon-bg);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
}

.lab-stage-title {
  font-family: var(--fd);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 4px;
}

.lab-stage-sub {
  font-family: var(--fb);
  font-size: 0.68rem;
  color: var(--ink-muted);
  line-height: 1.32;
}

.lab-context-pill {
  display: inline-block;
  margin: 10px auto 0;
  max-width: 95%;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(var(--rgb-sage), 0.12);
  border: 1px solid var(--oak-bright);
  font-family: var(--fb);
  font-size: 0.62rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.28;
}

.lab-report-link {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--fb);
  font-size: 0.58rem;
  font-weight: 400;
  color: var(--ink-faint);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lab-report-link:hover {
  color: var(--oak-mid);
}

/* Two-panel layout */
.lab-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  /* Content-height columns — avoids stretching the available panel to match the tall centre column */
  align-items: start;
  padding: 8px 10px 5px;
}

.lab-panels > .lab-panel--available,
.lab-panels > .lab-panel--selected {
  display: flex;
  flex-direction: column;
}

.lab-panel {
  background: var(--white);
  border: 1px solid rgba(var(--rgb-sage),0.15);
  border-radius: 10px;
  padding: 10px;
  min-width: 0;
}

.lab-panel-heading {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(var(--rgb-forest),0.06);
}

.lab-panel-title {
  font-family: var(--fb);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 2px;
}

.lab-panel-hint,
.lab-panel-subtitle {
  font-family: var(--fb);
  font-size: 0.58rem;
  color: var(--ink-faint);
  line-height: 1.28;
}

.lab-panel-subtitle {
  margin-top: 2px;
}

.lab-btn {
  display: block;
  width: 100%;
  font-family: var(--fb);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: default;
  margin-bottom: 6px;
  text-align: center;
  line-height: 1.26;
}

.lab-btn--dashed {
  background: var(--white);
  color: var(--text-primary);
  border: 1px dashed var(--oak-bright);
}

.lab-btn--ideas {
  background: rgba(var(--rgb-sage), 0.14);
  color: var(--text-primary);
  border: 1px solid var(--mockup-browser-border);
  margin-bottom: 8px;
}

.lab-feature-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(var(--rgb-forest),0.06);
}

.lab-feature-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.lab-feature-body {
  flex: 1;
  min-width: 0;
}

.lab-feature-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.lab-feature-icon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--graphic-icon-bg);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.lab-feature-name {
  font-family: var(--fb);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.lab-feature-desc {
  font-family: var(--fb);
  font-size: 0.6rem;
  color: var(--ink-faint);
  line-height: 1.28;
  margin-top: 2px;
}

.lab-more-link {
  font-family: var(--fb);
  font-size: 0.55rem;
  font-weight: 400;
  color: var(--oak-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
  flex-shrink: 0;
  white-space: nowrap;
}

.lab-more-link:hover {
  color: var(--text-primary);
}

/* Available panel — match selected column typography & density */
.lab-panel--available {
  padding: 7px 7px 4px;
}

.lab-panel--available .lab-panel-heading {
  margin-bottom: 4px;
  padding-bottom: 4px;
}

.lab-panel--available .lab-panel-title {
  font-size: 0.62rem;
  margin-bottom: 1px;
}

.lab-panel--available .lab-panel-hint {
  font-size: 0.48rem;
  line-height: 1.2;
}

.lab-panel--available .lab-btn {
  font-size: 0.52rem;
  padding: 5px 8px;
  margin-bottom: 4px;
}

.lab-panel--available .lab-btn--ideas {
  margin-bottom: 8px;
}

.lab-panel--available .lab-feature-row {
  padding: 8px 0;
  gap: 10px;
}

.lab-panel--available .lab-feature-row:last-child {
  padding-bottom: 0;
}

.lab-panel--available .lab-feature-icon {
  width: 20px;
  height: 20px;
  margin-top: 0;
}

.lab-panel--available .lab-feature-icon svg {
  width: 10px;
  height: 10px;
}

.lab-panel--available .lab-feature-name {
  font-size: 0.6rem;
  line-height: 1.12;
}

.lab-panel--available .lab-feature-desc {
  font-size: 0.5rem;
  line-height: 1.15;
  margin-top: 3px;
}

.lab-panel--available .lab-more-link {
  font-size: 0.46rem;
}

/* Selected feature cards — compact (~half previous footprint) */
.lab-panel--selected {
  padding: 5px 6px 4px;
}

.lab-panel--selected .lab-panel-heading {
  margin-bottom: 4px;
  padding-bottom: 4px;
}

.lab-panel--selected .lab-panel-title {
  font-size: 0.62rem;
  margin-bottom: 1px;
}

.lab-panel--selected .lab-panel-subtitle {
  font-size: 0.48rem;
  line-height: 1.2;
}

.lab-feature-card--selected {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 5px;
  padding: 4px 4px 4px 5px;
  margin-bottom: 4px;
  border: 1px solid rgba(var(--rgb-forest),0.06);
  border-radius: 5px;
  background: var(--white);
}

.lab-panel--selected > .lab-feature-card--selected:last-of-type {
  margin-bottom: 2px;
}

.lab-panel--selected .lab-continue-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 2px;
  margin-bottom: 0;
  padding: 4px 10px;
  border-radius: 5px;
  font-family: var(--fb);
  font-size: 0.52rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: default;
}

/* Prototype Lab Continue — same default / selected / pulse as PS send (#methodology .chat-send) */
#design-thinking .lab-panel--selected .lab-continue-btn {
  background: var(--white);
  border: 1px solid rgba(var(--rgb-sage), 0.18);
  color: var(--text-primary);
  transform-origin: center center;
  transition: background 0.35s ease, border-color 0.35s ease;
}

#design-thinking .lab-panel--selected .lab-continue-btn:hover:not(.lab-continue-btn--selected) {
  background: var(--white);
  border-color: rgba(var(--rgb-sage), 0.18);
}

#design-thinking .lab-panel--selected .lab-continue-btn.lab-continue-btn--selected {
  background: rgba(var(--rgb-forest), 0.11);
  border-color: var(--text-primary);
  animation: card-select-in 0.25s ease-out;
}

#design-thinking .lab-panel--selected .lab-continue-btn.lab-continue-btn--selected:hover {
  background: rgba(var(--rgb-forest), 0.16);
  border-color: var(--text-primary);
}

.lab-feature-icon--round {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-top: 0;
}

.lab-feature-icon--tone-a {
  background: var(--graphic-icon-bg);
  color: var(--text-primary);
}

.lab-feature-icon--tone-b {
  background: var(--graphic-icon-bg);
  color: var(--text-primary);
}

.lab-feature-icon--tone-c {
  background: var(--graphic-icon-bg);
  color: var(--text-primary);
}

.lab-feature-icon--tone-d {
  background: var(--graphic-icon-bg);
  color: var(--text-primary);
}

.lab-feature-card-body {
  flex: 1;
  min-width: 0;
  padding-right: 14px;
}

.lab-panel--selected .lab-feature-card--selected .lab-feature-name {
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1.12;
}

.lab-panel--selected .lab-feature-card--selected .lab-feature-desc {
  font-size: 0.5rem;
  line-height: 1.15;
  margin-top: 1px;
}

.lab-feature-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.lab-feature-card--selected .lab-more-link,
.lab-feature-card--selected .lab-remove-link {
  font-size: 0.46rem;
}

.lab-remove-link {
  font-family: var(--fb);
  font-size: 0.55rem;
  font-weight: 400;
  color: var(--color-danger);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lab-remove-link:hover {
  color: var(--color-danger-hover);
}

.lab-feature-card--selected .lab-feature-check {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--oak-forest);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
}

/* ============================================================
   STAGE 03 — WORKING PROTOTYPE
   ============================================================ */
#working-prototype {
  background: var(--canvas);
}

#working-prototype .stage-inner {
  grid-template-columns: 45% 55%;
}

#working-prototype .stage-headline {
  font-size: 3.2rem;
}

#working-prototype .reveal-delay-1 {
  transition-delay: 0.18s;
}

#working-prototype .stage-mockup {
  animation: float-flat 4s ease-in-out infinite alternate;
  box-shadow: 0 24px 64px rgba(30, 64, 175, 0.14);
  transition: transform 0.3s ease;
}

#working-prototype .stage-mockup:hover {
  animation-play-state: paused;
  transform: translateY(-3px);
}

#working-prototype .browser-chrome {
  background: linear-gradient(180deg, #0f2744 0%, #0a1628 100%);
  border-bottom: 1px solid rgba(147, 197, 253, 0.12);
}

#working-prototype .browser-dot {
  background: rgba(255, 255, 255, 0.22);
}

#working-prototype .browser-url-bar {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(147, 197, 253, 0.18);
}

#working-prototype .browser-url-text {
  color: rgba(191, 219, 254, 0.55);
}

#working-prototype .browser-frame {
  background: #cfe8ff;
  border: 1px solid rgba(37, 99, 235, 0.22);
  overflow: hidden;
}

/* Dashboard app layout */
.dash-app {
  display: flex;
  height: 100%;
  min-height: 0;
}

.dash-sidebar {
  width: 148px;
  background: var(--oak-forest);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 14px 0 10px;
  gap: 0;
  min-height: 0;
}

.dash-sidebar-footer {
  margin-top: auto;
  flex-shrink: 0;
  padding: 10px 12px 0;
  width: 100%;
  box-sizing: border-box;
}

.dash-app-name-wrap {
  padding: 0 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 8px;
}

.dash-app-title {
  font-family: var(--fd);
  font-size: 0.78rem;
  color: white;
  font-weight: 700;
  line-height: 1.2;
}

.dash-app-sub {
  font-family: var(--fb);
  font-size: 0.55rem;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}

.dash-nav-section {
  padding: 4px 0;
}

.dash-nav-label {
  font-family: var(--fb);
  font-size: 0.52rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  padding: 6px 12px 3px;
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  font-family: var(--fb);
  font-size: 0.62rem;
  color: rgba(255,255,255,0.6);
  cursor: default;
  line-height: 1;
}

.dash-nav-item svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.dash-nav-item--active {
  background: rgba(255,255,255,0.1);
  color: white;
  border-left: 2px solid var(--oak-bright);
  padding-left: 10px;
}

.dash-nav-item--active svg {
  opacity: 1;
}

/* Main content area */
.dash-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dash-topbar {
  background: white;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(var(--rgb-forest),0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.dash-page-title {
  font-family: var(--fd);
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 700;
}

.dash-admin-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--oak-bright);
  border-radius: 4px;
  padding: 2px 8px;
  font-family: var(--fb);
  font-size: 0.58rem;
  color: white;
}

.dash-content {
  flex: 1;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  min-height: 0;
}

.dash-content-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

/* Submit — colours for #working-prototype in Blue Ocean block */
.dash-sidebar .dash-submit-btn {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 0;
  padding: 6px 8px;
  font-size: 0.58rem;
  font-family: var(--fb);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: default;
  border-radius: 5px;
  border: 1px solid transparent;
}

/* KPI stat cards */
.dash-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.dash-kpi-card {
  background: white;
  border-radius: 6px;
  padding: 9px 10px 7px;
  border: 1px solid rgba(var(--rgb-forest),0.08);
}

.dash-kpi-value {
  font-family: var(--fd);
  font-size: 1.35rem;
  color: var(--oak-bright);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 3px;
}

.dash-kpi-value span {
  font-size: 0.7rem;
  font-weight: 400;
  margin-left: 1px;
}

.dash-kpi-label {
  font-family: var(--fb);
  font-size: 0.57rem;
  color: var(--ink-muted);
  line-height: 1.26;
}

.dash-kpi-hint {
  font-family: var(--fb);
  font-size: 0.53rem;
  color: var(--ink-muted);
  opacity: 0.65;
  margin-top: 2px;
}

.dash-kpi-bar {
  height: 3px;
  background: rgba(var(--rgb-forest),0.08);
  border-radius: 2px;
  margin-top: 5px;
  overflow: hidden;
}

.dash-kpi-bar-fill {
  height: 100%;
  background: var(--oak-bright);
  border-radius: 2px;
}

.dash-kpi-tag {
  display: inline-block;
  background: rgba(var(--rgb-sage),0.12);
  color: var(--text-primary);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 0.52rem;
  font-family: var(--fb);
  margin-top: 4px;
}

/* Mid row: status + quick actions */
.dash-mid-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.dash-panel {
  background: white;
  border-radius: 6px;
  border: 1px solid rgba(var(--rgb-forest),0.08);
  padding: 9px 10px;
}

.dash-panel-title {
  font-family: var(--fd);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 7px;
}

.dash-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  border-bottom: 1px solid rgba(var(--rgb-forest),0.05);
  font-family: var(--fb);
  font-size: 0.6rem;
}

.dash-status-row:last-child {
  border-bottom: none;
}

.dash-status-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-muted);
}

.dash-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dash-status-dot--green  { background: var(--oak-bright); }
.dash-status-dot--amber  { background: var(--status-amber); }
.dash-status-dot--red    { background: var(--color-danger); }

.dash-status-count--green { color: var(--oak-bright); font-weight: 700; }
.dash-status-count--amber { color: var(--status-amber);            font-weight: 700; }
.dash-status-count--red   { color: var(--color-danger);            font-weight: 700; }

.dash-action-btn {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--fb);
  font-size: 0.6rem;
  padding: 5px 8px;
  border-radius: 4px;
  margin-bottom: 5px;
  border: 1px solid rgba(var(--rgb-forest),0.18);
  background: transparent;
  color: var(--ink);
  cursor: default;
  line-height: 1;
}

.dash-action-btn:last-child { margin-bottom: 0; }

.dash-action-btn--primary {
  background: var(--oak-bright);
  color: white;
  border-color: var(--oak-bright);
}

.dash-action-btn--solid {
  background: var(--oak-forest);
  color: white;
  border-color: var(--text-primary);
}

/* Recent activity table */
.dash-table-wrap {
  background: white;
  border-radius: 6px;
  border: 1px solid rgba(var(--rgb-forest),0.08);
  overflow: hidden;
}

.dash-table-title {
  font-family: var(--fd);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-primary);
  padding: 7px 10px 6px;
  border-bottom: 1px solid rgba(var(--rgb-forest),0.07);
}

.dash-table-head {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 4px 10px;
  background: rgba(var(--rgb-forest),0.03);
  border-bottom: 1px solid rgba(var(--rgb-forest),0.06);
}

.dash-th {
  font-family: var(--fb);
  font-size: 0.53rem;
  font-weight: 700;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dash-table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 5px 10px;
  border-bottom: 1px solid rgba(var(--rgb-forest),0.05);
  align-items: center;
}

.dash-table-row:last-child { border-bottom: none; }

.dash-td {
  font-family: var(--fb);
  font-size: 0.6rem;
  color: var(--ink);
}

.dash-td--muted { color: var(--ink-muted); }
.dash-td--bold  { font-weight: 700; }

.dash-pill {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.53rem;
  font-family: var(--fb);
}

.dash-pill--resolved {
  background: rgba(var(--rgb-sage),0.12);
  color: var(--text-primary);
}

.dash-pill--active {
  background: var(--tint-status-amber-bg);
  color: var(--ideas-review);
}

/* Working prototype dashboard — Blue Ocean theme (distinct from site sage/forest) */
#working-prototype .dash-sidebar {
  background: linear-gradient(180deg, #1a3a6e 0%, #142f5c 55%, #0f2648 100%);
  border-right: 1px solid rgba(147, 197, 253, 0.15);
}

#working-prototype .dash-app-name-wrap {
  border-bottom-color: rgba(147, 197, 253, 0.2);
}

#working-prototype .dash-app-sub {
  color: rgba(191, 219, 254, 0.55);
}

#working-prototype .dash-nav-label {
  color: rgba(147, 197, 253, 0.55);
}

#working-prototype .dash-nav-item {
  color: rgba(226, 232, 240, 0.82);
}

#working-prototype .dash-nav-item--active {
  background: rgba(59, 130, 246, 0.18);
  color: #f8fafc;
  border-left: 2px solid #38bdf8;
  padding-left: 10px;
}

#working-prototype .dash-main {
  background: #eff6ff;
}

#working-prototype .dash-topbar {
  background: #ffffff;
  border-bottom: 1px solid rgba(37, 99, 235, 0.12);
}

#working-prototype .dash-page-title {
  color: #0f2744;
}

#working-prototype .dash-admin-badge {
  background: #2563eb;
  color: #ffffff;
}

#working-prototype .dash-content {
  background: linear-gradient(180deg, #eff6ff 0%, #e0f2fe 100%);
}

#working-prototype .dash-kpi-card,
#working-prototype .dash-panel,
#working-prototype .dash-table-wrap {
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.12);
}

#working-prototype .dash-kpi-value {
  color: #1d4ed8;
}

#working-prototype .dash-kpi-bar {
  background: rgba(37, 99, 235, 0.1);
}

#working-prototype .dash-kpi-bar-fill {
  background: linear-gradient(90deg, #2563eb, #0ea5e9);
}

#working-prototype .dash-kpi-tag {
  background: rgba(37, 99, 235, 0.1);
  color: #1e40af;
}

#working-prototype .dash-panel-title,
#working-prototype .dash-table-title {
  color: #0f2744;
}

#working-prototype .dash-table-title {
  border-bottom-color: rgba(37, 99, 235, 0.1);
}

#working-prototype .dash-table-head {
  background: rgba(37, 99, 235, 0.06);
  border-bottom-color: rgba(37, 99, 235, 0.08);
}

#working-prototype .dash-table-row {
  border-bottom-color: rgba(15, 39, 68, 0.06);
}

#working-prototype .dash-status-row {
  border-bottom-color: rgba(37, 99, 235, 0.08);
}

#working-prototype .dash-status-dot--green {
  background: #0284c7;
}

#working-prototype .dash-status-count--green {
  color: #0369a1;
}

#working-prototype .dash-action-btn {
  border-color: rgba(37, 99, 235, 0.22);
  color: #1e293b;
}

#working-prototype .dash-action-btn--primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

#working-prototype .dash-action-btn--solid {
  background: #1e40af;
  border-color: #1e40af;
  color: #ffffff;
}

#working-prototype .dash-pill--resolved {
  background: rgba(14, 165, 233, 0.16);
  color: #0369a1;
}

#working-prototype .dash-sidebar .dash-submit-btn {
  background: #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.28);
  color: #1e40af;
  transform-origin: center center;
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

#working-prototype .dash-sidebar .dash-submit-btn:hover:not(.dash-submit-btn--selected) {
  background: #f8fafc;
  border-color: rgba(37, 99, 235, 0.35);
}

#working-prototype .dash-sidebar .dash-submit-btn.dash-submit-btn--selected {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  animation: card-select-in 0.25s ease-out;
}

#working-prototype .dash-sidebar .dash-submit-btn.dash-submit-btn--selected:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
}

/* ============================================================
   STAGE 04 — IDEAS PIPELINE
   ============================================================ */
#ideas-pipeline {
  position: relative;
  z-index: 2;
  overflow: visible;
  background-color: var(--tint-sand);
  background-image:
    radial-gradient(ellipse 78% 58% at 18% 12%, rgba(197, 187, 179, 0.32) 0%, transparent 58%),
    radial-gradient(ellipse 72% 52% at 88% 88%, rgba(255, 255, 255, 0.45) 0%, transparent 55%),
    linear-gradient(168deg, #f6efe5 0%, var(--tint-sand) 42%, #e8dfd3 100%);
}

#ideas-pipeline .section-orb {
  opacity: 0.32;
}

#ideas-pipeline .stage-inner {
  grid-template-columns: 55% 45%;
  overflow: visible;
  z-index: 1;
}

#ideas-pipeline .stage-headline {
  font-size: 3.2rem;
}

#ideas-pipeline .reveal-delay-1 {
  transition-delay: 0.18s;
}

#ideas-pipeline .stage-mockup {
  animation: float-flat 4s ease-in-out infinite alternate;
  box-shadow: 0 24px 64px rgba(var(--rgb-forest), 0.12);
  transition: transform 0.3s ease;
}

#ideas-pipeline .stage-mockup:hover {
  animation-play-state: paused;
  transform: translateY(-3px);
}

#ideas-pipeline .browser-chrome {
  background: var(--oak-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#ideas-pipeline .browser-dot {
  background: rgba(255, 255, 255, 0.15);
}

#ideas-pipeline .browser-url-bar {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#ideas-pipeline .browser-url-text {
  color: rgba(255, 255, 255, 0.35);
}

#ideas-pipeline .browser-frame {
  background: var(--mockup-browser-surface);
  border: 1px solid var(--mockup-browser-border);
  overflow: hidden;
}

/* Ideas Board screen */
.ideas-screen {
  display: flex;
  flex-direction: column;
}

.ideas-header {
  background: var(--oak-deep);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.ideas-title {
  font-family: var(--fd);
  font-size: 0.95rem;
  color: var(--white);
  font-weight: 400;
}

.ideas-count-badge {
  background: var(--tint-ideas-accent);
  color: var(--spark);
  font-family: var(--fm);
  font-size: 0.6rem;
  padding: 3px 10px;
  border-radius: 20px;
}

.ideas-filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 8px 12px;
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.ideas-filter-pill {
  font-family: var(--fb);
  font-size: 0.72rem;
  font-weight: 400;
  padding: 4px 14px;
  border-radius: 20px;
  border: none;
  cursor: default;
  background: transparent;
  color: var(--ink-muted);
}

.ideas-filter-pill--active {
  background: var(--oak-forest);
  color: var(--white);
}

.ideas-grid {
  background: var(--oak-mist);
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ideas-card {
  background: var(--white);
  border: 1px solid var(--border-mid);
  border-radius: 10px;
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.ideas-card-accent {
  height: 3px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.ideas-card-title {
  font-family: var(--fb);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.32;
  padding-top: 4px;
}

.ideas-card-meta {
  font-family: var(--fm);
  font-size: 0.58rem;
  color: var(--ink-faint);
  margin-top: 3px;
}

.ideas-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.ideas-status {
  font-family: var(--fm);
  font-size: 0.6rem;
  padding: 2px 7px;
  border-radius: 4px;
}

.ideas-status--review {
  background: var(--tint-amber-soft);
  color: var(--status-amber-dark);
}

.ideas-status--accepted {
  background: rgba(var(--rgb-sage), 0.1);
  color: var(--oak-bright);
}

.ideas-comments {
  font-family: var(--fm);
  font-size: 0.6rem;
  color: var(--ink-faint);
}

/* ============================================================
   CLOSING CTA
   ============================================================ */
#demo-cta {
  background: var(--tint-surface);
  padding: 120px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

#demo-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124,145,136,0.14) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 20% 100%, rgba(124,145,136,0.1) 0%, transparent 55%);
  pointer-events: none;
  animation: cta-glow-pulse 8s ease-in-out infinite alternate;
}

#demo-cta .section-orb {
  opacity: 0.38;
}

@keyframes cta-glow-pulse {
  0%   { opacity: 0.6; }
  100% { opacity: 1; }
}

.cta-inner {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-headline {
  font-family: var(--fd);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--text-primary);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.cta-headline em {
  font-style: italic;
  color: inherit;
}

.cta-sub {
  font-family: var(--fb);
  font-size: 1.05rem;
  color: var(--ink-muted);
  line-height: 1.52;
  margin-bottom: 2.5rem;
}

.btn-cta {
  display: inline-block;
  background: var(--oak-forest);
  background: linear-gradient(135deg, var(--oak-forest) 0%, var(--oak-bright) 100%);
  color: white;
  font-family: var(--fb);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 14px 34px;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.15s;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.btn-cta::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  pointer-events: none;
  animation: btn-shimmer 3s ease-in-out infinite;
}

@keyframes btn-shimmer {
  0%   { left: -100%; }
  60%  { left: 150%; }
  100% { left: 150%; }
}

.btn-cta:hover {
  background: var(--oak-bright-hover);
  background: linear-gradient(135deg, var(--ink-soft) 0%, var(--oak-bright-hover) 100%);
}

.btn-cta:active {
  transform: scale(0.98);
}

.cta-fine {
  margin-top: 1.5rem;
  font-family: var(--fm);
  font-size: 0.65rem;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
}

/* ============================================================
   PRICING PAGE
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pricing-page {
  padding-top: var(--nav-height);
  padding-bottom: 96px;
  background: var(--canvas);
}

.pricing-hero {
  padding: clamp(56px, 8vh, 100px) 80px 48px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.pricing-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.pricing-hero-eyebrow {
  justify-content: center;
}

.pricing-hero-eyebrow::before {
  display: none;
}

.pricing-headline {
  font-family: var(--fd);
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 1rem;
}

.pricing-sub {
  font-family: var(--fb);
  font-size: 1.1rem;
  color: var(--ink-muted);
  line-height: 1.5;
  max-width: 520px;
  margin: 0 auto;
}

.pricing-tiers {
  padding: clamp(48px, 6vh, 72px) 80px;
}

.pricing-tiers-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.pricing-tier {
  border: 1px solid var(--border-mid);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  background: var(--white);
  display: flex;
  flex-direction: column;
  text-align: center;
  box-shadow: 0 2px 16px rgba(var(--rgb-forest), 0.04);
}

.pricing-tier--featured {
  border-color: rgba(var(--rgb-sage), 0.45);
  box-shadow: 0 12px 40px rgba(var(--rgb-forest), 0.08);
  position: relative;
}

.pricing-tier-name {
  font-family: var(--fm);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--oak-bright);
  margin-bottom: 0.75rem;
}

.pricing-tier-price {
  font-family: var(--fd);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 0.35rem;
}

.pricing-tier-price-unit {
  display: block;
  font-family: var(--fb);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  margin-top: 0.35rem;
}

.pricing-tier-term {
  font-family: var(--fb);
  font-size: 0.95rem;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
  flex: 1;
}

.pricing-tier-cta {
  align-self: center;
  width: 100%;
  max-width: 280px;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}

.pricing-compare {
  padding: 0 80px clamp(56px, 7vh, 88px);
}

.pricing-compare-inner {
  max-width: 900px;
  margin: 0 auto;
}

.pricing-compare-title {
  font-family: var(--fd);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  text-align: center;
}

.pricing-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-mid);
  border-radius: 12px;
  background: var(--white);
}

.pricing-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-family: var(--fb);
  font-size: 0.88rem;
}

.pricing-table thead th {
  font-family: var(--fm);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  padding: 14px 18px;
  background: var(--oak-whisper);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-mid);
}

.pricing-table thead th.pricing-table-plan {
  text-align: center;
  width: 22%;
}

.pricing-table tbody th {
  text-align: left;
  font-weight: 500;
  color: var(--text-primary);
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.pricing-table tbody td {
  text-align: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-muted);
  vertical-align: middle;
}

.pricing-table tbody tr:last-child th,
.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-table tbody tr:nth-child(even) {
  background: rgba(var(--rgb-sage), 0.04);
}

.pricing-cell-yes {
  color: var(--oak-bright);
  font-weight: 700;
}

.pricing-cell-no {
  color: var(--ink-faint);
  font-weight: 600;
}

.pricing-bottom {
  padding: 0 80px 48px;
}

.pricing-bottom-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.pricing-callout {
  background: rgba(var(--rgb-sage), 0.1);
  border: 1px solid rgba(var(--rgb-sage), 0.28);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
}

.pricing-callout p {
  font-family: var(--fb);
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--text-primary);
  margin: 0;
}

.pricing-bottom-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.pricing-bottom-ctas .btn {
  text-decoration: none;
  box-sizing: border-box;
}

.nav-links a[aria-current="page"] {
  border-bottom-color: var(--oak-bright);
  color: var(--oak-forest);
}

/* ============================================================
   FEATURES PAGE
   ============================================================ */
.features-page {
  padding-top: var(--nav-height);
  padding-bottom: 72px;
  background: var(--canvas);
}

.features-hero {
  padding: clamp(56px, 8vh, 100px) 80px 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.features-hero-inner {
  max-width: 820px;
  margin: 0 auto;
}

.features-hero-eyebrow {
  justify-content: center;
}

.features-hero-eyebrow::before {
  display: none;
}

.features-headline {
  font-family: var(--fd);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 1rem;
}

.features-sub {
  font-family: var(--fb);
  font-size: 1.08rem;
  color: var(--ink-muted);
  line-height: 1.52;
  max-width: 560px;
  margin: 0 auto;
}

.features-block {
  padding: clamp(52px, 7vh, 88px) 80px;
}

.features-block--alt {
  background: var(--tint-surface);
}

.features-block-inner {
  max-width: 720px;
  margin: 0 auto;
}

.features-block-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 0.75rem;
}

.features-label {
  font-family: var(--fm);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--oak-bright);
  margin-bottom: 0.75rem;
}

.features-block-heading-row .features-label {
  margin-bottom: 0;
}

.features-enterprise-badge {
  font-family: var(--fm);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--oak-forest);
  background: rgba(var(--rgb-sage), 0.14);
  border: 1px solid rgba(var(--rgb-sage), 0.35);
  border-radius: 9999px;
  padding: 5px 11px;
  flex-shrink: 0;
}

.features-block-title {
  font-family: var(--fd);
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.features-block-body {
  font-family: var(--fb);
  font-size: 1.02rem;
  color: var(--ink-muted);
  line-height: 1.58;
  margin-bottom: 1.25rem;
}

.features-proof {
  font-family: var(--fb);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--oak-bright);
  line-height: 1.45;
  margin: 0;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(var(--rgb-sage), 0.22);
  margin-top: 0.25rem;
}

.features-pipeline {
  margin: 1.5rem 0 1.25rem;
}

.features-pipeline-track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px 4px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--border-mid);
  border-radius: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.features-block--alt .features-pipeline-track {
  background: var(--canvas);
}

.features-pipeline-stage {
  font-family: var(--fm);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(var(--rgb-sage), 0.1);
  border: 1px solid rgba(var(--rgb-sage), 0.22);
  flex-shrink: 0;
}

.features-pipeline-sep {
  color: var(--ink-faint);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0 2px;
  flex-shrink: 0;
  user-select: none;
}

.features-cta {
  padding: clamp(64px, 9vh, 100px) 80px;
  background: var(--tint-surface);
  border-top: 1px solid var(--border);
}

.features-cta-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.features-cta-headline {
  font-family: var(--fd);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 1.75rem;
}

.features-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.features-cta-buttons .btn {
  text-decoration: none;
  box-sizing: border-box;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes float-flat {
  from { transform: translateY(0); }
  to   { transform: translateY(-6px); }
}

/* ============================================================
   MOBILE & TABLET (single column, simplified chrome)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --nav-height: 72px;
  }

  body {
    padding-bottom: 100px;
  }

  .problem-def-connector-wrap {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  #nav {
    height: auto;
    min-height: var(--nav-height);
  }

  .nav-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 10px 16px;
    max-width: none;
  }

  .nav-toggle {
    display: inline-flex;
    order: 2;
    margin-left: auto;
  }

  .nav-brand {
    order: 1;
    justify-self: auto;
    min-width: 0;
  }

  .nav-panel {
    display: none;
    order: 3;
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 12px 0 8px;
    margin-top: 4px;
    border-top: 1px solid var(--border);
  }

  #nav.nav-open .nav-panel {
    display: flex;
  }

  .nav-panel .nav-links {
    flex-direction: column;
    gap: 0.35rem;
    flex: none;
    justify-content: flex-start;
    text-align: center;
  }

  .nav-panel .nav-links a {
    padding: 10px 8px;
    font-size: 0.65rem;
  }

  .nav-inner .btn-nav {
    justify-self: stretch;
    width: 100%;
    text-align: center;
    font-size: 0.78rem;
    padding: 12px 18px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 56px 20px 64px;
    gap: 2.5rem;
  }

  .hero-copy {
    order: 1;
  }

  .hero-mockup-wrap.mockup-fit-host,
  .stage-mockup.mockup-fit-host {
    display: flex;
    justify-content: center;
    overflow: visible;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
  }

  .mockup-fit-slot {
    flex-shrink: 0;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
  }

  .mockup-fit {
    width: 860px;
    max-width: none;
    flex-shrink: 0;
    transform-origin: top left;
  }

  .hero-mockup-wrap {
    order: 2;
  }

  .hero-headline {
    font-size: clamp(2.25rem, 10vw, 3.25rem);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .stage-mockup {
    max-width: 100%;
    min-width: 0;
  }

  #the-problem {
    padding-top: 56px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 64px;
  }

  .problem-headline {
    font-size: clamp(1.5rem, 6.5vw, 2.25rem);
    margin-bottom: 2rem;
  }

  #what-is-oli {
    padding: 56px 20px;
  }

  .pillar-grid {
    grid-template-columns: 1fr;
  }

  .what-is-oli-top {
    margin-bottom: 2.5rem;
  }

  .stage-inner {
    grid-template-columns: 1fr !important;
    padding: 48px 20px !important;
    gap: 2rem !important;
  }

  .stage-inner .stage-copy {
    order: 1;
  }

  .stage-inner .stage-mockup {
    order: 2;
  }

  .stage-headline {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  #methodology .stage-headline,
  #design-thinking .stage-headline,
  #working-prototype .stage-headline,
  #ideas-pipeline .stage-headline {
    font-size: clamp(1.75rem, 7vw, 2.6rem);
  }

  .stage-body {
    max-width: none;
  }

  .problem-photo-col {
    position: static;
  }

  #stats-strip {
    padding: 40px 20px;
  }

  #trust {
    height: auto;
    min-height: 64px;
    padding: 12px 16px;
  }

  .trust-inner {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.65rem;
    justify-content: center;
    max-width: none;
  }

  .trust-divider {
    display: none;
  }

  .trust-headline {
    white-space: normal;
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .trust-brand-img {
    height: 24px;
    max-width: min(220px, 70vw);
  }

  .trust-copy {
    white-space: normal;
    text-align: center;
    font-size: 0.55rem;
    line-height: 1.4;
  }

  #demo-cta {
    padding: 64px 20px;
  }

  .cta-headline {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  /* Ideas board + dashboard: keep desktop grid/sidebar layout inside mockup (scroll parent). */
  .ideas-card {
    min-width: 0;
  }

  /* Problem Statement mockup: chat uses full panel width (no narrow 360px column). */
  #methodology .chat-area-inner {
    max-width: none;
    width: 100%;
  }

  #methodology .chat-area {
    padding-left: 10px;
    padding-right: 10px;
  }

  #methodology .chat-msg {
    max-width: 100%;
  }

  /* Prototype Lab: match "Design the Experience" to Problem Definition title weight/size */
  #design-thinking .lab-stage-title {
    font-size: 1.5rem;
    font-weight: 700;
  }

  .pricing-hero,
  .pricing-tiers,
  .pricing-compare,
  .pricing-bottom {
    padding-left: 20px;
    padding-right: 20px;
  }

  .pricing-tiers-inner {
    grid-template-columns: 1fr;
  }

  .pricing-bottom-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .pricing-bottom-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .features-hero,
  .features-block,
  .features-cta {
    padding-left: 20px;
    padding-right: 20px;
  }

  .features-cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .features-cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }
}

