/* 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__links {
  background: var(--branco);
  border: var(--line) solid var(--preto);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--preto);
}
/* just the logo, no pill: the silver logo has a thin black outline baked in (logo-prata-contorno), so it reads on pink and white,
   and the pink glow lifts it off the black sections (same glow as the big logo on the media kit) */
.nav__logo { display: block; flex: none; line-height: 0; text-decoration: none; border-radius: 8px; }
.nav__logo-b {
  width: auto; height: 80px; margin-block: -8px;
  filter: drop-shadow(0 0 10px rgba(255, 46, 147, .45));
  transition: rotate .35s var(--ease-back), scale .35s var(--ease-back);
}
.nav__logo:hover .nav__logo-b { rotate: -6deg; scale: 1.06; }
.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); }
/* "Links" button: its own neon pill next to the menu, the link-in-bio entry (replaces Beacons), visible on every screen size */
.nav__acts { display: flex; align-items: center; gap: 10px; }
.nav__linkbtn {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .75em 1.15em; border-radius: 999px;
  background: var(--neon); color: var(--preto);
  border: var(--line) solid var(--preto);
  box-shadow: 4px 4px 0 var(--preto);
  font-weight: 800; font-size: .95rem; line-height: 1; white-space: nowrap;
  text-decoration: none;
  transition: background-color .2s, transform .2s var(--ease-back), box-shadow .2s;
}
.nav__linkbtn-i { flex: none; transition: rotate .35s var(--ease-back); }
.nav__linkbtn:hover { background: var(--batom); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--preto); }
.nav__linkbtn:hover .nav__linkbtn-i { rotate: -45deg; }
.nav__linkbtn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--preto); }
/* "Menu" button + list panel: phones only (the desktop keeps the pill menu above) */
.nav__menubtn, .menu { display: none; }
@media (max-width: 720px) {
  .nav { top: 10px; gap: 8px; }
  .nav__logo-b { height: 56px; margin-block: -6px; }
  .nav__acts { gap: 8px; }
  .nav__linkbtn { padding: .7em .9em; font-size: .9rem; box-shadow: 3px 3px 0 var(--preto); }
  /* phones: Links sits where the black pill was, and the pill menu becomes the "Menu" button that opens the list */
  .nav__links { display: none; }
  .nav__menubtn {
    display: inline-flex; align-items: center; gap: .5em;
    padding: .7em 1em; border-radius: 999px;
    background: var(--preto); color: var(--branco);
    border: var(--line) solid var(--preto);
    /* same look as the old black pill inside the white menu: black edge, white ring, black fill */
    box-shadow: inset 0 0 0 3px var(--branco), 3px 3px 0 var(--preto);
    font-weight: 800; font-size: .9rem; line-height: 1; white-space: nowrap;
    transition: background-color .2s, color .2s;
  }
  .nav__menubtn:active { transform: translate(2px, 2px); }
  .nav__menubtn-t { min-width: 3.5em; text-align: center; } /* "Menu" and "Fechar" take the same room: Links never shifts */
  .nav__menubtn-i { position: relative; width: 16px; height: 12px; flex: none; }
  .nav__menubtn-i i { position: absolute; left: 0; width: 100%; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease-back), opacity .2s; }
  .nav__menubtn-i i:nth-child(1) { top: 0; }
  .nav__menubtn-i i:nth-child(2) { top: calc(50% - 1.25px); }
  .nav__menubtn-i i:nth-child(3) { bottom: 0; }
  .menu-open .nav__menubtn { background: var(--batom); color: var(--preto); }
  .menu-open .nav__menubtn-i i:nth-child(1) { transform: translateY(4.75px) rotate(45deg); }
  .menu-open .nav__menubtn-i i:nth-child(2) { opacity: 0; }
  .menu-open .nav__menubtn-i i:nth-child(3) { transform: translateY(-4.75px) rotate(-45deg); }
  .menu-open, .menu-open body { overflow: hidden; }

  /* the list: full screen under the nav, one card per page with its sections, Links at the foot */
  .menu {
    display: block;
    position: fixed; inset: 0; z-index: 59;
    overflow-y: auto; overscroll-behavior: contain;
    background:
      radial-gradient(70% 45% at 85% 10%, rgba(77, 243, 255, .28), transparent 70%),
      radial-gradient(70% 50% at 10% 95%, rgba(255, 46, 147, .35), transparent 70%),
      var(--algodao);
    visibility: hidden; opacity: 0;
    transition: opacity .25s, visibility 0s .25s;
  }
  .menu.is-open { visibility: visible; opacity: 1; transition: opacity .25s; }
  .menu__in {
    min-height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
    padding: 88px var(--gutter) 32px;
    text-align: center;
  }
  .menu__group {
    width: min(100%, 420px);
    padding: 16px 14px 18px;
    background: var(--branco);
    border: var(--line) solid var(--preto); border-radius: 22px;
    box-shadow: 6px 6px 0 var(--preto);
    transform: translateY(14px); opacity: 0;
    transition: transform .4s var(--ease-back), opacity .25s;
  }
  .menu.is-open .menu__group { transform: none; opacity: 1; }
  .menu.is-open .menu__group + .menu__group { transition-delay: .06s; }
  .menu__group.is-here { box-shadow: 6px 6px 0 var(--batom), 6px 6px 0 3px var(--preto); }
  .menu__page { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 12px; }
  .menu__page a {
    font: 900 1.9rem/1 var(--f-sans); font-stretch: 66%; text-transform: uppercase;
    text-decoration: none; color: var(--preto);
  }
  .menu__here { padding: .3em .7em; border-radius: 999px; background: var(--preto); color: var(--neon); font-size: .72rem; font-weight: 800; line-height: 1; }
  .menu__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
  .menu__list a {
    display: inline-block; padding: .62em 1em;
    border: 2px solid var(--preto); border-radius: 999px;
    background: var(--algodao);
    font-weight: 750; font-size: .95rem; line-height: 1;
    text-decoration: none; color: var(--preto);
    transition: background-color .2s;
  }
  .menu__list a:active { background: var(--chiclete); }
  .menu__links { margin-top: 4px; font-size: 1rem; }
}

/* ---------- 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; }
.footer__credit {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255, 255, 255, .7); font-weight: 600; text-decoration: none;
}
.footer__credit img { width: 84px; height: auto; transition: transform .25s var(--ease-back); }
.footer__credit:hover span { color: var(--neon); }
.footer__credit:hover img, .footer__credit:focus-visible img { transform: rotate(-3deg) scale(1.06); }

/* ---------- 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;
  /* height follows the width (viewBox 1440x200): with a fixed cap, wide screens cut the long drips flat */
  width: 100%; height: auto; aspect-ratio: 1440 / 200; min-height: 110px;
  fill: var(--branco);
  filter: drop-shadow(0 5px 0 var(--preto));
  pointer-events: none;
}
/* the shape is one path drawn by assets/js/melt.js */
@media print { .melt { display: none; } }
/* phones: the longest drip plus its shadow ends within half a pixel of the svg's box, and an svg clips at its box:
   let it spill (the sections clip anyway) so no browser cuts the tips */
@media (max-width: 860px) { .melt { overflow: visible; } }
