/* ==========================================================================
   Scene four — the project universe & Product Explorer.
   Structured responsive CSS Grid layout:
   - 3 columns desktop, 2 columns laptop/tablet, 1 column mobile
   - Non-overlapping dedicated category filter bar
   - Rich, clear card architecture with high contrast typography
   - Zero card collision
   ========================================================================== */

.gallery {
  position: relative;
  min-height: 100vh;
  padding: clamp(60px, 8vh, 100px) clamp(20px, 4vw, 60px);
  background: radial-gradient(circle at 50% 12%, rgba(35, 22, 16, 0.45) 0%, rgba(8, 6, 6, 0.98) 65%, #000 100%);
  overflow: hidden;
  z-index: 10;
}

#galleryStage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.35;
  z-index: 1;
}

.gallery__container {
  position: relative;
  max-width: 1380px;
  margin: 0 auto;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 5vh, 44px);
}

.gallery__header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.gallery__over {
  margin: 0;
  font-family: var(--ui);
  font-size: clamp(11px, .85vw, 13px);
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--amber);
}

.gallery__title {
  margin: 0;
  font-family: var(--ui);
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.15;
}

.gallery__sub {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: clamp(14px, 1.05vw, 16.5px);
  line-height: 1.6;
  color: rgba(240, 230, 222, .82);
}

/* Category Filter Bar */
.g-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(18, 14, 12, 0.88);
  border: 1px solid rgba(255, 140, 60, 0.25);
  padding: 6px;
  border-radius: 999px;
  backdrop-filter: blur(14px);
  margin-top: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.g-filter__btn {
  font-family: var(--ui);
  font-size: clamp(11px, 0.8vw, 13px);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(230, 222, 215, 0.75);
  background: transparent;
  border: none;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.g-filter__btn:hover:not(.is-active) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}
.g-filter__btn.is-active,
.g-filter__btn.is-active:hover,
.g-filter__btn.is-active:focus,
.g-filter__btn.is-active:active {
  color: #0a0807 !important;
  background: #f5e6d3 !important;
  font-weight: 700 !important;
  box-shadow: 0 0 20px rgba(245, 230, 211, 0.45), 0 2px 8px rgba(0, 0, 0, 0.35);
  outline: none;
}

/* 3-Column / 2-Column / 1-Column Responsive Grid */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.2vw, 32px);
  width: 100%;
}
@media (max-width: 1080px) {
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 680px) {
  .gallery__grid {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.g-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background: linear-gradient(165deg, rgba(24, 18, 15, 0.94), rgba(12, 9, 8, 0.98));
  border: 1px solid rgba(255, 140, 60, 0.20);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.g-card:hover,
.g-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(255, 140, 60, 0.70);
  box-shadow: 0 22px 48px -10px rgba(0, 0, 0, 0.95), 0 0 24px rgba(255, 100, 30, 0.28);
}
.g-card:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.g-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #000;
  overflow: hidden;
}
.g-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}
.g-card:hover .g-card__media img {
  transform: scale(1.04);
}

.g-card__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(14px, 1.2vw, 18px);
  gap: 8px;
}

.g-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.g-card__category {
  font-family: var(--ui);
  font-size: clamp(11px, 0.8vw, 12.5px);
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--amber);
}

.g-card__title {
  margin: 0;
  font-family: var(--ui);
  font-size: clamp(17px, 1.25vw, 21px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.25;
}

.g-card__desc {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: clamp(12.5px, 0.9vw, 14px);
  line-height: 1.5;
  color: rgba(240, 230, 222, 0.85);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.g-card__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.g-card__btn-details {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: var(--ui);
  font-size: clamp(11.5px, 0.82vw, 13px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}
.g-card__btn-details:hover {
  background: rgba(255, 140, 60, 0.18);
  border-color: rgba(255, 140, 60, 0.45);
  color: var(--amber);
}

.g-card__btn-direct {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--amber);
  color: #0c0908;
  font-family: var(--ui);
  font-size: clamp(11.5px, 0.82vw, 13px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s ease;
}
.g-card__btn-direct:hover {
  background: #ffffff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.5);
}

/* Universal hidden utility */
[hidden] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Card Status Badges & HUD Overlays
   -------------------------------------------------------------------------- */

.g-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--ui);
  font-size: clamp(10.5px, 0.82vw, 12px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  pointer-events: none;
  backdrop-filter: blur(10px);
  background: rgba(10, 8, 8, 0.92);
  line-height: 1.2;
  z-index: 5;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.90);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Specific Badge Colors */
.status-live {
  color: #34d399;
  border: 1px solid #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.45);
}
.status-active-product {
  color: #38bdf8;
  border: 1px solid #06b6d4;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.45);
}
.status-active-biz {
  color: #fbbf24;
  border: 1px solid #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.45);
}
.status-active-dev {
  color: #fb923c;
  border: 1px solid #f97316;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.45);
}
.status-under-dev {
  color: #fcd34d;
  border: 1px solid #d97706;
  box-shadow: 0 0 10px rgba(217, 119, 6, 0.35);
}
.status-experiment {
  color: #c084fc;
  border: 1px solid #a855f7;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.45);
}
.status-creator {
  color: #fb7185;
  border: 1px solid #f43f5e;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.45);
}
.status-details-added {
  color: #d1d5db;
  border: 1px solid rgba(209, 213, 219, 0.45);
  box-shadow: 0 0 8px rgba(156, 163, 175, 0.25);
}
.status-lab-exp {
  color: #ffa03c;
  border: 1px solid rgba(255, 160, 60, 0.6);
  box-shadow: 0 0 12px rgba(255, 160, 60, 0.4);
}

/* Corner External Link Icon / Button */
.g-card__ext {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(10, 8, 8, 0.90);
  border: 1px solid rgba(216, 177, 131, 0.45);
  border-radius: 999px;
  font-family: var(--ui);
  font-size: clamp(11px, 0.8vw, 12.5px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffd4a8;
  text-decoration: none;
  opacity: 1;
  transform: none;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
  z-index: 6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.75);
}
.g-card__ext:hover {
  background: #d8b183;
  color: #0c0a0a;
  border-color: #d8b183;
  box-shadow: 0 0 16px rgba(216, 177, 131, 0.6);
}

/* Card HUD footer permanently visible for immediate readability at 100% zoom */
.g-card__hud {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 14px 14px;
  background: linear-gradient(to top, rgba(8, 6, 6, 0.98) 0%, rgba(8, 6, 6, 0.88) 65%, rgba(8, 6, 6, 0) 100%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 1;
  transform: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: auto;
  text-align: left;
}
.g-card:hover .g-card__hud,
.g-card:focus-visible .g-card__hud {
  background: linear-gradient(to top, rgba(8, 6, 6, 1.0) 0%, rgba(8, 6, 6, 0.94) 75%, rgba(8, 6, 6, 0) 100%);
}
.g-card__hud-cat {
  font-family: var(--ui);
  font-size: clamp(12.5px, 0.88vw, 14px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffb488;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.g-card__hud-name {
  font-family: var(--ui);
  font-size: clamp(16px, 1.2vw, 19px);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
  line-height: 1.2;
}
.g-card__hud-cta {
  font-family: var(--ui);
  font-size: clamp(12.5px, 0.88vw, 14px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffd4a8;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Product Detail Overlay (Modal Dialog)
   -------------------------------------------------------------------------- */

body.modal-open {
  overflow: hidden;
}

.p-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3vw, 32px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
.p-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.p-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 3, 0.82);
  backdrop-filter: blur(14px);
}

.p-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  background: #0d0a09;
  border: 1px solid rgba(216, 177, 131, 0.36);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.92), 0 0 40px rgba(216, 177, 131, 0.18);
  border-radius: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transform: scale(0.95) translateY(12px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(216, 177, 131, 0.3) transparent;
}
.p-modal.is-open .p-modal__dialog {
  transform: scale(1) translateY(0);
}
.p-modal__dialog:focus {
  outline: none;
}

.p-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(16px, 2.5vw, 24px) clamp(20px, 3vw, 28px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.p-modal__tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.p-modal__group {
  font-family: var(--ui);
  font-size: clamp(10.5px, .82vw, 12px);
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: #d8b183;
  padding: 4px 10px;
  background: rgba(216, 177, 131, 0.14);
  border: 1px solid rgba(216, 177, 131, 0.32);
  border-radius: 4px;
}
.p-modal__status {
  font-family: var(--ui);
  font-size: clamp(10.5px, .82vw, 12px);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}

.p-modal__close {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.75);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.p-modal__close:hover,
.p-modal__close:focus-visible {
  color: #fff;
  border-color: #d8b183;
  background: rgba(216, 177, 131, 0.16);
  outline: none;
}

.p-modal__content {
  padding: clamp(20px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}
.p-modal__title {
  margin: 0;
  font-family: var(--ui);
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.15;
}
.p-modal__category {
  margin: -10px 0 0;
  font-family: var(--ui);
  font-size: clamp(12.5px, 1.0vw, 14.5px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffb488;
}

/* High-Resolution Screenshot Preview within Modal */
.p-modal__media {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(216, 177, 131, 0.28);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
  background: #000;
  position: relative;
}
.p-modal__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}
.p-modal__media-hint {
  display: block;
  font-family: var(--ui);
  font-size: clamp(10px, .80vw, 11.5px);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c4b5a8;
  padding: 6px 12px;
  background: rgba(14, 10, 9, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: right;
}

.p-modal__positioning {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: 500;
  line-height: 1.55;
  color: #ffffff;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid #d8b183;
  border-radius: 0 6px 6px 0;
}
.p-modal__desc {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: clamp(15.5px, 1.1vw, 17.5px);
  line-height: 1.65;
  color: #ded6cf;
}

.p-modal__section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.p-modal__subtitle {
  margin: 0;
  font-family: var(--ui);
  font-size: clamp(13px, 0.95vw, 15px);
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: #ffd4a8;
}
.p-modal__list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 18px;
}
.p-modal__list li {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: clamp(15px, 1.05vw, 16.5px);
  line-height: 1.55;
  color: #ded6cf;
}

.p-modal__tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.p-modal__tag {
  font-family: var(--ui);
  font-size: clamp(12px, 0.88vw, 13.5px);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f0e6dc;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 5px 12px;
  border-radius: 4px;
}

/* Social Creator Stats with Verified Counts */
.p-modal__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.p-modal__stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(216, 177, 131, 0.25);
  padding: 14px 16px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.p-modal__stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.p-modal__stat-label {
  font-family: var(--ui);
  font-size: clamp(12px, 0.85vw, 13.5px);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffb488;
}
.stat-status-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.stat-status-badge.status-snapshot {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}
.stat-status-badge.status-connecting {
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #38bdf8;
}
.stat-status-badge.status-live {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34d399;
}
.p-modal__stat-val {
  font-family: var(--ui);
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.p-modal__stat-val--connecting {
  font-size: clamp(18px, 1.6vw, 22px);
  color: #38bdf8;
  letter-spacing: 0.08em;
}
.p-modal__stat-plat {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: clamp(13px, 0.92vw, 14.5px);
  color: #d8b183;
  line-height: 1.35;
}
.p-modal__stat-source {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(216, 177, 131, 0.65);
  margin-top: 2px;
}
.p-modal__stat-note {
  margin: 0;
  font-family: var(--ui);
  font-size: clamp(11px, 0.82vw, 12.5px);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(216, 177, 131, 0.85);
}

/* Notice box */
.p-modal__notice {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(217, 119, 6, 0.12);
  border: 1px solid rgba(217, 119, 6, 0.45);
  padding: 12px 16px;
  border-radius: 8px;
  color: #fcd34d;
  font-size: clamp(13px, 0.95vw, 14.5px);
  line-height: 1.5;
}
.p-modal__notice svg {
  flex-shrink: 0;
}

.p-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: clamp(16px, 2vw, 22px) clamp(20px, 3vw, 28px);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.35);
}

.p-modal__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ui);
  font-size: clamp(13px, 0.95vw, 15px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0c0a0a;
  background: #d8b183;
  border: 1px solid #d8b183;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.p-modal__cta:hover {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 20px rgba(216, 177, 131, 0.5);
}
.p-modal__cta.is-disabled {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.4);
  cursor: not-allowed;
  pointer-events: none;
}

.p-modal__btn-secondary {
  font-family: var(--ui);
  font-size: clamp(13px, 0.95vw, 15px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 12px 22px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.p-modal__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}


/* --------------------------------------------------------------------------
   Phase 3: The Lab / Research & Creative AI Experiments Section
   -------------------------------------------------------------------------- */

.lab-section {
  position: relative;
  background: #080606;
  color: #f4e9dc;
  padding: clamp(80px, 12vh, 140px) clamp(20px, 5vw, 80px);
  border-top: 1px solid rgba(255, 160, 60, 0.15);
  border-bottom: 1px solid rgba(255, 160, 60, 0.1);
  overflow: hidden;
}

.lab-section__container {
  max-width: 1240px;
  margin: 0 auto;
}

.lab-section__header {
  margin-bottom: clamp(40px, 6vh, 64px);
  text-align: left;
}

.lab-section__over {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ui);
  font-size: clamp(9px, 0.75vw, 11px);
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #ffa03c;
  margin-bottom: 0.5em;
}

.lab-section__pip {
  width: 6px;
  height: 6px;
  background: #ffa03c;
  border-radius: 50%;
  box-shadow: 0 0 10px #ffa03c;
  animation: labPulse 2.4s ease-in-out infinite;
}

@keyframes labPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

.lab-section__title {
  margin: 0 0 0.4em;
  font-family: var(--ui);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.05;
}

.lab-section__quote {
  margin: 0.4em 0 0.8em;
  padding-left: 18px;
  border-left: 2px solid #ffa03c;
  font-family: var(--ui);
  font-size: clamp(14px, 1.4vw, 20px);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: #f7ede3;
  line-height: 1.45;
  max-width: 900px;
}

.lab-section__sub {
  margin: 0;
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.6;
  color: rgba(220, 215, 210, 0.75);
  max-width: 780px;
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(20px, 2.5vw, 32px);
  margin-bottom: clamp(36px, 5vh, 52px);
}

.lab-card {
  position: relative;
  background: #0d0a09;
  border: 1px solid rgba(255, 160, 60, 0.16);
  border-radius: 8px;
  padding: clamp(22px, 2.8vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.lab-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 160, 60, 0.42);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 160, 60, 0.08);
}

.lab-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lab-card__badge {
  font-family: var(--ui);
  font-size: clamp(12px, 0.85vw, 13.5px);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffa03c;
  background: rgba(255, 160, 60, 0.14);
  border: 1px solid rgba(255, 160, 60, 0.38);
  padding: 4px 10px;
  border-radius: 999px;
}

.lab-card__num {
  font-family: var(--ui);
  font-size: clamp(14px, 1.0vw, 16px);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 160, 60, 0.65);
}

.lab-card__name {
  margin: 0;
  font-family: var(--ui);
  font-size: clamp(22px, 1.8vw, 28px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.2;
}

.lab-card__category {
  margin: -8px 0 0;
  font-family: var(--ui);
  font-size: clamp(13.5px, 0.95vw, 15px);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffa03c;
}

.lab-card__desc {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: clamp(15.5px, 1.1vw, 17.2px);
  line-height: 1.6;
  color: rgba(240, 235, 230, 0.92);
  flex-grow: 1;
}

.lab-card__caps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  border-left: 2px solid rgba(255, 160, 60, 0.55);
}
.lab-card__caps-label {
  margin: 0;
  font-family: var(--ui);
  font-size: clamp(12.5px, 0.88vw, 14px);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffa03c;
}
.lab-card__caps ul {
  margin: 0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lab-card__caps li {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: clamp(15px, 1.05vw, 16.5px);
  line-height: 1.5;
  color: rgba(235, 230, 225, 0.9);
}

.lab-card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.lab-card__tech span {
  font-family: var(--ui);
  font-size: clamp(12px, 0.85vw, 13.5px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 4px 10px;
  border-radius: 4px;
}

.lab-section__footer {
  text-align: center;
  padding-top: clamp(20px, 3vh, 32px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.lab-section__footer-note {
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ui);
  font-size: clamp(10px, 0.85vw, 12px);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(220, 215, 210, 0.6);
}
.lab-section__pulse {
  width: 5px;
  height: 5px;
  background: #ffa03c;
  border-radius: 50%;
  animation: labPulse 2s infinite ease-in-out;
}
