/* NTH site styles */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* Safety net: never let a too-wide element scroll the whole page sideways.
   `clip` (not `hidden`) so position:sticky headers keep working. */
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--nth-ink);
  background: var(--nth-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

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

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.08;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; }
h4 { font-size: var(--fs-h4); font-weight: 600; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
small { font-size: var(--fs-xs); }

.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nth-warm-text);
  font-weight: 500;
}
/* Dark surfaces: the darkened warm accent vanishes against purple-ink, so
   step up to the glow variant (≥6:1 on every dark section colour). Keep
   these above .muted/.light so the explicit variants still win. */
.page-hero .eyebrow,
.section.dark .eyebrow,
.perm-section .eyebrow { color: var(--nth-warm-glow); }
.eyebrow.muted { color: var(--nth-ink-muted); }
.eyebrow.light { color: rgba(255,255,255,0.7); }

/* Layout */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container.wide { max-width: var(--wide-max); }
.section { padding-top: var(--sp-6); padding-bottom: var(--sp-6); position: relative; }
/* Reserved; use sparingly — already one step tighter than .section. */
.section.tight { padding-top: var(--sp-4); padding-bottom: var(--sp-4); }
.section.dark { background: var(--nth-purple-deep); color: var(--nth-white); }
.section.cream { background: var(--nth-cream); }
.section.ink { background: var(--nth-purple-ink); color: var(--nth-white); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-base);
  padding: 0.9rem 1.4rem;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 220ms var(--ease-brand), box-shadow 220ms var(--ease-brand), background 220ms var(--ease-brand), color 220ms var(--ease-brand), border-color 220ms var(--ease-brand);
  position: relative;
  will-change: transform;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--nth-orange-glow); outline-offset: 3px; }
.btn .arrow { display: inline-block; transition: transform 240ms var(--ease-brand); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--nth-orange);
  color: var(--nth-white);
  box-shadow: var(--sh-orange);
}
.btn-primary:hover { background: var(--nth-orange-glow); box-shadow: 0 18px 48px -8px rgba(138,61,147,0.6); }

.btn-outline {
  background: transparent;
  color: var(--nth-white);
  border-color: rgba(255,255,255,0.28);
}
.btn-outline:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.55); }

.btn-ghost {
  background: transparent;
  color: var(--nth-ink);
  border-color: var(--nth-border);
}
.btn-ghost:hover { background: var(--nth-cream); border-color: var(--nth-purple); }

.btn-link {
  background: transparent;
  color: var(--nth-orange);
  padding: 0.25rem 0;
  border: none;
  font-weight: 600;
}
.btn-link:hover { color: var(--nth-orange-dark); }

.btn-lg { padding: 1.05rem 1.7rem; font-size: 1.0625rem; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background 300ms var(--ease-brand), backdrop-filter 300ms var(--ease-brand), padding 300ms var(--ease-brand), border-color 300ms var(--ease-brand);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(26, 15, 34, 0.78);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  padding: 0.6rem 0;
  border-bottom-color: rgba(255,255,255,0.06);
}
.site-header.solid,
/* Hero-less templates (blog index, archives, search, single posts) have no
   dark hero behind the fixed header, so the transparent bar would leave the
   white logo/nav invisible. The nth-solid-header body class (added in
   inc/setup.php) forces the same solid dark state. */
.nth-solid-header .site-header {
  background: rgba(26, 15, 34, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: rgba(255,255,255,0.06);
}
/* The header is position:fixed (out of flow), so the default block-gap margin
   between the <header> and <main> siblings only exposes a strip of page
   background at the very top — a white bar above the dark hero, or below the
   solid bar on hero-less pages. Zero it everywhere so <main> sits flush. */
.site-main {
  margin-top: 0;
}
/* Push content clear of the fixed header on hero-less templates (no dark hero to
   sit behind). The header is ~89px tall at rest; 5rem (80px) keeps the offset
   fully behind the bar while clearing the first heading on index.html and
   single.html. */
.nth-solid-header {
  padding-top: 5rem;
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: var(--wide-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.site-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.site-header__logo img { height: 26px; width: auto; }
.site-header__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

/* Menu toggle */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--nth-white);
  padding: 0.6rem 0.95rem 0.6rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background 200ms var(--ease-brand), border-color 200ms var(--ease-brand);
}
@media (min-width: 1024px) {
  .menu-toggle { display: none; }
}
.menu-toggle:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.22); }
.menu-toggle:focus-visible { outline: 2px solid var(--nth-warm-glow); outline-offset: 3px; }
.menu-toggle__icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
  height: 16px;
  position: relative;
}
.menu-toggle__icon span {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 320ms var(--ease-brand), opacity 240ms var(--ease-brand), width 320ms var(--ease-brand);
  transform-origin: center;
}
.menu-toggle__icon span:nth-child(1) { width: 100%; }
.menu-toggle__icon span:nth-child(2) { width: 72%; }
.menu-toggle__icon span:nth-child(3) { width: 100%; }
.menu-toggle:hover .menu-toggle__icon span:nth-child(2) { width: 100%; }
.menu-toggle.is-open .menu-toggle__icon {
  align-items: center;
  justify-content: center;
}
.menu-toggle.is-open .menu-toggle__icon span:nth-child(1) {
  width: 100%;
  transform: translateY(5.5px) rotate(45deg);
}
.menu-toggle.is-open .menu-toggle__icon span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle.is-open .menu-toggle__icon span:nth-child(3) {
  width: 100%;
  transform: translateY(-5.5px) rotate(-45deg);
}
.menu-toggle__label { font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.6875rem; }

/* Demo button hides on very small screens to make room for menu */
@media (max-width: 520px) {
  .site-header__demo { display: none; }
}

/* Menu overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  opacity: 0;
  /* visibility (with a delay matching the fade) keeps the closed menu's
     links out of the tab order — opacity alone leaves them focusable. */
  visibility: hidden;
  transition: opacity 320ms var(--ease-brand), visibility 0s 320ms;
  color: var(--nth-white);
  overflow-y: auto;
  /* Solid base so the page never bleeds through when the menu content is
     taller than the viewport and scrolls (the __bg gradient only paints the
     first viewport). Shares the token with the gradient's bottom stop below,
     so the join is seamless even if the palette changes. */
  background: var(--nth-void);
}
.menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: opacity 320ms var(--ease-brand), visibility 0s;
}
.menu-overlay__bg {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #15071F 0%, var(--nth-void) 100%);
  pointer-events: none;
}
.menu-overlay__bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--grain); opacity: 0.06; mix-blend-mode: overlay;
}
.menu-overlay__glow {
  position: absolute; border-radius: 50%; pointer-events: none; filter: blur(60px);
}
.menu-overlay__glow--a {
  width: 560px; height: 560px;
  background: radial-gradient(closest-side, rgba(232,71,23,0.32), transparent 70%);
  top: -120px; right: -100px;
  animation: hero-glow 14s ease-in-out infinite alternate;
}
.menu-overlay__glow--b {
  width: 480px; height: 480px;
  background: radial-gradient(closest-side, rgba(138,61,147,0.55), transparent 70%);
  bottom: -140px; left: -120px;
  animation: hero-glow 18s ease-in-out -4s infinite alternate;
}
.menu-overlay__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 80%);
  opacity: 0.45;
}
.menu-overlay__inner {
  position: relative;
  max-width: var(--wide-max);
  margin: 0 auto;
  padding: 7rem var(--gutter) 4rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transform: translateY(-12px);
  opacity: 0;
  transition: transform 400ms var(--ease-brand) 80ms, opacity 320ms var(--ease-brand) 80ms;
}
.menu-overlay.is-open .menu-overlay__inner { transform: translateY(0); opacity: 1; }
.menu-overlay__head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.menu-overlay__email {
  color: rgba(255,255,255,0.7);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  transition: color 200ms var(--ease-brand);
}
.menu-overlay__email:hover { color: var(--nth-warm-glow); }
.menu-overlay__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  flex: 1;
}
@media (max-width: 1080px) { .menu-overlay__cols { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 3rem; } }
@media (max-width: 600px)  { .menu-overlay__cols { grid-template-columns: 1fr; gap: 2.5rem; } }
.menu-overlay__col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 320ms var(--ease-brand), transform 320ms var(--ease-brand);
  transition-delay: calc(200ms + var(--menu-i, 0) * 60ms);
}
.menu-overlay__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.menu-overlay__col li {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 320ms var(--ease-brand), transform 360ms var(--ease-brand);
  transition-delay: calc(280ms + var(--menu-i, 0) * 60ms + var(--menu-j, 0) * 30ms);
}
.menu-overlay.is-open .menu-overlay__col h4,
.menu-overlay.is-open .menu-overlay__col li { opacity: 1; transform: translateY(0); }
.menu-overlay__col a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: -0.01em;
  line-height: 1.2;
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
  transition: color 200ms var(--ease-brand), border-color 200ms var(--ease-brand), padding 240ms var(--ease-brand);
}
.menu-overlay__col a svg {
  color: rgba(255,255,255,0.25);
  transition: color 200ms var(--ease-brand), transform 240ms var(--ease-brand);
}
.menu-overlay__col a:hover {
  color: var(--nth-white);
  border-bottom-color: rgba(255,255,255,0.18);
  padding-left: 0.25rem;
}
.menu-overlay__col a:hover svg {
  color: var(--nth-warm-glow);
  transform: translate(2px, -2px);
}
.menu-overlay__col a.is-active { color: var(--nth-warm-glow); }
.menu-overlay__col a.is-active::after { display: none; }

.menu-overlay__foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 2.5rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
  gap: 1rem;
  flex-wrap: wrap;
}
.menu-overlay__foot-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: rgba(255,255,255,0.7);
  transition: color 200ms var(--ease-brand);
}
.menu-overlay__foot-link:hover { color: var(--nth-warm-glow); }
.menu-overlay__foot-status {
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.menu-overlay__foot-status .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--nth-success);
  box-shadow: 0 0 0 0 rgba(25,135,84,0.6);
  animation: pulse-dot 2s ease-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .menu-overlay__glow--a, .menu-overlay__glow--b { animation: none; }
  .menu-overlay__inner { transition: opacity 200ms linear; transform: none; }
  .menu-overlay__col h4, .menu-overlay__col li { transition: opacity 200ms linear; transform: none; }
}

/* Footer */
.site-footer {
  background: var(--nth-purple-ink);
  color: var(--nth-white);
  position: relative;
  overflow: hidden;
}
.site-footer__grain {
  position: absolute; inset: 0;
  background-image: var(--grain);
  opacity: 0.06;
  pointer-events: none;
  mix-blend-mode: overlay;
}
.site-footer__head {
  padding: var(--sp-6) 0 var(--sp-3);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-footer__head-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: end;
}
.site-footer__strap { color: rgba(255,255,255,0.65); max-width: 38rem; margin-top: 1rem; }
.site-footer__meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}
.site-footer__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
}
.site-footer__status::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--nth-success);
  box-shadow: 0 0 0 0 rgba(25,135,84,0.6);
  animation: pulse-dot 2s var(--ease-brand) infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(25,135,84,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(25,135,84,0); }
  100% { box-shadow: 0 0 0 0 rgba(25,135,84,0); }
}
.site-footer__badges { display: flex; gap: 1rem; margin-top: 0.5rem; flex-wrap: wrap; }
.site-footer__cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 2.5rem;
  padding: var(--sp-3) 0;
}
.site-footer__col h5 {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  font-family: var(--font-mono);
  font-weight: 500;
  margin-bottom: 1.2rem;
}
.site-footer__col a, .site-footer__col li {
  color: rgba(255,255,255,0.78);
  display: block;
  font-size: 0.9375rem;
  padding: 0.3rem 0;
  transition: color 180ms var(--ease-brand);
}
.site-footer__col a:hover { color: var(--nth-orange-glow); }
.site-footer__col ul { list-style: none; padding: 0; margin: 0; }
.site-footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer__bottom a { color: rgba(255,255,255,0.5); }
.site-footer__bottom a:hover { color: var(--nth-white); }
.site-footer__legal-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
@media (max-width: 900px) {
  .site-footer__head-inner { grid-template-columns: 1fr; }
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
}

/* Trust badge */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}
.trust-badge__icon {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--nth-orange), var(--nth-gold));
  color: var(--nth-purple-deep);
  font-size: 0.7rem; font-weight: 800;
  font-family: var(--font-mono);
}
.trust-badge--light { background: var(--nth-white); border-color: var(--nth-border); color: var(--nth-ink); }
.trust-badge--light .trust-badge__icon { background: linear-gradient(135deg, var(--nth-purple), var(--nth-purple-glow)); color: var(--nth-white); }

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms var(--ease-brand), transform 800ms var(--ease-brand);
  transition-delay: calc(var(--reveal-i, 0) * 80ms);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Generic surface card */
.card {
  background: var(--nth-white);
  border: 1px solid var(--nth-border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  box-shadow: var(--sh-sm);
  transition: transform 320ms var(--ease-brand), box-shadow 320ms var(--ease-brand), border-color 320ms var(--ease-brand);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  border-color: var(--nth-purple-glow);
}
.card-dark {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
  color: var(--nth-white);
}
.card-dark:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(138,61,147,0.4);
}

/* Section head */
.section-head { max-width: 64rem; margin-bottom: var(--sp-3); }
.section-head__title { font-size: var(--fs-h2); margin: 0.6rem 0 0.8rem; }
.section-head__sub { font-size: var(--fs-lg); color: var(--nth-ink-muted); max-width: 48rem; }
.section.dark .section-head__sub, .section.ink .section-head__sub { color: rgba(255,255,255,0.65); }

/* Icon chip */
.icon-chip {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(91,42,110,0.1), rgba(138,61,147,0.08));
  color: var(--nth-purple);
  border: 1px solid var(--nth-border);
}
.icon-chip svg { width: 22px; height: 22px; }
.section.dark .icon-chip, .section.ink .icon-chip {
  background: linear-gradient(135deg, rgba(138,61,147,0.2), rgba(138,61,147,0.14));
  border-color: rgba(255,255,255,0.1);
  color: var(--nth-orange-glow);
}

/* Page hero */
.page-hero {
  padding-top: calc(var(--sp-12) - 1rem);
  padding-bottom: var(--sp-6);
  position: relative;
  overflow: hidden;
  background: var(--grad-hero);
  color: var(--nth-white);
}
.page-hero__grain {
  position: absolute; inset: 0;
  background-image: var(--grain);
  opacity: 0.08;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.page-hero__glow {
  position: absolute;
  width: 880px; height: 880px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(138,61,147,0.32), transparent 70%);
  top: -240px; right: -200px;
  filter: blur(20px);
  pointer-events: none;
  animation: hero-drift 16s ease-in-out infinite alternate;
}
@keyframes hero-drift {
  0% { transform: translate(0,0) scale(1); opacity: 0.7; }
  100% { transform: translate(-40px, 30px) scale(1.06); opacity: 1; }
}
.page-hero__crumb {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}
.page-hero h1 { font-size: var(--fs-display); line-height: 1.02; max-width: 18ch; }
.page-hero__lede {
  font-size: var(--fs-lg);
  color: rgba(255,255,255,0.75);
  max-width: 44rem;
  margin-top: 1.25rem;
}
.page-hero__actions { display: flex; gap: 0.75rem; margin-top: 2rem; flex-wrap: wrap; }

/* CTA strip */
.cta-strip {
  position: relative;
  overflow: hidden;
  background: var(--grad-hero);
  color: var(--nth-white);
  padding: var(--sp-6) 0;
}
.cta-strip__grain { position: absolute; inset: 0; background: var(--grain); opacity: 0.07; mix-blend-mode: overlay; pointer-events: none; }
.cta-strip__glow { position: absolute; inset: 0; background: var(--grad-hero-vignette); pointer-events: none; }
.cta-strip__inner {
  display: grid;
  grid-template-columns: 1.5fr auto;
  gap: 2rem;
  align-items: center;
  position: relative;
}
.cta-strip h2 { font-size: clamp(2rem, 3vw + 1rem, 3rem); max-width: 24ch; }
.cta-strip__sub { color: rgba(255,255,255,0.7); margin-top: 0.75rem; font-size: 1.0625rem; }
.cta-strip__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
@media (max-width: 760px) {
  .cta-strip__inner { grid-template-columns: 1fr; }
}

/* Tags / chips */
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  background: rgba(91,42,110,0.08);
  color: var(--nth-purple);
  border: 1px solid var(--nth-border);
}
.chip-dark {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
}
.chip-accent {
  background: rgba(138,61,147,0.12);
  border-color: rgba(138,61,147,0.3);
  color: var(--nth-orange);
}

/* Number callout */
.numerals {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(135deg, var(--nth-orange), var(--nth-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

/* Magnetic button helper applied by JS */
.magnetic { transform: translate3d(var(--mx, 0), var(--my, 0), 0); }

/* Page transition */
.page-fade-enter { opacity: 0; transform: translateY(8px); }
.page-fade-enter.in { opacity: 1; transform: none; transition: opacity 400ms var(--ease-brand), transform 400ms var(--ease-brand); }

/* Spacing helpers */
.stack > * + * { margin-top: var(--gap, 1rem); }
.row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }
@media (min-width: 900px) and (max-width: 1100px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }

/* Inline kbd-ish marker */
.tag-dot {
  display: inline-block;
  width: 0.45rem; height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .page-hero__glow { animation: none; }
}


/* ─── Desktop nav (≥1024px) ─── */
.desk-nav { display: none; }
@media (min-width: 1024px) {
  .desk-nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin: 0 auto;
    /* Centred-ish between logo and right actions */
  }
}
.desk-nav__item {
  position: relative;
}
.desk-nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  border-radius: 8px;
  transition: color 200ms var(--ease-brand), background 200ms var(--ease-brand);
  cursor: pointer;
}
.desk-nav__trigger:hover,
.desk-nav__item.is-open .desk-nav__trigger,
.desk-nav__item.is-active .desk-nav__trigger {
  color: var(--nth-white);
  background: rgba(255,255,255,0.04);
}
.desk-nav__item.is-active .desk-nav__trigger {
  position: relative;
}
.desk-nav__item.is-active .desk-nav__trigger::after {
  content: "";
  position: absolute;
  left: 0.95rem; right: 0.95rem; bottom: 0.35rem;
  height: 2px;
  background: var(--nth-warm);
  border-radius: 2px;
}
.desk-nav__caret {
  transition: transform 240ms var(--ease-brand);
  color: rgba(255,255,255,0.55);
}
.desk-nav__item.is-open .desk-nav__caret { transform: rotate(-180deg); color: var(--nth-warm-glow); }

/* Dropdown panel */
.desk-nav__drop {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 360px;
  padding-top: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms var(--ease-brand), transform 280ms var(--ease-brand);
  z-index: 110;
}
.desk-nav__item.is-open .desk-nav__drop {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.desk-nav__drop-inner {
  background: linear-gradient(180deg, rgba(31,18,42,0.96) 0%, rgba(15,7,25,0.96) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 0.55rem;
  box-shadow: 0 24px 64px -16px rgba(0,0,0,0.65), 0 8px 24px rgba(0,0,0,0.35);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.desk-nav__drop-inner::before {
  content: "";
  position: absolute;
  top: -7px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: rgba(31,18,42,0.96);
  border-left: 1px solid rgba(255,255,255,0.08);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.desk-nav__drop-link {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 0.6rem;
  align-items: start;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  color: var(--nth-white);
  transition: background 200ms var(--ease-brand), transform 200ms var(--ease-brand);
  opacity: 0;
  transform: translateY(4px);
  animation: desk-nav-drop-in 320ms var(--ease-brand) forwards;
  animation-delay: calc(60ms + var(--drop-j, 0) * 28ms);
}
.desk-nav__item.is-open .desk-nav__drop-link { /* re-trigger animation each open via key not needed; consistent enough */ }
@keyframes desk-nav-drop-in {
  to { opacity: 1; transform: translateY(0); }
}
.desk-nav__drop-link:hover { background: rgba(255,255,255,0.05); }
.desk-nav__drop-link:hover .desk-nav__drop-arrow { transform: translate(2px, -2px); color: var(--nth-warm-glow); }
.desk-nav__drop-link.is-active { background: rgba(232,71,23,0.1); }
.desk-nav__drop-link.is-active .desk-nav__drop-title { color: var(--nth-warm-glow); }

.desk-nav__drop-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  line-height: 1.15;
  grid-column: 1;
  grid-row: 1;
}
.desk-nav__drop-desc {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.2rem;
  grid-column: 1;
  grid-row: 2;
  line-height: 1.4;
}
.desk-nav__drop-arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: rgba(255,255,255,0.3);
  transition: transform 240ms var(--ease-brand), color 200ms var(--ease-brand);
}

/* Hide demo button at narrow widths; the menu overlay or right area takes over */
@media (max-width: 520px) {
  .site-header__demo { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .desk-nav__drop-link { animation: none; opacity: 1; transform: none; }
}
