/* CCTM website styles */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  /* Brand: sampled from the CCTM logo swirl */
  --blue: oklch(0.544 0.109 243);
  --blue-text: oklch(0.46 0.11 246);
  --blue-deep: oklch(0.36 0.085 248);
  --blue-night: oklch(0.235 0.05 250);
  --blue-tint: oklch(0.955 0.018 243);
  --blue-wash: oklch(0.915 0.035 243);
  --sun: oklch(0.85 0.15 84);
  --sun-deep: oklch(0.78 0.16 75);

  --ink: oklch(0.2 0.018 250);
  --ink-soft: oklch(0.42 0.02 250);
  --bg: oklch(0.99 0.003 243);
  --white: oklch(1 0 0);
  --line: oklch(0.87 0.012 243);
  --error: oklch(0.5 0.19 27);
  --success: oklch(0.47 0.11 155);

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display-stretch: 72%;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.18vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --step-3: clamp(2rem, 1.55rem + 2vw, 3.25rem);
  --step-4: clamp(2.75rem, 1.7rem + 4.6vw, 5.75rem);

  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(4rem, 3rem + 5vw, 8rem);
  --radius: 6px;
  --focus: var(--blue-deep);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* z-index scale */
  --z-sticky: 20;
  --z-dropdown: 30;
  --z-modal: 50;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  font-stretch: var(--display-stretch);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a, button, summary, label { -webkit-tap-highlight-color: oklch(0.544 0.109 243 / 0.18); }

a { color: var(--blue-text); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: var(--z-modal);
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.on-blue { --focus: var(--white); color: var(--white); }
.on-blue a { color: var(--white); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.8rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform 0.25s var(--ease-out); }
@media (hover: hover) { .btn:hover .arrow { transform: translateX(4px); } }

.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: var(--sun-deep); }
.on-blue .btn-sun { color: var(--ink); }

.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--blue-deep); }

.btn-outline { border-color: currentColor; color: inherit; background: transparent; }
.btn-outline:hover { background: oklch(1 0 0 / 0.12); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: oklch(0.99 0.003 243 / 0.96);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header { background: oklch(0.99 0.003 243 / 0.85); backdrop-filter: blur(12px) saturate(1.4); }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.brand img { width: 44px; height: 44px; }
.brand-text { display: grid; line-height: 1.1; }
.brand-text strong {
  font-size: 1.45rem;
  font-weight: 800;
  font-stretch: var(--display-stretch);
  letter-spacing: 0.08em;
}
.brand-text span {
  font-size: 0.75rem;
  color: var(--ink-soft);
  max-width: 22ch;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav > a,
.nav-tracks > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0 0.85rem;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  cursor: pointer;
}
.nav > a:hover,
.nav-tracks > summary:hover,
.nav-tracks[open] > summary { background: var(--blue-tint); }
.nav > a[aria-current="page"] { color: var(--blue-text); }

.nav-tracks { position: relative; }
.nav-tracks > summary { list-style: none; }
.nav-tracks > summary::-webkit-details-marker { display: none; }
.nav-tracks > summary::after {
  content: "";
  width: 0.45em; height: 0.45em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s var(--ease-out);
}
.nav-tracks[open] > summary::after { transform: translateY(2px) rotate(-135deg); }

.nav-tracks ul {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: var(--z-dropdown);
  translate: -50% 0;
  width: 340px;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 40px -12px oklch(0.2 0.05 250 / 0.25);
  animation: drop-in 0.22s var(--ease-out);
}
.nav-tracks ul a {
  display: grid;
  gap: 0.1rem;
  padding: 0.65rem 0.8rem;
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.nav-tracks ul a span { font-weight: 400; font-size: var(--step--1); color: var(--ink-soft); }
.nav-tracks ul a:hover { background: var(--blue-tint); }
.nav-tracks ul a[aria-current="page"] { color: var(--blue-text); }

@keyframes drop-in {
  from { opacity: 0; transform: translateY(-6px); }
}

.menu-btn {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.menu-btn svg { width: 18px; height: 18px; }

.menu-dialog {
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--blue);
  color: var(--white);
  overflow-y: auto;
}
.menu-dialog::backdrop { background: oklch(0.2 0.05 250 / 0.4); }
.menu-dialog[open] { animation: menu-in 0.3s var(--ease-out); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-12px); } }

.menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
}
.menu-top img { width: 44px; height: 44px; }
.menu-close {
  min-height: 44px;
  padding: 0 1rem;
  border: 1.5px solid var(--white);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.menu-dialog nav { padding-block: 1rem 3rem; }
.menu-dialog ul { list-style: none; margin: 0; padding: 0; }
.menu-dialog li a {
  display: block;
  padding: 0.7rem 0;
  border-bottom: 1px solid oklch(1 0 0 / 0.25);
  color: var(--white);
  text-decoration: none;
  font-size: var(--step-2);
  font-weight: 800;
  font-stretch: var(--display-stretch);
}
.menu-dialog .menu-label {
  margin: 2rem 0 0.25rem;
  font-size: var(--step--1);
  font-weight: 600;
}
.menu-dialog .menu-tracks a { font-size: var(--step-1); font-weight: 700; }
.menu-dialog .btn { margin-top: 2rem; width: 100%; }

@media (max-width: 940px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .header-inner { min-height: 60px; }
  .brand img { width: 38px; height: 38px; }
  .brand-text strong { font-size: 1.3rem; }
  .site-header { background: var(--bg); backdrop-filter: none; }
  html { scroll-padding-top: 72px; }
}
@media (max-width: 420px) {
  .brand-text span { display: none; }
}

/* ---------- Home: hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  isolation: isolate;
}

/* Logo watermark: a CSS background so phones (where it is hidden) never download it */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(78vw, 820px);
  aspect-ratio: 1;
  left: -18%;
  bottom: -38%;
  background: url("../img/cctm-mark-white-512.webp") center / contain no-repeat;
  opacity: 0.1;
  animation: spin 120s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  padding-top: clamp(3rem, 2rem + 5vw, 6.5rem);
}

.hero-copy { padding-bottom: clamp(3rem, 2rem + 4vw, 6rem); }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.hero-kicker::before {
  content: "";
  width: 2.5rem;
  height: 2px;
  background: var(--sun);
}

.hero h1 {
  font-size: var(--step-4);
  line-height: 0.95;
  max-width: 13ch;
}
.hero h1 .line { display: block; }

.hero-lede {
  max-width: 46ch;
  margin-top: 1.75rem;
  font-size: var(--step-1);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.hero-photo {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
}
.hero-photo figure {
  margin: 0;
  width: 100%;
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 200px 200px 0 0;
}
.hero-photo figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.3rem 0.7rem;
  background: oklch(0.2 0.03 250 / 0.75);
  border-radius: 999px;
  font-size: var(--step--1);
}

.hero-tracks {
  position: relative;
  background: var(--blue-deep);
}
.hero-tracks .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding-block: 1.1rem;
}
.hero-tracks p { font-weight: 600; }
.hero-tracks ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-tracks a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0.95rem;
  border: 1px solid oklch(1 0 0 / 0.4);
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.hero-tracks a:hover { background: oklch(1 0 0 / 0.14); border-color: var(--white); }

/* load choreography */
.hero h1 .line,
.hero-lede,
.hero-actions,
.hero-kicker { animation: rise 0.9s var(--ease-out) both; }
.hero-kicker { animation-delay: 0.05s; }
.hero h1 .line:nth-child(1) { animation-delay: 0.12s; }
.hero h1 .line:nth-child(2) { animation-delay: 0.2s; }
.hero h1 .line:nth-child(3) { animation-delay: 0.28s; }
.hero-lede { animation-delay: 0.4s; }
.hero-actions { animation-delay: 0.5s; }
.hero-photo img { animation: unveil 1.2s var(--ease-out) 0.15s both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
}
@keyframes unveil {
  from { clip-path: inset(100% 0 0 0 round 200px 200px 0 0); }
  to { clip-path: inset(0 0 0 0 round 200px 200px 0 0); }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding-bottom: 2.5rem; }
  .hero-photo img { aspect-ratio: 5 / 4; border-radius: 160px 160px 0 0; }
  @keyframes unveil {
    from { clip-path: inset(100% 0 0 0 round 160px 160px 0 0); }
    to { clip-path: inset(0 0 0 0 round 160px 160px 0 0); }
  }
  .hero::before { display: none; }
  .hero-kicker { margin-bottom: 1rem; }
  .hero-actions { margin-top: 1.75rem; }
  .hero-actions .btn { flex: 1 1 auto; padding-inline: 1.1rem; }
  .hero-tracks .wrap { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0.6rem; padding-inline: 0; }
  .hero-tracks p { padding-inline: var(--gutter); }
  .hero-tracks ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--gutter);
    padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .hero-tracks ul::-webkit-scrollbar { display: none; }
  .hero-tracks li { flex: none; scroll-snap-align: start; }
  .hero-tracks a { min-height: 44px; }
}

/* ---------- Section scaffolding ---------- */

.section { padding-block: var(--section); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem 4rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--ink-soft); max-width: 52ch; }
@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; }
}

/* ---------- Home: vision ---------- */

.vision-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.vision-aside { position: sticky; top: 110px; }
.vision-aside h2 { font-size: var(--step-3); margin-bottom: 1.25rem; }
.vision-aside > p { color: var(--ink-soft); max-width: 40ch; }
.vision-aside img {
  margin-top: 2rem;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.vision-lead {
  font-size: var(--step-1);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.vision-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.vision-list li {
  padding-block: clamp(0.9rem, 0.7rem + 0.7vw, 1.35rem);
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.65rem, 1.25rem + 1.7vw, 2.75rem);
  text-wrap: balance;
  font-weight: 800;
  font-stretch: var(--display-stretch);
  line-height: 1.02;
}
.vision-list .every { color: var(--blue); }
.vision-close {
  margin-top: 1.75rem;
  font-size: var(--step-1);
  max-width: 44ch;
}

@media (max-width: 860px) {
  .vision-grid { grid-template-columns: 1fr; }
  .vision-aside { position: static; }
}

/* ---------- Home: track index ---------- */

.tracks { background: var(--blue-tint); }

.track-index {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}
.track-index li { border-bottom: 1px solid var(--line); }

.track-link {
  display: grid;
  grid-template-columns: 180px minmax(0, 1.4fr) minmax(0, 1fr) 48px;
  gap: 1.5rem 2.5rem;
  align-items: center;
  padding: 1.5rem 0;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.25s var(--ease-out);
}
.track-thumb {
  overflow: hidden;
  border-radius: var(--radius);
}
.track-thumb img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.track-main h3 {
  font-size: var(--step-2);
  margin-bottom: 0.4rem;
}
.track-main p { color: var(--ink-soft); }

.track-meta { margin: 0; display: grid; gap: 0.6rem; }
.track-meta div { display: grid; }
.track-meta dt { font-size: var(--step--1); color: var(--ink-soft); }
.track-meta dd { margin: 0; font-weight: 700; }

.track-arrow {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.35s var(--ease-out);
}
.track-arrow svg { width: 18px; height: 18px; }

@media (hover: hover) {
  .track-link:hover .track-thumb img { transform: scale(1.06); }
  .track-link:hover .track-arrow { background: var(--ink); color: var(--white); transform: translateX(4px); }
  .track-link:hover h3 { color: var(--blue-text); }
}
.track-link:active h3 { color: var(--blue-text); }

@media (max-width: 960px) {
  .track-link { grid-template-columns: 140px minmax(0, 1fr) 44px; }
  .track-meta { grid-column: 2; grid-row: 2; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
  .track-arrow { grid-column: 3; grid-row: 1 / span 2; width: 44px; height: 44px; }
  .track-thumb { grid-row: 1 / span 2; }
}
@media (max-width: 600px) {
  .track-link { grid-template-columns: 88px minmax(0, 1fr); gap: 0.5rem 1rem; padding: 1.15rem 0; align-items: start; }
  .track-thumb { grid-column: 1; grid-row: 1 / span 2; }
  .track-thumb img { aspect-ratio: 1; }
  .track-main { grid-column: 2; grid-row: 1; }
  .track-main h3 { font-size: var(--step-1); margin-bottom: 0.25rem; }
  .track-main p { font-size: var(--step--1); line-height: 1.45; }
  .track-meta { grid-column: 2; grid-row: 2; display: flex; flex-wrap: wrap; gap: 0 1rem; }
  .track-meta div { display: block; }
  .track-meta dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .track-meta dd { font-size: var(--step--1); }
  .track-meta div:first-child dd { color: var(--blue-text); }
  .track-arrow { display: none; }
}

/* ---------- Home: ways in ---------- */

.ways { background: var(--blue); }
.ways .section-head p { color: var(--white); }
.ways-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid oklch(1 0 0 / 0.45);
}
.ways-list li {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 2rem 2rem 0.5rem 0;
}
.ways-list li + li { padding-left: 2rem; border-left: 1px solid oklch(1 0 0 / 0.45); }
.ways-list h3 { font-size: var(--step-2); }
.ways-list p { max-width: 36ch; }
.ways-list a { margin-top: auto; font-weight: 700; }

@media (max-width: 860px) {
  .ways-list { grid-template-columns: 1fr; }
  .ways-list li, .ways-list li + li { padding: 1.75rem 0; border-left: 0; }
  .ways-list li + li { border-top: 1px solid oklch(1 0 0 / 0.45); }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--blue-night);
  color: oklch(0.92 0.015 243);
  padding-block: clamp(3.5rem, 3rem + 3vw, 5.5rem) 2rem;
  --focus: var(--white);
}
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}
.footer-brand img { width: 128px; margin-bottom: 1.25rem; }
.footer-brand p { max-width: 36ch; }
.site-footer h2 {
  font-size: var(--step-1);
  margin-bottom: 1rem;
  color: var(--white);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid oklch(1 0 0 / 0.18);
  font-size: var(--step--1);
  color: oklch(0.82 0.02 243);
}
.footer-bottom a { color: oklch(0.92 0.015 243); text-decoration: underline; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { gap: 2rem 1.5rem; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
}

/* ---------- Track page: hero ---------- */

.track-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(78vh, 720px);
  overflow: hidden;
  background: var(--blue-night);
  isolation: isolate;
}
.track-hero > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: settle 1.6s var(--ease-out) both;
}
.track-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, oklch(0.18 0.04 250 / 0.92) 0%, oklch(0.18 0.04 250 / 0.6) 40%, oklch(0.18 0.04 250 / 0.1) 75%),
    linear-gradient(to right, oklch(0.18 0.04 250 / 0.45), transparent 70%);
}
.track-hero .wrap { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  font-size: var(--step--1);
  font-weight: 600;
}
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.7; }

.track-hero h1 {
  font-size: var(--step-4);
  line-height: 0.95;
  max-width: 14ch;
  animation: rise 0.9s var(--ease-out) 0.1s both;
}
.track-hero .tagline {
  margin-top: 1.25rem;
  max-width: 40ch;
  font-size: var(--step-1);
  animation: rise 0.9s var(--ease-out) 0.22s both;
}

@media (max-width: 860px) {
  .track-hero { min-height: 62vh; min-height: 62svh; }
}

@keyframes settle {
  from { transform: scale(1.08); }
}

/* ---------- Track page: overview ---------- */

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.overview-lead {
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.35;
  max-width: 34ch;
}
.overview-lead + p {
  margin-top: 1.5rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

.facts {
  margin: 0;
  border-top: 2px solid var(--ink);
}
.facts > div {
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}
.facts dd { margin: 0; font-weight: 700; font-size: var(--step-1); line-height: 1.3; }
.facts .goal-figure {
  display: block;
  font-size: var(--step-3);
  font-weight: 800;
  font-stretch: var(--display-stretch);
  color: var(--blue);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.facts .goal-figure + .goal-figure { margin-top: 0.9rem; }
.facts .goal-text { display: block; font-size: var(--step-0); font-weight: 600; }
.facts + .btn { margin-top: 1.75rem; }

@media (max-width: 860px) {
  .overview-grid { grid-template-columns: 1fr; }
}

/* ---------- Track page: programmes ---------- */

.work { padding-top: 0; }
.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.work-media {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 1rem;
}
.work-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}
.work-media:has(img + img) img { aspect-ratio: 3 / 2; }
.work h2 { font-size: var(--step-3); margin-bottom: 2rem; }
.work-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.work-list li {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 0.5rem 2rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}
.work-list li:last-child { border-bottom: 1px solid var(--line); }
.work-list h3 { font-size: var(--step-1); font-stretch: 85%; line-height: 1.2; }
.work-list p { color: var(--ink-soft); }

@media (max-width: 860px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-media { position: static; }
  .work-media img { aspect-ratio: 3 / 2; }
}
@media (max-width: 560px) {
  .work-list li { grid-template-columns: 1fr; }
}

/* ---------- Track page: contact form ---------- */

.contact { background: var(--blue-tint); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.contact-intro h2 { font-size: var(--step-3); margin-bottom: 1.25rem; }
.contact-intro p { color: var(--ink-soft); max-width: 40ch; }
.contact-intro p + p { margin-top: 1rem; }
.contact-leader {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2rem;
}
.contact-leader .initials {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
  font-stretch: var(--display-stretch);
  font-size: 1.3rem;
}
.contact-leader strong { display: block; }
.contact-leader span { font-size: var(--step--1); color: var(--ink-soft); }

.track-form {
  padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem 1.25rem;
}
.field { display: grid; gap: 0.4rem; align-content: start; }
.field-full { grid-column: 1 / -1; }

.field label,
.field legend {
  font-weight: 700;
  font-size: 0.95rem;
}
.field .optional { font-weight: 400; color: var(--ink-soft); }
.field .hint { font-size: var(--step--1); color: var(--ink-soft); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid oklch(0.7 0.02 245);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: max(16px, 1rem);
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.field textarea { min-height: 130px; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23252c36' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}
.field input::placeholder,
.field textarea::placeholder { color: oklch(0.5 0.015 250); }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--ink-soft); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px oklch(0.544 0.109 243 / 0.3);
}
.field [aria-invalid="true"] { border-color: var(--error); }

.error-msg {
  display: none;
  color: var(--error);
  font-size: var(--step--1);
  font-weight: 600;
}
.error-msg.is-visible { display: block; }

fieldset.field {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.5rem;
  margin-top: 0.35rem;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.75rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  line-height: 1.35;
  transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}
.check:hover { border-color: var(--ink-soft); }
.check input {
  flex: none;
  width: 20px; height: 20px;
  min-height: 0;
  margin: 0.05rem 0 0;
  accent-color: var(--blue-deep);
}
.check:has(input:checked) { border-color: var(--blue); background: var(--blue-tint); }
.check:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.75rem;
}
.form-foot p { font-size: var(--step--1); color: var(--ink-soft); max-width: 34ch; }
.form-status { font-weight: 600; color: var(--error); }
.form-status:empty { display: none; }

.btn[disabled] { opacity: 0.7; cursor: progress; }

.form-success {
  padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  animation: rise 0.6s var(--ease-out) both;
}
.form-success:focus { outline: none; }
.form-success .tick {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--success);
  color: var(--white);
}
.form-success .tick svg { width: 26px; height: 26px; }
.form-success h3 { font-size: var(--step-2); margin-bottom: 0.75rem; }
.form-success p { color: var(--ink-soft); max-width: 46ch; }
.form-success .btn { margin-top: 1.5rem; }

@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
}

/* ---------- Track page: other tracks ---------- */

.more h2 { font-size: var(--step-2); margin-bottom: 1.5rem; }
.more-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.more-list a {
  display: grid;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.25;
}
.more-list .img {
  overflow: hidden;
  border-radius: var(--radius);
}
.more-list img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
@media (hover: hover) {
  .more-list a:hover img { transform: scale(1.06); }
  .more-list a:hover span { color: var(--blue-text); text-decoration: underline; }
}

@media (max-width: 960px) {
  .more-list {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(200px, 42%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.75rem;
  }
  .more-list li { scroll-snap-align: start; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
  .hero::before { animation: none; }
}
