/* ==========================================================================
   ANTBEATZ JOURNAL — design system
   Adapted from the theinfinitysocks.com language: cinematic dark scenes,
   cream editorial surfaces, mono telemetry labels, condensed display type.
   Set --accent in one place to rebrand.
   ========================================================================== */

:root {
  /* palette (cloned from the reference) */
  --scene: #161310;
  --court: #0b0a08;
  --court-2: #12100d;
  --sand: #ede4d2;
  --cream: #f6f0e2;
  --ink: #211a12;
  --taupe: #706a5e;
  --terra: #c96f4a;
  --white: #ffffff;
  --white-soft: rgba(255, 250, 240, 0.8);
  --white-dim: rgba(255, 250, 240, 0.55);
  --white-faint: rgba(237, 228, 210, 0.34);
  --hairline: rgba(255, 250, 240, 0.22);
  --line-strong: rgba(33, 26, 18, 0.34);
  --line-subtle: rgba(33, 26, 18, 0.14);

  /* brand accent — swap to #C96F4A for the exact reference palette */
  --accent: #ffc800;
  --accent-hover: #e3b202;
  --accent-ink: #0b0a08;

  --text: var(--ink);
  --text-secondary: rgba(33, 26, 18, 0.66);
  --text-muted: rgba(33, 26, 18, 0.45);

  /* type */
  --display: "Anton", "Arial Narrow", Impact, sans-serif;
  --body: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --hand: "Caveat", cursive;

  /* space + shape */
  --pad: clamp(20px, 4.2vw, 60px);
  --radius: 4px;
  --radius-lg: 8px;
  --ease: cubic-bezier(0.625, 0.05, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --fs-body: clamp(16px, 1.02vw, 19px);
  --wrap: 1400px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--text);
  font-family: var(--body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* film grain over everything, exactly like the reference */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a { color: inherit; }

::selection { background: var(--accent); color: var(--accent-ink); }

:where(a, button, input, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* scrollbar, hidden like the reference but still usable */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--court); }
::-webkit-scrollbar-thumb { background: #3a3125; border: 3px solid var(--court); border-radius: 999px; }

/* ---------- primitives ---------- */

.wrap { width: min(100% - (var(--pad) * 2), var(--wrap)); margin-inline: auto; }

.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker::before {
  content: "";
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--accent);
}

.display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.005em;
  margin: 0;
}

.rule { height: 1px; background: var(--hairline); border: 0; margin: 0; }

/* buttons — stacked label slide, cloned from the reference */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--cream);
  --btn-hover: var(--accent);
  --btn-hover-fg: var(--accent-ink);
  position: relative;
  display: inline-grid;
  align-items: stretch;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--btn-fg);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.18s var(--ease);
}
.btn:active { transform: scale(0.965); }
.btn__bg {
  grid-area: 1 / 1;
  position: relative;
  overflow: clip;
  background: var(--btn-bg);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--btn-line, transparent);
}
.btn__bg::after {
  content: "";
  position: absolute;
  left: -10%;
  bottom: 0;
  width: 120%;
  height: 100%;
  background: var(--btn-hover);
  transform: translate3d(0, 175%, 0) rotate(12deg);
  transition: transform 0.525s var(--ease);
}
.btn__inner {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.95em;
  padding: 1.25em 2em;
  transition: color 0.5s var(--ease);
}
.btn__mask { clip-path: inset(-10% 0); display: block; overflow: hidden; }
.btn__text { display: block; transition: transform 0.5s var(--ease); }
.btn__dot {
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: currentColor;
  flex: none;
  transition: transform 0.5s var(--ease), background 0.5s var(--ease);
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .btn:hover .btn__bg::after,
  .btn:focus-visible .btn__bg::after { transform: translateZ(0) rotate(0); }
  .btn:hover .btn__inner,
  .btn:focus-visible .btn__inner { color: var(--btn-hover-fg); }
  .btn:hover .btn__dot,
  .btn:focus-visible .btn__dot { transform: translateX(0.35em); }
}
.btn--light { --btn-bg: var(--cream); --btn-fg: var(--ink); --btn-hover: var(--accent); --btn-hover-fg: var(--accent-ink); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--cream); --btn-line: var(--hairline); --btn-hover-fg: var(--accent-ink); }
.btn--solid { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); --btn-hover: var(--cream); --btn-hover-fg: var(--ink); }

/* reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }

/* ---------- header ---------- */

.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 1.5em;
  padding: 1.1em var(--pad);
  color: var(--cream);
  background: linear-gradient(180deg, rgba(11, 10, 8, 0.86), rgba(11, 10, 8, 0.28) 70%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.45s var(--ease), background 0.45s var(--ease), border-color 0.45s;
  border-bottom: 1px solid transparent;
}
.bar.is-pinned {
  background: rgba(11, 10, 8, 0.82);
  border-bottom-color: var(--hairline);
}
.bar.is-hidden { transform: translateY(-102%); }

.bar__mark {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}
.bar__mark svg { width: 1.6em; height: 1.6em; }
.bar__nav { display: flex; align-items: center; gap: 1.6em; margin-left: auto; }
.bar__link {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-dim);
  text-decoration: none;
  padding: 0.5em 0;
  transition: color 0.3s;
}
.bar__link:hover, .bar__link[aria-current="page"] { color: var(--cream); }
.bar__cta { display: inline-grid; }
.bar__burger {
  display: none;
  margin-left: auto;
  padding: 0.6em;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}
.bar__burger span { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 3.5px 0; }

@media (max-width: 900px) {
  .bar__nav, .bar__cta { display: none; }
  .bar__burger { display: block; }
  .bar.is-open .bar__nav {
    display: flex;
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4em;
    margin: 0;
    padding: 1.2em var(--pad) 1.6em;
    background: rgba(11, 10, 8, 0.97);
    border-bottom: 1px solid var(--hairline);
  }
  .bar.is-open .bar__nav .bar__cta { display: inline-grid; margin-top: 0.8em; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 78% 8%, rgba(255, 214, 161, 0.12), transparent 55%),
    radial-gradient(90% 70% at 12% 108%, rgba(201, 111, 74, 0.14), transparent 60%),
    var(--scene);
  color: var(--white);
  padding: 8em var(--pad) 3em;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(246, 240, 226, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 240, 226, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 60% 30%, #000 20%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 60% 30%, #000 20%, transparent 78%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(11, 10, 8, 0.85));
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; width: min(100%, var(--wrap)); margin-inline: auto; }

.hero__kicker { margin-bottom: 1.4em; }
.hero__title {
  font-family: var(--display);
  font-size: clamp(3.1rem, 10.5vw, 10.5rem);
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  margin: 0;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span {
  display: block;
  transform: translateY(105%);
  animation: rise 1s var(--ease-out) forwards;
}
.hero__title .line:nth-child(2) > span { animation-delay: 0.09s; }
.hero__title .line:nth-child(3) > span { animation-delay: 0.18s; }
.hero__title em { font-style: normal; color: var(--accent); }
@keyframes rise { to { transform: none; } }

.hero__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5em;
  margin-top: 2.4em;
  flex-wrap: wrap;
}
.hero__para { max-width: 34ch; margin: 0; color: var(--white-soft); line-height: 1.6; }
.hero__para b { color: var(--white); font-weight: 600; }
.hero__actions { display: flex; gap: 0.8em; flex-wrap: wrap; }
.hero__actions { position: relative; z-index: 4; }

/* telemetry card, cloned from the hero product card */
.hero__card {
  position: absolute;
  right: var(--pad);
  top: 5.8em;
  z-index: 3;
  width: clamp(11em, 15vw, 15em);
  padding: 1.1em 1.1em 1.3em;
  border: 1px solid rgba(246, 240, 226, 0.34);
  background: linear-gradient(155deg, rgba(112, 106, 94, 0.18), rgba(33, 26, 18, 0.28));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero__card::before, .hero__card::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
}
.hero__card::before { top: -3px; left: -3px; background: var(--sand); }
.hero__card::after { top: -3px; right: -3px; background: var(--accent); }
.hero__card-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-dim);
}
.hero__card-top b { color: var(--sand); font-weight: 500; }
.hero__card-ticks {
  height: 4px;
  margin: 1em 0;
  background-image: repeating-linear-gradient(90deg, var(--hairline) 0 1px, transparent 1px 7px);
}
.hero__card-row {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  padding: 0.55em 0;
  border-top: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-dim);
}
.hero__card-row b { color: var(--sand); font-weight: 500; }
.hero__card-row i { font-style: normal; color: var(--accent); }

.hero__cue {
  position: absolute;
  left: var(--pad);
  bottom: 1.6em;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.9em;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}
.hero__cue-track { width: 5em; height: 1px; background: var(--hairline); position: relative; overflow: hidden; }
.hero__cue-track i {
  position: absolute;
  top: 0;
  left: -34%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent) 55%, var(--sand));
  animation: comet 3.2s cubic-bezier(0.6, 0.05, 0.3, 0.95) infinite;
}
@keyframes comet { 0% { left: -34%; } 58% { left: 104%; } 100% { left: 104%; } }
.hero__cue-ball {
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--accent);
  animation: dribble 1.15s infinite;
}
@keyframes dribble {
  0% { transform: translateY(0) scale(1); animation-timing-function: cubic-bezier(0.5, 0, 1, 0.6); }
  46% { transform: translateY(0.85em) scale(1.15, 0.7); animation-timing-function: cubic-bezier(0, 0.4, 0.5, 1); }
  54% { transform: translateY(0.85em) scale(1); }
  100% { transform: translateY(0) scale(1); }
}

@media (max-width: 900px) {
  .hero { padding-bottom: 5.5em; }
  .hero__card { display: none; }
  .hero__row { flex-direction: column; align-items: flex-start; gap: 1.6em; }
}
@media (max-width: 1180px) {
  .hero__card { display: none; }
}

/* ---------- marquee strips ---------- */

.strips { background: var(--court); padding: 4em 0 3em; overflow: hidden; }
.strip {
  display: block;
  white-space: nowrap;
  font-family: var(--display);
  font-size: clamp(1.8rem, 5vw, 4.4rem);
  text-transform: uppercase;
  line-height: 1;
  padding: 0.55em 0;
}
.strip--a { background: #2b241b; color: var(--accent); transform: rotate(-2.1deg); width: 106%; margin-left: -3%; }
.strip--b { background: var(--cream); color: var(--ink); transform: rotate(1.4deg); width: 106%; margin-left: -3%; text-align: right; margin-top: 1.6em; }
.strip__inner { display: inline-block; animation: slide 38s linear infinite; }
.strip--b .strip__inner { animation-direction: reverse; animation-duration: 46s; }
.strip__inner span { padding-right: 1.4em; }
.strip__inner span i { font-style: normal; color: currentColor; opacity: 0.42; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- section headers ---------- */

.section { padding: clamp(3.5em, 7vw, 7em) 0; }
.section--dark { background: var(--court); color: var(--cream); }
.section--sand { background: var(--sand); }
.section--cream { background: var(--cream); }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2em;
  margin-bottom: 2.6em;
  flex-wrap: wrap;
}
.section__title { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 4rem); text-transform: uppercase; line-height: 0.92; margin: 0.25em 0 0; }

/* ---------- featured post ---------- */

.feature {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5em, 3vw, 3em);
  align-items: stretch;
}
.feature__media { position: relative; overflow: hidden; background: var(--court-2); border: 1px solid var(--hairline); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.feature:hover .feature__media img { transform: scale(1.035); }
.feature__corner { position: absolute; width: 9px; height: 9px; border: 1.5px solid var(--cream); }
.feature__corner--tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.feature__corner--tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.feature__corner--bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.feature__corner--br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.feature__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(0.5em, 2vw, 2em) 0; }
.feature__title { font-family: var(--display); font-size: clamp(1.9rem, 3.6vw, 3.2rem); line-height: 0.95; text-transform: uppercase; margin: 0.35em 0; }
.feature__title a { text-decoration: none; }
.feature__title a:hover { color: var(--accent); }
.feature__excerpt { color: var(--white-soft); max-width: 46ch; margin: 0 0 1.6em; }
.feature__meta { display: flex; gap: 1.2em; flex-wrap: wrap; color: var(--white-dim); }

@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } }

/* ---------- post cards ---------- */

.topics { display: flex; gap: 0.5em; flex-wrap: wrap; margin-bottom: 2.2em; }
.chip {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.62em 1.1em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2em, 2.4vw, 2.2em); }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--court-2); border: 1px solid var(--line-subtle); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.card:hover .card__media img { transform: scale(1.04); }
.card__cat {
  position: absolute;
  top: 0.85em;
  left: 0.85em;
  z-index: 2;
  padding: 0.45em 0.8em;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.card__body { padding-top: 1.15em; }
.card__title { font-family: var(--display); font-size: 1.55rem; line-height: 1.02; text-transform: uppercase; margin: 0.35em 0 0.5em; }
.card:hover .card__title { color: var(--accent-hover); }
.card__excerpt { color: var(--text-secondary); font-size: 0.94rem; margin: 0 0 1em; }
.card__meta { display: flex; gap: 1em; color: var(--text-muted); margin-top: auto; }
.card.is-hidden { display: none; }

/* ---------- finale ---------- */

.finale {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(255, 214, 161, 0.1), transparent 60%),
    var(--court);
  color: var(--cream);
  padding: clamp(4em, 9vw, 9em) 0;
}
.finale__title { font-family: var(--display); font-size: clamp(3rem, 11vw, 9rem); line-height: 0.86; text-transform: uppercase; margin: 0; }
.finale__title em { font-style: normal; color: var(--accent); }
.finale__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 3em; margin-top: 2em; flex-wrap: wrap; }
.finale__para { max-width: 38ch; color: var(--white-soft); margin: 0; }

.subscribe { display: flex; gap: 0.6em; flex-wrap: wrap; align-items: stretch; }
.subscribe input {
  flex: 1 1 16em;
  min-width: 0;
  padding: 1.15em 1.2em;
  background: rgba(246, 240, 226, 0.06);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  color: var(--cream);
  font: inherit;
  font-size: 0.95rem;
}
.subscribe input::placeholder { color: var(--white-faint); }
.subscribe input:focus { outline: none; border-color: var(--accent); }
.subscribe__note { width: 100%; margin: 0.4em 0 0; color: var(--white-faint); font-size: 0.78rem; }

/* ---------- footer ---------- */

.foot {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 50% 100%, #f6efe3 0%, #f0e3cc 16%, #e0c59e 32%, #c15a37 50%, #4a2a18 68%, var(--court) 84%);
  color: var(--cream);
  padding-top: clamp(6em, 14vw, 12em);
}
.foot__inner { position: relative; z-index: 2; }
.foot__slogan { font-family: var(--display); font-size: clamp(2.2rem, 5.5vw, 5rem); line-height: 0.92; text-transform: uppercase; color: var(--cream); margin: 0; }
.foot__slogan em { font-style: normal; color: var(--accent); }
.foot__slogan span { display: block; }
.foot__links { display: flex; gap: 2em; flex-wrap: wrap; margin: 3em 0 2em; }
.foot__link { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(246, 240, 226, 0.6); text-decoration: none; }
.foot__link:hover { color: var(--cream); }
.foot__bar {
  display: flex;
  justify-content: space-between;
  gap: 2em;
  padding: 2em 0 2.4em;
  margin-top: 2em;
  border-top: 1px solid rgba(246, 240, 226, 0.12);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 240, 226, 0.45);
  flex-wrap: wrap;
}
.foot__bar em { font-style: normal; color: var(--accent); }
.foot__brand { display: flex; align-items: center; gap: 0.7em; color: var(--cream); }
.foot__brand svg { width: 1.5em; height: 1.5em; }

/* ---------- article ---------- */

.article-hero {
  position: relative;
  background: var(--scene);
  color: var(--cream);
  padding: 9em var(--pad) 3.4em;
  overflow: hidden;
}
.article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(246, 240, 226, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 240, 226, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(120% 90% at 70% 0%, #000 10%, transparent 70%);
}
.article-hero__inner { position: relative; z-index: 2; width: min(100%, 62rem); margin-inline: auto; }
.article-hero h1 { font-family: var(--display); font-size: clamp(2.3rem, 5.6vw, 5rem); line-height: 0.93; text-transform: uppercase; margin: 0.35em 0 0.5em; }
.article-meta { display: flex; gap: 1.2em; flex-wrap: wrap; color: var(--white-dim); }

.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--accent); z-index: 70; }

.article {
  background: var(--cream);
  padding: clamp(2.5em, 6vw, 5em) 0 clamp(3em, 7vw, 6em);
}
.article__wrap { width: min(100% - (var(--pad) * 2), 44rem); margin-inline: auto; }
.prose { font-size: 1.06rem; line-height: 1.72; color: rgba(33, 26, 18, 0.86); }
.prose > * + * { margin-top: 1.35em; }
.prose h2 { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1; text-transform: uppercase; color: var(--ink); margin-top: 2.2em; }
.prose h3 { font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); margin-top: 2em; }
.prose p { margin: 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { font-style: italic; }
.prose a { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0.4em 0; }
.prose li::marker { color: var(--accent-hover); }
.prose blockquote {
  margin: 2em 0;
  padding: 0.2em 0 0.2em 1.4em;
  border-left: 2px solid var(--accent);
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--ink);
}
.prose code { font-family: var(--mono); font-size: 0.86em; background: rgba(33, 26, 18, 0.08); padding: 0.15em 0.4em; border-radius: 3px; }
.prose hr { border: 0; height: 1px; background: var(--line-subtle); margin: 2.4em 0; }
.prose img { width: 100%; border: 1px solid var(--line-subtle); }
.prose figure { margin: 2em 0; }
.prose figcaption { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-top: 0.7em; }
.prose .embed { position: relative; aspect-ratio: 16 / 9; margin: 2em 0; background: #000; border: 1px solid var(--line-subtle); }
.prose .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.prose p:has(> .embed), .prose p:has(> iframe) { margin: 0; }

.article__foot { margin-top: 3.5em; display: flex; justify-content: space-between; gap: 1.5em; flex-wrap: wrap; align-items: center; }

.related { background: var(--sand); padding: clamp(3em, 6vw, 5em) 0; }
.related__head { display: flex; align-items: baseline; justify-content: space-between; gap: 2em; margin-bottom: 2em; flex-wrap: wrap; }

/* ---------- about / misc pages ---------- */

.page-hero { background: var(--scene); color: var(--cream); padding: 9em var(--pad) 3.5em; position: relative; overflow: hidden; }
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(246, 240, 226, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 240, 226, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(120% 90% at 70% 0%, #000 10%, transparent 70%);
}
.page-hero h1 { position: relative; z-index: 2; font-family: var(--display); font-size: clamp(2.6rem, 8vw, 7rem); line-height: 0.9; text-transform: uppercase; margin: 0.3em 0 0; }
.page-hero__inner { position: relative; z-index: 2; width: min(100%, var(--wrap)); margin-inline: auto; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5em; margin: 2.5em 0 0; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }
.stat { border-top: 1px solid var(--line-subtle); padding-top: 1em; }
.stat b { display: block; font-family: var(--display); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; color: var(--ink); }
.stat span { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }

.notfound { min-height: 100svh; display: grid; place-items: center; background: var(--scene); color: var(--cream); text-align: center; padding: 6em var(--pad); }
.notfound h1 { font-family: var(--display); font-size: clamp(4rem, 16vw, 13rem); line-height: 1; margin: 0; }
.notfound p { color: var(--white-soft); margin: 0.5em 0 2em; }

.skip {
  position: fixed;
  left: 1em;
  top: 1em;
  z-index: 200;
  padding: 0.9em 1.4em;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-400%);
}
.skip:focus { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__title .line > span { transform: none; animation: none; }
}

/* ==========================================================================
   SCENES — one full-viewport panel per post, scrolled one element at a time
   ========================================================================== */

body.scenes { scroll-snap-type: y proximity; }

.scene {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 8em var(--pad) 4.5em;
  overflow: hidden;
  background: var(--scene);
  color: var(--cream);
  scroll-snap-align: start;
}
.scene--hero { align-items: flex-end; }

.scene__bg {
  position: absolute;
  inset: -8% 0;
  background-image: var(--cover);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: translateY(calc(var(--p, 0) * -36px)) scale(1.04);
  transition: opacity 1s var(--ease), transform 0.2s linear;
  filter: saturate(0.92) contrast(1.04);
  will-change: transform, opacity;
}
.scene__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 10, 8, 0.5), rgba(11, 10, 8, 0.72) 52%, rgba(11, 10, 8, 0.95)),
    radial-gradient(90% 70% at 78% 12%, rgba(255, 214, 161, 0.12), transparent 60%);
}

.scene__hud {
  position: absolute;
  top: 5.6em;
  left: var(--pad);
  right: var(--pad);
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 1.5em;
  color: var(--white-dim);
}

.scene__inner {
  position: relative;
  z-index: 4;
  width: min(100%, var(--wrap));
  margin-inline: auto;
}
.scene--right .scene__inner { margin-left: auto; text-align: right; }
.scene--right .scene__inner .scene__excerpt { margin-left: auto; }
.scene--right .scene__inner .scene__actions { justify-content: flex-end; }
.scene__inner--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.scene__inner--center .scene__excerpt { margin-inline: auto; }

.scene__title {
  font-family: var(--display);
  font-size: clamp(2.2rem, 6.6vw, 6.2rem);
  line-height: 0.9;
  text-transform: uppercase;
  margin: 0.2em 0 0.35em;
}
.scene__title--xl { font-size: clamp(3.2rem, 12vw, 12rem); }
.scene__title a { text-decoration: none; }
.scene__title a:hover { color: var(--accent); }

.scene__excerpt { color: var(--white-soft); max-width: 46ch; margin: 0 0 1.4em; line-height: 1.6; }
.scene__excerpt--wide { max-width: 54ch; }
.scene__meta { display: flex; gap: 1.4em; color: var(--white-dim); margin-bottom: 1.4em; justify-content: inherit; }
.scene--right .scene__meta { justify-content: flex-end; }
.scene__inner--center .scene__meta { justify-content: center; }
.scene__actions { display: flex; gap: 0.7em; flex-wrap: wrap; }

.scene__cue {
  position: absolute;
  left: var(--pad);
  bottom: 1.8em;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.9em;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}

/* entrances: children rise in when a scene becomes active */
.scene .scene__inner > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
.scene.is-active .scene__inner > * { opacity: 1; transform: none; }
.scene.is-active .scene__inner > *:nth-child(2) { transition-delay: 0.09s; }
.scene.is-active .scene__inner > *:nth-child(3) { transition-delay: 0.18s; }
.scene.is-active .scene__inner > *:nth-child(4) { transition-delay: 0.27s; }
.scene.is-active .scene__inner > *:nth-child(5) { transition-delay: 0.36s; }
.scene.is-active .scene__bg { opacity: 1; }

/* the scroll rail */
.rail {
  position: fixed;
  right: 1.35em;
  top: 50%;
  transform: translateY(-50%);
  z-index: 55;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1em;
}
.rail__track { position: relative; width: 1px; height: 18vh; background: var(--hairline); }
.rail__track i { position: absolute; top: 0; left: 0; width: 100%; height: 0; background: var(--accent); }
.rail__dots { display: flex; flex-direction: column; gap: 0.6em; }
.rail__dot {
  width: 0.5em;
  height: 0.5em;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--white-faint);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.rail__dot:hover { border-color: var(--cream); transform: scale(1.25); }
.rail__dot.is-on { background: var(--accent); border-color: var(--accent); }

@media (max-width: 900px) {
  .rail { display: none; }
  .scene { padding-bottom: 5.5em; }
  .scene--right .scene__inner { text-align: left; }
  .scene--right .scene__inner .scene__excerpt { margin-left: 0; }
  .scene--right .scene__inner .scene__actions,
  .scene--right .scene__meta { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  body.scenes { scroll-snap-type: none; }
  .scene .scene__inner > * { opacity: 1; transform: none; }
  .scene__bg { opacity: 1; transform: none; }
}
