/* House of Jenny v10 · interior scene (Checkpoint A)
   Source: House_of_Jenny_MASTER_SCENE_LIBRARY_v5 (02_ENTER_INTERIOR, 04_SHARED_BRAND, 05_MOTION_LAYERS).
   Every visual element is its own layer: room plate, warm light, vases, pedestal, closed book (the real 3D
   cover in #book), brand lockup, foreground blossoms, petals. Nothing is baked into one picture.
   Positions come from app.js layout(): --rest-y (where the book stands), --book-w (drawn book width). */

/* 1 · room plate: the empty ivory/blush hall replaces the golden archway photo */
.interior{background:#F4E6DF}
.interior-plate{background-image:url(../assets/scene/hall-ivory.webp?v=10.0);background-position:50% 50%;filter:none}
@media (max-width:700px){.interior-plate{background-image:url(../assets/scene/hall-ivory-960.webp?v=10.0);background-position:50% 50%}}

/* 2 · warm sunlight: a soft glow behind the book and two slow beams from the arched windows */
.interior-light{background:
  radial-gradient(34% 46% at 50% 44%,rgba(255,246,232,.55),rgba(255,246,232,0) 72%),
  linear-gradient(180deg,rgba(255,250,244,.10),rgba(250,236,226,.16))}
.hj-beams{position:absolute;inset:0;pointer-events:none;mix-blend-mode:screen;opacity:.55;
  background:
    linear-gradient(112deg,rgba(255,236,206,0) 18%,rgba(255,236,206,.42) 24%,rgba(255,236,206,0) 31%),
    linear-gradient(68deg,rgba(255,236,206,0) 69%,rgba(255,236,206,.36) 75%,rgba(255,236,206,0) 82%);
  animation:hjBeams 9s ease-in-out infinite alternate}
@keyframes hjBeams{from{opacity:.42}to{opacity:.62}}

/* 3 · distant vases (approved interior reference: one each side, under the sconces) */
.hj-vase{position:absolute;bottom:25.5vh;height:27vh;width:auto;pointer-events:none;opacity:.8;filter:saturate(.88) blur(.6px)}
.hj-vase-l{left:26%;transform:translateX(-50%)}
.hj-vase-r{left:74%;transform:translateX(-50%) scaleX(-1)}

/* 4 · pedestal: its own layer; the book's lower edge rests ~23% into the marble top */
.hj-pedestal{position:absolute;left:50%;top:calc(var(--rest-y,70.7vh) - var(--ped-w,520px) * .0776);width:var(--ped-w,520px);height:auto;
  transform:translateX(-50%);pointer-events:none;filter:drop-shadow(0 26px 22px rgba(120,80,70,.20))}
.hj-contact{position:absolute;left:50%;top:calc(var(--rest-y,70.7vh) - 10px);width:calc(var(--book-w,330px) * 1.18);height:26px;transform:translateX(-50%);
  border-radius:50%;background:radial-gradient(closest-side,rgba(110,72,70,.30),rgba(110,72,70,0));pointer-events:none}

/* 6 · foreground blossoms + petals sit in front of the book (above .reader), never catch the pointer */
.hj-fore{position:absolute;inset:0;z-index:25;pointer-events:none;visibility:hidden;opacity:0;transition:opacity .6s var(--ease)}
[data-scene=enter] .hj-fore,[data-scene=book] .hj-fore{visibility:visible;opacity:1}
.hj-floral{position:absolute;pointer-events:none;height:auto}
.hj-floral-ul{left:-2.2vw;top:-3vh;width:min(25vw,52vh)}
.hj-floral-ll{left:-3vw;bottom:-7vh;width:min(29vw,60vh);transform:scaleX(-1);filter:blur(2.2px);opacity:.9}
.hj-petals{position:absolute;inset:0;overflow:hidden}
.hj-petal{position:absolute;top:-10vh;display:block;background:center/contain no-repeat;opacity:0;will-change:transform,opacity;
  animation:hjFall var(--dur,10s) linear var(--delay,0s) infinite}
.hj-petal.p1{left:14%;width:22px;height:19px;background-image:url(../assets/scene/petal-01.webp?v=10.0);--dur:11.4s;--delay:-2s;--dx:28px;--rot:95deg;--op:.62}
.hj-petal.p3{left:62%;width:13px;height:18px;background-image:url(../assets/scene/petal-03.webp?v=10.0);--dur:13.1s;--delay:-4s;--dx:14px;--rot:135deg;--op:.5;filter:blur(.6px)}
.hj-petal.p4{left:24%;width:30px;height:17px;background-image:url(../assets/scene/petal-04.webp?v=10.0);--dur:9.2s;--delay:-5.4s;--dx:-13px;--rot:-85deg;--op:.7}
.hj-petal.p6{left:86%;width:34px;height:30px;background-image:url(../assets/scene/petal-06.webp?v=10.0);--dur:8.1s;--delay:-3.1s;--dx:-10px;--rot:120deg;--op:.6;filter:blur(1.4px)}
@keyframes hjFall{
  0%{opacity:0;transform:translate3d(0,0,0) rotate(0)}
  12%{opacity:var(--op,.54)}
  50%{transform:translate3d(var(--dx,20px),58vh,0) rotate(calc(var(--rot,90deg) * .5))}
  88%{opacity:var(--op,.54)}
  100%{opacity:0;transform:translate3d(calc(var(--dx,20px) * -.4),118vh,0) rotate(var(--rot,90deg))}}

/* 7 · the closed book is the real 3D cover (#coverFront) dressed in the exact lavender cutout.
   The cutout (332×386 after trimming its transparent margin, aspect .860) is drawn at its own aspect from the hinge
   side, so it is never stretched (the 583×676 cover box is .862). */
.cover-front{background-image:url(../assets/scene/book-closed-lavender.webp?v=10.0);background-size:auto 100%;background-position:0 0;
  filter:drop-shadow(0 22px 18px rgba(96,62,74,.26)) drop-shadow(0 4px 6px rgba(96,62,74,.16))}
.cover-front:hover{filter:drop-shadow(0 24px 20px rgba(96,62,74,.30)) drop-shadow(0 4px 6px rgba(96,62,74,.18))}
.single .book[data-state=closed] .cover,.single .book[data-state=opening] .cover{left:var(--cv-l,0);top:var(--cv-t,0);width:var(--cv-w,100%);height:var(--cv-h,100%)}
.single .cover-front{background-size:100% 100%;background-position:0 0}

/* the CSS plinth is replaced by the pedestal layer */
.plinth{display:none!important}

/* scene timing: pedestal, vases and lockup settle in with the room; they step aside as the book opens */
.hj-pedestal,.hj-contact,.hj-vase{transition:opacity .45s var(--ease),transform .6s var(--ease)}
[data-scene=reading] .hj-contact,[data-scene=reading] .hj-vase{opacity:0}
.world:has(#book.hj-op-move) .hj-fore{opacity:0}

/* mobile: one column, smaller lockup, book centred over the pedestal */
@media (max-width:700px){
  .hj-vase{height:21vh;bottom:30vh;opacity:.85}
  .hj-vase-l{left:9%}.hj-vase-r{left:91%}
  .hj-floral-ul{width:46vw;left:-6vw;top:-2vh}
  .hj-floral-ll{width:52vw;left:-8vw;bottom:-4vh}
  .hj-petal.p3{display:none}
}

@media (prefers-reduced-motion:reduce){
  .hj-beams,.hj-petal{animation:none}
  .hj-petal{display:none}
}


/* walk-in order: the room resolves first, then the header and the foreground blossoms (no double exposure with the
   house wordmark while the two scenes cross-fade) */
[data-scene=enter] .hj-fore,[data-scene=book] .hj-fore{transition-delay:.55s}
.world:has(#book.hj-op-move) .hj-fore{transition-delay:0s}

/* 8 · header (v8 lock): the existing reader header, restyled. The original repo J (assets/brand/monogram.png, champagne
   gold) sits centred over live-text HOUSE of JENNY; Contents stays left, Résumé · Contact · LinkedIn stay right.
   Same links, same order in the DOM, no second header. It shows in the hall (large, not yet interactive) and shrinks
   into the reading header as the book opens. */
.util-mono{display:block;flex:none;width:calc(var(--mono-h,34px) * .95);height:var(--mono-h,34px);transition:width .9s var(--ease),height .9s var(--ease)}
.util-name{display:block;font:500 var(--name-fs,14px)/1 var(--serif);letter-spacing:.2em;text-transform:uppercase;color:var(--plum,#4E2A45);white-space:nowrap;
  text-shadow:0 1px 0 rgba(255,252,247,.6);transition:font-size .9s var(--ease)}
.util-name i{font-style:italic;font-weight:400;font-size:.62em;letter-spacing:.08em;text-transform:none;margin:0 .32em 0 .1em;vertical-align:.08em}
.util .util-home{display:inline-flex;align-items:center;gap:9px}
@media (min-width:1181px){
  #util.util{position:relative}
  /* in the hall, before the book opens: the large centred lockup of the approved interior reference (already large
     while the hall fades in, so it never grows on screen; it stays large while the book opens, as in the GIF). With the
     camera push-in it glides to the compact reading lockup on the left (v11.0, css/hoj-v11-nav.css; app.js flipLockup) */
  .world:is([data-scene=enter],[data-scene=book]):not(:has(#book.hj-op-push)) #util .util-home{position:absolute;z-index:21;left:50%;top:4.2vh;
    transform:translateX(-50%);flex-direction:column;gap:1.3vh;padding:0!important}
  .world:is([data-scene=enter],[data-scene=book]):not(:has(#book.hj-op-push)) #util{--mono-h:11.6vh;--name-fs:clamp(22px,4.25vh,46px)}
}
[data-scene=book] .util{opacity:1}
[data-scene=book] .util,[data-scene=book] .util *{pointer-events:none}
@media (max-width:1180px){
  .util-mono{--mono-h:26px}
  .util-name{--name-fs:12px;letter-spacing:.16em}
}
@media (max-width:400px){.util-name{--name-fs:11px;letter-spacing:.12em}}
/* keep the header row clear of the foreground branch (the branch starts below the nav line, as in the reference) */
.hj-floral-ul{top:calc(56px - 1.5vh)}

/* ================= v10.3 · one header for the whole house (approved interior hero = master) =================
   Floral gold crest (approved wreath, its rendered J removed) around the ORIGINAL repo J (assets/brand/monogram.png),
   HOUSE of JENNY in live text, chapters split around the crest: Brand · Social · Campaigns | crest | Collabs · Strategy
   · About. The outer ends keep the existing utilities (Work/Contents left, Résumé · Contact · LinkedIn right). */
.hj-crest{position:relative;display:block;flex:none;height:var(--mono-h,34px);width:calc(var(--mono-h,34px) * .95)}
.hj-crest::before,.hj-crest::after{content:"";position:absolute;inset:0;
  background:linear-gradient(160deg,#E9D29C 0%,#C9A55A 34%,#A9843F 58%,#8A6A2E 78%,#C9A55A 100%)}
.hj-crest::before{-webkit-mask:url(../assets/brand/crest-wreath.png?v=10.3) center/contain no-repeat;mask:url(../assets/brand/crest-wreath.png?v=10.3) center/contain no-repeat}
.hj-crest::after{inset:17.5%;-webkit-mask:url(../assets/brand/monogram.png?v=6.6) center/contain no-repeat;mask:url(../assets/brand/monogram.png?v=6.6) center/contain no-repeat}
.hj-word{display:block;font:500 var(--name-fs,14px)/1 var(--serif);letter-spacing:.2em;text-transform:uppercase;color:var(--plum,#4E2A45);white-space:nowrap}
.hj-word i{font-style:italic;font-weight:400;font-size:.62em;letter-spacing:.08em;text-transform:none;margin:0 .32em 0 .1em;vertical-align:.08em}

/* nav type: spaced serif capitals with a small gold dot between items (as in the approved hero) */
.hj-nav,.hj-edge{display:flex;align-items:center;gap:0}
.hj-nav a,.hj-edge a,#util .util-links a{font:500 11.5px/1 var(--serif)!important;letter-spacing:.2em!important;text-transform:uppercase;color:var(--plum,#4E2A45)!important;
  text-decoration:none;padding:12px 0!important;border:0!important;white-space:nowrap}
.hj-nav a+a::before,.hj-edge a+a::before{content:"·";display:inline-block;margin:0 .9em;color:var(--gold,#C9A55A);letter-spacing:0}
.hj-nav a:hover,.hj-edge a:hover,#util .util-links a:hover{color:var(--gold-ink,#8A6A2E)!important}
#util .util-links{gap:0!important}
#util .util-links a+a::before{content:"·";display:inline-block;margin:0 .9em;color:var(--gold,#C9A55A);letter-spacing:0}
#util .util-links a[data-track=resume]{border:0!important}
.hj-nav-r{justify-self:end}

/* ---- landing (exterior): header row + crest/name title over the original house */
@media (min-width:1101px){
  .home-nav.hj-head{display:grid!important;grid-template-columns:auto auto 1fr auto auto;align-items:center;column-gap:26px;padding-top:14px!important}
  .home-nav.hj-head .hj-edge-l{grid-column:1}.home-nav.hj-head .hj-nav-l{grid-column:2}.home-nav.hj-head .hj-nav-r{grid-column:4}.home-nav.hj-head .hj-edge-r{grid-column:5}
  .home-nav.hj-head .hj-edge-l{padding-right:26px;border-right:1px solid rgba(201,165,90,.45)}
  .home-nav.hj-head .hj-edge-r{padding-left:26px;border-left:1px solid rgba(201,165,90,.45)}
}
@media (max-width:1100px){.hj-head .hj-nav{display:none}.home-nav.hj-head .hj-edge-l{display:none}}
.home-nav.hj-head .home-nav-links a::after{content:none}
.hj-title{display:flex!important;flex-direction:column;align-items:center;gap:1.1vh;margin:0}
.hj-title .hj-crest{--mono-h:10.4vh}
.hj-title .hj-word{--name-fs:clamp(22px,3.9vh,44px)}
@media (max-width:700px){.hj-title .hj-crest{--mono-h:7.2vh}.hj-title .hj-word{--name-fs:clamp(17px,2.7vh,24px);letter-spacing:.17em}}

/* ---- reader header (#util): see css/hoj-v11-nav.css (v11.0: crest + wordmark left, Résumé · Contact · LinkedIn right) */

/* ================= v10.3 exterior: layered cherry blossoms + petals over the ORIGINAL house (house untouched) ======== */
.hj-ext{position:absolute;inset:0;z-index:6;pointer-events:none;overflow:hidden}
.hj-br{position:absolute;will-change:transform;transform:translate3d(calc(var(--px,0) * var(--d,12px) * -1),calc(var(--py,0) * var(--d,12px) * -.7),0);transition:transform .9s var(--ease)}
.hj-br img{display:block;width:100%;height:auto;transform-origin:var(--o,0 0);animation:hjSway 9s ease-in-out infinite alternate}
.hj-br-tl{left:-1.5vw;top:46px;width:min(33vw,620px);--d:16px;--o:0 0}
.hj-br-tr{right:-1.5vw;top:40px;width:min(32vw,600px);--d:16px;--o:100% 0}
.hj-br-tr img{animation-delay:-4s}
/* v10.6 soft canopies: the same blossoms, out of focus and further back, cascading down the sides like trees */
.hj-br-tl2{left:-9vw;top:27vh;width:min(36vw,690px);--d:9px;--o:0 0;opacity:.78;filter:blur(2.2px) saturate(1.05)}
.hj-br-tr2{right:-9vw;top:25vh;width:min(36vw,690px);--d:9px;--o:100% 0;opacity:.78;filter:blur(2.2px) saturate(1.05)}
.hj-br-tr2 img{animation-delay:-6s;animation-duration:12s}
.hj-br-tl2 img{animation-duration:13s}
/* foreground blossoms in both lower corners, closest to the camera: largest drift, softest focus */
.hj-br-br{right:-5vw;bottom:-3vh;width:min(38vw,700px);--d:26px;--o:100% 100%;opacity:.9;filter:blur(2.4px)}
.hj-br-bl{left:-5vw;bottom:-4vh;width:min(36vw,670px);--d:26px;--o:0 100%;opacity:.9;filter:blur(2.6px)}
.hj-br-br img{animation-duration:11s}.hj-br-bl img{animation-duration:10s;animation-delay:-3s}
@keyframes hjSway{from{transform:rotate(-.5deg)}to{transform:rotate(.6deg)}}
/* a house-only flurry on top of the shared petal field */
.hj-xpetals{z-index:1}
@media (max-width:700px){.hj-br-tl{width:46vw;top:64px;left:-6vw}.hj-br-tr{width:44vw;top:60px;right:-6vw}
  .hj-br-tl2,.hj-br-tr2{width:50vw;top:33vh;opacity:.7}.hj-br-tl2{left:-22vw}.hj-br-tr2{right:-22vw}.hj-br-br{width:66vw;bottom:2vh}.hj-br-bl{width:62vw;bottom:0}
  .hj-xpetals{--k:.72}}
@media (prefers-reduced-motion:reduce){.hj-br img{animation:none}.hj-br{transform:none}}

/* hall on single-page widths: the same crest + name lockup, centred, before the book opens */
@media (max-width:1180px){
  .world:is([data-scene=enter],[data-scene=book]):has(#book[data-state=closed]) #util .util-home{position:absolute;left:50%;top:calc(56px + 1.4vh);transform:translateX(-50%);flex-direction:column;gap:.9vh;z-index:21}
  .world:is([data-scene=enter],[data-scene=book]):has(#book[data-state=closed]) #util .util-mono{--mono-h:8.4vh}
  .world:is([data-scene=enter],[data-scene=book]):has(#book[data-state=closed]) #util .util-name{--name-fs:clamp(16px,2.6vh,26px)}
}

/* ================= v10.5 · cherry blossoms that keep falling: house → hall → opening → reader =================
   Individual petal files (v8 06_MOTION/PETALS) as separate layers, two depths, each with its own size, speed, sway,
   breeze drift and tumble (values inline in index.html). Far: 16, soft-focus, behind the book. Near: 7, larger,
   sharper, in front; while reading only the two in the outer margins stay, so no petal ever crosses the page text. */
.hj-pfield{position:absolute;inset:0;pointer-events:none;overflow:hidden;perspective:700px}
.hj-pfield-far{z-index:2}
.hj-pfield-near{z-index:26}
.pf{position:absolute;top:-8vh;left:var(--x);display:block;width:calc(var(--w) * var(--k,1));height:calc(var(--w) * var(--k,1));opacity:0;filter:blur(var(--bl,0px));
  animation:pfFall var(--t) linear var(--dl) infinite;will-change:transform,opacity}
.pf b{display:block;width:100%;height:100%;background:var(--img) center/contain no-repeat;
  animation:pfTumble var(--tt,3.2s) ease-in-out var(--dl) infinite alternate}
.pf.p1{--img:url(../assets/scene/petal-01.webp?v=10.0)}.pf.p3{--img:url(../assets/scene/petal-03.webp?v=10.0)}
.pf.p4{--img:url(../assets/scene/petal-04.webp?v=10.0)}.pf.p6{--img:url(../assets/scene/petal-06.webp?v=10.0)}
.pf.p2{--img:url(../assets/scene/petal-02.webp?v=10.6)}.pf.p5{--img:url(../assets/scene/petal-05.webp?v=10.6)}
@keyframes pfFall{
  0%{opacity:0;transform:translate3d(0,0,0)}
  7%{opacity:var(--o)}
  25%{transform:translate3d(calc(var(--sx) * 1 + var(--dx) * .25),27vh,0)}
  50%{transform:translate3d(calc(var(--sx) * -.6 + var(--dx) * .5),55vh,0)}
  75%{transform:translate3d(calc(var(--sx) * .9 + var(--dx) * .75),83vh,0)}
  93%{opacity:var(--o)}
  100%{opacity:0;transform:translate3d(calc(var(--sx) * -.2 + var(--dx)),112vh,0)}}
@keyframes pfTumble{from{transform:rotate(var(--r0,-20deg)) rotateX(10deg) rotateY(-25deg)}to{transform:rotate(var(--r1,140deg)) rotateX(62deg) rotateY(38deg)}}
/* reading: petals keep drifting in the margins around the book, never across the page text */
[data-scene=reading] .hj-pfield-near .pf-mid{display:none}
[data-scene=reading] .hj-pfield-near .pf{--dx:0vw;--sx:16px}
[data-scene=reading] .hj-pfield-near{opacity:.8}
@media (max-width:700px){.pf-lo{display:none}.hj-pfield-near{--k:.68}.hj-pfield-far{--k:.7}[data-scene=reading] .hj-pfield-near{display:none}}
[data-scene=boot] .hj-pfield{opacity:0}
@media (prefers-reduced-motion:reduce){.hj-pfield{display:none}}
html.motion-off .hj-pfield{display:none}
