/* =========================================================
   87ELEVEN ·ACTION DESIGN
   Theme: cinematic dark, brutalist typography, blood-red accent
   ========================================================= */

:root {
  --bg: #050505;
  --bg-2: #0c0c0c;
  --bg-3: #131313;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #e8e6e3;
  --text-dim: #8a8682;
  --text-faint: #555150;
  --accent: #c8102e;
  --accent-2: #ff1f3d;
  --accent-soft: rgba(200, 16, 46, 0.12);
  --white: #ffffff;
  --easing: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1320px;
}

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

html {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  border: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

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

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

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a2a; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* (banner removed — disclaimer moved to footer, DEMO badge sits in nav logo) */

/* =========================================================
   LOADER
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: opacity 0.6s var(--easing), visibility 0.6s var(--easing);
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-mark {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: 0.1em;
  color: var(--white);
  display: flex;
  margin-bottom: 2rem;
}
.loader-mark .dot { color: var(--accent); margin: 0 0.05em; }
.loader-bar {
  width: 200px; height: 2px;
  background: var(--line);
  overflow: hidden;
}
.loader-bar span {
  display: block; height: 100%; width: 0%;
  background: var(--accent);
  animation: load 1.4s var(--easing) forwards;
}
@keyframes load {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem clamp(1.5rem, 4vw, 3rem);
  transition: background 0.4s var(--easing), backdrop-filter 0.4s var(--easing), border-color 0.4s var(--easing);
  border-bottom: 1px solid transparent;
}
.nav-demo-badge {
  margin-left: 0.7rem;
  display: inline-block;
  padding: 0.18rem 0.5rem;
  background: var(--accent);
  color: var(--white);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  vertical-align: 0.35em;
  border-radius: 2px;
  cursor: help;
  user-select: none;
}
.nav.scrolled {
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  color: var(--white);
  display: flex; align-items: center;
}
.logo-num { color: var(--white); }
.logo-slash { color: var(--accent); margin: 0 0.15em; transform: skew(-15deg); display: inline-block; }
.nav-links {
  display: flex; gap: 2.25rem;
}
.nav-links a {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  font-weight: 500;
  position: relative;
  transition: color 0.3s var(--easing);
}
.nav-links a::after {
  content: ''; position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--easing);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none; border: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--white);
  transition: transform 0.3s var(--easing), opacity 0.3s var(--easing);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: 0; right: 0; bottom: 0;
    background: #050505;
    flex-direction: column;
    align-items: center; justify-content: center;
    gap: 2.5rem;
    transform: translateY(-110%);
    transition: transform 0.5s var(--easing);
    z-index: 95;
    overflow-y: auto;
    padding: 5rem 1.5rem;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 1.2rem; }
  .nav-toggle { display: flex; z-index: 115; }
  .nav-demo-badge { font-size: 0.55rem; padding: 0.15rem 0.4rem; margin-left: 0.5rem; }
}
body.nav-open { overflow: hidden; }

/* =========================================================
   CONTAINER + UTILITIES
   ========================================================= */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.section {
  padding: clamp(5rem, 12vh, 9rem) 0;
  position: relative;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.eyebrow span {
  width: 30px; height: 1px; background: var(--accent);
}

.h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 6vw, 5rem);
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin: 0 0 1.5rem;
  color: var(--white);
  text-transform: uppercase;
  text-wrap: balance;
}
.hero-title { text-wrap: balance; }
.cta-title { text-wrap: balance; }
.accent { color: var(--accent); }

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.section-head { margin-bottom: 4rem; max-width: 900px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.split-left.sticky { position: sticky; top: 120px; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-left.sticky { position: static; }
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 1.1rem 1.8rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s var(--easing);
  position: relative;
  overflow: hidden;
}
.btn span { transition: transform 0.3s var(--easing); display: inline-block; }
.btn:hover span { transform: translateX(4px); }
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.lg { padding: 1.4rem 2.4rem; font-size: 0.9rem; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 8rem clamp(1.5rem, 4vw, 3rem) 10rem;
  overflow: hidden;
  isolation: isolate;
}
.hero-image {
  position: absolute; inset: 0; z-index: -4;
  background-size: cover;
  background-position: center;
  filter: contrast(1.1) brightness(0.9) saturate(1.1);
  opacity: 1;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(200, 16, 46, 0.18), transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(80, 0, 10, 0.22), transparent 55%),
    linear-gradient(180deg, rgba(5,5,5,0.18) 0%, rgba(10,7,7,0.55) 100%);
}
.hero-grid { opacity: 0.35; }
.hero-grid {
  position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  opacity: 0.6;
}
.hero-noise {
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.hero-inner {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--text);
  margin-bottom: 2rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 11vw, 11rem);
  line-height: 0.88;
  letter-spacing: -0.005em;
  margin: 0 0 2rem;
  color: var(--white);
  text-transform: uppercase;
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title em {
  font-style: italic;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  letter-spacing: -0.02em;
  font-size: 0.78em;
  color: var(--text-dim);
  vertical-align: 0.05em;
}
.hero-title .accent {
  position: relative;
  display: inline-block;
}

.hero-sub {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  max-width: 580px;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex; gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.hero-marquee {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.marquee-track {
  display: flex; gap: 2.5rem;
  align-items: center;
  white-space: nowrap;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  animation: scroll 40s linear infinite;
  width: max-content;
}
.marquee-track .dot { color: var(--accent); }
.marquee-item {
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  padding: 0.4rem 0.6rem;
  transition: color 0.2s var(--easing), background 0.2s var(--easing), text-shadow 0.2s var(--easing);
}
.marquee-item:hover {
  color: var(--accent);
  background: rgba(200, 16, 46, 0.12);
  text-shadow: 0 0 18px rgba(200, 16, 46, 0.55);
}
.marquee-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.hero-marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.hero-scroll {
  position: absolute;
  bottom: 5rem; right: 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--text-dim);
  display: flex; align-items: center; gap: 0.5rem;
}
.hero-scroll span { animation: bounce 2s infinite; display: inline-block; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

@media (max-width: 768px) {
  .hero { padding-top: 7rem; padding-bottom: 9rem; }
  .hero-scroll { display: none; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-cta { width: 100%; }
  .marquee-track { font-size: 1.1rem; gap: 1.5rem; }
}
@media (max-width: 480px) {
  .hero { padding-bottom: 10rem; }
  .hero-tag { font-size: 0.65rem; padding: 0.4rem 0.75rem; }
  .hero-sub { font-size: 0.95rem; }
}

/* =========================================================
   VISION
   ========================================================= */
.vision { background: var(--bg-2); }

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}
.stat {
  display: flex; flex-direction: column; gap: 0.5rem;
}
.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  color: var(--white);
}
.stat-num::after { content: '+'; color: var(--accent); }
.stat-num.plain::after { content: ''; }
.stat:last-child .stat-num::after { content: ''; }
.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-dim);
}

/* =========================================================
   SERVICES
   ========================================================= */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
@media (max-width: 1024px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .service-grid { grid-template-columns: 1fr; } }

.service-card {
  padding: 2.5rem;
  border: 1px solid var(--line);
  margin: -1px;
  background: var(--bg);
  transition: background 0.3s var(--easing), transform 0.4s var(--easing);
  position: relative;
}
.service-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--accent-soft) 100%);
  opacity: 0;
  transition: opacity 0.4s var(--easing);
  pointer-events: none;
}
.service-card:hover { background: var(--bg-2); }
.service-card:hover::before { opacity: 1; }

.service-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}
.service-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
  color: var(--white);
  text-transform: uppercase;
}
.service-card p {
  color: var(--text-dim);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}
.service-card ul {
  list-style: none;
  padding: 0; margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}
.service-card ul li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text);
  letter-spacing: 0.05em;
  padding: 0.4rem 0;
  display: flex; align-items: center; gap: 0.75rem;
}
.service-card ul li::before {
  content: '/';
  color: var(--accent);
  font-weight: 700;
}

/* =========================================================
   WORK
   ========================================================= */
.work { background: var(--bg-2); }

/* FILMOGRAPHY GRID */
.film-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (max-width: 1280px) { .film-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 1024px) { .film-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px)  { .film-grid { grid-template-columns: repeat(3, 1fr); gap: 0.85rem; } }
@media (max-width: 480px)  { .film-grid { grid-template-columns: repeat(2, 1fr); } }

.film-tile {
  display: flex; flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.3s var(--easing), transform 0.4s var(--easing);
  position: relative;
}
.film-tile:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.film-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  position: relative;
  background: #0a0a0a;
}
.film-poster img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.4) brightness(0.92);
  transition: filter 0.4s var(--easing), transform 0.6s var(--easing);
}
.film-tile:hover .film-poster img {
  filter: grayscale(0) brightness(1);
  transform: scale(1.04);
}
.film-poster::after {
  content: '▶';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: var(--white);
  font-size: 1.1rem;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s var(--easing), transform 0.3s var(--easing);
  box-shadow: 0 0 0 8px rgba(200, 16, 46, 0.18);
  pointer-events: none;
}
.film-tile:hover .film-poster::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.film-info {
  padding: 1rem 1rem 1.25rem;
  border-top: 1px solid var(--line);
}
.film-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.4rem;
}
.film-info h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 0.4rem;
  line-height: 1.05;
}
.film-info p {
  margin: 0;
  font-size: 0.74rem;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
@media (max-width: 768px) {
  .film-info { padding: 0.75rem 0.75rem 1rem; }
  .film-info h3 { font-size: 1rem; }
  .film-info p { font-size: 0.68rem; }
}

.film-tile.film-hidden { display: none; }
.film-tile.film-revealing {
  animation: filmReveal 0.55s var(--easing) backwards;
}
@keyframes filmReveal {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.film-loadmore {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.film-loadmore .btn {
  position: relative;
  padding-right: 4.5rem;
}
.loadmore-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-left: 0.5rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
}
.loadmore-arrow {
  display: inline-block;
  transition: transform 0.3s var(--easing);
}
.film-loadmore .btn:hover .loadmore-arrow { transform: translateY(3px); }

.film-progress {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.film-progress-bar {
  width: 160px;
  height: 2px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.film-progress-fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left center;
  transition: transform 0.6s var(--easing);
}
.film-loadmore.complete .btn { display: none; }
.film-loadmore.complete .film-progress { color: var(--accent); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 1rem;
}
.work-item.lg { grid-column: span 2; grid-row: span 2; }
@media (max-width: 1024px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-item.lg { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 640px) {
  .work-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .work-item.lg { grid-column: span 1; }
}

.work-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
}
.work-image {
  width: 100%; height: 100%;
  background-color: #0a0a0a;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform 0.7s var(--easing), filter 0.5s var(--easing);
  filter: grayscale(0.6) contrast(1.05) brightness(0.78);
}
.work-item:hover .work-image {
  filter: grayscale(0) contrast(1.1) brightness(0.9);
}
.work-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.92) 100%),
    linear-gradient(135deg, rgba(200,16,46,0.08) 0%, transparent 50%);
}
.work-meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2rem;
  z-index: 2;
  transform: translateY(0);
  transition: transform 0.5s var(--easing);
}
.work-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}
.work-meta h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2.4rem);
  margin: 0 0 0.4rem;
  color: var(--white);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}
.work-meta p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--easing), transform 0.4s var(--easing);
}
.work-item:hover .work-image { transform: scale(1.05); }
.work-item:hover .work-meta p { opacity: 1; transform: translateY(0); }
.work-item::after {
  content: '↗';
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: var(--white);
  font-size: 1.2rem;
  opacity: 0;
  transform: translate(10px, -10px);
  transition: opacity 0.3s var(--easing), transform 0.3s var(--easing);
  z-index: 3;
}
.work-item:hover::after { opacity: 1; transform: translate(0, 0); }

.work-cta {
  text-align: center;
  margin-top: 3rem;
}

/* =========================================================
   FACILITY
   ========================================================= */
.facility-list {
  list-style: none;
  padding: 0; margin: 0;
}
.facility-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  transition: padding-left 0.3s var(--easing);
}
.facility-list li:last-child { border-bottom: 1px solid var(--line); }
.facility-list li:hover { padding-left: 1rem; }
.f-num {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  padding-top: 0.4rem;
}
.facility-list h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  color: var(--white);
}
.facility-list p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* =========================================================
   TEAM
   ========================================================= */
.team { background: var(--bg-2); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 1024px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .team-grid { grid-template-columns: 1fr; } }

.team-card {
  background: var(--bg);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.3s var(--easing), transform 0.4s var(--easing);
  font: inherit;
  color: inherit;
  text-align: left;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.team-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.team-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.team-readmore {
  position: absolute;
  bottom: 1rem; left: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent);
  padding: 0.5rem 0.8rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s var(--easing), transform 0.3s var(--easing);
  z-index: 2;
}
.team-card:hover .team-readmore { opacity: 1; transform: translateY(0); }

/* BIO MODAL */
.bio-modal {
  position: fixed; inset: 0;
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s var(--easing), visibility 0.3s var(--easing);
  padding: 2rem;
}
.bio-modal.open {
  visibility: visible;
  opacity: 1;
}
.bio-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}
.bio-panel {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line-2);
  max-width: 760px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s var(--easing);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(200, 16, 46, 0.15);
}
.bio-modal.open .bio-panel { transform: translateY(0) scale(1); }
.bio-close {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 3;
  width: 40px; height: 40px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--line-2);
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s var(--easing), border-color 0.3s var(--easing);
  display: flex; align-items: center; justify-content: center;
}
.bio-close:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.bio-content { padding: 0; }
.bio-header {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  padding: 2.5rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(200,16,46,0.06) 0%, transparent 100%);
}
.bio-portrait {
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center top;
  filter: grayscale(0.3);
  border: 1px solid var(--line-2);
}
.bio-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}
.bio-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 0.5rem;
  line-height: 1;
}
.bio-tagline {
  font-style: italic;
  color: var(--text-dim);
  margin: 0;
  font-size: 1rem;
}
.bio-body {
  padding: 2.5rem;
}
.bio-body p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 1.25rem;
}
.bio-body p em { color: var(--text); font-style: italic; }
.bio-credits {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}
.bio-credits li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text);
  padding: 0.5rem 0;
  letter-spacing: 0.02em;
  line-height: 1.55;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.bio-credits li strong { display: block; margin-bottom: 0.15rem; }
.bio-credits strong {
  color: var(--accent);
  margin-right: 0.5rem;
  font-weight: 700;
}
@media (max-width: 640px) {
  .bio-modal { padding: 0; }
  .bio-panel { max-height: 100vh; height: 100vh; }
  .bio-header {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
  }
  .bio-portrait { max-width: 160px; }
  .bio-body { padding: 1.75rem 1.5rem; }
}
body.modal-open { overflow: hidden; }

/* VIDEO MODAL */
.video-modal {
  position: fixed; inset: 0;
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s var(--easing), visibility 0.3s var(--easing);
  padding: 2rem;
}
.video-modal.open {
  visibility: visible;
  opacity: 1;
}
.video-panel {
  position: relative;
  width: 100%;
  max-width: 1100px;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s var(--easing);
}
.video-modal.open .video-panel { transform: translateY(0) scale(1); }
.video-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-right: 3rem;
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(200, 16, 46, 0.18);
  overflow: hidden;
  width: 100%;
  max-height: calc(100vh - 8rem);
  margin: 0 auto;
}
.video-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
@media (max-width: 640px) {
  .video-modal { padding: 0.75rem; align-items: center; }
  .video-title {
    font-size: 0.65rem;
    margin-bottom: 0.6rem;
    padding-right: 2.75rem;
  }
  .video-panel { max-width: 100%; }
  .bio-close { width: 36px; height: 36px; top: 0.5rem; right: 0.5rem; }
}
@media (max-width: 640px) and (orientation: portrait) {
  .video-frame { max-height: 50vh; }
}
.team-portrait {
  aspect-ratio: 4 / 5;
  background-color: #0a0a0a;
  background-size: cover;
  background-position: center top;
  position: relative;
  overflow: hidden;
  filter: grayscale(0.7) contrast(1.05);
  transition: filter 0.5s var(--easing);
}
.team-card:hover .team-portrait {
  filter: grayscale(0) contrast(1.1);
}
.team-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.55) 100%),
    linear-gradient(135deg, rgba(200,16,46,0.06) 0%, transparent 60%);
}
.team-body { padding: 2rem; }
.team-body h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 0.25rem;
  color: var(--white);
}
.team-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
}
.team-body p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 0;
}

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band {
  background: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, var(--accent-soft) 0%, transparent 60%);
  pointer-events: none;
}
.cta-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--white);
  margin: 0 0 1rem;
  text-transform: uppercase;
  position: relative;
}
.cta-sub {
  color: var(--text-dim);
  font-size: 1.1rem;
  margin: 0 0 2.5rem;
  position: relative;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}
.info-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
  display: block;
}
.contact-info p { margin: 0; color: var(--text); }
.contact-info a { color: var(--text); border-bottom: 1px solid var(--line-2); transition: border-color 0.3s var(--easing), color 0.3s var(--easing); }
.contact-info a:hover { color: var(--accent); border-color: var(--accent); }

.form-demo-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(200, 16, 46, 0.08);
  border: 1px solid rgba(200, 16, 46, 0.4);
  padding: 0.7rem 0.9rem;
  margin: 0 0 1.5rem;
}
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.field { display: flex; flex-direction: column; }
.field.full { grid-column: span 2; }
.field label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
}
.field input,
.field select,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-2);
  padding: 0.85rem 0;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s var(--easing);
  resize: vertical;
}
.field select { color: var(--white); }
.field select option { background: var(--bg); color: var(--white); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form .btn { grid-column: span 2; justify-self: start; margin-top: 1rem; }
.form-status {
  grid-column: span 2;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--accent);
  margin: 0;
}
@media (max-width: 640px) {
  .contact-form { grid-template-columns: 1fr; }
  .field.full, .contact-form .btn, .form-status { grid-column: span 1; }
  .contact-info { grid-template-columns: 1fr; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: #020202;
  border-top: 1px solid var(--line);
  padding: 5rem 0 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}
.footer-mark {
  display: flex; flex-direction: column; gap: 0.5rem;
}
.footer-mark .logo-num,
.footer-mark .logo-slash {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  letter-spacing: 0.08em;
}
.footer-mark p {
  color: var(--text-faint);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer-cols h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}
.footer-cols a {
  display: block;
  color: var(--text-dim);
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: color 0.3s var(--easing);
}
.footer-cols a:hover { color: var(--white); }

.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-powered {
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-powered a {
  color: var(--white);
  position: relative;
  padding-left: 0.5rem;
  border-left: 1px solid var(--accent);
  transition: color 0.2s var(--easing);
}
.footer-powered a:hover { color: var(--accent); }
.footer-disclaimer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  line-height: 1.55;
  text-align: center;
}
.footer-disclaimer p { margin: 0; max-width: 720px; margin: 0 auto; }
.footer-disclaimer a { color: var(--text-dim); border-bottom: 1px solid var(--accent); }
.footer-disclaimer a:hover { color: var(--accent); }
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}
@media (max-width: 520px) {
  .footer-cols { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-cols > div { padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
  .footer-cols > div:last-child { border-bottom: none; padding-bottom: 0; }
  .footer-base { font-size: 0.65rem; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--easing), transform 0.8s var(--easing);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
