:root {
  --ink: #f7fbff;
  --muted: #a9b8d3;
  --dim: #7081a2;
  --bg: #020817;
  --bg-soft: #06142f;
  --panel: rgba(9, 24, 58, 0.72);
  --panel-strong: rgba(12, 35, 82, 0.88);
  --line: rgba(159, 199, 255, 0.18);
  --blue: #1f8bff;
  --cyan: #58e6ff;
  --navy: #03133a;
  --violet: #7467ff;
  --gold: #ffd56a;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html,
body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(31, 139, 255, 0.24), transparent 34%),
    radial-gradient(circle at 88% 24%, rgba(88, 230, 255, 0.14), transparent 30%),
    linear-gradient(180deg, #020817 0%, #03112d 48%, #020817 100%);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
::selection { color: #00143b; background: var(--cyan); }

.navbar {
  z-index: 50;
  padding: 14px 0;
  background: rgba(2, 8, 23, 0.62);
  border-bottom: 1px solid rgba(159, 199, 255, 0.12);
  backdrop-filter: blur(18px);
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 50%;
  padding: 3px;
  background:
    linear-gradient(#020817, #020817) padding-box,
    linear-gradient(135deg, #ffffff, var(--cyan), var(--blue), var(--gold)) border-box;
  border: 2px solid transparent;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.08),
    0 0 28px rgba(88, 230, 255, 0.42),
    0 0 58px rgba(31, 139, 255, 0.24);
}

.brand-word {
  display: grid;
  gap: 1px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.18em;
  line-height: 1.05;
}

.brand-word small {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.24em;
}

.nav-link {
  color: #c7d7f8 !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-link:hover { color: #ffffff !important; }

.btn {
  font-weight: 800;
  letter-spacing: 0;
}

.btn-primary {
  --bs-btn-bg: linear-gradient(135deg, #0d6efd, #32d7ff);
  --bs-btn-border-color: rgba(88, 230, 255, 0.42);
  --bs-btn-hover-border-color: rgba(255, 255, 255, 0.8);
  background: linear-gradient(135deg, #0d6efd, #32d7ff);
  color: #f7fbff;
  box-shadow: 0 16px 38px rgba(31, 139, 255, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(31, 139, 255, 0.36);
}

#preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.45s ease;
}

.loader-system {
  position: relative;
  width: 86px;
  height: 86px;
  border: 1px solid rgba(88, 230, 255, 0.28);
  border-radius: 50%;
  animation: spin 1.8s linear infinite;
}

.loader-system span {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
}

.loader-system span:nth-child(1) { top: 7px; left: 18px; }
.loader-system span:nth-child(2) { right: 5px; top: 42px; background: var(--blue); }
.loader-system span:nth-child(3) { bottom: 8px; left: 35px; background: var(--gold); }

.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

#hero3d,
#case3d {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 4;
  padding-top: 80px;
}

.sky-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(159, 199, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159, 199, 255, 0.045) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 82%);
}

.star-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-repeat: repeat;
}

.star-layer-one {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.85) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(88, 230, 255, 0.8) 0 1px, transparent 1.6px);
  background-size: 140px 140px, 220px 220px;
  background-position: 30px 18px, 70px 90px;
  animation: driftStars 28s linear infinite;
}

.star-layer-two {
  opacity: 0.55;
  background-image: radial-gradient(circle, rgba(255, 213, 106, 0.86) 0 1px, transparent 1.5px);
  background-size: 310px 310px;
  background-position: 150px 80px;
  animation: driftStars 45s linear infinite reverse;
}

.eyebrow,
.section-kicker,
.case-label {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-block;
  width: 34px;
  height: 1px;
  margin-right: 12px;
  vertical-align: middle;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

h1,
h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

h1 {
  max-width: 980px;
  margin-top: 24px;
  font-size: clamp(3.5rem, 7.6vw, 7.2rem);
  overflow-wrap: anywhere;
}

h2 {
  font-size: clamp(2.45rem, 5.8vw, 5.7rem);
  max-width: 950px;
}

.split-title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.split-title .word span {
  display: inline-block;
  transform: translateY(110%);
}

.hero-copy,
.section-copy,
.case-intro {
  max-width: 690px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.signal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 780px;
  margin-top: 54px;
}

.signal-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(88, 230, 255, 0.22);
  border-radius: 999px;
  background: rgba(5, 22, 55, 0.66);
  color: #dfeaff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(16px);
}

.orbit-toggle,
.scroll-cue {
  position: absolute;
  z-index: 10;
  bottom: 28px;
  border: 1px solid rgba(159, 199, 255, 0.24);
  background: rgba(7, 19, 47, 0.62);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.orbit-toggle {
  right: 28px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
}

.scroll-cue {
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  transform: translateX(-50%);
}

.scroll-cue span {
  width: 26px;
  height: 1px;
  background: var(--cyan);
}

.section-pad { padding: 126px 0; }
.services-section,
.process-section { background: rgba(2, 8, 23, 0.44); }

.service-card,
.project-card,
.studio-panel,
.contact-form,
.case-facts,
.result-card,
.process-step {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(12, 35, 82, 0.84), rgba(5, 16, 41, 0.66));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.parallax-card {
  transform-style: preserve-3d;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.parallax-card:hover { border-color: rgba(88, 230, 255, 0.5); }

.service-card {
  position: relative;
  min-height: 365px;
  padding: 30px;
  border-radius: 8px;
  overflow: hidden;
}

.service-card:before {
  content: "";
  position: absolute;
  inset: auto -50px -80px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(88, 230, 255, 0.14);
  filter: blur(30px);
}

.service-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 64px;
  border: 1px solid rgba(88, 230, 255, 0.24);
  border-radius: 50%;
}

.service-icon span {
  width: 18px;
  height: 18px;
  clip-path: polygon(50% 0, 61% 36%, 100% 50%, 61% 64%, 50% 100%, 39% 64%, 0 50%, 39% 36%);
  background: linear-gradient(135deg, var(--cyan), var(--blue), var(--gold));
  box-shadow: 0 0 22px var(--cyan);
}

.service-number {
  position: absolute;
  top: 28px;
  right: 30px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 800;
}

.service-card h3,
.process-step h3 {
  font-size: 25px;
  font-weight: 800;
}

.service-card p:not(.service-number),
.process-step p,
.project-card p,
.studio-panel p,
.case-section p {
  color: var(--muted);
  line-height: 1.75;
}

.service-card a {
  position: absolute;
  left: 30px;
  bottom: 28px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.text-link {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(88, 230, 255, 0.55);
  padding-bottom: 8px;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 500px;
  padding: 28px;
  border-radius: 8px;
  overflow: hidden;
  isolation: isolate;
}

.project-compact { min-height: 238px; }

.project-visual {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.9;
}

.project-visual:before,
.project-visual:after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.launch-visual {
  background:
    radial-gradient(circle at 68% 32%, rgba(88, 230, 255, 0.36), transparent 26%),
    radial-gradient(circle at 28% 76%, rgba(31, 139, 255, 0.28), transparent 26%),
    linear-gradient(135deg, #031337, #071f55);
}

.identity-visual {
  background:
    conic-gradient(from 120deg at 70% 44%, transparent, rgba(88, 230, 255, 0.34), transparent 42%),
    linear-gradient(135deg, #05183f, #092b68);
}

.signal-visual {
  background:
    radial-gradient(circle at 25% 35%, rgba(255, 213, 106, 0.18), transparent 24%),
    linear-gradient(135deg, #04102f, #0a3b78);
}

.project-visual:before {
  width: 360px;
  height: 360px;
  right: -100px;
  top: -80px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.project-visual:after {
  width: 10px;
  height: 10px;
  right: 34%;
  top: 32%;
  background: var(--cyan);
  box-shadow:
    54px 62px 0 rgba(255, 255, 255, 0.86),
    -72px 110px 0 rgba(255, 213, 106, 0.88),
    116px 166px 0 rgba(88, 230, 255, 0.7);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #d8e7ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-card h3 {
  margin-top: auto;
  max-width: 560px;
  font-size: clamp(2rem, 4.8vw, 4.6rem);
  font-weight: 800;
  line-height: 0.96;
}

.project-compact h3 {
  max-width: 420px;
  font-size: clamp(1.8rem, 3.2vw, 3.2rem);
}

.project-arrow {
  display: inline-flex;
  width: fit-content;
  margin-top: 24px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.studio-section { background: linear-gradient(180deg, rgba(3, 17, 45, 0.58), rgba(2, 8, 23, 0.2)); }

.studio-panel {
  position: relative;
  min-height: 390px;
  padding: 42px;
  border-radius: 8px;
  overflow: hidden;
}

.panel-stars {
  position: absolute;
  inset: 0;
  opacity: 0.38;
  background-image: radial-gradient(circle, white 0 1px, transparent 1.4px);
  background-size: 72px 72px;
}

.studio-panel .row,
.studio-panel p {
  position: relative;
  z-index: 1;
}

.studio-panel strong {
  display: block;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
}

.studio-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.studio-panel p {
  max-width: 600px;
  margin-top: 64px;
  font-size: 18px;
}

.process-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 70px;
}

.process-timeline:before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.process-step {
  position: relative;
  min-height: 280px;
  padding: 30px;
  border-radius: 8px;
}

.process-step span {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 56px;
  border-radius: 50%;
  background: #061a45;
  border: 1px solid rgba(88, 230, 255, 0.35);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

.marquee-section {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(88, 230, 255, 0.08);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee-track span {
  padding: 30px 38px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(198, 225, 255, 0.64);
  font-size: clamp(2.6rem, 7vw, 7rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.contact-section { background: linear-gradient(180deg, rgba(2, 8, 23, 0.1), #020817); }

.contact-form {
  padding: 30px;
  border-radius: 8px;
}

.form-control,
.form-select {
  min-height: 52px;
  border: 1px solid rgba(159, 199, 255, 0.2);
  border-radius: 8px;
  background-color: rgba(2, 8, 23, 0.76);
  color: var(--ink);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--cyan);
  background-color: rgba(2, 8, 23, 0.94);
  box-shadow: 0 0 0 0.25rem rgba(88, 230, 255, 0.12);
  color: var(--ink);
}

.form-control::placeholder { color: #7e91b6; }
.form-select option { background: #06142f; color: var(--ink); }

.footer {
  padding: 42px 0;
  border-top: 1px solid var(--line);
  background: #010612;
}

.footer-brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.footer-brand span,
.footer-services,
.footer p {
  color: var(--dim);
  font-size: 12px;
}

.footer-services {
  margin-top: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.case-page { background: #020817; }

.case-hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: end;
  padding: 180px 0 100px;
  overflow: hidden;
}

.case-hero .container {
  position: relative;
  z-index: 3;
}

.case-hero h1 {
  max-width: 900px;
  font-size: clamp(3.5rem, 8vw, 8rem);
}

.case-intro {
  max-width: 760px;
  font-size: 21px;
}

.case-body { background: linear-gradient(180deg, rgba(4, 19, 56, 0.86), #020817); }

.case-facts {
  position: sticky;
  top: 110px;
  padding: 28px;
  border-radius: 8px;
}

.case-facts p {
  margin: 0;
  padding: 18px 0;
  color: #dce9ff;
  border-bottom: 1px solid var(--line);
}

.case-facts p:last-child { border-bottom: 0; }

.case-facts span {
  display: block;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.case-section {
  padding-bottom: 54px;
  margin-bottom: 54px;
  border-bottom: 1px solid var(--line);
}

.case-section h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  margin-bottom: 24px;
}

.case-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 90px;
}

.result-card {
  min-height: 210px;
  padding: 28px;
  border-radius: 8px;
}

.result-card strong {
  display: block;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 1;
}

.result-card span {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.next-work {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  margin-top: 70px;
}

.next-work a {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reveal-up { opacity: 0; transform: translateY(34px); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes driftStars { to { background-position: 170px 158px, 290px 230px; } }
@keyframes marquee { to { transform: translateX(-50%); } }

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

  .reveal-up,
  .split-title .word span {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 991px) {
  .navbar { background: rgba(2, 8, 23, 0.9); }
  .hero-section { min-height: 940px; }
  .hero-content { padding-top: 118px; }
  .section-pad { padding: 96px 0; }
  .process-timeline,
  .case-results { grid-template-columns: 1fr 1fr; }
  .process-timeline:before { display: none; }
  .case-facts { position: static; }
}

@media (max-width: 767px) {
  .brand-word small { display: none; }
  .brand-logo { width: 44px; height: 44px; padding: 2px; }
  h1 { font-size: clamp(2.85rem, 12vw, 4.2rem); }
  h2 { font-size: clamp(2.2rem, 11vw, 3.4rem); }
  .hero-copy,
  .section-copy,
  .case-intro { font-size: 16px; }
  .orbit-toggle { display: none; }
  .scroll-cue { left: 18px; transform: none; }
  .signal-strip span { min-height: 38px; font-size: 10px; }
  .project-card,
  .project-compact { min-height: 390px; }
  .studio-panel { padding: 28px; }
  .process-timeline,
  .case-results { grid-template-columns: 1fr; }
  .case-hero { min-height: 680px; padding-bottom: 76px; }
  .next-work { display: grid; }
}

@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
  .contact-form { padding: 22px; }
  .project-card { padding: 22px; }
}
