/* HOUSECOF 2026 · site do evento
   Paleta e tipografia do lote 1 (05/11): espresso, torra, cobre e creme; Dirtyline + Sora. */

@font-face {
  font-family: "Dirtyline";
  src: url("../fonts/dirtyline.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --espresso: #28140a;
  --torra: #3e2112;
  --canela: #663e23;
  --cobre: #75371b;
  --caramelo: #b5652e;
  --creme: #f3e7cf;
  --leite: #eadcc0;

  --bg: var(--creme);
  --fg: var(--espresso);
  --accent: var(--caramelo);

  --pad: clamp(16px, 2.2vw, 40px);
  --gap: clamp(12px, 1.2vw, 20px);
  --f-display: "Dirtyline", "Sora", sans-serif;
  --f-text: "Sora", system-ui, sans-serif;
  --f-data: "Chivo Mono", ui-monospace, monospace;
  --pill-bg: var(--espresso);
  --pill-fg: var(--creme);
  --fs-micro: clamp(10px, 0.74vw, 12px);
  --fs-body: clamp(12px, 0.98vw, 15px);
  --fs-display: clamp(46px, 6.6vw, 128px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-text);
  font-size: var(--fs-body);
  line-height: 1.3;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html.is-preloading body { overflow: hidden; }
html.is-preloading .hero__media { clip-path: inset(100% 0 0 0); }
html.is-preloading .nav,
html.is-preloading .hero__bottom { opacity: 0; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-transform: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
p, h1, h2, dl, dd { margin: 0; }

::selection { background: var(--cobre); color: var(--creme); }

:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

.container { padding-inline: var(--pad); }

/* Tipos */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: 0.9;
  letter-spacing: -0.005em;
  text-transform: lowercase;
}

/* Rótulo como as pílulas das peças ("26.DEZEMBRO", "PARQUE DE EXPOSIÇÕES") */
.label {
  --notch: 4px;
  display: inline-flex;
  align-items: center;
  padding: 0.6em 1em 0.55em;
  background: var(--pill-bg);
  color: var(--pill-fg);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
}

.hero, .lineup, .cta, .menu { --pill-bg: var(--creme); --pill-fg: var(--espresso); }

/* Cantos recortados de ingresso (o tamanho do recorte vem de --notch em cada peça). Os quatro pedaços
   da máscara se sobrepõem 20% no meio: com 51% a emenda aparecia como um fio nas peças pequenas */
.label, .btn--ticket, .cursor span, .sound, .art--tall {
  -webkit-mask:
    radial-gradient(circle at 0 0, #0000 var(--notch), #000 calc(var(--notch) + 0.5px)) top left / 60% 60% no-repeat,
    radial-gradient(circle at 100% 0, #0000 var(--notch), #000 calc(var(--notch) + 0.5px)) top right / 60% 60% no-repeat,
    radial-gradient(circle at 0 100%, #0000 var(--notch), #000 calc(var(--notch) + 0.5px)) bottom left / 60% 60% no-repeat,
    radial-gradient(circle at 100% 100%, #0000 var(--notch), #000 calc(var(--notch) + 0.5px)) bottom right / 60% 60% no-repeat;
  mask:
    radial-gradient(circle at 0 0, #0000 var(--notch), #000 calc(var(--notch) + 0.5px)) top left / 60% 60% no-repeat,
    radial-gradient(circle at 100% 0, #0000 var(--notch), #000 calc(var(--notch) + 0.5px)) top right / 60% 60% no-repeat,
    radial-gradient(circle at 0 100%, #0000 var(--notch), #000 calc(var(--notch) + 0.5px)) bottom left / 60% 60% no-repeat,
    radial-gradient(circle at 100% 100%, #0000 var(--notch), #000 calc(var(--notch) + 0.5px)) bottom right / 60% 60% no-repeat;
}

.body-text {
  font-size: var(--fs-body);
  line-height: 1.32;
  text-align: justify;
}

.body-text + .body-text { margin-top: 1.2em; }

.link-arrow {
  display: inline-flex;
  gap: 0.5em;
  margin-top: 2.2em;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.12em;
}

.readout { font-family: var(--f-data); font-size: var(--fs-micro); text-transform: uppercase; }
.readout div { display: flex; gap: 0.8em; }
.readout dt { opacity: 0.55; }
.readout div + div { margin-top: 0.35em; }

/* Logo em máscara: herda a cor do texto */
.logo {
  display: block;
  aspect-ratio: 702 / 350;
  background: currentColor;
  -webkit-mask: url("../img/logo-housecof.svg") center / contain no-repeat;
  mask: url("../img/logo-housecof.svg") center / contain no-repeat;
}

.btn {
  display: inline-block;
  padding: 0.9em 1.4em;
  background: var(--creme);
  color: var(--espresso);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.12em;
}

/* Botão em forma de ingresso (cantos recortados), como o "Entre no grupo" das peças */
.btn--ticket {
  --notch: 9px;
  padding: 1.3em 2.4em;
  font-size: clamp(12px, 1vw, 15px);
  letter-spacing: 0.16em;
  transition: color 0.35s ease, transform 0.4s var(--ease-out);
}

.btn--ticket:hover { transform: translateY(-2px); }

/* Passar o mouse: a cor sobe de baixo para cima, como café enchendo a xícara */
.nav__cols a, .link-arrow, .footer__col a, .slider__btn, .btn { position: relative; isolation: isolate; white-space: nowrap; transition: color 0.35s ease; }
.nav__cols a::before, .link-arrow::before, .footer__col a::before, .slider__btn::before, .btn::before {
  content: "";
  position: absolute;
  inset: -0.3em -0.5em;
  z-index: -1;
  background: var(--caramelo);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.45s var(--ease-out);
}
.btn::before { inset: 0; }
.slider__btn:disabled::before { display: none; }

@media (hover: hover) {
  .nav__cols a:hover, .link-arrow:hover, .footer__col a:hover, .slider__btn:hover, .btn:hover { color: var(--creme); }
  .nav__cols a:hover::before, .link-arrow:hover::before, .footer__col a:hover::before, .slider__btn:hover::before, .btn:hover::before { transform: scaleY(1); }
}

/* Textura de grão por cima das cenas */
.grain {
  position: absolute;
  inset: -50%;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(4) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -1%); }
  100% { transform: translate(0, 0); }
}

/* Cor do que fica fixo (menu e moldura) segue a seção que está atrás */
.nav { color: var(--chrome, var(--creme)); transition: color 0.4s ease; }
html[data-chrome="light"] { --chrome: var(--espresso); }
html[data-chrome="dark"] { --chrome: var(--creme); }

/* Barra de rolagem: a do sistema some e entra uma linha fina na cor do menu */
html { scrollbar-width: none; }
html::-webkit-scrollbar,
body::-webkit-scrollbar { display: none; width: 0; height: 0; }

.scrollbar { position: fixed; top: 0; right: 0; bottom: 0; width: 12px; z-index: 45; color: var(--chrome, var(--creme)); transition: color 0.4s ease, opacity 0.6s ease; pointer-events: none; }
.scrollbar::before { content: ""; position: absolute; top: 8px; bottom: 8px; right: 5px; width: 1px; background: currentColor; opacity: 0.18; }
.scrollbar i { position: absolute; top: 8px; right: 4.5px; width: 2px; height: 60px; border-radius: 2px; background: currentColor; transition: width 0.25s ease, right 0.25s ease; }
html.is-preloading .scrollbar { opacity: 0; }

@media (hover: hover) and (pointer: fine) {
  .scrollbar i { pointer-events: auto; cursor: grab; }
  .scrollbar i::after { content: ""; position: absolute; inset: 0 -5px; }
  .scrollbar i:hover,
  .scrollbar.is-dragging i { width: 4px; right: 3.5px; }
  .scrollbar.is-dragging i { cursor: grabbing; }
}

/* Menu fixo */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: calc(var(--pad) * 0.9) calc(var(--pad) * 1.1);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.12em;
  pointer-events: none;
}

.nav > * { pointer-events: auto; }
.nav__logo { width: clamp(64px, 6.2vw, 110px); }
.nav__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 52%; gap: var(--gap); }
.nav__cols li { display: flex; align-items: center; gap: 0.6em; line-height: 1.6; }
.nav__cols li::before { content: ""; width: 0.42em; height: 0.42em; border-radius: 50%; background: currentColor; flex: none; }
.nav__cols .is-cta { color: var(--accent); }
html[data-chrome="dark"] .nav__cols .is-cta { color: var(--creme); }
.nav__count { font-family: var(--f-data); font-weight: 400; letter-spacing: 0.04em; white-space: nowrap; }
.nav__menu-btn { display: none; font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.14em; }

.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--pad) * 1.2);
  background: var(--espresso);
  color: var(--creme);
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
}

.menu__close { align-self: flex-end; font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.14em; }
.menu__list a { display: flex; align-items: baseline; gap: 0.6em; font-family: var(--f-display); font-size: clamp(42px, 13vw, 96px); line-height: 1; text-transform: lowercase; }
.menu__list span { font-family: var(--f-data); font-size: var(--fs-micro); opacity: 0.6; }
.menu__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 1.2em; }

/* Cursor */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  pointer-events: none;
  display: none;
}

.cursor span {
  --notch: 4px;
  display: block;
  margin: 14px 0 0 14px;
  padding: 0.65em 0.9em 0.6em;
  background: var(--espresso);
  color: var(--creme);
  font-family: var(--f-data);
  font-size: var(--fs-micro);
  white-space: nowrap;
  transform: scale(0);
  transform-origin: 0 0;
  transition: transform 0.35s var(--ease-out);
}

.cursor[data-cursor="active"] span { transform: scale(1); }
.cursor[data-cursor="edge"] span { transform: translateX(calc(-100% - 28px)) scale(1); transform-origin: 100% 0; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }

/* Botão de música */
.sound {
  --notch: 5px;
  position: fixed;
  left: 50%;
  bottom: calc(var(--pad) * 1.1);
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.65em 0.9em;
  transform: translateX(-50%);
  background: rgba(40, 20, 10, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--creme);
  font-family: var(--f-data);
  font-size: var(--fs-micro);
  transition: background 0.3s ease, opacity 0.6s ease;
}

.sound[hidden] { display: none; }
.sound:hover { background: rgba(40, 20, 10, 0.85); }
html.is-preloading .sound { opacity: 0; pointer-events: none; }
.sound__bars { display: flex; align-items: flex-end; gap: 2px; height: 11px; }
.sound__bars i { width: 2px; height: 3px; background: currentColor; transition: height 0.3s ease; }
.sound.is-playing .sound__bars i { animation: eq 0.9s ease-in-out infinite alternate; }
.sound.is-playing .sound__bars i:nth-child(2) { animation-delay: -0.3s; animation-duration: 0.7s; }
.sound.is-playing .sound__bars i:nth-child(3) { animation-delay: -0.6s; animation-duration: 1.1s; }
.sound.is-playing .sound__bars i:nth-child(4) { animation-delay: -0.15s; animation-duration: 0.8s; }

@keyframes eq {
  from { height: 3px; }
  to { height: 11px; }
}

/* Preloader: o café enche a tela de baixo para cima, com a crema na linha do líquido,
   enquanto o contador sobe até 126 BPM (o andamento da trilha) */
.loader { position: fixed; inset: 0; z-index: 30; pointer-events: none; color: var(--espresso); }
.loader__bpm { position: absolute; left: 50%; top: calc(var(--pad) * 1.6); transform: translateX(-50%); display: flex; align-items: baseline; gap: 0.3em; font-weight: 800; font-size: clamp(24px, 2.6vw, 38px); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.loader__bpm small { font-size: 0.4em; font-weight: 600; letter-spacing: 0.16em; }
.loader__tag { position: absolute; left: 50%; bottom: calc(var(--pad) * 1.6); transform: translateX(-50%); font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.18em; white-space: nowrap; }
html:not(.is-preloading) .loader { display: none; }

/* Hero */
.hero { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg); color: var(--creme); }

.hero__media {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  z-index: 1;
}

.scene { position: absolute; inset: -8% 0; }
.scene__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.sphere {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  aspect-ratio: 1;
  translate: calc(-50% + var(--px, 0px)) calc(-50% + var(--py, 0px));
  will-change: transform;
}

.hero__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(240px, 36vw, 640px);
  transform: translate(-50%, -50%);
  color: var(--creme);
  z-index: 2;
}

.hero__ink { position: absolute; top: 50%; left: 50%; width: clamp(240px, 36vw, 640px); transform: translate(-50%, -50%); color: var(--espresso); z-index: 0; }
.hero__crema {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 26px;
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(243, 231, 207, 0), rgba(243, 231, 207, 0.95) 36%, rgba(181, 101, 46, 0.85) 60%, rgba(117, 55, 27, 0));
  filter: blur(1.5px);
}
html:not(.is-preloading) .hero__ink,
html:not(.is-preloading) .hero__crema { display: none; }

.hero__bottom {
  position: absolute;
  left: calc(var(--pad) * 1.1);
  right: calc(var(--pad) * 1.1);
  bottom: calc(var(--pad) * 1.1);
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--gap);
}

.hero__intro { max-width: 290px; }
.hero__text { margin-top: 1em; font-size: var(--fs-micro); line-height: 1.35; text-align: justify; letter-spacing: 0.02em; }

/* Card do topo como ingresso destacável: canhoto com picote e número */
.next {
  --notch: 7px;
  --stub: 66px;
  --pill-bg: var(--espresso);
  --pill-fg: var(--creme);
  display: flex;
  align-items: stretch;
  gap: 0.9em;
  padding: 0.5em 0 0.5em 0.5em;
  background: var(--creme);
  color: var(--espresso);
  font-size: var(--fs-micro);
  -webkit-mask:
    radial-gradient(circle at calc(100% - var(--stub)) 0, #0000 var(--notch), #000 calc(var(--notch) + 0.5px)) top / 100% 60% no-repeat,
    radial-gradient(circle at calc(100% - var(--stub)) 100%, #0000 var(--notch), #000 calc(var(--notch) + 0.5px)) bottom / 100% 60% no-repeat;
  mask:
    radial-gradient(circle at calc(100% - var(--stub)) 0, #0000 var(--notch), #000 calc(var(--notch) + 0.5px)) top / 100% 60% no-repeat,
    radial-gradient(circle at calc(100% - var(--stub)) 100%, #0000 var(--notch), #000 calc(var(--notch) + 0.5px)) bottom / 100% 60% no-repeat;
  transition: transform 0.4s var(--ease-out);
}

.next:hover { transform: translateY(-3px); }
.next__thumb { width: clamp(64px, 5.6vw, 92px); aspect-ratio: 1; object-fit: cover; align-self: center; }
.next__info { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.45em; padding-right: 0.6em; max-width: 180px; letter-spacing: 0.06em; }
.next__info strong { font-weight: 700; }
.next__stub { flex: 0 0 var(--stub); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15em; border-left: 1.5px dashed rgba(40, 20, 10, 0.35); font-size: 9px; font-weight: 600; letter-spacing: 0.14em; }
.next__stub b { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* Indicador de rolagem: linha fina com um traço que desce em loop (aparece só no celular) */
.scroll-hint { display: none; transition: opacity 0.6s ease; }
html.is-scrolled .scroll-hint { opacity: 0; }
.scroll-hint__line { position: relative; width: 1px; height: 28px; overflow: hidden; background: rgba(243, 231, 207, 0.25); }
.scroll-hint__line i { position: absolute; top: 0; left: 0; width: 100%; height: 45%; background: var(--creme); animation: scroll-hint 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
html.is-preloading .scroll-hint { opacity: 0; }

@keyframes scroll-hint {
  from { transform: translateY(-100%); }
  to { transform: translateY(230%); }
}

/* Seções */
.section { position: relative; padding-block: clamp(90px, 11vw, 200px); }
.section__bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2em; }

/* Picote de ingresso separando as seções claras */
.steps::before, .tickets::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--pad);
  right: var(--pad);
  height: 9px;
  transform: translateY(-50%);
  background:
    radial-gradient(circle at 4.5px 50%, rgba(40, 20, 10, 0.32) 4px, transparent 4.5px),
    radial-gradient(circle at calc(100% - 4.5px) 50%, rgba(40, 20, 10, 0.32) 4px, transparent 4.5px),
    repeating-linear-gradient(90deg, rgba(40, 20, 10, 0.32) 0 7px, transparent 7px 13px) center / calc(100% - 22px) 1.5px no-repeat;
}
.section__bar .link-arrow { margin-top: 0; }

.about__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.about__head { grid-column: 2 / 7; }
.about__head .display { margin-top: 0.35em; }
.about__body { grid-column: 8 / 12; align-self: end; }

/* Arte das cartas: fundo da marca, esferas e título em Dirtyline */
.art {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--espresso) url("../img/fundo-espresso-h.webp") center / cover;
  color: var(--creme);
  isolation: isolate;
}

.art--leite { background-color: var(--leite); background-image: url("../img/fundo-leite-h.webp"); color: var(--espresso); }
.art--lote { background-color: var(--espresso); }
.art--lote::before { content: ""; position: absolute; inset: 0; background: rgba(28, 13, 6, 0.45); z-index: 0; }
.art--tall { --notch: 12px; aspect-ratio: 2 / 3; }

.art__sphere {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  aspect-ratio: 1;
  z-index: 1;
  /* vagar (--dx/--dy) e parallax da rolagem (--sy) ficam no translate; hover, revelação e reação
     dos ingressos usam transform pelo GSAP, sem transição em CSS para não amortecer nada */
  translate: var(--dx, 0px) calc(var(--dy, 0px) + var(--sy, 0px));
}

.art__title {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  text-align: center;
  font-family: var(--f-display);
  font-size: clamp(30px, 3.3vw, 62px);
  line-height: 0.92;
  text-transform: lowercase;
}

.art__title small { font-size: 0.55em; }
.art__num { font-family: var(--f-text); font-weight: 800; font-size: 1.05em; letter-spacing: -0.03em; }
.art--tall .art__title { font-size: clamp(30px, 2.9vw, 56px); }

.steps__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.card__meta,
.ticket__meta { display: flex; gap: 1.4em; margin-top: 0.8em; font-size: var(--fs-micro); letter-spacing: 0.05em; line-height: 1.45; }
.card__meta strong,
.ticket__meta strong { display: block; font-weight: 600; }
.card__idx, .ticket__plus { font-family: var(--f-data); white-space: nowrap; }
.ticket__meta { margin-top: 0.9em; padding-top: 0.9em; border-top: 1.5px dashed rgba(40, 20, 10, 0.3); }

/* Ingressos: a seção fica presa e a rolagem da página leva a faixa de cards para o lado */
.tickets { overflow: hidden; }
.slider__track { display: flex; gap: var(--gap); padding-inline: var(--pad); will-change: transform; }
.ticket { flex: 0 0 calc((100% - var(--gap) * 3) / 3.4); }

/* Telas de toque: o dedo arrasta a faixa (rolagem nativa). O card fica no centro com a margem de cada
   lado = (tela - card) / 2; o espaço do fim é um elemento, porque o Safari ignora o padding final */
.slider__track.is-swipe {
  --card: 30vw;
  --lado: 35vw;
  padding-inline: var(--lado) 0;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  will-change: auto;
}
.slider__track.is-swipe::-webkit-scrollbar { display: none; }
.slider__track.is-swipe::after { content: ""; flex: 0 0 calc(var(--lado) - var(--gap)); }
.slider__track.is-swipe .ticket { flex: 0 0 var(--card); scroll-snap-align: center; }

.slider__nav { display: flex; justify-content: center; align-items: center; gap: 1.6em; margin-top: clamp(40px, 5vw, 80px); font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.12em; }
.slider__nav[hidden] { display: none; }
.slider__btn:disabled { opacity: 0.35; cursor: default; }
.slider__dots { display: flex; align-items: center; gap: 7px; }
.slider__dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.25; transition: opacity 0.3s ease, transform 0.3s ease; }
.slider__dots i.is-active { transform: scale(1.35); }
.slider__dots i.is-active { opacity: 1; }

/* Line-up */
.lineup { background: var(--espresso); color: var(--creme); overflow: hidden; }
.lineup__bg { position: absolute; inset: 0; pointer-events: none; }
.lineup__sphere { position: absolute; aspect-ratio: 1; opacity: 0.9; }
.lineup__sphere--a { width: 34vw; left: -12vw; top: -10vw; }
.lineup__sphere--b { width: 40vw; right: -14vw; bottom: -18vw; }
.lineup__grid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.lineup__grid > div:first-child { grid-column: 2 / 7; }
.lineup__grid .display { margin-top: 0.35em; }
.lineup__side { grid-column: 8 / 12; }
.lineup__list { margin-bottom: 2.4em; }
.lineup__list li + li { margin-top: 0.5em; }

.redact {
  position: relative;
  display: inline-block;
  height: 1em;
  font-family: var(--f-display);
  font-size: clamp(30px, 3.4vw, 64px);
  line-height: 1;
  text-transform: lowercase;
  white-space: nowrap;
  vertical-align: top;
}

.redact::before { content: ""; position: absolute; inset: 0.06em 0; background: var(--creme); transform-origin: left; transition: transform 0.5s var(--ease-out); }
.redact.is-open::before { transform: scaleX(0); transform-origin: right; }
.redact__text { position: relative; opacity: 0; transition: opacity 0.2s ease; }
.redact.is-open .redact__text { opacity: 1; }

/* Local */
.place__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; }
.place__head { grid-column: 1 / 5; display: flex; flex-direction: column; padding-left: calc(var(--pad) * 2); }
.place__head .label { align-self: flex-start; }
.place__head .display { margin-top: 0.35em; font-size: clamp(38px, 3.7vw, 74px); }
.place__coords { margin-top: auto; padding-top: 3em; }
.place__globe { position: relative; grid-column: 5 / 9; aspect-ratio: 1; }
.place__globe canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.place__globe canvas:active { cursor: grabbing; }
.place__credit { position: absolute; top: 100%; right: 0; margin-top: 0.8em; font-family: var(--f-data); font-size: 9px; opacity: 0.55; text-transform: none; }
.place__side { grid-column: 9 / 12; display: flex; flex-direction: column; justify-content: space-between; gap: 2.4em; }

/* Chamada final */
.cta { position: relative; min-height: 92vh; min-height: 92svh; display: grid; place-items: center; overflow: hidden; color: var(--creme); text-align: center; }
.cta__media { position: absolute; inset: 0; background: var(--espresso); }
.cta__sphere { position: absolute; aspect-ratio: 1; }
.cta__sphere--a { width: 42vmax; left: -12vmax; top: -8vmax; }
.cta__sphere--b { width: 34vmax; right: -8vmax; bottom: -10vmax; }
.cta__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 2.2em; }
.cta__big { display: block; max-width: min(92vw, 1180px); }
.cta__big .display { font-size: clamp(54px, 8.4vw, 168px); }
.cta__note { font-size: var(--fs-micro); letter-spacing: 0.08em; max-width: 34ch; }

/* Rodapé */
.footer { padding-block: clamp(70px, 8vw, 130px) calc(var(--pad) * 1.6); }
/* Rodapé como canhoto de ingresso: picote entre a marca e os links, recortes e código de barras */
.footer__box {
  position: relative;
  display: grid;
  grid-template-columns: 3fr 9fr;
  background: var(--leite);
  -webkit-mask:
    radial-gradient(circle at 25% 0, #0000 11px, #000 11.5px) top / 100% 60% no-repeat,
    radial-gradient(circle at 25% 100%, #0000 11px, #000 11.5px) bottom / 100% 60% no-repeat;
  mask:
    radial-gradient(circle at 25% 0, #0000 11px, #000 11.5px) top / 100% 60% no-repeat,
    radial-gradient(circle at 25% 100%, #0000 11px, #000 11.5px) bottom / 100% 60% no-repeat;
}
.footer__brand { display: flex; flex-direction: column; justify-content: space-between; gap: 2.4em; padding: calc(var(--pad) * 1.1); border-right: 1.5px dashed rgba(40, 20, 10, 0.3); font-size: var(--fs-micro); letter-spacing: 0.08em; line-height: 1.6; }
.footer__code { display: flex; flex-direction: column; gap: 0.5em; }
.barcode {
  display: block;
  width: min(100%, 190px);
  height: 34px;
  background: repeating-linear-gradient(90deg, var(--espresso) 0 2px, transparent 2px 4px, var(--espresso) 4px 5px, transparent 5px 8px, var(--espresso) 8px 11px, transparent 11px 12px, var(--espresso) 12px 13px, transparent 13px 17px);
}
.footer__code span { font-weight: 800; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.footer__logo { width: clamp(90px, 9vw, 150px); }
.footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); padding: calc(var(--pad) * 1.1); font-size: var(--fs-micro); letter-spacing: 0.06em; }
.footer__head { margin-bottom: 1.8em; cursor: default; }
.footer__col li { line-height: 1.9; }

/* Cada esfera é uma camada com a imagem dentro: a camada leva os efeitos por variável (vagar, rolagem,
   mouse e a batida) e a imagem leva as animações do GSAP, que zera translate e scale do que anima */
.sphere > img, .art__sphere > img, .lineup__sphere > img, .cta__sphere > img { display: block; width: 100%; height: 100%; }

/* Esferas na batida: com o som ligado, o JS faz --beat pulsar a 126 BPM */
.sphere, .lineup__sphere, .cta__sphere, .art__sphere { scale: var(--beat, 1); }

/* Celular e tablet */
@media (max-width: 991px) {
  .nav__cols { display: none; }
  .nav__menu-btn { display: block; }
  /* depois do topo o menu ganha fundo na cor da seção, para não ficar por cima dos títulos */
  .nav { transition: color 0.4s ease, background-color 0.4s ease; }
  html.is-past-hero .nav { background-color: rgba(243, 231, 207, 0.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  html.is-past-hero[data-chrome="dark"] .nav { background-color: rgba(40, 20, 10, 0.85); }
  .about__head, .about__body, .lineup__grid > div:first-child, .lineup__side { grid-column: 1 / -1; }
  .about__body, .lineup__side { margin-top: 2.6em; max-width: 520px; }
  .steps__list { grid-template-columns: 1fr; gap: calc(var(--gap) * 2.4); }
  .slider__track.is-swipe { --card: 44vw; --lado: 28vw; }
  .place__head, .place__globe, .place__side { grid-column: 1 / -1; padding-left: 0; }
  /* o globo também cede pela altura, para título e globo caberem juntos com a barra do Safari aberta */
  .place__globe { max-width: 560px; width: min(100%, calc(100vh - 318px)); width: min(100%, calc(100svh - 318px)); justify-self: center; margin-block: 0.8em 2.6em; }
  .place__coords { padding-top: 0.8em; }
  .footer__box { grid-template-columns: 1fr; }
  .footer__box { -webkit-mask: none; mask: none; }
  .footer__brand { border-right: 0; border-bottom: 1.5px dashed rgba(40, 20, 10, 0.3); }
}

@media (max-width: 767px) {
  .sound { left: auto; right: var(--pad); transform: none; }
  .scroll-hint { position: absolute; left: calc(var(--pad) * 1.1); bottom: calc(var(--pad) * 1.1); z-index: 3; display: flex; align-items: center; gap: 0.8em; color: var(--creme); font-family: var(--f-data); font-size: var(--fs-micro); letter-spacing: 0.1em; }
  .place__credit { right: auto; left: 0; } /* crédito obrigatório do mapa fora do alcance do botão de som */
  .footer { padding-bottom: calc(var(--pad) * 1.6 + 56px); } /* o fim da página não fica embaixo do botão de som */
  .hero__bottom { flex-direction: column; align-items: stretch; gap: 1.4em; bottom: calc(var(--pad) + 52px); }
  .hero__intro { max-width: none; }
  .next__info { max-width: none; }
  .slider__track.is-swipe { --card: 74vw; --lado: 13vw; }
  .footer__cols { grid-template-columns: 1fr; gap: 0; padding-block: 0.4em; }
  .footer__head { width: 100%; margin: 0; padding-block: 1.1em; text-align: left; cursor: pointer; display: flex; justify-content: space-between; }
  .footer__head::after { content: "+"; }
  .footer__col.is-open .footer__head::after { content: "−"; }
  .footer__col + .footer__col { border-top: 1px solid rgba(40, 20, 10, 0.16); }
  .footer__col ul { height: 0; overflow: hidden; }
  .footer__col.is-open ul { height: auto; padding-bottom: 1em; }
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .redact::before, .cursor span { transition: none; }
  .scroll-hint__line i { animation: none; transform: translateY(60%); }
}
