/* ==========================================================================
   IEEE EMBS – IIT Student Branch Chapter
   2026 Trending Light-Mode Design System
   Palette: White (#FFFFFF), Porcelain (#F7F8FC), Ink Black (#0B0F19),
            IEEE Blue (#00629B), EMBS Purple (#772583), Cool Gray (#75787B)
   ========================================================================== */

@font-face {
  font-family: "Ronzino";
  src: url("../fonts/ronzino/Ronzino-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ronzino";
  src: url("../fonts/ronzino/Ronzino-Oblique.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Ronzino";
  src: url("../fonts/ronzino/Ronzino-Medium.woff2") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ronzino";
  src: url("../fonts/ronzino/Ronzino-MediumOblique.woff2") format("woff2");
  font-weight: 500 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Ronzino";
  src: url("../fonts/ronzino/Ronzino-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mattone";
  src: url("../fonts/mattone/Mattone-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mattone";
  src: url("../fonts/mattone/Mattone-Bold.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mattone";
  src: url("../fonts/mattone/Mattone-Black.woff2") format("woff2");
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ronzino";
  src: url("../fonts/ronzino/Ronzino-BoldOblique.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --black: #0b0f19;
  --ink-muted: #4b5565;
  --ink-subtle: #667085;
  --white: #ffffff;
  --surface: #f7f8fc;
  --surface-alt: #f1f4fa;
  --border: #e4e8f1;
  --border-strong: #cfd6e4;

  /* Official IEEE & EMBS Visual Identity */
  --ieee-blue: #00629b;
  --ieee-blue-bright: #0082cc;
  --embs-purple: #772583;
  --embs-purple-bright: #9834a8;
  --cool-gray: #75787b;

  --gradient-brand: linear-gradient(135deg, var(--embs-purple) 0%, var(--ieee-blue) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(119, 37, 131, 0.08) 0%, rgba(0, 98, 155, 0.08) 100%);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --shadow-xs: 0 2px 10px rgba(11, 15, 25, 0.04);
  --shadow-card: 0 14px 40px rgba(11, 15, 25, 0.06);
  --shadow-hover: 0 22px 54px rgba(119, 37, 131, 0.12), 0 8px 20px rgba(0, 98, 155, 0.08);

  --font-sans: "Ronzino", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Mattone", "Ronzino", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Ronzino", ui-monospace, SFMono-Regular, Menlo, monospace;

  --max-width: 1200px;
  --nav-height: 76px;
  --transition: 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--black);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
  color: var(--black);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--embs-purple);
}

.section-title {
  font-size: clamp(2rem, 3.6vw, 3rem);
  margin-top: 0.9rem;
}

.section-lead {
  font-size: 1.06rem;
  color: var(--ink-muted);
  max-width: 62ch;
  margin-top: 0.9rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.88rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--black);
  color: var(--white);
  box-shadow: 0 10px 26px rgba(11, 15, 25, 0.16);
}

.btn-primary:hover {
  background: var(--gradient-brand);
  box-shadow: 0 14px 30px rgba(119, 37, 131, 0.25);
}

.btn-outline-dark,
.btn-outline-light {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--border-strong);
  color: var(--black);
  box-shadow: var(--shadow-xs);
}

.btn-outline-dark:hover,
.btn-outline-light:hover {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.btn-ieee {
  background: var(--ieee-blue);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(0, 98, 155, 0.22);
}

.btn-ieee:hover {
  background: var(--ieee-blue-bright);
  box-shadow: 0 14px 30px rgba(0, 98, 155, 0.3);
}

/* ---------- Glassmorphic Sticky Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  color: var(--black);
}

.logo-crop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-img {
  width: auto;
  max-width: none;
  display: block;
}

.logo-crop--embs {
  width: 248px;
  height: 52px;
}

.logo-img--embs {
  height: 106px;
}

.brand-lockup--footer .logo-crop--embs {
  width: 280px;
  height: 58px;
}

.brand-lockup--footer .logo-img--embs {
  height: 120px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.nav-link {
  color: var(--ink-muted);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color var(--transition), background var(--transition), box-shadow var(--transition);
}

.nav-link:hover {
  color: var(--black);
}

.nav-link.active {
  color: var(--black);
  background: var(--white);
  box-shadow: 0 2px 10px rgba(11, 15, 25, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-cta {
  padding: 0.62rem 1.25rem;
  font-size: 0.88rem;
}

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--black);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------- Hero 3D Scroll Showcase (Light Mode) ---------- */
.hero-3d-shell {
  position: relative;
  background-color: var(--white);
  background-image:
    radial-gradient(circle at 78% 30%, rgba(119, 37, 131, 0.13), transparent 44%),
    radial-gradient(circle at 60% 78%, rgba(0, 98, 155, 0.12), transparent 45%),
    radial-gradient(rgba(11, 15, 25, 0.08) 1px, transparent 1px);
  background-size: auto, auto, 26px 26px;
  color: var(--black);
  overflow: hidden;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  padding: 5rem 0 5.5rem;
  border-bottom: 1px solid var(--border);
}

#hero3dCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.96;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.6rem, 5.2vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.hero-title-brand {
  display: inline-block;
  white-space: nowrap;
  font-size: clamp(2rem, 5.2vw, 4.5rem);
}

.text-gradient {
  background: linear-gradient(120deg, var(--embs-purple) 10%, var(--ieee-blue) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin-top: 1.4rem;
  font-size: 1.14rem;
  color: var(--ink-muted);
  max-width: 52ch;
}

.hero-ctas {
  margin-top: 2.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
}

/* ---------- Page Banner (Subpages Light Mode) ---------- */
.page-hero {
  background-color: var(--surface);
  background-image:
    radial-gradient(circle at 82% 20%, rgba(119, 37, 131, 0.12), transparent 44%),
    radial-gradient(circle at 12% 88%, rgba(0, 98, 155, 0.11), transparent 44%),
    radial-gradient(rgba(11, 15, 25, 0.06) 1px, transparent 1px);
  background-size: auto, auto, 24px 24px;
  color: var(--black);
  padding: 4.5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(2.25rem, 4.3vw, 3.5rem);
  margin-top: 0.9rem;
}

.page-hero p {
  color: var(--ink-muted);
  max-width: 64ch;
  margin-top: 0.95rem;
  font-size: 1.07rem;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-subtle);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

.breadcrumb a:hover {
  color: var(--ieee-blue);
}

/* ---------- Sections ---------- */
.section {
  padding: 5.5rem 0;
}

.section-white {
  background: var(--white);
  color: var(--black);
}

.section-soft,
.section-dark {
  background: var(--surface);
  color: var(--black);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2.8rem;
}

/* ---------- Mission & Vision ---------- */
.mv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

.mv-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.mv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(119, 37, 131, 0.28);
}

.mv-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-brand);
}

.mv-card.mv-dark {
  background: linear-gradient(155deg, #faf6fc 0%, #f2f8fd 100%);
  color: var(--black);
  border-color: rgba(0, 98, 155, 0.16);
}

.mv-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.mv-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.02rem;
}

/* ---------- Project Cards ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--black);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(119, 37, 131, 0.38);
  box-shadow: var(--shadow-hover);
}

.project-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-alt);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.project-card:hover .project-media img {
  transform: scale(1.04);
}

.project-date-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.92);
  color: var(--black);
  border: 1px solid rgba(11, 15, 25, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(11, 15, 25, 0.12);
}

.project-body {
  padding: 1.9rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-category {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--embs-purple);
  font-weight: 700;
}

.project-body h3 {
  font-size: 1.65rem;
  margin-top: 0.45rem;
}

.project-body p {
  color: var(--ink-muted);
  margin: 0.8rem 0 1.25rem;
  flex: 1;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
}

.chip {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.34rem 0.8rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--black);
}

/* ---------- Upcoming Confirmed Events ---------- */
.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.upcoming-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--ieee-blue);
  border-radius: var(--radius-md);
  padding: 1.9rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.upcoming-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.status-confirmed {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ieee-blue);
  background: rgba(0, 98, 155, 0.09);
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  text-transform: uppercase;
}

/* ---------- Join With Us & Forms ---------- */
.join-wrapper {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
}

.join-wrapper[data-tab-group] {
  grid-template-columns: minmax(0, 1fr);
}

.join-wrapper[data-tab-group] .join-aside {
  border-right: 0;
  border-bottom: 0;
}

.join-aside {
  background: linear-gradient(155deg, #f8f2fb 0%, #edf6fc 100%);
  color: var(--black);
  padding: 2.6rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

.join-aside p {
  color: var(--ink-muted);
}

.join-perks {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.85rem;
}

.join-perks li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.94rem;
  color: var(--black);
  font-weight: 500;
}

.join-form-panel {
  padding: 2.6rem;
  background: var(--white);
}

.tab-switcher {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.35rem;
  border-radius: 999px;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
}

.tab-btn {
  border: 0;
  background: transparent;
  padding: 0.62rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.tab-btn.active {
  background: var(--black);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(11, 15, 25, 0.16);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--black);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.84rem 0.98rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--black);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--embs-purple);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(119, 37, 131, 0.1);
}

.form-feedback {
  margin-top: 1rem;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  display: none;
}

.form-feedback.show {
  display: block;
}

.form-feedback.success {
  background: rgba(0, 98, 155, 0.08);
  border: 1px solid rgba(0, 98, 155, 0.28);
  color: #004670;
}

/* ---------- Team Grids (About Page) ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 1.35rem;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--embs-purple);
  box-shadow: var(--shadow-hover);
}

.team-avatar {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--gradient-brand);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.team-role {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--embs-purple);
  margin-bottom: 0.35rem;
}

.team-card h3 {
  font-size: 1.18rem;
}

.team-card p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin: 0.5rem 0 0;
}

/* ---------- Contact Page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.3rem;
  box-shadow: var(--shadow-card);
}

.info-stack {
  display: grid;
  gap: 1.15rem;
}

.info-tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: var(--white);
}

.info-tile h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.info-tile p,
.info-tile a {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
  word-break: break-word;
}

.info-tile a:hover {
  color: var(--ieee-blue);
  text-decoration: underline;
}

.linktree-banner {
  background: linear-gradient(135deg, #f6effa 0%, #ebf4fb 100%);
  color: var(--black);
  border: 1px solid rgba(119, 37, 131, 0.22);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-card);
}

.linktree-banner p {
  color: var(--ink-muted) !important;
}

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

.committee-section {
  background: var(--white);
}

.committee-heading {
  margin-bottom: 2rem;
}

.committee-heading h2 {
  margin-top: 0.45rem;
}

.committee-heading p {
  color: var(--ink-muted);
  margin-top: 0.5rem;
}

.committee-subheading {
  margin-top: 4rem;
}

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

.committee-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.committee-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.committee-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 30%;
  background: var(--border);
}

.committee-card > div {
  padding: 1rem 1.1rem 1.2rem;
}

.committee-card h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0;
}

.committee-card .team-role {
  line-height: 1.4;
}

/* ---------- Project Detail Page (Paranoia / Scavenger Hunt) ---------- */
.detail-meta-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.meta-pill {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.3rem;
  box-shadow: var(--shadow-xs);
}

.meta-pill span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  color: var(--embs-purple);
  font-weight: 700;
}

.meta-pill strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.08rem;
  color: var(--black);
}

.timeline {
  position: relative;
  padding-left: 2rem;
  display: grid;
  gap: 1.75rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--embs-purple), var(--ieee-blue));
}

.timeline-item {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.55rem 1.75rem;
  box-shadow: var(--shadow-card);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 1.65rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--embs-purple);
}

.timeline-phase {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ieee-blue);
  text-transform: uppercase;
}

.timeline-item h3 {
  font-size: 1.25rem;
  margin: 0.35rem 0 0.5rem;
}

.timeline-item p {
  margin: 0;
  color: var(--ink-muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.gallery-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.gallery-tile:hover img {
  transform: scale(1.06);
}

.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(11, 15, 25, 0.86));
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
}

/* Lightbox Modal (Light Mode) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(247, 248, 252, 0.88);
  backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  max-width: 920px;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--black);
  box-shadow: 0 28px 70px rgba(11, 15, 25, 0.16);
}

.lightbox-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.35rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.lightbox-close {
  background: var(--surface);
  color: var(--black);
  border: 1px solid var(--border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.15rem;
}

.lightbox-inner img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background: var(--surface);
}

/* ---------- Footer (Light Mode) ---------- */
.site-footer {
  background: var(--surface);
  color: var(--black);
  border-top: 1px solid var(--border);
  padding: 4.5rem 0 2.2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.footer-desc {
  color: var(--ink-muted);
  font-size: 0.94rem;
  margin-top: 1rem;
  max-width: 36ch;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--embs-purple);
  margin-bottom: 1rem;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.footer-list a {
  color: var(--ink-muted);
  font-size: 0.94rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--transition);
}

.footer-list a:hover {
  color: var(--black);
}

.footer-bottom {
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--cool-gray);
  font-size: 0.86rem;
}

/* ---------- Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
  .mv-card:hover,
  .project-card:hover,
  .team-card:hover,
  .upcoming-card:hover {
    transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-5px);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {

  .hero-grid,
  .mv-grid,
  .projects-grid,
  .upcoming-grid,
  .join-wrapper,
  .contact-layout,
  .footer-grid,
  .detail-meta-strip,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .join-aside {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .exec-contact-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(18px);
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid var(--border);
    padding: 1.25rem;
    align-items: stretch;
  }

  .site-header.menu-open .nav-link {
    font-family: var(--font-display);
  }
}

@media (max-width: 600px) {
  .brand-lockup--nav .logo-crop--embs {
    width: 204px;
    height: 44px;
  }

  .brand-lockup--nav .logo-img--embs {
    height: 88px;
  }
}
