:root {
  --bg-deep: #eaf5ff;
  --bg-panel: rgba(246, 251, 255, 0.86);
  --bg-panel-strong: rgba(255, 255, 255, 0.96);
  --bg-chip: rgba(38, 103, 198, 0.09);
  --text-main: #071b36;
  --text-soft: #123d72;
  --text-muted: #4f709a;
  --line: rgba(35, 92, 166, 0.16);
  --line-strong: rgba(28, 82, 156, 0.3);
  --gold: #c89435;
  --blue: #165ec8;
  --cyan: #37b8ee;
  --green: #67dfac;
  --purple: #bb90ff;
  --shadow: 0 18px 54px rgba(36, 82, 140, 0.12);
  --radius-xl: 18px;
  --radius-lg: 12px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --font-brand: "Space Grotesk", "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 14% 12%, rgba(22, 94, 200, 0.17), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(55, 184, 238, 0.17), transparent 22%),
    radial-gradient(circle at 76% 78%, rgba(7, 27, 54, 0.08), transparent 26%),
    linear-gradient(180deg, #f9fcff 0%, #e5f2ff 100%);
  color: var(--text-main);
  overflow-x: hidden;
}

body.intro-active {
  overflow: hidden;
}

a,
button,
input {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.background-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(18px);
  pointer-events: none;
  z-index: -1;
}

.orb-one {
  top: 9%;
  left: -8%;
  width: 28rem;
  height: 28rem;
  background: radial-gradient(circle, rgba(47, 116, 234, 0.18), transparent 62%);
  animation: floatOrb 14s ease-in-out infinite;
}

.orb-two {
  right: -10%;
  top: 32%;
  width: 26rem;
  height: 26rem;
  background: radial-gradient(circle, rgba(78, 196, 242, 0.16), transparent 66%);
  animation: floatOrb 16s ease-in-out infinite reverse;
}

.orb-three {
  left: 28%;
  bottom: -14%;
  width: 34rem;
  height: 34rem;
  background: radial-gradient(circle, rgba(47, 116, 234, 0.12), transparent 70%);
  animation: floatOrb 20s ease-in-out infinite;
}

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 2rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(circle at 18% 18%, rgba(112, 172, 255, 0.34), transparent 24%),
    radial-gradient(circle at 82% 20%, rgba(115, 226, 255, 0.26), transparent 22%),
    radial-gradient(circle at 50% 84%, rgba(244, 193, 111, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(24, 49, 92, 0.95), rgba(40, 74, 130, 0.92));
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), visibility 1s ease, transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.intro-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
}

.intro-overlay::before,
.intro-overlay::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.intro-overlay::before {
  top: -10%;
  left: -8%;
  width: 46vw;
  height: 46vw;
  background: radial-gradient(circle, rgba(105, 175, 255, 0.18), transparent 68%);
  filter: blur(22px);
  animation: introDrift 12s ease-in-out infinite;
}

.intro-overlay::after {
  right: -8%;
  bottom: -12%;
  width: 42vw;
  height: 42vw;
  background: radial-gradient(circle, rgba(104, 219, 255, 0.16), transparent 70%);
  filter: blur(18px);
  animation: introDrift 15s ease-in-out infinite reverse;
}

.intro-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(109, 163, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 163, 255, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black, transparent 85%);
  animation: gridBreathe 5s ease-in-out infinite;
}

.intro-pulse {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.7;
}

.intro-pulse-left {
  left: 8%;
  top: 12%;
  background: rgba(108, 160, 255, 0.22);
  animation: introPulse 9s ease-in-out infinite;
}

.intro-pulse-right {
  right: 8%;
  bottom: 10%;
  background: rgba(244, 193, 111, 0.2);
  animation: introPulse 10s ease-in-out infinite reverse;
}

.intro-stage {
  position: relative;
  width: min(100%, 760px);
  max-height: calc(100dvh - 2rem);
  padding: 2.4rem;
  border: 1px solid rgba(118, 159, 210, 0.14);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(18, 39, 73, 0.72), rgba(26, 56, 104, 0.68));
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.9s ease;
  animation: introCardFloat 7.5s ease-in-out infinite;
}

.intro-stage::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -10%;
  width: 52%;
  height: 160%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  transform: rotate(18deg);
  animation: introSheen 9s linear infinite;
}

.intro-overlay.is-hidden .intro-stage {
  opacity: 0;
  transform: translateY(-10px) scale(0.985);
}

.intro-logo-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.3rem;
}

.intro-logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.intro-logo-card img {
  width: clamp(68px, 7vw, 90px);
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.28));
}

.intro-logo-card span {
  font-family: var(--font-brand);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.intro-divider {
  width: 1px;
  height: 84px;
  background: linear-gradient(180deg, transparent, rgba(101, 215, 255, 0.44), transparent);
}

.intro-copy {
  text-align: center;
}

.intro-kicker {
  margin: 0 0 0.75rem;
  color: var(--blue);
  font-family: var(--font-brand);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.intro-copy h1 {
  margin: 0;
  color: var(--blue);
  font-family: var(--font-brand);
  font-size: clamp(3.2rem, 9vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: 0.12em;
  text-shadow: 0 0 18px rgba(108, 160, 255, 0.28), 0 0 36px rgba(101, 215, 255, 0.12);
}

.intro-subtitle {
  margin: 0.9rem auto 0;
  max-width: 32rem;
  color: var(--blue);
  font-family: var(--font-brand);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro-progress-block {
  margin: 2rem auto 0;
  width: min(100%, 420px);
}

.intro-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.intro-progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.intro-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  transition: width 0.24s ease;
}

.intro-note {
  margin: 1rem auto 0;
  max-width: 34rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.65;
  font-size: 0.86rem;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 26;
  padding: 0.8rem 0 0.3rem;
  background: linear-gradient(180deg, rgba(246, 251, 255, 0.98), rgba(246, 251, 255, 0.82));
  backdrop-filter: blur(18px);
}

.site-nav-shell {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 0 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  color: inherit;
  text-decoration: none;
  flex-shrink: 0;
}

.site-nav-brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(47, 116, 234, 0.08);
  border: 1px solid rgba(47, 116, 234, 0.1);
  box-shadow: 0 10px 24px rgba(36, 82, 140, 0.08);
}

.site-nav-brand-mark img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.site-nav-brand-copy {
  display: grid;
  gap: 0.02rem;
}

.site-nav-brand-copy strong {
  font-family: var(--font-brand);
  font-size: 0.95rem;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--text-main);
}

.site-nav-brand-copy em {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav-link {
  padding: 0.62rem 0.86rem;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.14s ease, color 0.14s ease, transform 0.14s ease;
}

.site-nav-link:hover,
.site-nav-link.is-active {
  background: rgba(47, 116, 234, 0.08);
  color: var(--text-main);
}

.app-shell {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 0.4rem clamp(0.9rem, 2.4vw, 1.4rem) 3rem;
}

.top-bar {
  position: sticky;
  top: 4.2rem;
  z-index: 20;
  display: block;
  margin-bottom: 1rem;
  padding: 0.4rem 0 0.2rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.top-bar-search {
  display: grid;
  gap: 0.6rem;
  padding: 0.15rem 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  position: relative;
}

.search-input-shell {
  display: flex;
  align-items: center;
  gap: 0.52rem;
  width: min(100%, 360px);
  padding: 0.08rem 0.12rem 0.08rem 0.22rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 20px rgba(36, 82, 140, 0.06);
}

.search-input-shell svg {
  width: 20px;
  height: 20px;
  fill: var(--blue);
  flex-shrink: 0;
  margin-left: 0.1rem;
}

.inline-search-field span,
.rank-filter-field span {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.top-bar-search input,
.inline-search-field input,
.rank-filter-field input {
  width: 100%;
  padding: 0.46rem 0.05rem 0.46rem 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: var(--text-main);
  outline: none;
  font-size: 0.92rem;
}

.top-bar-search input:focus,
.inline-search-field input:focus,
.rank-filter-field input:focus {
  box-shadow: none;
}

.search-input-shell:focus-within {
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 10px 26px rgba(47, 116, 234, 0.1);
}

.search-results {
  display: none;
  gap: 0.55rem;
  width: min(100%, 520px);
  max-height: min(60vh, 420px);
  padding: 0.35rem;
  overflow-y: auto;
  border: 1px solid rgba(47, 116, 234, 0.12);
  border-radius: 18px;
  background: rgba(248, 252, 255, 0.96);
  box-shadow: 0 18px 44px rgba(36, 82, 140, 0.14);
  backdrop-filter: blur(18px);
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(22, 94, 200, 0.45) transparent;
}

.search-results.is-visible {
  display: grid;
}

.quick-picks {
  margin-bottom: 0.45rem;
}

.quick-picks-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.quick-picks-row::-webkit-scrollbar {
  display: none;
}

.quick-pick-card {
  display: grid;
  gap: 0.24rem;
  min-width: 190px;
  padding: 0.72rem 0.82rem;
  border-radius: 9px;
  border: 1px solid rgba(47, 116, 234, 0.12);
  background: rgba(255, 255, 255, 0.6);
  text-align: left;
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(36, 82, 140, 0.06);
  scroll-snap-align: start;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.quick-pick-card:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 94, 200, 0.24);
  box-shadow: 0 16px 32px rgba(36, 82, 140, 0.1);
}

.quick-pick-card strong {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.quick-pick-card span {
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.quick-picks-mobile-anchor {
  display: none;
}

.search-result-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 0.74rem 0.82rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  text-align: left;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.search-result-card:hover,
.search-result-card.is-active {
  transform: translateY(-1px);
  border-color: rgba(22, 94, 200, 0.28);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 24px rgba(36, 82, 140, 0.08);
}

.search-result-card-static {
  cursor: default;
}

.search-result-card strong {
  display: block;
  margin-bottom: 0.18rem;
  font-size: 0.9rem;
}

.search-result-card span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.search-result-meta {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(108, 160, 255, 0.12);
  color: var(--blue);
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 700;
}

.reveal {
  opacity: 1;
  transform: none;
}

.glass-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-section {
  padding: 0.45rem 0 1rem;
}

.hero-brand-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hero-brand-card {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.24rem 0;
}

.hero-brand-mark {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(47, 116, 234, 0.08);
  border: 1px solid rgba(47, 116, 234, 0.1);
  box-shadow: 0 12px 28px rgba(36, 82, 140, 0.08);
}

.hero-brand-mark img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.hero-brand-copy {
  display: grid;
  gap: 0.06rem;
  text-align: left;
}

.hero-brand-copy strong {
  font-family: var(--font-brand);
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  color: var(--text-main);
}

.hero-brand-copy span {
  font-size: 0.82rem;
  color: var(--blue);
  font-weight: 600;
}

.hero-copy {
  text-align: center;
}

.hero-kicker,
.section-kicker,
.selection-label {
  margin: 0 0 0.55rem;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  color: var(--blue);
  font-family: var(--font-brand);
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  line-height: 0.96;
  letter-spacing: 0.06em;
  text-shadow: 0 0 18px rgba(108, 160, 255, 0.28), 0 0 32px rgba(101, 215, 255, 0.14);
}

.hero-copy h2 {
  margin: 0.8rem auto 0;
  max-width: 38rem;
  color: var(--blue);
  font-family: "Manrope", sans-serif;
  font-size: clamp(0.94rem, 1.9vw, 1.14rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}

.hero-description {
  max-width: 43rem;
  margin: 0.82rem auto 0;
  color: var(--text-muted);
  line-height: 1.54;
  font-size: 0.86rem;
}

.selector-section,
.contact-section {
  padding: 1rem;
}

.section-heading h2 {
  margin: 0;
  color: var(--blue);
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
}

.section-heading {
  margin-bottom: 1.25rem;
}

.inline-search-field,
.rank-filter-field {
  display: grid;
  gap: 0.45rem;
}

.inline-search-field {
  margin-top: 0.15rem;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-top: 0.9rem;
}

.rank-main {
  display: grid;
  gap: 1rem;
}

.college-summary-panel,
.rank-display-panel,
.info-panel {
  padding: 0.78rem;
}

.college-summary-empty h2 {
  margin: 0;
  max-width: 35rem;
  line-height: 1.45;
}

.college-summary-header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.college-summary-header > div:first-child,
.panel-header > div:first-child {
  min-width: 0;
}

.college-links-block {
  display: flex;
  gap: 0.42rem;
  align-items: center;
}

.college-summary-header h2 {
  margin: 0;
  font-size: clamp(1.05rem, 2.3vw, 1.34rem);
  letter-spacing: 0.01em;
  line-height: 1.22;
  overflow-wrap: anywhere;
  word-break: normal;
}

.college-meta-line {
  margin: 0.45rem 0 0;
  color: var(--text-soft);
  line-height: 1.6;
  font-size: 0.84rem;
}

.college-website-link,
.college-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(47, 116, 234, 0.14);
  background: rgba(47, 116, 234, 0.06);
  color: var(--blue);
  text-decoration: none;
}

.college-website-link svg,
.college-contact-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.college-stat-grid,
.rank-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.stat-card,
.summary-card {
  padding: 0.66rem 0.72rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.stat-card span,
.summary-card span {
  display: block;
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stat-card strong,
.summary-card strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.selection-stack {
  display: grid;
  gap: 0.72rem;
  margin-top: 0.95rem;
}

.year-selector,
.program-rail,
.round-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.year-button,
.program-chip,
.round-tab,
.empty-chip {
  padding: 0.34rem 0.48rem;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  color: var(--text-soft);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  font-size: 0.77rem;
  line-height: 1.2;
}

.empty-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  color: var(--text-muted);
  font-weight: 700;
}

.year-button:hover,
.program-chip:hover,
.round-tab:hover,
.year-button.is-active,
.program-chip.is-active,
.round-tab.is-active {
  transform: translateY(-1px);
  border-color: rgba(101, 215, 255, 0.3);
  background: rgba(101, 215, 255, 0.12);
  color: var(--text-main);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.panel-header h2,
.panel-header-tight h2 {
  margin: 0;
  font-size: clamp(1rem, 2.1vw, 1.24rem);
  font-family: "Manrope", sans-serif;
  letter-spacing: -0.01em;
  text-transform: none;
  line-height: 1.28;
  overflow-wrap: anywhere;
  word-break: normal;
}

.panel-header-tight h2 {
  font-size: 1.25rem;
}

.export-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(244, 193, 111, 0.18), rgba(108, 160, 255, 0.12));
}

.export-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.export-button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.rank-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
  align-items: end;
  margin: 0.7rem 0;
}

.table-shell {
  overflow: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.rank-table th,
.rank-table td {
  padding: 0.56rem 0.62rem;
  text-align: left;
  border-bottom: 1px solid rgba(118, 159, 210, 0.08);
}

.rank-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(244, 249, 255, 0.98);
  color: var(--blue);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rank-table tbody tr:hover {
  background: rgba(47, 116, 234, 0.03);
}

.rank-category-code {
  display: inline-block;
  min-width: 40px;
  font-weight: 800;
}

.rank-category-name {
  display: block;
  margin-top: 0.08rem;
  color: var(--text-muted);
  font-size: 0.68rem;
}

.rank-value {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-main);
}

.table-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 1rem !important;
}

.info-panel h2 {
  font-size: 1.2rem;
}

.note-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-soft);
  line-height: 1.7;
}

.contact-resource-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.92fr;
  gap: 0.9rem;
  align-items: start;
}

.contact-block,
.resource-block {
  display: grid;
  gap: 0.62rem;
}

.contact-block-title {
  margin: 0;
  color: var(--blue);
  font-family: var(--font-brand);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.resource-block-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.resource-mini-copy {
  margin: 0.32rem 0 0;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.resource-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.resource-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(47, 116, 234, 0.14);
  background: rgba(255, 255, 255, 0.84);
  color: var(--blue);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(36, 82, 140, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.resource-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 116, 234, 0.24);
  box-shadow: 0 14px 28px rgba(36, 82, 140, 0.12);
}

.resource-icon-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.resource-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(47, 116, 234, 0.12);
  background: rgba(255, 255, 255, 0.86);
  color: var(--blue);
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(36, 82, 140, 0.08);
}

.resource-icon-link svg,
.instagram-link svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex-shrink: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.42rem;
}

.contact-card {
  display: grid;
  gap: 0.2rem;
  padding: 0.56rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  text-decoration: none;
}

.contact-card span {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.contact-card strong {
  color: var(--text-main);
  font-size: 0.78rem;
}

.site-footer {
  padding: 2.4rem clamp(1.2rem, 3vw, 2rem) 1.9rem;
  border-top: 1px solid rgba(108, 160, 255, 0.16);
}

.footer-shell {
  width: min(100%, 1240px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 3.2rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.footer-brand-block {
  padding: 0;
}

.footer-brand-logo {
  width: min(100%, 220px);
  height: auto;
  margin-bottom: 1rem;
  object-fit: contain;
}

.footer-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 1.4rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(108, 160, 255, 0.22), rgba(108, 160, 255, 0.08));
  box-shadow: 0 0 24px rgba(108, 160, 255, 0.2);
}

.footer-brand-mark img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.footer-brand-title {
  margin: 0 0 0.5rem;
  color: var(--text-main);
  font-family: "Manrope", sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  text-shadow: none;
}

.footer-brand-subtitle {
  margin: 0 0 0.9rem;
  color: var(--blue);
  font-family: var(--font-brand);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-brand-copy {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.92rem;
  max-width: 30rem;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 2rem;
  align-content: start;
}

.footer-column-title {
  margin: 0 0 1rem;
  color: var(--blue);
  font-family: var(--font-brand);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-column {
  display: grid;
  gap: 0.85rem;
}

.footer-column a {
  display: block;
  min-height: 0;
  padding: 0;
  color: var(--blue);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.footer-column a:hover {
  color: var(--text-main);
  transform: translateX(2px);
}

.footer-bottom,
.footer-disclaimer {
  width: min(100%, 1240px);
  margin: 2.2rem auto 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(108, 160, 255, 0.14);
  color: var(--text-muted);
  font-size: 0.78rem;
}

.footer-disclaimer {
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.7;
  max-width: min(100%, 1240px);
  margin-top: 0.7rem;
}

#heroSection,
#quickPicksSection,
#rankSection,
#contactSection,
#footerSection {
  scroll-margin-top: 7rem;
}

.ripple {
  position: relative;
  overflow: hidden;
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  25% {
    transform: translate3d(18px, -20px, 0) scale(1.05);
  }
  50% {
    transform: translate3d(-12px, -38px, 0) scale(1.08);
  }
  75% {
    transform: translate3d(14px, -10px, 0) scale(0.98);
  }
}

@keyframes introPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes introCardFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes introSheen {
  0% {
    transform: translateX(-32%) rotate(18deg);
  }
  100% {
    transform: translateX(188%) rotate(18deg);
  }
}

@keyframes introDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(12px, -14px, 0) scale(1.08);
  }
}

@keyframes gridBreathe {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.9;
  }
}

@media (max-width: 1120px) {
  .contact-grid,
  .college-stat-grid,
  .rank-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-resource-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .footer-shell,
  .footer-bottom,
  .footer-disclaimer {
    width: 100%;
  }

  .contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-shell {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 720px) {
  .app-shell {
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
  }

  .app-shell,
  .site-footer {
    padding-left: 0.82rem;
    padding-right: 0.82rem;
  }

  .site-nav {
    padding: 0.38rem 0 0.12rem;
  }

  .site-nav-shell {
    padding: 0 0.82rem;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.3rem;
  }

  .site-nav-links {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    gap: 0.18rem;
    overflow: visible;
    flex-wrap: wrap;
    padding-bottom: 0;
  }

  .site-nav-brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .site-nav-brand-mark img {
    width: 19px;
    height: 19px;
  }

  .site-nav-brand-copy strong {
    font-size: 0.74rem;
  }

  .site-nav-brand-copy em {
    font-size: 0.58rem;
  }

  .site-nav-link {
    min-height: 1.95rem;
    padding: 0.24rem 0.12rem;
    border-radius: 10px;
    text-align: center;
    font-size: 0.57rem;
    line-height: 1.08;
  }

  .contact-grid,
  .footer-links-grid {
    grid-template-columns: 1fr;
  }

  .rank-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .intro-stage,
  .spotlight-section,
  .contact-section,
  .college-summary-panel,
  .rank-display-panel,
  .info-panel,
  .footer-shell {
    padding: 0.92rem;
  }

  .intro-logo-cluster,
  .hero-brand-row {
    flex-direction: column;
  }

  .intro-overlay {
    display: block;
    padding: max(0.7rem, env(safe-area-inset-top)) 0.7rem 0.7rem;
  }

  .intro-stage {
    width: 100%;
    max-width: none;
    max-height: none;
    min-height: 0;
    margin: 0 auto;
    padding: 0.95rem 0.85rem 1rem;
    border-radius: 18px;
  }

  .intro-logo-cluster {
    gap: 0.85rem;
    margin-bottom: 1rem;
  }

  .intro-logo-card {
    gap: 0.42rem;
  }

  .intro-logo-card img {
    width: 56px;
  }

  .intro-logo-card span {
    font-size: 0.64rem;
    letter-spacing: 0.08em;
  }

  .intro-copy h1 {
    font-size: clamp(1.8rem, 12vw, 2.8rem);
  }

  .intro-subtitle {
    max-width: 18rem;
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    text-transform: none;
  }

  .intro-progress-block {
    margin-top: 1rem;
    width: 100%;
  }

  .intro-progress-meta {
    font-size: 0.7rem;
  }

  .intro-note {
    font-size: 0.66rem;
    line-height: 1.45;
  }

  .intro-divider {
    width: 68px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(101, 215, 255, 0.44), transparent);
  }

  .college-summary-header,
  .panel-header,
  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .top-bar-search input,
  .rank-filter-field input {
    font-size: 0.8rem;
  }

  .search-input-shell {
    width: 100%;
    border-radius: 18px;
    padding: 0.02rem 0.78rem;
    box-shadow: 0 8px 20px rgba(36, 82, 140, 0.06);
  }

  .top-bar {
    top: 4.55rem;
    margin-bottom: 0.3rem;
    padding-top: 0.1rem;
  }

  .top-bar-search {
    gap: 0.38rem;
    padding: 0.08rem 0;
    box-shadow: none;
  }

  .search-input-shell svg {
    width: 22px;
    height: 22px;
  }

  .search-input-shell {
    background: rgba(255, 255, 255, 0.86);
  }

  .quick-picks {
    order: 3;
    margin-top: -0.1rem;
    margin-bottom: 0.18rem;
  }

  .hero-section {
    order: 2;
    padding-top: 0.1rem;
    padding-bottom: 0.48rem;
  }

  .rank-layout {
    order: 4;
    margin-top: 0.28rem;
  }

  .contact-section {
    order: 5;
  }

  .quick-picks-row {
    display: flex;
    gap: 0.28rem;
    overflow-x: auto;
    padding-bottom: 0.1rem;
  }

  .quick-pick-card {
    min-width: 148px;
    width: 148px;
    padding: 0.5rem 0.54rem;
    gap: 0.1rem;
    border-radius: 9px;
    box-shadow: 0 4px 12px rgba(36, 82, 140, 0.05);
  }

  .quick-pick-card strong {
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .quick-pick-card span {
    font-size: 0.62rem;
    line-height: 1.12;
  }

  .hero-brand-card {
    gap: 0.48rem;
  }

  .hero-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .hero-brand-mark img {
    width: 24px;
    height: 24px;
  }

  .hero-brand-copy strong {
    font-size: 0.84rem;
  }

  .hero-brand-copy span {
    font-size: 0.66rem;
  }

  .hero-copy h1 {
    font-size: 2.15rem;
  }

  .hero-copy h2 {
    max-width: 17rem;
    margin-top: 0.48rem;
    font-size: 0.72rem;
    line-height: 1.24;
  }

  .hero-description {
    max-width: 18.5rem;
    margin-top: 0.55rem;
    font-size: 0.71rem;
    line-height: 1.42;
  }

  .college-links-block {
    justify-content: flex-start;
  }

  .year-selector {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .program-rail,
  .round-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .year-button,
  .program-chip,
  .round-tab {
    width: 100%;
    min-height: 2.14rem;
    text-align: center;
    white-space: normal;
    font-size: 0.72rem;
  }

  .program-chip {
    padding-inline: 0.36rem;
  }

  .rank-table {
    min-width: 0;
  }

  .rank-table thead {
    display: none;
  }

  .rank-table tbody {
    display: grid;
    gap: 0.45rem;
    padding: 0.45rem;
  }

  .rank-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    padding: 0.55rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.88);
  }

  .rank-table td {
    padding: 0;
    border-bottom: 0;
  }

  .rank-table tr:has(.table-empty) {
    grid-template-columns: 1fr;
  }

  .rank-category-code {
    min-width: 0;
    font-size: 0.78rem;
  }

  .rank-category-name {
    font-size: 0.63rem;
    line-height: 1.28;
  }

  .rank-value {
    font-size: 0.8rem;
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-card {
    min-height: 3.15rem;
    padding: 0.42rem;
  }

  .footer-brand-title {
    font-size: 1.35rem;
  }

  .footer-brand-logo {
    width: min(100%, 160px);
  }

  .spotlight-table {
    min-width: 360px;
  }

  .resource-block-header {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .site-nav-links {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .top-bar {
    top: 4.28rem;
  }

  .program-rail,
  .rank-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .year-selector {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .intro-stage {
    padding: 0.85rem 0.75rem 0.9rem;
  }

  .intro-logo-card img {
    width: 50px;
  }

  .intro-copy h1 {
    font-size: clamp(1.65rem, 11vw, 2.4rem);
  }

  .hero-copy h1 {
    font-size: 1.92rem;
  }

  .site-nav-link {
    font-size: 0.54rem;
    min-height: 1.88rem;
  }

  .quick-pick-card {
    min-width: 98px;
    width: 98px;
  }

  .program-rail,
  .round-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-copy h2 {
    max-width: 15.5rem;
    font-size: 0.68rem;
  }

  .hero-description {
    max-width: 16rem;
    font-size: 0.67rem;
  }
}
