:root {
  --ink: #0d1b2a;
  --ink-soft: #334155;
  --muted: #64748b;
  --paper: #f4f6f8;
  --paper-deep: #e8eef4;
  --line: #c9d4e0;
  --navy: #0d1b2a;
  --navy-mid: #1b3350;
  --navy-deep: #07131f;
  --accent: #3a6ea5;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(13, 27, 42, 0.14);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Sora", ui-sans-serif, system-ui, sans-serif;
  --wrap: min(1120px, calc(100% - 2.5rem));
  --narrow: min(720px, 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #d9e4f0 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 20%, #e7eef6 0%, transparent 50%),
    var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--navy-mid);
  text-underline-offset: 0.18em;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.narrow {
  width: var(--narrow);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(243, 246, 242, 0.86);
  border-bottom: 1px solid rgba(197, 208, 199, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem 1.1rem;
}

.header-nav a:not(.btn) {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}

.header-nav a:not(.btn):hover,
.header-nav a[aria-current="page"] {
  color: var(--navy);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo {
  display: block;
  height: 2.5rem;
  width: auto;
  max-width: min(200px, 48vw);
  object-fit: contain;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1.25rem;
  border-radius: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-small {
  padding: 0.55rem 0.9rem;
  font-size: 0.82rem;
}

.btn-large {
  width: 100%;
  padding: 1.05rem 1.4rem;
  font-size: 1.02rem;
}

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

.btn-primary:hover {
  background: var(--navy-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(20, 32, 26, 0.28);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.35);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 0 4.5rem;
  overflow: hidden;
  color: var(--white);
  text-align: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.particle-field,
#particle-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.particle-field-hero {
  opacity: 0.85;
}

.hero-media-abstract {
  background:
    radial-gradient(800px 500px at 20% 20%, #1b3350 0%, transparent 55%),
    radial-gradient(700px 480px at 85% 70%, #3a6ea5 0%, transparent 50%),
    linear-gradient(160deg, #0d1b2a 0%, #16324f 55%, #0d1b2a 100%);
}

.hero-media-abstract #particle-field {
  mix-blend-mode: normal;
  opacity: 1;
  z-index: 2;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(13, 27, 42, 0.4) 0%, rgba(13, 27, 42, 0.68) 45%, rgba(13, 27, 42, 0.88) 100%);
}

.hero-veil-case {
  background:
    linear-gradient(180deg, rgba(13, 27, 42, 0.35) 0%, rgba(13, 27, 42, 0.55) 45%, rgba(13, 27, 42, 0.85) 100%);
}

.hero-case .hero-copy {
  max-width: var(--wrap);
}

.case-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: var(--wrap);
  max-width: var(--wrap);
  margin-inline: auto;
}

.brand-signal {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.hero h1 {
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2.05rem);
  font-weight: 500;
  line-height: 1.25;
  max-width: min(52rem, 100%);
}

@media (min-width: 768px) {
  .hero h1 {
    max-width: min(56rem, 100%);
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    max-width: min(60rem, 100%);
  }
}

.lede {
  margin: 1.1rem auto 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 40rem;
}

@media (min-width: 768px) {
  .lede {
    max-width: 46rem;
  }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

/* Primary CTA on navy/photo heroes — white so it reads as the main action */
.hero .btn-primary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.hero .btn-primary:hover {
  background: #e8eef6;
  color: var(--navy-deep);
  border-color: #e8eef6;
}

.hero .btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}

.section p {
  color: var(--ink-soft);
}

.problem {
  padding-bottom: 2.5rem;
  background:
    linear-gradient(180deg, rgba(232, 238, 244, 0.85), transparent),
    transparent;
}

.plans {
  padding-top: 2.5rem;
}

.problem p {
  margin: 1.1rem 0 0;
  font-size: 1.05rem;
}

.section-head {
  max-width: min(48rem, 100%);
  margin-bottom: 2.25rem;
}

.section-head-center {
  max-width: min(64rem, 100%);
  margin-inline: auto;
  text-align: center;
}

.section-head-center h2 {
  max-width: none;
}

.section-head-center p {
  margin-inline: auto;
  max-width: min(58rem, 100%);
}

/* Problem block on plans home — keep body copy on fewer lines */
.problem .section-head-center p {
  max-width: min(60rem, 100%);
}

.plans .plans-intro {
  max-width: min(62rem, 100%);
}

.section-divider {
  padding: 0;
}

.divider-line {
  display: block;
  width: min(12rem, 40%);
  margin: 0 auto;
  border: 0;
  border-top: 1px solid var(--line);
}

.section-head p {
  margin: 0.85rem 0 0;
}

/* Plans — interactive containers, not decorative cards */
.plan-list {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .plan-list {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.35rem 1.35rem;
  border-top: 3px solid var(--navy);
  background: rgba(255, 255, 255, 0.55);
  outline: 1px solid transparent;
  transition: background 180ms ease, outline-color 180ms ease;
}

.plan:hover:not(.plan-featured),
.plan:focus-within:not(.plan-featured) {
  background: var(--white);
  outline-color: var(--line);
}

.plan-featured {
  background: linear-gradient(180deg, #0d1b2a 0%, #16324f 100%);
  border-top-color: #0d1b2a;
  color: #ffffff;
}

.plan-featured:hover,
.plan-featured:focus-within {
  background: linear-gradient(180deg, #0d1b2a 0%, #1b3350 100%);
  outline-color: rgba(13, 27, 42, 0.35);
}

.plan-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.plan h3 {
  margin: 0.55rem 0 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
}

.plan-outcome {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  flex: 1;
}

.plan ul {
  margin: 1.1rem 0 1.25rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.plan li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--navy);
}

/* Option C — force light text on navy (must follow .plan li rules) */
.plan.plan-featured .plan-kicker {
  color: rgba(255, 255, 255, 0.75);
}

.plan.plan-featured h3 {
  color: #ffffff;
}

.plan.plan-featured .plan-outcome,
.plan.plan-featured li {
  color: rgba(255, 255, 255, 0.92);
}

.plan.plan-featured li::before {
  background: #ffffff;
}

.plan-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: var(--white);
  background: var(--navy);
  border: 1px solid var(--navy);
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.plan-cta:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  transform: translateY(-1px);
  color: var(--white);
}

.plan-featured .plan-cta {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.plan-featured .plan-cta:hover {
  background: #e8eef6;
  color: var(--navy-deep);
  border-color: #e8eef6;
}

/* Method */
.method {
  background: var(--paper-deep);
}

.steps {
  margin: 1.75rem 0 1.75rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1.15rem;
}

.steps li {
  counter-increment: step;
  display: grid;
  gap: 0.25rem;
  padding-left: 2.6rem;
  position: relative;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
}

.steps strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.steps span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Book CTA band */
.book {
  padding-bottom: 5.5rem;
}

.book-panel {
  display: grid;
  gap: 2rem;
  padding: 2.25rem 1.75rem;
  background:
    linear-gradient(135deg, rgba(13, 27, 42, 0.07), transparent 40%),
    var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

@media (min-width: 800px) {
  .book-panel {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    padding: 2.75rem;
  }
}

.book-copy .brand-signal {
  color: var(--navy);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}

.book-copy h2 {
  margin-top: 0.35rem;
}

.book-copy > p {
  margin: 0.85rem 0 0;
}

.book-points {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.book-points li {
  padding-left: 1rem;
  position: relative;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.book-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--accent);
}

.book-note {
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.book-note a {
  color: var(--navy);
}

/* Case study stats */
.case-stats {
  background: var(--paper-deep);
}

.stat-grid {
  display: grid;
  gap: 1rem;
}

.stat-grid-secondary {
  margin-top: 1rem;
}

@media (min-width: 800px) {
  .stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat {
  padding: 1.35rem 1.25rem;
  background: var(--white);
  border-top: 3px solid var(--navy);
}

.stat-soft {
  border-top-color: var(--accent);
  background: rgba(255, 255, 255, 0.72);
}

.stat-footnote {
  margin: 1.25rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 40rem;
}

.stat-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-value {
  margin: 0.45rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--navy);
}

.stat-value-text {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.stat-note {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.case-bullets {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.case-bullets li {
  padding: 1rem 1.1rem;
  background: var(--white);
  border-left: 3px solid var(--navy);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.case-bullets strong {
  color: var(--ink);
}

.case-next {
  background:
    linear-gradient(180deg, rgba(232, 238, 244, 0.9), transparent);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
}

.footer-brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
}

.footer-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-media img {
    animation: none;
  }

  .btn:hover {
    transform: none;
  }

  .particle-field,
  #particle-field {
    opacity: 0.35;
  }
}

@media (max-width: 640px) {
  :root {
    --wrap: min(1120px, calc(100% - 1.5rem));
  }

  .hero {
    min-height: 88vh;
    padding-top: 4.5rem;
  }

  .hero h1 {
    max-width: none;
  }

  .cta-row .btn {
    width: 100%;
  }

  .section {
    padding: 3.75rem 0;
  }
}
