/* Callsign Media Group — site styles
   Palette from the brand logo: navy #13233F, signal orange #E8702A. */
:root {
  --navy: #13233F;
  --navy-deep: #0C1830;
  --navy-line: #2A3B5A;
  --signal: #E8702A;
  --signal-text: #B4501A;   /* orange dark enough for text on white */
  --fog: #EEF1F5;
  --ink: #16213A;
  --slate: #4A5466;
  --line: #D5DBE3;
  --white: #FFFFFF;
  --mist: #C7D0DE;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--signal); color: var(--navy); padding: 10px 16px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Brand lockup ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand-mark { width: 44px; height: 40px; color: var(--white); }
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-size: 1.4rem; font-weight: 800; font-stretch: 112%; line-height: .95;
  text-transform: uppercase; letter-spacing: .01em;
}
.brand-sub {
  font-size: .62rem; font-weight: 600; letter-spacing: .44em; text-transform: uppercase;
  color: var(--mist); margin-top: 5px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid var(--navy-line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  color: var(--white); text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--signal); }
.site-nav .nav-cta {
  border: 1.5px solid var(--signal); border-radius: 999px; padding: 9px 18px; font-weight: 600;
}
.site-nav .nav-cta:hover { background: var(--signal); color: var(--navy); }
.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--mist); color: var(--white);
  font: 600 .9rem var(--font); padding: 8px 14px; border-radius: 999px; cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 650 1rem var(--font); text-decoration: none; cursor: pointer;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease;
}
.btn-signal { background: var(--signal); color: var(--navy); }
.btn-signal:hover { background: #F2873F; }
.btn-ghost { border-color: var(--mist); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.06); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: var(--white);
  padding: clamp(72px, 11vw, 150px) 0 clamp(56px, 7vw, 88px);
}
.hero-signal {
  position: absolute; top: 0; right: -10%; height: 100%; width: 48%;
  pointer-events: none;
}
.hero-signal .c-mark { stroke: var(--white); stroke-width: 22; opacity: .95; }
.hero-signal .c-dot { fill: var(--signal); }
.hero-signal .arc { stroke: #3A5078; stroke-width: 2; }
.hero-signal .arc.hot { stroke: var(--signal); stroke-width: 12; }

/* The page's one orchestrated moment: the signal broadcasts outward on load. */
@media (prefers-reduced-motion: no-preference) {
  .hero-signal .arc {
    stroke-dasharray: 1600; stroke-dashoffset: 1600;
    animation: broadcast 1.1s cubic-bezier(.2,.7,.2,1) forwards;
    animation-delay: calc(250ms + var(--i) * 90ms);
  }
  .hero-signal .c-dot { animation: ping .5s ease-out both; }
  @keyframes broadcast { to { stroke-dashoffset: 0; } }
  @keyframes ping { from { transform: scale(0); transform-origin: 120px 360px; } to { transform: scale(1); transform-origin: 120px 360px; } }
}

.hero-inner { position: relative; }
.hero-title {
  max-width: 12ch;
  font-size: clamp(2.9rem, 6.6vw, 5.6rem);
  font-weight: 800; font-stretch: 118%;
  line-height: .98; letter-spacing: -.012em;
  text-wrap: balance;
}
.hero-lede {
  max-width: 52ch; margin-top: 30px;
  font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.55; color: #DCE3EE;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.chips {
  list-style: none; margin: clamp(56px, 8vw, 96px) 0 0; padding: 26px 0 0;
  border-top: 1px solid var(--navy-line);
  display: flex; flex-wrap: wrap; gap: 10px;
  max-width: 820px;
}
.chips a {
  display: inline-block; text-decoration: none; color: var(--white);
  font-size: .95rem; font-weight: 500;
  padding: 8px 16px; border: 1px solid #4A5D80; border-radius: 999px;
  background: rgba(12, 24, 48, .55);
}
.chips a:hover { border-color: var(--signal); }

/* ---------- Ownership band ---------- */
.ownership { background: var(--signal); color: var(--navy); }
.ownership-inner { padding-top: 20px; padding-bottom: 20px; }
.ownership p { font-weight: 600; font-size: 1.02rem; }

/* ---------- Section titles ---------- */
.section-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800; font-stretch: 112%;
  letter-spacing: -.01em; line-height: 1.04;
  color: var(--navy);
}

/* ---------- Who we serve ---------- */
.serve { padding: var(--section) 0; }
.serve-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px); margin-top: 52px;
}
.serve-item { border-top: 4px solid var(--navy); padding-top: 22px; }
.serve-item h3 { font-size: 1.3rem; font-weight: 750; font-stretch: 105%; margin-bottom: 12px; color: var(--navy); }
.serve-item p { color: var(--slate); max-width: 42ch; }

/* ---------- Capabilities ---------- */
.capabilities { background: var(--fog); padding: var(--section) 0; }
.cap-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.cap-intro { position: sticky; top: 120px; align-self: start; }
.cap-intro p { margin-top: 20px; color: var(--slate); max-width: 34ch; font-size: 1.1rem; }
.cap-list { margin: 0; }
.cap { padding: 26px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.cap:first-child { padding-top: 0; }
.cap dt {
  font-size: clamp(1.3rem, 2.2vw, 1.65rem); font-weight: 750; font-stretch: 108%;
  color: var(--navy); line-height: 1.15;
  display: flex; align-items: baseline; gap: 14px;
}
.cap dt::before {
  content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%;
  background: var(--signal); transform: translateY(-2px);
}
.cap dd { margin: 10px 0 0 26px; color: var(--slate); max-width: 60ch; }
.cap:target dt { color: var(--signal-text); }

/* ---------- Approach (a real sequence, so it is numbered) ---------- */
.approach { padding: var(--section) 0; }
.steps {
  list-style: none; margin: 56px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding: 0 28px 0 0; position: relative;
}
.steps li::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-weight: 750; font-size: 1.05rem;
  position: relative; z-index: 1;
}
.steps li::after {
  content: ""; position: absolute; top: 22px; left: 46px; right: 0;
  height: 2px; background: var(--line);
}
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.45rem; font-weight: 800; font-stretch: 112%; color: var(--navy); margin: 22px 0 10px; }
.steps p { color: var(--slate); max-width: 30ch; }

/* ---------- Government ---------- */
.government { background: var(--navy); color: var(--white); padding: var(--section) 0; }
.government .section-title { color: var(--white); }
.gov-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.gov-intro p { margin: 20px 0 32px; color: #DCE3EE; max-width: 40ch; font-size: 1.1rem; }
.ids { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--navy-line); }
.ids > div { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--navy-line); }
.ids dt { font-size: .9rem; color: var(--mist); margin-bottom: 4px; }
.ids dd { margin: 0; font-weight: 650; font-size: 1.05rem; }
.ids > div:nth-child(-n+2) dd { font-size: 1.5rem; font-weight: 750; font-stretch: 110%; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.naics-title { font-size: 1.15rem; font-weight: 750; margin: 40px 0 10px; }
.naics { width: 100%; border-collapse: collapse; }
.naics th, .naics td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--navy-line); vertical-align: baseline; }
.naics th { width: 96px; font-weight: 700; color: var(--signal); font-variant-numeric: tabular-nums; }
.naics td { color: #DCE3EE; }
.primary {
  display: inline-block; margin-left: 10px; font-size: .78rem; font-weight: 650;
  color: var(--navy); background: var(--signal); border-radius: 999px; padding: 2px 10px;
}

/* ---------- About ---------- */
.about { padding: var(--section) 0; }
.about-layout { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); }
.about-pull {
  margin-top: 28px;
  font-size: clamp(1.4rem, 2.4vw, 1.95rem); line-height: 1.3; font-weight: 500; font-stretch: 96%;
  color: var(--navy); max-width: 30ch;
  padding-left: 24px; border-left: 4px solid var(--signal);
}
.about-body { padding-top: 8px; }
.about-body h3 { font-size: 1.2rem; font-weight: 750; color: var(--navy); margin-bottom: 16px; }
.about-body p { color: var(--slate); max-width: 60ch; }
.about-body p + p { margin-top: 16px; }

/* ---------- Contact ---------- */
.contact { background: var(--fog); padding: var(--section) 0; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.contact-intro p { margin-top: 20px; color: var(--slate); max-width: 36ch; font-size: 1.1rem; }
.contact-intro .contact-meta { font-size: 1rem; color: var(--ink); }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 22px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; color: var(--navy); }
.field input, .field select, .field textarea {
  font: 400 1rem var(--font); color: var(--ink);
  background: var(--white); border: 1.5px solid #B9C2CF; border-radius: 8px;
  padding: 13px 14px; width: 100%;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(232,112,42,.35); }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-status { color: var(--slate); font-size: .95rem; }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--mist); padding: 48px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer-ids p, .footer-legal { font-size: .92rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cap-layout, .gov-layout, .about-layout, .contact-layout { grid-template-columns: 1fr; }
  .cap-intro { position: static; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 0; }
  .steps li:nth-child(2)::after { display: none; }
  .hero-signal { width: 90%; right: -40%; opacity: .5; }
  .hero-signal .c-mark, .hero-signal .c-dot { display: none; }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--navy); padding: 12px var(--gutter) 24px; border-bottom: 1px solid var(--navy-line);
  }
  .site-nav.open { display: flex; }
  .site-nav a { font-size: 1.1rem; padding: 10px 0; }
  .site-nav .nav-cta { margin-top: 10px; }
  .serve-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .ids { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .hero-signal { width: 150%; right: -105%; opacity: .45; }
  .brand-name { font-size: 1.2rem; }
}

/* ---------- Simple pages (thanks, 404) ---------- */
.hero-short { min-height: 62vh; display: flex; align-items: center; }
