@font-face {
  font-family: Manrope;
  src: url(./assets/manrope-ru.woff2) format('woff2');
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  src: url(./assets/manrope-latin.woff2) format('woff2');
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F;
}
:root {
  color-scheme: dark;
  --night: #08191f;
  --pale: #f1f5eb;
  --mint: #9bf4d5;
  --text: #cbd8d5;
  --ink: #18323a;
  --side: clamp(20px, 5vw, 92px);
  font:
    16px/1.5 Manrope,
    Arial,
    sans-serif;
  color: var(--pale);
  background: var(--night);
  scroll-snap-type: y proximity;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  color: inherit;
}
button:disabled {
  cursor: default;
}
button,
a,
select {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 3px solid #ffaf75;
  outline-offset: 4px;
}
.sr,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip:focus {
  position: fixed;
  top: 70px;
  left: 20px;
  z-index: 10;
  background: var(--mint);
  color: var(--ink);
  padding: 8px;
}
.shell {
  width: min(1600px, calc(100% - 2 * var(--side)));
  margin-inline: auto;
}
.mast,
.transport {
  position: fixed;
  z-index: 4;
  inset-inline: 0;
  padding-inline: var(--side);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mast {
  top: 0;
  min-height: 80px;
  gap: 20px;
  background: linear-gradient(#09191ed9, #09191e90 70%, transparent);
}
.brand,
.mast nav,
.kicker,
.closing,
.position,
.arrows,
.menutop {
  display: flex;
  align-items: center;
}
.brand {
  gap: 8px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.055em;
}
.brand small {
  font-size: 11px;
  letter-spacing: 0.07em;
  color: #d1dedd;
}
.mast nav {
  gap: 10px;
}
.mast nav a,
.mast nav button,
.start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 750;
  min-height: 39px;
}
.mast nav button {
  background: #0d232bbd;
  border: 1px solid #accac450;
}
.mast .nav-cta,
.start {
  background: var(--mint);
  border: 1px solid transparent;
  color: #102f31;
}
.mast .nav-cta:hover,
.start:hover {
  background: #cbffe5;
}
.scene {
  isolation: isolate;
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 110px 0 98px;
  overflow: clip;
  scroll-snap-align: start;
  background: #122b32;
}
.scene .backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
  pointer-events: none;
}
.scene:before,
.scene:after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.scene:before {
  background: linear-gradient(
    90deg,
    #071c22fa 0%,
    #091c22e8 24%,
    #0b1c22ba 41%,
    #101f2578 57%,
    #101f2533 80%
  );
}
.scene:after {
  background: linear-gradient(0deg, #06151ce0, transparent 27%, transparent 74%, #0c20263b);
}
.hero .backdrop,
.finale .backdrop {
  object-position: 65% center;
}
.hero:before,
.finale:before {
  background: linear-gradient(
    90deg,
    #06161dee,
    #071820d6 24%,
    #07182094 42%,
    #07182022 62%,
    transparent 85%
  );
}
.chapter .backdrop {
  object-position: 65% center;
  filter: saturate(0.65) brightness(0.82);
}
.chapter:nth-child(even) .backdrop {
  object-position: 65% 45%;
}
.spread {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(330px, 0.96fr);
  gap: clamp(30px, 7vw, 130px);
  align-items: center;
}
.narrative {
  max-width: 670px;
}
.hero .narrative,
.finale .narrative {
  max-width: min(655px, 54%);
}
.kicker {
  gap: 11px;
  margin: 0 0 17px;
  color: var(--mint);
  font-size: 14px;
  font-weight: 750;
}
.marker {
  display: inline-block;
  width: 23px;
  height: 2px;
  background: var(--mint);
}
h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}
.narrative h1,
.narrative h2 {
  margin: 0;
  font-size: clamp(42px, 4.65vw, 80px);
  font-weight: 580;
  line-height: 1.035;
  letter-spacing: -0.062em;
  text-wrap: balance;
}
.hero h1 {
  font-size: clamp(46px, 5.75vw, 100px);
  letter-spacing: -0.076em;
}
.narrative em {
  font-style: normal;
  color: var(--mint);
}
.lead {
  font-size: clamp(16px, 1.33vw, 23px);
  line-height: 1.56;
  color: var(--pale);
  margin: 21px 0 0;
  max-width: 47ch;
}
.hero .lead {
  max-width: 41ch;
}
.hero-scenarios {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}
.hero-scenarios a {
  display: block;
  padding: 7px 10px;
  background: #153039;
  border: 1px solid #80bbb14d;
  border-radius: 7px;
  color: #d5eee5;
  font-size: .875rem;
  line-height: 1.35;
  font-weight: 650;
  text-decoration: none;
}
.hero-scenarios a:is(:hover, :focus-visible) {
  background: #204641;
  border-color: #96dfc6;
  color: #eafff5;
}
.insight {
  color: #d4dfdb;
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.55;
  border-left: 2px solid #86b9ac;
  padding-left: 14px;
  margin: 19px 0 0;
  max-width: 49ch;
}
.start {
  margin-top: 25px;
  min-height: 45px;
  padding: 10px 20px;
}
.start span {
  font-size: 18px;
}
.textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mint);
  font-size: 14px;
  font-weight: 700;
  margin-top: 22px;
}
.textlink:hover,
.closing a:hover,
.back-shift:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.widget {
  color-scheme: light;
  align-self: end;
  width: min(100%, 475px);
  justify-self: end;
  margin-top: clamp(42px, 17vh, 175px);
  border: 1px solid #d8ece3ab;
  border-radius: 12px;
  background: #f5f7ee;
  color: var(--ink);
  box-shadow: 0 20px 75px #04191d6b;
  overflow: hidden;
  font-size: 14px;
  padding: 0 clamp(15px, 1.6vw, 25px) 18px;
}
.widget-band {
  margin: 0 calc(-1 * clamp(15px, 1.6vw, 25px)) 16px;
  padding: 8px clamp(15px, 1.6vw, 25px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #19383c;
  color: #eff9f1;
  font-size: 12px;
  font-weight: 750;
}
.widget-band b {
  font-weight: 500;
  color: #bbdbd0;
}
.widget-band small {
  font-size: 10px;
  letter-spacing: 0.035em;
  color: #c8ded5;
}
.whead,
.actionline,
.payroll,
.caseid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.whead {
  margin-bottom: 13px;
}
.whead > span {
  font-size: clamp(18px, 1.55vw, 24px);
  letter-spacing: -0.04em;
  font-weight: 770;
  line-height: 1.23;
}
.whead small,
.actionline small,
.caseid small,
.numbers small,
.select-label,
.lines dt {
  color: #526969;
  font-size: 12px;
}
.actionline {
  padding-top: 13px;
  flex-wrap: wrap;
}
.actionline strong,
.actionline small,
.caseid strong,
.caseid small,
.numbers strong,
.numbers small {
  display: block;
}
.widget button:not([data-tooth]):not([data-metric]) {
  background: #135352;
  color: white;
  border-radius: 5px;
  border: 0;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 12px;
  min-height: 37px;
}
.widget button:not([data-tooth]):not([data-metric]):disabled {
  background: #dbe9df;
  color: #234c45;
}
.widget .wide-action {
  width: 100%;
  margin-top: 10px;
}
.slots > div {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #ccd8d1;
  padding: 9px 0;
}
.slots time,
.caseid time,
.numbers strong,
.bignum b,
.payroll strong,
.bars strong,
.position b,
.position > span {
  font-family: Consolas, 'Courier New', monospace;
  font-variant-numeric: tabular-nums;
}
.slots i {
  font-style: normal;
  font-size: 11px;
  color: #44655d;
}
.slots .focus-slot {
  padding-inline: 8px;
  background: #e0eee5;
  border-radius: 4px;
}
.caseid {
  justify-content: flex-start;
  background: #e3ece5;
  padding: 13px;
}
.caseid time {
  font-size: 24px;
}
.lines {
  margin: 8px 0;
}
.lines > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #d4ddd5;
}
.lines dd {
  margin: 0;
  font-weight: 700;
}
.numbers {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 10px;
  background: #e0ede4;
  border-radius: 5px;
}
.numbers strong,
.bignum b {
  font-weight: 460;
  line-height: 1.1;
  font-size: 40px;
  letter-spacing: -0.065em;
}
.numbers span,
.bignum small {
  color: #4d6964;
  font-size: 12px;
}
.numbers > b {
  color: #558c7f;
}
.splitbar,
.bars i {
  display: block;
  background: #c0dbca;
  border-radius: 3px;
  overflow: hidden;
}
.splitbar {
  height: 8px;
  margin: 8px 0;
}
.splitbar i,
.bars i b {
  display: block;
  height: 100%;
  background: #3e8075;
}
.splitbar i {
  width: 58.6%;
}
.select-label {
  display: grid;
  gap: 4px;
}
.widget select {
  background: white;
  color: #233d3d;
  border: 1px solid #c1d0c7;
  padding: 7px;
  border-radius: 4px;
  width: 100%;
  font-size: 14px;
}
.payroll {
  border-top: 1px solid #b9cbbf;
  padding-top: 9px;
  margin-top: 8px;
}
.payroll strong {
  font-size: 18px;
  color: #295e53;
}
.switch {
  display: flex;
  gap: 4px;
}
.switch button {
  border: 1px solid #b4c8bc;
  border-radius: 20px;
  background: transparent;
  color: #234c45;
  font-size: 12px;
  padding: 5px 13px;
  min-height: 32px;
}
.switch [aria-pressed='true'] {
  background: #234d4b;
  color: #fff;
}
.bars {
  margin: 13px 0;
}
.bars > div {
  display: grid;
  grid-template-columns: 60px 1fr 32px;
  gap: 9px;
  align-items: center;
  padding: 4px 0;
}
.bars i {
  height: 8px;
}
.bars i b {
  width: 100%;
  transition: width 0.25s;
}
.bars > div:nth-child(2) b {
  width: 75%;
  background: #789774;
}
.toothset {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 3px;
  padding: 12px 0;
  border-block: 1px solid #ccd9cf;
}
.toothset button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  min-width: 0;
  padding: 3px 0;
  font:
    11px Consolas,
    monospace;
}
.toothset button[aria-pressed='true'] {
  border-color: #64948c;
  background: #e0ede2;
}
.toothset canvas {
  width: 100%;
  display: block;
  max-width: 43px;
  margin: auto;
}
.closing {
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.closing .start {
  margin: 0;
}
.demo-note {
  margin: 10px 0 0;
  color: #bfdbd0;
  font-size: .875rem;
  line-height: 1.45;
}
.transport {
  bottom: 0;
  padding-top: 12px;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
  gap: 22px;
  background: linear-gradient(0deg, #06171fea, #071820bb 60%, transparent);
  pointer-events: none;
}
.position,
.ticks,
.arrows {
  pointer-events: auto;
}
.position {
  gap: 8px;
  font-size: 13px;
}
.position > span {
  color: #b9cac6;
}
.position i {
  width: 24px;
  height: 1px;
  background: #7e9691;
  margin-inline: 3px;
}
.position strong {
  font-weight: 640;
}
.ticks {
  display: flex;
  gap: 4px;
}
.ticks a {
  display: grid;
  place-items: center;
  width: 24px;
  height: 36px;
}
.ticks a:after {
  content: '';
  width: 100%;
  height: 2px;
  background: #9caaa3a1;
}
.ticks a[aria-current]:after {
  height: 4px;
  background: var(--mint);
}
.arrows {
  gap: 5px;
}
.arrows button,
#dismiss {
  display: grid;
  place-items: center;
  border-radius: 50%;
  height: 36px;
  width: 36px;
  border: 1px solid #bed4c57a;
  background: #0a2429d9;
  font-size: 18px;
}
.arrows button:disabled {
  opacity: 0.38;
}
.arrows button:hover:not(:disabled) {
  background: #265054;
}
dialog {
  color-scheme: dark;
  color: var(--pale);
  background: #102b31;
  border: 1px solid #75969066;
  border-radius: 12px;
  padding: 24px;
  width: min(480px, calc(100% - 28px));
  max-height: 85svh;
  overflow: auto;
}
dialog::backdrop {
  background: #071519c9;
}
.menutop {
  justify-content: space-between;
  gap: 12px;
}
.menutop h2 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.045em;
}
dialog nav {
  margin: 15px 0;
}
dialog nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid #79958e4a;
  min-height: 40px;
}
dialog nav a span {
  margin-left: auto;
  color: var(--mint);
}
dialog nav small {
  color: #9fc1b6;
  font:
    12px Consolas,
    monospace;
}
dialog nav a[aria-current] {
  color: var(--mint);
}
.back-shift {
  display: inline-block;
  font-size: 13px;
  color: var(--mint);
}
@media (min-width: 761px) and (min-height: 540px) and (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  .scene .backdrop {
    transform: scale(1.04);
    transition: transform 1.1s cubic-bezier(0.17, 0.67, 0.2, 1);
  }
  .scene.is-current .backdrop {
    transform: scale(1);
  }
  .scene.is-current .widget {
    animation: rise 0.36s ease-out both;
  }
  @keyframes rise {
    from {
      opacity: 0.7;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
@media (max-width: 960px) {
  .spread {
    gap: 26px;
    grid-template-columns: minmax(0, 1.1fr) minmax(270px, 0.9fr);
  }
  .hero h1 {
    font-size: clamp(38px, 6vw, 62px);
  }
  .narrative h2 {
    font-size: clamp(35px, 4.9vw, 49px);
  }
}
@media (max-width: 760px) {
  :root {
    --side: 20px;
    scroll-snap-type: none;
  }
  .mast {
    min-height: 59px;
    gap: 8px;
    background: #0b1e25eb;
  }
  .brand {
    font-size: 18px;
    gap: 5px;
  }
  .brand img {
    width: 23px;
    height: 23px;
  }
  .brand small {
    font-size: 9px;
  }
  .mast nav {
    gap: 5px;
  }
  .mast nav a,
  .mast nav button {
    min-height: 33px;
    font-size: 11px;
    padding: 6px 8px;
    gap: 4px;
  }
  .nav-cta span {
    display: none;
  }
  .scene {
    padding: 82px 0 76px;
  }
  .hero .narrative,
  .finale .narrative {
    max-width: 100%;
  }
  .hero {
    align-items: end;
  }
  .hero .backdrop,
  .finale .backdrop {
    object-position: 69% center;
  }
  .scene:before,
  .hero:before,
  .finale:before {
    background: linear-gradient(
      0deg,
      #071b23 0%,
      #071b23eb 20%,
      #071b23bb 49%,
      #071b2355 71%,
      #071b2311 91%
    );
  }
  .chapter:before {
    background: linear-gradient(90deg, #071b23f5, #071b23d4 64%, #071b2399);
  }
  .spread {
    grid-template-columns: 1fr;
    gap: 23px;
  }
  .widget {
    margin: 0;
    justify-self: start;
    align-self: auto;
    width: 100%;
    max-width: 490px;
  }
  .narrative {
    max-width: 590px;
  }
  .narrative h1 {
    font-size: clamp(39px, 9vw, 65px);
  }
  .narrative h2 {
    font-size: clamp(32px, 6vw, 45px);
    max-width: 23ch;
  }
  .lead {
    font-size: 15px;
    line-height: 1.48;
    margin-top: 12px;
  }
  .insight {
    font-size: 13px;
    margin-top: 10px;
  }
  .kicker {
    font-size: 12px;
    margin-bottom: 12px;
  }
  .textlink {
    margin-top: 13px;
    font-size: 12px;
  }
  .start {
    margin-top: 17px;
  }
  .transport {
    gap: 10px;
    padding-block: 7px;
    background: #091c23ef;
  }
  .position {
    font-size: 11px;
    gap: 5px;
  }
  .position i {
    width: 10px;
  }
  .ticks {
    gap: 3px;
  }
  .ticks a {
    width: 10px;
  }
  .arrows button {
    height: 32px;
    width: 32px;
  }
  .hero .lead {
    max-width: 36ch;
  }
  .whead {
    margin-bottom: 10px;
  }
  .widget-band {
    margin-bottom: 11px;
  }
}
@media (max-width: 400px) {
  :root {
    --side: 14px;
  }
  .brand small,
  .mast nav button span {
    display: none;
  }
  .mast nav a {
    font-size: 10px;
  }
  .ticks {
    display: none;
  }
  .slots > div {
    gap: 5px;
  }
  .actionline {
    gap: 6px;
  }
  .closing {
    gap: 10px;
  }
  .hero h1 {
    font-size: clamp(33px, 9vw, 39px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

.patient-note {
  margin-top: 11px;
  border-top: 1px solid #ccd9cf;
  font-size: 12px;
}
.patient-note summary {
  cursor: pointer;
  padding-top: 8px;
  color: #2e6157;
  font-weight: 700;
}
.stock-log {
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px solid #ccd9cf;
  color: #3d6057;
  font-size: 12px;
}

#clinic-world, .walk-hint { display: none; }
html.has-walkthrough { scroll-snap-type: none; overflow-anchor: none; }
.visit-line { margin: -4px 0 12px; font-size: 13px; color: #336458; }
.visit-invoice { display: grid; gap: 2px; border-top: 1px solid #cbd7d0; padding-top: 9px; margin-top: 10px; }
.visit-invoice small, .visit-invoice span { font-size: 12px; color: #46635c; }
.visit-invoice strong { font-size: 14px; }
.owner-signals {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  border: 1px solid #c4d8cf;
  border-radius: 10px;
  background: #fff;
}
.owner-signals li + li { border-top: 1px solid #d2ddd6; }
.owner-signal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  color: #18372f;
  text-decoration: none;
}
.owner-signal:hover { background: #edf6f1; }
.owner-signal:focus-visible { outline-offset: -3px; }
.owner-signal small, .owner-signal strong { display: block; }
.owner-signal small { color: #455f56; font-size: .75rem; }
.owner-signal strong { margin-top: 2px; font-size: .875rem; line-height: 1.27; }
.owner-signal > span {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 5px;
  background: #e3efe8;
  color: #154a38;
  font-size: .8125rem;
  font-weight: 750;
}
.owner-signal[data-attention=true] > span { background: #f9ecd2; color: #644411; }
.visit-next, .widget .repeat-visit { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; color: #205c4d; text-decoration: underline; text-underline-offset: 3px; }
.widget button.repeat-visit { background: transparent; border: 0; padding: 0; color: #205c4d; }
.visit-next[hidden], .widget .repeat-visit[hidden] { display: none; }
#monitor-view { max-width: 690px; width: calc(100vw - 28px); max-height: 90dvh; }
#monitor-body .widget { width: 100%; max-width: none; margin: 0; }
#monitor-view .menutop { margin-bottom: 14px; }
.widget .screen-zoom { margin-left: auto; }
.widget-band { column-gap: 9px; }
.widget button.screen-zoom:not([data-tooth]):not([data-metric]) {
  min-height: 26px; padding: 2px 6px; background: transparent; border: 1px solid #86a398;
  color: #deefe8; font-size: 12px; border-radius: 4px;
}
#monitor-view .screen-zoom { display: none; }
@media(prefers-reduced-motion:no-preference) {
  .tour-intro #clinic-world canvas, .tour-intro .plan-pins { animation: unveil-plan 1.1s both; }
  @keyframes unveil-plan { 0%,24% { opacity: 0; } 100% { opacity: 1; } }
}
.has-walkthrough main { position: relative; transition: opacity .30s ease; }
.has-walkthrough.in-transit main { opacity: 0; pointer-events: none; }
#skip-flight {
  pointer-events: auto; background: transparent; border: 0; color: #d7e8e1; font-size: 12px;
  text-decoration: underline; text-underline-offset: 3px; padding: 7px 0 2px;
}
#walk-label {
  pointer-events: none; position: fixed; z-index: 3; left: var(--side);
  bottom: max(90px, 13vh); color: #f4faf6; padding: 13px 20px 13px 17px;
  background: #0a2027eb; border-left: 2px solid #9bf4d5; min-width: 195px;
  border-radius: 0 6px 6px 0; box-shadow: 0 4px 24px #091b231f;
}
#walk-label span, #walk-label strong { display: block; }
#walk-label span { color: #b1d4c9; font-size: 11px; margin-bottom: 3px; }
#walk-label strong { font-size: 18px; font-weight: 650; }
#walk-label i { display: block; height: 2px; margin-top: 9px; background: #486260; }
#walk-label i::after {
  display: block; content: ''; width: 100%; height: 100%; background: #9bf4d5;
  transform: scaleX(var(--distance,0)); transform-origin: left;
}
@media(max-width:760px) { #walk-label { bottom:75px; } }

/* The clinic remains a separate architectural viewport at every stop. */
:root { --atlas-left: 44%; --atlas-top: 83px; --atlas-bottom: 76px; }
body { background: #0b1d24; }
.scene { background: #0b1d24; padding: 93px 0 84px; }
.scene::before, .scene::after { display: none; }
.scene > .shell {
  width: calc(var(--atlas-left) - var(--side) - clamp(20px,2.5vw,52px));
  margin-inline: var(--side) 0;
}
.scene .spread { grid-template-columns: minmax(0,1fr); gap: clamp(14px,2vh,24px); }
.scene .narrative, .hero .narrative, .finale .narrative { max-width: 100%; }
.scene .hero-title, .scene h1 { font-size: clamp(34px,4.4vw,78px); overflow-wrap: normal; }
.scene h2 { font-size: clamp(29px,2.75vw,48px); }
.chapter .kicker { margin-bottom: 10px; }
.chapter .lead { font-size: clamp(15px,1.18vw,19px); line-height: 1.47; margin-top: 13px; }
.chapter .insight { font-size: 13px; line-height: 1.44; margin-top: 10px; }
.chapter .textlink { font-size: 13px; margin-top: 10px; }
.chapter .widget { width: 100%; max-width: 550px; margin: 0; justify-self: start; align-self: auto; }
.scene .backdrop, .scene.is-current .backdrop, .has-walkthrough #clinic-world {
  box-sizing: border-box; border-radius: 18px; border: 1px solid #73969145;
  background: radial-gradient(ellipse at 52% 40%, #3f5858 0%, #263f44 53%, #162d34 100%);
}
.scene .backdrop, .scene.is-current .backdrop {
  inset: var(--atlas-top) var(--side) auto auto;
  width: calc(100% - var(--atlas-left) - var(--side));
  height: calc(100svh - var(--atlas-top) - var(--atlas-bottom));
  object-fit: contain; object-position: center; filter: none; transform: none;
}
.has-walkthrough #clinic-world {
  display:block; position:fixed; z-index:2;
  inset:var(--atlas-top) var(--side) var(--atlas-bottom) var(--atlas-left);
  pointer-events:auto; isolation:isolate; overflow:hidden;
}
#clinic-world canvas { width:100%;height:100%;display:block; }
.plan-pins { position:absolute; inset:0; pointer-events:none; }
.plan-pin {
  padding:0; width:30px;height:30px;position:absolute;transform:translate(-50%,-50%);
  background:transparent;border:0;border-radius:100%;pointer-events:auto;color:white;
}
.plan-pin::after {
  content:'';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  width:9px;height:9px;border-radius:100%;background:#b5ffe2;border:2px solid #1c4b45;
  box-shadow:0 0 0 3px #f0fff35e,0 2px 5px #06211d7a;
}
.plan-pin span {
  position:absolute;bottom:28px;left:50%;transform:translateX(-50%);opacity:0;
  width:max-content;max-width:145px;padding:5px 10px;background:#0e302deb;border:1px solid #a7c7b988;
  border-radius:5px;font-size:12px;line-height:1.25;font-weight:720;white-space:nowrap;pointer-events:none;
}
.plan-pin:is(.named,:hover,:focus-visible) span {opacity:1;}
.plan-pin:is(.named,:hover,:focus-visible)::before {
  content:'';position:absolute;left:50%;bottom:18px;height:11px;width:1px;background:#dcffed;
}
.plan-pin.selected {z-index:2;}
.plan-pin.selected span {background:#153d33;color:#d2ffe5;border-color:#abdfbc;}
.plan-pin.selected::after {width:11px;height:11px;}
.plan-floors {
  position:absolute;z-index:3;left:12px;bottom:12px;display:flex;gap:3px;padding:3px;
  border:1px solid #98bcaf75;border-radius:10px;background:#0d292eea;box-shadow:0 6px 20px #081f2466;
}
.plan-floors a {
  padding:7px 11px;border-radius:6px;color:#dfeee7;font-size:13px;font-weight:720;white-space:nowrap;
  text-decoration:none;
}
.plan-floors a:hover {background:#73938750;}
.plan-floors a[aria-current=true] {background:#b6f5dc;color:#102c29;}
.plan-demo {
  position: absolute;
  z-index: 3;
  display: block;
  cursor: pointer;
  transition: background-color 160ms ease;
}
.plan-demo:is(:hover, :focus-visible) {
  background: #a5fbd936;
}
.plan-demo[hidden] {display:none;}
.plan-motion {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #90b8a9a6;
  border-radius: 8px;
  background: #0d292eea;
  color: #def7e9;
}
.plan-motion[hidden] { display: none; }
.plan-motion:hover { background: #19433f; }
.plan-motion::before {
  content: '';
  width: 5px;
  height: 12px;
  border-inline: 2px solid currentColor;
}
.plan-motion[data-paused=true]::before {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-block: 6px solid transparent;
  border-inline: 9px solid currentColor;
  border-inline-end: 0;
}
.plan-pin[hidden] {display:none;}
.has-walkthrough .scene .backdrop {display:none;}
.has-walkthrough .scene {background:transparent;}
.has-walkthrough .scene + .scene {margin-top:50svh;}
.has-walkthrough .scene .shell {opacity:var(--panel-opacity,1);}
.has-walkthrough .walk-hint {display:block;color:#c1d5ce;font-size:13px;margin:13px 0 0;}
.has-walkthrough .scene.is-current .widget {animation:none;}
@media(max-width:760px) {
  :root {--atlas-top:62px; --atlas-height:clamp(165px,31svh,282px);}
  .scene, .hero, .finale {display:block; padding:calc(var(--atlas-top) + var(--atlas-height) + 20px) 0 72px;}
  .scene > .shell {width:calc(100% - 2*var(--side));margin-inline:var(--side);}
  .scene .spread {gap:16px;}
  .scene h1 {font-size:clamp(34px,8.5vw,64px);}
  .scene h2 {font-size:clamp(27px,6.2vw,40px);}
  .scene .backdrop, .scene.is-current .backdrop, .has-walkthrough #clinic-world {
    inset:var(--atlas-top) var(--side) auto var(--side);width:calc(100% - 2*var(--side));
    height:var(--atlas-height);border-radius:12px;
  }
  .has-walkthrough #clinic-world {box-shadow:0 -15px 0 16px #0b1d24,0 9px 15px #0b1d2480;}
  .chapter .lead {font-size:15px;margin-top:10px;}
  .plan-floors {left:50%;bottom:5px;transform:translateX(-50%);}
  .has-billboard .plan-floors {left:6px;transform:none;}
  .has-billboard .plan-floors a:not(.plan-home) {display:none;}
  .plan-floors a {padding:6px 9px;font-size:12px;}
  .plan-pin span {font-size:11px;padding:4px 7px;bottom:25px;}
  .has-walkthrough .scene + .scene {margin-top:38svh;}
}
@media(prefers-reduced-motion:reduce) {
  .has-walkthrough .scene + .scene {margin-top:0;}
}
