:root {
  --v5-ground: #050706;
  --v5-ground-raised: #0d120e;
  --v5-surface: #172019;
  --v5-surface-high: #202a22;
  --v5-white: #fff;
  --v5-secondary: #adb4ae;
  --v5-tertiary: #737a74;
  --v5-gold: #e7bd69;
  --v5-radius: 22px;
  --v5-section: clamp(124px, 13vw, 210px);
}

:focus-visible {
  outline: 2px solid var(--v6-gold, #e7bd69);
  outline-offset: 3px;
}

body.is-modal-open {
  overflow: hidden;
}

/* Zero scroll-trapping: allow smooth vertical panning across all canvases & hosts */
.hero-stage,
.implant-stage,
.hero-object,
.implant-object,
.implant-canvas-host,
.ambient-canvas,
canvas,
[data-hero-canvas],
[data-implant-canvas],
[data-ambient] {
  touch-action: pan-y;
}

.topbar nav {
  gap: clamp(20px, 2.2vw, 34px);
}

/* Desktop-only living team modal */
.team-preview {
  --deck-x: 0;
  --deck-y: 0;
  position: absolute;
  z-index: 9;
  top: 52%;
  right: clamp(30px, 3.8vw, 72px);
  width: clamp(440px, 32vw, 520px);
  min-height: 350px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: var(--v5-radius);
  background: rgba(13, 18, 14, .9);
  box-shadow:
    0 38px 90px rgba(0, 0, 0, .34),
    inset 0 1px rgba(255, 255, 255, .055);
  backdrop-filter: blur(24px) saturate(1.08);
  transform:
    translateY(-50%)
    perspective(1100px)
    rotateX(calc(var(--deck-y) * -2.2deg))
    rotateY(calc(var(--deck-x) * 3deg));
  transform-style: preserve-3d;
  transition: box-shadow .45s ease;
  will-change: transform;
}

.team-preview:hover,
.team-preview:focus-within {
  box-shadow:
    0 42px 110px rgba(0, 0, 0, .48),
    0 0 0 1px rgba(231, 189, 105, .1),
    inset 0 1px rgba(255, 255, 255, .075);
}

.team-preview-bar,
.team-preview-controls,
.team-dialog-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.team-preview-bar {
  height: 44px;
  padding: 0 7px 0 10px;
}

.team-preview-bar p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--v5-secondary);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.team-preview-bar p i {
  width: 5px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--v5-gold);
  box-shadow: 0 0 12px rgba(231, 189, 105, .75);
}

.team-preview-bar > button {
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: rgba(231, 189, 105, .08);
  color: var(--v5-gold);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background .25s ease, transform .25s var(--ease);
}

.team-preview-bar > button:hover {
  background: rgba(231, 189, 105, .15);
  transform: translateY(-1px);
}

.team-card-stack {
  position: relative;
  height: 244px;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.team-card {
  --card-position: 0;
  --card-depth: 0;
  position: absolute;
  inset: 9px 5px;
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 23px;
  align-items: stretch;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 17px;
  background: #172019;
  box-shadow:
    0 18px 38px rgba(0, 0, 0, calc(.18 + var(--card-depth) * .08)),
    inset 0 1px rgba(255, 255, 255, .055);
  opacity: calc(1 - var(--card-depth) * .28);
  transform:
    translate3d(
      calc(var(--card-position) * 25px + var(--deck-x) * 3px),
      calc(var(--card-depth) * -11px + var(--deck-y) * 2px),
      calc(var(--card-depth) * -52px)
    )
    rotateZ(calc(var(--card-position) * 1.8deg))
    rotateY(calc(var(--card-position) * -4deg));
  transform-origin: 50% 86%;
  transform-style: preserve-3d;
  pointer-events: none;
  will-change: transform, opacity;
}

.team-card.is-active {
  pointer-events: auto;
}

.team-card-visual {
  position: relative;
  display: grid;
  place-items: end start;
  overflow: hidden;
  padding: 12px;
  border-radius: 12px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, .08), transparent 42%),
    #0d130e;
  isolation: isolate;
}

.team-card-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -18%;
  right: -55%;
  width: 128%;
  aspect-ratio: 1;
  border: 1px solid rgba(231, 189, 105, .2);
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(231, 189, 105, .09) inset;
}

.team-card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, transparent 42%, rgba(231, 189, 105, .09) 52%, transparent 62%);
  transform: translateX(-120%);
  animation: team-light-sweep 5.8s var(--ease) infinite;
}

@keyframes team-light-sweep {
  0%, 58% { transform: translateX(-120%); }
  82%, 100% { transform: translateX(120%); }
}

.team-card-visual img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  filter: saturate(.84) contrast(1.04);
}

.team-card-visual i {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(5, 8, 6, .48));
}

.team-card-copy {
  min-width: 0;
  align-self: center;
}

.team-card-copy p {
  margin: 0 0 7px;
  color: var(--v5-gold);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.team-card-copy h2 {
  margin: 0;
  color: var(--v5-white);
  font-size: clamp(30px, 2.15vw, 36px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .98;
}

.team-card-copy strong {
  display: block;
  margin-top: 6px;
  color: var(--v5-secondary);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
}

.team-card-copy small {
  display: block;
  max-width: 230px;
  margin-top: 15px;
  color: var(--v5-tertiary);
  font-size: 9px;
  line-height: 1.45;
}

.team-preview-controls {
  height: 43px;
  padding: 0 8px;
}

.team-preview-controls button,
.team-dialog-controls button {
  display: grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .055);
  color: var(--v5-secondary);
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .25s var(--ease);
}

.team-preview-controls button:hover,
.team-dialog-controls button:hover {
  background: rgba(231, 189, 105, .13);
  color: var(--v5-gold);
  transform: translateY(-1px);
}

.team-preview-controls p,
.team-dialog-controls p {
  margin: 0;
  color: var(--v5-tertiary);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .12em;
}

.team-preview-controls p span,
.team-dialog-controls p span {
  color: var(--v5-white);
}

/* Quiet human-method chapter */
.method {
  position: relative;
  z-index: 4;
  padding: var(--v5-section) clamp(24px, 7vw, 112px);
  background: var(--v5-ground-raised);
  overflow: hidden;
}

.method::after {
  content: "";
  position: absolute;
  right: -16vw;
  top: 9%;
  width: min(46vw, 700px);
  aspect-ratio: 1;
  border: 1px solid rgba(231, 189, 105, .08);
  border-radius: 50%;
  box-shadow:
    0 0 0 7vw rgba(231, 189, 105, .018),
    0 0 0 14vw rgba(231, 189, 105, .01);
  pointer-events: none;
}

.method-heading,
.method-steps,
.team-ledger {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin-inline: auto;
}

.method-heading {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  column-gap: clamp(48px, 9vw, 150px);
  align-items: end;
}

.method-heading .eyebrow {
  grid-column: 1 / -1;
}

.method-heading h2,
.material-copy h2,
.journey-heading h2 {
  font-size: clamp(56px, 6.4vw, 104px);
}

.method-heading > p:last-child {
  max-width: 500px;
  margin: 0 0 7px;
  color: var(--v5-secondary);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.72;
}

.method-steps {
  margin-top: clamp(84px, 10vw, 150px);
  padding: 0;
  list-style: none;
}

.method-steps li {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: start;
  max-width: 790px;
  min-height: 152px;
  margin-left: auto;
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, .11);
}

.method-steps li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, .11);
}

.method-steps li > span,
.team-ledger-row article > span,
.journey-flow li > span {
  color: var(--v5-gold);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .14em;
}

.method-steps h3 {
  margin: 0;
  color: var(--v5-white);
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 400;
  letter-spacing: -.055em;
}

.method-steps p {
  max-width: 520px;
  margin: 10px 0 0;
  color: var(--v5-secondary);
  font-size: 14px;
  line-height: 1.65;
}

.team-ledger {
  margin-top: clamp(108px, 12vw, 180px);
}

.team-ledger-intro {
  max-width: 720px;
  margin: 0 0 48px;
  color: var(--v5-secondary);
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 300;
  letter-spacing: -.035em;
  line-height: 1.35;
}

.team-ledger-intro strong {
  color: var(--v5-white);
  font-weight: 400;
}

.team-ledger-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.team-ledger-row article {
  min-height: 164px;
  padding: 25px clamp(16px, 2vw, 30px) 25px 0;
}

.team-ledger-row article + article {
  padding-left: clamp(18px, 2.8vw, 44px);
  border-left: 1px solid rgba(255, 255, 255, .08);
}

.team-ledger-row article:nth-child(3n + 1) {
  padding-left: 0;
  border-left: 0;
}

.team-ledger-row article:nth-child(n + 4) {
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.team-ledger-row h3 {
  margin: 29px 0 8px;
  color: var(--v5-white);
  font-size: clamp(18px, 1.7vw, 26px);
  font-weight: 400;
  letter-spacing: -.045em;
}

.team-ledger-row p {
  margin: 0;
  color: var(--v5-tertiary);
  font-size: 11px;
}

/* Mobile-only spatial team carousel */
.mobile-team-orbit {
  display: none;
}

/* Real-space trust chapter */
.clinic-space {
  position: relative;
  z-index: 4;
  padding: var(--v5-section) clamp(24px, 7vw, 112px);
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(231, 189, 105, .075), transparent 27%),
    linear-gradient(180deg, #07100b 0%, #050806 100%);
}

.clinic-space::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(24px, 7vw, 112px);
  right: clamp(24px, 7vw, 112px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(231, 189, 105, .34), transparent);
}

.clinic-space-heading,
.clinic-space-cycle,
.clinic-space-reception,
.clinic-space-rooms,
.clinic-space-disclosure {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin-inline: auto;
}

.clinic-space-heading {
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  column-gap: clamp(48px, 9vw, 150px);
  align-items: end;
}

.clinic-space-heading .eyebrow {
  grid-column: 1 / -1;
}

.clinic-space-heading h2 {
  margin: 0;
  color: var(--v5-white);
  font-size: clamp(54px, 6.1vw, 98px);
  font-weight: 300;
  letter-spacing: -.065em;
  line-height: .94;
}

.clinic-space-heading h2 em {
  color: var(--v5-gold);
  font-style: normal;
}

.clinic-space-heading > p:last-child {
  max-width: 470px;
  margin: 0 0 7px;
  color: var(--v5-secondary);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.72;
}

.clinic-space-cycle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(76px, 8vw, 120px);
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  list-style: none;
}

.clinic-space-cycle li {
  position: relative;
  min-height: 178px;
  padding: 28px clamp(24px, 3vw, 48px) 30px 0;
}

.clinic-space-cycle li + li {
  padding-left: clamp(24px, 3vw, 48px);
  border-left: 1px solid rgba(255, 255, 255, .09);
}

.clinic-space-cycle li:not(:last-child)::after {
  content: "→";
  position: absolute;
  z-index: 2;
  top: 34px;
  right: -9px;
  width: 18px;
  color: var(--v5-gold);
  background: #07100b;
  font-size: 13px;
  text-align: center;
}

.clinic-space-cycle li > span,
.clinic-space-reception figcaption span,
.clinic-space-card figcaption span {
  color: var(--v5-gold);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.clinic-space-cycle strong {
  display: block;
  margin-top: 28px;
  color: var(--v5-white);
  font-size: clamp(27px, 2.5vw, 38px);
  font-weight: 300;
  letter-spacing: -.05em;
}

.clinic-space-cycle p {
  max-width: 300px;
  margin: 10px 0 0;
  color: var(--v5-tertiary);
  font-size: 12px;
  line-height: 1.6;
}

.clinic-space-reception {
  margin-top: clamp(70px, 8vw, 118px);
  margin-bottom: 0;
}

.clinic-space-rooms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 32px);
  margin-top: clamp(54px, 6vw, 86px);
}

.clinic-space-card {
  min-width: 0;
  margin: 0;
}

.clinic-space-visual {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  background: #101510;
  box-shadow: 0 34px 80px rgba(0, 0, 0, .28);
}

.clinic-space-reception .clinic-space-visual {
  aspect-ratio: 2.15 / 1;
}

.clinic-space-card .clinic-space-visual {
  aspect-ratio: 4 / 3;
}

.clinic-space-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, rgba(3, 8, 5, .38)),
    linear-gradient(135deg, rgba(231, 189, 105, .08), transparent 40%);
  pointer-events: none;
}

.clinic-space-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter .8s ease;
}

.clinic-space-card-consultorio-03 .clinic-space-visual img {
  object-position: right top;
}

.clinic-space-reception:hover .clinic-space-visual img,
.clinic-space-card:hover .clinic-space-visual img {
  transform: scale(1.025);
  filter: saturate(1.04) contrast(1.02);
}

.clinic-space-reception figcaption,
.clinic-space-card figcaption {
  display: grid;
  grid-template-columns: minmax(92px, .33fr) 1fr;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .09);
}

.clinic-space-reception figcaption p,
.clinic-space-card figcaption p {
  max-width: 390px;
  margin: 0;
  color: var(--v5-secondary);
  font-size: 12px;
  line-height: 1.6;
}

.clinic-space-disclosure {
  margin-top: clamp(76px, 9vw, 130px);
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: var(--v5-tertiary);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Material chapter */
.material-story {
  position: relative;
  z-index: 4;
  min-height: 112svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #050806;
}

.material-media {
  position: absolute;
  inset: 0;
  margin: 0;
}

.material-media::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, #050806 0%, rgba(5, 8, 6, .98) 22%, rgba(5, 8, 6, .64) 45%, rgba(5, 8, 6, .04) 76%),
    linear-gradient(180deg, rgba(5, 8, 6, .78), transparent 18% 75%, rgba(5, 8, 6, .9));
  pointer-events: none;
}

.material-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.82) contrast(1.04);
  transform: scale(1.015);
  transition: transform 1.8s var(--ease);
}

.material-story.is-visible .material-media img {
  transform: scale(1);
}

.material-media figcaption {
  position: absolute;
  z-index: 3;
  right: clamp(20px, 3vw, 48px);
  bottom: 28px;
  margin: 0;
  color: rgba(255, 255, 255, .45);
  font-size: 8px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.material-copy {
  position: relative;
  z-index: 3;
  width: min(610px, 47vw);
  margin-left: clamp(24px, 7vw, 112px);
}

.material-copy > p:not(.eyebrow) {
  max-width: 490px;
  margin: 30px 0 0;
  color: var(--v5-secondary);
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.72;
}

.material-ledger {
  max-width: 540px;
  margin: clamp(50px, 6vw, 86px) 0 0;
}

.material-ledger div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.material-ledger div:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.material-ledger dt {
  color: var(--v5-white);
  font-size: 12px;
  font-weight: 600;
}

.material-ledger dd {
  margin: 0;
  color: var(--v5-tertiary);
  font-size: 11px;
  line-height: 1.55;
}

/* Existing care chapter refinements */
.care {
  min-height: 145svh;
  background: #080c09;
}

.care::before {
  opacity: .45;
}

.care-row {
  border-radius: var(--v5-radius);
  background: #172019;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .2), inset 0 1px rgba(255, 255, 255, .05);
}

/* Visit flow */
.journey {
  position: relative;
  z-index: 4;
  padding: var(--v5-section) clamp(24px, 7vw, 112px);
  background: #111712;
  overflow: hidden;
}

.journey::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 16%;
  width: 110vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(231, 189, 105, .28), transparent);
  transform: translateX(-50%) rotate(-4deg);
  box-shadow: 0 0 40px rgba(231, 189, 105, .12);
}

.journey-heading,
.journey-flow,
.journey-action {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin-inline: auto;
}

.journey-heading {
  text-align: center;
}

.journey-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(88px, 10vw, 142px);
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
  list-style: none;
}

.journey-flow li {
  min-height: 260px;
  padding: 28px clamp(20px, 2.4vw, 38px) 28px 0;
}

.journey-flow li + li {
  padding-left: clamp(20px, 2.4vw, 38px);
  border-left: 1px solid rgba(255, 255, 255, .09);
}

.journey-flow h3 {
  margin: 76px 0 12px;
  color: var(--v5-white);
  font-size: clamp(23px, 2vw, 32px);
  font-weight: 400;
  letter-spacing: -.05em;
}

.journey-flow p {
  max-width: 230px;
  margin: 0;
  color: var(--v5-secondary);
  font-size: 12px;
  line-height: 1.6;
}

.journey-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  min-height: 84px;
  margin-top: clamp(54px, 7vw, 96px);
  padding: 0 4px;
  border-top: 1px solid rgba(231, 189, 105, .28);
  border-bottom: 1px solid rgba(231, 189, 105, .28);
  color: var(--v5-white);
  font-size: clamp(18px, 2vw, 28px);
  letter-spacing: -.035em;
  transition: color .3s ease, padding .45s var(--ease), background .3s ease;
}

.journey-action:hover {
  padding-inline: 20px;
  background: rgba(231, 189, 105, .07);
  color: var(--v5-gold);
}

/* Expanded team dialog */
.team-dialog {
  width: min(1040px, calc(100% - 44px));
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--v5-radius);
  background: #0d120e;
  color: var(--v5-white);
  box-shadow: 0 46px 150px rgba(0, 0, 0, .76);
  overflow: hidden;
}

.team-dialog::backdrop {
  background: rgba(2, 4, 3, .82);
  backdrop-filter: blur(16px) saturate(.8);
}

.team-dialog-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  min-height: 620px;
}

.team-dialog-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 46px;
  overflow: hidden;
  background: #172019;
}

.team-dialog-stage::before,
.team-dialog-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  width: 74%;
  aspect-ratio: 1;
  border: 1px solid rgba(231, 189, 105, .15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.team-dialog-stage::after {
  width: 112%;
  opacity: .45;
}

.team-dialog-monogram {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  transition: opacity .24s ease, transform .55s var(--ease);
}

.team-dialog-monogram::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 6, .04), transparent 40%, rgba(5, 8, 6, .5)),
    linear-gradient(90deg, transparent 72%, rgba(23, 32, 25, .32));
}

.team-dialog-monogram img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: saturate(.88) contrast(1.03);
}

.team-dialog-monogram.is-changing {
  opacity: 0;
  transform: translateY(16px) rotateX(7deg);
}

.team-dialog-stage > span {
  position: relative;
  z-index: 2;
  color: var(--v5-tertiary);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.team-dialog-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 6vw, 90px);
}

.team-dialog-profiles {
  position: relative;
  min-height: 294px;
}

.team-dialog-profiles article {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(22px) rotateX(-4deg);
  pointer-events: none;
  transition: opacity .35s ease, transform .65s var(--ease);
}

.team-dialog-profiles article.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.team-dialog-profiles article > p:first-child {
  margin: 0 0 18px;
  color: var(--v5-gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.team-dialog-profiles h2 {
  max-width: 520px;
  margin: 0;
  color: var(--v5-white);
  font-size: clamp(46px, 5vw, 76px);
  font-weight: 300;
  letter-spacing: -.065em;
  line-height: .95;
}

.team-dialog-profiles article > p:last-child {
  max-width: 520px;
  margin: 30px 0 0;
  color: var(--v5-secondary);
  font-size: 14px;
  line-height: 1.72;
}

.team-dialog-controls {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.team-dialog > .dialog-close {
  z-index: 8;
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  padding: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .18);
  color: var(--v5-white);
}

/* Scene-specific arrival, not a global fade-up system */
.method-heading,
.team-ledger,
.mobile-team-orbit,
.clinic-space-heading,
.clinic-space-cycle,
.clinic-space-reception,
.clinic-space-rooms,
.clinic-space-disclosure,
.journey-heading,
.journey-flow,
.journey-action,
.material-copy {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s ease, transform 1s var(--ease);
}

.method.is-visible .method-heading,
.method.is-visible .team-ledger,
.method.is-visible .mobile-team-orbit,
.clinic-space.is-visible .clinic-space-heading,
.clinic-space.is-visible .clinic-space-cycle,
.clinic-space.is-visible .clinic-space-reception,
.clinic-space.is-visible .clinic-space-rooms,
.clinic-space.is-visible .clinic-space-disclosure,
.journey.is-visible .journey-heading,
.journey.is-visible .journey-flow,
.journey.is-visible .journey-action,
.material-story.is-visible .material-copy {
  opacity: 1;
  transform: none;
}

.method.is-visible .team-ledger,
.method.is-visible .mobile-team-orbit,
.clinic-space.is-visible .clinic-space-cycle,
.clinic-space.is-visible .clinic-space-reception,
.clinic-space.is-visible .clinic-space-rooms,
.journey.is-visible .journey-flow {
  transition-delay: .12s;
}

.journey.is-visible .journey-action {
  transition-delay: .22s;
}

.clinic-space.is-visible .clinic-space-disclosure {
  transition-delay: .22s;
}

@media (max-width: 1180px) {
  .team-preview { display: none; }
  .topbar nav a[href="#equipe"] { display: none; }
}

@media (min-width: 1181px) {
  .hero-object { bottom: -7.5svh; }
}

@media (max-width: 760px) {
  :root { --v5-section: 112px; }

  .method,
  .clinic-space,
  .journey {
    padding-inline: 18px;
  }

  .method-heading {
    display: block;
  }

  .method-heading h2,
  .material-copy h2,
  .journey-heading h2 {
    font-size: clamp(46px, 13vw, 62px);
    line-height: .95;
  }

  .method-heading > p:last-child {
    max-width: 340px;
    margin: 25px 0 0;
    font-size: 13px;
    line-height: 1.65;
  }

  .clinic-space-heading {
    display: block;
  }

  .clinic-space-heading h2 {
    font-size: clamp(45px, 12.4vw, 60px);
    line-height: .96;
  }

  .clinic-space-heading > p:last-child {
    max-width: 342px;
    margin: 26px 0 0;
    font-size: 13px;
    line-height: 1.66;
  }

  .clinic-space-cycle {
    display: block;
    margin-top: 58px;
  }

  .clinic-space-cycle li,
  .clinic-space-cycle li + li {
    min-height: 0;
    padding: 22px 0 24px 50px;
    border-left: 0;
  }

  .clinic-space-cycle li + li {
    border-top: 1px solid rgba(255, 255, 255, .08);
  }

  .clinic-space-cycle li:not(:last-child)::after {
    content: "↓";
    top: auto;
    right: auto;
    bottom: -9px;
    left: 2px;
    background: #07100b;
  }

  .clinic-space-cycle li > span {
    position: absolute;
    left: 0;
    top: 28px;
  }

  .clinic-space-cycle strong {
    margin-top: 0;
    font-size: 29px;
  }

  .clinic-space-cycle p {
    max-width: 280px;
    font-size: 11px;
  }

  .clinic-space-reception {
    margin-top: 58px;
  }

  .clinic-space-reception .clinic-space-visual {
    aspect-ratio: 16 / 10;
  }

  .clinic-space-reception img {
    object-position: 70% center;
  }

  .clinic-space-rooms {
    grid-template-columns: 1fr;
    gap: 42px;
    margin-top: 56px;
  }

  .clinic-space-reception figcaption,
  .clinic-space-card figcaption {
    display: block;
    padding-top: 16px;
  }

  .clinic-space-reception figcaption p,
  .clinic-space-card figcaption p {
    margin-top: 10px;
    font-size: 11px;
  }

  .clinic-space-disclosure {
    margin-top: 54px;
    font-size: 8px;
    line-height: 1.7;
  }

  .method-steps {
    margin-top: 72px;
  }

  .method-steps li {
    grid-template-columns: 42px 1fr;
    min-height: 136px;
    padding: 24px 0;
  }

  .method-steps h3 {
    font-size: 32px;
  }

  .method-steps p {
    font-size: 12px;
  }

  .team-ledger {
    display: none;
  }

  .mobile-team-orbit {
    --orbit-cycle: 0;
    display: block;
    position: relative;
    z-index: 3;
    margin: 96px -18px 0;
    overflow: hidden;
  }

  .mobile-team-orbit-heading {
    padding-inline: 18px;
  }

  .mobile-team-orbit-heading h3 {
    max-width: 350px;
    margin: 0;
    color: var(--v5-white);
    font-size: clamp(37px, 10.8vw, 48px);
    font-weight: 300;
    letter-spacing: -.06em;
    line-height: .97;
  }

  .mobile-team-orbit-heading h3 em {
    color: var(--v5-gold);
    font-style: normal;
  }

  .mobile-team-orbit-heading > p:last-child {
    max-width: 330px;
    margin: 24px 0 0;
    color: var(--v5-secondary);
    font-size: 12px;
    line-height: 1.65;
  }

  .mobile-team-orbit-viewport {
    position: relative;
    height: 430px;
    margin-top: 40px;
    overflow: hidden;
    perspective: 980px;
    perspective-origin: 50% 43%;
    touch-action: pan-y pinch-zoom;
    user-select: none;
    cursor: grab;
  }

  .mobile-team-orbit-viewport:active {
    cursor: grabbing;
  }

  .mobile-team-orbit-viewport:focus-visible {
    outline-offset: -8px;
  }

  .mobile-team-orbit-axis {
    position: absolute;
    left: -24%;
    right: -24%;
    top: 90px;
    height: 250px;
    border: 1px solid rgba(231, 189, 105, .13);
    border-radius: 50%;
    transform: rotateX(66deg);
    pointer-events: none;
  }

  .mobile-team-orbit-axis::before,
  .mobile-team-orbit-axis::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
  }

  .mobile-team-orbit-axis::before {
    width: 58%;
    height: 58%;
    border: 1px solid rgba(231, 189, 105, .07);
  }

  .mobile-team-orbit-axis::after {
    width: 6px;
    aspect-ratio: 1;
    background: var(--v5-gold);
    box-shadow: 0 0 24px rgba(231, 189, 105, .7);
  }

  .mobile-team-orbit-axis i,
  .mobile-team-orbit-axis b {
    position: absolute;
    top: 50%;
    width: 4px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(231, 189, 105, .48);
  }

  .mobile-team-orbit-axis i { left: 10%; }
  .mobile-team-orbit-axis b { right: 10%; }

  .mobile-team-window {
    --orbit-position: 0;
    --orbit-depth: 0;
    position: absolute;
    top: 24px;
    left: 27px;
    right: 27px;
    height: 348px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 20px;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, .055), transparent 38%),
      #172019;
    box-shadow:
      0 34px 70px rgba(0, 0, 0, .42),
      inset 0 1px rgba(255, 255, 255, .06);
    opacity: calc(1 - var(--orbit-depth) * .58);
    transform:
      translate3d(calc(var(--orbit-position) * 76%), calc(var(--orbit-depth) * 12px), calc(var(--orbit-depth) * -190px))
      rotateY(calc(var(--orbit-position) * -52deg))
      scale(calc(1 - var(--orbit-depth) * .09));
    transform-origin: 50% 54%;
    transform-style: preserve-3d;
    pointer-events: none;
    will-change: transform, opacity;
    transition: border-color .22s ease, box-shadow .28s ease;
  }

  .mobile-team-orbit-viewport.is-dragging .mobile-team-window.is-active {
    border-color: rgba(231, 189, 105, .22);
    box-shadow:
      0 42px 82px rgba(0, 0, 0, .5),
      0 0 0 1px rgba(231, 189, 105, .06),
      inset 0 1px rgba(255, 255, 255, .08);
  }

  .mobile-team-orbit-viewport.is-settling .mobile-team-window.is-active {
    border-color: rgba(231, 189, 105, .15);
  }

  .mobile-team-window.is-active {
    pointer-events: auto;
  }

  .mobile-team-window > header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 39px;
    padding: 0 13px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    background: rgba(5, 7, 6, .28);
  }

  .mobile-team-window > header > span {
    display: flex;
    gap: 4px;
  }

  .mobile-team-window > header i {
    display: block;
    width: 4px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
  }

  .mobile-team-window > header i:first-child {
    background: var(--v5-gold);
  }

  .mobile-team-window > header small,
  .mobile-team-window > header b {
    color: var(--v5-tertiary);
    font-size: 7px;
    font-weight: 600;
    letter-spacing: .13em;
  }

  .mobile-team-window > header b {
    justify-self: end;
    color: rgba(231, 189, 105, .68);
  }

  .mobile-team-window-body {
    display: grid;
    grid-template-columns: minmax(92px, .78fr) minmax(0, 1.22fr);
    gap: 18px;
    height: 252px;
    padding: 16px;
  }

  .mobile-team-portrait {
    position: relative;
    display: grid;
    place-items: end start;
    overflow: hidden;
    padding: 13px;
    border-radius: 14px;
    background:
      linear-gradient(155deg, rgba(255, 255, 255, .075), transparent 40%),
      #0a0f0b;
    isolation: isolate;
  }

  .mobile-team-portrait::before,
  .mobile-team-portrait::after,
  .mobile-team-portrait i {
    content: "";
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(231, 189, 105, .16);
    border-radius: 50%;
  }

  .mobile-team-portrait::before {
    width: 150px;
    aspect-ratio: 1;
    right: -92px;
    top: -36px;
  }

  .mobile-team-portrait::after {
    width: 92px;
    aspect-ratio: 1;
    right: -49px;
    top: -7px;
  }

  .mobile-team-portrait i {
    left: 18px;
    right: 18px;
    bottom: -49px;
    height: 100px;
    border-color: rgba(255, 255, 255, .055);
  }

  .mobile-team-portrait img {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    filter: saturate(.86) contrast(1.04);
  }

  .mobile-team-portrait i {
    z-index: -1;
    inset: 0;
    height: auto;
    border: 0;
    border-radius: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(5, 8, 6, .38));
  }

  .mobile-team-window-copy {
    align-self: center;
    min-width: 0;
  }

  .mobile-team-window-copy > p {
    margin: 0 0 10px;
    color: var(--v5-gold);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .11em;
    text-transform: uppercase;
  }

  .mobile-team-window-copy h4 {
    margin: 0;
    color: var(--v5-white);
    font-size: clamp(24px, 7.4vw, 31px);
    font-weight: 300;
    letter-spacing: -.06em;
    line-height: .98;
  }

  .mobile-team-window-copy > span {
    display: block;
    margin-top: 17px;
    color: var(--v5-secondary);
    font-size: 9px;
    line-height: 1.55;
  }

  .mobile-team-window > footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 57px;
    border-top: 1px solid rgba(255, 255, 255, .07);
  }

  .mobile-team-window > footer span {
    display: grid;
    place-items: center;
    color: var(--v5-tertiary);
    font-size: 7px;
    letter-spacing: .06em;
  }

  .mobile-team-window > footer span + span {
    border-left: 1px solid rgba(255, 255, 255, .055);
  }

  .mobile-team-orbit-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: -15px 18px 0;
  }

  .mobile-team-orbit-controls > button {
    display: grid;
    place-items: center;
    width: 44px;
    min-height: 44px;
    aspect-ratio: 1;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
    background: rgba(255, 255, 255, .035);
    color: var(--v5-white);
    font-size: 17px;
    touch-action: manipulation;
  }

  .mobile-team-orbit-controls > button:disabled {
    opacity: .3;
    cursor: default;
  }

  .mobile-team-orbit-controls > p {
    margin: 0;
    color: var(--v5-tertiary);
    font-size: 8px;
    font-variant-numeric: tabular-nums;
    letter-spacing: .12em;
  }

  .mobile-team-orbit-controls > p span {
    color: var(--v5-white);
  }

  .mobile-team-orbit-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(4px, 1.8vw, 8px);
    width: 100%;
    order: 4;
    margin-top: 6px;
  }

  .mobile-team-orbit-progress button {
    position: relative;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    touch-action: manipulation;
  }

  .mobile-team-orbit-progress button::before,
  .mobile-team-orbit-progress button i {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    top: 50%;
    height: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .13);
  }

  .mobile-team-orbit-progress button i {
    right: auto;
    width: 0;
    background: var(--v5-gold);
    transition: width .45s var(--ease);
  }

  .mobile-team-orbit-progress button.is-active i {
    width: calc(var(--orbit-cycle, 1) * (100% - 12px));
  }

  .mobile-team-orbit-hint {
    margin: 18px 18px 0;
    color: var(--v5-tertiary);
    font-size: 8px;
    letter-spacing: .04em;
    transition: color .25s ease, opacity .25s ease;
  }

  .material-story {
    min-height: 118svh;
    align-items: end;
  }

  .material-media::before {
    background:
      linear-gradient(180deg, rgba(5, 8, 6, .18) 0%, rgba(5, 8, 6, .12) 38%, rgba(5, 8, 6, .91) 66%, #050806 86%),
      linear-gradient(90deg, rgba(5, 8, 6, .18), transparent 55%);
  }

  .material-media img {
    height: 67%;
    object-position: 72% center;
  }

  .material-media figcaption {
    right: auto;
    bottom: auto;
    left: 20px;
    top: 92px;
    max-width: 180px;
    text-align: left;
    font-size: 7px;
  }

  .material-copy {
    width: auto;
    margin: 0;
    padding: 0 20px 88px;
  }

  .material-copy::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: -20px;
    right: -20px;
    top: -150px;
    bottom: 0;
    background: linear-gradient(180deg, transparent, rgba(5, 8, 6, .96) 138px, #050806 210px);
    pointer-events: none;
  }

  .material-copy > p:not(.eyebrow) {
    max-width: 340px;
    margin-top: 22px;
    font-size: 12px;
    line-height: 1.65;
  }

  .material-ledger {
    margin-top: 40px;
  }

  .material-ledger div {
    grid-template-columns: 70px 1fr;
    gap: 14px;
    padding: 14px 0;
  }

  .care {
    min-height: auto;
  }

  .journey-heading {
    text-align: left;
  }

  .journey-heading h2 {
    font-size: clamp(36px, 10.8vw, 48px);
  }

  .journey-flow {
    display: block;
    margin-top: 72px;
  }

  .journey-flow li,
  .journey-flow li + li {
    display: grid;
    grid-template-columns: 42px 1fr;
    min-height: 152px;
    padding: 24px 0;
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .journey-flow h3 {
    margin: 0 0 8px;
    font-size: 26px;
  }

  .journey-flow p {
    grid-column: 2;
    font-size: 12px;
  }

  .journey-action {
    min-height: 78px;
    margin-top: 48px;
    font-size: 17px;
  }

  .team-dialog {
    width: calc(100% - 22px);
    max-height: calc(100dvh - 22px);
  }

  .team-dialog-layout {
    display: block;
    min-height: 0;
  }

  .team-dialog-stage {
    min-height: 230px;
    padding: 24px;
  }

  .team-dialog-monogram {
    font-size: 104px;
  }

  .team-dialog-content {
    padding: 36px 24px 24px;
  }

  .team-dialog-profiles {
    min-height: 274px;
  }

  .team-dialog-profiles h2 {
    font-size: 43px;
  }

  .team-dialog-profiles article > p:last-child {
    margin-top: 22px;
    font-size: 12px;
  }

  .team-dialog > .dialog-close {
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 350px) {
  .method,
  .journey {
    padding-inline: 14px;
  }

  .mobile-team-orbit {
    margin-inline: -14px;
  }

  .mobile-team-window {
    left: 20px;
    right: 20px;
  }

  .material-copy {
    padding-inline: 16px;
  }

  .team-dialog-profiles h2 {
    font-size: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-card-visual::after { animation: none; }
  .team-preview { transform: translateY(-50%); }
  .mobile-team-window { will-change: auto; }
  .method-heading,
  .team-ledger,
  .clinic-space-heading,
  .clinic-space-cycle,
  .clinic-space-reception,
  .clinic-space-rooms,
  .clinic-space-disclosure,
  .journey-heading,
  .journey-flow,
  .journey-action,
  .material-copy { opacity: 1; transform: none; }
  .material-media img { transform: none; }
}
