/* ==========================================================
   ESSYSS - Sci-fi trading floor theme
   Warm black, phosphor amber, exchange red/green
   ========================================================== */
:root {
  --bg: #0B0A08;
  --bg-2: #100E0B;
  --surface: #0E0C09;
  --surface-2: #16130E;
  --line: rgba(255, 176, 0, .14);
  --line-2: rgba(255, 176, 0, .28);
  --text: #EFE7D6;
  --text-2: #B3A68C;
  --muted: #8C8170;

  --amber: #FFB000;
  --amber-hi: #FFCC4D;
  --amber-dim: #7A5400;
  --up: #35D07F;
  --down: #FF4D3D;
  --cyan: #59C7E8;

  /* chart roles (validated: dark mode, surface #0E0C09) */
  --series-1: #D08C10;
  --series-2: #3A8FC8;
  --grid: #231E15;
  --axis: #4A3F2C;

  --font-display: "Chakra Petch", "Rajdhani", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1240px;
  --cut: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(255, 176, 0, .07), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { margin: 0; }
p { margin: 0 0 1em; }
figure { margin: 0; }
::selection { background: var(--amber); color: #000; }
:focus-visible { outline: 1px solid var(--amber); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }

/* Global CRT scanlines + vignette */
.fx-scan {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, .45) 100%);
  mix-blend-mode: multiply;
}

/* HUD corner brackets */
.hud { position: relative; }
.hud::before, .hud::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none; z-index: 2;
  border: 1.5px solid var(--amber);
}
.hud::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hud::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* ---------- Type ---------- */
.kicker {
  font-size: 12px; letter-spacing: .18em; color: var(--amber);
  margin-bottom: 18px; text-transform: uppercase;
}
.blink { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.display {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 6vw, 82px);
  line-height: .98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.display .hl { color: var(--amber); text-shadow: 0 0 24px rgba(255, 176, 0, .45); }
.display::after {
  content: attr(data-text); position: absolute; inset: 0; color: var(--down);
  clip-path: inset(0 0 100% 0); opacity: .7; mix-blend-mode: screen;
  animation: glitch 6s infinite steps(1); pointer-events: none; white-space: pre-line;
}
@keyframes glitch {
  0%, 92%, 100% { clip-path: inset(0 0 100% 0); transform: none; }
  93% { clip-path: inset(20% 0 60% 0); transform: translateX(-4px); }
  95% { clip-path: inset(62% 0 18% 0); transform: translateX(5px); }
  97% { clip-path: inset(40% 0 45% 0); transform: translateX(-2px); }
}
.h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05;
  text-transform: uppercase; letter-spacing: -0.005em;
  margin-bottom: 18px;
}
.lead { font-size: 18px; color: var(--text-2); max-width: 52ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px;
  font-family: var(--font-mono); font-size: 13.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: #0B0A08; background: var(--amber); border: 0; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: background .2s, box-shadow .2s, transform .2s;
}
.btn span { opacity: .6; }
.btn:hover { background: var(--amber-hi); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--amber); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { background: rgba(255, 176, 0, .1); }
.btn--block { width: 100%; }
.link { color: var(--amber); font-size: 13px; letter-spacing: .1em; }
.link:hover { color: var(--amber-hi); }
.link--big { font-size: 19px; color: var(--text); border-bottom: 1px solid var(--amber); }
.link--big:hover { color: var(--amber); }

/* ---------- Nav + tape ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; }
.nav__bar { background: rgba(11, 10, 8, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--amber); }
.brand__mark { width: 30px; height: 30px; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: .2em; color: var(--text); }
.brand__sub { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; color: var(--muted); border-left: 1px solid var(--line-2); padding-left: 10px; }
.nav__links { display: flex; gap: 24px; margin-left: auto; }
.nav__links a { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); transition: color .2s; }
.nav__links a span { color: var(--amber-dim); margin-right: 6px; }
.nav__links a:hover { color: var(--amber); }
.nav__clock { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--amber); padding: 6px 10px; border: 1px solid var(--line); }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 8px var(--up); animation: blink 1.6s steps(1) infinite; }
.nav__toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--amber); margin: 5px 0; transition: transform .3s var(--ease); }

.tape { background: #000; border-bottom: 1px solid var(--line); overflow: hidden; height: 34px; }
.tape__track { display: flex; width: max-content; animation: tape 70s linear infinite; }
.tape__item { display: inline-flex; align-items: center; gap: 8px; padding: 0 22px; height: 34px; font-family: var(--font-mono); font-size: 12.5px; white-space: nowrap; border-right: 1px solid #1a160f; }
.tape__item b { color: var(--amber); font-weight: 600; }
.tape__item .px { color: var(--text); }
@keyframes tape { to { transform: translateX(-50%); } }

.up { color: var(--up); }
.down { color: var(--down); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover; opacity: .32;
  filter: grayscale(1) sepia(1) saturate(2.2) hue-rotate(-12deg) brightness(.55) contrast(1.3);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(11, 10, 8, .85) 40%, rgba(11, 10, 8, .55) 100%), linear-gradient(0deg, var(--bg), transparent 40%);
}
.hero__grid-floor {
  position: absolute; left: -50%; right: -50%; bottom: -10%; height: 55%; z-index: 1;
  background-image:
    linear-gradient(rgba(255, 176, 0, .22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 176, 0, .22) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(500px) rotateX(62deg);
  transform-origin: bottom;
  mask-image: linear-gradient(0deg, #000 10%, transparent 90%);
  -webkit-mask-image: linear-gradient(0deg, #000 10%, transparent 90%);
  animation: floor 3s linear infinite;
}
@keyframes floor { to { background-position: 0 60px; } }

.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.sysline { display: flex; gap: 28px; margin: 34px 0 0; font-size: 12px; letter-spacing: .1em; }
.sysline div { display: grid; gap: 2px; }
.sysline dt { color: var(--muted); }
.sysline dd { margin: 0; color: var(--text); }
.sysline .ok { color: var(--up); }

/* Terminal */
.term {
  background: rgba(8, 7, 5, .88);
  border: 1px solid var(--line-2);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 60px -20px rgba(255, 176, 0, .25);
}
.term__bar { display: flex; align-items: center; gap: 14px; padding: 9px 14px; font-size: 11.5px; letter-spacing: .1em; color: var(--muted); border-bottom: 1px solid var(--line); background: #0d0b08; }
.term__bar b { color: var(--amber); font-weight: 500; }
.term__dots { display: flex; gap: 5px; }
.term__dots i { width: 8px; height: 8px; background: var(--amber-dim); display: block; }
.term__dots i:first-child { background: var(--amber); }
.term__tag { margin-left: auto; color: #0B0A08; background: var(--amber); padding: 1px 6px; font-weight: 600; }
.term__quote { display: flex; align-items: baseline; gap: 16px; padding: 14px 16px 6px; }
.term__px { font-size: 34px; font-weight: 500; color: var(--text); letter-spacing: -0.01em; transition: color .3s; }
.term__px.flash-up { color: var(--up); }
.term__px.flash-down { color: var(--down); }
.term__chg { font-size: 15px; }
.term__meta { margin-left: auto; font-size: 11.5px; color: var(--muted); letter-spacing: .08em; }
.term__meta b { color: var(--text-2); font-weight: 500; }
.term__body { display: grid; grid-template-columns: 1fr 150px; border-top: 1px solid var(--line); }
.term__chart { position: relative; min-height: 300px; border-right: 1px solid var(--line); }
.term__chart canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.book { font-size: 11.5px; display: flex; flex-direction: column; }
.book__head, .trades__head { display: flex; justify-content: space-between; padding: 6px 10px; color: var(--muted); font-size: 10.5px; letter-spacing: .1em; border-bottom: 1px solid var(--line); }
.book__side { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.book__side--bid { justify-content: flex-start; }
.book__row { position: relative; display: flex; justify-content: space-between; padding: 1.5px 10px; transition: background .4s; }
.book__row i { position: absolute; top: 0; bottom: 0; right: 0; opacity: .18; }
.book__side--ask .book__row { color: var(--down); }
.book__side--ask .book__row i { background: var(--down); }
.book__side--bid .book__row { color: var(--up); }
.book__side--bid .book__row i { background: var(--up); }
.book__row span { position: relative; }
.book__row span:last-child { color: var(--text-2); }
.book__row.flash { background: rgba(255, 176, 0, .18); }
.book__mid { padding: 5px 10px; text-align: center; color: var(--amber); font-size: 13px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 176, 0, .05); }

.trades { border-top: 1px solid var(--line); font-size: 11.5px; }
.trades__head span, .trades__row span { flex: 1; text-align: right; }
.trades__head span:first-child, .trades__row span:first-child { text-align: left; }
.trades__list { height: 96px; overflow: hidden; }
.trades__row { display: flex; padding: 2px 10px; color: var(--text-2); animation: rowin .5s var(--ease); }
.trades__row.b span:nth-child(2), .trades__row.b span:last-child { color: var(--up); }
.trades__row.s span:nth-child(2), .trades__row.s span:last-child { color: var(--down); }
@keyframes rowin { from { background: rgba(255, 176, 0, .25); } to { background: transparent; } }

/* ---------- Sections ---------- */
.section { padding: 120px 0; position: relative; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--alt::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 176, 0, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 176, 0, .035) 1px, transparent 1px);
  background-size: 48px 48px;
}
.section > .container { position: relative; }
.section__head { max-width: 720px; margin-bottom: 52px; }

/* ---------- Market wall ---------- */
.wall-section { background: #050504; border-bottom: 1px solid var(--line); }
.clocks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 18px; }
.clock { background: #090806; padding: 12px 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.clock span { white-space: nowrap; font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.clock b { font-size: 18px; font-weight: 500; color: var(--amber); text-shadow: 0 0 12px rgba(255, 176, 0, .35); }
.clock em { font-style: normal; font-size: 10.5px; letter-spacing: .1em; }

.wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line-2); }
.q { background: #080705; padding: 12px 14px 10px; font-family: var(--font-mono); transition: background .6s; min-width: 0; }
.q__top { display: flex; justify-content: space-between; align-items: baseline; }
.q__sym { color: var(--amber); font-weight: 600; font-size: 13.5px; letter-spacing: .04em; }
.q__cls { font-size: 9.5px; color: var(--muted); letter-spacing: .12em; }
.q__px { font-size: 19px; color: var(--text); margin: 4px 0 0; font-weight: 500; }
.q__chg { font-size: 12px; }
.q svg { width: 100%; height: 26px; margin-top: 6px; }
.q.flash-up { background: rgba(53, 208, 127, .16); }
.q.flash-down { background: rgba(255, 77, 61, .16); }
.wall__note { margin: 14px 0 0; font-size: 10.5px; letter-spacing: .14em; color: var(--muted); }

/* ---------- Duotone images ---------- */
.duo { overflow: hidden; background: #000; }
.duo img {
  filter: grayscale(1) sepia(1) saturate(1.8) hue-rotate(-14deg) brightness(.78) contrast(1.15);
  transition: filter .6s var(--ease), transform 1.2s var(--ease);
}
.duo:hover img { filter: grayscale(.2) sepia(.3) saturate(1.1) brightness(.92) contrast(1.05); transform: scale(1.03); }
.duo::selection { background: none; }

/* ---------- Approach ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split__media { border: 1px solid var(--line-2); }
.split__media img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; }
.readout {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1;
  background: rgba(8, 7, 5, .88); border: 1px solid var(--line-2); padding: 14px 16px;
  font-size: 12.5px; color: var(--text-2); line-height: 1.5;
}
.readout span { display: block; color: var(--amber); letter-spacing: .14em; margin-bottom: 4px; }
.checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; font-size: 13.5px; letter-spacing: .04em; }
.checks li { padding-left: 26px; position: relative; color: var(--text); }
.checks li::before { content: "[+]"; position: absolute; left: 0; color: var(--amber); font-size: 11px; top: 2px; }

/* ---------- Pipeline + steps ---------- */
.pipeline { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: p; }
.pipeline li {
  counter-increment: p; position: relative; padding: 14px 16px; font-size: 12.5px; letter-spacing: .14em; color: var(--text-2);
  border: 1px solid var(--line); border-right: 0; background: rgba(255, 176, 0, .03);
}
.pipeline li:last-child { border-right: 1px solid var(--line); }
.pipeline li::before { content: "0" counter(p) " "; color: var(--amber); }
.pipeline li::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--amber);
  animation: pipe 7.5s linear infinite; animation-delay: calc((var(--i, 0)) * 1.5s);
}
.pipeline li:nth-child(1) { --i: 0; } .pipeline li:nth-child(2) { --i: 1; } .pipeline li:nth-child(3) { --i: 2; }
.pipeline li:nth-child(4) { --i: 3; } .pipeline li:nth-child(5) { --i: 4; }
@keyframes pipe { 0% { width: 0; } 20% { width: 100%; opacity: 1; } 21%, 100% { width: 100%; opacity: 0; } }

.steps { display: grid; gap: 28px; }
.step {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: 20px; background: var(--surface); border: 1px solid var(--line);
}
.step--rev .step__img { order: 2; }
.step__img { aspect-ratio: 16 / 10; border: 1px solid var(--line); }
.step__img img { width: 100%; height: 100%; object-fit: cover; }
.step__body { padding: 8px 16px 8px 0; }
.step--rev .step__body { padding: 8px 0 8px 16px; }
.step__num { font-size: 12px; letter-spacing: .16em; color: var(--amber); }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 28px; text-transform: uppercase; margin: 8px 0 12px; }
.step p { color: var(--text-2); }
.chips { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 11px; letter-spacing: .1em; padding: 4px 10px; border: 1px solid var(--line-2); color: var(--amber); background: rgba(255, 176, 0, .05); }

/* ---------- Data ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 16px; }
.stat { background: var(--surface); padding: 20px 22px; }
.stat__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stat__value { font-family: var(--font-display); font-weight: 600; font-size: 40px; color: var(--amber); text-shadow: 0 0 18px rgba(255, 176, 0, .3); margin: 6px 0 2px; }
.stat__cmp { font-family: var(--font-mono); font-size: 12px; color: var(--text-2); }

.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); padding: 22px 22px 16px; min-width: 0; }
.panel--wide { grid-column: 1 / -1; }
.panel__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.panel h3 { font-size: 14px; font-weight: 600; letter-spacing: .14em; color: var(--text); }
.panel__sub { margin: 4px 0 0; font-size: 13px; color: var(--text-2); }
.legend { display: flex; gap: 18px; font-size: 11.5px; letter-spacing: .1em; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 14px; height: 3px; display: inline-block; }
.sw--1 { background: var(--series-1); }
.sw--2 { background: var(--series-2); }

.chart { position: relative; width: 100%; height: 340px; }
.chart--bars, .chart--cols { height: 260px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart text { font-family: var(--font-mono); font-size: 11.5px; fill: var(--text-2); }
.chart .tick { font-variant-numeric: tabular-nums; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .baseline { stroke: var(--axis); stroke-width: 1; }
.chart .label-strong { fill: var(--text); font-weight: 500; }

.table-view { margin-top: 10px; font-size: 13px; }
.table-view summary { cursor: pointer; color: var(--text-2); font-size: 11.5px; letter-spacing: .12em; }
.table-view summary:hover { color: var(--amber); }
.table-wrap { overflow-x: auto; margin-top: 10px; }
.table-view table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.table-view th, .table-view td { padding: 7px 12px; text-align: right; border-bottom: 1px solid var(--line); }
.table-view th:first-child, .table-view td:first-child { text-align: left; }
.table-view th { color: var(--muted); font-weight: 500; }

.disclaimer { margin: 22px 0 0; font-size: 12.5px; color: var(--muted); max-width: 900px; }
.disclaimer strong { color: var(--text-2); }

.tooltip {
  position: fixed; z-index: 100; pointer-events: none;
  background: #14110c; border: 1px solid var(--line-2);
  padding: 10px 12px; font-family: var(--font-mono); font-size: 12px; color: var(--text);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .8);
  opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; min-width: 170px;
}
.tooltip.is-on { opacity: 1; transform: none; }
.tooltip .tt-title { color: var(--amber); font-size: 11px; letter-spacing: .1em; margin-bottom: 6px; }
.tooltip .tt-row { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.tooltip .tt-row span:first-child { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.tooltip .tt-row b { font-weight: 500; }
.tooltip i { width: 10px; height: 3px; display: inline-block; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: 1.1fr 1fr 1fr; grid-template-rows: 260px 260px; gap: 14px; }
.bento__item { position: relative; border: 1px solid var(--line); }
.bento__item--tall { grid-row: span 2; }
.bento__item--wide { grid-column: span 2; }
.bento__item img { width: 100%; height: 100%; object-fit: cover; }
.bento__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 40px 20px 16px;
  background: linear-gradient(180deg, transparent, rgba(5, 5, 4, .95)); font-size: 14px; color: var(--text);
}
.bento__item figcaption .mono { display: block; font-size: 11px; letter-spacing: .16em; color: var(--amber); margin-bottom: 4px; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); padding: 30px 26px; transition: border-color .3s, background .3s; }
.card:hover { border-color: var(--line-2); background: #15120c; }
.card__id { font-size: 11px; letter-spacing: .16em; color: var(--amber); }
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: 24px; text-transform: uppercase; margin: 14px 0 10px; }
.card p { color: var(--text-2); margin: 0; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 36px; }
.contact h4 { font-weight: 400; font-size: 11.5px; letter-spacing: .16em; color: var(--muted); margin-bottom: 10px; }
.contact address { font-style: normal; font-size: 17px; line-height: 1.6; margin-bottom: 8px; }

.form { background: var(--surface); border: 1px solid var(--line-2); padding: 28px; display: grid; gap: 16px; }
.form__title { color: var(--amber); font-size: 13px; letter-spacing: .14em; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.form input, .form select, .form textarea {
  font-family: var(--font-mono); font-size: 14.5px; letter-spacing: 0; color: var(--text);
  padding: 11px 12px; border-radius: 0;
  background: #070605; border: 1px solid var(--line-2);
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255, 176, 0, .12); }
.form textarea { resize: vertical; }
.form__note { margin: 0; font-size: 12.5px; color: var(--up); min-height: 1.2em; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-2); padding: 64px 0 26px; background: #050504; font-size: 14px; color: var(--text-2); }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 48px; }
.footer__tag { margin-top: 12px; font-size: 11.5px; letter-spacing: .14em; color: var(--muted); }
.footer__cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer__cols div { display: grid; gap: 8px; align-content: start; }
.footer h5 { font-weight: 400; font-size: 11.5px; letter-spacing: .16em; color: var(--amber); margin-bottom: 6px; }
.footer a:hover { color: var(--amber); }
.footer__cols p { margin: 0; }
.footer__legal { margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--line); }
.footer__legal p { font-size: 12px; color: var(--muted); max-width: 920px; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 11px; letter-spacing: .12em; margin-top: 14px; color: var(--muted); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tape__track, .hero__grid-floor, .blink, .dot-live, .display::after, .pipeline li::after { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; }
  .wall { grid-template-columns: repeat(4, 1fr); }
  .split, .contact { grid-template-columns: 1fr; gap: 48px; }
  .step, .step--rev { grid-template-columns: 1fr; gap: 20px; }
  .step--rev .step__img { order: 0; }
  .step__body, .step--rev .step__body { padding: 0 6px 6px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .charts { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 240px 240px; }
  .bento__item--tall, .bento__item--wide { grid-column: span 2; grid-row: span 1; }
  .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 88px 0; }
  .nav__clock { display: none; }
}
@media (max-width: 760px) {
  .brand__sub { display: none; }
  .nav__links {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 24px 16px;
    background: rgba(11, 10, 8, .98); border-bottom: 1px solid var(--line); display: none;
  }
  .nav__links a { padding: 12px 0; font-size: 14px; }
  .nav.is-open .nav__links { display: flex; }
  .nav__toggle { display: block; }
  .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); }
  .hero { padding-top: 128px; }
  .term__body { grid-template-columns: 1fr; }
  .term__chart { border-right: 0; min-height: 230px; }
  .book { display: none; }
  .clocks { grid-template-columns: repeat(2, 1fr); }
  .clocks .clock:last-child { grid-column: span 2; }
  .wall { grid-template-columns: repeat(2, 1fr); }
  .pipeline { grid-template-columns: 1fr; }
  .pipeline li { border-right: 1px solid var(--line); border-bottom: 0; }
  .pipeline li:last-child { border-bottom: 1px solid var(--line); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat__value { font-size: 30px; }
  .chart { height: 280px; }
  .bento { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 220px; }
  .bento__item--wide, .bento__item--tall { grid-column: auto; }
  .contact__grid, .form__row { grid-template-columns: 1fr; }
  .form { padding: 20px; }
  .panel { padding: 16px 14px 12px; }
  .sysline { gap: 18px; }
}
