/* ========================================================
   Bull City Systems — design tokens + base
   Industrial elegant: charcoal, navy, warm off-white,
   Durham blue, oxidized brass, tobacco brick.
   ======================================================== */

:root {
  /* Surfaces */
  --c-ink:        #0B0D11;     /* deepest, near-black charcoal */
  --c-charcoal:   #14181F;     /* primary surface */
  --c-charcoal-2: #1B2029;     /* raised surface */
  --c-navy:       #131C2A;     /* deep navy */
  --c-navy-2:     #1A2638;     /* navy raised */
  --c-line:       #2A2F38;     /* hairline */
  --c-line-soft:  #20242C;

  /* Foreground */
  --c-bone:       #ECE5D6;     /* warm off-white */
  --c-bone-dim:   #C9C2B3;
  --c-mute:       #8A8676;     /* warm muted */
  --c-mute-2:     #6A6759;

  /* Accents — Durham flag palette
     LEAD: gold. SECONDARY: brick red, used as tactical/precision accent. */
  --c-blue:       #2E5DA8;     /* royal — courage */
  --c-blue-deep:  #1F4A8A;
  --c-blue-soft:  #4A7AC4;
  /* `brass` is the project's primary accent variable — gold. */
  --c-brass:      #C8932E;     /* gold — lead accent */
  --c-brass-dim:  #8A6420;
  --c-gold:       #C8932E;     /* alias */
  --c-gold-dim:   #8A6420;
  /* red is reserved for tactical moments: required markers, errors,
     section-hairline gradients, the bull's eye + nose ring, the
     "live" pulse on the persistent flag, error chips. */
  --c-brick:      #B83A28;
  --c-brick-dim:  #7E2618;
  --c-red:        #B83A28;     /* alias */
  --c-red-dim:    #7E2618;
  --c-verdigris:  #5A7E72;

  /* "this is a go" green — used VERY sparingly: trust signals, available
     status, completed-step ticks, "we ship" callouts. Never on body copy
     or large fills. Limit to 3 instances per page. */
  --c-go:         #4FA873;
  --c-go-dim:     #2F6B4A;
  --c-go-glow:    rgba(79, 168, 115, 0.25);

  /* Type */
  --f-display: "Bricolage Grotesque", "Times New Roman", serif;
  --f-hero:    "Big Shoulders Display", "Bricolage Grotesque", serif;
  --f-sans:    "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Rhythm */
  --r-1: 4px;
  --r-2: 8px;
  --r-3: 12px;
  --r-4: 16px;
  --r-6: 24px;
  --r-8: 32px;
  --r-12: 48px;
  --r-16: 64px;
  --r-24: 96px;

  /* Radius */
  --rad-1: 2px;
  --rad-2: 4px;
  --rad-3: 8px;

  /* Easing */
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-in-out: cubic-bezier(.65, .05, .36, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--c-ink);
  color: var(--c-bone);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Subtle film grain over entire page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--c-brass); color: var(--c-ink); }

/* Type scale */
.h-display {
  font-family: var(--f-display);
  font-weight: 500;
  font-variation-settings: "wdth" 95, "opsz" 96;
  letter-spacing: -0.02em;
  line-height: 0.98;
  color: var(--c-bone);
  text-wrap: balance;
}
.h-section {
  font-family: var(--f-display);
  font-weight: 500;
  font-variation-settings: "wdth" 95, "opsz" 48;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--c-bone);
  text-wrap: balance;
}
.t-vet {
  color: var(--c-red);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.t-vet::before {
  content: "★ ";
  color: var(--c-red);
  font-size: 0.92em;
  letter-spacing: 0;
  margin-right: 1px;
}
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--c-brass);
  font-weight: 500;
}
.eyebrow-mute {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--c-mute);
  font-weight: 500;
}
.lede {
  font-family: var(--f-sans);
  font-size: 19px;
  line-height: 1.5;
  color: var(--c-bone-dim);
  font-weight: 350;
  text-wrap: pretty;
}
.body {
  color: var(--c-bone-dim);
  font-weight: 350;
  text-wrap: pretty;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

/* Hairline rule with subtle gradient */
.rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-line) 12%, var(--c-line) 88%, transparent);
  border: 0;
}

/* Section base */
section {
  position: relative;
  padding: 96px 0;
}
@media (max-width: 720px) {
  section { padding: 64px 0; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--rad-2);
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: all 220ms var(--ease-out);
  position: relative;
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-bone);
  color: var(--c-ink);
  border-color: var(--c-bone);
}
.btn-primary:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgba(236, 229, 214, 0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--c-bone);
  border-color: var(--c-line);
}
.btn-ghost:hover {
  border-color: var(--c-bone-dim);
  background: rgba(236, 229, 214, 0.04);
}
.btn-brass {
  background: transparent;
  color: var(--c-brass);
  border-color: var(--c-brass-dim);
}
.btn-brass:hover {
  background: rgba(176, 136, 74, 0.08);
  border-color: var(--c-brass);
}
.btn .arrow {
  display: inline-block;
  transition: transform 220ms var(--ease-out);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ---- Cards / shared surfaces ---- */
.card {
  background: linear-gradient(180deg, var(--c-charcoal-2) 0%, var(--c-charcoal) 100%);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--rad-3);
  position: relative;
}
.card-accent-top {
  position: absolute;
  top: -1px; left: 16px; right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-brass-dim), transparent);
}

/* utility: revealed-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* numbered marker */
.numeral {
  font-family: var(--f-mono);
  color: var(--c-brass);
  font-size: 12px;
  letter-spacing: 0.1em;
}

/* ----- Form base (used in intake) ----- */
.field-label {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--c-mute);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.field-label .req { color: var(--c-red); }
.field-input,
.field-textarea,
.field-select {
  width: 100%;
  background: var(--c-ink);
  border: 1px solid var(--c-line);
  color: var(--c-bone);
  font-family: var(--f-sans);
  font-size: 15px;
  padding: 13px 14px;
  border-radius: var(--rad-2);
  transition: border-color 180ms var(--ease-out), background 180ms var(--ease-out);
}
.field-input:focus,
.field-textarea:focus,
.field-select:focus {
  outline: none;
  border-color: var(--c-blue);
  background: #0a0c10;
}
.field-input::placeholder, .field-textarea::placeholder {
  color: var(--c-mute-2);
}
.field-textarea {
  resize: vertical;
  min-height: 110px;
}
.field-select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%238A8676' stroke-width='1.5' d='M1 1.5l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* multi-select chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--c-line);
  background: transparent;
  color: var(--c-bone-dim);
  font-size: 13px;
  font-family: var(--f-sans);
  border-radius: 999px;
  cursor: pointer;
  transition: all 160ms var(--ease-out);
}
.chip:hover {
  border-color: var(--c-bone-dim);
  color: var(--c-bone);
}
.chip.on {
  border-color: var(--c-brass);
  color: var(--c-bone);
  background: rgba(176, 136, 74, 0.08);
}
.chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-line);
  transition: background 160ms var(--ease-out);
}
.chip.on .dot { background: var(--c-brass); }

/* radio cards */
.radio-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--rad-2);
  cursor: pointer;
  transition: all 160ms var(--ease-out);
  font-size: 14px;
  color: var(--c-bone-dim);
  background: transparent;
}
.radio-card:hover {
  border-color: var(--c-bone-dim);
  color: var(--c-bone);
}
.radio-card.on {
  border-color: var(--c-blue);
  background: rgba(94, 140, 184, 0.08);
  color: var(--c-bone);
}
.radio-card .ring {
  width: 16px; height: 16px;
  border: 1.5px solid var(--c-line);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: border-color 160ms var(--ease-out);
}
.radio-card.on .ring { border-color: var(--c-blue); }
.radio-card.on .ring::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--c-blue);
  border-radius: 50%;
}
