:root {
  --bg: #07080b;
  --surface: #11141a;
  --surface-2: #171c23;
  --text: #f6f8fc;
  --muted: #a7afba;
  --line: #29303a;
  --line-strong: #404a57;
  --metal-a: #f0f4f8;
  --metal-b: #cad2db;
  --metal-c: #97a2ae;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  background:
    linear-gradient(100deg, rgb(255 255 255 / 3%) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgb(255 255 255 / 3%) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 85% 6%, #1b2129 0, transparent 35%),
    radial-gradient(circle at 15% 44%, #121820 0, transparent 33%),
    var(--bg);
  background-size: 48px 48px, 48px 48px, auto, auto, auto;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 8vw, 6.3rem);
  line-height: 0.86;
  max-width: 11ch;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.9rem, 4.1vw, 3.2rem);
  line-height: 0.95;
  margin: 0.5rem 0 0;
  max-width: 16ch;
}

h3 {
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
}

p {
  margin: 0;
  line-height: 1.62;
}

.wrap {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.site-header {
  padding-top: 1.4rem;
}

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

.brand {
  font-size: 0.79rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}

.hero {
  position: relative;
  overflow: clip;
  padding: 5.6rem 0 4.4rem;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 2.2rem;
  align-items: end;
}

.hero-graphics {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
}

.orb-a {
  width: 560px;
  aspect-ratio: 1;
  right: -180px;
  top: -210px;
  background: radial-gradient(circle, rgb(240 244 248 / 16%) 0, transparent 66%);
  animation: float-a 11s ease-in-out infinite;
}

.orb-b {
  width: 320px;
  aspect-ratio: 1;
  left: -120px;
  bottom: -120px;
  background: radial-gradient(circle, rgb(202 210 219 / 13%) 0, transparent 66%);
  animation: float-b 12s ease-in-out infinite;
}

.line {
  position: absolute;
  display: block;
  background: linear-gradient(90deg, transparent, rgb(202 210 219 / 72%), transparent);
}

.line-a {
  width: min(860px, 94vw);
  height: 2px;
  top: 18%;
  left: 0;
}

.line-b {
  width: min(720px, 86vw);
  height: 1px;
  bottom: 16%;
  right: 0;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: #b7c0cb;
  text-transform: uppercase;
}

.lead {
  margin-top: 1.4rem;
  max-width: 56ch;
  color: var(--muted);
  font-size: 1.03rem;
}

.cta-row {
  margin-top: 2.2rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: linear-gradient(145deg, #1d2430, #141a22);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.82rem 1.22rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: 0.22s ease;
}

.btn:hover {
  background: linear-gradient(145deg, var(--metal-a), var(--metal-b) 58%, var(--metal-c));
  color: #07080b;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
}

.btn-ghost:hover {
  color: #07080b;
}

.btn-small {
  padding: 0.56rem 1rem;
  font-size: 0.86rem;
}

.hero-card {
  background:
    linear-gradient(145deg, rgb(240 244 248 / 10%), transparent 34%),
    linear-gradient(145deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 1.4rem;
  box-shadow:
    inset 0 1px 0 rgb(240 244 248 / 12%),
    0 14px 34px rgb(0 0 0 / 35%);
}

.card-label {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

.card-title {
  font-size: 2.2rem;
  margin-top: 0.1rem;
}

.card-copy {
  margin-top: 0.38rem;
  color: var(--muted);
}

.section {
  padding: 5rem 0;
}

.metrics {
  padding: 1.1rem 0 0.6rem;
}

.metrics-grid {
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, #0f1218, #151a23);
  border-radius: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}

.metrics-grid article {
  padding: 1.2rem 1.1rem;
}

.metrics-grid article + article {
  border-left: 1px solid var(--line);
}

.metric-value {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1;
  color: transparent;
  background: linear-gradient(160deg, var(--metal-a), var(--metal-b) 56%, var(--metal-c));
  background-clip: text;
  -webkit-background-clip: text;
}

.metric-label {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.83rem;
}

.section-soft {
  background:
    linear-gradient(180deg, transparent, #10151d 45%, transparent),
    repeating-linear-gradient(
      -45deg,
      transparent 0 13px,
      rgb(255 255 255 / 2%) 13px 14px
    );
}

.cards {
  margin-top: 1.7rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.card {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(155deg, #151a22, #10141b 70%);
  padding: 1.15rem;
}

.service-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  border: 1px solid #566172;
  border-radius: 10px;
  margin-bottom: 0.82rem;
  color: #e5ebf2;
  background:
    linear-gradient(145deg, rgb(240 244 248 / 18%), rgb(151 162 174 / 8%) 45%, transparent 74%),
    linear-gradient(145deg, #1b222d, #121820);
  box-shadow:
    inset 0 1px 1px rgb(255 255 255 / 9%),
    inset 0 -1px 1px rgb(0 0 0 / 26%);
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 19px;
  height: 19px;
}

.card p {
  color: var(--muted);
  margin-top: 0.45rem;
}

.projects {
  margin-top: 1.7rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.projects article {
  border: 1px solid var(--line);
  border-left: 3px solid #a9b4c1;
  border-radius: 12px;
  background: #0f141b;
  padding: 0.9rem 0.9rem 0.9rem 0.95rem;
}

.project-type {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.projects h3 {
  margin-top: 0.24rem;
}

.projects p:last-child {
  margin-top: 0.42rem;
  color: var(--muted);
}

.process {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.6rem;
  align-items: start;
}

ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  display: grid;
  gap: 0.82rem;
}

.contact {
  padding-top: 1.1rem;
}

.section-divider {
  width: min(1160px, 92vw);
  margin: 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgb(202 210 219 / 62%), transparent);
}

.contact-box {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(165deg, #171c24, #10151c 72%);
  padding: 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}

.contact-box p {
  margin-top: 0.7rem;
  color: var(--muted);
  max-width: 54ch;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 3.3rem;
}

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

@keyframes float-a {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-12px, 10px, 0);
  }
}

@keyframes float-b {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(10px, -8px, 0);
  }
}

@media (max-width: 980px) {
  h1 {
    font-size: clamp(2.4rem, 10vw, 4.8rem);
  }

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

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

  .metrics-grid article:nth-child(3),
  .metrics-grid article:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .metrics-grid article:nth-child(3) {
    border-left: 0;
  }

  .cards,
  .projects {
    grid-template-columns: 1fr 1fr;
  }

  .contact-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 4.1rem;
  }

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

  .metrics-grid article + article {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .cards,
  .projects {
    grid-template-columns: 1fr;
  }
}
