/* ==========================================================================
   Let's Do. – Base Styles
   Reset, Typography, Utility Classes
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  hanging-punctuation: first last;
}

@media (max-width: 767px) {
  html { scroll-snap-type: none; }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* ── Typography ── */
.t-hero {
  font-size: var(--text-hero);
  font-weight: var(--weight-bold);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.t-h1 {
  font-size: var(--text-3xl);
}

.t-h2 {
  font-size: var(--text-2xl);
}

.t-h3 {
  font-size: var(--text-xl);
}

.t-body {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

.t-small {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.t-mono {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

/* ── Links ── */
.link {
  color: var(--ld-red);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--duration-fast) var(--ease-out);
}

.link:hover {
  color: var(--ld-red-glow);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: transform 0.15s var(--ease-out), background-color 0.2s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.btn--primary {
  background-color: var(--ld-red);
  color: var(--text-primary);
}

.btn--primary:hover {
  background-color: var(--ld-red-glow);
  box-shadow: 0 0 24px var(--ld-red-alpha-40);
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0) scale(0.98);
}

.btn--ghost {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn--ghost:hover {
  border-color: var(--ld-red);
  color: var(--ld-red);
  transform: translateY(-1px);
}

.btn--ghost:active {
  transform: translateY(0) scale(0.98);
}

/* ── Layout Utilities ── */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--section-pad-x);
}

.container--narrow {
  max-width: var(--content-narrow);
}

.container--wide {
  max-width: var(--content-wide);
}

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

/* ── Focus Styles ── */
:focus-visible {
  outline: 2px solid var(--ld-red);
  outline-offset: 2px;
}

/* ── Grain / Noise Overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  mix-blend-mode: overlay;
}

@media (prefers-reduced-motion: reduce) {
  body::after { display: none; }
}

/* ── Selection ── */
::selection {
  background-color: var(--ld-red-alpha-40);
  color: var(--text-primary);
}

/* ── Scrollbar (Webkit) ── */
/* ── Custom Scrollbar ── */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(228,28,34,0.3) rgba(5,5,8,0.5);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(5,5,8,0.5); }
::-webkit-scrollbar-thumb { background: rgba(228,28,34,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(228,28,34,0.5); }

/* Hidden during intro */
.intro-active { overflow: hidden !important; }
.intro-active ::-webkit-scrollbar { width: 0; }
.intro-active * { scrollbar-width: none; }

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-snap-type: none;
    scroll-behavior: auto;
  }
}

/* ── Noscript Fallback ── */
.noscript-hero {
  display: none;
}

noscript .noscript-hero {
  display: block;
}
