/* ===========================================================
   CLÍNICA ORY — Dr. Fernando Mohr
   Design System: Black · Graphite · Bone
   Typography: Fahkwang (editorial, spaced)
   =========================================================== */

:root {
  /* ===== PALETTE (monochromatic, premium) ===== */
  --bg:        #0a0a0a;       /* deep black */
  --bg-2:      #0f0f10;       /* graphite-black */
  --bg-3:      #161617;       /* graphite */
  --bg-4:      #1d1d1f;       /* graphite-elevated */
  --line:      #28282b;       /* hairline */
  --line-soft: #1d1d1f;

  --text:      #f3f1ec;       /* bone-white */
  --text-dim:  rgba(243,241,236,0.65);
  --text-mute: rgba(243,241,236,0.40);
  --text-faint:rgba(243,241,236,0.18);

  /* Accent is whisper-quiet (premium = restraint) */
  --accent:        #f3f1ec;   /* white as primary accent on dark */
  --accent-soft:   rgba(243,241,236,0.08);
  --accent-line:   rgba(243,241,236,0.30);

  /* Inverse (for light cards like Google review) */
  --paper:     #fafaf7;
  --ink:       #1a1a1a;
  --ink-dim:   #5a5a5a;

  /* ===== TYPE ===== */
  --font: 'Fahkwang', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Tracking */
  --tk-tight: -0.018em;
  --tk-norm: 0;
  --tk-wide: 0.12em;
  --tk-xwide: 0.22em;

  /* Type scale — restrained, responsive (bumped for Cormorant's smaller x-height) */
  --fs-display: clamp(2.5rem, 6vw, 5.6rem);
  --fs-h1:      clamp(2.6rem, 5.6vw, 5rem);
  --fs-h2:      clamp(2.1rem, 4vw, 3.4rem);
  --fs-h3:      clamp(1.45rem, 2.1vw, 1.9rem);
  --fs-h4:      clamp(1rem, 1.3vw, 1.2rem);
  --fs-body-lg: clamp(1rem, 1.15vw, 1.12rem);
  --fs-body:    0.98rem;
  --fs-sm:      0.84rem;
  --fs-xs:      0.72rem;

  /* Layout */
  --pad-x: clamp(20px, 4.5vw, 72px);
  --maxw: 1400px;
  --gutter: clamp(24px, 4vw, 64px);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--text); color: var(--bg); }

/* Film grain — barely-there, premium tactile */
body::after {
  content: ""; position: fixed; inset: 0;
  pointer-events: none; z-index: 1000;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Vignette behind everything */
.vignette {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.025) 0%, transparent 50%),
    radial-gradient(ellipse at 0% 100%, rgba(255,255,255,0.015) 0%, transparent 60%);
}

main { position: relative; z-index: 2; }

/* ===== LAYOUT PRIMITIVES ===== */
.container { max-width: var(--maxw); margin-inline: auto; position: relative; }
section {
  position: relative;
  padding-inline: var(--pad-x);
  padding-block: clamp(60px, 8vw, 110px);
}

.eyebrow {
  font-size: var(--fs-xs);
  letter-spacing: var(--tk-xwide);
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 400;
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px;
  background: var(--text-mute);
}

.section-meta {
  position: absolute;
  top: clamp(40px, 6vw, 80px); right: var(--pad-x);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tk-wide);
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

/* Hairline divider */
.hr-line {
  height: 1px; background: var(--line);
  margin-block: 0;
  transform-origin: left;
}

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px var(--pad-x);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  transition: padding 0.4s ease, background 0.4s ease, backdrop-filter 0.4s ease;
}
.nav.scrolled {
  background: rgba(10,10,10,0.72);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  display: flex; align-items: center; gap: 14px;
}
.nav-brand .monogram { width: 42px; height: 42px; object-fit: contain; flex-shrink: 0; }
.nav-brand .wordmark {
  display: flex; flex-direction: column; gap: 2px; line-height: 1;
}
.nav-brand .wordmark .top {
  font-size: 0.7rem;
  letter-spacing: var(--tk-xwide);
  font-weight: 300;
  color: var(--text-mute);
  text-transform: uppercase;
}
.nav-brand .wordmark .name {
  font-size: 0.92rem;
  letter-spacing: var(--tk-wide);
  font-weight: 400;
  text-transform: uppercase;
}

.nav-links {
  display: flex; gap: 32px;
  justify-content: center;
  font-size: var(--fs-xs);
  letter-spacing: var(--tk-wide);
  text-transform: uppercase;
}
.nav-links a {
  position: relative; padding: 6px 0;
  color: var(--text-dim);
  transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: ""; position: absolute;
  left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--text);
  transition: width 0.4s cubic-bezier(0.7,0,0.2,1);
}
.nav-links a:hover::after { width: 100%; }

.nav-end {
  display: flex; justify-content: flex-end; align-items: center; gap: 16px;
}
.nav-phone {
  font-size: var(--fs-xs);
  letter-spacing: var(--tk-wide);
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.nav-cta {
  font-size: var(--fs-xs);
  letter-spacing: var(--tk-wide);
  text-transform: uppercase;
  padding: 12px 22px;
  border: 1px solid var(--text);
  color: var(--text);
  transition: all 0.4s ease;
  display: inline-flex; align-items: center; gap: 10px;
}
.nav-cta:hover { background: var(--text); color: var(--bg); }
.nav-cta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0 8px rgba(37,211,102,0.7);
  animation: ping 2.2s infinite;
}
@keyframes ping {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

.nav-burger { display: none; width: 32px; height: 22px; position: relative; }
.nav-burger span { position: absolute; left: 0; right: 0; height: 1px; background: var(--text); transition: 0.3s; }
.nav-burger span:nth-child(1) { top: 0; }
.nav-burger span:nth-child(2) { top: 50%; }
.nav-burger span:nth-child(3) { bottom: 0; }

@media (max-width: 980px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .nav-phone { display: none; }
}
@media (max-width: 640px) {
  .nav-cta { display: none; }
  .nav-burger { display: block; }
  .nav-brand .wordmark { display: none; }
}

/* ===== MOBILE MENU ===== */
.nav-burger { z-index: 130; }
.nav-burger span { transform-origin: center; }
body.mnav-open .nav-burger span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
body.mnav-open .nav-burger span:nth-child(2) { opacity: 0; }
body.mnav-open .nav-burger span:nth-child(3) { bottom: auto; top: 50%; transform: translateY(-50%) rotate(-45deg); }

.mnav-backdrop {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(10,10,10,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
body.mnav-open .mnav-backdrop { opacity: 1; pointer-events: auto; }

.mnav {
  position: fixed; top: 0; right: 0; z-index: 120;
  width: min(82vw, 360px); height: 100%;
  background: rgba(16,16,16,0.96);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-left: 1px solid var(--line);
  padding: calc(env(safe-area-inset-top, 0px) + 96px) 36px calc(env(safe-area-inset-bottom, 0px) + 40px);
  display: flex; flex-direction: column; justify-content: space-between;
  transform: translateX(100%);
  transition: transform 0.46s cubic-bezier(0.7,0,0.2,1);
  visibility: hidden;
}
body.mnav-open .mnav { transform: translateX(0); visibility: visible; }

.mnav-links { display: flex; flex-direction: column; gap: 4px; }
.mnav-links a {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--text-dim);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.3s ease, padding-left 0.3s ease;
}
.mnav-links a:active, .mnav-links a:hover { color: var(--text); padding-left: 8px; }

.mnav-foot { display: flex; flex-direction: column; gap: 18px; }
.mnav-phone {
  font-size: var(--fs-xs);
  letter-spacing: var(--tk-wide);
  text-transform: uppercase;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.mnav-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 24px;
  font-size: var(--fs-xs);
  letter-spacing: var(--tk-wide);
  text-transform: uppercase;
  color: var(--bg);
  background: var(--text);
  border-radius: 2px;
  transition: opacity 0.3s ease;
}
.mnav-cta:active { opacity: 0.85; }
.mnav-cta .dot { width: 6px; height: 6px; border-radius: 50%; background: #25D366; }

/* ===========================================================
   BUTTONS — minimal premium, no arrow
   =========================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 20px 38px;
  font-size: var(--fs-sm);
  letter-spacing: var(--tk-wide);
  text-transform: uppercase;
  font-weight: 400;
  position: relative;
  isolation: isolate;
  cursor: pointer;
  transition: color 0.4s cubic-bezier(0.7,0,0.2,1), letter-spacing 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
  border: 1px solid currentColor;
  overflow: hidden;
  min-width: 280px;
}
.btn::before {
  /* fill wipe from left on hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s cubic-bezier(0.7,0,0.2,1);
}
.btn::after {
  /* shimmer sweep */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
  background-size: 220% 100%;
  background-position: 200% 0;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: overlay;
}
.btn:hover::before { transform: scaleX(1); }
.btn:hover {
  letter-spacing: calc(var(--tk-wide) + 0.04em);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  box-shadow: 0 8px 30px rgba(243,241,236,0.10);
  animation: btn-breath 3.6s ease-in-out infinite;
}
.btn-primary::before { background: var(--bg); }
.btn-primary:hover {
  color: var(--text);
  box-shadow: 0 14px 60px rgba(243,241,236,0.25);
  animation: none;
}
.btn-primary:hover::after {
  opacity: 1;
  animation: shimmer 1.4s ease-in-out;
}

@keyframes btn-breath {
  0%, 100% { box-shadow: 0 8px 30px rgba(243,241,236,0.08), 0 0 0 0 rgba(243,241,236,0.18); }
  50%      { box-shadow: 0 8px 30px rgba(243,241,236,0.14), 0 0 0 12px rgba(243,241,236,0); }
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -220% 0; }
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(243,241,236,0.30);
}
.btn-ghost::before { background: var(--text); }
.btn-ghost:hover {
  color: var(--bg);
  border-color: var(--text);
  box-shadow: 0 10px 40px rgba(243,241,236,0.15);
}

/* ===== TYPOGRAPHY UTILITIES ===== */
.disp {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: var(--tk-tight);
  text-wrap: balance;
}
.disp .it { font-style: italic; font-weight: 400; color: var(--text-dim); }
.disp .thin { font-weight: 300; opacity: 0.5; }

.h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: var(--tk-tight);
  text-wrap: balance;
}
.h1 .it { font-style: italic; font-weight: 400; color: var(--text-dim); }
.h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: var(--tk-tight);
  text-wrap: balance;
}
.h2 .it { font-style: italic; font-weight: 400; color: var(--text-dim); }
.h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: var(--tk-tight);
}
.lede {
  font-size: var(--fs-body-lg);
  color: var(--text-dim);
  font-weight: 300;
  line-height: 1.6;
  max-width: 56ch;
}
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ===== REVEAL PRIMITIVES (GSAP targets) ===== */
.rev-mask { display: block; overflow: hidden; }
.rev-mask > .rev-inner { display: inline-block; will-change: transform; }
.fade-up, .fade-in { will-change: opacity, transform; }
.fade-up { opacity: 0; transform: translateY(28px); }
.fade-in { opacity: 0; }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  min-height: 100vh;
  padding: 0;
  position: relative;
  overflow: hidden;
  display: block;
}

.hero-text {
  position: relative;
  z-index: 3;
  padding: clamp(120px, 14vw, 180px) var(--pad-x) clamp(60px, 8vw, 110px);
  max-width: clamp(560px, 56vw, 880px);
  display: flex; flex-direction: column; justify-content: center;
  min-height: 100vh;
}

/* Hero ambient glow only */

/* Photo as ambient backdrop — bleeds into bg via mask */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
@media (max-width: 980px) {
  .hero-media { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; }
  .hero-media img { object-position: center 20%; }
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: none;
  filter: contrast(1.02) saturate(0.95) brightness(0.98);
}
.hero-img-mobile { display: none; }
.hero-media::before { display: none; }
.hero-overlay { display: none; }

@media (max-width: 980px) {
  .hero { display: block; }
  /* Use the vertical photo on phones, the wide one on desktop */
  .hero-img-desktop { display: none; }
  .hero-img-mobile { display: block; object-position: center 20%; }
  .hero-text {
    min-height: 100vh;
    padding-top: clamp(120px, 24vw, 168px);
    padding-bottom: clamp(48px, 9vw, 80px);
    max-width: 100%;
    justify-content: flex-end;
  }
  /* Dark scrim over the photo so the headline stays legible (sits between photo z1 and text z3) */
  .hero::after {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(180deg, rgba(10,10,10,0.30) 0%, rgba(10,10,10,0.12) 24%, rgba(10,10,10,0.34) 52%, rgba(10,10,10,0.82) 78%, rgba(10,10,10,0.96) 100%);
  }
}
.hero-tag { margin-bottom: clamp(28px, 4vw, 48px); }
.hero h1.disp {
  margin-bottom: clamp(20px, 2.5vw, 32px);
}
.sub-headline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.9vw, 2.5rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: var(--tk-tight);
  color: var(--text-dim);
  margin-bottom: clamp(32px, 4.5vw, 52px);
  text-wrap: balance;
}
.sub-headline .rev-mask { display: block; overflow: hidden; }
.sub-headline .it { font-style: italic; color: var(--text); font-weight: 400; }

.hero p.lede { margin-bottom: clamp(32px, 4vw, 48px); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  margin-top: clamp(60px, 8vw, 100px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero-stats .stat .num {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 300;
  letter-spacing: var(--tk-tight);
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stats .stat .label {
  font-size: var(--fs-xs);
  letter-spacing: var(--tk-wide);
  text-transform: uppercase;
  color: var(--text-mute);
}

.hero-media {
  /* extends from previous block */
}
.hero-media::before,
.hero-media::after { display: none; }

.hero-media .corner-frame {
  position: absolute; z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tk-xwide);
  text-transform: uppercase;
  color: var(--text-mute);
  pointer-events: none;
}
.hero-media .corner-frame.tl { top: 24px; left: 24px; }
.hero-media .corner-frame.br { bottom: 24px; right: 24px; }
.hero-media .corner-frame .marker {
  display: inline-block;
  width: 10px; height: 10px;
  border-top: 1px solid var(--text-mute);
  border-left: 1px solid var(--text-mute);
  margin-right: 8px;
  vertical-align: middle;
}
.hero-media .corner-frame.br .marker {
  border-top: 0; border-left: 0;
  border-bottom: 1px solid var(--text-mute);
  border-right: 1px solid var(--text-mute);
  margin-right: 0; margin-left: 8px;
}

/* Scroll cue */
.hero-scroll {
  position: absolute;
  bottom: 28px; left: var(--pad-x);
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tk-xwide);
  text-transform: uppercase;
  color: var(--text-mute);
  z-index: 3;
}
.hero-scroll .line {
  width: 60px; height: 1px;
  background: var(--text-mute);
  position: relative; overflow: hidden;
}
.hero-scroll .line::after {
  content: ""; position: absolute;
  left: -40%; top: 0; bottom: 0; width: 40%;
  background: var(--text);
  animation: slide 2.4s ease-in-out infinite;
}
@keyframes slide {
  0% { left: -40%; }
  100% { left: 100%; }
}

/* ===========================================================
   SECTION TITLES (simplified)
   =========================================================== */
.sec-title {
  margin-bottom: clamp(60px, 8vw, 110px);
  max-width: 56ch;
}
.sec-title h2.h1 { margin-bottom: clamp(20px, 2.5vw, 32px); }
.sec-title p.lede { margin-top: 8px; }

/* Legacy fallback */
.sec-head { display: block; margin-bottom: clamp(60px, 8vw, 100px); max-width: 56ch; }
.sec-head .head-l, .section-meta { display: none; }
.sec-head .head-r { display: block; }

/* ===========================================================
   ESPECIALIDADES (Editorial split)
   =========================================================== */
#especialidades {
  background:
    radial-gradient(ellipse 60% 40% at 0% 0%, rgba(243,241,236,0.04), transparent 70%),
    radial-gradient(ellipse 80% 60% at 100% 100%, rgba(243,241,236,0.025), transparent 75%),
    linear-gradient(165deg, var(--bg-2) 0%, var(--bg) 50%, var(--bg-2) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
#padrao {
  background:
    radial-gradient(ellipse 90% 50% at 100% 0%, rgba(243,241,236,0.035), transparent 60%),
    radial-gradient(ellipse 70% 40% at 0% 100%, rgba(243,241,236,0.02), transparent 65%),
    linear-gradient(195deg, var(--bg) 0%, var(--bg-2) 100%);
}
#sobre {
  background:
    radial-gradient(ellipse 50% 50% at 100% 50%, rgba(243,241,236,0.045), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-3) 60%, var(--bg-2) 100%);
  border-top: 1px solid var(--line);
}
#contato {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(243,241,236,0.035), transparent 60%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  border-top: 1px solid var(--line);
}
.specialties {
  border-top: 1px solid var(--line);
}
.specialty {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  padding-block: clamp(70px, 10vw, 140px);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.specialty.reverse { direction: rtl; }
.specialty.reverse > * { direction: ltr; }
@media (max-width: 880px) {
  .specialty, .specialty.reverse { grid-template-columns: 1fr; direction: ltr; }
}

.specialty .copy { max-width: 56ch; }
.specialty .copy .idx {
  font-size: var(--fs-xs);
  letter-spacing: var(--tk-wide);
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 14px;
}
.specialty .copy .idx::before {
  content: ""; width: 32px; height: 1px; background: var(--text-mute);
}
.specialty .copy h3.h2 { margin-bottom: 24px; }
.specialty .copy p.lede { margin-bottom: 36px; }
.specialty .copy .tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 36px;
}
.specialty .copy .tag {
  font-size: var(--fs-xs);
  letter-spacing: var(--tk-wide);
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--line);
  color: var(--text-dim);
}

/* Case gallery — featured + thumb strip */
.case-gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.case-featured {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bg-3);
  border: 1px solid var(--line);
  overflow: hidden;
}
.case-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s cubic-bezier(0.7,0,0.2,1), transform 1.2s cubic-bezier(0.7,0,0.2,1);
  will-change: opacity, transform;
}
.case-img.active {
  opacity: 1;
  transform: scale(1);
}
.case-counter {
  position: absolute;
  top: 18px; left: 18px;
  font-size: 11px;
  letter-spacing: var(--tk-wide);
  color: var(--text);
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  z-index: 3;
}
.case-meta {
  position: absolute;
  bottom: 18px; left: 18px;
  font-size: 10px;
  letter-spacing: var(--tk-xwide);
  text-transform: uppercase;
  color: var(--text);
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  z-index: 3;
}

.case-strip {
  display: block;
  position: relative;
  overflow: hidden;
}
.case-track {
  display: flex;
  flex-wrap: nowrap;
  position: relative;
  gap: 8px;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.case-strip.cs-2 .thumb { flex-basis: calc((100% - 8px) / 2); }
.case-strip .thumb {
  flex: 0 0 calc((100% - 24px) / 4);
  aspect-ratio: 1;
  background: var(--bg-3);
  border: 1px solid var(--line);
  padding: 0;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
  opacity: 0.5;
}
.case-strip .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.case-strip .thumb:hover {
  opacity: 1;
  border-color: var(--text-dim);
}
.case-strip .thumb:hover img { transform: scale(1.06); }
.case-strip .thumb.active {
  opacity: 1;
  border-color: var(--text);
}
.case-strip .thumb.active::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid var(--text);
  pointer-events: none;
}

/* ===========================================================
   DEPOIMENTOS — Google-style cards + video
   =========================================================== */
.depo {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.depo-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--gutter);
  margin-top: 60px;
}
@media (max-width: 980px) { .depo-grid { grid-template-columns: 1fr; } }

.video-wrap {
  position: relative;
  aspect-ratio: 9/16;
  max-height: 720px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  overflow: hidden;
}
.video-wrap video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.video-wrap .v-poster {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(10,10,10,0.0) 40%, rgba(10,10,10,0.65) 100%);
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.4s;
}
.video-wrap .v-poster.hidden { opacity: 0; pointer-events: none; }
.video-wrap .v-poster .play {
  width: 92px; height: 92px;
  border-radius: 50%;
  border: 1px solid var(--text);
  background: rgba(10,10,10,0.45);
  backdrop-filter: blur(10px);
  display: grid; place-items: center;
  position: relative;
  transition: transform 0.3s ease;
}
.video-wrap .v-poster:hover .play { transform: scale(1.06); }
.video-wrap .v-poster .play::before {
  content: ""; width: 0; height: 0;
  border-left: 14px solid var(--text);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}
.video-wrap .v-meta {
  position: absolute;
  bottom: 22px; left: 22px;
  z-index: 3; pointer-events: none;
}
.video-wrap .v-meta .badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tk-xwide);
  text-transform: uppercase;
  color: var(--text);
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(6px);
  padding: 6px 12px;
  display: inline-block;
}

/* ===========================================================
   DEPOIMENTOS (restructured)
   =========================================================== */
.depo {
  background:
    radial-gradient(ellipse 70% 50% at 100% 50%, rgba(243,241,236,0.05), transparent 60%),
    radial-gradient(ellipse 40% 30% at 0% 0%, rgba(243,241,236,0.03), transparent 70%),
    linear-gradient(155deg, var(--bg-3) 0%, var(--bg-2) 60%, var(--bg) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.depo-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}
@media (max-width: 980px) { .depo-head { grid-template-columns: 1fr; } }
.depo-head-text h2.h2 { margin-bottom: 20px; }

.depo-head .video-wrap {
  aspect-ratio: 9 / 16;
  max-height: 620px;
  width: 100%;
  margin: 0 auto;
  background: var(--bg-3);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.depo-head .video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg);
  display: block;
}
.v-empty {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
  background:
    repeating-linear-gradient(45deg,
      rgba(243,241,236,0.015) 0,
      rgba(243,241,236,0.015) 12px,
      transparent 12px,
      transparent 24px),
    var(--bg-3);
  border: 1px dashed rgba(243,241,236,0.16);
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.v-empty:hover, .v-empty.drag-over {
  border-color: var(--text);
  background-color: rgba(243,241,236,0.04);
}
.v-empty-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1px solid var(--text-mute);
  display: grid; place-items: center;
  color: var(--text-mute);
  font-size: 22px;
  padding-left: 6px;
  transition: border-color 0.3s, color 0.3s;
}
.v-empty:hover .v-empty-icon, .v-empty.drag-over .v-empty-icon {
  border-color: var(--text);
  color: var(--text);
}
.v-empty-text { display: flex; flex-direction: column; gap: 6px; }
.v-empty-text strong {
  font-size: var(--fs-sm);
  letter-spacing: var(--tk-wide);
  text-transform: uppercase;
  font-weight: 400;
  color: var(--text-dim);
}
.v-empty-text span {
  font-size: var(--fs-xs);
  color: var(--text-mute);
  max-width: 28ch;
  line-height: 1.5;
}
.v-empty-text .hint {
  font-size: 10px;
  margin-top: 8px;
  color: var(--text-faint);
  letter-spacing: var(--tk-wide);
  text-transform: uppercase;
}

.v-replace {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tk-wide);
  text-transform: uppercase;
  color: var(--text);
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border: 1px solid rgba(243,241,236,0.2);
  cursor: pointer;
  z-index: 4;
  transition: background 0.3s, border-color 0.3s;
}
.v-replace:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.google-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 880px) {
  .google-grid { grid-template-columns: 1fr; }
}
.google-grid .g-card { padding: 20px 22px; }
.google-grid .g-text { font-size: 13px; }
.google-grid .g-summary { grid-column: 1 / -1; margin-top: 8px; }

.g-card {
  background: var(--paper);
  color: var(--ink);
  padding: 24px 28px;
  border-radius: 12px;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.7,0,0.2,1), box-shadow 0.4s;
}
.g-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.g-card-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 14px;
}
.g-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: white;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0;
  font-family: 'Roboto', system-ui, sans-serif;
  flex-shrink: 0;
}
.g-avatar.a1 { background: linear-gradient(135deg, #1a73e8, #4285f4); }
.g-avatar.a2 { background: linear-gradient(135deg, #ea4335, #fbbc04); }
.g-avatar.a3 { background: linear-gradient(135deg, #34a853, #1a73e8); }
.g-meta { flex: 1; min-width: 0; }
.g-name {
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 2px;
}
.g-when {
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: 12px;
  color: var(--ink-dim);
  display: flex; align-items: center; gap: 8px;
}
.g-logo {
  flex-shrink: 0;
  width: 18px; height: 18px;
}
.g-stars {
  display: flex; gap: 2px;
  margin-bottom: 10px;
  color: #FBBC04;
  font-size: 14px;
  letter-spacing: 1px;
}
.g-text {
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: 14px;
  color: #3c4043;
  line-height: 1.6;
  margin-bottom: 12px;
}
.g-footer {
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: 12px;
  color: var(--ink-dim);
  display: flex; gap: 16px;
  padding-top: 12px;
  border-top: 1px solid #e8eaed;
}
.g-footer span { display: flex; align-items: center; gap: 6px; }

.g-summary {
  margin-top: 24px;
  padding: 20px 24px;
  background: rgba(243,241,236,0.04);
  border: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.g-summary .left {
  display: flex; align-items: center; gap: 16px;
  font-size: var(--fs-sm);
  color: var(--text-dim);
}
.g-summary .rating {
  display: flex; align-items: baseline; gap: 8px;
}
.g-summary .rating .big {
  font-size: 1.6rem; font-weight: 300; color: var(--text); letter-spacing: var(--tk-tight);
}
.g-summary .rating .stars { color: #FBBC04; letter-spacing: 1px; font-size: 14px; }
.g-summary a {
  color: var(--text);
  font-size: var(--fs-xs);
  letter-spacing: var(--tk-wide);
  text-transform: uppercase;
  display: inline-flex; gap: 10px; align-items: center;
  border-bottom: 1px solid var(--text-mute);
  padding-bottom: 4px;
  transition: border-color 0.3s;
}
.g-summary a:hover { border-color: var(--text); }

/* ===========================================================
   PADRÃO ORY — Editorial typographic concept
   =========================================================== */
.padrao {
  position: relative;
  overflow: hidden;
  padding-block: clamp(80px, 10vw, 140px);
}
.padrao-inner { position: relative; z-index: 2; }

/* Watermark removed — keeping no-op rule */
.padrao-watermark { display: none; }

/* Section heading */
.padrao-head {
  text-align: center;
  margin-bottom: clamp(60px, 7vw, 100px);
  max-width: 64ch;
  margin-inline: auto;
}
.padrao-head .h2 {
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}
.padrao-head .lede {
  margin-inline: auto;
  font-size: var(--fs-body-lg);
}

/* Three columns layout */
.padrao-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 36px);
  position: relative;
}
@media (max-width: 880px) {
  .padrao-cols { grid-template-columns: 1fr; gap: 8px; }
}

.pcol {
  position: relative;
  padding: 0 clamp(8px, 1.5vw, 24px);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.5vw, 36px);
}
.pcol + .pcol {
  border-left: 1px solid var(--line);
}
@media (max-width: 880px) {
  .pcol + .pcol { border-left: 0; border-top: 1px solid var(--line); padding-top: 32px; }
  .pcol { padding-bottom: 12px; }
}

.pcol-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.pcol-num {
  font-size: clamp(2.8rem, 5.4vw, 4.6rem);
  font-weight: 200;
  letter-spacing: var(--tk-tight);
  color: var(--text);
  line-height: 0.9;
}
.pcol-tag {
  font-size: 10px;
  letter-spacing: var(--tk-xwide);
  text-transform: uppercase;
  color: var(--text-mute);
  white-space: nowrap;
  padding-top: 8px;
}

/* Animated extending line */
.pcol-line {
  position: relative;
  height: clamp(60px, 8vw, 110px);
  width: 100%;
  display: flex;
  justify-content: flex-start;
}
.pcol-line span {
  display: block;
  width: 1px;
  height: 0;
  background: linear-gradient(180deg, var(--text) 0%, transparent 100%);
  transition: height 1.2s cubic-bezier(0.7,0,0.2,1);
  margin-left: clamp(10px, 1.5vw, 22px);
}
.pcol.active .pcol-line span,
.pcol:hover .pcol-line span {
  height: 100%;
}

.pcol-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.1vw, 1.85rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: var(--tk-tight);
  margin-bottom: 16px;
}
.pcol-body h3 .it {
  font-style: italic;
  color: var(--text-dim);
  font-weight: 400;
}
.pcol-body p {
  color: var(--text-dim);
  font-size: 0.96rem;
  line-height: 1.65;
}

.padrao-foot { display: none; }
.pillar { display: none; } /* deprecated — replaced by .pcol */

/* ===========================================================
   SOBRE
   =========================================================== */
.sobre {}
.sobre-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
@media (max-width: 980px) { .sobre-grid { grid-template-columns: 1fr; } }

.sobre-portrait {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--line);
}
/* When holding a vertical video, match its 9:16 ratio so nothing is cropped */
.sobre-portrait:has(video) {
  aspect-ratio: 9 / 16;
  max-height: 760px;
  margin-inline: auto;
  background: #000;
}
.sobre-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.04);
  filter: contrast(1.02) saturate(0.92);
  will-change: transform;
}
.sobre-portrait video {
  width: 100%; height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}
.sobre-portrait::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10,10,10,0.4));
  pointer-events: none;
}
.sobre-portrait .stamp {
  position: absolute; left: 20px; bottom: 20px;
  padding: 10px 16px;
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tk-xwide);
  text-transform: uppercase;
  color: var(--text);
  z-index: 2;
}

.sobre-title {
  margin-bottom: clamp(28px, 3.5vw, 44px);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
}
.sobre-title .rev-mask { display: block; overflow: hidden; }

.sobre-copy { padding-top: 0; }
.sobre-copy .name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.9vw, 3.4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: var(--tk-tight);
  margin-bottom: 10px;
}
.sobre-copy .name .it { font-style: italic; color: var(--text-dim); font-weight: 400; }
.sobre-copy .cro {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tk-xwide);
  color: var(--text-mute);
  text-transform: uppercase;
  margin-bottom: 40px;
}
.sobre-copy .bio {
  color: var(--text-dim);
  font-size: var(--fs-body-lg);
  line-height: 1.7;
  margin-bottom: 28px;
}
.sobre-credentials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 32px;
  margin: 40px 0;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sobre-credentials .cred {
  font-size: var(--fs-sm);
  color: var(--text-dim);
  display: flex; align-items: baseline; gap: 12px;
  font-weight: 300;
}
.sobre-credentials .cred::before {
  content: ""; flex-shrink: 0;
  width: 4px; height: 4px;
  background: var(--text);
  margin-top: 2px;
  align-self: center;
}

/* ===========================================================
   AMBIENTE (restructured: side-by-side)
   =========================================================== */
.ambiente {
  background:
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(243,241,236,0.045), transparent 60%),
    radial-gradient(ellipse 40% 30% at 100% 0%, rgba(243,241,236,0.02), transparent 65%),
    linear-gradient(175deg, var(--bg) 0%, var(--bg-2) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ambiente-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 880px) { .ambiente-grid { grid-template-columns: 1fr; } }
.ambiente-copy h2.h2 { margin-bottom: 20px; }
.ambiente-copy .lede { max-width: 44ch; }

.ambiente-video {
  aspect-ratio: 16/9;
  background: #000;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.ambiente-video video {
  width: 100%; height: 100%;
  object-fit: cover;
  background: #000;
  display: block;
}
.ambiente-video image-slot { width: 100%; height: 100%; }
.ambiente-video .play-big {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(180deg, transparent 50%, rgba(10,10,10,0.5));
  pointer-events: none;
}
.ambiente-video .play-big::after {
  content: "";
  width: 110px; height: 110px;
  border-radius: 50%;
  border: 1px solid var(--text);
  background: rgba(10,10,10,0.4);
  backdrop-filter: blur(10px);
}
.ambiente-video .play-big::before {
  content: "";
  position: absolute;
  width: 0; height: 0;
  border-left: 18px solid var(--text);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 6px;
  z-index: 2;
}
.ambiente-video .vcaption {
  position: absolute;
  bottom: 24px; left: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tk-xwide);
  text-transform: uppercase;
  color: var(--text);
  background: rgba(10,10,10,0.7);
  padding: 6px 12px;
  z-index: 2;
}

/* ===========================================================
   CONTATO + FOOTER
   =========================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--gutter);
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info { padding-top: 16px; }
.contact-row {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 24px;
  align-items: start;
}
.contact-row:first-of-type { padding-top: 0; }
.contact-row .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tk-xwide);
  text-transform: uppercase;
  color: var(--text-mute);
  padding-top: 4px;
}
.contact-row .val {
  font-size: var(--fs-body-lg);
  font-weight: 300;
}
.contact-row .val a { border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.contact-row .val a:hover { border-color: var(--text); }
.contact-row.hero-row .val strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: var(--tk-tight);
  margin-bottom: 6px;
}
.contact-row.hero-row .val .sub {
  font-size: var(--fs-sm);
  color: var(--text-mute);
}

.map-wrap {
  aspect-ratio: 4/3;
  background: var(--bg-3);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.map-wrap iframe {
  width: 100%; height: 100%;
  border: 0;
  filter: invert(0.92) hue-rotate(180deg) saturate(0.3) brightness(0.95);
}

.footer {
  padding: 36px var(--pad-x);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tk-wide);
  text-transform: uppercase;
  color: var(--text-mute);
}
.footer .center { justify-self: center; }
.footer .right { justify-self: end; }
@media (max-width: 720px) {
  .footer { grid-template-columns: 1fr; text-align: center; }
  .footer .center, .footer .right { justify-self: center; }
}

/* ===========================================================
   FLOATING WHATSAPP
   =========================================================== */
.float-wa {
  position: fixed;
  bottom: 22px; right: 22px;
  z-index: 95;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: grid; place-items: center;
  box-shadow: 0 14px 40px rgba(37,211,102,0.35);
  transition: transform 0.3s ease;
}
.float-wa::before {
  content: ""; position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(37,211,102,0.4);
  animation: ring 2.4s ease-in-out infinite;
}
.float-wa:hover { transform: scale(1.08); }
.float-wa svg { width: 30px; height: 30px; fill: white; }
@keyframes ring {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ===========================================================
   IMAGE SLOT
   =========================================================== */
image-slot {
  --slot-bg: rgba(243,241,236,0.02);
  --slot-border: rgba(243,241,236,0.08);
  --slot-text: var(--text-mute);
  --slot-accent: var(--text);
}

/* ===========================================================
   PRINT
   =========================================================== */
@media print { .nav, .float-wa, .vignette { display: none; } }

/* ===========================================================
   YOUTUBE EMBEDS (facade)
   =========================================================== */
.yt-embed {
  position: relative;
  background: #000;
  overflow: hidden;
}
.yt-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background-color: #0a0a0a;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
}
.yt-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.32);
  transition: background 0.35s ease;
}
.yt-poster:hover::after { background: rgba(10, 10, 10, 0.14); }
.yt-poster .play {
  position: relative;
  z-index: 2;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  transition: transform 0.3s ease, background 0.3s ease;
}
.yt-poster:hover .play {
  transform: scale(1.07);
  background: rgba(255, 255, 255, 0.2);
}
.yt-poster .play::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 16px solid var(--text);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 5px;
}
.yt-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ===========================================================
   AJUSTES MOBILE — botões compactos + ordem dos vídeos
   =========================================================== */

/* CTA exclusivo do mobile (aparece abaixo do vídeo) */
.cta-mobile { display: none; }

/* Botões compactos no mobile — cabem em uma única linha */
@media (max-width: 640px) {
  .btn {
    min-width: 0;
    padding: 15px 26px;
    font-size: 0.72rem;
    letter-spacing: 0.07em;
    white-space: nowrap;
  }
}

/* SOBRE (Dr. Fernando): texto em cima → vídeo → botão */
@media (max-width: 980px) {
  .sobre-grid {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(28px, 6vw, 44px);
  }
  .sobre-grid .sobre-copy { order: 1; }
  .sobre-grid .sobre-portrait {
    order: 2;
    width: 100%;
    max-width: 360px;
    align-self: center;
  }
  .sobre-grid .cta-mobile { order: 3; display: inline-flex; align-self: center; }
  .sobre-copy .cta-desktop { display: none; }
}

/* AMBIENTE (clínica): texto em cima → vídeo → botão */
@media (max-width: 880px) {
  .ambiente-grid {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(28px, 6vw, 44px);
  }
  .ambiente-grid .ambiente-copy { order: 1; }
  .ambiente-grid .ambiente-video { order: 2; width: 100%; }
  .ambiente-grid .cta-mobile { order: 3; display: inline-flex; align-self: center; }
  .ambiente-copy .cta-desktop { display: none; }
}
