/* ==========================================================================
   MT3 Academy — mt3academy.com
   Static single-page landing site. No external fonts, scripts or trackers.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --navy-950: #0C1220;
  --navy-900: #101C30;
  --navy-800: #14253D;
  --navy-700: #1F3452;
  --blue-600: #246BEB;
  --blue-700: #1A57C9;
  --cyan-500: #26C9DB;
  --cyan-700: #0E8FA0;
  --soft-white: #F6F9FC;
  --white: #FFFFFF;

  --ink: #0F1B2D;          /* headings on light */
  --text: #3A4A61;         /* body on light (≈ 8.9:1 on white) */
  --text-muted: #5A6A80;   /* secondary on light (≈ 5.6:1 on white) */
  --line: #E1E8F1;
  --line-strong: #CBD6E4;

  --on-dark: #F3F7FC;
  --on-dark-muted: #AEBCD0; /* ≈ 9.6:1 on navy-950 */

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --container: 1120px;
  --gutter: clamp(20px, 4vw, 32px);
  --section-y: clamp(64px, 8vw, 112px);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 20px;

  --shadow-card: 0 1px 2px rgba(15, 27, 45, 0.04), 0 8px 24px -12px rgba(15, 27, 45, 0.12);
  --shadow-media: 0 2px 6px rgba(12, 18, 32, 0.08), 0 30px 60px -28px rgba(12, 18, 32, 0.55);

  --focus: var(--blue-600);
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;      /* 17px */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }

h1, h2, h3 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.15;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem);
}

h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.012em;
}

p { text-wrap: pretty; }
p + p { margin-top: 1em; }

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

a { color: var(--blue-600); text-underline-offset: 0.18em; }

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

.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;
}

[role="list"] { list-style: none; padding: 0; }

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

.section { padding-block: var(--section-y); }
.section--white { background: var(--white); }
.section--soft {
  background: var(--soft-white);
  border-block: 1px solid var(--line);
}

.overline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--blue-700);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.overline::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-500));
}

.overline--dark { color: var(--cyan-500); }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head__intro {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* Two-column "heading left / text right" pattern */
.split {
  display: grid;
  gap: 28px;
}

.split__body { max-width: 640px; }

.split__lead {
  color: var(--ink);
  font-size: 1.1875rem;
  line-height: 1.6;
}

@media (min-width: 880px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 72px;
    align-items: start;
  }
  .split__head h2 { max-width: 15ch; }
}

/* ---------- 3.1 Header ---------- */
.site-header {
  background: var(--navy-950);
  color: var(--on-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 80px;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand__logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: none;
}

.brand__name {
  color: var(--white);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.brand__tagline {
  margin-top: 3px;
  color: var(--on-dark-muted);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  padding: 7px 14px;
  border: 1px solid rgba(38, 201, 219, 0.35);
  border-radius: 999px;
  background: rgba(38, 201, 219, 0.07);
  color: #CFEFF4;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.status-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan-500);
}

@media (max-width: 599px) {
  .site-header__inner {
    flex-wrap: wrap;
    row-gap: 12px;
  }
  .brand__logo { width: 46px; height: 46px; }
  .brand__name { font-size: 1.0625rem; }
  .brand__tagline { font-size: 0.75rem; }
  .status-badge { font-size: 0.75rem; padding: 6px 12px; }
}

/* ---------- 3.2 Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--soft-white);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(56px, 7vw, 104px);
}

/* Faint graph-paper texture, fading out towards the right. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(36, 107, 235, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(36, 107, 235, 0.055) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(105deg, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 80%);
  mask-image: linear-gradient(105deg, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 80%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero__title {
  max-width: 14ch;
  font-size: clamp(2.25rem, 1.55rem + 2.6vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.hero__lead {
  max-width: 34ch;
  margin-top: 24px;
  color: var(--ink);
  font-size: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.005em;
}

.hero__copy > p:not(.overline):not(.hero__lead) {
  max-width: 54ch;
}

.hero__lead + p { margin-top: 22px; }

.hero__media {
  position: relative;
}

.hero__image {
  width: 100%;
  aspect-ratio: 1448 / 1086;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-media);
  background: var(--navy-900);
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 64px;
  }
}

/* ---------- 3.3 The Problem ---------- */
.callout {
  position: relative;
  margin-top: 28px !important;
  padding: 22px 24px 22px 26px;
  border-radius: var(--radius-sm);
  background: var(--soft-white);
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.55;
  border: 1px solid var(--line);
}

.callout::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  bottom: -1px;
  width: 4px;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: linear-gradient(180deg, var(--blue-600), var(--cyan-500));
}

/* ---------- 3.4 Feature cards ---------- */
.feature-grid {
  display: grid;
  gap: 20px;
  margin: 0;
}

@media (min-width: 720px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

.feature-card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.feature-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.feature-card__icon {
  width: auto;
  height: 60px;
  max-width: 120px;
  object-fit: contain;
  object-position: left center;
}

.feature-card__icon--wide {
  width: 120px;
  height: 60px;
}

.feature-card__num {
  color: var(--blue-700);
  font-size: 0.875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(36, 107, 235, 0.08);
}

.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--text); }

/* ---------- 3.5 Personalisation in Practice ---------- */
.learner-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 760px) {
  .learner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

.learner-card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);         /* matches the icons' white JPEG ground */
  box-shadow: var(--shadow-card);
}

.learner-card__icon {
  width: 88px;
  height: 88px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 22px;
}

.learner-card__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.learner-card__tag {
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(14, 143, 160, 0.1);
  color: #0B6F7C;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
}

.learner-card__tag--b {
  background: rgba(36, 107, 235, 0.09);
  color: var(--blue-700);
}

/* Pathway captions (A → B → C) rendered as chips with arrow separators */
.learner-card > p { margin-bottom: 4px; }

.pathway {
  --chip-bg: #EAF6F8;
  --chip-line: #C4E6EB;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 0;
  margin: auto 0 0;
  padding-top: 24px;
}

.pathway--b {
  --chip-bg: #EEF3FE;
  --chip-line: #CEDCF8;
}

.pathway li {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}

/* the chip itself */
.pathway li {
  padding: 7px 12px;
  border: 1px solid var(--chip-line);
  border-radius: 999px;
  background: var(--chip-bg);
}

/* arrow between chips */
.pathway li + li {
  position: relative;
  margin-left: 30px;
}

.pathway li + li::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  background: no-repeat center / 16px 16px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2378889E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

/* Narrow cards: show the pathway as a vertical sequence instead of wrapping */
.learner-card { container-type: inline-size; }

@container (max-width: 470px) {
  .pathway {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .pathway li + li {
    margin-left: 0;
    margin-top: 26px;
  }
  .pathway li + li::before {
    left: 14px;
    top: -23px;
    transform: rotate(90deg);
  }
}

/* ---------- Learning cycle diagram ---------- */
.cycle {
  margin-top: clamp(40px, 5vw, 56px);
  padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(36, 107, 235, 0.05), transparent 60%),
    var(--soft-white);
}

.cycle__title {
  margin-bottom: clamp(28px, 4vw, 44px);
  text-align: center;
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
}

.cycle__diagram {
  position: relative;
  max-width: 920px;
  margin-inline: auto;
}

.cycle__steps {
  --node: 64px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
}

.cycle__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.cycle__node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--node);
  height: var(--node);
  border: 2px solid var(--step-color);
  border-radius: 50%;
  background: var(--white);
  color: var(--step-color);
  box-shadow: 0 6px 16px -8px rgba(15, 27, 45, 0.3);
}

.cycle__node svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cycle__label {
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.2;
}

.cycle__step--1 { --step-color: var(--navy-800); }
.cycle__step--2 { --step-color: #1E4FA6; }
.cycle__step--3 { --step-color: var(--blue-600); }
.cycle__step--4 { --step-color: #1784C4; }
.cycle__step--5 { --step-color: var(--cyan-700); }

/* Connector arrows between steps (desktop: horizontal) */
.cycle__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(var(--node) / 2 - 1px);
  left: calc(50% + var(--node) / 2 + 10px);
  right: calc(-50% + var(--node) / 2 + 14px);
  height: 2px;
  border-radius: 2px;
  background: var(--line-strong);
}

.cycle__step:not(:first-child)::before {
  content: "";
  position: absolute;
  top: calc(var(--node) / 2 - 6px);
  left: calc(50% - var(--node) / 2 - 13px);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid #9FB1C8;
}

/* Return path from Adapt back to Assess */
.cycle__loop {
  position: relative;
  height: 30px;
  margin: 14px 10% 0;
  border: 2px dashed #9FB1C8;
  border-top: 0;
  border-radius: 0 0 18px 18px;
}

.cycle__loop::before {
  content: "";
  position: absolute;
  top: -9px;
  left: -7px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 9px solid #9FB1C8;
}

/* Mobile: vertical flow, return path on the right */
@media (max-width: 679px) {
  .cycle__steps {
    --node: 54px;
    grid-template-columns: 1fr;
    row-gap: 30px;
  }

  .cycle__step {
    flex-direction: row;
    gap: 18px;
    text-align: left;
  }

  .cycle__step:not(:last-child)::after {
    top: calc(var(--node) + 6px);
    left: calc(var(--node) / 2 - 1px);
    right: auto;
    width: 2px;
    height: calc(30px - 12px - 8px);
  }

  .cycle__step:not(:first-child)::before {
    top: -14px;
    left: calc(var(--node) / 2 - 6px);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #9FB1C8;
    border-bottom: 0;
  }

  .cycle__loop {
    position: absolute;
    top: calc(54px / 2);
    bottom: calc(54px / 2);
    left: 58%;
    right: 4px;
    height: auto;
    margin: 0;
    border: 2px dashed #9FB1C8;
    border-left: 0;
    border-radius: 0 18px 18px 0;
  }

  .cycle__loop::before {
    top: -7px;
    left: -9px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 9px solid #9FB1C8;
    border-left: 0;
  }
}

/* ---------- 3.7 Founder ---------- */
.founder {
  display: grid;
  gap: 40px;
  align-items: center;
}

/* The supplied portrait is an elliptical cut-out with transparent corners.
   This frame shows the inscribed 4:5 region (source px x 274–1214,
   y 195–1370) so rounded corners never reveal the transparent edge. */
.founder__portrait {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: #C9C3BF;
  box-shadow: var(--shadow-media);
}

.founder__portrait img {
  position: absolute;
  top: -16.64%;
  left: -29.15%;
  width: 158.3%;
  max-width: none;
  height: auto;
}

.founder__role {
  margin-top: 8px;
  margin-bottom: 22px;
  color: var(--blue-700);
  font-weight: 600;
}

.founder__text { max-width: 620px; }

@media (min-width: 700px) {
  .founder {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 48px;
  }
}

@media (min-width: 960px) {
  .founder {
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 72px;
  }
}

@media (max-width: 699px) {
  .founder__portrait { max-width: 320px; }
}

/* ---------- 3.8 CTA ---------- */
.cta {
  --focus: var(--cyan-500);
  background: var(--navy-900);
  color: var(--on-dark-muted);
  text-align: center;
}

.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta h2 {
  max-width: 22ch;
  color: var(--white);
}

.cta__text {
  max-width: 56ch;
  margin-top: 18px;
  font-size: 1.125rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  margin-top: 34px;
  padding: 14px 28px;
  border-radius: 12px;
  background: var(--blue-600);
  color: var(--white);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  text-decoration: none;
  box-shadow: 0 10px 24px -12px rgba(36, 107, 235, 0.9);
}

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

.button__icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cta__email {
  margin-top: 18px !important;
  font-size: 1rem;
}

.cta__email a {
  display: inline-block;
  padding: 6px 2px;
  color: #8FE3EC;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(143, 227, 236, 0.4);
}

.cta__email a:hover { text-decoration-color: currentColor; }

/* ---------- 3.9 Footer ---------- */
.site-footer {
  --focus: var(--cyan-500);
  background: var(--navy-950);
  color: var(--on-dark-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-block: 44px 32px;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__brand {
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-footer__tagline {
  margin-top: 4px !important;
  font-size: 0.9375rem;
}

.social {
  display: flex;
  gap: 12px;
  margin: 0;
}

.social__link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: #C9D5E6;
}

.social__link:hover {
  border-color: rgba(38, 201, 219, 0.6);
  color: var(--white);
}

.social__link svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.site-footer__copy {
  margin-top: 24px;
  font-size: 0.875rem;
}

/* ---------- 404 page (scoped to body.page-404; homepage unaffected) ---------- */
.page-404 {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

.page-404 .notfound {
  flex: 1;
  display: flex;
  align-items: center;
  border-bottom: 0;
}

.page-404 .notfound__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-404 .notfound__title {
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.028em;
}

.page-404 .notfound__text {
  max-width: 46ch;
  margin-top: 18px;
  font-size: 1.125rem;
}

.page-404 .site-footer { padding-block: 28px; }
.page-404 .site-footer__copy { margin-top: 0; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .button,
  .social__link,
  .cta__email a {
    transition: background-color 0.18s ease, border-color 0.18s ease,
                color 0.18s ease, text-decoration-color 0.18s ease;
  }
}

/* ---------- Print ---------- */
@media print {
  .hero::before { display: none; }
  .site-header, .cta, .site-footer { background: #fff; color: #000; }
  .cta h2, .site-footer__brand, .brand__name { color: #000; }
}
