:root {
  --ink: #080909;
  --ink-soft: #101111;
  --paper: #e8e2d5;
  --muted: #948f84;
  --line: rgba(232, 226, 213, .16);
  --rust: #b64332;
  --rust-bright: #df5541;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--sans);
  letter-spacing: .01em;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 65% 0%, rgba(96, 35, 27, .13), transparent 34%), linear-gradient(90deg, transparent 49.8%, rgba(255,255,255,.015) 50%, transparent 50.2%);
  z-index: -1;
}

.grain {
  position: fixed;
  inset: -60%;
  z-index: 50;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(2) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0); } 25% { transform: translate(3%,-2%); } 50% { transform: translate(-2%,3%); } 75% { transform: translate(2%,2%); } }

a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .8rem 1rem; background: var(--paper); color: var(--ink); z-index: 100; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 4vw;
  z-index: 10;
}
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; font-size: .78rem; letter-spacing: .2em; font-weight: 700; }
.brand-mark { width: 25px; height: 25px; border: 1px solid var(--rust); border-radius: 50%; position: relative; display: inline-block; }
.brand-mark::after { content: ""; position: absolute; left: 50%; top: -4px; width: 1px; height: 31px; background: var(--rust); transform: rotate(42deg); }
.header-actions { display: flex; align-items: center; gap: 2rem; }
.sound-toggle, .language-switch button, footer button { border: 0; background: none; cursor: pointer; }
.sound-toggle { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; }
.sound-bars { display: flex; align-items: center; gap: 2px; height: 12px; }
.sound-bars i { display: block; width: 1px; height: 5px; background: currentColor; }
.sound-toggle.active .sound-bars i { animation: bars .8s ease-in-out infinite alternate; }
.sound-toggle.active .sound-bars i:nth-child(2) { animation-delay: -.5s; }
.sound-toggle.active .sound-bars i:nth-child(3) { animation-delay: -.25s; }
@keyframes bars { to { height: 12px; } }
.language-switch { display: flex; gap: .45rem; color: #5e5c56; font-size: .74rem; letter-spacing: .14em; }
.language-switch button { padding: .3rem 0; }
.language-switch button.active { color: var(--paper); border-bottom: 1px solid var(--rust); }

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 6vw;
  padding: 9rem 8vw 5rem;
  position: relative;
}
.hero-copy { max-width: 760px; }
.eyebrow { color: var(--rust-bright); font-size: .68rem; text-transform: uppercase; letter-spacing: .28em; font-weight: 700; margin: 0 0 1.6rem; }
.pulse { display: inline-block; width: 5px; height: 5px; margin-left: .5rem; background: var(--rust-bright); border-radius: 50%; box-shadow: 0 0 0 rgba(223,85,65,.4); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(223,85,65,0); } 100% { box-shadow: 0 0 0 0 rgba(223,85,65,0); } }
h1, h2, h3, p { overflow-wrap: break-word; }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(3.6rem, 6.6vw, 7.8rem); line-height: .9; letter-spacing: -.055em; margin: 0; max-width: 900px; }
.hero-lead { max-width: 590px; margin: 2rem 0 0; color: #aaa599; font-family: var(--serif); font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.6; }
.hero-actions { display: flex; align-items: center; gap: 2rem; margin-top: 2.5rem; }
.button { min-height: 54px; padding: 0 1.6rem; display: inline-flex; align-items: center; justify-content: center; gap: 3rem; border: 1px solid var(--rust); text-decoration: none; text-transform: uppercase; letter-spacing: .15em; font-size: .69rem; font-weight: 700; cursor: pointer; transition: .25s ease; }
.button-primary { background: var(--rust); color: white; }
.button-primary:hover { background: var(--rust-bright); border-color: var(--rust-bright); transform: translateY(-2px); }
.text-link { color: var(--muted); font-size: .72rem; letter-spacing: .11em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid #4a4945; padding-bottom: .4rem; }

.signal { justify-self: end; width: min(100%, 440px); transform: rotate(1.4deg); }
.signal-frame { position: relative; aspect-ratio: .82; overflow: hidden; border: 1px solid rgba(232,226,213,.22); background: #050606; box-shadow: 0 2rem 7rem rgba(0,0,0,.65); filter: sepia(.08) contrast(1.08); }
.signal-frame::before { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(ellipse at center, transparent 0 5px, rgba(255,255,255,.015) 6px 7px); animation: signalShift 4s linear infinite; }
.apparition { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; filter: grayscale(.35) contrast(1.12) brightness(1.12); animation: apparitionDrift 9s ease-in-out infinite; }
.signal-glow { position: absolute; width: 50%; height: 55%; left: 18%; top: 16%; background: rgba(206,211,192,.11); filter: blur(28px); border-radius: 50%; animation: breathe 5s ease-in-out infinite; }
.figure { position: absolute; width: 28%; height: 49%; left: 35%; top: 28%; background: linear-gradient(#0c0d0c, #030303); border-radius: 44% 44% 15% 15%; filter: blur(4px); opacity: .88; animation: figure 8s ease-in-out infinite; }
.figure::before { content: ""; position: absolute; width: 55%; aspect-ratio: .8; left: 23%; top: -25%; background: #080908; border-radius: 50% 50% 42% 42%; }
.scanlines { position: absolute; inset: 0; opacity: .24; background: repeating-linear-gradient(transparent 0 3px, rgba(0,0,0,.85) 4px 5px); animation: scan .25s linear infinite; }
.signal-meta { position: absolute; top: 1rem; left: 1rem; right: 1rem; display: flex; justify-content: space-between; font: .6rem monospace; letter-spacing: .1em; }
.signal-meta i { display: inline-block; width: 5px; height: 5px; background: var(--rust-bright); border-radius: 50%; }
.timestamp { position: absolute; right: 1rem; bottom: 1rem; font: .65rem monospace; }
.signal > p { text-align: right; color: #595b56; text-transform: uppercase; font-size: .58rem; letter-spacing: .18em; }
@keyframes breathe { 50% { opacity: .45; transform: scale(1.2); } }
@keyframes apparitionDrift { 0%,100% { transform: scale(1.03) translate(0,0); opacity: .88; } 47% { transform: scale(1.065) translate(-.5%,.35%); opacity: .96; } 49% { transform: scale(1.065) translate(.7%,.1%); } }
@keyframes figure { 50% { transform: translateX(4px) scale(1.015); filter: blur(6px); } }
@keyframes scan { to { transform: translateY(5px); } }
@keyframes signalShift { 35% { transform: translateX(0); } 36% { transform: translateX(8px); } 37% { transform: translateX(-5px); } 38% { transform: translateX(0); } }
.scroll-cue { position: absolute; bottom: 2rem; left: 4vw; height: 65px; width: 1px; background: var(--line); overflow: hidden; }
.scroll-cue span { position: absolute; width: 100%; height: 40%; background: var(--rust); animation: scroll 2s infinite; }
@keyframes scroll { from { transform: translateY(-120%); } to { transform: translateY(280%); } }

.section { position: relative; border-top: 1px solid var(--line); padding: 8rem 8vw; }
.section-number { position: absolute; left: 2vw; top: 8.5rem; color: #494945; font: .62rem monospace; writing-mode: vertical-rl; }
h2 { font-family: var(--serif); font-size: clamp(2.8rem, 5.2vw, 6.5rem); font-weight: 400; line-height: .98; letter-spacing: -.04em; margin: 0; }
.manifesto { min-height: 78vh; display: flex; align-items: center; }
.manifesto-content { max-width: 1100px; margin: auto; }
.manifesto h2 { max-width: 920px; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; margin: 4rem 0 0 20%; }
.two-columns p { color: var(--muted); font-family: var(--serif); line-height: 1.75; font-size: 1.05rem; margin: 0; }

.kinds-heading { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: start; }
.cards { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 5rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story-card { min-height: 370px; padding: 1.6rem; border-right: 1px solid var(--line); position: relative; transition: .3s ease; }
.story-card:last-child { border-right: 0; }
.story-card:hover { background: #111211; transform: translateY(-5px); }
.card-index { color: #56564f; font: .62rem monospace; }
.card-symbol { height: 80px; width: 80px; margin: 5rem auto 4rem; position: relative; opacity: .6; transition: .3s; }
.story-card:hover .card-symbol { opacity: 1; }
.eye { height: 42px; margin-top: 6.2rem; border: 1px solid var(--muted); border-radius: 100% 0 100% 0; transform: rotate(45deg); }
.eye::after { content: ""; position: absolute; width: 18px; height: 18px; border: 1px solid var(--rust); border-radius: 50%; left: 29px; top: 11px; }
.moon { width: 58px; height: 58px; border: 1px solid var(--muted); border-radius: 50%; box-shadow: inset 15px 2px 0 var(--ink-soft); }
.flame { width: 45px; height: 70px; border: 1px solid var(--muted); border-radius: 65% 30% 60% 35%; transform: rotate(45deg); }
.flame::after { content: ""; position: absolute; width: 18px; height: 28px; bottom: 8px; right: 8px; border: 1px solid var(--rust); border-radius: 65% 30% 60% 35%; }
.key { width: 35px; height: 35px; border: 1px solid var(--muted); border-radius: 50%; margin-top: 5.8rem; }
.key::after { content: ""; position: absolute; width: 1px; height: 70px; top: 34px; left: 17px; background: var(--muted); box-shadow: 8px 53px 0 0 var(--muted); }
.story-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; margin: 0 0 1rem; }
.story-card p { color: #7e7b72; font-family: var(--serif); line-height: 1.55; font-size: .95rem; }

.public-archive { background: #0c0d0d; }
.archive-heading { display: grid; grid-template-columns: 1.5fr .7fr; gap: 8vw; align-items: end; }
.archive-heading > p { color: var(--muted); font-family: var(--serif); font-size: 1.03rem; line-height: 1.7; margin: 0 0 .5rem; }
.archive-toolbar { display: flex; justify-content: space-between; margin-top: 5rem; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #66665f; font-size: .65rem; text-transform: uppercase; letter-spacing: .13em; }
.archive-toolbar b { color: var(--rust-bright); }
.archive-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); margin-top: 1px; }
.archive-entry { min-height: 390px; padding: 2rem; color: inherit; background: var(--ink-soft); border: 0; text-align: left; cursor: pointer; position: relative; transition: .3s ease; }
.archive-entry:hover { background: #161717; transform: translateY(-4px); z-index: 1; }
.archive-entry-top { display: flex; justify-content: space-between; color: #5f5f59; font: .62rem monospace; text-transform: uppercase; letter-spacing: .1em; }
.demo-badge { color: var(--rust-bright); }
.archive-entry h3 { font-family: var(--serif); font-size: 2rem; font-weight: 400; line-height: 1.05; margin: 6rem 0 1.3rem; max-width: 90%; }
.archive-entry p { color: #88847a; font-family: var(--serif); font-size: .95rem; line-height: 1.6; }
.archive-entry-bottom { position: absolute; left: 2rem; right: 2rem; bottom: 1.7rem; display: flex; justify-content: space-between; padding-top: 1rem; border-top: 1px solid var(--line); color: #696861; font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; }
.archive-empty { padding: 5rem 1rem; text-align: center; border-bottom: 1px solid var(--line); color: #696861; font-family: var(--serif); }
.archive-empty > span { font-size: 2rem; color: var(--rust); }

.submission { display: grid; grid-template-columns: .8fr 1.2fr; gap: 9vw; align-items: start; background: #0a0b0b; }
.form-intro { position: sticky; top: 4rem; }
.form-intro > p:not(.eyebrow) { color: var(--muted); font-family: var(--serif); font-size: 1.05rem; line-height: 1.7; max-width: 450px; }
.confidential { display: flex; gap: 1rem; align-items: center; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: #858177; }
.confidential > span { color: var(--rust); font-size: 1.7rem; }
.confidential p { font-size: .7rem; line-height: 1.6; text-transform: uppercase; letter-spacing: .1em; }
.story-form { padding: 3.5rem; border: 1px solid var(--line); background: rgba(255,255,255,.015); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.field { display: block; position: relative; margin-bottom: 2rem; }
.field > span:first-child { display: block; color: #9f9b91; font-size: .68rem; text-transform: uppercase; letter-spacing: .13em; margin-bottom: .65rem; }
.field em { color: #595851; text-transform: lowercase; font-style: normal; }
input, select, textarea { width: 100%; color: var(--paper); background: #0a0b0b; border: 0; border-bottom: 1px solid #363733; border-radius: 0; padding: .85rem 0; outline: none; transition: border-color .25s; }
select { color-scheme: dark; }
textarea { border: 1px solid #363733; padding: 1rem; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { border-color: var(--rust); }
::placeholder { color: #555650; }
.counter { display: block; text-align: right; color: #56564f; font: .62rem monospace; margin-top: .5rem; }
.check-field { display: grid; grid-template-columns: 18px 1fr; gap: .8rem; align-items: start; color: #77756e; font-family: var(--serif); font-size: .83rem; line-height: 1.5; cursor: pointer; }
.optional-check { margin-top: 1.2rem; }
.check-field input { opacity: 0; position: absolute; width: 1px; }
.custom-check { width: 18px; height: 18px; border: 1px solid #494a45; position: relative; }
.check-field input:checked + .custom-check { background: var(--rust); border-color: var(--rust); }
.check-field input:checked + .custom-check::after { content: "✓"; position: absolute; color: white; left: 3px; top: -2px; }
.submit-button { margin-top: 2rem; width: 100%; justify-content: space-between; border: 0; }
.submit-button:disabled { opacity: .55; cursor: wait; transform: none; }
.form-note { text-align: center; color: #65645f; font-size: .72rem; margin: 1.4rem 0 0; }
.form-note a { color: #9c988e; }
.error { display: none; color: var(--rust-bright); font-size: .68rem; margin-top: .5rem; }
.field.invalid .error, .permission-error.visible { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--rust-bright); }
.form-status { color: #c7c1b6; font-family: var(--serif); text-align: center; margin-top: 1rem; line-height: 1.5; }
.form-status.success { color: #a9c5a5; }
.form-status.failure { color: var(--rust-bright); }
.evidence-box { display: grid; grid-template-columns: 44px 1fr; gap: 1.2rem; padding: 1.4rem; margin: .5rem 0 1.7rem; border: 1px solid rgba(182,67,50,.45); background: rgba(182,67,50,.05); }
.evidence-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--rust); border-radius: 50%; color: var(--rust-bright); font-size: 1.3rem; }
.evidence-box strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1rem; }
.evidence-box p { color: #77756e; font-size: .76rem; line-height: 1.5; margin: .45rem 0; }
.evidence-box a { color: var(--paper); font-size: .75rem; }
.hidden-field { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.file-picker { display: inline-flex; align-items: center; margin-top: .35rem; padding: .7rem 1rem; border: 1px solid var(--rust); color: var(--paper); font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; cursor: pointer; transition: .2s ease; }
.file-picker:hover { background: var(--rust); }
.file-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-help { display: block; margin-top: .65rem; color: #66645f; font-size: .68rem; }
.file-error.visible { display: block; }

footer { min-height: 240px; padding: 4rem 4vw 2rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; align-content: space-between; gap: 3rem; color: #66645e; }
.footer-brand { color: var(--paper); }
footer > p { text-align: right; font-family: var(--serif); font-style: italic; }
.footer-meta { grid-column: 1/-1; display: flex; gap: 2rem; border-top: 1px solid var(--line); padding-top: 1.5rem; font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; }
.footer-meta span:first-child { margin-right: auto; }
.footer-meta a, footer button { color: inherit; text-transform: inherit; letter-spacing: inherit; font-size: inherit; text-decoration: none; padding: 0; }

dialog { width: min(90%, 560px); color: var(--paper); background: #111211; border: 1px solid #383934; padding: 3rem; box-shadow: 0 2rem 8rem #000; }
dialog::backdrop { background: rgba(0,0,0,.8); backdrop-filter: blur(5px); }
dialog h2 { font-size: 2.4rem; }
dialog p:last-child { color: var(--muted); font-family: var(--serif); line-height: 1.7; }
.dialog-close { position: absolute; right: 1rem; top: .8rem; border: 0; background: none; color: var(--muted); font-size: 1.8rem; cursor: pointer; }
.story-dialog { width: min(92%, 760px); max-height: 88vh; }
.story-dialog h2 { font-size: clamp(2.4rem, 5vw, 4.8rem); margin-bottom: 1.2rem; }
.story-dialog-meta { color: var(--rust-bright); text-transform: uppercase; letter-spacing: .12em; font-size: .67rem; }
.story-dialog-body { color: #aaa69c; font-family: var(--serif); font-size: 1.05rem; line-height: 1.8; white-space: pre-line; }
.story-dialog-demo { padding-top: 1.2rem; margin-top: 2rem; border-top: 1px solid var(--line); color: #66645f !important; font-size: .72rem; }

.reveal { opacity: 0; transform: translateY(25px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .site-header { padding: 1.4rem; }
  .sound-toggle span:last-child { display: none; }
  .hero { grid-template-columns: 1fr; padding: 8rem 1.4rem 5rem; }
  .hero-copy { padding-top: 2rem; }
  .signal { width: min(83%, 400px); margin-top: 2rem; justify-self: center; }
  .section { padding: 6rem 1.4rem; }
  .section-number { display: none; }
  .two-columns { margin-left: 0; }
  .kinds-heading { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .story-card:nth-child(2) { border-right: 0; }
  .story-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .submission { grid-template-columns: 1fr; }
  .form-intro { position: static; }
  .archive-heading { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .brand { font-size: .68rem; }
  .header-actions { gap: 1rem; }
  h1 { font-size: clamp(3.3rem, 17vw, 5.1rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .signal { width: 93%; }
  .two-columns, .field-row { grid-template-columns: 1fr; gap: 0; }
  .cards { grid-template-columns: 1fr; }
  .story-card, .story-card:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .story-card:last-child { border-bottom: 0; }
  .story-form { padding: 1.5rem; }
  .archive-grid { grid-template-columns: 1fr; }
  .archive-toolbar { gap: 1rem; }
  .archive-entry { min-height: 350px; }
  footer { grid-template-columns: 1fr; }
  footer > p { text-align: left; }
  .footer-meta { flex-wrap: wrap; }
  .footer-meta span:first-child { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
