/* ============================================================
   Early Media Group — 2026 identity
   Built on the EMG mark: cobalt #2742C8 / ink #17181A
   Type: Jost (display, matches the wordmark) · Inter (body)
         JetBrains Mono (the receipt layer — prices, labels)
   Spacing: 8pt system throughout. 4px half-step inside components only.
   Body type floor: 18px.
   ============================================================ */

:root {
  /* Core — taken from the logo file itself */
  --cobalt:      #2742C8;
  --cobalt-deep: #1B2E8F;
  --cobalt-tint: #E5E9FB;
  --ink:         #17181A;

  /* Neutrals — cool, deliberately not R&R's warm paper */
  --page:   #F7F8FA;
  --card:   #FFFFFF;
  --night:  #0E1116;
  --night2: #171B23;
  --rule:   #DFE3EB;
  --muted:  #5B6270;
  --muted-on-night: #A7B0C0;

  /* Venue-door wayfinding accent (used sparingly) */
  --brass:  #C98A2B;
  --brass-tint: #F6EBD8;

  /* Type */
  --display: "Jost", "Futura", "Century Gothic", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* 8pt scale */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px;
  --s6: 48px; --s7: 56px; --s8: 64px; --s10: 80px; --s12: 96px; --s16: 128px;

  --maxw: 1200px;
  --maxw-text: 720px;
  --radius: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;              /* floor */
  line-height: 28px;            /* 18 × 1.556 = 28, on the 4px grid */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cobalt-deep); }

/* ---------- Type scale (ratio-based; line-heights land on 4px) ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; margin: 0; letter-spacing: -0.015em; }

.h-hero  { font-size: clamp(40px, 6vw, 76px); line-height: 1.06; letter-spacing: -0.025em; }
h1       { font-size: clamp(36px, 5vw, 60px); line-height: 1.1;  letter-spacing: -0.02em; }
h2       { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.16; }
h3       { font-size: clamp(22px, 2vw, 28px); line-height: 1.28; }
h4       { font-size: 20px; line-height: 28px; }

p { margin: 0 0 var(--s3); }
p:last-child { margin-bottom: 0; }

.lede { font-size: clamp(20px, 2.2vw, 24px); line-height: 36px; color: var(--muted); }
.small { font-size: 16px; line-height: 24px; color: var(--muted); }

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin: 0 0 var(--s2);
  display: block;
}
.eyebrow.on-night { color: #8FA3F0; }
.eyebrow.brass { color: var(--brass); }

/* The receipt layer — every number on this site is mono */
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s3); }
.wrap-text { max-width: var(--maxw-text); }

section { padding: var(--s10) 0; }
@media (min-width: 900px) { section { padding: var(--s16) 0; } }

.band-night { background: var(--night); color: #fff; }
.band-night h1, .band-night h2, .band-night h3 { color: #fff; }
.band-night .lede, .band-night .small { color: var(--muted-on-night); }
.band-tint { background: var(--cobalt-tint); }
.band-card { background: var(--card); }

.stack > * + * { margin-top: var(--s3); }
.stack-lg > * + * { margin-top: var(--s6); }

.grid { display: grid; gap: var(--s4); }
.g2 { grid-template-columns: 1fr; }
.g3 { grid-template-columns: 1fr; }
@media (min-width: 760px)  { .g2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .g3 { grid-template-columns: repeat(3, 1fr); } }

.section-head { max-width: var(--maxw-text); margin-bottom: var(--s6); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;                    /* on-grid, clears the 44px floor */
  padding: var(--s2) var(--s3);
  font-family: var(--body); font-size: 17px; font-weight: 600; line-height: 24px;
  border-radius: var(--radius); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-on-night { background: #fff; color: var(--ink); }
.btn-on-night:hover { background: var(--cobalt-tint); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); }

.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,248,250,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s3); min-height: 72px;
}
.logo-link { display: flex; align-items: center; }
.logo-link img { height: 28px; width: auto; }

.nav { display: none; align-items: center; gap: var(--s4); }
@media (min-width: 900px) { .nav { display: flex; } }
.nav a {
  font-size: 17px; font-weight: 500; color: var(--ink); text-decoration: none;
  padding: var(--s1) 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--cobalt); color: var(--cobalt); }
.nav .btn { margin-left: var(--s2); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; min-height: 48px; background: none; border: 1px solid var(--rule);
  border-radius: var(--radius); cursor: pointer; color: var(--ink);
}
@media (min-width: 900px) { .nav-toggle { display: none; } }
.mobile-nav { display: none; border-top: 1px solid var(--rule); background: var(--card); }
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: var(--s2) var(--s3); font-size: 18px; font-weight: 500;
  color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule);
}
.mobile-nav a:last-child { border-bottom: 0; }

/* ---------- Hero ---------- */
.hero { padding: var(--s10) 0 var(--s8); }
@media (min-width: 900px) { .hero { padding: var(--s16) 0 var(--s12); } }
.hero .lede { max-width: 640px; margin-top: var(--s3); }

/* ---------- Door cards (the two audiences) ---------- */
.doors { display: grid; gap: var(--s3); grid-template-columns: 1fr; }
@media (min-width: 860px) { .doors { grid-template-columns: 1fr 1fr; } }

.door {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: var(--s5); text-decoration: none; color: var(--ink);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.door:hover { border-color: var(--cobalt); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(23,24,26,.07); color: var(--ink); }
.door--venue:hover { border-color: var(--brass); }
.door h3 { margin-bottom: var(--s2); }
.door p { color: var(--muted); }
.door .door-cta { margin-top: var(--s4); font-weight: 600; color: var(--cobalt); }
.door--venue .door-cta { color: var(--brass); }
.door .door-cta::after { content: " →"; }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: var(--s4);
}
.card h3 { margin-bottom: var(--s2); }
.card-night { background: var(--night2); border-color: #262C38; }

/* ---------- Price cards ---------- */
.prices { display: grid; gap: var(--s3); grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 1000px) { .prices { grid-template-columns: repeat(3, 1fr); } }

.price {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: var(--s4);
}
.price--featured { border-color: var(--cobalt); border-width: 2px; }
.price--featured-brass { border-color: var(--brass); border-width: 2px; }
.price .tag {
  display: inline-block; font-family: var(--mono); font-size: 14px; line-height: 20px;
  letter-spacing: .1em;
  text-transform: uppercase; color: var(--cobalt); background: var(--cobalt-tint);
  padding: 4px var(--s1); border-radius: 4px; margin-bottom: var(--s2);
}
.price .tag.brass { color: #8A5C11; background: var(--brass-tint); }
.price h3 { margin-bottom: var(--s2); }
.price .figure {
  font-family: var(--mono); font-size: clamp(28px, 3vw, 36px); line-height: 40px;
  font-weight: 700; letter-spacing: -0.02em; margin: 0 0 var(--s1);
}
.price .terms { font-family: var(--mono); font-size: 14px; line-height: 20px; color: var(--muted); margin: 0 0 var(--s3); }
.price .desc { color: var(--muted); margin-bottom: var(--s3); }
.price ul { margin: 0 0 var(--s3); padding-left: 0; list-style: none; }
.price li { position: relative; padding-left: var(--s3); margin-bottom: var(--s1); font-size: 17px; line-height: 26px; }
.price li::before { content: "—"; position: absolute; left: 0; color: var(--cobalt); }
.price--featured-brass li::before, .price--brass li::before { color: var(--brass); }
.price .foot { margin-top: auto; padding-top: var(--s2); }

/* ---------- Ledger rows (itemized, the transparent-pricing device) ---------- */
.ledger { border-top: 1px solid var(--rule); margin-top: var(--s4); }
.ledger-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3);
  padding: var(--s2) 0; border-bottom: 1px solid var(--rule);
}
.ledger-row .label { font-size: 17px; line-height: 26px; }
.ledger-row .amount { font-family: var(--mono); font-size: 17px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ledger-row.total { border-bottom: 0; padding-top: var(--s3); }
.ledger-row.total .label, .ledger-row.total .amount { font-weight: 700; font-size: 19px; }

/* ---------- Founders ---------- */
.founders { display: grid; gap: var(--s6); grid-template-columns: 1fr; }
@media (min-width: 860px) { .founders { grid-template-columns: 1fr 1fr; } }
.founder-photo {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top;
  border-radius: var(--radius); background: var(--rule); margin-bottom: var(--s3);
}
.founder-name { margin-bottom: 4px; }
.founder-role {
  font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cobalt); margin-bottom: var(--s3); display: block;
}

/* ---------- Proof strip ---------- */
.proof { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
@media (min-width: 760px) { .proof { grid-template-columns: repeat(3, 1fr); } }
.proof .stat { font-family: var(--mono); font-size: clamp(32px, 4vw, 44px); line-height: 48px; font-weight: 700; color: var(--cobalt); }
.band-night .proof .stat { color: #8FA3F0; }

/* ---------- Quote ---------- */
.pull {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(26px, 3.2vw, 40px); line-height: 1.28; letter-spacing: -0.02em;
  max-width: 900px;
}

/* ---------- Rules / dividers ---------- */
.hr { height: 1px; background: var(--rule); border: 0; margin: 0; }
.band-night .hr { background: #262C38; }

/* ---------- Forms ---------- */
.field { margin-bottom: var(--s3); }
.field label { display: block; font-weight: 600; font-size: 17px; margin-bottom: var(--s1); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: var(--s2);
  font-family: var(--body); font-size: 17px; line-height: 24px; color: var(--ink);
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
}
.field textarea { min-height: 144px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--cobalt); outline-offset: 1px; border-color: var(--cobalt);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--muted-on-night); padding: var(--s10) 0 var(--s6); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; gap: var(--s6); grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer .logo-link img { height: 24px; }
.footer-col h4 { color: #fff; font-size: 15px; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; margin-bottom: var(--s2); font-weight: 500; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: var(--s1); font-size: 17px; line-height: 26px; }
.footer-bottom {
  margin-top: var(--s8); padding-top: var(--s3); border-top: 1px solid #262C38;
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); justify-content: space-between;
  font-size: 15px; line-height: 24px;
}

/* ---------- Draft banner (preview only) ---------- */
.draft-flag {
  background: var(--brass); color: #1B1206; text-align: center;
  font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  padding: var(--s1) var(--s2); line-height: 20px;
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-3 { margin-top: var(--s3); }
.mt-4 { margin-top: var(--s4); }
.mt-6 { margin-top: var(--s6); }
.mb-0 { margin-bottom: 0; }
.nowrap { white-space: nowrap; }
.table-scroll { overflow-x: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
