/* ============================================
   ALY QUINTERO — PORTFOLIO v2.0
   Clean minimal dark theme with ice-blue accent
   Inspired by creatoroly.com & helisulbaran.com
   ============================================ */

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

:root {
  --bg: #0A0A0A;
  --bg-card: #111111;
  --bg-card-hover: #1a1a1a;
  --text: #f0f0f0;
  --text-dim: #ffffff;
  --text-muted: #ffffff;
  --accent: #64B5F6;
  --accent-glow: rgba(100, 181, 246, 0.25);
  --border: #1e1e1e;
  --radius: 16px;
  --radius-pill: 50px;
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: none;
}

button {
  cursor: none;
}

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

/* --- Accessibility: keyboard focus --- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Scroll Progress --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), rgba(100, 181, 246, 0.6));
  z-index: 1001;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* --- Custom Cursor (arrow like creatoroly) --- */
.cursor-arrow {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10001;
  transform: translate3d(-100px, -100px, 0);
  will-change: transform;
}

.cursor-arrow svg {
  display: block;
  width: 30px;
  height: 30px;
  /* Tip of the arrow path is at (5,3) of the 24×24 viewBox = (6.25px, 3.75px)
     at 30px — shift the svg so the TIP sits exactly on the pointer. */
  transform: translate(-6.25px, -3.75px);
  transform-origin: 6.25px 3.75px; /* pulse scales around the tip */
  transition: width 0.25s var(--ease), height 0.25s var(--ease);
  filter:
    drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.95))
    drop-shadow(0 2px 6px rgba(0, 0, 0, 0.65))
    drop-shadow(0 0 6px rgba(100, 181, 246, 0.35));
}

body.cursor-hover .cursor-arrow svg {
  width: 38px;
  height: 38px;
}

/* Cursor click pulse (animates the svg so the JS-driven position transform is untouched) */
body.cursor-click .cursor-arrow svg {
  animation: cursorPulse 0.3s var(--ease);
}

@keyframes cursorPulse {
  0% { transform: translate(-6.25px, -3.75px) scale(1); }
  50% { transform: translate(-6.25px, -3.75px) scale(0.6); }
  100% { transform: translate(-6.25px, -3.75px) scale(1); }
}

/* Cursor ripple on click */
.cursor-ripple {
  position: fixed;
  width: 10px;
  height: 10px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  animation: rippleExpand 0.6s var(--ease) forwards;
}

@keyframes rippleExpand {
  0% {
    width: 10px;
    height: 10px;
    opacity: 1;
  }
  100% {
    width: 80px;
    height: 80px;
    opacity: 0;
  }
}

/* Language toggle — expandable */
.lang-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  transition: all 0.35s var(--ease);
  overflow: hidden;
}

.lang-toggle:hover {
  border-color: var(--accent);
  padding: 8px 20px;
}

.lang-toggle .lang-label {
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.lang-toggle .lang-active-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.lang-toggle .lang-inactive-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}

.lang-sep {
  color: var(--text-muted);
  font-weight: 300;
  margin: 0 3px;
  transition: opacity 0.3s var(--ease);
}

.lang-toggle:hover .lang-sep {
  opacity: 0.4;
}

/* Nav active state */
.nav-link {
  position: relative;
}

.nav-link.active {
  color: var(--accent);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  transition: background var(--transition), backdrop-filter var(--transition);
}

/* No background banner on scroll — only used for logo color state */

.nav-pill {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  padding: 6px 8px 6px 6px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: background var(--transition);
}

.nav-logo:hover {
  background: rgba(100, 181, 246, 0.15);
  color: var(--accent);
}

/* Logo: blue at top, matches other nav text when scrolled */
.nav.scrolled .nav-logo {
  color: var(--text);
}

.nav.scrolled .nav-logo:hover {
  color: var(--accent);
}

.nav-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 4px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 4px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: background var(--transition), color var(--transition);
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  transition: transform var(--transition), box-shadow var(--transition);
}

.nav-cta-pill:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--accent-glow);
}

/* --- Hero --- */
.hero {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 120px 0 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0a0a0a;
}

/* v3: cinematic glow instead of background video */
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 52% at 50% 22%, rgba(100, 181, 246, 0.11), transparent 72%),
    radial-gradient(42% 42% at 84% 78%, rgba(100, 181, 246, 0.08), transparent 70%),
    radial-gradient(40% 40% at 12% 68%, rgba(100, 181, 246, 0.06), transparent 70%);
  z-index: 1;
}

/* v3: faint frame grid (echoes "frame by frame") */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 45%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 65% at 50% 45%, #000 30%, transparent 100%);
  z-index: 2;
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 20px;
}

.hero-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  margin-bottom: 14px;
}

.hero-label-sep {
  color: var(--accent);
  font-weight: 300;
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.95;
  margin-bottom: 18px;
}

.hero-line {
  display: block;
  font-size: clamp(46px, 8vw, 104px);
  letter-spacing: 0.04em;
  color: #ffffff;
  text-shadow:
    0 0 20px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(0, 0, 0, 0.6),
    0 4px 12px rgba(0, 0, 0, 0.9);
}

.hero-tagline {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  margin: 0 auto 18px;
  line-height: 1.7;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 9px 18px;
  margin-bottom: 18px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Online status dot */
.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.9);
  flex-shrink: 0;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: float 3s ease-in-out infinite;
}

.hero-scroll span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* --- Hero CTAs (v3) --- */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: #06121c;
  box-shadow: 0 10px 34px rgba(100, 181, 246, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 44px rgba(100, 181, 246, 0.42);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  color: var(--accent);
}

/* --- Trusted-by marquee (v3) --- */
.marquee {
  padding: 68px 0 12px;
  overflow: hidden;
}

.marquee-label {
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.marquee-wrap {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 38s linear infinite;
}

.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-right: 56px;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

.marquee-item img {
  height: 30px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  border-radius: 6px;
  filter: grayscale(1) brightness(1.3);
  opacity: 0.75;
}

/* --- Identity badges: red = YouTube creator, blue = company --- */
.mq-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mq-badge svg {
  width: 11px;
  height: 11px;
  display: block;
}

.mq-badge--yt {
  background: #ff0000;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.55), 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.mq-badge--co {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(100, 181, 246, 0.5), 0 0 0 3px rgba(255, 255, 255, 0.06);
}

@keyframes marqueeScroll {
  to { transform: translateX(-50%); }
}

/* --- Hero Entrance Animation --- */
.hero-enter {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeIn 0.9s var(--ease) forwards;
  animation-delay: calc(var(--delay) * 0.15s + 0.3s);
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Section Common --- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 76px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* v3: editorial section numbering */
.section-num {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}

.sep {
  color: var(--text-muted);
  margin: 0 4px;
}

/* --- Work Section --- */
.work {
  padding: 76px 40px 80px;
}

.work-header {
  margin-bottom: 44px;
  text-align: center;
}

.work-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  letter-spacing: 0.05em;
}

/* --- Filter Bar --- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  justify-content: center;
}

.filter-btn {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: var(--text-dim);
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: rgba(100, 181, 246, 0.4);
  color: var(--text);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* --- Section switcher (category pages) --- */
.section-switcher {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 44px 40px 30px;
  text-align: center;
}

.switch-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.switch-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.switch-pill {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: var(--text-dim);
  transition: all var(--transition);
}

.switch-pill:hover {
  border-color: rgba(100, 181, 246, 0.4);
  color: var(--text);
}

.switch-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* --- Work Grid --- */
.work-grid {
  columns: 4;
  column-gap: 14px;
  max-width: 1120px;
  margin: 0 auto;
}

.work-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), opacity 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 14px;
  width: 100%;
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: rgba(100, 181, 246, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px var(--accent-glow);
}

.work-card.hidden {
  display: none;
}

.work-card--featured {
  grid-column: span 2;
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0d0d0d;
}

/* Aspect ratio per video type */
.card-media.ar-9x16 { aspect-ratio: 9 / 16; }
.card-media.ar-4x5 { aspect-ratio: 4 / 5; }
.card-media.ar-16x9 { aspect-ratio: 16 / 9; }

/* --- Featured panel (filter view: highlights + see more) --- */
.filter-panel[hidden] { display: none; }

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto 44px;
}

.featured-grid--wide {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Single-row layouts per category */
.featured-grid--cols5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.featured-grid--cols3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 980px;
}

.featured-grid--cols2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 660px;
}

.featured-grid--cols4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 768px) {
  .about-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.featured-grid--center {
  max-width: 300px;
}

.featured-card {
  margin-bottom: 0;
  animation: featuredIn 0.55s var(--ease) both;
}

@keyframes featuredIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.featured-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 46px;
  height: 33px;
  border-radius: 8px;
  background: rgba(255, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  transition: transform 0.3s var(--ease);
  z-index: 2;
}

.featured-play svg { width: 16px; height: 16px; display: block; }
.work-card:hover .featured-play { transform: scale(1.12); }

.featured-empty {
  max-width: 560px;
  margin: 0 auto 36px;
  padding: 64px 30px;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
}

.featured-more {
  display: flex;
  width: max-content;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .featured-grid,
  .featured-grid--wide,
  .featured-grid--cols5,
  .featured-grid--cols4,
  .featured-grid--cols3,
  .featured-grid--cols2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 32px;
  }
  .featured-grid--center { max-width: 240px; }
}

/* --- Contact Section --- */
.contact {
  padding: 104px 40px 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.contact-sub {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 440px;
  margin: 18px auto 0;
  line-height: 1.6;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 44px;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}

.contact-icon {
  width: auto;
  height: 17px;
  fill: currentColor;
  flex-shrink: 0;
}

.contact-card-arrow {
  font-size: 15px;
  opacity: 0.5;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-card:hover .contact-card-arrow {
  transform: translate(3px, -3px);
  opacity: 1;
}

.contact-card--upwork:hover {
  border-color: #6fda44;
  background: rgba(111, 218, 68, 0.07);
  box-shadow: 0 16px 44px rgba(111, 218, 68, 0.15);
}

.contact-card--linkedin:hover {
  border-color: #0a66c2;
  background: rgba(10, 102, 194, 0.1);
  box-shadow: 0 16px 44px rgba(10, 102, 194, 0.2);
}

.contact-card--behance:hover {
  border-color: #1769ff;
  background: rgba(23, 105, 255, 0.09);
  box-shadow: 0 16px 44px rgba(23, 105, 255, 0.18);
}

@media (max-width: 768px) {
  .contact {
    padding: 64px 20px 56px;
  }
  .contact-links {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 34px;
  }
}

.work-card--featured .card-media {
  aspect-ratio: 21 / 9;
}

.work-card--featured .card-media.ar-16x9 { aspect-ratio: 16 / 9; }
.work-card--featured .card-media.ar-4x5 { aspect-ratio: 4 / 5; }

.card-media video,
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.work-card:hover .card-media video,
.work-card:hover .card-media img {
  transform: scale(1.05);
}

.card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
  color: var(--text-muted);
  font-size: 48px;
  font-family: var(--font-display);
  font-weight: 700;
}

/* v3: branded placeholder for categories with no video inside */
.card-media--empty {
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(100, 181, 246, 0.08), transparent 60%),
    linear-gradient(140deg, #101010 0%, #0b0b0b 60%, #0e1216 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-media--empty::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

/* Centered card name (home work cards) */
.card-label {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 16px;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.9), 0 1px 4px rgba(0, 0, 0, 0.95);
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

/* Shaded overlay covering the whole card so the title reads clearly */
.card-label::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  z-index: -1;
}

/* Featured panel (filter view): título discreto y abajo, sin oscurecer el póster.
   Solo aplica a las tarjetas destacadas — la vista ALL no cambia. */
/* Featured: titulo en barra inferior, fuera del video (estilo ficha) */
.featured-card-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 11px 13px 13px;
  text-align: left;
}

.featured-card-title {
  font-family: var(--font-display);
  font-size: clamp(12px, 1.05vw, 15px);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
  color: #fff;
}

.work-card.is-playing .card-label {
  opacity: 0.3;
}

.card-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 24px 18px;
}

.card-category {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Enter arrow (top-right corner of work cards) */
.card-enter {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
    transform 0.25s var(--ease), color 0.25s var(--ease);
}

.card-enter:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0a;
  transform: scale(1.1);
}

/* --- Clients Section --- */
.clients {
  padding: 140px 40px 120px;
  border-bottom: 1px solid var(--border);
}

.clients-inner {
  text-align: center;
}

.clients-inner .section-title {
  margin-bottom: 48px;
}

.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 48px;
  max-width: 900px;
  margin: 0 auto;
}

/* Client groups: Content Creators vs Companies */
.clients-groups {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
}

.clients-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.clients-group-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.clients-group-label::before {
  content: '// ';
  color: var(--accent);
}

.clients-grid .client-item {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.5;
  background: none;
  border: none;
  padding: 0;
  position: relative;
  transition: color var(--transition), opacity var(--transition), transform var(--transition);
}

.clients-grid .client-item::after {
  content: '+';
  display: inline-block;
  margin-left: 6px;
  font-weight: 400;
  color: var(--accent);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity var(--transition), transform var(--transition);
}

.clients-grid .client-item:hover {
  opacity: 1;
  color: var(--text);
  transform: translateY(-2px);
}

.clients-grid .client-item:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* --- Client Modal --- */
.client-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}

.client-modal.open {
  opacity: 1;
  visibility: visible;
}

.client-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.client-modal-card {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px 36px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px var(--accent-glow);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.4s var(--ease);
}

.client-modal.open .client-modal-card {
  transform: translateY(0) scale(1);
}

/* --- Marquee client items: click-to-open affordance --- */
.marquee-item[data-client] {
  cursor: pointer;
  transition: color 0.3s var(--ease);
}

.marquee-item[data-client]:hover {
  color: #ffffff;
}

.mq-badge {
  transition: transform 0.3s var(--ease);
}

.marquee-item[data-client]:hover .mq-badge {
  transform: scale(1.25);
}

.client-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 26px;
  line-height: 1;
  padding: 4px 8px;
  transition: color var(--transition), transform var(--transition);
}

.client-modal-close:hover {
  color: var(--accent);
  transform: rotate(90deg);
}

.client-modal-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.client-modal-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.client-modal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.client-modal-links:empty {
  display: none;
}

.client-modal-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid rgba(100, 181, 246, 0.35);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.client-modal-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0a;
}

.client-modal-body {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.client-modal-logo {
  width: 108px;
  height: 108px;
  flex-shrink: 0;
  object-fit: contain;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 16px;
}

/* Dark/black logos get inverted so they read on the dark modal */
.client-modal-logo--invert {
  filter: invert(1);
}

.client-modal-logo[hidden] {
  display: none;
}

.client-modal-text {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-dim);
}

@media (max-width: 480px) {
  .client-modal-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }
}

/* --- About Section --- */
.about {
  padding: 72px 40px 160px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.about-inner {
  max-width: 700px;
  margin: 0 auto;
}

.about-text {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-dim);
  margin-bottom: 48px;
}

.about-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  transition: transform var(--transition), box-shadow var(--transition);
  margin-bottom: 12px;
}

.about-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px var(--accent-glow);
}

.cta-arrow {
  transition: transform var(--transition);
}

.about-cta:hover .cta-arrow {
  transform: translateX(4px);
}

.cta-note {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 48px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.about-tools {
  font-size: 14px;
  color: var(--text-dim);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 12px;
  max-width: 780px;
  margin: 0 auto 24px;
  justify-items: center;
  text-align: center;
}

.about-tools .sep {
  display: none;
}

/* --- Tool badges: logo appears above name on hover --- */
.about-tools .tool {
  position: relative;
  display: inline-block;
  transition: color var(--transition);
}

.about-tools .tool:hover {
  color: var(--text);
}

.tool-logo {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(8px) scale(0.97);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  z-index: 10;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 264px;                 /* every tooltip box has the same width */
  box-sizing: border-box;
  padding: 12px 14px;
  background: rgba(10, 10, 10, 0.94);
  border: 1px solid rgba(100, 181, 246, 0.5);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 18px rgba(100, 181, 246, 0.25);
}

/* Text column: tool name (accent) above, description below */
.tool-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  text-align: left;
}

.tool-name {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.tool-desc {
  display: block;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.82);
  text-align: left;
  white-space: normal;
}

.about-tools .tool:hover .tool-logo {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.tool-mark,
.tool-mark--svg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  box-sizing: border-box;
  flex-shrink: 0;
  background: rgba(100, 181, 246, 0.12);
  border: 1px solid rgba(100, 181, 246, 0.4);
  border-radius: 9px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.tool-mark--svg {
  padding: 6px;
}

.tool-mark--svg svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: var(--accent);
}

.about-email {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.about-email-link {
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: opacity var(--transition);
}

.about-email-link:hover {
  opacity: 0.8;
}

.copy-email-btn {
  background: rgba(100, 181, 246, 0.12);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.copy-email-btn:hover {
  background: var(--accent);
  color: #0A0A0A;
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--accent-glow);
}

/* --- Next-step CTA (after videos on category pages) --- */
.next-step {
  text-align: center;
  padding: 100px 24px 92px;
  border-top: 1px solid var(--border);
}

.next-step .section-label {
  display: block;
  margin-bottom: 24px;
}

.next-step-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.5vw, 64px);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 24px;
}

.next-step-sub {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.8;
  text-transform: uppercase;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
}

.next-step .about-cta {
  margin-bottom: 34px;
}

.next-step-email {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.next-step-email .about-email-link {
  font-size: 16px;
  text-transform: none;
}

/* --- Footer --- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 40px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* --- Category Pages --- */
.category-hero {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 350px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding-bottom: 60px;
}

.category-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.85) 70%, rgba(10,10,10,1) 100%);
  z-index: 1;
}

.category-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  z-index: 1;
}

.category-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 50%, #111 100%);
}

.category-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}

.category-hero-content .section-label {
  margin-bottom: 12px;
}

/* Título de categoría en tamaño contenido (el protagonismo lo tiene el BACK) */
.category-hero-content .section-title {
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 0.95;
  margin-bottom: 12px;
}

.category-hero-count {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Back button (category pages) — píldora centrada con borde animado */
.cat-back-wrap {
  text-align: center;
  padding: 34px 20px 2px;
}

.back-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 44px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  transition: color var(--transition), transform var(--transition);
}

.back-btn::before {
  content: '';
  position: absolute;
  inset: -150%;
  z-index: -2;
  background: conic-gradient(from 0deg,
    var(--accent),
    rgba(100, 181, 246, 0.3) 14%,
    transparent 26%,
    transparent 48%,
    var(--accent) 62%,
    rgba(100, 181, 246, 0.4) 74%,
    transparent 86%);
  animation: backSpin 3s linear infinite;
}

.back-btn::after {
  content: '';
  position: absolute;
  inset: 2px;
  z-index: -1;
  border-radius: var(--radius-pill);
  background: #0a0a0a;
}

@keyframes backSpin {
  to { transform: rotate(1turn); }
}

.back-btn:hover {
  color: #fff;
  transform: translateY(-2px);
}

.back-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Card meta row: client tag next to title */
.card-info-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  min-width: 0;
}

.card-client {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(100, 181, 246, 0.35);
  background: rgba(100, 181, 246, 0.08);
  border-radius: var(--radius-pill);
  padding: 3px 9px;
  white-space: nowrap;
}

/* View count chip (YouTube page) */
.card-views {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff3b3b;
  border: 1px solid rgba(255, 59, 59, 0.45);
  background: rgba(255, 59, 59, 0.1);
  border-radius: var(--radius-pill);
  padding: 3px 9px;
  white-space: nowrap;
}

/* --- Video Grid (Category Pages) --- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px 80px;
  align-items: start;
}

/* Grid density by aspect ratio */
.video-grid--vertical { grid-template-columns: repeat(4, 1fr); }   /* 9:16 reels */
.video-grid--portrait { grid-template-columns: repeat(3, 1fr); }   /* 4:5 ads */
.video-grid--triple { grid-template-columns: repeat(3, 1fr); }     /* 16:9 youtube */
.video-grid--single {
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
}

/* AI ad is 9:16 — narrower column so the box stays a sane height */
.video-grid.video-grid--ai {
  grid-template-columns: minmax(0, 440px);
}

.video-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(100, 181, 246, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px var(--accent-glow);
}

.video-card--featured {
  grid-column: span 2;
}

.video-card .card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0d0d0d;
}

.video-card--featured .card-media {
  aspect-ratio: 21 / 9;
}

/* Aspect ratio per video type (category pages) */
.video-card .card-media.ar-9x16 { aspect-ratio: 9 / 16; }
.video-card .card-media.ar-4x5 { aspect-ratio: 4 / 5; }
.video-card .card-media.ar-16x9 { aspect-ratio: 16 / 9; }

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
  color: var(--text-muted);
}

/* Embedded video (YouTube, Vimeo, Google Drive) */
.card-media--embed {
  position: relative;
}

.card-media--embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* YouTube lite embed: poster + play, loads iframe on demand */
.yt-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s var(--ease), transform 0.6s var(--ease);
}

.yt-playbtn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  padding-left: 4px;
  box-sizing: border-box;
  background: rgba(10, 10, 10, 0.75);
  border: 1px solid rgba(100, 181, 246, 0.7);
  border-radius: 50%;
  color: var(--accent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), opacity 0.4s var(--ease);
  pointer-events: none;
}

.yt-lite {
  cursor: pointer;
}

.yt-lite:hover .yt-playbtn {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 30px var(--accent-glow);
}

.yt-lite:hover .yt-poster {
  transform: scale(1.04);
}

.yt-lite.loaded .yt-poster,
.yt-lite.loaded .yt-playbtn {
  opacity: 0;
  pointer-events: none;
}

/* --- Google Drive videos: poster + click para cargar (sin autoplay) --- */
.card-media--drive {
  cursor: pointer;
}

.card-media--drive.is-loaded {
  cursor: default;
}

.card-media--drive iframe {
  z-index: 4;
}

/* Póster con letterbox cuando el video no es exactamente 16:9 */
.card-media--letterbox img {
  object-fit: contain;
  background: #000;
}

/* Motion: piezas cuadradas (1:1) */
.card-media.ar-1x1 { aspect-ratio: 1 / 1; }
.video-card .card-media.ar-1x1 { aspect-ratio: 1 / 1; }

/* Play badge (category pages) */
.drive-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  box-sizing: border-box;
  background: rgba(10, 10, 10, 0.72);
  border: 1px solid rgba(100, 181, 246, 0.7);
  border-radius: 50%;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2;
  pointer-events: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), opacity 0.4s var(--ease);
}

.drive-play svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
  fill: var(--accent);
  display: block;
}

.card-media--drive:hover .drive-play {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 30px var(--accent-glow);
}

.card-media--drive.is-loaded .drive-play,
.card-media--drive.is-loaded .card-label,
.card-media--drive.is-loaded .card-enter {
  opacity: 0;
  pointer-events: none;
}

/* --- Ventana de video: se abre SOLO con click; el jugador conserva su relación de aspecto nativa --- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9600;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.video-modal.open {
  opacity: 1;
  visibility: visible;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.video-modal-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 94vw;
}

.video-modal-frame {
  position: relative;
  width: min(92vw, calc(82vh * var(--ar, 1.7778)));
  aspect-ratio: var(--ar, 16 / 9);
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius, 14px);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.75);
  transform: scale(0.97);
  transition: transform 0.35s var(--ease);
}

.video-modal.open .video-modal-frame {
  transform: scale(1);
}

.video-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal-close {
  position: absolute;
  top: 22px;
  right: 24px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 10, 10, 0.7);
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition);
}

.video-modal-close:hover {
  border-color: var(--accent);
  color: #fff;
  transform: rotate(90deg);
}

.video-modal-caption {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.video-modal-caption[hidden] {
  display: none;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .video-modal-close {
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
  }
  .video-modal-frame {
    border-radius: 10px;
  }
  .back-btn {
    padding: 14px 30px;
    font-size: 12px;
  }
  .cat-back-wrap {
    padding-top: 26px;
  }
}

.video-card:hover .card-media img {
  transform: scale(1.05);
}

.video-card:hover .video-placeholder {
  color: var(--text-dim);
}

.video-card .card-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 24px 18px;
}

.video-card .card-category {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.video-card .card-arrow {
  font-size: 20px;
  color: var(--accent);
  transition: transform var(--transition);
}

.video-card:hover .card-arrow {
  transform: translateX(6px);
}

/* --- Fade-up Animation --- */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease),
              transform 0.8s var(--ease);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .work-grid {
    columns: 2;
    max-width: none;
  }

  .work-card--featured {
    grid-column: span 2;
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 760px;
  }

  .video-grid--vertical { grid-template-columns: repeat(3, 1fr); }
  .video-grid--portrait,
  .video-grid--triple { grid-template-columns: repeat(2, 1fr); }
  .video-grid--single { grid-template-columns: minmax(0, 520px); justify-content: center; }

  .video-card--featured {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  body {
    cursor: auto;
  }

  .cursor-arrow {
    display: none !important;
  }

  .nav {
    padding: 16px 20px;
  }

  .nav-pill {
    padding: 4px 6px 4px 4px;
  }

  .nav-links {
    display: none;
  }

  .nav-right {
    gap: 8px;
  }

  .lang-toggle {
    padding: 6px 10px;
    font-size: 11px;
  }

  .nav-cta-pill {
    padding: 8px 16px;
    font-size: 11px;
  }

  .hero-label {
    font-size: 11px;
    gap: 8px;
  }

  .hero-line {
    font-size: clamp(40px, 13vw, 76px);
  }

  .hero-tagline {
    font-size: 15px;
  }

  .hero-status {
    font-size: 11px;
    letter-spacing: 0.08em;
    padding: 9px 16px;
    max-width: calc(100% - 24px);
    text-align: center;
  }

  .hero-actions {
    gap: 10px;
    margin-bottom: 34px;
  }

  .btn {
    padding: 13px 22px;
    font-size: 12px;
  }

  .marquee {
    padding-top: 48px;
  }

  .marquee-label {
    margin-bottom: 26px;
  }

  .marquee-item {
    font-size: 14px;
    gap: 9px;
  }

  .marquee-group {
    gap: 34px;
    padding-right: 34px;
  }

  .work {
    padding: 56px 20px 48px;
  }

  .work-header {
    margin-bottom: 40px;
  }

  .work-grid {
    gap: 14px;
  }

  .filter-bar {
    gap: 6px;
  }

  .filter-btn {
    padding: 7px 14px;
    font-size: 11px;
  }

  .video-grid {
    padding: 0 20px 60px;
    gap: 14px;
  }

  .video-grid--vertical { grid-template-columns: repeat(2, 1fr); }
  .video-grid--single { grid-template-columns: minmax(0, 1fr); }

  .video-card .card-info {
    padding: 6px 18px 14px;
  }

  .video-card .card-category {
    font-size: 11px;
  }

  .card-info {
    padding: 6px 18px 14px;
  }

  .card-category {
    font-size: 11px;
  }

  .clients {
    padding: 80px 20px 60px;
  }

  .about {
    padding: 40px 20px 80px;
  }

  .about-text {
    font-size: 16px;
  }

  .footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .hero-label {
    flex-direction: column;
    gap: 4px;
  }

  .hero-label-sep {
    display: none;
  }

  .work-grid {
    columns: 1;
  }

  .work-card--featured {
    grid-column: span 1;
  }
}