/**
 * compliance.css — Compliance page specific styles
 * Elevated to the home design language: dark scrim-chip header with split-text
 * headline + blueprint/grain texture + warm glow, diagonal seam into a light
 * statement band on the bone elevation ramp with a whisper-quiet blueprint wash
 * and a slowly drifting world-map motif.
 * Reuses global tokens, .on-dark, .eyebrow language, .btn, .section rhythm,
 * data-animate reveals, and the .hero__headline word-split contract.
 * Depends on: tokens.css, base.css, layout.css, components/button.css
 */

/* ============================================================
 * PAGE HEADER (dark band — mirrors the hero language)
 * ============================================================ */

.compliance-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -10%, var(--c-navy-mid) 0%, transparent 55%),
    linear-gradient(180deg, var(--c-navy) 0%, var(--c-navy-deep) 100%);
  padding: calc(var(--sp-9) + var(--sp-8)) 0 var(--sp-9);
  text-align: center;
}

/* Whisper-quiet blueprint grid — echoes the hero technical language */
.compliance-header__texture {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(247, 248, 250, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 248, 250, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(110% 80% at 50% 0%, #000 35%, transparent 100%);
          mask-image: radial-gradient(110% 80% at 50% 0%, #000 35%, transparent 100%);
}

/* Warm copper pocket, lifted from the hero overlay */
.compliance-header__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(60% 50% at 50% 18%, var(--hero-warm-glow) 0%, transparent 70%);
}

.compliance-header__inner {
  max-width: 40rem;
  margin: 0 auto;
}

/* Eyebrow — self-contained scrim chip + leading copper hairline (AA on dark) */
.compliance-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--c-copper-bright);
  padding: var(--sp-1) var(--sp-3);
  border: 1px solid rgba(184, 115, 51, 0.35);
  border-radius: var(--radius-pill);
  background: rgba(6, 20, 41, 0.55);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  margin-bottom: var(--sp-5);
}

.compliance-header__eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--c-copper);
  flex: 0 0 auto;
}

.compliance-header__title {
  font-family: var(--font-serif);
  /* Tuned below --fs-h1: the statement is long; the previous 22ch container +
   * full hero size shattered it into 5 narrow centered lines. */
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
  color: var(--c-white);
  max-width: none;
  margin: 0 auto;
}

/* Word-split reveal contract (splittext.js wraps each word). Mirrors home.css
 * so the cinematic masked slide-up works on this non-home hero too. */
.compliance-header__title .word {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.compliance-header__title .word-inner {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  animation: complianceWordReveal var(--dur-cinematic) var(--ease-out) forwards;
  animation-delay: calc(0.15s + var(--word-index, 0) * 0.09s);
}

@keyframes complianceWordReveal {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .compliance-header__title .word-inner {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
 * STATEMENT SECTION (light band on the bone elevation ramp)
 * ============================================================ */

.compliance-statement {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--c-bone);
  text-align: center;
}

/* Whisper-quiet blueprint wash (echoes .pillars::before) */
.compliance-statement::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(11, 30, 63, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 30, 63, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 40%, transparent 100%);
          mask-image: radial-gradient(120% 80% at 50% 0%, #000 40%, transparent 100%);
}

/* Faint world-map vector background, slowly drifting */
.compliance-statement__worldmap {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.08;
  overflow: hidden;
}

.compliance-statement__worldmap img {
  width: 140%;
  max-width: 1600px;
  height: auto;
  animation: complianceWorldDrift 200s linear infinite alternate;
}

@keyframes complianceWorldDrift {
  from { transform: scale(1.02) rotate(-0.5deg); }
  to   { transform: scale(1.02) rotate(0.5deg); }
}

@media (prefers-reduced-motion: reduce) {
  .compliance-statement__worldmap img {
    animation: none;
    transform: scale(1.02);
  }
}

.compliance-statement__inner {
  position: relative;
  z-index: 1;
  max-width: 68ch;
  margin: 0 auto;
}

.compliance-statement__mark {
  width: 56px;
  height: 56px;
  display: block;
  margin: 0 auto var(--sp-5);
  stroke: var(--c-copper);
  opacity: 0.9;
}

.compliance-statement__eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--c-copper-text); /* AA-safe copper text on light (#3) */
  margin-bottom: var(--sp-5);
}

.compliance-statement__text {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 300;
  line-height: var(--leading-snug);
  color: var(--c-navy);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--sp-7);
  text-wrap: balance;
}

.compliance-statement__cta {
  margin-top: var(--sp-7);
}

/* ============================================================
 * RESPONSIVE
 * ============================================================ */

@media (max-width: 768px) {
  .compliance-header {
    padding: calc(var(--sp-8) + var(--sp-6)) 0 var(--sp-8);
  }

  .compliance-header__title {
    font-size: clamp(2.25rem, 9vw, 3.25rem);
  }

  .compliance-statement__worldmap img {
    width: 180%;
  }
}

/* ============================================================
 * DIAGONAL SECTION SEAM (replicated from the home language with
 * tokens — home.css is not loaded on this page, so redeclare locally).
 * ============================================================ */
.section-divider--diagonal {
  position: relative;
  height: 80px;
  background: var(--c-bone-deep);
  clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%);
  margin-top: -2px;
}
