/* ============================================================
   MUSINGS v2 — consolidated stylesheet
   All "FIX / refinement N / FINAL / REAL FINAL" sediment from
   the original file has been collapsed into a single resolved
   system.  v1 behaviour is preserved behind [data-*] selectors
   so the Tweaks panel can A/B each change.
   ============================================================ */

:root {
  --bg-0: #141414;
  --bg-1: #181818;
  --bg-2: #151515;
  --text: #f6f2ea;
  --text-soft: rgba(246, 242, 234, .78);
  --text-mute: rgba(246, 242, 234, .48);
  --line: rgba(246, 242, 234, .07);

  --amber: #af8570;
  --amber-soft: rgba(175, 133, 112, .65);
  --amber-dim: rgba(175, 133, 112, .28);

  /* per-area knobs the tweaks panel can override on <body> */
  --video-bri: .85;
  --video-sat: .85;
  --video-scrim-left: 22%;
  --title-scale: 1.30;
  --toggle-alpha: .58;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 40%, var(--bg-2) 100%);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 28px;
  background: rgba(10, 10, 10, .38);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand-wordmark { height: 32px; width: auto; opacity: .72; }
.site-nav {
  display: flex; gap: 40px;
  font-size: 13px; letter-spacing: .08em; font-weight: 300;
  text-transform: uppercase;
}
.site-nav a {
  position: relative;
  color: rgba(255, 255, 255, .55);
  transition: color .3s ease, text-shadow .3s ease;
}
.site-nav a:hover {
  color: rgba(255, 255, 255, .95);
  text-shadow: 0 0 18px rgba(255, 255, 255, .22);
}
.site-nav a::after {
  content: "";
  position: absolute; left: 50%; bottom: -8px;
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 0 8px rgba(255, 255, 255, .6);
  opacity: 0;
  transform: translateX(-50%) translateY(4px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s cubic-bezier(.2, .7, .1, 1);
}
.site-nav a:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (min-width: 769px) {
  .site-header { gap: clamp(24px, 4vw, 72px); }
  .brand { flex: 0 0 auto; width: 34px; height: 32px; overflow: hidden; }
  .brand-wordmark { width: 34px; height: 32px; object-fit: contain; display: block; }
  .site-nav--desktop {
    flex: 1 1 auto; min-width: 0;
    justify-content: space-between;
    gap: clamp(38px, 6vw, 96px);
    font-size: clamp(11.5px, .68vw, 13px);
    padding-left: clamp(22px, 2.4vw, 44px);
    padding-right: clamp(22px, 3.2vw, 58px);
  }
  .site-nav--desktop a { white-space: nowrap; flex: 0 0 auto; }
}
.site-nav--desktop { display: flex; }
.site-nav--mobile  { display: none; }
@media (max-width: 768px) {
  .site-header { padding: 12px 16px; }
  .site-nav { gap: 22px; font-size: 12.5px; }
  .brand-wordmark { height: 15px; }
  .site-nav--desktop { display: none; }
  .site-nav--mobile  { display: flex; gap: 18px; font-size: 12px; }
  .site-nav--mobile a { color: rgba(255, 255, 255, .52); transition: color .3s ease; }
  .site-nav--mobile a:hover { color: rgba(255, 255, 255, .95); }
}

/* ── INTRO ANIMATIONS ── */
.intro-fade { opacity: 0; animation: fadeIn .9s ease forwards; }
.intro-rise { opacity: 0; transform: translateY(16px); animation: riseIn .85s cubic-bezier(.2, .7, .1, 1) forwards; }
.delay-1 { animation-delay: .08s; }
.delay-2 { animation-delay: .16s; }
.delay-3 { animation-delay: .24s; }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes riseIn { to { opacity: 1; transform: translateY(0); } }

/* ── LOAD ENTRANCE — ported from mmusic (cubic-bezier(0.22,1,0.36,1),
   960ms "cinematic" rise). The hero arrives as a soft, staggered cascade:
   back-link → wordmark → tagline → epigraph, with the video easing in
   alongside. Mirrors mmusic's `heroUp` keyframe + `--ease`/`--m-cine`. ── */
@keyframes mm-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .back-to-mm,
  .musings-logo-main,
  .musings-logo-sub,
  .musings-logo-caption,
  .musings-video-wrap {
    animation: mm-rise 960ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .back-to-mm           { animation-delay:  40ms; }
  .musings-video-wrap   { animation-delay: 120ms; }
  .musings-logo-main    { animation-delay: 160ms; }
  .musings-logo-sub     { animation-delay: 300ms; }
  .musings-logo-caption { animation-delay: 440ms; }
}

/* ── BACK TO MM ── */
.back-to-mm { padding: 18px clamp(18px, 5vw, 64px) 0; display: flex; align-items: center; }
.back-to-mm-link {
  display: inline-flex; align-items: center; gap: 12px;
  color: rgba(246, 242, 234, .55);
  font-size: 12px; letter-spacing: .14em; font-weight: 300;
  transition: color .3s;
}
.back-to-mm-link:hover { color: rgba(246, 242, 234, .92); }
.back-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border: 1px solid rgba(246, 242, 234, .22);
  border-radius: 50%;
  font-size: 14px; line-height: 1;
  transition: border-color .3s, transform .3s, color .3s;
}
.back-to-mm-link:hover .back-arrow {
  border-color: var(--amber);
  color: var(--amber);
  transform: translateX(-3px);
}
.back-label { letter-spacing: .12em; }

/* ============================================================
   HERO
   ============================================================ */
.musings-hero {
  display: flex; align-items: stretch;
  margin-top: 28px;
  min-height: min(56vh, 560px);
}
.page-header {
  flex: 0 0 min(44vw, 560px);
  min-width: 240px;
  padding: clamp(32px, 4vw, 64px) clamp(18px, 5vw, 64px);
  display: flex; flex-direction: column; justify-content: center;
}

/* v2 (default) — 2-level identity block: logo + one subtitle */
.musings-logo-row { display: block; }
.musings-logo {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  width: auto; margin: 0;
  color: var(--text);
}
.musings-logo-main {
  display: inline-block;
  white-space: nowrap;
  font-size: clamp(36px, 5.15vw, 74px);
  line-height: .86;
  font-weight: 200;
  font-variation-settings: "wght" 200;
  letter-spacing: -.085em;
  color: rgba(246, 242, 234, .94);
}
.musings-logo-main .mm {
  font-weight: 500;
  font-variation-settings: "wght" 500;
  letter-spacing: -.09em;
}
.musings-word-gap { display: inline-block; width: .10em; }
.musings-logo-sub {
  display: inline-block;
  margin-top: clamp(8px, .8vw, 12px);
  font-size: clamp(11px, .95vw, 14px);
  line-height: 1; font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0;
  color: rgba(175, 133, 112, .9);
  white-space: nowrap;
}
.page-eyebrow,
.page-subtitle { display: none; }            /* v2 default: hidden */

/* descriptive subtext under the wordmark — distilled from the founding note.
   The hero column is vertically centred, so adding this below the logo lifts
   the wordmark upward on its own (no manual offset needed). */
.musings-logo-caption {
  margin-top: clamp(18px, 2vw, 24px);
  max-width: 30em;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.68;
  font-weight: 400;
  font-style: normal;
  letter-spacing: .075em;
  color: rgba(246, 242, 234, .68);
}
.musings-logo-caption .cap-turn { color: rgba(246, 242, 234, .52); }
/* extra breathing room between the wordmark block and the epigraph — desktop only */
@media (min-width: 641px) {
  .musings-logo-caption { margin-top: clamp(28px, 3vw, 44px); }
}

/* ── VIDEO ── */
.musings-video-wrap {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
  min-height: min(56vh, 560px);
}
.musings-video-poster,
.musings-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 35%;
  z-index: 2;
  filter: saturate(var(--video-sat)) brightness(var(--video-bri));
  transition: filter .6s ease;
}
.musings-video-poster { z-index: 1; transition: opacity .8s ease; }
.musings-video-poster.hidden { opacity: 0; }
.musings-hero:hover .musings-video { filter: saturate(.95) brightness(1); }

/* scrim — left density driven by --video-scrim-left so the tweak can ease it */
.musings-video-wrap::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(90deg,  var(--bg-0) 0%, rgba(20, 20, 20, .55) calc(var(--video-scrim-left) * .55), transparent var(--video-scrim-left)),
    linear-gradient(270deg, var(--bg-0) 0%, rgba(20, 20, 20, .30) 6%, transparent 18%),
    linear-gradient(180deg, var(--bg-0) 0%, rgba(20, 20, 20, .30) 6%, transparent 18%),
    linear-gradient(0deg,   var(--bg-0) 0%, rgba(20, 20, 20, .30) 6%, transparent 18%);
}

/* mobile hero — single column, poster only, no triple-mask trickery */
@media (max-width: 640px) {
  .musings-hero { flex-direction: column; margin-top: 8px; min-height: 0; }
  .page-header { width: 100%; padding-top: 14px; padding-bottom: 20px; }
  .musings-video-wrap {
    aspect-ratio: 16 / 9;
    width: 100%;
    min-height: 0;
    height: auto;
  }
  .musings-video { display: block; }   /* re-enabled on mobile — autoplay/muted/playsinline already in markup */
  .musings-video-wrap::after {
    background:
      linear-gradient(180deg, var(--bg-0) 0%, rgba(20, 20, 20, .35) 14%, transparent 32%),
      linear-gradient(0deg,   var(--bg-0) 0%, rgba(20, 20, 20, .50) 14%, transparent 32%);
  }
  .musings-logo-main { font-size: clamp(42px, 13vw, 64px); }
}

/* ============================================================
   LIST
   ============================================================ */
.musings-list {
  padding: clamp(44px, 5.5vw, 78px) clamp(18px, 5vw, 64px) clamp(48px, 6vw, 72px);
}
.musings-loading {
  padding: 80px 0; font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(246, 242, 234, .16);
}

.musing-entry {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-areas: "date content";
  column-gap: clamp(20px, 3vw, 40px);
  padding: 52px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.musing-datecol { grid-area: date; }
.musing-content {
  grid-area: content;
  min-width: 0;
  max-width: none;
  position: relative;
  z-index: 2;
}
@media (min-width: 769px) {
  .musing-entry { grid-template-columns: 56px minmax(0, 1fr); }
  .musing-content { max-width: calc(100% - 80px); }
  .musing-image { width: auto; max-width: 280px; }
}


/* vertical amber tick — dim at rest, lights up on frame hover */
.musing-entry::before {
  content: '';
  position: absolute; left: 0; top: 52px; bottom: 52px;
  width: 2px;
  background: linear-gradient(180deg, var(--amber) 0%, rgba(175, 133, 112, .2) 100%);
  opacity: .18;
  transition: opacity 1.2s cubic-bezier(.4, 0, .2, 1);
}
.musing-entry:hover::before { opacity: .9; }

/* hover underline sweep (kept but reserved as the only horizontal flourish) */
.musing-entry::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--amber);
  opacity: .5;
  transition: width .6s cubic-bezier(.16, 1, .3, 1);
}
.musing-entry:hover::after { width: 100%; }

/* date column */
.musing-datecol {
  display: flex; flex-direction: column; align-items: center;
  padding-top: 6px; gap: 6px;
}
.musing-day {
  font-size: 22px; font-weight: 300;
  letter-spacing: -.02em; line-height: 1;
  color: rgba(175, 133, 112, .38);
  font-variant-numeric: tabular-nums;
  transition: opacity 1.4s cubic-bezier(.4, 0, .2, 1);
}
.musing-month {
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(175, 133, 112, .26);
  line-height: 1;
  transition: opacity 1.4s cubic-bezier(.4, 0, .2, 1);
}
/* When the frame is lit on mobile, the post slides over the date column —
   so the date dissolves slowly into nothing rather than competing.
   Desktop keeps the date visible at all times. */
@media (max-width: 768px) {
  .musing-entry:hover .musing-day,
  .musing-entry:hover .musing-month,
  .musing-entry.is-focused .musing-day,
  .musing-entry.is-focused .musing-month {
    opacity: 0;
  }
}

/* content — ink-in effect via transitions on the active class */
.musing-content {
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 1.1s cubic-bezier(.16, 1, .3, 1),
              transform 1.1s cubic-bezier(.16, 1, .3, 1);
}
.musing-entry.ink-visible .musing-content {
  opacity: 1;
  transform: translateX(0);
}

.musing-title-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
  max-width: 560px;
}
/* Desktop: lift the permalink out of the flow so the title can use the full
   560px of its row (right edge aligned with the body block below) instead of
   surrendering ~40px to the icon — which forced long titles to wrap at L/XL. */
@media (min-width: 769px) {
  .musing-title-row { position: relative; }
  .musing-title-row .musing-permalink { position: absolute; right: -38px; top: 6px; }
}
.musing-title {
  font-size: clamp(22px, calc(2.0vw * var(--title-scale)), 32px);
  font-weight: 300; letter-spacing: -.045em; line-height: 1.18;
  cursor: pointer;
  color: rgba(246, 242, 234, .38);
  transition: color 1.1s cubic-bezier(.4, 0, .2, 1),
              text-shadow 1.1s cubic-bezier(.4, 0, .2, 1);
  text-wrap: pretty;
  flex: 1 1 auto;
  min-width: 0;
}
.musing-title:hover,
.musing-entry:hover .musing-title {
  color: #ffffff;
  text-shadow: 0 0 24px rgba(255, 255, 255, .18);
  /* no translateX — the whole content slides via the overlay; an extra title
     shift would misalign it relative to the body lines underneath. */
}

/* permalink — appears on hover, copies the canonical URL */
.musing-permalink {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(246, 242, 234, .14);
  border-radius: 50%;
  color: rgba(246, 242, 234, .42);
  font-family: inherit;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity .35s ease, transform .35s ease, color .25s, border-color .25s, background .25s;
  position: relative;
}
.musing-entry:hover .musing-permalink,
.musing-permalink:focus-visible {
  opacity: 1;
  transform: translateY(0);
}
.musing-permalink:hover {
  color: var(--amber);
  border-color: var(--amber-dim);
  background: rgba(175, 133, 112, .06);
}
.musing-permalink:focus-visible { outline: none; }
.musing-permalink svg { display: block; transition: opacity .2s; }
.permalink-flash {
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%) translateX(4px);
  white-space: nowrap;
  font-size: 9.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--amber);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.musing-permalink.is-flashing .permalink-flash {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.musing-permalink.is-flashing svg { opacity: .35; }

/* language toggle — bilingual entries only */
.lang-toggle {
  display: inline-flex; align-items: stretch;
  margin-bottom: 18px;
  font-size: 11.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  border: 1px solid rgba(246, 242, 234, .06);
  border-radius: 999px;
  padding: 2px;
  background: rgba(246, 242, 234, .015);
  opacity: .55;
  transition: opacity 1.1s cubic-bezier(.4, 0, .2, 1),
              border-color 1.1s cubic-bezier(.4, 0, .2, 1);
}
.musing-entry:hover .lang-toggle {
  opacity: 1;
  border-color: rgba(246, 242, 234, .16);
}
.lang-seg {
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  background: none;
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  color: rgba(246, 242, 234, .55);
  cursor: pointer;
  position: relative;
  transition: color .25s ease, background .25s ease;
}
.lang-seg:hover { color: rgba(246, 242, 234, .92); }
.lang-seg.is-active {
  color: var(--amber);
  background: rgba(175, 133, 112, .12);
}
.lang-sep { display: none; }

.musing-body {
  font-size: 15px; line-height: 1.85;
  color: rgba(246, 242, 234, .28);
  font-weight: 300;
  max-width: 560px;
  max-height: 92px; overflow: hidden;
  position: relative;
  transition: max-height .7s cubic-bezier(.16, 1, .3, 1),
              color 1.1s cubic-bezier(.4, 0, .2, 1);
}
.musing-entry:hover .musing-body { color: var(--text-soft); }
.musing-body p { margin-bottom: 1.1em; }
.musing-body p:last-child { margin-bottom: 0; }
.musing-body::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 56px;
  background: linear-gradient(transparent, var(--bg-1));
  transition: opacity .5s;
  pointer-events: none;
}
.musing-entry.expanded .musing-body { max-height: 6000px; }
.musing-entry.expanded .musing-body::after { opacity: 0; }
.musing-body em {
  font-style: italic;
  font-weight: 400;
  color: inherit;   /* follow the body's dim/lit state — no longer hardcoded */
}

.musing-image-wrap {
  margin-top: 28px;
  max-width: 560px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  display: flex;
  justify-content: center;
  transition: max-height .7s cubic-bezier(.16, 1, .3, 1),
              opacity .5s ease;
}
.musing-entry.expanded .musing-image-wrap {
  max-height: 800px;
  opacity: 1;
}
.musing-image {
  display: block;
  width: 70%;
  max-width: 320px;
  height: auto;
  border-radius: 2px;
  filter: brightness(.78) contrast(.75);
  transition: filter .8s cubic-bezier(.4, 0, .2, 1);
}
.musing-entry.expanded .musing-image {
  filter: brightness(.48) contrast(.85);
}

.musing-toggle {
  margin-top: 22px;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: inherit;
  font-size: 11.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(246, 242, 234, .16);
  cursor: pointer;
  border: none; background: none; padding: 8px 0;
  transition: color 1.1s cubic-bezier(.4, 0, .2, 1), gap .25s ease;
}
.musing-entry:hover .musing-toggle { color: rgba(246, 242, 234, var(--toggle-alpha)); }
.musing-toggle:hover { color: var(--amber); gap: 14px; transition: color .25s ease, gap .25s ease; }
.musing-toggle:focus-visible { outline: 1px solid var(--amber); outline-offset: 4px; }

.musing-toggle-arrow {
  width: 14px; height: 14px;
  position: relative;
  flex-shrink: 0;
}
.musing-toggle-arrow::before,
.musing-toggle-arrow::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), opacity .35s;
}
.musing-toggle-arrow::before { /* horizontal bar */
  left: 0; right: 0; top: 50%;
  height: 1px; transform: translateY(-50%);
}
.musing-toggle-arrow::after  { /* vertical bar — disappears on expand */
  top: 0; bottom: 0; left: 50%;
  width: 1px; transform: translateX(-50%);
}
.musing-entry.expanded .musing-toggle-arrow::after {
  transform: translateX(-50%) scaleY(0);
}

/* ============================================================
   GHOST — v2 default is the post index number (post number /
   "negative frame" reference).  v1 keeps the duplicated title.
   ============================================================ */
.musing-ghost {
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  text-align: right;
  font-feature-settings: "tnum" on, "lnum" on;
  position: absolute;
  right: 0;
  top: 52px;
  bottom: 52px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  z-index: 1;
  font-size: clamp(72px, 11vw, 168px);
  font-weight: 100;
  line-height: .9;
  letter-spacing: -.05em;
  color: rgba(246, 242, 234, .06);
  transition: color .6s ease, opacity .6s ease;
}
.musing-entry:hover .musing-ghost {
  color: rgba(175, 133, 112, .26);
}
/* v2 ghost children: small "FRAME" label + big numerals */
.musing-ghost-label {
  display: block;
  font-size: 9px; letter-spacing: .32em; text-transform: uppercase;
  color: rgba(246, 242, 234, .22);
  font-weight: 400;
  margin-bottom: 6px;
}
.musing-ghost-num {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ── GHOST BG — wide-screen only decorative blurred title.
   Title is chunked into 3-letter rows by the renderer.  The
   column is right-aligned with the actual ghost, centered
   vertically inside the entry, and only revealed when the
   entry is expanded.  Top/bottom mask fade absorbs overflow
   for long titles. ── */
.musing-ghost-bg {
  display: none;
  position: absolute;
  left: calc(56px + clamp(20px, 3vw, 40px) + 400px);
  right: clamp(20px, 3vw, 52px);
  top: 0;
  bottom: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  transition: opacity .9s cubic-bezier(.16, 1, .3, 1);
}
@media (min-width: 1400px) {
  .musing-ghost-bg { display: flex; }
  .musing-entry.expanded .musing-ghost-bg { opacity: 1; }
}

/* shared layout for both layers */
.musing-ghost-bg-center,
.musing-ghost-bg-edge {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  font-size: clamp(120px, 14vw, 240px);
  font-weight: 100;
  line-height: 1.06;
  letter-spacing: -.04em;
  white-space: nowrap;
  color: rgba(246, 242, 234, .18);
}
/* center layer — softer blur, visible only in the middle band */
.musing-ghost-bg-center {
  filter: blur(14px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 38%, #000 62%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 38%, #000 62%, transparent 100%);
}
/* edge layer — heavy blur, visible only at top and bottom */
.musing-ghost-bg-edge {
  filter: blur(64px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 50%, transparent 50%, #000 100%);
          mask-image: linear-gradient(180deg, #000 0%, transparent 50%, transparent 50%, #000 100%);
}

.musing-ghost-bg-line {
  display: flex;
  justify-content: space-between;
  width: clamp(440px, 48vw, 1080px);
}
.musing-ghost-bg-line > span { display: block; }

10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateX(270%); opacity: 0; }
}
@media (max-width: 768px) {
  .musing-ghost { display: none; }
  .musing-entry {
    grid-template-columns: 48px 1fr;
    grid-template-areas: "date content";
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, .06);
  padding: 32px 0 40px;
  margin-top: 8px;
}
.site-footer-inner {
  width: min(1480px, calc(100% - 28px));
  margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
}
.footer-symbol { width: 28px; height: auto; flex-shrink: 0; opacity: .42; color: var(--amber); }
.footer-copy {
  font-size: 11px; line-height: 1.7;
  color: rgba(246, 242, 234, .42);
  letter-spacing: .02em;
  font-weight: 300;
}
@media (max-width: 600px) {
  .site-footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-symbol { width: 22px; }
}

/* ============================================================
   CUSTOM CURSOR — kept from v1 (it's the page's best brand touch)
   ============================================================ */
@media (pointer: fine) {
  html, body, a, button, [role="button"], .musing-title, .musing-toggle, .back-to-mm-link {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M7 12V7h5M20 7h5v5M25 20v5h-5M12 25H7v-5' fill='none' stroke='rgba(246,242,234,0.92)' stroke-width='1.7' stroke-linecap='round'/%3E%3Cpath d='M16 13v6M13 16h6' stroke='rgba(246,242,234,0.55)' stroke-width='1.1' stroke-linecap='round'/%3E%3C/svg%3E") 16 16, crosshair;
  }
  input, textarea, select, [contenteditable="true"], .musing-body { cursor: text; }
}

/* ============================================================
   Mobile "scroll-to-light" — on touch devices the entry most
   centered in the viewport gets .is-focused (driven by JS),
   which mirrors the :hover lit state so the frame develops as
   the user scrolls past it.  No reliance on touch :hover.
   ============================================================ */
.musing-entry.is-focused::before { opacity: .9; }
.musing-entry.is-focused .musing-title {
  color: #ffffff;
  text-shadow: 0 0 24px rgba(255, 255, 255, .18);
}
.musing-entry.is-focused .musing-body { color: var(--text-soft); }
.musing-entry.is-focused .musing-toggle { color: rgba(246, 242, 234, var(--toggle-alpha)); }
.musing-entry.is-focused .lang-toggle {
  opacity: 1;
  border-color: rgba(246, 242, 234, .16);
}

.musing-entry.is-focused .musing-ghost {
  color: rgba(175, 133, 112, .26);
}

/* ============================================================
   OVERLAY (mobile only) — on phones the date column squeezes the
   post content. When a frame is lit, the content slides slowly
   to the left to cover the date column, owning the available
   width. Date dissolves underneath. Desktop keeps the standard
   grid layout untouched.
   ============================================================ */
@media (max-width: 768px) {
  .musing-entry {
    --date-col: 48px;
    --col-gap: 20px;
    --tick-air: 12px;
  }
  .musing-content {
    transition: transform 2.4s cubic-bezier(.4, 0, .2, 1);
  }
  .musing-entry:hover .musing-content,
  .musing-entry.is-focused .musing-content {
    transform: translateX(calc(-1 * (var(--date-col) + var(--col-gap) - var(--tick-air))));
  }
  /* Date dissolves slowly on mobile too — longer than the rest */
  .musing-day,
  .musing-month {
    transition: opacity 2.4s cubic-bezier(.4, 0, .2, 1);
  }
}
