/* ==========================================================================
   Cornell DEBUT — Main Stylesheet
   ==========================================================================

   Table of Contents:
   1.  Reset & Root Variables
   2.  Base / Body
   3.  Navigation
   4.  Page System (show/hide)
   5.  Buttons
   6.  Footer
   7.  Home — Hero
   8.  Home — Stats Bar
   9.  Home — Sections & Layout
   10. Home — Subteam Cards
   11. Home — Alumni Ticker
   12. Home — Photo Carousel
   13. About Page
   14. Members Page
   15. Apply Page
   16. Sponsors Page
   17. R&D Devices Page
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Reset & Root Variables
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red:          #b91c1c;
  --red-dim:      rgba(185, 28, 28, 0.08);
  --red-mid:      rgba(185, 28, 28, 0.18);

  --bg:           #ffffff;
  --bg2:          #f8f8f8;
  --bg3:          #f2f2f2;

  --border:       rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.18);

  --text:         #0c0c0c;
  --text-dim:     rgba(12, 12, 12, 0.45);
  --text-mid:     rgba(12, 12, 12, 0.70);

  --serif:        'EB Garamond', Georgia, serif;
  --sans:         'DM Sans', sans-serif;
}


/* --------------------------------------------------------------------------
   2. Base / Body
   -------------------------------------------------------------------------- */
html { scroll-behavior: smooth; }

body {
  background:             var(--bg);
  color:                  var(--text);
  font-family:            var(--sans);
  font-size:              18px;
  line-height:            1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x:             hidden;
}


/* --------------------------------------------------------------------------
   3. Navigation
   -------------------------------------------------------------------------- */
nav {
  position:        fixed;
  top:             0; left: 0; right: 0;
  z-index:         200;
  height:          80px;
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         0 52px;
  background:      rgba(255,255,255,0.97);
  backdrop-filter: blur(14px);
  border-bottom:   0.5px solid var(--border);
}

nav::before {
  content:    '';
  position:   absolute;
  left: 0; top: 0; bottom: 0;
  width:      3px;
  background: var(--red);
}

.nav-brand { display: flex; align-items: center; gap: 11px; cursor: pointer; }

.nav-logo {
  height: 125px;
  width: auto;
}

.nav-name {
  font-size:      22px;
  font-weight:    700;
  letter-spacing: 0;
  text-transform: none;
}

.nav-links { display: flex; gap: 32px; align-items: center; }

.nav-link {
  font-size:      14px;
  font-weight:    400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          var(--text-dim);
  cursor:         pointer;
  transition:     color 0.2s;
  border:         none;
  background:     none;
  font-family:    var(--sans);
  position:       relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content:    '';
  position:   absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--red);
  transition: width 0.22s ease;
}

.nav-link:hover        { color: var(--text); }
.nav-link:hover::after { width: 100%; }
.nav-link.active        { color: var(--red); }
.nav-link.active::after { width: 100%; }


/* --------------------------------------------------------------------------
   4. Page System
   -------------------------------------------------------------------------- */
.page { display: none; padding-top: 60px; min-height: 100vh; }
.page.active { display: block; }


/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn-primary {
  font-size:      14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight:    500;
  padding:        12px 28px;
  background:     var(--red);
  color:          #fff;
  border:         none;
  cursor:         pointer;
  transition:     background 0.2s, transform 0.15s;
  font-family:    var(--sans);
}

.btn-primary:hover { background: #991616; transform: translateY(-1px); }

.btn-outline {
  font-size:      14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight:    500;
  padding:        12px 28px;
  background:     transparent;
  color:          var(--text-mid);
  border:         0.5px solid var(--border-hover);
  cursor:         pointer;
  transition:     all 0.2s;
  font-family:    var(--sans);
}

.btn-outline:hover { border-color: var(--text-mid); color: var(--text); }


/* --------------------------------------------------------------------------
   6. Footer
   -------------------------------------------------------------------------- */
footer {
  border-top:      2px solid var(--text);
  padding:         40px 52px;
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  flex-wrap:       wrap;
  gap:             20px;
  background:      var(--bg);
}

.footer-brand {
  font-size:      14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          var(--text-dim);
}

.footer-links { display: flex; gap: 28px; }

.footer-link {
  font-size:       14px;
  letter-spacing:  0.08em;
  text-transform:  uppercase;
  color:           var(--text-dim);
  text-decoration: none;
  cursor:          pointer;
  transition:      color 0.2s;
}

.footer-link:hover { color: var(--red); }

.footer-copy { font-size: 13px; color: rgba(12,12,12,0.2); }


/* --------------------------------------------------------------------------
   7. Home — Hero
   -------------------------------------------------------------------------- */
.hero {
  min-height:  92vh;
  display:     flex;
  align-items: stretch;
  position:    relative;
  overflow:    hidden;
  background:  var(--bg);
}

/* Faint decorative circle top-right */
.hero::after {
  content:      '';
  position:     absolute;
  top: -60px; right: 40px;
  width:        280px; height: 280px;
  border:       1px solid rgba(185,28,28,0.08);
  border-radius: 50%;
  pointer-events: none;
  z-index:      1;
}

.hero-bg {
  position:   absolute;
  inset:      0;
  z-index:    0;
  background: var(--bg);
}

.hero-grid {
  position:         absolute;
  inset:            0;
  z-index:          1;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size:  60px 60px;
  mask-image:       radial-gradient(ellipse 70% 90% at 25% 60%, black 20%, transparent 100%);
}

/* Split layout */
.hero-split {
  position:    relative;
  z-index:     2;
  display:     flex;
  align-items: stretch;
  width:       100%;
}

/* Left: text */
.hero-content {
  flex:            0 0 48%;
  display:         flex;
  flex-direction:  column;
  justify-content: flex-end;
  padding:         80px 56px 72px 52px;
  position:        relative;
  z-index:         2;
}

/* Right: light grey photo panel */
.hero-photo-panel {
  flex:       0 0 52%;
  position:   relative;
  overflow:   hidden;
  background: linear-gradient(140deg, #f5f5f5 0%, #ebebeb 100%);
}

.hero-team-photo {
  position:        absolute;
  inset:           0;
  width:           100%;
  height:          100%;
  object-fit:      contain;
  object-position: center;
}

/* Thin red dividing line */
.hero-photo-panel::before {
  content:    '';
  position:   absolute;
  left: 0; top: 12%; bottom: 12%;
  width:      2px;
  background: linear-gradient(to bottom, transparent, var(--red) 35%, var(--red) 65%, transparent);
  z-index:    3;
}

/* Faint red glow in bottom-right corner */
.hero-photo-panel::after {
  content:    '';
  position:   absolute;
  bottom: 0; right: 0;
  width:  260px; height: 260px;
  background: radial-gradient(ellipse at bottom right, rgba(185,28,28,0.08) 0%, transparent 65%);
  z-index:    2;
  pointer-events: none;
}

.hero-eyebrow {
  font-size:      12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color:          var(--red);
  margin-bottom:  16px;
  display:        flex;
  align-items:    center;
  gap:            10px;
}

.hero-eyebrow::before {
  content:    '';
  display:    block;
  width:      24px; height: 1px;
  background: var(--red);
}

.hero-title {
  font-family:    var(--sans);
  font-size:      clamp(52px, 7vw, 88px);
  font-weight:    400;
  line-height:    1.0;
  letter-spacing: -0.01em;
  color:          var(--text);
  margin-bottom:  24px;
}

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

.hero-desc {
  font-size:     18px;
  color:         var(--text-dim);
  max-width:     480px;
  line-height:   1.75;
  margin-bottom: 36px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero-split       { flex-direction: column; }
  .hero-content     { flex: none; padding: 72px 32px 40px; }
  .hero-photo-panel {
    flex: none; width: 100%; min-height: 320px;
  }
  .about-photo-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, minmax(180px, auto));
  }
  .about-photo-large { grid-row: auto; }
  .about-photo-small { min-height: 180px; }
}

/* Responsive helpers */
@media (max-width: 900px) {
  .tiers-grid { grid-template-columns: repeat(2, 1fr); }
  .apply-body { grid-template-columns: 1fr; gap: 48px; }
  .sponsor-benefits { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 48px; }
  .subteam-cards { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .role-cards { grid-template-columns: 1fr; }
  nav { padding: 0 24px; }
  .filter-row, .members-content, #team-container { padding-left: 24px; padding-right: 24px; }
  .about-body, .apply-body, .sponsors-body, .rnd-content { padding-left: 24px; padding-right: 24px; }
  .members-hero, .apply-hero, .sponsors-hero, .rnd-hero, .about-hero { padding-left: 24px; padding-right: 24px; }
  footer { padding: 32px 24px; }
}

@media (max-width: 600px) {
  .tiers-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .hero-content { padding: 56px 20px 32px; }
  .hero-photo-panel { min-height: 260px; }
  .home-section { padding: 56px 20px; }
}


/* --------------------------------------------------------------------------
   8. Home — Stats Bar
   -------------------------------------------------------------------------- */
.stats-bar {
  border-top:            0.5px solid var(--border);
  border-bottom:         0.5px solid var(--border);
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding:      32px 52px;
  border-right: 0.5px solid var(--border);
  position:     relative;
  overflow:     hidden;
  transition:   background 0.2s;
}

.stat-item::after {
  content:    '';
  position:   absolute;
  bottom: 0; left: 0; right: 0;
  height:     2px;
  background: var(--red);
  transform:  scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.stat-item:hover        { background: var(--bg2); }
.stat-item:hover::after { transform: scaleX(1); }
.stat-item:last-child   { border-right: none; }

.stat-num { font-family: var(--serif); font-size: 42px; color: var(--text); line-height: 1; }

.stat-label {
  font-size:      14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          var(--text-dim);
  margin-top:     6px;
}


/* --------------------------------------------------------------------------
   9. Home — Sections & Layout
   -------------------------------------------------------------------------- */
.home-section { 
  padding: 88px 52px; 
  position: relative;
}

/* Faint decorative circle top-right */
.home-section::after {
  content:      '';
  position:     absolute;
  top: -40px; right: 60px;
  width:        200px; height: 200px;
  border:       1px solid rgba(185,28,28,0.06);
  border-radius: 50%;
  pointer-events: none;
  z-index:      0;
}
.home-section + .home-section { border-top: 0.5px solid var(--border); }

.section-label {
  font-size:      14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color:          var(--red);
  margin-bottom:  20px;
}

.section-title {
  font-family:   var(--sans);
  font-size:     clamp(28px, 3.5vw, 44px);
  font-weight:   400;
  line-height:   1.2;
  color:         var(--text);
  margin-bottom: 20px;
}

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

.section-body { font-size: 18px; color: var(--text-dim); line-height: 1.8; max-width: 640px; }

.two-col {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   80px;
  align-items:           start;
  position:              relative;
}

/* --------------------------------------------------------------------------
   10. Home — Subteam Cards
   -------------------------------------------------------------------------- */
.subteam-cards {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   1px;
  background:            var(--border);
  margin-top:            48px;
}

.subteam-card {
  background: var(--bg);
  padding:    32px 28px;
  position:   relative;
  overflow:   hidden;
  transition: background 0.2s;
}

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

.subteam-card:hover        { background: var(--bg2); }
.subteam-card:hover::after { transform: scaleX(1); }

.subteam-card-num {
  font-family:   var(--serif);
  font-size:     28px;
  color:         var(--red);
  line-height:   1;
  margin-bottom: 16px;
}

.subteam-card-name {
  font-size:      16px;
  font-weight:    500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom:  10px;
}

.subteam-card-desc { font-size: 16px; color: var(--text-dim); line-height: 1.7; }


/* Floating photos in home mission section */
.floating-photo {
  position: absolute;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  pointer-events: none;
  z-index: 0;
  display: none; /* hidden by default — only show on large screens */
}

@media (min-width: 1200px) {
  .floating-photo { display: block; }
}
/* Single dark band as a punchy contrast strip amid all the white */
.alumni-strip {
  border-top:    0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  overflow:      hidden;
  background:    var(--text);
}

.alumni-strip-label {
  font-size:      14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color:          rgba(255,255,255,0.35);
  padding:        18px 52px 14px;
  border-bottom:  0.5px solid rgba(255,255,255,0.07);
}

.ticker-wrap {
  overflow:           hidden;
  padding:            28px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image:         linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.ticker {
  display:     flex;
  gap:         72px;
  white-space: nowrap;
  animation:   ticker 40s linear infinite;
  align-items: center;
}

.ticker:hover { animation-play-state: paused; }

.ticker-item {
  display:    flex;
  align-items: center;
  gap:         10px;
  flex-shrink: 0;
  opacity:     0.45;
  transition:  opacity 0.2s;
}

.ticker-item:hover { opacity: 1; }

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


/* --------------------------------------------------------------------------
   12. Home — Photo Carousel
   -------------------------------------------------------------------------- */
.photo-carousel {
  position:      relative;
  width:         100%;
  height:        340px;
  overflow:      hidden;
  background:    var(--bg3);
  border-top:    0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}

.carousel-container { width: 100%; height: 100%; overflow: hidden; }

.carousel-track {
  display:   flex;
  height:    100%;
  gap:       0;
  animation: scroll 32s linear infinite;
  width:     max-content;
}

.carousel-item { flex-shrink: 0; width: 420px; height: 100%; margin-right: 16px; overflow: hidden; }

.carousel-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; display: block; }
.carousel-item:hover img { transform: scale(1.03); }

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


/* --------------------------------------------------------------------------
   13. About Page
   -------------------------------------------------------------------------- */

/* ── Hero ── */
.about-hero {
  padding:    88px 52px 72px;
  position:   relative;
  background: var(--bg);
  border-bottom: 0.5px solid var(--border);
}

.about-hero::before {
  content:    '';
  position:   absolute;
  top: 0; left: 0; right: 0;
  height:     3px;
  background: linear-gradient(to right, var(--red) 0%, rgba(185,28,28,0.12) 55%, transparent 100%);
}

.about-hero-inner { max-width: 640px; }

/* ── Photo strip ── */
.about-photo-strip {
  display:        flex;
  height:         420px;
  gap:            3px;
  background:     var(--border);
  overflow:       hidden;
  border-bottom:  0.5px solid var(--border);
}

.about-strip-img {
  flex:     1;
  overflow: hidden;
  position: relative;
}

.about-strip-main { flex: 2; }

.about-strip-img img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  object-position: center;
  display:    block;
  transition: transform 0.5s ease;
}

.about-strip-img:hover img { transform: scale(1.04); }

@media (max-width: 900px) {
  .about-photo-strip { height: 280px; }
  .about-strip-img:nth-child(3),
  .about-strip-img:nth-child(4) { display: none; }
  .about-strip-main { flex: 1; }
}

@media (max-width: 600px) {
  .about-photo-strip { height: 220px; }
  .about-hero { padding: 64px 24px 52px; }
}

/* ── Body ── */
.about-body { padding: 0 52px; }

.about-section {
  padding: 64px 0;
}

.about-section--bordered {
  border-top: 0.5px solid var(--border);
}

.about-section-heading {
  font-family:   var(--serif);
  font-size:     clamp(22px, 2.6vw, 30px);
  font-weight:   400;
  line-height:   1.3;
  margin-bottom: 22px;
  margin-top:    12px;
}

.about-p {
  font-size:     15px;
  color:         var(--text-dim);
  line-height:   1.85;
  margin-bottom: 16px;
  max-width:     600px;
}

.about-p--lead {
  font-size: 17px;
}

.about-link {
  font-size:      13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          var(--red);
  text-decoration: none;
  display:        inline-block;
  margin-top:     8px;
}

.about-link:hover { text-decoration: underline; }

/* ── Competition section: text + stat panel ── */
.about-section-grid {
  display:               grid;
  grid-template-columns: 1.4fr 1fr;
  gap:                   72px;
  align-items:           start;
}

.about-section-aside {
  display:        flex;
  flex-direction: column;
  gap:            1px;
  background:     var(--border);
  border:         0.5px solid var(--border);
  margin-top:     44px; /* align with text after label+heading */
}

.about-stat-card {
  background: var(--bg);
  padding:    24px 28px;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}

.about-stat-card:hover { background: var(--bg2); border-left-color: var(--red); }

.about-stat-num {
  font-family:   var(--serif);
  font-size:     40px;
  color:         var(--text);
  line-height:   1;
  margin-bottom: 6px;
}

.about-stat-label {
  font-size:   13px;
  color:       var(--text-dim);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .about-section-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-section-aside { margin-top: 0; }
  .about-body { padding: 0 24px; }
}

/* ── Team Composition ── */
.about-composition-grid {
  display:               grid;
  grid-template-columns: 1fr 1.4fr;
  gap:                   72px;
  align-items:           start;
}

/* Analyst Role Cards */
.role-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px;
}

.role-card {
  background: var(--bg);
  border: 0.5px solid var(--border);
  padding: 28px;
  transition: background 0.2s, border-color 0.2s;
}

.role-card:hover {
  background: var(--bg2);
  border-color: var(--red);
}

.role-card-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.role-card-content h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--text);
}

.role-card-content p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.75;
}

/* Photo inside each Analyst Role card */
.role-photo-box {
  margin-top: 20px;
  border: 0.5px solid var(--border);
  background: var(--bg);
  padding: 8px;
  border-radius: 4px;
  transition: background 0.2s, border-color 0.2s;
}

.role-photo-box:hover {
  background: var(--bg2);
  border-color: var(--red);
}

.role-photo-box img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px;
}

/* Responsive */
@media (max-width: 900px) {
  .role-cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .about-composition-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Timeline ── */
.timeline { margin-top: 40px; }

.timeline-row {
  display:               grid;
  grid-template-columns: 120px 1fr;
  gap:                   40px;
  padding:               36px 0;
  border-top:            0.5px solid var(--border);
}

.timeline-year {
  display:        flex;
  flex-direction: column;
  align-items:    flex-start;
  gap:            8px;
  padding-top:    4px;
  font-size:      12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color:          var(--text-dim);
}

.timeline-marker {
  font-family:   var(--serif);
  font-size:     36px;
  color:         var(--red);
  line-height:   1;
}

.timeline-content h4 {
  font-size:      15px;
  font-weight:    500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom:  10px;
  color:          var(--text);
}

.timeline-content p {
  font-size:     14px;
  color:         var(--text-dim);
  line-height:   1.8;
  max-width:     600px;
}

.phase-steps {
  display:   flex;
  gap:       8px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.phase-step {
  padding:        8px 16px;
  border:         0.5px solid var(--border);
  transition:     all 0.2s;
  background:     var(--bg);
}

.phase-step:hover { border-color: var(--red); background: var(--red-dim); }

.phase-step span {
  font-size:      12px;
  color:          var(--text-dim);
  font-weight:    500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .timeline-row { grid-template-columns: 1fr; gap: 16px; }
  .timeline-year { flex-direction: row; align-items: center; gap: 12px; }
  .timeline-marker { font-size: 28px; }
}

/* ── Kept from old about CSS (still referenced elsewhere) ── */
.page-eyebrow {
  font-size:      14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color:          var(--red);
  margin-bottom:  16px;
}

.page-title {
  font-family: var(--sans);
  font-size:   clamp(40px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  color:       var(--text);
}

.page-subtitle { font-size: 18px; color: var(--text-dim); margin-top: 14px; max-width: 560px; line-height: 1.75; }

/* --------------------------------------------------------------------------
   14. Members Page
   -------------------------------------------------------------------------- */
.members-hero {
  padding:       80px 52px 72px;
  border-bottom: 0.5px solid var(--border);
  position:      relative;
  background:    var(--bg);
}

.members-hero::before {
  content:    '';
  position:   absolute;
  top: 0; left: 0; right: 0;
  height:     3px;
  background: linear-gradient(to right, var(--red) 0%, rgba(185,28,28,0.12) 55%, transparent 100%);
}

.filter-row { display: flex; gap: 8px; padding: 28px 52px 0; flex-wrap: wrap; }

.filter-btn {
  font-size:      14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding:        7px 18px;
  background:     transparent;
  color:          var(--text-dim);
  border:         0.5px solid var(--border);
  cursor:         pointer;
  transition:     all 0.18s;
  font-family:    var(--sans);
}

.filter-btn:hover  { border-color: var(--border-hover); color: var(--text); }
.filter-btn.active { background: var(--red); border-color: var(--red); color: #fff; }

.members-content { padding: 52px 52px 88px; }
.subteam-section  { margin-bottom: 60px; }

#team-container { padding: 52px 52px 88px; }

.subteam-header {
  margin-bottom:  28px;
  padding-bottom: 16px;
  border-bottom:  0.5px solid var(--border);
  display:        flex;
  align-items:    baseline;
  gap:            16px;
  position:       relative;
}

.subteam-header::after {
  content:    '';
  position:   absolute;
  bottom: -0.5px; left: 0;
  width:      40px; height: 2px;
  background: var(--red);
}

.subteam-section-label { font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); }
.subteam-section-title { font-family: var(--sans); font-size: 26px; font-weight: 400; }

.members-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap:                   24px;
}

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

.member-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 4px;
  filter: grayscale(15%);
  transition: filter 0.3s ease, transform 0.3s ease;
  background: var(--bg3);
}

.member-card:hover img {
  filter: grayscale(0%);
  transform: scale(1.02);
}

/* Placeholder when no photo */
.member-no-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 32px;
  letter-spacing: 0.02em;
  font-family: var(--serif);
  font-style: italic;
}

.member-photo {
  width: 100%; aspect-ratio: 3 / 4;
  object-fit: cover; object-position: center top;
  display: block;
  filter: grayscale(20%);
  transition: filter 0.35s;
}

/* Team Composition — Tag Cloud (Red Variant) */
.composition-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.composition-tag {
  padding: 8px 14px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 0.5px solid var(--red);
  transition: all 0.2s;
}

.composition-tag:hover {
  background: #991616; /* deeper red on hover */
  border-color: #991616;
  transform: translateY(-1px);
}

.member-photo:hover { filter: grayscale(0%); }

.member-info { padding: 10px 0 0; border-top: 2px solid var(--border); transition: border-color 0.2s; }
.member-card:hover .member-info { border-color: var(--red); }

.member-name { font-size: 14px; font-weight: 400; color: var(--text); margin-top: 10px; line-height: 1.4; }

.member-lead-tag {
  font-size:      11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          #fff;
  background:     var(--red);
  padding:        2px 6px;
  margin-left:    6px;
  vertical-align: middle;
}


/* --------------------------------------------------------------------------
   15. Apply Page
   -------------------------------------------------------------------------- */
.apply-hero {
  padding:       80px 52px 72px;
  border-bottom: 0.5px solid var(--border);
  position:      relative;
  background:    var(--bg);
}

.apply-hero::before {
  content:    '';
  position:   absolute;
  top: 0; left: 0; right: 0;
  height:     3px;
  background: linear-gradient(to right, var(--red) 0%, rgba(185,28,28,0.12) 55%, transparent 100%);
}

.apply-hero::after {
  content:    '';
  position:   absolute;
  top: 0; right: 0;
  width:  240px; height: 240px;
  background: radial-gradient(ellipse at top right, rgba(185,28,28,0.04) 0%, transparent 65%);
  pointer-events: none;
}

.apply-body {
  padding:               72px 52px;
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   80px;
  align-items:           start;
}

.apply-closed-badge {
  display:        inline-block;
  font-size:      14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding:        6px 14px;
  border:         0.5px solid rgba(185, 28, 28, 0.4);
  color:          var(--red);
  background:     var(--red-dim);
  margin-bottom:  28px;
}

.apply-open-badge {
  display:        inline-block;
  font-size:      14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding:        6px 14px;
  border:         0.5px solid rgba(34, 197, 94, 0.4);
  color:          #16a34a;
  background:     rgba(34, 197, 94, 0.06);
  margin-bottom:  28px;
}

.apply-positions { display: grid; gap: 1px; background: var(--border); margin-top: 40px; }

.apply-position {
  background:  var(--bg);
  padding:     24px 28px;
  border-left: 3px solid transparent;
  transition:  all 0.2s;
}

.apply-position:hover { background: var(--bg2); border-left-color: var(--red); }

.apply-pos-title { font-size: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.apply-pos-desc  { font-size: 16px; color: var(--text-dim); line-height: 1.7; margin-bottom: 14px; }

.apply-pos-link { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); text-decoration: none; }
.apply-pos-link:hover { text-decoration: underline; }

.faq-item { border-bottom: 0.5px solid var(--border); }

.faq-q {
  font-size:       14px;
  font-weight:     400;
  padding:         20px 0;
  cursor:          pointer;
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  gap:             16px;
  color:           var(--text);
  transition:      color 0.2s;
}

.faq-q:hover { color: var(--red); }

.faq-q::after {
  content:    '+';
  font-size:  18px;
  color:      var(--text-dim);
  flex-shrink: 0;
  transition: transform 0.2s, color 0.2s;
}

.faq-item.open .faq-q        { color: var(--red); }
.faq-item.open .faq-q::after { transform: rotate(45deg); color: var(--red); }

.faq-a {
  font-size:   14px;
  color:       var(--text-dim);
  line-height: 1.75;
  max-height:  0;
  overflow:    hidden;
  transition:  max-height 0.3s ease, padding 0.3s;
}

.faq-item.open .faq-a { max-height: 300px; padding-bottom: 20px; }


/* --------------------------------------------------------------------------
   16. Sponsors Page
   -------------------------------------------------------------------------- */
.sponsors-hero {
  padding:       80px 52px 72px;
  border-bottom: 0.5px solid var(--border);
  position:      relative;
  background:    var(--bg);
}

.sponsors-hero::before {
  content:    '';
  position:   absolute;
  top: 0; left: 0; right: 0;
  height:     3px;
  background: linear-gradient(to right, var(--red) 0%, rgba(185,28,28,0.12) 55%, transparent 100%);
}

.sponsors-body { padding: 72px 52px; }
.sponsors-intro { max-width: 600px; margin-bottom: 56px; }
.sponsors-intro p { font-size: 18px; color: var(--text-dim); line-height: 1.8; margin-bottom: 16px; }

.sponsor-benefits {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   1px;
  background:            var(--border);
  margin-bottom:         64px;
}

.benefit-card {
  background: var(--bg);
  padding:    28px;
  border-top: 3px solid transparent;
  transition: all 0.2s;
}

.benefit-card:hover { background: var(--bg2); border-top-color: var(--red); }

.benefit-icon  { font-family: var(--serif); font-size: 32px; color: var(--red); margin-bottom: 14px; }
.benefit-title { font-size: 16px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.benefit-desc  { font-size: 16px; color: var(--text-dim); line-height: 1.7; }

.tiers-section h2 { font-family: var(--sans); font-size: 32px; font-weight: 400; margin-bottom: 28px; }

.tiers-grid {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  gap:                   1px;
  background:            var(--border);
  margin-bottom:         48px;
}

.tier-card {
  background: var(--bg);
  padding:    28px;
  border-top: 3px solid transparent;
  transition: all 0.2s;
}

.tier-card:hover { background: var(--bg2); border-top-color: var(--red); }

/* Gold = single dark card as accent among white */
.tier-card.featured {
  background: var(--text);
  border-top: 3px solid var(--red);
}

.tier-card.featured .tier-name   { color: rgba(255,255,255,0.4); }
.tier-card.featured .tier-amount { color: #fff; }
.tier-card.featured .tier-perks li { color: rgba(255,255,255,0.55); border-color: rgba(255,255,255,0.08); }
.tier-card.featured .tier-perks li::before { color: var(--red); }

.tier-name   { font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 10px; }
.tier-amount { font-family: var(--serif); font-size: 36px; color: var(--text); line-height: 1; margin-bottom: 16px; }

.tier-perks { list-style: none; }

.tier-perks li {
  font-size:   14px;
  color:       var(--text-dim);
  padding:     6px 0;
  border-top:  0.5px solid var(--border);
  display:     flex;
  align-items: start;
  gap:         8px;
}

.tier-perks li::before { content: '—'; color: var(--red); flex-shrink: 0; }

.sponsor-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.sponsor-cta-text { font-size: 14px; color: var(--text-dim); max-width: 400px; }


/* --------------------------------------------------------------------------
   17. R&D Devices Page
   -------------------------------------------------------------------------- */
.rnd-hero {
  padding:       48px 52px 72px;
  border-bottom: 0.5px solid var(--border);
  position:      relative;
  background:    var(--bg);
}

.rnd-hero::before {
  content:    '';
  position:   absolute;
  top: 0; left: 0; right: 0;
  height:     3px;
  background: linear-gradient(to right, var(--red) 0%, rgba(185,28,28,0.12) 55%, transparent 100%);
}

.rnd-content {
  padding:               72px 52px;
  display:               grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap:                   32px;
  max-width:             1200px;
  margin:                0 auto;
}

.device-block {
  background: var(--bg);
  border:     0.5px solid var(--border);
  border-top: 3px solid transparent;
  padding:    24px;
  transition: all 0.25s ease;
}

.device-block:hover {
  border-top: 3px solid var(--red);
  box-shadow: 0 4px 24px rgba(185,28,28,0.06);
  transform:  translateY(-2px);
}

.device-photo  { width: 100%; height: auto; border-radius: 2px; margin-bottom: 16px; }
.device-year   { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.device-name   { font-family: var(--sans); font-size: 20px; font-weight: 500; color: var(--text); margin-bottom: 12px; line-height: 1.3; }
.device-desc   { font-size: 14px; color: var(--text-mid); line-height: 1.6; }