:root {
  --bg: #101113;
  --bg-rgb: 16, 17, 19;
  --panel-rgb: 30, 31, 34;
  --panel-solid: #1a1b1e;
  --accent: #48CAE4;
  --accent2: #55555c;
  --text: #F8F9FA;
  --text-muted: #A0AEC0;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
}

::selection {
  background: rgba(72, 202, 228, 0.3);
}

a {
  text-decoration: none;
}

@keyframes bca-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes bca-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---------- Navbar ---------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  background: rgba(var(--panel-rgb), 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(72, 202, 228, 0.15);
  transform: translateY(0);
  transition: transform 0.45s var(--ease), padding 0.35s var(--ease), background 0.35s ease, box-shadow 0.35s ease;
}

.navbar.is-scrolled {
  padding: 11px 48px;
  background: rgba(var(--panel-rgb), 0.82);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.navbar.is-hidden {
  transform: translateY(-100%);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  z-index: 60;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  box-shadow: 0 0 8px rgba(72, 202, 228, 0.6);
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 36px;
  height: 36px;
  position: relative;
}

.logo-tile {
  position: absolute;
  width: 22px;
  height: 22px;
  transform: rotate(45deg);
}

.logo-tile--front {
  background: rgba(72, 202, 228, 0.25);
  border: 1px solid rgba(72, 202, 228, 0.7);
  top: 2px;
  left: 8px;
  box-shadow: 0 0 12px rgba(72, 202, 228, 0.5);
}

.logo-tile--back {
  background: rgba(85, 85, 92, 0.4);
  border: 1px solid rgba(160, 174, 192, 0.5);
  top: 12px;
  left: 0;
}

.wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.menu-toggle {
  background: transparent;
  border: 1px solid rgba(160, 174, 192, 0.3);
  border-radius: 4px;
  width: 40px;
  height: 36px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  width: 18px;
  height: 1.5px;
  background: var(--text);
}

.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease);
}

.nav-link:hover {
  color: var(--text);
}

.nav-link.active {
  color: var(--text);
  font-weight: 600;
}

.nav-indicator {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 0;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(72, 202, 228, 0.7);
  transition: transform 0.4s var(--ease), width 0.4s var(--ease), opacity 0.2s ease;
  opacity: 0;
}

.nav-indicator.is-active {
  opacity: 1;
}

.btn-book {
  background: rgba(72, 202, 228, 0.12);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.3s var(--ease);
}

.btn-book:hover {
  background: rgba(72, 202, 228, 0.25);
  box-shadow: 0 0 20px rgba(72, 202, 228, 0.35);
}

.mobile-menu {
  display: none;
}

@media (max-width: 860px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu.open {
    display: flex;
    position: sticky;
    top: 68px;
    z-index: 49;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    background: rgba(var(--panel-rgb), 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(72, 202, 228, 0.15);
    padding: 24px 48px;
  }

  .mobile-menu.open .nav-link {
    font-size: 15px;
  }

  .mobile-menu.open .nav-link.active {
    border-bottom-color: var(--accent);
  }

  .mobile-menu.open .btn-book {
    align-self: stretch;
    text-align: center;
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(80px, 14vw, 160px) 48px 120px;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(72, 202, 228, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 202, 228, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 85%);
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(72, 202, 228, 0.16), transparent 65%);
  pointer-events: none;
  transform: translate(calc(-50% + var(--glow-x, 0px)), var(--glow-y, 0px));
  transition: transform 0.8s var(--ease);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-anim {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.is-loaded .hero-anim {
  opacity: 1;
  transform: translateY(0);
}

.is-loaded .hud-badge { transition-delay: 0.05s; }
.is-loaded .hero-title { transition-delay: 0.15s; }
.is-loaded .hero-sub { transition-delay: 0.28s; }
.is-loaded .hero-ctas { transition-delay: 0.38s; }
.is-loaded .stat-bar { transition-delay: 0.48s; }

/* ---------- Scroll reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hud-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  border: 1px solid rgba(72, 202, 228, 0.35);
  background: rgba(72, 202, 228, 0.06);
  padding: 7px 14px;
  border-radius: 2px;
  letter-spacing: 0.5px;
  margin-bottom: 28px;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(38px, 6.5vw, 84px);
  line-height: 1.05;
  margin: 0 0 24px;
  max-width: 880px;
  letter-spacing: -1px;
}

.hero-sub {
  color: var(--text-muted);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 0 40px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 88px;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  font-size: 15px;
  padding: 16px 32px;
  border-radius: 4px;
  box-shadow: 0 0 24px rgba(72, 202, 228, 0.35);
  transition: box-shadow 0.2s ease, transform 0.3s var(--ease);
}

.btn-primary:hover {
  box-shadow: 0 0 36px rgba(72, 202, 228, 0.6);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(248, 249, 250, 0.04);
  border: 1px solid rgba(248, 249, 250, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  padding: 16px 32px;
  border-radius: 4px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.stat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 32px;
}

.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

/* ---------- Shared section styles ---------- */

.section {
  padding: 0 48px 140px;
  max-width: 1200px;
  margin: 0 auto;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 44px);
  margin: 0 0 48px;
}

/* ---------- Showreel ---------- */

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(var(--panel-rgb), 0.7), rgba(var(--bg-rgb), 0.9)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.035) 0 12px, rgba(255, 255, 255, 0.01) 12px 24px);
  border: 1px solid rgba(72, 202, 228, 0.3);
  clip-path: polygon(28px 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%, 0 28px);
  margin-bottom: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-frame-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.play-button {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 1px solid rgba(72, 202, 228, 0.6);
  background: rgba(72, 202, 228, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(72, 202, 228, 0.35);
  animation: bca-pulse 3s ease-in-out infinite;
}

.play-triangle {
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid var(--accent);
  margin-left: 4px;
}

.video-caption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.project-card {
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.035) 0 12px, rgba(255, 255, 255, 0.01) 12px 24px),
    var(--panel-solid);
  color: inherit;
  text-decoration: none;
  transform-style: preserve-3d;
  will-change: transform;
  transition: border-color 0.2s ease, box-shadow 0.3s ease, transform 0.3s var(--ease);
}

.project-card:hover,
.project-card:focus-visible {
  border-color: rgba(72, 202, 228, 0.5);
  box-shadow: 0 0 30px rgba(72, 202, 228, 0.15);
}

.project-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.project-grid-loading,
.project-grid-error {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-muted);
  padding: 24px 0;
}

.project-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(160, 174, 192, 0.5);
}

.project-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.project-card:hover .project-image,
.project-card:focus-visible .project-image {
  transform: scale(1.08);
}

.project-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(var(--bg-rgb), 0.92), transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.project-category {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.project-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 17px;
}

/* ---------- About ---------- */

.about-section {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;
}

.about-copy {
  flex: 1;
  min-width: 280px;
}

.about-text {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 520px;
  margin: 0;
}

.about-facts {
  flex: 1;
  min-width: 280px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.service-card {
  background: rgba(var(--panel-rgb), 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform-style: preserve-3d;
  will-change: transform;
  transition: border-color 0.2s ease, box-shadow 0.3s ease, transform 0.3s var(--ease);
}

.service-card:hover {
  border-color: rgba(72, 202, 228, 0.5);
  box-shadow: 0 0 30px rgba(72, 202, 228, 0.15);
  transform: translateY(-4px);
}

.service-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.5px;
}

.service-icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(72, 202, 228, 0.4);
  transform: rotate(45deg);
  background: rgba(72, 202, 228, 0.08);
  margin-bottom: 4px;
}

.service-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 19px;
}

.service-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.service-spec {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent2);
  letter-spacing: 0.3px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---------- Footer ---------- */

.footer {
  padding: 56px 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 13px;
}

/* ---------- Project detail page ---------- */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 32px;
  transition: color 0.15s ease;
}

.back-link:hover {
  color: var(--accent);
}

.project-header {
  margin-bottom: 40px;
}

.project-header .eyebrow {
  margin-bottom: 16px;
}

.project-header-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 56px);
  margin: 0 0 20px;
  max-width: 900px;
  letter-spacing: -0.5px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
}

.project-meta span {
  color: var(--accent);
  margin-right: 6px;
}

.project-hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 40px;
  display: block;
}

.media-pending {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.035) 0 12px, rgba(255, 255, 255, 0.01) 12px 24px), var(--panel-solid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(160, 174, 192, 0.5);
  letter-spacing: 0.5px;
  margin-bottom: 40px;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.project-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: block;
}

.project-description {
  max-width: 640px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}

.project-description p {
  margin: 0 0 20px;
}

.project-description p:last-child {
  margin-bottom: 0;
}

.project-not-found {
  padding: 120px 0;
  text-align: center;
}

.project-not-found h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 16px;
}

.project-not-found p {
  color: var(--text-muted);
  margin: 0 0 24px;
}
