/* ============ BRUTALSTACK — The Open-Source Idea Stack ============ */
:root {
  --bg: #f4f4f0;
  --bg-alt: #ececdf;
  --ink: #0a0a0a;
  --ink-soft: #1a1a1a;
  --line: #1a1a1a;
  --line-soft: #cfcfcf;
  --purple: #6B46E5;
  --purple-dark: #5938c9;
  --yellow: #D4FF3A;
  --gray: #8a8a8a;
  /* Tall condensed display font (matches reference) */
  --font-display: 'Anton', 'Bebas Neue', 'Impact', sans-serif;
  --font-sans: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

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

html { scroll-behavior: smooth; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1.is-visible { transition-delay: .08s; }
.reveal--delay-2.is-visible { transition-delay: .16s; }
.reveal--delay-3.is-visible { transition-delay: .24s; }
.reveal--delay-4.is-visible { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ TICK RAILS ============ */
.tick-rail {
  position: fixed;
  top: 0; bottom: 0;
  width: 24px;
  z-index: 1;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--ink) 0,
    var(--ink) 1px,
    transparent 1px,
    transparent 10px
  );
  background-size: 6px 10px;
  background-repeat: repeat-y;
  background-position: center top;
}
.tick-rail--left { left: 0; }
.tick-rail--right { right: 0; }

/* ============ SIDE VERTICAL LABELS ============ */
.side-label {
  position: fixed;
  left: 32px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--ink);
  z-index: 2;
}
.side-label--top { top: 280px; }
.side-label--bottom { bottom: 80px; }

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--ink);
  padding: 0 60px;
  z-index: 50;
  background: var(--bg);
  backdrop-filter: saturate(140%);
}
.nav__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-auto-flow: column;
  grid-auto-columns: auto;
  align-items: center;
  gap: 22px;
  height: 90px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.logo__mark {
  color: var(--purple);
  font-size: 22px;
  line-height: 1;
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  padding-left: 48px;
  border-left: 1px solid var(--ink);
  height: 100%;
}
.nav__menu a { font-weight: 500; transition: color .2s; position: relative; padding: 4px 0; }
.nav__menu a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--purple);
  transition: width .25s ease;
}
.nav__menu a:hover { color: var(--purple); }
.nav__menu a:hover::after { width: 100%; }
.nav__menu a.is-active { color: var(--purple); }
.nav__menu a.is-active::after { width: 100%; }
.nav__sep { color: var(--ink); opacity: 0.4; }

.nav__time {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  padding: 0 24px;
  border-left: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 130px;
}
.nav__time-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.nav__dot {
  width: 6px; height: 6px;
  background: var(--purple);
  border-radius: 50%;
  display: inline-block;
}
.nav__more { font-size: 22px; padding: 0 8px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 16px 22px;
  border: 1px solid var(--ink);
  white-space: nowrap;
  transition: background .2s, color .2s, transform .2s, border-color .2s;
  cursor: pointer;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { background: var(--purple); border-color: var(--purple); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--purple { background: var(--purple); color: #fff; border-color: var(--purple); }
.btn--purple:hover { background: var(--purple-dark); border-color: var(--purple-dark); box-shadow: 3px 3px 0 var(--ink); }
.btn__arrow { font-size: 14px; line-height: 1; }
.btn__brackets { font-family: var(--font-mono); letter-spacing: -0.05em; }

/* ============ COMMON ============ */
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--ink);
  display: inline-block;
}
.section-head {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 60px 18px;
  border-bottom: 1px dashed rgba(10,10,10,0.18);
}
.section-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 700;
}

/* ============ HERO ============ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 50px 60px 60px;
  border-bottom: 1px solid var(--ink);
  position: relative;
  gap: 60px;
  align-items: start;
}
.hero__left { display: flex; flex-direction: column; gap: 28px; padding-top: 8px; }
.hero__title {
  font-family: var(--font-display);
  /* Anton is tall + condensed — gives the "stretched up" feel */
  display: flex;
  flex-direction: column;
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: 400;
  margin-top: 12px;
}
.hero__title-line { display: block; font-size: clamp(96px, 13.5vw, 230px); }
.hero__title-line--lg { font-size: clamp(96px, 13.5vw, 230px); }
.hero__tagline {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--purple);
  font-weight: 700;
}
.hero__desc {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
  max-width: 480px;
}
.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ============ HERO RIGHT — SQUARE FRAME ============ */
.hero__right {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}
.cube-frame {
  position: relative;
  width: 100%;
  /* perfectly square */
  aspect-ratio: 1 / 1;
  background: transparent;
  overflow: visible;
}
#three-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
}
#three-stage canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.cube-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 2;
}
.render-status {
  position: absolute;
  top: 16px;
  left: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 3;
}
.render-status__row { display: flex; align-items: center; gap: 8px; }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot--purple { background: var(--purple); }
.dot--yellow { background: var(--yellow); }
.globe-icon { position: absolute; top: 14px; right: 18px; z-index: 3; }
.frame-corner {
  position: absolute;
  width: 14px; height: 14px;
  border: 1.5px solid var(--ink);
  z-index: 2;
}
.frame-corner--tl { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.frame-corner--tr { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.frame-corner--bl { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.frame-corner--br { bottom: 8px; right: 8px; border-left: none; border-top: none; }
.coord-box {
  position: absolute;
  right: 24px;
  bottom: 60px;
  border: 1.5px solid var(--yellow);
  background: rgba(244,244,240,0.92);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  line-height: 1.55;
  z-index: 3;
}
.scene-tag {
  position: absolute;
  right: 18px;
  bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  z-index: 3;
}

/* ============ TICKER ============ */
.ticker {
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
}
.ticker__track {
  display: flex;
  gap: 60px;
  padding: 14px 0;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  animation: ticker 30s linear infinite;
}
.ticker__track span { display: inline-flex; align-items: center; gap: 14px; }
.ticker__track span:nth-child(odd) { color: var(--yellow); }
.ticker__track span:nth-child(even) { color: var(--bg); }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ STATS ============ */
.stats { border-bottom: 1px solid var(--ink); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
}
.stat {
  padding: 36px 32px 28px;
  border-right: 1px solid var(--ink);
  position: relative;
  overflow: hidden;
}
.stat:last-child { border-right: none; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 96px);
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 14px;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 700;
}
.stat__bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
}
.stat__bar--purple { background: var(--purple); }
.stat__bar--yellow { background: var(--yellow); }

/* ============ PRINCIPLES ============ */
.principles {
  padding: 0 0 0 0;
  border-bottom: 1px solid var(--ink);
}
.principles__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--ink);
}
.principle {
  padding: 30px 26px 38px;
  border-right: 1px solid var(--ink);
  position: relative;
  transition: background .25s;
}
.principle:last-child { border-right: none; }
.principle:hover { background: var(--bg-alt); }
.principle::after {
  content: '+';
  position: absolute;
  top: -8px;
  right: -8px;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  width: 16px; height: 16px;
  display: grid; place-items: center;
}
.principle:last-child::after { display: none; }
.principle__icon { margin-bottom: 22px; }
.principle__title {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 14px;
  text-transform: uppercase;
  font-weight: 400;
}
.principle__desc {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
}

/* ============ SERVICES TABLE ============ */
.services { border-bottom: 1px solid var(--ink); }
.srv-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
}
.srv-table thead th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 700;
  padding: 14px 18px;
  background: var(--ink);
  color: var(--bg);
  border-right: 1px solid var(--bg);
}
.srv-table thead th:last-child { border-right: none; }
.srv-table tbody td {
  padding: 18px;
  border-top: 1px solid var(--ink);
  border-right: 1px dashed rgba(10,10,10,.18);
  font-size: 12px;
  letter-spacing: 0.06em;
  vertical-align: middle;
}
.srv-table tbody td:last-child { border-right: none; }
.srv-table tbody tr { transition: background .2s; }
.srv-table tbody tr:hover { background: var(--bg-alt); }
.srv-table tbody tr:nth-child(even) { background: rgba(107,70,229,0.04); }
.srv-table tbody tr:nth-child(even):hover { background: rgba(107,70,229,0.09); }
.srv-table__num { width: 60px; font-weight: 700; }
.srv-table__name {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: 400;
}
.srv-table__tier { width: 130px; text-align: right; }

.tier {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 700;
  padding: 6px 10px;
  border: 1px solid var(--ink);
}
.tier--purple { background: var(--purple); color: #fff; border-color: var(--purple); }
.tier--yellow { background: var(--yellow); color: var(--ink); border-color: var(--ink); }
.tier--dark { background: var(--ink); color: var(--bg); }

/* ============ WORK ============ */
.work {
  padding: 0 0 50px;
  border-bottom: 1px solid var(--ink);
  position: relative;
}
.work__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 20px 60px 0;
}
.work-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform .25s;
}
.work-card:hover { transform: translateY(-3px); }
.work-card__media {
  aspect-ratio: 4/3;
  background: #1a1a1a;
  border: 1px solid var(--ink);
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.work-card__media--data {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}
.work-card__media--data::before {
  content: '';
  position: absolute;
  inset: 14px;
  background: repeating-linear-gradient(0deg, #D4FF3A 0 2px, transparent 2px 8px);
  opacity: 0.7;
  mix-blend-mode: screen;
}
.work-card__media--neural {
  background: radial-gradient(circle at 50% 55%, #000 0%, #1a1a1a 35%, #2a2a2a 80%);
}
.work-card__media--neural::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 55%, #000 0 14%, transparent 14%);
}
.work-card__media--void { background: linear-gradient(180deg, #0a0a0a 0%, #1f1f1f 100%); }
.work-card__media--grid { background: radial-gradient(circle at 50% 50%, #2a2a2a 0%, #0a0a0a 70%); }
.work-card__media--grid::after {
  content: '';
  position: absolute;
  inset: 14px;
  background:
    repeating-linear-gradient(0deg, rgba(107,70,229,.45) 0 1px, transparent 1px 16px),
    repeating-linear-gradient(90deg, rgba(107,70,229,.45) 0 1px, transparent 1px 16px);
}
.work-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-top: 1px solid var(--ink);
  padding: 12px 4px 0;
  margin-top: -1px;
}
.work-card__name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: 400;
}
.work-card__type {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink);
  opacity: 0.7;
  margin-top: 4px;
}
.work-card__arrow { font-family: var(--font-mono); font-size: 14px; padding-top: 4px; }

/* ============ PROCESS ============ */
.process { border-bottom: 1px solid var(--ink); }
.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
}
.step {
  padding: 36px 30px 40px;
  border-right: 1px solid var(--ink);
  position: relative;
}
.step:last-child { border-right: none; }
.step__num {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 0.95;
  letter-spacing: 0;
  color: var(--ink);
}
.step__bar {
  height: 8px;
  width: 60%;
  margin: 14px 0 18px;
}
.step__bar--purple { background: var(--purple); }
.step__bar--yellow { background: var(--yellow); }
.step__title {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0;
  margin-bottom: 12px;
  text-transform: uppercase;
  font-weight: 400;
}
.step__desc {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
}

/* ============ MANIFESTO ============ */
.manifesto {
  background: var(--ink);
  color: var(--bg);
  border-bottom: 1px solid var(--ink);
  padding: 60px 60px 80px;
  position: relative;
  overflow: hidden;
}
.manifesto::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}
.manifesto__inner { position: relative; z-index: 2; }
.manifesto__label { margin-bottom: 30px; }
.manifesto__label .section-label { color: var(--yellow); }
.manifesto__quote {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 86px);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: 400;
  max-width: 1200px;
}
.hl-purple { color: var(--purple); }
.hl-yellow { color: var(--yellow); }
.manifesto__sig {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(244,244,240,0.7);
  border-top: 1px dashed rgba(244,244,240,0.2);
  padding-top: 18px;
}

/* ============ TECH STACK ============ */
.tech { border-bottom: 1px solid var(--ink); }
.tech__grid {
  border-top: 1px solid var(--ink);
}
.tech-row {
  display: grid;
  grid-template-columns: 80px 200px 60px 1fr 140px;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  transition: background .2s;
}
.tech-row:last-child { border-bottom: none; }
.tech-row:hover { background: var(--bg-alt); }
.tech-row__cell {
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  border-right: 1px dashed rgba(10,10,10,0.18);
}
.tech-row__cell:last-child { border-right: none; }
.tech-row__id { font-weight: 700; letter-spacing: 0.14em; }
.tech-row__name {
  font-family: var(--font-display);
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 400;
}
.tech-row__color {
  padding: 0;
  height: 100%;
  min-height: 56px;
}
.tech-row__color--purple { background: var(--purple); }
.tech-row__color--yellow { background: var(--yellow); }
.tech-row__list { letter-spacing: 0.06em; }
.tech-row__status {
  font-weight: 700;
  letter-spacing: 0.14em;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ============ VOICES ============ */
.voices { border-bottom: 1px solid var(--ink); }
.voices__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
}
.voice {
  padding: 28px 28px 32px;
  border-right: 1px solid var(--ink);
  font-family: var(--font-mono);
  background: var(--bg);
  transition: background .2s;
}
.voice:last-child { border-right: none; }
.voice:hover { background: var(--bg-alt); }
.voice__head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(10,10,10,0.2);
}
.voice__body {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 22px;
}
.voice__sig {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink);
  opacity: 0.7;
}

/* ============ TRIO ============ */
.trio {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid var(--ink);
}
.trio__col {
  padding: 36px 36px 42px;
  border-right: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.trio__col:last-child { border-right: none; }
.trio__heading {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: 400;
}
.trio__heading--sm { font-size: 36px; }
.trio__text { font-family: var(--font-mono); font-size: 12px; line-height: 1.7; }

/* STATUS */
.status { display: flex; flex-direction: column; gap: 12px; }
.status__row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.status__bar {
  height: 8px;
  background: #e4e4dc;
  border: 1px solid var(--ink);
  position: relative;
}
.status__fill {
  height: 100%;
  background: var(--purple);
  transition: width 1.2s cubic-bezier(.2,.7,.2,1);
}
.status__fill--yellow { background: var(--yellow); }
.status__val { font-size: 11px; letter-spacing: 0.05em; }
.status__banner {
  margin-top: 8px;
  background: var(--yellow);
  border: 1px solid var(--ink);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.status__banner-dot {
  width: 8px; height: 8px;
  background: var(--ink);
  border-radius: 50%;
}

/* SUBSCRIBE */
.subscribe {
  display: grid;
  grid-template-columns: 1fr auto;
  border: 1px solid var(--ink);
  background: var(--bg);
  margin-top: 8px;
}
.subscribe__input {
  background: transparent;
  border: none;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  outline: none;
  color: var(--ink);
}
.subscribe__input::placeholder {
  color: var(--ink);
  opacity: 0.4;
  letter-spacing: 0.12em;
}
.subscribe .btn--purple {
  border: none;
  border-left: 1px solid var(--ink);
}
.hatch {
  margin-top: 12px;
  height: 12px;
  background: repeating-linear-gradient(
    -45deg,
    var(--ink) 0,
    var(--ink) 1px,
    transparent 1px,
    transparent 6px
  );
}

/* ============ TRUSTED ============ */
.trusted { border-bottom: 1px solid var(--ink); padding-bottom: 30px; }
.trusted__row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin: 0 60px;
  padding: 18px 0 6px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.trusted__logo {
  font-family: var(--font-display);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 8px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 400;
  border-right: 1px dashed rgba(10,10,10,0.18);
  transition: background .2s;
}
.trusted__logo:last-child { border-right: none; }
.trusted__logo:hover { background: var(--bg-alt); }

/* ============ FOOTER ============ */
.footer {
  background: var(--bg);
  padding: 0 60px;
  border-top: 0;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1.6fr;
  gap: 24px;
  padding: 40px 0 28px;
  border-bottom: 1px solid var(--ink);
}
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 700;
  margin-bottom: 14px;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer__col ul a { font-family: var(--font-sans); font-size: 13px; transition: color .2s; }
.footer__col ul a:hover { color: var(--purple); }
.footer__copy {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  margin-top: 16px;
  letter-spacing: 0.08em;
}
.node-row {
  display: flex;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  align-items: center;
}
.world-map { width: 100%; height: 110px; }

.footer__bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 12px 0;
}
.footer__status, .footer__node {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}
.footer__node { justify-content: flex-end; }
.footer__access {
  background: var(--purple);
  color: #fff;
  padding: 10px 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 700;
  text-align: center;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1200px) {
  .stats__grid, .process__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid .stat:nth-child(2), .process__grid .step:nth-child(2) { border-right: none; }
  .stats__grid .stat:nth-child(-n+2), .process__grid .step:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .tech-row { grid-template-columns: 60px 160px 50px 1fr 120px; }
}
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .principles__grid { grid-template-columns: repeat(2, 1fr); }
  .principle { border-bottom: 1px solid var(--ink); }
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .trio { grid-template-columns: 1fr; }
  .trio__col { border-right: none; border-bottom: 1px solid var(--ink); }
  .trusted__row { grid-template-columns: repeat(3, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .nav__inner { grid-template-columns: auto 1fr auto; gap: 16px; }
  .nav__menu, .nav__time { display: none; }
  .voices__grid { grid-template-columns: 1fr; }
  .voice { border-right: none; border-bottom: 1px solid var(--ink); }
  .tech-row { grid-template-columns: 50px 140px 40px 1fr; }
  .tech-row__status { display: none; }
}
@media (max-width: 640px) {
  .nav, .hero, .principles, .work, .trusted, .footer, .manifesto { padding-left: 28px; padding-right: 28px; }
  .section-head { padding-left: 28px; padding-right: 28px; }
  .work__grid { padding-left: 28px; padding-right: 28px; }
  .trusted__row { margin: 0; grid-template-columns: 1fr 1fr; }
  .principles__grid, .stats__grid, .process__grid { grid-template-columns: 1fr; }
  .stats__grid .stat, .process__grid .step, .principles__grid .principle { border-right: none; border-bottom: 1px solid var(--ink); }
  .footer__top { grid-template-columns: 1fr; }
  .hero__title-line,
  .hero__title-line--lg { font-size: 72px; }
  .trio__heading { font-size: 42px; }
  .side-label { display: none; }
  .tech-row { grid-template-columns: 50px 1fr 30px; }
  .tech-row__list { display: none; }
  .srv-table thead { display: none; }
  .srv-table, .srv-table tbody, .srv-table tr, .srv-table td { display: block; width: 100%; }
  .srv-table td { border-right: none; padding: 8px 18px; }
  .srv-table tr { border-top: 1px solid var(--ink); padding: 14px 0; }
}

/* ============================================================
   THE VAULT — open-source project bank (vault.html)
   ============================================================ */
.vault-hero {
  padding: 70px 60px 50px;
  border-bottom: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 50px;
  align-items: end;
}
.vault-hero__title {
  font-family: var(--font-display);
  font-size: clamp(72px, 12vw, 200px);
  line-height: 0.86;
  text-transform: uppercase;
  margin-top: 14px;
}
.vault-hero__title em { font-style: normal; color: var(--purple); }
.vault-hero__desc {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 460px;
  border-left: 3px solid var(--yellow);
  padding-left: 16px;
}
.vault-hero__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--gray);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vault-hero__meta b { color: var(--ink); }

/* index of banks */
.vault-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--ink);
}
.vault-index a {
  flex: 1 1 auto;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 16px 18px;
  border-right: 1px solid var(--ink);
  transition: background .2s, color .2s;
}
.vault-index a:last-child { border-right: none; }
.vault-index a:hover { background: var(--ink); color: var(--bg); }

/* one bank section */
.bank {
  padding: 64px 60px;
  border-bottom: 1px solid var(--ink);
}
.bank:nth-child(even) { background: var(--bg-alt); }
.bank__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 22px;
  margin-bottom: 36px;
}
.bank__code {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gray);
  margin-bottom: 10px;
}
.bank__title {
  font-family: var(--font-display);
  font-size: clamp(42px, 6.5vw, 96px);
  line-height: 0.9;
  text-transform: uppercase;
}
.bank__title em { font-style: normal; color: var(--purple); }
.bank__count {
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: right;
  white-space: nowrap;
}
.bank__count b { font-size: 30px; display: block; font-family: var(--font-display); }

/* grid of deposit boxes */
.vault-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.box {
  border: 1px solid var(--ink);
  background: var(--bg);
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 240px;
  transition: transform .18s cubic-bezier(.2,.7,.2,1), box-shadow .18s;
}
.bank:nth-child(even) .box { background: var(--bg); }
.box:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.box__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gray);
}
.box__lock { display: flex; gap: 5px; align-items: center; }
.box__lock span { width: 7px; height: 7px; border: 1px solid var(--ink); border-radius: 50%; }
.box__lock span:last-child { background: var(--yellow); border-color: var(--ink); }
.box__name {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 0.96;
  text-transform: uppercase;
}
.box__repo {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--purple);
  word-break: break-all;
}
.box__desc {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  flex: 1;
}
.box__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
  margin-top: 4px;
}
.box__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  border: 1px solid var(--ink);
  padding: 3px 9px;
}
.box__open {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  display: flex;
  gap: 6px;
  align-items: center;
}
.box:hover .box__open { color: var(--purple); }

@media (max-width: 900px) {
  .vault-hero { grid-template-columns: 1fr; gap: 28px; }
  .vault-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .vault-hero, .bank { padding-left: 28px; padding-right: 28px; }
  .vault-grid { grid-template-columns: 1fr; }
  .vault-index a { flex-basis: 50%; border-bottom: 1px solid var(--ink); }
}

/* ============================================================
   RESERVE DASHBOARD (dashboard.html)
   ============================================================ */
.dash__bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  padding: 48px 60px 26px;
  border-bottom: 1px solid var(--ink);
}
.dash__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 84px);
  line-height: 0.88;
  text-transform: uppercase;
}
.dash__title em { font-style: normal; color: var(--purple); }
.dash__sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 0.05em;
  margin-top: 12px;
}
.dash__live {
  font-family: var(--font-mono);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  text-align: right;
}
.dash__live b { font-family: var(--font-display); font-size: 30px; letter-spacing: 0.02em; }
.dash__live-tag { display: flex; align-items: center; gap: 7px; color: var(--gray); }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 0 rgba(107,70,229,.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(107,70,229,.5); }
  70% { box-shadow: 0 0 0 8px rgba(107,70,229,0); }
  100% { box-shadow: 0 0 0 0 rgba(107,70,229,0); }
}

/* KPI strip */
.dash__kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--ink);
}
.kpi { padding: 26px 30px; border-right: 1px solid var(--ink); }
.kpi:last-child { border-right: none; }
.kpi__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--gray); }
.kpi__num { font-family: var(--font-display); font-size: clamp(44px, 5vw, 64px); line-height: 1; margin-top: 8px; }
.kpi__num small { font-size: 0.4em; color: var(--gray); }
.kpi__foot { font-family: var(--font-mono); font-size: 11px; color: var(--purple); margin-top: 8px; display: flex; align-items: center; gap: 6px; }

/* main / side layout */
.dash__grid { display: grid; grid-template-columns: 1.7fr 1fr; }
.dash__main { border-right: 1px solid var(--ink); }
.panel { padding: 28px 30px; border-bottom: 1px solid var(--ink); }
.dash__side .panel:last-child { border-bottom: none; }
.panel__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--ink);
}
.panel__title { font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; }
.panel__tag { font-family: var(--font-mono); font-size: 11px; color: var(--gray); }

/* horizontal bars */
.barrow {
  display: grid;
  grid-template-columns: 120px 1fr 56px;
  align-items: center; gap: 14px;
  margin-bottom: 14px;
  font-family: var(--font-mono); font-size: 12px;
}
.barrow:last-child { margin-bottom: 0; }
.barrow__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barrow__track { height: 18px; background: var(--bg-alt); border: 1px solid var(--ink); overflow: hidden; }
.barrow__fill { height: 100%; width: 0; background: var(--purple); transition: width 1s cubic-bezier(.2,.7,.2,1); }
.barrow__fill--y { background: var(--yellow); }
.barrow__val { text-align: right; font-weight: 700; }

/* filter chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  border: 1px solid var(--ink); padding: 6px 12px; cursor: pointer; transition: .18s; background: var(--bg);
}
.chip.is-active { background: var(--ink); color: var(--bg); }
.chip:hover { background: var(--purple); color: #fff; border-color: var(--purple); }

/* ledger table */
.ledger { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 12px; }
.ledger th { text-align: left; font-size: 10px; letter-spacing: 0.1em; color: var(--gray); border-bottom: 1px solid var(--ink); padding: 9px 10px; }
.ledger td { padding: 11px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.ledger tr { transition: background .15s; }
.ledger tbody tr:hover td { background: var(--bg-alt); }
.ledger__id { color: var(--gray); }
.ledger__name { font-weight: 700; }
.ledger__repo { color: var(--purple); word-break: break-all; }
.ledger__tag { border: 1px solid var(--ink); padding: 2px 8px; font-size: 10px; white-space: nowrap; }
.ledger__open { font-weight: 700; white-space: nowrap; }
.ledger__open:hover { color: var(--purple); }
.ledger__vault { white-space: nowrap; }

/* vault breakdown */
.brk { display: flex; flex-direction: column; gap: 16px; }
.brk__row { font-family: var(--font-mono); font-size: 12px; }
.brk__top { display: flex; justify-content: space-between; margin-bottom: 7px; }
.brk__pct { color: var(--gray); }
.brk__bar { height: 9px; background: var(--bg-alt); border: 1px solid var(--ink); }
.brk__fill { height: 100%; background: var(--purple); }
.brk__fill--y { background: var(--yellow); }

/* reserve health gauges */
.gauge { font-family: var(--font-mono); font-size: 12px; margin-bottom: 16px; }
.gauge:last-child { margin-bottom: 0; }
.gauge__top { display: flex; justify-content: space-between; margin-bottom: 6px; }
.gauge__val { font-weight: 700; }
.gauge__track { height: 12px; border: 1px solid var(--ink); background: var(--bg-alt); overflow: hidden; }
.gauge__fill { height: 100%; background: var(--purple); width: 0; transition: width 1s ease; }
.gauge__fill--y { background: var(--yellow); }

/* recent deposits feed */
.feed { display: flex; flex-direction: column; }
.feed__item { display: flex; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-family: var(--font-mono); font-size: 12px; }
.feed__item:last-child { border-bottom: none; }
.feed__time { color: var(--gray); white-space: nowrap; min-width: 56px; }
.feed__txt b { color: var(--purple); }

@media (max-width: 900px) {
  .dash__grid { grid-template-columns: 1fr; }
  .dash__main { border-right: none; border-bottom: 1px solid var(--ink); }
  .dash__kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi:nth-child(2) { border-right: none; }
  .kpi:nth-child(1), .kpi:nth-child(2) { border-bottom: 1px solid var(--ink); }
}
@media (max-width: 640px) {
  .dash__bar, .panel { padding-left: 28px; padding-right: 28px; }
  .dash__kpis { grid-template-columns: 1fr; }
  .kpi { border-right: none; border-bottom: 1px solid var(--ink); }
  .kpi:last-child { border-bottom: none; }
  .ledger__repo, .ledger__vault { display: none; }
}

/* ============================================================
   DASHBOARD VARIANT: MARKETS (dark neon trader)
   ============================================================ */
.dash-markets { background: #0a0b0f; color: #e6e6ee; }
.dash-markets .tick-rail { display: none; }
.dash-markets .nav { background: #0c0d13; border-bottom-color: #20222c; }
.dash-markets .nav__menu a, .dash-markets .logo__text, .dash-markets .nav__time { color: #e6e6ee; }
.dash-markets .nav__sep { color: #3a3d4a; }
.dash-markets .logo__mark { color: var(--yellow); }
.dash-markets .btn--dark { background: var(--yellow); color: #0a0b0f; border-color: var(--yellow); }
.dash-markets .btn--dark:hover { background: #fff; border-color: #fff; box-shadow: 3px 3px 0 var(--purple); }
.dash-markets .nav__acct { background: transparent; color: #e6e6ee; border-color: #2a2d38; }
.dash-markets .nav__acct:hover { background: var(--purple); color: #fff; border-color: var(--purple); }
.dash-markets .nav__more { color: #e6e6ee; }
.mk-bar { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; padding: 46px 60px 24px; border-bottom: 1px solid #20222c; }
.mk-bar h1 { font-family: var(--font-display); font-size: clamp(40px, 6vw, 84px); line-height: .88; text-transform: uppercase; }
.mk-bar h1 em { font-style: normal; color: var(--purple); text-shadow: 0 0 26px rgba(107,70,229,.75); }
.mk-bar .section-label { color: var(--yellow); }
.mk-live { font-family: var(--font-mono); font-size: 12px; text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; color: #8a8d9a; }
.mk-live b { font-family: var(--font-display); font-size: 30px; color: #e6e6ee; }
.mk-ticker { display: flex; flex-wrap: wrap; border-bottom: 1px solid #20222c; }
.mk-tk { flex: 1 1 auto; min-width: 160px; padding: 14px 18px; border-right: 1px solid #20222c; font-family: var(--font-mono); font-size: 12px; display: flex; justify-content: space-between; gap: 10px; }
.mk-tk b { color: #e6e6ee; } .mk-tk .up { color: var(--yellow); } .mk-tk .dn { color: #ff5d73; }
.mk-grid { display: grid; grid-template-columns: 1.6fr 1fr; }
.mk-main { border-right: 1px solid #20222c; }
.mk-panel { padding: 26px 30px; border-bottom: 1px solid #20222c; }
.mk-side .mk-panel:last-child { border-bottom: none; }
.mk-ph { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.mk-ph .tag { color: #8a8d9a; font-weight: 400; }
.mk-feature { position: relative; height: 210px; border: 1px solid #20222c; background: linear-gradient(180deg, #0e1016, #0a0b0f); overflow: hidden; }
.mk-feature .glow { position: absolute; inset: 0; background: radial-gradient(circle at 28% 16%, rgba(107,70,229,.4), transparent 55%); }
.mk-feature .area { position: absolute; left: 0; right: 0; bottom: 0; height: 150px; background: linear-gradient(180deg, rgba(212,255,58,.24), transparent); clip-path: polygon(0 75%,8% 60%,16% 68%,24% 45%,32% 55%,40% 30%,48% 42%,56% 22%,64% 38%,72% 18%,80% 30%,88% 12%,100% 26%,100% 100%,0 100%); }
.mk-feature .cap { position: absolute; top: 14px; left: 16px; font-family: var(--font-mono); font-size: 12px; color: #8a8d9a; }
.mk-feature .big { position: absolute; top: 34px; left: 16px; font-family: var(--font-display); font-size: 40px; color: #e6e6ee; }
.mk-watch { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 12px; }
.mk-watch th { text-align: left; color: #8a8d9a; font-size: 10px; letter-spacing: .1em; border-bottom: 1px solid #20222c; padding: 9px 10px; }
.mk-watch td { padding: 11px 10px; border-bottom: 1px solid #16181f; }
.mk-watch tr:hover td { background: #101218; }
.mk-watch .nm { color: #e6e6ee; font-weight: 700; } .mk-watch .rp { color: var(--purple); }
.mk-watch .mom { display: inline-block; width: 70px; height: 6px; background: #16181f; position: relative; vertical-align: middle; }
.mk-watch .mom i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--yellow); }
.mk-watch .open { color: var(--yellow); font-weight: 700; }
.mk-feed .it { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid #16181f; font-family: var(--font-mono); font-size: 12px; color: #bcbcca; }
.mk-feed .it:last-child { border-bottom: none; }
.mk-feed .it b { color: var(--yellow); } .mk-feed .tm { color: #6a6d7a; min-width: 54px; }
.dash-markets .ai-box textarea { background: #0e1016; color: #e6e6ee; border-color: #2a2d38; }
.dash-markets .ai-out { color: #bcbcca; border-left-color: var(--yellow); }
.dash-markets .footer { background: #0a0b0f; }
.dash-markets .footer__bottom { border-top-color: #20222c !important; color: #8a8d9a; }

/* ============================================================
   DASHBOARD VARIANT: MINIMAL (clean light cards)
   ============================================================ */
.dash-minimal { background: #fbfbf8; }
.dash-minimal .tick-rail { display: none; }
.dash-minimal .nav { background: #fbfbf8; }
.dash-minimal .btn--purple, .dash-minimal .btn--dark { border-radius: 12px; }
.mn { max-width: 1120px; margin: 0 auto; padding: 54px 40px 90px; }
.mn-hero .section-label { color: var(--purple); }
.mn-hero h1 { font-family: var(--font-sans); font-weight: 700; font-size: clamp(34px, 5vw, 58px); line-height: 1.04; letter-spacing: -0.02em; margin: 12px 0 12px; }
.mn-hero p { font-family: var(--font-sans); font-size: 15px; color: #555; max-width: 560px; line-height: 1.6; }
.mn-search { margin-top: 26px; display: flex; gap: 10px; }
.mn-search input { flex: 1; font-family: var(--font-sans); font-size: 15px; padding: 15px 18px; border: 1px solid #e6e6de; border-radius: 14px; background: #fff; }
.mn-search input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(107,70,229,.12); }
.mn-h2 { font-family: var(--font-sans); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #9a9a92; margin: 44px 0 16px; }
.mn-collections { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mn-col { border: 1px solid #ebebe3; border-radius: 18px; background: #fff; padding: 22px; cursor: pointer; transition: .2s; }
.mn-col:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0,0,0,.07); border-color: #ddd; }
.mn-col .em { font-size: 26px; }
.mn-col .nm { font-family: var(--font-sans); font-weight: 700; font-size: 15px; margin: 12px 0 4px; }
.mn-col .ct { font-family: var(--font-mono); font-size: 12px; color: #9a9a92; }
.mn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mn-card { border: 1px solid #ebebe3; border-radius: 18px; background: #fff; padding: 22px; display: flex; flex-direction: column; gap: 8px; transition: .2s; text-decoration: none; color: inherit; }
.mn-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0,0,0,.07); }
.mn-card .top { display: flex; justify-content: space-between; align-items: center; }
.mn-card .vt { font-family: var(--font-mono); font-size: 11px; color: #9a9a92; }
.mn-card .tg { font-family: var(--font-mono); font-size: 10px; border: 1px solid #e6e6de; border-radius: 20px; padding: 3px 10px; color: #666; }
.mn-card .nm { font-family: var(--font-sans); font-weight: 700; font-size: 20px; }
.mn-card .rp { font-family: var(--font-mono); font-size: 12px; color: var(--purple); word-break: break-all; }
.mn-card .go { font-family: var(--font-sans); font-weight: 600; font-size: 13px; color: #111; margin-top: 6px; }
.mn-empty { font-family: var(--font-mono); font-size: 13px; color: #9a9a92; padding: 24px 0; }
.mn-ai { margin-top: 44px; border: 1px solid #ebebe3; border-radius: 22px; background: #fff; padding: 26px; }
.mn-ai .mn-h2 { margin-top: 0; }
.mn-ai textarea { width: 100%; font-family: var(--font-sans); font-size: 14px; padding: 14px; border: 1px solid #e6e6de; border-radius: 12px; resize: vertical; min-height: 72px; margin-bottom: 12px; }
.mn-ai textarea:focus { outline: none; border-color: var(--purple); }
.mn-ai .ai-out { border-left: none; padding: 16px 0 0; color: #444; }

@media (max-width: 900px) {
  .mk-grid { grid-template-columns: 1fr; }
  .mk-main { border-right: none; border-bottom: 1px solid #20222c; }
  .mn-collections { grid-template-columns: repeat(2, 1fr); }
  .mn-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .mk-bar { padding-left: 28px; padding-right: 28px; }
  .mk-panel { padding-left: 28px; padding-right: 28px; }
  .mn { padding-left: 22px; padding-right: 22px; }
  .mn-collections, .mn-grid { grid-template-columns: 1fr; }
}
