/* ==========================================================================
   SkillEsteem — design system
   Warm editorial B2B: petrol ink, paper, burnt orange, Instrument type
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --ink: #0b1c21;
  --ink-2: #123038;
  --paper: #f7f4ec;
  --paper-2: #efe9dd;
  --white: #ffffff;
  --accent: #f7752c;
  --accent-dark: #8a3f0e;
  --accent-soft: #f4e2cf;
  --muted: #56666a;
  --body: #3d4d51;
  --line: #e1dacb;
  --line-strong: #d3c9b6;
  --line-dark: rgba(247, 244, 236, 0.16);

  --radius-sm: 10px;
  --radius: 20px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px rgba(11, 28, 33, 0.04), 0 10px 30px -22px rgba(11, 28, 33, 0.35);
  --shadow: 0 30px 70px -45px rgba(11, 28, 33, 0.55);

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.25rem, 8vw, 7.5rem);

  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
}

/* 2. Reset ----------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

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

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

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
}

p { margin: 0; }

a { color: inherit; }

ul, ol { margin: 0; }

::selection { background: var(--accent); color: var(--paper); }

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

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

/* 3. Layout helpers -------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tint { background: var(--paper-2); border-block: 1px solid var(--line); }
.section--white { background: var(--white); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

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

.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.012em;
}

/* 4. Typography patterns --------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.25rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
}

.eyebrow--plain::before { display: none; }

.lede {
  font-size: clamp(1.05rem, 1.35vw, 1.195rem);
  line-height: 1.6;
  color: var(--body);
  max-width: 40rem;
  text-wrap: pretty;
}

.section-head {
  max-width: 54rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  color: var(--ink);
}
.section-head p.section-sub {
  margin-top: 1.1rem;
  color: var(--body);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  max-width: 46rem;
  text-wrap: pretty;
}
.section-head--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2.5rem;
  max-width: none;
  flex-wrap: wrap;
}
.section-head--row > div { max-width: 52rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.2rem;
  transition: color 0.2s, border-color 0.2s, gap 0.2s;
}
.text-link:hover {
  color: var(--accent-dark);
  border-color: var(--accent);
  gap: 0.7rem;
}
.text-link--accent { color: var(--accent-dark); border-color: rgba(138, 63, 14, 0.35); }

/* 5. Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--accent-dark); color: #fff; }

.btn--accent {
  background: var(--accent);
  color: #fff;
}
.btn--accent:hover { background: var(--accent-dark); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--ink); background: rgba(11, 28, 33, 0.04); }

.btn--light {
  background: var(--paper);
  color: var(--ink);
}
.btn--light:hover { background: #fff; }

.btn--sm { padding: 0.7rem 1.15rem; font-size: 0.88rem; }
.btn--lg { padding: 1.05rem 1.75rem; font-size: 1rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* 6. Header ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 244, 236, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 12px 30px -28px rgba(11, 28, 33, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img { height: 34px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}
.nav ul {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  padding: 0;
}
.nav a:not(.btn) {
  position: relative;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  opacity: 0.74;
  padding-block: 0.35rem;
  transition: opacity 0.2s;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.1rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s;
}
.nav a:not(.btn):hover { opacity: 1; }
.nav a:not(.btn):hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { opacity: 1; }

.nav .btn { display: none; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 7. Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto 45%;
  height: 80%;
  background: radial-gradient(50% 60% at 60% 30%, rgba(196, 102, 31, 0.13), transparent 70%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__title {
  font-size: clamp(2.5rem, 5.4vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -0.042em;
}
.hero__title span { display: block; }
.hero__title .serif { color: var(--accent-dark); font-size: 1.04em; }

.hero__lede {
  margin-top: 1.6rem;
  max-width: 35rem;
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.6;
  color: var(--body);
  text-wrap: pretty;
}

.hero__actions { margin-top: 2rem; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  list-style: none;
  padding-left: 0;
  font-size: 0.86rem;
  color: var(--muted);
}
.hero__facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.hero__facts li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero__media {
  position: relative;
  margin: 0;
  isolation: isolate;
}
.hero__media::before {
  content: "";
  position: absolute;
  inset: 1.5rem -1.25rem -1.25rem 1.5rem;
  border: 1px solid rgba(196, 102, 31, 0.45);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 57% 38%;
  border-radius: var(--radius-lg);
  filter: saturate(0.94) contrast(1.02);
}
.hero__badge {
  position: absolute;
  left: clamp(-1.5rem, -2vw, -0.75rem);
  bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  max-width: 17.5rem;
  padding: 1rem 1.15rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 16px;
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.8);
}
.hero__badge strong {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 2.35rem;
  line-height: 0.9;
  color: #e9a866;
  letter-spacing: -0.03em;
}
.hero__badge span {
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(247, 244, 236, 0.82);
}

/* 8. Credibility strip ----------------------------------------------------- */
.credibility {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}
.credibility__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.cred {
  padding: 2.25rem 1.75rem;
  border-left: 1px solid var(--line);
}
.cred:first-child { border-left: 0; padding-left: 0; }
.cred strong {
  display: block;
  font-size: clamp(1.45rem, 2.2vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.cred span {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 15rem;
}

/* 9. The gap --------------------------------------------------------------- */
.gap__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.gap__intro { position: sticky; top: 7rem; }
.gap__intro h2 { font-size: clamp(2rem, 3.7vw, 3.1rem); }
.gap__intro .lede { margin-top: 1.25rem; }
.gap__intro .btn-row { margin-top: 2rem; }

.gap__list { border-top: 1px solid var(--line); }
.gap__item {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}
.gap__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent-dark);
  padding-top: 0.15rem;
}
.gap__item--wide { grid-template-columns: 6.5rem 1fr; }
.gap__item--wide .gap__num {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-style: normal;
  letter-spacing: -0.03em;
}
.gap__item h3 {
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}
.gap__item p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--body);
  text-wrap: pretty;
}

/* 10. Cards / programmes --------------------------------------------------- */
.programme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.6rem, 3vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.card__kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.card h3 {
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  letter-spacing: -0.03em;
}
.card p {
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--body);
  text-wrap: pretty;
}
.card ul {
  display: grid;
  gap: 0.55rem;
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: var(--body);
}
.card li {
  position: relative;
  padding-left: 1.35rem;
  line-height: 1.45;
}
.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.card .card__link { margin-top: auto; padding-top: 1rem; }

/* 11. Module grid ---------------------------------------------------------- */
.modules {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.module {
  padding: 1.35rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.module__index {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent-dark);
}
.module h3 {
  font-size: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.module p {
  margin-top: 0.4rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--muted);
}

/* 12. Approach steps ------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.step {
  padding: 1.85rem 1.75rem 0 0;
}
.step + .step {
  padding-left: 1.75rem;
  border-left: 1px solid var(--line);
}
.step__num {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2rem;
  line-height: 1;
  color: var(--accent-dark);
}
.step h3 {
  margin-top: 0.85rem;
  font-size: 1.12rem;
}
.step p {
  margin-top: 0.45rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--body);
}

/* 13. Testimonial ---------------------------------------------------------- */
.quote {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding-block: var(--section-y);
}
.quote::before {
  content: "\201C";
  position: absolute;
  top: -6rem;
  right: 2rem;
  font-family: var(--font-serif);
  font-size: 26rem;
  line-height: 1;
  color: rgba(247, 244, 236, 0.05);
  pointer-events: none;
}
.quote__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.75fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
}
.quote__stars {
  display: block;
  margin-bottom: 1.35rem;
  color: #e9a866;
  font-size: 1rem;
  letter-spacing: 0.22em;
}
.quote blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.9vw, 2.3rem);
  line-height: 1.3;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}
.quote__person {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2rem;
}
.quote__person img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(247, 244, 236, 0.28);
}
.quote__person strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
}
.quote__person span {
  display: block;
  font-size: 0.84rem;
  color: rgba(247, 244, 236, 0.64);
}
.quote__side {
  padding-top: 0.5rem;
  border-top: 1px solid var(--line-dark);
}
.quote__side p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(247, 244, 236, 0.7);
  margin-bottom: 1.5rem;
}
.quote .btn--light:hover { background: var(--accent-soft); }

/* 14. Founder -------------------------------------------------------------- */
.founder {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.founder__media {
  position: relative;
  margin: 0;
  isolation: isolate;
}
.founder__media::before {
  content: "";
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 1px solid rgba(196, 102, 31, 0.4);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.founder__media img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  object-position: 55% 45%;
  border-radius: var(--radius-lg);
}
.founder h2 { font-size: clamp(1.95rem, 3.6vw, 2.95rem); }
.founder .lede { margin-top: 1.25rem; }
.founder p + p { margin-top: 1rem; }
.founder__body p {
  font-size: 1rem;
  color: var(--body);
  text-wrap: pretty;
}
.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
  padding: 0;
  list-style: none;
}
.credential {
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.79rem;
  font-weight: 500;
  color: var(--ink);
}
.founder .btn-row { margin-top: 1.9rem; }

/* 15. Evidence ------------------------------------------------------------- */
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.evidence {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: clamp(1.6rem, 2.6vw, 2.1rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.evidence__figure {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 3.2vw, 2.85rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.evidence__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.evidence p {
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--body);
  text-wrap: pretty;
}

/* 16. FAQ ------------------------------------------------------------------ */
.faq { max-width: 54rem; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.3rem 0;
}
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--accent-dark);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin: 0.8rem 3rem 0.2rem 0;
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--body);
  text-wrap: pretty;
}

/* 17. Contact -------------------------------------------------------------- */
.contact {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding-block: var(--section-y);
}
.contact::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 60%;
  background: radial-gradient(50% 60% at 50% 50%, rgba(196, 102, 31, 0.22), transparent 70%);
  pointer-events: none;
}
.contact__grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact .eyebrow { color: #e9a866; }
.contact h2 {
  font-size: clamp(2rem, 3.9vw, 3.2rem);
  color: var(--paper);
}
.contact h2 .serif { color: #e9a866; }
.contact .lede { color: rgba(247, 244, 236, 0.76); margin-top: 1.25rem; }
.contact__list {
  display: grid;
  gap: 0.9rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}
.contact__list span {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 244, 236, 0.5);
}
.contact__list a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 0.1rem;
  transition: border-color 0.2s, color 0.2s;
}
.contact__list a:hover { border-color: #e9a866; color: #e9a866; }

.form-card {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.75);
}
.form-card h3 {
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  margin-bottom: 0.35rem;
}
.form-card > p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.field label .req { color: var(--accent-dark); }
.field label .hint { color: var(--muted); font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  padding: 0.78rem 0.9rem;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 118px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #96a09f; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(11, 28, 33, 0.12);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #a32626;
  box-shadow: 0 0 0 3px rgba(163, 38, 38, 0.1);
}
.field__error {
  font-size: 0.78rem;
  color: #a32626;
}
.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.35rem;
}
.form-foot .btn { flex-shrink: 0; }
.form-note {
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 26rem;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.5;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-error {
  background: #fbe9e6;
  color: #7d1f1f;
  border: 1px solid #ecc8c2;
}
.form-status.is-success {
  background: #e8f1e6;
  color: #245021;
  border: 1px solid #c6ddc1;
}
.form-status a { font-weight: 600; }

/* 18. Interior page hero --------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(2.75rem, 6vw, 5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: -40% 55% auto -10%;
  height: 120%;
  background: radial-gradient(45% 45% at 50% 50%, rgba(196, 102, 31, 0.12), transparent 70%);
  pointer-events: none;
}
.page-hero h1 {
  position: relative;
  max-width: 20ch;
  font-size: clamp(2.25rem, 4.8vw, 3.85rem);
  line-height: 1.04;
}
.page-hero h1 .serif { color: var(--accent-dark); }
.page-hero .lede { position: relative; margin-top: 1.4rem; max-width: 42rem; }

/* 19. Content blocks ------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.split--wide-left { grid-template-columns: 1.15fr 0.85fr; }
.split h2 { font-size: clamp(1.85rem, 3.4vw, 2.85rem); }
.split h3 { font-size: 1.2rem; }

.text-stack > * + * { margin-top: 1rem; }
.text-stack p { color: var(--body); text-wrap: pretty; }

.pull {
  padding: 1.5rem 1.75rem;
  border-left: 2px solid var(--accent);
  background: var(--white);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--ink);
}

.checks {
  display: grid;
  gap: 0.7rem;
  padding: 0;
  list-style: none;
  margin-top: 1.5rem;
}
.checks li {
  position: relative;
  padding-left: 1.7rem;
  font-size: 0.97rem;
  color: var(--body);
  line-height: 1.55;
}
.checks li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-dark);
  font-weight: 700;
}

.media-frame {
  position: relative;
  margin: 0;
  isolation: isolate;
}
.media-frame img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
}
.media-frame figcaption {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.media-frame--arch img {
  aspect-ratio: 4 / 5;
  object-position: 60% 40%;
}

/* 20. CTA band ------------------------------------------------------------- */
.cta-band {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--accent-soft);
  border-block: 1px solid var(--line);
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  max-width: 26ch;
}
.cta-band p {
  margin-top: 0.7rem;
  color: var(--body);
  font-size: 0.98rem;
  max-width: 38rem;
}
.cta-band .btn-row { margin-top: 0; }

/* 21. Footer --------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(247, 244, 236, 0.72);
  padding: clamp(3rem, 5vw, 4.5rem) 0 1.75rem;
  border-top: 1px solid rgba(247, 244, 236, 0.1);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 0.65fr);
  gap: 2.5rem;
}
.footer__brand img { height: 30px; width: auto; }
.footer__brand p {
  margin-top: 1.15rem;
  max-width: 20rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(247, 244, 236, 0.62);
}
.footer__col h2,
.footer__col h3 {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(247, 244, 236, 0.48);
}
.footer__col ul {
  display: grid;
  gap: 0.6rem;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}
.footer__col a {
  color: rgba(247, 244, 236, 0.82);
  text-decoration: none;
  transition: color 0.2s;
}
.footer__col a:hover { color: #e9a866; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(247, 244, 236, 0.12);
  font-size: 0.78rem;
  color: rgba(247, 244, 236, 0.5);
}
.footer__bottom a { color: rgba(247, 244, 236, 0.72); text-decoration: none; }
.footer__bottom a:hover { color: #e9a866; }

/* 22. 404 ------------------------------------------------------------------ */
.notfound {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--section-y);
}
.notfound h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.notfound p { margin: 1rem auto 2rem; max-width: 34rem; color: var(--body); }

/* 23. Reveal animation ----------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* 24. Responsive ----------------------------------------------------------- */
@media (max-width: 1020px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.75rem; }
  .hero__media { max-width: 34rem; }
  .hero__media img { aspect-ratio: 5 / 4; object-position: 57% 32%; }
  .hero__badge { left: auto; right: 1rem; bottom: -1.25rem; }
  .hero::before { inset: -10% -20% auto 30%; }

  .gap__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .gap__intro { position: static; }

  .credibility__grid { grid-template-columns: repeat(2, 1fr); }
  .cred { padding: 1.9rem 1.5rem; }
  .cred:nth-child(odd) { border-left: 0; padding-left: 0; }
  .cred:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .founder { grid-template-columns: 1fr; }
  .founder__media { max-width: 30rem; }
  .founder__media img { aspect-ratio: 4 / 3.6; }

  .contact__grid { grid-template-columns: 1fr; }
  .quote__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .quote__side { max-width: 34rem; }

  .modules { grid-template-columns: repeat(2, 1fr); }
  .evidence-grid { grid-template-columns: 1fr 1fr; }
  .evidence:last-child { grid-column: 1 / -1; }

  .split { grid-template-columns: 1fr; }
  .split--wide-left { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 1rem var(--gutter) 1.75rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 50px -40px rgba(11, 28, 33, 0.6);
    max-height: calc(100dvh - 78px);
    overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav ul li { border-bottom: 1px solid var(--line); }
  .nav a:not(.btn) {
    display: block;
    padding: 0.95rem 0;
    font-size: 1.02rem;
  }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn {
    display: inline-flex;
    align-self: stretch;
    margin-top: 1.25rem;
  }
  .header-cta { display: none; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .hero { padding-top: 1.75rem; }
  .hero__badge {
    position: static;
    margin-top: 1rem;
    max-width: none;
    background: var(--ink);
  }
  .hero__media::before { inset: 1rem -0.6rem -0.9rem 1rem; }
  .cred { padding: 1.5rem 1rem; }
  .cred strong { font-size: 1.35rem; }
  .section-head--row { align-items: flex-start; }
  .programme-grid,
  .modules,
  .evidence-grid { grid-template-columns: 1fr; }
  .evidence:last-child { grid-column: auto; }
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .step {
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: 0 1rem;
    padding: 1.35rem 0;
    border-top: 1px solid var(--line);
  }
  .step + .step { padding-left: 0; border-left: 0; }
  .step__num { grid-row: 1 / 3; font-size: 1.6rem; padding-top: 0.1rem; }
  .step h3 { margin-top: 0; }
  .step p { grid-column: 2; }
  .form-grid { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .page-hero h1 { max-width: 24ch; }
  .quote::before { font-size: 16rem; top: -3rem; }
  .cta-band__inner { align-items: flex-start; }
}

@media (max-width: 460px) {
  .credibility__grid { grid-template-columns: 1fr; }
  .cred { border-left: 0; padding-left: 0; padding-right: 0; }
  .cred + .cred { border-top: 1px solid var(--line); }
  .hero__actions .btn { width: 100%; }
  .hero__facts { gap: 0.5rem 1rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .gap__item--wide { grid-template-columns: 1fr; gap: 0.6rem; }
}

/* 25. Print ---------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .contact, .nav-toggle { display: none; }
  body { background: #fff; color: #000; }
  .hero::before, .page-hero::before { display: none; }
  a { text-decoration: underline; }
}

/* Brand logo: retain readability on desktop and small screens. */
.brand img { height: auto; width: 195px; }
@media (max-width: 600px) { .brand img { width: 160px; } }

/* Focused training and practical resource pages. */
.training-links { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.5rem; }
.training-links h3 a { text-decoration:none; }
.training-links h3 a:hover { text-decoration:underline; }
.resource-breadcrumb { font-size:.9rem; margin-bottom:1.5rem; color:var(--body); }
.resource-article { max-width:850px; }
.resource-article section + section, .resource-related { margin-top:3rem; }
.resource-article h2 { font-size:clamp(1.6rem,3vw,2.3rem); line-height:1.15; margin-bottom:1.25rem; }
.resource-article p + p { margin-top:1rem; }
.resource-article p { max-width:70ch; }
.resource-article a { text-underline-offset:.2em; }
.resource-related { padding:2rem; background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); }
.resource-meta { margin-bottom:2rem; color:var(--muted); font-size:.95rem; }
@media(max-width:900px) { .training-links { grid-template-columns:1fr; } }
