/* =========================================================
   ESCALINO — Design System
   Navy + warm amber, editorial typography, bold confident
   ========================================================= */

:root {
  /* Core palette */
  --navy-950: #0A1628;
  --navy-900: #0F1E38;
  --navy-800: #152848;
  --navy-700: #1E3A66;
  --navy-500: #3B5B8A;
  --navy-300: #8FA3C2;

  --cream-50:  #F7F3EC;
  --cream-100: #F1EADC;
  --cream-200: #E8DEC9;

  --amber-600: #C5701D;
  --amber-500: #E08B2B;
  --amber-400: #F0A247;
  --amber-300: #F5BC79;

  --ink:    #0A1628;
  --muted:  #5A6B85;
  --line:   rgba(10, 22, 40, 0.12);
  --line-dark: rgba(255, 255, 255, 0.14);

  /* Semantic */
  --bg: var(--cream-50);
  --fg: var(--navy-950);
  --accent: var(--amber-500);
  --accent-deep: var(--amber-600);

  /* Type */
  --serif: "Fraunces", "Times New Roman", Georgia, serif;
  --sans:  "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono:  "JetBrains Mono", "SF Mono", Menlo, monospace;

  /* Layout */
  --max:   1400px;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);
  --radius: 2px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* -------- Reset + base -------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* -------- Typography -------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.eyebrow--light { color: var(--amber-400); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
}

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.display em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

h2 { font-size: clamp(2rem, 5vw, 3.75rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 500; }
h4 { font-size: 1.15rem; font-family: var(--sans); font-weight: 600; letter-spacing: -0.01em; }

p  { margin: 0 0 1em 0; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.4rem); line-height: 1.5; color: var(--muted); max-width: 58ch; }

::selection { background: var(--amber-400); color: var(--navy-950); }

/* -------- Layout -------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left:  var(--gutter);
  padding-right: var(--gutter);
}
section { padding: clamp(4rem, 9vw, 8rem) 0; }

/* -------- Site header / nav -------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: background 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(247, 243, 236, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.site-header.on-dark { color: var(--cream-50); }
.site-header.on-dark.scrolled {
  background: rgba(10, 22, 40, 0.85);
  border-bottom: 1px solid var(--line-dark);
}
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 0.5rem;
}
.brand-mark {
  width: 10px; height: 10px;
  background: var(--accent);
  transform: rotate(45deg);
  display: inline-block;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0; margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-cta {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.7rem 1.25rem;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--accent); border-color: var(--accent); color: var(--navy-950); }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 8px; right: 8px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 24px; }
.nav-toggle.open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: min(360px, 85vw);
    height: 100vh;
    background: var(--navy-950);
    color: var(--cream-50);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    font-size: 1.4rem;
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -0.01em;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-cta { display: none; }
}

/* -------- Nav dropdown -------- */
.has-dropdown { position: relative; }
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  padding: 0.25rem 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  position: relative;
}
.dropdown-toggle::after {
  content: "";
  position: absolute;
  left: 0; right: 16px; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.has-dropdown:hover .dropdown-toggle::after,
.dropdown-toggle.active::after,
.dropdown-toggle[aria-expanded="true"]::after { transform: scaleX(1); }
.dropdown-caret {
  width: 10px; height: 10px;
  transition: transform 0.3s var(--ease);
}
.has-dropdown:hover .dropdown-caret,
.dropdown-toggle[aria-expanded="true"] .dropdown-caret {
  transform: rotate(180deg);
}

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: -1.25rem;
  margin-top: 0.75rem;
  width: 440px;
  max-width: min(440px, calc(100vw - 2rem));
  background: var(--cream-50);
  color: var(--navy-950);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem;
  box-shadow: 0 24px 60px -20px rgba(10, 22, 40, 0.35);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  z-index: 110;
}
/* Invisible hover bridge so moving cursor down doesn't close */
.dropdown-panel::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -0.9rem;
  height: 0.9rem;
}
.has-dropdown:hover .dropdown-panel,
.has-dropdown:focus-within .dropdown-panel,
.dropdown-panel[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s;
}

.dropdown-panel li { list-style: none; }
.dropdown-panel a {
  display: grid;
  grid-template-columns: 28px 1fr 18px;
  grid-template-rows: auto auto;
  gap: 0.35rem 0.9rem;
  align-items: start;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.dropdown-panel a:hover,
.dropdown-panel a:focus-visible {
  background: var(--navy-950);
  color: var(--cream-50);
  outline: none;
}
.dropdown-panel a:hover .dd-num,
.dropdown-panel a:focus-visible .dd-num { color: var(--accent); }
.dropdown-panel a:hover .dd-arrow,
.dropdown-panel a:focus-visible .dd-arrow { color: var(--accent); transform: translateX(3px); }
.dd-num {
  grid-column: 1;
  grid-row: 1 / span 2;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding-top: 0.2rem;
  transition: color 0.2s;
}
.dd-title {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.dd-desc {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted);
  opacity: 0.9;
  margin: 0;
}
.dropdown-panel a:hover .dd-desc,
.dropdown-panel a:focus-visible .dd-desc { color: var(--cream-200); opacity: 1; }
.dd-arrow {
  grid-column: 3;
  grid-row: 1 / span 2;
  width: 14px; height: 14px;
  color: var(--muted);
  align-self: center;
  transition: color 0.2s, transform 0.3s var(--ease);
}

.dropdown-panel .dd-overview {
  display: block;
  padding: 0.8rem 1rem 0.9rem;
  margin-top: 0.25rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-950);
}
.dropdown-panel .dd-overview:hover,
.dropdown-panel .dd-overview:focus-visible {
  background: var(--cream-100);
  color: var(--accent-deep);
}

/* Mobile: dropdown becomes inline accordion */
@media (max-width: 860px) {
  .dropdown-toggle { width: 100%; justify-content: space-between; padding: 0.5rem 0; }
  .dropdown-toggle::after { display: none; }
  .dropdown-panel {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 0.75rem;
    min-width: 0;
    width: 100%;
    background: transparent;
    color: var(--cream-50);
    border: 0;
    box-shadow: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
  }
  .dropdown-panel[data-open="true"] {
    max-height: 900px;
  }
  .dropdown-panel a {
    color: var(--cream-200);
    padding: 0.75rem 0;
    border-radius: 0;
    border-bottom: 1px solid var(--line-dark);
    grid-template-columns: 28px 1fr;
    grid-template-rows: auto;
  }
  .dropdown-panel a:hover,
  .dropdown-panel a:focus-visible {
    background: transparent;
    color: var(--accent);
  }
  .dropdown-panel .dd-arrow { display: none; }
  .dd-title { font-size: 1.05rem; grid-row: 1; }
  .dd-desc { display: none; }
  .dropdown-panel .dd-overview { color: var(--amber-400); padding-left: 0; padding-right: 0; }
  .dropdown-panel .dd-overview:hover { background: transparent; color: var(--accent); }
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.6rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: var(--radius);
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}
.btn svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: var(--navy-950);
  color: var(--cream-50);
}
.btn-primary:hover { background: var(--accent-deep); color: var(--navy-950); }

.btn-accent {
  background: var(--accent);
  color: var(--navy-950);
}
.btn-accent:hover { background: var(--amber-300); }

.btn-outline {
  border: 1px solid var(--navy-950);
  color: var(--navy-950);
}
.btn-outline:hover { background: var(--navy-950); color: var(--cream-50); }

.btn-outline-light {
  border: 1px solid var(--cream-50);
  color: var(--cream-50);
}
.btn-outline-light:hover { background: var(--cream-50); color: var(--navy-950); }

/* -------- HERO -------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 9rem 0 5rem;
  background: var(--navy-950);
  color: var(--cream-50);
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 70% 40%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, black 20%, transparent 75%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: 20%; right: -10%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(240,162,71,0.18), transparent 60%);
  pointer-events: none;
  filter: blur(40px);
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  width: 100%;
}
.hero-meta {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-300);
}
.hero-meta .dot {
  width: 6px; height: 6px; background: var(--accent);
  display: inline-block; margin-right: 0.5rem;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.4); }
}
.hero h1 {
  font-size: clamp(3rem, 10vw, 9rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 300;
  max-width: 14ch;
}
.hero h1 em { color: var(--accent); font-style: italic; }
.hero-sub {
  max-width: 52ch;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--cream-200);
  line-height: 1.5;
}
.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-top: 1rem;
}
.hero-footer {
  position: absolute;
  left: 0; right: 0; bottom: 2rem;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-300);
  flex-wrap: wrap;
  gap: 1rem;
}
.hero-footer .scroll-indicator {
  display: flex; align-items: center; gap: 0.6rem;
}
.hero-footer .scroll-line {
  width: 40px; height: 1px; background: var(--navy-300);
  position: relative; overflow: hidden;
}
.hero-footer .scroll-line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--accent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* -------- Page headers (non-home) -------- */
.page-header {
  background: var(--navy-950);
  color: var(--cream-50);
  padding: 10rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 80% 50%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 50%, black 10%, transparent 70%);
}
.page-header-inner { position: relative; z-index: 2; max-width: 960px; }
.page-header h1 {
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-top: 1.5rem;
}
.page-header .lead {
  margin-top: 2rem;
  color: var(--cream-200);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
}
.crumb {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-300);
}
.crumb a:hover { color: var(--accent); }

/* -------- Section headings -------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 4rem;
  max-width: 80ch;
}
.section-head .eyebrow { margin-bottom: 0.25rem; }
.section-head h2 em { font-style: italic; color: var(--accent-deep); }

/* -------- Services (home) -------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 860px) { .services-grid { grid-template-columns: 1fr; } }
.service {
  background: var(--bg);
  padding: clamp(2rem, 3vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
  min-height: 320px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.service:hover { background: var(--navy-950); color: var(--cream-50); }
.service:hover .service-num { color: var(--accent); }
.service:hover .service-link { color: var(--accent); }
.service-num {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  transition: color 0.3s;
}
.service h3 { font-family: var(--serif); font-weight: 400; }
.service p { color: inherit; opacity: 0.85; margin-top: auto; }
.service-link {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: color 0.2s;
}
.service-link svg { width: 14px; height: 14px; transition: transform 0.3s; }
.service:hover .service-link svg { transform: translateX(4px); }

/* -------- Big statement (philosophy) -------- */
.statement {
  background: var(--cream-100);
  padding: clamp(5rem, 10vw, 9rem) 0;
}
.statement-text {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.statement-text em { color: var(--accent-deep); font-style: italic; }
.statement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: start;
}
@media (max-width: 860px) { .statement-grid { grid-template-columns: 1fr; } }
.statement-side {
  display: grid; gap: 1.5rem;
  padding-top: 0.5rem;
}
.statement-side p { color: var(--muted); font-size: 1.05rem; line-height: 1.6; }

/* -------- Programmes list (home) -------- */
.programmes {
  background: var(--navy-950);
  color: var(--cream-50);
}
.programmes .section-head .eyebrow { color: var(--amber-400); }
.programmes .section-head h2 em { color: var(--accent); }

.prog-list {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line-dark);
}
.prog-item {
  border-bottom: 1px solid var(--line-dark);
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
  display: grid;
  grid-template-columns: 80px 1fr 2fr auto;
  gap: 2rem;
  align-items: center;
  transition: background 0.3s var(--ease), padding 0.3s var(--ease);
  position: relative;
}
.prog-item:hover { padding-left: 1.5rem; padding-right: 1.5rem; background: rgba(255,255,255,0.03); }
.prog-item::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 0; height: 1px;
  background: var(--accent);
  transform: translateY(-50%);
  transition: width 0.3s var(--ease);
}
.prog-item:hover::before { width: 1rem; }
@media (max-width: 860px) {
  .prog-item { grid-template-columns: 1fr; gap: 0.75rem; padding: 1.5rem 0; }
  .prog-item:hover { padding-left: 0; padding-right: 0; }
  .prog-num { font-size: 0.8rem; }
}
.prog-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--navy-300);
}
.prog-title {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.prog-desc { color: var(--cream-200); font-size: 0.98rem; line-height: 1.5; }
.prog-arrow {
  width: 44px; height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.prog-arrow svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.prog-item:hover .prog-arrow { background: var(--accent); border-color: var(--accent); color: var(--navy-950); }
.prog-item:hover .prog-arrow svg { transform: translateX(3px); }

/* -------- Testimonial -------- */
.testimonial {
  background: var(--cream-100);
  padding: clamp(5rem, 10vw, 8rem) 0;
  position: relative;
}
.testimonial-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.quote-mark {
  font-family: var(--serif);
  font-size: 12rem;
  line-height: 0.7;
  color: var(--accent);
  margin-bottom: -1rem;
  font-weight: 300;
}
.testimonial blockquote {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.testimonial blockquote em { color: var(--accent-deep); font-style: italic; }
.testimonial cite {
  display: block;
  margin-top: 2.5rem;
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.testimonial cite strong { color: var(--navy-950); font-weight: 600; }

/* -------- Knowledge / resources row -------- */
.knowledge {
  background: var(--bg);
}
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
}
@media (max-width: 860px) { .knowledge-grid { grid-template-columns: 1fr; } }
.resource {
  padding: clamp(2rem, 3vw, 3rem);
  border: 1px solid var(--line);
  background: var(--cream-100);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  min-height: 280px;
}
.resource:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(10,22,40,0.2);
}
.resource-type {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.resource h3 { font-family: var(--serif); font-weight: 400; }
.resource p { color: var(--muted); margin-top: auto; }
.resource-link {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--navy-950);
}
.resource-link svg { width: 14px; height: 14px; transition: transform 0.3s; }
.resource-link:hover svg { transform: translateX(4px); }

/* -------- CTA block -------- */
.cta-block {
  background: var(--navy-950);
  color: var(--cream-50);
  padding: clamp(5rem, 10vw, 9rem) 0;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: "";
  position: absolute;
  top: -30%; right: -10%;
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(240,162,71,0.12), transparent 65%);
  pointer-events: none;
}
.cta-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 4rem;
  align-items: end;
  position: relative;
  z-index: 2;
}
@media (max-width: 860px) { .cta-inner { grid-template-columns: 1fr; gap: 2.5rem; } }
.cta-inner h2 {
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 300;
  max-width: 16ch;
}
.cta-inner h2 em { color: var(--accent); font-style: italic; }
.cta-inner .lead { color: var(--cream-200); margin-bottom: 2rem; }

/* -------- Footer -------- */
footer.site-footer {
  background: var(--navy-950);
  color: var(--cream-200);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--line-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.footer-brand {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--cream-50);
}
.footer-tag {
  color: var(--navy-300);
  max-width: 36ch;
  font-size: 0.95rem;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-400);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.footer-col a { font-size: 0.95rem; transition: color 0.2s; color: var(--cream-200); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-300);
}

/* -------- Program detail page -------- */
.prog-hero {
  background: var(--navy-950);
  color: var(--cream-50);
  padding: 10rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.prog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 20% 60%, black 15%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 20% 60%, black 15%, transparent 70%);
}
.prog-hero-inner { position: relative; z-index: 2; }
.prog-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line-dark);
}
@media (max-width: 860px) { .prog-stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
.prog-stat-num {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.6rem;
}
.prog-stat-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-300);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: clamp(2rem, 5vw, 6rem);
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 2rem; } }
.two-col h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 300; }
.two-col h2 em { color: var(--accent-deep); font-style: italic; }
.two-col-body p { font-size: 1.05rem; line-height: 1.7; margin-bottom: 1.25em; color: var(--ink); }

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 2rem;
}
@media (max-width: 700px) { .outcomes-grid { grid-template-columns: 1fr; } }
.outcome {
  background: var(--bg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.outcome-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
}
.outcome h4 { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; }
.outcome p { color: var(--muted); margin: 0; font-size: 0.95rem; }

.curriculum {
  background: var(--cream-100);
}
.module-list {
  display: grid;
  gap: 0;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}
.module {
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
@media (max-width: 700px) { .module { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.5rem 0; } }
.module-num {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.module h4 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.module p { color: var(--muted); margin: 0; }

/* -------- About page bits -------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 860px) { .values-grid { grid-template-columns: 1fr; } }
.value {
  background: var(--bg);
  padding: clamp(2rem, 3vw, 2.75rem);
  min-height: 260px;
  display: flex; flex-direction: column; gap: 1rem;
}
.value-num {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 300;
  font-style: italic;
  color: var(--accent);
  line-height: 1;
}
.value h4 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; }
.value p { color: var(--muted); margin-top: auto; }

/* -------- Reveal animation -------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 80ms); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* -------- Utility -------- */
.accent { color: var(--accent-deep); }
.accent em { font-style: italic; }
.divider {
  width: 40px; height: 2px; background: var(--accent);
  margin: 1rem 0;
}
.divider-center { margin: 1rem auto; }

/* Fancy entrance for hero */
.hero h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40%);
  animation: wordIn 0.9s var(--ease) forwards;
}
.hero h1 .word:nth-child(1) { animation-delay: 0.1s; }
.hero h1 .word:nth-child(2) { animation-delay: 0.2s; }
.hero h1 .word:nth-child(3) { animation-delay: 0.3s; }
.hero h1 .word:nth-child(4) { animation-delay: 0.4s; }
.hero h1 .word:nth-child(5) { animation-delay: 0.5s; }
@keyframes wordIn {
  to { opacity: 1; transform: translateY(0); }
}
.hero-sub, .hero-actions, .hero-meta {
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) forwards;
}
.hero-meta { animation-delay: 0s; }
.hero-sub { animation-delay: 0.6s; }
.hero-actions { animation-delay: 0.75s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
