/* menspharma v2 · cobalto líquido
   Noite quase preta, tinta cobalto e vidro. Grotesca grande para a voz,
   itálico didone para o acento. */
:root {
  --night: #04060f;
  --night-2: #0a0f22;
  --cobalt: #0333ff;
  --cobalt-deep: #0224c4;
  --ice: #eef1ff;
  --mist: #a9b4d6;
  --sans: "Manrope", system-ui, sans-serif;
  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --g: clamp(20px, 4.4vw, 64px);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); -webkit-text-size-adjust: 100%; scrollbar-color: #2a3358 var(--night); }
body { margin: 0; font-family: var(--sans); color: var(--ice); background: var(--night); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, canvas { display: block; }
h1, h2, h3, p, ol, dl, dd { margin: 0; padding: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
::selection { background: var(--cobalt); color: #fff; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 4px; }
[data-logo] svg { display: block; width: auto; height: 100%; fill: currentColor; }

/* ---------- carregamento ---------- */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--night); display: grid; place-items: center; }
.loader-mark { height: clamp(56px, 9vw, 96px); color: var(--ice); clip-path: inset(100% 0 0 0); }
.loader-num { position: absolute; right: var(--g); bottom: calc(var(--g) + env(safe-area-inset-bottom)); font-size: 13px; letter-spacing: 0.2em; color: var(--mist); font-variant-numeric: tabular-nums; overflow: hidden; }
.no-motion .loader { display: none; }

/* ---------- cabeçalho ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; justify-content: space-between; padding: calc(16px + env(safe-area-inset-top)) var(--g) 16px; color: #fff; pointer-events: none; }
.brand { display: flex; align-items: center; color: inherit; text-decoration: none; pointer-events: auto; height: 26px; }
.brand-word { height: 15px; }
.top-tag { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.8; }

/* ---------- cursor (computador) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; mix-blend-mode: difference; pointer-events: none; opacity: 0; display: grid; place-items: center; transition: width .5s cubic-bezier(.16,1,.3,1), height .5s cubic-bezier(.16,1,.3,1), margin .5s cubic-bezier(.16,1,.3,1); }
.cursor span { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity .3s; }
.cursor.is-big { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.cursor.is-big span { opacity: 1; }
@media (pointer: coarse) { .cursor { display: none; } }

/* ---------- seções fixas ---------- */
section { position: relative; }
.pin { position: relative; height: 100svh; overflow: hidden; }
.motion .hero { height: 420svh; }
.motion .manifesto { height: 300svh; }
.motion .gallery { height: 560svh; }
.motion .bottle { height: 380svh; }
.motion .pin { position: sticky; top: 0; }

.seq, .seq-poster, .gl, .gal-fallback, .gal-fallback img { position: absolute; inset: 0; width: 100%; height: 100%; }
.seq-poster, .gal-fallback img { object-fit: cover; }
.motion .seq-poster { display: none; }
.seq { opacity: 0; }
.motion .seq { opacity: 1; }

/* ---------- 1 · hero ---------- */
.hero .pin { background: #000; }
.ink { position: absolute; inset: 0; background: var(--cobalt); opacity: 0; pointer-events: none; }
.hero-title { position: absolute; left: var(--g); right: var(--g); bottom: calc(clamp(96px, 16vh, 170px) + env(safe-area-inset-bottom)); font-weight: 500; font-size: clamp(2.9rem, 9.6vw, 10.5rem); line-height: 0.92; letter-spacing: -0.055em; }
.hero-title .row { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-title em { font-weight: 400; letter-spacing: -0.035em; }
.hero-sub { position: absolute; left: var(--g); bottom: calc(clamp(40px, 7vh, 72px) + env(safe-area-inset-bottom)); font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--mist); }
.hero-cue { position: absolute; right: var(--g); bottom: calc(clamp(40px, 7vh, 72px) + env(safe-area-inset-bottom)); width: 1px; height: 56px; background: rgb(255 255 255 / .2); overflow: hidden; }
.hero-cue i { position: absolute; inset: 0; background: #fff; animation: cue 2.4s cubic-bezier(.16,1,.3,1) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); transform-origin: top; } 56% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.word { display: inline-block; white-space: nowrap; }
.char { display: inline-block; will-change: transform; }

/* ---------- 2 · manifesto ---------- */
.manifesto .pin { background: var(--cobalt); display: flex; align-items: center; }
.mani-text { padding: 0 var(--g); max-width: 1500px; font-weight: 500; font-size: clamp(1.9rem, 5vw, 5.4rem); line-height: 1.06; letter-spacing: -0.04em; color: #fff; }
.mani-text .w { opacity: 0.16; }
.no-motion .mani-text .w { opacity: 1; }
.pill { display: inline-block; vertical-align: middle; width: 2.1em; height: 0.82em; border-radius: 999px; overflow: hidden; margin: -0.1em 0.06em 0; transform-origin: center; }
.pill img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 3 · galeria ---------- */
.gallery .pin { background: var(--night); }
.gal-fallback img { opacity: 0; }
.gal-fallback img:first-child { opacity: 1; }
.has-gl .gal-fallback { display: none; }
.gal-slides { position: absolute; inset: 0; pointer-events: none; }
.gal-slide { position: absolute; left: var(--g); bottom: calc(clamp(80px, 14vh, 150px) + env(safe-area-inset-bottom)); opacity: 0; }
.gal-slide:first-child { opacity: 1; }
.no-motion .gal-slide { position: relative; opacity: 1; }
.gal-t { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(4.2rem, 17vw, 17rem); line-height: 0.82; letter-spacing: -0.04em; overflow: hidden; padding: 0 0.04em 0.06em 0; }
.gal-slide p { margin-top: 18px; font-size: clamp(1rem, 1.3vw, 1.2rem); color: var(--ice); max-width: 26ch; line-height: 1.45; }
.gal-count { position: absolute; right: var(--g); bottom: calc(clamp(80px, 14vh, 150px) + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 14px; font-size: 13px; letter-spacing: 0.18em; font-variant-numeric: tabular-nums; color: var(--mist); }
.gal-cur { color: #fff; }
.gal-sep { width: 56px; height: 1px; background: rgb(255 255 255 / .25); position: relative; overflow: hidden; }
.gal-sep::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(var(--p, 0)); transform-origin: left; }

/* ---------- 4 · frasco ---------- */
.bottle .pin { background: #000; }
.bot-title { position: absolute; z-index: 2; left: var(--g); top: calc(96px + env(safe-area-inset-top)); font-weight: 500; font-size: clamp(2.1rem, 4.1vw, 4.8rem); line-height: 0.98; letter-spacing: -0.045em; max-width: min(10ch, 34vw); text-shadow: 0 2px 30px rgb(0 0 0 / .6); }
.bot-title em { display: block; font-weight: 400; color: var(--mist); }
.bot-points { list-style: none; position: absolute; right: var(--g); bottom: calc(clamp(64px, 12vh, 130px) + env(safe-area-inset-bottom)); width: min(30rem, 36vw); }
.bot-points li { position: absolute; right: 0; bottom: 0; width: 100%; opacity: 0; }
.no-motion .bot-points li { position: relative; opacity: 1; margin-top: 28px; }
.bot-points h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(2rem, 3.4vw, 3.4rem); letter-spacing: -0.02em; line-height: 1; }
.bot-points p { margin-top: 14px; color: var(--mist); line-height: 1.55; font-size: clamp(1rem, 1.15vw, 1.1rem); }

/* ---------- 5 · faixa ---------- */
.band { padding: clamp(64px, 10vw, 140px) 0; overflow: hidden; background: var(--night); }
.band-row { white-space: nowrap; font-weight: 500; font-size: clamp(4rem, 13vw, 13rem); line-height: 1; letter-spacing: -0.05em; will-change: transform; }
.band-row span { display: inline-block; }
.band-row em { color: var(--cobalt); font-size: 0.7em; vertical-align: 0.12em; margin: 0 0.15em; }
.band-row--out { color: transparent; -webkit-text-stroke: 1px rgb(238 241 255 / .35); font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.03em; }

/* ---------- 6 · assinatura ---------- */
.outro { min-height: 100svh; display: grid; place-items: center; align-content: center; gap: clamp(32px, 5vw, 56px); padding: 120px var(--g); background: radial-gradient(ellipse 60% 50% at 50% 45%, #0b1647 0%, var(--night) 70%); text-align: center; }
.outro-mark { height: clamp(110px, 18vw, 220px); color: #fff; }
.outro-text { font-size: clamp(1.4rem, 2.6vw, 2.4rem); line-height: 1.2; letter-spacing: -0.03em; font-weight: 500; }
.outro-text em { color: var(--mist); }

/* ---------- rodapé ---------- */
.foot { padding: clamp(56px, 8vw, 96px) var(--g) calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid rgb(255 255 255 / .08); }
.foot-word { height: clamp(36px, 7vw, 92px); color: var(--ice); }
.legal { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 18px 56px; }
.legal dt { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #8892b6; }
.legal dd { margin-top: 6px; font-size: 15px; }
.legal .todo { color: #9fb0ff; font-style: italic; }
.copy { margin-top: 40px; font-size: 12px; color: #8892b6; }

/* ---------- celular ---------- */
@media (max-width: 760px) {
  .top-tag { display: none; }
  .hero-title { font-size: clamp(2.7rem, 13.4vw, 4.6rem); }
  .bot-title { max-width: 11ch; font-size: clamp(2.1rem, 10vw, 3rem); }
  .bot-points { left: var(--g); right: var(--g); width: auto; }
  .gal-count { top: calc(70px + env(safe-area-inset-top)); bottom: auto; }
  .legal { grid-template-columns: 1fr 1fr; gap: 22px 24px; }
  .mani-text { font-size: clamp(1.75rem, 8.4vw, 2.6rem); }
}
@media (prefers-reduced-motion: reduce) { .hero-cue i { animation: none; } }

/* véus para o texto ler bem sobre o frasco e as fotos */
.bottle .pin::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgb(0 0 0 / .75), rgb(0 0 0 / 0) 40%), linear-gradient(to bottom, rgb(0 0 0 / .55), rgb(0 0 0 / 0) 30%); }
.bot-points { z-index: 2; }
@media (max-width: 760px) {
  .bottle .pin::after { background: linear-gradient(to top, rgb(0 0 0 / .92), rgb(0 0 0 / .55) 34%, rgb(0 0 0 / 0) 55%), linear-gradient(to bottom, rgb(0 0 0 / .7), rgb(0 0 0 / 0) 30%); }
}
.gallery .pin::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgb(4 6 15 / .7), rgb(4 6 15 / 0) 45%); }
.gal-slides, .gal-count { z-index: 2; }
@media (max-width: 760px) {
  /* no celular o frasco desce um pouco: o título fica no preto, acima dele */
  .bottle .seq { top: 16%; height: 84%; }
}
