/* =========================================================
   SECURE STRATEGY GROUP — design system
   Direction: "briefing dossier" — deep ink navy + classification
   red, serif display for gravitas, monospace for data/stamps.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Mono:wght@400;500;600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink: #0B1C2C;
  --ink-2: #13273C;
  --ink-3: #1C3552;
  --paper: #FFFFFF;
  --paper-2: #EEF2F6;
  --line: #D7DEE6;
  --line-dark: #2A4160;
  --red: #B3122B;
  --red-bright: #FF5468;
  --red-dim: rgba(179, 18, 43, 0.08);
  --steel: #5B7290;
  --muted: #55677D;
  --muted-onk: #8FA3BC;

  --serif: 'Spectral', Georgia, serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --maxw: 1180px;
  --pad: clamp(24px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ---------- Classification tag (signature element) ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid currentColor;
  padding: 9px 16px 9px 16px;
  position: relative;
  margin-bottom: 20px;
}
.tag::before, .tag::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
}
.tag::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.tag::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.tag.on-dark { color: var(--red-bright); }
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.4em 0;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(38px, 5.2vw, 64px); font-weight: 700; }
h2 { font-size: clamp(28px, 3.4vw, 42px); }
h3 { font-size: 22px; }
h4 { font-size: 17px; }

p { margin: 0 0 1em 0; }
.lead { font-size: 19px; color: var(--muted); line-height: 1.55; }
.muted { color: var(--muted); }
.on-dark .muted, .on-dark p, .on-dark { color: var(--muted-onk); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--paper); }

.section-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--steel);
  letter-spacing: 0.1em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #8f0e22; }
.btn-outline { border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-outline.on-dark { border-color: var(--line-dark); color: #fff; }
.btn-outline.on-dark:hover { border-color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo { height: 28px; width: auto; display: block; }
.brand-mark {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.brand-mark span {
  width: 20px;
  height: 3px;
  background: var(--red);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav > ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
}
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-onk);
  border: 1px solid transparent;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: #fff; }
.nav-item.has-dropdown > .nav-link::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  margin-left: 2px;
}
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  padding: 10px;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.nav-item.has-dropdown:hover .dropdown,
.nav-item.has-dropdown:focus-within .dropdown {
  display: flex;
}
.dropdown a {
  padding: 10px 12px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted-onk);
}
.dropdown a:hover { color: #fff; background: var(--ink-3); }

.nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  color: #fff;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 12px;
}

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .nav {
    position: fixed;
    inset: 65px 0 0 0;
    background: var(--ink);
    flex-direction: column;
    align-items: stretch;
    padding: 20px var(--pad);
    display: none;
    overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; width: 100%; gap: 0; }
  .nav-link { padding: 16px 4px; border-bottom: 1px solid var(--line-dark); }
  .dropdown { position: static; display: none; border: none; padding-left: 16px; background: none; }
  .nav-item.has-dropdown.open .dropdown { display: flex; }
  .nav-cta { margin: 16px 0 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  padding: 84px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 640px;
  height: 640px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
}
.hero::after {
  content: "";
  position: absolute;
  right: 6%;
  bottom: -30%;
  width: 380px;
  height: 380px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 780px; }
.hero .lead { max-width: 620px; margin-top: 18px; color: var(--muted-onk); }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.hero-stat {
  margin-top: 56px;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  border: 1px solid var(--line-dark);
  background: var(--ink-2);
  padding: 22px 28px;
}
.hero-stat .num {
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 700;
  color: var(--red);
}
.hero-stat .cap {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted-onk);
  max-width: 260px;
  line-height: 1.4;
}

/* generic page header (non-home) */
.page-header {
  background: var(--ink);
  padding: 64px 0 56px;
}
.page-header h1 { color: #fff; max-width: 760px; }
.page-header .lead { max-width: 640px; margin-top: 14px; color: var(--muted-onk); }

/* ---------- Section shell ---------- */
.section { padding: 88px 0; }
.section.tight { padding: 56px 0; }
.section.dark { background: var(--ink); }
.section.paper2 { background: var(--paper-2); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

hr.rule { border: none; border-top: 1px solid var(--line); margin: 0; }
.on-dark hr.rule, .dark hr.rule { border-top-color: var(--line-dark); }

/* margin rule for long-form text (dossier binding motif) */
.dossier {
  border-left: 2px solid var(--red);
  padding-left: 28px;
}

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 880px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}
@media (min-width: 881px) and (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1101px) and (max-width: 1250px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}

/* logo cards for representative-transaction style logo lock-ups */
.logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 28px 20px;
}
.logo-card img { max-width: 100%; max-height: 40px; width: auto; object-fit: contain; }
.logo-card .deal-type { font-size: 13px; color: var(--muted); }

/* sector cards with photo header */
.sector-card { padding: 0; overflow: hidden; }
.sector-img { width: 100%; aspect-ratio: 16 / 10; overflow: hidden; }
.sector-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sector-card-body { padding: 22px 22px 24px; }
.sector-card-body h4 { margin-bottom: 10px; }

.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 26px;
}
.card.on-dark { background: var(--ink-2); border-color: var(--line-dark); }
.card h4 { margin-bottom: 10px; }
.card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.card.on-dark ul { color: var(--muted-onk); }
.card ul li { margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card.on-dark p { color: var(--muted-onk); }

.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  align-items: baseline;
}

/* ---------- Quote ---------- */
.quote {
  position: relative;
  padding: 40px 44px;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
}
.quote .mark { font-family: var(--serif); font-size: 56px; color: var(--red); line-height: 1; }
.quote p.qt { font-family: var(--serif); font-size: 19px; font-style: italic; color: #fff; margin: 10px 0 18px; }
.quote .attr { font-family: var(--mono); font-size: 12px; color: var(--muted-onk); letter-spacing: 0.05em; }
.quote.light { background: var(--paper-2); border-color: var(--line); }
.quote.light p.qt { color: var(--ink); }
.quote.light .attr { color: var(--muted); }

/* ---------- People ---------- */
.person {
  display: flex;
  gap: 18px;
}
.avatar {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person-body h4 { margin-bottom: 2px; }
.person-role {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--red);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.person-bio { color: var(--muted); font-size: 14.5px; line-height: 1.55; }

.leader { padding: 32px 0; border-top: 1px solid var(--line); }
.leader:first-of-type { border-top: none; }
.leader .avatar { width: 76px; height: 76px; font-size: 24px; }

/* ---------- Stat row ---------- */
.stat-row { display: flex; gap: 48px; flex-wrap: wrap; }
.stat { }
.stat .num { font-family: var(--serif); font-size: 40px; font-weight: 700; color: var(--red); }
.stat .cap { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.04em; max-width: 200px; }

/* ---------- Table-ish list for deal tracker ---------- */
.spec-list { list-style: none; margin: 0; padding: 0; }
.spec-list li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.spec-list li .k {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--red);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.spec-list li .v { color: var(--muted); font-size: 14.5px; }
/* dark-background variant — use inside .on-dark or .card.on-dark */
.on-dark .spec-list li,
.card.on-dark .spec-list li { border-bottom-color: var(--line-dark); }
.on-dark .spec-list li .v,
.card.on-dark .spec-list li .v { color: var(--muted-onk); }
@media (max-width: 620px) {
  .spec-list li { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--red);
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band .lead { color: #FBD9DE; margin: 0 auto 28px; }
.cta-band .btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.cta-band .btn-outline:hover { border-color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  padding: 64px 0 32px;
  border-top: 1px solid var(--line-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-grid h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-onk);
  margin: 0 0 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #cfd9e4; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted-onk);
}
.footer-legal { max-width: 760px; line-height: 1.6; }

/* ---------- Reveal on scroll ----------
   Intentionally a no-op on content visibility: large sections should
   never depend on JS/IntersectionObserver firing to become visible.
   Kept as a hook class only; .in adds no visual change. */
.reveal, .reveal.in { opacity: 1; }

/* ---------- Breadcrumb / eyebrow line ---------- */
.eyebrow-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.eyebrow-line .rule-short { width: 40px; height: 1px; background: var(--red); }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
