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

:root {
  --bg:        #182330;
  --surface:   #1d2d3f;
  --surface2:  #243347;
  --border:    rgba(255,255,255,0.09);
  --text:      rgba(255,255,255,0.92);
  --muted:     rgba(255,255,255,0.48);
  --gold:      #ffcd00;
  --gold-dim:  rgba(255,205,0,0.15);
}

/* scroll-behavior: smooth removed — interferes with scrollama trigger timing */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 8vw;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 78% 42%, rgba(255,205,0,0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 70%, rgba(0,98,155,0.10) 0%, transparent 50%);
  pointer-events: none;
}
#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 18rem;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.hero-eyebrow {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
#hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 7.5vw, 6.5rem);
  font-weight: 900;
  line-height: 1.04;
  max-width: 14ch;
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  color: var(--muted);
  max-width: 44ch;
  margin-bottom: 4rem;
  line-height: 1.65;
}
.scroll-cue {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  animation: nudge 2.2s ease-in-out infinite;
}
@keyframes nudge {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(7px); }
}

/* ── INTRO ── */
.intro-prose {
  max-width: 680px;
  margin: 0 auto;
  padding: 7rem 2rem 6rem;
  border-top: 1px solid var(--border);
}
.intro-prose p {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.2rem;
}
.intro-opening {
  font-family: 'Playfair Display', serif !important;
  font-style: normal !important;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem) !important;
  color: var(--text) !important;
  margin-bottom: 2rem !important;
  line-height: 1.5 !important;
}
.intro-statement {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.2rem !important;
}
.intro-kicker {
  font-family: 'Playfair Display', serif !important;
  font-style: italic !important;
  font-size: clamp(1.1rem, 2vw, 1.4rem) !important;
  color: var(--gold) !important;
  margin-top: 2rem !important;
  line-height: 1.5 !important;
}
.big-stat {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin: 1.75rem 0 0.35rem;
}
.stat-descriptor {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 1.8rem;
}

/* ── GRAVITY CENTER PILLS ── */
.center-list {
  margin: 1.4rem 0 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.center-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.center-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.center-item strong { color: var(--text); font-weight: 500; }

/* ── SCROLL WRAPPER ── */
#scroll-wrapper {
  display: flex;
  align-items: flex-start;
}

/* Sticky map panel — GPU-composited layer */
#map-panel {
  position: sticky;
  top: 0;
  width: 57%;
  height: 100vh;
  flex-shrink: 0;
  background: #0d1a27;
  will-change: transform;
}
/* touch-action keeps native scroll working while map handles pointer events */
#map { width: 100%; height: 100%; touch-action: pan-y; }

/* Info box */
#info-box {
  position: absolute;
  bottom: 1.75rem;
  left: 1.75rem;
  z-index: 1000;
  background: rgba(24,35,48,0.95);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.1rem 1.35rem 1rem;
  width: 284px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  backdrop-filter: blur(12px);
  will-change: opacity, transform;
}
#info-box.visible { opacity: 1; transform: translateY(0); }
.ib-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.ib-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.85rem;
}
.ib-stats { display: flex; gap: 1.5rem; margin-bottom: 0.75rem; }
.ib-val {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.ib-unit {
  font-family: 'Oswald', sans-serif;
  font-size: 0.6rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  display: block;
  margin-top: 0.2rem;
}
.ib-college-name {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 0.18rem;
  display: block;
  font-style: italic;
}
.ib-note {
  font-size: 0.71rem;
  color: var(--muted);
  font-style: italic;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  line-height: 1.55;
}

/* Map badge */
#map-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 1000;
  background: rgba(24,35,48,0.88);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.28rem 0.52rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  color: var(--muted);
}

/* Legend */
#map-legend {
  position: absolute;
  top: 2.6rem;
  right: 0.85rem;
  z-index: 1000;
  background: rgba(24,35,48,0.92);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.55rem 0.75rem;
  font-size: 0.67rem;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  line-height: 1.9;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#map-legend.visible { opacity: 1; }
.legend-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.18rem 0;
}
.legend-row + .legend-row {
  border-top: 1px solid var(--border);
  margin-top: 0.28rem;
  padding-top: 0.38rem;
}
.legend-icon-outer {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.legend-icon-inner {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: white;
  color: black;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  line-height: 1;
}
.legend-name {
  font-size: 0.7rem;
  line-height: 1.25;
  white-space: nowrap;
}

/* Story steps */
#story-steps { width: 43%; padding: 0 4.5rem; }

.step {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 5rem 0;
}
.step-content { max-width: 36ch; }
.tag-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: white;
  border: 2.5px solid currentColor;
  margin-right: 0.5rem;
  vertical-align: middle;
  box-shadow: 0 1px 6px rgba(0,0,0,0.3);
  font-size: 14px;
  line-height: 1;
  padding-bottom: 2px;
  padding-left: 3px;
}
.step-tag {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.step-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.step-content p {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  margin-bottom: 0.5rem;
}
.step-content p strong { color: var(--text); }
.time-card {
  background: var(--surface);
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
}
.time-card .tc-time {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
}
.time-card .tc-time span { font-size: 1.1rem; }
.time-card .tc-desc {
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 0.35rem;
}
.time-card.tc-green  { border-left-color: #34d399; }
.time-card.tc-green  .tc-time { color: #34d399; }
.time-card.tc-red    { border-left-color: #ef4444; }
.time-card.tc-red    .tc-time { color: #ef4444; }
.time-card.orange  { border-left-color: #f97316; }
.time-card.orange  .tc-time { color: #f97316; }
.time-card.blue    { border-left-color: #60a5fa; }
.time-card.blue    .tc-time { color: #60a5fa; }
.time-card.purple  { border-left-color: #a78bfa; }
.time-card.purple  .tc-time { color: #a78bfa; }

/* Layout A — side by side */
.time-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.2rem 0;
}
.time-cards-row .time-card { margin: 0; }

/* Layout B — single card, two values */
.time-card-split {
  background: var(--surface);
  border-radius: 6px;
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.time-card-split .tcs-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border);
}
.time-card-split .tcs-side { flex: 1; }
.time-card-split .tc-time {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}
.time-card-split .tc-time span { font-size: 1.1rem; }
.time-card-split .tc-desc {
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 0.35rem;
}
.tcs-near .tc-time { color: #34d399; }
.tcs-far  .tc-time { color: #ef4444; }

/* Layout D — stacked with gap label */
.time-cards-gap {
  margin: 1.2rem 0;
}
.time-cards-gap .time-card { margin: 0; }
.tc-gap-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding: 0.5rem 0;
  border-left: 1px dashed var(--border);
  margin-left: 1.5rem;
}
/* College ranking list */
.college-ranking {
  margin: 1.2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.cr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  padding: 0.3rem 0;
}
.cr-name {
  color: rgba(255,255,255,0.65);
}
.cr-time {
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  color: #0a1520;
}

.step-content p:last-of-type {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold);
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.footnote-tip {
  font-size: 0.78rem;
  color: #4b6070;
  font-style: italic;
  line-height: 1.55;
  margin-top: 0.5rem;
}

/* Synthesis legend */
.synth-legend {
  margin: 1.2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.synth-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.synth-swatch {
  width: 22px; height: 4px;
  border-radius: 2px;
  flex-shrink: 0;
}

.col-hidden { display: none; }
.profile-cell, .col-header {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.profile-cell.visible, .col-header.visible {
  opacity: 1;
  transform: translateY(0);
}
.profile-cell.visible.col-dimmed, .col-header.visible.col-dimmed {
  opacity: 0.3;
}

/* ── TRANSITION ── */
#transition-banner {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 5rem 2rem;
  background: var(--surface);
  position: relative;
}
#transition-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12rem;
  background: linear-gradient(to bottom, var(--bg), transparent);
  pointer-events: none;
}
#transition-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 12rem;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}
#transition-banner h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  max-width: 22ch;
  margin-bottom: 1rem;
}
#transition-banner p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--gold);
  max-width: 44ch;
  line-height: 1.65;
}

/* ── PROFILES SECTION ── */
#profiles {
  padding: 5rem 8vw 4rem;
  max-width: 980px;
  margin: 0 auto;
}
#profiles h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 0.4rem;
}
.profiles-subhead {
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 2.5rem;
}
.profile-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.profile-table {
  border-collapse: separate;
  border-spacing: 5px;
}
.profile-table.table-ranked {
  margin: 0 auto;
}
.col-rank {
  padding-right: 2.2rem;
}
#profiles-chart {
  width: 660px;
  max-width: 100%;
  overflow: hidden;
  margin: 0 auto;
  zoom: 1.2;
}
.profile-table th {
  text-align: center;
  padding: 0.55rem 0.6rem 0.85rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.profile-table th:first-child {
  text-align: left;
  color: var(--muted);
  padding-left: 0;
}
.profile-name {
  padding: 0 1rem 0 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  white-space: nowrap;
  vertical-align: middle;
}
.profile-cell {
  text-align: center;
  padding: 0.7rem 0.65rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.88rem;
  border-radius: 7px;
  font-weight: bold;
  vertical-align: middle;
}

/* ── VERDICT ── */
#verdict {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem 8vw 6rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
#verdict h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 2rem;
  color: #ffffff !important;
}
#verdict p {
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.82;
  margin-bottom: 1.2rem;
  text-align: left;
}
#verdict p strong { color: var(--text); }
.verdict-kicker {
  font-family: 'Playfair Display', serif !important;
  font-style: italic !important;
  font-size: clamp(1.1rem, 2vw, 1.4rem) !important;
  color: var(--gold) !important;
  text-align: center !important;
  margin-top: 2rem !important;
  line-height: 1.5 !important;
}
.verdict-pull {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-style: italic;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin: 2.5rem auto;
  max-width: 32ch;
  text-align: center;
}

.college-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.05),
    0 6px 16px rgba(0,0,0,0.35);
}
.college-wrap img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  filter: brightness(1.15) contrast(1.05);
}


/* ── FOOTER ── */
footer {
  padding: 1.8rem 8vw;
  border-top: 1px solid var(--border);
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  color: #3a5068;
  letter-spacing: 0.05em;
  text-align: center;
}

.center-wrap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color);
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.05),
    0 8px 22px rgba(0,0,0,0.45);
}

.center-wrap.active {
  transform: scale(1.08);
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.08),
    0 0 18px var(--color),
    0 10px 28px rgba(0,0,0,0.6);
}

.center-wrap svg {
  width: 20px;
  height: 20px;
  stroke: var(--color);
  stroke-width: 1.8;
  fill: none;
  opacity: 0.9;
}

/* ── LEAFLET OVERRIDES ── */
.leaflet-control-zoom a {
  background: rgba(24,35,48,0.95) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
.leaflet-control-zoom { border: 1px solid var(--border) !important; }
.leaflet-control-attribution {
  background: rgba(24,35,48,0.75) !important;
  color: #3a5068 !important;
  font-size: 0.58rem !important;
}
.leaflet-control-attribution a { color: #3a5068 !important; }
.ucsd-tooltip {
  background: rgba(24,35,48,0.95) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 11px !important;
  padding: 3px 8px !important;
  border-radius: 4px !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}
.ucsd-tooltip::before { border-top-color: var(--border) !important; }

.leaflet-interactive.pulse {
  animation: pulse 2.4s ease-in-out infinite;
}

.center-wrap {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.08),
    0 8px 20px rgba(0,0,0,0.5);
}

.center-inner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: white;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.map-faded {
  filter: grayscale(0.6) brightness(0.65) saturate(0.7);
  transition: filter 1.2s ease, opacity 1.2s ease;
}

/* COLUMN HEADERS */
.header-icon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.header-icon {
  font-size: 1.5rem;
  line-height: 1;
}
.header-label {
  font-size: 0.78rem;
  font-family: Inter, sans-serif;
  color: var(--muted);
}

/* ROW LABELS */
.college-label-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.college-wrap-sm {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 1px 5px rgba(0,0,0,0.28);
  flex-shrink: 0;
}
.college-wrap-sm img {
  width: 68%;
  height: 68%;
  object-fit: contain;
  filter: brightness(1.1) contrast(1.05);
}
.center-wrap-sm {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.07), 0 3px 10px rgba(0,0,0,0.45);
}
.center-inner-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

@keyframes pulse {
  0%   { transform: scale(1); opacity: 1; }
  50%  { transform: scale(1.12); opacity: 0.75; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes centerRipple {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 var(--glow);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 20px rgba(255,255,255,0.08);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 transparent;
  }
}

.center-active {
  animation: centerRipple 1.8s ease-in-out infinite;
}

.flow-line {
  stroke-dasharray: 8 10;
  animation: flowDash 1.2s linear infinite;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.08));
  opacity: 0.95;
}

@keyframes flowDash {
  to { stroke-dashoffset: -36; }
}

/* ── MARKER TRANSITIONS ── */
.college-icon, .center-icon { transition: opacity 0.45s ease; }

/* ── PROFILES SCROLLY LAYOUT ── */
#profiles-wrapper {
  display: flex;
  align-items: flex-start;
  position: relative;
}
#profiles-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 14rem;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
  z-index: 10;
}
#profiles-panel {
  position: sticky;
  top: 0;
  flex: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 3vw;
  overflow: hidden;
  text-align: center;
}
#profiles-panel h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  margin-bottom: 0;
}
#profiles-steps {
  width: 1px;
  flex-shrink: 0;
  visibility: hidden;
  overflow: hidden;
}
.profile-step { min-height: 65vh; }
.profile-logo-sm {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: white;
  object-fit: contain;
  padding: 2px;
  margin-right: 0.5rem;
  vertical-align: middle;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.profile-col { opacity: 0; transition: opacity 0.5s ease; }
.profile-col.visible { opacity: 1; }

/* ── MOBILE ── */
@media (max-width: 760px) {
  #scroll-wrapper { flex-direction: column; }
  #map-panel { position: relative; width: 100%; height: 48vh; }
  #story-steps { width: 100%; padding: 0 1.5rem; }
  .step { min-height: 75vh; }
  #info-box { bottom: auto; top: 0.8rem; left: 0.8rem; right: 0.8rem; width: auto; }
  #hero { padding: 0 6vw; }
  #profiles, #verdict, #methodology { padding-left: 6vw; padding-right: 6vw; }
}
