/* ═══════════════════════════════════════════
   POLYMATHS CLUB — style.css
   ═══════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --ink: #0e0e0e;
  --paper: #f5f2eb;
  --paper-warm: #ede9df;
  --accent: #d63c1f;
  --accent-2: #1a5cff;
  --accent-3: #00b87a;
  --muted: #6b6760;
  --border: rgba(14, 14, 14, 0.12);
  --card-bg: #ffffff;
  --nav-h: 64px;
}

/* ── RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
img,
svg {
  display: block;
}
a {
  text-decoration: none;
}
ul {
  list-style: none;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

/* ── BASE ── */
body {
  font-family: "DM Sans", sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none;
}

/* ── SCROLL PROGRESS ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 200;
  transition: width 0.05s linear;
}

/* ── CUSTOM CURSOR ── */
.cursor {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    transform 0.12s ease,
    width 0.2s ease,
    height 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
  mix-blend-mode: multiply;
}

.cursor-dot {
  position: fixed;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.06s ease;
}

.cursor.hovered {
  width: 52px;
  height: 52px;
  background: rgba(214, 60, 31, 0.08);
  border-color: var(--accent);
}

body:has(a:hover) .cursor-dot,
body:has(button:hover) .cursor-dot {
  background: var(--accent);
}

@media (hover: none) {
  .cursor,
  .cursor-dot {
    display: none;
  }
  body {
    cursor: auto;
  }
}

/* ── KEYFRAMES ── */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.6;
  }
}

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes tagFloat {
  0%,
  100% {
    transform: translateY(0) rotate(var(--rot));
  }
  50% {
    transform: translateY(-6px) rotate(var(--rot));
  }
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── REVEAL SYSTEM ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal][data-delay="1"] {
  transition-delay: 0.1s;
}
[data-reveal][data-delay="2"] {
  transition-delay: 0.2s;
}
[data-reveal][data-delay="3"] {
  transition-delay: 0.3s;
}
[data-reveal][data-delay="4"] {
  transition-delay: 0.4s;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 3rem;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  transition:
    background 0.3s,
    box-shadow 0.3s;
}

nav.scrolled {
  box-shadow: 0 2px 24px rgba(14, 14, 14, 0.06);
}

.nav-logo {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--ink);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-links a.active {
  color: var(--ink);
}

.nav-cta {
  font-family: "DM Mono", monospace !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.07em !important;
  background: var(--ink) !important;
  color: var(--paper) !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: 2px !important;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--accent) !important;
}
.nav-cta::after {
  display: none !important;
}

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* ── MOBILE MENU ── */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--paper);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: center;
}

.mobile-link {
  font-family: "Syne", sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  display: block;
  padding: 0.4rem 1rem;
  transition: color 0.2s;
}

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

.mobile-cta {
  margin-top: 0.75rem;
  font-size: 1.2rem !important;
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  border-radius: 2px;
  padding: 0.6rem 1.5rem !important;
}

/* ── SHARED SECTION STYLES ── */
section {
  padding: 6rem 3rem;
}

.section-label {
  font-family: "DM Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--muted);
}

.section-label.centered {
  justify-content: center;
  margin-bottom: 1.5rem;
}

.section-label.centered::before {
  display: none;
}

.section-h2 {
  font-family: "Syne", sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 1rem;
}

/* BUTTONS */
.btn-primary {
  font-family: "Syne", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: var(--accent);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 2px;
  display: inline-block;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-primary.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.btn-secondary {
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition:
    border-color 0.2s,
    color 0.2s;
}

.btn-secondary:hover {
  border-color: var(--ink);
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

/* Dot-grid background */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(14, 14, 14, 0.18) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
  pointer-events: none;
  transition: transform 0.1s linear;
}

.hero-noise {
  position: absolute;
  inset: 0;
  background: var(--paper);
  opacity: 0.6;
  pointer-events: none;
}

.hero-left {
  padding: 5rem 3rem 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "DM Mono", monospace;
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid var(--accent-2);
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
  margin-bottom: 2rem;
  width: fit-content;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-2);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero-h1 {
  font-family: "Syne", sans-serif;
  font-size: clamp(3.2rem, 5vw, 5.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.hero-h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 440px;
  line-height: 1.72;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat-num {
  font-family: "Syne", sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-num.counting {
  animation: countUp 0.3s ease;
}

.stat-label {
  font-family: "DM Mono", monospace;
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* HERO RIGHT / TERMINAL */
.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 2.5rem 2rem 1rem;
  z-index: 2;
}

.hero-visual {
  --terminal-x: 26px;
  --terminal-y: 72px;
  width: 100%;
  max-width: 560px;
  position: relative;
  margin: 0 auto;
  padding: 1.5rem;
}

.terminal-shell {
  position: relative;
  margin-bottom: 200px;
  transform: translate(var(--terminal-x, 0px), var(--terminal-y, 0px));
  will-change: transform;
}

.terminal {
  width: 100%;
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 14px 14px 0 rgba(14, 14, 14, 0.12);
  transition: box-shadow 0.2s ease;
  touch-action: none;
}

.terminal.dragging {
  box-shadow: 20px 20px 0 rgba(14, 14, 14, 0.16);
}

.terminal-header {
  background: #1a1a1a;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: grab;
  user-select: none;
}

.terminal.dragging .terminal-header {
  cursor: grabbing;
}

.t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.t-dot.r {
  background: #ff5f57;
}
.t-dot.y {
  background: #ffbd2e;
}
.t-dot.g {
  background: #28c840;
}

.terminal-title {
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  color: #555;
  margin: 0 auto;
  padding-right: 2rem;
}

.terminal-body {
  padding: 1.5rem;
  font-family: "DM Mono", monospace;
  font-size: 0.77rem;
  line-height: 1.85;
  color: #c8c8c8;
  min-height: 220px;
}

.t-line {
  display: block;
}
.t-prompt {
  color: var(--accent-3);
}
.t-cmd {
  color: #fff;
}
.t-comment {
  color: #444;
}
.t-output {
  color: #777;
}
.t-success {
  color: var(--accent-3);
}
.t-accent {
  color: #7eb8f7;
}
.t-warn {
  color: #ffd07b;
}

.t-cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--accent-3);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

/* Floating tags */
.floating-tag {
  position: absolute;
  font-family: "DM Mono", monospace;
  font-size: 0.63rem;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.8rem;
  border-radius: 2px;
  border: 1px solid;
  white-space: nowrap;
}

.tag-1 {
  top: 6%;
  right: 0;
  background: rgba(214, 60, 31, 0.08);
  border-color: rgba(214, 60, 31, 0.4);
  color: var(--accent);
  --rot: 2deg;
  animation: tagFloat 4s ease-in-out infinite;
}

.tag-2 {
  left: 0;
  bottom: 22%;
  background: rgba(26, 92, 255, 0.08);
  border-color: rgba(26, 92, 255, 0.4);
  color: var(--accent-2);
  --rot: -1.5deg;
  animation: tagFloat 4.5s ease-in-out infinite 0.5s;
}

.tag-3 {
  right: 3rem;
  bottom: 6%;
  background: rgba(0, 184, 122, 0.08);
  border-color: rgba(0, 184, 122, 0.4);
  color: var(--accent-3);
  --rot: 1.2deg;
  animation: tagFloat 5s ease-in-out infinite 1s;
}

/* ── MARQUEE ── */
.marquee-wrap {
  background: var(--ink);
  overflow: hidden;
  padding: 0.9rem 0;
}

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

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 242, 235, 0.5);
  padding: 0 2.5rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.sep {
  color: var(--accent);
  font-size: 1rem;
}

/* ── ABOUT ── */
#about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  background: var(--paper-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-right {
  padding-top: 3.5rem;
}

.about-text {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.76;
  margin-bottom: 1.4rem;
}

.about-text strong {
  color: var(--ink);
  font-weight: 500;
}

.philosophy-items {
  margin-top: 2.5rem;
}

.phil-item {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--border);
  align-items: start;
  transition: padding-left 0.25s ease;
}

.phil-item:last-child {
  border-bottom: 1px solid var(--border);
}
.phil-item:hover {
  padding-left: 0.4rem;
}

.phil-num {
  font-family: "DM Mono", monospace;
  font-size: 0.63rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  padding-top: 0.25rem;
}

.phil-title {
  font-family: "Syne", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.phil-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

.hack-badge {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin-top: 2rem;
  background: var(--card-bg);
  transition: box-shadow 0.2s;
}

.hack-badge:hover {
  box-shadow: 4px 4px 0 var(--border);
}

.hack-icon {
  width: 36px;
  height: 36px;
  background: #ec3750;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hack-icon svg {
  width: 18px;
  height: 18px;
}

.hack-text strong {
  font-weight: 500;
  font-size: 0.92rem;
  display: block;
  margin-bottom: 3px;
}
.hack-text span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ── PILLARS ── */
#pillars {
  background: var(--paper);
}

.pillars-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 3rem;
}

.pillars-intro {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
}

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

.pillar-card {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border);
  position: relative;
  transition: background 0.3s;
  overflow: hidden;
}

.pillar-card:last-child {
  border-right: none;
}

.pillar-card::before {
  content: attr(data-num);
  font-family: "Syne", sans-serif;
  font-size: 5rem;
  font-weight: 800;
  color: rgba(14, 14, 14, 0.04);
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  line-height: 1;
  letter-spacing: -0.05em;
  pointer-events: none;
}

.pillar-card:hover {
  background: var(--paper-warm);
}

.pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: 2px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar-icon.red {
  background: rgba(214, 60, 31, 0.09);
}
.pillar-icon.blue {
  background: rgba(26, 92, 255, 0.09);
}
.pillar-icon.green {
  background: rgba(0, 184, 122, 0.09);
}
.pillar-icon svg {
  width: 19px;
  height: 19px;
}

.pillar-title {
  font-family: "Syne", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.7rem;
}

.pillar-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.66;
}

/* ── SESSIONS ── */
#sessions {
  background: var(--ink);
  color: var(--paper);
}

#sessions .section-label {
  color: rgba(245, 242, 235, 0.35);
}
#sessions .section-label::before {
  background: rgba(245, 242, 235, 0.25);
}

.sessions-title {
  color: var(--paper);
  margin-bottom: 3.5rem;
}

.sessions-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: start;
}

.session-desc {
  font-size: 1rem;
  color: rgba(245, 242, 235, 0.55);
  line-height: 1.76;
  margin-bottom: 2rem;
}

.session-schedule {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 242, 235, 0.08);
}

.schedule-label {
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-3);
  margin-bottom: 0.4rem;
}

.schedule-time {
  font-family: "Syne", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.schedule-room {
  font-size: 0.85rem;
  color: rgba(245, 242, 235, 0.4);
  margin-top: 0.2rem;
}

.sessions-list {
  display: flex;
  flex-direction: column;
}

.session-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(245, 242, 235, 0.07);
  cursor: default;
  transition: padding-left 0.2s;
}

.session-item:first-child {
  border-top: 1px solid rgba(245, 242, 235, 0.07);
}
.session-item:hover {
  padding-left: 0.5rem;
}

.session-tag {
  font-family: "DM Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 242, 235, 0.28);
}

.session-title {
  font-family: "Syne", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
  transition: color 0.2s;
}

.session-item:hover .session-title {
  color: var(--accent);
}

.session-sub {
  font-size: 0.83rem;
  color: rgba(245, 242, 235, 0.38);
}

.session-arrow {
  color: rgba(245, 242, 235, 0.18);
  transition:
    color 0.2s,
    transform 0.2s;
}

.session-item:hover .session-arrow {
  color: var(--accent);
  transform: translateX(5px);
}

/* ── PROJECTS ── */
#projects {
  background: var(--paper-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.projects-header {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: end;
  margin-bottom: 2.5rem;
  gap: 2rem;
}

/* Filter buttons */
.project-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: "DM Mono", monospace;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.35rem 0.85rem;
  border-radius: 2px;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.filter-btn:hover {
  color: var(--ink);
  border-color: rgba(14, 14, 14, 0.3);
}
.filter-btn.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.project-card {
  background: var(--paper);
  padding: 2rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  transition:
    background 0.2s,
    opacity 0.35s,
    transform 0.35s;
  position: relative;
}

.project-card:hover {
  background: var(--card-bg);
}

.project-card.hidden {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}

.project-card.featured {
  grid-column: span 2;
  min-height: 230px;
}

.project-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.project-dot.live {
  background: var(--accent-3);
  box-shadow: 0 0 0 4px rgba(0, 184, 122, 0.12);
}
.project-dot.wip {
  background: #ffb930;
  box-shadow: 0 0 0 4px rgba(255, 185, 48, 0.12);
}
.project-dot.idea {
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(26, 92, 255, 0.12);
}

.project-status {
  font-family: "DM Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.project-name {
  font-family: "Syne", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.project-desc {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.62;
  flex: 1;
}

.project-stack {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.stack-tag {
  font-family: "DM Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.07em;
  background: var(--paper-warm);
  color: var(--muted);
  padding: 0.18rem 0.5rem;
  border-radius: 2px;
  border: 1px solid var(--border);
}

/* ── TEAM ── */
#team {
  background: var(--paper);
}

.team-header {
  margin-bottom: 3rem;
}

.team-intro {
  max-width: 620px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.15rem;
}

.member-card {
  background: linear-gradient(180deg, #fff 0%, var(--paper) 100%);
  border: 1px solid var(--border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-height: 100%;
  grid-column: span 3;
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}

.member-card:hover {
  background: var(--card-bg);
  transform: translateY(-4px);
  box-shadow: 8px 8px 0 rgba(14, 14, 14, 0.06);
}

.member-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.member-meta {
  display: flex;
  flex-direction: column;
}

.member-head-compact {
  align-items: flex-end;
}

.member-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: hsl(var(--hue), 65%, 88%);
  color: hsl(var(--hue), 55%, 35%);
  font-family: "Syne", sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(14, 14, 14, 0.06);
}

.member-name {
  font-family: "Syne", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.member-role {
  font-family: "DM Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.member-blurb {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 1rem;
  flex: 1;
}

.member-join {
  background: var(--ink) !important;
  justify-content: center;
  grid-column: span 7;
  min-height: 220px;
}

.member-join:hover {
  background: #1a1a1a !important;
}

.member-plus {
  font-family: "Syne", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--paper);
  line-height: 1;
}

.member-join .member-name,
.member-join .member-role,
.member-join .member-blurb {
  color: rgba(245, 242, 235, 0.5);
}

.join-link {
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.75rem;
  border-bottom: 1px solid rgba(214, 60, 31, 0.3);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

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

.team-support-card {
  grid-column: span 5;
  background: var(--paper-warm);
}

.team-support-label {
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.team-support-name {
  font-family: "Syne", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.45rem;
}

.team-support-text {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ── JOIN ── */
#join {
  background: var(--paper);
  text-align: center;
  padding: 7rem 3rem;
}

.join-inner {
  max-width: 620px;
  margin: 0 auto;
}

.join-h2 {
  font-family: "Syne", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.join-h2 em {
  font-style: normal;
  color: var(--accent);
}

.join-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.join-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.join-school {
  margin-top: 3rem;
  font-family: "DM Mono", monospace;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
}

.join-school::before,
.join-school::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 60px;
}

/* ── FOOTER ── */
footer {
  background: var(--ink);
  color: var(--paper);
  padding: 3rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(245, 242, 235, 0.08);
  margin-bottom: 1.5rem;
  gap: 2rem;
}

.footer-logo {
  font-family: "Syne", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 0.4rem;
}

.footer-tagline {
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 242, 235, 0.3);
}

.footer-cols {
  display: flex;
  gap: 4rem;
}

.footer-col-title {
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 242, 235, 0.3);
  margin-bottom: 0.75rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-col a {
  font-size: 0.88rem;
  color: rgba(245, 242, 235, 0.55);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--paper);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-family: "DM Mono", monospace;
  font-size: 0.63rem;
  letter-spacing: 0.06em;
  color: rgba(245, 242, 235, 0.2);
}

/* ── RESPONSIVE ── */
@media (max-width: 1000px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .member-card,
  .member-join,
  .team-support-card {
    grid-column: span 1;
  }
}

@media (max-width: 860px) {
  nav {
    padding: 0 1.5rem;
  }
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }

  #hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-left {
    padding: 4rem 1.5rem 2.5rem;
  }
  .hero-right {
    display: none;
  }
  .hero-sub {
    max-width: none;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
  }
  .stat-item {
    min-width: 140px;
  }

  #about {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 4rem 1.5rem;
  }
  .about-right {
    padding-top: 0;
  }

  section {
    padding: 4rem 1.5rem;
  }

  .pillars-header {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .pillar-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .pillar-card:last-child {
    border-bottom: none;
  }

  .sessions-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .session-item {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 1.1rem 0;
  }
  .session-arrow {
    display: none;
  }

  .projects-header {
    grid-template-columns: 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .project-card.featured {
    grid-column: span 1;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .member-card,
  .member-join,
  .team-support-card {
    grid-column: span 1;
  }

  .footer-top {
    flex-direction: column;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.4rem;
  }

  .join-actions {
    flex-direction: column;
    align-items: center;
  }
  .join-actions .btn-primary,
  .join-actions .btn-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 560px) {
  nav {
    padding: 0 1rem;
  }
  section {
    padding: 3.5rem 1rem;
  }
  .mobile-link {
    font-size: 1.8rem;
  }
  .hero-left {
    padding: 3.25rem 1rem 2rem;
  }
  .hero-badge {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 0.58rem;
    letter-spacing: 0.07em;
    padding: 0.45rem 0.6rem;
  }
  .hero-h1 {
    font-size: clamp(2.8rem, 16vw, 4.4rem);
  }
  .hero-sub {
    font-size: 0.98rem;
    line-height: 1.65;
  }
  .hero-stats {
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.25rem;
  }
  .stat-item {
    min-width: calc(50% - 0.5rem);
  }
  .stat-num {
    font-size: 1.8rem;
  }
  .section-label {
    font-size: 0.58rem;
    letter-spacing: 0.11em;
  }
  .section-h2 {
    font-size: clamp(1.7rem, 10vw, 2.4rem);
  }
  .pillars-intro,
  .about-text,
  .session-desc,
  .join-sub,
  .team-intro {
    font-size: 0.95rem;
    line-height: 1.68;
  }
  .session-tag {
    margin-bottom: 0.1rem;
  }
  .schedule-time {
    font-size: 1rem;
  }
  .project-card,
  .member-card,
  .team-support-card {
    padding: 1.2rem;
  }
  #join {
    padding: 4.5rem 1rem;
  }
  .join-school {
    font-size: 0.58rem;
    line-height: 1.6;
    flex-wrap: wrap;
    gap: 0.45rem;
  }
  .join-school::before,
  .join-school::after {
    display: none;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .member-card,
  .member-join,
  .team-support-card {
    grid-column: span 1;
  }
  .member-head,
  .member-head-compact {
    align-items: flex-start;
  }
  footer {
    padding: 2rem 1rem;
  }
  .footer-bottom {
    line-height: 1.6;
  }
  .footer-cols {
    flex-direction: column;
    gap: 2rem;
  }
}

@media (max-width: 420px) {
  .nav-logo {
    font-size: 0.96rem;
    gap: 6px;
  }
  .hero-left {
    padding: 2.5rem 0.85rem 1.25rem;
  }
  .hero-badge {
    font-size: 0.52rem;
    letter-spacing: 0.05em;
    padding: 0.42rem 0.45rem;
    margin-bottom: 1.15rem;
  }
  .hero-h1 {
    font-size: clamp(2rem, 13vw, 3rem);
    line-height: 0.96;
    letter-spacing: -0.03em;
    margin-bottom: 0.85rem;
  }
  .hero-sub {
    font-size: 0.92rem;
    line-height: 1.58;
    margin-bottom: 1.5rem;
  }
  .hero-actions {
    gap: 0.55rem;
  }
  .hero-stats {
    margin-top: 1.5rem;
    padding-top: 0.9rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .stat-item {
    min-width: 0;
  }
  .stat-num {
    font-size: 1.38rem;
  }
  .stat-label {
    font-size: 0.48rem;
    letter-spacing: 0.05em;
    line-height: 1.35;
    word-break: break-word;
  }
  .btn-primary,
  .btn-primary.btn-lg {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .btn-secondary {
    font-size: 0.72rem;
  }
}
