/* ============================================================
   LOOP STUDIOS — Design Tokens & Base
   Dark base · acid-lime → green accent · Gabarito display
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Gabarito:wght@400;500;600;700;800;900&family=Hanken+Grotesk:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

@property --beat {
  syntax: '<number>';
  initial-value: 0;
  inherits: false;
}

:root {
  /* ---- Surfaces (cool near-black) ---- */
  --bg:        #070908;
  --bg-2:      #0c0f0d;   /* cards */
  --bg-3:      #14181500; /* unused placeholder */
  --panel:     #11150f;   /* slightly green-tinted panel */
  --panel-2:   #161b14;
  --line:      rgba(255,255,255,0.10);
  --line-2:    rgba(255,255,255,0.18);
  --line-lime: rgba(196,201,209,0.22);

  /* ---- Ink ---- */
  --fg:    #ffffff;
  --fg-2:  rgba(255,255,255,0.72);
  --fg-3:  rgba(255,255,255,0.50);
  --fg-4:  rgba(255,255,255,0.34);
  --fg-5:  rgba(255,255,255,0.20);

  /* ---- Accent: SILVER (primary system accent, ~40%) ---- */
  --lime:        #c4c9d1;   /* var name kept; now silver */
  --lime-deep:   #aeb4be;
  --green:       #969ca8;   /* steel — deep gradient stop */
  --grad:        linear-gradient(115deg, #edeff2 0%, #c4c9d1 48%, #969ca8 100%);
  --grad-soft:   linear-gradient(115deg, rgba(196,201,209,0.16), rgba(150,156,168,0.16));
  --lime-10:     rgba(196,201,209,0.10);
  --lime-16:     rgba(196,201,209,0.16);
  --lime-24:     rgba(196,201,209,0.24);
  --green-12:    rgba(150,156,168,0.12);
  --glow:        0 0 24px rgba(196,201,209,0.40);
  --glow-strong: 0 0 0 1px rgba(196,201,209,0.30), 0 0 28px rgba(196,201,209,0.45), 0 0 60px rgba(150,156,168,0.18);
  --ink-on-accent: #11141a; /* dark text on silver */

  /* ---- Gold (rare highlight, ~10% — CTA + live signal only) ---- */
  --gold:        #c5a970;
  --gold-soft:   #e0cb9a;
  --gold-deep:   #9c7c44;
  --grad-gold:   linear-gradient(115deg, #e0cb9a 0%, #c5a970 48%, #9c7c44 100%);
  --gold-line:   rgba(197,169,112,0.30);
  --gold-glow:   0 0 0 1px rgba(197,169,112,0.35), 0 0 28px rgba(197,169,112,0.45), 0 14px 36px rgba(197,169,112,0.35);
  --ink-on-gold: #2a1e08;   /* warm dark text on gold */

  /* ---- Type ---- */
  --display: 'Gabarito', system-ui, sans-serif;
  --body:    'Hanken Grotesk', system-ui, sans-serif;
  --mono:    'Space Mono', ui-monospace, SFMono-Regular, monospace;

  /* ---- Radii ---- */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* ---- Spacing scale (8pt) ---- */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;

  /* ---- Shadows ---- */
  --shadow:    0 24px 60px rgba(0,0,0,0.50);
  --shadow-lg: 0 40px 100px rgba(0,0,0,0.60);

  --maxw: 1240px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Grain + grid atmosphere on the page root */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 30%, transparent 80%);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: rgba(196,201,209,0.30); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #21261d; border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #2c331f; }

/* ============================================================
   Typography utilities
   ============================================================ */
.font-display { font-family: var(--display); }
.font-mono { font-family: var(--mono); }

.t-hero {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3.4rem, 15vw, 12rem);
  line-height: 0.82;
  letter-spacing: -0.045em;
  margin: 0;
}
.t-display {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0;
}
.t-h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 0;
}
.t-h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
.t-h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}
.t-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  color: var(--fg-2);
  font-weight: 400;
}
.t-body { color: var(--fg-2); }
.t-small { font-size: 0.875rem; line-height: 1.55; color: var(--fg-3); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--lime);
  margin: 0;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}
.eyebrow.no-line::before { display: none; }
.eyebrow.dim { color: var(--fg-4); }
.eyebrow.dim::before { background: var(--fg-5); }

.mono-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fg-4);
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Oversized index numerals — beat-grid motif */
.index-xl {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3.5rem, 9vw, 8rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.14);
}
.index-xl.lit {
  -webkit-text-stroke: 1.5px rgba(196,201,209,0.55);
}

/* ============================================================
   Layout utilities
   ============================================================ */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap-wide { max-width: 1480px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { position: relative; z-index: 1; padding: clamp(72px, 11vw, 140px) 0; }
.section-tight { padding: clamp(48px, 7vw, 88px) 0; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; } .gap-4 { gap: 32px; }
.wrap-flex { flex-wrap: wrap; }

@media (max-width: 720px) {
  .wrap, .wrap-wide { padding-left: 18px; padding-right: 18px; }
}

/* ============================================================
   Signature motion (used sparingly — "tasteful")
   ============================================================ */
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.55); opacity: 0.5; }
}
@keyframes grad-pan {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes eq-bar {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

.reveal { opacity: 1; transform: translateY(22px); transition: transform .85s cubic-bezier(.16,1,.3,1); }
.reveal.in { transform: none; }

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