/* ============================================================
   security.css  ·  Tercero Analytics — Data & security page
   Loaded AFTER styles.css, only on security.html.
   Owns the whole page's contrast + the mesh-network treatment.

   CONTRAST CONTRACT (every text/bg pair stated):
   - Page light sections: --cloud/--paper bg  ->  --ink / --ink-soft text
   - Teal on light: ALWAYS --teal-deep (#00866a), never --teal (fails on white)
   - Principle band: --deep bg  ->  --snow text, teal accent --teal
   - Contact: --deep bg  ->  --snow / --snow-soft text
   No light/white text ever sits on a light/white background on this page.
   ============================================================ */

/* ---- page rhythm: comfortable measures, fill the space (no early wrap) ---- */
.secpage .lead{max-width:74ch;}
.secpage .sec-head{max-width:80ch;}
.secpage .secsum{max-width:78ch;margin-top:clamp(2rem,4vw,2.8rem);font-size:1rem;line-height:1.7;}

/* ============================================================
   1) HERO  —  light (cloud) bg, dark text, depth
   ============================================================ */
.sechero{padding-bottom:clamp(3rem,6vw,4.5rem);}
/* tighten the headline measure so it fills, no narrow column */
.sechero h1{max-width:24ch;}
.sechero h1 .em{color:var(--teal);}                               /* teal on dark — visible */

/* ---- intro block: lead-in line carries weight, supporting line steps down ----
   #31: the flat single paragraph read weakly. Split into a confident lead-in
   (darker ink, larger) + a quieter supporting line (muted, smaller), with a
   left signal-rail to anchor it. Honest GDPR/SOC 2 wording kept verbatim. */
.sechero .sec-intro{
  max-width:60ch;
  margin-top:clamp(1.4rem,3vw,2rem);
  padding-left:clamp(1rem,2.4vw,1.6rem);
  border-left:2px solid color-mix(in srgb,var(--teal-deep) 40%,var(--rule-l));
}
.sechero .sec-intro-lead{
  margin:0;
  color:var(--ink);                                              /* ink #0d1b24 on cloud — full strength lead-in */
  font-size:clamp(1.18rem,1.04rem + .6vw,1.42rem);
  line-height:1.5;
  font-weight:500;
  letter-spacing:-.01em;
  max-width:none;
}
.sechero .sec-intro-sub{
  margin:.95rem 0 0;
  color:var(--ink-soft);                                         /* ink-soft #52656f on cloud — supporting detail */
  font-size:1.02rem;
  line-height:1.65;
  max-width:58ch;
}

/* compliance pills: dark text + white chip on the light hero.
   (the global fix already does this; we restate it explicitly and
    add depth so they read as solid, confident badges) */
.sechero .complior{gap:.8rem;margin-top:clamp(1.8rem,4vw,2.6rem);}
.sechero .complior .pill{
  color:var(--ink);                                              /* ink #0d1b24 on white chip */
  background:var(--cloud);
  border:1px solid var(--rule-l);
  border-radius:999px;
  padding:.62rem 1.1rem .62rem .95rem;
  font-weight:500;font-size:.92rem;
  box-shadow:0 1px 2px rgba(14,26,36,.05), 0 10px 28px -22px rgba(14,26,36,.4);
  transition:transform .3s var(--e-out),box-shadow .3s var(--e-out),border-color .3s;
}
.sechero .complior .pill:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--teal) 35%,var(--rule-l));box-shadow:0 1px 2px rgba(14,26,36,.05),0 16px 34px -22px rgba(14,26,36,.45);}
.sechero .complior .pill .dt{width:9px;height:9px;background:var(--teal-deep);box-shadow:0 0 0 4px rgba(0,134,106,.16);}
.sechero .complior .pill.prog{border-color:color-mix(in srgb,var(--warn) 45%,var(--rule-l));}
.sechero .complior .pill.prog .dt{background:#b88a1f;box-shadow:0 0 0 4px rgba(197,160,70,.18);}  /* darker amber dot reads on white */

/* ============================================================
   2) THE MESH  —  six commitments as one connected system
   ============================================================ */
.secmesh-sec{padding-top:clamp(3.5rem,7vw,6rem);}
.secmesh-sec .lead-sub{margin-top:1.1rem;color:var(--ink-soft);max-width:64ch;font-size:1.05rem;line-height:1.6;}

.secmesh{
  position:relative;
  margin-top:clamp(2.2rem,5vw,3.4rem);
  border:1px solid var(--rule-l);
  border-radius:6px;
  background:
    linear-gradient(180deg,var(--cloud),#f4f9fa);
  box-shadow:0 30px 80px -50px rgba(14,26,36,.5);
  overflow:hidden;
}

/* the animated dot + line field, behind the nodes */
.mesh-field{
  position:absolute;inset:0;width:100%;height:100%;
  z-index:0;pointer-events:none;
}
.mesh-field .mesh-links path{
  opacity:.22;
  stroke-dasharray:5 7;
}
html.js .secmesh.js-mesh .mesh-field .mesh-links path{
  stroke-dasharray:520;stroke-dashoffset:520;
  animation:meshDraw 2.4s var(--e-out) forwards;
}
.secmesh.js-mesh .mesh-field .mesh-links path:nth-child(2){animation-delay:.12s}
.secmesh.js-mesh .mesh-field .mesh-links path:nth-child(3){animation-delay:.20s}
.secmesh.js-mesh .mesh-field .mesh-links path:nth-child(4){animation-delay:.28s}
.secmesh.js-mesh .mesh-field .mesh-links path:nth-child(5){animation-delay:.36s}
.secmesh.js-mesh .mesh-field .mesh-links path:nth-child(6){animation-delay:.44s}
.secmesh.js-mesh .mesh-field .mesh-links path:nth-child(7){animation-delay:.52s}
.secmesh.js-mesh .mesh-field .mesh-links path:nth-child(8){animation-delay:.60s}
.secmesh.js-mesh .mesh-field .mesh-links path:nth-child(9){animation-delay:.68s}
.secmesh.js-mesh .mesh-field .mesh-links path:nth-child(10){animation-delay:.76s}
@keyframes meshDraw{to{stroke-dashoffset:0;opacity:.26;}}
.mesh-field .mesh-dots circle{filter:drop-shadow(0 0 3px rgba(0,184,148,.4));}

/* node constellation layer */
.mesh-nodes{
  position:relative;z-index:2;
  list-style:none;margin:0;padding:0;
  /* tall enough to hold the constellation; nodes are absolutely placed */
  height:clamp(440px,52vw,560px);
}
.mnode{
  position:absolute;
  left:var(--mx);top:var(--my);
  transform:translate(-50%,-50%);
  width:min(280px,30%);
}

/* the node button — the "really nice icon" that opens */
.mnode-btn{
  display:flex;align-items:center;gap:.7rem;width:100%;
  padding:.7rem .9rem;
  background:var(--cloud);
  border:1px solid var(--rule-l);
  border-radius:999px;
  cursor:pointer;text-align:left;
  font-family:var(--sans);
  box-shadow:0 2px 6px rgba(14,26,36,.06), 0 18px 38px -26px rgba(14,26,36,.5);
  transition:transform .32s var(--e-out),box-shadow .32s var(--e-out),border-color .32s,background .32s;
}
.mnode-btn:hover,.mnode-btn:focus-visible{
  transform:translateY(-3px);
  border-color:color-mix(in srgb,var(--teal) 50%,var(--rule-l));
  box-shadow:0 6px 14px rgba(0,134,106,.12), 0 26px 50px -28px rgba(14,26,36,.55);
}
.mnode.is-open .mnode-btn{
  border-color:var(--teal-deep);
  background:#f3fbf9;
  box-shadow:0 6px 16px rgba(0,134,106,.16), 0 28px 54px -28px rgba(14,26,36,.55);
}
.mnode-ic{
  width:42px;height:42px;flex:none;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  color:var(--teal-deep);                                        /* teal-deep icon on light disc — readable */
  background:rgba(0,134,106,.08);
  border:1px solid color-mix(in srgb,var(--teal-deep) 30%,transparent);
  transition:transform .32s var(--e-out),background .32s,color .32s;
}
.mnode-ic svg{width:21px;height:21px;}
.mnode-btn:hover .mnode-ic,.mnode.is-open .mnode-btn .mnode-ic{
  transform:scale(1.05);
  background:var(--teal-deep);color:var(--cloud);                /* white glyph on teal-deep — strong contrast */
}
.mnode-label{
  flex:1 1 auto;min-width:0;
  font-weight:600;font-size:.92rem;line-height:1.2;
  color:var(--ink);                                              /* ink on white button */
  letter-spacing:-.005em;
}
/* status chip on the node */
.mnode .st{
  flex:none;display:inline-block;
  font-family:var(--mono);font-size:.58rem;letter-spacing:.1em;text-transform:uppercase;
  padding:.22em .5em;border-radius:999px;border:1px solid;
}
.mnode .st.live{color:var(--teal-deep);border-color:color-mix(in srgb,var(--teal-deep) 55%,transparent);background:rgba(0,134,106,.06);}
.mnode .st.prog{color:#8a6d1c;border-color:#c5a046;background:rgba(197,160,70,.1);}  /* dark amber text on pale fill */

/* the expanded panel — a clean, well-lit reveal under the node */
.mnode-panel{
  position:absolute;left:50%;top:calc(100% + 12px);
  transform:translateX(-50%);
  width:min(360px,86vw);z-index:5;
  background:var(--cloud);
  border:1px solid var(--rule-l);
  border-top:2px solid var(--teal-deep);
  border-radius:4px;
  padding:1.1rem 1.2rem 1.2rem;
  box-shadow:0 30px 70px -34px rgba(14,26,36,.6);
}
.mnode-panel h3{
  font-family:var(--exp);font-weight:700;font-size:1.04rem;
  color:var(--ink);                                              /* ink heading on white panel */
  margin-bottom:.5rem;letter-spacing:-.01em;line-height:1.15;
}
.mnode-panel p{
  color:var(--ink-soft);                                         /* ink-soft body on white panel */
  font-size:.93rem;line-height:1.62;margin:0;
}
/* small connector dot from node to panel */
.mnode-panel::before{
  content:"";position:absolute;top:-7px;left:50%;transform:translateX(-50%) rotate(45deg);
  width:12px;height:12px;background:var(--cloud);
  border-left:1px solid var(--rule-l);border-top:1px solid var(--rule-l);
}
/* animate the panel open (only when JS toggles it) */
html.js .secmesh.js-mesh .mnode.is-open .mnode-panel{
  animation:panelIn .34s var(--e-out);
}
@keyframes panelIn{from{opacity:0;transform:translateX(-50%) translateY(-6px);}to{opacity:1;transform:translateX(-50%) translateY(0);}}

/* nudge panels that sit on the bottom row to open UPWARD so they don't clip */
.mnode[style*="--my:73%"] .mnode-panel,
.mnode[style*="--my:81%"] .mnode-panel{
  top:auto;bottom:calc(100% + 12px);
}
.mnode[style*="--my:73%"] .mnode-panel::before,
.mnode[style*="--my:81%"] .mnode-panel::before{
  top:auto;bottom:-7px;
  border-left:none;border-top:none;
  border-right:1px solid var(--rule-l);border-bottom:1px solid var(--rule-l);
}

/* keep the LEFT column panels anchored toward the interior (left edge near node) */
.mnode[style*="--mx:20%"] .mnode-panel{left:0;transform:none;}
.mnode[style*="--mx:20%"] .mnode-panel::before{left:28px;}
/* keep the RIGHT column panels anchored toward the interior (right edge near node) */
.mnode[style*="--mx:80%"] .mnode-panel{left:auto;right:0;transform:none;}
.mnode[style*="--mx:80%"] .mnode-panel::before{left:auto;right:28px;transform:rotate(45deg);}
/* side-column panels don't use the centered open animation transform */
html.js .secmesh.js-mesh .mnode[style*="--mx:20%"].is-open .mnode-panel,
html.js .secmesh.js-mesh .mnode[style*="--mx:80%"].is-open .mnode-panel{
  animation:panelInSide .34s var(--e-out);
}
@keyframes panelInSide{from{opacity:0;transform:translateY(-6px);}to{opacity:1;transform:none;}}

/* hint line under the mesh */
.mesh-hint{
  position:relative;z-index:2;
  margin:0;padding:1rem 1.2rem;
  border-top:1px solid var(--rule-l);
  display:flex;align-items:center;flex-wrap:wrap;gap:.5rem 1rem;
  font-family:var(--mono);font-size:.74rem;letter-spacing:.04em;
  color:var(--ink-soft);                                         /* ink-soft on the mesh's pale-white bg */
  background:rgba(255,255,255,.5);
}
.mesh-hint-key{display:inline-flex;align-items:center;gap:.5rem;color:var(--ink-soft);}
.mesh-hint-key b{color:var(--teal-deep);font-family:var(--exp);font-weight:800;font-size:.86rem;}
.mesh-hint-key .sep{opacity:.5;}

/* -------- NO-JS fallback: render the nodes as a readable grid -------- */
/* When JS hasn't run, panels stay visible and the constellation collapses
   into a clean two-column card grid — still fully legible, no overlap. */
html:not(.js) .secmesh .mesh-field,
.secmesh:not(.js-mesh) .mesh-field{display:none;}
html:not(.js) .secmesh .mesh-nodes,
.secmesh:not(.js-mesh) .mesh-nodes{
  position:static;height:auto;
  display:grid;grid-template-columns:repeat(2,1fr);gap:1px;
  background:var(--rule-l);padding:1px;
}
html:not(.js) .secmesh .mnode,
.secmesh:not(.js-mesh) .mnode{
  position:static;transform:none;width:auto;
  background:var(--cloud);padding:1.6rem 1.5rem;
  display:flex;flex-direction:column;gap:.4rem;
}
html:not(.js) .secmesh .mnode-btn,
.secmesh:not(.js-mesh) .mnode-btn{
  border:none;border-radius:0;box-shadow:none;background:transparent;padding:0;cursor:default;
}
html:not(.js) .secmesh .mnode-panel,
.secmesh:not(.js-mesh) .mnode-panel{
  position:static;transform:none;width:auto;box-shadow:none;border:none;border-top:1px solid var(--rule-l);
  margin-top:.7rem;padding:.7rem 0 0;
}
html:not(.js) .secmesh .mnode-panel::before,
.secmesh:not(.js-mesh) .mnode-panel::before{display:none;}
/* force the [hidden] panels visible when JS isn't driving the reveal */
html:not(.js) .secmesh .mnode-panel[hidden],
.secmesh:not(.js-mesh) .mnode-panel[hidden]{display:block;}
html:not(.js) .secmesh .mesh-hint,
.secmesh:not(.js-mesh) .mesh-hint{grid-column:1/-1;}
/* in the no-JS grid the button isn't interactive — drop the focus affordance */
html:not(.js) .secmesh .st{align-self:flex-start;}

/* ============================================================
   3) PRINCIPLE BAND  —  dark, the one deliberate dark beat
   ============================================================ */
.secband-principle{
  background:
    radial-gradient(60% 90% at 50% -10%, rgba(0,184,148,.14), transparent 60%),
    linear-gradient(180deg,var(--deep),var(--deep-2));
  border-top:1px solid var(--rule-d);
  border-bottom:1px solid var(--rule-d);
  text-align:center;
}
.secband-principle .eyebrow{color:var(--teal);}                  /* teal on dark — fine */
.secband-principle .eyebrow::before{background:var(--teal);}
.secband-principle .wrap{max-width:34ch;margin-inline:auto;}
.secband-principle p{
  color:var(--snow);                                             /* snow on dark — fine */
  margin-inline:auto;
}
.secband-principle p b{color:var(--teal);}

/* ============================================================
   4) CONTACT  —  dark; restate the pairs for safety
   ============================================================ */
.secpage .contact h2{color:var(--snow);}
.secpage .contact .lead.muted{color:var(--snow-soft);}
.secpage .contact .note{color:var(--snow-soft);}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* tablet: constellation gets cramped — collapse to a clean accordion grid */
@media (max-width:900px){
  .secmesh .mesh-field{display:none;}
  .secmesh .mesh-nodes{
    position:static;height:auto;
    display:grid;grid-template-columns:repeat(2,1fr);gap:1px;
    background:var(--rule-l);padding:1px;
  }
  .secmesh .mnode{
    position:static;transform:none;width:auto;
    background:var(--cloud);padding:1.4rem 1.4rem;
    display:flex;flex-direction:column;gap:.2rem;
  }
  .secmesh .mnode-btn{
    border:none;border-radius:0;box-shadow:none;background:transparent;padding:0;
    transform:none!important;
  }
  .secmesh .mnode-btn:hover{box-shadow:none;}
  .secmesh .mnode.is-open .mnode-btn{background:transparent;box-shadow:none;}
  .secmesh .mnode-panel{
    position:static;transform:none;width:auto;box-shadow:none;
    border:none;border-top:1px solid var(--rule-l);border-radius:0;
    margin-top:.85rem;padding:.85rem 0 0;
  }
  .secmesh .mnode-panel::before{display:none;}
  /* mobile/tablet animation: simple height-ish fade, no transform offset */
  html.js .secmesh.js-mesh .mnode.is-open .mnode-panel{animation:panelInFlat .3s var(--e-out);}
  @keyframes panelInFlat{from{opacity:0;transform:translateY(-4px);}to{opacity:1;transform:none;}}
  .secmesh .mesh-hint{grid-column:1/-1;}
}

/* phone: single column */
@media (max-width:560px){
  .secmesh .mesh-nodes{grid-template-columns:1fr;}
  .sechero .complior{gap:.6rem;}
  .sechero .complior .pill{font-size:.86rem;padding:.55rem .9rem .55rem .8rem;}
  .mnode-label{font-size:.96rem;}
}

/* ============================================================
   REDUCED MOTION  —  static, still fully readable
   ============================================================ */
@media (prefers-reduced-motion:reduce){
  .mesh-field .mesh-links path{animation:none!important;stroke-dashoffset:0!important;stroke-dasharray:5 7;opacity:.24;}
  html.js .secmesh.js-mesh .mnode.is-open .mnode-panel{animation:none!important;}
  .mnode-btn,.mnode-ic{transition:none;}
  .sechero .complior .pill{transition:none;}
  .shield-body,.sn{animation:none;}
}

/* ============================================================
   HERO — dark, particle network + 2-col layout with shield
   ============================================================ */
.sec-hero-wrap{
  display:grid;grid-template-columns:1fr auto;
  gap:clamp(2rem,5vw,5rem);align-items:center;
  position:relative;z-index:1;
}
.sec-hero-text{max-width:52ch;}

.sec-shield-svg{
  width:clamp(280px,32vw,440px);height:auto;
  display:block;overflow:visible;
}
.sec-shield-svg .badge-txt{
  font-family:var(--mono);font-size:15px;font-weight:500;
  fill:#cfeee7;letter-spacing:.04em;
}
.sec-shield-svg .badge-prog{fill:#3ff0cf;fill-opacity:.75;}

@keyframes shieldBreath{
  0%,100%{fill:rgba(0,184,148,.05);}
  50%{fill:rgba(0,184,148,.12);}
}
.shield-body{animation:shieldBreath 5s ease-in-out infinite;}

@keyframes snPulse{
  0%,100%{opacity:.85;}
  50%{opacity:1;filter:drop-shadow(0 0 7px rgba(63,240,207,.75));}
}
.sn{animation:snPulse 2.8s ease-in-out infinite;}

/* ============================================================
   TRUST STRIP — dark, Teddy quote + compliance pills
   ============================================================ */
.sec-trust-strip{
  background:
    radial-gradient(70% 120% at 50% -5%,rgba(0,184,148,.10),transparent 55%),
    linear-gradient(180deg,var(--deep-2),var(--deep));
  border-top:1px solid var(--rule-d);
  border-bottom:1px solid var(--rule-d);
  padding:clamp(3rem,6vw,5rem) 0;
}
.trust-quote{
  margin:0 auto;text-align:center;
  max-width:66ch;padding:0 1rem;
}
.trust-quote .quote-mark{
  width:40px;height:auto;margin:0 auto 1.6rem;
  display:block;opacity:.7;
}
.trust-quote p{
  font-family:var(--exp);font-weight:700;
  font-size:clamp(1.35rem,1.05rem + 1.25vw,2.1rem);
  line-height:1.26;color:var(--snow);
  letter-spacing:-.02em;margin:0 0 1.6rem;
}
.trust-quote cite{
  font-family:var(--mono);font-size:.82rem;
  letter-spacing:.08em;color:var(--teal);
  text-transform:uppercase;font-style:normal;display:block;
}
.trust-below{
  max-width:64ch;margin:clamp(2rem,4vw,3rem) auto 0;text-align:center;
}
.trust-sub{
  font-size:1rem;line-height:1.65;
  color:rgba(255,255,255,.55)!important;
  margin:0 0 clamp(1.5rem,3vw,2.2rem);
}
.sec-trust-strip .complior{justify-content:center;}
.sec-trust-strip .complior .pill{
  color:var(--snow);background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.15);
}
.sec-trust-strip .complior .pill .dt{
  background:var(--teal);box-shadow:0 0 0 4px rgba(0,184,148,.2);
}
.sec-trust-strip .complior .pill.prog{border-color:rgba(197,160,70,.35);}
.sec-trust-strip .complior .pill.prog .dt{
  background:#c5a046;box-shadow:0 0 0 4px rgba(197,160,70,.18);
}

/* collapse shield on narrow viewport */
@media(max-width:860px){
  .sec-hero-wrap{grid-template-columns:1fr;}
  .sec-hero-shield{display:none;}
}
@media(max-width:560px){
  .trust-quote p{font-size:1.22rem;}
}

/* ============================================================
   FLOATING COMMITMENTS MESH  —  WHITE strip, hero-style particle
   network behind, 6 icon nodes floating + interconnected, panels
   reveal on hover. Breaks the run of dark sections.
   ============================================================ */

/* ---- section: white, breaks the dark; particle canvas behind ---- */
.floating-mesh-sec{
  background:linear-gradient(180deg,#ffffff,#f3f9fa);
  border-top:1px solid var(--rule-l);
  border-bottom:1px solid var(--rule-l);
  overflow:hidden;
  padding-top:clamp(3.5rem,7vw,6rem);
}
.floating-mesh-sec > .wrap{position:relative;z-index:1;}   /* sit above the particle canvas */
.floating-mesh-sec .sec-head{text-align:center;max-width:64ch;margin-inline:auto;}
.floating-mesh-sec .sec-head h2{color:var(--ink);max-width:24ch;margin-inline:auto;}

/* ---- mesh container: TRANSPARENT, no box — nodes float free ---- */
.floating-mesh-sec .secmesh{
  background:transparent;border:none;border-radius:0;box-shadow:none;
  overflow:visible;
  margin-top:clamp(2.4rem,5vw,3.6rem);
}

/* ---- connector lines: teal, slowly flowing (data through the net) ---- */
.floating-mesh-sec .mesh-links{stroke:var(--teal-deep);stroke-opacity:.5;}
html.js .floating-mesh-sec .secmesh.js-mesh .mesh-field .mesh-links path,
.floating-mesh-sec .mesh-field .mesh-links path{
  stroke-dasharray:5 9;stroke-dashoffset:0;opacity:.55;
  animation:meshFlow 7s linear infinite;
}
.floating-mesh-sec .mesh-field .mesh-links path:nth-child(even){animation-duration:9s;}
@keyframes meshFlow{to{stroke-dashoffset:-56;}}
.floating-mesh-sec .mesh-field .mesh-dots circle{fill:var(--teal-deep);filter:drop-shadow(0 0 3px rgba(0,134,106,.45));}

/* ---- node: floating icon-only circle on white ---- */
.floating-mesh-sec .mnode{width:auto;}
.floating-mesh-sec .mnode-btn{
  width:78px;height:78px;
  padding:0;border-radius:50%;
  flex-direction:column;justify-content:center;gap:0;
  background:#ffffff;
  border:1.5px solid color-mix(in srgb,var(--teal-deep) 32%,var(--rule-l));
  box-shadow:0 6px 18px -6px rgba(0,134,106,.22),0 18px 40px -28px rgba(14,26,36,.5);
  animation:nodeFloat 6s ease-in-out infinite;
}
.floating-mesh-sec .mnode:nth-child(1) .mnode-btn{animation-delay:0s;}
.floating-mesh-sec .mnode:nth-child(2) .mnode-btn{animation-delay:-1s;}
.floating-mesh-sec .mnode:nth-child(3) .mnode-btn{animation-delay:-2s;}
.floating-mesh-sec .mnode:nth-child(4) .mnode-btn{animation-delay:-3s;}
.floating-mesh-sec .mnode:nth-child(5) .mnode-btn{animation-delay:-4s;}
.floating-mesh-sec .mnode:nth-child(6) .mnode-btn{animation-delay:-5s;}
@keyframes nodeFloat{
  0%,100%{transform:translateY(0);box-shadow:0 6px 18px -6px rgba(0,134,106,.22),0 18px 40px -28px rgba(14,26,36,.5);}
  50%{transform:translateY(-8px);box-shadow:0 14px 26px -8px rgba(0,134,106,.28),0 26px 52px -30px rgba(14,26,36,.55);}
}

/* hide text in button — panel carries it */
.floating-mesh-sec .mnode-label,
.floating-mesh-sec .mnode .st{display:none;}

/* bigger teal icon */
.floating-mesh-sec .mnode-ic{
  width:54px;height:54px;
  background:rgba(0,134,106,.08);
  border:none;color:var(--teal-deep);border-radius:50%;
  transition:background .3s,color .3s,transform .3s var(--e-out);
}
.floating-mesh-sec .mnode-ic svg{width:27px;height:27px;}

/* hover / open */
@media(hover:hover){
  .floating-mesh-sec .mnode-btn:hover{
    border-color:var(--teal-deep);
    box-shadow:0 16px 30px -8px rgba(0,134,106,.32),0 0 0 6px rgba(0,134,106,.07);
    transform:scale(1.08);animation:none;
  }
}
.floating-mesh-sec .mnode.is-open .mnode-btn{
  border-color:var(--teal-deep);background:#f3fbf9;
  box-shadow:0 16px 34px -10px rgba(0,134,106,.3);animation:none;
}
.floating-mesh-sec .mnode-btn:hover .mnode-ic,
.floating-mesh-sec .mnode.is-open .mnode-btn .mnode-ic{
  background:var(--teal-deep);color:#fff;transform:scale(1.04);
}

/* ---- panels: white glass, reveal on hover ---- */
.floating-mesh-sec .secmesh .mnode-panel{
  display:block!important;
  opacity:0;pointer-events:none;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  border:1px solid var(--rule-l);
  border-top:2px solid var(--teal-deep);
  box-shadow:0 28px 60px -24px rgba(14,26,36,.5);
  transition:opacity .3s var(--e-out);
}
.floating-mesh-sec .secmesh .mnode:hover .mnode-panel,
.floating-mesh-sec .secmesh .mnode.is-open .mnode-panel,
.floating-mesh-sec .secmesh .mnode:focus-within .mnode-panel{
  opacity:1;pointer-events:auto;
}
.floating-mesh-sec .mnode-panel h3{color:var(--ink);}
.floating-mesh-sec .mnode-panel p{color:var(--ink-soft);}
.floating-mesh-sec .mnode-panel::before{
  background:rgba(255,255,255,.96);
  border-left-color:var(--rule-l);border-top-color:var(--rule-l);
}
.floating-mesh-sec .mnode[style*="--my:73%"] .mnode-panel::before,
.floating-mesh-sec .mnode[style*="--my:81%"] .mnode-panel::before{
  background:rgba(255,255,255,.96);
  border-right-color:var(--rule-l);border-bottom-color:var(--rule-l);
}

/* touch / no-hover: panels always visible */
@media(hover:none){
  .floating-mesh-sec .secmesh .mnode-panel{opacity:1!important;pointer-events:auto;}
}

/* ---- responsive: collapse to readable card grid ---- */
@media(max-width:900px){
  .floating-mesh-sec .secmesh .mnode-panel{
    opacity:1!important;pointer-events:auto;
    background:rgba(255,255,255,.7);border:none;border-top:1px solid var(--rule-l);
  }
  .floating-mesh-sec .mnode-btn{
    border-radius:0;box-shadow:none;animation:none;
    width:auto;height:auto;padding:.7rem .9rem;
    background:transparent;border:none;flex-direction:row;gap:.7rem;
  }
  .floating-mesh-sec .mnode-label{display:inline;color:var(--ink);}
  .floating-mesh-sec .mnode .st{display:inline-block;}
  .floating-mesh-sec .mnode-ic{width:42px;height:42px;}
  .floating-mesh-sec .mnode-ic svg{width:21px;height:21px;}
  .floating-mesh-sec .secmesh .mnode{background:transparent;padding:1.4rem;}
}

@media(prefers-reduced-motion:reduce){
  .floating-mesh-sec .mnode-btn{animation:none;}
  .floating-mesh-sec .mesh-field .mesh-links path{animation:none;stroke-dashoffset:0;}
}
