/* assets/css/theme-2025.css (clean v1) */

/* =========================
   TOKENS
========================= */
:root {
  --bg0: #050712;
  --bg1: #070b16;

  --ink: rgba(255, 255, 255, .95);
  --mut: rgba(255, 255, 255, .80);
  --mut2: rgba(255, 255, 255, .65);
  --border: rgba(255, 255, 255, .15);

  --a1: #6ee7ff;
  --a2: #8b5cf6;

  --shadow: 0 22px 70px rgba(0, 0, 0, .55);
  --shadow2: 0 12px 34px rgba(0, 0, 0, .45);

  --r-xl: 22px;
  --r-lg: 18px;
  --r-md: 14px;

  --navH: 88px;
}

/* =========================
   BASE
========================= */
body.theme-dark {
  background:
    radial-gradient(900px 520px at 18% 12%, rgba(0, 190, 255, .12), transparent 60%),
    radial-gradient(900px 520px at 86% 18%, rgba(139, 92, 246, .14), transparent 62%),
    radial-gradient(1200px 700px at 55% 90%, rgba(20, 140, 255, .08), transparent 65%),
    linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 55%, #050814 100%);
  color: var(--ink);
}

a {
  color: inherit;
}

p {
  color: var(--mut);
}

.section-dark {
  background: transparent;
}

.container-wide {
  max-width: 1440px;
}

@media (min-width: 1600px) {
  .container-wide {
    max-width: 1560px;
  }
}

.text-gradient {
  background: linear-gradient(90deg, var(--a1), var(--a2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.glass-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow2);
  backdrop-filter: blur(10px);
}

/* =========================
   REDUCE MOTION
========================= */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

/* =========================
   NAV
========================= */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 999;
  height: var(--navH);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background .18s ease, border-color .18s ease, backdrop-filter .18s ease;
}

.site-nav.nav-scrolled {
  background: rgba(6, 8, 16, .72);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(10px);
}

/* Brand mark stronger */
/* Brand mark stronger */
.nav-logo {
  height: auto;
  width: 220px;
  /* Wide logo adjustment */
  max-height: 70px;
  object-fit: contain;
  transform: translateY(1px);
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, .35));
}

@media (max-width: 576px) {
  .nav-logo {
    width: 160px;
    height: auto;
  }
}


.nav-min .nav-link {
  color: rgba(255, 255, 255, .80) !important;
  padding: 10px 12px !important;
  font-weight: 600;
}

.nav-min .nav-link:hover {
  color: rgba(110, 231, 255, .95) !important;
}

.nav-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, .10);
  margin: 0 10px;
}

.nav-icons {
  display: flex;
  gap: 10px;
  padding: 8px 10px;
}

.nav-icon {
  color: rgba(255, 255, 255, .78);
}

.nav-icon:hover {
  color: rgba(110, 231, 255, .95);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .92) !important;
  font-weight: 800;
  text-decoration: none !important;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.nav-cta:hover {
  border-color: rgba(110, 231, 255, .25);
  background: rgba(255, 255, 255, .08);
  transform: translateY(-1px);
}

/* =========================
   REVEAL
========================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-ecosystem {
  margin-top: 80px;
  position: relative;
  z-index: 5;
}

/* =========================
   HERO
========================= */
.hero-modern {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--navH) + 44px);
  padding-bottom: 110px;
  overflow-x: clip;
  overflow-y: visible;
}

.hero-bg-mesh {
  position: absolute;
  inset: 0;
  background-image: url("../img/bg/mesh-lines.webp");
  background-size: cover;
  background-position: center;
  opacity: .10;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  gap: 28px;
  align-items: start;
  /* Fix: Align video to top with text */
  isolation: isolate;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-copy {
  max-width: 780px;
  position: relative;
  z-index: 10;
  overflow: visible;
  padding-top: 28px;
}

@media (min-width: 1200px) {
  .hero-copy {
    padding-top: 26px;
  }
}

.hero-kicker {
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 10px;
}

.hero-title {
  color: rgba(255, 255, 255, .96);
  font-weight: 900;
  line-height: 1.05;
  font-size: clamp(36px, 3.4vw, 64px);
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
}

.hero-subline {
  color: rgba(255, 255, 255, .74);
  font-size: 16px;
  line-height: 1.6;
  max-width: 62ch;
  margin: 0 0 18px 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  /* Reduced spacing */
  margin-top: 14px;
}

@media (min-width: 1200px) {
  .hero-actions {
    margin-top: 20px;
    margin-bottom: 22px;
  }
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .92) !important;
  text-decoration: none !important;
  font-weight: 800;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
  position: relative;
  overflow: hidden;
}

.btn-hero.ghost {
  background: transparent;
}

.btn-hero:hover {
  border-color: rgba(110, 231, 255, .25);
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .35);
}

.btn-hero::after {
  content: "";
  position: absolute;
  inset: -40% -60%;
  background:
    radial-gradient(circle at 30% 40%, rgba(110, 231, 255, .18), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(139, 92, 246, .14), transparent 45%);
  transform: translateX(-18%);
  transition: transform .35s ease;
  pointer-events: none;
}

.btn-hero:hover::after {
  transform: translateX(10%);
}

/* Right media */
.hero-media {
  position: relative;
  z-index: 1;
  min-height: 520px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: url("../img/hero/hero-still.webp") center/cover no-repeat;
  isolation: isolate;
}

@media (max-width: 992px) {
  .hero-media {
    min-height: 320px;
  }
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 420px at 20% 20%, rgba(110, 231, 255, .14), transparent 55%),
    radial-gradient(600px 420px at 85% 30%, rgba(139, 92, 246, .12), transparent 60%),
    linear-gradient(180deg, rgba(0, 0, 0, .20), rgba(0, 0, 0, .55));
  pointer-events: none;
  z-index: 2;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  filter: saturate(1.05) contrast(1.02);
}

/* Hover message on media */
.hero-hover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  align-items: end;
  justify-items: start;
  padding: 18px;
  pointer-events: none;
}

.hero-hover-card {
  width: min(420px, 90%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(8, 10, 16, .55);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .55);
  padding: 14px 14px;
  transform: translateY(10px);
  opacity: 0;
  transition: opacity .22s ease, transform .22s ease;
}

.hero-media:hover .hero-hover-card,
.hero-media:focus-within .hero-hover-card {
  opacity: 1;
  transform: translateY(0);
}

.hero-hover-title {
  font-weight: 900;
  color: rgba(255, 255, 255, .92);
  margin-bottom: 4px;
}

.hero-hover-text {
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
  line-height: 1.45;
}

/* =========================
   HERO: Incubation Projects
========================= */
.hero-projects {
  margin-top: 18px;
}

.hero-projects-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.hero-projects-label {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .58);
  font-weight: 900;
}

.hero-projects-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  overflow: visible;
}

.hero-projects-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.project-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  text-decoration: none !important;
  color: inherit;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .22);
}

.project-chip:hover,
.project-chip:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(110, 231, 255, .24);
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .32);
}

.pchip-ico {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .04);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
}

.pchip-ico img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: .95;
}

.pchip-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.pchip-title {
  font-weight: 900;
  color: rgba(255, 255, 255, .92);
  line-height: 1.1;
}

.pchip-sub {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .66);
  line-height: 1.25;
}

.pchip-badges {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.pchip-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(8, 10, 16, .55);
  color: rgba(255, 255, 255, .78);
  font-weight: 900;
  font-size: 11px;
  white-space: nowrap;
}

.pchip-badge i {
  color: rgba(110, 231, 255, .85);
  font-size: 12px;
}

/* =========================
   Incubation: Project Master (Final)
   - Desktop: panel to the right of lab line (original behavior)
   - Pro look: facts + tech chips + visual layer
   - Visibility: supports .is-active and .is-on (JS compatibility)
========================= */

/* Master panel */
/* .project-master {
  position: absolute;
  left: calc(100% + 14px);
  top: 0;

  width: clamp(320px, 36vw, 560px);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .12);

  background:
    radial-gradient(900px 380px at 18% 8%, rgba(110, 231, 255, .10), transparent 60%),
    radial-gradient(900px 420px at 78% 20%, rgba(139, 92, 246, .10), transparent 65%),
    rgba(8, 10, 16, .88);

  backdrop-filter: blur(14px);
  box-shadow: 0 26px 120px rgba(0, 0, 0, .58);

  padding: 16px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;

  z-index: 50;
  overflow: hidden;
} */

/* Keep existing layering behavior */
/* .project-master>* {
  position: relative;
  z-index: 1;
} */

/* Visible state (both classes supported) */
/* .project-master.is-active,
.project-master.is-on {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
} */

/* On small screens: keep hidden by default (per your latest UX requirement) */
/* @media (max-width: 992px) {
  .project-master {
    position: static;
    left: auto;
    top: auto;
    width: 100%;
    margin-top: 12px;
    transform: none;
    opacity: 0;
    pointer-events: none;
  }

  .project-master.is-active,
  .project-master.is-on {
    opacity: 1;
    pointer-events: auto;
  }
} */

/* Top */
.pm-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.pm-titlewrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* Logo */
.pm-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.pm-logo img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, .35));
  opacity: .96;
}

.pm-logo.is-empty {
  display: none;
}

/* Title */
.pm-title {
  font-weight: 950;
  letter-spacing: -.02em;
  color: rgba(255, 255, 255, .95);
  font-size: 16px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* External link */
.pm-link {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .82);
  display: grid;
  place-items: center;
  text-decoration: none !important;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.pm-link:hover {
  transform: translateY(-1px);
  border-color: rgba(110, 231, 255, .22);
  background: rgba(255, 255, 255, .06);
}

/* Phase + Launch lines */
.pm-sub {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .85);
  font-weight: 500;
  font-size: 13px;
  margin: 4px 0;
  font-family: 'Consolas', 'Monaco', monospace;
  /* Tech feel */
  letter-spacing: -0.5px;
}

.pm-sub i {
  color: rgba(110, 231, 255, .85);
}

/* Facts: sector + type */
.pm-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

@media (max-width: 720px) {
  .pm-facts {
    grid-template-columns: 1fr;
  }
}

.pm-fact {
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .03);
  border-radius: 16px;
  padding: 10px 12px;
}

.pm-fact-k {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
  font-weight: 900;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 4px;
}

.pm-fact-v {
  font-size: 12.8px;
  line-height: 1.35;
  color: rgba(255, 255, 255, .82);
  font-weight: 850;
}

/* Tech chips */
.pm-tech {
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .02);
  border-radius: 18px;
  padding: 10px 12px;
}

.pm-tech-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, .75);
  font-weight: 900;
  font-size: 12px;
}

.pm-tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pm-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .78);
  font-weight: 900;
  font-size: 12px;
}

.pm-chip img {
  width: 16px;
  height: 16px;
  opacity: .95;
}

/* Body */
.pm-body {
  margin-top: 10px;
}

.pm-body p,
#pm-long {
  margin: 0 0 10px 0;
  color: rgba(255, 255, 255, .62);
  font-size: 13px;
  line-height: 1.55;
}

/* Bullets */
.pm-points {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, .70);
  font-weight: 800;
  font-size: 12.8px;
}

.pm-points li {
  margin: 0;
}

/* Tags */
.pm-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pm-tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 900;
}

/* Subtle visual layer (kept from pro version) */
.pm-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .55;
  z-index: 0;
  /* sits behind content */
}

.pm-visual-grid {
  position: absolute;
  inset: -60px;
  background-image:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: rotate(-10deg);
  opacity: .08;
}

.pm-visual-glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 30% 20%, rgba(110, 231, 255, .18), transparent 52%);
  opacity: .35;
}


/* =========================
   HERO: Incubation Lab Line (NO CARDS)
========================= */
.hero-labline {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .10);
  position: relative;
}

.labline-head {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 10px;
  min-width: 0;
}

/* .labline-kicker{
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
  font-weight: 900;
  white-space: nowrap;
}

.labline-desc{
  color: rgba(255,255,255,.52);
  font-size: 12.5px;
  max-width: 70ch;
} */

.labline-kicker {
  font-size: 13px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(205, 225, 255, .75);
  /* improved contrast */
  font-weight: 950;
}

.labline-desc {
  color: rgba(255, 255, 255, .55);
  font-size: 12.5px;
  margin-top: 4px;
}

/* LABLINE ITEMS (Upgraded) */
/* LABLINE ITEMS */
.labline-items {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.labline-item {
  display: flex;
  align-items: baseline;
  gap: 2px;
  flex-direction: column;
  text-decoration: none !important;
  color: rgba(255, 255, 255, .86);
  font-weight: 800;
  padding: 6px 0;
  position: relative;
}

/* No special hover container style originally */

/* Restore ::before removal if it was added */


.labline-item .li-name {
  font-weight: 900;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, .88);
  transition: color .18s ease;
}

.labline-item .li-meta {
  font-weight: 800;
  color: rgba(255, 255, 255, .50);
  font-size: 12px;
}

.li-name {
  font-weight: 900;
  color: rgba(255, 255, 255, .92);
  line-height: 1.15;
}

.li-sector {
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, .55);
  letter-spacing: .01em;
}

/* Hover: el nombre toma el gradiente (premium) */
.labline-item:hover .li-name,
.labline-item:focus-visible .li-name {
  background: linear-gradient(90deg, var(--a1), var(--a2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.labline-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: linear-gradient(90deg, rgba(110, 231, 255, .0), rgba(110, 231, 255, .35), rgba(139, 92, 246, .25), rgba(139, 92, 246, .0));
  opacity: 0;
  transform: translateY(2px);
  transition: opacity .18s ease, transform .18s ease;
}

.labline-item:hover::after,
.labline-item:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.labline-sep {
  width: 1px;
  height: 24px;
  background: linear-gradient(to bottom,
      transparent,
      rgba(255, 255, 255, .18),
      transparent);
  margin: 0 10px;
}


.labline-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  color: rgba(255, 255, 255, .70);
  font-weight: 900;
  font-size: 12.5px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .02);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.labline-cta:hover {
  transform: translateY(-1px);
  border-color: rgba(110, 231, 255, .20);
  background: rgba(255, 255, 255, .05);
}

/* Ajuste del master: que se sienta “tooltip pro”, no panel pesado */
/* =========================
   HERO LABLINE (Vertical Stack + Floating Master)
========================= */

/* Main Container - Relative for floating master anchor */
/* =========================
   HERO LABLINE (2-Col List + Floating Master)
========================= */

/* Main Container - Relative for floating master anchor */
.hero-labline {
  margin-top: 12px;
  /* Tighter spacing */
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  position: relative;
  /* Anchor for absolute master */
}

/* Gradient divider at top */
.hero-labline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg,
      rgba(110, 231, 255, 0),
      rgba(110, 231, 255, .25),
      rgba(139, 92, 246, .20),
      rgba(139, 92, 246, 0));
  opacity: .85;
}

/* LEFT: Project List Container (Wider for 2 cols) */
.hero-projects {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 580px;
  /* Wider to overlap video space slightly or fit cols */
}

/* List Items Grid (2 Columns) */
.labline-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
  /* Space between cols */
  row-gap: 4px;
  /* Space between rows */
}

/* List Item (Clean Text Row, No Card) */
.labline-item {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  /* More compact */
  border-left: 2px solid transparent;
  color: rgba(255, 255, 255, .55);
  text-decoration: none;
  transition: all .2s ease;
  cursor: pointer;
  background: transparent;
}

/* Active/Hover State */
.labline-item:hover,
.labline-item:focus-visible {
  color: white;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent);
  border-left-color: #6ee7ff;
}

.li-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  /* Slightly smaller for 2-col */
  color: inherit;
  margin-bottom: 2px;
}

.li-sector {
  font-size: 10.5px;
  color: rgba(255, 255, 255, .4);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Highlight text on hover */
.labline-item:hover .li-name {
  color: white;
  text-shadow: 0 0 15px rgba(110, 231, 255, 0.4);
}

.labline-item:hover .li-sector {
  color: rgba(110, 231, 255, .7);
}

/* Separator (Hidden in 2-col or used as spacer) */
.labline-sep {
  display: none;
  /* Hide visual separators for clean grid */
}

/* Explore CTA (Centered below grid) */
.labline-cta {
  margin-top: 16px;
  grid-column: 1 / -1;
  /* Span full width */
  justify-self: center;
  /* Center horizontally */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  color: rgba(255, 255, 255, .70);
  font-weight: 900;
  font-size: 13px;
  padding: 8px 32px;
  /* Wider pill */
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.labline-cta:hover {
  color: #6ee7ff;
  border-color: rgba(110, 231, 255, .2);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}


/* RIGHT: Master Dashboard Card (FLOATING) */
/* Ensure hero-grid aligns top to keep video natural height */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Explicitly split columns */
  position: relative;
  align-items: start;
}

/* RIGHT COLUMN: Video Media */
.hero-media {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  position: relative;
  /* Anchor for absolute children */
}


.project-master {
  position: absolute;
  bottom: 0px;
  /* Aligned with the bottom of the hero grid / incubation lab area */
  left: 0px;
  /* Align to the left of the video container (next to Incubation Lab) */
  right: auto;
  z-index: 100;
  margin: 0;

  /* Reset grid defaults to avoid placement interference */
  grid-column: auto;
  grid-row: auto;

  width: 380px;
  /* Slightly wider for better presence */
  max-height: 480px;
  /* Compact height */
  background: #050608;
  /* Solid dark background for readability */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 20px;
  /* Modern cleaner radius */
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  /* Deep shadow for lift */

  padding: 24px;

  display: flex;
  flex-direction: column;
  gap: 20px;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 20;
}

.project-master.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Header: Logo + Meta */
.pm-header {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
}

.pm-logo-wrap {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pm-logo-wrap img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.pm-logo-wrap.is-empty {
  display: none;
}

.pm-meta {
  flex: 1;
}

.pm-badge {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--a1);
  /* Accent color */
  font-weight: 700;
  margin-bottom: 4px;
}

.pm-title {
  font-size: 20px;
  /* Slightly smaller for compactness */
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin: 0;
}

/* Body: Desc + Tech */
.pm-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.pm-desc {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  /* Limit text lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pm-tech-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Style the JS generated chips to be minimal */
.pm-tech-compact .pm-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.pm-tech-compact .pm-chip img {
  width: 14px;
  height: 14px;
  opacity: 0.8;
}

/* Button CTA */
.btn-pm-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  background: var(--a1);
  color: #000;
  font-weight: 700;
  font-size: 13px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-pm-action:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(110, 231, 255, 0.3);
}

/* Hide legacy elements */
.pm-top,
.pm-sub,
.pm-facts,
.pm-points,
.pm-tech-h {
  display: none !important;
}



/* Mobile: Stack below video */
/* Mobile override removed - see Patch at end of file */


/* =========================
   HERO spacing / transitions
========================= */



/* Banda suave entre CTAs y Labline */
.hero-labline {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .10);
}

/* Glow divider (subrayado suave que separa secciones) */
.hero-labline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg,
      rgba(110, 231, 255, 0),
      rgba(110, 231, 255, .25),
      rgba(139, 92, 246, .20),
      rgba(139, 92, 246, 0));
  opacity: .85;
}

/* Separación clara hacia ecosystem */
/* Separación clara hacia ecosystem */
/* Separación clara hacia ecosystem (Upgraded Scale) */
.hero-ecosystem {
  margin-top: 100px;
  padding-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  position: relative;
}

/* Glow muy sutil al iniciar ecosystem */
.hero-ecosystem::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg,
      rgba(110, 231, 255, 0),
      rgba(110, 231, 255, .16),
      rgba(139, 92, 246, .12),
      rgba(139, 92, 246, 0));
  opacity: .65;
}


/* =========================
   HERO: Ecosystem strip
========================= */
.hero-ecosystem {
  grid-column: 1 / -1;
  margin-top: 100px;
  /* Better separation from content above */
}

.eco-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  /* Reduced from 90px to bring AI card closer */
  text-align: center;
}

.eco-title h2 {
  font-weight: 900;
  color: white;
  font-size: 32px;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.eco-lead {
  font-size: 16px;
  color: var(--a1);
  font-weight: 700;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.eco-sub {
  color: var(--mut);
  font-size: 15px;
  line-height: 1.5;
  max-width: 85ch;
}

.eco-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  position: relative;
  width: 100%;
  max-width: 1200px;
  /* Constrain width for better card aspect ratio */
  margin: 0 auto;
}

/* PREMIUM CARD STYLE */
.eco-card {
  position: relative;
  height: 380px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Content at bottom */
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.eco-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(110, 231, 255, 0.1);
}

/* Card Background Visual */
.eco-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  opacity: 0.35;
  /* Increased from 0.1 for visibility */
  transition: opacity 0.3s ease;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eco-card:hover .eco-card-bg {
  opacity: 0.5;
  /* Brighter on hover */
}

.eco-card-bg img {
  width: 140%;
  /* Oversized */
  height: auto;
  opacity: 1;
  /* Rely on container opacity */
  object-fit: cover;
  transform: rotate(-5deg);
  /* Dynamic tilt */
}

/* Card Content Overlay */
.eco-card-content {
  position: relative;
  z-index: 2;
  padding: 30px;
  background: linear-gradient(to top, rgba(5, 7, 18, 0.95) 20%, rgba(5, 7, 18, 0.6) 80%, transparent 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.eco-card-content h3 {
  font-size: 24px;
  font-weight: 800;
  color: white;
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
}

.eco-card-content p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin: 0 0 24px 0;
  max-width: 45ch;
}

/* Tech Dock */
.eco-card-dock {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dock-item {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: help;
  /* Tooltip hint */
}

.dock-item img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.6;
  filter: grayscale(1);
  transition: all 0.2s ease;
}

.dock-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  border-color: var(--a1);
}

.dock-item:hover img {
  opacity: 1;
  filter: none;
}

.eco-connector::after {
  content: "";
  position: absolute;
  inset: -10px 0;
  background: radial-gradient(circle at 50% 50%, rgba(110, 231, 255, .18), transparent 65%);
  opacity: .55;
}

/* AI ribbon */
.eco-ai {
  position: relative;
  /* Changed from absolute to flow naturally after eco-head */
  margin: 0 auto 30px;
  /* Centered with 30px gap to eco-strip */
  z-index: 10;

  display: flex;
  /* Changed from inline-flex for easier centering */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;

  padding: 16px 24px;
  border-radius: 28px;
  border: 1px solid rgba(110, 231, 255, 0.4);
  background: rgba(8, 10, 16, 0.95);
  backdrop-filter: blur(14px);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7);

  max-width: min(800px, calc(100% - 28px));
  pointer-events: auto;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.eco-ai:hover {
  transform: translateY(-2px);
  /* Gentle lift instead of position-breaking translate */
  border-color: var(--a1);
}

/* Transversal Connector */
.eco-ai::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 30px;
  /* Connects to grid below */
  background: linear-gradient(to bottom, rgba(110, 231, 255, 0.4), transparent);
  z-index: 0;
}

.eco-ai::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background:
    radial-gradient(420px 140px at 20% 20%, rgba(110, 231, 255, .10), transparent 60%),
    radial-gradient(420px 140px at 80% 60%, rgba(139, 92, 246, .12), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.eco-ai>* {
  position: relative;
  z-index: 1;
}

.eco-ai-ico {
  width: 70px;
  height: 52px;
  /* Oval shape or wide circle */
  border-radius: 999px;
  border: 1px solid rgba(110, 231, 255, 0.3);
  background: rgba(110, 231, 255, 0.1);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.eco-ai-ico img {
  height: 22px;
  width: auto;
  opacity: .96;
  filter: none;
}

.eco-ai-name {
  font-weight: 900;
  color: white;
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: 0.1em;
  text-align: center;
}

.eco-ai-desc {
  color: rgba(255, 255, 255, .8);
  font-size: 13px;
  margin-top: 5px;
  text-align: center;
  max-width: 50ch;
}

.eco-ai-icons {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.eco-ai-tool {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: white;
  white-space: nowrap;
}

.eco-ai-tool i,
.eco-ai-tool img {
  height: 18px;
  width: auto;
  font-size: 16px;
  opacity: 0.9;
  color: var(--a1);
}

.eco-ai-tool:hover {
  color: var(--a1);
}

.eco-ai-icons img {
  height: 20px;
  width: auto;
  opacity: .95;
  filter: saturate(.9) brightness(1.05);
  transition: opacity .18s ease, transform .18s ease;
}

.eco-ai-icons img:hover {
  opacity: 1;
  transform: translateY(-1px);
}

@media (max-width: 992px) {
  .eco-grid {
    grid-template-columns: 1fr;
    /* Stack vertically on mobile */
    gap: 24px;
  }


  .eco-ai {
    position: static;
    transform: none;
    max-width: 100%;
    width: 100%;
    justify-content: center;
    border-radius: 18px;
  }

  .eco-ai-desc {
    white-space: normal;
  }
}

/* =========================
   Ecosystem custom tooltip (JS-created)
========================= */
.eco-tooltip {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 14px));
  transition: opacity .12s ease, transform .12s ease;

  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(8, 10, 16, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .55);

  display: flex;
  align-items: center;
  gap: 10px;

  color: rgba(255, 255, 255, .92);
  font-size: 12px;
  font-weight: 800;
}

.eco-tooltip.is-on {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 18px));
}

.eco-tooltip .eco-tip-img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.eco-tooltip .eco-tip-img img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.eco-tooltip .eco-tip-label {
  line-height: 1.2;
  white-space: nowrap;
  opacity: .95;
}

/* =========================
   YOUTUBE SECTION
========================= */
.yt-section {
  padding: 40px 0 86px;
  /* Reduced top padding (was 86px) */
}

.yt-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
  align-items: center;
}

@media (max-width: 992px) {
  .yt-grid {
    grid-template-columns: 1fr;
  }
}

.yt-copy h2 {
  margin: 0 0 10px 0;
  font-weight: 900;
  color: rgba(255, 255, 255, .92);
}

.yt-copy p {
  margin: 0 0 14px 0;
  color: rgba(255, 255, 255, .66);
  max-width: 70ch;
}

.yt-frame {
  justify-self: end;
  width: min(640px, 100%);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: var(--shadow2);
  background: rgba(255, 255, 255, .03);
}

.yt-aspect {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.yt-aspect iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}



/* =========================
   CAPABILITIES (Revamped Zig-Zag)
========================= */
.cap-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  background: #080a10;
  /* Match body bg */
}

/* Reuse mesh background */
.cap-bg-mesh {
  position: absolute;
  inset: 0;
  background-image: url("../img/bg/mesh-lines.webp");
  background-size: cover;
  background-position: center;
  opacity: .08;
  pointer-events: none;
  mix-blend-mode: screen;
}

.cap-intro {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 2;
}

.cap-intro h2 {
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cap-intro p {
  font-size: 18px;
  color: var(--mut);
  max-width: 60ch;
  margin: 0 auto;
}

/* Row Layout */
.cap-row {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 120px;
  position: relative;
  z-index: 2;
}

.cap-row:last-child {
  margin-bottom: 0;
}

.cap-row.reverse {
  flex-direction: row-reverse;
}

/* Visual Column */
.cap-visual {
  flex: 1;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.02);
}

.cap-visual video,
.cap-visual img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/9;
}

.cap-visual-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(8, 10, 16, 0.2) 100%);
  pointer-events: none;
}

/* Content Column */
.cap-content {
  flex: 1;
}

.cap-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--a1);
  margin-bottom: 12px;
  font-weight: 700;
}

.cap-title {
  font-size: 32px;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
  line-height: 1.2;
}

.cap-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin-bottom: 24px;
}

.cap-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cap-features li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cap-features li i {
  color: var(--a1);
  font-size: 12px;
}

.cap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.cap-tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

/* Mobile */
@media (max-width: 992px) {

  .cap-row,
  .cap-row.reverse {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 80px;
  }

  .cap-visual,
  .cap-content {
    width: 100%;
  }

  .cap-intro h2 {
    font-size: 32px;
  }
}

/* =========================
   Professional Footer (pro)
========================= */
.site-footer-pro {
  background: rgba(6, 8, 16, .85);
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .78);
  padding: 52px 0 22px;
  font-size: 14px;
  line-height: 1.6;
}

/* Container */
.footer-container {
  display: grid;
  gap: 26px;
}

/* Brand */
.footer-brand-pro {
  text-align: center;
  margin-bottom: 6px;
}

.footer-logo {
  height: 48px;
  margin-bottom: 10px;
}

.footer-tagline {
  font-weight: 700;
  color: rgba(255, 255, 255, .92);
  font-size: 16px;
}

/* Contacts */
.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
}

.footer-contact-item i {
  color: var(--a1);
}

/* Navigation columns */
.footer-nav-pro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
  text-align: center;
}

.footer-nav-col h4 {
  color: rgba(255, 255, 255, .92);
  margin-bottom: 8px;
  font-weight: 800;
  letter-spacing: .02em;
}

.footer-nav-col a {
  display: block;
  color: rgba(255, 255, 255, .70);
  margin: 4px 0;
  text-decoration: none;
  transition: color .18s ease;
}

.footer-nav-col a:hover {
  color: rgba(110, 231, 255, .95);
}

/* Footer CTA */
.footer-cta-pro {
  text-align: center;
  margin-top: 12px;
}

.btn-footer-cta {
  padding: 10px 18px;
  color: #fff !important;
  background: var(--a2);
  border-radius: 8px;
  font-weight: 800;
  border: none;
  transition: transform .18s ease, background .18s ease;
}

.btn-footer-cta:hover {
  background: var(--a1);
  transform: translateY(-2px);
}

/* Social row */
.footer-social-pro {
  text-align: center;
  margin-top: 8px;
}

.footer-social-pro a {
  margin: 0 10px;
  font-size: 18px;
  color: rgba(255, 255, 255, .78);
  transition: color .18s ease, transform .18s ease;
}

.footer-social-pro a:hover {
  color: rgba(110, 231, 255, .95);
  transform: translateY(-2px);
}

/* Legal */
.footer-legal-pro {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, .50);
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}


/* =========================
   COOKIE
========================= */
.cookie-banner {
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(10, 12, 20, .88);
  backdrop-filter: blur(10px);
}

.cookie-button {
  border: 1px solid rgba(255, 255, 255, .14);
}

/* =========================
   Reduce motion: remove transitions
========================= */
@media (prefers-reduced-motion: reduce) {

  .btn-hero,
  .hero-hover-card,
  .project-chip,
  .project-master,
  .pm-link,
  .eco-icons img,
  .exhibit-card,
  .exhibit-video {
    transition: none !important;
  }
}

/* =========================
   UTILITIES
========================= */
.mt-spacer {
  margin-top: 20vh;
  /* Visual breathing room for Incubation Lab */
}

/* =========================
   FOOTER PRE-CTA (Added)
========================= */
.footer-pre-cta {
  text-align: center;
  padding-bottom: 30px;
  /* Reduced from 60px */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 30px;
  /* Reduced from 60px */
}

.footer-pre-cta h2 {
  font-size: 32px;
  font-weight: 900;
  color: white;
  margin-bottom: 16px;
}

.footer-pre-cta p {
  font-size: 16px;
  color: var(--mut);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   EXHIBIT OVERLAYS (Added)
========================= */
.exhibit-overlay {
  position: absolute;
  inset: 0;
  /* Bottom gradient so video is visible */
  background: linear-gradient(to top, rgba(5, 7, 18, 0.95) 10%, rgba(5, 7, 18, 0.4) 50%, transparent 100%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Align to bottom */
  align-items: flex-start;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 10;
  pointer-events: none;
  /* Let clicks pass through */
}

.exhibit-card:hover .exhibit-overlay {
  opacity: 1;
}

.tech-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--a1);
  background: rgba(110, 231, 255, 0.12);
  border: 1px solid rgba(110, 231, 255, 0.25);
  padding: 5px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
  font-family: 'Consolas', monospace;
}

/* =========================
   CAPABILITIES (Exhibits) VIDEO TOGGLE
   ========================= */
.exhibit-card {
  /* Ensure relative positioning for overlay/video */
  position: relative;
  isolation: isolate;
  display: block;
  /* Ensure it is block level link */
}

/* Ensure Capabilities section sits above any background noise */
#capabilities,
.exhibit-rail {
  position: relative;
  z-index: 10;
}

/* =========================
   COOKIE BANNER (GDPR)
========================= */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  width: calc(100% - 40px);
  max-width: 600px;
  background: rgba(8, 10, 16, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  opacity: 0;
  pointer-events: none;
}

.cookie-banner.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.cookie-banner a {
  color: var(--a1);
  text-decoration: none;
  border-bottom: 1px solid rgba(110, 231, 255, 0.3);
  transition: all 0.2s ease;
}

.cookie-banner a:hover {
  border-bottom-color: var(--a1);
}

.cookie-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.cookie-btn {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  outline: none;
}

.cookie-btn.accept {
  background: var(--a1);
  color: #000;
}

.cookie-btn.accept:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(110, 231, 255, 0.3);
}

.cookie-btn.reject {
  background: transparent;
  color: #ccc;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cookie-btn.reject:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

@media (min-width: 768px) {
  .cookie-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cookie-banner p {
    max-width: 60%;
  }
}

/* =========================
   PATCH: MOBILE NAV & NEW SECTIONS
   Restoring functionality missing from backup
   ========================= */

/* --- MOBILE NAV FIXES --- */
@media (max-width: 768px) {
  .site-nav {
    height: auto;
    min-height: var(--navH);
    padding: 10px 0;
    background: rgba(6, 8, 16, 0.95);
  }

  .navbar-collapse {
    width: 100%;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
    padding-top: 10px;
    box-shadow: none;
  }

  .nav-divider {
    display: none;
  }

  .nav-min .nav-link {
    padding: 12px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.1rem;
    text-align: center;
  }

  .nav-item.ml-md-3 {
    margin-left: 0 !important;
    margin-top: 20px;
    text-align: center;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
    height: 48px;
    background: var(--a1);
    color: #000 !important;
  }

  .nav-icons {
    margin-top: 20px;
    justify-content: center;
    gap: 20px;
  }

  .nav-icon {
    font-size: 20px;
  }
}

/* =========================
   ABOUT PAGE REFINEMENTS
   ========================= */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.ab-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 16px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.ab-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Ireland Advantage */
.ia-dash-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.ia-item {
  padding: 40px 30px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  text-align: left;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.ia-item:last-child {
  border-right: none;
}

@media (max-width: 768px) {
  .ia-dash-row {
    grid-template-columns: 1fr;
  }

  .ia-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .ia-item:last-child {
    border-bottom: none;
  }
}

/* =========================
   TIMELINE SECTION
   ========================= */
.timeline-section {
  padding: 100px 0;
  position: relative;
}

.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-50%);
}

.timeline-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 80px;
  position: relative;
}

.timeline-node {
  width: 45%;
  padding-right: 40px;
  text-align: right;
}

.timeline-image {
  width: 45%;
  padding-left: 40px;
  text-align: left;
}

.timeline-image img {
  border-radius: 12px;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-row:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-row:nth-child(even) .timeline-node {
  padding-right: 0;
  padding-left: 40px;
  text-align: left;
}

.timeline-row:nth-child(even) .timeline-image {
  padding-left: 0;
  padding-right: 40px;
  text-align: right;
}

/* Timeline Mobile */
@media (max-width: 768px) {
  .timeline-line {
    display: none;
  }

  .timeline-row {
    flex-direction: column !important;
    margin-bottom: 60px;
    align-items: flex-start;
  }

  .timeline-node,
  .timeline-image {
    width: 100%;
    padding: 0 !important;
    text-align: left !important;
  }

  .timeline-image {
    order: 1;
    margin-bottom: 20px;
  }

  .timeline-node {
    order: 2;
  }
}

/* =========================
   PATCH: MOBILE HERO SPECIFIC FIXES (Revised)
   Resolving broken layout in Hero section for mobile only
   ========================= */
@media (max-width: 992px) {

  /* 1. HERO TEXT & LAYOUT FIXES */
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* Fix text width/overflow */
  .hero-copy {
    width: 100% !important;
    max-width: 100% !important;
    padding-right: 0 !important;
    overflow-wrap: break-word !important;
  }

  .hero-title {
    font-size: 36px !important;
    /* Ensure title fits */
    word-break: break-word !important;
    line-height: 1.1 !important;
  }

  .hero-subline {
    font-size: 16px !important;
    max-width: 100% !important;
  }

  /* 2. LABLINE (PROJECTS) & CTA FIXES */
  .labline-items {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
  }

  /* Fix Explore Button Alignment (The 'labline-cta' arrow link) */
  .labline-cta {
    grid-column: 1 / -1 !important;
    width: auto !important;
    /* Fix: Don't force full width */
    max-width: 80% !important;
    /* Fix: Restrain width */
    margin: 24px auto 0 auto !important;
    /* Center horizontally */
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    padding: 10px 24px !important;
    /* Slightly smaller padding */
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 99px !important;
  }

  /* 3. HERO MEDIA & PROJECT MASTER */

  /* Reset Hero Media to default height container */
  .hero-media {
    width: 100% !important;
    min-height: 250px !important;
    margin-top: 40px !important;
    height: auto !important;
    overflow: hidden !important;
    /* Clip video */
    display: block !important;
  }

  /* Ensure video covers correctly */
  .hero-video {
    position: absolute !important;
    inset: 0 !important;
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
  }

  /* HIDE MASTER CARD ON MOBILE (User Request 2) */
  .project-master {
    display: none !important;
  }

  /* Hide hover effects on media too */
  .hero-hover {
    display: none !important;
  }
}