:root {
  --navy: #113162;
  --navy-deep: #0b2247;
  --navy-tint: #f3f6fb;
  --ink: #17202e;
  --muted: #5c6675;
  --muted-light: rgba(255, 255, 255, 0.78);
  --white: #ffffff;
  --line: #e7ecf3;
  --maxw: 1080px;
  --narrow: 760px;
  --display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
.container.narrow { max-width: var(--narrow); }
.center { text-align: center; }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 1px 0 rgba(17, 49, 98, 0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.nav-brand img { display: block; }
.nav-cta {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 9px 18px;
  border: 1.5px solid rgba(17, 49, 98, 0.25);
  border-radius: 999px;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.nav-cta:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.nav-right { display: inline-flex; align-items: center; gap: 22px; }
.nav-link {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity 0.18s ease;
}
.nav-link:hover { opacity: 0.6; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 34px;
  border-radius: 999px;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 8px 22px rgba(17, 49, 98, 0.20);
}
.btn:hover { background: var(--navy-deep); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(17, 49, 98, 0.28); }
.btn-light { background: var(--white); color: var(--navy); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22); }
.btn-light:hover { background: #eef2f8; color: var(--navy-deep); }

/* ---------- SPARK ---------- */
.spark {
  width: 30px;
  height: 30px;
  fill: var(--navy);
  margin: 0 auto 26px;
  display: block;
  opacity: 0.9;
}
.spark-light { fill: var(--white); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 0 90px;
  background: radial-gradient(ellipse at 50% 34%, rgba(17, 49, 98, 0.05), rgba(255, 255, 255, 0) 62%);
}
.hero-logo { width: 128px; height: auto; margin: 0 auto 30px; display: block; }
.hero .spark { margin-bottom: 22px; }

.why {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4.1vw, 2.9rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--navy);
  max-width: 960px;
  margin: 0 auto 26px;
  text-align: left;
}
.why span { display: block; }
.why .l1 { font-weight: 700; }
.why .l2 { padding-left: 12%; }
.why .l3 { padding-left: 26%; }
.why .l4 { text-align: right; }
.why-tag {
  font-size: clamp(1.05rem, 2.3vw, 1.25rem);
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 38px;
}

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--navy);
  opacity: 0.4;
  font-size: 1.4rem;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100%{transform:translate(-50%,0);} 50%{transform:translate(-50%,8px);} }

/* ---------- BANDS ---------- */
.band { padding: 118px 0; }
.band-tint { background: var(--navy-tint); }
.band-dark { background: var(--navy); color: var(--white); }

.eyebrow {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  opacity: 0.6;
  margin: 0 0 16px;
}
.band-dark .eyebrow { color: var(--white); opacity: 0.6; }
.center .eyebrow { margin-left: auto; margin-right: auto; }

.band h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.8vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--navy);
  margin: 0 0 22px;
}
.band-dark h2 { color: var(--white); }

.band p {
  font-size: clamp(1.05rem, 2.1vw, 1.2rem);
  color: var(--ink);
  margin: 0 0 18px;
}
.band p:last-child { margin-bottom: 0; }
.band-dark p { color: var(--muted-light); }

.statement {
  font-size: clamp(2rem, 5vw, 3.1rem) !important;
  font-weight: 600;
  line-height: 1.16;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.band-lead { max-width: 660px; margin-left: auto; margin-right: auto; font-size: clamp(1.05rem, 2.2vw, 1.22rem) !important; }
.band-lead span { display: block; }
.band-lead span + span { margin-top: 0.5em; }

.emph {
  font-weight: 600;
  color: var(--navy);
  font-size: clamp(1.15rem, 2.4vw, 1.35rem) !important;
}
.emph span { display: block; }

.section-head { margin-bottom: 52px; }

/* ---------- STEPS ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 20px rgba(17, 49, 98, 0.05);
}
.step:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(17, 49, 98, 0.10); }
.step-num {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--navy);
  opacity: 0.32;
  display: block;
  margin-bottom: 14px;
}
.step h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.step p { font-size: 1.02rem; color: var(--muted); margin: 0; line-height: 1.62; }

/* ---------- SERVICES ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 960px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- ABOUT photo ---------- */
.about-photo {
  display: block;
  width: 200px;
  height: auto;
  margin: 34px auto 0;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(17, 49, 98, 0.12);
  object-fit: cover;
}

/* ---------- ABOUT links ---------- */
.about-links { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; justify-content: center; }
.pill {
  display: inline-block;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 11px 26px;
  border: 1.5px solid rgba(17, 49, 98, 0.28);
  border-radius: 999px;
  background: var(--white);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.pill:hover { background: var(--navy); border-color: var(--navy); color: var(--white); transform: translateY(-2px); }

/* ---------- FOOTER social ---------- */
.footer-social { display: flex; gap: 16px; justify-content: flex-end; }
.footer-social a { color: rgba(255, 255, 255, 0.9); text-decoration: none; }
.footer-social a:hover { color: var(--white); text-decoration: underline; }

/* ---------- CONTACT band spacing ---------- */
#contact .btn-light { margin-top: 8px; }
#contact .statement { margin-bottom: 34px; }

/* ---------- FOOTER ---------- */
.footer { background: var(--navy-deep); color: rgba(255,255,255,0.7); padding: 54px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand p { white-space: nowrap; }
.footer-brand img { display: block; }
.footer-brand p {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.02rem;
  line-height: 1.4;
}
.footer-meta { display: flex; flex-direction: column; gap: 8px; text-align: right; font-size: 0.92rem; }
.footer-meta a { color: rgba(255, 255, 255, 0.9); text-decoration: none; }
.footer-meta a:hover { color: var(--white); text-decoration: underline; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .band { padding: 84px 0; }
  .hero { padding: 110px 0 80px; }
}
@media (max-width: 560px) {
  .nav-brand span { display: none; }
  .footer-inner { flex-direction: column; }
  .footer-meta { text-align: left; }
  .footer-social { justify-content: flex-start; }
  .footer-brand p { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue { animation: none; }
  html { scroll-behavior: auto; }
  .step:hover, .btn:hover { transform: none; }
}

/* ---------- MEDIA PAGE ---------- */
.media-hero {
  padding: 150px 0 70px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(17, 49, 98, 0.05), rgba(255, 255, 255, 0) 62%);
}
.media-title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4.4vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.28;
  color: var(--navy);
  max-width: 760px;
  margin: 0 auto;
}

/* ---------- SUBSTACK EMBED ---------- */
.substack-embed { display: flex; justify-content: center; }
.substack-embed iframe { max-width: 100%; border-radius: 8px; }

/* ---------- MEDIA GRID ---------- */
.media-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.media-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 6px 20px rgba(17, 49, 98, 0.05);
}
.media-card h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin: 18px 0 4px;
}
.media-card p { font-size: 0.98rem; color: var(--muted); margin: 0; }

.media-featured {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}
.media-featured h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin: 18px 0 4px;
}
.media-featured p { font-size: 0.98rem; color: var(--muted); margin: 0; }

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--navy-tint);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.podcast-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--navy-tint);
}
.podcast-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 760px) {
  .media-grid { grid-template-columns: 1fr; }
}
