/* ============================================
   FONTS
============================================ */
@font-face {
  font-family: 'PeckhamPress';
  src: url('../fonts/PeckhamPress.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   CSS VARIABLES
============================================ */
:root {
  --black: #000000;
  --lime: #7FE400;
  --lemon: #FFE500;
  --white: #FFFFFF;
  --gray-dark: #0A0A0A;
  --gray: #111111;
  --gray-mid: #1E1E1E;
  --gray-light: #2A2A2A;
  --text-muted: #666666;
  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --nav-height: 110px;
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --t: 0.3s var(--ease-out);
  --t-slow: 0.6s var(--ease-out);
}

/* ============================================
   RESET
============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; }
button { font-family: inherit; }

/* ============================================
   CUSTOM CURSOR
============================================ */
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--lime);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background 0.3s;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid var(--lime);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s, opacity 0.3s;
  opacity: 0.6;
}
body.cursor-hover .cursor-ring { width: 56px; height: 56px; border-color: var(--lemon); opacity: 1; }
body.cursor-hover .cursor-dot { background: var(--lemon); width: 4px; height: 4px; }
@media (max-width: 768px) { .cursor-dot, .cursor-ring { display: none; } body { cursor: auto; } }

/* ============================================
   PAGE TRANSITION
============================================ */
/* ── Clapperboard transition ── */
.pt-wrap {
  position: fixed; inset: 0; z-index: 9990;
  pointer-events: none;
}
.pt-panel {
  position: absolute; left: 0; width: 100%; height: 50vh;
  background: repeating-linear-gradient(
    -45deg,
    #000 0px, #000 32px,
    #7FE400 32px, #7FE400 64px
  );
  will-change: transform;
}
.pt-top    { top: 0; }
.pt-bottom { bottom: 0; }
.pt-cut {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: 'PeckhamPress', var(--font-display);
  font-size: clamp(72px, 14vw, 180px);
  line-height: 1;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap; pointer-events: none;
  opacity: 0;
  /* Black outline so it pops off the lime stripes — same as logo on dark bg */
  -webkit-text-stroke: 2px #000;
  paint-order: stroke fill;
}
.pt-wrap.active { pointer-events: all; }

/* ============================================
   NOISE OVERLAY
============================================ */
.noise {
  position: fixed;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: noise-anim 0.6s steps(2) infinite;
}
@keyframes noise-anim {
  0%   { transform: translate(0,0); }
  25%  { transform: translate(-1%,1%); }
  50%  { transform: translate(1%,-1%); }
  75%  { transform: translate(-1%,-1%); }
  100% { transform: translate(1%,1%); }
}

/* ============================================
   NAVIGATION
============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; padding: 0 48px;
  height: var(--nav-height);
  display: flex; align-items: center; justify-content: space-between;
  transition: background var(--t), backdrop-filter var(--t);
}
.nav.scrolled {
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(127,228,0,0.08);
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; cursor: pointer;
}
.nav-logo img {
  height: 96px; width: auto;
  mix-blend-mode: screen;
}
.nav-logo-text { display: none; }
.nav-links { display: flex; align-items: center; gap: 40px; list-style: none; }
.nav-links a {
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--white); letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0.6; transition: opacity var(--t), color var(--t);
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--lime);
  transition: width var(--t);
}
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--lime); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  padding: 11px 26px; background: var(--lime); color: var(--black);
  transition: background var(--t); cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.nav-cta:hover { background: var(--lemon); }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; background: none; border: none;
}
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--white); transition: var(--t); }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.nav-mobile {
  position: fixed; inset: 0; background: var(--black);
  z-index: 99; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 36px;
  transform: translateX(100%);
  transition: transform 0.55s var(--ease-in-out);
  border-left: 1px solid rgba(127,228,0,0.1);
}
.nav-mobile.open { transform: translateX(0); }
.nav-mobile a {
  font-family: var(--font-display); font-size: 52px;
  color: var(--white); letter-spacing: 0.04em;
  opacity: 0.85; transition: color var(--t), opacity var(--t);
}
.nav-mobile a:hover { color: var(--lime); opacity: 1; }
.nav-mobile-close {
  position: absolute; top: 28px; right: 28px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-muted); display: flex; align-items: center; gap: 8px;
  transition: color var(--t);
}
.nav-mobile-close:hover { color: var(--lime); }
.mobile-nav-logo {
  position: absolute; top: 28px; left: 28px;
  height: 44px; width: auto; mix-blend-mode: screen;
}

/* ============================================
   BUTTONS
============================================ */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700;
  padding: 16px 34px; cursor: pointer; border: none;
  transition: background var(--t), color var(--t), border-color var(--t), transform 0.2s;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lime { background: var(--lime); color: var(--black); }
.btn-lime:hover { background: var(--lemon); }
.btn-white-outline {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-white-outline:hover { border-color: var(--lime); color: var(--lime); }
.btn-black { background: var(--black); color: var(--lime); }
.btn-black:hover { background: #111; }
.btn-black-outline {
  background: transparent; color: var(--black);
  border: 2px solid var(--black);
}
.btn-black-outline:hover { background: var(--black); color: var(--lime); }
.btn-lemon { background: var(--lemon); color: var(--black); }
.btn-lemon:hover { background: var(--lime); }

/* ============================================
   LAYOUT
============================================ */
.max-w { max-width: 1400px; margin-left: auto; margin-right: auto; }
.section { position: relative; padding: 120px 48px; z-index: 2; }
.section-label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--lime);
  margin-bottom: 20px; display: flex; align-items: center; gap: 12px;
}
.section-label::before { content: '//'; opacity: 0.4; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.5vw, 92px);
  line-height: 0.88; text-transform: uppercase;
  letter-spacing: -0.01em; margin-bottom: 60px;
}
.section-title em { font-style: normal; color: var(--lime); }
.section-title .lemon { color: var(--lemon); }

/* ============================================
   HERO
============================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 48px 150px; padding-top: var(--nav-height); overflow: hidden;
  /* Poster as base layer — instant paint + mobile fallback when video is hidden */
  background: #000 url('../videos/cif-hero-poster.jpg') center/cover no-repeat;
}
.hero-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; pointer-events: none;
}
.hero-video-overlay {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  /* Darken + vignette so headline stays readable over any frame */
  background:
    linear-gradient(90deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.4) 100%),
    linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.5) 100%);
}
.hero-scanlines {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(127,228,0,0.012) 2px, rgba(127,228,0,0.012) 4px
  );
}
.hero-glow {
  position: absolute; top: 30%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(127,228,0,0.06) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
  animation: glow-pulse 6s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}
.hero-eyebrow {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--lime);
  margin-bottom: 28px; position: relative; z-index: 2;
  display: flex; align-items: center; gap: 16px;
}
.hero-eyebrow::before,
.hero-eyebrow::after { content: ''; width: 36px; height: 1px; background: var(--lime); }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(64px, 11vw, 175px);
  line-height: 0.88; letter-spacing: -0.01em;
  text-transform: uppercase;
  position: relative; z-index: 2;
}
.hero-title .line { display: block; }
.hero-title .line-inner { display: block; }
.hero-title em { font-style: normal; color: var(--lime); }

/* Glitch effect */
.glitch { position: relative; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
}
.glitch::before {
  color: rgba(127,228,0,0.7);
  clip-path: polygon(0 20%, 100% 20%, 100% 48%, 0 48%);
  animation: glitch-a 5s infinite;
}
.glitch::after {
  color: rgba(255,229,0,0.5);
  clip-path: polygon(0 60%, 100% 60%, 100% 78%, 0 78%);
  animation: glitch-b 5s infinite;
}
@keyframes glitch-a {
  0%, 94%, 100% { transform: translateX(0); opacity: 0; }
  95% { transform: translateX(-4px); opacity: 0.8; }
  96% { transform: translateX(4px); opacity: 0.8; }
  97% { transform: translateX(0); opacity: 0; }
}
@keyframes glitch-b {
  0%, 91%, 100% { transform: translateX(0); opacity: 0; }
  92% { transform: translateX(4px); opacity: 0.6; }
  93% { transform: translateX(-2px); opacity: 0.6; }
  94% { transform: translateX(0); opacity: 0; }
}

.hero-tagline {
  font-family: var(--font-mono); font-size: clamp(10px, 1.1vw, 13px);
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-muted);
  margin-top: 44px; position: relative; z-index: 2;
}
.hero-tagline .accent { color: var(--lime); }
.hero-actions {
  display: flex; align-items: center; gap: 20px;
  margin-top: 52px; position: relative; z-index: 2;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute; bottom: 44px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  z-index: 2;
}
.hero-scroll span {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-muted);
}
.scroll-line {
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, var(--lime), transparent);
  animation: scroll-fade 2.2s ease-in-out infinite;
}
@keyframes scroll-fade {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
.hero-loc {
  position: absolute; bottom: 44px; right: 48px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.22em;
  color: var(--text-muted); text-transform: uppercase;
  writing-mode: vertical-rl; transform: rotate(180deg);
  z-index: 2;
}

/* ============================================
   TICKER
============================================ */
.ticker { background: var(--lime); padding: 15px 0; overflow: hidden; position: relative; z-index: 2; }
.ticker-track {
  display: flex; gap: 0; width: max-content;
  animation: ticker-run 32s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: flex; align-items: center; gap: 36px; padding: 0 36px; white-space: nowrap;
}
.ticker-item span {
  font-family: var(--font-display); font-size: 15px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--black);
}
.ticker-dot { width: 5px; height: 5px; background: var(--black); border-radius: 50%; flex-shrink: 0; }
@keyframes ticker-run { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================
   SERVICES GRID
============================================ */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px; background: rgba(127,228,0,0.08);
  border: 1px solid rgba(127,228,0,0.08);
}
.service-card {
  background: var(--black); padding: 48px 40px;
  position: relative; overflow: hidden; cursor: pointer;
}
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--lime); transform: translateY(101%);
  transition: transform 0.45s var(--ease-in-out); z-index: 0;
}
.service-card:hover::before { transform: translateY(0); }
.service-card > * { position: relative; z-index: 1; }
.service-num {
  font-family: var(--font-mono); font-size: 10px; color: var(--lime);
  letter-spacing: 0.2em; margin-bottom: 28px; display: block;
  transition: color var(--t);
}
.service-card:hover .service-num { color: rgba(0,0,0,0.4); }
.service-h {
  font-family: var(--font-display); font-size: 27px;
  text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--white); margin-bottom: 14px; line-height: 1;
  transition: color var(--t);
}
.service-card:hover .service-h { color: var(--black); }
.service-p {
  font-size: 12.5px; line-height: 1.75; color: var(--text-muted);
  transition: color var(--t);
}
.service-card:hover .service-p { color: rgba(0,0,0,0.65); }
.service-arr {
  margin-top: 28px; font-size: 22px; color: var(--lime);
  display: inline-block; transition: color var(--t), transform var(--t);
}
.service-card:hover .service-arr { color: var(--black); transform: translate(5px, -5px); }

/* ============================================
   SHOWREEL
============================================ */
.showreel-wrap {
  position: relative; max-width: 1100px; margin: 0 auto;
  aspect-ratio: 16/9; overflow: hidden; cursor: pointer;
  background: var(--gray);
}
.showreel-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: brightness(0.35);
  transition: filter var(--t-slow);
}
.showreel-ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray); filter: brightness(0.5);
}
.showreel-wrap:hover .showreel-bg,
.showreel-wrap:hover .showreel-ph { filter: brightness(0.25); }
.showreel-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
}
.play-ring {
  width: 88px; height: 88px;
  border: 2px solid var(--lime); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--t), background var(--t), border-color var(--t);
}
.showreel-wrap:hover .play-ring {
  transform: scale(1.12); background: var(--lime);
}
.play-ring svg { fill: var(--lime); width: 26px; height: 26px; margin-left: 5px; transition: fill var(--t); }
.showreel-wrap:hover .play-ring svg { fill: var(--black); }
.play-label {
  font-family: var(--font-display); font-size: 16px;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--white);
}

/* Modal */
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.96);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.modal.open { opacity: 1; pointer-events: all; }
.modal-close {
  position: absolute; top: 32px; right: 44px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-muted); cursor: pointer;
  background: none; border: none;
  display: flex; align-items: center; gap: 10px; transition: color var(--t);
}
.modal-close:hover { color: var(--lime); }
.modal-video { width: 90%; max-width: 1100px; aspect-ratio: 16/9; }
.modal-video iframe { width: 100%; height: 100%; border: none; }

/* ============================================
   PORTFOLIO GRID (home preview)
============================================ */
.portfolio-preview {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px;
}
.pf-card {
  position: relative; aspect-ratio: 16/10; overflow: hidden; cursor: pointer;
  background: var(--gray);
}
.pf-card-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: brightness(0.6);
  transition: transform 0.7s var(--ease-out), filter 0.5s;
}
.pf-card:hover .pf-card-bg { transform: scale(1.06); filter: brightness(0.45); }
.pf-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, transparent 55%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 32px;
  transition: background 0.4s;
}
.pf-tag {
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--lime);
  margin-bottom: 8px;
}
.pf-title {
  font-family: var(--font-display); font-size: 22px;
  text-transform: uppercase; color: var(--white); letter-spacing: 0.02em; line-height: 1;
}
.pf-arrow {
  position: absolute; top: 28px; right: 28px;
  width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.7);
  transition: opacity var(--t), transform var(--t), border-color var(--t);
}
.pf-card:hover .pf-arrow { opacity: 1; transform: scale(1); border-color: var(--lime); }
.pf-arrow svg { stroke: var(--lime); width: 16px; height: 16px; }

/* ============================================
   WHO WE SERVE
============================================ */
.serve-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  border: 1px solid rgba(127,228,0,0.08);
}
.serve-card {
  padding: 44px 32px; border-right: 1px solid rgba(127,228,0,0.08);
  transition: background var(--t); cursor: default;
}
.serve-card:last-child { border-right: none; }
.serve-card:hover { background: rgba(127,228,0,0.04); }
.serve-icon { width: 38px; height: 38px; color: var(--lime); margin-bottom: 22px; }
.serve-title {
  font-family: var(--font-display); font-size: 19px;
  text-transform: uppercase; color: var(--white); margin-bottom: 12px; letter-spacing: 0.02em;
}
.serve-desc { font-size: 12px; line-height: 1.75; color: var(--text-muted); }

/* ============================================
   STATS BAR
============================================ */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(127,228,0,0.08); margin-bottom: 80px;
}
.stat-cell {
  padding: 50px 36px; text-align: center;
  border-right: 1px solid rgba(127,228,0,0.08);
}
.stat-cell:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display); font-size: 72px;
  color: var(--lime); line-height: 1; display: block;
}
.stat-lbl {
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-muted); margin-top: 8px; display: block;
}

/* ============================================
   CTA BANNER
============================================ */
.cta-band {
  background: var(--lime); padding: 100px 48px;
  position: relative; overflow: hidden; z-index: 2;
}
.cta-logo-watermark {
  position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
  height: 280px; width: auto; opacity: 0.08;
  mix-blend-mode: multiply; pointer-events: none;
}
.cta-band-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 60px;
}
.cta-heading {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 110px);
  text-transform: uppercase; color: var(--black); line-height: 0.88;
}
.cta-sub {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(0,0,0,0.5); margin-top: 16px;
}
.cta-actions { display: flex; flex-direction: column; gap: 14px; flex-shrink: 0; }

/* ============================================
   FOOTER
============================================ */
.footer {
  background: var(--gray-dark);
  border-top: 1px solid rgba(127,228,0,0.08);
  padding: 80px 48px 40px; position: relative; z-index: 2;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px; margin-bottom: 56px; max-width: 1400px;
  margin-left: auto; margin-right: auto;
}
.footer-logo {
  height: 72px; width: auto;
  mix-blend-mode: screen;
  margin-bottom: 14px; display: block;
}
.footer-sub {
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 28px;
}
.footer-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.8; }
.footer-col-h {
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 22px;
}
.footer-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-list a { font-size: 13px; color: var(--text-muted); transition: color var(--t); }
.footer-list a:hover { color: var(--lime); }
.footer-bottom {
  border-top: 1px solid rgba(127,228,0,0.08); padding-top: 30px;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1400px; margin-left: auto; margin-right: auto; flex-wrap: wrap; gap: 16px;
}
.footer-copy {
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.15em; color: var(--text-muted); text-transform: uppercase;
}
.footer-socials { display: flex; gap: 24px; }
.footer-socials a {
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-muted); transition: color var(--t);
}
.footer-socials a:hover { color: var(--lime); }

/* ============================================
   SCROLL REVEAL (pre-animation state)
   GSAP sets these via gsap.set() — CSS never hides anything
   so the page is always visible even before JS runs
============================================ */
.sr, .sr-left, .sr-right { will-change: opacity, transform; }

/* ============================================
   PAGE HERO (inner pages)
============================================ */
.page-hero {
  position: relative; min-height: 55vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 48px 80px; padding-top: var(--nav-height); overflow: hidden;
  border-bottom: 1px solid rgba(127,228,0,0.08);
}
.page-hero-bg {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(127,228,0,0.01) 2px, rgba(127,228,0,0.01) 4px
  );
}
.page-hero-label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--lime);
  margin-bottom: 20px; display: flex; align-items: center; gap: 12px;
}
.page-hero-label::before { content: '//'; opacity: 0.4; }
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(60px, 10vw, 150px);
  line-height: 0.88; text-transform: uppercase; letter-spacing: -0.01em;
}
.page-hero-title em { font-style: normal; color: var(--lime); }
.page-hero-sub {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted); margin-top: 28px; max-width: 600px;
}

/* ============================================
   PORTFOLIO PAGE
============================================ */
.portfolio-filters {
  display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 48px;
}
.filter-btn {
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 9px 20px; background: transparent;
  color: var(--text-muted); border: 1px solid rgba(127,228,0,0.12);
  cursor: pointer; transition: all var(--t);
}
.filter-btn:hover { color: var(--lime); border-color: var(--lime); }
.filter-btn.active { background: var(--lime); color: var(--black); border-color: var(--lime); }
.portfolio-main-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.pf-main-card {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  cursor: pointer; background: var(--gray);
  transition: opacity 0.4s;
}
/* Featured grid on the home page — 16:9 so YouTube thumbnails show uncropped */
.featured-grid .pf-main-card { aspect-ratio: 16/9; }
.pf-main-card.hidden { opacity: 0; pointer-events: none; display: none; }
.pf-main-card .pf-card-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: brightness(0.55);
  transition: transform 0.7s var(--ease-out), filter 0.4s;
}
.pf-main-card:hover .pf-card-bg { transform: scale(1.06); filter: brightness(0.3); }
.pf-main-card .pf-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 55%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 28px;
}
.pf-num {
  position: absolute; top: 20px; left: 24px; z-index: 3;
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.2em; color: rgba(127,228,0,0.7);
}
/* Play affordance — signals cards are clickable videos */
.pf-play {
  position: absolute; top: 50%; left: 50%; z-index: 3;
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(127,228,0,0.92);
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0; transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
  pointer-events: none;
}
.pf-play::before {
  content: ''; position: absolute; top: 50%; left: 52%;
  transform: translate(-50%, -50%);
  border-style: solid; border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #000;
}
.pf-main-card:hover .pf-play,
.pf-main-card:focus-visible .pf-play {
  opacity: 1; transform: translate(-50%, -50%) scale(1);
}
.pf-main-card:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* ============================================
   AI PRODUCTION PAGE
============================================ */
.terminal-hero {
  background: var(--gray-dark);
  border: 1px solid rgba(127,228,0,0.12);
  padding: 48px; margin-bottom: 80px; position: relative;
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 32px; padding-bottom: 20px;
  border-bottom: 1px solid rgba(127,228,0,0.1);
}
.t-dot { width: 12px; height: 12px; border-radius: 50%; }
.t-dot.red { background: #FF5F57; }
.t-dot.yellow { background: #FFBD2E; }
.t-dot.green { background: #28C840; }
.terminal-title {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-muted); margin-left: auto;
}
.terminal-body { font-family: var(--font-mono); font-size: 13px; line-height: 2; }
.t-prompt { color: var(--lime); }
.t-cmd { color: var(--white); }
.t-comment { color: var(--text-muted); }
.t-output { color: rgba(255,229,0,0.8); }
.t-cursor {
  display: inline-block; width: 10px; height: 16px;
  background: var(--lime); vertical-align: text-bottom;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.ai-process {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; border: 1px solid rgba(127,228,0,0.08);
}
.ai-step {
  padding: 48px 36px; border-right: 1px solid rgba(127,228,0,0.08);
  position: relative;
}
.ai-step:last-child { border-right: none; }
.ai-step-num {
  font-family: var(--font-display); font-size: 72px;
  color: rgba(127,228,0,0.1); line-height: 1; margin-bottom: 24px; display: block;
}
.ai-step-h {
  font-family: var(--font-display); font-size: 22px;
  text-transform: uppercase; color: var(--white); margin-bottom: 12px; letter-spacing: 0.02em;
}
.ai-step-p { font-size: 12.5px; color: var(--text-muted); line-height: 1.75; }
.ai-step-tag {
  display: inline-block; margin-top: 20px;
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 5px 12px; border: 1px solid rgba(127,228,0,0.2); color: var(--lime);
}

.ai-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(127,228,0,0.06); }
.ai-feat {
  background: var(--black); padding: 40px 36px;
  border-bottom: 1px solid rgba(127,228,0,0.06);
}
.ai-feat-icon { width: 36px; height: 36px; color: var(--lime); margin-bottom: 20px; }
.ai-feat-h {
  font-family: var(--font-display); font-size: 21px;
  text-transform: uppercase; color: var(--white);
  margin-bottom: 10px; letter-spacing: 0.02em;
}
.ai-feat-p { font-size: 12.5px; color: var(--text-muted); line-height: 1.75; }

/* ============================================
   CONTACT PAGE
============================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-info-block { margin-bottom: 48px; }
.contact-label {
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--lime);
  margin-bottom: 12px; display: block;
}
.contact-value {
  font-family: var(--font-display); font-size: 32px;
  text-transform: uppercase; color: var(--white); line-height: 1;
  transition: color var(--t);
}
.contact-value:hover { color: var(--lime); }
.contact-value-sm { font-size: 20px; }
.contact-card {
  display: flex; align-items: center; gap: 24px;
  padding: 28px 32px; border: 1px solid rgba(127,228,0,0.1);
  text-decoration: none; margin-bottom: 2px;
  transition: background var(--t), border-color var(--t);
  cursor: pointer;
}
.contact-card:hover { background: rgba(127,228,0,0.05); border-color: rgba(127,228,0,0.3); }
.contact-card-icon {
  width: 52px; height: 52px; border: 1px solid rgba(127,228,0,0.2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--lime); transition: background var(--t), border-color var(--t);
}
.contact-card:hover .contact-card-icon { background: var(--lime); color: var(--black); border-color: var(--lime); }
.contact-card-icon svg { width: 22px; height: 22px; }
.contact-card-label {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px;
}
.contact-card-val {
  font-family: var(--font-display); font-size: 22px;
  text-transform: uppercase; color: var(--white); letter-spacing: 0.02em;
}
.contact-map {
  background: var(--gray); aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(127,228,0,0.08); position: relative; overflow: hidden;
}
.contact-map-label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); text-align: center;
}

/* ============================================
   SOCIALS PAGE
============================================ */
.social-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.social-card {
  position: relative; overflow: hidden; cursor: pointer;
  background: var(--gray); padding: 60px 48px;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 280px; text-decoration: none;
  transition: background var(--t);
  border: 1px solid rgba(127,228,0,0.06);
}
.social-card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--lime); transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease-in-out); z-index: 0;
}
.social-card:hover::before { transform: scaleX(1); }
.social-card > * { position: relative; z-index: 1; }
.social-platform {
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--lime); transition: color var(--t);
}
.social-card:hover .social-platform { color: rgba(0,0,0,0.5); }
.social-handle {
  font-family: var(--font-display); font-size: 48px;
  text-transform: uppercase; color: var(--white); line-height: 1; letter-spacing: 0.02em;
  transition: color var(--t);
}
.social-card:hover .social-handle { color: var(--black); }
.social-icon {
  width: 48px; height: 48px; color: var(--lime); align-self: flex-end;
  transition: color var(--t);
}
.social-card:hover .social-icon { color: var(--black); }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1200px) {
  .serve-grid { grid-template-columns: repeat(3, 1fr); }
  .ai-process { grid-template-columns: repeat(2, 1fr); }
  .ai-features { grid-template-columns: repeat(2, 1fr); }
  .portfolio-main-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .serve-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band-inner { flex-direction: column; text-align: center; align-items: center; }
  .portfolio-preview { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 60px; }
  .social-cards { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --nav-height: 64px; }
  .section { padding: 80px 24px; }
  .hero { padding: 0 24px 110px; padding-top: var(--nav-height); }
  .nav { padding: 0 24px; }
  .page-hero { padding: 0 24px 60px; padding-top: var(--nav-height); }
  .cta-band { padding: 80px 24px; }
  .footer { padding: 60px 24px 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .serve-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .ai-process { grid-template-columns: 1fr; }
  .ai-features { grid-template-columns: 1fr; }
  .portfolio-main-grid { grid-template-columns: 1fr; }
  .terminal-hero { padding: 28px 24px; }
  .social-handle { font-size: 36px; }
  /* Skip the heavy video download on mobile — poster background stands in */
  .hero-video { display: none; }
}
@media (max-width: 480px) {
  .serve-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .portfolio-filters { gap: 4px; }
}

/* ============================================
   REDUCED MOTION
============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .ticker-track { animation: none; }
  .noise { animation: none; }
  .hero-glow { animation: none; }
  /* Respect motion preference — hide moving video, poster remains */
  .hero-video { display: none; }
}
