/*
 * css/ml-home-hero.1.0.5.css -- Home only (main#content.ml-home), v1.0.5, kit M2-S1164-COPPERBUILD, 2026-11-24
 * (1.0.5: Mr. Marc 2026-11-24, "Option A on the words, current button kept". Only the colors of the "brain patterns" foil changed: text color #A76F5D, the
 *  base gradient and the shine band re-set to the lighter copper (shine #E3BFB3), so the phrase reads 4.52 to 7.32 on the navy #05141B. Size, font, sweep and clip
 *  are as in 1.0.4. No button rule is in this sheet; every button keeps its own colors.)
 * (1.0.1, kit M2-S1164-HOMEBUILD: the foil phrase plays its sweep once when first on screen and no longer on hover, since it is not a link.)
 * (1.0.2: Mr. Marc 2026-11-23, "brain patterns does not look big enough". The italic serif has a much lower lowercase than the
 *  headline face, 0.77 of it at the same font size. The phrase is now set at 1.3em, which brings its lowercase level with the
 *  headline words. Its line height of .7 keeps the bigger phrase from pushing the headline lines apart; the padding, taken back by equal negative
 *  margins, only widens the box the foil is painted in so no letter top or tail is cut.)
 * (1.0.3 and 1.0.4: Mr. Marc 2026-11-23, "the testing site is showing the next section under the logo bar its not filling my viewport".
 *  Signed out, at 100% zoom, on a computer, the hero and logo bar already ended at the window bottom at every window size. Three cases did not:
 *  a. signed in, WordPress puts its toolbar (32 px, 46 px up to 782 px wide) above the page and the fill did not take it off, so the
 *     logo bar sat below the window. The toolbar's height, as WordPress itself publishes it, is now taken off the fill and off the
 *     photo's height limit (--ml-hh-ab; 0 when there is no toolbar);
 *  b. at a browser zoom other than 100% the window height is a fraction of a pixel, the logo bar's own script
 *     (template-parts/ml-proof.php) read that as the bar being cut by the window edge and pushed the whole bar, its full height,
 *     below the window. A push of the full bar height is treated as that false alarm and ignored on Home: mod(push, bar height).
 *     A real cut is pushed whole as before; the one real cut that also asks for the full height has under 1 px of the bar showing
 *     and is left alone;
 *  c. (1.0.4) on phones and tablets the fill used the window height with the browser's bars showing (svh), so with the bars tucked
 *     away the next section showed under the logo bar. It now follows the window as it is (dvh), the unit css/ml-proof.1.2.1.css
 *     uses for every other page. To go back: delete the dvh min-height from the hero rule.)
 * Mr. Marc's five Home items, approved 2026-11-23 (ledger line in mindlab/working/M1-S1147/queue-log-M2.md):
 *   2. the hero and the logo bar fill the whole first screen on every size; her photo stands on the logo bar;
 *   3. her photo shows on phones and upright tablets, under the button, with the words spaced out above it;
 *   4. "brain patterns" in the headline is set in the tagline's italic serif and wears the buttons' copper foil
 *      and 2 s sweep (the surface gradient and the sweep band of css/ml-core-parity.1.3.8.css section 1.3.0,
 *      word for word; nothing new is designed);
 *   1. the four lines moved out of the hero are styled where they now sit (About card, How it works).
 * Loaded by core-pages/ml-core-home.php after the parity sheet. The id in every selector outranks the
 * hero rules printed in the head by mu-plugins/mindlab-hero-height-cap.php, which stay as they are for
 * every other page. Font sizes: the foil phrase is 1.3em of the headline (1.0.2); the credentials line uses the kit token
 * the hero's proof line already used.
 */

/* ---- 2. Fill: hero + logo bar = one screen. 31 px is the book bar above the header (40 px from 2400 px wide),
        55 px the logo bar (40 px up to 1024 px wide), as css/ml-proof.1.2.1.css has them. ---- */
main#content.ml-home{--ml-hh-top:31px;--ml-hh-bar:55px;--ml-hh-ab:var(--wp-admin--admin-bar--height,0px)}
@media (max-width:1024px){main#content.ml-home{--ml-hh-bar:40px}}
@media (min-width:2400px){main#content.ml-home{--ml-hh-top:40px}}
html body main#content.ml-home section.ml-hero{display:flex;flex-direction:column;justify-content:flex-start;padding-bottom:0;min-height:calc(100vh - var(--ml-hh-top) - var(--ml-hh-bar) - var(--ml-hh-ab,0px));min-height:calc(100svh - var(--ml-hh-top) - var(--ml-hh-bar) - var(--ml-hh-ab,0px));min-height:calc(100dvh - var(--ml-hh-top) - var(--ml-hh-bar) - var(--ml-hh-ab,0px))}
html body main#content.ml-home section.ml-hero > div.ml-hero__grid{flex:1 1 auto;width:100%;max-width:none;margin-top:var(--ml-fit,0px);align-items:stretch}
html body main#content.ml-home section.ml-hero div.ml-hero__text{align-self:center;padding-bottom:var(--ml-sp-6,24px)}
html body main#content.ml-home section.ml-hero figure.ml-hero__portrait{align-self:end;justify-self:center;margin:0}
html body main#content.ml-home section.ml-hero figure.ml-hero__portrait img{display:block;width:auto;height:auto;max-width:100%;max-height:min(900px,calc(100vh - var(--ml-hh-top) - var(--ml-hh-bar) - var(--ml-hh-ab,0px) - var(--ml-core-clear,88px) - var(--ml-sp-6,24px)));max-height:min(900px,calc(100svh - var(--ml-hh-top) - var(--ml-hh-bar) - var(--ml-hh-ab,0px) - var(--ml-core-clear,88px) - var(--ml-sp-6,24px)))}
@supports (margin-top:mod(1px,2px)){html body main#content.ml-home section.ml-hero > div.ml-hero__grid{margin-top:mod(var(--ml-fit,0px),var(--ml-hh-bar))}}

/* ---- 4. The headline: line breaks set by hand, and "brain patterns" in italic copper foil. ---- */
html body main#content.ml-home section.ml-hero h2.ml-display{max-width:none;text-wrap:wrap}
html body main#content.ml-home section.ml-hero h2.ml-display br.ml-br--p{display:none}
html body main#content.ml-home section.ml-hero h2.ml-display span.ml-foil-text{display:inline-block;white-space:nowrap;font-family:var(--e-global-typography-secondary-font-family,"Cormorant Garamond"),Georgia,serif;font-style:var(--e-global-typography-secondary-font-style,italic);font-weight:var(--e-global-typography-secondary-font-weight,600);font-size:1.3em;line-height:.7;letter-spacing:0;padding:.14em .12em .34em .04em;margin:-.14em -.1em -.34em -.04em;color:#A76F5D}
@supports ((-webkit-background-clip:text) or (background-clip:text)){
html body main#content.ml-home section.ml-hero h2.ml-display span.ml-foil-text{background-color:transparent;background-image:linear-gradient(110deg,rgba(227,191,179,0) 0%,rgba(227,191,179,0.04) 12%,rgba(227,191,179,0.16) 24%,rgba(227,191,179,0.42) 34%,rgba(227,191,179,0.74) 42%,rgba(227,191,179,1) 50%,rgba(227,191,179,0.74) 58%,rgba(227,191,179,0.42) 66%,rgba(227,191,179,0.16) 76%,rgba(227,191,179,0.04) 88%,rgba(227,191,179,0) 100%),linear-gradient(180deg, #A76F5D 0%, #AC7463 10%, #B17A68 30%, #BF8878 41%, #CC9586 46%, #B77F6E 52%, #AC7463 60%, #A8705E 70%, #B07867 82%, #BB8474 90%, #A97260 100%);background-repeat:no-repeat,no-repeat;background-size:60% 100%,100% 100%;background-position:-187.5% 0,0 0;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent}
}
@keyframes ml-foil-text-sweep{from{background-position:-187.5% 0,0 0}to{background-position:292.5% 0,0 0}}
html body main#content.ml-home section.ml-hero h2.ml-display span.ml-foil-text.ml-foil-text--hello{animation:ml-foil-text-sweep 2s cubic-bezier(.37,0,.63,1) 1}
@media (prefers-reduced-motion:reduce){html body main#content.ml-home section.ml-hero h2.ml-display span.ml-foil-text{animation:none!important}}
@media (forced-colors:active){html body main#content.ml-home section.ml-hero h2.ml-display span.ml-foil-text{background-image:none;-webkit-text-fill-color:currentColor;color:CanvasText}}

/* The five-line set (the phone breaks) on phones, and beside the photo on screens too narrow for the three-line set. */
@media (max-width:599px) and (orientation:portrait),(min-width:769px) and (max-width:1099px) and (orientation:landscape) and (min-height:601px){
html body main#content.ml-home section.ml-hero h2.ml-display br.ml-br--d{display:none}
html body main#content.ml-home section.ml-hero h2.ml-display br.ml-br--p{display:inline}
}

/* ---- 3. Phones and upright tablets: the words spaced out, her photo under the button, standing on the logo bar.
        Screens too short to hold the photo (under 740 px tall on a phone, 600 px or less on anything) keep the words only. ---- */
@media (max-width:768px){
html body main#content.ml-home section.ml-hero div.ml-hero__text{gap:20px;padding-bottom:var(--ml-sp-4,16px)}
html body main#content.ml-home section.ml-hero div.ml-hero__id{margin-bottom:8px}
html body main#content.ml-home section.ml-hero div.ml-cta{margin-top:12px}
}
@media (max-width:768px) and (max-height:800px){
html body main#content.ml-home section.ml-hero div.ml-hero__text{gap:14px}
html body main#content.ml-home section.ml-hero div.ml-hero__id{margin-bottom:2px}
html body main#content.ml-home section.ml-hero div.ml-cta{margin-top:8px}
}
@media (max-width:768px) and (max-height:600px){
html body main#content.ml-home section.ml-hero div.ml-hero__text{gap:10px;padding-bottom:var(--ml-sp-2,8px)}
html body main#content.ml-home section.ml-hero div.ml-hero__id{margin-bottom:0}
html body main#content.ml-home section.ml-hero div.ml-cta{margin-top:4px}
}
@media (max-width:599px) and (min-height:740px),(min-width:600px) and (max-width:768px) and (min-height:601px),(min-width:769px) and (max-width:1100px) and (orientation:portrait){
html body main#content.ml-home section.ml-hero > div.ml-hero__grid{display:flex;flex-direction:column;gap:var(--ml-sp-6,24px)}
html body main#content.ml-home section.ml-hero div.ml-hero__text{align-self:stretch;flex:0 0 auto;padding-bottom:0}
html body main#content.ml-home section.ml-hero figure.ml-hero__portrait{display:block;position:relative;flex:1 1 150px;min-height:150px;width:100%;align-self:stretch}
html body main#content.ml-home section.ml-hero figure.ml-hero__portrait img{position:absolute;left:50%;bottom:0;transform:translateX(-50%);height:100%;width:auto;max-width:none;max-height:400px}
}
@media (min-width:600px) and (max-width:768px) and (min-height:601px),(min-width:769px) and (max-width:1100px) and (orientation:portrait){
html body main#content.ml-home section.ml-hero div.ml-hero__text{gap:20px}
html body main#content.ml-home section.ml-hero figure.ml-hero__portrait img{max-height:640px}
}

/* ---- 1. The four lines that left the hero, where they now sit. ---- */
.ml-core.ml-home .ml-about figcaption.ml-quote-band__by span.ml-about__cred{display:block;margin-top:var(--ml-sp-1,4px);font-size:var(--e-global-typography-35281c4-font-size,14px);font-weight:400;line-height:1.45;letter-spacing:0;color:var(--ml-white-soft,#FFFFFFDE)}
.ml-core.ml-home .ml-how ol.ml-steps li.ml-step p.ml-step__price{margin:0 0 var(--ml-sp-2,8px)}
.ml-core.ml-home .ml-about figcaption.ml-quote-band__by span.ml-about__sep{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ml-core.ml-home .ml-about figcaption.ml-quote-band__by span.ml-about__br{display:block}
.ml-core.ml-home .ml-how p.ml-how__access{max-width:62ch;margin:var(--ml-sp-8,32px) 0 0}
