/* glass-how.css: the dark glass box behind "How we work". Pairs with glass-how.js. Loaded last.
   Everything that changes the page sits under html.hg (set by glass-how.js), so without JS the section is exactly as it was. */

/* ---- the glass layer (injected by glass-how.js as the box's first child) ---- */
.hg-bg{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none;border-radius:inherit;background:#0B2C25}
.hg-bg .hg-fall{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 36%;display:block;filter:grayscale(1) contrast(1.1) brightness(.8);mix-blend-mode:luminosity;opacity:.5}
.hg-bg .hg-gl{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:0;transition:opacity .8s ease}
.hg-bg.hg-gl-on .hg-gl{opacity:1}
/* css flutes: shown until WebGL has its first frame, and kept (static) when WebGL is missing or motion is reduced */
.hg-bg .hg-flutes{position:absolute;inset:0;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);background:
  radial-gradient(ellipse 34% 52% at 15% 28%,rgba(5,22,16,.5),rgba(5,22,16,0) 100%),
  linear-gradient(180deg,rgba(7,19,15,.34) 0,rgba(7,19,15,.34) 45%,rgba(7,19,15,.5) 100%),
  repeating-linear-gradient(90deg,rgba(143,203,176,0) 0,rgba(143,203,176,.16) 3px,rgba(143,203,176,0) 8px,rgba(3,12,9,.30) 16px,rgba(3,12,9,.34) 19px)}
.hg-bg.hg-gl-on .hg-fall,.hg-bg.hg-gl-on .hg-flutes{visibility:hidden;transition:visibility 0s .85s}

/* ---- the box: .hp keeps its shape, the glass fills it ---- */
html.hg #how .hg-host{position:relative;overflow:hidden;isolation:isolate;background:#0B2C25;color:#F6F4EE}
html.hg #how .hp>*:not(.hg-bg){position:relative;z-index:1}
html.hg #how .hp>.hg-bg{position:absolute;inset:0;z-index:0}
html.hg #how .hp>.flow{z-index:2}
html.hg #how .hp:after{content:"";position:absolute;inset:0;z-index:2;border-radius:inherit;pointer-events:none;box-shadow:inset 0 0 0 1px rgba(255,255,255,.1)}

/* a soft green-black scrim behind the heading and the two points, so the type holds contrast wherever the light is */
html.hg #how .hpt,html.hg #how .pts{isolation:isolate}
html.hg #how .hpt:before,html.hg #how .pts:before{content:"";position:absolute;z-index:-1;pointer-events:none}
html.hg #how .hpt:before{inset:-40px -90px -40px -60px;background:radial-gradient(ellipse at 40% 50%,rgba(4,20,15,.78) 0,rgba(4,20,15,.5) 50%,rgba(4,20,15,0) 74%)}
html.hg #how .pts:before{inset:-70px -90px -60px -90px;background:radial-gradient(ellipse at 50% 58%,rgba(4,20,15,.7) 0,rgba(4,20,15,.5) 45%,rgba(4,20,15,0) 72%)}
html.hg #how .hp .lbl,html.hg #how .hp h2 em{color:#8FCBB0}
html.hg #how .hp .pts p{color:#F6F4EE}

/* cards: dark frosted glass with a mint hairline so the edges never merge into the flutes */
html.hg #how .hp .fn{-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
html.hg #how .hp .fn:not(.mid){background:rgba(7,19,15,.45);-webkit-backdrop-filter:blur(14px) saturate(1.1);backdrop-filter:blur(14px) saturate(1.1);
  box-shadow:inset 0 0 0 1px rgba(143,203,176,.18),0 16px 34px -18px rgba(0,0,0,.6)}
html.hg #how .hp .fn:not(.mid) b{color:#F6F4EE}
html.hg #how .hp .fn:not(.mid) small{color:rgba(246,244,238,.86)}
html.hg #how .hp .fn.mid,html.hg #how.pr-in .hp .fn.mid{background:#8FCBB0}
html.hg #how .hp .fn.mid b,html.hg #how .hp .fn.mid small{color:#114136}

/* ---- phones ---- */
@media (max-width:860px){
  html.hg #how .hpt:before{inset:-30px -30px -30px -30px}
  html.hg #how .pts:before{inset:-60px -18px -40px -18px;background:linear-gradient(180deg,rgba(4,20,15,0) 0,rgba(4,20,15,.66) 26%,rgba(4,20,15,.66) 100%)}
  html.hg #how .hp .fn{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
}

/* ---- reduced motion: the glass stays still (poster + css flutes, no video) ---- */
@media (prefers-reduced-motion:reduce){
  .hg-bg .hg-gl{display:none}
}

/* r47: the raised Cartesian card keeps its icon and text on the same line as the other three */
@media (min-width:701px){html.hg #how .hp .fn.mid,html.hg #how.pr-in .hp .fn.mid{padding-top:30px;padding-bottom:40px}}
/* r47c: the old pulse ring around Cartesian read as a second edge on the glass */
html.hg #how .hp .mrg{display:none!important}
