/* June Field - celebrity pages (views/media/celebrity). The navy and gilt come
   from the panelling in her Callander photo, the cream wall and the wooden
   frames from her photos at home. Prefix jf-bk- is the bookcase opening (the
   booking pages use it too, in their own file), jf-cl- the rest of the page. */

.jf-cl {
  --cl-navy: oklch(0.2 0.035 262);
  --cl-navy-deep: oklch(0.14 0.028 265);
  --cl-lamp: oklch(0.82 0.12 72);
  --cl-gilt: linear-gradient(180deg, #8a6f3c, #f0d9a4 45%, #a98747 55%, #6d5529);
}
.jf-cl h2 { font-size: clamp(2.2rem, 1.5rem + 2.8vw, 4rem); line-height: 1.04; }
.jf-cl-words { margin: 0; }
.jf-cl-words p { margin: 0; font-family: var(--jf-serif); font-style: italic; font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.9rem); line-height: 1.32; color: var(--jf-cream); text-wrap: pretty; }
.jf-cl a:not(.jf-btn) { text-underline-offset: 0.2em; }

/* ---------- The bookcase ---------- */
.jf-bk { --open: 1; --light: 1; --say: 1; --book: 1; position: relative; display: grid; background: var(--cl-navy-deep); border-bottom: 1px solid var(--jf-line); }
.jf-bk__track { grid-row: 2; }
.jf-bk__stage { position: sticky; top: var(--jf-header-h); height: calc(100svh - var(--jf-header-h)); min-height: 26rem; overflow: hidden; perspective: 1700px; perspective-origin: 40% 45%; }
.jf-bk.is-live { --open: 0; --light: 0; --say: 0; --book: 0; }
.jf-bk.is-live .jf-bk__track { height: 230svh; }

/* The library wall behind, out of focus and unlit. */
.jf-bk__wall { position: absolute; inset: 0; display: none; overflow: hidden; background: oklch(0.12 0.02 50); }
.jf-bk__wall::before { content: ''; position: absolute; inset: 0 0 -50%; background: url('../images/celebrity-pages/bookcase-wall.webp') 50% 34% / cover; }
.jf-bk__wall::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in oklch, var(--cl-navy-deep) 97%, transparent) 0 12%, color-mix(in oklch, var(--cl-navy-deep) 80%, transparent) 40%, color-mix(in oklch, var(--cl-navy-deep) 28%, transparent) 78%, color-mix(in oklch, var(--cl-navy-deep) 55%, transparent)); }

/* The doorway: carved surround, her photo behind, the door in front. */
.jf-bk__bay { position: absolute; inset: 0; transform-style: preserve-3d; }
.jf-bk__room { position: absolute; inset: 0; margin: 0; overflow: hidden; background: oklch(0.1 0.02 50); }
.jf-bk__room img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: brightness(calc(0.25 + var(--light) * 0.82)) saturate(1.05); transform: scale(calc(1.12 - var(--open) * 0.12)); }
.jf-bk__room::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, oklch(0.1 0.02 50 / 0.94) 88%); box-shadow: inset 0 0 5rem 1.2rem oklch(0.08 0.02 50 / 0.75); }
.jf-bk__room figcaption { position: absolute; z-index: 1; left: 1.25rem; right: 1.25rem; bottom: 1rem; font-size: clamp(0.72rem, 3.7vw, 0.85rem); color: var(--jf-muted); opacity: var(--say); }
.jf-bk__door { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 100% 50%; transform: rotateY(calc(var(--open) * 116deg)); display: none; }
.jf-bk.is-live .jf-bk__door { display: block; }
/* The script works out which side of the door faces you; Firefox gets it wrong. */
.jf-bk:not(.shows-face) .jf-bk__face, .jf-bk:not(.shows-back) .jf-bk__back { visibility: hidden; }
.jf-bk__face, .jf-bk__back, .jf-bk__edge { position: absolute; inset: 0; background: oklch(0.12 0.02 50) center / cover; }
.jf-bk__face { container-type: size; overflow: hidden; box-shadow: 0 0 1.4rem color-mix(in oklch, var(--cl-lamp) calc(14% + var(--light) * 40%), transparent), 0 0 3rem oklch(0 0 0 / 0.7); }
.jf-bk__face::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(75% 55% at 50% 40%, transparent 45%, oklch(0.06 0.02 50 / 0.34)); }
/* The door is a thick piece of furniture: its side and back show as it swings. */
.jf-bk__door { --deep: clamp(1.8rem, 4.2vw, 3.6rem); }
.jf-bk__edge { right: auto; width: var(--deep); transform-origin: 0 50%; transform: rotateY(90deg); background-image: linear-gradient(90deg, oklch(0 0 0 / 0.1), oklch(0 0 0 / 0.6)), url('../images/celebrity-pages/bookcase-edge.webp'); background-size: 100% 100%; }
.jf-bk__back { transform: translateZ(calc(var(--deep) * -1)) rotateY(180deg); background-image: linear-gradient(90deg, oklch(0.4 0.065 65), oklch(0.24 0.04 62) 30%, black 75%), url('../images/celebrity-pages/bookcase-back.webp'); background-blend-mode: color-dodge, normal; }

/* The photo of the bookcase covers the door; everything on it is placed in percent of the photo. */
.jf-bk__case { --tall: max(100cqh, 150cqw); position: absolute; left: 50%; top: max(100cqh - var(--tall), min(0px, 50cqh - var(--tall) * 0.388)); height: var(--tall); aspect-ratio: 2 / 3; transform: translateX(-50%); container-type: inline-size; background: url('../images/celebrity-pages/bookcase-door.webp') center / 100% 100%; }
.jf-bk__name, .jf-bk__gold span[aria-hidden] { position: absolute; transform: translate(-50%, -50%); text-align: center; font-family: var(--jf-serif); font-style: normal; font-weight: 600; line-height: 1.12; }
.jf-bk__name { font-size: 2.42cqw; color: #f5dfa6; text-shadow: 0 -0.04em 0.02em oklch(0 0 0 / 0.8); }
.jf-bk__name--long { font-size: 2.15cqw; }
/* Lamplight on the books either side of the gold one. */
.jf-bk__glow { position: absolute; left: 34%; top: 22%; width: 32.6%; height: 34%; opacity: calc(0.35 + var(--book) * 0.65); mix-blend-mode: color-dodge; background: radial-gradient(closest-side, oklch(0.52 0.1 70), oklch(0.3 0.07 65) 55%, black); }

.jf-bk__gold { position: absolute; left: 44.7%; top: 28.4%; width: 11.2%; height: 21.1%; z-index: 2; padding: 0; border: 0; background: none; cursor: pointer; transform-origin: 50% 100%; transform: perspective(700px) rotateX(calc(var(--book) * -24deg)); }
.jf-bk__gold::before { content: ''; position: absolute; inset: 0; background: url('../images/celebrity-pages/bookcase-gold.webp') center / 100% 100%; filter: brightness(1.12) saturate(0.92); }
.jf-bk__gold span[aria-hidden] { left: 50%; top: 47.5%; font-size: 2.95cqw; line-height: 1.06; font-weight: 700; color: #120a02; -webkit-text-stroke: 0.028em #120a02; padding: 0.5em 0.1em; background: radial-gradient(closest-side, oklch(0.93 0.09 90 / 0.75), transparent); }
.jf-bk__gold:hover::before { filter: brightness(1.25) saturate(0.92); }
.jf-bk.is-live .jf-bk__gold::after { content: ''; position: absolute; inset: 2% 3%; border-radius: 0.3rem; background: linear-gradient(115deg, transparent 38%, oklch(1 0 0 / 0.6) 50%, transparent 62%) no-repeat 200% 0 / 300% 100%; mix-blend-mode: soft-light; animation: jf-bk-glint 1.6s var(--jf-ease) 1.1s 2 both; }
@keyframes jf-bk-glint { from { background-position: 200% 0; } to { background-position: -100% 0; } }

/* Light from the room across the wall and floor. */
.jf-bk__spill { display: none; }

/* Copy. Phones: above the bookcase. Her words sit on the photo once it is open. */
.jf-bk__copy { grid-row: 1; width: var(--jf-wrap); margin-inline: auto; padding-block: 2rem 2.25rem; }
.jf-bk__copy .jf-crumbs { margin-bottom: 1.5rem; }
.jf-bk__headline { font-size: clamp(2.7rem, 1.9rem + 4vw, 5.6rem); line-height: 0.98; max-width: 11ch; margin-bottom: 0.4em; }
.jf-bk__lede { max-width: 32rem; font-size: 1.06rem; margin-bottom: 1.5rem; }
.jf-bk__open { display: none; }
.jf-bk.is-live .jf-bk__open { display: inline-flex; cursor: pointer; }
.jf-bk__words { max-width: 34rem; margin-top: 2rem; outline: 0; }
/* Text stays clickable for editing on the page, but never while it is hidden. */
.jf-bk .cmshq-editable, .jf-cl-night .cmshq-editable { pointer-events: auto; }
.jf-bk.is-live:not(.is-open) .jf-bk__words .cmshq-editable { pointer-events: none; }

@media (max-width: 899px), (max-height: 519px) {
  .jf-bk__bay, .jf-bk__room { background: oklch(0.13 0.03 50); }
  .jf-bk__room img { height: auto; max-height: 100%; transform-origin: 50% 0; }
  .jf-bk__room::after { background: radial-gradient(85% 24% at 45% 84%, oklch(0.36 0.075 52 / 0.5), transparent), linear-gradient(180deg, transparent min(95vw, 40%), oklch(0.13 0.03 50) min(131vw, 75%)); box-shadow: none; }
  .jf-bk:not(.is-live) .jf-bk__stage { position: relative; top: 0; height: 133vw; min-height: 0; }
  .jf-bk:not(.is-live) .jf-bk__room::after { background: linear-gradient(180deg, transparent 78%, oklch(0.1 0.02 50 / 0.9) 96%); }
  .jf-bk:not(.is-live) .jf-bk__room figcaption { text-shadow: 0 1px 4px oklch(0.1 0.02 50); color: var(--jf-cream); }
  /* Her words sit under the photo once the door is open. */
  .jf-bk.is-live :is(.jf-bk__copy, .jf-bk__turn) { display: contents; }
  .jf-bk.is-live { grid-template-rows: auto auto auto; }
  .jf-bk.is-live :is(.jf-bk__head, .jf-bk__intro) { width: var(--jf-wrap); margin-inline: auto; }
  .jf-bk.is-live .jf-bk__head { grid-row: 1; padding-top: 2rem; }
  .jf-bk.is-live .jf-bk__intro { grid-row: 2; padding-bottom: 1.75rem; }
  .jf-bk.is-live .jf-bk__track { grid-area: 3 / 1; }
  .jf-bk.is-live .jf-bk__words { grid-area: 3 / 1; z-index: 2; align-self: end; position: sticky; bottom: 3.4rem; margin: 0 2.75rem 3.4rem 1.25rem; opacity: var(--say); pointer-events: none; }
  .jf-bk.is-live .jf-bk__room figcaption { right: 2.4rem; font-size: clamp(0.66rem, 3.2vw, 0.85rem); }
  .jf-bk__words p { font-size: clamp(1.15rem, 5.3vw, 1.6rem); text-shadow: 0 1px 8px oklch(0.1 0.02 50); }
}

/* A phone held sideways: her words beside the photo. */
@media (max-width: 899px) and (min-aspect-ratio: 1/1), (max-height: 519px) and (min-aspect-ratio: 1/1) {
  .jf-bk__stage { min-height: 0; }
  .jf-bk.is-live .jf-bk__room img { width: auto; height: 100%; transform-origin: 0 0; }
  .jf-bk.is-live .jf-bk__room figcaption { left: 78svh; right: 3.5rem; }
  .jf-bk.is-live .jf-bk__room::after { background: radial-gradient(60% 60% at 70% 75%, oklch(0.36 0.075 52 / 0.5), transparent); }
  .jf-bk.is-live .jf-bk__words { margin: 0 3.5rem 3.4rem 78svh; max-width: none; }
  .jf-bk__words p { font-size: clamp(1rem, 5.4svh, 1.5rem); }
}

@media (min-width: 900px) and (min-height: 520px) {
  .jf-bk__track, .jf-bk__copy { grid-area: 1 / 1; }
  .jf-bk__wall { display: block; }
  /* As tall as the screen and the shape of the photo. */
  .jf-bk__bay { --jamb: clamp(2rem, 3vw, 2.9rem); --bay-h: calc(max(100svh - var(--jf-header-h), 26rem) - var(--jamb) - 1.5rem); --bay-w: clamp(20rem, var(--bay-h) * 2 / 3, min(41vw, 46rem)); inset: auto max(5rem, min((100vw - 1200px) / 2, 50vw - 0.5rem - var(--bay-w) - var(--jamb))) 0 auto; height: var(--bay-h); width: var(--bay-w); }
  .jf-bk__bay::before { content: ''; position: absolute; inset: calc(var(--jamb) * -1) calc(var(--jamb) * -1) 0; border: var(--jamb) solid transparent; border-bottom: 0; border-image: url('../images/celebrity-pages/bookcase-frame.webp') 105 93 105 93; filter: drop-shadow(0 0 2.5rem oklch(0 0 0 / 0.75)); }
  .jf-bk__room::after { background: linear-gradient(180deg, transparent 74%, oklch(0.1 0.02 50 / 0.85)); }
  .jf-bk__room figcaption { right: 4.5rem; }
  .jf-bk__open { width: auto; }
  .jf-bk__spill { display: block; position: absolute; inset: 0; opacity: var(--light); pointer-events: none; mix-blend-mode: screen; background: radial-gradient(60% 75% at 74% 52%, color-mix(in oklch, var(--cl-lamp) 36%, transparent), transparent 70%), linear-gradient(200deg, transparent 55%, color-mix(in oklch, var(--cl-lamp) 12%, transparent)); }
  .jf-bk__copy { position: sticky; top: var(--jf-header-h); z-index: 3; align-self: start; height: calc(100svh - var(--jf-header-h)); min-height: 26rem; pointer-events: none; display: flex; flex-direction: column; justify-content: center; gap: 0.5rem; padding-block: 1.5rem; }
  .jf-bk__copy a, .jf-bk__copy button { pointer-events: auto; }
  .jf-bk:not(.is-live) .jf-bk__copy { position: relative; top: 0; height: auto; min-height: calc(100svh - var(--jf-header-h)); }
  .jf-bk:not(.is-live) .jf-bk__stage { position: relative; top: 0; height: 100%; }
  .jf-bk__head, .jf-bk__turn { width: min(47vw - 2rem, 37rem); }
  .jf-bk__turn { display: grid; }
  .jf-bk__headline { font-size: clamp(3.2rem, 1.2rem + 4.4vw, 6rem); }
  .jf-bk.is-live .jf-bk__intro, .jf-bk.is-live .jf-bk__words { grid-area: 1 / 1; margin: 0; }
  .jf-bk.is-live .jf-bk__intro { opacity: calc(1 - var(--say) * 3); }
  .jf-bk.is-live.is-open .jf-bk__intro { visibility: hidden; }
  .jf-bk.is-live .jf-bk__words { opacity: calc(var(--say) * 1.6 - 0.6); transform: translateY(calc((1 - var(--say)) * 1.5rem)); }
  .jf-bk__words p { font-size: clamp(1.5rem, 0.9rem + 1.35vw, 2.15rem); }
}
@media (min-width: 900px) and (min-height: 520px) and (max-height: 700px) {
  .jf-bk__headline { font-size: clamp(2.6rem, 1rem + 3vw, 4rem); }
  .jf-bk__words p { font-size: 1.4rem; }
}

/* ---------- The theatre curtain ---------- */
.jf-ct { --pull: 0.97; --open: 1; --fly: 1; --head: 1; position: relative; background: oklch(0.1 0.018 40); border-bottom: 1px solid var(--jf-line); }
.jf-ct__stage { position: relative; overflow: hidden; min-height: 26rem; }
.jf-ct__back { position: absolute; inset: 0; background: url('../images/celebrity-pages/curtain-stage.webp') 50% 100% / cover; }

/* Her photo, hung on two ropes like scenery. */
.jf-ct__set { position: relative; z-index: 1; width: min(62vw, 22rem); margin: 2.5rem auto 1.5rem; }
.jf-ct__flat { position: relative; padding: clamp(6px, 0.7vw, 10px); background: linear-gradient(135deg, #7d6434, #f0d9a4 30%, #97793f 55%, #e3c98f 80%, #6d5529); box-shadow: 0 0 0 1px oklch(0.15 0.03 60), 0 2.5rem 4rem -1rem oklch(0.04 0.01 40), 0 0 6rem color-mix(in oklch, var(--cl-lamp) 22%, transparent); }
.jf-ct__flat::before, .jf-ct__flat::after { content: ''; position: absolute; bottom: 100%; left: 14%; width: 4px; height: 100svh; background: repeating-linear-gradient(160deg, #8d7146 0 3px, #4c3a20 3px 6px); }
.jf-ct__flat::after { left: auto; right: 14%; }
.jf-ct__flat img { display: block; width: 100%; height: auto; }
.jf-ct__set figcaption { position: relative; margin: 0.6rem -4rem 0; font-size: 0.85rem; color: var(--jf-cream); text-shadow: 0 1px 4px oklch(0.08 0.02 40); text-align: center; }

/* The name in marquee letters, standing on the stage. */
.jf-ct__name { --tall: clamp(4.5rem, 21vw, 7.5rem); position: relative; z-index: 2; display: flex; justify-content: center; align-items: end; gap: calc(var(--tall) * 0.07); margin: 0 auto 2rem; }
.jf-ct__name svg { height: var(--tall); width: auto; overflow: visible; filter: drop-shadow(0.05em 0.1em 0 oklch(0.2 0.07 25)) drop-shadow(0 0.5rem 0.5rem oklch(0.05 0.01 40 / 0.8)); }
.jf-ct__name polyline { fill: none; stroke-linecap: square; stroke-linejoin: round; }
.jf-ct__rim { stroke: #c39a52; stroke-width: 19; }
.jf-ct__face { stroke: #5d1519; stroke-width: 15; }
.jf-ct__wash { stroke: #d8552c; stroke-width: 15; stroke-opacity: 0.75; }
.jf-ct__name circle { fill: #7a5a3a; stroke: #2c130f; stroke-width: 0.8; }
.jf-ct__name::before { content: ''; position: absolute; z-index: -1; inset: -45% -18% -70%; background: radial-gradient(closest-side, oklch(0.75 0.16 55 / 0.5), oklch(0.6 0.15 45 / 0.18) 55%, transparent); }
.jf-ct.is-live .jf-ct__name::before { opacity: 0; transition: opacity 0.6s var(--jf-ease); }
.jf-ct.is-live.is-lit .jf-ct__name::before { opacity: 1; }

.jf-ct__half { position: absolute; z-index: 3; top: 0; bottom: 0; left: 0; width: 51%; background: url('../images/celebrity-pages/curtain-half.webp') 100% 100% / cover; transform-origin: 0 50%; transform: scaleX(calc(1 - var(--open) * var(--pull))); filter: brightness(calc(1 - var(--open) * 0.45)); box-shadow: 0 0 calc(3rem - var(--open) * 2.5rem) oklch(0.05 0.01 40); }
.jf-ct__half--right { left: auto; right: 0; transform-origin: 0 50%; transform: translateX(100%) scaleX(calc((1 - var(--open) * var(--pull)) * -1)); }
.jf-ct__pelmet { position: absolute; z-index: 4; inset: 0 0 auto; --drop: min(clamp(5.5rem, 12.2vw, 9.5rem), 13svh); height: var(--drop); background: url('../images/celebrity-pages/curtain-pelmet.webp') 50% 0 / auto 100% repeat-x; filter: drop-shadow(0 0.8rem 1rem oklch(0.05 0.01 40 / 0.8)); pointer-events: none; }
.jf-ct__spot { display: none; }

.jf-ct__copy { position: relative; z-index: 6; width: var(--jf-wrap); margin-inline: auto; padding-block: 1rem 3rem; }
.jf-ct__copy .jf-crumbs { margin-bottom: 1.5rem; }
.jf-ct__headline { font-size: clamp(2.6rem, 1.8rem + 4vw, 5.4rem); line-height: 0.98; max-width: 12.5ch; margin-bottom: 0.4em; }
.jf-ct__lede { max-width: 33rem; font-size: 1.06rem; margin-bottom: 1.5rem; }
.jf-ct__open { display: none; }
.jf-ct__beat { margin: 2rem 0 0; max-width: 36rem; outline: 0; }
.jf-ct__beat figcaption { margin-top: 0.8rem; color: var(--jf-gold-light); }

@media (min-width: 900px) {
  .jf-ct__back { left: 22%; right: -20%; -webkit-mask-image: linear-gradient(90deg, transparent 4%, #000 34%); mask-image: linear-gradient(90deg, transparent 4%, #000 34%); }
  .jf-ct__stage { min-height: max(34rem, 100svh - var(--jf-header-h)); }
  .jf-ct__set { position: absolute; left: 71%; top: max(6rem, 20%); width: min(27vw, 46svh); margin: 0; translate: -50% 0; }
  .jf-ct__name { --tall: min(8.5vw, 18svh); position: absolute; left: 71%; bottom: 6%; margin: 0; translate: -50% 0; }
  .jf-ct__copy { padding-block: 11rem 4rem; }
  .jf-ct__head, .jf-ct__beat { width: min(46vw - 2rem, 37rem); }
}

.jf-ct.is-live { --open: 0; --fly: 0; }
.jf-ct.is-live .jf-ct__track { height: 480svh; }
.jf-ct.is-live .jf-ct__stage { position: sticky; top: var(--jf-header-h); height: calc(100svh - var(--jf-header-h)); min-height: 30rem; }
.jf-ct.is-live .jf-ct__set { position: absolute; left: 50%; top: 16%; translate: -50% 0; margin: 0; width: min(56vw, 37svh - 4.4rem); transform: translateY(calc((1 - var(--fly)) * -150%)) rotate(calc((1 - var(--fly)) * -3deg)); }
.jf-ct.is-live .jf-ct__name { --tall: min(21vw, 11svh); position: absolute; left: 50%; top: 57%; translate: -50% 0; margin: 0; }
.jf-ct.is-live .jf-ct__name g { opacity: 0; }
.jf-ct.is-live .jf-ct__name .is-on g { opacity: 1; animation: jf-ct-strike 0.5s steps(1) both; }
@keyframes jf-ct-strike { 0% { opacity: 1; } 14% { opacity: 0.1; } 26% { opacity: 0.9; } 40% { opacity: 0.2; } 55%, 100% { opacity: 1; } }
.jf-ct.is-live .jf-ct__copy { position: absolute; inset: 0; padding: 0; }
.jf-ct.is-live .jf-ct__head { position: absolute; inset: auto 0 2.2rem; opacity: var(--head); transform: translateY(calc((1 - var(--head)) * -1.5rem)); }
.jf-ct.is-live.is-open .jf-ct__head { pointer-events: none; }
.jf-ct.is-live.is-open :is(.jf-crumbs, .jf-ct__open) { visibility: hidden; }
.jf-ct.is-live .jf-ct__open { display: inline-flex; cursor: pointer; }
.jf-ct.is-live .jf-ct__beat { position: absolute; inset: 70.5% 0 auto; margin: 0; opacity: var(--say, 0); transform: translateY(calc((1 - var(--say, 0)) * 1.2rem)); }
.jf-ct.is-live .jf-ct__beat.is-off { pointer-events: none; }
.jf-ct.is-live .jf-ct__beat p { font-size: clamp(1rem, 0.5rem + 1.2vw + 0.8svh, 1.75rem); line-height: 1.25; text-shadow: 0 1px 8px oklch(0.08 0.02 40); }
.jf-ct.is-live .jf-ct__beat figcaption { margin-top: 0.4rem; }
/* A lamp on the closed curtain, and dark behind the words. */
.jf-ct.is-live .jf-ct__spot { display: block; position: absolute; z-index: 5; inset: 0; opacity: var(--head); pointer-events: none; background: radial-gradient(46vmax 46vmax at 50% 24%, transparent 45%, oklch(0.09 0.03 25 / 0.5) 62%), linear-gradient(0deg, oklch(0.09 0.03 25 / 0.9) 30%, transparent 78%); }
@media (min-width: 1360px) { .jf-ct { --pull: 0.91; } }
@media (max-height: 720px) { .jf-ct.is-live .jf-crumbs { margin-bottom: 0.6rem; } .jf-ct.is-live .jf-ct__headline { margin-bottom: 0.25em; } .jf-ct.is-live .jf-ct__lede { margin-bottom: 0.9rem; line-height: 1.5; } }
@media (max-width: 899px) {
  .jf-ct:not(.is-live) .jf-ct__back { bottom: auto; height: 44rem; -webkit-mask-image: linear-gradient(#000 45%, transparent 72%); mask-image: linear-gradient(#000 45%, transparent 72%); }
  .jf-ct.is-live .jf-ct__set figcaption { margin-top: 0.4rem; line-height: 1.2; }
  .jf-ct.is-live .jf-ct__headline { font-size: clamp(2.1rem, 0.6rem + 3vw + 2.2svh, 4.2rem); }
  .jf-ct.is-live .jf-ct__head { bottom: clamp(1rem, 2.6svh, 2.2rem); }
  .jf-ct.is-live .jf-crumbs { margin-bottom: clamp(0.5rem, 1.8svh, 1.5rem); }
  .jf-ct.is-live .jf-ct__lede { font-size: 1rem; line-height: 1.5; margin-bottom: 1.1rem; }
  .jf-ct.is-live .jf-ct__back { bottom: 29.5%; background-position: 50% 100%; -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
}
@media (min-width: 900px) {
  .jf-ct.is-live .jf-ct__set { left: 71%; top: 19%; width: min(27vw, 45svh - 4.6rem); }
  .jf-ct.is-live .jf-ct__headline { font-size: min(1.2rem + 3.6vw, 10svh, 5.4rem); }
  .jf-ct.is-live .jf-ct__beat p { font-size: clamp(1.4rem, 0.4rem + 1vw + 1.1svh, 2.1rem); }
  .jf-ct.is-live .jf-ct__name { --tall: min(8.5vw, 18svh); left: 71%; top: auto; bottom: 6%; }
  .jf-ct.is-live .jf-ct__head { inset: calc(min(12.2vw, 9.5rem, 13svh) + 0.5rem) auto 1rem 0; display: flex; flex-direction: column; justify-content: center; align-items: start; }
  .jf-ct.is-live .jf-ct__beat { inset: 56% auto auto 0; translate: 0 -50%; }
  .jf-ct.is-live .jf-ct__spot { background: radial-gradient(40vmin 46vmin at 71% 56%, transparent 62%, oklch(0.09 0.03 25 / 0.62) 80%), linear-gradient(90deg, oklch(0.09 0.03 25 / 0.82) 30%, transparent 62%); }
}

/* ---------- The dragon at night ---------- */
.jf-cl-night { background: linear-gradient(180deg, var(--cl-navy-deep), oklch(0.1 0.025 270) 30%, oklch(0.1 0.025 270) 70%, var(--cl-navy-deep)); overflow: hidden; }
.jf-cl-night__inner { display: grid; padding-block: clamp(4rem, 3rem + 4vw, 7rem); }
.jf-cl-night__copy { width: var(--jf-wrap); margin-inline: auto; position: relative; z-index: 1; display: grid; gap: 0.5rem 4rem; pointer-events: none; }
.jf-cl-night__copy .jf-cl-words { max-width: 37rem; }
.jf-cl-night__lead { max-width: 37rem; margin: 0 0 1rem; color: var(--jf-text); }
.jf-cl-night__photo { position: relative; margin: 2rem 0 0; cursor: crosshair; touch-action: pan-y; -webkit-mask-image: linear-gradient(180deg, transparent, #000 10% 86%, transparent); mask-image: linear-gradient(180deg, transparent, #000 10% 86%, transparent); }
.jf-cl-night__photo img { width: 100%; height: auto; object-fit: cover; object-position: 72% 50%; }
.jf-cl-night__lit { position: absolute; inset: 0; height: 100% !important; opacity: 1; }
@property --x { syntax: '<percentage>'; inherits: true; initial-value: 20%; }
@property --y { syntax: '<percentage>'; inherits: true; initial-value: 66%; }
@property --r { syntax: '<length>'; inherits: true; initial-value: 150px; }
.jf-cl-night__photo.is-live { --r: clamp(9rem, 24vw, 22rem); transition: --r 0.7s var(--jf-ease); }
.jf-cl-night__photo.is-live .jf-cl-night__lit { -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 15%, transparent 100%); mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 15%, transparent 100%); }
.jf-cl-night__photo.is-seen:not(.is-held) { animation: jf-cl-sweep 7s cubic-bezier(0.45, 0, 0.2, 1) both; }
@keyframes jf-cl-sweep { 0% { --x: 4%; --y: 78%; } 28% { --x: 30%; --y: 66%; } 48% { --x: 55%; --y: 30%; } 72% { --x: 84%; --y: 50%; --r: clamp(9rem, 24vw, 22rem); } 100% { --x: 70%; --y: 50%; --r: 140rem; } }
@media (min-width: 900px) {
  .jf-cl-night__inner { padding-block: 0; }
  .jf-cl-night__copy, .jf-cl-night__photo { grid-area: 1 / 1; }
  .jf-cl-night__copy { align-content: space-between; padding-block: clamp(4rem, 8vw, 8rem); }
  .jf-cl-night__copy h2 { max-width: 12ch; margin: 0; }
  .jf-cl-night__words { justify-self: end; max-width: 37rem; padding: 3.5rem 5.5rem; margin-right: -3rem; background: radial-gradient(closest-side, oklch(0.1 0.025 270 / 0.92) 66%, transparent); text-shadow: 0 0 10px oklch(0.08 0.025 270), 0 0 3px oklch(0.08 0.025 270); }
  .jf-cl-night__words:has(.jf-cl-night__lead) { max-width: 46rem; }
  .jf-cl-night__photo { margin: 0 auto; width: min(100%, 1500px); }
  .jf-cl-night__photo img { height: clamp(36rem, 62vw, 56rem); }
  .jf-cl-night__photo { -webkit-mask-image: linear-gradient(180deg, transparent, #000 14% 84%, transparent), linear-gradient(90deg, transparent, #000 10% 90%, transparent); mask-image: linear-gradient(180deg, transparent, #000 14% 84%, transparent), linear-gradient(90deg, transparent, #000 10% 90%, transparent); -webkit-mask-composite: source-in; mask-composite: intersect; }
}

/* ---------- Backstage ---------- */
.jf-cl-stage { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--cl-navy-deep), var(--cl-navy) 45%, var(--cl-navy-deep)); }
.jf-cl-stage::before { content: ''; position: absolute; inset: -10% 0 0; pointer-events: none; background: conic-gradient(from 158deg at 22% 0, transparent 0, color-mix(in oklch, oklch(0.75 0.1 250) 26%, transparent) 9deg, transparent 22deg), conic-gradient(from 182deg at 80% 0, transparent 0, color-mix(in oklch, var(--cl-lamp) 20%, transparent) 10deg, transparent 24deg); -webkit-mask-image: linear-gradient(180deg, #000, transparent 72%); mask-image: linear-gradient(180deg, #000, transparent 72%); }
.jf-cl-stage__inner { position: relative; width: var(--jf-wrap); margin-inline: auto; padding-block: clamp(4rem, 3rem + 5vw, 8rem); }
.jf-cl-stage h2 { max-width: 15ch; }
.jf-cl-pair { display: grid; gap: 3rem; margin-top: clamp(2rem, 4vw, 3.5rem); }
.jf-cl-reading { display: grid; gap: 1.5rem; }
.jf-cl-reading figure { margin: 0; }
.jf-cl-reading img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 15%; box-shadow: 0 50px 80px -40px oklch(0.05 0.02 265); }
.jf-cl-reading img[width="1000"] { aspect-ratio: auto; }
.jf-cl-reading h3 { color: var(--jf-gold-light); margin-bottom: 0.5em; }
.jf-cl-strip__title { margin: clamp(4rem, 7vw, 7rem) 0 0; font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); }
.jf-cl-strip { display: grid; gap: 2rem; margin-top: 2rem; }
.jf-cl-strip figure { margin: 0; }
.jf-cl-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.jf-cl-strip figcaption { margin-top: 0.9rem; max-width: 34rem; color: var(--jf-text); font-size: 1rem; line-height: 1.55; }
@media (min-width: 800px) {
  .jf-cl-pair { grid-template-columns: 6fr 5fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
  .jf-cl-reading:nth-child(2) { margin-top: clamp(5rem, 12vw, 12rem); }
  .jf-cl-strip { grid-template-columns: 5fr 6fr; align-items: end; gap: clamp(1.5rem, 3vw, 3rem); }
}

/* ---------- June's wall ---------- */
.jf-cl-wall { --ink: oklch(0.24 0.03 60); background: radial-gradient(90% 60% at 70% 20%, oklch(0.97 0.03 88), transparent 70%), linear-gradient(180deg, oklch(0.93 0.035 85), oklch(0.89 0.04 82)); color: var(--ink); }
.jf-cl-wall__inner { width: var(--jf-wrap); margin-inline: auto; padding-block: clamp(4rem, 3rem + 5vw, 8rem); }
.jf-cl-wall h2, .jf-cl-wall .jf-cl-words p { color: var(--ink); }
.jf-cl-wall__head { display: grid; gap: 1.5rem; margin-bottom: clamp(2.5rem, 5vw, 5rem); }
.jf-cl-wall__head h2 { max-width: 14ch; margin: 0; }
.jf-cl-wall__head figure { margin: 0; max-width: 32rem; }
.jf-cl-wall figcaption { color: oklch(0.36 0.035 60); font-size: 0.98rem; line-height: 1.5; }
.jf-cl-wall__head figcaption { margin-top: 0.8rem; }
.jf-cl-wall a { color: oklch(0.38 0.08 60); }
.jf-cl-hang { display: grid; gap: 3rem; }
.jf-cl-frame { margin: 0; }
.jf-cl-frame__wood { position: relative; padding: clamp(0.8rem, 1.5vw, 1.35rem); background: repeating-linear-gradient(92deg, oklch(0.33 0.075 42 / 0.25) 0 2px, transparent 2px 7px), linear-gradient(140deg, oklch(0.5 0.1 48), oklch(0.36 0.085 42) 45%, oklch(0.45 0.095 46)); box-shadow: inset 0 0 0 1px oklch(0.27 0.06 40), 0 1px 0 oklch(1 0 0 / 0.5), 0 34px 44px -26px oklch(0.3 0.06 50 / 0.75), 0 10px 14px -8px oklch(0.3 0.06 50 / 0.45); }
.jf-cl-frame__wood::after { content: ''; position: absolute; inset: calc(clamp(0.8rem, 1.5vw, 1.35rem) - 5px); border: 5px solid; border-image: linear-gradient(135deg, #f0d9a4, #97793f 40%, #e3c98f 60%, #7d6434) 1; box-shadow: inset 0 0 14px oklch(0.15 0.03 50 / 0.5); pointer-events: none; }
.jf-cl-frame__wood img { width: 100%; }
.jf-cl-frame figcaption { margin-top: 1.1rem; max-width: 30rem; }
.jf-cl-frame figcaption span { display: block; }
.jf-cl-frame--painting figcaption strong { display: block; margin-bottom: 0.4rem; font-family: var(--jf-serif); font-style: italic; font-weight: 500; font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.65rem); line-height: 1.25; color: var(--ink); }
.jf-cl-frame--painting figcaption a { display: inline-block; margin-top: 0.4rem; font-weight: 600; }
@media (min-width: 900px) {
  .jf-cl-wall__head { grid-template-columns: 1fr 1fr; align-items: end; gap: clamp(2rem, 6vw, 6rem); }
  .jf-cl-hang { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(2.5rem, 4vw, 4rem) clamp(1.75rem, 3vw, 3rem); align-items: start; }
  .jf-cl-frame--sofa { grid-column: 1 / 8; grid-row: 1; }
  .jf-cl-frame--album { grid-column: 8 / 13; grid-row: 1; padding-top: 4rem; }
  .jf-cl-frame--gemma { grid-column: 1 / 5; grid-row: 2; padding-top: 2.5rem; }
  .jf-cl-frame--painting { grid-column: 5 / 9; grid-row: 2; }
  .jf-cl-frame--covid { grid-column: 9 / 13; grid-row: 2; padding-top: 5.5rem; }
  .jf-cl-frame--working { grid-column: 1 / 7; grid-row: 1 / 3; }
  .jf-cl-frame--dinner { grid-column: 7 / 13; grid-row: 1; padding-top: 4rem; }
  .jf-cl-frame--working ~ .jf-cl-frame--painting { grid-column: 8 / 12; }
}

/* ---------- The magazine page ---------- */
.jf-cl-paper { background: radial-gradient(80% 70% at 22% 30%, oklch(0.27 0.085 22), transparent 75%), linear-gradient(180deg, oklch(0.13 0.03 25), oklch(0.18 0.055 22) 40%, oklch(0.12 0.03 25)); }
.jf-cl-paper__inner { width: var(--jf-wrap); margin-inline: auto; padding-block: clamp(4rem, 3rem + 5vw, 8rem); display: grid; gap: 3rem; }
.jf-cl-paper__page { margin: 0; }
.jf-cl-paper__page img { display: block; width: 100%; height: auto; box-shadow: 0 1px 0 oklch(1 0 0 / 0.5), 0 3rem 5rem -1.5rem oklch(0.05 0.02 25), 0 0.6rem 1.2rem oklch(0.05 0.02 25 / 0.6); }
.jf-cl-paper__page figcaption { margin-top: 1rem; color: var(--jf-muted); }
.jf-cl-paper__copy h2 { max-width: 14ch; }
.jf-cl-paper__pair { display: grid; gap: 1.75rem; margin-top: 2.5rem; padding-top: 2.25rem; border-top: 1px solid color-mix(in oklch, var(--jf-gold) 45%, transparent); }
.jf-cl-paper__pair figure { margin: 0; display: grid; gap: 0.6rem; align-content: start; }
.jf-cl-paper__pair figcaption { color: var(--jf-gold-light); }
.jf-cl-paper__pair .jf-cl-words p { font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.5rem); }
.jf-cl-paper__note { margin: 2.75rem 0 0; padding-top: 2.25rem; border-top: 1px solid color-mix(in oklch, var(--jf-gold) 45%, transparent); max-width: 40rem; }
@media (min-width: 900px) {
  .jf-cl-paper__inner { grid-template-columns: 5fr 7fr; gap: clamp(3rem, 6vw, 6.5rem); align-items: start; }
  .jf-cl-paper__page { position: sticky; top: calc(var(--jf-header-h) + 2rem); }
  .jf-cl-paper__page img { max-height: calc(100svh - var(--jf-header-h) - 7rem); width: auto; max-width: 100%; }
}
@media (min-width: 600px) { .jf-cl-paper__pair { grid-template-columns: 1fr 1fr; gap: 2.25rem; } }

/* ---------- The green front door ---------- */
.jf-cl-door { position: relative; overflow: hidden; background: oklch(0.31 0.05 195); }
.jf-cl-door__panels { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 2fr 3fr; gap: clamp(1rem, 3vw, 3rem); padding: clamp(1rem, 3vw, 3rem); background: linear-gradient(105deg, oklch(0.37 0.055 192), oklch(0.27 0.045 198) 45%, oklch(0.35 0.055 192) 60%, oklch(0.24 0.04 198)); }
.jf-cl-door__panels span { background: linear-gradient(150deg, oklch(0.33 0.05 195), oklch(0.26 0.045 198)); box-shadow: inset 0 3px 8px oklch(0.12 0.03 200 / 0.85), inset 0 -2px 3px oklch(0.6 0.06 190 / 0.35), 0 1px 0 oklch(0.55 0.06 190 / 0.5); }
@media (max-width: 899px) { .jf-cl-door__panels { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, 1fr); } }
.jf-cl-door__inner { position: relative; width: var(--jf-wrap); margin-inline: auto; padding-block: clamp(4rem, 3rem + 5vw, 8rem); }
.jf-cl-door__head h2 { max-width: 13ch; margin: 0; }
.jf-cl-door__photos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.6rem, 1.5vw, 1.5rem); margin-top: clamp(2rem, 4vw, 4rem); }
.jf-cl-door__photos figure { margin: 0; }
.jf-cl-door__photos img { display: block; width: 100%; aspect-ratio: 6 / 7; object-fit: cover; box-shadow: 0 2.5rem 3.5rem -1.5rem oklch(0.1 0.03 200); }
.jf-cl-door__photos figcaption { margin-top: 0.9rem; color: var(--jf-cream); font-size: clamp(0.9rem, 0.85rem + 0.25vw, 1.05rem); line-height: 1.5; }

/* ---------- The castle in Callander ---------- */
.jf-cl-grand { position: relative; overflow: hidden; background: var(--cl-navy); }
.jf-cl-grand__panels { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: 3fr 1.2fr; gap: clamp(1rem, 2.4vw, 2.4rem); padding: clamp(1rem, 2.4vw, 2.4rem); }
.jf-cl-grand__panels span { border: clamp(3px, 0.4vw, 6px) solid; border-image: var(--cl-gilt) 1; opacity: 0.85; background: linear-gradient(160deg, oklch(0.24 0.04 262), oklch(0.16 0.03 264)); box-shadow: inset 0 0 2.5rem oklch(0.08 0.02 265 / 0.8), 0 0 0 1px oklch(0.1 0.02 265); }
@media (max-width: 899px) { .jf-cl-grand__panels { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 2fr 2fr 1fr 1fr; } }
.jf-cl-grand::after { content: ''; position: absolute; inset: 0; background: radial-gradient(46% 42% at 74% 50%, color-mix(in oklch, var(--cl-navy-deep) 92%, transparent) 40%, transparent 100%), linear-gradient(180deg, oklch(0.1 0.02 265 / 0.45), transparent 30%, oklch(0.1 0.02 265 / 0.5)); }
.jf-cl-grand__inner { position: relative; z-index: 1; width: var(--jf-wrap); margin-inline: auto; padding-block: clamp(4rem, 3rem + 5vw, 8rem); display: grid; gap: 2.5rem; }
.jf-cl-grand figure { margin: 0; }
.jf-cl-grand img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 45% 40%; box-shadow: 0 0 0 6px oklch(0.12 0.02 265), 0 0 0 8px #a98747, 0 60px 90px -40px oklch(0.04 0.02 265); }
@media (max-width: 899px) { .jf-cl-grand::after { background: linear-gradient(180deg, oklch(0.1 0.02 265 / 0.3) 50%, var(--cl-navy-deep) 78%); } }
@media (min-width: 900px) {
  .jf-cl-grand__inner { grid-template-columns: 6fr 5fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; }
}

/* ---------- Close and shelf ---------- */
.jf-cl-close { width: var(--jf-wrap); margin-inline: auto; padding-block: clamp(4.5rem, 4rem + 5vw, 9rem) clamp(3rem, 5vw, 5rem); }
.jf-cl-close figure { margin: 0; max-width: 62rem; }
.jf-cl-close blockquote { margin: 0; }
.jf-cl-close p { margin: 0 0 1rem; font-family: var(--jf-serif); font-style: italic; font-size: clamp(2.1rem, 1.4rem + 3.2vw, 4.4rem); line-height: 1.08; color: var(--jf-cream); text-wrap: balance; }
.jf-cl-close figcaption { color: var(--jf-muted); }
.jf-cl-shelf { width: var(--jf-wrap); margin-inline: auto; padding-bottom: clamp(2rem, 5vw, 5rem); }
.jf-cl-shelf h2 { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); }
.jf-cl-shelf ul { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; }
.jf-cl-shelf a { position: relative; display: grid; gap: 0.15rem; padding: 1rem 1.4rem 1rem 2rem; min-height: 4.5rem; align-content: center; text-decoration: none; color: var(--jf-cream); border-bottom: 2px solid oklch(0.1 0.02 60); background: linear-gradient(180deg, oklch(1 0 0 / 0.12), oklch(1 0 0 / 0.02) 40%, oklch(0 0 0 / 0.35)), var(--c); box-shadow: inset 1rem 0 0 -0.85rem var(--jf-gold), inset 1.35rem 0 0 -1.27rem oklch(0 0 0 / 0.5); transition: transform 0.45s var(--jf-ease); }
.jf-cl-shelf a::before { content: ''; position: absolute; inset-block: 0; right: 0.9rem; width: 5px; border-inline: 1px solid var(--jf-gold); opacity: 0.7; }
.jf-cl-shelf li { --c: oklch(0.27 0.05 258); margin-inline: calc(var(--i, 0) * 0.35rem) 0; }
.jf-cl-shelf li:nth-child(2n) { --c: oklch(0.26 0.065 24); margin-right: 1.2rem; }
.jf-cl-shelf li:nth-child(3n) { --c: oklch(0.25 0.035 165); margin-left: 0.2rem; margin-right: 0.5rem; }
.jf-cl-shelf li:nth-child(4n) { --c: oklch(0.3 0.04 62); }
.jf-cl-shelf li.jf-cl-shelf__all { --c: var(--jf-gold); margin: 0; }
.jf-cl-shelf__all a { color: var(--jf-ink); }
.jf-cl-shelf a:is(:hover, :focus-visible) { transform: translateX(1.1rem); }
.jf-cl-shelf strong { font-family: var(--jf-serif); font-weight: 600; font-size: 1.5rem; line-height: 1.1; }
.jf-cl-shelf a span { font-size: 0.92rem; opacity: 0.85; }
@media (min-width: 800px) {
  .jf-cl-shelf a { grid-template-columns: 17rem 1fr; align-items: center; padding-right: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .jf-cl-shelf a:is(:hover, :focus-visible) { transform: none; }
}
