/* =========================================================================
   v2 home-close.css (C3) - services, FAQ, form, finale. Everything scoped under .page-home.
   Tokens and components come from v2.css; only page rules live here.

   6  SERVICES  (tint band under the paper region section) a stepped course of five blocks. From 1280px the blocks widen towards the left going down
                (05 is the full width, 01 the narrowest): the stepped end of a block wall, laid bottom up.
                The cavity left of the steps holds the heading. Each block carries its photo.
                Pointer devices: the photo sits under a veil of dust (dust.png = procedural speckle mask,
                alpha 0 on top, 1 at the bottom, noise gradient in the middle). Hover / focus slides the
                mask up, so the dust falls away from the top (BREAK). Touch and reduced motion: photo shown.
   7  FAQ       white band, accordion from v2.js. Answers rise as courses (clip + lift), closing removes the top first.
   8  FORM      paper band, the live LWT form in a white card, one photo (shoot, cellar) in a settled shard.
   9  FINALE    dark act. The canvas (home-close.js) lays the last shards into block courses; the CSS texture
                underneath is the finished static state (no JS, CDN failure, ?motion=off).
   ========================================================================= */

/* ------------------------------------------------------------ 6 services */
.page-home .svc-head{display:grid;gap:var(--s-4) var(--gutter);align-content:start}
.page-home .svc-head .kicker{grid-column:1 / -1}
.page-home .svc-h{font-size:var(--fs-h2)}
.page-home .svc-lead{max-width:44ch;color:var(--fg)}
.page-home .svc-list{display:grid;gap:var(--s-3);margin-top:var(--s-8)}

.page-home .svc{display:grid;grid-template-columns:minmax(0,1fr);padding:0;overflow:hidden;gap:0;--card-bg:var(--white)}
.page-home .svc>*+*{margin-top:0}
.page-home .svc-ph{border-radius:0;aspect-ratio:16/10}
.page-home .svc-ph img{object-position:var(--op,50% 50%)}
.page-home .svc-body{display:flex;flex-direction:column;align-items:flex-start;gap:var(--s-3);padding:var(--s-5) 88px var(--s-5) var(--s-5)}
.page-home .svc-t{font-size:clamp(32px,8.4vw,44px);line-height:.98}
.page-home .svc-t a{color:var(--fg)}
.page-home .svc-x{color:var(--fg-2);max-width:46ch}
.page-home .svc-more{margin-top:var(--s-1);font-weight:600;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.25em;text-decoration-color:var(--line-2);transition:text-decoration-color var(--t),color var(--t)}
.page-home .svc:hover .svc-more,.page-home .svc:focus-within .svc-more{text-decoration-color:currentColor}
.page-home .svc-body,.page-home .svc-n{grid-row:2;grid-column:1}
.page-home .svc-n{justify-self:end;align-self:start;margin:var(--s-5) var(--s-5) 0 0;font-size:clamp(48px,13vw,64px);line-height:.8;color:var(--fg-2);transition:color var(--t)}
.page-home .svc:hover .svc-n,.page-home .svc:focus-within .svc-n{color:var(--fg)}
.page-home .svc:has(a:focus-visible){outline:2px solid var(--focus);outline-offset:3px}
.page-home .svc a:focus-visible{outline:none}

@media (min-width:760px){
  .page-home .svc-head{grid-template-columns:repeat(12,minmax(0,1fr))}
  .page-home .svc-head .svc-h{grid-column:1 / span 8}
  .page-home .svc-head .svc-lead{grid-column:9 / span 4;align-self:end}
  .page-home .svc{grid-template-columns:minmax(200px,240px) minmax(0,1fr) auto;align-items:center;gap:var(--s-6);padding:var(--s-5)}
  .page-home .svc-ph{aspect-ratio:4/3;border-radius:var(--r-sm)}
  .page-home .svc-body{padding:0}
  .page-home .svc-t{font-size:clamp(34px,4vw,44px)}
  .page-home .svc-ph,.page-home .svc-body,.page-home .svc-n{grid-row:auto;grid-column:auto}
  .page-home .svc-n{margin:0;font-size:clamp(64px,8vw,96px);min-width:2ch;text-align:right}
}

/* the stair: from 1280px, blocks 01 ... 05 start one column further left each, all end at the right edge
   (needs subgrid; older browsers keep the stacked list) */
@supports (grid-template-columns:subgrid){
@media (min-width:1280px){
  .page-home .svc-stage{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--gutter);align-items:start}
  .page-home .svc-head{grid-column:1 / span 3;grid-row:1;display:block;position:relative;z-index:2}
  .page-home .svc-head>*+*{margin-top:var(--s-5)}
  .page-home .svc-h{font-size:clamp(46px,4.5vw,66px)}
  .page-home .svc-lead{max-width:none}
  .page-home .svc-list{grid-column:1 / -1;grid-row:1;grid-template-columns:subgrid;row-gap:var(--s-3);margin-top:0}
  .page-home .svc{grid-column:calc(5 - var(--i)) / -1;grid-row:calc(var(--i) + 1);grid-template-columns:260px minmax(0,1fr) auto}
}
}

/* dust sweep over the photo: pointer devices with motion only. At rest the photo is crisp and full colour;
   on hover / keyboard focus a thin veil is swept off once, as a small extra. */
html.fine:not(.reduced) .page-home .svc-ph::after{content:"";position:absolute;inset:0;pointer-events:none;background:var(--tint);opacity:0;
  -webkit-mask-image:url("../../img/home-close/dust.png");mask-image:url("../../img/home-close/dust.png");
  -webkit-mask-size:100% 300%;mask-size:100% 300%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-position:0 100%;mask-position:0 100%}
html.fine:not(.reduced) .page-home .svc:hover .svc-ph::after,
html.fine:not(.reduced) .page-home .svc:focus-within .svc-ph::after{animation:svc-dust 1.1s var(--ease) both}
@keyframes svc-dust{
  0%{opacity:.55;-webkit-mask-position:0 100%;mask-position:0 100%}
  100%{opacity:0;-webkit-mask-position:0 0;mask-position:0 0}
}

/* ----------------------------------------------------------------- 7 FAQ */
.page-home .faq-sec .grid{row-gap:var(--s-7);align-items:start}
@media (min-width:1024px){
  .page-home .faq-side{position:sticky;top:calc(var(--nav) + var(--s-6))}
}
.page-home .faq-main .acc-in p,.page-home .faq-main .acc-in li{max-width:62ch}
.page-home .faq-main .acc-in{color:var(--fg)}
/* closed panels are rendered closed from the first paint when JS is on (html.js is set in the head), so v2.js
   closing them later does not shrink the page and a link to #lwt-form or #faq keeps its place. No JS: all open. */
html.js .page-home .acc-panel[data-closed]{grid-template-rows:0fr;visibility:hidden}
/* no JS: every panel is open, so every icon shows the open (minus) state */
html:not(.js) .page-home .acc-btn .acc-ico::after{transform:rotate(90deg) scaleX(0)}
/* answers: each paragraph / list is a course that rises into place on opening and is removed top first on closing */
.page-home .acc-ready .acc-in>*{transition:clip-path var(--t-move) var(--ease),opacity .45s var(--ease),transform var(--t-move) var(--ease)}
.page-home .acc-ready .acc-panel[data-closed] .acc-in>*{clip-path:inset(100% 0 0 0);opacity:0;transform:translateY(14px)}
.page-home .acc-ready .acc-panel:not([data-closed]) .acc-in>*{clip-path:inset(-8px -8px -8px -8px)}
.page-home .acc-ready .acc-panel:not([data-closed]) .acc-in>:nth-child(2){transition-delay:.07s}
.page-home .acc-ready .acc-panel:not([data-closed]) .acc-in>:nth-child(3){transition-delay:.14s}
.page-home .acc-ready .acc-panel:not([data-closed]) .acc-in>:nth-child(4){transition-delay:.21s}

/* --------------------------------------------------------------- 8 form */
.page-home .frm-grid{align-items:stretch;row-gap:var(--s-6)}
.page-home .frm-ph-col{order:2}
.page-home .frm-ph{position:relative;height:100%;min-height:280px}
.page-home .frm-ph .media{position:absolute;inset:0;border-radius:0}
.page-home .frm-ph img{object-position:50% 40%}
.page-home .frm-card{padding:clamp(24px,3.4vw,48px);--card-bg:var(--white)}
.page-home .frm-card .lwt-title{font-size:clamp(34px,3.6vw,52px);line-height:.98;margin-bottom:var(--s-2)}
.page-home .frm-card .lwt-form-box{gap:var(--s-4)}
/* success / error box of the LWT form (v2.css styles .kf-msg; the LWT markup uses .lwt-message) */
.page-home .lwt-message{padding:var(--s-4) var(--s-5);border:1px solid var(--line-2);border-radius:var(--r);background:var(--paper);color:var(--fg);font-size:var(--fs-small)}
.page-home .lwt-message.lwt-error{border-color:var(--red-text);color:var(--red-text)}
.page-home .lwt-message.lwt-success{border-color:var(--fg)}
@media (min-width:760px){
  .page-home .frm-ph-col{order:0}
  .page-home .frm-ph{min-height:420px}
}

/* ------------------------------------------------------------ 9 finale */
.page-home .fin-sec{display:flex;align-items:flex-start;min-height:min(100svh,900px);padding-block:clamp(112px,17vh,200px) clamp(240px,34vh,340px)}
.page-home .fin-wall{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.page-home .fin-cv{position:absolute;inset:0;width:100%;height:100%}
/* static state: the finished courses as the line texture on the lower part (JS draws its own and removes this) */
.page-home .fin-wall::before{content:"";position:absolute;left:0;right:0;bottom:0;height:calc(var(--course) * 5);background-image:var(--course-img);background-size:168px 112px;background-position:50% 100%}
.page-home .fin-wall.is-live::before{content:none}
.page-home .fin-in{position:relative;z-index:1}
.page-home .fin-h{max-width:12.5em}
.page-home .fin-btns{margin-top:var(--s-7)}
.page-home .fin-region{margin-top:var(--s-6)}
@media (max-width:759px){
  .page-home .fin-sec{min-height:0;padding-block:112px 280px}
  .page-home .fin-wall::before{height:calc(var(--course) * 4)}
}
