/* Hero D · Tudo passa por um hormônio — prefixo .hd- */
:root {
  --hd-petroleo: #1d3541;
  --hd-petroleo-2: #2c4a58;
  --hd-tinta-2: #46565f;
  --hd-off: #f9f8f4;
  --hd-parede: #d9d5d6;
  --hd-parede-2: #cdc9c8;
  --hd-pessego: #ead4c7;
  --hd-pessego-fundo: #c98f74;
  --hd-batom: #b3302f;

  --hd-sans: "Fira Sans", system-ui, sans-serif;
  --hd-code: "Fira Code", ui-monospace, monospace;

  --hd-margem: clamp(20px, 5.6vw, 88px);
  --hd-ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--hd-off);
  color: var(--hd-petroleo);
  font-family: var(--hd-sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.hd {
  position: relative;
  min-height: 100svh;
  min-height: max(100svh, 680px);
  overflow: clip;
  isolation: isolate;
  background: var(--hd-off);
}

/* ---------- malha (manchas radiais em oklab) ---------- */
.hd-mesh { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hd-blob { position: absolute; display: block; border-radius: 50%; will-change: transform; }
.hd-blob--a { /* a parede da foto atrás dela */
  width: 95vmax; height: 95vmax; right: -30vmax; top: -38vmax;
  background: radial-gradient(closest-side in oklab, #d4d0d1, rgb(217 213 214 / 0));
  animation: hd-deriva-a 34s ease-in-out infinite alternate;
}
.hd-blob--b { /* calor de pele atrás do rosto */
  width: 60vmax; height: 60vmax; right: 2vmax; top: 4vmax;
  background: radial-gradient(closest-side in oklab, rgb(234 212 199 / .85), rgb(234 212 199 / 0));
  animation: hd-deriva-b 27s ease-in-out infinite alternate;
}
.hd-blob--c { /* lilás frio à esquerda */
  width: 70vmax; height: 70vmax; left: -30vmax; top: -20vmax;
  background: radial-gradient(closest-side in oklab, rgb(226 222 228 / .9), rgb(226 222 228 / 0));
  animation: hd-deriva-c 38s ease-in-out infinite alternate;
}
.hd-blob--d { /* petróleo muito diluído ao pé */
  width: 80vmax; height: 50vmax; left: -10vmax; bottom: -34vmax;
  background: radial-gradient(closest-side in oklab, rgb(29 53 65 / .10), rgb(29 53 65 / 0));
  animation: hd-deriva-d 31s ease-in-out infinite alternate;
}
@keyframes hd-deriva-a { to { transform: translate(-6vmax, 5vmax) scale(1.06); } }
@keyframes hd-deriva-b { to { transform: translate(-5vmax, 4vmax) scale(.92); } }
@keyframes hd-deriva-c { to { transform: translate(7vmax, 6vmax) scale(1.08); } }
@keyframes hd-deriva-d { to { transform: translate(10vmax, -3vmax) scale(1.1); } }

/* granulado fixo */
.hd::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  opacity: .05; mix-blend-mode: multiply;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- navegação ---------- */
.hd-nav {
  position: absolute; z-index: 6; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px var(--hd-margem);
}
.hd-marca { display: inline-flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--hd-petroleo); }
.hd-marca-nome { font-weight: 500; font-size: 1.06rem; letter-spacing: .01em; }
.hd-marca-sub { font-family: var(--hd-code); font-size: .72rem; color: var(--hd-tinta-2); letter-spacing: .04em; }
.hd-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 4px; border-radius: 99px;
  background: rgb(249 248 244 / .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgb(29 53 65 / .08); }
.hd-links a { display: block; padding: 9px 16px; border-radius: 99px; color: var(--hd-petroleo); text-decoration: none;
  font-size: .92rem; font-weight: 400; transition: background .3s; }
.hd-links a:hover, .hd-links a:focus-visible { background: rgb(29 53 65 / .07); }

/* ---------- retrato ---------- */
.hd-retrato {
  --hd-lado: min(100svh, 64vw, 1000px);
  position: absolute; z-index: 1; margin: 0;
  width: var(--hd-lado); height: var(--hd-lado);
  right: calc(var(--hd-lado) * -0.06); bottom: 0;
}
.hd-retrato img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: bottom;
  /* a manga cortada da foto se dissolve no papel */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%);
          mask-image: linear-gradient(to right, transparent 0, #000 16%); }

/* ---------- ondas (canvas) ---------- */
.hd-ondas { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; display: block; }

/* ---------- glândulas (origens) ---------- */
.hd-glandulas { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hd-gl, .hd-rot { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; transition: opacity .9s var(--hd-ease); }
.hd-gl.on, .hd-rot.on { opacity: 1; }
.hd-gl i, .hd-legenda li i {
  position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--hd-pessego); box-shadow: 0 0 0 1.5px var(--hd-petroleo), 0 0 0 5px rgb(234 212 199 / .35);
}
.hd-gl--mini i { left: -3px; top: -3px; width: 6px; height: 6px; }
/* sobre o rosto: só um ponto discreto entre as sobrancelhas */
.hd-gl--hip i { left: -3px; top: -3px; width: 6px; height: 6px; background: rgb(234 212 199 / .9);
  box-shadow: 0 0 0 1px rgb(29 53 65 / .55); }
.hd-gl i::after, .hd-legenda li i::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--hd-pessego); opacity: 0;
}
.hd-gl.emite i::after, .hd-legenda li.emite i::after { animation: hd-emite 1.8s var(--hd-ease); }
@keyframes hd-emite { from { transform: scale(1); opacity: .95; } to { transform: scale(4.2); opacity: 0; } }
.hd-rot b, .hd-legenda {
  font: 500 11px/1.15 var(--hd-code); letter-spacing: .02em; color: var(--hd-petroleo);
  border-radius: 6px;
  background: rgb(249 248 244 / .86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 rgb(29 53 65 / .06), inset 0 0 0 1px rgb(29 53 65 / .08);
}
.hd-rot b { position: absolute; white-space: nowrap; padding: 4px 8px; }
.hd-rot small, .hd-legenda small { display: block; font-weight: 400; font-size: 9.5px; color: #56656d; letter-spacing: .03em; margin-top: 2px; }
.hd-rot em { font-style: normal; color: var(--hd-pessego-fundo); }
.hd-rot--margem b { right: 0; top: -11px; text-align: right; }
.hd-rot--abaixo b { left: 0; top: 12px; transform: translateX(-50%); text-align: center; }
.hd-legenda { position: absolute; width: auto; height: auto; transform: translate(-50%, -100%); padding: 7px 10px 8px; white-space: nowrap; }
.hd-legenda p { margin: 0 0 5px; font-size: 9.5px; font-weight: 400; color: #56656d; letter-spacing: .04em; }
.hd-legenda p::after { content: " ↓"; color: var(--hd-pessego-fundo); }
.hd-legenda ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: auto auto; gap: 4px 10px; align-items: baseline; }
.hd-legenda li { position: relative; padding-left: 14px; display: contents; }
.hd-legenda li > span { position: relative; padding-left: 14px; }
.hd-legenda li span i { left: 0; top: 3px; width: 6px; height: 6px; box-shadow: 0 0 0 1.2px var(--hd-petroleo); }
.hd-legenda li small { display: inline; margin: 0; }

/* ---------- texto ---------- */
.hd-texto {
  position: relative; z-index: 5;
  width: min(580px, 44vw);
  margin-left: var(--hd-margem);
  min-height: inherit;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 0 56px;
}
.hd-sobre { font-family: var(--hd-code); font-size: .8rem; letter-spacing: .06em; color: var(--hd-tinta-2); margin: 0 0 22px; }
.hd-sobre::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--hd-pessego-fundo); margin-right: 10px; vertical-align: 1px; }
.hd-titulo {
  margin: 0; font-weight: 300; color: var(--hd-petroleo);
  font-size: clamp(2.5rem, 4.6vw, 4.6rem); line-height: 1.02; letter-spacing: -.028em;
}
.hd-l { display: block; overflow: clip; overflow-clip-margin: 0.25em; padding-bottom: .04em; }
.hd-l > span { display: inline-block; }
.hd-destaque { position: relative; font-style: italic; font-weight: 500; letter-spacing: -.02em; color: var(--hd-petroleo); }
.hd-onda-sub { position: absolute; left: -2%; right: -2%; width: 104%; bottom: -.06em; height: .24em; overflow: visible; }
.hd-onda-sub path { fill: none; stroke: var(--hd-pessego-fundo); stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-linecap: round; }

.hd-fala { margin: 26px 0 0; padding: 0 0 0 16px; border-left: 2px solid var(--hd-pessego); max-width: 30em; }
.hd-fala p { margin: 0; font-size: .98rem; line-height: 1.5; font-style: italic; color: var(--hd-petroleo-2); }
.hd-fala footer { margin-top: 6px; font-family: var(--hd-code); font-size: .74rem; color: var(--hd-tinta-2); letter-spacing: .02em; }

.hd-apoio { margin: 22px 0 0; font-size: 1.14rem; line-height: 1.55; color: var(--hd-tinta-2); max-width: 31em; font-weight: 300; }
.hd-apoio { color: #3c4c55; }

.hd-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }
.hd-btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  padding: 17px 28px 17px 22px; border-radius: 99px;
  background: var(--hd-petroleo); color: var(--hd-off); text-decoration: none;
  font-weight: 500; font-size: 1.02rem; letter-spacing: .005em;
  box-shadow: 0 14px 34px -14px rgb(29 53 65 / .55);
  transition: transform .4s var(--hd-ease), box-shadow .4s var(--hd-ease), background .3s;
}
.hd-btn:hover, .hd-btn:focus-visible { transform: translateY(-2px); background: #183039; box-shadow: 0 18px 40px -14px rgb(29 53 65 / .6); }
.hd-pulso { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--hd-pessego); flex: none; }
.hd-pulso::before, .hd-pulso::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--hd-pessego);
  animation: hd-pulso 3.2s var(--hd-ease) infinite;
}
.hd-pulso::after { animation-delay: .5s; }
@keyframes hd-pulso { 0% { transform: scale(1); opacity: .9; } 60%, 100% { transform: scale(3.4); opacity: 0; } }
.hd-sec { color: var(--hd-petroleo); font-weight: 500; text-decoration: none; padding: 6px 0;
  background: linear-gradient(var(--hd-pessego-fundo), var(--hd-pessego-fundo)) 0 100% / 100% 1.5px no-repeat; }
.hd-sec:hover { background-size: 100% 3px; }
a:focus-visible { outline: 2px solid var(--hd-pessego-fundo); outline-offset: 3px; }

.hd-prova { margin-top: 34px; display: grid; gap: 8px; }
.hd-nota { margin: 0; display: flex; align-items: baseline; gap: 10px; font-size: .98rem; color: #3c4c55; }
.hd-nota strong { font-weight: 700; font-size: 1.3rem; color: var(--hd-petroleo); }
.hd-estrelas { color: var(--hd-pessego-fundo); letter-spacing: .12em; font-size: .86rem; }
.hd-registro span { display: inline-block; white-space: nowrap; }
.hd-registro { margin: 0; font-family: var(--hd-code); font-size: .74rem; color: var(--hd-tinta-2); letter-spacing: .015em; }

/* ---------- entrada ---------- */
.js .hd-l > span { transform: translateY(105%); }
.js .hd-sobre, .js .hd-fala, .js .hd-apoio, .js .hd-acoes, .js .hd-prova, .js .hd-nav { opacity: 0; transform: translateY(14px); }
.js .hd-retrato { opacity: 0; transform: translateY(24px) scale(1.015); }
.js .hd-onda-sub path { stroke-dasharray: 400; stroke-dashoffset: 400; }

.hd.pronto .hd-l > span { transform: none; transition: transform 1.05s var(--hd-ease); }
.hd.pronto .hd-l:nth-child(2) > span { transition-delay: .08s; }
.hd.pronto .hd-l:nth-child(3) > span { transition-delay: .16s; }
.hd.pronto .hd-l:nth-child(4) > span { transition-delay: .24s; }
.hd.pronto .hd-nav { opacity: 1; transform: none; transition: opacity .9s, transform .9s var(--hd-ease); }
.hd.pronto .hd-sobre { opacity: 1; transform: none; transition: opacity .8s, transform .8s var(--hd-ease); }
.hd.pronto .hd-fala { opacity: 1; transform: none; transition: opacity .9s .55s, transform .9s .55s var(--hd-ease); }
.hd.pronto .hd-apoio { opacity: 1; transform: none; transition: opacity .9s .7s, transform .9s .7s var(--hd-ease); }
.hd.pronto .hd-acoes { opacity: 1; transform: none; transition: opacity .9s .85s, transform .9s .85s var(--hd-ease); }
.hd.pronto .hd-prova { opacity: 1; transform: none; transition: opacity .9s 1s, transform .9s 1s var(--hd-ease); }
.hd.pronto .hd-retrato { opacity: 1; transform: none; transition: opacity 1.4s .1s, transform 1.6s .1s var(--hd-ease); }
.hd.pronto .hd-onda-sub path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s .7s var(--hd-ease); }

/* ---------- telas baixas de notebook ---------- */
@media (min-width: 981px) and (max-height: 880px) {
  .hd-texto { padding: 92px 0 30px; }
  .hd-titulo { font-size: clamp(2.4rem, min(4.6vw, 7.4vh), 4.6rem); }
  .hd-sobre { margin-bottom: 16px; }
  .hd-fala { margin-top: 20px; }
  .hd-apoio { margin-top: 16px; font-size: 1.05rem; }
  .hd-acoes { margin-top: 24px; }
  .hd-prova { margin-top: 24px; }
}

/* ---------- notebook estreito ---------- */
@media (max-width: 1180px) and (min-width: 981px) {
  .hd-links a { padding: 8px 12px; }
  .hd-titulo { font-size: clamp(2.4rem, 4.4vw, 3.4rem); }
  .hd-apoio { font-size: 1.05rem; }
  .hd-texto { width: min(500px, 44vw); }
}

/* ---------- celular e tablet ---------- */
@media (max-width: 980px) {
  .hd { display: flex; flex-direction: column; min-height: 0; }
  .hd-nav { padding: 16px 20px; }
  .hd-links { display: none; }
  .hd-retrato {
    --hd-lado: min(100vw, 620px);
    position: relative; right: auto; bottom: auto; order: 1;
    margin: 58px auto 0;
  }
  .hd-retrato::after { /* pé do retrato assenta no papel */
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 22%;
    background: linear-gradient(to bottom in oklab, rgb(249 248 244 / 0), var(--hd-off) 92%);
  }
  .hd-retrato img { -webkit-mask-image: none; mask-image: none; }
  .hd-texto { order: 2; width: auto; margin: 18px 0 0; padding: 0 22px 48px; min-height: 0; }
  .hd-sobre { order: 0; font-size: .7rem; letter-spacing: .03em; margin-bottom: 16px; }
  .hd-titulo { order: 1; }
  .hd-acoes { order: 2; }
  .hd-fala { order: 3; margin-top: 30px; }
  .hd-apoio { order: 4; }
  .hd-prova { order: 5; margin-top: 26px; }
  .hd-titulo { font-size: clamp(2.15rem, 9.6vw, 3.6rem); }
  .hd-apoio { font-size: 1.06rem; }
  .hd-btn { flex: 1 1 100%; justify-content: center; }
  .hd-acoes { margin-top: 26px; }
  .hd-sec { margin: 0 auto; }
  .hd-rot b, .hd-legenda { font-size: 10px; }
  .hd-rot b { padding: 3px 6px; }
  .hd-rot small, .hd-legenda small, .hd-legenda p { font-size: 8.5px; }
  .hd-legenda { padding: 5px 8px 6px; }
  .hd-legenda ul { gap: 2px; grid-template-columns: auto; }
  .hd-legenda li small { display: none; }
}
@media (max-width: 380px) {
  .hd-sobre { font-size: .64rem; letter-spacing: 0; }
}
@media (max-width: 370px) {
  .hd-titulo { font-size: 2.05rem; }
}

/* ---------- movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  .hd *, .hd *::before, .hd *::after { animation: none !important; transition: none !important; }
  .js .hd-l > span, .js .hd-sobre, .js .hd-fala, .js .hd-apoio, .js .hd-acoes, .js .hd-prova, .js .hd-nav, .js .hd-retrato { opacity: 1; transform: none; }
  .js .hd-onda-sub path { stroke-dashoffset: 0; }
}
