/* === Design tokens === */
:root {
  --background-rgb: 17 17 17;
  --background-deep-rgb: 10 10 10;
  --card-panel-rgb: 31 31 31;
  --ivory-rgb: 244 241 236;
  --accent-rgb: 176 135 119;
  --accent-soft-rgb: 215 184 169;
  --highlight-rgb: 226 201 189;
  --white-rgb: 244 241 236;
  --black-rgb: 0 0 0;
  --background: rgb(var(--background-rgb));
  --background-deep: rgb(var(--background-deep-rgb));
  --card-panel: rgb(var(--card-panel-rgb));
  --ivory: rgb(var(--ivory-rgb));
  --accent: rgb(var(--accent-rgb));
  --accent-soft: rgb(var(--accent-soft-rgb));
  --highlight: rgb(var(--highlight-rgb));
  --section-hero: #101010;
  --section-about: #181818;
  --section-areas: #202020;
  --section-atendimento: #191919;
  --section-locais: #222222;
  --section-depoimentos: #1d1d1d;
  --section-contato: #151515;
  --border: #3b3736;
  --gold-lux: #bca28d;
  --gold-lux-soft: linear-gradient(90deg, transparent, rgb(188 162 141 / 0.22) 35%, rgb(188 162 141 / 0.22) 65%, transparent);
  --hero-glow: transparent;
  --portrait-shadow: rgb(0 0 0 / 0.66);
  --card-background: rgb(var(--card-panel-rgb) / 0.82);
  --dot-color: rgb(var(--accent-soft-rgb) / 0.18);
  --dot-layer-opacity: 0.62;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --ease-motion: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-ambient: cubic-bezier(0.45, 0, 0.55, 1);
  --duration-fast: 360ms;
  --duration-base: 420ms;
  --duration-hover: 480ms;
  --duration-slow: 600ms;
}

/* === Global foundation === */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

@media (min-width: 1025px) {
  html {
    font-size: 82%;
  }
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--ivory);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
  animation: page-fade-in 700ms var(--ease-motion) both;
}

/* Fade-in global da home ao carregar.
   Fade de opacidade puro (sem movimento) — mantido tambem em
   prefers-reduced-motion por nao causar desconforto vestibular. */
@keyframes page-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Form fields must stay selectable/editable. */
input,
textarea {
  -webkit-user-select: text;
  user-select: text;
}

/* Fixed grain layer: adds organic, tactile depth without repainting on scroll. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  opacity: 0.035;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1,
h2,
h3 {
  text-wrap: balance;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

input[type="checkbox"] {
  accent-color: var(--accent);
}

::selection {
  background: rgb(var(--accent-rgb) / 0.3);
  color: var(--ivory);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 11px 16px;
  background: var(--accent-soft);
  color: var(--background);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform var(--duration-fast) var(--ease-motion);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 4px;
}

/* === Header and navigation === */
.site-header {
  position: absolute;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  height: 72px;
  background: linear-gradient(
    to bottom,
    rgb(var(--background-rgb) / 0.96),
    rgb(var(--background-rgb) / 0)
  );
  transition: height 0.35s var(--ease-motion), background 0.35s ease,
    box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.is-stuck {
  position: fixed;
  height: 64px;
  background: rgb(var(--background-rgb) / 0.45);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 12px 30px -14px rgb(var(--black-rgb) / 0.4);
  animation: header-drop 0.45s var(--ease-motion);
}

@keyframes header-drop {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.header-inner {
  width: min(calc(100% - 72px), 1360px);
  height: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.wordmark {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.55vw, 1.55rem);
  line-height: 1;
  letter-spacing: -0.04em;
  text-decoration: none;
  transition: color var(--duration-hover) var(--ease-motion);
}

.wordmark-symbol {
  width: 28px;
  height: 28px;
  border: 1px solid rgb(var(--accent-rgb) / 0.28);
  border-radius: 50%;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  transition:
    border-color var(--duration-hover) var(--ease-motion),
    transform var(--duration-hover) var(--ease-motion);
}

.wordmark-symbol img {
  width: 22px;
  height: auto;
  display: block;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(28px, 3vw, 44px);
}

.desktop-nav a,
.mobile-nav a:not(.button) {
  position: relative;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color var(--duration-hover) var(--ease-motion);
}

.desktop-nav .nav-link::after {
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--duration-hover) var(--ease-motion);
}

.button {
  min-height: 56px;
  padding: 0 38px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--background-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    transform var(--duration-hover) var(--ease-motion),
    box-shadow var(--duration-hover) var(--ease-motion),
    background-color var(--duration-hover) var(--ease-motion),
    border-color var(--duration-hover) var(--ease-motion),
    color var(--duration-hover) var(--ease-motion);
}

.button-header {
  justify-self: end;
  position: relative;
  min-height: 44px;
  padding-inline: 22px 26px;
  border-color: rgb(var(--accent-rgb) / 0.52);
  border-radius: 10px;
  gap: 10px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.12), transparent 48%),
    linear-gradient(135deg, #d3b5a7, #e1cdc4);
  box-shadow:
    0 0 0 1px rgb(var(--accent-rgb) / 0.12),
    0 10px 22px rgb(var(--black-rgb) / 0.28),
    0 1px 0 rgb(255 255 255 / 0.22) inset;
  color: #111111;
  font-size: 10px;
  overflow: hidden;
}

.button-header::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 0 18%, rgb(255 255 255 / 0.22) 34%, transparent 52%);
  opacity: 0.18;
  pointer-events: none;
}

.button-header svg {
  position: relative;
  z-index: 1;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button-header span {
  position: relative;
  z-index: 1;
  font-weight: 800;
}

.menu-toggle,
.mobile-nav {
  display: none;
}

/* === Hero === */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  max-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 34%, var(--hero-glow), transparent 30%),
    linear-gradient(180deg, rgb(0 0 0 / 0.35), transparent 38%, rgb(0 0 0 / 0.28)),
    var(--section-hero);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -3;
  top: 18%;
  left: 50%;
  width: min(76vw, 1180px);
  height: min(76vw, 860px);
  pointer-events: none;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 52% 45%, rgb(var(--accent-soft-rgb) / 0.26) 0 2px, transparent 2.4px),
    radial-gradient(circle at 42% 58%, rgb(var(--accent-rgb) / 0.2) 0 1.4px, transparent 1.8px),
    radial-gradient(ellipse at 50% 46%, rgb(var(--accent-soft-rgb) / 0.24), transparent 58%),
    radial-gradient(ellipse at 48% 50%, rgb(var(--ivory-rgb) / 0.08), transparent 62%);
  background-size:
    72px 72px,
    46px 46px,
    auto,
    auto;
  filter: blur(0.2px);
  opacity: 0.9;
  mix-blend-mode: screen;
  mask-image: radial-gradient(ellipse at 50% 48%, black 0 45%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 48%, black 0 45%, transparent 72%);
}

/* Soft seam: hero settles into the deeper section background below. */
.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: auto 0 0 0;
  height: 140px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgb(var(--background-deep-rgb) / 0.55)
  );
  pointer-events: none;
}

.dots-pattern {
  position: absolute;
  z-index: -4;
  inset: -80px 0;
  opacity: var(--dot-layer-opacity);
  background-image: radial-gradient(var(--dot-color) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  transform: translate3d(0, var(--dots-parallax-y, 0), 0);
  will-change: transform;
  mask-image: linear-gradient(to bottom, transparent 6%, black 28%, black 88%, transparent);
}

.dots-canvas {
  position: absolute;
  z-index: -4;
  inset: -80px 0;
  width: 100%;
  height: calc(100% + 160px);
  display: none;
  color: var(--dot-color);
  opacity: var(--dot-layer-opacity);
  pointer-events: none;
  transform: translate3d(0, var(--dots-parallax-y, 0), 0);
  will-change: transform;
  mask-image: linear-gradient(to bottom, transparent 6%, black 28%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 6%,
    black 28%,
    black 88%,
    transparent
  );
}

.emblem-layer {
  position: absolute;
  z-index: -2;
  top: 56%;
  left: 53%;
  width: min(64vw, 940px);
  aspect-ratio: 1;
  pointer-events: none;
  transform: translate3d(
    -50%,
    calc(-50% + var(--flower-parallax-y, 0px)),
    0
  );
  will-change: transform;
}

.emblem-layer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.13;
  filter: blur(1px) saturate(0.68);
}

.emblem-layer picture {
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: center;
  animation: emblem-breathe 5.4s var(--ease-ambient) infinite;
  will-change: transform, opacity;
}

.hero-inner {
  width: min(calc(100% - 48px), 1280px);
  min-height: 100svh;
  max-height: 100svh;
  margin-inline: auto;
  padding: 86px 0 30px;
  position: relative;
  display: block;
}

.hero-copy {
  position: absolute;
  z-index: 7;
  bottom: clamp(28px, 5vh, 54px);
  top: auto;
  left: 50%;
  width: min(100%, 900px);
  padding-bottom: 0;
  text-align: center;
  transform: translateX(-50%);
}

/* Scrim de leitura: escurece a base do hero atrás do texto/CTA (contraste
   garantido sobre o retrato claro). Fica acima do retrato (z4), abaixo do
   texto (z7). */
.hero-inner::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100vw;
  height: 66%;
  transform: translateX(-50%);
  background: linear-gradient(
    to top,
    rgb(var(--background-rgb) / 0.94) 0%,
    rgb(var(--background-rgb) / 0.82) 26%,
    rgb(var(--background-rgb) / 0.5) 55%,
    rgb(var(--background-rgb) / 0) 100%
  );
  z-index: 6;
  pointer-events: none;
}

.identity {
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  line-height: 1;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(2.5rem, 3.2vw, 3.7rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.hero-copy h1 span {
  color: var(--accent-soft);
  font-style: italic;
}

.hero-copy h1 {
  white-space: nowrap;
}

.hero-copy h1 br {
  display: none;
}

.hero-message {
  display: grid;
  justify-items: center;
}

.hero-quote {
  margin: 0;
  color: var(--accent-soft);
  font-family: var(--serif);
  font-size: clamp(1.22rem, 1.45vw, 1.55rem);
  font-style: italic;
  letter-spacing: -0.025em;
  line-height: 1.28;
}

/* Subhead do hero: especialidade + localização (clareza em 3s + SEO local) */
.hero-subhead {
  margin: 14px 0 0;
  max-width: 44ch;
  color: rgb(var(--ivory-rgb) / 0.82);
  font-size: clamp(1rem, 1.05vw, 1.1rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.hero-subhead strong {
  color: var(--ivory);
  font-weight: 700;
}

/* ── CTA do hero: ponto de atenção dominante (CRO) ─────────────────────────
   Hierarquia: rosto > CTA primário > resto. Halo radial + glow pulsante,
   microinterações 200–300ms, Fitts (alvo grande), Hick (1 escolha óbvia). */
.hero-actions {
  position: relative;
  margin-top: clamp(22px, 3vh, 32px);
}

/* Halo radial atrás do cluster (profundidade + destaque, sem caixa dura) */
.hero-actions::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(560px, 130%);
  height: 260px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgb(var(--accent-rgb) / 0.2),
    rgb(var(--accent-rgb) / 0.06) 42%,
    transparent 70%
  );
  filter: blur(6px);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
  animation: cta-halo 3.6s ease-in-out infinite;
}

@keyframes cta-halo {
  0%, 100% { opacity: 0.72; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

.hero-cta-cluster {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 20px;
}

/* Primário: fill dourado sólido, sombra difusa flutuante, glow pulsante */
.hero-cta-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e1cdc4, #d3b5a7 55%, #b89689);
  color: #111111;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.18) inset,
    0 10px 24px -8px rgb(var(--accent-rgb) / 0.55),
    0 18px 50px -12px rgb(0 0 0 / 0.6);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  animation: cta-pulse 2.8s ease-in-out infinite;
}

/* Glow pulsante muito sutil no anel externo */
@keyframes cta-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgb(255 255 255 / 0.18) inset,
      0 0 0 0 rgb(var(--accent-rgb) / 0.34),
      0 10px 24px -8px rgb(var(--accent-rgb) / 0.5),
      0 18px 50px -12px rgb(0 0 0 / 0.6);
  }
  50% {
    box-shadow:
      0 0 0 1px rgb(255 255 255 / 0.22) inset,
      0 0 0 8px rgb(var(--accent-rgb) / 0),
      0 12px 30px -8px rgb(var(--accent-rgb) / 0.62),
      0 20px 56px -12px rgb(0 0 0 / 0.6);
  }
}

.hero-cta-primary svg {
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-cta-primary span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.hero-cta-primary small {
  margin-top: 2px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0.8;
}

/* Secundário: baixa intenção, discreto (Hick: não compete com o primário) */
.hero-cta-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid rgb(var(--accent-rgb) / 0.34);
  color: var(--accent-soft);
  font-size: 0.96rem;
  font-weight: 600;
  text-decoration: none;
  background: rgb(var(--background-rgb) / 0.28);
  backdrop-filter: blur(6px);
  transition: transform 0.22s ease, border-color 0.25s ease,
    color 0.25s ease, background-color 0.25s ease;
}

.hero-cta-secondary svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Microinterações */
@media (any-hover: hover) {
  .hero-cta-primary:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.05);
  }

  .hero-cta-secondary:hover {
    transform: translateY(-2px);
    border-color: rgb(var(--accent-rgb) / 0.6);
    color: var(--white);
    background: rgb(var(--accent-rgb) / 0.1);
  }
}

.hero-cta-primary:active {
  transform: scale(0.98);
}

.hero-cta-secondary:active {
  transform: scale(0.98);
}

.hero-cta-primary:focus-visible,
.hero-cta-secondary:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}

/* Gatilhos de confiança colados no CTA */
.hero-trust {
  position: relative;
  z-index: 1;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgb(var(--accent-rgb) / 0.18);
  background: rgb(var(--ivory-rgb) / 0.03);
  color: rgb(var(--ivory-rgb) / 0.78);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-trust li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgb(var(--accent-rgb) / 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .hero-actions::before,
  .hero-cta-primary {
    animation: none;
  }
  .hero-cta-primary,
  .hero-cta-secondary {
    transition: none;
  }
}

.text-link {
  padding-bottom: 4px;
  border-bottom: 1px solid rgb(var(--accent-rgb) / 0.45);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition:
    color var(--duration-hover) var(--ease-motion),
    border-color var(--duration-hover) var(--ease-motion);
}

.hero-visual {
  position: relative;
  width: min(100%, 980px);
  min-height: calc(100svh - 138px);
  margin-inline: auto;
  display: grid;
  place-items: start center;
  transform: none;
}

.orbital-grid {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(100%, 720px);
  height: min(100%, 720px);
  opacity: 0.12;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.orbital-grid circle,
.orbital-grid path {
  stroke: var(--accent);
  stroke-width: 0.7;
}

.orbital-grid circle {
  stroke-dasharray: 4 8;
}

.portrait-reveal {
  --portrait-offset: 72px;
  position: relative;
  z-index: 4;
  width: min(41vw, 640px, calc((100svh - 128px) * 0.804));
  align-self: start;
  overflow: visible;
  perspective: 1000px;
  transform: translateY(var(--portrait-offset));
}

.portrait-reveal.reveal {
  animation-name: portrait-reveal;
}

.portrait-wrap {
  position: relative;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  transform-origin: 50% 65%;
  transform-style: preserve-3d;
}

.portrait-wrap::before {
  content: "";
  position: absolute;
  z-index: -2;
  top: 9%;
  right: -10%;
  bottom: -2%;
  left: -10%;
  border-radius: 48% 52% 44% 56% / 40% 44% 56% 60%;
  background:
    radial-gradient(ellipse at 50% 42%, rgb(var(--accent-soft-rgb) / 0.24), transparent 58%),
    radial-gradient(ellipse at 45% 42%, rgb(var(--ivory-rgb) / 0.07), transparent 50%),
    radial-gradient(ellipse at 50% 78%, rgb(var(--black-rgb) / 0.54), transparent 68%);
  filter: blur(20px);
  opacity: 0.9;
}

.portrait-wrap::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 5% -5% 0;
  border-radius: 48% 52% 44% 56% / 40% 44% 56% 60%;
  background:
    linear-gradient(90deg, rgb(var(--accent-soft-rgb) / 0.11), transparent 18%, transparent 82%, rgb(var(--accent-soft-rgb) / 0.08)),
    linear-gradient(180deg, transparent 72%, rgb(var(--background-rgb) / 0.5) 96%);
  mix-blend-mode: screen;
  opacity: 0.48;
  pointer-events: none;
}

.portrait-wrap picture {
  display: block;
}

.portrait-glow {
  position: absolute;
  z-index: -1;
  right: -8%;
  bottom: 0;
  left: -8%;
  height: 56%;
  border-radius: 50%;
  background: var(--portrait-shadow);
  filter: blur(42px);
  transform: translate3d(
    var(--portrait-shadow-x, 0),
    var(--portrait-shadow-y, 0),
    0
  );
}

.portrait {
  width: 100%;
  height: auto;
  display: block;
  filter:
    saturate(0.9)
    contrast(1.01)
    drop-shadow(0 0 1px rgb(var(--accent-soft-rgb) / 0.36))
    drop-shadow(0 24px 42px rgb(0 0 0 / 0.46));
  mask-image:
    linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%),
    linear-gradient(to bottom, black 0%, black 74%, transparent 95%);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%),
    linear-gradient(to bottom, black 0%, black 74%, transparent 95%);
  -webkit-mask-composite: source-in;
  pointer-events: none;
}

.floating-card {
  position: absolute;
  z-index: 8;
  margin: 0;
  border: 1px solid rgb(var(--accent-rgb) / 0.34);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgb(var(--background-deep-rgb) / 0.82);
  box-shadow:
    0 1px 0 rgb(var(--accent-rgb) / 0.08) inset,
    0 0 0 1px rgb(var(--accent-rgb) / 0.04),
    0 22px 48px rgb(var(--black-rgb) / 0.42);
  backdrop-filter: blur(20px);
  color: var(--accent);
  animation: card-drift 7s var(--ease-ambient) infinite;
  transition:
    border-color var(--duration-hover) var(--ease-motion),
    box-shadow var(--duration-hover) var(--ease-motion),
    background-color var(--duration-hover) var(--ease-motion),
    color var(--duration-hover) var(--ease-motion),
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-card p {
  margin: 0;
  color: rgb(var(--ivory-rgb) / 0.92);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.42;
  transition: color var(--duration-hover) var(--ease-motion), text-shadow var(--duration-hover) var(--ease-motion);
}

.floating-card svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  background: rgb(var(--accent-rgb) / 0.12);
  transition: background-color var(--duration-hover) var(--ease-motion);
}

.card-icon svg {
  width: 23px;
  height: 23px;
}

.card-focus {
  top: 44%;
  /* Never bleed past the viewport: clamp against the visual's left overhang. */
  left: max(-12%, calc((100% - 100vw) / 2 + 18px));
  width: 260px;
  min-height: 86px;
  padding: 18px 24px;
  animation-delay: -2.1s;
}

.card-focus p {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-credential {
  top: 22%;
  left: max(1%, calc((100% - 100vw) / 2 + 120px));
  right: auto;
  width: 240px;
  min-height: 88px;
  padding: 18px 22px;
  animation-delay: -4.5s;
}

.card-location {
  top: 42%;
  right: max(-10%, calc((100% - 100vw) / 2 + 48px));
  width: 260px;
  min-height: 96px;
  padding: 18px 22px;
  animation-delay: -1.2s;
}

.card-online {
  top: 69%;
  right: max(-10%, calc((100% - 100vw) / 2 + 36px));
  width: 268px;
  min-height: 94px;
  padding: 18px 22px;
  animation-delay: -3.2s;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  [data-tilt="portrait"],
  [data-tilt="about"],
  [data-tilt="about"] img,
  .portrait-glow {
    transition: transform 100ms ease-out, filter 100ms ease-out;
    will-change: transform;
  }

  .portrait-wrap.is-returning,
  .portrait-wrap.is-returning .portrait-glow,
  .about-portrait-frame.is-returning,
  .about-portrait-frame.is-returning img {
    transition-duration: 500ms;
    transition-timing-function: ease;
  }
}

/* === Content sections === */
.content-section {
  position: relative;
  min-height: auto;
  max-height: none;
  display: flex;
  align-items: center;
  overflow: clip;
  border-top: 1px solid rgb(var(--white-rgb) / 0.07);
  background: var(--section-about);
}

.section-inner {
  width: min(calc(100% - 48px), 1240px);
  margin-inline: auto;
  padding: clamp(42px, 6vh, 70px) 0;
}

.about-section {
  overflow: clip;
}

/* About runs edge-to-edge: lede + photo group hugs the left, facet column
   hugs the right. Wider than the standard centered container. */
#sobre.about-section .section-inner {
  width: min(calc(100% - 64px), 1600px);
}

/* Capped section: the default 5svh padding would eat into the content box
   on tall screens and clip the closing line. */
@media (min-width: 941px) {
  #sobre.about-section .section-inner {
    padding: clamp(24px, 4svh, 56px) 0;
  }
}

/* Content here tops out near 690px, so a plain 100svh leaves the section
   stretching into dead space on tall displays. Cap it and drive every
   inner full-height rule from the same token. */
/* Desktop only: below 940px the layout stacks and the section is allowed to
   grow past the viewport, so the cap must not apply there. */
@media (min-width: 941px) {
  #sobre.about-section {
    --about-h: min(100svh, 960px);
    --about-pad: clamp(24px, 4svh, 56px);
    min-height: var(--about-h);
    max-height: var(--about-h);
  }

  #sobre .about-layout .about-portrait,
  #sobre .about-facets {
    min-height: calc(var(--about-h) - 2 * var(--about-pad));
  }
}

.about-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.about-glow {
  position: absolute;
  top: 6%;
  left: 42%;
  width: 46%;
  height: 74%;
  background: radial-gradient(
    ellipse 58% 54% at 50% 40%,
    rgb(var(--accent-rgb) / 0.16),
    transparent 66%
  );
  filter: blur(48px);
  opacity: 0;
  transition: opacity 1900ms var(--ease-motion) 200ms;
}

.reveal-section.is-visible .about-glow {
  opacity: 1;
}

/* Large botanical fan spraying behind the portrait, echoing the reference. */
.about-foliage {
  display: none;
  position: absolute;
  left: clamp(0px, 2.93vw, 70px);
  top: clamp(-80px, -2.73vw, 20px);
  width: clamp(560px, 64vw, 980px);
  color: rgb(var(--accent-rgb) / 0.34);
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 2200ms var(--ease-motion) 220ms,
    transform 2200ms var(--ease-motion) 220ms;
}

.reveal-section.is-visible .about-foliage {
  opacity: 0;
  transform: none;
}

/* Faint botanical branch anchoring the lower-left corner. */
.about-branch {
  display: none;
  position: absolute;
  left: clamp(-40px, -1vw, 0px);
  bottom: 0;
  width: clamp(160px, 15vw, 250px);
  color: rgb(var(--accent-rgb) / 0.16);
  opacity: 0;
  transition: opacity 2000ms var(--ease-motion) 260ms;
}

.reveal-section.is-visible .about-branch {
  opacity: 1;
}

/* Right-column botanical layer — cropped fronds kept as faint atmosphere. */
.about-foliage2 {
  display: none;
  position: absolute;
  top: 0;
  right: -2%;
  width: clamp(220px, 22vw, 360px);
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 2400ms var(--ease-motion) 320ms,
    transform 2400ms var(--ease-motion) 320ms;
}

.reveal-section.is-visible .about-foliage2 {
  opacity: 1;
  transform: none;
}

/* Depth tiers: background barely-there, mid layer sits behind the cards. */
.about-foliage2 .flora-bg {
  opacity: 0.045;
}

.about-foliage2 .flora-mid {
  display: none;
}

/* Sits in the gutter between the portrait and the facet column — at 48% it
   ran behind the mission copy instead of dividing the two halves. */
.about-seam {
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 48%;
  width: clamp(30px, 2.6vw, 48px);
  height: 100%;
}

.about-seam-line {
  stroke: rgb(var(--accent-rgb) / 0.42);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2400ms var(--ease-motion) 320ms;
}

.reveal-section.is-visible .about-seam-line {
  stroke-dashoffset: 0;
}

.about-layout {
  position: relative;
  z-index: 1;
  display: grid;
  /* Even split: the media cell now carries a 24rem lede *and* the portrait
     side by side, so it can no longer be the narrower of the two. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "media facets";
  gap: clamp(14px, 2.4svh, 32px) clamp(44px, 5vw, 96px);
  align-items: center;
}

/* Lede and portrait share the left cell: photo nearly section-height,
   support text layered on top of it, top-left. */
/* justify-self: start makes this shrink-to-fit, so the column width was
   really being set by the intro's measure. Pin it instead. */
.about-layout .about-lede {
  grid-area: media;
  z-index: 2;
  align-self: stretch;
  justify-self: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 25rem);
  max-width: 25rem;
  min-height: calc(var(--about-h) - 2 * clamp(24px, 5svh, 96px));
  padding: clamp(22px, 4svh, 48px) 22px clamp(30px, 5svh, 58px) 0;
}

.about-layout .about-portrait {
  grid-area: media;
  z-index: 1;
  align-self: stretch;
  justify-content: flex-start;
  min-height: calc(100svh - 2 * clamp(24px, 5svh, 96px));
}

/* Photo grouped on the left with the lede: pulled to the viewport left edge
   and enlarged, kept clear of the right facet column. */
/* Sized from the section height (80%) rather than the cell width; aspect-ratio
   derives the width. Anchored right so it grows into the cell and keeps the
   gutter to the facet column intact. */
.about-layout .about-portrait-frame {
  width: auto;
  height: calc(var(--about-h) * 0.84);
  max-height: 100%;
  margin-left: auto;
  margin-right: 0;
}

.about-layout .about-facets {
  grid-area: facets;
  width: min(100%, 48rem);
  max-width: 48rem;
  margin-inline: clamp(14px, 1.6vw, 34px) auto;
}

.about-lede {
  position: relative;
  z-index: 2;
  max-width: 31rem;
}

.about-title {
  margin: clamp(38px, 6svh, 76px) 0 0;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(2.75rem, 3.65vw, 4.25rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.about-title em {
  color: var(--accent-soft);
  font-style: italic;
}

/* Hairline trailing the eyebrow, matching the right column's rule. */
.section-kicker--rule {
  display: flex;
  align-items: center;
  gap: 18px;
}

.section-kicker--rule::after {
  content: "";
  flex: 0 1 clamp(48px, 6vw, 92px);
  height: 1px;
  background: linear-gradient(
    90deg,
    rgb(var(--accent-rgb) / 0.5),
    transparent
  );
}

/* Small leaf sprig used as a quiet divider between title and support text. */
.about-sprig {
  display: block;
  margin: clamp(16px, 2vh, 22px) 0 0;
  width: clamp(104px, 10vw, 138px);
  color: rgb(var(--accent-rgb) / 0.55);
}

.about-sprig svg {
  display: block;
  width: 100%;
  height: auto;
}

.about-sprig--end {
  margin: clamp(8px, 1vh, 12px) auto 0;
  width: clamp(74px, 7vw, 96px);
}

.about-intro {
  margin: clamp(30px, 4svh, 48px) 0 0;
  max-width: 34ch;
  color: rgb(var(--ivory-rgb) / 0.7);
  font-size: clamp(0.98rem, 1.02vw, 1.08rem);
  line-height: 1.68;
}

.about-intro strong {
  color: var(--ivory);
  font-weight: 500;
}

.about-script {
  margin: clamp(34px, 5svh, 62px) 0 0;
  color: var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 1.9vw, 2.05rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.about-sign {
  margin: clamp(42px, 6svh, 72px) 0 0;
  padding-top: 0;
}

.about-sign figcaption {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-sign-name {
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(1.28rem, 1.25vw, 1.48rem);
  letter-spacing: -0.02em;
}

.about-sign-role {
  color: var(--accent-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.about-portrait {
  position: relative;
  min-height: clamp(300px, 46svh, 520px);
  perspective: 1100px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.about-portrait-glow {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 10%;
  width: 82%;
  height: 60%;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at 50% 40%,
    rgb(var(--accent-rgb) / 0.22),
    transparent 66%
  );
  filter: blur(32px);
}

.about-portrait-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1122 / 1402;
  max-height: 100%;
  transform-origin: 50% 68%;
  transform-style: preserve-3d;
}

.about-portrait-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
}

.about-portrait-fade {
  position: absolute;
  z-index: 2;
  inset: auto 0 0 0;
  height: 24%;
  /* Must fade into the section's own background: --background-deep is darker
     than --section-about, which painted a visible dark block behind the photo. */
  background: linear-gradient(to top, var(--section-about), transparent);
  pointer-events: none;
}

.section-kicker {
  margin: 0 0 24px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(2.9rem, 4.5vw, 4.4rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.section-heading h2 em {
  color: var(--accent-soft);
  font-weight: 400;
}

.about-facets {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(28px, 4.2vh, 56px);
  max-width: 48rem;
  min-height: calc(100svh - 2 * clamp(24px, 5svh, 96px));
}

/* Mission copy opening the right column. */
.about-mission {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: min(100%, 42rem);
  text-align: left;
}

.about-mission p {
  margin: 0;
  max-width: 42ch;
  color: rgb(var(--ivory-rgb) / 0.82);
  font-size: clamp(1.02rem, 1.12vw, 1.18rem);
  line-height: 1.52;
  text-wrap: pretty;
}

.about-mission p:first-child {
  max-width: 36ch;
  color: rgb(var(--ivory-rgb) / 0.9);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.7vw, 1.85rem);
  line-height: 1.26;
  letter-spacing: -0.02em;
}

/* Gold-clipped keyword highlight — static, editorial emphasis. */
.gold-word {
  background: var(--gold-lux);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  font-family: var(--serif);
}

.about-mission p + p {
  margin-top: clamp(18px, 2.6vh, 28px);
}

/* Centred leaf flanked by hairlines, splitting mission copy from the pillars. */
.about-rule {
  display: flex;
  align-items: center;
  gap: 18px;
  /* Asymmetric on purpose: the leaf closes the mission block, so it sits
     near it and holds a wider gap before the pillars. */
  width: min(100%, 42rem);
  margin: clamp(4px, 0.8vh, 10px) 0 clamp(20px, 2.6vh, 30px);
  color: rgb(var(--accent-rgb) / 0.62);
}

.about-rule::before,
.about-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgb(184 165 140 / 0.28) 55%,
    rgb(209 197 183 / 0.44)
  );
}

.about-rule::after {
  background: linear-gradient(
    270deg,
    transparent,
    rgb(184 165 140 / 0.28) 55%,
    rgb(209 197 183 / 0.44)
  );
}

.about-rule svg {
  width: 22px;
  height: 22px;
  flex: none;
  filter: drop-shadow(0 0 6px rgb(209 197 183 / 0.18));
}

.facet-list {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 0.9vw, 16px);
}

/* Ambient light source behind the card group, pooled toward center-right. */
.facet-list::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -14% -8% -20%;
  background: radial-gradient(
    ellipse at 66% 34%,
    rgb(209 197 183 / 0.035),
    transparent 62%
  );
  pointer-events: none;
}

/* Invisible structural grid: 1px vertical guides at the column seams,
   faded top and bottom so they organize without reading as lines. */
.facet-list::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 6% 0;
  background:
    linear-gradient(rgb(var(--accent-rgb) / 0.1), transparent) 33.33% 0 / 1px 100% no-repeat,
    linear-gradient(rgb(var(--accent-rgb) / 0.1), transparent) 66.66% 0 / 1px 100% no-repeat;
  -webkit-mask-image: linear-gradient(transparent, black 18%, black 82%, transparent);
  mask-image: linear-gradient(transparent, black 18%, black 82%, transparent);
  pointer-events: none;
}

.facet {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(16px, 1.8vh, 24px);
  min-height: clamp(286px, 32svh, 350px);
  justify-content: center;
  padding: clamp(32px, 4vh, 52px) clamp(14px, 1.4vw, 22px);
  border: 1px solid rgb(var(--accent-rgb) / 0.16);
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    rgb(var(--ivory-rgb) / 0.05),
    rgb(var(--ivory-rgb) / 0.008)
  );
  box-shadow:
    0 1px 0 rgb(var(--ivory-rgb) / 0.06) inset,
    0 -18px 30px -24px rgb(var(--black-rgb) / 0.6) inset,
    0 24px 46px -26px rgb(var(--black-rgb) / 0.55);
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 900ms var(--ease-motion),
    transform 900ms var(--ease-motion),
    border-color 320ms var(--ease-motion),
    background-color 320ms var(--ease-motion),
    box-shadow 320ms var(--ease-motion);
  transition-delay: calc(220ms + var(--fi, 0) * 110ms);
}

/* Soft top accent line on each pillar card. */
.facet::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: clamp(28px, 40%, 72px);
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    rgb(184 165 140 / 0.38),
    transparent
  );
  transition: width 320ms var(--ease-motion), opacity 320ms var(--ease-motion);
}

/* Static radial glow pooled behind each card — pure depth, no motion. */
.facet::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(
    ellipse at 50% 22%,
    rgb(184 165 140 / 0.045),
    transparent 68%
  );
  opacity: 0.9;
  transition: opacity 320ms var(--ease-motion), background 320ms var(--ease-motion);
  pointer-events: none;
}

.facet-icon {
  position: relative;
  width: clamp(62px, 5vw, 76px);
  height: clamp(62px, 5vw, 76px);
  display: grid;
  place-items: center;
  border: 1px solid rgb(184 165 140 / 0.32);
  border-radius: 50%;
  color: var(--accent);
  background: radial-gradient(
    circle at 50% 34%,
    rgb(var(--accent-rgb) / 0.12),
    rgb(var(--accent-rgb) / 0.02) 62%,
    transparent 78%
  );
  /* Inner secondary ring, set in from the outer gold border. */
  box-shadow:
    inset 0 0 0 5px transparent,
    inset 0 0 0 6px rgb(209 197 183 / 0.1),
    0 6px 18px -8px rgb(var(--black-rgb) / 0.5);
  transition:
    color 320ms var(--ease-motion),
    border-color 320ms var(--ease-motion),
    background 320ms var(--ease-motion),
    box-shadow 320ms var(--ease-motion),
    transform 320ms var(--ease-motion);
}

/* Twin dots on the circle's axis, echoing the section's botanical trim. */
.facet-icon::before,
.facet-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

.facet-icon::before {
  left: -3px;
}

.facet-icon::after {
  right: -3px;
}

.facet-icon svg {
  width: 46%;
  height: 46%;
  transition: transform 320ms var(--ease-motion);
}

.facet-title {
  margin: 0 0 12px;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(1.18rem, 1.35vw, 1.42rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.015em;
  transition: color 320ms var(--ease-motion), text-shadow 320ms var(--ease-motion);
}

.facet-body p {
  margin: 0 auto;
  max-width: 28ch;
  color: rgb(var(--ivory-rgb) / 0.68);
  font-size: clamp(0.88rem, 0.95vw, 0.97rem);
  line-height: 1.6;
  text-wrap: pretty;
  transition: color 320ms var(--ease-motion);
}

.facet-body em {
  color: var(--ivory);
  font-style: italic;
  font-family: var(--serif);
}

/* Closing pledge: gold rule on the left, oversized quote glyph outside it. */
.about-closing {
  position: relative;
  margin: clamp(34px, 4.6vh, 60px) 0 0;
  padding: clamp(4px, 0.6vh, 8px) 0 clamp(4px, 0.6vh, 8px)
    clamp(56px, 5vw, 74px);
  border: 0;
  border-left: 1px solid rgb(var(--accent-rgb) / 0.42);
  border-radius: 0;
  background: none;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 900ms var(--ease-motion),
    transform 900ms var(--ease-motion);
  transition-delay: calc(220ms + 4 * 110ms);
}

.about-closing::before {
  content: "\201C";
  position: absolute;
  top: -0.18em;
  left: clamp(-50px, -3.4vw, -32px);
  background: var(--gold-lux);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--serif);
  font-size: clamp(3.6rem, 4.6vw, 5rem);
  line-height: 1;
  opacity: 0.85;
}

.about-closing p {
  margin: 0;
  padding-left: 0;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.75vw, 1.85rem);
  font-style: italic;
  line-height: 1.42;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.about-closing em {
  background: var(--gold-lux);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}

/* Left rule of the closing quote: gradient instead of a flat hairline. */
.about-closing {
  border-left-color: transparent;
  background-image: linear-gradient(
    180deg,
    transparent,
    rgb(184 165 140 / 0.32) 20%,
    rgb(209 197 183 / 0.28) 50%,
    rgb(155 141 124 / 0.22) 80%,
    transparent
  );
  background-repeat: no-repeat;
  background-size: 1px 100%;
  background-position: 0 0;
}

.reveal-section.is-visible .facet,
.reveal-section.is-visible .about-closing {
  opacity: 1;
  transform: none;
}

/* Tiny organic corner mark — carried on two cards only, kept whisper-faint. */
.facet-leaf {
  display: none;
  position: absolute;
  top: clamp(9px, 1.2vh, 15px);
  right: clamp(10px, 1vw, 16px);
  width: 26px;
  color: var(--accent);
  opacity: 0.16;
  pointer-events: none;
}

.facet-leaf svg {
  width: 100%;
  height: auto;
  display: block;
}

.facet-leaf--flip {
  right: auto;
  left: clamp(10px, 1vw, 16px);
  transform: scaleX(-1);
}

/* Watermark botanical beside the closing quote — almost subliminal. */
.about-closing-flora {
  display: none;
  position: absolute;
  right: clamp(-6px, 1vw, 14px);
  bottom: clamp(-32px, -3vh, -16px);
  width: clamp(92px, 9vw, 128px);
  opacity: 0.14;
  pointer-events: none;
}

.about-closing-flora svg {
  width: 100%;
  height: auto;
  display: block;
}

.compact-heading {
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
}

.compact-heading .section-kicker {
  display: inline-flex;
  align-items: center;
}

.compact-heading h2 {
  font-size: clamp(2.2rem, 3.4vw, 3.1rem);
}

/* === Motion and ambient effects === */
.reveal {
  opacity: 0;
  animation: reveal 1600ms var(--ease-motion) forwards;
}

.reveal-2 {
  animation-delay: 120ms;
}

.reveal-3 {
  animation-delay: 240ms;
}

.reveal-5 {
  animation-delay: 400ms;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes emblem-breathe {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.985);
  }

  50% {
    opacity: 1;
    transform: scale(1.015);
  }
}

/* === Interactive states === */
@media (any-hover: hover) {
  .wordmark:hover,
  .wordmark:focus-visible {
    color: var(--accent-soft);
  }

  .wordmark:hover .wordmark-symbol,
  .wordmark:focus-visible .wordmark-symbol {
    border-color: rgb(var(--accent-soft-rgb) / 0.7);
    transform: rotate(24deg) scale(1.03);
  }

  .desktop-nav .nav-link:hover,
  .desktop-nav .nav-link:focus-visible,
  .mobile-nav a:not(.button):hover,
  .text-link:hover {
    color: var(--white);
  }

  .desktop-nav .nav-link:hover::after,
  .desktop-nav .nav-link:focus-visible::after {
    transform: scaleX(1);
  }

  .text-link:hover {
    border-color: var(--accent);
  }

  .text-link:focus-visible {
    color: var(--accent-soft);
    border-color: var(--accent);
  }

  .button:hover {
    border-color: var(--accent-soft);
    background-color: var(--accent-soft);
    box-shadow: 0 0 30px rgb(var(--accent-rgb) / 0.24);
    transform: translateY(-2px) scale(1.015);
  }

  .button-header:hover {
    border-color: rgb(var(--accent-soft-rgb) / 0.76);
    background:
      linear-gradient(180deg, rgb(255 255 255 / 0.16), transparent 46%),
      linear-gradient(135deg, #e4d2ca, #eddeda);
    box-shadow:
      0 0 0 1px rgb(var(--accent-rgb) / 0.16),
      0 13px 28px rgb(var(--black-rgb) / 0.34),
      0 0 16px rgb(var(--accent-rgb) / 0.14);
  }

  .floating-card:hover {
    border-color: rgb(var(--accent-rgb) / 0.5);
    background-color: rgb(var(--background-deep-rgb) / 0.94);
    box-shadow:
      0 1px 0 rgb(var(--accent-rgb) / 0.14) inset,
      0 22px 48px rgb(var(--black-rgb) / 0.44),
      0 0 24px rgb(var(--accent-rgb) / 0.1);
  }

  .floating-card:hover p {
    color: var(--white);
    text-shadow: 0 0 18px rgb(var(--white-rgb) / 0.18);
  }

  .floating-card:hover .card-icon {
    background: rgb(var(--accent-rgb) / 0.2);
  }

  /* Hide the fallback only after the canvas grid starts successfully. */
  .has-magnetic-dots .dots-pattern {
    display: none;
  }

  .has-magnetic-dots .dots-canvas {
    display: block;
  }
}

/* === Responsive layout === */
@media (max-width: 1120px) {
  .desktop-nav {
    gap: 22px;
  }

  .button-header {
    padding-inline: 24px;
  }

  .hero-inner {
    width: min(calc(100% - 48px), 1180px);
  }

  .hero-copy {
    top: auto;
    width: min(100%, 760px);
  }

  .portrait-reveal {
    width: min(52vw, 610px);
  }

  .card-focus {
    left: max(-6%, calc((100% - 100vw) / 2 + 20px));
    width: 252px;
  }

  .card-credential {
    left: max(3%, calc((100% - 100vw) / 2 + 58px));
    width: 238px;
  }

  .card-location {
    right: max(-5%, calc((100% - 100vw) / 2 + 18px));
    width: 252px;
  }

  .card-online {
    right: max(-5%, calc((100% - 100vw) / 2 + 24px));
    width: 260px;
  }
}

@keyframes portrait-reveal {
  from {
    opacity: 0;
    transform: translateY(calc(var(--portrait-offset) + 30px));
    filter: blur(16px);
  }

  to {
    opacity: 1;
    transform: translateY(var(--portrait-offset));
    filter: blur(0);
  }
}

@keyframes card-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -12px, 0);
  }
}

@media (max-width: 940px) {
  .site-header {
    height: 80px;
  }

  .header-inner {
    display: flex;
    justify-content: space-between;
  }

  .desktop-nav,
  .button-header {
    display: none;
  }

  .wordmark {
    font-size: 1.45rem;
  }

  .wordmark-symbol {
    width: 28px;
    height: 28px;
  }

  .wordmark-symbol img {
    width: 22px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    display: grid;
    place-content: center;
    gap: 7px;
    background: transparent;
  }

  .menu-toggle span {
    width: 26px;
    height: 1px;
    background: var(--ivory);
    transition: transform var(--duration-base) var(--ease-motion);
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .mobile-nav {
    position: absolute;
    top: 80px;
    right: 0;
    left: 0;
    padding: 24px;
    border-top: 1px solid rgb(var(--white-rgb) / 0.08);
    background: rgb(var(--background-deep-rgb) / 0.97);
    box-shadow: 0 22px 50px rgb(var(--black-rgb) / 0.28);
    backdrop-filter: blur(18px);
  }

  .mobile-nav:not([hidden]) {
    display: grid;
    gap: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition:
      opacity var(--duration-base) var(--ease-motion),
      transform var(--duration-base) var(--ease-motion);
  }

  .mobile-nav:not([hidden]).is-open {
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-nav a:not(.button) {
    padding: 15px 0;
  }

  .mobile-nav .button {
    margin-top: 14px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
    min-height: 760px;
    padding: 98px 0 52px;
    grid-template-columns: 1fr;
    display: block;
  }

  .hero-copy {
    position: absolute;
    top: auto;
    bottom: 48px;
    left: 50%;
    width: min(100%, 600px);
    margin-top: 0;
    transform: translateX(-50%);
  }

  .hero-copy h1 {
    white-space: normal;
  }

  .identity {
    margin-bottom: 20px;
  }

  h1 {
    font-size: clamp(2.75rem, 7.4vw, 4rem);
  }

  .hero-quote {
    font-size: clamp(1.2rem, 3.5vw, 1.55rem);
  }

  .hero-visual {
    width: 100%;
    min-height: 650px;
    transform: none;
  }

  .portrait-reveal {
    width: min(58vw, 460px);
    --portrait-offset: -10px;
  }

  .floating-card {
    display: none;
  }

  .emblem-layer {
    top: 46%;
    left: 50%;
    width: min(110vw, 800px);
    mask-image: linear-gradient(to bottom, black 0 58%, transparent 88%);
    -webkit-mask-image: linear-gradient(to bottom, black 0 58%, transparent 88%);
  }

  .content-section {
    min-height: auto;
    max-height: none;
  }

  .section-inner {
    padding: 90px 0;
  }

  .locations-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    grid-template-areas: none;
    gap: clamp(40px, 6vh, 60px);
    justify-items: center;
    text-align: left;
    margin-right: 0;
  }

  .about-layout .about-lede,
  .about-layout .about-portrait,
  .about-layout .about-facets {
    grid-area: auto;
  }

  .about-layout .about-portrait {
    align-self: auto;
  }

  .about-layout .about-portrait-frame {
    width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
  }

  .about-facets {
    min-height: 0;
  }

  .facet-list {
    flex: none;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  /* Stacked pillars: dividers flip from vertical to horizontal. */
  .facet {
    padding: clamp(20px, 3vh, 28px) 0;
  }

  .facet::before {
    top: 0;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 1px;
    background: linear-gradient(
      90deg,
      rgb(var(--accent-rgb) / 0.42),
      rgb(var(--accent-rgb) / 0.12) 46%,
      transparent 84%
    );
  }

  .about-lede {
    order: 1;
    max-width: 640px;
    width: 100%;
  }

  .about-portrait {
    order: 2;
    width: min(100%, 440px);
    min-height: 540px;
    margin-inline: auto;
  }

  .about-facets {
    order: 3;
    max-width: 640px;
    width: 100%;
  }

  .about-seam {
    display: none;
  }

  .about-glow {
    left: 50%;
    width: 70%;
    transform: translateX(-50%);
  }

  .focus-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .focus-list li:nth-child(2) {
    border-right: 0;
  }

  .focus-list li:nth-child(n + 3) {
    border-top-color: rgb(var(--accent-rgb) / 0.1);
  }
}

@media (max-width: 620px) {
  .header-inner,
  .hero-inner {
    width: calc(100% - 36px);
  }

  .hero-inner {
    min-height: 700px;
    padding-top: 96px;
    padding-bottom: 44px;
  }

  .hero-copy {
    top: auto;
    bottom: 40px;
    width: min(100%, 360px);
    margin-top: 0;
  }

  .identity {
    margin-bottom: 18px;
  }

  .eyebrow {
    margin-bottom: 16px;
    font-size: 9px;
  }

  h1 {
    font-size: clamp(2.45rem, 11.4vw, 3.35rem);
  }

  .hero-quote {
    font-size: clamp(1.1rem, 5vw, 1.35rem);
  }

  .desktop-break {
    display: none;
  }

  .button {
    width: 100%;
  }

  .text-link {
    align-self: center;
  }

  .hero-visual {
    min-height: 600px;
    margin-inline: -18px;
  }

  .portrait-reveal {
    width: min(88%, 340px);
    --portrait-offset: -18px;
  }

  .section-inner {
    width: calc(100% - 36px);
    padding: 72px 0;
  }

  .section-heading h2 {
    font-size: clamp(2.55rem, 12vw, 3.4rem);
  }

  .about-title {
    font-size: clamp(2.5rem, 11vw, 3.2rem);
  }

  .about-portrait {
    width: min(100%, 380px);
    min-height: 460px;
  }

  .facet-body p {
    font-size: 0.96rem;
  }

  .facet-icon {
    width: 56px;
    height: 56px;
  }

  .about-closing {
    padding-left: 34px;
  }

  .about-closing::before {
    left: -20px;
    font-size: 2.6rem;
  }

  .focus-list {
    margin-top: 52px;
    grid-template-columns: 1fr;
  }

  .focus-list li,
  .focus-list li:nth-child(2) {
    min-height: 104px;
    padding-inline: 6px;
    border-right: 0;
  }

  .location-card {
    padding: 28px 24px;
  }
}

/* === Accessibility preferences === */
@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-hover: 240ms;
  }

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  /* Fade-in da home: opacidade pura, sem movimento — preservado mesmo
     em prefers-reduced-motion (nao dispara desconforto vestibular). */
  body {
    animation: page-fade-in 700ms var(--ease-motion) both !important;
  }

  .skip-link,
  .menu-toggle span,
  .mobile-nav:not([hidden]) {
    transition-duration: 0.01ms !important;
  }

  .portrait-wrap,
  .portrait-glow,
  .about-portrait-frame,
  .about-portrait-frame img {
    transform: none !important;
    transition: none !important;
  }

  .facet,
  .about-closing {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .about-seam-line {
    stroke-dashoffset: 0 !important;
  }

  .wordmark:hover .wordmark-symbol,
  .wordmark:focus-visible .wordmark-symbol,
  .button:hover {
    transform: none;
  }

}

/* === Short-viewport compression: keeps capped sections within 100svh === */
@media (min-width: 1025px) and (max-height: 900px) {
  .section-inner {
    padding: clamp(18px, 2.6svh, 48px) 0;
  }

  .section-heading h2 {
    font-size: clamp(2.1rem, 4.8svh, 2.75rem);
    line-height: 1;
  }

}

/* About section runs a stacked right column (lede + facets), so it needs
   compression over a wider height range than the other sections. */
@media (min-width: 1025px) and (max-height: 1220px) {
  .facet {
    gap: clamp(12px, 1.8svh, 18px);
  }

  .facet-title {
    margin: 0 0 10px;
    font-size: 1.42rem;
  }

  .facet-body p {
    font-size: 1.02rem;
    line-height: 1.55;
  }

  .facet-icon {
    width: 74px;
    height: 74px;
  }

  .about-mission p {
    font-size: clamp(1.15rem, 1.7svh, 1.5rem);
    line-height: 1.5;
  }

  .about-mission p + p {
    margin-top: clamp(14px, 2.2svh, 24px);
  }

  .about-rule {
    margin: clamp(8px, 1.2svh, 14px) 0 clamp(22px, 3svh, 32px);
  }

  .about-sprig {
    margin-top: clamp(12px, 1.8svh, 20px);
  }

  .about-title {
    font-size: clamp(2.2rem, 5svh, 3.1rem);
  }

  .about-intro {
    margin-top: clamp(14px, 2svh, 28px);
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .about-script {
    margin-top: clamp(12px, 1.8svh, 24px);
    font-size: clamp(1.3rem, 2.4svh, 1.7rem);
  }

  .about-sign {
    margin-top: clamp(16px, 2.4svh, 32px);
    padding-top: 14px;
  }

  .about-portrait {
    min-height: clamp(320px, 50svh, 560px);
  }

  .about-closing {
    margin-top: clamp(26px, 4.2svh, 44px);
  }

  .about-closing p {
    font-size: clamp(1.15rem, 3svh, 1.6rem);
    line-height: 1.4;
  }
}

/* Very short viewports: tighten the about column one step further… */
@media (min-width: 1025px) and (max-height: 800px) {
  .about-layout {
    row-gap: 12px;
  }

  .facet {
    gap: 12px;
    padding: clamp(18px, 2.6svh, 30px) clamp(10px, 1vw, 16px);
  }

  .facet-icon {
    width: 66px;
    height: 66px;
  }

  .facet-title {
    margin: 0 0 8px;
    font-size: 1.3rem;
  }

  .facet-body p {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .about-mission p {
    font-size: clamp(1.05rem, 1.6svh, 1.35rem);
    line-height: 1.5;
  }

  .about-rule {
    margin: 10px 0 28px;
  }

  .about-sprig {
    margin-top: 10px;
  }

  .about-sprig--end {
    margin-top: 8px;
  }

  .about-title {
    font-size: clamp(2rem, 4.6svh, 2.6rem);
  }

  .about-intro {
    margin-top: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .about-script {
    margin-top: 10px;
    font-size: 1.25rem;
  }

  .about-sign {
    margin-top: 14px;
    padding-top: 12px;
  }

  .about-sign-name {
    font-size: 1.15rem;
  }

  .about-closing {
    margin-top: 32px;
  }

  .about-closing p {
    font-size: 1.2rem;
    line-height: 1.36;
  }

  .about-closing::before {
    font-size: 2.6rem;
  }
}

/* …and below 750px there is no honest fit for half-width portrait + full
   text: let the section grow past the viewport instead of clipping copy. */
@media (min-width: 1025px) and (max-height: 750px) {
  #sobre {
    max-height: none;
  }
}

/* Narrow-desktop tier: columns wrap more, compress further */
@media (min-width: 1025px) and (max-width: 1200px) and (max-height: 900px) {
  .facet {
    padding: clamp(16px, 2.2svh, 26px) clamp(10px, 1.2vw, 18px);
  }

  .facet-icon {
    width: 48px;
    height: 48px;
  }

  .about-layout {
    gap: clamp(16px, 2vw, 32px);
  }

  .about-closing {
    margin-top: 14px;
    padding-left: clamp(42px, 4vw, 56px);
  }

  .about-closing::before {
    font-size: 2.5rem;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   PREMIUM HOVER INTERACTIONS
   Subtle, gold-accented micro-interactions. Extends existing classes only.
   Curve: cubic-bezier(0.4, 0, 0.2, 1) · duration 0.3–0.5s · transform+opacity.
   ════════════════════════════════════════════════════════════════════════ */

/* Shared easing token for the interaction system */
:root {
  --ease-premium: cubic-bezier(0.4, 0, 0.2, 1);
}

/* — Base additions (pseudo-elements + transitions) — */

/* Card icon: relative host for the soft circular glow */
.card-icon {
  position: relative;
}

.card-icon::before {
  content: "";
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgb(var(--accent-rgb) / 0.4),
    transparent 70%
  );
  filter: blur(8px);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s var(--ease-premium),
    transform 0.4s var(--ease-premium);
  pointer-events: none;
  z-index: 0;
}

.card-icon svg {
  position: relative;
  z-index: 1;
  transition: transform 0.4s var(--ease-premium);
}

/* Card gradient overlay + center-out bottom line */
.floating-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(transparent, rgb(var(--accent-rgb) / 0.05));
  opacity: 0;
  transition: opacity 0.4s var(--ease-premium);
  pointer-events: none;
}

.floating-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold-lux-soft);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s var(--ease-premium);
  pointer-events: none;
  z-index: 1;
}

/* Wordmark: animated underline under the name text only */
.wordmark span:last-child {
  position: relative;
}

.wordmark span:last-child::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-premium);
}

/* Emphasised gold italic phrases */
.about-title em,
.section-heading h2 em,
.about-closing em,
.facet-body em {
  transition: text-shadow 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Closing quote block + quotation mark */
.about-closing p {
  transition: transform 0.4s var(--ease-premium),
    color 0.4s var(--ease-premium);
}

.about-closing::before {
  transition: transform 0.4s var(--ease-premium),
    opacity 0.4s var(--ease-premium);
}

/* Decorative leaves: gentle parallax lift + brighten on section hover */
.facet-leaf svg,
.about-sprig svg {
  transition: transform 0.45s var(--ease-premium),
    opacity 0.45s var(--ease-premium);
}

/* Dividers: hairlines draw from the centre leaf outward on scroll-in */
.about-rule::before,
.about-rule::after {
  transform: scaleX(0);
  transition: transform 0.5s var(--ease-premium);
}

.about-rule::before {
  transform-origin: right;
}

.about-rule::after {
  transform-origin: left;
}

.about-section.is-visible .about-rule::before,
.about-section.is-visible .about-rule::after {
  transform: scaleX(1);
}

/* — Hover states (pointer devices only) — */
@media (any-hover: hover) {
  .facet:hover {
    transform: translateY(-8px);
    border-color: rgb(var(--accent-rgb) / 0.36);
    background: linear-gradient(
      180deg,
      rgb(var(--ivory-rgb) / 0.07),
      rgb(var(--accent-rgb) / 0.035)
    );
    box-shadow:
      0 1px 0 rgb(var(--ivory-rgb) / 0.09) inset,
      0 18px 38px -22px rgb(var(--accent-rgb) / 0.22),
      0 28px 58px -28px rgb(var(--black-rgb) / 0.72);
  }

  .facet:hover::before {
    width: clamp(52px, 58%, 112px);
    opacity: 1;
  }

  .facet:hover::after {
    opacity: 1;
    background: radial-gradient(
      ellipse at 50% 20%,
      rgb(209 197 183 / 0.08),
      transparent 66%
    );
  }

  .facet:hover .facet-icon {
    color: var(--accent-soft);
    border-color: rgb(209 197 183 / 0.38);
    background: radial-gradient(
      circle at 50% 34%,
      rgb(var(--accent-rgb) / 0.2),
      rgb(var(--accent-rgb) / 0.045) 64%,
      transparent 78%
    );
    box-shadow:
      inset 0 0 0 5px transparent,
      inset 0 0 0 6px rgb(209 197 183 / 0.12),
      0 10px 24px -12px rgb(var(--accent-rgb) / 0.5);
    transform: translateY(-2px);
  }

  .facet:hover .facet-icon svg {
    transform: scale(1.08);
  }

  .facet:hover .facet-title {
    color: var(--white);
    text-shadow: 0 0 18px rgb(var(--accent-rgb) / 0.16);
  }

  .facet:hover .facet-body p {
    color: rgb(var(--ivory-rgb) / 0.8);
  }

  /* Feature cards: lift, glow, border, overlay, icon, bottom line */
  .floating-card:hover {
    animation-play-state: paused;
    transform: translateY(-6px);
    border-color: rgb(var(--accent-rgb) / 0.55);
    box-shadow:
      0 1px 0 rgb(var(--accent-rgb) / 0.14) inset,
      0 10px 30px rgb(var(--accent-rgb) / 0.15),
      0 22px 48px rgb(var(--black-rgb) / 0.44);
  }

  .floating-card:hover::after {
    opacity: 1;
  }

  .floating-card:hover::before {
    transform: scaleX(1);
  }

  .floating-card:hover .card-icon {
    background: rgb(var(--accent-rgb) / 0.2);
  }

  .floating-card:hover .card-icon::before {
    opacity: 1;
    transform: scale(1);
  }

  .floating-card:hover .card-icon svg {
    transform: scale(1.05) rotate(2deg);
  }

  /* Doctor name underline */
  .wordmark:hover span:last-child::after,
  .wordmark:focus-visible span:last-child::after {
    transform: scaleX(1);
  }

  /* Emphasised gold phrases */
  .about-title em:hover,
  .section-heading h2 em:hover,
  .about-closing em:hover,
  .facet-body em:hover {
    text-shadow: 0 0 8px rgb(var(--accent-rgb) / 0.25);
    opacity: 0.95;
  }

  /* Closing quote */
  .about-closing:hover p {
    transform: translateY(-2px);
    color: var(--white);
  }

  .about-closing:hover::before {
    transform: scale(1.05);
    opacity: 1;
  }

  /* Decorative leaves parallax on section hover */
  .about-section:hover .facet-leaf svg,
  .about-section:hover .about-sprig svg {
    transform: translateY(-2px);
    opacity: 0.9;
  }
}

/* — Accessibility: honour reduced-motion — */
@media (prefers-reduced-motion: reduce) {
  .floating-card,
  .floating-card::before,
  .floating-card::after,
  .card-icon::before,
  .card-icon svg,
  .wordmark span:last-child::after,
  .about-title em,
  .section-heading h2 em,
  .about-closing em,
  .about-closing p,
  .about-closing::before,
  .facet-leaf svg,
  .about-sprig svg,
  .about-rule::before,
  .about-rule::after {
    transition: none;
  }

  .floating-card:hover {
    transform: none;
  }

  .about-rule::before,
  .about-rule::after {
    transform: scaleX(1);
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   FLOATING SOCIAL DOCK — WhatsApp + Instagram, canto inferior direito
   ════════════════════════════════════════════════════════════════════════ */
.social-dock {
  position: fixed;
  right: clamp(16px, 2.4vw, 28px);
  bottom: clamp(16px, 2.4vw, 28px);
  z-index: 90;
  width: 54px;
  height: 54px;
}

.social-dock-toggle,
.social-dock-btn {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgb(var(--accent-rgb) / 0.32);
  background: rgb(var(--background-deep-rgb) / 0.82);
  color: var(--accent);
  backdrop-filter: blur(12px);
  box-shadow:
    0 1px 0 rgb(var(--accent-rgb) / 0.1) inset,
    0 10px 26px rgb(var(--black-rgb) / 0.42);
  transition:
    transform 0.4s var(--ease-premium),
    border-color 0.4s var(--ease-premium),
    box-shadow 0.4s var(--ease-premium),
    background-color 0.4s var(--ease-premium),
    opacity 0.28s var(--ease-premium);
}

.social-dock-toggle {
  position: relative;
  z-index: 2;
  cursor: pointer;
  list-style: none;
}

.social-dock-toggle::-webkit-details-marker {
  display: none;
}

.social-dock-toggle::marker {
  content: "";
}

.social-dock-btn {
  position: absolute;
  right: 0;
  bottom: 0;
  opacity: 0;
  pointer-events: none;
}

.social-dock-toggle svg,
.social-dock-btn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-dock[open] .social-dock-btn,
.social-dock:hover .social-dock-btn,
.social-dock:focus-within .social-dock-btn {
  opacity: 1;
  pointer-events: auto;
}

.social-dock[open] .social-dock-btn--whatsapp,
.social-dock:hover .social-dock-btn--whatsapp,
.social-dock:focus-within .social-dock-btn--whatsapp {
  transform: translateY(-64px);
}

.social-dock[open] .social-dock-btn--instagram,
.social-dock:hover .social-dock-btn--instagram,
.social-dock:focus-within .social-dock-btn--instagram {
  transform: translateY(-124px);
}

@media (any-hover: hover) {
  .social-dock-toggle:hover,
  .social-dock-toggle:focus-visible,
  .social-dock-btn:hover,
  .social-dock-btn:focus-visible {
    transform: translateY(-3px);
    border-color: rgb(var(--accent-rgb) / 0.55);
    box-shadow:
      0 1px 0 rgb(var(--accent-rgb) / 0.16) inset,
      0 14px 30px rgb(var(--black-rgb) / 0.46),
      0 0 22px rgb(var(--accent-rgb) / 0.14);
  }

  .social-dock-btn--whatsapp:hover,
  .social-dock-btn--whatsapp:focus-visible {
    color: #4ac967; /* verde WhatsApp, dessaturado pra combinar com o tema */
    border-color: rgb(74 201 103 / 0.5);
  }
}

@media (max-width: 480px) {
  .social-dock {
    width: 48px;
    height: 48px;
  }

  .social-dock-toggle,
  .social-dock-btn {
    width: 46px;
    height: 46px;
  }

  .social-dock-toggle svg,
  .social-dock-btn svg {
    width: 21px;
    height: 21px;
  }

  .social-dock[open] .social-dock-btn--whatsapp,
  .social-dock:hover .social-dock-btn--whatsapp,
  .social-dock:focus-within .social-dock-btn--whatsapp {
    transform: translateY(-56px);
  }

  .social-dock[open] .social-dock-btn--instagram,
  .social-dock:hover .social-dock-btn--instagram,
  .social-dock:focus-within .social-dock-btn--instagram {
    transform: translateY(-108px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .social-dock-toggle,
  .social-dock-btn {
    transition: none;
  }

  .social-dock-toggle:hover,
  .social-dock-toggle:focus-visible,
  .social-dock-btn:hover,
  .social-dock-btn:focus-visible {
    transform: none;
  }
}

/* Mobile polish for inner sections only. Home stays controlled by its existing rules. */
@media (max-width: 620px) {
  #sobre.about-section .section-inner {
    width: calc(100% - 32px);
    padding: 58px 0 68px;
  }

  #sobre .about-layout {
    gap: 28px;
    align-items: start;
  }

  #sobre .about-layout .about-lede {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    padding: 0;
  }

  #sobre .section-kicker--rule {
    justify-content: flex-start;
  }

  #sobre .about-title {
    margin-top: 22px;
    max-width: 10ch;
    font-size: clamp(2.25rem, 11vw, 2.9rem);
    line-height: 1.02;
  }

  #sobre .about-intro {
    margin-top: 22px;
    max-width: 34ch;
    font-size: 0.98rem;
    line-height: 1.66;
  }

  #sobre .about-script {
    margin-top: 20px;
    font-size: 1.32rem;
  }

  #sobre .about-sign {
    margin-top: 24px;
  }

  #sobre .about-portrait {
    width: min(72vw, 300px);
    min-height: 0;
    margin: -8px auto -2px;
  }

  #sobre .about-portrait-frame {
    width: 100%;
    max-width: 300px;
  }

  #sobre .about-portrait-glow {
    width: 92%;
    height: 52%;
    opacity: 0.55;
  }

  #sobre .about-facets {
    width: 100%;
    gap: 22px;
  }

  #sobre .about-mission {
    width: 100%;
    padding: 22px 20px;
    border: 1px solid rgb(var(--accent-rgb) / 0.16);
    background: rgb(var(--ivory-rgb) / 0.025);
  }

  #sobre .about-mission p:first-child {
    max-width: none;
    font-size: clamp(1.34rem, 7.4vw, 1.82rem);
    line-height: 1.2;
  }

  #sobre .about-mission p {
    max-width: none;
    font-size: 0.98rem;
    line-height: 1.62;
  }

  #sobre .facet-list {
    gap: 12px;
  }

  #sobre .facet {
    min-height: 0;
    padding: 16px 18px;
    border-radius: 10px;
    background: rgb(var(--ivory-rgb) / 0.024);
  }

  #sobre .facet-icon {
    width: 44px;
    height: 44px;
  }
}

/* Desktop composition for Sobre: editorial left column + portrait on the right. */
@media (min-width: 1200px) {
  #sobre.about-section .section-inner {
    width: min(calc(100% - 96px), 1540px);
    padding: clamp(76px, 9svh, 112px) 0;
  }

  #sobre .about-layout {
    grid-template-columns: minmax(620px, 0.96fr) minmax(520px, 0.86fr);
    grid-template-rows: minmax(0, 1fr) auto;
    grid-template-areas:
      "lede portrait"
      "facets portrait";
    column-gap: clamp(28px, 4vw, 72px);
    row-gap: clamp(30px, 4.5svh, 54px);
    align-items: end;
  }

  #sobre .about-layout .about-lede {
    grid-area: lede;
    align-self: end;
    justify-self: start;
    width: min(100%, 46rem);
    max-width: 46rem;
    min-height: 0;
    padding: 0;
  }

  #sobre .section-kicker--rule {
    margin-bottom: clamp(22px, 3.2svh, 34px);
  }

  #sobre .about-title {
    position: relative;
    margin: 0;
    max-width: 12ch;
    font-size: clamp(3.45rem, 4.45vw, 5.15rem);
    line-height: 1;
    letter-spacing: -0.05em;
  }

  #sobre .about-title::after {
    content: "";
    display: block;
    width: min(100%, 23rem);
    height: 18px;
    margin: clamp(22px, 2.8svh, 32px) 0 clamp(20px, 2.6svh, 28px);
    background:
      radial-gradient(circle at 50% 50%, rgb(var(--accent-rgb) / 0.86) 0 5px, transparent 6px),
      linear-gradient(90deg, rgb(var(--accent-rgb) / 0.58), transparent 46%, transparent 54%, rgb(var(--accent-rgb) / 0.58)) center / 100% 1px no-repeat;
  }

  #sobre .about-intro {
    margin: 0;
    max-width: 36ch;
    font-size: clamp(1.08rem, 1.14vw, 1.24rem);
    line-height: 1.65;
  }

  #sobre .about-script {
    position: relative;
    margin: clamp(26px, 3.6svh, 42px) 0 0;
    padding-left: 58px;
    font-size: clamp(1.55rem, 1.85vw, 2.05rem);
    line-height: 1.16;
  }

  #sobre .about-script::before {
    content: "\201C";
    position: absolute;
    left: 0;
    top: -0.1em;
    color: rgb(var(--accent-rgb) / 0.72);
    font-family: var(--serif);
    font-size: 3.4rem;
    line-height: 1;
  }

  #sobre .about-script::after {
    content: "";
    position: absolute;
    left: 17px;
    top: 2.7rem;
    width: 1px;
    height: 42px;
    background: rgb(var(--accent-rgb) / 0.38);
  }

  #sobre .about-sign {
    margin-top: clamp(38px, 5svh, 58px);
  }

  #sobre .about-sign-name {
    color: var(--accent);
    font-style: italic;
    font-size: clamp(1.55rem, 2vw, 2.28rem);
    letter-spacing: 0.04em;
  }

  #sobre .about-sign-role {
    font-size: 11px;
    letter-spacing: 0.2em;
  }

  #sobre .about-layout .about-portrait {
    grid-area: portrait;
    align-self: end;
    justify-self: start;
    justify-content: center;
    min-height: calc(var(--about-h) - 2 * clamp(24px, 5svh, 96px));
  }

  #sobre .about-layout .about-portrait-frame {
    height: calc(var(--about-h) * 0.82);
    margin-left: clamp(-76px, -4vw, -34px);
    margin-right: 0;
  }

  #sobre .about-layout .about-facets {
    grid-area: facets;
    align-self: end;
    justify-self: start;
    width: min(100%, 54rem);
    max-width: 54rem;
    min-height: 0;
    margin: 0;
    gap: 0;
  }

  #sobre .about-mission {
    display: none;
  }

  #sobre .facet-list {
    gap: clamp(12px, 1vw, 18px);
  }

  #sobre .facet {
    min-height: clamp(96px, 11svh, 120px);
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: clamp(12px, 1vw, 18px);
    padding: clamp(16px, 1.8svh, 22px) clamp(16px, 1.35vw, 22px);
    border-radius: 12px;
  }

  #sobre .facet-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
  }

  #sobre .facet-title {
    margin-bottom: 6px;
    font-size: clamp(0.92rem, 0.9vw, 1.05rem);
    line-height: 1.18;
  }

  #sobre .facet-body p {
    margin: 0;
    max-width: 27ch;
    font-size: clamp(0.76rem, 0.78vw, 0.86rem);
    line-height: 1.45;
  }
}

/* About — keep the same breathing room as the other content sections and
   let the composition define its own height.  The previous viewport cap
   truncated the cards on shorter desktop screens. */
@media (min-width: 941px) {
  #sobre.about-section {
    min-height: auto;
    max-height: none;
    --about-h: 760px;
    --about-pad: clamp(42px, 6vh, 70px);
  }

  #sobre.about-section .section-inner {
    width: min(calc(100% - 48px), 1240px);
    padding: var(--about-pad) 0;
  }

  #sobre .about-layout .about-portrait,
  #sobre .about-facets {
    min-height: 0;
  }
}

@media (min-width: 1200px) {
  #sobre .about-layout {
    grid-template-columns: minmax(0, 1.06fr) minmax(420px, 0.94fr);
    grid-template-rows: auto auto;
    grid-template-areas:
      "lede portrait"
      "facets portrait";
    column-gap: clamp(36px, 5vw, 76px);
    row-gap: clamp(28px, 4vh, 46px);
    align-items: end;
  }

  #sobre .about-layout .about-lede {
    width: min(100%, 39rem);
    max-width: 39rem;
  }

  #sobre .about-title {
    max-width: 11ch;
    font-size: clamp(3rem, 3.7vw, 4.35rem);
    line-height: 1.03;
  }

  #sobre .about-intro {
    max-width: 39ch;
    font-size: clamp(1rem, 1vw, 1.14rem);
  }

  #sobre .about-script {
    margin-top: clamp(22px, 3vh, 32px);
    font-size: clamp(1.35rem, 1.55vw, 1.72rem);
  }

  #sobre .about-sign {
    margin-top: clamp(28px, 3.8vh, 42px);
  }

  #sobre .about-sign-name {
    font-size: clamp(1.4rem, 1.65vw, 1.9rem);
  }

  #sobre .about-layout .about-portrait {
    align-self: stretch;
    justify-self: end;
    display: flex;
    align-items: flex-end;
    min-height: 620px;
  }

  #sobre .about-layout .about-portrait-frame {
    width: min(100%, 520px);
    height: auto;
    max-height: none;
    margin: 0 auto;
  }

  #sobre .about-layout .about-facets {
    width: 100%;
    max-width: 39rem;
  }
}

@media (max-width: 620px) {
  #sobre.about-section .section-inner {
    width: calc(100% - 36px);
  }
}

/* Hero composition: a more discreet emblem sits behind the portrait, while
   the portrait begins closer to the navigation on desktop. */
@media (min-width: 941px) {
  .emblem-layer {
    top: 51%;
    width: min(56vw, 820px);
  }

  .portrait-reveal {
    --portrait-offset: 18px;
  }
}

/* Social dock — tactile primary control with deliberate network states. */
@keyframes social-dock-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgb(var(--accent-rgb) / 0.22), 0 10px 26px rgb(var(--black-rgb) / 0.42); }
  50% { box-shadow: 0 0 0 8px rgb(var(--accent-rgb) / 0), 0 10px 26px rgb(var(--black-rgb) / 0.42); }
}

.social-dock-toggle {
  animation: social-dock-pulse 2.8s ease-in-out infinite;
}

.social-dock-toggle::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgb(var(--accent-rgb) / 0.28);
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.social-dock[open] .social-dock-toggle {
  animation: none;
}

.social-dock[open] .social-dock-toggle::after,
.social-dock-toggle:hover::after,
.social-dock-toggle:focus-visible::after {
  opacity: 1;
  transform: scale(1.08);
}

/* Opening is deliberate: the actions remain exposed after clicking the toggle. */
@media (any-hover: hover) {
  .social-dock:not([open]):hover .social-dock-btn {
    opacity: 0;
    pointer-events: none;
  }

  .social-dock:not([open]):hover .social-dock-btn--whatsapp,
  .social-dock:not([open]):hover .social-dock-btn--instagram {
    transform: translateY(0);
  }

  .social-dock-btn--whatsapp:hover,
  .social-dock-btn--whatsapp:focus-visible {
    color: #53b96c;
    border-color: #53b96c;
    background-color: rgb(83 185 108 / 0.12);
    box-shadow: 0 0 0 4px rgb(83 185 108 / 0.1), 0 14px 30px rgb(0 0 0 / 0.46);
  }

  .social-dock-btn--instagram:hover,
  .social-dock-btn--instagram:focus-visible {
    color: #ad79bb;
    border-color: #ad79bb;
    background-color: rgb(173 121 187 / 0.12);
    box-shadow: 0 0 0 4px rgb(173 121 187 / 0.1), 0 14px 30px rgb(0 0 0 / 0.46);
  }

  .nav-link,
  .text-link,
  .footer-social a,
  .faq-item summary,
  .facet-title,
  .step h3,
  .locais-detail-card h3 {
    transition: color 220ms ease, text-shadow 220ms ease;
  }

  .nav-link:hover,
  .text-link:hover,
  .footer-social a:hover,
  .faq-item summary:hover,
  .facet:hover .facet-title,
  .step-card:hover h3,
  .locais-detail-card:hover h3 {
    color: var(--accent-soft);
    text-shadow: 0 1px 14px rgb(var(--accent-rgb) / 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .social-dock-toggle {
    animation: none;
  }
}

/* Desktop reference composition for "Sobre". */
@media (min-width: 1200px) {
  #sobre.about-section .section-inner {
    width: min(calc(100% - 96px), 1264px);
    padding: clamp(62px, 7vh, 74px) 0 clamp(28px, 3vh, 38px);
  }

  #sobre .about-layout {
    grid-template-columns: minmax(0, 1fr) minmax(500px, 0.95fr);
    grid-template-rows: auto auto;
    grid-template-areas:
      "lede portrait"
      "facets portrait";
    column-gap: clamp(24px, 3vw, 52px);
    row-gap: clamp(30px, 4vh, 44px);
    align-items: end;
  }

  #sobre .about-layout .about-lede {
    width: min(100%, 38rem);
    max-width: 38rem;
  }

  #sobre .about-title {
    max-width: 12ch;
    font-size: clamp(3.25rem, 4vw, 4.45rem);
    line-height: 1;
    letter-spacing: -0.055em;
  }

  #sobre .about-title::after {
    width: 22rem;
    margin: 30px 0 28px;
  }

  #sobre .about-intro {
    max-width: 38ch;
    font-size: clamp(1.02rem, 1.08vw, 1.18rem);
    line-height: 1.6;
  }

  #sobre .about-script {
    margin-top: 30px;
    font-size: clamp(1.55rem, 1.8vw, 1.95rem);
  }

  #sobre .about-sign {
    margin-top: 38px;
  }

  #sobre .about-sign-name {
    font-size: clamp(1.7rem, 2vw, 2.15rem);
  }

  #sobre .about-layout .about-portrait {
    min-height: 790px;
    justify-self: end;
  }

  #sobre .about-layout .about-portrait-frame {
    width: min(100%, 640px);
    margin: 0 -26px 0 auto;
  }

  #sobre .about-foliage2 {
    display: block;
    top: 58px;
    right: -1%;
    width: min(28vw, 430px);
    opacity: 0.38;
  }

  #sobre .about-layout .about-facets {
    width: min(72vw, 916px);
    max-width: none;
    margin-left: clamp(-86px, -5.6vw, -42px);
    overflow: visible;
  }

  #sobre .facet-list {
    gap: 12px;
  }

  #sobre .facet {
    min-height: 174px;
    padding: 22px 20px;
    gap: 16px;
  }

  #sobre .facet-icon {
    width: 64px;
    height: 64px;
  }

  #sobre .facet-title {
    font-size: 1.12rem;
    line-height: 1.18;
  }

  #sobre .facet-body p {
    font-size: 0.88rem;
    line-height: 1.48;
  }
}
