/* ============================================================
   DCID Design — Fable pass · Direction 2 "One Day in the House" (index-fable-day.html) · 2026-09-27, after the critic round
   The scroll is a day. The surface moves from a cool morning white through Soft Beige and Warm Sand
   to a warm charcoal night (two fixed layers cross-fading at opacity only, driven by fable-day.js; the
   same tones are static section backgrounds without JS or under reduced motion). The leaves become
   leaf shadows. The peak is the turn to evening: the amber pendants switch on as the surface goes dark.
   ============================================================ */
body{background:#EFF1F2}
main{position:relative;z-index:2}
.nav{z-index:40}

/* ---------- the surface: the body carries the morning; two layers cross-fade over it (motion) ---------- */
.sky{position:fixed;inset:0;z-index:0;pointer-events:none}
.sky i{position:absolute;inset:0;opacity:0;will-change:opacity}
.sky .l1{background:var(--beige)}
.sky .l2{background:var(--sand)}
html:not(.motion) [data-tone="1"]{background:var(--beige)}
html:not(.motion) [data-tone="2"]{background:var(--sand)}
html:not(.motion) .sky,html:not(.motion) .shadows{display:none}

/* the nav carries the same tones (opacity layers), so it never sits as a paper strip on the afternoon */
.nav{background:rgba(239,241,242,.96)}
.nav.at-top{background:transparent}
.nav__bg{position:absolute;inset:0;z-index:-1;overflow:hidden;opacity:1;transition:opacity .4s var(--ease)}
.nav.at-top .nav__bg{opacity:0}
.nav__bg i{position:absolute;inset:0;opacity:0;will-change:opacity}
.nav__bg .l1{background:rgba(233,226,216,.96)}
.nav__bg .l2{background:rgba(212,189,169,.96)}
.nav__bg .ln{background:rgba(43,39,36,.95)}
.nav.night{color:var(--beige);box-shadow:0 1px 0 rgba(233,226,216,.12)}
.nav.night .nav__menu nav{background:#2B2724;border-color:rgba(233,226,216,.2)}
html:not(.motion) .nav{background:rgba(233,226,216,.96)}

/* ---------- leaf shadows: a cluster from two window corners, three depths of blur, drifting with the day ---------- */
/* no overflow clip here: the layer slides with the scroll, and a clip would travel with it and cut the leaves */
.shadows{position:fixed;inset:0;z-index:1;pointer-events:none;overflow:visible;will-change:transform}
.shadows.is-off{visibility:hidden}
.shadows .leaf{position:absolute;background:no-repeat center/contain;opacity:.075;transform-origin:50% 0;will-change:transform,opacity}
/* the shape is Sabina's brand botanical no. 44 (monstera), filled and flipped; the drawings carry a wide margin for their blur halo (leaf-monstera-*), so the element box never cuts them */
.shadows .v1{background-image:url("img/fable/leaf-monstera-1.png")}
.shadows .v2{background-image:url("img/fable/leaf-monstera-2.png")}
.shadows .v3{background-image:url("img/fable/leaf-monstera-3.png")}
/* top-right window — a crisp leaf lying across a soft one (the crossed pair Sabina liked), starting below the
   header band so nothing sits behind the menu at the top; a third, medium leaf further along the top edge */
.shadows .leaf--1{width:min(30vw,420px);height:min(34vw,480px);right:-6vw;top:14vh;rotate:34deg;z-index:2}
.shadows .leaf--2{width:min(22vw,300px);height:min(25vw,345px);right:32vw;top:11vh;rotate:-18deg}
.shadows .leaf--3{width:min(40vw,540px);height:min(45vw,620px);right:-15vw;top:8vh;rotate:64deg}
/* bottom-left window — the same idea, mirrored */
.shadows .leaf--4{width:min(36vw,495px);height:min(40vw,570px);left:-14vw;bottom:-22vh;rotate:-152deg}
.shadows .leaf--5{width:min(20vw,270px);height:min(23vw,310px);left:18vw;bottom:-12vh;rotate:-118deg;z-index:2}
.shadows .leaf--6{width:min(44vw,600px);height:min(50vw,690px);left:-30vw;bottom:-8vh;rotate:-170deg}
html.motion .shadows .leaf{animation:sway 52s ease-in-out infinite alternate}
html.motion .shadows .leaf--2,html.motion .shadows .leaf--5{animation-duration:64s;animation-delay:-20s}
html.motion .shadows .leaf--3,html.motion .shadows .leaf--6{animation-duration:58s;animation-delay:-37s}
html.motion .shadows.is-off .leaf{animation-play-state:paused}
@keyframes sway{from{transform:rotate(-1.2deg) translate(0,0)}to{transform:rotate(1.4deg) translate(14px,8px)}}
@media(max-width:760px){.shadows .leaf--2,.shadows .leaf--5{display:none}.shadows .leaf--1{right:-16vw;top:16vh}.shadows .leaf--3{right:-26vw;top:12vh}html.motion .shadows .leaf{animation:none}}

/* ---------- night: sections after the peak carry their own dark surface ---------- */
.is-night{background:#2B2724;color:var(--beige)}
.is-night p,.is-night .lead{color:rgba(233,226,216,.8)}
.is-night h1,.is-night h2{color:var(--beige)}
.is-night .eyebrow,.is-night .caption{color:var(--sand)}
.is-night .btn{border-color:var(--beige);color:var(--beige)}
.is-night .btn:hover{background:var(--beige);color:var(--ink)}
.is-night .win,.is-night .still{background:#3B332D}
.btn--paper,.is-night .btn--paper{background:var(--beige);border-color:var(--beige);color:var(--ink)}
.btn--paper:hover,.is-night .btn--paper:hover{background:#fff;border-color:#fff;color:var(--ink)}
.footer{border-top:1px solid rgba(233,226,216,.14)}

/* ---------- HERO (morning): words left, a tall window bleeding to the right edge ---------- */
.hero{min-height:100svh;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);padding-top:var(--nav-h)}
.hero__text{padding:clamp(2rem,8vh,6rem) clamp(1.5rem,4vw,4rem) clamp(2rem,8vh,6rem) var(--gutter);display:grid;align-content:center;justify-items:start;gap:1.3rem}
.hero h1{font-size:clamp(2.3rem,4.6vw,4.6rem);max-width:12ch}
.hero .lead{max-width:40ch}
.hero .link{margin-top:.4rem}
.hero__win{min-height:calc(100svh - var(--nav-h))}
@media(max-width:820px){
  .hero{grid-template-columns:1fr}
  .hero__text{padding:clamp(1.4rem,4vh,2.6rem) var(--gutter) clamp(1.6rem,4vh,2.6rem);gap:1rem}
  .hero h1{max-width:none}
  .hero__win{min-height:60svh}
}

/* ---------- BEATS / WINDOWS ---------- */
.beat{padding-top:clamp(4.5rem,11vh,9rem)}
.beat__text{padding-bottom:clamp(2rem,5vh,3.6rem)}
.beat__text--trail{padding-top:clamp(2rem,5vh,3.6rem);padding-bottom:0}   /* top only: the shorthand zeroed the .wrap gutter (critic 2026-09-30) */
.beat h2{font-size:clamp(1.9rem,3.6vw,3.3rem);margin-bottom:1rem;max-width:16ch}
.beat p{max-width:46ch}
.win--band{height:78svh;min-height:420px}
.win--tall{height:86svh;min-height:480px}
.breath{padding-top:clamp(5rem,13vh,10rem)}
@media(max-width:760px){.win--band,.win--tall{height:66svh;min-height:380px}.beat{padding-top:clamp(3.5rem,9vh,6rem)}}

/* ---------- FILM (in the night): an inset window sized so the 672 px clip holds up; the lit room moving ---------- */
.film{padding-top:clamp(4rem,10vh,7rem)}
.win--video{width:min(72vw,900px);margin-inline:auto;height:56svh;min-height:340px}
@media(max-width:760px){.win--video{width:calc(100% - 2*var(--gutter));height:auto;min-height:0;aspect-ratio:3/2}}

/* ---------- SPLIT ---------- */
.split{padding-top:clamp(5rem,13vh,10rem)}
.split__grid{display:grid;grid-template-columns:7fr 5fr;gap:clamp(2rem,6vw,6rem);align-items:center}
.split__grid>.split__text{order:2}
.split--flip .split__grid{grid-template-columns:5fr 7fr}
.split--flip .split__grid>.split__text{order:0}
.split--flip .split__grid>figure{order:2}
.split__text h2{font-size:clamp(1.9rem,3.6vw,3.3rem);margin-bottom:1rem}
.split__text p{max-width:42ch}
.split__text .btn,.split__text .link{margin-top:1.4rem}
/* the founder moment: one small line, then Sabina's story set in Playfair */
.founder .founder__k{font-family:var(--sans);font-size:.8rem;font-weight:500;letter-spacing:.06em;color:var(--accent);margin-bottom:1rem;line-height:1.4}
.founder__p{font-family:var(--serif);font-size:clamp(1.3rem,1.9vw,1.75rem);line-height:1.4;color:var(--ink);max-width:30ch}
.founder .link{margin-top:1.6rem}
@media(max-width:760px){
  .split .split__grid,.split--flip .split__grid{grid-template-columns:1fr;gap:2rem}
  .split__grid>.split__text,.split--flip .split__grid>.split__text{order:0}
  .split--flip .split__grid>figure{order:2}
}

/* ---------- THE OPENING (afternoon): the pool as a wide strip that opens to the whole screen and holds, the view
   pinned still (the Horizon's move, folded in as a second, gentler opening, with the statement in the sky and a
   shorter hold; the amber turn stays the peak). Uses the shared peak machinery with sand mat bars. ---------- */
:root{--horizon:.53;--horizon-portrait:.50}
html.motion .peak.opening{height:190svh}
.opening .mat i{background:var(--sand)}
.opening .mat__t,.opening .mat__b{height:36lvh}
.opening .mat__l,.opening .mat__r{width:var(--gutter)}
html:not(.motion) .opening .peak__stage{height:38svh;min-height:220px}
@media(max-width:760px){.opening .mat__t,.opening .mat__b{height:30lvh}html:not(.motion) .opening .peak__stage{height:46svh}}
@media(orientation:portrait){@supports (height:100svh){html.motion .peak.opening{height:170svh}}}

/* ---------- GOLDEN PAIR: one large, one smaller and lower ---------- */
.pair{padding-top:clamp(5rem,13vh,10rem)}
.pair__grid{display:grid;grid-template-columns:7fr 5fr;gap:clamp(1.5rem,4vw,4rem);align-items:start}
.pair .still--b{aspect-ratio:4/5;margin-top:clamp(3rem,14vh,10rem);width:min(100%,420px)}
@media(max-width:760px){.pair__grid{grid-template-columns:1fr;gap:1.5rem}.pair .still--b{margin-top:0;width:70%;margin-left:auto}}

/* ---------- PEAK (the turn to evening): the pendants switch on as the surface goes dark around them;
   the frame grows toward full-bleed; the words sit in the band beneath it, in every state ---------- */
.peak{margin-top:clamp(5rem,14vh,11rem)}
@supports (height:100svh){html.motion .peak{height:270svh}}
.peak__stage{background:transparent}
.peak__clay,.peak__dark{position:absolute;inset:0;opacity:0;will-change:opacity}
.peak__clay{background:#8A7460}
.peak__dark{background:#2B2724}
html:not(.motion) .peak__dark{opacity:1}
html:not(.motion) .peak__stage{height:100svh;min-height:600px}
.peak__frame{position:absolute;left:50%;top:calc(var(--nav-h) + 3vh);width:min(100% - 2*var(--gutter),1500px);height:50svh;min-height:300px;translate:-50% 0;overflow:hidden;background:#3B332D;transform-origin:50% 0;will-change:transform}
.peak__frame img{width:100%;height:100%;object-fit:cover}
.peak__text{position:absolute;left:var(--gutter);right:var(--gutter);top:calc(var(--nav-h) + 3vh + 55svh + 5vh);color:var(--beige);max-width:780px}   /* 780 (was 640): the dusk refrain’s second line holds on one line (2026-09-28) */
html:not(.motion) .peak__text{top:calc(var(--nav-h) + 3vh + 50svh + 5vh)}
.peak__k{font-family:var(--serif);font-size:clamp(1.05rem,1.4vw,1.25rem);color:var(--sand);margin-bottom:.8rem}
.peak__text h2{font-size:clamp(1.9rem,4vw,3.8rem);color:var(--beige);text-wrap:balance}
@media(max-height:760px){.peak__frame{height:44svh}.peak__text{top:calc(var(--nav-h) + 3vh + 48svh + 4vh)}html:not(.motion) .peak__text{top:calc(var(--nav-h) + 3vh + 44svh + 4vh)}}
@media(max-width:760px){.peak__frame{height:52svh;top:calc(var(--nav-h) + 2vh)}.peak__text{top:calc(var(--nav-h) + 2vh + 57svh + 2rem)}html:not(.motion) .peak__text{top:calc(var(--nav-h) + 2vh + 52svh + 2rem)}}

/* ---------- QUOTES (dusk): an evening conversation — the first quote larger, the others stepped in ---------- */
.quotes{padding-block:clamp(3rem,8vh,6rem)}
.quotes__list{display:grid;gap:clamp(2.5rem,7vh,5rem)}
.quote{margin:0;font-family:var(--serif);font-size:clamp(1.35rem,2.2vw,2rem);max-width:28ch}
.quote blockquote{margin:0}
.quote p{color:var(--beige);line-height:1.38}
.quote figcaption{font-family:var(--sans);font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;color:var(--sand);margin-top:1.1rem}
.quote--a{font-size:clamp(1.55rem,2.6vw,2.3rem)}
.quote--b{margin-left:clamp(0px,18vw,260px);font-size:clamp(1.25rem,1.9vw,1.7rem)}
.quote--c{margin-left:clamp(0px,6vw,90px);font-size:clamp(1.25rem,1.9vw,1.7rem)}
@media(max-width:760px){.quotes__list{gap:clamp(3rem,9vh,5rem)}.quote--b{margin-left:10%}.quote--c{margin-left:4%}}

/* ---------- SHOP (night): the photo clean; the words on a lit Warm Sand panel — the shop window at night ---------- */
.shop{padding-top:clamp(3rem,8vh,6rem)}
.shop__grid{display:grid;grid-template-columns:7fr 5fr;align-items:stretch}
.shop .still{aspect-ratio:auto;min-height:440px;height:100%}
.is-night .shop__panel{background:var(--sand);color:var(--ink);padding:clamp(2rem,5vw,4.5rem);display:grid;align-content:center;justify-items:start;gap:1rem}
.is-night .shop__panel h2{color:var(--ink);font-size:clamp(1.7rem,3vw,2.6rem)}
.is-night .shop__panel p{max-width:40ch;color:var(--ink-soft)}
.is-night .shop__panel .eyebrow{color:var(--accent)}
.is-night .shop__panel .btn{margin-top:.6rem;border-color:var(--ink);color:var(--ink)}
.is-night .shop__panel .btn:hover{background:var(--ink);color:var(--paper)}
.is-night .shop__panel :focus-visible{outline-color:var(--accent)}
@media(max-width:760px){.shop__grid{grid-template-columns:1fr}.shop .still{aspect-ratio:4/5;min-height:0;height:auto}.is-night .shop__panel{padding:1.8rem var(--gutter) 2.2rem}}

/* ---------- CLOSE (night): the invitation beside the last lit room ---------- */
.close{padding-block:clamp(4rem,9vh,7rem)}
.close__grid{display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(2rem,6vw,6rem);align-items:center}
.close .col{display:grid;justify-items:start;gap:1rem;max-width:52ch}
.close h2{font-size:clamp(2rem,4.4vw,4rem)}
.close .lead{max-width:38ch}
.close .still{aspect-ratio:4/5;width:min(100%,460px);justify-self:end}
@media(max-width:760px){.close__grid{grid-template-columns:1fr;gap:2rem}.close .still{justify-self:start;width:75%}}

/* ---------- PORTRAIT SCREENS ---------- */
@media(orientation:portrait){
  @supports (height:100svh){html.motion .peak{height:240svh}}
  .close .col{justify-items:end;text-align:right;margin-left:auto}
}

/* ---------- the opening's words (the Horizon's treatment): in the sky, right-anchored, a soft scrim only at the top ---------- */
.opening__scrim{position:absolute;left:0;right:0;top:0;height:42lvh;background:linear-gradient(180deg,rgba(36,34,32,.36),rgba(36,34,32,0));pointer-events:none}
.opening__text{position:absolute;right:var(--gutter);top:calc(var(--nav-h) + 6vh);max-width:min(88vw,700px);color:var(--paper);text-align:right}
.opening__text .eyebrow{color:var(--paper);opacity:.9;margin-bottom:.8rem}
.opening__text h2{font-size:clamp(1.9rem,3.9vw,3.7rem);color:var(--paper)}
html:not(.motion) .opening__scrim,html:not(.motion) .opening__text{display:none}   /* the static strip stays wordless */
@media(max-width:760px){.opening__text{left:var(--gutter);right:var(--gutter);top:calc(var(--nav-h) + 9vh);max-width:none;text-align:left}}

/* ---------- phones: words always left-aligned (critic 2026-09-30 — right-aligned paragraphs read slowly on a narrow screen) ---------- */
@media(max-width:760px){
  .col--right{margin-left:0;text-align:left}
  .col--right .btn,.col--right .link{margin-left:0}
  .close .col{justify-items:start;text-align:left;margin-left:0}
}
h1,h2{text-wrap:balance}
