:root {
  --bg: #f6f8f7;
  --surface: #ffffff;
  --text: #132625;
  --muted: #55615d;
  --line: #dce7e2;
  --accent: #0f6a57;
  --accent-2: #e6f3ef;
  --teal: #2b8975;
  --red: #c84852;
  --gold: #f1b24a;
  --shadow: rgba(19, 38, 37, 0.07);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 248, 247, 0.94);
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  object-fit: cover;
}

.brand-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 850;
}

.brand-sub {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
}

nav a.active,
nav a:hover {
  color: var(--text);
}

.hero {
  min-height: 76vh;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(19, 38, 37, 0.94), rgba(19, 38, 37, 0.74) 52%, rgba(19, 38, 37, 0.24)),
    url("https://images.unsplash.com/photo-1556761175-4b46a572b786?auto=format&fit=crop&w=1800&q=82")
      center / cover;
}

.hero-inner {
  min-height: calc(76vh - 76px);
  display: flex;
  align-items: center;
  padding: 58px 0 72px;
}

.hero-copy {
  max-width: 820px;
}

.page-hero {
  padding: 78px 0 64px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(19, 38, 37, 0.95), rgba(19, 38, 37, 0.76)),
    url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1600&q=82")
      center / cover;
}

.services-hero {
  background:
    linear-gradient(90deg, rgba(19, 38, 37, 0.95), rgba(19, 38, 37, 0.76)),
    url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=1600&q=82")
      center / cover;
}

.training-hero {
  background:
    linear-gradient(90deg, rgba(19, 38, 37, 0.95), rgba(19, 38, 37, 0.76)),
    url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1600&q=82")
      center / cover;
}

.lab-hero {
  background:
    linear-gradient(90deg, rgba(19, 38, 37, 0.96), rgba(19, 38, 37, 0.78)),
    url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=1600&q=82")
      center / cover;
}

.contact-hero {
  background:
    linear-gradient(90deg, rgba(19, 38, 37, 0.95), rgba(19, 38, 37, 0.76)),
    url("https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&w=1600&q=82")
      center / cover;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
}

.section-kicker {
  color: var(--accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 13ch;
  margin-bottom: 22px;
  font-size: 3rem;
  line-height: 1.02;
}

h2 {
  margin-bottom: 14px;
  font-size: 2rem;
  line-height: 1.12;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.07rem;
}

.lead {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  line-height: 1.75;
}

.section {
  padding: 76px 0;
}

.section-white {
  background: var(--surface);
}

.section-copy,
.muted,
.card p,
.step p,
footer {
  color: var(--muted);
}

.section-copy {
  font-size: 1.04rem;
  line-height: 1.75;
}

.intro-grid,
.split,
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: start;
}

.grid-3,
.service-grid {
  display: grid;
  gap: 16px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.service-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 38px var(--shadow);
}

.accent-bar {
  width: 42px;
  height: 6px;
  margin-bottom: 22px;
  border-radius: 6px;
  background: var(--accent);
}

.card:nth-child(2) .accent-bar {
  background: var(--teal);
}

.card:nth-child(3) .accent-bar {
  background: var(--red);
}

.card:nth-child(4) .accent-bar {
  background: var(--gold);
}

.card:nth-child(5) .accent-bar {
  background: var(--accent);
}

.image-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--text);
}

.image-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.steps,
.timeline {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}

.step-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--text);
  font-weight: 850;
}

.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.timeline-item strong {
  color: var(--accent);
}

.lab-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 34px;
  align-items: end;
}

.release-panel,
.lab-panel,
.lab-metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 38px var(--shadow);
}

.release-panel {
  padding: 22px;
  color: var(--text);
}

.release-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.release-label,
.lab-metric span,
.framework-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.release-panel strong {
  display: block;
  margin: 8px 0 10px;
  color: var(--red);
  font-size: 1.45rem;
  line-height: 1.1;
}

.lab-metrics,
.framework-summary,
.evidence-grid {
  display: grid;
  gap: 16px;
}

.lab-metrics {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 24px;
}

.lab-metric {
  padding: 22px;
}

.lab-metric strong {
  display: block;
  margin: 12px 0 8px;
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
}

.lab-metric p {
  margin: 0;
  color: var(--muted);
}

.lab-metric.risk-high strong,
.lab-metric.decision-block strong {
  color: var(--red);
}

.lab-layout,
.evidence-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.lab-panel {
  padding: 24px;
}

.lab-actions .list-clean li:first-child {
  border-top: 1px solid var(--line);
}

.framework-summary {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.framework-summary div {
  padding: 18px 18px 0 0;
}

.framework-summary strong {
  display: block;
  margin-top: 6px;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.control-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.control-table th,
.control-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.control-table th {
  color: var(--muted);
  background: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
}

.control-table tr:last-child td {
  border-bottom: 0;
}

.control-id {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-pass {
  color: #166534;
  background: rgba(22, 101, 52, 0.1);
}

.status-fail,
.severity-high {
  color: var(--red);
  background: rgba(200, 72, 82, 0.12);
}

.severity-medium {
  color: #8a5a00;
  background: rgba(241, 178, 74, 0.22);
}

.evidence-block {
  overflow-x: auto;
  margin: 18px 0 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--bg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
  font-weight: 850;
}

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

.list-clean {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.list-clean li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.list-clean li:first-child {
  border-top: 0;
}

.cta-panel {
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(19, 38, 37, 0.96), rgba(19, 38, 37, 0.78)),
    url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1600&q=82")
      center / cover;
}

.cta-panel .section-kicker {
  color: var(--gold);
}

.cta-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.dark-card {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.dark-card p,
.dark-card a {
  color: #ffffff;
}

footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

@media (min-width: 720px) {
  h1 {
    font-size: 4.35rem;
  }

  h2 {
    font-size: 2.45rem;
  }
}

@media (min-width: 1080px) {
  h1 {
    font-size: 5rem;
  }
}

@media (max-width: 920px) {
  .intro-grid,
  .split,
  .contact-grid,
  .lab-hero-grid,
  .lab-layout,
  .evidence-grid,
  .grid-3,
  .service-grid,
  .lab-metrics,
  .framework-summary {
    grid-template-columns: 1fr;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .hero {
    min-height: 82vh;
  }

  .hero-inner {
    min-height: calc(82vh - 120px);
    padding: 42px 0 58px;
  }

  h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .section {
    padding: 56px 0;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-inner {
    display: grid;
  }
}
