/* DFW Sporting Group LLC — "Billet" redesign
   Dark machined masthead/footer over a light anodized working body.
   One disciplined FDE/coyote-tan accent. Saira Condensed caps + Inter body + IBM Plex Mono data. */

:root {
  /* Dark surfaces (masthead, footer, dark bands) */
  --black: #0E0F11;
  --gunmetal: #1A1D21;
  --graphite: #2B2F36;
  --steel: #6B7280;
  --steel-bright: #9AA1AC;

  /* Working body — LIGHT (white, slight warm tint); content floats over the data-stream */
  --bg: #F1ECE2;
  --bg-soft: rgba(20,18,14,0.035);
  --surface: rgba(255,255,255,0.74);
  --text: #16181C;
  --text-muted: #5B6470;
  --border: rgba(20,22,26,0.12);

  /* Single accent: FDE / coyote tan */
  --accent: #A68A64;
  --accent-deep: #8A6F4E;
  --on-accent: #14161A;

  /* Semantic (data UI only) */
  --ok: #5E8C6A;
  --warn: #C9A227;
  --err: #B4493C;

  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(14,15,17,0.10);
  --shadow-md: 0 8px 24px rgba(14,15,17,0.14);
  --shadow-lg: 0 16px 48px rgba(14,15,17,0.22);
  --transition: 140ms cubic-bezier(0.2,0,0,1);

  --font-display: 'Saira Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;

  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1100px 820px at 80% -6%, rgba(166,138,100,0.16), transparent 62%),
    linear-gradient(180deg, #F3EFE6 0%, #EBE6DA 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
/* Fixed full-page data-stream canvas — stays behind all content on scroll */
.page-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
img, svg { display: block; max-width: 100%; }

/* Brushed-metal noise, applied only on dark bands */
.tooled { position: relative; }
.tooled::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.05;
  background-image: repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

.accent { color: var(--accent); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

a { color: var(--accent-deep); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

/* ---------- Icons ---------- */
.icon { width: 22px; height: 22px; stroke-width: 1.5; }
.icon-accent { color: var(--accent); }
.icon-steel { color: var(--steel); }

/* ---------- Layout primitives ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.band-soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band-dark { background: #16181B; color: #EDEDEB; }
.band-dark .section-title { color: #fff; }

.kicker {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 0.82rem; color: var(--accent); margin-bottom: 0.9rem;
  display: inline-flex; align-items: baseline; gap: 0.5rem;
}
.kicker .num { font-family: var(--font-mono); color: var(--steel); }
.band-dark .kicker .num { color: var(--steel-bright); }

.section-head { max-width: 660px; margin-bottom: 2.75rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.01em; line-height: 1.05; font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--text);
}
.section-sub { font-size: 1.1rem; color: var(--text-muted); margin-top: 0.75rem; }
.band-dark .section-sub { color: var(--steel-bright); }

/* Cat-title with FDE underline (Cornerstone signature) */
.cat-title {
  display: inline-block; font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.02em; font-size: 1.05rem; padding-bottom: 4px; border-bottom: 2px solid var(--accent);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(14,15,17,0.94); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--graphite);
}
.nav-inner { width: 100%; padding: 0 clamp(18px, 3vw, 38px); height: 66px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; font-size: 1.15rem; color: #fff; }
.brand-mark { width: 12px; height: 12px; background: var(--accent); transform: rotate(45deg); flex: none; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { font-family: var(--font-body); font-weight: 500; font-size: 0.95rem; color: var(--steel-bright); }
.nav-links a:hover { color: #fff; }
.nav-meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--steel); letter-spacing: 0.04em; }
.nav-cta { background: var(--accent); color: var(--on-accent) !important; font-weight: 600; padding: 0.5rem 1.1rem; border-radius: var(--radius); }
.nav-cta:hover { background: var(--accent-deep); color: var(--on-accent) !important; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-body); font-weight: 600;
  font-size: 0.95rem; padding: 13px 26px; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: var(--transition); line-height: 1;
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-deep); color: var(--on-accent); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-deep); }
.band-dark .btn-secondary { color: #EDEDEB; border-color: var(--graphite); }
.band-dark .btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 16px 34px; font-size: 1.02rem; }

/* ---------- Hero (transparent over the fixed data-stream bg) ---------- */
.hero { position: relative; padding: clamp(7rem, 12vw, 9rem) 0 clamp(3.5rem, 7vw, 5.5rem); }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-title {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.005em;
  line-height: 1.02; font-size: clamp(2.6rem, 6vw, 4.2rem); color: var(--text); margin: 0.4rem 0 0;
}
.hero-lede { font-size: 1.15rem; color: var(--text-muted); max-width: 46ch; margin-top: 1.25rem; }
.hero-actions { display: flex; gap: 0.9rem; margin-top: 1.9rem; flex-wrap: wrap; }
.hero .spec-card { box-shadow: 0 24px 64px rgba(20,18,14,0.22), 0 0 0 1px rgba(166,138,100,0.18); }
.trust-strip {
  margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.03em; color: var(--text-muted);
  display: flex; flex-wrap: wrap; gap: 0.4rem 0.85rem;
}
.trust-strip .sep { color: var(--accent); }

/* ---------- Signature: spec card ---------- */
.spec-card {
  background: var(--black); color: #EDEDEB; border: 1px solid var(--graphite); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; font-family: var(--font-mono);
}
.spec-head { display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--graphite); background: var(--gunmetal); }
.spec-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.spec-head .label { font-size: 0.78rem; letter-spacing: 0.08em; color: var(--steel-bright); text-transform: uppercase; }
.spec-head .id { margin-left: auto; font-size: 0.78rem; color: var(--accent); }
.spec-rows { padding: 0.4rem 0; }
.spec-row { display: grid; grid-template-columns: 84px 1fr auto; align-items: center; gap: 0.75rem; padding: 0.55rem 1.1rem; border-bottom: 1px solid rgba(43,47,54,0.6); }
.spec-row:last-child { border-bottom: none; }
.spec-row .k { font-size: 0.72rem; letter-spacing: 0.06em; color: var(--steel); text-transform: uppercase; }
.spec-row .v { font-size: 0.84rem; color: #EDEDEB; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spec-row .v .was { color: var(--err); text-decoration: line-through; opacity: 0.85; }
.spec-row .v .now { color: #fff; }
.spec-foot { display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.1rem; border-top: 1px solid var(--graphite); background: var(--gunmetal); font-size: 0.78rem; letter-spacing: 0.06em; }
.spec-foot .arrow { color: var(--accent); }

/* Status chips */
.chip { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 7px; border-radius: 4px; border: 1px solid; white-space: nowrap; }
.chip-ok { color: var(--ok); border-color: rgba(94,140,106,0.5); background: rgba(94,140,106,0.1); }
.chip-warn { color: var(--warn); border-color: rgba(201,162,39,0.5); background: rgba(201,162,39,0.1); }
.chip-err { color: var(--err); border-color: rgba(180,73,60,0.5); background: rgba(180,73,60,0.12); }

/* Chip cross-fade (orchestrated load moment) */
.spec-swap { position: relative; display: inline-grid; }
.spec-swap > .chip { grid-area: 1 / 1; }
/* Default (reduced-motion / no-js): show the RESOLVED good state */
.spec-swap .chip-bad { opacity: 0; }
.spec-swap .chip-good { opacity: 1; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.6rem; box-shadow: var(--shadow-sm); position: relative; transition: var(--transition);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.card::before { content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 0; background: var(--accent); transition: width 240ms cubic-bezier(0.2,0,0,1); }
.card:hover { box-shadow: var(--shadow-md); border-color: var(--accent); }
.card:hover::before { width: 100%; }
.card .icon { margin-bottom: 0.9rem; }
.card h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.25rem; margin-bottom: 0.45rem; }
.card p { color: var(--text-muted); font-size: 0.98rem; }
.band-dark .card { background: rgba(26,29,33,0.6); border-color: var(--graphite); box-shadow: none; }
.band-dark .card h3 { color: #fff; }
.band-dark .card p { color: var(--steel-bright); }

/* Service row card */
.svc { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; }
.svc .svc-no { font-family: var(--font-mono); color: var(--accent); font-size: 0.8rem; padding-top: 4px; }

/* ---------- Process band ---------- */
.pipeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 1rem; }
.pstep { padding: 1.4rem 1.1rem; border: 1px solid var(--graphite); border-right: none; position: relative; }
.pstep:last-child { border-right: 1px solid var(--graphite); }
.pstep .pno { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent); }
.pstep .pname { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.15rem; color: #fff; margin: 0.4rem 0 0.35rem; }
.pstep .pdesc { font-size: 0.86rem; color: var(--steel-bright); }
.pstep .pno-arrow { position: absolute; right: -9px; top: 50%; transform: translateY(-50%); z-index: 2; color: var(--accent); background: var(--black); padding: 2px 0; }
.pstep:last-child .pno-arrow { display: none; }

/* ---------- Proof / metrics band ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.metric { border-left: 2px solid var(--accent); padding: 0.2rem 0 0.2rem 1.1rem; }
.metric .num { font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums; font-size: clamp(1.9rem, 3.2vw, 2.5rem); color: #fff; line-height: 1.1; }
.metric .lbl { font-size: 0.82rem; color: var(--steel-bright); margin-top: 0.3rem; }
.feeds { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--graphite); }
.feeds .feeds-k { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; color: var(--accent); margin-bottom: 1rem; }
.feeds-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.feed { font-family: var(--font-mono); font-size: 0.82rem; color: var(--steel-bright); border: 1px solid var(--graphite); border-radius: var(--radius); padding: 0.45rem 0.85rem; }

/* ---------- About credibility panel ---------- */
.about-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.about-grid p { color: var(--text-muted); margin-bottom: 1.1rem; }
.about-grid p strong { color: var(--text); }
.spec-panel { background: rgba(20,23,27,0.72); color: #EDEDEB; border: 1px solid var(--graphite); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.spec-panel-head { padding: 0.85rem 1.2rem; background: var(--gunmetal); border-bottom: 1px solid var(--graphite); font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; color: var(--accent); }
.spec-panel-row { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 0.8rem 1.2rem; border-bottom: 1px solid rgba(43,47,54,0.6); }
.spec-panel-row:last-child { border-bottom: none; }
.spec-panel-row .k { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.05em; color: var(--steel-bright); text-transform: uppercase; }
.spec-panel-row .v { font-family: var(--font-mono); font-size: 0.82rem; color: #fff; text-align: right; }

/* ---------- Arrow list ---------- */
.arrow-list { list-style: none; display: grid; gap: 0.7rem; }
.arrow-list li { position: relative; padding-left: 1.7rem; color: var(--text-muted); }
.arrow-list li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-family: var(--font-mono); font-weight: 600; }
.band-dark .arrow-list li { color: var(--steel-bright); }

/* ---------- Compliance band ---------- */
.compliance { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius-lg); padding: 1.75rem 2rem; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.compliance .icon { width: 40px; height: 40px; color: var(--accent); }
.compliance h3 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; font-size: 1.3rem; margin-bottom: 0.4rem; }
.compliance p { color: var(--text-muted); }
.compliance .tags { margin-top: 0.85rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.compliance .tag { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-muted); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.3rem 0.6rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.form-card { background: rgba(255,255,255,0.8); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-md); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.82rem; font-weight: 600; color: var(--text); margin-bottom: 0.45rem; }
.field input, .field select, .field textarea {
  width: 100%; background: rgba(255,255,255,0.9); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; color: var(--text); font-family: var(--font-body); font-size: 0.98rem; transition: var(--transition);
}
.field select option { background: #fff; color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(166,138,100,0.25); }
.field textarea { resize: vertical; min-height: 120px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Flash ---------- */
.flash-wrap { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); z-index: 200; width: min(560px, 90vw); }
.flash { padding: 0.85rem 1.1rem; border-radius: var(--radius); margin-bottom: 0.6rem; font-size: 0.95rem; border: 1px solid; }
.flash-success { background: rgba(94,140,106,0.14); border-color: rgba(94,140,106,0.5); color: #2f5d3c; }
.flash-error { background: rgba(180,73,60,0.12); border-color: rgba(180,73,60,0.5); color: #8c2f25; }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: #EDEDEB; padding: clamp(3rem, 6vw, 4rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; font-size: 1.15rem; color: #fff; }
.footer-col h4 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; color: var(--accent); margin-bottom: 0.9rem; }
.footer-col a, .footer-col p { display: block; color: var(--steel-bright); font-size: 0.92rem; margin-bottom: 0.55rem; }
.footer-col a:hover { color: #fff; }
.footer-desc { color: var(--steel-bright); font-size: 0.92rem; margin-top: 0.85rem; max-width: 34ch; }
.footer-bar { max-width: var(--maxw); margin: 2.5rem auto 0; padding: 1.5rem 24px 0; border-top: 1px solid var(--graphite); font-family: var(--font-mono); font-size: 0.78rem; color: var(--steel); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }

/* ---------- Reveal (gated on .js) ---------- */
.reveal { transition: opacity 0.5s ease, transform 0.5s ease; }
.js .reveal { opacity: 0; transform: translateY(16px); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Motion: spec-card CONFLICT -> IN SYNC cascade ---------- */
/* animation-fill-mode: both holds the "bad" from-frame during the delay,
   so the card starts messy and resolves row-by-row, ending on the good state. */
@media (prefers-reduced-motion: no-preference) {
  .spec-card.animate .spec-swap .chip-bad { animation: chipOut 0.45s ease both; }
  .spec-card.animate .spec-swap .chip-good { animation: chipIn 0.45s ease both; }
  .spec-card.animate .spec-row:nth-child(2) .spec-swap .chip { animation-delay: 0.5s; }
  .spec-card.animate .spec-row:nth-child(3) .spec-swap .chip { animation-delay: 0.9s; }
  .spec-card.animate .spec-row:nth-child(4) .spec-swap .chip { animation-delay: 1.3s; }
  .spec-card.animate .spec-foot .spec-swap .chip { animation-delay: 1.7s; }
}
@keyframes chipOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes chipIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .pstep { border-right: 1px solid var(--graphite); }
  .metrics { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .nav-toggle { display: block; }
  .nav-meta { display: none; }
  .nav-links { position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(14,15,17,0.99); border-bottom: 1px solid var(--graphite); max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
  .nav-links.open { max-height: 340px; }
  .nav-links a { padding: 0.95rem 24px; width: 100%; }
  .nav-cta { border-radius: 0; }
  .grid-3, .grid-2, .metrics, .footer-grid { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; }
  .compliance { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 2rem; }
}

/* Safari identity: cream backing preserves the approved charcoal wordmark. */
.brand-logo { width: 56px; height: 56px; object-fit: contain; padding: 3px; background: var(--bg); flex: none; }
.brand { gap: .8rem; }
.footer-logo { width: 210px; height: 210px; object-fit: contain; padding: 14px; background: var(--bg); }
.brand:focus-visible, .footer-brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width: 620px) {
  .brand { font-size: 1rem; gap: .6rem; }
  .nav-toggle { min-width: 44px; min-height: 44px; }
}
