/* ============================================================================
   Homepage — the sections under the hero (templates/home.php), redrawn on 2026-11-24.
   Loaded by the home only, after site.css. The hero's own rules stay in site.css (.hero-v …).

   The home is drawn differently from the landing pages on purpose. Its cue is the hero's
   picture, a nautilus in stained glass:
     - curves and a spiral that grows, not hexagons and diagonal cuts;
     - panes held by dark lines ("leading"), not cards with a border;
     - beside the brand's orange, the sea blue of that picture (--hm-teal, --hm-sea): two pane
       tints, the centre of the spiral, a glow in the last section. The ink picture behind the
       seven words brings its own. To take the flat blue out, change those two variables.
   No backdrop-filter anywhere (the old home's glass cards drew a seam in Firefox).
   Names are prefixed hm- and the variables --hm-*, so nothing here touches site.css's own.
   ============================================================================ */
.hm{
  --hm-night:#14100d;--hm-cream:#F7F1E9;--hm-paper:#FFFDFA;--hm-text:#2a211c;--hm-mut:#62564c;
  --hm-o1:#C55F0D;--hm-o2:#EE8421;--hm-o3:#FFB45C;--hm-maroon:#651906;
  --hm-teal:#0f4a5c;--hm-sea:#2f93a8;
  overflow-x:clip}
.hm-sec{position:relative;padding-block:clamp(72px,10vw,150px)}
.hm-wrap{max-width:1320px;margin-inline:auto;padding-inline:clamp(20px,5vw,72px)}
.hm :where(h2,h3,p,ol,ul){margin:0}
.hm-kicker{font-family:var(--display);font-weight:700;font-size:.78rem;letter-spacing:.18em;text-transform:uppercase;color:var(--hm-acc,var(--hm-o1))}
.hm-h2{margin-top:14px;font-size:clamp(2rem,4.4vw,3.6rem);font-weight:800;line-height:1.05;letter-spacing:-.025em;color:inherit;text-wrap:balance}
.hm-head{max-width:60rem}
.hm-btn{display:inline-flex;align-items:center;gap:.6em;padding:.9em 1.5em;border-radius:999px;font-family:var(--display);font-weight:700;font-size:1.02rem;line-height:1.2;
  color:#fff;text-decoration:none;background:linear-gradient(135deg,var(--hm-o2),var(--hm-o1));box-shadow:0 12px 30px -12px rgba(197,95,13,.8);transition:transform .2s,box-shadow .2s}
.hm-btn:hover{text-decoration:none;transform:translateY(-2px);box-shadow:0 18px 36px -12px rgba(197,95,13,.9)}
.hm-btn svg,.hm-link svg,.hm-pane__go svg{width:1.1em;height:1.1em;flex:none;transition:transform .2s}
.hm-btn:hover svg,.hm-link:hover svg{transform:translateX(4px)}

/* ---------- 1 · the tension ----------
   The hero ends by fading into var(--ink); this band starts from the same colour, so the two are
   one surface. No picture: the video above is all colour and anything rich right under it fights
   with it. The sentence on the left, its text low on the right, and behind them the line of the
   spiral, barely visible. The second half of the sentence thins out towards its end. */
.hm-tension{overflow:hidden;padding-block:clamp(84px,11vw,170px);color:#fff;background:linear-gradient(180deg,var(--ink),#17100c)}
.hm-tension__line{position:absolute;right:-6%;top:50%;width:min(78vw,1100px);translate:0 -50%;pointer-events:none}
.hm-tension__line path{fill:none;stroke:#FFB45C;stroke-opacity:.16;stroke-width:.35;vector-effect:non-scaling-stroke;stroke-width:1.5px}
.hm-tension__grid{position:relative;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);gap:clamp(28px,5vw,80px);align-items:end}
.hm-tension__t{font-size:clamp(2.4rem,5.6vw,4.9rem);font-weight:800;line-height:1.02;letter-spacing:-.03em;color:#fff;text-wrap:balance}
.hm-tension__t span{display:block;margin-top:.12em;color:var(--hm-o3);
  -webkit-mask-image:linear-gradient(90deg,#000 40%,rgba(0,0,0,.34));mask-image:linear-gradient(90deg,#000 40%,rgba(0,0,0,.34))}
.hm-tension__p{max-width:44ch;padding-left:clamp(16px,2vw,28px);border-left:2px solid rgba(255,180,92,.5);font-size:clamp(1.05rem,1.35vw,1.2rem);line-height:1.65;color:#ddd5cd}

/* ---------- 2 · the method: the spiral of panes and the four steps ----------
   Light on purpose: the panes are tinted glass (a colour at low strength, air between them, round
   corners), the curve is a thin line with a dot where it passes from one pane to the next, and
   there is no frame and no shadow. The numbers grow with the panes.
   The steps are a row of four under the drawing. A step and its pane light up together, whichever
   of the two is pointed at: that link is the :has() rules at the end of this block. */
.hm-method{color:var(--hm-text);background:radial-gradient(48% 52% at 72% 30%,#fff 0,rgba(255,255,255,0) 70%),var(--hm-cream)}
.hm-method__top{display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);gap:clamp(36px,6vw,100px);align-items:center}
.hm-sub{margin-top:18px;max-width:42ch;font-size:1.15rem;line-height:1.6;color:var(--hm-mut)}
.hm-method__text .hm-btn{margin-top:30px}
.hm-fig svg{display:block;width:100%;height:auto;overflow:visible}
.hm-fig__pane{fill-opacity:.2;transition:fill-opacity .3s}
.hm-fig__pane--3{fill-opacity:.24}
.hm-fig__pane--4{fill-opacity:.28}
.hm-fig__seed{fill-opacity:.55}
.hm-fig__curve{fill:none;stroke:var(--hm-o1);stroke-width:1.6px;stroke-linecap:round;vector-effect:non-scaling-stroke}
.hm-fig__dots circle{fill:var(--hm-cream);stroke:var(--hm-o1);stroke-width:1.4px;vector-effect:non-scaling-stroke}
.hm-fig__nums text{font-family:var(--display);font-weight:500;fill:#7A2A08;fill-opacity:.62}
.hm-fig__cap{display:flex;align-items:center;gap:.7em;margin-top:18px;font-size:.92rem;color:var(--hm-mut)}
.hm-fig__cap i{flex:none;width:24px;height:12px;border-radius:3px;opacity:.6;background:linear-gradient(90deg,var(--hm-teal) 50%,var(--hm-sea) 50%)}
.hm-moves{list-style:none;padding:0;margin-top:clamp(44px,6vw,84px);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(22px,3vw,48px)}
.hm-move{position:relative;padding-top:24px;border-top:1px solid rgba(101,25,6,.16)}
.hm-move::before{content:"";position:absolute;left:0;top:-2px;width:44px;height:3px;border-radius:2px;background:var(--c);transition:width .35s cubic-bezier(.2,.7,.2,1)}
.hm-move__n{display:block;font-family:var(--display);font-weight:500;font-size:clamp(2.4rem,3.6vw,3.3rem);line-height:1;letter-spacing:-.03em;color:var(--c)}
.hm-move h3{margin-top:14px;font-size:1.3rem;line-height:1.2;color:#17100c}
.hm-move p{margin-top:8px;font-size:.98rem;line-height:1.62;color:var(--hm-mut)}
.hm-move:hover::before{width:100%}
.hm-method:has(.hm-move--1:hover) .hm-fig__pane--1,.hm-method:has(.hm-move--2:hover) .hm-fig__pane--2,
.hm-method:has(.hm-move--3:hover) .hm-fig__pane--3,.hm-method:has(.hm-move--4:hover) .hm-fig__pane--4,
.hm-fig__pane:hover{fill-opacity:.62}
.hm-method:has(.hm-fig__pane--1:hover) .hm-move--1::before,.hm-method:has(.hm-fig__pane--2:hover) .hm-move--2::before,
.hm-method:has(.hm-fig__pane--3:hover) .hm-move--3::before,.hm-method:has(.hm-fig__pane--4:hover) .hm-move--4::before{width:100%}

/* ---------- 3 · what changes: the window ----------
   Five panes in a rounded frame, 5px of black between them. Each pane is a link with its picture
   behind (::before, so it can zoom on hover) and a veil over it (::after) that darkens towards the
   bottom, where the words are: the pictures are very different in brightness and this evens them. */
.hm-pillars{color:#fff;background:var(--hm-night)}
.hm-pillars .hm-kicker{--hm-acc:var(--hm-o3)}
.hm-pillars .hm-head{max-width:64rem}
.hm-glass{display:grid;grid-template-columns:1.3fr 1fr 1fr;grid-auto-rows:clamp(220px,21vw,300px);gap:5px;margin-top:clamp(36px,5vw,64px);
  border:5px solid #000;border-radius:28px;overflow:hidden;background:#000;box-shadow:0 40px 80px -40px rgba(0,0,0,.9)}
.hm-pane{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:flex-end;gap:8px;padding:clamp(18px,2.2vw,30px);overflow:hidden;color:#fff;text-decoration:none}
.hm-pane:hover{text-decoration:none}
/* The zoom is `transform:scale()`, not the `scale` property, and the window is taken out of scroll
   anchoring. Seen by Giorgio in Firefox: with a pane at the top of the screen, under the menu bar,
   pointing at it nudged the whole page. The pane was the element the browser keeps still while
   things change (its "anchor"); the picture growing inside it counted as the pane moving, and the
   browser scrolled to compensate. Not reproduced in Chromium, so check any change here in Firefox. */
.hm-glass,.hm-pane{overflow-anchor:none}
.hm-pane::before{content:"";position:absolute;inset:0;z-index:-2;background:var(--img) center/cover no-repeat;transition:transform .7s cubic-bezier(.2,.7,.2,1)}
.hm-pane::after{content:"";position:absolute;inset:0;z-index:-1;transition:opacity .3s;
  background:linear-gradient(180deg,rgba(12,10,8,.12) 0,rgba(12,10,8,.5) 42%,rgba(12,10,8,.93) 100%),var(--tint,none)}
.hm-pane:hover::before,.hm-pane:focus-visible::before{transform:scale(1.06)}
.hm-pane:focus-visible{outline:3px solid var(--hm-o3);outline-offset:-3px}
.hm-pane--1{grid-row:span 2;--tint:linear-gradient(160deg,rgba(197,95,13,.38),transparent 62%)}
.hm-pane--2{--tint:linear-gradient(200deg,rgba(15,74,92,.5),transparent 70%)}
.hm-pane--3{--tint:linear-gradient(160deg,rgba(238,132,33,.34),transparent 66%)}
.hm-pane--4{--tint:linear-gradient(200deg,rgba(101,25,6,.42),transparent 70%)}
.hm-pane--5{--tint:linear-gradient(160deg,rgba(47,147,168,.36),transparent 66%)}
.hm-pane__t{font-family:var(--display);font-weight:800;font-size:clamp(1.3rem,1.9vw,1.8rem);line-height:1.1;letter-spacing:-.01em}
.hm-pane--1 .hm-pane__t{font-size:clamp(1.7rem,3vw,2.7rem)}
.hm-pane__d{max-width:34ch;font-size:.98rem;line-height:1.45;color:rgba(255,255,255,.88)}
.hm-pane__go{display:inline-flex;align-items:center;gap:.5em;margin-top:4px;font-family:var(--display);font-weight:700;font-size:.8rem;letter-spacing:.1em;text-transform:uppercase;color:var(--hm-o3)}
.hm-pane:hover .hm-pane__go svg{transform:translateX(4px)}

/* ---------- 4 · the seven words, passing by ----------
   Two rows moving in opposite directions. Each row holds the words twice, so sliding it by half
   its width brings it back to the start without a jump. Hidden from screen readers (the list
   above them is what is read). With reduced motion: still, on several lines, once. */
/* Behind them the ink in water, well darkened: far from the hero's colours here, and the picture is
   what brings the blue. The veil is heavier where the heading is. */
.hm-words{isolation:isolate;padding-bottom:clamp(64px,8vw,116px);color:#fff;background:#0a0d10;overflow:hidden;overflow-anchor:none}
.hm-words::before{content:"";position:absolute;inset:0;z-index:-2;background:url(/assets/img/ink-water.webp) center 40%/cover no-repeat}
.hm-words::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(8,10,12,.9) 0,rgba(8,10,12,.62) 55%,rgba(8,10,12,.72) 100%)}
.hm-words .hm-kicker{--hm-acc:var(--hm-o3)}
.hm-marquee{display:grid;gap:clamp(4px,.8vw,12px);margin-top:clamp(30px,4vw,56px)}
.hm-marquee__row{display:flex;gap:clamp(24px,3.4vw,60px);width:max-content;padding-right:clamp(24px,3.4vw,60px);animation:hm-slide 52s linear infinite}
.hm-marquee__row--b{animation-direction:reverse;animation-duration:64s}
.hm-marquee span{font-family:var(--display);font-weight:800;font-size:clamp(3rem,8.4vw,7.4rem);line-height:1.06;letter-spacing:-.03em;white-space:nowrap;
  color:transparent;-webkit-text-stroke:1.5px rgba(255,255,255,.85)}
.hm-marquee__row span:nth-child(3n+1){color:var(--hm-o3);-webkit-text-stroke:0}
.hm-marquee__row--b span:nth-child(3n+1){color:transparent;-webkit-text-stroke:1.5px rgba(255,255,255,.72)}
.hm-marquee__row--b span:nth-child(3n){color:#fff;-webkit-text-stroke:0}
@keyframes hm-slide{to{transform:translateX(-50%)}}
@supports not (-webkit-text-stroke:1px #000){.hm-marquee span{color:rgba(255,255,255,.6)}}
@media(prefers-reduced-motion:reduce){
  .hm-marquee__row{animation:none;width:auto;flex-wrap:wrap;justify-content:center;padding-inline:20px;gap:6px 28px}
  .hm-dup{display:none}
}

/* ---------- 5 · from the blog: one large, two beside ---------- */
.hm-blog{color:var(--hm-text);background:var(--hm-paper)}
.hm-head--row{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:14px 28px;max-width:none}
.hm-head--row .hm-h2{margin-top:0}
.hm-link{display:inline-flex;align-items:center;gap:.5em;font-family:var(--display);font-weight:700;font-size:1rem;color:var(--hm-o1);text-decoration:none}
.hm-link:hover{text-decoration:none;color:#993300}
.hm-posts{display:grid;grid-template-columns:1.25fr 1fr;grid-auto-rows:1fr;gap:22px;margin-top:clamp(30px,4vw,54px)}
.hm-post{display:grid;grid-template-columns:minmax(0,.42fr) minmax(0,.58fr);border-radius:22px;overflow:hidden;color:var(--hm-text);text-decoration:none;background:var(--hm-cream);
  box-shadow:0 0 0 1px #eadfd2;transition:transform .25s,box-shadow .25s}
.hm-post:hover{text-decoration:none;transform:translateY(-4px);box-shadow:0 0 0 1px var(--hm-o1),0 26px 46px -28px rgba(60,25,5,.5)}
.hm-post__img{display:block;min-height:170px;background:linear-gradient(150deg,var(--hm-o1),var(--hm-maroon)) center/cover no-repeat}
.hm-post__body{display:flex;flex-direction:column;gap:8px;padding:22px 24px}
.hm-post__cat{font-family:var(--display);font-weight:700;font-size:.7rem;letter-spacing:.12em;text-transform:uppercase;color:var(--hm-o1)}
.hm-post__t{font-family:var(--display);font-weight:700;font-size:1.16rem;line-height:1.22;color:#17100c}
.hm-post__d{font-size:.93rem;line-height:1.5;color:var(--hm-mut)}
.hm-post__date{margin-top:auto;padding-top:6px;font-size:.82rem;color:var(--hm-mut)}
/* the latest one: the picture fills the card, the words lie on its darkened lower part */
.hm-post--lead{position:relative;isolation:isolate;grid-row:span 2;display:flex;align-items:flex-end;min-height:clamp(360px,34vw,480px);color:#fff;background:#17100c}
.hm-post--lead .hm-post__img{position:absolute;inset:0;z-index:-2;min-height:0}
.hm-post--lead::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(12,10,8,.05) 20%,rgba(12,10,8,.9) 88%)}
.hm-post--lead .hm-post__body{padding:clamp(22px,2.6vw,36px);max-width:46ch}
.hm-post--lead .hm-post__cat{color:var(--hm-o3)}
.hm-post--lead .hm-post__t{font-size:clamp(1.5rem,2.4vw,2.1rem);font-weight:800;color:#fff}
.hm-post--lead .hm-post__d,.hm-post--lead .hm-post__date{color:rgba(255,255,255,.84)}

/* ---------- 6 · the close and the form ----------
   The form is the CRM's page in an iframe, here in its dark theme (transparent, glass fields). It
   has 16px of padding of its own: the frame is pulled out by as much, so the fields line up with
   the panel's text. No script may resize it: two columns of fields when the frame is at least
   460px wide, one column and a taller frame below that. */
.hm-close{color:#fff;background:radial-gradient(60% 90% at 100% 0,rgba(197,95,13,.5),transparent 62%),radial-gradient(50% 80% at 0 100%,rgba(15,74,92,.55),transparent 66%),#17100c}
.hm-close__grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(32px,6vw,90px);align-items:center}
.hm-close__t{font-size:clamp(2.4rem,5.4vw,4.6rem);font-weight:800;line-height:1.02;letter-spacing:-.03em;color:#fff;text-wrap:balance}
.hm-close__p{margin-top:24px;max-width:46ch;font-size:clamp(1.1rem,1.5vw,1.28rem);line-height:1.6;color:#ddd5cd}
.hm-form{container-type:inline-size;padding:clamp(22px,3vw,40px);border-radius:26px;color:#fff;background:#0e0a08;box-shadow:0 0 0 1px rgba(255,255,255,.14),0 44px 90px -44px rgba(0,0,0,.8)}
.hm-form h3{font-size:clamp(1.3rem,2vw,1.7rem);font-weight:800;line-height:1.15;color:#fff}
.hm-form > p{margin-top:10px;line-height:1.55;color:rgba(255,255,255,.8)}
.hm-form__direct{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px;padding-bottom:22px;border-bottom:1px solid rgba(255,255,255,.14)}
.hm-form__direct a{display:inline-flex;align-items:center;gap:.5em;padding:.65em 1.15em;border-radius:999px;font-family:var(--display);font-weight:700;font-size:.98rem;line-height:1.2;
  color:#fff;text-decoration:none;transition:background .2s,transform .2s}
.hm-form__direct a:hover{text-decoration:none;transform:translateY(-2px)}
.hm-form__tel{background:rgba(255,255,255,.1);box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.3)}
.hm-form__tel:hover{background:rgba(255,255,255,.18)}
.hm-form__wa{background:#16864a}
.hm-form__wa:hover{background:#127a42}
.hm-form__frame{display:block;width:calc(100% + 32px);height:590px;margin:8px -16px -16px;border:0;background:transparent}
@container (min-width:510px){.hm-form__frame{height:470px}}

/* ---------- smaller screens ---------- */
@media(max-width:1000px){
  .hm-method__top,.hm-close__grid,.hm-tension__grid{grid-template-columns:minmax(0,1fr)}
  .hm-fig{max-width:640px}
  .hm-moves{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hm-glass{grid-template-columns:1fr 1fr}
  .hm-pane--1{grid-row:auto;grid-column:span 2}
  .hm-posts{grid-template-columns:minmax(0,1fr)}
  .hm-post--lead{grid-row:auto}
}
@media(max-width:680px){
  .hm-sec{padding-block:64px}
  .hm-tension{padding-block:72px}
  .hm-tension__line{width:150vw;right:-40%}
  .hm-moves{grid-template-columns:minmax(0,1fr)}
  /* the horizontal picture zooms too hard on a tall band: the vertical cut */
  .hm-words::before{background-image:url(/assets/img/ink-water-vertical.webp);background-position:center}
  .hm-glass{grid-template-columns:minmax(0,1fr);grid-auto-rows:230px;border-radius:22px}
  .hm-pane--1{grid-column:auto}
  .hm-post{grid-template-columns:minmax(0,1fr)}
  .hm-post__img{min-height:0;aspect-ratio:16/9}
  .hm-btn{width:100%;justify-content:center}
}
