/* ============================================================
   Vision Vault Systems — design tokens
   Navy + institutional gold, pulled from the mark. Serif display
   for gravitas, mono for the numbers that do the actual selling.
   ============================================================ */

:root {
  --navy:        #0B0F1F;
  --navy-raised: #131A33;
  --navy-line:   rgba(232, 199, 102, 0.16);
  --gold:        #C9A227;
  --gold-bright: #E8C766;
  --parchment:   #EDEAE0;
  --parchment-2: #E2DDCC;
  --ink:         #E7E4D9;
  --ink-dim:     rgba(231, 228, 217, 0.64);
  --ink-dimmer:  rgba(231, 228, 217, 0.42);
  --rust:        #8B4A3C;
  --coal:        #05070D;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --max: 1120px;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ambient glow field — soft, low-opacity gold blooms behind key sections */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.glow-gold {
  background: radial-gradient(circle, rgba(201,162,39,0.30) 0%, rgba(201,162,39,0) 70%);
}
.glow-rust {
  background: radial-gradient(circle, rgba(139,74,60,0.22) 0%, rgba(139,74,60,0) 70%);
}

a { color: inherit; }

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

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

/* ---------- typography ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.05;
  margin: 0;
  color: var(--parchment);
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.lede {
  font-size: 19px;
  color: var(--ink-dim);
  max-width: 640px;
  margin: 22px 0 0;
}

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

/* ---------- hexagon mark ---------- */

.hex {
  --s: 34px;
  width: var(--s);
  height: calc(var(--s) * 0.86);
  position: relative;
  display: inline-block;
  flex: none;
}
.hex svg { width: 100%; height: 100%; display: block; }

/* ---------- nav ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 15, 31, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--navy-line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--max);
  margin: 0 auto;
}

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

.brand-name {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--parchment);
  text-transform: uppercase;
}

.brand-name small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-top: 2px;
}

nav.links {
  display: flex;
  align-items: center;
  gap: 34px;
}

nav.links a {
  text-decoration: none;
  font-size: 14px;
  color: var(--ink-dim);
  transition: color 0.15s ease;
}
nav.links a:hover { color: var(--gold-bright); }
nav.links a.active { color: var(--parchment); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
}
.btn-gold {
  background: var(--gold);
  color: var(--coal);
  box-shadow: 0 8px 24px -8px rgba(201,162,39,0.55);
}
.btn-gold:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -8px rgba(201,162,39,0.7);
}
.btn-line {
  border-color: rgba(231, 228, 217, 0.28);
  color: var(--parchment);
}
.btn-line:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  transform: translateY(-1px);
}

/* ---------- hero ---------- */

.hero {
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(44px, 6.2vw, 78px);
  max-width: 880px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.hero h1 .accent {
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold-bright) 60%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede { position: relative; z-index: 1; }

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

/* ---------- gate-diff panel (signature element) ---------- */
/* Modeled on a CI test report: a literal before/after gate,
   because that IS the product this firm sells. */

.gate {
  margin-top: 64px;
  border: 1px solid var(--navy-line);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--navy-raised) 0%, rgba(19,26,51,0.7) 100%);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.55), 0 0 0 1px rgba(201,162,39,0.05);
  position: relative;
  z-index: 1;
}

.gate-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid var(--navy-line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-dimmer);
  letter-spacing: 0.06em;
}

.gate-head .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  display: inline-block;
  margin-right: 8px;
}

.gate-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.gate-col { padding: 26px 30px; }

.gate-col.before {
  color: var(--ink-dimmer);
  border-right: 1px solid var(--navy-line);
}
.gate-col.before .gate-label { color: var(--rust); }

.gate-col.after .gate-label { color: var(--gold-bright); }

.gate-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

.gate-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid rgba(231, 228, 217, 0.06);
  font-family: var(--mono);
  font-size: 14px;
}
.gate-row:first-of-type { border-top: none; }

.gate-col.before .gate-row { color: var(--ink-dimmer); }
.gate-col.after .gate-row { color: var(--parchment); }

.gate-foot {
  padding: 14px 22px;
  border-top: 1px solid var(--navy-line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-dimmer);
}

@media (max-width: 640px) {
  .gate-body { grid-template-columns: 1fr; }
  .gate-col.before { border-right: none; border-bottom: 1px solid var(--navy-line); }
}

/* ---------- stat strip ---------- */

.stats {
  padding: 20px 0 88px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  border: 1px solid var(--navy-line);
  border-radius: 14px;
  padding: 30px 26px;
  background: linear-gradient(160deg, rgba(232,199,102,0.06) 0%, rgba(19,26,51,0.4) 60%);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201,162,39,0.4);
}

.stat-num {
  font-family: var(--mono);
  font-size: 42px;
  color: var(--gold-bright);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.stat-label {
  font-size: 13.5px;
  color: var(--ink-dim);
  margin-top: 8px;
}

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

/* ---------- sections ---------- */

section { padding: 88px 0; }
.section-tight { padding: 64px 0; }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }

/* ---------- service pillars ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.pillar {
  background: linear-gradient(160deg, rgba(232,199,102,0.05) 0%, rgba(19,26,51,0.5) 55%);
  border: 1px solid var(--navy-line);
  border-radius: 16px;
  padding: 38px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.pillar:hover {
  transform: translateY(-4px);
  border-color: rgba(201,162,39,0.4);
  box-shadow: 0 24px 48px -24px rgba(0,0,0,0.5);
}

.pillar .hex-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(201,162,39,0.16) 0%, rgba(201,162,39,0) 72%);
  margin-bottom: 22px;
}

.pillar h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.pillar p {
  color: var(--ink-dim);
  font-size: 15px;
  margin: 0;
}

.pillar .tag-row {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-dimmer);
}

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

/* ---------- portfolio / browser frame ---------- */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.frame {
  border: 1px solid var(--navy-line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--navy-raised);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.frame:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 28px 56px -24px rgba(0,0,0,0.55);
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--navy-line);
}
.frame-bar span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(231, 228, 217, 0.18);
}
.frame img { display: block; width: 100%; }

.frame-cap {
  padding: 16px 18px 20px;
  font-size: 14px;
  color: var(--ink-dim);
}
.frame-cap strong { color: var(--parchment); }

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

/* ---------- case studies (anonymized) ---------- */

.cases {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.case {
  background: linear-gradient(160deg, rgba(232,199,102,0.04) 0%, rgba(19,26,51,0.5) 60%);
  border: 1px solid var(--navy-line);
  border-radius: 18px;
  padding: 44px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  transition: border-color 0.2s ease;
}
.case:hover { border-color: rgba(201,162,39,0.3); }

.case-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-dimmer);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.case h3 {
  font-size: 24px;
  margin-bottom: 14px;
}

.case ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.case ul li {
  font-size: 14.5px;
  color: var(--ink-dim);
  padding: 7px 0;
  border-top: 1px solid rgba(231, 228, 217, 0.06);
}
.case ul li:first-child { border-top: none; }

.case-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-content: start;
}

.case-results .stat-num { font-size: 30px; }

.case-quote {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--navy-line);
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--parchment);
}
.case-quote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 12px;
  color: var(--ink-dimmer);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

/* ---------- capability grid (About / Services) ---------- */

.caps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.cap h3 {
  font-size: 15px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
  margin-bottom: 8px;
  font-weight: 500;
}
.cap p { color: var(--ink-dim); font-size: 14.5px; margin: 0; }

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

/* ---------- model steps (Services page — real sequence) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  background: linear-gradient(160deg, rgba(232,199,102,0.05) 0%, rgba(19,26,51,0.5) 55%);
  border: 1px solid var(--navy-line);
  border-radius: 16px;
  padding: 36px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.step:hover { transform: translateY(-3px); border-color: rgba(201,162,39,0.35); }
.step .num {
  font-family: var(--mono);
  color: var(--gold);
  font-size: 13px;
  margin-bottom: 14px;
}
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { color: var(--ink-dim); font-size: 14.5px; margin: 0; }

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

/* ---------- timeline (Contact page) ---------- */

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.tl-item { border-top: 2px solid var(--gold); padding-top: 16px; }
.tl-item .tl-when {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  display: block;
}
.tl-item p { color: var(--ink-dim); font-size: 14px; margin: 0; }

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

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--navy-raised);
  border-top: 1px solid var(--navy-line);
  border-bottom: 1px solid var(--navy-line);
  padding: 88px 0;
  text-align: center;
}
.cta-band h2 { font-size: clamp(26px, 3.2vw, 36px); max-width: 640px; margin: 0 auto 28px; position: relative; z-index: 1; }
.cta-band .btn { position: relative; z-index: 1; }

/* ---------- panel (parchment section, About/Contact) ---------- */

.panel {
  background: var(--parchment);
  color: var(--coal);
  border-radius: 18px;
  padding: 48px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.4);
}
.panel h3 { color: var(--coal); }
.panel p { color: rgba(5,7,13,0.68); }

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid var(--navy-line);
  padding: 48px 0 40px;
}
.foot-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.foot-tagline {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-dimmer);
  margin-top: 4px;
}
footer.site nav a {
  text-decoration: none;
  color: var(--ink-dim);
  font-size: 13px;
  margin-left: 24px;
}
footer.site nav a:hover { color: var(--gold-bright); }
.foot-copy {
  margin-top: 32px;
  font-size: 12px;
  color: var(--ink-dimmer);
}

/* ---------- reveal-on-scroll (subtle, respects reduced motion) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- utility ---------- */

.center { text-align: center; }
.mailto {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--gold-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 199, 102, 0.35);
  padding-bottom: 2px;
}
.mailto:hover { border-color: var(--gold-bright); }
