/* UBHI — Universal Basic High Income doctrine surface
   Reference: ANIMISHA_PAGE_QUALITY_STANDARD.md · Gold structural gate */

body.ubhi-page {
  --ubhi-teal: #00f5d4;
  --ubhi-magenta: #ff2a6d;
  --ubhi-gold: #fde047;
  --ubhi-purple: #9d4edd;
  --ubhi-ink: #0a0a1a;
  padding-top: 3.25rem;
  background: #020208;
}

body.ubhi-page .vapor-scene {
  background: linear-gradient(
    180deg,
    #04030c 0%,
    #07051a 20%,
    #0a0720 38%,
    #0e0a28 52%,
    #060410 72%,
    #010108 100%
  );
}

body.ubhi-page .vapor-sun {
  opacity: 0.22;
  background: radial-gradient(circle, rgba(157, 78, 221, 0.35) 0%, transparent 68%);
}

body.ubhi-page .grid-floor {
  filter: brightness(0.42) saturate(0.72);
  opacity: 0.68;
}

body.ubhi-page .waves {
  opacity: 0.36;
  filter: brightness(0.4);
}

body.ubhi-page .glow {
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 245, 212, 0.08), transparent 70%);
  opacity: 0.45;
}

/* Fixed fractal hero bleed — superseded by full-bleed hero stage */
.ubhi-fractal-bleed,
.ubhi-fractal-veil {
  display: none;
}

/* Full-bleed cinematic hero */
.ubhi-hero-stage {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: clamp(440px, 68vh, 780px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

/*
 * Hero → vapor blend (toggle: body.ubhi-hero-blend)
 * REVERT: remove body.ubhi-hero-blend from ubhi.html and delete this block through
 * "End hero blend". Default hard-cutoff veil is .ubhi-hero-stage__veil above.
 */
body.ubhi-page.ubhi-hero-blend .ubhi-hero-stage {
  overflow: visible;
  margin-bottom: -2rem;
  padding-bottom: 2.5rem;
}

body.ubhi-page.ubhi-hero-blend .ubhi-hero-stage__media {
  --ubhi-mask-solid: 58%;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 var(--ubhi-mask-solid, 58%),
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 var(--ubhi-mask-solid, 58%),
    transparent 100%
  );
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

body.ubhi-page.ubhi-hero-blend .ubhi-hero-stage__veil {
  background: linear-gradient(
    180deg,
    rgba(10, 10, 26, 0.26) 0%,
    rgba(10, 10, 26, 0.05) 40%,
    rgba(10, 10, 26, 0.14) 58%,
    transparent 100%
  );
}

body.ubhi-page.ubhi-hero-blend .ubhi-hero-stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 32%;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(2, 2, 8, 0.2) 40%,
    rgba(1, 1, 6, 0.45) 100%
  );
}

body.ubhi-page.ubhi-hero-blend .ubhi-article {
  position: relative;
  z-index: 3;
  margin-top: -1.25rem;
  padding-top: 0.5rem;
}

/* Inherit page-level dark vapor — no brighten override */
/* End hero blend */

.ubhi-hero-stage__media {
  position: absolute;
  inset: -4% 0 0;
  transform-origin: center top;
  will-change: transform;
}

.ubhi-hero-stage__media picture,
.ubhi-hero-stage__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: clamp(440px, 68vh, 780px);
  object-fit: cover;
  object-position: center 40%;
}

.ubhi-hero-stage__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 26, 0.18) 0%,
    rgba(10, 10, 26, 0.08) 32%,
    rgba(10, 10, 26, 0.45) 68%,
    rgba(10, 10, 26, 0.92) 100%
  );
  pointer-events: none;
}

.ubhi-hero-stage__content {
  position: relative;
  z-index: 2;
  width: min(920px, 100%);
  padding: 0 1.25rem 2.25rem;
}

.ubhi-hero-glass {
  padding: 1.35rem 1.55rem 1.55rem;
  border-radius: 14px;
  background: rgba(10, 10, 26, 0.48);
  border: 1px solid rgba(0, 245, 212, 0.24);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 18px 52px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: center;
}

body.ubhi-page #page-root {
  position: relative;
  z-index: 4;
}

/* Topbar — compact mobile */
body.ubhi-page .site-topbar {
  flex-wrap: nowrap;
  height: 3.25rem;
  min-height: 3.25rem;
  max-height: 3.25rem;
}

body.ubhi-page .site-topbar-brand .logo-sub {
  letter-spacing: 0.14em;
}

/* Hero copy (inside glass) */
.ubhi-hero-stage .ubhi-badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.ubhi-badge {
  font-family: "Orbitron", sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(253, 224, 71, 0.35);
  color: var(--ubhi-gold);
  background: rgba(253, 224, 71, 0.08);
}

.ubhi-badge--shipped {
  border-color: rgba(0, 245, 212, 0.4);
  color: var(--ubhi-teal);
  background: rgba(0, 245, 212, 0.08);
}

.ubhi-badge--forthcoming {
  border-color: rgba(157, 78, 221, 0.45);
  color: #c4b5fd;
  background: rgba(157, 78, 221, 0.1);
}

.ubhi-hero h1 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.65rem, 5vw, 2.6rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ubhi-gold);
  text-shadow: 0 0 28px rgba(253, 224, 71, 0.35);
  margin: 0 0 0.5rem;
  line-height: 1.15;
}

.ubhi-hero-sub {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(0.58rem, 1.8vw, 0.72rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ubhi-teal);
  margin-bottom: 1rem;
}

.ubhi-hero-lead {
  color: var(--text);
  font-size: clamp(1rem, 2.4vw, 1.12rem);
  line-height: 1.7;
  max-width: 40rem;
  margin: 0 auto 1.5rem;
}

.ubhi-slogan {
  font-family: "Audiowide", "Orbitron", sans-serif;
  font-size: clamp(0.78rem, 2vw, 0.92rem);
  letter-spacing: 0.06em;
  color: var(--ubhi-magenta);
  margin: 0;
}

/* Article */
.ubhi-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.ubhi-article h2 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(0.92rem, 2.4vw, 1.05rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ubhi-teal);
  margin: 2.25rem 0 0.85rem;
}

.ubhi-article h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ubhi-gold);
  margin: 1.5rem 0 0.65rem;
}

.ubhi-article p,
.ubhi-article li {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.68;
  margin-bottom: 1rem;
}

.ubhi-article ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.ubhi-pull {
  margin: 1.75rem 0;
  padding: 1.15rem 1.25rem;
  border-left: 3px solid var(--ubhi-purple);
  background: rgba(157, 78, 221, 0.1);
  font-size: 1.06rem;
  line-height: 1.72;
  color: var(--text);
}

.ubhi-pull strong {
  color: var(--ubhi-teal);
}

.ubhi-benevolence {
  margin: 1.25rem 0 2rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(253, 224, 71, 0.18);
  border-radius: 8px;
  background: rgba(12, 10, 22, 0.45);
  font-size: 0.94rem;
  line-height: 1.65;
  color: rgba(230, 228, 240, 0.88);
}

.ubhi-benevolence summary {
  cursor: pointer;
  font-family: "Orbitron", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ubhi-gold);
  list-style: none;
}

.ubhi-benevolence summary::-webkit-details-marker {
  display: none;
}

.ubhi-benevolence[open] summary {
  margin-bottom: 0.75rem;
}

.ubhi-founder-quote {
  margin: 0.85rem 0 0;
  padding-left: 0.9rem;
  border-left: 2px solid rgba(0, 245, 212, 0.35);
  font-style: italic;
  color: rgba(220, 218, 235, 0.92);
}

.ubhi-founder-quote footer {
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 0.82rem;
  color: rgba(180, 178, 200, 0.85);
}

.ubhi-truth {
  display: inline-block;
  font-family: "Orbitron", sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.ubhi-truth--constitutional {
  color: var(--ubhi-gold);
  background: rgba(253, 224, 71, 0.12);
  border: 1px solid rgba(253, 224, 71, 0.3);
}

.ubhi-truth--shipped {
  color: var(--ubhi-teal);
  background: rgba(0, 245, 212, 0.1);
  border: 1px solid rgba(0, 245, 212, 0.28);
}

.ubhi-truth--forthcoming {
  color: #c4b5fd;
  background: rgba(157, 78, 221, 0.12);
  border: 1px solid rgba(157, 78, 221, 0.3);
}

/* Feature art blocks */
.ubhi-feature {
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 42, 109, 0.2);
  background: rgba(10, 10, 26, 0.5);
}

.ubhi-feature img {
  display: block;
  width: 100%;
  height: auto;
}

.ubhi-feature figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ubhi-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.75rem 0;
}

.ubhi-split__card {
  padding: 1rem 1.1rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 245, 212, 0.2);
  background: rgba(0, 245, 212, 0.04);
}

.ubhi-split__card--b {
  border-color: rgba(255, 42, 109, 0.25);
  background: rgba(255, 42, 109, 0.05);
}

.ubhi-split__card h3 {
  margin-top: 0;
}

/* Equalization table */
.ubhi-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0 1.75rem;
  border-radius: 10px;
  border: 1px solid rgba(253, 224, 71, 0.2);
}

.ubhi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.ubhi-table th,
.ubhi-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ubhi-table th {
  font-family: "Orbitron", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ubhi-gold);
  background: rgba(253, 224, 71, 0.06);
}

.ubhi-table td:first-child {
  color: var(--ubhi-teal);
  font-weight: 600;
}

.ubhi-table tr:last-child td {
  border-bottom: none;
}

/* Ladder */
.ubhi-ladder {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.5rem;
  align-items: center;
  margin: 2rem 0;
}

.ubhi-ladder-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: ubhi-step;
}

.ubhi-ladder-steps li {
  position: relative;
  padding: 0.85rem 0 0.85rem 2.5rem;
  margin: 0;
  border-left: 2px solid rgba(157, 78, 221, 0.35);
  margin-left: 0.75rem;
}

.ubhi-ladder-steps li::before {
  counter-increment: ubhi-step;
  content: counter(ubhi-step);
  position: absolute;
  left: -0.85rem;
  top: 0.75rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--ubhi-purple);
  color: #fff;
  font-family: "Orbitron", sans-serif;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ubhi-ladder-steps li:last-child {
  border-left-color: transparent;
}

.ubhi-ladder-art img {
  border-radius: 12px;
  border: 1px solid rgba(157, 78, 221, 0.3);
  width: 100%;
  height: auto;
}

/* Gates */
.ubhi-gates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.25rem 0;
}

.ubhi-gate {
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(0, 245, 212, 0.25);
  background: rgba(0, 245, 212, 0.05);
}

.ubhi-gate--two {
  border-color: rgba(255, 42, 109, 0.3);
  background: rgba(255, 42, 109, 0.06);
}

.ubhi-gate-num {
  font-family: "Orbitron", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--ubhi-gold);
  margin-bottom: 0.35rem;
}

.ubhi-gate p {
  margin: 0;
  font-size: 0.95rem;
}

/* Limits box */
.ubhi-limits {
  margin: 2rem 0;
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px dashed rgba(255, 42, 109, 0.35);
  background: rgba(10, 10, 26, 0.6);
}

.ubhi-limits h3 {
  margin-top: 0;
  color: var(--ubhi-magenta);
}

.ubhi-limits ul {
  margin-bottom: 0;
}

/* CTA */
.ubhi-cta {
  margin: 2.5rem 0 1rem;
  padding: 1.75rem;
  text-align: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(76, 29, 149, 0.35), rgba(251, 113, 133, 0.12));
  border: 1px solid rgba(253, 224, 71, 0.28);
}

.ubhi-cta h2 {
  margin-top: 0;
  color: var(--ubhi-gold);
}

.ubhi-cta p {
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.ubhi-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.ubhi-cta-actions a {
  font-family: "Orbitron", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.7rem 1.1rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 245, 212, 0.4);
  color: var(--ubhi-teal);
  background: rgba(0, 245, 212, 0.08);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.ubhi-cta-actions a:hover {
  color: var(--ubhi-gold);
  border-color: var(--ubhi-gold);
}

.ubhi-cta-actions a.ubhi-cta--gold {
  border-color: rgba(253, 224, 71, 0.5);
  color: var(--ubhi-gold);
  background: rgba(253, 224, 71, 0.12);
}

.ubhi-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 1.5rem 0;
}

.ubhi-links-row a {
  font-family: "Orbitron", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ubhi-magenta);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 42, 109, 0.35);
  padding-bottom: 0.15rem;
}

.ubhi-links-row a:hover {
  color: var(--ubhi-teal);
  border-color: var(--ubhi-teal);
}

.ubhi-back {
  display: inline-block;
  margin: 1.5rem 0;
  font-family: "Orbitron", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ubhi-magenta);
  text-decoration: none;
}

.ubhi-back:hover {
  color: var(--ubhi-teal);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ubhi-hero-stage__media {
    transform: none !important;
  }

  body.ubhi-page.ubhi-hero-blend .ubhi-hero-stage__media {
    --ubhi-mask-solid: 56%;
  }
}

/* Mobile */
@media (max-width: 720px) {
  body.ubhi-page {
    padding-top: 3.25rem;
  }

  .ubhi-hero-stage {
    min-height: clamp(380px, 58vh, 620px);
  }

  .ubhi-hero-stage__media picture,
  .ubhi-hero-stage__media img {
    min-height: clamp(380px, 58vh, 620px);
    object-position: center 36%;
  }

  .ubhi-hero-stage__content {
    padding: 0 0.85rem 1.5rem;
  }

  .ubhi-hero-glass {
    padding: 1rem 1rem 1.15rem;
    background: rgba(10, 10, 26, 0.62);
  }

  body.ubhi-page.ubhi-hero-blend .ubhi-hero-stage {
    margin-bottom: -1.25rem;
    padding-bottom: 1.75rem;
  }

  body.ubhi-page.ubhi-hero-blend .ubhi-hero-stage__media {
    --ubhi-mask-solid: 50%;
  }

  body.ubhi-page.ubhi-hero-blend .ubhi-article {
    margin-top: -0.75rem;
  }

  .ubhi-split,
  .ubhi-ladder,
  .ubhi-gates-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ubhi-ladder-steps li {
    padding-left: 2.25rem;
  }

  .ubhi-table {
    font-size: 0.84rem;
  }
}
