@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800;900&family=Space+Grotesk:wght@500;700;800;900&family=JetBrains+Mono:wght@700;800;900&display=swap');

:root {
  --orange: #ff6b00;
  --offwhite: #FAF9F6;
  --charcoal: #1E1E1E;
  --ink: #000000;
  --font-heading: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--orange);
  font-family: var(--font-body);
  color: var(--ink);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .window-title, .kicker, .neo-btn, .pill-btn, .window-tab {
  font-family: var(--font-heading);
}

/* Scrolling Marquee */
.marquee-wrap {
  background: var(--ink);
  color: #fff;
  border-bottom: 3px solid var(--ink);
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.marquee-content {
  display: inline-block;
  animation: marquee-scroll 25s linear infinite;
}

@keyframes marquee-scroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 6px 6px 0 var(--ink);
  }
  50% {
    transform: scale(1.01);
    box-shadow: 8px 8px 0 var(--ink);
  }
}

@keyframes drift {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-4px);
  }
}

.desktop-window {
  width: min(1100px, 100%);
  background: var(--offwhite);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  animation: floatIn 0.7s ease-out both;
}

.window-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: var(--charcoal);
  border-bottom: 3px solid var(--ink);
}

.window-controls {
  position: absolute;
  left: 16px;
  display: flex;
  gap: 8px;
}

.window-controls span {
  display: block;
  width: 12px;
  height: 12px;
  border: 3px solid var(--ink);
}

.window-controls .red { background: #ff5d5d; }
.window-controls .yellow { background: #f5c542; }
.window-controls .gray { background: #bdbdbd; }

.window-title {
  font-size: 0.76rem;
  letter-spacing: 0.32em;
  font-weight: 800;
  color: var(--offwhite);
  text-transform: uppercase;
}

.workspace {
  padding: 34px 36px 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: start;
  margin-bottom: 24px;
}

.hero-copy {
  max-width: 720px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 12px);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border: 3px solid var(--ink);
  object-fit: cover;
  background: #fff;
  animation: drift 3.2s ease-in-out infinite;
}

.kicker {
  margin: 0;
  font-size: clamp(0.72rem, 2.5vw, 0.95rem);
  font-weight: 900;
  letter-spacing: clamp(0.12em, 2vw, 0.24em);
  text-transform: uppercase;
  line-height: 1.3;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.2rem, 5.2vw, 4.4rem);
  line-height: 0.95;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-text {
  margin: 14px 0 0;
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 600;
  max-width: 620px;
}

.side-card {
  border: 3px solid var(--ink);
  background: var(--offwhite);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 18px 20px;
  animation: floatIn 0.8s ease-out 0.15s both;
}

.side-image {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border: 3px solid var(--ink);
  margin: 10px 0 12px;
  background: #fff;
  animation: drift 3.6s ease-in-out infinite;
}

.mini-label {
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.cta-wrap {
  margin-top: 26px;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 320px;
  padding: 15px 24px;
  border: 3px solid var(--ink);
  background: var(--offwhite);
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.08em;
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.pill-btn:hover {
  transform: translateY(-2px);
  box-shadow: 5px 5px 0 var(--ink);
}

.pill-btn .divider {
  width: 3px;
  height: 24px;
  background: var(--ink);
}

.pill-btn .icon {
  font-size: 1.15rem;
  font-weight: 900;
}

.pill-btn.alt {
  min-width: 240px;
  justify-content: center;
  background: var(--orange);
  color: #fff;
  box-shadow: 6px 6px 0 var(--ink);
  font-size: 0.95rem;
  animation: pulseGlow 2.6s ease-in-out infinite;
}

.pill-btn.alt:hover {
  background: #ff7a1a;
  transform: translateY(-3px) scale(1.01);
  box-shadow: 8px 8px 0 var(--ink);
  animation: none;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 18px;
}

.stat-block {
  border: 3px solid var(--ink);
  background: #fff;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 16px;
  text-transform: uppercase;
  animation: floatIn 0.6s ease-out both;
}

.stat-block strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.15rem;
}

.stat-block span {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 22px 0;
}

.panel {
  border: 3px solid var(--ink);
  background: #fff;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  transition: transform 180ms ease, box-shadow 180ms ease;
  animation: floatIn 0.8s ease-out both;
}

.panel:hover {
  transform: translateY(-2px);
  box-shadow: 8px 8px 0 var(--ink);
}

.panel h2 {
  margin: 0 0 10px;
  font-size: 1.06rem;
  line-height: 1.3;
  text-transform: uppercase;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

.panel p,
.panel li {
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 600;
  margin: 0;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

.panel a {
  word-break: break-all;
}

.panel ul {
  margin: 8px 0 0 18px;
  padding: 0;
}

.panel.wide {
  margin-top: 18px;
}

.founders-section {
  margin-top: 18px;
}

.founders-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.founder-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 3px solid var(--ink);
  background: #fff;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.founder-card:hover {
  transform: translateY(-2px);
  box-shadow: 8px 8px 0 var(--ink);
}

.founder-photo {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 3px solid var(--ink);
  background: #fff;
  flex-shrink: 0;
}

.founder-body h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  text-transform: uppercase;
}

.founder-role {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}

.founder-body p,
.founder-body a {
  margin: 0 0 4px;
  font-size: 0.92rem;
  line-height: 1.55;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.founder-body a {
  display: inline-block;
  margin-top: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.top-inline-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 16px;
  align-items: stretch;
}

@media (min-width: 769px) {
  .top-inline-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.top-inline {
  margin-top: 0;
}

.top-inline-row .panel {
  min-height: 180px;
}

.partner-panel {
  margin-top: 0;
  background: #fff7eb;
}

.follow-panel {
  margin-top: 0;
  background: #fff;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  align-items: flex-start;
}

.social-links a {
  display: inline-block;
  padding: 10px 14px;
  border: 3px solid var(--ink);
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.partner-panel a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.panel-heading {
  margin-bottom: 16px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.step {
  border: 3px solid var(--ink);
  background: #fff7eb;
  padding: 16px;
  transition: transform 180ms ease;
}

.step:hover {
  transform: translateY(-2px);
}

.step span {
  display: block;
  margin-bottom: 8px;
  font-weight: 900;
}

.step h3 {
  margin: 0 0 8px;
  text-transform: uppercase;
}

.step p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  font-weight: 600;
}

.cta-band {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border: 3px solid var(--ink);
  background: var(--offwhite);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 20px;
}

.cta-band h2 {
  margin: 6px 0 0;
  font-size: 1.2rem;
  text-transform: uppercase;
  line-height: 1.2;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 3px solid var(--ink);
}

.footer-logo {
  width: 68px;
  height: 68px;
  border: 3px solid var(--ink);
  object-fit: cover;
  background: #fff;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.apply-now {
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.url-text {
  margin-top: 2px;
  font-size: 0.95rem;
  font-weight: 600;
}

.footer-credit {
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 6px;
  color: #555;
}

.footer-credit a {
  color: var(--ink);
  text-decoration: underline;
  font-weight: 800;
  transition: color 0.2s ease;
}

.footer-credit a:hover {
  color: var(--orange);
}

/* ==========================================
   Window Tabs Navigation
   ========================================== */
.window-tabs {
  display: flex;
  background: var(--charcoal);
  border-bottom: 3px solid var(--ink);
  padding: 0 16px;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  -ms-overflow-style: none;  /* Hide scrollbar for IE and Edge */
}

.window-tabs::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.window-tab {
  display: inline-block;
  flex-shrink: 0;
  padding: 8px 16px;
  background: #dbdbdb;
  color: var(--ink);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-top: 3px solid var(--ink);
  border-left: 3px solid var(--ink);
  border-right: 3px solid var(--ink);
  border-bottom: none;
  margin-bottom: -3px;
  position: relative;
  z-index: 1;
  transition: background-color 150ms ease, color 150ms ease;
}

.window-tab:hover {
  background: #eeeeee;
}

.window-tab.active {
  background: var(--offwhite);
  border-bottom: 3px solid var(--offwhite);
  z-index: 2;
}

/* ==========================================
   Partners Page Styles
   ========================================== */
.partners-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.back-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 3px solid var(--ink);
  background: var(--offwhite);
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 0.88rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.back-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.mini-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}

.brand-mark-mini {
  width: 36px;
  height: 36px;
  border: 3px solid var(--ink);
  object-fit: cover;
  background: #fff;
}

.mini-kicker {
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.partners-hero {
  margin-bottom: 32px;
  max-width: 800px;
}

.filter-container {
  margin-bottom: 24px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.filter-btn {
  padding: 10px 18px;
  border: 3px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.filter-btn.active {
  background: var(--orange);
  color: #fff;
  box-shadow: 4px 4px 0 var(--ink);
  transform: translateY(-2px);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.partner-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  background: #fff;
}

.partner-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.partner-logo-stamp {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  border: 2px solid var(--ink);
  padding: 4px 8px;
  background: #f0f0f0;
  color: var(--ink);
}

.partner-logo-stamp.text-orange {
  color: var(--orange);
}

.partner-badge {
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border: 2px solid var(--ink);
  color: #fff;
}

.badge-academic { background: #3b82f6; }
.badge-venture { background: #10b981; }
.badge-corporate { background: #8b5cf6; }

.partner-card-body h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  text-transform: uppercase;
  font-weight: 900;
}

.partner-location {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #666;
}

.partner-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 600;
  margin: 0;
}

.partner-card-footer {
  margin-top: 18px;
  border-top: 2px solid var(--ink);
  padding-top: 12px;
}

.partner-action-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
}

.partner-action-link:hover {
  color: var(--orange);
}

.partner-action-link .arrow {
  transition: transform 150ms ease;
}

.partner-action-link:hover .arrow {
  transform: translate(2px, -2px);
}

.footer-brand-side {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-link {
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-link:hover {
  color: var(--orange);
}

/* ==========================================
   Admin Panel Styles
   ========================================== */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.admin-form-panel {
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 24px;
}

.admin-form-panel h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  text-transform: uppercase;
  font-weight: 900;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 8px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  color: var(--ink);
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 3px solid var(--ink);
  outline: none;
  transition: box-shadow 150ms ease;
}

.form-control:focus {
  box-shadow: 4px 4px 0 var(--orange);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  padding-right: 30px;
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.admin-submit-btn {
  width: 100%;
  padding: 12px;
  background: var(--orange);
  color: #fff;
  border: 3px solid var(--ink);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.admin-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.admin-table-panel {
  grid-column: span 2;
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 24px;
  margin-top: 12px;
}

.admin-table-panel h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  text-transform: uppercase;
  font-weight: 900;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 8px;
}

.admin-table-wrapper {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  border: 3px solid var(--ink);
  background: #fff;
}

.admin-table th,
.admin-table td {
  padding: 12px 14px;
  border: 2px solid var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  vertical-align: middle;
}

.admin-table th {
  background: #dbdbdb;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.admin-table tr:nth-child(even) {
  background: #fff7eb;
}

.admin-delete-btn {
  padding: 6px 12px;
  background: #ff5d5d;
  color: #fff;
  border: 2px solid var(--ink);
  font-weight: 900;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform 100ms ease, box-shadow 100ms ease;
}

.admin-delete-btn:hover {
  transform: translateY(-1px);
  box-shadow: 2px 2px 0 var(--ink);
}

.admin-badge {
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border: 1px solid var(--ink);
  color: #fff;
  display: inline-block;
}

@media (max-width: 900px) {
  .hero-grid,
  .content-grid,
  .steps,
  .founders-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-table-panel {
    grid-column: span 1;
  }
}

@media (max-width: 760px) {
  body {
    padding: 16px;
  }

  .workspace {
    padding: 24px 20px 22px;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .pill-btn {
    min-width: 0;
    width: 100%;
    justify-content: center;
  }

  .founder-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-band,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    align-items: flex-start;
    text-align: left;
  }

  .partners-grid {
    grid-template-columns: 1fr;
  }

  .partners-nav-header {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ==========================================
   Member Portal Dashboard & Card Styles
   ========================================== */
.member-card-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.member-card {
  width: 340px;
  height: 520px;
  background-color: var(--offwhite); /* Brutalist off-white background */
  border: 3px solid var(--ink); /* Solid 3px black border */
  border-radius: 0px; /* Sharp brutalist corners */
  color: var(--ink);
  font-family: Inter, "Arial Black", Arial, sans-serif;
  position: relative;
  overflow: hidden;
  box-shadow: 8px 8px 0px var(--ink); /* Solid black drop shadow */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.member-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--orange); /* Bottom orange accent bar */
}

.member-card-header-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--charcoal); /* Window-bar charcoal background */
  border-bottom: 3px solid var(--ink);
  box-sizing: border-box;
}

.member-card-logo {
  width: 24px;
  height: 24px;
  border: 2px solid var(--ink);
  object-fit: cover;
  background: #fff;
}

.member-card-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--offwhite); /* Offwhite header text */
}

.member-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 24px;
  flex-grow: 1;
  justify-content: space-between;
  text-align: center;
  box-sizing: border-box;
}

.member-card-photo-box {
  width: 120px;
  height: 120px;
  border: 3px solid var(--ink); /* Thick black border */
  background: #ffffff;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 3px 3px 0 var(--ink); /* Sharp brutalist shadow */
}

.member-card-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-card-details-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}

.member-card-details h3 {
  margin: 0;
  font-size: 1.40rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.25;
  font-family: Inter, "Arial Black", Arial, sans-serif;
  word-break: break-word;
  max-width: 100%;
}

.member-card-info-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px; /* Uniform spacing */
  text-align: left;
  background: #ffffff; /* White background box */
  border: 3px solid var(--ink); /* Brutalist border */
  padding: 12px 14px 14px; /* Added extra bottom padding to prevent border clipping */
  box-shadow: 3px 3px 0 var(--ink); /* Sharp shadow */
}

.member-card-field {
  display: flex;
  flex-direction: column;
}

.member-card-label {
  font-size: 0.6rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange); /* Brand Orange labels */
  line-height: 1.1;
  margin-bottom: 2px;
}

.member-card-value {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: visible; /* Prevent vertical descender clipping */
  text-overflow: ellipsis;
  line-height: 1.3;
}

.member-card-value.font-mono {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  color: var(--ink);
  line-height: 1.3;
  padding-bottom: 1px; /* Extra spacing for descenders */
}

.member-card-extra-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.member-card-bio-val {
  white-space: normal !important;
  overflow: hidden;
  font-size: 0.72rem;
  color: var(--orange) !important;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Limit to 2 lines */
  -webkit-box-orient: vertical;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.member-card-footer-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 3px solid var(--ink);
  padding-top: 14px;
}

.member-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 11px;
  border: 2px solid var(--ink);
  background: var(--offwhite);
  color: var(--ink);
}

.pulsing-dot {
  width: 6px;
  height: 6px;
  background-color: #10b981; /* TFC Brand green dot */
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
  display: inline-block;
  animation: pulseScale 2s infinite ease-in-out;
}

@keyframes pulseScale {
  0%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
    box-shadow: 0 0 3px #10b981;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 0 0 8px #10b981;
  }
}

.member-card-qr-box {
  width: 54px;
  height: 54px;
  border: 2px solid var(--ink);
  background: #ffffff;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
}

.member-card-qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Print Specific Rules */
@media print {
  body * {
    visibility: hidden;
  }
  .member-card, .member-card * {
    visibility: visible;
  }
  .member-card {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
    box-shadow: none !important;
    background-color: #f9f9f9 !important;
    color: #000000 !important;
    border: 3px solid #000000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .member-card-header-bar {
    background-color: #2d2d2d !important;
  }
  .member-card-info-grid {
    background-color: #ffffff !important;
  }
  .member-status-badge {
    background-color: #f9f9f9 !important;
    color: #000000 !important;
  }
}

/* Dashboard Forms & Panels */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 32px;
  margin-top: 24px;
}

@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.dashboard-panel {
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 24px;
  color: var(--ink);
  margin-bottom: 24px;
}

.dashboard-panel h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  text-transform: uppercase;
  font-weight: 900;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 8px;
}

/* Card scaling transforms for small mobile screens to keep ratio fixed and prevent overflow */
@media (max-width: 380px) {
  .member-card {
    transform: scale(0.9);
    transform-origin: center top;
    margin-bottom: -50px; /* Offset spacing collapse from scaling */
  }
  .member-card-container {
    height: 475px; /* Adjust wrapper height to scaled size */
  }
}

@media (max-width: 340px) {
  .member-card {
    transform: scale(0.82);
    transform-origin: center top;
    margin-bottom: -95px;
  }
  .member-card-container {
    height: 430px;
  }
}

/* Page spacing adjustments for small viewports to maximize workspace content area */
@media (max-width: 480px) {
  body {
    padding: 8px !important;
  }
  .workspace {
    padding: 16px 12px 14px !important;
  }
  .dashboard-panel {
    padding: 16px 12px !important;
  }
  .admin-table-panel {
    padding: 16px 12px !important;
  }
  .pill-btn {
    min-width: 100% !important;
    width: 100% !important;
    padding: 12px 16px !important;
    font-size: 0.82rem !important;
    justify-content: center !important;
  }
  .founders-grid {
    grid-template-columns: 1fr !important;
  }
  .desktop-window {
    border-width: 2px !important;
    box-shadow: 4px 4px 0 var(--ink) !important;
  }
  .window-bar {
    padding: 8px 12px !important;
    border-bottom-width: 2px !important;
  }
}

/* ==========================================
   SCROLL ANIMATIONS SYSTEM
   ========================================== */
.reveal-on-scroll {
  animation: none !important; /* Disable default load animations */
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

/* Modifier: Slide left and tilt */
.reveal-left {
  transform: translateX(-60px) rotate(-2deg);
}

/* Modifier: Slide right and tilt */
.reveal-right {
  transform: translateX(60px) rotate(2deg);
}

/* Modifier: Spring pop up */
.reveal-pop {
  transform: translateY(40px) scale(0.95);
}

/* In view states */
.reveal-on-scroll.in-view {
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1) rotate(0);
}

/* Typographic Reveal: Words Arranging */
.reveal-type {
  opacity: 1 !important; /* Outer container remains visible */
}

.reveal-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px) rotate(4deg);
  transition: opacity 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.2),
              transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.2);
  transition-delay: calc(var(--word-index) * 0.04s);
  will-change: transform, opacity;
}

.in-view .reveal-word,
.reveal-type.in-view .reveal-word {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

/* Neo-brutalist Floating Parallax Stickers */
.floating-sticker {
  position: fixed;
  z-index: -1; /* Behind the desktop window */
  pointer-events: none;
  font-family: var(--font-heading);
  font-weight: 900;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--offwhite);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--offwhite);
  padding: 8px 14px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  transform: translate3d(0, 0, 0) rotate(var(--rotation, -4deg));
  transition: transform 0.1s ease-out; /* Smooth scrolling response */
  opacity: 0.95;
  will-change: transform;
}

/* Special shapes/colors for stickers */
.floating-sticker.orange {
  background: var(--offwhite);
  color: var(--orange);
  box-shadow: 4px 4px 0 var(--ink);
}

.floating-sticker.yellow {
  background: #ffe600;
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.floating-sticker.star {
  border-radius: 50%;
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #ffe600;
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

/* Only display floating stickers in margins for large displays */
@media (max-width: 1220px) {
  .floating-sticker {
    display: none;
  }
}

/* Mobile-friendly animation overrides */
@media (max-width: 768px) {
  .reveal-left {
    transform: translateX(-24px) rotate(0deg);
  }
  .reveal-right {
    transform: translateX(24px) rotate(0deg);
  }
  .reveal-pop {
    transform: translateY(20px) scale(0.98);
  }
  .reveal-word {
    transform: translateY(12px) rotate(0deg);
    transition-duration: 0.45s;
  }
}

