:root {
  color-scheme: light;
  --ink: #171c33;
  --muted: #515974;
  --line: #dce0ed;
  --paper: #f6f7fc;
  --white: #fff;
  --navy: #101631;
  --hero-ink: #eef0ff;
  --hero-muted: #c4cbe6;
  --accent: #374bb7;
  --lavender: #cad2ff;
  --gutter: clamp(20px, 5.6vw, 88px);
  --content: 1240px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 1rem; line-height: 1.65; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-underline-offset: .23em; }
a:focus-visible { outline: 3px solid #8c78ff; outline-offset: 5px; }
section[id] { scroll-margin-top: 24px; }
.wrap { width: min(var(--content), 100%); padding-inline: var(--gutter); margin-inline: auto; }

.skip {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  padding: 8px 14px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-160%);
}
.skip:focus { transform: translateY(0); }

.header, .hero { background: var(--navy); color: var(--hero-ink); }

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  font-size: .875rem;
  font-weight: 760;
  letter-spacing: .15em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid #7688db;
  border-radius: 50%;
  color: #cbd3ff;
  font-size: 1.1rem;
  line-height: 1;
  letter-spacing: 0;
}

.main-nav, .languages {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  font-size: .875rem;
}

.main-nav { color: var(--hero-muted); }
.main-nav a, .languages a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.main-nav a:hover, .languages a:hover { text-decoration: underline; }
.languages { gap: 6px; color: var(--hero-muted); }
.languages a { padding-inline: 10px; }
.languages a[aria-current] {
  border: 1px solid #646f9a;
  border-radius: 5px;
  color: var(--white);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid #333c62;
  background:
    radial-gradient(ellipse at 94% 68%, #222b60 0%, transparent 52%),
    var(--navy);
}

.hero-inner {
  display: grid;
  min-height: 540px;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 80px);
  padding-block: clamp(64px, 9vw, 116px);
}

.hero-copy { position: relative; z-index: 1; }

.kicker {
  color: var(--accent);
  font-size: .875rem;
  font-weight: 740;
}

.hero .kicker { color: #bfcaff; }

h1 {
  margin-block: 22px 16px;
  max-width: 17ch;
  font-size: clamp(2.15rem, 5vw, 4.35rem);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.hero .other-name {
  color: var(--lavender);
  font-size: clamp(.875rem, 1.4vw, 1.0625rem);
  font-weight: 680;
  letter-spacing: .08em;
}

.hero .intro {
  max-width: 36rem;
  margin-top: 26px;
  color: var(--hero-muted);
  font-size: clamp(1rem, 1.8vw, 1.125rem);
}

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 30px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid #d1d7ff;
  border-radius: 5px;
  background: var(--lavender);
  color: #151d47;
  font-weight: 700;
  text-decoration: none;
}

.button:hover { background: #e2e6ff; }
.email { overflow-wrap: anywhere; font-weight: 600; }

.orbit {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 360px;
  justify-self: center;
  border: 1px solid #434e88;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #414d98 0%, #252e67 39%, #202958 60%, #1b234e 100%);
  box-shadow: 0 0 80px #2e3972a0;
}

.orbit::before, .orbit::after {
  position: absolute;
  inset: 16%;
  border: 1px solid #676fa6;
  border-radius: 50%;
  content: "";
}

.orbit::after { inset: 32%; background: #3a4b9d42; }

.star {
  position: absolute;
  z-index: 1;
  left: var(--x);
  top: var(--y);
  width: var(--size, 7px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #d7dfff;
  box-shadow: 0 0 11px 2px #a2b6ff99;
  transform: translate(-50%, -50%);
}

.orbit-line {
  position: absolute;
  inset: 25% -3%;
  border: 1px solid #8495d3;
  border-radius: 50%;
  transform: rotate(-37deg);
}

.section { padding-block: clamp(60px, 8vw, 104px); }
.section-top { max-width: 44rem; margin-bottom: 28px; }

h2 {
  margin-top: 7px;
  font-size: clamp(1.8rem, 4vw, 3.05rem);
  font-weight: 690;
  letter-spacing: -.043em;
  line-height: 1.12;
}

h3 { font-size: 1.18rem; font-weight: 720; letter-spacing: -.019em; line-height: 1.3; }
.section-top p { margin-top: 15px; color: var(--muted); }

.services { border-bottom: 1px solid var(--line); }
.service-grid, .project-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.service p, .project p { margin-top: 11px; color: var(--muted); }
.service a, .project a {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 650;
}

.projects { background: #eceffa; }
.project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.project {
  padding: clamp(22px, 3.6vw, 40px);
  border: 1px solid #d4daf5;
  border-radius: 8px;
  background: #f6f7ff;
}

.project .category { margin: 0 0 9px; color: var(--accent); font-size: .875rem; font-weight: 750; }

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 24px 45px;
  padding: clamp(26px, 5vw, 62px);
  border-radius: 9px;
  background: var(--navy);
  color: var(--hero-ink);
}

.contact p { margin-top: 14px; color: var(--hero-muted); }
.contact .email { justify-self: end; color: var(--lavender); font-size: clamp(1.13rem, 3vw, 2rem); }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 26px;
  padding-block: 25px;
}
.footer-inner span { display: block; }

@media (max-width: 850px) {
  .hero-inner { min-height: auto; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .main-nav { gap: 13px; }
  .contact .email { justify-self: start; }
}

@media (max-width: 680px) {
  .header-inner { min-height: 64px; }
  .main-nav { display: none; }
  .hero-inner { display: block; padding-block: 62px; }
  .hero .orbit { position: absolute; z-index: -1; top: -78px; right: -79px; width: 230px; opacity: .37; }
  .service-grid, .project-grid, .contact { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
