/* ============================================================
   REDLINE INFINITY CONSULTING GROUP
   Design System / Global Stylesheet
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&family=Rajdhani:wght@500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  /* Brand */
  --red: #E0452F;
  --red-bright: #F1573E;
  --red-deep: #B8341F;

  /* Neutrals / bars */
  --bar-dark: #3F444C;
  --bar-mid: #6E7681;
  --bar-light: #E8EAED;

  /* Surfaces */
  --bg: #0A0A0C;
  --bg-1: #0E0E11;
  --bg-2: #131318;
  --bg-3: #191920;
  --panel: rgba(255, 255, 255, 0.022);
  --panel-hover: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  /* Text */
  --fg: #F5F5F6;
  --fg-soft: #C9CBD1;
  --muted: #9195A0;
  --dim: #6A6E79;

  /* Type */
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-head: 'Space Grotesk', 'Inter', sans-serif;
  --font-cond: 'Rajdhani', 'Space Grotesk', sans-serif;
  --font-mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Metrics */
  --container: 1200px;
  --radius: 4px;
  --radius-lg: 8px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  --glow-red: 0 0 0 1px rgba(224, 69, 47, 0.4), 0 12px 40px -12px rgba(224, 69, 47, 0.35);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg-soft);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

/* Global grid backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 30%, transparent 80%);
}
main, header, footer { position: relative; z-index: 1; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.section { padding: 104px 0; }
.section--tight { padding: 72px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--fg); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; }
p { color: var(--fg-soft); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); line-height: 1.7; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--red);
}
.center .eyebrow { justify-content: center; }

.text-red { color: var(--red); }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 24px -8px rgba(224, 69, 47, 0.6); }
.btn-primary:hover { background: var(--red-bright); box-shadow: 0 12px 32px -8px rgba(224, 69, 47, 0.75); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line-strong); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--red); color: var(--fg); background: rgba(224, 69, 47, 0.08); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.brand .logo { height: 44px; width: auto; display: block; }
.brand-mark { height: 18.7px; width: auto; display: block; flex-shrink: 0; align-self: flex-start; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 15px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  position: relative;
}
.main-nav a:hover { color: var(--fg); }
.main-nav a.active { color: var(--fg); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 2px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}
.nav-cta { margin-left: 12px; }

/* Dropdown menus */
.main-nav .has-dd { position: relative; display: inline-flex; align-items: center; }
.main-nav .dd-toggle svg { width: 11px; height: 11px; margin-left: 5px; transition: transform 0.2s var(--ease); }
.main-nav .has-dd:hover .dd-toggle svg, .main-nav .has-dd:focus-within .dd-toggle svg { transform: rotate(180deg); }
.main-nav .has-dd::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 14px; }
.main-nav .dd {
  position: absolute; top: calc(100% + 12px); left: 0; min-width: 232px;
  background: rgba(14, 14, 17, 0.98); backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 8px; display: flex; flex-direction: column; gap: 1px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  box-shadow: var(--shadow-lg); z-index: 120;
}
.main-nav .has-dd:hover .dd, .main-nav .has-dd:focus-within .dd { opacity: 1; visibility: visible; transform: none; }
.main-nav .dd a { padding: 10px 14px; font-size: 0.9rem; color: var(--muted); white-space: nowrap; border-radius: var(--radius); }
.main-nav .dd a::after { display: none; }
.main-nav .dd a:hover { color: var(--fg); background: var(--panel-hover); }
.main-nav .dd .dd-div { height: 1px; background: var(--line); margin: 6px 10px; }
.main-nav .dd-wide { display: grid; grid-template-columns: 1fr 1fr; min-width: 500px; }
.main-nav .dd-wide .dd-label { grid-column: 1 / -1; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); padding: 12px 14px 4px; }
.main-nav .dd-wide .dd-div { grid-column: 1 / -1; }
.main-nav .dd a.dd-more { color: var(--red); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* Insights filter */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.filter-btn {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 40px;
  padding: 9px 18px; transition: all 0.2s var(--ease);
}
.filter-btn:hover { color: var(--fg); border-color: var(--line-strong); }
.filter-btn.active { color: #fff; background: var(--red); border-color: var(--red); }
.post-card.is-hidden { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--fg); margin: 0 auto; transition: all 0.3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 90px) 0 110px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -10%; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(224, 69, 47, 0.16), transparent 62%);
  pointer-events: none;
  z-index: 0;
}
/* Background video — subtle, behind everything */
.hero-video { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-video video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: grayscale(30%) contrast(1.05) brightness(0.9);
}
.hero-video::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(10,10,12,0.96) 0%, rgba(10,10,12,0.66) 45%, rgba(10,10,12,0.32) 100%),
    linear-gradient(to bottom, rgba(10,10,12,0.25) 0%, rgba(10,10,12,0.22) 55%, rgba(10,10,12,0.97) 100%);
}
@media (prefers-reduced-motion: reduce) { .hero-video video { display: none; } }
@media (max-width: 640px) { .hero-video video { display: none; } }

.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 860px; }
.hero h1 { margin-bottom: 26px; }
.hero h1 .accent { color: var(--red); }
.hero .lead { max-width: 620px; margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Corner brackets */
.brackets { position: absolute; inset: 24px; z-index: 1; pointer-events: none; }
.brackets span { position: absolute; width: 30px; height: 30px; border-color: var(--line-strong); border-style: solid; border-width: 0; }
.brackets .tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.brackets .tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.brackets .bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.brackets .br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

/* Disciplines strip under hero */
.disciplines {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
.disciplines span { display: inline-flex; align-items: center; gap: 26px; }
.disciplines span::after { content: "·"; color: var(--red); }
.disciplines span:last-child::after { display: none; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 80px) 0 64px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero .hero-glow { width: 760px; height: 460px; opacity: 0.8; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 20px; }
.page-hero .lead { max-width: 660px; }
.breadcrumb { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { margin: 0 10px; color: var(--line-strong); }

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

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.4s var(--ease);
}
.card:hover { border-color: var(--line-strong); background: var(--panel-hover); transform: translateY(-4px); }
.card:hover::before { width: 100%; }

.card-num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--red); letter-spacing: 0.15em; }
.card-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  margin-bottom: 22px;
  color: var(--red);
  background: rgba(224, 69, 47, 0.06);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 0.96rem; }
.card-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg);
}
.card-link svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.card:hover .card-link { color: var(--red); }
.card:hover .card-link svg { transform: translateX(4px); }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-soft);
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 40px;
}

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: var(--bg-1); padding: 40px 30px; text-align: center; }
.stat .num { font-family: var(--font-cond); font-size: 3rem; font-weight: 700; color: var(--fg); line-height: 1; }
.stat .num .unit { color: var(--red); }
.stat .label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }

/* ---------- Capability lists (Capabilities page) ---------- */
.cap-list { display: grid; gap: 9px; margin-top: 14px; }
.cap-list li { position: relative; padding-left: 20px; color: var(--fg-soft); font-size: 0.93rem; line-height: 1.5; }
.cap-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; background: var(--red); border-radius: 1px; }
.cap-sub { color: var(--muted); }

/* ---------- Capabilities accordion (All Capabilities index) ---------- */
.cap-acc-list { border-top: 1px solid var(--line); }
.cap-acc { border-bottom: 1px solid var(--line); }
.cap-acc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 6px; background: transparent; border: 0; text-align: left; cursor: pointer; }
.cap-acc-head h3 { font-size: 1.3rem; font-family: var(--font-head); font-weight: 600; color: var(--fg); transition: color 0.2s; }
.cap-acc-head:hover h3 { color: var(--red); }
.cap-acc-head .chev { flex-shrink: 0; width: 20px; height: 20px; color: var(--muted); transition: transform 0.3s var(--ease), color 0.2s; }
.cap-acc.open .cap-acc-head .chev { transform: rotate(180deg); color: var(--red); }
.cap-acc-body { overflow: hidden; max-height: 0; transition: max-height 0.4s var(--ease); }
.cap-acc.open .cap-acc-body { max-height: 640px; }
.cap-acc-inner { padding: 0 6px 30px; }
.cap-acc-inner .ov { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--fg); margin-bottom: 16px; transition: color 0.2s; }
.cap-acc-inner .ov:hover { color: var(--red); }
.cap-acc-inner .ov svg { width: 15px; height: 15px; }
.cap-acc-sub { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.cap-acc-sub a, .cap-acc-sub span { display: block; padding: 10px 0; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 0.98rem; }
.cap-acc-sub a { transition: color 0.2s; }
.cap-acc-sub a:hover { color: var(--fg); }
.cap-acc-note { color: var(--dim); font-size: 0.88rem; font-style: italic; padding: 4px 0 6px; }
@media (max-width: 620px) { .cap-acc-sub { grid-template-columns: 1fr; } }

/* ---------- Long-form article ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article > p:first-of-type { font-size: 1.14rem; color: var(--fg-soft); }
.article h2 { font-size: 1.55rem; margin: 46px 0 16px; }
.article h3 { font-size: 1.18rem; margin: 30px 0 12px; color: var(--fg); }
.article p { margin-bottom: 18px; color: var(--fg-soft); line-height: 1.78; }
.article ul { margin: 0 0 20px; display: grid; gap: 10px; }
.article ul li { position: relative; padding-left: 22px; color: var(--fg-soft); line-height: 1.6; }
.article ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; background: var(--red); border-radius: 1px; }
.article blockquote { border-left: 3px solid var(--red); padding: 4px 0 4px 22px; margin: 26px 0; }
.article blockquote p { font-size: 1.12rem; color: var(--fg); margin-bottom: 8px; }
.article blockquote cite { display: block; font-style: normal; font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.04em; color: var(--dim); }
.article .callout { background: rgba(224,69,47,0.06); border: 1px solid rgba(224,69,47,0.28); border-radius: var(--radius-lg); padding: 26px 30px; margin: 30px 0; }
.article .callout .k { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.article .callout p:last-child { margin-bottom: 0; }
.article-table-wrap { overflow-x: auto; margin: 24px 0; }
.article table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 480px; }
.article th, .article td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--fg-soft); }
.article th { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); font-weight: 400; }
.article td strong { color: var(--fg); }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.byline img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: center 15%; border: 1px solid var(--line-strong); }
.byline .n { font-family: var(--font-head); color: var(--fg); font-weight: 600; }
.byline .m { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }

/* ---------- Big stat number (inline in cards) ---------- */
.big-num { font-family: var(--font-cond); font-size: 3.1rem; font-weight: 700; color: var(--fg); line-height: 1; letter-spacing: -0.01em; }
.big-num .u { color: var(--red); }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-media {
  position: relative;
  aspect-ratio: 4 / 3.4;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 30% 20%, rgba(224, 69, 47, 0.14), transparent 55%),
    var(--bg-2);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.split-media .brackets { inset: 16px; }
.check-list { display: grid; gap: 16px; margin-top: 30px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--fg-soft); }
.check-list .ico {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(224, 69, 47, 0.14);
  color: var(--red);
  margin-top: 3px;
}
.check-list .ico svg { width: 12px; height: 12px; }
.check-list strong { color: var(--fg); display: block; font-family: var(--font-head); }

/* ---------- Process / timeline ---------- */
.process { display: grid; gap: 0; }
.phase {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.phase:last-child { border-bottom: 1px solid var(--line); }
.phase-index { font-family: var(--font-cond); font-size: 3.4rem; font-weight: 700; color: var(--bar-dark); line-height: 1; }
.phase.active .phase-index, .phase:hover .phase-index { color: var(--red); }
.phase h3 { margin-bottom: 12px; }
.phase p { color: var(--muted); max-width: 640px; }
.phase-meta { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-inner {
  position: relative;
  background:
    radial-gradient(ellipse 80% 120% at 15% 0%, rgba(224, 69, 47, 0.18), transparent 60%),
    var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 72px 60px;
  text-align: center;
  overflow: hidden;
}
.cta-inner h2 { margin-bottom: 18px; }
.cta-inner .lead { margin: 0 auto 32px; max-width: 560px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Insights ---------- */
.post-card { display: flex; flex-direction: column; }
.post-meta { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; display: flex; gap: 14px; align-items: center; }
.post-meta .cat { color: var(--red); }
.post-card h3 { margin-bottom: 12px; transition: color 0.2s; }
.post-card:hover h3 { color: var(--red); }
.post-card p { color: var(--muted); font-size: 0.94rem; flex-grow: 1; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.form-field { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label { display: block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
input, select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--fg);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 15px;
  transition: border-color 0.2s, background 0.2s;
}
input::placeholder, textarea::placeholder { color: var(--dim); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); background: var(--bg-3); }
textarea { resize: vertical; min-height: 130px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239195A0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.form-note { font-size: 0.82rem; color: var(--dim); margin-top: 14px; }

.contact-info-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px 32px; }
.info-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-item:last-child { border-bottom: 0; padding-bottom: 0; }
.info-item:first-child { padding-top: 0; }
.info-item .ico { flex-shrink: 0; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--red); }
.info-item .ico svg { width: 19px; height: 19px; }
.info-item .k { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.info-item .v { color: var(--fg); font-weight: 500; }
.info-item .v a:hover { color: var(--red); }

/* ---------- Value / mission list ---------- */
.value-item { padding: 28px 0; border-top: 1px solid var(--line); }
.value-item:last-child { border-bottom: 1px solid var(--line); }
.value-item h3 { margin-bottom: 8px; display: flex; align-items: baseline; gap: 16px; }
.value-item h3 .idx { font-family: var(--font-mono); font-size: 0.8rem; color: var(--red); }
.value-item p { color: var(--muted); padding-left: 44px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-1); padding: 70px 0 34px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 54px; }
.footer-brand .logo { height: 52px; width: auto; display: block; margin-bottom: 20px; }
.footer-brand p { color: var(--muted); font-size: 0.92rem; max-width: 320px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; font-weight: 400; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { color: var(--muted); font-size: 0.92rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--red); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.footer-bottom p { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; color: var(--dim); }
.footer-bottom .socials { display: flex; gap: 10px; }
.footer-bottom .socials a { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); transition: all 0.2s; }
.footer-bottom .socials a:hover { color: var(--red); border-color: var(--red); }
.footer-bottom .socials svg { width: 16px; height: 16px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .split { gap: 44px; }
}
@media (max-width: 1100px) {
  .main-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open { background: rgba(10,10,12,0.96); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
  .main-nav.open {
    display: flex;
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 18px 24px 28px;
    background: rgba(10, 10, 12, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
  }
  .main-nav.open a { padding: 14px 8px; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .main-nav.open a.active::after { display: none; }
  .main-nav.open .has-dd { flex-direction: column; align-items: stretch; }
  .main-nav.open .has-dd::after { display: none; }
  .main-nav.open .dd { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; border: 0; box-shadow: none; padding: 0 0 8px 16px; min-width: 0; }
  .main-nav.open .dd a { padding: 12px 8px; font-size: 0.95rem; color: var(--muted); }
  .main-nav.open .dd-toggle svg { display: none; }
  .main-nav.open .dd-wide { display: block; min-width: 0; }
  .main-nav.open .dd-wide .dd-label { padding: 12px 8px 4px; }
}
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; max-height: 340px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 620px) {
  .section { padding: 72px 0; }
  .container { padding: 0 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .phase { grid-template-columns: 1fr; gap: 12px; }
  .phase-index { font-size: 2.4rem; }
  .form-row { grid-template-columns: 1fr; }
  .cta-inner { padding: 48px 26px; }
  .disciplines span { gap: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---- FAQ (answer-engine content) ---- */
.faq { max-width: 840px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  margin-bottom: 12px;
  padding: 0 24px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.faq-item[open] { border-color: var(--line-strong); background: var(--bg-2); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 0;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--red);
  font-size: 1.6rem;
  line-height: 1;
  flex: 0 0 auto;
  transition: transform 0.2s var(--ease);
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-a { padding: 0 0 22px; color: var(--fg-soft); line-height: 1.75; }
.faq-a p { margin: 0 0 12px; }
.faq-a p:last-child { margin-bottom: 0; }

/* ---- Answer-first callout (AI snippet extraction) ---- */
.answer-card {
  max-width: 920px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--red);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  padding: 30px 34px;
}
.answer-card h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  margin-bottom: 14px;
}
.answer-card p { color: var(--fg-soft); line-height: 1.75; margin: 0; }
.answer-card p + p { margin-top: 12px; }
.svc-detail .cap-list { margin-top: 8px; }
@media (max-width: 620px) { .answer-card { padding: 24px 22px; } }
