/* =============================================================
   INTEGRITY AGENCY
   Private Advisory & Growth Infrastructure
   Black / gold / Cormorant Garamond luxury system
   ============================================================= */

/* Self-hosted fonts - Cormorant Garamond + Inter (Latin subset) */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/cormorant-garamond-v21-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/cormorant-garamond-v21-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/cormorant-garamond-v21-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/cormorant-garamond-v21-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url('/assets/fonts/cormorant-garamond-v21-latin-italic.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url('/assets/fonts/cormorant-garamond-v21-latin-500italic.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 600; font-display: swap; src: url('/assets/fonts/cormorant-garamond-v21-latin-600italic.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 700; font-display: swap; src: url('/assets/fonts/cormorant-garamond-v21-latin-700italic.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 200; font-display: swap; src: url('/assets/fonts/inter-v20-latin-200.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300; font-display: swap; src: url('/assets/fonts/inter-v20-latin-300.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/inter-v20-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/inter-v20-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/inter-v20-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/inter-v20-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/inter-v20-latin-800.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 900; font-display: swap; src: url('/assets/fonts/inter-v20-latin-900.woff2') format('woff2'); }

:root {
  /* Surfaces */
  --bg-0: #000000;
  --bg-1: #070707;
  --bg-2: #0d0d0d;
  --bg-3: #141414;
  --bg-card: #0a0a0a;

  /* Gold spectrum */
  --gold: #D4A843;
  --gold-rgb: 212, 168, 67;
  --gold-hot: #F9E08C;
  --gold-hot-rgb: 249, 224, 140;
  --gold-warm: #F3CD52;
  --gold-warm-rgb: 243, 205, 82;
  --gold-soft: #E0AE34;
  --gold-soft-rgb: 224, 174, 52;
  --gold-dim: #C4861A;
  --gold-glow: rgba(var(--gold-rgb), 0.16);
  /* Gold-gloss gradient for metallic text (verbatim port from
     jobyweeks.com - multi-stop polished-metal gradient clipped
     to text gives "Rolex" sheen on numerals, italics, CTAs). */
  /* The single canonical brand gold. Used everywhere gold appears.
     180° vertical multi-stop polished metal gradient. */
  --gold-gloss: linear-gradient(180deg, #FFF7D6 0%, #F9E08C 14%, #F1CB54 30%, #E0AE34 46%, #C88A1C 50%, #F3CD52 54%, #FFE584 66%, #E7B53C 82%, #C4861A 100%);
  --ia-gold-24k: var(--gold-gloss);
  --gold-line: rgba(var(--gold-rgb), 0.72);
  --gold-hairline: rgba(var(--gold-rgb), 0.62);
  --line: rgba(var(--gold-rgb), 0.55);
  --line-2: rgba(var(--gold-rgb), 0.42);
  --line-3: rgba(var(--gold-rgb), 0.78);
  --line-4: rgba(var(--gold-rgb), 0.92);
  /* 20% smaller than prior 46.48px partner-day size. */
  --ia-logo-height: 37.18px;
  /* Polished metallic shimmer for prominent horizontal rules */
  --gold-shimmer: linear-gradient(90deg, #C88A1C 0%, #E0AE34 16%, #F3CD52 34%, #FFF7D6 50%, #F3CD52 66%, #E7B53C 84%, #C4861A 100%);

  /* Text - IA silver/shine, cool metallic */
  --text-0: #F5F5F5;
  --text-1: #DCDCDC;
  --text-2: #B0B0B0;
  --text-3: #757575;
  --text-muted: rgba(245, 245, 245, 0.58);

  /* Type */
  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Geometry - crisp square corners site-wide (pills, cards, buttons, CTAs) */
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 0;
  --radius-card: 0;
  --radius-pill: 0;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 180ms;
  --t-med: 360ms;
  --t-slow: 720ms;

  /* Triple-stack gold shine/glow - reusable across all borders/lines */
  --glow-major:
    0 0 14px rgba(var(--gold-rgb), 0.55),
    0 0 28px rgba(var(--gold-rgb), 0.28),
    0 1px 6px rgba(var(--gold-rgb), 0.4);
  --glow-med:
    0 0 8px rgba(var(--gold-rgb), 0.28),
    0 0 20px rgba(var(--gold-rgb), 0.13),
    inset 0 0 2px rgba(var(--gold-rgb), 0.35);
  --glow-subtle:
    0 0 5px rgba(var(--gold-rgb), 0.18),
    0 0 14px rgba(var(--gold-rgb), 0.08),
    inset 0 0 1px rgba(var(--gold-rgb), 0.28);
  --glow-hover:
    0 0 12px rgba(var(--gold-rgb), 0.42),
    0 0 28px rgba(var(--gold-rgb), 0.18),
    inset 0 0 3px rgba(var(--gold-rgb), 0.5);
}

/* =============================================================
   Reset & base
   ============================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
  background: var(--bg-0);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  color: var(--text-1);
  background: transparent;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 300;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Subtle film grain for luxury feel */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Diagonal pinstripes per section, alternating +30deg / -30deg by nth-of-type */
main, header, footer, section { position: relative; z-index: 1; }
section { isolation: isolate; }
section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: repeating-linear-gradient(
    var(--stripe-angle, 30deg),
    transparent 0px,
    transparent 63px,
    rgba(255,255,255,0.022) 63px,
    rgba(255,255,255,0.022) 64px
  );
}
section:nth-of-type(even)::before { --stripe-angle: -30deg; }


img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
input, textarea, select, button { font: inherit; color: inherit; }

.ia-gold-text {
  background: var(--ia-gold-24k);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold-hot);
  filter: drop-shadow(0 0 6px rgba(var(--gold-rgb), 0.32));
}

.ia-gold-text--flat {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: #E6B422;
  filter: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: 16px; top: 16px;
  background: var(--gold-gloss);
  color: #000;
  padding: 8px 14px;
  z-index: 10000;
}

/* =============================================================
   Type primitives
   ============================================================= */

/* Content eyebrows use the shared .ia-eyebrow-pill system (see below).
   Base .eyebrow kept as a class hook; ring styles applied site-wide. */
.eyebrow {
  margin-bottom: 28px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-0);
  line-height: 1.05;
}

h1 em, h2 em, h3 em {
  background: var(--gold-gloss);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-style: italic;
  font-weight: 500;
}

/* Polished metallic treatment for the large gold italic clauses in hero and
   section headlines. Stays inside the site's gold palette but adds a diagonal
   gradient + warm drop-shadow so the text reads as cast metal, not flat paint.
   Scoped to large headlines only - small gold UI (eyebrows, buttons, chips,
   nav CTAs) keeps flat --gold since gradient doesn't read at small sizes. */
.hero-headline em,
.section-headline em {
  background: var(--gold-gloss);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter:
    drop-shadow(0 0 14px rgba(var(--gold-rgb), 0.22))
    drop-shadow(0 0 2px rgba(var(--gold-warm-rgb), 0.55));
}

.section-headline {
  font-size: clamp(24px, 5.4vw, 68px);
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin-bottom: 24px;
  overflow-wrap: break-word;
  word-break: normal;
}

.section-body {
  font-family: var(--sans);
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 60ch;
}

/* =============================================================
   Layout
   ============================================================= */

.section { padding: clamp(56px, 7vw, 100px) 0; position: relative; }
.section-dark { background: transparent; }

/* When anchor-scrolled via header nav, pull the scroll target up by
   the section's padding-top so the eyebrow lands just below the fixed
   header (hiding the hairline + padding behind it - no double-line). */
.section,
.inquiry-section {
  scroll-margin-top: calc(-1 * clamp(56px, 7vw, 100px));
}
.section-inner {
  max-width: var(--max);
  padding: 0 var(--gutter);
  margin: 0 auto;
  position: relative;
}
.section-header { margin-bottom: clamp(32px, 4vw, 56px); }
.section-header-center { text-align: center; margin-inline: auto; }
.section-header-center .section-body { margin-inline: auto; }

.hairline {
  height: 1px;
  width: 100%;
  background: var(--gold-gloss);
  opacity: 1;
}

/* =============================================================
   Header / Nav
   ============================================================= */

#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  transition: padding var(--t-med) var(--ease), background var(--t-med) var(--ease);
}
#site-header.scrolled {
  padding: 10px 0 !important;
  background: rgba(0, 0, 0, 0.92);
}
/* Scroll shrink: tighter header chrome + slightly smaller mark (audit 2026-07-29). */
#site-header.scrolled .nav-logo img {
  height: calc(var(--ia-logo-height) * 0.88) !important;
}
#site-header.scrolled .nav-logo::after {
  height: calc(var(--ia-logo-height) * 0.88);
  -webkit-mask-size: auto calc(var(--ia-logo-height) * 0.88);
  mask-size: auto calc(var(--ia-logo-height) * 0.88);
}
#site-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--gold-gloss);
  pointer-events: none;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.nav-logo img {
  height: var(--ia-logo-height);
  width: auto;
  /* Override the global img { max-width: 100% } reset - at tight viewports
     that rule was forcing horizontal compression while height stayed fixed,
     squashing the logo's aspect ratio. */
  max-width: none;
  display: block;
  transition: height var(--t-med) var(--ease);
}
/* Paint the gold-gloss gradient onto the gold portions of the logo only.
   The mask PNG is white where the original logo was gold (with anti-aliased
   edges), transparent elsewhere. The gradient overlay sits exactly on top of
   the gold pixels of the underlying img and replaces their dull solid fill
   with polished-metal gloss + a specular highlight band.

   Stack (back to front):
     1. var(--gold-gloss) scaled 220% tall so the visible portion shows the
        bright top half + amber mid (avoids the deepest dark-brown stops that
        would otherwise sit at the bottom of the logo box and read as muddy).
     2. A thin specular highlight band at ~28% - suggests a single light source
        catching a polished surface, gives the gold the feel of luxury-watch
        casework rather than flat tinted paint.
   Both layers are masked to the gold pixels of the logo. */
.nav-logo::after {
  content: none; /* gloss sweep removed -> show the logo exactly as the PNG (2026-06-11) */
  position: absolute;
  top: 0;
  left: 0;
  height: var(--ia-logo-height);
  width: 100%;
  background:
    linear-gradient(180deg,
      transparent 18%,
      rgba(255, 252, 224, 0.55) 26%,
      rgba(255, 252, 224, 0.0) 34%,
      transparent 100%) 0 0 / 100% 100% no-repeat,
    var(--gold-gloss) 0 0 / 100% 220% no-repeat;
  -webkit-mask: url('/assets/logo-gold-mask.png?v=partner1') left center / auto var(--ia-logo-height) no-repeat;
  mask: url('/assets/logo-gold-mask.png?v=partner1') left center / auto var(--ia-logo-height) no-repeat;
  pointer-events: none;
  filter:
    drop-shadow(0 0 10px rgba(var(--gold-hot-rgb), 0.5))
    drop-shadow(0 0 22px rgba(var(--gold-rgb), 0.22))
    drop-shadow(0 0 1px rgba(var(--gold-warm-rgb), 0.7));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 40px);
  margin-left: 0;
}
/* Right cluster: desktop CTA + language + hamburger stay pinned right. */
.nav-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
  z-index: 2;
}
/* Desktop: 3-zone grid. Logo | centered links | tools.
   Do NOT use transform on .nav-links (it traps position:fixed mega-panels). */
@media (min-width: 1025px) {
  .nav-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 16px 20px;
    position: relative;
  }
  .nav-logo {
    grid-column: 1;
    justify-self: start;
  }
  .nav-links {
    grid-column: 2;
    justify-self: center;
    position: static;
    margin: 0;
    transform: none;
    pointer-events: auto;
  }
  .nav-tools {
    grid-column: 3;
    justify-self: end;
    margin-left: 0;
  }
  /* Drawer CTA only shows in mobile menu; bar CTA lives in .nav-tools */
  .nav-cta--drawer {
    display: none !important;
  }
  .nav-cta--bar {
    display: inline-flex;
  }
  .nav-toggle {
    display: none;
  }
}
.nav-links a,
.nav-links .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  line-height: 1;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-1);
  position: relative;
  padding: 8px 0;
  transition: color var(--t-fast) var(--ease);
}
.nav-links a:hover,
.nav-links .nav-link:hover { background: var(--gold-gloss);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent; }

/* =============================================================
   Mega menu (desktop) - large-format editorial dropdown panel.
   Hover-intent on .nav-item--mega opens its .mega-panel, which
   docks beneath the fixed header and spans the full viewport.
   ============================================================= */
.nav-item {
  position: static;
  display: flex;
  align-items: center;
  min-height: 42px;
}
.nav-item--mega > .nav-link::after {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-left: 8px;
  margin-bottom: 0;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.55;
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.nav-item--mega:hover > .nav-link::after,
.nav-item--mega.is-open > .nav-link::after {
  opacity: 1;
}

.mega-panel {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--ia-header-height, 94px);
  background: #000000;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top: 1px solid rgba(var(--gold-rgb), 0.18);
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.18);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  /* Instant show/hide. Transitions were getting stuck mid-run after the
     header layout refactor and left panels at opacity:0 forever. */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: none;
  isolation: isolate;
  /* Above sticky header (1000) so the panel and its hover bridge stay hittable */
  z-index: 1005;
}
#site-header.scrolled .mega-panel {
  top: 100%;
}
.mega-panel::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -26px;
  height: 26px;
}

.nav-item--mega:hover > .mega-panel,
.nav-item--mega:focus-within > .mega-panel,
.nav-item--mega.is-open > .mega-panel {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transition: none !important;
}

.mega-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px var(--gutter) 52px;
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.85fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.mega-inner--narrow {
  grid-template-columns: 1fr 0.85fr;
  max-width: var(--max);
}
.mega-col {
  min-width: 0;
}
.mega-icon {
  width: 18px;
  height: 18px;
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: start;
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  color: var(--gold-hot);
  filter: drop-shadow(0 0 6px rgba(245, 210, 110, 0.34));
  transition: filter var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.mega-icon svg {
  width: 18px;
  height: 18px;
  stroke: url(#goldShineStroke);
  fill: none;
  shape-rendering: geometricPrecision;
}
.mega-icon svg [stroke]:not([stroke="none"]) { stroke: url(#goldShineStroke); }
.mega-icon svg [fill]:not([fill="none"]) {
  fill: url(#goldShine);
  stroke: none;
}
.mega-list a:hover .mega-icon,
.mega-list a:focus-visible .mega-icon {
  filter: drop-shadow(0 0 10px rgba(245, 210, 110, 0.52));
  transform: scale(1.04);
}
.mega-name,
.mega-desc {
  grid-column: 2;
}
.mega-eyebrow {
  margin-bottom: 22px;
  /* border-bottom removed: ring pill replaces hairline under label */
}
.mega-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mega-list li { padding: 0; margin: 0; }
.mega-list a {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.06);
  text-transform: none;
  letter-spacing: normal;
  font-size: inherit;
  color: var(--text-1);
  transition: padding-left var(--t-fast) var(--ease);
}
.mega-list li:last-child a { border-bottom: none; }
.mega-list a:hover {
  padding-left: 8px;
  background: none;
  -webkit-text-fill-color: initial;
  color: var(--text-0);
}
.mega-list a:hover .mega-name {
  background: var(--gold-gloss);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.mega-name {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text-0);
  line-height: 1.25;
  transition: color var(--t-fast) var(--ease);
}
.mega-desc {
  display: block;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-2);
  margin-top: 4px;
  letter-spacing: 0.005em;
  text-transform: none;
}

.mega-aside {
  border-left: 1px solid rgba(var(--gold-rgb), 0.16);
  padding-left: clamp(24px, 3vw, 40px);
  min-width: 0;
}
.mega-aside-eyebrow {
  margin-bottom: 16px;
}
.mega-aside-line {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-1);
  margin-bottom: 24px;
  letter-spacing: -0.005em;
}
.mega-aside-cta {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 12px 18px;
  border: 1px solid var(--gold-hot);
  border-radius: var(--radius-pill);
  background: var(--gold-gloss);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  box-shadow: var(--glow-subtle);
  text-shadow:
    0 0 6px rgba(var(--gold-rgb), 0.55),
    0 0 14px rgba(var(--gold-rgb), 0.25);
  transition: box-shadow var(--t-med) var(--ease);
}
.mega-aside-cta:hover {
  box-shadow:
    0 0 18px rgba(var(--gold-rgb), 0.6),
    0 0 38px rgba(var(--gold-rgb), 0.32),
    inset 0 0 10px rgba(var(--gold-rgb), 0.2);
}

/* Hide mega-panels on compact layouts - mobile/tablet gets the
   slide-in drawer treatment with flat links. */
@media (max-width: 1024px) {
  .nav-item--mega > .nav-link::after { display: none; }
  .mega-panel {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    transition: none;
    width: 100%;
  }
  .mega-inner,
  .mega-inner--narrow {
    grid-template-columns: 1fr;
    padding: 0 0 18px;
    gap: 18px;
    max-width: none;
  }
  .mega-eyebrow {
    margin: 18px 0 10px;
    padding-bottom: 10px;
    font-size: 9px;
    letter-spacing: 0.32em;
  }
  .mega-list a {
    padding: 10px 0;
    border-bottom: 1px solid rgba(var(--gold-rgb), 0.08);
  }
  .mega-name { font-size: 16px; }
  .mega-desc { display: none; }
  .mega-aside { display: none; }
}

/* Desktop: keep the nav row anchored so the panel docks correctly */
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  .nav-item--mega { position: static; }
}

/* Header CTA: desktop bar (.nav-cta--bar) and mobile drawer (.nav-cta--drawer). */
.nav-cta {
  flex-shrink: 0;
  padding: 10px 18px !important;
  font-size: 11px !important;
  letter-spacing: 0.15em !important;
  white-space: nowrap;
  border: 1px solid var(--gold-hot);
  border-radius: var(--radius-pill);
  background: var(--gold-gloss) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  box-shadow: var(--glow-subtle);
  text-shadow:
    0 0 6px rgba(var(--gold-rgb), 0.55),
    0 0 14px rgba(var(--gold-rgb), 0.25),
    0 0 1px rgba(var(--gold-warm-rgb), 0.85);
  transition: background var(--t-med) var(--ease), border-color var(--t-med) var(--ease), color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), text-shadow var(--t-med) var(--ease);
}
.nav-cta:hover {
  background: radial-gradient(ellipse at center, rgba(var(--gold-rgb), 0.16) 0%, rgba(var(--gold-rgb), 0.06) 55%, transparent 100%);
  color: var(--gold-hot) !important;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  box-shadow:
    0 0 18px rgba(var(--gold-rgb), 0.6),
    0 0 38px rgba(var(--gold-rgb), 0.32),
    0 0 3px rgba(var(--gold-warm-rgb), 0.7),
    inset 0 0 10px rgba(var(--gold-rgb), 0.2);
  text-shadow:
    0 0 8px rgba(var(--gold-warm-rgb), 0.95),
    0 0 22px rgba(var(--gold-rgb), 0.65),
    0 0 2px rgba(255, 231, 161, 1);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text-0);
  transition: transform var(--t-med) var(--ease), opacity var(--t-fast);
  margin-left: auto;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =============================================================
   Hero
   ============================================================= */

.hero {
  position: relative;
  background: #000000;
  min-height: auto;
  /* Header height = 93px + 1 section-pad of breathing room below the
     header. (Half the previous value, which added 2× section-pad.) */
  padding-top: calc(94px + clamp(56px, 7vw, 100px));
  padding-right: var(--gutter);
  padding-bottom: clamp(56px, 7vw, 100px);
  padding-left: var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  isolation: isolate;
  overflow-x: clip;
  overflow-y: visible;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 44% at 50% 40%, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.46) 64%, rgba(0, 0, 0, 0.74) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.34) 42%, rgba(0, 0, 0, 0.78) 100%);
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000000 url('/assets/ia-home-hero-poster.jpg?v=3') center center / cover no-repeat;
  pointer-events: none;
  display: block;
}

.hero-video video,
#ia-hero-video,
video.ia-hero-video {
  display: block !important;
  visibility: visible !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.88;
  filter: brightness(0.92) contrast(1.05) saturate(0.95);
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
  animation: fadeUp 1100ms var(--ease-out) both;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(28px, 6.9vw, 102px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--text-0);
  margin-bottom: 28px;
  padding-bottom: 0;
  overflow-wrap: break-word;
  word-break: normal;
}
.hero-headline em {
  display: inline-block;
  padding: 0.02em 0.08em 0.08em;
  line-height: 1.15;
  font-style: italic;
  font-weight: 500;
  background: var(--gold-gloss);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  position: relative;
}

.hero-subhead {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 30px);
  font-style: italic;
  font-weight: 400;
  color: var(--text-0);
  margin-bottom: 14px;
  letter-spacing: 0.005em;
}

.hero-body {
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 300;
  color: var(--text-2);
  max-width: 62ch;
  margin: 0 auto 26px;
  line-height: 1.65;
}

/* Match the .eyebrow typography exactly so this line reads as the same
   class of label/caption as every other small-caps gold tag on the site. */
.hero-meta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 18px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  background: var(--gold-gloss);
  background-size: 100% 250%;
  background-position: 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow:
    0 0 10px rgba(var(--gold-rgb), 0.35),
    0 0 2px rgba(var(--gold-warm-rgb), 0.6);
}
.hero-meta .dot {
  width: 3px; height: 3px;
  background: var(--gold-gloss);
  border-radius: 50%;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-3);
  opacity: 0.7;
  animation: fadeIn 1800ms 600ms both;
}
.hero-scroll svg {
  animation: scrollCue 2200ms infinite var(--ease);
  background: var(--gold-gloss);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@keyframes scrollCue {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(5px); opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 0.7; }
}

/* =============================================================
   Cards (Practice / Who we serve)
   ============================================================= */

.cards {
  display: grid;
  gap: clamp(20px, 2vw, 28px);
}
.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background:
    linear-gradient(180deg, var(--bg-card) 0%, #040404 100%) padding-box,
    var(--gold-gloss) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  padding: clamp(22px, 2.5vw, 36px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--glow-med);
  transition: transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, var(--gold-glow), transparent 60%);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow-hover);
}
.card:hover::before { opacity: 1; }

.card-tag {
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  background: var(--gold-gloss);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  text-align: center;
}
.card-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  margin-bottom: 22px;
  color: var(--text-0);
  text-align: center;
  position: relative;
  padding-bottom: 14px;
}
.card-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 1px;
  margin: 14px auto 0;
  background: var(--gold-gloss);
  box-shadow: 0 0 8px rgba(var(--gold-rgb), 0.35);
}
.card-body {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.65;
  text-align: center;
}

/* =============================================================
   Pillars (Framework)
   ============================================================= */

.pillars {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3.2vw, 48px);
}

.pillar {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  padding: clamp(28px, 3vw, 48px) clamp(24px, 2.5vw, 40px);
  position: relative;
  min-height: clamp(280px, 26vw, 360px);
}
/* The unified card rule below handles the full gradient border (--gold-gloss).
   No separate border-top needed; pillars are visually separated by the gap
   between cards. */

.pillar-marker {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pillar-num {
  font-family: var(--serif);
  font-size: clamp(72px, 8vw, 128px);
  font-style: italic;
  font-weight: 400;
  background: var(--gold-gloss);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.pillar-tag {
  position: relative;
  display: inline-block;
  padding-top: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: var(--gold-gloss);
  background-size: 100% 250%;
  background-position: 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow:
    0 0 10px rgba(var(--gold-rgb), 0.28),
    0 0 2px rgba(var(--gold-warm-rgb), 0.55);
}
.pillar-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 1px;
  background: var(--gold-gloss);
  -webkit-mask: linear-gradient(90deg, white 0%, rgba(255,255,255,0.15) 100%);
  mask: linear-gradient(90deg, white 0%, rgba(255,255,255,0.15) 100%);
  box-shadow: 0 0 6px rgba(var(--gold-rgb), 0.35);
}

.pillar-body h3 {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 14px;
  color: var(--text-0);
  max-width: 30ch;
}
.pillar-body p {
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 58ch;
}

/* =============================================================
   Intelligence grid
   ============================================================= */

.intel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.8vw, 26px);
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.intel-grid li {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(20, 20, 20, 0.85) 0%, rgba(10, 10, 10, 0.92) 100%) padding-box,
    var(--gold-gloss) border-box;
  border: 1px solid transparent;
  border-radius: 0;
  padding: clamp(34px, 3.4vw, 48px) clamp(22px, 2.4vw, 32px) clamp(30px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  text-align: center;
  box-shadow: 0 1px 0 rgba(255,255,255,0.02) inset, var(--glow-subtle);
  transition:
    transform var(--t-med) var(--ease),
    border-color var(--t-med) var(--ease),
    background var(--t-med) var(--ease),
    box-shadow var(--t-med) var(--ease);
}
.intel-grid li::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gold-gloss);
  -webkit-mask: linear-gradient(90deg, transparent 0%, white 50%, transparent 100%);
  mask: linear-gradient(90deg, transparent 0%, white 50%, transparent 100%);
  opacity: 0.45;
  pointer-events: none;
}
.intel-grid li::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(var(--gold-rgb), 0.10) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
  pointer-events: none;
  z-index: -1;
}
.intel-grid li:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--gold-rgb), 0.48);
  background:
    linear-gradient(180deg, rgba(24, 24, 24, 0.9) 0%, rgba(12, 12, 12, 0.95) 100%);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.5),
    var(--glow-med);
}
.intel-grid li:hover::before { opacity: 1; }
.intel-grid li:hover::after { opacity: 1; }

.intel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  margin-bottom: 4px;
  filter: drop-shadow(0 0 6px rgba(var(--gold-rgb), 0.35));
  transition:
    filter var(--t-med) var(--ease),
    transform var(--t-med) var(--ease);
}
.intel-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  shape-rendering: geometricPrecision;
}
.intel-grid li:hover .intel-icon {
  filter: drop-shadow(0 0 10px rgba(var(--gold-rgb), 0.5));
  transform: scale(1.04);
}

.intel-name {
  font-family: var(--serif);
  font-size: clamp(21px, 1.75vw, 25px);
  font-weight: 500;
  color: var(--text-0);
  line-height: 1.25;
  letter-spacing: 0.005em;
  padding-top: 14px;
  position: relative;
}
.intel-name::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 1px;
  background: var(--gold-gloss);
  transition: width var(--t-med) var(--ease), background var(--t-med) var(--ease);
}
.intel-grid li:hover .intel-name::before {
  width: 44px;
  background: var(--gold-gloss);
}

.intel-desc {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.6;
  letter-spacing: 0.015em;
  max-width: 30ch;
  margin-top: 2px;
}

/* =============================================================
   Engine section (AI infrastructure)
   ============================================================= */

.engine-header { max-width: 820px; }
#engine .section-header.engine-header {
  margin-bottom: 0;
}
#engine.section {
  padding-top: clamp(56px, 7vw, 100px);
  padding-bottom: clamp(56px, 7vw, 100px);
}
.engine-header .section-headline { margin-bottom: 22px; }
.engine-header .section-body {
  max-width: 62ch;
  margin-inline: auto;
}
.engine-header .section-body + .section-body {
  margin-top: clamp(16px, 1.6vw, 22px);
}

/* Pull quote - gold italic serif, flanked by hairline rules, centered */
.engine-pullquote {
  position: relative;
  max-width: 34ch;
  margin: clamp(22px, 2.5vw, 36px) auto;
  padding: clamp(22px, 2.4vw, 32px) 8px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--text-0);
  text-align: center;
  letter-spacing: -0.005em;
  quotes: none;
}
.engine-pullquote em {
  background: var(--gold-gloss);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-style: italic;
  font-weight: 500;
  text-shadow:
    0 0 14px rgba(var(--gold-rgb), 0.3),
    0 0 2px rgba(var(--gold-warm-rgb), 0.5);
}
.engine-pullquote::before,
.engine-pullquote::after {
  content: "";
  display: block;
  width: 80px;
  height: 1px;
  margin: 0 auto;
  background: var(--gold-gloss);
  -webkit-mask: linear-gradient(90deg, transparent 0%, white 50%, transparent 100%);
  mask: linear-gradient(90deg, transparent 0%, white 50%, transparent 100%);
  opacity: 0.6;
}
.engine-pullquote::before { margin-bottom: clamp(20px, 2.2vw, 28px); }
.engine-pullquote::after  { margin-top:    clamp(20px, 2.2vw, 28px); }

/* Built On Enterprise Infrastructure (nirvani.ai hero strip)
   Even 4x2 grid: equal cell size, equal gap, both rows centered. */
.built-on {
  padding: 14px 16px 22px;
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
  text-align: center;
}
.built-on--page {
  margin: clamp(36px, 4vw, 56px) auto 0;
  padding: 12px 16px 20px;
  max-width: min(980px, 100%);
}
.engine-built-on .ia-eyebrow-center {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 auto 16px;
}
.built-on-row {
  /* Column gap stays tight; row gap has more air between the two logo lines */
  --bo-gap: clamp(16px, 2.4vw, 28px);
  --bo-gap-y: clamp(32px, 4.5vw, 56px);
  --bo-pad: clamp(8px, 1.6vw, 16px);
  --bo-max-h: clamp(48px, 6.5vw, 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--bo-gap-y);
  width: 100%;
  max-width: min(880px, 100%);
  margin-inline: auto;
  padding: var(--bo-pad);
  box-sizing: border-box;
}
/*
  Both logo lines: identical system image.
  4 equal cells + shared --bo-gap. No row-2 special layout (mapping).
*/
.built-on-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--bo-gap);
  align-items: center;
  justify-items: center;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
}
.built-on-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: opacity 0.45s var(--ease), filter 0.45s var(--ease);
  cursor: default;
  /* Layout box is identical for every logo (even padding / even rows) */
  --logo-grow: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: var(--bo-max-h);
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  transform: none !important;
  overflow: visible; /* Microsoft: do not clip wide wordmark */
}
.built-on-logo img {
  width: auto;
  height: auto;
  max-width: calc(90% * var(--logo-grow));
  max-height: calc(var(--bo-max-h) * 0.92 * var(--logo-grow));
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
}
.built-on-logo:hover { opacity: 1; }
.built-on-logo--invert img {
  filter: brightness(0) invert(1);
}
.built-on-logo--invert:hover img {
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255,255,255,0.35));
}
.built-on-logo--brighten img {
  filter: brightness(2.5) contrast(1.1);
}
.built-on-logo--brighten:hover img {
  filter: brightness(2.8) contrast(1.15) drop-shadow(0 0 8px rgba(255,255,255,0.35));
}
.built-on-logo--aws:hover img {
  filter: drop-shadow(0 0 10px rgba(255, 153, 0, 0.55));
}
.built-on-logo--cloudflare:hover img {
  filter: drop-shadow(0 0 10px rgba(243, 128, 32, 0.55));
}
.built-on-logo--gcloud:hover img {
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.40))
          drop-shadow(0 0 16px rgba(66, 133, 244, 0.30));
}
.built-on-logo--microsoft:hover img {
  filter: drop-shadow(0 0 10px rgba(0, 164, 239, 0.45));
}
.built-on-logo--nvidia:hover img {
  filter: drop-shadow(0 0 10px rgba(118, 185, 0, 0.55));
}
.built-on-logo--x:hover img {
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.40));
}
/*
  Glyph optical sizes only (same formula both rows via .built-on-logo img).
  Grow factors stay in a tight band so neither row looks "special."
*/
.built-on-logo--invert     { --logo-grow: 1.15; } /* Anthropic */
.built-on-logo--gcloud     { --logo-grow: 1.20; } /* Google Cloud */
.built-on-logo--brighten   { --logo-grow: 0.95; } /* OpenAI */
.built-on-logo--aws        { --logo-grow: 0.88; } /* AWS */
.built-on-logo--nvidia     { --logo-grow: 1.15; } /* NVIDIA */
.built-on-logo--cloudflare {
  --logo-grow: 1.35; /* Cloudflare - cell-relative, not 2x */
  margin-right: 19px; /* air before Microsoft */
}
.built-on-logo--microsoft  { --logo-grow: 1.20; } /* Microsoft */
.built-on-logo--x          { --logo-grow: 1.125; } /* X −10% from 1.25 */
.built-on-logo--microsoft img {
  position: relative;
  top: 4px; /* optical baseline with wordmarks */
}
.built-on-caption {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-3);
  margin: 16px auto 0;
  max-width: min(540px, 100%);
  padding: 0 12px;
  line-height: 1.5;
  box-sizing: border-box;
}
@media (max-width: 900px) {
  .built-on-row {
    --bo-max-h: clamp(42px, 7vw, 60px);
    --bo-gap: clamp(14px, 2.2vw, 22px);
    --bo-gap-y: clamp(28px, 4vw, 44px);
    max-width: min(720px, 100%);
  }
}
@media (max-width: 720px) {
  .built-on {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
  .built-on--page {
    padding: 10px 12px 16px;
    margin-left: auto;
    margin-right: auto;
    max-width: min(560px, 100%);
  }
  .built-on-row {
    --bo-max-h: clamp(36px, 10vw, 48px);
    --bo-gap: clamp(12px, 3vw, 18px);
    --bo-gap-y: clamp(24px, 5vw, 36px);
    --bo-pad: clamp(6px, 2vw, 12px);
    max-width: min(480px, calc(100vw - 24px));
    margin-inline: auto;
  }
  .built-on-caption {
    margin: 14px auto 0;
    padding: 0 10px;
    font-size: 11.5px;
    line-height: 1.45;
    max-width: min(340px, calc(100vw - 32px));
  }
}
@media (max-width: 400px) {
  .built-on-row {
    --bo-max-h: clamp(32px, 11vw, 42px);
    --bo-gap: 10px;
    --bo-pad: 6px;
    max-width: min(360px, calc(100vw - 16px));
  }
}
/* Discretion/seal lines - small italic serif beneath a grid or chip row.
   Used by AI-Powered Infrastructure (engine) and The Advantage sections. */
.engine-discretion,
.advantage-seal {
  margin-top: clamp(28px, 3vw, 40px);
  margin-bottom: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-3);
  text-align: center;
  max-width: 64ch;
  margin-left: auto;
  margin-right: auto;
}
/* Seal → Private counsel mid-CTA: pull the two together */
#intelligence.section {
  padding-bottom: clamp(18px, 2.2vw, 28px);
}

.engine-capabilities {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 0;
  margin: clamp(36px, 4vw, 52px) auto 0;
  max-width: 880px;
  list-style: none;
  padding: 0;
}
.engine-capabilities li {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-1);
  padding: 4px 18px;
  position: relative;
  transition: color var(--t-fast) var(--ease);
}
.engine-capabilities li::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 50%;
  width: 4px;
  height: 4px;
  background: var(--gold-gloss);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.75;
}
.engine-capabilities li:hover {
  background: var(--gold-gloss);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.engine-footnote {
  margin-top: clamp(32px, 3.2vw, 44px);
  margin-bottom: clamp(32px, 3.2vw, 44px);
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  background: linear-gradient(
    135deg,
    #F4F4F4 0%,
    #BCBCBC 22%,
    #FFFFFF 48%,
    #A9A9A9 72%,
    #E6E6E6 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.engine-footnote .brand-nirvani {
  display: inline;
  text-decoration: none;
  border: 0;
  padding: 0;
  line-height: inherit;
  vertical-align: baseline;
}
.engine-footnote .ia-gold,
.engine-footnote a.ia-gold {
  background: none;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  background: var(--gold-gloss);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 600;
  text-decoration: none;
  text-shadow:
    0 0 10px rgba(var(--gold-rgb), 0.35),
    0 0 2px rgba(var(--gold-warm-rgb), 0.6);
  transition: opacity var(--t-fast) var(--ease), filter var(--t-fast) var(--ease);
}
.engine-footnote a.ia-gold:hover {
  opacity: 0.92;
  filter: drop-shadow(0 0 6px rgba(var(--gold-rgb), 0.4));
}

/* Inline brand logos inside the footnote sentence. IA wordmark is scaled
   down so its two-word length sits on the line without dominating. */
.engine-footnote .inline-logo {
  display: inline-block;
  width: auto;
  margin: 0 1px;
  user-select: none;
  -webkit-user-drag: none;
  max-width: none; /* override global img max-width:100% */
  transition: filter var(--t-fast) var(--ease);
}
.engine-footnote .inline-logo-ia {
  height: 12px;
  width: auto;
  vertical-align: -1px;
  margin: 0 1px;
  object-fit: contain;
  transition: filter var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.engine-footnote .inline-logo-nirvani {
  /* Gold asset has more transparent padding than the IA wordmark; ~17px
     display height matches IA's visible cap height at 12px. */
  height: 17px;
  width: auto;
  vertical-align: -3px;
  margin: 0 1px;
  object-fit: contain;
  transition: filter var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.engine-footnote .brand-nirvani:hover .inline-logo-nirvani {
  filter: drop-shadow(0 0 6px rgba(var(--gold-rgb), 0.45));
  transform: scale(1.02);
}

/* =============================================================
   Principal engagements marquee (full-bleed edge-to-edge scroller)
   ============================================================= */

.marquee-band {
  width: 100%;
  margin: clamp(40px, 5vw, 64px) 0 0;
  /* Bottom pad slightly > gap so logos sit a touch higher above the hairline */
  padding: 0 0 clamp(40px, 4.5vw, 64px);
  border: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(28px, 3.5vw, 48px);
}

.marquee-eyebrow {
  text-align: center;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 0 !important;
  /* Prefer single line; wrap only if viewport is truly tight */
  white-space: nowrap !important;
  max-width: min(96vw, 720px);
}

/* Equal air above + below the logo track (gap + matching bottom pad) */
.brand-marquee {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
  margin: 0;
  min-height: clamp(64.4px, 7.475vw, 96.6px);
  display: flex;
  align-items: center;
}

/* Practice section: marquee owns the bottom spacing down to the hairline */
#practice.section {
  padding-bottom: 0;
}
.brand-marquee-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: max-content;
  align-items: center;
  gap: 0;
  animation: brandScroll 36s linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}
.brand-marquee-track:hover {
  animation-play-state: paused;
}
.brand-marquee-group {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  flex-shrink: 0;
  gap: clamp(56px, 6vw, 96px);
  padding-right: clamp(56px, 6vw, 96px);
}
@keyframes brandScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
.brand-logo,
.brand-marquee .brand {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.brand {
  font-size: clamp(25.3px, 2.76vw, 39.1px);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -0.04em;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  height: clamp(36.8px, 3.68vw, 50.6px);
  padding: 0;
}

/* Real logo images - capped at same visual x-height as text brands for consistency */
.brand-logo {
  height: clamp(27.6px, 2.76vw, 39.1px);
  width: auto;
  max-width: clamp(103.5px, 11.5vw, 161px);
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-drag: none;
}
.brand-logo.invert {
  /* Vitaminwater PNG is black text → invert to white for black bg */
  filter: invert(1);
}

/* Per-brand marquee sizing */
.brand-logo.brand-coca-cola,
.brand-logo.brand-vitaminwater {
  height: clamp(30.636px, 3.064vw, 43.401px);
  max-width: clamp(115px, 12.765vw, 178.25px);
}
.brand-logo.brand-aol {
  height: clamp(24.012px, 2.401vw, 34.017px);
  max-width: clamp(89.7px, 10.005vw, 140.3px);
}
.brand-logo.brand-callaway {
  height: clamp(56.304px, 5.865vw, 79.764px);
  width: auto;
  max-width: clamp(253.368px, 28.152vw, 365.976px);
  object-fit: contain;
  filter: none;
  opacity: 1;
}
.brand-logo.brand-tm {
  height: clamp(49.68px, 5.278vw, 71.415px);
  width: auto;
  max-width: clamp(149.04px, 17.077vw, 217.35px);
  object-fit: contain;
  filter: none;
  opacity: 1;
}

.brand-naver {
  color: #03C75A;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  letter-spacing: -0.055em;
}
.brand-mnet {
  color: #FF0050;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  letter-spacing: -0.055em;
}
.brand-mbc {
  color: #00B140;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  letter-spacing: -0.035em;
}
.brand-fila {
  color: #002F87;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.04em;
}
.brand-cj {
  color: #F26522;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  letter-spacing: -0.055em;
}
.brand-kbs {
  color: #D51013;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  letter-spacing: -0.045em;
}
.brand-sbs {
  color: #2E7FD1;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  letter-spacing: -0.045em;
}
.brand-showbox {
  color: #E31E24;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  letter-spacing: -0.055em;
}
.brand-koreatimes {
  color: #D8D8D8;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  letter-spacing: 0;
}

/* marquee-eyebrow-mobile-wrap */
@media (max-width: 420px) {
  .marquee-eyebrow {
    white-space: normal !important;
    max-width: min(94vw, 360px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-marquee-track {
    animation-duration: 60s !important;
    animation-iteration-count: infinite !important;
  }
}

/* =============================================================
   Proof row
   ============================================================= */

.proof {
  padding: clamp(40px, 5.5vw, 72px) 0;
  background: transparent;
  position: relative;
  border-style: solid;
  border-color: transparent;
  border-width: 1px 0;
  border-image: var(--gold-gloss) 1 stretch;
  border-image-width: 1 0;
  text-align: center;
}
/* Note: .proof::before is intentionally NOT used for hairlines anymore so the global
   section::before pinstripe overlay can render here. Hairlines live on the borders above. */
.proof .section-inner {
  text-align: center;
}
/* Recognition head: full-width column, force-center the pill */
.proof .proof-head {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  text-align: center !important;
}
/* Bulletproof center rail for any eyebrow pill (Recognition + reusable) */
.ia-eyebrow-center {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 0 22px !important;
  padding: 0 !important;
  text-align: center !important;
}
.ia-eyebrow-center > .eyebrow,
.ia-eyebrow-center > .proof-eyebrow,
.ia-eyebrow-center > .micro-label,
.ia-eyebrow-center > .lp-section-eyebrow,
.ia-eyebrow-center > .marquee-eyebrow {
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 0 !important;
  margin-top: 0 !important;
  align-self: center !important;
  float: none !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  width: max-content !important;
  max-width: 100% !important;
}
.proof-eyebrow {
  text-align: center;
  margin-bottom: 22px;
}
/* Nuclear override for homepage Recognition label */
section.proof .ia-eyebrow-center > p.eyebrow.proof-eyebrow {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: max-content !important;
  max-width: 100% !important;
  margin: 0 !important;
  text-align: center !important;
}

.press-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 26px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.15vw, 32px);
  font-weight: 400;
  color: var(--text-1);
  letter-spacing: 0.005em;
  margin-bottom: clamp(32px, 4vw, 54px);
  padding: 0 var(--gutter);
}
.press-row > span:not(.press-sep) {
  transition: color var(--t-fast) var(--ease);
}
.press-row:hover > span:not(.press-sep) { color: var(--text-3); }
.press-row > span:not(.press-sep):hover { background: var(--gold-gloss);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent; }

.press-sep {
  background: var(--gold-gloss);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-size: 1em;
  transform: translateY(-2px);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 32px);
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}
.stat {
  padding: 36px 24px;
  position: relative;
  min-height: 0;
}

.stat-figure {
  font-family: var(--serif);
  font-size: clamp(44px, 5.6vw, 72px);
  font-weight: 500;
  line-height: 1;
  color: var(--text-0);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  /* Unified baseline: every figure (text or logo) occupies the same slot
     so "100+", "Global", and the Nexcite logo all center on the same y. */
  min-height: clamp(72px, 8.4vw, 104px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-plus {
  background: var(--gold-gloss);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-style: italic;
  font-weight: 400;
}

/* Shiny gold treatment - polished multi-stop gradient, clipped to text,
   with a slow shimmer sweep. Stays inside the site's gold family so the
   word reads as "the same gold, polished" rather than a different hue. */
.stat-figure--gold {
  background: var(--gold-gloss);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(var(--gold-rgb), 0.38))
          drop-shadow(0 0 22px rgba(var(--gold-rgb), 0.18))
          drop-shadow(0 0 2px rgba(var(--gold-warm-rgb), 0.45));
}

/* Logo variant - image sits inside the shared stat-figure slot.
   align-items: flex-end drops the image to the bottom of the slot; combined
   with a translateY nudge, the visible NEXCITE wordmark lines up with the
   cap-height of "Global" and "100+" beside it. The serif text figures center
   visually higher than their geometric center (extra bottom em-box padding),
   so the logo needs to be pushed down to match. */
.stat-figure--logo {
  padding: 0;
  align-items: flex-end;
}
.stat-figure--logo img {
  display: block;
  height: clamp(62px, 7.2vw, 92px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform: translateY(10%);
  filter:
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.10))
    drop-shadow(0 0 22px rgba(255, 255, 255, 0.05));
}

.stat-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-2);
  line-height: 1.5;
}
/* When the figure is the Nexcite logo, push 'Strategic Partner' down so it
   visually centers with the labels in the other two cards. */
.stat-figure--logo + .stat-label { margin-top: 24px; }

/* =============================================================
   Inquiry section
   ============================================================= */

.inquiry-section {
  padding: clamp(56px, 7vw, 100px) 0;
  background: transparent;
  position: relative;
}
.inquiry-section .section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(36px, 4vw, 56px);
}
.inquiry-section .section-header { max-width: 720px; }
.inquiry-section .inquiry-form {
  width: 100%;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  align-self: center;
}
.inquiry-section--page .lp-section-body--center {
  max-width: 720px;
  text-align: center;
  margin: 0 auto clamp(32px, 4vw, 48px);
}
.inquiry-signoff {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  font-weight: 500;
  color: var(--text-1);
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-align: center;
  margin: 0;
}
.inquiry-signoff--centered {
  max-width: 640px;
}
.inquiry-signoff em {
  font-style: italic;
  background: var(--gold-gloss);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.inquiry-assurances {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.inquiry-assurances--inline {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(var(--gold-rgb), 0.10);
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.inquiry-assurances--inline li {
  font-size: 13px;
  letter-spacing: 0.02em;
}
.inquiry-assurances li {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 14px;
  letter-spacing: 0.01em;
}
.inquiry-assurances .bullet {
  width: 5px; height: 5px;
  background: var(--gold-gloss);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Form */
.inquiry-form {
  padding: clamp(22px, 2.8vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.inquiry-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.inquiry-form label.full { grid-column: 1 / -1; }

.label-text {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 10px;
}
.label-text .req {
  font-family: var(--serif);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.02em;
  background: var(--gold-gloss);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-transform: none;
  font-weight: 400;
}
.label-text .opt {
  font-family: var(--serif);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--text-3);
  text-transform: none;
  font-weight: 400;
}

.inquiry-form input,
.inquiry-form textarea,
.inquiry-form select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(245, 241, 232, 0.15);
  color: var(--text-0);
  font-family: var(--sans);
  /* 16px floor prevents iOS focus-zoom on mobile inquiry fields. */
  font-size: 16px;
  font-weight: 300;
  padding: 12px 0;
  transition: border-color var(--t-fast) var(--ease);
  border-radius: 0;
  outline: none;
}
.inquiry-form textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
  padding: 14px 0;
}
.inquiry-form select {
  cursor: pointer;
  appearance: none;
  background-color: transparent;
}
.inquiry-form input:focus,
.inquiry-form textarea:focus,
.inquiry-form select:focus {
  border-bottom-color: #FDE58C;
  color: var(--text-0);
  box-shadow:
    0 2px 10px rgba(var(--gold-rgb), 0.35),
    0 4px 22px rgba(var(--gold-rgb), 0.18),
    0 1px 0 rgba(var(--gold-rgb), 0.4);
}
.inquiry-form input::placeholder,
.inquiry-form textarea::placeholder {
  color: var(--text-3);
  font-style: italic;
}
.inquiry-form label.invalid input,
.inquiry-form label.invalid textarea,
.inquiry-form label.invalid select {
  border-bottom-color: #a84c4c;
}

.form-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 6px;
}
.form-footer .form-disclaimer {
  width: 100%;
  text-align: left;
}
/* Homepage / inquiry form: Private Inquiry CTA centered in the form */
.inquiry-form #inquiry-submit,
.inquiry-form button.hero-cta-chrome.btn-primary {
  align-self: center !important;
  margin-left: auto;
  margin-right: auto;
}
.form-disclaimer {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.65;
}

.btn-primary {
  align-self: flex-start;
  background: transparent;
  background: var(--gold-gloss);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  border: 1px solid var(--gold-hot);
  border-radius: var(--radius-pill);
  padding: 14px 32px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--glow-subtle);
  text-shadow:
    0 0 6px rgba(var(--gold-rgb), 0.6),
    0 0 14px rgba(var(--gold-rgb), 0.28),
    0 0 1px rgba(var(--gold-warm-rgb), 0.85);
  transition: background var(--t-med) var(--ease), color var(--t-med) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease), text-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  background: radial-gradient(ellipse at center, rgba(var(--gold-rgb), 0.18) 0%, rgba(var(--gold-rgb), 0.07) 55%, transparent 100%);
  color: var(--gold-hot);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  box-shadow:
    0 0 20px rgba(var(--gold-rgb), 0.65),
    0 0 42px rgba(var(--gold-rgb), 0.35),
    0 0 4px rgba(var(--gold-warm-rgb), 0.75),
    inset 0 0 12px rgba(var(--gold-rgb), 0.22);
  text-shadow:
    0 0 9px rgba(var(--gold-warm-rgb), 0.95),
    0 0 24px rgba(var(--gold-rgb), 0.7),
    0 0 2px rgba(255, 231, 161, 1);
}
.btn-primary:hover .btn-arrow { transform: translateX(4px); }
.btn-arrow {
  transition: transform var(--t-med) var(--ease);
  font-size: 14px;
}
.btn-primary:disabled { opacity: 0.6; cursor: wait; }
.btn-primary.loading .btn-arrow {
  animation: spin 800ms linear infinite;
  transform-origin: center;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
  min-height: 1em;
  padding: 0;
}
.form-status.success {
  position: relative;
  background: var(--gold-gloss);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding: 18px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  box-shadow: var(--glow-subtle);
  text-shadow: 0 0 8px rgba(var(--gold-hot-rgb), 0.4);
}
.form-status.success::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gold-gloss);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.form-status.success::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(var(--gold-rgb), 0.08);
  border-radius: inherit;
  z-index: -1;
  pointer-events: none;
}
.form-status.error {
  color: #d88b8b;
  padding: 14px 0;
}
.form-status a {
  background: var(--gold-gloss);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =============================================================
   Footer  (tight stack: brand → links → legal)
   ============================================================= */

#site-footer {
  background: #000000;
  padding: 20px 0 12px;
  position: relative;
}
#site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold-gloss);
  pointer-events: none;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.footer-brand {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.footer-brand-link {
  display: inline-block;
  line-height: 0;
  position: relative;
  transition: opacity var(--t-fast) var(--ease), filter var(--t-med) var(--ease);
}
.footer-brand-link::after {
  content: none; /* gloss sweep removed -> show the logo exactly as the PNG (2026-06-11) */
  position: absolute;
  top: 0;
  left: 0;
  height: var(--ia-logo-height);
  width: 100%;
  background:
    linear-gradient(180deg,
      transparent 18%,
      rgba(255, 252, 224, 0.55) 26%,
      rgba(255, 252, 224, 0.0) 34%,
      transparent 100%) 0 0 / 100% 100% no-repeat,
    var(--gold-gloss) 0 0 / 100% 220% no-repeat;
  -webkit-mask: url('/assets/logo-gold-mask.png?v=partner1') left top / auto var(--ia-logo-height) no-repeat;
  mask: url('/assets/logo-gold-mask.png?v=partner1') left top / auto var(--ia-logo-height) no-repeat;
  pointer-events: none;
  filter:
    drop-shadow(0 0 10px rgba(var(--gold-hot-rgb), 0.5))
    drop-shadow(0 0 22px rgba(var(--gold-rgb), 0.22))
    drop-shadow(0 0 1px rgba(var(--gold-warm-rgb), 0.7));
}
.footer-brand-link:hover {
  opacity: 0.88;
  filter: drop-shadow(0 0 12px rgba(var(--gold-rgb), 0.22));
}
.footer-brand img {
  height: calc(var(--ia-logo-height) * 0.92);
  width: auto;
  /* Same reason as the nav logo - override the global img max-width:100% so
     the logo never gets horizontally compressed while height stays fixed. */
  max-width: none;
  margin-bottom: 0;
  display: block;
}
.footer-brand p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-1);
  line-height: 1.25;
  letter-spacing: 0.01em;
  margin: 0;
  word-spacing: normal;
  hyphens: manual;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  justify-content: center;
  align-items: center;
  max-width: 720px;
}
.footer-links a {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color var(--t-fast) var(--ease);
  line-height: 1.2;
  padding: 0;
}
.footer-links a:hover { background: var(--gold-gloss);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent; }

/* Address is a direct child of .footer-inner so flex gap equals tagline → links */
.footer-address {
  margin: 0;
  padding: 0;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-2);
  line-height: 1.35;
  text-align: center;
}

.footer-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  /* Hairline separates address stack from pledge + legal */
  padding-top: 10px;
  margin-top: 0;
  border-top: 1px solid rgba(var(--gold-rgb), 0.10);
}

.footer-pledge {
  display: inline-flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity var(--t-med) var(--ease), filter var(--t-med) var(--ease);
}
.footer-pledge img {
  height: 38px;
  width: auto;
  display: block;
}
.footer-pledge:hover {
  opacity: 1;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.18));
}

.footer-legal {
  margin: 0;
  padding: 0;
  font-size: 10px;
  color: var(--text-3);
  line-height: 1.35;
  text-align: center;
  max-width: 560px;
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  #site-footer {
    padding: 16px 0 10px;
  }
  .footer-inner {
    gap: 10px;
  }
  .footer-links {
    gap: 5px 12px;
    max-width: 100%;
  }
  .footer-bottom {
    padding-top: 8px;
    gap: 6px;
  }
  .footer-legal {
    font-size: 9.5px;
    max-width: 92vw;
  }
}


/* =============================================================
   Responsive
   ============================================================= */

@media (max-width: 960px) {
  .pillar {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .pillar-marker {
    position: static;
    flex-direction: row;
    align-items: baseline;
    gap: 24px;
  }
  .pillar-num { font-size: 64px; }

  .inquiry-section .section-inner {
    grid-template-columns: 1fr;
  }
  .inquiry-copy { position: static; }
}

@media (max-width: 760px) {
  .cards-3 { grid-template-columns: 1fr; }

  .intel-grid { grid-template-columns: repeat(2, 1fr); }

  .stats-row { grid-template-columns: 1fr; gap: 8px; }
  .stat { border-left: 0; padding: 28px 12px; }

  .engine-stats { grid-template-columns: 1fr; gap: 0; }
  .engine-stat { padding: 20px 8px; }
  .engine-stat + .engine-stat {
    border-left: 0 !important;
    border-top: 1px solid transparent !important;
    border-image-source: var(--gold-gloss) !important;
    border-image-slice: 1 !important;
    border-image-repeat: stretch !important;
    border-image-width: 1 0 0 0 !important;
  }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: center; text-align: center; }
}

@media (max-width: 1024px) {
  /* Center the Private Inquiry button on mobile. */
  .btn-primary { align-self: center; }
  /* Disable the site-header's backdrop-filter on mobile - it creates a
     containing block that clamps the fixed-position drawer to the header's
     height instead of the viewport. Header stays solid black which is
     what we want on mobile anyway. */
  #site-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #000000 !important;
    /* Shared by drawer pad + open-menu language toggle (lang is outside .nav-links). */
    --ia-drawer-pad-x: 26px;
    --ia-drawer-pad-top: max(56px, calc(env(safe-area-inset-top) + 46px));
    --ia-lang-h: 32px;
    /* Width of the word EXECUTION at drawer title metrics (11px / 0.28em tracking). */
    --ia-exec-w: 92px;
  }

  .nav-toggle {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1002;
    width: 44px;
    height: 44px;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none;
    -webkit-tap-highlight-color: transparent;
  }
  body.nav-open .nav-toggle {
    position: fixed;
    top: max(10px, calc(env(safe-area-inset-top) + 6px));
    right: 16px;
    z-index: 1004;
  }
  .nav-toggle span {
    width: 24px;
    margin-left: 0;
    background: var(--text-0);
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: 100vw;
    max-width: 440px;
    background: #000000;
    border-left: 1px solid rgba(var(--gold-rgb), 0.45);
    border-image: none;
    box-shadow: -18px 0 40px rgba(0, 0, 0, 0.55);
    display: block;
    gap: 0;
    /* Tight top: lang row + close only (was clamp 86-112px of empty air). */
    padding: var(--ia-drawer-pad-top) var(--ia-drawer-pad-x) max(34px, calc(28px + env(safe-area-inset-bottom)));
    transform: translateX(100%);
    /* No transition: stuck CSSTransition left drawer off-screen even when open. */
    transition: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    z-index: 1001;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-links,
  body.nav-open #site-header .nav-links {
    transform: translateX(0) !important;
  }

  .nav-item {
    width: 100%;
    display: block;
    min-height: 0;
  }
  .nav-item--mega + .nav-item--mega { margin-top: 12px; }
  .nav-links .nav-item > .nav-link,
  .nav-links > .nav-link:not(.nav-cta) {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 0;
    padding: 18px 0 11px;
    border-bottom: 1px solid rgba(var(--gold-rgb), 0.18);
    background: none !important;
    color: var(--text-1) !important;
    -webkit-text-fill-color: var(--text-1) !important;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    text-align: left;
  }
  .nav-links > .nav-link:not(.nav-cta) { margin-top: 14px; }

  .nav-item--mega > .mega-panel {
    display: block;
    width: 100%;
    margin: 0 0 6px;
  }
  .nav-item--mega .mega-inner,
  .nav-item--mega .mega-inner--narrow {
    display: block;
    width: 100%;
    padding: 0;
  }
  .mega-col { width: 100%; }
  .mega-col + .mega-col { margin-top: 18px; }
  .mega-eyebrow {
    margin: 14px 0 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(var(--gold-rgb), 0.14);
    font-size: 9px;
    line-height: 1.15;
    letter-spacing: 0.26em;
    text-align: left;
  }
  .mega-list { gap: 0; }
  .mega-list a {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
    justify-content: stretch;
    min-height: 52px;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(var(--gold-rgb), 0.1);
    background: none !important;
    color: var(--text-0) !important;
    -webkit-text-fill-color: var(--text-0) !important;
    font-size: inherit;
    letter-spacing: 0;
    line-height: 1;
    text-align: left;
    text-transform: none;
  }
  .mega-list a:hover,
  .mega-list a:focus-visible {
    padding-left: 0;
    background: none !important;
    color: var(--text-0) !important;
    -webkit-text-fill-color: var(--text-0) !important;
  }
  .mega-list a:hover .mega-name,
  .mega-list a:focus-visible .mega-name {
    background: none !important;
    color: var(--text-0) !important;
    -webkit-text-fill-color: var(--text-0) !important;
  }
  .mega-icon {
    width: 22px;
    height: 22px;
    align-self: center;
    justify-self: center;
    filter: drop-shadow(0 0 7px rgba(245, 210, 110, 0.36));
  }
  .mega-icon svg {
    width: 22px;
    height: 22px;
  }
  .mega-name {
    display: block;
    font-size: clamp(18px, 5.1vw, 22px);
    line-height: 1.08;
    letter-spacing: 0;
    overflow-wrap: normal;
    hyphens: none;
  }
  .mega-desc { display: none !important; }
  .mega-aside { display: none !important; }

  .nav-links > a,
  .nav-links .nav-link {
    white-space: normal;
  }
  /* Mobile header: logo left; lang + hamburger tools pinned right.
     No sticky INQUIRE. Drawer CTA only. Full mark (no shrink-to-fit crush). */
  .nav-inner {
    gap: 12px;
    position: relative;
  }
  .nav-logo {
    flex: 0 0 auto;
    max-width: none;
    z-index: 2;
  }
  .nav-logo img {
    height: var(--ia-logo-height);
    max-width: none;
    width: auto;
  }
  .nav-logo::after {
    height: var(--ia-logo-height);
    -webkit-mask-size: auto var(--ia-logo-height);
    mask-size: auto var(--ia-logo-height);
  }
  .nav-tools {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    z-index: 1002;
  }
  .lang-menu {
    flex: 0 0 auto;
    margin-left: 0 !important;
    margin-right: 0 !important;
    position: relative;
    z-index: 1002;
  }

  /* Language pill stays in the header while the drawer is open (2026-10-22). */

  /* Sticky bar CTA hidden on mobile (private advisory). */
  #site-header .nav-cta--bar {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
  }
  /* Drawer CTA only: full-width primary action at end of menu. */
  #site-header .nav-links .nav-cta--drawer {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    margin: 28px 0 0 !important;
    align-self: stretch !important;
    width: 100% !important;
    max-width: none !important;
    position: relative;
    text-align: center;
    padding: 16px 24px !important;
    background: transparent !important;
    color: var(--gold-hot) !important;
    -webkit-text-fill-color: var(--gold-hot) !important;
    border: 1px solid rgba(255, 247, 205, 0.7) !important;
    border-radius: var(--radius-pill);
    text-shadow:
      0 0 7px rgba(var(--gold-warm-rgb), 0.85),
      0 0 18px rgba(var(--gold-rgb), 0.34);
    box-shadow:
      0 0 20px rgba(var(--gold-rgb), 0.26),
      inset 0 0 10px rgba(var(--gold-rgb), 0.14);
    border-bottom: none !important;
    font-size: 12px !important;
    font-weight: 500;
    letter-spacing: 0.18em;
  }
  #site-header .nav-links .nav-cta--drawer:hover {
    background: transparent !important;
    color: var(--gold-hot) !important;
    -webkit-text-fill-color: var(--gold-hot) !important;
  }

  /* Scrim behind the drawer so the rest of the page dims when open */
  body.nav-open::before {
    content: '';
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(0, 0, 0, 0.62);
    z-index: 1000;
    pointer-events: none;
  }
}

@media (max-width: 640px) {
  .hero-headline { font-size: clamp(26px, 8.5vw, 48px); line-height: 1.15; }
  .hero-headline em { padding: 0 0.04em; }
  .hero-subhead { font-size: clamp(15px, 4vw, 22px); }
  .hero-body { font-size: clamp(14px, 3.6vw, 16px); }
  .section-headline { font-size: clamp(22px, 7vw, 40px); line-height: 1.18; }

  .intel-grid { grid-template-columns: 1fr; }

  .press-row { font-size: 16px; gap: 8px 14px; flex-wrap: wrap; justify-content: center; }
  .press-sep { display: none; }
}

@media (max-width: 420px) {
  :root { --gutter: 16px; }
  .hero-headline { font-size: clamp(22px, 8vw, 36px); }
  /* .hero-meta intentionally NOT overridden here - keep it identical to
     .eyebrow at all viewport widths. */
}

/* =============================================================
   Motion safety
   ============================================================= */

@media (prefers-reduced-motion: reduce) {
  /* hero video forced on - do not hide for reduced-motion */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* Hero intro animation (fadeUp) leaves the element stuck at its
     initial translateY state in some reduce-motion browsers. Force
     it to its final state so layout measures correctly. */
  .hero-inner {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =============================================================
   Reveal on scroll (progressive enhancement - optional)
   ============================================================= */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }

/* =============================================================
   IA custom cursor - IA favicon mark with layered gold glow.
   Hover-capable devices only; touch devices keep the system cursor.
   ============================================================= */

.ia-cursor {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  html, body {
    cursor: none;
  }
  /* Kill the system cursor on every interactive affordance. !important
     because some rules (e.g., button { cursor: pointer }) would otherwise win. */
  a, button, input, textarea, select, label, summary,
  [role="button"], [role="link"], .nav-cta, .nav-toggle,
  .card, .card-cta, .inquiry-submit, .filter-btn {
    cursor: none !important;
  }

  /* Small gold-metallic disc, beveled in chrome */
  .ia-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 13px;
    height: 13px;
    pointer-events: none;
    z-index: 10000;
    border-radius: 50%;
    background:
      radial-gradient(circle at 34% 28%,
        #FFF7CD 0%, #FDE58C 26%, #D4A843 54%, #C89637 100%); /* IA gold */
    box-shadow:
      0 0 0 1.5px #9aa7b8,                        /* single IA chrome rim (white layer removed) */
      inset 0 1px 1.5px rgba(255, 255, 255, 0.55), /* top gold glint */
      inset 0 -1.5px 2px rgba(120, 80, 18, 0.5),   /* bottom gold shade */
      0 1px 3px rgba(0, 0, 0, 0.45);               /* lift */
    transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
    transition:
      width 240ms var(--ease),
      height 240ms var(--ease),
      box-shadow 240ms var(--ease),
      opacity 220ms var(--ease);
    will-change: transform, width, height, box-shadow;
    display: block;
  }

  /* Soft companion halo - sits behind the mark, drifts slightly slower.
     Near-invisible at rest; blooms gold on hover (see .is-hovering below). */
  .ia-cursor-halo {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    background: radial-gradient(
      ellipse at center,
      rgba(var(--gold-rgb), 0.06) 0%,
      rgba(var(--gold-rgb), 0.025) 40%,
      rgba(var(--gold-rgb), 0.008) 70%,
      transparent 100%
    );
    transform: translate3d(-200px, -200px, 0) translate(-50%, -50%);
    transition:
      width 380ms var(--ease),
      height 380ms var(--ease),
      opacity 280ms var(--ease);
    will-change: transform, width, height;
    display: block;
    mix-blend-mode: screen;
  }

  /* Breathing shimmer on the mark itself - very gentle */
  @keyframes ia-cursor-shimmer {
    0%, 100% {
      filter:
        drop-shadow(0 0 2px rgba(var(--gold-warm-rgb), 0.30))
        drop-shadow(0 0 6px rgba(var(--gold-rgb), 0.20))
        drop-shadow(0 0 14px rgba(var(--gold-rgb), 0.08));
    }
    50% {
      filter:
        drop-shadow(0 0 3px rgba(255, 235, 168, 0.42))
        drop-shadow(0 0 9px rgba(var(--gold-warm-rgb), 0.28))
        drop-shadow(0 0 20px rgba(var(--gold-rgb), 0.12));
    }
  }

  /* Hover on interactive element - disc grows, gold brightens, chrome ring lights up */
  .ia-cursor.is-hovering {
    width: 21px;
    height: 21px;
    background:
      radial-gradient(circle at 34% 28%,
        #FFFBE0 0%, #FDE58C 26%, #F2CB5C 54%, #D4A843 100%); /* IA gold, brighter */
    box-shadow:
      0 0 0 2px #c4ccd8,                          /* brighter IA chrome rim on hover */
      inset 0 1px 2px rgba(255, 255, 255, 0.65),
      inset 0 -1.5px 2px rgba(120, 80, 18, 0.5),
      0 0 8px rgba(244, 213, 114, 0.75),
      0 0 18px rgba(212, 168, 67, 0.45);
  }
  .ia-cursor-halo.is-hovering {
    width: 60px;
    height: 60px;
    background: radial-gradient(
      ellipse at center,
      rgba(var(--gold-warm-rgb), 0.15) 0%,
      rgba(var(--gold-rgb), 0.06) 45%,
      rgba(var(--gold-rgb), 0.01) 75%,
      transparent 100%
    );
  }

  /* Click - quick pinch inward */
  .ia-cursor.is-active {
    width: 11px;
    height: 11px;
    transition: width 120ms ease-out, height 120ms ease-out, box-shadow 120ms ease-out;
  }
  .ia-cursor-halo.is-active {
    width: 34px;
    height: 34px;
    transition: width 120ms ease-out, height 120ms ease-out;
  }

  /* Inside text fields the cursor vanishes so the I-beam isn't fought for */
  input:focus ~ .ia-cursor,
  textarea:focus ~ .ia-cursor {
    opacity: 0;
  }

  html, body {
    cursor: auto;
  }
  a, button, label, summary,
  [role="button"], [role="link"], .nav-cta, .nav-toggle,
  .card, .card-cta, .inquiry-submit, .filter-btn {
    cursor: pointer !important;
  }
  input, textarea, select {
    cursor: auto !important;
  }
  .ia-cursor,
  .ia-cursor-halo {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ia-cursor { animation: none; }
}

/* =============================================================
   BESPOKE CARD - same documentary-credential aesthetic as the
   Joby site's .record-cell ("A life, in facts" + "Titles Held").
   8 thin gold L-brackets at corners, diagonal shimmer overlay
   on hover, lift + tilt + brighter brackets.
   Applied to .card and .intel-grid li.
   ============================================================= */

/* Obsolete duplicate rules removed - the unified .card/.engine-stat/.intel-grid li/.stat/.pillar rule below handles all bracket-corner + gradient-border treatment in one place. */

/* Older .card, .intel-grid li::before rule removed - its !important on
   background was pinning background-position to -100% 0 and blocking the
   hover sheen slide. The unified .card / .engine-stat / .intel-grid li /
   .stat / .pillar::before rule below handles this cleanly. */

/* Older .card, .intel-grid li:hover rule removed - superseded by the unified
   .card / .engine-stat / .intel-grid li / .stat / .pillar:hover rule below
   so the glass treatment can land cleanly on every card-class element. */

/* Legacy gold-gloss card chrome removed - all card surfaces use jw-glass (see mk-tile-grid--jw-glass block). */

/* =============================================================
   GOLD-GLOSS EM TREATMENT - every <em> inside section headlines
   (and the hero) gets the rich gold-gloss text fill that the Joby
   site uses on emphasis. Reads as polished metal type instead of
   flat gold.
   ============================================================= */
.section-headline em,
.hero-headline em {
  background: var(--gold-gloss);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-style: italic;
  filter: drop-shadow(0 0 22px rgba(var(--gold-hot-rgb), 0.4));
}

/* =============================================================
   AMBIENT BACKGROUND - desktop only
   Static gold radial gradients pinned to the body background.
   No animation, no mix-blend-mode, no infinite-loop filters.
   Mobile gets none of this (iOS WebKit can crash on heavy GPU
   effects under memory pressure).
   ============================================================= */
@media (min-width: 821px) {
  body {
    background:
      radial-gradient(ellipse 80% 60% at 15% 15%, rgba(var(--gold-rgb), 0.05), transparent 55%),
      radial-gradient(ellipse 70% 60% at 85% 85%, rgba(var(--gold-soft-rgb), 0.045), transparent 55%),
      var(--bg-0) !important;
    background-attachment: fixed;
  }
}


/* =============================================================
   MOBILE iOS WEBKIT CRASH GUARD
   Same defense as the Joby site. Kill the heavy GPU effects on
   mobile that can OOM-crash iOS Safari/Chrome.
   ============================================================= */
@media (max-width: 820px) {
  /* Film grain mix-blend overlay - kill on mobile */
  body::before { display: none !important; }

  /* All backdrop-filter usage - flatten on mobile */
  #site-header,
  .nav-links,
  .nav-cta {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* =============================================================
   GOLD-GLOSS GRADIENT BORDER on pill buttons.
   Uses mask-composite to clip a gradient background to the border
   ring only - respects border-radius (pill / capsule shapes).
   ============================================================= */
.nav-cta:not(.hero-cta-chrome),
.btn-primary:not(.hero-cta-chrome) {
  position: relative;
  border: 1px solid transparent !important;
}
.nav-cta:not(.hero-cta-chrome)::before,
.btn-primary:not(.hero-cta-chrome)::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gold-gloss);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

/* =============================================================
   NIRVANI-TILE - verbatim port of nirvani.ai .tile-grid--jw-glass
   Class prefix mk-tile-* to avoid collisions. Palette tokens bound
   to IA gold spectrum. Source: ~/.claude/skills/nirvani-tile/.
   ============================================================= */

.mk-tile-grid {
  --tile-radius: 0;
  --tile-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --tile-accent: var(--gold);
  --tile-cream:  var(--gold-hot);
  --tile-warm:   var(--gold-rgb);
}

.mk-tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 8px;
  align-items: start;
  perspective: 1200px;
}
@media (max-width: 1024px) { .mk-tile-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .mk-tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .mk-tile-grid { grid-template-columns: repeat(2, 1fr); } }

.mk-tile-grid--equal { align-items: stretch; }
.mk-tile-grid--equal .mk-tile { align-self: stretch; min-height: 130px; }
.mk-tile-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.mk-tile-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.mk-tile-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) {
  .mk-tile-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
  .mk-tile-grid--cols-3 { grid-template-columns: repeat(2, 1fr); }
  .mk-tile-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .mk-tile-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
  .mk-tile-grid--cols-3 { grid-template-columns: repeat(2, 1fr); }
  .mk-tile-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
}

.mk-tile {
  --mx: 50%;
  --my: 50%;
  position: relative;
  background: rgba(10, 10, 10, 0.4);
  border: 1px solid rgba(var(--tile-warm), 0.45);
  border-radius: var(--tile-radius);
  padding: 24px 22px;
  cursor: pointer;
  transition: all 0.4s var(--tile-ease);
  overflow: hidden;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow:
    0 0 10px rgba(var(--tile-warm), 0.12),
    0 0 25px rgba(var(--tile-warm), 0.06);
  align-self: start;
  transform-style: preserve-3d;
  will-change: transform;
  background-image: radial-gradient(
    600px circle at var(--mx) var(--my),
    rgba(255, 255, 255, 0.07),
    transparent 40%
  );
}
.mk-tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  opacity: 0.5;
  transition: opacity 0.4s ease;
  background: linear-gradient(90deg, transparent, var(--tile-accent), #FFFFFF, var(--tile-accent), transparent);
}
.mk-tile::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0.15;
  transition: opacity 0.4s ease;
  pointer-events: none;
  background: radial-gradient(ellipse at top center, rgba(255,255,255,0.06), transparent 70%);
}
.mk-tile:hover, .mk-tile.active {
  border-color: rgba(var(--tile-warm), 0.70);
  transform: translateY(-4px);
  box-shadow:
    0 0 14px rgba(var(--tile-warm), 0.18),
    0 0 30px rgba(var(--tile-warm), 0.08),
    inset 0 0 20px rgba(var(--tile-warm), 0.05);
  background: rgba(255, 255, 255, 0.05);
}
.mk-tile:hover::before, .mk-tile.active::before { opacity: 1; }
.mk-tile:hover::after,  .mk-tile.active::after  { opacity: 1; }

.mk-tile-icon {
  width: auto;
  height: auto;
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  background: none;
  border: 0;
  border-radius: 0;
  color: var(--tile-accent);
  box-shadow: none;
  transition: filter 0.4s ease, transform 0.4s ease;
}
.mk-tile:hover .mk-tile-icon, .mk-tile.active .mk-tile-icon {
  background: none;
  border-color: transparent;
  box-shadow: none;
}
.mk-tile-icon svg {
  width: 50px;
  height: 50px;
  stroke: url(#goldShineStroke);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  shape-rendering: geometricPrecision;
  filter: drop-shadow(0 0 6px rgba(245, 210, 110, 0.34));
  transition: filter 0.4s ease, transform 0.4s ease;
}
.mk-tile:hover .mk-tile-icon svg,
.mk-tile.active .mk-tile-icon svg {
  filter: drop-shadow(0 0 10px rgba(245, 210, 110, 0.52));
  transform: scale(1.04);
}
/* When the inner SVG uses an explicit fill (e.g. goldShine gradient on the
   intel icons), let that fill render instead of the stroke default. */
.mk-tile-icon svg [stroke]:not([stroke="none"]) { stroke: url(#goldShineStroke); }
.mk-tile-icon svg [fill]:not([fill="none"]) {
  fill: url(#goldShine);
  stroke: none;
}
.mk-tile-icon--roman {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0;
  font-style: italic;
  line-height: 1;
  letter-spacing: 0;
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--tile-accent);
  filter: none;
  text-shadow: none;
}
.mk-tile-icon--roman::before {
  display: inline-block;
  font-size: 38px;
  line-height: 1;
  background: var(--ia-gold-24k);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--tile-accent);
  filter: drop-shadow(0 0 6px rgba(var(--tile-warm), 0.35));
}
#framework .mk-tile:nth-child(1) .mk-tile-icon--roman::before { content: "I"; }
#framework .mk-tile:nth-child(2) .mk-tile-icon--roman::before { content: "II"; }
#framework .mk-tile:nth-child(3) .mk-tile-icon--roman::before { content: "III"; }
.mk-tile:hover .mk-tile-icon--roman,
.mk-tile.active .mk-tile-icon--roman {
  filter: none;
  transform: none;
}
.mk-tile:hover .mk-tile-icon--roman::before,
.mk-tile.active .mk-tile-icon--roman::before {
  filter: drop-shadow(0 0 10px rgba(var(--tile-warm), 0.5));
  transform: scale(1.04);
}

.mk-tile-name {
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  line-height: 1.3;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
  color: rgba(255, 255, 255, 0.92);
}
.mk-tile:hover .mk-tile-name, .mk-tile.active .mk-tile-name { color: #fff; }

.mk-tile-desc {
  position: relative;
  z-index: 1;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.4s ease,
              margin-top 0.4s ease;
  opacity: 0;
  margin-top: 0;
}
.mk-tile.active .mk-tile-desc {
  max-height: 400px;
  opacity: 1;
  margin-top: 12px;
}
.mk-tile-desc p {
  font-family: inherit;
  font-weight: 300;
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
}
.mk-tile-desc a {
  color: var(--tile-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--tile-warm), 0.45);
  padding-bottom: 1px;
}
.mk-tile-desc a:hover { color: #fff; border-color: #fff; }

.mk-tile-expand {
  position: absolute;
  bottom: 10px;
  right: 12px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: all 0.3s ease;
  z-index: 1;
}
.mk-tile.active .mk-tile-expand { transform: rotate(180deg); }
.mk-tile-expand svg {
  width: 14px;
  height: 14px;
  stroke: var(--tile-accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter:
    drop-shadow(0 0 4px rgba(255, 255, 255, 0.6))
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

/* ----- JW-glass variant - chrome L-brackets, opaque body, diagonal sweep, 3D tilt -----
   Site-wide on every card-class surface (lp-card, stat, callout, inquiry form, etc.) ----- */
.lp-card,
.card,
.engine-stat,
.intel-grid li,
.stat,
.pillar,
.lp-callout,
.inquiry-form {
  --tile-radius: 0;
  --tile-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --tile-accent: var(--gold);
  --tile-cream: var(--gold-hot);
  --tile-warm: var(--gold-rgb);
  --mx: 50%;
  --my: 50%;
}
.mk-tile-grid--jw-glass { align-items: start; }
.mk-tile-grid--jw-glass .mk-tile,
.lp-card,
.card,
.engine-stat,
.intel-grid li,
.stat,
.pillar,
.lp-callout,
.inquiry-form {
  align-self: start;
  min-height: 210px;
  justify-content: center;
  padding: 30px 22px 28px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--tile-radius);
  overflow: hidden;
  background:
    linear-gradient(rgba(var(--tile-warm), 0.55), rgba(var(--tile-warm), 0.55)) top    12px left  12px / 22px 1px no-repeat,
    linear-gradient(rgba(var(--tile-warm), 0.55), rgba(var(--tile-warm), 0.55)) top    12px left  12px / 1px 22px no-repeat,
    linear-gradient(rgba(var(--tile-warm), 0.55), rgba(var(--tile-warm), 0.55)) top    12px right 12px / 22px 1px no-repeat,
    linear-gradient(rgba(var(--tile-warm), 0.55), rgba(var(--tile-warm), 0.55)) top    12px right 12px / 1px 22px no-repeat,
    linear-gradient(rgba(var(--tile-warm), 0.55), rgba(var(--tile-warm), 0.55)) bottom 12px left  12px / 22px 1px no-repeat,
    linear-gradient(rgba(var(--tile-warm), 0.55), rgba(var(--tile-warm), 0.55)) bottom 12px left  12px / 1px 22px no-repeat,
    linear-gradient(rgba(var(--tile-warm), 0.55), rgba(var(--tile-warm), 0.55)) bottom 12px right 12px / 22px 1px no-repeat,
    linear-gradient(rgba(var(--tile-warm), 0.55), rgba(var(--tile-warm), 0.55)) bottom 12px right 12px / 1px 22px no-repeat,
    radial-gradient(600px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.07), transparent 40%),
    linear-gradient(180deg, rgba(22, 22, 22, 0.96), rgba(10, 10, 10, 0.96));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 8px 30px rgba(0, 0, 0, 0.6);
  transition:
    transform 460ms var(--tile-ease),
    background 460ms var(--tile-ease),
    border-color 460ms var(--tile-ease),
    box-shadow 460ms var(--tile-ease);
  transform-origin: center center;
  transform-style: preserve-3d;
  will-change: transform;
}
.mk-tile-grid--jw-glass .mk-tile::before,
.lp-card::before,
.card::before,
.engine-stat::before,
.intel-grid li::before,
.stat::before,
.pillar::before,
.lp-callout::before,
.inquiry-form::before {
  content: "";
  position: absolute;
  inset: 0;
  height: auto; width: auto;
  background: linear-gradient(115deg,
    transparent 32%,
    rgba(240, 232, 206, 0.18) 50%,
    transparent 68%);
  background-size: 220% 100%;
  background-position: -100% 0;
  opacity: 1;
  transition: background-position 1100ms var(--tile-ease);
  pointer-events: none;
  z-index: 0;
}
.mk-tile-grid--jw-glass .mk-tile::after,
.lp-card:not(.lp-card--region)::after,
.card::after,
.engine-stat::after,
.intel-grid li::after,
.stat::after,
.pillar::after,
.lp-callout::after,
.inquiry-form::after { display: none; }
.mk-tile-grid--jw-glass .mk-tile > *,
.lp-card > *,
.card > *,
.engine-stat > *,
.intel-grid li > *,
.stat > *,
.pillar > *,
.lp-callout > * { position: relative; z-index: 1; }
.mk-tile-grid--jw-glass .mk-tile:hover,
.mk-tile-grid--jw-glass .mk-tile.active,
.lp-card:hover,
.card:hover,
.engine-stat:hover,
.intel-grid li:hover,
.stat:hover,
.pillar:hover,
.lp-callout:hover {
  transform: perspective(1000px) translateY(-6px) rotateX(2.5deg);
  border-color: rgba(var(--tile-warm), 0.65);
  background:
    linear-gradient(var(--tile-cream), var(--tile-cream)) top    12px left  12px / 32px 1px no-repeat,
    linear-gradient(var(--tile-cream), var(--tile-cream)) top    12px left  12px / 1px 32px no-repeat,
    linear-gradient(var(--tile-cream), var(--tile-cream)) top    12px right 12px / 32px 1px no-repeat,
    linear-gradient(var(--tile-cream), var(--tile-cream)) top    12px right 12px / 1px 32px no-repeat,
    linear-gradient(var(--tile-cream), var(--tile-cream)) bottom 12px left  12px / 32px 1px no-repeat,
    linear-gradient(var(--tile-cream), var(--tile-cream)) bottom 12px left  12px / 1px 32px no-repeat,
    linear-gradient(var(--tile-cream), var(--tile-cream)) bottom 12px right 12px / 32px 1px no-repeat,
    linear-gradient(var(--tile-cream), var(--tile-cream)) bottom 12px right 12px / 1px 32px no-repeat,
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(var(--tile-warm), 0.10), transparent 70%),
    radial-gradient(600px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.07), transparent 40%),
    linear-gradient(180deg, rgba(28, 28, 28, 0.98), rgba(14, 14, 14, 0.98));
  box-shadow:
    0 0 0 1px rgba(var(--tile-warm), 0.35),
    0 0 20px rgba(var(--tile-warm), 0.20),
    0 0 50px rgba(var(--tile-warm), 0.12),
    0 16px 50px rgba(0, 0, 0, 0.6);
}
/* Inquiry form: glass chrome + sweep, never 3D tilt (inputs must stay flat). */
.inquiry-form {
  transform: none !important;
  transform-style: flat;
  will-change: auto;
}
.inquiry-form:hover,
.inquiry-form:focus-within {
  transform: none !important;
  border-color: rgba(var(--tile-warm), 0.65);
  background:
    linear-gradient(var(--tile-cream), var(--tile-cream)) top    12px left  12px / 32px 1px no-repeat,
    linear-gradient(var(--tile-cream), var(--tile-cream)) top    12px left  12px / 1px 32px no-repeat,
    linear-gradient(var(--tile-cream), var(--tile-cream)) top    12px right 12px / 32px 1px no-repeat,
    linear-gradient(var(--tile-cream), var(--tile-cream)) top    12px right 12px / 1px 32px no-repeat,
    linear-gradient(var(--tile-cream), var(--tile-cream)) bottom 12px left  12px / 32px 1px no-repeat,
    linear-gradient(var(--tile-cream), var(--tile-cream)) bottom 12px left  12px / 1px 32px no-repeat,
    linear-gradient(var(--tile-cream), var(--tile-cream)) bottom 12px right 12px / 32px 1px no-repeat,
    linear-gradient(var(--tile-cream), var(--tile-cream)) bottom 12px right 12px / 1px 32px no-repeat,
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(var(--tile-warm), 0.10), transparent 70%),
    radial-gradient(600px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.07), transparent 40%),
    linear-gradient(180deg, rgba(28, 28, 28, 0.98), rgba(14, 14, 14, 0.98));
  box-shadow:
    0 0 0 1px rgba(var(--tile-warm), 0.35),
    0 0 20px rgba(var(--tile-warm), 0.20),
    0 0 50px rgba(var(--tile-warm), 0.12),
    0 16px 50px rgba(0, 0, 0, 0.6);
}
.mk-tile-grid--jw-glass .mk-tile:hover::before,
.mk-tile-grid--jw-glass .mk-tile.active::before,
.lp-card:hover::before,
.card:hover::before,
.engine-stat:hover::before,
.intel-grid li:hover::before,
.stat:hover::before,
.pillar:hover::before,
.lp-callout:hover::before,
.inquiry-form:hover::before,
.inquiry-form:focus-within::before {
  background-position: 200% 0;
}
@media (prefers-reduced-motion: reduce) {
  .mk-tile-grid--jw-glass .mk-tile:hover,
  .mk-tile-grid--jw-glass .mk-tile.active,
  .lp-card:hover,
  .card:hover,
  .engine-stat:hover,
  .intel-grid li:hover,
  .stat:hover,
  .pillar:hover,
  .lp-callout:hover { transform: translateY(-2px); }
  .inquiry-form:hover,
  .inquiry-form:focus-within { transform: none !important; }
}
.mk-tile-grid--jw-glass .mk-tile .mk-tile-expand {
  bottom: 6px;
  right: 50%;
  transform: translateX(50%);
  width: 22px;
  height: 22px;
}
.mk-tile-grid--jw-glass .mk-tile.active .mk-tile-expand {
  transform: translateX(50%) rotate(180deg);
}

/* tattoo-tile: Related reading equal-height (Block A - tattoo.nirvani.ai recipe) */
#related-reading .mk-tile-grid,
.lp-related .mk-tile-grid {
  align-items: start;
  margin-top: clamp(32px, 4vw, 48px);
  margin-bottom: 0;
}
#related-reading .mk-tile-grid > .mk-tile,
.lp-related .mk-tile-grid > .mk-tile {
  align-self: start;
  height: auto;
  min-height: 210px;
  justify-content: flex-start;
  padding: 30px 18px 38px;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
}
#related-reading .mk-tile-name,
.lp-related .mk-tile-name {
  flex: 1 0 auto;
  min-height: 3.9em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
}
#related-reading .mk-tile-eyebrow,
.lp-related .mk-tile-eyebrow {
  flex-shrink: 0;
  margin-bottom: 10px;
  margin-bottom: 12px;
}
#related-reading .mk-tile-desc--open,
.lp-related .mk-tile-desc--open {
  max-height: none;
  opacity: 1;
  margin-top: 10px;
  overflow: visible;
}
#related-reading .mk-tile-desc--open span,
.lp-related .mk-tile-desc--open span {
  display: block;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
}
@media (max-width: 1024px) {
  #related-reading .mk-tile-grid > .mk-tile,
  .lp-related .mk-tile-grid > .mk-tile { min-height: 218px; }
  #related-reading .mk-tile-name,
  .lp-related .mk-tile-name { min-height: 4.2em; }
}
@media (max-width: 768px) {
  #related-reading .mk-tile-grid > .mk-tile,
  .lp-related .mk-tile-grid > .mk-tile { min-height: 228px; }
  #related-reading .mk-tile-name,
  .lp-related .mk-tile-name { min-height: 5.2em; }
}
@media (max-width: 480px) {
  #related-reading .mk-tile-grid,
  .lp-related .mk-tile-grid { gap: 12px; }
  #related-reading .mk-tile-grid > .mk-tile,
  .lp-related .mk-tile-grid > .mk-tile {
    min-height: 236px;
    padding: 26px 12px 34px;
  }
  #related-reading .mk-tile-name,
  .lp-related .mk-tile-name { font-size: 13.5px; min-height: 5.2em; }
}

/* ----- "stacked" modifier - full-width rows, each card a horizontal
         row (icon on the left, title + body on the right). Keeps brackets,
         sheen, hover. Use for sequenced narratives like the pillars. ----- */
.mk-tile-grid--stacked {
  grid-template-columns: 1fr !important;
  gap: 18px;
}
.mk-tile-grid--stacked .mk-tile {
  display: grid !important;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 32px;
  row-gap: 6px;
  text-align: left;
  min-height: 0 !important;
  padding: 34px 42px !important;
  justify-items: start;
  align-items: start;
}
.mk-tile-grid--stacked .mk-tile-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  margin: 0;
  width: 68px;
  min-width: 68px;
  height: auto;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.mk-tile-grid--stacked .mk-tile-icon--roman { font-size: 0; }
.mk-tile-grid--stacked .mk-tile-name {
  grid-column: 2;
  grid-row: 1;
  text-align: left;
  font-size: 19px;
}
.mk-tile-grid--stacked .mk-tile-desc {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  text-align: left;
}
.mk-tile-grid--stacked .mk-tile-desc p { text-align: left; font-size: 14.5px; }
@media (max-width: 640px) {
  .mk-tile-grid--stacked .mk-tile { padding: 28px 22px !important; column-gap: 18px; }
  .mk-tile-grid--stacked .mk-tile-icon { width: 48px; height: 48px; }
}

/* ----- "open" modifier - brackets permanently bright, descriptions
         always visible, no accordion. Hover still lifts and sheens. ----- */
.mk-tile-grid--open .mk-tile { cursor: default; }
.mk-tile-grid--open .mk-tile-expand { display: none; }
.mk-tile-grid--open .mk-tile-desc {
  max-height: none;
  opacity: 1;
  margin-top: 12px;
}
.mk-tile-grid--open.mk-tile-grid--jw-glass .mk-tile {
  min-height: 260px;
  align-self: stretch;
  justify-content: flex-start;
}
/* Audience grid only - enforce cross-row uniform height. */
#practice .mk-tile-grid--open.mk-tile-grid--jw-glass .mk-tile {
  min-height: 320px;
}

/* Audience + Intel + Depth + Continue cards - ia-gold-icon verified seals */
#practice .mk-tile-icon,
#intelligence .mk-tile-icon,
#related-reading .mk-tile-icon,
.lp-related .mk-tile-icon {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0;
  width: auto;
  height: auto;
  margin-bottom: 14px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
#practice .mk-tile-icon svg,
#intelligence .mk-tile-icon svg,
#related-reading .mk-tile-icon svg,
.lp-related .mk-tile-icon svg {
  width: 50px !important;
  height: 50px !important;
  shape-rendering: geometricPrecision;
  filter: drop-shadow(0 0 6px rgba(245, 210, 110, 0.34));
  transition: filter 0.4s ease, transform 0.4s ease;
}
#practice .mk-tile:hover .mk-tile-icon,
#practice .mk-tile.active .mk-tile-icon,
#intelligence .mk-tile:hover .mk-tile-icon,
#intelligence .mk-tile.active .mk-tile-icon,
#related-reading a.mk-tile:hover .mk-tile-icon,
#related-reading a.mk-tile:focus-visible .mk-tile-icon,
.lp-related a.mk-tile:hover .mk-tile-icon,
.lp-related a.mk-tile:focus-visible .mk-tile-icon {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}
#practice .mk-tile:hover .mk-tile-icon svg,
#practice .mk-tile.active .mk-tile-icon svg,
#intelligence .mk-tile:hover .mk-tile-icon svg,
#intelligence .mk-tile.active .mk-tile-icon svg,
#related-reading a.mk-tile:hover .mk-tile-icon svg,
#related-reading a.mk-tile:focus-visible .mk-tile-icon svg,
.lp-related a.mk-tile:hover .mk-tile-icon svg,
.lp-related a.mk-tile:focus-visible .mk-tile-icon svg {
  filter: drop-shadow(0 0 10px rgba(245, 210, 110, 0.52));
  transform: scale(1.04);
}

.mk-tile-grid--open.mk-tile-grid--jw-glass .mk-tile {
  background:
    linear-gradient(var(--tile-cream), var(--tile-cream)) top    12px left  12px / 32px 1px no-repeat,
    linear-gradient(var(--tile-cream), var(--tile-cream)) top    12px left  12px / 1px 32px no-repeat,
    linear-gradient(var(--tile-cream), var(--tile-cream)) top    12px right 12px / 32px 1px no-repeat,
    linear-gradient(var(--tile-cream), var(--tile-cream)) top    12px right 12px / 1px 32px no-repeat,
    linear-gradient(var(--tile-cream), var(--tile-cream)) bottom 12px left  12px / 32px 1px no-repeat,
    linear-gradient(var(--tile-cream), var(--tile-cream)) bottom 12px left  12px / 1px 32px no-repeat,
    linear-gradient(var(--tile-cream), var(--tile-cream)) bottom 12px right 12px / 32px 1px no-repeat,
    linear-gradient(var(--tile-cream), var(--tile-cream)) bottom 12px right 12px / 1px 32px no-repeat,
    linear-gradient(180deg, rgba(22, 22, 22, 0.96), rgba(10, 10, 10, 0.96));
  border-color: rgba(var(--tile-warm), 0.45);
}
.mk-tile-grid--open.mk-tile-grid--jw-glass .mk-tile:hover {
  background:
    linear-gradient(var(--tile-cream), var(--tile-cream)) top    12px left  12px / 32px 1px no-repeat,
    linear-gradient(var(--tile-cream), var(--tile-cream)) top    12px left  12px / 1px 32px no-repeat,
    linear-gradient(var(--tile-cream), var(--tile-cream)) top    12px right 12px / 32px 1px no-repeat,
    linear-gradient(var(--tile-cream), var(--tile-cream)) top    12px right 12px / 1px 32px no-repeat,
    linear-gradient(var(--tile-cream), var(--tile-cream)) bottom 12px left  12px / 32px 1px no-repeat,
    linear-gradient(var(--tile-cream), var(--tile-cream)) bottom 12px left  12px / 1px 32px no-repeat,
    linear-gradient(var(--tile-cream), var(--tile-cream)) bottom 12px right 12px / 32px 1px no-repeat,
    linear-gradient(var(--tile-cream), var(--tile-cream)) bottom 12px right 12px / 1px 32px no-repeat,
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(var(--tile-warm), 0.10), transparent 70%),
    radial-gradient(600px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.07), transparent 40%),
    linear-gradient(180deg, rgba(28, 28, 28, 0.98), rgba(14, 14, 14, 0.98));
  border-color: rgba(var(--tile-warm), 0.65);
}


/* =============================================================
   Landing pages (Wave 1) - shared section patterns for the
   20-page audience / capability / intelligence / firm estate.
   Built on the existing .section / .section-inner primitives.
   ============================================================= */
.lp-hero {
  position: relative;
  padding-top: calc(94px + clamp(56px, 7vw, 100px));
  padding-right: var(--gutter);
  padding-bottom: clamp(48px, 6vw, 88px);
  padding-left: var(--gutter);
  isolation: isolate;
  overflow-x: clip;
}
.lp-hero-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.lp-hero .eyebrow {
  margin-bottom: 22px;
}
.lp-hero h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.05;
  color: var(--text-0);
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}
.lp-hero h1 em {
  font-style: italic;
  background: var(--gold-gloss);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.lp-hero .lp-subhead {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 24px);
  font-style: italic;
  font-weight: 400;
  color: var(--text-1);
  margin-top: 22px;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.45;
}
.lp-hero .lp-body {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.75;
  margin-top: 24px;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}
.lp-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 36px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-2);
}
.lp-meta .dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 999px;
}

.lp-section {
  padding: clamp(64px, 8vw, 120px) var(--gutter);
}
.lp-section--dark { background: var(--bg-1); }
.lp-section-inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}
.lp-section-eyebrow {
  margin-bottom: 18px;
}
.lp-section-headline {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--text-0);
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
}
.lp-section-headline em {
  font-style: italic;
  background: var(--gold-gloss);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.lp-section-body {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.75;
  margin-top: 18px;
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}

.lp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
  margin-top: 48px;
}
/* Six cards: 3 over 3 on desktop, never 4 + 2 */
@media (min-width: 900px) {
  .lp-grid:has(> .lp-card:nth-child(6):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.lp-card {
  text-align: center;
  min-height: 0;
  justify-content: flex-start;
  align-self: stretch;
}
.lp-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--gold-hot);
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.lp-card-icon svg {
  display: block;
  width: 46px;
  height: 46px;
  overflow: visible;
  fill: none;
  stroke: url(#goldShineStroke);
  stroke-width: 1.75;
  filter: drop-shadow(0 0 6px rgba(245, 210, 110, 0.34));
  shape-rendering: geometricPrecision;
  transform-origin: 50% 50%;
  transition: transform var(--t-med) var(--ease), filter var(--t-med) var(--ease);
}
.lp-card-icon svg [stroke]:not([stroke="none"]) {
  stroke: url(#goldShineStroke);
}
.lp-card-icon svg [fill]:not([fill="none"]) {
  fill: url(#goldShine);
  stroke: none;
}
.lp-card:hover .lp-card-icon svg {
  filter: drop-shadow(0 0 10px rgba(245, 210, 110, 0.52));
  transform: scale(1.04);
}
.lp-card-icon--phosphor {
  width: 48px;
  height: 48px;
}
.lp-card-icon--phosphor .mk-tile-icon {
  margin: 0;
  min-width: 0;
  width: 100%;
  height: 100%;
}
.lp-card-icon--phosphor .mk-tile-icon svg {
  width: 46px;
  height: 46px;
}
.lp-card:hover .lp-card-icon--phosphor .mk-tile-icon svg {
  filter: drop-shadow(0 0 10px rgba(245, 210, 110, 0.52));
  transform: scale(1.04);
}
.lp-grid--regions .lp-card--region::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 1;
  transition: opacity var(--t-med) var(--ease);
}
.lp-grid--regions .lp-card--region-na::after {
  background:
    radial-gradient(ellipse 90% 70% at 12% 0%, rgba(var(--gold-rgb), 0.09), transparent 62%),
    radial-gradient(ellipse 60% 50% at 88% 100%, rgba(180, 198, 220, 0.05), transparent 58%);
}
.lp-grid--regions .lp-card--region-apac::after {
  background:
    radial-gradient(ellipse 85% 65% at 88% 8%, rgba(var(--gold-hot-rgb), 0.08), transparent 60%),
    radial-gradient(ellipse 55% 45% at 10% 92%, rgba(var(--gold-rgb), 0.06), transparent 55%);
}
.lp-grid--regions .lp-card--region-eu::after {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(210, 210, 210, 0.07), transparent 58%),
    radial-gradient(ellipse 70% 55% at 0% 100%, rgba(var(--gold-rgb), 0.05), transparent 52%);
}
.lp-grid--regions .lp-card--region-me::after {
  background:
    radial-gradient(ellipse 75% 58% at 78% 12%, rgba(var(--gold-hot-rgb), 0.1), transparent 56%),
    radial-gradient(ellipse 65% 50% at 18% 88%, rgba(var(--gold-rgb), 0.055), transparent 54%);
}
.lp-grid--regions .lp-card--region:hover::after {
  filter: brightness(1.12);
}
.lp-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text-0);
  margin-bottom: 10px;
  line-height: 1.25;
}
.lp-card p {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-2);
}

.lp-callout {
  margin: 36px auto;
  min-height: 0;
  padding: 22px 26px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 400;
  color: var(--text-1);
  line-height: 1.55;
  max-width: 62ch;
  text-align: center;
}

.lp-related {
  padding: clamp(64px, 8vw, 120px) var(--gutter);
  border-top: 1px solid transparent;
  border-image: var(--gold-gloss) 1 stretch;
  border-image-width: 1 0 0 0;
  background: transparent;
  position: relative;
}
.lp-related-inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}
.lp-related .lp-section-headline {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* tattoo-tile Block B - wins over mk-tile-grid--equal stretch + shimmer min-height:0 */
#related-reading .mk-tile-grid,
.lp-related .mk-tile-grid {
  align-items: start !important;
  grid-auto-rows: auto !important;
}
#related-reading .mk-tile-grid > .mk-tile,
.lp-related .mk-tile-grid > .mk-tile {
  align-self: start !important;
  height: auto !important;
  min-height: 210px !important;
}
#related-reading .mk-tile-name,
.lp-related .mk-tile-name {
  min-height: 3.9em !important;
}
@media (max-width: 1024px) {
  #related-reading .mk-tile-grid > .mk-tile,
  .lp-related .mk-tile-grid > .mk-tile { min-height: 218px !important; }
  #related-reading .mk-tile-name,
  .lp-related .mk-tile-name { min-height: 4.2em !important; }
}
@media (max-width: 768px) {
  #related-reading .mk-tile-grid > .mk-tile,
  .lp-related .mk-tile-grid > .mk-tile { min-height: 228px !important; }
  #related-reading .mk-tile-name,
  .lp-related .mk-tile-name { min-height: 5.2em !important; }
}
@media (max-width: 480px) {
  #related-reading .mk-tile-grid > .mk-tile,
  .lp-related .mk-tile-grid > .mk-tile { min-height: 236px !important; }
  #related-reading .mk-tile-name,
  .lp-related .mk-tile-name { min-height: 5.2em !important; }
}

.lp-inquiry {
  padding: clamp(72px, 9vw, 140px) var(--gutter);
  text-align: center;
  background:
    radial-gradient(ellipse at center top, rgba(var(--gold-rgb), 0.08) 0%, transparent 60%),
    var(--bg-0);
  border-top: 1px solid rgba(var(--gold-rgb), 0.16);
}
.lp-inquiry-inner { max-width: 720px; margin: 0 auto; }
.lp-inquiry .eyebrow {
  margin-bottom: 18px;
}
.lp-inquiry h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--text-0);
  margin-bottom: 18px;
}
.lp-inquiry h2 em {
  font-style: italic;
  background: var(--gold-gloss);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.lp-inquiry p {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-2);
  margin: 0 auto 32px;
  max-width: 56ch;
}
.lp-inquiry-cta {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 16px 30px;
  border: 1px solid var(--gold-hot);
  border-radius: var(--radius-pill);
  background: var(--gold-gloss);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  box-shadow: var(--glow-subtle);
  text-shadow:
    0 0 6px rgba(var(--gold-rgb), 0.55),
    0 0 14px rgba(var(--gold-rgb), 0.25);
  transition: box-shadow var(--t-med) var(--ease);
}
.lp-inquiry-cta:hover {
  box-shadow:
    0 0 18px rgba(var(--gold-rgb), 0.6),
    0 0 38px rgba(var(--gold-rgb), 0.32),
    inset 0 0 10px rgba(var(--gold-rgb), 0.2);
}

/* Sharp line policy: every framed/bracketed content surface uses square corners.
   CTAs and true circular marks keep their existing pill/circle geometry. */
.card,
.pillar,
.engine-stat,
.stat,
.intel-grid li,
.mk-tile,
.mk-tile-icon,
.lp-card,

.lp-callout,
.legal-toc,
.callout,
.inquiry-form,
.form-status.success {
  border-radius: 0 !important;
}

@media (max-width: 640px) {
  .lp-hero h1 { font-size: clamp(28px, 9vw, 44px); }
  .lp-section-headline { font-size: clamp(24px, 7vw, 34px); }
  .lp-callout { padding: 18px 20px; font-size: 16px; }
  .lp-card { padding: 22px 22px 24px; }
}

/* Thought essays (Brief 4.3) */
.lp-hero--essay h1 {
  font-size: clamp(32px, 4.2vw, 52px);
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}
.lp-essay {
  padding: clamp(48px, 6vw, 88px) clamp(20px, 4vw, 40px);
}
.lp-essay-inner {
  max-width: 42rem;
  margin: 0 auto;
}
.lp-essay-inner p {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.85;
  margin: 0 0 1.35em;
}
.lp-essay-inner p:last-child {
  margin-bottom: 0;
}
.lp-thought-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid rgba(var(--gold-rgb), 0.18);
}
.lp-thought-card {
  display: block;
  padding: 28px 0;
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.12);
  text-decoration: none;
  transition: opacity var(--t-fast) var(--ease);
}
.lp-thought-card:hover {
  opacity: 0.88;
}
.lp-thought-title {
  display: block;
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 400;
  color: var(--text-1);
  margin-bottom: 8px;
}
.lp-thought-teaser {
  display: block;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--text-3);
  line-height: 1.6;
  max-width: 52ch;
}
.lp-thought-close {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  font-style: italic;
  color: var(--text-2);
  text-align: center;
  margin-top: 56px;
}
.lp-section-body a,
.lp-body a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 55%, transparent);
}
.lp-section-body a:hover,
.lp-body a:hover {
  color: var(--text-1);
}
.lp-essay-inner a {
  color: var(--gold-hot);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Site-wide eyebrow pills (exact nirvani.ai micro-label system)
   Applies to every content + nav eyebrow class.
   Rotating gold outer ring + metallic chrome inner frame + gold type.
   ========================================================================== */
@property --ia-tag-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes ia-tag-shine {
  to { --ia-tag-angle: 360deg; }
}

/* Content eyebrows: shrink-wrap + margin auto so they ALWAYS center in any
   block parent (text-align alone fails when display is not inline in a
   centered text context - Recognition / proof section was left-aligned). */
.eyebrow,
.lp-section-eyebrow,
.lp-hero .eyebrow,
.lp-inquiry .eyebrow,
.marquee-eyebrow,
.proof-eyebrow,
.mk-tile-eyebrow,
.micro-label {
  position: relative;
  isolation: isolate;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  width: fit-content;
  max-width: min(100%, 560px);
  margin-left: auto !important;
  margin-right: auto !important;
  font-family: var(--sans) !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  color: #E8C16A !important;
  -webkit-text-fill-color: #E8C16A !important;
  background: transparent !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  border: 0 !important;
  border-bottom: 0 !important;
  /* Equal top/bottom padding so label sits dead-center in the ring */
  padding: 12px 26px !important;
  border-radius: 0 !important;
  box-shadow: 0 0 20px -4px rgba(232, 193, 106, 0.5) !important;
  text-shadow: none !important;
  /* Wrap long labels (e.g. Exclusive Marketing…) instead of overflowing */
  white-space: normal;
  text-align: center;
}

/* Mega nav: left-aligned in columns (do not force page centering) */
.mega-eyebrow,
.mega-aside-eyebrow {
  position: relative;
  isolation: isolate;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  width: auto;
  max-width: 100%;
  margin-left: 0 !important;
  margin-right: 0 !important;
  font-family: var(--sans) !important;
  font-weight: 600 !important;
  font-size: 10px !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  color: #E8C16A !important;
  -webkit-text-fill-color: #E8C16A !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-bottom: 0 !important;
  padding: 10px 16px !important;
  border-radius: 0 !important;
  box-shadow: 0 0 20px -4px rgba(232, 193, 106, 0.5) !important;
  text-shadow: none !important;
  white-space: normal;
  text-align: center;
}

/* OUTER: rotating metallic gold ring */
.eyebrow::before,
.lp-section-eyebrow::before,
.marquee-eyebrow::before,
.proof-eyebrow::before,
.mk-tile-eyebrow::before,
.mega-eyebrow::before,
.mega-aside-eyebrow::before,
.micro-label::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  pointer-events: none;
  z-index: -1;
  display: block;
  background: conic-gradient(
    from var(--ia-tag-angle),
    #C89637, #F0C85F, #FFF7CD, #F0C85F,
    #C89637, #F0C85F, #FFF7CD, #F0C85F,
    #C89637, #F0C85F, #FFF7CD, #F0C85F,
    #C89637
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: ia-tag-shine 5s linear infinite;
}

/* INNER: metallic chrome frame (center stays open) */
.eyebrow::after,
.lp-section-eyebrow::after,
.marquee-eyebrow::after,
.proof-eyebrow::after,
.mk-tile-eyebrow::after,
.mega-eyebrow::after,
.mega-aside-eyebrow::after,
.micro-label::after {
  content: "";
  position: absolute;
  inset: 2.5px;
  border-radius: 0;
  padding: 4.25px;
  pointer-events: none;
  z-index: -1;
  display: block;
  background: conic-gradient(
    from var(--ia-tag-angle),
    #5c5c5c, #d8d8d8, #ffffff, #c4c4c4,
    #8a8a8a, #ffffff, #b0b0b0, #f8f8f8,
    #6e6e6e, #e8e8e8, #ffffff, #bcbcbc,
    #5c5c5c
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.22),
    inset 0 0 6px rgba(255, 255, 255, 0.18);
  animation: ia-tag-shine 7s linear infinite reverse;
}

/* Optional inner span (principal micro-label markup) */
.micro-label .label-text {
  position: relative;
  display: inline;
  padding: 0;
  margin: 0;
  color: #E8C16A !important;
  -webkit-text-fill-color: #E8C16A !important;
  background: none !important;
  animation: none;
  filter: none;
  text-shadow: none;
}

/* Slightly tighter pills in mega menu columns */
.mega-eyebrow,
.mega-aside-eyebrow {
  font-size: 10px !important;
  padding: 10px 16px !important;
  letter-spacing: 0.18em !important;
  white-space: normal;
  max-width: 100%;
}

/* Tile eyebrows: compact */
.mk-tile-eyebrow {
  font-size: 10px !important;
  padding: 8px 14px !important;
  letter-spacing: 0.16em !important;
  margin-bottom: 12px !important;
  white-space: normal;
}

@media (max-width: 640px) {
  .eyebrow,
  .lp-section-eyebrow,
  .marquee-eyebrow,
  .proof-eyebrow,
  .micro-label {
    padding: 12px 20px !important;
    white-space: normal;
  }
}
@media (prefers-reduced-motion: reduce) {
  .eyebrow::before,
  .eyebrow::after,
  .lp-section-eyebrow::before,
  .lp-section-eyebrow::after,
  .marquee-eyebrow::before,
  .marquee-eyebrow::after,
  .proof-eyebrow::before,
  .proof-eyebrow::after,
  .mk-tile-eyebrow::before,
  .mk-tile-eyebrow::after,
  .mega-eyebrow::before,
  .mega-eyebrow::after,
  .mega-aside-eyebrow::before,
  .mega-aside-eyebrow::after,
  .micro-label::before,
  .micro-label::after { animation: none !important; }
}

/* Principal page (/principal) - low-key entity profile */

/* H1: name on line 1, gold title as its own block with breathing room
   (inline em + tight line-height was smearing the subtitle against the name). */
.principal-page .lp-hero h1 {
  line-height: 1.08;
}
.principal-page .lp-hero h1 em {
  display: block;
  margin-top: 0.28em;
  font-size: 0.72em;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

/* Eyebrow pills: true vertical centering, equal top/bottom padding */
.principal-page .micro-label,
.principal-page .lp-section-eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  padding-left: 26px !important;
  padding-right: 26px !important;
  line-height: 1 !important;
  min-height: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 28px !important;
  vertical-align: middle;
}
.principal-page .micro-label .label-text {
  display: block;
  line-height: 1;
  padding: 0;
  margin: 0;
  letter-spacing: 0.2em;
}
/* Match chrome frame thickness top/bottom so the ring reads even */
.principal-page .micro-label::before,
.principal-page .lp-section-eyebrow::before {
  padding: 1.5px;
}
.principal-page .micro-label::after,
.principal-page .lp-section-eyebrow::after {
  inset: 2.5px;
  padding: 3.5px;
}

/* Bio copy: luxury serif (Cormorant), crisp pure white */
.principal-page .lp-hero .lp-subhead {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 400;
  font-style: italic;
  color: #F7F7F7;
  letter-spacing: 0.01em;
}
.principal-page .lp-hero .lp-body {
  font-family: var(--serif);
  font-size: clamp(17px, 1.7vw, 20px);
  font-weight: 400;
  font-style: normal;
  color: #FFFFFF;
  line-height: 1.72;
  letter-spacing: 0.012em;
  max-width: 44ch;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.principal-page .lp-hero .lp-body a {
  color: #FFFFFF;
  font-weight: 500;
  text-decoration-color: color-mix(in srgb, #FFFFFF 70%, transparent);
}
.principal-page .lp-hero .lp-body a:hover {
  color: #FFFFFF;
  text-decoration-color: #FFFFFF;
}
.principal-page .lp-hero .lp-body + .lp-body {
  margin-top: 22px;
}
.principal-portfolio-grid {
  margin-top: clamp(28px, 4vw, 44px);
}
.principal-portfolio .mk-tile--logo-brand .mk-tile-icon--logo {
  width: 100%;
  min-height: clamp(64px, 8vw, 96px);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.principal-portfolio .mk-tile-logo {
  width: auto;
  height: clamp(40px, 5vw, 64px);
  max-width: min(100%, 280px);
  max-height: none;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.4s ease;
}
.principal-portfolio .mk-tile:hover .mk-tile-logo,
.principal-portfolio .mk-tile:focus-visible .mk-tile-logo {
  transform: scale(1.04);
}
.principal-portfolio .mk-tile-logo--ia {
  height: clamp(51px, 6.2vw, 83px);
  max-width: min(100%, 300px);
}
.principal-portfolio .mk-tile-logo--gateway {
  height: clamp(43px, 5.35vw, 68px);
  max-width: min(100%, 321px);
}
.principal-portfolio a.mk-tile--chrome-accent {
  --tile-accent: #b8c4d4;
  --tile-cream: #e2e8f0;
  --tile-warm: 154, 167, 184;
}
.principal-portfolio a.mk-tile--chrome-accent:hover,
.principal-portfolio a.mk-tile--chrome-accent:focus-visible {
  --tile-accent: #c4ccd8;
  --tile-warm: 196, 204, 216;
}
.principal-portfolio .mk-tile-logo--nirvani {
  height: clamp(38px, 4.6vw, 58px);
  max-width: min(100%, 220px);
}
.principal-page .lp-section-headline {
  font-size: clamp(28px, 4vw, 42px);
}
.principal-page .lp-section-body {
  max-width: 52ch;
}
.principal-surfaces {
  margin-top: clamp(40px, 5vw, 56px);
}
.principal-surfaces .mk-tile-icon--logo {
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
}
.principal-surfaces .mk-tile-logo {
  width: 100%;
  height: 100%;
  max-width: 50px;
  max-height: 50px;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.4s ease;
}
.principal-surfaces .mk-tile:hover .mk-tile-logo,
.principal-surfaces .mk-tile:focus-visible .mk-tile-logo {
  transform: scale(1.04);
}
.principal-surfaces a.mk-tile--linkedin-accent {
  --tile-accent: #ffffff;
  --tile-cream: #f5f5f5;
  --tile-warm: 255, 255, 255;
}
.principal-surfaces a.mk-tile--linkedin-accent:hover,
.principal-surfaces a.mk-tile--linkedin-accent:focus-visible {
  --tile-accent: #ffffff;
  --tile-warm: 255, 255, 255;
}
.principal-surfaces a.mk-tile--instagram-accent {
  --tile-accent: #e1306c;
  --tile-cream: #f77737;
  --tile-warm: 225, 48, 108;
}
.principal-surfaces a.mk-tile--instagram-accent:hover,
.principal-surfaces a.mk-tile--instagram-accent:focus-visible {
  --tile-accent: #f56040;
  --tile-warm: 245, 96, 64;
}
.principal-surfaces a.mk-tile--facebook-accent {
  --tile-accent: #1877f2;
  --tile-cream: #6ba3ff;
  --tile-warm: 24, 119, 242;
}
.principal-surfaces a.mk-tile--facebook-accent:hover,
.principal-surfaces a.mk-tile--facebook-accent:focus-visible {
  --tile-accent: #4599ff;
  --tile-warm: 69, 153, 255;
}
.principal-surfaces .mk-tile-icon--logo:has(.mk-tile-logo--ia) {
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
}
.principal-surfaces .mk-tile-logo--ia {
  width: auto;
  height: clamp(22px, 2.2vw, 28px);
  max-width: clamp(110px, 12vw, 150px);
  max-height: none;
}

/* Nirvani Ask AI embed (concierge.integrityagency.ai/embed.js) - above grain + custom cursor */
.nrv-btn {
  z-index: 10050 !important;
  pointer-events: auto !important;
  /* Exception: Ask AI trigger stays a pill; rest of site is square */
  border-radius: 999px !important;
  /* Slightly smaller than default embed pill */
  padding: 8px 14px 8px 10px !important;
  min-height: 36px !important;
  gap: 7px !important;
  font-size: 10px !important;
  letter-spacing: 0.16em !important;
  box-shadow:
    0 0 0 1px rgba(212, 168, 67, 0.18),
    0 0 20px -6px rgba(212, 168, 67, 0.55),
    0 10px 28px -10px rgba(0, 0, 0, 0.7) !important;
}
.nrv-btn svg {
  width: 11px !important;
  height: 11px !important;
}
.nrv-bg {
  z-index: 10060 !important;
}
.nrv-panel {
  z-index: 10061 !important;
  border-radius: 0 !important;
}
.nrv-panel .nrv-close,
.nrv-panel .nrv-send,
.nrv-panel .nrv-icon-btn,
.nrv-panel .nrv-voice-btn,
.nrv-panel .nrv-pill,
.nrv-panel .nrv-starter,
.nrv-panel textarea,
.nrv-panel input,
.nrv-panel button {
  border-radius: 0 !important;
}

/* Crisp square corners site-wide: buttons, CTAs, cards, form controls */
button,
.btn-primary,
.btn-secondary,
.nav-cta:not(.hero-cta-chrome),
.mega-aside-cta,
.lp-inquiry-cta,
.filter-btn,
.card-cta,
.inquiry-submit,
input,
textarea,
select,
.card,
.lp-card,
.lp-callout,
.engine-stat,
.stat,
.pillar,
.inquiry-form,
.mk-tile,
.mk-tile-grid--jw-glass .mk-tile {
  border-radius: 0 !important;
}

/* Keep Ask AI floating trigger as a pill (only site-wide corner exception) */
button.nrv-btn,
.nrv-btn {
  border-radius: 999px !important;
}
a.lp-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
@media (hover: hover) and (pointer: fine) {
  .nrv-btn,
  .nrv-btn *,
  .nrv-panel button,
  .nrv-panel textarea,
  .nrv-panel input,
  .nrv-panel a {
    cursor: pointer !important;
  }
}

/* Inquiry form layout - jw-glass surface, centered in engagement section */
.inquiry-form {
  min-height: 0;
  align-self: center;
  width: 100%;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(22px, 2.8vw, 38px);
  justify-content: flex-start;
}

/* Related sections (Depth + Continue) - flex center so card rows stay centered */
.lp-related .mk-tile-grid,
#related-reading .mk-tile-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 16px !important;
  width: 100%;
  margin-top: clamp(32px, 4vw, 48px);
  margin-bottom: 0;
}
.lp-related .mk-tile-grid > .mk-tile,
#related-reading .mk-tile-grid > .mk-tile {
  flex: 0 1 calc((100% - 32px) / 3) !important;
  width: calc((100% - 32px) / 3) !important;
  max-width: calc((100% - 32px) / 3) !important;
  align-self: stretch !important;
  height: auto !important;
  box-sizing: border-box !important;
}
@media (max-width: 1024px) {
  .lp-related .mk-tile-grid > .mk-tile,
  #related-reading .mk-tile-grid > .mk-tile {
    flex: 0 1 calc((100% - 16px) / 2) !important;
    width: calc((100% - 16px) / 2) !important;
    max-width: calc((100% - 16px) / 2) !important;
  }
}
@media (max-width: 480px) {
  .lp-related .mk-tile-grid,
  #related-reading .mk-tile-grid {
    gap: 12px !important;
  }
  .lp-related .mk-tile-grid > .mk-tile,
  #related-reading .mk-tile-grid > .mk-tile {
    flex: 0 1 calc((100% - 12px) / 2) !important;
    width: calc((100% - 12px) / 2) !important;
    max-width: calc((100% - 12px) / 2) !important;
  }
}

/* deploy-force 230b Recognition center */
/* deploy-marker-230c recognition-center */

/* LANGUAGE TOGGLE - integrityagency.io (nirvani/howellshaw mirror) */
/* ==========================================================================
   LANGUAGE TOGGLE - mirror howellshaw.com exactly (flags + gold ring pill)
   Source: howellshaw.com Header.astro .lang-menu / .lang-btn / .lang-dropdown
   ========================================================================== */
.lang-menu {
  position: relative;
  flex: 0 0 auto;
  z-index: 70;
}
.lang-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  border-radius: 999px !important;
  padding: 8px 13px;
  color: #E8C16A;
  cursor: pointer;
  box-shadow: 0 0 20px -6px rgba(232, 193, 106, 0.5);
  transition: color .22s cubic-bezier(0.22, 1, 0.36, 1), background .22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .22s cubic-bezier(0.22, 1, 0.36, 1), transform .22s cubic-bezier(0.22, 1, 0.36, 1);
  font: inherit;
  isolation: isolate;
}
/* Shining gold ring (same shimmer as micro-label / howellshaw tag-shine) */
.lang-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  pointer-events: none;
  z-index: -1;
  background: conic-gradient(
    from var(--ia-tag-angle),
    #C89637, #F0C85F, #FFF7CD, #F0C85F,
    #C89637, #F0C85F, #FFF7CD, #F0C85F,
    #C89637, #F0C85F, #FFF7CD, #F0C85F,
    #C89637
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: ia-tag-shine 5s linear infinite;
}
.lang-btn:hover,
.lang-menu:focus-within .lang-btn,
.lang-menu.is-open .lang-btn {
  color: #FBDE82;
  background: rgba(232, 193, 106, 0.12);
  box-shadow: 0 0 26px -4px rgba(232, 193, 106, 0.72);
  transform: translateY(-1px);
}
.lang-globe { width: 15px; height: 15px; flex: 0 0 auto; }
.lang-btn:hover .lang-globe,
.lang-menu:focus-within .lang-globe,
.lang-menu.is-open .lang-globe {
  filter: drop-shadow(0 0 6px rgba(251, 222, 130, 0.6));
}
.lang-flag {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 22px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}
.lang-flag img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lang-flag--btn {
  width: 22px;
  height: 16px;
  border-radius: 3px;
}
.lang-btn:hover .lang-flag--btn,
.lang-menu:focus-within .lang-flag--btn,
.lang-menu.is-open .lang-flag--btn {
  border-color: rgba(251, 222, 130, 0.7);
  box-shadow: 0 0 0 1px rgba(251, 222, 130, 0.45), 0 1px 4px rgba(0, 0, 0, 0.45);
}
@media (prefers-reduced-motion: reduce) {
  .lang-btn::before { animation: none; }
}
.lang-btn .nav__caret {
  width: 10px;
  height: 10px;
  opacity: 0.75;
  transition: transform .25s cubic-bezier(0.22, 1, 0.36, 1);
}
.lang-menu:hover .nav__caret,
.lang-menu:focus-within .nav__caret,
.lang-menu.is-open .nav__caret {
  transform: rotate(180deg);
}
.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 212px;
  background:
    linear-gradient(rgba(8, 12, 24, 0.97), rgba(8, 12, 24, 0.97)) padding-box,
    linear-gradient(135deg, #FFF8E0 0%, #F4D572 25%, #D4A843 50%, #F4D572 75%, #B68A2E 100%) border-box;
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: 0.45rem;
  box-shadow: 0 34px 64px -22px rgba(0, 0, 0, 0.7), 0 0 30px -8px rgba(232, 193, 106, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .22s cubic-bezier(0.22, 1, 0.36, 1), transform .22s cubic-bezier(0.22, 1, 0.36, 1), visibility .22s;
  z-index: 60;
  display: grid;
  gap: 2px;
}
.lang-dropdown::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}
.lang-menu:hover .lang-dropdown,
.lang-menu:focus-within .lang-dropdown,
.lang-menu.is-open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-opt {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.lang-name {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #d7dbe3;
  transition: color .2s ease;
}
.lang-opt:hover,
.lang-opt:focus-visible {
  background: linear-gradient(90deg, rgba(232, 193, 106, 0.18), rgba(232, 193, 106, 0.04) 72%);
  transform: translateX(3px);
  box-shadow: inset 2px 0 0 #E8C16A, 0 0 18px -9px rgba(232, 193, 106, 0.55);
  outline: none;
}
.lang-opt:hover .lang-name,
.lang-opt:focus-visible .lang-name {
  color: #FBDE82;
}
.lang-opt:hover .lang-flag,
.lang-opt:focus-visible .lang-flag {
  border-color: rgba(251, 222, 130, 0.6);
  box-shadow: 0 0 0 1px rgba(251, 222, 130, 0.4), 0 1px 4px rgba(0, 0, 0, 0.45);
}
.lang-opt[aria-current="page"] {
  background: rgba(232, 193, 106, 0.15);
}
.lang-opt[aria-current="page"] .lang-name {
  color: #FBDE82;
}
.lang-opt[aria-current="page"] .lang-flag {
  border-color: rgba(251, 222, 130, 0.75);
  box-shadow: 0 0 0 2px rgba(251, 222, 130, 0.55), 0 1px 4px rgba(0, 0, 0, 0.45);
}
@media (max-width: 960px) {
  .lang-menu { margin-left: 6px; }
  .lang-btn { padding: 7px 10px; }
  .lang-dropdown {
    right: 0;
    min-width: 200px;
    max-height: min(70vh, 420px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}
/* kill legacy details-summary lang rules that fight this system */
details.lang-menu { display: none !important; }

/* LANG MENU LTR LOCK - howellshaw parity */
/* Language rows must never flip under html[dir=rtl] (ar/fa pages).
   Howellshaw puts no dir= on lang-opt; flag stays left, name right for every language. */
.lang-menu,
.lang-dropdown,
.lang-opt,
.lang-btn {
  direction: ltr !important;
  unicode-bidi: isolate;
}
.lang-opt {
  flex-direction: row !important;
  justify-content: flex-start !important;
  text-align: left !important;
}
.lang-opt .lang-name {
  text-align: left !important;
}
/* Keep marketing chrome LTR so hero robot / nav do not mirror off-screen on ar|fa */
html[dir="rtl"] header.nav,
html[dir="rtl"] header.nav .nav-inner,
html[dir="rtl"] .hero,
html[dir="rtl"] .hero-top,
html[dir="rtl"] .hero-robot-wrap,
html[dir="rtl"] .hero-centered,
html[dir="rtl"] .built-on,
html[dir="rtl"] .proof-band {
  direction: ltr;
  unicode-bidi: isolate;
}
html[dir="rtl"] .hero-robot {
  transform: none;
}

/* Integrity Agency header placement (do not override 3-zone layout above). */
#site-header .nav-tools {
  margin-left: auto;
}
#site-header .nav-toggle {
  margin-left: 0;
}

/* Hard final overrides (beat hero-cta-chrome / nav-link display later in file). */
@media (min-width: 1025px) {
  #site-header .nav-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
  }
  #site-header .nav-logo {
    grid-column: 1;
    justify-self: start;
  }
  #site-header .nav-links {
    /* Grid-centered only. Never transform (breaks fixed mega dropdowns). */
    grid-column: 2;
    justify-self: center;
    position: static !important;
    left: auto !important;
    transform: none !important;
    pointer-events: auto !important;
    margin: 0 !important;
  }
  #site-header .nav-tools {
    grid-column: 3;
    justify-self: end;
    margin-left: 0 !important;
  }
  #site-header .nav-cta--drawer {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
  }
  #site-header .nav-cta--bar {
    display: inline-flex !important;
  }
}
@media (max-width: 1024px) {
  #site-header .nav-cta--bar {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
  }
  #site-header .nav-tools {
    margin-left: auto !important;
  }
  /* Final open-state force so drawer never sticks off-screen */
  body.nav-open #site-header .nav-links {
    transform: translateX(0) !important;
    transition: none !important;
  }
}

/* Scroll shrink (html class + header class). Dual selectors for reliability. */
html.ia-header-scrolled #site-header,
#site-header.scrolled {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  background: rgba(0, 0, 0, 0.94) !important;
}
html.ia-header-scrolled #site-header .nav-logo img,
#site-header.scrolled .nav-logo img {
  height: calc(var(--ia-logo-height) * 0.88) !important;
}
html.ia-header-scrolled #site-header .nav-logo::after,
#site-header.scrolled .nav-logo::after {
  height: calc(var(--ia-logo-height) * 0.88) !important;
  -webkit-mask-size: auto calc(var(--ia-logo-height) * 0.88) !important;
  mask-size: auto calc(var(--ia-logo-height) * 0.88) !important;
}

/* Mega dropdown safety: never trap fixed panels with ancestor transforms.
   Instant open; no transition (stuck CSSTransition was leaving opacity:0). */
@media (min-width: 1025px) {
  #site-header .nav-links {
    transform: none !important;
  }
  #site-header .mega-panel {
    transition: none !important;
    transform: none !important;
  }
  #site-header .nav-item--mega:hover > .mega-panel,
  #site-header .nav-item--mega:focus-within > .mega-panel,
  #site-header .nav-item--mega.is-open > .mega-panel {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    z-index: 1005;
  }
}


/* ==========================================================================
   EXACT COPY from live nirvani.ai styles.css - do not invent
   Source: https://nirvani.ai/styles.css?v=20260727lang8
   Blocks: @property --nirvani-tag-angle, base hero-cta layout, CTA 2-TONE TRIAL
   ========================================================================== */

@property --nirvani-tag-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes nirvani-tag-shine {
  to { --nirvani-tag-angle: 360deg; }
}

/* --- base layout/type (live nirvani ~4948+) - sizing before 2-tone paint --- */
.hero-cta-chrome {
  position: relative;
  display: inline-block;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.30));
  transition: transform 0.3s ease, filter 0.3s ease;
  -webkit-text-fill-color: initial;
  color: inherit;
  text-shadow: none;
  box-shadow: none;
  overflow: visible;
  align-self: center;
}
.hero-cta-chrome-inner {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 42px;
  border-radius: 2px;
  color: #0F0F0F;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero-cta-chrome-arrow {
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  font-weight: 600;
  transition: transform 0.28s ease;
}
.hero-cta-chrome:hover .hero-cta-chrome-arrow {
  transform: translateX(5px);
}
.hero-cta-chrome.is-nav {
  align-self: center;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.28));
}
.hero-cta-chrome.is-nav .hero-cta-chrome-inner {
  padding: 11px 24px;
  font-size: 11px;
  letter-spacing: 0.18em;
  gap: 0;
}
/* live header polish */
#site-header .hero-cta-chrome.is-nav .hero-cta-chrome-inner,
header .hero-cta-chrome.is-nav .hero-cta-chrome-inner {
  padding-top: 9px !important;
  padding-bottom: 9px !important;
}
#site-header .hero-cta-chrome.is-nav .hero-cta-chrome-text,
header .hero-cta-chrome.is-nav .hero-cta-chrome-text {
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
}

/* ==========================================================================
   CTA 2-TONE TRIAL - full chrome fill + eyebrow-style gold outline
   Black type on chrome metal. Gold rotating ring matches .micro-label outer.
   EXACT from live nirvani.ai
   ========================================================================== */
:root {
  --cta-chrome-metal:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48) 0%, rgba(255, 255, 255, 0.10) 40%, rgba(0, 0, 0, 0.16) 100%),
    linear-gradient(145deg,
      #6a6a6a 0%,
      #c4c4c4 16%,
      #ffffff 34%,
      #a8a8a8 50%,
      #f0f0f0 66%,
      #888888 84%,
      #d8d8d8 100%
    );
}

/* --- Primary chrome CTAs (nested outer + inner) --- */
.hero-cta-chrome,
a.hero-cta-chrome,
button.hero-cta-chrome {
  position: relative !important;
  isolation: isolate !important;
  display: inline-block !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 3px !important;
  background: transparent !important;
  background-image: none !important;
  animation: none !important;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.32)) !important;
}

/* Eyebrow-style gold outline (rotating conic ring) */
.hero-cta-chrome::before,
a.hero-cta-chrome::before,
button.hero-cta-chrome::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit !important;
  padding: 1.75px !important;
  pointer-events: none !important;
  z-index: 2 !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  background: conic-gradient(
    from var(--nirvani-tag-angle),
    #C89637, #F0C85F, #FFF7CD, #F0C85F,
    #C89637, #F0C85F, #FFF7CD, #F0C85F,
    #C89637, #F0C85F, #FFF7CD, #F0C85F,
    #C89637
  ) !important;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0) !important;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0) !important;
  -webkit-mask-composite: xor !important;
          mask-composite: exclude !important;
  box-shadow: none !important;
  animation: nirvani-tag-shine 5s linear infinite !important;
}

/* Full chrome metal fill inside the gold ring */
.hero-cta-chrome-inner {
  position: relative !important;
  z-index: 1 !important;
  border-radius: 2px !important;
  border: 0 !important;
  background: var(--cta-chrome-metal) !important;
  background-size: auto !important;
  background-position: center !important;
  color: #0a0a0a !important;
  -webkit-text-fill-color: #0a0a0a !important;
  text-shadow: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -1px 0 rgba(0, 0, 0, 0.30) !important;
  animation: none !important;
  filter: none !important;
}
/* EXACT nirvani: color only - NO background:none, NO font:inherit on inner */
.hero-cta-chrome-text,
.hero-cta-chrome-inner,
.hero-cta-chrome-arrow,
.hero-cta-chrome .btn-label,
.hero-cta-chrome .btn-arrow {
  color: #0a0a0a !important;
  -webkit-text-fill-color: #0a0a0a !important;
  fill: #0a0a0a !important;
}
.hero-cta-chrome:hover {
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.42)) !important;
  transform: translateY(-2px) scale(1.02);
}
.hero-cta-chrome:hover .hero-cta-chrome-inner {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.14) 42%, rgba(0, 0, 0, 0.12) 100%),
    linear-gradient(145deg, #7a7a7a 0%, #d0d0d0 16%, #ffffff 36%, #b8b8b8 52%, #f5f5f5 68%, #9a9a9a 86%, #e0e0e0 100%) !important;
}

/* IA-only: neutralize OLD ghost outer classes when dual-classed with chrome.
   Outer shell only. Never touch .hero-cta-chrome-inner background. */
a.nav-cta.hero-cta-chrome,
a.nav-cta.hero-cta-chrome:hover,
button.btn-primary.hero-cta-chrome,
button.btn-primary.hero-cta-chrome:hover,
a.lp-inquiry-cta.hero-cta-chrome,
a.lp-inquiry-cta.hero-cta-chrome:hover {
  background: transparent !important;
  background-image: none !important;
  color: inherit !important;
  -webkit-text-fill-color: initial !important;
  text-shadow: none !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  min-height: 0 !important;
}
button.btn-primary.hero-cta-chrome {
  align-self: center;
  font-family: 'Inter', system-ui, sans-serif;
  cursor: pointer;
}
button.btn-primary.hero-cta-chrome:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

@media (max-width: 1024px) {
  .nav-links a.nav-cta.hero-cta-chrome {
    display: block !important;
    width: 100% !important;
    margin: 28px 0 0 !important;
  }
  .nav-links a.nav-cta.hero-cta-chrome .hero-cta-chrome-inner {
    display: flex !important;
    width: 100% !important;
    min-height: 52px !important;
    box-sizing: border-box !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cta-chrome,
  .hero-cta-chrome::before,
  .hero-cta-chrome-inner {
    animation: none !important;
  }
}

/* P0: short form + mid-page inquiry CTA */
.form-expand-hint {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-3);
  text-align: center;
  line-height: 1.55;
}
.form-expand-hint a {
  color: var(--gold-hot, #D4A843);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.inquiry-form--short textarea {
  min-height: 96px;
}
.mid-inquiry-cta {
  /* Less top padding so kicker sits closer under advantage-seal */
  padding: clamp(10px, 1.6vw, 18px) 0 clamp(28px, 4vw, 48px);
  text-align: center;
}
.mid-inquiry-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.mid-inquiry-cta-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}
.mid-inquiry-cta-btn {
  display: inline-block;
}


/* =============================================================
   HERO VIDEO ALWAYS ON (all devices, ignore reduced-motion hide)
   ============================================================= */
.hero-video,
.hero-video video,
#ia-hero-video,
video.ia-hero-video {
  display: block !important;
  visibility: visible !important;
}
@media (prefers-reduced-motion: reduce) {
  .hero-video video,
  #ia-hero-video,
  video.ia-hero-video {
    display: block !important;
    visibility: visible !important;
    opacity: 0.88 !important;
    animation: none !important;
  }
}



/* Mobile menu hard guarantees */
@media (max-width: 1024px) {
  #site-header {
    z-index: 10000 !important;
  }
  #site-header .nav-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 2147483000 !important;
    position: relative;
    cursor: pointer;
  }
  body.nav-open #site-header .nav-toggle {
    position: fixed !important;
    top: max(10px, calc(env(safe-area-inset-top) + 6px)) !important;
    right: 16px !important;
    z-index: 2147483646 !important;
    pointer-events: auto !important;
  }
  /* Keep drawer under the hamburger/close control */
  #site-header .nav-links {
    transform: translateX(100%);
    pointer-events: auto !important;
    z-index: 2147483000 !important;
  }
  body.nav-open #site-header .nav-links,
  body.nav-open .nav-links {
    transform: translateX(0) !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 2147483000 !important;
  }
  body.nav-open #site-header .nav-toggle,
  body.nav-open .nav-toggle {
    z-index: 2147483646 !important;
  }
}


/* Floating close control while mobile drawer is open (reparented to body) */
.nav-toggle.nav-toggle--floating {
  position: fixed !important;
  top: max(10px, calc(env(safe-area-inset-top) + 6px)) !important;
  right: 16px !important;
  z-index: 2147483646 !important;
  display: flex !important;
  pointer-events: auto !important;
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  background: rgba(0,0,0,0.55) !important;
  border: 1px solid rgba(212,168,67,0.45) !important;
  border-radius: 999px !important;
}

/* Footer phone + email line (matches political-sms footer) */
.footer-contact {
  margin: 0;
  padding: 0;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-2);
  line-height: 1.35;
  text-align: center;
}
.footer-contact a { color: var(--text-2); text-decoration: none; }
.footer-contact a:hover { color: var(--gold-warm); }
.footer-contact .sep { color: var(--text-3); margin: 0 8px; }
.contact-icon { display: inline-flex; width: 12px; height: 12px; margin-right: 5px; vertical-align: -1.5px; }
.contact-icon svg { width: 100%; height: 100%; }
.contact-icon svg rect, .contact-icon svg path { stroke: url(#footContactStroke); }

/* =============================================================
   Balanced card rows (2026-10-22): a card set never leaves an orphan row.
   3 cards: 3 across, 1 column on small screens. 4: 4 across or 2x2.
   6: 3x2 (lp-grid rule above) or 2x3. 8: 4x2 or 2x4.
   Count-aware via :has(), so the selectors also outrank lp-depth and inline page rules.
   ============================================================= */
@media (min-width: 721px) {
  :is(.lp-grid, .lp-stats, .lp-ledger, .lp-fields, .lp-tool-result--grid, .so-queries):has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  :is(.lp-grid, .lp-stats, .lp-ledger, .lp-fields, .lp-tool-result--grid, .so-queries):has(> :nth-child(3):last-child) {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (min-width: 1100px) {
  :is(.lp-grid, .lp-stats, .lp-ledger, .lp-fields):has(> :nth-child(4):last-child) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 561px) and (max-width: 1099px) {
  :is(.lp-grid, .lp-stats, .lp-ledger, .lp-fields):has(> :nth-child(4):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* Ledger as 2x2: inner dividers only */
  .lp-ledger:has(> :nth-child(4):last-child) > .lp-ledger-col {
    border-right: 1px solid rgba(var(--gold-rgb), 0.22);
    border-bottom: 0;
  }
  .lp-ledger:has(> :nth-child(4):last-child) > .lp-ledger-col:nth-child(2n) { border-right: 0; }
  .lp-ledger:has(> :nth-child(4):last-child) > .lp-ledger-col:nth-child(-n+2) {
    border-bottom: 1px solid rgba(var(--gold-rgb), 0.22);
  }
}
@media (max-width: 899px) {
  .lp-grid:has(> .lp-card:nth-child(6):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .lp-grid:has(> .lp-card:nth-child(6):last-child) {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (min-width: 901px) {
  .mk-tile-grid:not(.mk-tile-grid--related):has(> .mk-tile:nth-child(8):last-child) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .mk-tile-grid:not(.mk-tile-grid--related):has(> .mk-tile:nth-child(8):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tile grids with 3 tiles (e.g. principal Official Profiles): 3 across, then 1 column */
@media (min-width: 721px) {
  .mk-tile-grid:has(> .mk-tile:nth-child(3):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .mk-tile-grid:has(> .mk-tile:nth-child(3):last-child) {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Related tiles (flex rows): 3 stay 3 across to tablet, then stack; 4 go 4 across on desktop */
@media (min-width: 721px) {
  :is(.lp-related, #related-reading) .mk-tile-grid:has(> .mk-tile:nth-child(3):last-child) > .mk-tile {
    flex: 0 1 calc((100% - 32px) / 3) !important;
    width: calc((100% - 32px) / 3) !important;
    max-width: calc((100% - 32px) / 3) !important;
  }
}
@media (max-width: 720px) {
  :is(.lp-related, #related-reading) .mk-tile-grid:has(> .mk-tile:nth-child(3):last-child) > .mk-tile {
    flex: 0 1 100% !important;
    width: 100% !important;
    max-width: 480px !important;
    min-height: 0 !important;
  }
  /* Stacked: no shared row to equalize, so drop the name spacer */
  :is(.lp-related, #related-reading) .mk-tile-grid:has(> .mk-tile:nth-child(3):last-child) .mk-tile-name {
    min-height: 0 !important;
  }
}
@media (min-width: 1025px) {
  :is(.lp-related, #related-reading) .mk-tile-grid:has(> .mk-tile:nth-child(4):last-child) > .mk-tile {
    flex: 0 1 calc((100% - 48px) / 4) !important;
    width: calc((100% - 48px) / 4) !important;
    max-width: calc((100% - 48px) / 4) !important;
  }
}

/* =============================================================
   Mobile pass (2026-10-22): phones 360-430px and small tablets.
   From an audit of 91 pages at 360/390/430/768 plus a visual
   review of every page template at 390.
   ============================================================= */

/* Header: logo, language and menu button fit at 360-389px
   (the menu button was clipped 8px at 360 and ~9px at 375). */
@media (max-width: 389px) {
  :root { --ia-logo-height: 32px; }
  #site-header .nav-inner { gap: 8px; }
}

/* Ask AI pill: off while the menu drawer is open, and the footer
   ends clear of it so the legal line is never covered. */
body.nav-open .nrv-btn {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
@media (max-width: 768px) {
  #site-footer { padding-bottom: 72px !important; }
}

/* Eyebrow pills: wrap in balanced lines with room between them
   (locale strings overflowed the nowrap marquee pill by up to 41px). */
.marquee-eyebrow {
  white-space: normal !important;
  text-wrap: balance;
}
@media (max-width: 640px) {
  .eyebrow,
  .lp-section-eyebrow,
  .marquee-eyebrow,
  .proof-eyebrow,
  .micro-label {
    text-wrap: balance;
    line-height: 1.55 !important;
  }
}

/* Hero meta lines: stack with the dot as a centred divider,
   instead of dots left dangling at line ends. */
@media (max-width: 560px) {
  .hero-meta,
  .lp-meta {
    flex-direction: column;
    gap: 12px;
  }
}

/* Capability list: one item per line, dot centred between items. */
@media (max-width: 560px) {
  .engine-capabilities {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .engine-capabilities li {
    padding: 0 8px;
    text-align: center;
    letter-spacing: 0.18em;
  }
  .engine-capabilities li::before {
    position: static;
    display: block;
    margin: 0 auto 12px;
    transform: none;
  }
  .engine-capabilities li:first-child::before { display: none; }
}

/* Homepage tile sets: one column on phones (two columns left ~110px for text). */
@media (max-width: 560px) {
  .mk-tile-grid:not(.mk-tile-grid--related):not(.principal-surfaces) {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .mk-tile-grid--open.mk-tile-grid--jw-glass:not(.mk-tile-grid--stacked) .mk-tile {
    min-height: 0 !important;
  }
}

/* Framework pillars: numeral above the copy so the text gets the full card width. */
@media (max-width: 560px) {
  .mk-tile-grid--stacked .mk-tile {
    grid-template-columns: minmax(0, 1fr) !important;
    row-gap: 8px;
  }
  .mk-tile-grid--stacked .mk-tile-icon {
    grid-column: 1 !important;
    grid-row: auto !important;
    align-self: start !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 0 4px !important;
  }
  .mk-tile-grid--stacked .mk-tile-name,
  .mk-tile-grid--stacked .mk-tile-desc {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
}

/* Related tiles: any count stacks on phones (2x2 squeezed names to ~100px). */
@media (max-width: 560px) {
  :is(.lp-related, #related-reading) .mk-tile-grid:has(> .mk-tile) > .mk-tile {
    flex: 0 1 100% !important;
    width: 100% !important;
    max-width: 480px !important;
    min-height: 0 !important;
  }
  :is(.lp-related, #related-reading) .mk-tile-grid:has(> .mk-tile) .mk-tile-name {
    min-height: 0 !important;
  }
}

/* Principal profiles: logo + name only, so a compact row of three. */
@media (max-width: 720px) {
  .mk-tile-grid.principal-surfaces:has(> .mk-tile:nth-child(3):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .principal-surfaces > .mk-tile {
    min-height: 0 !important;
    padding: 22px 6px 20px !important;
  }
}

/* Type floor on small screens: no label below 11px, captions 12px. */
@media (max-width: 768px) {
  span.label-text,
  .micro-label .label-text,
  .lp-tool-kicker,
  .lp-stat-source,
  .lp-tool-privacy,
  .lp-field > span,
  .lp-out-label,
  .mega-eyebrow,
  .mega-aside-eyebrow,
  .mk-tile-eyebrow {
    font-size: 11px !important;
  }
  .built-on-caption { font-size: 12px; }
  .footer-legal { font-size: 10.5px !important; }
}

/* Tap targets: footer and back links reach a 40px touch height. */
@media (max-width: 768px) {
  .footer-links { gap: 0 4px; }
  .footer-links a {
    display: inline-block;
    font-size: 11px;
    padding: 12px 6px;
  }
  .legal .back-link {
    display: inline-block;
    padding: 12px 0;
  }
}

/* Word stat (Global / Глобально) fits its card on tablets in every locale. */
@media (min-width: 721px) and (max-width: 900px) {
  .stat-figure--gold { font-size: min(44px, 5.2vw); }
}

/* =============================================================
   Mobile menu opens under the header (2026-10-22).
   The header (logo, language, close) stays in view and the drawer
   starts exactly at the gold header line: 18 + 44 + 18 + 1px line = 81px,
   or 10 + 44 + 10 + 1 = 65px once the header has shrunk on scroll.
   ============================================================= */
@media (max-width: 1024px) {
  #site-header { --ia-hdr-open-h: 81px; }
  html.ia-header-scrolled #site-header,
  #site-header.scrolled { --ia-hdr-open-h: 65px; }

  /* The menu button is reparented to body while open; keep the bar its full height. */
  body.nav-open #site-header .nav-inner { min-height: 44px; }

  body.nav-open #site-header .nav-links,
  body.nav-open .nav-links {
    top: var(--ia-hdr-open-h) !important;
    height: calc(100vh - var(--ia-hdr-open-h)) !important;
    height: calc(100dvh - var(--ia-hdr-open-h)) !important;
    padding-top: 22px !important;
  }

  /* Header is solid while the menu is open (scrolled state is 94% black). */
  body.nav-open #site-header { background: #000 !important; }
  /* Language dropdown opens over the drawer, not behind it. */
  body.nav-open #site-header .nav-tools {
    position: relative;
    z-index: 2147483100 !important;
  }

  /* Hold the button's slot so the language pill does not slide under the X. */
  body.nav-open #site-header .nav-tools::after {
    content: "";
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
  }

  /* Close control sits exactly where the hamburger was, as a plain X. */
  .nav-toggle.nav-toggle--floating {
    top: 18px !important;
    right: var(--gutter) !important;
    background: transparent !important;
    border: 0 !important;
  }
  html.ia-header-scrolled .nav-toggle.nav-toggle--floating,
  body:has(#site-header.scrolled) .nav-toggle.nav-toggle--floating {
    top: 10px !important;
  }
  /* Arabic and Farsi mirror the header: buttons pinned to the left edge
     (the LTR margin-left:auto was pulling them in next to the logo). */
  html[dir="rtl"] #site-header .nav-tools {
    margin-left: 0 !important;
    margin-right: auto !important;
  }
  html[dir="rtl"] #site-header .lang-dropdown {
    left: 0 !important;
    right: auto !important;
  }
  html[dir="rtl"] .nav-toggle.nav-toggle--floating {
    right: auto !important;
    left: var(--gutter) !important;
  }
}

/* Five primary links (Overview added 2026-11-15). The centered link row sits
   between the logo and the tools inside a capped header, so its gap is held
   to what that space allows; narrow desktop widths also tighten the type. */
@media (min-width: 1025px) {
  #site-header .nav-links {
    gap: clamp(10px, calc(3vw - 20px), 26px) !important;
  }
}
@media (min-width: 1025px) and (max-width: 1239px) {
  #site-header .nav-links .nav-link {
    font-size: 12px;
    letter-spacing: 0.06em;
  }
}

/* =============================================================
   CINEMA LAYER (2026-11-15)
   Light, material and movement over the existing black and gold.
   Everything here is enhancement: with scripts off or reduced
   motion on, the page renders exactly as it did before.
   Script: /assets/js/ia-cinema.js
   ============================================================= */

/* ---- Page-to-page: the next page rises over the last one ---- */
@property --ia-load {
  syntax: "<angle>";
  inherits: false;
  initial-value: 360deg;
}
@view-transition { navigation: auto; }
#site-header { view-transition-name: ia-header; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) {
    animation: 300ms cubic-bezier(0.7, 0, 0.84, 0) both ia-vt-out;
  }
  ::view-transition-new(root) {
    animation: 760ms cubic-bezier(0.16, 1, 0.3, 1) both ia-vt-in;
  }
  ::view-transition-group(ia-header) { z-index: 2; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}
@keyframes ia-vt-out {
  to { opacity: 0; transform: scale(0.982); filter: brightness(0.35); }
}
@keyframes ia-vt-in {
  from { clip-path: inset(100% 0 0 0); transform: translateY(36px); }
  to   { clip-path: inset(0 0 0 0);    transform: none; }
}

@media (prefers-reduced-motion: no-preference) {

  /* ---- First arrival: the emblem is ringed in gold, then a seam opens the page (once per visit) ----
     Pure CSS, so it is on screen before any script runs and always clears itself. */
  html.ia-intro::before,
  html.ia-intro::after {
    content: '';
    position: fixed;
    left: 0;
    right: 0;
    height: 50.2vh;
    z-index: 99990;
    pointer-events: none;
    will-change: transform;
    background-repeat: no-repeat;
  }
  html.ia-intro::before {
    top: 0;
    /* the seam is a line that grows from the centre while the ring draws */
    background-image:
      linear-gradient(90deg, transparent, #FFF7D6 20%, var(--gold) 50%, #FFF7D6 80%, transparent),
      radial-gradient(ellipse 55% 75% at 50% 100%, rgba(var(--gold-rgb), 0.17), transparent 72%),
      linear-gradient(#000, #000);
    background-position: 50% 100%, 0 0, 0 0;
    background-size: 0% 1px, 100% 100%, 100% 100%;
    animation:
      ia-intro-seam 1250ms cubic-bezier(0.65, 0, 0.35, 1) 150ms both,
      ia-intro-up 950ms cubic-bezier(0.76, 0, 0.18, 1) 1600ms forwards;
  }
  html.ia-intro::after {
    bottom: 0;
    background-image:
      linear-gradient(90deg, transparent, #FFF7D6 20%, var(--gold) 50%, #FFF7D6 80%, transparent),
      radial-gradient(ellipse 55% 75% at 50% 0%, rgba(var(--gold-rgb), 0.17), transparent 72%),
      linear-gradient(#000, #000);
    background-position: 50% 0, 0 0, 0 0;
    background-size: 0% 1px, 100% 100%, 100% 100%;
    animation:
      ia-intro-seam 1250ms cubic-bezier(0.65, 0, 0.35, 1) 150ms both,
      ia-intro-down 950ms cubic-bezier(0.76, 0, 0.18, 1) 1600ms forwards;
  }
  html.ia-intro body::after {
    content: '';
    position: fixed;
    left: 50%;
    top: 50%;
    width: clamp(132px, 22vmin, 184px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 99991;
    pointer-events: none;
    /* top to bottom: the emblem, a black disc that leaves a thin rim, and the gold that fills that rim */
    background:
      url('/android-chrome-192x192.png') center / 58% no-repeat,
      radial-gradient(closest-side, #000 calc(100% - 3.5px), transparent calc(100% - 2.5px)),
      conic-gradient(from -90deg, #FFF7D6 0deg, var(--gold) calc(var(--ia-load) * 0.5), #FFF7D6 var(--ia-load), rgba(var(--gold-rgb), 0.14) var(--ia-load));
    box-shadow: 0 0 46px rgba(var(--gold-rgb), 0.3), 0 0 120px rgba(var(--gold-rgb), 0.18);
    animation:
      ia-intro-in 600ms cubic-bezier(0.16, 1, 0.3, 1) both,
      ia-intro-ring 1250ms cubic-bezier(0.65, 0, 0.35, 1) 150ms both,
      ia-intro-pop 520ms cubic-bezier(0.7, 0, 0.84, 0) 1400ms forwards;
  }
  @keyframes ia-intro-seam { to { background-size: 100% 1px, 100% 100%, 100% 100%; } }
  @keyframes ia-intro-up   { to { transform: translateY(-101%); } }
  @keyframes ia-intro-down { to { transform: translateY(101%); } }
  @keyframes ia-intro-in {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.86); filter: blur(8px); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1);    filter: blur(0); }
  }
  @keyframes ia-intro-ring { from { --ia-load: 0deg; } to { --ia-load: 360deg; } }
  @keyframes ia-intro-pop {
    35%  { opacity: 1; transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 0 70px rgba(255, 247, 214, 0.95), 0 0 180px rgba(var(--gold-rgb), 0.6); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5);  box-shadow: 0 0 140px rgba(var(--gold-rgb), 0), 0 0 260px rgba(var(--gold-rgb), 0); }
  }

  /* ---- Hero entrance: the headline is unveiled, then struck by light ---- */
  .hero-inner,
  .lp-hero-inner { animation: none; }
  .hero-inner > *,
  .lp-hero-inner > * {
    animation: ia-rise 1100ms cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(var(--ia-lead, 0ms) + 120ms);
  }
  .hero-inner > :nth-child(2), .lp-hero-inner > :nth-child(2) { animation-delay: calc(var(--ia-lead, 0ms) + 220ms); }
  .hero-inner > :nth-child(3), .lp-hero-inner > :nth-child(3) { animation-delay: calc(var(--ia-lead, 0ms) + 520ms); }
  .hero-inner > :nth-child(4), .lp-hero-inner > :nth-child(4) { animation-delay: calc(var(--ia-lead, 0ms) + 640ms); }
  .hero-inner > :nth-child(n+5), .lp-hero-inner > :nth-child(n+5) { animation-delay: calc(var(--ia-lead, 0ms) + 760ms); }
  html.ia-intro { --ia-lead: 1900ms; }

  .hero-inner > h1,
  .lp-hero-inner > h1 {
    animation-name: ia-unveil;
    animation-duration: 1500ms;
  }
  @keyframes ia-rise {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes ia-unveil {
    0%   { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(0.42em) scale(1.04); filter: blur(14px); letter-spacing: 0.02em; }
    35%  { opacity: 1; }
    100% { opacity: 1; clip-path: inset(-20% -10% -20% -10%); transform: none; filter: blur(0); }
  }

  /* ---- Gold foil: a band of white light crosses every gold line and follows the pointer ---- */
  .hero-headline em,
  .lp-hero h1 em,
  .section-headline em,
  .lp-section-headline em {
    --foil: 130%;
    background-image:
      linear-gradient(104deg, transparent 42%, rgba(255, 255, 255, 0.95) 50%, transparent 58%),
      var(--gold-gloss);
    background-size: 260% 100%, 100% 100%;
    background-position: var(--foil) 0, 0 0;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    transition: background-position 900ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  .hero-headline em,
  .lp-hero h1 em {
    animation: ia-foil 1700ms cubic-bezier(0.4, 0, 0.2, 1) calc(var(--ia-lead, 0ms) + 1250ms) both;
  }
  @keyframes ia-foil {
    from { background-position: 130% 0, 0 0; }
    to   { background-position: -40% 0, 0 0; }
  }

  /* ---- Molten gold canvas behind each hero ---- */
  .fx-aurum {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1800ms cubic-bezier(0.16, 1, 0.3, 1) calc(var(--ia-lead, 0ms) + 200ms);
    mix-blend-mode: screen;
  }
  .fx-aurum.is-lit { opacity: 1; }
  section.hero > .fx-aurum { z-index: 1; }
  section.lp-hero > .lp-hero-inner { position: relative; z-index: 2; }
  section.lp-hero::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 38%;
    background: linear-gradient(180deg, transparent, #000 92%);
    z-index: 1;
    pointer-events: none;
  }

  /* ---- Scroll choreography (classes are set by the script, only below the fold) ---- */
  .fx-pre {
    opacity: 0 !important;
    transform: translateY(34px) !important;
    filter: blur(8px);
    transition: none !important;
  }
  .fx-pre.fx-card {
    transform: perspective(1100px) translateY(54px) rotateX(14deg) scale(0.955) !important;
    transform-origin: 50% 100%;
    filter: blur(6px) brightness(1.9);
  }
  .fx-pre.fx-in {
    opacity: 1 !important;
    transform: none !important;
    filter: none;
    transition:
      opacity 900ms cubic-bezier(0.16, 1, 0.3, 1) calc(var(--fx-i, 0) * 80ms),
      transform 1150ms cubic-bezier(0.16, 1, 0.3, 1) calc(var(--fx-i, 0) * 80ms),
      filter 1150ms cubic-bezier(0.16, 1, 0.3, 1) calc(var(--fx-i, 0) * 80ms) !important;
  }
  .fx-pre.fx-line {
    opacity: 1 !important;
    transform: scaleX(0) !important;
    filter: none;
  }
  .fx-pre.fx-line.fx-in {
    transform: scaleX(1) !important;
    transition: transform 1500ms cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  /* A glint runs each gold rule from end to end, on a long quiet cycle */
  .hairline { position: relative; overflow: hidden; }
  .hairline::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: 0;
    width: 22%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
    transform: translateX(-120%);
    animation: ia-glint 7s cubic-bezier(0.4, 0, 0.2, 1) 1.6s infinite;
  }
  @keyframes ia-glint {
    0%   { transform: translateX(-120%); }
    34%  { transform: translateX(560%); }
    100% { transform: translateX(560%); }
  }

  /* ---- Cards under the pointer: lifted, lit, with a beam tracing the frame ---- */
  .fx-tilting {
    transition: transform 140ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 300ms cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 3;
    box-shadow:
      0 30px 70px rgba(0, 0, 0, 0.8),
      0 0 0 1px rgba(var(--gold-rgb), 0.5),
      0 0 46px rgba(var(--gold-rgb), 0.22) !important;
  }

  /* ---- Calls to action: a sheen crosses on hover ---- */
  .hero-cta-chrome { will-change: transform; }
  .hero-cta-chrome .hero-cta-chrome-inner { position: relative; overflow: hidden; }
  .hero-cta-chrome .hero-cta-chrome-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.85) 50%, transparent 65%);
    transform: translateX(-130%);
    pointer-events: none;
  }
  .hero-cta-chrome:hover .hero-cta-chrome-inner::after {
    transform: translateX(130%);
    transition: transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* ---- Lantern: the page is lit where the pointer is ---- */
  .fx-lantern {
    position: fixed;
    left: 0; top: 0;
    width: 760px; height: 760px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(var(--gold-rgb), 0.085), rgba(var(--gold-rgb), 0.03) 45%, transparent 72%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    mix-blend-mode: screen;
    transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
  }
  .fx-lantern.is-on { opacity: 1; }

  /* ---- Scroll progress: a gold thread across the top of the window ---- */
  .fx-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 2px;
    z-index: 1010;
    background: var(--gold-shimmer);
    box-shadow: 0 0 12px rgba(var(--gold-rgb), 0.7);
    transform-origin: 0 50%;
    transform: scaleX(0);
    pointer-events: none;
  }
  html[dir="rtl"] .fx-progress { transform-origin: 100% 50%; }
  @supports (animation-timeline: scroll()) {
    .fx-progress {
      animation: ia-progress linear both;
      animation-timeline: scroll(root block);
    }
    /* The hero recedes as the page takes over */
    /* Scale the film inside its frame: scaling the frame itself let the
       video spill past the hero onto the next section (fixed 2026-11-16). */
    section.hero .hero-video video {
      animation: ia-hero-depth linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 110vh;
    }
  }
  @keyframes ia-progress { to { transform: scaleX(1); } }
  @keyframes ia-hero-depth { to { transform: scale(1.16); filter: brightness(0.55); } }
}

/* ---- Film grain: still texture so the black reads as material, not as void ---- */
.fx-grain {
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}


/* =============================================================
   CINEMA LAYER, WAVE 2 (2026-11-16)
   Mega menu and home page sections. Enhancement only.
   ============================================================= */

/* ---- Mega menu: a lit, engraved panel that unrolls from the header ---- */
@media (min-width: 1025px) {
  #site-header .mega-panel {
    background:
      radial-gradient(90% 120% at 8% 0%, rgba(var(--gold-rgb), 0.13), transparent 58%),
      radial-gradient(70% 90% at 100% 100%, rgba(var(--gold-rgb), 0.07), transparent 62%),
      #000;
    border-bottom: 1px solid rgba(var(--gold-rgb), 0.6);
    box-shadow:
      0 1px 18px rgba(var(--gold-rgb), 0.28),
      0 40px 90px -20px #000;
  }
  /* The page dims beneath an open panel */
  #site-header .mega-panel::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 1px);
    height: 100vh;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.55));
    pointer-events: none;
  }
  #site-header .mega-list a { position: relative; isolation: isolate; }
  #site-header .mega-list a::before {
    content: '';
    position: absolute;
    inset-inline-start: -16px;
    top: 16%;
    bottom: 16%;
    width: 2px;
    background: var(--gold-gloss);
    box-shadow: 0 0 14px rgba(var(--gold-rgb), 0.8);
    transform: scaleY(0);
    transform-origin: 50% 0;
    transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  #site-header .mega-list a::after {
    content: '';
    position: absolute;
    inset: 0 -14px 0 -16px;
    z-index: -1;
    background: linear-gradient(90deg, rgba(var(--gold-rgb), 0.14), rgba(var(--gold-rgb), 0.03) 60%, transparent);
    opacity: 0;
    transition: opacity 300ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  html[dir="rtl"] #site-header .mega-list a::after {
    background: linear-gradient(270deg, rgba(var(--gold-rgb), 0.14), rgba(var(--gold-rgb), 0.03) 60%, transparent);
  }
  #site-header .mega-list a:hover::before,
  #site-header .mega-list a:focus-visible::before { transform: scaleY(1); }
  #site-header .mega-list a:hover::after,
  #site-header .mega-list a:focus-visible::after { opacity: 1; }
  #site-header .mega-list a:hover .mega-name {
    background: var(--gold-gloss);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
  #site-header .mega-list a .mega-icon { transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), filter 300ms cubic-bezier(0.16, 1, 0.3, 1); }
  #site-header .mega-list a:hover .mega-icon {
    transform: scale(1.22);
    filter: drop-shadow(0 0 10px rgba(var(--gold-rgb), 0.9));
  }
  /* The aside becomes an engraved plaque */
  #site-header .mega-aside {
    position: relative;
    align-self: start;
    padding: clamp(22px, 2.4vw, 32px);
    border: 1px solid rgba(var(--gold-rgb), 0.28);
    background:
      linear-gradient(rgba(var(--gold-rgb), 0.9), rgba(var(--gold-rgb), 0.9)) top 8px left 8px / 18px 1px no-repeat,
      linear-gradient(rgba(var(--gold-rgb), 0.9), rgba(var(--gold-rgb), 0.9)) top 8px left 8px / 1px 18px no-repeat,
      linear-gradient(rgba(var(--gold-rgb), 0.9), rgba(var(--gold-rgb), 0.9)) bottom 8px right 8px / 18px 1px no-repeat,
      linear-gradient(rgba(var(--gold-rgb), 0.9), rgba(var(--gold-rgb), 0.9)) bottom 8px right 8px / 1px 18px no-repeat,
      repeating-radial-gradient(circle at 100% 100%, transparent 0 9px, rgba(var(--gold-rgb), 0.075) 9px 10px),
      linear-gradient(180deg, rgba(22, 22, 22, 0.9), rgba(6, 6, 6, 0.9));
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
}
@media (min-width: 1025px) and (prefers-reduced-motion: no-preference) {
  #site-header .nav-item--mega:hover > .mega-panel,
  #site-header .nav-item--mega:focus-within > .mega-panel,
  #site-header .nav-item--mega.is-open > .mega-panel {
    animation: ia-mega-open 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  #site-header .nav-item--mega:hover > .mega-panel :is(.mega-eyebrow, .mega-list li, .mega-aside),
  #site-header .nav-item--mega:focus-within > .mega-panel :is(.mega-eyebrow, .mega-list li, .mega-aside),
  #site-header .nav-item--mega.is-open > .mega-panel :is(.mega-eyebrow, .mega-list li, .mega-aside) {
    animation: ia-mega-item 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(90ms + var(--mi, 0) * 38ms);
  }
  #site-header .mega-list li:nth-child(1) { --mi: 1; }
  #site-header .mega-list li:nth-child(2) { --mi: 2; }
  #site-header .mega-list li:nth-child(3) { --mi: 3; }
  #site-header .mega-list li:nth-child(4) { --mi: 4; }
  #site-header .mega-list li:nth-child(5) { --mi: 5; }
  #site-header .mega-list li:nth-child(6) { --mi: 6; }
  #site-header .mega-list li:nth-child(7) { --mi: 7; }
  #site-header .mega-list li:nth-child(8) { --mi: 8; }
  #site-header .mega-col:nth-child(2) .mega-list li { animation-delay: calc(170ms + var(--mi, 0) * 38ms) !important; }
  #site-header .mega-aside { --mi: 7; }
}
@keyframes ia-mega-open {
  from { clip-path: inset(0 0 100% 0); }
  to   { clip-path: inset(0 0 -100vh 0); }
}
@keyframes ia-mega-item {
  from { opacity: 0; transform: translateY(18px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* ---- Home: The Framework stands on a gold floor plan that runs to the horizon ---- */
#framework {
  position: relative;
  overflow: clip;
  isolation: isolate;
}
#framework::before {
  content: '';
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: -2%;
  height: 78%;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(var(--gold-rgb), 0.6) 1px, transparent 1px) 0 0 / 100% 72px,
    linear-gradient(90deg, rgba(var(--gold-rgb), 0.6) 1px, transparent 1px) 50% 0 / 72px 100%;
  transform: perspective(620px) rotateX(66deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 50% 100%, #000 0%, rgba(0, 0, 0, 0.6) 50%, transparent 82%);
  mask-image: radial-gradient(ellipse 70% 100% at 50% 100%, #000 0%, rgba(0, 0, 0, 0.6) 50%, transparent 82%);
  opacity: 0.85;
}
#framework::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 50% 80% at 50% 100%, rgba(var(--gold-rgb), 0.2), transparent 70%);
}

/* ---- Home: the engine turns behind its own headline ---- */
#engine .engine-header {
  position: relative;
  isolation: isolate;
}
#engine .engine-header::before,
#engine .engine-header::after {
  content: '';
  position: absolute;
  left: 50%;
  top: clamp(90px, 11vw, 150px);
  width: min(118vw, 1040px);
  aspect-ratio: 1;
  margin-left: calc(min(118vw, 1040px) / -2);
  margin-top: calc(min(118vw, 1040px) / -2);
  border-radius: 50%;
  border: 1px solid rgba(var(--gold-rgb), 0.16);
  border-top-color: rgba(255, 240, 190, 0.95);
  border-right-color: rgba(var(--gold-rgb), 0.5);
  z-index: -1;
  pointer-events: none;
  transform: rotateX(74deg) rotateZ(0deg);
  filter: drop-shadow(0 0 10px rgba(var(--gold-rgb), 0.55));
}
#engine .engine-header::after {
  width: min(84vw, 740px);
  margin-left: calc(min(84vw, 740px) / -2);
  margin-top: calc(min(84vw, 740px) / -2);
  transform: rotateX(74deg) rotateZ(140deg);
  opacity: 0.75;
}
#engine { overflow-x: clip; }

/* ---- Home: The Advantage sits on a field of data the pointer uncovers ---- */
#intelligence {
  position: relative;
  isolation: isolate;
}
#intelligence::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle, rgba(var(--gold-rgb), 1) 1.1px, transparent 1.9px) 0 0 / 24px 24px;
  -webkit-mask-image: radial-gradient(460px circle at var(--px, 50%) var(--py, 22%), #000, rgba(0, 0, 0, 0.35) 45%, transparent 72%);
  mask-image: radial-gradient(460px circle at var(--px, 50%) var(--py, 22%), #000, rgba(0, 0, 0, 0.35) 45%, transparent 72%);
  opacity: 0.85;
}

/* ---- Home: the closing invitation carries the hero's gold filaments ---- */
#inquiry.inquiry-section {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
#inquiry.inquiry-section > .section-inner { position: relative; z-index: 2; }
#inquiry.inquiry-section > .fx-aurum {
  top: auto;
  bottom: 0;
  height: min(520px, 60%);
}

@media (prefers-reduced-motion: no-preference) {
  #framework::before { animation: ia-floor 7s linear infinite; }
  @keyframes ia-floor {
    to { background-position: 0 72px, 50% 0; }
  }
  #framework .mk-tile-icon--roman { animation: ia-numeral 6s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
  #framework .mk-tile:nth-child(2) .mk-tile-icon--roman { animation-delay: 2s; }
  #framework .mk-tile:nth-child(3) .mk-tile-icon--roman { animation-delay: 4s; }
  @keyframes ia-numeral {
    0%, 60%, 100% { filter: none; transform: none; }
    18% { filter: drop-shadow(0 0 16px rgba(var(--gold-rgb), 1)) brightness(1.5); transform: scale(1.14); }
  }

  #engine .engine-header::before { animation: ia-orbit 26s linear infinite; }
  #engine .engine-header::after  { animation: ia-orbit-b 17s linear infinite; }
  @keyframes ia-orbit   { to { transform: rotateX(74deg) rotateZ(360deg); } }
  @keyframes ia-orbit-b { from { transform: rotateX(74deg) rotateZ(140deg); } to { transform: rotateX(74deg) rotateZ(-220deg); } }

  /* The pullquote is spoken as it is read: words light with the scroll */
  .engine-pullquote .fx-w {
    opacity: 0.16;
    filter: blur(2px);
    transition: opacity 500ms cubic-bezier(0.16, 1, 0.3, 1), filter 500ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  .engine-pullquote .fx-w.is-lit { opacity: 1; filter: none; }
  /* gold words carry their own foil, so dimming one never leaves it lit by the parent */
  .engine-pullquote em:has(.fx-w) { background: none; }
  .engine-pullquote em .fx-w {
    background: var(--gold-gloss);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }

  /* Recognition: light passes from one masthead to the next */
  .press-row > span:not(.press-sep) { animation: ia-press 9s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
  .press-row > span:nth-child(3)  { animation-delay: 0.9s; }
  .press-row > span:nth-child(5)  { animation-delay: 1.8s; }
  .press-row > span:nth-child(7)  { animation-delay: 2.7s; }
  .press-row > span:nth-child(9)  { animation-delay: 3.6s; }
  .press-row > span:nth-child(11) { animation-delay: 4.5s; }
  .press-row:hover > span { animation-play-state: paused; }
  @keyframes ia-press {
    0%, 22%, 100% { color: var(--text-1); text-shadow: none; }
    9% { color: #fff; text-shadow: 0 0 18px rgba(var(--gold-rgb), 0.95), 0 0 42px rgba(var(--gold-rgb), 0.5); }
  }
}
#inquiry.inquiry-section .inquiry-signoff { text-shadow: 0 0 14px #000, 0 0 5px #000, 0 1px 2px #000; }

/* =============================================================
   CINEMA LAYER, WAVE 3 (2026-11-16)
   Audience and capability pages (lp-*), and the Strategic Online
   Overview (so-*). Enhancement only. Selectors carry `main` so they
   outrank the page-level stylesheets that load after this file.
   ============================================================= */

/* The menu hangs from the header itself, so it is flush at every header height */
@media (min-width: 1025px) {
  #site-header .mega-panel,
  #site-header.scrolled .mega-panel { top: 100%; }
}

/* ---- Every section is lit from an alternating side ---- */
main .lp-section {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
}
main .lp-section::before {
  content: '';
  position: absolute;
  top: 6%;
  left: -18vw;
  width: 62vw;
  height: 88%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--gold-rgb), 0.11), rgba(var(--gold-rgb), 0.035) 55%, transparent 78%);
}
main .lp-section:nth-of-type(even)::before {
  left: auto;
  right: -18vw;
}

/* ---- Timeline instrument: a gold spine with a node at each date ---- */
@media (min-width: 761px) {
  main .lp-timeline li { position: relative; }
  main .lp-timeline li::after {
    content: '';
    position: absolute;
    left: 205px;
    top: -1px;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, rgba(var(--gold-rgb), 0.55), rgba(var(--gold-rgb), 0.18));
  }
  main .lp-timeline li::before {
    content: '';
    position: absolute;
    left: 201px;
    top: 30px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gold-hot);
    box-shadow: 0 0 0 4px rgba(var(--gold-rgb), 0.16), 0 0 16px rgba(var(--gold-rgb), 0.95);
    z-index: 1;
  }
  html[dir="rtl"] main .lp-timeline li::after { left: auto; right: 205px; }
  html[dir="rtl"] main .lp-timeline li::before { left: auto; right: 201px; }
}

/* ---- Stat cards: the figure sits over a pool of gold light ---- */
main .lp-stat { isolation: isolate; overflow: hidden; }
main .lp-stat::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  top: -40%;
  height: 90%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--gold-rgb), 0.22), transparent 75%);
}
main .lp-stat::before { height: 2px; box-shadow: 0 0 14px rgba(var(--gold-rgb), 0.8); }

/* ---- The closing line of every page stands in the hero's gold filaments ---- */
main .lp-inquiry {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-top: clamp(110px, 13vw, 200px);
  padding-bottom: clamp(110px, 13vw, 200px);
}
main .lp-inquiry > .lp-inquiry-inner { position: relative; z-index: 2; }
main .lp-inquiry h2 { text-shadow: 0 0 22px #000, 0 0 8px #000; }

/* ---- Overview: the readiness score sits inside a tier-coloured dial ---- */
@property --ia-sweep {
  syntax: "<angle>";
  inherits: false;
  initial-value: 270deg;
}
main .so-orb { overflow: hidden; }
main .so-orb-figure {
  position: relative;
  isolation: isolate;
  /* room for the dial: its radius, less half the figure's own line */
  margin: calc(107px - 0.5em + 22px) 0 calc(107px - 0.5em + 26px);
}
main .so-orb-figure::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 214px;
  height: 214px;
  margin: -107px 0 0 -107px;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
  background: conic-gradient(from 225deg,
    #B4453A 0deg, #C25A45 50deg, #C98A31 105deg, #D4A843 175deg, #7FA36F var(--ia-sweep),
    rgba(255, 255, 255, 0.07) var(--ia-sweep), rgba(255, 255, 255, 0.07) 270deg, transparent 270deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 7px), #000 calc(100% - 6px), #000 calc(100% - 1px), transparent 100%);
  mask: radial-gradient(closest-side, transparent calc(100% - 7px), #000 calc(100% - 6px), #000 calc(100% - 1px), transparent 100%);
  filter: drop-shadow(0 0 10px rgba(var(--gold-rgb), 0.55));
}
main .so-orb-figure::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 250px;
  height: 250px;
  margin: -125px 0 0 -125px;
  border-radius: 50%;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--gold-rgb), 0.2), transparent 72%);
}

/* The tier scale: each tier glows in its own tone */
main .so-tier { isolation: isolate; overflow: hidden; }
main .so-tier::before { height: 3px; box-shadow: 0 0 16px var(--tone); }
main .so-tier::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 22%, transparent), transparent 70%);
  opacity: 0.55;
}

/* Examined sections: a gold bar and wash mark the row in hand */
main .so-row > summary { position: relative; isolation: isolate; }
main .so-row > summary::before {
  content: '';
  position: absolute;
  inset-inline-start: -14px;
  top: 18%;
  bottom: 18%;
  width: 2px;
  background: var(--gold-gloss);
  box-shadow: 0 0 14px rgba(var(--gold-rgb), 0.85);
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
main .so-row > summary:hover::before,
main .so-row[open] > summary::before { transform: scaleY(1); }
main .so-row > summary:hover,
main .so-row[open] > summary {
  background: linear-gradient(90deg, rgba(var(--gold-rgb), 0.13), rgba(var(--gold-rgb), 0.02) 60%, transparent);
}
main .so-row .so-row-title { transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1); }
main .so-row > summary:hover .so-row-title { transform: translateX(8px); }
html[dir="rtl"] main .so-row > summary:hover .so-row-title { transform: translateX(-8px); }
main .so-row > summary:hover .so-num { filter: drop-shadow(0 0 10px rgba(var(--gold-rgb), 0.9)); }

/* The three questions are being asked: a caret holds at the end of each */
main .so-query .so-query-text::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-inline-start: 5px;
  vertical-align: -0.12em;
  background: var(--gold-hot);
  box-shadow: 0 0 10px rgba(var(--gold-rgb), 0.9);
}
main .so-query,
main .so-chip {
  position: relative;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(var(--gold-rgb), 0.1), transparent 60%),
    rgba(10, 10, 10, 0.5);
}
main .so-chip::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--tone, var(--gold));
  box-shadow: 0 0 14px var(--tone, var(--gold));
}

@media (prefers-reduced-motion: no-preference) {
  /* Dimension cells light one after another, like a board being read */
  main .so-dim { animation: ia-dim 9s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
  main .so-dim:nth-child(2) { animation-delay: 0.45s; }
  main .so-dim:nth-child(3) { animation-delay: 0.9s; }
  main .so-dim:nth-child(4) { animation-delay: 1.35s; }
  main .so-dim:nth-child(5) { animation-delay: 1.8s; }
  main .so-dim:nth-child(6) { animation-delay: 2.25s; }
  main .so-dim:nth-child(7) { animation-delay: 2.7s; }
  main .so-dim:nth-child(8) { animation-delay: 3.15s; }
  main .so-dim:nth-child(9) { animation-delay: 3.6s; }
  @keyframes ia-dim {
    0%, 14%, 100% { background-color: #060606; box-shadow: none; }
    6% { background-color: #241a05; box-shadow: inset 0 0 0 1px rgba(var(--gold-rgb), 0.9), inset 0 0 26px rgba(var(--gold-rgb), 0.28); }
  }
  main .so-query .so-query-text::after { animation: ia-caret 1.1s steps(1, end) infinite; }
  @keyframes ia-caret { 50% { opacity: 0; } }

  /* The fee figure and the score catch a passing light */
  main .so-value-figure,
  main .so-orb-figure {
    background-image:
      linear-gradient(104deg, transparent 42%, rgba(255, 255, 255, 0.95) 50%, transparent 58%),
      var(--gold-gloss);
    background-size: 260% 100%, 100% 100%;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    animation: ia-foil-loop 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  }
  @keyframes ia-foil-loop {
    0%, 55% { background-position: 130% 0, 0 0; }
    100%    { background-position: -40% 0, 0 0; }
  }

  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    /* Section light drifts against the scroll */
    main .lp-section::before {
      animation: ia-pool linear both;
      animation-timeline: view();
    }
    @keyframes ia-pool {
      from { transform: translateY(14%); }
      to   { transform: translateY(-14%); }
    }
    /* Timeline: each date comes into force as it reaches the reader */
    main .lp-timeline li {
      animation: ia-tl linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 42%;
    }
    @keyframes ia-tl {
      from { opacity: 0.28; }
      to   { opacity: 1; }
    }
    /* Assumption and record: the assumption is struck as the record arrives */
    main .lp-contrast-a {
      text-decoration: line-through;
      text-decoration-thickness: 1px;
      text-decoration-color: transparent;
      animation: ia-strike linear both;
      animation-timeline: view();
      animation-range: cover 22% cover 46%;
    }
    @keyframes ia-strike { to { text-decoration-color: rgba(var(--gold-rgb), 0.95); } }
    main .lp-contrast-b {
      animation: ia-record linear both;
      animation-timeline: view();
      animation-range: cover 22% cover 46%;
    }
    @keyframes ia-record {
      from { opacity: 0.3; }
      to   { opacity: 1; color: var(--text-0); }
    }
    /* The dial fills as the scorecard arrives; examined rows come up to full strength */
    main .so-orb-figure::before {
      animation: ia-dial linear both;
      animation-timeline: view();
      animation-range: entry 30% cover 48%;
    }
    @keyframes ia-dial {
      from { --ia-sweep: 0deg; }
      to   { --ia-sweep: 270deg; }
    }
    main .so-row {
      animation: ia-tl linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 24%;
    }
  }
}
main .lp-inquiry h2 em { text-shadow: none; }

/* =============================================================
   CINEMA LAYER, WAVE 4 (2026-11-16)
   Essays and dispatches, their index pages, the principal page
   and the inquiry form. Enhancement only.
   ============================================================= */

/* ---- Essay index: each essay is a full-width row with its teaser set beside it ---- */
main .lp-thought-list { text-align: start; }
main .lp-thought-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) 34px;
  column-gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: 34px 6px 34px 2px;
  text-align: start;
  transition: none;
}
main .lp-thought-card:hover { opacity: 1; }
main .lp-thought-title {
  margin: 0;
  font-size: clamp(24px, 2.7vw, 34px);
  line-height: 1.15;
  color: var(--text-0);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
main .lp-thought-teaser {
  max-width: none;
  color: var(--text-2);
}
/* a drawn arrow in the last column */
main .lp-thought-card::after {
  content: '';
  justify-self: end;
  width: 26px;
  height: 12px;
  background:
    linear-gradient(var(--gold), var(--gold)) 0 50% / 100% 1px no-repeat;
  -webkit-mask: none;
  clip-path: polygon(0 40%, 76% 40%, 76% 0, 100% 50%, 76% 100%, 76% 60%, 0 60%);
  background: var(--gold-gloss);
  opacity: 0.55;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), opacity 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
main .lp-thought-card::before {
  content: '';
  position: absolute;
  inset: 0 0 0 -16px;
  z-index: -1;
  background:
    linear-gradient(var(--gold-hot), var(--gold-hot)) 0 50% / 2px 56% no-repeat,
    linear-gradient(90deg, rgba(var(--gold-rgb), 0.14), rgba(var(--gold-rgb), 0.02) 60%, transparent);
  opacity: 0;
  transition: opacity 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
main .lp-thought-card:hover::before,
main .lp-thought-card:focus-visible::before { opacity: 1; }
main .lp-thought-card:hover::after,
main .lp-thought-card:focus-visible::after { opacity: 1; transform: translateX(8px); }
main .lp-thought-card:hover .lp-thought-title {
  transform: translateX(10px);
  background: var(--gold-gloss);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
html[dir="rtl"] main .lp-thought-card::after { transform: scaleX(-1); }
@media (max-width: 760px) {
  main .lp-thought-card {
    grid-template-columns: minmax(0, 1fr) 26px;
    row-gap: 10px;
  }
  main .lp-thought-teaser { grid-column: 1; grid-row: 2; }
  main .lp-thought-card::after { grid-column: 2; grid-row: 1; }
}

/* ---- Long-form essays: an illuminated opening and a reading spine ---- */
main .lp-essay-inner { position: relative; }
main .lp-essay-inner > p:first-of-type {
  font-size: clamp(19px, 1.75vw, 22px);
  line-height: 1.7;
  color: var(--text-1);
}
main .lp-essay-inner > p:first-of-type::first-letter {
  float: left;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 5.1em;
  line-height: 0.8;
  padding: 0.07em 0.12em 0 0;
  color: var(--gold-hot);
  text-shadow: 0 0 28px rgba(var(--gold-rgb), 0.75), 0 0 2px rgba(var(--gold-rgb), 0.9);
}
html[dir="rtl"] main .lp-essay-inner > p:first-of-type::first-letter { float: right; padding: 0.07em 0 0 0.12em; }
main .lp-essay-inner h2 {
  position: relative;
  padding-top: 26px;
}
main .lp-essay-inner h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 64px;
  height: 2px;
  background: var(--gold-gloss);
  box-shadow: 0 0 14px rgba(var(--gold-rgb), 0.8);
}
@media (min-width: 980px) {
  main .lp-essay-inner::before,
  main .lp-essay-inner::after {
    content: '';
    position: absolute;
    left: -56px;
    top: 6px;
    bottom: 6px;
    width: 1px;
  }
  main .lp-essay-inner::before { background: rgba(var(--gold-rgb), 0.16); }
  main .lp-essay-inner::after {
    width: 2px;
    left: -56.5px;
    background: var(--gold-gloss);
    box-shadow: 0 0 14px rgba(var(--gold-rgb), 0.85);
    transform-origin: 50% 0;
  }
  html[dir="rtl"] main .lp-essay-inner::before,
  html[dir="rtl"] main .lp-essay-inner::after { left: auto; right: -56px; }
}

/* ---- Dispatches: the closing line of each argument is set as a pull quote ---- */
main[data-ia="essay"] .lp-callout {
  max-width: 820px;
  padding: clamp(34px, 4vw, 54px) clamp(28px, 4vw, 60px);
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.3;
}
main[data-ia="essay"] .lp-section-headline { font-size: clamp(34px, 4.6vw, 60px); }

/* ---- Principal: a turning gold ring around the portrait ---- */
main .principal-portrait {
  position: relative;
  overflow: visible;
  isolation: isolate;
}
main .principal-portrait img { border-radius: 50%; }
main .principal-portrait::before,
main .principal-portrait::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
main .principal-portrait::before {
  inset: -13px;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(var(--gold-rgb), 0.15) 120deg, #FFF7D6 178deg, var(--gold) 200deg, transparent 262deg, transparent 360deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2px), #000 calc(100% - 0.5px), transparent 100%);
  mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2px), #000 calc(100% - 0.5px), transparent 100%);
  filter: drop-shadow(0 0 8px rgba(var(--gold-rgb), 0.9));
}
main .principal-portrait::after {
  inset: -46px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(var(--gold-rgb), 0.3), rgba(var(--gold-rgb), 0.06) 62%, transparent 76%);
}

/* ---- Principal: the four facts under the hero ---- */
.principal-glance {
  padding: 0 var(--gutter) clamp(56px, 7vw, 96px);
}
.principal-glance-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid rgba(var(--gold-rgb), 0.55);
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.22);
}
.principal-glance-inner > div {
  padding: 26px 24px 28px;
  text-align: center;
  border-left: 1px solid rgba(var(--gold-rgb), 0.22);
}
.principal-glance-inner > div:first-child { border-left: 0; }
.principal-glance dt {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #E8C16A;
}
.principal-glance dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(19px, 1.7vw, 23px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-0);
  text-wrap: balance;
}
.principal-glance dd > span,
.principal-glance dd > a { white-space: nowrap; }
.principal-glance dd a {
  color: inherit;
  text-decoration: none;
  background: linear-gradient(var(--gold-hot), var(--gold-hot)) 0 100% / 0 1px no-repeat;
  transition: background-size 300ms cubic-bezier(0.16, 1, 0.3, 1), color 200ms ease;
}
.principal-glance dd a:hover,
.principal-glance dd a:focus-visible { color: var(--gold-hot); background-size: 100% 1px; }
.principal-glance dd a:focus-visible { outline: 2px solid #E8C16A; outline-offset: 3px; }
@media (max-width: 900px) {
  .principal-glance-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principal-glance-inner > div:nth-child(odd) { border-left: 0; }
  .principal-glance-inner > div:nth-child(n + 3) { border-top: 1px solid rgba(var(--gold-rgb), 0.22); }
}
@media (max-width: 480px) {
  .principal-glance-inner > div { padding: 20px 10px 22px; }
  .principal-glance dt { font-size: 10.5px; letter-spacing: 0.16em; }
  .principal-glance dd { font-size: 18px; }
}
@media (max-width: 340px) {
  .principal-glance-inner { grid-template-columns: 1fr; }
  .principal-glance-inner > div { border-left: 0; }
  .principal-glance-inner > div + div { border-top: 1px solid rgba(var(--gold-rgb), 0.22); }
}

/* ---- Principal: his line, set alone under the record ---- */
.principal-line {
  max-width: 960px;
  margin: clamp(64px, 8vw, 112px) auto 0;
  padding: 0;
  text-align: center;
}
.principal-line::before {
  content: '\201C';
  display: block;
  height: 0.5em;
  font-family: var(--serif);
  font-size: clamp(72px, 9vw, 128px);
  line-height: 1;
  background: var(--gold-gloss);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.principal-line blockquote { margin: 0; padding: 0; border: 0; }
.principal-line p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4.6vw, 64px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text-0);
  text-wrap: balance;
}
.principal-line p em {
  display: block;
  padding-bottom: 0.08em;
  font-style: italic;
  background: var(--gold-gloss);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.principal-line figcaption {
  margin-top: 26px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #E8C16A;
}
.principal-line figcaption::before {
  content: '';
  display: block;
  width: 56px;
  height: 1px;
  margin: 0 auto 18px;
  background: rgba(var(--gold-rgb), 0.72);
}

/* His name in Arabic inside the editors' copy list: the same cut of Amiri as the hero */
.principal-ar-inline {
  font-family: 'Amiri Name', 'Amiri', 'Traditional Arabic', serif;
  font-size: 1.5em;
  line-height: 1.2;
}

/* The record: the chapter in hand is marked, and its tags answer the pointer */
main .lp-register tbody tr {
  position: relative;
  isolation: isolate;
}
/* The highlight hangs off the row's first cell, positioned against the row. It cannot hang off the
   row itself: a positioned child of a table row gets its own unnamed cell in Chromium, which pushed
   every body row one column to the right of its heading (fixed 2026-11-24). */
main .lp-register tbody tr > th:first-child::before {
  content: '';
  position: absolute;
  /* stays inside the row: the register scrolls sideways when anything overhangs it */
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(var(--gold-hot), var(--gold-hot)) 0 50% / 2px 62% no-repeat,
    linear-gradient(90deg, rgba(var(--gold-rgb), 0.12), rgba(var(--gold-rgb), 0.02) 55%, transparent);
  opacity: 0;
  transition: opacity 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
main .lp-register tbody tr:hover > th:first-child::before { opacity: 1; }
/* Room between the gold marker and the chapter name, on the table layout only */
@media (min-width: 721px) {
  main .lp-register thead th:first-child,
  main .lp-register tbody th { padding-left: 18px; }
}
main .lp-reg-tags span,
main .lp-reg-tags a {
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 200ms cubic-bezier(0.16, 1, 0.3, 1), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
main .lp-reg-tags span:hover,
main .lp-reg-tags a:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--gold-rgb), 0.95);
  box-shadow: 0 0 16px rgba(var(--gold-rgb), 0.55), inset 0 0 10px rgba(var(--gold-rgb), 0.18);
}

/* ---- Inquiry form: the field in hand is underlined in gold, and the frame answers ---- */
main .inquiry-form label { position: relative; }
main .inquiry-form label::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold-shimmer);
  box-shadow: 0 0 14px rgba(var(--gold-rgb), 0.8);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
html[dir="rtl"] main .inquiry-form label::after { transform-origin: 100% 50%; }
main .inquiry-form label:focus-within::after { transform: scaleX(1); }
main .inquiry-form label .label-text { transition: color 200ms ease; }
main .inquiry-form label:focus-within .label-text { color: var(--gold-hot); }
main .inquiry-form:focus-within {
  border-color: rgba(var(--gold-rgb), 0.55);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 0 0 1px rgba(var(--gold-rgb), 0.3),
    0 0 70px rgba(var(--gold-rgb), 0.16),
    0 8px 30px rgba(0, 0, 0, 0.6);
}

@media (prefers-reduced-motion: no-preference) {
  main .principal-portrait::before { animation: ia-ring 9s linear infinite; }
  @keyframes ia-ring { to { transform: rotate(360deg); } }
  main .principal-portrait::after { animation: ia-halo 5s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate; }
  @keyframes ia-halo { from { opacity: 0.55; transform: scale(0.94); } to { opacity: 1; transform: scale(1.04); } }

  /* a gold glint crosses the name in Arabic */
  main .principal-name-ar {
    background-image:
      linear-gradient(104deg, transparent 42%, #F9E08C 50%, transparent 58%),
      linear-gradient(var(--text-0), var(--text-0));
    background-size: 260% 100%, 100% 100%;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: ia-foil-loop 7s cubic-bezier(0.4, 0, 0.2, 1) 1.2s infinite;
  }

  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    /* the spine fills as the essay is read; each paragraph comes up to strength */
    main .lp-essay-inner::after {
      animation: ia-spine linear both;
      animation-timeline: view();
      animation-range: entry 100% exit 0%;
    }
    @keyframes ia-spine { from { transform: scaleY(0); } to { transform: scaleY(1); } }
    main .lp-essay-inner > p,
    main .lp-essay-inner > h2,
    main .lp-register tbody tr,
    main .lp-thought-card {
      animation: ia-tl linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 26%;
    }
  }
}


/* =============================================================
   CINEMA LAYER, WAVE 5 (2026-11-16)
   Privacy and terms. (The 404 page is self-contained and carries
   its own styles inline.) Enhancement only.
   ============================================================= */

/* Any block marked data-ia-aurum receives the gold filament canvas */
main.legal {
  position: relative;
  isolation: isolate;
}
main.legal > .fx-aurum {
  top: 82px;
  left: calc(50% - 50vw);
  width: 100vw;
  /* a short band under the header: the filaments stay clear of the title and the opening text */
  height: 132px;
  z-index: -1;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
  mask-image: linear-gradient(180deg, #000 60%, transparent);
}
body:has(> main.legal) { overflow-x: clip; }

main.legal h1 { font-size: clamp(44px, 6.4vw, 84px); line-height: 1.05; margin-bottom: 14px; }
main.legal h1 em { padding: 0 0.06em 0.08em; }

/* Contents: an engraved plaque, each entry marked under the pointer */
main.legal .legal-toc {
  position: relative;
  padding: 38px 36px 34px;
  border: 1px solid rgba(var(--gold-rgb), 0.4);
  background:
    linear-gradient(rgba(var(--gold-rgb), 0.9), rgba(var(--gold-rgb), 0.9)) top 9px left 9px / 20px 1px no-repeat,
    linear-gradient(rgba(var(--gold-rgb), 0.9), rgba(var(--gold-rgb), 0.9)) top 9px left 9px / 1px 20px no-repeat,
    linear-gradient(rgba(var(--gold-rgb), 0.9), rgba(var(--gold-rgb), 0.9)) top 9px right 9px / 20px 1px no-repeat,
    linear-gradient(rgba(var(--gold-rgb), 0.9), rgba(var(--gold-rgb), 0.9)) top 9px right 9px / 1px 20px no-repeat,
    linear-gradient(rgba(var(--gold-rgb), 0.9), rgba(var(--gold-rgb), 0.9)) bottom 9px left 9px / 20px 1px no-repeat,
    linear-gradient(rgba(var(--gold-rgb), 0.9), rgba(var(--gold-rgb), 0.9)) bottom 9px left 9px / 1px 20px no-repeat,
    linear-gradient(rgba(var(--gold-rgb), 0.9), rgba(var(--gold-rgb), 0.9)) bottom 9px right 9px / 20px 1px no-repeat,
    linear-gradient(rgba(var(--gold-rgb), 0.9), rgba(var(--gold-rgb), 0.9)) bottom 9px right 9px / 1px 20px no-repeat,
    repeating-radial-gradient(circle at 100% 100%, transparent 0 9px, rgba(var(--gold-rgb), 0.06) 9px 10px),
    linear-gradient(180deg, rgba(22, 22, 22, 0.92), rgba(6, 6, 6, 0.92));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(var(--gold-rgb), 0.08);
}
main.legal .legal-toc ol { gap: 2px 28px; }
main.legal .legal-toc a {
  position: relative;
  isolation: isolate;
  justify-content: flex-start;
  padding: 9px 12px;
  text-align: start;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
main.legal .legal-toc a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(var(--gold-hot), var(--gold-hot)) 0 50% / 2px 60% no-repeat,
    linear-gradient(90deg, rgba(var(--gold-rgb), 0.16), rgba(var(--gold-rgb), 0.02) 70%, transparent);
  opacity: 0;
  transition: opacity 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
main.legal .legal-toc a:hover::after,
main.legal .legal-toc a:focus-visible::after { opacity: 1; }
main.legal .legal-toc a:hover { transform: translateX(4px); }

/* Each numbered section opens under a short gold rule */
main.legal h2 {
  position: relative;
  margin-top: 72px;
  padding-top: 30px;
  font-size: clamp(26px, 2.7vw, 34px);
}
main.legal h2::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 72px;
  height: 2px;
  margin-left: -36px;
  background: var(--gold-gloss);
  box-shadow: 0 0 14px rgba(var(--gold-rgb), 0.8);
}
main.legal .callout {
  box-shadow: 0 0 40px rgba(var(--gold-rgb), 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

@media (prefers-reduced-motion: no-preference) {
  main.legal > * { animation: ia-rise 1000ms cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(var(--ia-lead, 0ms) + 120ms); }
  main.legal > .fx-aurum { animation: none; }
  main.legal > :nth-child(n+6) { animation: none; }
  main.legal h1 em {
    background-image:
      linear-gradient(104deg, transparent 42%, rgba(255, 255, 255, 0.95) 50%, transparent 58%),
      var(--gold-gloss);
    background-size: 260% 100%, 100% 100%;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    animation: ia-foil 1700ms cubic-bezier(0.4, 0, 0.2, 1) calc(var(--ia-lead, 0ms) + 900ms) both;
  }
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    main.legal h2::before {
      transform-origin: 50% 50%;
      animation: ia-rule linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 30%;
    }
    @keyframes ia-rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
    main.legal h2,
    main.legal h2 ~ p,
    main.legal h2 ~ ul,
    main.legal h2 ~ h3 {
      animation: ia-tl linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 22%;
    }
  }
}

/* =============================================================
   SET PIECES (2026-11-17)
   The Seal, the structure map, the pinned pillars, the globe.
   Script: /assets/js/ia-set.js (home pages and Global Reach only).
   Every rule here keys off a class that script adds, so nothing
   changes when the script does not run.
   ============================================================= */

/* ---- 1. The Seal: a struck gold medallion at the head of the home page ---- */
.fx-seal {
  position: relative;
  /* canvas box. The coin is drawn at 1/1.12 of it, leaving room for its edge as it tilts. */
  width: clamp(264px, 37.3vh, 415px); /* 44% larger than 2026-11-17 (two 20% steps), 2026-11-18 */
  aspect-ratio: 1;
  /* it follows the headline */
  margin: clamp(6px, 1.5vh, 18px) auto clamp(22px, 3.4vh, 40px);
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 1400ms cubic-bezier(0.16, 1, 0.3, 1), transform 1800ms cubic-bezier(0.16, 1, 0.3, 1);
  animation: none !important;
}
.fx-seal.is-lit { opacity: 1; transform: none; transition-delay: calc(var(--ia-lead, 0ms) + 150ms); }
.fx-seal canvas { display: block; width: 100%; height: 100%; }
/* no halo: the coin sits on plain black */
/* The Seal replaces the stock film: the hero becomes black, gold and light */
section.hero.has-seal .hero-video { opacity: 0; visibility: hidden; transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 900ms; }
section.hero.has-seal::before {
  background:
    radial-gradient(ellipse 46% 60% at 50% 0%, rgba(var(--gold-rgb), 0.16), transparent 70%),
    #000;
}
section.hero.has-seal > .fx-aurum { opacity: 1; }
@media (max-width: 640px) {
  .fx-seal { width: clamp(208px, 60.7vw, 276px); }
}

/* ---- 2. The structure map: the house, drawn ---- */
.fx-map { position: relative; isolation: isolate; overflow-x: clip; }
.fx-map .section-inner { position: relative; }
.fx-map::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: min(120vw, 1300px);
  height: 70%;
  transform: translateX(-50%);
  z-index: -1;
  background: radial-gradient(ellipse 50% 60% at 50% 0%, rgba(var(--gold-rgb), 0.16), transparent 72%);
  pointer-events: none;
}
.fx-map-apex {
  position: relative;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 22px 34px;
  border: 1px solid rgba(var(--gold-rgb), 0.55);
  background:
    linear-gradient(rgba(var(--gold-rgb), 0.95), rgba(var(--gold-rgb), 0.95)) top 7px left 7px / 16px 1px no-repeat,
    linear-gradient(rgba(var(--gold-rgb), 0.95), rgba(var(--gold-rgb), 0.95)) top 7px left 7px / 1px 16px no-repeat,
    linear-gradient(rgba(var(--gold-rgb), 0.95), rgba(var(--gold-rgb), 0.95)) bottom 7px right 7px / 16px 1px no-repeat,
    linear-gradient(rgba(var(--gold-rgb), 0.95), rgba(var(--gold-rgb), 0.95)) bottom 7px right 7px / 1px 16px no-repeat,
    linear-gradient(180deg, rgba(26, 22, 12, 0.96), rgba(6, 6, 6, 0.96));
  box-shadow: 0 0 60px rgba(var(--gold-rgb), 0.22), 0 24px 60px rgba(0, 0, 0, 0.75);
}
.fx-map-apex img { display: block; height: clamp(34px, 4.2vw, 52px); width: auto; max-width: none; }
.fx-map-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.fx-map-wires path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 6px rgba(var(--gold-rgb), 0.9));
  transition: stroke-dashoffset 1300ms cubic-bezier(0.65, 0, 0.35, 1) calc(200ms + var(--bi, 0) * 160ms), stroke 300ms ease, stroke-width 300ms ease;
}
.fx-map.is-drawn .fx-map-wires path { stroke-dashoffset: 0; }
.fx-map-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 48px);
  margin-top: clamp(70px, 9vw, 120px);
  align-items: start;
}
.fx-map-col { text-align: center; }
.fx-map-hub.eyebrow { display: inline-block; margin: 0; text-decoration: none; }
.fx-map-col > .fx-map-hub,
.fx-map-col li {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1), transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}
.fx-map.is-drawn .fx-map-col > .fx-map-hub { opacity: 1; transform: none; transition-delay: calc(1100ms + var(--bi, 0) * 160ms); }
.fx-map.is-drawn .fx-map-col li { opacity: 1; transform: none; transition-delay: calc(1500ms + var(--bi, 0) * 160ms + var(--li, 0) * 70ms); }
.fx-map-col ul {
  position: relative;
  list-style: none;
  margin: 26px auto 0;
  padding: 0 0 0 26px;
  width: max-content;
  max-width: 100%;
  text-align: start;
}
.fx-map-col ul::before {
  content: '';
  position: absolute;
  left: 0;
  top: -26px;
  bottom: 21px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold), rgba(var(--gold-rgb), 0.3));
  box-shadow: 0 0 8px rgba(var(--gold-rgb), 0.7);
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform 1100ms cubic-bezier(0.65, 0, 0.35, 1) calc(1300ms + var(--bi, 0) * 160ms);
}
.fx-map.is-drawn .fx-map-col ul::before { transform: scaleY(1); }
.fx-map-col li { position: relative; }
.fx-map-col li::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 21px;
  width: 16px;
  height: 1px;
  background: rgba(var(--gold-rgb), 0.7);
}
.fx-map-col li::after {
  content: '';
  position: absolute;
  left: -11px;
  top: 18px;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: var(--gold-hot);
  box-shadow: 0 0 10px rgba(var(--gold-rgb), 0.9);
}
.fx-map-col li a {
  display: block;
  padding: 9px 14px;
  font-family: var(--serif);
  font-size: clamp(18px, 1.65vw, 23px);
  line-height: 1.25;
  color: var(--text-0);
  text-decoration: none;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), background 300ms ease;
}
.fx-map-col li a:hover,
.fx-map-col li a:focus-visible {
  transform: translateX(8px);
  background: linear-gradient(90deg, rgba(var(--gold-rgb), 0.16), transparent);
  -webkit-text-fill-color: var(--gold-hot);
  color: var(--gold-hot);
}
/* the branch in hand is lit; the others stand back */
.fx-map-cols:hover .fx-map-col:not(:hover) { opacity: 0.38; transition: opacity 300ms ease; }
.fx-map-col { transition: opacity 300ms ease; }
.fx-map-cols:has(.fx-map-col:nth-child(1):hover) ~ .fx-map-wires path:nth-child(1),
.fx-map-wires:has(~ .fx-map-cols .fx-map-col:nth-child(1):hover) path:nth-child(1),
.fx-map-wires:has(~ .fx-map-cols .fx-map-col:nth-child(2):hover) path:nth-child(2),
.fx-map-wires:has(~ .fx-map-cols .fx-map-col:nth-child(3):hover) path:nth-child(3) { stroke: #FFF7D6; stroke-width: 2.4; }
.fx-map-wires:has(~ .fx-map-cols .fx-map-col:hover) path { stroke: rgba(var(--gold-rgb), 0.3); }
@media (max-width: 860px) {
  .fx-map-cols { grid-template-columns: 1fr; margin-top: 0; gap: 0; }
  .fx-map-col ul { margin-inline: auto; }
  /* stacked: the drawn wires would cross the lists, so each branch hangs from a short link instead */
  .fx-map-wires { display: none; }
  .fx-map-col::before {
    content: '';
    display: block;
    width: 1px;
    height: 46px;
    margin: 0 auto 6px;
    background: linear-gradient(180deg, rgba(var(--gold-rgb), 0.3), var(--gold));
    box-shadow: 0 0 8px rgba(var(--gold-rgb), 0.7);
  }
  .fx-map-col + .fx-map-col::before { margin-top: 26px; }
}

/* ---- 3. The pinned pillars: each one takes the screen in turn ---- */
@media (min-width: 1025px) and (min-height: 640px) and (prefers-reduced-motion: no-preference) {
  #framework.fx-story .mk-tile-grid {
    display: block !important;
    max-width: 1180px;
    margin-inline: auto;
  }
  #framework.fx-story .mk-tile {
    position: sticky !important;
    top: calc(var(--ia-header-height, 78px) + 26px);
    display: grid !important;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    grid-template-rows: auto auto;
    column-gap: clamp(30px, 5vw, 80px);
    align-content: center;
    align-items: center;
    width: 100%;
    min-height: calc(100vh - var(--ia-header-height, 78px) - 84px) !important;
    margin: 0 0 42vh !important;
    padding: clamp(40px, 6vh, 80px) clamp(40px, 6vw, 96px) !important;
    text-align: start !important;
    cursor: default;
    transform: none !important;
    background-color: #070707;
    box-shadow: 0 -30px 90px #000, 0 0 0 1px rgba(var(--gold-rgb), 0.35), 0 0 80px rgba(var(--gold-rgb), 0.1) !important;
  }
  #framework.fx-story .mk-tile:last-child { margin-bottom: 0 !important; }
  /* later pillars always cover earlier ones, whatever the pointer is over */
  #framework.fx-story .mk-tile:nth-child(1) { z-index: 1 !important; }
  #framework.fx-story .mk-tile:nth-child(2) { z-index: 2 !important; }
  #framework.fx-story .mk-tile:nth-child(3) { z-index: 3 !important; }
  #framework.fx-story .mk-tile .mk-tile-icon--roman {
    grid-column: 1;
    grid-row: 1 / span 2;
    justify-self: center;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(190px, 40vh, 430px) !important;
    line-height: 0.85 !important;
    letter-spacing: -0.03em;
    background: var(--gold-gloss);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 0 40px rgba(var(--gold-rgb), 0.35));
    animation: none !important;
    transform: none !important;
  }
  #framework.fx-story .mk-tile .mk-tile-icon--roman::before,
  #framework.fx-story .mk-tile .mk-tile-icon--roman::after { display: none !important; }
  #framework.fx-story .mk-tile .mk-tile-name {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(34px, 4.2vw, 62px) !important;
    line-height: 1.06;
    letter-spacing: -0.012em;
    color: var(--text-0) !important;
    text-align: start !important;
  }
  #framework.fx-story .mk-tile .mk-tile-name span { font-size: clamp(18px, 1.5vw, 23px) !important; margin-top: 14px !important; }
  #framework.fx-story .mk-tile .mk-tile-desc {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    max-width: 56ch;
    margin-top: 22px !important;
    text-align: start !important;
    max-height: none !important;
    opacity: 1 !important;
  }
  #framework.fx-story .mk-tile .mk-tile-desc p { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.75; color: var(--text-1); }
  #framework.fx-story .mk-tile .mk-tile-expand { display: none !important; }
  #framework.fx-story .section-header { margin-bottom: clamp(40px, 6vh, 70px); }
}

/* ---- 4. The globe on Global Reach ---- */
.fx-globe {
  position: relative;
  width: min(100%, 640px);
  aspect-ratio: 1;
  margin: clamp(10px, 3vw, 40px) auto clamp(20px, 4vw, 56px);
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 1400ms cubic-bezier(0.16, 1, 0.3, 1), transform 1800ms cubic-bezier(0.16, 1, 0.3, 1);
}
.fx-globe.is-lit { opacity: 1; transform: none; }
.fx-globe canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.fx-globe canvas:active { cursor: grabbing; }

/* =============================================================
   MONUMENTAL TYPE (2026-11-18)
   Section headlines are set larger on wide screens, settle into
   place the first time they are seen, and cast a giant echo of
   their key word that the section edge crops.
   Script: monumentalType() in /assets/js/ia-cinema.js. The echo
   and the settle key off classes that script adds; only the
   larger headline size applies without it.
   ============================================================= */

/* ---- The headline itself: about 1.4 times larger at 1440, phones unchanged ---- */
@media (min-width: 641px) {
  .section-headline { font-size: clamp(34px, calc(7.74vw - 15.4px), 100px); }
  /* it may run wider than the narrow column it heads, up to the page measure, so hand-set lines hold */
  .section-header-center > .section-headline {
    margin-left: calc(50% - min(50vw - var(--gutter), 600px));
    margin-right: calc(50% - min(50vw - var(--gutter), 600px));
  }
  .lp-section-headline { font-size: clamp(28px, calc(5.36vw - 13.2px), 70px); }
  .principal-page .lp-section-headline { font-size: clamp(28px, 4.1vw, 60px); }
}
main[data-ia="essay"] .lp-section-headline { font-size: clamp(34px, calc(6.7vw - 16.4px), 88px); }

/* ---- The echo: the key word, cut in outline at four times the headline, cropped by its section ---- */
.fx-echo-host { isolation: isolate; overflow-x: clip; }
.fx-echo-pos { position: relative; }
.fx-echo {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden; /* older engines without clip */
  overflow: clip;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  /* a soft well behind the headline's own letters (measured by the script), so the real text reads first */
  -webkit-mask-image: radial-gradient(var(--hole-rx, 0px) var(--hole-ry, 0px) at var(--hole-x, 50%) var(--hole-y, 0px), rgba(0, 0, 0, 0.2) 35%, #000 100%);
  mask-image: radial-gradient(var(--hole-rx, 0px) var(--hole-ry, 0px) at var(--hole-x, 50%) var(--hole-y, 0px), rgba(0, 0, 0, 0.2) 35%, #000 100%);
}
.fx-echo-word {
  --echo-from: -22%;
  --echo-to: -8%;
  position: absolute;
  top: var(--echo-y, 30%);
  left: 0;
  /* roman capitals, cut like an inscription. The padding keeps every stroke inside the mask; the negative
     margin stands the word's baseline on --echo-y, the baseline of the headline's last line */
  padding: 0.06em 0.12em 0.12em;
  margin-top: -0.875em;
  font-family: var(--serif);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(110px, 21vw, 440px);
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  /* the fill is light falling from above; the outline is white gold */
  background: linear-gradient(180deg, rgba(var(--gold-hot-rgb), 0.16) 8%, rgba(var(--gold-rgb), 0.05) 52%, transparent 78%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(255, 236, 196, 0.5);
  translate: calc(var(--echo-from) + (var(--echo-to) - var(--echo-from)) * var(--echo-p, 0.5)) 0;
  /* a band of light travels the outline with the scroll; the foot of the word fades into the section */
  -webkit-mask-image:
    linear-gradient(100deg, rgba(0, 0, 0, 0.42) 36%, #000 50%, rgba(0, 0, 0, 0.42) 64%),
    linear-gradient(180deg, #000 52%, rgba(0, 0, 0, 0.2) 100%);
  mask-image:
    linear-gradient(100deg, rgba(0, 0, 0, 0.42) 36%, #000 50%, rgba(0, 0, 0, 0.42) 64%),
    linear-gradient(180deg, #000 52%, rgba(0, 0, 0, 0.2) 100%);
  -webkit-mask-size: 300% 100%, 100% 100%;
  mask-size: 300% 100%, 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: calc(90% - 80% * var(--echo-p, 0.5)) 0, 0 0;
  mask-position: calc(90% - 80% * var(--echo-p, 0.5)) 0, 0 0;
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
/* audience and capability pages carry smaller headlines, so their echo is smaller too */
.lp-section > .fx-echo .fx-echo-word { font-size: clamp(100px, 18vw, 380px); }
/* the reading lists below a page have one-line headlines between an eyebrow and a row of tiles */
.lp-related > .fx-echo .fx-echo-word { font-size: clamp(90px, 15vw, 320px); }
main[data-ia="essay"] .lp-section > .fx-echo .fx-echo-word { font-size: clamp(110px, 20vw, 420px); }
.fx-echo-word::before { content: attr(data-echo); }
.fx-echo[data-side="r"] .fx-echo-word {
  --echo-from: 22%;
  --echo-to: 8%;
  left: auto;
  right: 0;
}
/* on a phone the headline is small, so the echo steps back: smaller and quieter */
@media (max-width: 640px) {
  .fx-echo-word,
  .lp-section > .fx-echo .fx-echo-word,
  .lp-related > .fx-echo .fx-echo-word,
  main[data-ia="essay"] .lp-section > .fx-echo .fx-echo-word {
    font-size: 30vw;
    -webkit-text-stroke: 1px rgba(255, 236, 196, 0.34);
  }
}
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .fx-echo-word {
      animation: ia-echo-drift linear both;
      animation-timeline: view();
      animation-range: cover;
    }
    @keyframes ia-echo-drift {
      0%   { translate: var(--echo-from) 0; -webkit-mask-position: 90% 0, 0 0; mask-position: 90% 0, 0 0; opacity: 0; }
      28%  { opacity: 1; }
      78%  { opacity: 1; }
      100% { translate: var(--echo-to) 0; -webkit-mask-position: 10% 0, 0 0; mask-position: 10% 0, 0 0; opacity: 0.3; }
    }
  }

  /* ---- The settle: the letters arrive spread and blurred, then close up into the headline ---- */
  .fx-type-host { overflow-x: clip; }
  /* lines are already set by hand here (the script checks), so holding them unwrapped never moves the layout */
  .fx-type-wide {
    white-space: nowrap !important;
    max-width: none !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
  }
  .fx-type-in { animation: ia-type-settle 2200ms cubic-bezier(0.3, 0.9, 0.35, 1) both; }
  .fx-type-soft.fx-type-in { animation-name: ia-type-soft; animation-duration: 1500ms; }
  .fx-type-in em { animation: ia-foil 1500ms cubic-bezier(0.4, 0, 0.2, 1) 1150ms backwards; }
  @keyframes ia-type-settle {
    0%   { opacity: 0; letter-spacing: 0.34em; filter: blur(14px); transform: translateY(0.12em); }
    40%  { opacity: 1; }
    100% { opacity: 1; filter: blur(0); transform: none; }
  }
  @keyframes ia-type-soft {
    0%   { opacity: 0; filter: blur(16px); transform: translateY(0.12em) scale(1.03); }
    40%  { opacity: 1; }
    100% { opacity: 1; filter: blur(0); transform: none; }
  }
}

/* =============================================================
   CINEMA LAYER, WAVE 6 (2026-11-17)
   Material depth on cards. Every .lp-card and jw-glass .mk-tile
   is a dark brushed-metal plate: fine horizontal brushing, a
   gold to white-gold edge, a soft bevel. A specular reflection
   rests at the upper left; under a fine pointer the plate tilts
   (ia-cinema.js pointerFx), the reflection and the edge glint
   follow the pointer, and the Integrity emblem, struck into the
   metal from the seal relief (ia-cinema.js plates), is relit and
   rises into view. Without script, on touch and with reduced
   motion the plate is static and complete, lit from the upper left.
   Selectors carry :root so they outrank the jw-glass rules above.
   ============================================================= */
@property --fx-lx { syntax: '<percentage>'; inherits: true; initial-value: 28%; }
@property --fx-ly { syntax: '<percentage>'; inherits: true; initial-value: 10%; }
@property --fx-ex { syntax: '<percentage>'; inherits: true; initial-value: 18%; }
@property --fx-ey { syntax: '<percentage>'; inherits: true; initial-value: 14%; }

:root :is(.lp-card, .mk-tile-grid--jw-glass .mk-tile) {
  /* corner marks, engraved; brighter and longer in hand */
  --fx-bk: rgba(var(--tile-warm), 0.38);
  --fx-bl: 20px;
  /* edge glint strength where the light meets the frame */
  --fx-glint: 0.9;
  --fx-plate:
    linear-gradient(var(--fx-bk), var(--fx-bk)) top    12px left  12px / var(--fx-bl) 1px no-repeat padding-box,
    linear-gradient(var(--fx-bk), var(--fx-bk)) top    12px left  12px / 1px var(--fx-bl) no-repeat padding-box,
    linear-gradient(var(--fx-bk), var(--fx-bk)) top    12px right 12px / var(--fx-bl) 1px no-repeat padding-box,
    linear-gradient(var(--fx-bk), var(--fx-bk)) top    12px right 12px / 1px var(--fx-bl) no-repeat padding-box,
    linear-gradient(var(--fx-bk), var(--fx-bk)) bottom 12px left  12px / var(--fx-bl) 1px no-repeat padding-box,
    linear-gradient(var(--fx-bk), var(--fx-bk)) bottom 12px left  12px / 1px var(--fx-bl) no-repeat padding-box,
    linear-gradient(var(--fx-bk), var(--fx-bk)) bottom 12px right 12px / var(--fx-bl) 1px no-repeat padding-box,
    linear-gradient(var(--fx-bk), var(--fx-bk)) bottom 12px right 12px / 1px var(--fx-bl) no-repeat padding-box,
    /* brushing: three interleaved line periods read as an irregular grain */
    repeating-linear-gradient(180deg, rgba(255, 250, 238, 0.022) 0 1px, transparent 1px 3px) padding-box,
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0 1px, transparent 1px 4.6px) padding-box,
    repeating-linear-gradient(180deg, transparent 0 6.2px, rgba(255, 246, 228, 0.016) 6.2px 8px, transparent 8px 11.3px) padding-box,
    /* long streaks along the grain */
    linear-gradient(90deg, rgba(255, 250, 240, 0) 0%, rgba(255, 250, 240, 0.028) 21%, rgba(255, 250, 240, 0) 40%, rgba(255, 250, 240, 0.016) 66%, rgba(255, 250, 240, 0) 88%) padding-box,
    /* the plate: warm graphite, lighter where the room light falls */
    linear-gradient(168deg, #1d1c19 0%, #141413 36%, #0d0d0d 70%, #0a0a0a 100%) padding-box,
    /* the edge: a glint where the light meets the frame, over gold running to white gold */
    radial-gradient(circle 300px at var(--fx-lx, 28%) var(--fx-ly, 10%), rgba(255, 250, 236, var(--fx-glint)), rgba(255, 238, 190, 0.32) 40%, rgba(255, 238, 190, 0) 72%) border-box,
    linear-gradient(158deg, var(--fx-edge-hi, #FBEBC0) 0%, var(--tile-accent) 24%, rgba(var(--tile-warm), 0.74) 56%, rgba(var(--tile-warm), 0.46) 80%, rgba(var(--tile-warm), 0.82) 100%) border-box #0a0a0a;
  border: 1px solid transparent;
  background: var(--fx-plate);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 218, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.75),
    inset 1px 0 0 rgba(255, 244, 218, 0.035),
    inset -1px 0 0 rgba(0, 0, 0, 0.4),
    inset 0 30px 36px -32px rgba(255, 238, 200, 0.08),
    inset 0 -48px 60px -44px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(0, 0, 0, 0.7),
    0 2px 4px rgba(0, 0, 0, 0.5),
    0 22px 44px -20px rgba(0, 0, 0, 0.85);
  transition:
    transform 460ms var(--tile-ease),
    box-shadow 460ms var(--tile-ease),
    --fx-lx 900ms var(--tile-ease),
    --fx-ly 900ms var(--tile-ease),
    --fx-ex 900ms var(--tile-ease),
    --fx-ey 900ms var(--tile-ease);
}
:root :is(.lp-card, .mk-tile-grid--jw-glass .mk-tile):is(:hover, :focus-visible, .fx-tilting, .active) {
  --fx-bk: var(--tile-cream);
  --fx-bl: 30px;
  --fx-glint: 1;
  border-color: transparent;
  background: var(--fx-plate);
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 218, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.75),
    inset 1px 0 0 rgba(255, 244, 218, 0.05),
    inset -1px 0 0 rgba(0, 0, 0, 0.4),
    inset 0 30px 36px -32px rgba(255, 238, 200, 0.12),
    inset 0 -48px 60px -44px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(0, 0, 0, 0.7),
    0 0 34px rgba(var(--tile-warm), 0.16),
    0 34px 70px -24px rgba(0, 0, 0, 0.95);
}
/* the cinema tilt keeps the bevel (its own rule would replace every shadow) */
:root :is(.lp-card, .mk-tile-grid--jw-glass .mk-tile).fx-tilting {
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 218, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.75),
    inset 1px 0 0 rgba(255, 244, 218, 0.05),
    inset -1px 0 0 rgba(0, 0, 0, 0.4),
    inset 0 30px 36px -32px rgba(255, 238, 200, 0.12),
    inset 0 -48px 60px -44px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(0, 0, 0, 0.7),
    0 0 46px rgba(var(--tile-warm), 0.2),
    0 40px 80px -26px rgba(0, 0, 0, 0.95) !important;
}

/* ---- The specular reflection: a streak stretched across the grain, a hot core, a warm bloom ---- */
:root :is(.lp-card, .mk-tile-grid--jw-glass .mk-tile)::before {
  content: '';
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  z-index: 0;
  pointer-events: none;
  /* the shorthand also clears the jw-glass sweep's size and position, in hover too */
  background:
    radial-gradient(ellipse 15% 92% at var(--fx-lx, 28%) var(--fx-ly, 10%), rgba(255, 249, 232, 0.09), rgba(255, 240, 205, 0.03) 50%, rgba(255, 240, 205, 0) 80%),
    radial-gradient(circle 150px at var(--fx-lx, 28%) var(--fx-ly, 10%), rgba(255, 252, 244, 0.06), rgba(255, 252, 244, 0) 100%),
    radial-gradient(ellipse 85% 66% at var(--fx-lx, 28%) var(--fx-ly, 10%), rgba(var(--tile-warm), 0.085), rgba(var(--tile-warm), 0) 72%);
  opacity: 0.8;
  transition: opacity 600ms var(--tile-ease);
}
:root :is(.lp-card, .mk-tile-grid--jw-glass .mk-tile):is(:hover, :focus-visible, .fx-tilting, .active)::before { opacity: 1; }

/* ---- The struck emblem: relief baked by ia-cinema.js from the seal relief, laid on the metal ---- */
:root :is(.lp-card:not(.lp-card--region), .mk-tile-grid--jw-glass .mk-tile)::after {
  content: '';
  display: block;
  position: absolute;
  /* a hallmark in the lower corner, bleeding off the plate; sized to the card's shorter side */
  inset: auto -6% -14% auto;
  width: clamp(110px, 56%, 260px);
  height: auto;
  max-height: 68%;
  aspect-ratio: 1;
  z-index: 0;
  pointer-events: none;
  background: var(--fx-em, none) 100% 100% / contain no-repeat;
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity 900ms var(--tile-ease);
}
@supports (background-image: -webkit-cross-fade(url("a.png"), url("b.png"), 50%)) {
  /* relit live: four directional bakes cross-faded toward the light */
  :root :is(.lp-card:not(.lp-card--region), .mk-tile-grid--jw-glass .mk-tile)::after {
    background-image: -webkit-cross-fade(
      -webkit-cross-fade(var(--fx-em-l), var(--fx-em-r), var(--fx-ex, 18%)),
      -webkit-cross-fade(var(--fx-em-t), var(--fx-em-b), var(--fx-ey, 14%)),
      50%);
  }
}
/* short link tiles carry little copy: the emblem stands taller beside it */
:root .mk-tile-grid--related.mk-tile-grid--jw-glass .mk-tile::after {
  inset: auto -3% -9% auto;
  width: clamp(110px, 66%, 280px);
  max-height: 94%;
}
/* the pinned pillars (ia-set.js) fill the screen: the hallmark grows with them */
@media (min-width: 1025px) and (min-height: 640px) and (prefers-reduced-motion: no-preference) {
  :root #framework.fx-story .mk-tile::after {
    inset: auto 3% -9% auto;
    width: clamp(220px, 30vw, 440px);
    max-height: 54%;
  }
}
.fx-plates :is(.lp-card:not(.lp-card--region), .mk-tile-grid--jw-glass .mk-tile)::after { opacity: 0.34; }
.fx-plates :is(.lp-card:not(.lp-card--region), .mk-tile-grid--jw-glass .mk-tile):is(:hover, :focus-visible, .fx-tilting)::after { opacity: 0.9; }
/* body copy keeps a soft dark ground of its own wherever the light gathers on the metal */
:root :is(.lp-card, .mk-tile-grid--jw-glass .mk-tile) :is(p, .mk-tile-desc) {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6), 0 0 14px rgba(0, 0, 0, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  :root :is(.lp-card, .mk-tile-grid--jw-glass .mk-tile),
  :root :is(.lp-card, .mk-tile-grid--jw-glass .mk-tile)::before,
  :root :is(.lp-card, .mk-tile-grid--jw-glass .mk-tile)::after { transition: none; }
}

/* =============================================================
   THE INQUIRY AS A SEALED LETTER (2026-11-17)
   ia-cinema.js (sealedLetter) watches #inquiry-status. On success the form gathers into a sheet
   of black letter stock, folds in thirds, takes a gold wax seal and is lifted away; a receipt from
   the private office stays in its place. The stage is decorative (aria-hidden) and #inquiry-status
   stays the live region throughout. Reduced motion: no stage, the receipt alone. No script: none
   of this applies.
   ============================================================= */

html.ia-sealing { overflow-anchor: none; }

/* ---- while the letter is made, the form's own face steps back (still read by assistive tech) ---- */
#inquiry-form.ia-seal-run > :not(.ia-seal-stage) {
  opacity: 0 !important;
  pointer-events: none;
  transition: opacity 200ms ease !important;
}
#inquiry-form.ia-seal-hold,
#inquiry-form.ia-receipt {
  background: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  min-height: 0;
}
#inquiry-form.ia-seal-hold::before,
#inquiry-form.ia-receipt::before { display: none !important; }
#inquiry-form.ia-seal-hold > :not(.ia-seal-stage):not(#inquiry-status),
#inquiry-form.ia-receipt > :not(.ia-seal-stage):not(.ia-rcpt):not(#inquiry-status) { display: none !important; }
@media (prefers-reduced-motion: no-preference) {
  #inquiry-form.ia-seal-hold,
  #inquiry-form.ia-receipt,
  #inquiry-form.ia-unseal { transition: height 640ms cubic-bezier(0.7, 0, 0.2, 1); }
}

/* ---- the stage ---- */
.ia-seal-stage {
  position: absolute;
  width: var(--sl-W);
  height: var(--sl-H);
  z-index: 8;
  pointer-events: none;
  direction: ltr;
  overflow-x: clip;
  perspective: 1300px;
  perspective-origin: calc(var(--sl-L) + var(--sl-sw) / 2) var(--sl-py);
}

/* a lamp over the desk, so black stock reads against a black room */
.ia-ltr-glow {
  position: absolute;
  left: 0;
  width: 100%;
  top: calc(var(--sl-py) - var(--sl-sw));
  height: calc(var(--sl-sw) * 2);
  background: radial-gradient(var(--sl-gr) calc(var(--sl-sw) * 0.82) at calc(var(--sl-L) + var(--sl-sw) / 2) 50%,
    rgba(var(--gold-rgb), 0.17), rgba(var(--gold-rgb), 0.06) 48%, transparent 100%);
  opacity: 0;
  animation: ia-ltr-glow 3300ms linear both;
}
@keyframes ia-ltr-glow {
  0%, 9%   { opacity: 0; }
  30%, 82% { opacity: 1; }
  97%, 100% { opacity: 0; }
}

.ia-ltr-shadow {
  position: absolute;
  left: calc(var(--sl-L) + var(--sl-sw) * 0.05);
  width: calc(var(--sl-sw) * 0.9);
  top: calc(var(--sl-T) + 14px);
  height: var(--sl-sh);
  background: #000;
  filter: blur(16px);
  opacity: 0;
  animation: ia-ltr-shadow 2640ms linear 600ms both;
}
@keyframes ia-ltr-shadow {
  0%    { opacity: 0;    top: calc(var(--sl-T) + 14px); height: var(--sl-sh); transform: none; }
  7.6%  { opacity: 0.85; }
  17%   { top: calc(var(--sl-T) + 14px); height: var(--sl-sh); animation-timing-function: cubic-bezier(0.62, 0, 0.3, 1); }
  33%   { top: calc(var(--sl-T) + 14px); height: calc(var(--sl-sh) * 0.635); animation-timing-function: cubic-bezier(0.62, 0, 0.3, 1); }
  47%   { top: calc(var(--sl-T) + var(--sl-sh) * 0.27 + 12px); height: calc(var(--sl-sh) * 0.365); }
  79.5% { opacity: 0.85; transform: none; }
  100%  { opacity: 0; top: calc(var(--sl-T) + var(--sl-sh) * 0.27 + 12px); height: calc(var(--sl-sh) * 0.365); transform: translateY(18px) scale(1.12); }
}

.ia-ltr-lift {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform-origin: calc(var(--sl-L) + var(--sl-sw) / 2) var(--sl-py);
  animation: ia-ltr-lift 560ms cubic-bezier(0.5, 0, 0.75, 0.3) 2700ms both;
}
@keyframes ia-ltr-lift {
  0%   { transform: none; opacity: 1; animation-timing-function: cubic-bezier(0.5, 0, 0.75, 0.3); }
  20%  { opacity: 1; }
  78%  { opacity: 0.06; }
  100% { transform: translate3d(0, -118px, 0) rotateX(20deg) scale(0.84); opacity: 0; }
}

/* the sheet: three panes, each a slice of the same page */
.ia-ltr {
  position: absolute;
  left: var(--sl-L);
  top: var(--sl-T);
  width: var(--sl-sw);
  height: var(--sl-sh);
  transform-style: preserve-3d;
  perspective: 1500px;
  animation:
    ia-ltr-morph 580ms cubic-bezier(0.7, 0, 0.2, 1) 200ms both,
    ia-ltr-weight 700ms linear 1810ms both;
}
@keyframes ia-ltr-morph {
  from { left: 0; top: 0; width: var(--sl-W); height: var(--sl-H); }
  to   { left: var(--sl-L); top: var(--sl-T); width: var(--sl-sw); height: var(--sl-sh); }
}
/* the flap lands, then the seal: the letter takes each weight */
@keyframes ia-ltr-weight {
  0%, 5%    { transform: none; }
  10%       { transform: scale(0.993); }
  20%, 52%  { transform: none; }
  57%       { transform: translateY(1px) scale(0.98); }
  76%, 100% { transform: none; }
}
.ia-ltr-pane {
  position: absolute;
  left: 0;
  width: 100%;
  transform-style: preserve-3d;
}
.ia-ltr-pane.is-top {
  top: 0;
  height: 27%;
  transform-origin: 50% 100%;
  animation: ia-fold-top 460ms cubic-bezier(0.62, 0, 0.3, 1) 1390ms both;
}
.ia-ltr-pane.is-mid { top: 27%; height: 36.5%; }
.ia-ltr-pane.is-bot {
  top: 63.5%;
  height: 36.5%;
  transform-origin: 50% 0;
  animation: ia-fold-bot 420ms cubic-bezier(0.62, 0, 0.3, 1) 1050ms both;
}
@keyframes ia-fold-bot {
  from { transform: translateZ(1px) rotateX(0deg); }
  to   { transform: translateZ(1px) rotateX(180deg); }
}
@keyframes ia-fold-top {
  from { transform: translateZ(2px) rotateX(0deg); }
  to   { transform: translateZ(2px) rotateX(-180deg); }
}
.ia-ltr-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  background: #14110c;
}
.ia-ltr-face.is-back {
  transform: rotateX(180deg);
  background:
    repeating-linear-gradient(0deg, rgba(255, 236, 190, 0.022) 0 1px, transparent 1px 5px),
    linear-gradient(180deg, #1d1912, #15120d);
}
/* light along each fold, and the flap's own shadow on the letter beneath it */
.is-top > .ia-ltr-face.is-back { box-shadow: inset 0 0 0 1px rgba(var(--gold-rgb), 0.5), inset 0 2px 0 rgba(255, 240, 200, 0.08), 0 10px 16px -8px rgba(0, 0, 0, 0.9); }
.is-bot > .ia-ltr-face.is-back { box-shadow: inset 0 0 0 1px rgba(var(--gold-rgb), 0.42), inset 0 -2px 0 rgba(255, 240, 200, 0.06); }

/* each face darkens as it turns from the light, and the back brightens as it settles */
.ia-ltr-face::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
}
.is-bot > .is-front::after { animation: ia-shade-in 420ms cubic-bezier(0.62, 0, 0.3, 1) 1050ms both; }
.is-bot > .is-back::after  { animation: ia-shade-out 420ms cubic-bezier(0.62, 0, 0.3, 1) 1050ms both; }
.is-top > .is-front::after { animation: ia-shade-in 460ms cubic-bezier(0.62, 0, 0.3, 1) 1390ms both; }
.is-top > .is-back::after  { animation: ia-shade-out 460ms cubic-bezier(0.62, 0, 0.3, 1) 1390ms both; }
.is-mid > .is-front::after {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.2) 75%, transparent);
  animation: ia-flap-shade 420ms linear 1050ms both;
}
.is-bot > .is-back::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 85%);
  opacity: 0;
  animation: ia-flap-shade-2 460ms linear 1390ms both;
}
@keyframes ia-shade-in { from { opacity: 0; } to { opacity: 0.78; } }
@keyframes ia-shade-out { from { opacity: 0.78; } to { opacity: 0; } }
@keyframes ia-flap-shade { 0%, 45% { opacity: 0; } 100% { opacity: 1; } }
@keyframes ia-flap-shade-2 { 0%, 45% { opacity: 0; } 90% { opacity: 1; } 100% { opacity: 0; } }

/* the page: black stock, a gold rule inset, the letterhead, the visitor's own words */
.ia-ltr-page {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--sl-sw);
  height: var(--sl-sh);
  padding: 9.5% 11% 0;
  font-size: calc(var(--sl-sw) * 0.0305);
  color: rgba(240, 229, 204, 0.84);
  text-align: left;
  background:
    radial-gradient(120% 60% at 22% 0%, rgba(var(--gold-rgb), 0.09), transparent 62%),
    radial-gradient(90% 50% at 90% 100%, rgba(var(--gold-rgb), 0.05), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255, 236, 190, 0.02) 0 1px, transparent 1px 5px),
    linear-gradient(172deg, #1b1711 0%, #110e0a 100%);
  /* gilt edges */
  box-shadow: inset 0 0 0 1px rgba(var(--gold-rgb), 0.55), inset 0 0 0 2px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: ia-ltr-ink 340ms ease-out 540ms both;
}
.is-mid .ia-ltr-page { top: calc(var(--sl-sh) * -0.27); }
.is-bot .ia-ltr-page { top: calc(var(--sl-sh) * -0.635); }
@keyframes ia-ltr-ink { from { opacity: 0; } to { opacity: 1; } }
.ia-ltr-page::before {
  content: '';
  position: absolute;
  inset: calc(var(--sl-sw) * 0.034);
  border: 1px solid rgba(var(--gold-rgb), 0.36);
  outline: 1px solid rgba(var(--gold-rgb), 0.12);
  outline-offset: -5px;
  pointer-events: none;
}
.ia-ltr-head { text-align: center; }
.ia-ltr-emblem {
  display: block;
  width: 2.2em;
  height: 2.45em;
  margin: 0 auto 0.8em;
  background: url('/assets/cursor-mark.png') center / contain no-repeat;
}
.ia-ltr-brand {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.6em;
  line-height: 1;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
}
.ia-ltr-head::after {
  content: '';
  display: block;
  width: 30%;
  height: 1px;
  margin: 1.2em auto 0;
  background: var(--gold-shimmer);
  opacity: 0.75;
}
.ia-ltr-date {
  margin: 1.6em 0 1.1em;
  text-align: right;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95em;
  line-height: 1.2;
  color: rgba(240, 229, 204, 0.52);
}
.ia-ltr-msg {
  margin: 0;
  max-height: calc(var(--sl-sh) * 0.47);
  overflow: hidden;
  text-align: start;
  font-family: var(--serif);
  font-size: 1.16em;
  line-height: 1.58;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.ia-ltr-msg.is-long {
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent);
  mask-image: linear-gradient(180deg, #000 72%, transparent);
}
.ia-ltr-msg:empty {
  height: calc(var(--sl-sh) * 0.34);
  background: repeating-linear-gradient(180deg, transparent 0 1.45em, rgba(var(--gold-rgb), 0.16) 1.45em calc(1.45em + 1px), transparent calc(1.45em + 1px) 1.84em);
}
.ia-ltr-sig {
  position: absolute;
  right: 11%;
  bottom: 9%;
  max-width: 72%;
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.75em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  color: var(--gold-hot);
  background: var(--gold-gloss);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ia-ltr-sig:empty { display: none; }
/* the outside of the letter: a framed flap with the house name, sealed at its edge */
.ia-ltr-flap {
  position: absolute;
  inset: calc(var(--sl-sw) * 0.026);
  border: 1px solid rgba(var(--gold-rgb), 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 16%;
  font-family: var(--sans);
  font-weight: 600;
  font-size: calc(var(--sl-sw) * 0.019);
  line-height: 1;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  text-transform: uppercase;
  color: rgba(var(--gold-rgb), 0.86);
}

/* the form's own face, carried over the first instant, then let go as the stock appears */
.ia-ltr-veil {
  position: absolute;
  inset: 0;
  transform: translateZ(4px);
  border: 1px solid rgba(var(--gold-rgb), 0.55);
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(var(--gold-rgb), 0.1), transparent 70%),
    linear-gradient(180deg, rgba(28, 28, 28, 0.98), rgba(14, 14, 14, 0.98));
  box-shadow: 0 0 0 1px rgba(var(--gold-rgb), 0.3), 0 0 50px rgba(var(--gold-rgb), 0.14);
  animation: ia-ltr-veil 980ms linear both;
}
@keyframes ia-ltr-veil {
  0%        { opacity: 0; }
  20%, 58%  { opacity: 1; }
  92%, 100% { opacity: 0; }
}
/* the form's rules and its button, left standing as the fields' words fade */
.ia-ltr-veil i,
.ia-ltr-veil b {
  position: absolute;
  display: block;
}
.ia-ltr-veil i {
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(var(--gold-rgb), 0.3), rgba(255, 255, 255, 0.16));
}
.ia-ltr-veil b {
  border: 1px solid rgba(var(--gold-rgb), 0.6);
  background: linear-gradient(180deg, rgba(var(--gold-rgb), 0.12), rgba(var(--gold-rgb), 0.03));
}
/* light passes over the face once as it is gathered */
.ia-ltr-veil::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(240, 232, 206, 0.16) 50%, transparent 65%) no-repeat;
  background-size: 240% 100%;
  animation: ia-ltr-sweep 760ms cubic-bezier(0.45, 0, 0.25, 1) 160ms both;
}
@keyframes ia-ltr-sweep {
  from { background-position: 130% 0; }
  to   { background-position: -30% 0; }
}

/* ---- the seal ---- */
.ia-seal,
.ia-seal-ring {
  position: absolute;
  left: calc(var(--sl-cx) - var(--sl-D) / 2);
  top: calc(var(--sl-cy) - var(--sl-D) / 2);
  width: var(--sl-D);
  height: var(--sl-D);
}
.ia-seal {
  opacity: 0;
  animation: ia-seal-press 520ms linear 1880ms both;
}
/* if the canvas cannot paint, a plain gold disc still lands */
.ia-seal::before {
  content: '';
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #f3d488, #b98a2c 46%, #6a4a12 100%);
}
.ia-seal-wax {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
@keyframes ia-seal-press {
  0%   { opacity: 0; transform: translate3d(0, -30%, 0) scale(1.8) rotate(-16deg); animation-timing-function: cubic-bezier(0.5, 0, 0.9, 0.45); }
  9%   { opacity: 1; }
  58%  { transform: translate3d(0, 0, 0) scale(0.9) rotate(0deg); animation-timing-function: cubic-bezier(0.2, 0.7, 0.3, 1); }
  76%  { transform: scale(1.04); animation-timing-function: ease-in-out; }
  90%  { transform: scale(0.992); }
  100% { opacity: 1; transform: none; }
}
.ia-seal-shade {
  position: absolute;
  left: calc(var(--sl-cx) - var(--sl-D) * 0.55);
  top: calc(var(--sl-cy) - var(--sl-D) * 0.55);
  width: calc(var(--sl-D) * 1.1);
  height: calc(var(--sl-D) * 1.1);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.55) 60%, transparent);
  opacity: 0;
  animation: ia-seal-shade 520ms linear 1880ms both;
}
@keyframes ia-seal-shade {
  0%   { opacity: 0; transform: translate(28%, 42%) scale(1.5); animation-timing-function: cubic-bezier(0.5, 0, 0.9, 0.45); }
  58%  { opacity: 0.95; transform: translate(5%, 9%) scale(1); animation-timing-function: ease-out; }
  100% { opacity: 0.85; transform: translate(4%, 8%) scale(1.02); }
}
.ia-seal-flash {
  position: absolute;
  left: calc(var(--sl-cx) - var(--sl-D));
  top: calc(var(--sl-cy) - var(--sl-D));
  width: calc(var(--sl-D) * 2);
  height: calc(var(--sl-D) * 2);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 236, 170, 0.5), rgba(var(--gold-rgb), 0.18) 45%, transparent);
  mix-blend-mode: screen;
  opacity: 0;
  animation: ia-seal-flash 720ms cubic-bezier(0.16, 1, 0.3, 1) 2175ms both;
}
@keyframes ia-seal-flash {
  0%   { opacity: 0; transform: scale(0.6); }
  16%  { opacity: 1; }
  100% { opacity: 0; transform: scale(1.35); }
}
.ia-seal-ring {
  border-radius: 50%;
  border: 1px solid rgba(255, 236, 190, 0.5);
  box-shadow: 0 0 10px rgba(var(--gold-rgb), 0.25);
  opacity: 0;
  animation: ia-seal-ring 700ms cubic-bezier(0.16, 1, 0.3, 1) 2175ms both;
}
@keyframes ia-seal-ring {
  0%   { opacity: 0; transform: scale(0.92); }
  10%  { opacity: 0.7; }
  100% { opacity: 0; transform: scale(1.75); }
}
/* light runs once across the wax as it sets */
.ia-seal-glint {
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 248, 225, 0.7) 50%, transparent 60%) no-repeat;
  background-size: 260% 100%;
  background-position: 125% 0;
  mix-blend-mode: screen;
  opacity: 0;
  animation: ia-seal-glint 460ms cubic-bezier(0.45, 0, 0.25, 1) 2360ms both;
}
@keyframes ia-seal-glint {
  0%   { opacity: 1; background-position: 125% 0; }
  100% { opacity: 1; background-position: -25% 0; }
}

/* ---- the receipt: an engraved card from the private office ---- */
#inquiry-form.ia-receipt {
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: clamp(42px, 5vw, 58px) clamp(24px, 4vw, 48px) clamp(32px, 4vw, 44px);
}
#inquiry-form .ia-rcpt {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
#inquiry-form .ia-rcpt-frame {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(620px, 100%);
  max-width: none;
  transform: translateX(-50%);
  pointer-events: none;
  border: 1px solid rgba(var(--gold-rgb), 0.46);
  outline: 1px solid rgba(var(--gold-rgb), 0.14);
  outline-offset: -8px;
  background:
    radial-gradient(ellipse 70% 52% at 50% 0%, rgba(var(--gold-rgb), 0.11), transparent 72%),
    repeating-linear-gradient(0deg, rgba(255, 236, 190, 0.018) 0 1px, transparent 1px 5px),
    linear-gradient(180deg, #15120d 0%, #0b0a07 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 30px 70px rgba(0, 0, 0, 0.72),
    0 0 70px rgba(var(--gold-rgb), 0.08);
}
.ia-rcpt-mark {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
}
.ia-rcpt-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(27px, 3.1vw, 36px);
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--gold-hot);
  /* the foil, with a band of light parked off the left edge until the receipt arrives */
  background:
    linear-gradient(105deg, transparent 42%, rgba(255, 250, 232, 0.95) 50%, transparent 58%) 130% 0 / 250% 100% no-repeat,
    var(--gold-gloss);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  outline: none;
}
.ia-rcpt-rule {
  position: relative;
  display: block;
  width: min(220px, 70%);
  height: 9px;
  margin: 18px auto 22px;
  background: linear-gradient(90deg, transparent, rgba(var(--gold-rgb), 0.75) 22%, rgba(var(--gold-rgb), 0.75) 43%, transparent 43%, transparent 57%, rgba(var(--gold-rgb), 0.75) 57%, rgba(var(--gold-rgb), 0.75) 78%, transparent) center / 100% 1px no-repeat;
}
.ia-rcpt-rule::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  transform: rotate(45deg);
  background: var(--gold-hot);
  box-shadow: 0 0 8px rgba(var(--gold-rgb), 0.8);
}
.ia-rcpt-ledger {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 420px;
  margin: 0 auto;
}
.ia-rcpt-ledger > div { padding: 2px 14px; min-width: 0; }
.ia-rcpt-ledger > div + div { border-left: 1px solid rgba(var(--gold-rgb), 0.22); }
.ia-rcpt-ledger dt {
  margin: 0 0 9px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 9.5px;
  line-height: 1;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  text-transform: uppercase;
  color: var(--text-3);
}
.ia-rcpt-ledger dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.25;
  color: var(--text-0);
  font-variant-numeric: lining-nums;
}
#inquiry-form.ia-receipt #inquiry-status.success {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 500px;
  margin: 24px auto 0;
  padding: 22px 0 0;
  border: 0;
  border-top: 1px solid rgba(var(--gold-rgb), 0.18);
  border-radius: 0;
  box-shadow: none;
  text-shadow: none;
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--text-1);
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
  unicode-bidi: plaintext;
}
#inquiry-form.ia-receipt #inquiry-status.success::before,
#inquiry-form.ia-receipt #inquiry-status.success::after { display: none; }
#inquiry-form.ia-receipt #inquiry-status strong {
  font-weight: 600;
  color: var(--gold-hot);
  background: var(--gold-gloss);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
#inquiry-form .ia-rcpt-foot { margin-top: 22px; }
.ia-rcpt-again {
  position: relative;
  padding: 12px 6px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  background: none;
  border: 0;
  border-radius: 0;
  transition: color 240ms ease;
}
.ia-rcpt-again::after {
  content: '';
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 6px;
  height: 1px;
  background: var(--gold-shimmer);
  opacity: 0.55;
  transform: scaleX(0.5);
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1), opacity 320ms ease;
}
.ia-rcpt-again:hover,
.ia-rcpt-again:focus-visible { color: var(--gold-hot); }
.ia-rcpt-again:hover::after,
.ia-rcpt-again:focus-visible::after { transform: scaleX(1); opacity: 1; }
.ia-rcpt-again:focus-visible { outline: 1px solid rgba(var(--gold-rgb), 0.7); outline-offset: 3px; }
@media (max-width: 520px) {
  .ia-rcpt-ledger > div { padding: 2px 8px; }
  .ia-rcpt-ledger dd { font-size: 17px; }
  #inquiry-form.ia-receipt #inquiry-status.success { font-size: 17.5px; }
}

/* the receipt arrives under the lifting letter, the seal's imprint pressed in first */
@media (prefers-reduced-motion: no-preference) {
  #inquiry-form.ia-receipt-in .ia-rcpt-frame { animation: ia-rcpt-frame 900ms cubic-bezier(0.16, 1, 0.3, 1) both; }
  #inquiry-form.ia-receipt-in .ia-rcpt-mark { animation: ia-rcpt-press 820ms cubic-bezier(0.2, 0.8, 0.25, 1) 160ms both; }
  #inquiry-form.ia-receipt-in .ia-rcpt-title {
    animation:
      ia-rcpt-rise 820ms cubic-bezier(0.16, 1, 0.3, 1) 260ms both,
      ia-rcpt-foil 1500ms cubic-bezier(0.45, 0, 0.25, 1) 760ms both;
  }
  #inquiry-form.ia-receipt-in .ia-rcpt-rule { animation: ia-rcpt-rule 900ms cubic-bezier(0.16, 1, 0.3, 1) 340ms both; }
  #inquiry-form.ia-receipt-in .ia-rcpt-ledger { animation: ia-rcpt-rise 820ms cubic-bezier(0.16, 1, 0.3, 1) 400ms both; }
  #inquiry-form.ia-receipt-in #inquiry-status { animation: ia-rcpt-rise 820ms cubic-bezier(0.16, 1, 0.3, 1) 470ms both; }
  #inquiry-form.ia-receipt-in .ia-rcpt-foot { animation: ia-rcpt-rise 820ms cubic-bezier(0.16, 1, 0.3, 1) 560ms both; }
  #inquiry-form.ia-unseal { animation: ia-unseal 620ms cubic-bezier(0.16, 1, 0.3, 1) both; }
  #inquiry-form.ia-unseal > * { animation: ia-rcpt-rise 760ms cubic-bezier(0.16, 1, 0.3, 1) both; }
  @keyframes ia-rcpt-frame {
    from { opacity: 0; transform: translateX(-50%) translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: translateX(-50%); }
  }
  @keyframes ia-rcpt-press {
    0%   { opacity: 0; transform: scale(1.45); filter: blur(4px) brightness(1.8); }
    55%  { opacity: 1; transform: scale(0.95); filter: none; }
    100% { opacity: 1; transform: none; filter: none; }
  }
  @keyframes ia-rcpt-rise {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes ia-rcpt-rule {
    from { opacity: 0; transform: scaleX(0.2); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes ia-rcpt-foil {
    from { background-position: 130% 0, 0 0; }
    to   { background-position: -30% 0, 0 0; }
  }
  @keyframes ia-unseal { from { opacity: 0; } to { opacity: 1; } }
}

/* =============================================================
   WAVE 6 REVIEW FIXES (2026-11-17)
   From four independent reviews: craft, mobile, accessibility,
   robustness. Kept together so each can be traced to its finding.
   ============================================================= */

/* ---- Monumental type ---- */
/* the echo waits until its headline has landed (monumentalType adds and lifts .is-hushed) */
.fx-echo { transition: opacity 1100ms cubic-bezier(0.3, 0.9, 0.35, 1); }
.fx-echo.is-hushed { opacity: 0; }
/* the reading list sits tight between its eyebrow and its tiles: no echo there */
.lp-related > .fx-echo { display: none; }
/* high contrast modes paint the outline solid: the decoration would read as content */
@media (forced-colors: active) { .fx-echo { display: none; } }
/* sizes keep a rem term so the headlines still grow when the page is zoomed (same sizes at 1440) */
@media (min-width: 641px) {
  .section-headline { font-size: clamp(34px, 1rem + 5.55vw, 100px); }
  .lp-section-headline { font-size: clamp(28px, 0.75rem + 3.6vw, 70px); }
}
main[data-ia="essay"] .lp-section-headline { font-size: clamp(34px, 1rem + 4.45vw, 88px); }
/* phones get the larger headline too, and a quieter echo behind it */
@media (max-width: 640px) {
  .section-headline,
  .lp-section-headline { font-size: clamp(28px, 9vw, 40px); line-height: 1.1; }
  .fx-echo-word,
  .lp-section > .fx-echo .fx-echo-word,
  .lp-related > .fx-echo .fx-echo-word,
  main[data-ia="essay"] .lp-section > .fx-echo .fx-echo-word { font-size: 24vw; }
}

/* ---- Metal plates ---- */
/* on text-dense cards the hallmark stays in its corner, out from under the copy */
:root .lp-card:not(.lp-card--region)::after {
  inset: auto -7% -12% auto;
  width: clamp(110px, 42%, 190px);
  -webkit-mask-image: radial-gradient(circle at 100% 100%, #000 52%, transparent 84%);
  mask-image: radial-gradient(circle at 100% 100%, #000 52%, transparent 84%);
}
.fx-plates .lp-card:not(.lp-card--region):is(:hover, :focus-visible, .fx-tilting)::after { opacity: 0.6; }
/* a tilted tile stays one plane, so its lower edge never falls behind the grid */
:root .mk-tile-grid--jw-glass .mk-tile { transform-style: flat; }
/* copy brightens while the plate is lit, so it holds AA over the moving light */
:root :is(.lp-card, .mk-tile-grid--jw-glass .mk-tile):is(:hover, :focus-visible, .fx-tilting) p { color: var(--text-1); }
:root .mk-tile-grid--jw-glass .mk-tile:is(:hover, :focus-visible, .fx-tilting) .mk-tile-desc { color: rgba(255, 255, 255, 0.8); }
/* one room light falls across a row, rather than the same streak on every plate */
:root .lp-grid > .lp-card:nth-child(4n+2),
:root .mk-tile-grid > .mk-tile:nth-child(4n+2) { --fx-lx: 36%; }
:root .lp-grid > .lp-card:nth-child(4n+3),
:root .mk-tile-grid > .mk-tile:nth-child(4n+3) { --fx-lx: 46%; }
:root .lp-grid > .lp-card:nth-child(4n),
:root .mk-tile-grid > .mk-tile:nth-child(4n) { --fx-lx: 58%; }
/* third-party profile tiles keep their own colour on the frame, and carry no Integrity hallmark */
:root .mk-tile[class*="-accent"] { --fx-edge-hi: var(--tile-accent); }
:root .mk-tile[class*="-accent"]::after { content: none; }
/* the pinned pillars: the hallmark stays at a size the relief can hold crisply */
@media (min-width: 1025px) and (min-height: 640px) and (prefers-reduced-motion: no-preference) {
  :root #framework.fx-story .mk-tile::after { width: clamp(220px, 20vw, 300px); }
}

/* ---- The sealed letter ---- */
/* receipt labels: readable small text (about 8.8:1) */
.ia-rcpt-ledger dt { color: var(--text-2); font-size: 11px; }
/* narrow phones: the date stays on one line; the narrowest stack the two entries */
@media (max-width: 380px) {
  .ia-rcpt-ledger > div { padding: 2px 4px; }
  .ia-rcpt-ledger dd { font-size: 15px; white-space: nowrap; }
}
@media (max-width: 330px) {
  .ia-rcpt-ledger { grid-template-columns: 1fr; row-gap: 14px; }
  .ia-rcpt-ledger > div + div { border-left: 0; }
}
/* the form's ghost rules retire before the letter's ink arrives */
.ia-ltr-veil i,
.ia-ltr-veil b { animation: ia-ltr-marks 560ms linear both; }
@keyframes ia-ltr-marks {
  0%, 60% { opacity: 1; }
  100% { opacity: 0; }
}

/* =============================================================
   THE LAST THREE (2026-11-18)
   Private entry, sound, and the cursor that speaks.
   Script: greet(), sound() and cursorPlus() in ia-cinema.js.
   ============================================================= */

/* ---- Private entry: a line beneath the intro ring, by the visitor's own time of day ---- */
.ia-greet {
  position: fixed;
  left: 50%;
  top: calc(50% + clamp(132px, 22vmin, 184px) / 2 + 30px);
  z-index: 99992;
  pointer-events: none;
  white-space: nowrap;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  letter-spacing: 0.02em;
  padding: 0 0.1em;
  background: linear-gradient(100deg, #C89637 0%, #FFF3CF 45%, #D4A843 70%, #FDE58C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transform: translateX(-50%);
  animation: ia-greet 1150ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes ia-greet {
  0%   { opacity: 0; transform: translate(-50%, 10px); filter: blur(6px); }
  24%  { opacity: 1; transform: translate(-50%, 0); filter: blur(0); }
  78%  { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -6px); }
}

/* ---- Sound: a small gold control, lower left; flat bars when off, a slow pulse when on ---- */
.ia-sound {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(18px, calc(env(safe-area-inset-bottom) + 10px));
  z-index: 950;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(var(--gold-rgb), 0.55);
  background: rgba(8, 8, 8, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 244, 218, 0.08);
  transition: border-color 300ms ease, box-shadow 300ms ease;
}
.ia-sound:hover,
.ia-sound:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 18px rgba(var(--gold-rgb), 0.28);
}
.ia-sound:focus-visible { outline: 1px solid rgba(var(--gold-rgb), 0.8); outline-offset: 3px; }
.ia-sound-bars { display: flex; align-items: center; gap: 2.5px; height: 14px; }
.ia-sound-bars i {
  display: block;
  width: 2px;
  height: 3px;
  border-radius: 1px;
  background: linear-gradient(180deg, #FFF3CF, var(--gold));
  transition: height 300ms ease;
}
.ia-sound-bars i:nth-child(1) { height: 4px; }
.ia-sound-bars i:nth-child(2) { height: 8px; }
.ia-sound-bars i:nth-child(3) { height: 6px; }
.ia-sound-bars i:nth-child(4) { height: 3px; }
.ia-sound:not(.is-on) .ia-sound-bars { opacity: 0.6; }
.ia-sound.is-on .ia-sound-bars i { height: 10px; animation: ia-sound-eq 1.7s ease-in-out infinite; }
.ia-sound.is-on .ia-sound-bars i:nth-child(2) { animation-delay: -0.45s; }
.ia-sound.is-on .ia-sound-bars i:nth-child(3) { animation-delay: -0.9s; }
.ia-sound.is-on .ia-sound-bars i:nth-child(4) { animation-delay: -1.3s; }
@keyframes ia-sound-eq {
  0%, 100% { height: 4px; }
  50% { height: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .ia-sound.is-on .ia-sound-bars i { animation: none; }
  .ia-sound.is-on .ia-sound-bars i:nth-child(odd) { height: 6px; }
}
@media print { .ia-sound { display: none; } }

/* ---- The pointer speaks: a gold tag beside the system cursor over a card that opens ---- */
.ia-tag {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  transform: translate3d(-200px, -200px, 0);
  will-change: transform;
}
.ia-tag-word {
  display: block;
  padding: 7px 11px 7px 12px;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #F2CB5C;
  background: linear-gradient(180deg, rgba(22, 21, 18, 0.94), rgba(8, 8, 8, 0.94));
  border: 1px solid rgba(var(--gold-rgb), 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 244, 218, 0.1), 0 8px 22px rgba(0, 0, 0, 0.6), 0 0 18px rgba(var(--gold-rgb), 0.16);
  opacity: 0;
  transform: translateY(4px) scale(0.94);
  transform-origin: 0 0;
  transition: opacity 180ms ease, transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}
.ia-tag.is-on .ia-tag-word { opacity: 1; transform: none; }
/* gold dust from a fast hand: drawn under the cursor */
.ia-dust {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
}

/* ---- Inquiry form: optional text-message consent (A2P), 2026-11-21 ---- */
.inquiry-form .sms-consent {
  border: 0;
  margin: 4px 0 0;
  padding: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.inquiry-form .sms-consent legend {
  padding: 0;
  margin: 0 0 4px;
}
.inquiry-form label.consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-2);
}
main .inquiry-form label.consent::after { display: none; }
.inquiry-form label.consent input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  padding: 0;
  border: 1px solid rgba(var(--gold-rgb), 0.62);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  position: relative;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.inquiry-form label.consent input[type="checkbox"]:checked {
  background: var(--gold);
  border-color: var(--gold);
}
.inquiry-form label.consent input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.inquiry-form label.consent input[type="checkbox"]:focus-visible {
  outline: 1px solid var(--gold-hot);
  outline-offset: 2px;
}
.inquiry-form .consent-links {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-3);
}
.inquiry-form .consent-links a {
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
