/* =========================================================
   DVC Solutions - Peraton-inspired aesthetic
   Pure black, white text, defense-red accent, condensed headlines
   ========================================================= */

:root {
  --black: #000000;
  --ink-1: #ffffff;
  --ink-2: #b8bcc2;
  --ink-3: #7b8089;
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.08);
  --surface: #0a0b0d;
  --surface-2: #0f1114;
  --red: #c8102e;
  --blue: #0081ff; /* brand accent from logo, used sparingly */

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--black);
  color: var(--ink-1);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto;
  clip: auto; background: var(--ink-1); color: #000; padding: 10px 16px; z-index: 999;
}

/* ---------- Typography primitives ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 22px;
  position: relative;
  padding-left: 28px;
}
.eyebrow::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 18px; height: 2px; background: var(--red);
  transform: translateY(-50%);
}

.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.96;
  letter-spacing: -0.01em;
  font-size: clamp(2rem, 4.6vw, 3.7rem);
}

.section__intro {
  color: var(--ink-2);
  font-size: 1.06rem;
  max-width: 60ch;
  margin-top: 20px;
}

/* ---------- Buttons (ghost / outline only) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 15px 26px;
  border: 1px solid var(--line);
  color: var(--ink-1);
  background: transparent;
  transition: border-color .25s ease, background .25s ease, color .25s ease, transform .25s ease;
}
.btn span { transition: transform .25s ease; }
.btn:hover { border-color: var(--ink-1); background: rgba(255,255,255,0.04); }
.btn:hover span { transform: translateX(4px); }
.btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.header.is-scrolled {
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line-soft);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand__logo { height: 26px; width: auto; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color .2s ease;
}
.nav a:hover { color: var(--ink-1); }
.nav__cta { color: var(--ink-1) !important; display: inline-flex; gap: 6px; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--ink-1); transition: transform .25s, opacity .25s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  background: #000;
  border-bottom: 1px solid var(--line-soft);
  padding: 8px var(--gutter) 24px;
}
.nav-mobile a {
  font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px;
  color: var(--ink-2); padding: 14px 0; border-bottom: 1px solid var(--line-soft);
}
.nav-mobile.is-open { display: flex; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px 0 90px;
  overflow: hidden;
}
.hero__media {
  position: absolute; inset: 0;
  background: var(--black) url("assets/p_hero.webp") right center / cover no-repeat;
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, #000 0%, #000 30%, rgba(0,0,0,0.65) 55%, rgba(0,0,0,0.25) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, transparent 30%, transparent 60%, rgba(0,0,0,0.85) 100%);
}
.hero__content { position: relative; z-index: 2; max-width: 860px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.9rem, 8.5vw, 6.6rem);
  line-height: 0.9;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
}
.hero__lead {
  color: var(--ink-2);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 58ch;
  margin-bottom: 38px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__notice {
  position: absolute; bottom: 22px; left: 0; right: 0; z-index: 2;
  padding-inline: var(--gutter);
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
  display: flex; align-items: center; gap: 10px;
}
.hero__notice .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 0 rgba(200,16,46,0.6); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(200,16,46,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(200,16,46,0); }
  100% { box-shadow: 0 0 0 0 rgba(200,16,46,0); }
}

/* ---------- Stats bar ---------- */
.stats { border-block: 1px solid var(--line-soft); background: var(--black); }
.stats__inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 44px 28px;
  border-left: 1px solid var(--line-soft);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800; font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1; letter-spacing: -0.01em;
}
.stat__plus { color: var(--red); }
.stat__label {
  display: block; margin-top: 12px;
  font-size: 0.86rem; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* ---------- Section base ---------- */
.section { padding: clamp(72px, 11vw, 140px) 0; }
.section__head { max-width: 760px; margin-bottom: 64px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { display: block; padding-left: 0; }
.section__head--center .eyebrow::before {
  position: static; display: block; margin: 0 auto 14px; transform: none;
}
.section__head--center .section__intro { margin-inline: auto; }

/* ---------- Intro ---------- */
.intro__inner {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.intro__body p { color: var(--ink-2); margin-bottom: 18px; }
.intro__body p:last-child { margin-bottom: 0; }

/* ---------- Capability matrix ---------- */
.matrix {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}
.matrix__item {
  padding: 36px 32px 40px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  transition: background .25s ease;
}
.matrix__item:hover { background: var(--surface-2); }
.matrix__num {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  color: var(--ink-3);
}
.matrix__item h3 {
  font-family: var(--font-display);
  font-weight: 700; text-transform: uppercase;
  font-size: 1.42rem; line-height: 1.02; letter-spacing: -0.005em;
  margin: 14px 0 12px;
}
.matrix__item p { color: var(--ink-2); font-size: 0.96rem; line-height: 1.55; }
.matrix__item::after {
  content: ""; position: absolute; left: 0; top: 0; width: 0; height: 2px;
  background: var(--red); transition: width .3s ease;
}
.matrix__item:hover::after { width: 100%; }

/* ---------- Feature (chapter) blocks ---------- */
.feature { padding: clamp(60px, 9vw, 120px) 0; border-top: 1px solid var(--line-soft); }
.feature--alt { background: var(--surface); }
.feature__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px);
  align-items: stretch;
}
.feature__text .section__title { margin-bottom: 22px; }
.feature__text > p { color: var(--ink-2); margin-bottom: 32px; max-width: 52ch; }
.feature__list { list-style: none; display: grid; gap: 26px; }
.feature__list li { padding-left: 22px; border-left: 2px solid var(--line); }
.feature__list h4 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: 1.12rem; letter-spacing: 0.01em; margin-bottom: 6px;
}
.feature__list p { color: var(--ink-2); font-size: 0.95rem; }
.feature__media {
  position: relative; overflow: hidden;
  min-height: 360px;
  /* feather all four edges so the image dissolves into the background */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-composite: intersect;
}
.feature__media picture { display: contents; }
.feature__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.feature__media:hover img { transform: scale(1.05); }

/* ---------- Why DVC ---------- */
.why__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}
.why__item {
  padding: 40px 34px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.why__item h3 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: 1.3rem; line-height: 1.05; margin-bottom: 12px;
}
.why__item p { color: var(--ink-2); font-size: 0.96rem; }

/* ---------- Trust / partners ---------- */
.trust { padding: 56px 0; border-top: 1px solid var(--line-soft); }
.trust__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.trust__inner--partners { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--line-soft); }
.trust__label {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-3); flex: 0 0 100%;
}
.trust__list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.trust__list li {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: 1.18rem; letter-spacing: 0.02em; color: var(--ink-2);
}
.trust__list--partners { gap: 12px 34px; }
.trust__list--partners li { font-size: 1.02rem; color: var(--ink-3); }

/* ---------- Contact ---------- */
.contact__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--line-soft);
  margin-bottom: 44px;
}
.office { padding: 44px clamp(28px, 4vw, 48px); }
.office + .office { border-left: 1px solid var(--line-soft); }
.office__region {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--red); margin-bottom: 10px;
}
.office__city {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: 2.4rem; line-height: 1; margin-bottom: 18px;
}
.office address { font-style: normal; color: var(--ink-2); margin-bottom: 22px; }
.office__meta { display: grid; gap: 12px; }
.office__meta > div { display: flex; gap: 14px; align-items: baseline; }
.office__meta dt {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3); flex: 0 0 56px;
}
.office__meta dd a { color: var(--ink-1); border-bottom: 1px solid transparent; transition: border-color .2s; }
.office__meta dd a:hover { border-bottom-color: var(--red); }
.contact__cta { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: var(--black); border-top: 1px solid var(--line); padding: 64px 0 30px; }
.footer__inner {
  display: grid; grid-template-columns: 1.2fr 2fr; gap: clamp(36px, 6vw, 80px);
  padding-bottom: 48px;
}
.footer__logo { height: 26px; width: auto; margin-bottom: 18px; }
.footer__tagline { color: var(--ink-3); font-size: 0.95rem; max-width: 32ch; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer__cols h4 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px;
}
.footer__cols a {
  display: block; color: var(--ink-2); font-size: 0.94rem; padding: 6px 0;
  transition: color .2s;
}
.footer__cols a:hover { color: var(--ink-1); }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 26px; border-top: 1px solid var(--line-soft);
}
.footer__bottom p { font-size: 0.82rem; color: var(--ink-3); }
.footer__temp { font-family: var(--font-mono); letter-spacing: 0.06em; }

/* ---------- Heading letter reveal (Peraton-style char fade-in) ---------- */
.reveal-word { display: inline-block; white-space: nowrap; }
.reveal-char {
  display: inline-block;
  opacity: 0;
  will-change: opacity;
  transition: opacity .7s ease;
}
.reveal-char.is-in { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .reveal-char { opacity: 1; transition: none; }
}

/* ---------- Legal pages (Terms / Privacy) ---------- */
.legal {
  padding: clamp(130px, 16vw, 190px) 0 clamp(72px, 11vw, 130px);
  border-bottom: 1px solid var(--line-soft);
}
.legal__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.legal__title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.96;
  letter-spacing: -0.01em;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}
.legal__updated {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3); margin-top: 20px;
}
.legal__body { max-width: 76ch; }
.legal__body > * + * { margin-top: 18px; }
.legal__body h2 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.05; letter-spacing: -0.005em;
  margin-top: clamp(40px, 5vw, 56px); padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--line-soft);
}
.legal__body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal__body h3 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: 1.18rem; letter-spacing: 0.01em; margin-top: 32px;
}
.legal__body p, .legal__body li { color: var(--ink-2); }
.legal__body ul, .legal__body ol { padding-left: 22px; }
.legal__body li { margin-top: 8px; }
.legal__body a { color: var(--ink-1); border-bottom: 1px solid var(--red); }
.legal__body a:hover { border-bottom-color: var(--ink-1); }
.legal__body strong { color: var(--ink-1); }
.legal__body .table-wrap { margin-top: 24px; overflow-x: auto; }
.legal__body table {
  width: 100%; border-collapse: collapse;
  border: 1px solid var(--line-soft); font-size: 0.95rem;
}
.legal__body th, .legal__body td {
  padding: 14px 18px; text-align: left; vertical-align: top;
  border: 1px solid var(--line-soft); color: var(--ink-2);
}
.legal__body thead th {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-1); background: var(--surface-2);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__notice .dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .intro__inner { grid-template-columns: 1fr; gap: 28px; }
  .matrix { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .feature__inner, .feature__inner--reverse { grid-template-columns: 1fr; gap: 36px; }
  .feature__inner--reverse .feature__media { order: 2; }
  .stats__inner { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 1px solid var(--line-soft); }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--line-soft); }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .nav__toggle { display: flex; }
  .matrix { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .office + .office { border-left: 0; border-top: 1px solid var(--line-soft); }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: auto; padding: 130px 0 96px; }
  .hero__media {
    background-position: center;
    opacity: 0.5;
  }
  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.45) 45%, rgba(0,0,0,0.92) 100%);
  }
}

@media (max-width: 420px) {
  .footer__cols { grid-template-columns: 1fr; }
}
