/* ═══════════════════════════════════════════════════════════════
   COMPONENTS — Shared UI: Nav, Footer, Buttons, Cards, Forms, Filters
   Requires: tokens.css, base.css
   ═══════════════════════════════════════════════════════════════ */

/* ─── NAVIGATION ─────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 27px;
  width: auto;
  display: block;
}

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: flex-end;
}

.nav-links a {
  font-family: var(--font-head);
  font-size: 16px;
  color: #848895;
  transition: color var(--dur-fast) var(--ease);
  white-space: nowrap;
  text-decoration: none;
}

.nav-links a:hover  { color: var(--c-white); }
.nav-links a.active { color: var(--c-malibu); }

/* Right cluster — flex row, adapts per breakpoint */
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

/* "Partner with us" link — hidden on desktop (in nav-links), tablet-only */
.nav-partner-link {
  display: none;
  font-family: var(--font-head);
  font-size: 16px;
  color: #848895;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease);
}

.nav-partner-link:hover { color: var(--c-white); }

/* Access DIMS CTA button */
.btn-dims {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to right, #004d83, #005794);
  color: var(--c-white);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 16px;
  line-height: normal;
  padding: 12px 32px;
  border-radius: 36px;
  border: 1px solid #5182cc;
  box-shadow: inset 0  2px 16px rgba(157, 196, 255, 0.5),
              inset 0 -2px 18px rgba(135, 205, 255, 0.5);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow    var(--dur-fast) var(--ease);
}

.btn-dims:hover {
  border-color: #66a3ff;
  box-shadow: inset 0  2px 16px rgba(0, 0, 0, 0.25),
              inset 0 -2px 18px rgba(0, 0, 0, 0.25);
}

/* Smaller variant used in mobile bottom bar and tablet */
.btn-dims--sm {
  padding: 10px 22px;
}

/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

/* "Menu" text label inside hamburger — mobile only */
.nav-menu-label {
  display: none;
  font-family: var(--font-head);
  font-size: 16px;
  color: #848895;
  line-height: 1;
}

/* Hamburger bar stack */
.nav-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-bar {
  display: block;
  width: 19px;
  height: 2.5px;
  background: #848895;
  border-radius: 1px;
  transition: transform var(--dur-fast) var(--ease),
              opacity   var(--dur-fast) var(--ease);
}

/* Animate bars → ✕ when menu is open */
.nav-hamburger.is-open .nav-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-hamburger.is-open .nav-bar:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open .nav-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ─── MOBILE BOTTOM BAR ───────────────────────────────────── */

.nav-bottom {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 70px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

.nav-bottom-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-bottom-link {
  font-family: var(--font-head);
  font-size: 16px;
  color: #848895;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

.nav-bottom-link:hover { color: var(--c-white); }

/* ─── BUTTONS ────────────────────────────────────────────────── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad-btn-primary);
  color: var(--c-white);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 16px;
  padding: 10px 30px;
  border-radius: var(--r-btn);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}

.btn-primary:hover {
  /* Primary=Hover — Button Pressed: dark inner shadow, no ring */
  background: var(--grad-btn-primary-hover);
  transform: translateY(-1px);
  box-shadow: inset 0 2px 16px rgba(0, 0, 0, 0.25),
              inset 0 -2px 18px rgba(0, 0, 0, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 16px rgba(0, 0, 0, 0.35),
              inset 0 -2px 18px rgba(0, 0, 0, 0.35);
}

.btn-primary:focus-visible {
  /* Primary=Focused — Button Glow: blue inner shadow + malibu ring */
  outline: none;
  border-color: var(--c-malibu);
  box-shadow: inset 0 2px 16px rgba(157, 196, 255, 0.50),
              inset 0 -2px 18px rgba(135, 205, 255, 0.50);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad-btn-secondary);
  color: var(--c-white);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 16px;
  padding: 10px 30px;
  border-radius: var(--r-btn);
  border: 2px solid rgba(119, 119, 119, 0.32);
  box-shadow: inset 0 -2px 18px 0 rgba(135, 205, 255, 0.25);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}

.btn-secondary:hover {
  /* Secondary=Hover — Button Pressed: dark inner shadow, subtle lift */
  transform: translateY(-1px);
  box-shadow: inset 0 2px 16px rgba(0, 0, 0, 0.25),
              inset 0 -2px 18px rgba(0, 0, 0, 0.25);
}

.btn-secondary:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 16px rgba(0, 0, 0, 0.35),
              inset 0 -2px 18px rgba(0, 0, 0, 0.35);
}

.btn-secondary:focus-visible {
  /* Secondary=Focused — Button Glow: blue inner shadow + malibu ring */
  outline: none;
  border-color: var(--c-malibu);
  box-shadow: inset 0 2px 16px rgba(157, 196, 255, 0.50),
              inset 0 -2px 18px rgba(135, 205, 255, 0.50);
}

/* ─── SECTION LABELS ─────────────────────────────────────────── */

.section-eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-malibu);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 40px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.section-sub {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255);
  max-width: 580px;
}

/* ─── AUDIENCE CARDS ─────────────────────────────────────────── */

.audience-grid {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  justify-content: center;
  margin-top: 64px;
  flex-wrap: wrap;
}

.audience-wrap {
  flex: 1 0 0;
  min-width: 295px;
  max-width: 548px;
}

.audience-wrap--down { padding-bottom: 0; }
.audience-wrap--up   { padding-top: 0; }

.audience-card {
  background: var(--grad-card-default);
  border: 1px solid rgba(119, 205, 254, 0.25);
  border-radius: 10px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease);
}

.audience-card:hover {
  box-shadow: var(--shadow-card-hover);
}

/* Photo header */
.audience-card-img {
  height: 192px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.audience-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.audience-card-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, #111723);
  pointer-events: none;
}

/* Body */
.audience-card-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  flex: 1;
  justify-content: space-between;
}

.audience-card-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.audience-type {
  color: var(--c-malibu);
}

.audience-title {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 24px;
  line-height: 1.3;
  color: var(--c-white);
}

.audience-desc {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255);
}

.audience-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--c-white);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255);
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease),
              text-decoration-color var(--dur-fast) var(--ease);
}

.audience-link:hover {
  color: var(--c-malibu);
  text-decoration-color: var(--c-malibu);
}

/* ─── NEWS CAROUSEL ──────────────────────────────────────────── */

.news-carousel-wrap {
  overflow: hidden;
  margin-top: 48px;
  margin-bottom: 32px;
}

.news-carousel {
  display: flex;
  gap: 20px;
  transition: transform var(--dur-base) var(--ease);
  will-change: transform;
}

.news-card {
  flex: 0 0 285px;  /* fixed width — clips off right edge in carousel */
  height: 330px;
  background:
    radial-gradient(ellipse at 100% 100%, rgba(122, 98, 228, 0.25) 0%, rgba(32, 28, 72, 0.12) 50%, transparent 70%),
    linear-gradient(164deg, rgb(1, 0, 15) 24%, rgb(21, 29, 38) 47%, rgb(12, 30, 53) 101%);
  border: 1px solid rgba(119, 205, 254, 0.25);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--dur-fast) var(--ease);
  text-decoration: none;
  color: inherit;
}

.news-card:hover {
  border-color: rgba(119, 205, 254, 0.5);
}

.news-thumb {
  width: 100%;
  height: 110px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.news-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #10131A 6.69%, rgba(16, 19, 26, 0.00) 75.2%);
  mix-blend-mode: multiply;
  pointer-events: none;
  opacity: 1;
  transition: opacity var(--dur-base) var(--ease);
}

.news-card:hover .news-thumb::after {
  opacity: 0.35;
}


.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.news-body {
  padding: 20px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.news-date {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1.45;
  color: var(--c-malibu);
  transition: opacity var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease);
}

.news-card:hover .news-date {
  opacity: 0;
  transform: translateY(-6px);
}

.news-title {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  color: var(--c-white);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease);
}

.news-card:hover .news-title {
  transform: translateY(-27px);
}

.news-card-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--c-white);
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease);
}

.news-card:hover .news-card-cta {
  opacity: 1;
  transform: translateY(0);
}

.news-arrows {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
}

.news-arrow {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--r-card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}

.news-arrow:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.news-arrow:disabled {
  opacity: 0.30;
  cursor: default;
  pointer-events: none;
}

/* ─── TEAM CARDS ─────────────────────────────────────────────── */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--card-gap);
  margin-top: 48px;
}

.team-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0A0A1E;
  transition: border-color var(--dur-base) var(--ease);
}

.team-card:hover {
  border-color: rgba(122, 98, 228, 0.4);
}

.team-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(180deg, var(--c-dark3) 0%, var(--c-dark4) 100%);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-info {
  padding: 20px;
}

.team-name {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 16px;
  margin-bottom: 4px;
}

.team-role {
  font-size: 13px;
  color: var(--c-malibu);
}

/* ─── PORTFOLIO CARDS ────────────────────────────────────────── */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
  margin-top: 48px;
}

.portfolio-card {
  background: var(--grad-card-default);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease);
  cursor: pointer;
  position: relative;
}

.portfolio-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-card-bottom-line);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease);
}

.portfolio-card:hover {
  border-color: rgba(119, 205, 254, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-deep), var(--shadow-card-glow);
}

.portfolio-card:hover::after {
  opacity: 1;
}

.portfolio-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--c-dark1) 0%, var(--c-dark4) 30%, rgba(235, 23, 212, 0.15) 100%);
  position: relative;
  overflow: hidden;
}

.portfolio-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-card-thumb-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at bottom right, rgba(119, 205, 254, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.portfolio-card-body {
  padding: 24px;
}

.portfolio-card-category {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-malibu);
  margin-bottom: 10px;
}

.portfolio-card-title {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 10px;
}

.portfolio-card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
}

.portfolio-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portfolio-card-stage {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(8, 110, 253, 0.15);
  color: var(--c-blue);
  border: 1px solid rgba(8, 110, 253, 0.3);
}

.portfolio-card-arrow {
  color: rgba(255, 255, 255, 0.3);
  font-size: 16px;
  transition: color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}

.portfolio-card:hover .portfolio-card-arrow {
  color: var(--c-malibu);
  transform: translateX(4px);
}

/* ─── DIMS CARDS ─────────────────────────────────────────────── */

.dims-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.dims-card {
  background: linear-gradient(160deg, var(--c-dark1), #0D1626);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--r-card);
  padding: 40px;
  transition: border-color var(--dur-base) var(--ease);
}

.dims-card:hover {
  border-color: rgba(119, 205, 254, 0.2);
}

.dims-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  background: rgba(8, 110, 253, 0.15);
  border-radius: var(--r-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.dims-icon img,
.dims-icon svg {
  width: 24px;
  height: 24px;
}

.dims-title {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.dims-desc {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

/* ─── DISCOVERY VIDEO PLACEHOLDER ───────────────────────────── */

.discovery-video-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 460px;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(8, 110, 253, 0.08) 0%, transparent 60%),
    linear-gradient(160deg, #0A0A1A 0%, #0C1220 50%, #0E1835 100%);
  border: 1px solid rgba(119, 205, 254, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  margin: 48px 0;
  position: relative;
  overflow: hidden;
}

/* Frosted top bar — browser-chrome feel matching Figma mockup */
.discovery-video-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 36px;
  background: rgba(25, 22, 30, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(8, 110, 253, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: background var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease),
              opacity var(--dur-base) var(--ease);
  cursor: pointer;
}

.play-btn:hover {
  background: var(--c-blue);
  transform: scale(1.06);
}

.play-btn svg {
  margin-left: 4px;
}

.video-label {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 36px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.30);
  position: relative;
  z-index: 1;
}

/* ─── CONTACT FORM ───────────────────────────────────────────── */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.form-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.form-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-card);
  padding: 14px 16px;
  color: var(--c-white);
  font-size: 16px;
  font-family: var(--font-body);
  transition: border-color var(--dur-fast) var(--ease);
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.form-input:focus {
  outline: none;
  border-color: var(--c-blue);
}

select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23848891' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

select.form-input option {
  background: var(--c-dark2);
  color: var(--c-white);
}

/* ─── FILTER BAR ─────────────────────────────────────────────── */

.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0;
  flex-wrap: wrap;
}

.filter-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-right: 4px;
}

.filter-btn {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 16px;
  padding: 7px 16px;
  border-radius: 36px;
  border: none;
  background: #2b2b2b;
  color: #808080;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}

.filter-btn:hover {
  background: #161616;
  color: var(--c-white);
}

.filter-btn:active {
  background: #161616;
  color: #808080;
}

.filter-btn.active {
  background: #2b2b2b;
  color: var(--c-white);
}

.filter-btn:focus-visible {
  outline: 2px solid var(--c-malibu);
  outline-offset: 2px;
  background: #161616;
  color: var(--c-white);
}

.filter-btn.filter-clear {
  background: #4e4e4e;
  color: #fff2f2;
}

.filter-btn.filter-clear:hover {
  background: #5e5e5e;
  color: var(--c-white);
}

/* ─── CATEGORY TABS ──────────────────────────────────────────── */

.category-nav {
  display: flex;
  gap: 0;
  margin-top: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cat-tab {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 14px;
  padding: 14px 24px;
  color: rgba(255, 255, 255, 0.5);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  white-space: nowrap;
}

.cat-tab:hover {
  color: rgba(255, 255, 255, 0.85);
}

.cat-tab.active {
  color: var(--c-white);
  border-bottom-color: var(--c-blue);
}

/* ─── STAT CARDS (About page) ────────────────────────────────── */

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px;
  border-radius: var(--r-card);
}

.stat-num {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 48px;
  color: var(--c-malibu);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

/* ─── PROCESS ICONS (About section 3) ───────────────────────── */

.process-grid {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  gap: 24px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.process-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  max-width: 140px;
}

.process-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-icon img,
.process-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.process-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

/* ─── FOOTER ─────────────────────────────────────────────────── */

.footer {
  background: #004C97;   /* UTSW institutional blue */
}

/* Institution link columns */

.footer-links-section {
  padding: 50px 0 0;
}

.footer-institution-title {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.45px;
  color: var(--c-white);
  margin-bottom: 10px;
}

.footer-cols-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: flex-start;
}

.footer-col-group {
  width: 199px;
  flex-shrink: 0;
}

.footer-col-indent {
  padding-top: 34px;   /* aligns "Institutional Resume" below a blank header row */
}

.footer-col-head {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.33px;
  color: var(--c-white);
  margin-bottom: 2px;
  line-height: 1.5;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
}

.footer-col-links li {
  line-height: 1.5;
}

.footer-col-links a {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.33px;
  color: var(--c-white);
  transition: opacity var(--dur-fast) var(--ease);
}

.footer-col-links a:hover {
  opacity: 0.75;
}

/* Bottom bar */

.footer-bottom-bar {
  padding: 16px 0 10px;
}

.footer-bottom-bar .container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-contact-block {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 170px;
}

.footer-contact-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.29px;
  color: var(--c-white);
  line-height: 1.5;
}

.footer-contact-label--spaced {
  margin-top: 34px;
}

.footer-contact-addr {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.29px;
  color: var(--c-white);
  line-height: 1.5;
}

.footer-contact-phone {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.29px;
  color: var(--c-white);
  text-decoration: underline;
  line-height: 1.5;
}

.footer-contact-phone:hover {
  opacity: 0.75;
}

.footer-social {
  display: flex;
  gap: 20px;
  align-items: center;
}

.social-icon {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) var(--ease);
  cursor: pointer;
  color: var(--c-white);
  text-decoration: none;
  flex-shrink: 0;
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.30);
}

.social-icon svg {
  width: 14px;
  height: 14px;
  fill: var(--c-white);
}

.footer-logo-block {
  display: flex;
  align-items: center;
}

.footer-ihub-logo {
  height: 36px;
  width: auto;
  display: block;
}

/* Disclaimer strip */

.footer-disclaimer {
  background: #004C97;
  padding: 18px 0;
}

.footer-disclaimer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  justify-content: space-between;
}

.footer-disclaimer p,
.footer-disclaimer a {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.28px;
  color: var(--c-white);
  flex: 1 0 320px;
}

.footer-disclaimer a:hover {
  opacity: 0.75;
}

/* ─── BUILD WITH US (Homepage merged team + form section) ───── */

.build-grid {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.build-card {
  background: rgba(0, 0, 0, 0.85);
  border-radius: 10px;
  padding: 40px;
  flex: 1 0 0;
  min-width: 320px;
}

/* Left: about card */

.build-about-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.build-about-img {
  background: #636363;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.build-about-img img {
  width: 100%;
  height: auto;
  display: block;
}

.build-about-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.build-about-title {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 32px;
  line-height: 1.25;
  color: var(--c-white);
}

.build-about-desc {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.5;
  color: rgba(255, 255, 255);
}

/* Right: form card (offset down 80px) */

.build-form-wrap {
  flex: 1 0 0;
  min-width: 320px;
  max-width: 500px;
  padding-top: 80px;
}

.build-form-title {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 24px;
  line-height: 1.3;
  color: var(--c-white);
  margin-bottom: 32px;
}

.build-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.build-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.build-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c-white);
}

.build-label span[aria-hidden] {
  color: #BF3000;
  margin-left: 2px;
}

.build-input {
  width: 100%;
  background: #19161C;
  border: none;
  border-bottom: 1px solid rgba(170, 170, 170, 0.45);
  padding: 8px;
  color: #979797;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  transition: border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
  appearance: none;
  -webkit-appearance: none;
}

.build-input::placeholder {
  color: #979797;
}

.build-input:focus {
  outline: none;
  border-bottom-color: var(--c-blue);
  color: var(--c-white);
}

.build-textarea {
  resize: vertical;
  min-height: 80px;
}

.build-disclaimer {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.5;
  color: #979797;
  margin: 0;
}

select.build-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23848891' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
  cursor: pointer;
}

select.build-input option {
  background: var(--c-dark2);
  color: var(--c-white);
}

/* ─── PORTFOLIO EXPLORE HEADER ──────────────────────────────── */

.portfolio-explore-header {
   
}
  

/* ─── PORTFOLIO CATEGORIES SECTION ──────────────────────────── */

.portfolio-categories {
  background: var(--c-near-black);
  padding-top: 0;
}

/* ─── PORTFOLIO CATEGORY BLOCK ───────────────────────────────── */

.pf-category-block {
  padding-bottom: 60px;
}

.pf-category-block:last-child {
  padding-bottom: 0;
}

.pf-category-header {
  margin-bottom: 40px;
  text-align: center;
}

.pf-category-title {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 32px;
  line-height: 1.25;
  color: var(--c-white);
  margin-bottom: 8px;
}

.pf-category-desc {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── CAROUSEL SHELL ─────────────────────────────────────────── */

.pf-carousel {
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.pf-carousel-track-wrap {
  flex: 1;
  overflow: hidden;
  cursor: grab;
  padding-block: 40px;
  margin-block: -40px;
}

.pf-carousel-track-wrap:active {
  cursor: grabbing;
}

.pf-carousel-track {
  display: flex;
  gap: var(--card-gap);
  justify-content: safe center;
  transition: transform var(--dur-slow) var(--ease);
  will-change: transform;
}

/* ─── PORTFOLIO FIGMA-STYLE CARD ─────────────────────────────── */

.pf-card {
  width: 235px;
  min-width: 235px;
  height: 275px;
  border-radius: 8px;
  overflow: hidden;
  padding: 76px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  border: 1px solid transparent;
  background:
    radial-gradient(ellipse 130% 80% at 110% 115%, rgba(122, 98, 228, 0.28) 0%, transparent 55%),
    linear-gradient(165deg, #01000F 0%, #151D26 50%, #0C1E35 100%);
  transition: background var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease);
}

.pf-card:hover,
.pf-card:focus-visible {
  background: linear-gradient(179deg, #000000 26%, #0A88FF 280%);
  border-color: rgba(10, 136, 255, 0.35);
  box-shadow: 0 0 32px rgba(10, 136, 255, 0.18);
  transform: translateY(-2px);
}

.pf-card:focus-visible {
  outline: 2px solid var(--c-malibu);
  outline-offset: 3px;
}

/* Decorative glow blobs — visible only on hover via opacity */
.pf-card::before,
.pf-card::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease);
}

/* Top-right glow blob */
.pf-card::before {
  width: 118px;
  height: 118px;
  top: -39px;
  left: 117px;
  background: radial-gradient(circle, rgba(10, 136, 255, 0.35) 0%, transparent 70%);
  filter: blur(12px);
}

/* Bottom-left glow blob */
.pf-card::after {
  width: 102px;
  height: 102px;
  top: 181px;
  left: -11px;
  background: radial-gradient(circle, rgba(10, 136, 255, 0.30) 0%, transparent 70%);
  filter: blur(10px);
}

.pf-card:hover::before,
.pf-card:focus-visible::before,
.pf-card:hover::after,
.pf-card:focus-visible::after {
  opacity: 1;
}

/* Small icon — top of card, no box */
.pf-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  flex-shrink: 0;
  position: absolute;
  top: 20px;
  left: 20px;
  overflow: hidden;
}

.pf-card-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pf-card-title {
  font-family: var(--font-head);
  font-size: 18px;
  line-height: 1.3;
  color: var(--c-white);
  font-weight: 300;
  flex: 1;
  transition: opacity var(--dur-base) var(--ease);
}

.pf-card:hover .pf-card-title,
.pf-card:focus-visible .pf-card-title {
  opacity: 0;
  pointer-events: none;
}

/* Teaser text — hidden by default, fades in on hover at same level as title */
.pf-card-teaser {
  font-family: var(--font-head);
  font-size: 18px;
  line-height: 1.3;
  color: var(--c-white);
  font-weight: 300;
  position: absolute;
  inset: 0;
  padding: inherit;
  display: flex;
  align-items: flex-start;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease);
  pointer-events: none;
}

.pf-card:hover .pf-card-teaser,
.pf-card:focus-visible .pf-card-teaser {
  opacity: 1;
}

/* "Expand" CTA — hidden by default, slides up on hover */
.pf-card-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-malibu);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease);
  flex-shrink: 0;
  align-self: flex-end;
  pointer-events: none;
}

.pf-card-cta svg {
  flex-shrink: 0;
}

.pf-card:hover .pf-card-cta,
.pf-card:focus-visible .pf-card-cta {
  opacity: 1;
  transform: translateY(0);
}

/* ─── PORTFOLIO MODAL ─────────────────────────────────────────── */

.pf-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 20px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease);
}

.pf-modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

/* Custom scrollbar on the backdrop (now the scroll container) */
.pf-modal-backdrop { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.15) transparent; }
.pf-modal-backdrop::-webkit-scrollbar { width: 5px; }
.pf-modal-backdrop::-webkit-scrollbar-track { background: transparent; }
.pf-modal-backdrop::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
.pf-modal-backdrop::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.28); }

.pf-modal {
  position: relative;
  width: 100%;
  max-width: 900px;
  background:
    radial-gradient(ellipse at 88% 5%,   rgba(235, 23, 212, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 40%, rgba(13, 113, 252, 0.15) 0%, transparent 45%),
    radial-gradient(ellipse at 0% 20%,   rgba(13, 113, 252, 0.06) 0%, transparent 50%),
    #000000;
  border-radius: 8px;
  padding: 50px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transform: translateY(16px) scale(0.98);
  transition: transform var(--dur-base) var(--ease);
}

.pf-modal-backdrop.open .pf-modal {
  transform: translateY(0) scale(1);
}
.pf-modal::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.28); }

/* Blurred background image overlay */
.pf-modal-bg {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.pf-modal-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(15px);
  opacity: 0.5;
  border-radius: 18px;
}

/* All modal content above bg — exclude the bg overlay itself */
.pf-modal > *:not(.pf-modal-bg) { position: relative; z-index: 1; }

/* Close button — own row */
.pf-modal-close-row {
  display: flex;
  justify-content: flex-end;
}

/* Icon — centered row */
.pf-modal-icon-row {
  display: flex;
  justify-content: center;
}

.pf-modal-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.pf-modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--dur-fast) var(--ease);
  flex-shrink: 0;
}

.pf-modal-close:hover {
  color: var(--c-white);
}

/* Title block — centered */
.pf-modal-title-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

/* Suppress eyebrow margin inside the modal title block */
.pf-modal-title-block .section-eyebrow {
  margin-bottom: 0;
}

/* Title */
.pf-modal-title {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 20px;
  line-height: 1.1;
  color: var(--c-white);
}

/* Researcher row */
.pf-modal-researcher {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.pf-modal-photo {
  width: 150px;
  min-width: 150px;
  height: 198px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  flex-shrink: 0;
}

.pf-modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pf-modal-researcher-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pf-modal-researcher-name {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 17px;
  color: var(--c-white);
  line-height: 1.3;
}

.pf-modal-researcher-creds {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

.pf-modal-lab-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--c-white);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 4px;
  transition: opacity var(--dur-fast) var(--ease);
}

.pf-modal-lab-link:hover {
  opacity: 0.8;
}

/* Researcher container — row when 2 researchers, column when 1 */
#pf-modal-researchers {
  display: flex;
  flex-direction: row;
  gap: 0;
  align-items: flex-start;
}

/* Single researcher: full width */
#pf-modal-researchers:has(.pf-modal-researcher:only-child) {
  flex-direction: column;
}

/* Divider between two researchers side by side */
#pf-modal-researchers .pf-modal-researcher + .pf-modal-researcher {
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

/* Equal columns */
#pf-modal-researchers .pf-modal-researcher {
  flex: 1;
}

/* Bottom image slot */
.pf-modal-bottom-img-wrap {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.pf-modal-bottom-img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* Description */
.pf-modal-desc {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.70);
}

/* T-pipeline tracker */
.pf-pipeline {
  background: rgba(16, 19, 26, 0.85);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pf-pipeline-heading {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 20px;
  color: var(--c-white);
}

/* Stage track */
.pf-pipeline-track {
  display: flex;
  align-items: center;
  gap: 0;
}

.pf-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Connector bar between stages */
.pf-stage-bar {
  flex: 1;
  height: 2px;
  align-self: center;
}

.pf-stage-bar.bar-solid {
  background: #F2BD2C;
}

.pf-stage-bar.bar-dashed {
  border-top: 2px dashed rgba(128, 128, 128, 0.5);
  background: none;
}

/* Node styles */
.pf-stage-node {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Deactive: dashed gray double ring */
.pf-stage-node.deactive {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px dashed rgba(128, 128, 128, 0.5);
  box-shadow: 0 0 0 4px rgba(128, 128, 128, 0.12);
}

/* Active: solid gold filled circle */
.pf-stage-node.active {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #F2BD2C;
  box-shadow: 0 0 12px rgba(242, 189, 44, 0.5);
}

/* Current: larger pulsing triple-ring gold */
.pf-stage-node.current {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F2BD2C;
  box-shadow:
    0 0 0 5px rgba(242, 189, 44, 0.20),
    0 0 0 10px rgba(242, 189, 44, 0.10),
    0 0 20px rgba(242, 189, 44, 0.40);
}

.pf-stage-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 8px;
  text-align: center;
  white-space: nowrap;
}

.pf-stage-label.active,
.pf-stage-label.current {
  color: #F2BD2C;
}

/* Sub-label under the current stage node */
.pf-stage-current-desc {
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.35;
  color: rgba(128, 128, 128, 0.8);
  text-align: center;
  max-width: 90px;
  margin-top: 4px;
}

/* Legend */
.pf-pipeline-legend {
  background: #10131a;
  border: 1px solid #808080;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pf-legend-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c-white);
  margin-bottom: 2px;
}

.pf-pipeline-legend .pf-legend-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}

.pf-legend-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pf-legend-stage {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.pf-legend-desc {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.40);
}

/* ─── ABOUT PAGE — TEAM CARDS ───────────────────────────────── */

.ab-team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.ab-card {
  flex: 1 0 0;
  min-width: 280px;
  max-width: 360px;
  height: 350px;
  border-radius: 10px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  position: relative;
  /* overflow: hidden removed — photo has its own, pseudo-elements need to render at outer edge */
  /* Purple bloom baked into background so both pseudo-elements are free for hover accents */
  background:
    radial-gradient(ellipse 150% 120% at 140% 120%, rgba(122, 98, 228, 0.25) 0%, transparent 55%),
    linear-gradient(166deg, #01000F 24%, #151D26 47%, #0C1E35 101%);
  transition: background var(--dur-base) var(--ease);
  cursor: default;
}

/* Both corner accents on a single element — inset:-1px extends just beyond card edge */
.ab-card::before {
  content: none; /* unused */
}

.ab-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease);
  background:
    /* BOTTOM-LEFT — left edge: fades in (transparent top → cyan bottom) */
    linear-gradient(to bottom, transparent 33%, rgba(119,205,254,0.35) 83%, #77CDFE 100%)
      0 0 / 3px  100% no-repeat,                    /* glow  */
    linear-gradient(to bottom, transparent 33%, #77CDFE 100%)
      0 0 / 2px 100% no-repeat,                    /* line  */
    /* BOTTOM-LEFT — bottom edge: fades out (cyan left → transparent 26%) */
    linear-gradient(to right, rgba(119,205,254,0.35) 0%, transparent 33%)
      0 100% / 100% 3px  no-repeat,                 /* glow  */
    linear-gradient(to right, #77CDFE 0%, transparent 28%)
      0 100% / 100% 2px no-repeat,                 /* line  */
    /* TOP-RIGHT — right edge: fades in (transparent bottom → cyan top) */
    linear-gradient(to top, transparent 33%, rgba(119,205,254,0.35) 83%, #77CDFE 100%)
      100% 0 / 3px  100% no-repeat,                 /* glow  */
    linear-gradient(to top, transparent 33%, #77CDFE 100%)
      100% 0 / 2px 100% no-repeat,                 /* line  */
    /* TOP-RIGHT — top edge: fades out (cyan right → transparent 26%) */
    linear-gradient(to left, rgba(119,205,254,0.35) 0%, transparent 33%)
      100% 0 / 100% 3px  no-repeat,                 /* glow  */
    linear-gradient(to left, #77CDFE 0%, transparent 28%)
      100% 0 / 100% 2px no-repeat;                 /* line  */
}

.ab-card:hover,
.ab-card:focus-within {
  background:
    radial-gradient(ellipse 150% 120% at 140% 120%, rgba(122, 98, 228, 0) 0%, transparent 55%),
    linear-gradient(179deg, #000000 27%, #0A88FF 400%);
}

.ab-card:hover::after,
.ab-card:focus-within::after {
  opacity: 1;
}

.ab-card:focus-visible {
  outline: 2px solid var(--c-malibu);
  outline-offset: 3px;
}

/* Tap-to-activate state — mirrors :hover for touch devices */
.ab-card--active {
  background:
    radial-gradient(ellipse 150% 120% at 140% 120%, rgba(122, 98, 228, 0) 0%, transparent 55%),
    linear-gradient(179deg, #000000 27%, #0A88FF 400%);
}
.ab-card--active::after         { opacity: 1; }
.ab-card--active .ab-role       { max-height: 0; opacity: 0; margin: 0; }
.ab-card--active .ab-bio        { max-height: 80px; opacity: 1; }
.ab-card--active .ab-link       { max-height: 32px; opacity: 1; margin-top: 8px; }

.ab-photo {
  width: 125px;
  height: 125px;
  min-height: 125px;
  border-radius: 50%;
  background: #000;
  overflow: hidden;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.ab-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
  filter: grayscale(100%);
  transition: filter 0.4s ease;
}

.ab-card:hover .ab-photo img,
.ab-card:focus-within .ab-photo img,
.ab-card--active .ab-photo img {
  filter: grayscale(0%);
}

.ab-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

.ab-name {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.5;
  color: var(--c-white);
}

.ab-role {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #c4c4c4;
  max-height: 40px;
  overflow: hidden;
  opacity: 1;
  transition: max-height var(--dur-base) var(--ease),
              opacity var(--dur-base) var(--ease),
              margin var(--dur-base) var(--ease);
}

.ab-card:hover .ab-role,
.ab-card:focus-within .ab-role {
  max-height: 0;
  opacity: 0;
  margin: 0;
}

.ab-bio {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-white);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height var(--dur-base) var(--ease),
              opacity var(--dur-base) var(--ease);
}

.ab-card:hover .ab-bio,
.ab-card:focus-within .ab-bio {
  max-height: 80px;
  opacity: 1;
}

.ab-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: center;
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--c-white);
  text-decoration: underline;
  text-underline-offset: 3px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height var(--dur-base) var(--ease),
              opacity var(--dur-base) var(--ease),
              margin-top var(--dur-base) var(--ease);
}

.ab-card:hover .ab-link,
.ab-card:focus-within .ab-link {
  max-height: 32px;
  opacity: 1;
  margin-top: 8px;
}

/* ─── ABOUT PAGE — VALUES CARDS ──────────────────────────────── */

.values-section {
  background: rgba(0, 0, 0, 0.88);
}

.values-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 48px;
}

.values-card {
  flex: 1 0 0;
  min-width: 180px;
  min-height: 250px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.values-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.values-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.values-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.values-title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.5;
  color: var(--c-white);
}

.values-desc {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  color: var(--c-white);
}

/* ─── RESPONSIVE — COMPONENTS ────────────────────────────────── */

@media (max-width: 1100px) {
  .container              { padding: 0 var(--gutter-tablet); }
  .audience-grid          { flex-direction: column; align-items: center; }
  .audience-wrap          { max-width: 100%; width: 100%; }
  .team-grid              { grid-template-columns: 1fr 1fr; }
  .build-grid             { flex-direction: column; align-items: center; }
  .build-card             { min-width: 0; width: 100%; max-width: 620px; }
  .build-form-wrap        { padding-top: 0; max-width: 620px; width: 100%; }
  .portfolio-grid         { grid-template-columns: 1fr 1fr; }
  .dims-grid              { grid-template-columns: 1fr; }
  .footer-col-group       { width: 160px; }
  .section-title          { font-size: 32px; }
  .ab-team-grid           { gap: 24px; }
  .ab-card                { flex: 0 0 calc(50% - 12px); max-width: calc(50% - 12px); }
  .values-grid            { flex-direction: column; align-items: stretch; }
  .values-card            { flex-direction: row; align-items: flex-start; min-width: 0; min-height: auto; }

  /* Tablet + mobile: hamburger replaces full link list */
  .nav-links              { display: none; }
  .nav-hamburger          { display: flex; }
  .nav-partner-link       { display: flex; }   /* Partner with us always visible on tablet */

  .nav-links.nav-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(1, 0, 15, 0.97);
    padding: 24px var(--gutter-mobile);
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 99;
    list-style: none;
    margin: 0;
  }
}

@media (max-width: 700px) {
  /* Collapse container gutter to mobile value */
  .container              { padding: 0 var(--gutter-mobile); }

  .audience-wrap--down, .audience-wrap--up { padding: 0; }
  .team-grid              { grid-template-columns: 1fr 1fr; }
  .portfolio-grid         { grid-template-columns: 1fr; }
  .footer-col-group       { width: calc(50% - 20px); }
  .footer-bottom-bar .container { flex-direction: column; align-items: flex-start; }
  .form-grid              { grid-template-columns: 1fr; }
  .form-field.full        { grid-column: 1; }
  .category-nav           { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .about-stats            { grid-template-columns: 1fr 1fr; }
  .section-title          { font-size: 28px; }
  .nav-inner              { padding: 0 var(--gutter-mobile); }
  .nav-partner-link       { display: none; }   /* lives in bottom bar on mobile */
  .nav-dims-btn           { display: none; }   /* lives in bottom bar on mobile */
  .nav-menu-label         { display: inline; } /* show "Menu" text on mobile */
  .nav-bottom             { display: flex; }   /* show mobile bottom bar */
  .page-body              { padding-bottom: 70px; } /* clear bottom bar */

  /* Portfolio carousels — swipe only on mobile */

  /* Match Figma mobile H3 */
  .pf-category-title      { font-size: 24px; }

  /* Portfolio modal — stack researchers vertically on mobile */
  #pf-modal-researchers     { flex-direction: column; align-items: center; }
  #pf-modal-researchers .pf-modal-researcher + .pf-modal-researcher {
    padding-left: 0;
    border-left: none;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  #pf-modal-researchers .pf-modal-researcher { flex: 0 0 auto; width: 100%; }
  .pf-modal-researcher      { flex-direction: column; align-items: center; }
  .pf-modal-researcher-info { align-items: center; text-align: center; }
  .pf-modal-lab-link        { justify-content: center; }

  /* About team cards — 1-col on mobile, tap to expand */
  .ab-team-grid           { gap: 16px; }
  .ab-card                { flex: 0 0 100%; max-width: 100%; min-width: 0; height: auto; min-height: 220px; padding: 22px 20px; gap: 16px; cursor: pointer; }
  .ab-photo               { width: 100px; height: 100px; min-height: 100px; }
  .ab-name                { font-size: 18px; }
  .ab-bio                 { font-size: 15px; }
  .ab-card--active .ab-bio { max-height: 120px; }
  .values-card            { min-width: 0; }
}
