:root {
  color-scheme: dark;
  --bg: #080b0f;
  --panel: #10161d;
  --panel-strong: #151c23;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f4f7f8;
  --muted: #aeb9bf;
  --soft: #d8e0e3;
  --cyan: #69d9e7;
  --amber: #e6b257;
  --green: #8ed3a2;
  --ink: #080b0f;
  --max: 1180px;
  --header: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 72%, transparent);
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header);
  padding: 0 clamp(18px, 4vw, 48px);
  border-bottom: 1px solid transparent;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(8, 11, 15, 0.78);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.header-action {
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 720;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--cyan);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.nav a,
.header-action {
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--soft);
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav a:hover,
.header-action:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
}

.header-action {
  justify-self: end;
  border: 1px solid var(--line);
}

.hero {
  position: relative;
  min-height: min(820px, 96vh);
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 11, 15, 0.96) 0%, rgba(8, 11, 15, 0.82) 34%, rgba(8, 11, 15, 0.38) 70%, rgba(8, 11, 15, 0.62) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 38%);
}

.hero-content {
  display: flex;
  min-height: min(820px, 96vh);
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding-top: calc(var(--header) + 54px);
  padding-bottom: 80px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(4.4rem, 14vw, 9.6rem);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--soft);
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
}

.hero-actions,
.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions {
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 7px;
  font-weight: 760;
  line-height: 1.1;
}

.button.primary {
  background: var(--text);
  color: var(--ink);
}

.button.primary:hover {
  background: var(--cyan);
}

.button.secondary {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero-metrics {
  display: grid;
  width: min(760px, 100%);
  margin: 58px 0 0;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-metrics div {
  padding: 18px 18px 18px 0;
}

.hero-metrics div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.hero-metrics dt {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-metrics dd {
  margin: 6px 0 0;
  color: var(--soft);
}

.section-inner {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
}

.intro {
  padding: 72px 0;
}

.intro-grid,
.story,
.method-grid,
.legal-grid,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.7fr);
  gap: clamp(28px, 7vw, 92px);
  align-items: start;
}

.intro p,
.story p,
.section-heading p,
.contact p,
.legal-copy p,
.service-card p,
.project-card p,
.project-feature p,
.capability-matrix p,
.steps li {
  color: var(--muted);
}

.intro-grid > p,
.story > p,
.legal-copy p,
.contact p {
  margin: 0;
  font-size: 1.08rem;
}

.services,
.experience,
.capabilities,
.story,
.contact {
  padding: 112px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading.compact {
  max-width: 690px;
}

.section-heading p {
  margin: 18px 0 0;
  font-size: 1.05rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  min-height: 252px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.028);
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.055);
}

.service-index,
.project-type {
  display: block;
  margin-bottom: 22px;
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.service-card p {
  margin: 18px 0 0;
}

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

.experience-grid article {
  min-height: 174px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.028);
}

.experience-grid h3 {
  color: var(--green);
}

.experience-grid p {
  margin: 16px 0 0;
  color: var(--muted);
}

.projects,
.method,
.legal,
.roadmap {
  padding: 94px 0;
}

.project-list {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 16px;
}

.project-feature,
.project-card,
.capability-matrix > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 11, 15, 0.64);
}

.project-feature {
  display: grid;
  min-height: 360px;
  grid-row: span 2;
  align-content: space-between;
  padding: clamp(28px, 4vw, 46px);
}

.project-feature h3 {
  font-size: clamp(2.6rem, 8vw, 5.8rem);
  line-height: 0.9;
}

.project-feature p {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: 1.08rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 34px 0 0;
  list-style: none;
}

.tag-list li,
.roadmap-grid span {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--soft);
}

.tag-list li {
  padding: 8px 10px;
  font-size: 0.86rem;
}

.project-card {
  min-height: 172px;
  padding: 26px;
}

.project-card p {
  margin: 16px 0 0;
}

.section-link-row {
  display: flex;
  margin-top: 24px;
}

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

.case-card {
  display: grid;
  min-height: 360px;
  align-content: space-between;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.028);
}

.case-card.featured-case {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(105, 217, 231, 0.1), rgba(255, 255, 255, 0.028));
}

.case-card h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.case-card p {
  margin: 18px 0 0;
  color: var(--muted);
}

.project-stack,
.project-note {
  padding: 94px 0;
}

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

.stack-grid > div {
  min-height: 178px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 11, 15, 0.64);
}

.stack-grid h3 {
  color: var(--green);
}

.stack-grid p {
  margin: 16px 0 0;
  color: var(--muted);
}

.project-note {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 7vw, 92px);
  align-items: start;
}

.project-note > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.capability-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.capability-matrix > div {
  padding: 28px;
}

.capability-matrix h3 {
  color: var(--green);
}

.capability-matrix p {
  margin: 18px 0 0;
}

.steps {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  counter-reset: step;
  list-style: none;
}

.steps li {
  position: relative;
  min-height: 92px;
  padding: 22px 22px 22px 82px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.steps li::before {
  position: absolute;
  top: 22px;
  left: 22px;
  color: var(--amber);
  font-weight: 850;
  counter-increment: step;
  content: "0" counter(step);
}

.steps span {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-weight: 800;
}

.story {
  align-items: center;
}

.story-heading {
  display: grid;
  gap: 24px;
}

.story-emblem {
  width: min(164px, 42vw);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  object-fit: cover;
}

.legal-copy {
  display: grid;
  gap: 18px;
}

.legal-copy p {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.roadmap-grid span {
  display: grid;
  min-height: 82px;
  place-items: center;
  padding: 16px;
  text-align: center;
  font-weight: 760;
}

.contact {
  align-items: center;
  padding-bottom: 122px;
}

.contact .button {
  justify-self: end;
}

.contact-panel {
  display: grid;
  justify-items: end;
  gap: 14px;
}

.contact-panel p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  text-align: right;
}

.page-hero {
  padding-top: calc(var(--header) + 96px);
  padding-bottom: 70px;
}

.page-hero h1 {
  max-width: 980px;
  font-size: clamp(3.2rem, 9vw, 7.6rem);
  line-height: 0.9;
}

.page-hero p:not(.eyebrow) {
  max-width: 780px;
  margin: 26px 0 0;
  color: var(--soft);
  font-size: clamp(1.08rem, 2.2vw, 1.35rem);
}

.page-content {
  padding-bottom: 96px;
}

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

.info-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.028);
}

.info-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.info-card p {
  margin: 18px 0 0;
  color: var(--muted);
}

.legal-page {
  padding-top: calc(var(--header) + 72px);
  padding-bottom: 96px;
}

.legal-document {
  max-width: 860px;
}

.legal-document h1 {
  font-size: clamp(3rem, 8vw, 6.6rem);
}

.legal-document h2 {
  margin-top: 42px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.legal-document p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.legal-document a {
  color: var(--cyan);
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

@media (max-width: 940px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .intro-grid,
  .story,
  .method-grid,
  .legal-grid,
  .contact,
  .project-list,
  .capability-matrix,
  .package-grid,
  .case-grid,
  .stack-grid,
  .project-note {
    grid-template-columns: 1fr;
  }

  .case-card.featured-case {
    grid-column: auto;
  }

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

  .contact .button {
    justify-self: start;
  }

  .contact-panel {
    justify-items: start;
  }

  .contact-panel p {
    text-align: left;
  }
}

@media (max-width: 620px) {
  :root {
    --header: 64px;
  }

  .site-header {
    padding: 0 16px;
  }

  .brand span:last-child {
    display: none;
  }

  .header-action {
    padding-inline: 10px;
    font-size: 0.82rem;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    width: min(100% - 28px, var(--max));
    min-height: 760px;
    padding-top: calc(var(--header) + 32px);
    padding-bottom: 52px;
  }

  h1 {
    font-size: clamp(3.9rem, 21vw, 5.8rem);
  }

  h2 {
    font-size: clamp(1.85rem, 11vw, 3rem);
  }

  .hero-lead {
    font-size: 1.06rem;
  }

  .hero-metrics,
  .service-grid,
  .experience-grid,
  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics div + div {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .services,
  .experience,
  .capabilities,
  .story,
  .contact {
    padding: 78px 0;
  }

  .intro,
  .projects,
  .method,
  .legal,
  .roadmap,
  .project-stack,
  .project-note {
    padding: 68px 0;
  }

  .service-card {
    min-height: 210px;
    padding: 24px;
  }

  .project-feature {
    min-height: 320px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
