:root {
  color-scheme: dark;
  --bg: #100d16;
  --text: #f8f5ff;
  --muted: #c0b6cd;
  --line: #30273e;
  --brand: #6503fc;
  --brand-hover: color-mix(in srgb, var(--brand), white 12%);
  --brand-text: color-mix(in srgb, var(--brand), white 48%);
  --brand-border: color-mix(in srgb, var(--brand), #30273e 50%);
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 5px; }
.shell { width: min(1140px, calc(100% - 88px)); margin-inline: auto; }
.topbar { border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.wordmark { display: inline-flex; align-items: center; gap: 0; color: #fff; font-size: 24px; font-weight: 800; letter-spacing: -.065em; }
.wordmark img { margin-right: 10px; border-radius: 7px; }
.original-wordmark { display: block; max-width: 100%; }
nav { display: flex; gap: clamp(18px, 4vw, 42px); color: var(--muted); font-size: .9rem; font-weight: 600; }
nav a:hover, .demo-link:hover { color: #fff; }
.nav-cta { font-size: .87rem; color: var(--brand-text); border: 1px solid var(--brand-border); border-radius: 8px; padding: 9px 12px; font-weight: 700; }
.nav-cta:hover { background: color-mix(in srgb, var(--brand) 18%, var(--bg)); }
.nav-cta span { margin-left: 6px; }
.hero { display: grid; grid-template-columns: 1fr 1.02fr; gap: 3%; align-items: center; min-height: 510px; padding-block: 45px; }
.intro { position: relative; z-index: 1; }
.eyebrow { display: flex; gap: 10px; align-items: center; color: var(--brand-text); font: 600 .72rem/1.5 ui-monospace, monospace; letter-spacing: .13em; margin: 0 0 14px; }
.signal { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-text); box-shadow: 0 0 13px var(--brand); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.55rem, 5.45vw, 5.1rem); letter-spacing: -.076em; line-height: .98; margin-bottom: 22px; font-weight: 750; }
h1 em { color: var(--brand-text); font-style: normal; }
.intro-copy { color: var(--muted); font-size: clamp(.98rem, 1.4vw, 1.12rem); max-width: 435px; line-height: 1.65; margin-bottom: 26px; }
.button { border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 16px; border-radius: 8px; min-height: 47px; font-size: .91rem; font-weight: 750; }
.primary { color: #fff; background: var(--brand); }
.primary:hover { background: var(--brand-hover); }
.hero-art { position: relative; }
.hero-art svg { width: 100%; display: block; filter: drop-shadow(0 12px 30px #08060e80); animation: reveal 650ms ease-out both; }
@keyframes reveal { from { opacity: .4; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.projects { border-top: 1px solid var(--line); padding-block: 36px 58px; }
.services { border-top: 1px solid var(--line); padding-block: 36px 42px; }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.service { padding: 19px; background: #181321; border: 1px solid var(--line); border-top-color: var(--brand-border); border-radius: 12px; }
.service h3 { font-size: 1.12rem; }
.service p { margin: 0; color: var(--muted); font-size: .91rem; line-height: 1.55; }
.index { color: #fff; background: var(--brand); border-radius: 4px; padding: 1px 5px; letter-spacing: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 26px; margin-bottom: 24px; }
h2 { font-size: clamp(1.85rem, 3.8vw, 3rem); line-height: 1.05; letter-spacing: -.055em; margin-bottom: 0; }
.section-head p { color: var(--muted); margin-bottom: 0; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.project { min-width: 0; background: #181321; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.auto { --demo-color: #ffaf94; --art-bg: #271618; --art-glow: #78352a; }
.air { --demo-color: #9deded; --art-bg: #112327; --art-glow: #21535e; }
.project-art { overflow: hidden; background: radial-gradient(ellipse at center, var(--art-glow), transparent 68%), var(--art-bg); border-bottom: 1px solid var(--line); padding: 15px 18px 0; }
.mock-label { display: flex; justify-content: space-between; gap: 10px; color: var(--demo-color); font: 600 .64rem/1.5 ui-monospace, monospace; letter-spacing: .09em; }
.project-art svg { width: 100%; height: auto; display: block; max-height: 174px; }
.project-body { padding: 20px 22px 23px; }
.pill { display: inline-block; color: var(--demo-color); font: 600 .65rem/1.5 ui-monospace, monospace; letter-spacing: .06em; margin-bottom: 10px; }
h3 { font-size: clamp(1.2rem, 2.15vw, 1.62rem); letter-spacing: -.035em; margin-bottom: 7px; }
.project-body p { color: var(--muted); font-size: .92rem; line-height: 1.5; margin-bottom: 15px; }
.demo-link { background: transparent; border: 0; padding: 3px 0; color: var(--brand-text); font-weight: 750; text-align: left; }
.demo-link span { margin-left: 4px; }
.about { border-top: 1px solid var(--line); padding-block: 38px 46px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: center; }
.about > p { margin: 0; line-height: 1.7; color: var(--muted); }
.contacts { border-top: 1px solid var(--line); padding-block: 38px 46px; }
.contact-layout { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px 30px; }
.contact-layout p { margin: 10px 0 0; color: var(--muted); line-height: 1.55; }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-secondary { color: var(--brand-text); border-color: var(--brand-border); }
.contact-secondary:hover { background: color-mix(in srgb, var(--brand) 18%, var(--bg)); }
.footer { border-top: 1px solid var(--line); padding-block: 21px; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--muted); font-size: .82rem; }
.footer .wordmark { font-size: 20px; }
@media (max-width: 800px) {
  .shell { width: calc(100% - 44px); }
  .hero { min-height: auto; padding-block: 46px 32px; }
  .desktop { display: none; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .shell { width: calc(100% - 36px); }
  .topbar-inner { min-height: 62px; gap: 12px; flex-wrap: wrap; padding-block: 12px; }
  .wordmark { font-size: 22px; }
  .wordmark img { margin-right: 7px; }
  .topbar .original-wordmark { width: 102px; }
  .topbar nav { width: 100%; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; font-size: .82rem; }
  .nav-cta { display: none; }
  .hero { grid-template-columns: 1fr; gap: 22px; padding-block: 35px 24px; }
  .hero-art { width: 100%; max-width: 430px; justify-self: center; }
  h1 { font-size: clamp(2.85rem, 11vw, 4rem); max-width: 510px; margin-bottom: 15px; }
  .intro-copy { margin-bottom: 18px; }
  .projects { padding-block: 26px 34px; }
  .services { padding-block: 26px 30px; }
  .project-grid, .about { grid-template-columns: 1fr; }
  .about { gap: 13px; padding-block: 26px; }
  .contacts { padding-block: 26px 34px; }
  .footer > span { text-align: right; }
}
@media (max-width: 380px) {
  .service-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art svg { animation: none; }
}
