/* holograb page base (BRAND) — builds on /brand/tokens.css */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--hg-bg); color: var(--hg-fg);
  font-family: var(--hg-font-display); font-weight: 400; font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

.hgx-btn {
  appearance: none; border: 0; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--hg-font-mono); text-transform: uppercase; letter-spacing: .2em; font-size: 12px; font-weight: 600;
  padding: 15px 22px; border-radius: 999px; background: var(--hg-fg); color: var(--hg-ink);
  transition: transform .4s var(--hg-ease), background .3s, opacity .3s;
}
.hgx-btn:hover { transform: translateY(-1px); }
.hgx-btn:disabled { opacity: .4; cursor: default; transform: none; }
.hgx-btn.ghost { background: var(--hg-fill); color: var(--hg-fg); }
.hgx-btn.small { padding: 10px 16px; font-size: 11px; }

.hgx-field { display: grid; gap: 8px; }
.hgx-field > span { font-family: var(--hg-font-mono); text-transform: uppercase; letter-spacing: var(--hg-track-mono); font-size: 11px; color: var(--hg-muted); }
.hgx-input {
  width: 100%; border: 0; outline: 0; background: var(--hg-fill); border-radius: 12px; padding: 14px 16px; font-size: 16px;
  transition: background .3s;
}
.hgx-input:focus { background: var(--hgx-input-focus, #222); }
select.hgx-input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--hg-muted) 50%), linear-gradient(135deg, var(--hg-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
textarea.hgx-input { resize: vertical; min-height: 96px; }

.hgx-toast { opacity: 0; transform: translate(-50%, -12px); pointer-events: none; transition: opacity .35s, transform .45s var(--hg-ease); }
.hgx-toast.on { opacity: 1; transform: translate(-50%, 0); }

.hgx-top {
  display: flex; justify-content: space-between; align-items: center; padding: 26px clamp(16px, 4vw, 48px);
}
.hgx-top a { text-decoration: none; }
.hgx-mark { font-family: var(--hg-font-display); font-weight: 800; letter-spacing: -0.05em; font-size: 22px; text-decoration: none; }
.hgx-mark sup { font-size: .45em; font-weight: 600; letter-spacing: 0; }

.hgx-modal { position: fixed; inset: 0; background: var(--hgx-scrim, rgba(5,5,5,.78)); backdrop-filter: blur(10px); display: none; place-items: center; z-index: 900; padding: 16px; }
.hgx-modal.on { display: grid; }
.hgx-modal > div { background: var(--hg-bg-2); border-radius: 22px; padding: clamp(24px, 4vw, 44px); width: min(480px, 100%); }

/* Light look (opt-in, see /brand/tokens.css): the few values above that aren't brand tokens. */
html[data-theme="light"] { --hgx-input-focus: #d8d8d2; --hgx-scrim: rgba(244,244,242,.8); }
html[data-theme="light"] .hgx-input::placeholder { color: #84837c; }

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