/* ==========================================================================
   The Cut: Narsaik's notes from the edit. Every note opens on a film from the
   shoot it talks about; the reading happens on paper, on a centred measure,
   with a reading playhead along the top edge.
   ========================================================================== */

html.journal-page, .journal-page body { background: var(--paper); }
.journal-page body { color: var(--paper-ink); }
.journal-page .sc-grain { opacity: 0.05; mix-blend-mode: multiply; }
.journal-page .vhero + main { padding-top: clamp(48px, 8vh, 96px); }

/* the reading playhead */
.readhead { position: fixed; z-index: 75; left: 0; right: 0; top: 0; height: 3px; pointer-events: none; }
.readhead span { display: block; height: 100%; background: var(--tally); transform-origin: 0 50%; transform: scaleX(var(--read, 0)); }

/* ------------------------------------------------------- the film heroes -- */
.vhero--hub { min-height: min(92svh, 860px); }
.vhero--post { min-height: min(86svh, 820px); align-content: end; }
.vhero--post .vhero__copy { padding-bottom: clamp(44px, 9vh, 96px); }
.crumbs { font-size: 0.8125rem; color: color-mix(in oklab, var(--bone) 70%, transparent); margin-bottom: 18px; }
.crumbs a { color: var(--bone); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--tally); }
.post-head__kick { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tally); }
.vhero h1:not(.cut-hub__title) {
  margin-top: 14px; font-family: var(--sc-font-display); font-weight: 700; letter-spacing: -0.03em;
  font-size: clamp(2rem, 1.1rem + 3.2vw, 4.4rem); line-height: 1.04; text-wrap: balance;
}
.post-head__dek { margin: 18px auto 0; font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.375rem); line-height: 1.45; max-width: 46ch; }
.byline { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 24px; font-size: 0.875rem; color: color-mix(in oklab, var(--bone) 72%, transparent); }
.byline b { color: var(--bone); font-weight: 600; }
.byline > * + *::before { content: "·"; margin-right: 16px; opacity: 0.6; }
.cut-hub__title { margin-top: 10px; font-size: clamp(3.6rem, 1.6rem + 8vw, 9rem); line-height: 0.92; letter-spacing: -0.04em; }
.cut-hub__lede { margin: 18px auto 0; max-width: 40ch; }

/* three films side by side behind the hub title, drifting at three depths */
.mosaic { position: absolute; inset: -10% -4%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mosaic__col { position: relative; overflow: hidden; border-radius: 18px; }
.mosaic__col:nth-child(2) { margin-top: 9%; }
.mosaic__col:nth-child(3) { margin-top: -5%; }
.mosaic__col img, .mosaic__col video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.mosaic__col video { opacity: 0; transition: opacity 500ms var(--ease); }
.mosaic__col video.is-live { opacity: 1; }
@media (max-width: 899px) {
  .mosaic { grid-template-columns: 1fr 1fr; inset: -6% -20%; }
  .mosaic__col:nth-child(3) { display: none; }
}

/* ------------------------------------------------------------ the cards -- */
.cut-hub { width: min(100% - 2 * var(--gutter), 1280px); margin-inline: auto; }
.notes { display: grid; gap: clamp(16px, 1.8vw, 26px); }
.notes--hub { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.notes--more { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 22px; }
.note a {
  display: flex; flex-direction: column; height: 100%; overflow: hidden; text-decoration: none; color: inherit;
  border-radius: 20px; background: linear-gradient(to bottom, #fbf9f5, #f3efe8);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.9), 0 0 0 1px rgb(18 18 18 / 0.07), 0 2px 4px rgb(40 30 20 / 0.06), 0 22px 40px -24px rgb(40 30 20 / 0.32);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease);
}
.note a:hover { color: inherit; transform: translateY(-6px); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.9), 0 0 0 1px rgb(18 18 18 / 0.08), 0 4px 8px rgb(40 30 20 / 0.08), 0 34px 56px -26px rgb(40 30 20 / 0.42); }
.note__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--blackout); }
.note__media img { width: 100%; height: 100%; object-fit: cover; max-width: none; transition: transform 700ms var(--ease); }
.note a:hover .note__media img { transform: scale(1.05); }
.note__media::after { content: ""; position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--tally) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.5 3.8v8.4L12 8z' fill='%230b0b0c'/%3E%3C/svg%3E") center / 13px no-repeat; box-shadow: 0 0 0 5px rgb(167 139 250 / 0.25); }
.note__body { display: grid; gap: 10px; padding: clamp(20px, 2vw, 28px); flex: 1; align-content: start; }
.note__meta { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--paper-soft); font-variant-numeric: tabular-nums; }
.note__title { font-family: var(--sc-font-display); font-weight: 700; letter-spacing: -0.025em; font-size: clamp(1.25rem, 1rem + 0.8vw, 1.6rem); line-height: 1.12; text-wrap: balance; transition: color 140ms var(--ease); }
.note__dek { color: var(--paper-soft); font-size: 0.9375rem; }
.note__go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 0.9375rem; color: var(--tally-deep); }
.note__go svg { width: 15px; height: 15px; transition: transform 200ms var(--ease); }
.note a:hover .note__title { color: var(--tally-deep); }
.note a:hover .note__go svg { transform: translateX(4px); }
/* the newest note leads, film and words side by side */
.note--lead { grid-column: 1 / -1; }
.note--lead a { flex-direction: row; }
.note--lead .note__media { flex: 1.25 1 0; aspect-ratio: auto; min-height: 380px; }
.note--lead .note__body { flex: 1 1 0; align-content: center; padding: clamp(26px, 3.4vw, 52px); }
.note--lead .note__title { font-size: clamp(1.7rem, 1.1rem + 1.8vw, 2.8rem); }
.note--lead .note__dek { font-size: 1.0625rem; }

/* ----------------------------------------------------------------- post -- */
.post-wrap { width: min(100% - 2 * var(--gutter), 1080px); margin-inline: auto; }
.prose { max-width: 68ch; margin-inline: auto; font-size: 1.0625rem; line-height: 1.7; color: #1d1c1a; }
.prose > * + * { margin-top: 1.1em; }
.prose > p:first-child { font-size: 1.25rem; line-height: 1.55; color: var(--paper-ink); }
.prose h2 {
  margin-top: 2.2em; font-family: var(--sc-font-display); font-weight: 700; letter-spacing: -0.025em;
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); line-height: 1.08; color: var(--paper-ink); text-wrap: balance;
}
.prose h3 { margin-top: 1.8em; font-size: 1.1875rem; font-weight: 600; line-height: 1.3; color: var(--paper-ink); }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose a { color: var(--paper-ink); text-decoration-color: var(--tally-deep); text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--tally-deep); }
.prose strong { font-weight: 600; color: var(--paper-ink); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul > li { position: relative; padding-left: 1.25em; }
.prose ul > li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 0.5em; height: 2px; background: var(--tally-deep); }
.prose ol { list-style: decimal; }
.prose ol > li::marker { font-weight: 600; color: var(--tally-deep); font-variant-numeric: tabular-nums; }
.prose li + li { margin-top: 0.5em; }
.prose blockquote { padding-left: 1em; box-shadow: inset 2px 0 0 var(--tally-deep); color: var(--paper-ink); font-size: 1.1875rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-soft); }
.prose img { border-radius: 10px; }
.prose code { font-size: 0.9em; background: var(--paper-2); padding: 0.1em 0.35em; border-radius: 4px; }

/* the ask, set as a slate */
.post-cta {
  margin: clamp(56px, 9vh, 96px) auto 0; max-width: 820px; padding: clamp(28px, 4vw, 52px); text-align: center;
  border-radius: 24px; background: linear-gradient(to bottom, #1d1c1e, #111112); color: var(--bone);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08), 0 30px 60px -30px rgb(20 10 5 / 0.6);
}
.post-cta h2 { font-family: var(--sc-font-display); font-weight: 700; letter-spacing: -0.03em; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.05; text-wrap: balance; }
.post-cta p { margin: 14px auto 0; color: color-mix(in oklab, var(--bone) 82%, var(--ash)); max-width: 52ch; }
.post-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin-top: 26px !important; }
.post-cta .btn { --face: var(--tally); --face-hi: #c4b5fd; --edge: #efe9df; --shade: 0 0 0; --btn-ink: var(--blackout); --glow: 0.5; }
.post-cta .btn:hover { color: var(--blackout); }
.post-cta .btn--alt { --face: #2a292c; --face-hi: #353438; --edge: var(--tally-deep); --btn-ink: var(--bone); --shade: 167 139 250; --glow: 0.32; }
.post-cta .btn--alt:hover { --face: var(--tally); --face-hi: #c4b5fd; --btn-ink: var(--blackout); }

.post-more { margin-top: clamp(64px, 10vh, 120px); }
.post-more h2 { text-align: center; font-family: var(--sc-font-display); font-weight: 700; letter-spacing: -0.03em; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem); color: var(--paper-ink); }

.journal-page .foot { margin-top: clamp(80px, 12vh, 140px); background: var(--blackout); color: var(--ash); border-top: 0; }

@media (max-width: 1099px) {
  .notes--more { grid-template-columns: 1fr 1fr; }
  .notes--more .note:nth-child(3) { display: none; }
}
@media (max-width: 899px) {
  .notes--hub, .notes--more { grid-template-columns: 1fr; }
  .notes--more .note:nth-child(3) { display: block; }
  .note--lead a { flex-direction: column; }
  .note--lead .note__media { aspect-ratio: 16 / 9; min-height: 0; flex: none; }
  .note__body { justify-items: center; text-align: center; }
  .vhero--post { min-height: 78svh; }
}
@media (prefers-reduced-motion: reduce) {
  .note a, .note__title, .note__media img, .note__go svg { transition: none; }
  .note a:hover { transform: none; }
}

/* The hub's films sit back so the title owns the frame. */
.mosaic__col img, .mosaic__col video { filter: brightness(0.42) saturate(0.8); }
.vhero--hub .vhero__scrim { background: radial-gradient(60% 55% at 50% 50%, rgb(8 8 9 / 0.7), rgb(8 8 9 / 0.25) 75%, transparent), linear-gradient(to bottom, rgb(8 8 9 / 0.5), transparent 30%, rgb(8 8 9 / 0.5) 75%, rgb(8 8 9 / 0.95)); }

/* Pages that open without a film hero (Privacy, the sitemap): the content starts
   below the bar, and the header is set for paper, centred like the rest. */
.journal-page main { padding-top: calc(var(--bar-h) + clamp(40px, 7vh, 88px)); }
.post-wrap > .post-head { text-align: center; }
.post-wrap > .post-head h1 { margin-top: 12px; font-family: var(--sc-font-display); font-weight: 700; letter-spacing: -0.03em; font-size: clamp(2.6rem, 1.4rem + 3.8vw, 4.8rem); line-height: 1.02; }
.ground-paper .post-wrap > .post-head .post-head__kick { color: var(--tally-deep); }
.ground-paper .post-wrap > .post-head .byline { color: var(--paper-soft); }
.ground-paper .post-wrap > .post-head .byline b { color: var(--paper-ink); }
/* the sitemap's text-only cards get the cards' inner padding */
.note a.note__plain { padding: clamp(18px, 2vw, 26px); gap: 8px; }
/* film heroes: the kicker keeps its colour over bright footage */
.vhero .post-head__kick { text-shadow: 0 1px 2px rgb(0 0 0 / 0.55), 0 0 18px rgb(0 0 0 / 0.6); }
/* the sitemap: its title centres with the rest, and each group's heading clears its cards */
main > .cut-hub > .cut-hub__title { text-align: center; }
main > .cut-hub .post-more > h2 { margin-bottom: 22px; }
