/* GILDMIND skin, loaded after base.css on every page (replaces the old skin).
   Cinematic dark frame, mono caps labels, hairline panels, notched light buttons.
   Robinhood green for action and live, gold for numbers, receipts and the second accent.
   Instrument Sans for titles and text, JetBrains Mono for labels and data, Departure Mono only for the wordmark. */
@font-face { font-family: 'Instrument Sans'; src: url('/assets/fonts/instrument-sans-var.woff2') format('woff2'); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/assets/fonts/jetbrains-mono-var.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }
@font-face { font-family: 'Departure Mono'; src: url('/assets/fonts/departure-mono.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  /* gildmind tokens */
  --g-void: #000; --g-bg: #03080A; --g-ink-1: #071010; --g-ink-2: #0B1614; --g-ink-3: #11201C; --g-ink-4: #172A25;
  --g-line: rgba(214, 240, 224, .10); --g-line-2: rgba(214, 240, 224, .18); --g-line-3: rgba(214, 240, 224, .30);
  --g-t: #E6F2EA; --g-t2: rgba(230, 242, 234, .68); --g-t3: rgba(230, 242, 234, .48); --g-t4: rgba(230, 242, 234, .30);
  --g-green: #00C805; --g-green-hi: #3BE36A; --g-green-ink: #021006; --g-green-wash: rgba(0, 200, 5, .08); --g-green-line: rgba(59, 227, 106, .38);
  --g-gold: #F5C542; --g-gold-hi: #FFE08A; --g-gold-ink: #1A1200; --g-gold-wash: rgba(245, 197, 66, .08); --g-gold-line: rgba(245, 197, 66, .40);
  --g-loss: #FF6B57; --g-panel: rgba(5, 12, 11, .74);
  --g-sans: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --g-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --g-pixel: 'Departure Mono', 'JetBrains Mono', ui-monospace, monospace;
  --g-inset: 40px; --g-ease: cubic-bezier(.2, .7, .2, 1); --g-press: .15s cubic-bezier(.2, 0, 0, 1);
  --g-notch: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);

  /* the older skeleton's tokens, pointed at the gildmind palette (app screens and inner pages still read these) */
  --night: var(--g-bg); --night-2: var(--g-ink-1); --night-3: var(--g-ink-2); --night-4: var(--g-ink-3); --night-5: var(--g-ink-4);
  --ember: var(--g-green); --ember-hi: var(--g-green-hi); --ember-deep: #00A004; --ember-ink: var(--g-green-ink);
  --amber: var(--g-gold); --amber-hi: var(--g-gold-hi); --amber-deep: #C99A1E;
  --cream: var(--g-t); --muted-c: var(--g-t3); --up-c: var(--g-green-hi); --down-c: var(--g-loss);
  --line: var(--g-line); --line-2: var(--g-line-2); --line-3: var(--g-line-3);
  --glass: rgba(3, 8, 10, .84); --glass-2: rgba(7, 16, 16, .9);
  --on: var(--g-t); --on-2: var(--g-t2); --on-3: var(--g-t3); --on-line: var(--g-line);
  --gold: var(--g-gold); --gold-glow: var(--g-gold-hi); --gold-deep: #C99A1E; --gold-ink: var(--g-gold);
  --sig: var(--g-green-hi); --cool: var(--g-gold); --pix: var(--g-pixel);
  --display: var(--g-sans); --sans: var(--g-sans); --serif: var(--g-sans); --mono: var(--g-mono);
  --green: var(--g-green-hi); --red: var(--g-loss); --violet-ink: var(--g-gold);
  --r-sm: 2px; --r-md: 2px; --r-lg: 2px; --r-xl: 3px; --r-2xl: 4px;
  --ember-grad: var(--g-green); --gold-grad: var(--g-gold); --hl-grad: none;
}
html, body { background: var(--g-bg); color: var(--g-t); }
body { font-family: var(--g-sans); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--g-green); color: var(--g-green-ink); }
:focus-visible { outline: 2px solid var(--g-green-hi); outline-offset: 2px; border-radius: 2px; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-track { background: var(--g-bg); }
::-webkit-scrollbar-thumb { background: var(--g-ink-4); border: 2px solid var(--g-bg); } ::-webkit-scrollbar-thumb:hover { background: #24403A; }

/* page sky for inner pages: faint art at the top, dark below */
.sky, .bx-bg { background: radial-gradient(70% 50% at 78% -8%, rgba(0, 200, 5, .14), transparent 62%), radial-gradient(50% 40% at 8% -4%, rgba(245, 197, 66, .08), transparent 60%), var(--g-bg) !important; }
.sky::after, .bx-bg::after { content: ''; position: absolute; inset: 0; background: url('/assets/img/scene-sky.webp') top center / cover no-repeat; opacity: .22; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%); mask-image: linear-gradient(180deg, #000 0%, transparent 70%); }
.sky canvas, .sky__grid, .bx-bg__ember, .bx-bg__grid { display: none !important; }

/* type */
h1, h2, h3, .h2 { font-family: var(--g-sans); }
.g-title, .h2 { font-family: var(--g-sans); font-weight: 700; text-transform: uppercase; letter-spacing: .005em; line-height: 1.04; color: var(--g-t); font-size: clamp(30px, 3.4vw, 50px); }
.g-title em, .h2 em, .pix { font-style: normal; color: var(--g-green-hi); font-family: inherit; font-weight: inherit; letter-spacing: inherit; text-shadow: none; }
.g-title b { color: var(--g-gold); font-weight: inherit; }
.g-eyebrow, .eyebrow { font-family: var(--g-mono); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--g-green-hi); }
.g-label, .label, .pill-mono { font-family: var(--g-mono); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--g-green-hi); }
.g-lead { font-size: 16px; line-height: 1.6; color: var(--g-t2); max-width: 60ch; }
.g-mono, .mono { font-family: var(--g-mono); }
.g-num { font-family: var(--g-mono); font-variant-numeric: tabular-nums; }
.g-up { color: var(--g-green-hi); } .g-down { color: var(--g-loss); } .g-goldtxt { color: var(--g-gold); }

/* brand: gold-visor mark + wordmark */
.brand, .g-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--g-t); }
.brand__mark, .g-brand__mark { width: 32px; height: 32px; display: block; flex: none; background: url('/assets/img/mark.png?v=h1') center / cover no-repeat; border-radius: 50%; box-shadow: 0 0 0 1px rgba(245,197,66,.5), 0 0 14px rgba(0,200,5,.18); }
.brand__word, .g-brand__word { font-family: var(--g-sans); font-weight: 700; font-size: 24px; letter-spacing: -.025em; text-transform: lowercase; color: var(--g-t); line-height: 1; }
.brand__word b, .g-brand__word b { font-family: inherit; font-weight: 700; color: var(--g-gold); letter-spacing: inherit; }

/* buttons: light notched (primary), dark, green */
.g-btn, .btn { --bh: 44px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--bh); padding: 0 22px;
  font-family: var(--g-mono) !important; font-size: 12px !important; font-weight: 700 !important; letter-spacing: .16em !important; text-transform: uppercase;
  border: 0; border-radius: 0 !important; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform var(--g-press), background var(--g-press), color var(--g-press), filter var(--g-press); }
.g-btn, .btn--ember, .bx-btn--ember { background: var(--g-t) !important; color: #03100A !important; clip-path: var(--g-notch); box-shadow: none !important; border-color: transparent !important; }
.g-btn:hover, .btn--ember:hover, .bx-btn--ember:hover { background: #FFFFFF !important; }
.g-btn:active, .btn:active { transform: translateY(1px); }
.g-btn svg, .btn svg { width: 12px; height: 12px; flex: none; }
.g-btn .g-play { width: 0; height: 0; border-left: 7px solid currentColor; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.g-btn--dark, .btn--ghost, .bx-btn--out { background: #0B1614 !important; color: var(--g-t) !important; clip-path: none; box-shadow: inset 0 0 0 1px var(--g-line-2) !important; }
.g-btn--dark:hover, .btn--ghost:hover, .bx-btn--out:hover { background: var(--g-ink-3) !important; box-shadow: inset 0 0 0 1px var(--g-line-3) !important; }
.g-btn--green { background: var(--g-green) !important; color: var(--g-green-ink) !important; clip-path: var(--g-notch); }
.g-btn--green:hover { background: var(--g-green-hi) !important; }
.g-btn--gold { background: var(--g-gold) !important; color: var(--g-gold-ink) !important; clip-path: var(--g-notch); }
.g-btn--sm { --bh: 34px; padding: 0 14px; font-size: 11px !important; }
.bx-btn { border-radius: 0 !important; font-family: var(--g-mono); letter-spacing: .12em; text-transform: uppercase; font-size: 11.5px; font-weight: 700; }

/* panels (Skuldr "RELEASE STATUS" card) */
.g-panel { position: relative; background: var(--g-panel); border: 1px solid var(--g-line-2); -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1); padding: 20px 20px 14px; }
.g-panel__label { font-family: var(--g-mono); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--g-green-hi); margin-bottom: 10px; display: flex; justify-content: space-between; gap: 12px; }
.g-panel__label span + span { color: var(--g-t3); font-weight: 400; }
.g-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--g-line-2); font-family: var(--g-mono); font-size: 12.5px; color: var(--g-t2); }
.g-row:last-child { border-bottom: 0; }
.g-row b { font-weight: 500; color: var(--g-t); text-align: right; } .g-row b.g-up { color: var(--g-green-hi); } .g-row b.g-goldtxt { color: var(--g-gold); }
.g-note { font-family: var(--g-mono); font-size: 11px; color: var(--g-t3); line-height: 1.6; margin-top: 10px; }
.tick, .card, .panel, .bx-card { border-radius: 2px !important; }
.tick { position: relative; border: 1px solid var(--g-line-2); background: var(--g-panel); }
.tick::before, .tick::after { display: none; }

/* status badges for the evidence grid */
.g-badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; font-family: var(--g-mono); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; border: 1px solid currentColor; white-space: nowrap; }
.g-badge--ok { color: var(--g-green-hi); background: var(--g-green-wash); } .g-badge--gold { color: var(--g-gold); background: var(--g-gold-wash); } .g-badge--off { color: var(--g-t3); }

/* the CA bar (home hero only): CA | address + dots | Copy | chain */
.g-ca { display: flex; align-items: stretch; height: 42px; border: 1px solid var(--g-line-2); background: rgba(5, 12, 11, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-family: var(--g-mono); font-size: 12.5px; max-width: 100%; }
.g-ca > * { display: flex; align-items: center; padding: 0 14px; border-right: 1px solid var(--g-line-2); white-space: nowrap; }
.g-ca > *:last-child { border-right: 0; }
.g-ca__k { color: var(--g-green-hi); font-weight: 700; letter-spacing: .1em; }
.g-ca__v { color: var(--g-t); gap: 12px; min-width: 0; letter-spacing: .02em; }
.g-ca__v code { font-family: inherit; overflow: hidden; text-overflow: clip; }
.g-ca__dots { display: inline-flex; gap: 3px; } .g-ca__dots i { width: 5px; height: 8px; background: var(--g-t4); }
.g-ca__dots i.on { background: var(--g-gold); }
.g-ca__copy { color: var(--g-t3); background: none; border: 0; border-right: 1px solid var(--g-line-2); cursor: pointer; font: inherit; }
.g-ca__copy:hover:not([disabled]) { color: var(--g-t); } .g-ca__copy[disabled] { cursor: default; }
.g-ca__chain { color: var(--g-t2); gap: 10px; } .g-ca__chain::before { content: ''; width: 7px; height: 7px; background: var(--g-gold); }

/* live dot */
.dot-live, .g-live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--g-green-hi) !important; box-shadow: 0 0 0 0 rgba(59, 227, 106, .6); animation: g-pulse 2s infinite; }
@keyframes g-pulse { 0% { box-shadow: 0 0 0 0 rgba(59, 227, 106, .55); } 70% { box-shadow: 0 0 0 8px rgba(59, 227, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(59, 227, 106, 0); } }

/* forms */
.g-input, .bx input[type=text], .bx input[type=number], .bx input[type=password], .bx textarea, .bx select { background: var(--g-ink-1); border: 1px solid var(--g-line-2); color: var(--g-t); border-radius: 0; font-family: var(--g-mono); }
.g-input:focus, .bx input:focus, .bx textarea:focus, .bx select:focus { border-color: var(--g-green-line); outline: none; box-shadow: 0 0 0 3px rgba(0, 200, 5, .12); }

/* pills */
.pill { border-radius: 0 !important; font-family: var(--g-mono); letter-spacing: .08em; }
.pill--example { background: var(--g-gold-wash) !important; color: var(--g-gold) !important; border-color: var(--g-gold-line) !important; }

/* terminal lines (kept for the app) */
.term { font-family: var(--g-mono); font-size: 12.5px; line-height: 1.7; color: var(--g-t2); }
.term .ok { color: var(--g-green-hi); } .term .warn { color: var(--g-gold); } .term .bad { color: var(--g-loss); } .term .dim { color: var(--g-t3); } .term .cool { color: var(--g-gold); }
.caret { display: inline-block; width: .6em; height: 1.05em; background: var(--g-green-hi); vertical-align: -2px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* ---------- nav (inner pages: bar; home: inside the frame, see home-gild.css) ---------- */
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--g-t); color: var(--g-bg); font-family: var(--g-mono); font-size: 12px; font-weight: 700; padding: 8px 12px; }
.skip:focus { top: 12px; }
.g-nav { position: fixed; left: 0; right: 0; top: 0; z-index: 60; pointer-events: none; }
.g-nav__bar { position: relative; z-index: 1; pointer-events: auto; display: flex; align-items: center; gap: 28px; margin: 0 auto; max-width: min(2560px, calc(100vw - 2 * var(--g-inset))); height: 104px; padding: 0 0 0 28px; }
.g-nav .g-brand { margin-right: auto; }
.g-nav__links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.g-nav__links a { display: block; padding: 8px 10px; font-family: var(--g-mono); font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--g-t2); text-decoration: none; transition: color var(--g-press); }
.g-nav__links a:hover, .g-nav__links a[aria-current='page'] { color: var(--g-t); }
.g-nav__links a[aria-current='page'] { color: var(--g-green-hi); }
.g-nav__act { display: flex; align-items: stretch; height: 44px; }
.g-nav__act .g-btn--dark { box-shadow: none !important; background: #0B1614 !important; padding: 0 22px; }
.g-nav__menu { padding: 0 22px !important; }
.g-nav__menu i { display: inline-grid; grid-template-columns: 3px 3px; gap: 2px; } .g-nav__menu i b { width: 3px; height: 3px; background: currentColor; }
.g-page .g-nav { background: linear-gradient(180deg, rgba(3, 8, 10, .92), rgba(3, 8, 10, .0)); }
.g-page .g-nav.is-scrolled { background: rgba(3, 8, 10, .9); border-bottom: 1px solid var(--g-line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.g-page .g-nav__bar { height: 84px; }

/* menu overlay */
.g-menu { position: fixed; inset: 0; z-index: 90; background: rgba(2, 6, 7, .95); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); display: grid; grid-template-rows: auto 1fr auto; padding: 32px var(--g-inset); animation: g-fade .32s var(--g-ease) both; }
.g-menu[hidden] { display: none; }
@keyframes g-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes g-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.g-menu__top { display: flex; justify-content: space-between; align-items: center; padding: 0 28px; height: 72px; }
.g-menu__close { display: inline-flex; align-items: center; background: var(--g-t); color: var(--g-bg); border: 0; height: 44px; padding: 0 22px; font-family: var(--g-mono); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; clip-path: var(--g-notch); cursor: pointer; }
.g-menu__list { align-self: center; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; max-width: 1100px; width: 100%; margin: 0 auto; padding: 0 28px; }
.g-menu__link { display: grid; grid-template-columns: 44px 1fr auto; align-items: baseline; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--g-line); text-decoration: none; color: var(--g-t); animation: g-rise .55s var(--g-ease) both; animation-delay: calc(var(--i, 0) * 40ms + 80ms); transition: color .2s; }
.g-menu__link:hover { color: var(--g-green-hi); }
.g-menu__n { font-family: var(--g-mono); font-size: 11px; color: var(--g-t3); letter-spacing: .1em; }
.g-menu__t { text-align: left; font-family: var(--g-sans); font-weight: 700; text-transform: uppercase; font-size: clamp(22px, 2.6vw, 34px); letter-spacing: .005em; line-height: 1.05; }
.g-menu__c { font-family: var(--g-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--g-gold); }
.g-menu__foot { display: flex; justify-content: space-between; align-items: center; padding: 0 28px; font-family: var(--g-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--g-t3); }

/* social icon buttons */
.g-icon { width: 30px; height: 30px; display: inline-grid; place-items: center; border: 1px solid var(--g-line-2); color: var(--g-t); background: rgba(5, 12, 11, .6); transition: border-color var(--g-press), color var(--g-press); }
.g-icon:hover { border-color: var(--g-green-line); color: var(--g-green-hi); }
.g-icon svg { width: 14px; height: 14px; }
[data-link][hidden], .g-icon[hidden] { display: none !important; }

/* ---------- footer (Skuldr: brand + blurb + socials | link columns | facts row) ---------- */
.g-foot { position: relative; z-index: 2; padding: 72px var(--g-inset) 40px; }
.g-foot__in { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.g-foot__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--g-line); }
.g-foot__brand p { color: var(--g-t2); font-size: 14px; line-height: 1.6; max-width: 36ch; margin: 18px 0 18px; }
.g-foot__soc { display: flex; gap: 8px; }
.g-foot__col { display: flex; flex-direction: column; gap: 12px; }
.g-foot__col h3 { font-family: var(--g-mono); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--g-green-hi); margin: 0 0 4px; }
.g-foot__col a { font-family: var(--g-mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--g-t2); text-decoration: none; }
.g-foot__col a:hover { color: var(--g-t); }
.g-foot__facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 24px; font-size: 13px; }
.g-foot__facts b { display: block; font-weight: 500; color: var(--g-t); } .g-foot__facts span { color: var(--g-t3); }
.g-foot__credit { margin-top: 28px; font-family: var(--g-mono); font-size: 10.5px; color: var(--g-t4); letter-spacing: .04em; }
.g-foot__credit a { color: inherit; }

@media (max-width: 1100px) {
  .g-nav__links { display: none; }
  .g-foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --g-inset: 14px; }
  .g-nav__bar { height: 72px; padding-left: 14px; gap: 10px; }
  .g-brand__word, .brand__word { font-size: 20px; }
  .g-nav__act .g-btn--dark { display: none; }
  .g-menu__list { grid-template-columns: 1fr; gap: 0; }
  .g-menu__link { padding: 13px 0; }
  .g-foot__grid { grid-template-columns: 1fr; gap: 28px; }
  .g-foot__facts { grid-template-columns: 1fr 1fr; }
  .g-ca { font-size: 11.5px; height: 40px; } .g-ca > * { padding: 0 10px; } .g-ca__chain { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { .dot-live, .g-live, .caret { animation: none; } .g-menu, .g-menu__link { animation: none; } }

/* inner pages: the scene art, faint, behind the top of the page (home has its own stage, the app its own bg) */
body:not(.g-home):not(.bx)::before { content: ''; position: fixed; left: 0; right: 0; top: 0; height: 78vh; z-index: -1; pointer-events: none;
  background: url('/assets/img/scene-sky.webp') center top / cover no-repeat; opacity: .3;
  -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 100%); mask-image: linear-gradient(180deg, #000 10%, transparent 100%); }
body.g-page { background: transparent; }   /* html carries the colour so the faint art (z -1) shows through */
/* logo = hero head (round photo) */
.who img { border-radius: 50%; box-shadow: 0 0 0 1px rgba(245,197,66,.45); }
.bx-cn__mark { overflow: hidden; border-color: rgba(245,197,66,.45); }
.bx-cn__mark img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
