:root {
  --bg: #050816;
  --panel: rgba(9, 16, 31, 0.74);
  --panel-strong: rgba(12, 21, 41, 0.92);
  --line: rgba(118, 214, 255, 0.2);
  --text: #f5fbff;
  --muted: #8ca6c1;
  --cold: #73f0ff;
  --hot: #89ff9a;
  --alert: #ff7a18;
  --shadow: 0 30px 120px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 15%, rgba(115, 240, 255, 0.16), transparent 26%),
    radial-gradient(circle at 85% 70%, rgba(255, 122, 24, 0.12), transparent 24%),
    linear-gradient(160deg, #03060d 0%, #07101f 45%, #050816 100%);
  overflow-x: clip;
}

body.is-loading {
  overflow: hidden;
}

body.is-loading .site-header,
body.is-loading main,
body.is-loading .tech-ribbon,
body.is-loading .site-footer {
  opacity: 0;
}

.site-header,
main,
.tech-ribbon,
.site-footer {
  transition: opacity 320ms ease;
}

body.modal-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
  pointer-events: none;
}

.noise {
  position: fixed;
  inset: 0;
  opacity: 0.05;
  background-image:
    radial-gradient(circle at 20% 20%, white 0.7px, transparent 1px),
    radial-gradient(circle at 80% 50%, white 0.7px, transparent 1px),
    radial-gradient(circle at 40% 80%, white 0.7px, transparent 1px);
  background-size: 160px 160px;
  pointer-events: none;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.glow-a {
  width: 24rem;
  height: 24rem;
  top: 2rem;
  right: -8rem;
  background: rgba(115, 240, 255, 0.14);
}

.glow-b {
  width: 20rem;
  height: 20rem;
  bottom: 0;
  left: -5rem;
  background: rgba(255, 122, 24, 0.12);
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1.6rem;
  background:
    linear-gradient(180deg, rgba(4, 8, 18, 0.97), rgba(3, 8, 18, 0.995));
  backdrop-filter: blur(26px) saturate(115%);
  transition:
    opacity 560ms ease,
    visibility 560ms ease,
    backdrop-filter 560ms ease;
}

.site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: blur(0px) saturate(100%);
}

.site-loader.is-lite {
  background: linear-gradient(180deg, rgba(4, 8, 18, 0.985), rgba(3, 8, 18, 0.995));
  backdrop-filter: blur(10px);
}

.site-loader-card {
  position: relative;
  width: min(100%, 34rem);
  padding: 2.5rem 2.2rem 1.9rem;
  border-radius: 1.9rem;
  background:
    radial-gradient(circle at 74% 14%, rgba(115, 240, 255, 0.14), transparent 22%),
    linear-gradient(180deg, rgba(12, 20, 38, 0.94), rgba(7, 13, 26, 0.98));
  border: 1px solid rgba(118, 214, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 32px 80px rgba(0, 0, 0, 0.38);
  overflow: hidden;
  animation: loaderCardIn 520ms ease both;
}

.site-loader.is-lite .site-loader-card {
  width: min(100%, 19rem);
  padding: 1.4rem 1.15rem 1.05rem;
  border-radius: 1.35rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 40px rgba(0, 0, 0, 0.24);
  animation-duration: 240ms;
}

.site-loader-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.024), transparent 28%);
  pointer-events: none;
}

.site-loader-mark {
  position: relative;
  width: 8.2rem;
  height: 8.2rem;
  margin: 0 auto 1.5rem;
  display: grid;
  place-items: center;
}

.site-loader.is-lite .site-loader-mark {
  width: 5rem;
  height: 5rem;
  margin-bottom: 0.85rem;
}

.site-loader-ring,
.site-loader-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.site-loader-ring {
  border: 1px solid rgba(115, 240, 255, 0.18);
  box-shadow:
    0 0 0 10px rgba(115, 240, 255, 0.04),
    0 0 40px rgba(115, 240, 255, 0.16);
}

.site-loader-ring::before,
.site-loader-ring::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  border: 1px solid transparent;
}

.site-loader-ring::before {
  inset: -0.45rem;
  border-top-color: rgba(115, 240, 255, 0.9);
  border-right-color: rgba(137, 255, 154, 0.4);
  animation: loaderSpin 2.8s linear infinite;
}

.site-loader-ring::after {
  inset: 0.38rem;
  border-top-color: rgba(137, 255, 154, 0.9);
  border-right-color: rgba(115, 240, 255, 0.4);
  animation: loaderSpinReverse 2.1s linear infinite;
}

.site-loader-core {
  inset: 0.95rem;
  display: grid;
  place-items: center;
  border-radius: 1.65rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, rgba(115, 240, 255, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(10, 18, 34, 0.96), rgba(6, 11, 23, 0.98));
  border: 1px solid rgba(115, 240, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.site-loader-core img {
  width: auto;
  height: auto;
  max-width: 78%;
  max-height: 78%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(84, 221, 255, 0.18));
  animation: loaderPulse 2.2s ease-in-out infinite;
}

.site-loader.is-lite .site-loader-ring,
.site-loader.is-lite .site-loader-ring::before,
.site-loader.is-lite .site-loader-ring::after,
.site-loader.is-lite .site-loader-progress,
.site-loader.is-lite .site-loader-status-row {
  display: none;
}

.site-loader.is-lite .site-loader-core {
  inset: 0;
}

.site-loader.is-lite .site-loader-core img {
  max-width: 74%;
  max-height: 74%;
  animation-duration: 1.4s;
}

.site-loader-copy {
  text-align: center;
}

.site-loader-kicker {
  margin: 0 0 0.6rem;
  color: var(--cold);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-loader-copy h2 {
  margin: 0;
  font-family: "Oxanium", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.35rem);
  line-height: 0.94;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.site-loader.is-lite .site-loader-kicker {
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.site-loader.is-lite .site-loader-copy h2 {
  font-size: clamp(1.45rem, 7vw, 2rem);
  line-height: 1;
  max-width: 10ch;
  margin-inline: auto;
}

.site-loader-progress {
  position: relative;
  height: 0.65rem;
  margin-top: 1.7rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(115, 240, 255, 0.12);
}

.site-loader-progress-bar {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cold), var(--hot));
  box-shadow: 0 0 24px rgba(115, 240, 255, 0.26);
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
}

.site-loader-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-loader-percent {
  color: #d7fff4;
}

@keyframes loaderSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes loaderSpinReverse {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

@keyframes loaderPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.035);
    opacity: 0.95;
  }
}

@keyframes loaderCardIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.site-header,
.hero,
.section,
.tech-ribbon,
.site-footer {
  width: min(1288px, calc(100% - 3rem));
  margin: 0 auto;
}

.tech-ribbon,
.section,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

section[id] {
  scroll-margin-top: 6.8rem;
}

.hero > *,
.section > *,
.contact-panel > *,
.projects-layout > *,
.capability-grid > * {
  min-width: 0;
}

.site-header {
  position: sticky;
  top: 0.85rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem;
  border: 1px solid rgba(118, 214, 255, 0.08);
  border-radius: 1.35rem;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(7, 14, 27, 0.78), rgba(7, 14, 27, 0.42));
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  overflow: hidden;
}

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

.brand-copy {
  display: grid;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-copy small {
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.78rem;
  opacity: 0.9;
}

.site-nav {
  display: flex;
  gap: 1.55rem;
}

.mobile-nav-head {
  display: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 0.12rem;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.language-switch {
  display: inline-flex;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.menu-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 0.26rem;
  flex-direction: column;
}

.menu-toggle span {
  display: block;
  width: 1rem;
  height: 1.5px;
  border-radius: 999px;
  background: #d7eaf7;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  border-color: rgba(115, 240, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.site-header.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(3.7px) rotate(45deg);
  background: #f5fbff;
}

.site-header.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-3.7px) rotate(-45deg);
  background: #f5fbff;
}

.language-button {
  min-width: 3rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 0.5rem 0.8rem;
  font: inherit;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.language-button.is-active {
  color: #041018;
  background: linear-gradient(120deg, var(--cold), var(--hot));
}

.panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(10, 18, 34, 0.74), rgba(7, 13, 27, 0.9));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.96fr);
  gap: 1.3rem;
  padding: 3.55rem 0;
  align-items: stretch;
}

.hero-copy,
.hero-visual,
.capability,
.project,
.solution-card,
.flow-step,
.contact-panel {
  border-radius: 1.75rem;
}

.hero-copy,
.hero-visual {
  padding: 1.55rem;
  height: 100%;
}

.hero-copy {
  display: grid;
  grid-template-rows: auto auto;
  gap: 1.1rem;
  justify-content: space-between;
}

.hero-main {
  display: grid;
  align-content: start;
  gap: 0.2rem;
}

.hero-visual {
  background:
    radial-gradient(circle at 82% 18%, rgba(115, 240, 255, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(10, 18, 34, 0.78), rgba(7, 13, 27, 0.94));
}

.hero-ribbon {
  grid-column: 1 / -1;
  margin-top: 0.2rem;
  margin-bottom: 0;
  border-radius: 1.15rem;
  border-inline: 1px solid rgba(118, 214, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
}

.kicker {
  margin: 0;
  color: var(--cold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}

.section-kicker {
  color: var(--cold);
}

.build-focus-label,
.build-metrics span,
.build-stack span {
  color: var(--cold);
}

.hero-copy h1,
.contact-modal h2 {
  font-family: "Oxanium", sans-serif;
  margin: 0.55rem 0 0;
  font-size: clamp(1.8rem, 3.7vw, 3.6rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--text);
  max-width: 9.5ch;
}

.section-title {
  display: block !important;
  font-family: "Oxanium", sans-serif !important;
  margin: 0.55rem 0 0 !important;
  font-size: clamp(2.2rem, 5vw, 4rem) !important;
  line-height: 0.92 !important;
  letter-spacing: -0.04em !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  text-wrap: balance !important;
  color: var(--text) !important;
  width: min(100%, 11.5ch) !important;
  max-width: 11.5ch !important;
}

.hero-copy h1 span {
  display: block;
  color: inherit;
}

.hero-copy h1 {
  max-width: 5.8ch;
  margin-top: 0.35rem;
  color: var(--text);
  text-shadow: 0 0 30px rgba(115, 240, 255, 0.08);
}

.contact-modal h2 {
  max-width: 10.5ch;
}

.lead,
.capability p,
.project p,
.system-copy p,
.flow-step p,
.contact-panel p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.02rem;
}

.system-copy .kicker,
.contact-panel .kicker,
.contact-modal .kicker {
  color: var(--cold);
}

.lead {
  max-width: 29rem;
  margin-top: 1.05rem;
  font-size: 0.96rem;
  line-height: 1.68;
}

.system-copy p,
.contact-copy p {
  max-width: 34rem;
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  padding-bottom: 0.15rem;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  border-color: var(--cold);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #041018;
  background: linear-gradient(120deg, var(--cold), var(--hot));
  border-color: rgba(137, 255, 154, 0.16);
  box-shadow: 0 12px 30px rgba(115, 240, 255, 0.18);
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.15rem;
}

.hero-stats article,
.visual-grid article {
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.02);
}

.hero-stats article {
  min-height: 5.35rem;
}

.stat-label {
  color: var(--cold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.cap-index,
.project-topline span:last-child,
.flow-step span,
.visual-grid h2 {
  color: #9bb5cf;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-stats strong {
  display: block;
  margin-top: 0.32rem;
  font-size: 0.92rem;
  line-height: 1.42;
}

.terminal-bar {
  display: flex;
  gap: 0.45rem;
}

.visual-topbar,
.visual-topline {
  display: flex;
  align-items: center;
}

.visual-topbar {
  justify-content: space-between;
  gap: 1rem;
}

.visual-topline {
  gap: 0.9rem;
}

.visual-panel-title {
  color: #d7eaf7;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.window-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.dot-close {
  background: #ff5f57;
}

.dot-minimize {
  background: #febc2e;
}

.dot-expand {
  background: #28c840;
}

.terminal-content {
  margin-top: 0.9rem;
  padding: 1rem 1.05rem;
  border-radius: 1.05rem;
  background: rgba(2, 5, 11, 0.9);
  border: 1px solid rgba(115, 240, 255, 0.1);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 26px rgba(0, 0, 0, 0.14);
}

.build-demo {
  margin-top: 0.75rem;
  padding: 0.7rem 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.build-status {
  color: var(--hot);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.build-demo-screen {
  padding: 0.88rem;
  border-radius: 0.95rem;
  background:
    linear-gradient(180deg, rgba(4, 8, 17, 0.96), rgba(3, 7, 15, 0.98));
  border: 1px solid rgba(118, 214, 255, 0.08);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.build-line {
  min-height: 2rem;
  margin: 0;
  color: #dce9f5;
  font-size: 0.98rem;
  line-height: 1.34;
  font-weight: 500;
}

.build-typed {
  display: inline-block;
  max-width: calc(100% - 2rem);
  vertical-align: top;
}

.build-prompt {
  color: var(--hot);
  margin-right: 0.5rem;
}

.build-caret {
  display: inline-block;
  width: 0.55rem;
  height: 1.1rem;
  margin-left: 0.12rem;
  vertical-align: middle;
  background: var(--cold);
  animation: blink 900ms steps(1) infinite;
}

.build-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.6rem;
}

.build-signals span {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.28rem 0.62rem;
  border: 1px solid rgba(115, 240, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #cfe5f5;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.build-focus {
  display: grid;
  gap: 0.38rem;
  margin-top: 0.68rem;
  padding: 0.72rem 0.82rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.build-focus-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.build-focus-value {
  display: block;
  min-height: calc(2 * 1.45em);
  color: #eef7ff;
  font-size: 0.88rem;
  line-height: 1.4;
  font-weight: 600;
  text-wrap: balance;
}

.build-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.68rem;
}

.build-metrics article {
  padding: 0.72rem 0.8rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.build-metrics span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.build-metrics strong {
  display: block;
  margin-top: 0.28rem;
  color: var(--text);
  font-size: 0.88rem;
}

.build-stack {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.build-stack article {
  display: grid;
  grid-template-columns: minmax(0, 8.6rem) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.72rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.build-stack span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.build-stack strong {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.34;
}

.terminal-content p {
  margin: 0.45rem 0;
  color: #a5bacf;
}

.terminal-content span {
  color: var(--hot);
}

.terminal-content strong {
  color: var(--text);
  font-weight: 600;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-top: 0.75rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(118, 214, 255, 0.08);
  align-items: start;
}

.visual-grid article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  align-content: start;
  gap: 0.58rem;
  min-height: auto;
  padding: 0.15rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.visual-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.8rem;
  height: 1.8rem;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: #9bb5cf;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

.visual-grid p {
  margin: 0;
  align-self: center;
  color: #dce8f3;
  font-size: 0.84rem;
  line-height: 1.32;
  max-width: 18ch;
}

.tech-ribbon {
  overflow: hidden;
  margin-top: 0.2rem;
  margin-bottom: 0.8rem;
  border-block: 1px solid rgba(118, 214, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent);
}

.tech-ribbon-track {
  display: flex;
  gap: 2.4rem;
  width: max-content;
  padding: 0.95rem 0;
  color: #d7eaf7;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  animation: ribbon-scroll 26s linear infinite;
}

.tech-ribbon-track span {
  position: relative;
}

.tech-ribbon-track span::after {
  content: "•";
  position: absolute;
  right: -1.35rem;
  color: rgba(255, 255, 255, 0.28);
}

.visual-grid article,
.hero-stats article,
.capability,
.project {
  min-width: 0;
}

.visual-grid h2 {
  margin: 0;
  font-size: 1.45rem;
}

.visual-grid p,
.hero-stats strong,
.project li,
.flow-step p {
  overflow-wrap: anywhere;
}

.section {
  padding: 5.8rem 0;
}

.section-head {
  display: grid;
  gap: 0.78rem;
  margin-bottom: 2.6rem;
  max-width: 34rem;
}

.system-copy.section-head,
.contact-copy.section-head {
  margin-bottom: 0;
  max-width: 34rem;
  width: 100%;
}

.system-copy,
.contact-copy,
.section-head {
  justify-items: start;
}

.section-head-secondary {
  margin-top: 4.8rem;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  align-items: stretch;
}

.capability,
.project,
.system-flow,
.contact-panel {
  padding: 1.45rem;
}

.capability,
.project {
  min-height: 17rem;
}

.solution-card {
  min-height: 17rem;
  padding: 1.45rem;
}

.capability h3,
.project h3,
.flow-step h3 {
  font-family: "Oxanium", sans-serif;
  margin: 0.6rem 0;
  font-size: 1.12rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.projects-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  align-items: stretch;
}

.solutions-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 1.2rem;
  align-items: stretch;
}

.flagship {
  background:
    radial-gradient(circle at 85% 15%, rgba(115, 240, 255, 0.18), transparent 22%),
    linear-gradient(180deg, rgba(10, 24, 49, 0.9), rgba(7, 13, 27, 0.94));
}

.projects-layout .project {
  background:
    linear-gradient(180deg, rgba(13, 22, 40, 0.9), rgba(7, 13, 27, 0.96));
}

.projects-layout .project:not(.project-disclaimer) {
  display: grid;
  grid-template-rows: auto auto minmax(5.2rem, auto) minmax(8.2rem, auto) auto auto;
  align-content: start;
}

.projects-layout .project:nth-child(2) {
  background:
    radial-gradient(circle at 82% 12%, rgba(115, 240, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(12, 23, 45, 0.94), rgba(7, 13, 27, 0.98));
}

.projects-layout .project:nth-child(3) {
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 122, 24, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(14, 21, 36, 0.92), rgba(7, 13, 27, 0.98));
}

.project-disclaimer {
  grid-column: 1 / -1;
  min-height: auto;
  padding-top: 1.35rem;
  padding-bottom: 1.35rem;
}

.project-disclaimer p {
  max-width: 58rem;
}

.capability,
.project,
.solution-card,
.flow-step,
.contact-panel,
.hero-copy,
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
}

.capability::before,
.project::before,
.solution-card::before,
.contact-panel::before,
.hero-copy::before,
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 32%);
  pointer-events: none;
}

.project-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}

.project-topline span:first-child {
  color: var(--cold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.solution-card .project-topline,
.project .project-topline {
  margin-bottom: 0.75rem;
}

.project-brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.95rem;
  margin: 0.05rem 0 0.9rem;
}

.project-logo {
  width: 4.35rem;
  height: 4.35rem;
  display: grid;
  place-items: center;
  padding: 0.4rem;
  border-radius: 1.1rem;
  background: rgba(6, 10, 20, 0.72);
  border: 1px solid rgba(115, 240, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 32px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.project-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-url {
  margin: 0.22rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  letter-spacing: 0.01em;
}

.project ul {
  padding-left: 1.1rem;
  color: #cfdfeb;
  line-height: 1.8;
  margin: 0.4rem 0 0;
}

.projects-layout .project:not(.project-disclaimer) > p {
  margin: 0;
}

.projects-layout .project:not(.project-disclaimer) > ul {
  margin: 0.55rem 0 0;
}

.solution-card ul {
  padding-left: 1.1rem;
  color: #cfdfeb;
  line-height: 1.8;
  margin: auto 0 0;
}

.solution-card li {
  overflow-wrap: anywhere;
}

.project-shot {
  position: relative;
  margin-top: 1rem;
  border-radius: 1.2rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 0;
  background:
    linear-gradient(180deg, rgba(7, 12, 24, 0.94), rgba(4, 8, 18, 0.98));
  border: 1px solid rgba(115, 240, 255, 0.1);
}

.project-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  backface-visibility: hidden;
  image-rendering: auto;
}

.project-shot-sportiveon img {
  object-position: center top;
  transform: scale(1.01);
  transform-origin: center center;
}

.project-shot-maffisol img {
  transform: scale(1.04);
  transform-origin: center center;
}

.project-link {
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  padding-bottom: 0.12rem;
  width: fit-content;
  transition:
    border-color 180ms ease,
    color 180ms ease;
}

.project-link:hover,
.project-link:focus-visible {
  border-color: var(--cold);
}

.system-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.7rem;
  align-items: start;
}

.system-copy,
.contact-copy {
  justify-items: start;
  align-content: start;
}

.system-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.flow-step {
  min-height: 13.2rem;
  padding: 1.45rem;
}

.solution-card p,
.project p,
.capability p {
  margin: 0 0 1rem;
}

.flow-step span {
  display: inline-block;
  margin-bottom: 0.6rem;
  font-size: 0.78rem;
  font-weight: 500;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) auto;
  gap: 2rem;
  align-items: center;
  padding: 1.8rem;
  min-height: 15rem;
}

.contact-copy p {
  max-width: 34rem;
}

.contact-actions {
  justify-content: flex-end;
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 7, 16, 0.72);
  backdrop-filter: blur(10px);
}

.contact-modal-dialog {
  position: relative;
  width: min(40rem, 100%);
  padding: 1.5rem;
  z-index: 1;
  border-radius: 1.8rem;
  background:
    radial-gradient(circle at 82% 10%, rgba(115, 240, 255, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(11, 20, 38, 0.96), rgba(7, 13, 27, 0.99));
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.contact-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 1.3rem;
  cursor: pointer;
}

.modal-copy {
  max-width: 34rem;
  color: var(--muted);
  line-height: 1.7;
}

.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
}

.contact-form span {
  color: #d9e9f7;
  font-size: 0.88rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(118, 214, 255, 0.14);
  border-radius: 1rem;
  background: rgba(2, 5, 11, 0.88);
  color: var(--text);
  padding: 0.95rem 1rem;
  font: inherit;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 1px solid rgba(115, 240, 255, 0.45);
  border-color: rgba(115, 240, 255, 0.35);
}

.contact-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.4rem;
}

.form-status {
  min-height: 1.4rem;
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-status[data-state="success"] {
  color: var(--hot);
}

.form-status[data-state="error"] {
  color: #ff9d8d;
}

.form-status[data-state="pending"] {
  color: var(--cold);
}

.site-footer {
  padding: 1.25rem 0 3.2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  border-top: 1px solid rgba(118, 214, 255, 0.12);
}

.site-footer p {
  margin: 0;
}

.footer-meta {
  margin-top: 0.4rem;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes ribbon-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.js .reveal {
  opacity: 0;
  transition: opacity 480ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
}

@media (max-width: 1500px) {
  .site-header,
  .hero,
  .section,
  .tech-ribbon,
  .site-footer {
    width: min(1180px, calc(100% - 2.4rem));
  }

  .site-header {
    top: 0.7rem;
    padding: 0.78rem 1rem;
    border-radius: 1.2rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    gap: 1rem;
    padding: 3.4rem 0;
  }

  .hero-copy,
  .hero-visual {
    padding: 1.45rem;
  }

  .hero-copy h1 {
    font-size: clamp(1.9rem, 3.3vw, 3.45rem);
    max-width: 5.8ch;
  }

  .lead {
    margin-top: 1.1rem;
    font-size: 0.94rem;
    max-width: 27rem;
  }

  .hero-actions,
  .contact-actions {
    margin-top: 1.65rem;
    gap: 0.75rem;
  }

  .button {
    min-height: 3.15rem;
    padding: 0 1.25rem;
    font-size: 0.78rem;
  }

  .hero-stats {
    gap: 0.7rem;
    margin-top: 1.15rem;
  }

  .hero-stats article {
    min-height: 5.7rem;
    padding: 0.85rem 0.9rem;
  }

  .hero-stats strong {
    font-size: 0.92rem;
  }

  .terminal-content {
    padding: 1rem 1.05rem;
  }

  .build-demo-screen {
    padding: 0.9rem;
  }

  .build-line {
    font-size: 0.98rem;
  }

  .build-focus-value,
  .build-stack strong,
  .visual-grid p {
    font-size: 0.9rem;
  }

  .build-metrics article,
  .build-stack article {
    padding: 0.82rem 0.88rem;
  }

  .visual-grid {
    gap: 0.75rem;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
  }
}

@media (max-width: 1040px) {
  .hero,
  .system-section,
  .contact-panel,
  .projects-layout,
  .solutions-grid,
  .capability-grid,
  .visual-grid,
  .build-metrics,
  .build-stack {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 1rem;
    padding: 3.2rem 0;
    align-items: start;
  }

  .hero-copy h1 {
    max-width: 8.5ch;
  }

  .hero-copy,
  .hero-visual {
    padding: 1.45rem;
    height: auto;
  }

  .hero-copy {
    grid-template-rows: auto auto;
    gap: 1.2rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

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

  .system-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: sticky;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.6rem 0.75rem;
    top: 0.65rem;
    padding: 0.72rem 0.9rem;
    border-radius: 1.15rem;
    background: linear-gradient(180deg, rgba(7, 14, 27, 0.92), rgba(7, 14, 27, 0.72));
    backdrop-filter: blur(16px);
  }

  .brand {
    gap: 0.7rem;
  }

  .brand-mark {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 0.85rem;
    font-size: 0.98rem;
  }

  .brand-copy strong {
    font-size: 0.95rem;
    letter-spacing: 0.12em;
  }

  .brand-copy small {
    font-size: 0.76rem;
    letter-spacing: 0.08em;
  }

  .header-actions {
    width: auto;
    position: relative;
  }

  .header-tools {
    gap: 0.5rem;
  }

  .menu-toggle {
    display: inline-flex;
    width: 3.15rem;
    height: 3.15rem;
    background: rgba(255, 255, 255, 0.05);
  }

  .menu-toggle span {
    width: 1.05rem;
    height: 1.7px;
    background: #f0fbff;
  }

  .site-header.menu-open .menu-toggle {
    background: rgba(115, 240, 255, 0.08);
    border-color: rgba(115, 240, 255, 0.24);
    box-shadow: 0 0 0 1px rgba(115, 240, 255, 0.06);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.7rem);
    right: 0;
    min-width: min(18rem, calc(100vw - 1.4rem));
    display: grid;
    gap: 0.35rem;
    padding: 0.75rem;
    border: 1px solid rgba(118, 214, 255, 0.14);
    border-radius: 1.1rem;
    background:
      linear-gradient(180deg, rgba(10, 18, 34, 0.96), rgba(7, 13, 27, 0.98));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 180ms ease;
    z-index: 30;
  }

  .mobile-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0 0 0.45rem;
    margin-bottom: 0.2rem;
    border-bottom: 1px solid rgba(118, 214, 255, 0.08);
  }

  .mobile-nav-label {
    color: #8ca6c1;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .site-header.menu-open .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 2.8rem;
    padding: 0.7rem 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    border-bottom: 1px solid rgba(118, 214, 255, 0.08);
    color: #d7eaf7;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .site-nav a:last-of-type {
    border-bottom: 0;
  }

  .header-tools > .language-switch {
    display: none;
  }

  .mobile-nav-head .language-switch {
    display: inline-flex;
    padding: 0.18rem;
    background: rgba(255, 255, 255, 0.02);
  }

  .hero {
    padding-top: 1.35rem;
    padding-bottom: 1.8rem;
    gap: 0.9rem;
  }

  .hero-copy h1,
  .contact-modal h2 {
    font-size: clamp(2rem, 10.2vw, 2.95rem);
    max-width: 100%;
  }

  .section-title {
    font-size: clamp(2rem, 10.2vw, 2.95rem);
    max-width: 100%;
  }


  .hero-copy h1 {
    line-height: 0.9;
    max-width: 5.9ch;
  }

  .site-header,
  .hero,
  .section,
  .site-footer {
    width: min(100%, calc(100% - 1.4rem));
  }

  .hero-copy,
  .hero-visual,
  .capability,
  .project,
  .solution-card,
  .flow-step,
  .contact-panel {
    border-radius: 1.35rem;
  }

  .hero-copy,
  .hero-visual,
  .capability,
  .project,
  .solution-card,
  .flow-step,
  .contact-panel,
  .contact-modal-dialog {
    padding: 1.2rem;
  }

  .site-loader {
    padding: 1rem;
  }

  .site-loader-card {
    padding: 2rem 1.2rem 1.4rem;
    border-radius: 1.45rem;
  }

  .site-loader-mark {
    width: 7rem;
    height: 7rem;
    margin-bottom: 1.15rem;
  }

  .site-loader-status-row {
    font-size: 0.8rem;
  }

  .hero-main {
    gap: 0.9rem;
  }

  .hero-actions,
  .contact-actions,
  .contact-form-actions {
    flex-direction: column;
    margin-top: 1.5rem;
  }

  .button {
    width: 100%;
    min-height: 3.15rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin-top: 1.2rem;
  }

  .hero-stats article {
    min-height: auto;
    padding: 0.95rem;
  }

  .hero-stats article:last-child {
    grid-column: 1 / -1;
  }

  .build-demo {
    padding: 0.95rem;
  }

  .visual-panel-title,
  .build-status {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .build-demo-screen {
    padding: 0.95rem;
  }

  .build-line {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 0.45rem;
    min-height: calc(2 * 1.35em);
    font-size: 0.94rem;
    line-height: 1.35;
  }

  .build-typed {
    max-width: 100%;
  }

  .build-caret {
    margin-left: 0;
    margin-top: 0.08rem;
  }

  .build-metrics,
  .build-stack,
  .visual-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .build-signals {
    gap: 0.4rem;
    justify-content: flex-start;
  }

  .build-signals span {
    width: auto;
    justify-content: center;
  }

  .build-focus {
    padding: 0.82rem 0.85rem;
  }

  .build-metrics article,
  .visual-grid article {
    padding: 0.82rem 0.85rem;
  }

  .visual-grid article {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: auto;
    gap: 0.6rem;
    padding: 0.15rem 0;
  }

  .visual-index {
    font-size: 0.86rem;
  }

  .build-stack article {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 0.82rem 0.85rem;
  }

  .terminal-content {
    padding: 1rem;
    font-size: 0.93rem;
  }

  .terminal-content p {
    margin: 0.38rem 0;
  }

  .section {
    padding: 3.6rem 0;
  }

  .section-head {
    margin-bottom: 1.35rem;
  }

  .section-head-secondary {
    margin-top: 2.8rem;
  }

  .capability-grid,
  .projects-layout,
  .solutions-grid {
    gap: 0.85rem;
  }

  .capability,
  .project,
  .solution-card {
    min-height: auto;
  }

  .project-link {
    margin-top: 1rem;
  }

  .project-brand {
    gap: 0.8rem;
  }

  .projects-layout .project:not(.project-disclaimer) {
    display: flex;
  }

  .project-logo {
    width: 3.7rem;
    height: 3.7rem;
    border-radius: 1rem;
  }

  .project-shot {
    aspect-ratio: 16 / 9;
    min-height: 0;
    margin-top: 0.9rem;
  }

  .system-copy {
    order: 1;
  }

  .system-steps {
    order: 2;
    gap: 0.85rem;
    min-height: auto;
  }

  .flow-step {
    min-height: auto;
  }

  .contact-panel {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 1rem;
  }

  .contact-actions {
    width: 100%;
    justify-content: stretch;
  }

  .tech-ribbon {
    margin-bottom: 0.2rem;
    mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  }

  .hero-ribbon {
    margin-top: 0.25rem;
    border-radius: 1rem;
  }

  .tech-ribbon-track {
    gap: 1.5rem;
    padding: 0.82rem 0;
    font-size: 0.68rem;
    animation-duration: 22s;
  }

  .site-footer {
    width: min(100%, calc(100% - 1.4rem));
    padding-bottom: 2.2rem;
    display: grid;
    gap: 0.45rem;
    font-size: 0.84rem;
  }

  .contact-modal-dialog {
    width: min(100%, calc(100% - 0.4rem));
    max-height: min(90vh, 46rem);
    overflow: auto;
  }
}

@media (max-width: 540px) {
  .site-header {
    gap: 0.55rem 0.6rem;
    padding-top: 0.7rem;
  }

  .brand-copy small {
    display: none;
  }

  .mobile-nav-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .menu-toggle {
    width: 2.8rem;
    height: 2.8rem;
  }

  .hero-copy h1 {
    max-width: 5.7ch;
  }

  .kicker {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .lead,
  .capability p,
  .project p,
  .system-copy p,
  .flow-step p,
  .contact-panel p,
  .modal-copy {
    font-size: 0.96rem;
    line-height: 1.62;
  }

  .build-stack strong,
  .build-metrics strong {
    font-size: 0.88rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats article:last-child {
    grid-column: auto;
  }

  .contact-modal {
    padding: 0.6rem;
  }
}

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

  .reveal,
  .reveal.is-visible,
  .button,
  .build-caret,
  .tech-ribbon-track {
    animation: none !important;
    transition: none !important;
  }
}
