/* DriveX — research initiative styling (refined) */

:root {
  --color-bg: #f7f8fa;
  --color-surface: #ffffff;
  --color-surface-elevated: #fafbfc;
  --color-text: #111418;
  --color-text-muted: #5c6370;
  --color-border: #e4e7ec;
  --color-border-light: #eceef2;
  --color-accent: #0f3557;
  --color-accent-hover: #0a2845;
  --color-accent-soft: rgba(15, 53, 87, 0.06);
  --color-slate: #2d3a4d;
  --color-teal: #1a5c52;
  --color-teal-soft: rgba(26, 92, 82, 0.08);
  --color-gold: #9a7510;
  --color-gold-soft: rgba(154, 117, 16, 0.08);
  --ucla-blue: #2774ae;
  --ucla-blue-dark: #003b5c;
  --ucla-blue-soft: rgba(39, 116, 174, 0.1);
  --ucla-gold: #ffd100;
  --color-cyan: #06b6d4;
  --color-cyan-soft: rgba(6, 182, 212, 0.12);
  --color-grid: rgba(15, 53, 87, 0.055);
  --color-grid-strong: rgba(15, 53, 87, 0.09);
  --font-sans: "Inter", "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Inter", "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 0 0 1px rgba(6, 182, 212, 0.18), 0 8px 30px rgba(6, 182, 212, 0.08);
  --shadow-glass: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 8px 32px rgba(0, 0, 0, 0.12);
  --radius: 10px;
  --radius-sm: 6px;
  --max: 1160px;
  --space-xs: 0.35rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-accent-hover);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* —— Layout —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(6, 182, 212, 0.55) 50%, transparent 100%);
  opacity: 0.7;
  pointer-events: none;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.header-brand-lockup {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  min-height: 76px;
}

.header-brand-lockup .brand-logo {
  height: 40px;
  width: auto;
  max-height: 40px;
  max-width: 200px;
  object-fit: contain;
}

.header-brand-lockup .header-lab-logo {
  height: 68px;
  width: auto;
  max-height: 68px;
  max-width: min(286px, 42vw);
}

.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: auto;
  height: 40px;
  max-height: 40px;
  max-width: 200px;
  flex-shrink: 0;
  object-fit: contain;
}

.header-lab-lockup {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 0;
  padding-left: 1rem;
  border-left: 1px solid var(--color-border);
  text-decoration: none;
  opacity: 0.92;
  transition: opacity 0.15s ease;
}

.header-lab-lockup:hover {
  opacity: 1;
}

.header-lab-logo {
  height: 32px;
  width: auto;
  max-width: min(200px, 38vw);
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.1;
}

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

.brand-mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Nav */
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: var(--space-xs);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.5rem;
}

.site-nav a {
  display: block;
  padding: 0.4rem 0.6rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--color-text);
  text-decoration: none;
  border-radius: 6px;
  position: relative;
  transition: color 0.18s ease, background 0.18s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.15rem;
  height: 1px;
  background: var(--color-cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}

.site-nav a.nav-progs {
  font-size: 0.8125rem;
  line-height: 1.3;
  max-width: 9rem;
}

.site-nav a.nav-progs .nav-progs-sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
}

@media (min-width: 1100px) {
  .site-nav a.nav-progs {
    max-width: none;
    font-size: 0.875rem;
  }

  .site-nav a.nav-progs .nav-progs-sub {
    display: inline;
    font-size: inherit;
    font-weight: 600;
    color: inherit;
  }
}

.site-nav a:hover {
  background: transparent;
  color: var(--color-accent);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.site-nav a[aria-current="page"] {
  background: transparent;
  color: var(--color-accent);
  font-weight: 600;
}

.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--color-accent);
  height: 2px;
}

@media (max-width: 960px) {
  .nav-toggle-label {
    display: block;
  }

  .site-nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav-toggle:checked ~ .site-nav {
    max-height: 640px;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-sm) 0 var(--space-md);
  }

  .site-nav a {
    padding: 0.6rem 0.5rem;
  }

  .header-inner > .header-lab-lockup {
    display: none;
  }

  .header-brand-lockup {
    gap: 0.65rem;
    min-height: 52px;
  }

  .header-brand-lockup .brand-logo {
    height: 32px;
    max-height: 32px;
    max-width: 160px;
  }

  .header-brand-lockup .header-lab-lockup {
    display: flex;
    padding-left: 0.65rem;
  }

  .header-brand-lockup .header-lab-logo {
    height: 42px;
    max-height: 42px;
    max-width: min(168px, 48vw);
  }
}

/* Hero — cleaner, World-Labs-inspired minimal intro */
.hero {
  background:
    radial-gradient(ellipse at 80% -10%, rgba(6, 182, 212, 0.08), transparent 55%),
    radial-gradient(ellipse at 0% 110%, rgba(39, 116, 174, 0.07), transparent 50%),
    var(--color-surface);
  color: var(--color-text);
  padding: clamp(3rem, 7vw, 5.5rem) var(--space-md) clamp(2.75rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--color-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-grid) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 78%);
          mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 78%);
  pointer-events: none;
  display: block;
  opacity: 0.85;
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, var(--color-cyan));
  transform: translateX(-50%);
  opacity: 0.45;
  display: block;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  gap: var(--space-xl);
  align-items: start;
  grid-template-columns: 1fr;
}

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
  }
}

.hero-main {
  max-width: 46rem;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  width: 100%;
}


/* New light tech panels (replaces old hero-glass) */
.hero-panel {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem 1.15rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, var(--shadow-sm);
}

.hero-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--color-cyan) 30%, var(--ucla-blue) 80%, transparent 100%);
  opacity: 0.85;
}

/* Top-right corner register marks */
.hero-panel::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  pointer-events: none;
}

.hero-panel-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 0.85rem;
}

.hero-panel-dot {
  width: 14px;
  height: 1px;
  background: var(--color-cyan);
  display: inline-block;
  flex-shrink: 0;
}

.hero-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1rem;
  margin: 0;
}

.hero-panel-grid > div {
  border-top: 1px solid var(--color-border-light);
  padding-top: 0.55rem;
}

.hero-panel-grid dt {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 0.15rem;
}

.hero-panel-grid dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.hero-panel-grid dd .dim {
  color: var(--color-text-muted);
  font-weight: 500;
  margin: 0 0.05em;
}

.hero-panel-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
}

.hero-panel-livedot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.18);
  animation: dx-pulse 2.4s ease-in-out infinite;
}

.hero-panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.hero-panel-list li {
  border-top: 1px solid var(--color-border-light);
}

.hero-panel-list li:first-child {
  border-top: none;
}

.hero-panel-list a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.15rem;
  text-decoration: none;
  color: var(--color-text);
  transition: color 0.18s ease, padding-left 0.2s ease;
}

.hero-panel-list a:hover {
  color: var(--color-accent);
  padding-left: 0.4rem;
}

.hero-panel-idx {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.hero-panel-list a:hover .hero-panel-idx {
  color: var(--color-cyan);
}

.hero-panel-name {
  font-size: 0.93rem;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.hero-panel-arrow {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--color-text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.hero-panel-list a:hover .hero-panel-arrow {
  color: var(--color-cyan);
  transform: translateX(3px);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  padding: 0.32rem 0.7rem;
  color: var(--color-accent);
  background: rgba(6, 182, 212, 0.06);
  border: 1px solid rgba(6, 182, 212, 0.22);
  border-radius: 999px;
}

.hero-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
  animation: dx-pulse 2.4s ease-in-out infinite;
}

@keyframes dx-pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
  }
  50% {
    opacity: 0.55;
    box-shadow: 0 0 0 6px rgba(6, 182, 212, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow::before {
    animation: none;
  }
}

.hero h1,
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.25rem, 5.6vw, 3.65rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 0 1.1rem;
  max-width: 18ch;
  color: var(--color-text);
}

.hero-logo-mark {
  display: block;
  width: auto;
  max-width: min(420px, 60vw);
  height: auto;
  margin: 0 0 var(--space-md);
  opacity: 1;
}

.hero-title .accent {
  background: linear-gradient(110deg, var(--ucla-blue-dark) 0%, var(--ucla-blue) 45%, var(--color-cyan) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-lead {
  font-size: 1.05rem;
  line-height: 1.72;
  max-width: 44rem;
  margin: 0 0 var(--space-lg);
  font-weight: 400;
  color: var(--color-text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: 1.1rem;
}

.hero-meta-row {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--color-border);
  display: grid;
  gap: 0.75rem 1.5rem;
  grid-template-columns: 1fr;
  max-width: 56rem;
}

@media (min-width: 760px) {
  .hero-meta-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.hero-meta-row li {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  position: relative;
  padding-left: 0.85rem;
}

.hero-meta-row li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 4px;
  height: 4px;
  background: var(--color-cyan);
  border-radius: 50%;
}

.hero-meta-key {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.hero-meta-val {
  font-size: 0.92rem;
  color: var(--color-text);
  font-weight: 500;
  letter-spacing: -0.005em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.2rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a.btn::after {
  content: "→";
  font-family: var(--font-mono);
  font-size: 0.95em;
  line-height: 1;
  transition: transform 0.2s ease;
}

a.btn:hover::after {
  transform: translateX(3px);
}

.btn-primary {
  background: linear-gradient(180deg, #0a2c49 0%, var(--ucla-blue-dark) 100%);
  color: #fff;
  border-color: var(--ucla-blue-dark);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 6px 18px rgba(0, 59, 92, 0.18);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #0c3458 0%, #0b3251 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 8px 24px rgba(6, 182, 212, 0.22), 0 0 0 1px rgba(6, 182, 212, 0.35);
  border-color: rgba(6, 182, 212, 0.55);
}

.btn-ghost {
  background: #fff;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-ghost:hover {
  background: #f5f7fa;
  color: var(--color-text);
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.18);
}

@media (prefers-reduced-motion: no-preference) {
  .btn-primary:hover,
  .btn-ghost:hover {
    transform: translateY(-1px);
  }
}

/* Main content */
main {
  min-height: 50vh;
}

.section {
  padding: var(--space-xl) var(--space-md);
}

.section-tight {
  padding: var(--space-lg) var(--space-md);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

/* Home: quick program entry cards */
.home-program-links {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-xl) var(--space-md);
}

.home-program-links-head {
  margin-bottom: 1.1rem;
}

.home-program-links-grid {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 760px) {
  .home-program-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.home-program-link-card {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.35rem;
  min-height: 11rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.home-program-link-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 1px;
  background: var(--color-cyan);
  opacity: 0;
  transition: opacity 0.2s ease, width 0.2s ease;
}

.home-program-link-card::after {
  content: "→";
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--color-text-muted);
  opacity: 0.5;
  transition: transform 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.home-program-link-card:hover {
  background: #fff;
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 6px 22px rgba(6, 182, 212, 0.08);
  transform: translateY(-2px);
}

.home-program-link-card:hover::before {
  opacity: 1;
  width: 56px;
}

.home-program-link-card:hover::after {
  transform: translate(3px, -3px);
  color: var(--color-cyan);
  opacity: 1;
}

.home-program-link-kicker {
  margin: 0 0 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.home-program-link-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
  line-height: 1.3;
}

.home-program-link-card h3 a {
  color: var(--color-text);
  text-decoration: none;
}

.home-program-link-card h3 a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.home-program-link-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.section-muted {
  background:
    linear-gradient(180deg, #f3f5f8 0%, #eef1f5 100%);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  position: relative;
  overflow: hidden;
}

.section-muted::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(var(--color-grid-strong) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: 0 0;
  opacity: 0.55;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 80%);
          mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 80%);
}

.section-muted .section-inner {
  position: relative;
  z-index: 1;
}

.section-surface {
  background: var(--color-surface);
  position: relative;
  box-shadow: 0 -1px 0 rgba(12, 17, 24, 0.04);
}

.section-band {
  background:
    radial-gradient(ellipse at 80% 30%, rgba(6, 182, 212, 0.22), transparent 55%),
    radial-gradient(ellipse at 10% 80%, rgba(39, 116, 174, 0.25), transparent 55%),
    linear-gradient(135deg, #061525 0%, var(--ucla-blue-dark) 100%);
  color: #e6edf5;
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(6, 182, 212, 0.2);
  border-bottom: 1px solid rgba(6, 182, 212, 0.2);
}

.section-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 80%);
          mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
}

.section-band::after {
  display: none;
}

.section-band .section-inner {
  position: relative;
  z-index: 1;
}

.section-band p {
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.5;
  max-width: 56rem;
  margin-inline: auto;
  opacity: 0.95;
}

.section-band strong {
  font-weight: 700;
  color: var(--color-cyan);
}

.section-band-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(230, 237, 245, 0.65);
  margin: 0 auto 1.1rem !important;
  padding: 0.32rem 0.85rem;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.28);
  border-radius: 999px;
  font-size: 0.68rem !important;
}

.section-band-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

.section-head {
  margin-bottom: var(--space-lg);
}

.section-head h2 {
  margin-bottom: 0;
  display: inline-block;
  max-width: 100%;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-sm);
}

.section-kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--color-cyan);
  flex-shrink: 0;
}

.section-band .section-kicker,
.section-band .section-kicker::before {
  color: rgba(241, 245, 249, 0.7);
}

.section-band .section-kicker::before {
  background: rgba(6, 182, 212, 0.7);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.8vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-md);
  line-height: 1.15;
  color: var(--color-text);
}

h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  margin: var(--space-lg) 0 var(--space-sm);
  line-height: 1.28;
}

.prose {
  max-width: 48rem;
}

.prose p {
  margin: 0 0 var(--space-md);
  color: var(--color-text-muted);
  max-width: 70ch;
}

.prose ul,
.prose ol {
  margin: 0 0 var(--space-md);
  padding-left: 1.35rem;
  color: var(--color-text);
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose strong {
  font-weight: 700;
}

.lead {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.62;
  max-width: 68ch;
}

/* Cards grid */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

@media (min-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  padding-top: calc(var(--space-lg) + 4px);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--ucla-blue) 30%, var(--color-cyan) 70%, transparent 100%);
  opacity: 0.85;
}

.card::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 10px;
  height: 10px;
  border-top: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  transition: border-color 0.22s ease;
  pointer-events: none;
}

.card--stripe-teal::before,
.card--stripe-slate::before,
.card--stripe-gold::before {
  background: linear-gradient(90deg, transparent 0%, var(--ucla-blue) 30%, var(--color-cyan) 70%, transparent 100%);
}

.card:hover {
  box-shadow: 0 8px 28px rgba(6, 182, 212, 0.08), 0 1px 0 rgba(6, 182, 212, 0.18) inset;
  border-color: rgba(6, 182, 212, 0.45);
}

.card:hover::after {
  border-color: var(--color-cyan);
}

@media (prefers-reduced-motion: no-preference) {
  .card:hover {
    transform: translateY(-2px);
  }
}

.card h3 {
  margin: 0 0 var(--space-sm);
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  flex: 1;
  line-height: 1.6;
}

.card a.card-link {
  margin-top: var(--space-md);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.card a.card-link::after {
  content: "→";
  font-family: var(--font-mono);
  margin-left: 0.35rem;
  transition: transform 0.18s ease;
  display: inline-block;
}

.card a.card-link:hover::after {
  transform: translateX(3px);
}

/* Theme tiles */
.theme-grid {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

@media (min-width: 920px) {
  .theme-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.theme-tile {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  padding-top: calc(var(--space-lg) + 4px);
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
  counter-increment: theme;
  overflow: hidden;
}

.theme-grid {
  counter-reset: theme;
}

.theme-tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 1px;
  width: auto;
  border-radius: 0;
  background: linear-gradient(90deg, transparent 0%, var(--ucla-blue) 35%, var(--color-cyan) 75%, transparent 100%);
  opacity: 0.9;
}

.theme-tile::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 10px;
  height: 10px;
  border-top: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  transition: border-color 0.22s ease;
  pointer-events: none;
}

.theme-tile:nth-child(2)::before,
.theme-tile:nth-child(3)::before {
  background: linear-gradient(90deg, transparent 0%, var(--ucla-blue) 35%, var(--color-cyan) 75%, transparent 100%);
}

.theme-tile:hover {
  box-shadow: 0 6px 24px rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.4);
}

.theme-tile:hover::after {
  border-color: var(--color-cyan);
}

@media (prefers-reduced-motion: no-preference) {
  .theme-tile:hover {
    transform: translateY(-2px);
  }
}

.theme-tile h3 {
  margin: 0 0 var(--space-sm);
  padding-left: 0;
  font-size: 1.06rem;
}

.theme-tile p {
  margin: 0;
  padding-left: 0;
  font-size: 0.94rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.theme-tile .theme-index {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 0.6rem;
  padding-left: 0;
}

.theme-tile .theme-index::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--color-cyan);
  flex-shrink: 0;
}

/* Highlights */
.highlights {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  counter-reset: hl;
}

.highlights li {
  padding: 0.95rem 1.05rem 0.95rem 3.2rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text-muted);
  line-height: 1.58;
  position: relative;
  counter-increment: hl;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.highlights li::before {
  content: "0" counter(hl);
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-cyan);
  padding-right: 0.7rem;
  border-right: 1px solid var(--color-border);
}

.highlights li:hover {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.12);
}

/* Callout */
.callout {
  background: var(--ucla-blue-soft);
  border: 1px solid rgba(39, 116, 174, 0.2);
  border-left: 3px solid var(--ucla-blue);
  border-radius: var(--radius);
  padding: var(--space-md) var(--space-lg);
  font-size: 0.98rem;
  margin: var(--space-lg) 0;
}

.callout strong {
  color: var(--color-accent);
}

/* Track / category blocks */
.track-category {
  margin-bottom: var(--space-xl);
}

.track-category h3 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--color-border);
}

.track-list {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 640px) {
  .track-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.track-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-md);
}

.track-card h4 {
  margin: 0 0 var(--space-xs);
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.track-card p {
  margin: 0 0 var(--space-sm);
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

/* Leadership blocks */
.person {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-border);
}

.person:last-child {
  border-bottom: none;
}

.person h3 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}

.role {
  font-weight: 600;
  color: var(--color-accent);
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
}

.affil {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-sm);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: var(--space-md) 0;
}

table.simple {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

table.simple th,
table.simple td {
  border: 1px solid var(--color-border);
  padding: 0.65rem 0.85rem;
  text-align: left;
}

table.simple th {
  background: #e8ebf2;
  font-weight: 600;
}

/* Contact form placeholder */
.form-grid {
  display: grid;
  gap: var(--space-md);
  max-width: 36rem;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: var(--space-md);
}

.form-optional {
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 0.85em;
  margin-left: 0.35em;
}

/* Footer */
.site-footer {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(6, 182, 212, 0.05), transparent 55%),
    #fbfcfd;
  color: var(--color-text-muted);
  padding: var(--space-xl) var(--space-md);
  margin-top: var(--space-xl);
  font-size: 0.95rem;
  border-top: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--color-cyan) 30%, var(--ucla-blue) 70%, transparent 100%);
  opacity: 0.55;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: minmax(260px, 1.45fr) repeat(auto-fill, minmax(160px, 1fr));
    align-items: start;
  }
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-col-title::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--color-cyan);
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.footer-program-line {
  color: var(--color-text-muted);
  max-width: 28rem;
  margin: 0;
  line-height: 1.55;
  font-size: 0.92rem;
}

.footer-attribution {
  line-height: 1.6;
  max-width: 40rem;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  border-left: 2px solid var(--color-border);
  padding-left: var(--space-md);
  margin: var(--space-md) 0 0;
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-meta::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 1px solid var(--color-cyan);
  border-radius: 50%;
  display: inline-block;
}

.footer-links a {
  color: var(--color-text);
  text-decoration: none;
  display: block;
  padding: 0.25rem 0;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.site-footer .footer-grid > div > img {
  height: 32px;
  width: auto;
  margin-bottom: 0.85rem;
}

/* Page hero (inner pages — quiet header) */
.page-hero {
  background:
    radial-gradient(ellipse at 90% 0%, rgba(6, 182, 212, 0.06), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-xl) var(--space-md);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--color-cyan) 0%, var(--ucla-blue) 50%, var(--ucla-blue-dark) 100%);
  border-radius: 0 2px 2px 0;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--color-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-grid) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 80% 0%, black 0%, transparent 60%);
          mask-image: radial-gradient(ellipse at 80% 0%, black 0%, transparent 60%);
  pointer-events: none;
  opacity: 0.6;
}

.page-hero .section-inner {
  position: relative;
  z-index: 1;
}

.page-hero .section-inner {
  padding-left: calc(var(--space-md) + 10px);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.6vw, 2.15rem);
  margin: 0 0 var(--space-sm);
  letter-spacing: -0.025em;
  font-weight: 600;
}

.page-hero .subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 42rem;
  margin: 0;
  line-height: 1.55;
}

.page-hero .section-kicker {
  margin-bottom: 0.35rem;
  color: var(--color-accent);
}

/* Anchors row */
.anchor-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.anchor-row a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--color-text);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.anchor-row a:hover {
  background: #f0f2f5;
  border-color: #d8dde4;
  color: var(--color-accent);
}

/* Workshop edition list */
.edition-grid {
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.edition-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md);
  padding-left: calc(var(--space-md) + 6px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.edition-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--ucla-blue);
  opacity: 0.5;
  transition: opacity 0.18s ease;
}

.edition-card:hover {
  border-color: #d0d7e0;
  box-shadow: var(--shadow-md);
}

.edition-card:hover::before {
  opacity: 1;
}

.edition-card strong {
  display: block;
  font-size: 1rem;
}

.edition-card span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  white-space: nowrap;
}

.badge-muted {
  background: #e2e6ef;
  color: var(--color-text-muted);
}

.badge-tutorial {
  background: #e4f0ec;
  color: #1a5c48;
  font-weight: 700;
}

/* External program cards (workshops, tutorials, challenge tracks) */
.ext-program-grid {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

@media (min-width: 720px) {
  .ext-program-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .ext-program-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ext-program-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
  position: relative;
}

.ext-program-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--ucla-blue) 35%, var(--color-cyan) 75%, transparent 100%);
  opacity: 0;
  transition: opacity 0.22s ease;
  z-index: 2;
}

.ext-program-card:hover {
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 8px 28px rgba(6, 182, 212, 0.08);
  transform: translateY(-2px);
}

.ext-program-card:hover::before {
  opacity: 1;
}

.ext-program-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--color-border-light);
  overflow: hidden;
  position: relative;
}

.ext-program-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.ext-program-card:hover .ext-program-card__media img {
  transform: scale(1.01);
}

.ext-program-card__body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ext-program-card__body .badge,
.ext-program-card__body .badge-muted,
.ext-program-card__body .badge-tutorial {
  align-self: flex-start;
}

.ext-program-card__body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.35;
}

.ext-program-card__meta {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.45;
}

.ext-program-card__actions {
  margin-top: auto;
  padding-top: var(--space-sm);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

a.btn-external {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.55rem 0.95rem;
  border-radius: 8px;
  background: linear-gradient(180deg, #0a2c49 0%, var(--color-accent) 100%);
  color: #fff;
  border: 1px solid var(--color-accent);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

a.btn-external::after {
  content: "↗";
  font-family: var(--font-mono);
  font-size: 0.95em;
  line-height: 1;
  transition: transform 0.2s ease;
}

a.btn-external:hover {
  background: linear-gradient(180deg, #0c3458 0%, var(--color-accent-hover) 100%);
  color: #fff;
  border-color: rgba(6, 182, 212, 0.55);
  box-shadow: 0 6px 18px rgba(6, 182, 212, 0.18), 0 0 0 1px rgba(6, 182, 212, 0.25);
}

a.btn-external:hover::after {
  transform: translate(2px, -2px);
}

.link-subtle {
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-text-muted);
}

.link-subtle:hover {
  color: var(--color-accent);
}

/* —— Project feature card (CP-X style, larger than workshop card) —— */
.project-feature-grid {
  display: grid;
  gap: 1.75rem;
}

.project-feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.project-feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, transparent);
  pointer-events: none;
  z-index: 0;
}

.project-feature-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-cyan, var(--color-accent)) 30%, var(--color-accent) 70%, transparent);
  opacity: 0.65;
}

.project-feature-card:hover {
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: 0 12px 40px rgba(10, 44, 73, 0.08), 0 0 0 1px rgba(6, 182, 212, 0.15);
  transform: translateY(-2px);
}

.project-feature-card__media {
  display: block;
  position: relative;
  background: linear-gradient(135deg, #0a2c49 0%, #103a5e 100%);
  overflow: hidden;
  min-height: 320px;
}

.project-feature-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.project-feature-card:hover .project-feature-card__media img {
  transform: scale(1.03);
}

.project-feature-card__body {
  padding: clamp(1.5rem, 2.4vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.project-feature-card__index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-cyan, var(--color-accent));
  margin: 0;
}

.project-feature-card__body h3 {
  font-size: clamp(1.35rem, 1.9vw, 1.65rem);
  line-height: 1.25;
  margin: 0;
}

.project-feature-card__tagline {
  font-size: 1.02rem;
  color: var(--color-text);
  margin: 0;
}

.project-feature-card__body > p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.project-feature-card__meta {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  border-top: 1px dashed var(--color-border);
  padding-top: 0.85rem;
}

.project-feature-card__meta-key {
  display: inline-block;
  min-width: 5.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-right: 0.5rem;
}

.project-feature-card__actions {
  margin-top: 0.6rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 880px) {
  .project-feature-card {
    grid-template-columns: 1fr;
  }
  .project-feature-card__media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

.ext-program-card--track .ext-program-card__body h3 {
  font-size: 1.02rem;
}

/* Workshop series hub callout (intro) */
.intro-series-hub {
  margin-top: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.intro-series-hub__copy {
  flex: 1;
  min-width: min(100%, 17rem);
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.intro-series-hub__actions {
  flex-shrink: 0;
}

/* Workshop editions intro (visitor copy + CTA) */
.edition-intro {
  max-width: 44rem;
}

.edition-intro .lead {
  margin-bottom: var(--space-md);
}

.edition-intro__cta {
  margin: 0 0 var(--space-md);
}

/* News items */
.news-item {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.news-item--with-speaker {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.news-item-speaker {
  display: block;
  width: 110px;
  height: 130px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--color-surface, #f4f4f4);
  border: 1px solid var(--color-border);
  position: relative;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.news-item-speaker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.news-item-speaker:hover {
  box-shadow: var(--shadow-glow, 0 0 0 1px rgba(6, 182, 212, 0.18));
  transform: translateY(-1px);
}

.news-item-body {
  min-width: 0;
}

@media (max-width: 560px) {
  .news-item--with-speaker {
    grid-template-columns: 84px 1fr;
    gap: 1rem;
  }
  .news-item-speaker {
    width: 84px;
    height: 100px;
  }
}

.news-item time {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-item h3 {
  margin: 0.35rem 0 0.25rem;
  font-size: 1.1rem;
}

.news-item h3 a {
  text-decoration: none;
}

.news-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.news-item p + p {
  margin-top: 0.35rem;
}

.news-item p strong {
  color: var(--color-text);
}

.news-item details {
  margin-top: 0.55rem;
  border-top: 1px dashed var(--color-border);
  padding-top: 0.55rem;
}

.news-item details + details {
  margin-top: 0.4rem;
}

.news-item details summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-cyan, var(--color-accent));
  list-style: none;
  padding-right: 1.2rem;
  position: relative;
  user-select: none;
}

.news-item details summary::-webkit-details-marker {
  display: none;
}

.news-item details summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-weight: 500;
}

.news-item details[open] summary::after {
  content: "\2212";
}

.news-item details p {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  line-height: 1.65;
}

/* —— Media & logo wall —— */
.page-media {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--color-border-light);
  background: #0f1728;
}

.page-media img {
  display: block;
  width: 100%;
  max-height: min(52vh, 420px);
  object-fit: cover;
  opacity: 0.96;
}

.media-caption {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md) var(--space-md);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-lg);
  padding: var(--space-md) 0 var(--space-lg);
  border-bottom: 1px solid var(--color-border-light);
}

.logo-strip img {
  height: 100px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  filter: grayscale(12%);
  opacity: 0.92;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.logo-strip a:hover img,
.logo-strip img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.logo-strip .lab-mark img,
.logo-card .lab-mark img,
.logo-strip .lab-mark:hover img {
  filter: none;
  opacity: 1;
  max-width: min(100%, min(360px, 100vw - 2.5rem));
  max-height: 52px;
  height: auto;
  width: auto;
}

.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: clamp(0.5rem, 0.8vw, 0.85rem);
  margin-top: var(--space-lg);
}

.logo-card {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  gap: 1.1rem;
  padding: 2rem 1.5rem 1.25rem;
  min-width: 0;
  text-align: center;
  word-break: break-word;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 53, 87, 0.04);
  position: relative;
  overflow: hidden;
  min-height: 200px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.logo-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border) 30%, var(--color-border) 70%, transparent);
  opacity: 0.7;
  transition: background 0.25s ease, opacity 0.25s ease;
}

.logo-card:hover {
  border-color: rgba(6, 182, 212, 0.32);
  box-shadow: 0 10px 28px rgba(10, 44, 73, 0.07), 0 0 0 1px rgba(6, 182, 212, 0.12);
  transform: translateY(-2px);
}

.logo-card:hover::before {
  background: linear-gradient(90deg, transparent, var(--color-cyan, var(--color-accent)) 30%, var(--color-accent) 70%, transparent);
  opacity: 1;
}

.logo-card img {
  width: 100%;
  max-width: 220px;
  height: 110px;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: saturate(0.95);
  transition: filter 0.25s ease;
}

.logo-card:hover img {
  filter: saturate(1.05);
}

/* Square seal: keep a square frame so the round seal isn't stranded in a wide letterbox */
.logo-card img[src*="usdot"] {
  height: 130px;
  max-width: 130px;
}

.logo-card figcaption {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.01em;
  line-height: 1.35;
  padding-top: 0.55rem;
  border-top: 1px solid var(--color-border);
  width: 100%;
  max-width: 16rem;
}

.logo-card__sub {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  opacity: 0.85;
  text-transform: none;
}

/* Inline figure for prose sections (challenge / project deep-dives) */
.prose-figure {
  margin: var(--space-md) 0 var(--space-lg);
  padding: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.prose-figure img {
  display: block;
  width: 100%;
  height: auto;
  background: #fafafa;
}

.prose-figure figcaption {
  padding: 0.7rem 1rem 0.85rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  background: var(--color-surface, #fafafa);
}

.logo-card__flag {
  display: inline-block;
  margin-right: 0.45em;
  font-size: 1.05em;
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
  vertical-align: -0.1em;
  letter-spacing: 0;
}

.team-photo-hero {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-lg);
}

.team-photo-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(56vh, 520px);
  object-fit: cover;
}

.leadership-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-md);
  align-items: stretch;
}

@media (min-width: 640px) {
  .leadership-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .leadership-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.leadership-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--ucla-blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.leadership-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--ucla-blue-dark);
}

.leadership-card-photo {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-muted);
}

.leadership-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.leadership-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-md) var(--space-md) var(--space-lg);
  min-height: 0;
}

.leadership-card-body h3 {
  margin: 0 0 0.15rem;
  font-size: 1.05rem;
}

.leadership-role {
  margin: 0 0 var(--space-xs);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ucla-blue);
}

.leadership-card--lead .leadership-role {
  color: var(--ucla-blue-dark);
}

.leadership-card-body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

/* —— UCLA Mobility Lab lockup: show the provided raster logo as-is. —— */
.lab-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  line-height: 0;
  box-shadow: none;
}

.lab-mark.lab-mark-lg {
  padding: 0;
}

.lab-mark.lab-mark-sm {
  padding: 0;
}

.lab-mark img {
  height: 32px;
  width: auto;
  max-width: min(100%, min(340px, 100vw - 2.5rem));
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
  display: block;
}

.lab-mark.lab-mark-lg img {
  height: 44px;
  max-width: min(100%, min(420px, 100vw - 2.5rem));
}

.lab-mark.lab-mark-sm img {
  height: 26px;
  max-width: min(100%, min(280px, 100vw - 2.5rem));
}

.lab-mark.lab-mark-footer {
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* —— Conference link chips on workshop / tutorial pages —— */
.conf-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.conf-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ucla-blue-dark);
  background: var(--ucla-blue-soft);
  border: 1px solid rgba(39, 116, 174, 0.22);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.conf-link:hover {
  background: var(--ucla-blue);
  color: #fff;
  transform: translateY(-1px);
}

.conf-link::after {
  content: "↗";
  font-size: 0.85rem;
}

.conf-link.conf-link-muted {
  color: var(--color-text-muted);
  background: var(--color-surface-elevated);
  border-color: var(--color-border);
}

.conf-link.conf-link-muted:hover {
  color: var(--color-text);
  background: #fff;
  transform: none;
}

.footer-logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.footer-logo-row > img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.prose .section-head {
  max-width: 48rem;
}

/* —— Skip link (a11y) —— */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  padding: 0.65rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: #fff;
  background: var(--ucla-blue);
  border-radius: 0 0 var(--radius-sm) 0;
  text-decoration: none;
  transform: translateY(-120%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--ucla-gold);
  outline-offset: 2px;
}

/* —— Home: spotlight (dark tech panel — under hero) —— */
.spotlight-band {
  background:
    radial-gradient(ellipse at 85% 0%, rgba(6, 182, 212, 0.18), transparent 55%),
    radial-gradient(ellipse at 5% 100%, rgba(39, 116, 174, 0.18), transparent 55%),
    linear-gradient(180deg, #061525 0%, #08192c 100%);
  color: #e6edf5;
  padding: clamp(2.75rem, 5vw, 4rem) var(--space-md);
  border-top: 1px solid rgba(6, 182, 212, 0.2);
  border-bottom: 1px solid rgba(6, 182, 212, 0.2);
  position: relative;
  overflow: hidden;
}

.spotlight-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 85%);
          mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 85%);
  pointer-events: none;
}

.spotlight-band .section-inner {
  position: relative;
  z-index: 1;
}

.spotlight-band .section-kicker {
  color: rgba(230, 237, 245, 0.7);
}

.spotlight-band .section-kicker::before {
  background: var(--color-cyan);
}

.spotlight-head {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 44rem;
}

.spotlight-title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.6vw, 1.95rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #f5f9fc;
  margin: 0 0 0.65rem;
}

.spotlight-sub {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.6;
  color: rgba(230, 237, 245, 0.7);
  max-width: 42rem;
}

.spotlight-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: 1fr;
  background: rgba(6, 182, 212, 0.18);
  border: 1px solid rgba(6, 182, 212, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (min-width: 720px) {
  .spotlight-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .spotlight-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.spotlight-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.4rem 1.3rem 1.45rem;
  background: linear-gradient(180deg, rgba(8, 25, 44, 0.85) 0%, rgba(6, 21, 37, 0.95) 100%);
  color: #e6edf5;
  text-decoration: none;
  position: relative;
  transition: background 0.22s ease, transform 0.22s ease;
  min-height: 12.5rem;
  isolation: isolate;
}

.spotlight-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--color-cyan) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.spotlight-card::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-top: 1px solid rgba(230, 237, 245, 0.25);
  border-right: 1px solid rgba(230, 237, 245, 0.25);
  transition: border-color 0.22s ease;
}

.spotlight-card:hover {
  background: linear-gradient(180deg, rgba(10, 32, 55, 0.95) 0%, rgba(8, 25, 44, 1) 100%);
}

.spotlight-card:hover::before {
  opacity: 1;
}

.spotlight-card:hover::after {
  border-color: var(--color-cyan);
}

@media (prefers-reduced-motion: no-preference) {
  .spotlight-card:hover {
    transform: translateY(-2px);
  }
}

.spotlight-card-idx {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--color-cyan);
  margin-bottom: 0.25rem;
}

.spotlight-card-kicker {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(230, 237, 245, 0.55);
}

.spotlight-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #f5f9fc;
  margin: 0.05rem 0 0.2rem;
}

.spotlight-card-desc {
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(230, 237, 245, 0.7);
  flex: 1;
}

.spotlight-card-cta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-cyan);
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.spotlight-card-cta span {
  transition: transform 0.2s ease;
  display: inline-block;
}

.spotlight-card:hover .spotlight-card-cta span {
  transform: translateX(3px);
}

/* —— Scroll reveal (home; requires JS) —— */
.js .reveal-on-scroll {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .spotlight-track {
    transition: none;
  }

  .js .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .spotlight-nav-btn,
  .spotlight-dots button {
    transition: none;
  }
}

/* ================================================================
   Hero animated canvas — subtle dot grid (rendered by site.js)
   ================================================================ */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0.85;
  z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 80%);
          mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 80%);
}

.hero {
  cursor: default;
}

.hero .hero-inner {
  position: relative;
  z-index: 1;
}

/* Hide the static grid ::before when the canvas runs (cleaner) */
.js .hero::before {
  opacity: 0.35;
}

/* ================================================================
   Stats readout strip — control-panel feel
   ================================================================ */
.dx-stats {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem var(--space-md);
  position: relative;
  overflow: hidden;
}

.dx-stats::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(6, 182, 212, 0.45) 50%, transparent 100%);
}

.dx-stats-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  counter-reset: dxstat;
}

@media (min-width: 760px) {
  .dx-stats-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.dx-stats-row li {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  position: relative;
  padding-left: 0.9rem;
  counter-increment: dxstat;
}

.dx-stats-row li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  bottom: 0.45rem;
  width: 2px;
  background: linear-gradient(180deg, var(--color-cyan) 0%, transparent 100%);
  border-radius: 1px;
  opacity: 0.6;
}

.dx-stats-key {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.dx-stats-val {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.05rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
}

.dx-stats-val .dim {
  color: var(--color-text-muted);
  font-weight: 500;
  margin: 0 0.05em;
  font-size: 0.85em;
}

.dx-stats-meta {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* ================================================================
   Venues marquee — slim infinite scroll lockup
   ================================================================ */
.dx-venues {
  background: linear-gradient(180deg, #fafbfc 0%, #f3f5f8 100%);
  border-bottom: 1px solid var(--color-border);
  padding: 1.1rem 0;
  position: relative;
  overflow: hidden;
}

.dx-venues .section-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 0 var(--space-md);
}

.dx-venues-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.dx-venues-marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.dx-venues-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2.4rem;
  width: max-content;
  animation: dx-marquee 32s linear infinite;
}

.dx-venues-track li {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  white-space: nowrap;
}

.dx-venues-track li span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-cyan);
}

@keyframes dx-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .dx-venues-track {
    animation: none;
  }
}

/* ================================================================
   Calendar timeline — upcoming events
   ================================================================ */
.dx-calendar {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  counter-reset: dxev;
  position: relative;
}

.dx-event {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1.25rem;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  position: relative;
  overflow: hidden;
  counter-increment: dxev;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

@media (min-width: 720px) {
  .dx-event {
    grid-template-columns: 96px 1fr auto;
    gap: 1.5rem;
    padding: 1.1rem 1.25rem 1.1rem 1.4rem;
  }
}

.dx-event::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--color-border) 0%, var(--color-border) 100%);
  transition: background 0.22s ease;
}

.dx-event--upcoming::before {
  background: linear-gradient(180deg, var(--color-cyan) 0%, var(--ucla-blue) 100%);
}

.dx-event:hover {
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.08);
  transform: translateY(-1px);
}

.dx-event:hover::before {
  background: linear-gradient(180deg, var(--color-cyan) 0%, var(--ucla-blue) 100%);
}

.dx-event-date {
  display: grid;
  grid-template-rows: auto auto auto;
  align-items: baseline;
  gap: 0.05rem;
  text-align: center;
  padding: 0.2rem 0.4rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface-elevated);
}

.dx-event--upcoming .dx-event-date {
  border-color: rgba(6, 182, 212, 0.4);
  background: rgba(6, 182, 212, 0.04);
}

.dx-event-month {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-cyan);
}

.dx-event-day {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.dx-event-year {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
}

.dx-event-body {
  min-width: 0;
}

.dx-event-kind {
  margin: 0 0 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.dx-event-title {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.dx-event-title a {
  color: var(--color-text);
  text-decoration: none;
  background-image: linear-gradient(var(--color-cyan), var(--color-cyan));
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  transition: background-size 0.22s ease, color 0.22s ease;
}

.dx-event-title a:hover {
  color: var(--color-accent);
  background-size: 100% 1px;
}

.dx-event-meta {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.dx-event-status {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 0.32rem 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  white-space: nowrap;
  align-self: center;
  justify-self: start;
  margin-top: 0.6rem;
}

@media (min-width: 720px) {
  .dx-event-status {
    margin-top: 0;
    justify-self: end;
  }
}

.dx-event--upcoming .dx-event-status {
  color: var(--color-cyan);
  border-color: rgba(6, 182, 212, 0.4);
  background: rgba(6, 182, 212, 0.06);
  position: relative;
  padding-left: 1.25rem;
}

.dx-event--upcoming .dx-event-status::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.18);
  animation: dx-pulse 2.4s ease-in-out infinite;
}
