/* Home management: the dark side of the brand. Night field, deep green panels, cream text, gold-hi lines,
   one copper light at a time. Tokens (--gold-hi --copper --cream --deep, .pillar-home roles) come from site.css.
   v3.1: the front page is a short set of intros. Hero on a person, one evening, private, summer away, one everyday
   band, two teasers (proof, about), then the closer with the knife. The steps and the questions live on How it works. */

.hm-page main{background:var(--night);color:var(--cream)}
.hm-page main .section{background:var(--night)}

/* ---------- page head: it opens on a person (the dad saying goodnight). The photo sits right of the words; the night
   field and a dark gradient on its left edge keep the h1 and lede readable, and the dad stays clear on the right. ---------- */
.pillar-home .phead{background:var(--night)}
.hm-head{min-height:min(84vh,860px);min-height:min(84svh,860px)}
.hm-head__photo{position:absolute;top:0;bottom:0;right:0;left:clamp(0px,34vw,760px);margin:0;pointer-events:none;z-index:0}
.hm-head__photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:20% 38%}
.hm-head__photo::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,var(--night) 0,rgba(17,28,26,.78) 9%,rgba(17,28,26,.3) 22%,rgba(17,28,26,0) 34%),linear-gradient(180deg,rgba(17,28,26,.72) 0,rgba(17,28,26,0) calc(var(--nav-h) + 70px)),linear-gradient(0deg,var(--night) 0,rgba(17,28,26,.55) 10%,rgba(17,28,26,0) 30%)}
.js .hm-head__photo{animation:phead-art .6s ease both}
html.still .hm-head__photo{animation:none}
/* v3.2 (Grant, Oct 17: the opening screens, "the symmetry of what it's saying should be cleaner"): the same calm block
   as the business hero. One column whose width IS the H1's longest line; the rule runs that full width and the lede,
   actions and note fill the same measure. One spacing scale (s1 16 / s2 28 / s3 44): s2 between the message pieces, s3
   before the actions, s1 to the quiet two-line note. The head is shorter than the screen, so the block sits in its true middle. */
.hm-head{--h-s1:16px;--h-s2:28px;--h-s3:44px;align-items:center}
.hm-head .phead__in{padding-top:calc(var(--nav-h) + 6vh);padding-bottom:6vh}
.hm-head .phead__copy{width:fit-content}
.hm-head .phead__copy>:not(h1){box-sizing:border-box;width:0;min-width:100%}
.hm-head .eyebrow{color:var(--gold-hi);letter-spacing:.2em;line-height:1;margin:0 0 var(--h-s2)}
.hm-head .h1{margin:0}
.hm-head .rule{background:var(--gold-hi);opacity:.85;margin:var(--h-s2) 0 0}
.hm-head .lede{color:var(--cream);max-width:none;margin:var(--h-s2) 0 0;text-wrap:pretty}
.hm-head .hm-head__go{margin-top:var(--h-s3)}
.hm-head__fine{display:grid;justify-items:start;margin-top:var(--h-s1)}
.hm-head__free,.hm-head__other{font-size:16px;line-height:24px;font-weight:500;color:rgba(242,239,232,.82)}
.hm-head__free{margin:0;text-wrap:pretty}
.hm-head__other{display:inline-block;min-height:44px;padding:10px 0;margin:-10px 0;text-decoration:none}
.hm-head__other span{font-weight:700;color:var(--cream);white-space:nowrap;border-bottom:2px solid var(--gold-hi);padding-bottom:1px;transition:color var(--t-micro) ease,border-color var(--t-micro) ease}
.hm-head__other:hover span{color:var(--gold-hi)}
@media (min-width:901px) and (max-height:860px){.hm-head{--h-s1:12px;--h-s2:20px;--h-s3:32px}}

/* ---------- shared bits ---------- */
.hm-h2{color:var(--cream);max-width:18ch}
.hm-h3{color:var(--cream);margin:0 0 10px}
.hm-body{font-size:18px;line-height:1.65;color:rgba(242,239,232,.86);max-width:58ch;margin:22px 0 0}
.hm-cap{font-size:14px;line-height:1.5;color:rgba(242,239,232,.66);margin:18px 0 0}
.hm-link{color:var(--cream)}
.hm-link span{border-color:var(--gold-hi)}

/* ---------- one evening: the signature. Four photo frames, the time and words on each. ----------
   Default (no JS, still mode, reduced motion, 900 and under): the four frames stacked, every word showing.
   901 and up with motion (.is-run, set by the JS): the stage pins and scroll crossfades frame to frame.
   The words sit on the side of each photo where nobody is: --l (5:40 stove, 6:40 washer), --r (6:15 backpack,
   10:30 dark wall). */
.hm-eve{position:relative;background:var(--night);padding:var(--section-y) 0}
.hm-eve__top{display:flex;align-items:flex-end;justify-content:space-between;gap:24px 48px;margin-bottom:clamp(24px,3.6vh,44px)}
.hm-eve__intro .kicker{margin-bottom:12px}
.hm-eve__intro .hm-h2{max-width:none}
.hm-eve__rail{display:none}
.hm-eve__frames{list-style:none;margin:0;padding:0;display:grid;gap:clamp(18px,2.6vw,36px)}
.hm-eve__f{position:relative;overflow:hidden;border-radius:clamp(18px,2vw,28px);aspect-ratio:2/1;background:var(--deep)}
.hm-eve__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform-origin:60% 50%}
/* the night scrim on the words' side only, readable on any frame */
.hm-eve__f::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(17,28,26,.9) 0,rgba(17,28,26,.6) 30%,rgba(17,28,26,0) 52%),linear-gradient(0deg,rgba(17,28,26,.55) 0,rgba(17,28,26,0) 40%);box-shadow:inset 0 0 0 1px rgba(228,184,105,.22);border-radius:inherit}
.hm-eve__f--r::after{background:linear-gradient(270deg,rgba(17,28,26,.9) 0,rgba(17,28,26,.6) 30%,rgba(17,28,26,0) 52%),linear-gradient(0deg,rgba(17,28,26,.55) 0,rgba(17,28,26,0) 40%)}
.hm-eve__txt{position:absolute;z-index:1;left:0;bottom:0;box-sizing:border-box;padding:clamp(24px,3vw,56px);max-width:min(460px,31%)}
.hm-eve__f--r .hm-eve__txt{left:auto;right:0}
/* the slow zoom grows away from the words, so nobody drifts under them */
.hm-eve__f--l .hm-eve__img{transform-origin:15% 50%}
.hm-eve__f--r .hm-eve__img{transform-origin:85% 50%}
/* wide frames crop top and bottom: keep the mom's head (5:40) and both faces (6:40) in the frame */
.hm-eve__f:nth-child(1) .hm-eve__img{object-position:50% 25%}
.hm-eve__f:nth-child(3) .hm-eve__img{object-position:50% 6%;transform-origin:15% 15%}
.hm-eve__t{margin:0 0 14px;font-family:var(--f-display);font-weight:700;font-size:clamp(44px,4.2vw,76px);line-height:1;letter-spacing:-.02em;color:var(--cream);font-variant-numeric:tabular-nums}
.hm-eve__t span{font-size:.34em;letter-spacing:.14em;color:var(--gold-hi);vertical-align:.95em;margin-left:6px}
.hm-eve__h{margin:0;color:var(--cream);font-size:clamp(22px,2vw,32px);line-height:1.14;letter-spacing:-.018em;text-wrap:balance}
.hm-eve__p{margin:14px 0 0;font-size:17px;line-height:1.55;color:rgba(242,239,232,.92);max-width:44ch}
.hm-eve__cap{margin-top:18px}

@media (min-width:901px){
  /* the run: a tall track and a sticky stage; 4 frames over 3 screens of scroll */
  html.js:not(.still) .hm-eve.is-run{padding:0}
  html.js:not(.still) .hm-eve.is-run .hm-eve__track{height:400vh}
  html.js:not(.still) .hm-eve.is-run .hm-eve__stage{position:sticky;top:0;height:100vh;box-sizing:border-box;padding:calc(var(--nav-h) + clamp(16px,3vh,36px)) 0 clamp(16px,3vh,32px);display:flex}
  html.js:not(.still) .hm-eve.is-run .hm-eve__wrap{width:100%;display:flex;flex-direction:column;min-height:0}
  html.js:not(.still) .hm-eve.is-run .hm-eve__frames{position:relative;flex:1;min-height:0;display:block}
  html.js:not(.still) .hm-eve.is-run .hm-eve__f{position:absolute;inset:0;aspect-ratio:auto;opacity:0;transition:opacity 1.1s ease}
  html.js:not(.still) .hm-eve.is-run .hm-eve__f.is-on{opacity:1}
  html.js:not(.still) .hm-eve.is-run .hm-eve__img{transform:scale(calc(1.07 - .07 * var(--k,0)));will-change:transform}
  html.js:not(.still) .hm-eve.is-run .hm-eve__txt>*{transition:opacity .8s ease,transform .9s var(--ease)}
  html.js:not(.still) .hm-eve.is-run .hm-eve__f.is-on .hm-eve__t{transition-delay:.25s}
  html.js:not(.still) .hm-eve.is-run .hm-eve__f.is-on .hm-eve__h{transition-delay:.35s}
  html.js:not(.still) .hm-eve.is-run .hm-eve__f.is-on .hm-eve__p{transition-delay:.45s}
  html.js:not(.still) .hm-eve.is-run .hm-eve__f:not(.is-on) .hm-eve__txt>*{opacity:0;transform:translateY(18px)}
  html.js:not(.still) .hm-eve.is-run .hm-eve__cap{margin-top:12px}
  /* the rail: four times, the one you are on in gold, a hairline that fills as the evening goes */
  html.js:not(.still) .hm-eve.is-run .hm-eve__rail{position:relative;display:flex;gap:clamp(18px,2.4vw,40px);padding-bottom:14px;flex:none}
  .hm-eve__rail::before,.hm-eve__rail::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:rgba(228,184,105,.26)}
  .hm-eve__rail::after{background:var(--gold-hi);transform-origin:0 50%;transform:scaleX(var(--p,0))}
  .hm-eve__dot{font-family:var(--f-display);font-weight:600;font-size:15px;letter-spacing:.04em;color:rgba(242,239,232,.5);font-variant-numeric:tabular-nums;white-space:nowrap;transition:color .5s ease}
  .hm-eve__dot.is-on{color:var(--gold-hi)}
}

/* ---------- private by design: a full width deep green band, the photo beside the words ---------- */
.hm-private{position:relative;background:var(--deep);border-block:1px solid rgba(228,184,105,.26)}
.hm-private__band{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;min-height:clamp(520px,80vh,860px)}
.hm-private__pic{position:relative;margin:0;overflow:hidden}
.hm-private__pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:22% 45%}
.hm-private__pic::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(18,51,42,0) 62%,rgba(18,51,42,.9) 100%);pointer-events:none}
.hm-private__copy{align-self:center;box-sizing:border-box;padding:var(--section-y) max(var(--gutter),calc((100vw - var(--wrap-wide)) / 2 + var(--gutter))) var(--section-y) clamp(40px,6vw,120px)}
.hm-private .hm-h2{font-size:clamp(40px,4.8vw,84px);line-height:1.02;max-width:13ch}
.hm-private .hm-body{font-size:clamp(18px,1.35vw,21px);max-width:46ch}
.hm-private .hm-body+.hm-body{color:var(--cream);font-weight:500}
.hm-private__go{margin-top:26px}

/* ---------- summer away: the deep green panel, the alert log over the photo (compact) ---------- */
.section.hm-away{padding-block:clamp(64px,10vh,120px)}
.hm-away__panel{background:var(--deep);border-radius:28px;padding:clamp(28px,4vw,64px);display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:clamp(28px,4.4vw,80px);align-items:center;box-shadow:inset 0 0 0 1px rgba(228,184,105,.22)}
.hm-away__pic{--hang:clamp(0px,4vw,56px);position:relative;margin:0 0 0 var(--hang)}
.hm-away__pic img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;object-position:70% 50%;border-radius:20px;box-shadow:inset 0 0 0 1px rgba(228,184,105,.22)}
.hm-away__card{position:absolute;left:calc(-1 * var(--hang));bottom:-28px;width:min(320px,62%);box-sizing:border-box;padding:22px 24px 22px 20px;border-radius:16px;background:rgba(17,28,26,.84);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:inset 0 0 0 1px rgba(228,184,105,.3),0 18px 40px rgba(0,0,0,.35)}
.hm-dlog{list-style:none;margin:0;padding:0;border-left:1px solid rgba(228,184,105,.45)}
.hm-dlog li{position:relative;padding:0 0 18px 22px}
.hm-dlog li:last-child{padding-bottom:0}
.hm-dlog li::before{content:"";position:absolute;left:-5px;top:7px;width:9px;height:9px;border-radius:50%;background:var(--gold-hi)}
.hm-dlog__t{display:block;font-variant-numeric:tabular-nums;font-family:var(--f-display);font-weight:600;font-size:14px;letter-spacing:.04em;color:var(--gold-hi);margin-bottom:3px}
.hm-dlog__x{display:block;font-size:17px;line-height:1.45;color:var(--cream)}
.hm-away__log .hm-cap{margin-top:46px;padding-left:var(--hang,0px)}

/* ---------- everyday: one slim band. The line on the left, the short list and the link on the right. ---------- */
.hm-every{background:var(--night);padding:0 0 clamp(56px,9vh,104px)}
.hm-every__band{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"kt kt" "h p" "h go";gap:0 clamp(32px,6vw,112px);align-items:end;padding:clamp(36px,6vh,60px) 0;border-block:1px solid rgba(228,184,105,.3)}
.hm-every__band>.kt{grid-area:kt}
.hm-every__h{grid-area:h;margin:0;max-width:16ch;font-size:clamp(30px,3vw,48px);line-height:1.08}
.hm-every__p{grid-area:p;margin:0;font-size:clamp(18px,1.35vw,21px);line-height:1.6;color:rgba(242,239,232,.88);max-width:46ch}
.hm-every__go{grid-area:go;justify-self:start;margin-top:14px}

/* ---------- two intros: proof (the flyer photo small beside it) and about us ---------- */
.section.hm-intros{padding-top:0}
.hm-intros__grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:clamp(36px,6vw,112px);align-items:start}
.hm-tease .kicker{margin-bottom:12px}
.hm-tease .hm-h2{margin:0;font-size:clamp(30px,3vw,48px);line-height:1.08}
.hm-tease .hm-body{margin-top:18px;max-width:46ch}
.hm-tease .hm-link{margin-top:14px}
.hm-tease--proof{display:grid;grid-template-columns:clamp(150px,15vw,240px) minmax(0,1fr);gap:clamp(24px,3vw,48px);align-items:start}
.hm-tease__pic{margin:0;border-radius:16px;overflow:hidden;aspect-ratio:3/4;background:var(--deep);box-shadow:inset 0 0 0 1px rgba(228,184,105,.22),0 18px 40px rgba(0,0,0,.3);transform:rotate(-2deg)}
.hm-tease__pic img{display:block;width:100%;height:100%;object-fit:cover;object-position:40% 35%}
.hm-tease--about{padding-left:clamp(28px,4vw,72px);border-left:1px solid rgba(228,184,105,.3)}
html.still .hm-tease__pic{transform:rotate(-2deg)!important}

/* ---------- closer (contract section 3): the H2, the words and the actions on the left; the knife on the right, top
   aligned with the H2. 900 and under: H2, knife, words, actions. Depth on both sides: the circuit art across the whole
   band at .18 and a deep green glow left and right, so it is never a flat block. ---------- */
.hm-closer-sec{position:relative;overflow:hidden;padding-bottom:clamp(88px,14vh,150px)}
.hm-closer-sec::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(48% 70% at 12% 62%,rgba(18,51,42,.85),rgba(18,51,42,0) 72%),radial-gradient(55% 75% at 80% 55%,rgba(18,51,42,.95),rgba(18,51,42,0) 70%),radial-gradient(30% 40% at 80% 60%,rgba(228,184,105,.1),rgba(228,184,105,0) 70%)}
.hm-closer__art{position:absolute;inset:0;pointer-events:none;opacity:.18;-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 22%,#000 82%,transparent 100%);mask-image:linear-gradient(180deg,transparent 0,#000 22%,#000 82%,transparent 100%)}
.hm-closer__art svg{display:block;width:100%;height:100%}
.hm-closer__wrap{position:relative;z-index:1}
.hm-closer{border-top-color:rgba(228,184,105,.3)}
.hm-closer.closer{grid-template-columns:minmax(0,1fr) min(560px,48%);grid-template-areas:"h k" "go k";grid-template-rows:auto 1fr;align-items:start;gap:28px clamp(32px,6vw,112px)}
.hm-closer>.h2{grid-area:h;max-width:14ch;margin:0}
.hm-closer>.closer__go{grid-area:go}
.hm-closer>[data-knife]{grid-area:k;width:min(100%,560px);justify-self:end;align-self:start;margin:0}
.hm-closer .closer__go p{color:rgba(242,239,232,.9)}
@media (max-width:900px){
  .hm-closer.closer{grid-template-columns:minmax(0,1fr);grid-template-areas:"h" "k" "go";grid-template-rows:auto}
  .hm-closer>[data-knife]{justify-self:center}
}

/* ---------- 900 and under: everything stacks; the evening frames stack too ---------- */
@media (max-width:900px){
  /* the photo becomes a band at the top, fading into the night under the words */
  .hm-head{min-height:auto}
  .hm-head__photo{left:0;bottom:auto;height:calc(var(--nav-h) + 44svh)}
  .hm-head__photo img{object-position:36% 30%}
  .hm-head__photo::after{background:linear-gradient(180deg,rgba(17,28,26,.6) 0,rgba(17,28,26,0) calc(var(--nav-h) + 40px)),linear-gradient(0deg,var(--night) 0,rgba(17,28,26,.6) 22%,rgba(17,28,26,0) 48%)}
  .hm-head .phead__in{padding-top:calc(var(--nav-h) + 44svh - 36px);padding-bottom:48px}
  /* v3.2: the same block and scale as the business hero on phones, one size down (12 / 20 / 28) */
  .hm-head{--h-s1:12px;--h-s2:20px;--h-s3:28px}
  /* the H1 lines stay whole on phones too (8.6vw is about 83 percent of the screen for "A house that tucks"), so the
     rule and the lede take the headline's width, as on the business side */
  .hm-head .h1.h1--flow{font-size:clamp(30px,8.6vw,40px)}
  .hm-head .h1 .tl,.hm-head .h1 .tl>span{display:block;white-space:nowrap}
  .hm-head__free,.hm-head__other{font-size:15px;line-height:22px}
  .hm-head__free{text-wrap:balance}
  .hm-head__other{padding:11px 0;margin:-11px 0}
  .hm-eve__top{display:block}
  .hm-eve__f{aspect-ratio:4/3}
  .hm-eve__txt,.hm-eve__f--r .hm-eve__txt{left:0;right:auto;max-width:none}
  .hm-eve__f::after,.hm-eve__f--r::after{background:linear-gradient(0deg,rgba(17,28,26,.92) 0,rgba(17,28,26,.7) 40%,rgba(17,28,26,0) 72%)}
  .hm-away__panel{grid-template-columns:1fr;border-radius:22px}
  .hm-private__band{grid-template-columns:1fr;min-height:0}
  .hm-private__pic{aspect-ratio:3/2}
  .hm-private__pic::after{background:linear-gradient(0deg,rgba(18,51,42,.9) 0,rgba(18,51,42,0) 40%)}
  .hm-private__copy{padding:clamp(36px,7vw,64px) var(--gutter) clamp(56px,10vw,88px)}
  .hm-every__band{grid-template-columns:1fr;grid-template-areas:"kt" "h" "p" "go";gap:0}
  .hm-every__p{margin-top:18px}
  .hm-intros__grid{grid-template-columns:1fr}
  .hm-tease--about{padding:clamp(32px,6vw,48px) 0 0;border-left:0;border-top:1px solid rgba(228,184,105,.3)}
}
/* phones: the photo on top, the words under it on the deep panel, so the people always show */
@media (max-width:560px){
  .hm-eve__f{aspect-ratio:auto;min-height:440px;display:flex;flex-direction:column}
  .hm-eve__img{position:relative;inset:auto;flex:none;height:260px}
  .hm-eve__f:nth-child(1) .hm-eve__img{object-position:72% 50%}
  .hm-eve__f::after,.hm-eve__f--r::after{background:linear-gradient(180deg,rgba(17,28,26,0) 0,rgba(17,28,26,0) 190px,var(--deep) 260px)}
  .hm-eve__txt,.hm-eve__f--r .hm-eve__txt{position:relative;padding:0 22px 26px;margin-top:-34px}
  .hm-eve__t{font-size:44px;margin-bottom:12px}
  .hm-eve__p{font-size:17px}
  .hm-away__panel{padding:28px 18px}
  .hm-away__pic{--hang:0px}
  .hm-away__pic img{border-radius:16px}
  .hm-away__card{position:relative;left:auto;bottom:auto;width:auto;margin:-36px 12px 0}
  .hm-away__log .hm-cap{margin-top:16px}
  .hm-tease--proof{grid-template-columns:120px minmax(0,1fr);gap:20px}
}
/* the smallest phones: "summer." would sit alone on the Summer away heading's last line */
@media (max-width:380px){
  .hm-away .hm-h2{font-size:26px}
}
