
:root {
  --bg-deep: #050509;
  --bg-dark: #0b0b10;
  --text-main: #f5f5f7;
  --text-muted: #b8b8c2;
  --accent-crimson: #ff2b4a;
  --accent-neon-cyan: #46f0ff;
  --accent-neon-magenta: #ff46d8;
  --accent-gold: #f2c14f;
  --accent-ash: #e5e5ea;
}
*,
*::before,
*::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background:
    linear-gradient(135deg, rgba(242,193,79,0.08), rgba(255,43,74,0.05)),
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.03) 0px,
      rgba(255,255,255,0.03) 1px,
      rgba(0,0,0,0.05) 2px,
      rgba(0,0,0,0.05) 3px
    ),
    radial-gradient(circle at 10% 0%, rgba(255,70,216,0.18), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(70,240,255,0.16), transparent 50%),
    var(--bg-deep);
  background-attachment: fixed;
}
a { color: var(--accent-neon-cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(
    to bottom,
    rgba(5,5,9,0.96),
    rgba(5,5,9,0.82),
    transparent
  );
  border-bottom: 1px solid rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
}
.crest {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.crest-symbol {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 2px solid var(--accent-crimson);
  box-shadow:
    0 0 8px rgba(255,43,74,0.8),
    0 0 16px rgba(242,193,79,0.7);
  position: relative;
  overflow: hidden;
}
.crest-symbol::before,
.crest-symbol::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: inherit;
  border: 2px solid var(--accent-gold);
  opacity: 0.4;
}
.crest-symbol::after {
  inset: 30%;
  border-color: var(--accent-neon-cyan);
  opacity: 0.6;
}
.crest-text {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ash);
}
.crest:hover .crest-symbol,
.crest:hover .crest-text {
  animation: crestGlitch 0.22s steps(2, jump-end) 1;
}
@keyframes crestGlitch {
  0% { transform: translate(0,0); text-shadow: none; }
  40% {
    transform: translate(-2px,1px);
    text-shadow: 1px 0 var(--accent-neon-magenta), -1px 0 var(--accent-neon-cyan);
  }
  80% {
    transform: translate(2px,-1px);
    text-shadow: -1px 0 var(--accent-neon-magenta), 1px 0 var(--accent-neon-cyan);
  }
  100% { transform: translate(0,0); text-shadow: none; }
}
.site-nav {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.site-nav a {
  color: var(--accent-ash);
  position: relative;
  padding-bottom: 0.2rem;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--accent-crimson),
    var(--accent-neon-magenta),
    var(--accent-neon-cyan)
  );
  transition: width 0.18s ease-out;
}
.site-nav a:hover::after { width: 100%; }

main { padding-top: 64px; }

.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 2rem 1.5rem 3rem;
}
.hero-glitch-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-static {
  position: absolute;
  inset: -20px;
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='3' stitchTiles='noStitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.24'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
  opacity: 0.45;
  animation: staticShift 6s linear infinite;
}
.hero-noise {
  position: absolute;
  inset: -10px;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0) 0px,
    rgba(0,0,0,0) 1px,
    rgba(0,0,0,0.35) 2px,
    rgba(0,0,0,0.35) 3px
  );
  opacity: 0.2;
  mix-blend-mode: soft-light;
}
.hero-inner {
  position: relative;
  max-width: 720px;
  text-align: center;
  z-index: 5;
  padding: 2rem 1.75rem 2.5rem;
  background: radial-gradient(circle at top, rgba(0,0,0,0.9), rgba(0,0,0,0.5));
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 22px 70px rgba(0,0,0,0.85),
    0 0 0 1px rgba(255,255,255,0.02);
}
.hero-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-ash);
  opacity: 0.7;
  margin-bottom: 0.75rem;
}
.hero-title {
  font-size: clamp(1.9rem, 3.1vw + 1.2rem, 3.4rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
}
.glitch-main {
  position: relative;
  display: inline-block;
}
.glitch-main::before,
.glitch-main::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  opacity: 0.7;
  pointer-events: none;
}
.glitch-main::before {
  color: var(--accent-neon-magenta);
  transform: translate(-2px, -1px);
}
.glitch-main::after {
  color: var(--accent-neon-cyan);
  transform: translate(2px, 1px);
}
.hero-sub {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 1.75rem;
}
.hero-sub strong { color: var(--accent-ash); }
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: background 0.16s ease-out, transform 0.12s ease-out,
    box-shadow 0.16s ease-out, border-color 0.16s ease-out;
}
.btn-primary {
  background: radial-gradient(circle at top left,
    rgba(255,43,74,0.9),
    rgba(255,70,216,0.8)
  );
  border-color: transparent;
  box-shadow: 0 14px 40px rgba(0,0,0,0.8);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 55px rgba(0,0,0,0.9),
    0 0 18px rgba(255,70,216,0.7);
}
.btn-ghost {
  background: rgba(10,10,16,0.7);
  color: var(--accent-ash);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.3);
}
.hero-footnote {
  font-size: 0.75rem;
  color: rgba(229,229,234,0.8);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.85;
}

.page-shell {
  max-width: 980px;
  padding: 4.5rem 1.5rem 3.5rem;
  margin: 0 auto;
}
.page-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-ash);
  opacity: 0.7;
  margin-bottom: 0.4rem;
}
.page-headline {
  font-size: 1.55rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 0.9rem;
}
.page-subtext,
.about-copy {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 640px;
}

.archive-entry {
  margin-top: 1.75rem;
  padding: 1.4rem 1.3rem 1.5rem;
  border-radius: 18px;
  background: radial-gradient(circle at top left,
    rgba(0,0,0,0.98),
    rgba(0,0,0,0.78)
  );
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 20px 55px rgba(0,0,0,0.85);
}
.archive-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  margin-bottom: 0.7rem;
}
.archive-title {
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.archive-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-gold);
}
.trigger-block {
  font-size: 0.86rem;
  margin-bottom: 0.8rem;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  background: rgba(33,19,19,0.9);
  border: 1px solid rgba(255,43,74,0.38);
  color: var(--accent-ash);
}
.trigger-label {
  font-weight: 600;
  color: var(--accent-crimson);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-size: 0.75rem;
  display: block;
  margin-bottom: 0.25rem;
}
.archive-link-row a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-neon-cyan);
}
.archive-link-row a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--accent-neon-magenta),
    var(--accent-neon-cyan)
  );
  transform-origin: left;
  transform: scaleX(0.2);
  opacity: 0.6;
  transition: transform 0.18s ease-out, opacity 0.18s ease-out;
}
.archive-link-row a:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
  margin-top: 1.6rem;
}
.action-card {
  position: relative;
  padding: 1.1rem 1rem 1.25rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.07);
  background: radial-gradient(circle at top left,
    rgba(0,0,0,0.97),
    rgba(0,0,0,0.78)
  );
  box-shadow: 0 16px 48px rgba(0,0,0,0.9);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.12s ease-out,
    box-shadow 0.16s ease-out,
    border-color 0.16s ease-out;
}
.action-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.16);
  box-shadow:
    0 22px 62px rgba(0,0,0,0.95),
    0 0 18px rgba(255,43,74,0.35);
}
.action-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.5rem;
  color: var(--accent-ash);
  opacity: 0.8;
}
.action-title {
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
}
.action-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.action-cta {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-gold);
  opacity: 0.9;
}
.action-crimson { border-color: rgba(255,43,74,0.4); }
.action-neon { border-color: rgba(70,240,255,0.4); }
.action-gold { border-color: rgba(242,193,79,0.4); }
.action-ash { border-color: rgba(229,229,234,0.28); }

.submit-shell {
  max-width: 650px;
  padding: 4.5rem 1.5rem 3.5rem;
  margin: 0 auto;
}
.supportive-copy {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.supportive-copy strong { color: var(--accent-ash); }
.story-form {
  margin-top: 0.75rem;
  padding: 1.3rem 1.3rem 1.5rem;
  border-radius: 18px;
  background: radial-gradient(circle at top,
    rgba(0,0,0,0.9),
    rgba(0,0,0,0.75)
  );
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 55px rgba(0,0,0,0.9);
}
.field { margin-bottom: 1rem; }
label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.35rem;
  color: var(--accent-ash);
}
.field-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
input[type="text"],
textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(3,3,5,0.92);
  color: var(--accent-ash);
  font-size: 0.9rem;
  resize: vertical;
}
input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-neon-cyan);
  box-shadow: 0 0 0 1px rgba(70,240,255,0.5);
}
.toggle-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.4rem 0 0.7rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.submit-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.1rem;
}
.btn-submit {
  border-radius: 999px;
  padding: 0.65rem 1.6rem;
  background: radial-gradient(circle at top left,
    rgba(255,43,74,0.92),
    rgba(255,70,216,0.78)
  );
  border: none;
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    0 16px 50px rgba(0,0,0,0.95),
    0 0 16px rgba(255,70,216,0.6);
  transition: transform 0.12s ease-out, box-shadow 0.16s ease-out;
}
.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow:
    0 20px 62px rgba(0,0,0,0.98),
    0 0 20px rgba(255,70,216,0.75);
}

.site-footer {
  padding: 1.7rem 1.5rem 2.4rem;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(229,229,234,0.8);
}
.site-footer span {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}

@keyframes staticShift {
  0% { transform: translate(0,0); }
  50% { transform: translate(-10px, 6px); }
  100% { transform: translate(6px, -4px); }
}

@media (max-width: 768px) {
  .crest-text { display: none; }
  .site-nav {
    gap: 0.4rem;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
  }
  .page-shell,
  .submit-shell { padding-top: 4rem; }
}
@media (max-width: 480px) {
  .site-nav { display: none; }
  .hero-inner { padding-inline: 1.1rem; }
}
