/* Dr. Cesar Giudice
   Conceito: a página é uma descida pela pele. O fundo escurece conforme
   a profundidade aumenta, da superfície clara até a raiz.
   Cores e fontes seguem a paleta 03 "Quente / Sofisticada" (out/2026):
   porcelana #faf8f5, areia #eee7df, argila #b87969, espresso #302d2b, turquesa #40e0d0. */

:root {
  --ivory: #faf8f5;   /* porcelana */
  --blush: #eee7df;   /* areia */
  --rose: #d9b3a6;
  --coral: #c98f80;
  --clay: #8f5648;
  --cocoa: #302d2b;   /* espresso */
  --ink: #1c1a19;
  --accent: #b87969;  /* argila */
  --turquesa: #40e0d0; /* detalhe: só em linhas, nunca em texto (contraste) */

  /* Tema corrente, animado pelo JS entre as seções */
  --bg: var(--ivory);
  --fg: var(--cocoa);
  --muted: color-mix(in srgb, var(--fg) 58%, var(--bg));
  --line: color-mix(in srgb, var(--fg) 16%, transparent);

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Rótulos técnicos em Manrope espaçada, como no manual */
  --mono: var(--sans);

  --gutter: clamp(16px, 4vw, 56px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
em { font-style: italic; }

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Logo em curvas: cores vêm do CSS para acompanhar o tema da seção */
.logo { overflow: visible; }
.logo .logo__mono { fill: var(--logo-mono, var(--accent)); }
.logo .logo__nome, .logo .logo__esp { fill: var(--logo-text, currentColor); }

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  padding: 10px 16px; background: var(--ink); color: var(--ivory);
  border-radius: 999px; transform: translateY(-160%);
  transition: transform .3s var(--ease-out);
}
.skip:focus { transform: none; }

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

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 900;
  display: grid; place-items: center; align-content: center; gap: 28px;
  background: var(--ivory); color: var(--cocoa);
}
html:not(.js) .loader { display: none; }
.loader__lens { position: relative; width: min(46vw, 220px); aspect-ratio: 1; }
.loader__ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.loader__track { fill: none; stroke: color-mix(in srgb, var(--cocoa) 12%, transparent); stroke-width: 1; }
.loader__progress { fill: none; stroke: var(--cocoa); stroke-width: 1.5; stroke-dasharray: 100; stroke-dashoffset: 100; }
.loader__ticks line { stroke: var(--cocoa); stroke-width: 1; opacity: .35; }
.loader__mono {
  position: absolute; left: 50%; top: 50%; width: 44%; height: auto;
  transform: translate(-50%, -50%);
  fill: var(--accent); filter: blur(14px); opacity: .5;
}
.loader__label { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; inset: 0 auto auto 0; z-index: 800; pointer-events: none; mix-blend-mode: difference; }
.cursor__dot, .cursor__ring {
  position: fixed; left: 0; top: 0; border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor__dot { width: 6px; height: 6px; background: #fff; }
.cursor__ring { width: 38px; height: 38px; border: 1px solid #fff; transition: width .35s var(--ease-out), height .35s var(--ease-out), opacity .3s; }
.cursor.is-hover .cursor__ring { width: 74px; height: 74px; }
.cursor.is-lens .cursor__ring, .cursor.is-lens .cursor__dot { opacity: 0; }
/* Cursor customizado desativado: fora do hero vale o cursor nativo. No hero a lente de dermatoscopia faz o papel do cursor. */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) { html.js.has-cursor .hero, html.js.has-cursor .hero a, html.js.has-cursor .hero button { cursor: none; } }

/* ---------- Medidor de profundidade ---------- */
.depth {
  position: fixed; left: var(--gutter); top: 50%; z-index: 60;
  transform: translateY(-50%);
  display: flex; align-items: center; gap: 14px;
  color: var(--fg); pointer-events: none;
  opacity: 0;
}
.depth__rule {
  position: relative; width: 9px; height: 34vh;
  background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 8px);
  background-size: 5px 100%; background-repeat: no-repeat;
  border-left: 1px solid var(--line);
}
.depth__marker {
  position: absolute; left: -1px; top: 0; width: 14px; height: 1.5px; background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.depth__read { display: grid; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; line-height: 1.5; }
.depth__value { font-size: 18px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.depth__unit { opacity: .6; }
.depth__layer { opacity: .6; margin-top: 4px; }
@media (max-width: 900px) { .depth { display: none; } }

/* ---------- Navegação ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 70;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  color: var(--fg);
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  opacity: 0; transition: opacity .4s;
}
.nav.is-scrolled::before { opacity: 1; }
.nav.is-hidden { transform: translateY(-110%); }
.nav { transition: transform .5s var(--ease-out), color .4s; }
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
/* Monograma no tamanho mínimo do manual (48 px) com o nome em texto ao lado */
.nav__mark { width: 48px; height: auto; flex: none; transition: fill .4s; }
.nav__name { font-family: var(--serif); font-weight: 500; font-size: 24px; letter-spacing: 0; }
.nav__links { display: flex; gap: 32px; }
.nav__links a { position: relative; text-decoration: none; font-size: 14px; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 10px 18px; border-radius: 999px; border: 1px solid currentColor;
  transition: background .3s, color .3s;
}
.nav__cta:hover { background: var(--fg); color: var(--bg); }
@media (max-width: 720px) { .nav__links { display: none; } .nav__name { font-size: 19px; } }

/* ---------- Botões ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 30px; border-radius: 999px; overflow: hidden;
  text-decoration: none; font-weight: 600; font-size: 15px;
  isolation: isolate;
}
.btn--solid { background: var(--cocoa); color: var(--ivory); }
.btn--solid::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent);
  clip-path: circle(0% at 50% 120%); transition: clip-path .6s var(--ease-out);
}
.btn--solid:hover::before { clip-path: circle(140% at 50% 120%); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; align-items: end;
  padding: 120px var(--gutter) clamp(28px, 6vh, 64px);
  color: var(--cocoa);
}
.hero__gl, .hero__fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__fallback {
  background:
    radial-gradient(60% 50% at 70% 30%, #fbf5ef 0%, transparent 60%),
    radial-gradient(50% 60% at 20% 80%, #e9cfc3 0%, transparent 70%),
    var(--ivory);
  z-index: -1;
}
.hero__gl { z-index: 0; }
.hero__inner { position: relative; z-index: 2; width: 100%; pointer-events: none; }
.hero__inner a { pointer-events: auto; }
.hero__eyebrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 18px; }
.hero__reg { opacity: .6; margin-left: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 0%, transparent); } 0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 35%, transparent); } }

/* Versão principal da logo como título do hero */
.hero__title { margin: 0 0 clamp(18px, 3vh, 32px); line-height: 0; }
.hero__title { width: clamp(300px, 44vw, 720px); max-width: 100%; }
.hero__logo { width: 100%; max-height: 58svh; height: auto; color: var(--cocoa); }
/* Linha turquesa sob "Dermatologista", centralizada como a logo */
.hero__rule { display: block; width: 100%; height: 4px; margin: clamp(14px, 1.6vw, 22px) auto 0; background: var(--turquesa); border-radius: 4px; }

/* Traço turquesa acima das etiquetas de seção */
.kicker::before { content: ""; display: block; width: 32px; height: 2px; margin-bottom: 14px; background: var(--turquesa); border-radius: 2px; }
.layers__head .kicker::before { margin-left: 0; }
.cta__kicker::before { margin-inline: auto; }

.hero__foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  margin-top: clamp(20px, 4vh, 44px);
}
.hero__lede { margin: 0; max-width: 30ch; font-size: clamp(20px, 1.8vw, 25px); line-height: 1.4; }
.hero__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero__hint { color: color-mix(in srgb, var(--cocoa) 60%, transparent); }
@media (hover: none) { .hero__hint { display: none; } }

.hero__scroll {
  position: absolute; right: var(--gutter); top: 50%; z-index: 2;
  writing-mode: vertical-rl; display: flex; align-items: center; gap: 14px;
  color: color-mix(in srgb, var(--cocoa) 60%, transparent);
}
.hero__scroll i { width: 1px; height: 64px; background: currentColor; transform-origin: top; animation: drip 2.2s var(--ease-out) infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 720px) { .hero__scroll { display: none; } }

/* Áreas de cuidado com bolinhas turquesa, no meio do espaço livre à direita da logo
   (a logo ocupa clamp(300px, 44vw, 720px) a partir da esquerda) */
.hero__topics {
  position: absolute; z-index: 2; top: 50%;
  left: calc((100% + clamp(300px, 44vw, 720px)) / 2); transform: translate(-50%, -50%);
  list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(10px, 1.6vh, 18px); justify-items: start;
  font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 3.4vw, 54px); line-height: 1; color: var(--cocoa);
  pointer-events: none;
}
.hero__topics li { display: flex; align-items: center; gap: .45em; }
.hero__topic-dot { width: .36em; height: .36em; box-shadow: 0 0 0 .14em color-mix(in srgb, var(--turquesa) 28%, transparent); border-radius: 50%; background: var(--turquesa); flex: none; }
@media (max-width: 900px) {
  .hero__topics { position: static; transform: none; grid-auto-flow: column; justify-content: center; gap: 26px; margin: 8px 0 24px; font-size: 30px; }
}

.lens-ui {
  position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none;
  width: 300px; height: 300px; transform: translate(-50%, -50%);
  opacity: 0; color: var(--cocoa);
}
.lens-ui svg { width: 100%; height: 100%; }
.lens-ui line { stroke: currentColor; stroke-width: 1; opacity: .55; }
.lens-ui__label {
  position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%);
  white-space: nowrap; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
}

/* ---------- Manifesto ---------- */
.manifesto {
  padding: clamp(120px, 22vh, 240px) var(--gutter) clamp(100px, 18vh, 200px);
  padding-left: max(var(--gutter), 16vw);
}
.manifesto__kicker { margin: 0 0 32px; color: var(--muted); }
.manifesto__text {
  margin: 0; max-width: 21ch;
  font-family: var(--serif); font-size: clamp(38px, 6.2vw, 104px); line-height: 1.02; letter-spacing: -0.01em;
}
.manifesto__text .w { opacity: .14; transition: none; }
html:not(.js) .manifesto__text .w { opacity: 1; }

/* ---------- Faixa ---------- */
.marquee {
  overflow: hidden; padding: 26px 0;
  border-block: 1px solid var(--line);
  font-family: var(--serif); font-style: italic; font-size: clamp(40px, 6vw, 88px); line-height: 1;
}
.marquee__track { display: flex; width: max-content; gap: .5em; align-items: center; will-change: transform; }
.marquee__track i { font-style: normal; font-size: .4em; color: var(--accent); }

/* ---------- Camadas ---------- */
.layers__pin {
  position: relative; min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr; gap: clamp(16px, 3vh, 36px);
  padding: clamp(84px, 12vh, 120px) var(--gutter) clamp(28px, 5vh, 48px);
  padding-left: max(var(--gutter), 12vw);
}
.layers__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.layers__head .mono { margin: 0; color: var(--muted); }
.layers__title {
  margin: 0; max-width: 16ch; font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 4.6vw, 76px); line-height: 1; letter-spacing: -0.01em; text-align: right;
}
.layers__title em { color: var(--accent); }
.layers__stage {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px);
  align-items: center; min-height: 0;
}
.skin { position: relative; margin: 0; height: 100%; max-height: 68vh; display: grid; place-items: center; }
.skin__svg { width: 100%; height: 100%; max-height: 68vh; overflow: visible; }
.skin__frame { fill: none; stroke: var(--fg); stroke-opacity: .25; }
.cells ellipse { fill: #fbf4ee; stroke: #d9b3a6; stroke-width: 1; }
.cells circle { fill: #b77a6b; }
.fibers path { fill: none; stroke: #f3d9cf; stroke-width: 1.4; stroke-linecap: round; opacity: .85; }
.vessels path { fill: none; stroke: #a8433a; stroke-width: 2.4; stroke-linecap: round; opacity: .8; }
.vessels path.vein { stroke: #6b4a7a; stroke-width: 2; opacity: .55; }
.fat circle { fill: #f2dcc0; stroke: #d6a97f; stroke-width: 1.2; }
.nerve { fill: none; stroke: #f6e6a8; stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(246, 230, 168, .8)); }
.follicle__sheath { fill: #e6bcae; stroke: #a8685a; stroke-width: 1.2; }
.follicle__hair { fill: none; stroke: #3a221d; stroke-width: 5; stroke-linecap: round; }
.follicle__bulb { fill: #7a3f33; }
.scan { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 5 6; }
.skin__tags { position: absolute; inset: 0; pointer-events: none; }
.tag {
  position: absolute; right: -4px; transform: translate(0, -50%);
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 999px; background: var(--ink); color: var(--ivory);
  opacity: .25; transition: opacity .4s;
}
.tag.is-active { opacity: 1; background: var(--accent); }
.tag[data-tag="0"] { top: 9%; } .tag[data-tag="1"] { top: 38%; } .tag[data-tag="2"] { top: 76%; }

.layers__list { list-style: none; margin: 0; padding: 0; position: relative; min-height: 180px; }
.layer { position: absolute; inset: 0 0 auto 0; }
html:not(.js) .layer, .no-motion .layer { position: relative; margin-bottom: 48px; }
.layer__meta { margin: 0 0 18px; color: var(--muted); display: flex; gap: 12px; align-items: center; }
.layer__meta span { color: var(--accent); }
.layer__title {
  margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5.6vw, 96px); line-height: .95; letter-spacing: -0.01em;
}
.layer__area { margin: 14px 0 0; font-weight: 600; font-size: 15px; }
.layer__text { margin: 12px 0 0; max-width: 38ch; color: var(--muted); font-size: clamp(16px, 1.15vw, 19px); }
.layers__progress { position: absolute; left: max(var(--gutter), 12vw); right: var(--gutter); bottom: 20px; height: 1px; background: var(--line); }
.layers__progress span { display: block; height: 100%; background: var(--fg); transform-origin: left; transform: scaleX(0); }

@media (max-width: 900px) {
  .layers__pin { padding-left: var(--gutter); }
  .layers__title { text-align: left; }
  .layers__stage { grid-template-columns: 1fr; grid-template-rows: minmax(0, 54vh) auto; gap: 18px; align-content: center; }
  .skin, .skin__svg { max-height: 54vh; }
  .layers__list { min-height: 110px; }
  .layer__title { font-size: 44px; }
  .layers__progress { left: var(--gutter); }
}

/* ---------- Consulta ---------- */
.consult { overflow: hidden; }
.consult__pin { min-height: 100svh; display: grid; grid-template-rows: auto 1fr; padding: clamp(84px, 12vh, 120px) 0 clamp(28px, 6vh, 64px); }
.consult__head { padding: 0 var(--gutter); padding-left: max(var(--gutter), 12vw); }
.consult__head .mono { margin: 0 0 18px; color: var(--muted); }
.consult__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.4vw, 92px); line-height: .98; letter-spacing: -0.01em; }
.consult__title em { color: var(--ivory); }
.consult__track {
  position: relative; display: flex; align-items: center; gap: clamp(20px, 3vw, 48px);
  width: max-content; padding: 0 var(--gutter) 0 max(var(--gutter), 12vw); margin-top: clamp(24px, 5vh, 56px);
}
.consult__line { position: absolute; left: 0; right: 0; top: 50%; height: 40px; width: 100%; transform: translateY(-50%); z-index: 0; }
.consult__line path { fill: none; stroke: var(--fg); stroke-opacity: .35; stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.step {
  position: relative; z-index: 1;
  width: clamp(280px, 30vw, 440px); aspect-ratio: 4 / 5;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(24px, 2.4vw, 36px); border-radius: 28px;
  background: var(--ivory);
  color: var(--cocoa);
  box-shadow: 0 30px 60px -30px rgba(48, 45, 43, .35);
}
.step:nth-child(odd) { transform: translateY(-4vh); }
.step:nth-child(even) { transform: translateY(4vh); }
.step__num { position: absolute; top: clamp(18px, 2vw, 28px); left: clamp(24px, 2.4vw, 36px); font-family: var(--serif); font-style: italic; font-size: clamp(88px, 10vw, 160px); line-height: 1; color: var(--rose); }
.step h3 { margin: 0 0 10px; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3vw, 48px); line-height: 1; }
.step p { margin: 0; color: color-mix(in srgb, var(--cocoa) 72%, transparent); }
.no-motion .consult__track, html:not(.js) .consult__track { width: auto; flex-wrap: wrap; }
@media (max-width: 720px) { .step { width: 78vw; } }
/* Desktop: cartões e título acompanham a altura da tela para caber inteiros em notebook */
@media (min-width: 721px) {
  .consult__title { font-size: clamp(40px, min(4.6vw, 8.5svh), 84px); }
  .step { width: clamp(260px, min(26vw, 44svh), 400px); aspect-ratio: auto; height: clamp(300px, 52svh, 500px); }
  .step:nth-child(odd) { transform: translateY(-2.5svh); }
  .step:nth-child(even) { transform: translateY(2.5svh); }
  .step__num { font-size: clamp(64px, min(7vw, 13svh), 128px); }
  .step h3 { font-size: clamp(28px, min(2.6vw, 5svh), 44px); }
  .step p { font-size: clamp(14px, min(1.1vw, 2.1svh), 17px); }
}

/* ---------- Sobre ---------- */
.about { padding: clamp(100px, 16vh, 180px) var(--gutter); padding-left: max(var(--gutter), 12vw); }
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
.about__portrait { margin: 0; }
.about__photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 28px 28px; overflow: hidden;
  background:
    radial-gradient(70% 55% at 50% 38%, #c98f80 0%, transparent 70%),
    radial-gradient(90% 60% at 50% 110%, #8f5648 0%, transparent 70%),
    #5a322a;
  display: grid; place-items: center;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.about__portrait figcaption { margin-top: 14px; color: var(--muted); }
.about__copy > .mono { margin: 0 0 22px; color: var(--muted); }
.about__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 86px); line-height: .98; letter-spacing: -0.01em; }
.about__title em { color: var(--rose); }
.about__text { margin: 26px 0 0; max-width: 44ch; font-size: clamp(17px, 1.3vw, 21px); color: color-mix(in srgb, var(--fg) 82%, transparent); }
@media (max-width: 900px) {
  .about { padding-left: var(--gutter); }
  .about__grid { grid-template-columns: 1fr; }
  .about__portrait { max-width: 420px; }
}

.timeline {
  list-style: none; margin: clamp(72px, 12vh, 140px) 0 0; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
}
.timeline::before {
  content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line);
}
.timeline__line { position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--rose); transform-origin: left; }
.timeline__item { position: relative; padding-top: 34px; }
.timeline__item::before {
  content: ""; position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--rose);
}
.timeline__item:last-child::before { background: var(--rose); }
.timeline__year { color: var(--rose); }
.timeline__item h3 { margin: 12px 0 6px; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.2vw, 36px); line-height: 1.02; }
.timeline__item h3:first-child { margin-top: 0; }
.timeline__item p { margin: 0; font-size: 14px; color: var(--muted); max-width: 30ch; }
.about__extra {
  margin-top: clamp(56px, 9vh, 100px); padding-top: 26px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px;
  font-size: 14px; color: color-mix(in srgb, var(--fg) 80%, transparent);
}
.about__extra p { margin: 0 0 12px; }
.about__extra .mono { color: var(--rose); margin-bottom: 14px; }
.about__extra strong { color: var(--fg); font-weight: 600; }
.about__extra a { text-decoration-color: var(--rose); text-underline-offset: 3px; }

/* Celular e tablet: linha do tempo vertical e extras em coluna única.
   Fica depois das regras-base para não ser sobrescrito por elas. */
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 36px; }
  .timeline::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; }
  .timeline__line { display: none; }
  .timeline__item { padding: 0 0 0 38px; }
  .timeline__item::before { top: 2px; }
  .timeline__item h3 { font-size: 30px; }
  .about__extra { grid-template-columns: 1fr; }
}
@media (min-width: 560px) and (max-width: 900px) {
  .about__extra { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 901px) and (max-width: 1200px) { .about__extra { grid-template-columns: 1fr 1fr; } }

/* Galeria da trajetória */
.gallery {
  margin-top: clamp(80px, 14vh, 160px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 36px); align-items: start;
}
.gallery__item { margin: 0; }
.gallery__item--wide { grid-column: 1 / span 7; }
.gallery__item--tall { grid-column: 9 / span 4; margin-top: clamp(60px, 16vh, 200px); }
.gallery__frame { position: relative; overflow: hidden; border-radius: 22px; background: var(--clay); }
.gallery__item--wide .gallery__frame { aspect-ratio: 1080 / 903; }
.gallery__item--tall .gallery__frame { aspect-ratio: 9 / 17; border-radius: 999px 999px 22px 22px; }
.gallery__frame img { width: 100%; height: 118%; object-fit: cover; object-position: 50% 0%; will-change: transform; }
.gallery__item--wide .gallery__frame img { height: 118%; object-position: 50% 30%; }
.gallery figcaption { margin-top: 14px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.gallery figcaption span { color: var(--rose); }
.gallery__quote {
  grid-column: 2 / span 6; margin: clamp(-60px, -6vh, -20px) 0 0;
  font-family: var(--serif); font-size: clamp(28px, 3vw, 48px); line-height: 1.08; letter-spacing: -0.01em;
}
.gallery__quote em { color: var(--rose); }
@media (max-width: 900px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery__item--wide { grid-column: 1 / -1; }
  .gallery__item--tall { grid-column: 1 / span 1; margin-top: 0; }
  .gallery__quote { grid-column: 2 / span 1; margin: 0; align-self: center; font-size: clamp(22px, 5.4vw, 30px); }
}

.gallery__frame img, .about__photo img { transition: scale 1.2s var(--ease-out); }
.gallery__frame:hover img, .about__photo:hover img { scale: 1.04; }

/* ---------- CTA ---------- */
.cta {
  min-height: 100svh; display: grid; align-content: center; justify-items: center; text-align: center;
  padding: clamp(100px, 16vh, 160px) var(--gutter) 64px;
  position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; width: 90vmax; height: 90vmax; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 26%, transparent), transparent);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta__kicker { margin: 0 0 28px; color: var(--muted); }
.cta__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(64px, 13vw, 230px); line-height: .86; letter-spacing: -0.015em; }
.cta__title .line { display: block; overflow: hidden; padding-bottom: .05em; }
.cta__title em { color: var(--rose); }
.cta__button {
  margin-top: clamp(36px, 6vh, 64px);
  display: inline-flex; align-items: center; gap: 14px; text-decoration: none;
  padding: 20px 34px; border-radius: 999px;
  background: var(--ivory); color: var(--ink);
  font-size: 15px; font-weight: 500; letter-spacing: .01em;
  transition: background .35s, color .35s, transform .35s var(--ease-out);
}
.cta__button:hover { background: var(--accent); color: var(--ivory); }
.cta__button:active { transform: scale(.98); }
.cta__button-inner { display: inline-flex; align-items: baseline; gap: .35em; }
.cta__button strong { font-family: var(--serif); font-weight: 500; font-style: italic; font-size: 1.35em; line-height: 1; }
.cta__arrow { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease-out); }
.cta__button:hover .cta__arrow { transform: translateX(4px); }
.cta__info {
  margin-top: clamp(56px, 10vh, 110px); width: 100%; max-width: 980px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; text-align: left;
  border-top: 1px solid var(--line); padding-top: 22px;
}
.cta__info p { margin: 0; }
.cta__info .mono { color: var(--muted); margin-bottom: 8px; }
@media (max-width: 720px) { .cta__info { grid-template-columns: 1fr; } }

/* ---------- Rodapé ---------- */
.footer {
  padding: 28px var(--gutter) 36px; display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between;
  font-size: 12px; color: var(--muted); border-top: 1px solid var(--line);
  align-items: center;
}
.footer p { margin: 0; }
.footer__credit { display: inline-flex; align-items: center; gap: 8px; }
.footer__credit a { display: inline-flex; padding: 4px; margin: -4px; border-radius: 4px; opacity: .45; transition: opacity .3s; }
.footer__credit a:hover, .footer__credit a:focus-visible { opacity: .9; }
.footer__credit img { width: 72px; height: auto; }
.footer__logo { flex-basis: 100%; display: flex; flex-direction: column; align-items: center; margin-bottom: 18px; }
.footer__logo picture { display: block; width: fit-content; max-width: 100%; }
.footer__logo img { display: block; width: 480px; max-width: 100%; height: auto; }
/* Mesma faixa turquesa do hero, na largura da logo */
.footer__rule { display: block; width: min(480px, 100%); height: 4px; margin-top: clamp(14px, 1.6vw, 22px); background: var(--turquesa); border-radius: 4px; }
@media (max-width: 560px) { .footer__logo img { width: 320px; } .footer__rule { width: min(320px, 100%); } }

/* ---------- Estados iniciais animados (apenas com JS e movimento ativo) ---------- */
html.js:not(.no-motion) [data-fade] { opacity: 0; transform: translateY(24px); }
.split-char { display: inline-block; will-change: transform; }
.split-word { display: inline-block; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .loader { display: none; }
}

/* Celular: logo ocupando a largura */
@media (max-width: 720px) {
  /* Conteúdo agrupado e centralizado na altura da tela */
  .hero { align-items: center; padding-top: 88px; }
  .hero__foot { margin-top: 28px; }
  .hero__title { width: 100%; }
  .hero__reg { margin-left: 17px; }
}
