/* =====================================================================
   ROUND 7 CONCEPT: "the page is a plate being cut by a waterjet".
   Loaded only on pages with <html data-etch>. Final (cut) state is the
   default; html.etch-armed (set inline, only when motion is allowed)
   holds the un-cut state until assets/etch.js cuts each part in.
   ===================================================================== */
html[data-etch]{
  --plate:#12181d;--plate2:#161d23;--kerf:#030507;--bevel:rgba(255,255,255,.07);
  --part:#182128;--part2:#141b21;--scribe:rgba(142,230,255,.26);
  --brushed:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='480'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0035 .85' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='480' height='480' filter='url(%23n)'/%3E%3C/svg%3E");
  background:var(--plate);
}
/* brushed plate: fine horizontal grain + a soft sheen across the sheet */
html[data-etch] body{background-color:var(--plate);
  background-image:var(--brushed),
    linear-gradient(100deg,rgba(255,255,255,0) 20%,rgba(255,255,255,.028) 42%,rgba(255,255,255,0) 64%),
    linear-gradient(180deg,#161d23 0,#12181d 900px,#11171c 100%);
  background-size:480px 480px,100% 1400px,100% 100%;background-repeat:repeat,no-repeat,no-repeat}
html[data-etch] .fx-layer{display:none}

/* ---------- etched plate: header + nav ---------- */
html[data-etch] .masthead{
  background:var(--brushed),
    radial-gradient(circle at 50% 50%,#56636d 0 1.6px,#2a333a 2.2px,#0a0e11 3.4px,transparent 4.4px) 10px 10px/14px 14px no-repeat,
    radial-gradient(circle at 50% 50%,#56636d 0 1.6px,#2a333a 2.2px,#0a0e11 3.4px,transparent 4.4px) calc(100% - 10px) 10px/14px 14px no-repeat,
    linear-gradient(180deg,#1c252c,#161e24);
  background-size:480px 480px,14px 14px,14px 14px,100% 100%;
  border-bottom:1px solid var(--kerf);box-shadow:0 1px 0 var(--bevel),0 10px 24px -18px rgba(0,0,0,.9);
  -webkit-backdrop-filter:none;backdrop-filter:none}
html[data-etch] .site-nav a,html[data-etch] .wordmark{text-shadow:0 -1px 0 rgba(0,0,0,.85),0 1px 0 rgba(255,255,255,.07)}
html[data-etch] .eyebrow,html[data-etch] .bread,html[data-etch] .step-n,html[data-etch] .foot-h{text-shadow:0 -1px 0 rgba(0,0,0,.9),0 1px 0 rgba(255,255,255,.06)}

/* ---------- buttons = cut parts with a beveled kerf edge ---------- */
html[data-etch] .btn,html[data-etch] .mastlink{border-radius:7px;
  box-shadow:0 0 0 1px var(--kerf),0 0 0 2px rgba(255,255,255,.06),inset 0 1px 0 rgba(255,255,255,.38),inset 0 -2px 0 rgba(0,0,0,.22),0 6px 14px -8px rgba(0,0,0,.9)}
html[data-etch] .btn-solid,html[data-etch] .mastlink{background:linear-gradient(180deg,#63ddff,#36c7f3 55%,#2bb9e6)}
html[data-etch] .btn-solid:hover,html[data-etch] .mastlink:hover{background:linear-gradient(180deg,#a3edff,#7fe2ff)}
html[data-etch] .btn-quiet{background:var(--brushed),linear-gradient(180deg,#242f38,#19222a);background-size:480px 480px,100% 100%;
  border-color:rgba(214,232,242,.3);box-shadow:0 0 0 1px var(--kerf),inset 0 1px 0 rgba(255,255,255,.1),inset 0 -2px 0 rgba(0,0,0,.3),0 6px 14px -8px rgba(0,0,0,.9)}
html[data-etch] .btn:active{transform:translateY(1px)}

/* ---------- hero: the headline is cut into the plate ---------- */
html[data-etch] .etch-h1{position:relative;max-width:none;background:none!important;color:inherit!important;-webkit-text-fill-color:currentColor!important;padding-bottom:0!important}
.etch-txt{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.etch-svg{display:block;width:100%;height:auto;overflow:visible}
.etch-svg{width:min(100%,calc(var(--w) * .01em))}          /* glyph units are 1/100 em: the artwork matches the H1 type size */
.etch-narrow{display:none}
@media (max-width:640px){.etch-wide{display:none}.etch-narrow{display:block}}
.etch-svg .ek{fill:none;stroke-linejoin:round}
.etch-svg .ek-d{stroke:var(--kerf,#030507);stroke-width:4}
.etch-svg .ek-b{stroke:rgba(255,255,255,.14);stroke-width:4;transform:translate(1.2px,1.6px)}
.etch-svg .eh use{fill:none;stroke:#e9fbff;stroke-width:3.4;stroke-linecap:round;transition:opacity .5s ease-out}
.etch-svg .eh use.cool{opacity:0}
@container style(--cut-hold: 1){html.etch-armed .etch-svg:not(.etch-go) .ek{visibility:hidden}
/* no fx canvas on these pages: drop the mobile spacer it needed */
}html[data-etch] div.hero::after,html[data-etch] main.hero::after,html[data-etch] .article-hero::after{display:none!important}
html[data-etch] .article-hero{position:relative}

/* the Highline mark, cut out of the plate (wide screens) */
.etch-part{display:none}
@media (min-width:1000px){
  .etch-part{display:block;position:absolute;right:28px;top:50%;width:min(330px,30vw);height:auto;translate:0 -50%;overflow:visible;pointer-events:none}
  .article-hero .etch-part{top:56%;width:min(280px,26vw)}
  main.hero .etch-part{width:min(280px,26vw)}
  /* keep every hero text block clear of the cut-out mark on the right */
  html[data-etch] :is(.hero,.article-hero) :is(h1,.lede,p,ul,.cta-row,.bread){max-width:min(600px,56%)}
  html[data-etch] .etch-h1{max-width:min(600px,56%)!important}
}
.ep-hole{fill:url(#ep-glow)}
.ep-rim{fill:none;stroke:var(--kerf,#030507);stroke-width:.55;filter:drop-shadow(.25px .35px 0 rgba(255,255,255,.12))}
.ep-piece{fill:url(#ep-metal);transition:transform 1.1s cubic-bezier(.55,0,.85,.4),opacity 1.1s ease-in;transform-box:fill-box;transform-origin:50% 40%}
.ep-scribe{fill:none;stroke:var(--scribe);stroke-width:.25;stroke-dasharray:.6 1.1}
.ep-kerf{fill:none;stroke:var(--kerf,#030507);stroke-width:.6;opacity:0}
.etch-part .ep-piece{opacity:0}                    /* final state: the piece is gone, the cut-out glows */
@container style(--cut-hold: 1){html.etch-armed .etch-part:not(.dropped) .ep-piece{opacity:1}
html.etch-armed .etch-part.cutting .ep-kerf{opacity:1}
}.etch-part.dropped .ep-piece{transform:translate(0,18px) rotate(4deg) scale(.96);opacity:0}

/* ---------- parts and sections: final state = cut, with a dark kerf and a bevel ---------- */
html[data-etch] :is(.svc-card,.link-card,.fx-cta,.who,.side-panel,.photo-grid figure,form){border-color:var(--kerf)!important;
  box-shadow:0 0 0 1px rgba(255,255,255,.05),inset 0 1px 0 rgba(255,255,255,.055),0 14px 28px -22px rgba(0,0,0,.95)}
html[data-etch] :is(.svc-card,.link-card,.who,.side-panel){background:var(--brushed),linear-gradient(180deg,var(--part),var(--part2));background-size:480px 480px,100% 100%}
html[data-etch] .svc-card:hover,html[data-etch] .link-card:hover{background:var(--brushed),linear-gradient(180deg,#1d2830,#171f26);background-size:480px 480px,100% 100%}
html[data-etch] main section,html[data-etch] section.trust{border-bottom:1px solid var(--kerf);box-shadow:0 1px 0 var(--bevel)}
html[data-etch] section.trust{border-top:1px solid var(--kerf);background:linear-gradient(180deg,rgba(255,255,255,.025),rgba(0,0,0,.08))}
html[data-etch] section.raised{background:rgba(0,0,0,.14)}
html[data-etch] .trust-list li{border-left-color:var(--kerf)!important;box-shadow:inset 1px 0 0 rgba(255,255,255,.04)}
html[data-etch] .process::before{background:linear-gradient(90deg,var(--kerf),var(--kerf));height:3px;box-shadow:0 1px 0 rgba(255,255,255,.07)}
@media (max-width:900px){html[data-etch] .process::before{width:3px;height:auto;box-shadow:1px 0 0 rgba(255,255,255,.07)}}
html[data-etch] .step-ico{background:linear-gradient(180deg,#1e2830,#141b21);box-shadow:0 0 0 1px var(--kerf),0 0 0 6px var(--plate)}
html[data-etch] .article-content ul li::before{background:var(--kerf);box-shadow:0 0 0 1.5px rgba(142,230,255,.85)}

/* un-cut state (motion allowed, before the jet reaches a part): no kerf yet, only the operator's scribe line */
@container style(--cut-hold: 1){html.etch-armed :is(.svc-card,.link-card,.fx-cta,.who,.side-panel,.photo-grid figure):not(.etch-done){border-color:transparent!important;box-shadow:none}
html.etch-armed :is(main section,section.trust):not(.etch-done){border-bottom-color:transparent;box-shadow:none}
}.etch-o{position:absolute;left:-1px;top:-1px;pointer-events:none;overflow:visible;z-index:2}
.etch-o .sc{fill:none;stroke:var(--scribe);stroke-width:1;stroke-dasharray:2 5}
.etch-o .kd{fill:none;stroke:var(--kerf);stroke-width:2}
.etch-o .kb{fill:none;stroke:rgba(255,255,255,.09);stroke-width:1;transform:translate(.8px,.9px)}
.etch-o .hot{fill:none;stroke:#dff7ff;stroke-width:2;stroke-linecap:round}
.etch-line{position:absolute;left:0;bottom:-2px;width:100%;height:4px;pointer-events:none;overflow:visible;z-index:2}
html[data-etch] :is(.svc-card,.link-card,.fx-cta,.who,.side-panel,.photo-grid figure){position:relative}
html[data-etch] main section{position:relative}

/* spark / mist layer (one fixed canvas, drawn only while something is being cut) */
.etch-fx{position:fixed;left:0;top:0;width:100vw;height:100vh;pointer-events:none;z-index:45}

/* ---------- footer: etched plate with bolts ---------- */
html[data-etch] footer.site-footer{
  background:var(--brushed),
    radial-gradient(circle at 50% 50%,#56636d 0 1.6px,#2a333a 2.2px,#0a0e11 3.4px,transparent 4.4px) 12px 12px/14px 14px no-repeat,
    radial-gradient(circle at 50% 50%,#56636d 0 1.6px,#2a333a 2.2px,#0a0e11 3.4px,transparent 4.4px) calc(100% - 12px) 12px/14px 14px no-repeat,
    linear-gradient(180deg,#151c22,#0e1317);
  background-size:480px 480px,14px 14px,14px 14px,100% 100%;
  border-top:1px solid var(--kerf);box-shadow:inset 0 1px 0 var(--bevel)}
html[data-etch] .foot-col a,html[data-etch] .foot-tag,html[data-etch] .foot-legal{text-shadow:0 -1px 0 rgba(0,0,0,.8)}
html[data-etch] .foot-legal::before{background:var(--kerf);box-shadow:0 1px 0 var(--bevel)}
html[data-etch] .reqbar{background:var(--brushed),linear-gradient(180deg,#1a232a,#12181d);background-size:480px 480px,100% 100%;border-top:1px solid var(--kerf);box-shadow:inset 0 1px 0 var(--bevel)}

@media (prefers-reduced-motion:reduce){.ep-piece,.etch-svg .eh use{transition:none}}
@media (forced-colors:active){.etch-fx,.etch-part,.etch-o,.etch-line{display:none}.etch-svg .ef{fill:CanvasText}}
