/* ============================================================
   Apex Vision — theme: black / red / white
   Mobile-first, plain static CSS
   ============================================================ */

:root {
  --bg: #050505;
  --bg-soft: #0a0a0a;
  --surface: #111111;
  --border: #1a1a1a;
  --red: #ff1a1a;
  --red-bright: #ff3333;
  --text: #f5f5f5;
  --muted: #999999;
  --radius: 12px;
  --maxw: 1100px;
  --font-body: 'Space Grotesk', sans-serif;
  --font-heading: 'Orbitron', sans-serif;
}

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

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

body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% calc(10% + var(--scroll) * 0.5%), rgba(255, 26, 26, 0.12), transparent 70%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Full-page background particles */
#bg-particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* All content above particles */
.hero, .section, .site-footer, .video-modal {
  position: relative;
  z-index: 1;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Brand ---------- */
.brand { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; letter-spacing: 1px; }
.brand span { color: var(--red); }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 64px;
  text-align: center;
  background:
    radial-gradient(900px 400px at 50% -80px, rgba(229, 9, 20, 0.18), transparent 70%),
    var(--bg);
}
.hero .eyebrow {
  display: inline-block;
  color: var(--red-bright);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.72rem;
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: 1px;
  max-width: 18ch;
  margin: 0 auto 18px;
}
.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 60ch;
  margin: 0 auto 30px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 8px;
  transition: transform 0.12s, background 0.15s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-bright); box-shadow: 0 0 30px rgba(255, 26, 26, 0.5); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--red); color: var(--red-bright); box-shadow: 0 0 25px rgba(255, 26, 26, 0.3); }

/* ---------- Sections ---------- */
.section {
  padding: 64px 0;
  position: relative;
  z-index: 2;
  background: var(--bg);
}
.section-alt { background: var(--bg); }
.section-head { text-align: center; max-width: 62ch; margin: 0 auto 44px; }
.section-head .tag {
  color: var(--red);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.72rem;
  margin-bottom: 10px;
  display: block;
}
.section-head h2 { font-family: var(--font-heading); font-size: clamp(1.4rem, 3.5vw, 2rem); letter-spacing: 1px; font-weight: 700; }
.section-head p { color: var(--muted); margin-top: 10px; }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 44px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.stat:hover { border-color: var(--red); box-shadow: 0 0 25px rgba(255, 26, 26, 0.15); }
.stat .num { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--red); }
.stat .label { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
@media (min-width: 860px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Steps (how it works) ---------- */
.steps { display: grid; gap: 16px; }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.step:hover { border-color: var(--red); box-shadow: 0 0 25px rgba(255, 26, 26, 0.15); }
.step .step-num {
  color: var(--red);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1;
  margin-bottom: 12px;
  display: block;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.92rem; }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Video cards ---------- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  transition: border-color 0.15s, transform 0.15s;
}
.video-card:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255, 26, 26, 0.2); }

.thumb {
  position: relative;
  aspect-ratio: 9 / 16;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(229, 9, 20, 0.22), transparent 60%),
    linear-gradient(160deg, #1c1c1c, #0d0d0d);
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb .play {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  box-shadow: 0 6px 24px rgba(229, 9, 20, 0.45);
}
.thumb img.thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.platform-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--border);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.card-body { padding: 14px 16px 16px; }
.card-body h3 { font-size: 0.95rem; margin-bottom: 4px; }
.card-body .meta { color: var(--muted); font-size: 0.8rem; }

/* ---------- Portfolio filter ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
}
.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-btn:hover { color: var(--text); border-color: var(--muted); box-shadow: 0 0 20px rgba(255, 26, 26, 0.15); }
.filter-btn.active { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- Services ---------- */
.service-list { display: grid; gap: 16px; }
.service {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  border-left: 4px solid var(--red);
}
.service h3 { font-family: var(--font-heading); font-size: 0.95rem; letter-spacing: 0.5px; margin-bottom: 6px; }
.service p { color: var(--muted); font-size: 0.94rem; }
.service .icon { font-size: 1.6rem; display: block; margin-bottom: 12px; }
@media (min-width: 860px) {
  .service-list { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Testimonials ---------- */
.quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.quote p { font-size: 0.98rem; }
.quote .who { display: block; margin-top: 14px; color: var(--muted); font-size: 0.85rem; }
.quote .who strong { color: var(--text); }

/* ---------- About ---------- */
.about-copy { max-width: 72ch; }
.about-copy p { color: var(--muted); margin-bottom: 16px; }
.about-copy strong { color: var(--text); }
.about-points { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 860px) { .about-points { grid-template-columns: repeat(2, 1fr); } }
.about-point { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; transition: border-color 0.2s, box-shadow 0.2s; }
.about-point:hover { border-color: var(--red); box-shadow: 0 0 25px rgba(255, 26, 26, 0.15); }
.about-point h3 { font-size: 1rem; margin-bottom: 6px; }
.about-point h3 span { color: var(--red); }
.about-point p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  gap: 28px;
}
@media (min-width: 860px) {
  .contact-wrap { grid-template-columns: 1fr 340px; }
}
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-card:hover {
  border-color: var(--red);
  box-shadow: 0 0 35px rgba(255, 26, 26, 0.15);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
}
.field input:focus,
.field textarea:focus,
.field select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 20px rgba(255, 26, 26, 0.2); }
.field textarea { resize: vertical; min-height: 120px; }

.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 12px; }
.form-msg { display: none; margin-top: 16px; padding: 12px 16px; border-radius: 8px; font-size: 0.92rem; }
.form-msg.ok { display: block; background: rgba(34, 197, 94, 0.12); border: 1px solid #22c55e; color: #4ade80; }
.form-msg.err { display: block; background: rgba(229, 9, 20, 0.12); border: 1px solid var(--red); color: var(--red-bright); }

.contact-side .info-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-side .info-block:hover {
  border-color: var(--red);
  box-shadow: 0 0 25px rgba(255, 26, 26, 0.15);
}
.info-block h4 { font-size: 0.9rem; margin-bottom: 8px; color: var(--red); text-transform: uppercase; letter-spacing: 1px; }
.info-block p, .info-block a { color: var(--muted); font-size: 0.92rem; word-break: break-word; }
.info-block a:hover { color: var(--text); text-shadow: 0 0 12px rgba(255, 26, 26, 0.4); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 30px;
  background: transparent;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
}
.footer-inner .brand { font-size: 1rem; }
.footer-links { display: flex; gap: 20px; list-style: none; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--muted); font-size: 0.88rem; }
.footer-links a:hover { color: var(--text); text-shadow: 0 0 12px rgba(255, 26, 26, 0.4); }
.copyright { color: var(--muted); font-size: 0.8rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14px 0;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  background: rgba(5, 5, 5, 0.95);
  border-bottom-color: rgba(255, 26, 26, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4), 0 0 50px rgba(255, 26, 26, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-brand {
  display: flex;
  align-items: center;
}
.header-logo {
  height: 38px;
  width: auto;
  display: block;
}
.header-nav {
  display: flex;
  gap: 32px;
}
.header-link {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.2s;
  position: relative;
}
.header-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width 0.2s;
}
.header-link:hover,
.header-link.active {
  color: var(--text);
  text-shadow: 0 0 12px rgba(255, 26, 26, 0.4);
}
.header-link:hover::after,
.header-link.active::after {
  width: 100%;
}
.header-cta {
  padding: 8px 18px;
  font-size: 0.85rem;
  transition: box-shadow 0.2s;
}
.header-cta:hover {
  box-shadow: 0 0 25px rgba(255, 26, 26, 0.4);
}
.header-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  transition: transform 0.2s;
}
.header-toggle:hover {
  transform: scale(1.1);
}
.header-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s, background 0.2s;
}
.header-toggle:hover span {
  background: var(--red);
  box-shadow: 0 0 8px rgba(255, 26, 26, 0.5);
}
@media (max-width: 768px) {
  .header-nav,
  .header-cta {
    display: none;
  }
  .header-toggle {
    display: flex;
  }
  .header-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(12px);
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  }
  .header-nav.open .header-link {
    padding: 8px 0;
  }
  .header-nav.open .header-link.active {
    color: var(--red);
    text-shadow: 0 0 12px rgba(255, 26, 26, 0.4);
  }
  .header-nav.open .header-link:hover {
    color: var(--text);
    text-shadow: 0 0 12px rgba(255, 26, 26, 0.4);
  }
  .header-cta.open {
    display: inline-block;
    position: absolute;
    top: calc(100% + 140px);
    right: 20px;
    box-shadow: 0 0 25px rgba(255, 26, 26, 0.4);
  }
}

/* ---------- Brand logo ---------- */
.brand-logo {
  width: 180px;
  display: block;
  margin: 0 auto 24px;
}

/* Neon glow on "quality" */
.hero h1 .accent {
  color: var(--red-bright);
  text-shadow:
    0 0 7px rgba(255, 26, 26, 0.9),
    0 0 20px rgba(255, 26, 26, 0.7),
    0 0 42px rgba(255, 26, 26, 0.5),
    0 0 80px rgba(255, 26, 26, 0.4);
}

/* ---------- Clients strip ---------- */
.clients { margin-top: 48px; }
.clients .label {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 18px;
}
.client-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ---------- Creator marquee slider ---------- */
.clients {
  overflow: hidden;
}
.creator-slider {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.creator-track {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: creatorScroll 32s linear infinite;
}
.creator-track:hover {
  animation-play-state: paused;
}
.creator-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 20px 8px 8px;
  white-space: nowrap;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.creator-card:hover {
  border-color: var(--red);
  box-shadow: 0 0 22px rgba(255, 26, 26, 0.2);
  transform: translateY(-2px);
}
.creator-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--red);
  flex-shrink: 0;
}
.creator-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: radial-gradient(circle at 30% 25%, #3a0a0d, #1a0506);
}
.creator-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.creator-name {
  font-weight: 600;
  font-size: 0.88rem;
}
.creator-subs {
  color: var(--red);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.5px;
}
@keyframes creatorScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .creator-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ---------- Why us / split section ---------- */
.split {
  display: grid;
  gap: 28px;
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
}
.split img.why-img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.why-list { list-style: none; margin-top: 8px; }
.why-list li {
  position: relative;
  padding: 14px 0 14px 34px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s;
}
.why-list li:hover { color: var(--text); text-shadow: 0 0 8px rgba(255, 26, 26, 0.2); }
.why-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 14px;
  color: var(--red);
  font-weight: 800;
}
.why-list li strong { color: var(--text); }

/* ---------- Niche pills (services) ---------- */
.niches { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.niche-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}
.niche-pill:hover { border-color: var(--red); color: var(--text); box-shadow: 0 0 20px rgba(255, 26, 26, 0.15); }

/* ---------- Hero starfield ---------- */
.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 64px;
  background:
    radial-gradient(600px 300px at 50% -60px, rgba(255, 26, 26, 0.2), transparent 70%),
    transparent;
}
.hero #starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero .container {
  position: relative;
  z-index: 10;
  transition: transform 0.05s linear, opacity 0.05s linear;
  will-change: transform, opacity;
}

/* ---------- Recent work: 3D helix flythrough ---------- */
.helix-wrap {
  height: 280vh;
}
.helix {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.helix .recent-work-head { margin-bottom: 8vh; }

/* Cards fly in a 3D spiral; default is a plain grid (no-JS / reduced motion) */
.orbit-rig {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.orbit-rig.rig-3d {
  position: absolute;
  inset: 0;
  display: block;
  perspective: 1400px;
  transform-style: preserve-3d;
}
.orbit-rig.rig-3d .reel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(300px, 68vw);
  margin: 0;
}

/* Reel card chrome (used by the helix) */
.reel {
  position: relative;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  will-change: transform, opacity, filter;
}
.reel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.reel:hover {
  box-shadow:
    0 40px 90px rgba(255, 26, 26, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 50px rgba(255, 26, 26, 0.2);
}
.reel .thumb {
  border-radius: 16px 16px 0 0;
}

/* ---------- Why us: rise-from-floor reveal ---------- */
.spin-pin {
  display: flex;
  flex-direction: column;
  perspective: 1400px;
}
.spin-pin .section-head { margin-bottom: 28px; }
.spin-pin .section-head,
.spin-img,
.spin-text,
.spin-text .why-list li,
.spin-text .btn-ghost {
  will-change: transform, opacity;
}
.spin-img {
  position: relative;
  backface-visibility: hidden;
}
.spin-img .why-img {
  box-shadow: 0 30px 80px rgba(255, 26, 26, 0.2);
}
.spin-img::before {
  content: "";
  position: absolute;
  inset: -25%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 26, 26, 0.5), transparent 62%);
  opacity: var(--glow, 0);
  transform: scale(calc(0.5 + var(--glow, 0) * 0.6));
  pointer-events: none;
}

/* ---------- Testimonials: 3D flip-fan ---------- */
#testimonials .quote {
  will-change: transform, opacity;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#testimonials .quote:hover {
  border-color: var(--red);
  box-shadow: 0 0 25px rgba(255, 26, 26, 0.15);
}

/* ---------- Services: fan of cards ---------- */
#services .service-list {
  perspective: 1400px;
}
#services .service {
  will-change: transform, opacity;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#services .service:hover {
  border-left-color: var(--red-bright);
  box-shadow: 0 0 25px rgba(255, 26, 26, 0.15);
}

/* ---------- About: side-plane slide-in ---------- */
#about .about-copy {
  will-change: transform, opacity;
}

/* ---------- Contact: portal open ---------- */
#contact .form-card {
  will-change: transform, opacity;
}
#contact .info-block {
  will-change: transform, opacity;
}

/* Premium "Recent work" heading */
.recent-work-head { text-align: center; margin: 0 auto 56px; max-width: 60ch; }
.recent-work-head .kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.72rem;
  margin-bottom: 18px;
}
.recent-work-head .kicker::before,
.recent-work-head .kicker::after {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red));
}
.recent-work-head .kicker::after {
  background: linear-gradient(90deg, var(--red), transparent);
}
.recent-work-head h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  letter-spacing: 1px;
  font-weight: 700;
}
.recent-work-head p {
  color: var(--muted);
  margin-top: 12px;
  font-size: 1rem;
}

/* ---------- Hero load-in ---------- */
.hero .container > * {
  opacity: 0;
  transform: translateY(24px);
  animation: heroIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero .container > *:nth-child(1) { animation-delay: 0.05s; }
.hero .container > *:nth-child(2) { animation-delay: 0.12s; }
.hero .container > *:nth-child(3) { animation-delay: 0.19s; }
.hero .container > *:nth-child(4) { animation-delay: 0.26s; }
.hero .container > *:nth-child(5) { animation-delay: 0.33s; }
.hero .container > *:nth-child(6) { animation-delay: 0.4s; }
.hero .container > *:nth-child(7) { animation-delay: 0.47s; }
@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Video Modal ---------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.video-modal.open { display: flex; }
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.video-modal.open .video-modal-backdrop { opacity: 1; }
.video-modal-box {
  position: relative;
  z-index: 2;
  width: min(90vw, 700px);
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9), 0 0 60px rgba(229, 9, 20, 0.2);
  transform: scale(0.85) translateY(30px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}
.video-modal.open .video-modal-box {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.video-modal-box:hover {
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9), 0 0 100px rgba(255, 26, 26, 0.35);
}
.video-modal-box iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.video-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.video-modal-close:hover { background: var(--red-bright); box-shadow: 0 0 25px rgba(255, 26, 26, 0.6); }

/* ---------- Section id scroll offset ---------- */
section[id] { scroll-margin-top: 80px; }
html { scroll-behavior: smooth; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-2 { margin-top: 20px; }
.mb-1 { margin-bottom: 10px; }
