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

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1c1c1c;
  --text-primary: #e8e4de;
  --text-secondary: #8a857e;
  --text-muted: #5a5650;
  --accent: #c9a84c;
  --accent-dim: rgba(201, 168, 76, 0.15);
  --accent-glow: rgba(201, 168, 76, 0.08);
  --border: rgba(201, 168, 76, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Utility ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.4s ease;
}

nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-logo svg { height: 32px; width: auto; }
.nav-logo img { height: 36px; width: auto; display: block; }

.nav-logo span {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); }

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.4; transform: translate(0, 0) scale(1); }
  100% { opacity: 0.7; transform: translate(-30px, 20px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  font-weight: 500;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 400;
  line-height: 1.08;
  margin-bottom: 32px;
  color: var(--text-primary);
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--accent);
  margin-bottom: 48px;
  opacity: 0.85;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.35s ease;
}

.hero-cta:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

.hero-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.35s ease;
}

.hero-cta:hover svg { transform: translateX(4px); }

/* ── Section shared ── */
section { padding: clamp(80px, 12vw, 160px) 0; }

.section-label {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 500;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.8;
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

/* ── Services ── */
.services { background: var(--bg-secondary); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2px;
  margin-top: 64px;
  background: var(--border-subtle);
}

.service-card {
  background: var(--bg-secondary);
  padding: clamp(32px, 4vw, 48px);
  transition: all 0.4s ease;
  position: relative;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: clamp(32px, 4vw, 48px);
  right: clamp(32px, 4vw, 48px);
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.service-card:hover { background: var(--bg-card); }
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 28px;
  color: var(--accent);
}

.service-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.3;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
}

/* ── Threat landscape / stats ── */
.stats {
  background: var(--bg-primary);
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-top: 64px;
}

.stat-item { text-align: center; }

.stat-number {
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}

.stat-unit {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 400;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 8px;
}

/* ── Approach / Why ── */
.approach { background: var(--bg-secondary); }

.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 64px;
  align-items: start;
}

.approach-text {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.9;
}

.approach-text p + p { margin-top: 24px; }

.approach-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.approach-list li {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.approach-list li:first-child { border-top: 1px solid var(--border-subtle); }

.approach-list .num {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--accent);
  min-width: 36px;
}

.approach-list .text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.approach-list strong {
  color: var(--text-primary);
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}

/* ── Work callout ── */
.work-callout { background: var(--bg-secondary); }

.work-callout-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.work-callout-inner .section-title { margin-bottom: 16px; }
.work-callout-inner .hero-cta { flex-shrink: 0; }

/* ── Contact / CTA ── */
.contact {
  background: var(--bg-primary);
  text-align: center;
  padding: clamp(100px, 14vw, 200px) 0;
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60vw;
  height: 50vh;
  background: radial-gradient(ellipse at bottom, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

.contact .section-title {
  max-width: 700px;
  margin: 0 auto 20px;
}

.contact .section-desc {
  max-width: 500px;
  margin: 0 auto 48px;
  text-align: center;
}

.contact-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.contact-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1px;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-link:hover { color: var(--accent); }

.contact-link svg { width: 18px; height: 18px; color: var(--accent); }

/* ── Footer ── */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: #ffffff;
}

/* ── Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Our Work page ── */
.page-top { padding-top: clamp(140px, 16vw, 220px); }

.prose {
  max-width: 720px;
  margin-top: 48px;
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.9;
}

.prose p + p { margin-top: 24px; }

.engagements { background: var(--bg-secondary); }

.engagements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 2px;
  margin-top: 64px;
  background: var(--border-subtle);
}

.engagement-card {
  background: var(--bg-secondary);
  padding: clamp(32px, 4vw, 48px);
  transition: all 0.4s ease;
  position: relative;
}

.engagement-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: clamp(32px, 4vw, 48px);
  right: clamp(32px, 4vw, 48px);
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.engagement-card:hover { background: var(--bg-card); }
.engagement-card:hover::after { transform: scaleX(1); }

.engagement-card h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.3;
  margin-bottom: 28px;
}

.engagement-block + .engagement-block { margin-top: 20px; }

.engagement-label {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.engagement-block p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
}

.engagement-outcome {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.engagement-outcome p {
  font-style: italic;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(20px);
    padding: 32px clamp(24px, 5vw, 80px);
    gap: 24px;
    border-bottom: 1px solid var(--border);
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .approach-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

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

  .work-callout-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-links {
    flex-direction: column;
    gap: 24px;
  }

  footer .container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
