:root {
  color-scheme: dark;
  --ink: #06101f;
  --ink-deep: #030a14;
  --paper: #dbe4fb;
  --paper-bright: #edf2ff;
  --paper-dim: rgba(219, 228, 251, 0.62);
  --paper-faint: rgba(219, 228, 251, 0.1);
  --ink-dim: rgba(6, 16, 31, 0.62);
  --ink-faint: rgba(6, 16, 31, 0.11);
  --line-dark: rgba(219, 228, 251, 0.14);
  --line-light: rgba(6, 16, 31, 0.16);
  --signal: #90aaff;
  --signal-light: #b7c7ff;
  --container: 1220px;
  --container-wide: 1380px;
  --header-h: 76px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--paper);
  background: var(--ink);
  font-family: "Vazirmatn", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

::selection {
  color: var(--ink);
  background: var(--signal-light);
}

.container,
.container-wide {
  width: min(var(--container), calc(100% - 64px));
  margin-inline: auto;
}

.container-wide {
  width: min(var(--container-wide), calc(100% - 48px));
}

.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  height: 2px;
  pointer-events: none;
  background: transparent;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: right center;
  will-change: transform;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line-dark);
  background: rgba(6, 16, 31, 0.9);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 32px;
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  width: 184px;
  flex: 0 0 auto;
}

.brand::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -18px;
  width: 5px;
  height: 5px;
  background: var(--signal);
  transform: translateY(-50%);
}

.brand img {
  width: 100%;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  position: relative;
  padding-block: 10px;
  color: var(--paper-dim);
  font-size: 0.78rem;
  font-weight: 600;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 200ms ease;
}

.nav-links a:hover {
  color: var(--paper);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 0;
  color: var(--paper);
  background: transparent;
  cursor: pointer;
}

.nav-toggle__label {
  font-size: 0.72rem;
  font-weight: 700;
}

.nav-toggle__icon {
  position: relative;
  display: block;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-dark);
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--paper);
}

.nav-toggle__icon::before {
  top: -2px;
  right: -2px;
}

.nav-toggle__icon::after {
  bottom: -2px;
  left: -2px;
}

.nav-toggle__icon i {
  position: absolute;
  right: 6px;
  left: 6px;
  height: 1px;
  background: currentColor;
  transition: transform 180ms ease, top 180ms ease;
}

.nav-toggle__icon i:first-child {
  top: 9px;
}

.nav-toggle__icon i:last-child {
  top: 16px;
}

.nav-toggle.active .nav-toggle__icon i:first-child {
  top: 13px;
  transform: rotate(45deg);
}

.nav-toggle.active .nav-toggle__icon i:last-child {
  top: 13px;
  transform: rotate(-45deg);
}

.section-rail {
  position: fixed;
  top: 50%;
  left: 18px;
  z-index: 70;
  display: grid;
  gap: 12px;
  transform: translateY(-50%);
}

.section-rail::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 50%;
  z-index: -1;
  width: 1px;
  background: rgba(219, 228, 251, 0.12);
}

.section-rail a {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: transparent;
}

.section-rail a::before {
  content: "";
  width: 5px;
  height: 5px;
  border: 1px solid rgba(219, 228, 251, 0.45);
  background: var(--ink);
  transition: width 180ms ease, height 180ms ease, background-color 180ms ease;
}

.section-rail a span {
  position: absolute;
  left: 34px;
  color: var(--paper);
  font-family: "Inter", sans-serif;
  font-size: 0.58rem;
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.section-rail a.active::before,
.section-rail a:hover::before {
  width: 9px;
  height: 9px;
  border-color: var(--signal);
  background: var(--signal);
}

.section-rail a.active span,
.section-rail a:hover span {
  opacity: 1;
  transform: translateX(0);
}

.scene {
  position: relative;
  isolation: isolate;
}

.scene-dark {
  color: var(--paper);
  background: var(--ink);
}

.scene-light {
  color: var(--ink);
  background: var(--paper);
}

.micro-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper-dim);
  direction: ltr;
  font-family: "Inter", "Vazirmatn", sans-serif;
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.micro-label .pixel {
  width: 7px;
  height: 7px;
  background: var(--paper);
}

.micro-label .micro-index {
  margin-left: auto;
  opacity: 0.55;
}

.micro-label-dark {
  color: var(--ink-dim);
}

.micro-label-dark .pixel {
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100svh;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(219, 228, 251, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(219, 228, 251, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to left, #000, transparent 80%);
}

.hero::after {
  content: "";
  position: absolute;
  top: 12%;
  left: -12%;
  z-index: -1;
  width: 46vw;
  aspect-ratio: 1;
  border: 1px solid rgba(144, 170, 255, 0.08);
  border-radius: 50%;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
  align-items: center;
  gap: clamp(44px, 7vw, 108px);
  width: 100%;
  padding-block: 64px 44px;
}

.hero-copy {
  position: relative;
  z-index: 3;
}

.hero h1 {
  max-width: 800px;
  margin: 28px 0 24px;
  font-size: clamp(2.75rem, 4.9vw, 5.15rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.18;
}

.hero-lead {
  max-width: 650px;
  margin: 0;
  color: var(--paper-dim);
  font-size: clamp(0.95rem, 1.15vw, 1.08rem);
  font-weight: 300;
  line-height: 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 25px;
  margin-top: 34px;
}

.shape-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  gap: 13px;
  padding: 0 24px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  font-size: 0.76rem;
  font-weight: 750;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

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

.shape-button-light {
  color: var(--ink);
  background: var(--paper);
}

.shape-button-light:hover {
  background: var(--paper-bright);
}

.shape-button-dark {
  color: var(--paper);
  background: var(--ink);
}

.shape-button-dark:hover {
  background: #111d30;
}

.button-pixels {
  position: relative;
  display: block;
  width: 14px;
  height: 18px;
}

.button-pixels i {
  position: absolute;
  width: 4px;
  height: 4px;
  background: currentColor;
}

.button-pixels i:nth-child(1) {
  top: 0;
  right: 0;
}

.button-pixels i:nth-child(2) {
  top: 7px;
  left: 0;
}

.button-pixels i:nth-child(3) {
  right: 0;
  bottom: 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper-dim);
  font-size: 0.76rem;
  font-weight: 600;
}

.text-link span {
  transition: transform 180ms ease;
}

.text-link:hover {
  color: var(--paper);
}

.text-link:hover span {
  transform: translate(-3px, 3px);
}

.hero-engine {
  position: relative;
  display: grid;
  place-items: center;
  width: min(510px, 100%);
  aspect-ratio: 1;
  margin-inline: auto;
}

.engine-grid {
  position: absolute;
  inset: 8%;
  border: 1px solid var(--line-dark);
  opacity: 0.8;
  background-image:
    linear-gradient(rgba(219, 228, 251, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(219, 228, 251, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  clip-path: polygon(0 8%, 8% 0, 92% 0, 100% 8%, 100% 92%, 92% 100%, 8% 100%, 0 92%);
}

.engine-grid::before,
.engine-grid::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--signal);
}

.engine-grid::before {
  top: -1px;
  right: -1px;
}

.engine-grid::after {
  bottom: -1px;
  left: -1px;
}

.engine-orbit {
  position: absolute;
  border: 1px solid rgba(219, 228, 251, 0.18);
  border-radius: 50%;
  animation: orbit-rotate 30s linear infinite;
}

.engine-orbit::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -4px;
  width: 7px;
  height: 7px;
  background: var(--signal);
  transform: translateY(-50%);
}

.engine-orbit-outer {
  width: 74%;
  aspect-ratio: 1;
}

.engine-orbit-inner {
  width: 49%;
  aspect-ratio: 1;
  border-style: dashed;
  animation-duration: 21s;
  animation-direction: reverse;
}

.engine-core {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40%;
  aspect-ratio: 1;
  border: 1px solid rgba(219, 228, 251, 0.26);
  border-radius: 50%;
  background: var(--ink);
}

.engine-core::before,
.engine-core::after {
  content: "";
  position: absolute;
  background: var(--paper);
}

.engine-core::before {
  top: -4px;
  left: 50%;
  width: 7px;
  height: 7px;
  transform: translateX(-50%);
}

.engine-core::after {
  right: -4px;
  top: 50%;
  width: 7px;
  height: 7px;
  transform: translateY(-50%);
}

.engine-core img {
  width: 76%;
  height: auto;
}

.engine-node {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line-dark);
  color: var(--paper-dim);
  background: var(--ink);
  direction: ltr;
  font-family: "Inter", sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.engine-node i {
  width: 5px;
  height: 5px;
  background: var(--signal);
}

.node-enterprise {
  top: 14%;
  right: 0;
}

.node-process {
  right: 4%;
  bottom: 15%;
}

.node-data {
  top: 40%;
  left: 0;
}

.engine-coordinate {
  position: absolute;
  color: rgba(219, 228, 251, 0.35);
  direction: ltr;
  font-family: "Inter", sans-serif;
  font-size: 0.53rem;
  letter-spacing: 0.1em;
}

.coordinate-a {
  top: 5%;
  left: 12%;
}

.coordinate-b {
  right: 10%;
  bottom: 4%;
}

.hero-footer {
  display: grid;
  grid-template-columns: repeat(3, 150px) 1fr;
  align-items: stretch;
  width: 100%;
  border-top: 1px solid var(--line-dark);
}

.hero-stat {
  display: grid;
  align-content: center;
  min-height: 90px;
  padding-inline: 20px;
  border-left: 1px solid var(--line-dark);
}

.hero-stat:first-child {
  padding-right: 0;
}

.hero-stat strong {
  direction: ltr;
  font-family: "Inter", "Vazirmatn", sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
}

.hero-stat span {
  margin-top: 3px;
  color: var(--paper-dim);
  font-size: 0.66rem;
}

.scroll-cue {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: var(--paper-dim);
  font-size: 0.64rem;
}

.scroll-cue i {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-dark);
}

.scroll-cue i::before,
.scroll-cue i::after {
  content: "";
  position: absolute;
}

.scroll-cue i::before {
  top: 9px;
  left: 50%;
  width: 1px;
  height: 16px;
  background: var(--paper);
  transform: translateX(-50%);
}

.scroll-cue i::after {
  bottom: 9px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-bottom: 1px solid var(--paper);
  border-left: 1px solid var(--paper);
  transform: translateX(-50%) rotate(-45deg);
}

.about-scene,
.projects-scene,
.contact-scene {
  padding-block: 120px;
}

.scene-heading {
  padding-bottom: 64px;
}

.scene-heading h2,
.clients-heading h2,
.principles-title h2,
.contact-copy h2 {
  max-width: 920px;
  margin: 32px 0 0;
  font-size: clamp(2.25rem, 4vw, 4.3rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 1.25;
}

.scene-heading-split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: end;
  gap: 70px;
}

.scene-heading-split p {
  margin: 0 0 6px;
  color: var(--ink-dim);
  font-size: 0.9rem;
  font-weight: 350;
  line-height: 2;
}

.scene-dark .scene-heading-split p {
  color: var(--paper-dim);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 80px;
  padding-block: 60px 80px;
  border-top: 1px solid var(--line-light);
}

.statement-lead {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.45rem, 2.35vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.65;
}

.about-copy {
  padding-top: 5px;
}

.about-copy p {
  margin: 0 0 18px;
  color: var(--ink-dim);
  font-size: 0.9rem;
  line-height: 2.1;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.capability-item {
  position: relative;
  min-height: 255px;
  padding: 26px 24px 30px;
  border-left: 1px solid var(--line-light);
}

.capability-item:last-child {
  border-left: 0;
}

.capability-item::before {
  content: "";
  position: absolute;
  top: -4px;
  right: -4px;
  width: 7px;
  height: 7px;
  background: var(--ink);
}

.capability-item:first-child::before {
  right: 0;
}

.item-index,
.project-index {
  direction: ltr;
  font-family: "Inter", sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.capability-item h3 {
  margin: 76px 0 12px;
  font-size: 1.08rem;
  font-weight: 700;
}

.capability-item p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.8rem;
  line-height: 1.95;
}

.product-scene {
  padding-block: 120px;
  overflow: hidden;
}

.product-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(219, 228, 251, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(219, 228, 251, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
}

.product-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  align-items: center;
  gap: 70px;
  min-height: 620px;
  padding-block: 45px 60px;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.product-copy {
  max-width: 510px;
}

.product-code {
  color: var(--paper-dim);
  direction: ltr;
  font-family: "Inter", sans-serif;
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.product-copy h3 {
  margin: 24px 0 18px;
  font-size: clamp(1.8rem, 3vw, 3.25rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.35;
}

.product-copy > p {
  margin: 0;
  color: var(--paper-dim);
  font-size: 0.9rem;
  line-height: 2;
}

.line-list {
  padding: 0;
  margin: 32px 0 0;
  list-style: none;
  border-top: 1px solid var(--line-dark);
}

.line-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line-dark);
  color: var(--paper-dim);
  font-size: 0.76rem;
  line-height: 1.8;
}

.line-list li span {
  color: var(--paper);
  direction: ltr;
  font-family: "Inter", sans-serif;
  font-size: 0.58rem;
}

.system-map {
  position: relative;
  display: grid;
  place-items: center;
  width: min(570px, 100%);
  aspect-ratio: 1;
  margin-inline: auto;
}

.system-map::before,
.system-map::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(219, 228, 251, 0.17);
  border-radius: 50%;
}

.system-map::before {
  inset: 8%;
}

.system-map::after {
  inset: 25%;
  border-style: dashed;
  animation: orbit-rotate 32s linear infinite reverse;
}

.map-radar {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  animation: radar-rotate 14s linear infinite;
}

.map-radar::before,
.map-radar::after,
.map-radar i {
  content: "";
  position: absolute;
  background: rgba(219, 228, 251, 0.08);
}

.map-radar::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
}

.map-radar::after {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
}

.map-radar i:nth-child(1),
.map-radar i:nth-child(2) {
  top: 50%;
  left: 50%;
  width: 70%;
  height: 1px;
  transform-origin: left center;
}

.map-radar i:nth-child(1) {
  transform: rotate(45deg);
}

.map-radar i:nth-child(2) {
  transform: rotate(-45deg);
}

.map-radar i:nth-child(3) {
  display: none;
}

.map-radar i:nth-child(4) {
  top: 50%;
  left: 50%;
  width: 22%;
  height: 1px;
  background: var(--signal);
  transform-origin: left center;
}

.map-core {
  position: relative;
  z-index: 4;
  display: grid;
  place-items: center;
  align-content: center;
  width: 142px;
  aspect-ratio: 1;
  border: 1px solid rgba(219, 228, 251, 0.32);
  border-radius: 50%;
  background: var(--ink);
  direction: ltr;
  font-family: "Inter", sans-serif;
  line-height: 1.1;
}

.map-core::before,
.map-core::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--signal);
}

.map-core::before {
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
}

.map-core::after {
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
}

.map-core span {
  color: var(--paper-dim);
  font-size: 0.68rem;
}

.map-core strong {
  font-size: 1.2rem;
  font-weight: 600;
}

.map-node {
  position: absolute;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 78px;
  aspect-ratio: 1;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--paper-dim);
  background: var(--ink);
  font-size: 0.72rem;
  font-weight: 650;
  cursor: pointer;
  transform:
    rotate(calc(var(--i) * 60deg))
    translateX(218px)
    rotate(calc(var(--i) * -60deg));
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.map-node span {
  position: absolute;
  top: 8px;
  direction: ltr;
  font-family: "Inter", sans-serif;
  font-size: 0.48rem;
  opacity: 0.55;
}

.map-node:hover,
.map-node.active {
  border-color: var(--signal);
  color: var(--ink);
  background: var(--signal);
}

.subsystem-shell {
  padding-top: 30px;
}

.subsystem-tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  overflow-x: auto;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  scrollbar-width: none;
}

.subsystem-tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  gap: 9px;
  min-height: 56px;
  border-left: 1px solid var(--line-dark);
  color: var(--paper-dim);
  background: transparent;
  font-size: 0.74rem;
  font-weight: 650;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease;
}

.tab:last-child {
  border-left: 0;
}

.tab span {
  direction: ltr;
  font-family: "Inter", sans-serif;
  font-size: 0.52rem;
  opacity: 0.55;
}

.tab:hover,
.tab.active {
  color: var(--ink);
  background: var(--paper);
}

.subsystem-content {
  min-height: 270px;
}

.subsystem-pane {
  display: none;
  grid-template-columns: 130px 1fr;
  gap: 42px;
  padding: 44px 0 0;
}

.subsystem-pane.active {
  display: grid;
  animation: pane-in 360ms var(--ease-out) both;
}

.pane-code {
  color: var(--paper-dim);
  direction: ltr;
  font-family: "Inter", sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
}

.subsystem-pane h3 {
  margin: 0 0 12px;
  font-size: clamp(1.3rem, 2vw, 2rem);
  font-weight: 650;
}

.subsystem-pane p {
  max-width: 820px;
  margin: 0;
  color: var(--paper-dim);
  font-size: 0.86rem;
  line-height: 2;
}

.tag-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 20px;
}

.tag-line span {
  position: relative;
  padding-right: 12px;
  color: var(--paper-dim);
  font-size: 0.68rem;
}

.tag-line span::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 4px;
  height: 4px;
  background: var(--signal);
  transform: translateY(-50%);
}

.project-list {
  border-top: 1px solid var(--line-light);
}

.project-row {
  position: relative;
  display: grid;
  grid-template-columns: 60px 180px minmax(190px, 0.85fr) minmax(280px, 1.15fr);
  align-items: center;
  gap: 24px;
  min-height: 142px;
  border-bottom: 1px solid var(--line-light);
  transition: color 180ms ease, background-color 180ms ease, padding 180ms ease;
}

.project-row::before {
  content: "";
  position: absolute;
  inset: 0 -22px;
  z-index: -1;
  background: var(--ink);
  opacity: 0;
  transform: scaleY(0.86);
  transition: opacity 180ms ease, transform 180ms ease;
}

.project-row:hover {
  color: var(--paper);
  padding-inline: 10px;
}

.project-row:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.project-identity {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.project-identity img,
.project-symbol {
  width: 54px;
  height: 62px;
  object-fit: contain;
}

.project-symbol {
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  clip-path: polygon(0 9px, 9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  direction: ltr;
  font-family: "Inter", sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
}

.project-identity span {
  overflow: hidden;
  color: var(--ink-dim);
  direction: ltr;
  font-family: "Inter", sans-serif;
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.project-row:hover .project-identity span,
.project-row:hover p {
  color: var(--paper-dim);
}

.project-row h3 {
  margin: 0;
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  font-weight: 700;
}

.project-row p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.78rem;
  line-height: 1.9;
}

.clients-scene {
  padding-block: 120px 0;
  overflow: hidden;
}

.clients-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 50px;
  padding-bottom: 60px;
}

.clients-heading .micro-label {
  grid-column: 1 / -1;
}

.clients-heading h2 {
  margin-top: 0;
}

.clients-heading p {
  max-width: 420px;
  margin: 0 0 8px;
  color: var(--paper-dim);
  font-size: 0.84rem;
  line-height: 2;
}

.client-marquee {
  overflow: hidden;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.client-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.client-marquee:hover .client-track {
  animation-play-state: paused;
}

.client-card {
  display: grid;
  place-items: center;
  flex: 0 0 190px;
  height: 160px;
  padding: 24px;
  border-left: 1px solid var(--line-dark);
  background: transparent;
}

.client-card img {
  width: auto;
  max-height: 105px;
  filter: saturate(0.15) brightness(1.35);
  opacity: 0.72;
  transition: filter 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.client-card:hover img {
  filter: none;
  opacity: 1;
  transform: scale(1.04);
}

.text-client {
  color: var(--paper-dim);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.8;
}

.principles {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
  gap: 80px;
  padding-block: 120px;
}

.principles-title {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  align-self: start;
}

.principles-title h2 {
  margin-top: 24px;
  font-size: clamp(2rem, 3.4vw, 3.6rem);
}

.principles-list {
  border-top: 1px solid var(--line-dark);
}

.principle-row {
  display: grid;
  grid-template-columns: 50px minmax(180px, 0.8fr) minmax(230px, 1.2fr);
  align-items: start;
  gap: 25px;
  padding-block: 28px;
  border-bottom: 1px solid var(--line-dark);
}

.principle-row > span {
  direction: ltr;
  font-family: "Inter", sans-serif;
  font-size: 0.6rem;
}

.principle-row h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
}

.principle-row p {
  margin: 0;
  color: var(--paper-dim);
  font-size: 0.78rem;
  line-height: 1.95;
}

.contact-scene {
  border-bottom: 1px solid var(--line-light);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 90px;
}

.contact-copy h2 {
  margin-top: 30px;
  font-size: clamp(2.15rem, 3.65vw, 4rem);
}

.contact-copy > p {
  max-width: 520px;
  margin: 24px 0 0;
  color: var(--ink-dim);
  font-size: 0.88rem;
  line-height: 2;
}

.contact-info {
  display: grid;
  gap: 9px;
  margin-top: 36px;
}

.contact-info a {
  width: fit-content;
  direction: ltr;
  font-family: "Inter", "Vazirmatn", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
}

.contact-info a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 18px;
  padding: 32px;
  border: 1px solid var(--line-light);
  clip-path: polygon(0 18px, 18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form label > span {
  color: var(--ink-dim);
  font-size: 0.7rem;
  font-weight: 650;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 0;
  outline: 0;
  border: 0;
  border-bottom: 1px solid var(--line-light);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  font-size: 0.8rem;
  transition: border-color 180ms ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(6, 16, 31, 0.36);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--ink);
}

.contact-form textarea {
  min-height: 100px;
  resize: vertical;
}

.contact-form .shape-button {
  width: 100%;
  margin-top: 8px;
}

.form-full {
  grid-column: 1 / -1;
}

.site-footer {
  color: var(--paper);
  background: var(--ink-deep);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.85fr;
  gap: 70px;
  padding-block: 64px;
}

.footer-brand img {
  width: 190px;
  margin-bottom: 18px;
}

.footer-brand span,
.footer-links a,
.footer-meta span,
.footer-meta a {
  display: block;
  margin-bottom: 9px;
  color: var(--paper-dim);
  font-size: 0.72rem;
  line-height: 1.8;
}

.footer-links a:hover,
.footer-meta a:hover {
  color: var(--paper);
}

.footer-meta {
  direction: ltr;
  text-align: left;
  font-family: "Inter", "Vazirmatn", sans-serif;
}

.copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  border-top: 1px solid var(--line-dark);
  color: var(--paper-dim);
  direction: ltr;
  font-family: "Inter", "Vazirmatn", sans-serif;
  font-size: 0.62rem;
}

.toast {
  position: fixed;
  right: 50%;
  bottom: 22px;
  z-index: 120;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  border: 1px solid var(--line-dark);
  color: var(--paper);
  background: var(--ink);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
  font-size: 0.74rem;
  transform: translate(50%, 110px);
  transition: transform 260ms var(--ease-out);
}

.toast.show {
  transform: translate(50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 680ms ease, transform 680ms var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 80ms;
}

.delay-2 {
  transition-delay: 140ms;
}

.delay-3 {
  transition-delay: 200ms;
}

@keyframes orbit-rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes radar-rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pane-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(50%);
  }
}

@media (max-width: 1120px) {
  .section-rail {
    display: none;
  }

  .hero-grid,
  .scene-heading-split,
  .product-stage,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 22px;
    padding-block: 70px 40px;
  }

  .hero-copy {
    max-width: 850px;
  }

  .hero-engine {
    width: min(450px, 82vw);
  }

  .scene-heading-split {
    gap: 24px;
  }

  .scene-heading-split p {
    max-width: 680px;
  }

  .product-stage {
    gap: 35px;
  }

  .product-copy {
    max-width: 760px;
  }

  .system-map {
    width: min(540px, 80vw);
  }

  .project-row {
    grid-template-columns: 45px 160px minmax(160px, 0.8fr) minmax(230px, 1.2fr);
    gap: 18px;
  }

  .contact-layout {
    gap: 55px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 68px;
  }

  .container,
  .container-wide {
    width: min(100% - 30px, var(--container));
  }

  .brand {
    width: 160px;
  }

  .brand::before {
    right: -13px;
  }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 92;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 4px;
    color: var(--paper);
    background: var(--ink);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-14px);
    transition: opacity 220ms ease, transform 220ms var(--ease-out);
  }

  .nav-links::before {
    content: "SOFTISI / NAVIGATION";
    position: absolute;
    top: 30px;
    left: 24px;
    color: var(--paper-dim);
    direction: ltr;
    font-family: "Inter", sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.12em;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 10px;
    color: var(--paper);
    font-size: clamp(1.5rem, 7vw, 2.2rem);
    font-weight: 600;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding-top: 64px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 8.5vw, 3.8rem);
  }

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

  .hero-stat {
    min-height: 76px;
    padding-inline: 10px;
  }

  .scroll-cue {
    display: none;
  }

  .about-scene,
  .product-scene,
  .projects-scene,
  .clients-scene,
  .contact-scene {
    padding-block: 88px;
  }

  .clients-scene {
    padding-bottom: 0;
  }

  .scene-heading {
    padding-bottom: 44px;
  }

  .scene-heading h2,
  .clients-heading h2,
  .principles-title h2,
  .contact-copy h2 {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-block: 44px 56px;
  }

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

  .capability-item:nth-child(2) {
    border-left: 0;
  }

  .capability-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-light);
  }

  .system-map {
    width: min(480px, 94vw);
  }

  .map-node {
    width: 68px;
    transform:
      rotate(calc(var(--i) * 60deg))
      translateX(180px)
      rotate(calc(var(--i) * -60deg));
  }

  .subsystem-tabs {
    display: flex;
  }

  .subsystem-pane {
    grid-template-columns: 90px 1fr;
  }

  .project-row {
    grid-template-columns: 40px 120px 1fr;
    gap: 16px;
    padding-block: 20px;
  }

  .project-row p {
    grid-column: 2 / -1;
    padding-bottom: 5px;
  }

  .project-identity {
    grid-template-columns: 46px 1fr;
  }

  .project-identity img,
  .project-symbol {
    width: 46px;
    height: 52px;
  }

  .clients-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .principles {
    grid-template-columns: 1fr;
    gap: 45px;
    padding-block: 88px;
  }

  .principles-title {
    position: static;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 42px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .micro-label {
    font-size: 0.52rem;
    letter-spacing: 0.08em;
  }

  .hero-grid {
    padding-top: 48px;
  }

  .hero h1 {
    margin-top: 22px;
    font-size: clamp(2.08rem, 10.4vw, 3rem);
    line-height: 1.3;
  }

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

  .hero-engine {
    width: min(350px, 92vw);
  }

  .engine-node {
    padding: 6px 8px;
    font-size: 0.48rem;
  }

  .hero-footer {
    margin-top: 10px;
  }

  .hero-stat strong {
    font-size: 1.05rem;
  }

  .hero-stat span {
    font-size: 0.56rem;
  }

  .shape-button {
    min-height: 50px;
    padding-inline: 18px;
  }

  .scene-heading h2,
  .clients-heading h2,
  .principles-title h2,
  .contact-copy h2 {
    font-size: clamp(1.85rem, 8.8vw, 2.55rem);
  }

  .statement-lead {
    font-size: 1.28rem;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .capability-item {
    min-height: 190px;
    border-left: 0;
    border-bottom: 1px solid var(--line-light);
  }

  .capability-item:nth-child(3) {
    border-bottom: 1px solid var(--line-light);
  }

  .capability-item:last-child {
    border-bottom: 0;
  }

  .capability-item h3 {
    margin-top: 45px;
  }

  .product-stage {
    min-height: 0;
  }

  .system-map {
    width: min(330px, 94vw);
  }

  .map-core {
    width: 104px;
  }

  .map-node {
    width: 54px;
    font-size: 0.58rem;
    transform:
      rotate(calc(var(--i) * 60deg))
      translateX(124px)
      rotate(calc(var(--i) * -60deg));
  }

  .map-node span {
    display: none;
  }

  .subsystem-pane {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 30px;
  }

  .project-row {
    grid-template-columns: 34px 1fr;
    gap: 12px;
    min-height: 0;
    padding-block: 24px;
  }

  .project-identity {
    grid-column: 2;
    grid-template-columns: 42px 1fr;
  }

  .project-row h3,
  .project-row p {
    grid-column: 2;
  }

  .client-card {
    flex-basis: 150px;
    height: 130px;
    padding: 18px;
  }

  .client-card img {
    max-height: 88px;
  }

  .principle-row {
    grid-template-columns: 34px 1fr;
    gap: 12px;
  }

  .principle-row p {
    grid-column: 2;
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .form-full {
    grid-column: auto;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-meta {
    direction: rtl;
    text-align: right;
  }

  .copyright {
    gap: 20px;
  }
}

@media (hover: none), (pointer: coarse) {
  .project-row:hover {
    color: var(--ink);
    padding-inline: 0;
  }

  .project-row:hover::before {
    opacity: 0;
  }

  .project-row:hover .project-identity span,
  .project-row:hover p {
    color: var(--ink-dim);
  }

  .shape-button:hover {
    transform: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Unified layout and type rhythm */
:root {
  --container: 1240px;
  --page-gutter: 32px;
  --section-space: clamp(88px, 7.5vw, 112px);
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --type-label: 0.6875rem;
  --type-small: 0.8125rem;
  --type-body: 0.9375rem;
  --type-lead: clamp(1rem, 1.15vw, 1.0625rem);
  --type-h3: clamp(1.25rem, 1.65vw, 1.5rem);
  --type-h2: clamp(2rem, 3.25vw, 3.5rem);
  --type-hero: clamp(2.75rem, 4.5vw, 4.75rem);
}

body {
  font-size: var(--type-body);
  line-height: 1.8;
}

.container,
.container-wide {
  width: min(var(--container), calc(100% - (var(--page-gutter) * 2)));
}

.navbar {
  gap: var(--space-5);
}

.nav-links {
  gap: var(--space-5);
}

.nav-links a,
.nav-toggle__label,
.shape-button,
.text-link {
  font-size: var(--type-small);
}

.micro-label,
.product-code,
.pane-code,
.item-index,
.project-index,
.principle-row > span {
  font-size: var(--type-label);
  line-height: 1.4;
}

.hero-grid {
  gap: var(--space-7);
  padding-block: var(--space-7) var(--space-6);
}

.hero h1 {
  max-width: 760px;
  margin: var(--space-4) 0;
  font-size: var(--type-hero);
  line-height: 1.22;
}

.hero-lead {
  max-width: 640px;
  font-size: var(--type-lead);
  line-height: 1.9;
}

.hero-actions {
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.hero-stat {
  min-height: 88px;
  padding-inline: var(--space-4);
}

.hero-stat strong {
  font-size: 1.375rem;
}

.hero-stat span,
.scroll-cue {
  font-size: var(--type-label);
}

.about-scene,
.product-scene,
.projects-scene,
.clients-scene,
.contact-scene {
  padding-block: var(--section-space);
}

.clients-scene {
  padding-bottom: 0;
}

.scene-heading {
  padding-bottom: var(--space-7);
}

.scene-heading h2,
.clients-heading h2,
.principles-title h2,
.contact-copy h2 {
  max-width: 820px;
  margin: var(--space-4) 0 0;
  font-size: var(--type-h2);
  line-height: 1.3;
}

.scene-heading-split {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: var(--space-7);
}

.scene-heading-split p,
.clients-heading p,
.contact-copy > p,
.about-copy p,
.product-copy > p,
.subsystem-pane p {
  margin-top: 0;
  font-size: var(--type-body);
  line-height: 1.95;
}

.about-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: var(--space-7);
  padding-block: var(--space-6) var(--space-7);
}

.statement-lead {
  max-width: 700px;
  font-size: clamp(1.375rem, 2vw, 1.875rem);
  line-height: 1.7;
}

.about-copy p {
  margin-bottom: var(--space-3);
}

.capability-item {
  min-height: 230px;
  padding: var(--space-4);
}

.capability-item h3 {
  margin: 56px 0 var(--space-2);
  font-size: 1.0625rem;
  line-height: 1.5;
}

.capability-item p {
  font-size: var(--type-small);
  line-height: 1.9;
}

.product-stage {
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: var(--space-7);
  min-height: 600px;
  padding-block: var(--space-6);
}

.product-copy h3 {
  margin: var(--space-4) 0 var(--space-3);
  font-size: clamp(1.75rem, 2.55vw, 2.75rem);
  line-height: 1.4;
}

.line-list {
  margin-top: var(--space-5);
}

.line-list li {
  padding-block: var(--space-2);
  font-size: var(--type-small);
}

.tab {
  min-height: 54px;
  font-size: var(--type-small);
}

.tab span {
  font-size: var(--type-label);
}

.subsystem-content {
  min-height: 250px;
}

.subsystem-pane {
  grid-template-columns: 110px 1fr;
  gap: var(--space-5);
  padding-top: 40px;
}

.subsystem-pane h3 {
  margin-bottom: var(--space-2);
  font-size: var(--type-h3);
  line-height: 1.5;
}

.tag-line {
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-4);
}

.tag-line span {
  font-size: var(--type-small);
}

.project-row {
  grid-template-columns: 48px 180px minmax(190px, 0.8fr) minmax(300px, 1.2fr);
  gap: var(--space-4);
  min-height: 136px;
}

.project-identity span {
  font-size: var(--type-label);
}

.project-row h3 {
  font-size: var(--type-h3);
  line-height: 1.45;
}

.project-row p {
  font-size: var(--type-small);
  line-height: 1.9;
}

.clients-heading {
  gap: var(--space-7);
  padding-bottom: var(--space-7);
}

.client-card {
  flex-basis: 184px;
  height: 152px;
  padding: var(--space-4);
}

.text-client {
  font-size: var(--type-small);
}

.principles {
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: var(--space-7);
  padding-block: var(--section-space);
}

.principles-title h2 {
  margin-top: var(--space-4);
}

.principle-row {
  grid-template-columns: 48px minmax(180px, 0.85fr) minmax(240px, 1.15fr);
  gap: var(--space-4);
  padding-block: var(--space-4);
}

.principle-row h3 {
  font-size: 1rem;
  line-height: 1.55;
}

.principle-row p {
  font-size: var(--type-small);
  line-height: 1.9;
}

.contact-layout {
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-7);
}

.contact-copy > p {
  margin-top: var(--space-4);
}

.contact-info {
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.contact-info a {
  font-size: var(--type-small);
}

.contact-form {
  gap: var(--space-4);
  padding: var(--space-5);
}

.contact-form label {
  gap: var(--space-1);
}

.contact-form label > span,
.contact-form input,
.contact-form textarea {
  font-size: var(--type-small);
}

.footer-main {
  gap: var(--space-7);
  padding-block: var(--space-7);
}

.footer-brand span,
.footer-links a,
.footer-meta span,
.footer-meta a {
  font-size: var(--type-small);
}

.copyright {
  font-size: var(--type-label);
}

@media (max-width: 1120px) {
  :root {
    --page-gutter: 28px;
    --section-space: 88px;
  }

  .hero-grid,
  .scene-heading-split,
  .product-stage,
  .contact-layout {
    gap: var(--space-6);
  }

  .hero-grid {
    padding-block: var(--space-7) var(--space-5);
  }

  .about-layout {
    gap: var(--space-6);
  }

  .project-row {
    grid-template-columns: 44px 160px minmax(170px, 0.8fr) minmax(240px, 1.2fr);
    gap: var(--space-3);
  }
}

@media (max-width: 860px) {
  :root {
    --page-gutter: 20px;
    --section-space: 72px;
    --type-body: 0.9rem;
    --type-h2: clamp(1.85rem, 6vw, 2.65rem);
    --type-hero: clamp(2.25rem, 8vw, 3.5rem);
  }

  .container,
  .container-wide {
    width: min(var(--container), calc(100% - (var(--page-gutter) * 2)));
  }

  .hero-grid {
    gap: var(--space-5);
    padding-block: var(--space-6) var(--space-5);
  }

  .hero h1 {
    margin-block: var(--space-4);
  }

  .hero-footer {
    margin-inline: auto;
  }

  .scene-heading {
    padding-bottom: var(--space-6);
  }

  .scene-heading-split,
  .about-layout,
  .product-stage,
  .contact-layout {
    gap: var(--space-5);
  }

  .about-layout {
    padding-block: var(--space-6);
  }

  .clients-heading,
  .principles {
    gap: var(--space-6);
  }

  .project-row {
    gap: var(--space-3);
    padding-block: var(--space-4);
  }

  .footer-main {
    gap: var(--space-6);
    padding-block: var(--space-6);
  }
}

@media (max-width: 600px) {
  :root {
    --page-gutter: 16px;
    --section-space: 64px;
    --type-label: 0.65625rem;
    --type-small: 0.78125rem;
    --type-body: 0.875rem;
    --type-lead: 0.9375rem;
    --type-h2: clamp(1.75rem, 8vw, 2.25rem);
    --type-hero: clamp(2rem, 9.5vw, 2.75rem);
  }

  .hero-grid {
    padding-block: 44px var(--space-5);
  }

  .hero h1 {
    line-height: 1.32;
  }

  .hero-actions {
    gap: var(--space-3);
    margin-top: var(--space-4);
  }

  .hero-stat {
    min-height: 72px;
    padding-inline: var(--space-1);
  }

  .hero-stat strong {
    font-size: 1.125rem;
  }

  .scene-heading {
    padding-bottom: var(--space-5);
  }

  .scene-heading h2,
  .clients-heading h2,
  .principles-title h2,
  .contact-copy h2 {
    margin-top: var(--space-3);
  }

  .statement-lead {
    font-size: 1.25rem;
  }

  .capability-item {
    min-height: 184px;
    padding: var(--space-4);
  }

  .capability-item h3 {
    margin-top: 40px;
  }

  .product-stage {
    padding-block: var(--space-5);
  }

  .subsystem-pane {
    gap: var(--space-3);
    padding-top: var(--space-5);
  }

  .project-row {
    gap: var(--space-2);
  }

  .principles {
    gap: var(--space-5);
  }

  .principle-row {
    gap: var(--space-2);
    padding-block: var(--space-4);
  }

  .contact-form {
    gap: var(--space-4);
    padding: var(--space-4);
  }

  .footer-main {
    gap: var(--space-5);
    padding-block: var(--space-6);
  }
}

/* Compact responsive typography */
:root {
  --type-label: 0.625rem;
  --type-small: 0.75rem;
  --type-body: 0.875rem;
  --type-lead: clamp(0.9375rem, 1vw, 1rem);
  --type-h3: clamp(1rem, 1.15vw, 1.125rem);
  --type-h2: clamp(1.375rem, 1.8vw, 1.75rem);
  --type-hero: clamp(1.875rem, 2.5vw, 2.5rem);
}

body {
  line-height: 1.75;
}

.hero h1 {
  max-width: 660px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.42;
}

.hero-lead {
  max-width: 590px;
  font-weight: 350;
  line-height: 1.9;
}

.scene-heading h2,
.clients-heading h2,
.principles-title h2,
.contact-copy h2 {
  max-width: 700px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.5;
}

.statement-lead {
  max-width: 640px;
  font-size: clamp(1.0625rem, 1.35vw, 1.375rem);
  font-weight: 450;
  line-height: 1.85;
}

.product-copy h3 {
  font-size: clamp(1.125rem, 1.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.6;
}

.capability-item h3,
.subsystem-pane h3,
.project-row h3,
.principle-row h3 {
  font-weight: 600;
}

.capability-item h3 {
  font-size: 0.9375rem;
}

.hero-stat strong {
  font-size: 1.125rem;
}

.map-core strong {
  font-size: 1rem;
}

.map-core span {
  font-size: var(--type-label);
}

/* Lightweight floating technology marks */
.about-scene,
.product-scene,
.projects-scene,
.contact-scene {
  overflow: hidden;
}

.scene > .container,
.hero-footer {
  position: relative;
  z-index: 2;
}

.tech-floats {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.tech-badge {
  --float-x: 0px;
  --float-y: 0px;
  --float-rotate: 0deg;
  position: absolute;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  width: 108px;
  min-height: 48px;
  padding: 6px 8px;
  border: 1px solid rgba(219, 228, 251, 0.17);
  clip-path: polygon(0 7px, 7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
  color: var(--paper-dim);
  background: rgba(6, 16, 31, 0.78);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  opacity: 0.58;
  transform: translate3d(var(--float-x), var(--float-y), 0) rotate(var(--float-rotate));
  transition: transform 140ms linear, opacity 180ms ease;
  will-change: transform;
}

.tech-badge::before,
.tech-badge::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  background: currentColor;
  opacity: 0.65;
}

.tech-badge::before {
  top: -1px;
  right: -1px;
}

.tech-badge::after {
  bottom: -1px;
  left: -1px;
}

.scene-light .tech-badge {
  border-color: rgba(6, 16, 31, 0.16);
  color: var(--ink-dim);
  background: rgba(219, 228, 251, 0.88);
  box-shadow: 0 12px 26px rgba(6, 16, 31, 0.08);
}

.tech-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid currentColor;
  direction: ltr;
  font-family: "Inter", sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tech-badge small {
  overflow: hidden;
  direction: ltr;
  font-family: "Inter", sans-serif;
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.tech-js .tech-mark {
  color: #171717;
  border-color: #f2d74e;
  background: #f2d74e;
}

.tech-ts .tech-mark {
  color: #fff;
  border-color: #3178c6;
  background: #3178c6;
}

.tech-dotnet .tech-mark,
.tech-csharp .tech-mark {
  color: #fff;
  border-color: #7554c9;
  background: #7554c9;
}

.tech-sql .tech-mark {
  color: #fff;
  border-color: #d45f57;
  background: #d45f57;
}

.tech-api .tech-mark {
  color: #07111f;
  border-color: #75d9b1;
  background: #75d9b1;
}

.tech-json .tech-mark {
  color: #07111f;
  border-color: #d9e1f7;
  background: #d9e1f7;
}

.tech-python .tech-mark {
  color: #fff;
  border-color: #3975a5;
  background: linear-gradient(135deg, #3975a5 0 52%, #f1cb55 52%);
}

.tech-html .tech-mark {
  color: #fff;
  border-color: #e2673f;
  background: #e2673f;
}

.tech-git .tech-mark {
  color: #fff;
  border-color: #e75a3c;
  background: #e75a3c;
}

.tech-pos-hero-1 {
  top: 18%;
  left: 2.5%;
  --float-rotate: -3deg;
}

.tech-pos-hero-2 {
  bottom: 18%;
  left: 8%;
  --float-rotate: 2deg;
}

.tech-pos-hero-3 {
  top: 13%;
  right: 47%;
  --float-rotate: 3deg;
}

.tech-pos-about-1 {
  top: 17%;
  left: 2.5%;
  --float-rotate: -2deg;
}

.tech-pos-about-2 {
  right: 2%;
  bottom: 16%;
  --float-rotate: 3deg;
}

.tech-pos-product-1 {
  top: 26%;
  left: 2%;
  --float-rotate: 2deg;
}

.tech-pos-product-2 {
  right: 2%;
  bottom: 20%;
  --float-rotate: -3deg;
}

.tech-pos-projects-1 {
  top: 30%;
  right: 2%;
  --float-rotate: 2deg;
}

.tech-pos-projects-2 {
  bottom: 16%;
  left: 2.5%;
  --float-rotate: -3deg;
}

.tech-pos-contact-1 {
  top: 17%;
  left: 2.5%;
  --float-rotate: 2deg;
}

@media (max-width: 1120px) {
  :root {
    --type-h2: clamp(1.375rem, 2.8vw, 1.75rem);
    --type-hero: clamp(1.875rem, 3.6vw, 2.5rem);
  }

  .tech-badge {
    opacity: 0.42;
    transform:
      translate3d(var(--float-x), var(--float-y), 0)
      rotate(var(--float-rotate))
      scale(0.9);
  }

  .tech-pos-hero-3 {
    right: 42%;
  }
}

@media (max-width: 860px) {
  :root {
    --type-body: 0.84375rem;
    --type-h2: clamp(1.3rem, 3.2vw, 1.625rem);
    --type-hero: clamp(1.75rem, 4.4vw, 2.125rem);
  }

  .hero h1 {
    max-width: 590px;
  }

  .tech-floats:not(.tech-floats-hero) {
    display: none;
  }

  .tech-pos-hero-3 {
    display: none;
  }

  .tech-pos-hero-1 {
    top: 20%;
    left: 1%;
  }

  .tech-pos-hero-2 {
    bottom: 13%;
    left: 3%;
  }
}

@media (max-width: 600px) {
  :root {
    --type-label: 0.59375rem;
    --type-small: 0.71875rem;
    --type-body: 0.8125rem;
    --type-lead: 0.875rem;
    --type-h3: 0.9375rem;
    --type-h2: clamp(1.25rem, 6vw, 1.5rem);
    --type-hero: clamp(1.625rem, 7.5vw, 2rem);
  }

  .hero h1 {
    line-height: 1.5;
  }

  .statement-lead {
    font-size: 1rem;
  }

  .product-copy h3 {
    font-size: 1.125rem;
  }

  .tech-floats {
    display: none;
  }
}

/* Viewport-fit scenes and layered parallax */
html.js-smooth-wheel {
  scroll-behavior: auto;
}

main {
  position: relative;
}

main > .scene {
  scroll-margin-top: var(--header-h);
}

main > .scene + .scene {
  margin-top: 0;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -18px 42px rgba(2, 8, 18, 0.1);
}

main > .scene:nth-child(1) { z-index: 1; }
main > .scene:nth-child(2) { z-index: 2; }
main > .scene:nth-child(3) { z-index: 3; }
main > .scene:nth-child(4) { z-index: 4; }
main > .scene:nth-child(5) { z-index: 5; }
main > .scene:nth-child(6) { z-index: 6; }

.scene > .container,
.scene:not(.hero) > .client-marquee {
  opacity: var(--scene-opacity, 1);
  transform:
    translate3d(0, var(--content-parallax, 0), 0)
    scale(var(--scene-scale, 1));
  transform-origin: center top;
  will-change: transform, opacity;
}

.tech-floats {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 999;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 420ms ease, visibility 420ms ease;
}

.tech-floats.is-active {
  opacity: 1;
  visibility: visible;
}

.tech-theme-light .tech-badge {
  border-color: rgba(6, 16, 31, 0.18);
  color: var(--ink-dim);
  background: rgba(219, 228, 251, 0.9);
  box-shadow: 0 12px 26px rgba(6, 16, 31, 0.1);
}

@media (min-width: 861px) {
  .hero-footer {
    height: 72px;
    min-height: 72px;
  }

  .hero-stat {
    min-height: 72px;
  }

  .hero-grid {
    height: calc(100dvh - var(--header-h) - 72px);
    min-height: 0;
  }

  .hero-engine {
    width: min(470px, calc((100dvh - var(--header-h) - 92px) * 0.72));
  }

  .about-scene,
  .product-scene,
  .projects-scene,
  .clients-scene,
  .contact-scene {
    height: calc(100svh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    min-height: 620px;
    padding-block: clamp(20px, 3vh, 32px);
    overflow: hidden;
  }

  .about-scene > .container,
  .product-scene > .container,
  .projects-scene > .container,
  .contact-scene > .container {
    height: 100%;
  }

  .scene-heading,
  .clients-heading {
    flex: 0 0 auto;
    padding-bottom: clamp(12px, 1.8vh, 20px);
  }

  .scene-heading h2,
  .clients-heading h2,
  .principles-title h2,
  .contact-copy h2 {
    margin-top: 8px;
  }

  .scene-heading-split > p,
  .clients-heading > p,
  .contact-copy > p {
    margin-top: 10px;
    line-height: 1.75;
  }

  .about-scene > .container {
    display: flex;
    flex-direction: column;
  }

  .about-layout {
    flex: 0 0 auto;
    gap: clamp(28px, 4vw, 52px);
    padding-block: clamp(18px, 2.8vh, 28px);
  }

  .statement-lead {
    font-size: clamp(1rem, 1.15vw, 1.2rem);
    line-height: 1.75;
  }

  .about-copy p {
    margin-bottom: 10px;
    line-height: 1.75;
  }

  .capability-grid {
    flex: 1 1 auto;
    min-height: 0;
  }

  .capability-item {
    min-height: 0;
    padding: clamp(14px, 2vh, 20px);
  }

  .capability-item h3 {
    margin: clamp(22px, 4vh, 36px) 0 7px;
  }

  .capability-item p {
    line-height: 1.7;
  }

  .product-scene > .container {
    display: flex;
    flex-direction: column;
  }

  .product-stage {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    gap: clamp(28px, 4vw, 54px);
    padding-block: clamp(10px, 1.8vh, 18px);
    overflow: hidden;
  }

  .product-copy h3 {
    margin: 10px 0 8px;
    line-height: 1.45;
  }

  .product-copy > p {
    font-size: 0.8125rem;
    line-height: 1.7;
  }

  .line-list {
    margin-top: 14px;
  }

  .line-list li {
    padding-block: 8px;
    line-height: 1.55;
  }

  .system-map {
    width: min(330px, calc((100dvh - var(--header-h)) * 0.43));
  }

  .map-core {
    width: 104px;
  }

  .map-node {
    width: 58px;
    font-size: 0.62rem;
    transform:
      rotate(calc(var(--i) * 60deg))
      translateX(clamp(116px, 14vw, 142px))
      rotate(calc(var(--i) * -60deg));
  }

  .map-node span {
    top: 6px;
  }

  .subsystem-shell {
    flex: 0 0 auto;
    padding-top: 10px;
  }

  .tab {
    min-height: 42px;
  }

  .subsystem-content {
    min-height: 126px;
  }

  .subsystem-pane {
    grid-template-columns: 90px 1fr;
    gap: 20px;
    padding-top: 16px;
  }

  .subsystem-pane h3 {
    margin-bottom: 6px;
  }

  .subsystem-pane p {
    font-size: 0.78rem;
    line-height: 1.65;
  }

  .tag-line {
    gap: 6px 16px;
    margin-top: 10px;
  }

  .projects-scene > .container {
    display: flex;
    flex-direction: column;
  }

  .project-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    flex: 1 1 auto;
    min-height: 0;
    border-right: 1px solid var(--line-light);
  }

  .project-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-content: start;
    gap: 7px 10px;
    min-height: 0;
    padding: clamp(12px, 1.8vh, 18px);
    border-left: 1px solid var(--line-light);
    border-bottom: 1px solid var(--line-light);
  }

  .project-row::before {
    inset: 0;
  }

  .project-row:hover {
    padding-inline: clamp(12px, 1.8vh, 18px);
  }

  .project-index {
    grid-row: 1 / 5;
  }

  .project-identity {
    grid-column: 2;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 9px;
  }

  .project-identity img,
  .project-symbol {
    width: 38px;
    height: 44px;
  }

  .project-row h3,
  .project-row p {
    grid-column: 2;
  }

  .project-row h3 {
    font-size: 0.9375rem;
  }

  .project-row p {
    font-size: 0.7rem;
    line-height: 1.65;
  }

  .clients-scene {
    display: flex;
    flex-direction: column;
    padding-block: clamp(20px, 3vh, 32px) 0;
  }

  .clients-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
    gap: 28px;
    align-items: end;
  }

  .clients-heading .micro-label {
    grid-column: 1 / -1;
  }

  .clients-heading > p {
    margin-bottom: 3px;
  }

  .client-marquee {
    flex: 0 0 auto;
  }

  .client-card {
    flex-basis: 150px;
    height: clamp(90px, 13vh, 116px);
    padding: 14px;
  }

  .client-card img {
    max-height: 76px;
  }

  .principles {
    flex: 1 1 auto;
    min-height: 0;
    gap: clamp(28px, 4vw, 52px);
    padding-block: clamp(18px, 2.5vh, 28px);
  }

  .principles-title {
    position: static;
  }

  .principles-title h2 {
    font-size: clamp(1.25rem, 1.7vw, 1.6rem);
  }

  .principle-row {
    grid-template-columns: 34px minmax(150px, 0.8fr) minmax(210px, 1.2fr);
    gap: 14px;
    padding-block: clamp(9px, 1.4vh, 13px);
  }

  .principle-row h3 {
    font-size: 0.875rem;
  }

  .principle-row p {
    font-size: 0.7rem;
    line-height: 1.65;
  }

  .contact-scene > .container {
    display: grid;
    align-items: center;
  }

  .contact-layout {
    gap: clamp(32px, 5vw, 64px);
  }

  .contact-form {
    gap: 14px 18px;
    padding: clamp(22px, 3vh, 30px);
  }
}

@media (min-width: 861px) and (max-width: 1120px) {
  .project-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }

  .project-row {
    padding: 12px;
  }

  .project-row:hover {
    padding-inline: 12px;
  }

  .project-row p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

@media (max-width: 860px) {
  main > .scene + .scene {
    margin-top: -10px;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -10px 26px rgba(2, 8, 18, 0.08);
  }

  .scene:not(.hero) > .container,
  .scene:not(.hero) > .client-marquee {
    transform: none;
  }
}

/* Final viewport, navigation and mobile stabilization */
.site-header {
  position: sticky;
  top: 0;
  background: var(--ink);
}

.scene {
  min-height: calc(100svh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
}

.hero {
  min-height: calc(100svh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  padding-top: 0;
}

.hero-grid {
  min-height: calc(100svh - var(--header-h) - 88px);
  min-height: calc(100dvh - var(--header-h) - 88px);
  padding-block: 0 var(--space-4);
}

.about-scene,
.product-scene,
.projects-scene,
.contact-scene {
  overflow: clip;
}

.section-rail {
  z-index: 160;
}

.section-rail::before {
  background: rgba(219, 228, 251, 0.22);
  transition: background-color 180ms ease;
}

.section-rail a::before {
  border-color: rgba(219, 228, 251, 0.62);
  background: var(--ink);
}

.section-rail a span {
  color: var(--paper);
  opacity: 0.52;
  transform: translateX(0);
}

.section-rail a.active span,
.section-rail a:hover span {
  opacity: 1;
}

body[data-rail-theme="light"] .section-rail::before {
  background: rgba(6, 16, 31, 0.2);
}

body[data-rail-theme="light"] .section-rail a::before {
  border-color: rgba(6, 16, 31, 0.58);
  background: var(--paper);
}

body[data-rail-theme="light"] .section-rail a span {
  color: var(--ink);
}

body[data-rail-theme="light"] .section-rail a.active::before,
body[data-rail-theme="light"] .section-rail a:hover::before {
  border-color: var(--ink);
  background: var(--ink);
}

.scene-heading,
.clients-heading {
  display: block;
  padding-bottom: var(--space-5);
}

.scene-heading-split {
  display: block;
}

.scene-heading h2,
.clients-heading h2,
.principles-title h2,
.contact-copy h2 {
  margin: var(--space-2) 0 0;
}

.scene-heading-split > p,
.clients-heading > p,
.contact-copy > p {
  max-width: 620px;
  margin: var(--space-3) 0 0;
}

.principles-title h2 {
  margin-top: var(--space-2);
}

.tech-floats {
  z-index: 999;
  overflow: hidden;
}

.tech-badge {
  --tech-scale: 1;
  z-index: 1000;
  opacity: 0.78;
  transition: opacity 180ms ease;
}

.tech-badge.is-physics-ready {
  top: 0;
  right: auto;
  bottom: auto;
  left: 0;
  transform:
    translate3d(var(--badge-x, 0), var(--badge-y, 0), 0)
    rotate(calc(var(--float-rotate) + var(--badge-tilt, 0deg)))
    scale(var(--tech-scale));
  will-change: transform;
}

@media (max-width: 1120px) {
  .tech-badge {
    --tech-scale: 0.9;
    opacity: 0.62;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 64px;
    --page-gutter: 22px;
    --section-space: 56px;
  }

  .site-header {
    height: var(--header-h);
  }

  .navbar {
    height: var(--header-h);
  }

  .brand {
    width: 148px;
  }

  .hero {
    grid-template-rows: auto auto;
  }

  .hero-grid {
    min-height: calc(100svh - var(--header-h) - 70px);
    min-height: calc(100dvh - var(--header-h) - 70px);
    padding-block: var(--space-4);
  }

  .hero-engine {
    width: min(390px, 74vw);
  }

  .hero-footer {
    min-height: 70px;
  }

  .about-scene,
  .product-scene,
  .projects-scene,
  .clients-scene,
  .contact-scene {
    padding-block: var(--section-space);
  }

  .clients-scene {
    padding-bottom: 0;
  }

  .scene-heading,
  .clients-heading {
    padding-bottom: var(--space-4);
  }

  .about-layout,
  .product-stage,
  .contact-layout {
    gap: var(--space-4);
  }

  .product-stage {
    min-height: calc(100svh - var(--header-h) - 150px);
    min-height: calc(100dvh - var(--header-h) - 150px);
  }
}

@media (max-width: 600px) {
  :root {
    --header-h: 60px;
    --page-gutter: 18px;
    --section-space: 44px;
    --space-5: 28px;
    --space-6: 36px;
    --space-7: 44px;
  }

  body {
    line-height: 1.7;
  }

  .site-header {
    height: var(--header-h);
  }

  .navbar {
    height: var(--header-h);
  }

  .brand {
    width: 136px;
  }

  .brand::before {
    display: none;
  }

  .nav-toggle {
    gap: 8px;
  }

  .nav-toggle__icon {
    width: 30px;
    height: 30px;
  }

  .nav-links a {
    font-size: 1.25rem;
  }

  .hero {
    min-height: calc(100svh - var(--header-h));
    min-height: calc(100dvh - var(--header-h));
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 22px;
    padding-block: 0 22px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero h1 {
    max-width: 340px;
    margin-block: 14px;
    font-size: clamp(1.5rem, 7vw, 1.85rem);
    line-height: 1.55;
  }

  .hero-lead {
    max-width: 350px;
    font-size: 0.8125rem;
    line-height: 1.85;
  }

  .hero-actions {
    gap: 14px;
    margin-top: 20px;
  }

  .shape-button {
    min-height: 44px;
    padding-inline: 15px;
    font-size: 0.7rem;
  }

  .text-link {
    font-size: 0.7rem;
  }

  .hero-engine {
    width: min(280px, 78vw);
    margin-top: 0;
  }

  .engine-node,
  .engine-coordinate {
    display: none;
  }

  .hero-footer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 64px;
  }

  .hero-stat {
    min-height: 64px;
    padding-inline: 6px;
    text-align: center;
  }

  .hero-stat:first-child {
    padding-right: 6px;
  }

  .hero-stat strong {
    font-size: 1rem;
  }

  .hero-stat span {
    font-size: 0.56rem;
    line-height: 1.5;
  }

  .micro-label {
    gap: 7px;
  }

  .micro-label .micro-index {
    display: none;
  }

  .scene {
    min-height: calc(100svh - var(--header-h));
    min-height: calc(100dvh - var(--header-h));
  }

  .about-scene,
  .product-scene,
  .projects-scene,
  .clients-scene,
  .contact-scene {
    padding-block: var(--section-space);
  }

  .clients-scene {
    padding-bottom: 0;
  }

  .scene-heading,
  .clients-heading {
    padding-bottom: 24px;
  }

  .scene-heading h2,
  .clients-heading h2,
  .principles-title h2,
  .contact-copy h2 {
    max-width: 330px;
    margin-top: 10px;
    font-size: 1.35rem;
    line-height: 1.6;
  }

  .scene-heading-split > p,
  .clients-heading > p,
  .contact-copy > p {
    max-width: 350px;
    margin-top: 12px;
    font-size: 0.8125rem;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-block: 28px 34px;
  }

  .statement-lead {
    max-width: 350px;
    font-size: 0.9375rem;
    line-height: 1.9;
  }

  .about-copy p {
    font-size: 0.8125rem;
  }

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

  .capability-item,
  .capability-item:nth-child(2),
  .capability-item:nth-child(3) {
    min-height: 148px;
    padding: 15px;
    border-left: 1px solid var(--line-light);
    border-bottom: 1px solid var(--line-light);
  }

  .capability-item:nth-child(even) {
    border-left: 0;
  }

  .capability-item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .capability-item h3 {
    margin: 30px 0 8px;
    font-size: 0.875rem;
  }

  .capability-item p {
    font-size: 0.6875rem;
    line-height: 1.75;
  }

  .product-stage {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 28px;
    padding-block: 28px;
  }

  .product-copy h3 {
    margin-block: 14px 10px;
    font-size: 1.0625rem;
  }

  .product-copy > p,
  .line-list li {
    font-size: 0.75rem;
  }

  .system-map {
    width: min(286px, 84vw);
  }

  .map-core {
    width: 92px;
  }

  .map-node {
    width: 48px;
    font-size: 0.55rem;
    transform:
      rotate(calc(var(--i) * 60deg))
      translateX(106px)
      rotate(calc(var(--i) * -60deg));
  }

  .subsystem-tabs {
    margin-inline: calc(var(--page-gutter) * -1);
    padding-inline: var(--page-gutter);
  }

  .tab {
    min-width: 86px;
    min-height: 46px;
    font-size: 0.7rem;
  }

  .subsystem-content {
    min-height: 220px;
  }

  .subsystem-pane {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 24px;
  }

  .subsystem-pane h3 {
    font-size: 0.9375rem;
  }

  .subsystem-pane p,
  .tag-line span {
    font-size: 0.72rem;
  }

  .project-row {
    grid-template-columns: 30px 1fr;
    gap: 9px 12px;
    min-height: 0;
    padding-block: 18px;
  }

  .project-identity {
    grid-column: 2;
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .project-identity img,
  .project-symbol {
    width: 38px;
    height: 44px;
  }

  .project-row h3,
  .project-row p {
    grid-column: 2;
  }

  .project-row h3 {
    font-size: 0.9375rem;
  }

  .project-row p {
    font-size: 0.72rem;
  }

  .client-card {
    flex-basis: 132px;
    height: 108px;
    padding: 14px;
  }

  .client-card img {
    max-height: 76px;
  }

  .principles {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 48px;
  }

  .principles-title {
    position: static;
  }

  .principle-row {
    grid-template-columns: 28px 1fr;
    gap: 8px 12px;
    padding-block: 18px;
  }

  .principle-row p {
    grid-column: 2;
    font-size: 0.72rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-info {
    margin-top: 20px;
  }

  .contact-form {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  .form-full {
    grid-column: auto;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 36px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-brand img {
    width: 150px;
  }

  .footer-meta {
    direction: rtl;
    text-align: right;
  }

  .copyright {
    min-height: 58px;
    gap: 14px;
    font-size: 0.58rem;
  }

  .tech-floats {
    display: none;
  }
}

/* Precise desktop viewport, bounded floating badges and stacked scenes */
@media (min-width: 861px) {
  main > .scene {
    position: sticky;
    top: var(--header-h);
    height: var(--viewport-content-h, calc(100dvh - var(--header-h)));
    min-height: var(--viewport-content-h, calc(100dvh - var(--header-h)));
    overflow: clip;
    isolation: isolate;
  }

  main > .scene + .scene {
    margin-top: 0;
  }

  .hero {
    height: var(--viewport-content-h, calc(100dvh - var(--header-h)));
    min-height: var(--viewport-content-h, calc(100dvh - var(--header-h)));
  }

  .hero-grid {
    height: calc(var(--viewport-content-h, calc(100dvh - var(--header-h))) - 72px);
    min-height: 0;
  }

  .about-scene,
  .projects-scene,
  .clients-scene,
  .contact-scene {
    height: var(--viewport-content-h, calc(100dvh - var(--header-h)));
    min-height: var(--viewport-content-h, calc(100dvh - var(--header-h)));
  }

  main > .scene.product-scene {
    position: relative;
    top: auto;
    height: auto;
    min-height: var(--viewport-content-h, calc(100dvh - var(--header-h)));
    padding-block: 120px;
    overflow: clip;
  }

  .product-scene > .container {
    height: auto;
  }

  .product-stage {
    flex: none;
    min-height: 620px;
    height: auto;
    gap: 70px;
    padding-block: 45px 60px;
    overflow: visible;
  }

  .system-map {
    width: min(570px, 100%);
  }

  .map-core {
    width: 142px;
  }

  .map-node {
    width: 78px;
    font-size: 0.72rem;
    transform:
      rotate(calc(var(--i) * 60deg))
      translateX(218px)
      rotate(calc(var(--i) * -60deg));
  }

  .map-node span {
    top: 8px;
  }

  .subsystem-shell {
    padding-top: 30px;
  }

  .tab {
    min-height: 56px;
  }

  .subsystem-content {
    min-height: 270px;
  }

  .subsystem-pane {
    grid-template-columns: 130px 1fr;
    gap: 42px;
    padding-top: 44px;
  }

  .scene:not(.hero)::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 30;
    pointer-events: none;
    background: rgba(2, 8, 18, var(--scene-shade, 0));
    will-change: background-color;
  }

  .scene-light:not(.hero)::after {
    background: rgba(6, 16, 31, var(--scene-shade, 0));
  }

  .site-footer {
    position: relative;
    z-index: 20;
  }
}
