/* ===========================================================================
   Truelines Education — styles (dark theme)
   Palette, fonts, and layout. Edit colors/fonts in :root below.
   =========================================================================== */

:root {
  /* Colors — LIGHT base. Dark bands (.theme-dark) invert these. */
  --bg: #f5f6f8;            /* light page background */
  --bg-soft: #ecebe5;       /* warm alt band */
  --surface: #ffffff;       /* cards / panels */
  --surface-2: #f1f3f7;     /* hovered / elevated surface */
  --border: rgba(20, 35, 63, 0.12);
  --border-2: rgba(20, 35, 63, 0.2);

  --text: #16233f;          /* deep navy ink text */
  --text-muted: rgba(22, 35, 63, 0.68);
  --text-dim: rgba(22, 35, 63, 0.48);

  --accent: #cf6234;        /* warm terracotta */
  --accent-600: #b9532b;
  --accent-700: #a8481f;    /* darker terracotta for accent text on light */
  --accent-soft: rgba(207, 98, 52, 0.12);

  --grid-line: rgba(20, 35, 63, 0.05);
  --shadow: rgba(20, 35, 63, 0.14);

  /* Type */
  --serif: 'Lora', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;

  --nav-height: 4.5rem;
  --maxw: 72rem;

  scroll-behavior: smooth;
}

/* Dark bands (hero, final CTA, footer) invert the palette via scoped vars. */
.theme-dark {
  --bg: #0e1d33;
  --bg-soft: #0b1830;
  --surface: #16294a;
  --surface-2: #1d3358;
  --border: rgba(244, 241, 234, 0.14);
  --border-2: rgba(244, 241, 234, 0.26);
  --text: #f4f1ea;
  --text-muted: rgba(244, 241, 234, 0.74);
  --text-dim: rgba(244, 241, 234, 0.5);
  --accent: #d2693b;
  --accent-600: #c25c31;
  --accent-700: #ed9266;
  --accent-soft: rgba(210, 105, 59, 0.16);
  --grid-line: rgba(244, 241, 234, 0.05);
  --shadow: rgba(0, 0, 0, 0.45);
  background-color: var(--bg);
  color: var(--text);
}

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

/* --- Reset-ish --- */
*, *::before, *::after { box-sizing: border-box; }
/* The hidden attribute must always win, even over component display rules. */
[hidden] { display: none !important; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 38px 38px, 38px 38px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}
h1, h2, h3 { margin: 0; }
p { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

section[id] { scroll-margin-top: var(--nav-height); }

/* Standalone pages (e.g. FAQ) start their content below the fixed nav. */
.subpage { padding-top: var(--nav-height); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
@media (min-width: 640px) {
  .wrap { padding-left: 2rem; padding-right: 2rem; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 60;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* ===========================================================================
   MOTION — reveal on scroll (added by script.js; gated on .js to avoid FOUC)
   =========================================================================== */
.js .reveal { opacity: 0; transform: translateY(20px); will-change: opacity, transform; }
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --- Shared bits --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-700);
}
.eyebrow--light { color: var(--accent-700); }
.accent-rule {
  display: inline-block;
  height: 1px;
  width: 3rem;
  background: var(--accent);
}

.section__title {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-size: clamp(1.85rem, 4vw, 3rem);
  margin-top: 1rem;
  color: var(--text);
}
.section__lead {
  margin-top: 1.25rem;
  max-width: 38rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-muted);
}
.section__lead--light { color: var(--text-muted); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.8rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s,
    transform 0.2s, box-shadow 0.2s;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px -8px rgba(210, 105, 59, 0.7);
}
.btn--primary:hover {
  background: var(--accent-600);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(210, 105, 59, 0.8);
}
.btn--secondary { border-color: var(--border-2); color: var(--text); }
.btn--secondary:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}
.btn--ghost-light { border-color: var(--border-2); color: var(--text); }
.btn--ghost-light:hover { border-color: var(--accent); background: var(--accent-soft); }

/* ===================== NAV (used on the FAQ page) ===================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
  /* Nav overlays the dark hero, so it uses light-on-dark colors. */
  --text: #f4f1ea;
  --text-muted: rgba(244, 241, 234, 0.74);
  --border: rgba(244, 241, 234, 0.16);
  --bg-soft: #0e1d33;
  --accent: #d2693b;
}
.nav.is-scrolled {
  background: rgba(11, 20, 34, 0.9);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(244, 241, 234, 0.14);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: var(--nav-height);
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 640px) { .nav__inner { padding: 0 2rem; } }
.nav__brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}
.nav__brand-mark { flex: none; display: block; }
.nav__brand::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  height: 1px; width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.nav__brand:hover::after { transform: scaleX(1); }

.nav__links { display: none; align-items: center; gap: 2rem; }
@media (min-width: 768px) { .nav__links { display: flex; } }
.nav__links a:not(.btn) {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__links a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  height: 1px; width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.nav__links a:not(.btn).is-active { color: var(--text); }
.nav__links a:not(.btn).is-active::after { transform: scaleX(1); }
.nav__cta { padding: 0.6rem 1.25rem; }

.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem; height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
}
@media (min-width: 768px) { .nav__toggle { display: none; } }
.nav__toggle-bar {
  display: block;
  height: 2px; width: 1.5rem;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.3s, opacity 0.2s;
}
.nav__toggle[aria-expanded='true'] .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded='true'] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded='true'] .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
@media (min-width: 768px) { .nav__mobile { display: none !important; } }
.nav__mobile a:not(.btn) {
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-muted);
}
.nav__mobile a:not(.btn).is-active,
.nav__mobile a:not(.btn):hover { background: rgba(244, 241, 234, 0.06); color: var(--text); }
.nav__mobile-cta { margin-top: 0.5rem; width: 100%; }

/* ===========================================================================
   SCROLL "THROUGH LINE" — jagged line + dot that follows scroll (left margin)
   =========================================================================== */
.scroll-line {
  position: fixed;
  top: 0;
  left: 10px;
  width: 40px;
  height: 100vh;
  z-index: 30;
  pointer-events: none;
}
.scroll-line__track {
  stroke: rgba(244, 241, 234, 0.14);
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.scroll-line__trail {
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.scroll-line__dot { fill: var(--accent); filter: drop-shadow(0 0 6px rgba(210, 105, 59, 0.8)); }
.scroll-line__halo { fill: rgba(210, 105, 59, 0.22); }
@media (max-width: 1279px) {
  .scroll-line { display: none; }
}

/* ===========================================================================
   HERO (dark, animated)
   =========================================================================== */
.hero { position: relative; overflow: hidden; }
.hero__glow {
  position: absolute;
  top: -18%;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 46rem;
  height: 46rem;
  max-width: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(210, 105, 59, 0.26), rgba(210, 105, 59, 0) 62%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}
/* Scrim: gently darkens the centre so hero text stays high-contrast. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(60% 55% at 50% 42%, rgba(11, 20, 34, 0.72), rgba(11, 20, 34, 0) 75%);
}
.hero__bg-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: hero-draw 2.4s 0.3s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.hero__bg-line--2 { stroke: rgba(244, 241, 234, 0.25); animation-delay: 0.6s; }
.hero__bg-line--3 { animation-delay: 0.9s; opacity: 0.6; }
@keyframes hero-draw { to { stroke-dashoffset: 0; } }

/* Typewriter background: a faint phrase that types/deletes behind the hero. */
.hero__type {
  margin-top: 1.1rem;
  min-height: 1.8em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 2.8vw, 1.6rem);
  color: var(--text-muted);
}
.hero__type-text { color: var(--text); }
.hero__type-cursor {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 0.08em;
  transform: translateY(0.12em);
  background: var(--accent);
  opacity: 0.85;
  animation: cursor-blink 1.05s steps(1) infinite;
}
@keyframes cursor-blink { 50% { opacity: 0; } }

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 60rem;
  margin: 0 auto;
  text-align: center;
  text-shadow: 0 1px 16px rgba(11, 20, 34, 0.6);
  padding-top: calc(var(--nav-height) + clamp(3rem, 10vh, 7rem));
  padding-bottom: 6.5rem;
}
@media (min-width: 640px) {
  .hero__inner { padding-bottom: 9rem; }
}
.hero__headline {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  color: var(--text);
}
.hero__subtitle {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-700);
}
.hero__scope { margin: 3.25rem auto 0; }
.hero__scope-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-dim);
}
.hero__pills {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  text-shadow: none;
}
.pill::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.hero__lede {
  margin: 2.25rem auto 0;
  max-width: 42rem;
  font-size: 1.2rem;
  line-height: 1.78;
  color: rgba(244, 241, 234, 0.94);
}
.hero__lede em { font-style: italic; color: var(--text); }
.hero__method {
  margin: 2.75rem auto 0;
  max-width: 42rem;
  padding: 1.85rem 1.75rem 2rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border);
  box-shadow: 0 24px 50px -28px var(--shadow);
}
.hero__method-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-700);
}
.hero__method-title {
  margin-top: 0.7rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--text);
}
.hero__method-body {
  margin: 0.7rem auto 0;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(244, 241, 234, 0.9);
}
.hero__cta { display: inline-flex; margin-top: 3.25rem; }

/* ===================== SERVICES (kept for reuse; not on the homepage now) ===================== */
.services .wrap { padding-top: 5rem; padding-bottom: 5rem; }
@media (min-width: 640px) { .services .wrap { padding-top: 7rem; padding-bottom: 7rem; } }
.services__grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services__grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  padding: 1.75rem;
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}
/* Academic catalog-style numeral in the card corner. */
.card__num {
  position: absolute;
  top: 1.35rem;
  right: 1.5rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-700);
  opacity: 0.65;
}
.card:hover {
  box-shadow: 0 24px 50px -24px var(--shadow);
  transform: translateY(-4px);
  border-color: var(--border-2);
}
.card--featured {
  border-color: rgba(210, 105, 59, 0.5);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.card__tag {
  align-self: flex-start;
  margin-bottom: 1rem;
  background: var(--accent-soft);
  color: var(--accent-700);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.card h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--text); }
.card__who { margin-top: 0.25rem; font-size: 0.875rem; font-weight: 500; color: var(--accent-700); }
.card__body { margin-top: 1rem; flex: 1; font-size: 0.9rem; line-height: 1.6; color: var(--text-muted); }
.card__cta {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s;
}
.card__cta:hover { color: var(--accent-700); }
.card__cta:hover span { transform: translateX(2px); }
.card__cta span { transition: transform 0.2s; }
.services__note {
  margin-top: 2.5rem;
  max-width: 38rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-dim);
}
.services__cta { margin-top: 2.75rem; }

/* ===================== FAQ ===================== */
.faq { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.faq__grid { padding-top: 5rem; padding-bottom: 5rem; display: grid; gap: 3rem; }
@media (min-width: 640px) { .faq__grid { padding-top: 7rem; padding-bottom: 7rem; } }
@media (min-width: 1024px) {
  .faq__grid { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; }
  .faq__intro { position: sticky; top: calc(var(--nav-height) + 2rem); align-self: start; }
}
.faq__intro .btn { margin-top: 1.75rem; }
.faq__list { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}
.faq__item summary:hover { color: var(--accent-700); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem; height: 1.5rem;
  margin-top: 0.15rem;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  color: var(--text-muted);
  transition: transform 0.3s, border-color 0.2s, color 0.2s;
}
.faq__item summary:hover::after { border-color: var(--accent); color: var(--accent-700); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p {
  max-width: 34rem;
  padding-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ===================== CONTACT ===================== */
.contact__grid { padding-top: 5rem; padding-bottom: 5rem; display: grid; gap: 3rem; }
@media (min-width: 640px) { .contact__grid { padding-top: 7rem; padding-bottom: 7rem; } }
@media (min-width: 1024px) {
  .contact__grid { gap: 3rem; }
}
.contact__sub {
  margin-top: 1rem;
  max-width: 32rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.contact__direct {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.contact__direct-item {
  width: fit-content;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.2s;
}
.contact__direct-item:hover { color: var(--accent-700); }

.contact__widget {
  width: 100%;
  min-width: 320px;
  height: 700px;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 24px 60px -30px var(--shadow);
}
/* Calendly's own iframe should fill the widget box. */
.contact__widget iframe { width: 100%; height: 100%; border: 0; }
.contact__widget:empty { display: none; }
.contact__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 420px;
  border: 1px dashed var(--border-2);
  border-radius: 1rem;
  background: var(--surface);
  padding: 2rem;
}
.contact__placeholder-title { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--text); }
.contact__placeholder-text { margin-top: 0.5rem; max-width: 24rem; font-size: 0.875rem; line-height: 1.6; color: var(--text-muted); }
.contact__placeholder .btn { margin-top: 1.5rem; }
.contact__placeholder code { background: rgba(244, 241, 234, 0.1); border-radius: 4px; padding: 0.1rem 0.35rem; font-size: 0.8rem; }
.contact__fallback {
  margin-top: 1rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface);
  padding: 1.25rem;
}
.contact__fallback p { font-size: 0.875rem; color: var(--text-muted); }
.contact__fallback .btn { margin-top: 0.75rem; }

/* ===================== FOOTER ===================== */
.footer { border-top: 1px solid var(--border); background: var(--bg-soft); }
.footer__inner {
  padding-top: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
@media (min-width: 768px) { .footer__inner { flex-direction: row; justify-content: space-between; align-items: flex-start; } }
.footer__brand { max-width: 24rem; }
.footer__brand-link { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; text-decoration: none; color: var(--text); }
.footer__brand-mark { flex: none; display: block; }
.footer__brand p { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.6; color: var(--text-muted); }
.footer__cols { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 640px) { .footer__cols { flex-direction: row; gap: 4rem; } }
.footer__heading { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; color: var(--text-dim); }
.footer__cols a { display: block; margin-top: 0.6rem; font-size: 0.875rem; font-weight: 500; text-decoration: none; color: var(--text-muted); transition: color 0.2s; }
.footer__cols a:hover { color: var(--accent-700); }
.footer__soon { display: block; margin-top: 0.6rem; font-size: 0.875rem; color: var(--text-dim); }
.footer__seal {
  display: flex;
  justify-content: center;
  padding-top: 3rem;
}
.footer__seal-text {
  font-family: var(--sans);
  font-size: 7.2px;
  font-weight: 600;
  letter-spacing: 2px;
  fill: var(--accent-700);
}
.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}
@media (min-width: 640px) { .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; } }

/* ===================== TESTIMONIALS (styles ready; section commented out in HTML) ===================== */
.testimonials { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.testimonials .wrap { padding-top: 5rem; padding-bottom: 5rem; }
.testimonials__grid { margin-top: 3rem; display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .testimonials__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .testimonials__grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 1rem; background: var(--surface); padding: 1.75rem; }
.testimonial__rule { height: 1px; width: 2.5rem; background: var(--accent); }
.testimonial blockquote { margin: 1rem 0 0; flex: 1; font-family: var(--serif); font-size: 1.125rem; line-height: 1.6; color: var(--text); }
.testimonial figcaption { margin-top: 1.25rem; font-size: 0.875rem; font-weight: 500; color: var(--text-muted); }

/* ===========================================================================
   HERO — staggered load animation (above the fold, so it plays on page load)
   =========================================================================== */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
.hero__headline,
.hero__subtitle,
.hero__lede,
.hero__scope,
.hero__cta {
  animation: fade-up 0.7s both cubic-bezier(0.22, 0.61, 0.36, 1);
}
.hero__headline { animation-delay: 0.05s; }
.hero__subtitle { animation-delay: 0.12s; }
.hero__lede { animation-delay: 0.2s; }
.hero__scope { animation-delay: 0.28s; }
.hero__cta { animation-delay: 0.4s; }

/* ===========================================================================
   Decorative academic icons — scattered, faint, behind content
   =========================================================================== */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.hero, .how, .services, .faq, .contact, .cta-band { position: relative; overflow: hidden; }
.how > .wrap, .services > .wrap, .faq > .wrap, .contact > .wrap { position: relative; z-index: 1; }
.deco {
  position: absolute;
  z-index: 0;
  display: block;
  pointer-events: none;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.11;
}
.deco--accent { stroke: var(--accent); opacity: 0.18; }
.deco--xl { opacity: 0.05; }
@media (max-width: 640px) { .deco { display: none; } }

/* Notebook-grid texture on the banded sections (adapts via --grid-line) */
.faq {
  background-color: var(--bg-soft);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 38px 38px, 38px 38px;
}
.footer {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 38px 38px, 38px 38px;
}

/* Dark hero band: own navy background + subtle top glow + grid */
.hero {
  background-color: var(--bg);
  background-image:
    radial-gradient(120% 85% at 50% -10%, rgba(60, 95, 150, 0.4) 0%, rgba(14, 29, 51, 0) 55%),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 100% 100%, 38px 38px, 38px 38px;
}

/* ===========================================================================
   "How it works" — numbered step flow (light section)
   =========================================================================== */
.how .wrap { padding-top: 5rem; padding-bottom: 5rem; }
@media (min-width: 640px) { .how .wrap { padding-top: 7rem; padding-bottom: 7rem; } }
.how__grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .how__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .how__grid { grid-template-columns: repeat(5, 1fr); } }
.step {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  padding: 1.5rem 1.35rem;
  box-shadow: 0 1px 2px var(--shadow);
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-700);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
}
.step__icon { width: 26px; height: 26px; stroke: var(--accent); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin: 1rem 0 0.6rem; }
.step h3 { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--text); }
.step p { margin-top: 0.5rem; font-size: 0.92rem; line-height: 1.6; color: var(--text-muted); }

/* ===========================================================================
   Final CTA banner (dark band)
   =========================================================================== */
.cta-band { position: relative; overflow: hidden; }
.cta-band .wrap {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  color: var(--text);
}
.cta-band p {
  margin: 1rem auto 0;
  max-width: 34rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.cta-band .btn { margin-top: 2rem; }
.cta-band__glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 40rem; height: 40rem;
  max-width: 100%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(210, 105, 59, 0.22), rgba(210, 105, 59, 0) 62%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}
.cta-band .wrap { position: relative; z-index: 1; }
