:root {
  --paper: #e6edf2;
  --paper-2: #d5e0e8;
  --paper-3: #f3f7fa;
  --ink: #0d1b24;
  --ink-soft: #3d5563;
  --rust: #1563ff;
  --rust-deep: #0b3fd0;
  --pine: #06141c;
  --moss: #1a6b62;
  --ochre: #3ad7c0;
  --line: rgba(13, 27, 36, 0.12);
  --rail: 0px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 480px at 80% -10%, rgba(21, 99, 255, 0.16), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(58, 215, 192, 0.12), transparent 50%),
    var(--paper);
  color: var(--ink);
  font-family: Literata, "Iowan Old Style", Georgia, serif;
  font-size: 18px;
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(13, 27, 36, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 27, 36, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.km-rail {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 34px;
  z-index: 50;
  background: var(--pine);
  color: var(--ochre);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.km-rail span {
  display: inline-block;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-left: 100%;
  animation: crawl 28s linear infinite;
}
.km-rail::after { display: none; }
@keyframes crawl {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
}

.site-head {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 32px;
  border-bottom: 0;
  background: transparent;
}
.brand {
  text-decoration: none;
  color: inherit;
  line-height: 0.9;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--rust);
  box-shadow: 0 0 0 6px rgba(21, 99, 255, 0.18);
  flex-shrink: 0;
}
.brand-mark {
  font-family: Syne, sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.04em;
  display: block;
}
.brand-mark em {
  font-style: normal;
  color: var(--rust);
}
.brand-sub {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 2px;
  color: var(--ink-soft);
}
.nav-main {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  justify-content: flex-end;
  font-family: Syne, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
}
.nav-main a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: none;
  padding: 8px 12px;
  border-radius: 999px;
}
.nav-main a:hover,
.nav-main a.is-on {
  background: var(--ink);
  color: #fff;
  border-bottom-color: transparent;
}
.head-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-align: right;
  line-height: 1.45;
  color: var(--ink-soft);
}
.head-meta a { color: inherit; }

.burger {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
}
.burger i,
.burger i::before,
.burger i::after {
  display: block;
  width: 16px;
  height: 2px;
  background: #fff;
  margin: 0 auto;
  position: relative;
  border-radius: 2px;
}
.burger i::before,
.burger i::after {
  content: "";
  position: absolute;
  left: 0;
}
.burger i::before { top: -6px; }
.burger i::after { top: 6px; }

.nav-sheet {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--rust);
  color: #fff;
  z-index: 60;
  padding: 36px 32px;
  overflow: auto;
}
.nav-sheet.open { display: block; }
.nav-sheet a {
  display: block;
  font-family: Syne, sans-serif;
  font-size: clamp(36px, 8vw, 64px);
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  line-height: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  padding: 10px 0;
  letter-spacing: -0.04em;
}
.nav-sheet a span {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  margin-right: 14px;
  color: var(--ochre);
}

.kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
}
.display {
  font-family: Syne, sans-serif;
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.92;
  text-transform: none;
}
.display i { font-style: italic; color: var(--rust); font-weight: 800; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Syne, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  text-decoration: none;
  color: #fff;
  background: var(--rust);
  border: 0;
  padding: 14px 22px;
  border-radius: 999px;
  clip-path: none;
}
.btn:hover { background: var(--rust-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }

.frame {
  position: relative;
  overflow: hidden;
  background: #0a1820;
  border-radius: 28px;
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.04);
  transform: scale(1.02);
}
.frame::after {
  content: "";
  position: absolute;
  inset: auto auto 14px 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-left: 3px solid var(--ochre);
  border-bottom: 3px solid var(--ochre);
  pointer-events: none;
}

.cap {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 8px;
  color: var(--ink-soft);
}

.ticket {
  background: #fff;
  border: 0;
  padding: 22px 24px;
  position: relative;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(13, 27, 36, 0.08);
}
.ticket::after { display: none; }
.ticket::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0 4px 4px 0;
  background: var(--rust);
}

.log {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  font-size: 16px;
}
.log th,
.log td {
  text-align: left;
  padding: 16px 14px;
  border-bottom: 0;
  vertical-align: top;
  background: #fff;
}
.log th {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  background: transparent;
  padding-bottom: 4px;
}
.log td:first-child { border-radius: 16px 0 0 16px; }
.log td:last-child { border-radius: 0 16px 16px 0; }
.log a { color: var(--rust); font-weight: 600; }

.stamp {
  display: inline-block;
  border: 0;
  color: var(--pine);
  background: var(--ochre);
  font-family: Syne, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  padding: 8px 12px;
  transform: none;
  border-radius: 999px;
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

.site-foot {
  margin-top: 80px;
  background: var(--pine);
  color: #d7e6ee;
  padding: 56px 32px 28px;
  position: relative;
  z-index: 1;
  border-radius: 40px 40px 0 0;
}
.site-foot a { color: var(--ochre); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  max-width: 1220px;
  margin: 0 auto;
}
.foot-brand {
  font-family: Syne, sans-serif;
  font-size: 40px;
  font-weight: 800;
  line-height: 0.9;
  text-transform: none;
  letter-spacing: -0.05em;
  color: #fff;
}
.foot-col h4 {
  font-family: Syne, sans-serif;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  margin: 0 0 12px;
  color: #fff;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin: 0 0 8px; }
.foot-bottom {
  max-width: 1220px;
  margin: 36px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie {
  position: fixed;
  left: 18px;
  right: auto;
  bottom: 18px;
  width: min(420px, calc(100vw - 36px));
  z-index: 9999;
  background: var(--pine);
  color: #e8f1f6;
  border: 0;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(6, 20, 28, 0.35);
  padding: 22px 22px 18px;
  display: none !important;
  pointer-events: auto;
}
.cookie.is-open {
  display: block !important;
}
.cookie h3 {
  font-family: Syne, sans-serif;
  font-size: 28px;
  margin: 0 0 8px;
  text-transform: none;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: #fff;
}
.cookie p { margin: 0 0 14px; font-size: 15px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie .btn { padding: 10px 14px; font-size: 13px; cursor: pointer; }
.cookie .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.cookie .btn-ghost:hover { background: #fff; color: var(--pine); }
.cookie-panel { display: none; margin: 10px 0 14px; font-size: 15px; }
.cookie-panel.open { display: block; }
.cookie-panel label { display: flex; gap: 8px; align-items: center; margin: 6px 0; }

.legal h1 { margin: 0 0 12px; }
.legal h2 {
  font-family: Syne, sans-serif;
  text-transform: none;
  font-size: 26px;
  letter-spacing: -0.04em;
  margin: 32px 0 10px;
}
.legal p, .legal li { font-size: 17px; }
.legal ul { padding-left: 18px; }
.legal a { color: var(--rust); }

.quote {
  font-family: Syne, sans-serif;
  font-size: 26px;
  line-height: 1.25;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.03em;
  border-left: 0;
  padding-left: 0;
  margin: 28px 0;
  color: var(--rust);
}

.num {
  font-family: Syne, sans-serif;
  font-size: 56px;
  line-height: 0.8;
  color: var(--rust);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.hero-stage {
  position: relative;
  z-index: 1;
  margin: 0 18px 28px;
  border-radius: 36px;
  overflow: hidden;
  min-height: 88vh;
  background: #06141c;
}
.hero-stage img {
  width: 100%;
  height: 88vh;
  min-height: 620px;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.08);
  display: block;
}
.hero-stage .hero-copy {
  position: absolute;
  inset: auto 0 0 0;
  padding: 48px 40px 40px;
  background: linear-gradient(transparent, rgba(6, 20, 28, 0.82) 45%);
  color: #fff;
}
.hero-stage .kicker { color: var(--ochre); }
.hero-stage .display { color: #fff; max-width: 16ch; }
.hero-stage .display i { color: var(--ochre); }

@media (max-width: 980px) {
  .site-head { grid-template-columns: 1fr auto; padding: 14px 18px; }
  .nav-main, .head-meta { display: none; }
  .burger { display: inline-flex; align-items: center; justify-content: center; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-stage { margin: 0 12px 20px; border-radius: 24px; }
  .hero-stage .hero-copy { padding: 28px 20px 24px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-foot { padding: 36px 16px 20px; border-radius: 28px 28px 0 0; }
  .foot-grid { grid-template-columns: 1fr; }
}
