/* ============================================
   ROBOT EVENTS — 2026 Fresh Design System
   Bento • Glassmorphism • Smooth Animations
   ============================================ */

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

:root {
  --red: #E31E24;
  --red-dark: #B8151A;
  --red-glow: rgba(227, 30, 36, 0.35);
  --bg: #050505;
  --bg-elevated: #0C0C0C;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --text: #F5F5F5;
  --text-secondary: rgba(255, 255, 255, 0.5);
  --text-tertiary: rgba(255, 255, 255, 0.3);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--red) var(--bg);
}

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

@media (pointer: coarse) {
  body { cursor: auto; }
  .cursor, .cursor-follower { display: none !important; }
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img, video { display: block; max-width: 100%; }

/* --- Text utilities --- */
.text-gradient {
  background: linear-gradient(135deg, #FF4444 0%, #E31E24 40%, #FF6B6B 70%, #E31E24 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
  filter: drop-shadow(0 2px 8px rgba(227,30,36,0.3));
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* --- Custom cursor --- */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s var(--ease), opacity 0.15s;
  mix-blend-mode: difference;
}
.cursor-follower {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(227, 30, 36, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.4s var(--ease), width 0.3s, height 0.3s, border-color 0.3s;
}
.cursor.hovering { transform: scale(3); }
.cursor-follower.hovering {
  width: 60px;
  height: 60px;
  border-color: var(--red);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 14px 28px;
  border-radius: 60px;
  border: 1px solid transparent;
  cursor: none;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn--primary {
  background: var(--red);
  color: white;
  border-color: var(--red);
}
.btn--primary:hover {
  background: var(--red-dark);
  box-shadow: 0 0 40px var(--red-glow);
  transform: translateY(-2px);
}
.btn--glass {
  background: var(--bg-glass);
  color: var(--text);
  border-color: var(--border);
  backdrop-filter: blur(12px);
}
.btn--glass:hover {
  border-color: var(--red);
  color: var(--red);
}
.btn--full { width: 100%; justify-content: center; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 60px;
  background: rgba(227, 30, 36, 0.1);
  border: 1px solid rgba(227, 30, 36, 0.2);
  color: var(--red);
}
.pill--ghost {
  background: var(--bg-glass);
  border-color: var(--border);
  color: var(--text-secondary);
}

/* --- Section heads --- */
.section-head { margin-bottom: 64px; }
.section-head__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--red);
  margin-bottom: 16px;
}
.section-head__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.section-head__sub {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
  margin-top: 16px;
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 24px;
  transition: all 0.5s var(--ease);
}
.nav.scrolled {
  padding: 12px 24px;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  cursor: none;
}
.nav__logo em {
  font-style: normal;
  color: var(--red);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 60px;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease);
  cursor: none;
}
.nav__link:hover { color: var(--text); background: var(--bg-glass); }
.nav__link--cta {
  background: var(--red);
  color: white !important;
  margin-left: 8px;
}
.nav__link--cta:hover { background: var(--red-dark); box-shadow: 0 0 20px var(--red-glow); }
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 8px;
  cursor: none;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: white;
  transition: all 0.4s var(--ease);
  transform-origin: center;
}
.nav__toggle.active span:first-child { transform: rotate(45deg) translate(2.5px, 2.5px); }
.nav__toggle.active span:last-child { transform: rotate(-45deg) translate(2.5px, -2.5px); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}
.hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,5,5,0.6) 0%, rgba(5,5,5,0.15) 30%, rgba(5,5,5,0.3) 60%, var(--bg) 100%),
    radial-gradient(ellipse at 20% 50%, rgba(227,30,36,0.08) 0%, transparent 60%);
}
/* Frosted glass overlay — covers entire hero, behind content */
.hero__frost {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(5,5,5,0.5);
  backdrop-filter: blur(72px) saturate(1.1);
  -webkit-backdrop-filter: blur(72px) saturate(1.1);
  mask-image:
    radial-gradient(ellipse 91% 91% at 25% 50%, black 13%, rgba(0,0,0,0.35) 50%, transparent 82%);
  -webkit-mask-image:
    radial-gradient(ellipse 91% 91% at 25% 50%, black 13%, rgba(0,0,0,0.35) 50%, transparent 82%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.hero__tag {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.7), 0 0 60px rgba(0,0,0,0.3);
}
.hero__sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 36px;
  text-shadow: 0 1px 15px rgba(0,0,0,0.6);
}
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero__stats {
  position: absolute;
  bottom: 80px;
  right: 48px;
  z-index: 2;
  display: flex;
  gap: 40px;
}
.stat { text-align: center; }
.stat__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}
.stat__unit {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--red);
}
.stat__label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 48px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-tertiary);
}
.hero__scroll-line {
  width: 48px;
  height: 1px;
  background: var(--text-tertiary);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--red);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.marquee__track {
  display: flex;
  gap: 48px;
  animation: marquee 25s linear infinite;
  white-space: nowrap;
}
.marquee__track span {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  flex-shrink: 0;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   BENTO GRID
   ============================================ */
.bento { padding: 140px 0; }
.bento__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.bento__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.5s var(--ease);
  position: relative;
  overflow: hidden;
}
.bento__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(227,30,36,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
}
.bento__card:hover::before { opacity: 1; }
.bento__card:hover { border-color: var(--border-hover); }

.bento__card--hero {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  padding: 0;
  min-height: 420px;
}
.bento__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.bento__card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  background: linear-gradient(transparent, rgba(5,5,5,0.9));
  z-index: 1;
}
.bento__card-overlay h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.bento__card-overlay p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.bento__card--wide {
  grid-column: 2 / 4;
}
.bento__card-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.bento__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  margin-bottom: 20px;
}
.bento__icon svg { width: 100%; height: 100%; }
.bento__card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.bento__card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   ECOSYSTEM
   ============================================ */
.ecosystem {
  padding: 140px 0;
  background: var(--bg-elevated);
}
.ecosystem__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
.ecosystem__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all 0.5s var(--ease);
  position: relative;
  overflow: hidden;
}
.ecosystem__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.ecosystem__card:hover::before { transform: scaleX(1); }
.ecosystem__card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.ecosystem__card-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--red);
  opacity: 0.1;
  position: absolute;
  top: 12px;
  right: 20px;
  line-height: 1;
}
.ecosystem__card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
}
.ecosystem__card-icon svg { width: 100%; height: 100%; }
.ecosystem__card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.ecosystem__card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.ecosystem__features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.ecosystem__feat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 60px;
  background: var(--bg-card);
  transition: border-color 0.3s;
}
.ecosystem__feat:hover { border-color: rgba(227,30,36,0.3); }

/* ============================================
   PROCESS
   ============================================ */
.process {
  padding: 140px 0;
}
.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.process__step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.5s var(--ease);
  position: relative;
}
.process__step:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.process__num {
  position: absolute;
  top: 16px;
  left: 20px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--red);
  z-index: 2;
  background: rgba(5,5,5,0.7);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 60px;
  border: 1px solid rgba(227,30,36,0.2);
}
.process__video-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.process__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.process__info { padding: 20px; }
.process__info h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.process__info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================
   AUDIENCE
   ============================================ */
.audience {
  padding: 160px 0;
  position: relative;
  overflow: hidden;
}
.audience__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.audience__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}
.audience__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--bg), transparent 20%, transparent 80%, var(--bg));
}
.audience .container { position: relative; z-index: 1; }
.audience__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.audience__card {
  background: rgba(5, 5, 5, 0.6);
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  transition: all 0.5s var(--ease);
  position: relative;
}
.audience__card:hover {
  border-color: rgba(227,30,36,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(227,30,36,0.1);
}
.audience__num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--red);
  opacity: 0.15;
  position: absolute;
  top: 12px;
  right: 20px;
  line-height: 1;
}
.audience__card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.audience__card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   SPECS
   ============================================ */
.specs {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.specs__row {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.specs__item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 200px;
}
.specs__icon-wrap {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.specs__icon-wrap svg { width: 100%; height: 100%; }
.specs__item span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ============================================
   PORTFOLIO (horizontal scroll)
   ============================================ */
.portfolio {
  padding: 140px 0;
}
.portfolio__scroll {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 24px;
}
.portfolio__scroll::-webkit-scrollbar { display: none; }
.portfolio__track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding-bottom: 20px;
}
.portfolio__card {
  width: 380px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.5s var(--ease);
}
.portfolio__card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}
.portfolio__media {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  cursor: none;
}
.portfolio__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.portfolio__card:hover .portfolio__media video { transform: scale(1.05); }
.portfolio__info {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.portfolio__year {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--red);
  padding: 2px 8px;
  border: 1px solid rgba(227,30,36,0.3);
  border-radius: 60px;
}
.portfolio__info h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
}

/* ============================================
   CTA / CONTATTI (centered, no form)
   ============================================ */
.cta {
  padding: 140px 0;
  background: var(--bg-elevated);
}
.cta__centered {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.cta__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 16px 0 20px;
}
.cta__desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 40px;
}
.cta__contacts {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.cta__contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  transition: all 0.4s var(--ease);
  cursor: none;
  text-align: left;
}
.cta__contact-card:hover {
  border-color: rgba(227,30,36,0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(227,30,36,0.1);
}
.cta__contact-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-tertiary);
  margin-bottom: 2px;
}
.cta__contact-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.cta__checks {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta__check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 80px 0 0;
  border-top: 1px solid var(--border);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.footer__logo em { font-style: normal; color: var(--red); }
.footer__brand > p {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}
.footer__tagline {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 320px;
  line-height: 1.6;
}
.footer__col h4 {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red);
  margin-bottom: 16px;
}
.footer__col a, .footer__col p {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  transition: color 0.3s;
}
.footer__col a:hover { color: var(--red); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   PORTFOLIO PLAY BUTTON
   ============================================ */
.portfolio__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
  z-index: 2;
}
.portfolio__card:hover .portfolio__play {
  opacity: 1;
}
.portfolio__play svg circle {
  transition: fill 0.3s ease;
}
.portfolio__play:hover svg circle {
  fill: rgba(227,30,36,0.8);
}

/* ============================================
   VIDEO LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.lightbox.active {
  opacity: 1;
  visibility: visible;
}
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,5,5,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.lightbox__container {
  position: relative;
  width: 90vw;
  max-width: 1100px;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s var(--ease-out);
}
.lightbox.active .lightbox__container {
  transform: scale(1) translateY(0);
}
.lightbox, .lightbox * {
  cursor: auto !important;
}
.lightbox__close {
  position: absolute;
  top: -48px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 36px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
  z-index: 2;
}
.lightbox__close:hover {
  background: rgba(255,255,255,0.1);
}
.lightbox__title {
  color: white;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.lightbox__player {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16/9;
}
.lightbox__player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .bento__grid { grid-template-columns: 1fr 1fr; }
  .bento__card--hero { grid-column: 1 / -1; grid-row: auto; min-height: 300px; }
  .bento__card--wide { grid-column: 1 / -1; }
  .process__steps { grid-template-columns: repeat(2, 1fr); }
  .ecosystem__grid { grid-template-columns: 1fr; }
  .hero__stats { position: static; margin-top: 48px; display: flex; gap: 32px; }
  .hero__scroll { display: none; }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5,5,5,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 99;
  }
  .nav__links.active { display: flex; }
  .nav__toggle { display: flex; z-index: 100; }
  .nav__link { font-size: 1.3rem; }
  .nav__link--cta { margin-left: 0; margin-top: 8px; }

  .bento__grid { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr; }
  .audience__cards { grid-template-columns: 1fr; }
  .ecosystem__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .specs__row { flex-direction: column; gap: 20px; }
  .hero__title { font-size: clamp(2.2rem, 9vw, 3.5rem); }
  .hero { padding: 100px 20px 60px; }
  .hero__frost { mask-image: radial-gradient(ellipse 100% 70% at 30% 45%, black 10%, rgba(0,0,0,0.35) 50%, transparent 80%); -webkit-mask-image: radial-gradient(ellipse 100% 70% at 30% 45%, black 10%, rgba(0,0,0,0.35) 50%, transparent 80%); }
  .hero__stats { flex-wrap: wrap; }
  .bento, .process, .audience, .portfolio, .cta, .ecosystem { padding: 80px 0; }
  .portfolio__card { width: 300px; }
}
