:root {
  color-scheme: dark;
  --bg: #08090d;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.085);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f3f8;
  --muted: #9c9aa8;
  --violet: #9f7aea;
  --violet-bright: #b99cff;
  --cyan: #61d7d4;
  --green: #70dfa8;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 52% -10%, rgba(112, 73, 196, 0.16), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.08;
  pointer-events: none;
}

.ambient-one {
  top: 18%;
  right: -24rem;
  background: var(--violet);
}

.ambient-two {
  bottom: -26rem;
  left: -20rem;
  background: var(--cyan);
}

.site-header,
main,
footer {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.site-header {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  text-decoration: none;
}

.wordmark-main {
  font-size: 1.08rem;
  font-weight: 760;
  letter-spacing: -0.03em;
}

.wordmark-main::after {
  content: ".";
  color: var(--violet-bright);
}

.wordmark-sub {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 660;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 32px;
}

nav a {
  position: relative;
  color: #c3c1cb;
  font-size: 0.84rem;
  font-weight: 620;
  text-decoration: none;
}

nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--violet-bright);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  min-height: 670px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: center;
  padding: 72px 0 88px;
}

.eyebrow {
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 720;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(97, 215, 212, 0.7);
}

h1,
h2,
h3,
p {
  text-wrap: balance;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3.6rem, 7.4vw, 6.7rem);
  line-height: 0.94;
  letter-spacing: -0.075em;
}

h1 em {
  color: transparent;
  font-style: normal;
  background: linear-gradient(100deg, var(--violet-bright), var(--cyan));
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-text {
  max-width: 520px;
  margin: 32px 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.72;
}

.primary-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 15px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.86rem;
  font-weight: 680;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.primary-link:hover,
.primary-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(185, 156, 255, 0.6);
  background: rgba(159, 122, 234, 0.11);
}

.primary-link span {
  color: var(--violet-bright);
  font-size: 1.05rem;
}

.visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.visual::before {
  content: "";
  position: absolute;
  width: 255px;
  height: 255px;
  border-radius: 38% 62% 61% 39% / 48% 38% 62% 52%;
  background: linear-gradient(135deg, rgba(159, 122, 234, 0.75), rgba(97, 215, 212, 0.36));
  filter: blur(1px);
  opacity: 0.32;
  transform: rotate(18deg);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.orbit-one {
  width: 390px;
  height: 390px;
}

.orbit-two {
  width: 300px;
  height: 300px;
  border-style: dashed;
  transform: rotate(22deg);
}

.code-card {
  position: relative;
  z-index: 1;
  width: min(100%, 410px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  background: rgba(15, 16, 24, 0.78);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(22px);
  transform: rotate(2deg);
}

.code-top {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-top > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5d5e67;
}

.code-top > span:first-child {
  background: #b47785;
}

.code-top > span:nth-child(2) {
  background: #b99b6a;
}

.code-top > span:nth-child(3) {
  background: #64a888;
}

.code-top small {
  margin-left: auto;
  color: #64636d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.63rem;
}

.code-body {
  padding: 26px 25px 29px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(0.72rem, 1.3vw, 0.9rem);
}

.code-body p {
  margin: 0 0 15px;
  color: #d9d8de;
  text-wrap: nowrap;
}

.code-body b {
  display: inline-block;
  width: 34px;
  color: #454650;
  font-weight: 500;
}

.code-body .muted {
  color: #a98feb;
}

.code-body .accent {
  color: #76d6d2;
}

.code-body .success {
  color: var(--green);
}

.code-body .indent {
  padding-left: 24px;
}

.work-section {
  padding: 112px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}

.section-heading .eyebrow {
  margin: 0;
}

h2 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.project-card {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 100px 1fr 260px;
  align-items: center;
  gap: 40px;
  padding: 52px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(115deg, rgba(159, 122, 234, 0.1), transparent 42%),
    var(--surface);
}

.project-number {
  align-self: start;
  color: #666572;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
}

.project-type {
  margin: 0 0 14px;
  color: var(--violet-bright);
  font-size: 0.7rem;
  font-weight: 720;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-copy h3 {
  margin: 0 0 16px;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.project-copy > p:not(.project-type) {
  max-width: 550px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.platforms {
  display: flex;
  gap: 9px;
  margin-top: 27px;
}

.platforms span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c9c7cf;
  font-size: 0.68rem;
  font-weight: 680;
}

.project-mark {
  width: 220px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  justify-self: end;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22%;
  background: transparent;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
}

.project-mark img {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  border-radius: 22%;
  object-fit: cover;
  box-shadow: none;
}

.contact-section {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px 56px;
  padding: 112px 0 126px;
  border-top: 1px solid var(--line);
}

.contact-section .eyebrow {
  grid-row: 1 / 3;
}

.contact-section h2 {
  max-width: none;
}

.contact-section > a {
  width: fit-content;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.45rem);
  text-decoration: none;
  transition: color 180ms ease;
}

.contact-section > a:hover,
.contact-section > a:focus-visible {
  color: var(--violet-bright);
}

.contact-section > a span {
  margin-left: 10px;
}

footer {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: #6f6d78;
  font-size: 0.7rem;
}

footer p {
  margin: 0;
}

@media (max-width: 840px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-top: 82px;
  }

  .visual {
    min-height: 360px;
  }

  .section-heading {
    display: block;
  }

  .section-heading .eyebrow {
    margin-bottom: 22px;
  }

  .project-card {
    grid-template-columns: 52px 1fr;
  }

  .project-mark {
    position: absolute;
    right: -54px;
    bottom: -88px;
    width: 200px;
    opacity: 0.34;
  }

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

@media (max-width: 560px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 32px), var(--max));
  }

  .site-header {
    min-height: 78px;
  }

  .wordmark-sub {
    display: none;
  }

  nav {
    gap: 20px;
  }

  .hero {
    min-height: auto;
    padding: 68px 0 76px;
  }

  h1 {
    font-size: clamp(3.15rem, 16vw, 4.4rem);
  }

  .hero-text {
    margin: 25px 0 29px;
  }

  .visual {
    min-height: 310px;
  }

  .orbit-one {
    width: 295px;
    height: 295px;
  }

  .orbit-two {
    width: 230px;
    height: 230px;
  }

  .code-card {
    width: calc(100% - 8px);
  }

  .code-top small {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .work-section {
    padding: 86px 0;
  }

  .project-card {
    min-height: 440px;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 20px;
    padding: 30px;
  }

  .project-number {
    display: none;
  }

  .project-mark {
    right: -70px;
    bottom: -95px;
  }

  .contact-section {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 86px 0 96px;
  }

  .contact-section .eyebrow {
    grid-row: auto;
  }

  footer {
    min-height: 110px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
