/* ===========================================================================
   Signal Collective — water & wood skin, applied over sc-v2 components.
   Loaded AFTER sc-v2.css by scripts/build-preview-v5.sh, so the 39 subpages
   carry the same identity as the bespoke water-wood homepage without a single
   change to their markup or their copy.

   The system, stated once: water feeds wood. Deep ink-navy ground, green growth
   rising out of it. COBALT IS WHAT YOU CLICK, GREEN IS WHAT GROWS — never a
   green button, never a cobalt metric. See docs/brand/2026-09-03-water-wood-brand.md
   =========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500..700&family=Instrument+Sans:wght@400;500;600&display=swap");

:root {
  /* ground */
  --bg-deep: #070c16;
  --bg-elevated: #0b1220;
  --bg-sunken: #05090f;
  --surface: #0b1220;

  /* ink — cool mist, never pure white */
  --text-primary: #dfe7f4;
  --text-muted: rgba(223, 231, 244, 0.62);
  --text-dim: rgba(223, 231, 244, 0.44);

  /* rules */
  --line: rgba(190, 210, 255, 0.16);
  --line-soft: rgba(190, 210, 255, 0.09);
  --hairline: rgba(190, 210, 255, 0.16);

  /* the accent slot is what you CLICK, so it is cobalt */
  --accent-amber: #3161f2;
  --accent-amber-hover: #5b83ff;
  --accent-amber-dim: #2447ad;
  --accent: var(--accent-amber);
  --accent-dim: var(--accent-amber-dim);
  --text-on-amber: #ffffff;

  /* comparison column two: quiet, never a third hue */
  --signal-cyan: rgba(223, 231, 244, 0.55);
  --signal-cyan-dim: rgba(223, 231, 244, 0.34);

  /* type */
  --f-serif: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --f-cjk-serif: "Bricolage Grotesque", "Noto Sans HK", sans-serif;
  --f-sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--f-serif);

  color-scheme: dark;
}

/* green is growth: it marks what grew, never what you press */
:root { --wood: #3da864; --wood-bright: #5ecc85; }

html, body { background: var(--bg-deep); color: var(--text-primary); }

/* the same slow water the homepage sits on */
body::before {
  content: "";
  position: fixed; inset: -20%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(42% 32% at 16% 24%, rgba(49, 97, 242, 0.10), transparent 70%),
    radial-gradient(38% 30% at 82% 66%, rgba(61, 168, 100, 0.055), transparent 72%),
    radial-gradient(54% 44% at 58% 8%, rgba(24, 52, 130, 0.13), transparent 74%);
}
main, header, footer, .topbar, .sub-bar, .page { position: relative; z-index: 1; }

::selection { background: var(--wood); color: var(--bg-deep); }

/* display voice */
h1, h2, h3 { font-family: var(--f-serif); letter-spacing: -0.022em; font-weight: 600; }
h1 { letter-spacing: -0.03em; }

/* ——— topbar ——— */
.topbar {
  background: rgba(7, 12, 22, 0.82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-drawer { background: #070c16; }
.topbar .brand .wordmark { font-family: var(--f-serif); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.topbar .primary a[aria-current], .topbar .primary a:hover { color: var(--text-primary); }
.topbar .cta-link { color: var(--accent-amber-hover); }
/* the mark: the leaf, same geometry as mark.svg */
.topbar .brand .mark-box {
  display: inline-block; width: 15px; height: 15px; flex: none;
  border: none; border-radius: 0; background: transparent;
  -webkit-mask: url("/design-assets/brand-water-wood/mark-solid.svg") center / contain no-repeat;
          mask: url("/design-assets/brand-water-wood/mark-solid.svg") center / contain no-repeat;
  background-image: linear-gradient(135deg, #5ecc85, #3da864);
}
/* the location span is not navigation; the homepage dropped it, so do the same */
.topbar .meta > span { display: none; }

.sub-bar { background: transparent; border-bottom: 1px solid var(--line-soft); color: var(--text-dim); }

/* ——— buttons: cobalt is the action ——— */
.btn {
  background: transparent; border: 1px solid var(--line);
  color: var(--text-primary); border-radius: 999px;
}
.btn:hover, .btn:focus-visible { border-color: var(--text-primary); background: rgba(223, 231, 244, 0.06); color: var(--text-primary); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover, .btn.primary:focus-visible { background: var(--accent-amber-hover); border-color: var(--accent-amber-hover); color: #fff; }

a { text-decoration-color: var(--text-dim); }
p a:hover, li a:hover { color: var(--accent-amber-hover); }

/* ——— panels go transparent; the rules carry the structure ——— */
.svc, .svc-grid > * { background: rgba(11, 18, 32, 0.55); }
.svc-grid { border-radius: 12px; }
.principles .p, .o, .pb, .reference, .faq .q, .fact-cells .cell,
.hero-facts .cell, .foot-meta .cell, .notes-meta-strip .cell,
.card, .note-card, .work-card { background: transparent; box-shadow: none; }
.principles .p { border-color: var(--line); }

/* ——— green marks growth: metrics, numerals, accents in display lines ——— */
h1 em, h1 i, .ax, .ax-asia, .ax-west { color: var(--wood-bright) !important; font-style: normal !important; }
.svc-k, .pb-label { color: var(--wood-bright); }
.o .v, .pb-stats b, .stat b, .outcomes .v, .metric b { color: var(--wood-bright); }

/* comparison tables */
.reg-head .rh-west { color: var(--signal-cyan); }
table, th, td { border-color: var(--line); }

/* forms */
input, select, textarea {
  background: rgba(11, 18, 32, 0.7); color: var(--text-primary); border-color: var(--line);
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
.field input:focus, .field select:focus, .field textarea:focus {
  box-shadow: 0 0 0 2.5px rgba(49, 97, 242, 0.20);
}

.clean-footer { background: transparent; border-top: 1px solid var(--line); }

:focus-visible { outline-color: var(--accent-amber-hover); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
