/* ============================================================
   B13 · Orbit — the single-project page.
   ------------------------------------------------------------
   BUILT FROM SOURCE by tools/build-orbit-css.js. Do not edit by
   hand: the next build overwrites it. Change the build script,
   which asserts 47 guarantees before it writes anything.

   Source: orbit.html lines 106-127, 139-158, 160-189, 191-226,
   228-237, 239-279, 336-343.

   DEVIATIONS from the static source:

   1 · every hero selector is scoped to .hero.-project.
        hero.css already owns .hero, .hero__media, .hero__scrim, .hero__inner,
        .titlecard, .eyebrow, .hero__foot and .scroll-cue, and the Elementor
        editor canvas loads EVERY registered widget stylesheet — measured, it is
        how hero.css's .titlecard colour reached the studio page. Unscoped, orbit
        would silently restyle the homepage hero inside the editor. No other block
        needs this: .desc, .chapter*, .carousel*, .cdot, .actionbar* and .modal*
        appear in no other stylesheet, and studio.css scopes its pane rules to
        .portrait .pane__*, which cannot match a pane inside a .stage.

   4 · .modal__close gains z-index:2.
        Below 680px .modal__panel becomes flex-direction:column, so the 40%
        media moves to the TOP at full width and lands underneath the close
        button at top-right. Both are positioned with z-index:auto, and the
        button comes FIRST in the markup, so the image paints over it.
        Measured with elementFromPoint at the button centre: IMG at 680, 679,
        620 and 400; the button itself at 880 and 1440. On a phone the X did
        nothing — Escape and the backdrop still closed the dialog, but the X is
        the visible affordance and the only one a pointer user would look for.
        A fault in the static site as well: same CSS, same markup order.
        No visual change at any width; it only restores the stacking order the
        markup already implies.

   2 · the GSAP-gated initial state is scoped the same way, and the shared
        kernel is dropped.
        core.css already carries .gsap-ready [data-reveal]{opacity:0} and the
        reduced-motion block for every page. Repeating them here would be
        harmless but misleading; core.css:322 already records that orbit's
        .hero__title>span belongs to this component.

   5 · the hero title is FITTED to its box, by assets/js/hero-fit.js.
        The static page had one title, sized by eye at clamp(3.2rem,15vw,12rem).
        A client title can be any length, in either language. Measured on
        2026-11-15 with a 41-character title: up to 262px of horizontal
        overflow, 5 lines, the first line up to 480px under the header, and
        the pill over the standfirst at 1280x800, 1024, 390 and 1280x650.
        That clamp is now --hero-fs-max, the START of the search the script
        runs; --hero-fs carries the result, and a CSS-only fallback if the
        script never runs. .hero__inner is a flex column padded clear of the
        header and of the pill, so the text can sit under neither. The hero is
        min-height, not height: a title that cannot fit grows the hero rather
        than being clipped. The h1 mask gains .1em / .16em of ink room, cancelled
        by equal negative margins, because at line-height .88 it cut the glyph
        overshoot (2.5px at 192px, by canvas text metrics). The entrance start
        moves down .2em so the taller mask still hides the line. Letter-spacing
        is untouched: it is .02em of the h1, inherited by the span as 0.64px.
        The title to standfirst gap is clamp(40px,6vh,64px), was 30px
        (requested 2026-11-15). The fit measures it, so it costs title size,
        never overflow. A title over one line may use at most 40% of header
        bottom to pill top; that budget lives in hero-fit.js.
        From 1024 up the title may use at most 70% of the content width
        (max-width on the h1, which the fit already measures); below 1024 it
        keeps the full width. The eyebrow is solid white with a soft dark
        shadow (was 86% off-white, none), so it reads on a bright photo.
        transition:none on it: core.css gives .eyebrow an opacity transition
        (mode-fade union), which made the GSAP entrance capture a half-faded
        end value. Measured: it settled at 0.65-0.81 opacity, varying per load.

   6 · the gallery eyebrow is styled, scoped to .carousel__head.
        orbit.html styles .eyebrow globally (lines 135-137); only the hero
        copy was lifted, so the gallery eyebrow rendered as 16px body text
        with no tracking, no uppercase and a zero-size tick. Measured
        2026-11-15 against the hero eyebrow: 16px vs 11px, normal vs 4.4px.
        Scoped rather than global for the same reason as deviation 1: the
        editor canvas loads every widget stylesheet at once.
   ============================================================ */

/* ---- B13a · HERO (scoped — see deviation 1) ---- */
/* ---- HERO (full-bleed image; cursor-float title — mirrors Home hero) ---- */
.hero.-project{position:relative;min-height:max(640px,100svh);display:flex;align-items:stretch;overflow:hidden}
.hero.-project .hero__media{position:absolute;inset:0;z-index:0;overflow:hidden;background:#0a0a0c}
.hero.-project .hero__media img{width:100%;height:100%;object-fit:cover;object-position:center;transform:scale(1.06);will-change:transform}
.hero.-project .hero__scrim{position:absolute;inset:0;z-index:1;background:var(--scrim)}
.hero.-project .hero__inner{position:relative;z-index:3;width:100%;box-sizing:border-box;
  display:flex;flex-direction:column;justify-content:flex-end;justify-content:safe flex-end;
  --hero-pad-base:clamp(48px,9vh,96px);
  padding:var(--hero-pad-top,calc(var(--nav-h,70px) + var(--lca-admin-bar,0px) + 24px)) clamp(20px,4vw,56px) var(--hero-pad-bottom,var(--hero-pad-base));
  perspective:1000px;perspective-origin:50% 50%}
body:has(.actionbar) .hero.-project .hero__inner{padding-bottom:var(--hero-pad-bottom,max(var(--hero-pad-base),calc(clamp(18px,3vh,30px) + 76px)))}
.hero.-project .titlecard{transform-style:preserve-3d;will-change:transform;color:#f6f5f2}
.hero.-project .eyebrow{font-size:11px;letter-spacing:var(--track-wide);text-transform:uppercase;color:#fff;
  text-shadow:0 1px 2px rgba(0,0,0,.6),0 0 16px rgba(0,0,0,.45);transition:none;margin-bottom:24px;display:flex;align-items:center;gap:16px}
.hero.-project .eyebrow .tick{width:40px;height:1px;background:currentColor;opacity:.9;box-shadow:0 0 6px rgba(0,0,0,.5)}
.hero.-project .hero__title{font-family:var(--font-disp);font-stretch:100%;font-weight:600;letter-spacing:.02em;line-height:.88;
  overflow:hidden;overflow-wrap:normal;word-break:normal;hyphens:manual;
  --hero-fs-max:clamp(3.2rem,15vw,12rem);--hero-fs-min:32px;
  --hero-fs:min(var(--hero-fs-max),max(var(--hero-fs-min),min(8vw,11svh)));
  padding-block:calc(var(--hero-fs) * .1) calc(var(--hero-fs) * .16);
  margin-block:calc(var(--hero-fs) * -.1) calc(var(--hero-fs) * -.16)}
@media(max-width:599px){.hero.-project .hero__title{--hero-fs-min:26px}}
@media(min-width:1024px){.hero.-project .hero__title{max-width:70%}}
.hero.-project .hero__title>span{display:block;font-size:var(--hero-fs);color:#f8f7f4;will-change:transform}
.hero.-project .hero__foot{margin-top:clamp(40px,6vh,64px);display:flex;gap:40px;flex-wrap:wrap;align-items:flex-end;justify-content:space-between}
.hero.-project .hero__sub{max-width:48ch;font-size:clamp(.95rem,1.45vw,1.12rem);color:rgba(246,245,242,.92);line-height:1.6;font-weight:300}
.hero.-project .scroll-cue{font-size:10px;letter-spacing:var(--track-wide);text-transform:uppercase;color:rgba(246,245,242,.78);
  display:flex;align-items:center;gap:13px}
.hero.-project .scroll-cue .bar{position:relative;width:1px;height:52px;background:rgba(246,245,242,.32);overflow:hidden}
.hero.-project .scroll-cue .bar::after{content:"";position:absolute;left:0;right:0;top:0;height:50%;background:#f6f5f2;
  animation:cue 2.25s var(--ease-zha) infinite}
@keyframes cue{0%{transform:translateY(-110%)}55%{transform:translateY(110%)}100%{transform:translateY(110%)}}

/* ---- B13b · DESCRIPTION ---- */
/* ---- DESCRIPTION (editorial: lead statement + chapters) ---- */
.desc{width:min(92vw,1180px);margin:0 auto;padding:clamp(84px,15vh,180px) clamp(20px,4vw,56px) clamp(40px,7vh,80px)}
/* PROSE OPT-OUT — a ~40-word lead paragraph, not a title. It carries .disp for the display face,
   so without this it inherits that rule's uppercase, which is a readability regression at this
   length. Same specificity as .disp and later in the file, so it wins. Mirrors .statement on
   index.html; those two are the only prose-length display elements on the site. */
.desc__lead{max-width:30ch;font-family:var(--font-disp);font-stretch:100%;font-weight:500;
  font-size:clamp(1.55rem,3.8vw,2.9rem);line-height:1.18;letter-spacing:.004em;
  text-transform:none}
.chapters{margin-top:clamp(48px,9vh,96px)}
.chapter{display:grid;grid-template-columns:0.85fr 1.45fr;gap:clamp(28px,6vw,90px);align-items:start;
  padding-block:clamp(40px,7vh,78px);border-top:1px solid var(--line-soft)}
.chapter__side{display:flex;flex-direction:column;gap:14px}
.chapter__num{font-size:11px;letter-spacing:var(--track-wide);text-transform:uppercase;color:var(--muted);
  font-variant-numeric:tabular-nums}
.chapter__h{font-family:var(--font-disp);font-stretch:100%;font-weight:600;font-size:clamp(1.4rem,2.9vw,2.25rem);
  line-height:1.06;letter-spacing:.008em;text-transform:uppercase}
.chapter__p{font-weight:300;font-size:clamp(1rem,1.4vw,1.16rem);line-height:1.78;color:var(--fg-soft)}
.chapter__p+.chapter__p{margin-top:1.15em}
@media(max-width:760px){.chapter{grid-template-columns:1fr;gap:18px;padding-block:44px}}

/* ---- B13c · CAROUSEL ---- */
/* ---- CAROUSEL (centered peek; active ~80vw centered, neighbours peek + dim; no borders) ---- */
.carousel{width:100%;margin:0 auto;padding:clamp(40px,7vh,90px) 0 clamp(20px,4vh,40px);overflow:hidden}
.carousel__head{width:var(--shell);margin:0 auto clamp(20px,3vh,32px);padding:0 clamp(20px,4vw,56px);
  display:flex;align-items:flex-end;justify-content:space-between;gap:24px}
.carousel__viewport{position:relative;width:100%;overflow:hidden}
.carousel__track{display:flex;gap:clamp(5px,0.8vw,14px);transition:transform .7s var(--ease-zha);will-change:transform}
.carousel__slide{flex:0 0 80%;margin:0;aspect-ratio:16/9;border-radius:3px;overflow:hidden;background:var(--bg-2);
  opacity:.36;will-change:opacity;transition:opacity .6s var(--ease-zha)}
.carousel__slide.is-active{opacity:1}
.carousel__slide img{width:100%;height:100%;object-fit:cover}
.car-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:3;
  width:clamp(48px,5vw,64px);height:clamp(48px,5vw,64px);border-radius:50%;
  border:1px solid rgba(255,255,255,.45);color:#f6f5f2;background:rgba(18,18,22,.30);
  -webkit-backdrop-filter:blur(10px) saturate(1.3);backdrop-filter:blur(10px) saturate(1.3);
  display:grid;place-items:center;cursor:pointer;
  transition:background-color .35s var(--ease-soft),width .4s var(--ease-zha),height .4s var(--ease-zha)}
.car-arrow:hover{background:rgba(18,18,22,.55);width:clamp(56px,6vw,76px);height:clamp(56px,6vw,76px)}
.car-arrow.-prev{left:clamp(12px,8%,150px)}
.car-arrow.-next{right:clamp(12px,8%,150px)}
.car-arrow svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5}
.car-arrow:focus{outline:none}
.car-arrow:focus-visible{outline:none;border-color:rgba(255,255,255,.95);box-shadow:0 0 0 3px rgba(255,255,255,.28)}
.carousel__nav{width:var(--shell);margin:clamp(18px,2.5vh,26px) auto 0;padding:0 clamp(20px,4vw,56px);display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.carousel__dots{display:flex;gap:clamp(12px,1.4vw,18px)}
.cdot{font-family:var(--font-body);font-size:12px;letter-spacing:.16em;color:var(--muted);background:none;border:0;
  cursor:pointer;padding:5px 0;position:relative;line-height:1;font-variant-numeric:tabular-nums;
  transition:color .3s var(--ease-soft)}
.cdot:hover{color:var(--fg-soft)}
.cdot.is-active{color:var(--fg)}
.cdot.is-active::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;background:currentColor}
.carousel__head .eyebrow{font-size:11px;letter-spacing:var(--track-wide);text-transform:uppercase;color:var(--muted);
  display:flex;align-items:center;gap:16px}
.carousel__head .eyebrow .tick{width:40px;height:1px;background:currentColor;opacity:.7}

/* ---- B13e · FLOATING 3D PANES ---- */
/* ---- FLOATING 3D PANES (image OR video) — verbatim system from Home ---- */
.stage{position:relative;min-height:108svh;display:flex;align-items:center;justify-content:center;overflow:hidden;
  padding:clamp(60px,10vh,140px) clamp(20px,5vw,80px)}
.stage__bg{position:absolute;inset:-8% -4%;z-index:0;overflow:hidden}
.stage__bg img{width:100%;height:100%;object-fit:cover;transform:scale(1.22);filter:blur(24px) saturate(1.06);
  opacity:.32;will-change:transform}
.stage::after{content:"";position:absolute;inset:0;z-index:1;background:var(--bg);opacity:.55;
  transition:background-color var(--mode-fade)}
html[data-mode="day"] .stage::after{opacity:.4}
.scene{position:relative;z-index:2;width:min(100%,1180px);perspective:1300px;perspective-origin:50% 45%}
#more{padding-top:clamp(40px,7vh,90px)}
.stage.-bare{background:var(--bg);transition:background-color var(--mode-fade)}
.stage.-bare .stage__bg{display:none}
.stage.-bare::after{display:none}
.stage.-bare .pane__frame{background:transparent;border:0;box-shadow:none}
.pane{position:relative;will-change:transform,opacity}
.pane.-l{margin-right:auto;width:min(86%,1000px)}
.pane.-r{margin-left:auto;width:min(80%,920px)}
.pane.-c{margin:0 auto;width:min(94%,1180px)}
.pane__media{position:relative;aspect-ratio:16/10}
.pane.-c .pane__media{aspect-ratio:16/8.6}
.pane.-r .pane__media{aspect-ratio:16/10}
.pane__lift{position:absolute;inset:0;z-index:2;transform-style:preserve-3d;border-radius:3px;will-change:transform}
.pane__frame{position:absolute;inset:0;border-radius:3px;overflow:hidden;border:1px solid var(--pane-edge);
  box-shadow:0 2px 0 rgba(255,255,255,.05) inset,0 1px 1px rgba(0,0,0,.12);background:var(--bg-2)}
.pane__frame img,.pane__frame video{width:100%;height:100%;object-fit:cover}  /* FULL COLOUR */
.pane__glow{position:absolute;left:3%;right:3%;top:22%;bottom:-20%;z-index:0;
  background:radial-gradient(56% 62% at 50% 56%,var(--cast),transparent 73%);
  filter:blur(46px);opacity:var(--cast-op,.85);will-change:transform,opacity;
  transition:opacity var(--mode-fade)}
.pane__meta{margin-top:26px;display:flex;align-items:baseline;gap:18px;color:var(--fg);flex-wrap:wrap}
.pane__idx{font-size:11px;letter-spacing:.22em;color:var(--muted);font-weight:500}
.pane__title{font-family:var(--font-disp);font-stretch:100%;font-weight:600;font-size:clamp(1.3rem,2.7vw,2rem);letter-spacing:.01em}
.pane__disc{font-size:11px;letter-spacing:var(--track-wide);text-transform:uppercase;color:var(--muted);margin-left:auto;white-space:nowrap}
@media(max-width:760px){.stage{min-height:auto;padding:60px 20px}.pane.-l,.pane.-r,.pane.-c{width:100%;margin:0}
  .pane__meta{gap:10px}.pane__disc{margin:0}}

/* ---- B13d · STICKY ACTION BAR ---- */
/* ---- STICKY ACTION BAR (blurred, pinned bottom) ---- */
.actionbar{position:fixed;left:50%;bottom:clamp(18px,3vh,30px);transform:translateX(-50%);z-index:90;
  display:flex;gap:6px;padding:7px;border-radius:999px;border:1px solid var(--line);
  background:var(--nav-bg);-webkit-backdrop-filter:blur(18px) saturate(1.4);backdrop-filter:blur(18px) saturate(1.4);
  box-shadow:0 10px 34px rgba(0,0,0,.20)}
.actionbar__btn{font-family:var(--font-body);font-size:11px;letter-spacing:var(--track-mid);text-transform:uppercase;
  color:var(--fg);background:transparent;border:0;border-radius:999px;padding:12px 24px;cursor:pointer;line-height:1;
  transition:background-color .3s var(--ease-soft),color var(--mode-fade)}
.actionbar__btn:hover{background:var(--bg-2)}
.actionbar__btn.is-active{background:var(--fg);color:var(--bg)}

/* ---- B13d · MODAL ---- */
/* ---- MODAL / POPUP (fade + rise; internal scroll; day/night-aware) ---- */
.modal{position:fixed;inset:0;z-index:80;display:flex;align-items:center;justify-content:center;
  padding:clamp(18px,4vw,40px);opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .4s var(--ease-soft),visibility 0s linear .4s}
.modal.is-open{opacity:1;visibility:visible;pointer-events:auto;transition:opacity .4s var(--ease-soft)}
.modal__backdrop{position:absolute;inset:0;background:rgba(8,8,10,.5);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
html[data-mode="night"] .modal__backdrop{background:rgba(2,2,4,.66)}
.modal__panel{position:relative;width:min(95vw,1280px);height:clamp(480px,72vh,680px);display:flex;flex-direction:row;overflow:hidden;
  background:var(--bg);color:var(--fg);border:1px solid var(--line);border-radius:7px;
  box-shadow:0 30px 90px rgba(0,0,0,.38);
  transform:translateY(46px);opacity:0;
  transition:transform .55s var(--ease-zha),opacity .45s var(--ease-soft),background-color var(--mode-fade),color var(--mode-fade),border-color var(--mode-fade)}
.modal.is-open .modal__panel{transform:translateY(0);opacity:1}
.modal__media{flex:0 0 40%;position:relative;overflow:hidden;background:var(--bg-2)}
.modal__media img{width:100%;height:100%;object-fit:cover;display:block}
.modal__content{flex:1 1 60%;min-width:0;overflow-y:auto;scrollbar-gutter:stable;-webkit-overflow-scrolling:touch;padding:clamp(30px,4vw,52px);scrollbar-width:thin;scrollbar-color:var(--sb-thumb) transparent}
.modal__close{z-index:2;position:absolute;top:clamp(14px,2vw,20px);right:clamp(14px,2vw,20px);
  width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:transparent;color:var(--fg);
  display:grid;place-items:center;cursor:pointer;opacity:.8;
  transition:opacity .25s var(--ease-soft),transform .5s var(--ease-zha),border-color var(--mode-fade)}
.modal__close:hover{opacity:1;transform:rotate(90deg)}
.modal__close svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5}
.modal__eyebrow{font-size:11px;letter-spacing:var(--track-wide);text-transform:uppercase;color:var(--muted);margin-bottom:14px}
.modal__title{font-family:var(--font-disp);font-stretch:100%;font-weight:600;font-size:clamp(1.6rem,4vw,2.4rem);
  line-height:1.02;letter-spacing:.01em;margin-bottom:clamp(20px,3vh,30px)}
.modal__body{display:block}
.modal__content::-webkit-scrollbar{width:10px}
.modal__content::-webkit-scrollbar-track{background:transparent}
.modal__content::-webkit-scrollbar-thumb{background:var(--sb-thumb);border-radius:999px;border:2px solid transparent;background-clip:padding-box}
.modal__content::-webkit-scrollbar-thumb:hover{background:var(--sb-thumb-hover)}
.modal__row{display:flex;justify-content:space-between;align-items:baseline;gap:24px;
  padding:15px 0;border-top:1px solid var(--line-soft)}
.modal__row:first-of-type{border-top:0}
.modal__k{flex:0 0 auto;font-size:11px;letter-spacing:var(--track-mid);text-transform:uppercase;color:var(--muted);
  padding-top:2px}
.modal__v{text-align:right;font-size:clamp(.95rem,1.4vw,1.08rem);font-weight:300;color:var(--fg);line-height:1.5}
.modal__note{margin-top:clamp(22px,3.5vh,32px);padding-top:18px;border-top:1px solid var(--line-soft);
  font-size:10px;letter-spacing:var(--track-mid);text-transform:uppercase;color:var(--muted);line-height:1.7}
@media(max-width:680px){.modal__panel{flex-direction:column}.modal__media{flex:0 0 36%;width:100%}.modal__content{flex:1 1 auto;padding:clamp(22px,6vw,34px)}}
@media(max-width:520px){.modal__row{flex-direction:column;gap:4px}.modal__v{text-align:left}}

/* ---- GSAP-gated initial state (see deviation 2) ---- */
.gsap-ready .hero.-project .hero__title>span{transform:translateY(calc(115% + .2em))}
@media(prefers-reduced-motion:reduce){
  .gsap-ready .hero.-project .hero__title>span{opacity:1!important;transform:none!important}
}
