/* ==========================================================================
   Bringing Service Back — Design System
   Brand: deep navy / gunmetal steel / silver, muted teal accent
   ========================================================================== */

:root {
  /* Brand palette (sampled from BSB brand assets) */
  --navy-950: #05090f;
  --navy-900: #0a1420;
  --navy-850: #0d1b2b;
  --navy-800: #10233a;
  --navy-700: #163049;
  --navy-600: #1e3f5e;
  --steel-500: #4c6478;
  --steel-400: #7d93a8;
  --steel-300: #a5b4c2;
  --silver-200: #ced8e0;
  --silver-100: #e8edf1;
  --white: #ffffff;
  --teal-500: #3f9e97;
  --teal-400: #5bb3ac;
  --teal-300: #7fc7c1;
  --teal-glow: rgba(95, 179, 172, 0.35);

  --bg: var(--navy-950);
  --bg-alt: var(--navy-900);
  --surface: var(--navy-850);
  --surface-2: var(--navy-800);
  --border-soft: rgba(165, 180, 194, 0.14);
  --border-strong: rgba(165, 180, 194, 0.28);
  --text-primary: #f2f5f7;
  --text-secondary: var(--silver-200);
  --text-muted: var(--steel-400);
  --accent: var(--teal-400);
  --accent-strong: var(--teal-300);

  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1180px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 12px 30px rgba(0, 0, 0, 0.35);
  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* subtle background texture */
body {
  background-image:
    radial-gradient(circle at 15% 0%, rgba(95, 179, 172, 0.06), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(125, 147, 168, 0.08), transparent 40%);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; }
button { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--white);
  letter-spacing: 0.2px;
}
h1 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin: 0 0 16px; color: var(--text-secondary); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

.lede {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 640px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal-500), var(--teal-400));
  color: var(--navy-950);
  box-shadow: 0 10px 30px -6px var(--teal-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -6px var(--teal-glow); }
.btn-outline {
  background: transparent;
  color: var(--silver-100);
  border-color: var(--border-strong);
}
.btn-outline:hover { border-color: var(--accent); color: var(--white); transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--silver-100);
  border-color: var(--border-soft);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 9, 15, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  position: relative;
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--white); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--silver-100); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.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: 96px 0 100px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 620px;
  background: radial-gradient(ellipse at top, rgba(95,179,172,0.16), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
.hero-copy .badges {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 34px;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  font-size: 0.8rem; font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
}
.badge svg { width: 14px; height: 14px; color: var(--accent-strong); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-soft);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media .caption-strip {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 20px;
  background: linear-gradient(0deg, rgba(5,9,15,0.92), transparent);
  font-size: 0.85rem;
  color: var(--silver-100);
}

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head.center .eyebrow { justify-content: center; }

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

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-card); }
.card .icon-tile {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card .icon-tile svg { width: 26px; height: 26px; color: var(--accent-strong); }
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.96rem; }

.pillar-num {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-strong);
  letter-spacing: 1px;
  margin-bottom: 14px;
  display: block;
}

/* ---------- Stats ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 40px 0;
}
.stat { text-align: center; }
.stat .num {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--white), var(--teal-300));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat .label { font-size: 0.82rem; color: var(--text-muted); letter-spacing: 0.4px; margin-top: 6px; }

/* ---------- Media blocks ---------- */
.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split.reverse .split-copy { order: 1; }

/* checklist */
.check-list { display: flex; flex-direction: column; gap: 14px; margin: 24px 0; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; list-style: none; color: var(--text-secondary); }
.check-list svg { flex: none; width: 20px; height: 20px; color: var(--accent-strong); margin-top: 2px; }

/* ---------- Timeline (ecosystem partners) ---------- */
.partner-row {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 12px;
}
.partner-tile {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 18px 10px;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition);
}
.partner-tile:hover { transform: translateY(-3px); border-color: var(--accent); }
.partner-tile .p-icon { font-size: 1.6rem; margin-bottom: 10px; }
.partner-tile span { display: block; font-size: 0.72rem; color: var(--text-muted); line-height: 1.35; font-weight: 600; }

.flow-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.flow-tile {
  text-align: center;
  padding: 26px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--navy-800), var(--navy-850));
  border: 1px solid var(--border-soft);
}
.flow-tile .flow-title {
  font-family: var(--font-head);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 6px;
}
.flow-tile p { font-size: 0.85rem; margin: 0; }

/* ---------- Quote / testimonial style block ---------- */
.quote-block {
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 28px;
  margin: 32px 0;
}
.quote-block p { font-size: 1.15rem; color: var(--silver-100); font-style: italic; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  background: linear-gradient(120deg, var(--navy-800), var(--navy-700));
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(95,179,172,0.22), transparent 55%);
  pointer-events: none;
}
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { margin-bottom: 0; }
.cta-band .cta-actions { display: flex; gap: 14px; flex-shrink: 0; flex-wrap: wrap; }

/* ---------- Founder / bio ---------- */
.bio-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 48px;
}
.bio-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-strong);
}
.bio-photo img { width: 100%; height: 100%; object-fit: cover; }
.bio-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(95,179,172,0.22), transparent 55%),
    linear-gradient(150deg, var(--navy-700), var(--navy-900));
  position: relative;
}
.bio-monogram::before {
  content: "";
  position: absolute; inset: 14px;
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius-md) - 6px);
}
.bio-monogram span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 4.2rem;
  letter-spacing: 2px;
  color: var(--white);
  background: linear-gradient(135deg, var(--white), var(--teal-300));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.bio-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 22px; }
.bio-meta a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.88rem; font-weight: 600; color: var(--text-secondary);
  padding: 9px 14px; border: 1px solid var(--border-soft); border-radius: 999px;
  transition: border-color var(--transition), color var(--transition);
}
.bio-meta a:hover { color: var(--white); border-color: var(--accent); }
.bio-meta svg { width: 15px; height: 15px; color: var(--accent-strong); }

/* ---------- Timeline steps ---------- */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 90px 1fr; gap: 28px; padding-bottom: 44px; position: relative; }
.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute; left: 44px; top: 46px; bottom: -4px;
  width: 1px; background: var(--border-strong);
}
.timeline-year {
  font-family: var(--font-head); font-weight: 700; color: var(--accent-strong);
  display: flex; align-items: flex-start; justify-content: center; padding-top: 4px; font-size: 0.95rem;
}
.timeline-dot {
  position: absolute; left: 40px; top: 4px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(95,179,172,0.18);
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; }
.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-line { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--border-soft); }
.contact-line:last-child { border-bottom: none; }
.contact-line .ci-icon {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  background: var(--navy-700); border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
}
.contact-line .ci-icon svg { width: 19px; height: 19px; color: var(--accent-strong); }
.contact-line .ci-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-muted); margin-bottom: 3px; }
.contact-line .ci-value { color: var(--silver-100); font-weight: 600; font-size: 0.98rem; }
.contact-line a.ci-value:hover { color: var(--accent-strong); }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label {
  display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.4px;
  color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--navy-900);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(95,179,172,0.16);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 64px 0 28px;
  background: var(--navy-950);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border-soft);
}
.footer-brand p { max-width: 320px; font-size: 0.92rem; }
.footer-col h4 {
  font-family: var(--font-body); font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 1.4px; color: var(--text-muted); margin-bottom: 18px; font-weight: 700;
}
.footer-col a, .footer-col p { display: block; font-size: 0.92rem; color: var(--text-secondary); margin-bottom: 12px; }
.footer-col a:hover { color: var(--accent-strong); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; padding-top: 24px;
  font-size: 0.82rem; color: var(--text-muted); flex-wrap: wrap; gap: 12px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center; transition: border-color var(--transition), color var(--transition);
}
.footer-social a svg { width: 16px; height: 16px; }
.footer-social a:hover { border-color: var(--accent); color: var(--accent-strong); }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  padding: 64px 0 60px;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute; inset: -30% -10% auto -10%; height: 400px;
  background: radial-gradient(ellipse at top, rgba(95,179,172,0.14), transparent 60%);
}
.breadcrumb { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 18px; display: flex; gap: 8px; align-items: center; }
.breadcrumb a:hover { color: var(--accent-strong); }

/* ---------- Reveal animation ----------
   Progressive enhancement: content is visible by default so it never
   depends on JavaScript running. Only once main.js confirms it's active
   (by adding .js-reveal-ready to <html>) do elements start hidden and
   animate in via IntersectionObserver — with a timed safety net in JS
   that force-reveals anything the observer misses. */
.reveal { opacity: 1; transform: none; }
.js-reveal-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms ease, transform 700ms ease; }
.js-reveal-ready .reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-media { order: -1; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .partner-row { grid-template-columns: repeat(5, 1fr); }
  .flow-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .bio-card { grid-template-columns: 1fr; text-align: center; }
  .bio-meta { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.mobile-open {
    display: flex; flex-direction: column; position: absolute; top: 82px; left: 0; right: 0;
    background: var(--navy-950); border-bottom: 1px solid var(--border-soft); padding: 12px 24px 20px; gap: 2px;
  }
  section { padding: 64px 0; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .partner-row { grid-template-columns: repeat(3, 1fr); }
  .flow-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 28px; }
  .bio-card { padding: 32px 24px; }
}
