@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Source+Serif+4:ital,wght@0,300;0,400;0,600;1,300&display=swap');

:root {
  --red: #ff0000;
  --pink: #ff006e;
  --ink: #1a1a2e;
  --bg: #07060f;
  --line: rgba(255, 0, 110, 0.26);
  --txt: #ece8f7;
  --dim: #a79fbe;
  --r: 28px;
  --serif: "Playfair Display", "Source Serif 4", "Songti SC", "Noto Serif SC", Georgia, serif;
  --body: "Source Serif 4", "Songti SC", "Noto Serif SC", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--txt);
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(900px 520px at 84% -10%, rgba(255, 0, 110, 0.2), transparent 62%),
    radial-gradient(720px 460px at 4% 10%, rgba(255, 0, 0, 0.14), transparent 60%),
    radial-gradient(700px 460px at 50% 108%, rgba(26, 26, 46, 0.95), transparent 72%),
    var(--bg);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: screen;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 3px);
  animation: flicker 7s steps(2) infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 0.48; }
  47% { opacity: 0.64; }
  53% { opacity: 0.38; }
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; }

a { color: inherit; }
img { max-width: 100%; }

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

/* ---------- header ---------- */

.hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 6px 0 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(7, 6, 15, 0.95), rgba(7, 6, 15, 0.62));
  backdrop-filter: blur(12px);
}

.hdr-top {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 6px 0;
  text-decoration: none;
}

.brand-txt {
  font-family: var(--serif);
  font-size: 1.16rem;
  letter-spacing: 0.05em;
  color: #fff;
  text-shadow: 0 0 15px rgba(255, 0, 110, 0.8);
}

.brand-mark { display: block; border-radius: 9px; }

.navd {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  justify-content: flex-end;
}

.burger {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 4px 10px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
}

.burger::-webkit-details-marker { display: none; }
.burger::marker { content: ""; }

.bars {
  width: 22px;
  height: 2px;
  background: var(--pink);
  box-shadow: 0 -7px 0 var(--pink), 0 7px 0 var(--pink);
  transition: box-shadow 0.2s ease;
}

.burger:hover { color: #fff; }

.navd[open] .burger {
  position: fixed;
  top: 12px;
  right: 14px;
  z-index: 340;
  padding: 10px 18px;
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(26, 26, 46, 0.92);
  box-shadow: 0 0 22px -4px rgba(255, 0, 110, 0.9);
}

.ovl {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  margin: 0;
  padding: 88px clamp(20px, 8vw, 130px) 40px;
  list-style: none;
  overflow-y: auto;
  background:
    radial-gradient(680px 480px at 100% 0%, rgba(255, 0, 110, 0.24), transparent 60%),
    rgba(7, 6, 15, 0.965);
  backdrop-filter: blur(14px);
}

.navd[open] .ovl { display: flex; }

.ovl li { list-style: none; }

.ovl a {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 50px;
  padding: 12px 6px;
  text-decoration: none;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 4.6vw, 1.85rem);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.13);
  transition: color 0.2s ease, padding-left 0.2s ease, text-shadow 0.2s ease;
}

.ovl a:hover,
.ovl a:focus-visible {
  color: var(--pink);
  padding-left: 14px;
  text-shadow: 0 0 20px rgba(255, 0, 110, 0.95);
}

.ovl .n {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--pink);
  opacity: 0.85;
}

/* ---------- hero ---------- */

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 18px 30px;
  display: grid;
  gap: 22px;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-areas: "art copy";
  align-items: center;
  min-height: 45vh;
}

.hero-copy { grid-area: copy; text-align: right; }

.kicker {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.28em;
  color: var(--pink);
  text-shadow: 0 0 12px rgba(255, 0, 110, 0.85);
}

.hero h1 {
  position: relative;
  margin: 0 0 14px;
  font-size: clamp(2rem, 5.4vw, 3.3rem);
  line-height: 1.14;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 22px rgba(255, 0, 0, 0.55), 0 0 48px rgba(255, 0, 110, 0.4);
}

.glitch::before,
.glitch::after {
  content: attr(data-txt);
  position: absolute;
  inset: 0;
  text-align: inherit;
  pointer-events: none;
  opacity: 0.6;
}

.glitch::before { color: var(--red); animation: gA 5.2s steps(1) infinite; }
.glitch::after { color: var(--pink); animation: gB 5.2s steps(1) infinite; }

@keyframes gA {
  0%, 90%, 100% { transform: translate(-2px, 0); }
  91% { transform: translate(-7px, -2px) skewX(5deg); }
  94% { transform: translate(3px, 1px); }
}

@keyframes gB {
  0%, 88%, 100% { transform: translate(2px, 0); }
  89% { transform: translate(6px, 2px) skewX(-6deg); }
  96% { transform: translate(-3px, -1px); }
}

.lead {
  margin: 0 0 20px;
  color: var(--dim);
  font-size: 1.02rem;
  line-height: 1.75;
}

.hero-art {
  grid-area: art;
  position: relative;
  height: clamp(190px, 32vh, 300px);
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: -8% -4% -6% -2%;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 0, 110, 0.16) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(180deg, rgba(255, 0, 110, 0.16) 0 1px, transparent 1px 26px);
  mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 100%);
}

.f1, .f2 {
  position: absolute;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(142deg, rgba(255, 0, 0, 0.42), rgba(26, 26, 46, 0.94) 56%, rgba(255, 0, 110, 0.5));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 24px 60px -32px rgba(255, 0, 110, 0.95);
}

.f1 { left: 0; top: 4%; width: 60%; height: 82%; }
.f2 { right: 2%; bottom: 0; width: 52%; height: 66%; transform: rotate(-5deg); }

.hero-img { display: block; width: 100%; height: 100%; object-fit: cover; }

.band {
  max-width: 1180px;
  height: 8px;
  margin: 0 auto 10px;
  border-radius: 2px;
  transform: skewY(-1.1deg);
  background: linear-gradient(90deg, var(--red), var(--pink) 46%, rgba(255, 0, 110, 0) 94%);
  box-shadow: 0 0 22px rgba(255, 0, 110, 0.6);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 22px;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  color: #fff;
  background: linear-gradient(100deg, var(--red), var(--pink));
  box-shadow: 0 0 24px -5px rgba(255, 0, 110, 0.9);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 0 34px 0 rgba(255, 0, 110, 1); filter: hue-rotate(-12deg); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--dim);
  box-shadow: none;
}

.btn-ghost:hover { color: #fff; border-color: var(--pink); box-shadow: 0 0 20px -6px var(--pink); }

.btn-lg { min-height: 50px; padding: 14px 30px; font-size: 0.94rem; }

/* ---------- layout ---------- */

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 18px 60px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(160deg, rgba(26, 26, 46, 0.74), rgba(11, 9, 22, 0.74));
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 52px -36px rgba(255, 0, 110, 0.95);
}

.rail { position: sticky; top: 108px; padding: 20px 18px; }

.rail-h { margin: 0 0 12px; font-size: 1rem; letter-spacing: 0.08em; }
.rail-h span { padding-bottom: 4px; border-bottom: 2px solid var(--pink); }

.rail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }

.rail-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 7px 8px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--dim);
  font-size: 0.95rem;
  transition: color 0.18s ease, background 0.18s ease;
}

.rail-list a:hover { color: #fff; background: rgba(255, 0, 110, 0.16); }

.rail-list .n { font-family: var(--mono); font-size: 0.68rem; color: var(--pink); opacity: 0.75; }

.totop {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--dim);
  font-size: 0.9rem;
}

.totop:hover { color: #fff; border-color: var(--pink); }

/* ---------- content ---------- */

.content { padding: 4px 0 0; }

.content div {
  padding: 10px 0 26px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.09);
}

.content div:last-of-type { border-bottom: 0; }

.content h2 {
  font-size: clamp(1.45rem, 3.4vw, 2.05rem);
  line-height: 1.28;
  margin: 1.3em 0 0.7em;
  color: #fff;
}

.content h2 span {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--pink);
  text-shadow: 0 0 20px rgba(255, 0, 110, 0.7);
}

.content h3 { font-size: 1.2rem; margin: 1.5em 0 0.5em; color: #fff; text-shadow: 0 0 16px rgba(255, 0, 110, 0.5); }

.content p { margin: 0 0 1.08em; font-size: 1.06rem; line-height: 1.88; }

.content a { color: #ff7ba6; text-decoration: underline; text-underline-offset: 3px; }
.content a:hover { color: #fff; text-shadow: 0 0 12px rgba(255, 0, 110, 0.9); }

.content ul, .content ol { margin: 0 0 1.2em; padding-left: 1.25em; }
.content li { margin: 0.45em 0; line-height: 1.8; }

.content blockquote {
  margin: 1.2em 0;
  padding: 14px 18px;
  border-left: 3px solid var(--pink);
  border-radius: 0 var(--r) var(--r) 0;
  background: rgba(255, 0, 110, 0.09);
}

.content blockquote p:last-child { margin-bottom: 0; }

.content strong { color: #fff; }

.content table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 0.98rem; }
.content th, .content td { border: 1px solid rgba(255, 255, 255, 0.13); padding: 10px; text-align: left; }
.content th { background: rgba(255, 0, 110, 0.12); color: #fff; }
.content img { height: auto; border-radius: 18px; }

/* ---------- footer ---------- */

.ftr {
  margin-top: 20px;
  padding: 32px 0 26px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.52), rgba(7, 6, 15, 0.96));
}

.ftr-cta {
  max-width: 1180px;
  margin: 0 auto 26px;
  padding: 24px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ftr-h { margin: 0; font-size: clamp(1.3rem, 3vw, 1.9rem); color: #fff; text-shadow: 0 0 22px rgba(255, 0, 110, 0.65); }
.ftr-h span { padding-bottom: 4px; border-bottom: 3px solid var(--pink); }

.ftr-bar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 22px;
}

.ftr-brand a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  text-decoration: none;
  font-family: var(--serif);
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 0, 110, 0.6);
}

.ftr-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 16px; margin: 0; padding: 0; }

.ftr-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 2px;
  text-decoration: none;
  color: var(--dim);
  font-size: 0.92rem;
}

.ftr-nav a:hover { color: var(--pink); text-shadow: 0 0 14px rgba(255, 0, 110, 0.85); }

.ftr-copy p {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 8px 0;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

/* ---------- motion ---------- */

.rv { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  .glitch::before, .glitch::after { display: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .wrap { grid-template-columns: 1fr; gap: 22px; padding-top: 22px; }
  .rail { position: static; order: 2; }
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "art";
    min-height: 0;
    padding-bottom: 24px;
  }
  .hero-copy { text-align: left; }
  .hero-art { height: 176px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hdr-top { padding: 0 14px; }
  .hero { padding: 18px 14px 20px; }
  .kicker { font-size: 0.7rem; letter-spacing: 0.2em; }
  .wrap { padding: 20px 14px 44px; }
  .content p { font-size: 1.03rem; }
  .ftr-cta { padding: 20px 16px; }
  .ftr-bar { flex-direction: column; align-items: flex-start; gap: 6px; }
  .ftr-copy p { min-height: 0; padding-top: 2px; }
  .ftr-nav ul { gap: 0 14px; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
