/* deadhost.exe — no framework, no build step */

:root {
  --ink: #050505;
  --ink-2: #0d0d0e;
  --bone: #ecebe6;
  --dim: #8d8d92;
  --red: #af3838;
  --cyan: #35b2d8;
  --line: rgba(236, 235, 230, 0.14);
  --display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--bone);
  font: 400 1.0625rem/1.65 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--red); color: #fff; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--bone); color: var(--ink); padding: 8px 14px; font-weight: 600;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

/* ---------- atmosphere ---------- */
.fx { position: fixed; inset: 0; pointer-events: none; }
.fx-grain {
  z-index: 0;
  background: url("/assets/grain.webp") center / cover no-repeat;
  opacity: 0.55;
}
.fx-static {
  z-index: 1;
  width: 100%; height: 100%;
  opacity: 0.075;
  image-rendering: pixelated;
  mix-blend-mode: screen;
}
.fx-scan {
  z-index: 2;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,0.28) 2px 3px);
}
.fx-roll {
  z-index: 2;
  height: 22vh;
  background: linear-gradient(to bottom, transparent, rgba(236,235,230,0.035) 50%, transparent);
  animation: roll 9s linear infinite;
}
.fx-vignette {
  z-index: 3;
  background: radial-gradient(ellipse at 50% 40%, transparent 45%, rgba(0,0,0,0.85) 100%);
}
@keyframes roll { from { transform: translateY(-25vh); } to { transform: translateY(110vh); } }

header, main, footer { position: relative; z-index: 4; }

/* ---------- header ---------- */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  background: linear-gradient(to bottom, rgba(5,5,5,0.92), rgba(5,5,5,0.6));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.top-mark img { width: 58px; height: auto; }
.top nav { display: flex; gap: clamp(14px, 3vw, 32px); }
.top nav a {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--dim);
  transition: color 0.15s;
}
.top nav a:hover { color: var(--bone); text-shadow: -1px 0 var(--red), 1px 0 var(--cyan); }

/* ---------- shared ---------- */
section { padding: clamp(72px, 12vw, 140px) var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.section-title, .show-title, .btn, .platform-name, .platform-kind, .show-badge, .socials a {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 400;
}
.section-title {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 0 0 28px;
  text-shadow: -2px 0 var(--red), 2px 0 var(--cyan);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  border: 1px solid var(--bone);
  color: var(--bone);
  text-decoration: none;
  letter-spacing: 0.08em;
  font-size: 1rem;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s, color 0.12s;
}
.btn:hover { box-shadow: -3px 0 0 var(--red), 3px 0 0 var(--cyan); transform: translateY(-1px); }
.btn-solid { background: var(--bone); color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  min-height: calc(100svh - 70px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding-top: 40px; padding-bottom: 60px;
}
.term {
  font: 0.85rem/1.4 var(--mono);
  color: var(--dim);
  letter-spacing: 0.04em;
  margin: 0 0 28px;
  min-height: 1.4em;
}
.term-caret { color: var(--red); }
.cursor { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-logo { margin: 0; width: min(100%, 820px); }
.hero-logo img { width: 100%; animation: jitter 7s steps(1) infinite; }
@keyframes jitter {
  0%, 91%, 100% { transform: none; filter: none; clip-path: none; }
  92% { transform: translate(-4px, 1px) skewX(-4deg); filter: drop-shadow(6px 0 0 rgba(53,178,216,0.7)); }
  93% { transform: translate(5px, 0); clip-path: inset(30% 0 45% 0); }
  94% { transform: translate(-2px, -1px); filter: drop-shadow(-6px 0 0 rgba(175,56,56,0.8)); clip-path: none; }
  95% { transform: none; filter: none; }
}
.hero-tag {
  margin: 28px 0 36px;
  font: 0.95rem/1.4 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- show ---------- */
.show {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(175,56,56,0.06), transparent 40%, rgba(53,178,216,0.05));
  max-width: none;
  padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2));
  padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2));
}
.show-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.9rem; letter-spacing: 0.14em;
  color: var(--bone);
  border: 1px solid var(--red);
  padding: 6px 14px;
  margin-bottom: 26px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }

.show-title {
  font-size: clamp(3rem, 11vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: 0.005em;
  margin: 0 0 30px;
  max-width: 11ch;
}
.show-lede { max-width: 58ch; color: #c9c8c3; font-size: 1.1rem; margin: 0 0 48px; }

/* glitch text: two offset copies clipped in bands */
.glitch { position: relative; text-shadow: -3px 0 var(--red), 3px 0 var(--cyan); }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  background: var(--ink);
  overflow: hidden;
  clip-path: inset(0 0 100% 0);
}
.glitch::before { text-shadow: -4px 0 var(--red); animation: slice 5.5s steps(1) infinite; }
.glitch::after  { text-shadow: 4px 0 var(--cyan); animation: slice 5.5s steps(1) 0.35s infinite reverse; }
@keyframes slice {
  0%, 88%, 100% { clip-path: inset(0 0 100% 0); transform: none; }
  89% { clip-path: inset(12% 0 70% 0); transform: translateX(-6px); }
  90% { clip-path: inset(55% 0 28% 0); transform: translateX(7px); }
  91% { clip-path: inset(80% 0 4% 0);  transform: translateX(-3px); }
  92% { clip-path: inset(30% 0 52% 0); transform: translateX(5px); }
}

.platforms { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.platform {
  position: relative;
  display: grid; grid-template-columns: 1fr auto; align-items: end;
  gap: 4px 12px;
  min-height: 132px;
  padding: 20px 22px;
  text-decoration: none;
  background: rgba(13,13,14,0.82);
  border: 1px solid var(--line);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.platform-kind { grid-column: 1 / -1; align-self: start; font-size: 0.8rem; letter-spacing: 0.2em; color: var(--dim); }
.platform-name { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1; }
.platform-go { font-size: 1.4rem; color: var(--dim); transition: transform 0.15s, color 0.15s; }
.platform:hover { border-color: var(--bone); transform: translateY(-2px); box-shadow: -4px 4px 0 var(--red), 4px -4px 0 var(--cyan); }
.platform:hover .platform-go { color: var(--bone); transform: translate(2px, -2px); }

.platform.is-soon { color: var(--dim); border-style: dashed; }
.platform.is-soon:hover { transform: none; box-shadow: none; border-color: var(--line); }
.platform.is-soon .platform-go { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; border: 1px solid var(--line); padding: 3px 8px; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-mark img { width: 100%; max-width: 420px; opacity: 0.92; animation: flicker 6s infinite; }
@keyframes flicker { 0%, 96%, 100% { opacity: 0.92; } 97% { opacity: 0.3; } 98% { opacity: 0.8; } 99% { opacity: 0.45; } }
.about-body p { max-width: 58ch; color: #c9c8c3; margin: 0 0 1.1em; }

/* ---------- links ---------- */
.links { border-top: 1px solid var(--line); }
.socials { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.socials a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; padding: 0 22px;
  font-size: 1.35rem; letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(13,13,14,0.82);
  transition: border-color 0.15s, color 0.15s, text-shadow 0.15s;
}
.socials a::after { content: "↗"; font-family: var(--body); font-size: 1.1rem; color: var(--dim); }
.socials a:hover { border-color: var(--bone); text-shadow: -2px 0 var(--red), 2px 0 var(--cyan); }

.contact { margin: 28px 0 0; font: 0.9rem/1.5 var(--mono); color: var(--dim); letter-spacing: 0.04em; overflow-wrap: anywhere; }
.contact a { color: var(--bone); text-decoration-color: var(--red); text-underline-offset: 3px; }
.contact a:hover { text-shadow: -1px 0 var(--red), 1px 0 var(--cyan); }

/* ---------- footer ---------- */
.foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 28px var(--gutter) 36px;
  border-top: 1px solid var(--line);
  font: 0.8rem/1.4 var(--mono);
  color: var(--dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.foot p { margin: 0; }
.foot-sig::before { content: "■ "; color: var(--red); }

/* ---------- 404 ---------- */
.lost { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 22px; }
.lost h1 { font-family: var(--display); font-weight: 400; font-size: clamp(5rem, 22vw, 12rem); line-height: 0.9; margin: 0; }
.lost p { font-family: var(--mono); color: var(--dim); letter-spacing: 0.12em; text-transform: uppercase; margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .platforms { grid-template-columns: 1fr; }
  .platform { min-height: 96px; }
  .about { grid-template-columns: 1fr; }
  .about-mark img { max-width: 260px; }
}
@media (max-width: 420px) {
  .top nav a { font-size: 0.85rem; }
  .top-mark img { width: 48px; }
  .socials { grid-template-columns: 1fr; }
}

/* ---------- respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fx-roll { display: none; }
}
