/* ===========================================================================
   THE SEAM — the signature of the site.

   A molten weld bead runs down the left edge and grows with scroll, joining
   every plate to the next. Sparks burst from the weld head while the page is
   moving. Everything in this file is decoration: it is `aria-hidden`,
   `pointer-events:none`, switched off in the Elementor editor and under
   reduced-motion, and absent entirely without JavaScript.
   =========================================================================== */

.seam{
  position:fixed;
  left:var(--seam-x);
  top:0;
  bottom:0;
  width:var(--seam-w);
  /* Above the sticky header (90) and the call bar (95): the weld runs the full
     height of the page, and disappearing behind the nav for the first screen
     is exactly where it is most visible. Still below the drawer (120). */
  z-index:97;
  pointer-events:none;
}
/* the groove the bead is laid into */
.seam-rail{
  position:absolute;inset:0;
  background:
    linear-gradient(to right,
      rgba(0,0,0,.5) 0 1px, var(--rule-2) 1px calc(100% - 1px), rgba(0,0,0,.5) calc(100% - 1px)),
    linear-gradient(to bottom,
      transparent 0, #000 6vh, #000 calc(100% - 6vh), transparent 100%);
  background-blend-mode:multiply, normal;
  -webkit-mask-image:linear-gradient(to bottom,
    transparent 0, #000 6vh, #000 calc(100% - 6vh), transparent 100%);
  mask-image:linear-gradient(to bottom,
    transparent 0, #000 6vh, #000 calc(100% - 6vh), transparent 100%);
}
/* The bead itself — grows top-down with --seam-p (0..1).
   A weld is recognisable from three things, and the old version had none of
   them: the stacked-dime ripples are overlapping CRESCENTS, not flat stripes;
   the crown is convex, so light catches the centre and falls away at the toes;
   and there is a heat-affected zone beside it — the straw-gold band, then
   blue, that steel turns next to a weld. The ripples and the crown are
   background layers, the toe lines and the oxide bands are shadow rings, so
   the whole thing is still one element and one paint. */
.seam-bead{
  position:absolute;left:0;right:0;top:0;
  height:calc(var(--seam-p,0) * 100%);
  background-image:
    /* Stacked dimes. One crescent per TILE, repeated down the bead — a
       repeating-radial-gradient scales its radius to the element, and the bead
       is ~9000px tall, so its stops collapsed to nothing. A fixed tile keeps
       the ripple the same size however far the weld has run. */
    radial-gradient(ellipse 150% 88% at 50% 0,
      rgba(255,252,243,.52) 0 30%,
      rgba(255,222,172,.24) 30% 56%,
      rgba(96,30,16,.36) 56% 78%,
      transparent 78%),
    /* crown: convex across the width, so light catches the centre */
    linear-gradient(to right,
      rgba(78,26,14,.92) 0,
      var(--heat-2) 30%,
      var(--heat-core) 50%,
      var(--heat-2) 70%,
      rgba(78,26,14,.92) 100%),
    /* the heat running down its length, cold at the top where it has set */
    linear-gradient(to bottom, var(--ember) 0, var(--brand) 14%, var(--heat-3) 46%,
                    var(--heat-2) 82%, var(--heat-1) 100%);
  background-size:100% 6px, 100% 100%, 100% 100%;
  background-repeat:repeat-y, no-repeat, no-repeat;
  background-blend-mode:normal, soft-light, normal;
  box-shadow:
    0 0 0 1px rgba(52,20,10,.6),        /* toe line, where bead meets plate */
    0 0 0 3px rgba(170,128,56,.17),     /* straw oxide */
    0 0 0 6px rgba(68,102,148,.12),     /* blue oxide, further from the heat */
    0 0 7px rgba(255,122,47,.55),
    0 0 20px rgba(216,68,60,.3);
}
/* the weld pool at the leading edge */
.seam-head{
  position:absolute;
  left:50%;
  top:calc(var(--seam-p,0) * 100%);
  width:16px;height:16px;
  transform:translate(-50%,-50%);
  border-radius:50%;
  background:radial-gradient(circle,
    var(--heat-core) 0 22%, var(--heat-1) 38%, rgba(255,122,47,.55) 60%, transparent 72%);
  opacity:0;
  transition:opacity .35s var(--ease);
}
.seam-head::after{
  content:"";position:absolute;left:50%;top:50%;
  width:150px;height:150px;transform:translate(-50%,-50%);
  background:radial-gradient(circle, rgba(255,160,70,.2) 0, transparent 68%);
}
html.seam-live .seam-head{opacity:1}
.seam-sparks{
  position:fixed;left:0;top:0;width:100vw;height:100vh;
  z-index:97;pointer-events:none;
}
/* The seam is the page's own progress indicator, so it is decoration only
   where it cannot be seen. */
@media (max-width:560px){
  .seam-head::after{width:90px;height:90px}
}
body.elementor-editor-active .seam,
body.elementor-editor-active .seam-sparks{display:none}
@media (prefers-reduced-motion:reduce){
  .seam-sparks{display:none}
  .seam-head{opacity:0 !important}
}
/* No particle canvas on phones and tablets. A full-viewport canvas cleared and
   repainted on every frame of a scroll is the most expensive thing here, and
   it buys the least on the devices least able to pay for it. The bead itself
   still draws — that is the part people see. */
@media (max-width:1024px){
  .seam-sparks{display:none}
}

/* ------------------------------------------------------- arc-strike intro */

/* Rendered with `hidden` and only un-hidden by JS, so a visitor without
   JavaScript never meets a black box they cannot dismiss. */
.boot{
  position:fixed;inset:0;z-index:300;
  background:var(--steel-000);
  display:grid;place-items:center;
  pointer-events:none;
}
.boot[hidden]{display:none}
.boot-mark{
  width:clamp(60px,9vw,104px);height:auto;
  opacity:0;
  filter:drop-shadow(0 0 0 rgba(255,200,120,0));
}
.boot-arc{
  position:absolute;left:50%;top:50%;
  width:2px;height:0;
  transform:translate(-50%,-50%);
  background:var(--heat-core);
  box-shadow:0 0 18px 6px rgba(255,201,120,.85), 0 0 60px 18px rgba(255,122,47,.45);
}
.boot.strike .boot-arc{animation:arcStrike .5s var(--ease-cut) forwards}
.boot.strike .boot-mark{animation:markIn .7s .18s var(--ease) forwards}
.boot.done{animation:bootOut .6s .1s var(--ease-cut) forwards}
@keyframes arcStrike{
  0%{height:0;opacity:0}
  18%{height:62vh;opacity:1}
  40%{height:62vh;opacity:.5}
  55%{height:62vh;opacity:1}
  100%{height:0;opacity:0}
}
@keyframes markIn{
  0%{opacity:0;filter:brightness(4) drop-shadow(0 0 22px rgba(255,201,120,.95))}
  100%{opacity:1;filter:brightness(1) drop-shadow(0 0 0 rgba(255,201,120,0))}
}
@keyframes bootOut{
  0%{clip-path:inset(0 0 0 0)}
  100%{clip-path:inset(0 0 100% 0)}
}
@media (prefers-reduced-motion:reduce){.boot{display:none}}

/* ------------------------------------------------------------- the cursor */

/* Desktop pointers only. A touch device has no cursor to replace, and a
   fine-pointer check is the honest test — not a width breakpoint. */
.cursor,.cursor-ring{
  position:fixed;left:0;top:0;z-index:290;
  pointer-events:none;
  opacity:0;
  transition:opacity .25s var(--ease);
  will-change:transform;
}
.cursor{
  width:7px;height:7px;margin:-3.5px 0 0 -3.5px;
  border-radius:50%;
  background:var(--heat-core);
  box-shadow:0 0 10px 2px rgba(255,201,120,.8);
}
.cursor-ring{
  width:34px;height:34px;margin:-17px 0 0 -17px;
  border:1px solid rgba(255,201,120,.45);
  border-radius:50%;
  transition:opacity .25s var(--ease),width .25s var(--ease),height .25s var(--ease),
             margin .25s var(--ease),border-color .25s var(--ease),background-color .25s var(--ease);
}
html.cursor-on .cursor,html.cursor-on .cursor-ring{opacity:1}
html.cursor-hot .cursor-ring{
  width:56px;height:56px;margin:-28px 0 0 -28px;
  border-color:rgba(255,122,47,.9);
  background:rgba(255,122,47,.09);
}
html.cursor-on,html.cursor-on a,html.cursor-on button{cursor:none}
@media (hover:none),(pointer:coarse),(prefers-reduced-motion:reduce){
  .cursor,.cursor-ring{display:none}
  html.cursor-on,html.cursor-on a,html.cursor-on button{cursor:auto}
}
body.elementor-editor-active .cursor,
body.elementor-editor-active .cursor-ring,
body.elementor-editor-active .boot{display:none}

/* ------------------------------------------------------------- parallax */

/* JS writes --py; the transform is the browser's problem, not a layout one. */
.px{will-change:transform}
html.js .px > img,html.js .px .px-img{
  transform:translate3d(0, var(--py,0px), 0) scale(1.14);
}
@media (prefers-reduced-motion:reduce){
  html.js .px > img,html.js .px .px-img{transform:none}
}

/* --------------------------------------------------------- heat haze ---- */

/* A slow shimmer over hero photography. Cheap: one transform on one layer. */
.haze{
  position:absolute;inset:-10%;
  z-index:1;pointer-events:none;
  background:radial-gradient(60% 40% at 70% 65%, rgba(255,122,47,.16), transparent 70%);
  mix-blend-mode:screen;
  animation:haze 9s ease-in-out infinite alternate;
}
@keyframes haze{
  from{transform:translate3d(0,0,0) scale(1)}
  to{transform:translate3d(-2%,-1.5%,0) scale(1.08)}
}
@media (prefers-reduced-motion:reduce){.haze{animation:none}}
