/* ==========================================================================
   leroyhite.com — November 2026 upgrades (the "v2" layer). Loads after site.css.
   Goes with js/v2.js. Nearly everything is scoped to html.v2; the inline script
   in <head> adds that class, so these styles apply only when scripting is on.

   1 hero reel badge · 2 story navigation, focus reading, $12 countdown ·
   3 the three-legged stool · 4 Oval Office reveal · 5 speaking still + play
   cursor · 6 phone: chapter pill, Keep reading, Get in touch button
   ========================================================================== */

/* ---------- 1. HERO: the reel, one tap from the first screen ---------- */
.reelbadge{display:none}
html.v2 .reelbadge{position:absolute;z-index:4;left:-3%;bottom:19%;display:grid;place-items:center;width:clamp(128px,11.5vw,172px);aspect-ratio:1;border-radius:50%;color:var(--text);opacity:0;transform:scale(.86);transition:opacity .9s var(--ease) 1.5s,transform 1.1s var(--ease) 1.5s}
html.v2.is-loaded .reelbadge{opacity:1;transform:none}
html.v2 .reelbadge__img{position:absolute;inset:15%;border-radius:50%;overflow:hidden;box-shadow:0 0 0 1px rgba(242,235,221,.28),0 18px 44px -14px rgba(0,0,0,.9),0 0 46px -6px rgba(236,106,44,.55)}
html.v2 .reelbadge__img img{width:100%;height:100%;object-fit:cover;transition:transform 1.2s var(--ease)}
html.v2 .reelbadge__img::after{content:"";position:absolute;inset:0;background:radial-gradient(circle,rgba(11,9,8,.05) 30%,rgba(11,9,8,.55))}
html.v2 .reelbadge__ring{position:absolute;inset:0;width:100%;height:100%;animation:v2spin 22s linear infinite}
html.v2 .reelbadge__ring text{font-family:var(--sans);font-size:9.2px;font-weight:600;letter-spacing:.34em;fill:rgba(242,235,221,.86)}
html.v2 .reelbadge__play{position:relative;z-index:1;width:30%;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;background:rgba(11,9,8,.42);box-shadow:inset 0 0 0 1px rgba(242,235,221,.55);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);transition:background .4s,transform .5s var(--ease)}
html.v2 .reelbadge__play svg{width:34%;margin-left:8%;fill:var(--text)}
html.v2 .reelbadge:hover .reelbadge__play{background:var(--ember);transform:scale(1.1)}
html.v2 .reelbadge:hover .reelbadge__img img{transform:scale(1.08)}
html.v2 .reelbadge:hover .reelbadge__ring{animation-duration:9s}
@keyframes v2spin{to{transform:rotate(360deg)}}
@media (max-width:759px){
  html.v2 .reelbadge{left:auto;right:5%;bottom:calc(37% + 12px);width:112px}
}

/* big screens: the three lines of the headline stay three lines */
@media (min-width:1100px){
  .hero .h1 .line{white-space:nowrap}
}

/* ---------- 2. STORY: find your place, keep your place ---------- */
html.v2 .story__meta2{margin-top:18px;font-size:13px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--text-3)}
html.v2 .story__meta2 b{color:var(--ember);font-weight:600}

/* chapter timeline under the sticky frame (replaces the passive dashes) */
html.v2 .story__dots{display:none}
.chnav{display:none}
html.v2 .chnav{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:5px;padding-top:6px;position:relative}
html.v2 .chnav a{position:relative;display:block;height:26px}
html.v2 .chnav a::before{content:"";position:absolute;left:0;right:0;top:10px;height:2px;background:var(--line-2);transition:height .3s var(--ease),top .3s var(--ease),background .4s,box-shadow .4s}
html.v2 .chnav a.is-done::before{background:rgba(236,106,44,.42)}
html.v2 .chnav a.is-active::before{background:var(--ember);box-shadow:0 0 10px rgba(236,106,44,.75)}
html.v2 .chnav a:hover::before,html.v2 .chnav a:focus-visible::before{height:8px;top:7px;background:var(--flame)}
html.v2 .chnav__tip{position:absolute;left:0;bottom:calc(100% + 4px);z-index:5;padding:9px 13px;border-radius:3px;background:var(--text);color:#150e09;font-size:13px;font-weight:600;line-height:1.3;white-space:nowrap;pointer-events:none;opacity:0;transform:translateY(6px);transition:opacity .25s,transform .35s var(--ease)}
html.v2 .chnav__tip b{font-weight:600;color:var(--ember-2);margin-right:8px;font-variant-numeric:tabular-nums}
html.v2 .chnav__tip.is-on{opacity:1;transform:none}

/* chapter index: the count becomes a button that opens the full list */
html.v2 .story__count{display:inline-flex;align-items:center;gap:10px;padding:8px 12px;margin:0 -12px 0 0;border-radius:999px;cursor:pointer;transition:background .3s,color .3s}
html.v2 .story__count::before{content:"";width:14px;height:9px;border-block:1.5px solid currentColor;background:linear-gradient(currentColor,currentColor) center/100% 1.5px no-repeat;opacity:.85}
html.v2 .story__count:hover,html.v2 .story__count[aria-expanded="true"]{background:rgba(242,235,221,.08);color:var(--text)}
.chindex{display:none}
html.v2 .chindex{position:absolute;inset:0;z-index:6;display:flex;flex-direction:column;padding:clamp(22px,2.4vw,36px);background:rgba(14,11,9,.96);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);opacity:0;visibility:hidden;transition:opacity .4s var(--ease),visibility 0s .4s}
html.v2 .chindex.is-open{opacity:1;visibility:visible;transition:opacity .4s var(--ease)}
html.v2 .chindex__head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:14px;font-size:12px;font-weight:600;letter-spacing:.22em;text-transform:uppercase;color:var(--ember)}
html.v2 .chindex__close{font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--text-2)}
html.v2 .chindex__close:hover{color:var(--text)}
html.v2 .chindex ol{flex:1;display:grid;grid-auto-rows:1fr;min-height:0}
html.v2 .chindex li{border-top:1px solid var(--line);min-height:0}
html.v2 .chindex a{display:grid;grid-template-columns:2.4em 5.2em 1fr;align-items:center;gap:10px;height:100%;font-size:13px;color:var(--text-3);transition:color .25s,padding .4s var(--ease)}
html.v2 .chindex a span:nth-child(1){font-variant-numeric:tabular-nums;font-weight:600}
html.v2 .chindex a b{font-family:var(--display);font-weight:400;font-size:clamp(17px,1.5vw,23px);letter-spacing:.03em;line-height:1;text-transform:uppercase;color:var(--text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.v2 .chindex a:hover{padding-left:8px;color:var(--text-2)}
html.v2 .chindex a:hover b{color:var(--text)}
html.v2 .chindex a.is-active{color:var(--ember)}
html.v2 .chindex a.is-active b{color:var(--flame)}

/* focus reading: the paragraph you're on is lit, the rest sit back */
@media (min-width:760px){
  html.v2 .story.is-reading .chapter__text{color:rgba(242,235,221,.54);transition:color .6s var(--ease)}
  html.v2 .story.is-reading .chapter__text.is-lit{color:rgba(242,235,221,.93)}
  html.v2 .story.is-reading .chapter__quote{opacity:.5;transition:opacity .6s var(--ease)}
  html.v2 .story.is-reading .chapter__quote.is-lit{opacity:1}
}
/* one line per chapter burns in (existing sentences, no new words) */
html.v2 .burn{color:inherit;background:linear-gradient(100deg,#ffc57a,#f59245 40%,#e8622a) 0 100%/0% 2px no-repeat;padding-bottom:2px;transition:background-size 1.2s var(--ease) .2s,color .6s var(--ease)}
html.v2 .is-lit .burn{background-size:100% 2px;color:#fff6e6}

/* the $12 card counts down as you read */
html.v2 .scard--count .scard__num{font-size:calc(min(54cqw,31vh) * var(--k,1));transition:font-size .28s var(--ease);font-variant-numeric:tabular-nums;white-space:nowrap}
html.v2 .story__fig .scard--count .scard__kicker,html.v2 .chapter__card .scard--count .scard__kicker{transition:opacity .7s var(--ease)}
html.v2 .scard--count:not(.is-landed) .scard__kicker{opacity:0!important}
html.v2 .scard--count.is-landed .scard__num{animation:v2land .9s var(--ease)}
@keyframes v2land{0%{filter:brightness(1.9) drop-shadow(0 0 30px rgba(255,179,92,.9))}100%{filter:none}}

/* photos: one warm grade so phone snapshots read as a set, plus a slow push-in */
html.v2 .story__fig:not(.story__fig--card) img,html.v2 .chapter__fig img{filter:saturate(.8) contrast(1.07) brightness(.93) sepia(.16)}
html.v2 .story__fig:not(.story__fig--card)::before,html.v2 .chapter__fig::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:radial-gradient(120% 90% at 0% 100%,rgba(236,106,44,.26),transparent 60%),linear-gradient(180deg,rgba(255,179,92,.05),transparent 40%);mix-blend-mode:soft-light}
html.v2 .story__fig.is-active img{animation:v2kb 18s ease-in-out 2.4s infinite alternate}
@keyframes v2kb{from{transform:scale(1)}to{transform:scale(1.075)}}

/* ---------- 3. THE STANDARD: the stool you can knock over ---------- */
.stoolwrap{display:none}
html.v2 .stoolwrap{display:block;position:relative}
html.v2 .stool{display:block;width:100%;height:100%;overflow:visible}
html.v2 .stool__seat,html.v2 .stool__rung{fill:none;stroke:rgba(242,235,221,.86);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
html.v2 .stool__seatfill{fill:url(#stool-seat);stroke:none}
html.v2 .stool__rung{stroke:rgba(242,235,221,.5);stroke-width:1.6;opacity:0;transition:opacity .6s var(--ease)}
html.v2 .stool__ghost{fill:none;stroke:rgba(242,235,221,.22);stroke-width:1.4;stroke-dasharray:3 7;transition:opacity .5s}
html.v2 .stool__leg{cursor:pointer}
html.v2 .stool__leg .ln{fill:rgba(236,106,44,0);stroke:url(#stool-fire);stroke-width:3;stroke-linejoin:round;stroke-dasharray:var(--len,700);stroke-dashoffset:var(--len,700);filter:drop-shadow(0 0 7px rgba(236,106,44,.55));transition:stroke-dashoffset 1.1s var(--ease),fill 1s var(--ease) .5s}
html.v2 .stool__leg .hit{fill:transparent;stroke:transparent;stroke-width:34}
html.v2 .stool__leg.is-on .ln{stroke-dashoffset:0;fill:rgba(236,106,44,.13)}
html.v2 .stool__leg.is-on + .stool__ghost,html.v2 .stool__leg.is-on ~ .stool__ghost[data-for]{opacity:0}
html.v2 .stool__leg.is-on:hover .ln,html.v2 .stool__leg.is-on:focus-visible .ln{fill:rgba(236,106,44,.34)}
html.v2 .stool__leg:not(.is-on){pointer-events:none}
html.v2 .stool__leg:focus-visible{outline:none}
html.v2 .stool__label{font-family:var(--display);font-size:25px;letter-spacing:.07em;fill:rgba(242,235,221,.3);text-anchor:middle;transition:fill .6s var(--ease)}
html.v2 .stool__label tspan{font-family:var(--serif);font-style:italic;font-size:19px;letter-spacing:0;fill:rgba(236,106,44,.45);transition:fill .6s var(--ease)}
html.v2 .stool__label.is-on{fill:var(--text)}
html.v2 .stool__label.is-on tspan{fill:var(--ember)}
html.v2 .stool__pool{fill:url(#stool-pool);opacity:.35;transition:opacity 1.2s var(--ease)}
html.v2 .stool__joy{font-family:var(--display);font-size:21px;letter-spacing:.34em;fill:var(--flame);text-anchor:middle;opacity:0;transition:opacity .9s var(--ease) .35s}
html.v2 .stool__top{animation:v2float 3.6s ease-in-out infinite alternate}
html.v2 .stool.is-whole .stool__top{animation:none}
html.v2 .stool.is-whole .stool__rung{opacity:1}
html.v2 .stool.is-whole .stool__pool{opacity:1}
html.v2 .stool.is-whole .stool__joy{opacity:1}
html.v2 .stool.is-tipped .stool__joy{opacity:0;transition-delay:0s}
@keyframes v2float{from{transform:translateY(-7px)}to{transform:translateY(5px)}}
html.v2 .stool__hint{position:absolute;left:0;right:0;bottom:-6px;text-align:center;font-size:13px;font-weight:500;color:var(--text-3);opacity:0;transform:translateY(8px);transition:opacity .8s var(--ease) .6s,transform .9s var(--ease) .6s}
html.v2 .stool__hint span{display:inline-block;padding:8px 14px;border:1px solid var(--line-2);border-radius:999px}
html.v2 .stoolwrap.is-whole .stool__hint{opacity:1;transform:none}
html.v2 .pillar__title{transition:color .5s var(--ease)}
@media (min-width:1100px){
  html.v2 .standard__duo{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);column-gap:clamp(48px,6vw,110px);align-items:start}
  html.v2 .standard__head{display:block;margin-bottom:clamp(28px,3.4vw,52px)}
  html.v2 .standard__head .lede{margin-top:30px;max-width:33em}
  html.v2 .pillars{display:block;border-top:0}
  html.v2 .pillar,html.v2 .pillar:first-child{border-left:0;padding:clamp(34px,3.6vw,54px) 0 clamp(38px,4vw,60px);border-top:1px solid var(--line-2)}
  html.v2 .pillar::before{top:-1px}
  html.v2 .pillar__num{margin-bottom:16px}
  html.v2 .pillar__text{max-width:31em;font-size:17.5px}
  html.v2 .pillar:not(.is-leg) .pillar__title{color:var(--text-3)}
  html.v2 .stoolwrap{position:sticky;top:calc(50vh - min(310px,39vh));height:min(620px,78vh)}
}
@media (max-width:1099px){
  html.v2 .standard__duo{display:flex;flex-direction:column}
  html.v2 .standard__left{display:contents}
  html.v2 .standard__head{order:1}
  html.v2 .stoolwrap{order:2;width:100%;height:clamp(300px,74vw,440px);margin:-14px auto 40px;max-width:440px}
  html.v2 .pillars{order:3}
}

/* ---------- 4. OVAL OFFICE: the fire first, then who is sitting by it ---------- */
html.v2 .oval::before{opacity:var(--ov,1)}
html.v2 .oval.is-staged .oval__title .wi{transition:none}
html.v2 .oval.is-staged .oval__cap{transition:none}

/* ---------- 5. SPEAKING: lead with Leroy talking; the whole frame plays the reel ---------- */
.cinema__still{display:block;object-position:62% 30%}
html.v2 .cinema::before{background:linear-gradient(90deg,rgba(11,9,8,.93) 0%,rgba(11,9,8,.74) 34%,rgba(11,9,8,.12) 66%,rgba(11,9,8,.3) 100%),linear-gradient(to bottom,var(--bg) 0%,rgba(11,9,8,0) 18%,rgba(11,9,8,0) 74%,var(--bg) 100%)}
/* desktop (words laid over the photo): the photo is drawn 30% larger and anchored left, which puts
   Leroy in the right half of the frame at every width, clear of the headline and the copy */
@media (min-width:1100px){
  .cinema__still{width:130%!important;max-width:none;object-position:0 25%}
}
/* tablets and narrow windows: the photo sits above the words (the layout phones already use),
   so nothing is written across Leroy */
@media (min-width:760px) and (max-width:1099px){
  html.v2 .cinema{height:auto;min-height:0;padding-block:0;display:block}
  html.v2 .cinema__media{position:relative;inset:auto;aspect-ratio:16/9;overflow:hidden;transform:none!important}
  html.v2 .cinema::before{display:none}
  html.v2 .cinema__media::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,var(--bg) 0%,rgba(11,9,8,0) 22%,rgba(11,9,8,.1) 55%,var(--bg) 100%)}
  html.v2 .cinema .wrap{position:relative;margin-top:-8vw;padding-bottom:10px}
  .cinema__still{object-position:50% 30%}
}
.playcur{display:none}
@media (hover:hover) and (pointer:fine){
  html.v2 .playcur{position:fixed;left:0;top:0;z-index:650;display:grid;place-items:center;width:112px;height:112px;margin:-56px 0 0 -56px;border-radius:50%;background:var(--ember);color:#160b05;font-size:12px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;text-align:center;line-height:1.25;pointer-events:none;opacity:0;scale:.3;transition:opacity .3s,scale .45s var(--ease);will-change:transform}
  html.v2 .playcur.is-on{opacity:1;scale:1}
  html.v2 .cinema.is-playcur{cursor:none}
}

/* ---------- 6. PHONE: place-keeping, shorter chapters, a thumb-reach button ---------- */
.chpill,.chsheet,.ctabar,.chmore__btn{display:none}
html.v2 .chmore{display:contents}
@media (max-width:1099px){
  html.v2 .chpill{position:fixed;left:50%;top:calc(var(--nav-h) + 8px);z-index:590;display:inline-flex;align-items:center;gap:10px;max-width:calc(100vw - 28px);padding:10px 14px 10px 16px;border-radius:999px;background:rgba(20,16,13,.9);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:inset 0 0 0 1px var(--line-2),0 14px 34px -14px rgba(0,0,0,.9);font-size:12px;font-weight:600;letter-spacing:.08em;color:var(--text-2);white-space:nowrap;transform:translate(-50%,-160%);opacity:0;transition:transform .55s var(--ease),opacity .4s,top .5s var(--ease)}
  html.v2 .nav.is-hidden ~ .chpill{top:10px}
  html.v2 .chpill.is-on{transform:translate(-50%,0);opacity:1}
  html.v2 .chpill b{color:var(--ember);font-variant-numeric:tabular-nums}
  html.v2 .chpill em{font-family:var(--display);font-style:normal;font-weight:400;font-size:17px;letter-spacing:.05em;line-height:1;color:var(--text);overflow:hidden;text-overflow:ellipsis;text-transform:uppercase}
  html.v2 .chpill i{width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg) translate(-2px,-2px);flex:none}
  html.v2 .chsheet{position:fixed;inset:0;z-index:640;display:flex;align-items:flex-end;background:rgba(6,5,4,.6);opacity:0;visibility:hidden;transition:opacity .35s,visibility 0s .35s}
  html.v2 .chsheet.is-open{opacity:1;visibility:visible;transition:opacity .35s}
  html.v2 .chsheet__panel{width:100%;max-height:82svh;overflow:auto;overscroll-behavior:contain;padding:10px var(--gutter) calc(22px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0;background:#14100d;box-shadow:0 -1px 0 var(--line-2);transform:translateY(100%);transition:transform .5s var(--ease)}
  html.v2 .chsheet.is-open .chsheet__panel{transform:none}
  html.v2 .chsheet__grab{width:44px;height:4px;border-radius:4px;margin:4px auto 14px;background:var(--line-2)}
  html.v2 .chsheet__head{display:flex;justify-content:space-between;align-items:baseline;padding-bottom:10px;font-size:12px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:var(--ember)}
  html.v2 .chsheet__head button{font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--text-2);padding:8px 0 8px 16px}
  html.v2 .chsheet li{border-top:1px solid var(--line)}
  html.v2 .chsheet a{display:grid;grid-template-columns:2.2em 4.8em 1fr;align-items:center;gap:8px;padding:13px 0;font-size:13px;color:var(--text-3)}
  html.v2 .chsheet a span:first-child{font-weight:600;font-variant-numeric:tabular-nums}
  html.v2 .chsheet a b{font-family:var(--display);font-weight:400;font-size:21px;letter-spacing:.03em;line-height:1;text-transform:uppercase;color:var(--text)}
  html.v2 .chsheet a.is-active,html.v2 .chsheet a.is-active b{color:var(--flame)}

  /* chapters open with their first paragraph; the rest is one tap away */
  html.v2 .chmore{display:grid;grid-template-rows:0fr;transition:grid-template-rows .7s var(--ease)}
  html.v2 .chmore__in{min-height:0;overflow:hidden;visibility:hidden;transition:visibility 0s .7s}
  html.v2 .chmore.is-open{grid-template-rows:1fr}
  html.v2 .chmore.is-open .chmore__in{visibility:visible;transition:none}
  html.v2 .chmore__in > :first-child{margin-top:1em}
  html.v2 .chmore__btn{display:inline-flex;align-items:center;gap:12px;align-self:flex-start;margin-top:20px;padding:13px 20px;border-radius:999px;box-shadow:inset 0 0 0 1px var(--line-2);font-size:14.5px;font-weight:600;color:var(--text)}
  html.v2 .chmore__btn small{font-size:12.5px;font-weight:500;color:var(--text-3)}
  html.v2 .chmore__btn::after{content:"";width:7px;height:7px;border-right:1.5px solid var(--ember);border-bottom:1.5px solid var(--ember);transform:rotate(45deg) translate(-2px,-2px)}
  html.v2 .chmore.is-open + .chmore__btn{display:none}
  html.v2 .chapter:not(.is-expanded) .chapter__text--lead{-webkit-mask-image:linear-gradient(#000 62%,rgba(0,0,0,.35));mask-image:linear-gradient(#000 62%,rgba(0,0,0,.35))}
}
@media (max-width:759px){
  html.v2 .ctabar{position:fixed;right:14px;bottom:calc(14px + env(safe-area-inset-bottom));z-index:580;display:block;transform:translateY(160%);opacity:0;transition:transform .6s var(--ease),opacity .4s}
  html.v2 .ctabar.is-on{transform:none;opacity:1}
  html.v2 .ctabar .btn{padding:15px 20px;font-size:14px;gap:10px;box-shadow:0 14px 34px -10px rgba(0,0,0,.85),0 10px 30px -12px rgba(236,106,44,.6)}
  html.v2.menu-open .ctabar{transform:translateY(160%);opacity:0}
  html.v2 .stool__label{font-size:36px}
  html.v2 .stool__label tspan{font-size:27px}
  html.v2 .stool__joy{font-size:24px}
  html.v2 .stool__hint{bottom:-46px}
  html.v2 .stoolwrap{margin-bottom:84px}
}

@media (prefers-reduced-motion:reduce){
  html.v2 .reelbadge__ring,html.v2 .stool__top,html.v2 .story__fig.is-active img{animation:none}
}

/* ---------- 7. QUOTE BAND: a fire under "Passion is common. Perseverance is rare." ---------- */
.band__fire{display:none}
html.v2 .band__fire{display:block;position:absolute;inset:-8% 0;z-index:-1;background:center 62%/cover no-repeat;opacity:.62;-webkit-mask-image:linear-gradient(to top,#000 4%,rgba(0,0,0,.5) 40%,transparent 74%);mask-image:linear-gradient(to top,#000 4%,rgba(0,0,0,.5) 40%,transparent 74%)}
/* js/v2.js adds .is-on when the band is getting close, so the photo is not fetched on page load */
html.v2 .band__fire.is-on{background-image:url(../img/cef-flames-1800.webp)}
html.v2 .band__fire + .wrap{position:relative}
/* keeps the words readable over the flames */
html.v2 .band::after{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(60% 55% at 50% 46%,rgba(11,9,8,.72),rgba(11,9,8,.2) 70%,transparent),linear-gradient(to bottom,var(--bg) 0%,rgba(11,9,8,0) 30%)}

/* ---------- 8. THE SHORT VERSION: the wood, the box, the truck ---------- */
.manifesto .wrap.trio{display:grid;grid-template-columns:1fr 1fr 1.62fr;gap:14px;margin-top:clamp(48px,5.6vw,84px)}
.trio__item{position:relative;overflow:hidden;border-radius:2px;background:var(--bg-3);height:clamp(230px,25vw,372px)}
.trio__item img{width:100%;height:100%;object-fit:cover}
.trio__item::after{content:"";position:absolute;z-index:2;left:0;right:0;bottom:0;height:3px;background:var(--fire);transform:scaleX(0);transform-origin:left;transition:transform 1.2s var(--ease)}
/* each photo waits, dim, until the words that describe it are lit; then it catches */
html.v2 .trio__item img{transform:scale(1.1);filter:saturate(.1) brightness(.3) contrast(1.05);transition:filter 1.2s var(--ease),transform 1.9s var(--ease)}
html.v2 .trio__item.is-lit img{transform:none;filter:saturate(.94) contrast(1.04) brightness(.96)}
/* the daylight shot gets the same warm grade as the story photos, so it sits in the page */
html.v2 .trio__item--day.is-lit img{filter:saturate(.8) contrast(1.06) brightness(.9) sepia(.14)}
.trio__item--day::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:radial-gradient(120% 90% at 0% 100%,rgba(236,106,44,.22),transparent 60%),linear-gradient(180deg,rgba(11,9,8,.2),transparent 45%);mix-blend-mode:soft-light}
html.v2 .trio__item.is-lit::after{transform:scaleX(1)}
html.v2 .trio__item:nth-child(2) img,html.v2 .trio__item:nth-child(2)::after{transition-delay:.12s}
html.v2 .trio__item:nth-child(3) img,html.v2 .trio__item:nth-child(3)::after{transition-delay:.24s}
html.v2 .trio__item.is-lit:hover img{transform:scale(1.04);transition-delay:0s}
@media (max-width:759px){
  /* phone: the two square studio shots side by side, the truck full width under them */
  .manifesto .wrap.trio{grid-template-columns:1fr 1fr;gap:10px;margin-top:36px}
  .trio__item{height:auto;aspect-ratio:1/1}
  .trio__item:last-child{grid-column:1/-1;aspect-ratio:3/2}
}
@media (prefers-reduced-motion:reduce){
  html.v2 .trio__item img{transform:none;filter:none}
  html.v2 .trio__item::after{transform:scaleX(1)}
}

/* ---------- 9. CHAPTER 9: the rack itself, then the number ---------- */
/* desktop: the photo is always as tall as the panel, so the whole rack shows whatever shape the window is.
   A narrow panel trims the dark sides; a wide one leaves them black, and the floor fades out before the photo's edge. */
.story__fig[data-fig="rack"]{background:#000}
.story__fig[data-fig="rack"] img{position:absolute;top:0;left:50%;width:auto;max-width:none;height:100%;translate:-50% 0;-webkit-mask-image:linear-gradient(90deg,transparent,#000 13%,#000 87%,transparent);mask-image:linear-gradient(90deg,transparent,#000 13%,#000 87%,transparent)}
/* phone and tablet: the rack is tall, so its photo is too; the stat card follows the paragraph that earns it */
.chapter__fig--tall{aspect-ratio:4/5;max-width:420px}
.chapter__text + .chapter__card{margin-top:24px}

/* ---------- small layout fixes that go with the pieces above ---------- */
html.v2 .story__ledewrap{justify-self:end}
@media (max-width:1099px){html.v2 .story__ledewrap{justify-self:start}}
html.v2 .chmore__in > .chapter__text:first-child{margin-top:1em}
html.v2 .stool.is-whole .stool__top{animation:v2settle .8s var(--ease) both}
@keyframes v2settle{0%{transform:translateY(-7px)}55%{transform:translateY(4px)}100%{transform:none}}
/* the pinned reveal runs on landscape screens only: in a tall, narrow window the photo would be
   cropped to the fireplace and both presidents would be cut out. Same condition as in js/v2.js. */
@media (min-width:760px) and (min-aspect-ratio:4/3){
  html.v2 .oval{height:100vh;height:100svh;max-height:none}
}
