/* ============ REDUKS RP — black & white bleakwork ============ */
:root {
  --black: #0a0a0a;
  --near-black: #111111;
  --panel: #161616;
  --line: #2a2a2a;
  --grey: #8a8a8a;
  --light: #f2f2f2;
  --white: #ffffff;
  --font-head: "Oi", sans-serif;
  --font-body: "Oi", sans-serif;
  --font-accent: "Rubik Burned", "Rubik Spray Paint", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--light);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  /* film grain */
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0 1px, transparent 1px 3px);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { width: min(1180px, 92%); margin: 0 auto; }

::selection { background: var(--white); color: var(--black); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 14px;
  padding: 14px 30px;
  border: 1px solid var(--white);
  cursor: pointer;
  transition: all .25s ease;
  background: transparent;
  color: var(--white);
}
.btn--lg { padding: 17px 40px; font-size: 15px; }
.btn--solid { background: var(--white); color: var(--black); }
.btn--solid:hover { background: transparent; color: var(--white); transform: translateY(-3px); }
.btn--ghost:hover { background: var(--white); color: var(--black); transform: translateY(-3px); }

.link-arrow {
  font-family: var(--font-head);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: 13px;
  border-bottom: 1px solid var(--white);
  padding-bottom: 3px;
  transition: opacity .2s;
}
.link-arrow:hover { opacity: .6; }

.accent { -webkit-text-stroke: 1.5px var(--white); color: transparent; }

/* ============ HEADER ============ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 34px;
  height: 74px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo__mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--white); color: var(--black);
  font-family: var(--font-head); font-weight: 700; font-size: 22px;
}
.logo__text {
  font-family: var(--font-head); font-weight: 700;
  font-size: 20px; letter-spacing: .1em;
}
.logo__sub {
  font-size: 12px; color: var(--grey);
  margin-left: 5px; letter-spacing: .2em;
}
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav__link {
  font-family: var(--font-head);
  font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--grey); transition: color .2s;
  position: relative;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--white); transition: width .25s;
}
.nav__link:hover, .nav__link.active { color: var(--white); }
.nav__link:hover::after, .nav__link.active::after { width: 100%; }
.header__cta { padding: 11px 24px; }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.burger span { display: block; width: 26px; height: 2px; background: var(--white); margin: 5px 0; transition: .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 70px;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15); }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,10,.96) 0%, rgba(10,10,10,.75) 45%, rgba(10,10,10,.35) 100%),
    linear-gradient(0deg, var(--black) 2%, transparent 40%);
}
.hero__eyebrow {
  font-family: var(--font-head);
  letter-spacing: .4em; font-size: 13px;
  color: var(--grey); text-transform: uppercase;
  margin-bottom: 22px;
}
.hero__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(46px, 8vw, 104px);
  line-height: .98;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.hero__title-outline { -webkit-text-stroke: 2px var(--white); color: transparent; }
.hero__lead { max-width: 540px; color: #c4c4c4; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 64px; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  max-width: 760px;
}
.stat { background: rgba(10,10,10,.8); padding: 20px 18px; }
.stat__num {
  display: block;
  font-family: var(--font-head);
  font-size: 38px; font-weight: 700; line-height: 1;
  color: var(--white);
}
.stat__label { font-size: 12px; color: var(--grey); text-transform: uppercase; letter-spacing: .08em; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  font-size: 22px; color: var(--grey);
  animation: bounce 1.6s infinite;
}
@keyframes bounce { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,10px); } }

/* ============ SECTIONS ============ */
.section { padding: 110px 0; }
.section--alt { background: var(--near-black); border-block: 1px solid var(--line); }
.section__head { margin-bottom: 54px; }
.section__eyebrow {
  font-family: var(--font-head);
  letter-spacing: .35em; font-size: 12px;
  color: var(--grey); text-transform: uppercase;
  margin-bottom: 14px;
}
.section__title {
  font-family: "Rubik Spray Paint", var(--font-head);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 58px);
  text-transform: uppercase;
  line-height: 1.1;
}

.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.about__text p { color: #bdbdbd; margin-bottom: 18px; }
.about__list { list-style: none; margin-top: 26px; }
.about__list li {
  padding: 12px 0 12px 30px;
  border-bottom: 1px dashed var(--line);
  position: relative;
}
.about__list li::before {
  content: "■"; position: absolute; left: 0; top: 12px;
  font-size: 11px; color: var(--white);
}
.about__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.info-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 26px 22px;
  transition: transform .25s, background .25s;
}
.info-card:hover { transform: translateY(-6px); background: #1d1d1d; }
.info-card__num {
  font-family: var(--font-head); font-size: 13px;
  color: var(--grey); letter-spacing: .2em;
  display: block; margin-bottom: 14px;
}
.info-card h3 {
  font-family: var(--font-head); font-size: 19px;
  text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: 10px;
}
.info-card p { font-size: 14px; color: var(--grey); }

/* ---- Factions ---- */
.factions__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.faction {
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .3s;
}
.faction:hover { transform: translateY(-8px); }
.faction__img { height: 220px; overflow: hidden; }
.faction__img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.1);
  transition: transform .5s, filter .4s;
}
.faction:hover .faction__img img { transform: scale(1.07); filter: grayscale(1) contrast(1.3); }
.faction__body { padding: 26px 24px 30px; }
.faction__tag {
  display: inline-block;
  font-family: var(--font-head); font-size: 11px;
  letter-spacing: .2em; text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 5px 12px; color: var(--grey);
  margin-bottom: 16px;
}
.faction__body h3 {
  font-family: var(--font-head); font-size: 24px;
  text-transform: uppercase; margin-bottom: 12px;
}
.faction__body p { font-size: 14.5px; color: var(--grey); margin-bottom: 20px; }

/* ---- News ---- */
.news__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.news-card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 30px 28px;
  position: relative;
  overflow: hidden;
  transition: background .25s;
}
.news-card::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 3px; height: 0; background: var(--white); transition: height .35s;
}
.news-card:hover { background: #1c1c1c; }
.news-card:hover::before { height: 100%; }
.news-card__meta {
  display: flex; gap: 14px; align-items: center;
  margin-bottom: 16px;
}
.news-card__tag {
  font-family: var(--font-head); font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase;
  background: var(--white); color: var(--black);
  padding: 4px 10px;
}
.news-card__date { font-size: 12.5px; color: var(--grey); letter-spacing: .06em; }
.news-card h3 {
  font-family: var(--font-head); font-size: 22px;
  text-transform: uppercase; line-height: 1.25;
  margin-bottom: 12px;
}
.news-card p { font-size: 14.5px; color: var(--grey); }

/* ---- Rules ---- */
.rules__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rule {
  border: 1px solid var(--line);
  background: var(--panel);
}
.rule summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-family: var(--font-head);
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: .04em;
  display: flex; align-items: center; gap: 16px;
  transition: background .2s;
}
.rule summary::-webkit-details-marker { display: none; }
.rule summary span { color: var(--grey); font-size: 13px; letter-spacing: .2em; }
.rule summary::after {
  content: "+"; margin-left: auto; font-size: 22px; color: var(--grey);
  transition: transform .25s;
}
.rule[open] summary::after { transform: rotate(45deg); }
.rule[open] summary { background: #1d1d1d; }
.rule summary:hover { background: #1d1d1d; }
.rule__body {
  padding: 4px 24px 22px 56px;
  font-size: 14.5px; color: var(--grey);
}
.rules__note { margin-top: 26px; color: var(--grey); font-size: 13.5px; letter-spacing: .04em; }

/* ---- Schema ---- */
.schema__flow {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.schema__node {
  flex: 1 1 160px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 22px 18px;
  cursor: pointer;
  transition: border-color .25s, background .25s, transform .25s;
  text-align: center;
}
.schema__node:hover, .schema__node.is-active {
  border-color: var(--white);
  background: #1d1d1d;
  transform: translateY(-5px);
}
.schema__node-id {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: .25em;
  color: var(--grey);
  display: block;
  margin-bottom: 10px;
}
.schema__node.is-active .schema__node-id { color: var(--white); }
.schema__node h3 {
  font-family: var(--font-head);
  font-size: 17px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.schema__node p { font-size: 12.5px; color: var(--grey); }
.schema__node--out { border-style: dashed; }
.schema__arrow {
  display: flex;
  align-items: center;
  color: var(--grey);
  font-size: 20px;
}
.schema__table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.schema__table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.schema__table th, .schema__table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.schema__table th {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey);
  background: #141414;
}
.schema__table td:first-child {
  font-family: var(--font-head);
  letter-spacing: .1em;
  color: var(--white);
}
.schema__table tbody tr { transition: background .2s; }
.schema__table tbody tr.is-highlight { background: #1e1e1e; }
.schema__table tbody tr.is-highlight td:first-child { color: var(--white); }
.schema__table tbody tr:last-child td { border-bottom: 0; }
.schema__note { margin-top: 20px; font-size: 13.5px; color: var(--grey); letter-spacing: .04em; }

/* ---- Exhibits ---- */
.exhibits__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.chip {
  font-family: var(--font-head);
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: transparent;
  color: var(--grey);
  border: 1px solid var(--line);
  padding: 9px 20px;
  cursor: pointer;
  transition: all .2s;
}
.chip:hover { color: var(--white); border-color: var(--grey); }
.chip--active { background: var(--white); color: var(--black); border-color: var(--white); }

.exhibits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.exhibit {
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s, border-color .3s;
}
.exhibit:hover { transform: translateY(-8px); border-color: var(--grey); }
.exhibit--signature { border-color: var(--white); }
.exhibit__img { position: relative; height: 190px; overflow: hidden; }
.exhibit__img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.12);
  transition: transform .5s;
}
.exhibit:hover .exhibit__img img { transform: scale(1.07); }
.exhibit__code {
  position: absolute;
  left: 14px; top: 14px;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: .18em;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--white);
  padding: 4px 10px;
}
.exhibit__body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.exhibit__meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.exhibit__tier {
  font-family: var(--font-head);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  background: var(--white);
  color: var(--black);
  padding: 4px 9px;
}
.exhibit__system { font-size: 12.5px; color: var(--grey); letter-spacing: .05em; }
.exhibit__body h3 {
  font-family: var(--font-accent);
  font-size: 25px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.exhibit__author {
  font-family: var(--font-accent);
  font-size: 14px;
  color: var(--white);
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.exhibit__descr { font-size: 14px; color: var(--grey); margin-bottom: 18px; flex: 1; }
.exhibit__mechs { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.exhibit__mechs li {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: .06em;
  padding: 9px 14px;
  background: #121212;
  border-left: 2px solid var(--white);
  color: var(--light);
}
.exhibit--signature .exhibit__mechs li { border-left-color: var(--white); background: #1a1a1a; }

/* ---- Signature: Grey redux ---- */
.signature {
  padding: 110px 0;
  background: var(--near-black);
  border-block: 1px solid var(--line);
}
.signature__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.signature__visual { position: relative; border: 1px solid var(--line); overflow: hidden; }
.signature__visual img {
  width: 100%;
  display: block;
  filter: grayscale(1) contrast(1.18);
}
.signature__badge {
  position: absolute;
  top: 18px; left: 18px;
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: .24em;
  background: var(--white);
  color: var(--black);
  padding: 6px 13px;
}
.signature__title {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 68px);
  line-height: .98;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.signature__by {
  font-family: var(--font-accent);
  -webkit-text-stroke: 1.5px var(--white);
  color: transparent;
  font-size: .72em;
  text-transform: none;
  letter-spacing: .04em;
}
.signature__text { color: #bdbdbd; margin-bottom: 30px; }
.signature__mechs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 34px; }
.mech {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 18px 14px;
  text-align: center;
}
.mech__val {
  display: block;
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}
.mech__label { font-size: 11.5px; color: var(--grey); text-transform: uppercase; letter-spacing: .07em; }

/* ---- CTA ---- */
.cta {
  padding: 120px 0;
  text-align: center;
  background:
    linear-gradient(rgba(10,10,10,.86), rgba(10,10,10,.94)),
    repeating-linear-gradient(45deg, #141414 0 12px, #101010 12px 24px);
  border-top: 1px solid var(--line);
}
.cta__title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(38px, 6vw, 74px);
  text-transform: uppercase; line-height: 1.02;
  margin-bottom: 22px;
}
.cta__title-outline { -webkit-text-stroke: 1.5px var(--white); color: transparent; }
.cta__text { max-width: 560px; margin: 0 auto 34px; color: #bdbdbd; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.cta__ip { margin-top: 24px; font-size: 14px; color: var(--grey); letter-spacing: .08em; }
.cta__ip strong { color: var(--white); letter-spacing: .16em; }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--line); padding: 44px 0; background: var(--near-black); }
.footer__inner {
  display: flex; flex-wrap: wrap; gap: 26px;
  align-items: center; justify-content: space-between;
}
.footer__brand { display: flex; gap: 14px; align-items: center; }
.footer__brand strong { font-family: var(--font-head); letter-spacing: .12em; }
.footer__brand p { font-size: 12.5px; color: var(--grey); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__nav a {
  font-size: 13px; color: var(--grey);
  font-family: var(--font-head); letter-spacing: .08em; text-transform: uppercase;
  transition: color .2s;
}
.footer__nav a:hover { color: var(--white); }
.footer__copy { font-size: 12px; color: #6a6a6a; width: 100%; }

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .nav {
    position: fixed; inset: 74px 0 auto 0;
    background: rgba(10,10,10,.98);
    flex-direction: column; gap: 0;
    padding: 10px 0 20px;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav__link { padding: 14px 6%; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .burger { display: block; margin-left: auto; }
  .header__cta { display: none; }
  .about__grid { grid-template-columns: 1fr; }
  .factions__grid { grid-template-columns: 1fr; }
  .news__grid { grid-template-columns: 1fr; }
  .rules__grid { grid-template-columns: 1fr; }
  .exhibits__grid { grid-template-columns: 1fr; }
  .schema__arrow { display: none; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .schema__table thead { display: none; }
  .schema__table, .schema__table tbody, .schema__table tr, .schema__table td { display: block; width: 100%; }
  .schema__table tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .schema__table td { border: 0; padding: 6px 16px; }
  .schema__table td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-head);
    font-size: 10.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 2px;
  }
}
@media (max-width: 520px) {
  .about__cards { grid-template-columns: 1fr; }
  .signature__mechs { grid-template-columns: 1fr; }
  .hero__actions .btn, .cta__actions .btn { width: 100%; text-align: center; }
  .section { padding: 74px 0; }
  .signature { padding: 74px 0; }
}
