/* Quick Brown Fox LLC — parent landing page
   Brand system from quickbrownfox.co: Poppins + Barlow Semi Condensed,
   #ef432b orange-red, #d73c27, #ffefed tint, #5a3d31 brown. */

:root {
  --paper: #fffaf8;
  --surface: #ffffff;
  --tint: #ffefed;
  --tint-2: #fbe3de;
  --ink: #2b1d17;
  --ink-2: #5a3d31;
  --muted: #7d635a;
  --line: #ead9d3;
  --line-strong: #d8beb5;
  --brand: #ef432b;
  --brand-dark: #d73c27;
  --on-brand: #ffffff;
  --logo-plate: transparent;
  --dot-opacity: .55;
  --shadow: 0 18px 40px -24px rgba(90, 61, 49, .45);
  --font-body: "Poppins", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-label: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1b1310;
    --surface: #241915;
    --tint: #31211b;
    --tint-2: #3d2a23;
    --ink: #f8ede8;
    --ink-2: #e6cfc5;
    --muted: #b79c91;
    --line: #3d2b25;
    --line-strong: #56403a;
    --brand: #ff5c44;
    --brand-dark: #ef432b;
    --on-brand: #ffffff;
    --logo-plate: #fff7f5;
    --dot-opacity: .18;
    --shadow: 0 18px 40px -24px rgba(0, 0, 0, .8);
  }
}
:root[data-theme="dark"] {
  --paper: #1b1310;
  --surface: #241915;
  --tint: #31211b;
  --tint-2: #3d2a23;
  --ink: #f8ede8;
  --ink-2: #e6cfc5;
  --muted: #b79c91;
  --line: #3d2b25;
  --line-strong: #56403a;
  --brand: #ff5c44;
  --brand-dark: #ef432b;
  --on-brand: #ffffff;
  --logo-plate: #fff7f5;
  --dot-opacity: .18;
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, .8);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

h1, h2, h3, h4 { margin: 0; line-height: 1.12; text-wrap: balance; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.25rem); line-height: 1.04; letter-spacing: -.015em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); letter-spacing: -.01em; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
p { margin: 0; }
p + p { margin-top: 1em; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.measure { max-width: 62ch; }

.label,
.eyebrow,
.btn,
.nav a,
.sitelink {
  font-family: var(--font-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.eyebrow {
  display: block;
  color: var(--brand);
  font-size: .95rem;
  letter-spacing: .14em;
  margin-bottom: .9rem;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

/* Header */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  width: 54px;
  height: 52px;
  object-fit: contain;
  background: var(--logo-plate);
  border-radius: 8px;
  padding: 3px;
}
.brand span { font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; white-space: nowrap; }
.brand small { display: block; font-family: var(--font-label); font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: clamp(.9rem, 2.4vw, 2rem); flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--brand); color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 1rem 1.5rem;
  background: var(--brand);
  color: var(--on-brand);
  text-decoration: none;
  font-size: .95rem;
  border: 2px solid var(--brand);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--on-brand); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* Sections */
section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 46em; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head .lead { margin-top: 1rem; }

/* Hero */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5.5rem);
  background:
    radial-gradient(60% 55% at 80% 10%, var(--tint) 0%, transparent 70%),
    var(--paper);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("dot-grid.png") repeat;
  background-size: 150px;
  opacity: var(--dot-opacity);
  pointer-events: none;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 85%);
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { margin-top: .25rem; }
.hero .lead { margin-top: 1.5rem; }

/* Federal record card (hero) */
.record-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.6rem 1.4rem;
}
.record-card .label { font-size: .8rem; color: var(--muted); letter-spacing: .14em; }
.record-card h3 { font-size: 1.15rem; margin-top: .35rem; }
.record-card dl { margin: 1.1rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: .55rem 1.2rem; font-size: .95rem; }
.record-card dt { color: var(--muted); font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; padding-top: .2em; }
.record-card dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; word-break: break-word; }
.record-card .status { display: inline-flex; align-items: center; gap: .45rem; }
.record-card .status::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: #2f9e5b; box-shadow: 0 0 0 3px color-mix(in srgb, #2f9e5b 25%, transparent); }
.record-card footer { margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }

/* About */
.about .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.about h2 { margin-top: .25rem; }
.about .copy { margin-top: 1.5rem; max-width: 60ch; color: var(--ink-2); }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.facts li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.facts .label { color: var(--muted); font-size: .8rem; letter-spacing: .12em; padding-top: .25em; }
.facts strong { font-weight: 600; }

/* Divisions */
.division {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line-strong);
}
.division:last-of-type { padding-bottom: 0; }
.division-mark {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1rem;
}
.division-mark i {
  width: 14px; height: 14px; background: var(--brand); display: inline-block;
}
.division-mark .sitelink { font-size: .85rem; letter-spacing: .12em; color: var(--muted); text-decoration: none; }
.division-mark .sitelink:hover { color: var(--brand); }
.division h3 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.division .tagline { margin-top: .75rem; font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--ink-2); font-weight: 600; max-width: 30em; }
.division .copy { margin-top: 1.25rem; max-width: 58ch; color: var(--ink-2); }
.division .btn-row { margin-top: 1.75rem; }
.spec {
  background: var(--tint);
  padding: 1.5rem 1.6rem;
  align-self: start;
}
.spec .label { color: var(--brand); font-size: .8rem; letter-spacing: .14em; }
.spec dl { margin: .9rem 0 0; }
.spec dt { font-weight: 700; font-size: .95rem; margin-top: .9rem; }
.spec dt:first-of-type { margin-top: 0; }
.spec dd { margin: .15rem 0 0; font-size: .95rem; color: var(--ink-2); }
.spec dd b { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }

/* AI / Web */
.ai { background: var(--ink); color: var(--paper); }
.ai .eyebrow { color: var(--brand); }
.ai h2, .ai h3 { color: var(--paper); }
.ai .lead { color: color-mix(in srgb, var(--paper) 80%, var(--ink)); }
.ai-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: color-mix(in srgb, var(--paper) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--paper) 18%, transparent);
}
.ai-item { background: var(--ink); padding: 1.75rem 1.75rem 1.9rem; }
.ai-item .label { color: var(--brand); font-size: .8rem; letter-spacing: .14em; }
.ai-item h3 { font-size: 1.25rem; margin-top: .5rem; }
.ai-item p { margin-top: .75rem; color: color-mix(in srgb, var(--paper) 78%, var(--ink)); font-size: .98rem; max-width: 46ch; }
.ai-item .tools { margin-top: .9rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.ai-item .tools span { font-family: var(--font-label); font-weight: 600; letter-spacing: .06em; font-size: .8rem; text-transform: uppercase; padding: .25rem .55rem; border: 1px solid color-mix(in srgb, var(--paper) 30%, transparent); color: color-mix(in srgb, var(--paper) 85%, var(--ink)); }
.ai .btn-row { margin-top: 2.25rem; }
.ai .btn.ghost { color: var(--paper); border-color: color-mix(in srgb, var(--paper) 40%, transparent); }
.ai .btn.ghost:hover { border-color: var(--paper); color: var(--paper); }
.ai-note { margin-top: 2rem; max-width: 60ch; color: color-mix(in srgb, var(--paper) 72%, var(--ink)); font-size: .95rem; }

/* Federal record */
.record .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.record table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.record th, .record td { text-align: left; vertical-align: top; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.record th { width: 11rem; font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--muted); padding-right: 1rem; padding-top: 1rem; }
.record td { font-variant-numeric: tabular-nums; }
.record td code { font-family: "SFMono-Regular", Menlo, Consolas, monospace; font-size: .95em; background: var(--tint); padding: .1em .4em; color: var(--ink); }
.record tr:first-child th, .record tr:first-child td { border-top: 1px solid var(--line-strong); }
.record .note { margin-top: 1.5rem; font-size: .9rem; color: var(--muted); max-width: 58ch; }
.record .copy { margin-top: 1.25rem; color: var(--ink-2); max-width: 50ch; }

/* Contact / footer */
.contact { background: var(--tint); }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact h2 { margin-top: .25rem; }
.contact .big-mail { display: inline-block; margin-top: 1.5rem; font-size: clamp(1.25rem, 2.6vw, 1.9rem); font-weight: 700; color: var(--ink); text-decoration-color: var(--brand); text-decoration-thickness: 3px; text-underline-offset: .18em; word-break: break-all; }
.contact .big-mail:hover { color: var(--brand-dark); }
.contact address { font-style: normal; margin-top: 1.25rem; color: var(--ink-2); }
.contact address a { color: inherit; }
.sites { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.sites li { border-bottom: 1px solid var(--line-strong); padding: .95rem 0; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
.sites li strong { font-weight: 700; }
.sites li a { font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; text-decoration: none; color: var(--brand-dark); }
.sites li a:hover { color: var(--brand); text-decoration: underline; }
.sites-label { margin-bottom: .75rem; color: var(--muted); font-size: .8rem; letter-spacing: .14em; }

.site-footer { padding-block: 2.5rem 3rem; text-align: center; font-size: .9rem; color: var(--muted); }
.site-footer .company {
  position: relative;
  display: inline-block;
  padding-top: 28px;
  color: var(--ink);
  font-weight: 600;
}
.site-footer .company::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 25px;
  background: url("downward-dog.png") no-repeat center / contain;
}
.site-footer p + p { margin-top: .5rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap, .about .wrap, .division, .record .wrap, .contact .wrap { grid-template-columns: 1fr; }
  .ai-grid { grid-template-columns: 1fr; }
  .record th { width: 9rem; }
}
@media (max-width: 600px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; padding-block: .9rem; gap: .6rem; }
  .nav { justify-content: flex-start; gap: .9rem 1.2rem; }
  .facts li { grid-template-columns: 1fr; gap: .2rem; }
  .record th, .record td { display: block; width: auto; padding: .35rem 0; border: 0; }
  .record th { padding-top: .9rem; }
  .record td { padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
  .btn { width: 100%; justify-content: center; }
}
