:root {
  --bg: #07070b;
  --bg-2: #0b0b14;
  --text: #f5f7ff;
  --muted: rgba(245, 247, 255, 0.72);
  --muted-2: rgba(245, 247, 255, 0.52);

  --card: rgba(255, 255, 255, 0.04);
  --card-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.10);

  --accent: #7c3aed;   /* purple */
  --accent-2: #22c55e; /* green */
  --accent-3: #fb7185; /* rose */
  --accent-4: #38bdf8; /* sky */

  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 10px 35px rgba(0, 0, 0, 0.35);

  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 12px;

  --font-heading: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-body: "Outfit", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: radial-gradient(circle at 15% 10%, rgba(124, 58, 237, 0.25), transparent 50%),
              radial-gradient(circle at 85% 18%, rgba(251, 113, 133, 0.18), transparent 45%),
              radial-gradient(circle at 25% 92%, rgba(56, 189, 248, 0.14), transparent 45%),
              linear-gradient(180deg, var(--bg), var(--bg-2));
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  transform: translateY(-150%);
  transition: transform 200ms ease;
  text-decoration: none;
}
.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(8, 8, 14, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 18px;
  color: var(--text);
}
.brand span {
  color: var(--accent-4);
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 3px;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-3), var(--accent-2));
  border-radius: 2px;
  transition: width 220ms ease;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a:hover::after {
  width: 100%;
}

main {
  padding-top: 72px; /* header space */
}

.section {
  padding: 82px 0;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  padding: 56px 0;
}

.hero-inner {
  width: min(1000px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 13px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent-4), var(--accent));
  box-shadow: 0 0 18px rgba(124, 58, 237, 0.55);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(42px, 5.6vw, 78px);
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-top: 18px;
}

.hero-subtitle {
  margin-top: 16px;
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 20px);
}

.hero-cta {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 18% 15%, rgba(124, 58, 237, 0.22), transparent 45%),
    radial-gradient(circle at 75% 20%, rgba(251, 113, 133, 0.18), transparent 42%),
    radial-gradient(circle at 35% 85%, rgba(34, 197, 94, 0.14), transparent 42%);
}

.hero-orbs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(38px);
  opacity: 0.75;
  animation: floaty 10s ease-in-out infinite;
}
.orb-a {
  width: 380px;
  height: 380px;
  left: -60px;
  top: 70px;
  background: rgba(124, 58, 237, 0.75);
  animation-delay: -1s;
}
.orb-b {
  width: 320px;
  height: 320px;
  right: -60px;
  top: 120px;
  background: rgba(251, 113, 133, 0.65);
  animation-delay: -4s;
}
.orb-c {
  width: 260px;
  height: 260px;
  left: 35%;
  bottom: -90px;
  background: rgba(34, 197, 94, 0.55);
  animation-delay: -7s;
}

@keyframes floaty {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-22px) scale(1.03); }
  100% { transform: translateY(0) scale(1); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  user-select: none;
}

.btn span { white-space: nowrap; }

.btn-primary {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.95), rgba(251, 113, 133, 0.85));
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 40px rgba(124, 58, 237, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.30);
}

.section-head {
  margin-bottom: 26px;
}

.section-head h2 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -0.03em;
}

.section-head p {
  margin-top: 10px;
  color: var(--muted);
  max-width: 760px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.work-card {
  grid-column: span 6;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: var(--shadow-soft);
  transform: translateZ(0);
  transition: transform 220ms ease, border-color 220ms ease;
}

.work-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(120deg, rgba(124, 58, 237, 0.65), rgba(251, 113, 133, 0.45), rgba(34, 197, 94, 0.35));
  opacity: 0;
  transition: opacity 220ms ease;
  border-radius: calc(var(--radius-lg) + 2px);
}

.work-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.18);
}
.work-card:hover::before {
  opacity: 1;
}

.work-media {
  position: relative;
  height: 100%;
}

.work-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
  filter: brightness(0.86) saturate(0.95);
  transform: scale(1.03);
  transition: transform 420ms ease, filter 420ms ease;
}

.work-card:hover .work-video {
  transform: scale(1.09);
  filter: brightness(1) saturate(1.06);
}

.work-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.05));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(24px);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.work-card:hover .work-overlay,
.work-card:focus-within .work-overlay {
  transform: translateY(0);
  opacity: 1;
}

.work-overlay h3 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  font-size: 18px;
}

.work-tag {
  display: inline-block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.work-card .work-overlay::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.8), rgba(56, 189, 248, 0.5), rgba(34, 197, 94, 0.4));
}

/* Maintain a consistent aspect ratio */
.work-card {
  aspect-ratio: 16 / 10;
}

/* Work modal (hover-to-view) */
.work-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.work-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.work-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.work-modal-inner {
  position: relative;
  width: min(1040px, 92vw);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: var(--shadow);

  transform: translateY(10px) scale(0.985);
  transition: transform 220ms ease;
}

.work-modal.is-open .work-modal-inner {
  transform: translateY(0) scale(1);
}

.work-modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.work-modal-title {
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: rgba(245, 247, 255, 0.96);
  font-size: 16px;
}

.work-modal-close {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 247, 255, 0.9);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease;
}

.work-modal-close:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.35);
}

.work-modal-video-wrap {
  background: rgba(0, 0, 0, 0.72);
  padding: 0;
  max-height: 70vh;
}

.work-modal-video {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  background: #000;
}

.about .container {
  display: grid;
  gap: 28px;
}

.two-col {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
}

.lead {
  font-size: 18px;
  margin-top: 12px;
  color: rgba(245, 247, 255, 0.88);
}

.muted {
  color: var(--muted);
}

.about h2,
.services h2 {
  font-family: var(--font-heading);
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-card {
  padding: 14px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
}

.stat-num {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.95);
}

.stat-label {
  margin-top: 6px;
  font-weight: 700;
  color: rgba(245, 247, 255, 0.72);
  font-size: 13px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.service-card {
  grid-column: span 3;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.22);
}

.service-card h3 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  font-size: 18px;
}

.service-card p {
  margin-top: 10px;
  font-size: 13.5px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: start;
}

.contact-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-row {
  margin-top: 18px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.social-link {
  color: rgba(245, 247, 255, 0.75);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.social-link[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
}

.contact-form {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

label {
  font-weight: 800;
  color: rgba(245, 247, 255, 0.82);
  font-size: 13px;
  letter-spacing: 0.01em;
}

input,
textarea {
  width: 100%;
  border-radius: 14px;
  padding: 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease;
  font-family: var(--font-body);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input:focus,
textarea:focus {
  border-color: rgba(56, 189, 248, 0.35);
}

.contact-form button.btn {
  width: 100%;
  margin-top: 6px;
}

.form-note {
  margin-top: 12px;
  color: rgba(56, 189, 248, 0.92);
  font-weight: 700;
  min-height: 1.2em;
}

.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.14);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer-right {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .work-card {
    grid-column: span 12;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .service-card {
    grid-column: span 6;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-right {
    display: none;
  }
}

@media (max-width: 560px) {
  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    font-size: 13px;
  }

  .service-card {
    grid-column: span 12;
  }

  .hero-cta .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

