:root {
  --aubergine: #611f69;
  --deep-plum: #481a54;
  --plum-shadow: #3d0157;
  --iris: #730394;
  --purple-haze: #f9f0ff;
  --lavender: #eac8fe;
  --iris-light: #d17dfe;
  --channel: #1264a3;
  --mid-blue: #0b4c8c;
  --carbon: #1d1c1d;
  --charcoal: #454245;
  --mid-gray: #696969;
  --fog: #edeaed;
  --ice: #e8f5fa;
  --soft: #fefbff;
  --white: #ffffff;
  --ember: #ff3c00;
  --ember-deep: #d43200;
  --display: "Segoe UI", "Inter Tight", "DM Sans", Arial, sans-serif;
  --body: "Segoe UI", Inter, "IBM Plex Sans", system-ui, sans-serif;
  --max: 1200px;
  --r-btn: 4px;
  --r-card: 16px;
  --shadow-nav: rgba(0, 0, 0, 0.1) 0 0 32px 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.5 var(--body);
  color: var(--carbon);
  background: var(--soft);
}
a { color: var(--mid-blue); }
img { max-width: 100%; }

/* Floating sticky mast - Slack nav, not a cream bar */
.mast {
  position: sticky;
  top: 10px;
  z-index: 40;
  margin: 10px 16px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--white);
  border: 1px solid var(--lavender);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-nav);
}
.mast > .brand { justify-self: start; }
.mast > .call-mast-btn { justify-self: center; }
.mast-end {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--carbon);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 18px;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: var(--r-btn);
  background: var(--aubergine);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-links a {
  text-decoration: none;
  font-size: 14px;
  color: var(--mid-gray);
}
.nav-links a:hover { color: var(--aubergine); }
.nav-drop {
  position: relative;
}
.nav-drop summary {
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--mid-gray);
}
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary:hover { color: var(--aubergine); }
.nav-drop-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  min-width: 220px;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--fog);
  border-radius: var(--r-card);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  z-index: 20;
}
.nav-drop[open] .nav-drop-panel { display: flex; flex-direction: column; gap: 8px; }
.nav-drop-panel a { white-space: nowrap; }
.nav-toggle {
  display: none;
  border: 1px solid var(--fog);
  background: var(--white);
  border-radius: var(--r-btn);
  padding: 6px 10px;
  font: inherit;
  color: var(--carbon);
}

/* Product lock: orange call control. Slack shape: 4px, not a 999px pill. */
.call-rect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ember);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--r-btn);
  padding: 10px 16px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.call-rect:hover { background: var(--ember-deep); color: var(--white); }

/* Centered mast phone — two stacked lines, pulse ring, rounded ember. */
.call-mast-btn {
  position: relative;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 300px;
  background: var(--ember);
  color: var(--white);
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 34px 12px 26px;
  line-height: 1.15;
  white-space: normal;
  flex-shrink: 0;
  z-index: 1;
  box-shadow: 0 0 0 0 rgba(255, 60, 0, 0.45);
  animation: call-mast-pulse 2.2s ease-out infinite;
}
.call-mast-btn:hover {
  background: var(--ember-deep);
  color: var(--white);
}
.call-mast-ico {
  display: inline-flex;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.call-mast-ico svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.call-mast-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}
.call-mast-line {
  display: block;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  line-height: 1.2;
}
.call-mast-sub {
  display: block;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.01em;
  opacity: 0.92;
  white-space: nowrap;
  line-height: 1.25;
}
@keyframes call-mast-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 60, 0, 0.5); }
  70% { box-shadow: 0 0 0 14px rgba(255, 60, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 60, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .call-mast-btn { animation: none; }
}

.dock-bottom { display: none; }

.notice {
  margin: 14px 16px 0;
  padding: 10px 16px;
  background: var(--purple-haze);
  border: 1px solid var(--lavender);
  border-radius: var(--r-card);
  font-size: 14px;
  color: var(--charcoal);
}
.notice a { color: var(--iris); }

.hero-plum {
  margin-top: 24px;
  background: var(--deep-plum);
  color: var(--white);
  padding: 56px 20px 64px;
}
.hero-inner { max-width: var(--max); margin: 0 auto; }
.hero-inner.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px 36px;
  align-items: center;
}
.hero-copy { min-width: 0; }
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.057em;
  text-transform: uppercase;
  color: var(--iris-light);
  margin: 0 0 12px;
}
.hero-plum h1 {
  font-family: var(--display);
  font-size: clamp(32px, 6vw, 58px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0 0 20px;
  max-width: 18ch;
}
.hero-plum p { color: #f3e8f8; max-width: 68ch; }
.hero-plum .call-rect { margin-top: 8px; }

/* Bench clinic hero — inset figure, not full-bleed under H1 text */
.clinic-shot {
  margin: 0;
  border-radius: var(--r-card);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.12);
}
.clinic-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.clinic-shot--band {
  max-width: var(--max);
  margin: 8px auto 28px;
  padding: 0 20px;
}
.clinic-shot--band img { border-radius: var(--r-card); }
.paper-mast.paper-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px 32px;
  align-items: start;
}
.paper-copy { min-width: 0; }
.paper-mast .clinic-shot { margin-top: 4px; }
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 18px;
}
.stat-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(234, 200, 254, 0.35);
  border-radius: var(--r-btn);
  padding: 8px 12px;
  font-size: 13px;
}
.stat-chip b { display: block; font-size: 18px; color: var(--white); }

.sheet { max-width: var(--max); margin: 0 auto; padding: 0 20px 72px; }

.chapter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 40px;
}
.sheet > .chapter-tags:first-child {
  margin-top: -28px;
}
.clinic-shot--band + .sheet > .chapter-tags:first-child,
.clinic-shot--band + main.sheet > .chapter-tags:first-child {
  margin-top: 0;
}
.chapter-tags a {
  background: var(--white);
  border: 1px solid var(--lavender);
  border-radius: var(--r-btn);
  padding: 6px 10px;
  font-size: 12px;
  text-decoration: none;
  color: var(--charcoal);
}
.chapter-tags a:hover { background: var(--purple-haze); color: var(--aubergine); }

.room {
  background: var(--white);
  border: 1px solid var(--lavender);
  border-radius: var(--r-card);
  padding: 24px;
  margin: 0 0 20px;
}
.room:nth-child(even) { background: var(--purple-haze); }
.room h2 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.008em;
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--deep-plum);
}
.room p { margin: 0 0 12px; color: var(--charcoal); }
.room p:last-child { margin-bottom: 0; }
.room ul {
  margin: 0 0 12px;
  padding-left: 1.25em;
  color: var(--charcoal);
}
.room ul:last-child { margin-bottom: 0; }
.room li { margin: 0 0 6px; }
.room a { color: var(--aubergine); }

.guide-links {
  margin: 32px 0 40px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--lavender);
  border-radius: var(--r-card);
}
.guide-links h2 {
  font-family: var(--display);
  font-size: 20px;
  margin: 0 0 12px;
}
.guide-links ul {
  margin: 0;
  padding-left: 1.2em;
}
.guide-links li { margin: 0 0 8px; }
.guide-links a { color: var(--aubergine); }

.paper-mast {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 20px 8px;
}
.paper-mast h1 {
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 50px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0 0 16px;
  color: #000;
  max-width: 20ch;
}
.trail {
  font-size: 13px;
  color: var(--mid-gray);
  margin: 0 0 16px;
}
.trail a { color: var(--mid-gray); text-decoration: none; }
.trail a:hover { color: var(--aubergine); }
.desk-stamp {
  font-size: 13px;
  color: var(--mid-gray);
  margin: 4px 0 16px;
}
.hero-plum .desk-stamp { color: inherit; opacity: .8; }

.fact-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 8px 0 28px;
}
.fact-cell {
  background: var(--ice);
  border-radius: var(--r-card);
  padding: 16px;
}
.fact-cell span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.057em;
  text-transform: uppercase;
  color: var(--mid-blue);
}
.fact-cell b { font-size: 22px; font-family: var(--display); }

.city-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 12px 0 40px;
}
.city-tile {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--fog);
  border-radius: var(--r-card);
  padding: 12px 14px;
  text-decoration: none;
  color: var(--carbon);
}
.city-tile:hover { border-color: var(--lavender); background: var(--purple-haze); }
.city-tile em {
  font-style: normal;
  color: var(--mid-gray);
  font-size: 13px;
}

.scroll { overflow-x: auto; }
.sheet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--white);
  border: 1px solid var(--fog);
  border-radius: var(--r-card);
}
.sheet-table th {
  text-align: left;
  padding: 10px 12px;
  background: var(--purple-haze);
  color: var(--deep-plum);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sheet-table td { padding: 10px 12px; border-top: 1px solid var(--fog); vertical-align: top; }
.print-phone { color: var(--mid-gray); font-size: 13px; }

.neighbors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 32px;
}
.neighbors a {
  background: var(--ice);
  color: var(--mid-blue);
  text-decoration: none;
  border-radius: var(--r-btn);
  padding: 6px 10px;
  font-size: 14px;
}

.call-band {
  background: var(--aubergine);
  color: var(--white);
  padding: 48px 20px;
  margin-top: 24px;
}
.call-band .inner { max-width: var(--max); margin: 0 auto; }
.call-band h2 {
  font-family: var(--display);
  font-size: 32px;
  margin: 0 0 10px;
  letter-spacing: -0.008em;
}
.call-band p { color: #f3e8f8; max-width: 60ch; }
.call-band .call-rect { margin-top: 8px; }

.colophon {
  background: var(--soft);
  border-top: 1px solid var(--fog);
  padding: 40px 20px 96px;
}
.colophon-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
  font-size: 14px;
  color: var(--charcoal);
}
.colophon a { color: var(--charcoal); }
.colophon strong {
  display: block;
  font-family: var(--display);
  margin-bottom: 8px;
  color: var(--carbon);
}

.legal-body { max-width: 68ch; }
.legal-body p { color: var(--charcoal); }

@media (max-width: 900px) {
  .hero-inner.hero-split,
  .paper-mast.paper-split {
    grid-template-columns: 1fr;
  }
  .hero-inner.hero-split .clinic-shot { order: -1; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .mast {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    padding: 8px 10px;
  }
  .mast > .call-mast-btn {
    justify-self: stretch;
    min-width: 0;
    padding: 9px 14px;
    gap: 8px;
  }
  .call-mast-line { font-size: 16px; }
  .call-mast-sub { font-size: 11px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 62px;
    left: 12px;
    right: 12px;
    background: var(--white);
    border: 1px solid var(--lavender);
    border-radius: var(--r-card);
    padding: 12px;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links[data-open="1"] { display: flex; }
  .nav-drop { width: 100%; }
  .nav-drop-panel {
    position: static;
    box-shadow: none;
    border: none;
    padding: 8px 0 0 12px;
    margin: 0;
  }
  .fact-rail, .city-grid, .colophon-grid { grid-template-columns: 1fr; }
  .dock-bottom {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--white);
    border-top: 1px solid var(--lavender);
    box-shadow: var(--shadow-nav);
  }
  .dock-bottom .call-rect { width: 100%; }
  .colophon { padding-bottom: 120px; }
}

@media (max-width: 480px) {
  .mast > .brand .brand-name { display: none; }
  .mast > .call-mast-btn { padding: 8px 10px; }
  .call-mast-ico, .call-mast-ico svg { width: 18px; height: 18px; }
  .call-mast-line { font-size: 15px; }
  .call-mast-sub { font-size: 10px; }
  .nav-toggle { padding: 6px 8px; }
}
