/* ============================================
   GRID XRPL — Base Stylesheet
   Design language inspired by engma.io
   Dark, technical, minimalist, Web3-native
============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* ─── Reset & Base ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:          #080808;
  --bg-2:        #0e0e0e;
  --bg-3:        #141414;
  --border:      #1e1e1e;
  --border-2:    #2a2a2a;
  --text:        #f2f2f2;
  --text-2:      #999999;
  --text-3:      #555555;
  --accent:      #FFE600;
  --accent-dim:  rgba(255, 230, 0, 0.08);
  --accent-glow: rgba(255, 230, 0, 0.15);
  --font-sans:   'Space Grotesk', sans-serif;
  --font-mono:   'Space Mono', monospace;
  --max-w:       1200px;
  --nav-h:       72px;
  --radius:      4px;
  --transition:  0.2s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: #000;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

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

ul { list-style: none; }

/* ─── Layout Helpers ─── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 120px 0;
}

.section--sm {
  padding: 80px 0;
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* ─── Typography ─── */
.label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
}

.label--accent {
  color: var(--accent);
}

.bracket-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  border: 1px solid var(--border-2);
  padding: 4px 10px;
  display: inline-block;
}

.bracket-label--accent {
  color: var(--accent);
  border-color: var(--accent);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
}

.h-display {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.h-xl {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.h-lg {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.h-md {
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 600;
}

.body-lg {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-2);
}

.body-md {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
}

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.nav.scrolled {
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
}

.nav__logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-2);
  transition: color var(--transition);
}

.nav__link:hover {
  color: var(--text);
}

.nav__cta {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000;
  background: var(--accent);
  padding: 9px 18px;
  transition: opacity var(--transition);
}

.nav__cta:hover {
  opacity: 0.85;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #ffffff;
  transition: all 0.25s ease;
}

.nav__link--docs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0.8;
}

.nav__link--docs:hover {
  opacity: 1;
  color: var(--accent);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__icon-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 0;
  color: #ffffff;
  background: transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.nav__icon-btn:hover {
  border-color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.08);
  color: #ffffff;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-top: var(--nav-h);
  overflow: hidden;
  background: #000;
}

/* Full-screen background video */
.hero__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

/* Dark gradient overlay — heavier at bottom for text legibility */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.45) 40%,
      rgba(0, 0, 0, 0.15) 100%
    );
  pointer-events: none;
}

/* Container sits above overlay */
.hero__container {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 80px;
}

.hero__content {
  max-width: 680px;
}

.hero__tag {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.hero__tag-line {
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.hero__title {
  margin-bottom: 24px;
}

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

.hero__sub {
  max-width: 520px;
  margin-bottom: 40px;
  color: rgba(242, 242, 242, 0.75);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  z-index: 2;
}

.hero__scroll-line {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.3);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 24px;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  outline: none;
}

.btn--primary {
  background: var(--accent);
  color: #000;
}

.btn--primary:hover {
  opacity: 0.85;
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-2);
}

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

.btn--ghost {
  background: transparent;
  color: var(--text-2);
  padding: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.btn--ghost:hover {
  color: var(--text);
}

.btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ─── Section Headers ─── */
.section-header {
  margin-bottom: 72px;
}

.section-header--center {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 72px;
}

.section-header .label {
  margin-bottom: 16px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.7;
}

/* ─── Why GRID — Feature Blocks ─── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.feature {
  background: var(--bg);
  padding: 40px 36px;
  transition: background var(--transition);
}

.feature:hover {
  background: var(--bg-2);
}

.feature__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
  color: var(--accent);
}

.feature__icon svg {
  width: 100%;
  height: 100%;
}

.feature h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}

/* ─── Tools / Layer Cards ─── */

.tool-card {
  background: var(--bg);
  border: 1px solid var(--border);
  position: relative;
  transition: background var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

.tool-card:hover {
  background: var(--bg-2);
  border-color: rgba(255,230,0,0.2);
}

.tool-card--soon {
  opacity: 0.65;
}

.tool-card--soon:hover {
  opacity: 0.8;
}

/* Card header: status + number */
.tool-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}

.tool-card__status {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 4px 8px;
  border-radius: 2px;
}

.tool-card__status--live {
  color: #000;
  background: var(--accent);
}

.tool-card__status--soon {
  color: var(--text-3);
  background: transparent;
  border: 1px solid var(--border);
}

.tool-card__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.1em;
}

/* Icon area */
.tool-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px 24px;
  color: var(--accent);
}

.tool-card__icon svg {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.tool-card--soon .tool-card__icon {
  color: var(--text-3);
}

/* Body: label + title + desc */
.tool-card__body {
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.tool-card__label {
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 4px;
}

.tool-card--soon .tool-card__label {
  color: var(--text-3);
}

.tool-card__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-1);
  line-height: 1.3;
}

.tool-card__desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
  flex: 1;
}

/* Footer: launch button */
.tool-card__footer {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

/* Small button variant */
.btn--sm {
  font-size: 11px;
  padding: 8px 16px;
  gap: 6px;
}

.btn--sm svg {
  width: 10px;
  height: 10px;
}

/* Disabled button */
.btn--disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* Tools grid layout */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  gap: 0;
}

.tools-grid .tool-card {
  border: none;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tools-grid .tool-card:nth-child(4n) {
  border-right: none;
}


/* ─── Ecosystem / Product Cards ─── */
.ecosystem-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.ecosystem-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.eco-card {
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s;
}

.eco-card:hover {
  border-color: rgba(255,230,0,0.25);
}

/* ── Visual area (engma-style) ── */
.eco-card__visual {
  position: relative;
  width: 100%;
  height: 220px;
  background: #080808;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
}

.eco-card__visual-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--accent);
}

.eco-card__era-label {
  position: absolute;
  bottom: 14px;
  left: 16px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}

/* ── Content area ── */
.eco-card__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.eco-card__content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--fg);
}

.eco-card__tagline {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.eco-card__content p {
  font-size: 0.9rem;
  color: var(--fg-dim);
  line-height: 1.7;
  flex: 1;
}

/* ─── Stats Bar ─── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.stat {
  background: var(--bg);
  padding: 40px 36px;
  text-align: center;
}

.stat__num {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}

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

.stat__label {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

/* ─── Roadmap ─── */
.roadmap {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.roadmap-phase {
  background: var(--bg);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
}

.roadmap-phase__label {
  padding: 40px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.roadmap-phase__period {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-3);
  text-transform: uppercase;
}

.roadmap-phase__title {
  font-size: 16px;
  font-weight: 600;
}

.roadmap-phase__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  margin-top: auto;
}

.roadmap-phase__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-3);
}

.roadmap-phase__status-dot--active {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

.roadmap-phase__items {
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 40px;
}

.roadmap-item h5 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.roadmap-item p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ─── Community / Token ─── */
.community {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.community__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.community__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid var(--border-2);
  padding: 10px 16px;
  transition: all var(--transition);
}

.social-btn:hover {
  color: var(--text);
  border-color: var(--text-2);
}

.social-btn svg {
  width: 14px;
  height: 14px;
}

.token-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.token-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg);
}

.token-row__key {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.token-row__val {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  font-weight: 700;
}

/* ─── Footer ─── */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.06em;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.06em;
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--text-2);
}

/* ─── Mobile Nav ─── */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 24px 32px;
  flex-direction: column;
  gap: 20px;
  z-index: 99;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

.mobile-menu a:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* ─── Marquee Bar ─── */
.marquee-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  overflow: hidden;
  background: var(--bg-2);
}

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

.marquee-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-3);
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-item::after {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--accent);
  display: block;
  flex-shrink: 0;
}

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

/* ─── Utility ─── */
.text-accent { color: var(--accent); }
.text-muted  { color: var(--text-2); }
.mono        { font-family: var(--font-mono); }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__cta { display: none; }
  .nav__icon-btns { display: none; }
  .nav__right { gap: 0; }

  /* Hero — mobile: video top, content below (engma style) */
  .hero {
    padding-top: var(--nav-h);
    align-items: flex-start;
    min-height: 100vh;
  }

  /* Hero mobile — centered */
  .hero {
    align-items: center;
    justify-content: center;
  }

  .hero__container {
    padding-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--nav-h));
  }

  .hero__content {
    max-width: 100%;
    text-align: center;
  }

  .hero__tag {
    justify-content: center;
  }

  .hero__sub {
    font-size: 15px;
    max-width: 100%;
    margin-bottom: 32px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__title {
    font-size: clamp(30px, 7vw, 48px);
  }

  .hero__scroll {
    bottom: 20px;
    right: 20px;
  }

  .features { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-grid .tool-card:nth-child(4n) { border-right: 1px solid var(--border); }
  .tools-grid .tool-card:nth-child(2n) { border-right: none; }
  .tool-card--wide { grid-column: span 1; }
  .ecosystem-list { grid-template-columns: 1fr; }
  .eco-card__visual { height: 180px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .roadmap-phase { grid-template-columns: 1fr; }
  .roadmap-phase__label { border-right: none; border-bottom: 1px solid var(--border); padding: 24px 32px; }
  .roadmap-phase__items { grid-template-columns: 1fr; padding: 32px; }
  .community__inner { grid-template-columns: 1fr; gap: 48px; }
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
}

@media (max-width: 560px) {
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .tools-grid .tool-card:nth-child(2n) { border-right: none; }
  .tools-grid .tool-card { border-right: none; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
}


/* ─── Team Section ─── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.team-card {
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.team-card:hover {
  border-color: rgba(255,230,0,0.25);
}

/* Photo area */
.team-card__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #111;
}

.team-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(20%);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.team-card:hover .team-card__img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

/* Social icon button */
.team-card__social {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  backdrop-filter: blur(4px);
}

.team-card__social:hover {
  background: #FFE600;
  border-color: #FFE600;
  color: #000;
}

.team-card__social svg path {
  fill: currentColor;
}

/* Info area */
.team-card__info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.team-card__row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
}

.team-card__row--block {
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.team-card__label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  min-width: 72px;
  flex-shrink: 0;
}

.team-card__value {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.05em;
}

.team-card__bio {
  font-family: var(--font-sans, sans-serif);
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

.team-card__divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.07);
}

/* Responsive */
@media (max-width: 1100px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
  .team-card__photo {
    aspect-ratio: 1/1;
  }
}


/* ─── Team Card Collapsible Background ─── */
.team-card__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 100%;
  text-align: left;
  color: inherit;
}

.team-card__toggle:hover .team-card__label {
  color: #FFE600;
}

.team-card__chevron {
  color: rgba(255,255,255,0.3);
  transition: transform 0.3s ease, color 0.2s ease;
  flex-shrink: 0;
  margin-left: auto;
}

.team-card__toggle[aria-expanded="true"] .team-card__chevron {
  transform: rotate(180deg);
  color: #FFE600;
}

.team-card__collapse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
  overflow: hidden;
}

.team-card__collapse.is-open {
  grid-template-rows: 1fr;
}

.team-card__bio-wrap {
  min-height: 0;
  overflow: hidden;
  padding-top: 0;
  transition: padding-top 0.3s ease;
}

.team-card__collapse.is-open .team-card__bio-wrap {
  padding-top: 10px;
}

.team-card__bio {
  font-family: var(--font-sans, sans-serif);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  margin: 0 0 10px 0;
}

.team-card__bio:last-child {
  margin-bottom: 0;
}

.team-card__bio strong {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
