:root {
  --mill: #101412;
  --mill-2: #171c19;
  --paper: #f3f1ea;
  --pulp: #6b4a32;
  --mid: #b7a48a;
  --cyan: #1ec8c0;
  --cyan-2: #8ef0ea;
  --alarm: #e23b2e;
  --ok: #3d9a63;
  --mute: #8b9690;
  --line: rgba(243, 241, 234, 0.12);
  --glass: rgba(16, 20, 18, 0.78);
  --sans: "IBM Plex Sans", "Noto Sans SC", "PingFang SC", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 86px;
}

body {
  margin: 0;
  color: var(--paper);
  background: var(--mill);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-link {
  color: var(--cyan-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

button {
  font-family: inherit;
  cursor: pointer;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(30, 200, 192, 0.12);
  padding: 0.05em 0.4em;
}

.mist {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 6;
  opacity: 0.14;
  background-image: url("images/texture.webp");
  background-size: 520px auto;
  mix-blend-mode: overlay;
}

.tower-strip {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 18px;
  z-index: 8;
  display: grid;
  grid-template-rows: 1fr 1fr 1fr 1fr;
}

.tower-strip .t1 { background: var(--pulp); }
.tower-strip .t2 { background: var(--mid); }
.tower-strip .t3 { background: #d8d3c6; }
.tower-strip .t4 { background: var(--paper); }

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 70;
  background: var(--mill-2);
  padding: 8px 12px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 36px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.brand small {
  display: block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--mute);
}

.seal {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--pulp), var(--paper));
  color: var(--mill);
  font-size: 14px;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--paper);
  color: var(--paper);
  padding: 6px 12px;
}

.nav-links {
  display: flex;
  gap: 16px;
  font-size: 13px;
}

.nav-links a {
  color: var(--mute);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.nav-links a.is-active,
.nav-links a:hover {
  color: var(--paper);
  border-bottom-color: var(--cyan);
}

.nav-links a.live {
  color: var(--mill);
  background: var(--cyan);
  border: 0;
  padding: 6px 12px;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 20, 18, 0.88) 0%, rgba(16, 20, 18, 0.45) 55%, rgba(16, 20, 18, 0.2) 100%),
    linear-gradient(180deg, transparent 30%, rgba(16, 20, 18, 0.92) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 10vh 8vw 9vh;
  max-width: 860px;
}

.kicker,
.vlabel {
  font-family: var(--mono);
  letter-spacing: 0.22em;
  font-size: 11px;
  color: var(--cyan);
  margin: 0 0 12px;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(40px, 7vw, 84px);
}

h2 {
  font-size: clamp(26px, 3.4vw, 40px);
}

h3 {
  font-size: 20px;
}

.lead {
  font-size: 17px;
  max-width: 46em;
  color: rgba(243, 241, 234, 0.86);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.chip {
  border: 1px solid rgba(30, 200, 192, 0.4);
  padding: 4px 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-family: var(--mono);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid currentColor;
  font-size: 14px;
}

.btn-fill {
  background: var(--cyan);
  color: var(--mill);
  border-color: var(--cyan);
}

.btn-ghost {
  background: transparent;
  color: inherit;
}

.wrap {
  width: min(1120px, calc(100% - 56px));
  margin: 0 auto;
  padding: 84px 0;
}

.section-head {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  margin-bottom: 36px;
}

.section-head p:last-child {
  color: var(--mute);
  margin: 0;
}

.band-grid,
.bench-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.band,
.bench,
.io-grid > div {
  background: var(--mill-2);
  border: 1px solid var(--line);
  padding: 20px;
  border-left: 6px solid var(--pulp);
}

.band:nth-child(2) { border-left-color: var(--mid); }
.band:nth-child(3) { border-left-color: var(--cyan); }
.bench:nth-child(1) { border-left-color: var(--pulp); }
.bench:nth-child(2) { border-left-color: var(--cyan); }
.bench:nth-child(3) { border-left-color: var(--paper); }

.stamp {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  font-family: var(--mono);
  margin-bottom: 8px;
}

.alt {
  background: #0c100e;
}

.slice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 44px;
}

.slice.rev {
  direction: rtl;
}

.slice.rev > * {
  direction: ltr;
}

.slice figure {
  margin: 0;
  border: 1px solid var(--line);
}

.slice img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.slice figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--mute);
}

.num {
  font-family: var(--mono);
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.iso {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(23, 28, 25, 0.9);
}

.iso-bar {
  height: 10px;
  background: #2a322e;
  margin-bottom: 10px;
  position: relative;
}

.iso-bar i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 70%;
  background: linear-gradient(90deg, var(--pulp), var(--paper));
}

.lock-ok { color: var(--ok); font-weight: 600; }
.lock-warn { color: var(--alarm); font-weight: 600; }

.rule-list {
  margin: 0;
  padding-left: 22px;
}

.rule-list li { margin-bottom: 10px; }

.io-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 48px;
  color: var(--mute);
  font-size: 14px;
}

@media (max-width: 900px) {
  .tower-strip { display: none; }

  .nav {
    padding: 12px 16px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    background: var(--mill-2);
    position: relative;
    z-index: 60;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 8px 0 12px;
  }

  .nav-links.open { display: flex; }

  .hero,
  .slice,
  .slice.rev,
  .section-head,
  .band-grid,
  .bench-grid,
  .io-grid,
  .footer-inner {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .wrap {
    width: min(1120px, calc(100% - 28px));
    padding: 52px 0;
  }

  .hero-inner { padding: 18vh 20px 48px; }
}
