:root {
  --bg: #060a1a;
  --surface: rgba(16, 24, 48, 0.72);
  --surface-strong: rgba(20, 29, 56, 0.92);
  --surface-soft: rgba(255, 255, 255, 0.06);
  --text: #eef3ff;
  --text-muted: #aebde4;
  --primary: #6a7dff;
  --primary-2: #38d5ff;
  --accent: #9d5bff;
  --border: rgba(160, 184, 240, 0.24);
  --ring: rgba(106, 125, 255, 0.38);
  --success: #59d39b;
  --container: 1120px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow: 0 24px 50px rgba(7, 13, 32, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #060a1a 0%, #040714 100%);
  line-height: 1.6;
  overflow-x: hidden;
  isolation: isolate;
}

main,
.topbar,
.footer {
  position: relative;
  z-index: 1;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1400;
  background: rgba(255, 255, 255, 0.08);
}

.scroll-progress::after {
  content: "";
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--primary-2), var(--primary), var(--accent));
  box-shadow: 0 0 14px rgba(106, 125, 255, 0.7);
  transition: width 0.12s linear;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
}

.container {
  width: min(var(--container), calc(100% - 2.2rem));
  margin: 0 auto;
}

.bg-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  transform: translateY(calc(var(--scroll-depth, 0px) * -0.05));
  transition: transform 0.18s linear;
  will-change: transform;
}

.blob {
  display: none;
}

.blob-1 {
  display: none;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: rgba(157, 91, 255, 0.5);
  right: -70px;
  top: 20%;
  animation-delay: -4s;
}

.blob-3 {
  width: 280px;
  height: 280px;
  background: rgba(56, 213, 255, 0.45);
  left: 30%;
  bottom: -120px;
  animation-delay: -8s;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(132, 155, 220, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(132, 155, 220, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 25%, black, transparent 72%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #000000;
  border-bottom: 1px solid rgba(154, 178, 238, 0.16);
}

.nav-wrap {
  min-height: clamp(82px, 9vw, 120px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  font-weight: 700;
  line-height: 1;
}

.brand-logo {
  height: clamp(58px, 8vw, 110px);
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.12rem;
}

.site-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
}

.nav-cta {
  border: 1px solid rgba(157, 91, 255, 0.9);
  padding: 0.64rem 0.95rem;
  border-radius: 999px;
  color: #fff !important;
  background: linear-gradient(135deg, var(--accent), #7a3cff);
  box-shadow: 0 10px 22px rgba(125, 67, 225, 0.35);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.15rem;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
}

.hero {
  padding: 4.5rem 0 3.4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
  align-items: start;
}

.eyebrow {
  margin: 0 0 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--primary-2);
}

h1 {
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(2rem, 4.2vw, 3.55rem);
  max-width: 13.4ch;
  margin-bottom: 1rem;
}

.hero-copy h1 {
  background: linear-gradient(115deg, #f2f5ff 0%, #bcd3ff 42%, #8de9ff 72%, #f2f5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 180% 180%;
  animation: heroShimmer 8s ease-in-out infinite;
}

.lead {
  color: var(--text-muted);
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.55rem 0 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  transform: translate3d(var(--mx, 0px), calc(var(--my, 0px) + var(--hover-y, 0px)), 0);
  will-change: transform;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.nav-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
  transform: translate(-50%, -50%) scale(0);
  animation: btnRipple 650ms ease-out forwards;
  pointer-events: none;
  z-index: -1;
}

.btn:hover {
  --hover-y: -2px;
}

.magnetic {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  transform: translate3d(var(--mx, 0px), calc(var(--my, 0px) + var(--hover-y, 0px)), 0);
  will-change: transform;
}

.btn-primary {
  color: #fff;
  padding: 0.76rem 1.2rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 24px rgba(80, 95, 221, 0.4);
}

.btn-secondary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #7a3cff);
  border-color: rgba(157, 91, 255, 0.9);
  box-shadow: 0 10px 22px rgba(125, 67, 225, 0.35);
  padding: 0.76rem 1.2rem;
}

.micro-proof {
  margin: 0;
  color: #92a6d8;
  font-size: 0.92rem;
}

.hero-card {
  background: linear-gradient(165deg, rgba(28, 41, 78, 0.9), rgba(13, 20, 42, 0.92));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.outcome-item + .outcome-item {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(162, 185, 240, 0.2);
}

.outcome-item h3 {
  font-size: 1.03rem;
  margin-bottom: 0.36rem;
}

.outcome-item p {
  margin: 0;
  color: var(--text-muted);
}

.strip {
  border-top: 1px solid rgba(155, 178, 236, 0.14);
  border-bottom: 1px solid rgba(155, 178, 236, 0.14);
  background: rgba(255, 255, 255, 0.02);
}

.strip-inner {
  padding: 1rem 0;
}

.strip-inner p {
  margin: 0;
  color: var(--text-muted);
  text-align: center;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(11, 18, 39, 0.9), rgba(9, 14, 31, 0.82));
}

.section h2 {
  margin: 0.38rem 0 1.4rem;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  max-width: 19ch;
}

.section-head {
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 1.2rem;
  text-align: center;
}

.section-head .eyebrow {
  margin-bottom: 0.65rem;
}

.section-head h2 {
  margin: 0 auto;
  position: relative;
  display: inline-block;
  padding-bottom: 0.34rem;
}

.section-head h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 70%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-2), var(--primary), transparent);
  transform: translateX(-50%) scaleX(0.25);
  opacity: 0.45;
  transition: transform 0.7s ease, opacity 0.7s ease;
}

.reveal.visible .section-head h2::after {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}

#services .section-head h2 {
  max-width: 30ch;
  text-wrap: balance;
}

#process .section-head h2 {
  max-width: 34ch;
  text-wrap: balance;
}

#why-work .section-head h2 {
  max-width: 36ch;
  text-wrap: balance;
}

.about-wrap,
.contact-wrap {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.25fr 0.75fr;
}

.about-wrap {
  align-items: stretch;
}

.contact-wrap {
  align-items: start;
}

.about-card,
.about-highlights,
.about-visual,
.why-card,
.service-card,
.timeline article,
.faq-grid article,
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.interactive-card {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transform-style: preserve-3d;
  transition: transform 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

.about-card {
  padding: 1rem;
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1rem;
}

.about-photo-frame {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100%;
  border-radius: 12px;
  border: 1px solid rgba(160, 184, 240, 0.24);
  overflow: hidden;
  background: linear-gradient(145deg, rgba(106, 125, 255, 0.08), rgba(56, 213, 255, 0.06));
}

.about-photo-frame img {
  width: 100%;
  height: 100%;
  flex: 1;
  object-fit: cover;
  display: block;
}

.about-card p {
  margin: 0.6rem 0 0;
  color: var(--text-muted);
}

.about-highlights {
  padding: 1rem;
}

.about-highlights h3 {
  margin-bottom: 0.6rem;
}

.about-highlights ul {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.about-highlights li + li {
  margin-top: 0.38rem;
}

.why-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.why-card {
  padding: 1rem;
}

.why-card h3 {
  margin-bottom: 0.42rem;
}

.why-card p {
  margin: 0;
  color: var(--text-muted);
}

.why-cta-row {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.card-grid,
.timeline,
.faq-grid {
  display: grid;
  gap: 1rem;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  padding: 1rem;
}

.service-card h3 {
  margin-bottom: 0.45rem;
}

.service-card p {
  margin: 0;
  color: var(--text-muted);
}

.service-card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.05rem;
  color: var(--text-muted);
}

.service-card li + li {
  margin-top: 0.32rem;
}

.timeline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline article {
  padding: 0.95rem;
}

.timeline span {
  color: var(--primary-2);
  font-weight: 700;
}

.timeline p {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
}

.faq-head {
  margin-bottom: 1.1rem;
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-grid article {
  padding: 0.95rem;
}

.faq-grid h3 {
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.faq-grid p {
  margin: 0;
  color: var(--text-muted);
}

.contact-wrap {
  grid-template-columns: 0.95fr 1.05fr;
}

.contact-points {
  margin-top: 0.8rem;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.contact-form {
  padding: 1rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 0.34rem;
  border: 1px solid rgba(170, 192, 241, 0.34);
  border-radius: 10px;
  background: rgba(8, 13, 29, 0.72);
  color: var(--text);
  padding: 0.72rem 0.8rem;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid var(--ring);
  border-color: transparent;
}

.form-note {
  min-height: 1.4em;
  margin: 0.58rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.form-note.success {
  color: var(--success);
}

.floating-cta {
  position: fixed;
  right: 1rem;
  bottom: calc(0.9rem + env(safe-area-inset-bottom));
  z-index: 900;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 999px;
  box-shadow: var(--shadow);
  padding: 0.72rem 1rem;
}

.footer {
  padding: 1rem 0;
  border-top: 1px solid rgba(162, 184, 238, 0.2);
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease var(--reveal-delay, 0ms), transform 0.6s ease var(--reveal-delay, 0ms);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatBlob {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(18px, -24px) scale(1.07);
  }
}

@keyframes btnRipple {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -50%) scale(16);
    opacity: 0;
  }
}

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

@media (max-width: 980px) {
  .hero-grid,
  .about-wrap,
  .contact-wrap,
  .why-grid,
  .card-grid,
  .timeline,
  .faq-grid {
    grid-template-columns: 1fr 1fr;
  }

  .timeline article:last-child,
  .faq-grid article:last-child {
    grid-column: span 2;
  }

  .about-photo-frame {
    min-height: 320px;
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    min-height: 78px;
  }

  .brand {
    gap: 0.5rem;
    font-size: 0.95rem;
  }

  .brand-logo {
    height: 58px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.95rem 1.1rem calc(1rem + env(safe-area-inset-bottom));
    background: rgba(9, 14, 31, 0.98);
    border-bottom: 1px solid rgba(161, 184, 239, 0.2);
  }

  .site-nav a {
    width: 100%;
    padding: 0.28rem 0;
  }

  .site-nav .nav-cta {
    display: inline-flex;
    justify-content: center;
    text-align: center;
  }

  .site-nav.open {
    display: flex;
  }

  .hero {
    padding-top: 2.5rem;
    padding-bottom: 2.8rem;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section {
    padding: 3rem 0;
  }

  .hero-grid,
  .about-wrap,
  .contact-wrap,
  .why-grid,
  .card-grid,
  .timeline,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .timeline article:last-child,
  .faq-grid article:last-child {
    grid-column: auto;
  }

  .about-photo-frame {
    min-height: 260px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 16px;
  }

  .floating-cta {
    left: 1rem;
    right: 1rem;
    text-align: center;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(var(--container), calc(100% - 1.2rem));
  }

  .hero {
    padding-top: 2rem;
    padding-bottom: 2.4rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .strip-inner {
    padding: 0.85rem 0;
  }

  .about-photo-frame {
    min-height: 220px;
  }

  .footer {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress {
    display: none;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}