/* ═══════════════════════════════════════════════════════════════════════
   Karachi Cadet School — Homepage
   Loaded only by index.html, after styles.css. Other pages are untouched.
   Palette taken from the cadet uniform: khaki, beret crimson, gold insignia.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --khaki: #C4B183;
  --khaki-ink: #3A0000;
  --khaki-rule: rgba(58, 0, 0, 0.22);
  --jinnah-green: #1B4D35;
  --sash-angle: 2deg;
  --sash-drop: 3.49vw;   /* tan(2deg) x 100vw: keeps the hero's cut edge parallel to the sash */
  --sash-h: 60px;
  --scrim: 40, 4, 4;     /* rgb used for photo overlays */
}
[data-theme="dark"] {
  --khaki: #3B3426;
  --khaki-ink: #F1E6CC;
  --khaki-rule: rgba(241, 230, 204, 0.2);
}

/* ─── SHARED HOMEPAGE TYPE ───────────────────────────────────── */
.home h1, .home h2, .home h3,
.home-facts__fig, .path__mark strong { font-variant-numeric: lining-nums; }
.home-h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
  text-wrap: balance;
}
.home-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 60px); }
.home-head p,
.home-prose p {
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 36em;
}
.home-prose p + p { margin-top: 16px; }
.home-link {
  display: inline-block;
  font-weight: 700;
  color: var(--crimson);
  border-bottom: 2px solid var(--khaki);
  padding-bottom: 3px;
  transition: border-color 0.25s, color 0.25s;
}
.home-link:hover { border-bottom-color: var(--crimson); }
[data-theme="dark"] .home-link { color: var(--gold-light); }
[data-theme="dark"] .home-link:hover { border-bottom-color: var(--gold-light); }

.home a:focus-visible,
.home button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Photo caption laid over the bottom of a photo */
.cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 36px 14px 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.72) 100%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
}

/* ─── HERO ───────────────────────────────────────────────────── */
.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: clamp(560px, calc(100svh - 118px), 880px);
  padding: 0;
  background: var(--crimson-deep);
  color: #fff;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--sash-drop)), 0 100%);
}
.home-hero > .home-hero__media,
.home-hero > .home-hero__inner { grid-area: 1 / 1; }

.home-hero__media { position: relative; overflow: hidden; }
.home-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
  animation: heroSettle 1.8s var(--ease) both;
}
.home-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(var(--scrim), 0.9) 0%, rgba(var(--scrim), 0.55) 30%, rgba(var(--scrim), 0) 62%),
    linear-gradient(90deg, rgba(var(--scrim), 0.78) 0%, rgba(var(--scrim), 0.3) 44%, rgba(var(--scrim), 0) 70%);
}
.home-hero__caption {
  position: absolute;
  top: 18px;
  right: var(--pad-x);
  z-index: 2;
  padding: 5px 11px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.42);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.88);
}

.home-hero__inner {
  position: relative;
  z-index: 2;
  align-self: end;
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--pad-x));
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) var(--pad-x) calc(var(--sash-drop) + 64px);
}
.home-hero__title { animation: heroRise 0.9s var(--ease) 0.15s both; }
.home-hero__body { animation: heroRise 0.9s var(--ease) 0.32s both; }

.home-hero__kicker {
  font-weight: 600;
  font-size: 1rem;
  color: var(--gold-light);
  margin-bottom: 14px;
}
.home-hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.7rem, 7.2vw, 6.2rem);
  line-height: 0.94;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 26px;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.3);
}
.home-hero__lead {
  font-size: clamp(1.02rem, 1.35vw, 1.16rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  max-width: 33em;
  margin-bottom: 32px;
}
.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 16px;
}
.home-hero__call {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(232, 204, 122, 0.65);
  text-underline-offset: 5px;
  margin-left: 6px;
}
.home-hero__call:hover { color: #fff; text-decoration-color: var(--gold-light); }

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14.5px 26px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--r-sm);
  color: #fff;
  font-family: var(--font-slab);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.btn-wa svg { width: 20px; height: 20px; color: #25D366; flex: none; }
.btn-wa:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; transform: translateY(-2px); }

@keyframes heroSettle { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes heroRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ─── SASH (the diagonal band, after the cadets' red sash) ──── */
.sash {
  position: relative;
  z-index: 4;
  height: var(--sash-h);
  margin-top: calc(var(--sash-drop) / -2);
  pointer-events: none;
}
.sash__band {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 40px);
  background: var(--crimson);
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 12px 26px rgba(58, 0, 0, 0.22);
  transform: skewY(calc(-1 * var(--sash-angle)));
}
[data-theme="dark"] .sash__band { background: var(--crimson-dark); }
.sash__text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(0.98rem, 1.8vw, 1.45rem);
  color: var(--gold-light);
  white-space: nowrap;
}
.sash__badge {
  flex: none;
  width: calc(var(--sash-h) + 28px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #FBF8F2;
  border: 3px solid var(--gold);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  display: grid;
  place-items: center;
}
.sash__badge img { width: 80%; height: auto; }

/* ─── INTRO ─────────────────────────────────────────────────── */
.home-intro { padding-top: clamp(84px, 10vw, 128px); }
.home-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.home-intro__text .home-link { margin-top: 30px; }
.home-intro__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-md);
}
.home-intro__photo figcaption {
  margin-top: 12px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* ─── FACTS (khaki band) ────────────────────────────────────── */
.home-facts {
  background: var(--khaki);
  padding: clamp(36px, 5vw, 56px) var(--pad-x);
}
.home-facts__list {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.home-facts__item {
  padding: 4px clamp(16px, 2.4vw, 32px);
  border-left: 1px solid var(--khaki-rule);
}
.home-facts__item:first-child { border-left: 0; padding-left: 0; }
.home-facts__fig {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.1rem, 3.8vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--crimson);
}
[data-theme="dark"] .home-facts__fig { color: var(--gold-light); }
.home-facts__txt {
  display: block;
  margin-top: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--khaki-ink);
  max-width: 22em;
}

/* ─── PATHWAY: Pre-Nursery to O'Level ───────────────────────── */
.home-path { background: var(--bg-elev); }
.path {
  position: relative;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 clamp(18px, 2vw, 28px);
}
.path::before {               /* the line the stages march along */
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 7px;
  height: 2px;
  background: var(--khaki);
}
.path__stage { position: relative; padding-top: 34px; }
.path__stage::before {        /* a marker on the line for each stage */
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 0 5px var(--bg-elev);
}
.path__mark {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 18px;
}
.path__mark small {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.path__mark strong {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 3.1vw, 2.9rem);
  line-height: 1;
  color: var(--crimson);
}
[data-theme="dark"] .path__mark strong { color: var(--gold-light); }
.path__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-sm);
}
.path__stage h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.22rem;
  line-height: 1.2;
  color: var(--text);
  margin: 18px 0 8px;
}
.path__stage p {
  font-size: 0.94rem;
  line-height: 1.62;
  color: var(--text-muted);
}

.path-extras {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(56px, 7vw, 88px);
  padding-top: clamp(32px, 4vw, 44px);
  border-top: 2px solid var(--khaki);
}
.path-extras h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 8px;
}
.path-extras p { font-size: 0.94rem; line-height: 1.62; color: var(--text-muted); }
.home-path__more { margin-top: clamp(36px, 5vw, 52px); }

/* ─── CADET TRAINING (dark) ─────────────────────────────────── */
.home-cadet { background: var(--crimson-deep); color: #fff; }
.home-cadet__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.home-cadet .home-h2 { color: #fff; }
.home-cadet__text > p {
  font-size: 1.06rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  max-width: 34em;
}
.drill-list {
  columns: 2;
  column-gap: 32px;
  margin: 28px 0 36px;
}
.drill-list li {
  break-inside: avoid;
  position: relative;
  padding: 10px 0 10px 26px;
  border-bottom: 1px solid rgba(232, 204, 122, 0.18);
  color: rgba(255, 255, 255, 0.94);
  font-weight: 500;
  line-height: 1.4;
}
.drill-list li::before {      /* rank chevron */
  content: '';
  position: absolute;
  left: 3px;
  top: 1.05em;
  width: 9px; height: 9px;
  border-left: 2.5px solid var(--gold);
  border-top: 2.5px solid var(--gold);
  transform: rotate(45deg);
}
.home-cadet__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  aspect-ratio: 5 / 6;
}
.home-cadet__photos figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-sm);
  min-height: 0;
}
.home-cadet__photos .tall { grid-row: span 2; }
.home-cadet__photos img { width: 100%; height: 100%; object-fit: cover; }

/* ─── ENDORSEMENTS ──────────────────────────────────────────── */
.endorse-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 56px) clamp(32px, 5vw, 72px);
}
.endorse { border-top: 1px solid var(--border-strong); padding-top: 24px; }
.ribbon {               /* service ribbon: army, air force, navy */
  display: block;
  width: 46px; height: 12px;
  margin-bottom: 20px;
  border-radius: 1px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.28);
}
.ribbon--army { background: linear-gradient(90deg, #2C4A2E 0 32%, var(--gold) 32% 38%, #2C4A2E 38% 62%, var(--gold) 62% 68%, #2C4A2E 68%); }
.ribbon--air  { background: linear-gradient(90deg, #1E3F73 0 30%, #8DB6E2 30% 70%, #1E3F73 70%); }
.ribbon--navy { background: linear-gradient(90deg, #14244A 0 40%, #FFFFFF 40% 60%, #14244A 60%); }
.endorse blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.12rem, 1.6vw, 1.32rem);
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 16px;
}
.endorse figcaption strong { display: block; color: var(--crimson); font-weight: 700; }
[data-theme="dark"] .endorse figcaption strong { color: var(--gold-light); }
.endorse figcaption span { font-size: 0.9rem; color: var(--text-muted); }

/* ─── HOUSES & AWARDS ───────────────────────────────────────── */
.home-houses { background: var(--bg-elev); }
.home-houses__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}
.guidons { display: flex; gap: 18px; margin-top: 32px; max-width: 520px; }
.guidon {               /* house colours cut like a guidon flag */
  flex: 1;
  color: #fff;
  padding: 26px 22px 52px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 24px), 0 100%);
}
.guidon--jinnah { background: var(--jinnah-green); }
.guidon--iqbal { background: var(--crimson); }
.guidon__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.2;
}
.guidon__sub { display: block; margin-top: 6px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.78); }
.awards-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 10px;
}
.awards li {
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  line-height: 1.5;
}
.awards strong { color: var(--text); font-weight: 700; }

/* ─── FOUNDER ───────────────────────────────────────────────── */
.home-founder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: clamp(440px, 46vw, 640px);
  padding: 0;
  background: var(--bg-charcoal);
  color: #fff;
}
.home-founder__photo { position: relative; overflow: hidden; }
.home-founder__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}
.home-founder__quote {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 7vw, 110px) var(--pad-x);
}
.home-founder blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.55rem);
  line-height: 1.3;
  max-width: 15em;
  margin-bottom: 30px;
}
.home-founder__cite { padding-top: 18px; border-top: 2px solid var(--gold); align-self: flex-start; }
.home-founder__cite strong { display: block; color: var(--gold-light); font-weight: 700; }
.home-founder__cite span { font-size: 0.92rem; color: rgba(255, 255, 255, 0.62); }

/* ─── LIFE AT KCS ───────────────────────────────────────────── */
.home-head--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  max-width: none;
}
.home-head--row > div { max-width: 640px; }
.home-head--row .home-link { flex: none; margin-bottom: 6px; }
.life-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(200px, 21vw, 280px);
  gap: 14px;
}
.life-grid .wide { grid-column: span 2; }
.life-grid figure {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: var(--r-sm);
}
.life-grid img { width: 100%; height: 100%; object-fit: cover; }

/* ─── ADMISSIONS ────────────────────────────────────────────── */
.home-admit { background: var(--crimson); color: #fff; }
[data-theme="dark"] .home-admit { background: var(--crimson-dark); }
.home-admit__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.home-admit .home-h2 { color: #fff; }
.home-admit__lead {
  font-size: 1.06rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  max-width: 34em;
}
.admit-actions { display: grid; gap: 12px; margin: 30px 0 28px; max-width: 470px; }
.admit-action {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 20px;
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(232, 204, 122, 0.35);
  font-weight: 700;
  line-height: 1.3;
  transition: background 0.2s, border-color 0.2s;
}
.admit-action:hover { background: rgba(0, 0, 0, 0.3); border-color: var(--gold); }
.admit-action svg { width: 24px; height: 24px; flex: none; color: var(--gold-light); }
.admit-action small { display: block; font-weight: 400; font-size: 0.88rem; color: rgba(255, 255, 255, 0.75); }
.admit-action--primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-color: var(--gold);
  color: var(--crimson-deep);
}
.admit-action--primary svg { color: var(--crimson-deep); }
.admit-action--primary small { color: rgba(58, 0, 0, 0.75); }
.admit-action--primary:hover { background: linear-gradient(135deg, #F0D88E, var(--gold-light)); }
.admit-visit { font-size: 0.94rem; line-height: 1.65; color: rgba(255, 255, 255, 0.8); max-width: 34em; }
.admit-visit a { color: var(--gold-light); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.home-admit__photo { position: relative; }
.home-admit__photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 3px solid rgba(232, 204, 122, 0.55);
}
.home-admit__photo figcaption { margin-top: 12px; font-size: 0.86rem; color: rgba(255, 255, 255, 0.72); }

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1099px) {
  .path { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-left: 40px; }
  .path::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
  .path__stage {
    padding-top: 0;
    display: grid;
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "photo mark" "photo title" "photo text";
    column-gap: 32px;
  }
  .path__stage::before { left: -40px; top: 10px; }
  .path__mark { grid-area: mark; }
  .path__photo { grid-area: photo; }
  .path__stage h3 { grid-area: title; margin-top: 0; }
  .path__stage p { grid-area: text; max-width: 34em; }
  .path__photo img { aspect-ratio: 4 / 3; }
  .path-extras { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 1024px) {
  .home-intro__grid,
  .home-cadet__grid,
  .home-houses__grid,
  .home-admit__grid { grid-template-columns: minmax(0, 1fr); }
  .home-intro__photo { max-width: 560px; }
  .home-intro__photo img { aspect-ratio: 4 / 3; }
  .home-cadet__photos { aspect-ratio: 4 / 3; }
  .home-founder { grid-template-columns: minmax(0, 1fr); }
  .home-founder__photo { aspect-ratio: 16 / 10; }
  .home-admit__photo { max-width: 560px; }
  .home-facts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .home-facts__item:nth-child(3) { border-left: 0; padding-left: 0; }
}

@media (max-width: 699px) {
  :root { --sash-h: 46px; }

  /* Hero: photo on top, title laid over its foot, the rest below */
  .home-hero { min-height: 0; grid-template-rows: auto auto; }
  .home-hero__media { grid-area: 1 / 1; aspect-ratio: 4 / 5; max-height: 74svh; }
  .home-hero__media::after {
    background: linear-gradient(0deg, rgba(58, 0, 0, 1) 0%, rgba(58, 0, 0, 0.72) 24%, rgba(58, 0, 0, 0) 52%);
  }
  .home-hero__inner { display: contents; }
  .home-hero__title {
    grid-area: 1 / 1;
    align-self: end;
    position: relative;
    z-index: 2;
    padding: 0 var(--pad-x) 14px;
  }
  .home-hero__body {
    grid-area: 2 / 1;
    position: relative;
    z-index: 2;
    padding: 6px var(--pad-x) calc(var(--sash-drop) + 44px);
  }
  .home-hero__caption { top: 12px; right: 12px; font-size: 0.72rem; padding: 4px 9px; }
  .home-hero h1 { margin-bottom: 4px; }
  .home-hero__actions .btn-gold,
  .home-hero__actions .btn-wa { flex: 1 1 100%; justify-content: center; text-align: center; }
  .home-hero__call { margin: 4px auto 0; }

  .sash__badge { width: 62px; }

  .home-facts__fig { font-size: 2rem; }
  .home-facts__txt { font-size: 0.9rem; }

  .path { padding-left: 30px; gap: 40px; }
  .path::before { left: 7px; }
  .path__stage { display: block; }
  .path__stage::before { left: -30px; top: 8px; }
  .path__mark { margin-bottom: 14px; }
  .path__stage h3 { margin-top: 16px; }

  .drill-list { column-gap: 18px; margin: 24px 0 30px; }
  .drill-list li { font-size: 0.92rem; padding-left: 20px; }
  .drill-list li::before { left: 1px; width: 8px; height: 8px; }
  .home-cadet__photos { aspect-ratio: 1 / 1.05; gap: 10px; }

  .endorse-grid { grid-template-columns: minmax(0, 1fr); }
  .guidons { gap: 12px; }
  .guidon { padding: 20px 16px 44px; }
  .guidon__name { font-size: 1.12rem; }
  .guidon__sub { font-size: 0.82rem; }

  .home-head--row { flex-direction: column; align-items: flex-start; }

  /* Life at KCS becomes a swipeable strip on phones */
  .life-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--pad-x);
    gap: 12px;
    margin: 0 calc(-1 * var(--pad-x));
    padding: 0 var(--pad-x) 10px;
    scrollbar-width: none;
  }
  .life-grid::-webkit-scrollbar { display: none; }
  .life-grid li { flex: 0 0 78%; scroll-snap-align: start; }
  .life-grid figure { height: auto; aspect-ratio: 4 / 5; }
}

@media (max-width: 380px) {
  .sash__text { font-size: 0.88rem; }
  .sash__band { gap: 10px; }
  .drill-list { columns: 1; }
}
