/* =========================================================================
   GREENSTAND, "Roots" design-system case study  (prefix gs-)
   Dark portfolio system · emerald accent · long-form editorial
   Also defines the live component gallery + home-row hover cluster.
   ========================================================================= */

:root {
  /* Roots emerald scale ------------------------------------------------- */
  --gs-50:  #f1f9f4;
  --gs-100: #dcefe3;
  --gs-200: #b3e0c8;
  --gs-300: #7fc7a1;
  --gs-400: #4caf7e;
  --gs-500: #2a9460;
  --gs-600: #1f7a4d;   /* PRIMARY */
  --gs-700: #156040;
  --gs-800: #104a32;
  --gs-900: #0c3122;
  /* warm neutral (stone) ------------------------------------------------ */
  --gs-n0:  #ffffff;
  --gs-n50: #f6f6f4;
  --gs-n100:#eceae5;
  --gs-n200:#d8d5cd;
  --gs-n300:#b7b3a8;
  --gs-n400:#8d8a80;
  --gs-n600:#5b594f;
  --gs-n800:#33322c;
  --gs-n900:#1c1b17;
  /* semantic ------------------------------------------------------------ */
  --gs-success: #2a9460;
  --gs-warning: #d99a2b;
  --gs-error:   #d2503c;
  --gs-info:    #2f7fb5;
  /* data-viz ------------------------------------------------------------ */
  --gs-dv1: #1f7a4d; --gs-dv2: #4caf7e; --gs-dv3: #d99a2b; --gs-dv4: #2f7fb5; --gs-dv5: #b3e0c8;
}

/* accent helper for this case (overrides portfolio --accent locally) ----- */
.gs { --accent: var(--gs-500); --accent-ink: var(--gs-400); }
.gs { padding-bottom: 0; }

/* ----- decorative leaf flair -------------------------------------------- */
.gs-leaf {
  position: absolute; pointer-events: none; z-index: 0; opacity: 0.5;
  background-repeat: no-repeat; background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cpath d='M40 70 C40 40 40 20 66 12 C70 40 60 64 40 70 Z' fill='none' stroke='%232a9460' stroke-width='2.4'/%3E%3Cpath d='M40 70 C40 48 48 30 64 16' fill='none' stroke='%232a9460' stroke-width='2.4'/%3E%3C/svg%3E");
}
.gs-leaf--d { opacity: 0.22; }
.gs .wrap { position: relative; z-index: 1; }
.case__hero { position: relative; overflow: hidden; }
@media (max-width: 760px) { .gs-leaf { display: none; } }

/* hero brand lockup + watermark logo ------------------------------------- */
.gs-brand { display: flex; align-items: center; gap: 10px; width: fit-content; margin: 20px 0 22px; }
.gs-brand img { width: 30px; height: 30px; display: block; }
.gs-brand__name { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gs-400); }
.gs-heromark { position: absolute; top: 8%; right: 6%; width: clamp(120px, 16vw, 220px); height: auto; opacity: 0.08; z-index: 0; pointer-events: none; }
@media (max-width: 760px) { .gs-heromark { display: none; } }

/* section scaffold ------------------------------------------------------- */
.gs-sec { position: relative; display: grid; grid-template-columns: 200px 1fr; gap: clamp(20px, 4vw, 56px); padding-block: clamp(48px, 7vw, 96px); border-top: 1px solid var(--line); }
.gs-sec__label { display: flex; align-items: baseline; gap: 14px; position: sticky; top: 90px; align-self: start; height: fit-content; }
.gs-sec__label .pixel { font-size: clamp(22px, 2.4vw, 30px); line-height: 1; }
.gs-sec__body { min-width: 0; }
@media (max-width: 820px) { .gs-sec { grid-template-columns: 1fr; gap: 18px; } .gs-sec__label { position: static; } }

.gs-h2 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.04; letter-spacing: -0.02em; margin-bottom: 24px; max-width: 20ch; text-wrap: balance; }
.gs-h3 { font-family: var(--display); font-weight: 700; font-size: clamp(18px, 1.7vw, 24px); letter-spacing: -0.01em; margin: clamp(40px, 5vw, 60px) 0 18px; }
.gs-h3:first-of-type { margin-top: 34px; }
.gs-lead { font-size: clamp(16px, 1.35vw, 20px); line-height: 1.6; color: var(--ink-2); max-width: 64ch; }
.gs-lead--sm { font-size: clamp(15px, 1.2vw, 17px); margin-bottom: 22px; }
.gs-lead strong { color: var(--ink); font-weight: 600; }

/* mono accent in emerald */
.mono--green { color: var(--gs-400); }

/* role callout ----------------------------------------------------------- */
.gs-role { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: clamp(24px,3vw,36px); background: var(--line); border: 1px solid var(--line); }
@media (max-width: 640px) { .gs-role { grid-template-columns: 1fr; } }
.gs-role__cell { background: var(--bg); padding: clamp(18px,2.2vw,26px); }
.gs-role__k { display: block; color: var(--gs-400); margin-bottom: 10px; }
.gs-role__v { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.gs-role__v strong { color: var(--ink); font-weight: 600; }

/* ownership arc ---------------------------------------------------------- */
.gs-arc { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px,1.8vw,22px); margin-top: 30px; }
@media (max-width: 760px) { .gs-arc { grid-template-columns: 1fr; } }
.gs-arc__step { border: 1px solid var(--line); border-top: 3px solid var(--gs-600); background: var(--surface); padding: clamp(18px,2vw,26px); position: relative; }
.gs-arc__n { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gs-400); }
.gs-arc__t { font-family: var(--display); font-weight: 700; font-size: clamp(17px,1.6vw,21px); margin: 10px 0 8px; letter-spacing: -.01em; }
.gs-arc__d { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }

/* problem cards ---------------------------------------------------------- */
.gs-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.8vw, 22px); margin-top: 28px; }
@media (max-width: 820px) { .gs-cards { grid-template-columns: 1fr; } }
.gs-card { background: var(--surface); border: 1px solid var(--line); padding: clamp(20px, 2.2vw, 28px); display: flex; flex-direction: column; gap: 11px; transition: border-color .35s var(--ease), transform .4s var(--ease); }
.gs-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.gs-card__no { color: var(--gs-400); }
.gs-card__t { font-family: var(--display); font-weight: 700; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -0.01em; }
.gs-card__d { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }

/* statement band --------------------------------------------------------- */
.gs-band { position: relative; overflow: hidden; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(56px, 8vw, 110px) 0; margin-top: clamp(20px, 3vw, 40px); }
.gs-statement { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3.6vw, 50px); line-height: 1.16; letter-spacing: -0.02em; margin-top: 20px; max-width: 26ch; text-wrap: balance; }
.gs-statement em { font-style: italic; color: var(--gs-400); }

/* objective checklist ---------------------------------------------------- */
.gs-objs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 26px; }
@media (max-width: 640px) { .gs-objs { grid-template-columns: 1fr; } }
.gs-obj { background: var(--bg); display: flex; gap: 14px; padding: clamp(16px,1.8vw,22px); align-items: flex-start; }
.gs-obj__tick { color: var(--gs-500); flex: none; font-size: 16px; line-height: 1.3; }
.gs-obj__t { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.gs-obj__t strong { color: var(--ink); font-weight: 600; }

/* constraints list ------------------------------------------------------- */
.gs-cons { display: flex; flex-direction: column; margin-top: 12px; }
.gs-cons__row { display: grid; grid-template-columns: 54px 1fr; gap: 18px; align-items: baseline; padding: clamp(16px,2vw,24px) 0; border-top: 1px solid var(--line); }
.gs-cons__row:first-child { border-top: none; }
.gs-cons__n { font-family: var(--mono); font-size: 13px; color: var(--gs-400); }
.gs-cons__t { font-size: clamp(15px,1.3vw,18px); line-height: 1.55; color: var(--ink-2); }
.gs-cons__t strong { color: var(--ink); font-weight: 600; }

/* process phases --------------------------------------------------------- */
.gs-process { display: flex; flex-direction: column; margin-top: 16px; }
.gs-phase { display: grid; grid-template-columns: 88px 1fr; gap: 20px; align-items: start; padding: clamp(20px,2.4vw,30px) 0; border-top: 1px solid var(--line); }
.gs-phase:first-child { border-top: none; }
.gs-phase__no { font-family: var(--display); font-weight: 800; font-size: clamp(34px,4vw,56px); color: var(--ink-4); line-height: 0.8; }
.gs-phase__t { font-family: var(--display); font-weight: 700; font-size: clamp(19px,1.9vw,26px); letter-spacing: -0.01em; margin-bottom: 10px; }
.gs-phase__list { display: flex; flex-direction: column; gap: 7px; }
.gs-phase__list span { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); padding-left: 18px; position: relative; }
.gs-phase__list span::before { content: '→'; position: absolute; left: 0; color: var(--gs-500); }

/* audit findings --------------------------------------------------------- */
.gs-audit { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 26px; }
@media (max-width: 680px) { .gs-audit { grid-template-columns: 1fr; } }
.gs-audit__cell { background: var(--bg); padding: clamp(18px,2vw,24px); display: flex; flex-direction: column; gap: 8px; }
.gs-audit__k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gs-400); }
.gs-audit__t { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }

/* "7 greens" before strip ------------------------------------------------ */
.gs-greens { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.gs-greens__sw { width: 62px; height: 62px; border-radius: 8px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 5px; font-family: var(--mono); font-size: 8.5px; color: rgba(255,255,255,.85); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.gs-beforeafter { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px,2.4vw,32px); margin-top: 18px; align-items: start; }
@media (max-width: 720px) { .gs-beforeafter { grid-template-columns: 1fr; } }
.gs-ba__tag { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.gs-ba__tag--before { color: var(--gs-n400); }
.gs-ba__tag--after { color: var(--gs-400); }
.gs-ba__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* principles ------------------------------------------------------------- */
.gs-princ { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px,1.8vw,22px); margin-top: 26px; }
@media (max-width: 680px) { .gs-princ { grid-template-columns: 1fr; } }
.gs-princ__card { border: 1px solid var(--line); background: var(--surface); padding: clamp(20px,2.2vw,28px); }
.gs-princ__ico { width: 38px; height: 38px; border-radius: 9px; background: var(--gs-900); border: 1px solid var(--gs-700); display: flex; align-items: center; justify-content: center; color: var(--gs-300); margin-bottom: 14px; }
.gs-princ__t { font-family: var(--display); font-weight: 700; font-size: clamp(17px,1.6vw,21px); letter-spacing: -.01em; margin-bottom: 8px; }
.gs-princ__d { font-size: 14px; line-height: 1.6; color: var(--ink-2); }

/* "what I explored", Tried → Learned → Decided cards -------------------- */
.gs-explore { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px,1.8vw,22px); margin-top: 22px; }
@media (max-width: 760px) { .gs-explore { grid-template-columns: 1fr; } }
.gs-tld { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: clamp(18px,2.1vw,26px); display: flex; flex-direction: column; gap: 14px; }
.gs-tld__h { display: flex; align-items: baseline; gap: 11px; }
.gs-tld__no { font-family: var(--mono); font-size: 12px; color: var(--gs-400); }
.gs-tld__t { font-family: var(--display); font-weight: 700; font-size: clamp(17px,1.6vw,21px); letter-spacing: -.01em; color: var(--ink); }
.gs-tld__seg { display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: start; padding-top: 13px; border-top: 1px solid var(--line); }
.gs-tld__seg p { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.gs-tld__k { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 0; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.gs-tld__k::before { content: ''; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.gs-tld__k--tried { color: var(--ink-3); }
.gs-tld__k--tried::before { background: var(--gs-n400); }
.gs-tld__k--learned { color: var(--gs-warning); }
.gs-tld__k--learned::before { background: var(--gs-warning); }
.gs-tld__k--decided { color: var(--gs-400); }
.gs-tld__k--decided::before { background: var(--gs-500); }

/* user-flow diagram + flow strips ---------------------------------------- */
.gs-userflow { background: #fbfbf9; border: 1px solid var(--line); border-radius: 14px; padding: clamp(14px,2vw,30px); box-shadow: 0 28px 64px rgba(0,0,0,.42); margin-top: 18px; }
.gs-userflow img { width: 100%; height: auto; display: block; }
.gs-flowstrip { display: flex; gap: clamp(12px,1.4vw,18px); overflow-x: auto; padding: 4px 2px 16px; margin-top: 16px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.gs-flowstrip::-webkit-scrollbar { height: 8px; }
.gs-flowstrip::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }
.gs-flowstep { flex: 0 0 auto; width: clamp(132px, 15vw, 158px); display: flex; flex-direction: column; gap: 11px; scroll-snap-align: start; align-self: flex-start; }
.gs-flowstep__scr { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 16px 30px rgba(0,0,0,.34); }
.gs-flowstep__scr img { width: 100%; height: auto; display: block; }
.gs-flowstep__lab { display: flex; gap: 8px; align-items: baseline; }
.gs-flowstep__n { font-family: var(--mono); font-size: 11px; color: var(--gs-400); flex: none; }
.gs-flowstep__t { font-family: var(--display); font-weight: 600; font-size: 12.5px; letter-spacing: -.005em; color: var(--ink-2); line-height: 1.25; }

/* ===== native User Flow diagram, transparent, themed ==================== */
.gsflow { margin-top: 18px; overflow-x: auto; padding: 8px 2px 22px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.gsflow__inner { display: flex; flex-direction: column; align-items: center; min-width: 660px; }
.gsflow__legend { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.gsflow__lk { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.gsflow__ls { width: 16px; height: 12px; border-radius: 3px; flex: none; }
.gsflow__ls--term { border-radius: 999px; background: var(--gs-600); }
.gsflow__ls--screen { background: var(--surface); border: 1px solid var(--gs-600); }
.gsflow__ls--auth { background: transparent; border: 1.5px solid var(--gs-400); transform: skewX(-16deg); }
.gsflow__ls--idea { border-radius: 3px; background: color-mix(in srgb, var(--gs-warning) 20%, transparent); border: 1px dashed var(--gs-warning); }

/* level = [left aside][center][right aside] */
.gsflow__lvl { display: flex; align-items: center; justify-content: center; width: 100%; }
.gsflow__aside { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.gsflow__aside--l { align-items: flex-end; }
.gsflow__aside--r { align-items: flex-start; }
.gsflow__center { flex: 0 0 auto; display: flex; justify-content: center; }

/* leaf = node + horizontal connector */
.gsflow__leaf { display: flex; align-items: center; }
.gsflow__hconn { height: 2px; width: 30px; background: var(--gs-600); flex: none; position: relative; }
.gsflow__hconn--idea { background: var(--gs-warning); }
.gsflow__leaf--r .gsflow__hconn::before { content: ''; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; border-left: 2px solid var(--gs-600); border-bottom: 2px solid var(--gs-600); transform: translateY(-50%) rotate(45deg); }
.gsflow__leaf--r .gsflow__hconn--idea::before { border-color: var(--gs-warning); }

/* vertical stem between spine levels */
.gsflow__stem { width: 2px; height: 30px; background: var(--gs-600); margin: 0 auto; position: relative; }
.gsflow__stem::after { content: ''; position: absolute; left: 50%; bottom: -1px; width: 8px; height: 8px; border-right: 2px solid var(--gs-600); border-bottom: 2px solid var(--gs-600); transform: translate(-50%, 0) rotate(45deg); }
.gsflow__stem--fork { height: 14px; }
.gsflow__stem--fork::after { content: none; }

/* nodes */
.gsflow__node { width: 178px; padding: 13px 15px; border-radius: 12px; text-align: center; font-family: var(--display); font-weight: 600; font-size: 13px; line-height: 1.3; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); position: relative; }
.gsflow__node--screen { border-top: 2px solid var(--gs-500); }
.gsflow__node--term { width: auto; min-width: 110px; border-radius: 999px; background: linear-gradient(135deg, var(--gs-600), var(--gs-500)); border: none; color: #fff; padding: 12px 26px; box-shadow: 0 8px 22px rgba(31,122,77,.35); }
.gsflow__node--auth { border: 1.5px solid var(--gs-400); background: color-mix(in srgb, var(--gs-600) 12%, transparent); color: var(--gs-200); }
.gsflow__node--idea { width: 232px; text-align: left; font-family: var(--mono); font-weight: 500; font-size: 11px; line-height: 1.5; letter-spacing: .01em; color: var(--gs-warning); background: color-mix(in srgb, var(--gs-warning) 9%, transparent); border: 1px dashed color-mix(in srgb, var(--gs-warning) 55%, transparent); }
.gsflow__node__sub { display: block; margin-top: 5px; font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: .02em; color: var(--ink-3); text-transform: none; }
.gsflow__node--idea b { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: var(--gs-warning); margin-bottom: 5px; opacity: .85; }

/* fork: a parent splitting into two centered children with a bar */
.gsflow__fork { display: flex; flex-direction: column; align-items: center; width: 100%; }
.gsflow__forkbar { height: 2px; background: var(--gs-600); }
.gsflow__forkrow { display: flex; justify-content: center; gap: 60px; }
.gsflow__forkrow .gsflow__forkcol { display: flex; flex-direction: column; align-items: center; }

/* ---- blueprint variant -------------------------------------------------- */
html[data-flowstyle="blueprint"] .gsflow__node { background: transparent; border: 1.5px solid var(--gs-600); color: var(--gs-200); font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: .01em; border-radius: 7px; }
html[data-flowstyle="blueprint"] .gsflow__node--screen { border-top: 1.5px solid var(--gs-600); }
html[data-flowstyle="blueprint"] .gsflow__node--term { background: transparent; border: 1.5px solid var(--gs-400); color: var(--gs-300); box-shadow: none; }
html[data-flowstyle="blueprint"] .gsflow__node--auth { transform: skewX(-12deg); }
html[data-flowstyle="blueprint"] .gsflow__node--auth > * { display: inline-block; transform: skewX(12deg); }
html[data-flowstyle="blueprint"] .gsflow__node--auth > .gsflow__node__sub { display: block; }
html[data-flowstyle="blueprint"] .gsflow__node--idea { border-style: dashed; }
html[data-flowstyle="blueprint"] .gsflow__stem, html[data-flowstyle="blueprint"] .gsflow__hconn, html[data-flowstyle="blueprint"] .gsflow__forkbar { background-image: repeating-linear-gradient(var(--_d, 0deg), var(--gs-500) 0 5px, transparent 5px 9px); background-color: transparent; }
html[data-flowstyle="blueprint"] .gsflow__hconn, html[data-flowstyle="blueprint"] .gsflow__forkbar { --_d: 90deg; }

/* ---- light-mode contrast fixes for the flow diagram --------------------- */
html[data-theme="light"] .gsflow__node--auth { color: var(--gs-700); border-color: var(--gs-500); background: color-mix(in srgb, var(--gs-500) 14%, transparent); }
html[data-theme="light"] .gsflow__node--auth .gsflow__node__sub { color: var(--gs-600); }
html[data-theme="light"][data-flowstyle="blueprint"] .gsflow__node { color: var(--gs-700); border-color: var(--gs-600); }
html[data-theme="light"][data-flowstyle="blueprint"] .gsflow__node--term { color: var(--gs-700); border-color: var(--gs-600); }

/* ===== component anatomy (DS spec deep-dive) ============================= */
.gs-anat { margin-top: 20px; }
.gs-anat__top { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(18px,2.4vw,36px); align-items: stretch; }
@media (max-width: 760px) { .gs-anat__top { grid-template-columns: 1fr; } }
.gs-anat__stage { position: relative; border: 1px solid var(--line); border-radius: 14px; background:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.04) 1px, transparent 0) 0 0 / 22px 22px, var(--surface);
  display: flex; align-items: center; justify-content: center; padding: clamp(40px,6vw,72px) 24px; min-height: 230px; }
html[data-theme="light"] .gs-anat__stage { background:
    radial-gradient(circle at 1px 1px, rgba(0,0,0,.05) 1px, transparent 0) 0 0 / 22px 22px, var(--surface); }
.gs-anat__spec { position: relative; }
.gs-anat__btn { font-size: 16px; padding: 15px 26px; border-radius: 11px; }
.gs-anat__dot { position: absolute; width: 23px; height: 23px; border-radius: 50%; background: var(--gs-400); color: #06251a; font-family: var(--mono); font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 4px var(--surface); z-index: 2; }
.gs-anat__dot::before { content: ''; position: absolute; width: var(--len, 26px); height: 1px; background: var(--gs-500); right: 100%; top: 50%; margin-right: 2px; }
.gs-anat__dot--r::before { right: auto; left: 100%; margin-right: 0; margin-left: 2px; }
.gs-anat__legend { list-style: none; display: flex; flex-direction: column; gap: 13px; justify-content: center; }
.gs-anat__legend li { display: flex; gap: 12px; align-items: flex-start; }
.gs-anat__legend .n { flex: none; width: 21px; height: 21px; border-radius: 50%; background: color-mix(in srgb, var(--gs-500) 18%, transparent); border: 1px solid var(--gs-600); color: var(--gs-300); font-family: var(--mono); font-size: 11px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
html[data-theme="light"] .gs-anat__legend .n { color: var(--gs-700); }
.gs-anat__legend b { color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 14px; }
.gs-anat__legend p { color: var(--ink-2); font-size: 13px; line-height: 1.45; }
.gs-anat__legend .tok { font-family: var(--mono); font-size: 11px; color: var(--gs-400); }

.gs-anat__tokens { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: clamp(18px,2.2vw,28px); }
.gs-anat__trow { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr; border-top: 1px solid var(--line); }
.gs-anat__trow:first-child { border-top: none; }
.gs-anat__trow > * { padding: 12px 16px; font-size: 13px; line-height: 1.4; }
.gs-anat__trow--head > * { background: var(--bg-2); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.gs-anat__tk { font-family: var(--mono); color: var(--gs-400); }
.gs-anat__tr { color: var(--ink-2); }
.gs-anat__tv { font-family: var(--mono); color: var(--ink-3); }

.gs-anat__dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
@media (max-width: 620px) { .gs-anat__dodont { grid-template-columns: 1fr; } }
.gs-anat__card { border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.gs-anat__card--do { border-top: 3px solid var(--gs-500); }
.gs-anat__card--dont { border-top: 3px solid var(--gs-error); }
.gs-anat__k { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 7px; }
.gs-anat__card--do .gs-anat__k { color: var(--gs-400); }
.gs-anat__card--dont .gs-anat__k { color: var(--gs-error); }
.gs-anat__ex { background: var(--bg-2); border-radius: 9px; padding: 18px; display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }
.gs-anat__cap { color: var(--ink-2); font-size: 13px; line-height: 1.5; }

/* ===== adoption & governance ============================================= */
.gs-adopt { display: flex; flex-direction: column; margin-top: 10px; }
.gs-adopt__row { display: grid; grid-template-columns: 76px 1fr; gap: 20px; align-items: start; padding: clamp(20px,2.4vw,30px) 0; border-top: 1px solid var(--line); }
.gs-adopt__row:first-child { border-top: none; }
.gs-adopt__n { font-family: var(--display); font-weight: 800; font-size: clamp(30px,3.6vw,50px); color: var(--gs-500); line-height: .8; }
.gs-adopt__t { font-family: var(--display); font-weight: 700; font-size: clamp(18px,1.8vw,24px); letter-spacing: -.01em; margin-bottom: 9px; }
.gs-adopt__d { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
.gs-adopt__d strong { color: var(--ink); font-weight: 600; }

.gs-proof { display: flex; align-items: center; gap: clamp(18px,3vw,40px); margin-top: clamp(26px,3vw,38px); padding: clamp(20px,2.4vw,30px); border: 1px solid var(--gs-700); border-radius: 14px; background: color-mix(in srgb, var(--gs-600) 9%, transparent); flex-wrap: wrap; }
.gs-proof__n { font-family: var(--display); font-weight: 800; font-size: clamp(30px,4vw,52px); line-height: .9; letter-spacing: -.02em; color: var(--gs-400); flex: none; }
.gs-proof__t { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); max-width: 52ch; }
.gs-proof__t strong { color: var(--ink); font-weight: 600; }

.gs-quote { position: relative; margin-top: clamp(30px,4vw,52px); padding-left: clamp(22px,2.4vw,32px); border-left: 3px solid var(--gs-500); max-width: 62ch; }
.gs-quote__text { font-family: var(--display); font-weight: 600; font-size: clamp(19px,2vw,28px); line-height: 1.36; letter-spacing: -.012em; color: var(--ink); text-wrap: pretty; }
.gs-quote__text::before { content: '“'; color: var(--gs-400); font-weight: 800; }
.gs-quote__text::after { content: '”'; color: var(--gs-400); font-weight: 800; }
.gs-quote__by { display: flex; flex-direction: column; gap: 3px; margin-top: 18px; }
.gs-quote__name { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--ink); }
.gs-quote__role { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--gs-400); }

/* outcomes --------------------------------------------------------------- */
.gs-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px,2vw,26px); margin-top: 8px; }
@media (max-width: 760px) { .gs-out { grid-template-columns: 1fr; } }
.gs-bigstat { display: flex; flex-direction: column; gap: 10px; }
.gs-bigstat__n { font-family: var(--display); font-weight: 800; font-size: clamp(52px,7vw,104px); line-height: 0.82; letter-spacing: -0.03em; color: var(--gs-400); }
.gs-bigstat__l { font-size: clamp(14px,1.2vw,16px); line-height: 1.45; color: var(--ink-2); max-width: 22ch; }

/* learnings + next ------------------------------------------------------- */
.gs-learn { display: flex; flex-direction: column; }
.gs-learn__row { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: baseline; padding: clamp(20px,2.6vw,32px) 0; border-top: 1px solid var(--line); }
.gs-learn__row:first-child { border-top: none; }
.gs-learn__no { font-family: var(--display); font-weight: 800; font-size: clamp(28px,3.4vw,46px); color: var(--ink-4); line-height: .8; }
.gs-learn__t { font-size: clamp(16px,1.5vw,21px); line-height: 1.45; color: var(--ink); max-width: 52ch; }
.gs-next2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px,2vw,24px); margin-top: clamp(20px,2.5vw,30px); }
@media (max-width: 760px) { .gs-next2 { grid-template-columns: 1fr; } }
.gs-next2__item { border-left: 2px solid var(--gs-600); padding-left: 16px; }
.gs-next2__t { font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 8px; }
.gs-next2__d { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }

/* image placeholder (for user uploads later) ----------------------------- */
.gs-shot { border: 1px solid var(--line); border-radius: 12px; background:
    repeating-linear-gradient(135deg, var(--surface) 0 12px, var(--bg-2) 12px 24px);
  aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.gs-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gs-shot__ph { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 14px 18px; max-width: 30ch; line-height: 1.5; }
.gs-shotrow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px,2vw,24px); margin-top: 18px; }
@media (max-width: 720px) { .gs-shotrow { grid-template-columns: 1fr; } }
.gs-shotcap { display: block; margin-top: 11px; color: var(--ink-3); font-family: var(--mono); font-size: 11px; letter-spacing: .04em; }

/* real deck artifacts mounted as framed figures --------------------------- */
.gs-fig { background: #fbfbf9; border: 1px solid var(--line); border-radius: 14px; padding: clamp(8px,1vw,14px); box-shadow: 0 28px 64px rgba(0,0,0,.42); overflow: hidden; }
.gs-fig img { width: 100%; height: auto; display: block; border-radius: 7px; }
.gs-fig--dark { background: #1d1b16; }
.gs-figcap { display: block; margin-top: 12px; color: var(--ink-3); font-family: var(--mono); font-size: 11px; letter-spacing: .03em; line-height: 1.5; }
.gs-figrow2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px,2vw,26px); margin-top: 18px; align-items: start; }
@media (max-width: 720px) { .gs-figrow2 { grid-template-columns: 1fr; } }
.gs-fig--phone { display: flex; align-items: center; justify-content: center; padding: clamp(14px,2vw,26px); }
.gs-fig--phone img { max-height: 540px; width: auto; max-width: 100%; }
.gs-figwide { margin-top: 18px; }

/* bleed (no card frame) + full-width breakout for the in-action board ------ */
.gs-fig--bleed { background: transparent; border: none; box-shadow: none; padding: 0; }
.gs-fig--bleed img { border-radius: 10px; }
.gs-figcap--lg { font-family: var(--display); font-weight: 500; font-size: clamp(15px,1.35vw,18px); letter-spacing: 0; color: var(--ink-2); line-height: 1.5; max-width: 70ch; }
@media (min-width: 821px) {
  .gs-actionbreak { margin-left: calc(-1 * (200px + clamp(20px, 4vw, 56px))); }
}

/* In-action: 5 annotated phone screens ----------------------------------- */
.gs-action { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(14px, 1.6vw, 26px); margin-top: 20px; }
@media (max-width: 1100px) { .gs-action { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .gs-action { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .gs-action { grid-template-columns: 1fr; } }
.gs-action__item { display: flex; flex-direction: column; gap: 14px; }
.gs-action__phone { background: transparent; border: none; border-radius: 0; padding: 0; display: flex; align-items: center; justify-content: center; }
.gs-action__phone img { width: 100%; height: auto; display: block; }
.gs-action__note { display: flex; gap: 11px; align-items: flex-start; }
.gs-action__n { flex: none; width: 24px; height: 24px; border-radius: 7px; background: var(--gs-600); color: #fff; font-family: var(--display); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.gs-action__t { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(14px,1.1vw,16px); letter-spacing: -.01em; color: var(--ink); line-height: 1.2; margin-bottom: 5px; }
.gs-action__d { font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }

/* =========================================================================
   LIVE COMPONENT GALLERY (GSKit), real Roots components, rendered natively
   ========================================================================= */
.gsk { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); margin-top: 8px; }
.gsk__tabs { display: flex; gap: 4px; padding: 10px; background: var(--bg-2); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.gsk__tab { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 8px 14px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; transition: all .25s var(--ease); background: none; }
.gsk__tab:hover { color: var(--ink); }
.gsk__tab.is-active { background: var(--gs-600); color: #fff; }
.gsk__stage { padding: clamp(22px, 3vw, 40px); background:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.035) 1px, transparent 0) 0 0 / 22px 22px,
    var(--surface); }
.gsk__panel { display: flex; flex-direction: column; gap: clamp(20px, 2.6vw, 32px); }
.gsk__group { display: flex; flex-direction: column; gap: 14px; }
.gsk__gl { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gs-400); }
.gsk__row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.gsk__cap { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; color: var(--ink-4); margin-top: 5px; }
.gsk__stack { display: flex; flex-direction: column; gap: 6px; }

/*, tokens / color, */
.gsk-scale { display: flex; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.gsk-scale__c { flex: 1; height: 76px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; font-family: var(--mono); font-size: 9px; }
.gsk-sem { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 620px) { .gsk-sem { grid-template-columns: repeat(2,1fr); } }
.gsk-sem__c { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--bg); }
.gsk-sem__sw { height: 46px; }
.gsk-sem__m { padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.gsk-sem__n { font-size: 12px; font-weight: 600; color: var(--ink); }
.gsk-sem__h { font-family: var(--mono); font-size: 10px; color: var(--ink-4); }

/*, type scale, */
.gsk-type { display: flex; flex-direction: column; gap: 14px; }
.gsk-type__row { display: flex; align-items: baseline; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.gsk-type__k { font-family: var(--mono); font-size: 10px; color: var(--ink-4); width: 78px; flex: none; letter-spacing: .04em; }
.gsk-type__s { font-family: var(--display); color: var(--ink); line-height: 1.05; letter-spacing: -.01em; }

/*, buttons (REAL Roots components), */
.gsbtn { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: -.005em; border-radius: 9px; padding: 11px 20px; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, border-color .2s, color .2s, box-shadow .2s; display: inline-flex; align-items: center; gap: 8px; line-height: 1; white-space: nowrap; }
.gsbtn--primary { background: var(--gs-600); color: #fff; }
.gsbtn--primary:hover { background: var(--gs-700); }
.gsbtn--primary.is-focus { box-shadow: 0 0 0 3px var(--gs-200); }
.gsbtn--secondary { background: transparent; color: var(--gs-300); border-color: var(--gs-600); }
.gsbtn--secondary:hover { background: var(--gs-900); }
.gsbtn--secondary.is-focus { box-shadow: 0 0 0 3px var(--gs-800); }
.gsbtn--tertiary { background: transparent; color: var(--gs-300); padding-inline: 8px; }
.gsbtn--tertiary:hover { color: var(--gs-200); text-decoration: underline; text-underline-offset: 3px; }
.gsbtn.is-disabled { background: var(--gs-n800); color: var(--gs-n400); border-color: transparent; cursor: not-allowed; }
.gsbtn--secondary.is-disabled { background: transparent; border-color: var(--gs-n600); color: var(--gs-n400); }
.gsbtn__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .9; }

/*, text fields, */
.gsfield { display: flex; flex-direction: column; gap: 6px; width: 220px; max-width: 100%; }
.gsfield__l { font-family: var(--display); font-weight: 600; font-size: 12.5px; color: var(--ink-2); }
.gsfield__box { display: flex; align-items: center; gap: 9px; background: var(--gs-n900); border: 1.5px solid var(--gs-n600); border-radius: 9px; padding: 11px 13px; transition: border-color .2s, box-shadow .2s; }
.gsfield__box .ph { font-family: var(--display); font-size: 13.5px; color: var(--gs-n400); }
.gsfield__box .val { font-family: var(--display); font-size: 13.5px; color: var(--gs-n0); }
.gsfield--focus .gsfield__box { border-color: var(--gs-500); box-shadow: 0 0 0 3px var(--gs-800); }
.gsfield--error .gsfield__box { border-color: var(--gs-error); }
.gsfield--disabled .gsfield__box { opacity: .5; }
.gsfield__msg { font-family: var(--mono); font-size: 10.5px; letter-spacing: .02em; }
.gsfield--error .gsfield__msg { color: var(--gs-error); }
.gsfield__ico { width: 15px; height: 15px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; color: #fff; }

/*, toggles / checkboxes / radios, */
.gstog { width: 44px; height: 26px; border-radius: 999px; background: var(--gs-n600); position: relative; cursor: pointer; transition: background .25s var(--ease); flex: none; }
.gstog::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.gstog.is-on { background: var(--gs-600); }
.gstog.is-on::after { transform: translateX(18px); }
.gstog.is-disabled { opacity: .4; cursor: not-allowed; }
.gscheck { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--gs-n400); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s; flex: none; }
.gscheck.is-on { background: var(--gs-600); border-color: var(--gs-600); color: #fff; }
.gscheck.is-disabled { opacity: .4; }
.gsradio { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--gs-n400); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.gsradio.is-on { border-color: var(--gs-600); }
.gsradio.is-on::after { content: ''; width: 11px; height: 11px; border-radius: 50%; background: var(--gs-600); }
.gsk-ctl { display: flex; align-items: center; gap: 10px; }
.gsk-ctl span { font-family: var(--display); font-size: 13px; color: var(--ink-2); }

/*, chips / badges, */
.gschip { font-family: var(--mono); font-size: 11px; letter-spacing: .03em; padding: 5px 11px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.gschip--solid { background: var(--gs-600); color: #fff; }
.gschip--soft { background: var(--gs-900); color: var(--gs-300); border: 1px solid var(--gs-700); }
.gschip--success { background: color-mix(in srgb, var(--gs-success) 16%, transparent); color: var(--gs-400); border: 1px solid color-mix(in srgb, var(--gs-success) 40%, transparent); }
.gschip--warning { background: color-mix(in srgb, var(--gs-warning) 16%, transparent); color: var(--gs-warning); border: 1px solid color-mix(in srgb, var(--gs-warning) 40%, transparent); }
.gschip--error { background: color-mix(in srgb, var(--gs-error) 16%, transparent); color: var(--gs-error); border: 1px solid color-mix(in srgb, var(--gs-error) 40%, transparent); }

/*, cards (TreeTracker grower card), */
.gscard { width: 256px; max-width: 100%; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg); }
.gscard__media { height: 96px; background: linear-gradient(135deg, var(--gs-700), var(--gs-500)); position: relative; display: flex; align-items: flex-end; padding: 12px; }
.gscard__badge { font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.32); padding: 4px 9px; border-radius: 999px; }
.gscard__body { padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.gscard__t { font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: -.01em; color: var(--ink); }
.gscard__meta { display: flex; align-items: center; gap: 8px; }
.gscard__av { width: 24px; height: 24px; border-radius: 50%; background: var(--gs-400); flex: none; }
.gscard__sub { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.gscard__stats { display: flex; gap: 16px; border-top: 1px solid var(--line); padding-top: 11px; }
.gscard__sn { font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--gs-400); }
.gscard__sl { font-family: var(--mono); font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-4); }

/*, states matrix, */
.gsk-matrix { display: grid; grid-template-columns: 90px repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
@media (max-width: 680px) { .gsk-matrix { grid-template-columns: 70px repeat(4,1fr); } }
.gsk-matrix__h, .gsk-matrix__c { background: var(--bg); padding: 14px 10px; display: flex; align-items: center; justify-content: center; }
.gsk-matrix__h { font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); background: var(--bg-2); }
.gsk-matrix__rh { font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--gs-400); background: var(--bg-2); justify-content: flex-start; }

/*, a11y contrast proof, */
.gsk-aa { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 680px) { .gsk-aa { grid-template-columns: 1fr; } }
.gsk-aa__c { border-radius: 11px; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 104px; justify-content: space-between; }
.gsk-aa__t { font-family: var(--display); font-weight: 700; font-size: 15px; }
.gsk-aa__r { display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; }
.gsk-aa__pass { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.16); }

/* =========================================================================
   HOME-ROW HOVER, Greenstand "mini component board" popover
   ========================================================================= */
.workrow__gs {
  position: absolute; right: 17%; top: 50%;
  transform: translate(calc(var(--fx,0)*14px), calc(-50% + var(--fy,0)*8px));
  width: 0; height: 0; pointer-events: none; z-index: 6;
  opacity: 0; transition: opacity .4s var(--ease);
}
.workrow--gs:hover .workrow__gs { opacity: 1; }
@media (max-width: 900px) { .workrow__gs { display: none; } }

.gsp-board {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  width: 288px; background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 15px;
  box-shadow: 0 34px 66px rgba(0,0,0,.6), 0 0 0 6px rgba(31,122,77,.12);
  padding: 15px; display: flex; flex-direction: column; gap: 12px;
}
.workrow--gs:hover .gsp-board { animation: gspPop .55s cubic-bezier(.34,1.5,.5,1) both; }
@keyframes gspPop { from { opacity: 0; transform: translate(-50%, calc(-50% + 22px)) scale(.93); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

/* stagger inner rows in after the board lands */
.gsp-board > * { opacity: 0; }
.workrow--gs:hover .gsp-board > * { animation: gspRise .4s var(--ease) both; }
.workrow--gs:hover .gsp-board > *:nth-child(1) { animation-delay: .10s; }
.workrow--gs:hover .gsp-board > *:nth-child(2) { animation-delay: .17s; }
.workrow--gs:hover .gsp-board > *:nth-child(3) { animation-delay: .24s; }
.workrow--gs:hover .gsp-board > *:nth-child(4) { animation-delay: .31s; }
.workrow--gs:hover .gsp-board > *:nth-child(5) { animation-delay: .38s; }
@keyframes gspRise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.gsp-hd { display: flex; align-items: center; justify-content: space-between; }
.gsp-hd__t { font-family: var(--mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--gs-400); }
.gsp-hd__dots { display: flex; gap: 4px; }
.gsp-hd__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); display: block; }
.gsp-hd__dots i:first-child { background: var(--gs-500); }
.gsp-brow { display: flex; gap: 8px; }
.gsp-b { font-family: var(--display); font-weight: 600; font-size: 12.5px; line-height: 1; padding: 9px 14px; border-radius: 8px; white-space: nowrap; }
.gsp-b--p { background: var(--gs-600); color: #fff; }
.gsp-b--s { background: transparent; color: var(--gs-300); border: 1.5px solid var(--gs-600); }
.gsp-fld { display: flex; align-items: center; gap: 8px; background: var(--gs-n900); border: 1.5px solid var(--gs-500); border-radius: 8px; padding: 9px 11px; box-shadow: 0 0 0 3px var(--gs-800); }
.gsp-fld .ph { font-family: var(--display); font-size: 12.5px; color: var(--gs-n300); white-space: nowrap; }
.gsp-fld .car { width: 1.5px; height: 13px; background: var(--gs-400); margin-left: auto; }
.gsp-ctlrow { display: flex; align-items: center; gap: 10px; }
.gsp-tog { width: 36px; height: 21px; border-radius: 999px; background: var(--gs-600); position: relative; flex: none; }
.gsp-tog::after { content: ''; position: absolute; top: 3px; right: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; }
.gsp-ctlrow .lab { font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.gsp-chip { margin-left: auto; font-family: var(--mono); font-size: 9.5px; padding: 4px 10px; border-radius: 999px; background: var(--gs-900); border: 1px solid var(--gs-700); color: var(--gs-300); }
.gsp-tokens { display: flex; gap: 5px; padding-top: 2px; }
.gsp-tokens i { flex: 1; height: 16px; border-radius: 4px; display: block; }

@media (prefers-reduced-motion: reduce) {
  .workrow--gs:hover .gsp-board { animation: none !important; opacity: 1 !important; }
  .workrow--gs:hover .gsp-board > * { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ---- variant switching (data-gshover: board | scatter | grid | tokens) -- */
.gspk { position: absolute; left: 0; top: 0; width: 0; height: 0; display: none; }
html[data-gshover="board"] .gspk--board { display: block; }
html[data-gshover="scatter"] .gspk--scatter { display: block; }
html[data-gshover="grid"] .gspk--grid { display: block; }
html[data-gshover="tokens"] .gspk--tokens,
html:not([data-gshover]) .gspk--tokens { display: block; }

/* ===== variant: SCATTER, individual components pop in around the centre = */
.gss { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 11px;
  box-shadow: 0 22px 44px rgba(0,0,0,.5); opacity: 0; }
.workrow--gs:hover .gss { animation: gspPop .5s cubic-bezier(.34,1.5,.5,1) both; }
.workrow--gs:hover .gss--2 { animation-delay: .07s; }
.workrow--gs:hover .gss--3 { animation-delay: .14s; }
.workrow--gs:hover .gss--4 { animation-delay: .21s; }
.workrow--gs:hover .gss--5 { animation-delay: .28s; }
.gss--btn   { left: 8px;   top: -56px; padding: 10px 15px; background: var(--gs-600); border-color: var(--gs-600); color: #fff; font-family: var(--display); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.gss--field { left: 86px;  top: -8px;  width: 150px; padding: 9px 11px; display: flex; align-items: center; gap: 8px; }
.gss--field .ph { font-family: var(--display); font-size: 12px; color: var(--gs-n300); white-space: nowrap; }
.gss--field .car { width: 1.5px; height: 12px; background: var(--gs-400); margin-left: auto; }
.gss--tokens{ left: -64px; top: 8px;   padding: 8px; display: flex; gap: 5px; }
.gss--tokens i { width: 16px; height: 16px; border-radius: 4px; display: block; }
.gss--toggle{ left: 16px;  top: 50px;  padding: 9px 12px; display: flex; align-items: center; gap: 9px; }
.gss--toggle .t { width: 34px; height: 20px; border-radius: 999px; background: var(--gs-600); position: relative; flex: none; }
.gss--toggle .t::after { content: ''; position: absolute; top: 3px; right: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.gss--toggle .lab { font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.gss--chip  { left: 132px; top: 54px;  padding: 6px 12px; border-radius: 999px; background: var(--gs-900); border-color: var(--gs-700); color: var(--gs-300); font-family: var(--mono); font-size: 9.5px; }

/* ===== variant: GRID, Storybook tile grid ============================== */
.gsg { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  width: 300px; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 15px; box-shadow: 0 34px 66px rgba(0,0,0,.6), 0 0 0 6px rgba(31,122,77,.12);
  padding: 14px; opacity: 0; }
.workrow--gs:hover .gsg { animation: gspPop .55s cubic-bezier(.34,1.5,.5,1) both; }
.gsg__hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.gsg__t { font-family: var(--mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--gs-400); }
.gsg__c { font-family: var(--mono); font-size: 9px; color: var(--ink-4); }
.gsg__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.gsg__tile { border: 1px solid var(--line); border-radius: 9px; padding: 12px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; min-height: 62px; background: var(--bg); }
.gsg__tl { font-family: var(--mono); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); }
.gsg-mini-b { background: var(--gs-600); color: #fff; font-family: var(--display); font-weight: 600; font-size: 10px; padding: 6px 11px; border-radius: 6px; }
.gsg-mini-f { width: 90%; height: 22px; border-radius: 6px; border: 1.5px solid var(--gs-500); box-shadow: 0 0 0 2px var(--gs-800); }
.gsg-mini-t { width: 30px; height: 18px; border-radius: 999px; background: var(--gs-600); position: relative; }
.gsg-mini-t::after { content: ''; position: absolute; top: 3px; right: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.gsg-mini-c { display: flex; gap: 4px; }
.gsg-mini-c i { width: 12px; height: 12px; border-radius: 3px; display: block; }

/* ===== variant: TOKENS, palette-forward artifact card (default) ======== */
.gst { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  width: 330px; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 18px; box-shadow: 0 38px 74px rgba(0,0,0,.62), 0 0 0 7px rgba(31,122,77,.13);
  padding: 19px; display: flex; flex-direction: column; gap: 16px; opacity: 0; }
.workrow--gs:hover .gst { animation: gspPop .55s cubic-bezier(.34,1.5,.5,1) both; }
.gst__hd { display: flex; align-items: center; justify-content: space-between; }
.gst__t { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gs-400); }
.gst__chip { font-family: var(--mono); font-size: 10px; padding: 4px 11px; border-radius: 999px; background: var(--gs-900); border: 1px solid var(--gs-700); color: var(--gs-300); }
.gst__scale { display: flex; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.gst__scale i { flex: 1; height: 56px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 5px; font-family: var(--mono); font-size: 8px; color: rgba(255,255,255,.5); }
.gst__row { display: flex; align-items: center; gap: 10px; }
.gst__b { background: var(--gs-600); color: #fff; font-family: var(--display); font-weight: 600; font-size: 13.5px; padding: 11px 18px; border-radius: 9px; white-space: nowrap; }
.gst__sem { display: flex; gap: 7px; margin-left: auto; }
.gst__sem i { width: 22px; height: 22px; border-radius: 6px; display: block; }
