/* ─────────────────────────────────────────────────────────
   BASE — Reset, global elements, layout primitives
───────────────────────────────────────────────────────── */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: .01em;
}
a    { color: inherit; text-decoration: none; }
img  { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* Focus ring — applied globally for keyboard accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* ── Layout utilities ─────────────────────────────────── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--space-6); }

.sec       { padding: var(--space-30) 0; }
.sec.tight { padding: var(--space-20) 0; }

.hr {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* Section label (eyebrow text with side line) */
.lbl {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--pink);
  display: flex;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  margin-bottom: var(--space-4);
}
.lbl::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--pink);
  box-shadow: 0 0 8px var(--pink);
  flex-shrink: 0;
}
.lbl.center { justify-content: center; }
.lbl.center::before  { display: none; }
.lbl.center::after {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--pink);
  box-shadow: 0 0 8px var(--pink);
}

/* Section heading + body */
.title { font-size: clamp(30px, 4.2vw, 54px); line-height: 1.0; margin-bottom: 18px; }
.sub   { font-size: 16px; line-height: 1.8; color: var(--dim); max-width: 640px; }

/* ── Buttons ──────────────────────────────────────────── */
.btn-p {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 14px;
  background: var(--blue);
  color: #06151c;
  padding: 15px 34px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  transition: box-shadow var(--t-base), transform var(--t-base);
}
.btn-p:hover {
  box-shadow: 0 0 40px rgba(77, 184, 255, .45);
  transform: translateY(-2px);
}

.btn-g {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 13px;
  border: 1px solid var(--line);
  color: var(--dim);
  background: transparent;
  padding: 14px 26px;
  border-radius: 999px;
  transition: border-color var(--t-base), color var(--t-base);
}
.btn-g:hover { border-color: var(--dim); color: var(--cream); }

/* ── Noise overlay ────────────────────────────────────── */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 900;
  opacity: .03;
  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='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ── Progress bar ─────────────────────────────────────── */
#bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  z-index: 1000;
  background: linear-gradient(90deg, var(--blue), var(--pink));
  width: 0;
  box-shadow: 0 0 8px var(--blue);
  transition: width .08s linear;
}
