/* =====================================================================
   TITLE SEQUENCE  ·  tylerwince.com
   Lane: motion-first. The site is staged as a film's opening titles —
   type cuts in, duotone bars wipe the frame, every section is a scene
   that hits on cue. Nav is a fixed CUE SHEET (numbered scenes + timecodes
   + a tally light). Signature: the title-sequence reveal on load, then
   scene-by-scene cues on scroll. Anton / Instrument Sans / Overpass Mono.
   ===================================================================== */

/* ---------------------------------------------------------------------
   Tokens — light is the default scene; dark is the night cut.
   --------------------------------------------------------------------- */
:root {
  --color-bg: #ece9e0;       /* leader stock / warm paper        */
  --color-fg: #16161a;       /* near-black ink                   */
  --color-accent: #e8331c;   /* tally-light vermilion            */
  --color-accent-2: #1f2fff; /* electric blue (the second light) */
  --color-muted: #6f6d66;
  --color-border: #16161a;

  --paper: #f5f3ed;          /* a hair brighter than bg          */
  --film: #0c0c0f;           /* the black film band              */
  --on-film: #ece9e0;        /* type sitting on the film band    */
  --hair: rgba(22,22,26,.16);/* hairline rule on paper           */

  --font-display: "Anton", "Arial Narrow", "Haettenschweiler", sans-serif;
  --font-body: "Instrument Sans", system-ui, "Segoe UI", sans-serif;
  --font-mono: "Overpass Mono", ui-monospace, "SFMono-Regular", monospace;

  --rail: 172px;             /* width of the fixed cue sheet     */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --cut:  cubic-bezier(.7, 0, .15, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0c0c0f;
    --color-fg: #ece9e0;
    --color-accent: #ff4628;
    --color-accent-2: #4861ff;
    --color-muted: #8c897f;
    --color-border: #ece9e0;

    --paper: #141418;
    --film: #050507;
    --on-film: #ece9e0;
    --hair: rgba(236,233,224,.18);
  }
}

/* ---------------------------------------------------------------------
   Reset + base
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--color-accent) transparent;
  scrollbar-width: thin;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-body);
  font-size: clamp(15px, .55vw + 13px, 17px);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

::selection { background: var(--color-accent); color: #fff; }
::-moz-selection { background: var(--color-accent); color: #fff; }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border: 3px solid var(--color-bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--color-accent-2); }

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* filmic grain / scanline wash over everything (never eats clicks) */
.reel-grain {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg, rgba(0,0,0,.05) 0 1px, transparent 1px 3px),
    radial-gradient(130% 120% at 50% 40%, transparent 58%, rgba(0,0,0,.18) 100%);
  mix-blend-mode: multiply;
  opacity: .55;
}
@media (prefers-color-scheme: dark) {
  .reel-grain {
    background:
      repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px),
      radial-gradient(130% 120% at 50% 40%, transparent 55%, rgba(0,0,0,.55) 100%);
    mix-blend-mode: screen;
    opacity: .5;
  }
}

/* =====================================================================
   LAYOUT SHELL — the cue sheet (fixed) + the frame
   ===================================================================== */
.reel { position: relative; }

.frame {
  margin-left: var(--rail);
  overflow-x: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- the CUE SHEET (header nav) ---------------------------------- */
.site-header {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: var(--film);
  color: var(--on-film);
  border-right: 2px solid var(--color-border);
  padding: 20px 0 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.site-title {
  display: block;
  text-decoration: none;
  color: var(--on-film);
  padding: 0 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  margin-bottom: 12px;
}
.site-title-mark {
  display: block;
  width: 0; height: 0;
  border-left: 17px solid var(--color-accent);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-bottom: 10px;
  transition: transform .35s var(--ease);
}
.site-title:hover .site-title-mark { transform: translateX(4px) scale(1.05); }
.site-title-text {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: .92;
  text-transform: uppercase;
  letter-spacing: .015em;
}
.site-title-sub {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.site-nav { flex: 1; }
.nav-heading {
  margin: 4px 0 6px;
  padding: 0 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  opacity: .42;
}

.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-item { display: block; }
.nav-item a {
  position: relative;
  display: block;
  padding: 9px 16px 9px 22px;
  text-decoration: none;
  color: var(--on-film);
}
.nav-item a::before {           /* the cue's left accent strip */
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--color-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .3s var(--cut);
}
.cue-tally {
  position: absolute;
  left: 9px; top: 14px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .28;
  transition: background .25s, opacity .25s, box-shadow .25s;
}
.cue-no {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--color-accent);
}
.nav-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.3vw, 21px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .01em;
  transition: transform .28s var(--ease), color .2s;
}
.cue-tc {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  opacity: .4;
}

.nav-item a:hover .nav-name { transform: translateX(5px); }
.nav-item a:hover .cue-tally { background: var(--color-accent-2); opacity: 1; }
.nav-item a:hover::before { background: var(--color-accent-2); transform: scaleY(1); }

.nav-item a.active::before { transform: scaleY(1); }
.nav-item a.active { background: rgba(232,51,28,.10); }
.nav-item a.active .cue-tally {
  background: var(--color-accent);
  opacity: 1;
  box-shadow: 0 0 0 3px rgba(232,51,28,.25), 0 0 10px var(--color-accent);
}
.nav-item a.active .nav-name { color: var(--on-film); }

/* ---- the SLATE (banner) ------------------------------------------ */
.site-banner {
  background: var(--film);
  color: var(--on-film);
  border-bottom: 2px solid var(--color-border);
}
.banner-text {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(10px, 1.5vw, 20px);
  margin: 0;
  padding: 9px clamp(18px, 4vw, 56px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.slate-roll { display: inline-flex; align-items: center; }
.slate-roll::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  margin-right: 9px;
  animation: tally 1.5s steps(1) infinite;
}
.slate-no { color: var(--color-accent); }
.slate-name {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .05em;
}
.slate-note { opacity: .5; }
.slate-link {
  margin-left: auto;
  color: var(--on-film);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.slate-link:hover { color: var(--color-accent); }

/* ---- main column ------------------------------------------------- */
.site-main { flex: 1; display: block; }
.content-area { display: block; }

/* =====================================================================
   HOMEPAGE — the reel of scenes
   ===================================================================== */
.home { display: block; }

/* shared scene scaffolding */
.hero,
.home-section {
  position: relative;
  padding: clamp(40px, 7vw, 96px) clamp(20px, 5vw, 76px);
}
.home-section { border-top: 2px solid var(--color-border); }

/* the giant faint scene numeral that everything overlaps */
.scene-ghost {
  position: absolute;
  top: -.18em;
  right: clamp(-10px, 1vw, 24px);
  font-family: var(--font-display);
  font-size: clamp(150px, 30vw, 460px);
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 2px var(--color-fg);
  opacity: .06;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

/* ---- SCENE 01 · the title card ----------------------------------- */
.hero {
  min-height: min(86vh, 760px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero-slate {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 clamp(20px, 3vw, 40px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-muted);
  z-index: 2;
}
.hero-slate .hero-slate-no { color: var(--color-accent); }
.hero-slate::after {           /* clapper hazard stripes */
  content: "";
  flex: 1;
  height: 12px;
  background: repeating-linear-gradient(
    -45deg, var(--color-fg) 0 9px, transparent 9px 18px);
  opacity: .5;
}

.hero-title {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(72px, 17vw, 248px);
  line-height: .8;
  letter-spacing: -.01em;
  text-transform: uppercase;
  z-index: 2;
}
.hero-line { display: block; overflow: hidden; position: relative; z-index: 2; }
.hero-line-inner { display: block; }
.hero-line:last-child .hero-line-inner { color: var(--color-accent); }

/* the duotone wipe bar that the name crosses — sits behind the lower line */
.hero-wipe {
  position: absolute;
  left: clamp(-72px, -5vw, -16px);
  bottom: .1em;
  height: clamp(16px, 2.4vw, 38px);
  width: min(72%, 660px);
  background: var(--color-accent-2);
  z-index: 1;
  transform-origin: left center;
}

.hero-lead {
  position: relative;
  margin: clamp(22px, 3vw, 38px) 0 0;
  max-width: 30ch;
  font-size: clamp(17px, 1.7vw, 23px);
  line-height: 1.4;
  z-index: 2;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: clamp(20px, 2.6vw, 34px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-muted);
  z-index: 2;
  position: relative;
}
.hero-meta span { display: inline-flex; align-items: center; }
.hero-meta span::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--color-accent);
  margin-right: 8px;
}
.hero-cue-hint {
  position: relative;
  margin: clamp(26px, 4vw, 48px) 0 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-muted);
  z-index: 2;
}
.hero-cue-hint::after {
  content: "_";
  margin-left: 2px;
  color: var(--color-accent);
  animation: tally 1.1s steps(1) infinite;
}

/* ---- scene headers (apps / writing / reading) -------------------- */
.section-header {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px 24px;
  margin-bottom: clamp(20px, 3vw, 40px);
  z-index: 2;
}
.section-label {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 104px);
  line-height: .86;
  text-transform: uppercase;
  letter-spacing: -.005em;
}
.view-all {
  justify-self: end;
  align-self: end;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-fg);
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.view-all:hover { color: var(--color-accent); border-color: var(--color-accent-2); }

/* ---- APPS · the billing block ------------------------------------ */
.app-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 2;
}
.app-credit { display: block; }
.app-card {
  position: relative;
  display: grid;
  grid-template-columns: clamp(50px, 6vw, 96px) auto 1fr;
  align-items: center;
  gap: clamp(14px, 2.2vw, 34px);
  padding: clamp(18px, 2.6vw, 36px) 4px;
  border-top: 2px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.app-credit:last-child .app-card { border-bottom: 2px solid var(--color-border); }
.app-card::after {              /* the wipe that fills on hover */
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--cut);
  z-index: -1;
}
.app-num {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 78px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--color-fg);
  transition: color .3s, -webkit-text-stroke-color .3s;
}
.app-icon {
  width: clamp(38px, 4vw, 52px);
  height: clamp(38px, 4vw, 52px);
  object-fit: cover;
  border: 2px solid var(--color-border);
  background: var(--paper);
}
.app-icon--glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--color-bg);
  background: var(--color-fg);
}
.app-info {
  display: flex;
  align-items: baseline;
  gap: 16px;
  min-width: 0;
}
.app-name {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 56px);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: .005em;
  white-space: nowrap;
}
.app-leader {
  flex: 1;
  min-width: 18px;
  align-self: center;
  border-bottom: 2px dotted color-mix(in srgb, var(--color-fg) 42%, transparent);
}
.app-desc {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-muted);
  white-space: nowrap;
  transition: color .25s;
}
.app-go {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-accent);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .3s, transform .3s var(--ease);
}
.app-card:hover::after { transform: scaleX(1); }
.app-card:hover { color: #fff; }
.app-card:hover .app-num { color: rgba(255,255,255,.85); -webkit-text-stroke-color: transparent; }
.app-card:hover .app-icon { border-color: #fff; }
.app-card:hover .app-desc { color: rgba(255,255,255,.85); }
.app-card:hover .app-leader { border-bottom-color: rgba(255,255,255,.5); }
.app-card:hover .app-go { opacity: 1; transform: translateX(0); }

/* ---- WRITING · the shot list / EDL ------------------------------- */
.post-list {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}
.post-row {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: baseline;
  gap: clamp(12px, 2vw, 30px);
  padding: clamp(14px, 1.9vw, 26px) 4px;
  border-top: 2px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.post-list .post-row:last-child { border-bottom: 2px solid var(--color-border); }
.post-row::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 100%;
  width: 100%;
  background: var(--color-accent-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--cut);
  z-index: -1;
}
.post-cut-no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--color-accent);
  white-space: nowrap;
}
.post-date {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: .08em;
  color: var(--color-muted);
  white-space: nowrap;
  transition: color .25s;
}
.post-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.7vw, 42px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .005em;
  transition: color .2s;
}
.post-go {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--on-film);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .3s, transform .3s var(--ease);
  white-space: nowrap;
}
.post-row:hover::after { transform: scaleX(1); }
.post-row:hover { color: var(--on-film); }
.post-row:hover .post-date { color: rgba(236,233,224,.7); }
.post-row:hover .post-go { opacity: 1; transform: translateX(0); }

/* ---- READING · the filmstrip of lobby cards ---------------------- */
.book-grid {
  list-style: none;
  margin: 0;
  position: relative;
  z-index: 2;
  display: flex;
  gap: clamp(12px, 1.4vw, 20px);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 22px clamp(14px, 2vw, 26px);
  background:
    repeating-linear-gradient(90deg, var(--on-film) 0 11px, transparent 11px 30px) top    / 100% 13px no-repeat,
    repeating-linear-gradient(90deg, var(--on-film) 0 11px, transparent 11px 30px) bottom / 100% 13px no-repeat,
    var(--film);
  border: 2px solid var(--color-border);
}
.book-cell { flex: 0 0 auto; scroll-snap-align: start; }
.book-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: clamp(116px, 15vw, 162px);
  text-decoration: none;
  color: var(--on-film);
}
.book-card-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #1c1c20;
  border: 1px solid rgba(255,255,255,.12);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.book-card-cover--blank {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 46px;
  color: rgba(236,233,224,.5);
}
.book-card:hover .book-card-cover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 0 0 2px var(--color-accent);
}
.book-card-info { display: flex; flex-direction: column; gap: 2px; }
.book-card-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-card-author { font-size: 11px; opacity: .58; }
.book-card-status {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* =====================================================================
   ARTICLE / CONTENT PAGES — the shooting script
   ===================================================================== */
.article {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 86px) clamp(20px, 5vw, 52px);
}
.article-header { position: relative; margin-bottom: clamp(28px, 4vw, 52px); }
/* the leftover ".ticket-rip" span repurposed as a clapper stripe */
.ticket-rip {
  display: block;
  height: 12px;
  width: 120px;
  margin-bottom: 20px;
  background: repeating-linear-gradient(
    -45deg, var(--color-fg) 0 8px, transparent 8px 16px);
  opacity: .6;
}
.article-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 14px;
}
.article-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 88px);
  line-height: .9;
  text-transform: uppercase;
  letter-spacing: -.005em;
}
.article-description {
  margin: 18px 0 0;
  max-width: 60ch;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.45;
  color: var(--color-muted);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.meta-item { display: inline-flex; align-items: center; }
.meta-item + .meta-item::before {
  content: "·";
  margin-right: 18px;
  color: var(--color-accent);
}
.meta-item a { color: var(--color-accent); text-decoration: none; border-bottom: 1px solid; }

.article-body { font-size: 1.02rem; line-height: 1.72; }
.article-body > :is(p, ul, ol, blockquote, h2, h3, h4, h5, hr, dl, table) { max-width: 68ch; }
.article-body :is(h2, h3, h4) {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1;
  margin: 2em 0 .6em;
}
.article-body h2 { font-size: clamp(26px, 3vw, 38px); }
.article-body h3 { font-size: clamp(21px, 2.2vw, 28px); }
.article-body h4 { font-size: clamp(18px, 1.8vw, 22px); }
.article-body p { margin: 0 0 1.25em; }
.article-body :is(ul, ol) { padding-left: 1.3em; margin: 0 0 1.25em; }
.article-body li { margin: .3em 0; }
.article-body :is(p, li, blockquote) a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 2px solid color-mix(in srgb, var(--color-accent) 40%, transparent);
  transition: border-color .2s;
}
.article-body :is(p, li, blockquote) a:hover { border-bottom-color: var(--color-accent); }
.article-body img { margin: 1.6em 0; border: 2px solid var(--color-border); }

.pull-quote {
  position: relative;
  margin: 2em 0;
  padding: 6px 0 6px 28px;
  border-left: 4px solid var(--color-accent);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: .005em;
}
.pull-quote-mark { color: var(--color-accent); margin-right: 4px; }

/* ---- prose content elements -------------------------------------- */
blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--color-accent-2);
  color: var(--color-muted);
  font-style: italic;
}
code {
  font-family: var(--font-mono);
  font-size: .88em;
  background: color-mix(in srgb, var(--color-fg) 9%, transparent);
  padding: .12em .4em;
}
pre {
  font-family: var(--font-mono);
  font-size: .86rem;
  line-height: 1.55;
  background: var(--film);
  color: var(--on-film);
  padding: 18px 20px;
  overflow-x: auto;
  border-left: 4px solid var(--color-accent);
  margin: 1.6em 0;
}
pre code { background: none; padding: 0; color: inherit; }
hr {
  border: 0;
  height: 12px;
  margin: 2.4em 0;
  background: repeating-linear-gradient(
    -45deg, var(--color-fg) 0 8px, transparent 8px 16px);
  opacity: .5;
}

/* =====================================================================
   WRITING INDEX (writing.md)
   ===================================================================== */
.post-index { display: flex; flex-direction: column; }
.post-index-header {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 10px;
}
.post-index-row {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 6px 26px;
  align-items: baseline;
  padding: clamp(16px, 2vw, 24px) 4px;
  border-top: 2px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.post-index .post-index-row:last-child { border-bottom: 2px solid var(--color-border); }
.post-index-row::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--cut);
  z-index: -1;
}
.post-index-date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--color-muted);
  transition: color .2s;
}
.post-index-title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 38px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .005em;
}
.post-index-desc {
  display: block;
  margin-top: 8px;
  max-width: 60ch;
  color: var(--color-muted);
  font-size: .96rem;
  line-height: 1.45;
  transition: color .2s;
}
.post-index-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.post-index-topic {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--color-border);
  color: var(--color-fg);
  transition: color .2s, border-color .2s, background .2s;
}
.post-index-row:hover { color: #fff; }
.post-index-row:hover::after { transform: scaleX(1); }
.post-index-row:hover .post-index-date,
.post-index-row:hover .post-index-desc { color: rgba(255,255,255,.82); }
.post-index-row:hover .post-index-topic {
  color: #fff;
  border-color: rgba(255,255,255,.6);
}

/* =====================================================================
   READING PAGE (reading.md)
   ===================================================================== */
.reading-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: clamp(28px, 4vw, 44px);
  border: 2px solid var(--color-border);
  background: var(--film);
  color: var(--on-film);
}
.stat-item {
  padding: clamp(16px, 2vw, 24px) clamp(12px, 1.5vw, 18px);
  border-right: 1px solid rgba(255,255,255,.14);
}
.stat-item:last-child { border-right: 0; }
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 60px);
  line-height: .9;
  color: var(--on-film);
}
.stat-item[data-stat="reading-now"] .stat-value { color: var(--color-accent); }
.stat-label {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .6;
}

.sort-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.sort-link {
  text-decoration: none;
  color: var(--color-fg);
  padding: 4px 10px;
  border: 1px solid var(--color-border);
  transition: color .2s, background .2s, border-color .2s;
}
.sort-link:hover { border-color: var(--color-accent-2); color: var(--color-accent-2); }
.sort-link.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.book-list { display: flex; flex-direction: column; }
.year-section { margin-bottom: clamp(26px, 3.5vw, 44px); }
.year-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 8vw, 96px);
  line-height: .85;
  letter-spacing: -.01em;
  color: transparent;
  -webkit-text-stroke: 2px var(--color-fg);
  margin: 0 0 6px;
}

.book-line {
  position: relative;
  display: grid;
  grid-template-columns: 14px 40px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 4px;
  border-top: 1px solid var(--hair);
  text-decoration: none;
  color: inherit;
  transition: padding-left .25s var(--ease);
}
.book-list .book-line:last-child { border-bottom: 1px solid var(--hair); }
.book-line-flag {
  width: 8px; height: 8px;
  background: var(--color-fg);
  opacity: .35;
  transition: background .2s, opacity .2s;
}
.book-line[data-rating="5"] .book-line-flag { background: var(--color-accent); opacity: 1; }
.book-line-cover {
  width: 40px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--film);
  border: 1px solid var(--color-border);
  display: block;
}
.book-line-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-line-main { min-width: 0; }
.book-line-title {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
}
.book-line-author { display: block; color: var(--color-muted); font-size: .85rem; }
.book-line-rating {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-accent);
  white-space: nowrap;
}
.book-line:hover { padding-left: 12px; }
.book-line:hover .book-line-flag { background: var(--color-accent-2); opacity: 1; }
.book-line:hover .book-line-title { color: var(--color-accent); }

/* =====================================================================
   APPS PAGE (apps.md)
   ===================================================================== */
.app-showcase {
  display: flex;
  flex-direction: column;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.app-showcase-card {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(18px, 2.6vw, 32px) 4px;
  border-top: 2px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.app-showcase .app-showcase-card:last-child { border-bottom: 2px solid var(--color-border); }
.app-showcase-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--cut);
  z-index: -1;
}
.app-showcase-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 70px);
  line-height: .9;
  text-transform: uppercase;
}
.app-showcase-detail {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-align: right;
  transition: color .2s;
}
.app-showcase-card:hover { color: #fff; }
.app-showcase-card:hover::after { transform: scaleX(1); }
.app-showcase-card:hover .app-showcase-detail { color: rgba(255,255,255,.82); }

.philosophy-section { margin-top: clamp(30px, 4vw, 56px); }
.philosophy-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 52px);
  text-transform: uppercase;
  margin: 0 0 24px;
}
.philosophy-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border-top: 2px solid var(--color-border);
  border-left: 2px solid var(--color-border);
}
.philosophy-item {
  padding: clamp(18px, 2vw, 26px);
  border-right: 2px solid var(--color-border);
  border-bottom: 2px solid var(--color-border);
}
.philosophy-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 24px);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.philosophy-title::before {
  content: "\25B8  ";
  color: var(--color-accent);
}
.philosophy-desc { color: var(--color-muted); font-size: .95rem; line-height: 1.5; }

/* ---- app feature / stack blocks (inside app pages) --------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 1.8em 0;
}
.feature {
  padding: 18px;
  border: 2px solid var(--color-border);
  border-left-width: 5px;
  border-left-color: var(--color-accent);
}
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 1.8em 0;
}
.stack-card {
  display: block;
  padding: 18px;
  border: 2px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  transition: background .25s, color .25s;
}
.stack-card:hover { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.stack-card-title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 24px);
  text-transform: uppercase;
}
.stack-card-count {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.stack-card:hover .stack-card-count { color: #fff; }

/* =====================================================================
   NOW PAGE (now.md)
   ===================================================================== */
.currently-reading {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 1.4em 0;
}
.reading-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border: 2px solid var(--color-border);
  border-left: 5px solid var(--color-accent);
  background: var(--paper);
}
.reading-card-title { font-family: var(--font-display); font-size: 19px; text-transform: uppercase; }
.reading-card-author { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--color-muted); }
.page-footer-note {
  margin-top: 2.4em;
  padding-top: 18px;
  border-top: 1px solid var(--hair);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--color-muted);
}
.page-footer-note a { color: var(--color-accent); }

/* =====================================================================
   ARCHIVE PAGE (archive.md) — the contact sheet
   ===================================================================== */
.archive-today {
  position: relative;
  padding: clamp(26px, 4vw, 48px);
  margin-bottom: clamp(28px, 4vw, 48px);
  background: var(--film);
  color: var(--on-film);
  border: 2px solid var(--color-border);
  border-top: 8px solid var(--color-accent);
  overflow: hidden;
}
.archive-today-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.archive-today-theme {
  display: block;
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 104px);
  line-height: .86;
  text-transform: uppercase;
}
.archive-today-manifesto {
  margin: 16px 0 0;
  max-width: 64ch;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.5;
  color: rgba(236,233,224,.82);
}
.archive-today-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 22px;
}
.archive-meta-item {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border: 1px solid rgba(255,255,255,.3);
  color: var(--on-film);
}
.archive-palette { display: inline-flex; gap: 4px; }
.archive-palette i { width: 16px; height: 16px; display: block; border: 1px solid rgba(255,255,255,.3); }

.archive-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}
.archive-count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.archive-surprise {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  background: var(--color-fg);
  color: var(--color-bg);
  border: 2px solid var(--color-border);
  padding: 9px 16px;
  transition: background .2s, color .2s;
}
.archive-surprise:hover { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }

.archive-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: clamp(16px, 2vw, 26px);
}
.archive-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.archive-thumb {
  display: block;
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--film);
  border: 2px solid var(--color-border);
  /* sprocket edges, top + bottom */
  background-image:
    repeating-linear-gradient(90deg, var(--on-film) 0 7px, transparent 7px 20px),
    repeating-linear-gradient(90deg, var(--on-film) 0 7px, transparent 7px 20px);
  background-size: 100% 8px, 100% 8px;
  background-position: top, bottom;
  background-repeat: no-repeat;
  padding: 9px 0;
}
.archive-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s var(--ease);
}
.archive-card:hover .archive-thumb img { transform: scale(1.04); }
.archive-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 16px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 20px;
  text-transform: uppercase;
  color: rgba(236,233,224,.6);
}
.archive-card-info { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 3px; }
.archive-date {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.archive-theme {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  text-transform: uppercase;
  line-height: 1;
}
.archive-desc {
  font-size: .82rem;
  line-height: 1.4;
  color: var(--color-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.archive-card--lost { opacity: .6; }
.archive-card--lost .archive-thumb { filter: grayscale(1); }

/* =====================================================================
   404 — NO SIGNAL
   ===================================================================== */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(40px, 8vw, 90px) 20px;
}
.error-code {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(110px, 26vw, 340px);
  line-height: .8;
  letter-spacing: -.02em;
  color: var(--color-accent);
  text-shadow: 5px 0 var(--color-accent-2), -5px 0 var(--color-fg);
  animation: glitch 2.6s steps(2) infinite;
}
.error-page h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 4vw, 40px);
  text-transform: uppercase;
  margin: 14px 0 0;
}
.error-message { color: var(--color-muted); margin: 12px 0 26px; }
.error-page a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-fg);
  border: 2px solid var(--color-border);
  padding: 10px 18px;
  transition: background .2s, color .2s;
}
.error-page a:hover { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }

/* =====================================================================
   FOOTER — the end credits
   ===================================================================== */
.site-footer {
  background: var(--film);
  color: var(--on-film);
  border-top: 2px solid var(--color-border);
  padding: clamp(40px, 6vw, 76px) clamp(20px, 5vw, 64px) clamp(28px, 4vw, 48px);
}
.footer-colophon, .footer-endmark {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 34px;
}
.footer-mark {
  flex: 0 0 auto;
  width: 0; height: 0;
  border-left: 22px solid var(--color-accent);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-top: 4px;
}
.footer-statement { margin: 0; max-width: 62ch; font-size: 14px; line-height: 1.6; color: rgba(236,233,224,.82); }
.footer-statement-lead {
  font-family: var(--font-display);
  font-size: 18px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-right: 8px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 28px;
}
.footer-col { min-width: 0; }
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--on-film);
  font-size: 14px;
  padding: 3px 0;
  transition: color .2s, transform .2s;
}
.footer-col a:hover { color: var(--color-accent); transform: translateX(4px); }
.social-list { list-style: none; margin: 0; padding: 0; }
.footer-folio { font-family: var(--font-mono); font-size: 13px; margin: 0 0 4px; }
.footer-set { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; opacity: .5; margin: 0; }

/* =====================================================================
   MOTION — the title-sequence cues
   (pre-states apply ONLY when JS has armed `html.cues`; no-JS & reduced
    motion show everything immediately)
   ===================================================================== */
@keyframes tally { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .15; } }
@keyframes cueRoll { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes glitch {
  0%, 100% { transform: none; text-shadow: 5px 0 var(--color-accent-2), -5px 0 var(--color-fg); }
  48%      { transform: translate(-2px, 1px); }
  50%      { transform: translate(3px, -1px); text-shadow: -6px 0 var(--color-accent-2), 4px 0 var(--color-fg); }
  52%      { transform: translate(-1px, 0); }
}

/* rail rolls in on load */
html.cues .nav-item { opacity: 0; }
html.cues.is-ready .nav-item { animation: cueRoll .5s var(--ease) both; }
html.cues.is-ready .nav-item:nth-child(1) { animation-delay: .05s; }
html.cues.is-ready .nav-item:nth-child(2) { animation-delay: .11s; }
html.cues.is-ready .nav-item:nth-child(3) { animation-delay: .17s; }
html.cues.is-ready .nav-item:nth-child(4) { animation-delay: .23s; }
html.cues.is-ready .nav-item:nth-child(5) { animation-delay: .29s; }
html.cues.is-ready .nav-item:nth-child(6) { animation-delay: .35s; }

/* hero title — letters cut up into the mask */
html.cues .hero-line-inner { transform: translateY(112%); transition: transform .72s var(--cut); }
html.cues .hero-line:last-child .hero-line-inner { transition-delay: .12s; }
.hero.is-cued .hero-line-inner { transform: translateY(0); }

html.cues .hero-wipe { transform: scaleX(0); transition: transform .85s var(--cut) .1s; }
.hero.is-cued .hero-wipe { transform: scaleX(1); }

html.cues :is(.hero-slate, .hero-lead, .hero-meta, .hero-cue-hint) { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
html.cues .hero-slate { transition-delay: .15s; }
html.cues .hero-lead { transition-delay: .42s; }
html.cues .hero-meta { transition-delay: .52s; }
html.cues .hero-cue-hint { transition-delay: .62s; }
.hero.is-cued :is(.hero-slate, .hero-lead, .hero-meta, .hero-cue-hint) { opacity: 1; transform: none; }

/* scene cuts — headers + rows snap in on scroll-entry */
html.cues :is(.section-label, .section-title, .view-all) { opacity: 0; transform: translateY(20px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
html.cues .section-title { transition-delay: .08s; }
html.cues .view-all { transition-delay: .16s; }
.home-section.is-cued :is(.section-label, .section-title, .view-all) { opacity: 1; transform: none; }

html.cues :is(.app-credit, .post-row, .book-cell) { opacity: 0; transform: translateY(26px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.home-section.is-cued :is(.app-credit, .post-row, .book-cell) { opacity: 1; transform: none; }
.home-section.is-cued .app-credit:nth-child(2),
.home-section.is-cued .post-row:nth-child(2),
.home-section.is-cued .book-cell:nth-child(2) { transition-delay: .07s; }
.home-section.is-cued .app-credit:nth-child(3),
.home-section.is-cued .post-row:nth-child(3),
.home-section.is-cued .book-cell:nth-child(3) { transition-delay: .14s; }
.home-section.is-cued .app-credit:nth-child(n+4),
.home-section.is-cued .post-row:nth-child(n+4),
.home-section.is-cued .book-cell:nth-child(n+4) { transition-delay: .2s; }

/* =====================================================================
   RESPONSIVE — mobile turns the cue sheet into a bottom scrubber
   ===================================================================== */
@media (max-width: 860px) {
  .frame { margin-left: 0; padding-bottom: 64px; }

  .site-header {
    inset: auto 0 0 0;
    width: 100%;
    height: 60px;
    flex-direction: row;
    align-items: center;
    padding: 0;
    border-right: 0;
    border-top: 2px solid var(--color-border);
    overflow-x: auto;
    overflow-y: hidden;
  }
  .site-title {
    flex: 0 0 auto;
    padding: 0 14px;
    margin: 0;
    border-bottom: 0;
    border-right: 1px solid rgba(255,255,255,.16);
    display: flex;
    align-items: center;
    gap: 9px;
    height: 100%;
  }
  .site-title-mark { margin: 0; border-left-width: 13px; border-top-width: 8px; border-bottom-width: 8px; }
  .site-title-text { font-size: 15px; }
  .site-title-sub { display: none; }

  .nav-heading { display: none; }
  .nav-list { display: flex; height: 100%; }
  .nav-item a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 60px;
    padding: 0 14px 0 16px;
    white-space: nowrap;
  }
  .cue-tally { top: 9px; left: 6px; }
  .cue-tc { display: none; }
  .nav-name { font-size: 15px; }

  /* rail items already visible; keep load anim only if present */
  html.cues.is-ready .nav-item { animation-duration: .35s; }

  .reading-stats { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: 0; }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.14); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .app-card { grid-template-columns: auto 1fr; gap: 14px; }
  .app-num { grid-row: 1 / 3; align-self: start; }
  .app-info { flex-wrap: wrap; }
  .app-leader { display: none; }
  .app-name { white-space: normal; }

  .post-row { grid-template-columns: auto 1fr; gap: 6px 14px; }
  .post-go { display: none; }
  .post-cut-no { grid-row: 1; }
  .post-date { grid-column: 1; }
  .post-title { grid-column: 1 / -1; }

  .post-index-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .reading-stats { grid-template-columns: 1fr 1fr; }
}

/* =====================================================================
   REDUCED MOTION — kill all choreography, show everything
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html.cues :is(.hero-line-inner, .hero-wipe, .hero-slate, .hero-lead, .hero-meta,
    .hero-cue-hint, .section-label, .section-title, .view-all, .app-credit,
    .post-row, .book-cell, .nav-item) {
    opacity: 1 !important;
    transform: none !important;
  }
  .reel-grain { display: none; }
}
