/* ═══════════════════════════════════════════════════
   PAMGIA — Shared Base Styles
   Design tokens, reset, typography, and common utilities
   shared across all subpages.
   ═══════════════════════════════════════════════════ */

/* ── Self-Hosted Fonts ── */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('/assets/fonts/montserrat-latin.woff2') format('woff2'); }
@font-face { font-family: 'DM Serif Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/dm-serif-display-400.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/dm-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/dm-sans-500.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/dm-sans-600.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/dm-sans-700.woff2') format('woff2'); }

/* ── Design Tokens ── */
:root {
  --brand-red: #e74132;
  --brand-red-glow: rgba(231, 65, 50, 0.25);
  --bg-cold: #0A0A0A;
  --bg-warm: #1A0F0A;
  --bg-warm-mid: #140C08;
  --text-primary: #F5F0EB;
  --text-muted: rgba(245, 240, 235, 0.55);
  --text-dim: rgba(245, 240, 235, 0.18);
  --font-display: 'Montserrat', -apple-system, sans-serif;
  --font-accent: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }

body {
  background: var(--bg-cold);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Screen-reader-only utility ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── SVG Noise Texture (overlay on warm sections) ── */
.noise-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 1;
}

/* ── Section Typography (shared across all pages) ── */
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.heading-accent {
  color: var(--brand-red);
}

.section-body {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 36ch;
}

/* ── Warm Section Background ── */
.section-warm {
  background: var(--bg-warm);
  position: relative;
}
.section-warm::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 0;
}

.section-container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 8rem 5vw;
}

/* ── Subpage Hero (simpler than landing, no video) ── */
.subpage-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-cold);
  padding: 8rem 5vw 6rem;
  overflow: hidden;
}
.subpage-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(231, 65, 50, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.subpage-hero .hero-heading {
  font-family: var(--font-accent);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text-primary);
  max-width: 20ch;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
}
.subpage-hero .hero-body {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 1.5rem auto 0;
  opacity: 0;
  transform: translateY(20px);
}

/* ── Reveal Animation Base ── */
[data-anim] {
  opacity: 0;
  transform: translateY(24px);
}
[data-anim].revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

/* content-visibility removed: the 800px contain-intrinsic-size estimate
   caused CLS > 1.0 on borrowers and technology pages where sections
   render at heights significantly different from the placeholder. */

/* ── Responsive ── */
@media (max-width: 768px) {
  .section-container {
    padding: 5rem 5vw;
  }
  .subpage-hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: 6rem 5vw 4rem;
  }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-anim] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ═══════════════════════════════════════════════════
   PAMGIA — Shared Navigation Styles
   Header, nav links, hamburger menu for all pages.
   ═══════════════════════════════════════════════════ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3vw;
  background: transparent;
  /* NOTE: backdrop-filter intentionally NOT set here.
     Per CSS spec, any backdrop-filter value other than `none`
     (including `blur(0px)`) creates a new containing block for
     position:fixed descendants. That traps the mobile .header-nav
     (which uses position:fixed; inset:0) inside the 76px-tall header,
     clipping TECHNOLOGY and BORROWERS nav links above the viewport.
     The legitimate opened-menu blur lives on .header-nav itself
     inside the mobile @media block below. — v3 fix 2026-04-10 */
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease-out),
              border-bottom-color 0.4s var(--ease-out);
}

/* Subpages: semantic marker (visual styles applied via --scrolled) */
.site-header--subpage {}

.site-header--scrolled {
  background: #0a0a0a;
  border-bottom: 1px solid rgba(245, 240, 235, 0.04);
}

.header-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  min-width: 44px;
}
.header-logo img {
  width: 28px;
  height: 28px;
  opacity: 0.9;
  transition: opacity 0.3s var(--ease-out);
}
.header-logo:hover img,
.header-logo:focus-visible img {
  opacity: 1;
}
.header-logo:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 6px;
  border-radius: 4px;
}
.header-logo-text {
  font-family: var(--font-accent);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  transition: color 0.3s var(--ease-out);
}
.header-logo:hover .header-logo-text,
.header-logo:focus-visible .header-logo-text {
  color: var(--brand-red);
}

.header-nav {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  opacity: 0.65;
  transition: opacity 0.3s var(--ease-out), color 0.3s var(--ease-out), text-shadow 0.3s var(--ease-out);
  padding: 0.75rem 0.25rem;
}
.nav-link:hover,
.nav-link:focus-visible {
  opacity: 1;
  color: var(--brand-red);
  text-shadow:
    0 0 6px rgba(231, 65, 50, 0.35),
    0 0 14px rgba(231, 65, 50, 0.2);
}
.nav-link:active {
  opacity: 0.8;
}
.nav-link:focus-visible {
  outline: 1px solid var(--brand-red);
  outline-offset: 4px;
}

/* Active page indicator */
.nav-link--active {
  opacity: 1;
  color: var(--brand-red);
}

/* ── Company Dropdown (desktop) ── */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown-trigger {
  /* Strip button chrome; let .nav-link handle color + size + spacing.
     Only font-family and line-height need explicit inherit because
     <button> does not inherit them by default. */
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.nav-dropdown-chevron {
  display: inline-block;
  transform: translateY(1px) rotate(0deg);
  opacity: 0.75;
  transition: transform 0.35s var(--ease-spring), opacity 0.3s var(--ease-out);
}
.nav-dropdown-trigger:hover .nav-dropdown-chevron,
.nav-dropdown-trigger:focus-visible .nav-dropdown-chevron,
.nav-dropdown--open .nav-dropdown-chevron {
  opacity: 1;
}
.nav-dropdown--open .nav-dropdown-chevron {
  transform: translateY(1px) rotate(180deg);
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 180px;
  padding: 0.5rem 0;
  background: #0a0a0a;
  border: 1px solid rgba(231, 65, 50, 0.14);
  border-radius: 6px;
  box-shadow:
    0 12px 32px -16px rgba(0, 0, 0, 0.7),
    0 2px 8px -2px rgba(231, 65, 50, 0.08);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  z-index: 101;
  transition: opacity 0.22s var(--ease-out), transform 0.32s var(--ease-spring);
}
.nav-dropdown--open > .nav-dropdown-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-dropdown-item {
  padding: 0.6rem 1.1rem;
  white-space: nowrap;
  text-align: left;
}
.nav-dropdown-item + .nav-dropdown-item {
  border-top: 1px solid rgba(245, 240, 235, 0.03);
}

@media (prefers-reduced-motion: reduce) {
  .nav-dropdown-panel,
  .nav-dropdown-chevron {
    transition: none;
  }
  .nav-dropdown--open > .nav-dropdown-panel {
    transform: none;
  }
}

/* ── Hamburger Toggle (hidden on desktop) ── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-height: 44px;
  min-width: 44px;
  z-index: 110;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}
.nav-toggle.active .nav-toggle-bar:first-child {
  transform: translateY(3.75px) rotate(45deg);
}
.nav-toggle.active .nav-toggle-bar:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* ── Mobile Nav ── */
@media (max-width: 768px) {
  .site-header {
    padding: 1rem 4vw;
  }
  .nav-toggle { display: flex; }
  .header-nav {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease-out);
    z-index: 105;
  }
  .header-nav.open {
    opacity: 1;
    pointer-events: auto;
  }
  .header-nav .nav-link {
    font-size: 1rem;
    letter-spacing: 0.18em;
    opacity: 0.85;
    padding: 0.75rem 1.5rem;
  }

  /* Company dropdown becomes an in-drawer accordion on mobile */
  .nav-dropdown {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .nav-dropdown-trigger {
    font-size: 1rem;
    letter-spacing: 0.18em;
    opacity: 0.85;
    padding: 0.75rem 1.5rem;
  }
  .nav-dropdown-panel {
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    min-width: 0;
    width: 100%;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: none;
    pointer-events: none;
    transition: max-height 0.35s var(--ease-out), opacity 0.25s var(--ease-out);
  }
  .nav-dropdown--open > .nav-dropdown-panel {
    max-height: 320px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .nav-dropdown-item {
    font-size: 0.9rem;
    opacity: 0.75;
    padding: 0.65rem 1.5rem;
    border-top: none;
  }
  /* Override the HTML `hidden` attribute so the accordion stays mounted
     and max-height can animate. On desktop, JS toggles `hidden` normally. */
  .nav-dropdown-panel[hidden] {
    display: flex;
  }
}

/* ═══════════════════════════════════════════════════
   PAMGIA — Shared Footer Styles
   ═══════════════════════════════════════════════════ */

.site-footer {
  position: relative;
  z-index: 5;
  background: var(--bg-cold);
  border-top: 1px solid rgba(231, 65, 50, 0.11);
  box-shadow: 0 -1px 30px -12px rgba(231, 65, 50, 0.14);
  overflow: hidden;
}
/* Footer — Atmospheric Depth on black canvas (subtle red wash) */
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 80% at 12% 20%, rgba(231, 65, 50, 0.04) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 88% 30%, rgba(231, 65, 50, 0.025) 0%, transparent 60%),
    radial-gradient(ellipse 80% 45% at 50% 0%, rgba(231, 65, 50, 0.03) 0%, transparent 55%),
    radial-gradient(ellipse 100% 100% at 50% 100%, rgba(0, 0, 0, 0.5) 0%, transparent 60%);
}
/* Footer — Noise Texture */
.site-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
}

.footer-main {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 5vw 3rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4rem;
}

.footer-brand {
  max-width: 240px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  text-decoration: none;
  min-height: 44px;
}

.footer-logo-img {
  opacity: 0.7;
  transition: opacity 0.3s var(--ease-out);
}

.footer-logo:hover .footer-logo-img,
.footer-logo:focus-visible .footer-logo-img {
  opacity: 1;
}

.footer-logo-text {
  font-family: var(--font-accent);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #fff;
  transition: color 0.3s var(--ease-out);
}

.footer-logo:hover .footer-logo-text,
.footer-logo:focus-visible .footer-logo-text {
  color: var(--brand-red);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: rgba(245, 240, 235, 0.7);
  background: rgba(245, 240, 235, 0.03);
  border: 1px solid rgba(245, 240, 235, 0.08);
  transition:
    color 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out),
    background 0.3s var(--ease-out),
    text-shadow 0.3s var(--ease-out);
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  color: var(--brand-red);
  border-color: rgba(231, 65, 50, 0.45);
  background: rgba(231, 65, 50, 0.06);
  text-shadow:
    0 0 8px rgba(231, 65, 50, 0.55),
    0 0 20px rgba(231, 65, 50, 0.3),
    0 0 40px rgba(231, 65, 50, 0.15);
}

.footer-social-link:focus-visible {
  outline: 1px solid var(--brand-red);
  outline-offset: 3px;
}

.footer-columns {
  display: flex;
  gap: 5rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-col-heading {
  font-family: var(--font-body);
  font-size: 0.75rem; /* v3: was 0.68rem (10.88px) — bumped to 12px mobile readability floor */
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 240, 235, 0.45);
  margin-bottom: 0.85rem;
  user-select: none;
  cursor: default;
}

.footer-col-link {
  position: relative;
  font-size: 0.9rem;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  padding-block: 0.6rem;
  padding-left: 1rem;
  transition: color 0.3s var(--ease-out), text-shadow 0.3s var(--ease-out);
}
.footer-col-link::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: rgba(231, 65, 50, 0.55);
  transition: color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.footer-col-link:hover,
.footer-col-link:focus-visible {
  color: var(--brand-red);
  text-shadow:
    0 0 8px rgba(231, 65, 50, 0.55),
    0 0 20px rgba(231, 65, 50, 0.3),
    0 0 40px rgba(231, 65, 50, 0.15);
}
.footer-col-link:hover::before,
.footer-col-link:focus-visible::before {
  color: var(--brand-red);
  transform: translateY(-50%);
}
.footer-col-link:focus-visible {
  outline: 1px solid var(--brand-red);
  outline-offset: 3px;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 5vw;
  border-top: 1px solid rgba(245, 240, 235, 0.1);
  display: flex;
  justify-content: space-between;
}

.footer-copyright {
  font-size: 0.82rem;
  color: rgba(245, 240, 235, 0.75);
  letter-spacing: 0.04em;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .footer-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
  }
  .footer-social {
    justify-content: center;
  }
  .footer-columns {
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
  }
}

/* ═══════════════════════════════════════════════════
   PAMGIA — Shared Component Styles
   Bento cards, CTA buttons, feature cards, glass cards,
   glow effects, and other reusable components.
   ═══════════════════════════════════════════════════ */

/* ── Feature Cards (2-col grid) ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 3.5rem;
}
.feature {
  position: relative;
  padding: 2.5rem;
  background: rgba(245, 240, 235, 0.045);
  border: 1px solid rgba(245, 240, 235, 0.06);
  border-radius: 0.75rem;
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.feature:hover,
.feature:focus-within {
  border-color: rgba(231, 65, 50, 0.15);
  transform: translateY(-2px);
}
.feature:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 4px;
}
.feature:active {
  transform: translateY(0);
}
.feature-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.feature-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ── Bento Grid System ── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.bento-card-lg   { grid-column: span 4; }
.bento-card-sm   { grid-column: span 2; }
.bento-card-md   { grid-column: span 2; }
.bento-card-half { grid-column: span 3; }
.bento-card-full { grid-column: span 6; }

.bento-card {
  position: relative;
  padding: 2.5rem;
  background: rgba(245, 240, 235, 0.04);
  border: 1px solid rgba(245, 240, 235, 0.06);
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-out), border-color 0.4s var(--ease-out);
}
.bento-card-lg {
  padding: 3rem;
  background: rgba(245, 240, 235, 0.05);
}

.bento-visual {
  flex: 1;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  position: relative;
}
.bento-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.bento-card-lg .bento-title {
  font-size: 1.4rem;
}
.bento-card-full .bento-title {
  font-size: 1.4rem;
}
.bento-desc {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ── Glass Cards (stats) ── */
.glass-card {
  position: relative;
  padding: 2.5rem 1.5rem 2rem;
  background: rgba(10, 8, 6, 0.92);
  border: 1px solid rgba(245, 240, 235, 0.12);
  border-radius: 12px;
  text-align: center;
  transition: transform 0.4s var(--ease-out), border-color 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 240, 235, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* ── CTA Buttons ── */
.cta-heading {
  font-family: var(--font-accent);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: 0 auto 1.5rem;
}
.cta-body {
  max-width: 48ch;
  margin: 0 auto 3rem;
  color: var(--text-muted);
}
.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.cta-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background-color 0.3s var(--ease-out), color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  cursor: pointer;
}
.cta-btn:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 3px;
}
.cta-btn:active {
  transform: scale(0.97);
}
.cta-btn-primary,
.cta-btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(245, 240, 235, 0.2);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.cta-btn-primary:hover,
.cta-btn-secondary:hover,
.cta-btn-primary:focus-visible,
.cta-btn-secondary:focus-visible {
  background: var(--brand-red);
  color: #fff;
  border-color: var(--brand-red);
  transform: translateY(-1px) scale(1.1);
  box-shadow: 0 8px 32px rgba(231, 65, 50, 0.35), 0 2px 8px rgba(231, 65, 50, 0.15);
}
.cta-note {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.cta-disclaimer {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 0.5rem;
}

/* ── Trust Cards ── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}
.trust-card {
  position: relative;
  padding: 2.5rem;
  background: rgba(245, 240, 235, 0.045);
  border: 1px solid rgba(245, 240, 235, 0.06);
  border-radius: 0.75rem;
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.trust-card:hover,
.trust-card:focus-within {
  border-color: rgba(231, 65, 50, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(231, 65, 50, 0.06);
}
.trust-card:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 4px;
}
.trust-card:active {
  transform: translateY(0);
}
.trust-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1.5rem;
  color: var(--brand-red);
  opacity: 0.85;
}
.trust-title {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.trust-desc {
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ── Glowing Border Effect ── */
.glow-card {
  position: relative;
  border-radius: 0.75rem;
  overflow: visible;
}
.glow-effect {
  --glow-spread: 40;
  --glow-start: 0;
  --glow-active: 0;
  --glow-blur: 0px;
  --glow-border-width: 2px;
  --glow-gradient:
    radial-gradient(circle, #e74132 10%, #e7413200 20%),
    radial-gradient(circle at 40% 40%, #ff6b5a 5%, #ff6b5a00 15%),
    radial-gradient(circle at 60% 60%, #c4362a 10%, #c4362a00 20%),
    radial-gradient(circle at 40% 60%, #b33528 10%, #b3352800 20%),
    repeating-conic-gradient(
      from 236.84deg at 50% 50%,
      #e74132 0%,
      #ff6b5a calc(25% / 5),
      #c4362a calc(50% / 5),
      #b33528 calc(75% / 5),
      #e74132 calc(100% / 5)
    );
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 1;
  transition: opacity 0.3s;
}
.glow-effect .glow-inner {
  border-radius: inherit;
  position: relative;
  width: 100%;
  height: 100%;
}
.glow-effect .glow-inner::after {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--glow-border-width));
  border-radius: inherit;
  border: var(--glow-border-width) solid transparent;
  background: var(--glow-gradient);
  background-attachment: fixed;
  opacity: var(--glow-active);
  transition: opacity 0.3s;
  mask-clip: padding-box, border-box;
  -webkit-mask-clip: padding-box, border-box;
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(#0000, #0000),
    conic-gradient(
      from calc((var(--glow-start) - var(--glow-spread)) * 1deg),
      #00000000 0deg,
      #fff,
      #00000000 calc(var(--glow-spread) * 2deg)
    );
  -webkit-mask-image:
    linear-gradient(#0000, #0000),
    conic-gradient(
      from calc((var(--glow-start) - var(--glow-spread)) * 1deg),
      #00000000 0deg,
      #fff,
      #00000000 calc(var(--glow-spread) * 2deg)
    );
}
@media (hover: none) {
  .glow-effect { display: none; }
}

/* ── Responsive Components ── */
@media (max-width: 768px) {
  .features-grid,
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .bento-card-lg,
  .bento-card-sm,
  .bento-card-md,
  .bento-card-half,
  .bento-card-full {
    grid-column: span 1;
  }
  .bento-card, .bento-card-lg {
    padding: 2rem;
    min-width: 0;
    overflow: hidden;
  }
  .bento-visual {
    min-height: 90px;
  }
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-btn { width: 100%; max-width: 300px; text-align: center; }
}

/* ── Regulatory Disclosure Footnotes (Rule 144 / liquidity) ──
   v3 audit follow-up: the 0.65em scaling left the marker at ~11.8px on
   mobile body copy — technically below the 12px readability floor. Using
   max() pins it at 12px on small bases while still scaling with larger
   surrounding text. */
.disclosure-marker {
  font-size: max(12px, 0.68em);
  vertical-align: super;
  line-height: 0;
  margin-left: 0.15em;
  color: rgba(245, 240, 235, 0.55);
  font-weight: 400;
  text-decoration: none;
}
.disclosure-footnote {
  max-width: 58ch;
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(245, 240, 235, 0.08);
  font-size: 0.78rem;
  line-height: 1.65;
  color: rgba(245, 240, 235, 0.55);
  letter-spacing: 0.005em;
  font-family: inherit;
  font-weight: 400;
  text-align: left;
}
.disclosure-footnote .disclosure-marker {
  color: inherit;
  vertical-align: baseline;
  font-size: 1em;
  margin-right: 0.35em;
  margin-left: 0;
}
@media (max-width: 768px) {
  .disclosure-footnote {
    margin-top: 2rem;
    font-size: max(12px, 0.74rem);
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ═══════════════════════════════════════════════════
   CTA SECTION + LAMP EFFECT
   Canonical closing-CTA pattern — mirrors landing page #contact.
   Applied to every subpage's closing CTA for stylistic consistency.
   ═══════════════════════════════════════════════════ */
.section-cta {
  background: var(--bg-cold);
  overflow: hidden;
  position: relative;
  min-height: 85vh;
  box-shadow: 0 -2px 40px -18px rgba(231, 65, 50, 0.04);
}
.section-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4rem;
  z-index: 60;
  background: linear-gradient(to bottom,
    rgba(0, 0, 0, 0.1) 0%,
    transparent 100%
  );
  pointer-events: none;
}

/* Atmospheric red pools on the cold black canvas create the dramatic,
   focused atmosphere that reads as "not just flat black". */
.section-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 65% at 12% 25%, rgba(231, 65, 50, 0.030) 0%, transparent 62%),
    radial-gradient(ellipse 55% 65% at 88% 25%, rgba(231, 65, 50, 0.030) 0%, transparent 62%),
    radial-gradient(ellipse 80% 45% at 50% 0%, rgba(231, 65, 50, 0.03) 0%, transparent 55%),
    radial-gradient(ellipse 100% 100% at 50% 100%, rgba(0, 0, 0, 0.5) 0%, transparent 60%);
}

/* Film-grain noise overlay — above atmospheric pools, below lamp beams. */
.section-cta-noise {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 1;
}

/* ── Lamp Container (absolute backdrop) ── */
.section-cta .lamp-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.section-cta .lamp-stage {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 22rem;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

/* ── Beams (conic gradients, canonical opacity 0.15) ── */
.section-cta .lamp-beam-left {
  position: absolute;
  right: 50%;
  top: 0;
  height: 14rem;
  overflow: visible;
  width: 15rem;
  opacity: 0.15;
  background-image: conic-gradient(from 70deg at center top, var(--brand-red), transparent, transparent);
  -webkit-mask-image:
    linear-gradient(to top, transparent 0%, white 55%),
    linear-gradient(to right, transparent 0%, white 40%);
  mask-image:
    linear-gradient(to top, transparent 0%, white 55%),
    linear-gradient(to right, transparent 0%, white 40%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.section-cta .lamp-beam-right {
  position: absolute;
  left: 50%;
  top: 0;
  height: 14rem;
  width: 15rem;
  opacity: 0.15;
  background-image: conic-gradient(from 290deg at center top, transparent, transparent, var(--brand-red));
  -webkit-mask-image:
    linear-gradient(to top, transparent 0%, white 55%),
    linear-gradient(to left, transparent 0%, white 40%);
  mask-image:
    linear-gradient(to top, transparent 0%, white 55%),
    linear-gradient(to left, transparent 0%, white 40%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* Solid-color mask overlays replaced by mask-image above. */
.section-cta .lamp-beam-left .lamp-mask-bottom,
.section-cta .lamp-beam-left .lamp-mask-side,
.section-cta .lamp-beam-right .lamp-mask-side,
.section-cta .lamp-beam-right .lamp-mask-bottom {
  display: none;
}

/* ── Atmospheric glow layers ── */
.section-cta .lamp-glow-wide {
  position: absolute;
  top: 10rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  height: 8rem;
  width: 28rem;
  border-radius: 9999px;
  background: var(--brand-red);
  opacity: 0;
  filter: blur(4rem);
}
.section-cta .lamp-glow-core {
  position: absolute;
  top: 6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  height: 8rem;
  width: 8rem;
  border-radius: 9999px;
  background: #ff6b5a;
  opacity: 0;
  filter: blur(2.5rem);
}
.section-cta .lamp-line {
  position: absolute;
  top: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  height: 2px;
  width: 15rem;
  background: linear-gradient(90deg, transparent, #ff6b5a, #e74132, #ff6b5a, transparent);
  opacity: 0;
}
.section-cta .lamp-ceiling {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2rem;
  z-index: 40;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.6), transparent);
}
.section-cta .lamp-ambient {
  position: absolute;
  top: 14rem;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 24rem;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(231, 65, 50, 0.01) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* ── CTA content (normal flow, above lamp) ── */
.section-cta .lamp-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 14rem 5vw 14rem;
  max-width: 1100px;
  margin: 0 auto;
}
.section-cta .lamp-content::after {
  content: '';
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 55%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(231, 65, 50, 0.02) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 50%, rgba(231, 65, 50, 0.01) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.section-cta .lamp-content .cta-heading {
  font-family: var(--font-accent);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: 0 auto 1.5rem;
  color: var(--text-primary);
}
.section-cta .lamp-content .cta-body {
  max-width: 48ch;
  margin: 0 auto 3rem;
  color: var(--text-muted);
}
.section-cta .lamp-content .cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* Responsive: tablets / large phones */
@media (max-width: 768px) {
  .section-cta .lamp-beam-left,
  .section-cta .lamp-beam-right { height: 10rem; width: 10rem; }
  .section-cta .lamp-glow-wide { width: 14rem; height: 5rem; filter: blur(3rem); }
  .section-cta .lamp-glow-core { width: 6rem; height: 6rem; filter: blur(2rem); }
  .section-cta .lamp-line { width: 10rem; }
  .section-cta .lamp-ambient { width: 85%; height: 18rem; top: 12rem; }
  .section-cta .lamp-content { padding: 14rem 5vw 12rem; }
  .section-cta .lamp-content::after { width: 85%; height: 45%; }
}
