/* Dr. Michel Malverdi — Landing Page */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url('fontes/fraunces-latin-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('fontes/inter-tight-latin-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fontes/jetbrains-mono-latin-variable.woff2') format('woff2');
}

:root {
  --ink: #222232;
  --ink-2: #2c2c3e;
  --ink-soft: #3a3a4d;
  --green: #23db7c;
  --green-deep: #1aa860;
  --beige: #f6f1e9;
  --off-white: #faf8f4;
  --paper: #fdfbf6;
  --gold: #b8975a;
  --warm-gray: #a8a29a;
  --warm-gray-2: #6e6960;
  --hairline: rgba(34, 34, 50, 0.12);
  --hairline-light: rgba(246, 241, 233, 0.18);

  --display: 'Fraunces', 'Times New Roman', serif;
  --body: 'Inter Tight', -apple-system, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --display-weight-hero: 400;
  --display-weight-section: 300;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
}

/* ---------- Focus visible (a11y) ---------- */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

.brand:focus-visible,
.btn:focus-visible,
.faq-q:focus-visible,
.testimonials-nav button:focus-visible,
.menu-toggle:focus-visible,
.spec-modal-close:focus-visible,
.treatment-card:focus-visible {
  outline-offset: 4px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {

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

  .hero-headline .accent::after {
    transform: scaleX(1);
  }

  .hero-meta .pulse {
    box-shadow: none;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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

/* ---------- Typography helpers ---------- */
.display {
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}

.serif-italic {
  font-family: var(--display);
  font-weight: 300;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-wide {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--green);
  color: var(--ink);
}

.btn-primary:hover {
  background: #2cf089;
}

.btn-ghost-light {
  border-color: rgba(246, 241, 233, 0.35);
  color: var(--off-white);
}

.btn-ghost-light:hover {
  border-color: var(--green);
  color: var(--green);
}

.btn-ghost-dark {
  border-color: var(--hairline);
  color: var(--ink);
}

.btn-ghost-dark:hover {
  border-color: var(--ink);
}

.btn .arrow {
  width: 14px;
  height: 14px;
  transition: transform .25s ease;
}

.btn:hover .arrow {
  transform: translate(2px, -2px);
}

/* ---------- Section base ---------- */
section {
  position: relative;
  padding: clamp(56px, 6.4vw, 96px) 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-tag::before {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section-tag.with-margin {
  margin-bottom: 28px;
}

/* ---------- Hairlines ---------- */
.hairline {
  height: 1px;
  background: var(--hairline);
  width: 100%;
}

.hairline-light {
  background: var(--hairline-light);
}

/* ---------- Image placeholder ---------- */
.img-placeholder {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      rgba(34, 34, 50, 0.04) 0 1px,
      transparent 1px 14px),
    linear-gradient(180deg, #ece5d6 0%, #d8cfba 100%);
  overflow: hidden;
  border-radius: 2px;
}

.img-placeholder.dark {
  background:
    repeating-linear-gradient(135deg,
      rgba(246, 241, 233, 0.05) 0 1px,
      transparent 1px 14px),
    linear-gradient(180deg, #2a2a3e 0%, #1a1a2a 100%);
}

.img-placeholder .placeholder-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-gray-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.img-placeholder.dark .placeholder-label {
  color: rgba(246, 241, 233, 0.55);
}

.img-placeholder .placeholder-corner {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-gray-2);
  opacity: 0.7;
}

.img-placeholder.dark .placeholder-corner {
  color: rgba(246, 241, 233, 0.5);
}

/* ---------- Cursor accent ---------- */
.dot-accent {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  vertical-align: middle;
}

/* ---------- Marquee strip ---------- */
.strip {
  background: var(--off-white);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 22px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.strip-inner {
  display: inline-flex;
  align-items: center;
  gap: 56px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  padding-left: 56px;
  animation: marquee 48s linear infinite;
  will-change: transform;
}

.strip:hover .strip-inner {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.strip-divider {
  width: 4px;
  height: 4px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .35s ease, padding .35s ease, backdrop-filter .35s ease, color .35s ease;
  color: var(--off-white);
}

.site-header.scrolled {
  background: rgba(34, 34, 50, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px var(--gutter);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  display: block;
  width: 260px;
  height: 49px;
  background-color: #ffffff;
  -webkit-mask-image: url("imagens/logo-dr-michel-malverdi-horizontal.svg?v=20260512");
  mask-image: url("imagens/logo-dr-michel-malverdi-horizontal.svg?v=20260512");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: left center;
  mask-position: left center;
}

@media (max-width: 720px) {
  .brand-logo {
    width: 220px;
    height: 41px;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 13.5px;
  letter-spacing: 0.01em;
}

.nav a {
  position: relative;
  padding: 4px 0;
  color: var(--off-white);
  transition: color .2s ease;
}

.nav a:hover {
  color: var(--green);
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}

.menu-toggle.close {
  transform: rotate(45deg);
}

.menu-toggle .line {
  width: 14px;
  height: 1px;
  background: currentColor;
  position: relative;
}

.menu-toggle .line::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  width: 14px;
  height: 1px;
  background: currentColor;
}

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

  .menu-toggle {
    display: inline-flex;
  }

  .header-cta .btn {
    display: none;
  }
}

/* ---------- Mobile menu drawer ---------- */
.mobile-drawer {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  background: var(--ink);
  color: var(--off-white);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 24px var(--gutter) max(40px, calc(24px + env(safe-area-inset-bottom)));
  transform: translateY(-100%);
  transition: transform .5s cubic-bezier(.7, 0, .2, 1), visibility 0s .5s;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  visibility: hidden;
}

.mobile-drawer.open {
  visibility: visible;
  transition: transform .5s cubic-bezier(.7, 0, .2, 1), visibility 0s 0s;
  transform: translateY(0);
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 0 0 auto;
}

.mobile-drawer nav {
  margin-top: clamp(40px, 10vh, 80px);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 3vh, 24px);
}

.mobile-drawer nav a {
  font-family: var(--display);
  font-size: clamp(32px, 10vw, 56px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.mobile-drawer-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid var(--hairline-light);
  padding-top: 24px;
  flex: 0 0 auto;
}

.mobile-drawer-footer .drawer-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
}

@media (max-height: 760px) {
  .mobile-drawer nav {
    margin-top: 36px;
    gap: 14px;
  }

  .mobile-drawer nav a {
    font-size: clamp(28px, 8vw, 42px);
  }
}

/* ---------- HERO ---------- */
.hero {
  background: var(--ink);
  color: var(--off-white);
  padding: 0;
  min-height: 92vh;
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-image: url("imagens/dr-michel-malverdi-nutrologia-vitoria-hero.webp?v=20260512");
  background-size: cover;
  background-position: center;
  pointer-events: none;
  z-index: 0;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(100deg, rgba(34, 34, 50, 0.55) 0%, rgba(34, 34, 50, 0.18) 55%, rgba(34, 34, 50, 0.08) 100%);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(246, 241, 233, 0.04) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  mix-blend-mode: overlay;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.96 0 0 0 0 0.94 0 0 0 0 0.91 0 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 120px var(--gutter) 100px;
  display: flex;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 880px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--off-white);
}

.hero-meta .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(35, 219, 124, 0.5);
  animation: pulse 2.4s ease-out 3;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(35, 219, 124, 0.5);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(35, 219, 124, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(35, 219, 124, 0);
  }
}

.hero-headline {
  font-family: var(--display);
  font-weight: var(--display-weight-hero);
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--off-white);
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
}

.hero-headline em,
.hero-headline .accent {
  font-style: normal;
  font-weight: var(--display-weight-hero);
  color: var(--off-white);
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-decoration-thickness: 0.04em;
  text-underline-offset: 0.14em;
  text-decoration-skip-ink: none;
}

.hero-sub {
  max-width: 480px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--off-white);
  font-weight: 300;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-microcopy {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--off-white);
  margin-top: -8px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 32px;
  margin-top: 16px;
  border-top: 1px solid var(--hairline-light);
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-stat-num {
  font-family: var(--display);
  font-size: 44px;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--off-white);
  line-height: 1;
}

.hero-stat-num em {
  color: var(--green);
  font-style: normal;
  font-size: 0.5em;
  vertical-align: super;
  margin-left: 1px;
}

.hero-stat-text {
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--off-white);
  line-height: 1.45;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-stat-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  opacity: 0.6;
}

.hero-side-label {
  position: absolute;
  bottom: 18px;
  left: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(246, 241, 233, 0.7);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.hero-side-label::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--green);
}

.hero-corner-mark {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(246, 241, 233, 0.72);
  z-index: 2;
}

.hero-vertical-text {
  position: absolute;
  left: 18px;
  bottom: 60px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(246, 241, 233, 0.6);
}

@media (max-width: 1200px) {
  .hero-vertical-text {
    display: none;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 24px;
  right: var(--gutter);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(246, 241, 233, 0.7);
  z-index: 3;
  opacity: 1;
  transition: opacity .35s ease;
}

.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-indicator .line {
  width: 36px;
  height: 1px;
  background: rgba(246, 241, 233, 0.3);
  position: relative;
  overflow: hidden;
}

.scroll-indicator .line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--green);
  transform: translateX(-100%);
  animation: scrollline 2.6s ease-in-out infinite;
}

@keyframes scrollline {
  0% {
    transform: translateX(-100%);
  }

  60%,
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 960px) {
  .hero-bg-image {
    background-image: url("imagens/dr-michel-malverdi-nutrologia-vitoria-hero-mobile.webp?v=20260512");
  }

  .hero-inner {
    padding: 100px var(--gutter) 56px;
  }

  .hero-headline {
    font-size: clamp(32px, 9vw, 42px);
    line-height: 1.1;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .hero-stat {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 0 8px;
  }

  .hero-stat:nth-child(2) {
    border-left: 1px solid rgba(246, 241, 233, 0.12);
    border-right: 1px solid rgba(246, 241, 233, 0.12);
  }

  .hero-stat-dot {
    display: none;
  }

  .hero-stat-num {
    font-size: 32px;
  }

  .hero-stat-text {
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero-ctas .btn {
    width: 100%;
    max-width: 400px;
  }

  .scroll-indicator {
    display: none;
  }
}

/* ---------- Sobre o Dr Michel ---------- */
.about {
  background: var(--beige);
  color: var(--ink);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.about-image-col {
  position: sticky;
  top: 100px;
}

.about-portrait {
  position: relative;
  width: 100%;
  isolation: isolate;
}

.about-portrait::before {
  content: '';
  position: absolute;
  inset: -16px;
  border: 1px solid rgba(34, 34, 50, 0.18);
  pointer-events: none;
  z-index: -1;
}

.about-portrait::after {
  content: '';
  position: absolute;
  left: -16px;
  top: -16px;
  width: 28px;
  height: 28px;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  pointer-events: none;
  z-index: 1;
}

.about-portrait img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  position: relative;
  z-index: 0;
}

.about-image-meta {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm-gray-2);
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.about-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 22ch;
}

.about-title em {
  font-style: normal;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-decoration-thickness: 0.04em;
  text-underline-offset: 0.14em;
  text-decoration-skip-ink: none;
}

.about-body p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 56ch;
  margin-bottom: 18px;
}

.about-body p strong {
  font-weight: 500;
  color: var(--ink);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
}

.about-tag {
  padding: 8px 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.about-tag::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.about-signature {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}

.about-signature .sig-name {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.about-signature .sig-role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm-gray-2);
}

@media (max-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-col {
    position: static;
  }

  .about-portrait::before {
    inset: -10px;
  }

  .about-portrait::after {
    left: -10px;
    top: -10px;
    width: 22px;
    height: 22px;
  }
}

/* ---------- Method ---------- */
.method {
  background: var(--ink);
  color: var(--off-white);
}

.method .section-tag,
.method-title,
.method-sub,
.method-step .step-title {
  color: var(--off-white);
}

.method-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 80px;
}

.method-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.04;
  max-width: 26ch;
}

.method-title em {
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-decoration-thickness: 0.04em;
  text-underline-offset: 0.14em;
  text-decoration-skip-ink: none;
}

.method-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--off-white);
  max-width: 38ch;
  font-weight: 300;
}

.method-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hairline-light);
}

.method-step {
  display: grid;
  grid-template-columns: 100px 1fr 1.4fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--hairline-light);
  position: relative;
  cursor: pointer;
  transition: background .35s ease;
}

.method-step:hover {
  background: rgba(246, 241, 233, 0.03);
}

.method-step::before {
  content: '';
  position: absolute;
  left: 0;
  top: -1px;
  height: 1px;
  width: 0;
  background: var(--green);
  transition: width .6s cubic-bezier(.7, 0, .2, 1);
}

.method-step:hover::before {
  width: 100%;
}

.method-step .num {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(36px, 4vw, 56px);
  color: var(--off-white);
  letter-spacing: -0.02em;
  line-height: 1;
  align-self: start;
}

.method-step:hover .num {
  color: var(--green);
}

.method-step .step-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(24px, 2.4vw, 32px);
  letter-spacing: -0.01em;
  line-height: 1.15;
  align-self: start;
}

.method-step .step-desc {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--off-white);
  font-weight: 300;
  max-width: 52ch;
}

@media (max-width: 800px) {
  .method-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .method-step {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 28px 0;
  }
}

/* ---------- Treatments ---------- */
.treatments {
  background: var(--off-white);
  color: var(--ink);
}

.treatments-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.treatments-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1;
}

.treatments-title em {
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-decoration-thickness: 0.04em;
  text-underline-offset: 0.14em;
  text-decoration-skip-ink: none;
}

.treatments-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm-gray-2);
}

.treatments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

.treatment-card.span-3 {
  grid-column: span 3;
  padding: 36px 32px;
  border-top: 1px solid var(--hairline);
}

.treatment-card.span-3 .t-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.treatment-card.span-3 .t-inner .t-num {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.treatment-card.span-3 .t-title {
  margin-top: 0;
  max-width: 14ch;
}

.treatment-card.span-3 .t-desc {
  margin-top: 14px;
  max-width: 50ch;
}

.treatment-card.span-3 .t-arrow-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

@media (max-width: 960px) {
  .treatments-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .treatment-card.span-3 {
    grid-column: span 2;
  }

  .treatment-card.span-3 .t-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 600px) {
  .treatments-grid {
    grid-template-columns: 1fr;
  }

  .treatment-card.span-3 {
    grid-column: span 1;
  }
}

.treatment-card {
  background: var(--beige);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 320px;
  transition: background .35s ease, color .35s ease, transform .35s ease;
  position: relative;
  overflow: hidden;
}

.treatment-card:hover {
  background: var(--ink);
  color: var(--off-white);
  transform: translateY(-2px);
}

.treatment-card.span-3:hover {
  background: var(--ink);
  color: var(--off-white);
}

.treatment-card .t-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--warm-gray-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.treatment-card:hover .t-num {
  color: rgba(246, 241, 233, 0.5);
}

.treatment-card .t-icon {
  width: 40px;
  height: 40px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
  opacity: 0.5;
  transition: opacity .35s ease .08s, color .35s ease .08s, border-color .35s ease .08s;
}

.treatment-card:hover .t-icon {
  color: var(--green);
  border-color: var(--green);
  opacity: 1;
}

.treatment-card .t-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-top: auto;
}

.treatment-card .t-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  font-weight: 300;
  transition: color .35s ease;
}

.treatment-card:hover .t-desc {
  color: rgba(246, 241, 233, 0.78);
}

.treatment-card .t-arrow {
  margin-top: 8px;
  width: 22px;
  height: 22px;
  opacity: 0.6;
  transition: transform .35s ease .08s, color .35s ease .08s, opacity .35s ease .08s;
}

.treatment-card:hover .t-arrow {
  transform: translate(4px, -4px);
  color: var(--green);
  opacity: 1;
}

/* ---------- Testimonials ---------- */
.testimonials {
  background: var(--off-white);
  color: var(--ink);
}

.testimonials-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.testimonials-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.02;
  max-width: 20ch;
}

.testimonials-title em {
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-decoration-thickness: 0.04em;
  text-underline-offset: 0.14em;
  text-decoration-skip-ink: none;
}

.testimonials-nav {
  display: flex;
  gap: 10px;
}

.testimonials-nav button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: border-color .25s ease, color .25s ease, background .25s ease;
}

.testimonials-nav button:hover:not(:disabled) {
  border-color: var(--green-deep);
  color: var(--green-deep);
}

.testimonials-nav button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.testimonials-track-wrap {
  overflow: hidden;
  margin: 0 calc(-1 * var(--gutter));
  padding: 0 var(--gutter);
}

.testimonials-track {
  display: flex;
  gap: 24px;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}

.testimonial-card {
  flex: 0 0 calc((100% - 48px) / 3);
  background: var(--paper);
  color: var(--ink);
  padding: 40px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-radius: 2px;
  min-height: 360px;
  border: 1px solid var(--hairline);
}

.testimonial-card.featured {
  background: var(--ink);
  color: var(--off-white);
  border: 1px solid var(--gold);
}

.testimonial-card.featured .name {
  color: var(--off-white);
}

.testimonial-card.featured .loc {
  color: rgba(246, 241, 233, 0.6);
}

.testimonial-card.featured .meta {
  border-top-color: rgba(246, 241, 233, 0.16);
}

.testimonial-card .quote-mark {
  font-family: var(--display);
  font-size: 56px;
  line-height: 0.7;
  color: var(--green-deep);
  font-weight: 300;
}

.testimonial-card.featured .quote-mark {
  color: var(--gold);
}

.testimonial-card .quote {
  font-family: var(--display);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: inherit;
  flex: 1;
}

.testimonial-card .meta {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
}

.testimonial-card .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--off-white);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 300;
}

.testimonial-card .name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.testimonial-card .loc {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm-gray-2);
  margin-top: 2px;
}

.testimonial-card.featured .avatar {
  background: var(--gold);
  color: var(--off-white);
}

@media (max-width: 960px) {
  .testimonial-card {
    flex: 0 0 calc((100% - 24px) / 2) !important;
  }
}

@media (max-width: 700px) {
  .testimonial-card {
    flex: 0 0 100% !important;
  }
}

/* ---------- Clinic ---------- */
.clinic {
  background: var(--beige);
  color: var(--ink);
}

.clinic-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 60px;
  align-items: end;
}

.clinic-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.02;
  max-width: 18ch;
}

.clinic-title em {
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-decoration-thickness: 0.04em;
  text-underline-offset: 0.14em;
  text-decoration-skip-ink: none;
}

.clinic-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.clinic-text p {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 50ch;
}

.clinic-text p em {
  font-family: var(--display);
  font-weight: 300;
  color: var(--ink);
}

.clinic-address-block {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  padding: 24px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-top: 12px;
}

.clinic-address {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
}

.clinic-address .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm-gray-2);
  display: block;
  margin-bottom: 8px;
}

.clinic-map-buttons {
  display: flex;
  gap: 10px;
}

.clinic-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 90px;
  gap: 16px;
}

.clinic-gallery .g {
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.clinic-gallery .g img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.clinic-gallery .g:hover img {
  transform: scale(1.05);
}

.clinic-gallery .g1 {
  grid-column: 1 / 7;
  grid-row: span 5;
}

.clinic-gallery .g2 {
  grid-column: 7 / 13;
  grid-row: span 3;
}

.clinic-gallery .g3 {
  grid-column: 7 / 10;
  grid-row: span 2;
}

.clinic-gallery .g4 {
  grid-column: 10 / 13;
  grid-row: span 2;
}

.clinic-gallery .g5 {
  grid-column: 1 / 5;
  grid-row: span 4;
}

.clinic-gallery .g6 {
  grid-column: 5 / 13;
  grid-row: span 4;
}

@media (max-width: 800px) {
  .clinic-head {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .clinic-gallery {
    grid-auto-rows: 80px;
  }

  .clinic-gallery .g1,
  .clinic-gallery .g2,
  .clinic-gallery .g3,
  .clinic-gallery .g4,
  .clinic-gallery .g5,
  .clinic-gallery .g6 {
    grid-column: 1 / 13;
    grid-row: span 3;
  }

  .clinic-address-block {
    grid-template-columns: 1fr;
  }
}

/* ---------- FAQ ---------- */
.faq {
  background: var(--off-white);
  color: var(--ink);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.faq-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1;
  position: sticky;
  top: 100px;
}

.faq-title em {
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-decoration-thickness: 0.04em;
  text-underline-offset: 0.14em;
  text-decoration-skip-ink: none;
}

.faq-title-aside {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 32ch;
}

.faq-list {
  border-top: 1px solid var(--hairline);
}

.faq-item {
  border-bottom: 1px solid var(--hairline);
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  text-align: left;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(20px, 2vw, 24px);
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color .25s ease;
  gap: 24px;
}

.faq-q:hover {
  color: var(--green-deep);
}

.faq-q .icon {
  width: 28px;
  height: 28px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform .35s ease, border-color .25s ease, color .25s ease;
}

.faq-item.open .faq-q {
  color: var(--green-deep);
}

.faq-item.open .faq-q .icon {
  transform: rotate(45deg);
  border-color: var(--green);
  color: var(--green-deep);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s cubic-bezier(.7, 0, .2, 1);
}

.faq-item.open .faq-a {
  max-height: 400px;
}

.faq-a-inner {
  padding: 0 0 28px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 60ch;
}

@media (max-width: 800px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .faq-title {
    position: static;
  }
}

/* ---------- CTA Final ---------- */
.cta-final {
  background: var(--ink-2);
  color: var(--off-white);
  position: relative;
  overflow: hidden;
}

.cta-final-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("imagens/dr-michel-malverdi-contato-whatsapp-vitoria.webp?v=20260512");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.cta-final-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(34, 34, 50, 0.55) 0%, rgba(34, 34, 50, 0.72) 100%),
    linear-gradient(100deg, rgba(34, 34, 50, 0.25) 0%, rgba(34, 34, 50, 0) 60%);
}

.cta-final-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
}

.cta-final-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--off-white);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cta-final-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--off-white);
}

.cta-final-title {
  font-family: var(--display);
  font-weight: var(--display-weight-hero);
  font-size: clamp(40px, 5.5vw, 84px);
  letter-spacing: -0.025em;
  line-height: 0.98;
}

.cta-final-title em {
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-decoration-thickness: 0.04em;
  text-underline-offset: 0.14em;
  text-decoration-skip-ink: none;
}

.cta-final-microcopy {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--off-white);
  margin-top: -16px;
}

.cta-final-credentials {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  margin-bottom: 48px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hairline-light);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--off-white);
  align-items: center;
}

.cta-final-credentials .dot {
  width: 4px;
  height: 4px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}

.cta-final-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 12px;
}

.cta-final-text {
  font-size: 17px;
  line-height: 1.65;
  color: var(--off-white);
  max-width: 44ch;
  font-weight: 300;
}

.cta-final-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-final-contact {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--hairline-light);
}

.cta-final-contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cta-final-contact-item .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--off-white);
}

.cta-final-contact-item .value {
  font-family: var(--display);
  font-weight: 300;
  font-size: 18px;
}

@media (max-width: 800px) {
  .cta-final-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cta-final-buttons {
    flex-direction: column;
  }

  .cta-final-buttons .btn {
    width: 100%;
  }

  .cta-final-microcopy {
    text-align: center;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--off-white);
  padding: 60px 0 32px;
  border-top: 1px solid var(--hairline-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--hairline-light);
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--off-white);
  margin-bottom: 18px;
  font-weight: 500;
}

.footer-col a,
.footer-col p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--off-white);
  font-weight: 300;
  display: block;
  transition: color .2s ease;
}

.footer-contact-link {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.footer-contact-link svg {
  width: 16px;
  height: 16px;
  color: var(--green);
  flex: 0 0 auto;
}

.footer-contact-link span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.footer-col a:hover {
  color: var(--green);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand .tagline {
  font-family: var(--display);
  font-size: 14px;
  color: var(--off-white);
  font-weight: 300;
  max-width: 28ch;
  line-height: 1.5;
}

.footer-bottom {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--off-white);
}

.footer-disclaimer {
  max-width: 70ch;
  text-transform: none;
  letter-spacing: 0.02em;
  font-family: var(--body);
  font-size: 12px;
  color: var(--off-white);
  line-height: 1.65;
  margin-top: 24px;
  font-weight: 300;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 180;
  padding: 14px 22px;
  background: var(--green);
  color: var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity .25s ease, transform .25s ease;
}

.mobile-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .mobile-cta {
    display: block;
  }

  body {
    padding-bottom: 72px;
  }
}

/* ---------- Treatment cards clickable ---------- */
.treatment-card[data-specialty] {
  cursor: pointer;
}

/* ---------- Specialty Modal ---------- */
.spec-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(22, 22, 34, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s cubic-bezier(.4, 0, .2, 1), visibility 0s .4s;
}

.spec-modal-overlay.open {
  opacity: 1;
  visibility: visible;
  transition: opacity .4s cubic-bezier(.4, 0, .2, 1), visibility 0s 0s;
}

.spec-modal {
  position: relative;
  background: var(--ink);
  color: var(--off-white);
  border-radius: 6px;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 48px 44px 40px;
  border: 1px solid rgba(246, 241, 233, 0.1);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(246, 241, 233, 0.06) inset;
  transform: translateY(28px) scale(0.97);
  opacity: 0;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1), opacity .4s cubic-bezier(.4, 0, .2, 1);
}

.spec-modal-overlay.open .spec-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.spec-modal-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  mix-blend-mode: overlay;
  border-radius: 6px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.96 0 0 0 0 0.94 0 0 0 0 0.91 0 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scrollbar styling inside modal */
.spec-modal::-webkit-scrollbar {
  width: 4px;
}

.spec-modal::-webkit-scrollbar-track {
  background: transparent;
}

.spec-modal::-webkit-scrollbar-thumb {
  background: rgba(246, 241, 233, 0.15);
  border-radius: 4px;
}

.spec-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.spec-modal-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(246, 241, 233, 0.5);
}

.spec-modal-close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(246, 241, 233, 0.2);
  display: grid;
  place-items: center;
  color: var(--off-white);
  transition: border-color .25s ease, color .25s ease, transform .25s ease;
}

.spec-modal-close:hover {
  border-color: var(--green);
  color: var(--green);
  transform: rotate(90deg);
}

.spec-modal-icon {
  width: 56px;
  height: 56px;
  border: 1px solid var(--green);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green);
  margin-bottom: 28px;
}

.spec-modal-icon svg {
  width: 24px;
  height: 24px;
}

.spec-modal-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(28px, 3.6vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--off-white);
  margin-bottom: 24px;
}

.spec-modal-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--green), rgba(246, 241, 233, 0.1));
  margin-bottom: 28px;
}

.spec-modal-body {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(246, 241, 233, 0.82);
  font-weight: 300;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.spec-modal-body p {
  margin: 0;
}

.spec-modal-footer {
  padding-top: 24px;
  border-top: 1px solid rgba(246, 241, 233, 0.1);
  display: flex;
  justify-content: flex-start;
}

@media (max-width: 600px) {
  .spec-modal {
    padding: 36px 24px 32px;
    max-height: 90vh;
  }

  .spec-modal-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
  }

  .spec-modal-icon svg {
    width: 20px;
    height: 20px;
  }
}
