/* ==========================================================================
   The Novare Method — microsite stylesheet
   Shared by index.html, apply.html, thank-you.html.
   All classes prefixed .nm- to never collide with the host WordPress install.
   Tokens are inlined below for portability — source of truth lives at
   ../brand/tokens.css. Keep that file in sync when changing values here.
   ========================================================================== */

/* Self-hosted variable fonts (latin subset). Source of files:
   build/assets/fonts/*.woff2 — downloaded from Google Fonts CSS API.
   Replaces the previous fonts.googleapis.com <link> which was render-blocking. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-variable.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/playfair-variable.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/playfair-variable-italic.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* color */
  --nm-bg: #000000;
  --nm-bg-elevated: #0a0a0a;
  --nm-bg-card: #111111;
  --nm-border-subtle: rgba(212, 175, 55, 0.18);
  --nm-border-accent: #C5A059;
  --nm-text: #FFFFFF;
  --nm-text-muted: #B8B8B8;
  --nm-text-on-gold: #000000;
  --nm-gold: #D4AF37;
  --nm-gold-bright: #E6C46B;
  --nm-gold-deep: #9D7E3F;
  --nm-wave-glow: rgba(212, 175, 55, 0.35);

  /* type */
  --nm-serif: 'Playfair Display', Georgia, serif;
  --nm-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --nm-w-display: 500;
  --nm-w-body: 400;
  --nm-w-emphasis: 600;

  /* size */
  --nm-size-h1: clamp(3.5rem, 8vw, 7rem);
  --nm-size-eyebrow: clamp(1.25rem, 2.4vw, 1.75rem);
  --nm-size-h2: clamp(2rem, 3.5vw, 3rem);
  --nm-size-h3: 1.5rem;
  --nm-size-body: 1.0625rem;
  --nm-size-small: 0.875rem;

  /* space */
  --nm-section-y: clamp(4rem, 8vw, 7rem);
  --nm-container: 1200px;
  --nm-narrow: 780px;

  /* fx */
  --nm-wave-opacity: 0.55;
  --nm-border-glow: 0 0 24px rgba(212, 175, 55, 0.25);
  --nm-card-radius: 2px;
  --nm-btn-radius: 999px;
}

/* ---------- reset & base ---------- */

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

html, body { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.nm,
.nm-page {
  background: var(--nm-bg);
  color: var(--nm-text);
  font-family: var(--nm-sans);
  font-size: var(--nm-size-body);
  font-weight: var(--nm-w-body);
  line-height: 1.6;
  overflow-x: clip;
  position: relative;
}

/* When the microsite content lives inside a WordPress page (.nm-page wrapper),
   make sure the wrapper fills the viewport so the dark background spans edge to edge. */
.nm-page {
  display: block;
  width: 100%;
  min-height: 100vh;
}

/* Allow body to clip horizontally without clipping vertically — section glows
   need to bleed across section boundaries, but must not push horizontal scroll. */
html { overflow-x: clip; }

img, svg { max-width: 100%; height: auto; display: block; }

/* Body-prose links carry an underline affordance for WCAG 1.4.1 compliance.
   Chrome elements (.nm-btn, .nm-pill, .nm-skip) override this with text-decoration: none. */
a { color: var(--nm-gold); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color 200ms ease; }
a:hover { color: var(--nm-gold-bright); }

::selection { background: var(--nm-gold); color: var(--nm-text-on-gold); }

/* ---------- layout primitives ---------- */

.nm-container {
  width: 100%;
  max-width: var(--nm-container);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.nm-container--narrow { max-width: var(--nm-narrow); }

.nm-section {
  position: relative;
  padding: var(--nm-section-y) 0;
  isolation: isolate;
}

.nm-section--alt { background: var(--nm-bg-elevated); }

/* Section-level gold glow accents — opt-in via .nm-glow--<position>.
   No overflow clipping — glows are designed to BLEED into adjacent sections so
   the page reads as one continuous flow of gold-tinted black, not stamped boxes.
   The body has overflow-x:clip to prevent horizontal scroll while letting the
   vertical bleed pass freely. */
.nm-glow {
  position: relative;
}

.nm-glow::before {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: -1;
  filter: blur(60px);
  /* Saturation knob: 0.66 was too washed-out for the brand. 0.82 gives the gold
     more presence without going back to the original 0.95 (which felt too hot). */
  opacity: 0.82;
}

/* Centered bloom — strong gold core radiating outward, bleeds top + bottom */
.nm-glow--c::before {
  top: -40%;
  left: 50%;
  width: 120%;
  height: 180%;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 35% 30% at 50% 50%, rgba(232, 180, 70, 0.55), transparent 65%),
    radial-gradient(ellipse 60% 45% at 50% 50%, rgba(212, 140, 35, 0.30), transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 50%, rgba(140, 90, 35, 0.18), transparent 75%);
}

/* Bottom-bleed — large gold pool seated at the bottom edge of the section,
   spilling DOWN into the next section. */
.nm-glow--bb::before {
  bottom: -50%;
  left: 50%;
  width: 130%;
  height: 110%;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 30% 50% at 50% 100%, rgba(232, 180, 70, 0.55), transparent 65%),
    radial-gradient(ellipse 55% 65% at 50% 100%, rgba(212, 140, 35, 0.32), transparent 70%),
    radial-gradient(ellipse 90% 85% at 50% 100%, rgba(140, 90, 35, 0.18), transparent 75%);
}

/* Top-bleed — large gold pool at top of section, spilling UP from previous section. */
.nm-glow--tb::before {
  top: -50%;
  left: 50%;
  width: 130%;
  height: 110%;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 30% 50% at 50% 0%, rgba(232, 180, 70, 0.50), transparent 65%),
    radial-gradient(ellipse 55% 65% at 50% 0%, rgba(212, 140, 35, 0.30), transparent 70%),
    radial-gradient(ellipse 90% 85% at 50% 0%, rgba(140, 90, 35, 0.18), transparent 75%);
}

/* Bottom-left — bleeds down + left */
.nm-glow--bl::before {
  bottom: -40%;
  left: -10%;
  width: 80%;
  height: 110%;
  background:
    radial-gradient(ellipse 50% 50% at 30% 80%, rgba(232, 180, 70, 0.50), transparent 65%),
    radial-gradient(ellipse 70% 70% at 30% 80%, rgba(212, 140, 35, 0.28), transparent 70%);
}

/* Top-right — bleeds up + right */
.nm-glow--tr::before {
  top: -40%;
  right: -10%;
  width: 80%;
  height: 110%;
  background:
    radial-gradient(ellipse 50% 50% at 70% 20%, rgba(232, 180, 70, 0.45), transparent 65%),
    radial-gradient(ellipse 70% 70% at 70% 20%, rgba(212, 140, 35, 0.25), transparent 70%);
}

/* Top-left — bleeds up + left */
.nm-glow--tl::before {
  top: -40%;
  left: -10%;
  width: 80%;
  height: 110%;
  background:
    radial-gradient(ellipse 50% 50% at 30% 20%, rgba(232, 180, 70, 0.45), transparent 65%),
    radial-gradient(ellipse 70% 70% at 30% 20%, rgba(212, 140, 35, 0.25), transparent 70%);
}

/* Bottom-right — bleeds down + right */
.nm-glow--br::before {
  bottom: -40%;
  right: -10%;
  width: 80%;
  height: 110%;
  background:
    radial-gradient(ellipse 50% 50% at 70% 80%, rgba(232, 180, 70, 0.50), transparent 65%),
    radial-gradient(ellipse 70% 70% at 70% 80%, rgba(212, 140, 35, 0.28), transparent 70%);
}

/* ---------- typography ---------- */

.nm h1, .nm h2, .nm h3, .nm h4,
.nm-page h1, .nm-page h2, .nm-page h3, .nm-page h4 {
  font-family: var(--nm-serif);
  font-weight: var(--nm-w-display);
  line-height: 1.1;
  color: var(--nm-text);
  margin: 0 0 1rem;
}

.nm-display {
  font-family: var(--nm-serif);
  font-size: var(--nm-size-h1);
  font-weight: var(--nm-w-display);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 0;
  /* Text-fill gradient: pure white at top, fading to 55% white at bottom of letterforms.
     Page background stays pure black — the gradient lives inside the type strokes only. */
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 45%, rgba(255, 255, 255, 0.55) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.nm-eyebrow {
  font-family: var(--nm-serif);
  font-size: var(--nm-size-eyebrow);
  font-weight: var(--nm-w-display);
  font-style: italic;
  color: var(--nm-text);
  letter-spacing: 0.005em;
  margin: 0 0 1.25rem;
  line-height: 1.3;
}

.nm-section-eyebrow {
  display: inline-block;
  font-family: var(--nm-sans);
  font-size: 0.8125rem;
  font-weight: var(--nm-w-emphasis);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nm-gold);
  margin: 0 0 1rem;
}

.nm h2.nm-section-title,
.nm-page h2.nm-section-title {
  font-family: var(--nm-serif);
  font-size: var(--nm-size-h2);
  font-weight: var(--nm-w-display);
  line-height: 1.15;
  margin: 0 0 1.5rem;
}

.nm h3,
.nm-page h3 {
  font-family: var(--nm-sans);
  font-size: var(--nm-size-h3);
  font-weight: var(--nm-w-emphasis);
  letter-spacing: 0.005em;
}

.nm p,
.nm-page p {
  margin: 0 0 1.25rem;
  /* color inherits from body.nm / .nm-page — do not set here, or it overrides class colors via specificity */
}

.nm-muted { color: var(--nm-text-muted); }

.nm-subhead {
  font-family: var(--nm-sans);
  font-size: clamp(1.25rem, 2.4vw, 1.875rem);
  font-weight: var(--nm-w-body);
  letter-spacing: 0.005em;
  color: var(--nm-gold);
  margin: 0 0 1.25rem;
  line-height: 1.3;
}

/* Specificity note: .nm p (0,1,1) overrides .nm-lede (0,1,0) for margin shorthand,
   which was zeroing the auto margins and pinning the lede to the left edge.
   Using .nm p.nm-lede (0,2,1) wins the cascade. */
.nm p.nm-lede,
.nm-page p.nm-lede {
  display: block;
  font-size: 1.0625rem;
  color: var(--nm-text);
  max-width: 56ch;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
  text-align: center;
}

.nm-tagline {
  font-family: var(--nm-serif);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--nm-gold);
  letter-spacing: 0.005em;
}

/* ---------- divider dot ---------- */

.nm-divider-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  margin: 1.5rem auto;
  max-width: 360px;
}

.nm-divider-dot::before,
.nm-divider-dot::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--nm-gold) 50%, transparent);
}

.nm-divider-dot::after {
  background: linear-gradient(to right, transparent, var(--nm-gold) 50%, transparent);
}

.nm-divider-dot__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nm-gold);
  box-shadow: 0 0 12px var(--nm-wave-glow);
  flex-shrink: 0;
}

/* ---------- curved gold lines (decorative SVG accent) ----------
   Place inside any section to add the flowing gold ribbon motif from the
   reference flyers. The SVG is inline in the markup; this class just sizes
   and positions it. */

.nm-curves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

/* Curves render BEHIND .nm-container (which is z-index: 2). They sit behind copy
   and buttons but above the section background and glow. */

.nm-curves--bottom {
  top: auto;
  bottom: 0;
  height: 60%;
}

.nm-curves--top {
  top: 0;
  bottom: auto;
  height: 60%;
}

.nm-curves svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.nm-curves__line {
  fill: none;
  stroke: url(#nm-curve-gradient);
  stroke-width: 1.5;
  opacity: 0.6;
}

.nm-curves__line--soft { opacity: 0.32; stroke-width: 1; }
.nm-curves__line--bright { opacity: 0.85; stroke-width: 2; }

/* ---------- announcement pill ---------- */

/* Elementor's site-wide kit CSS sets `.elementor-kit-{n} a { color: ...}` which
   overrides our pill color via specificity (0,1,1) vs our (0,1,0). Scope to the
   wrapper to win the cascade on WP pages. */
.nm-page a.nm-pill,
.nm-page a.nm-pill:link,
.nm-page a.nm-pill:visited,
body.nm a.nm-pill,
body.nm a.nm-pill:link,
body.nm a.nm-pill:visited { color: var(--nm-text); }

.nm-page a.nm-pill .nm-pill__cta,
body.nm a.nm-pill .nm-pill__cta { color: var(--nm-text); }

/* Also defend the body link color globally on microsite pages so other anchors
   (footer, in-text) don't pick up the kit's purple. Brand gold is the default
   for plain text links. Exclude .nm-btn / .nm-pill which manage their own
   foreground color (gold-on-button looks terrible against the gold gradient). */
.nm-page a:not(.nm-btn):not(.nm-pill):link,
.nm-page a:not(.nm-btn):not(.nm-pill):visited,
body.nm a:not(.nm-btn):not(.nm-pill):link,
body.nm a:not(.nm-btn):not(.nm-pill):visited { color: var(--nm-gold); }
.nm-page a:not(.nm-btn):not(.nm-pill):hover,
body.nm a:not(.nm-btn):not(.nm-pill):hover { color: var(--nm-gold-bright); }

/* Defend button text color against Elementor's kit anchor rule. */
.nm-page a.nm-btn--primary,
.nm-page a.nm-btn--primary:link,
.nm-page a.nm-btn--primary:visited,
body.nm a.nm-btn--primary,
body.nm a.nm-btn--primary:link,
body.nm a.nm-btn--primary:visited { color: var(--nm-text-on-gold); }

.nm-page a.nm-btn--secondary,
.nm-page a.nm-btn--secondary:link,
.nm-page a.nm-btn--secondary:visited,
body.nm a.nm-btn--secondary,
body.nm a.nm-btn--secondary:link,
body.nm a.nm-btn--secondary:visited { color: var(--nm-gold); }

.nm-page a.nm-btn--secondary:hover,
body.nm a.nm-btn--secondary:hover { color: var(--nm-text-on-gold); }

/* Defend button TEXT METRICS against the kit. Elementor's `.elementor-kit-7 a`
   sets `line-height: 0` (their global typography is misconfigured), which
   collapses every button's text into a 0-height ribbon and stacks the second
   line on top of the first. Same fix shape as the color rules above —
   .nm-page / body.nm scope wins the (0,1,1) kit rule. */
.nm-page a.nm-btn,
body.nm a.nm-btn {
  line-height: 1.25;
}

.nm-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem 0.45rem 1.125rem;
  margin-bottom: 1.5rem;
  background: rgba(20, 20, 24, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 999px;
  font-family: var(--nm-sans);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  color: var(--nm-text);
  text-decoration: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  position: relative;
  isolation: isolate;
}

.nm-pill::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(212, 175, 55, 0.45), rgba(212, 175, 55, 0) 60%, rgba(212, 175, 55, 0.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}

.nm-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nm-gold);
  box-shadow: 0 0 8px var(--nm-gold-bright);
  flex-shrink: 0;
}

.nm-pill__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--nm-text);
  font-weight: var(--nm-w-emphasis);
  border-bottom: 0;
  transition: color 200ms ease, transform 200ms ease;
}

.nm-pill__cta:hover { color: var(--nm-gold-bright); }

.nm-pill__cta svg { width: 12px; height: 12px; flex-shrink: 0; }

.nm-pill__sep {
  width: 1px;
  height: 14px;
  background: rgba(212, 175, 55, 0.3);
  margin: 0 0.25rem;
}

/* ---------- buttons ---------- */

.nm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  min-height: 48px;
  max-width: 100%;
  border-radius: var(--nm-btn-radius);
  font-family: var(--nm-sans);
  font-size: 0.9375rem;
  font-weight: var(--nm-w-emphasis);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 200ms ease;
  white-space: normal;
  line-height: 1.25;
}

@media (min-width: 600px) {
  .nm-btn { white-space: nowrap; }
}

.nm-btn--primary {
  background: linear-gradient(180deg, var(--nm-gold-bright) 0%, var(--nm-gold) 55%, var(--nm-gold-deep) 100%);
  color: var(--nm-text-on-gold);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 -1px 0 rgba(0, 0, 0, 0.25) inset,
    0 8px 24px rgba(212, 175, 55, 0.18);
}

.nm-btn--primary:hover {
  background: linear-gradient(180deg, #F0D076 0%, var(--nm-gold-bright) 55%, var(--nm-gold) 100%);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--nm-text-on-gold);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 -1px 0 rgba(0, 0, 0, 0.25) inset,
    0 12px 32px rgba(212, 175, 55, 0.36);
}

.nm-btn--primary:active {
  transform: translateY(0);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 -1px 0 rgba(0, 0, 0, 0.3) inset,
    0 4px 12px rgba(212, 175, 55, 0.2);
}

.nm-btn--secondary {
  background: transparent;
  color: var(--nm-gold);
  border-color: var(--nm-gold);
}

.nm-btn--secondary:hover {
  background: var(--nm-gold);
  color: var(--nm-text-on-gold);
}

.nm-btn--lg { padding: 1.1rem 2.5rem; font-size: 1rem; }

.nm-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

/* ---------- wave overlay (CSS-only flowing gold accent) ---------- */

.nm-has-wave { position: relative; overflow: hidden; }

.nm-has-wave::before,
.nm-has-wave::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.nm-has-wave::before {
  /* lower-left wave */
  bottom: -20%;
  left: -10%;
  width: 80%;
  height: 70%;
  background:
    radial-gradient(ellipse 60% 25% at 30% 50%, rgba(212, 175, 55, 0.22), transparent 65%),
    radial-gradient(ellipse 50% 18% at 50% 60%, rgba(212, 175, 55, 0.15), transparent 70%);
  filter: blur(2px);
  opacity: var(--nm-wave-opacity);
  transform: rotate(-12deg);
}

.nm-has-wave::after {
  /* upper-right secondary wave */
  top: -15%;
  right: -15%;
  width: 70%;
  height: 60%;
  background:
    radial-gradient(ellipse 55% 22% at 70% 40%, rgba(212, 175, 55, 0.15), transparent 65%),
    radial-gradient(ellipse 40% 14% at 60% 50%, rgba(212, 175, 55, 0.10), transparent 70%);
  filter: blur(3px);
  opacity: calc(var(--nm-wave-opacity) * 0.7);
  transform: rotate(8deg);
}

.nm-has-wave > * { position: relative; z-index: 1; }

/* ---------- hero ---------- */

@keyframes nm-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nm-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 7rem 1.5rem 8rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Hot amber pool of light beneath the CTA — the reference's signature element.
   Hot core + warm halo + soft outer wash, all positioned at the bottom of the hero
   so the visual frame below appears to "rise out of" the bloom. */
.nm-hero::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 130%;
  height: 50%;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 25% 80% at 50% 100%, rgba(255, 230, 160, 0.9), transparent 70%),
    radial-gradient(ellipse 40% 90% at 50% 100%, rgba(232, 180, 70, 0.7), transparent 65%),
    radial-gradient(ellipse 65% 100% at 50% 100%, rgba(212, 140, 35, 0.45), transparent 70%),
    radial-gradient(ellipse 100% 100% at 50% 100%, rgba(140, 90, 35, 0.25), transparent 75%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

.nm-hero__inner {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  animation: nm-fade-in 700ms ease-out both;
}

.nm-hero .nm-display {
  margin: 0 0 0.5rem;
}

.nm-hero .nm-subhead {
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
}

/* Specificity: .nm p (0,1,1) overrides .nm-hero__lede (0,1,0) and zeros the
   auto margins, so the 64ch box gets left-pinned. .nm p.nm-hero__lede (0,2,1)
   wins. Same fix pattern as .nm-lede. */
.nm p.nm-hero__lede,
.nm-page p.nm-hero__lede {
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
  color: var(--nm-text);
  max-width: 64ch;
  margin: 0 auto 2.25rem;
  line-height: 1.55;
  text-align: center;
}

.nm-hero__tagline {
  margin-top: 1.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 20px;
  font-family: var(--nm-serif);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--nm-gold);
}

/* Hero visual slot — image card sitting beneath the CTA, pulled UP into the
   bottom of the hero with negative margin so the image rises out of the amber bloom.
   The hero has overflow:hidden, but this is a SIBLING of the hero (not a child),
   so its negative margin-top is free to overlap the hero's bottom region. */
.nm-hero__visual {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1080px;
  margin: -5rem auto 4rem;
  padding: 0 1rem;
  animation: nm-fade-in 900ms ease-out 200ms both;
}

.nm-hero__visual-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.7),
    0 -1px 0 rgba(212, 175, 55, 0.18) inset,
    0 0 0 1px rgba(0, 0, 0, 0.6);
  background: var(--nm-bg-card);
}

.nm-hero__visual-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* Bottom fade so the image dissolves into the black instead of cutting hard */
.nm-hero__visual-frame::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background: linear-gradient(180deg, transparent 0%, var(--nm-bg) 95%);
  pointer-events: none;
}

/* ---------- card grid ---------- */

.nm-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

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

@media (max-width: 880px) {
  .nm-grid--3, .nm-grid--2 { grid-template-columns: 1fr; }
}

.nm-card {
  background: var(--nm-bg-card);
  border: 1px solid var(--nm-border-subtle);
  border-radius: var(--nm-card-radius);
  padding: 2rem 1.75rem;
  transition: border-color 250ms ease, transform 250ms ease;
}

.nm-card:hover {
  border-color: var(--nm-border-accent);
  transform: translateY(-2px);
}

.nm-card h3 {
  margin: 0 0 0.75rem;
  color: var(--nm-text);
}

.nm-card__icon-num {
  display: inline-block;
  font-family: var(--nm-serif);
  font-size: 2.25rem;
  font-weight: var(--nm-w-display);
  color: var(--nm-gold);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.nm-card p { margin-bottom: 0; color: var(--nm-text-muted); }

/* Device card variant — BTL equipment showcase. Has a 16:10 image slot at
   the top of the card, gold-tinted border, and labeled body. */
.nm-device-card {
  display: flex;
  flex-direction: column;
  background: var(--nm-bg-card);
  border: 1px solid var(--nm-border-subtle);
  border-radius: var(--nm-card-radius);
  overflow: hidden;
  transition: border-color 250ms ease, transform 250ms ease, box-shadow 250ms ease;
}

.nm-device-card:hover {
  border-color: var(--nm-border-accent);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -12px rgba(212, 175, 55, 0.25);
}

.nm-device-card__image {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--nm-bg-elevated), var(--nm-bg));
  overflow: hidden;
}

.nm-device-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nm-device-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

.nm-device-card__body {
  padding: 1.75rem 1.75rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nm-device-card__label {
  display: inline-block;
  font-family: var(--nm-sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nm-gold);
  font-weight: var(--nm-w-emphasis);
  margin-bottom: 0.5rem;
}

.nm-device-card__name {
  font-family: var(--nm-serif);
  font-size: 1.5rem;
  font-weight: var(--nm-w-display);
  color: var(--nm-text);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.nm-device-card__body p {
  margin: 0;
  color: var(--nm-text-muted);
  font-size: 0.9375rem;
}

/* ---------- problem bullets ---------- */

.nm-quote-list {
  list-style: none;
  padding: 0;
  margin: 2.5rem auto 0;
  max-width: 820px;
}

.nm-quote-list li {
  position: relative;
  padding: 1.125rem 1.5rem 1.125rem 3rem;
  margin-bottom: 0.75rem;
  background: var(--nm-bg-card);
  border-left: 2px solid var(--nm-gold);
  font-family: var(--nm-serif);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--nm-text);
  line-height: 1.45;
}

.nm-quote-list li::before {
  content: '“';
  position: absolute;
  left: 1rem;
  top: 0.6rem;
  font-family: var(--nm-serif);
  font-style: normal;
  font-size: 2.5rem;
  color: var(--nm-gold);
  line-height: 1;
}

/* ---------- numbered list (What you'll learn) ---------- */

.nm-numbered {
  list-style: none;
  counter-reset: nm-counter;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 2.5rem;
}

@media (max-width: 880px) {
  .nm-numbered { grid-template-columns: 1fr; gap: 1.75rem; }
}

.nm-numbered li {
  counter-increment: nm-counter;
  position: relative;
  padding-left: 4rem;
  min-height: 4rem;
}

.nm-numbered li::before {
  content: counter(nm-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -0.25rem;
  font-family: var(--nm-serif);
  font-size: 2.25rem;
  font-weight: var(--nm-w-display);
  color: var(--nm-gold);
  line-height: 1;
}

.nm-numbered h3 {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
  color: var(--nm-text);
}

.nm-numbered p { margin: 0; color: var(--nm-text-muted); font-size: 0.9375rem; }

/* ---------- 1.5-day agenda (two columns) ---------- */

.nm-agenda {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (max-width: 880px) {
  .nm-agenda { grid-template-columns: 1fr; gap: 1.5rem; }
}

.nm-agenda__day {
  background: var(--nm-bg-card);
  border: 1px solid var(--nm-border-subtle);
  border-radius: var(--nm-card-radius);
  padding: 2rem 2rem 2.25rem;
}

.nm-agenda__day-label {
  display: block;
  font-family: var(--nm-sans);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--nm-gold);
  font-weight: var(--nm-w-emphasis);
  margin-bottom: 0.5rem;
}

.nm-agenda__day-title {
  font-family: var(--nm-serif);
  font-size: 1.875rem;
  font-weight: var(--nm-w-display);
  color: var(--nm-text);
  margin: 0 0 1.5rem;
}

.nm-agenda__list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: agenda-counter;
}

.nm-agenda__list li {
  counter-increment: agenda-counter;
  position: relative;
  padding: 0.5rem 0 0.5rem 2.25rem;
  border-bottom: 1px solid var(--nm-border-subtle);
  color: var(--nm-text);
  font-size: 0.9375rem;
}

.nm-agenda__list li:last-child { border-bottom: 0; }

.nm-agenda__list li::before {
  content: counter(agenda-counter);
  position: absolute;
  left: 0;
  top: 0.5rem;
  font-family: var(--nm-serif);
  font-size: 1rem;
  font-weight: var(--nm-w-display);
  color: var(--nm-gold);
  width: 1.5rem;
  text-align: right;
}

/* Continue numbering across both day columns */
.nm-agenda__day--2 .nm-agenda__list { counter-reset: agenda-counter 7; }

/* ---------- founding cohort offer ---------- */

.nm-cohort {
  max-width: 820px;
  margin: 2.5rem auto 0;
  padding: 3rem 2.5rem;
  background: var(--nm-bg-card);
  border: 1px solid var(--nm-border-accent);
  border-radius: var(--nm-card-radius);
  text-align: center;
  position: relative;
}

.nm-cohort::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--nm-gold) 0%, transparent 50%, var(--nm-gold) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
}

.nm-cohort h3 {
  font-family: var(--nm-serif);
  font-size: 1.875rem;
  font-weight: var(--nm-w-display);
  margin: 0 0 1rem;
}

.nm-cohort__list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 2rem;
}

@media (max-width: 720px) {
  .nm-cohort__list { grid-template-columns: 1fr; }
  .nm-cohort { padding: 2.25rem 1.5rem; }
}

.nm-cohort__list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--nm-text);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.nm-cohort__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  border: 1px solid var(--nm-gold);
  transform: rotate(45deg);
  background: transparent;
}

/* ---------- final CTA band ---------- */

.nm-cta-band {
  text-align: center;
  padding: clamp(3.5rem, 7vw, 5.5rem) 1.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(212, 175, 55, 0.12), transparent 70%),
    var(--nm-bg);
  border-top: 1px solid var(--nm-border-subtle);
  border-bottom: 1px solid var(--nm-border-subtle);
}

.nm-cta-band h2 {
  font-family: var(--nm-serif);
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: var(--nm-w-display);
  line-height: 1.15;
  max-width: 22ch;
  margin: 0 auto 1.25rem;
}

.nm-cta-band p {
  color: var(--nm-text-muted);
  margin: 0 auto 2rem;
  max-width: 50ch;
}

/* Compact inline CTA — sits at the bottom of a section, lighter than the
   full CTA band. Used to give every section its own "apply" exit ramp. */
.nm-section-cta {
  margin-top: 3rem;
  text-align: center;
}

.nm-section-cta p {
  color: var(--nm-text-muted);
  font-size: 0.9375rem;
  font-style: italic;
  font-family: var(--nm-serif);
  margin: 0 0 1rem;
}

/* ---------- bio section (Dr. Ivan) ---------- */

.nm-bio {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2.5rem;
}

@media (max-width: 880px) {
  .nm-bio { grid-template-columns: 1fr; gap: 2rem; }
}

.nm-bio__credit {
  border-left: 2px solid var(--nm-gold);
  padding-left: 1.75rem;
}

.nm-bio__photo {
  margin: 0;
  position: relative;
  align-self: start;
  /* Soft amber glow behind the transparent-bg portrait — pulls the photo into
     the dark/gold treatment instead of leaving it floating on flat black. */
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.55))
          drop-shadow(0 0 32px rgba(212, 175, 55, 0.18));
}

.nm-bio__photo img {
  width: 100%;
  height: auto;
  display: block;
}

.nm-bio__body > .nm-bio__credit {
  margin-bottom: 1.75rem;
}

.nm-bio__credit h3 {
  font-family: var(--nm-serif);
  font-size: 1.625rem;
  font-weight: var(--nm-w-display);
  color: var(--nm-text);
  margin: 0 0 0.5rem;
}

.nm-bio__role {
  display: block;
  font-family: var(--nm-sans);
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nm-gold);
  font-weight: var(--nm-w-emphasis);
  margin-bottom: 1rem;
}

.nm-bio__credit p {
  color: var(--nm-text-muted);
  margin-bottom: 0;
  font-size: 0.9375rem;
}

/* ---------- footer ---------- */

.nm-footer {
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
  border-top: 1px solid var(--nm-border-subtle);
}

.nm-footer__tagline {
  font-family: var(--nm-serif);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--nm-gold);
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}

.nm-footer__strip {
  font-family: var(--nm-sans);
  font-size: 0.875rem;
  color: var(--nm-text-muted);
  letter-spacing: 0.04em;
}

.nm-footer__strip span { color: var(--nm-text); }

.nm-footer__pipe {
  display: inline-block;
  margin: 0 0.875rem;
  color: var(--nm-gold);
  font-weight: 300;
}

/* ---------- wordmark ---------- */

.nm-wordmark {
  font-family: var(--nm-sans);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--nm-text);
  text-transform: uppercase;
  display: inline-block;
  border: 1px solid var(--nm-text);
  padding: 0.5rem 1rem 0.5rem 1.25rem;
  margin-bottom: 0.5rem;
}

.nm-wordmark__sub {
  display: block;
  font-family: var(--nm-sans);
  font-size: 0.5625rem;
  letter-spacing: 0.32em;
  font-weight: var(--nm-w-emphasis);
  color: var(--nm-text);
  margin-top: 0.25rem;
}

/* ---------- form (apply page) ---------- */

.nm-apply {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 960px) {
  .nm-apply { grid-template-columns: 1fr; gap: 2.5rem; }
}

.nm-apply__intro h1 {
  font-family: var(--nm-serif);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: var(--nm-w-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 50%, rgba(255, 255, 255, 0.6) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.nm-apply__intro p { color: var(--nm-text); }
.nm-apply__intro p + p { color: var(--nm-text-muted); }

.nm-form {
  background: var(--nm-bg-card);
  border: 1px solid var(--nm-border-subtle);
  border-radius: var(--nm-card-radius);
  padding: 2.5rem 2rem;
}

@media (max-width: 600px) { .nm-form { padding: 1.75rem 1.25rem; } }

.nm-field {
  margin-bottom: 1.5rem;
}

.nm-field--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 600px) { .nm-field--row { grid-template-columns: 1fr; } }

.nm-label {
  display: block;
  font-family: var(--nm-sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: var(--nm-w-emphasis);
  color: var(--nm-text);
  margin-bottom: 0.5rem;
}

.nm-label__req {
  color: var(--nm-gold);
  margin-left: 0.25rem;
}

.nm-input,
.nm-textarea,
.nm-select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--nm-bg-elevated);
  border: 1px solid var(--nm-border-subtle);
  border-radius: var(--nm-card-radius);
  color: var(--nm-text);
  font-family: var(--nm-sans);
  font-size: var(--nm-size-body);
  font-weight: var(--nm-w-body);
  transition: border-color 200ms ease, box-shadow 200ms ease;
  -webkit-appearance: none;
  appearance: none;
}

.nm-input:focus,
.nm-textarea:focus,
.nm-select:focus {
  outline: none;
  border-color: var(--nm-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.nm-input::placeholder,
.nm-textarea::placeholder {
  color: rgba(160, 160, 160, 0.55);
}

.nm-textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}

.nm-select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath fill='%23D4AF37' d='M6 8L0 0h12z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.nm-input:user-invalid,
.nm-textarea:user-invalid,
.nm-select:user-invalid {
  border-color: rgba(220, 80, 80, 0.6);
}

/* ---------- radio + checkbox groups ---------- */

.nm-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.nm-options--stack { flex-direction: column; gap: 0.5rem; }

.nm-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.6rem 1rem 0.6rem 0.875rem;
  background: var(--nm-bg-elevated);
  border: 1px solid var(--nm-border-subtle);
  border-radius: var(--nm-btn-radius);
  cursor: pointer;
  font-size: 0.9375rem;
  color: var(--nm-text);
  transition: all 180ms ease;
  user-select: none;
}

.nm-option:hover { border-color: var(--nm-border-accent); }

.nm-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.nm-option__indicator {
  width: 16px;
  height: 16px;
  border: 1px solid var(--nm-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 180ms ease;
}

.nm-option--radio .nm-option__indicator { border-radius: 50%; }
.nm-option--checkbox .nm-option__indicator { border-radius: 2px; }

.nm-option input:checked ~ .nm-option__indicator {
  border-color: var(--nm-gold);
  background: var(--nm-gold);
}

.nm-option input:checked ~ .nm-option__indicator::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--nm-text-on-gold);
  border-radius: inherit;
}

.nm-option--checkbox input:checked ~ .nm-option__indicator::after {
  width: 4px;
  height: 8px;
  background: transparent;
  border: solid var(--nm-text-on-gold);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
  border-radius: 0;
}

.nm-option:has(input:checked) {
  border-color: var(--nm-gold);
  background: rgba(212, 175, 55, 0.08);
}

.nm-option input:focus-visible ~ .nm-option__indicator {
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* ---------- form submit ---------- */

.nm-form__submit {
  margin-top: 2rem;
  text-align: center;
}

.nm-form__submit .nm-btn {
  margin-bottom: 15px;
}

.nm-form__reassure {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--nm-text-muted);
  text-align: center;
  line-height: 1.5;
}

/* honeypot — hidden via positioning so bots see it but humans don't */
.nm-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ---------- thank you page ---------- */

.nm-thanks {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem;
}

.nm-thanks__inner { max-width: 720px; }

.nm-thanks h1 {
  font-family: var(--nm-serif);
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: var(--nm-w-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 50%, rgba(255, 255, 255, 0.55) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.nm-thanks p { font-size: 1.0625rem; max-width: 56ch; margin: 0 auto 1.25rem; }

.nm-thanks__back {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--nm-text-muted);
  letter-spacing: 0.04em;
}

.nm-thanks__back a { color: var(--nm-gold); border-bottom: 1px solid var(--nm-gold); }

/* ---------- accessibility ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--nm-gold);
  outline-offset: 2px;
}

.nm-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--nm-gold);
  color: var(--nm-text-on-gold);
  padding: 0.75rem 1rem;
  z-index: 100;
  text-decoration: none;
}

.nm-skip:focus { left: 1rem; top: 1rem; }
