:root {
  --bg: #f4f1ea;
  --surface: #fbfaf6;
  --surface-strong: #ffffff;
  --ink: #15191d;
  --muted: #667078;
  --line: #d6d2c8;
  --line-dark: #a8a59c;
  --accent: #243f3a;
  --accent-2: #c8ff72;
  --accent-soft: #e7efdc;
  --danger-soft: #f4dfd9;
  --shadow: 0 20px 60px rgba(27, 31, 34, .09);
  --radius: 22px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
button, textarea, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button:focus-visible, a:focus-visible, textarea:focus-visible, summary:focus-visible, iframe:focus-visible {
  outline: 3px solid #607d75;
  outline-offset: 3px;
}
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 1000; transform: translateY(-150%); background: #fff; padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { transform: translateY(0); }
.topbar {
  width: min(calc(100% - 40px), var(--max));
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 14px 18px;
  border: 1px solid rgba(21, 25, 29, .14);
  border-radius: 16px;
  background: rgba(251, 250, 246, .84);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 12px;
  z-index: 30;
}
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.brand-lockup div { display: flex; flex-direction: column; line-height: 1.2; }
.brand-lockup strong { font-size: 13px; letter-spacing: .02em; }
.brand-lockup span:not(.brand-mark) { color: var(--muted); font-size: 11px; }
.prepared-for { text-align: center; line-height: 1.2; }
.prepared-for span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.prepared-for strong { font-size: 13px; }
.ghost-button, .icon-button { border: 0; background: transparent; cursor: pointer; color: var(--ink); }
.ghost-button { justify-self: end; padding: 8px 12px; border-radius: 10px; }
.ghost-button:hover { background: rgba(21,25,29,.05); }
.section-shell { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.hero { min-height: 720px; padding: 96px 0 68px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, .72fr); gap: 72px; align-items: center; }
.eyebrow, .micro-label { text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 700; color: #59645f; }
.hero h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(58px, 7vw, 105px); line-height: .9; letter-spacing: -.055em; margin: 20px 0 30px; max-width: 850px; }
.hero-lead { max-width: 690px; font-size: clamp(18px, 2vw, 24px); line-height: 1.45; color: #363e43; }
.hero-actions, .final-actions, .prototype-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-actions { margin-top: 34px; }
.hero-note { margin-top: 22px; max-width: 620px; font-size: 13px; color: var(--muted); }
.primary-button, .secondary-button {
  appearance: none;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
}
.primary-button { background: var(--ink); color: #fff; }
.primary-button:hover { background: #2b3338; }
.secondary-button { background: transparent; color: var(--ink); }
.secondary-button:hover { background: rgba(21,25,29,.05); }
.primary-button.compact { min-height: 42px; padding: 9px 16px; }
.hero-proof { background: var(--accent); color: #f9f8f4; border-radius: 26px; padding: 28px; box-shadow: var(--shadow); min-height: 440px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-proof .proof-index { align-self: flex-end; margin-bottom: auto; font-family: Georgia, serif; font-size: 52px; color: var(--accent-2); }
.hero-proof .micro-label { color: #b7c9c4; margin-top: 4px; }
.hero-proof strong { font-size: 22px; line-height: 1.2; margin-top: 4px; }
.hero-proof p { margin: 6px 0 0; color: #eef2ef; }
.proof-divider { height: 1px; background: rgba(255,255,255,.18); margin: 20px 0; }
.intro-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.intro-strip > div { background: var(--surface); padding: 26px; }
.intro-strip p { margin: 8px 0 0; font-size: 15px; }
.content-section { padding: 112px 0 30px; }
.section-heading { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 22px; align-items: start; margin-bottom: 42px; }
.section-heading.compact-heading { margin-bottom: 24px; }
.section-number { font-family: Georgia, serif; font-size: 42px; color: #8a8d89; line-height: 1; }
.section-heading h2, .final-cta h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -.035em; margin: 10px 0 0; max-width: 850px; }
.section-lead { margin-left: 90px; max-width: 650px; color: var(--muted); font-size: 18px; }
.evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.evidence-card { min-height: 260px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; align-items: flex-start; }
.evidence-card.accent-card { background: var(--accent-soft); }
.evidence-tag { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; font-weight: 750; color: #5c665f; }
.evidence-card h3 { font-size: 26px; line-height: 1.15; margin: 30px 0 10px; }
.evidence-card p { color: #434b50; margin: 0 0 24px; max-width: 510px; }
.evidence-card > a, .inline-links { margin-top: auto; }
.evidence-card a { font-size: 13px; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.inline-links { display: flex; flex-wrap: wrap; gap: 16px; }
.thesis-section { padding-bottom: 0; }
.reasoning-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 12px; align-items: stretch; margin-left: 90px; }
.reasoning-node { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; min-height: 150px; }
.reasoning-node span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .11em; }
.reasoning-node strong { display: block; font-size: 18px; line-height: 1.25; margin-top: 28px; }
.reasoning-arrow { display: grid; place-items: center; color: var(--line-dark); font-size: 24px; }
.hypothesis-card { margin: 28px 0 0 90px; padding: clamp(28px, 5vw, 56px); background: var(--ink); color: #fff; border-radius: 24px; }
.hypothesis-label { color: var(--accent-2); text-transform: uppercase; font-size: 11px; letter-spacing: .16em; font-weight: 800; }
.hypothesis-card blockquote { margin: 18px 0 20px; font-family: Georgia, serif; font-size: clamp(32px, 4.2vw, 58px); line-height: 1.08; letter-spacing: -.025em; }
.hypothesis-card p { color: #bbc2c5; max-width: 850px; margin-bottom: 0; }
.video-frame { margin-left: 90px; background: #101315; border-radius: 22px; overflow: hidden; }
.video-frame video { width: 100%; display: block; aspect-ratio: 16/9; background: #000; }
.prototype-intro { margin-left: 90px; max-width: 840px; font-size: 18px; }
.muted { color: var(--muted); }
.prototype-frame-wrap { margin: 30px 0 0 90px; background: var(--surface-strong); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.prototype-frame-wrap iframe { width: 100%; height: 780px; border: 0; display: block; background: #fff; }
.prototype-actions { margin: 16px 0 0 90px; }
.proof-meaning { margin: 26px 0 0 90px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.proof-meaning > div { background: var(--surface); padding: 24px; }
.proof-meaning p { margin: 8px 0 0; }
.challenge-grid { margin-left: 90px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.challenge-card { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; cursor: pointer; min-height: 210px; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.challenge-card:hover { transform: translateY(-2px); border-color: var(--line-dark); box-shadow: 0 14px 38px rgba(21,25,29,.06); }
.challenge-card > span { color: #8b8d88; font-family: Georgia, serif; font-size: 28px; }
.challenge-card strong { display: block; font-size: 23px; margin: 34px 0 6px; }
.challenge-card p { color: var(--muted); margin: 0; }
.lens-tabs { margin-left: 90px; display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 4px; background: var(--surface); gap: 4px; }
.lens-tabs button { border: 0; background: transparent; border-radius: 999px; padding: 10px 16px; cursor: pointer; }
.lens-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.lens-panel { margin: 20px 0 0 90px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 30px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; }
.lens-panel[hidden] { display: none; }
.lens-panel h3 { font-size: 30px; line-height: 1.2; margin: 8px 0 0; }
.lens-panel ul { margin: 0; padding-left: 20px; color: #41494e; }
.lens-panel li + li { margin-top: 14px; }
.method-layout { margin-left: 90px; max-width: 980px; }
.method-layout > p:first-child { font-size: 22px; line-height: 1.5; max-width: 860px; }
.method-flow { margin: 30px 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.method-flow span { border: 1px solid var(--line-dark); border-radius: 999px; padding: 10px 14px; background: var(--surface); font-weight: 650; font-size: 13px; }
.method-flow b { color: #8a8c88; }
.sources-section details { margin-left: 90px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; }
.sources-section summary { cursor: pointer; padding: 20px 24px; font-weight: 700; }
.source-list { border-top: 1px solid var(--line); margin: 0; padding: 0; list-style: none; }
.source-list li { padding: 18px 24px; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.source-list li:last-child { border-bottom: 0; }
.source-list a { color: #3e5550; }
.final-cta { margin-top: 120px; margin-bottom: 80px; background: var(--accent); color: #fff; border-radius: 26px; padding: clamp(34px, 6vw, 72px); display: grid; grid-template-columns: minmax(0,1.4fr) minmax(240px,.6fr); gap: 50px; align-items: end; }
.final-cta .eyebrow { color: #b8ccc6; }
.final-cta h2 { max-width: 800px; }
.final-cta p { color: #d5ddda; max-width: 700px; }
.final-cta .primary-button { background: var(--accent-2); color: #17201d; border-color: var(--accent-2); }
.final-cta .secondary-button { color: #fff; border-color: rgba(255,255,255,.45); }
.final-actions { justify-content: flex-end; }
.footer { border-top: 1px solid var(--line); padding: 30px 0 110px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }
.footer div { display: flex; gap: 10px; }
.advisor-launcher { position: fixed; right: 22px; bottom: 22px; z-index: 25; border: 1px solid rgba(255,255,255,.12); background: var(--ink); color: #fff; border-radius: 999px; padding: 12px 18px; box-shadow: var(--shadow); cursor: pointer; font-weight: 700; }
.advisor-launcher span { color: var(--accent-2); margin-right: 6px; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(15,18,20,.28); z-index: 80; }
.advisor-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: var(--surface-strong); z-index: 90; transform: translateX(102%); transition: transform .22s ease; box-shadow: -22px 0 60px rgba(21,25,29,.16); display: flex; flex-direction: column; }
.advisor-drawer.open { transform: translateX(0); }
.drawer-header { padding: 22px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: start; }
.drawer-header h2 { margin: 2px 0 0; font-family: Georgia, serif; font-weight: 400; font-size: 32px; }
.icon-button { font-size: 30px; line-height: 1; width: 42px; height: 42px; border-radius: 50%; }
.icon-button:hover { background: rgba(21,25,29,.05); }
.advisor-body { padding: 22px 24px 34px; overflow-y: auto; }
.advisor-opening { font-size: 15px; color: #424a4f; }
.suggested-questions { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 18px; }
.suggested-questions button { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 12px; font-size: 12px; cursor: pointer; text-align: left; }
.suggested-questions button:hover { border-color: var(--line-dark); }
.advisor-thread { display: flex; flex-direction: column; gap: 12px; margin: 18px 0 22px; }
.message { border-radius: 16px; padding: 13px 15px; max-width: 92%; font-size: 14px; }
.message.user { align-self: flex-end; background: var(--ink); color: #fff; }
.message.advisor { align-self: flex-start; background: #eef0ed; color: #22282c; }
.advisor-form { border-top: 1px solid var(--line); padding-top: 18px; }
.advisor-form label, .response-dialog label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 7px; }
.advisor-input-row { display: flex; gap: 8px; align-items: end; }
textarea { width: 100%; resize: vertical; min-height: 48px; border: 1px solid var(--line-dark); border-radius: 13px; padding: 11px 12px; background: #fff; color: var(--ink); }
.form-note { font-size: 11px; color: var(--muted); margin: 9px 0 0; }
.response-dialog { width: min(650px, calc(100% - 30px)); border: 0; padding: 0; border-radius: 22px; box-shadow: var(--shadow); background: var(--surface-strong); color: var(--ink); }
.response-dialog::backdrop { background: rgba(15,18,20,.38); }
.dialog-shell { padding: 26px; }
.dialog-header { display: flex; justify-content: space-between; gap: 20px; }
.dialog-header h2 { font-family: Georgia, serif; font-weight: 400; font-size: 36px; margin: 4px 0 0; }
.dialog-shell > p { color: var(--muted); }
.selected-challenge { background: var(--accent-soft); border-radius: 12px; padding: 10px 12px; font-size: 13px; margin: 12px 0 18px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 120; background: var(--ink); color: #fff; border-radius: 999px; padding: 10px 16px; font-size: 13px; box-shadow: var(--shadow); }
@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto; }
  .prepared-for { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 72px; }
  .hero-proof { min-height: 330px; }
  .reasoning-flow { grid-template-columns: 1fr; }
  .reasoning-arrow { transform: rotate(90deg); min-height: 20px; }
  .final-cta { grid-template-columns: 1fr; }
  .final-actions { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .section-shell, .topbar { width: min(calc(100% - 24px), var(--max)); }
  .topbar { margin-top: 12px; top: 8px; padding: 11px 12px; }
  .brand-lockup span:not(.brand-mark) { display: none; }
  .hero { padding: 62px 0 42px; gap: 36px; }
  .hero h1 { font-size: clamp(54px, 18vw, 78px); }
  .hero-lead { font-size: 18px; }
  .intro-strip { grid-template-columns: 1fr; }
  .content-section { padding-top: 78px; }
  .section-heading { grid-template-columns: 42px 1fr; gap: 10px; margin-bottom: 28px; }
  .section-number { font-size: 30px; }
  .section-heading h2, .final-cta h2 { font-size: 40px; }
  .evidence-grid, .challenge-grid, .proof-meaning, .lens-panel { grid-template-columns: 1fr; }
  .reasoning-flow, .hypothesis-card, .prototype-intro, .prototype-frame-wrap, .prototype-actions, .proof-meaning, .challenge-grid, .section-lead, .lens-tabs, .lens-panel, .method-layout, .sources-section details, .video-frame { margin-left: 0; }
  .prototype-frame-wrap iframe { height: 930px; }
  .lens-tabs { display: flex; width: 100%; }
  .lens-tabs button { flex: 1; }
  .source-list li { flex-direction: column; gap: 6px; }
  .final-cta { margin-top: 80px; margin-bottom: 50px; padding: 30px 24px; }
  .footer { flex-direction: column; padding-bottom: 95px; }
  .advisor-launcher { right: 12px; bottom: 12px; }
  .advisor-input-row { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Private Advisor runtime integration — no base room layout changes. */
.message.pending { opacity: .66; }
.advisor-sources { align-self: flex-start; display: flex; flex-direction: column; gap: 6px; max-width: 92%; padding: 2px 2px 8px; font-size: 12px; }
.advisor-sources span { color: var(--muted); font-weight: 700; }
.advisor-sources a { color: #3e5550; text-decoration: underline; text-underline-offset: 2px; }
.advisor-handoff-form { margin: 2px 0 18px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.advisor-handoff-title { font-weight: 750; margin-bottom: 4px; }
.advisor-handoff-form > p { margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.advisor-handoff-form label { display: block; margin: 10px 0; font-size: 12px; font-weight: 700; }
.advisor-handoff-form label span { color: var(--muted); font-weight: 400; }
.advisor-handoff-form input { display: block; width: 100%; box-sizing: border-box; margin-top: 6px; border: 1px solid var(--line-dark); border-radius: 12px; padding: 10px 11px; background: #fff; color: var(--ink); }
.advisor-handoff-form textarea { margin-top: 6px; }
.advisor-handoff-form .secondary-button { margin-top: 2px; }
.advisor-handoff-form .form-note { margin: 9px 0 0; }
