:root {
  --bg: #f4efe8;
  --surface: rgba(255, 252, 247, 0.78);
  --surface-strong: rgba(255, 252, 247, 0.9);
  --surface-deep: rgba(26, 31, 34, 0.75);
  --ink: #1f2a30;
  --ink-soft: #48545b;
  --clay: #9b5b4f;
  --sage: #6e7e68;
  --steel: #7f8e99;
  --sand: #dcccb7;
  --line: rgba(31, 42, 48, 0.12);
  --shadow: 0 20px 60px rgba(31, 42, 48, 0.12);
  --radius: 18px;
  --hero-height: 100svh;
  --content-max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Public Sans", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(156, 91, 79, 0.15), transparent 28rem),
    radial-gradient(circle at bottom right, rgba(110, 126, 104, 0.18), transparent 26rem),
    linear-gradient(180deg, #f8f3eb 0%, #efe7db 100%);
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  font: inherit;
}

.ambient {
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  filter: blur(30px);
  opacity: 0.5;
}

.ambient-a {
  top: 12vh;
  right: 10vw;
  width: 18rem;
  height: 18rem;
  background: rgba(156, 91, 79, 0.22);
  border-radius: 50%;
}

.ambient-b {
  bottom: 12vh;
  left: 20vw;
  width: 14rem;
  height: 14rem;
  background: rgba(127, 142, 153, 0.18);
  border-radius: 50%;
}

.rail,
.topbar {
  position: fixed;
  z-index: 15;
}

.rail {
  top: 1.5rem;
  left: 1.5rem;
  width: 13rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 22px;
  backdrop-filter: blur(20px);
  background: rgba(248, 243, 235, 0.72);
  box-shadow: var(--shadow);
}

.rail-mark {
  margin-bottom: 1rem;
  color: var(--clay);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.rail nav {
  display: grid;
  gap: 0.35rem;
}

.rail-link {
  padding: 0.65rem 0.75rem;
  display: grid;
  gap: 0.1rem;
  text-align: left;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.rail-link span {
  font-size: 0.76rem;
  color: var(--clay);
}

.rail-link strong {
  font-size: 0.92rem;
  font-weight: 600;
}

.rail-link:hover,
.rail-link.is-active {
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  transform: translateX(2px);
}

.topbar {
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  background: rgba(248, 243, 235, 0.72);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

#section-label {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.ghost-button,
.primary-button {
  padding: 0.8rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.ghost-button {
  border: 1px solid rgba(31, 42, 48, 0.12);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
}

.primary-button {
  border: 0;
  background: var(--clay);
  color: #fff;
  box-shadow: 0 14px 32px rgba(156, 91, 79, 0.28);
}

.ghost-button:hover,
.primary-button:hover {
  transform: translateY(-1px);
}

main {
  position: relative;
  z-index: 1;
  padding: 1.5rem 1.5rem 4rem 17rem;
}

.panel {
  position: relative;
  max-width: calc(var(--content-max) + 0px);
  min-height: min(88svh, 980px);
  margin: 0 auto 1.3rem;
  padding: 2rem;
  overflow: clip;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.18));
  box-shadow: var(--shadow);
}

.view-panel {
  scroll-margin-top: 6rem;
}

.eyebrow,
.card-label {
  margin: 0;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1,
h2 {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-weight: 600;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.96;
}

h2 {
  max-width: 14ch;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.02;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.2;
}

p,
li {
  font-size: 1rem;
  line-height: 1.6;
}

.lede {
  max-width: 39rem;
  font-size: 1.16rem;
  color: rgba(255, 255, 255, 0.88);
}

.small-note {
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.hero-panel,
.closing-panel {
  min-height: var(--hero-height);
}

.hero-panel {
  display: grid;
  align-items: end;
}

.hero-media,
.hero-overlay,
.closing-media,
.closing-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img,
.closing-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(120deg, rgba(15, 17, 18, 0.78) 0%, rgba(15, 17, 18, 0.42) 38%, rgba(15, 17, 18, 0.16) 62%),
    linear-gradient(180deg, rgba(14, 16, 17, 0.06), rgba(14, 16, 17, 0.72));
}

.closing-overlay {
  background:
    linear-gradient(120deg, rgba(14, 16, 17, 0.84) 0%, rgba(14, 16, 17, 0.46) 42%, rgba(14, 16, 17, 0.18) 72%),
    linear-gradient(180deg, rgba(12, 14, 15, 0.12), rgba(12, 14, 15, 0.78));
}

.hero-copy,
.meeting-card,
.closing-copy {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 56rem;
  padding: 1rem;
  color: #fff;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.meeting-card {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  width: min(23rem, calc(100% - 4rem));
  padding: 1.3rem 1.35rem;
  border-radius: 24px;
  background: rgba(252, 248, 242, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: var(--shadow);
}

.meeting-card h2 {
  max-width: 100%;
  margin-top: 0.6rem;
  font-size: 2rem;
}

.meeting-quote {
  margin-top: 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--clay);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.45;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.8rem;
}

.section-head h2 {
  max-width: 17ch;
}

.challenge-layout,
.gap-layout,
.opportunity-layout,
.journey-layout,
.pilot-layout,
.partners-layout,
.metrics-layout,
.guardrail-layout {
  display: grid;
  gap: 1.2rem;
}

.challenge-switches,
.segmented,
.partner-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.chip-button,
.segment-button,
.partner-tab,
.journey-node,
.flow-step-button {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.chip-button:hover,
.segment-button:hover,
.partner-tab:hover,
.journey-node:hover,
.flow-step-button:hover,
.chip-button.is-active,
.segment-button.is-active,
.partner-tab.is-active,
.journey-node.is-active,
.flow-step-button.is-active {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(156, 91, 79, 0.28);
  transform: translateY(-1px);
}

.flow-step-button.is-critical {
  color: var(--clay);
}

.challenge-stage,
.opportunity-layout,
.gap-layout,
.partners-layout {
  grid-template-columns: 0.92fr 1.08fr;
}

.challenge-stage {
  display: grid;
  gap: 1.2rem;
}

.insight-card,
.thesis-card,
.detail-surface,
.pilot-card,
.metric-card,
.summary-block {
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  backdrop-filter: blur(14px);
}

.insight-card.large {
  min-height: 100%;
}

.bullet-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.bullet-list li + li {
  margin-top: 0.45rem;
}

.flow-steps,
.journey-track {
  display: grid;
  gap: 0.75rem;
}

.journey-layout {
  grid-template-columns: 0.92fr 1.08fr;
  align-items: start;
}

.gap-meter {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.55rem;
  margin-top: 1.4rem;
}

.gap-meter span {
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(31, 42, 48, 0.08);
}

.gap-meter .critical {
  background: var(--clay);
}

.image-stack {
  display: grid;
  gap: 0.9rem;
}

.image-stack img {
  width: 100%;
  min-height: 26rem;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.image-caption {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
}

.interactive-surface {
  display: grid;
  gap: 1rem;
}

.journey-track {
  grid-template-columns: repeat(6, 1fr);
}

.journey-node {
  border-radius: 20px;
}

.journey-story {
  display: grid;
  gap: 1rem;
}

.journey-visuals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.journey-shot {
  min-height: 16rem;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.journey-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pilot-layout {
  grid-template-columns: 0.84fr 1.16fr;
}

.pilot-card {
  display: grid;
  gap: 1rem;
}

.pilot-card.wide {
  align-content: start;
}

.pilot-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

#cohort-range {
  width: 100%;
  accent-color: var(--clay);
}

.range-scale {
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.module-grid,
.metric-grid,
.next-step-grid,
.summary-grid {
  display: grid;
  gap: 0.9rem;
}

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

.module-card,
.metric-card,
.next-step-grid article {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.module-card strong,
.metric-card strong {
  display: block;
  margin-bottom: 0.25rem;
}

.metrics-layout {
  gap: 1.1rem;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
  min-height: 9.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-bar {
  width: 100%;
  height: 0.7rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(31, 42, 48, 0.08);
}

.metric-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--clay), var(--sage));
  transform-origin: left center;
  transition: width 280ms ease;
}

.closing-panel {
  display: flex;
  align-items: stretch;
}

.closing-copy {
  position: relative;
  max-width: 72rem;
  padding: 2.5rem 1rem 1rem;
  color: #fff;
}

.closing-copy h2 {
  max-width: 12ch;
}

.next-step-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.next-step-grid article {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

.next-step-grid span {
  display: inline-flex;
  margin-bottom: 0.8rem;
  color: var(--sand);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.8rem;
}

.closing-line {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.summary-body {
  padding: 2rem;
}

.summary-sheet {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 30px;
  background: rgba(255, 252, 247, 0.86);
  box-shadow: var(--shadow);
}

.summary-header {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
}

.summary-header h1 {
  max-width: 14ch;
  color: var(--ink);
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.summary-header .lede {
  color: var(--ink-soft);
}

.summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.summary-band {
  margin-top: 1.4rem;
}

body.meeting-mode {
  overflow: hidden;
}

body.meeting-mode main {
  height: 100svh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
}

body.meeting-mode .view-panel {
  min-height: calc(100svh - 3rem);
  scroll-snap-align: start;
}

body.meeting-mode #meeting-toggle {
  background: var(--clay);
  border-color: transparent;
  color: #fff;
}

@media (max-width: 1180px) {
  .rail {
    display: none;
  }

  main {
    padding-left: 1.5rem;
  }

  .challenge-stage,
  .opportunity-layout,
  .gap-layout,
  .partners-layout,
  .pilot-layout,
  .journey-layout,
  .journey-track,
  .metric-grid,
  .next-step-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    left: 1.5rem;
    right: 1.5rem;
    justify-content: space-between;
  }
}

@media (max-width: 780px) {
  .topbar {
    position: sticky;
    top: 0.9rem;
    margin-bottom: 0.9rem;
  }

  main {
    padding: 0 0.9rem 3rem;
  }

  .panel {
    min-height: auto;
    padding: 1.1rem;
    border-radius: 26px;
  }

  .hero-panel,
  .closing-panel {
    min-height: auto;
  }

  .hero-copy,
  .closing-copy {
    padding: 1rem 0.3rem 0.3rem;
  }

  .journey-visuals {
    grid-template-columns: 1fr;
  }

  .meeting-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 1rem;
  }

  .summary-body {
    padding: 1rem;
  }

  .summary-sheet {
    padding: 1.2rem;
  }

  .summary-header {
    flex-direction: column;
  }
}
