/* Landing: the night (owner 7 Nov 2026). The opening is the printed indigo sky with the scroll and the two advocates
   under the words; the section panels are quiet encaustic tiles; the close is the same sky with the big hetu wordmark
   and the four advocates beside its dot. Pictures in landing/art/ribbon (tools: scroll_hero.py, ribbon_tiles.py). */

/* the opening */
.hz{--hz-ink:#f7f1e6;background:#2b2c6c}
.hz .hero-sky{top:calc(-1 * var(--nav-h));background:#2a2b63 url("art/ribbon/tex-sky.jpg?v=75c4b0bc45") 50% 0/cover no-repeat;
 animation:hz-in 1400ms cubic-bezier(.2,.7,.2,1) both}
.hz .hero-glow,.hz .hero-rise{display:none}
/* The strip behind the header is dark from the first frame (7 Nov: the sky fading in from nothing showed cream
   under the header's cream words on every refresh); the sky then fades in over it. */
.hz::before{content:"";position:absolute;left:0;right:0;top:calc(-1 * var(--nav-h));height:var(--nav-h);background:#2a2b63;pointer-events:none}
@keyframes hz-in{from{opacity:0;transform:scale(1.04)}to{opacity:1;transform:none}}
/* owner 14 Nov ("the background image on landing page glitches and morphs ... exactly like the introduction page"): the
   landing picture is two layers, the sky and the scroll with the figures (.hero-copy::after). Zooming only the sky slid it
   behind the still scroll. Here both fade in together, as one picture, on the same 800 ms curve as the MCP page's sky;
   no zoom. The text keeps the MCP page's timing exactly (h-in1/2/3). */
.hz-ribbon .hero-sky{animation-name:hz-fade}
.hz-ribbon .hero-copy::after{animation:hz-fade 800ms cubic-bezier(.16,1,.3,1) both}
@keyframes hz-fade{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.hz .hero-sky,.hz-ribbon .hero-copy::after{animation:none}}
.hz .hero-h{color:var(--hz-ink)}
.hz .hero-lede{color:rgba(247,241,230,.84)}
.hz .hero-ctas .h-btn{background:var(--hz-ink);color:#1d1b2e !important;box-shadow:0 1px 2px rgba(0,0,0,.2),0 8px 24px rgba(0,0,0,.25)}
.hz .hero-ctas .h-btn:hover{background:#fff !important}
.hz .hero-ctas .link-down{color:var(--hz-ink)}
.hz .hero-ctas .link-down:hover{color:#fff !important}
.hz .hero-ctas a:focus-visible{outline:2px solid var(--hz-ink);outline-offset:3px}
/* the scroll fills the space left under the buttons, so the whole opening fits one screen: the strip's top lands
   just under the buttons, it fills the rest of the frame, and the picture is cropped (never squeezed) to fit */
.hz-ribbon .hero-copy{box-sizing:border-box;height:100%}
.hz-ribbon .hero-ctas{position:relative;z-index:1}
.hz-ribbon .hero-copy::after{content:"";display:block;align-self:stretch;flex:1 1 0;min-height:0;
 margin:8px 0 calc(-1 * var(--lw,0px));background:url("art/ribbon/scroll-wide.jpg?v=795d96396a") 50% 80%/cover no-repeat;
 -webkit-mask-image:linear-gradient(#0000,#000 48px);mask-image:linear-gradient(#0000,#000 48px)}
/* laptops: the headline is sized by the screen's height as well as its width, so the words take about half the
   frame and the scroll with both advocates the other half (Chrome on a MacBook cut the advocates) */
@media (min-width:761px){.hz-ribbon .hero-h{font-size:min(clamp(45px,calc(8.9vw * var(--vf,1)),128px),calc((var(--h) - var(--lw)) * .115))}
 .hz-ribbon .hero-copy{padding-top:clamp(28px,calc((var(--h) - var(--lw)) * .07),88px)}}
/* portrait screens (tablets, phones): the narrow cut with both advocates */
@media (max-aspect-ratio:1/1){.hz-ribbon .hero-copy::after{background-image:url("art/ribbon/scroll-tall.jpg?v=58eb6dd75a");background-position:50% 78%}}
@media (max-width:760px){.hero.hz-ribbon{--h:clamp(560px,calc(calc(100vh * var(--vf,1)) - var(--nav-h)),1000px)}
 @supports (height:100svh){.hero.hz-ribbon{--h:clamp(560px,calc(calc(100svh * var(--vf,1)) - var(--nav-h)),1000px)}}
 .hz-ribbon .hero-copy{padding-top:clamp(40px,calc(7vh * var(--vf,1)),72px)}
 .hz-ribbon .hero-copy::after{margin:12px -20px 0;background-position:50% 86%}}

/* the header: clear with cream words over the opening and the close, the site's cream bar elsewhere (ribbon.js) */
.hd{transition:background-color var(--dur-3,.32s) var(--ease,cubic-bezier(.22,.61,.36,1)),box-shadow var(--dur-3,.32s) var(--ease,cubic-bezier(.22,.61,.36,1))}
.hd .hd-logo path{transition:fill var(--dur-3,.32s) var(--ease,cubic-bezier(.22,.61,.36,1))}
.hd .pn{transition:background-color var(--dur-3,.32s) var(--ease,cubic-bezier(.22,.61,.36,1)),box-shadow var(--dur-3,.32s) var(--ease,cubic-bezier(.22,.61,.36,1))}
.hd .pn a,.hd .hd-signin{transition:background-color var(--dur-3,.32s) var(--ease,cubic-bezier(.22,.61,.36,1)),color var(--dur-3,.32s) var(--ease,cubic-bezier(.22,.61,.36,1))}
.hd .btn-head{transition:background-color var(--dur-3,.32s) var(--ease,cubic-bezier(.22,.61,.36,1)),color var(--dur-3,.32s) var(--ease,cubic-bezier(.22,.61,.36,1))}
/* nav.js: no header transitions until the page has settled (first paint, refresh mid-page, Back) */
.hd-still,.hd-still *{transition:none !important}
@media (prefers-reduced-motion:reduce){.hd,.hd *{transition:none !important}}
.hd.hd-over{background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}
.hd-over .hd-logo path{fill:var(--hz-ink,#f7f1e6)}
.hd-over .pn{background:rgba(247,241,230,.07);box-shadow:0 0 0 1px rgba(247,241,230,.16);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.hd-over .pn a{color:#f7f1e6}
.hd-over .pn a:hover{background:rgba(247,241,230,.12);color:#fff}
.hd-over .hd-signin{color:rgba(247,241,230,.86)}
.hd-over .hd-signin:hover{color:#fff}
.hd-over .btn-head{background:#f7f1e6;color:#1d1b2e !important}
.hd-over .btn-head:hover{background:#fff !important}
.hd-over a:focus-visible{outline-color:#f7f1e6}

/* section panels: quiet encaustic floor tiles in Hetu tones, one pattern per panel */
.g-art.gl{background-repeat:no-repeat;background-size:cover;background-position:50% 50%;background-color:#f6f1e6}
.g-art::after{opacity:0}
.art-find{background-image:url("art/ribbon/til-find.jpg?v=df11f101fa")}
.art-memo{background-image:url("art/ribbon/til-memo.jpg?v=25ea7372b2")}
.art-act{background-image:url("art/ribbon/til-act.jpg?v=47cbece700")}
.art-judg{background-image:url("art/ribbon/til-judg.jpg?v=31f555a9c5")}
.art-acts{background-image:url("art/ribbon/til-acts.jpg?v=4057f0d473")}
.art-regs{background-image:url("art/ribbon/til-regs.jpg?v=c02579b7e3")}
.art-mcp{background-image:url("art/ribbon/til-mcp.jpg?v=da2ff81ca3")}

/* pricing: a band of small tiles across the top of each plan, in the card's own colour, fading into the card
   before the name; MCP and research packs get a slim tile column */
.pc-card.gl{padding-top:104px;background-repeat:repeat;background-size:80px 80px;background-position:0 0}
.pc-card::before{display:block;background:linear-gradient(180deg,color-mix(in srgb,var(--c) 0%,transparent) 0,color-mix(in srgb,var(--c) 30%,transparent) 40px,var(--c) 96px)}
.pc-trial{background-image:url("art/ribbon/tu-trial.png?v=a0312c90cb")}
.pc-ess{background-image:url("art/ribbon/tu-ess.png?v=e7a251e524")}
.pc-pro{background-image:url("art/ribbon/tu-pro.png?v=4871580cc7")}
.pc-extra.gl{background-image:none}
.pc-extra::before{display:none}
.pc-half{position:relative;padding-left:124px}
.pc-half::before{content:"";position:absolute;left:0;top:0;bottom:0;width:80px;background:url("art/ribbon/tu-mcp.png?v=874b9d772c") 0 0/80px 80px repeat;border-right:1px solid rgba(46,47,122,.10)}
.pc-half+.pc-half::before{background-image:url("art/ribbon/tu-pack.png?v=6802ef810d")}
.pc-extra .pc-half:first-child::before{border-radius:4px 0 0 4px}
@media (max-width:760px){.pc-card.gl{padding-top:84px}
 .pc-card::before{background:linear-gradient(180deg,transparent 0,var(--c) 76px)}
 .pc-half{padding-left:22px;padding-top:72px}
 .pc-half::before{right:0;bottom:auto;width:auto;height:48px;border-right:0;border-bottom:1px solid rgba(46,47,122,.10)}}

/* the close: the opening's printed sky, the big hetu wordmark centred, the four advocates beside its dot */
.close-dusk{background:#2a2b63 url("art/ribbon/tex-sky.jpg?v=75c4b0bc45") 50% 50%/cover no-repeat}
.close-dusk .close-rose{display:none}
.close-dusk .g-h2{color:#f7f1e6}
.close-dusk .g-cta{background:#f7f1e6;color:#1d1b2e !important}
.close-dusk .g-cta:hover{background:#fff !important}
.close-dusk .close-mark path{fill:#f7f1e6}
.close-dusk .close-foot a{color:rgba(247,241,230,.86);text-shadow:0 1px 2px rgba(13,13,38,.55),0 0 14px rgba(13,13,38,.65)}
.close-dusk .close-foot a:hover{color:#fff}
.close-dusk a:focus-visible{outline-color:#f7f1e6}
@media (max-width:760px){.close-dusk .close-foot a{color:#f7f1e6}}
/* the close fits one screen: its height is the window's; the wordmark shrinks to the room left between the question
   and the footer links, its foot always above them. --ch = the screen in page units (--vf, from assets/page-zoom.js). */
.close-dusk{--ch:max(600px,calc(100vh * var(--vf,1)));height:var(--ch)}
@supports (height:100svh){.close-dusk{--ch:max(600px,calc(100svh * var(--vf,1)))}}
@media (min-width:761px){
 .close-dusk{--wm:min(1400px,calc(calc(100vw * var(--vf,1)) - 80px),calc((var(--ch) - 400px) * 1.683))}
 .close-dusk .close-copy{top:calc(var(--nav-h,80px) + clamp(20px,calc(var(--ch) * .04),48px))}
 .close-dusk .close-mark{top:auto;bottom:64px}}
@media (max-width:760px){
 .close-dusk{--ch:max(620px,calc(100vh * var(--vf,1)));--wm:min(350px,calc(calc(100vw * var(--vf,1)) - 40px),calc((var(--ch) - 470px) * 1.683))}
 @supports (height:100svh){.close-dusk{--ch:max(620px,calc(100svh * var(--vf,1)))}}
 .close-dusk .close-copy{top:calc(var(--nav-h,64px) + clamp(14px,calc(var(--ch) * .03),28px))}
 .close-dusk .close-mark{top:auto;bottom:92px}}
