:root {
  --paper: #e9e9e6;
  --panel: #f7f7f4;
  --ink: #171717;
  --deep: #090909;
  --muted: rgba(23, 23, 23, 0.62);
  --line: rgba(23, 23, 23, 0.11);
  --strong-line: rgba(23, 23, 23, 0.78);
  --accent: #ff6a1a;
  --moneyview: #144835;
  --soft-green: rgba(20, 72, 53, 0.1);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
  scroll-snap-type: y mandatory;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 650;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
}

a {
  color: inherit;
}

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

h1,
h2,
h3,
strong,
.eyebrow,
.toc-title,
.doc-link,
.tag-row span,
.summary-grid span,
.evidence-strip,
.metric-grid span,
.bar-row,
.problem-grid span,
.persona-row,
.journey-list span,
.journey-list strong,
.heatmap,
th,
.scorebar,
.solution-list span,
.logic-grid span,
.decision-layer span,
.flow,
.timeline span,
.metric-cards span,
.budget,
figcaption,
.button {
  font-family: var(--mono);
  letter-spacing: 0;
}

h1,
h2,
h3,
p,
figure,
blockquote {
  margin: 0;
}

p,
figcaption,
td,
li {
  color: var(--muted);
}

.wrap {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--strong-line);
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    rgba(247, 247, 244, 0.94);
  background-size: 30px 30px;
  backdrop-filter: blur(16px);
}

.accent-line {
  height: 4px;
  background: var(--accent);
}

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 148px;
  height: auto;
  flex: 0 0 auto;
}

.brand strong {
  color: var(--accent);
  font-size: clamp(1.15rem, 1.35vw, 1.55rem);
  line-height: 1.1;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.header-actions a,
.button {
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--panel);
  padding: 8px 11px;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.header-actions a:nth-child(1),
.button.secondary {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line);
}

.doc-shell {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 14px 0 56px;
}

.toc {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--strong-line);
  background: rgba(247, 247, 244, 0.9);
}

.toc-title {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.doc-link {
  min-height: 34px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  padding: 7px 9px;
  color: var(--muted);
  background: rgba(247, 247, 244, 0.78);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 850;
}

.doc-link:hover,
.doc-link.is-active {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--panel);
  box-shadow: inset 4px 0 0 var(--accent);
}

.doc-content {
  min-width: 0;
  display: grid;
  gap: 24px;
}

.hero,
.doc-section {
  position: relative;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  border: 1px solid var(--strong-line);
  background:
    linear-gradient(90deg, rgba(255, 106, 26, 0.08), transparent 34%),
    rgba(247, 247, 244, 0.96);
}

.hero {
  display: grid;
  gap: 8px;
  padding: clamp(12px, 1.5vw, 18px);
}

.overview-hero {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  gap: clamp(34px, 4.2vw, 64px);
  align-items: stretch;
  padding: 2px 8px 0;
}

.overview-card {
  width: 100%;
  height: calc(100vh - 108px);
  min-height: 720px;
  max-height: 860px;
  grid-template-rows: auto auto;
  align-content: space-between;
  padding: clamp(12px, 1.4vw, 18px);
  margin-bottom: 44px;
  overflow: visible;
}

.overview-card .hero-visual img {
  height: clamp(260px, 30vw, 360px);
  max-height: 360px;
  object-fit: cover;
  object-position: center top;
}

.hero-copy {
  min-width: 0;
  display: grid;
  order: 2;
  align-content: center;
  gap: 14px;
}

.hero-logo {
  width: clamp(150px, 15vw, 220px);
  height: auto;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

h1 {
  color: var(--deep);
  max-width: 100%;
  font-size: clamp(2.6rem, 3.55vw, 4rem);
  line-height: 0.9;
  font-weight: 950;
}

h1 span {
  display: block;
}

.lead {
  max-width: 800px;
  color: var(--muted);
  font-size: clamp(1rem, 1.18vw, 1.18rem);
  line-height: 1.55;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 7px 9px;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-visual,
.image-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--strong-line);
  background: var(--panel);
  box-shadow: 10px 10px 0 rgba(20, 72, 53, 0.14);
}

.hero-visual {
  order: 1;
  width: min(100%, 420px);
  justify-self: start;
  align-self: stretch;
}

.generated-hero-visual {
  width: min(100%, 520px);
  background: #f4f0ff;
}

.hero-visual img {
  width: 100%;
  min-height: 0;
  height: clamp(240px, 26vw, 320px);
  max-height: 320px;
  object-fit: contain;
  background: #fff;
}

.overview-card .generated-hero-visual img {
  height: clamp(270px, 30vw, 380px);
  max-height: 380px;
  object-fit: contain;
  object-position: center;
  background: #f4f0ff;
}

figcaption {
  border-top: 1px solid var(--line);
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 850;
  text-transform: uppercase;
}

.doc-section {
  scroll-margin-top: 0;
  height: calc(100vh - 108px);
  min-height: 720px;
  max-height: 860px;
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  align-content: start;
  gap: 18px;
  overflow: visible;
}

.section-arrow {
  position: absolute;
  left: 50%;
  z-index: 80;
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--accent);
  background: rgba(247, 247, 244, 0.42);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 1.55rem;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow:
    0 0 0 6px rgba(247, 247, 244, 0.62),
    6px 6px 0 rgba(255, 106, 26, 0.1);
  transform: translateX(-50%);
  animation: arrowFloat 1.35s ease-in-out infinite;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.next-section-button {
  bottom: 22px;
}

.prev-section-button {
  top: -12px;
}

.is-snap-active .section-arrow {
  opacity: 1;
  pointer-events: auto;
}

.section-arrow:hover {
  background: var(--ink);
  color: var(--panel);
  box-shadow:
    0 0 0 6px rgba(247, 247, 244, 0.92),
    8px 8px 0 rgba(255, 106, 26, 0.18);
  transform: translateX(-50%) translateY(-3px);
}

.section-arrow.is-rotating {
  animation: arrowSpin 520ms ease, arrowFloat 1.35s ease-in-out infinite;
}

.doc-section h2 {
  max-width: 920px;
  font-size: clamp(2rem, 3.8vw, 4.3rem);
  line-height: 0.96;
  font-weight: 950;
}

.doc-section h3 {
  margin-top: 10px;
  font-size: clamp(1.25rem, 1.6vw, 1.7rem);
  line-height: 1;
  font-weight: 950;
}

.doc-section > p,
.note {
  max-width: 940px;
  line-height: 1.52;
}

.summary-grid,
.problem-grid,
.logic-grid,
.metric-cards {
  display: grid;
  gap: 10px;
}

.summary-grid {
  grid-template-columns: repeat(3, 1fr);
}

.summary-grid div,
.problem-grid div,
.logic-grid div,
.metric-cards div,
.decision-layer .state,
.solution-list div,
.timeline div,
.evidence-strip div,
.metric-grid div {
  border: 1px solid var(--line);
  background: rgba(247, 247, 244, 0.82);
}

.summary-grid div,
.problem-grid div,
.logic-grid div,
.metric-cards div,
.solution-list div,
.timeline div {
  padding: 15px;
}

.summary-grid span,
.problem-grid span,
.logic-grid span,
.metric-cards span,
.solution-list span,
.timeline span,
.decision-layer span {
  display: block;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.summary-grid strong,
.logic-grid strong,
.metric-cards strong,
.solution-list strong,
.timeline strong {
  display: block;
  margin: 12px 0 8px;
  color: var(--ink);
  font-size: clamp(1.02rem, 1.3vw, 1.35rem);
  line-height: 1.08;
  font-weight: 950;
}

.summary-grid p,
.problem-grid p,
.logic-grid span,
.metric-cards p,
.solution-list p,
.timeline p,
.decision-layer p {
  line-height: 1.38;
}

.evidence-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.evidence-strip div {
  min-height: 94px;
  display: grid;
  align-content: space-between;
  padding: 14px;
  background: var(--panel);
}

.evidence-strip strong {
  color: var(--accent);
  font-size: clamp(1.7rem, 2.6vw, 3rem);
  line-height: 0.95;
}

.evidence-strip span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.roadmap-card {
  display: grid;
  min-height: 0;
  align-content: start;
  grid-template-rows: auto auto;
  gap: 6px;
  border: 1px solid var(--strong-line);
  background:
    linear-gradient(90deg, rgba(255, 106, 26, 0.05), transparent 36%),
    rgba(247, 247, 244, 0.92);
  padding: 12px 20px 12px;
}

.roadmap-head {
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
}

.roadmap-head span,
.roadmap-node {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.roadmap-head strong {
  max-width: none;
  color: var(--accent);
  font-family: var(--mono);
  font-size: clamp(1.35rem, 2vw, 2.15rem);
  line-height: 1.1;
  text-align: left;
}

.roadmap-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: minmax(82px, auto) 36px minmax(82px, auto) 36px minmax(82px, auto);
  column-gap: 30px;
  row-gap: 0;
  align-content: start;
  min-height: 330px;
  padding: 8px 36px 26px;
}

.roadmap-flow::before {
  display: none;
}

.roadmap-lines {
  position: absolute;
  inset: 8px 36px 28px;
  z-index: 0;
  width: auto;
  height: auto;
  pointer-events: none;
  overflow: hidden;
}

.roadmap-lines path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.roadmap-lines .line-underlay {
  stroke: #f7f7f4;
  stroke-width: 20;
}

.roadmap-lines .line-underlay path {
  filter: drop-shadow(0 2px 0 rgba(23, 23, 23, 0.12));
}

.roadmap-lines .line-draw {
  stroke: var(--accent);
  stroke-width: 5.5;
}

.roadmap-lines .line-draw path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: drawRoadmapLine 6.4s ease-in-out infinite;
  animation-delay: var(--delay);
}

.roadmap-step {
  position: relative;
  z-index: 1;
  min-height: 86px;
  display: grid;
  align-content: start;
  gap: 3px;
  border: 1px solid rgba(23, 23, 23, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 106, 26, 0.12), rgba(255, 106, 26, 0) 32px),
    #fbfbf6;
  box-shadow:
    9px 9px 0 rgba(23, 23, 23, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  padding: 27px 12px 10px;
  color: inherit;
  text-decoration: none;
  transform: rotate(var(--tilt, 0deg)) translateY(var(--lift, 0));
  animation: roadmapStepHighlight 6.4s ease-in-out infinite;
  animation-delay: var(--highlight-delay, 0s);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.roadmap-step::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 52px;
  height: 16px;
  display: block;
  background: rgba(255, 106, 26, 0.72);
  border: 1px solid rgba(23, 23, 23, 0.12);
  box-shadow: 3px 3px 0 rgba(23, 23, 23, 0.08);
  transform: translateX(-50%) rotate(calc(var(--tilt, 0deg) * -1));
}

.roadmap-step::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 22px;
  height: 22px;
  background:
    linear-gradient(135deg, rgba(23, 23, 23, 0.11) 0 50%, rgba(255, 255, 255, 0.62) 51% 100%);
  border-left: 1px solid rgba(23, 23, 23, 0.1);
  border-top: 1px solid rgba(23, 23, 23, 0.08);
}

.roadmap-step:hover {
  border-color: var(--ink);
  box-shadow: 10px 10px 0 rgba(255, 106, 26, 0.18);
  color: var(--ink);
  transform: rotate(0deg) translateY(calc(var(--lift, 0) - 3px));
}

.roadmap-step:hover .roadmap-node {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--panel);
}

.roadmap-step:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
  --lift: 0;
  --tilt: -0.9deg;
  --highlight-delay: 0s;
}

.roadmap-step:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
  --lift: 0;
  --tilt: 0.8deg;
  --highlight-delay: 0.85s;
}

.roadmap-step:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
  --lift: 0;
  --tilt: -0.8deg;
  --highlight-delay: 1.55s;
}

.roadmap-step:nth-child(4) {
  grid-column: 3;
  grid-row: 3;
  --lift: 0;
  --tilt: 1.2deg;
  --highlight-delay: 2.25s;
}

.roadmap-step:nth-child(5) {
  grid-column: 2;
  grid-row: 3;
  --lift: 0;
  --tilt: -1deg;
  --highlight-delay: 2.95s;
}

.roadmap-step:nth-child(6) {
  grid-column: 1;
  grid-row: 3;
  --lift: 0;
  --tilt: 0.8deg;
  --highlight-delay: 3.65s;
}

.roadmap-step:nth-child(7) {
  grid-column: 1;
  grid-row: 5;
  --lift: 0;
  --tilt: -1.1deg;
  --highlight-delay: 4.35s;
}

.roadmap-step:nth-child(8) {
  grid-column: 2;
  grid-row: 5;
  --lift: 0;
  --tilt: 1deg;
  --highlight-delay: 5.05s;
}

.roadmap-node {
  position: absolute;
  top: 8px;
  left: 12px;
  width: 38px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(23, 23, 23, 0.24);
  background: var(--accent);
  color: var(--panel);
  box-shadow: 3px 3px 0 rgba(23, 23, 23, 0.1);
  line-height: 1;
  transform: none;
}

.roadmap-step:nth-child(odd) .roadmap-node {
  bottom: auto;
}

.roadmap-step:nth-child(even) .roadmap-node {
  top: 8px;
}

.roadmap-step strong {
  margin-top: 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.08;
}

.roadmap-step small {
  position: relative;
  display: block;
  padding-left: 10px;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 750;
  line-height: 1.12;
}

.roadmap-step small::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 4px;
  height: 4px;
  background: var(--accent);
}

@keyframes drawRoadmapLine {
  0% {
    stroke-dashoffset: 1;
  }

  10%,
  78% {
    stroke-dashoffset: 0;
  }

  86%,
  100% {
    stroke-dashoffset: 1;
  }
}

@keyframes roadmapStepHighlight {
  0%,
  14%,
  100% {
    border-color: rgba(23, 23, 23, 0.16);
    box-shadow:
      9px 9px 0 rgba(23, 23, 23, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }

  6% {
    border-color: var(--accent);
    box-shadow:
      9px 9px 0 rgba(255, 106, 26, 0.18),
      0 0 0 3px rgba(255, 106, 26, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }
}

@keyframes arrowSpin {
  to {
    transform: translateX(-50%) rotate(360deg);
  }
}

@keyframes arrowFloat {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(5px);
  }
}

.context-layout,
.experience-layout,
.solution-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(340px, 1fr);
  gap: 18px;
  align-items: stretch;
}

.image-card img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.metric-grid div {
  display: grid;
  align-content: space-between;
  min-height: 145px;
  padding: 16px;
}

.metric-grid span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.metric-grid strong {
  color: var(--accent);
  font-size: clamp(1.55rem, 2.5vw, 3rem);
  line-height: 0.95;
  font-weight: 950;
}

.bar-panel,
.budget {
  display: grid;
  gap: 10px;
  border: 1px solid var(--strong-line);
  background: var(--panel);
  padding: 14px;
}

.bar-row,
.budget div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 96px;
  gap: 12px;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bar-row i,
.budget i {
  display: block;
  width: var(--size);
  height: 14px;
  border: 1px solid var(--ink);
  background: var(--ink);
}

.bar-row.active i,
.budget i {
  border-color: var(--accent);
  background: var(--accent);
}

.bar-row strong,
.budget strong {
  color: var(--ink);
  font-size: 0.9rem;
}

#context {
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto auto;
  gap: 12px;
}

#context h2 {
  max-width: 100%;
  font-size: clamp(2.35rem, 4vw, 4.4rem);
  line-height: 0.9;
}

#context > p {
  max-width: 1080px;
  color: rgba(23, 23, 23, 0.68);
  font-size: clamp(0.86rem, 0.95vw, 1rem);
  line-height: 1.36;
}

#context .context-layout {
  grid-template-columns: 1fr;
  gap: 10px;
}

#context .image-card {
  box-shadow: 8px 8px 0 rgba(20, 72, 53, 0.12);
}

#context .image-card img {
  min-height: 0;
  width: 100%;
  height: clamp(205px, 22vw, 270px);
  object-fit: contain;
  object-position: center;
  background: #dffbec;
}

#context .generated-process-visual img {
  aspect-ratio: 2 / 1;
  height: clamp(250px, 28vw, 340px);
  max-height: 340px;
  object-fit: contain;
  object-position: center;
  background: #f4f0ff;
}

#context figcaption {
  padding: 7px 10px;
  font-size: 0.58rem;
}

#context .metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

#context .metric-grid div {
  min-height: 118px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 106, 26, 0.05), transparent 42%),
    rgba(247, 247, 244, 0.9);
}

#context .metric-grid span {
  color: rgba(23, 23, 23, 0.58);
  font-size: 0.64rem;
}

#context .metric-grid strong {
  align-self: end;
  font-size: clamp(1.7rem, 2.35vw, 2.75rem);
}

#context h3 {
  margin-top: 2px;
  font-size: clamp(1.2rem, 1.45vw, 1.65rem);
}

#context .bar-panel {
  gap: 9px;
  padding: 13px 14px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--panel);
  background-size: 28px 28px;
}

#context .bar-row {
  grid-template-columns: 84px minmax(0, 1fr) 120px;
  font-size: 0.7rem;
}

#context .bar-row i {
  height: 12px;
}

#context .note {
  max-width: 100%;
  border-left: 6px solid var(--accent);
  background: rgba(247, 247, 244, 0.62);
  padding: 12px 14px;
  color: rgba(23, 23, 23, 0.66);
  line-height: 1.32;
}

blockquote {
  border-left: 8px solid var(--accent);
  background: var(--panel);
  padding: 18px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: clamp(1.15rem, 1.8vw, 2rem);
  font-weight: 900;
  line-height: 1.14;
}

#problem {
  grid-template-rows: auto auto auto auto minmax(180px, 1fr);
  gap: 16px;
}

#problem h2 {
  max-width: 100%;
  font-size: clamp(2.8rem, 4.8vw, 5.3rem);
}

#problem > p {
  max-width: 1080px;
  color: rgba(23, 23, 23, 0.66);
  font-size: clamp(0.92rem, 1vw, 1.05rem);
  line-height: 1.44;
}

#problem .problem-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

#problem .problem-grid div {
  min-height: 172px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 15px;
  background:
    linear-gradient(180deg, rgba(255, 106, 26, 0.08), transparent 48%),
    rgba(247, 247, 244, 0.88);
}

#problem .problem-grid strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: clamp(1rem, 1.14vw, 1.18rem);
  line-height: 1.05;
}

#problem .problem-diagnostic {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 12px;
}

#problem .failure-path,
#problem .impact-panel {
  border: 1px solid var(--strong-line);
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--panel);
  background-size: 26px 26px;
  min-height: 158px;
  padding: 16px;
}

#problem .failure-path > span,
#problem .impact-panel > span,
#problem blockquote span {
  display: block;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

#problem .path-steps {
  display: grid;
  grid-template-columns: 1fr 26px 1fr 26px 1fr 26px 1fr;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

#problem .path-steps strong {
  min-height: 88px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(247, 247, 244, 0.92);
  padding: 10px;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.08;
  text-align: center;
}

#problem .path-steps strong.hot {
  border-color: var(--accent);
  box-shadow: inset 0 -5px 0 rgba(255, 106, 26, 0.18);
}

#problem .path-steps i {
  height: 2px;
  background: var(--accent);
  position: relative;
}

#problem .path-steps i::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -5px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid var(--accent);
}

#problem .impact-bars {
  display: grid;
  gap: 15px;
  margin-top: 18px;
}

#problem .impact-bars div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 58px;
  gap: 10px;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

#problem .impact-bars i {
  height: 16px;
  width: var(--level);
  border: 1px solid var(--ink);
  background: var(--accent);
}

#problem .impact-bars em {
  color: var(--muted);
  font-style: normal;
}

#problem blockquote {
  display: grid;
  align-content: center;
  gap: 12px;
  margin-top: 0;
  min-height: 190px;
  padding: 24px;
  font-size: clamp(1.45rem, 2.55vw, 2.95rem);
}

.persona-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.persona-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  justify-items: center;
  min-height: 342px;
  padding: 14px 12px 12px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(247, 247, 244, 0.88), rgba(247, 247, 244, 0.88)),
    var(--grid-bg);
  box-shadow: 8px 8px 0 rgba(23, 23, 23, 0.06);
}

.persona-card.selected {
  border-color: rgba(255, 106, 26, 0.72);
  background:
    linear-gradient(rgba(255, 106, 26, 0.08), rgba(247, 247, 244, 0.92)),
    var(--grid-bg);
}

.persona-avatar {
  width: 72px;
  aspect-ratio: 1;
  border: 2px solid var(--strong-line);
  border-radius: 50%;
  background-color: var(--panel);
  object-fit: cover;
  object-position: center;
  box-shadow: 0 0 0 5px var(--panel);
}

.persona-avatar.large {
  width: 104px;
  box-shadow: 0 0 0 7px var(--panel);
}

.persona-card h3,
.selected-persona h3 {
  margin: 10px 0 3px;
  font-family: var(--mono);
  font-size: clamp(0.98rem, 1.15vw, 1.22rem);
  font-weight: 950;
  letter-spacing: 0;
  text-align: center;
}

.persona-card > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-align: center;
}

.persona-card dl {
  width: 100%;
  margin-top: 12px;
  border: 1px solid var(--line);
  background: rgba(247, 247, 244, 0.78);
}

.persona-card dl div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  min-height: 38px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
}

.persona-card dl div:last-child {
  border-bottom: 0;
}

.persona-card dt {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 950;
  text-transform: uppercase;
}

.persona-card dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.18;
}

.selected-persona {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 106, 26, 0.62);
  background:
    linear-gradient(90deg, rgba(255, 106, 26, 0.1), rgba(247, 247, 244, 0.76)),
    var(--grid-bg);
}

.selected-persona > .persona-avatar {
  justify-self: center;
}

.selected-persona span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.selected-persona h3 {
  margin: 6px 0 6px;
  font-size: clamp(1.45rem, 2.55vw, 3rem);
  text-align: left;
}

.selected-persona p {
  max-width: 900px;
  color: var(--muted);
  font-size: clamp(0.82rem, 0.92vw, 0.98rem);
  font-weight: 800;
  line-height: 1.34;
}

.journey-table {
  overflow: hidden;
  border: 1px solid var(--strong-line);
  background: rgba(247, 247, 244, 0.82);
}

.journey-row {
  display: grid;
  grid-template-columns: 1.04fr 1.38fr 0.98fr 1.45fr 1.5fr;
  min-height: 62px;
  border-bottom: 1px solid var(--line);
}

.journey-row:last-child {
  border-bottom: 0;
}

.journey-row > * {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 9px 11px;
  border-right: 1px solid var(--line);
  line-height: 1.22;
}

.journey-row > *:last-child {
  border-right: 0;
}

.journey-row.head {
  min-height: 40px;
  background: var(--ink);
}

.journey-row.head span {
  color: var(--panel);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journey-row strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 950;
}

.journey-row p {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 780;
}

.journey-row em {
  color: var(--ink);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.journey-row.peak {
  background: rgba(255, 106, 26, 0.12);
}

.journey-row.risk {
  background: rgba(255, 106, 26, 0.07);
}

.journey-row.positive {
  background:
    linear-gradient(90deg, rgba(247, 247, 244, 0.96), rgba(247, 247, 244, 0.78)),
    var(--grid-bg);
}

.journey-row.peak strong,
.journey-row.risk strong {
  color: var(--accent);
}

.heatmap {
  min-height: 112px;
  display: grid;
  grid-template-columns: 190px repeat(8, 1fr);
  gap: 8px;
  align-items: end;
  border: 1px solid var(--strong-line);
  background: var(--panel);
  padding: 14px;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.heatmap span {
  align-self: center;
  color: var(--accent);
}

.heatmap i {
  display: block;
  width: 100%;
  height: var(--level);
  min-height: 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
}

.heatmap i.peak {
  border-color: var(--accent);
  background: var(--accent);
}

table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 12px;
  text-align: left;
  font-size: 0.84rem;
}

th {
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

tr.selected {
  background: rgba(255, 106, 26, 0.11);
}

.scorebar {
  position: relative;
  min-width: 98px;
  height: 28px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(23, 23, 23, 0.04);
}

.scorebar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--score);
  background: rgba(255, 106, 26, 0.25);
}

.scorebar span {
  position: relative;
  z-index: 1;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 950;
}

#prioritization {
  gap: 12px;
}

#prioritization h2 {
  font-size: clamp(2.55rem, 4.65vw, 5.25rem);
}

.pain-discussion {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pain-discussion article {
  min-height: 158px;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 15px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(247, 247, 244, 0.9), rgba(247, 247, 244, 0.9)),
    var(--grid-bg);
}

.pain-discussion article.selected {
  border-color: rgba(255, 106, 26, 0.76);
  background:
    linear-gradient(rgba(255, 106, 26, 0.1), rgba(247, 247, 244, 0.88)),
    var(--grid-bg);
}

.pain-discussion span,
.rice-chart > span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pain-discussion strong {
  font-size: clamp(1rem, 1.35vw, 1.3rem);
  line-height: 1.08;
}

.pain-discussion p {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 780;
  line-height: 1.32;
}

.rice-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.rice-layout .table-scroll {
  min-width: 0;
}

#prioritization table {
  min-width: 0;
  table-layout: fixed;
  border: 1px solid var(--strong-line);
  background: rgba(247, 247, 244, 0.84);
}

#prioritization th,
#prioritization td {
  border-right: 1px solid var(--line);
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 900;
}

#prioritization th:last-child,
#prioritization td:last-child {
  border-right: 0;
}

#prioritization thead {
  background: var(--ink);
}

#prioritization th {
  background: var(--ink);
  color: var(--panel);
  font-size: 0.62rem;
  font-weight: 950;
}

#prioritization th:first-child,
#prioritization td:first-child {
  width: 34%;
}

#prioritization td:last-child {
  text-align: right;
}

#prioritization tr.selected td:first-child {
  color: var(--accent);
}

#prioritization .scorebar {
  min-width: 0;
  width: auto;
  height: auto;
  display: inline-flex;
  justify-content: flex-end;
  overflow: visible;
  border: 0;
  background: transparent;
}

#prioritization .scorebar::before {
  display: none;
}

#prioritization .scorebar span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.84rem;
  font-weight: 950;
}

.rice-chart {
  display: grid;
  grid-template-columns: 155px repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid var(--strong-line);
  background: var(--panel);
}

.rice-chart div {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 7px;
  align-items: center;
}

.rice-chart b {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 0.7rem;
}

.rice-chart i {
  display: block;
  height: 13px;
  border: 1px solid rgba(255, 106, 26, 0.34);
  background:
    linear-gradient(90deg, var(--accent) var(--score), transparent 0),
    rgba(255, 106, 26, 0.08);
}

.rice-chart em {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 950;
}

.rice-chart p {
  grid-column: 1 / -1;
  margin-top: 0;
  padding: 9px 12px;
  border-left: 5px solid var(--accent);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 820;
  line-height: 1.28;
  background: rgba(255, 106, 26, 0.06);
}

#recommendation {
  gap: 10px;
}

#recommendation h2 {
  font-size: clamp(2.35rem, 4.3vw, 5rem);
}

#recommendation > p {
  font-size: clamp(0.84rem, 0.92vw, 0.98rem);
  line-height: 1.36;
}

.idea-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.idea-column {
  min-height: 288px;
  display: grid;
  gap: 7px;
  align-content: start;
  padding: 11px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(247, 247, 244, 0.82), rgba(247, 247, 244, 0.82)),
    var(--grid-bg);
}

.idea-column h3 {
  margin: 0 0 4px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255, 106, 26, 0.26);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.idea-column article {
  position: relative;
  min-height: 38px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 106, 26, 0.2);
  border-radius: 8px;
  background: rgba(247, 247, 244, 0.78);
}

.idea-column article::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -22px;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 106, 26, 0.24);
  border-radius: 50%;
  background: rgba(255, 106, 26, 0.05);
}

.idea-column article span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 950;
}

.idea-column article strong {
  color: var(--ink);
  font-size: clamp(0.74rem, 0.78vw, 0.86rem);
  line-height: 1.08;
}

.idea-column article p {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 820;
  line-height: 1.2;
}

.idea-column.moonshot {
  background:
    linear-gradient(rgba(247, 247, 244, 0.7), rgba(247, 247, 244, 0.88)),
    var(--grid-bg);
}

.matrix {
  position: relative;
  min-height: 330px;
  border: 1px solid var(--strong-line);
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--panel);
  background-size: 28px 28px;
}

.matrix::before,
.matrix::after {
  content: "";
  position: absolute;
  background: var(--strong-line);
}

.matrix::before {
  left: 46px;
  right: 24px;
  bottom: 44px;
  height: 2px;
}

.matrix::after {
  left: 46px;
  top: 24px;
  bottom: 44px;
  width: 2px;
}

.matrix .axis {
  position: absolute;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.matrix .y {
  left: 13px;
  top: 22px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.matrix .x {
  right: 24px;
  bottom: 13px;
}

.matrix b {
  position: absolute;
  z-index: 1;
  min-width: 78px;
  min-height: 34px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid var(--ink);
  background: var(--panel);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.matrix b.selected {
  background: var(--ink);
  color: var(--panel);
  box-shadow: 0 0 0 5px rgba(255, 106, 26, 0.18);
}

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

#recommendation > h3 {
  margin-top: 0;
  font-size: clamp(1rem, 1.4vw, 1.28rem);
}

.solution-rice {
  border: 1px solid var(--strong-line);
  background: rgba(247, 247, 244, 0.84);
}

.solution-rice-row {
  display: grid;
  grid-template-columns: minmax(230px, 1.9fr) repeat(4, 0.55fr) 0.75fr;
  min-height: 40px;
  border-bottom: 1px solid var(--line);
}

.solution-rice-row:last-child {
  border-bottom: 0;
}

.solution-rice-row > * {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-right: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 900;
}

.solution-rice-row > *:last-child {
  border-right: 0;
}

.solution-rice-row.head {
  min-height: 34px;
  background: var(--ink);
}

.solution-rice-row.head span {
  color: var(--panel);
  font-size: 0.62rem;
  font-weight: 950;
  text-transform: uppercase;
}

.solution-rice-row strong {
  color: var(--ink);
}

.solution-rice-row span {
  color: var(--muted);
}

.solution-rice-row b {
  justify-content: flex-end;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 950;
}

.solution-rice-row.selected {
  background: rgba(255, 106, 26, 0.12);
}

.solution-rice-row.selected strong {
  color: var(--accent);
}

.solution-rice-row.selected b,
#prioritization tr.selected .scorebar span {
  color: var(--accent);
}

#recommendation .logic-grid {
  gap: 8px;
}

#recommendation .logic-grid div {
  padding: 11px;
}

#recommendation .logic-grid strong {
  margin: 0 0 7px;
  font-size: 0.86rem;
}

#recommendation .logic-grid span {
  font-size: 0.66rem;
  line-height: 1.22;
}

.logic-grid div {
  min-height: 128px;
}

.experience-layout {
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1fr);
}

.decision-layer {
  display: grid;
  gap: 10px;
}

.decision-layer .state {
  padding: 15px;
}

.decision-layer .state.eligible {
  border-color: var(--ink);
  background: var(--ink);
}

.decision-layer strong {
  display: block;
  margin: 9px 0 7px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: clamp(1.1rem, 1.5vw, 1.55rem);
  line-height: 1.05;
  font-weight: 950;
}

.decision-layer .eligible strong {
  color: var(--panel);
}

.decision-layer .eligible p {
  color: rgba(247, 247, 244, 0.76);
}

#experience {
  gap: 10px;
}

#experience h2 {
  font-size: clamp(2.25rem, 4.15vw, 4.85rem);
}

#experience > p {
  font-size: clamp(0.84rem, 0.92vw, 0.98rem);
  line-height: 1.34;
}

.solution-discussion {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
  grid-template-rows: auto auto;
  gap: 10px;
}

.selected-solution-card,
.solution-process,
.solution-criteria article {
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(247, 247, 244, 0.86), rgba(247, 247, 244, 0.86)),
    var(--grid-bg);
}

.selected-solution-card {
  min-height: 335px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border-color: var(--accent);
  background:
    linear-gradient(rgba(255, 106, 26, 0.1), rgba(247, 247, 244, 0.88)),
    var(--grid-bg);
}

.selected-solution-card span,
.solution-process > span,
.solution-criteria span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.selected-solution-card strong {
  max-width: 520px;
  font-size: clamp(1.25rem, 2.05vw, 2.18rem);
  line-height: 1.02;
}

.selected-solution-card p {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 820;
  line-height: 1.32;
}

.selected-solution-card div {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.selected-solution-card b {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.selected-solution-card em {
  display: inline-flex;
  width: 100%;
  padding: 5px 9px;
  border: 1px solid rgba(255, 106, 26, 0.34);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 950;
}

.solution-process {
  min-height: 335px;
  padding: 14px;
}

.solution-process ol {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.solution-process li {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 8px;
  border: 1px solid var(--line);
  background: rgba(247, 247, 244, 0.72);
}

.solution-process b,
.solution-criteria strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 950;
}

.solution-process p,
.solution-criteria p {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.22;
}

.solution-process small {
  grid-column: 2;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1.2;
}

.solution-criteria {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.solution-criteria article {
  min-height: 185px;
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 11px;
}

.solution-criteria ul {
  display: grid;
  gap: 4px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.solution-criteria li {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 900;
}

.solution-criteria li::before {
  content: "■";
  margin-right: 6px;
  color: var(--accent);
  font-size: 0.5rem;
}

.flow {
  display: grid;
  grid-template-columns: 1fr 34px 1fr 34px 1fr 34px 1fr;
  align-items: center;
}

.flow div {
  min-height: 118px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 14px;
  color: var(--ink);
  text-align: center;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.flow div.selected {
  background: var(--ink);
  color: var(--panel);
  box-shadow: inset 0 -7px 0 var(--accent);
}

.flow i {
  height: 2px;
  background: var(--strong-line);
  position: relative;
}

.flow i::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -5px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid var(--strong-line);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.timeline div {
  min-height: 190px;
  border-top: 7px solid var(--ink);
}

.timeline div:nth-child(4) {
  border-top-color: var(--accent);
}

.timeline strong {
  color: var(--accent);
  font-size: clamp(1.3rem, 1.85vw, 2.1rem);
}

#implementation {
  gap: 12px;
}

#implementation h2 {
  font-size: clamp(2.45rem, 4.7vw, 5.45rem);
}

#implementation > p {
  font-size: clamp(0.84rem, 0.92vw, 0.98rem);
  line-height: 1.35;
}

.implementation-architecture {
  display: grid;
  grid-template-columns: 1fr 28px 1fr 28px 1fr 28px 1fr;
  align-items: stretch;
}

.implementation-architecture > div {
  min-height: 132px;
  display: grid;
  gap: 7px;
  align-content: start;
  padding: 13px;
  border: 1px solid var(--line);
  background: rgba(247, 247, 244, 0.84);
}

.implementation-architecture > div.selected {
  border-color: var(--accent);
  background:
    linear-gradient(rgba(255, 106, 26, 0.12), rgba(247, 247, 244, 0.88)),
    var(--grid-bg);
}

.implementation-architecture span,
.implementation-grid span,
.implementation-timeline span,
.launch-gates > span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 950;
  text-transform: uppercase;
}

.implementation-architecture strong,
.implementation-grid strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.08;
}

.implementation-architecture p,
.implementation-grid p,
.implementation-timeline p,
.launch-gates p {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.22;
}

.implementation-architecture i {
  align-self: center;
  height: 2px;
  background: var(--strong-line);
  position: relative;
}

.implementation-architecture i::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -5px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid var(--strong-line);
}

.implementation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.implementation-grid article {
  min-height: 128px;
  display: grid;
  gap: 7px;
  align-content: start;
  padding: 12px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(247, 247, 244, 0.82), rgba(247, 247, 244, 0.82)),
    var(--grid-bg);
}

.implementation-grid b {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.66rem;
}

.implementation-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.36fr);
  gap: 10px;
}

.implementation-timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.implementation-timeline div {
  min-height: 210px;
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 11px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--ink);
  background: rgba(247, 247, 244, 0.84);
}

.implementation-timeline div:nth-child(4) {
  border-top-color: var(--accent);
}

.implementation-timeline strong {
  color: var(--accent);
  font-family: var(--mono);
  font-size: clamp(1.25rem, 1.55vw, 1.75rem);
  line-height: 1;
}

.launch-gates {
  min-height: 210px;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 12px;
  border: 1px solid var(--strong-line);
  background: rgba(255, 106, 26, 0.07);
}

.launch-gates b {
  color: var(--ink);
  font-family: var(--mono);
}

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

.metric-cards div {
  min-height: 132px;
}

.metric-cards strong {
  color: var(--accent);
  font-size: clamp(1.35rem, 2.1vw, 2.5rem);
}

.north-star {
  display: grid;
  grid-template-columns: minmax(140px, 0.3fr) minmax(0, 0.72fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--accent);
  background:
    linear-gradient(90deg, rgba(255, 106, 26, 0.13), rgba(247, 247, 244, 0.88)),
    var(--grid-bg);
}

.north-star span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.north-star strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: clamp(1.08rem, 1.55vw, 1.72rem);
  line-height: 1.05;
}

.north-star p {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 820;
  line-height: 1.35;
}

.metrics-dashboard {
  overflow: hidden;
  border: 1px solid var(--strong-line);
  background: rgba(247, 247, 244, 0.86);
}

.metrics-row {
  display: grid;
  grid-template-columns: 0.78fr 1.4fr 0.52fr 1.22fr 1.18fr;
  min-height: 98px;
  border-bottom: 1px solid var(--line);
}

.metrics-row:last-child {
  border-bottom: 0;
}

.metrics-row > * {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 11px;
  border-right: 1px solid var(--line);
}

.metrics-row > *:last-child {
  border-right: 0;
}

.metrics-row.head {
  min-height: 38px;
  background: var(--ink);
}

.metrics-row.head span {
  color: var(--panel);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 950;
  text-transform: uppercase;
}

.metrics-row strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.08;
}

.metrics-row b {
  justify-content: flex-end;
  color: var(--accent);
  font-family: var(--mono);
  font-size: clamp(1rem, 1.45vw, 1.5rem);
  font-weight: 950;
}

.metrics-row p {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.26;
}

#gtm {
  gap: 14px;
}

#gtm h2 {
  font-size: clamp(3.2rem, 6vw, 7.2rem);
}

.gtm-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.gtm-grid article {
  min-height: 176px;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 15px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(247, 247, 244, 0.84), rgba(247, 247, 244, 0.84)),
    var(--grid-bg);
}

.gtm-grid span,
.gtm-motion span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.gtm-grid strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: clamp(1rem, 1.35vw, 1.35rem);
  line-height: 1.08;
}

.gtm-grid p,
.gtm-motion p {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.32;
}

.gtm-motion {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.gtm-motion div {
  min-height: 148px;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--ink);
  background: rgba(247, 247, 244, 0.84);
}

.gtm-motion div:nth-child(3) {
  border-top-color: var(--accent);
}

.gtm-motion strong {
  color: var(--accent);
  font-family: var(--mono);
  font-size: clamp(1.25rem, 1.7vw, 2rem);
}

#final-summary {
  gap: 18px;
}

#final-summary h2 {
  font-size: clamp(3.2rem, 6vw, 7.2rem);
}

.summary-final-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.summary-final-grid article {
  min-height: 230px;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(247, 247, 244, 0.84), rgba(247, 247, 244, 0.84)),
    var(--grid-bg);
}

.summary-final-grid span,
.summary-final-callout span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.summary-final-grid strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: clamp(1rem, 1.35vw, 1.38rem);
  line-height: 1.08;
}

.summary-final-grid p,
.summary-final-callout p {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 820;
  line-height: 1.35;
}

.summary-final-callout {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--strong-line);
  border-left: 8px solid var(--accent);
  background: rgba(255, 106, 26, 0.07);
}

.summary-final-callout strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: clamp(1.5rem, 2.6vw, 3rem);
  line-height: 1.05;
}

.source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 1040px) {
  .doc-shell {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    display: flex;
    overflow-x: auto;
  }

  .toc-title {
    display: none;
  }

  .doc-link {
    flex: 0 0 auto;
  }

  .context-layout,
  .experience-layout,
  .solution-layout {
    grid-template-columns: 1fr;
  }

  .summary-grid,
  .problem-grid,
  .logic-grid,
  .metric-cards,
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .roadmap-flow {
    grid-template-columns: repeat(2, 1fr);
  }

  .roadmap-flow::before {
    display: none;
  }

  .roadmap-lines {
    display: none;
  }

  html {
    scroll-snap-type: none;
  }

  .next-section-button {
    display: none;
  }

  .roadmap-step,
  .roadmap-step:nth-child(1),
  .roadmap-step:nth-child(2),
  .roadmap-step:nth-child(3),
  .roadmap-step:nth-child(4),
  .roadmap-step:nth-child(odd),
  .roadmap-step:nth-child(even),
  .roadmap-step:nth-child(5),
  .roadmap-step:nth-child(6),
  .roadmap-step:nth-child(7),
  .roadmap-step:nth-child(8) {
    grid-column: auto;
    grid-row: auto;
    margin: 0;
    border-left: 4px solid var(--accent);
    background: var(--panel);
    padding: 10px;
    transform: none;
  }

  .roadmap-step::before {
    display: none;
  }

  .roadmap-step:hover {
    transform: translateY(-2px);
  }

  .roadmap-node {
    position: static;
    width: 42px;
    height: 24px;
    margin-bottom: 4px;
  }

  .roadmap-step:nth-child(odd) .roadmap-node,
  .roadmap-step:nth-child(even) .roadmap-node {
    left: auto;
    right: auto;
  }

  .flow {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .flow i {
    width: 2px;
    height: 28px;
    margin: 0 auto;
  }

  .flow i::after {
    right: -5px;
    top: auto;
    bottom: -1px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--strong-line);
    border-bottom: 0;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(100% - 22px, 1220px);
  }

  .site-header {
    position: static;
  }

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

  .brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .doc-section {
    padding: 18px;
  }

  .overview-hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-self: start;
    width: min(100%, 340px);
  }

  .roadmap-head {
    align-items: start;
    flex-direction: column;
  }

  .roadmap-head strong {
    text-align: left;
  }

  .roadmap-flow {
    grid-template-columns: 1fr;
  }

  .roadmap-flow::before {
    display: none;
  }

  .roadmap-lines {
    display: none;
  }


  h1 {
    font-size: clamp(2.75rem, 14vw, 4.4rem);
  }

  .doc-section h2 {
    font-size: clamp(1.95rem, 10vw, 3.15rem);
  }

  .summary-grid,
  .problem-grid,
  .logic-grid,
  .metric-cards,
  .timeline,
  .evidence-strip,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .journey-list div,
  .solution-list div,
  .bar-row,
  .budget div {
    grid-template-columns: 1fr;
  }

  .heatmap {
    min-width: 560px;
  }

  .journey-section {
    overflow-x: auto;
  }

  .matrix {
    min-height: 270px;
  }

  .matrix b {
    min-width: 62px;
    font-size: 0.62rem;
  }
}

@media (max-width: 1040px) {
  html {
    scroll-padding-top: 0;
    scroll-snap-type: none;
  }

  body {
    overflow-x: hidden;
    background-size: 34px 34px;
  }

  .wrap {
    width: min(100% - 28px, 1220px);
  }

  .site-header {
    position: sticky;
  }

  .topbar {
    min-height: 62px;
  }

  .brand strong {
    font-size: clamp(1.25rem, 4vw, 1.7rem);
  }

  .doc-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 12px 0 34px;
  }

  .toc {
    position: sticky;
    top: 66px;
    z-index: 22;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 9px;
    border-color: rgba(23, 23, 23, 0.28);
    background: rgba(247, 247, 244, 0.94);
    backdrop-filter: blur(14px);
    scrollbar-width: none;
  }

  .toc::-webkit-scrollbar {
    display: none;
  }

  .toc-title {
    display: none;
  }

  .doc-link {
    min-height: 32px;
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.68rem;
  }

  .doc-content {
    gap: 18px;
  }

  .overview-card,
  .doc-section {
    height: auto;
    min-height: auto;
    max-height: none;
    margin-bottom: 0;
    overflow: visible;
    scroll-snap-align: none;
  }

  .overview-card {
    padding: clamp(14px, 3vw, 22px);
    align-content: start;
    gap: 14px;
  }

  .doc-section {
    display: grid;
    gap: clamp(12px, 2.5vw, 18px);
    padding: clamp(18px, 3.3vw, 30px);
  }

  .section-arrow {
    display: none;
  }

  .overview-hero {
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
    gap: 22px;
    padding: 0;
  }

  .hero-visual {
    width: 100%;
  }

  .overview-card .hero-visual img {
    height: clamp(240px, 34vw, 330px);
    max-height: none;
  }

  h1,
  .doc-section h2,
  #context h2,
  #problem h2,
  #prioritization h2,
  #recommendation h2,
  #experience h2,
  #implementation h2,
  #gtm h2,
  #final-summary h2 {
    font-size: clamp(2.4rem, 8vw, 4.4rem);
    line-height: 0.94;
    overflow-wrap: anywhere;
  }

  .roadmap-card {
    padding: 14px;
  }

  .roadmap-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    min-height: auto;
    gap: 14px;
    padding: 12px 0 2px;
  }

  .roadmap-lines {
    display: none;
  }

  .roadmap-step,
  .roadmap-step:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    min-height: 108px;
    transform: none;
  }

  .context-layout,
  #context .context-layout,
  #problem .problem-diagnostic,
  .solution-discussion,
  .implementation-bottom,
  .selected-persona {
    grid-template-columns: 1fr;
  }

  #context .metric-grid,
  #problem .problem-grid,
  .persona-grid,
  .pain-discussion,
  .idea-columns,
  .implementation-grid,
  .gtm-grid,
  .gtm-motion,
  .summary-final-grid,
  .solution-criteria {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #context .metric-grid div,
  .metric-grid div {
    min-height: 112px;
  }

  #context .bar-row,
  .bar-row,
  .budget div {
    grid-template-columns: 78px minmax(0, 1fr) 104px;
  }

  #problem .path-steps {
    grid-template-columns: 1fr;
  }

  #problem .path-steps i {
    width: 2px;
    height: 22px;
    margin: 0 auto;
  }

  #problem .path-steps i::after {
    right: -5px;
    top: auto;
    bottom: -1px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--accent);
    border-bottom: 0;
  }

  #problem .impact-bars div {
    grid-template-columns: 138px minmax(0, 1fr) 56px;
  }

  .persona-card {
    min-height: auto;
  }

  .journey-table,
  .metrics-dashboard,
  .solution-rice {
    overflow: visible;
  }

  .journey-row {
    grid-template-columns: 1fr;
    min-height: 0;
    border: 1px solid var(--line);
    margin-bottom: 10px;
    background: rgba(247, 247, 244, 0.86);
  }

  .journey-row.head,
  .metrics-row.head,
  .solution-rice-row.head {
    display: none;
  }

  .journey-row > *,
  .metrics-row > *,
  .solution-rice-row > * {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .journey-row > *:last-child,
  .metrics-row > *:last-child,
  .solution-rice-row > *:last-child {
    border-bottom: 0;
  }

  .rice-chart {
    grid-template-columns: 1fr;
  }

  .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #prioritization table {
    min-width: 680px;
  }

  .solution-rice-row {
    grid-template-columns: minmax(0, 1.3fr) repeat(5, minmax(50px, 0.45fr));
    overflow-x: auto;
  }

  .solution-rice-row > * {
    min-width: 0;
  }

  .solution-process li {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .implementation-architecture {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .implementation-architecture i {
    width: 2px;
    height: 26px;
    margin: 0 auto;
  }

  .implementation-architecture i::after {
    right: -5px;
    top: auto;
    bottom: -1px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--strong-line);
    border-bottom: 0;
  }

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

  .implementation-timeline div {
    min-height: 160px;
  }

  .north-star {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .metrics-row {
    grid-template-columns: minmax(130px, 0.8fr) minmax(0, 1.1fr) minmax(80px, 0.55fr) minmax(0, 1fr) minmax(0, 1fr);
    overflow-x: auto;
  }

  .summary-final-grid article,
  .gtm-grid article {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(100% - 18px, 1220px);
  }

  .site-header {
    position: sticky;
  }

  .topbar {
    min-height: 56px;
    padding: 8px 0;
  }

  .doc-shell {
    padding-top: 8px;
  }

  .toc {
    top: 58px;
    margin-inline: -9px;
    border-left: 0;
    border-right: 0;
  }

  .hero,
  .doc-section {
    padding: 16px;
  }

  .overview-hero {
    grid-template-columns: 1fr;
  }

  .overview-card .hero-visual img {
    height: clamp(230px, 72vw, 360px);
  }

  .hero-copy {
    align-content: start;
  }

  h1,
  .doc-section h2,
  #context h2,
  #problem h2,
  #prioritization h2,
  #recommendation h2,
  #experience h2,
  #implementation h2,
  #gtm h2,
  #final-summary h2 {
    font-size: clamp(2.25rem, 13vw, 3.65rem);
  }

  .lead,
  .doc-section > p,
  #context > p,
  #problem > p,
  #recommendation > p,
  #experience > p,
  #implementation > p {
    font-size: 0.9rem;
    line-height: 1.42;
  }

  .roadmap-flow,
  #context .metric-grid,
  #problem .problem-grid,
  .persona-grid,
  .pain-discussion,
  .idea-columns,
  .implementation-grid,
  .implementation-timeline,
  .gtm-grid,
  .gtm-motion,
  .summary-final-grid,
  .solution-criteria,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .roadmap-step,
  .roadmap-step:nth-child(n) {
    min-height: auto;
  }

  #context .image-card img {
    height: clamp(210px, 54vw, 310px);
  }

  #context .bar-row,
  .bar-row,
  .budget div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .bar-row i,
  .budget i {
    max-width: 100%;
  }

  #problem .impact-bars div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  #problem .impact-bars i {
    max-width: 100%;
  }

  .selected-persona {
    text-align: left;
  }

  .selected-persona h3 {
    font-size: clamp(1.5rem, 8vw, 2.4rem);
  }

  .persona-card dl div {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .journey-row > *,
  .metrics-row > *,
  .solution-rice-row > * {
    padding: 9px 10px;
  }

  .journey-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .journey-row {
    width: max-content;
    min-width: 820px;
    grid-template-columns: 130px 190px 118px 190px 192px;
    margin-bottom: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .journey-row.head {
    display: grid;
  }

  .journey-row > * {
    display: flex;
    align-items: center;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  #prioritization table {
    min-width: 600px;
    width: 600px;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
  }

  #prioritization thead {
    display: table-header-group;
  }

  #prioritization tbody,
  #prioritization tr,
  #prioritization td {
    display: revert;
    width: auto;
  }

  #prioritization tr {
    border: 0;
    background: rgba(247, 247, 244, 0.86);
  }

  #prioritization tr.selected {
    border-color: rgba(255, 106, 26, 0.72);
  }

  #prioritization td {
    min-height: 42px;
    display: table-cell;
    border-bottom: 1px solid var(--line);
    padding: 8px;
  }

  #prioritization th:first-child,
  #prioritization td:first-child {
    width: 230px;
  }

  #prioritization th:nth-child(2),
  #prioritization td:nth-child(2),
  #prioritization th:nth-child(3),
  #prioritization td:nth-child(3),
  #prioritization th:nth-child(4),
  #prioritization td:nth-child(4),
  #prioritization th:nth-child(5),
  #prioritization td:nth-child(5) {
    width: 58px;
  }

  #prioritization th:nth-child(6),
  #prioritization td:nth-child(6) {
    width: 76px;
  }

  #prioritization td:last-child {
    border-bottom: 0;
  }

  #prioritization td::before,
  .journey-row:not(.head) > *::before {
    content: none;
  }

  /*
    Keep solution and metrics as labeled mobile cards; Journey and Pain RICE
    remain true horizontal tables on mobile.
  */
  .solution-rice-row:not(.head) > *::before,
  .metrics-row:not(.head) > *::before {
    color: var(--accent);
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  #prioritization td:nth-child(1)::before {
    content: none;
  }

  #prioritization td:nth-child(2)::before {
    content: none;
  }

  #prioritization td:nth-child(3)::before {
    content: none;
  }

  #prioritization td:nth-child(4)::before {
    content: none;
  }

  #prioritization td:nth-child(5)::before {
    content: none;
  }

  #prioritization td:nth-child(6)::before {
    content: none;
  }

  #prioritization .scorebar {
    width: 100%;
    min-width: 0;
  }

  .metrics-row {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .solution-rice {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .solution-rice-row {
    width: max-content;
    min-width: 600px;
    grid-template-columns: 256px repeat(4, 65px) 85px;
    margin-bottom: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .solution-rice-row > * {
    padding: 8px;
  }

  .solution-rice-row.head {
    display: grid;
  }

  .metrics-row:not(.head) > * {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    align-items: start;
  }

  .solution-rice-row:not(.head) > * {
    display: flex;
    align-items: center;
  }

  .solution-rice-row:not(.head) > *::before {
    content: none !important;
  }

  .solution-rice-row:not(.head) > *:nth-child(1)::before {
    content: none;
  }

  .solution-rice-row:not(.head) > *:nth-child(2)::before {
    content: none;
  }

  .solution-rice-row:not(.head) > *:nth-child(3)::before {
    content: none;
  }

  .solution-rice-row:not(.head) > *:nth-child(4)::before {
    content: none;
  }

  .solution-rice-row:not(.head) > *:nth-child(5)::before {
    content: none;
  }

  .solution-rice-row:not(.head) > *:nth-child(6)::before {
    content: none;
  }

  .metrics-row {
    margin-bottom: 10px;
    border: 1px solid var(--line);
    background: rgba(247, 247, 244, 0.86);
  }

  .metrics-row:not(.head) > *:nth-child(1)::before {
    content: "Layer";
  }

  .metrics-row:not(.head) > *:nth-child(2)::before {
    content: "Primary measure";
  }

  .metrics-row:not(.head) > *:nth-child(3)::before {
    content: "Target";
  }

  .metrics-row:not(.head) > *:nth-child(4)::before {
    content: "Why";
  }

  .metrics-row:not(.head) > *:nth-child(5)::before {
    content: "Guardrail";
  }

  .solution-rice-row b,
  .metrics-row b {
    justify-content: start;
  }

  .solution-process li {
    grid-template-columns: 1fr;
  }

  .solution-process small {
    grid-column: auto;
  }

  .selected-solution-card,
  .solution-process {
    min-height: auto;
  }

  .implementation-architecture > div,
  .implementation-grid article,
  .implementation-timeline div,
  .launch-gates {
    min-height: auto;
  }

  .summary-final-callout {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .roadmap-lines .line-draw path,
  .roadmap-step {
    animation: none;
  }

  .roadmap-lines .line-draw path {
    stroke-dashoffset: 0;
  }
}
/* AI teardown About-card fit pass */
#context {
  gap: 8px;
  padding-top: clamp(24px, 3vh, 38px);
  padding-bottom: 58px;
  overflow: hidden;
}

#context h2 {
  font-size: clamp(2.7rem, 5.2vw, 4.6rem);
  line-height: 0.88;
  margin-bottom: 4px;
}

#context > p {
  font-size: clamp(0.82rem, 0.88vw, 0.96rem);
  line-height: 1.28;
  max-width: 1040px;
}

#context .context-layout {
  gap: 8px;
}

#context .generated-process-visual img {
  height: clamp(220px, 24vw, 300px);
  max-height: 300px;
}

#context figcaption {
  padding: 6px 10px;
  font-size: 0.56rem;
}

#context .metric-grid {
  gap: 8px;
}

#context .metric-grid div {
  min-height: 84px;
  padding: 11px 12px;
  overflow: hidden;
}

#context .metric-grid span {
  font-size: 0.56rem;
  line-height: 1;
}

#context .metric-grid strong {
  align-self: end;
  max-width: 100%;
  color: var(--accent);
  font-size: clamp(1.05rem, 1.85vw, 2rem);
  line-height: 0.96;
  overflow-wrap: anywhere;
  word-break: normal;
}

#context h3 {
  margin-top: 0;
  font-size: clamp(1.08rem, 1.25vw, 1.42rem);
  line-height: 1;
}

#context .bar-panel {
  gap: 6px;
  padding: 10px 12px;
}

#context .bar-row {
  grid-template-columns: 112px minmax(0, 1fr) 72px;
  min-height: 18px;
  font-size: 0.62rem;
  line-height: 1.05;
}

#context .bar-row i {
  height: 10px;
}

#context .bar-row strong {
  font-size: 0.72rem;
}

#context .note {
  padding: 9px 12px;
  font-size: clamp(0.74rem, 0.82vw, 0.9rem);
  line-height: 1.25;
}
