:root {
  /* Testing Academy heritage colours lead the interface. */
  --ta-indigo: #2f2c6d;
  --ta-indigo-dark: #242153;
  --ta-blue: #5e9dd2;
  --ta-blue-dark: #397aad;
  --ta-soft: #eef4fa;

  /* CEREARK contributes the structural palette and restrained gold accent. */
  --navy: #0b1838;
  --navy-2: #111f43;
  --cereark-purple: #6a2c91;
  --purple: var(--ta-indigo);
  --purple-dark: var(--ta-indigo-dark);
  --purple-soft: var(--ta-soft);
  --gold: #c9931a;
  --gold-soft: #f7edcf;
  --green: #0b3d2e;
  --blue: #264a7d;
  --steel: #2e6a7d;
  --warm-white: #faf8f3;
  --white: #ffffff;
  --charcoal: #1a1a1a;
  --slate: #475569;
  --mid-grey: #9ca3af;
  --light-grey: #e5e7eb;
  --mist: #f4f5f7;
  --error: #a43838;
  --success: #0c6b4f;
  --shadow-sm: 0 10px 30px rgba(11, 24, 56, 0.08);
  --shadow-lg: 0 28px 70px rgba(11, 24, 56, 0.14);
  --radius-sm: 12px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --container: 1180px;
  --header-height: 82px;
  --font-display: "Avenir Next", Avenir, Inter, Arial, sans-serif;
  --font-body: Inter, Arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--warm-white);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--gold-soft); color: var(--navy); }
:focus-visible { outline: 3px solid rgba(201, 147, 26, .65); outline-offset: 3px; }

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 9999;
  background: var(--navy); color: white; padding: 12px 18px; border-radius: 8px;
}
.skip-link:focus { top: 16px; }

.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.container.narrow { max-width: 880px; }
.section { padding: 104px 0; }
.section-sm { padding: 72px 0; }
.section-dark { background: var(--navy); color: var(--white); }
.section-purple { background: var(--purple); color: var(--white); }
.section-white { background: var(--white); }
.section-mist { background: var(--mist); }
.section-rule { border-top: 1px solid rgba(71, 85, 105, .18); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--purple); font-size: .78rem; line-height: 1.2; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.section-dark .eyebrow, .section-purple .eyebrow { color: #e9d9f2; }
.section-dark .eyebrow::before, .section-purple .eyebrow::before { background: var(--gold); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display); color: var(--navy); line-height: 1.12; letter-spacing: -.025em; margin: 0;
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4,
.section-purple h1, .section-purple h2, .section-purple h3, .section-purple h4 { color: var(--white); }
h1 { font-size: clamp(2.75rem, 6vw, 5.35rem); }
h2 { font-size: clamp(2.05rem, 4vw, 3.55rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }
h4 { font-size: 1.06rem; letter-spacing: -.01em; }
p { margin: 0 0 1.2rem; }
.lead { color: var(--slate); font-size: clamp(1.08rem, 1.8vw, 1.3rem); line-height: 1.65; }
.section-dark .lead, .section-purple .lead { color: rgba(255,255,255,.78); }
.small { font-size: .9rem; }
.muted { color: var(--slate); }
.text-gold { color: var(--gold); }
.text-purple { color: var(--purple); }
.max-copy { max-width: 720px; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .max-copy { margin-inline: auto; }

.utility-bar { background: #071129; color: rgba(255,255,255,.78); font-size: .79rem; }
.utility-inner { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 20px; }
.utility-left, .utility-right { display: flex; align-items: center; gap: 20px; }
.utility-bar a:hover { color: white; }
.endorsed { display: inline-flex; align-items: center; gap: 8px; }
.endorsed strong { color: white; letter-spacing: .06em; }
.endorsed-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

.site-header {
  position: sticky; top: 0; z-index: 1000; background: rgba(250,248,243,.94);
  backdrop-filter: blur(18px); border-bottom: 1px solid rgba(71,85,105,.12);
}
.header-inner { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { flex: 0 0 auto; }
.brand img { width: 250px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 5px; }
.main-nav > a, .nav-dropdown > button {
  border: 0; background: transparent; color: var(--navy); padding: 12px 13px;
  border-radius: 9px; font-size: .93rem; font-weight: 650; white-space: nowrap;
}
.main-nav > a:hover, .main-nav > a.active, .nav-dropdown > button:hover { background: var(--purple-soft); color: var(--purple-dark); }
.nav-dropdown { position: relative; }
.nav-dropdown > button { display: inline-flex; align-items: center; gap: 6px; }
.nav-dropdown > button::after { content: ""; width: 6px; height: 6px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: -10px; width: 300px; padding: 12px;
  background: white; border: 1px solid rgba(71,85,105,.14); border-radius: 16px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .2s ease;
}
.nav-dropdown:hover .dropdown-menu, .nav-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 12px 14px; border-radius: 10px; }
.dropdown-menu a:hover { background: var(--purple-soft); }
.dropdown-menu strong { display: block; color: var(--navy); font-size: .92rem; }
.dropdown-menu span { color: var(--slate); font-size: .78rem; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.mobile-toggle { display: none; width: 44px; height: 44px; border: 1px solid rgba(71,85,105,.18); background: white; border-radius: 12px; color: var(--navy); align-items: center; justify-content: center; }
.mobile-toggle svg { width: 22px; height: 22px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 750; font-size: .94rem; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--purple); color: white; box-shadow: 0 12px 28px rgba(47,44,109,.23); }
.btn-primary:hover { background: var(--purple-dark); box-shadow: 0 16px 34px rgba(47,44,109,.30); }
.btn-secondary { background: var(--navy); color: white; box-shadow: 0 12px 28px rgba(11,24,56,.18); }
.btn-secondary:hover { background: #071129; }
.btn-gold { background: var(--gold); color: #151515; box-shadow: 0 12px 28px rgba(201,147,26,.2); }
.btn-gold:hover { background: #d5a32f; }
.btn-outline { border-color: rgba(11,24,56,.22); color: var(--navy); background: transparent; }
.btn-outline:hover { border-color: var(--purple); color: var(--purple); background: white; }
.btn-light { background: white; color: var(--navy); }
.btn-light:hover { background: var(--gold-soft); }
.btn-link { padding: 0; min-height: 0; color: var(--purple); border-radius: 0; }
.btn-link:hover { transform: none; color: var(--purple-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 28px; }

.hero { position: relative; overflow: hidden; background: var(--warm-white); padding: 86px 0 110px; }
.hero::before { content: ""; position: absolute; right: -190px; top: -210px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(94,157,210,.16), rgba(106,44,145,0) 68%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.06fr .94fr; align-items: center; gap: 60px; }
.hero h1 { max-width: 760px; }
.hero h1 .accent { color: var(--ta-blue-dark); }
.hero-copy .lead { max-width: 700px; margin-top: 26px; }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; filter: drop-shadow(0 25px 50px rgba(11,24,56,.1)); }
.hero-badge {
  position: absolute; right: -12px; bottom: 36px; width: 168px; padding: 16px 18px;
  background: white; border: 1px solid rgba(71,85,105,.14); border-radius: 16px; box-shadow: var(--shadow-lg);
}
.hero-badge strong { display: block; color: var(--navy); font-family: var(--font-display); font-size: 1rem; }
.hero-badge span { color: var(--slate); font-size: .78rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 16px 28px; margin-top: 32px; color: var(--slate); font-size: .9rem; }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof svg { width: 17px; height: 17px; color: var(--green); }

.proof-bar { background: var(--navy); color: white; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-item { padding: 28px 24px; border-right: 1px solid rgba(255,255,255,.12); }
.proof-item:last-child { border-right: 0; }
.proof-item strong { display: block; font-family: var(--font-display); font-size: 1.05rem; color: white; }
.proof-item span { color: rgba(255,255,255,.65); font-size: .82rem; }

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 48px; }
.section-heading > div:first-child { max-width: 760px; }
.section-heading p { max-width: 520px; color: var(--slate); margin-bottom: 0; }
.section-dark .section-heading p { color: rgba(255,255,255,.72); }

.route-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.route-card {
  position: relative; display: flex; flex-direction: column; min-height: 340px; padding: 30px;
  background: white; border: 1px solid rgba(71,85,105,.13); border-radius: var(--radius-md);
  box-shadow: 0 8px 26px rgba(11,24,56,.04); overflow: hidden; transition: .25s ease;
}
.route-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--purple); transform: scaleX(.25); transform-origin: left; transition: .25s ease; }
.route-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.route-card:hover::after { transform: scaleX(1); }
.route-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 15px; background: var(--purple-soft); color: var(--purple); margin-bottom: 42px; }
.route-icon svg { width: 26px; height: 26px; }
.route-card h3 { margin-bottom: 14px; }
.route-card p { color: var(--slate); font-size: .94rem; }
.route-card .btn-link { margin-top: auto; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.programme-card { display: flex; flex-direction: column; background: white; border: 1px solid rgba(71,85,105,.13); border-radius: var(--radius-md); overflow: hidden; min-height: 430px; transition: .25s ease; }
.programme-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.programme-top { min-height: 132px; padding: 28px; background: var(--navy); color: white; display: flex; justify-content: space-between; align-items: flex-start; }
.programme-top.purple { background: var(--ta-indigo); }
.programme-top.blue { background: var(--blue); }
.programme-top.green { background: var(--green); }
.programme-number { font-family: var(--font-display); font-size: 2.65rem; line-height: 1; font-weight: 750; opacity: .25; }
.programme-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); color: white; }
.programme-icon svg { width: 23px; height: 23px; }
.programme-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.programme-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tag { display: inline-flex; align-items: center; min-height: 27px; padding: 4px 10px; border-radius: 999px; background: var(--purple-soft); color: var(--purple-dark); font-size: .72rem; font-weight: 750; letter-spacing: .03em; text-transform: uppercase; }
.programme-body h3 { margin-bottom: 12px; }
.programme-body p { color: var(--slate); font-size: .93rem; }
.programme-body .btn-link { margin-top: auto; }

.method-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.method-copy { max-width: 560px; }
.method-steps { display: grid; gap: 13px; }
.method-step { display: grid; grid-template-columns: 58px 1fr; gap: 18px; padding: 22px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; }
.method-num { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--navy); font-family: var(--font-display); font-weight: 800; }
.method-step h3 { font-size: 1.08rem; margin: 2px 0 5px; }
.method-step p { margin: 0; color: rgba(255,255,255,.66); font-size: .9rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-card { background: white; border-radius: var(--radius-lg); padding: 42px; box-shadow: var(--shadow-lg); border: 1px solid rgba(71,85,105,.12); }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 24px; }
.metric { padding: 18px; border-radius: 14px; background: var(--mist); }
.metric strong { display: block; color: var(--navy); font-family: var(--font-display); font-size: 1.04rem; }
.metric span { color: var(--slate); font-size: .8rem; }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--slate); }
.check-list svg { width: 20px; height: 20px; color: var(--green); flex: 0 0 auto; margin-top: 3px; }
.section-dark .check-list li { color: rgba(255,255,255,.78); }
.section-dark .check-list svg { color: var(--gold); }

.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote-card { display: flex; flex-direction: column; padding: 30px; background: white; border: 1px solid rgba(71,85,105,.13); border-radius: var(--radius-md); min-height: 310px; }
.quote-mark { color: var(--gold); font-family: Georgia, serif; font-size: 4.5rem; line-height: .7; margin-bottom: 22px; }
.quote-card blockquote { margin: 0; color: var(--navy); font-family: var(--font-display); font-size: 1.08rem; line-height: 1.55; }
.quote-card footer { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--light-grey); color: var(--slate); font-size: .82rem; }

.cta-panel { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--ta-indigo) 0%, #35337c 58%, var(--navy) 100%); color: white; padding: 68px; }
.cta-panel::after { content: ""; position: absolute; width: 380px; height: 380px; border: 80px solid rgba(255,255,255,.06); border-radius: 50%; right: -110px; top: -155px; }
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel h2 { max-width: 820px; }
.cta-panel p { max-width: 680px; color: rgba(255,255,255,.78); font-size: 1.1rem; margin-top: 20px; }

.page-hero { padding: 78px 0 82px; background: linear-gradient(140deg, var(--navy) 0%, #101e42 62%, #172754 100%); color: white; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -240px; width: 500px; height: 500px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 920px; font-size: clamp(2.6rem, 5vw, 4.8rem); }
.page-hero .lead { max-width: 760px; margin-top: 24px; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: rgba(255,255,255,.58); font-size: .78rem; margin-bottom: 28px; }
.breadcrumb a:hover { color: white; }
.breadcrumb span::before { content: "/"; margin-right: 8px; color: rgba(255,255,255,.35); }

.subnav { position: sticky; top: calc(var(--header-height) + 36px); z-index: 50; background: white; border-bottom: 1px solid rgba(71,85,105,.14); box-shadow: 0 8px 24px rgba(11,24,56,.04); }
.subnav-inner { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a { flex: 0 0 auto; padding: 16px 14px 14px; color: var(--slate); font-size: .86rem; font-weight: 700; border-bottom: 3px solid transparent; }
.subnav a:hover { color: var(--purple); border-color: var(--purple); }

.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn { border: 1px solid rgba(71,85,105,.2); background: white; color: var(--slate); padding: 9px 14px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.filter-btn:hover, .filter-btn.active { background: var(--navy); color: white; border-color: var(--navy); }
.search-box { position: relative; width: min(320px, 100%); }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--mid-grey); }
.search-box input { width: 100%; height: 44px; border: 1px solid rgba(71,85,105,.2); border-radius: 999px; padding: 0 16px 0 42px; background: white; color: var(--navy); }
.hidden-card { display: none !important; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
.detail-main h2 { margin-top: 58px; margin-bottom: 20px; }
.detail-main h2:first-child { margin-top: 0; }
.detail-main h3 { margin: 34px 0 12px; }
.detail-main p { color: var(--slate); }
.detail-main ul:not(.check-list) { color: var(--slate); padding-left: 22px; }
.detail-main li { margin-bottom: 8px; }
.sidebar-card { position: sticky; top: 155px; background: white; border: 1px solid rgba(71,85,105,.14); border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-sm); }
.sidebar-card h3 { font-size: 1.25rem; margin-bottom: 18px; }
.sidebar-meta { display: grid; gap: 0; margin-bottom: 24px; }
.sidebar-meta div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--light-grey); }
.sidebar-meta span { color: var(--slate); font-size: .82rem; }
.sidebar-meta strong { color: var(--navy); font-size: .82rem; text-align: right; }
.sidebar-card .btn { width: 100%; margin-top: 10px; }
.note { padding: 20px 22px; background: var(--gold-soft); border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; color: #57420f; }

.timeline { position: relative; margin-top: 36px; }
.timeline::before { content: ""; position: absolute; left: 23px; top: 12px; bottom: 12px; width: 2px; background: var(--light-grey); }
.timeline-item { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding-bottom: 30px; }
.timeline-dot { width: 48px; height: 48px; border-radius: 50%; background: var(--purple); color: white; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; z-index: 1; }
.timeline-content { padding: 5px 0 0; }
.timeline-content h3 { margin-bottom: 7px; }
.timeline-content p { color: var(--slate); margin: 0; }

.table-wrap { overflow-x: auto; border: 1px solid rgba(71,85,105,.14); border-radius: 16px; background: white; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--light-grey); }
th { background: var(--navy); color: white; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
td { color: var(--slate); font-size: .9rem; }
tr:last-child td { border-bottom: 0; }

.accordion { display: grid; gap: 12px; margin-top: 32px; }
.accordion-item { border: 1px solid rgba(71,85,105,.16); border-radius: 14px; background: white; overflow: hidden; }
.accordion-button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 22px; border: 0; background: white; color: var(--navy); text-align: left; font-weight: 750; }
.accordion-button::after { content: "+"; color: var(--purple); font-size: 1.5rem; font-weight: 400; }
.accordion-item.open .accordion-button::after { content: "–"; }
.accordion-panel { display: none; padding: 0 22px 22px; color: var(--slate); }
.accordion-item.open .accordion-panel { display: block; }
.accordion-panel p:last-child { margin-bottom: 0; }

.insight-feature { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; background: white; border: 1px solid rgba(71,85,105,.13); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.insight-art { min-height: 420px; background: var(--navy); position: relative; display: grid; place-items: center; overflow: hidden; }
.insight-art::before, .insight-art::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.13); }
.insight-art::before { width: 310px; height: 310px; }
.insight-art::after { width: 470px; height: 470px; }
.insight-art-word { position: relative; z-index: 1; color: white; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.7rem); font-weight: 750; text-align: center; line-height: 1.05; }
.insight-art-word span { display: block; color: var(--gold); font-size: .34em; letter-spacing: .16em; margin-top: 14px; }
.insight-copy { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.insight-copy h2 { font-size: clamp(2rem, 3vw, 3rem); margin-bottom: 18px; }
.insight-copy p { color: var(--slate); }

.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 64px; align-items: start; }
.contact-details { display: grid; gap: 18px; margin-top: 34px; }
.contact-detail { display: grid; grid-template-columns: 48px 1fr; gap: 15px; align-items: start; }
.contact-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--purple-soft); color: var(--purple); }
.contact-icon svg { width: 22px; height: 22px; }
.contact-detail strong { display: block; color: var(--navy); }
.contact-detail a, .contact-detail span { color: var(--slate); font-size: .92rem; }
.form-card { padding: 38px; background: white; border: 1px solid rgba(71,85,105,.14); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: grid; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: var(--navy); font-size: .82rem; font-weight: 750; }
.form-field input, .form-field textarea, .form-field select { width: 100%; border: 1px solid rgba(71,85,105,.22); border-radius: 10px; background: #fff; color: var(--navy); padding: 13px 14px; }
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--purple); outline: 3px solid rgba(47,44,109,.10); }
.form-hint { color: var(--slate); font-size: .76rem; }
.form-error { display: none; color: var(--error); font-size: .76rem; }
.form-field.invalid .form-error { display: block; }
.form-field.invalid input, .form-field.invalid textarea, .form-field.invalid select { border-color: var(--error); }
.form-message { display: none; margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: #eaf6f1; color: var(--success); font-weight: 650; }
.form-message.show { display: block; }
.consent { display: flex; align-items: flex-start; gap: 10px; color: var(--slate); font-size: .8rem; }
.consent input { margin-top: 5px; }

.site-footer { background: #071129; color: rgba(255,255,255,.66); padding: 72px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 48px; }
.footer-brand img { width: 270px; margin-bottom: 24px; padding: 13px 15px; background: var(--warm-white); border-radius: 10px; }
.footer-brand p { max-width: 390px; font-size: .9rem; }
.cereark-lockup { display: inline-flex; flex-direction: column; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.cereark-lockup span:first-child { color: rgba(255,255,255,.52); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.cereark-lockup strong { color: white; letter-spacing: .09em; font-size: .88rem; }
.footer-col h4 { color: white; font-size: .88rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col a { display: block; padding: 5px 0; font-size: .85rem; }
.footer-col a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .76rem; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

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

@media (max-width: 1080px) {
  .main-nav > a, .nav-dropdown > button { padding-inline: 9px; font-size: .87rem; }
  .header-actions .btn { display: none; }
  .hero-grid { gap: 34px; }
  .route-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  :root { --header-height: 72px; }
  .section { padding: 82px 0; }
  .utility-right { display: none; }
  .utility-inner { justify-content: center; }
  .header-inner { min-height: var(--header-height); }
  .brand img { width: 224px; }
  .mobile-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: calc(36px + var(--header-height)) 0 0 0; display: block; padding: 24px 20px 60px;
    background: var(--warm-white); transform: translateX(100%); transition: transform .25s ease; overflow-y: auto;
  }
  body.nav-open .main-nav { transform: translateX(0); }
  .main-nav > a, .nav-dropdown > button { display: flex; width: 100%; justify-content: space-between; padding: 16px 10px; border-radius: 0; border-bottom: 1px solid rgba(71,85,105,.12); font-size: 1rem; }
  .dropdown-menu { position: static; width: auto; padding: 5px 0 12px 14px; box-shadow: none; border: 0; background: transparent; opacity: 1; visibility: visible; transform: none; display: none; }
  .nav-dropdown.mobile-open .dropdown-menu { display: block; }
  .dropdown-menu a { padding: 11px 8px; }
  .header-actions .btn { display: none; }
  .hero { padding-top: 66px; }
  .hero-grid, .method-grid, .split, .contact-grid, .insight-feature { grid-template-columns: 1fr; }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; max-width: 660px; margin-inline: auto; }
  .hero-badge { right: 6px; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-item:nth-child(2) { border-right: 0; }
  .proof-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .section-heading { display: block; }
  .section-heading p { margin-top: 18px; }
  .detail-layout { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col:last-child { grid-column: 2 / -1; }
  .subnav { top: calc(var(--header-height) + 36px); }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--container)); }
  .section { padding: 68px 0; }
  .section-sm { padding: 54px 0; }
  .utility-left { font-size: .72rem; }
  .utility-left > span:last-child { display: none; }
  .hero { padding: 54px 0 74px; }
  .hero h1 { font-size: clamp(2.45rem, 13vw, 3.6rem); }
  .hero-badge { position: static; width: auto; margin: -16px 18px 0; }
  .actions .btn { width: 100%; }
  .proof-grid, .route-grid, .card-grid, .quote-grid, .metric-grid, .footer-grid { grid-template-columns: 1fr; }
  .proof-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .proof-item:last-child { border-bottom: 0; }
  .route-card { min-height: 300px; }
  .programme-card { min-height: 0; }
  .cta-panel { padding: 42px 26px; border-radius: 24px; }
  .page-hero { padding: 58px 0 64px; }
  .page-hero h1 { font-size: clamp(2.35rem, 12vw, 3.5rem); }
  .filter-bar { display: grid; }
  .search-box { width: 100%; }
  .form-card { padding: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .insight-copy { padding: 30px; }
  .insight-art { min-height: 300px; }
  .split-card { padding: 28px; }
  .footer-col:last-child { grid-column: auto; }
  .footer-bottom { display: block; }
  .footer-links { margin-top: 12px; }
}


/* ================================================================
   Testing Academy heritage-brand alignment · v1.1
   The academy wordmark and blue/indigo equity lead. CEREARK appears
   through endorsement, structure, warm neutrals and antique-gold rules.
   ================================================================ */

.utility-bar {
  background: var(--ta-indigo-dark);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.endorsed strong { color: #ffffff; letter-spacing: .07em; }
.endorsed-dot { background: var(--ta-blue); box-shadow: 0 0 0 3px rgba(94,157,210,.16); }

.site-header { background: rgba(250,248,243,.97); }
.brand img { object-fit: contain; }
.main-nav > a:hover, .main-nav > a.active, .nav-dropdown > button:hover {
  background: rgba(94,157,210,.12); color: var(--ta-indigo);
}
.dropdown-menu a:hover { background: rgba(94,157,210,.11); }

.eyebrow { color: var(--ta-indigo); }
.eyebrow::before { background: var(--ta-blue); }
.section-dark .eyebrow::before, .section-purple .eyebrow::before { background: var(--gold); }

.btn-primary { background: var(--ta-indigo); box-shadow: 0 12px 28px rgba(47,44,109,.22); }
.btn-primary:hover { background: var(--ta-indigo-dark); box-shadow: 0 16px 34px rgba(47,44,109,.28); }
.btn-outline:hover { border-color: var(--ta-blue-dark); color: var(--ta-indigo); }
.btn-link { color: var(--ta-indigo); }
.btn-link:hover { color: var(--ta-blue-dark); }

.hero {
  background:
    linear-gradient(90deg, rgba(94,157,210,.05) 1px, transparent 1px),
    linear-gradient(rgba(94,157,210,.04) 1px, transparent 1px),
    var(--warm-white);
  background-size: 52px 52px;
}
.hero::before { background: radial-gradient(circle, rgba(94,157,210,.18), rgba(94,157,210,0) 68%); }
.hero-copy .eyebrow { color: var(--ta-indigo); }
.hero-badge { border-top: 4px solid var(--ta-blue); }
.hero-badge strong { color: var(--ta-indigo); }
.hero-proof svg { color: var(--ta-blue-dark); }

.proof-bar { background: linear-gradient(90deg, var(--ta-indigo-dark), var(--navy)); border-top: 3px solid var(--ta-blue); }
.route-card::after { background: linear-gradient(90deg, var(--ta-indigo), var(--ta-blue)); }
.route-icon { background: rgba(94,157,210,.13); color: var(--ta-indigo); }
.tag { background: rgba(94,157,210,.13); color: var(--ta-indigo); }
.programme-top { background: var(--ta-indigo); }
.programme-top.purple { background: linear-gradient(135deg, var(--ta-indigo), #46438b); }
.programme-top.blue { background: linear-gradient(135deg, var(--ta-blue-dark), #264A7D); }

.page-hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(94,157,210,.23), transparent 31%),
    linear-gradient(140deg, var(--ta-indigo-dark) 0%, var(--ta-indigo) 46%, var(--navy) 100%);
  border-bottom: 4px solid var(--ta-blue);
}
.page-hero::after { border-color: rgba(94,157,210,.20); }
.subnav a:hover { color: var(--ta-indigo); border-color: var(--ta-blue); }
.timeline-dot { background: var(--ta-indigo); box-shadow: inset 0 0 0 3px rgba(94,157,210,.34); }
.accordion-button::after { color: var(--ta-blue-dark); }
.contact-icon { background: rgba(94,157,210,.13); color: var(--ta-indigo); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--ta-blue-dark); outline-color: rgba(94,157,210,.18); }

.cereark-lockup { border-top-color: rgba(201,147,26,.34); }
.cereark-lockup span:first-child { color: rgba(255,255,255,.55); }
.cereark-lockup strong { color: var(--gold); }
.footer-brand img { box-shadow: 0 12px 28px rgba(0,0,0,.16); }

@media (max-width: 640px) {
  .brand img { width: 204px; }
  .utility-left { white-space: nowrap; }
  .footer-brand img { width: min(275px, 100%); }
}
