:root {
  --ntu-red: #c1272d;
  --ntu-red-light: #e8474d;
  --ntu-red-pale: #f5d0d1;
  --ntu-red-dim: rgba(193,39,45,0.15);

  --bg-primary: #0d0d0d;
  --bg-primary-rgb: 13, 13, 13;
  --bg-secondary: #141414;
  --bg-card: #1a1a1a;
  --bg-hover: #222222;
  --text-primary: #f0ede8;
  --text-secondary: #9a9590;
  --text-tertiary: #5a5550;
  --border: rgba(240,237,232,0.08);
  --border-hover: rgba(240,237,232,0.18);
  --grid-line: rgba(240,237,232,0.03);
  --grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

[data-theme="light"] {
  --bg-primary: #f7f4ef;
  --bg-primary-rgb: 247, 244, 239;
  --bg-secondary: #ede9e2;
  --bg-card: #faf8f4;
  --bg-hover: #f0ece5;
  --text-primary: #1a1714;
  --text-secondary: #6b6560;
  --text-tertiary: #b0aaa3;
  --border: rgba(26,23,20,0.1);
  --border-hover: rgba(26,23,20,0.22);
  --grid-line: rgba(26,23,20,0.04);
  --ntu-red: #c1272d;
  --ntu-red-light: #a01f24;
  --ntu-red-dim: rgba(193,39,45,0.1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Mono', monospace;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: default;
  transition: background 0.4s ease, color 0.4s ease;
}

/* ——— GRAIN OVERLAY ——— */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: var(--grain);
  pointer-events: none;
  z-index: 999;
  opacity: 0.6;
}

/* ——— GRID BACKGROUND ——— */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ——— RADIAL GLOW ——— */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-glow::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  top: -100px;
  left: -100px;
  background: radial-gradient(circle, var(--ntu-red), transparent 70%);
  opacity: 0.08;
  border-radius: 50%;
  animation: glowDrift1 18s ease-in-out infinite alternate;
}

.bg-glow::after {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  bottom: -200px;
  right: -100px;
  background: radial-gradient(circle, #6080a0, transparent 70%);
  opacity: 0.05;
  border-radius: 50%;
  animation: glowDrift2 22s ease-in-out infinite alternate;
}

@keyframes glowDrift1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.1); }
}

@keyframes glowDrift2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-50px, -60px) scale(1.15); }
}

[data-theme="light"] .bg-glow::before { opacity: 0.04; }
[data-theme="light"] .bg-glow::after  { opacity: 0.025; }

@media (prefers-reduced-motion: reduce) {
  .bg-glow::before, .bg-glow::after { animation-play-state: paused; }
}

/* ——— TOPOGRAPHIC LINES ——— */
.topo-svg {
  position: fixed;
  top: 0; right: 0;
  width: 55vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.07;
  transition: opacity 0.4s;
}
[data-theme="light"] .topo-svg { opacity: 0.05; }

/* ——— NAV ——— */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: linear-gradient(to bottom, var(--bg-primary) 0%, transparent 100%);
  backdrop-filter: blur(0px);
  transition: background 0.3s ease, border-color 0.3s ease;
}

nav.scrolled {
  background: rgba(var(--bg-primary-rgb), 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-word {
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}


.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: var(--text-secondary);
}
.theme-toggle:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
  color: var(--text-primary);
}
.theme-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ——— HERO ——— */
.hero {
  position: relative;
  z-index: 1;
  padding: 0 48px;
  padding-top: 140px;
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ntu-red);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--ntu-red);
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(56px, 8vw, 108px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  max-width: 900px;
  margin-bottom: 32px;
}

.hero-title em {
  font-style: italic;
  color: var(--ntu-red);
}

.hero-sub-row {
  display: block;
}

.hero-desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 560px;
}


.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-tertiary);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--ntu-red), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ——— SEARCH ——— */
.search-section {
  position: relative;
  z-index: 10;
  padding: 0 48px;
  margin-bottom: 60px;
}

.search-wrap {
  position: relative;
  max-width: 680px;
}

.search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  font-weight: 300;
  padding: 18px 56px 18px 24px;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  letter-spacing: 0.02em;
}
.search-input::placeholder { color: var(--text-tertiary); }
.search-input:focus {
  border-color: var(--border-hover);
  background: var(--bg-hover);
}

.search-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
}
.search-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  display: none;
  z-index: 20;
}
.search-results.active { display: block; }

.search-result-item {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg-hover); }

.search-result-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}
.search-result-cat {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* ——— SECTION HEADER ——— */
.section-header {
  padding: 0 48px;
  margin-bottom: 40px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.section-title {
  font-family: 'Instrument Serif', serif;
  font-size: 36px;
  font-style: italic;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.section-count {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* ——— TOP PICKS ROW ——— */
.top-picks {
  position: relative;
  z-index: 1;
  padding: 0 48px;
  margin-bottom: 80px;
}

.top-picks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}

.top-pick-card {
  padding: 36px 32px;
  border-right: 1px solid var(--border);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: background 0.25s;
  cursor: pointer;
}
.top-pick-card:last-child { border-right: none; }
.top-pick-card:hover { background: var(--bg-hover); }

.top-pick-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--ntu-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.top-pick-card:hover::after { transform: scaleX(1); }

.top-pick-num {
  font-family: 'Instrument Serif', serif;
  font-size: 48px;
  color: var(--text-tertiary);
  line-height: 1;
  font-style: italic;
  opacity: 0.4;
  position: absolute;
  top: 20px;
  right: 24px;
  transition: color 0.2s, opacity 0.2s;
}
.top-pick-card:hover .top-pick-num {
  color: var(--ntu-red);
  opacity: 0.6;
}

.top-pick-name {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
  max-width: 200px;
}

.top-pick-desc {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 240px;
}

.top-pick-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-top: auto;
  transition: color 0.2s, gap 0.2s;
}
.top-pick-card:hover .top-pick-arrow {
  color: var(--ntu-red);
  gap: 10px;
}
.top-pick-arrow svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.top-pick-card:hover .top-pick-arrow svg { transform: translateX(2px); }

/* ——— CATEGORY MAP ——— */
.cat-section {
  position: relative;
  z-index: 1;
  padding: 0 48px;
  margin-bottom: 80px;
}

.cat-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 14px 22px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  flex-shrink: 0;
}
.cat-tab:hover { color: var(--text-secondary); }
.cat-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--ntu-red);
}

.cat-panel {
  display: none;
  padding-top: 2px;
}
.cat-panel.active {
  display: block;
  animation: panelFadeIn 0.15s ease;
}
@keyframes panelFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

#clubsGrid.fade-in { animation: panelFadeIn 0.15s ease; }

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-top: none;
}

.link-card {
  padding: 28px 28px 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.2s, transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.link-card:hover {
  background: var(--bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  z-index: 1;
}

.link-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--ntu-red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.25s ease;
}
.link-card:hover::before { transform: scaleY(1); }

.link-card-tag {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ntu-red);
  font-weight: 400;
}

.link-card-name {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1.3;
}

.link-card-desc {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
}

.link-card-footer {
  display: flex;
  align-items: center;
  margin-top: 4px;
}

.link-card-go {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  transition: color 0.2s, gap 0.2s;
}
.link-card:hover .link-card-go { color: var(--ntu-red); gap: 8px; }
.link-card-go svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }


/* Subgroup label */
.links-subgroup-label {
  padding: 14px 28px 12px;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  grid-column: 1 / -1;
}

/* ——— FRESHMEN SECTION ——— */
.fresh-section {
  position: relative;
  z-index: 1;
  padding: 0 48px;
  margin-bottom: 80px;
}

.fresh-banner {
  border: 1px solid var(--border);
  padding: 48px;
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
}

.fresh-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, var(--ntu-red-dim) 0%, transparent 60%);
  pointer-events: none;
}

.fresh-banner-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ntu-red);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.fresh-banner-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--ntu-red);
}

.fresh-banner-title {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.2;
}

.fresh-banner-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 32px;
}

.fresh-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.fresh-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}
.fresh-item:hover {
  background: var(--bg-hover);
  border-color: var(--border-hover);
}

.fresh-item-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ntu-red);
  flex-shrink: 0;
  margin-top: 5px;
}

.fresh-item-text {
  flex: 1;
}
.fresh-item-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 3px;
  font-family: 'Syne', sans-serif;
  letter-spacing: -0.01em;
}
.fresh-item-hint {
  font-size: 11px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ——— TOOLS/QUICK ACCESS ——— */
.tools-section {
  position: relative;
  z-index: 1;
  padding: 0 48px;
  margin-bottom: 80px;
}

.tools-row {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.tools-row::-webkit-scrollbar { display: none; }

.tool-item {
  flex: 1;
  min-width: 160px;
  padding: 24px 20px;
  border-right: 1px solid var(--border);
  text-decoration: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: background 0.2s;
  cursor: pointer;
}
.tool-item:last-child { border-right: none; }
.tool-item:hover { background: var(--bg-hover); }

.tool-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.tool-item:hover .tool-icon {
  border-color: var(--ntu-red);
  background: var(--ntu-red-dim);
  color: var(--ntu-red);
}
.tool-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.tool-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  font-family: 'Syne', sans-serif;
  text-align: center;
}
.tool-desc {
  font-size: 10px;
  font-weight: 300;
  color: var(--text-tertiary);
  text-align: center;
  line-height: 1.5;
}

/* ——— FOOTER ——— */
footer {
  position: relative;
  z-index: 1;
  padding: 48px 48px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-left .footer-logo {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.footer-left .footer-tagline {
  font-size: 11px;
  font-weight: 300;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.footer-right {
  text-align: right;
}
.footer-credit {
  font-size: 11px;
  font-weight: 300;
  color: var(--text-tertiary);
  line-height: 1.8;
}

/* ——— HOVER CARD TOOLTIP ——— */
.hover-tooltip {
  position: fixed;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  padding: 12px 16px;
  font-size: 12px;
  color: var(--text-secondary);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 200;
  max-width: 200px;
  line-height: 1.5;
}
.hover-tooltip.visible { opacity: 1; }

/* ——— MARQUEE ——— */
.marquee-wrap {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  margin-bottom: 80px;
}

.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 28s linear infinite;
  width: max-content;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 40px;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 400;
  flex-shrink: 0;
}
.marquee-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ntu-red);
  flex-shrink: 0;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ——— PAGE LOAD ANIMATION ——— */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-label { animation: fadeUp 0.6s ease 0.1s both; }
.hero-title { animation: fadeUp 0.7s ease 0.2s both; }
.hero-sub-row { animation: fadeUp 0.7s ease 0.35s both; }

@keyframes accentShimmer {
  0%, 100% { color: var(--ntu-red); }
  50% { color: #e84040; }
}
.hero-title em {
  animation: accentShimmer 4s ease-in-out infinite;
}

/* ——— LEGAL MODAL ——— */
#legalModal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
#legalModal[hidden] { display: none; }

.modal-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 48px;
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.modal-close:focus-visible,
.footer-legal-link:focus-visible,
.modal-link:focus-visible {
  outline: 2px solid var(--ntu-red);
  outline-offset: 2px;
}

.modal-title {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal-body p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
}
.modal-body code {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--text-secondary);
}
.modal-link {
  color: var(--ntu-red);
  text-decoration: none;
}
.modal-link:hover { text-decoration: underline; }

.footer-legal {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  justify-content: flex-end;
}
.footer-legal-link {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 0;
  transition: color 0.2s;
}
.footer-legal-link:hover { color: var(--text-secondary); }
.footer-legal > span { color: var(--text-tertiary); font-size: 10px; }

/* ——— CLUBS & SOCIETIES ——— */
.clubs-section {
  position: relative;
  z-index: 1;
  padding: 0 48px;
  margin-bottom: 80px;
}

.clubs-section-wrap {
  border: 1px solid var(--border);
  border-top: none;
}

.club-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.club-tabs::-webkit-scrollbar { display: none; }

.club-tab {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 14px 22px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  flex-shrink: 0;
}
.club-tab:hover { color: var(--text-secondary); }
.club-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--ntu-red);
}

.clubs-grid-wrap {
  max-height: 560px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--text-tertiary) transparent;
}
.clubs-grid-wrap::-webkit-scrollbar { width: 4px; }
.clubs-grid-wrap::-webkit-scrollbar-track { background: transparent; }
.clubs-grid-wrap::-webkit-scrollbar-thumb { background: var(--text-tertiary); border-radius: 2px; }

.clubs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
}

.club-card {
  padding: 28px 28px 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.2s, transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.club-card:hover {
  background: var(--bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  z-index: 1;
}

.club-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--ntu-red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.25s ease;
}
.club-card:hover::before { transform: scaleY(1); }

.club-card-tag {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ntu-red);
  font-weight: 400;
}

.club-card-name {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1.3;
}

.club-card-desc {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.club-card-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.club-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-family: 'DM Mono', monospace;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  text-decoration: none;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all 0.2s;
}
.club-social-link:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-hover);
}
.club-social-link svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.club-card:hover .club-social-link {
  border-color: var(--border-hover);
}

/* ——— RESPONSIVE ——— */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .hero { padding: 120px 24px 60px; }
  .hero-title { font-size: 52px; }
  .search-section, .top-picks, .cat-section, .fresh-section, .clubs-section, .tools-section, .marquee-wrap { padding-left: 24px; padding-right: 24px; }
  .section-header, footer { padding-left: 24px; padding-right: 24px; }
  .top-picks-grid { grid-template-columns: 1fr; }
  .top-pick-card { border-right: none; border-bottom: 1px solid var(--border); }
  .top-pick-card:last-child { border-bottom: none; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 38px; }
  .links-grid { grid-template-columns: 1fr; }
  .fresh-checklist { grid-template-columns: 1fr; }
  .clubs-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  nav { padding: 0 16px; }
  .hero { padding: 96px 16px 48px; }
  .hero-title { font-size: clamp(32px, 9vw, 38px); }
  .search-section, .top-picks, .cat-section, .fresh-section, .clubs-section, .tools-section, .marquee-wrap { padding-left: 16px; padding-right: 16px; }
  .section-header, footer { padding-left: 16px; padding-right: 16px; }
  footer { padding-top: 32px; padding-bottom: 28px; }
  .footer-right { text-align: left; }
  .footer-legal { justify-content: flex-start; }
  .modal-panel { padding: 24px; }
  .clubs-grid-wrap { max-height: 420px; }
  .tools-row { flex-wrap: wrap; justify-content: center; }
  .search-bar { padding: 14px 16px; }
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .link-card:hover, .club-card:hover {
    transform: none;
    box-shadow: none;
  }
  .hero-title em { animation: none; color: var(--ntu-red); }
  .cat-panel.active, #clubsGrid.fade-in { animation: none; }
  nav.scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bg-primary);
  }
  .marquee-track { animation-play-state: paused; }
  .scroll-line { animation: none; }
  .hero-label, .hero-title, .hero-sub-row { animation: none; }
}
