/**
 * Professional glass UI — scoped to body.group-glass-ui (homepage only).
 * Palette: obsidian + gold (--gold, --gold-light, --ivory). Toggle in build_config.py.
 */

body.group-glass-ui {
  --glass-bg: rgba(18, 18, 18, 0.52);
  --glass-border: rgba(245, 242, 235, 0.1);
  --glass-highlight: rgba(255, 255, 255, 0.06);
  --glass-shadow: 0 20px 48px rgba(0, 0, 0, 0.26);
  --glass-radius: 16px;
  --glass-radius-lg: 20px;
  background:
    radial-gradient(circle at 12% 8%, rgba(184, 134, 11, 0.09) 0%, transparent 32%),
    radial-gradient(circle at 88% 14%, rgba(212, 168, 83, 0.06) 0%, transparent 28%),
    linear-gradient(180deg, #070707 0%, #0a0a0a 50%, #050505 100%);
  color: var(--ivory);
}

/* Header */
body.group-glass-ui .site-header {
  background: rgba(8, 8, 8, 0.72);
  border-bottom: 1px solid rgba(184, 134, 11, 0.14);
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
}

body.group-glass-ui .nav-links a.active,
body.group-glass-ui .nav-links a:hover {
  color: var(--gold-light);
}

/* Shared glass surface */
body.group-glass-ui .corp-info-card,
body.group-glass-ui .venture-card-compact,
body.group-glass-ui .philo-card-compact,
body.group-glass-ui .stat-card,
body.group-glass-ui .leadership-teaser,
body.group-glass-ui .impact-card-compact,
body.group-glass-ui .cta-band-compact,
body.group-glass-ui .site-footer .container {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-highlight);
}

/* ——— Hero ——— */
body.group-glass-ui .hero-corporate {
  isolation: isolate;
  min-height: min(88vh, 720px);
  max-height: none;
  padding: calc(var(--header-h) + 48px) 0 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #030303;
}

body.group-glass-ui .hero-corporate > .container {
  display: flex;
  justify-content: center;
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

/* Abstract luxury background */
body.group-glass-ui .hero-glass-abstract {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 45%, rgba(184, 134, 11, 0.07) 0%, transparent 58%),
    linear-gradient(180deg, #040404 0%, #080808 48%, #030303 100%);
  overflow: hidden;
}

body.group-glass-ui .hero-glass-abstract::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      118deg,
      transparent 0,
      transparent 72px,
      rgba(184, 134, 11, 0.035) 72px,
      rgba(184, 134, 11, 0.035) 73px
    ),
    repeating-linear-gradient(
      -32deg,
      transparent 0,
      transparent 110px,
      rgba(212, 168, 83, 0.02) 110px,
      rgba(212, 168, 83, 0.02) 111px
    );
  mask-image: radial-gradient(ellipse 90% 80% at 50% 42%, #000 15%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 42%, #000 15%, transparent 78%);
}

body.group-glass-ui .hero-abstract-plane {
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(212, 168, 83, 0.14);
  background: linear-gradient(145deg, rgba(184, 134, 11, 0.1) 0%, rgba(184, 134, 11, 0.01) 100%);
}

body.group-glass-ui .hero-abstract-plane--a {
  top: -8%;
  right: -4%;
  width: min(52vw, 520px);
  height: 62%;
  clip-path: polygon(100% 0, 18% 0, 100% 100%);
  opacity: 0.85;
}

body.group-glass-ui .hero-abstract-plane--b {
  bottom: -12%;
  left: -6%;
  width: min(44vw, 420px);
  height: 48%;
  clip-path: polygon(0 100%, 0 28%, 100% 100%);
  opacity: 0.55;
  border-color: rgba(184, 134, 11, 0.1);
}

body.group-glass-ui .hero-abstract-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.45), transparent);
  pointer-events: none;
}

body.group-glass-ui .hero-abstract-line--a {
  top: 22%;
  left: -5%;
  width: 42%;
  transform: rotate(-12deg);
  opacity: 0.5;
}

body.group-glass-ui .hero-abstract-line--b {
  bottom: 18%;
  right: -3%;
  width: 38%;
  transform: rotate(-12deg);
  opacity: 0.35;
}

body.group-glass-ui .hero-abstract-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(680px, 80vw);
  height: min(520px, 60vh);
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(184, 134, 11, 0.12) 0%, transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}

/* Grid overlay — logo and copy share one cell; copy stacks on top */
body.group-glass-ui .hero-corporate-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  position: relative;
  width: min(920px, 100%);
  margin: 0 auto;
  min-height: min(480px, 58vh);
  isolation: isolate;
}

body.group-glass-ui .hero-glass-logo-mark {
  grid-column: 1;
  grid-row: 1;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: min(440px, 52vh);
  pointer-events: none;
}

body.group-glass-ui .hero-glass-logo-img {
  width: min(600px, 92vw);
  max-height: min(520px, 56vh);
  object-fit: contain;
  opacity: 0.34;
  filter: brightness(1.04) contrast(1.02);
  -webkit-mask-image: radial-gradient(ellipse 70% 66% at 50% 50%, #000 16%, transparent 76%);
  mask-image: radial-gradient(ellipse 70% 66% at 50% 50%, #000 16%, transparent 76%);
}

/* Hero copy layered above watermark */
body.group-glass-ui .hero-corporate-inner {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  max-width: 720px;
  padding: 0;
  margin: 0 auto;
  align-self: center;
  justify-self: center;
  text-align: center;
}

body.group-glass-ui .hero-corporate-inner::before {
  content: '';
  position: absolute;
  inset: -24px -32px;
  z-index: -1;
  background: radial-gradient(ellipse 92% 90% at 50% 48%, rgba(3, 3, 3, 0.82) 0%, transparent 72%);
  pointer-events: none;
}

body.group-glass-ui .hero-corporate-inner > * {
  position: relative;
  z-index: 1;
}

body.group-glass-ui .hero-title-compact,
body.group-glass-ui .hero-eyebrow,
body.group-glass-ui .hero-lead-compact {
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.95), 0 1px 0 rgba(0, 0, 0, 0.7);
}

body.group-glass-ui .hero-cta {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

body.group-glass-ui .hero-eyebrow {
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(212, 168, 83, 0.95);
  margin-bottom: 20px;
}

body.group-glass-ui .hero-title-compact {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4.8vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

body.group-glass-ui .hero-title-compact .title-line-1,
body.group-glass-ui .hero-title-compact .title-line-2 {
  color: var(--ivory);
}

body.group-glass-ui .hero-lead-compact {
  font-size: 1.04rem;
  line-height: 1.75;
  color: rgba(245, 242, 235, 0.78);
  max-width: 52ch;
  margin: 0 auto 32px;
}

body.group-glass-ui .hero-corporate .btn-outline {
  border-color: rgba(245, 242, 235, 0.42);
  color: var(--ivory);
}

/* ——— Homepage shell ——— */
body.group-glass-ui .home-glass-shell {
  position: relative;
}

body.group-glass-ui .home-glass-shell .section-compact {
  padding: 72px 0;
}

body.group-glass-ui .home-glass-shell .section-alt {
  background: transparent;
}

body.group-glass-ui .home-glass-shell .section-head {
  margin-bottom: 40px;
}

body.group-glass-ui .home-glass-shell .section-head h2 {
  font-family: 'Playfair Display', serif;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

body.group-glass-ui .home-glass-shell .section-head-center::after {
  content: '';
  display: block;
  width: 56px;
  height: 2px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

body.group-glass-ui .home-glass-shell .kicker {
  color: rgba(212, 168, 83, 0.9);
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 800;
}

body.group-glass-ui .corp-split-intro h2 {
  font-family: 'Playfair Display', serif;
}

body.group-glass-ui .corp-split-intro p {
  color: rgba(245, 242, 235, 0.74);
  line-height: 1.75;
}

body.group-glass-ui .text-link {
  letter-spacing: 0.02em;
}

/* ——— Cards ——— */
body.group-glass-ui .corp-info-card {
  border-radius: var(--glass-radius);
  padding: 22px 24px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

body.group-glass-ui .corp-info-card:hover {
  border-color: rgba(212, 168, 83, 0.22);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 0 1px rgba(184, 134, 11, 0.08);
}

body.group-glass-ui .corp-info-card h3 {
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.group-glass-ui .venture-grid-compact {
  gap: 18px;
}

body.group-glass-ui .venture-card-compact {
  border-radius: var(--glass-radius);
  padding: 24px 20px;
  min-height: 228px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

body.group-glass-ui .venture-card-compact:hover {
  border-color: rgba(212, 168, 83, 0.2);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.group-glass-ui .venture-card-compact h3 {
  font-size: 0.94rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

body.group-glass-ui .venture-card-compact p {
  color: rgba(245, 242, 235, 0.66);
  line-height: 1.6;
}

body.group-glass-ui .philo-card-compact {
  border-radius: var(--glass-radius);
  padding: 32px 26px;
  text-align: left;
}

body.group-glass-ui .philo-card-compact h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.28rem;
  margin-bottom: 12px;
}

body.group-glass-ui .philo-card-compact p {
  color: rgba(245, 242, 235, 0.7);
  line-height: 1.65;
}

body.group-glass-ui .stat-row-inline {
  gap: 16px;
  display: grid;
  opacity: 1;
  transform: none;
}

body.group-glass-ui .stat-card {
  border-radius: var(--glass-radius);
  padding: 26px 20px;
  text-align: center;
  transition: border-color 0.3s ease;
}

body.group-glass-ui .stat-card:hover {
  border-color: rgba(212, 168, 83, 0.2);
}

body.group-glass-ui .stat-card strong {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

body.group-glass-ui .stat-card span {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245, 242, 235, 0.58);
}

body.group-glass-ui .leadership-teaser {
  border-radius: var(--glass-radius-lg);
  padding: 24px;
  transition: border-color 0.3s ease;
}

body.group-glass-ui .leadership-teaser:hover {
  border-color: rgba(212, 168, 83, 0.18);
}

body.group-glass-ui .leadership-teaser-photo {
  border-color: rgba(184, 134, 11, 0.32);
}

body.group-glass-ui .leadership-teaser h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.08rem;
}

body.group-glass-ui .leadership-teaser .founder-role {
  color: rgba(212, 168, 83, 0.88);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.group-glass-ui .impact-card-compact {
  border-radius: var(--glass-radius);
  padding: 28px 24px;
  border-top: none;
  border-left: 3px solid rgba(184, 134, 11, 0.75);
}

body.group-glass-ui .impact-card-compact h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.12rem;
}

body.group-glass-ui .cta-band-compact {
  border-radius: var(--glass-radius-lg);
  padding: 48px 40px;
  text-align: center;
}

body.group-glass-ui .cta-band-compact h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.25;
  color: var(--ivory);
  max-width: 24ch;
}

/* Footer */
body.group-glass-ui .site-footer {
  background: transparent;
  border-top: none;
  padding: 56px 0 48px;
}

body.group-glass-ui .site-footer .container {
  border-radius: var(--glass-radius-lg);
  padding: 40px 36px 28px;
}

body.group-glass-ui .site-footer h3 {
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(212, 168, 83, 0.88);
}

body.group-glass-ui .site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 28px;
  padding-top: 20px;
  font-size: 0.82rem;
  color: rgba(245, 242, 235, 0.55);
}

/* Buttons */
body.group-glass-ui .btn-outline {
  border-color: rgba(245, 242, 235, 0.28);
  font-weight: 700;
  letter-spacing: 0.03em;
}

body.group-glass-ui .btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(212, 168, 83, 0.45);
  color: var(--gold-light);
}

body.group-glass-ui .btn-gold {
  letter-spacing: 0.03em;
}

body.group-glass-ui .mobile-nav {
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(184, 134, 11, 0.12);
}

/* Responsive */
@media (max-width: 960px) {
  body.group-glass-ui .hero-corporate {
    min-height: auto;
    padding: calc(var(--header-h) + 28px) 0 44px;
  }

  body.group-glass-ui .hero-corporate-stack {
    max-width: none;
    min-height: auto;
  }

  body.group-glass-ui .hero-glass-logo-mark {
    min-height: 260px;
  }

  body.group-glass-ui .hero-corporate-inner {
    max-width: none;
  }

  body.group-glass-ui .hero-glass-logo-img {
    width: min(400px, 88vw);
    max-height: min(340px, 48vh);
    opacity: 0.36;
  }

  body.group-glass-ui .stat-row-inline {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  body.group-glass-ui .stat-card {
    padding: 20px 14px;
  }

  body.group-glass-ui .stat-card strong {
    font-size: 1.55rem;
  }

  body.group-glass-ui .hero-abstract-plane--a {
    width: 70vw;
    opacity: 0.6;
  }

  body.group-glass-ui .hero-abstract-plane--b {
    width: 58vw;
    opacity: 0.4;
  }

  body.group-glass-ui .home-glass-shell .section-compact {
    padding: 52px 0;
  }

  body.group-glass-ui .site-footer .container {
    padding: 28px 22px 22px;
  }

  body.group-glass-ui .cta-band-compact {
    padding: 36px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.group-glass-ui .corp-info-card,
  body.group-glass-ui .venture-card-compact,
  body.group-glass-ui .stat-card,
  body.group-glass-ui .leadership-teaser {
    transition: none;
  }
}
