/* ===== DeepAudit — tactical/dark theme ===== */

:root {
  --bg: #08090a;
  --bg-alt: #0d0f0e;
  --panel: #101211;
  --line: #23261f;
  --line-bright: #3a3f33;
  --ink: #e9e8e2;
  --ink-dim: #9a9d92;
  --ink-faint: #5c5f56;
  --accent: #ff4b1f;
  --accent-dim: #7a2611;
  --olive: #8a9163;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 1240px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(138, 145, 99, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 145, 99, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 40%, transparent 100%);
  /* own compositing layer: keeps the fixed grid from repainting on scroll */
  transform: translateZ(0);
  backface-visibility: hidden;
}

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

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

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 8px var(--accent);
}

h1, h2, h3 {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.04;
}

/* ===== Top strip ===== */

.topstrip {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}

.topstrip .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 34px;
  gap: 24px;
  overflow: hidden;
  white-space: nowrap;
}

.topstrip .ticker {
  text-transform: uppercase;
}

.topstrip .status {
  color: var(--olive);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.topstrip .status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6fbf5c;
  box-shadow: 0 0 6px #6fbf5c;
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ===== Header / nav ===== */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* near-opaque instead of backdrop-filter: sticky + blur smears on scroll */
  background: rgba(8, 9, 10, 0.97);
  transform: translateZ(0);
  border-bottom: 1px solid var(--line);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo .mark {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  color: var(--accent);
  overflow: visible;
}

.logo .sub {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-faint);
  letter-spacing: 0.18em;
  margin-left: 2px;
  font-weight: 400;
  display: block;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 36px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.navlinks a {
  color: var(--ink-dim);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}

.navlinks a:hover { color: var(--ink); }

.navlinks a.active { color: var(--accent); }

.btn {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid var(--accent);
  color: var(--ink);
  background: transparent;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn:hover { background: var(--accent); color: #0a0a0a; }

.btn.solid {
  background: var(--accent);
  color: #0a0a0a;
  border-color: var(--accent);
}

.btn.solid:hover { background: #ff6438; border-color: #ff6438; }

.btn.ghost {
  border-color: var(--line-bright);
}

.btn.ghost:hover {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--ink-dim);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
}

/* ===== Hero ===== */

.hero {
  padding: 120px 0 90px;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.hero .corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-bright);
}
.hero .corner.tl { top: 40px; left: 32px; border-right: none; border-bottom: none; }
.hero .corner.tr { top: 40px; right: 32px; border-left: none; border-bottom: none; }

.hero .eyebrow { margin-bottom: 26px; }

.hero h1 {
  font-size: clamp(44px, 7vw, 84px);
  max-width: 920px;
  margin-bottom: 30px;
}

.hero h1 span { color: var(--accent); }

.hero p.lead {
  font-family: var(--body);
  font-size: 19px;
  color: var(--ink-dim);
  max-width: 620px;
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  padding-top: 28px;
  max-width: 780px;
  gap: 20px;
}

.stat-row .stat {
  font-family: var(--mono);
}

.stat-row .stat .num {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 6px;
}

.stat-row .stat .label {
  color: var(--ink-faint);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.5;
}

/* ===== Section shared ===== */

section {
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin-top: 14px;
}

.section-head .desc {
  max-width: 360px;
  color: var(--ink-dim);
  font-size: 15px;
  padding-bottom: 6px;
}

.index-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}

/* ===== Capabilities ===== */

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.cap-card {
  background: var(--bg);
  padding: 40px 34px;
  position: relative;
  transition: background 0.25s;
  display: block;
}

.cap-card:hover { background: var(--panel); }

.cap-card .n {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.1em;
  margin-bottom: 34px;
  display: block;
}

.cap-card h3 {
  font-size: 22px;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.cap-card p {
  color: var(--ink-dim);
  font-size: 14.5px;
  line-height: 1.7;
}

.cap-card .tag {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  text-transform: uppercase;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

/* ===== Expertise ===== */

.expertise {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}

.expertise h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 26px;
}

.expertise p {
  color: var(--ink-dim);
  font-size: 16.5px;
  max-width: 560px;
  margin-bottom: 30px;
}

.taglist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.taglist span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--line-bright);
  color: var(--ink-dim);
}

.taglist span.more {
  color: var(--ink);
  border-color: var(--ink);
  font-weight: 500;
}

.readout {
  border: 1px solid var(--line);
  padding: 28px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--olive);
  background: var(--panel);
  line-height: 2.1;
  align-self: stretch;
}

.readout .r-title {
  color: var(--ink-faint);
  letter-spacing: 0.14em;
  margin-bottom: 14px;
  display: block;
}

.readout .row {
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed var(--line);
  padding: 8px 0;
}

.readout .row:first-of-type { border-top: none; }

.readout .row .v { color: var(--ink); }

/* ===== Leadership ===== */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.person {
  border: 1px solid var(--line);
  padding: 30px;
  position: relative;
  display: block;
  transition: background 0.25s;
}

.person:hover { background: var(--panel); }

.person::before,
.person::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
}
.person::before { top: -1px; left: -1px; border-top: 1px solid var(--accent); border-left: 1px solid var(--accent); }
.person::after { bottom: -1px; right: -1px; border-bottom: 1px solid var(--accent); border-right: 1px solid var(--accent); }

.person .id {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-faint);
  letter-spacing: 0.12em;
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
}

.person h3 {
  font-size: 21px;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.person .role {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.person .bio {
  color: var(--ink-dim);
  font-size: 14px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

/* ===== Contact ===== */

.contact-section {
  padding: 110px 0;
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.contact-grid h2 {
  font-size: clamp(34px, 5vw, 58px);
  margin-bottom: 22px;
}

.contact-grid p {
  color: var(--ink-dim);
  font-size: 16px;
  max-width: 460px;
  margin-bottom: 34px;
}

.contact-card {
  border: 1px solid var(--line-bright);
  padding: 40px;
  background: var(--panel);
}

.contact-card .cline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
}

.contact-card .cline:last-child { border-bottom: none; }

.contact-card .cline .k {
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 11px;
}

.contact-card .cline .v {
  color: var(--ink);
}

.contact-card .cline a.v:hover { color: var(--accent); }

/* ===== Footer ===== */

footer {
  padding: 30px 0;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  flex-wrap: wrap;
  gap: 12px;
}

footer a:hover { color: var(--accent); }

/* ===== Sub-page hero ===== */

.sub-hero {
  padding: 150px 0 64px;
  position: relative;
}

.sub-hero .back {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  transition: color 0.2s;
}

.sub-hero .back:hover { color: var(--accent); }

.sub-hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  max-width: 780px;
  margin-bottom: 18px;
}

.sub-hero .lead {
  margin-bottom: 0;
}

.subhead {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 500;
  font-size: clamp(22px, 2.9vw, 34px);
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--ink-dim);
  margin: 0;
  max-width: 780px;
}

/* ===== Numbered stack sections ===== */

.stack-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 40px;
  padding: 46px 0;
  border-top: 1px solid var(--line);
}

.stack-item:first-child { border-top: none; padding-top: 0; }

.stack-item .n {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.1em;
  padding-top: 4px;
}

.stack-item h3 {
  font-size: 23px;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.stack-item p {
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.75;
  max-width: 700px;
  margin-bottom: 14px;
}

.stack-item p:last-child { margin-bottom: 0; }

.stack-item ul.plain {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  max-width: 700px;
}

.stack-item ul.plain li {
  font-size: 14.5px;
  color: var(--ink-dim);
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}

.stack-item ul.plain li::before {
  content: "\203a";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.stack-item ul.plain li strong {
  color: var(--ink);
  font-weight: 500;
}

/* ===== Press / publications list ===== */

.press-list {
  display: flex;
  flex-direction: column;
}

.press-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 28px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.press-item:first-child { border-top: none; }

.press-item .headline {
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.55;
}

.press-item .headline a:hover {
  color: var(--accent);
}

.press-item .date {
  font-family: var(--mono);
  color: var(--ink-faint);
  font-size: 11px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== CTA band ===== */

.cta-band {
  padding: 90px 0;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 20px;
}

.cta-band p {
  color: var(--ink-dim);
  max-width: 520px;
  margin: 0 auto 34px;
}

.cta-band .hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

/* ===== Responsive ===== */

@media (max-width: 900px) {
  .navlinks { display: none; }
  .menu-toggle { display: flex; }
  .cap-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .expertise { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; gap: 16px; }
  .topstrip .ticker { display: none; }
  .stack-item { grid-template-columns: 1fr; gap: 14px; }
  .press-item { flex-direction: column; gap: 6px; }
}

@media (max-width: 900px) {
  nav.open .navlinks {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 32px 32px;
    gap: 22px;
  }
}

@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 90px 0 60px; }
  section { padding: 70px 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}
