/* House of Jenny · v11.2 navigation (Jenny's Final UX Implementation Brief, 10 Nov 2026 + her 12 Nov direction)
   ONE definition for: the seven side tabs (the open one lists its pages inside itself), the compact reader header and
   the phone / narrow-screen chapter sheet. The superseded v6 / v8.5 / v8.6 / v10 tab rules, the floating page bar
   (#secTabs) and the header section map (#readerMap) were deleted, not overridden.
   Units inside .book are book units (the 1240 × 660 spread, scaled by app.js layout()); everything else is CSS px. */

/* ================= 1 · the tab rail on the fore-edge: seven shapes, always =================
   660-unit page block, 12 units clear at the head and the foot, 10-unit gaps. Each chapter is one tab shape (.chap).
   They share the height equally (flex 1 1 0; ≈ 82 units each with nothing open). The open chapter's tab grows to hold
   its pages (its content sets its minimum height) and the other six condense evenly to make room, all still in view
   and one click away (Social, 6 pages: ≈ 56 units each). The rail scales with the book. */
.tabs{position:absolute;z-index:1;left:1246px;top:12px;height:636px;width:150px;margin:0;padding:0;display:flex;flex-direction:column}
.book[data-state=closed] .tabs{opacity:0;pointer-events:none}
.single .tabs{display:none}

/* the tab shape: the approved v8 tab art, 9-sliced so the gold rim, shoulders and neck keep their exact shape and only
   the flat middle stretches (so a tab can grow to hold its pages). The art's left end stays tucked under the page. */
.chap{--k:.31px;position:relative;isolation:isolate;flex:1 1 0;display:flex;flex-direction:column;width:136px;margin:0;color:var(--plum,#4E2A45);
  filter:drop-shadow(1px 2px 2px rgba(80,44,62,.18));transition:transform .14s var(--ease),filter .14s var(--ease)}
.chap + .chap{margin-top:10px}
.chap::before{content:"";position:absolute;inset:0;z-index:-1;border:0 solid transparent;
  border-image-repeat:stretch;
  border-image-slice:var(--t) 117 var(--b) 30 fill;
  border-image-width:calc(var(--t) * var(--k)) calc(117 * var(--k)) calc(var(--b) * var(--k)) 0;
  border-image-outset:calc(var(--o1) * var(--k)) 0 calc(var(--o2) * var(--k)) 0;
  /* keep the art inside its own slot (some files carry a stray gilt hairline above the tab) */
  clip-path:inset(0 -20px 0 -20px)}
/* per-file geometry in image px: t / b = top / bottom slice (body edge + shoulder + rounded neck corner),
   o1 / o2 = the transparent rows above / below the tab body, pushed outside the box so every body fills its slot */
.chap[data-ch=contents],.chap[data-ch=about]{--t:83;--b:64;--o1:27;--o2:8}
.chap[data-ch=brand]{--t:65;--b:64;--o1:9;--o2:8}
.chap[data-ch=social]{--t:65;--b:62;--o1:9;--o2:6}
.chap[data-ch=campaigns]{--t:90;--b:60;--o1:34;--o2:4}
.chap[data-ch=collabs]{--t:89;--b:64;--o1:33;--o2:8}
.chap[data-ch=strategy]{--t:85;--b:64;--o1:29;--o2:8}
.chap[data-ch=contents]::before,.chap[data-ch=about]::before{border-image-source:url(../assets/scene/reader/tab-about-rest.webp?v=10.2)}
.chap[data-ch=brand]::before{border-image-source:url(../assets/scene/reader/tab-brand-rest.webp?v=10.2)}
.chap[data-ch=social]::before{border-image-source:url(../assets/scene/reader/tab-social-rest.webp?v=10.2)}
.chap[data-ch=campaigns]::before{border-image-source:url(../assets/scene/reader/tab-campaigns-rest.webp?v=10.2)}
.chap[data-ch=collabs]::before{border-image-source:url(../assets/scene/reader/tab-collabs-rest.webp?v=10.2)}
.chap[data-ch=strategy]::before{border-image-source:url(../assets/scene/reader/tab-strategy-rest.webp?v=10.2)}
.chap.is-active[data-ch=contents]::before,.chap.is-active[data-ch=about]::before{border-image-source:url(../assets/scene/reader/tab-about-active.webp?v=10.2)}
.chap.is-active[data-ch=brand]::before{border-image-source:url(../assets/scene/reader/tab-brand-active.webp?v=10.2)}
.chap.is-active[data-ch=social]::before{border-image-source:url(../assets/scene/reader/tab-social-active.webp?v=10.2)}
.chap.is-active[data-ch=campaigns]::before{border-image-source:url(../assets/scene/reader/tab-campaigns-active.webp?v=10.2)}
.chap.is-active[data-ch=collabs]::before{border-image-source:url(../assets/scene/reader/tab-collabs-active.webp?v=10.2)}
.chap.is-active[data-ch=strategy]::before{border-image-source:url(../assets/scene/reader/tab-strategy-active.webp?v=10.2)}
/* Contents: the same About art under the v10.7 champagne wash (the exact multiply, as a colour matrix: #hojChampRest in
   index.html). Live v10.7 drew the rest wash in both states, so the active Contents tab keeps it too. */
.chap[data-ch=contents]::before{filter:url(#hojChampRest)}
.chap[data-ch=contents]{color:var(--gold-ink,#7A5C24)}

/* the chapter link: number above name, centred; it fills a closed tab, and is the head of an open one */
.tab{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;margin:0;padding:0;
  color:inherit;text-decoration:none;border-radius:2px}
.chap.is-open > .tab{flex:0 0 auto;min-height:54px;padding-top:3px}
.tab b{display:block;font:400 21px/1 var(--didone,'Bodoni Moda',Georgia,serif);font-variant-numeric:lining-nums;letter-spacing:.02em;color:inherit}
.tab span{display:block;font:500 10.5px/1 var(--clean,'Jost',sans-serif);letter-spacing:.16em;text-transform:uppercase;color:inherit;white-space:nowrap}

/* states: rest · hover · focus · pressed (turning to it) · active · open (its pages showing) · unavailable.
   A tab only ever moves itself outward; the others keep their order and simply share the height. */
.chap:hover{transform:translateX(6px)}
.chap.is-pending,.chap.is-active{transform:translateX(7px)}
.chap.is-open{filter:drop-shadow(2px 3px 4px rgba(80,44,62,.24))}
.tab:focus-visible{outline:2px solid var(--gold-ink,#8A6A2E);outline-offset:3px}
.tab[aria-disabled=true]{opacity:.5;pointer-events:none}

/* ================= 2 · the open tab's pages, listed inside it =================
   A gold hairline under the chapter name, then the pages as quiet lines of the same italic used across the book; the
   page on screen carries a small gold mark. Folding grows / shrinks the list (app.js foldGroup). */
.tab-pages{flex:none;display:flex;flex-direction:column;padding:0 6px 11px 6px;overflow:hidden}
.tab-pages[hidden]{display:none}
.tab-pages::before{content:"";flex:none;height:1px;margin:0 14px 5px 16px;background:linear-gradient(90deg,rgba(184,145,63,0),rgba(184,145,63,.75) 18%,rgba(184,145,63,.75) 82%,rgba(184,145,63,0))}
.tab-page{position:relative;display:flex;align-items:center;flex:none;min-height:28px;padding:0 6px 0 16px;border-radius:3px;
  color:inherit;text-decoration:none;transition:background-color .12s var(--ease)}
.tab-page span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:italic 500 14.5px/1.1 var(--caps-serif,var(--serif));letter-spacing:0;color:var(--cocoa,#3B2E22)}
.tab-page[aria-current=page] span{color:var(--gold-ink,#7A5C24)}
.tab-page:hover{background:rgba(255,253,247,.5)}
.tab-page:focus-visible{outline:2px solid var(--gold-ink,#8A6A2E);outline-offset:-2px}
.tab-page[aria-current=page]{color:var(--gold-ink,#7A5C24)}
.tab-page[aria-current=page] span{font-weight:700}
.tab-page[aria-current=page]::before{content:"";position:absolute;left:5px;top:8px;bottom:8px;width:2.5px;border-radius:2px;background:linear-gradient(180deg,#E9CF8E,#B8913F)}
@media (prefers-reduced-motion:reduce){.chap,.tab-page{transition:none}}

/* ================= 3 · reader header: crest + wordmark left · Résumé · Contact · LinkedIn right =================
   The chapter links and the section map are gone from the open reader (the tabs carry them). The landing (house)
   header keeps its centred crest and chapter links. In the hall the lockup stays large and centred (hoj-v10-scene.css);
   with the camera push-in it glides here (app.js flipLockup). */
@media (min-width:1181px){
  #util.util{display:flex;align-items:center;justify-content:space-between}
  #util{--mono-h:34px;--name-fs:14px}
  #util .util-home{position:relative;flex-direction:row;gap:11px;padding:0!important}
}
#util .util-links{margin-left:auto}
html.hj-lock-flip #util .util-home,html.hj-lock-flip #util .util-mono,html.hj-lock-flip #util .util-name{transition:none!important}
/* narrow single-page widths (tablets, small laptops): there is room for all three utilities; phones keep Résumé */
@media (min-width:701px){body.single .util .util-links a{display:inline-flex;align-items:center;min-height:44px}}

/* ================= 4 · phones and narrow screens: the chapter sheet =================
   The pager's Contents button opens the same dialog as a bottom sheet: chapters as a clean list, tap one to show its
   pages, tap a page to go. Strategy (one page) goes straight there. The hiring lenses stay in content.js (not drawn). */
body.single #menu.menu{margin:auto auto 0;width:min(560px,100vw)!important;max-width:100vw!important;height:auto!important;max-height:min(86dvh,760px)!important;
  border-width:8px 8px 0!important;border-radius:18px 18px 0 0!important;overflow:auto;overscroll-behavior:contain}
body.single #menu .menu-in{margin:6px 6px 0;padding:18px 18px max(18px,env(safe-area-inset-bottom))!important;border-radius:10px 10px 0 0}
body.single #menu .menu-head{justify-content:flex-start!important}
body.single #menu .menu-title{text-align:left;font-size:26px!important;padding-right:96px}
body.single #menu .menu-title::after{margin-left:0;width:132px}
body.single #menu .menu-intro,body.single #menu .lens-list{display:none!important}
body.single #menu .page-list{columns:1!important;column-rule:0;margin-top:12px}
body.single #menu .page-list::before{content:none}
body.single #menu .pl-ch{margin:0!important;border-top:1px solid rgba(201,165,90,.3)}
body.single #menu .pl-ch:first-child{border-top:0}
body.single #menu .pl-h{margin:0!important}
body.single #menu .pl-h::after{content:none}
#menu .pl-tog,#menu .pl-go{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:12px;width:100%;min-height:52px;padding:0 6px;cursor:pointer;
  font:inherit;letter-spacing:inherit;text-transform:inherit;color:var(--plum,#4E2A45);border-radius:8px}
#menu .pl-name{flex:1;min-width:0}
#menu .pl-count{flex:none;font:500 12px/1 var(--clean,var(--sans));letter-spacing:.08em;color:var(--gold-ink,#8A6A2E)}
#menu .pl-tog .pl-count::after{content:"";display:inline-block;width:6px;height:6px;margin-left:10px;vertical-align:2px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);transition:transform .18s var(--ease)}
#menu .pl-tog[aria-expanded=true] .pl-count::after{transform:translateY(2px) rotate(-135deg)}
#menu .pl-tog:hover,#menu .pl-go:hover{background:var(--wash)}
#menu .pl-tog:focus-visible,#menu .pl-go:focus-visible{outline:2px solid var(--gold-ink,#8A6A2E);outline-offset:-2px}
#menu .pl-go[aria-current]{background:linear-gradient(90deg,rgba(241,227,196,.85),rgba(241,227,196,.25));box-shadow:inset 3px 0 0 #C9A55A}
#menu .pl-ch ul[hidden]{display:none}
body.single #menu .pl-ch ul{padding:0 0 10px 52px!important}
body.single #menu .pl-ch li + li a{box-shadow:none}
@media (prefers-reduced-motion:reduce){#menu .pl-tog .pl-count::after{transition:none}}

/* ================= 5 · partner logos in their own colours (v11.3) =================
   Jenny, 12 Nov 2026: "make all the logos proper color". Each mark is the brand's own file;
   the old cocoa recolour and its .9 opacity wash are gone, so every logo shows at full colour. */
html body .page img.lg,html body .page .lg-h img.lg-xl,html body .page .pg-logo img.lg-display,
html body .page .timeline img.lg-tl,html body .page .pg-mark img.lg-mark{opacity:1!important}

/* ================= 6 · the bow-arrow cursor (v11.4) =================
   Jenny, 12 Nov 2026: "change the cursor to like a fancy bowed arrow" + her House of Jenny cursor style guide:
   a pearl arrow with a gold edge and a pink satin bow; gentle bow sway as you move, a subtle gold glint on hover,
   a soft ripple on click. Mouse and trackpad only; touch screens never show a cursor.
   Layer 1 (always): the still arrow as a plain CSS cursor image (the hover one has two gold glints). If an image
   fails, the browser's own cursor shows. Hotspot = the arrow tip (3, 2).
   Layer 2 (js/hoj-cursor.js): the same arrow drawn as a small moving picture so the bow can sway; it replaces the
   still image only after it has moved (body.hoj-cur-live), never under reduced motion or Pause motion. */
@media (hover:hover) and (pointer:fine){
  html,body{cursor:url(../assets/ui/cursor-bow.png?v=11.4) 3 2,auto;cursor:-webkit-image-set(url(../assets/ui/cursor-bow.png?v=11.4) 1x,url(../assets/ui/cursor-bow@2x.png?v=11.4) 2x) 3 2,auto;cursor:image-set(url(../assets/ui/cursor-bow.png?v=11.4) 1x,url(../assets/ui/cursor-bow@2x.png?v=11.4) 2x) 3 2,auto}
  a[href],button:not(:disabled),[role=button]:not([aria-disabled=true]),summary,label,select,[data-route],[data-lb],[data-vid],
  .corner,.fig,.cover-front,.hj-closed,.house-wrap,.invite:not([disabled]),#menu .pl-tog,#menu .pl-go{cursor:url(../assets/ui/cursor-bow-hover.png?v=11.4) 3 2,pointer!important;cursor:-webkit-image-set(url(../assets/ui/cursor-bow-hover.png?v=11.4) 1x,url(../assets/ui/cursor-bow-hover@2x.png?v=11.4) 2x) 3 2,pointer!important;cursor:image-set(url(../assets/ui/cursor-bow-hover.png?v=11.4) 1x,url(../assets/ui/cursor-bow-hover@2x.png?v=11.4) 2x) 3 2,pointer!important}
  button:disabled,.invite[disabled],.pg-btn[disabled],[aria-disabled=true]{cursor:url(../assets/ui/cursor-bow.png?v=11.4) 3 2,default!important;cursor:-webkit-image-set(url(../assets/ui/cursor-bow.png?v=11.4) 1x,url(../assets/ui/cursor-bow@2x.png?v=11.4) 2x) 3 2,default!important;cursor:image-set(url(../assets/ui/cursor-bow.png?v=11.4) 1x,url(../assets/ui/cursor-bow@2x.png?v=11.4) 2x) 3 2,default!important}
  input:not([type=button]):not([type=submit]):not([type=checkbox]):not([type=radio]),textarea,[contenteditable=true]{cursor:text!important}
  /* :not(#hojX) lifts these above every rule above (the id never exists) */
  body.hoj-cur-live,body.hoj-cur-live *:not(#hojX){cursor:none!important}
  body.hoj-cur-live input:not([type=button]):not([type=submit]):not([type=checkbox]):not([type=radio]):not(#hojX),body.hoj-cur-live textarea:not(#hojX){cursor:text!important}
}
#hojCursor{position:fixed;left:0;top:0;z-index:2147483000;pointer-events:none;width:36px;height:36px;opacity:0;transition:opacity .2s ease;will-change:transform}
#hojCursor svg{display:block;overflow:visible;transform-origin:3px 2px;transition:transform .16s cubic-bezier(.2,.8,.2,1)}
body.hoj-cur-live #hojCursor{opacity:1}
#hojCursor .hj-glint path{transform-box:fill-box;transform-origin:center;opacity:0;transform:scale(.3) rotate(-30deg);transition:opacity .2s,transform .35s cubic-bezier(.2,.8,.2,1)}
#hojCursor.hj-hover .hj-glint path{opacity:1;transform:none;animation:hojGlint 1.8s ease-in-out .35s infinite}
#hojCursor.hj-hover .hj-glint path + path{animation-delay:.75s}
@keyframes hojGlint{0%,100%{transform:scale(1) rotate(0)}50%{transform:scale(.72) rotate(18deg);opacity:.75}}
#hojCursor.hj-press svg{transform:scale(.9)}
.hoj-ripple{position:fixed;z-index:2147482999;pointer-events:none;width:0;height:0}
.hoj-ripple i{position:absolute;left:-22px;top:-22px;width:44px;height:44px;border-radius:50%;border:1.5px solid rgba(201,160,82,.75);
  box-shadow:0 0 0 1px rgba(255,255,255,.35),inset 0 0 0 1px rgba(237,178,193,.35);transform:scale(.25);opacity:.9;animation:hojRipple .62s cubic-bezier(.2,.7,.2,1) forwards}
.hoj-ripple i + i{border-color:rgba(237,178,193,.8);animation-delay:.1s}
@keyframes hojRipple{to{transform:scale(1.25);opacity:0}}
html.motion-off #hojCursor,html.motion-off .hoj-ripple{display:none}
@media (hover:none),(pointer:coarse),(prefers-reduced-motion:reduce){#hojCursor,.hoj-ripple{display:none!important}}
