:root {
  --bg: #040506;
  --bg-2: #0a0d10;
  --paper: #f2eee3;
  --muted: #a3abb5;
  --dim: #69727d;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.26);
  --red: #f04444;
  --red-deep: #901e25;
  --cyan: #54c4e6;
  --amber: #e4b24c;
  --panel: rgba(11, 14, 18, 0.78);
  --shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 18% 0%, rgba(240, 68, 68, 0.12), transparent 26rem),
    radial-gradient(circle at 90% 10%, rgba(84, 196, 230, 0.09), transparent 28rem),
    linear-gradient(180deg, var(--bg), #07090b 48%, var(--bg));
  color: var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  margin: 0;
  overflow-x: hidden;
}

body::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 6px, 72px 100%;
  content: "";
  inset: 0;
  opacity: 0.45;
  pointer-events: none;
  position: fixed;
  z-index: 4;
}

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

button {
  font: inherit;
}

.signal-canvas {
  inset: 0;
  opacity: 0.42;
  pointer-events: none;
  position: fixed;
  z-index: 1;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(4, 5, 6, 0.74);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: auto 1fr auto;
  min-height: 64px;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  min-width: 0;
}

.brand span {
  background: linear-gradient(135deg, var(--red), var(--cyan));
  display: grid;
  font-size: 11px;
  font-weight: 950;
  height: 36px;
  place-items: center;
  width: 58px;
}

.brand strong,
.nav,
.lang-switch,
.button,
.micro,
.chapter-label,
.status-deck span,
.manifesto article span,
.slot-card span,
.contact-panel span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand strong {
  letter-spacing: 0.08em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav {
  align-items: center;
  color: var(--muted);
  display: flex;
  gap: 24px;
  justify-content: center;
}

.nav a:hover {
  color: var(--paper);
}

.lang-switch {
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, 42px);
  padding: 3px;
}

.lang-switch button {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  min-height: 32px;
}

.lang-switch button.active {
  background: var(--paper);
  color: #08090a;
}

main,
.site-footer {
  position: relative;
  z-index: 2;
}

.hero {
  min-height: calc(100vh - 64px);
  overflow: clip;
  position: relative;
}

.hero-image,
.hero-wash,
.hero-grid {
  inset: 0;
  position: absolute;
}

.hero-image {
  filter: contrast(1.08) saturate(0.9);
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  width: 100%;
}

.hero-wash {
  background:
    linear-gradient(90deg, rgba(4, 5, 6, 1) 0%, rgba(4, 5, 6, 0.92) 31%, rgba(4, 5, 6, 0.36) 70%),
    linear-gradient(0deg, rgba(4, 5, 6, 0.98), transparent 48%);
}

.hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.4), transparent 72%);
  opacity: 0.2;
}

.hero-inner {
  margin: 0 auto;
  max-width: 1220px;
  padding: 118px 24px 210px;
  position: relative;
}

.micro {
  color: var(--red);
  line-height: 1.35;
  margin: 0 0 18px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Impact, Haettenschweiler, "Arial Narrow", sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(70px, 13vw, 180px);
  line-height: 0.78;
  margin: 0 0 28px;
  max-width: 920px;
}

h1 span {
  display: block;
}

h2 {
  font-size: clamp(42px, 7vw, 96px);
  line-height: 0.9;
  margin-bottom: 24px;
}

h3 {
  font-size: 22px;
  line-height: 1.1;
  margin-bottom: 12px;
  text-transform: uppercase;
}

p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.hero-text {
  color: #dbe1e7;
  font-size: clamp(19px, 2.2vw, 26px);
  max-width: 640px;
}

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

.button {
  align-items: center;
  border: 1px solid var(--line);
  display: inline-flex;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
}

.button.primary {
  background: linear-gradient(180deg, #ff5757, var(--red-deep));
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 22px 70px rgba(240, 68, 68, 0.22);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper);
}

.button:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.status-deck {
  backdrop-filter: blur(16px);
  background: rgba(8, 10, 13, 0.76);
  border: 1px solid var(--line);
  bottom: 24px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  left: 50%;
  max-width: 1220px;
  position: absolute;
  transform: translateX(-50%);
  width: calc(100% - 48px);
}

.status-deck div {
  border-right: 1px solid var(--line);
  min-height: 96px;
  padding: 20px;
}

.status-deck div:last-child {
  border-right: 0;
}

.status-deck span,
.slot-card span,
.manifesto article span,
.contact-panel span {
  color: var(--dim);
  display: block;
  margin-bottom: 10px;
}

.status-deck strong {
  display: block;
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.1;
}

.chapter,
.manifesto,
.slots,
.experience,
.contact,
.site-footer {
  margin: 0 auto;
  max-width: 1220px;
  padding: 108px 24px;
}

.chapter {
  display: grid;
  gap: 36px;
  grid-template-columns: 190px 1fr;
}

.chapter-label {
  color: var(--dim);
  padding-top: 12px;
}

.chapter-copy {
  max-width: 900px;
}

.chapter-copy p {
  max-width: 760px;
}

.manifesto {
  overflow: hidden;
  padding-top: 0;
}

.ticker {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  color: rgba(242, 238, 227, 0.16);
  display: flex;
  font-family: Impact, Haettenschweiler, "Arial Narrow", sans-serif;
  font-size: clamp(58px, 10vw, 140px);
  gap: 38px;
  line-height: 0.95;
  margin-bottom: 18px;
  overflow: hidden;
  padding: 20px 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker span {
  animation: drift 26s linear infinite;
}

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

.manifesto article,
.slot-card,
.contact {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.manifesto article {
  min-height: 240px;
  padding: 24px;
}

.section-head {
  max-width: 840px;
}

.slot-cards {
  margin-top: 40px;
}

.slot-card {
  min-height: 470px;
  overflow: hidden;
  padding: 20px;
  position: relative;
}

.slot-card.hot {
  border-color: rgba(240, 68, 68, 0.45);
}

.slot-visual {
  background-color: #090b0e;
  border: 1px solid var(--line);
  height: 210px;
  margin-bottom: 24px;
  overflow: hidden;
  position: relative;
}

.small-screen {
  background:
    linear-gradient(135deg, rgba(240, 68, 68, 0.6), transparent 34%),
    linear-gradient(90deg, transparent 49%, rgba(255, 255, 255, 0.4) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(255, 255, 255, 0.4) 50%, transparent 51%),
    #131820;
}

.pixel-field {
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    radial-gradient(circle at 64% 44%, rgba(240, 68, 68, 0.8), transparent 15%),
    radial-gradient(circle at 30% 72%, rgba(84, 196, 230, 0.74), transparent 18%);
  background-size: 22px 22px, 22px 22px, 100% 100%, 100% 100%;
}

.ticker-line {
  background:
    repeating-linear-gradient(0deg, #10141a 0 28px, #151b23 28px 29px),
    #10141a;
}

.ticker-line::after {
  background: var(--red);
  content: "";
  height: 12px;
  left: -20%;
  position: absolute;
  top: 50%;
  width: 70%;
  box-shadow: 0 0 24px rgba(240, 68, 68, 0.6);
  animation: scan 3s ease-in-out infinite alternate;
}

.experience {
  align-items: center;
  display: grid;
  gap: 70px;
  grid-template-columns: 0.95fr 1.05fr;
}

.frame-stack {
  min-height: 560px;
  position: relative;
}

.frame-card {
  background-image: url("assets/hero-anti-film.png");
  background-size: cover;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  position: absolute;
}

.frame-card.a {
  background-position: 62% 50%;
  height: 360px;
  left: 0;
  top: 18px;
  width: 72%;
}

.frame-card.b {
  background-position: 88% 52%;
  height: 280px;
  right: 0;
  top: 170px;
  width: 62%;
}

.frame-card.c {
  background:
    linear-gradient(135deg, rgba(240, 68, 68, 0.4), rgba(84, 196, 230, 0.18)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 16px),
    #0c1015;
  bottom: 0;
  height: 170px;
  left: 16%;
  width: 66%;
}

.experience-copy ul {
  color: var(--muted);
  display: grid;
  font-size: 16px;
  gap: 14px;
  line-height: 1.55;
  margin: 30px 0 0;
  padding-left: 20px;
}

.experience-copy li::marker {
  color: var(--red);
}

.contact {
  align-items: center;
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr minmax(280px, 420px);
  margin-bottom: 80px;
  padding: 42px;
}

.contact-panel {
  display: grid;
  gap: 12px;
}

.contact-panel span {
  color: var(--dim);
  line-height: 1.5;
  margin: 4px 0 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  padding-bottom: 34px;
  padding-top: 28px;
}

.site-footer strong {
  color: var(--paper);
}

@keyframes drift {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

@keyframes scan {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(110%);
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: 820px;
  }

  .hero-inner {
    padding: 84px 18px 210px;
  }

  .status-deck,
  .chapter,
  .manifesto-grid,
  .slot-cards,
  .experience,
  .contact {
    grid-template-columns: 1fr;
  }

  .status-deck {
    bottom: 18px;
    width: calc(100% - 28px);
  }

  .status-deck div {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    min-height: 78px;
  }

  .status-deck div:last-child {
    border-bottom: 0;
  }

  .chapter,
  .manifesto,
  .slots,
  .experience,
  .contact,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .chapter-label {
    padding-top: 0;
  }

  .frame-stack {
    min-height: 460px;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 58px;
    padding: 0 12px;
  }

  .brand strong {
    display: none;
  }

  .brand span {
    height: 34px;
    width: 54px;
  }

  .lang-switch {
    grid-template-columns: repeat(2, 40px);
  }

  .hero {
    min-height: 780px;
  }

  .hero-wash {
    background:
      linear-gradient(180deg, rgba(4, 5, 6, 0.7), rgba(4, 5, 6, 0.96) 70%),
      linear-gradient(90deg, rgba(4, 5, 6, 0.92), rgba(4, 5, 6, 0.18));
  }

  h1 {
    font-size: clamp(64px, 21vw, 98px);
  }

  h2 {
    font-size: clamp(38px, 13vw, 62px);
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .status-deck {
    position: relative;
    transform: none;
    left: auto;
    bottom: auto;
    margin: -170px auto 0;
  }

  .chapter,
  .manifesto,
  .slots,
  .experience {
    padding-bottom: 76px;
    padding-top: 76px;
  }

  .ticker {
    font-size: 64px;
  }

  .slot-card {
    min-height: auto;
  }

  .frame-stack {
    min-height: 360px;
  }

  .frame-card.a {
    height: 250px;
    width: 82%;
  }

  .frame-card.b {
    height: 210px;
    top: 112px;
    width: 72%;
  }

  .frame-card.c {
    height: 118px;
  }

  .contact {
    margin-left: 14px;
    margin-right: 14px;
    padding: 24px;
  }

  .site-footer {
    display: grid;
    gap: 10px;
  }
}
