/* Homepage and shared footer only. Keep existing page shell, fonts and approved photography. */
body[data-page="home"] { --home-section-gap:clamp(40px,5.2vw,80px); --hf-hair:rgba(160,182,200,.23); --hf-glass:linear-gradient(150deg,rgba(41,57,69,.74),rgba(22,33,43,.72)); }
body[data-page="home"] #main{min-width:0}
body[data-page="home"] .hero.hero--home { padding-block:clamp(0px,1vw,18px); }
body[data-page="home"] .hero--home .hero__copy{align-self:center}
body[data-page="home"] .hero.hero--home .hero__title {font-size:clamp(32px,4.4vw,68px); line-height:1.06;font-weight:400;letter-spacing:-.046em;max-width:16ch;text-wrap:balance}
body[data-page="home"] .hero--home .hero__lead{font-size:clamp(16px,1.35vw,20px);line-height:1.53;max-width:50ch;color:var(--text-secondary)}
body[data-page="home"] .hero--home .hero__figure{border-radius:5px}
body[data-page="home"] .hero--home .button,body[data-page="home"] .hf-start .button{border-radius:5px}
body[data-page="home"] #main :is(.hf-start,.hf-directions,.hf-stories,.hf-service,.steps--home) .section__title{font-size:clamp(26px,2.8vw,42px);line-height:1.13;letter-spacing:-.035em;font-weight:400;text-wrap:balance;margin:0}
body[data-page="home"] .hf-kicker,.hf-footer .motion-footer__nav-title{font-size:12px;font-weight:600;line-height:1.4;letter-spacing:.075em;text-transform:uppercase;color:#b4c2cc;margin:0 0 12px}
body[data-page="home"] .hf-kicker{display:flex;align-items:center;gap:10px}
body[data-page="home"] .hf-kicker::before{content:"";width:18px;height:2px;background:#e96e33}
body[data-page="home"] .hf-start{display:grid;grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr);align-items:center;gap:clamp(24px,4vw,64px);padding:clamp(20px,2.4vw,36px);border:1px solid var(--hf-hair);border-radius:5px;background:var(--hf-glass)}
body[data-page="home"] #main .hf-start .section__title{font-size:clamp(24px,2.2vw,32px)}
body[data-page="home"] .hf-start__intro p{margin:10px 0 0;font-size:15px;line-height:1.55;color:var(--text-secondary)}
body[data-page="home"] .hf-start .task-routes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}
body[data-page="home"] .hf-start .button{display:flex;align-items:center;justify-content:space-between;text-align:left;gap:8px;min-height:48px;width:100%;min-width:0;padding:10px 14px;border:1px solid var(--hf-hair);box-shadow:none;color:var(--text);background:#17232d;font-size:15px;line-height:1.35}
body[data-page="home"] .hf-start .button::after{content:"↗";color:#ef9b74}
body[data-page="home"] .hf-start .button:hover{background:#293b49}
body[data-page="home"] .hf-index-head{display:flex;align-items:end;justify-content:space-between;gap:12px}
body[data-page="home"] .hf-index-head .text-link{flex:none}
body[data-page="home"] #directions .direction-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:1fr;gap:12px}
body[data-page="home"] #directions .card-direction--home{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr auto;align-items:start;align-content:stretch;gap:12px;min-height:0;height:100%;border:1px solid var(--hf-hair);border-radius:5px;padding:clamp(16px,1.55vw,24px);box-shadow:none;background:var(--hf-glass);transition:background .16s,border-color .16s}
body[data-page="home"] #directions .card-direction--home:hover{background:#21313d;border-color:#8c9fac}
body[data-page="home"] #directions .card-direction__illustration{grid-column:1;grid-row:1;justify-self:start;align-self:start;width:82px;height:60px;object-fit:contain;object-position:left center}
body[data-page="home"] #directions .card-direction__body{display:grid;grid-column:1;grid-row:2;align-self:start;align-content:start;gap:8px}
body[data-page="home"] #directions .card-direction__title{grid-column:1;grid-row:auto;font-size:clamp(18px,1.55vw,23px);line-height:1.2;letter-spacing:-.02em;font-weight:500;overflow-wrap:break-word}
body[data-page="home"] #directions .card-direction__summary{grid-column:1;grid-row:auto;font-size:15px;line-height:1.45;color:var(--text-secondary)}
body[data-page="home"] #directions .card-direction__action{grid-column:1;grid-row:3;align-self:end;display:flex;align-items:center;justify-content:space-between;min-height:22px;width:100%;margin:0;padding-top:8px;border-top:1px solid var(--hf-hair);font-size:13px;line-height:1.4;color:#d0dce3}
body[data-page="home"] #directions .card-direction__action-full{display:inline}
body[data-page="home"] #directions .card-direction__action-short{display:none}
body[data-page="home"] .hf-more{display:flex;align-items:center;flex-wrap:wrap;gap:4px 22px;color:var(--text-secondary);font-size:14px;line-height:1.45}
body[data-page="home"] .hf-more span{font-weight:600}
body[data-page="home"] .hf-more a{display:inline-flex;align-items:center;min-height:44px;color:var(--text);text-underline-offset:4px;text-decoration-color:var(--line)}
body[data-page="home"] .steps--home .steps__list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,2.2vw,32px)}
body[data-page="home"] .steps--home .steps__item{border:0}
body[data-page="home"] .steps--home .steps__number{color:#f39a70}
body[data-page="home"] .steps--home .steps__title{font-size:clamp(19px,1.7vw,25px);line-height:1.25;font-weight:500}
body[data-page="home"] .steps--home .steps__text{font-size:16px;line-height:1.56;color:var(--text-secondary)}
body[data-page="home"] .hf-stories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:clamp(16px,2vw,28px)}
body[data-page="home"] .hf-story{min-width:0;display:flex;flex-direction:column;border:1px solid var(--hf-hair);border-radius:5px;overflow:hidden;background:#17222c}
body[data-page="home"] .hf-story__media{position:relative;aspect-ratio:2.3/1;background:radial-gradient(ellipse at center,#374753,#1c2933 78%);overflow:hidden}
body[data-page="home"] .hf-story__media img{display:block;width:100%;height:100%;object-fit:cover}
body[data-page="home"] .hf-story--drawing img{object-fit:contain;padding:6px 10px 22px;box-sizing:border-box}
body[data-page="home"] .hf-story--project img{object-position:50% 48%}
body[data-page="home"] .hf-story__media span{position:absolute;bottom:10px;left:12px;max-width:calc(100% - 24px);box-sizing:border-box;border-radius:3px;padding:4px 8px;background:#111a22e8;color:#e2e8ec;font-size:11px;line-height:1.4}
body[data-page="home"] .hf-story__copy{display:flex;align-items:flex-start;flex:1;flex-direction:column;gap:14px;padding:clamp(18px,2.1vw,32px)}
body[data-page="home"] .hf-story__copy .hf-kicker{margin:0}
body[data-page="home"] #main .hf-story .section__title{font-size:clamp(23px,2.15vw,34px)}
body[data-page="home"] .hf-story__copy p:not(.hf-kicker),body[data-page="home"] .hf-service p:not(.hf-kicker){margin:0;font-size:16px;line-height:1.6;color:var(--text-secondary)}
body[data-page="home"] .hf-story__copy a{margin-top:auto}
body[data-page="home"] .hf-service{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);align-items:start;gap:clamp(16px,5vw,72px);padding-top:clamp(24px,3vw,44px);border-top:1px solid var(--hf-hair);scroll-margin-top:20px}
body[data-page="home"] .hf-service a{margin-top:10px}
.hf-footer.footer--motion{background:transparent}
.hf-footer .motion-footer__closing{position:relative;align-items:stretch;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:clamp(28px,6vw,90px);padding:clamp(28px,4.2vw,64px) 0;border-bottom:1px solid var(--line)}
.hf-footer .motion-footer__intro{display:flex;flex-direction:column;justify-content:center}
.hf-footer .motion-footer__slogan{font-size:clamp(46px,6.2vw,88px);line-height:.99}
.hf-footer .motion-footer__slogan span:last-child::after{color:#ff7133}
.hf-footer .motion-footer__description{line-height:1.55}
.hf-footer .motion-footer__contact{align-self:stretch;max-width:none;justify-content:center;gap:0;padding:clamp(20px,2.5vw,36px);border:1px solid rgba(154,176,196,.25);border-radius:5px;background:linear-gradient(145deg,#25343f,#151f28)}
.hf-footer .motion-footer__label{font-size:18px;line-height:1.4;font-weight:500;color:var(--text);margin:0 0 10px}
.hf-footer .motion-footer__contact .footer__phone{font-size:clamp(22px,2vw,30px);line-height:1.25;letter-spacing:-.03em}
.hf-footer .motion-footer__email{min-height:44px;font-size:clamp(17px,1.4vw,21px);color:var(--text-secondary)}
.hf-footer .motion-footer__action{max-width:340px;border-radius:5px;margin-top:12px}
.hf-footer .motion-footer__hint{font-size:13px;line-height:1.5;max-width:38ch;margin-top:10px}
.hf-footer .motion-footer__lower{align-items:start;grid-template-columns:minmax(0,.9fr) minmax(0,1.15fr) auto;gap:clamp(16px,3vw,46px);padding:clamp(26px,3vw,44px) 0}
.hf-footer .motion-footer__signature{align-items:center;align-self:start}
.hf-footer .motion-footer__nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.hf-footer .motion-footer__nav-title{margin-bottom:12px;color:var(--text-secondary)}
.hf-footer .motion-footer__top{justify-self:end;margin:0;gap:10px}
.hf-footer .motion-footer__top span{display:grid;place-items:center;width:32px;height:32px;border-radius:5px;border:1px solid var(--line)}
.hf-footer :focus-visible,body[data-page="home"] #main :focus-visible{outline:2px solid var(--focus-field);outline-offset:3px}
@media(max-width:1099px){
 body[data-page="home"] #directions .direction-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-page="home"] #directions .card-direction--home{grid-template-columns:minmax(0,1fr) 72px;grid-template-rows:1fr auto}
 body[data-page="home"] #directions .card-direction__illustration{grid-column:2;grid-row:1;justify-self:end;width:72px;height:54px}
 body[data-page="home"] #directions .card-direction__body{grid-row:1}
 body[data-page="home"] #directions .card-direction__action{grid-column:1/-1;grid-row:2}
 .hf-footer .motion-footer__closing{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:799px){
 body[data-page="home"] .hf-start{grid-template-columns:1fr;gap:16px}
 body[data-page="home"] .hero.hero--home .hero__title{max-width:20ch}
 .hf-footer .motion-footer__lower{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}
 .hf-footer .motion-footer__top{grid-column:1/-1;justify-self:start}
}
@media(max-width:600px){
 body[data-page="home"] .hero.hero--home .hero__title{font-size:clamp(30px,8.6vw,46px);max-width:100%}
 body[data-page="home"] .hf-index-head{display:grid;gap:4px}
 body[data-page="home"] .hf-start .button{padding:10px;font-size:14px}
 body[data-page="home"] #directions .direction-grid{grid-template-columns:1fr;grid-auto-rows:auto;gap:8px}
 body[data-page="home"] #directions .card-direction--home{grid-template-columns:minmax(0,1fr) 56px;grid-template-rows:auto;align-items:center;gap:12px;padding:16px}
 body[data-page="home"] #directions .card-direction__body{gap:5px}
 body[data-page="home"] #directions .card-direction__illustration{width:56px;height:48px;align-self:center}
 body[data-page="home"] #directions .card-direction__action{display:none}
 body[data-page="home"] .hf-more{gap:0 16px}body[data-page="home"] .hf-more span{width:100%;margin-top:8px}
 body[data-page="home"] .steps--home .steps__list,body[data-page="home"] .hf-stories,body[data-page="home"] .hf-service{grid-template-columns:1fr}
 body[data-page="home"] .hf-story__media{aspect-ratio:2.1/1}
 .hf-footer .motion-footer__closing{grid-template-columns:1fr;gap:24px}
 .hf-footer .motion-footer__description{margin-top:16px}
 .hf-footer .motion-footer__contact{width:100%;box-sizing:border-box}
 .hf-footer .motion-footer__action{max-width:none}
 .hf-footer .motion-footer__lower{grid-template-columns:minmax(0,1fr) auto;gap:20px}
 .hf-footer .motion-footer__signature{grid-column:1;grid-row:2;gap:12px}
 .hf-footer .motion-footer__signature p{font-size:14px}
 .hf-footer .motion-footer__gear{width:44px;height:44px}
 .hf-footer .motion-footer__nav{grid-column:1/-1;grid-row:1}
 .hf-footer .motion-footer__top{grid-column:2;grid-row:2;align-self:center;justify-self:end}
}
@media(max-width:359px){body[data-page="home"] .hf-start .task-routes{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){body[data-page="home"] #directions .card-direction--home{transition:none}}
