:root {
  --bg: #0a0b0d;
  --bg-2: #0f1114;
  --panel: #14171b;
  --line: #24282e;
  --line-2: #33383f;
  --text: #ecebe6;
  --muted: #9a9ea6;
  --dim: #6b7079;
  --accent: #e8742a;
  --accent-2: #f39a55;
  --radius: 10px;
  --wrap: 1200px;
  --display: "Archivo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; }
p { margin: 0; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(10, 11, 13, .82); backdrop-filter: blur(12px); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.nav__links a { color: var(--muted); transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__links .nav__cta { color: var(--text); border: 1px solid var(--line-2); padding: 8px 16px; border-radius: 999px; }
.nav__links .nav__cta:hover { border-color: var(--accent); }
.nav__toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: transform .25s; }

/* ---------- BUTTONS / EYEBROW ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(232,116,42,.18); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: background .2s, border-color .2s, transform .2s;
}
.btn--primary { background: var(--accent); color: #140a02; }
.btn--primary:hover { background: var(--accent-2); }
.btn--ghost { border: 1px solid var(--line-2); }
.btn--ghost:hover { border-color: var(--text); }
.link { color: var(--accent); font-weight: 600; font-size: 15px; }
.link:hover { color: var(--accent-2); }

/* ---------- HERO ---------- */
.hero { position: relative; padding: 150px 0 0; overflow: hidden; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .35;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero h1 {
  font-size: clamp(42px, 6.2vw, 84px);
  font-weight: 800; font-stretch: 80%;
  text-transform: uppercase; letter-spacing: -0.015em; line-height: .95;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { color: var(--muted); font-size: 19px; max-width: 520px; margin-top: 28px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__visual { margin: 0; position: relative; }
.hero__visual figcaption { display: flex; justify-content: space-between; color: var(--dim); margin-top: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.cyclo { width: 100%; height: auto; max-width: 520px; margin-left: auto; display: block; }
.cyclo__ring-outer { fill: none; stroke: var(--line-2); stroke-width: 1; }
.cyclo__ring-inner { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.cyclo__ticks line { stroke: var(--line-2); stroke-width: 1; }
.cyclo__pin { fill: var(--bg-2); stroke: var(--muted); stroke-width: 1.2; }
.cyclo__disc { fill: rgba(232,116,42,.07); stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; }
.cyclo__hole { fill: var(--bg); stroke: var(--accent); stroke-width: 1; opacity: .8; }
.cyclo__out-pin { fill: var(--text); }
.cyclo__out-arm { stroke: var(--dim); stroke-width: 1; }
.cyclo__shaft { fill: var(--bg); stroke: var(--text); stroke-width: 1.5; }
.cyclo__ecc { fill: var(--accent); }

.hero__strip {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 80px; border-top: 1px solid var(--line);
}
.hero__strip > div { padding: 22px 0; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--line); padding-left: 20px; }
.hero__strip > div:first-child { padding-left: 0; }
.hero__strip > div:last-child { border-right: 0; }
.hero__strip .k { color: var(--dim); }
.hero__strip .v { color: var(--text); font-size: 14px; }

/* ---------- SECTIONS ---------- */
.section { padding: 128px 0; border-top: 1px solid var(--line); }
.section--panel { background: var(--bg-2); }
.section__head { max-width: 760px; margin-bottom: 64px; }
.section h2 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 800; font-stretch: 85%; text-transform: uppercase; }
.section__sub { color: var(--muted); font-size: 18px; margin-top: 20px; max-width: 640px; }

/* ---------- PROGRAMS ---------- */
.programs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .3s, transform .3s;
}
.card:hover { border-color: var(--line-2); }
.card--wide { grid-column: 1 / -1; flex-direction: row; }
.card--wide .card__art { flex: 1.15; border-bottom: 0; border-right: 1px solid var(--line); }
.card--wide .card__body { flex: 1; }
.card--flip { flex-direction: row-reverse; }
.card--flip .card__art { border-right: 0; border-left: 1px solid var(--line); }
.card__art {
  background:
    radial-gradient(circle at 50% 50%, rgba(232,116,42,.05), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(255,255,255,.025) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(255,255,255,.025) 31px 32px),
    var(--bg-2);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; padding: 24px; min-height: 240px;
}
.art { width: 100%; max-width: 440px; height: auto; overflow: visible; }
.card__body { padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.card__meta { display: flex; justify-content: space-between; align-items: center; color: var(--dim); }
.status { color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.card h3 { font-size: 28px; font-weight: 700; font-stretch: 90%; }
.card p { color: var(--muted); }
.specs { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; color: var(--text); }
.specs li { padding-left: 14px; position: relative; font-size: 11px; }
.specs li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 1px; background: var(--accent); }

/* Illustrations */
.art__line, .art__line * { fill: none; stroke: var(--text); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.art__line .art__accent-stroke, .art__accent-stroke { stroke: var(--accent); }
.art__fill { fill: var(--accent); stroke: none; }
.art__axis { stroke: var(--accent) !important; stroke-dasharray: 6 4 2 4; stroke-width: 1 !important; }
.art__hatch { stroke-dasharray: 3 3; }
.art__teeth { fill: none; stroke: var(--text); stroke-width: 6; stroke-dasharray: 3 3; }
.art__teeth--ring { stroke: var(--muted); }
.art__teeth--planet { stroke: var(--accent); }
.art__label text { fill: var(--dim); font-size: 9px; font-family: var(--mono); }
.art__ground { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 8 6; }
.art__wheels circle { fill: none; stroke: var(--text); stroke-width: 7; stroke-dasharray: 4 5; animation: roll 3s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes roll { to { transform: rotate(360deg); } }
.art__beam { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 2 5; opacity: .7; fill: none; }
.art__disc { fill: rgba(232,116,42,.05); stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 4; }
.art__blade { stroke: var(--text); stroke-width: 3; stroke-linecap: round; }
.prop { animation: roll .25s linear infinite; transform-origin: 0 0; }
.prop--rev { animation-direction: reverse; }
.art__waves path { fill: none; stroke: var(--line-2); stroke-width: 1; }
.art__sonar path { fill: none; stroke: var(--accent); stroke-width: 1.2; animation: sonar 2.4s ease-out infinite; opacity: 0; }
.art__sonar path:nth-child(2) { animation-delay: .4s; }
.art__sonar path:nth-child(3) { animation-delay: .8s; }
@keyframes sonar { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
.prop-uuv ellipse { animation: squash .3s linear infinite alternate; transform-origin: 0 0; }
@keyframes squash { to { transform: scaleY(.35); } }
.spin-slow { animation: roll 6s linear infinite; transform-origin: 0 0; }
.spin-carrier { animation: roll 24s linear infinite; transform-origin: 0 0; }

/* ---------- ACTUATION ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare__col { border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; background: var(--panel); display: flex; flex-direction: column; gap: 20px; }
.compare__head { display: flex; align-items: baseline; justify-content: space-between; }
.compare__head h3 { font-size: 32px; font-stretch: 85%; text-transform: uppercase; order: -1; }
.tag { color: var(--accent); }
.compare__col > p { color: var(--muted); }
.traits { margin: 0; display: grid; gap: 0; }
.traits div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.traits dt { color: var(--dim); }
.traits dd { margin: 0; color: var(--text); text-align: right; }

.loop { margin-top: 64px; }
.loop__title { color: var(--dim); margin: 0 0 20px; font-weight: 500; }
.loop__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; position: relative; }
.loop__steps li { padding: 28px 24px 0 0; border-top: 2px solid var(--line-2); display: flex; flex-direction: column; gap: 8px; position: relative; }
.loop__steps li::before { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--accent); }
.loop__steps li:last-child::after {
  content: "↺"; position: absolute; top: -16px; right: 0; color: var(--accent); font-size: 20px; background: var(--bg-2); padding-left: 6px;
}
.loop__steps .n { color: var(--accent); }
.loop__steps strong { font-size: 22px; font-stretch: 90%; }
.loop__steps span:last-child { color: var(--muted); font-size: 15px; }

/* ---------- APPROACH ---------- */
.stack { display: flex; flex-direction: column; gap: 8px; }
.stack__layer {
  display: grid; grid-template-columns: 60px 260px 1fr; align-items: center; gap: 24px;
  padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  transition: border-color .3s;
}
.stack__layer:hover { border-color: var(--line-2); }
.stack__layer .mono { color: var(--dim); }
.stack__layer h4 { font-size: 22px; font-stretch: 90%; text-transform: uppercase; }
.stack__layer p { color: var(--muted); }
.stack__layer--core { border-color: rgba(232,116,42,.5); background: linear-gradient(90deg, rgba(232,116,42,.1), var(--panel) 60%); }
.stack__layer--core .mono { color: var(--accent); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 80px; }
.principles h4 { font-size: 20px; margin-bottom: 12px; padding-top: 20px; border-top: 1px solid var(--accent); display: inline-block; }
.principles p { color: var(--muted); }

/* ---------- ORIGIN ---------- */
.section--origin {
  background:
    radial-gradient(ellipse 60% 70% at 50% 100%, rgba(232,116,42,.12), transparent 70%),
    var(--bg);
  text-align: center;
}
.origin { display: flex; flex-direction: column; align-items: center; }
.origin__words { display: flex; align-items: flex-start; justify-content: center; gap: 48px; margin: 24px 0 56px; }
.origin__word { max-width: 360px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.deva { font-family: "Tiro Devanagari Sanskrit", serif; font-size: clamp(64px, 9vw, 120px); line-height: 1.2; color: var(--text); }
.latin { font-family: var(--mono); text-transform: uppercase; letter-spacing: .3em; color: var(--accent); font-size: 13px; }
.origin__word p { color: var(--muted); margin-top: 12px; }
.origin__plus { font-size: 40px; color: var(--dim); margin-top: 48px; font-weight: 300; }
.origin__statement { font-size: clamp(22px, 2.6vw, 32px); max-width: 760px; line-height: 1.3; font-weight: 500; }
.origin__statement em { font-style: normal; color: var(--accent); }

/* ---------- CONTACT ---------- */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: end; }
.contact__cards { display: flex; flex-direction: column; gap: 12px; }
.contact__card {
  display: flex; flex-direction: column; gap: 6px; padding: 24px 28px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  transition: border-color .2s, background .2s;
}
.contact__card:hover { border-color: var(--accent); }
.contact__card .k { color: var(--dim); }
.contact__card .v { font-size: 20px; font-weight: 600; word-break: break-word; }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__logo { height: 24px; width: auto; opacity: .8; }
.footer p { color: var(--dim); }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .cyclo { max-width: 400px; margin: 0 auto; }
  .hero__strip { grid-template-columns: 1fr 1fr; }
  .hero__strip > div:nth-child(2) { border-right: 0; }
  .hero__strip > div:nth-child(3) { padding-left: 0; }
  .hero__strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .programs, .compare { grid-template-columns: 1fr; }
  .card--wide, .card--flip { flex-direction: column; }
  .card--wide .card__art, .card--flip .card__art { border: 0; border-bottom: 1px solid var(--line); }
  .loop__steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .stack__layer { grid-template-columns: 40px 1fr; }
  .stack__layer p { grid-column: 2; }
  .principles { grid-template-columns: 1fr; gap: 24px; margin-top: 56px; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10,11,13,.97); border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav__links .nav__cta { border: 0; border-radius: 0; padding: 14px 0; color: var(--accent); }
  .nav.is-open { background: rgba(10,11,13,.97); }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav__logo img { height: 24px; }
  .hero { padding-top: 112px; }
  .lede { font-size: 17px; }
  .section { padding: 88px 0; }
  .section__head { margin-bottom: 40px; }
  .card__body, .compare__col { padding: 24px; }
  .specs { grid-template-columns: 1fr; }
  .loop__steps { grid-template-columns: 1fr; }
  .origin__words { flex-direction: column; align-items: center; gap: 16px; }
  .origin__plus { margin-top: 0; }
}
