/* Brownrigg Technologies — custom static design system */

:root {
  --ink: #07110f;
  --ink-soft: #0b1714;
  --panel: #101f1b;
  --panel-2: #142823;
  --paper: #f2f5ed;
  --paper-soft: #cdd5ca;
  --muted: #8f9e98;
  --line: rgba(226, 239, 230, 0.14);
  --line-strong: rgba(226, 239, 230, 0.26);
  --acid: #c8ff57;
  --acid-soft: #e2ffa7;
  --aqua: #67e7e0;
  --orange: #ff9f5a;
  --purple: #ad93ff;
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.35);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 30px;
  --shell: 1240px;
  --header-height: 82px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 28px);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 75% 8%, rgba(103, 231, 224, 0.09), transparent 28rem),
    radial-gradient(circle at 18% 24%, rgba(200, 255, 87, 0.055), transparent 24rem),
    var(--ink);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

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

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

p,
h1,
h2,
h3,
ul,
ol {
  margin-top: 0;
}

h1,
h2,
h3,
.brand-type,
.process-art,
.panel-code,
.kicker,
.eyebrow {
  font-family: "Arial Narrow", "Roboto Condensed", Impact, ui-sans-serif, sans-serif;
}

h1,
h2,
h3 {
  letter-spacing: -0.045em;
  line-height: 0.98;
}

h1 em,
h2 em {
  color: var(--acid);
  font-style: normal;
}

:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  transform: translateY(-160%);
  border-radius: 7px;
  background: var(--acid);
  color: var(--ink);
  font-weight: 800;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 44px), var(--shell));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(88px, 10vw, 148px) 0;
}

.page-noise {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.85'/%3E%3C/svg%3E");
}

.cursor-light {
  position: fixed;
  z-index: -1;
  width: 620px;
  aspect-ratio: 1;
  left: var(--mouse-x, 70vw);
  top: var(--mouse-y, 20vh);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(103, 231, 224, 0.08), transparent 67%);
  transition: opacity 300ms ease;
}

.kicker,
.eyebrow {
  color: var(--acid);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--paper-soft);
  letter-spacing: 0.12em;
  background: rgba(255, 255, 255, 0.025);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 14px var(--acid);
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 0.92rem;
  font-weight: 800;
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease, transform 220ms var(--ease);
}

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

.button-primary {
  background: var(--acid);
  color: var(--ink);
  box-shadow: 0 14px 40px rgba(200, 255, 87, 0.15);
}

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

.button-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--paper);
}

.button-ghost:hover {
  border-color: var(--paper-soft);
  background: rgba(255, 255, 255, 0.055);
}

/* Header */

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background 240ms ease, border-color 240ms ease, backdrop-filter 240ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(7, 17, 15, 0.86);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(200, 255, 87, 0.2));
}

.brand-type {
  display: grid;
  gap: 0;
  letter-spacing: -0.02em;
  line-height: 0.92;
  text-transform: uppercase;
}

.brand-type strong {
  color: var(--paper);
  font-size: 1rem;
  letter-spacing: 0.045em;
}

.brand-type span {
  color: var(--muted);
  font-size: 0.69rem;
  letter-spacing: 0.18em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 34px);
}

.primary-nav > a {
  position: relative;
  color: var(--paper-soft);
  font-size: 0.83rem;
  font-weight: 700;
}

.primary-nav > a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--acid);
  content: "";
  transition: transform 220ms var(--ease);
}

.primary-nav > a:not(.nav-cta):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--paper) !important;
  transition: border-color 180ms ease, background 180ms ease !important;
}

.nav-cta:hover {
  border-color: var(--acid);
  background: rgba(200, 255, 87, 0.07);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: transparent;
  color: var(--paper);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 19px;
  height: 1px;
  margin: 6px auto;
  background: currentColor;
  transition: transform 220ms ease;
}

/* Hero */

.hero {
  min-height: 920px;
  overflow: clip;
  padding-top: clamp(148px, 14vw, 205px);
  padding-bottom: 72px;
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: -280px;
  left: 50%;
  width: 1px;
  height: 920px;
  background: linear-gradient(transparent, rgba(200, 255, 87, 0.28), transparent);
  box-shadow: 190px 0 rgba(255, 255, 255, 0.025), -190px 0 rgba(255, 255, 255, 0.025), 380px 0 rgba(255, 255, 255, 0.018), -380px 0 rgba(255, 255, 255, 0.018);
  content: "";
  transform: rotate(34deg);
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: clamp(38px, 6vw, 90px);
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
}

.hero-copy {
  min-width: 0;
  max-width: 100%;
}

.hero-copy h1 {
  max-width: 790px;
  margin-bottom: 26px;
  font-size: clamp(4rem, 6.5vw, 7.2rem);
  font-weight: 780;
}

.hero-lede {
  max-width: 680px;
  margin-bottom: 24px;
  color: var(--paper-soft);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.62;
}

.hero-provocation {
  display: flex;
  max-width: 680px;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 31px;
  padding-left: 16px;
  border-left: 2px solid var(--orange);
}

.hero-provocation strong {
  flex: 0 0 auto;
  color: var(--paper);
  font-size: 1.07rem;
}

.hero-provocation sup {
  color: var(--orange);
}

.hero-provocation span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 50px;
}

.hero-proof {
  display: grid;
  max-width: 720px;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
  grid-template-columns: repeat(3, 1fr);
}

.hero-proof li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 4px 0;
  color: var(--paper-soft);
  font-size: 0.76rem;
  font-weight: 700;
}

.hero-proof li span {
  color: var(--acid);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.61rem;
}

.hero-system {
  position: relative;
  min-width: 0;
  perspective: 1200px;
}

.system-window {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(10, 25, 21, 0.86);
  box-shadow: var(--shadow);
  transform: rotateY(-4deg) rotateX(2deg);
}

.window-bar {
  display: flex;
  height: 46px;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.63rem;
  letter-spacing: 0.12em;
}

.window-lights {
  display: flex;
  gap: 6px;
}

.window-lights i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
}

.window-lights i:first-child {
  background: var(--acid);
  box-shadow: 0 0 10px rgba(200, 255, 87, 0.7);
}

.system-canvas {
  position: relative;
  min-height: 510px;
  padding: 42px 30px 80px;
}

.grid-lines,
.contact-grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 94%);
  mask-image: linear-gradient(to bottom, black, transparent 94%);
}

.flow-node {
  position: relative;
  z-index: 2;
  width: 72%;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(16, 35, 29, 0.95);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
}

.flow-node strong,
.flow-node small,
.flow-node span {
  display: block;
}

.flow-node strong {
  margin: 5px 0 2px;
  color: var(--paper);
  font-size: 0.92rem;
}

.flow-node small {
  color: var(--muted);
  font-size: 0.7rem;
}

.node-index {
  color: var(--acid);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
}

.node-input {
  margin-right: auto;
}

.node-core {
  width: 78%;
  margin: 47px 0 47px auto;
  border-color: rgba(103, 231, 224, 0.5);
  background: linear-gradient(135deg, rgba(103, 231, 224, 0.12), rgba(16, 35, 29, 0.96));
}

.node-core .node-index {
  color: var(--aqua);
}

.node-output {
  margin-right: auto;
  border-color: rgba(200, 255, 87, 0.42);
}

.flow-link {
  position: absolute;
  z-index: 1;
  width: 86px;
  height: 70px;
  border-right: 1px solid rgba(200, 255, 87, 0.5);
  border-bottom: 1px solid rgba(200, 255, 87, 0.5);
  border-radius: 0 0 15px;
}

.flow-link span {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 12px var(--acid);
  animation: signalPulse 2.2s ease-in-out infinite;
}

.link-one {
  top: 120px;
  left: 37%;
}

.link-two {
  top: 281px;
  right: 40%;
  transform: scaleX(-1);
}

.core-orbit {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  border: 1px solid rgba(103, 231, 224, 0.3);
  border-radius: 50%;
  animation: orbitSpin 8s linear infinite;
}

.core-orbit i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--aqua);
}

.core-orbit i:nth-child(1) { top: -2px; left: 14px; }
.core-orbit i:nth-child(2) { right: -2px; bottom: 8px; }
.core-orbit i:nth-child(3) { bottom: 1px; left: 5px; }

.status-rail {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-top: 1px solid var(--line);
  background: rgba(2, 10, 8, 0.5);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.57rem;
}

.status-rail span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.status-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 8px var(--acid);
}

.status-rail code {
  color: var(--aqua);
}

.float-chip {
  position: absolute;
  z-index: 4;
  width: 148px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(11, 26, 22, 0.92);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
}

.float-chip span,
.float-chip strong {
  display: block;
}

.float-chip span {
  color: var(--acid);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.49rem;
  letter-spacing: 0.1em;
}

.float-chip strong {
  margin-top: 3px;
  font-size: 0.7rem;
}

.chip-one {
  top: 76px;
  right: -39px;
  animation: floatChip 5s ease-in-out infinite;
}

.chip-two {
  bottom: 84px;
  left: -38px;
  animation: floatChip 5s 1.7s ease-in-out infinite;
}

.marquee-wrap {
  margin-top: clamp(86px, 10vw, 140px);
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.marquee {
  width: max-content;
  padding: 16px 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  animation: marquee 34s linear infinite;
}

.marquee span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.marquee i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--acid);
}

/* Section headings and services */

.section-heading {
  display: grid;
  align-items: end;
  gap: 40px;
  margin-bottom: 60px;
  grid-template-columns: 1.4fr 0.6fr;
}

.section-heading h2,
.principles-title h2 {
  margin: 16px 0 0;
  font-size: clamp(3rem, 5.4vw, 6.1rem);
}

.section-heading > p {
  max-width: 450px;
  margin: 0 0 8px auto;
  color: var(--paper-soft);
  font-size: 1.02rem;
}

.services {
  padding-top: 92px;
}

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

.service-card {
  position: relative;
  min-height: 450px;
  overflow: hidden;
  padding: clamp(26px, 3.3vw, 40px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
  transition: background 300ms ease, transform 300ms var(--ease);
}

.service-card::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--glow-x, 85%) var(--glow-y, 5%), rgba(200, 255, 87, 0.11), transparent 38%);
  content: "";
  opacity: 0;
  transition: opacity 300ms ease;
}

.service-card:hover {
  z-index: 2;
  background: rgba(255, 255, 255, 0.028);
  transform: translateY(-5px);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card.featured {
  background: linear-gradient(145deg, rgba(200, 255, 87, 0.075), rgba(255, 255, 255, 0.018));
}

.service-card.ai-card {
  background: linear-gradient(145deg, rgba(173, 147, 255, 0.085), rgba(255, 255, 255, 0.018));
}

.card-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 54px;
}

.card-top > span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.65rem;
}

.card-top svg {
  width: 42px;
  fill: none;
  stroke: var(--acid);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.ai-card .card-top svg {
  stroke: var(--purple);
}

.service-card h3 {
  position: relative;
  margin-bottom: 17px;
  font-size: clamp(1.7rem, 2.4vw, 2.45rem);
}

.service-card > p:not(.expert-label) {
  position: relative;
  min-height: 92px;
  margin-bottom: 32px;
  color: var(--paper-soft);
  font-size: 0.91rem;
}

.expert-label {
  position: relative;
  display: inline-block;
  margin: -28px 0 10px;
  color: var(--acid) !important;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.57rem !important;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-card ul {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-card li,
.tag-row span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.56rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Impossible manifesto */

.impossible {
  padding-top: 28px;
  padding-bottom: clamp(90px, 10vw, 148px);
}

.impossible-card {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 72px);
  border: 1px solid rgba(255, 159, 90, 0.32);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(120deg, rgba(255, 159, 90, 0.11), transparent 34%),
    linear-gradient(310deg, rgba(173, 147, 255, 0.08), transparent 42%),
    var(--ink-soft);
  box-shadow: var(--shadow);
}

.impossible-card::before,
.contact-card::before,
.lab-card::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 250px at var(--glow-x, 75%) var(--glow-y, 15%), rgba(255, 255, 255, 0.07), transparent 70%);
  content: "";
  pointer-events: none;
}

.impossible-meta {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  gap: 16px;
  margin-bottom: 52px;
  color: var(--orange);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  grid-template-columns: auto 1fr auto;
}

.impossible-meta i {
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 159, 90, 0.4), transparent);
}

.impossible-grid {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: end;
  gap: clamp(36px, 7vw, 110px);
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
}

.impossible-grid h2 {
  max-width: 830px;
  margin: 0;
  font-size: clamp(2.8rem, 5.3vw, 6rem);
}

.impossible-grid h2 em {
  color: var(--orange);
}

.impossible-grid p {
  color: var(--paper-soft);
  font-size: 0.97rem;
}

.impossible-grid p:last-child {
  margin-bottom: 0;
}

/* Systems tabs */

.systems {
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
}

.systems .kicker {
  color: #48613c;
}

.systems-frame {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-height: 730px;
  overflow: hidden;
  border: 1px solid rgba(7, 17, 15, 0.18);
  border-radius: var(--radius-lg);
  background: #e8ede3;
  box-shadow: 0 40px 100px rgba(7, 17, 15, 0.16);
  grid-template-columns: 370px minmax(0, 1fr);
}

.systems-intro {
  display: flex;
  min-width: 0;
  padding: clamp(32px, 4vw, 54px);
  border-right: 1px solid rgba(7, 17, 15, 0.16);
  flex-direction: column;
}

.systems-intro h2 {
  margin: 14px 0 20px;
  font-size: clamp(2.7rem, 4.1vw, 4.7rem);
}

.systems-intro h2 em {
  color: #3f5c32;
}

.systems-intro > p:not(.kicker) {
  color: #4c5b55;
  font-size: 0.9rem;
}

.system-tabs {
  display: grid;
  min-width: 0;
  gap: 0;
  margin-top: auto;
  border-top: 1px solid rgba(7, 17, 15, 0.18);
}

.system-tabs button {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  gap: 18px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(7, 17, 15, 0.14);
  background: transparent;
  color: #405049;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: left;
  transition: color 200ms ease, padding 200ms var(--ease);
}

.system-tabs button span {
  color: #829087;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.56rem;
}

.system-tabs button::after {
  margin-left: auto;
  content: "↗";
  opacity: 0;
  transform: translate(-8px, 8px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.system-tabs button[aria-selected="true"] {
  padding-left: 10px;
  color: var(--ink);
}

.system-tabs button[aria-selected="true"] span {
  color: #3f5c32;
}

.system-tabs button[aria-selected="true"]::after {
  opacity: 1;
  transform: translate(0, 0);
}

.system-panels {
  position: relative;
  min-width: 0;
  background: #dfe6da;
}

.system-panel {
  display: grid;
  min-width: 0;
  min-height: 730px;
  animation: panelIn 450ms var(--ease) both;
  grid-template-rows: auto minmax(330px, 1fr);
}

.system-panel[hidden] {
  display: none;
}

.panel-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 690px;
  padding: clamp(36px, 5vw, 70px);
}

.panel-code {
  margin-bottom: 23px;
  color: #49623e;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.panel-copy h3 {
  margin-bottom: 21px;
  font-size: clamp(2.2rem, 4.2vw, 4.35rem);
}

.panel-copy > p:not(.panel-code) {
  max-width: 600px;
  color: #4d5d56;
  font-size: 0.95rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 26px;
}

.tag-row span {
  border-color: rgba(7, 17, 15, 0.17);
  color: #55655d;
}

.panel-visual {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-top: 1px solid rgba(7, 17, 15, 0.13);
  background: #d5ded0;
}

.app-shell {
  position: absolute;
  right: 8%;
  bottom: -58px;
  left: 8%;
  display: grid;
  min-height: 380px;
  overflow: hidden;
  border: 1px solid rgba(7, 17, 15, 0.23);
  border-radius: 16px 16px 0 0;
  background: #eff3ec;
  box-shadow: 0 30px 80px rgba(7, 17, 15, 0.16);
  grid-template-columns: 72px 1fr;
  transform: perspective(900px) rotateX(6deg);
  transform-origin: bottom;
}

.app-sidebar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 0;
  background: var(--ink);
  flex-direction: column;
}

.app-sidebar i {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.app-sidebar i:first-child {
  background: var(--acid);
  border-color: var(--acid);
}

.app-main {
  padding: 28px;
}

.app-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 27px;
}

.app-header span { width: 42%; height: 16px; border-radius: 4px; background: #9ca99d; }
.app-header b { width: 34px; height: 34px; border-radius: 50%; background: #c9d3c6; }
.app-metrics { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
.app-metrics i { height: 70px; border: 1px solid rgba(7, 17, 15, 0.12); border-radius: 8px; background: #e1e8de; }
.app-chart { height: 150px; margin-top: 18px; padding: 14px; border: 1px solid rgba(7, 17, 15, 0.12); border-radius: 8px; }
.app-chart svg { width: 100%; height: 100%; }
.app-chart path { fill: none; stroke: #446735; stroke-width: 3; }
.app-chart path.chart-fill { fill: rgba(68, 103, 53, 0.09); stroke: none; }

.bi-map,
.ai-field {
  position: absolute;
  inset: 0;
}

.bi-map > svg,
.ai-field > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(7, 17, 15, 0.23);
  stroke-dasharray: 5 6;
  stroke-width: 1.5;
}

.data-source,
.semantic-core,
.decision-card {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(7, 17, 15, 0.22);
  color: #4c5e54;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.58rem;
  font-weight: 800;
}

.data-source { left: 8%; width: 72px; height: 45px; border-radius: 7px; background: #e8ede5; }
.source-a { top: 11%; }
.source-b { top: calc(50% - 23px); }
.source-c { bottom: 11%; }
.semantic-core { top: 50%; left: 47%; width: 130px; height: 130px; transform: translate(-50%, -50%) rotate(45deg); border-color: #4e693f; background: #eaf2df; }
.semantic-core span, .semantic-core strong, .semantic-core i { transform: rotate(-45deg); }
.semantic-core span { font-size: 0.46rem; }
.semantic-core strong { margin-top: -35px; color: var(--ink); font-size: 0.75rem; }
.semantic-core i { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #567447; box-shadow: 0 0 0 7px rgba(86, 116, 71, 0.12); }
.decision-card { top: 50%; right: 6%; width: 126px; height: 145px; align-content: center; gap: 11px; transform: translateY(-50%); border-radius: 10px; background: #eff3ec; }
.decision-card b { display: block; width: 74%; height: 9px; border-radius: 2px; background: #cad5c7; }
.decision-card b:nth-child(3) { width: 54%; background: #8ca283; }

.automation-flow {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: min(90%, 680px);
  align-items: center;
  transform: translate(-50%, -50%);
}

.auto-node {
  flex: 0 0 150px;
  padding: 16px;
  border: 1px solid rgba(7, 17, 15, 0.22);
  border-radius: 9px;
  background: #edf1e9;
}

.auto-node span,
.auto-node strong {
  display: block;
}

.auto-node span,
.auto-split span {
  color: #6d7c73;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.49rem;
}

.auto-node strong { margin-top: 4px; font-size: 0.75rem; }
.auto-node.accent { border-color: #526c45; background: #e6f2d7; }
.auto-line { flex: 1 1 40px; height: 1px; background: #73836f; }
.auto-split { display: grid; flex: 0 0 150px; gap: 7px; }
.auto-split div { padding: 11px; border: 1px solid rgba(7,17,15,.18); border-radius: 7px; background: #edf1e9; font-size: .69rem; font-weight: 800; }
.auto-split span { display: block; margin-bottom: 2px; color: #547145; }
.auto-split div:last-child span { color: #a45e36; }

.ai-field {
  background: radial-gradient(circle at 50% 50%, rgba(173, 147, 255, 0.18), transparent 30%);
}

.ai-core {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 150px;
  height: 150px;
  place-content: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(73, 45, 155, 0.43);
  border-radius: 50%;
  background: rgba(242, 245, 237, 0.86);
  box-shadow: 0 0 0 18px rgba(173, 147, 255, 0.08), 0 0 70px rgba(95, 61, 190, 0.18);
  text-align: center;
}

.ai-core span { color: #745bc2; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.5rem; }
.ai-core strong { font-size: 0.72rem; }
.ai-core i { position: absolute; top: 17px; right: 20px; width: 8px; height: 8px; border-radius: 50%; background: #745bc2; box-shadow: 0 0 11px #745bc2; }
.ai-satellite { position: absolute; z-index: 2; display: grid; width: 66px; height: 38px; place-items: center; border: 1px solid rgba(73,45,155,.25); border-radius: 999px; background: #edf0e9; color: #6a53ae; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .48rem; font-weight: 800; }
.sat-one { top: 15%; left: 13%; }
.sat-two { top: 17%; right: 12%; }
.sat-three { bottom: 15%; left: 15%; }
.sat-four { right: 15%; bottom: 15%; }
.ai-field > svg { stroke: rgba(73,45,155,.2); stroke-dasharray: 4 7; }

.web-browser {
  position: absolute;
  right: 7%;
  bottom: -20px;
  left: 7%;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid rgba(7,17,15,.22);
  border-radius: 14px 14px 0 0;
  background: #f0f3ec;
  box-shadow: 0 30px 65px rgba(7,17,15,.15);
}

.web-bar { display: flex; height: 42px; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid rgba(7,17,15,.13); }
.web-bar i { width: 6px; height: 6px; border-radius: 50%; background: #a9b4aa; }
.web-bar i:first-child { background: #5f784f; }
.web-bar span { margin-left: 10px; color: #6b786f; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .48rem; }
.web-page { padding: 38px; background: linear-gradient(135deg, #e8ede4, #f5f6f2); }
.web-page > b { display: block; width: 83px; height: 8px; margin-bottom: 23px; border-radius: 5px; background: #788e6b; }
.web-page > strong { display: block; width: 70%; height: 44px; margin-bottom: 15px; border-radius: 4px; background: #1b2d27; }
.web-page > p { width: 54%; height: 25px; border-radius: 3px; background: #bbc6b9; }
.web-page > div { display: grid; gap: 12px; margin-top: 30px; grid-template-columns: 1fr 1fr; }
.web-page > div i { height: 90px; border: 1px solid rgba(7,17,15,.13); border-radius: 7px; background: #dce4d9; }
.web-page > div i:last-child { background: #d7e9c3; }

/* Process */

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

.process-list li {
  position: relative;
  display: grid;
  min-height: 158px;
  align-items: center;
  gap: 32px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 70px 1fr auto;
}

.process-number {
  color: var(--acid);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.64rem;
}

.process-list h3 {
  margin: 0 0 8px;
  font-size: clamp(1.65rem, 2.5vw, 2.5rem);
}

.process-list p {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
}

.process-art {
  color: rgba(255, 255, 255, 0.025);
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  transition: color 300ms ease, transform 400ms var(--ease);
}

.process-list li:hover .process-art {
  color: rgba(200, 255, 87, 0.09);
  transform: translateX(-12px);
}

.payment-card {
  display: grid;
  align-items: center;
  gap: clamp(36px, 6vw, 90px);
  margin-top: 80px;
  padding: clamp(30px, 5vw, 62px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(115deg, rgba(200, 255, 87, 0.075), rgba(103, 231, 224, 0.035));
  grid-template-columns: 0.7fr 1.3fr;
}

.payment-copy h3 {
  margin: 16px 0 14px;
  font-size: clamp(2rem, 3.4vw, 3.5rem);
}

.payment-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.87rem;
}

.payment-steps {
  display: grid;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  grid-template-columns: repeat(4, 1fr);
}

.payment-steps > div {
  min-height: 150px;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.payment-steps strong,
.payment-steps span,
.payment-steps small {
  display: block;
}

.payment-steps strong {
  color: var(--acid);
  font-size: 1.7rem;
}

.payment-steps span {
  margin-top: 18px;
  font-size: 0.8rem;
  font-weight: 800;
}

.payment-steps small {
  color: var(--muted);
  font-size: 0.61rem;
}

/* Work and principles */

.work {
  background: #0a1512;
}

.lab-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
}

.lab-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  padding: clamp(28px, 4vw, 50px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(200, 255, 87, 0.08), transparent 45%),
    var(--panel);
}

.lab-card::after {
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(200, 255, 87, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(200, 255, 87, 0.025), 0 0 0 80px rgba(200, 255, 87, 0.018);
  content: "";
}

.lab-card::before {
  z-index: 1;
}

.lab-card > * {
  position: relative;
  z-index: 2;
}

.lab-card-alt {
  background: linear-gradient(160deg, rgba(103, 231, 224, 0.08), transparent 45%), var(--panel);
}

.lab-card-alt::after {
  border-color: rgba(103, 231, 224, 0.13);
  box-shadow: 0 0 0 40px rgba(103, 231, 224, 0.025), 0 0 0 80px rgba(103, 231, 224, 0.018);
}

.lab-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--paper-soft);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lab-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 11px var(--acid);
}

.lab-domain {
  margin: 80px 0 12px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.64rem;
}

.lab-card h3 {
  margin-bottom: 18px;
  font-size: clamp(2.3rem, 4vw, 4rem);
}

.lab-card > p {
  position: relative;
  z-index: 2;
  max-width: 480px;
  color: var(--paper-soft);
  font-size: 0.9rem;
}

.lab-footer {
  position: absolute;
  z-index: 2;
  right: 42px;
  bottom: 36px;
  left: 42px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.54rem;
  text-transform: uppercase;
}

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

.principles-grid {
  display: grid;
  gap: clamp(60px, 9vw, 150px);
  grid-template-columns: 0.75fr 1.25fr;
}

.principles-title h2 {
  position: sticky;
  top: 130px;
}

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

.principle-list article {
  display: grid;
  min-height: 190px;
  align-items: start;
  gap: 30px;
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 50px 1fr;
}

.principle-list article > span {
  color: var(--acid);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.61rem;
}

.principle-list h3 {
  margin-bottom: 13px;
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
}

.principle-list p {
  max-width: 510px;
  margin: 0;
  color: var(--muted);
}

/* Contact and footer */

.contact {
  padding-top: 20px;
}

.contact-card {
  position: relative;
  display: grid;
  min-height: 520px;
  align-items: center;
  gap: 60px;
  overflow: hidden;
  padding: clamp(38px, 7vw, 90px);
  border: 1px solid rgba(200, 255, 87, 0.24);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 86% 50%, rgba(200, 255, 87, 0.17), transparent 27%),
    linear-gradient(130deg, rgba(103, 231, 224, 0.07), transparent 45%),
    var(--panel);
  grid-template-columns: 1fr 0.75fr;
}

.contact-grid {
  opacity: 0.12;
  -webkit-mask-image: radial-gradient(circle at 70% 40%, black, transparent 70%);
  mask-image: radial-gradient(circle at 70% 40%, black, transparent 70%);
}

.contact-card::before {
  z-index: 1;
  background: radial-gradient(circle 300px at var(--glow-x, 80%) var(--glow-y, 20%), rgba(200, 255, 87, 0.09), transparent 72%);
}

.contact-copy,
.contact-action {
  position: relative;
  z-index: 2;
}

.contact-copy h2 {
  margin: 16px 0 23px;
  font-size: clamp(3rem, 5.4vw, 6rem);
}

.contact-copy > p:last-child {
  max-width: 590px;
  margin: 0;
  color: var(--paper-soft);
}

.contact-link {
  position: relative;
  display: block;
  padding: 27px 58px 27px 25px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(7, 17, 15, 0.62);
  transition: border-color 220ms ease, background 220ms ease, transform 220ms var(--ease);
}

.contact-link:hover {
  border-color: var(--acid);
  background: rgba(7, 17, 15, 0.85);
  transform: translateY(-4px);
}

.contact-link span,
.contact-link strong {
  display: block;
}

.contact-link span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.7rem;
}

.contact-link strong {
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
}

.contact-link i {
  position: absolute;
  top: 50%;
  right: 24px;
  color: var(--acid);
  font-size: 1.3rem;
  font-style: normal;
  transform: translateY(-50%);
}

.contact-action > p {
  margin: 14px 0 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.54rem;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.site-footer {
  padding: 34px 0 46px;
}

.footer-grid {
  display: grid;
  align-items: center;
  gap: 25px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  grid-template-columns: 1.2fr 1fr auto;
}

.footer-brand .brand-mark {
  width: 32px;
  height: 32px;
}

.footer-grid > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.footer-links {
  display: flex;
  gap: 20px;
  color: var(--paper-soft);
  font-size: 0.73rem;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: right;
}

/* 404 */

.error-page {
  position: relative;
  display: grid;
  min-height: 100vh;
  overflow: hidden;
  place-items: center;
  padding: 40px 22px;
}

.error-grid {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black, transparent 72%);
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 72%);
}

.error-content {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
}

.error-content .brand {
  margin-bottom: clamp(80px, 13vh, 150px);
}

.error-content h1 {
  margin: 18px 0 25px;
  font-size: clamp(3.2rem, 8vw, 7.3rem);
}

.error-content > p:not(.kicker) {
  max-width: 540px;
  margin-bottom: 34px;
  color: var(--paper-soft);
}

/* Motion */

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

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

.js .reveal-delay { transition-delay: 170ms; }
.js .reveal-delay-short { transition-delay: 80ms; }
.js .reveal-delay-medium { transition-delay: 150ms; }
.js .reveal-delay-long { transition-delay: 220ms; }

@keyframes signalPulse {
  0%, 100% { opacity: 0.45; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.35); }
}

@keyframes orbitSpin {
  to { transform: translateY(-50%) rotate(360deg); }
}

@keyframes floatChip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

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

/* Responsive */

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 400px;
  }

  .hero-copy h1 {
    font-size: clamp(3.7rem, 7vw, 5.8rem);
  }

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

  .systems-frame {
    grid-template-columns: 315px minmax(0, 1fr);
  }

  .automation-flow {
    flex-direction: column;
  }

  .auto-line {
    width: 1px;
    min-height: 24px;
    flex-basis: 24px;
  }

  .auto-node,
  .auto-split {
    width: 170px;
    flex-basis: auto;
  }

  .auto-split {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  :root { --header-height: 72px; }

  .nav-toggle {
    display: block;
  }

  .nav-toggle[aria-expanded="true"] span:nth-of-type(1) {
    transform: translateY(3.5px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-of-type(2) {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .primary-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    max-height: 0;
    overflow: hidden;
    gap: 0;
    border-bottom: 1px solid transparent;
    background: rgba(7, 17, 15, 0.98);
    opacity: 0;
    visibility: hidden;
    transition: max-height 380ms var(--ease), opacity 220ms ease, visibility 220ms ease, border-color 220ms ease;
  }

  .primary-nav.is-open {
    max-height: calc(100vh - var(--header-height));
    border-color: var(--line);
    opacity: 1;
    visibility: visible;
  }

  .primary-nav > a,
  .primary-nav .nav-cta {
    min-height: 68px;
    margin: 0 22px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 1rem;
  }

  .primary-nav .nav-cta {
    justify-content: space-between;
    color: var(--acid) !important;
  }

  .hero {
    padding-top: 136px;
  }

  .hero-grid {
    gap: 80px;
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 770px;
    font-size: clamp(4rem, 11vw, 6.8rem);
  }

  .hero-system {
    width: min(100%, 600px);
    margin-inline: auto;
  }

  .section-heading,
  .impossible-grid,
  .payment-card,
  .principles-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .section-heading > p {
    margin-left: 0;
  }

  .impossible-grid {
    align-items: start;
  }

  .systems-frame {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .systems-intro {
    min-width: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(7, 17, 15, 0.16);
  }

  .system-tabs {
    max-width: 100%;
    margin-top: 30px;
    grid-template-columns: repeat(5, 1fr);
  }

  .system-tabs button {
    min-height: 76px;
    justify-content: center;
    gap: 5px;
    padding: 8px 5px;
    border-right: 1px solid rgba(7, 17, 15, 0.14);
    flex-direction: column;
    font-size: 0.66rem;
    text-align: center;
  }

  .system-tabs button[aria-selected="true"] {
    padding-left: 5px;
    background: rgba(83, 112, 67, 0.1);
  }

  .system-tabs button::after {
    display: none;
  }

  .system-panel {
    min-height: 690px;
  }

  .process-art {
    font-size: clamp(3rem, 10vw, 6rem);
  }

  .payment-card {
    gap: 42px;
  }

  .principles-title h2 {
    position: static;
  }

  .contact-card {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(calc(100% - 30px), var(--shell));
  }

  .section {
    padding: 84px 0;
  }

  .hero {
    min-height: 0;
    padding-top: 120px;
    padding-bottom: 50px;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(3rem, 15vw, 4.4rem);
  }

  .hero-lede {
    font-size: 1rem;
  }

  .hero-provocation {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    justify-content: space-between;
  }

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

  .system-window {
    transform: none;
  }

  .system-canvas {
    min-height: 450px;
    padding-inline: 18px;
  }

  .flow-node {
    width: 82%;
  }

  .node-core {
    width: 88%;
  }

  .chip-one {
    top: 65px;
    right: -8px;
  }

  .chip-two {
    bottom: 62px;
    left: -7px;
  }

  .status-rail code {
    display: none;
  }

  .marquee-wrap {
    margin-top: 80px;
  }

  .section-heading {
    gap: 24px;
    margin-bottom: 38px;
  }

  .section-heading h2,
  .principles-title h2 {
    font-size: clamp(2.75rem, 14vw, 4.4rem);
  }

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

  .service-card {
    min-height: 410px;
  }

  .impossible-card {
    padding: 28px;
    border-radius: var(--radius);
  }

  .impossible-meta {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .impossible-meta i {
    width: 100%;
  }

  .impossible-grid h2 {
    font-size: clamp(2.6rem, 12vw, 4.3rem);
  }

  .systems-frame {
    border-radius: var(--radius);
  }

  .systems-intro {
    padding: 28px 22px 0;
  }

  .system-tabs {
    width: calc(100% + 44px);
    max-width: none;
    margin-right: -22px;
    margin-left: -22px;
    overflow: hidden;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-tabs button {
    min-width: 0;
    min-height: 68px;
    padding: 9px 8px;
    overflow-wrap: anywhere;
  }

  .system-tabs button:last-child {
    grid-column: 1 / -1;
  }

  .system-tabs button[aria-selected="true"] {
    padding-left: 8px;
  }

  .panel-copy {
    padding: 38px 24px;
  }

  .panel-copy h3 {
    font-size: clamp(2.15rem, 10vw, 3.4rem);
    overflow-wrap: anywhere;
  }

  .systems-intro > p,
  .panel-copy > p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .system-panel {
    min-height: 680px;
  }

  .panel-visual {
    min-height: 340px;
  }

  .app-shell {
    right: 16px;
    left: 16px;
    grid-template-columns: 48px 1fr;
  }

  .app-main {
    padding: 18px;
  }

  .app-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .app-metrics i:last-child {
    display: none;
  }

  .data-source {
    left: 4%;
    width: 58px;
  }

  .semantic-core {
    left: 49%;
    width: 105px;
    height: 105px;
  }

  .decision-card {
    right: 3%;
    width: 88px;
  }

  .ai-satellite {
    width: 56px;
  }

  .sat-one, .sat-three { left: 4%; }
  .sat-two, .sat-four { right: 4%; }

  .web-browser {
    right: 15px;
    left: 15px;
  }

  .web-page {
    padding: 25px;
  }

  .process-list li {
    min-height: 190px;
    gap: 16px;
    padding: 25px 0;
    grid-template-columns: 34px 1fr;
  }

  .process-art {
    display: none;
  }

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

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

  .lab-card {
    min-height: 420px;
  }

  .lab-footer {
    right: 25px;
    left: 25px;
  }

  .principle-list article {
    grid-template-columns: 34px 1fr;
  }

  .contact-card {
    gap: 40px;
    padding: 35px 24px;
    border-radius: var(--radius);
  }

  .contact-copy h2 {
    font-size: clamp(2.7rem, 13vw, 4.3rem);
  }

  .footer-grid {
    align-items: start;
    grid-template-columns: 1fr auto;
  }

  .footer-grid > p:not(.copyright) {
    display: none;
  }

  .footer-links {
    flex-direction: column;
    gap: 7px;
    text-align: right;
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor-light {
    display: none;
  }
}

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

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

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
