/* ============================================================
   Analyst Studio — design tokens
   Palette: deep navy + off-white + single muted teal accent.
   Type: EB Garamond (headlines, brief-specified) / Inter (body, brief-specified).
   ============================================================ */

:root {
  --navy-900: #0B2545;
  --navy-700: #14335F;
  --teal: #3E6B67;
  --teal-050: #E9F0EF;

  --off-white: #FAFAFA;
  --white: #FFFFFF;
  --ink: #12181F;
  --ink-muted: #4B5563;
  --border: #E2E6EC;

  --font-serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 4px;
  --radius-md: 6px;

  --section-py: clamp(60px, 7vw, 72px);
  --container: 1200px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.15; margin: 0; color: var(--navy-900); }
p { margin: 0; }

#scroll-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 8px;
  pointer-events: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-900);
  color: var(--white);
  padding: 12px 20px;
  z-index: 200;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- layout helpers ---------- */
.section-head {
  max-width: 640px;
  margin: 0 0 36px;
}
.section-head h2 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); }
.section-head p {
  margin-top: 12px;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn-primary {
  background: var(--navy-900);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy-700); }

.btn-light {
  background: var(--white);
  color: var(--navy-900);
}
.btn-light:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.18); }

.btn-sm { padding: 10px 18px; font-size: 0.875rem; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(11,37,69,0.02);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy-900);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.wordmark-icon { flex-shrink: 0; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.2s var(--ease);
  white-space: nowrap;
}
.main-nav a:hover { color: var(--navy-900); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy-900);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 24px;
  border-top: 1px solid var(--border);
}
.mobile-nav a {
  padding: 12px 4px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a.btn { margin-top: 16px; width: 100%; color: var(--white); border-bottom: none; }
.mobile-nav.open { display: flex; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 56px 24px var(--section-py);
  max-width: var(--container);
  margin: 0 auto;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  min-height: 0;
}
.hero-copy h1 {
  font-size: clamp(2rem, 2.8vw, 2.4rem);
  letter-spacing: -0.01em;
  max-width: 34ch;
}
.hero-sub {
  margin-top: 22px;
  max-width: 46ch;
  font-size: 1.15rem;
  color: var(--ink-muted);
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-graphic img { width: 100%; height: auto; }

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: var(--section-py) 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.about-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 64px;
}
.about-copy h2 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); margin-bottom: 24px; }
.about-copy p { color: var(--ink-muted); font-size: 1.05rem; margin-bottom: 20px; max-width: 62ch; }
.about-copy p:last-child { margin-bottom: 0; }

.about-facts {
  border-left: 2px solid var(--navy-900);
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: fit-content;
}
.facts-label { font-family: var(--font-serif); font-size: 1.15rem; color: var(--navy-900); }
.fact-tags { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fact-tags span {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 10px;
  background: var(--teal-050);
  color: var(--teal);
  border-radius: var(--radius-sm);
  text-align: center;
}

/* ============================================================
   CLIENT BENEFITS
   ============================================================ */
.benefits { padding: var(--section-py) 24px; max-width: var(--container); margin: 0 auto; }
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 48px;
}
.benefit-item { display: flex; gap: 18px; align-items: flex-start; }
.benefit-num {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  color: var(--teal);
  opacity: 0.75;
  line-height: 1;
  flex-shrink: 0;
  min-width: 2ch;
}
.benefit-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.benefit-item p { font-size: 0.94rem; color: var(--ink-muted); }

/* ============================================================
   APPROACH — timeline
   ============================================================ */
.approach { padding: var(--section-py) 24px; max-width: var(--container); margin: 0 auto; }
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}
.timeline li {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.timeline-index {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--teal);
  background: var(--off-white);
  width: 28px;
}
.timeline h3 { font-size: 1.1rem; margin-bottom: 8px; }
.timeline p { font-size: 0.92rem; color: var(--ink-muted); }

/* ============================================================
   PRINCIPAL
   ============================================================ */
.principal { padding: var(--section-py) 24px; max-width: var(--container); margin: 0 auto; }
.principal-copy h2 { margin-bottom: 20px; }
.principal-copy > p { color: var(--ink-muted); font-size: 1.05rem; max-width: 64ch; margin-bottom: 32px; }
.principal-subhead { font-size: 1.05rem; margin-bottom: 16px; }
.principal-list { display: flex; flex-direction: column; gap: 14px; }
.principal-list li {
  font-size: 0.95rem;
  color: var(--ink-muted);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.principal-list li:first-child { border-top: none; padding-top: 0; }
.principal-list strong { color: var(--ink); }

/* ============================================================
   CTA
   ============================================================ */
.cta {
  background: var(--navy-900);
  padding: var(--section-py) 24px;
}
.cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.cta-trust {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}
.cta h2 {
  color: var(--white);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}
.cta-sub {
  margin: 20px 0 36px;
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
}
.cta-pending {
  margin-top: 18px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-900); border-top: 1px solid rgba(255,255,255,0.1); }
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px 32px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.wordmark-light { color: var(--white); }
.footer-brand p { margin-top: 12px; color: rgba(255,255,255,0.6); font-size: 0.92rem; max-width: 36ch; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; align-self: flex-start; }
.footer-nav a { font-size: 0.9rem; color: rgba(255,255,255,0.72); transition: color 0.2s var(--ease); }
.footer-nav a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 24px 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.5); margin: 0; }

/* ============================================================
   MOBILE STICKY CTA
   ============================================================ */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 90;
  background: var(--navy-900);
  color: var(--white);
  text-align: center;
  padding: 15px;
  border-radius: var(--radius-md);
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(11,37,69,0.35);
}

/* ============================================================
   SCROLL REVEAL (motion intensity: 3 — subtle fade/slide only)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-graphic { max-width: 340px; margin: 32px auto 0; }
  .about-inner { grid-template-columns: 1fr; }
  .about-facts { border-left: none; border-top: 2px solid var(--navy-900); padding-left: 0; padding-top: 24px; }
  .timeline { grid-template-columns: 1fr; gap: 32px; }
  .timeline::before { display: none; }
  .benefits-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .header-inner { height: 64px; }
  .header-actions .btn-sm { display: none; }
  :root { --section-py: 52px; }
  .hero { padding-top: 40px; }
  .mobile-sticky-cta { display: block; }
  body { padding-bottom: 76px; }
}
