:root {
  color-scheme: dark;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--brand-silver);
  background:
    radial-gradient(circle at 78% 18%, rgba(var(--brand-blue-rgb), 0.2), transparent 28rem),
    linear-gradient(135deg, rgba(var(--brand-white-rgb), 0.025) 1px, transparent 1px),
    linear-gradient(45deg, rgba(var(--brand-white-rgb), 0.018) 1px, transparent 1px),
    var(--brand-background);
  background-size: auto, 42px 42px, 42px 42px, auto;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, transparent 49.9%, rgba(var(--brand-blue-rgb), 0.05) 50%, transparent 50.1%);
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 12px 20px;
  background: var(--brand-gold);
  color: var(--brand-background);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer,
.hero,
.briefing,
.field-guide,
.faq {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  border-bottom: 1px solid var(--brand-border);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--brand-silver);
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand-wordmark { display: block; width: min(190px, 45vw); height: auto; }
.hero-logo { display: block; width: min(220px, 70%); height: auto; margin: 12px auto 26px; }

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
}

.brand small,
.eyebrow,
.panel-topline,
.panel-readout,
.card-number,
.site-footer {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.12em;
}

.brand small {
  margin-top: 4px;
  color: var(--brand-muted);
  font-size: 0.55rem;
}

.header-link {
  color: var(--brand-gold-bright);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.header-link:hover,
.header-link:focus-visible {
  color: var(--brand-silver);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(48px, 9vw, 120px);
  align-items: center;
  min-height: 620px;
  padding: 88px 0 112px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--brand-blue);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h1 {
  max-width: 650px;
  color: var(--brand-silver);
  font-size: clamp(3.7rem, 8vw, 7.4rem);
  line-height: 0.93;
  letter-spacing: -0.06em;
}

.hero-text {
  max-width: 530px;
  margin: 28px 0 0;
  color: var(--brand-muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--brand-gold);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--brand-background);
  background: var(--brand-gold);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--brand-gold-bright);
}

.button-secondary {
  border-color: var(--brand-border);
  color: var(--brand-muted);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--brand-blue);
  color: var(--brand-silver);
}

.hero-panel {
  position: relative;
  padding: 18px;
  border: 1px solid var(--brand-border);
  background: rgba(var(--brand-surface-rgb), 0.86);
  box-shadow: 22px 22px 0 rgba(var(--brand-blue-rgb), 0.06);
}

.hero-panel::before,
.hero-panel::after {
  position: absolute;
  width: 14px;
  height: 14px;
  content: "";
  border-color: var(--brand-gold);
}

.hero-panel::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.hero-panel::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.panel-topline,
.panel-readout {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--brand-muted);
  font-size: 0.58rem;
}

.panel-value {
  margin-left: auto;
  color: var(--brand-gold-bright);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-blue);
  box-shadow: 0 0 14px var(--brand-blue);
}

.radar {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 1;
  margin: 26px auto;
  overflow: hidden;
  border: 1px solid rgba(var(--brand-blue-rgb), 0.45);
  border-radius: 50%;
  background:
    linear-gradient(rgba(var(--brand-blue-rgb), 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--brand-blue-rgb), 0.1) 1px, transparent 1px),
    rgba(var(--brand-background-rgb), 0.9);
  background-size: 25% 25%;
}

.radar::before,
.radar::after {
  position: absolute;
  content: "";
  background: rgba(var(--brand-blue-rgb), 0.35);
}

.radar::before {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.radar::after {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
}

.radar-ring {
  position: absolute;
  border: 1px solid rgba(var(--brand-blue-rgb), 0.32);
  border-radius: 50%;
}

.radar-ring-large {
  inset: 16%;
}

.radar-ring-small {
  inset: 34%;
}

.radar-sweep {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg, var(--brand-blue), transparent);
  animation: sweep 4s linear infinite;
}

.radar-contact {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-gold-bright);
  box-shadow: 0 0 12px var(--brand-gold);
}

.radar-contact-one {
  top: 27%;
  left: 63%;
}

.radar-contact-two {
  top: 62%;
  left: 29%;
}

.radar-contact-three {
  top: 71%;
  left: 70%;
}

.panel-readout strong {
  margin-left: auto;
  color: var(--brand-silver);
  font-size: 0.62rem;
}

.briefing {
  padding: 0 0 112px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--brand-border);
}

h2 {
  max-width: 510px;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 0.96;
}

.briefing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 1px;
  background: var(--brand-border);
}

.briefing-card {
  min-height: 230px;
  padding: 28px;
  background: var(--brand-surface);
}

.card-number {
  display: block;
  margin-bottom: 44px;
  color: var(--brand-gold);
  font-size: 0.68rem;
}

h3 {
  font-size: 1.65rem;
}

.briefing-card p {
  margin: 12px 0 0;
  color: var(--brand-muted);
  line-height: 1.6;
}

.field-guide,
.faq {
  padding-bottom: 112px;
}

.guide-copy {
  max-width: 740px;
  margin-top: 28px;
}

.guide-copy p,
.faq-list p {
  color: var(--brand-muted);
  line-height: 1.7;
}

.guide-copy .button {
  margin-top: 14px;
}

.page-directory {
  margin-top: 44px;
  padding: 28px;
  border: 1px solid var(--brand-border);
  background: var(--brand-surface);
}

.page-directory ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 32px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.page-directory a {
  line-height: 1.6;
  text-underline-offset: 4px;
}

.faq-list article {
  padding: 28px 0;
  border-bottom: 1px solid var(--brand-border);
}

.faq-list p {
  max-width: 760px;
  margin-bottom: 0;
}

.faq-list a:hover,
.faq-list a:focus-visible,
.page-directory a:hover,
.page-directory a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--brand-gold-bright);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 30px;
  border-top: 1px solid var(--brand-border);
  color: var(--brand-muted);
  font-size: 0.56rem;
}

@keyframes sweep {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .radar-sweep {
    animation: none;
  }

  .button {
    transition: none;
  }
}

@media (max-width: 760px) {
  .site-header,
  .site-footer,
  .hero,
  .briefing,
  .field-guide,
  .faq {
    width: min(100% - 32px, 560px);
  }

  .hero {
    display: block;
    min-height: 0;
    padding: 78px 0 88px;
  }

  .hero-panel {
    max-width: 440px;
    margin: 64px auto 0;
  }

  .section-heading {
    display: block;
  }

  .briefing-grid {
    grid-template-columns: 1fr;
  }

  .page-directory ul {
    grid-template-columns: 1fr;
  }

  .briefing-card {
    min-height: 0;
  }
}

@media (max-width: 480px) {
  .site-header {
    align-items: flex-start;
  }

  .header-link {
    max-width: 80px;
    text-align: right;
  }

  .brand strong {
    font-size: 0.78rem;
  }

  .brand small {
    font-size: 0.48rem;
  }

  h1 {
    font-size: clamp(3.25rem, 17vw, 5rem);
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    flex-wrap: wrap;
  }
}
