/* Whalyon home, documentary art direction. Uses art.css (ocean, whale, proof card, lights) and these page rules.
   Motion is progressive: html.hm-on is set by home.js unless prefers-reduced-motion or mourning; without it every
   frame below is the composed still. (The earlier cartoon version: _src/_old_home_cartoon.css.txt.) */

/* header over the dawn sea */
body:has(.hm-hero) .wp-header{background:rgba(8,13,26,.9);border-bottom-color:rgba(255,255,255,.08);--logo:#F3EFE6;--ink:#F3EFE6;color:#E8EDF2}
body:has(.hm-hero) .wp-nav a,body:has(.hm-hero) .wp-fam summary{color:#E3E9EF}
body:has(.hm-hero) .wp-burger summary{color:#F3EFE6}
.hm-hero{margin-top:-73px;padding-top:73px}

/* opening: night lifts, the whale's back breaks the horizon, the title arrives word by word */
.hm-night{position:absolute;inset:0;z-index:1;pointer-events:none;background:#03060D;opacity:0}
@keyframes hm-night{0%,10%{opacity:.92}100%{opacity:0}}
@keyframes hm-rise{from{translate:0 26px}}
@keyframes hm-word{from{translate:0 .4em}}
@keyframes hm-surf{0%{opacity:0;translate:0 40%}100%{opacity:.95;translate:0 0}}
.hm-on .hm-night{animation:hm-night var(--wl-motion-d3400) var(--ease-ink) both}
.hm-on .hm-surface{animation:hm-surf var(--wl-motion-d2400) var(--ease-out) var(--wl-motion-d2200) both}
.hm-on .hm-copy .hm-w{display:inline-block;animation:hm-word var(--wl-motion-d900) var(--ease-out) calc(var(--wl-motion-d1600) + var(--k,0) * var(--wl-motion-d100)) both}
.hm-on .hm-copy > :not(h1){animation:hm-rise var(--wl-motion-d900) var(--ease-out) var(--wl-motion-d2400) both}
.hm-on .hm-copy > .ar-lead{animation-delay:var(--wl-motion-d2550)}.hm-on .hm-copy > .ar-cta{animation-delay:var(--wl-motion-d2700)}.hm-on .hm-copy > .ar-meta{animation-delay:var(--wl-motion-d2850)}
.hm-on .hm-proof{animation:hm-rise var(--wl-motion-d1100) var(--ease-out) var(--wl-motion-d3000) both}
.hm-on .hm-hero .ar-hero__in{transform:translateY(calc(var(--p,0) * -60px))}

/* shared section grammar */
.hm-wrap{width:min(1240px,100% - 40px);margin-inline:auto}
.hm-sec{padding:clamp(64px,9vw,140px) 0}
.hm-paper{background:#F4F0E8;color:#1B1E26}
.hm-paper--2{background:#ECE6DB}
.hm-head{display:grid;gap:14px;max-width:760px;margin-bottom:clamp(32px,4vw,60px)}
.hm-head--center{margin-inline:auto;text-align:center;justify-items:center}
.hm-h2{font-family:var(--f-head);font-weight:300;font-size:clamp(32px,4vw,64px);line-height:1.12;letter-spacing:-.01em}
.hm-h2 b{font-weight:900}
.hm-sub{font-size:clamp(16px,1.15vw,19px);line-height:1.95;color:#3D3A42;max-width:44rem}
.ar-dark .hm-sub{color:#D3DCE4}
.hm-row{display:flex;justify-content:space-between;align-items:end;gap:20px;flex-wrap:wrap;margin-bottom:clamp(28px,3vw,48px)}
.hm-note{margin-top:20px;font-size:14px;color:#4A4650;display:flex;gap:8px;align-items:center}

/* five doors */
.hm-doors{padding-top:clamp(64px,8vw,120px)}
.hm-doors .hm-head{margin-bottom:32px}
.hm-door{transition:transform var(--wl-motion-d500) var(--ease-out)}
.hm-door:hover,.hm-door:focus-visible{transform:translateY(-6px)}
.hm-door__n{display:inline-block;margin-top:12px;font-size:12.5px;font-weight:700;color:#F3EFE6;padding:4px 10px;border-radius:999px;background:rgba(255,255,255,.14);justify-self:start}

/* problem */
.hm-probs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(18px,2vw,32px)}
.hm-prob{border-top:2px solid #1B1E26;padding-top:18px}
.hm-prob b{display:block;font-family:var(--f-head);font-size:clamp(20px,1.6vw,26px);font-weight:900;margin-bottom:10px}
.hm-prob p{font-size:16px;line-height:1.95;color:#3D3A42}

/* how it works, with real interface fragments */
.hm-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(16px,2vw,28px);align-items:start}
.hm-steps li{display:grid;gap:10px}
.hm-step{font-family:var(--f-head);font-weight:900;font-size:44px;line-height:1;color:#2C4A8A}
.hm-steps h3{font-family:var(--f-head);font-size:20px;font-weight:900}
.hm-steps p{font-size:15px;line-height:1.9;color:#3D3A42;min-height:3.8em}
.hm-frag{margin-top:6px}
.hm-ui{background:#FBF9F5;border-radius:16px;padding:14px;box-shadow:0 0 0 1px #DDD5C7,0 24px 40px -32px rgba(20,20,30,.5)}
.hm-ui .vn-likert__opts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.hm-on .hm-steps:not(.is-in) li{opacity:0;translate:0 24px}
.hm-on .hm-steps li{transition:opacity var(--wl-motion-d700) var(--ease-out) calc(var(--i,0) * var(--wl-motion-d140)),translate var(--wl-motion-d800) var(--ease-out) calc(var(--i,0) * var(--wl-motion-d140))}

/* method under the surface */
.hm-depth .ar-depth__in{gap:26px}

/* trust */
.hm-trusts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(16px,2vw,28px)}
.hm-trust{display:grid;gap:10px;align-content:start}
.hm-trust__ic{width:46px;height:46px;display:grid;place-items:center;border-radius:12px;background:#1B1E26;color:#F4F0E8}
.hm-trust b{font-family:var(--f-head);font-size:20px;font-weight:900}
.hm-trust p{font-size:15px;line-height:1.9;color:#3D3A42}
.hm-crisis{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;margin-top:40px;padding:16px 20px;border-radius:14px;background:#E3ECE5;color:#1E3328;font-size:15px}
.hm-crisis a{margin-inline-start:auto;font-weight:800;color:#1E3328}

/* plans */
.hm-ladder{margin:0 0 26px;padding:14px 18px;border-radius:14px;background:#E3DCCF;font-size:15px;line-height:1.9;color:#2B2A2E;max-width:62rem}
.hm-plans{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,2vw,28px);margin-bottom:16px}
.hm-plan{display:grid;gap:10px;align-content:start;padding:24px;border-radius:20px;background:#FBF9F5;box-shadow:0 0 0 1px #DDD5C7;color:#1B1E26}
.hm-plan__h{display:flex;align-items:center;gap:12px}.hm-plan__h b{display:block;font-family:var(--f-head);font-size:22px;font-weight:900}
.hm-plan__h small{color:#55505A;font-size:13px}
.hm-plan p{font-size:14.5px;line-height:1.85;color:#3D3A42}
.hm-full{font-size:13px;color:#55505A}.hm-full .wp-price b{font-size:13px;font-weight:700}

/* night close */
.hm-close{position:relative;min-height:min(80svh,720px);display:grid;align-items:center;overflow:hidden;isolation:isolate}
.hm-close::after{content:"";position:absolute;inset:0;z-index:0;background:linear-gradient(90deg,rgba(3,6,13,.15),rgba(3,6,13,.75))}
.hm-close__in{position:relative;z-index:2;width:min(1240px,100% - 40px);margin-inline:auto;display:grid;gap:16px;justify-items:start}
.hm-beam{position:absolute;z-index:1;top:30%;inset-inline-end:12%;width:70%;height:120px;transform-origin:0 50%;rotate:12deg;pointer-events:none;
  background:linear-gradient(270deg,rgba(247,222,142,0),rgba(247,222,142,.28));clip-path:polygon(0 45%,100% 0,100% 100%,0 55%)}
@keyframes hm-sweep{0%,100%{rotate:6deg}50%{rotate:18deg}}
.hm-on .hm-beam{animation:hm-sweep var(--wl-motion-d12000) ease-in-out infinite}

/* below the fold renders lazily (phone budget) */
.cn-lazy{content-visibility:auto;contain-intrinsic-size:auto 900px}

/* mourning */
.hm-mourn{display:flex;gap:12px;align-items:center;justify-content:center;flex-wrap:wrap;padding:10px 16px;background:#22252B;color:#EEEAE2;font-size:14px;text-align:center}
[data-mood="mourning"] .ar-ocean,[data-mood="mourning"] .ar-light,[data-mood="mourning"] .ar-whale,[data-mood="mourning"] .ar-surface{filter:grayscale(.85)}
[data-mood="mourning"] .hm-beam{display:none}

@media (max-width:1000px){
  .hm-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hm-trusts{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:700px){
  .hm-probs,.hm-steps,.hm-trusts,.hm-plans{grid-template-columns:minmax(0,1fr)}
  .hm-steps p{min-height:0}
  .hm-crisis a{margin-inline-start:0}
}
body:has(.hm-hero) .wp-header__act{--accent:#F3EFE6;--accent-ink:#0B1424}
body:has(.hm-hero) .wp-fam__menu a,body:has(.hm-hero) .wp-burger__menu a{color:#1B1E26}
