/* MIMI. Colors come from John's logos: race blue, charcoal ink and steel grey. */
:root {
  --blue: #0060c4;
  --blue-deep: #004a98;
  --blue-light: #5aa2ee;
  --ink: #1e252d;
  --ink-2: #2b333d;
  --steel: #9aa6b0;
  --paper: #ffffff;
  --mist: #eef1f4;
  --text: #1e252d;
  --muted: #4a5561;
  --max: 1160px;
  --head: "Archivo", "Arial Narrow", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 10; }
.skip:focus { left: 10px; top: 10px; }

h1, h2, h3 {
  font-family: var(--head);
  font-style: italic;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.15rem; margin-bottom: 0.4em; }
p { margin: 0 0 1em; }

/* Header */
.top { background: var(--paper); border-bottom: 1px solid var(--mist); position: sticky; top: 0; z-index: 5; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand img { width: auto; height: 44px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--blue); }

/* The plate: a slanted racing-stripe bar with a checker tail, never a pill */
.plate {
  --cut: 14px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.85em calc(1.6em + 22px) 0.85em 1.5em;
  background: var(--blue);
  color: #fff !important;
  border: 0;
  font-family: var(--head);
  font-style: italic;
  font-weight: 800;
  font-stretch: 115%;
  font-variation-settings: "wdth" 115;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
  clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
  transition: background 0.15s ease;
}
.plate::after {
  content: "";
  position: absolute;
  right: calc(var(--cut) + 6px);
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%) skewX(-18deg);
  background: conic-gradient(#fff 0 25%, transparent 0 50%, #fff 0 75%, transparent 0) 0 0 / 8px 8px;
  opacity: 0.9;
}
.plate:hover { background: var(--blue-deep); }
.plate-sm { font-size: 0.85rem; padding: 0.6em calc(1.3em + 18px) 0.6em 1.2em; --cut: 10px; }
.plate-sm::after { width: 12px; height: 12px; background-size: 6px 6px; right: calc(var(--cut) + 5px); }

.textlink { font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.textlink.light { color: #fff; }
.textlink.light:hover { color: var(--blue-light); }

/* Hero */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 25, 31, 0.94) 0%, rgba(20, 25, 31, 0.82) 45%, rgba(20, 25, 31, 0.35) 100%); }
.hero-copy { position: relative; padding-top: clamp(64px, 11vw, 140px); padding-bottom: clamp(64px, 11vw, 140px); }
.hero-copy h1 { max-width: 17ch; }
.eyebrow { font-family: var(--head); font-style: italic; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; color: var(--blue-light); margin-bottom: 1.1em; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 40em; color: #dde3e9; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 1.6em; }

/* Bands */
section[id] { scroll-margin-top: 80px; }
.band { padding: clamp(56px, 8vw, 96px) 0; }
.band.dark { background: var(--ink); color: #e6eaee; }
.band.dark h2, .band.dark h3 { color: #fff; }
.band.dark a { color: var(--blue-light); }
.band.steel { background: var(--mist); }
.intro { font-size: 1.15rem; max-width: 42em; }
.band.dark .intro { color: #c9d0d7; }

/* Speed stripes from the logo: a charcoal and a blue bar that break into dashes */
.stripes { display: grid; gap: 5px; width: min(420px, 80%); margin-bottom: 22px; }
.stripes span {
  display: block;
  height: 7px;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent);
  mask-image: linear-gradient(90deg, #000 70%, transparent);
}
.stripes span:first-child { background: linear-gradient(90deg, var(--ink) 0 52%, transparent 52%), repeating-linear-gradient(90deg, var(--ink) 0 9px, transparent 9px 15px); }
.stripes span:last-child { background: linear-gradient(90deg, var(--blue) 0 46%, transparent 46%), repeating-linear-gradient(90deg, var(--blue) 0 7px, transparent 7px 15px); margin-left: 10px; }
.stripes.on-dark span:first-child { background: linear-gradient(90deg, var(--steel) 0 52%, transparent 52%), repeating-linear-gradient(90deg, var(--steel) 0 9px, transparent 9px 15px); }

/* What students learn */
.learn-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; margin-top: 36px; align-items: start; }
.tracks, .ways { list-style: none; margin: 0; padding: 0; counter-reset: track; }
.tracks li, .ways li { position: relative; padding: 22px 0 18px 46px; border-top: 1px solid rgba(154, 166, 176, 0.35); }
.tracks li:last-child, .ways li:last-child { border-bottom: 1px solid rgba(154, 166, 176, 0.35); }
.tracks li::before, .ways li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 27px;
  width: 22px;
  height: 22px;
  transform: skewX(-18deg);
  background: conic-gradient(var(--blue-light) 0 25%, transparent 0 50%, var(--blue-light) 0 75%, transparent 0) 0 0 / 11px 11px;
}
.tracks p, .ways p { margin: 0; color: #c9d0d7; }
.photos { display: grid; gap: 16px; position: sticky; top: 96px; }
.photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Get involved */
.involve-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 36px; align-items: start; }
.note { background: #fff; color: var(--text); padding: 28px; border-top: 6px solid var(--blue); }
.note h3 { color: var(--ink) !important; }
.note fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.note legend { font-weight: 700; margin-bottom: 6px; }
.note fieldset label { display: flex; align-items: center; gap: 10px; padding: 4px 0; cursor: pointer; }
.note input[type="radio"] { width: 18px; height: 18px; accent-color: var(--blue); margin: 0; }
.field { display: block; font-weight: 600; margin-bottom: 14px; }
.field input, .field textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  font: inherit;
  font-weight: 400;
  color: var(--text);
  background: #fff;
  border: 1px solid #b9c2ca;
  border-radius: 2px;
}
.field input:focus, .field textarea:focus { border-color: var(--blue); outline: 2px solid rgba(0, 96, 196, 0.25); }
.opt { font-weight: 400; color: var(--muted); font-size: 0.9em; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.hint { background: var(--mist); padding: 10px 12px; font-size: 0.95rem; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 12px 0 0; font-weight: 600; min-height: 1.5em; }
.status.ok { color: #116b2f; }
.status.err { color: #a12020; }
.fine { font-size: 0.85rem; color: var(--muted); margin: 6px 0 0; }

/* Footer */
.foot { background: #fff; border-top: 1px solid var(--mist); padding: 40px 0 48px; color: var(--muted); font-size: 0.95rem; }
.foot-row { display: flex; gap: 32px; align-items: center; }
.foot img { width: 200px; flex: none; }
.foot p { margin: 0 0 0.4em; }
.copy { font-size: 0.85rem; }

@media (max-width: 900px) {
  .learn-grid, .involve-grid { grid-template-columns: 1fr; }
  .photos { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .nav a:not(.plate) { display: none; }
  .brand img { height: 34px; }
  .top-row { min-height: 60px; }
  .hero-shade { background: linear-gradient(180deg, rgba(20, 25, 31, 0.78), rgba(20, 25, 31, 0.92)); }
  .two { grid-template-columns: 1fr; }
  .photos { grid-template-columns: 1fr; }
  .foot-row { flex-direction: column; align-items: flex-start; }
  .note { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
