/* ==========================================================================
   Fox Fuel: 45 Years in Motion (V2.1, cinematic)
   Page-specific design exception approved by the owner for this section only.
   Layouts: full-bleed stacked chapters (no JS, phones, tablets, reduced motion)
   and a pinned, scroll-scrubbed cinematic stage (desktop, motion allowed).
   ========================================================================== */
.ff45v2 {
  --v2-ink: #04070d;
  --v2-red: var(--color-brand-primary, #BB0027);
  --v2-red-hover: var(--color-brand-primary-hover, #96001F);
  --v2-soft: rgba(255, 255, 255, .8);
  --v2-mute: rgba(255, 255, 255, .7);
  --v2-head: var(--font-family-heading, 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  --v2-body: var(--font-family-body, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  --v2-top: var(--header-height-mobile, 64px);
  --v2-D: 620vh;
  --v2-pad: clamp(20px, 6vw, 96px);
  --v2-rail: 0px;
  position: relative; background: var(--v2-ink); color: #fff; font-family: var(--v2-body); isolation: isolate;
}
@media (min-width: 992px) { .ff45v2 { --v2-top: var(--header-height, 80px); } }
.ff45v2 *, .ff45v2 *::before, .ff45v2 *::after { box-sizing: border-box; }
.ff45v2__sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Chapters: full-bleed stacked layout (default) ---------- */
.ff45v2__scenes { list-style: none; margin: 0; padding: 0; }
.ff45v2__scene {
  position: relative; margin: 0; overflow: hidden;
  min-height: max(600px, min(100vh, 1000px));
  min-height: max(600px, min(100svh, 1000px));
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--v2-pad) clamp(44px, 9vh, 96px);
  border-top: 2px solid var(--v2-red);
}
.ff45v2__scene:first-child { border-top: 0; }
.ff45v2__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #0b0f16; }
.ff45v2__cam { position: absolute; inset: 0; transform-origin: 50% 50%; will-change: transform; }
.ff45v2__cam picture { position: absolute; inset: 0; }
.ff45v2__cam img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ff45v2__mono { display: none; }
.ff45v2__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(0deg, rgba(4, 7, 13, .96) 0%, rgba(4, 7, 13, .8) 30%, rgba(4, 7, 13, .2) 58%, rgba(4, 7, 13, 0) 72%);
}
.ff45v2__sweep { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, rgba(255, 236, 214, 0) 38%, rgba(255, 236, 214, .15) 50%, rgba(255, 236, 214, 0) 62%); }

/* triptych */
.ff45v2__trip { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--v2-ink); }
.ff45v2__panel { position: relative; margin: 0; overflow: hidden; }
.ff45v2__panel picture, .ff45v2__panel img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ff45v2__panel figcaption { position: absolute; left: 0; right: 0; top: 0; padding: 16px 14px 28px; font: 600 .75rem/1.2 var(--v2-body); letter-spacing: .14em; text-transform: uppercase; color: #fff;
  background: linear-gradient(180deg, rgba(4, 7, 13, .72), rgba(4, 7, 13, 0)); }

/* opening: typographic title over warm light. Temporary visual until a genuine early photo is cleared. */
.ff45v2__media--title { background: radial-gradient(120% 90% at 50% 120%, #1a1208 0%, #0a0806 45%, var(--v2-ink) 75%); }
.ff45v2__glow { position: absolute; left: 62%; bottom: -34%; width: 120vmax; height: 80vmax; margin-left: -60vmax; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 186, 96, .58) 0%, rgba(240, 128, 40, .3) 30%, rgba(150, 64, 20, .12) 58%, rgba(0, 0, 0, 0) 100%);
  transform-origin: 50% 100%; will-change: transform, opacity; }
.ff45v2__scene--open .ff45v2__media::after { background: linear-gradient(0deg, rgba(4, 7, 13, .5) 0%, rgba(4, 7, 13, 0) 40%); }
.ff45v2__year.ff45v2__year--hero { font-size: clamp(2.4rem, .6rem + 9.6vw, 7.6rem); line-height: .92; letter-spacing: -.04em; max-width: 9.5em; }
.ff45v2__year--hero em { font-style: normal; color: #FFD7A1;
  background: linear-gradient(100deg, #FFE3BC 0%, #FFB45E 55%, #FFE3BC 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ff45v2__year.ff45v2__year--word { font-size: clamp(2.6rem, .6rem + 11vw, 8.4rem); letter-spacing: -.04em; }
.ff45v2__text--final { max-width: 38rem; }

/* engraved opening illustration (temporary visual) */
.ff45v2__scene--engraved .ff45v2__media::after { background: linear-gradient(0deg, rgba(4, 7, 13, .97) 0%, rgba(4, 7, 13, .82) 36%, rgba(4, 7, 13, .35) 62%, rgba(4, 7, 13, .1) 80%); }
.ff45v2__scene--engraved[data-scene="0"] .ff45v2__cam img { object-position: 58% 50%; }
.ff45v2__pictured--illus { font-size: .8125rem; }

/* illustrated option: chapters whose picture is an owner-supplied illustration (labelled on the page) */
.ff45v2__pictured--illus { color: rgba(255, 226, 180, .82); }
.ff45v2__scene--illus .ff45v2__glow { display: none; }
.ff45v2__scene.ff45v2__scene--illus[data-scene="0"] .ff45v2__cam img { object-position: 50% 50%; }
.ff45v2__scene.ff45v2__scene--illus[data-scene="2"] .ff45v2__cam img { object-position: 68% 50%; }
.ff45v2__scene.ff45v2__scene--illus[data-scene="4"] .ff45v2__cam img { object-position: 60% 50%; }
.ff45v2__scene.ff45v2__scene--illus .ff45v2__media::after { background: linear-gradient(0deg, rgba(4, 7, 13, .96) 0%, rgba(4, 7, 13, .78) 34%, rgba(4, 7, 13, .2) 60%, rgba(4, 7, 13, 0) 74%); }

/* copy */
.ff45v2__copy { position: relative; z-index: 3; max-width: 46rem; }
.ff45v2__eyebrow { margin: 0 0 .9rem; font: 600 .75rem/1.3 var(--v2-body); letter-spacing: .22em; text-transform: uppercase; color: var(--v2-soft); }
.ff45v2__year { margin: 0; font-family: var(--v2-head); font-weight: 700; color: #fff; font-size: clamp(4.5rem, 2rem + 13vw, 9.5rem); line-height: .82; letter-spacing: -.045em; }
.ff45v2__year--final { font-size: clamp(2.8rem, 1rem + 9vw, 6.5rem); line-height: .9; text-transform: uppercase; letter-spacing: -.035em; max-width: 9.5em; }
.ff45v2__rule { display: block; width: clamp(96px, 14vw, 220px); height: 3px; background: var(--v2-red); margin: clamp(18px, 3vh, 30px) 0; transform-origin: 0 50%; }
.ff45v2__title { margin: 0; font-family: var(--v2-head); font-weight: 600; color: #fff; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.9rem); line-height: 1.07; letter-spacing: -.015em; max-width: 18em; }
.ff45v2__title--final { font-weight: 500; font-size: clamp(1.35rem, 1rem + 1.6vw, 2.2rem); line-height: 1.18; }
.ff45v2__text { margin: 1rem 0 0; font-size: clamp(1rem, .95rem + .25vw, 1.125rem); line-height: 1.6; color: var(--v2-soft); max-width: 34rem; }
.ff45v2__pictured { margin: 1rem 0 0; font: 500 .75rem/1.45 var(--v2-body); letter-spacing: .04em; color: var(--v2-mute); }
.ff45v2__cta { margin: clamp(1.4rem, 3.5vh, 2.4rem) 0 0; }
.ff45v2__btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .95rem 1.75rem;
  border-radius: var(--radius-md, 4px); border: 2px solid var(--v2-red); background: var(--v2-red); color: #fff; text-decoration: none;
  font: 600 1.0625rem/1.2 var(--v2-head); white-space: normal; text-align: center; transition: background-color .2s ease, border-color .2s ease;
}
.ff45v2__btn:hover { background: var(--v2-red-hover); border-color: var(--v2-red-hover); color: #fff; }
.ff45v2 a:focus-visible { outline: 3px solid #fff; outline-offset: 4px; border-radius: 2px; }
.ff45v2__rail, .ff45v2__wipe, .ff45v2__letterbox, .ff45v2__grain { display: none; }
.ff45v2__note { margin: 0; padding: 18px var(--v2-pad) 28px; font-size: .75rem; line-height: 1.5; color: var(--v2-mute); background: var(--v2-ink); }

/* art direction: focal points (landscape) */
.ff45v2__scene[data-scene="1"] .ff45v2__cam img { object-position: 30% 60%; }
.ff45v2__scene[data-scene="2"] .ff45v2__cam img { object-position: 40% 55%; }
.ff45v2__scene[data-scene="3"] .ff45v2__cam img { object-position: 40% 50%; }
.ff45v2__scene[data-scene="4"] .ff45v2__cam img { object-position: 50% 40%; }
.ff45v2__scene[data-scene="6"] .ff45v2__cam img { object-position: 50% 60%; }
/* portrait screens: put the subject in the upper frame, above the copy */
@media (max-aspect-ratio: 1/1) {
  .ff45v2__scene[data-scene="1"] .ff45v2__cam img { object-position: 31% 50%; }
  .ff45v2__scene[data-scene="2"] .ff45v2__cam img { object-position: 19% 50%; }
  .ff45v2__scene[data-scene="3"] .ff45v2__cam img { object-position: 3% 50%; }
  .ff45v2__scene[data-scene="4"] .ff45v2__cam img { object-position: 42% 50%; }
  .ff45v2__scene[data-scene="6"] .ff45v2__cam img { object-position: 46% 50%; }
  .ff45v2__media .ff45v2__cam { bottom: 18%; }
  .ff45v2__trip { bottom: 22%; }
}

/* ---------- Pinned cinematic stage (desktop, motion allowed, JS) ---------- */
@media (min-width: 960px) and (min-height: 600px) and (prefers-reduced-motion: no-preference) {
  .ff45v2-js .ff45v2 { --v2-rail: 88px; }
  .ff45v2-js .ff45v2__track { position: relative; height: calc(100vh - var(--v2-top) + var(--v2-D)); }
  .ff45v2-js .ff45v2__stage { position: sticky; top: var(--v2-top); height: calc(100vh - var(--v2-top)); overflow: hidden; background: var(--v2-ink); }
  .ff45v2-js .ff45v2__scenes { position: absolute; inset: 0; }
  .ff45v2-js .ff45v2__scene { position: absolute; inset: 0; min-height: 0; padding: 0; border: 0; display: block; }
  .ff45v2-js .ff45v2__scene:not(:first-child) { clip-path: inset(0 100% 0 0); }
  .ff45v2-js .ff45v2__mono { display: block; }
  .ff45v2-js .ff45v2__copy { position: absolute; left: var(--v2-pad); bottom: clamp(44px, 9vh, 104px); max-width: min(46vw, 46rem); }
  .ff45v2-js .ff45v2__copy--right { left: auto; right: calc(var(--v2-pad) + var(--v2-rail)); max-width: min(40vw, 40rem); }
  .ff45v2-js .ff45v2__copy--top { bottom: auto; top: clamp(30px, 6vh, 80px); max-width: min(80vw, 72rem); }
  .ff45v2-js .ff45v2__year { font-size: clamp(5rem, 17vh, 15rem); }
  .ff45v2-js .ff45v2__year--final { font-size: clamp(2.6rem, min(10.5vh, 6.4vw), 8.6rem); max-width: none; white-space: nowrap; }
  .ff45v2-js .ff45v2__title { font-size: clamp(1.75rem, 4.6vh, 3.1rem); }
  .ff45v2-js .ff45v2__title--final { font-size: clamp(1.35rem, 3.3vh, 2.2rem); }
  .ff45v2-js .ff45v2__copy--top .ff45v2__cta { margin-top: clamp(1rem, 2.6vh, 1.8rem); }

  /* directional scrims, one per composition */
  .ff45v2-js .ff45v2__media::after { background: linear-gradient(0deg, rgba(4, 7, 13, .9) 0%, rgba(4, 7, 13, .5) 30%, rgba(4, 7, 13, 0) 58%), linear-gradient(90deg, rgba(4, 7, 13, .78) 0%, rgba(4, 7, 13, .3) 40%, rgba(4, 7, 13, 0) 60%); }
  .ff45v2-js .ff45v2__scene[data-scene="1"] .ff45v2__media::after,
  .ff45v2-js .ff45v2__scene[data-scene="2"] .ff45v2__media::after { background: linear-gradient(0deg, rgba(4, 7, 13, .7) 0%, rgba(4, 7, 13, 0) 40%), linear-gradient(270deg, rgba(4, 7, 13, .94) 0%, rgba(4, 7, 13, .72) 32%, rgba(4, 7, 13, .2) 54%, rgba(4, 7, 13, 0) 66%); }
  .ff45v2-js .ff45v2__scene[data-scene="4"] .ff45v2__media { background: var(--v2-ink); }
  .ff45v2-js .ff45v2__scene[data-scene="4"] .ff45v2__cam { left: 46%; }
  .ff45v2-js .ff45v2__scene[data-scene="4"] .ff45v2__media::after { background: linear-gradient(90deg, rgba(4, 7, 13, 1) 0%, rgba(4, 7, 13, 1) 46%, rgba(4, 7, 13, .35) 56%, rgba(4, 7, 13, 0) 66%), linear-gradient(0deg, rgba(4, 7, 13, .5) 0%, rgba(4, 7, 13, 0) 30%); }
  .ff45v2-js .ff45v2__scene[data-scene="5"] .ff45v2__media::after { background: linear-gradient(0deg, rgba(4, 7, 13, .94) 0%, rgba(4, 7, 13, .6) 34%, rgba(4, 7, 13, 0) 60%), linear-gradient(90deg, rgba(4, 7, 13, .7) 0%, rgba(4, 7, 13, 0) 45%); }
  .ff45v2-js .ff45v2__scene[data-scene="6"] .ff45v2__media::after { background: linear-gradient(180deg, rgba(4, 7, 13, .92) 0%, rgba(4, 7, 13, .8) 30%, rgba(4, 7, 13, .36) 50%, rgba(4, 7, 13, 0) 64%), linear-gradient(90deg, rgba(4, 7, 13, .6) 0%, rgba(4, 7, 13, 0) 50%); }

  /* triptych: copy on the ink ground at left, three operations at right */
  .ff45v2-js .ff45v2__trip { inset: 0; gap: 2px; }
  .ff45v2-js .ff45v2__scene--trip .ff45v2__copy { max-width: min(34vw, 34rem); }
  .ff45v2-js .ff45v2__panel figcaption { padding: 28px 24px 40px; }
  .ff45v2-js .ff45v2__scene--trip .ff45v2__year { font-size: min(clamp(5rem, 17vh, 15rem), 11vw); }

  /* opening: copy sits centred-left over the light */
  .ff45v2-js .ff45v2__scene[data-scene="0"] .ff45v2__media::after { background: linear-gradient(90deg, rgba(4, 7, 13, .55) 0%, rgba(4, 7, 13, 0) 55%); }
  .ff45v2-js .ff45v2__copy--hero { bottom: auto; top: 50%; transform: translateY(-50%); max-width: min(72vw, 64rem); }
  .ff45v2-js .ff45v2__year--hero { font-size: clamp(3.6rem, 13vh, 10.5rem); }
  .ff45v2-js .ff45v2__year--word { font-size: clamp(4.4rem, 14.5vh, 12.5rem); }
  .ff45v2-js .ff45v2__scene--trip .ff45v2__year--word { font-size: min(clamp(4.4rem, 14.5vh, 12.5rem), 7.6vw); }
  .ff45v2-js .ff45v2__copy--top .ff45v2__text--final { margin-top: .8rem; font-size: clamp(.95rem, 2vh, 1.1rem); }

  .ff45v2-js .ff45v2__scene.ff45v2__scene--illus .ff45v2__cam { left: 0; }
  .ff45v2-js .ff45v2__scene--illus .ff45v2__copy--hero { max-width: min(52vw, 50rem); }
  .ff45v2-js .ff45v2__scene--illus .ff45v2__year--hero { font-size: clamp(3.2rem, 10.5vh, 8.6rem); }
  .ff45v2-js .ff45v2__scene.ff45v2__scene--illus .ff45v2__media::after { background: linear-gradient(0deg, rgba(4, 7, 13, .86) 0%, rgba(4, 7, 13, .4) 30%, rgba(4, 7, 13, 0) 52%), linear-gradient(90deg, rgba(4, 7, 13, .86) 0%, rgba(4, 7, 13, .55) 34%, rgba(4, 7, 13, 0) 58%); }

  .ff45v2-js .ff45v2__scene.ff45v2__scene--engraved .ff45v2__media::after { background: linear-gradient(90deg, rgba(4, 7, 13, .95) 0%, rgba(4, 7, 13, .8) 30%, rgba(4, 7, 13, .25) 58%, rgba(4, 7, 13, .1) 100%), linear-gradient(0deg, rgba(4, 7, 13, .6) 0%, rgba(4, 7, 13, 0) 35%); }
  .ff45v2-js .ff45v2__scene--engraved .ff45v2__copy--hero { max-width: min(54vw, 52rem); }
  .ff45v2-js .ff45v2__scene--engraved .ff45v2__year--hero { font-size: clamp(3.2rem, 11vh, 9rem); }

  /* match-cut lines */
  .ff45v2-js .ff45v2__wipe { display: block; position: absolute; z-index: 5; pointer-events: none; opacity: 0; background: var(--v2-red); }
  .ff45v2-js .ff45v2__wipe--a, .ff45v2-js .ff45v2__wipe--b { top: 0; bottom: 0; left: 0; width: 3px; margin-left: -1px; }
  .ff45v2-js .ff45v2__wipe--h { left: 0; right: 0; top: 0; height: 3px; margin-top: -1px; }

  .ff45v2-js .ff45v2__letterbox { display: block; position: absolute; inset: 0; z-index: 6; pointer-events: none; }
  .ff45v2-js .ff45v2__letterbox i { position: absolute; left: 0; right: 0; height: var(--v2-lb, 0px); background: #000; }
  .ff45v2-js .ff45v2__letterbox i:first-child { top: 0; }
  .ff45v2-js .ff45v2__letterbox i:last-child { bottom: 0; }
  .ff45v2-js .ff45v2__grain { display: block; position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: .08;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.6 -.3'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

  /* chapter rail */
  .ff45v2-js .ff45v2__rail { display: block; position: absolute; z-index: 8; top: 0; right: 0; bottom: 0; width: calc(var(--v2-rail) + 40px); pointer-events: none;
    background: linear-gradient(270deg, rgba(4, 7, 13, .55) 0%, rgba(4, 7, 13, .25) 55%, rgba(4, 7, 13, 0) 100%); }
  .ff45v2-js .ff45v2__rail ol { transition: opacity .3s ease; position: sticky; top: calc(var(--v2-top) + (100vh - var(--v2-top)) / 2 - 150px); list-style: none; margin: 0; padding: 0 24px 0 0;
    display: flex; flex-direction: column; align-items: flex-end; gap: 4px; pointer-events: auto; }
  .ff45v2-js .ff45v2__rail a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 44px; min-width: 44px;
    font: 600 .75rem/1 var(--v2-body); letter-spacing: .12em; color: rgba(255, 255, 255, .72); text-decoration: none; white-space: nowrap; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
  .ff45v2-js .ff45v2__rail a::after { content: ""; width: 14px; height: 2px; background: rgba(255, 255, 255, .45); transition: width .25s ease, background-color .25s ease; }
  .ff45v2-js .ff45v2__rail a.is-active { color: #fff; }
  .ff45v2-js .ff45v2__rail a.is-active::after { width: 30px; background: var(--v2-red); }
  .ff45v2-js .ff45v2__rail a:hover { color: #fff; }
}

/* Review mode (?ff45-review=1): highlight claims awaiting owner verification */
.ff45v2--review [data-verify] { outline: 2px dashed #FFD84D; outline-offset: 3px; }
.ff45v2--review [data-verify]::after { content: " verify"; font: 700 10px/1 var(--v2-body); letter-spacing: .08em; text-transform: uppercase; color: #1a1300; background: #FFD84D; padding: 2px 4px; margin-left: 6px; vertical-align: middle; }

/* Sticky pinning needs a non-scrolling ancestor chain; the theme sets overflow-x:hidden on html/body. */
@supports (overflow-x: clip) {
  html.ff45v2-js, html.ff45v2-js body { overflow-x: clip !important; overflow-y: visible !important; }
  html.ff45v2-js { overflow-y: auto !important; }
}
@media (prefers-reduced-motion: reduce) { .ff45v2 *, .ff45v2 *::before, .ff45v2 *::after { transition: none !important; } }
