@font-face {
  font-family: "DM Sans";
  src: url("dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("space-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0e0b17;
  --panel: #181322;
  --text: #faf7ff;
  --muted: #bbb1ca;
  --accent: #c9adff;
  --outline: #35294a;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 5.75rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.6 var(--body);
}

a { color: inherit; text-decoration: none; }
p, figure { margin: 0; }
img { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
}

h1 {
  font-size: clamp(3.1rem, 5.75vw, 5.25rem);
  letter-spacing: -.075em;
  line-height: .99;
}

h1 span { display: block; }
h1 span:last-child { color: var(--accent); }

h2 { font-size: clamp(2.35rem, 4.3vw, 4rem); letter-spacing: -.064em; }
h2 em { color: var(--accent); font-style: normal; }
h3 { font-size: 1.4rem; letter-spacing: -.04em; }

:focus-visible { outline: 2px solid #eee0ff; outline-offset: 4px; }

.wrap { width: min(calc(100% - 6rem), 75rem); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 8vw, 8rem); }

.skip-link {
  position: fixed;
  z-index: 5;
  top: .75rem;
  left: .75rem;
  transform: translateY(-200%);
  padding: .65rem 1rem;
  border-radius: .5rem;
  background: var(--accent);
  color: #170b28;
}

.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 3;
  top: 0;
  background: rgb(14 11 23 / .94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--outline);
}

.header-inner, .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.header-inner { min-height: 4.75rem; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .085em;
}

.wordmark img { width: 2.44rem; height: auto; }

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); }
.site-nav a, .footer-inner > a:last-child { color: var(--muted); font-size: .925rem; }
.site-nav a:hover, .footer-inner > a:last-child:hover { color: var(--text); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #c6a4ff;
  border: 1px solid transparent;
  border-radius: .65rem;
  color: #180b27;
  padding: .79rem 1.14rem;
  font: 700 .94rem/1.3 var(--body);
  min-height: 3rem;
  text-align: center;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, translate .2s ease;
}

.button:hover { background: #dfcaff; }
.button-outline { background: transparent; border-color: #64527d; color: var(--text); }
.button-outline:hover { background: #291e3c; border-color: #ac91d5; }
.button-small { min-height: 2.55rem; padding: .55rem .9rem; font-size: .875rem; }

.hero {
  padding-block: clamp(4.4rem, 8.5vw, 8.25rem) clamp(4rem, 7.5vw, 7.5rem);
  background: radial-gradient(ellipse at 77% 45%, #281843 0%, var(--bg) 55%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4.1rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--accent);
  font: 700 .875rem/1.3 var(--display);
  letter-spacing: .11em;
  text-transform: uppercase;
}

.nova {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  background: currentColor;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.hero h1 { margin-top: 1.35rem; }
.hero-intro { color: var(--muted); font-size: 1.15rem; max-width: 29rem; margin-top: 1.5rem; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.65rem; }

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: .9rem;
}

.hero-note:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.hero-note .nova { color: var(--accent); }

.logo-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 1.32;
  min-height: 15rem;
  padding-bottom: clamp(2rem, 5vw, 4.25rem);
  border: 1px solid #5a4277;
  border-radius: 1rem;
  background: radial-gradient(ellipse at 54% 43%, #3a255d, #181025 67%, var(--bg));
  box-shadow: 0 1.5rem 5rem #070510a8, 0 0 3.25rem #9a5cff29;
}

.logo-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -8% 0;
  background: radial-gradient(#c9adff42 1px, transparent 1px) center / 1.3rem 1.3rem;
  mask-image: radial-gradient(ellipse, #000 18%, transparent 72%);
}

.logo-orbit {
  position: absolute;
  z-index: -1;
  inset: 15% 7% 28%;
  transform: rotate(-13deg);
  border: 1px solid #8967b785;
  border-radius: 50%;
}

.logo-orbit::before, .logo-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid #8967b75e;
  border-radius: inherit;
}

.logo-orbit::before { inset: 12% -5%; }
.logo-orbit::after { inset: -13% 11%; transform: rotate(27deg); }

.hero-logo {
  width: min(86%, 29rem);
  height: auto;
  mix-blend-mode: screen;
}

.hero-detail {
  position: absolute;
  right: clamp(.75rem, 3vw, 1.35rem);
  bottom: clamp(.75rem, 3vw, 1.35rem);
  width: clamp(5.5rem, 12vw, 8rem);
  overflow: hidden;
  border: 1px solid #5a4277;
  border-radius: .55rem;
  background: #181025;
  box-shadow: 0 .75rem 1.5rem #07051070;
}

.hero-detail img {
  width: 100%;
  height: auto;
  background: #271249;
}

.hero-detail figcaption {
  padding: .36rem .4rem;
  border-top: 1px solid var(--outline);
  color: var(--muted);
  font: 700 .75rem/1.1 var(--display);
  text-align: center;
}

.services {
  background: #110d1a;
  border-top: 1px solid var(--outline);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .5fr);
  gap: 1.75rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section-intro h2, .contact-copy h2 { margin-top: .85rem; }
.section-intro > p, .contact-copy > p:last-of-type { color: var(--muted); max-width: 32rem; }

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

.service-card {
  padding: clamp(1.35rem, 2.4vw, 2rem);
  border-radius: .85rem;
  border: 1px solid var(--outline);
  background: linear-gradient(148deg, #1c152a, #15101f);
}

.service-card p, .steps p { color: var(--muted); margin-top: .65rem; }

.service-icon {
  display: grid;
  position: relative;
  place-items: center;
  background: #2a1b40;
  border: 1px solid #4b3665;
  color: var(--accent);
  border-radius: .55rem;
  width: 2.85rem;
  height: 2.85rem;
  margin-bottom: 1.35rem;
}

.service-icon i {
  position: relative;
  width: 1.32rem;
  height: 1.08rem;
  border: 1.5px solid currentColor;
  border-radius: .17rem;
}

.service-icon i::before { content: ""; position: absolute; }

.icon-browser i::before { border-top: 1.5px solid currentColor; inset: .27rem 0 auto; }
.icon-layout i::before { border-right: 1.5px solid currentColor; inset: 0 .4rem 0 0; }

.icon-redesign i {
  width: .95rem;
  height: .95rem;
  transform: rotate(45deg);
}

.icon-redesign i::before {
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  inset: 50% -.35rem -.35rem 50%;
  border-radius: 0 0 .17rem 0;
}

.prototype {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr .8fr;
  align-items: center;
  gap: 2rem;
  margin-top: clamp(3rem, 6vw, 6rem);
  border: 1px solid #503a6e;
  border-radius: 1rem;
  background: radial-gradient(ellipse at 85% 60%, #3a255d, #21152f 60%, #1c1329);
}

.prototype-copy { padding: clamp(1.65rem, 4vw, 3.45rem); padding-right: 0; }
.prototype h2 { margin-top: .7rem; font-size: clamp(2rem, 3.45vw, 3.25rem); }
.prototype-copy > p:last-of-type { color: #d5c8e5; margin-top: .85rem; max-width: 30rem; }
.prototype .button { margin-top: 1.3rem; }

.prototype-art {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 1.5rem 2.5rem 1.5rem 0;
  background-image: radial-gradient(#a777df40 1px, transparent 1px);
  background-size: 15px 15px;
  mask-image: linear-gradient(to right, transparent, #000 16%);
}

.wireframe {
  width: min(100%, 19rem);
  transform: rotate(-7deg);
  padding: .75rem;
  border: 1px solid #7958a3;
  border-radius: .6rem;
  background: #25173a;
  box-shadow: 0 1rem 3rem #100822a6;
}

.wireframe-top { display: flex; gap: .2rem; padding: .15rem 0 .65rem; border-bottom: 1px solid #4c3668; }
.wireframe-top span { width: .3rem; height: .3rem; border-radius: 50%; background: #a17bc8; }
.wireframe-content { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding-block: .65rem; }
.wireframe-copy { display: grid; align-content: center; gap: .35rem; }
.wireframe-copy b { height: .28rem; border-radius: .15rem; width: 80%; background: #705491; }
.wireframe-copy b:first-child { width: 95%; height: .47rem; background: #ae87d4; }
.wireframe-copy b:nth-child(3) { width: 55%; }
.wireframe-copy b:last-child { width: 43%; height: .62rem; margin-top: .18rem; background: #8e68bb; }

.wireframe-image {
  display: grid;
  min-height: 4.5rem;
  place-items: center;
  border-radius: .25rem;
  background: linear-gradient(145deg, #7751a6, #35204e);
  color: #ceb2ee;
  font-size: 2.4rem;
}

.wireframe-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; }
.wireframe-cards i { height: 1.75rem; border-radius: .25rem; border: 1px solid #553b75; background: #392652; }

.process { border-top: 1px solid var(--outline); }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; margin: 0; border-top: 1px solid var(--outline); }

.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.5rem 1.4rem 0;
  border-left: 1px solid var(--outline);
}

.steps li:first-child { border-left: 0; padding-left: 0; }
.steps li::before { content: "0" counter(step); display: block; margin-bottom: 1.5rem; color: var(--accent); font: 700 1rem/1 var(--display); }

.contact {
  border-top: 1px solid var(--outline);
  background: radial-gradient(ellipse at 18% 30%, #221435, #130e1d 56%);
}

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact-copy > p:last-of-type { margin-top: 1rem; }
.contact-details { font-style: normal; margin-top: 1.8rem; }

.contact-details a {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .3rem 1rem;
  padding-block: .85rem;
  border-top: 1px solid #453455;
}

.contact-details a:last-child { border-bottom: 1px solid #453455; }
.contact-details a span { color: var(--muted); }
.contact-details a strong { overflow-wrap: anywhere; }
.contact-details a:hover strong { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }

.contact-form {
  display: grid;
  gap: 1rem;
  border: 1px solid #48375b;
  border-radius: .85rem;
  background: var(--panel);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.contact-form label { display: grid; gap: .36rem; font-size: .89rem; font-weight: 700; }
.contact-form .button { justify-self: start; }

input, select, textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #5e4a76;
  border-radius: .4rem;
  background: #0e0a17;
  color: var(--text);
  min-height: 2.75rem;
  padding: .6rem .7rem;
  font: 400 1rem/1.35 var(--body);
}

select {
  appearance: none;
  padding-right: 2rem;
  background-image: linear-gradient(45deg, transparent 50%, #c9adff 50%), linear-gradient(135deg, #c9adff 50%, transparent 50%);
  background-position: calc(100% - 1.03rem) 50%, calc(100% - .73rem) 50%;
  background-repeat: no-repeat;
  background-size: .34rem .34rem;
}

textarea { resize: vertical; }
.form-note, .form-status { color: var(--muted); font-size: .875rem; }
.form-status:not(:empty) { margin-top: .35rem; }
.form-status a { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }

.site-footer { border-top: 1px solid var(--outline); }
.footer-inner { padding-block: 1.45rem; }
.footer-inner p { font-size: .875rem; color: var(--muted); }

@media (max-width: 66rem) {
  .wrap { width: min(calc(100% - 4rem), 75rem); }
}

@media (max-width: 55rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 38rem; }
  .logo-stage { width: 100%; max-width: 38rem; }
  h1 { font-size: clamp(3.5rem, 9vw, 5.25rem); }
  .section-intro { grid-template-columns: 1fr; gap: .9rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { max-width: 38rem; }
}

@media (max-width: 43rem) {
  html { scroll-padding-top: 7rem; }
  .wrap { width: calc(100% - 2.5rem); }
  .header-inner { min-height: auto; flex-wrap: wrap; gap: .35rem 1rem; padding-top: .55rem; }
  .site-nav { order: 1; width: 100%; justify-content: space-between; gap: .4rem; }
  .site-nav a { display: block; padding: .45rem .25rem .6rem; }
  .site-nav a:first-child { padding-left: 0; }
  .hero { padding-top: 3.25rem; }
  .hero-grid { gap: 1.65rem; }
  .hero-intro { font-size: 1.05rem; }
  .hero .actions { gap: .5rem; }
  .hero .actions .button { padding-inline: .65rem; font-size: .875rem; }
  .service-grid { grid-template-columns: 1fr; }
  .prototype { grid-template-columns: 1fr; gap: .5rem; }
  .prototype-copy { padding-right: clamp(1.65rem, 4vw, 3.45rem); }
  .prototype-art { padding: .75rem 1.75rem 2.2rem; mask-image: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; }
  .steps li { border-top: 1px solid var(--outline); padding: 1.15rem .75rem 1.3rem; }
  .steps li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .steps li::before { margin-bottom: .8rem; }
  .footer-inner { flex-wrap: wrap; gap: .55rem 1.5rem; }
}

@media (max-width: 24rem) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.1rem; }
  .wrap { width: calc(100% - 2rem); }
  .form-row { grid-template-columns: 1fr; }
}

@keyframes rise-in {
  from { opacity: .2; translate: 0 1.2rem; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes logo-in {
  from { opacity: 0; transform: translateY(.7rem) scale(.92); }
  to { opacity: 1; transform: none; }
}

@keyframes orbit-in {
  from { opacity: 0; transform: rotate(-22deg) scale(.92); }
  to { opacity: 1; transform: rotate(-13deg); }
}

@keyframes grid-drift {
  to { translate: 0 1.75rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > .eyebrow,
  .hero h1 span,
  .hero-intro,
  .hero .actions,
  .hero-note,
  .hero-detail,
  .is-revealed {
    animation: rise-in .65s cubic-bezier(.2, .7, .2, 1) var(--entry-delay, 0ms) backwards;
  }

  .hero h1 span:first-child { --entry-delay: 60ms; }
  .hero h1 span:last-child { --entry-delay: 135ms; }
  .hero-intro { --entry-delay: 190ms; }
  .hero .actions { --entry-delay: 240ms; }
  .hero-note { --entry-delay: 290ms; }
  .hero-detail { --entry-delay: 310ms; }

  .hero-logo { animation: logo-in .95s cubic-bezier(.2, .7, .2, 1) .12s backwards; }
  .logo-orbit { animation: orbit-in 1.1s cubic-bezier(.2, .7, .2, 1) backwards; }

  @supports (animation-timeline: view()) {
    .logo-stage::before {
      animation: grid-drift linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 100%;
    }
  }
}

@media (min-width: 43.01rem) and (prefers-reduced-motion: no-preference) {
  .service-card:nth-child(2), .steps li:nth-child(2) { --entry-delay: 65ms; }
  .service-card:nth-child(3), .steps li:nth-child(3) { --entry-delay: 130ms; }
  .steps li:nth-child(4) { --entry-delay: 195ms; }
}

@media (hover: hover) {
  .service-card:hover { border-color: #7958a3; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .button:hover, .service-card:hover { translate: 0 -.18rem; }
  .service-card { transition: border-color .2s ease, translate .2s ease; }
  .hero-logo, .logo-orbit { transition: transform .55s cubic-bezier(.2, .7, .2, 1); }
  .logo-stage:hover .hero-logo { transform: scale(1.035); }
  .logo-stage:hover .logo-orbit { transform: rotate(-9deg) scale(1.04); }
}

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