:root {
  --bg: #07111f;
  --surface: #0d1b2d;
  --surface-soft: rgba(77, 163, 255, 0.045);
  --surface-strong: rgba(77, 163, 255, 0.085);
  --text: #9fb2c8;
  --heading: #eef6ff;
  --muted: #66809d;
  --accent: #58b8ff;
  --accent-soft: rgba(88, 184, 255, 0.13);
  --line: rgba(137, 190, 255, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(20, 71, 125, 0.24), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.7;
}

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

h1, h2, h3, p {
  margin-top: 0;
}

h1, h2, h3 {
  color: var(--heading);
  font-family: "Manrope", system-ui, sans-serif;
  letter-spacing: -0.035em;
}

.section-wrap {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.site-header {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: "Manrope", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

.logo span {
  color: transparent;
  background: linear-gradient(100deg, #d7f2ff 0%, #66c6ff 48%, #7686ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.logo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.48rem;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, #66c6ff, #7686ff);
  transition: transform 180ms ease;
}

.logo:hover::after {
  transform: scaleX(1);
}

.site-header nav {
  display: flex;
  gap: 1.8rem;
}

.site-header nav a {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  transition: color 180ms ease;
}

.site-header nav a:hover {
  color: var(--accent);
}

.hero {
  min-height: 760px;
  padding: 8.5rem 0 7rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow,
.section-label,
.service-kicker,
.work-type {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-wordmark {
  position: relative;
  margin-top: 1.1rem;
  isolation: isolate;
}

.hero-wordmark h1 {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: clamp(4.5rem, 12vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.085em;
  text-transform: uppercase;
  text-shadow:
    0 0 28px rgba(88, 184, 255, 0.12),
    0 12px 50px rgba(0, 0, 0, 0.22);
}

.wordmark-gradient {
  display: inline-block;
  color: transparent;
  background:
    linear-gradient(
      105deg,
      #edf9ff 0%,
      #bce9ff 20%,
      #5fc5ff 48%,
      #648dff 72%,
      #8d72ff 100%
    );
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 22px rgba(88, 184, 255, 0.14));
}

.wordmark-back {
  position: absolute;
  z-index: 1;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -47%);
  color: transparent;
  -webkit-text-stroke: 1px rgba(112, 177, 255, 0.10);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(5.1rem, 13.4vw, 10rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  white-space: nowrap;
  user-select: none;
}

.hero-wordmark::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: -1.6rem;
  width: min(68vw, 760px);
  height: 110px;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(88, 184, 255, 0.16),
    transparent 68%
  );
  filter: blur(18px);
  pointer-events: none;
}

49%, 100% { opacity: 0.18; }
}

.hero-title {
  margin: 2rem 0 0.7rem;
  color: var(--heading);
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.hero-description {
  max-width: 680px;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.button {
  min-width: 150px;
  padding: 0.82rem 1.1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

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

.button-primary {
  background: var(--accent);
  color: #161b26;
}

.button-secondary {
  border: 1px solid var(--line);
  color: var(--heading);
}

.button-secondary:hover {
  border-color: rgba(88, 184, 255, 0.55);
  background: var(--accent-soft);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 1.5rem;
  margin-top: auto;
  padding-top: 4rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.hero-proof span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 0.55rem 0.15rem 0;
  border-radius: 50%;
  background: var(--accent);
}

.intro,
#services,
#approach,
#work,
.contact {
  padding: 8rem 0;
  border-top: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 6rem;
  margin-top: 1.6rem;
}

.intro-grid h2,
.section-heading h2,
.contact-panel h2 {
  margin-bottom: 0;
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  line-height: 1.08;
}

.body-copy p:last-child {
  margin-bottom: 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.1fr 0.55fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 3.5rem;
}

.section-heading > p {
  margin-bottom: 0;
}

.section-heading.compact {
  grid-template-columns: 1fr;
  max-width: 820px;
}

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

.service-card {
  min-height: 360px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.service-card:hover,
.work-card:hover {
  transform: translateY(-4px);
  background: var(--surface-strong);
  border-color: rgba(88, 184, 255, 0.30);
}

.service-card.featured {
  background:
    linear-gradient(150deg, rgba(88, 184, 255, 0.12), transparent 58%),
    var(--surface-soft);
}

.service-number {
  color: var(--muted);
  font-size: 0.72rem;
}

.service-card h3 {
  margin: 0.4rem 0 0.9rem;
  font-size: 1.55rem;
  line-height: 1.25;
}

.service-card p {
  margin-bottom: 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tags span {
  padding: 0.32rem 0.68rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #8fd3ff;
  font-size: 0.68rem;
  font-weight: 600;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  overflow: hidden;
}

.process-list article {
  min-height: 300px;
  padding: 1.5rem;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.process-list article > span {
  color: var(--accent);
  font-size: 0.76rem;
}

.process-list h3 {
  margin-bottom: 0.6rem;
  font-size: 1.35rem;
}

.process-list p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.work-card {
  min-height: 340px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.work-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.work-top span {
  color: var(--accent);
  transition: transform 180ms ease;
}

.work-card:hover .work-top span {
  transform: translate(3px, -3px);
}

.work-card h3 {
  margin: 2.5rem 0 0.8rem;
  font-size: 1.5rem;
  line-height: 1.25;
}

.work-card > p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.work-card .tags {
  margin-top: auto;
  padding-top: 1.5rem;
}

.contact-panel {
  padding: 5rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(88, 184, 255, 0.15), transparent 38%),
    var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
}

.contact-panel h2 {
  max-width: 850px;
  margin: 1rem auto 1.2rem;
}

.contact-panel > p:not(.section-label) {
  max-width: 620px;
  margin: 0 auto;
}

.contact-link {
  display: inline-flex;
  gap: 0.7rem;
  align-items: center;
  margin-top: 2rem;
  color: var(--heading);
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.1rem, 3vw, 1.8rem);
  font-weight: 600;
}

.contact-link span {
  color: var(--accent);
}

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem 1.5rem;
  margin-top: 2.2rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.site-footer {
  min-height: 120px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.76rem;
}

.site-footer div {
  display: flex;
  gap: 1rem;
}

.site-footer a:hover {
  color: var(--accent);
}

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.14;
  pointer-events: none;
}

.ambient-one {
  width: 360px;
  height: 360px;
  top: 16%;
  left: -160px;
  background: #1f6fb2;
}

.ambient-two {
  width: 320px;
  height: 320px;
  right: -140px;
  top: 58%;
  background: #3654c9;
}

@media (max-width: 920px) {
  .site-header nav {
    display: none;
  }

  .hero {
    min-height: 690px;
    padding-top: 7rem;
  }

  .intro-grid,
  .section-heading {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card {
    min-height: 320px;
  }

  .contact-panel {
    padding: 4rem 2rem;
  }
}

@media (max-width: 620px) {
  .section-wrap,
  .site-header {
    width: min(calc(100% - 28px), var(--max));
  }

  .hero {
    min-height: 620px;
    padding: 5.5rem 0 4rem;
  }

  .hero-wordmark h1 {
    font-size: clamp(3.5rem, 18vw, 5.4rem);
  }

  .wordmark-back {
    font-size: clamp(3.9rem, 20vw, 6rem);
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .intro,
  #services,
  #approach,
  #work,
  .contact {
    padding: 5.5rem 0;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .process-list article {
    min-height: 230px;
  }

  .contact-panel {
    padding: 3rem 1.2rem;
  }

  .site-footer {
    flex-direction: column;
    justify-content: center;
    gap: 0.6rem;
  }
}

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

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