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

:root {
  --bg: #050505;
  --text: #eaeaea;
  --text-muted: #686868;
  --accent: #f04e4e;
  --accent-dim: rgba(240, 78, 78, 0.1);
  --border: #141414;
  --font-display: 'Space Grotesk', sans-serif;
  --font-serif: 'Instrument Serif', serif;
  --led-hue: 0;
}

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

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

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { background: none; border: none; color: inherit; font: inherit; cursor: none; }

/* Grain Overlay */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* LED Animated Background */
.led-bg {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 20% 30%, hsla(0, 80%, 50%, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 60%, hsla(220, 80%, 50%, 0.03) 0%, transparent 55%),
    radial-gradient(ellipse 50% 30% at 50% 80%, hsla(320, 80%, 50%, 0.03) 0%, transparent 50%);
  animation: ledShift 8s ease-in-out infinite alternate;
}

@keyframes ledShift {
  0% {
    background:
      radial-gradient(ellipse 70% 50% at 20% 30%, hsla(0, 80%, 50%, 0.05) 0%, transparent 60%),
      radial-gradient(ellipse 60% 40% at 80% 60%, hsla(220, 80%, 50%, 0.03) 0%, transparent 55%),
      radial-gradient(ellipse 50% 30% at 50% 80%, hsla(320, 80%, 50%, 0.02) 0%, transparent 50%);
  }
  25% {
    background:
      radial-gradient(ellipse 70% 50% at 30% 40%, hsla(40, 80%, 50%, 0.04) 0%, transparent 60%),
      radial-gradient(ellipse 60% 40% at 70% 50%, hsla(280, 80%, 50%, 0.03) 0%, transparent 55%),
      radial-gradient(ellipse 50% 30% at 40% 80%, hsla(180, 80%, 50%, 0.03) 0%, transparent 50%);
  }
  50% {
    background:
      radial-gradient(ellipse 70% 50% at 70% 30%, hsla(200, 80%, 50%, 0.05) 0%, transparent 60%),
      radial-gradient(ellipse 60% 40% at 30% 70%, hsla(340, 80%, 50%, 0.03) 0%, transparent 55%),
      radial-gradient(ellipse 50% 30% at 60% 20%, hsla(80, 80%, 50%, 0.02) 0%, transparent 50%);
  }
  75% {
    background:
      radial-gradient(ellipse 70% 50% at 50% 50%, hsla(300, 80%, 50%, 0.04) 0%, transparent 60%),
      radial-gradient(ellipse 60% 40% at 60% 30%, hsla(60, 80%, 50%, 0.03) 0%, transparent 55%),
      radial-gradient(ellipse 50% 30% at 30% 60%, hsla(120, 80%, 50%, 0.03) 0%, transparent 50%);
  }
  100% {
    background:
      radial-gradient(ellipse 70% 50% at 40% 60%, hsla(0, 80%, 50%, 0.05) 0%, transparent 60%),
      radial-gradient(ellipse 60% 40% at 60% 40%, hsla(240, 80%, 50%, 0.03) 0%, transparent 55%),
      radial-gradient(ellipse 50% 30% at 50% 20%, hsla(0, 80%, 50%, 0.02) 0%, transparent 50%);
  }
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 1000;
  background: linear-gradient(90deg, var(--accent), #ff6b6b, #ffa500, var(--accent));
  background-size: 200% 100%;
  transform-origin: left;
  transform: scaleX(0);
  animation: progressGlow 3s linear infinite;
  pointer-events: none;
}

@keyframes progressGlow {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* Cursor */
.cursor {
  position: fixed; width: 8px; height: 8px;
  background: var(--accent); border-radius: 50%;
  pointer-events: none; z-index: 10000;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s, background 0.4s;
}

.cursor-trail {
  position: fixed; width: 32px; height: 32px;
  border: 1px solid rgba(240, 78, 78, 0.2); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s, border-color 0.4s;
}

.cursor.hover { width: 0; height: 0; }
.cursor-trail.hover { width: 56px; height: 56px; border-color: var(--accent); }

/* Header */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0;
  transition: background 0.5s, backdrop-filter 0.5s, border-color 0.5s;
  background: transparent; border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--border);
}

.nav {
  max-width: 1100px; margin: 0 auto; padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center;
}

.nav-logo { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; transition: color 0.3s; }
.nav-logo:hover { color: var(--accent); }

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

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

.nav-links a {
  font-size: 0.75rem; font-weight: 500; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.14em;
  transition: color 0.3s; position: relative; padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute; bottom: 0; left: 0; width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Hero */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 120px 24px 80px; position: relative; overflow: hidden;
  perspective: 1000px;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(240, 78, 78, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 30% 60%, rgba(240, 78, 78, 0.025) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  align-items: center; gap: 60px;
  max-width: 1100px; width: 100%;
  position: relative; z-index: 2;
  transform-style: preserve-3d;
}

.hero-tagline {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--accent); margin-bottom: 20px; font-weight: 500;
}

.hero-title {
  font-size: 5rem; font-weight: 700; line-height: 1;
  letter-spacing: -0.04em; margin-bottom: 16px;
}

.hero-title em {
  font-style: italic; color: var(--accent);
  text-decoration: underline; text-decoration-thickness: 2px;
  text-decoration-color: var(--accent-dim); text-underline-offset: 10px;
}

.hero-subtitle {
  font-size: 1rem; color: var(--text-muted); margin-bottom: 44px; font-weight: 400;
}

.hero-links { display: flex; gap: 28px; }

.hero-link {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 500; color: var(--text-muted);
  position: relative; padding: 6px 0;
}

.hero-link::before {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-link:hover::before { transform: scaleX(1); transform-origin: left; }
.hero-link:hover span { color: var(--text); }
.hero-link span { transition: color 0.3s; }

.brand-icon { width: 16px; height: 16px; flex-shrink: 0; }
.brand-link svg { transition: transform 0.3s; }
.brand-link:hover svg { transform: scale(1.15); }

/* Hero Image */
.hero-visual { display: flex; justify-content: center; }

.hero-image-frame {
  position: relative; width: 100%; max-width: 380px;
  aspect-ratio: 3/4; overflow: hidden; border-radius: 3px;
}

.hero-image-parallax { width: 100%; height: 100%; will-change: transform; }

.hero-image-parallax img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.5) contrast(1.15);
  transition: filter 1s;
  transform: scale(1.08);
}

.hero-image-frame:hover .hero-image-parallax img {
  filter: grayscale(0) contrast(1);
}

.hero-image-glow {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(240, 78, 78, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-image-border {
  position: absolute; inset: -1px;
  border: 1px solid var(--border); border-radius: 3px;
  pointer-events: none;
}

/* Scroll Hint */
.scroll-hint {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}

.scroll-hint span {
  font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.25em;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.5); }
}

/* Section Header */
.section-header { display: flex; align-items: baseline; gap: 16px; margin-bottom: 60px; }
.section-number { font-size: 0.65rem; font-weight: 600; color: var(--accent); letter-spacing: 0.12em; opacity: 0.4; }
.section-title { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }

/* Work */
.work { padding: 120px 0; border-top: 1px solid var(--border); position: relative; }

/* Frozen Scroll - CSS view-timeline driven */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes revealLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes revealRight {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}

[data-reveal] {
  view-timeline-name: --r; view-timeline-axis: block;
  animation-timeline: view(); animation-fill-mode: both;
  animation-name: revealUp; animation-duration: 1ms;
}
[data-reveal="1"] { animation-range: entry -10% entry 40%; }
[data-reveal="2"] { animation-range: entry -5% entry 50%; }
[data-reveal="3"] { animation-range: entry 0% entry 60%; }
[data-reveal="4"] { animation-range: entry 5% entry 70%; }

.project {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}

.project-visual {
  position: relative;
  view-timeline-name: --pv; animation-timeline: view();
  animation-range: entry 0% entry 100%;
  animation-name: revealLeft; animation-fill-mode: both; animation-duration: 1ms;
}

.project-info {
  view-timeline-name: --pi; animation-timeline: view();
  animation-range: entry 0% entry 100%;
  animation-name: revealRight; animation-fill-mode: both; animation-duration: 1ms;
}

/* Poster with Scan Effect */
.project-image-frame {
  position: relative; overflow: hidden; border-radius: 3px;
  border: 1px solid var(--border);
}

.project-image-frame img {
  width: 100%; display: block;
  transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Scan line effect - loops over the poster */
.scan-line {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(240, 78, 78, 0.08) 50%,
    transparent 100%
  );
  background-size: 100% 8px;
  animation: scanMove 3s linear infinite;
  opacity: 0.6;
}

@keyframes scanMove {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

/* Subtle pulsing overlay for poster */
.scan-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(
    135deg,
    transparent 40%,
    rgba(240, 78, 78, 0.03) 50%,
    transparent 60%
  );
  background-size: 200% 200%;
  animation: scanPulse 4s ease-in-out infinite;
}

@keyframes scanPulse {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}

.project-image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(240, 78, 78, 0.06) 0%, transparent 60%);
  pointer-events: none; z-index: 3;
}

.project-year-badge {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  padding: 4px 12px; font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.12em; color: var(--accent);
  border: 1px solid var(--accent-dim); border-radius: 2px;
  backdrop-filter: blur(12px); background: rgba(5, 5, 5, 0.6);
}

.project-badge-emblems {
  position: absolute; bottom: 16px; left: 16px; z-index: 5;
  display: flex; gap: 8px;
}

.badge-16, .badge-hd {
  font-size: 0.55rem; font-weight: 700; letter-spacing: 0.05em;
  padding: 2px 8px; border-radius: 2px;
}

.badge-16 { color: #ffa500; border: 1px solid rgba(255, 165, 0, 0.3); background: rgba(0,0,0,0.4); }
.badge-hd { color: #aaa; border: 1px solid rgba(255,255,255,0.15); background: rgba(0,0,0,0.4); }

/* Project Info */
.project-title-block { margin-bottom: 16px; }

.project-director {
  display: block; font-size: 0.65rem; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--text-muted); margin-bottom: 4px;
}

.project-title {
  font-size: 2.8rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1;
}

.project-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }

.project-meta span {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-muted); padding: 3px 10px;
  border: 1px solid var(--border); border-radius: 2px;
}

.project-crew {
  display: flex; gap: 24px; margin-bottom: 16px;
}

.crew-item { display: flex; flex-direction: column; gap: 2px; }
.crew-label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); opacity: 0.6; }
.crew-name { font-size: 0.8rem; font-weight: 500; }

.project-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 20px; }

.star { font-size: 0.9rem; color: var(--text-muted); opacity: 0.2; }
.star.active { color: #ffa500; opacity: 1; }
.rating-text { font-size: 0.7rem; color: var(--text-muted); margin-left: 6px; }

.project-logline { font-size: 1rem; margin-bottom: 12px; line-height: 1.7; }
.project-style { font-size: 0.8rem; color: var(--text-muted); font-style: italic; margin-bottom: 28px; }

.project-actions { display: flex; gap: 12px; }

.project-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--accent);
  padding: 14px 28px; border: 1px solid var(--accent-dim);
  border-radius: 2px; position: relative; overflow: hidden;
  transition: all 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-link::before {
  content: ''; position: absolute; inset: 0;
  background: var(--accent);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: -1;
}

.project-link:hover { color: var(--bg); border-color: var(--accent); }
.project-link:hover::before { transform: scaleY(1); }

.project-link.secondary {
  color: var(--text-muted); border-color: var(--border);
}

.project-link.secondary::before { background: rgba(255,255,255,0.05); }
.project-link.secondary:hover { color: var(--text); border-color: var(--text-muted); }

.project-link svg { width: 14px; height: 14px; transition: transform 0.3s; }
.project-link:hover svg { transform: scale(1.2); }

/* About */
.about { padding: 120px 0; border-top: 1px solid var(--border); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: 80px; }

.about-text {
  font-size: 0.95rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.9;
}
.about-text:last-of-type { margin-bottom: 0; }

.about-block { margin-bottom: 36px; }
.about-block:last-child { margin-bottom: 0; }

.about-block h4 {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--accent); margin-bottom: 16px; font-weight: 600;
}

.about-block ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.about-block li {
  font-size: 0.85rem; color: var(--text-muted); padding-left: 20px;
  position: relative; line-height: 1.7;
}

.about-block li::before {
  content: '→'; position: absolute; left: 0; color: var(--accent); font-size: 0.7rem;
}

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.pillar {
  padding: 32px; border: 1px solid var(--border); border-radius: 3px;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative; overflow: hidden;
}

.pillar::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pillar:hover { border-color: var(--accent-dim); background: rgba(240, 78, 78, 0.02); transform: translateY(-4px); }
.pillar:hover::before { transform: scaleX(1); }

.pillar-icon { font-size: 1.3rem; color: var(--accent); display: block; margin-bottom: 16px; opacity: 0.5; }
.pillar h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; }
.pillar p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.7; }

/* Contact */
.contact { padding: 120px 0; border-top: 1px solid var(--border); }
.contact-content { text-align: center; }
.contact-text { color: var(--text-muted); margin-bottom: 32px; font-size: 1rem; }

.contact-email {
  display: inline-block; font-size: 2.4rem; font-weight: 600;
  letter-spacing: -0.02em; transition: color 0.3s; position: relative; margin-bottom: 48px;
}

.contact-email::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-email:hover { color: var(--accent); }
.contact-email:hover::after { transform: scaleX(1); }

.contact-social { display: flex; justify-content: center; gap: 12px; }

.contact-social a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--text-muted);
  padding: 10px 20px; border: 1px solid var(--border); border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-social a:hover { color: var(--accent); border-color: var(--accent-dim); background: rgba(240, 78, 78, 0.02); }

/* Footer */
.footer { padding: 32px 0; border-top: 1px solid var(--border); }
.footer p { font-size: 0.65rem; color: var(--text-muted); letter-spacing: 0.06em; }

/* Trailer Modal */
.trailer-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.trailer-overlay.active { opacity: 1; pointer-events: all; }

.trailer-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
}

.trailer-container {
  position: relative; width: 80vw; max-width: 960px;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.trailer-overlay.active .trailer-container { transform: scale(1) translateY(0); }

.trailer-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }

.trailer-top-left { display: flex; flex-direction: column; gap: 4px; }

.trailer-label {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--accent); font-weight: 600;
}

.trailer-film-name { font-size: 0.8rem; color: var(--text-muted); }

.trailer-close {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: color 0.3s, transform 0.3s; border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.trailer-close:hover { color: var(--text); transform: rotate(90deg); background: rgba(255,255,255,0.08); }

.trailer-player {
  width: 100%; aspect-ratio: 16/9;
  background: #000; border-radius: 4px; overflow: hidden;
  border: 1px solid var(--border);
}

.trailer-player video {
  width: 100%; height: 100%; object-fit: contain;
  display: block;
}

.trailer-bottom {
  display: flex; justify-content: space-between; margin-top: 16px;
}

.trailer-dir { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; }
.trailer-year { font-size: 0.7rem; color: var(--text-muted); }

/* Camera Motion Container - applied via JS */
.camera-move {
  transition: transform 0.1s ease-out;
}

/* Contact Button */
.contact-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.85rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--bg);
  padding: 16px 36px; background: var(--accent);
  border: none; border-radius: 3px; cursor: none;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  margin-bottom: 48px; position: relative; overflow: hidden;
}

.contact-btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.contact-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(240,78,78,0.3); }
.contact-btn:hover::before { transform: translateX(100%); }

/* Contact Modal */
.contact-overlay {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-overlay.active { opacity: 1; pointer-events: all; }

.contact-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.88); backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
}

.contact-modal {
  position: relative; width: 90vw; max-width: 820px; max-height: 85vh;
  background: rgba(10,10,10,0.6); border: 1px solid var(--border);
  border-radius: 6px; overflow: hidden;
  transform: scale(0.92) translateY(30px);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-overlay.active .contact-modal { transform: scale(1) translateY(0); }

.contact-modal-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 28px; border-bottom: 1px solid var(--border);
}

.contact-modal-top-left { display: flex; flex-direction: column; gap: 2px; }

.contact-modal-label {
  font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--accent); font-weight: 600;
}

.contact-modal-name { font-size: 0.8rem; color: var(--text-muted); }

.contact-modal-close {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all 0.3s; border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.contact-modal-close:hover { color: var(--text); transform: rotate(90deg); background: rgba(255,255,255,0.08); }

.contact-modal-body {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 0;
  overflow-y: auto; max-height: calc(85vh - 64px);
}

.contact-photo-col {
  padding: 32px 28px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px;
  border-right: 1px solid var(--border);
  background: rgba(240,78,78,0.02);
}

.contact-photo-frame {
  position: relative; width: 200px; height: 200px;
  border-radius: 50%; overflow: hidden;
  border: 2px solid var(--accent-dim);
}

.contact-photo-frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.3);
}

/* Radar/Scan effect on photo */
.contact-photo-scan {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(240,78,78,0.15) 45deg,
    rgba(240,78,78,0.3) 90deg,
    rgba(240,78,78,0.15) 135deg,
    transparent 180deg,
    transparent 360deg
  );
  animation: radarScan 3s linear infinite;
  pointer-events: none;
}

@keyframes radarScan {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.contact-photo-frame::after {
  content: ''; position: absolute; inset: 4px; border-radius: 50%;
  border: 1px solid rgba(240,78,78,0.1);
  animation: radarPing 3s ease-out infinite;
}

@keyframes radarPing {
  0% { transform: scale(0.95); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0.6; }
}

.contact-photo-info { text-align: center; }

.contact-availability {
  display: block; font-size: 0.75rem; color: #4ade80; margin-bottom: 4px;
  position: relative; padding-left: 14px;
}

.contact-availability::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; background: #4ade80; border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74,222,128,0.5); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(74,222,128,0); }
}

.contact-response { font-size: 0.7rem; color: var(--text-muted); }

.contact-form-col {
  padding: 32px 28px; display: flex; flex-direction: column; justify-content: center;
}

.contact-form { display: flex; flex-direction: column; gap: 18px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-muted); font-weight: 600;
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 3px; padding: 12px 14px; font-size: 0.9rem;
  font-family: var(--font-display); color: var(--text);
  outline: none; transition: border-color 0.3s, background 0.3s;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-dim); background: rgba(240,78,78,0.03);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); opacity: 0.4; }

.form-group textarea { resize: vertical; min-height: 80px; }

.input-wrap { position: relative; }

.email-status {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 0.6rem; font-weight: 600;
}

.email-status.valid { color: #4ade80; }
.email-status.invalid { color: var(--accent); }
.email-status.checking { color: var(--text-muted); }

.field-hint {
  font-size: 0.65rem; min-height: 16px; transition: color 0.3s;
}

.field-hint.valid { color: #4ade80; }
.field-hint.invalid { color: var(--accent); }

/* Submit Button with states */
.form-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--bg); background: var(--accent); border: none;
  border-radius: 3px; cursor: none; margin-top: 4px;
  transition: all 0.3s; position: relative; overflow: hidden;
  min-height: 48px;
}

.form-submit:hover { transform: translateY(-1px); box-shadow: 0 4px 24px rgba(240,78,78,0.25); }

.form-submit.loading { pointer-events: none; opacity: 0.8; }
.form-submit.sent { background: #4ade80; pointer-events: none; }

.submit-loader { display: none; }
.form-submit.loading .submit-text { display: none; }
.form-submit.loading .submit-loader { display: inline-flex; }

.submit-check { display: none; }
.form-submit.sent .submit-text { display: none; }
.form-submit.sent .submit-check { display: inline-flex; }

.form-status {
  font-size: 0.75rem; min-height: 20px; text-align: center;
  transition: color 0.3s;
}

.form-status.error { color: var(--accent); }
.form-status.success { color: #4ade80; }

/* Responsive Contact Modal */
@media (max-width: 700px) {
  .contact-modal-body { grid-template-columns: 1fr; }
  .contact-photo-col { border-right: none; border-bottom: 1px solid var(--border); padding: 24px; }
  .contact-photo-frame { width: 120px; height: 120px; }
  .contact-form-col { padding: 24px; }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-title { font-size: 3rem; }
  .hero-links { justify-content: center; flex-wrap: wrap; }
  .hero-visual { order: -1; }
  .hero-image-frame { max-width: 260px; }
  .hero-tagline { font-size: 0.6rem; }
  .project { grid-template-columns: 1fr; gap: 32px; }
  .project-title { font-size: 2rem; }
  .project-crew { flex-wrap: wrap; gap: 16px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .pillars { grid-template-columns: 1fr; }
  .contact-email { font-size: 1.4rem; word-break: break-all; }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 0.65rem; }
  .section-title { font-size: 1.6rem; }
  .trailer-container { width: 92vw; }
}

@media (max-width: 500px) {
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 0.85rem; }
  .hero-links { flex-direction: column; align-items: center; gap: 12px; }
  .section-title { font-size: 1.3rem; }
  .project-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal], .project-visual, .project-info {
    animation: none; opacity: 1; transform: none;
  }
  .led-bg { animation: none; }
  .scan-line { animation: none; display: none; }
}