/* ============================================================================
   Operations Lab house style
   Palette from Sigurður's diagram style guide: warm neutral greys + one teal.
   Teal marks the thing that matters; everything else is calm grey.
   ============================================================================ */

:root {
  /* SES Group identity. Variable names unchanged from the original palette. */
  --bg: #FFFFFF;
  --bg-soft: #F6F9FA;
  --neutral-fill: #EDF2F3;
  --neutral-stroke: #C2CFD3;
  --neutral-stroke-soft: #DEE7E9;
  --title: #0A1417;
  --subtitle: #455B62;
  --teal-fill: #EEF8F9;
  --teal-stroke: #7FD3DB;
  --teal-title: #064E58;
  --teal-text: #0B7C89;
  --teal-arrow: #0E9AA7;
  --grey-arrow: #6B8189;

  --shadow-sm: 0 1px 2px rgba(10, 20, 23, 0.04), 0 4px 12px rgba(10, 20, 23, 0.05);
  --shadow-md: 0 8px 24px rgba(10, 20, 23, 0.1), 0 2px 6px rgba(10, 20, 23, 0.06);
  --radius: 16px;
  --font: 'Geist', ui-sans-serif, system-ui, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--title);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--teal-text);
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--title);
  letter-spacing: -0.01em;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--teal-text);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus {
  left: 16px;
}

:focus-visible {
  outline: 3px solid var(--teal-stroke);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--neutral-stroke-soft);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--title);
}

.brand-mark {
  display: inline-flex;
}

.brand-text {
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
}

.brand-accent {
  color: var(--teal-text);
}

.topnav {
  display: flex;
  gap: 22px;
}

.topnav a {
  color: var(--subtitle);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}
.topnav a:hover {
  color: var(--title);
  border-color: var(--teal-stroke);
}

/* ---------- hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  border-bottom: 1px solid var(--neutral-stroke-soft);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding: 64px 24px 56px;
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--teal-text);
}

.hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.12;
  font-weight: 800;
}

.hero .accent {
  color: var(--teal-text);
  position: relative;
  white-space: nowrap;
}
.hero .accent::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 8px;
  background: var(--teal-fill);
  z-index: -1;
  border-radius: 4px;
}

.lede {
  margin: 18px 0 26px;
  font-size: 1.12rem;
  color: var(--subtitle);
  max-width: 40ch;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-art {
  background: #fff;
  border: 1px solid var(--neutral-stroke-soft);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

/* Hero carousel: five operations motifs that crossfade, one at a time. */
.hero-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 600 / 168;
}
.hero-motif {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: heroCycle 22s infinite;
}
.hero-motif:nth-child(1) { animation-delay: 0s; }
.hero-motif:nth-child(2) { animation-delay: 4.4s; }
.hero-motif:nth-child(3) { animation-delay: 8.8s; }
.hero-motif:nth-child(4) { animation-delay: 13.2s; }
.hero-motif:nth-child(5) { animation-delay: 17.6s; }
@keyframes heroCycle {
  0% { opacity: 0; }
  2% { opacity: 1; }
  18% { opacity: 1; }
  22% { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-motif { animation: none; opacity: 0; }
  .hero-motif:nth-child(1) { opacity: 1; }
}

.art-box {
  font: 600 13px var(--font);
  fill: var(--title);
}
.art-box.teal {
  fill: var(--teal-title);
}
.art-cap {
  font: 400 11px var(--font);
  fill: var(--subtitle);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 11px 22px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.06s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:active {
  transform: translateY(1px);
}

.btn.primary {
  background: var(--teal-text);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn.primary:hover {
  background: #064E58;
  box-shadow: var(--shadow-md);
}

.btn.ghost {
  background: #fff;
  color: var(--title);
  border-color: var(--neutral-stroke);
}
.btn.ghost:hover {
  border-color: var(--teal-stroke);
  color: var(--teal-text);
}

/* ---------- section scaffolding ---------- */

.games,
.about {
  padding: 60px 0;
}
.about {
  background: var(--bg-soft);
  border-top: 1px solid var(--neutral-stroke-soft);
}

.section-head {
  margin-bottom: 28px;
}
.section-head h2 {
  font-size: 1.6rem;
  font-weight: 800;
}
.section-head p {
  margin: 6px 0 0;
  color: var(--subtitle);
}

/* ---------- search + topic filters ---------- */

.game-controls {
  display: grid;
  gap: 14px;
  margin-bottom: 26px;
}

.search-wrap {
  position: relative;
  max-width: 460px;
}
.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--subtitle);
  pointer-events: none;
}
.search-input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--title);
  background: #fff;
  border: 1px solid var(--neutral-stroke);
  border-radius: 999px;
  padding: 11px 18px 11px 44px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search-input::placeholder {
  color: var(--subtitle);
}
.search-input:focus {
  outline: none;
  border-color: var(--teal-stroke);
  box-shadow: 0 0 0 3px rgba(14, 154, 167, 0.22);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-chip {
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--subtitle);
  background: #fff;
  border: 1px solid var(--neutral-stroke-soft);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.filter-chip:hover {
  border-color: var(--teal-stroke);
  color: var(--teal-text);
}
.filter-chip.is-active {
  color: #fff;
  background: var(--teal-text);
  border-color: var(--teal-text);
}
.filter-n {
  opacity: 0.6;
  font-weight: 700;
  margin-left: 3px;
}
.filter-chip.is-active .filter-n {
  opacity: 0.8;
}

.game-count {
  margin: 0;
  font-size: 0.9rem;
  color: var(--subtitle);
}
.game-count strong {
  color: var(--title);
}

.link-btn {
  font: inherit;
  font-size: inherit;
  font-weight: 700;
  color: var(--teal-text);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}
.link-btn:hover {
  color: var(--teal-arrow);
}

/* ---------- game cards ---------- */

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--neutral-stroke-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  color: var(--title);
  transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card-live {
  cursor: pointer;
}
.card-live:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-stroke);
}

.card-soon {
  opacity: 0.82;
  border-style: dashed;
  border-color: var(--neutral-stroke);
}

.card-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 116px;
  background: linear-gradient(160deg, var(--neutral-fill), #fff 130%);
  border-bottom: 1px solid var(--neutral-stroke-soft);
  color: var(--grey-arrow);
}
.card-live .card-head {
  color: var(--teal-arrow);
  background: linear-gradient(160deg, var(--teal-fill), #fff 130%);
}

.card-glyph {
  display: inline-flex;
}
.glyph .g-teal {
  stroke: var(--teal-arrow);
}
.glyph .g-teal-fill {
  fill: var(--teal-arrow);
  stroke: none;
}
.glyph .g-dot {
  fill: currentColor;
  stroke: none;
}
.glyph .g-arrow {
  stroke: var(--grey-arrow);
}
.glyph .g-axis {
  stroke: var(--neutral-stroke);
  stroke-width: 1.5;
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--subtitle);
  background: #fff;
  border: 1px solid var(--neutral-stroke);
  border-radius: 999px;
  padding: 3px 10px;
}

.card-body {
  padding: 18px 18px 6px;
  flex: 1 1 auto;
}

.card-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--teal-text);
  margin-bottom: 5px;
}
.card-soon .card-kicker {
  color: var(--subtitle);
}

.card-title {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.card-tagline {
  margin: 8px 0 14px;
  color: var(--subtitle);
  font-size: 0.95rem;
}

.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--teal-text);
  background: var(--teal-fill);
  border: 1px solid var(--teal-stroke);
  border-radius: 999px;
  padding: 2px 9px;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px 18px;
  margin-top: 6px;
}

.card-meta {
  font-size: 0.84rem;
  color: var(--subtitle);
  display: flex;
  align-items: center;
  gap: 7px;
}
.meta-sep {
  color: var(--neutral-stroke);
}

.card-cta {
  font-weight: 800;
  color: var(--teal-text);
  font-size: 0.96rem;
}
.card-live:hover .card-cta {
  text-decoration: underline;
}
.card-cta.muted {
  color: var(--subtitle);
  font-weight: 700;
}

.empty {
  color: var(--subtitle);
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 34px;
  align-items: start;
}

.about-copy {
  display: grid;
  gap: 14px;
}
.about-lead {
  margin: 0;
  font-size: 1.08rem;
  color: var(--subtitle);
}
.about-lead em {
  color: var(--title);
  font-style: italic;
}
.about-body {
  margin: 0;
  color: var(--subtitle);
}
.about-body strong {
  color: var(--title);
  font-weight: 700;
}

.concept-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}
.concept-legend li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  color: var(--subtitle);
  font-size: 0.92rem;
}
.concept-legend strong {
  color: var(--title);
  font-weight: 700;
}
.concept-legend .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--teal-arrow);
  flex: 0 0 auto;
  margin-top: 6px;
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--neutral-stroke-soft);
  background: #fff;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 26px 24px;
}
.footer-credit {
  color: var(--subtitle);
  font-size: 0.9rem;
}
.footer-sep {
  margin: 0 6px;
  color: var(--neutral-stroke);
}
.footer-link {
  color: var(--teal-text);
  font-weight: 600;
  text-decoration: none;
}
.footer-link:hover {
  text-decoration: underline;
}

/* ---------- feedback modal ---------- */

.fb-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 20, 23, 0.45);
}
.fb-backdrop[hidden] {
  display: none;
}
.fb-modal {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 22px 22px 20px;
}
.fb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.fb-head h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0;
}
.fb-close {
  font-size: 1.5rem;
  line-height: 1;
  background: none;
  border: none;
  color: var(--subtitle);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}
.fb-close:hover {
  background: var(--neutral-fill);
  color: var(--title);
}
.fb-intro {
  margin: 0 0 14px;
  color: var(--subtitle);
  font-size: 0.92rem;
}
.fb-form {
  display: grid;
  gap: 12px;
}
.fb-label {
  display: grid;
  gap: 5px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--title);
}
.fb-opt {
  font-weight: 400;
  color: var(--subtitle);
}
.fb-input {
  font: inherit;
  font-size: 0.95rem;
  color: var(--title);
  background: #fff;
  border: 1px solid var(--neutral-stroke);
  border-radius: 10px;
  padding: 9px 11px;
  width: 100%;
}
textarea.fb-input {
  resize: vertical;
  min-height: 90px;
}
.fb-input:focus {
  outline: none;
  border-color: var(--teal-stroke);
  box-shadow: 0 0 0 3px rgba(14, 154, 167, 0.22);
}
.fb-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.fb-status {
  font-size: 0.88rem;
  min-height: 1.2em;
  color: var(--subtitle);
}
.fb-status.ok {
  color: var(--teal-text);
  font-weight: 600;
}
.fb-status.err {
  color: #93301D;
  font-weight: 600;
}
.fb-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 2px;
}
body.fb-open {
  overflow: hidden;
}

/* ---------- responsive ---------- */

@media (max-width: 820px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 44px 24px 40px;
    gap: 30px;
  }
  .hero-art {
    order: -1;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 540px) {
  .topnav {
    gap: 16px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* ---- capstone banner (the standalone project) ---- */
.capstone {
  background: linear-gradient(135deg, #06181C, #0C2A30 60%, #0B7C89);
  color: #E6EFF1;
  padding: 40px 0;
  margin: 8px 0 0;
}
.capstone-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 36px;
  align-items: center;
}
.capstone-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 700;
  color: #7FD3DB;
}
.capstone-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  margin: 4px 0 0;
  color: #fff;
}
.cap-accent {
  color: #35B6C2;
}
.capstone-sub {
  color: #D6EFF2;
  letter-spacing: 0.03em;
  margin: 2px 0 12px;
  font-size: 1.05rem;
}
.capstone-lede {
  color: #D6EFF2;
  max-width: 620px;
  font-size: 0.98rem;
  line-height: 1.6;
}
.capstone-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 16px 0 20px;
}
.capstone-tags li {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.capstone .btn.primary {
  background: #fff;
  color: var(--teal-text, #0B7C89);
  border-color: #fff;
}
.capstone .btn.primary:hover {
  background: #E6EFF1;
}
.capstone-stages {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.capstone-stages li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.capstone-stages li span {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  background: #7FD3DB;
  color: #06181C;
  display: grid;
  place-items: center;
  font-weight: 800;
}
@media (max-width: 760px) {
  .capstone-inner { grid-template-columns: 1fr; gap: 22px; }
}

/* ---- Capstone: temporarily marked "coming soon" ---- */
.capstone-soon-badge {
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #06181C;
  background: #35B6C2;
  border-radius: 999px;
  padding: 3px 10px;
}
.capstone-soon-btn {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}
.capstone.coming-soon .capstone-art {
  opacity: 0.45;
}

/* ---- for teaching --------------------------------------------------- */
/* Sits between the games and the about block, so it needs its own vertical
   room on both sides rather than leaning on the neighbours' padding. */
.teaching {
  padding: 8px 0 72px;
}
.teaching-panel {
  background: var(--bg-soft);
  border: 1px solid var(--neutral-stroke-soft);
  border-radius: 22px;
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.teaching-kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-text);
  margin: 0;
}
.teaching-panel h2 {
  margin: 14px 0 0;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.teaching-lede {
  margin: 14px 0 0;
  color: var(--subtitle);
  line-height: 1.7;
  max-width: 46ch;
}
.teaching-actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.teaching-points {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.teaching-points li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.teaching-points .tp-n {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--teal-text);
  padding-top: 3px;
  flex: none;
}
.teaching-points .tp-t {
  font-weight: 700;
  color: var(--title);
}
.teaching-points .tp-d {
  color: var(--subtitle);
  font-size: 0.93rem;
  margin-top: 3px;
  line-height: 1.55;
}
@media (max-width: 860px) {
  .teaching-panel {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 30px;
  }
  .teaching {
    padding: 8px 0 52px;
  }
}

/* The about block is no longer the last thing on the page: the capstone now
   closes it, so about gets a bottom rule instead of running into the footer. */
.about {
  border-bottom: 1px solid var(--neutral-stroke-soft);
}
/* The capstone is the closing band, not an interruption near the top. */
.capstone {
  margin: 0;
  padding: 56px 0;
}

/* ---- for teaching --------------------------------------------------- */
/* Sits between the games and the about block, so it needs its own vertical
   room on both sides rather than leaning on the neighbours' padding. */
.teaching {
  padding: 8px 0 72px;
}
.teaching-panel {
  background: var(--bg-soft);
  border: 1px solid var(--neutral-stroke-soft);
  border-radius: 22px;
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.teaching-kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-text);
  margin: 0;
}
.teaching-panel h2 {
  margin: 14px 0 0;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.teaching-lede {
  margin: 14px 0 0;
  color: var(--subtitle);
  line-height: 1.7;
  max-width: 46ch;
}
.teaching-actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.teaching-points {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.teaching-points li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.teaching-points .tp-n {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--teal-text);
  padding-top: 3px;
  flex: none;
}
.teaching-points .tp-t {
  font-weight: 700;
  color: var(--title);
}
.teaching-points .tp-d {
  color: var(--subtitle);
  font-size: 0.93rem;
  margin-top: 3px;
  line-height: 1.55;
}
@media (max-width: 860px) {
  .teaching-panel {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 30px;
  }
  .teaching {
    padding: 8px 0 52px;
  }
}

/* The about block is no longer the last thing on the page: the capstone now
   closes it, so about gets a bottom rule instead of running into the footer. */
.about {
  border-bottom: 1px solid var(--neutral-stroke-soft);
}
/* The capstone is the closing band, not an interruption near the top. */
.capstone {
  margin: 0;
  padding: 56px 0;
}
