/* ==========================================================================
   Dra. Rogéria Andrade Werneck — Estética Quiet Luxury Editorial Luminosa
   Fundo Branco Editorial Trabalhado + Ouro Metálico Cintilante + Café Profundo
   Liquid Glass EXCLUSIVO em #liquid-nav
   ========================================================================== */

:root {
  --bg: #FAF8F4;
  --bg-elevated: #F3EEE5;
  --bg-deep: #EFE9DF;
  --cream: #201D18;
  --cream-muted: rgba(32, 29, 24, 0.74);
  --cream-dim: rgba(32, 29, 24, 0.54);

  --gold: #C6932E;
  --gold-light: #A67518;
  --gold-bright: #F7DD8B;
  --gold-deep: #855B12;
  --gold-sheen: linear-gradient(
    118deg,
    #8C6114 0%,
    #C9962E 24%,
    #F8E196 48%,
    #D4A237 72%,
    #8C6114 100%
  );
  --gold-text-sheen: linear-gradient(
    115deg,
    #8A5F12 0%,
    #C8952B 28%,
    #E6BC53 48%,
    #B6811E 72%,
    #7D540E 100%
  );

  --olive: #78786A;
  --taupe: #6E655A;
  --bordeaux: #51343B;
  --bordeaux-light: #6B4750;

  --line-dark: rgba(32, 29, 24, 0.11);
  --line-gold: rgba(198, 147, 46, 0.42);

  --font-stamp: 'Cormorant Garamond', Georgia, serif;
  --font-editorial: 'Cormorant Garamond', Georgia, serif;
  --font-ui: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease-expo: cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes goldShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

::selection {
  background: rgba(212, 162, 55, 0.28);
  color: #201D18;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-ui);
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

h1, h2, h3, p, blockquote, ol, ul, figure {
  margin: 0;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.optical-svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 1rem;
  z-index: 999;
  padding: 0.65rem 1.1rem;
  background: var(--gold);
  color: var(--bg);
  font-weight: 700;
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

.scroll-progress-bar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 2px;
  z-index: 120;
  pointer-events: none;
}

.scroll-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gold-sheen);
  background-size: 220% 100%;
}

.shell {
  width: min(1340px, calc(100% - 3rem));
  margin-inline: auto;
}

/* ==========================================================================
   CURSOR CUSTOMIZADO (Ref: kenjilambert.com — Ponto Dourado / Anel / ARRASTE)
   ========================================================================== */

.cursor-dot {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  body.custom-cursor-on:not(.drawer-open) {
    cursor: none;
  }

  body.custom-cursor-on:not(.drawer-open) a,
  body.custom-cursor-on:not(.drawer-open) button {
    cursor: none;
  }

  body.drawer-open .cursor-dot {
    opacity: 0 !important;
    visibility: hidden;
  }

  .side-drawer,
  .side-drawer-sheet {
    cursor: auto;
  }

  .side-drawer button,
  .side-drawer a,
  .side-drawer input {
    cursor: pointer;
  }

  .cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold-sheen);
    box-shadow: 0 0 12px rgba(212, 162, 55, 0.45);
    pointer-events: none;
    transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
    display: grid;
    place-items: center;
    transition:
      width 0.22s var(--ease-expo),
      height 0.22s var(--ease-expo),
      background-color 0.2s ease,
      border-color 0.2s ease;
    border: 1.5px solid transparent;
    will-change: transform;
  }

  .cursor-dot span {
    display: none;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--gold-bright);
  }

  .cursor-dot.is-link {
    width: 34px;
    height: 34px;
    background: transparent;
    border-color: var(--gold);
  }

  .cursor-dot.is-drag {
    width: 68px;
    height: 68px;
    background: rgba(32, 29, 24, 0.72);
    border-color: var(--gold-bright);
  }

  .cursor-dot.is-drag span {
    display: block;
  }
}

/* ==========================================================================
   NAVEGAÇÃO FIXA NOS 4 CANTOS (Ref: kenjilambert.com) + ABA LIQUID GLASS
   ========================================================================== */

.corner-nav-top {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(12px, 1.8vw, 22px) clamp(16px, 2.8vw, 34px);
  pointer-events: none;
}

.corner-nav-top > * {
  pointer-events: auto;
}

.corner-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.rw-logo-img {
  height: clamp(48px, 5.2vw, 64px);
  width: auto;
  object-fit: contain;
  filter: contrast(1.06);
  transition: transform 0.22s var(--ease-expo), opacity 0.2s ease;
}

.corner-brand:hover .rw-logo-img {
  transform: scale(1.03);
}

.corner-top-center {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cream-muted);
}

.top-doppler-chip {
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: rgba(248, 225, 150, 0.22);
  color: var(--gold-deep);
  font-size: 10px;
  font-weight: 800;
}

.corner-link {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cream);
  transition: color 0.2s ease;
}

.corner-link:hover {
  color: var(--gold);
}

.corner-nav-bottom {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 80;
  display: flex;
  justify-content: space-between;
  padding: clamp(12px, 1.8vw, 22px) clamp(16px, 2.8vw, 34px);
  pointer-events: none;
}

.corner-nav-bottom > * {
  pointer-events: auto;
}

.corner-bottom-right {
  color: var(--gold-deep);
}

/* Oculta os links laterais abaixo de 1160px para dar respiro total à barra Liquid Glass */
@media (max-width: 1160px) {
  .corner-nav-bottom {
    display: none;
  }
}

/* ÚNICO COMPONENTE COM LIQUID GLASS ÓPTICO REAL: #liquid-nav */
.liquid-glass-nav {
  position: fixed;
  left: 50%;
  bottom: max(0.95rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 95;
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.68);
  border: 1px solid rgba(198, 147, 46, 0.45);
  backdrop-filter: blur(16px) saturate(165%);
  -webkit-backdrop-filter: blur(16px) saturate(165%);
  box-shadow:
    0 12px 34px rgba(32, 29, 24, 0.14),
    0 2px 10px rgba(198, 147, 46, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  max-width: calc(100% - 1rem);
  overflow-x: auto;
  scrollbar-width: none;
}

.liquid-nav-scroll { display: contents; }
.hw-slot-size { display: none; }

.liquid-glass-nav::-webkit-scrollbar {
  display: none;
}

.liquid-nav-lens {
  --lx: 50%;
  --ly: 28%;
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 68px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      90% 115% at var(--lx) var(--ly),
      rgba(255, 255, 255, 0.78) 0%,
      rgba(248, 225, 150, 0.42) 52%,
      rgba(198, 147, 46, 0.24) 100%
    );
  border: 1px solid rgba(198, 147, 46, 0.78);
  backdrop-filter: url(#nav-liquid-lens) blur(2px) saturate(185%) contrast(1.04) brightness(1.04);
  -webkit-backdrop-filter: url(#nav-liquid-lens) blur(2px) saturate(185%) contrast(1.04) brightness(1.04);
  box-shadow:
    0 4px 14px rgba(138, 97, 23, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.95);
  will-change: transform, width;
}

.liquid-glass-nav.is-hovering .liquid-nav-lens {
  border-color: rgba(198, 147, 46, 1);
  box-shadow:
    0 6px 18px rgba(198, 147, 46, 0.28),
    inset 0 1.2px 1.2px rgba(255, 255, 255, 1),
    inset 1.2px 0 1.8px rgba(248, 225, 150, 0.8),
    inset -1.2px 0 1.8px rgba(198, 147, 46, 0.65);
}

.liquid-nav-tab {
  position: relative;
  z-index: 1;
  min-height: 36px;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.79rem;
  font-weight: 600;
  color: rgba(32, 29, 24, 0.72);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}

.liquid-nav-tab.is-active,
.liquid-nav-tab:hover {
  color: #201D18;
}

.liquid-nav-cta {
  color: var(--gold-deep);
  font-weight: 800;
}

/* Pílulas Limpas de Ação com Ouro Metálico Cintilante */
.pill-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.pill-gold {
  background: var(--gold-sheen);
  background-size: 220% 100%;
  animation: goldShimmer 5.5s ease-in-out infinite;
  color: #1F1A11;
  box-shadow:
    0 6px 20px rgba(198, 147, 46, 0.34),
    inset 0 1px 0 rgba(255, 250, 228, 0.72);
}

.pill-bordeaux {
  background: var(--bordeaux);
  color: #FAF8F4;
  border: 1px solid rgba(198, 147, 46, 0.45);
  box-shadow: 0 6px 18px rgba(81, 52, 59, 0.22);
}

.pill-cream {
  background: #201D18;
  color: #FAF8F4;
}

.pill-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   SEÇÃO 0 — HERO EDITORIAL FULL-BLEED (Texto à esquerda + Retrato à direita)
   ========================================================================== */

.hero-stage {
  position: relative;
  min-height: max(100svh, 680px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 6rem 0 5.5rem;
  overflow: hidden;
  background: var(--bg);
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 18%;
  transform: scale(1.03) translate3d(var(--hx, 0px), var(--hy, 0px), 0);
  transition: transform 0.28s ease-out;
  will-change: transform;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(250, 248, 244, 0.84) 0%,
      rgba(250, 248, 244, 0.56) 38%,
      rgba(250, 248, 244, 0.10) 58%,
      rgba(250, 248, 244, 0.0) 100%
    ),
    linear-gradient(
      180deg,
      rgba(250, 248, 244, 0.45) 0%,
      rgba(250, 248, 244, 0.0) 24%,
      rgba(250, 248, 244, 0.0) 76%,
      rgba(250, 248, 244, 0.88) 100%
    );
}

.hero-mouse-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(560px circle at var(--mx, 30%) var(--my, 45%), rgba(248, 225, 150, 0.22), transparent 60%);
}

.hero-shell {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
}

.hero-foreground {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: min(640px, 54%);
  will-change: transform, opacity, filter;
}

.hero-stamp-h1 {
  font-family: var(--font-editorial);
  font-weight: 500;
  font-size: clamp(42px, 5.1vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 18px rgba(255, 255, 255, 0.65);
}

.hero-line-ivory {
  display: block;
  color: #201D18;
}

.hero-line-gold {
  display: block;
  font-style: italic;
  font-weight: 500;
  margin-top: 0.08em;
  background: var(--gold-text-sheen);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: goldShimmer 6s ease-in-out infinite;
  filter: drop-shadow(0 2px 10px rgba(198, 147, 46, 0.18));
}

.cream {
  color: var(--cream);
}

.gold {
  color: var(--gold-deep);
}

.gold-light {
  color: var(--gold);
}

.hero-animated-tagline {
  margin-top: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.hw-paren {
  font-family: var(--font-editorial);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1;
  color: var(--gold);
}

.hw-slot {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 1rem;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  transition: opacity 0.28s ease, transform 0.28s var(--ease-expo);
}

.hw-slot.is-switching {
  opacity: 0;
  transform: translateY(4px);
}

.gold-slot {
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid rgba(198, 147, 46, 0.65);
  color: var(--gold-deep);
  box-shadow: 0 4px 16px rgba(198, 147, 46, 0.14);
}

.hero-sub-bar {
  margin-top: 2rem;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 0.5rem 0.55rem 0.5rem 1.25rem;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid rgba(198, 147, 46, 0.48);
  box-shadow: 0 10px 30px rgba(32, 29, 24, 0.08);
}

.hero-identity-line {
  font-size: 0.84rem;
  color: var(--cream-muted);
}

.hero-identity-line strong {
  color: #201D18;
}

.hero-scroll-chevron {
  position: absolute;
  bottom: 4.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--gold);
  width: 30px;
  height: 30px;
  animation: chevronFloat 2.2s ease-in-out infinite;
}

@keyframes chevronFloat {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

/* ==========================================================================
   SEÇÃO 1 — MANIFESTO PINNED + MARQUEE DE INSTITUIÇÕES
   ========================================================================== */

.manifesto-track {
  position: relative;
  height: 185vh;
  background: var(--bg);
}

.manifesto-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-inline: 1.5rem;
  overflow: hidden;
}

.manifesto-center {
  max-width: 40ch;
  margin-inline: auto;
  text-align: center;
  will-change: transform;
}

.manifesto-statement {
  font-size: clamp(21px, min(3.4vw, 4.4vh), 38px);
  line-height: 1.26;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--cream);
}

.manifesto-statement .mw {
  display: inline-block;
  transition: opacity 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}

.m-star {
  color: var(--gold);
  font-weight: 700;
}

.m-serif {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
}

.m-pill {
  display: inline-block;
  padding: 0.04em 0.45em;
  border-radius: 999px;
  background: var(--bordeaux);
  color: var(--cream);
  font-size: 0.86em;
  font-weight: 600;
}

.institutions-marquee-wrap {
  position: absolute;
  bottom: 5.5rem;
  inset-inline: 0;
}

.marquee-mask {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  width: max-content;
  will-change: transform;
}

.marquee-slow {
  animation: marqueeScroll 36s linear infinite;
}

.marquee-fast {
  animation: marqueeScroll 22s linear infinite;
}

@keyframes marqueeScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.inst-item {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--taupe);
  white-space: nowrap;
}

.inst-dot {
  color: var(--gold);
  font-size: 11px;
  opacity: 0.72;
}

/* ==========================================================================
   SEÇÃO 2 — MARQUEE GIGANTE (SUA SAÚDE ✦ CADA FASE DA VIDA)
   ========================================================================== */

.giant-marquee-section {
  position: relative;
  padding-block: 1.5rem 3.5rem;
  overflow: hidden;
}

.giant-marquee-scaler {
  will-change: transform;
}

.stamp-word {
  font-family: var(--font-editorial);
  font-weight: 500;
  font-size: clamp(48px, 9.6vw, 132px);
  line-height: 1.02;
  color: var(--cream);
  letter-spacing: -0.015em;
}

.stamp-star {
  font-size: clamp(30px, 6vw, 76px);
  color: var(--gold);
}

.floating-marquee-cta {
  position: absolute;
  right: clamp(1rem, 4vw, 3.5rem);
  top: 44%;
  transform: translateY(-50%);
  z-index: 3;
}

/* ==========================================================================
   SEÇÕES 3 & 4 — CARROSSÉIS STICKY & ARRASTÁVEIS (Ref: kenjilambert.com)
   ========================================================================== */

.project-carousel-track {
  position: relative;
  height: 135vh;
  background: var(--bg);
}

.project-sticky-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding-block: 4.5rem 5rem;
  overflow: hidden;
}

.carousel-scale-shell {
  width: 100%;
  will-change: transform;
}

.drag-strip-viewport {
  width: 100%;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
}

.drag-strip-track {
  display: flex;
  gap: 0.85rem;
  padding-inline: 1rem;
  width: max-content;
  will-change: transform;
}

.case-card {
  position: relative;
  width: clamp(235px, 23vw, 320px);
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--line-dark);
  flex-shrink: 0;
}

.case-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.case-card figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 2.2rem 0.9rem 0.75rem;
  font-size: 12.5px;
  font-weight: 600;
  color: #FAF8F4;
  background: linear-gradient(180deg, transparent, rgba(32, 29, 24, 0.86));
}

.case-metadata {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.case-meta-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.discipline-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.25rem;
}

.case-drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.disc-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 0 0.25rem 0;
  border-radius: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: transparent;
  color: var(--taupe);
  border: 0;
  border-bottom: 1px solid rgba(198, 147, 46, 0.38);
  box-shadow: none;
}

.disc-pill::before {
  display: none;
}

.disc-pill.cream,
.disc-pill.gold,
.disc-pill.bordeaux {
  background: transparent;
  color: var(--taupe);
  border: 0;
  border-bottom: 1px solid rgba(198, 147, 46, 0.38);
}

.case-meta-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto minmax(0, 1.15fr);
  gap: 1.5rem 2.5rem;
  align-items: start;
}

.case-title-h3 {
  font-family: var(--font-editorial);
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--cream);
}

.case-origin span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.case-origin strong {
  font-size: 13px;
  color: var(--cream-muted);
}

.case-summary {
  font-size: 13.5px;
  color: var(--cream-muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   SEÇÃO 5 — OBSTETRÍCIA 40 SEMANAS + ÁUDIO DOPPLER FETAL REAL
   ========================================================================== */

.fetal-cinema-track {
  position: relative;
  height: 310vh;
  background: radial-gradient(circle at 50% 48%, rgba(248, 225, 150, 0.18), var(--bg-elevated) 68%);
  border-top: 1px solid var(--line-dark);
}

.fetal-sticky-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: 4rem 4.5rem;
}

.fetal-light-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 48%, rgba(201, 166, 107, 0.16), transparent 58%);
  transition: background 0.5s ease;
}

.fetal-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.92fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 3.2vw, 3.2rem);
  align-items: center;
}

.fetal-step-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 12px;
  color: var(--gold-light);
  margin-bottom: 0.9rem;
}

.fetal-progress-line {
  flex: 1;
  max-width: 120px;
  height: 2px;
  background: rgba(245, 239, 229, 0.16);
}

.fetal-progress-fill {
  height: 100%;
  width: 33%;
  background: linear-gradient(90deg, var(--taupe), var(--gold));
}

.fetal-title {
  font-family: var(--font-editorial);
  font-weight: 500;
  font-size: clamp(2rem, 3.2vw, 3.05rem);
  line-height: 1.06;
  color: var(--cream);
  margin-bottom: 0.85rem;
}

.fetal-lead {
  font-size: 0.92rem;
  color: var(--cream-muted);
  max-width: 44ch;
  margin-bottom: 1.35rem;
}

.fetal-controls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.dark-pill {
  min-height: 36px;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line-gold);
  background: transparent;
  color: var(--cream-muted);
  font-size: 0.77rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dark-pill.is-active {
  background: var(--gold);
  color: var(--bg);
  font-weight: 700;
}

.dark-link-btn {
  background: none;
  border: 0;
  padding: 0.35rem 0.4rem;
  font-size: 0.8rem;
  color: var(--gold-light);
  cursor: pointer;
}

/* Orbe Fetal */
.fetal-orb-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  perspective: 1000px;
}

.fetal-orb-frame {
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: #14110E;
  box-shadow:
    0 26px 64px rgba(32, 29, 24, 0.24),
    0 0 0 2px rgba(198, 147, 46, 0.65);
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
  will-change: transform;
}

.fetal-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.55s ease-out, transform 0.8s var(--ease-expo);
}

.fetal-layer.is-visible {
  opacity: 1;
  transform: scale(1);
}

#fetal-fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.fetal-probes {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.bio-probe {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(201, 166, 107, 0.72);
  background: rgba(81, 52, 59, 0.38);
  cursor: pointer;
  transition: transform 0.22s var(--ease-expo);
}

.bio-probe::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--gold-light);
}

.bio-probe:hover,
.bio-probe.is-active {
  transform: translate(-50%, -50%) scale(1.3);
  border-color: var(--cream);
}

.probe-caption {
  font-size: 0.78rem;
  color: var(--gold-light);
  text-align: center;
  max-width: 42ch;
  min-height: 2.3em;
}

/* Monitor Doppler + Botão de Som */
.fetal-telemetry-col {
  display: grid;
  gap: 1.1rem;
  padding-inline-start: 1.6rem;
  border-inline-start: 1px solid var(--line-dark);
}

.doppler-box {
  padding: 1rem;
  border-radius: 12px;
  background: #201D18;
  color: #FAF8F4;
  border: 1px solid rgba(198, 147, 46, 0.55);
  box-shadow: 0 12px 30px rgba(32, 29, 24, 0.14);
}

.doppler-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}

.doppler-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: rgba(250, 248, 244, 0.78);
}

.doppler-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.45;
  transition: transform 0.08s ease, opacity 0.08s ease, box-shadow 0.08s ease;
}

.doppler-led.is-beat {
  opacity: 1;
  transform: scale(1.55);
  background: var(--gold-bright);
  box-shadow: 0 0 14px var(--gold-bright);
}

.doppler-meta strong {
  font-size: 1.15rem;
  color: var(--gold-bright);
}

#doppler-wave-canvas {
  width: 100%;
  height: 60px;
  display: block;
  margin-bottom: 0.65rem;
}

.doppler-audio-btn {
  width: 100%;
  min-height: 40px;
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: rgba(248, 225, 150, 0.14);
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.doppler-audio-btn[aria-pressed="true"] {
  background: var(--gold-sheen);
  color: #1F1A11;
}

.sound-icon {
  width: 16px;
  height: 16px;
}

.tel-item span {
  display: block;
  font-size: 0.74rem;
  color: var(--cream-dim);
  margin-bottom: 0.15rem;
}

.tel-item strong {
  font-family: var(--font-editorial);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--cream);
}

.tel-exam-text {
  font-family: var(--font-ui) !important;
  font-size: 0.84rem !important;
  color: var(--gold-light) !important;
}

/* ==========================================================================
   SEÇÃO 6 — AVALIAÇÕES 5,0 DOCTORALIA (Preservada e refinada)
   ========================================================================== */

.science-reviews-section {
  padding-block: clamp(5rem, 8vw, 7.5rem);
  background: var(--bg);
  border-top: 1px solid var(--line-dark);
}

.reviews-solo-shell {
  max-width: 920px;
}

.section-serif-h2 {
  font-family: var(--font-editorial);
  font-weight: 500;
  font-size: clamp(1.85rem, 2.8vw, 2.65rem);
  line-height: 1.08;
  color: var(--cream);
}

.editorial-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.65rem;
}

.reviews-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.doc-badge-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.doc-badge-row img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--gold);
}

.gold-sub {
  font-size: 0.8rem;
  color: var(--gold);
}

.review-arrows {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.circle-arrow-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-gold);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.circle-arrow-btn:hover {
  background: var(--gold);
  color: var(--bg);
}

.review-counter {
  font-size: 0.78rem;
  color: var(--cream-dim);
  min-width: 3.1rem;
  text-align: center;
}

.featured-review-quote {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(1.32rem, 2vw, 1.75rem);
  line-height: 1.38;
  color: var(--cream);
  min-height: 6.4em;
  margin-bottom: 1.4rem;
}

.featured-review-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-dark);
}

.featured-review-footer strong {
  display: block;
  font-size: 0.88rem;
}

.featured-review-footer span {
  font-size: 0.76rem;
  color: var(--cream-dim);
}

.link-gold {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  border-bottom: 1px solid var(--line-gold);
  padding-bottom: 0.1rem;
}

.pub-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.minimal-pub-list {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line-gold);
}

.minimal-pub-row {
  display: grid;
  grid-template-columns: 4.8rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--line-dark);
  transition: padding-inline-start 0.22s var(--ease-expo), background-color 0.2s ease;
}

.minimal-pub-row:hover {
  padding-inline-start: 0.55rem;
  background: rgba(201, 166, 107, 0.05);
}

.pub-y {
  font-family: var(--font-editorial);
  font-size: 1.1rem;
  color: var(--gold);
}

.minimal-pub-row strong {
  display: block;
  font-size: 0.92rem;
  color: var(--cream);
}

.minimal-pub-row span {
  font-size: 0.8rem;
  color: var(--taupe);
}

/* ==========================================================================
   SEÇÃO 7 — CONSULTÓRIO EDITORIAL (Retrato profissional oficial)
   ========================================================================== */

.clinic-aperture-section {
  padding-block: clamp(5rem, 8vw, 7.5rem);
  background: var(--bg-elevated);
  border-top: 1px solid var(--line-dark);
}

.clinic-editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 4.5vw, 4.5rem);
  align-items: center;
}

.clinic-editorial-title {
  font-size: clamp(2.1rem, 3.6vw, 3.3rem);
  margin-bottom: 1.1rem;
}

.clinic-editorial-desc {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--cream-muted);
  max-width: 48ch;
  margin-bottom: 1.85rem;
}

.clinic-editorial-pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  padding-block: 1.35rem 1.75rem;
  border-top: 1px solid var(--line-dark);
}

.clinic-editorial-pillars strong {
  display: block;
  font-size: 0.86rem;
  color: var(--gold-light);
  margin-bottom: 0.3rem;
}

.clinic-editorial-pillars p {
  font-size: 0.84rem;
  color: var(--taupe);
}

.aperture-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10.5;
  background: var(--bg-deep);
  border: 1px solid var(--line-gold);
}

.aperture-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 18%;
  transform: scale(1.05) translate3d(var(--cx, 0px), var(--cy, 0px), 0);
  transition: transform 0.24s ease-out;
}

/* ==========================================================================
   SEÇÃO 8, 9 & 10 — AGENDAMENTO, PUBLICAÇÕES CIENTÍFICAS & RODAPÉ
   ========================================================================== */

.publications-band {
  padding-block: clamp(4.5rem, 7.5vw, 6.5rem);
  background: var(--bg-elevated);
  border-top: 1px solid var(--line-dark);
}

.publications-shell {
  max-width: 1020px;
}

.archive-cta-section {
  padding-block: clamp(5rem, 8vw, 7rem);
  background: var(--bg);
  border-top: 1px solid var(--line-dark);
}

.archive-booking-box {
  text-align: center;
  max-width: 780px;
}

.booking-sub {
  font-size: 0.94rem;
  color: var(--cream-muted);
  margin: 0.75rem auto 2rem;
  max-width: 56ch;
}

.booking-selectors {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 2.2rem;
}

.selector-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.choice-pill,
.choice-plan {
  min-height: 36px;
  padding: 0.36rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: transparent;
  color: var(--cream-muted);
  font-size: 0.79rem;
  cursor: pointer;
}

.choice-pill.is-selected {
  background: var(--bordeaux);
  border-color: var(--gold);
  color: #FAF8F4;
  font-weight: 600;
}

.choice-plan.is-selected {
  background: var(--gold-sheen);
  background-size: 200% 100%;
  border-color: var(--gold);
  color: #1F1A11;
  font-weight: 700;
}

.double-ring-wrap {
  display: flex;
  justify-content: center;
}

.double-ring-cta {
  padding: 0.9rem 2rem;
  border-radius: 999px;
  border: 0;
  background: var(--gold-sheen);
  background-size: 220% 100%;
  animation: goldShimmer 5.5s ease-in-out infinite;
  color: #1F1A11;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow:
    0 0 0 3px var(--bg),
    0 0 0 4.8px var(--gold),
    0 12px 28px rgba(198, 147, 46, 0.30);
  transition: transform 0.16s ease, filter 0.2s ease;
}

.double-ring-cta:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.qb-status {
  display: block;
  margin-top: 1rem;
  font-size: 0.84rem;
  color: var(--gold-light);
}

/* Rodapé estilo kenjilambert.com */
.kenji-footer {
  border-top: 1px solid var(--line-dark);
  padding-top: 3rem;
  padding-bottom: 5.5rem;
  background: var(--bg);
}

.footer-upper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.footer-elsewhere {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.footer-col-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.footer-vert-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-inline-start: 1.25rem;
  border-inline-start: 1px solid var(--line-dark);
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 600;
}

.footer-vert-links a:hover,
.footer-contact-arrow:hover {
  color: var(--gold);
}

.footer-contact-arrow {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
}

.footer-marquee-band {
  position: relative;
  margin-bottom: 1.5rem;
}

.footer-stamp {
  font-size: clamp(60px, 13.5vw, 184px);
  line-height: 0.98;
}

.footer-legal-line {
  font-size: 12px;
  color: var(--cream-dim);
}

/* ==========================================================================
   FOLHA LATERAL DIDÁTICA (Mapa Anatômico, Comparador DIU, Sexologia & DPP)
   ========================================================================== */

.side-drawer {
  border: 0;
  padding: 0;
  margin: 0 0 0 auto;
  height: 100dvh;
  max-height: 100dvh;
  width: min(560px, 100vw);
  max-width: 100vw;
  background: transparent;
  overscroll-behavior: contain;
}

.side-drawer::backdrop {
  background: rgba(24, 21, 17, 0.76);
  backdrop-filter: blur(8px);
}

.side-drawer-sheet {
  min-height: 100%;
  background: var(--bg-elevated);
  color: var(--cream);
  border-left: 1px solid var(--line-gold);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  overflow-y: auto;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
}

.drawer-title {
  font-family: var(--font-editorial);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
}

.drawer-summary {
  font-size: 0.9rem;
  color: var(--cream-muted);
}

.drawer-interactive-slot {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.drawer-visual-box {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line-gold);
  background: #F4F2EE;
}

.drawer-node {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.drawer-node span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cream);
  border: 2.5px solid var(--bordeaux);
}

.drawer-node.is-selected span {
  transform: scale(1.4);
  background: var(--bordeaux);
  border-color: var(--gold);
}

.drawer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.drawer-chip {
  min-height: 36px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line-gold);
  background: transparent;
  font-size: 0.77rem;
  cursor: pointer;
}

.drawer-chip.is-selected {
  background: var(--gold);
  color: var(--bg);
  font-weight: 700;
}

.drawer-readout {
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-dark);
}

.drawer-readout strong {
  display: block;
  font-family: var(--font-editorial);
  font-size: 1.25rem;
  color: var(--gold-light);
  margin-bottom: 0.3rem;
}

.drawer-readout p {
  font-size: 0.88rem;
  color: var(--cream-muted);
}

.drawer-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.8rem;
}

.drawer-specs span {
  display: block;
  color: var(--cream-dim);
}

.drawer-dpp-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.drawer-dpp-form input {
  flex: 1 1 180px;
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--line-gold);
  background: #FFFFFF;
  color: var(--cream);
  color-scheme: light;
}

.drawer-foot {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line-dark);
}

/* ==========================================================================
   RESPONSIVIDADE (1280×820 · 862×698 · 390×844)
   ========================================================================== */

@media (max-width: 960px) {
  .corner-top-center {
    display: none;
  }

  .hero-foreground {
    max-width: min(560px, 68%);
  }

  .case-meta-bottom,
  .fetal-layout,
  .clinic-editorial-grid,
  .clinic-editorial-pillars {
    grid-template-columns: 1fr;
  }

  .fetal-telemetry-col {
    padding-inline-start: 0;
    border-inline-start: 0;
    border-top: 1px solid var(--line-dark);
    padding-top: 1.15rem;
  }

  .fetal-orb-frame {
    width: min(100%, 300px);
  }
}

/* Layout em fluxo para telas compactas e tablets com toque. */
@media (max-width: 960px), (max-width: 1280px) and (pointer: coarse) {
  :root {
    --mobile-gutter: clamp(1rem, 3vw, 2rem);
    --mobile-side: max(var(--mobile-gutter), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
    --mobile-top: env(safe-area-inset-top, 0px);
    --mobile-bottom: env(safe-area-inset-bottom, 0px);
    --mobile-header: calc(3.625rem + var(--mobile-top));
    --mobile-nav-space: calc(3.875rem + var(--mobile-bottom));
  }

  html {
    scroll-padding-block: calc(var(--mobile-header) + 0.5rem) var(--mobile-nav-space);
  }

  .shell {
    width: calc(100% - var(--mobile-side) - var(--mobile-side));
  }

  .corner-nav-top {
    gap: 0.75rem;
    padding: calc(0.4375rem + var(--mobile-top)) var(--mobile-side) 0.4375rem;
    background: linear-gradient(180deg, var(--bg) 0%, rgba(250, 248, 244, 0.88) 65%, rgba(250, 248, 244, 0) 100%);
  }

  .corner-brand,
  .corner-top-right {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .rw-logo-img { height: 44px; }
  .corner-top-right { font-size: clamp(1rem, 2.3vw, 1.25rem); }
  .corner-nav-bottom { bottom: var(--mobile-bottom); }

  .liquid-glass-nav {
    bottom: calc(0.5rem + var(--mobile-bottom));
    max-width: calc(100% - var(--mobile-side) - var(--mobile-side));
    overflow: visible;
    gap: 2px;
  }

  .liquid-nav-scroll {
    position: relative;
    display: flex;
    overflow-x: auto;
    min-width: 0;
    border-radius: inherit;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 0.25rem;
  }

  .liquid-nav-scroll::-webkit-scrollbar { display: none; }

  .liquid-nav-scroll.can-scroll-forward {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 0.8rem), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 0.8rem), transparent);
  }

  .liquid-nav-lens {
    inset-block: 0;
    -webkit-backdrop-filter: blur(2px) saturate(185%) contrast(1.04) brightness(1.04);
    backdrop-filter: blur(2px) saturate(185%) contrast(1.04) brightness(1.04);
  }

  .liquid-nav-lens.is-parked { visibility: hidden; }

  .liquid-nav-tab {
    flex: 0 0 auto;
    min-height: 44px;
    padding-inline: clamp(0.66rem, 2vw, 0.85rem);
  }

  .liquid-nav-tab:focus-visible {
    outline-offset: -3px;
  }

  .liquid-nav-cta {
    border: 1px solid var(--line-gold);
    background: rgba(248, 225, 150, 0.22);
  }

  .liquid-nav-cta.is-active { background: var(--gold-sheen); }

  .hero-stage {
    min-height: 100vh;
    min-height: 100svh;
    padding-block: calc(var(--mobile-header) + 2rem) calc(var(--mobile-nav-space) + 3rem);
  }

  .hero-bg-layer img {
    transform: scale(1.035) translate3d(var(--hx, 0px), calc(var(--hy, 0px) + var(--mobile-hero-scroll, 0px)), 0);
  }

  .hero-foreground {
    max-width: min(35rem, 66%);
    will-change: auto;
  }

  .hero-stamp-h1 { font-size: clamp(2.25rem, 5.45vw, 4rem); }
  .hero-animated-tagline { max-width: 100%; }

  .hero-animated-tagline.has-slot-size {
    display: inline-grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .hero-animated-tagline .hw-slot,
  .hero-animated-tagline .hw-slot-size {
    grid-area: 1 / 2;
  }

  .hero-animated-tagline.has-slot-size > .hw-slot { align-self: stretch; }

  .hero-animated-tagline > .hw-paren:last-child { grid-area: 1 / 3; }

  .hero-animated-tagline .hw-slot {
    justify-content: center;
    text-align: center;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .hero-animated-tagline .hw-slot-size {
    display: grid;
    visibility: hidden;
    pointer-events: none;
  }

  .hero-animated-tagline .hw-slot-size > span { grid-area: 1 / 1; }

  .hero-scroll-chevron {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    bottom: calc(var(--mobile-nav-space) + 0.125rem);
  }

  .hero-scroll-chevron svg { width: 24px; }

  .manifesto-track,
  .project-carousel-track,
  .fetal-cinema-track { height: auto; }

  .manifesto-sticky,
  .project-sticky-stage,
  .fetal-sticky-stage {
    position: relative;
    height: auto;
    padding-block: clamp(2.75rem, 6.5vw, 5rem);
    overflow: visible;
  }

  .manifesto-sticky {
    padding-inline: 0;
    gap: clamp(1.75rem, 5vw, 3rem);
  }

  .manifesto-center {
    width: min(40ch, calc(100% - var(--mobile-side) - var(--mobile-side)));
    will-change: auto;
  }

  .manifesto-statement { font-size: clamp(1.3rem, 3.4vw, 2.2rem); }
  .manifesto-statement .mw { max-width: 100%; overflow-wrap: anywhere; }
  .institutions-marquee-wrap { position: static; }

  .giant-marquee-section { padding-block: 0.65rem clamp(2.25rem, 5vw, 4rem); }

  .floating-marquee-cta,
  .floating-marquee-cta:hover {
    position: relative;
    inset: auto;
    transform: none;
    display: flex;
    width: fit-content;
    max-width: calc(100% - var(--mobile-side) - var(--mobile-side));
    margin: 0.7rem auto 0;
  }

  .project-sticky-stage { gap: 1.25rem; }
  .case-card { width: clamp(13rem, 64vw, 18rem); }
  .case-metadata { gap: 0.85rem; }

  .case-meta-bottom {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7rem;
  }

  .case-meta-bottom > * { overflow-wrap: anywhere; }

  .case-summary {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
    font-size: 0.9rem;
  }

  .drag-strip-track { padding-inline: var(--mobile-side); }

  .fetal-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1.35rem, 3.5vw, 2.5rem);
  }

  .fetal-copy-col,
  .fetal-telemetry-col { overflow-wrap: anywhere; }

  .fetal-orb-frame { width: min(100%, clamp(14rem, 63vw, 19rem)); }

  .fetal-telemetry-col {
    padding: 1.15rem 0 0;
    border-inline-start: 0;
    border-top: 1px solid var(--line-dark);
  }

  .doppler-meta { flex-wrap: wrap; gap: 0.25rem 0.75rem; }
  .bio-probe::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; }

  .pill-cta,
  .dark-pill,
  .dark-link-btn,
  .doppler-audio-btn,
  .choice-pill,
  .choice-plan,
  .double-ring-cta,
  .drawer-chip {
    min-height: 44px;
    min-width: 44px;
  }

  .pill-cta,
  .double-ring-cta {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .circle-arrow-btn { width: 44px; height: 44px; flex: 0 0 44px; }
  .drawer-node { width: 44px; height: 44px; }
  .probe-caption { min-height: 3em; }

  .science-reviews-section,
  .clinic-aperture-section,
  .archive-cta-section,
  .publications-band { padding-block: clamp(3.25rem, 7vw, 5.5rem); }

  .featured-review-quote { min-height: 0; }
  .doc-badge-row > div { min-width: 0; }
  .doc-badge-row img { flex: 0 0 auto; }
  .pub-head { flex-wrap: wrap; }
  .minimal-pub-row { grid-template-columns: 3.25rem minmax(0, 1fr); gap: 0.65rem; }
  .minimal-pub-row > div { overflow-wrap: anywhere; }

  .kenji-footer { padding-bottom: calc(var(--mobile-nav-space) + 1.5rem); }
  .footer-elsewhere { align-items: flex-start; gap: 0.35rem 0.8rem; }
  .footer-vert-links { gap: 0 0.9rem; }
  .footer-vert-links a,
  .footer-contact-arrow {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  body.drawer-open { overflow: hidden; }

  .side-drawer {
    height: 100vh;
    max-height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
  }

  .side-drawer-sheet {
    min-width: 0;
    padding: max(1rem, var(--mobile-top)) max(1rem, env(safe-area-inset-right, 0px))
      max(1.15rem, var(--mobile-bottom)) max(1rem, env(safe-area-inset-left, 0px));
    overflow-wrap: anywhere;
  }

  .drawer-dpp-form input { min-width: 0; max-width: 100%; font-size: 1rem; }

  @media (min-width: 700px) {
    .fetal-layout {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .case-meta-bottom { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
    .case-summary { grid-column: 1 / -1; }
    .clinic-editorial-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .fetal-copy-col { grid-column: 1 / -1; }

    .fetal-telemetry-col {
      padding: 0 0 0 clamp(1rem, 3vw, 1.6rem);
      border-top: 0;
      border-inline-start: 1px solid var(--line-dark);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .pill-gold,
    .hero-line-gold,
    .double-ring-cta { animation: none; }
  }
}

@media (max-width: 640px) {
  .hero-stage {
    --hero-visual-height: clamp(15.25rem, 57svh, 30rem);
    justify-content: flex-end;
    padding-block-start: max(calc(var(--mobile-header) + 1rem), calc(var(--hero-visual-height) - 3.25rem));
    padding-block-end: calc(var(--mobile-nav-space) + 2.75rem);
  }

  .hero-bg-layer {
    inset-block-end: auto;
    height: 20rem;
    height: var(--hero-visual-height);
    overflow: hidden;
  }

  .hero-bg-layer img { object-position: 74% 18%; }
  .hero-vignette {
    background: linear-gradient(180deg,
      rgba(250, 248, 244, 0) 48%,
      rgba(250, 248, 244, 0.25) 70%,
      var(--bg) 100%);
  }

  .hero-foreground { max-width: 100%; }

  .hero-stamp-h1 {
    font-size: clamp(1.95rem, 8.35vw, 3.45rem);
    overflow-wrap: anywhere;
  }

  .hero-animated-tagline { margin-top: 0.9rem; }
  .hw-slot { font-size: clamp(0.75rem, 3vw, 0.84rem); padding-inline: 0.72rem; }

  .hero-sub-bar {
    display: flex;
    align-items: start;
    flex-direction: column;
    margin-top: 1rem;
    gap: 0.6rem;
    width: fit-content;
    max-width: 100%;
    border-radius: 18px;
    padding: 0.72rem 0.8rem;
  }

  .hero-identity-line { font-size: 0.79rem; overflow-wrap: anywhere; }
  .hero-sub-bar .pill-cta { padding-inline: 1rem; }
  .clinic-editorial-grid { grid-template-columns: minmax(0, 1fr); }
  .aperture-frame { aspect-ratio: 4 / 3; }
  .footer-vert-links { padding-inline-start: 0; border-inline-start: 0; }
}


@media (max-width: 640px) and (max-height: 690px) and (orientation: portrait) {
  .hero-stage { --hero-visual-height: clamp(12.25rem, 42svh, 20rem); }
  .hero-stamp-h1 { font-size: clamp(1.6rem, 7.6vw, 3rem); }
  .hero-animated-tagline { margin-top: 0.65rem; }
  .hero-sub-bar { margin-top: 0.7rem; padding-block: 0.59rem; }
  .hero-identity-line { line-height: 1.45; }
  .hero-scroll-chevron { bottom: calc(var(--mobile-nav-space) + 0.5rem); }
}

@media (max-width: 640px) and (orientation: landscape) {
  .hero-stage {
    min-height: max(100svh, 28rem);
    justify-content: center;
    padding-block: calc(var(--mobile-header) + 1rem) calc(var(--mobile-nav-space) + 2rem);
  }

  .hero-bg-layer { inset: 0; height: auto; }
  .hero-bg-layer img { object-position: 82% 18%; }

  .hero-vignette {
    background: linear-gradient(90deg, rgba(250, 248, 244, 0.9) 0%, rgba(250, 248, 244, 0.85) 38%,
      rgba(250, 248, 244, 0.18) 69%, rgba(250, 248, 244, 0) 100%);
  }

  .hero-foreground { max-width: 66%; }
  .hero-stamp-h1 { font-size: clamp(1.9rem, 5.6vw, 2.6rem); }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee-slow,
  .marquee-fast,
  .hero-scroll-chevron {
    animation: none !important;
  }

  .manifesto-track,
  .project-carousel-track,
  .fetal-cinema-track {
    height: auto;
  }

  .manifesto-sticky,
  .project-sticky-stage,
  .fetal-sticky-stage {
    position: relative;
    height: auto;
    padding-block: 4.5rem;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
