/* ==========================================================================
   CWB RUNNER — Base / Reset / Tipografia
   ========================================================================== */

/* PRSNT WIP077 — fonte de display e títulos */
@font-face {
  font-family: "PRSNT WIP077";
  src: url("../fonts/PRSNT-WIP077/PRSNTWIP077-Regular.woff2") format("woff2"),
       url("../fonts/PRSNT-WIP077/PRSNTWIP077-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PRSNT WIP077";
  src: url("../fonts/PRSNT-WIP077/PRSNTWIP077-Medium.woff2") format("woff2"),
       url("../fonts/PRSNT-WIP077/PRSNTWIP077-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PRSNT WIP077";
  src: url("../fonts/PRSNT-WIP077/PRSNTWIP077-Bold.woff2") format("woff2"),
       url("../fonts/PRSNT-WIP077/PRSNTWIP077-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PRSNT WIP077";
  src: url("../fonts/PRSNT-WIP077/PRSNTWIP077-Heavy.woff2") format("woff2"),
       url("../fonts/PRSNT-WIP077/PRSNTWIP077-Heavy.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: auto;
  font-size: 16px;
  background: var(--black);
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  letter-spacing: var(--tracking-body);
  color: var(--text-primary);
  background: var(--black);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: none) and (pointer: coarse) {
  body { cursor: auto; }
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  outline: none;
  cursor: pointer;
}

button { cursor: pointer; }

button, a, [role="button"], input, select, textarea {
  touch-action: manipulation;
}

@media (hover: none) and (pointer: coarse) {
  button, input, textarea, select { cursor: auto; }
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

::selection {
  background: var(--accent-cyan);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: calc(var(--z-cursor) + 10);
  padding: 10px 16px;
  background: var(--white);
  color: var(--black);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--r-pill);
  transform: translateY(-150%);
  transition: transform 200ms var(--ease-smooth);
}
.skip-link:focus-visible {
  transform: translateY(0);
  outline-offset: 4px;
}

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

/* ----- Tipografia ----- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--tracking-heading);
  line-height: var(--lh-snug);
  color: var(--text-primary);
}

.t-display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 900;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
}

.t-h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-heading);
  text-wrap: balance;
}

.t-h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-heading);
  text-wrap: balance;
}

.t-h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: var(--tracking-heading);
  text-wrap: balance;
}

.t-sub {
  font-size: var(--fs-sub);
  font-weight: 400;
  line-height: 1.35;
  color: var(--text-secondary);
}

.t-body {
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  color: var(--text-secondary);
}

.t-caption {
  font-size: var(--fs-caption);
  line-height: 1.5;
  color: var(--text-tertiary);
}

.t-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-tertiary);
  display: inline-flex;
  align-items: center;
}

.t-accent { color: var(--accent-cyan); }
.t-dim { color: var(--text-tertiary); }
.t-light { font-weight: 300; }

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

.no-scroll {
  overflow: hidden;
  height: 100vh;
}

.noise {
  position: relative;
}
.noise::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.9'/></svg>");
}
