:root {
  --bg: #05070b;
  --bg-soft: #0a1119;
  --panel: rgba(9, 18, 28, 0.78);
  --panel-strong: rgba(6, 11, 16, 0.92);
  --text: #f5fbff;
  --text-soft: rgba(227, 239, 244, 0.74);
  --line: rgba(117, 201, 223, 0.14);
  --line-strong: rgba(117, 201, 223, 0.3);
  --brand: #1e7890;
  --brand-bright: #43c0d9;
  --brand-deep: #0f4250;
  --accent: #ffb066;
  --accent-pink: #ff5fcf;
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.45);
  --radius-xl: 42px;
  --radius-lg: 30px;
  --radius-md: 22px;
  --container: min(1280px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Instrument Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 12%, rgba(67, 192, 217, 0.18), transparent 18rem),
    radial-gradient(circle at 84% 14%, rgba(255, 95, 207, 0.12), transparent 24rem),
    radial-gradient(circle at 76% 78%, rgba(255, 176, 102, 0.1), transparent 24rem),
    linear-gradient(180deg, #080d13 0%, #030507 100%);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

body.is-loaded .intro-screen {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.03);
}

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

a,
button,
input,
textarea {
  font: inherit;
}

button,
input,
textarea {
  border: 0;
  background: none;
}

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

.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(30, 120, 144, 0.2), transparent 18rem),
    linear-gradient(180deg, rgba(4, 8, 13, 0.96), rgba(2, 4, 7, 0.99));
  transition: opacity 700ms ease, transform 700ms ease, visibility 700ms ease;
}

.intro-core {
  text-align: center;
}

.intro-kicker,
.eyebrow,
.card-topline span,
.service-card span,
.project-copy span,
.process-card span,
.brand-copy small {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.intro-kicker,
.brand-copy small,
.eyebrow {
  color: rgba(200, 234, 242, 0.72);
}

.intro-core strong,
.hero-copy h1,
.section-head h2,
.floating-card h2,
.service-card h3,
.project-copy h3,
.process-card h3,
.cta-copy h2,
.quote-mark {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
}

.intro-core strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(3rem, 10vw, 6rem);
  letter-spacing: 0.04em;
}

.intro-core p {
  margin: 12px 0 0;
  color: var(--text-soft);
}

.world-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(36px);
  animation: floatGlow 18s ease-in-out infinite;
}

.glow-one {
  width: 30rem;
  height: 30rem;
  top: -10rem;
  right: -8rem;
  background: rgba(30, 120, 144, 0.26);
}

.glow-two {
  width: 22rem;
  height: 22rem;
  top: 24rem;
  left: -7rem;
  background: rgba(255, 95, 207, 0.14);
  animation-delay: -5s;
}

.glow-three {
  width: 26rem;
  height: 26rem;
  right: 10%;
  bottom: -8rem;
  background: rgba(255, 176, 102, 0.12);
  animation-delay: -10s;
}

.scan-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.96), transparent 94%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 18px 0 0;
}

.nav-shell,
.hero-shell,
.immersive-strip,
.section-head,
.services-grid,
.portfolio-stack,
.process-grid,
.testimonial-shell,
.cta-shell,
.footer-shell {
  width: var(--container);
  margin: 0 auto;
}

.nav-shell {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 13, 20, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.back-link,
.footer-back {
  color: rgba(245, 251, 255, 0.88);
  white-space: nowrap;
}

.back-link {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 180ms ease, background 180ms ease;
}

.back-link:hover,
.footer-back:hover {
  transform: translateY(-1px);
}

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

.brand-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), transparent 38%),
    linear-gradient(135deg, var(--brand-bright), var(--brand));
  box-shadow: 0 0 28px rgba(67, 192, 217, 0.38);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  line-height: 1;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: rgba(245, 251, 255, 0.82);
  transition: color 180ms ease;
}

.site-nav a:hover {
  color: #fff;
}

.nav-cta {
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(30, 120, 144, 0.14);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border-radius: 50%;
  border: 1px solid var(--line);
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transition: transform 180ms ease;
}

.hero {
  padding: 70px 0 24px;
}

.hero-shell {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 30px;
  align-items: center;
  min-height: calc(100vh - 140px);
}

.hero-copy h1,
.section-head h2,
.floating-card h2,
.cta-copy h2 {
  margin: 0;
  letter-spacing: 0.03em;
}

.hero-copy h1 {
  max-width: 9ch;
  font-size: clamp(4.4rem, 10vw, 8.8rem);
  line-height: 0.92;
}

.hero-copy h1 span {
  color: #a4f3ff;
  text-shadow: 0 0 38px rgba(67, 192, 217, 0.24);
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-text,
.service-card p,
.project-copy p,
.process-card p,
.testimonial-slide p,
.cta-copy p,
.floating-card p,
.floating-card strong,
.footer-shell p {
  color: var(--text-soft);
  line-height: 1.7;
}

.hero-text {
  max-width: 40rem;
  margin: 24px 0 0;
  font-size: 1.06rem;
}

.hero-actions,
.carousel-controls {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-bright) 100%);
  box-shadow: 0 20px 44px rgba(30, 120, 144, 0.34);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.hero-stage {
  position: relative;
  min-height: 680px;
}

.floating-card,
.service-card,
.project-card,
.process-card,
.testimonial-shell,
.cta-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.floating-card,
.service-card,
.process-card,
.testimonial-shell,
.cta-shell {
  background: linear-gradient(180deg, rgba(10, 20, 31, 0.82), rgba(5, 10, 15, 0.95));
}

.floating-card::before,
.service-card::before,
.project-card::before,
.process-card::before,
.cta-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 38%);
  pointer-events: none;
}

.main-card {
  position: absolute;
  inset: 3rem 4rem 12rem 0;
  padding: 34px;
  border-radius: var(--radius-xl);
}

.main-card h2 {
  max-width: 10ch;
  margin-top: 72px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.side-card {
  position: absolute;
  top: 0;
  right: 0;
  width: 38%;
  padding: 24px;
  border-radius: var(--radius-lg);
  transform: rotate(-3deg);
}

.side-card strong {
  display: block;
  margin-top: 16px;
}

.lower-card {
  position: absolute;
  right: 10%;
  bottom: 5%;
  width: 44%;
  padding: 22px;
  border-radius: 26px;
}

.orbital-frame {
  position: absolute;
  inset: 8% 2% 4% 8%;
  border: 1px solid rgba(117, 201, 223, 0.1);
  border-radius: 46px;
}

.orbital-frame::before,
.orbital-frame::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(164, 243, 255, 0.9), rgba(164, 243, 255, 0));
}

.orbital-frame::before {
  top: 16%;
  left: 15%;
  width: 10px;
  height: 10px;
  animation: pulse 2.7s ease-in-out infinite;
}

.orbital-frame::after {
  right: 12%;
  bottom: 18%;
  width: 14px;
  height: 14px;
  animation: pulse 3.5s ease-in-out infinite;
}

.immersive-strip {
  overflow: hidden;
  margin-top: 26px;
  border-top: 1px solid rgba(117, 201, 223, 0.12);
  border-bottom: 1px solid rgba(117, 201, 223, 0.12);
}

.immersive-track {
  display: flex;
  gap: 22px;
  width: max-content;
  padding: 18px 0;
  animation: marquee 24s linear infinite;
}

.immersive-track span {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(245, 251, 255, 0.78);
}

.immersive-track span::after {
  content: "•";
  margin-left: 22px;
  color: rgba(255, 176, 102, 0.72);
}

.section-pad {
  padding: 104px 0;
}

.section-head {
  margin-bottom: 34px;
}

.section-head h2 {
  max-width: 16ch;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.96;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 230px;
  padding: 24px;
  border-radius: 30px;
  grid-column: span 4;
}

.service-card h3,
.project-copy h3,
.process-card h3 {
  margin: 18px 0 10px;
  font-size: 1.7rem;
}

.wide-card {
  grid-column: span 8;
}

.lift-card {
  margin-top: -28px;
}

.dark-card {
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 95, 207, 0.12), transparent 10rem),
    linear-gradient(180deg, rgba(13, 18, 28, 0.84), rgba(5, 9, 14, 0.95));
}

.accent-card {
  background:
    radial-gradient(circle at 16% 16%, rgba(255, 176, 102, 0.12), transparent 10rem),
    linear-gradient(180deg, rgba(12, 22, 29, 0.82), rgba(5, 9, 14, 0.95));
}

.portfolio-stack {
  display: grid;
  gap: 20px;
}

.project-card {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-height: 430px;
  border-radius: 38px;
  background: linear-gradient(180deg, rgba(9, 18, 27, 0.82), rgba(4, 8, 12, 0.96));
}

.project-visual,
.project-copy {
  position: relative;
}

.project-visual::before {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-card-one .project-visual {
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 222, 180, 0.68), transparent 16rem),
    linear-gradient(135deg, #57331d, #1e7890 58%, #04090c);
}

.project-card-two .project-visual {
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 95, 207, 0.5), transparent 14rem),
    linear-gradient(145deg, #241228, #1e7890 64%, #04080c);
}

.project-card-three .project-visual {
  background:
    radial-gradient(circle at 78% 26%, rgba(164, 243, 255, 0.68), transparent 15rem),
    linear-gradient(145deg, #08131b, #15495a 52%, #04090c);
}

.project-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}

.project-card-two {
  grid-template-columns: 0.9fr 1.1fr;
}

.project-card-two .project-visual {
  order: 2;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.process-card {
  min-height: 250px;
  padding: 26px;
  border-radius: 30px;
}

.drift-card {
  margin-top: 42px;
}

.testimonial-shell {
  padding: 34px;
  border-radius: 40px;
  background:
    radial-gradient(circle at 84% 16%, rgba(67, 192, 217, 0.14), transparent 15rem),
    linear-gradient(180deg, rgba(11, 22, 33, 0.88), rgba(5, 9, 14, 0.97));
}

.quote-mark {
  font-size: clamp(5rem, 12vw, 10rem);
  line-height: 0.7;
  color: rgba(164, 243, 255, 0.24);
}

.testimonial-slide {
  display: none;
  max-width: 58rem;
}

.testimonial-slide.is-active {
  display: block;
}

.testimonial-slide p {
  margin: 0;
  font-size: clamp(1.35rem, 2.8vw, 2.2rem);
  line-height: 1.45;
}

.testimonial-slide strong {
  display: block;
  margin-top: 24px;
  font-size: 1.08rem;
}

.carousel-controls {
  margin-top: 28px;
}

.carousel-button {
  min-height: 46px;
  padding: 0 18px;
  color: #fff;
  border-radius: 999px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.carousel-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.05);
}

.cta-shell {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 24px;
  padding: 32px;
  border-radius: 42px;
  background:
    radial-gradient(circle at top right, rgba(67, 192, 217, 0.18), transparent 16rem),
    linear-gradient(180deg, rgba(10, 22, 32, 0.92), rgba(5, 9, 14, 0.98));
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 10px;
  color: rgba(245, 251, 255, 0.86);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px 16px;
  color: #fff;
  border: 1px solid rgba(117, 201, 223, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(227, 239, 244, 0.42);
}

.site-footer {
  padding: 0 0 32px;
}

.footer-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(6, 13, 20, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.footer-shell p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

.magnetic,
.magnetic-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  will-change: transform;
}

.magnetic-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 40px 96px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(67, 192, 217, 0.08);
}

@keyframes floatGlow {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(24px, -16px, 0) scale(1.06);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.45);
    opacity: 1;
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 1180px) {
  .hero-shell,
  .cta-shell,
  .project-card,
  .process-grid,
  .footer-shell {
    grid-template-columns: 1fr;
  }

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

  .service-card,
  .wide-card {
    grid-column: auto;
  }

  .lift-card,
  .drift-card {
    margin-top: 0;
  }

  .project-card-two .project-visual {
    order: 0;
  }
}

@media (max-width: 960px) {
  .nav-shell {
    grid-template-columns: auto 1fr auto;
  }

  .back-link {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 16px;
    right: 16px;
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(6, 13, 20, 0.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .hero-stage {
    min-height: 560px;
  }

  .main-card {
    inset: 4rem 0 10rem 0;
  }

  .side-card {
    width: 52%;
  }

  .lower-card {
    width: 58%;
    right: 0;
  }
}

@media (max-width: 680px) {
  .hero,
  .section-pad {
    padding: 84px 0;
  }

  .nav-shell,
  .hero-shell,
  .immersive-strip,
  .section-head,
  .services-grid,
  .portfolio-stack,
  .process-grid,
  .testimonial-shell,
  .cta-shell,
  .footer-shell {
    width: min(100% - 24px, 1280px);
  }

  .hero-copy h1 {
    font-size: clamp(3.4rem, 18vw, 6rem);
  }

  .hero-stage {
    min-height: 460px;
  }

  .main-card {
    padding: 24px;
    inset: 4rem 0 9rem 0;
  }

  .main-card h2 {
    margin-top: 42px;
  }

  .side-card {
    width: 72%;
    padding: 18px;
  }

  .lower-card {
    width: 84%;
    padding: 18px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .project-copy,
  .process-card,
  .testimonial-shell,
  .cta-shell {
    padding: 22px;
  }

  .button,
  .button-secondary,
  .nav-cta {
    width: 100%;
  }

  .hero-actions {
    display: grid;
  }

  .footer-shell {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .intro-screen {
    display: none;
  }
}
