/* ==========================================================================
   Forged Context Systems — stylesheet
   Design tokens per Website Build Spec (Developer Handoff) §2–3.
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/site-assets/fonts/Inter-Variable-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- tokens ---- */
:root {
  --page:#FFFFFF; --card:#FFFFFF; --card-bd:#E6EDF5; --card-bd-h:#C9D8EA;
  --alt:#F4F8FC; --chip:#F1F6FB; --hair:#EEF1F5; --info-bg:#F1F6FB;
  --ink:#1C3558; --body:#555555; --muted:#9AA4B2;
  --nav-bg:rgba(255,255,255,0.86); --nav-bd:#E6EDF5; --nav-link:#555555;
  --shadow:rgba(28,53,88,0.10);
}
@media (prefers-color-scheme: dark) {
  :root {
    --page:#0E1A2C; --card:#16263E; --card-bd:#28406492; --card-bd-h:#37598C;
    --alt:#122439; --chip:#1C3558; --hair:#26395A; --info-bg:#1C3558;
    --ink:#EAF1F9; --body:#A6B6CC; --muted:#7C8EA9;
    --nav-bg:rgba(14,26,44,0.86); --nav-bd:#26395A; --nav-link:#A6B6CC;
    --shadow:rgba(0,0,0,0.45);
  }
}

/* ---- base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  color-scheme: light dark;
  font-family: Inter, Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
::selection { background: #2B78C5; color: #fff; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #fff;
  color: #1C3558;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

@keyframes fcsFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---- eyebrow ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #2B78C5;
  margin-bottom: 18px;
}
.eyebrow-on-navy {
  letter-spacing: 0.22em;
  color: #A8C9E8;
}
.eyebrow-rule {
  width: 28px;
  height: 1px;
  background: #2B78C5;
  display: inline-block;
}

/* ---- section rhythm ---- */
.section { padding-top: 108px; padding-bottom: 40px; }
.section-intro { max-width: 680px; margin-bottom: 56px; }
.section-title {
  font-size: 42px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  color: var(--ink);
}
.section-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--body);
  margin: 0;
}

/* ---- grid ---- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- card base ---- */
.card {
  background: var(--card);
  border: 1px solid var(--card-bd);
  border-radius: 14px;
}

/* ---- nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--nav-bd);
}
.nav {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: none;
}
.brand-mark { flex: none; }
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1;
  white-space: nowrap;
}
.brand-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-kicker {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: #2B78C5;
  margin-top: 3px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--nav-link);
  transition: color .2s;
}
.nav-link:hover { color: var(--ink); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: #1C3558;
  padding: 11px 20px;
  border-radius: 7px;
  letter-spacing: 0.01em;
  transition: background .2s;
}
.nav-cta:hover { background: #20548A; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 20px;
  border-top: 1px solid var(--nav-bd);
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link {
  font-size: 15px;
  padding: 13px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.mobile-cta {
  font-size: 15px;
  padding: 14px 20px;
  text-align: center;
  margin-top: 6px;
}

/* ---- hero ---- */
.hero {
  position: relative;
  background: #1C3558;
  color: #fff;
  overflow: hidden;
}
.hero-float {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 58%;
  opacity: 0.5;
  pointer-events: none;
  animation: fcsFloat 9s ease-in-out infinite;
}
.hero-float svg { display: block; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, #1C3558 38%, rgba(28,53,88,0.72) 62%, rgba(28,53,88,0.30) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding-top: 124px;
  padding-bottom: 128px;
}
.hero-content { max-width: 760px; }
.hero-title {
  font-size: clamp(38px, 7vw, 62px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 26px;
  color: #fff;
}
.hero-subhead {
  font-size: 20px;
  line-height: 1.6;
  color: #C9D8EA;
  font-weight: 400;
  margin: 0 0 40px;
  max-width: 620px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 700;
  padding: 16px 30px;
  border-radius: 8px;
}
.btn-primary {
  color: #1C3558;
  background: #fff;
  transition: background .2s, transform .2s;
}
.btn-primary:hover { background: #E6EDF5; transform: translateY(-2px); }
.btn-ghost {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(168,201,232,0.45);
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: #A8C9E8; background: rgba(255,255,255,0.06); }

.hero-trust-wrap {
  position: relative;
  border-top: 1px solid rgba(168,201,232,0.18);
}
.hero-trust {
  padding-top: 22px;
  padding-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}
.trust-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #8FB0D4;
}
.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}
.trust-list li {
  font-size: 14px;
  font-weight: 600;
  color: #C9D8EA;
}

/* ---- services / sectors cards ---- */
.svc-card {
  padding: 38px;
  transition: box-shadow .25s, border-color .25s, transform .25s;
}
.svc-card:hover {
  box-shadow: 0 18px 50px var(--shadow);
  border-color: var(--card-bd-h);
  transform: translateY(-4px);
}
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 11px;
  background: var(--chip);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-number {
  font-size: 13px;
  font-weight: 700;
  color: var(--card-bd-h);
  letter-spacing: 0.08em;
}
.card-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--ink);
}
.card-copy {
  font-size: 15px;
  line-height: 1.62;
  color: var(--body);
  margin: 0 0 20px;
}
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  font-size: 12px;
  font-weight: 600;
  color: #2B78C5;
  background: var(--chip);
  padding: 6px 12px;
  border-radius: 6px;
}

.sector-card {
  padding: 30px;
  transition: box-shadow .25s, border-color .25s, transform .25s;
}
.sector-card:hover {
  box-shadow: 0 16px 44px var(--shadow);
  border-color: var(--card-bd-h);
  transform: translateY(-4px);
}
.sector-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: #2B78C5;
  flex: none;
}
.sector-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

/* ---- approach ---- */
.approach {
  margin-top: 104px;
  background: #1C3558;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.approach-watermark {
  position: absolute;
  left: -40px;
  bottom: -60px;
  width: 340px;
  opacity: 0.14;
  pointer-events: none;
}
.approach-inner {
  position: relative;
  padding-top: 100px;
  padding-bottom: 100px;
}
.approach-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: start;
}
.approach-title {
  font-size: 40px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
}
.approach-lead {
  font-size: 17px;
  line-height: 1.65;
  color: #C9D8EA;
  margin: 0;
}
.approach-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.approach-item {
  display: flex;
  gap: 22px;
  padding: 26px 0;
  border-top: 1px solid rgba(168,201,232,0.22);
}
.approach-item-last {
  border-bottom: 1px solid rgba(168,201,232,0.22);
}
.approach-num {
  font-size: 14px;
  font-weight: 700;
  color: #2B78C5;
  min-width: 32px;
}
.approach-item-title {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
}
.approach-item-copy {
  font-size: 15px;
  line-height: 1.6;
  color: #A8C9E8;
  margin: 0;
}

/* ---- credentials ---- */
.stat-grid { margin-bottom: 64px; }
.stat-card {
  border-radius: 14px;
  padding: 34px 30px;
}
.stat-card-1 { background: #1C3558; }
.stat-card-2 { background: #20548A; }
.stat-card-3 { background: #2B78C5; }
.stat-card-4 {
  background: var(--chip);
  border: 1px solid var(--card-bd);
}
.stat-number {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
}
.stat-number-ink { color: var(--ink); }
.stat-label {
  font-size: 14px;
  color: #A8C9E8;
  margin-top: 12px;
  line-height: 1.45;
}
.stat-card-2 .stat-label { color: #C9D8EA; }
.stat-card-3 .stat-label { color: #E6EDF5; }
.stat-label-accent {
  color: #2B78C5;
  font-weight: 600;
}

.tech-heading {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 22px;
}
.tech-list { gap: 9px; }
.chip-outline {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--card-bd);
  padding: 10px 16px;
  border-radius: 8px;
}
.engagement-bar {
  margin-top: 34px;
  background: var(--alt);
  border: 1px solid var(--card-bd);
  border-radius: 12px;
  padding: 22px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
}
.engagement-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.engagement-copy {
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
}

/* ---- about ---- */
.about {
  background: var(--alt);
  border-top: 1px solid var(--card-bd);
  border-bottom: 1px solid var(--card-bd);
}
.about-inner {
  padding-top: 100px;
  padding-bottom: 100px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.about-photo-frame {
  position: relative;
  max-width: 340px;
}
.about-photo {
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: #1C3558;
  box-shadow: 0 24px 60px rgba(28,53,88,0.22);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.about-name-card {
  position: absolute;
  bottom: -18px;
  right: -18px;
  background: var(--card);
  border: 1px solid var(--card-bd);
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: 0 12px 30px var(--shadow);
}
.about-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.about-role {
  font-size: 12px;
  color: #2B78C5;
  font-weight: 600;
}
.about-title {
  font-size: 38px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  color: var(--ink);
}
.about-p {
  font-size: 17px;
  line-height: 1.68;
  color: var(--body);
  margin: 0 0 18px;
}
.about-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 12px;
}
.about-meta-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 6px;
}
.about-meta-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

/* ---- contact ---- */
.contact {
  background: #1C3558;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.contact-decor {
  position: absolute;
  top: 0; right: 0;
  width: 42%;
  height: 100%;
  opacity: 0.4;
  pointer-events: none;
}
.contact-inner {
  position: relative;
  padding-top: 104px;
  padding-bottom: 104px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: center;
}
.contact-title {
  font-size: 46px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
}
.contact-lead {
  font-size: 18px;
  line-height: 1.6;
  color: #C9D8EA;
  margin: 0;
  max-width: 480px;
}
.contact-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(168,201,232,0.25);
  border-radius: 16px;
  padding: 38px;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(168,201,232,0.2);
}
.contact-row-last {
  padding: 18px 0 4px;
  border-bottom: none;
}
.link-dim { transition: opacity .2s; }
.link-dim:hover { opacity: 0.85; }
.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.contact-icon-blue { background: #2B78C5; }
.contact-icon-navy { background: #20548A; }
.contact-icon-ghost { background: rgba(255,255,255,0.1); }
.contact-label {
  font-size: 12px;
  color: #8FB0D4;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.contact-value {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}
.contact-phone-link { color: #fff; }
.btn-email {
  display: block;
  text-align: center;
  min-height: 44px;
  line-height: 44px;
  margin-top: 26px;
  background: #fff;
  color: #1C3558;
  font-size: 15px;
  font-weight: 700;
  border-radius: 9px;
  transition: background .2s;
}
.btn-email:hover { background: #E6EDF5; }

/* ---- footer ---- */
.site-footer {
  background: #13243D;
  color: #8FB0D4;
}
.footer-top {
  padding-top: 48px;
  padding-bottom: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-brand-text { line-height: 1.2; }
.footer-brand-name {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}
.footer-brand-tagline {
  font-size: 12px;
  color: #6E8BAE;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}
.footer-link {
  font-size: 13px;
  font-weight: 600;
  transition: color .2s;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.footer-link:hover { color: #fff; }
.footer-bottom-wrap { border-top: 1px solid rgba(168,201,232,0.12); }
.footer-bottom {
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #6E8BAE;
}

/* ---- reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.16,.84,.44,1), transform .7s cubic-bezier(.16,.84,.44,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* ---- responsive ---- */
@media (max-width: 860px) {
  .wrap { padding-left: 24px; padding-right: 24px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; }
  .approach-split { grid-template-columns: 1fr !important; gap: 44px !important; }
  .about-inner { grid-template-columns: 1fr !important; gap: 44px !important; }
  .contact-inner { grid-template-columns: 1fr !important; gap: 44px !important; }
  .nav-links { display: none !important; }
  .mobile-toggle { display: flex !important; }
}
@media (max-width: 860px) and (min-width: 561px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .float { animation: none !important; }
}
