/* FOLDEXC Warm Paper & Dark Warm Landing Overrides
   Preserves 100% treg.to layout, spacing, typography & animations
   while unifying palette with FOLDEXC (#F3EFE6 / #141413 / #1B4D2E / #161513). */

:root {
  --bg: #F3EFE6 !important;
  --surface: #FAF8F3 !important;
  --card: #FAF8F3 !important;
  --ink: #141413 !important;
  --text: #141413 !important;
  --muted: #6E6A61 !important;
  --line: #DDD7C9 !important;
  --border: #DDD7C9 !important;
  --accent: #1B4D2E !important;
  --green: #1B4D2E !important;
}

html,
body {
  background: #F3EFE6 !important;
  color: #141413 !important;
}

/* Sticky pill navigation bar */
.navwrap .nav {
  background: rgba(250, 248, 243, 0.92) !important;
  border-color: #DDD7C9 !important;
  color: #141413 !important;
  backdrop-filter: blur(10px);
}
.navwrap .nav .links {
  display: flex;
  align-items: center;
  gap: 14px;
}
.navwrap .nav a:not(.candy) {
  color: #5C5951 !important;
}
.navwrap .nav a:not(.candy):hover {
  color: #141413 !important;
}
.navwrap .nav a.nav-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  transition: background-color 150ms ease, color 150ms ease;
}
.navwrap .nav a.nav-icon-link:hover {
  background: rgba(20, 20, 19, 0.06);
}
.navwrap .nav a.nav-icon-link svg {
  width: 18px;
  height: 18px;
}
.navwrap .nav a.candy,
.navwrap .nav a.candy:hover {
  color: #161513 !important;
}
.navwrap .nav a.nav-github-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 150ms ease, color 150ms ease;
}
.navwrap .nav a.nav-github-link:hover {
  background: rgba(20, 20, 19, 0.06);
}
html.dark .navwrap .nav {
  background: rgba(22, 21, 19, 0.92) !important;
  border-color: #2A2926 !important;
  color: #F2EFE9 !important;
}
html.dark .navwrap .nav .brand {
  color: #F2EFE9 !important;
}
html.dark .navwrap .nav a:not(.candy) {
  color: #A39E93 !important;
}
html.dark .navwrap .nav a:not(.candy):hover {
  color: #F2EFE9 !important;
}
html.dark .navwrap .nav a.nav-icon-link:hover,
html.dark .navwrap .nav a.nav-github-link:hover {
  background: rgba(242, 239, 233, 0.08);
}
html.dark .navwrap .nav a.candy,
html.dark .navwrap .nav a.candy:hover {
  background: #F3EFE6 !important;
  border-color: #F3EFE6 !important;
  color: #161513 !important;
}
html.dark .navwrap .nav a.candy:hover {
  background: #E5DFD2 !important;
}
.navwrap .nav .brand {
  color: #141413 !important;
}
.foldexc-brand-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  height: 22px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 6px !important;
  background: #161513 !important;
  flex-shrink: 0 !important;
}
.foldexc-brand-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
html.dark .foldexc-brand-badge {
  border: 1px solid #2A2926 !important;
}

/* Primary CTA pills — Warm Paper pill */
.candy,
.candy.sm {
  background: #EAE4D7 !important;
  border: 1px solid #C8C0B0 !important;
  color: #161513 !important;
  box-shadow: none !important;
}
.candy:hover,
.candy.sm:hover {
  background: #E1D9C8 !important;
  border-color: #C8C0B0 !important;
}

/* Hero section */
.hero {
  background: #F3EFE6 !important;
}
.hero .kicker {
  background: #FAF8F3 !important;
  border-color: #DDD7C9 !important;
  color: #5C5951 !important;
}
.hero .kicker a {
  color: #141413 !important;
}
.hero-h1 .grad,
.hero-h1 .grad2 {
  color: #141413 !important;
  -webkit-text-fill-color: #141413 !important;
}
.hero-h1 .ri.on {
  color: #1B4D2E !important;
  -webkit-text-fill-color: #1B4D2E !important;
}
.h1cursor {
  background: #1B4D2E !important;
}

/* 3-column Hero scene cards */
.scene .hcell {
  background: transparent !important;
}
.aghead,
.htool,
.hcli,
.hcore {
  background: #FAF8F3 !important;
  border-color: #DDD7C9 !important;
  color: #141413 !important;
}
.htool.route-active,
.htool:hover {
  border-color: #1B4D2E !important;
}
.hst i,
.hcli .okc,
.sl {
  color: #1B4D2E !important;
}
.hcli .cy {
  color: #1B4D2E !important;
  font-weight: 600;
}
.gateway-routes path.route-pulse {
  stroke: #1B4D2E !important;
}

/* Command bar stays high-contrast Dark Warm */
.givebox {
  background: #161513 !important;
  border-color: #2A2926 !important;
  color: #F2EFE9 !important;
}
.gb-cmd {
  background: #1D1C19 !important;
  border-color: #2A2926 !important;
}

.landing-lower-sections {
  --bg: #F3EFE6 !important;
  --surface: #F3EFE6 !important;
  --card: #F3EFE6 !important;
  --panel: #F3EFE6 !important;
  --panel2: #F3EFE6 !important;
  --popover: #F3EFE6 !important;
  --muted: #6E6A61 !important;
  background: #F3EFE6 !important;
  background-color: #F3EFE6 !important;
  background-image: none !important;
}
.landing-lower-sections *,
.landing-lower-sections *::before,
.landing-lower-sections *::after {
  background-image: none !important;
}
.landing-lower-sections section,
.landing-lower-sections footer,
.landing-lower-sections .roles,
.landing-lower-sections .bens,
.landing-lower-sections .ben,
.landing-lower-sections .ending-reveal,
.landing-lower-sections .ending-layer,
.landing-lower-sections .ben .keywall,
.landing-lower-sections .keywall,
.landing-lower-sections .kw-key,
.landing-lower-sections .kw-chip,
.landing-lower-sections .keypill,
.landing-lower-sections .ben .win,
.landing-lower-sections .win,
.landing-lower-sections .win .wbar,
.landing-lower-sections .wbar,
.landing-lower-sections .ben .cap,
.landing-lower-sections .ben .ledger,
.landing-lower-sections .catalog-window,
.landing-lower-sections .pcard,
.landing-lower-sections .pcard .ph,
.landing-lower-sections .lrow,
.landing-lower-sections .cap-row,
.landing-lower-sections .cap-req,
.landing-lower-sections .cap-res,
.landing-lower-sections .benmeta span,
.landing-lower-sections .ctab,
.landing-lower-sections .ghostbtn,
.landing-lower-sections #browse-all-endpoints-btn,
.landing-lower-sections #catalog-all-panel {
  background: #F3EFE6 !important;
  background-color: #F3EFE6 !important;
  box-shadow: none !important;
}
.landing-lower-sections .kw-key {
  border: 1px solid #DDD7C9 !important;
  border-radius: 14px !important;
}
.landing-lower-sections .kw-key .kg {
  background: #161513 !important;
  background-color: #161513 !important;
  color: #F3EFE6 !important;
}
.landing-lower-sections .ctab[aria-selected="true"] {
  background: #E2E6DC !important;
  background-color: #E2E6DC !important;
  border-color: #1B4D2E !important;
  color: #1B4D2E !important;
}
.landing-lower-sections .cap-row.picked {
  background: #E2E6DC !important;
  background-color: #E2E6DC !important;
  border-color: #1B4D2E !important;
}
.landing-lower-sections .zeq {
  background: #161513 !important;
  background-color: #161513 !important;
}
.landing-lower-sections section.close .candy {
  background: #EAE4D7 !important;
  background-color: #EAE4D7 !important;
  border: 1px solid #C8C0B0 !important;
  color: #161513 !important;
}

html.dark .landing-lower-sections {
  --bg: #161513 !important;
  --surface: #161513 !important;
  --card: #161513 !important;
  --panel: #161513 !important;
  --panel2: #161513 !important;
  --popover: #161513 !important;
  --muted: #A39E93 !important;
  background: #161513 !important;
  background-color: #161513 !important;
}
html.dark .landing-lower-sections section,
html.dark .landing-lower-sections footer,
html.dark .landing-lower-sections .roles,
html.dark .landing-lower-sections .bens,
html.dark .landing-lower-sections .ben,
html.dark .landing-lower-sections .ending-reveal,
html.dark .landing-lower-sections .ending-layer,
html.dark .landing-lower-sections .ben .keywall,
html.dark .landing-lower-sections .keywall,
html.dark .landing-lower-sections .kw-key,
html.dark .landing-lower-sections .kw-chip,
html.dark .landing-lower-sections .keypill,
html.dark .landing-lower-sections .ben .win,
html.dark .landing-lower-sections .win,
html.dark .landing-lower-sections .win .wbar,
html.dark .landing-lower-sections .wbar,
html.dark .landing-lower-sections .ben .cap,
html.dark .landing-lower-sections .ben .ledger,
html.dark .landing-lower-sections .catalog-window,
html.dark .landing-lower-sections .pcard,
html.dark .landing-lower-sections .pcard .ph,
html.dark .landing-lower-sections .lrow,
html.dark .landing-lower-sections .cap-row,
html.dark .landing-lower-sections .cap-req,
html.dark .landing-lower-sections .cap-res,
html.dark .landing-lower-sections .benmeta span,
html.dark .landing-lower-sections .ctab,
html.dark .landing-lower-sections .ghostbtn,
html.dark .landing-lower-sections #browse-all-endpoints-btn,
html.dark .landing-lower-sections #catalog-all-panel {
  background: #161513 !important;
  background-color: #161513 !important;
  border-color: #2A2926 !important;
  box-shadow: none !important;
}
html.dark .landing-lower-sections .kw-key {
  border-color: #2A2926 !important;
  color: #F2EFE9 !important;
}
html.dark .landing-lower-sections .kw-key .kdots,
html.dark .landing-lower-sections .kw-key code {
  color: #F2EFE9 !important;
}
html.dark .landing-lower-sections .kw-key .kg {
  background: #F3EFE6 !important;
  background-color: #F3EFE6 !important;
  color: #161513 !important;
}
html.dark .landing-lower-sections .ctab[aria-selected="true"] {
  background: #1D2620 !important;
  background-color: #1D2620 !important;
  border-color: rgba(74, 222, 128, 0.6) !important;
  color: #86EFAC !important;
}
html.dark .landing-lower-sections .cap-row.picked {
  background: #1D2620 !important;
  background-color: #1D2620 !important;
  border-color: rgba(74, 222, 128, 0.6) !important;
}
html.dark .landing-lower-sections section.close .candy {
  background: #F3EFE6 !important;
  background-color: #F3EFE6 !important;
  border-color: #F3EFE6 !important;
  color: #161513 !important;
}

/* Catalog section — unified #F3EFE6 surface with 1px hairline borders */
.roles,
.roles .catwrap,
.roles .pgrid,
#catalog-all-panel {
  background: #F3EFE6 !important;
  background-color: #F3EFE6 !important;
}
.roles {
  border-top: 1px solid #DDD7C9 !important;
}
.seclab {
  color: #1B4D2E !important;
}
.pcat {
  color: #141413 !important;
}
.pcard {
  background: #F3EFE6 !important;
  background-color: #F3EFE6 !important;
  border: 1px solid #DDD7C9 !important;
  box-shadow: none !important;
  color: #141413 !important;
}
.pcard:hover {
  background: #F3EFE6 !important;
  border-color: #1B4D2E !important;
  box-shadow: none !important;
}
.pcard .pt,
.pcard .pt span,
.pcard .pt s {
  background: transparent !important;
  background-color: transparent !important;
}
.pcard .pt span {
  color: #141413 !important;
}
.pcard .pt s {
  color: #6E6A61 !important;
}
.pcard .ph {
  background: #F3EFE6 !important;
  background-color: #F3EFE6 !important;
  border: 1px solid #DDD7C9 !important;
}
.ctab {
  background: #F3EFE6 !important;
  border-color: #DDD7C9 !important;
  color: #5C5951 !important;
}
.ctab[aria-selected="true"] {
  background: #E2E6DC !important;
  border-color: #1B4D2E !important;
  color: #1B4D2E !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

/* Benefits section (#why) — unified #F3EFE6 surface */
.bens,
.ben {
  background: #F3EFE6 !important;
  background-color: #F3EFE6 !important;
}
.bens {
  border-top: 1px solid #DDD7C9 !important;
}
.bennum {
  color: #1B4D2E !important;
}
.bentext h3 {
  color: #141413 !important;
}
.bentext p {
  color: #5C5951 !important;
}
.bentext p b {
  color: #141413 !important;
}
.benmeta span {
  background: #F3EFE6 !important;
  border: 1px solid #DDD7C9 !important;
  color: #5C5951 !important;
}

/* Window mockups & cards inside #why — unified #F3EFE6 + 1px hairline borders */
.ben .keywall,
.ben .win,
.ben .cap,
.ben .ledger,
.catalog-window,
.win {
  background: #F3EFE6 !important;
  background-color: #F3EFE6 !important;
  border: 1px solid #DDD7C9 !important;
  box-shadow: none !important;
}
.ben .win .wbar,
.wbar {
  background: #F3EFE6 !important;
  background-color: #F3EFE6 !important;
  border-bottom: 1px solid #DDD7C9 !important;
  color: #5C5951 !important;
}
.kw-rows,
.kw-track,
.kw-row {
  background: transparent !important;
  background-color: transparent !important;
}
.keypill,
.kw-chip,
.cap-req,
.cap-row,
.cap-res,
.lrow {
  background: #F3EFE6 !important;
  background-color: #F3EFE6 !important;
  border: 1px solid #DDD7C9 !important;
  box-shadow: none !important;
  color: #141413 !important;
}
.cap-row > *,
.lrow > *,
.lrow .n,
.lrow .pr,
.kw-chip > * {
  background: transparent !important;
  background-color: transparent !important;
}
.cap-row.picked {
  border-color: #1B4D2E !important;
  background: #E2E6DC !important;
  background-color: #E2E6DC !important;
}
.cap-pick,
.cap-ok,
.wf,
.lrow .pr em,
.zeq b {
  color: #1B4D2E !important;
}
.oachip {
  background: rgba(27, 77, 46, 0.1) !important;
  color: #1B4D2E !important;
}
.zeroband {
  background: #F3EFE6 !important;
  border: none !important;
  box-shadow: none !important;
}
.zeroband h3 {
  color: #141413 !important;
  -webkit-text-fill-color: #141413 !important;
  background: none !important;
}
.zeq {
  background: #161513 !important;
  border: 1px solid #2A2926 !important;
  border-radius: 14px !important;
  color: #F3EFE6 !important;
}
.zeq .ps {
  color: #8A857B !important;
}
.zeq code,
#zeqtxt {
  color: #F3EFE6 !important;
}
.zeq b,
#zeqtxt b {
  color: #4ADE80 !important;
}
.zsub {
  background: #F3EFE6 !important;
  color: #6E6A61 !important;
}
html.dark .zeroband {
  background: #161513 !important;
}
html.dark .zeroband h3 {
  color: #F2EFE9 !important;
  -webkit-text-fill-color: #F2EFE9 !important;
}
html.dark .zsub {
  background: #161513 !important;
  color: #A39E93 !important;
}

/* Final Section (.ending-reveal / .close / footer) — unified #F3EFE6 Warm Paper (no dots) */
.ending-reveal,
.ending-layer {
  background: #F3EFE6 !important;
  background-color: #F3EFE6 !important;
  background-image: none !important;
  color: #141413 !important;
}
section.close,
footer {
  background: #F3EFE6 !important;
  color: #141413 !important;
}
section.close {
  border-top: 1px solid #DDD7C9 !important;
}
section.close h2 .grad,
section.close h2 .grad2 {
  color: #141413 !important;
  -webkit-text-fill-color: #141413 !important;
}
section.close .sub,
section.close .listyours,
section.close .trustline {
  color: #5C5951 !important;
}
section.close .listyours a,
section.close .trustline b {
  color: #141413 !important;
}
section.close .candy {
  background: #EAE4D7 !important;
  border: 1px solid #C8C0B0 !important;
  color: #161513 !important;
  box-shadow: none !important;
}
section.close .candy:hover {
  background: #E1D9C8 !important;
  border-color: #C8C0B0 !important;
  color: #161513 !important;
}
section.close .ghostbtn {
  background: #F3EFE6 !important;
  border: 1px solid #DDD7C9 !important;
  color: #161513 !important;
}
section.close .ghostbtn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
section.close .ghostbtn:hover {
  border-color: #1B4D2E !important;
  color: #1B4D2E !important;
}

footer {
  position: relative;
  border-top: 1px solid #DDD7C9 !important;
}
footer .foot-brand .brand {
  color: #141413 !important;
}
footer .foot-brand .note,
footer .foot-col .lab,
footer .foot-col a {
  color: #5C5951 !important;
}
footer .foot-col a:hover {
  color: #141413 !important;
}
footer .foot-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
footer .foot-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid #DDD7C9;
  color: #5C5951;
  transition: color 150ms ease, border-color 150ms ease;
}
footer .foot-social a:hover {
  color: #141413;
  border-color: #1B4D2E;
}
footer .foot-social svg {
  width: 14px;
  height: 14px;
}
footer .watermark {
  text-align: left !important;
  max-width: 66%;
  padding-left: 24px;
  color: rgba(20, 20, 19, 0.06) !important;
  -webkit-text-fill-color: rgba(20, 20, 19, 0.06) !important;
  pointer-events: none;
}

.ending-reveal::after {
  background: #F3EFE6 !important;
}
html.dark .ending-reveal::after {
  background: #161513 !important;
}

/* Dark Mode (#161513) overrides for all lower sections */
html.dark,
html.dark body {
  background: #161513 !important;
  color: #F2EFE9 !important;
}
html.dark .roles,
html.dark .roles .catwrap,
html.dark .roles .pgrid,
html.dark #catalog-all-panel,
html.dark .bens,
html.dark .ben,
html.dark .ending-reveal,
html.dark .ending-layer,
html.dark section.close,
html.dark footer {
  background: #161513 !important;
  background-color: #161513 !important;
  background-image: none !important;
  border-top-color: #2A2926 !important;
  color: #F2EFE9 !important;
}
html.dark .pcard,
html.dark .pcard .ph,
html.dark .ctab,
html.dark .benmeta span,
html.dark .ben .keywall,
html.dark .ben .win,
html.dark .ben .win .wbar,
html.dark .ben .cap,
html.dark .ben .ledger,
html.dark .catalog-window,
html.dark .win,
html.dark .wbar,
html.dark .keypill,
html.dark .kw-chip,
html.dark .cap-req,
html.dark .cap-row,
html.dark .cap-res,
html.dark .lrow,
html.dark section.close .ghostbtn {
  background: #161513 !important;
  background-color: #161513 !important;
  border-color: #2A2926 !important;
  color: #F2EFE9 !important;
}
html.dark .cap-row.picked {
  background: #1D2620 !important;
  background-color: #1D2620 !important;
  border-color: rgba(74, 222, 128, 0.6) !important;
}
html.dark .pcat,
html.dark .pcard .pt span,
html.dark .bentext h3,
html.dark .bentext p b,
html.dark section.close .listyours a,
html.dark section.close .trustline b,
html.dark footer .foot-brand .brand,
html.dark footer .foot-col a:hover {
  color: #F2EFE9 !important;
}
html.dark .pcard .pt s,
html.dark .bentext p,
html.dark section.close .sub,
html.dark section.close .listyours,
html.dark section.close .trustline,
html.dark footer .foot-brand .note,
html.dark footer .foot-col .lab,
html.dark footer .foot-col a {
  color: #A39E93 !important;
}
html.dark .seclab,
html.dark .bennum,
html.dark .cap-pick,
html.dark .cap-ok,
html.dark .wf,
html.dark .lrow .pr em {
  color: #4ADE80 !important;
}
html.dark .ctab[aria-selected="true"] {
  background: #1D2620 !important;
  border-color: rgba(74, 222, 128, 0.6) !important;
  color: #86EFAC !important;
}
html.dark section.close .candy {
  background: #F3EFE6 !important;
  border-color: #F3EFE6 !important;
  color: #161513 !important;
}
html.dark section.close .candy:hover {
  background: #E5DFD2 !important;
  border-color: #E5DFD2 !important;
}
html.dark .pcard:hover,
html.dark .cap-row.picked,
html.dark section.close .ghostbtn:hover,
html.dark footer .foot-social a:hover {
  border-color: #4ADE80 !important;
}
html.dark section.close h2 .grad,
html.dark section.close h2 .grad2 {
  color: #F2EFE9 !important;
  -webkit-text-fill-color: #F2EFE9 !important;
}
html.dark footer .foot-social a {
  border-color: #2A2926;
  color: #A39E93;
}
html.dark footer .watermark {
  color: rgba(242, 239, 233, 0.05) !important;
  -webkit-text-fill-color: rgba(242, 239, 233, 0.05) !important;
}

/* 2D Precision Gateway Node Card (replaces 3D Three.js sculpture) */
.scene .hcell.mid {
  justify-content: center !important;
  gap: 14px !important;
  padding: 12px 0 !important;
}
.scene .hcell.mid .gateway-sculpture.foldexc-node-card {
  position: relative !important;
  inset: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 180px !important;
  height: 180px !important;
  background: #FAF8F3 !important;
  border: 1.5px solid #DDD7C9 !important;
  border-radius: 20px !important;
  box-shadow: 0 12px 32px -8px rgba(20, 20, 19, 0.08) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  z-index: 5 !important;
  cursor: pointer;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
  outline: none;
}
.scene .hcell.mid .foldexc-node-card .node-inner-frame {
  position: absolute;
  inset: 7px;
  border: 1px dashed #DDD7C9;
  border-radius: 13px;
  pointer-events: none;
  transition: border-color 220ms ease;
}
.scene .hcell.mid .foldexc-node-card .node-mascot-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 220ms ease, filter 220ms ease;
}
.scene .hcell.mid .foldexc-node-card .node-mascot-wrap svg {
  width: 96px;
  height: 96px;
  image-rendering: pixelated;
  shape-rendering: crispEdges;
}
.scene .hcell.mid .foldexc-node-card .node-meta {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #1B4D2E;
}
.scene .hcell.mid .foldexc-node-card .node-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 600;
  color: #1B4D2E;
}
.scene .hcell.mid .foldexc-node-card .node-live i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #1B4D2E;
  animation: nodeLiveBlink 2s ease-in-out infinite;
}
.scene .hcell.mid .foldexc-node-card .node-port {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #FAF8F3;
  border: 1.5px solid #1B4D2E;
  z-index: 4;
  pointer-events: none;
}
.scene .hcell.mid .foldexc-node-card .node-port-left {
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
}
.scene .hcell.mid .foldexc-node-card .node-port-right {
  right: -5px;
  transform: translateY(-50%);
}
.scene .hcell.mid .foldexc-node-card .node-port-right.p1 { top: 26%; }
.scene .hcell.mid .foldexc-node-card .node-port-right.p2 { top: 50%; }
.scene .hcell.mid .foldexc-node-card .node-port-right.p3 { top: 74%; }

.scene .hcell.mid .foldexc-node-card:hover,
.scene .hcell.mid .foldexc-node-card:focus-visible {
  border-color: #1B4D2E;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -8px rgba(27, 77, 46, 0.22), 0 0 0 4px rgba(27, 77, 46, 0.08);
}
.scene .hcell.mid .foldexc-node-card:hover .node-inner-frame {
  border-color: rgba(27, 77, 46, 0.45);
}
.scene .hcell.mid .foldexc-node-card:hover .node-mascot-wrap {
  transform: scale(1.03);
  filter: drop-shadow(0 0 14px rgba(27, 77, 46, 0.22));
}
.scene .hcell.mid .foldexc-node-card.node-pulse {
  animation: nodeRoleRipple 700ms ease-out;
}
.scene .hcell.mid .foldexc-node-card.node-pulse .node-mascot-wrap {
  filter: drop-shadow(0 0 18px rgba(27, 77, 46, 0.34));
}

/* Dark Mode support for 2D Precision Node Card */
html.dark .scene .hcell.mid .gateway-sculpture.foldexc-node-card {
  background: #1E1D1A;
  border-color: #2E2C27;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.45);
}
html.dark .scene .hcell.mid .foldexc-node-card .node-inner-frame {
  border-color: #2E2C27;
}
html.dark .scene .hcell.mid .foldexc-node-card .node-meta,
html.dark .scene .hcell.mid .foldexc-node-card .node-live {
  color: #4ADE80;
}
html.dark .scene .hcell.mid .foldexc-node-card .node-live i {
  background: #4ADE80;
}
html.dark .scene .hcell.mid .foldexc-node-card .node-port {
  background: #1E1D1A;
  border-color: #4ADE80;
}
html.dark .scene .hcell.mid .foldexc-node-card:hover,
html.dark .scene .hcell.mid .foldexc-node-card:focus-visible {
  border-color: #4ADE80;
  box-shadow: 0 14px 36px -8px rgba(74, 222, 128, 0.22), 0 0 0 4px rgba(74, 222, 128, 0.12);
}

@keyframes nodeLiveBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}
@keyframes nodeRoleRipple {
  0% { box-shadow: 0 12px 32px -8px rgba(20, 20, 19, 0.08), 0 0 0 0 rgba(27, 77, 46, 0.35); border-color: #1B4D2E; }
  100% { box-shadow: 0 12px 32px -8px rgba(20, 20, 19, 0.08), 0 0 0 14px rgba(27, 77, 46, 0); }
}

@media (max-width: 640px) {
  .scene .hcell.mid .gateway-sculpture.foldexc-node-card {
    width: 140px;
    height: 140px;
    border-radius: 16px;
    gap: 5px;
  }
  .scene .hcell.mid .foldexc-node-card .node-inner-frame {
    inset: 5px;
    border-radius: 11px;
  }
  .scene .hcell.mid .foldexc-node-card .node-mascot-wrap,
  .scene .hcell.mid .foldexc-node-card .node-mascot-wrap svg {
    width: 72px;
    height: 72px;
  }
  .scene .hcell.mid .foldexc-node-card .node-meta {
    font-size: 9px;
  }
}
