/* ------------------------------------------------------------------
   Agentic Product Lifecycle Atlas — public site prototype
   Visual language: editorial serif headings, warm paper background,
   dark green active states, restrained borders.
   ------------------------------------------------------------------ */

:root {
  color-scheme: light;
  --ink: #161513;
  --muted: #67615a;
  --paper: #f7f3ea;
  --surface: #fffdf8;
  --line: #d7cec0;
  --line-strong: #b9ad99;
  --deep: #20352f;
  --green: #2f6f5e;
  --accent: #0f6b5f;
  --amber: #9b6a2f;
  --red: #a24f3f;
  --radius: 8px;
  --shadow: 0 14px 36px rgba(35, 29, 20, 0.10);
  --shadow-soft: 0 4px 14px rgba(35, 29, 20, 0.06);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --topbar-h: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, input, select, textarea { font: inherit; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--deep);
  color: var(--surface);
  border-radius: 6px;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 243, 234, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 22px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
}
.wordmark-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 5px;
  background: var(--deep);
  color: var(--surface);
  font-size: 18px;
  font-weight: 500;
}
.wordmark-text {
  font-size: 17px;
  font-weight: 500;
}
.wordmark-text-short { display: none; font-size: 17px; }

.topnav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.topnav a {
  padding: 8px 12px;
  border-radius: 6px;
  color: #2a2927;
  text-decoration: none;
  font-size: 14px;
  border: 1px solid transparent;
}
.topnav a:hover,
.topnav a:focus-visible {
  background: rgba(47, 111, 94, 0.08);
  outline: none;
}
.topnav a.is-active {
  color: var(--deep);
  border-bottom: 2px solid var(--deep);
  border-radius: 0;
}
.topnav a.cta,
.cta {
  background: var(--deep);
  color: var(--surface);
  border: 1px solid var(--deep);
  border-radius: 6px;
  padding: 8px 14px;
  text-decoration: none;
  cursor: pointer;
}
.topnav a.cta.is-active { border-bottom: 1px solid var(--deep); }
.cta:hover, .cta:focus-visible {
  background: #18241f;
  border-color: #18241f;
  outline: none;
}
.cta-large {
  padding: 12px 18px;
  font-size: 15px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

/* ---------- Layout primitives ---------- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
}
.container.narrow {
  max-width: 780px;
}
.container.page-head {
  padding-top: 22px;
  padding-bottom: 10px;
}
.container.page-head h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
  max-width: 880px;
}
.page-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.15;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

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

.hero h1,
.serif-lg {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 5.4vw, 64px);
  max-width: 980px;
}
.serif-md {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 34px);
}

.lede {
  max-width: 760px;
  margin: 18px 0 0;
  color: #393633;
  font-size: clamp(17px, 1.6vw, 20px);
}
.lede.small {
  font-size: 15px;
  color: #4a4641;
  margin-top: 8px;
}

.hero {
  padding-top: 56px;
  padding-bottom: 24px;
}
.hero-meta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-family: var(--mono);
}

/* ---------- View routing ---------- */
.view { display: none; }
.view.is-active { display: block; }

/* ---------- Home: advisor strip ---------- */
.advisor-strip {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.advisor-strip-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.advisor-strip-head .lede.small { max-width: 640px; }
.link-arrow {
  flex: 0 0 auto;
  color: var(--deep);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid rgba(15, 107, 95, 0.45);
  padding-bottom: 2px;
}
.link-arrow:hover { color: var(--accent); border-color: currentColor; }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.chip {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: #2a2927;
  cursor: pointer;
  font-size: 14px;
}
.chip:hover, .chip:focus-visible {
  border-color: var(--deep);
  outline: none;
}
.chip.is-active {
  background: var(--deep);
  color: var(--surface);
  border-color: var(--deep);
}

.advisor-result {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.advisor-result .phase-tag {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #efe6d6;
  font-family: var(--mono);
  font-size: 12px;
  margin-bottom: 8px;
  color: var(--ink);
}
.advisor-result h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
}
.advisor-result .summary {
  margin: 6px 0 16px;
  color: #393633;
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.result-block {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  min-width: 0;
}
.result-block h4 {
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.result-block ul {
  margin: 0;
  padding-left: 18px;
}
.result-block li { font-size: 14px; margin: 4px 0; }
.result-block a {
  color: var(--deep);
  text-decoration-color: rgba(15, 107, 95, 0.4);
  text-underline-offset: 3px;
}

/* ---------- Home: thesis strip ---------- */
.thesis-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.thesis-strip > div {
  padding: 18px;
  background: var(--surface);
  min-height: 130px;
}
.thesis-strip strong { display: block; font-size: 14px; }
.thesis-strip span { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }

/* ---------- Home: tile row ---------- */
.tile-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.tile-row.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tile {
  display: block;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.tile:hover {
  border-color: var(--deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}
.tile h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 8px;
}
.tile p { margin: 0; color: #393633; font-size: 14px; }
.tile-cta {
  display: inline-block;
  margin-top: 14px;
  color: var(--deep);
  border-bottom: 1px solid rgba(15, 107, 95, 0.45);
  padding-bottom: 2px;
  font-size: 14px;
}

/* ---------- Home: inquire strip ---------- */
.inquire-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 12px;
}
.inquire-strip h2 { max-width: 760px; }

/* ---------- Atlas ---------- */
.decision-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.decision-card h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 32px);
}

.matrix-scroll {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow-x: auto;
}
.matrix {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}
.matrix.dense { min-width: 1080px; }
.matrix th, .matrix td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}
.matrix th {
  background: #efe6d6;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  position: sticky;
  top: 0;
  z-index: 1;
}
.matrix tr:last-child td { border-bottom: 0; }
.matrix a {
  color: var(--deep);
  text-decoration-color: rgba(15, 107, 95, 0.45);
  text-underline-offset: 3px;
}

.atlas-workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.phase-rail {
  position: sticky;
  top: calc(var(--topbar-h) + 16px);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.rail-label {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
}
.phase-nav {
  display: grid;
  gap: 4px;
}
.phase-nav button {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #2a2927;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
}
.phase-nav button:hover, .phase-nav button:focus-visible {
  background: rgba(47, 111, 94, 0.08);
  outline: none;
}
.phase-nav button.is-active {
  background: var(--deep);
  color: var(--surface);
}
.phase-nav .nav-meta {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  opacity: 0.72;
}

.phase-detail {
  min-width: 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.phase-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.phase-detail-head .frame { margin: 6px 0 0; color: #393633; font-size: 15px; }
.phase-detail-head .phase-meta { margin-top: 4px; }
.decision-inline {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbf6ec;
}
.decision-inline-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.decision-inline-head h3 {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.decision-inline-head span {
  font-size: 12px;
  color: var(--muted);
}
.decision-inline .matrix-scroll {
  margin-top: 0;
  box-shadow: none;
}
.decision-inline .matrix { min-width: 720px; }

/* ---------- Phase videos ---------- */
.phase-videos { margin-bottom: 18px; }
.phase-videos-head {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.video-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.video-card:hover {
  border-color: var(--deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #1a1a1a;
  overflow: hidden;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-thumb-text {
  display: grid;
  place-items: center;
  background: var(--deep);
  color: var(--surface);
}
.video-thumb-text span {
  font-family: var(--serif);
  font-size: 16px;
}
.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 160ms ease, transform 160ms ease;
}
.video-card:hover .video-play {
  opacity: 1;
  transform: scale(1.06);
}
.video-meta {
  padding: 12px 14px 14px;
  display: grid;
  gap: 4px;
}
.video-meta h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-meta p { margin: 0; font-size: 12px; color: var(--muted); }
.video-speaker { color: #393633 !important; }
.phase-detail .phase-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}
.phase-detail .pill {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8f1e4;
  font-size: 12px;
  color: #373431;
}
.phase-detail .pill.risk-high { background: rgba(162, 79, 63, 0.12); border-color: rgba(162, 79, 63, 0.4); }
.phase-detail .pill.risk-watch { background: rgba(155, 106, 47, 0.12); border-color: rgba(155, 106, 47, 0.4); }
.phase-detail .pill.risk-medium { background: rgba(47, 111, 94, 0.12); border-color: rgba(47, 111, 94, 0.4); }
.phase-detail h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 500;
}
.phase-detail .frame { margin: 10px 0 0; color: #393633; }
.phase-detail .grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.phase-detail .block {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  min-width: 0;
}
.phase-detail .block h3 {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.phase-detail ul { margin: 0; padding-left: 18px; }
.phase-detail li { font-size: 14px; margin: 4px 0; color: #393633; }
.phase-detail .callout {
  margin-top: 18px;
  padding: 16px;
  border-left: 4px solid var(--green);
  background: #eef3ed;
  border-radius: 0 6px 6px 0;
}
.phase-detail .callout strong { display: block; margin-bottom: 6px; }
.phase-detail .next-step {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.phase-detail .next-step a {
  color: var(--deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 107, 95, 0.45);
  padding-bottom: 2px;
}

/* ---------- Advisor ---------- */
.advisor-workspace {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.advisor-options {
  display: grid;
  gap: 8px;
}
.advisor-options button {
  width: 100%;
  min-height: 56px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.advisor-options button:hover,
.advisor-options button:focus-visible {
  border-color: var(--deep);
  outline: none;
}
.advisor-options button.is-active {
  background: var(--deep);
  color: var(--surface);
  border-color: var(--deep);
}
.advisor-detail {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.advisor-detail h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 500;
}
.advisor-detail .grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.advisor-detail .block {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.advisor-detail .block h3 {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.advisor-detail ul { margin: 0; padding-left: 18px; }
.advisor-detail li { font-size: 14px; margin: 4px 0; }
.advisor-detail .badges {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.advisor-detail .badge {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8f1e4;
  font-size: 12px;
}
.advisor-detail .next-step {
  margin-top: 18px;
  padding: 14px 16px;
  background: #eef3ed;
  border-left: 4px solid var(--green);
  border-radius: 0 6px 6px 0;
}
.advisor-detail .inquire-cta {
  margin-top: 18px;
}

.callout {
  padding: 16px;
  border-left: 4px solid var(--green);
  background: #eef3ed;
  border-radius: 0 6px 6px 0;
}
.callout strong { display: block; margin-bottom: 4px; }
.callout p { margin: 0; font-size: 14px; }

/* ---------- Matrix ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.filter-bar .chip { font-size: 13px; }

.matrix-footnote {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Methodology / About prose ---------- */
.prose { padding-left: 18px; }
.prose li { margin: 6px 0; color: #393633; }

/* ---------- Inquire ---------- */
.inquire-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 28px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.inquire-form-section {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.inquire-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.inquire-form label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
}
.inquire-form label.full { grid-column: 1 / -1; }
.inquire-form input,
.inquire-form textarea {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}
.inquire-form input:focus,
.inquire-form textarea:focus {
  outline: 2px solid rgba(47, 111, 94, 0.35);
  border-color: var(--deep);
}
.inquire-form button {
  grid-column: 1 / -1;
  justify-self: start;
}
.form-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.form-success {
  grid-column: 1 / -1;
  padding: 14px;
  background: #eef3ed;
  border-left: 4px solid var(--green);
  border-radius: 0 6px 6px 0;
  font-size: 14px;
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.footer-inner {
  padding: 28px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
}
.footer-inner > div { display: grid; gap: 4px; }
.footer-inner strong { font-family: var(--serif); font-size: 16px; font-weight: 500; }
.footer-inner span { color: var(--muted); font-size: 13px; }
.footer-inner nav { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.footer-inner nav a {
  font-size: 13px;
  color: #2a2927;
  text-decoration-color: rgba(32, 53, 47, 0.3);
  text-underline-offset: 3px;
}
.footer-inner p { margin: 0; font-size: 12px; color: var(--muted); text-align: right; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thesis-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-row { grid-template-columns: 1fr; }
  .atlas-workspace { grid-template-columns: 1fr; }
  .phase-rail { position: static; }
  .phase-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 6px;
  }
  .phase-nav button { min-width: 200px; }
  .advisor-workspace { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .footer-inner p { text-align: left; }
}

@media (max-width: 720px) {
  .topbar-inner { gap: 12px; padding: 0 16px; }
  .wordmark-text { display: none; }
  .wordmark-text-short { display: inline; }
  .topnav { display: none; }
  .topnav.is-open {
    display: flex;
    position: absolute;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 12px 12px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }
  .topnav.is-open a { padding: 10px 12px; border-radius: 6px; }
  .topnav.is-open a.is-active {
    background: rgba(47, 111, 94, 0.08);
    border-bottom: 1px solid transparent;
  }
  .menu-toggle { display: inline-block; margin-left: auto; }

  .container { padding: 22px 16px; }
  .hero { padding-top: 30px; }
  .advisor-strip { padding: 18px; }
  .advisor-strip-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .result-grid { grid-template-columns: 1fr; }
  .thesis-strip { grid-template-columns: 1fr; }
  .phase-detail .grid,
  .advisor-detail .grid,
  .inquire-grid,
  .inquire-form { grid-template-columns: 1fr; }
  .inquire-strip { flex-direction: column; align-items: flex-start; }
}


/* ============================================================
   Multi-page additions
   Appended to public-site-prototype.css by the build.
   New classes only — does not override SPA styles unless noted.
   ============================================================ */

/* ----- design tokens (additive) ----- */
:root {
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --coral: #e95a47;
}

/* Use the Fraunces optical-size axis on display headings. */
h1, .serif-display {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144;
}

/* Tabular numerals inside data tables so figures align. */
.rules-table, .matrix-table { font-variant-numeric: tabular-nums; }

/* Coral accent on active primary-nav link. */
.topnav a[aria-current="page"] {
  border-bottom: 2px solid var(--coral);
  padding-bottom: 2px;
}

/* Inline coral text-link CTA — used in prose contexts (advisory strip,
   phase bottom strip, About). The base prototype's .cta is a pill button
   used for the topbar Inquire and the form submit; do NOT use .cta inline. */
.cta-inline {
  color: var(--coral);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--coral);
  padding-bottom: 1px;
  white-space: nowrap;
  font-family: var(--sans);
  background: transparent;
}
.cta-inline:hover { border-bottom-width: 2px; }

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

/* ----- page-load motion ----- */
@media (prefers-reduced-motion: no-preference) {
  .phase-page > .eyebrow,
  .phase-page > h1,
  .phase-page > .lede,
  .atlas-index > .eyebrow,
  .atlas-index > h1,
  .atlas-index > .lede,
  .hero > .eyebrow,
  .hero > h1,
  .hero > .lede {
    opacity: 0;
    transform: translateY(6px);
    animation: rise 320ms cubic-bezier(.2,.7,.3,1) forwards;
  }
  .phase-page > .eyebrow,
  .atlas-index > .eyebrow,
  .hero > .eyebrow { animation-delay: 0ms; }
  .phase-page > h1,
  .atlas-index > h1,
  .hero > h1 { animation-delay: 90ms; }
  .phase-page > .lede,
  .atlas-index > .lede,
  .hero > .lede { animation-delay: 180ms; }
  @keyframes rise {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ----- page-level spacing ----- */
.phase-page,
.atlas-index,
.matrix-page,
.about-page,
.inquire-page {
  padding-top: 28px;
  padding-bottom: 56px;
}

.phase-page > .eyebrow,
.atlas-index > .eyebrow,
.matrix-page > .eyebrow,
.about-page > .eyebrow,
.inquire-page > .eyebrow { margin-bottom: 4px; }

.phase-page > h1,
.atlas-index > h1,
.matrix-page > h1,
.about-page > h1,
.inquire-page > h1 {
  margin: 4px 0 12px;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.phase-page .lede,
.atlas-index .lede,
.matrix-page .lede,
.about-page .lede,
.inquire-page .lede {
  font-size: 18px;
  line-height: 1.55;
  color: #393633;
  max-width: 72ch;
  margin-bottom: 14px;
}

/* ----- phase page ----- */
.phase-page .phase-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  margin-bottom: 8px;
}
.phase-page .phase-hero-text { min-width: 0; }
.phase-page .phase-hero-text > h1 { margin-top: 0; }
.phase-page .phase-hero-icon {
  width: 200px;
  height: 200px;
  display: block;
  justify-self: end;
  margin-top: -8px;
}
@media (max-width: 720px) {
  .phase-page .phase-hero { grid-template-columns: 1fr; }
  .phase-page .phase-hero-icon { width: 120px; height: 120px; justify-self: start; order: -1; margin: 0 0 4px; }
}

.phase-page .phase-frame {
  font-size: 15px;
  color: #5a554f;
  max-width: 72ch;
  margin: 0 0 32px;
}

.phase-page .phase-block {
  border-top: 1px solid var(--border, #d8d2c5);
  padding: 28px 0 4px;
  margin-top: 8px;
}

.phase-page .phase-block h2 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 96;
  font-size: 22px;
  letter-spacing: -0.005em;
  margin: 0 0 10px;
}

.phase-page .phase-block .block-intro {
  color: #5a554f;
  font-size: 14px;
  margin: 0 0 14px;
  max-width: 72ch;
}

.phase-page .phase-block ul {
  margin: 0;
  padding-left: 18px;
}
.phase-page .phase-block ul li {
  margin-bottom: 4px;
  line-height: 1.5;
}

/* decision rules table */
.phase-page .rules-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 0 0 4px;
  table-layout: fixed;
}
.phase-page .rules-table thead th {
  text-align: left;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted, #807a72);
  font-weight: 600;
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--border, #d8d2c5);
}
.phase-page .rules-table tbody td {
  vertical-align: top;
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid rgba(216, 210, 197, 0.6);
  line-height: 1.5;
}
.phase-page .rules-table tbody tr:last-child td { border-bottom: 0; }
/* Column widths sized so "Recommended playbook" stays on one line at common widths. */
.phase-page .rules-table th:nth-child(1),
.phase-page .rules-table td:nth-child(1) { width: 26%; color: #2b2924; }
.phase-page .rules-table th:nth-child(2),
.phase-page .rules-table td:nth-child(2) { width: 13%; color: #5a554f; }
.phase-page .rules-table th:nth-child(3),
.phase-page .rules-table td:nth-child(3) { width: 17%; white-space: normal; }
.phase-page .rules-table th:nth-child(4),
.phase-page .rules-table td:nth-child(4) { width: 14%; }
.phase-page .rules-table th:nth-child(5),
.phase-page .rules-table td:nth-child(5) { width: 30%; color: #393633; }

@media (max-width: 900px) {
  .phase-page .rules-table { display: block; overflow-x: auto; table-layout: auto; }
}

/* video grid on phase page */
.phase-page .videos .video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin: 8px 0 4px;
}
.phase-page .videos .video-card {
  background: transparent;
  border: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.phase-page .videos .video-thumb {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  background: #1f1d1a;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.15s ease;
}
.phase-page .videos .video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.phase-page .videos .video-thumb::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 28px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  opacity: 0.85;
  transition: opacity 0.15s ease;
}
.phase-page .videos .video-thumb:hover { transform: translateY(-1px); }
.phase-page .videos .video-thumb:hover::after { opacity: 1; }

/* Fallback thumbnail: same 16:9 footprint, paper-toned tile with host badge.
   Used for non-YouTube URLs (event pages, etc.) so cards baseline-align. */
.phase-page .videos .video-thumb-fallback {
  background: #efe7da;
  border: 1px solid var(--border, #d8d2c5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
}
.phase-page .videos .video-thumb-fallback::after { content: none; }
.phase-page .videos .video-thumb-fallback .fallback-host {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted, #807a72);
  text-align: center;
  padding: 0 12px;
  word-break: break-all;
}
.phase-page .videos .video-thumb-fallback .fallback-glyph {
  font-size: 28px;
  color: var(--coral);
  line-height: 1;
}
.phase-page .videos .video-thumb-fallback:hover { background: #ece2d0; }
.phase-page .videos .video-body h3 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-variation-settings: "opsz" 24;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
}
.phase-page .videos .video-body h3 a {
  color: #1f1d1a;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.phase-page .videos .video-body h3 a:hover { border-bottom-color: var(--coral); }
.phase-page .videos .video-meta {
  margin: 0;
  font-size: 12px;
  color: var(--muted, #807a72);
  line-height: 1.4;
}
.phase-page .videos .video-meta a {
  color: var(--muted, #807a72);
  border-bottom: 1px dotted #b9ad99;
  text-decoration: none;
}
.phase-page .videos .video-meta a:hover { color: var(--coral); border-bottom-color: var(--coral); }

/* 5-block grid — softer borders, only the recommendation stays distinct */
.phase-page .phase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 40px;
  margin-top: 0;
}
.phase-page .phase-grid .phase-block {
  border-top: 1px solid rgba(216, 210, 197, 0.5);
}
.phase-page .phase-grid .phase-recommendation {
  grid-column: 1 / -1;
  background: rgba(31, 58, 47, 0.04);
  border-top: 2px solid var(--brand, #1f3a2f);
  border-left: 3px solid var(--coral);
  padding: 24px;
  margin-top: 24px;
  border-radius: 4px;
}
.phase-page .phase-grid .phase-recommendation h2 { color: var(--brand, #1f3a2f); }

@media (max-width: 720px) {
  .phase-page .phase-grid { grid-template-columns: 1fr; }
}

/* prev/next nav (used at top and bottom of phase page) */
.phase-page .phase-neighbours {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 14px 0 28px;
  padding: 8px 0 0;
  font-size: 13px;
  color: var(--muted, #807a72);
}
.phase-page .phase-neighbours:not(.top) {
  margin: 40px 0 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border, #d8d2c5);
  font-size: 14px;
  color: inherit;
}
.phase-page .phase-neighbours.top a { color: var(--muted, #807a72); }
.phase-page .phase-neighbours a {
  color: var(--brand, #1f3a2f);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.phase-page .phase-neighbours a:hover { border-bottom-color: var(--coral); color: var(--coral); }

/* phase-page bottom inquire strip — integrated paragraph, not boxed */
.phase-page .inquire-strip {
  margin: 32px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--border, #d8d2c5);
}
.phase-page .inquire-strip h2 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 96;
  font-size: 22px;
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}
.phase-page .inquire-strip p {
  margin: 0;
  font-size: 16px;
  color: #393633;
  max-width: 72ch;
  line-height: 1.55;
}

/* ----- atlas index — editorial list view ----- */
.phase-list {
  margin: 24px 0 0;
  border-top: 1px solid var(--border, #d8d2c5);
}
.phase-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 28px;
  padding: 24px 4px;
  border-bottom: 1px solid var(--border, #d8d2c5);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}
.phase-row:hover { background: rgba(31, 58, 47, 0.03); }
.phase-row-icon {
  width: 88px;
  height: 88px;
  display: block;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.phase-row:hover .phase-row-icon { transform: rotate(-2deg) scale(1.03); }
.phase-row-body { min-width: 0; }
.phase-row-body .eyebrow { margin: 0 0 4px; }
.phase-row-body h2 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 96;
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.phase-row-def {
  margin: 0;
  font-size: 15px;
  color: #393633;
  line-height: 1.55;
  max-width: 72ch;
}
.phase-row-cta {
  font-size: 22px;
  color: var(--muted, #807a72);
  align-self: center;
  transition: transform 0.15s ease, color 0.15s ease;
}
.phase-row:hover .phase-row-cta { color: var(--coral); transform: translateX(4px); }

@media (max-width: 600px) {
  .phase-row { grid-template-columns: auto 1fr; gap: 14px; padding: 18px 0; }
  .phase-row-icon { width: 64px; height: 64px; }
  .phase-row-cta { display: none; }
}

/* ----- home: thesis as flowing editorial strip -----
   Five equal columns at desktop so the layout reads as a single
   horizontal strip with thin vertical rules between statements.
   Collapses cleanly through 2-col to 1-col on narrow widths. */
.thesis-flow {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--border, #d8d2c5);
  border-bottom: 1px solid var(--border, #d8d2c5);
  padding: 24px 0;
}
.thesis-flow p {
  margin: 0;
  padding: 8px 20px;
  font-size: 13px;
  line-height: 1.5;
  color: #393633;
  border-left: 1px solid rgba(216, 210, 197, 0.6);
}
.thesis-flow p:first-child { border-left: 0; padding-left: 0; }
.thesis-flow p strong {
  display: block;
  font-family: var(--serif);
  font-variation-settings: "opsz" 96;
  font-weight: 600;
  color: #1f1d1a;
  font-size: 15px;
  margin-bottom: 4px;
}
.thesis-flow p span { color: #5a554f; }

@media (max-width: 1024px) {
  .thesis-flow { grid-template-columns: repeat(3, 1fr); row-gap: 20px; }
  .thesis-flow p:nth-child(3n+1) { border-left: 0; padding-left: 0; }
}
@media (max-width: 600px) {
  .thesis-flow { grid-template-columns: 1fr; row-gap: 16px; padding: 20px 0; }
  .thesis-flow p { border-left: 0; padding-left: 0; }
}

/* ----- home: tile row as typographic intros ----- */
.tile-row-flow {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-top: 40px;
}
@media (max-width: 720px) { .tile-row-flow { grid-template-columns: 1fr; gap: 32px; } }
.tile-flow .eyebrow { margin: 0 0 6px; }
.tile-flow h3 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 96;
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.tile-flow p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.6;
  color: #393633;
  max-width: 56ch;
}
.text-cta {
  color: var(--brand, #1f3a2f);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--coral);
  padding-bottom: 1px;
}
.text-cta:hover { color: var(--coral); }

/* ----- home: advisory strip — integrated, not boxed ----- */
.advisory-strip {
  margin: 56px auto 0;
  padding: 32px 0;
  border-top: 1px solid var(--border, #d8d2c5);
  border-bottom: 1px solid var(--border, #d8d2c5);
}
.advisory-strip p {
  margin: 0;
  font-family: var(--serif);
  font-variation-settings: "opsz" 96;
  font-size: 22px;
  line-height: 1.4;
  color: #1f1d1a;
  max-width: 72ch;
  letter-spacing: -0.005em;
}
.advisory-strip .cta-inline {
  font-size: 16px;
  margin-left: 8px;
}

/* hero meta — single flowing line of inline spans */
.hero-meta {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted, #807a72);
  line-height: 1.6;
}
.hero-meta span { margin: 0 2px; }

/* ----- matrix page ----- */
.matrix-page .matrix-chips {
  position: sticky;
  top: var(--topbar-h, 64px);
  z-index: 5;
  background: var(--paper, #f7f3ea);
  margin: 18px -16px 24px;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid var(--border, #d8d2c5);
  border-bottom: 1px solid var(--border, #d8d2c5);
}
.matrix-page .matrix-chip {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted, #807a72);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 3px;
  background: rgba(255,255,255,0.4);
  transition: color 0.12s, border-color 0.12s;
}
.matrix-page .matrix-chip:hover {
  color: var(--coral);
  border-color: var(--coral);
}

.matrix-page .matrix-phase {
  margin-top: 36px;
  /* Topbar + sticky chip row (2 lines wraps to ~110-120px) + buffer */
  scroll-margin-top: calc(var(--topbar-h, 64px) + 160px);
}
.matrix-page .matrix-phase h2 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 96;
  font-size: 24px;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border, #d8d2c5);
  letter-spacing: -0.005em;
}
.matrix-page .matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  /* Shared fixed column widths so all 12 phase tables align vertically. */
  table-layout: fixed;
}
.matrix-page .matrix-table col.col-area    { width: 11%; }
.matrix-page .matrix-table col.col-person  { width: 14%; }
.matrix-page .matrix-table col.col-asset   { width: 14%; }
.matrix-page .matrix-table col.col-type    { width: 10%; }
.matrix-page .matrix-table col.col-jtbd    { width: 30%; }
.matrix-page .matrix-table col.col-alts    { width: 21%; }
.matrix-page .matrix-table thead th {
  text-align: left;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted, #807a72);
  font-weight: 600;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--border, #d8d2c5);
  vertical-align: bottom;
}
.matrix-page .matrix-table tbody td {
  vertical-align: top;
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid rgba(216, 210, 197, 0.6);
  line-height: 1.5;
}
.matrix-page .matrix-table tbody tr:last-child td { border-bottom: 0; }
.matrix-page .matrix-table a {
  color: var(--brand, #1f3a2f);
  text-decoration: none;
  border-bottom: 1px dotted #b9ad99;
}
.matrix-page .matrix-table a:hover {
  color: var(--coral);
  border-bottom: 1px solid var(--coral);
}
.matrix-page .type-tag {
  display: inline-block;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted, #807a72);
  padding: 2px 6px;
  border: 1px solid rgba(216, 210, 197, 0.8);
  border-radius: 2px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .matrix-page .matrix-table { display: block; overflow-x: auto; }
  .matrix-page .matrix-chips { position: static; }
}

/* ----- about page ----- */
.about-page p {
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.65;
  color: #2b2924;
  margin: 0 0 16px;
}
.about-page h2 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 96;
  font-size: 24px;
  margin: 32px 0 12px;
  letter-spacing: -0.005em;
}

/* ----- inquire page ----- */
.inquire-page .two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin: 32px 0 40px;
}
@media (max-width: 720px) {
  .inquire-page .two-col { grid-template-columns: 1fr; gap: 24px; }
}
.inquire-page .two-col h2 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 96;
  font-size: 20px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border, #d8d2c5);
  letter-spacing: -0.005em;
}
.inquire-page .two-col ul {
  margin: 0;
  padding-left: 18px;
}
.inquire-page .two-col ul li {
  margin-bottom: 8px;
  line-height: 1.55;
  font-size: 15px;
}

.inquire-form {
  max-width: 560px;
  display: grid;
  gap: 14px;
  margin-top: 16px;
}
.inquire-form label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: #2b2924;
}
.inquire-form input,
.inquire-form textarea {
  font: inherit;
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid var(--border, #d8d2c5);
  border-radius: 4px;
  background: #fbf9f4;
  color: #1f1d1a;
}
.inquire-form input:focus,
.inquire-form textarea:focus {
  outline: 2px solid var(--coral);
  outline-offset: 0;
  border-color: transparent;
}
.inquire-form button.cta {
  justify-self: start;
  padding: 10px 18px;
  background: var(--coral);
  color: #fff;
  border: 0;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
}
.inquire-form button.cta:hover { filter: brightness(0.95); }
.inquire-form .form-note {
  font-size: 13px;
  color: var(--muted, #807a72);
  margin: 4px 0 0;
}

/* ----- footer ----- */
.site-footer {
  border-top: 1px solid var(--border, #d8d2c5);
  margin-top: 56px;
  padding: 24px 0 40px;
  font-size: 13px;
  color: var(--muted, #807a72);
}
.site-footer p { margin: 0 0 4px; }
.site-footer .footer-meta a {
  color: var(--muted, #807a72);
  text-decoration: underline;
}
