:root {
  --ink: #1d2732;
  --muted: #5f6f7f;
  --blue: #063b82;
  --blue-dark: #04285b;
  --blue-soft: #eaf3ff;
  --gold: #d6ab35;
  --gold-soft: #fff5d9;
  --teal: #0f8f8f;
  --white: #ffffff;
  --surface: #f7fafe;
  --surface-warm: #fbf8ef;
  --border: #d9e4f0;
  --shadow: 0 24px 60px rgba(4, 40, 91, 0.14);
  --radius: 8px;
  --container: 1180px;
  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin-top: 0;
}

p,
dd {
  color: var(--muted);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

::selection {
  color: var(--blue-dark);
  background: rgba(214, 171, 53, 0.42);
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--blue);
  border-radius: var(--radius);
}

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

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.section {
  padding: 4.5rem 0;
  scroll-margin-top: calc(var(--header-height) + 1.25rem);
}

.section-blue {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(6, 59, 130, 0.98), rgba(4, 40, 91, 0.99)),
    var(--blue-dark);
}

.section-blue h2,
.section-blue h3,
.section-blue p,
.section-blue dd,
.section-blue dt {
  color: var(--white);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 2.4rem;
  text-align: center;
}

.section-heading-left {
  margin-inline: 0;
  text-align: left;
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-blue .eyebrow,
.hero .eyebrow,
.cta-section .eyebrow {
  color: #dfefff;
}

h1,
h2,
h3 {
  color: var(--blue-dark);
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 1.2rem;
  color: var(--white);
  font-size: 2.75rem;
}

h2 {
  margin-bottom: 1rem;
  font-size: 2.1rem;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.18rem;
}

.button {
  min-height: 48px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.78rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 820;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-small {
  min-height: 42px;
  padding: 0.62rem 0.82rem;
  font-size: 0.92rem;
}

.button-primary {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 16px 34px rgba(6, 59, 130, 0.24);
}

.button-primary:hover {
  background: var(--blue-dark);
}

.button-gold {
  color: #182333;
  background: var(--gold);
  box-shadow: 0 16px 36px rgba(214, 171, 53, 0.28);
}

.button-glass {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
}

.button-svg {
  width: 1.12rem;
  height: 1.12rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.card-icon {
  width: 2.45rem;
  height: 2.45rem;
  color: var(--blue);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(6, 59, 130, 0.12);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  width: min(218px, 58vw);
  display: inline-flex;
  flex: 0 0 auto;
}

.brand img {
  width: 100%;
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
}

.menu-toggle {
  width: 46px;
  height: 46px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--blue);
  background: var(--white);
}

.menu-line {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.primary-nav {
  position: fixed;
  inset: var(--header-height) 0 auto 0;
  display: grid;
  gap: 0.55rem;
  max-height: calc(100dvh - var(--header-height));
  padding: 1rem;
  overflow-y: auto;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform: translateY(-110%);
  visibility: hidden;
  opacity: 0;
  transition: transform 0.24s ease, visibility 0.24s ease, opacity 0.24s ease;
}

.primary-nav.open {
  transform: translateY(0);
  visibility: visible;
  opacity: 1;
}

.primary-nav a {
  min-height: 46px;
  display: flex;
  align-items: center;
  border-radius: var(--radius);
  color: var(--blue-dark);
  font-weight: 780;
  text-decoration: none;
}

.header-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.2rem;
  padding: 0.2rem 0;
}

.header-social-link {
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(6, 59, 130, 0.14);
  border-radius: 999px;
  color: var(--blue);
  background: var(--white);
  box-shadow: 0 8px 20px rgba(4, 40, 91, 0.07);
}

.header-social-link:hover {
  color: var(--blue-dark);
  border-color: rgba(214, 171, 53, 0.45);
  background: var(--gold-soft);
}

.header-social-link .social-icon {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.primary-nav > a:not(.button) {
  padding: 0.72rem 0.85rem;
  background: var(--surface);
}

.primary-nav > a[aria-current="page"],
.primary-nav > a:not(.button):hover {
  color: var(--white);
  background: var(--blue);
}

/* Hero */

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--blue-dark);
}

.hero-image,
.hero-scrim,
.cta-image,
.cta-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image,
.cta-image {
  object-fit: cover;
  object-position: center;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(4, 40, 91, 0.96) 0%, rgba(6, 59, 130, 0.84) 44%, rgba(6, 59, 130, 0.18) 100%),
    linear-gradient(180deg, rgba(4, 40, 91, 0.12), rgba(4, 40, 91, 0.42));
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 4.2rem 0 5.2rem;
}

.hero-intro {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.9rem;
}

/* Story */

.story {
  background:
    linear-gradient(180deg, var(--white) 0%, var(--surface) 100%);
}

.story-grid,
.founder-grid,
.vision-layout,
.choose-layout,
.contact-layout {
  display: grid;
  gap: 2rem;
}

.story-text p {
  font-size: 1.04rem;
}

.story-media {
  position: relative;
  min-height: 460px;
}

.story-media img {
  width: 100%;
  height: 100%;
  max-height: 680px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.glass-card,
.media-note {
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 44px rgba(4, 40, 91, 0.14);
  backdrop-filter: blur(16px);
}

.media-note {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  max-width: 340px;
  padding: 1rem;
  color: var(--blue-dark);
}

/* Founder */

.founder-photo {
  min-height: 480px;
  overflow: hidden;
  border-radius: var(--radius);
}

.portrait-placeholder {
  width: 100%;
  min-height: 480px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 1px dashed rgba(255, 255, 255, 0.42);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(214, 171, 53, 0.18)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 16px);
  text-align: center;
}

.portrait-placeholder span {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 850;
}

.portrait-placeholder small {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 760;
}

.founder-content {
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.16);
}

.founder-fields {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 0;
}

.founder-fields div {
  display: grid;
  gap: 0.25rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.founder-fields div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.founder-fields dt {
  font-weight: 850;
}

.founder-fields dd {
  margin-left: 0;
  color: rgba(255, 255, 255, 0.78);
  overflow-wrap: anywhere;
}

/* Philosophy and services */

.philosophy {
  background: var(--white);
}

.philosophy-grid,
.services-grid,
.choose-grid,
.resource-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.value-card,
.service-card,
.proof-card,
.resource-card {
  min-height: 230px;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 32px rgba(4, 40, 91, 0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.value-card:hover,
.service-card:hover,
.proof-card:hover,
.resource-card:hover {
  border-color: rgba(6, 59, 130, 0.22);
  box-shadow: 0 20px 46px rgba(4, 40, 91, 0.12);
  transform: translateY(-5px) scale(1.01);
}

.value-card {
  display: grid;
  align-content: start;
  gap: 0.9rem;
}

.services {
  background: var(--surface-warm);
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), var(--gold), var(--teal));
}

.service-card span {
  width: 2.55rem;
  height: 2.55rem;
  display: inline-grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 0.78rem;
  font-weight: 900;
}

/* Vision, mission and pilot */

.founder-image {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  object-fit: cover;
  object-position: center top;
}

#vision {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 92% 8%, rgba(35, 180, 168, 0.22), transparent 34%),
    linear-gradient(135deg, #042d64 0%, #063b82 58%, #07569a 100%);
}

#vision::before,
#vision::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

#vision::before {
  top: -260px;
  right: -150px;
  width: 480px;
  height: 480px;
  border: 72px solid rgba(255, 255, 255, 0.055);
}

#vision::after {
  bottom: -180px;
  left: -110px;
  width: 280px;
  height: 280px;
  border: 42px solid rgba(244, 201, 93, 0.08);
}

#vision .vision-layout {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 3rem;
}

#vision .vision-copy {
  max-width: 620px;
}

#vision .eyebrow {
  color: #f4c95d;
}

#vision #vision-title {
  max-width: 620px;
  margin-bottom: 1.35rem;
  color: var(--white);
}

#vision .vision-statement {
  max-width: 610px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  line-height: 1.75;
}

#vision .vision-pillars {
  display: grid;
  gap: 1.15rem;
}

#vision .vision-pillar {
  min-height: 150px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: start;
  gap: 1.25rem;
  padding: 1.55rem 1.65rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 45px rgba(0, 18, 52, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

#vision .vision-pillar:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 201, 93, 0.58);
  background: rgba(255, 255, 255, 0.14);
}

#vision .vision-number {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--blue);
  background: #f4c95d;
  font-size: 0.88rem;
  font-weight: 900;
}

#vision .vision-pillar h3 {
  margin-bottom: 0.55rem;
  color: var(--white);
}

#vision .vision-pillar p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.mission {
  background: var(--white);
}

.mission-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.mission-statement {
  max-width: 760px;
  font-size: 1.08rem;
  line-height: 1.8;
}

.mission-priorities {
  display: grid;
  gap: 1rem;
}

.mission-priority {
  padding: 1.35rem;
  border: 1px solid rgba(6, 59, 130, 0.12);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 38px rgba(6, 59, 130, 0.08);
}

.mission-priority p {
  margin-bottom: 0;
}

.pilot {
  background: #f5f8fc;
}

#pilot h2,
#pilot h3 {
  color: var(--blue-dark);
}

#pilot .eyebrow {
  color: var(--teal);
}

#pilot .vision-copy p,
#pilot .vision-list li,
#pilot .pilot-timeline p {
  color: #526579;
}

.vision-list {
  display: grid;
  gap: 0.72rem;
  padding: 0;
  margin: 1.4rem 0 0;
  list-style: none;
}

.vision-list li {
  position: relative;
  padding-left: 1.6rem;
  font-weight: 760;
}

.vision-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--gold);
}

.pilot-timeline {
  display: grid;
  gap: 1.4rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pilot-timeline li {
  position: relative;
  min-height: 160px;
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(4, 40, 91, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.pilot-timeline li:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 59, 130, 0.25);
  box-shadow: 0 20px 44px rgba(4, 40, 91, 0.15);
}

.pilot-timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 2.4rem;
  bottom: -1.45rem;
  width: 2px;
  height: 1.45rem;
  background: var(--gold);
}

.pilot-timeline span {
  width: 2.45rem;
  height: 2.45rem;
  display: inline-grid;
  place-items: center;
  margin-bottom: 0.8rem;
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--gold);
  font-weight: 900;
}

/* Choose */

.choose {
  background: var(--white);
}

.proof-card {
  min-height: 190px;
  background: linear-gradient(180deg, var(--white), var(--surface));
}

.proof-card h3 {
  color: var(--teal);
}

/* Resources */

.resources {
  background: var(--surface);
}

.resources .section-heading p {
  margin-inline: auto;
  max-width: 700px;
}

.resource-card {
  min-height: 220px;
}

.badge {
  display: inline-flex;
  margin-bottom: 0.85rem;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 850;
}

.resource-image {
  background:
    linear-gradient(135deg, rgba(234, 243, 255, 0.94), rgba(255, 245, 217, 0.94)),
    repeating-linear-gradient(45deg, rgba(6, 59, 130, 0.08) 0 1px, transparent 1px 16px);
}

.cms-resource-sections {
  display: grid;
  gap: 2rem;
}

.cms-resource-section {
  min-width: 0;
}

.cms-resource-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cms-resource-header h3 {
  min-width: 0;
  margin-bottom: 0;
  font-size: 1.45rem;
  overflow-wrap: anywhere;
}

.cms-section-description {
  max-width: 760px;
  margin: -0.3rem 0 1rem;
  color: var(--muted);
}

.cms-grid {
  min-height: 160px;
}

.cms-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.9rem;
}

.cms-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--blue-soft);
}

.cms-meta {
  margin-bottom: 0;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
}

.cms-card h3,
.cms-card p {
  margin-bottom: 0;
}

.cms-access-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.66rem;
  border: 1px solid rgba(214, 171, 53, 0.28);
  border-radius: 999px;
  color: var(--blue-dark);
  background: linear-gradient(135deg, rgba(255, 245, 217, 0.98), rgba(234, 243, 255, 0.96));
  font-size: 0.77rem;
  font-weight: 850;
}

.cms-access-badge.is-paid {
  color: var(--blue-dark);
  background: linear-gradient(135deg, rgba(214, 171, 53, 0.18), rgba(255, 245, 217, 0.92));
}

.cms-access-badge-detail {
  margin-top: 0.15rem;
}

.cms-card-actions {
  margin-top: auto;
}

.cms-toolbar {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.cms-toolbar p {
  margin: 0;
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cms-toolbar-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(170px, 0.55fr) auto auto;
  gap: 0.7rem;
  align-items: center;
}

.cms-toolbar input,
.cms-toolbar select {
  width: 100%;
  min-height: 44px;
  padding: 0.72rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.cms-load-more-wrap {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.cms-pagination-summary {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.cms-empty,
.cms-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
}

.cms-page {
  background: var(--surface);
}

.cms-page .site-header {
  position: sticky;
}

.cms-listing-page,
.cms-detail-page {
  min-height: calc(100vh - var(--header-height));
  padding-top: 6rem;
}

.cms-detail-card {
  display: grid;
  gap: 1.2rem;
  max-width: 920px;
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.cms-detail-card h1 {
  margin-bottom: 0;
  color: var(--blue-dark);
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.cms-detail-image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--blue-soft);
}

.cms-detail-content {
  color: var(--muted);
  font-size: 1.06rem;
}

.cms-benefits-section {
  display: grid;
  gap: 0.8rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(6, 59, 130, 0.14);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(234, 243, 255, 0.88), rgba(255, 245, 217, 0.72));
}

.cms-benefits-section h2 {
  margin-bottom: 0;
  color: var(--blue-dark);
  font-size: 1.2rem;
}

.cms-benefits-section p,
.cms-benefits-section li {
  color: var(--ink);
}

.cms-benefits-section ul {
  display: grid;
  gap: 0.55rem;
  padding-left: 1.2rem;
  margin: 0;
}

.cms-detail-content > * + * {
  margin-top: 0.9rem;
}

.cms-detail-content h2,
.cms-reference-block h2,
.cms-related h2 {
  margin-bottom: 0.35rem;
  color: var(--blue-dark);
  font-size: 1.35rem;
}

.cms-detail-content blockquote {
  margin: 0;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--gold);
  color: var(--ink);
  background: var(--blue-soft);
}

.cms-detail-content img {
  width: 100%;
  border-radius: var(--radius);
}

.cms-detail-facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.45rem 0.9rem;
  margin: 0;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--blue-soft);
}

.cms-detail-facts dt {
  color: var(--blue-dark);
  font-weight: 900;
}

.cms-detail-facts dd {
  min-width: 0;
  margin: 0;
  color: var(--muted);
}

.cms-detail-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(6, 59, 130, 0.12);
  border-radius: var(--radius);
  background: var(--blue-soft);
}

.cms-detail-social-label {
  margin: 0;
  color: var(--blue-dark);
  font-size: 0.92rem;
  font-weight: 850;
}

.cms-detail-social-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cms-detail-social-link {
  min-height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(6, 59, 130, 0.14);
  border-radius: 999px;
  color: var(--blue);
  background: var(--white);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.cms-detail-social-link:hover {
  color: var(--blue-dark);
  border-color: rgba(214, 171, 53, 0.45);
  background: var(--gold-soft);
}

.cms-detail-social-link .social-icon {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.cms-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.cms-inline-note {
  width: fit-content;
}

.cms-inline-note.is-error {
  border-color: rgba(184, 54, 54, 0.35);
  color: #9f1d1d;
  background: #fff4f2;
}

.cms-reference-block,
.cms-related {
  display: grid;
  gap: 0.8rem;
}

.cms-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.cms-tags li {
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.cms-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.cms-gallery-item {
  display: grid;
  gap: 0.45rem;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  text-align: left;
}

.cms-gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--blue-soft);
}

.cms-gallery-item span {
  font-size: 0.82rem;
}

.cms-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: rgba(4, 20, 45, 0.86);
}

.cms-lightbox figure {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  margin: 0;
}

.cms-lightbox img {
  max-width: min(100%, 1100px);
  max-height: 84vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.cms-lightbox figcaption {
  color: var(--white);
  font-weight: 800;
  text-align: center;
}

.cms-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.65rem 0.9rem;
  border: 0;
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--gold);
  font-weight: 900;
}

.cms-lightbox-nav {
  padding: 0.65rem 0.9rem;
  border: 0;
  border-radius: var(--radius);
  color: var(--blue-dark);
  background: var(--white);
  font-weight: 900;
}

.cms-lightbox-nav:disabled {
  opacity: 0.45;
}

/* CTA */

.cta-section {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.cta-image {
  object-position: center 30%;
}

.cta-scrim {
  background:
    linear-gradient(90deg, rgba(4, 40, 91, 0.95) 0%, rgba(6, 59, 130, 0.76) 55%, rgba(4, 40, 91, 0.34) 100%),
    linear-gradient(180deg, rgba(4, 40, 91, 0.22), rgba(4, 40, 91, 0.62));
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: min(var(--container), calc(100% - 2rem));
  padding: 5rem 0;
}

.cta-content h2 {
  max-width: 820px;
  color: var(--white);
}

.cta-content p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

/* Contact */

.contact {
  background:
    linear-gradient(180deg, var(--white) 0%, var(--surface) 100%);
}

/* =====================================================
   EDUREACH CONTACT DETAILS
   ===================================================== */

.contact-details {
  display: grid;
  gap: 1rem;
  margin: 1.8rem 0;
  font-style: normal;
}

.contact-detail {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(4, 40, 91, 0.07);
}

.contact-detail strong {
  color: var(--blue-dark);
  font-size: 0.84rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-detail a {
  width: fit-content;
  max-width: 100%;
  color: var(--blue);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.55;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-detail a:hover {
  color: var(--teal);
  text-decoration: underline;
}

.contact-details > a {
  width: fit-content;
  max-width: 100%;
  color: var(--blue);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.social-panel {
  display: grid;
  gap: 0.85rem;
  margin: 1.6rem 0;
  padding: 1.1rem;
  border: 1px solid rgba(6, 59, 130, 0.14);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(4, 40, 91, 0.08);
}

.social-panel h3 {
  margin-bottom: 0;
  color: var(--blue-dark);
  font-size: 1.02rem;
}

.social-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.social-button {
  min-height: 3.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.58rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(6, 59, 130, 0.16);
  border-radius: var(--radius);
  color: var(--blue);
  background: var(--blue-soft);
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-button:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 171, 53, 0.72);
  color: var(--blue-dark);
  background: var(--gold-soft);
}

.social-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.map-placeholder {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(6, 59, 130, 0.16);
  border-radius: var(--radius);
  color: var(--blue);
  background: var(--white);
  box-shadow: 0 16px 38px rgba(4, 40, 91, 0.08);
}

.map-placeholder iframe {
  width: 100%;
  min-height: 350px;
  display: block;
}

.map-caption {
  margin: 0;
  padding: 0.9rem 1rem;
  color: var(--blue-dark);
  font-weight: 850;
  line-height: 1.45;
  background: linear-gradient(135deg, rgba(234, 243, 255, 0.9), rgba(255, 245, 217, 0.72));
}

.map-placeholder small {
  color: var(--muted);
}

.contact-form {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.field {
  margin-bottom: 0.95rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--blue-dark);
  font-size: 0.92rem;
  font-weight: 820;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.82rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(214, 171, 53, 0.2);
  outline: 0;
}

.field-hidden {
  position: absolute;
  left: -9999px;
}

.form-status {
  min-height: 1.4rem;
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-status.is-error {
  color: #a32121;
}

.form-status.is-success {
  color: #146b3b;
}

/* Footer */

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: #06162d;
}

.footer-layout {
  display: grid;
  gap: 2rem;
  padding: 3rem 0 2rem;
}

.footer-brand img {
  width: min(230px, 70vw);
  margin-bottom: 1rem;
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.footer-brand p {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.footer-links h2 {
  margin-bottom: 0.2rem;
  color: var(--white);
  font-size: 1rem;
}

.footer-links a,
.footer-bottom a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.footer-links a:hover,
.footer-bottom a:hover {
  color: var(--white);
}

.footer-social-links {
  display: grid;
  gap: 0.65rem;
}

.footer-social-link {
  width: fit-content;
  max-width: 100%;
  min-height: 2.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.72rem 0.95rem;
  border: 1px solid rgba(214, 171, 53, 0.35);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.footer-social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 171, 53, 0.7);
  background: rgba(214, 171, 53, 0.16);
}

.footer-social-link .social-icon {
  width: 1rem;
  height: 1rem;
  color: var(--gold);
}

.follow-section {
  padding-top: 0;
  padding-bottom: 2.5rem;
}

.follow-section-inner {
  display: grid;
  gap: 1rem;
  padding: 1.35rem 1.35rem 1.45rem;
  border: 1px solid rgba(6, 59, 130, 0.12);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(234, 243, 255, 0.95), rgba(255, 245, 217, 0.78));
  box-shadow: 0 16px 36px rgba(4, 40, 91, 0.08);
}

.follow-copy h2 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.5rem, 3.1vw, 1.9rem);
}

.follow-copy p {
  margin-bottom: 0;
  color: var(--muted);
}

.follow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.follow-action {
  min-height: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(6, 59, 130, 0.14);
  border-radius: 999px;
  color: var(--blue);
  background: var(--white);
  font-weight: 850;
  text-decoration: none;
}

.follow-action:hover {
  color: var(--blue-dark);
  border-color: rgba(214, 171, 53, 0.45);
  background: var(--gold-soft);
}

.follow-action .social-icon {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1rem 0 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

/* Motion */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.62s ease, transform 0.62s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

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

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

  .footer-social-link {
    width: 100%;
    justify-content: center;
  }

  .cms-toolbar-row {
    grid-template-columns: 1fr;
  }

  .cms-detail-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cms-detail-actions .button,
  .cms-card-actions .button {
    width: 100%;
    justify-content: center;
  }

  .follow-actions {
    flex-direction: column;
  }

  .follow-action {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 3rem));
  }

  .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .philosophy-grid,
  .services-grid,
  .choose-grid,
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 640px) {
  .hero-actions,
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero-intro,
  .cta-content p {
    max-width: 100%;
  }

  .cms-resource-header,
  .cms-toolbar-row,
  .cms-detail-actions {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .cms-resource-header {
    display: grid;
  }

  .cms-detail-facts {
    grid-template-columns: 1fr;
  }

  .cms-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cms-lightbox {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    align-content: center;
  }

  .cms-lightbox-nav {
    width: 100%;
  }

  .social-actions {
    grid-template-columns: 1fr;
  }

  .social-button {
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  #vision .vision-layout {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  #vision .vision-copy,
  #vision #vision-title,
  #vision .vision-statement,
  #vision .vision-pillars {
    max-width: 820px;
  }
}

@media (max-width: 600px) {
  #vision .vision-pillar {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 1rem;
    min-height: 0;
    padding: 1.25rem;
  }

  #vision .vision-number {
    width: 48px;
    height: 48px;
  }

  #vision .vision-pillars {
    margin-top: 1.5rem;
  }
}

@media (min-width: 820px) {
  :root {
    --header-height: 86px;
  }

  .section {
    padding: 6rem 0;
  }

  h1 {
    font-size: 4.6rem;
  }

  h2 {
    font-size: 3.45rem;
  }

  .story-grid,
  .founder-grid,
  .vision-layout,
  .choose-layout,
  .contact-layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: center;
  }

  .story-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  }

  .founder-grid {
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  }

  .choose-layout {
    grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1.38fr);
    align-items: start;
  }

  .contact-layout {
    align-items: start;
  }

  .mission-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 5rem;
  }

  .contact-copy {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
  }

  .services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .resource-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-layout {
    grid-template-columns: 1.35fr 0.75fr 0.75fr 0.75fr;
  }
}

@media (min-width: 1040px) {
  .menu-toggle {
    display: none;
  }

  .primary-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 0.18rem;
    max-height: none;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    visibility: visible;
    opacity: 1;
  }

  .primary-nav > a:not(.button) {
    min-height: 42px;
    padding: 0.54rem 0.58rem;
    background: transparent;
    font-size: 0.92rem;
  }

  .primary-nav > a[aria-current="page"],
  .primary-nav > a:not(.button):hover {
    color: var(--blue);
    background: var(--blue-soft);
  }

  .primary-nav .button {
    margin-left: 0.35rem;
  }

  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(4, 40, 91, 0.98) 0%, rgba(6, 59, 130, 0.84) 40%, rgba(6, 59, 130, 0.08) 80%),
      linear-gradient(180deg, rgba(4, 40, 91, 0.08), rgba(4, 40, 91, 0.36));
  }

  .hero-inner {
    padding: 5.8rem 0 6.4rem;
  }

  .philosophy-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pilot-timeline {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
  }

  .pilot-timeline li {
    min-height: 260px;
  }

  .pilot-timeline li:not(:last-child)::after {
    left: auto;
    right: -1rem;
    top: 2.3rem;
    bottom: auto;
    width: 1rem;
    height: 2px;
  }
}

@media (min-width: 1180px) {
  h1 {
    font-size: 5.55rem;
  }
}

@media (max-width: 460px) {
  .hero {
    min-height: calc(100svh - var(--header-height));
  }

  .story-media {
    min-height: 380px;
  }

  .media-note {
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
  }
}

/* Fix clipped heading in Why Schools Choose EduReach */
.choose-layout {
  grid-template-columns: minmax(360px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(2rem, 4vw, 4rem);
}

.choose .section-heading {
  width: 100%;
  max-width: 520px;
  overflow: visible;
}

.choose .section-heading h2 {
  max-width: 100%;
  font-size: clamp(2.6rem, 4.4vw, 4.8rem);
  line-height: 1.08;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

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

  .choose .section-heading {
    max-width: 760px;
  }

  .choose .section-heading h2 {
    font-size: clamp(2.3rem, 9vw, 3.6rem);
  }
}

/* =====================================================
   PILOT SECTION - RESPONSIVE LAYOUT FIX
   ===================================================== */

#pilot .vision-layout {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 3rem;
}

#pilot .vision-copy {
  width: 100%;
  max-width: 900px;
}

#pilot .pilot-timeline {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

#pilot .pilot-timeline li {
  position: relative;
  min-width: 0;
  min-height: 260px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(4, 40, 91, 0.1);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

#pilot .pilot-timeline li:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 59, 130, 0.25);
  box-shadow: 0 20px 44px rgba(4, 40, 91, 0.15);
}

#pilot .pilot-timeline span {
  width: 2.65rem;
  height: 2.65rem;
  display: inline-grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--gold);
  font-weight: 900;
}

#pilot .pilot-timeline h3 {
  margin-bottom: 0.65rem;
  color: var(--blue-dark);
  font-size: 1.25rem;
  line-height: 1.2;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

#pilot .pilot-timeline p {
  margin-bottom: 0;
  color: #526579;
  line-height: 1.65;
  overflow-wrap: normal;
  word-break: normal;
}

#pilot .pilot-timeline li::after {
  display: none;
}

@media (max-width: 900px) {
  #pilot .vision-layout {
    gap: 2.25rem;
  }

  #pilot .pilot-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #pilot .pilot-timeline li {
    min-height: 0;
  }

  .cms-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  #pilot .vision-layout {
    gap: 1.75rem;
  }

  #pilot .pilot-timeline {
    grid-template-columns: 1fr;
  }

  #pilot .pilot-timeline li {
    min-height: 0;
    padding: 1.25rem;
  }

  .cms-resource-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .cms-detail-card {
    padding: 1rem;
  }

  .cms-gallery {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   FLOATING CONTACT ACTIONS AND FAQ
   ===================================================== */

.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.floating-btn {
  border: none;
  border-radius: 999px;
  padding: 12px 16px;
  color: inherit;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.floating-btn:hover,
.floating-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.floating-btn:focus-visible,
.faq-widget-header button:focus-visible,
.faq-question:focus-visible {
  outline: 3px solid rgba(214, 171, 53, 0.75);
  outline-offset: 3px;
}

.whatsapp-float {
  background: #25d366;
  color: #fff;
}

.call-float {
  background: #063b82;
  color: #fff;
}

.faq-float {
  background: #f4b400;
  color: #09213d;
}

.faq-widget {
  position: fixed;
  right: 18px;
  bottom: 180px;
  width: min(360px, calc(100vw - 36px));
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  z-index: 1000;
  display: none;
}

.faq-widget.is-open {
  display: block;
}

.faq-widget-header {
  background: #063b82;
  color: #fff;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-widget-header h2 {
  margin: 0;
  color: inherit;
  font-size: 1rem;
  line-height: 1.2;
}

.faq-widget-header button {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-grid;
  place-items: center;
  background: transparent;
  color: #fff;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.faq-widget-body {
  padding: 16px;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: #f3f7fb;
  color: #09213d;
  border: none;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.faq-answer {
  display: none;
  margin: 0 0 12px;
  color: #334155;
  line-height: 1.6;
}

.faq-question.is-active + .faq-answer {
  display: block;
}

/* =====================================================
   DIGITAL MARKETPLACE CART AND CHECKOUT
   ===================================================== */

.cart-nav-link {
  position: relative;
  gap: 0.42rem;
  white-space: nowrap;
}

.cart-badge {
  min-width: 1.35rem;
  height: 1.35rem;
  display: inline-grid;
  place-items: center;
  padding: 0 0.35rem;
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--gold);
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1;
}

.cart-badge.is-empty {
  opacity: 0.6;
}

.commerce-page h1 {
  color: var(--blue-dark);
}

.commerce-section {
  background: var(--surface);
}

.commerce-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.commerce-items,
.checkout-form,
.cart-summary,
.order-result,
.empty-cart-state {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 42px rgba(4, 40, 91, 0.08);
}

.commerce-items {
  display: grid;
}

.cart-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.cart-row:last-child {
  border-bottom: 0;
}

.cart-row-image {
  width: 88px;
  height: 88px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--blue-soft);
}

.cart-row-body h2,
.cart-summary h2,
.checkout-form h2,
.order-result h2 {
  margin-bottom: 0.45rem;
  color: var(--blue-dark);
  font-size: 1.35rem;
}

.cart-row-body p,
.order-item p {
  margin-bottom: 0;
}

.cart-row-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  grid-column: 1 / -1;
}

.cart-row-controls input {
  width: 5.8rem;
  min-height: 42px;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
}

.cart-row-total {
  grid-column: 1 / -1;
  color: var(--blue-dark);
  font-size: 1.05rem;
}

.cart-summary,
.checkout-form,
.order-result,
.empty-cart-state {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.checkout-form {
  align-content: start;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.summary-line-total {
  border-bottom: 0;
  color: var(--blue-dark);
  font-size: 1.08rem;
}

.commerce-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.commerce-secondary {
  color: var(--blue);
  background: var(--white);
  border-color: var(--border);
  box-shadow: none;
}

.commerce-secondary:hover {
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.order-meta {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.45rem 0.9rem;
  margin: 0;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--blue-soft);
}

.order-meta dt {
  color: var(--blue-dark);
  font-weight: 900;
}

.order-meta dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.order-items {
  display: grid;
  gap: 0.8rem;
}

.order-item {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.order-item h3 {
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}

.download-note {
  margin: 0;
  color: var(--muted);
  font-weight: 760;
}

.empty-cart-state p,
.order-result > p {
  max-width: 720px;
}

@media (min-width: 760px) {
  .commerce-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  }

  .checkout-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(300px, 0.45fr);
  }

  .cart-row {
    grid-template-columns: 104px minmax(0, 1fr) auto auto;
    align-items: center;
  }

  .cart-row-image {
    width: 104px;
    height: 104px;
  }

  .cart-row-controls,
  .cart-row-total {
    grid-column: auto;
  }

  .order-item {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

@media (max-width: 640px) {
  .commerce-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .commerce-actions .button,
  .cart-row-controls .button {
    width: 100%;
  }

  .order-meta {
    grid-template-columns: 1fr;
  }
}
