/* HYDR landing — tokens do kit de marca */
@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/SpaceGrotesk-Variavel.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --hydr-black: #080A0D;
  --hydr-graphite: #111316;
  --hydr-charcoal: #26292B;
  --hydr-metal: #515356;
  --hydr-silver: #E5E5E5;
  --hydr-ice: #F5F5F5;
  --hydr-blue-dark: #627F92;
  --hydr-blue: #A3BED4;
  --hydr-blue-light: #D1DEE8;
  --hydr-brand-gradient: linear-gradient(110deg, #627F92 0%, #A3BED4 52%, #D1DEE8 100%);
  --hydr-font: "Space Grotesk", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: #000; }

body {
  margin: 0;
  background: #000;
  color: var(--hydr-silver);
  font-family: var(--hydr-font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* grão de filme: dá textura ao preto e esconde degraus nos brilhos */
.grain {
  position: fixed;
  inset: -100px;
  z-index: 50;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.1 -0.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain-shift 0.9s steps(6) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-37px, 22px); }
  40% { transform: translate(28px, -41px); }
  60% { transform: translate(-19px, -27px); }
  80% { transform: translate(43px, 31px); }
  100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }

/* ───────── 01 · Abertura ───────── */
.intro {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  background: #000;
  overflow: hidden;
}

.intro__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.intro__hint {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 4vh, 40px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}
.intro__hint.is-on { opacity: 1; }

.intro__hint-text {
  font-size: 13.2px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(209, 222, 232, 0.55);
  padding-left: 0.32em;
}

.intro__hint-line {
  position: relative;
  width: 1px;
  height: 53px;
  background: rgba(209, 222, 232, 0.14);
  overflow: hidden;
}
.intro__hint-line::after {
  content: "";
  position: absolute;
  left: 0; top: -50%;
  width: 100%; height: 50%;
  background: linear-gradient(180deg, transparent, #fff);
  animation: hint-drop 2.2s cubic-bezier(.6, 0, .3, 1) infinite;
}
@keyframes hint-drop {
  0% { transform: translateY(0); }
  70%, 100% { transform: translateY(300%); }
}

.intro__replay {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.55);
  font: 500 16px/1 var(--hydr-font);
  cursor: pointer;
  opacity: 0;
  transition: opacity .6s ease, background .2s ease, color .2s ease;
}
.intro__replay.is-on { opacity: 1; }
.intro__replay:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.intro__replay:focus-visible { outline: 1px solid var(--hydr-blue); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .intro__hint-line::after { animation: none; }
}
/* Native scroll indicator in the HYDR palette. */
html { scrollbar-color: var(--hydr-blue) var(--hydr-black); scrollbar-width: thin; }
@supports selector(::-webkit-scrollbar) {
  html { scrollbar-color: auto; scrollbar-width: auto; }
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: var(--hydr-black); }
  ::-webkit-scrollbar-thumb {
    border: 2px solid var(--hydr-black);
    border-radius: 999px;
    background: linear-gradient(180deg, var(--hydr-blue-light), var(--hydr-blue) 48%, var(--hydr-blue-dark));
    background-clip: padding-box;
  }
  ::-webkit-scrollbar-thumb:hover { background: var(--hydr-blue-light); background-clip: padding-box; }
  ::-webkit-scrollbar-thumb:active { background: var(--hydr-silver); background-clip: padding-box; }
  ::-webkit-scrollbar-corner { background: var(--hydr-black); }
}
@media (forced-colors: active) {
  html { scrollbar-color: auto; scrollbar-width: auto; }
  ::-webkit-scrollbar-thumb { background: ButtonText; border-color: Canvas; }
  ::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: Canvas; }
}
