/* Propaganda Foundation */

:root {
  --ink: #0e0c0a;
  --soot: #16120e;
  --cream: #efe4cc;
  --cream-dim: #bfb39b;
  --muted: #8f8471;
  --signal: #c63a2b;
  --paper: #e8dcc2;
  --paper-ink: #211a12;
  --line: rgba(239, 228, 204, .14);

  --f-display: "Anton", Impact, sans-serif;
  --f-body: "Libre Caslon Text", Georgia, serif;
  --f-type: "Special Elite", "Courier New", monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --section: clamp(96px, 12vw, 176px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 72px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font: clamp(17px, 1.1vw, 19px)/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
::selection { background: var(--signal); color: var(--cream); }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }

/* ---------- Helpers ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.label {
  display: block;
  font: 12px/1.5 var(--f-type);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.lede { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.5; text-wrap: pretty; }
.muted { color: var(--cream-dim); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--cream); color: var(--ink); padding: 8px 14px; }
.skip:focus { left: 8px; }

/* Hand-lettered headlines: the image is decorative, the text lives in .sr-only */
.lettered { line-height: 0; margin: 0 0 clamp(20px, 2.4vw, 32px); }
.lettering { width: 100%; max-width: var(--lw, 600px); }
.lettered--center .lettering { margin-inline: auto; }
.lettered--shadow .lettering { filter: drop-shadow(0 8px 32px rgba(0, 0, 0, .8)); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--signal); color: var(--cream);
  border: 1px solid var(--signal); border-radius: 0; cursor: pointer;
  font: 20px/1 var(--f-display); text-transform: uppercase; letter-spacing: .05em;
  padding: 17px 28px;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn--line { background: transparent; border-color: var(--line); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, padding .3s;
}
.site-header.is-scrolled {
  background: rgba(14, 12, 10, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  padding-block: 10px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand span { font: 18px/1 var(--f-display); text-transform: uppercase; letter-spacing: .04em; }

.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 36px); }
.nav a {
  font: 13px/1 var(--f-type); letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; color: var(--cream-dim);
  padding: 8px 0; border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--cream); border-bottom-color: var(--signal); }
.nav .nav__cta { border: 1px solid var(--line); padding: 10px 16px; color: var(--cream); }
.nav .nav__cta:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); color: var(--cream);
  font: 12px/1 var(--f-type); letter-spacing: .16em; text-transform: uppercase;
  padding: 11px 14px; cursor: pointer;
}
@media (max-width: 820px) {
  .nav-toggle { display: block; position: relative; z-index: 60; }
  .nav {
    position: fixed; inset: 0; z-index: 55;
    flex-direction: column; justify-content: center; gap: 28px;
    background: var(--ink);
    opacity: 0; visibility: hidden;
    transition: opacity .3s, visibility .3s;
  }
  .nav a { font-size: 18px; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
}

/* ---------- Full-bleed image sections ---------- */
.hero, .page-hero, .rule, .now { position: relative; overflow: hidden; isolation: isolate; }
.bg { position: absolute; inset: 0; z-index: -1; }
.bg img { width: 100%; height: 100%; object-fit: cover; }
.bg::after { content: ""; position: absolute; inset: 0; }

/* Hero */
.hero { height: 100vh; height: 100svh; min-height: 560px; display: flex; align-items: flex-end; }
.hero .bg img { animation: settle 6s var(--ease) both; }
.hero .bg::after {
  background:
    linear-gradient(180deg, rgba(14, 12, 10, .55), transparent 20%),
    linear-gradient(0deg, rgba(14, 12, 10, .95), rgba(14, 12, 10, .6) 22%, transparent 48%);
}
.hero__copy { width: 100%; padding: 0 var(--gutter) clamp(32px, 7vh, 72px); animation: rise .9s var(--ease) .3s both; }
@keyframes settle { from { transform: scale(1.05); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.hero .lettered { margin-bottom: 18px; }
.hero .lettering { max-width: min(var(--lw), 76vw, 44vh); }
@media (max-aspect-ratio: 1/1) { .hero .bg img { object-position: 70% 30%; } }

/* Inner page heroes */
.page-hero {
  min-height: 82vh;
  display: flex; align-items: flex-end;
  padding: 140px 0 clamp(56px, 9vh, 104px);
}
.page-hero .bg::after { background: linear-gradient(180deg, rgba(14, 12, 10, .5), rgba(14, 12, 10, .15) 30%, rgba(14, 12, 10, .75) 65%, rgba(14, 12, 10, .95)); }
.page-hero .wrap { width: 100%; animation: rise .9s var(--ease) .2s both; }
.page-hero .lede { max-width: 620px; margin: 0; }

/* ---------- Scrollytelling: sticky image, steps scroll over it ---------- */
.scrolly__bg { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.scrolly__bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease;
}
.scrolly__bg img.is-shown { opacity: 1; }
.scrolly__bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(14, 12, 10, .15), rgba(14, 12, 10, .75) 85%);
}
.scrolly__steps { position: relative; margin-top: -100vh; margin-top: -100svh; }
.step { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 0 var(--gutter); }
.step--center { justify-content: center; text-align: center; }
.step--right { justify-content: flex-end; }
.step--low { align-items: flex-end; padding-bottom: 8vh; }
@media (max-width: 700px) { .step:not(.step--center) { align-items: flex-end; padding-bottom: 9vh; } }
.card {
  max-width: 540px;
  background: rgba(14, 12, 10, .88);
  border: 1px solid var(--line);
  padding: clamp(24px, 3.2vw, 40px);
}
.card .label { margin-bottom: 12px; }
.card p:last-child { margin-bottom: 0; }

/* Newspaper clipping */
.clipping { width: min(440px, 82vw, 52vh); }
.clipping img { width: 100%; transform: rotate(-2deg); filter: drop-shadow(0 28px 36px rgba(0, 0, 0, .6)); }

/* ---------- The Foundation ---------- */
.split {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center;
}
.split--flip > :first-child { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
}
.portrait { margin: 0; max-width: 440px; justify-self: center; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.portrait figcaption, .figure figcaption { margin-top: 12px; font-size: 15px; font-style: italic; color: var(--muted); }

.crew {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 24px);
  margin-top: clamp(64px, 8vw, 112px);
}
@media (max-width: 1000px) { .crew { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
  .crew {
    display: flex; gap: 12px; overflow-x: auto;
    margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  .crew::-webkit-scrollbar { display: none; }
  .crew-card { flex: 0 0 78%; scroll-snap-align: start; }
}
.crew-card { display: block; text-decoration: none; background: var(--soot); border: 1px solid var(--line); transition: border-color .3s; }
.crew-card:hover { border-color: var(--cream-dim); }
.crew-card__img { aspect-ratio: 4 / 5; overflow: hidden; }
.crew-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.crew-card:hover .crew-card__img img { transform: scale(1.04); }
.crew-card__body { padding: 20px 20px 22px; }
.crew-card h3 { font: 26px/1 var(--f-display); text-transform: uppercase; }
.crew-card p { font-style: italic; color: var(--cream-dim); font-size: 15px; line-height: 1.5; margin: 10px 0 16px; }
.crew-card .label { border-top: 1px solid var(--line); padding-top: 12px; color: var(--cream); }

/* ---------- The Rule ---------- */
.rule { min-height: 100vh; min-height: 100svh; padding: clamp(100px, 13vh, 150px) 0 clamp(96px, 14vh, 160px); }
.rule .bg::after { background: linear-gradient(180deg, var(--ink), rgba(14, 12, 10, .35) 18%, transparent 45%, transparent 75%, var(--ink)); }
.rule .lettering { filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .5)); }
.rule__caption {
  max-width: 440px; margin: 0;
  font-size: 15px; font-style: italic; line-height: 1.55; color: var(--cream-dim);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .8);
}

/* ---------- The Vanishing ---------- */
.vanish { text-align: center; }
.vanish .lede { max-width: 780px; margin-inline: auto; }
.vanish__big {
  font: clamp(40px, 6.6vw, 104px)/.95 var(--f-display); text-transform: uppercase;
  max-width: 1080px; margin: clamp(48px, 7vw, 88px) auto;
}
.fade-word { transition: color 2.6s ease .5s, filter 2.6s ease .5s; }
.is-in .fade-word { color: #3a332b; filter: blur(1.5px); }
.figure { max-width: 1080px; margin: clamp(40px, 6vw, 80px) auto 0; }
.figure img { width: 100%; }

/* ---------- 2027 ---------- */
.now { min-height: 120vh; display: flex; align-items: flex-end; padding-bottom: clamp(80px, 12vh, 140px); }
.now .bg::after { background: linear-gradient(180deg, var(--ink), rgba(14, 12, 10, .1) 25%, rgba(14, 12, 10, .5) 60%, var(--ink)); }
.now .lede { max-width: 620px; text-shadow: 0 2px 16px rgba(0, 0, 0, .9); }
.now .lettered { margin: 28px 0 32px; }
.brush-line { display: inline-block; position: relative; font-style: italic; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.2; margin: 0; }
.brush-line svg { position: absolute; left: -3%; bottom: -16px; width: 106%; height: 24px; overflow: visible; }
.brush-line path {
  fill: none; stroke: var(--signal); stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: 600; stroke-dashoffset: 600;
  transition: stroke-dashoffset 1.4s var(--ease) .4s;
}
.brush-line.is-in path { stroke-dashoffset: 0; }
@media (max-width: 700px) { .now { min-height: 100vh; min-height: 100svh; } }

/* ---------- Ledger entries teaser ---------- */
.teaser { background: var(--soot); }
.teaser__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.teaser__head .lettered { margin: 0; }
.entries { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }
@media (max-width: 900px) { .entries { grid-template-columns: 1fr; } }
.entry-card {
  display: block; text-decoration: none;
  background: var(--paper); color: var(--paper-ink);
  padding: 28px;
  transition: transform .4s var(--ease);
}
.entry-card:hover { transform: translateY(-6px); }
.entry-card .label { color: var(--signal); }
.entry-card h3 { font: 34px/.95 var(--f-display); text-transform: uppercase; margin: 12px 0 14px; }
.entry-card p { font-style: italic; font-size: 16px; line-height: 1.6; margin: 0; }

/* ---------- Send word ---------- */
.send { border-top: 1px solid var(--line); }
.send__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 860px) { .send__grid { grid-template-columns: 1fr; } }
.send .lede { max-width: 520px; margin: 0; }
.form { display: grid; gap: 18px; }
.form label { display: block; margin-bottom: 6px; }
.form input, .form textarea {
  width: 100%;
  background: rgba(239, 228, 204, .04);
  border: 0; border-bottom: 1px solid rgba(239, 228, 204, .3); border-radius: 0;
  color: var(--cream);
  font: inherit; font-size: 18px;
  padding: 12px;
}
.form input::placeholder, .form textarea::placeholder { color: rgba(239, 228, 204, .35); }
.form input:focus, .form textarea:focus { outline: 2px solid var(--cream); outline-offset: 2px; }
.form textarea { min-height: 110px; resize: vertical; }
.form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.form__status { margin: 0; font: 14px/1.5 var(--f-type); max-width: 340px; }
.form__status[data-kind="error"] { color: #ffb4a6; border-left: 2px solid var(--signal); padding: 4px 10px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 36px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.footer__brand { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.footer__brand img { width: 72px; height: 72px; }
.footer__brand span { font: 26px/1 var(--f-display); text-transform: uppercase; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 28px; }
.footer__nav a { font: 13px/1 var(--f-type); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--cream-dim); }
.footer__nav a:hover { color: var(--cream); }
.footer__legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font: 12px/1.5 var(--f-type); letter-spacing: .08em; color: var(--muted); }

@media (max-width: 600px) {
  .footer__brand img { width: 56px; height: 56px; }
  .footer__brand span { font-size: 22px; }
  .footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; width: 100%; }
  .footer__nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Crew page ---------- */
.craft { padding: var(--section) 0; border-top: 1px solid var(--line); }
.craft:nth-of-type(even) { background: var(--soot); }
.craft .portrait { width: 100%; }
.craft .label { margin-bottom: 14px; }
.craft__then {
  font-style: italic; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.5; color: var(--cream-dim);
  border-left: 2px solid var(--signal); padding-left: 20px; margin-bottom: 24px;
}
.tools { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
@media (max-width: 520px) { .tools { grid-template-columns: 1fr; } }
.tools li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 16px; }

.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.steps li { border-left: 1px solid var(--line); padding: 0 24px 8px; }
.steps li:first-child { border-left-color: var(--signal); }
.steps .roman { font: 56px/1 var(--f-display); color: var(--signal); }
.steps h3 { font: 28px/1 var(--f-display); text-transform: uppercase; margin: 14px 0 8px; }
.steps .label { margin-bottom: 12px; }
.steps p { font-size: 16px; color: var(--cream-dim); margin: 0; }

/* ---------- Ledger page: one continuous ledger with a live index ---------- */
.ledger { position: relative; margin-top: -72px; padding-bottom: var(--section); }
.ledger__grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: start; }

/* Index */
.ledger__index { position: sticky; top: 96px; margin-top: 104px; padding-left: 24px; }
.index { list-style: none; margin: 0; padding: 0; }
.index a {
  display: grid; grid-template-columns: 2.6em 1fr auto; column-gap: 8px; align-items: baseline;
  padding: 7px 0;
  font-size: 15px; line-height: 1.35; color: var(--muted); text-decoration: none;
  transition: color .2s;
}
.index a span { font-size: 12px; letter-spacing: .06em; }
.index a:hover { color: var(--cream-dim); }
.index a[aria-current] { color: var(--cream); }
.index li.is-tried > a::after { content: "✓"; font-size: 12px; color: var(--muted); }
.index__progress { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line); }
.index__progress span { position: absolute; inset: 0; background: var(--signal); transform-origin: top; transform: scaleY(var(--p, 0)); }
.index__toggle { display: none; }

/* Pages */
.ledger__pages { background: var(--paper); color: var(--paper-ink); box-shadow: 0 40px 90px rgba(0, 0, 0, .55); }
.entry { padding: clamp(72px, 9vw, 128px) clamp(24px, 6vw, 80px); scroll-margin-top: 72px; }
.entry + .entry { border-top: 1px solid rgba(33, 26, 18, .14); }
.entry > * { max-width: 640px; margin-inline: auto; }
.entry .label { color: #7a6a52; margin-bottom: 16px; }
.entry h2 { font: clamp(40px, 5vw, 68px)/.95 var(--f-display); text-transform: uppercase; margin-block: 0 32px; }
.entry__quote { margin-block: 0 56px; padding: 0; }
.entry__quote p { margin: 0; font-style: italic; font-size: clamp(21px, 1.9vw, 26px); line-height: 1.45; color: #3a3226; }
.entry__quote cite { display: block; margin-top: 12px; font-style: normal; font-size: 14px; color: #7a6a52; }
.entry__quote cite::before { content: "— "; }
.entry h3 { font: 20px/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .03em; margin-block: 48px 14px; }
.entry__quote + h3 { margin-top: 0; }
.entry p { font-size: 18px; line-height: 1.75; color: #2b231a; margin-block: 0 1em; }

/* Try it */
.entry__try {
  margin-block: 56px 0;
  padding: 26px 28px 20px;
  background: rgba(33, 26, 18, .055);
  border-left: 3px solid var(--signal);
}
.entry__try h3 { margin: 0 0 10px; color: var(--signal); font-size: 18px; }
.entry__try p { font-size: 17px; line-height: 1.65; margin-bottom: 18px; }
.tried {
  display: flex; align-items: center; gap: 10px;
  padding-top: 14px; border-top: 1px solid rgba(33, 26, 18, .14);
  cursor: pointer; font-size: 15px; color: #5b4c38;
}
.tried input {
  appearance: none; -webkit-appearance: none; margin: 0; flex: none;
  width: 18px; height: 18px; border: 1.5px solid #5b4c38; border-radius: 0;
  display: grid; place-content: center; cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.tried input::after { content: ""; width: 9px; height: 5px; border: solid var(--cream); border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .2s var(--ease); }
.tried input:checked { background: var(--signal); border-color: var(--signal); }
.tried input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.tried input:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

@media (max-width: 900px) {
  .ledger { margin-top: 0; }
  .ledger__grid { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .ledger__index {
    top: 61px; z-index: 20; margin-top: 0;
    padding: 0 var(--gutter);
    background: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .index__toggle {
    display: flex; align-items: baseline; gap: 10px; width: 100%;
    background: none; border: 0; color: var(--cream); cursor: pointer; text-align: left;
    padding: 14px 0; font: 15px/1.35 var(--f-body);
  }
  .index__toggle::after { content: "Index"; margin-left: auto; padding-left: 12px; font-size: 14px; color: var(--cream-dim); }
  .index__toggle[aria-expanded="true"]::after { content: "Close"; }
  .index__now { display: flex; gap: 10px; align-items: baseline; min-width: 0; }
  .index__now span { font-size: 12px; color: var(--muted); }
  .index { display: none; max-height: 62vh; overflow-y: auto; padding-bottom: 12px; }
  .ledger__index.is-open .index { display: block; }
  .index__progress { top: auto; bottom: -1px; left: 0; right: 0; width: auto; height: 2px; background: none; }
  .index__progress span { transform-origin: left; transform: scaleX(var(--p, 0)); }
  .ledger__pages { box-shadow: none; }
  .entry { padding-block: 64px; scroll-margin-top: 120px; }
  .entry__try { padding: 22px 20px 16px; }
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }

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