/* ==========================================================================
   Kesuma Robotics — industrial spec-sheet design
   Graphite / bone / signal orange. Archivo (variable width) + JetBrains Mono.
   ========================================================================== */

:root {
  --ink: #0c0c0d;
  --ink-2: #151517;
  --ink-3: #1f1f22;
  --bone: #ece8df;
  --bone-2: #dcd6c9;
  --bone-dim: rgba(236, 232, 223, 0.56);
  --bone-faint: rgba(236, 232, 223, 0.14);
  --ink-dim: rgba(12, 12, 13, 0.58);
  --ink-faint: rgba(12, 12, 13, 0.16);
  --signal: #ff4f1a;
  --signal-2: #ff7a4d;

  --display: 'Archivo', 'Arial Narrow', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --g: clamp(16px, 3.2vw, 56px);
  --ease: cubic-bezier(0.2, 0.8, 0.1, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--display);
  font-variation-settings: 'wdth' 100;
  background: var(--ink);
  color: var(--bone);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 4px;
}

.led {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(255, 79, 26, 0.6);
  animation: led 1.8s infinite;
  margin-right: 0.6em;
  vertical-align: 0.05em;
}

.sec-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.sec-label i {
  font-style: normal;
  color: var(--signal);
}

/* --------------------------------------------------------------------------
   Boot sequence
   -------------------------------------------------------------------------- */
.boot {
  display: none;
}

.js .boot {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  padding: var(--g);
  background: var(--ink);
  color: var(--bone);
  font-family: var(--mono);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s var(--ease-io);
  cursor: pointer;
}

.boot.done {
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}

.boot-inner {
  width: 100%;
}

.boot-log {
  font: inherit;
  font-size: clamp(0.72rem, 1.2vw, 0.95rem);
  line-height: 1.9;
  color: var(--bone-dim);
  min-height: 12em;
  white-space: pre-wrap;
}

.boot-bar {
  height: 2px;
  background: var(--bone-faint);
  margin: 1.5rem 0 0.8rem;
}

.boot-bar span {
  display: block;
  height: 100%;
  background: var(--signal);
  transform-origin: left;
  transform: scaleX(0);
}

.boot-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.boot-pct {
  font-family: var(--display);
  font-variation-settings: 'wdth' 62;
  font-weight: 900;
  font-size: clamp(4rem, 16vw, 14rem);
  line-height: 0.8;
  color: var(--bone);
}

/* --------------------------------------------------------------------------
   Grain + custom cursor
   -------------------------------------------------------------------------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 900;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%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)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(4) infinite;
}

.cursor {
  display: none;
}

.has-cursor,
.has-cursor * {
  cursor: none !important;
}

.has-cursor .cursor {
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
  pointer-events: none;
  mix-blend-mode: difference;
  color: var(--bone);
}

.cursor-cross,
.cursor-ring,
.cursor-coords {
  position: fixed;
  left: 0;
  top: 0;
  will-change: transform;
}

.cursor-cross {
  width: 17px;
  height: 17px;
  margin: -8px 0 0 -8px;
  background:
    linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat,
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
}

.cursor-ring {
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background 0.35s;
}

.cursor-text {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone);
  opacity: 0;
  transition: opacity 0.2s;
}

.has-cursor .cursor.is-link {
  mix-blend-mode: normal;
}

.cursor.is-link .cursor-ring {
  width: 86px;
  height: 86px;
  margin: -43px 0 0 -43px;
  background: var(--ink);
  border-color: var(--bone-dim);
}

.cursor.is-link .cursor-coords {
  opacity: 0;
}

.cursor.is-link .cursor-text {
  opacity: 1;
}

.cursor.is-link .cursor-cross {
  opacity: 0;
}

.cursor.is-down .cursor-ring {
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
}

.cursor-coords {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  margin: 18px 0 0 18px;
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.1rem var(--g);
  color: var(--bone);
  mix-blend-mode: difference;
  transition: transform 0.5s var(--ease);
}

.nav.is-hidden {
  transform: translateY(-110%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  justify-self: start;
}

.mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.mark-joint {
  fill: var(--signal);
}

.brand-name {
  font-weight: 800;
  font-variation-settings: 'wdth' 80;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
}

.nav-status {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--bone-dim);
  white-space: nowrap;
}

.nav-status .sep {
  opacity: 0.4;
  margin: 0 0.4em;
}

.nav-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.2rem);
}

.nav-links a {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  gap: 0.5em;
}

.nav-links a i {
  font-style: normal;
  opacity: 0.45;
}

.nav-links a:not(.nav-cta):hover span {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.nav-cta {
  padding: 0.6rem 1.1rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  transition: background 0.3s, color 0.3s;
}

.nav-cta:hover {
  background: var(--bone);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  --mx: 0px;
  --my: 0px;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.05rem 1.7rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translate(var(--mx), var(--my));
  transition: transform 0.5s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}

.btn:hover::before {
  transform: translateY(0);
}

.btn-solid {
  background: var(--signal);
  color: var(--ink);
}

.btn-solid::before {
  background: var(--bone);
}

.btn-line {
  border: 1px solid var(--bone-dim);
  color: var(--bone);
}

.btn-line::before {
  background: var(--bone);
}

.btn-line:hover {
  color: var(--ink);
}

.arr {
  display: inline-block;
  transition: transform 0.4s var(--ease);
}

.btn:hover .arr {
  transform: translateX(4px) rotate(-45deg);
}

.btn-xl {
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  padding: 1.5rem 2.4rem;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 2rem;
  padding: 6.5rem var(--g) 2.2rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, var(--bone-faint) 1px, transparent 1.5px) 0 0 / 28px 28px,
    radial-gradient(ellipse 60% 70% at 78% 40%, #1a1512 0%, transparent 70%),
    var(--ink);
}

.hero-arm {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* The arm swings in front of the headline but behind the copy and buttons. */
.hero > :not(canvas) {
  position: relative;
  z-index: 1;
}

.hero > .hero-bottom,
.hero > .hero-meta {
  z-index: 3;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
  border-top: 1px solid var(--bone-faint);
  padding-top: 0.9rem;
  pointer-events: none;
}

.hero-title {
  align-self: center;
  font-weight: 800;
  font-size: clamp(3.3rem, 11.6vw, 13rem);
  line-height: 0.84;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  font-variation-settings: 'wdth' 72, 'wght' 800;
  pointer-events: none;
}

.ht-line {
  display: block;
  overflow: hidden;
  padding: 0.04em 0;
  margin: -0.04em 0;
}

.ht-line > span {
  display: inline-block;
}

.js .ht-line > span {
  transform: translateY(110%) skewY(6deg);
  transition: transform 1.2s var(--ease);
}

.booted .ht-line > span {
  transform: none;
}

.booted .ht-line:nth-child(2) > span {
  transition-delay: 0.08s;
}

.booted .ht-line:nth-child(3) > span {
  transition-delay: 0.16s;
}

.ht-indent {
  padding-left: 1.1em;
}

.ht-indent::before {
  content: '';
  position: absolute;
  width: 0.85em;
  height: 0.06em;
  background: var(--bone);
  margin: 0.37em 0 0 -1.05em;
}

.ht-accent {
  color: var(--signal);
}

.ch {
  display: inline-block;
}

.hero-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem 4rem;
  align-items: end;
}

.hero-sub {
  max-width: 34rem;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  color: var(--bone-dim);
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--bone-faint);
}

.hero-stats > div {
  padding: 0.9rem 1rem 0 0;
}

.hero-stats > div + div {
  border-left: 1px solid var(--bone-faint);
  padding-left: 1rem;
}

.hero-stats dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.hero-stats dd {
  font-weight: 800;
  font-variation-settings: 'wdth' 62, 'wght' 800;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 1;
  margin-top: 0.4rem;
  font-variant-numeric: tabular-nums;
}

.hero-stats small {
  font-size: 0.45em;
  color: var(--signal);
  margin-left: 0.1em;
  vertical-align: 0.9em;
}

.hero-hint {
  position: absolute !important;
  right: var(--g);
  top: 50%;
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
  transition: opacity 0.6s;
  pointer-events: none;
}

.hero-hint.gone {
  opacity: 0;
}

/* --------------------------------------------------------------------------
   Ticker
   -------------------------------------------------------------------------- */
.ticker {
  position: relative;
  z-index: 3;
  height: clamp(9rem, 16vw, 13rem);
  margin: -2rem 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.ticker-band {
  position: absolute;
  left: -5%;
  width: 110%;
  overflow: hidden;
  padding: 0.7rem 0;
}

.ticker-a {
  background: var(--signal);
  color: var(--ink);
  transform: rotate(-3deg);
  z-index: 2;
}

.ticker-b {
  background: var(--bone);
  color: var(--ink);
  transform: rotate(2.2deg);
}

.ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 1.6rem;
  animation: ticker 28s linear infinite;
  font-weight: 800;
  font-variation-settings: 'wdth' 70, 'wght' 800;
  font-size: clamp(1.4rem, 3vw, 2.5rem);
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.ticker-track span {
  padding-right: 1.6rem;
}

.ticker-track b {
  font-weight: 400;
  padding-right: 1.6rem;
}

.ticker-b .ticker-track {
  animation-direction: reverse;
  animation-duration: 36s;
  font-family: var(--mono);
  font-variation-settings: normal;
  font-weight: 500;
  font-size: clamp(0.9rem, 1.6vw, 1.2rem);
  letter-spacing: 0.2em;
}

/* --------------------------------------------------------------------------
   Systems (pinned horizontal)
   -------------------------------------------------------------------------- */
.systems {
  position: relative;
  background: var(--ink);
}

.systems-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: 5.5rem;
}

.sec-head {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 var(--g);
}

.systems-progress {
  flex: 1;
  height: 1px;
  background: var(--bone-faint);
}

.systems-progress span {
  display: block;
  height: 100%;
  background: var(--signal);
  transform-origin: left;
  transform: scaleX(0);
}

.systems-track {
  flex: 1;
  display: flex;
  min-height: 0;
  padding: 2.5rem 0 3rem;
  will-change: transform;
}

.unit {
  position: relative;
  flex: 0 0 min(90vw, 1320px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  padding: 0 var(--g);
  border-left: 1px solid var(--bone-faint);
}

.unit-intro {
  flex-basis: min(52vw, 760px);
  display: flex;
  align-items: flex-end;
  border-left: 0;
}

.intro-title {
  font-weight: 800;
  font-variation-settings: 'wdth' 62, 'wght' 800;
  font-size: clamp(3.4rem, 9vw, 9.5rem);
  line-height: 0.86;
  text-transform: uppercase;
}

.intro-title em {
  font-style: normal;
  color: var(--signal);
}

.unit-num {
  position: absolute;
  right: var(--g);
  top: -0.5rem;
  font-weight: 900;
  font-variation-settings: 'wdth' 62, 'wght' 900;
  font-size: clamp(8rem, 22vw, 22rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px var(--bone-faint);
  pointer-events: none;
}

.unit-figure {
  height: 100%;
  max-height: 62vh;
  min-height: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(var(--bone-faint) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--bone-faint) 1px, transparent 1px) 0 0 / 32px 32px;
  background-color: var(--ink-2);
  border: 1px solid var(--bone-faint);
  position: relative;
}

.unit-figure::before,
.unit-figure::after {
  content: '+';
  position: absolute;
  font-family: var(--mono);
  color: var(--signal);
  line-height: 1;
}

.unit-figure::before { top: 8px; left: 10px; }
.unit-figure::after { bottom: 8px; right: 10px; }

.schem {
  width: 100%;
  height: 100%;
  max-height: 58vh;
  padding: 1.2rem;
  overflow: visible;
}

.schem .d,
.schem .cap-o,
.schem .cap-i {
  fill: none;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.2s var(--ease-io) var(--d, 0s);
}

.schem .d {
  stroke: var(--bone);
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.schem .d.thin {
  stroke-width: 0.8;
  stroke: var(--bone-dim);
}

.schem .cap-o {
  stroke: var(--bone);
  stroke-width: 30;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.schem .cap-i {
  stroke: var(--ink-2);
  stroke-width: 27;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.schem .cap {
  --d: 0.3s;
}

.schem .cap > * {
  transition-delay: var(--d);
}

.schem .dot,
.schem .node,
.schem .faint,
.schem .hatch,
.schem text {
  opacity: 0;
  transition: opacity 0.8s ease 1.4s;
}

.schem .dot { fill: var(--signal); }
.schem .node { fill: var(--ink-2); stroke: var(--bone); stroke-width: 1.4; }
.schem .faint { fill: none; stroke: var(--signal); stroke-width: 1; stroke-dasharray: 3 4; }
.schem .hatch { fill: none; stroke: var(--bone-faint); stroke-width: 1; }

.schem text {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  fill: var(--signal);
}

.unit.in .schem .d,
.unit.in .schem .cap-o,
.unit.in .schem .cap-i {
  stroke-dashoffset: 0;
}

.unit.in .schem .dot,
.unit.in .schem .node,
.unit.in .schem .faint,
.unit.in .schem .hatch,
.unit.in .schem text {
  opacity: 1;
}

.unit-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--signal);
  padding: 0.3rem 0.65rem;
  margin-bottom: 1.4rem;
}

.unit-body h3 {
  font-weight: 800;
  font-variation-settings: 'wdth' 66, 'wght' 800;
  font-size: clamp(2.4rem, 4.6vw, 4.8rem);
  line-height: 0.9;
  text-transform: uppercase;
  margin-bottom: 1.3rem;
}

.unit-body h3 em {
  display: block;
  font-style: italic;
  font-weight: 300;
  font-variation-settings: 'wdth' 100, 'wght' 300;
  text-transform: none;
  color: var(--bone-dim);
  font-size: 0.62em;
  margin-top: 0.1em;
}

.unit-body p {
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  color: var(--bone-dim);
  max-width: 30rem;
  margin-bottom: 2rem;
}

.spec {
  font-family: var(--mono);
  font-size: 0.78rem;
  border-top: 1px solid var(--bone-faint);
  max-width: 30rem;
}

.spec > div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--bone-faint);
}

.spec dt {
  color: var(--bone-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* --------------------------------------------------------------------------
   Technology (light section)
   -------------------------------------------------------------------------- */
.tech {
  position: relative;
  background: var(--bone);
  color: var(--ink);
  padding: clamp(5rem, 10vw, 9rem) var(--g);
  border-radius: clamp(20px, 3vw, 44px) clamp(20px, 3vw, 44px) 0 0;
  z-index: 2;
}

.tech .sec-label {
  color: var(--ink-dim);
}

.tech-head {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.tech-title {
  font-weight: 800;
  font-variation-settings: 'wdth' 68, 'wght' 800;
  font-size: clamp(2.6rem, 6.8vw, 7rem);
  line-height: 0.88;
  text-transform: uppercase;
}

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

.module {
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: clamp(1rem, 2vw, 1.8rem);
  transition: background 0.4s;
}

.module:hover {
  background: var(--bone-2);
}

.module-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.live b {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--signal);
  border-radius: 50%;
  margin-right: 0.5em;
  animation: blink 1.2s steps(2) infinite;
}

.module canvas {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border-radius: 4px;
  margin-bottom: 1.6rem;
}

.module h3 {
  font-weight: 800;
  font-variation-settings: 'wdth' 72, 'wght' 800;
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.module p {
  color: var(--ink-dim);
  max-width: 30rem;
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   Vision
   -------------------------------------------------------------------------- */
.vision {
  position: relative;
  height: 240vh;
  background: var(--ink);
}

.vision-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5rem;
  padding: 0 var(--g);
}

.manifesto {
  font-weight: 700;
  font-variation-settings: 'wdth' 80, 'wght' 700;
  font-size: clamp(2.3rem, 6.6vw, 7.6rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  max-width: 16ch;
}

.manifesto em {
  font-style: italic;
}

.js .manifesto .w {
  opacity: 0.12;
  transition: opacity 0.35s, color 0.35s;
}

.js .manifesto .w.on {
  opacity: 1;
}

.manifesto .w.hl.on,
.manifesto em {
  color: var(--signal);
}

.domains-wrap {
  position: relative;
  background: var(--ink);
  padding: 0 var(--g) clamp(5rem, 10vw, 9rem);
}

.vision-text {
  max-width: 36rem;
  margin-left: auto;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  color: var(--bone-dim);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.domains {
  list-style: none;
  border-top: 1px solid var(--bone-faint);
}

.domains li {
  position: relative;
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0.4rem;
  border-bottom: 1px solid var(--bone-faint);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s var(--ease), padding 0.5s var(--ease);
}

.domains li::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--signal);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--ease);
}

.domains li:hover {
  color: var(--ink);
  padding-left: 1.4rem;
}

.domains li:hover::before {
  transform: scaleY(1);
}

.d-idx {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  opacity: 0.6;
}

.d-word {
  font-weight: 800;
  font-variation-settings: 'wdth' 70, 'wght' 800;
  font-size: clamp(2.2rem, 7.4vw, 8rem);
  line-height: 0.95;
  text-transform: uppercase;
  transition: font-variation-settings 0.6s var(--ease);
}

.domains li:hover .d-word {
  font-variation-settings: 'wdth' 100, 'wght' 900;
}

.d-arr {
  font-size: clamp(1.6rem, 4vw, 3.5rem);
  transition: transform 0.5s var(--ease);
}

.domains li:hover .d-arr {
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  background: var(--ink-2);
  padding: clamp(5rem, 10vw, 9rem) var(--g) 0;
  overflow: hidden;
  border-top: 1px solid var(--bone-faint);
}

.footer-cta {
  display: grid;
  gap: 2.4rem;
  justify-items: start;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.cta-title {
  font-weight: 800;
  font-variation-settings: 'wdth' 66, 'wght' 800;
  font-size: clamp(3rem, 10vw, 11rem);
  line-height: 0.86;
  text-transform: uppercase;
}

.cta-title em {
  font-style: normal;
  color: var(--signal);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  padding: 1.6rem 0;
  border-top: 1px solid var(--bone-faint);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-brand .mark {
  color: var(--bone);
  width: 28px;
  height: 28px;
}

.footer-links {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--signal);
}

.footer-copy {
  justify-self: end;
}

.footer-word {
  font-weight: 900;
  font-variation-settings: 'wdth' 62, 'wght' 900;
  font-size: 12vw;
  line-height: 0.74;
  white-space: nowrap;
  text-align: center;
  margin: 0 calc(var(--g) * -1);
  padding-top: 0.06em;
  color: transparent;
  -webkit-text-stroke: 1px var(--bone-dim);
  background: linear-gradient(90deg, var(--signal) 50%, transparent 50%) 100% 0 / 200% 100% no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  transition: background-position 1.2s var(--ease-io);
  user-select: none;
}

.footer-word:hover {
  background-position: 0 0;
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s);
}

.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */
@keyframes led {
  0% { box-shadow: 0 0 0 0 rgba(255, 79, 26, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(255, 79, 26, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 79, 26, 0); }
}

@keyframes blink {
  to { visibility: hidden; }
}

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

@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -1%); }
  100% { transform: translate(1%, 3%); }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav-status { display: none; }
  .nav { grid-template-columns: auto 1fr; }
  .hero-bottom { grid-template-columns: 1fr; }
  .tech-head { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .systems-pin {
    position: static;
    height: auto;
    padding: 5rem 0 3rem;
  }

  .systems-track {
    flex-direction: column;
    padding: 1.5rem 0 0;
    gap: 3.5rem;
  }

  .unit,
  .unit-intro {
    flex-basis: auto;
    grid-template-columns: 1fr;
    gap: 1.8rem;
    border-left: 0;
  }

  .unit + .unit {
    border-top: 1px solid var(--bone-faint);
    padding-top: 3.5rem;
  }

  .unit-num {
    top: 2.5rem;
    font-size: 7rem;
  }

  .unit-intro + .unit .unit-num {
    top: 2.5rem;
  }

  .unit-figure {
    aspect-ratio: 8 / 7;
    height: auto;
    max-height: none;
  }

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

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

  .footer-copy { justify-self: start; }
}

@media (max-width: 640px) {
  .brand-name { display: none; }
  .nav-links a:not(.nav-cta) i { display: none; }
  .nav-links { gap: 0.9rem; }
  .nav-links a { font-size: 0.68rem; }
  .hide-sm { display: none; }
  .hero { padding-top: 5.5rem; }
  .hero-title { font-size: 12.2vw; }
  .ht-indent { padding-left: 0; }
  .ht-indent::before { display: none; }
  .hero-hint { display: none; }
  .hero-stats dd { font-size: 2.3rem; }
  .spec > div { grid-template-columns: 7.5rem 1fr; }
  .domains li { grid-template-columns: 2rem 1fr auto; }
}

@media (max-width: 420px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track,
  .grain,
  .led,
  .live b { animation: none; }
  .js .ht-line > span { transform: none; transition: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .schem .d,
  .schem .cap-o,
  .schem .cap-i { stroke-dashoffset: 0; transition: none; }
  .schem .dot,
  .schem .node,
  .schem .faint,
  .schem .hatch,
  .schem text { opacity: 1; transition: none; }
}
