/* Clipa Essa. Tokens em DESIGN.md. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #EFF1EF;
  --surface: #E3E6E3;
  --surface-deep: #D7DBD7;
  --field: #F7F8F6;
  --field-border: #7E837D;
  --ink: #121412;
  --ink-soft: #4B504B;
  --ink-faint: #5D625D;
  --rule: #CDD1CD;
  --rec: #D2381A;
  --rec-hover: #BC3216;
  --rec-press: #7E220E;
  --rec-text: #B3300F;
  --on-rec: #FBFBF8;
  --media: #0B0D0B;
  --on-media: #F4F5F1;
  --inverse: #121412;
  --on-inverse: #EFF1EF;
  --on-inverse-soft: #B0B3B0;

  --font-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius: 4px;
  --pill: 999px;
  --header-h: 64px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E100E;
    --surface: #181B18;
    --surface-deep: #202420;
    --field: #131613;
    --field-border: #6E736C;
    --ink: #ECEEE8;
    --ink-soft: #A7ACA5;
    --ink-faint: #8C918A;
    --rule: #2C302C;
    --rec-text: #FF6E4E;
    --rec-press: #6A1C0B;
    --inverse: #202420;
    --on-inverse: #ECEEE8;
    --on-inverse-soft: #A7ACA5;
  }
}

/* Base */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-stretch: 100%;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, video, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
a { color: inherit; }

::selection { background: var(--rec); color: var(--on-rec); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--pill);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: currentColor;
}

/* Tipografia de seção */

.headline {
  font-size: clamp(2.125rem, 4.4vw, 4rem);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1;
  letter-spacing: -0.012em;
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.section-head--wide { max-width: 58rem; }
.section-head__text {
  margin-top: 20px;
  max-width: 52ch;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Botões: tudo que é clicável com texto é pílula */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--pill);
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  font-stretch: 106%;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .15s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn--rec { background: var(--rec); color: var(--on-rec); }
.btn--rec:hover { background: var(--rec-hover); }

.btn--sm { height: 40px; padding: 0 18px; font-size: 0.875rem; }

.btn--ghost-light {
  color: var(--on-media);
  box-shadow: inset 0 0 0 1.5px rgb(244 245 241 / 0.72);
}
.btn--ghost-light:hover { background: var(--on-media); color: var(--media); box-shadow: none; }
.btn--ghost-light .icon { transition: transform .3s var(--ease); }
.btn--ghost-light:hover .icon { transform: translateX(3px); }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--rule); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.1em;
  font-size: 1.5rem;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}
.wordmark__dot {
  display: inline-block;
  width: 0.26em;
  height: 0.26em;
  border-radius: 50%;
  background: var(--rec);
}

.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .2s ease;
}
.site-nav a:hover { color: var(--ink); }

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: var(--pill);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle .icon { width: 24px; height: 24px; }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 29;
  background: var(--bg);
  overflow-y: auto;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-block: 32px 48px;
}
.mobile-menu ul { margin: 0; padding: 0; list-style: none; }
.mobile-menu li a {
  display: block;
  padding: 10px 0;
  font-size: 2.5rem;
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.1;
  text-decoration: none;
}
.mobile-menu .btn { align-self: flex-start; }

@media (max-width: 899px) {
  .site-nav, .site-header__cta { display: none; }
  .menu-toggle { display: grid; }
}
@media (min-width: 900px) {
  .mobile-menu { display: none !important; }
}
body.menu-open { overflow: hidden; }

/* Hero: bloco de mídia recortado, não seção escura */

.hero { padding: 0 12px 12px; }

.hero__frame {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  height: calc(100svh - var(--header-h) - 12px);
  min-height: 560px;
  max-height: 1040px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--media);
  color: var(--on-media);
}

.hero__video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgb(8 10 8 / 0.8) 0%, rgb(8 10 8 / 0.42) 34%, rgb(8 10 8 / 0) 64%),
    linear-gradient(to right, rgb(8 10 8 / 0.4) 0%, rgb(8 10 8 / 0) 58%);
}

.hero__content {
  width: 100%;
  max-width: 1120px;
  padding: clamp(24px, 4.6vw, 72px);
  padding-right: 88px;
}

.hero__title {
  font-size: clamp(2.75rem, 6.4vw, 6rem);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 0.95;
  letter-spacing: -0.015em;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.09em;
  margin-bottom: -0.09em;
}
.hero__title .line > span { display: block; }

.hero__lead {
  max-width: 40ch;
  margin-top: 24px;
  font-size: 1.125rem;
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero :focus-visible { outline-color: var(--on-media); }

.hero__toggle {
  position: absolute;
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(244 245 241 / 0.4);
  border-radius: var(--pill);
  background: rgb(8 10 8 / 0.45);
  color: var(--on-media);
  cursor: pointer;
  transition: background-color .2s ease;
}
.hero__toggle:hover { background: rgb(8 10 8 / 0.7); }
.hero__toggle .icon { width: 18px; height: 18px; }

@media (prefers-reduced-motion: no-preference) {
  .js .hero__title .line > span {
    transform: translateY(105%);
    animation: rise 1s var(--ease) forwards;
    animation-delay: calc(140ms + var(--i) * 100ms);
  }
  .js .hero__lead,
  .js .hero__actions {
    opacity: 0;
    animation: fade-up .9s var(--ease) forwards;
  }
  .js .hero__lead { animation-delay: .42s; }
  .js .hero__actions { animation-delay: .54s; }
  .js .hero__video { animation: settle 1.8s var(--ease) both; }
}

@keyframes rise { to { transform: none; } }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes settle {
  from { transform: scale(1.06); }
  to { transform: none; }
}

@media (max-width: 599px) {
  .hero__title { font-size: clamp(2.25rem, 10.4vw, 2.75rem); font-stretch: 104%; }
  .hero__content { padding: 28px 24px 24px; }
  .hero__toggle { top: 16px; bottom: auto; }
}

@media (min-width: 768px) {
  .hero { padding: 0 16px 16px; }
  .hero__frame { height: calc(100svh - var(--header-h) - 16px); }
}

/* Demo */

.demo { padding-block: clamp(88px, 11vw, 168px) clamp(72px, 9vw, 128px); }

.demo__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(24px, 3.4vw, 48px);
  row-gap: 32px;
}
.demo__intro { grid-column: 1 / span 4; grid-row: 1; }
.demo__control { grid-column: 1 / span 4; grid-row: 2; align-self: start; padding-top: 16px; }
.demo__stage { grid-column: 5 / -1; grid-row: 1 / span 2; }

.demo__text {
  margin-top: 24px;
  max-width: 34ch;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.demo__control {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

/* O botão físico: carcaça escura, cúpula vermelha com curso de verdade */
.rec-button {
  position: relative;
  width: 176px;
  height: 176px;
  padding: 18px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #2B302B 0%, #151815 72%);
  box-shadow:
    inset 0 2px 0 rgb(255 255 255 / 0.07),
    inset 0 -3px 6px rgb(11 13 11 / 0.4),
    0 22px 34px -16px rgb(18 20 18 / 0.55);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.rec-button__cap {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #F0745A 0%, #D2381A 44%, #A92C12 100%);
  box-shadow:
    0 9px 0 var(--rec-press),
    0 14px 16px rgb(11 13 11 / 0.35),
    inset 0 -8px 14px rgb(11 13 11 / 0.16),
    inset 0 3px 3px rgb(255 255 255 / 0.28);
  transform: translateY(-8px);
  transition: transform .08s ease-out, box-shadow .08s ease-out, filter .2s ease;
}
.rec-button:hover .rec-button__cap { filter: brightness(1.05); }
.rec-button:active .rec-button__cap,
.rec-button.is-pressed .rec-button__cap {
  transform: translateY(0);
  box-shadow:
    0 1px 0 var(--rec-press),
    0 3px 5px rgb(11 13 11 / 0.3),
    inset 0 -4px 10px rgb(11 13 11 / 0.2),
    inset 0 2px 2px rgb(255 255 255 / 0.2);
}
.rec-button:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; border-radius: 50%; }

.rec-hint {
  max-width: 30ch;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.rec-hint strong { color: var(--ink); font-weight: 700; }

/* Player da câmera */

.feed {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--media);
  color: var(--on-media);
}
.feed__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter .25s ease;
}

.feed__bar {
  position: absolute;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px 28px;
  background: linear-gradient(to bottom, rgb(8 10 8 / 0.62), rgb(8 10 8 / 0));
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.feed__tag { display: inline-flex; align-items: center; gap: 8px; }
.feed__rec {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rec);
}
.feed__time { font-variant-numeric: tabular-nums; }

.feed__rewind {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.feed__rewind .icon {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 4px 14px rgb(11 13 11 / 0.5));
}

.feed[data-state="rewind"] .feed__rewind { opacity: 1; }
.feed[data-state="rewind"] .feed__video { filter: saturate(0.35) brightness(0.72) contrast(1.15); }

/* O ponto só pisca enquanto está de fato salvando */
.feed[data-state="rewind"] .feed__rec { animation: blink .5s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: 0.15; } }

/* Lista de lances */

.clips { margin-top: 24px; }
.clips__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.clips__title {
  font-size: 1.125rem;
  font-weight: 700;
  font-stretch: 106%;
}
.clips__note { font-size: 0.875rem; color: var(--ink-faint); }

.clips__empty {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 150px;
  max-width: 46ch;
  color: var(--ink-soft);
}
.clips__empty .icon { width: 28px; height: 28px; color: var(--ink-faint); }
.clips__empty[hidden] { display: none; }

.clips__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 18px 0 0;
  list-style: none;
}
.clips__list:empty { display: none; }

.clip {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.clip canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: var(--media);
  transition: opacity .2s ease;
}
.clip:hover canvas { opacity: 0.86; }
.clip[aria-current="true"] canvas { outline: 2px solid var(--rec); outline-offset: 2px; }
.clip__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.875rem;
  font-weight: 600;
}
.clip__meta .icon { width: 14px; height: 14px; color: var(--rec-text); }
.clip__court { display: inline-flex; align-items: center; gap: 6px; }
.clip__time {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: no-preference) {
  .clip-item.is-new { animation: clip-in .55s var(--ease); }
}
@keyframes clip-in {
  from { opacity: 0; transform: translateY(-10px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1023px) {
  .demo__grid { grid-template-columns: minmax(0, 1fr); }
  .demo__stage { display: contents; }
  .demo__intro { grid-column: 1; grid-row: auto; order: 1; }
  .feed { order: 2; }
  .demo__control {
    grid-column: 1; grid-row: auto; order: 3;
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
  .clips { order: 4; margin-top: 0; }
  .rec-button { width: 136px; height: 136px; padding: 14px; }
}
@media (max-width: 599px) {
  .clips__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rec-button { width: 120px; height: 120px; padding: 12px; flex: none; }
}

/* Como funciona */

.steps { padding-block: clamp(72px, 9vw, 128px) clamp(56px, 7vw, 96px); }

.steps__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(24px, 3.4vw, 48px);
}
.steps__media { grid-column: 1 / span 5; }
.steps__frame {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  aspect-ratio: 4 / 5;
  max-height: calc(100svh - var(--header-h) - 64px);
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--media);
}
.steps__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  transition: opacity .8s var(--ease);
}

.steps__list {
  grid-column: 7 / -1;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 66svh;
  padding-block: 48px;
}
.step:first-child { justify-content: flex-start; min-height: 60svh; padding-top: 8vh; }
.step__img { display: none; }
.step__verb {
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 800;
  font-stretch: 118%;
  line-height: 1;
  letter-spacing: -0.015em;
  transition: color .5s ease;
}
.step__text {
  max-width: 34ch;
  margin-top: 20px;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

@media (min-width: 1024px) {
  .js .step .step__verb { color: var(--ink-faint); }
  .js .step.is-active .step__verb { color: var(--ink); }
}

@media (max-width: 1023px) {
  .steps__grid { grid-template-columns: minmax(0, 1fr); }
  .steps__media { display: none; }
  .steps__list {
    grid-column: 1;
    display: grid;
    gap: 56px;
  }
  .step, .step:first-child { min-height: 0; padding: 0; justify-content: flex-start; }
  .step__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: var(--pos, 50% 50%);
    border-radius: var(--radius);
    margin-bottom: 24px;
  }
  .step:first-child .step__img { object-position: 50% 30%; }
}

/* Esportes */

.sports { padding-block: clamp(72px, 9vw, 128px); }

.sports__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(24px, 3.4vw, 48px);
  align-items: start;
}
.sports__side { grid-column: 1 / span 5; }
.sports__panel { grid-column: 6 / -1; margin: 0; }

.sports__text {
  max-width: 36ch;
  margin-top: 20px;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.sports__tabs {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: 48px;
}
.sport-tab {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--ink-faint);
  font: inherit;
  font-size: clamp(1.5rem, 2.5vw, 2.125rem);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
  transition: color .25s ease;
}
.sport-tab:hover { color: var(--ink-soft); }
.sport-tab[aria-selected="true"] { color: var(--ink); }
.sport-tab .icon {
  width: 0.8em;
  height: 0.8em;
  color: var(--rec);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .3s ease, transform .4s var(--ease);
}
.sport-tab[aria-selected="true"] .icon { opacity: 1; transform: none; }

.sports__frame {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--media);
}
.sports__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  transition: opacity .6s var(--ease);
}

/* Crossfade: a foto nova entra por cima da anterior, que some quando termina */
.steps__frame img.is-front,
.sports__frame img.is-front { z-index: 1; }
.steps__frame img.is-entering,
.sports__frame img.is-entering { opacity: 0; transition: none; }

.sports__caption {
  margin-top: 18px;
  font-size: 1.125rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

@media (max-width: 1023px) {
  .sports__grid { grid-template-columns: minmax(0, 1fr); }
  .sports__side, .sports__panel { grid-column: 1; }
  .sports__tabs {
    flex-direction: row;
    gap: 8px;
    margin: 32px calc(var(--gutter) * -1) 24px;
    padding: 4px var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .sports__tabs::-webkit-scrollbar { display: none; }
  .sport-tab {
    flex: none;
    scroll-snap-align: start;
    height: 44px;
    padding: 0 18px;
    border-radius: var(--pill);
    box-shadow: inset 0 0 0 1.5px var(--rule);
    color: var(--ink-soft);
    font-size: 1rem;
    font-weight: 600;
    font-stretch: 104%;
    white-space: nowrap;
  }
  .sport-tab .icon { display: none; }
  .sport-tab[aria-selected="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
  .sports__frame { aspect-ratio: 4 / 5; }
}

/* Para arenas: bento */

.arenas { padding-block: clamp(72px, 9vw, 128px); }

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.cell {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  padding: clamp(24px, 2.8vw, 40px);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}
.cell__title {
  margin-bottom: 14px;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 800;
  font-stretch: 110%;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.cell p { max-width: 40ch; color: var(--ink-soft); }

.cell--brand { grid-column: 1 / span 7; grid-row: span 2; padding: 0; justify-content: flex-start; }
.cell__media { position: relative; flex: 1 1 0; min-height: 280px; height: 0; }
.cell--brand .cell__img { width: 100%; height: 100%; object-fit: cover; }
.cell__body { padding: clamp(24px, 2.8vw, 40px); }

/* "Bug" de transmissão: mostra onde o logo da arena entra no replay */
.bug {
  position: absolute;
  right: 18px;
  bottom: 16px;
  padding: 7px 12px 8px;
  border: 1.5px solid rgb(244 245 241 / 0.85);
  border-radius: var(--radius);
  color: var(--on-media);
  font-size: 0.875rem;
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1;
  text-shadow: 0 1px 8px rgb(11 13 11 / 0.45);
}

.cell--tint { grid-column: 8 / -1; background: var(--surface-deep); }

.cell--rec { grid-column: 8 / -1; background: var(--rec); color: var(--on-rec); }
.cell--rec p { color: var(--on-rec); }

.cell--panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: stretch;
  height: clamp(360px, 34vw, 480px);
  padding: 0;
  background: var(--inverse);
  color: var(--on-inverse);
}
.cell--panel .cell__img {
  grid-column: 1 / span 5;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: 50% 42%;
}
.cell--panel .cell__body {
  grid-column: 7 / -1;
  align-self: end;
  padding: clamp(28px, 3.4vw, 56px);
}
.cell--panel p { color: var(--on-inverse-soft); }

@media (max-width: 1023px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .cell--brand, .cell--tint, .cell--rec, .cell--panel { grid-column: 1; grid-row: auto; }
  .cell { min-height: 0; }
  .cell__media { flex: none; height: auto; aspect-ratio: 16 / 10; min-height: 0; }
  .cell--panel { grid-template-columns: minmax(0, 1fr); height: auto; }
  .cell--panel .cell__img { grid-column: 1; aspect-ratio: 16 / 10; height: auto; min-height: 0; }
  .cell--panel .cell__body { grid-column: 1; }
}

/* Dúvidas */

.faq { padding-block: clamp(72px, 9vw, 128px); }

.faq__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(24px, 3.4vw, 48px);
  row-gap: 40px;
  align-items: start;
}
.faq__side {
  grid-column: 1 / span 4;
  position: sticky;
  top: calc(var(--header-h) + 32px);
}
.faq__text {
  max-width: 30ch;
  margin-top: 20px;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.faq__list { grid-column: 6 / -1; }

.qa { border-bottom: 1px solid var(--rule); }
.qa:first-child summary { padding-top: 0; }
.qa summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  font-weight: 700;
  font-stretch: 106%;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .icon {
  width: 22px;
  height: 22px;
  margin-top: 0.2em;
  color: var(--ink-soft);
  transition: transform .35s var(--ease);
}
.qa[open] summary .icon { transform: rotate(45deg); color: var(--ink); }
.qa summary:hover .icon { color: var(--ink); }
.qa p {
  max-width: 58ch;
  padding-bottom: 28px;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

@media (max-width: 1023px) {
  .faq__grid { grid-template-columns: minmax(0, 1fr); }
  .faq__side, .faq__list { grid-column: 1; }
  .faq__side { position: static; }
}

/* Contato */

.contact { padding-block: clamp(56px, 7vw, 96px) clamp(88px, 11vw, 160px); }

.contact__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(24px, 3.4vw, 48px);
  row-gap: 40px;
  align-items: stretch;
}
.contact__media {
  grid-column: 1 / span 5;
  min-height: 600px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--media);
}
.contact__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }

.contact__body { grid-column: 7 / -1; align-self: center; }
.contact__text {
  max-width: 40ch;
  margin-top: 20px;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 16px;
  margin-top: 40px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.875rem; font-weight: 650; color: var(--ink); }
.field input,
.field select {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--field-border);
  border-radius: var(--radius);
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color .2s ease;
}
.field select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%237E837D' d='M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}
.field input:hover, .field select:hover { border-color: var(--ink-soft); }
.field input:focus-visible, .field select:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-color: var(--ink);
}
.field [aria-invalid="true"] { border-color: var(--rec-text); }
.field__help { font-size: 0.875rem; color: var(--ink-faint); }
.field__error {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--rec-text);
}
.field__error[hidden] { display: none; }

.form__foot { grid-column: 1 / -1; margin-top: 8px; }

.form__done {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--surface);
}
.form__done[hidden] { display: none; }
.form__done .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--rec-text); }
.form__done a { font-weight: 650; color: var(--ink); }

@media (max-width: 1023px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .contact__media, .contact__body { grid-column: 1; }
  .contact__media { min-height: 0; aspect-ratio: 4 / 3; order: 2; }
  .contact__body { order: 1; }
}
@media (max-width: 599px) {
  .form { grid-template-columns: minmax(0, 1fr); }
  .form__foot .btn { width: 100%; }
}

/* Rodapé */

.site-footer {
  padding: 64px 0 28px;
  border-top: 1px solid var(--rule);
  overflow: hidden;
}
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .2s ease;
}
.site-footer a:hover { color: var(--ink); }
.site-footer__mail a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.site-footer__mark {
  display: flex;
  flex-direction: column;
  margin: clamp(48px, 7vw, 96px) 0 clamp(20px, 2.4vw, 32px);
  padding-bottom: 0.16em;
  font-size: clamp(4.5rem, 27vw, 25rem);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.02em;
  line-height: 0.82;
  color: var(--ink);
}
.site-footer__mark > span { display: flex; align-items: baseline; gap: 0.06em; }
.site-footer__legal { font-size: 0.875rem; color: var(--ink-faint); }

/* Movimento reduzido: nada se mexe sozinho */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
