:root {
  color-scheme: light;
  --blue: #0c447c;
  --blue-mid: #12558f;
  --orange: #ee7623;
  --ink: #22282e;
  --muted: #5a6570;
  --paper: #ffffff;
  --mist: #f3f7fa;
  --line: #d9e2e9;
  --shadow: 0 20px 52px rgba(12, 68, 124, .12);
  font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; display: none; }
body { margin: 0; min-width: 320px; background: var(--mist); color: var(--ink); }
button, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 20; padding: .8rem 1rem; background: white; color: var(--blue); }
.skip-link:focus { top: 1rem; }
.navigation { display: flex; align-items: center; gap: .55rem; }
.nav-button { min-height: 42px; padding: .65rem .95rem; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--blue); font-weight: 650; transition: background .18s ease, transform .18s ease, border-color .18s ease; }
.nav-button:hover { transform: translateY(-2px); border-color: var(--blue); }
.nav-primary { background: var(--blue); color: white; border-color: var(--blue); }
.nav-primary:hover { background: var(--blue-mid); }
.nav-quiet { color: var(--muted); }
.welcome-screen { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 3rem 1.5rem; background: radial-gradient(ellipse at 82% 18%, rgba(18,85,143,.68), transparent 42%), var(--blue); color: white; overflow: hidden; position: relative; }
.welcome-screen::after { content: ""; position: absolute; width: min(40vw, 520px); height: min(40vw, 520px); right: -14vw; bottom: -20vw; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 48px rgba(255,255,255,.035), 0 0 0 96px rgba(255,255,255,.025); }
.welcome-inner { width: min(100%, 1000px); position: relative; z-index: 1; animation: rise-in .55s cubic-bezier(.2,.75,.25,1) both; }
.welcome-lockup { display: block; width: min(100%, 480px); height: auto; margin-bottom: 1.2rem; }
.welcome-label { margin: 0 0 1.2rem; color: #ffd0ac; font-size: .84rem; font-weight: 800; letter-spacing: .17em; }
.welcome-accent { width: 10px; height: 54px; margin-bottom: .8rem; border-radius: 99px; background: var(--orange); }
.welcome-inner h1 { margin: 0; color: white; font-size: clamp(4rem, 9vw, 7rem); line-height: .95; letter-spacing: -.065em; }
.welcome-subtitle { max-width: 660px; margin: 1rem 0 0; color: rgba(255,255,255,.82); font-size: clamp(1rem, 1.8vw, 1.35rem); line-height: 1.5; }
.continue-button { display: inline-flex; align-items: center; gap: 1rem; margin-top: 2.8rem; padding: .95rem 1.35rem; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; background: transparent; color: white; font-size: 1.05rem; font-weight: 650; transition: background .18s ease, transform .18s ease; }
.continue-button:hover { background: rgba(255,255,255,.12); transform: translateX(4px); }
.continue-button span { color: #ffd4b4; font-size: 1.35rem; }

.page { width: min(100% - 2rem, 1120px); margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) 0 5rem; animation: rise-in .35s cubic-bezier(.2,.75,.25,1) both; }
.page-narrow { width: min(100% - 2rem, 850px); }
.eyebrow { margin: 0 0 .85rem; color: var(--orange); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { color: var(--blue); font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.04; letter-spacing: -.045em; }
h2 { color: var(--blue); font-size: clamp(1.4rem, 2.5vw, 2rem); line-height: 1.16; letter-spacing: -.025em; }
.lead { max-width: 780px; color: var(--muted); font-size: clamp(1.12rem, 2vw, 1.38rem); line-height: 1.55; }
.rule { height: 1px; margin: 2rem 0; border: 0; background: var(--line); }
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.action-button { display: inline-flex; justify-content: center; align-items: center; gap: .65rem; min-height: 50px; padding: .85rem 1.2rem; border: 1px solid var(--blue); border-radius: 12px; background: var(--blue); color: white; font-weight: 700; text-align: left; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.action-button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(12,68,124,.18); background: var(--blue-mid); }
.action-secondary { background: white; color: var(--blue); }
.action-secondary:hover { background: #eef5fb; }
.action-text { padding: .35rem .1rem; border: 0; background: transparent; color: var(--blue); font-weight: 750; text-decoration: underline; text-underline-offset: 4px; }

.intro-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.intro-stat { display: flex; align-items: baseline; gap: .85rem; margin: 1.15rem 0; }
.intro-stat strong { color: var(--orange); font-size: clamp(3.4rem, 7vw, 5.5rem); line-height: .9; letter-spacing: -.07em; }
.intro-stat span { color: var(--blue); font-weight: 700; font-size: 1.25rem; }
.credential { color: var(--blue); font-size: 1.2rem; font-weight: 750; line-height: 1.4; }
.work-list { color: var(--ink); line-height: 1.7; }
.award-line { color: var(--blue); font-weight: 750; line-height: 1.5; }
.small-label { margin-bottom: .35rem; color: var(--orange); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.intro-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 3rem; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.intro-bottom p { margin-bottom: 0; line-height: 1.55; }
.brand-story { margin-top: 3.4rem; padding: 1.8rem; border-radius: 20px; background: white; box-shadow: var(--shadow); }
.brand-story img { display: block; width: min(100%, 440px); height: auto; margin-bottom: 1.25rem; }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin: 1.4rem 0 0; }
.timeline-step { position: relative; padding: 1rem 0 0; border-top: 3px solid var(--line); }
.timeline-step:first-child { border-color: var(--orange); }
.timeline-step strong { display: block; margin-bottom: .4rem; color: var(--blue); }
.timeline-step p { margin: 0; color: var(--muted); line-height: 1.45; }
.ux-note { margin-top: 1.8rem; color: var(--muted); font-size: .95rem; }

.question-panel { padding: clamp(1.6rem, 5vw, 3.5rem); border-radius: 24px; background: white; box-shadow: var(--shadow); }
.question-panel h1 { max-width: 900px; }
.question-number { display: flex; align-items: center; gap: .85rem; color: var(--muted); font-size: .9rem; font-weight: 700; }
.question-number span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: white; }
.choice-list { display: grid; gap: .75rem; max-width: 780px; margin-top: 2rem; }
.choice-button { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; min-height: 64px; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: 14px; background: white; color: var(--blue); font-size: 1.04rem; font-weight: 700; text-align: left; transition: border-color .18s ease, transform .18s ease, background .18s ease; }
.choice-button:hover { transform: translateX(4px); border-color: var(--blue); background: #f6f9fc; }
.choice-button .chevron { color: var(--orange); font-size: 1.4rem; }
.two-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.path-choice { min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; padding: 1.3rem; border: 1px solid var(--line); border-radius: 16px; background: white; color: var(--blue); text-align: left; transition: transform .18s ease, box-shadow .18s ease; }
.path-choice:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.path-choice strong { font-size: 1.2rem; }
.path-choice span { color: var(--muted); line-height: 1.45; }
.path-choice.featured { border-color: var(--orange); background: #fff9f4; }

.text-entry { display: grid; gap: .8rem; max-width: 780px; margin-top: 1.5rem; }
.text-entry label { color: var(--blue); font-weight: 750; }
.text-entry textarea { width: 100%; min-height: 145px; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; resize: vertical; background: white; color: var(--ink); line-height: 1.5; }
.text-entry small { color: var(--muted); }
.response-quote { margin: 1.2rem 0; padding: 1rem 1.25rem; border-left: 5px solid var(--orange); border-radius: 0 12px 12px 0; background: white; color: var(--blue); font-size: 1.15rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }

.topic-intro { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.topic-intro p { max-width: 520px; margin-bottom: .2rem; color: var(--muted); line-height: 1.5; }
.topic-group { margin-top: 2rem; }
.topic-group summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none; }
.topic-group summary::-webkit-details-marker { display: none; }
.topic-group-toggle { display: inline-flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .82rem; font-weight: 650; }
.topic-group-toggle b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #eef5fb; color: var(--blue); font-size: 1.1rem; transition: transform .18s ease; }
.topic-group[open] .topic-group-toggle b { transform: rotate(45deg); background: #fff0e5; color: var(--orange); }
.topic-group .topic-grid { margin-top: .7rem; }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.topic-button { display: flex; min-height: 112px; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: .8rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: white; color: var(--blue); text-align: left; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.topic-button:hover { transform: translateY(-3px); border-color: var(--orange); box-shadow: 0 12px 26px rgba(12,68,124,.1); }
.topic-button strong { font-size: 1rem; }
.topic-button span { color: var(--muted); font-size: .91rem; line-height: 1.38; }
.topic-ask { margin: 1.4rem 0 2rem; padding: 1.3rem 1.5rem; border-left: 5px solid var(--orange); background: white; border-radius: 0 14px 14px 0; color: var(--blue); font-size: clamp(1.15rem, 2.5vw, 1.55rem); font-weight: 750; line-height: 1.4; }
.topic-response { max-width: 850px; color: var(--ink); font-size: 1.12rem; line-height: 1.65; }
.topic-features-title { margin: 1.2rem 0 .65rem; color: var(--muted); font-size: .88rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.topic-feature-browser { display: grid; grid-template-columns: minmax(230px, .32fr) minmax(0, .68fr); gap: 1rem; align-items: stretch; }
.topic-feature-options { display: flex; flex-direction: column; gap: .45rem; }
.topic-feature-option { display: grid; flex: 0 0 auto; min-width: 0; grid-template-columns: 2rem minmax(0, 1fr); align-items: center; gap: .55rem; width: 100%; min-height: 52px; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--blue); text-align: left; cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.topic-feature-option:hover { border-color: var(--blue-mid); background: #f8fbfd; }
.topic-feature-option.is-selected { border-color: var(--blue); background: #eaf2f9; box-shadow: inset 3px 0 var(--orange); }
.topic-feature-option strong { font-size: .95rem; line-height: 1.3; overflow-wrap: anywhere; }
.topic-feature-index { color: var(--orange); font-size: .75rem; font-weight: 850; letter-spacing: .06em; }
.topic-feature-detail { min-width: 0; min-height: 320px; padding: 1.35rem 1.5rem; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 10px 28px rgba(12,68,124,.07); animation: rise-in .18s ease both; }
.topic-feature-detail h2 { margin: .35rem 0 .8rem; color: var(--blue); font-size: clamp(1.35rem, 2.4vw, 2rem); }
.topic-feature-detail > p:not(.small-label) { max-width: 850px; margin: 0; color: var(--muted); font-size: 1.08rem; line-height: 1.65; }
.stack-note.is-active { color: var(--blue); }
.stack-note.is-active strong { color: var(--orange); }
.feature-detail-note { display: grid; gap: .4rem; margin-top: 1.3rem; padding: 1rem 1.1rem; border-left: 3px solid var(--orange); border-radius: 0 10px 10px 0; background: #f6f9fc; }
.feature-detail-note strong { color: var(--blue); }
.feature-detail-note span { color: var(--muted); line-height: 1.5; }
.topic-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: .8rem 0; padding: 0; list-style: none; }
.topic-list li { display: flex; min-height: 84px; flex-direction: column; align-items: flex-start; gap: .45rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 13px; background: white; line-height: 1.4; }
.topic-list li::before { display: none; }
.topic-feature-number { color: var(--orange); font-size: .75rem; font-weight: 850; letter-spacing: .08em; }
.topic-next { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.topic-next p { margin-bottom: .8rem; color: var(--muted); font-size: .95rem; }
.pyramid {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: clamp(1.4rem, 4vw, 2.8rem) .9rem;
  isolation: isolate;
  border-radius: 18px;
  background: radial-gradient(ellipse at 50% 105%, #d7e5ed 0%, #6688a1 34%, #173b5a 68%, #102b45 100%);
}
.pyramid::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  content: "";
  background: repeating-linear-gradient(0deg, transparent 0 39px, #c5e6fc18 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, #c5e6fc18 39px 40px);
}
.school-flag {
  position: relative; z-index: 4; width: 4px; height: clamp(36px, 5vw, 62px);
  margin-bottom: -2px; border-radius: 4px;
  background: linear-gradient(90deg, #2e465c, #b9cbd6 55%, #425b6e);
}
.school-flag::after {
  content: ""; position: absolute; left: 3px; top: 3px;
  width: clamp(34px, 5vw, 60px); height: clamp(17px, 2.6vw, 28px);
  clip-path: polygon(0 4%, 32% 0, 65% 16%, 100% 12%, 82% 48%, 100% 86%, 67% 99%, 32% 85%, 0 91%);
  background: linear-gradient(90deg, #ffae4e, #f27822 52%, #ca4e12);
}
.pyramid-layer {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  color: white;
  font-size: clamp(.72rem, 1.45vw, 1.12rem);
  line-height: 1.1;
  font-weight: 800;
  text-align: center;
  text-shadow: 0 2px 4px #071a30b3;
  filter: brightness(var(--tier-brightness, 1)) drop-shadow(0 8px 6px #091c3166);
}
.pyramid-layer::before, .pyramid-layer::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
}
.pyramid-layer::before {
  clip-path: var(--tier-outline);
  background: var(--tier-left);
}
.pyramid-layer::after {
  clip-path: var(--tier-right-shape);
  background: var(--tier-right);
}
.pyramid-layer.is-active { --tier-brightness: 1.2; }
.pyramid-layer + .pyramid-layer { margin-top: calc(-1 * clamp(17px, 3.6vw, 33px)); }
.pyramid-school {
  z-index: 3;
  width: 43%;
  height: clamp(80px, 10vw, 136px);
  padding-top: clamp(32px, 5vw, 70px);
  --tier-outline: polygon(50% 0, 100% 79%, 50% 100%, 0 79%);
  --tier-right-shape: polygon(50% 0, 100% 79%, 50% 100%);
  --tier-left: linear-gradient(145deg, #ffb752 21%, #f67618 78%);
  --tier-right: linear-gradient(130deg, #ff9a30, #cc490a 88%);
}
.pyramid-universe, .pyramid-btp {
  --tier-outline: polygon(17% 12%, 50% 0, 83% 12%, 100% 67%, 50% 100%, 0 67%);
  --tier-right-shape: polygon(50% 29%, 83% 12%, 100% 67%, 50% 100%);
  padding-top: clamp(12px, 2vw, 26px);
}
.pyramid-universe {
  z-index: 2; width: 73%; height: clamp(67px, 9vw, 117px);
  --tier-left: linear-gradient(171deg, #174663 0 16%, #3989ba 27%, #195c89 73%);
  --tier-right: linear-gradient(130deg, #2c79ad, #103d61 84%);
}
.pyramid-btp {
  z-index: 1; width: 96%; height: clamp(63px, 8.5vw, 110px);
  --tier-left: linear-gradient(171deg, #122e4a 0 17%, #285578 28%, #133451 77%);
  --tier-right: linear-gradient(138deg, #214e74, #0b2440 88%);
}
.topic-feature-detail .pyramid { padding: .8rem .45rem; }
.topic-feature-detail .pyramid-school { height: 83px; padding-top: 38px; }
.topic-feature-detail .pyramid-universe { height: 68px; }
.topic-feature-detail .pyramid-btp { height: 63px; }
.stack-notes { display: grid; gap: 1rem; }
.stack-note { padding-left: 1rem; border-left: 3px solid var(--orange); }
.stack-note strong { display: block; margin-bottom: .25rem; color: var(--blue); }
.stack-note span { color: var(--muted); line-height: 1.45; }
.disclaimer { margin-top: 1.2rem; color: var(--muted); font-size: .82rem; line-height: 1.5; }

.feature-number { color: var(--orange); font-size: clamp(4.5rem, 9vw, 7rem); font-weight: 850; line-height: .9; letter-spacing: -.08em; }
.feature-banner { display: flex; align-items: center; gap: 1.2rem; margin: 1.7rem 0; }
.feature-banner strong { color: var(--blue); font-size: clamp(1.5rem, 3vw, 2.4rem); }
.channel-line { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.5rem 0; }
.channel-line span { padding: .7rem .95rem; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--blue); font-weight: 700; }
.feature-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2rem; }
.feature-rail > div { padding-top: .9rem; border-top: 3px solid var(--orange); }
.feature-rail strong { display: block; margin-bottom: .5rem; color: var(--blue); font-size: 1.1rem; }
.feature-rail p { margin: 0; color: var(--muted); line-height: 1.5; }
.principle-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin-top: 2rem; }
.principle-layout div { padding: 1.3rem 0; border-top: 3px solid var(--orange); }
.principle-layout strong { display: block; margin-bottom: .5rem; color: var(--blue); font-size: 1.3rem; }
.principle-layout p { margin: 0; color: var(--muted); line-height: 1.5; }

@keyframes rise-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

@media (max-width: 760px) {
  .topbar { align-items: center; padding: .5rem .8rem; }
  .brand { flex-basis: 164px; }
  .navigation { gap: .3rem; }
  .nav-button { min-height: 38px; padding: .5rem .65rem; font-size: .82rem; }
  .nav-quiet { display: none; }
  .page, .page-narrow { width: min(100% - 1.2rem, 1120px); padding-top: 2rem; }
  .intro-grid, .intro-bottom, .principle-layout { grid-template-columns: 1fr; }
  .intro-bottom { gap: 1rem; }
  .timeline { grid-template-columns: 1fr; gap: .9rem; }
  .timeline-step { padding: .8rem 0 0; }
  .topic-intro { display: block; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-feature-browser { grid-template-columns: 1fr; }
  .topic-feature-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-feature-detail { min-height: 240px; }
  .two-paths, .feature-rail { grid-template-columns: 1fr; }
  .path-choice { min-height: 120px; }
  .feature-banner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 440px) {
  .brand { flex-basis: 125px; }
  .nav-button { padding: .48rem .54rem; }
  .topic-grid { grid-template-columns: 1fr; }
  .topic-list { grid-template-columns: 1fr; }
  .topic-feature-options { grid-template-columns: 1fr; }
  .welcome-inner h1 { font-size: 4rem; }
  .welcome-lockup { width: min(100%, 340px); }
}

/* Presentation mode: keep the whole conversation visible on typical laptop screens. */
@media (min-width: 761px) {
  .page { width: min(100% - 3rem, 1320px); padding: clamp(1rem, 2.4vh, 2rem) 0 1.2rem; }
  .page-narrow { width: min(100% - 3rem, 1040px); }
  .eyebrow { margin-bottom: .45rem; }
  h1 { font-size: clamp(2rem, 4vh, 3.35rem); }
  .lead { font-size: clamp(1rem, 1.8vh, 1.2rem); line-height: 1.42; }
  .question-panel { padding: clamp(1.3rem, 3vh, 2.4rem); }
  .question-panel h1 { max-width: 920px; }
  .choice-list { gap: .55rem; margin-top: 1.2rem; }
  .choice-button { min-height: 54px; padding: .75rem 1rem; }
  .topic-intro { margin-bottom: .8rem; }
  .topic-intro h1 { margin-bottom: .3rem; }
  .topic-group { margin-top: .85rem; }
  .topic-groups { display: grid; gap: .55rem; }
  .topic-group { margin: 0; padding: .65rem .9rem; border: 1px solid var(--line); border-radius: 13px; background: white; }
  .topic-group summary { min-height: 38px; color: var(--blue); font-size: 1.05rem; font-weight: 750; }
  .topic-group .topic-grid { margin-top: .55rem; }
  .topic-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
  .topic-button { min-height: 75px; gap: .35rem; padding: .7rem .8rem; }
  .topic-button strong { font-size: .9rem; }
  .topic-button span { font-size: .78rem; line-height: 1.25; }
  .intro-grid { gap: 2.5rem; }
  .intro-stat { margin: .55rem 0; }
  .intro-stat strong { font-size: clamp(3rem, 6.5vh, 4.7rem); }
  .credential, .work-list { font-size: 1rem; }
  .intro-bottom { margin-top: .7rem; padding-top: .7rem; }
  .brand-story { display: block; margin-top: 1rem; padding: 1rem 1.2rem; }
  .timeline { grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: .2rem 0 0; }
  .timeline-step { padding-top: .55rem; }
  .timeline-step p { font-size: .86rem; line-height: 1.32; }
  .ux-note { grid-column: 1 / -1; margin: 0; font-size: .86rem; }
  .button-row { gap: .6rem; margin-top: 1rem; }
  .action-button { min-height: 44px; padding: .7rem 1rem; }
  .topic-ask { margin: .9rem 0 1rem; padding: .9rem 1.1rem; font-size: 1.15rem; }
  .topic-list { gap: .45rem; margin: .8rem 0; }
  .topic-list li { line-height: 1.35; }
  .topic-next { margin-top: 1rem; padding-top: .7rem; }
  .topic-next .button-row { margin-top: .45rem; }
  .topic-next .nav-button { min-height: 36px; padding: .45rem .7rem; font-size: .83rem; }
  .feature-rail, .principle-layout { margin-top: 1rem; }
}

/* Keep the conversation prompt and its choices together in the first view. */
@media (min-width: 761px) {
  .topbar { padding-top: .35rem; padding-bottom: .35rem; }
  .brand { flex-basis: 250px; }
  .page-question { padding-top: clamp(.75rem, 2vh, 1.4rem); padding-bottom: 1rem; }
  .page-question .question-panel { padding: clamp(1.3rem, 2.5vh, 2rem) clamp(1.4rem, 3vw, 2.5rem); }
  .page-question h1 { max-width: 980px; margin-bottom: .6rem; font-size: clamp(2rem, 3.4vw, 3.15rem); line-height: 1.06; }
  .page-question .eyebrow { margin-bottom: .55rem; }
  .page-question .lead { margin-bottom: 0; }
  .page-question .choice-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; max-width: none; margin-top: 1.2rem; }
  .page-question .choice-button { min-height: 62px; }
  .page-question .two-paths { margin-top: 1.1rem; }
  .page-question .path-choice { min-height: 108px; }
}

@media (min-width: 761px) and (max-height: 780px) {
  .topbar { padding-top: .35rem; padding-bottom: .35rem; }
  .brand { flex-basis: 230px; }
  .nav-button { min-height: 36px; padding: .45rem .75rem; }
  .page { padding-top: .65rem; padding-bottom: .55rem; }
  .topic-group { margin: 0; }
  .topic-button { min-height: 62px; padding: .5rem .65rem; }
  .brand-story { margin-top: .65rem; }
  .timeline-step p { font-size: .78rem; }
}

@media (max-width: 760px) {
  .topic-groups { display: grid; gap: .55rem; }
  .topic-group { margin: 0; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: 12px; background: white; }
  .topic-group summary { min-height: 36px; color: var(--blue); font-weight: 750; }
  .topic-group-toggle { font-size: .72rem; }
  .topic-group .topic-grid { margin-top: .5rem; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-button { min-height: 82px; }
}

/* Persistent presenter controls stay together above the footer. */
.bottom-dock:not([hidden]) {
  position: fixed;
  z-index: 15;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .75rem;
  min-height: 62px;
  padding: .55rem 1rem;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.97);
  box-shadow: 0 -8px 26px rgba(12,68,124,.07);
  backdrop-filter: blur(14px);
}
.restart-control { margin-right: auto; flex: 0 0 auto; }
.dock-standard { display: flex; align-items: center; justify-content: flex-end; gap: .55rem; flex: 0 0 auto; }
.page-actions { position: static; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .55rem; max-width: none; overflow: visible; }
.page-actions:empty { display: none; }
.page-actions .action-button, .page-actions .nav-button, .page-actions .choice-button { width: auto; min-width: 0; min-height: 44px; padding: .55rem .85rem; border-radius: 12px; font-size: .88rem; white-space: nowrap; }
.page-actions .choice-button { justify-content: center; border-color: var(--blue); background: var(--blue); color: white; }
.page-actions .choice-button .chevron { color: #ffd0ac; }
.page-actions .choice-button:hover { background: var(--blue-mid); }
.bottom-dock .nav-button { min-width: 116px; }

@media (max-width: 760px) {
  .bottom-dock:not([hidden]) { bottom: 0; display: flex; flex-wrap: wrap; justify-content: flex-start; min-height: 62px; gap: .3rem; padding: .4rem .6rem; }
  .dock-standard { order: 0; }
  .page-actions { order: 1; position: static; justify-self: auto; width: auto; max-width: none; justify-content: flex-end; flex-wrap: wrap; overflow: visible; }
  .bottom-dock .nav-button { min-width: 0; padding: .5rem .72rem; font-size: .82rem; }
  .page-actions .action-button, .page-actions .nav-button, .page-actions .choice-button { min-height: 38px; padding: .4rem .62rem; font-size: .76rem; }
}

/* Flat, searchable flow picker. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.topic-search { position: relative; display: block; width: min(100%, 760px); margin: .2rem 0 1.2rem; }
.topic-search input { width: 100%; min-height: 54px; padding: .8rem 1.2rem .8rem 3rem; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--ink); font-size: 1rem; box-shadow: 0 8px 24px rgba(12,68,124,.06); }
.topic-search input:focus { border-color: var(--blue); outline: 3px solid rgba(18,85,143,.14); }
.topic-search-icon { position: absolute; left: 1.1rem; top: 50%; color: var(--blue); font-size: 1.5rem; line-height: 1; transform: translateY(-55%); pointer-events: none; }
.topic-pill-list { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.topic-pill { display: inline-flex; align-items: center; justify-content: flex-start; gap: .55rem; min-height: 48px; max-width: 100%; padding: .65rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--blue); text-align: left; box-shadow: 0 5px 16px rgba(12,68,124,.045); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.topic-pill:hover { transform: translateY(-2px); border-color: var(--orange); background: #fffaf6; box-shadow: 0 9px 20px rgba(12,68,124,.1); }
.topic-pill strong { font-size: .95rem; white-space: nowrap; }
.topic-pill span { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.topic-pill span::before { content: "·"; margin-right: .5rem; color: var(--orange); font-weight: 800; }
.topic-empty { margin: .6rem 0; color: var(--muted); }
.topic-pill[hidden] { display: none !important; }

/* Vertical selectors with a persistent explanation panel for every browseable list. */
.topic-menu-browser, .story-browser, .quick-tour-browser, .choice-browser { display: grid; grid-template-columns: minmax(230px, .72fr) minmax(0, 1.28fr); gap: 1rem; align-items: stretch; }
.topic-menu-browser { margin-top: .8rem; }
.topic-pill-list { display: grid; align-content: start; gap: .42rem; max-height: min(58vh, 540px); overflow-y: auto; padding: .1rem .3rem .1rem 0; }
.topic-pill { display: grid; justify-items: start; width: 100%; min-height: 54px; padding: .62rem .85rem; border-radius: 11px; }
.topic-pill strong { white-space: normal; }
.topic-pill span { white-space: normal; }
.topic-pill span::before { content: none; }
.topic-pill.is-selected { border-color: var(--blue); background: #eaf2f9; box-shadow: inset 3px 0 var(--orange); }
.topic-menu-detail, .story-detail, .quick-tour-detail, .choice-detail { display: flex; min-height: 340px; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(1.35rem, 3vw, 2.5rem); border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow); }
.topic-menu-detail h2, .story-detail h2, .quick-tour-detail h2, .choice-detail h2 { margin: .25rem 0 .75rem; font-size: clamp(1.6rem, 2.7vw, 2.5rem); }
.topic-menu-detail > p:not(.small-label), .story-detail > p:not(.small-label), .quick-tour-detail > p, .choice-detail > p { max-width: 760px; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.6; }
.topic-menu-detail .action-button, .quick-tour-detail .action-button, .choice-detail .action-button { margin-top: .7rem; }
.topic-intro + .topic-search { margin-bottom: .9rem; }
.story-options, .quick-tour-options, .choice-options { display: flex; flex-direction: column; align-content: start; gap: .5rem; }
.story-option, .quick-tour-option, .choice-option { display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 58px; padding: .8rem 1rem; border: 1px solid var(--line); border-left: 4px solid transparent; border-radius: 12px; background: white; color: var(--blue); text-align: left; font-weight: 750; }
.story-option span { color: var(--orange); font-size: .8rem; letter-spacing: .08em; }
.story-option.is-selected, .quick-tour-option.is-selected, .choice-option.is-selected { border-color: #b9ccdc; border-left-color: var(--orange); background: #fff4eb; }
.quick-tour-detail, .choice-detail { min-height: 260px; }
.choice-browser { margin-top: 1.1rem; }
.page-question .question-panel { max-width: none; }
.sap-detail-metric { display: flex; flex-direction: column; margin: .15rem 0 .7rem; color: var(--orange); font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 850; letter-spacing: -.06em; line-height: 1; }
.sap-detail-metric span { margin-top: .45rem; color: var(--muted); font-size: 1rem; font-weight: 650; letter-spacing: 0; }
.page-topic-menu .topic-pill-list { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; max-height: none; overflow: visible; padding: 0; }
.page-topic-menu .topic-pill { display: inline-flex; align-items: center; justify-items: initial; justify-content: flex-start; gap: .55rem; width: auto; min-height: 48px; max-width: 100%; padding: .65rem 1rem; border-radius: 999px; }
.page-topic-menu .topic-pill strong { min-width: 0; overflow-wrap: anywhere; }
.page-topic-menu .topic-pill span { min-width: 0; overflow-wrap: anywhere; }
.page-topic-menu .topic-pill span::before { content: "·"; margin-right: .5rem; color: var(--orange); font-weight: 800; }

@media (max-width: 760px) {
  .topic-search { width: 100%; margin-bottom: .9rem; }
  .topic-search input { min-height: 48px; font-size: .94rem; }
  .topic-pill-list { gap: .5rem; }
  .topic-pill { min-height: 44px; gap: .4rem; padding: .55rem .8rem; }
  .topic-pill strong { font-size: .86rem; }
  .topic-pill span { font-size: .72rem; }
  .page-topic-menu .topic-pill-list { gap: .5rem; }
  .page-topic-menu .topic-pill { width: 100%; flex-direction: column; align-items: flex-start; min-height: 44px; gap: .15rem; padding: .55rem .8rem; }
  .page-topic-menu .topic-pill span::before { content: none; }
  .page-topic-menu .topic-pill strong { font-size: .86rem; }
  .page-topic-menu .topic-pill span { font-size: .72rem; }
  .topic-menu-browser, .story-browser, .quick-tour-browser, .choice-browser { grid-template-columns: 1fr; gap: .65rem; }
  .topic-pill-list { max-height: 30vh; }
  .topic-menu-detail, .story-detail, .quick-tour-detail, .choice-detail { min-height: 210px; padding: 1.1rem; }
}

/* Clickable product rail with a live detail panel. */
.product-browser { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); gap: 1rem; align-items: stretch; margin: 1.25rem 0 .5rem; }
.product-options { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: .5rem; }
.product-option { display: grid; min-width: 0; overflow-wrap: anywhere; gap: .22rem; width: 100%; padding: .82rem 1rem; border: 1px solid var(--line); border-left: 4px solid transparent; border-radius: 12px; background: white; color: var(--blue); text-align: left; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.product-option:hover { border-color: #a9bfd2; background: #f8fbfd; }
.product-option.is-selected { border-color: #b9ccdc; border-left-color: var(--orange); background: #fff; box-shadow: 0 8px 22px rgba(12,68,124,.08); }
.product-option strong { font-size: .98rem; }
.product-option span { color: var(--muted); font-size: .8rem; }
.product-detail { min-height: 320px; padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow); }
.product-detail h2 { margin-bottom: .7rem; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.product-detail .small-label { margin: .2rem 0 .8rem; }
.product-detail .lead { line-height: 1.55; }
.universe-story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0 1rem; }
.universe-story-grid article { min-height: 180px; padding: 1.3rem; border-top: 3px solid var(--orange); border-radius: 0 0 14px 14px; background: white; box-shadow: 0 10px 30px rgba(12,68,124,.07); }
.story-marker { color: var(--orange); font-size: .8rem; font-weight: 850; letter-spacing: .12em; }
.story-strapline { margin: -.25rem 0 .55rem; color: var(--blue); font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 750; }
.universe-story-grid h2 { margin: .7rem 0 .45rem; font-size: 1.2rem; }
.universe-story-grid p, .story-team span { color: var(--muted); line-height: 1.45; }
.story-team { display: flex; align-items: baseline; gap: .75rem; margin: .8rem 0 0; padding: .85rem 1rem; border-radius: 12px; background: #eaf2f8; }
.story-team strong { color: var(--blue); white-space: nowrap; }
.story-team span { font-size: .92rem; }
.sap-capabilities { margin-top: 1.6rem; }
.disclaimer a { color: var(--blue); text-underline-offset: 3px; }
.sap-scale-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin: .85rem 0 1rem; }
.sap-scale-stats > div { display: flex; align-items: baseline; gap: .55rem; padding: .65rem .85rem; border: 1px solid var(--line); border-top: 3px solid var(--orange); border-radius: 0 0 11px 11px; background: white; }
.sap-scale-stats strong { color: var(--blue); font-size: clamp(1.25rem, 2.2vw, 1.8rem); font-weight: 850; letter-spacing: -.04em; white-space: nowrap; }
.sap-scale-stats span { color: var(--muted); font-size: .86rem; line-height: 1.25; }
.sap-overview-browser { display: grid; grid-template-columns: minmax(250px, .68fr) minmax(0, 1.32fr); gap: 1rem; align-items: stretch; margin: .8rem 0 .75rem; }
.sap-overview-options { display: grid; align-content: stretch; gap: .55rem; }
.sap-overview-option { display: flex; align-items: center; gap: .8rem; width: 100%; min-height: 74px; padding: .85rem 1rem; border: 1px solid var(--line); border-left: 4px solid transparent; border-radius: 12px; background: white; color: var(--blue); text-align: left; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.sap-overview-option:hover { transform: translateX(3px); border-color: #afc4d7; }
.sap-overview-option.is-selected { border-color: #b9ccdc; border-left-color: var(--orange); background: #fff4eb; }
.sap-option-index { color: var(--orange); font-size: 1rem; font-weight: 850; letter-spacing: .06em; }
.sap-overview-option strong, .sap-overview-option small { display: block; }
.sap-overview-option strong { margin-bottom: .18rem; font-size: .98rem; }
.sap-overview-option small { color: var(--muted); font-size: .78rem; line-height: 1.3; }
.sap-overview-detail { display: flex; min-height: clamp(290px, 37vh, 390px); flex-direction: column; justify-content: center; padding: clamp(1.35rem, 3vw, 2.6rem); border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow); }
.sap-overview-detail .small-label { margin-bottom: .55rem; color: var(--orange); }
.sap-overview-detail h2 { max-width: 760px; margin-bottom: .8rem; font-size: clamp(1.7rem, 3vw, 2.6rem); }
.sap-detail-summary { max-width: 760px; margin-bottom: 1.2rem; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.55; }
.sap-detail-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.sap-detail-tags span { padding: .5rem .72rem; border: 1px solid var(--line); border-radius: 999px; background: var(--mist); color: var(--blue); font-size: .82rem; font-weight: 700; }
.intro-product-layout { display: grid; grid-template-columns: minmax(320px, .82fr) minmax(0, 1.58fr); gap: 1.2rem; align-items: stretch; }
.founder-panel { padding: clamp(1.2rem, 2.2vw, 1.8rem); border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow); }
.founder-panel h1 { margin-bottom: .55rem; font-size: clamp(2.3rem, 4vw, 3.4rem); }
.founder-panel .intro-stat { margin: .6rem 0; }
.founder-panel .intro-stat strong { font-size: clamp(3.2rem, 5vw, 4.3rem); }
.founder-panel .credential { margin-bottom: .85rem; font-size: 1rem; }
.founder-panel .small-label { margin: .7rem 0 .2rem; }
.founder-panel .work-list { margin-bottom: .4rem; font-size: .9rem; line-height: 1.45; }
.founder-education { margin: .65rem 0 0; color: var(--muted); font-size: .85rem; }
.product-family-panel { min-width: 0; padding: .35rem .2rem; }
.product-family-panel .eyebrow { margin-bottom: .35rem; }
.product-family-panel h2 { margin-bottom: .25rem; font-size: clamp(1.5rem, 2.4vw, 2.2rem); }
.product-prompt { margin-bottom: .4rem; color: var(--muted); font-size: .85rem; }
.product-family-panel .product-browser { grid-template-columns: minmax(215px, .82fr) minmax(0, 1.18fr); gap: .65rem; margin: .55rem 0; }
.product-family-panel .product-options { gap: .4rem; }
.product-family-panel .product-option { padding: .65rem .8rem; }
.product-family-panel .product-option strong { font-size: .9rem; }
.product-family-panel .product-option span { font-size: .74rem; }
.product-family-panel .product-detail { min-height: 0; padding: 1.25rem; }
.product-family-panel .product-detail h2 { margin-bottom: .5rem; font-size: clamp(1.5rem, 2.5vw, 2.2rem); }
.product-family-panel .product-detail .lead { font-size: .98rem; }
.page-founder .intro-grid { align-items: start; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(1.2rem, 3vw, 2.5rem); }
.page-founder { padding-top: clamp(.55rem, 1.1vh, .85rem); }
.page-founder .eyebrow { margin: 0; }
.founder-highlights { margin-top: .9rem; padding: .9rem 1rem; border-left: 4px solid var(--orange); border-radius: 0 14px 14px 0; background: white; box-shadow: 0 8px 22px rgba(12,68,124,.06); }
.founder-highlights .small-label { margin: .1rem 0 .3rem; }
.founder-highlights .credential { margin: 0 0 .65rem; font-size: 1rem; line-height: 1.45; }
.founder-highlights .award-line { margin: 0; font-size: 1.05rem; line-height: 1.5; }
.founder-languages { margin-top: .8rem; padding: .7rem .85rem; border-radius: 12px; background: #fff4eb; }
.founder-languages .small-label { margin: 0 0 .25rem; color: var(--orange); }
.founder-languages .work-list { margin: 0; color: var(--blue); font-size: .88rem; font-weight: 700; line-height: 1.45; }
.founder-profile { display: flex; flex-direction: column; align-items: flex-start; }
.founder-profile :is(.founder-highlights, .founder-languages, .founder-interests) { width: 100%; }
.founder-interests { margin-top: .8rem; padding: .7rem .85rem; border-radius: 12px; background: #fff4eb; }
.founder-interests .small-label { margin: 0 0 .25rem; color: var(--orange); }
.founder-interests p:last-child { margin: 0; color: var(--blue); font-size: .88rem; font-weight: 700; line-height: 1.45; }
.founder-interests span { padding: 0 .2rem; color: var(--orange); }
.global-work-panel { min-width: 0; padding: 1.1rem; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow); }
.global-work-panel .small-label { margin-bottom: .2rem; }
.global-work-panel h2 { margin-bottom: .25rem; font-size: clamp(1.25rem, 2vw, 1.7rem); }
.company-prompt { margin-bottom: .7rem; color: var(--muted); font-size: .82rem; }
.global-work-browser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: .75rem; align-items: start; }
.company-options { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: .35rem; }
.company-group-label { grid-column: 1 / -1; margin: .35rem 0 .05rem; color: var(--muted); font-size: .65rem; font-weight: 800; letter-spacing: .12em; line-height: 1.2; text-transform: uppercase; }
.company-option { display: flex; min-width: 0; min-height: 43px; align-items: center; gap: .6rem; padding: .4rem .6rem; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--blue); font-weight: 700; text-align: left; transition: border-color .16s ease, background .16s ease; }
.company-option-logo { display: block; width: 72px; height: 25px; flex: 0 0 72px; object-fit: contain; }
.company-option-wordmark { display: block; width: 72px; flex: 0 0 72px; color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: -.03em; }
.company-option-label { min-width: 0; color: var(--blue); font-size: .8rem; font-weight: 700; overflow-wrap: anywhere; }
.company-option:hover { border-color: var(--orange); background: #fffaf6; }
.company-option.is-selected { border-color: var(--orange); background: #fff4eb; }
.company-detail { padding: 1rem; border-radius: 13px; background: var(--mist); }
.company-detail-logo { display: flex; min-height: 55px; align-items: center; margin: 0 0 .35rem; }
.company-detail-logo img { display: block; max-width: min(100%, 220px); max-height: 54px; object-fit: contain; object-position: left center; }
.company-detail .small-label { margin: 0 0 .5rem; }
.company-detail h3 { margin: 0 0 .55rem; color: var(--blue); font-size: 1.3rem; }
.company-detail p:last-child { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.company-route, .company-note { margin: .45rem 0 0; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.company-note { padding-top: .55rem; border-top: 1px solid var(--line); color: var(--blue); }
.company-summary { margin: .75rem 0 .55rem; color: var(--ink); font-size: .92rem; line-height: 1.55; }
.company-source { color: var(--blue); font-size: .78rem; font-weight: 700; text-underline-offset: 3px; }
.page-saptechs .saptechs-heading { max-width: 980px; margin-bottom: 1rem; }
.page-saptechs .product-family-panel { margin-top: .9rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow); }
.page-saptechs .product-family-panel .product-browser { margin: .5rem 0 0; }
.page-saptechs .product-family-panel .product-detail { min-height: 320px; }
.page-role-journey { width: min(100% - 2rem, 1280px); padding: clamp(.65rem, 1.2vh, 1rem) 0 .45rem; }
.page-role-journey .eyebrow { margin-bottom: .3rem; }
.role-journey-intro { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: .7rem; }
.role-journey-intro h1 { max-width: 820px; margin-bottom: 0; font-size: clamp(1.9rem, 3.6vw, 3.2rem); }
.role-journey-intro > p { max-width: 400px; margin: 0 0 .2rem; color: var(--muted); font-size: 1rem; line-height: 1.45; }
.role-journey-layout { display: grid; grid-template-columns: minmax(230px, .34fr) minmax(0, .66fr); gap: .8rem; align-items: stretch; }
.role-options { display: grid; align-content: start; gap: .4rem; }
.role-option { display: flex; min-height: 48px; flex-direction: column; justify-content: center; gap: .12rem; padding: .45rem .75rem; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--blue); text-align: left; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.role-option:hover { transform: translateX(2px); border-color: var(--blue-mid); }
.role-option.is-selected { border-color: #b9ccdc; background: #fff4eb; box-shadow: inset 3px 0 var(--orange); }
.role-option strong { font-size: .91rem; line-height: 1.2; }
.role-option span { color: var(--muted); font-size: .75rem; line-height: 1.2; }
.role-detail { display: flex; min-width: 0; flex-direction: column; padding: .9rem 1.05rem; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: var(--shadow); }
.role-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .55rem; }
.role-detail-head .small-label { margin: 0 0 .2rem; }
.role-detail-head h2 { margin: 0; font-size: clamp(1.35rem, 2.2vw, 1.85rem); }
.role-subtitle { padding: .4rem .65rem; border: 1px solid var(--line); border-radius: 999px; background: var(--mist); color: var(--muted); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.role-daily { margin: 0 0 .6rem; }
.role-daily .small-label { margin-bottom: .2rem; }
.role-daily p:last-child, .role-peaceful p:last-child { margin: 0; color: var(--muted); font-size: .91rem; line-height: 1.45; }
.role-peaceful { margin-bottom: .7rem; padding: .65rem .8rem; border-left: 3px solid var(--orange); border-radius: 0 11px 11px 0; background: var(--mist); }
.role-peaceful .small-label { margin-bottom: .2rem; }
.role-helps > .small-label { margin-bottom: .25rem; }
.role-help-list { display: grid; gap: .28rem; }
.role-help-item { display: grid; grid-template-columns: minmax(115px, .27fr) minmax(0, .73fr); gap: .55rem; padding: .35rem 0; border-top: 1px solid var(--line); }
.role-help-item strong { color: var(--blue); font-size: .83rem; line-height: 1.35; }
.role-help-item p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.role-timeback { display: flex; gap: .5rem; align-items: baseline; margin: auto 0 0; padding-top: .55rem; border-top: 1px solid var(--line); color: var(--blue); font-size: .82rem; line-height: 1.4; }
.role-timeback strong { flex: 0 0 auto; color: var(--orange); }
.page-role-journey .button-row { margin-top: .55rem; }

@media (max-width: 760px) {
  .role-journey-intro { display: block; }
  .role-journey-intro > p { margin-top: .45rem; }
  .role-journey-layout { grid-template-columns: 1fr; }
  .role-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role-option { min-height: 56px; }
  .page-founder .intro-grid, .global-work-browser { grid-template-columns: minmax(0, 1fr); }
  .company-options { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
  .global-work-panel { padding: .85rem; }
  .sap-scale-stats { grid-template-columns: 1fr; gap: .45rem; }
  .sap-scale-stats > div { min-height: 54px; }
  .sap-overview-browser { grid-template-columns: 1fr; gap: .65rem; }
  .sap-overview-options { grid-template-columns: 1fr; gap: .4rem; }
  .sap-overview-option { min-height: 58px; padding: .65rem .8rem; }
  .sap-overview-detail { min-height: 250px; padding: 1.1rem; }
  .page-saptechs .product-family-panel { padding: .8rem; }
  .page-saptechs .product-family-panel .product-browser { grid-template-columns: 1fr; }
  .page-saptechs .product-family-panel .product-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-saptechs .product-family-panel .product-detail { min-height: 220px; }
  .intro-product-layout { grid-template-columns: 1fr; }
  .product-family-panel { padding: .4rem 0; }
  .product-family-panel .product-browser { grid-template-columns: 1fr; }
  .product-family-panel .product-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-browser { grid-template-columns: 1fr; }
  .product-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-option { padding: .72rem; }
  .product-detail { min-height: 220px; }
  .universe-story-grid { grid-template-columns: 1fr; gap: .7rem; }
  .universe-story-grid article { min-height: 0; padding: 1rem; }
  .story-team { align-items: flex-start; flex-direction: column; gap: .25rem; }
}


.leadership-shortcut {
  display: block;
  margin: 0.8rem auto 0;
  padding: 0.35rem 0.6rem;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  cursor: pointer;
}

.leadership-shortcut:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Fit each presentation slide above the navigation, with scrolling where content needs it. */
body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100dvh;
  overflow: hidden;
}

.slide-title-bar {
  grid-row: 1;
  padding: .65rem clamp(.65rem, 1.7vw, 1.5rem);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.slide-title-bar h1 {
  width: min(100%, 1320px);
  margin: 0 auto;
  font-size: clamp(1.25rem, 2.5vw, 1.9rem);
  line-height: 1.18;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
#stage { grid-row: 2; min-width: 0; min-height: 0; overflow: auto; }
.bottom-dock:not([hidden]) { grid-row: 3; position: static; }
.page, .page-narrow { padding-bottom: 1rem; animation: none; }

.overview-options .small-label { flex: 0 0 auto; grid-column: 1 / -1; margin: .35rem 0 .1rem; }
.overview-options { align-content: start; }
.topic-intro, .role-journey-intro { align-items: start; }
.topic-intro > div:empty { display: none; }
.overview-options .topic-feature-option { grid-template-columns: minmax(0, 1fr); }
#overview-detail .topic-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); align-items: stretch; margin-top: .8rem; }

@media (min-width: 761px) {
  .page { display: flex; flex-direction: column; min-height: 100%; height: 100%; }
  .page > * { flex-shrink: 0; }
  .page > :is(.story-browser, .quick-tour-browser, .topic-feature-browser,
    .sap-overview-browser, .role-journey-layout, .intro-grid, .product-family-panel) {
    flex: 1 0 150px;
    min-height: 0;
  }
  .page-saptechs .product-family-panel {
    display: flex;
    flex-direction: column;
  }
  .page-saptechs .product-family-panel .product-browser { flex: 1 1 0; min-height: 0; }
  .page-founder .intro-grid {
    min-height: 0;
  }
  .page-founder .founder-profile { min-height: 0; overflow-y: auto; }
  .page-founder .founder-profile > * { flex-shrink: 0; }
  .page-question { justify-content: center; height: auto; }
  .page :is(.story-browser, .quick-tour-browser, .choice-browser, .topic-feature-browser,
    .product-browser, .sap-overview-browser, .role-journey-layout) {
    grid-template-columns: minmax(0, 27fr) minmax(0, 73fr);
    gap: .8rem;
    align-items: stretch;
  }
  .page-saptechs .product-family-panel .product-browser { grid-template-columns: minmax(0, 27fr) minmax(0, 73fr); }
  .page .topic-feature-browser:has(.overview-options) { grid-template-columns: minmax(0, 31fr) minmax(0, 69fr); }
  .page-founder .intro-grid { align-items: stretch; }
  .page-founder .global-work-panel {
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    contain: size;
  }
  .page-founder .global-work-browser {
    grid-template-columns: minmax(0, 36fr) minmax(0, 64fr);
    min-height: 0;
    align-items: stretch;
  }
  .page :is(.story-options, .quick-tour-options, .choice-options, .topic-feature-options,
    .product-options, .sap-overview-options, .role-options, .company-options) {
    min-height: 0;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
    align-content: start;
    overscroll-behavior: contain;
  }
  .page :is(.story-detail, .quick-tour-detail, .choice-detail, .topic-feature-detail,
    .product-detail, .sap-overview-detail, .role-detail, .company-detail) {
    min-height: 0;
    min-width: 0;
    overflow: auto;
    justify-content: start;
    padding: clamp(.85rem, 2vw, 1.5rem);
    overscroll-behavior: contain;
  }
  .page-saptechs .product-family-panel .product-detail { min-height: 0; }
  .page-topic-menu:has(#topic-search) #topic-pill-list { flex: 0 1 auto; min-height: 0; overflow: auto; }
  .page-universe-story :is(h1, .lead, .story-section-title) { margin-bottom: .55rem; }
  .page-universe-story .story-team { margin-top: .5rem; padding-block: .55rem; }
  .page-saptechs .saptechs-heading { margin-bottom: .55rem; }
  .page-saptechs .product-family-panel { margin-top: .55rem; }
}

@media (max-width: 760px) {
  .overview-options, .company-options { max-height: 42dvh; overflow-x: hidden; overflow-y: auto; }
}

.discussion-prompt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: clamp(230px, 40dvh, 420px);
  padding: clamp(1.3rem, 4vw, 3rem);
}
.discussion-prompt h2 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(1.55rem, 3.5vw, 3rem);
  line-height: 1.15;
}
.question-mark { color: var(--orange); font-size: clamp(3.2rem, 9vw, 7rem); font-weight: 850; line-height: 1; }
.overview-selector { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: .55rem; }
.overview-group { display: contents; }
.overview-group[hidden], .overview-options .topic-feature-option[hidden] { display: none; }
.feature-search input, #prompt-notes textarea { width: 100%; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 9px; font: inherit; color: var(--ink); background: white; }
#prompt-notes { width: min(580px, calc(100vw - 2rem)); padding: 1.2rem; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); }
#prompt-notes::backdrop { background: #132e5166; }
#prompt-notes label, #prompt-notes textarea { display: block; margin-bottom: .6rem; }
#prompt-notes [role=status] { min-height: 1.4em; margin-bottom: .6rem; }
@media (max-width: 480px) {
  .discussion-prompt { grid-template-columns: 1fr; align-content: center; gap: .7rem; }
}

.architecture-pyramid { min-width: 0; margin: .5rem 0 0; }
.architecture-art { position: relative; width: 100%; margin-inline: auto; container-type: inline-size; }
.architecture-pyramid img { display: block; width: 100%; height: auto; object-fit: contain; }
.page > .architecture-pyramid {
  flex: 1 1 auto;
  min-height: 0;
  container-type: size;
  display: grid;
  place-items: center;
}
.page > .architecture-pyramid .architecture-art { width: min(100%, calc(100cqh * 16 / 9)); }
.architecture-heading, .architecture-level, .architecture-institute, .architecture-callout {
  position: absolute;
  color: #fff;
  background: #101b2c;
}
.architecture-heading {
  inset: 7% auto auto 4%;
  width: 57%;
  height: 11%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 .4cqw;
  font-size: 2.7cqw;
  line-height: 1.16;
  text-transform: uppercase;
}
.architecture-heading span { color: #cfdfed; font-size: 1.7cqw; text-transform: none; }
.architecture-level {
  left: 19.2%;
  width: 8.8%;
  padding: .13cqw .35cqw;
  font-size: 1.65cqw;
  font-weight: 750;
  text-transform: uppercase;
  color: #8ed3ff;
}
.level-school { top: 39.9%; color: #ffbd76; }
.level-universe { top: 55.7%; }
.level-cloud { top: 72.3%; }
.architecture-institute, .architecture-callout {
  right: 4.65%;
  width: 22.5%;
  height: 14%;
  display: grid;
  place-content: center;
  padding: .7cqw;
  border: 1px solid #647d96;
  border-radius: 1cqw;
  background: linear-gradient(135deg, #233145, #121b2a);
  text-align: center;
  font-size: 1.85cqw;
  line-height: 1.14;
  overflow-wrap: anywhere;
}
.architecture-institute { top: 30.8%; border-color: #c99051; font-weight: 750; overflow: auto; }
.callout-universe { top: 50.4%; }
.callout-cloud { top: 70.1%; }
.architecture-callout span { color: #c4d9eb; font-size: 1.45cqw; margin-top: .4cqw; }
@media (max-width: 760px) {
  .page > .architecture-pyramid { container-type: normal; display: block; }
  .page > .architecture-pyramid .architecture-art { width: 100%; }
}
.topic-feature-detail .architecture-pyramid { margin-top: .75rem; }

.welcome-inner h1 { max-width: 12ch; font-size: clamp(2.5rem, 7vw, 5.8rem); line-height: 1.02; }
.meeting-context { margin: 0 0 .7rem; color: var(--muted); }
.meeting-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: .8rem; }
.meeting-facts > div { padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: white; }
.meeting-facts dt { color: var(--muted); font-weight: 650; }
.meeting-facts dd { margin: .35rem 0 0; color: var(--blue); overflow-wrap: anywhere; }
.meeting-suggestions { margin-bottom: 1rem; }
.meeting-suggestions p { margin-bottom: .4rem; }
