/* ============================================================
   BLAZE HQ — SHARED DESIGN SYSTEM
   ------------------------------------------------------------
   ONE design language across the ecosystem:
     blaze-hq.com   (home.html)      — parent
     sam.blaze-hq.com (sam.html)     — creator + production
     blaze-hq.com/work-with-us       — routing + inquiry

   The Allie portal (index.html) keeps its own INLINE styles and is
   NOT changed to consume this file — its tokens are duplicated here
   verbatim so the two stay visually identical without coupling the
   working page to an external request. If you change a token here,
   mirror it in index.html's <style> :root, and vice versa.

   Tokens, type scale, buttons, nav and footer are copied from the
   Allie portal so the ecosystem reads as the same company.
   ============================================================ */

/* ---------------- TOKENS (mirror of index.html) ---------------- */
:root {
  --ink:       #0a0a0a;
  --ink-2:     #3b3b3b;
  --ink-3:     #6f6f6f;
  --line:      #e6e3df;
  --line-2:    #d6d2cc;
  --surface:   #ffffff;
  --surface-2: #f7f6f4;
  --img-bg:    #0d0b0b;

  /* Oxblood accent — used sparingly (eyebrows, one hover). Buttons stay black. */
  --accent:       #8C291E;
  --accent-hover: #722119;

  --maxw:   1180px;
  --gutter: clamp(20px, 5vw, 60px);
  --nav-h:  60px;

  --t-hero: clamp(2.5rem, 8vw, 5.5rem);
  --t-h2:   clamp(1.75rem, 4vw, 3.25rem);
  --t-h3:   clamp(1.0625rem, 1.5vw, 1.25rem);
  --t-body: clamp(1rem, 1.1vw, 1.0625rem);
  --t-lead: clamp(1.125rem, 1.6vw, 1.4375rem);
  --t-meta: 0.8125rem;

  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
  --sec-y: clamp(88px, 14vw, 200px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--t-body); line-height: 1.62;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, li, h1, h2, h3, dd, dt { overflow-wrap: break-word; }

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

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--ink); color: #fff; padding: 12px 20px; font-size: 14px; }
.skip:focus { left: 12px; top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------------- LAYOUT ---------------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sec-y); scroll-margin-top: var(--nav-h); }
.section--tint { background: var(--surface-2); }
.section--tight { padding-block: clamp(56px, 8vw, 104px); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------------- TYPE ---------------- */
.eyebrow { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 0 0 26px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: var(--t-h2); letter-spacing: -0.025em; }
h3 { font-size: var(--t-h3); letter-spacing: -0.01em; line-height: 1.32; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--ink-2); letter-spacing: -0.011em; max-width: 46ch; }
.measure-tight { max-width: 46ch; }
.measure { max-width: 60ch; }
.note { font-size: 0.875rem; color: var(--ink-3); }

/* ---------------- BUTTONS ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.005em; text-decoration: none;
  cursor: pointer; text-align: center;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { background: #2e2e2e; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 0.875rem; }
@media (max-width: 380px) { .btn:not(.btn--keepauto) { width: 100%; } }

/* ============================================================
   NAV — shared across ecosystem pages.
   Four cross-site links + a minimal accessible mobile menu.
   The logo always links to blaze-hq.com.
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100; min-height: var(--nav-h);
  background: rgba(255,255,255,0.76);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .nav { background: #fff; } }
.nav__inner { min-height: var(--nav-h); max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav__brand { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; white-space: nowrap; color: var(--ink); }
.nav__brand span { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__links a { font-size: 0.875rem; color: var(--ink-2); text-decoration: none; transition: color 0.2s var(--ease); white-space: nowrap; padding: 6px 0; }
.nav__links a:hover { color: var(--ink); }
.nav__links a[aria-current="page"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
.nav__right { display: flex; align-items: center; gap: 20px; }

/* Hamburger — hidden on desktop, shown under 860px */
.nav__toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -8px; border: 0; background: transparent;
  cursor: pointer; color: var(--ink);
}
.nav__toggle svg { display: block; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: var(--nav-h);
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 18px;
    box-shadow: 0 24px 40px -28px rgba(20,18,15,0.4);
    /* collapsed by default; JS toggles [data-open] */
    display: none;
  }
  .nav__links[data-open="true"] { display: flex; }
  .nav__links a { padding: 14px 0; font-size: 1rem; border-top: 1px solid var(--line); }
  .nav__links li:first-child a { border-top: 0; }
  .nav__links a[aria-current="page"] { box-shadow: none; color: var(--accent); }
}

/* ============================================================
   HERO — typographic by default; optional image band
   ============================================================ */
.hero { position: relative; overflow: hidden; padding-block: clamp(72px, 12vw, 148px) clamp(56px, 9vw, 104px); border-bottom: 1px solid var(--line); }
.hero--tint { background: var(--surface-2); }
.hero__body { position: relative; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.hero__eyebrow { font-size: var(--t-meta); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin: 0 0 20px; }
.hero__title { font-size: var(--t-hero); font-weight: 600; letter-spacing: -0.038em; line-height: 0.98; margin: 0 0 26px; text-wrap: balance; max-width: 18ch; }
.hero__line { font-size: clamp(1.0625rem, 1.9vw, 1.4375rem); line-height: 1.5; font-weight: 400; color: var(--ink-2); max-width: 52ch; margin: 0 0 36px; letter-spacing: -0.011em; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============================================================
   SPLIT — two-column text + media (used for creator features)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 56px); align-items: center; }
.split__media { min-width: 0; margin: 0; position: relative; }
.split__text { min-width: 0; }
.split__img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); display: block; object-fit: cover; }
.split__img--tall { aspect-ratio: 4 / 5; }
.split__img--wide { aspect-ratio: 3 / 2; }
.imgph { /* image placeholder — a designed empty state, never a broken frame */
  display: flex; align-items: flex-end; padding: 22px; color: rgba(255,255,255,0.72);
  background: linear-gradient(135deg, #17130f 0%, #2a211b 60%, #3a2c22 100%);
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
}
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 5vw, 80px); }
  .split--media-right .split__media { order: 2; }
  .split--wide-text { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .split--allie { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); } /* Allie: image gets more space */
}

/* ============================================================
   FEATURE — the featured-creator block on the parent homepage
   ============================================================ */
.feat__tag { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-meta); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 20px; }
.feat__tag--flag { color: var(--accent); }
.feat__name { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; margin: 0 0 14px; text-wrap: balance; }
.feat__role { font-size: var(--t-meta); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin: 0 0 24px; }
.feat__desc { color: var(--ink-2); font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.66; max-width: 52ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.chip { font-size: 0.8125rem; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 13px; white-space: nowrap; }

/* ============================================================
   METRICS (mirror of Allie portal)
   ============================================================ */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; margin: 28px 0 0; }
.metric { background: var(--surface); padding: 22px 20px; margin: 0; }
.metric__value { display: block; font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; margin: 0 0 8px; }
.metric__label { display: block; font-size: var(--t-meta); color: var(--ink-3); margin: 0; }
.metric__note { display: block; font-size: 0.75rem; color: var(--ink-3); margin: 6px 0 0; line-height: 1.4; }
.metrics__src { margin: 14px 0 0; font-size: 0.75rem; color: var(--ink-3); }

/* ============================================================
   SERVICES / CAPABILITY LISTS
   ============================================================ */
.svc__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(18px, 2.2vw, 26px); margin-top: 46px; }
.svc { padding: clamp(24px, 2.8vw, 34px); border: 1px solid var(--line); border-radius: 4px; display: flex; flex-direction: column; gap: 12px; background: var(--surface); }
.svc__term { margin: 0; font-size: var(--t-meta); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.svc__name { margin: 0; }
.svc__body { margin: 0; font-size: 0.9375rem; color: var(--ink-2); }
.svc__list { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.svc__list li { font-size: 0.9375rem; color: var(--ink-2); padding-left: 18px; position: relative; }
.svc__list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0 clamp(28px, 3vw, 44px); margin: 40px 0 0; padding: 0; list-style: none; }
.caps li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--ink-2); }

/* ============================================================
   PROCESS (numbered)
   ============================================================ */
.how__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: clamp(26px, 3.2vw, 44px); margin: 48px 0 0; padding: 0; list-style: none; }
.how__item { padding-top: 20px; border-top: 1px solid var(--line); }
.how__num { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; color: var(--ink-3); margin-bottom: 13px; font-variant-numeric: tabular-nums; }
.how__title { margin: 0 0 9px; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }
.how__body { margin: 0; font-size: 0.9375rem; color: var(--ink-2); }

/* ============================================================
   ROUTE CARDS (Work With Us + homepage routing)
   ============================================================ */
.routes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(20px, 2.6vw, 32px); margin-top: 52px; align-items: stretch; }
.route { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; padding: clamp(26px, 3vw, 38px); background: var(--surface); transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.route:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 22px 44px -30px rgba(20,18,15,0.4); }
.route--flag { border-color: var(--ink); }
.route__eyebrow { font-size: var(--t-meta); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin: 0 0 12px; }
.route--flag .route__eyebrow { color: var(--accent); }
.route__title { font-size: clamp(1.375rem, 2.2vw, 1.75rem); font-weight: 600; letter-spacing: -0.025em; margin: 0 0 14px; }
.route__body { margin: 0 0 20px; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.6; }
.route__list { margin: 0 0 26px; padding: 0; list-style: none; display: grid; gap: 9px; }
.route__list li { font-size: 0.875rem; color: var(--ink-2); padding-left: 18px; position: relative; }
.route__list li::before { content: ""; position: absolute; left: 0; top: 0.58em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.route__foot { margin-top: auto; }

/* ============================================================
   BRANDS (quiet wall — mirror of tier2)
   ============================================================ */
.brandwall { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(16px, 2.2vw, 28px) clamp(24px, 3.4vw, 44px); margin: 36px 0 0; padding: 0; list-style: none; }
.brandwall li { font-size: clamp(1rem, 1.4vw, 1.1875rem); font-weight: 500; letter-spacing: -0.015em; color: var(--ink-2); white-space: nowrap; transition: color 0.3s var(--ease); }
.brandwall li:hover { color: var(--accent); }
.brandwall__note { margin: 34px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.875rem; line-height: 1.6; color: var(--ink-3); max-width: 62ch; }

/* ============================================================
   CTA BAND (mirror of Allie portal)
   ============================================================ */
.cta { background: var(--ink); color: #fff; }
.cta h2 { color: #fff; max-width: 20ch; text-wrap: balance; }
.cta__body { margin: 26px 0 38px; font-size: var(--t-lead); line-height: 1.5; color: rgba(255,255,255,0.74); max-width: 50ch; letter-spacing: -0.011em; }
.cta .btn--solid { background: #fff; color: var(--ink); }
.cta .btn--solid:hover { background: rgba(255,255,255,0.88); }
.cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
.cta .btn--ghost:hover { border-color: rgba(255,255,255,0.7); }
.cta :focus-visible { outline-color: #fff; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============================================================
   FORM (Work With Us)
   ============================================================ */
.form { margin-top: 44px; max-width: 720px; }
.form__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-2); }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 6px; padding: 12px 14px; width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(10,10,10,0.08); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(140,41,30,0.1); }
.field__err { font-size: 0.8125rem; color: var(--accent); min-height: 1em; }
.field__err:empty { display: none; }
.form__foot { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.form__note { font-size: 0.8125rem; color: var(--ink-3); max-width: 46ch; }
.form__status { margin-top: 20px; font-size: 0.9375rem; }
.form__status--ok { color: #1d7a56; }
.form__status--err { color: var(--accent); }
.selected-route { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 13px; }
.selected-route b { color: var(--ink); }
@media (max-width: 620px) { .form__grid { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER — shared ecosystem footer
   ============================================================ */
.foot { padding-block: 56px; border-top: 1px solid var(--line); background: var(--surface); }
.foot__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot__brand { font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); font-size: 0.8125rem; }
.foot__brand span { color: var(--accent); }
.foot__blurb { margin: 16px 0 0; font-size: 0.875rem; color: var(--ink-3); max-width: 40ch; line-height: 1.6; }
.foot__col h4 { margin: 0 0 14px; font-size: var(--t-meta); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.foot__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.foot__col a { color: var(--ink-2); text-decoration: none; font-size: 0.9375rem; }
.foot__col a:hover { color: var(--ink); }
.foot__bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: 0.8125rem; color: var(--ink-3); }
.foot__bottom a { color: var(--ink-3); text-decoration: none; }
.foot__bottom a:hover { color: var(--ink); }
@media (max-width: 720px) { .foot__top { grid-template-columns: 1fr 1fr; } .foot__col--brand { grid-column: 1 / -1; } }
@media (max-width: 440px) { .foot__top { grid-template-columns: 1fr; } }

/* ============================================================
   INTRO VIDEO
   ============================================================ */
.videoband__wrap { max-width: 960px; margin: 40px auto 0; }
.introvideo {
  display: block; width: 100%; height: auto; aspect-ratio: 2 / 1;
  border-radius: 8px; border: 1px solid var(--line);
  box-shadow: 0 18px 40px -20px rgba(20, 18, 15, 0.35); background: var(--img-bg);
}

/* ---------------- REVEAL (enhancement only) ---------------- */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
