/* =========================================================
   ZYNTHECK — cyberpunk one-pager
   System fonts only (no CDN). Multi-color accents.
   ========================================================= */

:root {
  --bg:        #07070a;
  --bg-2:      #0c0d12;
  --bg-3:      #11131a;
  --ink:       #f1f2f5;
  --ink-dim:   #8a8e99;
  --ink-mute:  #50555f;
  --line:      #1c1f28;
  --line-2:    #262a35;

  --yellow:    #ffd400;   /* brand */
  --yellow-2:  #ffe98a;
  --cyan:      #2af0ff;
  --magenta:   #ff3bd4;
  --lime:      #b6ff3a;
  --red:       #ff4757;

  --mono: ui-monospace, 'JetBrains Mono', 'Fira Code', 'SF Mono',
          Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
          'Helvetica Neue', Arial, sans-serif;
  --display: 'Arial Black', 'Helvetica Neue', Impact, sans-serif;

  --shadow-glow: 0 0 0 1px rgba(255,212,0,.25),
                 0 20px 60px -20px rgba(255,212,0,.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.mono { font-family: var(--mono); letter-spacing: .02em; }

/* =========================================================
   BACKGROUND LAYERS
   ========================================================= */

.bg-grid,
.bg-scanlines,
.bg-noise,
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-grid {
  background-image:
    linear-gradient(rgba(255,212,0,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,212,0,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}

.bg-scanlines {
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,.025) 0px,
    rgba(255,255,255,.025) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
  opacity: .5;
}

.bg-noise {
  opacity: .04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.bg-orbs .orb {
  position: absolute;
  width: 720px; height: 720px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .35;
  animation: orbFloat 22s ease-in-out infinite;
}
.orb-1 { background: var(--yellow); top: -260px; left: -200px; }
.orb-2 { background: var(--cyan);   top: 30%; right: -260px; animation-delay: -7s; opacity: .22; }
.orb-3 { background: var(--magenta);bottom: -300px; left: 30%; animation-delay: -14s; opacity: .18; }

@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(60px,-40px) scale(1.08); }
}

main, .nav, .footer { position: relative; z-index: 1; }

/* =========================================================
   NAV
   ========================================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px;
  /* NOTE: no backdrop-filter here on purpose.
     backdrop-filter on a sticky parent forces a compositor snapshot
     that visibly stretches 3D-rotated descendants (the spinning Z mark)
     on every scroll tick. We use a solid-ish bg instead. */
  background: rgba(7,7,10,.94);
  border-bottom: 1px solid var(--line);
}
.nav::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--yellow), var(--magenta), var(--cyan), transparent);
  opacity: .35;
  animation: navBeam 6s linear infinite;
  background-size: 200% 100%;
}
@keyframes navBeam {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding: 4px 8px;
  margin-left: -8px;
  border-radius: 6px;
  transition: background .25s ease;
}

/* Brand lock-up: spinning Z mark + static wordmark.
   Used in both nav and footer.

   IMPORTANT: the "coin flip" is a 2D scaleX animation, NOT a 3D
   rotateY + perspective. Reason: 3D transforms inside a position:sticky
   parent get rasterized to a compositor layer that the sticky paint
   snapshot re-stretches on every scroll tick — that was the visible
   "logo deforming on scroll" bug. A flat icon's Y-axis spin is
   mathematically identical to scaleX(cos θ), and scaleX is a pure 2D
   transform that does not get composited separately. */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}
.brand-mark-wrap {
  display: inline-block;
  position: relative;
  flex: none;
  width: 96px;
  height: 96px;
  filter: drop-shadow(0 0 14px rgba(255,212,0,.22));
  transition: filter .25s ease;
}
.brand-mark-rot {
  position: absolute;
  inset: 0;
  display: block;
  transform-origin: 50% 50%;
  animation: zSpin 5s linear infinite;
}
.brand-mark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.brand-word {
  display: block;
  height: 32px;
  width: auto;
  flex: none;
  filter: drop-shadow(0 0 14px rgba(255,212,0,.18));
}
.brand-lockup:hover .brand-mark-wrap {
  filter: drop-shadow(0 0 22px rgba(255,212,0,.8));
}
.brand-lockup:hover .brand-word {
  filter: drop-shadow(0 0 18px rgba(255,212,0,.55));
}

/* 2D coin-flip simulating a 360° Y-axis rotation.
   scaleX(cos θ) for θ = 0..360°, sampled at 12 keyframes for smoothness. */
@keyframes zSpin {
  0%    { transform: scaleX(1); }
  8.33% { transform: scaleX(0.866); }   /* cos 30° */
  16.66%{ transform: scaleX(0.5); }     /* cos 60° */
  25%   { transform: scaleX(0); }       /* cos 90° */
  33.33%{ transform: scaleX(-0.5); }    /* cos 120° */
  41.66%{ transform: scaleX(-0.866); }  /* cos 150° */
  50%   { transform: scaleX(-1); }      /* cos 180° */
  58.33%{ transform: scaleX(-0.866); }  /* cos 210° */
  66.66%{ transform: scaleX(-0.5); }    /* cos 240° */
  75%   { transform: scaleX(0); }       /* cos 270° */
  83.33%{ transform: scaleX(0.5); }     /* cos 300° */
  91.66%{ transform: scaleX(0.866); }   /* cos 330° */
  100%  { transform: scaleX(1); }       /* cos 360° */
}

.nav__links {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.nav__links a {
  position: relative;
  color: var(--ink-dim);
  padding: 6px 2px;
  transition: color .2s ease;
}
.nav__links a::before {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--yellow);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::before,
.nav__links a.is-active::before { transform: scaleX(1); }
.nav__links a.is-active { color: var(--yellow); }

.nav__burger {
  display: none;
  width: 36px; height: 36px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  position: relative;
}
.nav__burger span {
  display: block;
  position: absolute;
  left: 8px; right: 8px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.nav__burger span:nth-child(1) { top: 11px; }
.nav__burger span:nth-child(2) { top: 17px; }
.nav__burger span:nth-child(3) { top: 23px; }
.nav.is-open .nav__burger span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { top: 17px; transform: rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */

.hero {
  padding: 100px 28px 120px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

.hero__meta {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255,255,255,.02);
}
.tag--cyan    { color: var(--cyan);    border-color: rgba(42,240,255,.35); }
.tag--magenta { color: var(--magenta); border-color: rgba(255,59,212,.35); }
.tag--lime    { color: var(--lime);    border-color: rgba(182,255,58,.4); }
.tag--lime::before {
  content: ''; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime); margin-right: 8px;
  box-shadow: 0 0 10px var(--lime);
  animation: pulseDot 1.4s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,100% { opacity: 1; }
  50%     { opacity: .25; }
}

.hero__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(48px, 9vw, 124px);
  line-height: 0.95;
  letter-spacing: -.025em;
  margin: 0 0 56px;
  text-transform: uppercase;
}
.hero__title .line { display: block; }
.hero__title .subline {
  font-family: var(--sans);
  text-transform: none;
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--ink-dim);
  margin-top: 24px;
}

.word-accent {
  color: var(--yellow);
  position: relative;
  text-shadow: 0 0 28px rgba(255,212,0,.35);
}
.word-accent--cyan {
  color: var(--cyan);
  text-shadow: 0 0 28px rgba(42,240,255,.4);
}

/* Glitch */
.glitch {
  position: relative;
  display: inline-block;
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .85;
}
.glitch::before {
  color: var(--cyan);
  transform: translate(-2px,0);
  mix-blend-mode: screen;
  clip-path: polygon(0 0, 100% 0, 100% 38%, 0 38%);
  animation: glitchA 5s infinite steps(1);
}
.glitch::after {
  color: var(--magenta);
  transform: translate(2px,0);
  mix-blend-mode: screen;
  clip-path: polygon(0 62%, 100% 62%, 100% 100%, 0 100%);
  animation: glitchB 5s infinite steps(1);
}
@keyframes glitchA {
  0%,92%,100% { transform: translate(-2px,0); }
  93%         { transform: translate(-6px,1px); }
  95%         { transform: translate(0,-2px); }
  97%         { transform: translate(-4px,0); }
}
@keyframes glitchB {
  0%,92%,100% { transform: translate(2px,0); }
  93%         { transform: translate(6px,-1px); }
  95%         { transform: translate(0,2px); }
  97%         { transform: translate(4px,0); }
}

/* Terminal */
.terminal {
  margin: 0 0 56px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: linear-gradient(180deg, #0a0b10, #06070a);
  box-shadow:
    0 0 0 1px rgba(255,212,0,.06),
    0 30px 80px -30px rgba(0,0,0,.8),
    inset 0 0 0 1px rgba(255,255,255,.02);
  overflow: hidden;
  max-width: 780px;
}
.terminal__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: #0d0f15;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot--r { background: #ff5f57; }
.dot--y { background: #febc2e; }
.dot--g { background: #28c840; }
.terminal__title { margin-left: 12px; color: var(--ink-dim); }
.terminal__time  { margin-left: auto; color: var(--cyan); }

.terminal__body {
  padding: 18px 18px 22px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  min-height: 220px;
}
.term-line { white-space: pre-wrap; word-break: break-word; }
.term-prompt { color: var(--yellow); }
.term-cmd    { color: var(--ink); }
.term-out    { color: var(--ink-dim); display: block; padding-left: 24px; }
.term-ok     { color: var(--lime); }
.term-warn   { color: var(--magenta); }
.term-info   { color: var(--cyan); }
.term-cursor {
  display: inline-block;
  width: 9px; height: 16px;
  background: var(--yellow);
  vertical-align: -3px;
  margin-left: 2px;
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 14px 20px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: var(--bg-3);
  transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,212,0,.15) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform .55s ease;
}
.btn:hover::before { transform: translateX(100%); }
.btn:hover { transform: translateY(-1px); }
.btn__arrow { transition: transform .2s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--yellow);
  color: #0a0a0a;
  border-color: var(--yellow);
  box-shadow: 0 0 0 0 rgba(255,212,0,.5);
}
.btn--primary:hover {
  box-shadow: 0 0 24px rgba(255,212,0,.55);
}
.btn--ghost {
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* =========================================================
   STATS
   ========================================================= */

.stats {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 28px 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
  position: relative;
}
.stat:last-child { border-right: 0; }
.stat::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--yellow), transparent);
  opacity: 0; transition: opacity .3s ease;
}
.stat:hover::before { opacity: .8; }

.stat__num {
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--yellow);
  text-shadow: 0 0 24px rgba(255,212,0,.2);
}
.stat__num--range { color: var(--cyan); text-shadow: 0 0 24px rgba(42,240,255,.25); }
.stat__num--mix   { color: var(--lime);  text-shadow: 0 0 24px rgba(182,255,58,.25); }
.stat__sep { color: var(--ink-mute); margin: 0 4px; }
.stat__plus {
  font-size: .4em;
  vertical-align: super;
  color: var(--magenta);
  margin-left: 6px;
  letter-spacing: .04em;
}
.stat__label {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* =========================================================
   ABOUT
   ========================================================= */

.about {
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 28px;
  position: relative;
}
.about__rail {
  display: inline-flex;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--ink-mute);
  margin-bottom: 32px;
}
.about__rail span:first-child { color: var(--yellow); }

.about__quote {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(36px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 0 0 32px;
  max-width: 18ch;
  text-transform: uppercase;
}
.about__sub {
  max-width: 56ch;
  font-size: 18px;
  color: var(--ink-dim);
  line-height: 1.6;
  margin: 0;
}

/* =========================================================
   SECTION HEAD (shared)
   ========================================================= */

.section-head {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px 48px;
}
.section-head__rail {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--yellow);
  margin-bottom: 14px;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(28px, 4.2vw, 52px);
  line-height: 1.05;
  letter-spacing: -.015em;
  margin: 0;
  text-transform: uppercase;
  max-width: 22ch;
}

/* =========================================================
   WHAT I BUILD
   ========================================================= */

.build {
  padding: 100px 0;
  border-top: 1px solid var(--line);
}
.build__grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-left: 28px; margin-right: 28px;
}
@media (min-width: 1336px) {
  .build__grid { margin-left: auto; margin-right: auto; }
}
.cat {
  position: relative;
  padding: 36px 28px 32px;
  background: var(--bg);
  overflow: hidden;
  transition: background .25s ease;
}
.cat--wide { grid-column: span 3; }
.cat__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--ink-mute);
  margin-bottom: 56px;
}
.cat h3 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 900;
  margin: 0 0 8px;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.cat p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 14px;
  max-width: 32ch;
}
.cat::after {
  content: '';
  position: absolute; left: 0; right: 0; top: 0;
  height: 2px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .35s ease;
}
.cat[data-cat="mobile"]::after   { background: var(--yellow); }
.cat[data-cat="desktop"]::after  { background: var(--cyan); }
.cat[data-cat="agents"]::after   { background: var(--magenta); }
.cat[data-cat="saas"]::after     { background: var(--lime); }
.cat[data-cat="games"]::after    { background: var(--yellow); }
.cat[data-cat="chain"]::after    { background: var(--cyan); }
.cat[data-cat="security"]::after { background: var(--magenta); }
.cat:hover { background: var(--bg-2); }
.cat:hover::after { transform: scaleX(1); }
.cat:hover h3 { color: var(--yellow); }
.cat[data-cat="desktop"]:hover h3 { color: var(--cyan); }
.cat[data-cat="agents"]:hover h3 { color: var(--magenta); }
.cat[data-cat="saas"]:hover h3 { color: var(--lime); }
.cat[data-cat="chain"]:hover h3 { color: var(--cyan); }
.cat[data-cat="security"]:hover h3 { color: var(--magenta); }

/* =========================================================
   PIPELINE
   ========================================================= */

.pipeline {
  padding: 100px 0;
  border-top: 1px solid var(--line);
}
.pipeline__legend {
  max-width: 1280px;
  margin: 0 auto 24px;
  padding: 0 28px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.02);
  white-space: nowrap;
}
.chip--lime    { color: var(--lime);    border-color: rgba(182,255,58,.35); }
.chip--yellow  { color: var(--yellow);  border-color: rgba(255,212,0,.35); }
.chip--cyan    { color: var(--cyan);    border-color: rgba(42,240,255,.35); }
.chip--magenta { color: var(--magenta); border-color: rgba(255,59,212,.35); }
.chip--mute    { color: var(--ink-mute); }

.pipeline__table {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  font-family: var(--mono);
  font-size: 14px;
}
.pipeline__row {
  display: grid;
  grid-template-columns: 80px 1.6fr 1.2fr 1fr .8fr;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-top: 0;
  align-items: center;
  background: rgba(255,255,255,.01);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.pipeline__row:first-child { border-top: 1px solid var(--line); }
.pipeline__row--head {
  background: var(--bg-2);
  color: var(--ink-mute);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.pipeline__row:not(.pipeline__row--head):hover {
  background: rgba(255,212,0,.04);
  border-color: rgba(255,212,0,.25);
  transform: translateX(4px);
}
.pipeline__row > span { display: block; }

.pipeline__note {
  max-width: 1280px;
  margin: 18px auto 0;
  padding: 0 28px;
  color: var(--ink-mute);
  font-size: 12px;
}

/* =========================================================
   PROCESS
   ========================================================= */

.process {
  padding: 100px 0;
  border-top: 1px solid var(--line);
}
.phases {
  list-style: none;
  margin: 0 auto;
  padding: 0 28px;
  max-width: 1280px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--line);
  border: 1px solid var(--line);
}
.phase {
  position: relative;
  background: var(--bg);
  padding: 32px 26px 28px;
  transition: background .25s ease;
}
.phase__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.phase__num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line-2);
}
.phase h3 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(28px, 3vw, 40px);
  margin: 0 0 10px;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.phase p {
  margin: 0 0 24px;
  color: var(--ink-dim);
  font-size: 14px;
  max-width: 30ch;
}
.phase__bar {
  height: 3px;
  background: var(--line-2);
  border-radius: 2px;
  overflow: hidden;
}
.phase__bar i {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s cubic-bezier(.7,.05,.2,1);
}
.phase:nth-child(1) h3 { color: var(--yellow); }
.phase:nth-child(2) h3 { color: var(--cyan); }
.phase:nth-child(3) h3 { color: var(--magenta); }
.phase:nth-child(4) h3 { color: var(--lime); }
.phase:nth-child(1) .phase__bar i { background: var(--yellow); }
.phase:nth-child(2) .phase__bar i { background: var(--cyan); }
.phase:nth-child(3) .phase__bar i { background: var(--magenta); }
.phase:nth-child(4) .phase__bar i { background: var(--lime); }
.phase.in-view .phase__bar i { transform: scaleX(1); }
.phase:hover { background: var(--bg-2); }

/* =========================================================
   CONTACT
   ========================================================= */

.contact {
  padding: 120px 0 100px;
  border-top: 1px solid var(--line);
}
.contact__lead {
  text-wrap: balance;
}
.contact__grid {
  max-width: 1280px;
  margin: 0 auto 80px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact__card {
  position: relative;
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 28px 28px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  border-radius: 10px;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.contact__rail {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--ink-mute);
}
.contact__value {
  font-family: var(--mono);
  font-size: clamp(18px, 2vw, 24px);
  color: var(--ink);
  letter-spacing: .01em;
  word-break: break-all;
}
.contact__arrow {
  font-family: var(--mono);
  font-size: 22px;
  color: var(--ink-dim);
  transition: transform .25s ease, color .25s ease;
}
.contact__card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,212,0,.08) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform .6s ease;
}
.contact__card:hover::before { transform: translateX(100%); }
.contact__card:hover { transform: translateY(-3px); }
.contact__card--mail:hover { border-color: var(--yellow); }
.contact__card--mail:hover .contact__value,
.contact__card--mail:hover .contact__arrow { color: var(--yellow); }
.contact__card--mail:hover .contact__arrow { transform: translateX(6px); }
.contact__card--x:hover { border-color: var(--cyan); }
.contact__card--x:hover .contact__value,
.contact__card--x:hover .contact__arrow { color: var(--cyan); }
.contact__card--x:hover .contact__arrow { transform: translateX(6px); }

.manifesto {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 28px 0;
  border-top: 1px dashed var(--line-2);
}
.manifesto__rail {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--yellow);
  margin-bottom: 24px;
}
.manifesto__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.manifesto__list li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .2s ease, background .2s ease;
}
.manifesto__list li:hover {
  padding-left: 12px;
  background: linear-gradient(90deg, rgba(255,212,0,.04), transparent 60%);
}
.m-idx {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: .16em;
  padding-top: 4px;
}
.m-text {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(20px, 2.2vw, 28px);
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: 1.15;
}
.manifesto__list li:nth-child(7n+1) .m-text:hover { color: var(--yellow); }
.manifesto__list li:nth-child(7n+2) .m-text:hover { color: var(--cyan); }
.manifesto__list li:nth-child(7n+3) .m-text:hover { color: var(--magenta); }
.manifesto__list li:nth-child(7n+4) .m-text:hover { color: var(--lime); }
.manifesto__list li:nth-child(7n+5) .m-text:hover { color: var(--yellow); }
.manifesto__list li:nth-child(7n+6) .m-text:hover { color: var(--cyan); }
.manifesto__list li:nth-child(7n) .m-text:hover   { color: var(--magenta); }

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 48px 28px 32px;
  background: var(--bg-2);
}
.footer__top {
  max-width: 1280px;
  margin: 0 auto 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__logo {
  display: inline-flex;
  align-items: center;
}
.footer__logo img {
  /* sizes governed by .brand-mark / .brand-word */
}
.footer__nav {
  display: flex;
  gap: 24px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.footer__nav a { transition: color .2s ease; }
.footer__nav a:hover { color: var(--yellow); }
.footer__bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: .12em;
}
.footer__pulse i {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
  margin-right: 8px;
  vertical-align: 0;
  animation: pulseDot 1.4s ease-in-out infinite;
}

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .build__grid { grid-template-columns: repeat(2, 1fr); }
  .cat--wide { grid-column: span 2; }
  .phases { grid-template-columns: repeat(2, 1fr); }
  .pipeline__row {
    grid-template-columns: 60px 1.4fr 1fr 1fr .8fr;
    gap: 10px; font-size: 13px;
  }
}

@media (max-width: 760px) {
  .nav { padding: 14px 18px; }
  .brand-mark-wrap { width: 60px; height: 60px; }
  .brand-word { height: 22px; }
  .brand-lockup { gap: 12px; }
  .nav__burger { display: block; }
  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(7,7,10,.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .nav.is-open .nav__links { max-height: 360px; }
  .nav__links a {
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
  }

  .hero { padding: 60px 18px 80px; }
  .hero__title { margin-bottom: 36px; }
  .terminal { margin-bottom: 36px; }
  .terminal__body { font-size: 12.5px; min-height: 180px; padding: 14px; }
  .terminal__time { display: none; }

  .stats { grid-template-columns: 1fr; padding: 16px 18px; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 8px; }
  .stat:last-child { border-bottom: 0; }

  .about { padding: 80px 18px; }
  .section-head { padding: 0 18px 36px; }

  .build { padding: 70px 0; }
  .build__grid {
    grid-template-columns: 1fr;
    margin: 0 18px;
  }
  .cat--wide { grid-column: span 1; }

  .pipeline { padding: 70px 0; }
  .pipeline__legend { padding: 0 18px; }
  .pipeline__table { padding: 0 18px; font-size: 12px; }
  .pipeline__row {
    grid-template-columns: 56px 1fr 1fr;
    gap: 8px;
    padding: 14px 12px;
  }
  .pipeline__row > span:nth-child(3),
  .pipeline__row > span:nth-child(5) { display: none; }

  .process { padding: 70px 0; }
  .phases { grid-template-columns: 1fr; margin: 0 18px; }

  .contact { padding: 80px 0 70px; }
  .contact__grid {
    grid-template-columns: 1fr;
    padding: 0 18px;
  }
  .contact__card {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 22px 20px;
  }
  .contact__rail { grid-column: 1 / -1; }
  .manifesto { padding: 32px 18px 0; }
  .manifesto__list li { grid-template-columns: 50px 1fr; gap: 12px; }

  .footer { padding: 36px 18px 28px; }
  .footer__top { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer__nav { flex-wrap: wrap; gap: 14px 18px; }
  .footer__bottom { flex-direction: column; gap: 8px; }
}
