/* Bacon & Caos — base: tokens, type, shared chrome (nav, cursor, curtain, footer) */

:root {
  --batom: #FF2E93;
  --chiclete: #FFB3DA;
  --algodao: #FFE6F3;
  --preto: #000;
  --branco: #fff;
  --neon: #4DF3FF;
  --vinho: #A3005A;

  --f-sans: 'Archivo', system-ui, sans-serif;
  --f-goth: 'Grenze Gotisch', 'Archivo', serif;

  --gutter: clamp(16px, 4vw, 56px);
  --line: 3px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);

  --t-xxl: clamp(4.5rem, 19vw, 20rem);
  --t-xl: clamp(3rem, 8.4vw, 8.5rem);
  --t-l: clamp(2.4rem, 5.2vw, 5.25rem);
  --t-m: clamp(1.5rem, 2.4vw, 2.25rem);
  --t-lead: clamp(1.125rem, 1.35vw, 1.375rem);
  --t-s: .9rem;

  color-scheme: light;
}

/* ---------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: hidden; }
main { overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--chiclete);
  color: var(--preto);
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--neon); color: var(--preto); }

:focus-visible {
  outline: 3px solid var(--neon);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--preto);
  border-radius: 6px;
}

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

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: .7em 1.1em; border-radius: 999px;
  background: var(--preto); color: var(--neon); font-weight: 800; text-decoration: none;
  transform: translateY(-160%);
  transition: transform .3s var(--ease-out);
}
.skip:focus { transform: none; }

/* ---------- buttons */
.btn {
  --bg: var(--preto);
  --fg: var(--branco);
  --sh: var(--preto);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 54px; padding: .85em 1.6em;
  border: var(--line) solid var(--preto); border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 750 1.0625rem/1 var(--f-sans);
  text-decoration: none; cursor: pointer;
  box-shadow: 4px 4px 0 var(--sh);
  transition: translate .3s var(--ease-out), box-shadow .3s var(--ease-out), background-color .2s, color .2s;
}
.btn:hover { translate: -2px -2px; box-shadow: 6px 6px 0 var(--sh); }
.btn:active { translate: 3px 3px; box-shadow: 1px 1px 0 var(--sh); }
.btn--black:hover { --bg: var(--neon); --fg: var(--preto); }
.btn--line { --bg: var(--branco); --fg: var(--preto); }
.btn--line:hover { --bg: var(--batom); }
.btn--neon { --bg: var(--neon); --fg: var(--preto); }
.btn--neon:hover { --bg: var(--branco); }
.btn--pink { --bg: var(--batom); --fg: var(--preto); }
.btn--pink:hover { --bg: var(--neon); }
.btn--wide { width: 100%; }

/* ---------- nav */
.nav {
  position: fixed; top: 16px; left: var(--gutter); right: var(--gutter); z-index: 60;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  pointer-events: none;
  transition: transform .55s var(--ease-out);
}
.nav > * { pointer-events: auto; }
.nav.is-hidden { transform: translateY(calc(-100% - 28px)); }
.nav__logo, .nav__links {
  background: var(--branco);
  border: var(--line) solid var(--preto);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--preto);
}
.nav__logo {
  display: flex; align-items: center; gap: .15em;
  padding: .4em 1em .5em .7em;
  text-decoration: none; line-height: 1;
}
/* the pink logo with a thin black outline baked in, so the pale chrome reads on the white pill */
.nav__logo-b { width: auto; height: 40px; margin-block: -6px; transition: rotate .35s var(--ease-back); }
.nav__logo:hover .nav__logo-b { rotate: -6deg; }
.nav__logo-c { font-family: var(--f-goth); font-weight: 800; font-size: 1.4rem; color: var(--batom); -webkit-text-stroke: .6px var(--preto); white-space: nowrap; }
.nav__links { display: flex; gap: 2px; padding: 4px; }
.nav__link {
  padding: .6em 1.05em; border-radius: 999px;
  font-weight: 750; font-size: .95rem; line-height: 1;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.nav__link:hover { background: var(--chiclete); }
.nav__link[aria-current="page"] { background: var(--algodao); }
.nav__link--cta { background: var(--preto); color: var(--branco); }
.nav__link--cta:hover { background: var(--batom); color: var(--preto); }
@media (max-width: 720px) {
  .nav { top: 10px; }
  .nav__link:not(.nav__link--cta):not(:first-child) { display: none; }
  .nav__logo { padding: .35em .8em .45em .5em; }
  .nav__logo-b { height: 32px; margin-block: -5px; }
  .nav__logo-c { font-size: 1.05rem; }
  .nav__link { white-space: nowrap; }
}

/* ---------- custom cursor (fine pointers only, enabled by JS) */
.cursor { display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor [data-drag], .has-cursor label, .has-cursor [tabindex] { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }
.cursor__dot, .cursor__ring {
  position: fixed; top: 0; left: 0; z-index: 120;
  pointer-events: none; border-radius: 50%;
  will-change: transform;
}
.cursor__dot {
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  background: var(--preto);
  box-shadow: 0 0 0 2px var(--branco);
}
.cursor__ring {
  width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border: 2px solid var(--preto);
  display: grid; place-items: center;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background-color .25s, border-color .25s;
}
.cursor__label {
  font: 850 .8rem/1 var(--f-sans); letter-spacing: .01em; color: var(--preto);
  opacity: 0; transform: scale(.6);
  transition: opacity .2s, transform .35s var(--ease-back);
  white-space: nowrap;
}
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(77, 243, 255, .25); }
.cursor.has-label .cursor__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--neon); border-color: var(--preto); }
.cursor.has-label .cursor__label { opacity: 1; transform: none; }
.cursor.has-label .cursor__dot { opacity: 0; }
.cursor.is-dark .cursor__ring { border-color: var(--branco); }
.cursor.is-dark .cursor__dot { background: var(--neon); box-shadow: 0 0 0 2px var(--preto); }
.cursor.is-hidden .cursor__ring, .cursor.is-hidden .cursor__dot { opacity: 0; }

/* ---------- curtain (preloader + page transitions) */
.curtain {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  pointer-events: none;
  /* fallback: never trap the page if JS fails */
  animation: curtain-fallback .01s 5s forwards;
}
.curtain.is-js { animation: none; }
.curtain.is-loading, .curtain.is-covering { pointer-events: auto; }
.curtain__panel { position: absolute; inset: 0; background: var(--batom); }
.curtain__word {
  position: relative; display: flex; flex-direction: column; align-items: center;
  font: 800 clamp(2.6rem, 7vw, 6.4rem)/.85 var(--f-goth);
}
.curtain__b { width: clamp(250px, 46vw, 720px); height: auto; filter: drop-shadow(10px 10px 0 var(--preto)); }
/* centred under the logo; positioned so it paints over the logo (its drop-shadow filter makes its own layer) */
.curtain__c { position: relative; z-index: 1; margin: -.5em 0 0; color: var(--branco); -webkit-text-stroke: 3px var(--preto); paint-order: stroke fill; rotate: -5deg; }
.curtain__count {
  position: absolute; right: var(--gutter); bottom: calc(var(--gutter) * .6);
  font: 900 clamp(3.5rem, 12vw, 11rem)/.8 var(--f-sans); font-stretch: 62%;
  font-variant-numeric: tabular-nums;
}
.curtain:not(.is-loading) .curtain__count { display: none; }
.curtain.is-hidden { visibility: hidden; }
@keyframes curtain-fallback { to { opacity: 0; visibility: hidden; } }

/* ---------- toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 110;
  padding: .8em 1.3em; border-radius: 999px;
  background: var(--preto); color: var(--neon);
  border: var(--line) solid var(--neon);
  font-weight: 800;
  transform: translate(-50%, 180%);
  transition: transform .5s var(--ease-back);
}
.toast.is-on { transform: translate(-50%, 0); }

/* ---------- footer */
.footer {
  position: relative;
  background: var(--preto); color: var(--branco);
  padding: clamp(56px, 8vw, 120px) var(--gutter) 28px;
  overflow: hidden;
}
.footer__word {
  display: flex; justify-content: center;
  font: 900 clamp(3.4rem, 15.4vw, 17rem)/.8 var(--f-sans);
  font-stretch: 62%;
  letter-spacing: -.01em;
  color: var(--batom);
  white-space: nowrap;
  user-select: none;
}
[data-proximity] .wd { white-space: nowrap; }
[data-proximity] .ch {
  display: inline-block;
  font-variation-settings: 'wdth' 62, 'wght' 900;
  transition: font-variation-settings .35s var(--ease-out), color .35s, text-shadow .35s;
}
/* near the pointer each letter thins, widens, warms to white and glows (JS writes the values inline) */
.footer__word .ch--amp { font-family: var(--f-goth); font-variation-settings: 'wght' 800; color: var(--neon); padding-inline: .04em; }
.footer__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  margin-top: clamp(32px, 5vw, 64px); padding-top: 20px;
  border-top: 2px solid rgba(255, 255, 255, .25);
  font-size: var(--t-s);
}
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-weight: 750; }
.footer__links a, .footer__top { text-decoration: none; }
.footer__links a:hover, .footer__top:hover { color: var(--neon); }
.footer__legal { color: rgba(255, 255, 255, .7); }
.footer__top { font-weight: 750; }

/* ---------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   MELT: a white section drips down into the pink one below it
   (home: publis into contato; media kit: formatos into the CTA)
   ========================================================= */
.melt {
  position: absolute; top: -1px; left: 0; z-index: 0;
  width: 100%; height: clamp(110px, 13.9vw, 200px);
  fill: var(--branco);
  filter: drop-shadow(0 5px 0 var(--preto));
  pointer-events: none;
}
.melt__drip { transform-box: fill-box; transform-origin: 50% 0; }
@media print { .melt { display: none; } }
