/* ============================================================
   The Standard Foundation — visual system
   Palette: crisp white · baby blue · deep ocean navy (anchor)
   Type: Spectral (display serif) · Hanken Grotesk (body sans)
   ============================================================ */
:root {
  --white:      #ffffff;
  --paper:      #f5f9fd;   /* faint blue-white surface */
  --mist:       #e8f2fb;   /* baby-blue wash */
  --sky:        #8fc6f0;   /* baby blue */
  --sky-soft:   #bfe0f7;
  --sky-line:   #cfe6f8;
  --sky-deep:   #1f72bd;   /* accent text, ≥4.5:1 on white */
  --navy:       #0d2c49;   /* deep ocean anchor */
  --navy-2:     #103356;

  --ink:        #13273c;   /* headings */
  --ink-2:      #33475d;   /* body */
  --ink-soft:   #566a80;   /* secondary */

  --hairline:   rgba(19,39,60,0.10);
  --hairline-2: rgba(19,39,60,0.16);
  --on-navy:    #eef6fd;
  --on-navy-dim:rgba(238,246,253,0.72);

  --radius:     16px;
  --ease:       cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --maxw:       1120px;
  --narrow:     760px;

  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-body:    "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  /* z-scale */
  --z-topbar: 50;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--white); }
html, body { margin: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink-2);
  background: transparent;              /* the fixed water stage shows through */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.6;
}
/* Content floats above the persistent water background. */
main, .site-footer { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: clamp(20px, 5vw, 48px); }
.wrap.narrow { max-width: var(--narrow); }
.center { text-align: center; }
.band { padding-block: clamp(64px, 10vw, 128px); }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-topbar);
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px clamp(20px, 5vw, 48px);
  background: rgba(255,255,255,0);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.topbar.scrolled {
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--hairline);
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brand-mark {
  width: 13px; height: 13px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 32% 30%, #cdeafe 0%, var(--sky) 42%, var(--sky-deep) 100%);
  box-shadow: 0 0 0 4px rgba(143,198,240,0.22);
}
.brand-name {
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  letter-spacing: 0.005em; color: var(--ink);
}
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
  transition: color .25s var(--ease); padding: 6px 2px;
}
.nav a:hover, .nav a:focus-visible { color: var(--sky-deep); }
.nav-cta {
  color: var(--white) !important; background: var(--sky-deep);
  padding: 9px 18px !important; border-radius: 999px; font-weight: 600;
  box-shadow: 0 8px 22px -12px rgba(31,114,189,0.9);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.nav-cta:hover, .nav-cta:focus-visible { color: var(--white) !important; background: #1a66ab; transform: translateY(-1px); box-shadow: 0 12px 26px -12px rgba(31,114,189,0.95); }
@media (max-width: 720px) {
  .nav a:not(.nav-cta) { display: none; }
}

/* ---------- Hero ---------- */
/* ---------- Persistent water background (fixed, always underneath) ---------- */
.stage { position: fixed; inset: 0; z-index: 0; background: var(--white); overflow: hidden; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
/* A soft cool veil holds the water at a readable paleness the whole scroll,
   and lifts a touch toward white top and bottom so nav and footer stay crisp. */
.stage-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(130% 100% at 50% 26%, rgba(244,249,253,0.06) 0%, rgba(240,246,252,0.16) 55%, rgba(236,243,251,0.26) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.30) 0%, rgba(255,255,255,0.05) 24%, rgba(255,255,255,0.03) 70%, rgba(240,246,252,0.22) 100%);
}

.hero {
  position: relative; min-height: 100svh;
  display: grid; align-items: center;
  padding-top: clamp(120px, 20vh, 190px);
  padding-bottom: clamp(60px, 12vh, 120px);
}
.hero-copy {
  position: relative; z-index: 2; width: 100%;
  max-width: var(--maxw); margin: 0 auto; padding-inline: clamp(20px, 5vw, 48px);
  text-align: center;
}
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--sky-deep); margin: 0 0 18px;
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1.5px; background: var(--sky); border-radius: 2px;
}
.eyebrow.light { color: var(--sky-soft); }
.eyebrow.light::before { background: var(--sky-soft); }
.hero-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.7rem, 7vw, 5.4rem); line-height: 1.02;
  letter-spacing: -0.02em; color: var(--ink); margin: 0 0 22px;
  text-shadow: 0 2px 30px rgba(255,255,255,0.8), 0 1px 4px rgba(255,255,255,0.6);
}
.hero-sub {
  font-size: clamp(1.05rem, 1.7vw, 1.32rem); line-height: 1.62;
  color: var(--ink-2); max-width: 40ch; margin: 0 auto 34px;
  text-shadow: 0 1px 16px rgba(255,255,255,0.9);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.center-actions { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  padding: 14px 28px; border-radius: 999px; min-height: 50px;
  border: 1px solid transparent; transition: all .3s var(--ease);
}
.btn-primary {
  background: var(--sky-deep); color: var(--white);
  box-shadow: 0 14px 30px -16px rgba(31,114,189,0.95);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: #1a66ab; transform: translateY(-2px);
  box-shadow: 0 20px 38px -16px rgba(31,114,189,0.95);
}
.btn-ghost {
  background: var(--white); color: var(--ink); border-color: var(--hairline-2);
}
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--sky); color: var(--sky-deep); background: var(--paper); }
.btn-ghost.dark { background: transparent; color: var(--on-navy); border-color: rgba(238,246,253,0.34); }
.btn-ghost.dark:hover, .btn-ghost.dark:focus-visible { border-color: var(--sky); color: var(--white); background: rgba(143,198,240,0.14); }

/* ---------- Intro ---------- */
.intro { background: rgba(255,255,255,0.26); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); padding-top: clamp(36px, 5vw, 64px); }
.intro .lead, .intro .body { text-shadow: 0 1px 16px rgba(255,255,255,0.95), 0 0 3px rgba(255,255,255,0.75); }
.lead {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.15rem); line-height: 1.34;
  letter-spacing: -0.01em; color: var(--ink); margin: 0 0 26px;
}
.body { font-size: clamp(1rem, 1.35vw, 1.12rem); color: var(--ink-2); margin: 0 0 30px; max-width: 68ch; }
.pull {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.25rem, 2.3vw, 1.7rem); line-height: 1.4;
  color: var(--sky-deep); margin: 0; padding-top: 8px;
  border-top: 1px solid var(--sky-line);
  padding-top: 26px;
}

/* ---------- Section heads ---------- */
.sec-head { max-width: 62ch; margin: 0 0 clamp(34px, 5vw, 56px); }
.center .sec-head { margin-inline: auto; }
.sec-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.08;
  letter-spacing: -0.018em; color: var(--ink); margin: 0 0 14px;
}
.sec-note { font-size: clamp(1rem, 1.3vw, 1.12rem); color: var(--ink-soft); margin: 0; max-width: 56ch; }

/* ---------- Mission / Approach (translucent deep-navy glass over water) ---------- */
.mission, .approach {
  background:
    linear-gradient(180deg, rgba(16,51,86,0.74) 0%, rgba(13,44,73,0.8) 100%);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  color: var(--on-navy); position: relative; overflow: hidden;
}
.mission::after, .approach::after {
  content: ""; position: absolute; left: 50%; top: -30%; transform: translateX(-50%);
  width: min(760px, 90vw); height: 480px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(143,198,240,0.18), rgba(143,198,240,0) 72%);
}
.statement {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.5rem, 3.2vw, 2.5rem); line-height: 1.32;
  letter-spacing: -0.012em; color: var(--on-navy); margin: 14px auto 0;
  max-width: 24ch; position: relative; z-index: 1;
}
.mission .statement, .approach .statement { max-width: 30ch; }

/* ---------- Who we serve ---------- */
.serve { background: rgba(244,249,253,0.22); }
.serve-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px;
}
.serve-card {
  background: rgba(255,255,255,0.72); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--radius); padding: 28px 26px 26px;
  box-shadow: 0 12px 40px -28px rgba(13,44,73,0.4);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.serve-card:hover {
  transform: translateY(-4px); border-color: var(--sky-line);
  box-shadow: 0 24px 48px -30px rgba(13,44,73,0.5);
}
.serve-tick {
  display: block; width: 34px; height: 3px; border-radius: 3px; margin-bottom: 20px;
  background: linear-gradient(90deg, var(--sky-deep), var(--sky));
}
.serve-card h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.2rem;
  line-height: 1.2; color: var(--ink); margin: 0 0 10px; letter-spacing: -0.01em;
}
.serve-card p { font-size: 0.96rem; color: var(--ink-soft); margin: 0; line-height: 1.55; }

/* ---------- What we do ---------- */
.work { background: rgba(255,255,255,0.24); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.work-card {
  background: rgba(255,255,255,0.74); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
  border: 1px solid rgba(255,255,255,0.82); border-radius: var(--radius);
  padding: 34px 30px 32px;
  box-shadow: 0 14px 44px -30px rgba(13,44,73,0.4);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.work-card:hover {
  transform: translateY(-4px); border-color: var(--sky-line);
  box-shadow: 0 26px 54px -30px rgba(13,44,73,0.45);
}
.work-icon {
  display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 24px;
  border-radius: 15px; color: var(--sky-deep);
  background: var(--mist); border: 1px solid var(--sky-line);
}
.work-icon svg { width: 28px; height: 28px; }
.work-card h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.45rem;
  line-height: 1.15; color: var(--ink); margin: 0 0 12px; letter-spacing: -0.012em;
}
.work-card p { font-size: 1rem; color: var(--ink-2); margin: 0; line-height: 1.62; }

/* ---------- Programs ---------- */
.programs { background: rgba(232,242,251,0.22); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.prog-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.prog-list li {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,0.74); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.7);
  padding: 20px 24px; font-size: clamp(1rem, 1.4vw, 1.14rem); color: var(--ink);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.prog-list li:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.prog-list li:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.prog-list li:hover { transform: translateX(4px); border-color: var(--sky-line); }
.prog-dot {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--sky-deep); box-shadow: 0 0 0 4px rgba(143,198,240,0.24);
}

/* ---------- Connect ---------- */
.connect { background: rgba(255,255,255,0.28); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.connect-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.06;
  letter-spacing: -0.02em; color: var(--ink); margin: 0 0 18px;
  text-shadow: 0 1px 14px rgba(255,255,255,0.7);
}
.connect-sub { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-2); margin: 0 auto 32px; max-width: 52ch; text-shadow: 0 1px 10px rgba(255,255,255,0.6); }

/* ---------- Footer ---------- */
.site-footer { background: rgba(13,44,73,0.92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--on-navy-dim); padding-block: clamp(48px, 7vw, 80px); }
.foot-top {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid rgba(238,246,253,0.14);
}
.foot-brand .brand-name { color: var(--on-navy); }
.foot-nav { display: flex; gap: clamp(14px, 2vw, 28px); flex-wrap: wrap; }
.foot-nav a { font-size: 14.5px; color: var(--on-navy-dim); transition: color .25s var(--ease); }
.foot-nav a:hover, .foot-nav a:focus-visible { color: var(--sky); }
.disclaimer { font-size: 12.5px; line-height: 1.7; color: rgba(238,246,253,0.6); max-width: 76ch; margin: 0 0 16px; }
.copyline { font-size: 12.5px; color: rgba(238,246,253,0.5); margin: 0; }

/* ---------- Reveal motion (enhances an already-visible default) ---------- */
.reveal { opacity: 1; }
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
html.js .reveal.in { opacity: 1; transform: none; }
/* Stagger children within a grid/list */
.serve-grid .serve-card, .work-grid .work-card, .prog-list li { transition-delay: 0ms; }
html.js .serve-grid.in .serve-card:nth-child(2), html.js .work-grid.in .work-card:nth-child(2) { transition-delay: 90ms; }
html.js .serve-grid.in .serve-card:nth-child(3), html.js .work-grid.in .work-card:nth-child(3) { transition-delay: 180ms; }
html.js .serve-grid.in .serve-card:nth-child(4) { transition-delay: 270ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  /* Hold the water still: swap the looping video for its poster frame. */
  .hero-video { display: none; }
  .stage { background: var(--white) url("/associates/media/foundation-poster.jpg?v=2") center/cover no-repeat; }
}
