/* ==========================================================================
   Biafra Memory Project — TaradomeFilms
   ---------------------------------------------------------------------------
   BRAND SYSTEM — pulled directly from the real production index.html
   (single-file, inline-styled homepage). These values are copied verbatim
   from that file's :root block and font stack, not estimated from a
   screenshot, so this page stays visually identical to the real site.

   NOTE FOR THE TEAM: the homepage itself is still a self-contained single
   file (no external stylesheet) — that's how it was built and this file
   doesn't change that. This stylesheet exists only for pages like this one
   that are big enough to warrant a separate file, using the same tokens.
   ========================================================================== */

:root {
  /* --- Palette (verbatim from index.html :root) --- */
  --ink: #050508;              /* --black */
  --surface: #0a0a12;          /* filmstrip background, used for raised surfaces here */
  --surface-2: #100e18;        /* derived: slightly lifted input surface */
  --ivory: #f5f0ff;            /* --white */
  --ivory-dim: rgba(245, 240, 255, 0.5); /* --muted */
  --violet: #6b3fa0;           /* --purple */
  --violet-bright: #8b5cf6;    /* --purple-bright */
  --violet-strong: #6b3fa0;    /* solid button fill = --purple */
  --violet-wash: rgba(107, 63, 160, 0.18);
  --gold: #c9a84c;             /* --gold */
  --crimson: #6e1f24;          /* warnings / no-compensation callouts (not in homepage; kept for contrast) */
  --border: rgba(255, 255, 255, 0.12);
  --border-violet: rgba(107, 63, 160, 0.4);
  --focus: #8b5cf6;
  --grad: linear-gradient(100deg, #F5E6E8 0%, #C9A8E0 45%, #8B5CF6 100%);
  --grad-btn: linear-gradient(100deg, #8B5CF6 0%, #6B3FA0 100%);

  /* --- Type (verbatim from index.html) --- */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Didact Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Didact Gothic", ui-monospace, monospace; /* homepage has no mono face; reuse body face for utility text */

  /* --- Rhythm --- */
  --max-w: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 2px;
  --radius-pill: 999px;
  --transition: 300ms ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }

a { color: var(--violet-bright); text-decoration: none; }
a:hover { color: var(--ivory); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--violet);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
}
.skip-link:focus { left: var(--gutter); top: var(--gutter); }

/* ==========================================================================
   SPROCKET STRIP — matches the real homepage's .filmstrip exactly:
   32px bar, 20x18px bordered "holes", #0a0a12 background. Class kept as
   sprocket-strip here for this page's own JS, but the visual is identical.
   ========================================================================== */
.sprocket-strip {
  display: flex;
  align-items: center;
  gap: 0;
  height: 32px;
  padding: 0;
  background: var(--surface);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.sprocket-strip span {
  flex: none;
  width: 20px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  margin: 0 6px;
}
@media (max-width: 700px) {
  .sprocket-strip span:nth-child(n+13) { display: none; }
}

/* --- Eyebrow (section labels) --- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet-bright);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--violet);
}

/* --- Pill badge (hero) — bordered, dot + tracked label, as on the launch page --- */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--border-violet);
  background: var(--violet-wash);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet-bright);
}
.badge-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet);
  flex: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  color: var(--ivory);
}

/* Reusable italic-accent + gold-dot treatment mirroring the "Taradome*Films*."
   logotype on the main site. Use sparingly — one moment per page. */
.accent-italic {
  font-style: italic;
  color: var(--violet-bright);
}
.accent-dot {
  color: var(--gold);
}

.section-heading {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  max-width: 26ch;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ivory-dim);
  max-width: 62ch;
}

/* ==========================================================================
   THE THREAD — signature scroll element.
   A violet rail fills as the reader progresses, capped with a single gold
   waypoint dot at the leading edge — echoing the gold "." in the wordmark.
   ========================================================================== */
.thread-rail {
  position: fixed;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(139, 124, 246, 0.16);
  z-index: 40;
  display: none;
}
.thread-rail__fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--violet-strong), var(--violet-bright));
  transition: height 120ms linear;
}
.thread-rail__fill::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}
@media (min-width: 1080px) { .thread-rail { display: block; } }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 8, 11, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ivory);
}
.brand__mark {
  color: var(--violet);
  font-size: 0.8rem;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand__group {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}
.brand__project {
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet-bright);
  margin-top: 2px;
}
.main-nav {
  display: flex;
  gap: 1.8rem;
  align-items: center;
  flex-wrap: wrap;
}
.main-nav a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}
.main-nav a:hover { color: var(--ivory); }
.header-cta {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ivory);
  background: var(--violet-strong);
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--transition);
}
.header-cta:hover { background: var(--violet-bright); color: var(--ink); }

/* ==========================================================================
   EXPLORE ROW — bordered pill wayfinding, matching the "Explore the Group"
   pattern from the main launch page. Used under the header for cross-site nav.
   ========================================================================== */
.explore-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}
.explore-row__label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  opacity: 0.65;
}
.explore-pill {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ivory-dim);
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}
.explore-pill:hover { border-color: var(--border-violet); color: var(--ivory); }
.explore-pill[aria-current="page"] {
  border-color: var(--border-violet);
  color: var(--violet-bright);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(4rem, 12vw, 8rem) 0 clamp(3rem, 8vw, 5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 30% 0%, var(--violet-wash), transparent 60%);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 46rem; }
.hero .badge-pill { margin-bottom: 1.6rem; }
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.4rem);
}
.hero .lede { margin-top: 1.4rem; font-size: clamp(1.1rem, 2vw, 1.3rem); }
.hero__actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.btn {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.95rem 1.7rem;
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}
.btn-primary { background: var(--violet-strong); color: var(--ivory); }
.btn-primary:hover { background: var(--violet-bright); color: var(--ink); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--ivory); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--border-violet); color: var(--violet-bright); }

.trust-note {
  margin-top: 1.6rem;
  font-size: 0.85rem;
  color: var(--ivory-dim);
  border-left: 2px solid var(--border-violet);
  padding-left: 0.9rem;
  max-width: 40rem;
}

/* ==========================================================================
   GENERIC SECTION RHYTHM
   ========================================================================== */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; border-bottom: 1px solid var(--border); }
.section__head { margin-bottom: clamp(2rem, 5vw, 3rem); display: flex; flex-direction: column; gap: 0.9rem; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.stat { border-top: 1px solid var(--border-violet); padding-top: 0.9rem; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--violet-bright); }
.stat span { font-size: 0.88rem; color: var(--ivory-dim); }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.card { background: var(--ink); padding: 1.9rem 1.6rem; display: flex; flex-direction: column; gap: 0.7rem; }
.card__icon { width: 34px; height: 34px; color: var(--violet-bright); }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--ivory-dim); font-size: 0.92rem; margin: 0; }
.card__formats { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ivory-dim); letter-spacing: 0.03em; margin-top: auto; padding-top: 0.6rem; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; margin-top: 2.5rem; counter-reset: step; }
.step { position: relative; padding-left: 2.6rem; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--font-body); font-weight: 700; font-size: 0.85rem; color: var(--violet-bright);
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.step p { color: var(--ivory-dim); font-size: 0.92rem; margin: 0; }

.prompt-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0.9rem; max-width: 52rem; }
.prompt-list li {
  padding: 1rem 1.2rem;
  background: var(--surface);
  border-left: 2px solid var(--violet);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ivory);
}

.privacy-summary { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: start; }
@media (max-width: 860px) { .privacy-summary { grid-template-columns: 1fr; } }
.privacy-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.75rem; }
.privacy-list li { display: flex; gap: 0.7rem; font-size: 0.94rem; color: var(--ivory-dim); }
.privacy-list svg { flex: none; margin-top: 3px; color: var(--violet-bright); }
.privacy-callout { background: rgba(110, 31, 36, 0.14); border: 1px solid rgba(110, 31, 36, 0.4); padding: 1.3rem 1.4rem; font-size: 0.9rem; color: var(--ivory); }
.privacy-callout strong { color: var(--gold); display: block; margin-bottom: 0.4rem; font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* ==========================================================================
   SUBMISSION FORM
   ========================================================================== */
.form-shell { background: var(--surface); border: 1px solid var(--border); padding: clamp(1.5rem, 4vw, 2.8rem); }
.progress { display: flex; gap: 0.4rem; margin-bottom: 2rem; flex-wrap: wrap; }
.progress__item { flex: 1 1 0; min-width: 70px; }
.progress__bar { height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; }
.progress__bar span { display: block; height: 100%; width: 0%; background: var(--violet); transition: width var(--transition); }
.progress__item[data-state="done"] .progress__bar span { width: 100%; }
.progress__item[data-state="active"] .progress__bar span { width: 50%; }
.progress__label { font-family: var(--font-body); font-size: 0.66rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ivory-dim); margin-top: 0.4rem; display: block; }
.progress__item[data-state="active"] .progress__label,
.progress__item[data-state="done"] .progress__label { color: var(--violet-bright); }

.form-step { display: none; }
.form-step.is-active { display: block; animation: fadeIn 260ms ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; margin-bottom: 1.2rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ivory-dim); }
.field label .req { color: var(--violet-bright); margin-left: 0.2rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="date"], .field select, .field textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ivory);
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: var(--radius);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--border-violet); }
.field-hint { font-size: 0.78rem; color: var(--ivory-dim); }
.field-error { font-size: 0.8rem; color: #e9a3a3; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #c65b5b; }
.field.has-error .field-error { display: block; }

.char-count { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ivory-dim); text-align: right; }

.upload-methods { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.upload-methods button {
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em;
  padding: 0.55rem 1rem; background: var(--surface-2); border: 1px solid var(--border); color: var(--ivory-dim); cursor: pointer; border-radius: var(--radius);
}
.upload-methods button[aria-pressed="true"] { background: var(--violet-strong); color: var(--ivory); border-color: var(--violet-strong); }

.dropzone { border: 1px dashed var(--border); padding: 2rem 1.2rem; text-align: center; color: var(--ivory-dim); font-size: 0.88rem; cursor: pointer; transition: border-color var(--transition), background var(--transition); }
.dropzone.is-dragover { border-color: var(--border-violet); background: var(--violet-wash); }
.dropzone strong { color: var(--violet-bright); display: block; margin-bottom: 0.3rem; font-family: var(--font-body); }
.dropzone input { display: none; }

.file-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.file-list li { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; background: var(--surface-2); border: 1px solid var(--border); padding: 0.55rem 0.8rem; font-size: 0.84rem; }
.file-list button { background: none; border: none; color: var(--ivory-dim); cursor: pointer; font-size: 0.8rem; text-decoration: underline; }
.file-list .file-meta { color: var(--ivory-dim); font-family: var(--font-mono); font-size: 0.72rem; }

.consent-block { display: flex; gap: 0.75rem; padding: 0.9rem 0; border-bottom: 1px solid var(--border); }
.consent-block:last-of-type { border-bottom: none; }
.consent-block input[type="checkbox"] { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--violet); flex: none; }
.consent-block label { font-size: 0.92rem; color: var(--ivory); line-height: 1.5; }
.consent-block.optional label { color: var(--ivory-dim); }

.review-summary { display: grid; gap: 0.6rem; font-size: 0.92rem; margin-bottom: 1.5rem; }
.review-summary dt { font-family: var(--font-body); font-weight: 700; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--violet-bright); }
.review-summary dd { margin: 0.15rem 0 0.6rem; color: var(--ivory-dim); }

.form-nav { display: flex; justify-content: space-between; margin-top: 2rem; gap: 1rem; flex-wrap: wrap; }

.form-status { margin-top: 1.2rem; font-size: 0.88rem; padding: 0.9rem 1rem; border-radius: var(--radius); display: none; }
.form-status.is-visible { display: block; }
.form-status.success { background: var(--violet-wash); border: 1px solid var(--border-violet); color: var(--violet-bright); }
.form-status.error { background: rgba(110,31,36,0.15); border: 1px solid var(--crimson); color: #e9a3a3; }

.draft-note { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ivory-dim); margin-top: 0.8rem; }

/* Archive vision + closing CTA */
.closing { text-align: center; padding: clamp(4rem, 10vw, 7rem) 0; }
.closing h2 { font-size: clamp(2rem, 4.5vw, 3rem); max-width: 30ch; margin: 0 auto; }
.closing .lede { margin: 1.2rem auto 2rem; }

.site-footer { padding: 2.5rem 0; font-size: 0.82rem; color: var(--ivory-dim); }
.site-footer a { color: var(--ivory-dim); }
.site-footer a:hover { color: var(--violet-bright); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   CONSENT CLUSTERS — groups the individual legal affirmations into 3
   readable sections (+ optional). Each checkbox is still separate; this is
   purely visual grouping.
   ========================================================================== */
.consent-cluster {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem 0.6rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.02);
}
.consent-cluster__title {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet-bright);
  margin: 0 0 0.6rem;
}
.consent-cluster--optional {
  border-style: dashed;
  background: transparent;
}
.consent-cluster--optional .consent-cluster__title {
  color: var(--ivory-dim);
}
.consent-cluster .consent-block:last-of-type {
  border-bottom: none;
}
.consent-block label strong { color: var(--ivory); font-weight: 700; }


/* ==========================================================================
   SITE-WIDE GRADIENT SYSTEM — bold ivory->purple on major headings & buttons
   ========================================================================== */
.section-heading,
.hero h1,
.closing h2 {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.eyebrow {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.eyebrow::before { background: var(--violet-bright); }
.btn-primary {
  background: var(--grad-btn);
  color: #fff;
}
.btn-primary:hover { filter: brightness(1.12); background: var(--grad-btn); color: #fff; }
.header-cta {
  background: var(--grad-btn);
}
.header-cta:hover { filter: brightness(1.12); background: var(--grad-btn); color: #fff; }
.accent-italic {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* Form submit / next buttons in the wizard */
.form-nav .btn-primary, .upload-methods button[aria-pressed="true"] {
  background: var(--grad-btn);
}
