/* ─────────────────────────────────────────────────────────────
   MIRROR SITES — main.css
   Shared: variables · reset · typography · nav · footer · utils
   ───────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Outfit:wght@300;400;500;600&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,600&display=swap');

/* ─── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-0:       #0A0A0A;
  --bg-1:       #111111;
  --bg-2:       #161616;
  --bg-card:    #141414;
  --bg-glass:   rgba(255,255,255,0.03);

  /* Text */
  --text-1:     #FFFFFF;
  --text-2:     #A0A0A0;
  --text-3:     #555555;
  --text-inv:   #0A0A0A;

  /* Brand */
  --silver:     #C0C0C0;
  --silver-dim: #888888;
  --silver-glow: rgba(192,192,192,0.15);

  /* Mirror Elite accent — warm gold */
  --gold:       #D4A853;
  --gold-dim:   #9A7A3A;
  --gold-glow:  rgba(212,168,83,0.12);

  /* CTA */
  --cta-bg:     #FFFFFF;
  --cta-text:   #0A0A0A;

  /* Borders */
  --border-1:   rgba(255,255,255,0.07);
  --border-2:   rgba(255,255,255,0.12);
  --border-silver: rgba(192,192,192,0.2);

  /* Spacing scale (8pt) */
  --s1:  0.5rem;   /* 8px  */
  --s2:  1rem;     /* 16px */
  --s3:  1.5rem;   /* 24px */
  --s4:  2rem;     /* 32px */
  --s5:  3rem;     /* 48px */
  --s6:  4rem;     /* 64px */
  --s7:  6rem;     /* 96px */
  --s8:  8rem;     /* 128px */

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body:    'Outfit', sans-serif;
  --font-serif:   'Cormorant Garamond', serif;

  /* Radius */
  --r1:  4px;
  --r2:  8px;
  --r3:  12px;
  --r4:  20px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:  150ms;
  --t-mid:   300ms;
  --t-slow:  500ms;

  /* Z-index scale */
  --z-below:   -1;
  --z-base:     0;
  --z-card:    10;
  --z-nav:     40;
  --z-modal:  100;
  --z-cursor: 9999;
}


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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(192,192,192,0.03) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(192,192,192,0.02) 0%, transparent 50%),
    #0A0A0A;
  color: var(--text-1);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden;
  cursor: auto;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
a, button, [role="button"] { cursor: pointer; }
ul, ol { list-style: none; }

::selection {
  background: var(--silver);
  color: var(--bg-0);
}


/* ─── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--text-3); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--silver-dim); }


/* ─── TYPOGRAPHY ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.t-display {
  font-size: clamp(3rem, 8vw, 7rem);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.t-hero {
  font-size: clamp(2.2rem, 5.5vw, 4.8rem);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.t-heading {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.t-subheading {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.t-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-2);
}

.t-body { font-family: var(--font-body); font-size: 1rem; line-height: 1.65; }
.t-body-sm { font-family: var(--font-body); font-size: 0.875rem; line-height: 1.6; }

.t-serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
}


/* ─── LAYOUT UTILITIES ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--s3);
}

.container--narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--s3);
}

.section {
  padding: var(--s7) 0;
}

.section--lg {
  padding: var(--s8) 0;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--s1); }
.gap-2 { gap: var(--s2); }
.gap-3 { gap: var(--s3); }
.gap-4 { gap: var(--s4); }

.text-center { text-align: center; }
.text-right { text-align: right; }

.color-silver { color: var(--silver); }
.color-dim { color: var(--text-2); }
.color-gold { color: var(--gold); }


/* ─── REVEAL ANIMATIONS (IntersectionObserver) ──────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-slow) var(--ease-out-expo),
              transform var(--t-slow) var(--ease-out-expo);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity var(--t-slow) var(--ease-out-expo),
              transform var(--t-slow) var(--ease-out-expo);
}

.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t-slow) var(--ease-out-expo),
              transform var(--t-slow) var(--ease-out-expo);
}

.stagger-children.is-visible > *:nth-child(1) { opacity:1; transform:translateY(0); transition-delay: 0ms; }
.stagger-children.is-visible > *:nth-child(2) { opacity:1; transform:translateY(0); transition-delay: 60ms; }
.stagger-children.is-visible > *:nth-child(3) { opacity:1; transform:translateY(0); transition-delay: 120ms; }
.stagger-children.is-visible > *:nth-child(4) { opacity:1; transform:translateY(0); transition-delay: 180ms; }
.stagger-children.is-visible > *:nth-child(5) { opacity:1; transform:translateY(0); transition-delay: 240ms; }
.stagger-children.is-visible > *:nth-child(6) { opacity:1; transform:translateY(0); transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .stagger-children > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 2rem;
  border-radius: var(--r2);
  transition: transform var(--t-mid) var(--ease-out-expo),
              box-shadow var(--t-mid) var(--ease-out-expo),
              background var(--t-mid),
              color var(--t-mid);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.06);
  opacity: 0;
  transition: opacity var(--t-fast);
}

.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--cta-bg);
  color: var(--cta-text);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,255,255,0.12);
}

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

.btn-outline:hover {
  border-color: var(--silver);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--silver-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  padding: 0.6rem 0;
  border-radius: 0;
}

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

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  gap: 0.6rem;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37,211,102,0.25);
}

.btn-gold {
  background: var(--gold);
  color: var(--bg-0);
  font-weight: 600;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(212,168,83,0.3);
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-2);
  font-size: 0.875rem;
  font-family: var(--font-body);
  transition: color var(--t-mid), gap var(--t-mid) var(--ease-out-expo);
}

.btn-arrow:hover { color: var(--text-1); gap: 0.7rem; }


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

.divider--silver {
  background: linear-gradient(90deg, transparent 0%, var(--silver-dim) 30%, var(--silver-dim) 70%, transparent 100%);
  opacity: 0.3;
}


/* ─── SECTION LABEL ─────────────────────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s4);
}

.section-label::before {
  content: '';
  display: block;
  width: 20px; height: 1px;
  background: var(--silver);
  flex-shrink: 0;
}

.section-label span {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--silver);
}


/* ─── TAG / PILL ─────────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-1);
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-2);
  letter-spacing: 0.03em;
  font-family: var(--font-body);
}

.tag--silver {
  border-color: var(--border-silver);
  color: var(--silver);
}

.tag--gold {
  border-color: rgba(212,168,83,0.3);
  color: var(--gold);
}


/* ─── NAVIGATION ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  padding: var(--s2) 0;
  transition: background var(--t-mid), backdrop-filter var(--t-mid),
              border-color var(--t-mid), padding var(--t-mid);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--border-1);
  padding: calc(var(--s2) * 0.75) 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--s3);
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-1);
  transition: color var(--t-mid);
  flex-shrink: 0;
}

.nav__logo:hover { color: var(--silver); }

.nav__logo span {
  color: var(--silver);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s4);
}

.nav__link {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-2);
  position: relative;
  transition: color var(--t-mid);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, transparent, #C0C0C0, transparent);
  transition: width 0.3s ease;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--text-1);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  width: 100%;
}

.nav__link--elite {
  color: var(--silver);
  font-weight: 500;
}

.nav__link--elite::after { background: var(--gold); }
.nav__link--elite:hover { color: var(--gold); }

.nav__cta {
  display: flex;
  align-items: center;
  gap: var(--s3);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text-1);
  transform-origin: center;
  transition: transform var(--t-mid) var(--ease-out-expo),
              opacity var(--t-fast);
}

.nav__hamburger.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav__hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__hamburger.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile drawer */
.nav__drawer {
  position: fixed;
  top: 0; right: 0;
  width: 100%; height: 100dvh;
  background: var(--bg-0);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--s4);
  z-index: calc(var(--z-nav) - 1);
  transform: translateX(100%);
  transition: transform var(--t-slow) var(--ease-out-expo);
  border-left: 1px solid var(--border-1);
}

.nav__drawer.is-open {
  transform: translateX(0);
}

.nav__drawer .nav__link {
  font-size: 1.8rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.02em;
}

.nav__drawer .nav__link::after {
  height: 2px;
  bottom: -4px;
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__cta .btn { display: none; }
  .nav__hamburger { display: flex; }
}


/* ─── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border-1);
  padding: var(--s6) 0 var(--s4);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--s6);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--s3);
}

.footer__brand .footer__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-1);
  display: block;
  margin-bottom: var(--s2);
}

.footer__brand .footer__logo span { color: var(--silver); }

.footer__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-2);
  margin-bottom: var(--s3);
}

.footer__contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
}

.footer__contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-2);
  transition: color var(--t-mid);
}

.footer__contact-link:hover { color: var(--silver); }

.footer__col-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver-dim);
  margin-bottom: var(--s2);
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__nav a {
  font-size: 0.875rem;
  color: var(--text-2);
  transition: color var(--t-mid);
}

.footer__nav a:hover { color: var(--text-1); }

.footer__bottom {
  margin-top: var(--s5);
  padding-top: var(--s3);
  border-top: 1px solid var(--border-1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--s3);
  padding-right: var(--s3);
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--text-3);
}

.footer__made {
  font-size: 0.72rem;
  color: var(--text-3);
  font-family: var(--font-serif);
  font-style: italic;
}

@media (max-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--s1);
    text-align: center;
    margin-top: var(--s4);
  }
}


/* ─── PAGE TRANSITION ───────────────────────────────────────── */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg-0);
  z-index: 9998;
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms var(--ease-out-expo);
}

body.is-loading .page-transition { opacity: 1; }


/* ─── NOISE TEXTURE OVERLAY ─────────────────────────────────── */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}


/* ─── SHIMMER ───────────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.shimmer-text {
  background: linear-gradient(90deg,
    var(--silver-dim) 0%,
    var(--text-1) 40%,
    var(--silver) 50%,
    var(--text-1) 60%,
    var(--silver-dim) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}


/* ─── GLOW LINE ─────────────────────────────────────────────── */
.glow-line {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--silver), transparent);
  margin: var(--s3) auto;
}

.glow-line--gold {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}


/* ─── METALLIC TITLE (hero h1 elements) ─────────────────────── */
@keyframes metalShift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.metallic-title {
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #c0c0c0 20%,
    #e8e8e8 35%,
    #808080 50%,
    #e0e0e0 65%,
    #b0b0b0 80%,
    #ffffff 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: metalShift 6s ease-in-out infinite alternate;
}


/* ─── PROJECT IMAGE CONTAINER ───────────────────────────────── */
.project-img-container {
  width: 100%;
  height: 400px;
  overflow: hidden;
  position: relative;
  border-radius: inherit;
}

.project-img-container img {
  width: 100%;
  height: 110%;
  object-fit: cover;
  object-position: center 8%;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
  margin-top: -5%;
}

.project-img-container:hover img {
  transform: scale(1.04);
}

/* Stretch variant: fills absolute parent (for split-layout hero cards) */
.project-img-container--fill {
  position: absolute;
  inset: 0;
  height: auto;
}

.project-img-container--fill img {
  width: 100%;
  height: 100%;
  margin-top: 0;
  object-position: center 8%;
}

/* Aspect-ratio variants for homepage cards */
.project-img-container--4-3 { height: auto; aspect-ratio: 4 / 3; }
.project-img-container--16-7 { height: auto; aspect-ratio: 16 / 7; }

.project-img-container--4-3 img,
.project-img-container--16-7 img {
  height: 110%;
  margin-top: -5%;
}


/* ─── RVBIO IMAGE — white-bar crop ─────────────────────────── */
.project-img-container {
  clip-path: inset(0px);
}

.project-img-container img[src*="rvbio"] {
  object-position: center 12%;
  margin-top: -14%;
  height: 130%;
}

.project-img-container img[src*="jordi"] {
  object-position: center 12%;
  margin-top: -14%;
  height: 130%;
}

.project-img-container img[src*="kactus"] {
  object-fit: cover;
  object-position: center 8%;
  width: 100%;
  height: 115%;
  margin-top: -5%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-img-container:hover img[src*="kactus"] {
  transform: scale(1.04);
}

/* ─── PROJECT VIDEO ──────────────────────────────────────────── */
.project-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-img-container:hover .project-video {
  transform: scale(1.04);
}


/* ─── PRICE ANCHOR ───────────────────────────────────────────── */
.price-anchor {
  font-size: 0.95rem;
  color: var(--silver);
  font-family: var(--font-body);
  font-weight: 400;
  margin-bottom: var(--s4);
  letter-spacing: 0.01em;
}

.price-anchor strong {
  font-weight: 600;
  color: var(--silver);
}


/* ─── LOGO ELITE TEASER ─────────────────────────────────────── */
img.logo-elite-teaser {
  width: 80px;
  height: auto;
  display: block;
  margin: 0 auto 24px auto;
  filter:
    sepia(1) saturate(4) hue-rotate(5deg)
    brightness(1.3)
    drop-shadow(0 0 15px rgba(212,160,23,0.6))
    drop-shadow(0 0 35px rgba(212,160,23,0.3));
}


/* ─── CARD HOVER GLOW ───────────────────────────────────────── */
.project-card:hover,
.why__card:hover,
.work-card:hover {
  border-color: rgba(192,192,192,0.3);
  box-shadow:
    0 0 0 1px rgba(192,192,192,0.1),
    0 20px 60px rgba(0,0,0,0.5);
  transform: translateY(-4px);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


/* ─── RESPONSIVE HELPERS ────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .section { padding: var(--s6) 0; }
  .section--lg { padding: var(--s7) 0; }
}

/* ─── MOBILE FIX — Global overflow containment ──────────────── */
@media (max-width: 768px) {
  body {
    overflow-x: hidden !important;
  }

  * {
    max-width: 100vw;
    box-sizing: border-box;
  }
}


/* ═══════════════════════════════════════════════════════════════
   BRAND CARD IDENTITIES
   ═══════════════════════════════════════════════════════════════ */

/* ─── Rvbio Universe — electric magenta / deep purple ────────── */
.card-rvbio {
  background: #0D0010;
  border-color: rgba(255, 0, 180, 0.25) !important;
  box-shadow: 0 0 40px rgba(255, 0, 180, 0.08),
              inset 0 0 60px rgba(100, 0, 80, 0.15);
}
.card-rvbio .project-info {
  background: #0D0010;
}
.card-rvbio .work-card__title,
.card-rvbio .project-card__title {
  color: #FF2DAF;
}
.card-rvbio .tag {
  background: rgba(255, 45, 175, 0.12);
  border-color: rgba(255, 45, 175, 0.3);
  color: #FF2DAF;
}
.card-rvbio .work-card__description,
.card-rvbio .project-card__desc {
  color: rgba(255, 255, 255, 0.75);
}


/* ─── Academia Jordi Melero — lime / dark court ──────────────── */
.card-jordi {
  background: #0A1A08;
  border-color: rgba(180, 255, 0, 0.2) !important;
  box-shadow: 0 0 40px rgba(180, 255, 0, 0.06),
              inset 0 0 60px rgba(30, 60, 0, 0.2);
}
.card-jordi .project-info {
  background: #0A1A08;
}
.card-jordi .work-card__title,
.card-jordi .project-card__title {
  color: #C8F400;
}
.card-jordi .tag {
  background: rgba(200, 244, 0, 0.1);
  border-color: rgba(200, 244, 0, 0.25);
  color: #C8F400;
}
.card-jordi .work-card__description,
.card-jordi .project-card__desc {
  color: rgba(255, 255, 255, 0.75);
}


/* ─── Kactus Republic — warm cream / natural ─────────────────── */
.card-kactus {
  background: #1A1714;
  border-color: rgba(210, 195, 170, 0.2) !important;
  box-shadow: 0 0 40px rgba(210, 195, 170, 0.05),
              inset 0 0 60px rgba(40, 30, 20, 0.3);
}
.card-kactus .project-info {
  background: #1A1714;
}
.card-kactus .work-card__title,
.card-kactus .project-card__title {
  color: #D4C5A9;
}
.card-kactus .tag {
  background: rgba(210, 195, 170, 0.08);
  border-color: rgba(210, 195, 170, 0.2);
  color: #D4C5A9;
}
.card-kactus .work-card__description,
.card-kactus .project-card__desc {
  color: rgba(220, 210, 195, 0.75);
}


/* ─── Goff — deep navy / champagne gold ──────────────────────── */
.card-goff {
  background: #050D1A;
  border-color: rgba(201, 168, 76, 0.25) !important;
  box-shadow: 0 0 40px rgba(201, 168, 76, 0.08),
              inset 0 0 60px rgba(10, 22, 40, 0.4);
}
.card-goff .project-info {
  background: #050D1A;
}
.card-goff .work-card__title,
.card-goff .project-card__title {
  color: #C9A84C;
}
.card-goff .tag {
  background: rgba(201, 168, 76, 0.08);
  border-color: rgba(201, 168, 76, 0.2);
  color: #C9A84C;
}
.card-goff .work-card__description,
.card-goff .project-card__desc {
  color: rgba(245, 240, 232, 0.75);
}

/* ─── FIREFLIES SHADER BACKGROUND ─────────────────────────── */
#fireflies-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.12;
  pointer-events: none;
  display: block;
}

/* Dark base moves to <html> so the body can be transparent
   and the z-index:-1 canvas is actually visible behind content */
html { background-color: #0A0A0A; }
body { background-color: transparent !important; }

.hero,
.section,
.elite-teaser,
.cta-section,
.footer {
  position: relative;
  z-index: 1;
}

.nav { z-index: 100; }
#kactus-loader { z-index: 99999; }

