/* ============================================================
   GMR Sites — shared base styles.
   Builds on colors_and_type.css (../../colors_and_type.css)
   ============================================================ */

:root {
  --paper:        #06060A;
  --paper-2:      #0E0E14;
  --paper-3:      #16161E;
  --ink:          #FFFFFF;
  --ink-2:        #E4E4E8;
  --ink-3:        rgba(228,228,232,0.78);
  --ink-4:        rgba(228,228,232,0.55);
  --ink-5:        rgba(228,228,232,0.35);
  --hair:         rgba(228,228,232,0.12);
  --hair-2:       rgba(228,228,232,0.22);

  --c-brynx:      #3B82F6;
  --c-marketear:  #8B5CF6;
  --c-crewrev:    #34D399;
  --c-dtwin:      #6B6B80;
  --c-influrep:   #F59E0B;
  --c-geoke:      #EC4899;

  --max-w:        1320px;
  --gutter:       32px;
  --gutter-mobile: 20px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
*::selection { background: var(--ink-2); color: var(--paper); }

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

/* ---- Layout shell --------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (max-width: 720px) {
  .container { padding: 0 var(--gutter-mobile); }
}

.section {
  padding: 96px 0;
  border-top: 1px solid var(--hair);
}
.section.section-tall { padding: 128px 0; }
.section.section-short { padding: 64px 0; }
.section.bg-raised { background: var(--paper-2); }
.section.no-border { border-top: 0; }
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .section.section-tall { padding: 80px 0; }
}

/* ---- Type ---------------------------------------------------- */
.h1, .h2, .h3, .h4, .h5, .h6 {
  margin: 0;
  font-weight: 500;
  color: var(--ink);
  text-wrap: balance;
}
.h1 { font-size: clamp(56px, 9vw, 128px); line-height: 0.98; letter-spacing: -0.03em; }
.h2 { font-size: clamp(40px, 5.5vw, 72px); line-height: 1.04; letter-spacing: -0.025em; }
.h3 { font-size: clamp(32px, 4vw, 52px); line-height: 1.1; letter-spacing: -0.02em; }
.h4 { font-size: clamp(24px, 2.5vw, 32px); line-height: 1.2; letter-spacing: -0.01em; }
.h5 { font-size: 22px; line-height: 1.25; }
.h6 { font-size: 18px; line-height: 1.3; }

.body-l { font-size: 20px; line-height: 1.55; color: var(--ink-3); text-wrap: pretty; }
.body-m { font-size: 16px; line-height: 1.55; color: var(--ink-3); }
.body-s { font-size: 14px; line-height: 1.5; color: var(--ink-3); }

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow.no-rule::before { display: none; }

.mono { font-family: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, monospace; }

/* ---- Buttons + CTAs ------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: all 200ms cubic-bezier(0.2, 0.7, 0.2, 1);
  background: transparent;
  color: var(--ink-2);
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: #E4E4E8; }
.btn-secondary {
  border-color: var(--hair-2);
  color: var(--ink-2);
}
.btn-secondary:hover {
  border-color: var(--ink-2);
  color: var(--ink);
  background: var(--paper-2);
}
.btn-ghost {
  color: var(--ink-3);
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost:hover { color: var(--ink); }
.btn-arrow::after { content: "→"; font-size: 14px; }

/* ---- Logo wrappers ------------------------------------------- */
img.wm { display: block; flex-shrink: 0; max-width: 100%; height: auto; object-fit: contain; object-position: left center; }
img.wm-hero { height: 64px; }
img.wm-xl   { height: 48px; }
img.wm-l    { height: 36px; }
img.wm-m    { height: 28px; }
img.wm-s    { height: 22px; }
img.wm-xs   { height: 18px; }

/* ---- Pills + badges ------------------------------------------ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--hair-2);
  border-radius: 2px;
  color: var(--ink-2);
}
.pill .dot { width: 6px; height: 6px; display: inline-block; }
.pill.live { border-color: var(--c-crewrev); color: var(--c-crewrev); }
.pill.live .dot { background: var(--c-crewrev); }
.pill.pre  { border-color: var(--c-influrep); color: var(--c-influrep); }
.pill.pre .dot { background: var(--c-influrep); }

/* ---- Hairlines ----------------------------------------------- */
.hr { height: 1px; background: var(--hair); border: 0; }

/* ---- Cards --------------------------------------------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--hair);
  padding: 28px;
}
.card-raised {
  background: var(--paper-2);
  border: 1px solid var(--hair);
  padding: 28px;
}
.card-accent {
  background: var(--paper-2);
  border: 1px solid var(--hair);
  padding: 32px;
}

/* ---- Reveal animation --------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 500ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay:   0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay:  40ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay:  80ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 120ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 160ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 200ms; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 280ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- Utilities ----------------------------------------------- */
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.between { justify-content: space-between; }
.center { align-items: center; justify-content: center; }
.abase { align-items: baseline; }
.aend { align-items: flex-end; }
.fill { flex: 1; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 24px; }
.gap-6 { gap: 32px; }
.gap-7 { gap: 48px; }
.gap-8 { gap: 64px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 960px) {
  .grid-3, .grid-4, .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
}
