/* Cyberhat — cyberhat.com.br */

:root {
  --orange: #ff6e00;
  --orange-light: #ff8a33;
  --orange-dark: #b84f00;
  --ink: #111111;
  --paper: #fff4e2;
  --paper-dark: #f1e6d2;
  --white: #ffffff;
  --lime: #c8ff00;
  --lime-dark: #86ab00;
  --muted: #555;
  --muted-strong: #2a2a2a;
  --muted-on-dark: #e9dfcd;

  --display: 'Dela Gothic One', sans-serif;
  --body: 'Zen Kaku Gothic New', sans-serif;
  --gutter: clamp(16px, 4vw, 40px);

  /* Altura do menu fixo; o main.js mede o valor real (o menu quebra em duas linhas no celular). */
  --header-h: 70px;
}

/* ---------- Base ---------- */

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; }

button {
  margin: 0;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.header :focus-visible,
.about :focus-visible { outline-color: var(--lime); }

/* overflow-x: clip (e não hidden) para não quebrar o menu sticky */
.site {
  position: relative;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
}

/* ---------- Componentes compartilhados ---------- */

.chip {
  align-self: flex-start;
  font: 700 13px/1 var(--body);
  background: var(--ink);
  color: var(--lime);
  padding: 7px 12px;
  transform: skewX(-10deg);
}
.chip--lime { background: var(--lime); color: var(--ink); }

.lang { display: flex; gap: 6px; }
.lang__btn {
  font: 700 13px/1 var(--body);
  padding: 7px 11px;
  border: 2px solid var(--orange);
  cursor: pointer;
  transform: skewX(-10deg);
  background: transparent;
  color: var(--paper);
}
.lang__btn[aria-pressed="true"] { background: var(--orange); color: var(--ink); }

.lang--footer .lang__btn { border-color: var(--ink); color: var(--ink); }
.lang--footer .lang__btn[aria-pressed="true"] { background: var(--ink); color: var(--orange); }

/* ---------- 1. Menu ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 4px solid var(--orange);
}
.header__inner {
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  padding: 14px var(--gutter);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__logo { height: 38px; width: auto; }
.brand__name {
  display: inline-block;
  font: 400 28px/1 var(--display);
  color: var(--orange);
  transform: skewX(-8deg);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px clamp(14px, 2.4vw, 26px);
}
.nav__link {
  font: 700 15px/1 var(--body);
  color: var(--paper);
  text-decoration: none;
}

/* ---------- 2. Abertura ---------- */

.hero {
  position: relative;
  background: var(--orange);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4.4vw), 0 100%);
  padding: clamp(40px, 6vw, 72px) var(--gutter) calc(4.4vw + 110px);
}
.hero__stripe {
  position: absolute;
  left: -12%;
  top: -40%;
  width: 52%;
  height: 180%;
  background: var(--orange-light);
  transform: rotate(18deg);
}
.hero__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--ink) 1.7px, transparent 2px);
  background-size: 12px 12px;
  opacity: .26;
  -webkit-mask-image: linear-gradient(110deg, transparent 30%, #000 95%);
  mask-image: linear-gradient(110deg, transparent 30%, #000 95%);
}
.hero__kana {
  position: absolute;
  right: clamp(8px, 2vw, 24px);
  top: 32px;
  writing-mode: vertical-rl;
  font: 400 18px/1 var(--display);
  letter-spacing: .32em;
  color: var(--ink);
}
.hero__inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(40px, 5vw, 56px);
}
.hero__text {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.hero__logo {
  width: clamp(150px, 20vw, 240px);
  height: auto;
  transform: rotate(-4deg);
  filter: drop-shadow(6px 6px 0 var(--ink));
}
.hero__title {
  margin: 0;
  font: 400 clamp(34px, 4.3vw, 54px)/1.12 var(--display);
  color: var(--ink);
  text-shadow: 5px 5px 0 var(--paper);
  transform: rotate(-2deg);
  transform-origin: left center;
  text-wrap: balance;
}
.hero__sub {
  margin: 0;
  max-width: 480px;
  font: 500 17px/1.6 var(--body);
  background: var(--paper);
  padding: 14px 18px;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  text-wrap: pretty;
}
.hero__cta {
  align-self: flex-start;
  font: 400 17px/1 var(--display);
  background: var(--ink);
  color: var(--lime);
  padding: 16px 24px;
  transform: skewX(-10deg);
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--paper);
}

/* Colagem de cartazes */
.hero__visual {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  justify-content: center;
}
.collage {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1.2;
}
.poster {
  position: absolute;
  display: block;
  box-sizing: border-box;
  cursor: pointer;
  transform: rotate(var(--r));
  transition: transform .15s;
  background: var(--paper);
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 8px;
  text-align: left;
}
.poster__frame {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--ink);
  overflow: hidden;
}
.poster__frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.poster__tag {
  position: absolute;
  bottom: -16px;
  font: 400 14px/1 var(--display);
  background: var(--lime);
  color: var(--ink);
  border: 3px solid var(--ink);
  padding: 6px 10px;
  transform: rotate(var(--tr));
}
.poster--duelel { left: 0; top: 12%; width: 50%; --r: -7deg; --rh: -4deg; }
.poster--duelel .poster__tag { left: -10px; --tr: -3deg; }
.poster--multi { right: 8%; top: 0; width: 44%; --r: 6deg; --rh: 3deg; }
.poster--multi .poster__tag { right: -10px; --tr: 3deg; }
.poster--bee { left: 22%; bottom: 4%; width: 56%; --r: 2.5deg; --rh: 0deg; }
.poster--bee .poster__tag { left: -10px; --tr: -2deg; }

.collage__seal {
  position: absolute;
  right: 0;
  bottom: 12%;
  width: clamp(88px, 21%, 118px);
  aspect-ratio: 1;
  box-sizing: border-box;
  padding: 8px;
  border-radius: 50%;
  background: var(--lime);
  border: 4px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font: 400 clamp(13px, 1.4vw, 16px)/1.15 var(--display);
  transform: rotate(-12deg);
}

/* ---------- 3. Faixa de nomes ---------- */

.ticker {
  position: relative;
  z-index: 2;
  margin: calc(-2.2vw - 52px) -40px 0;
  transform: rotate(-2.5deg);
  background: var(--ink);
  padding: 14px 0 12px;
  overflow: hidden;
  border-top: 4px solid var(--lime);
  border-bottom: 4px solid var(--lime);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
  font: 400 24px/1 var(--display);
  white-space: nowrap;
  color: var(--lime);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 4. Projetos ---------- */

.projects {
  scroll-margin-top: calc(var(--header-h) - 6px);
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 84px) var(--gutter);
}
.projects__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px 24px;
  margin-bottom: 32px;
}
.projects__title {
  margin: 0;
  font: 400 clamp(38px, 5vw, 54px)/1 var(--display);
  text-shadow: 4px 4px 0 var(--orange);
}
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter {
  font: 700 15px/1 var(--body);
  padding: 11px 18px;
  border: 3px solid var(--ink);
  cursor: pointer;
  transform: skewX(-10deg);
  box-shadow: 3px 3px 0 var(--ink);
  background: var(--paper);
  color: var(--ink);
}
.filter[aria-pressed="true"] { background: var(--ink); color: var(--lime); }

/* Painel em destaque */
.feature {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 28px;
  background: var(--white);
  border: 4px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  padding: clamp(14px, 2vw, 20px);
  margin-bottom: 60px;
  transform: rotate(-.6deg) scale(1);
  transition: transform .2s cubic-bezier(.3, 1.8, .5, 1);
}
.feature.is-pop { transform: rotate(-.6deg) scale(1.015); }

.feature__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--ink);
  border: 3px solid var(--ink);
  overflow: hidden;
  align-self: start;
}
.feature__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--orange);
  background-image: radial-gradient(circle, var(--ink) 1.6px, transparent 1.9px);
  background-size: 11px 11px;
}
.feature__placeholder span {
  font: 400 20px/1 var(--display);
  background: var(--paper);
  padding: 10px 16px;
  border: 3px solid var(--ink);
}
.feature__year {
  position: absolute;
  left: 12px;
  top: 12px;
  font: 400 16px/1 var(--display);
  background: var(--lime);
  color: var(--ink);
  padding: 7px 10px;
  border: 3px solid var(--ink);
  transform: rotate(-4deg);
}
.feature__info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 4px 4px 0;
  min-width: 0;
}
.feature__name {
  margin: 0;
  font: 400 clamp(30px, 3.4vw, 40px)/1.1 var(--display);
}
.feature__desc {
  margin: 0;
  font: 500 16px/1.65 var(--body);
  text-wrap: pretty;
}
.feature__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border-top: 3px solid var(--ink);
  padding-top: 12px;
}
.feature__meta > div { display: flex; flex-direction: column; gap: 4px; }
.feature__label { font: 700 12px/1 var(--body); color: var(--muted); }
.feature__value { font: 700 15px/1.3 var(--body); }
.feature__tech { display: flex; flex-wrap: wrap; gap: 6px; }
.feature__tech span {
  font: 700 12px/1 var(--body);
  padding: 6px 10px;
  background: var(--orange);
  border: 2px solid var(--ink);
}
.feature__cta {
  align-self: flex-start;
  font: 400 17px/1 var(--display);
  background: var(--orange);
  color: var(--ink);
  padding: 15px 22px;
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  transform: skewX(-10deg);
  text-decoration: none;
  margin-top: 4px;
}
.feature__cta:active {
  box-shadow: 1px 1px 0 var(--ink);
  transform: skewX(-10deg) translate(4px, 4px);
}

/* Grupos de adesivos */
.group__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
#proximos { scroll-margin-top: calc(var(--header-h) + 14px); }
.group__title { margin: 0; font: 400 22px/1 var(--display); }
.group__rule { flex: 1; height: 4px; background: var(--ink); }

.stickers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 24px 20px;
}
.group--live .stickers { margin-bottom: 56px; }

.sticker {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  padding: 16px 16px 14px;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: var(--paper-dark);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(var(--rot, 0deg));
  transition: transform .15s, box-shadow .15s;
  text-align: left;
}
.sticker--live { background: var(--white); }
.sticker[aria-pressed="true"] { background: var(--lime); box-shadow: 7px 7px 0 var(--ink); }

.sticker__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 38px;
}
.sticker__types { font: 700 12px/1.2 var(--body); }
.sticker__year {
  flex: none;
  width: 38px;
  height: 38px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 400 13px/1 var(--display);
}
.sticker__status {
  flex: none;
  font: 700 11px/1.2 var(--body);
  padding: 5px 9px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
}
.sticker__name { font: 400 20px/1.15 var(--display); }
.sticker__tag { font: 500 13px/1.45 var(--body); color: var(--muted-strong); }

/* ---------- 5. Sobre ---------- */

.about {
  scroll-margin-top: calc(var(--header-h) - 6px);
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.about__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--orange) 1.5px, transparent 1.8px);
  background-size: 13px 13px;
  opacity: .22;
  -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 55%);
  mask-image: linear-gradient(200deg, #000 0%, transparent 55%);
  pointer-events: none;
}
.about__inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: clamp(44px, 6vw, 68px);
}
.about__top {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 56px;
  align-items: flex-end;
}
.about__intro {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.about__lead {
  margin: 0;
  font: 400 clamp(26px, 3.2vw, 38px)/1.32 var(--display);
  text-wrap: balance;
}
.about__body {
  flex: 1 1 360px;
  min-width: 0;
  margin: 0;
  font: 500 17px/1.7 var(--body);
  color: var(--muted-on-dark);
  text-wrap: pretty;
}

/* Linha do tempo (mapa de metrô) */
.timeline { display: flex; flex-direction: column; gap: 20px; }
.timeline__title {
  margin: 0;
  font: 400 18px/1 var(--display);
  color: var(--orange-light);
}
.timeline__scroll { overflow-x: auto; padding: 4px 2px 22px; }
.timeline__track {
  display: flex;
  min-width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}
.station {
  position: relative;
  flex: 1 0 150px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 16px;
}
.station--soon { padding-right: 0; }
.station__rail {
  position: absolute;
  left: 15px;
  right: 0;
  top: 11px;
  height: 8px;
  background: var(--orange);
}
.station__dot {
  position: relative;
  width: 30px;
  height: 30px;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--paper);
  border: 6px solid var(--ink);
  box-shadow: 0 0 0 3px var(--orange);
}
.station--soon .station__dot {
  background: var(--ink);
  border: 4px dashed var(--lime);
  box-shadow: none;
}
.station__year { font: 400 26px/1 var(--display); }
.station--soon .station__year { color: var(--lime); }
.station__items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.station__item,
.station__link {
  font: 700 15px/1.2 var(--body);
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.station__item {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.station__link { align-self: flex-start; text-decoration-color: var(--lime); }

/* Barra de rolagem da linha do tempo.
   scrollbar-color só dentro do @supports: no Chrome 121+ ele anula os estilos ::-webkit-scrollbar. */
[data-tl-scroll]::-webkit-scrollbar { height: 22px; }
[data-tl-scroll]::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
[data-tl-scroll]::-webkit-scrollbar-track {
  background: repeating-linear-gradient(-45deg, #262626 0 6px, #1b1b1b 6px 12px);
  border: 5px solid var(--ink);
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px var(--paper);
}
[data-tl-scroll]::-webkit-scrollbar-thumb {
  background: var(--orange);
  border: 5px solid var(--ink);
  border-radius: 999px;
  box-shadow: inset 0 -3px 0 var(--orange-dark);
}
[data-tl-scroll]::-webkit-scrollbar-thumb:hover { background: var(--lime); box-shadow: inset 0 -3px 0 var(--lime-dark); }
[data-tl-scroll]::-webkit-scrollbar-thumb:active { background: var(--paper); box-shadow: none; }
@supports not selector(::-webkit-scrollbar) {
  [data-tl-scroll] { scrollbar-color: var(--orange) #262626; scrollbar-width: auto; }
}

/* ---------- 6. Rodapé ---------- */

.footer {
  position: relative;
  background: var(--orange);
  color: var(--ink);
  border-top: 4px solid var(--ink);
  overflow: hidden;
}
.footer__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--ink) 1.6px, transparent 1.9px);
  background-size: 12px 12px;
  opacity: .2;
  -webkit-mask-image: linear-gradient(290deg, #000 0%, transparent 60%);
  mask-image: linear-gradient(290deg, #000 0%, transparent 60%);
  pointer-events: none;
}
.footer__inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(44px, 6vw, 72px) var(--gutter) 28px;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 40px);
}
.footer__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
}
.footer__logo {
  width: clamp(110px, 18vw, 230px);
  height: auto;
  filter: drop-shadow(6px 6px 0 var(--ink));
}
.footer__name {
  display: block;
  font: 400 clamp(44px, 9vw, 128px)/.95 var(--display);
  color: var(--ink);
  text-shadow: 6px 6px 0 var(--paper);
  transform: skewX(-8deg);
  transform-origin: left bottom;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 28px;
  border-top: 3px solid var(--ink);
  padding-top: 18px;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}
.footer__link {
  font: 700 15px/1 var(--body);
  color: var(--ink);
  text-decoration: none;
}
.footer__copy { font: 700 13px/1.4 var(--body); }

/* ---------- Hover (só em aparelhos com mouse) ---------- */

@media (hover: hover) {
  .nav__link:hover { color: var(--lime); }
  .hero__cta:hover { color: var(--orange-light); }
  .poster:hover { transform: rotate(var(--rh)) scale(1.03); }
  .feature__cta:hover { background: var(--lime); color: var(--ink); }
  .sticker:hover { transform: rotate(0deg) translateY(-4px); }
  .station__item:hover,
  .station__link:hover { color: var(--lime); }
  .footer__link:hover { color: var(--paper); }
}

/* ---------- Movimento reduzido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; }
  .poster, .feature, .sticker { transition: none; }
  .feature.is-pop { transform: rotate(-.6deg) scale(1); }
}
