:root {
  color-scheme: dark;
  --bg: #000000;
  --panel: #08050d;
  --panel-2: #13091c;
  --line: rgba(128, 0, 181, 0.28);
  --text: #ffffff;
  --muted: #c8c0cf;
  --soft: #8b8194;
  --purple: #8000b5;
  --purple-bright: #b000f5;
  --deep-purple: #21002f;
  --max: 1180px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 4%, rgba(128, 0, 181, 0.22), transparent 28rem),
    linear-gradient(160deg, rgba(128, 0, 181, 0.16) 0%, rgba(0, 0, 0, 0) 30%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  font-weight: 760;
  letter-spacing: 0;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.2rem);
  max-width: 980px;
}

h2 {
  font-size: clamp(2rem, 4vw, 4.2rem);
}

h3 {
  font-size: 1.08rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 18px clamp(18px, 4vw, 46px);
  border-bottom: 1px solid rgba(128, 0, 181, 0.24);
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  font-weight: 720;
}

.brand img {
  width: 214px;
  max-width: 38vw;
  height: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.site-nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-color: rgba(176, 0, 245, 0.36);
  color: var(--text);
  background: rgba(128, 0, 181, 0.22);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.hero,
.page-hero,
.section,
.band {
  padding-right: clamp(18px, 4vw, 46px);
  padding-left: clamp(18px, 4vw, 46px);
}

.hero {
  position: relative;
  min-height: calc(92vh - 78px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(34px, 7vh, 70px);
  overflow: hidden;
  padding-top: clamp(72px, 10vh, 118px);
  padding-bottom: clamp(34px, 6vh, 62px);
  background:
    radial-gradient(circle at 74% 22%, rgba(128, 0, 181, 0.44), transparent 30%),
    linear-gradient(105deg, rgba(0, 0, 0, 0.98) 0%, rgba(20, 0, 31, 0.9) 43%, rgba(0, 0, 0, 0.5) 100%);
}

.hero-copy,
.section-inner,
.page-hero-inner,
.band-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  min-width: 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--purple-bright);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lede {
  max-width: 760px;
  margin-top: 24px;
  color: #ddd7e5;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 0 18px;
  font-weight: 720;
  color: var(--text);
  background: linear-gradient(180deg, #191020, #0c0711);
  text-align: center;
  white-space: nowrap;
}

.button.primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(90deg, var(--purple), var(--purple-bright));
  box-shadow: 0 14px 34px rgba(128, 0, 181, 0.32);
}

.button:hover {
  transform: translateY(-1px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  filter: saturate(1.08) contrast(1.1) brightness(0.68);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.98) 0%, rgba(16, 0, 24, 0.9) 42%, rgba(0, 0, 0, 0.34) 100%),
    radial-gradient(circle at 82% 36%, rgba(128, 0, 181, 0.42), transparent 28%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.96));
}

.hero::after {
  content: "CAPSULE";
  position: absolute;
  right: -0.06em;
  bottom: 0.08em;
  z-index: 1;
  color: rgba(255, 255, 255, 0.035);
  font-size: clamp(5rem, 18vw, 17rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.72;
  pointer-events: none;
}

.work-card::after,
.visual-band article::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.48));
}

.hero-capabilities {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  border: 1px solid rgba(128, 0, 181, 0.34);
  background: rgba(128, 0, 181, 0.24);
}

.hero-capabilities div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 18px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
}

.hero-capabilities span {
  color: var(--purple-bright);
  font-size: 0.74rem;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-capabilities strong {
  color: var(--text);
  font-size: clamp(1.05rem, 2vw, 1.38rem);
  line-height: 1.05;
}

.hero-capabilities small {
  color: var(--muted);
  font-size: 0.9rem;
}

.visual-band {
  padding: 0 clamp(18px, 4vw, 46px) 28px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(33, 0, 47, 0.32));
}

.visual-band-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.visual-band article {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(128, 0, 181, 0.26);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(19, 9, 28, 0.96), rgba(8, 5, 13, 0.96));
}

.visual-band img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  filter: saturate(0.92) contrast(1.04);
}

.visual-band div {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  padding: 16px;
  min-width: 0;
}

.visual-band strong {
  font-size: 0.98rem;
}

.visual-band span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding-top: 92px;
  padding-bottom: 92px;
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.6fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 42px;
  min-width: 0;
}

.section-header p {
  max-width: 520px;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 16px;
}

.grid-1 {
  display: grid;
  gap: 18px;
}

.grid-1 > *,
.grid-2 > *,
.grid-3 > *,
.grid-4 > * {
  min-width: 0;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.compact-card,
.work-card,
.demo-card,
.role-card,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(128, 0, 181, 0.12), rgba(8, 5, 13, 0) 46%),
    var(--panel);
  min-width: 0;
}

.service-card,
.compact-card,
.role-card {
  padding: 24px;
}

.service-card {
  min-height: 330px;
  position: relative;
  overflow: hidden;
}

.service-visual {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 20px;
  border: 1px solid rgba(128, 0, 181, 0.3);
  border-radius: var(--radius);
  object-fit: cover;
  filter: saturate(0.95) contrast(1.05);
}

.service-card .number {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 22px;
  border: 1px solid rgba(176, 0, 245, 0.42);
  border-radius: 50%;
  color: var(--purple-bright);
  background: rgba(128, 0, 181, 0.2);
  font-weight: 800;
}

.service-card h3,
.compact-card h2,
.role-card h2 {
  margin-bottom: 14px;
}

.compact-card h2,
.role-card h2,
.contact-panel h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  line-height: 1.14;
  overflow-wrap: anywhere;
}

.capability-list {
  display: grid;
  gap: 1px;
  border: 1px solid rgba(128, 0, 181, 0.26);
  background: rgba(128, 0, 181, 0.22);
}

.capability-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.45fr) minmax(0, 1fr);
  gap: 24px;
  padding: 22px;
  background: #08050d;
  min-width: 0;
}

.capability-row h3 {
  color: var(--text);
}

.band {
  padding-top: 72px;
  padding-bottom: 72px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 12%, rgba(176, 0, 245, 0.32), transparent 26rem),
    linear-gradient(100deg, rgba(128, 0, 181, 0.48), rgba(33, 0, 47, 0.36) 50%, rgba(0, 0, 0, 0.18)),
    #070409;
  color: var(--text);
}

.band p,
.band .eyebrow {
  color: var(--muted);
}

.band .eyebrow {
  color: #fff;
}

.band .button {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text);
  background: rgba(8, 7, 11, 0.45);
}

.page-hero {
  padding-top: 86px;
  padding-bottom: 72px;
}

.page-hero h1 {
  max-width: 1060px;
}

.page-hero p {
  max-width: 720px;
  margin-top: 22px;
  font-size: 1.14rem;
}

.work-card {
  position: relative;
  overflow: hidden;
}

.work-card img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  filter: saturate(0.95) contrast(1.05);
}

.work-card-body {
  position: relative;
  z-index: 1;
  padding: 22px;
  min-width: 0;
}

.work-card h2,
.demo-card h2 {
  margin-bottom: 12px;
  font-size: 1.28rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tags span {
  border: 1px solid rgba(128, 0, 181, 0.32);
  border-radius: 999px;
  padding: 5px 9px;
  color: #eadff4;
  font-size: 0.76rem;
  background: rgba(128, 0, 181, 0.16);
}

.demo-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1fr);
  gap: 26px;
  padding: 18px;
  min-width: 0;
}

.demo-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0d0d0f;
}

.demo-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.demo-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--soft);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    #121216;
  background-size: 28px 28px;
}

.timeline {
  display: grid;
  gap: 1px;
  border: 1px solid rgba(128, 0, 181, 0.26);
  background: rgba(128, 0, 181, 0.22);
}

.wide-visual {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  filter: saturate(0.92) contrast(1.06);
}

.timeline-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  background: #08050d;
  min-width: 0;
}

.timeline-item strong {
  color: var(--purple-bright);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.48fr);
  gap: 18px;
}

.contact-panel {
  padding: 26px;
}

.contact-panel a,
.contact-panel h2 {
  overflow-wrap: normal;
}

.email-heading,
.email-text {
  display: inline-block;
  max-width: 100%;
  line-height: 1.16;
  overflow-wrap: normal;
  word-break: keep-all;
}

.email-heading {
  font-size: clamp(1.18rem, 2.1vw, 1.7rem);
}

.email-text {
  color: var(--text);
  font-size: clamp(0.9rem, 1.25vw, 1rem);
  font-weight: 700;
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--text);
  background: #08050d;
  font: inherit;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(176, 0, 245, 0.4);
  outline-offset: 2px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.34fr) 180px;
  gap: 30px;
  padding: 54px clamp(18px, 4vw, 46px);
  border-top: 1px solid rgba(128, 0, 181, 0.26);
  background: linear-gradient(180deg, rgba(33, 0, 47, 0.28), rgba(0, 0, 0, 0.96));
}

.site-footer > div {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.site-footer h2 {
  font-size: 0.84rem;
  color: var(--soft);
  text-transform: uppercase;
}

.site-footer a,
.site-footer p {
  overflow-wrap: break-word;
}

.footer-brand {
  margin-bottom: 6px;
}

@media (max-width: 1120px) {
  .hero,
  .section-header,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .visual-band-inner {
    grid-template-columns: 1fr;
  }

  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav {
    position: fixed;
    top: 72px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #08050d;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border-radius: var(--radius);
    padding: 13px;
  }

  .nav-toggle {
    display: block;
  }
}

@media (max-width: 720px) {
  h1 {
    font-size: clamp(2.45rem, 12.7vw, 4.45rem);
    line-height: 1.04;
  }

  h2 {
    font-size: clamp(1.85rem, 9vw, 3.1rem);
  }

  .brand img {
    width: min(172px, 54vw);
  }

  .hero,
  .section,
  .page-hero {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .site-header {
    padding-right: 18px;
    padding-left: 18px;
  }

  .actions {
    gap: 10px;
  }

  .button {
    flex: 1 1 148px;
    min-width: 0;
    padding-right: 14px;
    padding-left: 14px;
    white-space: normal;
  }

  .hero-capabilities {
    gap: 1px;
  }

  .hero-capabilities div {
    padding: 14px;
  }

  .hero-capabilities small {
    display: none;
  }

  .email-heading {
    font-size: clamp(1rem, 5vw, 1.34rem);
  }

  .email-text {
    font-size: clamp(0.92rem, 4.4vw, 1.05rem);
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .demo-card,
  .capability-row,
  .timeline-item,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding-bottom: 36px;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: clamp(2.25rem, 12vw, 3.25rem);
  }

  .brand img {
    width: min(154px, 52vw);
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }
}
