:root {
  --bg: #080b10;
  --bg-raise: #0c1017;
  --text: #f3efe6;
  --muted: #a39e93;
  --gold: #e0b15a;
  --gold-hot: #f0c56e;
  --ink: #1a1408;
  --live: #ff4d3a;
  --river: #7eb0c8;
  --line: rgba(243, 239, 230, 0.14);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --pad: 6vw;
  --bar: 72px;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(90% 55% at 78% 18%, rgba(224, 177, 90, 0.08), transparent 55%),
    radial-gradient(70% 45% at 12% 88%, rgba(126, 176, 200, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  opacity: 0.11;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.55'/></svg>");
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

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

a {
  color: inherit;
}

img,
svg {
  display: block;
}

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

.frame span {
  position: fixed;
  width: 16px;
  height: 16px;
  z-index: 40;
  border-color: rgba(243, 239, 230, 0.55);
  border-style: solid;
  pointer-events: none;
}

.frame span:nth-child(1) {
  top: 12px;
  left: 12px;
  border-width: 1px 0 0 1px;
}

.frame span:nth-child(2) {
  top: 12px;
  right: 12px;
  border-width: 1px 1px 0 0;
}

.frame span:nth-child(3) {
  bottom: 12px;
  left: 12px;
  border-width: 0 0 1px 1px;
}

.frame span:nth-child(4) {
  right: 12px;
  bottom: 12px;
  border-width: 0 1px 1px 0;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(255, 77, 58, 0.55);
  animation: ping 2.4s ease-out infinite;
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 77, 58, 0.55);
  }
  100% {
    box-shadow: 0 0 0 8px rgba(255, 77, 58, 0);
  }
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: var(--bar);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--pad);
  background: rgba(8, 11, 16, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(243, 239, 230, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  justify-self: start;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand svg {
  width: 22px;
  height: 22px;
}

.topbar nav {
  display: flex;
  gap: 1.6rem;
}

.topbar nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.topbar nav a:hover {
  color: var(--text);
}

.top-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.onair,
.clock {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.onair-label,
.clock span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.clock time {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: 0.06em;
  min-width: 7.4ch;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  padding-top: var(--bar);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    460px circle at var(--mx, 72%) var(--my, 42%),
    rgba(224, 177, 90, 0.14),
    transparent 62%
  );
  pointer-events: none;
}

.hero-copy {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  padding: 6vh var(--pad) 3.5rem;
  animation: rise 0.9s ease both;
}

.hero-mark {
  grid-column: 2;
  grid-row: 1;
  width: min(100%, 480px);
  justify-self: center;
  padding-right: 3vw;
  animation: rise 1.1s ease 0.08s both;
}

.hero-mark svg {
  width: 100%;
  height: auto;
}

.kicker,
.section-label {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(4.4rem, 8.4vw, 7.6rem);
  line-height: 0.86;
  letter-spacing: -0.035em;
}

h1 span {
  display: block;
}

h1 .gold {
  font-style: italic;
  color: var(--gold);
}

h1 .live-dot {
  width: 0.13em;
  height: 0.13em;
  margin-left: 0.12em;
  transform: translateY(-0.08em);
}

.dek {
  max-width: 34rem;
  margin: 1.6rem 0 0;
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.55;
}

.signup {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0.85rem;
  max-width: 520px;
  margin-top: 2.4rem;
  scroll-margin-top: calc(var(--bar) + 16px);
}

.signup input {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(243, 239, 230, 0.38);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  padding: 0.85rem 0;
}

.signup input::placeholder {
  color: rgba(243, 239, 230, 0.42);
}

.signup input:focus {
  outline: none;
  border-bottom-color: var(--gold);
}

.signup button {
  align-self: end;
  border: none;
  background: var(--gold);
  color: var(--ink);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.95rem 1.2rem;
  cursor: pointer;
}

.signup button:hover {
  background: var(--gold-hot);
}

.signup button:disabled {
  cursor: default;
  background: var(--text);
}

.hint,
.fine,
.feedback {
  grid-column: 1 / -1;
  margin: 0;
}

.hint {
  margin-top: 0.35rem;
  color: var(--text);
  font-size: 0.92rem;
}

.fine,
.feedback {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 300;
}

.feedback.is-ok {
  color: var(--text);
}

.feedback.is-error {
  color: var(--gold-hot);
}

.ticker {
  grid-column: 1 / -1;
  grid-row: 2;
  overflow: hidden;
  border-top: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 90s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker ul {
  display: flex;
  margin: 0;
  padding: 0.95rem 0;
  list-style: none;
}

.ticker li {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding-right: 1.15rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.wave {
  animation: wave 3.6s ease-in-out infinite;
}

.wave:nth-of-type(2) {
  animation-delay: 0.45s;
}

.wave:nth-of-type(3) {
  animation-delay: 0.9s;
}

@keyframes wave {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}

.stage {
  position: relative;
  z-index: 1;
  background: var(--bg-raise);
  border-top: 1px solid var(--line);
  padding: 6.5rem 0 5.5rem;
}

.wrap {
  width: min(1180px, calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.manifesto {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: end;
}

blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4.5vw, 4.15rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

blockquote em {
  font-style: italic;
  color: var(--gold);
}

.manifesto-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.65;
}

.manifesto-copy p:last-child {
  margin-bottom: 0;
}

.grade-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-top: 5.5rem;
  scroll-margin-top: calc(var(--bar) + 16px);
}

.grade-head h2,
.fecho p {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.grade-head h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.grade-head p {
  margin: 0;
  max-width: 18rem;
  color: var(--muted);
  font-weight: 300;
  text-align: right;
}

.grade {
  counter-reset: bloco;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.slate {
  counter-increment: bloco;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  background: var(--bg-raise);
  padding: 1.35rem 1.3rem 1.6rem;
  transition: background 0.25s ease;
}

.slate:hover {
  background: #121821;
}

.slate-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.num::before {
  content: counter(bloco, decimal-leading-zero);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.45rem;
  color: var(--gold);
}

.when {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.slate h3 {
  margin: auto 0 0.7rem;
  padding-top: 2.4rem;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.slate p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.5;
}

.fecho {
  padding: 7rem var(--pad);
  text-align: center;
  border-top: 1px solid var(--line);
}

.fecho p {
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  line-height: 0.95;
}

.fecho em {
  font-style: italic;
  color: var(--gold);
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding: 1.4rem var(--pad) 1.6rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.footer p {
  margin: 0;
}

#projeto {
  scroll-margin-top: calc(var(--bar) + 12px);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .manifesto,
  .grade {
    grid-template-columns: 1fr 1fr;
  }

  .grade-head {
    align-items: start;
    flex-direction: column;
  }

  .grade-head p {
    text-align: left;
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .hero-mark {
    grid-column: 1;
    grid-row: 1;
    width: min(68vw, 260px);
    padding: 1.6rem var(--pad) 0;
    justify-self: start;
  }

  .hero-copy {
    grid-row: 2;
    align-self: start;
    padding-top: 1.2rem;
  }

  .ticker {
    grid-row: 3;
  }

  h1 {
    font-size: clamp(3.7rem, 16vw, 5.4rem);
  }
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .topbar nav,
  .onair-label {
    display: none;
  }

  .manifesto,
  .grade {
    grid-template-columns: 1fr;
  }

  .slate {
    min-height: 0;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .ticker-track {
    width: auto;
    flex-wrap: wrap;
  }

  .ticker-track ul[aria-hidden="true"] {
    display: none;
  }

  .ticker ul {
    flex-wrap: wrap;
    justify-content: center;
    padding-inline: var(--pad);
  }
}
