:root {
  --navy: #002c66;
  --navy-deep: #031a3b;
  --navy-soft: #0b3d79;
  --ink: #182134;
  --muted: #687386;
  --beige: #fff;
  --beige-2: #d9e7f5;
  --paper: #fff;
  --gold: #0b3d79;
  --line: rgba(0, 44, 102, .09);
  --white: #fff;
  --shadow: 0 26px 80px rgba(0, 25, 61, .18);
  --radius: 8px;
  --container: 1180px;
}

/* Premium anatomy viewer refinements */
.anatomy-stage {
  background:
    radial-gradient(circle at 49% 36%, rgba(255,255,255,.96) 0%, rgba(234,244,247,.9) 26%, rgba(202,220,230,.74) 65%, rgba(182,202,216,.86) 100%),
    linear-gradient(150deg, #f6fafb, #d9e6ed);
}

.anatomy-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .3;
  background-image:
    linear-gradient(rgba(14,57,91,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,57,91,.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 52% 45%, #000 10%, transparent 82%);
}

.anatomy-vignette {
  background:
    radial-gradient(circle at 50% 42%, transparent 18%, rgba(15,57,88,.04) 52%, rgba(7,37,67,.25) 100%),
    linear-gradient(90deg, rgba(246,250,251,.54), transparent 27%, transparent 72%, rgba(246,250,251,.6));
}

.anatomy-viewer-top,
.anatomy-present-toggle,
.anatomy-view-controls,
.anatomy-rail,
.anatomy-system-panel,
.anatomy-part-popover,
.anatomy-hover-tooltip {
  transition: opacity .28s ease, transform .28s ease, border-color .2s ease, box-shadow .2s ease;
}

.anatomy-present-toggle,
.anatomy-view-controls button,
.anatomy-system-panel,
.anatomy-part-popover,
.anatomy-hover-tooltip {
  background: rgba(249,252,253,.76);
  border-color: rgba(11,55,91,.16);
  box-shadow: 0 20px 54px rgba(13,49,79,.12), inset 0 1px 0 rgba(255,255,255,.88);
  backdrop-filter: blur(22px) saturate(120%);
}

.anatomy-system-panel {
  width: min(332px, calc(100% - 116px));
  padding: 13px;
  border-radius: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,44,102,.28) transparent;
}

.anatomy-system-panel::before {
  content: "";
  display: block;
  height: 1px;
  margin: 2px 0 11px;
  background: linear-gradient(90deg, rgba(0,44,102,.04), rgba(0,44,102,.24), rgba(0,44,102,.04));
}

.layer-heading {
  margin-bottom: 8px;
}

.layer-heading strong {
  color: #123f66;
  font-family: "Afacad", Arial, sans-serif;
  font-size: .92rem;
}

.anatomy-presets button,
.anatomy-selection-actions button {
  border-radius: 5px;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.anatomy-presets button:hover,
.anatomy-selection-actions button:not(:disabled):hover {
  transform: translateY(-1px);
  background: rgba(232,221,188,.62);
  border-color: rgba(158,133,70,.38);
  box-shadow: 0 8px 18px rgba(20,52,77,.09);
}

.anatomy-tree {
  display: grid;
  gap: 5px;
  max-height: min(33svh, 326px);
  padding: 2px 1px 1px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,44,102,.23) transparent;
}

.anatomy-tree-group {
  overflow: hidden;
  border: 1px solid rgba(10,55,90,.1);
  border-radius: 6px;
  background: rgba(255,255,255,.34);
  transition: background .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.anatomy-tree-group.is-active {
  border-color: rgba(23,125,146,.34);
  background: rgba(224,243,246,.5);
}

.anatomy-tree-group.is-partial {
  border-color: rgba(184,162,106,.4);
}

.anatomy-tree-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 37px;
  padding: 8px 28px 8px 10px;
  color: var(--navy);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: .79rem;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.anatomy-tree-toggle::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  transition: transform .22s ease;
}

.anatomy-tree-group.is-open .anatomy-tree-toggle::after {
  transform: translateY(-35%) rotate(225deg);
}

.anatomy-tree-toggle small {
  min-width: 18px;
  color: rgba(0,44,102,.58);
  font-size: .65rem;
  font-weight: 900;
  text-align: right;
}

.anatomy-tree-entries {
  display: grid;
  gap: 3px;
  max-height: 0;
  padding: 0 6px;
  overflow: hidden;
  opacity: 0;
  transition: max-height .32s ease, padding .25s ease, opacity .2s ease;
}

.anatomy-tree-group.is-open .anatomy-tree-entries {
  max-height: 310px;
  padding: 0 6px 7px;
  overflow: auto;
  opacity: 1;
}

.anatomy-tree-entry {
  width: 100%;
  min-height: 29px;
  padding: 5px 8px 5px 13px;
  overflow: hidden;
  color: rgba(0,44,102,.78);
  background: transparent;
  border: 0;
  border-left: 1px solid rgba(0,44,102,.16);
  border-radius: 0 4px 4px 0;
  font: inherit;
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}

.anatomy-tree-entry:hover,
.anatomy-tree-entry.is-selected {
  color: var(--navy);
  background: rgba(202,231,238,.56);
  border-left-color: #1aa6c8;
}

.anatomy-tree-entry.is-selected {
  box-shadow: inset 0 0 0 1px rgba(26,166,200,.18);
}

.anatomy-selection-panel {
  gap: 8px;
  margin-top: 9px;
  padding: 10px;
  background: rgba(237,247,249,.54);
  border-color: rgba(20,92,120,.16);
  border-radius: 7px;
}

.anatomy-selection-heading {
  display: grid;
  gap: 3px;
  padding-top: 1px;
}

.anatomy-selection-heading > span,
.anatomy-selection-heading > strong,
.anatomy-selection-heading > small {
  display: block;
}

.anatomy-selection-heading > small {
  overflow: hidden;
  color: rgba(24,33,52,.6);
  font-size: .69rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anatomy-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin: 0;
  padding-top: 7px;
  border-top: 1px solid rgba(0,44,102,.1);
}

.anatomy-detail-grid > div {
  min-width: 0;
  padding: 6px 7px;
  background: rgba(255,255,255,.5);
  border: 1px solid rgba(0,44,102,.08);
  border-radius: 4px;
}

.anatomy-detail-grid .is-wide {
  grid-column: 1 / -1;
}

.anatomy-detail-grid dt {
  color: var(--gold);
  font-size: .57rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.anatomy-detail-grid dd {
  margin: 3px 0 0;
  color: rgba(0,44,102,.82);
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.26;
}

.anatomy-rail {
  background: rgba(248,252,253,.72);
  border-color: rgba(11,55,91,.15);
  box-shadow: 0 20px 54px rgba(13,49,79,.12), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(20px) saturate(120%);
}

.anatomy-part-popover,
.anatomy-hover-tooltip {
  border-radius: 6px;
}

@media (max-width: 640px) {
  .anatomy-stage {
    min-height: 1140px;
  }

  .anatomy-system-panel {
    top: 548px;
    padding: 11px;
  }

  .anatomy-tree {
    max-height: 192px;
  }

  .anatomy-tree-group.is-open .anatomy-tree-entries {
    max-height: 142px;
  }

  .anatomy-tree-toggle {
    min-height: 35px;
    font-size: .75rem;
  }

  .anatomy-detail-grid dd {
    font-size: .66rem;
  }

  .anatomy-part-popover {
    display: none;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Afacad", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.48;
  letter-spacing: 0;
}

body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -90px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy);
  border-radius: var(--radius);
}

.skip-link:focus { top: 16px; }

.progress-line {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: 0;
  height: 3px;
  background: var(--gold);
  transform-origin: left;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  column-gap: clamp(14px, 2vw, 30px);
  align-items: center;
  min-height: 84px;
  padding: 12px clamp(18px, 4vw, 52px);
  color: var(--white);
  isolation: isolate;
  transition: background .25s ease, color .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.site-header::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 22, 52, .78), rgba(0, 22, 52, .42) 60%, rgba(0, 22, 52, 0));
  transition: opacity .25s ease;
}

.site-header > * {
  position: relative;
  z-index: 1;
}

.site-header.is-inner,
.site-header.is-scrolled,
.site-header.is-open {
  color: var(--navy);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 36px rgba(0, 28, 64, .08);
  backdrop-filter: blur(18px);
}

.site-header.is-inner::before,
.site-header.is-scrolled::before,
.site-header.is-open::before {
  opacity: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 48px;
}

.brand img {
  width: 184px;
  height: auto;
  filter: brightness(0) invert(1) drop-shadow(0 5px 16px rgba(0, 13, 31, .32));
  transition: filter .22s ease, width .22s ease, transform .22s ease;
}

.brand:hover img {
  transform: translateY(-1px);
}

.site-header.is-inner .brand img,
.site-header.is-scrolled .brand img,
.site-header.is-open .brand img {
  filter: none;
  width: 168px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 2px;
  width: fit-content;
  justify-self: center;
  padding: 6px;
  font-size: .94rem;
  font-weight: 700;
  background: rgba(3, 25, 54, .48);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 13, 31, .16);
  backdrop-filter: blur(18px) saturate(1.15);
}

.site-header.is-inner .main-nav,
.site-header.is-scrolled .main-nav,
.site-header.is-open .main-nav {
  background: rgba(0,44,102,.05);
  border-color: rgba(0,44,102,.12);
}

.main-nav a {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  opacity: .9;
  transition: background .18s ease, color .18s ease;
}

.main-nav a::before {
  display: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--navy);
  background: var(--beige);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: .98rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.header-cta {
  justify-self: end;
  color: var(--white);
  background: rgba(0, 44, 102, .9);
  border-color: rgba(255,255,255,.4);
  box-shadow: 0 10px 24px rgba(0, 19, 48, .22);
}

.header-cta:hover {
  background: #003b86;
  box-shadow: 0 14px 30px rgba(0, 19, 48, .32);
}

.site-header.is-inner .header-cta,
.site-header.is-scrolled .header-cta,
.site-header.is-open .header-cta,
.btn-primary {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.btn-light {
  color: var(--navy);
  background: var(--beige);
  border-color: var(--beige);
}

.btn-line {
  color: inherit;
  background: transparent;
  border-color: currentColor;
}

.magnetic:hover,
.btn:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: var(--radius);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
  transition: transform .2s ease;
}

.site-header.is-open .menu-toggle span:first-child { transform: translateY(3px) rotate(45deg); }
.site-header.is-open .menu-toggle span:last-child { transform: translateY(-3px) rotate(-45deg); }

.eyebrow {
  margin: 0 0 10px;
  color: var(--beige-2);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow.dark { color: var(--gold); }

h1, h2, h3 {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.home-hero {
  position: relative;
  min-height: 820px;
  overflow: hidden;
  color: var(--white);
  background: #02142d;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .11;
  background-image:
    linear-gradient(rgba(255,255,255,.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.13) 1px, transparent 1px);
  background-size: 72px 72px;
}

.hero-photo,
.hero-photo img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-photo {
  width: 100%;
  overflow: hidden;
  background: #02142d;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: scale(1.02);
}

.hero-shade {
  z-index: 1;
  background:
    radial-gradient(circle at 78% 36%, rgba(0,44,102,.05), transparent 34%),
    linear-gradient(90deg, rgba(2,16,38,.86) 0%, rgba(2,16,38,.74) 38%, rgba(2,16,38,.38) 62%, rgba(2,16,38,.52) 100%),
    linear-gradient(180deg, rgba(0,0,0,.16), rgba(0,17,41,.52));
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, 760px);
  align-items: center;
  padding: 116px 0 56px;
}

.hero-copy {
  max-width: 660px;
}

.hero-copy h1 {
  max-width: 650px;
  font-size: 3.82rem;
  line-height: 1.08;
}

.hero-copy p:not(.eyebrow) {
  max-width: 610px;
  margin: 22px 0 0;
  color: rgba(255,255,255,.78);
  font-size: 1.14rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.authority-band {
  position: relative;
  z-index: 2;
  margin-top: -1px;
  color: var(--navy);
  background: var(--beige);
  border-bottom: 1px solid var(--line);
}

.authority-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-left: 1px solid rgba(0,44,102,.09);
}

.authority-grid article {
  min-height: 104px;
  padding: 22px 20px;
  border-right: 1px solid rgba(0,44,102,.09);
}

.authority-grid span {
  display: block;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.authority-grid strong {
  display: block;
  margin-top: 12px;
  color: var(--navy);
  font-size: 1.02rem;
  line-height: 1.14;
}

.quick-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--beige);
  border-bottom: 1px solid var(--line);
}

.quick-nav a {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 66px;
  padding: 15px clamp(16px, 3vw, 30px);
  color: var(--navy);
  font-weight: 800;
  border-right: 1px solid rgba(0,44,102,.09);
  transition: background .18s ease, padding-left .18s ease;
}

.quick-nav a:hover {
  padding-left: clamp(22px, 4vw, 42px);
  background: #f3f7fb;
}

.quick-nav span {
  color: var(--gold);
  font-size: .78rem;
}

.signature-map {
  position: relative;
  overflow: hidden;
  padding: 58px 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.signature-map::after {
  content: "RK";
  position: absolute;
  right: -36px;
  bottom: -92px;
  color: rgba(0,44,102,.045);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 17rem;
  font-weight: 700;
  line-height: 1;
}

.map-title {
  max-width: 760px;
  margin-bottom: 24px;
}

.map-title h2 {
  color: var(--navy);
  font-size: 2.08rem;
  line-height: 1.14;
}

.map-rail {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 54px rgba(0, 28, 64, .07);
}

.map-rail::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 38px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.map-rail article {
  position: relative;
  min-height: 190px;
  padding: 26px 22px 22px;
  border-right: 1px solid var(--line);
}

.map-rail article:last-child {
  border-right: 0;
}

.map-rail span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--white);
  background: var(--navy);
  border: 2px solid var(--beige);
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 900;
}

.map-rail strong {
  display: block;
  margin-top: 38px;
  color: var(--navy);
  font-size: 1.18rem;
  line-height: 1.12;
}

.map-rail p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .98rem;
}

.section {
  padding: clamp(50px, 6vw, 78px) 0;
}

.section.compact {
  padding: clamp(38px, 5vw, 64px) 0;
}

.soft {
  background: var(--beige);
}

.section-lead {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-lead h2,
.timeline-intro h2 {
  color: var(--navy);
  font-size: 2.22rem;
  line-height: 1.13;
}

.section-lead p:last-child,
.timeline-intro p:last-child {
  color: var(--muted);
}

.dual-panel,
.page-hero-grid,
.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  gap: clamp(26px, 6vw, 76px);
  align-items: center;
}

.statement h2,
.strip-content h2,
.page-hero h1,
.robot-copy h1,
.contact-page-grid h1,
.rich-text h2,
.lab-output h2,
.cta-grid h2 {
  color: var(--navy);
  max-width: 760px;
  font-size: 2.72rem;
  line-height: 1.12;
}

.text-stack p,
.page-hero p,
.rich-text p,
.lab-output p,
.contact-page-grid p {
  color: var(--muted);
}

.text-stack p {
  margin: 0 0 12px;
}

.feature-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 440px;
  color: var(--white);
  background: var(--navy-deep);
}

.strip-image {
  overflow: hidden;
}

.strip-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}

.feature-strip:hover .strip-image img {
  transform: scale(1.04);
}

.strip-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 7vw, 86px);
}

.strip-content h2 {
  color: var(--white);
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 22px;
  color: var(--gold);
  font-weight: 800;
}

.arrow-link::after {
  content: "→";
  margin-left: 10px;
  transition: transform .18s ease;
}

.arrow-link:hover::after {
  transform: translateX(5px);
}

.strip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.cards-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.cards-three article,
.location-list article,
.robot-steps article,
.lab-card,
.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 50px rgba(0, 28, 64, .06);
}

.cards-three article {
  position: relative;
  min-height: 178px;
  padding: 22px 22px 24px;
  overflow: hidden;
}

.cards-three article::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(.28);
  transform-origin: left;
  transition: transform .2s ease;
}

.cards-three article:hover::after {
  transform: scaleX(1);
}

.cards-three span,
.location-list span,
.robot-steps span {
  color: var(--gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.cards-three h3 {
  margin-top: 20px;
  color: var(--navy);
  font-size: 1.34rem;
  line-height: 1.18;
}

.cards-three p {
  margin: 12px 0 0;
  color: var(--muted);
}

.cta-slab,
.contact-hero {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(0,44,102,.96), rgba(3,26,59,.98)),
    url("../img/revisao-protese.webp") center/cover;
}

.cta-slab {
  padding: clamp(48px, 7vw, 86px) 0;
}

.cta-grid h2,
.contact-page-grid h1 {
  color: var(--white);
}

.page-hero {
  padding: 112px 0 38px;
  background:
    linear-gradient(90deg, rgba(0,44,102,.08), transparent 42%),
    linear-gradient(180deg, #f6f2ea 0%, #fbfaf7 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero p {
  margin: 0;
  font-size: 1.2rem;
}

.split-page {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1fr);
  gap: clamp(26px, 6vw, 76px);
  align-items: start;
}

.image-stack {
  display: grid;
  gap: 12px;
}

.image-stack img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-stack img:nth-child(2) {
  width: 78%;
  margin-left: auto;
  margin-top: -42px;
  border: 8px solid var(--paper);
}

.rich-text {
  font-size: 1.12rem;
}

.rich-text p {
  margin: 0 0 16px;
}

.timeline-section {
  background:
    linear-gradient(90deg, rgba(0,44,102,.05), transparent 48%),
    var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.timeline-grid {
  display: grid;
  grid-template-columns: minmax(280px, .62fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.timeline-intro {
  position: sticky;
  top: 104px;
}

.timeline-intro p:last-child {
  max-width: 360px;
  margin: 16px 0 0;
}

.timeline-list {
  display: grid;
  gap: 12px;
}

.timeline-list article {
  position: relative;
  padding: 22px 24px 22px 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 44px rgba(0,28,64,.05);
}

.timeline-list article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 3px;
  background: var(--gold);
}

.timeline-list span,
.treatment-focus-grid span {
  display: block;
  color: var(--gold);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.timeline-list strong {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1.16;
}

.timeline-list p {
  margin: 9px 0 0;
  color: var(--muted);
}

.treatment-lab {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.lab-card {
  min-height: 132px;
  padding: 18px;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.lab-card.is-active,
.lab-card:hover {
  color: var(--white);
  background: var(--navy);
  transform: translateY(-3px);
}

.lab-card span,
.lab-card strong,
.lab-card small {
  display: block;
}

.lab-card span {
  color: var(--gold);
  font-size: .76rem;
  font-weight: 800;
}

.lab-card strong {
  margin-top: 22px;
  font-size: 1.2rem;
}

.lab-card small {
  margin-top: 4px;
  opacity: .76;
}

.lab-output {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1fr);
  gap: clamp(22px, 5vw, 60px);
  align-items: center;
  padding: 22px;
  background: var(--beige);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .24s ease, transform .24s ease;
}

.lab-output.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lab-output img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
}

.treatment-focus-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.treatment-focus-grid article {
  grid-column: span 2;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 50px rgba(0,28,64,.06);
  transition: transform .18s ease, box-shadow .18s ease;
}

.treatment-focus-grid article:nth-child(n+4) {
  grid-column: span 3;
}

.treatment-focus-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 70px rgba(0,28,64,.11);
}

.treatment-focus-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.treatment-focus-grid div {
  padding: 20px;
}

.treatment-focus-grid h3 {
  margin-top: 14px;
  color: var(--navy);
  font-size: 1.22rem;
  line-height: 1.16;
}

.treatment-focus-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .96rem;
}

  .anatomy-stage {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    color: var(--navy);
    background: linear-gradient(150deg, #f8fbfc 0%, #eef5f8 48%, #e2edf2 100%);
}

.anatomy-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#hip-anatomy-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}

#hip-anatomy-canvas:active {
  cursor: grabbing;
}

.anatomy-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 55% 42%, transparent 0%, transparent 30%, rgba(0,44,102,.08) 68%, rgba(0,44,102,.18) 100%),
    linear-gradient(90deg, rgba(247,249,251,.72), transparent 30%, transparent 70%, rgba(247,249,251,.82));
}

.anatomy-loading {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  color: var(--navy);
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(0,44,102,.16);
  border-radius: var(--radius);
  transform: translate(-50%, -50%);
}

.anatomy-stage.is-ready .anatomy-loading {
  display: none;
}

.anatomy-model-required {
  z-index: 8;
  display: grid;
  width: min(460px, calc(100% - 48px));
  min-height: 0;
  gap: 9px;
  padding: 22px;
  color: var(--navy);
  background: rgba(255,255,255,.93);
  border-color: rgba(0,44,102,.2);
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(0,28,64,.16);
  text-align: left;
}

.anatomy-model-required > span {
  color: var(--gold);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.anatomy-model-required strong {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.45;
}

.anatomy-model-required code {
  width: fit-content;
  padding: 7px 9px;
  color: var(--navy);
  background: rgba(0,44,102,.06);
  border-radius: 4px;
  font-size: .82rem;
}

.anatomy-model-required p {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.55;
}

.anatomy-stage.is-model-missing #hip-anatomy-canvas {
  cursor: default;
}

.anatomy-stage.is-model-missing .anatomy-present-toggle,
.anatomy-stage.is-model-missing .anatomy-view-controls,
.anatomy-stage.is-model-missing .anatomy-part-popover,
.anatomy-stage.is-model-missing .anatomy-rail,
.anatomy-stage.is-model-missing .anatomy-system-panel {
  display: none;
}

body.is-anatomy-presentation {
  overflow: hidden;
}

body.is-anatomy-presentation .site-header,
body.is-anatomy-presentation .floating-whatsapp {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-18px);
}

.anatomy-stage-grid {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 650px) minmax(320px, 410px);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  padding: 132px 0 52px;
}

.anatomy-copy {
  max-width: 650px;
}

.anatomy-copy h1 {
  color: var(--navy);
  font-size: 4.05rem;
  line-height: 1.05;
}

.anatomy-copy p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.12rem;
}

.anatomy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.anatomy-note {
  margin-top: 20px;
  color: rgba(24,33,52,.66) !important;
  font-size: .94rem !important;
}

.anatomy-viewer-top {
  position: absolute;
  top: 94px;
  left: 82px;
  right: auto;
  z-index: 4;
  max-width: 360px;
  pointer-events: none;
}

.anatomy-viewer-top > div,
.anatomy-search {
  pointer-events: auto;
}

.anatomy-viewer-top span,
.anatomy-search span {
  display: block;
  color: var(--gold);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.anatomy-viewer-top h1 {
  display: block;
  margin: 4px 0 0;
  color: var(--navy);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.62rem;
  line-height: 1.08;
}

.anatomy-present-toggle {
  position: absolute;
  top: 94px;
  right: 24px;
  z-index: 6;
  min-height: 40px;
  padding: 0 15px;
  color: var(--navy);
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(0,44,102,.16);
  border-radius: 999px;
  box-shadow: 0 16px 44px rgba(0,28,64,.1);
  backdrop-filter: blur(18px);
  font-size: .82rem;
  font-weight: 900;
  cursor: pointer;
}

.anatomy-view-controls {
  position: absolute;
  top: 160px;
  left: 82px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: min(420px, calc(100% - 116px));
}

.anatomy-view-controls button {
  min-height: 34px;
  padding: 0 10px;
  color: var(--navy);
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(0,44,102,.16);
  border-radius: 5px;
  box-shadow: 0 12px 30px rgba(0,28,64,.08);
  backdrop-filter: blur(16px);
  font-size: .76rem;
  font-weight: 800;
  cursor: pointer;
}

.anatomy-view-controls button[aria-pressed="true"] {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.anatomy-present-toggle[aria-pressed="true"] {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.anatomy-stage.is-presentation .anatomy-viewer-top,
.anatomy-stage.is-presentation .anatomy-rail,
.anatomy-stage.is-presentation .anatomy-system-panel {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.anatomy-stage.is-presentation .anatomy-present-toggle {
  top: 18px;
  right: 18px;
}

.anatomy-part-popover {
  position: absolute;
  z-index: 7;
  width: min(238px, calc(100% - 28px));
  padding: 8px 10px 9px;
  color: var(--navy);
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(0,44,102,.18);
  border-radius: 7px;
  box-shadow: 0 16px 36px rgba(0,28,64,.13);
  backdrop-filter: blur(16px);
  pointer-events: none;
  --connector-width: 34px;
  --connector-y: 50%;
}

.anatomy-part-popover::before,
.anatomy-part-popover::after {
  content: "";
  position: absolute;
  top: var(--connector-y);
  transform: translateY(-50%);
  pointer-events: none;
}

.anatomy-part-popover::before {
  width: var(--connector-width);
  height: 1px;
  background: linear-gradient(90deg, rgba(26,166,200,.2), rgba(26,166,200,.85));
}

.anatomy-part-popover::after {
  width: 7px;
  height: 7px;
  background: #1aa6c8;
  border-radius: 2px;
  box-shadow: 0 0 0 3px rgba(26,166,200,.16);
}

.anatomy-part-popover.is-right::before {
  right: 100%;
}

.anatomy-part-popover.is-right::after {
  left: calc(-1 * var(--connector-width) - 3px);
}

.anatomy-part-popover.is-left::before {
  left: 100%;
  background: linear-gradient(90deg, rgba(26,166,200,.85), rgba(26,166,200,.2));
}

.anatomy-part-popover.is-left::after {
  right: calc(-1 * var(--connector-width) - 3px);
}

  .anatomy-part-popover[hidden] {
    display: none;
  }

  .anatomy-hover-tooltip {
    position: absolute;
    z-index: 8;
    display: grid;
    gap: 2px;
    min-width: 150px;
    max-width: 204px;
    padding: 8px 10px;
    color: var(--navy);
    background: rgba(249,252,253,.9);
    border: 1px solid rgba(26,166,200,.34);
    border-radius: 6px;
    box-shadow: 0 14px 30px rgba(0,38,76,.14), inset 0 1px 0 rgba(255,255,255,.78);
    backdrop-filter: blur(14px);
    pointer-events: none;
    transform: translateY(2px);
    animation: anatomy-tooltip-in .18s ease-out both;
  }

  .anatomy-hover-tooltip[hidden] {
    display: none;
  }

  .anatomy-hover-tooltip span {
    color: var(--gold);
    font-size: .58rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .anatomy-hover-tooltip strong {
    overflow: hidden;
    color: var(--navy);
    font-family: "Afacad", Arial, sans-serif;
    font-size: .86rem;
    font-weight: 900;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  @keyframes anatomy-tooltip-in {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(2px); }
  }

.anatomy-part-popover span {
  display: block;
  color: var(--gold);
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.anatomy-part-popover strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-family: "Afacad", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.05;
}

.anatomy-part-popover p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.3;
}

.anatomy-stage.is-presentation .anatomy-part-popover {
  background: rgba(255,255,255,.84);
}

.anatomy-search {
  display: grid;
  gap: 7px;
}

.anatomy-search input {
  width: 100%;
  min-height: 40px;
  padding: 0 13px;
  color: var(--navy);
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(0,44,102,.16);
  border-radius: 999px;
  outline: none;
  box-shadow: 0 16px 42px rgba(0,28,64,.08);
  backdrop-filter: blur(18px);
}

.anatomy-search input:focus {
  border-color: rgba(0,44,102,.36);
}

.anatomy-rail {
  position: absolute;
  left: 18px;
  top: 148px;
  z-index: 5;
  display: grid;
  gap: 8px;
  width: 54px;
  padding: 8px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(0,44,102,.15);
  border-radius: 999px;
  box-shadow: 0 22px 58px rgba(0,28,64,.13);
  backdrop-filter: blur(18px);
}

.anatomy-rail button {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--navy);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  cursor: pointer;
}

.anatomy-rail button[aria-pressed="true"] {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.anatomy-rail span {
  font-size: .76rem;
  font-weight: 900;
}

.anatomy-rail small {
  position: absolute;
  left: 48px;
  top: 50%;
  min-width: 92px;
  padding: 6px 8px;
  color: var(--white);
  background: var(--navy);
  border-radius: var(--radius);
  font-size: .74rem;
  opacity: 0;
  transform: translateY(-50%) translateX(-4px);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}

.anatomy-rail button:hover small {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.anatomy-system-panel,
.anatomy-control-panel {
  align-self: end;
}

.anatomy-system-panel {
  position: absolute;
  right: 24px;
  top: 142px;
  z-index: 4;
  width: min(304px, calc(100% - 116px));
  max-height: calc(100svh - 170px);
  overflow: auto;
  padding: 14px;
  color: var(--navy);
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(0,44,102,.14);
  border-radius: var(--radius);
  box-shadow: 0 18px 54px rgba(0,28,64,.1);
  backdrop-filter: blur(20px);
}

.layer-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 10px;
}

.layer-heading span {
  color: var(--gold);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.layer-heading strong {
  max-width: 160px;
  color: var(--navy);
  font-size: .9rem;
  line-height: 1.16;
  text-align: right;
}

.anatomy-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 9px;
}

.anatomy-presets button {
  min-height: 31px;
  color: var(--navy);
  background: rgba(0,44,102,.06);
  border: 1px solid rgba(0,44,102,.12);
  border-radius: var(--radius);
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}

.anatomy-presets button:hover {
  background: var(--beige);
}

.anatomy-system-list,
.layer-toggles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.anatomy-system-row,
.layer-toggles button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-height: 36px;
  padding: 7px 8px;
  color: var(--navy);
  background: rgba(0,44,102,.035);
  border: 1px solid rgba(0,44,102,.1);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.anatomy-system-row.is-filtered {
  display: none;
}

.anatomy-system-row[data-layer="pain"] {
  grid-column: 1 / -1;
}

.anatomy-selection-panel {
  display: grid;
  gap: 9px;
  margin-top: 10px;
  padding: 10px;
  color: var(--navy);
  background: rgba(0,44,102,.045);
  border: 1px solid rgba(0,44,102,.12);
  border-radius: var(--radius);
}

.anatomy-selection-panel > span,
.anatomy-selection-panel label span {
  color: var(--gold);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.anatomy-selection-panel > strong {
  color: var(--navy);
  font-size: .92rem;
  line-height: 1.1;
}

.anatomy-selection-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.anatomy-selection-actions button {
  min-height: 32px;
  padding: 0 8px;
  color: var(--navy);
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(0,44,102,.14);
  border-radius: var(--radius);
  font-size: .75rem;
  font-weight: 900;
  cursor: pointer;
}

.anatomy-selection-actions button:disabled {
  color: rgba(0,44,102,.36);
  cursor: not-allowed;
}

  .anatomy-selection-panel label {
    display: grid;
    gap: 5px;
  }

  .anatomy-selection-panel .anatomy-search {
    order: -1;
  }

  .anatomy-selection-panel .anatomy-search input[type="search"] {
    min-height: 34px;
    padding: 0 10px;
    color: var(--navy);
    background: rgba(255,255,255,.76);
    border: 1px solid rgba(0,44,102,.16);
    border-radius: 5px;
    font: inherit;
    font-size: .8rem;
    outline: none;
  }

  .anatomy-selection-panel .anatomy-search input[type="search"]:focus {
    border-color: rgba(0,44,102,.52);
    box-shadow: 0 0 0 3px rgba(26,166,200,.12);
  }

  .anatomy-selection-panel input {
  width: 100%;
  accent-color: var(--gold);
}

.anatomy-system-row strong,
.anatomy-system-row small {
  display: block;
}

.anatomy-system-row strong {
  font-size: .82rem;
  line-height: 1.05;
}

.anatomy-system-row small {
  display: none;
}

.layer-toggles button:hover {
  transform: translateY(-2px);
}

.anatomy-system-row:hover,
.layer-toggles button[aria-pressed="true"] {
  transform: translateY(-1px);
}

.anatomy-system-row[aria-pressed="true"],
.layer-toggles button[aria-pressed="true"] {
  color: var(--navy);
  background: var(--beige);
  border-color: rgba(184,162,106,.4);
}

.layer-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255,255,255,.12);
}

.is-bone { background: #f1e8d5; }
.is-skin { background: #d7a795; }
.is-cartilage { background: #42d8cf; }
.is-ligament { background: #d7b85d; }
.is-muscle { background: #d65d66; }
.is-muscle-deep { background: #9e749c; }
.is-tendon { background: #f2a65a; }
.is-bursa { background: #7cc6e6; }
.is-nerve { background: #f0cf40; }
.is-vessel { background: #cf4054; }
.is-pain { background: #ff4f4f; }

.anatomy-range {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

.anatomy-range input {
  width: 100%;
  accent-color: var(--gold);
}

.anatomy-education {
  background:
    linear-gradient(90deg, rgba(0,44,102,.06), transparent 52%),
    var(--paper);
}

.anatomy-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.anatomy-facts article {
  min-height: 210px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 50px rgba(0,28,64,.06);
}

.anatomy-facts span {
  color: var(--gold);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.anatomy-facts h3 {
  margin-top: 32px;
  color: var(--navy);
  font-size: 1.34rem;
  line-height: 1.16;
}

.anatomy-facts p {
  margin: 12px 0 0;
  color: var(--muted);
}

.model-credit {
  margin-top: 18px;
  color: rgba(24,33,52,.62);
  font-size: .82rem;
}

.model-credit a {
  color: var(--navy);
  font-weight: 800;
}

.robot-hero {
  position: relative;
  min-height: 78svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-deep);
}

.robot-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .74;
}

.robot-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3,26,59,.94), rgba(3,26,59,.25));
}

.robot-copy {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), 900px);
  margin: 0 auto;
  padding: 130px 0 64px;
}

.robot-copy h1 {
  color: var(--white);
  font-size: 4.1rem;
  line-height: 1.05;
}

.robot-copy p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255,255,255,.78);
}

.robot-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.robot-steps article {
  min-height: 180px;
  padding: 24px;
}

.robot-steps p {
  margin: 36px 0 0;
  color: var(--muted);
}

.location-list {
  display: grid;
  gap: 12px;
}

.location-list article {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px;
}

.location-list h2 {
  color: var(--navy);
  font-size: 1.72rem;
  line-height: 1.16;
}

.location-list p {
  margin: 0;
  color: var(--muted);
}

.location-list a {
  color: var(--navy);
  font-weight: 800;
}

.faq-list {
  max-width: 860px;
  display: grid;
  gap: 10px;
}

.faq-list details {
  overflow: hidden;
}

.faq-list summary {
  padding: 18px 22px;
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
}

.faq-list p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
}

.contact-hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 116px 0 70px;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, .72fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
}

.contact-page-grid p {
  max-width: 560px;
  color: rgba(255,255,255,.76);
}

.contact-form {
  display: grid;
  gap: 12px;
  padding: 20px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: rgba(255,255,255,.78);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  color: var(--white);
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: var(--radius);
  padding: 12px 13px;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--beige);
}

.contact-form textarea {
  resize: vertical;
}

.site-footer {
  padding: 34px 0 18px;
  color: rgba(255,255,255,.74);
  background:
    linear-gradient(135deg, #02152f 0%, #08234b 58%, #031a3b 100%);
  border-top: 1px solid rgba(255,255,255,.12);
}

.footer-panel {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(260px, 1fr) minmax(230px, .7fr);
  gap: 28px;
  align-items: start;
  padding-bottom: 26px;
}

.footer-brand img {
  width: 178px;
  margin-bottom: 14px;
}

.footer-brand p,
.footer-contact span,
.footer-bottom p {
  margin: 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px 20px;
}

.footer-links a,
.footer-contact a,
.footer-bottom a {
  color: var(--beige);
  font-weight: 800;
}

.footer-contact {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.footer-contact strong {
  color: var(--white);
  font-size: .88rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .86rem;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--white);
  background: #1c9e55;
  border-radius: 50%;
  box-shadow: 0 16px 38px rgba(0,0,0,.25);
  font-size: .82rem;
  font-weight: 900;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .58s ease, transform .58s ease;
}

.home-hero [data-reveal],
.page-hero [data-reveal],
.robot-hero [data-reveal],
.contact-page-grid [data-reveal] {
  opacity: 1;
  transform: none;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 68px;
    column-gap: 12px;
    padding: 10px clamp(14px, 4vw, 24px);
  }

  .brand img,
  .site-header.is-inner .brand img,
  .site-header.is-scrolled .brand img,
  .site-header.is-open .brand img {
    width: 148px;
  }

  .main-nav {
    position: fixed;
    inset: 76px 14px auto;
    display: none;
    flex-direction: column;
    gap: 0;
    width: auto;
    justify-self: auto;
    padding: 10px;
    color: var(--navy);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-header.is-open .main-nav {
    display: flex;
    color: var(--navy);
    background: var(--white);
    border-color: var(--line);
  }
  .main-nav a { padding: 13px; }
  .header-cta { display: none; }
  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .hero-grid,
  .dual-panel,
  .page-hero-grid,
  .cta-grid,
  .feature-strip,
  .split-page,
  .lab-output,
  .contact-page-grid,
  .anatomy-stage-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .robot-copy h1,
  .anatomy-copy h1 {
    font-size: 3.18rem;
  }

  .statement h2,
  .strip-content h2,
  .page-hero h1,
  .contact-page-grid h1,
  .rich-text h2,
  .lab-output h2,
  .cta-grid h2 {
    font-size: 2.35rem;
  }

  .map-title h2 {
    font-size: 1.95rem;
  }

  .hero-photo {
    inset: 0;
    width: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .home-hero,
  .hero-grid {
    min-height: 760px;
  }

  .quick-nav,
  .cards-three,
  .authority-grid,
  .treatment-lab,
  .treatment-focus-grid,
  .anatomy-facts,
  .robot-steps,
  .map-rail {
    grid-template-columns: 1fr 1fr;
  }

  .anatomy-stage-grid {
    align-content: end;
    padding-top: 116px;
  }

  .anatomy-viewer-top {
    left: 78px;
    right: 16px;
    grid-template-columns: auto minmax(180px, 300px);
  }

  .anatomy-system-panel {
    right: 16px;
    width: min(340px, calc(100% - 110px));
  }

  .anatomy-hud {
    left: 78px;
    width: min(480px, calc(100% - 444px));
  }

  .timeline-grid {
    grid-template-columns: 1fr;
  }

  .timeline-intro {
    position: static;
  }

  .treatment-focus-grid article,
  .treatment-focus-grid article:nth-child(n+4) {
    grid-column: auto;
  }

  .map-title {
    grid-template-columns: 1fr;
  }

  .map-rail::before {
    display: none;
  }

  .map-rail article:nth-child(2n) {
    border-right: 0;
  }

  .location-list article {
    grid-template-columns: 1fr;
  }

  .footer-panel {
    grid-template-columns: 1fr 1fr;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 76px;
    font-size: 17px;
  }

  body.is-anatomy-presentation {
    padding-bottom: 0;
  }
  .container { width: min(calc(100% - 28px), var(--container)); }
  .site-header { padding: 12px 14px; }
  .brand img,
  .site-header.is-inner .brand img,
  .site-header.is-scrolled .brand img,
  .site-header.is-open .brand img { width: 136px; }

  .home-hero,
  .hero-grid {
    min-height: 86svh;
  }

  .hero-photo img {
    object-position: 52% 50%;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(2,16,38,.9), rgba(0,44,102,.62), rgba(0,44,102,.24)),
      linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,17,41,.78));
  }

  .hero-grid {
    padding: 98px 0 28px;
    align-items: end;
  }

  .hero-copy h1,
  .robot-copy h1 {
    font-size: 2.42rem;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 1.04rem;
  }

  .hero-actions,
  .cta-grid {
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .quick-nav,
  .cards-three,
  .authority-grid,
  .treatment-lab,
  .treatment-focus-grid,
  .anatomy-facts,
  .robot-steps,
  .map-rail {
    grid-template-columns: 1fr;
  }

  .anatomy-stage {
    min-height: 980px;
  }

  .anatomy-scene {
    bottom: auto;
    height: 430px;
    min-height: 430px;
    max-height: 520px;
  }

  .anatomy-vignette {
    background:
      linear-gradient(180deg, rgba(247,249,251,.16) 0%, rgba(247,249,251,.02) 48%, rgba(231,238,243,.94) 100%);
  }

  .anatomy-viewer-top {
    top: 82px;
    left: 14px;
    right: 14px;
    display: block;
  }

  .anatomy-viewer-top h1 {
    font-size: 1.02rem;
  }

  .anatomy-model-required {
    top: 64%;
    padding: 18px;
  }

  .anatomy-present-toggle {
    top: 174px;
    right: 14px;
    min-height: 36px;
    padding: 0 12px;
    font-size: .74rem;
  }

  .anatomy-view-controls {
    top: 126px;
    left: 14px;
    max-width: calc(100% - 28px);
  }

  .anatomy-view-controls button {
    min-height: 30px;
    padding: 0 8px;
    font-size: .7rem;
  }

  .anatomy-stage.is-presentation {
    min-height: 100svh;
  }

  .anatomy-stage.is-presentation .anatomy-scene {
    height: 100svh;
    min-height: 100svh;
    max-height: none;
  }

  .anatomy-stage.is-presentation .anatomy-present-toggle {
    top: 12px;
    right: 12px;
  }

  .anatomy-part-popover {
    width: min(224px, calc(100% - 28px));
    padding: 8px 9px;
  }

  .anatomy-part-popover strong {
    font-size: .93rem;
  }

  .anatomy-part-popover p {
    font-size: .72rem;
  }

  .anatomy-search {
    display: none;
  }

  .anatomy-rail {
    left: 14px;
    right: 14px;
    top: 442px;
    width: auto;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-radius: var(--radius);
  }

  .anatomy-rail button {
    width: 100%;
    border-radius: var(--radius);
  }

  .anatomy-rail small {
    display: none;
  }

  .anatomy-actions {
    align-items: stretch;
    margin-top: 12px;
  }

  .anatomy-actions .btn {
    width: calc(50% - 5px);
    min-width: 0;
    padding: 0 10px;
  }

  .anatomy-note {
    display: none;
  }

  .anatomy-system-panel {
    left: 14px;
    right: 14px;
    top: 562px;
    width: auto;
    max-height: none;
    padding: 14px;
  }

  .anatomy-presets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .anatomy-presets button {
    padding: 0 4px;
    font-size: .7rem;
  }

  .layer-heading {
    display: grid;
  }

  .layer-heading strong {
    max-width: none;
    text-align: left;
  }

  .anatomy-system-list {
    display: none;
  }

  .layer-toggles {
    grid-template-columns: 1fr;
  }

  .map-rail article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .map-rail article:last-child {
    border-bottom: 0;
  }

  .quick-nav a {
    min-height: 58px;
  }

  .section,
  .section.compact {
    padding: 42px 0;
  }

  .statement h2,
  .strip-content h2,
  .page-hero h1,
  .contact-page-grid h1,
  .rich-text h2,
  .lab-output h2,
  .cta-grid h2,
  .section-lead h2,
  .timeline-intro h2 {
    font-size: 1.86rem;
  }

  .map-title h2 {
    font-size: 1.55rem;
  }

  .signature-map::after {
    right: -28px;
    bottom: -50px;
    font-size: 9rem;
  }

  .feature-strip {
    min-height: auto;
  }

  .strip-image {
    min-height: 320px;
  }

  .strip-content {
    padding: 34px 20px;
  }

  .page-hero {
    padding: 104px 0 34px;
  }

  .image-stack img:nth-child(2) {
    width: 88%;
    margin-top: -24px;
  }

  .lab-card {
    min-height: 104px;
  }

  .lab-card strong {
    margin-top: 14px;
  }

  .authority-grid {
    border-left: 0;
  }

  .authority-grid article {
    min-height: auto;
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(0,44,102,.12);
  }

  .authority-grid article:last-child {
    border-bottom: 0;
  }

  .timeline-list article {
    padding: 20px 20px 20px 24px;
  }

  .footer-panel {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    padding: 30px 0 18px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .floating-whatsapp {
    left: 14px;
    right: 14px;
    width: auto;
    height: 54px;
    bottom: 14px;
    border-radius: var(--radius);
    font-size: 0;
  }

  .floating-whatsapp::before {
    content: "Agendar pelo WhatsApp";
    font-size: .92rem;
  }
}

/* Final cascade for the anatomy viewer. */
.anatomy-stage {
  background:
    radial-gradient(circle at 49% 36%, rgba(255,255,255,.96) 0%, rgba(234,244,247,.9) 26%, rgba(202,220,230,.74) 65%, rgba(182,202,216,.86) 100%),
    linear-gradient(150deg, #f6fafb, #d9e6ed);
}

.anatomy-vignette {
  background:
    radial-gradient(circle at 50% 42%, transparent 18%, rgba(15,57,88,.04) 52%, rgba(7,37,67,.25) 100%),
    linear-gradient(90deg, rgba(246,250,251,.54), transparent 27%, transparent 72%, rgba(246,250,251,.6));
}

.anatomy-system-panel {
  width: min(332px, calc(100% - 116px));
  padding: 13px;
  background: rgba(249,252,253,.76);
  border-color: rgba(11,55,91,.16);
  border-radius: 8px;
  box-shadow: 0 20px 54px rgba(13,49,79,.12), inset 0 1px 0 rgba(255,255,255,.88);
  backdrop-filter: blur(22px) saturate(120%);
}

.anatomy-present-toggle,
.anatomy-view-controls button,
.anatomy-part-popover,
.anatomy-hover-tooltip {
  background: rgba(249,252,253,.76);
  border-color: rgba(11,55,91,.16);
  box-shadow: 0 20px 54px rgba(13,49,79,.12), inset 0 1px 0 rgba(255,255,255,.88);
  backdrop-filter: blur(22px) saturate(120%);
}

.anatomy-rail {
  background: rgba(248,252,253,.72);
  border-color: rgba(11,55,91,.15);
  box-shadow: 0 20px 54px rgba(13,49,79,.12), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(20px) saturate(120%);
}

@media (max-width: 640px) {
  .anatomy-stage { min-height: 1140px; }
  .anatomy-system-panel { top: 548px; padding: 11px; }
  .anatomy-vignette {
    background:
      radial-gradient(circle at 50% 36%, transparent 12%, rgba(20,67,97,.06) 60%, rgba(236,244,247,.92) 100%),
      linear-gradient(180deg, rgba(247,249,251,.08), rgba(231,238,243,.92));
  }
  .anatomy-part-popover { display: none; }
}

/* Teaching tools for the anatomy viewer. */
.anatomy-lab-toggle {
  position: absolute;
  top: 94px;
  right: 166px;
  z-index: 7;
  min-height: 40px;
  padding: 0 14px;
  color: var(--navy);
  background: rgba(249,252,253,.76);
  border: 1px solid rgba(11,55,91,.16);
  border-radius: 5px;
  box-shadow: 0 16px 38px rgba(13,49,79,.1), inset 0 1px 0 rgba(255,255,255,.88);
  backdrop-filter: blur(18px);
  font: inherit;
  font-size: .78rem;
  font-weight: 900;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.anatomy-lab-toggle:hover,
.anatomy-lab-toggle[aria-expanded="true"] {
  background: rgba(226,242,246,.9);
  border-color: rgba(26,166,200,.36);
  transform: translateY(-1px);
}

.anatomy-study-tools {
  position: absolute;
  top: 210px;
  left: 82px;
  z-index: 9;
  width: min(318px, calc(100% - 456px));
  max-height: calc(100svh - 238px);
  overflow: auto;
  padding: 12px;
  color: var(--navy);
  background: rgba(247,251,252,.83);
  border: 1px solid rgba(11,55,91,.16);
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(8,42,70,.16), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(22px) saturate(125%);
  scrollbar-width: thin;
}

.anatomy-study-tools[hidden] {
  display: none;
}

.anatomy-study-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,44,102,.1);
}

.anatomy-study-head span,
.anatomy-study-label span {
  display: block;
  color: var(--gold);
  font-size: .6rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.anatomy-study-head strong {
  display: block;
  margin-top: 2px;
  font-family: "Afacad", Arial, sans-serif;
  font-size: .96rem;
  line-height: 1.1;
}

.anatomy-study-close,
.anatomy-study-label button {
  min-height: 26px;
  padding: 0 7px;
  color: rgba(0,44,102,.72);
  background: transparent;
  border: 1px solid rgba(0,44,102,.14);
  border-radius: 4px;
  font: inherit;
  font-size: .66rem;
  font-weight: 900;
  cursor: pointer;
}

.anatomy-study-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  margin: 10px 0;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(0,44,102,.1);
}

.anatomy-study-tabs button {
  min-height: 28px;
  padding: 0 3px;
  color: rgba(0,44,102,.65);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  font: inherit;
  font-size: .66rem;
  font-weight: 900;
  cursor: pointer;
}

.anatomy-study-tabs button[aria-selected="true"] {
  color: var(--navy);
  background: rgba(207,232,238,.64);
  border-color: rgba(26,166,200,.2);
}

.anatomy-study-pane {
  display: grid;
  gap: 10px;
}

.anatomy-study-pane[hidden] {
  display: none;
}

.anatomy-study-actions,
.anatomy-sequence-buttons,
.anatomy-motion-grid,
.anatomy-clinical-grid {
  display: grid;
  gap: 5px;
}

.anatomy-study-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.anatomy-sequence-buttons,
.anatomy-clinical-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.anatomy-motion-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.anatomy-study-actions button,
.anatomy-sequence-buttons button,
.anatomy-motion-grid button,
.anatomy-clinical-grid button,
.anatomy-study-reset {
  min-height: 31px;
  padding: 5px 7px;
  color: var(--navy);
  background: rgba(255,255,255,.64);
  border: 1px solid rgba(0,44,102,.13);
  border-radius: 4px;
  font: inherit;
  font-size: .69rem;
  font-weight: 900;
  line-height: 1.08;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.anatomy-study-actions button:hover,
.anatomy-study-actions button[aria-pressed="true"],
.anatomy-sequence-buttons button:hover,
.anatomy-motion-grid button:hover,
.anatomy-clinical-grid button:hover,
.anatomy-clinical-grid button[aria-pressed="true"],
.anatomy-study-reset:hover:not(:disabled) {
  background: rgba(225,241,245,.86);
  border-color: rgba(26,166,200,.34);
  transform: translateY(-1px);
}

.anatomy-study-reset:disabled {
  color: rgba(0,44,102,.38);
  cursor: not-allowed;
}

.anatomy-study-range,
.anatomy-clipping-controls,
.anatomy-layer-sequence {
  display: grid;
  gap: 6px;
  padding: 8px;
  background: rgba(0,44,102,.035);
  border: 1px solid rgba(0,44,102,.09);
  border-radius: 5px;
}

.anatomy-study-range > span,
.anatomy-clipping-controls label span,
.anatomy-layer-sequence small,
.anatomy-study-note,
.anatomy-pathology-summary {
  color: rgba(24,33,52,.66);
  font-size: .68rem;
  line-height: 1.35;
}

.anatomy-study-range > span {
  font-weight: 800;
}

.anatomy-study-range input,
.anatomy-clipping-controls input {
  width: 100%;
  accent-color: var(--gold);
}

.anatomy-clipping-controls label {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.anatomy-study-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.anatomy-study-label strong {
  color: var(--navy);
  font-size: .7rem;
  line-height: 1.1;
  text-align: right;
}

.anatomy-study-note,
.anatomy-pathology-summary {
  margin: 0;
}

.anatomy-measurement-readout {
  display: block;
  min-height: 31px;
  padding: 8px;
  color: #174a69;
  background: rgba(207,232,238,.5);
  border: 1px solid rgba(26,166,200,.17);
  border-radius: 4px;
  font-size: .72rem;
  line-height: 1.15;
}

.anatomy-stage.is-presentation .anatomy-lab-toggle,
.anatomy-stage.is-presentation .anatomy-study-tools {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

@media (max-width: 980px) {
  .anatomy-lab-toggle { right: 24px; top: 142px; }
  .anatomy-study-tools { left: 72px; top: 210px; width: min(318px, calc(100% - 412px)); }
}

@media (max-width: 640px) {
  .anatomy-lab-toggle {
    top: 174px;
    left: 14px;
    right: auto;
    min-height: 36px;
    font-size: .71rem;
  }

  .anatomy-study-tools {
    top: 218px;
    left: 14px;
    right: 14px;
    width: auto;
    max-height: 200px;
    padding: 10px;
  }

  .anatomy-study-head { padding-bottom: 7px; }
  .anatomy-study-tabs { margin: 7px 0; padding-bottom: 6px; }
  .anatomy-study-pane { gap: 7px; }
  .anatomy-study-range,
  .anatomy-clipping-controls,
  .anatomy-layer-sequence { padding: 7px; }
}

/* Presentation and teaching extensions for the anatomy viewer. */
.anatomy-study-tabs {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.anatomy-tour-route {
  display: grid;
  gap: 5px;
}

.anatomy-tour-route > span,
.anatomy-rich-details > span,
.anatomy-favorites > div > span {
  color: var(--gold);
  font-size: .6rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.anatomy-tour-route select {
  width: 100%;
  min-height: 32px;
  padding: 0 8px;
  color: var(--navy);
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(0,44,102,.14);
  border-radius: 4px;
  font: inherit;
  font-size: .71rem;
  font-weight: 800;
}

.anatomy-tour-progress {
  display: block;
  min-height: 31px;
  padding: 8px;
  color: #174a69;
  background: rgba(207,232,238,.42);
  border: 1px solid rgba(26,166,200,.17);
  border-radius: 4px;
  font-size: .71rem;
  line-height: 1.15;
}

.anatomy-tour-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.anatomy-tour-actions button,
.anatomy-favorites button,
.anatomy-category-legend summary {
  min-height: 30px;
  padding: 5px 7px;
  color: var(--navy);
  background: rgba(255,255,255,.64);
  border: 1px solid rgba(0,44,102,.13);
  border-radius: 4px;
  font: inherit;
  font-size: .68rem;
  font-weight: 900;
  line-height: 1.08;
  cursor: pointer;
}

.anatomy-tour-actions button[aria-pressed="true"],
.anatomy-tour-actions button:hover,
.anatomy-favorites button:hover {
  background: rgba(225,241,245,.86);
  border-color: rgba(26,166,200,.34);
}

.anatomy-category-legend {
  margin: 0 0 9px;
  border-top: 1px solid rgba(0,44,102,.1);
  border-bottom: 1px solid rgba(0,44,102,.1);
}

.anatomy-category-legend summary {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 29px;
  padding: 0;
  background: transparent;
  border: 0;
  list-style: none;
}

.anatomy-category-legend summary::-webkit-details-marker { display: none; }

.anatomy-category-legend summary::after {
  content: "+";
  margin-left: auto;
  color: var(--gold);
  font-size: .95rem;
}

.anatomy-category-legend[open] summary::after { content: "-"; }

.anatomy-category-legend > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 0 0 8px;
}

.anatomy-legend-item {
  display: flex;
  min-width: 0;
  gap: 6px;
  align-items: center;
  color: rgba(0,44,102,.74);
  font-size: .62rem;
  font-weight: 800;
  line-height: 1.12;
}

.anatomy-legend-item i {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--legend-color, #1aa6c8);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--legend-color, #1aa6c8) 15%, transparent);
}

.anatomy-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin: 8px 0 0;
  color: rgba(0,44,102,.64);
  font-size: .61rem;
  font-weight: 800;
  line-height: 1.25;
}

.anatomy-breadcrumb b {
  color: var(--gold);
  font-size: .72rem;
}

.anatomy-rich-details {
  display: grid;
  gap: 7px;
  margin-top: 8px;
  padding: 8px;
  background: rgba(207,232,238,.2);
  border: 1px solid rgba(26,166,200,.13);
  border-radius: 5px;
}

.anatomy-rich-details[hidden] { display: none; }

.anatomy-rich-details p {
  margin: 0;
  color: rgba(0,44,102,.8);
  font-size: .68rem;
  line-height: 1.35;
}

.anatomy-rich-details dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin: 0;
}

.anatomy-rich-details dl > div {
  min-width: 0;
  padding: 5px 6px;
  background: rgba(255,255,255,.48);
  border-radius: 4px;
}

.anatomy-rich-details dt {
  color: var(--gold);
  font-size: .55rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.anatomy-rich-details dd {
  margin: 3px 0 0;
  color: rgba(0,44,102,.77);
  font-size: .64rem;
  line-height: 1.25;
}

.anatomy-selection-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.anatomy-selection-actions button[data-selected-cinematic][aria-pressed="true"],
.anatomy-selection-actions button[data-selected-favorite][aria-pressed="true"] {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.anatomy-favorites {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,44,102,.1);
}

.anatomy-favorites > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.anatomy-favorites > div:first-child button {
  min-height: 24px;
  padding: 0 6px;
  color: rgba(0,44,102,.62);
  background: transparent;
}

.anatomy-favorites > p {
  margin: 0;
  color: rgba(0,44,102,.58);
  font-size: .65rem;
  line-height: 1.3;
}

.anatomy-favorites > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.anatomy-favorites > div:last-child button {
  min-height: 27px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anatomy-presentation-dock {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 12;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 8px 9px 8px 12px;
  color: rgba(255,255,255,.84);
  background: rgba(0,29,61,.58);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 5px;
  box-shadow: 0 16px 42px rgba(0,27,54,.24);
  backdrop-filter: blur(16px);
}

.anatomy-presentation-dock[hidden] { display: none; }

.anatomy-presentation-dock > span {
  font-size: .67rem;
  font-weight: 800;
}

.anatomy-presentation-dock > div {
  display: flex;
  gap: 5px;
}

.anatomy-presentation-dock button {
  min-height: 28px;
  padding: 0 7px;
  color: var(--white);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 4px;
  font: inherit;
  font-size: .63rem;
  font-weight: 900;
  cursor: pointer;
}

.anatomy-stage.is-presentation.is-presentation-controls-visible .anatomy-viewer-top,
.anatomy-stage.is-presentation.is-presentation-controls-visible .anatomy-view-controls,
.anatomy-stage.is-presentation.is-presentation-controls-visible .anatomy-rail,
.anatomy-stage.is-presentation.is-presentation-controls-visible .anatomy-system-panel,
.anatomy-stage.is-presentation.is-presentation-controls-visible .anatomy-lab-toggle {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.anatomy-stage.is-presentation.is-presentation-controls-visible .anatomy-study-tools {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.anatomy-stage.is-presentation {
  min-height: 100svh;
}

.anatomy-stage.is-presentation .anatomy-scene {
  height: 100svh;
  min-height: 100svh;
  max-height: none;
}

.anatomy-stage.is-presentation .anatomy-view-controls {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

@media (max-width: 640px) {
  .anatomy-study-tabs { font-size: .59rem; }
  .anatomy-selection-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .anatomy-rich-details dl { grid-template-columns: 1fr; }
  .anatomy-presentation-dock {
    right: 12px;
    bottom: 12px;
    left: 12px;
    justify-content: space-between;
  }
  .anatomy-presentation-dock > span { display: none; }
  .anatomy-presentation-dock > div { width: 100%; }
  .anatomy-presentation-dock button { flex: 1; }
}

/* Reduced interface: the model stays primary until the user asks for context. */
.anatomy-rail {
  display: none;
}

.anatomy-lab-toggle,
.anatomy-present-toggle {
  min-height: 34px;
  padding: 0 11px;
  border-radius: 5px;
  box-shadow: 0 10px 28px rgba(13,49,79,.1), inset 0 1px 0 rgba(255,255,255,.86);
  font-size: .71rem;
}

.anatomy-lab-toggle {
  top: 94px;
  right: 116px;
}

.anatomy-present-toggle {
  top: 94px;
  right: 24px;
}

.anatomy-view-controls {
  top: 138px;
  left: 24px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
  transition: opacity .2s ease, transform .2s ease;
}

.anatomy-stage.is-study-open .anatomy-view-controls {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.anatomy-viewer-top {
  top: 96px;
  left: 24px;
}

.anatomy-viewer-top span {
  color: rgba(0,44,102,.58);
  font-size: .58rem;
}

.anatomy-viewer-top h1 {
  font-family: "Afacad", Arial, sans-serif;
  font-size: .95rem;
  font-weight: 800;
}

.anatomy-study-tools {
  top: 150px;
  left: 24px;
  width: min(306px, calc(100% - 48px));
  max-height: calc(100svh - 178px);
  padding: 11px;
  border-radius: 7px;
  box-shadow: 0 22px 62px rgba(8,42,70,.14), inset 0 1px 0 rgba(255,255,255,.92);
}

.anatomy-study-search {
  display: grid;
  gap: 5px;
  margin: 10px 0 0;
}

.anatomy-study-search span {
  color: var(--gold);
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.anatomy-study-search input {
  width: 100%;
  min-height: 32px;
  padding: 0 9px;
  color: var(--navy);
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(0,44,102,.13);
  border-radius: 4px;
  font: inherit;
  font-size: .72rem;
  outline: none;
}

.anatomy-study-search input:focus {
  border-color: rgba(26,166,200,.48);
  box-shadow: 0 0 0 3px rgba(26,166,200,.1);
}

.anatomy-timeline-control > span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.anatomy-timeline-control strong {
  color: var(--navy);
  font-size: .62rem;
  text-align: right;
}

.anatomy-study-secondary {
  min-height: 29px;
  padding: 0 7px;
  color: rgba(0,44,102,.7);
  background: transparent;
  border: 1px solid rgba(0,44,102,.13);
  border-radius: 4px;
  font: inherit;
  font-size: .67rem;
  font-weight: 900;
  cursor: pointer;
}

.anatomy-system-panel {
  top: 94px;
  right: 24px;
  width: min(318px, calc(100% - 48px));
  max-height: calc(100svh - 122px);
  padding: 12px;
  border-radius: 7px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease;
}

.anatomy-stage.is-study-open .anatomy-system-panel,
.anatomy-stage.has-anatomy-selection .anatomy-system-panel {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.anatomy-stage.has-anatomy-selection:not(.is-study-open) .anatomy-system-panel {
  top: 132px;
  width: min(296px, calc(100% - 48px));
}

.anatomy-stage.has-anatomy-selection:not(.is-study-open) .layer-heading,
.anatomy-stage.has-anatomy-selection:not(.is-study-open) .anatomy-presets,
.anatomy-stage.has-anatomy-selection:not(.is-study-open) .anatomy-category-legend,
.anatomy-stage.has-anatomy-selection:not(.is-study-open) .anatomy-tree,
.anatomy-stage.has-anatomy-selection:not(.is-study-open) .anatomy-favorites,
.anatomy-stage.has-anatomy-selection:not(.is-study-open) .anatomy-actions,
.anatomy-stage.has-anatomy-selection:not(.is-study-open) .anatomy-range {
  display: none;
}

.anatomy-selection-panel {
  margin-top: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.anatomy-selection-primary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.anatomy-selection-primary button {
  min-height: 32px;
  padding: 0 8px;
  color: var(--white);
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 4px;
  font: inherit;
  font-size: .68rem;
  font-weight: 900;
  cursor: pointer;
}

.anatomy-selection-primary button:disabled {
  color: rgba(0,44,102,.35);
  background: rgba(0,44,102,.05);
  border-color: rgba(0,44,102,.1);
  cursor: not-allowed;
}

.anatomy-selection-more {
  margin-top: 2px;
  padding-top: 7px;
  border-top: 1px solid rgba(0,44,102,.1);
}

.anatomy-selection-more summary {
  color: rgba(0,44,102,.66);
  font-size: .66rem;
  font-weight: 900;
  cursor: pointer;
}

.anatomy-selection-more[open] summary {
  margin-bottom: 7px;
}

.anatomy-selection-more label {
  display: grid;
  gap: 5px;
  margin-top: 7px;
}

.anatomy-selection-more label span {
  color: var(--gold);
  font-size: .6rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.anatomy-selection-more input { width: 100%; accent-color: var(--gold); }

.anatomy-stage.is-surgical {
  background:
    radial-gradient(circle at 50% 40%, rgba(54,85,108,.26), rgba(4,18,33,.96) 78%),
    #071321;
}

.anatomy-stage.is-surgical .anatomy-vignette {
  background: radial-gradient(circle at 50% 44%, transparent 16%, rgba(1,9,18,.64) 100%);
}

.anatomy-stage.is-surgical .anatomy-viewer-top h1,
.anatomy-stage.is-surgical .anatomy-viewer-top span {
  color: rgba(241,248,252,.84);
}

@media (max-width: 640px) {
  .anatomy-lab-toggle { top: 92px; left: auto; right: 102px; }
  .anatomy-present-toggle { top: 92px; right: 14px; }
  .anatomy-viewer-top { top: 96px; left: 14px; max-width: 110px; }
  .anatomy-viewer-top span { display: none; }
  .anatomy-study-tools { top: 138px; left: 14px; right: 14px; width: auto; max-height: min(520px, calc(100svh - 166px)); }
  .anatomy-system-panel,
  .anatomy-stage.has-anatomy-selection:not(.is-study-open) .anatomy-system-panel { top: 138px; right: 14px; left: 14px; width: auto; max-height: min(590px, calc(100svh - 166px)); }
  .anatomy-view-controls { top: 134px; left: 14px; right: 14px; max-width: none; }
}

/* Premium anatomy workspace: controls stay quiet until the user asks for them. */
.anatomy-present-toggle {
  display: none;
}

.anatomy-lab-toggle {
  top: 94px;
  right: 70px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  color: rgba(0, 44, 102, .82);
  background: rgba(252, 254, 255, .72);
  border-color: rgba(0, 44, 102, .12);
  box-shadow: 0 8px 28px rgba(8, 42, 70, .08);
  backdrop-filter: blur(14px);
}

.anatomy-lab-toggle > span {
  font-size: .98rem;
  font-weight: 500;
  line-height: 1;
}

.anatomy-actions-toggle {
  position: absolute;
  top: 94px;
  right: 24px;
  z-index: 14;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0 0 5px;
  color: rgba(0, 44, 102, .86);
  background: rgba(252, 254, 255, .72);
  border: 1px solid rgba(0, 44, 102, .12);
  border-radius: 5px;
  box-shadow: 0 8px 28px rgba(8, 42, 70, .08);
  backdrop-filter: blur(14px);
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background .22s ease-out, border-color .22s ease-out, transform .22s ease-out;
}

.anatomy-actions-toggle:hover,
.anatomy-actions-toggle[aria-expanded="true"] {
  background: rgba(231, 244, 247, .9);
  border-color: rgba(26, 166, 200, .3);
  transform: translateY(-1px);
}

.anatomy-actions-menu {
  position: absolute;
  top: 134px;
  right: 24px;
  z-index: 15;
  display: grid;
  width: 174px;
  padding: 5px;
  background: rgba(251, 253, 254, .92);
  border: 1px solid rgba(0, 44, 102, .11);
  border-radius: 6px;
  box-shadow: 0 20px 48px rgba(8, 42, 70, .14);
  backdrop-filter: blur(20px) saturate(120%);
  animation: anatomy-panel-in .24s ease-out both;
}

.anatomy-actions-menu[hidden] { display: none; }

.anatomy-actions-menu button {
  min-height: 30px;
  padding: 0 8px;
  color: rgba(0, 44, 102, .78);
  background: transparent;
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-size: .68rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: background .18s ease-out, color .18s ease-out;
}

.anatomy-actions-menu button:hover {
  color: var(--navy);
  background: rgba(26, 166, 200, .1);
}

.anatomy-viewer-top {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
  transition: opacity .24s ease-out, transform .24s ease-out;
}

.anatomy-stage.is-study-open .anatomy-viewer-top {
  opacity: 1;
  transform: none;
}

.anatomy-study-tools {
  top: 94px;
  left: 24px;
  width: min(304px, calc(100% - 400px));
  max-height: calc(100svh - 122px);
  padding: 14px;
  border: 1px solid rgba(0, 44, 102, .1);
  border-radius: 6px;
  box-shadow: 0 24px 64px rgba(8, 42, 70, .13);
  opacity: 0;
  transform: translateX(-10px) scale(.985);
  transform-origin: top left;
  transition: opacity .26s ease-out, transform .26s ease-out;
}

.anatomy-study-tools.is-visible {
  opacity: 1;
  transform: none;
}

.anatomy-study-tools[hidden] { display: none; }

.anatomy-study-head > div > span {
  font-size: .57rem;
}

.anatomy-study-head > div > strong {
  font-size: .9rem;
}

.anatomy-study-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
}

.anatomy-study-tabs button {
  min-height: 30px;
  font-size: .61rem;
}

.anatomy-study-tools [data-tool-context] {
  display: none;
}

.anatomy-stage[data-tool-context="explode"] .anatomy-study-tools [data-tool-context="explode"],
.anatomy-stage[data-tool-context="rx"] .anatomy-study-tools [data-tool-context="rx"],
.anatomy-stage[data-tool-context="surgical"] .anatomy-study-tools [data-tool-context="surgical"],
.anatomy-stage[data-tool-context="timeline"] .anatomy-study-tools [data-tool-context="timeline"] {
  display: grid;
  animation: anatomy-panel-in .22s ease-out both;
}

.anatomy-stage[data-tool-context="timeline"] .anatomy-layer-sequence {
  display: grid;
}

.anatomy-study-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.anatomy-study-actions button,
.anatomy-sequence-buttons button,
.anatomy-motion-grid button,
.anatomy-clinical-grid button,
.anatomy-study-reset,
.anatomy-study-secondary {
  min-height: 32px;
  box-shadow: none;
}

.anatomy-system-panel {
  top: 128px;
  right: 24px;
  width: auto;
  max-height: calc(100svh - 156px);
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  transition: opacity .24s ease-out, transform .24s ease-out, width .32s ease-out, padding .32s ease-out;
}

.anatomy-system-panel > :not(.anatomy-selection-panel) {
  display: none;
}

.anatomy-stage.is-study-open .anatomy-system-panel {
  top: 94px;
  width: min(306px, calc(100% - 400px));
  padding: 12px;
  background: rgba(251, 253, 254, .86);
  border: 1px solid rgba(0, 44, 102, .1);
  box-shadow: 0 20px 58px rgba(8, 42, 70, .1);
  backdrop-filter: blur(18px);
  animation: anatomy-panel-in .24s ease-out both;
}

.anatomy-stage.is-study-open .anatomy-system-panel > :not(.anatomy-selection-panel) {
  display: grid;
}

.anatomy-selection-panel {
  min-width: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.anatomy-selection-empty {
  margin: 0;
  color: rgba(0, 44, 102, .56);
  font-size: .7rem;
  font-weight: 700;
  white-space: nowrap;
}

[data-anatomy-selection-content] {
  width: min(296px, calc(100vw - 48px));
  padding: 12px;
  background: rgba(251, 253, 254, .87);
  border: 1px solid rgba(0, 44, 102, .1);
  border-radius: 6px;
  box-shadow: 0 18px 48px rgba(8, 42, 70, .11);
  backdrop-filter: blur(18px);
  animation: anatomy-panel-in .24s ease-out both;
}

[data-anatomy-selection-content][hidden],
.anatomy-selection-empty[hidden] { display: none; }

.anatomy-stage.is-study-open [data-anatomy-selection-content] {
  width: auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(0, 44, 102, .09);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.anatomy-stage.is-study-open .anatomy-selection-empty {
  display: none;
}

.anatomy-presentation-dock {
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 5px;
  padding: 5px;
  background: rgba(0, 29, 61, .55);
  border-radius: 5px;
  animation: anatomy-panel-in .28s ease-out both;
}

.anatomy-presentation-dock button {
  min-width: 70px;
  min-height: 30px;
  padding: 0 8px;
}

.anatomy-stage.is-presentation .anatomy-lab-toggle,
.anatomy-stage.is-presentation .anatomy-actions-toggle,
.anatomy-stage.is-presentation .anatomy-actions-menu,
.anatomy-stage.is-presentation .anatomy-study-tools,
.anatomy-stage.is-presentation .anatomy-viewer-top,
.anatomy-stage.is-presentation .anatomy-view-controls,
.anatomy-stage.is-presentation .anatomy-system-panel,
.anatomy-stage.is-presentation .anatomy-part-popover,
.anatomy-stage.is-presentation .anatomy-hover-tooltip {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(.98);
}

@keyframes anatomy-panel-in {
  from { opacity: 0; transform: translateY(7px) scale(.985); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .anatomy-study-tools { width: min(304px, calc(100% - 72px)); }
  .anatomy-stage.is-study-open .anatomy-system-panel { display: none; }
}

@media (max-width: 640px) {
  .anatomy-lab-toggle { top: 92px; right: 58px; left: auto; }
  .anatomy-actions-toggle { top: 92px; right: 14px; }
  .anatomy-actions-menu { top: 132px; right: 14px; }
  .anatomy-system-panel { top: 138px; right: 14px; }
  [data-anatomy-selection-content] { width: min(296px, calc(100vw - 28px)); }
  .anatomy-study-tools {
    position: fixed;
    inset: 0;
    z-index: 1001;
    width: auto;
    max-height: none;
    padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
    background: rgba(249, 252, 253, .98);
    transform: translateY(10px) scale(.99);
    transform-origin: center;
  }
  .anatomy-study-tools.is-visible { transform: none; }
  .anatomy-study-head { padding-bottom: 14px; }
  .anatomy-study-tabs { margin: 14px 0; }
  body.is-anatomy-tools-open .site-header,
  body.is-anatomy-tools-open .floating-whatsapp {
    opacity: 0;
    pointer-events: none;
  }
  .anatomy-stage.is-presentation .anatomy-presentation-dock {
    right: 12px;
    bottom: 12px;
    left: 12px;
    justify-content: stretch;
  }
  .anatomy-presentation-dock button { flex: 1; min-width: 0; }
}

.anatomy-stage.is-study-open .anatomy-system-panel {
  top: 128px;
  width: auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  animation: none;
}

.anatomy-stage.is-study-open .anatomy-selection-empty {
  display: block;
}

.anatomy-study-advanced {
  margin-top: 2px;
  padding-top: 9px;
  border-top: 1px solid rgba(0, 44, 102, .1);
}

.anatomy-study-advanced summary {
  color: rgba(0, 44, 102, .7);
  font-size: .66rem;
  font-weight: 900;
  cursor: pointer;
}

.anatomy-study-advanced[open] summary { margin-bottom: 9px; }

.anatomy-study-advanced [data-study-advanced-content] {
  display: grid;
  gap: 10px;
  animation: anatomy-panel-in .22s ease-out both;
}

.anatomy-study-advanced .layer-heading,
.anatomy-study-advanced .anatomy-presets,
.anatomy-study-advanced .anatomy-category-legend,
.anatomy-study-advanced .anatomy-tree,
.anatomy-study-advanced .anatomy-favorites,
.anatomy-study-advanced .anatomy-actions,
.anatomy-study-advanced .anatomy-range {
  display: grid;
}

.anatomy-study-advanced .anatomy-tree {
  max-height: 260px;
}

/* A mode owns the drawer while it is active; unrelated controls stay out of sight. */
.anatomy-stage[data-tool-context]:not([data-tool-context="overview"]) .anatomy-study-head {
  justify-content: flex-end;
  padding-bottom: 0;
  border-bottom: 0;
}

.anatomy-stage[data-tool-context]:not([data-tool-context="overview"]) .anatomy-study-head > div,
.anatomy-stage[data-tool-context]:not([data-tool-context="overview"]) .anatomy-study-search,
.anatomy-stage[data-tool-context]:not([data-tool-context="overview"]) .anatomy-study-tabs,
.anatomy-stage[data-tool-context]:not([data-tool-context="overview"]) .anatomy-study-advanced {
  display: none;
}

.anatomy-stage[data-tool-context]:not([data-tool-context="overview"]) .anatomy-study-pane {
  display: none !important;
}

.anatomy-stage[data-tool-context="explode"] .anatomy-study-pane[data-study-pane="explore"],
.anatomy-stage[data-tool-context="rx"] .anatomy-study-pane[data-study-pane="explore"],
.anatomy-stage[data-tool-context="surgical"] .anatomy-study-pane[data-study-pane="explore"],
.anatomy-stage[data-tool-context="timeline"] .anatomy-study-pane[data-study-pane="explore"],
.anatomy-stage[data-tool-context="measure"] .anatomy-study-pane[data-study-pane="measure"] {
  display: grid !important;
  gap: 9px;
}

.anatomy-stage[data-tool-context="explode"] .anatomy-study-actions,
.anatomy-stage[data-tool-context="surgical"] .anatomy-study-actions,
.anatomy-stage[data-tool-context="rx"] .anatomy-study-actions,
.anatomy-stage[data-tool-context="timeline"] .anatomy-study-actions {
  display: grid;
  grid-template-columns: 1fr;
}

.anatomy-stage[data-tool-context="explode"] .anatomy-study-actions > :not([data-study-explode]),
.anatomy-stage[data-tool-context="surgical"] .anatomy-study-actions > :not([data-study-surgical]),
.anatomy-stage[data-tool-context="rx"] .anatomy-study-actions,
.anatomy-stage[data-tool-context="timeline"] .anatomy-study-actions,
.anatomy-stage[data-tool-context="explode"] .anatomy-study-secondary,
.anatomy-stage[data-tool-context="surgical"] .anatomy-study-secondary,
.anatomy-stage[data-tool-context="timeline"] .anatomy-study-secondary {
  display: none;
}

.anatomy-stage[data-tool-context="explode"] .anatomy-study-range,
.anatomy-stage[data-tool-context="rx"] .anatomy-study-range,
.anatomy-stage[data-tool-context="surgical"] .anatomy-clipping-controls,
.anatomy-stage[data-tool-context="timeline"] .anatomy-study-range,
.anatomy-stage[data-tool-context="timeline"] .anatomy-layer-sequence,
.anatomy-stage[data-tool-context="measure"] .anatomy-study-actions,
.anatomy-stage[data-tool-context="measure"] .anatomy-measurement-readout {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.anatomy-stage[data-tool-context="measure"] .anatomy-study-note {
  display: none;
}

.anatomy-stage[data-tool-context="measure"] .anatomy-study-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.anatomy-stage[data-tool-context="measure"] .anatomy-study-actions > [data-study-measure-clear] {
  grid-column: 1 / -1;
}

.anatomy-stage[data-tool-context]:not([data-tool-context="overview"]) .anatomy-study-tools {
  width: min(250px, calc(100% - 72px));
  padding: 11px;
}

.anatomy-stage[data-tool-context]:not([data-tool-context="overview"]) .anatomy-study-close {
  min-height: 28px;
  color: rgba(0, 44, 102, .58);
  border-color: transparent;
}

@media (max-width: 640px) {
  .anatomy-stage[data-tool-context]:not([data-tool-context="overview"]) .anatomy-study-tools {
    width: auto;
    padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
  }
}

/* Inspector visual: solid, contained and contextual so the anatomy stays in view. */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.anatomy-study-tools,
.anatomy-actions-menu,
[data-anatomy-selection-content] {
  color: #31465f;
  background: rgba(248, 251, 253, .96);
  border: 1px solid rgba(9, 55, 103, .12);
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(5, 35, 70, .12);
  backdrop-filter: blur(6px);
}

.anatomy-study-tools,
.anatomy-actions-menu {
  max-height: 75vh;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.anatomy-presentation-dock {
  background: rgba(5, 35, 70, .92);
  backdrop-filter: blur(6px);
}

.anatomy-system-panel {
  top: 104px;
  right: 24px;
  width: min(380px, calc(100vw - 48px));
  max-width: 380px;
  max-height: 75vh;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

[data-anatomy-selection-content] {
  width: 100%;
  max-width: 380px;
  max-height: 75vh;
  padding: 16px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  animation: anatomy-panel-in .26s ease-out both;
}

.anatomy-selection-empty {
  max-width: 300px;
  margin: 0 0 0 auto;
  padding: 0;
  color: #66788c;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: .78rem;
  line-height: 1.5;
  text-align: right;
}

.anatomy-selection-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.anatomy-selection-heading > div {
  min-width: 0;
}

.anatomy-selection-heading span,
.anatomy-rich-details > span,
.anatomy-detail-grid dt,
.anatomy-selection-more summary,
.anatomy-selection-more label > span {
  color: #66788c;
}

.anatomy-selection-heading strong,
.anatomy-detail-grid dd,
.anatomy-rich-details p,
.anatomy-rich-details dd {
  overflow-wrap: anywhere;
  word-break: normal;
}

.anatomy-selection-heading strong {
  display: block;
  margin-top: 3px;
  color: #073767;
  font-size: 1.16rem;
  line-height: 1.2;
}

.anatomy-selection-heading small {
  display: block;
  margin-top: 4px;
  color: #66788c;
  font-size: .72rem;
  line-height: 1.45;
}

.anatomy-selection-close {
  display: none;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 10px;
  color: #073767;
  background: #fff;
  border: 1px solid rgba(9, 55, 103, .16);
  border-radius: 9px;
  font-size: .72rem;
  font-weight: 800;
}

.anatomy-breadcrumb {
  margin: 0 0 12px;
  color: #66788c;
  font-size: .7rem;
  overflow-wrap: anywhere;
}

.anatomy-breadcrumb b {
  color: rgba(7, 55, 103, .36);
}

.anatomy-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.anatomy-detail-grid > div {
  min-width: 0;
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(9, 55, 103, .1);
  border-radius: 10px;
}

.anatomy-detail-grid > .is-wide {
  grid-column: 1 / -1;
}

.anatomy-detail-grid dt {
  margin-bottom: 4px;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.anatomy-detail-grid dd {
  margin: 0;
  color: #31465f;
  font-size: .78rem;
  line-height: 1.45;
}

.anatomy-selection-details-toggle {
  width: auto;
  min-height: 40px;
  margin-top: 10px;
  padding: 0 12px;
  color: #073767;
  background: transparent;
  border: 1px solid rgba(9, 55, 103, .18);
  border-radius: 9px;
  font-size: .74rem;
  font-weight: 800;
}

.anatomy-selection-details-toggle:disabled {
  opacity: .48;
}

.anatomy-selection-details-extra {
  margin-top: 8px;
}

.anatomy-selection-primary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.anatomy-selection-primary button {
  min-width: 0;
  min-height: 42px;
  padding: 0 10px;
  color: #f8fbfd;
  background: #073767;
  border: 1px solid #073767;
  border-radius: 9px;
  font-size: .74rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.anatomy-selection-primary button + button {
  color: #073767;
  background: #fff;
}

.anatomy-selection-more {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(9, 55, 103, .1);
}

.anatomy-selection-more summary {
  font-size: .74rem;
  font-weight: 800;
  cursor: pointer;
}

.anatomy-selection-more[open] summary {
  margin-bottom: 10px;
}

.anatomy-selection-more label {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  color: #31465f;
  font-size: .72rem;
}

@media (min-width: 1025px) {
  .anatomy-stage.has-anatomy-selection:not(.is-study-open) .anatomy-system-panel {
    width: 380px;
    max-width: calc(100vw - 48px);
  }
}

.anatomy-stage.is-study-open [data-anatomy-selection-content] {
  width: 100%;
  max-width: 380px;
  padding: 16px;
  color: #31465f;
  background: rgba(248, 251, 253, .96);
  border: 1px solid rgba(9, 55, 103, .12);
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(5, 35, 70, .12);
  backdrop-filter: blur(6px);
}

@media (max-width: 1024px) {
  .anatomy-system-panel,
  .anatomy-stage.is-study-open .anatomy-system-panel,
  .anatomy-stage.has-anatomy-selection:not(.is-study-open) .anatomy-system-panel {
    display: block;
    position: fixed;
    top: 88px;
    right: 16px;
    z-index: 1020;
    width: min(340px, calc(100vw - 32px));
    max-width: 340px;
    max-height: 75vh;
  }

  [data-anatomy-selection-content],
  .anatomy-stage.is-study-open [data-anatomy-selection-content] {
    max-width: 340px;
    max-height: 75vh;
  }

  .anatomy-selection-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .anatomy-system-panel,
  .anatomy-stage.is-study-open .anatomy-system-panel,
  .anatomy-stage.has-anatomy-selection:not(.is-study-open) .anatomy-system-panel {
    display: block;
    position: fixed;
    inset: auto 0 0;
    z-index: 1020;
    width: 100%;
    max-width: none;
    max-height: 60svh;
  }

  [data-anatomy-selection-content],
  .anatomy-stage.is-study-open [data-anatomy-selection-content] {
    width: 100%;
    max-width: none;
    max-height: 60svh;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    border-radius: 14px 14px 0 0;
  }

  .anatomy-selection-empty {
    max-width: 260px;
    margin-right: 16px;
  }

  .anatomy-stage:not(.has-anatomy-selection):not(.is-study-open) .anatomy-system-panel {
    inset: auto auto 96px 16px;
    width: min(250px, calc(100vw - 112px));
    max-width: none;
    max-height: none;
  }

  .anatomy-stage:not(.has-anatomy-selection):not(.is-study-open) .anatomy-selection-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .anatomy-stage:not(.has-anatomy-selection):not(.is-study-open) .anatomy-selection-empty {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
  }

  .anatomy-detail-grid,
  .anatomy-selection-primary {
    grid-template-columns: 1fr;
  }

  .anatomy-selection-primary button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .anatomy-selection-heading {
    gap: 8px;
  }

  .anatomy-selection-heading strong {
    font-size: 1.04rem;
  }

  .anatomy-selection-close {
    min-height: 34px;
    padding: 0 8px;
  }

  .anatomy-detail-grid > div {
    padding: 9px;
  }
}

/* Pain-location intake. It stays separate from the internal anatomy viewer. */
.hip-pain-intake {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
  gap: 14px;
  padding: 26px clamp(20px, 4vw, 58px);
  color: #073767;
  background: #f8fbfd;
  opacity: 1;
  transform: scale(1);
  transform-origin: center;
  transition: opacity 800ms cubic-bezier(.22, .8, .2, 1), transform 800ms cubic-bezier(.22, .8, .2, 1);
}

.hip-pain-intake.is-leaving { opacity: 0; transform: scale(1.018); pointer-events: none; }

.anatomy-stage.is-pain-intake-active > :not(.hip-pain-intake) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 800ms cubic-bezier(.22, .8, .2, 1), visibility 0s linear 800ms;
}

.hip-pain-intake-head,
.hip-pain-intake-controls,
.hip-pain-intake-actions,
.hip-pain-details-head,
.hip-pain-points > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hip-pain-intake h1 {
  margin: 2px 0 0;
  color: #073767;
  font-family: "Libre Baskerville", serif;
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  line-height: 1.2;
}

.hip-pain-intake-skip,
.hip-pain-segment button,
.hip-pain-details button,
.hip-pain-points button {
  min-height: 38px;
  padding: 0 12px;
  color: #073767;
  background: #f8fbfd;
  border: 1px solid rgba(9, 55, 103, .16);
  border-radius: 8px;
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}

.hip-pain-intake-skip { border-color: transparent; }
.hip-pain-segment { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.hip-pain-segment button[aria-pressed="true"],
.hip-pain-details button[aria-pressed="true"] { color: #fff; background: #073767; border-color: #073767; }

.hip-pain-intake-viewport {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background: #edf4f7;
  border: 1px solid rgba(9, 55, 103, .1);
  border-radius: 14px;
}

#hip-pain-canvas { display: block; width: 100%; height: 100%; cursor: crosshair; }
.hip-pain-model-status { position: absolute; inset: 0; display: grid; place-content: center; gap: 7px; padding: 24px; text-align: center; color: #31465f; }
.hip-pain-model-status strong { color: #073767; font-size: 1rem; }
.hip-pain-model-status span, .hip-pain-intake-instruction, .hip-pain-intake-actions p { margin: 0; color: #66788c; font-size: .82rem; }
.hip-pain-model-status code, .hip-pain-intake-actions code { overflow-wrap: anywhere; color: #073767; }
.hip-pain-intake-instruction { text-align: center; }

.hip-pain-details {
  width: min(420px, 100%);
  justify-self: center;
  padding: 14px;
  color: #31465f;
  background: rgba(248, 251, 253, .98);
  border: 1px solid rgba(9, 55, 103, .12);
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(5, 35, 70, .12);
}

.hip-pain-details p { margin: 0; color: #073767; font-weight: 800; }
.hip-pain-details label { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; font-size: .8rem; font-weight: 800; }
.hip-pain-details input { grid-column: 1 / -1; width: 100%; accent-color: #073767; }
.hip-pain-details fieldset { min-width: 0; margin: 12px 0 0; padding: 0; border: 0; }
.hip-pain-details legend { margin-bottom: 7px; color: #66788c; font-size: .72rem; font-weight: 800; }
.hip-pain-details fieldset > div { display: flex; flex-wrap: wrap; gap: 6px; }
.hip-pain-details fieldset button { min-height: 32px; font-size: .7rem; }

.hip-pain-points { display: grid; gap: 6px; width: min(600px, 100%); justify-self: center; }
.hip-pain-points > div { padding: 8px; border-bottom: 1px solid rgba(9, 55, 103, .1); }
.hip-pain-points button:first-child { min-width: 0; overflow-wrap: anywhere; text-align: left; border-color: transparent; }
.hip-pain-points button:last-child { min-height: 32px; }
.hip-pain-intake-actions { width: min(600px, 100%); justify-self: center; }
.hip-pain-intake-actions .btn { width: auto; min-width: 132px; }
.hip-pain-intake-actions .btn:disabled { opacity: .45; cursor: not-allowed; }

@media (max-width: 768px) {
  .hip-pain-intake { padding: 18px 14px; gap: 12px; }
  .hip-pain-intake-head { align-items: flex-start; }
  .hip-pain-intake-skip { min-height: 32px; padding: 0; white-space: nowrap; }
  .hip-pain-intake-controls { display: grid; grid-template-columns: 1fr; gap: 7px; }
  .hip-pain-segment { justify-content: center; }
  .hip-pain-segment button { flex: 1; min-width: 0; padding: 0 8px; }
  .hip-pain-intake-viewport { min-height: 300px; }
  .hip-pain-intake-actions { align-items: stretch; }
  .hip-pain-intake-actions .btn { width: 100%; }
}

/* Lightweight vector pain map. It deliberately has no external body model or loading state. */
.hip-pain-intake {
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  justify-items: center;
  gap: 10px;
  padding-block: 20px;
}

.hip-pain-intake-head {
  justify-content: center;
  text-align: center;
}

.hip-pain-intake-head .eyebrow { margin-bottom: 4px; }
.hip-pain-intake-controls { justify-content: center; }
.hip-pain-map-wrap { display: grid; place-items: center; width: min(100%, 430px); min-height: 0; }

.hip-pain-map {
  display: block;
  width: min(100%, 350px);
  height: min(49svh, 470px);
  min-height: 300px;
  overflow: visible;
  touch-action: none;
  user-select: none;
  outline: none;
}

.hip-pain-map-surface {
  fill: #e3f0f4;
  stroke: #0a487a;
  stroke-width: 2.4;
  cursor: crosshair;
}

.hip-pain-map-line {
  fill: none;
  stroke: rgba(10, 72, 122, .42);
  stroke-width: 1.45;
  stroke-linecap: round;
  pointer-events: none;
}

.hip-pain-map-line.soft { stroke: rgba(10, 72, 122, .23); }
.hip-pain-marker { pointer-events: none; }
.hip-pain-marker-halo { fill: rgba(31, 136, 177, .16); stroke: rgba(31, 136, 177, .52); stroke-width: 1.2; }
.hip-pain-marker-dot { fill: #0b5c92; stroke: #fff; stroke-width: 2.5; }

.hip-pain-intake-actions {
  width: min(460px, 100%);
  justify-content: center;
}

.hip-pain-intake-actions p { text-align: center; }

.anatomy-stage > :not(.hip-pain-intake) {
  transition: opacity 800ms cubic-bezier(.22, .8, .2, 1);
}

.anatomy-stage.has-pain-context .anatomy-system-panel {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pain-context-panel {
  position: absolute;
  top: 104px;
  right: clamp(16px, 3vw, 38px);
  z-index: 28;
  width: min(318px, calc(100% - 32px));
  padding: 16px;
  color: #173653;
  background: rgba(250, 253, 254, .96);
  border: 1px solid rgba(12, 62, 104, .13);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(4, 31, 58, .16);
  backdrop-filter: blur(12px);
}

.pain-context-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.pain-context-heading span,
.pain-context-structures > span {
  display: block;
  color: #567087;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pain-context-heading strong {
  display: block;
  margin-top: 3px;
  color: #073767;
  font-family: "Libre Baskerville", serif;
  font-size: 1rem;
  line-height: 1.35;
}

.pain-context-heading button {
  min-height: auto;
  padding: 2px 0;
  color: #315b7d;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: .72rem;
  font-weight: 800;
  cursor: pointer;
}

.pain-context-panel > p {
  margin: 13px 0 0;
  color: #526b7d;
  font-size: .8rem;
  line-height: 1.55;
}

.pain-context-structures {
  margin-top: 14px;
}

.pain-context-structures ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.pain-context-structures li {
  padding: 5px 8px;
  color: #0b4c7d;
  background: #e8f2f6;
  border-radius: 5px;
  font-size: .72rem;
  line-height: 1.35;
}

.pain-context-panel .pain-context-disclaimer {
  margin-top: 14px;
  padding-top: 12px;
  color: #71818e;
  border-top: 1px solid rgba(12, 62, 104, .1);
  font-size: .69rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .hip-pain-intake { grid-template-rows: auto auto minmax(0, 1fr) auto auto; padding: 14px; }
  .hip-pain-map { width: min(100%, 310px); height: min(51svh, 430px); min-height: 270px; }
  .hip-pain-intake-actions { display: grid; gap: 8px; }
  .hip-pain-intake-actions .btn { width: 100%; }
  .pain-context-panel {
    position: fixed;
    top: auto;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    z-index: 65;
    width: auto;
    max-height: min(44svh, 350px);
    overflow: auto;
  }
}

/* Clean clinical editorial system. The home surgery hero and anatomy viewer stay independent. */
body:not([data-page="anatomia"]) .page-hero {
  padding: 144px 0 58px;
  background: var(--white);
  border-bottom: 0;
}

body:not([data-page="anatomia"]) .page-hero-grid > div {
  padding-left: 24px;
  border-left: 3px solid var(--navy);
}

body:not([data-page="anatomia"]) .page-hero p {
  max-width: 480px;
  font-size: 1.08rem;
  line-height: 1.55;
}

body:not([data-page="anatomia"]) .section.soft,
body:not([data-page="anatomia"]) .timeline-section {
  background: var(--white);
  border: 0;
}

body[data-page="home"] .authority-band {
  background: var(--white);
  border: 0;
}

body[data-page="home"] .authority-grid {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  border: 0;
  gap: 20px;
}

body[data-page="home"] .authority-grid article {
  min-height: auto;
  padding: 22px 0 26px;
  border: 0;
  border-top: 1px solid var(--line);
}

body[data-page="home"] .authority-grid strong {
  margin-top: 8px;
}

body[data-page="home"] .quick-nav {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

body[data-page="home"] .quick-nav a {
  min-height: 58px;
  padding: 12px 0;
  border: 0;
  font-size: .95rem;
}

body[data-page="home"] .quick-nav a:hover {
  padding-left: 8px;
  background: transparent;
}

body[data-page="home"] .signature-map {
  padding: 74px 0;
  background: var(--white);
  border: 0;
}

body[data-page="home"] .signature-map::after {
  display: none;
}

body:not([data-page="anatomia"]) .map-rail {
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

body:not([data-page="anatomia"]) .map-rail::before {
  display: none;
}

body:not([data-page="anatomia"]) .map-rail article {
  min-height: 176px;
  padding: 24px 20px;
  border-color: var(--line);
}

body:not([data-page="anatomia"]) .map-rail span {
  width: auto;
  height: auto;
  color: var(--navy);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: .76rem;
}

body:not([data-page="anatomia"]) .map-rail strong {
  margin-top: 28px;
}

body:not([data-page="anatomia"]) .feature-strip {
  min-height: 0;
  color: var(--ink);
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

body:not([data-page="anatomia"]) .strip-image {
  min-height: 420px;
}

body:not([data-page="anatomia"]) .strip-content h2 {
  color: var(--navy);
}

body:not([data-page="anatomia"]) .strip-content .eyebrow {
  color: var(--navy-soft);
}

body:not([data-page="anatomia"]) .cards-three {
  gap: 30px;
}

body:not([data-page="anatomia"]) .cards-three article,
body:not([data-page="anatomia"]) .location-list article,
body:not([data-page="anatomia"]) .robot-steps article,
body:not([data-page="anatomia"]) .lab-card,
body:not([data-page="anatomia"]) .faq-list details {
  background: transparent;
  border: 0;
  border-top: 2px solid var(--navy);
  border-radius: 0;
  box-shadow: none;
}

body:not([data-page="anatomia"]) .cards-three article {
  min-height: 0;
  padding: 20px 0 0;
  overflow: visible;
}

body:not([data-page="anatomia"]) .cards-three article::after {
  display: none;
}

body:not([data-page="anatomia"]) .cards-three h3 {
  margin-top: 14px;
}

body:not([data-page="anatomia"]) .cta-slab {
  background: var(--navy-deep);
}

body:not([data-page="anatomia"]) .cta-slab .btn-light {
  border-color: rgba(255,255,255,.6);
}

body:not([data-page="anatomia"]) .image-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body:not([data-page="anatomia"]) .image-stack img {
  height: 340px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

body:not([data-page="anatomia"]) .image-stack img:nth-child(2) {
  width: 100%;
  margin: 0;
  border: 0;
}

body:not([data-page="anatomia"]) .timeline-section {
  padding-top: 84px;
  padding-bottom: 84px;
}

body:not([data-page="anatomia"]) .timeline-list {
  gap: 0;
  border-top: 1px solid var(--line);
}

body:not([data-page="anatomia"]) .timeline-list article {
  padding: 22px 0 22px 22px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

body:not([data-page="anatomia"]) .timeline-list article::before {
  top: 22px;
  bottom: 22px;
  width: 2px;
}

body:not([data-page="anatomia"]) .treatment-lab {
  gap: 0;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

body:not([data-page="anatomia"]) .lab-card {
  min-height: 0;
  padding: 0 18px 18px;
  border-top: 0;
  border-bottom: 2px solid transparent;
}

body:not([data-page="anatomia"]) .lab-card:first-child {
  padding-left: 0;
}

body:not([data-page="anatomia"]) .lab-card.is-active,
body:not([data-page="anatomia"]) .lab-card:hover {
  color: var(--navy);
  background: transparent;
  border-bottom-color: var(--navy);
  transform: none;
}

body:not([data-page="anatomia"]) .lab-card strong {
  margin-top: 12px;
}

body:not([data-page="anatomia"]) .lab-output {
  padding: 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

body:not([data-page="anatomia"]) .lab-output img {
  border-radius: 0;
}

body:not([data-page="anatomia"]) .treatment-focus-grid {
  gap: 30px;
}

body:not([data-page="anatomia"]) .treatment-focus-grid article {
  background: transparent;
  border: 0;
  border-top: 2px solid var(--navy);
  border-radius: 0;
  box-shadow: none;
}

body:not([data-page="anatomia"]) .treatment-focus-grid article:hover {
  box-shadow: none;
  transform: none;
}

body:not([data-page="anatomia"]) .treatment-focus-grid div {
  padding: 18px 0 0;
}

body:not([data-page="anatomia"]) .robot-steps article {
  min-height: 0;
  padding: 20px 0 0;
}

body:not([data-page="anatomia"]) .robot-steps p {
  margin-top: 18px;
}

body:not([data-page="anatomia"]) .location-list {
  gap: 0;
  border-bottom: 1px solid var(--line);
}

body:not([data-page="anatomia"]) .location-list article {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

body:not([data-page="anatomia"]) .faq-list {
  gap: 0;
  border-top: 1px solid var(--line);
}

body:not([data-page="anatomia"]) .faq-list details {
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

body:not([data-page="anatomia"]) .faq-list summary,
body:not([data-page="anatomia"]) .faq-list p {
  padding-left: 0;
  padding-right: 0;
}

body:not([data-page="anatomia"]) .site-footer {
  background: var(--navy-deep);
}

@media (max-width: 980px) {
  body:not([data-page="anatomia"]) .page-hero {
    padding: 116px 0 44px;
  }

  body[data-page="home"] .authority-grid,
  body[data-page="home"] .quick-nav {
    width: min(calc(100% - 28px), var(--container));
  }

  body[data-page="home"] .authority-grid,
  body[data-page="home"] .quick-nav,
  body:not([data-page="anatomia"]) .map-rail,
  body:not([data-page="anatomia"]) .image-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not([data-page="anatomia"]) .treatment-lab {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not([data-page="anatomia"]) .lab-card:nth-child(odd) {
    padding-left: 0;
  }
}

@media (max-width: 640px) {
  body:not([data-page="anatomia"]) .page-hero-grid > div {
    padding-left: 16px;
  }

  body[data-page="home"] .authority-grid,
  body[data-page="home"] .quick-nav,
  body:not([data-page="anatomia"]) .map-rail,
  body:not([data-page="anatomia"]) .image-stack,
  body:not([data-page="anatomia"]) .treatment-lab {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .quick-nav a {
    min-height: 50px;
  }

  body:not([data-page="anatomia"]) .feature-strip {
    grid-template-columns: 1fr;
  }

  body:not([data-page="anatomia"]) .strip-image {
    min-height: 300px;
  }

  body:not([data-page="anatomia"]) .image-stack img {
    height: 300px;
  }

  body:not([data-page="anatomia"]) .location-list article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body:not([data-page="anatomia"]) .lab-card,
  body:not([data-page="anatomia"]) .lab-card:first-child {
    padding-left: 0;
  }
}
