/* ============================================================
   NeonFighters — Main Stylesheet
   Cyberpunk / Futuristic / Glass Neon — v2
   ============================================================ */

/* ── CSS Custom Properties ───────────────────────────────── */
:root {
  /* Logo-matched brand colors */
  --nf-bg:           #06060F;
  --nf-bg-alt:       #09091A;
  --nf-bg-card:      rgba(255, 255, 255, 0.03);

  /* Logo cyan (N) */
  --nf-cyan:         #00E5FF;
  --nf-cyan-dim:     #00B4D8;

  /* Logo red (F) — replaces pink */
  --nf-red:          #FF1A1A;
  --nf-red-light:    #FF4545;

  /* Purple (logo gradient midpoint) */
  --nf-purple:       #8B2FFF;
  --nf-purple-light: #B060FF;

  /* Text */
  --nf-text:         #EDF2F7;
  --nf-text-muted:   #7A8899;

  /* Glass */
  --nf-glass:        rgba(255, 255, 255, 0.04);
  --nf-glass-shine:  rgba(255, 255, 255, 0.07);
  --nf-border:       rgba(0, 229, 255, 0.12);
  --nf-border-hover: rgba(0, 229, 255, 0.45);

  /* Glow Effects */
  --glow-cyan:   0 0 6px #00E5FF, 0 0 18px rgba(0,229,255,0.45), 0 0 40px rgba(0,229,255,0.15);
  --glow-red:    0 0 6px #FF1A1A, 0 0 18px rgba(255,26,26,0.45), 0 0 40px rgba(255,26,26,0.15);
  --glow-purple: 0 0 6px #8B2FFF, 0 0 18px rgba(139,47,255,0.45), 0 0 40px rgba(139,47,255,0.15);

  /* Text Glow */
  --text-glow-cyan:   0 0 10px rgba(0,229,255,0.9), 0 0 28px rgba(0,229,255,0.45);
  --text-glow-red:    0 0 10px rgba(255,26,26,0.8),  0 0 28px rgba(255,26,26,0.35);
  --text-glow-purple: 0 0 8px rgba(176,96,255,0.7), 0 0 22px rgba(176,96,255,0.28);

  /* Typography */
  --font-heading: 'Oxanium', sans-serif;
  --font-body:    'Chakra Petch', sans-serif;

  /* Spacing */
  --section-pad: clamp(3rem, 8vw, 6rem);
  --container:   90rem;

  /* Transitions */
  --ease-fast:   150ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-slow:   400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index scale */
  --z-base:     10;
  --z-overlay:  20;
  --z-dropdown: 30;
  --z-modal:    40;
  --z-nav:      50;
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  background-color: var(--nf-bg);
  color: var(--nf-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle ambient smoke layer — non-retro */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 80%, rgba(0,229,255,0.025) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(255,26,26,0.025) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(139,47,255,0.018) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--nf-cyan-dim); text-decoration: none; transition: color var(--ease-fast); }
a:hover { color: var(--nf-cyan); }
ul, ol { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: var(--font-body); }

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

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 300;
  line-height: 1.15;
  color: var(--nf-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.3rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1em; max-width: 70ch; }
p:last-child { margin-bottom: 0; }

/* ── Layout Utilities ────────────────────────────────────── */
.nf-container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.nf-section { padding-block: var(--section-pad); }
.nf-fd-section--char.nf-section { padding-block-start: var(--section-pad); padding-block-end: clamp(1.5rem, 4vw, 2.5rem); }

/* ── Section Backgrounds & Separators ───────────────────── */
.nf-section {
  position: relative;
}


/* Fading divider line for plain sections (no data-liquid-ether) */
.nf-section:not([data-liquid-ether])::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, 100%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), rgba(255,255,255,0.12), transparent);
  pointer-events: none;
  z-index: 1;
}

/* Soft glow bloom below the divider line */
.nf-section:not([data-liquid-ether])::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 0;
  right: 0;
  height: 60px;
  background: radial-gradient(ellipse 50% 100% at 50% 0%, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
  z-index: 1;
}

[data-liquid-ether] {
  position: relative;
  overflow: clip;
  background: #06060F;
}
[data-liquid-ether] > .nf-container {
  position: relative;
  z-index: 1;
}

/* Full-width containers; oval shape controlled by ellipse % inside the gradient */
[data-liquid-ether]::before,
[data-liquid-ether]::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 160px;
  pointer-events: none;
  z-index: 0;
}
[data-liquid-ether]::before {
  top: 0;
  background:
    linear-gradient(90deg, transparent 0%, var(--_line-color) 20%, var(--_line-color) 80%, transparent 100%) center 0 / 600px 1px no-repeat,
    var(--_top-glow);
}
[data-liquid-ether]::after {
  bottom: 0;
  background: var(--_bottom-glow);
}

/* Ellipse at 35% width = ~50% of viewport wide; fades to rgba(color,0) for clean blending */
[data-liquid-ether="cyan"] {
  --_line-color: rgba(0,229,255,0.45);
  --_top-glow:    radial-gradient(ellipse 35% 100% at 50% 0%,   rgba(0,229,255,0.09) 0%, rgba(0,229,255,0.05) 40%, rgba(0,229,255,0) 85%);
  --_bottom-glow: radial-gradient(ellipse 35% 100% at 50% 100%, rgba(0,229,255,0.09) 0%, rgba(0,229,255,0.05) 40%, rgba(0,229,255,0) 85%);
}
[data-liquid-ether="purple"] {
  --_line-color: rgba(139,47,255,0.45);
  --_top-glow:    radial-gradient(ellipse 35% 100% at 50% 0%,   rgba(139,47,255,0.09) 0%, rgba(139,47,255,0.05) 40%, rgba(139,47,255,0) 85%);
  --_bottom-glow: radial-gradient(ellipse 35% 100% at 50% 100%, rgba(139,47,255,0.09) 0%, rgba(139,47,255,0.05) 40%, rgba(139,47,255,0) 85%);
}
[data-liquid-ether="red"] {
  --_line-color: rgba(255,26,26,0.38);
  --_top-glow:    radial-gradient(ellipse 35% 100% at 50% 0%,   rgba(255,26,26,0.08) 0%, rgba(255,26,26,0.04) 40%, rgba(255,26,26,0) 85%);
  --_bottom-glow: radial-gradient(ellipse 35% 100% at 50% 100%, rgba(255,26,26,0.08) 0%, rgba(255,26,26,0.04) 40%, rgba(255,26,26,0) 85%);
}
[data-liquid-ether="mixed"] {
  --_line-color: rgba(139,47,255,0.38);
  --_top-glow:    radial-gradient(ellipse 35% 100% at 50% 0%,   rgba(139,47,255,0.08) 0%, rgba(139,47,255,0.04) 40%, rgba(139,47,255,0) 85%);
  --_bottom-glow: radial-gradient(ellipse 35% 100% at 50% 100%, rgba(139,47,255,0.08) 0%, rgba(139,47,255,0.04) 40%, rgba(139,47,255,0) 85%);
}
[data-liquid-ether="grey"] {
  --_line-color: rgba(255,255,255,0.12);
  --_top-glow:    radial-gradient(ellipse 50% 100% at 50% 0%, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
  --_bottom-glow: radial-gradient(ellipse 35% 100% at 50% 100%, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 85%);
}

.nf-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 28rem), 1fr));
  gap: 1.5rem;
}

.nf-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: 1.5rem;
}

.nf-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .nf-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

.nf-flex { display: flex; align-items: center; }
.nf-flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ── Section Headings ────────────────────────────────────── */
.nf-section-header {
  margin-bottom: 2.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.nf-section-title {
  position: relative;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 300;
  color: var(--nf-text);
  padding-bottom: 0.5rem;
}

.nf-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 1px;
  background: linear-gradient(90deg, var(--nf-cyan), var(--nf-red));
  box-shadow: var(--glow-cyan);
}

.nf-section-title .accent {
  color: var(--nf-cyan);
  text-shadow: var(--text-glow-cyan);
}

.nf-view-all {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--nf-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--ease-fast), text-shadow var(--ease-fast);
  white-space: nowrap;
}

.nf-view-all:hover {
  color: var(--nf-cyan);
  text-shadow: var(--text-glow-cyan);
}

.nf-view-all svg { width: 14px; height: 14px; }

/* ── Buttons ─────────────────────────────────────────────── */
.nf-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65em 1.6em;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--ease-normal);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  min-height: 44px;
  min-width: 44px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Glass sheen on all buttons */
.nf-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255,255,255,0.15);
  pointer-events: none;
}

/* Primary — neon cyan (logo color) */
.nf-btn--primary {
  background: rgba(0,229,255,0.06);
  color: var(--nf-cyan);
  border: 1px solid rgba(0,229,255,0.35);
  box-shadow: var(--glow-cyan), inset 0 0 20px rgba(0,229,255,0.04);
}

.nf-btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,229,255,0.12), transparent);
  opacity: 0;
  transition: opacity var(--ease-normal);
}

.nf-btn--primary:hover {
  color: #fff;
  border-color: var(--nf-cyan);
  background: rgba(0,229,255,0.1);
  box-shadow: 0 0 12px #00E5FF, 0 0 30px rgba(0,229,255,0.55), 0 0 60px rgba(0,229,255,0.2), inset 0 0 20px rgba(0,229,255,0.08);
  text-shadow: 0 0 8px rgba(255,255,255,0.8);
  transform: translateY(-1px);
}

.nf-btn--primary:hover::before { opacity: 1; }

/* Secondary — neon red (logo color) */
.nf-btn--secondary {
  background: rgba(255,26,26,0.05);
  color: var(--nf-red-light);
  border: 1px solid rgba(255,26,26,0.3);
  box-shadow: var(--glow-red), inset 0 0 20px rgba(255,26,26,0.03);
}

.nf-btn--secondary:hover {
  color: #fff;
  border-color: var(--nf-red-light);
  background: rgba(255,26,26,0.1);
  box-shadow: 0 0 12px #FF1A1A, 0 0 30px rgba(255,26,26,0.5), 0 0 60px rgba(255,26,26,0.2);
  text-shadow: 0 0 8px rgba(255,255,255,0.8);
  transform: translateY(-1px);
}

/* Purple accent */
.nf-btn--cyan {
  background: rgba(139,47,255,0.05);
  color: var(--nf-purple-light);
  border: 1px solid rgba(139,47,255,0.3);
  box-shadow: var(--glow-purple), inset 0 0 20px rgba(139,47,255,0.03);
}

.nf-btn--cyan:hover {
  color: #fff;
  border-color: var(--nf-purple-light);
  background: rgba(139,47,255,0.1);
  box-shadow: 0 0 12px #8B2FFF, 0 0 30px rgba(139,47,255,0.5), 0 0 60px rgba(139,47,255,0.2);
  transform: translateY(-1px);
}

/* Ghost small */
.nf-btn--ghost {
  padding: 0.4em 0.9em;
  font-size: 0.73rem;
  color: var(--nf-text-muted);
  border: 1px solid rgba(255,255,255,0.1);
  min-height: 36px;
  background: rgba(255,255,255,0.02);
  border-radius: 6px;
}

.nf-btn--ghost:hover {
  color: var(--nf-cyan);
  border-color: rgba(0,229,255,0.3);
  box-shadow: var(--glow-cyan);
}

.nf-btn:focus-visible {
  outline: 2px solid var(--nf-cyan);
  outline-offset: 3px;
}

/* ── Neon Badge / Tag ─────────────────────────────────────── */
.nf-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.2em 0.65em;
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 2px;
  border: 1px solid currentColor;
  line-height: 1;
}

.nf-tag--news   { color: var(--nf-cyan);        border-color: rgba(0,229,255,0.35); }
.nf-tag--guide  { color: var(--nf-purple-light); border-color: rgba(139,47,255,0.4); }
.nf-tag--blog   { color: var(--nf-red-light);    border-color: rgba(255,26,26,0.35); }
.nf-tag--hot    { color: #FCD34D;                border-color: rgba(252,211,77,0.4); }
.nf-tag--new    { color: var(--nf-cyan);         border-color: rgba(0,229,255,0.45); background: rgba(0,229,255,0.06); }

/* ── Cards — Glass Morphism ──────────────────────────────── */
.nf-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color var(--ease-normal), box-shadow var(--ease-normal), transform var(--ease-normal);
  position: relative;
}

/* Glass top-edge shine */
.nf-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.12) 30%, rgba(255,255,255,0.18) 50%, rgba(255,255,255,0.12) 70%, transparent 100%);
  z-index: 1;
}

/* Cyan neon glow on hover */
.nf-card:hover {
  border-color: rgba(0,229,255,0.25);
  box-shadow: 0 0 20px rgba(0,229,255,0.08), 0 8px 40px rgba(0,0,0,0.5), inset 0 0 30px rgba(0,229,255,0.02);
  transform: translateY(-3px);
}

/* ── Smoke effect ────────────────────────────────────────── */

/* Bottom wisps */
@keyframes nf-smoke-rise-a {
  0%   { transform: translate(-50%,   0)    scale(1,    1)    rotate(-3deg); opacity: 0; }
  15%  { opacity: 0.7; }
  60%  { transform: translate(-45%, -60px)  scale(1.4, 0.85)  rotate(4deg);  opacity: 0.45; }
  100% { transform: translate(-50%, -110px) scale(1.8, 0.7)   rotate(-2deg); opacity: 0; }
}
@keyframes nf-smoke-rise-b {
  0%   { transform: translate(-50%,   0)    scale(1,    1)    rotate(5deg);  opacity: 0; }
  20%  { opacity: 0.55; }
  65%  { transform: translate(-58%, -70px)  scale(1.5, 0.8)   rotate(-6deg); opacity: 0.3; }
  100% { transform: translate(-50%, -120px) scale(2,   0.65)  rotate(3deg);  opacity: 0; }
}
@keyframes nf-smoke-rise-c {
  0%   { transform: translate(-50%,   0)    scale(0.8, 1)     rotate(0deg);  opacity: 0; }
  25%  { opacity: 0.5; }
  70%  { transform: translate(-42%, -80px)  scale(1.3, 0.75)  rotate(7deg);  opacity: 0.25; }
  100% { transform: translate(-50%, -130px) scale(1.7, 0.6)   rotate(-4deg); opacity: 0; }
}

/* Side wisps */
@keyframes nf-smoke-side-l {
  0%   { transform: translate(0,     -50%) scale(1);   opacity: 0; }
  20%  { opacity: 0.55; }
  70%  { transform: translate(-30px, -65%) scale(1.4); opacity: 0.3; }
  100% { transform: translate(-55px, -75%) scale(1.8); opacity: 0; }
}
@keyframes nf-smoke-side-r {
  0%   { transform: translate(-100%, -50%) scale(1);   opacity: 0; }
  20%  { opacity: 0.5; }
  70%  { transform: translate(-130%, -65%) scale(1.4); opacity: 0.3; }
  100% { transform: translate(-155%, -75%) scale(1.8); opacity: 0; }
}

/* Corner wisps */
@keyframes nf-smoke-corner-tl {
  0%   { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
  25%  { opacity: 0.5; }
  100% { transform: translate(-90%, -90%) scale(1.6); opacity: 0; }
}
@keyframes nf-smoke-corner-tr {
  0%   { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
  25%  { opacity: 0.45; }
  100% { transform: translate(-10%, -90%) scale(1.6); opacity: 0; }
}

/* Perimeter ring pulse on card ::after */
@keyframes nf-smoke-perimeter {
  0%, 100% {
    box-shadow: 0 0 14px 3px rgba(147,51,234,0.45), 0 0 30px 8px rgba(0,229,255,0.1);
  }
  40% {
    box-shadow: 0 0 20px 5px rgba(0,229,255,0.5),   0 0 42px 12px rgba(147,51,234,0.15);
  }
  70% {
    box-shadow: 0 0 16px 4px rgba(220,0,180,0.4),   0 0 34px 10px rgba(0,229,255,0.15);
  }
}

/* Perimeter glow ring — card ::after was unused */
.nf-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}
.nf-card:hover::after {
  opacity: 1;
  animation: nf-smoke-perimeter 3s ease-in-out infinite;
}

/* Smoke container — full card size so side/corner spans can be positioned anywhere */
.nf-card__smoke {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.nf-card__smoke::before,
.nf-card__smoke::after {
  content: '';
}

/* Shared base: opacity 0 + transition so wisps fade OUT smoothly when hover ends */
.nf-card__smoke::before,
.nf-card__smoke::after,
.nf-card__smoke-c,
.nf-card__smoke-l,
.nf-card__smoke-r,
.nf-card__smoke-tl,
.nf-card__smoke-tr {
  display: block;
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0;
  transition: opacity 0.4s ease;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

/* ── Bottom wisps ── */
.nf-card__smoke::before,
.nf-card__smoke::after,
.nf-card__smoke-c { bottom: 0; width: 120px; height: 120px; }

.nf-card__smoke::before {
  left: 25%;
  background: radial-gradient(ellipse at 50% 80%, rgba(147,51,234,0.7) 0%, rgba(79,0,255,0.3) 50%, transparent 80%);
}
.nf-card__smoke::after {
  left: 65%;
  background: radial-gradient(ellipse at 50% 80%, rgba(0,229,255,0.55) 0%, rgba(0,150,255,0.25) 50%, transparent 80%);
}
.nf-card__smoke-c {
  left: 48%; width: 100px; height: 100px;
  background: radial-gradient(ellipse at 50% 80%, rgba(220,0,180,0.45) 0%, rgba(147,51,234,0.2) 50%, transparent 80%);
}

/* ── Side wisps ── */
.nf-card__smoke-l {
  left: 0; top: 50%; width: 90px; height: 90px;
  background: radial-gradient(ellipse at 80% 50%, rgba(147,51,234,0.55) 0%, rgba(79,0,255,0.2) 50%, transparent 80%);
}
.nf-card__smoke-r {
  right: 0; top: 50%; width: 90px; height: 90px;
  background: radial-gradient(ellipse at 20% 50%, rgba(0,229,255,0.5) 0%, rgba(0,150,255,0.2) 50%, transparent 80%);
}

/* ── Corner wisps ── */
.nf-card__smoke-tl {
  top: 0; left: 0; width: 80px; height: 80px;
  background: radial-gradient(ellipse at 80% 80%, rgba(147,51,234,0.5) 0%, rgba(220,0,180,0.2) 50%, transparent 80%);
}
.nf-card__smoke-tr {
  top: 0; right: 0; width: 80px; height: 80px;
  background: radial-gradient(ellipse at 20% 80%, rgba(0,229,255,0.45) 0%, rgba(147,51,234,0.2) 50%, transparent 80%);
}

/* ── Activate on hover ──
   Full animation declared HERE (not play-state toggle) so removing hover
   kills the animation entirely; base transition: opacity then fades wisps to 0. */
.nf-card:hover .nf-card__smoke::before {
  transition: none;
  animation: nf-smoke-rise-a 2.8s ease-out infinite;
}
.nf-card:hover .nf-card__smoke::after {
  transition: none;
  animation: nf-smoke-rise-b 3.2s 0.5s ease-out infinite;
}
.nf-card:hover .nf-card__smoke-c {
  transition: none;
  animation: nf-smoke-rise-c 3.6s 1s ease-out infinite;
}
.nf-card:hover .nf-card__smoke-l {
  transition: none;
  animation: nf-smoke-side-l 3s 0.3s ease-out infinite;
}
.nf-card:hover .nf-card__smoke-r {
  transition: none;
  animation: nf-smoke-side-r 3.4s 0.8s ease-out infinite;
}
.nf-card:hover .nf-card__smoke-tl {
  transition: none;
  animation: nf-smoke-corner-tl 3.8s 0.6s ease-out infinite;
}
.nf-card:hover .nf-card__smoke-tr {
  transition: none;
  animation: nf-smoke-corner-tr 4s 1.2s ease-out infinite;
}

.nf-card__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #06060F, #0D0A20);
}

.nf-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease-slow);
  filter: brightness(0.8) saturate(1.15);
}

.nf-card:hover .nf-card__thumb img { transform: scale(1.04); filter: brightness(0.9) saturate(1.2); }

.nf-card__thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,6,15,0.9) 0%, transparent 55%);
}

/* Glass reflection strip at bottom of thumb */
.nf-card__thumb::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0,229,255,0.04), transparent);
  pointer-events: none;
}

.nf-card__thumb-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
}

.nf-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.6rem;
}

.nf-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  color: var(--nf-text-muted);
}

.nf-card__meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--nf-text-muted);
  flex-shrink: 0;
}

.nf-card__title {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  line-height: 1.3;
  color: var(--nf-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color var(--ease-fast), text-shadow var(--ease-fast);
}

.nf-card:hover .nf-card__title {
  color: var(--nf-cyan);
  text-shadow: var(--text-glow-cyan);
}

.nf-card__excerpt {
  font-size: 0.85rem;
  color: var(--nf-text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nf-card__footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nf-card__author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--nf-text-muted);
}

.nf-card__author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nf-cyan-dim), var(--nf-red));
  flex-shrink: 0;
}

/* Featured card — larger */
.nf-card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
  min-height: 320px;
}

@media (max-width: 767px) {
  .nf-card--featured { flex-direction: column; }
}

.nf-card--featured .nf-card__thumb {
  flex: 0 0 55%;
  aspect-ratio: unset;
}

.nf-card--featured .nf-card__title {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
}

/* ── Navigation ──────────────────────────────────────────── */
.nf-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: 0;
  transition: background var(--ease-normal), backdrop-filter var(--ease-normal), box-shadow var(--ease-normal);
}

.nf-header.is-scrolled {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.055) 0%,
      rgba(6, 6, 15, 0.52)       100%
    );
  backdrop-filter:          blur(52px) saturate(1.9) brightness(1.06);
  -webkit-backdrop-filter:  blur(52px) saturate(1.9) brightness(1.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.5),
    0 2px 12px rgba(0, 229, 255, 0.05);
}

/* Specular shimmer — simulates light catching the glass surface */
.nf-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(0, 229, 255, 0.015)  55%,
    transparent               100%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--ease-normal);
}

.nf-header.is-scrolled::after {
  opacity: 1;
}

/* ── Compact header when scrolled ───────────────────────── */
.nf-header.is-scrolled .nf-header__inner {
  height: 66px;
}

/* Stable scrolled state — transition can unwind this smoothly on scroll-up */
.nf-header.is-scrolled .nf-logo {
  transform: scale(0.88);
}

/* Entry animation — plays only when first crossing the scroll threshold */
.nf-header.is-entering .nf-logo {
  animation: nf-logo-compact 0.45s ease-out forwards;
}

.nf-header.is-entering .nf-header__cta {
  animation: nf-cta-bump 0.45s ease-out forwards;
}

.nf-header.is-entering .nf-nav {
  animation: nf-nav-blur 0.52s ease-out forwards;
}

/* Exit animation — plays when returning to top */
.nf-header.is-leaving .nf-logo {
  animation: nf-logo-expand 0.45s ease-out forwards;
}

.nf-header.is-leaving .nf-header__cta {
  animation: nf-cta-expand 0.45s ease-out forwards;
}

.nf-header.is-leaving .nf-nav {
  animation: nf-nav-blur 0.52s ease-out forwards;
}

@keyframes nf-nav-blur {
  0%   { filter: blur(0px);   opacity: 1; }
  38%  { filter: blur(3px);   opacity: 0.6; }
  100% { filter: blur(0px);   opacity: 1; }
}

@keyframes nf-logo-compact {
  0%   { transform: scale(1);    filter: blur(0px); }
  45%  { transform: scale(0.88); filter: blur(2.5px); }
  100% { transform: scale(0.88); filter: blur(0px); }
}

@keyframes nf-logo-expand {
  0%   { transform: scale(0.88); filter: blur(0px); }
  45%  { transform: scale(1);    filter: blur(2.5px); }
  100% { transform: scale(1);    filter: blur(0px); }
}

@keyframes nf-cta-bump {
  0%   { filter: blur(0px); }
  45%  { filter: blur(2.5px); }
  100% { filter: blur(0px); }
}

@keyframes nf-cta-expand {
  0%   { filter: blur(0px); }
  45%  { filter: blur(2.5px); }
  100% { filter: blur(0px); }
}


/* ── Logo text animations ────────────────────────────────── */
@keyframes nf-logo-glitch {
  0%, 78%, 100% { text-shadow: none; }
  80%  { text-shadow: -3px 0 rgba(255,26,26,0.85), 3px 0 rgba(0,229,255,0.85); }
  82%  { text-shadow:  3px 0 rgba(255,26,26,0.85),-3px 0 rgba(0,229,255,0.85); }
  84%  { text-shadow: -1px 0 rgba(255,26,26,0.6),  1px 0 rgba(0,229,255,0.6); }
  86%  { text-shadow: none; }
}

/* Glitch on logo hover */
.nf-logo:hover .nf-logo__text {
  animation: nf-logo-glitch 5s ease-in-out infinite;
}

.nf-logo:hover .nf-logo__text span {
  animation: nf-logo-glitch 5s ease-in-out infinite 0.12s;
}

/* ── Nav links — scrolled state: tighter underline glow only ─ */
.nf-header.is-scrolled .nf-nav a:hover::after,
.nf-header.is-scrolled .nf-nav a.current-menu-item::after,
.nf-header.is-scrolled .nf-nav a.current_page_item::after {
  box-shadow: 0 0 6px rgba(0,229,255,0.95), 0 0 18px rgba(0,229,255,0.35);
}

/* Reduced motion overrides */
@media (prefers-reduced-motion: reduce) {
  .nf-header.is-entering .nf-logo,
  .nf-header.is-entering .nf-header__cta,
  .nf-header.is-entering .nf-nav,
  .nf-header.is-leaving .nf-logo,
  .nf-header.is-leaving .nf-header__cta,
  .nf-header.is-leaving .nf-nav,
  .nf-logo:hover .nf-logo__text,
  .nf-logo:hover .nf-logo__text span,
  .nf-mobile-menu.is-open,
  .nf-mobile-menu.is-open li {
    animation: none;
  }
  .nf-logo__mark-img { transition: none; }
  .nf-header.is-scrolled .nf-logo { transform: scale(0.88); }
  .nf-header__inner,
  .nf-logo,
  .nf-header__cta { transition: none; }
}

.nf-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 1.5rem;
  transition: height var(--ease-slow);
  position: relative;
  z-index: 1;
}

/* Logo */
.nf-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  text-decoration: none;
  transform-origin: left center;
  transition: transform var(--ease-slow), filter var(--ease-fast);
}

.nf-logo__mark {
  width: 52px;
  height: 52px;
  position: relative;
}

.nf-logo__mark-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
  filter:
    drop-shadow(0 0 4px rgba(0,229,255,0.95))
    drop-shadow(0 0 10px rgba(0,229,255,0.5))
    drop-shadow(0 0 18px rgba(0,229,255,0.2));
  transition: filter 0.45s ease-in-out;
}

.nf-header.is-scrolled .nf-logo__mark-img {
  filter:
    drop-shadow(0 0 4px rgba(255,26,26,0.95))
    drop-shadow(0 0 10px rgba(255,26,26,0.5))
    drop-shadow(0 0 18px rgba(255,26,26,0.2));
}

/* ── Mission Section ─────────────────────────────────────── */
.nf-mission__header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

.nf-mission__eyebrow {
  display: block;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--nf-purple-light);
  text-shadow: var(--text-glow-purple);
  margin-bottom: .75rem;
}

.nf-mission__title {
  margin-bottom: 1.25rem;
}

.nf-mission__lead {
  color: var(--nf-text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 1100px;
  text-align: center;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.nf-mission__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 767px) {
  .nf-mission__pillars {
    grid-template-columns: 1fr;
  }
}

.nf-mission__pillar {
  background: var(--nf-glass);
  border: 1px solid var(--nf-border);
  border-radius: 4px;
  padding: 2rem 1.75rem;
  transition: border-color var(--ease-normal), box-shadow var(--ease-normal);
}

.nf-mission__pillar:hover {
  border-color: var(--nf-border-hover);
  box-shadow: 0 0 28px rgba(0,229,255,0.06);
}

.nf-mission__icon {
  width: 52px;
  height: 52px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.nf-mission__icon--cyan {
  background: rgba(0, 229, 255, 0.08);
  color: var(--nf-cyan);
  box-shadow: inset 0 0 0 1px rgba(0,229,255,0.18);
}

.nf-mission__icon--purple {
  background: rgba(139, 47, 255, 0.1);
  color: var(--nf-purple-light);
  box-shadow: inset 0 0 0 1px rgba(139,47,255,0.2);
}

.nf-mission__icon--red {
  background: rgba(255, 26, 26, 0.08);
  color: var(--nf-red-light);
  box-shadow: inset 0 0 0 1px rgba(255,26,26,0.18);
}

.nf-mission__pillar-title {
  font-size: 1rem;
  margin-bottom: .6rem;
  letter-spacing: .08em;
}

.nf-mission__pillar-text {
  color: var(--nf-text-muted);
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: 0;
  max-width: none;
}

.nf-logo__text {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 300;
  color: var(--nf-cyan);
  text-shadow: 0 0 6px rgba(0,229,255,0.5), 0 0 16px rgba(0,229,255,0.2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1;
}

.nf-logo__text span {
  color: var(--nf-red);
  text-shadow: 0 0 6px rgba(255,26,26,0.5), 0 0 16px rgba(255,26,26,0.2);
}

/* Primary nav */
.nf-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nf-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nf-nav ul li {
  position: relative;
  list-style: none;
}

.nf-nav ul li ul { display: none; }

.nf-nav ul li.current-menu-item > a,
.nf-nav ul li.current_page_item > a,
.nf-nav ul li.current-menu-ancestor > a {
  color: var(--nf-text);
}

.nf-nav ul li.current-menu-item > a::after,
.nf-nav ul li.current_page_item > a::after {
  transform: scaleX(1);
}

.nf-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.45em 0.85em;
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--nf-text-muted);
  border-radius: 2px;
  transition: color var(--ease-fast), background var(--ease-fast);
  position: relative;
  min-height: 44px;
}

.nf-nav a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0.85em;
  right: 0.85em;
  height: 1px;
  background: var(--nf-cyan);
  box-shadow: var(--glow-cyan);
  transform: scaleX(0);
  transition: transform var(--ease-normal);
}

.nf-nav a:hover,
.nf-nav a.current-menu-item,
.nf-nav a.current_page_item {
  color: var(--nf-text);
}

.nf-nav a:hover::after,
.nf-nav a.current-menu-item::after,
.nf-nav a.current_page_item::after {
  transform: scaleX(1);
}

/* Hamburger */
.nf-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--nf-border);
  background: var(--nf-glass);
  cursor: pointer;
  transition: border-color var(--ease-fast), background var(--ease-fast), box-shadow var(--ease-fast);
}

.nf-hamburger:hover {
  border-color: var(--nf-border-hover);
  background: rgba(0, 229, 255, 0.08);
  box-shadow: var(--glow-cyan);
}

.nf-hamburger:focus-visible {
  outline: 2px solid var(--nf-cyan);
  outline-offset: 3px;
}

.nf-hamburger.is-open {
  border-color: var(--nf-cyan);
  background: rgba(0, 229, 255, 0.1);
  box-shadow: var(--glow-cyan);
}

.nf-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--nf-text);
  border-radius: 1px;
  transition: transform var(--ease-normal), opacity var(--ease-normal), background var(--ease-fast);
}

.nf-hamburger.is-open span { background: var(--nf-cyan); }

.nf-hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nf-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nf-hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.nf-mobile-menu {
  display: none;
  position: fixed;
  inset: 70px 0 0 0;
  background:
    radial-gradient(ellipse 80% 40% at 10% 0%, rgba(0, 229, 255, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 100%, rgba(139, 47, 255, 0.07) 0%, transparent 60%),
    rgba(6, 6, 15, 0.97);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  border-top: 1px solid rgba(0, 229, 255, 0.08);
  z-index: calc(var(--z-nav) - 1);
  padding: 2rem 1.75rem;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 229, 255, 0.4) transparent;
}

.nf-mobile-menu::-webkit-scrollbar {
  width: 6px;
}

.nf-mobile-menu::-webkit-scrollbar-track {
  background: transparent;
}

.nf-mobile-menu::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 255, 0.35);
  border-radius: 999px;
}

.nf-mobile-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 229, 255, 0.65);
}

.nf-mobile-menu.is-open {
  display: flex;
  animation: nf-menu-slide 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes nf-menu-slide {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Staggered item reveal */
.nf-mobile-menu.is-open li:nth-child(1)  { animation: nf-menu-item 0.28s 0.04s cubic-bezier(0.22,1,0.36,1) both; }
.nf-mobile-menu.is-open li:nth-child(2)  { animation: nf-menu-item 0.28s 0.09s cubic-bezier(0.22,1,0.36,1) both; }
.nf-mobile-menu.is-open li:nth-child(3)  { animation: nf-menu-item 0.28s 0.14s cubic-bezier(0.22,1,0.36,1) both; }
.nf-mobile-menu.is-open li:nth-child(4)  { animation: nf-menu-item 0.28s 0.19s cubic-bezier(0.22,1,0.36,1) both; }
.nf-mobile-menu.is-open li:nth-child(5)  { animation: nf-menu-item 0.28s 0.23s cubic-bezier(0.22,1,0.36,1) both; }
.nf-mobile-menu.is-open li:nth-child(6)  { animation: nf-menu-item 0.28s 0.27s cubic-bezier(0.22,1,0.36,1) both; }
.nf-mobile-menu.is-open li:nth-child(n+7){ animation: nf-menu-item 0.28s 0.30s cubic-bezier(0.22,1,0.36,1) both; }

@keyframes nf-menu-item {
  from { opacity: 0; transform: translateX(-14px); }
  to   { opacity: 1; transform: translateX(0); }
}

.nf-mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.nf-mobile-menu ul li { list-style: none; }
.nf-mobile-menu ul li ul { display: none; }

.nf-mobile-menu a {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 200;
  color: var(--nf-text-muted);
  padding: 0.8rem 0 0.8rem 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  border-left: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color var(--ease-fast), border-color var(--ease-fast), padding-left var(--ease-normal), text-shadow var(--ease-fast);
  display: block;
}

.nf-mobile-menu a:hover {
  color: var(--nf-cyan);
  text-shadow: var(--text-glow-cyan);
  border-left-color: var(--nf-cyan);
  padding-left: 1.25rem;
}

/* Active page item in mobile menu */
.nf-mobile-menu a.current-menu-item,
.nf-mobile-menu a.current_page_item {
  color: var(--nf-cyan);
  border-left-color: rgba(0, 229, 255, 0.5);
  text-shadow: var(--text-glow-cyan);
}

.nf-header__cta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: transform var(--ease-slow), filter var(--ease-fast);
}

.nf-header__cta .nf-btn {
  padding: 0.45em 1.1em;
  font-size: 0.72rem;
  min-height: 36px;
  letter-spacing: 0.12em;
}

@media (max-width: 900px) {
  .nf-nav { display: none; }
  .nf-header__cta { display: none; }
  .nf-hamburger { display: flex; }
  .nf-header .nf-logo__text { display: none; }
}

/* ── WordPress Admin Bar Offset ──────────────────────────── */
.admin-bar .nf-header          { top: 32px; }
.admin-bar .nf-mobile-menu     { top: calc(32px + 70px); }
.admin-bar .nf-hero,
.admin-bar .nf-page-hero       { padding-top: calc(70px + 32px); }
.admin-bar .nf-single          { padding-top: calc(70px + 32px + 3rem); }

@media screen and (max-width: 782px) {
  .admin-bar .nf-header          { top: 46px; }
  .admin-bar .nf-mobile-menu     { top: calc(46px + 70px); }
  .admin-bar .nf-hero,
  .admin-bar .nf-page-hero       { padding-top: calc(70px + 46px); }
  .admin-bar .nf-single          { padding-top: calc(70px + 46px + 3rem); }
}

/* ── Hero Section ────────────────────────────────────────── */
.nf-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding-top: 70px;
  padding-bottom: 10rem;
}

/* Background container — layers crossfade per slide */
.nf-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.nf-hero__bg-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nf-hero__bg-layer.is-active { opacity: 1; }

.nf-hero__bg-layer--cyan-red {
  background:
    radial-gradient(ellipse 70% 65% at 0%   100%, rgba(0,229,255,0.22)  0%, transparent 55%),
    radial-gradient(ellipse 60% 55% at 100% 0%,   rgba(255,26,26,0.18)  0%, transparent 52%),
    radial-gradient(ellipse 80% 70% at 50%  45%,  rgba(139,47,255,0.10) 0%, transparent 62%),
    radial-gradient(ellipse 40% 40% at 8%   38%,  rgba(0,229,255,0.09)  0%, transparent 55%),
    radial-gradient(ellipse 35% 40% at 92%  65%,  rgba(255,26,26,0.08)  0%, transparent 55%),
    radial-gradient(ellipse 45% 35% at 85%  95%,  rgba(139,47,255,0.07) 0%, transparent 55%),
    #06060F;
}

.nf-hero__bg-layer--red-purple {
  background:
    radial-gradient(ellipse 70% 65% at 0%   100%, rgba(255,26,26,0.22)   0%, transparent 55%),
    radial-gradient(ellipse 60% 55% at 100% 0%,   rgba(139,47,255,0.18)  0%, transparent 52%),
    radial-gradient(ellipse 80% 70% at 50%  45%,  rgba(0,229,255,0.08)   0%, transparent 62%),
    radial-gradient(ellipse 40% 40% at 8%   38%,  rgba(255,26,26,0.10)   0%, transparent 55%),
    radial-gradient(ellipse 35% 40% at 92%  65%,  rgba(139,47,255,0.09)  0%, transparent 55%),
    radial-gradient(ellipse 45% 35% at 85%  95%,  rgba(255,26,26,0.07)   0%, transparent 55%),
    #06060F;
}

.nf-hero__bg-layer--purple-cyan {
  background:
    radial-gradient(ellipse 70% 65% at 0%   100%, rgba(139,47,255,0.22)  0%, transparent 55%),
    radial-gradient(ellipse 60% 55% at 100% 0%,   rgba(0,229,255,0.18)   0%, transparent 52%),
    radial-gradient(ellipse 80% 70% at 50%  45%,  rgba(255,26,26,0.08)   0%, transparent 62%),
    radial-gradient(ellipse 40% 40% at 8%   38%,  rgba(139,47,255,0.09)  0%, transparent 55%),
    radial-gradient(ellipse 35% 40% at 92%  65%,  rgba(0,229,255,0.08)   0%, transparent 55%),
    radial-gradient(ellipse 45% 35% at 85%  95%,  rgba(139,47,255,0.07)  0%, transparent 55%),
    #06060F;
}

/* Grid lines removed */
.nf-hero__grid { display: none; }

/* ── Slider ──────────────────────────────────────────────── */
.nf-slider {
  flex: 1;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
}

.nf-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 700ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.nf-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.nf-slide > .nf-container { width: 100%; }

.nf-slide.is-active .nf-hero__content {
  animation: nf-slide-in 600ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.nf-slide.is-active .nf-hero__visual {
  animation: nf-slide-in 600ms 100ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes nf-slide-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Slider Controls ─────────────────────────────────────── */
/* Controls wrapper — full-width so arrows can sit at the edges */
.nf-slider__controls {
  position: absolute;
  bottom: 5.5rem;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  pointer-events: none;
}

/* Arrow buttons — ghost circles at far left / right */
.nf-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(6,6,15,0.45);
  color: rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: border-color 200ms ease, color 200ms ease, box-shadow 200ms ease, background 200ms ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nf-slider__btn--prev { left: clamp(1.25rem, 4vw, 3rem); }
.nf-slider__btn--next { right: clamp(1.25rem, 4vw, 3rem); }

.nf-slider__btn:hover {
  border-color: rgba(0,229,255,0.45);
  color: var(--nf-cyan);
  background: rgba(0,229,255,0.06);
  box-shadow: 0 0 12px rgba(0,229,255,0.35), inset 0 0 12px rgba(0,229,255,0.04);
}

.nf-slider__btn:focus-visible {
  outline: 2px solid var(--nf-cyan);
  outline-offset: 3px;
}

/* Dots row — centered in the controls */
.nf-slider__dots {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  pointer-events: auto;
}

/* Each dot: 44×44 touch target, visual via ::before */
.nf-slider__dot {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: none;
}

.nf-slider__dot::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.2);
  transition: width 280ms ease, height 280ms ease, background 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}

/* Active dot — neon cyan fill + pulse glow */
.nf-slider__dot.is-active::before {
  width: 11px;
  height: 11px;
  background: var(--nf-cyan);
  border-color: var(--nf-cyan);
  box-shadow:
    0 0 0 3px rgba(0,229,255,0.15),
    0 0 8px var(--nf-cyan),
    0 0 20px rgba(0,229,255,0.55),
    0 0 40px rgba(0,229,255,0.25);
  animation: nf-dot-pulse 2.4s ease-in-out infinite;
}

/* Spinning timer ring around the active dot */
.nf-slider__dot.is-active::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: var(--nf-cyan);
  border-right-color: rgba(0,229,255,0.25);
  box-shadow: 0 0 6px rgba(0,229,255,0.4);
  animation: nf-dot-ring 6s linear infinite;
  transform-origin: center;
  translate: -50% -50%;
}

@keyframes nf-dot-ring {
  from { rotate: 0deg; }
  to   { rotate: 360deg; }
}

@keyframes nf-dot-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 3px rgba(0,229,255,0.15),
      0 0 8px var(--nf-cyan),
      0 0 20px rgba(0,229,255,0.55),
      0 0 40px rgba(0,229,255,0.25);
  }
  50% {
    box-shadow:
      0 0 0 5px rgba(0,229,255,0.08),
      0 0 12px var(--nf-cyan),
      0 0 30px rgba(0,229,255,0.75),
      0 0 55px rgba(0,229,255,0.35);
  }
}

.nf-slider__dot:hover::before {
  background: rgba(0,229,255,0.45);
  border-color: rgba(0,229,255,0.5);
  box-shadow: 0 0 8px rgba(0,229,255,0.4);
}

.nf-slider__dot:focus-visible {
  outline: 2px solid var(--nf-cyan);
  outline-offset: 2px;
  border-radius: 50%;
}

@media (prefers-reduced-motion: reduce) {
  .nf-slider__dot.is-active::before { animation: none; }
  .nf-slider__dot.is-active::after  { animation: none; }
}

/* Progress bar hidden — timer is shown via spinning ring on active dot */
.nf-slider__progress { display: none; }

/* Two-column inner grid */
.nf-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  width: 100%;
}

.nf-hero__content { position: relative; z-index: 2; }

.nf-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--nf-cyan);
  text-shadow: var(--text-glow-cyan);
  margin-bottom: 1.25rem;
}

.nf-hero__eyebrow::before,
.nf-hero__eyebrow::after {
  content: '';
  display: block;
  height: 1px;
  width: 30px;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

.nf-hero__title {
  font-size: clamp(2.4rem, 5.2vw, 5rem);
  font-weight: 400;
  line-height: 0.95;
  margin-bottom: 0;
}

.nf-hero__title .line-1 {
  display: block;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.95);
  filter:
    drop-shadow(0 0 3px rgba(255, 255, 255, 0.9))
    drop-shadow(0 0 12px rgba(210, 228, 255, 0.3));
}

.nf-hero__title .line-2 {
  display: block;
  color: transparent;
  -webkit-text-stroke: 2px rgba(0, 229, 255, 0.95);
  filter:
    drop-shadow(0 0 3px rgba(0, 229, 255, 0.95))
    drop-shadow(0 0 12px rgba(0, 229, 255, 0.3));
}

.nf-hero__title .line-3 {
  display: block;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 50, 50, 0.95);
  filter:
    drop-shadow(0 0 3px rgba(255, 80, 80, 0.9))
    drop-shadow(0 0 12px rgba(255, 26, 26, 0.3));
}

.nf-hero__desc {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: var(--nf-text-muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 50ch;
}

.nf-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Stats strip — glass */
.nf-hero__stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(6,6,15,0.5);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  padding-block: 1.5rem;
}

.nf-hero__stats-inner {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nf-hero__stat-item { display: flex; flex-direction: column; gap: 0.2rem; align-items: center; }

.nf-hero__stat-value {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--nf-cyan);
  text-shadow: var(--text-glow-cyan);
}

.nf-hero__stat-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--nf-text-muted);
}

.nf-hero__stat-item + .nf-hero__stat-item {
  border-left: 1px solid rgba(255,255,255,0.06);
  padding-left: 3rem;
}

/* Stats strip — standalone version (e.g. About page), same glass look as the hero strip above */
.nf-stats-bar {
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(6,6,15,0.5);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  padding-block: 1.5rem;
}

/* ── Hero right column ──────────────────────────────────────── */
.nf-hero__visual {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 2rem;
  border-left: 1px solid rgba(0,229,255,0.1);
}

/* Feature topic tags */
.nf-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.25rem;
}

.nf-hero__tag {
  display: inline-block;
  padding: 0.28rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 2px;
  border: 1px solid;
  transition: background 0.2s;
  backdrop-filter: blur(8px);
}

.nf-hero__tag--purple {
  color: var(--nf-purple-light);
  border-color: rgba(139,47,255,0.35);
  background: rgba(139,47,255,0.06);
}
.nf-hero__tag--purple:hover { background: rgba(139,47,255,0.14); }

.nf-hero__tag--pink {
  color: var(--nf-red-light);
  border-color: rgba(255,26,26,0.3);
  background: rgba(255,26,26,0.05);
}
.nf-hero__tag--pink:hover { background: rgba(255,26,26,0.12); }

.nf-hero__tag--cyan {
  color: var(--nf-cyan);
  border-color: rgba(0,229,255,0.3);
  background: rgba(0,229,255,0.04);
}
.nf-hero__tag--cyan:hover { background: rgba(0,229,255,0.1); }

@media (max-width: 900px) {
  .nf-hero__inner   { grid-template-columns: 1fr; gap: 2.5rem; }
  .nf-hero__visual  { border-left: none; padding-left: 0; }
}


/* ── Featured Section ────────────────────────────────────── */
/* Background & separator handled by [data-liquid-ether="cyan"] */
.nf-featured { }

/* ── Divider Decoration ──────────────────────────────────── */
.nf-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--nf-cyan), var(--nf-red), transparent);
  box-shadow: 0 0 8px rgba(0,229,255,0.3);
  margin-block: var(--section-pad);
}

/* Plain cyan fade divider for in-content use (same gradient as .nf-player::after) */
.nf-block-divider {
  height: 1px;
  border: none;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 229, 255, 0.2) 20%, rgba(0, 229, 255, 0.12) 60%, transparent 100%);
  margin: 2.75rem 0;
}

/* ── Sidebar Layout ──────────────────────────────────────── */
.nf-layout-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .nf-layout-sidebar { grid-template-columns: 1fr; }
}

/* ── Sidebar Widgets — Glass ─────────────────────────────── */
.nf-widget {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  padding: 1.25rem;
  backdrop-filter: blur(16px);
  margin-bottom: 1.5rem;
  position: relative;
}

.nf-widget::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.nf-widget__title {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--nf-text-muted);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
}

.nf-widget__title::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 24px;
  height: 1px;
  background: var(--nf-cyan);
  box-shadow: var(--glow-cyan);
}

/* ── Block Widget Overrides ──────────────────────────────── */

/* Remove block group spacing/padding */
.nf-widget .wp-block-group { padding: 0; margin: 0; }
.nf-widget .wp-block-group__inner-container {
  display: flex;
  flex-direction: column;
}

/* Block heading → compact label (same look as nf-widget__title) */
.nf-widget .wp-block-heading {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--nf-text-muted);
  padding-bottom: 0.65rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
}
.nf-widget .wp-block-heading::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 24px;
  height: 1px;
  background: var(--nf-cyan);
  box-shadow: var(--glow-cyan);
}

/* Widget lists — compact rows */
.nf-widget .wp-block-latest-posts,
.nf-widget .wp-block-latest-comments,
.nf-widget .wp-block-archives-list,
.nf-widget .wp-block-categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nf-widget .wp-block-latest-posts > li,
.nf-widget .wp-block-latest-comments > li,
.nf-widget .wp-block-archives-list > li,
.nf-widget .wp-block-categories-list > li {
  padding: 0.42rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.82rem;
  line-height: 1.35;
}
.nf-widget .wp-block-latest-posts > li:last-child,
.nf-widget .wp-block-latest-comments > li:last-child,
.nf-widget .wp-block-archives-list > li:last-child,
.nf-widget .wp-block-categories-list > li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Widget list links — muted white at rest, cyan glow on hover */
.nf-widget .wp-block-latest-posts__post-title,
.nf-widget .wp-block-latest-comments__comment-link,
.nf-widget .wp-block-latest-comments__comment-author,
.nf-widget .wp-block-archives-list a,
.nf-widget .wp-block-categories-list a {
  color: var(--nf-text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color var(--ease-fast), text-shadow var(--ease-fast);
}
.nf-widget .wp-block-latest-posts__post-title:hover,
.nf-widget .wp-block-latest-comments__comment-link:hover,
.nf-widget .wp-block-latest-comments__comment-author:hover,
.nf-widget .wp-block-archives-list a:hover,
.nf-widget .wp-block-categories-list a:hover {
  color: var(--nf-cyan);
  text-shadow: var(--text-glow-cyan);
}

/* Comments "on" connector text */
.nf-widget .wp-block-latest-comments__comment-meta {
  font-size: 0.82rem;
  color: var(--nf-text-muted);
  line-height: 1.35;
}

/* Search widget */
.nf-widget.widget_search .wp-block-search__label {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--nf-text-muted);
  display: block;
  margin-bottom: 0.6rem;
}
.nf-widget .wp-block-search__inside-wrapper,
.nf-widget .search-form {
  display: flex;
  align-items: stretch;
  gap: 0;
}

/* Eliminate browser-default margins that create the gap between input and button */
.nf-widget .search-field,
.nf-widget .search-submit,
.nf-widget .wp-block-search__input,
.nf-widget .wp-block-search__button {
  margin: 0;
}
.nf-widget.widget_search .wp-block-search__input {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-right: none;
  border-radius: 3px 0 0 3px;
  padding: 0.5rem 0.75rem;
  color: var(--nf-text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--ease-fast), background var(--ease-fast);
}
.nf-widget.widget_search .wp-block-search__input::placeholder {
  color: rgba(255,255,255,0.2);
}
.nf-widget.widget_search .wp-block-search__input:focus {
  border-color: rgba(0,229,255,0.35);
  background: rgba(255,255,255,0.06);
}
.nf-widget.widget_search .wp-block-search__button {
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 0 3px 3px 0;
  padding: 0.5rem 1rem;
  color: var(--nf-cyan);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--ease-fast), border-color var(--ease-fast);
}
.nf-widget.widget_search .wp-block-search__button:hover {
  background: rgba(0,229,255,0.16);
  border-color: rgba(0,229,255,0.45);
}

/* Search widget — legacy WP_Widget_Search fallback */
.nf-widget.widget_search .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
.nf-widget.widget_search .search-form {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.nf-widget.widget_search .search-form label {
  flex: 1;
  min-width: 0;
  display: flex;
}
.nf-widget.widget_search .search-field {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-right: none;
  border-radius: 3px 0 0 3px;
  padding: 0.5rem 0.75rem;
  color: var(--nf-text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--ease-fast), background var(--ease-fast);
}
.nf-widget.widget_search .search-field::placeholder {
  color: rgba(255,255,255,0.2);
}
.nf-widget.widget_search .search-field:focus {
  border-color: rgba(0,229,255,0.35);
  background: rgba(255,255,255,0.06);
}
.nf-widget.widget_search .search-submit {
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 0 3px 3px 0;
  padding: 0.5rem 1rem;
  color: var(--nf-cyan);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--ease-fast), border-color var(--ease-fast);
}
.nf-widget.widget_search .search-submit:hover {
  background: rgba(0,229,255,0.16);
  border-color: rgba(0,229,255,0.45);
}

/* ── Archive / Page Hero ─────────────────────────────────── */
.nf-page-hero {
  padding-top: calc(70px + 3rem);
  padding-bottom: 3rem;
  background: var(--nf-bg-alt);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
}
.nf-page-hero[data-liquid-ether] {
  background: #06060F;
}

.nf-page-hero:not([data-liquid-ether])::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(0,229,255,0.05) 0%, rgba(0,229,255,0) 70%);
  pointer-events: none;
  z-index: 0;
}

.nf-page-hero__content { position: relative; z-index: 1; }

.nf-page-hero__label {
  font-size: 0.68rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--nf-cyan);
  text-shadow: var(--text-glow-cyan);
  margin-bottom: 0.5rem;
  display: block;
}

.nf-page-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 200;
  margin-bottom: 0.75rem;
}

.nf-page-hero__desc {
  color: var(--nf-text-muted);
  max-width: 75ch;
  font-size: 1rem;
}


/* ── Single Post ─────────────────────────────────────────── */
/* ── Custom Widget Lists (Guides / Blog & News) ──────────────── */
.nf-widget-list {
  display: flex;
  flex-direction: column;
}

.nf-widget-list__item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  text-decoration: none;
  cursor: pointer;
}

.nf-widget-list__item:last-child { border-bottom: none; }

/* Characters widget: single-line name next to a 28px avatar, not a
   wrapping title next to a small icon — flex-start (tuned for the
   Guides/Blog/News icon rows above) top-aligns the name against the much
   taller avatar instead of centering it. */
.nf-widget-list__item--character { align-items: center; }

.nf-widget-list__icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--nf-purple-light);
  opacity: 0.7;
  transition: opacity var(--ease-fast);
}

.nf-widget-list__title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--nf-text-muted);
  line-height: 1.35;
  transition: color var(--ease-fast);
}

.nf-widget-list__item:hover .nf-widget-list__icon { opacity: 1; }
.nf-widget-list__item:hover .nf-widget-list__title { color: var(--nf-text); }

/* Character widget avatar — red accent to match the Characters section's
   own liquid-ether scheme (data-liquid-ether="red" on page-characters.php),
   same way Guides reads purple and News/Blog read cyan/purple via the badge
   colors above. */
.nf-widget-list__avatar {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: 0.05rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  background: var(--nf-bg-elevated, rgba(255,255,255,0.04));
  border: 1px solid rgba(255,69,69,0.25);
  transition: border-color var(--ease-fast);
}

.nf-widget-list__avatar--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--nf-red-light);
  background: rgba(255,26,26,0.08);
}

.nf-widget-list__item:hover .nf-widget-list__avatar { border-color: var(--nf-red-light); }

.nf-widget-list__badge {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 0.58rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15em 0.45em;
  border-radius: 2px;
  margin-top: 0.2rem;
}

.nf-widget-list__badge--news {
  color: var(--nf-cyan);
  background: rgba(0,229,255,0.07);
  border: 1px solid rgba(0,229,255,0.2);
}

.nf-widget-list__badge--blog {
  color: var(--nf-purple-light);
  background: rgba(139,47,255,0.07);
  border: 1px solid rgba(139,47,255,0.2);
}

.nf-widget-list__empty {
  font-size: 0.8rem;
  color: var(--nf-text-muted);
  margin: 0;
}

/* ── Single Post ─────────────────────────────────────────────── */
.nf-single {
  padding-top: calc(70px + 3rem);
  padding-bottom: var(--section-pad);
  background-image:
    radial-gradient(ellipse 55% 45% at 85% 2%, rgba(0,229,255,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 45% 40% at 15% 95%, rgba(139,47,255,0.07) 0%, transparent 65%);
}

/* Single post hero — no bottom border or glow bleed into content */
.nf-single-hero { border-bottom: none; }
.nf-single-hero[data-liquid-ether]::after { display: none; }

/* Single post content — no section divider lines */
.nf-section.nf-single-body::before,
.nf-section.nf-single-body::after { display: none; }

.nf-single__header { margin-bottom: 2.5rem; }

.nf-single__cover-frame {
  position: relative;
  z-index: 0;
  margin-bottom: 2.5rem;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid rgba(0, 229, 255, 0.3);
  background: linear-gradient(160deg, rgba(0, 229, 255, 0.07) 0%, rgba(139, 47, 255, 0.04) 55%, transparent 100%);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.06), inset 0 0 14px rgba(0, 229, 255, 0.025);
}

.nf-single__cover-frame::before {
  content: '';
  position: absolute;
  top: 0; left: 8px; right: 8px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 229, 255, 0.5) 50%, transparent 100%);
}

/* Soft ambient bloom beneath the frame — image "floating on a cloud" of light */
.nf-single__cover-frame::after {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -1.75rem;
  height: 3.5rem;
  background: radial-gradient(ellipse closest-side, rgba(0, 229, 255, 0.35) 0%, rgba(0, 229, 255, 0.12) 45%, transparent 80%);
  filter: blur(18px);
  z-index: -1;
  pointer-events: none;
}

.nf-single__cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  border-radius: 2px;
  margin: 0;
  border: none;
  filter: brightness(0.9) saturate(1.1);
}

.nf-single__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 200;
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.nf-single__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--nf-text-muted);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 2rem;
}

.nf-single__meta a { color: var(--nf-cyan-dim); }
.nf-single__meta a:hover { color: var(--nf-cyan); }

/* Post content */
.nf-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--nf-text);
}

.nf-content h2, .nf-content h3, .nf-content h4 {
  margin-top: 2.5em;
  margin-bottom: 0.75em;
  position: relative;
  font-weight: 300;
}

.nf-content p { margin-bottom: 1.5em; max-width: none; }

.nf-content a {
  color: var(--nf-cyan-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nf-content a:hover { color: var(--nf-cyan); }

.nf-content ul, .nf-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5em;
}

.nf-content ul { list-style: none; }
.nf-content ul li { position: relative; padding-left: 1.5rem; margin-bottom: 0.4em; }
.nf-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--nf-cyan);
  box-shadow: 0 0 6px var(--nf-cyan);
}

.nf-content ol { list-style: decimal; }
.nf-content ol li { margin-bottom: 0.4em; }

.nf-content blockquote {
  border-left: 2px solid var(--nf-cyan);
  padding-left: 1.5rem;
  margin: 2em 0;
  color: var(--nf-text-muted);
  font-style: italic;
  box-shadow: -4px 0 16px rgba(0,229,255,0.15);
}

.nf-content code {
  background: rgba(0,229,255,0.07);
  color: var(--nf-cyan);
  padding: 0.15em 0.45em;
  border-radius: 2px;
  font-size: 0.88em;
  font-family: 'Courier New', monospace;
}

.nf-content pre {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 2em 0;
  backdrop-filter: blur(8px);
}

.nf-content pre code {
  background: transparent;
  padding: 0;
  font-size: 0.9rem;
}

/* Framed image — matches .nf-card language (top-edge shine + cyan/purple glass) */
.nf-content .wp-block-image,
.editor-styles-wrapper .wp-block-image,
.nf-content .nf-framed-image,
.editor-styles-wrapper .nf-framed-image {
  position: relative;
  z-index: 0;
  margin-block: 2.5em;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid rgba(0, 229, 255, 0.3);
  background: linear-gradient(160deg, rgba(0, 229, 255, 0.07) 0%, rgba(139, 47, 255, 0.04) 55%, transparent 100%);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.06), inset 0 0 14px rgba(0, 229, 255, 0.025);
}

/* Top-edge shine — same trick as .nf-card::before */
.nf-content .wp-block-image::before,
.editor-styles-wrapper .wp-block-image::before,
.nf-content .nf-framed-image::before,
.editor-styles-wrapper .nf-framed-image::before {
  content: '';
  position: absolute;
  top: 0; left: 8px; right: 8px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 229, 255, 0.5) 50%, transparent 100%);
}

/* Soft ambient bloom beneath the frame — same "floating on a cloud" glow as the cover image */
.nf-content .wp-block-image::after,
.editor-styles-wrapper .wp-block-image::after,
.nf-content .nf-framed-image::after,
.editor-styles-wrapper .nf-framed-image::after {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -1.75rem;
  height: 3.5rem;
  background: radial-gradient(ellipse closest-side, rgba(0, 229, 255, 0.35) 0%, rgba(0, 229, 255, 0.12) 45%, transparent 80%);
  filter: blur(18px);
  z-index: -1;
  pointer-events: none;
}

.nf-content .wp-block-image img,
.editor-styles-wrapper .wp-block-image img,
.nf-content .nf-framed-image img,
.editor-styles-wrapper .nf-framed-image img {
  margin-block: 0;
  border-radius: 2px;
}

/* Bare <img> not wrapped in a figure (e.g. pasted directly) still gets framed */
.nf-content img:not(.wp-block-image img, .nf-framed-image img),
.editor-styles-wrapper img:not(.wp-block-image img, .nf-framed-image img) {
  box-sizing: border-box;
  padding: 8px;
  margin-block: 2.5em;
  border-radius: 6px;
  border: 1px solid rgba(0, 229, 255, 0.3);
  background: linear-gradient(160deg, rgba(0, 229, 255, 0.07) 0%, rgba(139, 47, 255, 0.04) 55%, transparent 100%);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.06), inset 0 0 14px rgba(0, 229, 255, 0.025);
}

.nf-content figcaption,
.editor-styles-wrapper figcaption {
  margin-top: 0.6rem;
  padding: 0 0.5rem;
  font-size: 0.8rem;
  color: var(--nf-text-muted);
  text-align: center;
  font-style: italic;
}

.nf-content table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 2em;
  font-size: 0.9rem;
}

.nf-content th {
  background: rgba(0,229,255,0.06);
  padding: 0.75rem 1rem;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(0,229,255,0.2);
}

.nf-content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.nf-content tr:hover td { background: rgba(0,229,255,0.03); }

.nf-content .wp-block-table { overflow-x: auto; }

/* ── About Page ──────────────────────────────────────────── */
.nf-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 767px) { .nf-about-grid { grid-template-columns: 1fr; gap: 2rem; } }

.nf-feature-list { display: flex; flex-direction: column; gap: 1.25rem; }

.nf-feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.nf-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  border: 1px solid rgba(0,229,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(0,229,255,0.05);
  color: var(--nf-cyan);
  backdrop-filter: blur(8px);
}

.nf-feature-icon svg { width: 20px; height: 20px; }

.nf-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 1.5rem;
}

.nf-team-card {
  display: block;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--ease-normal), box-shadow var(--ease-normal);
  backdrop-filter: blur(16px);
}

.nf-team-card:hover {
  border-color: rgba(0,229,255,0.25);
  box-shadow: var(--glow-cyan);
}

.nf-team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  border: 1px solid rgba(0,229,255,0.3);
  box-shadow: var(--glow-cyan);
  overflow: hidden;
  background: linear-gradient(135deg, var(--nf-cyan-dim), var(--nf-red));
}

.nf-team-avatar img { width: 100%; height: 100%; object-fit: cover; }

.nf-team-name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 300;
  margin-bottom: 0.25rem;
}

.nf-team-role {
  font-size: 0.72rem;
  color: var(--nf-cyan-dim);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

/* ── Pagination ──────────────────────────────────────────── */
.nf-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.nf-pagination a,
.nf-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 400;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--nf-text-muted);
  transition: all var(--ease-fast);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.nf-pagination a:hover { color: var(--nf-cyan); border-color: rgba(0,229,255,0.3); box-shadow: var(--glow-cyan); }
.nf-pagination .current { color: var(--nf-cyan); border-color: rgba(0,229,255,0.35); box-shadow: var(--glow-cyan); }
.nf-pagination .dots { border: none; cursor: default; }

/* ── Guides AJAX Pagination ──────────────────────────────── */
#nf-pagination,
#nf-blog-pagination,
#nf-news-pagination { margin-top: 3rem; }

.nf-pag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nf-pag__nums {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nf-pag__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--nf-text-muted);
  cursor: pointer;
  transition: all var(--ease-fast);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nf-pag__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 2px;
  background: rgba(255,255,255,0.03);
  box-shadow: none;
  color: var(--nf-text-muted);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--ease-fast), border-color var(--ease-fast), box-shadow var(--ease-fast);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  flex-shrink: 0;
}

.nf-pag__num:hover {
  color: var(--nf-cyan);
  border-color: rgba(0,229,255,0.35);
  background: rgba(0,229,255,0.05);
  box-shadow: var(--glow-cyan);
}

.nf-pag__arrow:hover:not(:disabled) {
  color: var(--nf-cyan);
  border-color: rgba(0,229,255,0.35);
  box-shadow: var(--glow-cyan);
}

.nf-pag__num.is-active {
  color: var(--nf-cyan);
  border-color: rgba(0,229,255,0.5);
  background: rgba(0,229,255,0.08);
  box-shadow: var(--glow-cyan);
  cursor: default;
}

.nf-pag__arrow:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.nf-pag__dots {
  color: var(--nf-text-muted);
  padding: 0 0.2rem;
  font-size: 0.9rem;
  pointer-events: none;
  line-height: 40px;
}

/* ── Guide cards equal height ────────────────────────────── */
.nf-guides-grid { align-items: stretch; }
.nf-guides-grid .nf-guide-item {
  display: flex;
  flex-direction: column;
}
.nf-guides-grid .nf-guide-item .nf-card {
  flex: 1;
}

/* ── Footer ──────────────────────────────────────────────── */
.nf-footer {
  background: #040409;
  border-top: 1px solid rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
}

.nf-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, 100%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--nf-cyan), var(--nf-red), transparent);
  box-shadow: 0 0 20px rgba(0,229,255,0.3);
}

.nf-footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-block: 4rem;
}

@media (max-width: 1024px) { .nf-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .nf-footer__top { grid-template-columns: 1fr; gap: 2rem; } }

.nf-footer .nf-logo__mark-img {
  filter:
    drop-shadow(0 0 4px rgba(0,229,255,0.95))
    drop-shadow(0 0 10px rgba(0,229,255,0.5))
    drop-shadow(0 0 18px rgba(0,229,255,0.2));
  transition: none;
}

.nf-footer__brand-desc {
  font-size: 0.88rem;
  color: var(--nf-text-muted);
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 30ch;
}

.nf-footer__social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.nf-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--nf-text-muted);
  transition: all var(--ease-fast);
  backdrop-filter: blur(8px);
}

.nf-footer__social-link svg { width: 16px; height: 16px; }

.nf-footer__social-link:hover {
  color: var(--nf-cyan);
  border-color: rgba(0,229,255,0.3);
  box-shadow: var(--glow-cyan);
}

.nf-footer__col-title {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--nf-text-muted);
  margin-bottom: 1.25rem;
}

.nf-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.nf-footer__links a {
  font-size: 0.86rem;
  color: var(--nf-text-muted);
  transition: color var(--ease-fast);
}

.nf-footer__links a:hover { color: var(--nf-cyan); }

/* Newsletter */
.nf-footer__newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.nf-footer__newsletter-input {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 2px;
  padding: 0.55em 0.9em;
  color: var(--nf-text);
  font-size: 0.85rem;
  transition: border-color var(--ease-fast), box-shadow var(--ease-fast);
  min-height: 44px;
}

.nf-footer__newsletter-input::placeholder { color: var(--nf-text-muted); }
.nf-footer__newsletter-input:focus {
  outline: none;
  border-color: rgba(0,229,255,0.3);
  box-shadow: var(--glow-cyan);
}

.nf-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.04);
  padding-block: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.76rem;
  color: var(--nf-text-muted);
}

.nf-footer__bottom a { color: var(--nf-text-muted); }
.nf-footer__bottom a:hover { color: var(--nf-cyan); }

.nf-footer__bottom-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* ── Scroll to top ───────────────────────────────────────── */
.nf-scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 3px;
  border: 1px solid rgba(0,229,255,0.25);
  background: rgba(6,6,15,0.8);
  backdrop-filter: blur(16px);
  color: var(--nf-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--ease-normal);
  box-shadow: var(--glow-cyan);
}

.nf-scroll-top.is-visible { opacity: 1; transform: translateY(0); }
.nf-scroll-top:hover { background: rgba(0,229,255,0.08); box-shadow: 0 0 18px #00E5FF, 0 0 36px rgba(0,229,255,0.35); }
.nf-scroll-top svg { width: 18px; height: 18px; }

/* ── Notice / Alert Banners ──────────────────────────────── */
.nf-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 3px;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  border-left: 2px solid;
  backdrop-filter: blur(8px);
}

.nf-banner--info  { border-color: var(--nf-cyan);      background: rgba(0,229,255,0.05);  color: var(--nf-cyan); }
.nf-banner--warn  { border-color: #FCD34D;               background: rgba(252,211,77,0.05); color: #FCD34D; }
.nf-banner--error { border-color: var(--nf-red);         background: rgba(255,26,26,0.05);  color: var(--nf-red-light); }

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

.text-purple { color: var(--nf-purple-light); }
.text-red    { color: var(--nf-red-light); }
.text-cyan   { color: var(--nf-cyan); }
.text-muted  { color: var(--nf-text-muted); }

.glow-purple { text-shadow: var(--text-glow-purple); }
.glow-red    { text-shadow: var(--text-glow-red); }
.glow-cyan   { text-shadow: var(--text-glow-cyan); }

/* ── Fade-in animation ───────────────────────────────────── */
@keyframes nf-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nf-fade-up { animation: nf-fade-up 0.5s cubic-bezier(0.4,0,0.2,1) both; }
.nf-fade-up--delay-1 { animation-delay: 0.1s; }
.nf-fade-up--delay-2 { animation-delay: 0.2s; }
.nf-fade-up--delay-3 { animation-delay: 0.3s; }

/* ── Search + Filter Bar ─────────────────────────────────── */
.nf-search-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.nf-search-filter-bar .nf-filter-bar {
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
}

/* Search wrapper — works as <div> (AJAX) or <form> (URL) */
.nf-sfb__search {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 280px;
  max-width: 100%;
}

.nf-sfb__input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 0 3rem 0 1rem;
  min-height: 44px;
  color: var(--nf-text);
  font-family: var(--font-body);
  font-size: 0.82rem;
  outline: none;
  transition: border-color var(--ease-fast), background var(--ease-fast), box-shadow var(--ease-fast);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  /* Kill all browser-native search chrome */
  -webkit-appearance: none;
  appearance: none;
}

/* Remove browser-injected search decorations */
.nf-sfb__input::-webkit-search-decoration,
.nf-sfb__input::-webkit-search-cancel-button,
.nf-sfb__input::-webkit-search-results-button,
.nf-sfb__input::-webkit-search-results-decoration { display: none; }

.nf-sfb__input::placeholder { color: var(--nf-text-muted); opacity: 0.55; }

.nf-sfb__input:focus {
  border-color: rgba(0,229,255,0.4);
  background: rgba(0,229,255,0.03);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.08), 0 0 20px rgba(0,229,255,0.05);
}

/* Ensure [hidden] always wins over display:flex */
.nf-sfb__clear[hidden],
.nf-sfb__submit[hidden] { display: none; }

/* Clear button (AJAX guides) */
.nf-sfb__clear {
  position: absolute;
  right: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: none;
  color: var(--nf-text-muted);
  cursor: pointer;
  padding: 0;
  transition: background var(--ease-fast), color var(--ease-fast);
  min-height: unset;
}

.nf-sfb__clear:hover {
  background: rgba(0,229,255,0.14);
  color: var(--nf-cyan);
}

/* Submit button (URL form) — magnifying glass */
.nf-sfb__submit {
  position: absolute;
  right: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 5px;
  background: rgba(0,229,255,0.1);
  border: 1px solid rgba(0,229,255,0.25);
  color: var(--nf-cyan);
  cursor: pointer;
  padding: 0;
  transition: background var(--ease-fast), border-color var(--ease-fast), box-shadow var(--ease-fast);
  box-shadow: 0 0 6px rgba(0,229,255,0.1);
}

.nf-sfb__submit:hover {
  background: rgba(0,229,255,0.2);
  border-color: rgba(0,229,255,0.5);
  box-shadow: 0 0 14px rgba(0,229,255,0.3);
}

.nf-sfb__submit:focus-visible {
  outline: 2px solid var(--nf-cyan);
  outline-offset: 2px;
}

/* Searching spinner — applied to the submit button */
.nf-sfb__search.is-searching .nf-sfb__submit,
.nf-sfb__search.is-searching .nf-sfb__clear {
  animation: nf-sfb-spin 0.9s linear infinite;
  pointer-events: none;
}

@keyframes nf-sfb-spin {
  to { transform: rotate(360deg); transform-origin: center; }
}

/* Vertical divider between search and filter chips */
.nf-sfb__divider {
  width: 1px;
  height: 26px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 9px;
}

@media (max-width: 640px) {
  .nf-search-filter-bar { flex-direction: column; align-items: stretch; }
  .nf-sfb__search { width: 100%; }
  .nf-sfb__divider { display: none; }
  .nf-search-filter-bar .nf-filter-bar { flex: unset; }
}

/* ── Filter Bar ──────────────────────────────────────────── */
.nf-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.nf-filter-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  min-height: 44px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
  color: var(--nf-text-muted);
  cursor: pointer;
  transition: color var(--ease-fast), border-color var(--ease-fast), background var(--ease-fast), box-shadow var(--ease-fast);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nf-filter-btn:hover {
  color: var(--nf-cyan);
  border-color: rgba(0,229,255,0.25);
}

.nf-filter-btn.is-active {
  color: var(--nf-cyan);
  border-color: rgba(0,229,255,0.4);
  background: rgba(0,229,255,0.07);
  box-shadow: 0 0 8px rgba(0,229,255,0.15);
}

/* ── Guides Grid Transition ──────────────────────────────── */
.nf-guides-grid { transition: opacity var(--ease-normal); }

/* ── Load More ───────────────────────────────────────────── */
.nf-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

/* ── No Posts Placeholder ────────────────────────────────── */
.nf-no-posts {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--nf-text-muted);
}

.nf-no-posts__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  color: rgba(0,229,255,0.3);
}

.nf-no-posts__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--nf-text-muted);
  margin-bottom: 0.5rem;
}

/* ── Characters / Frame Data nav accent ─────────────────────── */
.nf-nav a.nf-nav-framedata:hover,
.nf-mobile-menu a.nf-nav-framedata:hover {
  color: var(--nf-cyan);
}

/* ── Frame Data Page Template ────────────────────────────────── */
.nf-fd-hero .nf-page-hero__title .nf-fd-hero__accent {
  color: var(--nf-cyan);
  text-shadow: var(--text-glow-cyan);
}

.nf-fd-hero__suffix {
  font-weight: 200;
}

.nf-fd-hero__move-sub {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--nf-cyan);
  text-shadow: var(--text-glow-cyan);
  margin: 0;
}

/* Ensure plugin shortcode respects page container width */
.nf-fd-section .nf-fd-wrap {
  width: 100%;
}



/* ── Contact Page ────────────────────────────────────────────── */
.nf-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 860px) {
  .nf-contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Info panel */
.nf-contact-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.nf-contact-info__block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nf-contact-info__overline {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--nf-purple-light);
  text-shadow: var(--text-glow-purple);
}

.nf-contact-info__email {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 300;
  color: var(--nf-cyan);
  text-shadow: var(--text-glow-cyan);
  letter-spacing: 0.04em;
  word-break: break-all;
  transition: text-shadow var(--ease-normal), color var(--ease-normal);
}

.nf-contact-info__email:hover {
  color: #fff;
  text-shadow: 0 0 12px #00E5FF, 0 0 30px rgba(0,229,255,0.6);
}

.nf-contact-info__note {
  font-size: 0.84rem;
  color: var(--nf-text-muted);
  margin: 0;
}

/* Topics list */
.nf-contact-topics {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.nf-contact-topic {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--nf-text-muted);
}

.nf-contact-topic__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  flex-shrink: 0;
}

.nf-contact-topic__icon svg {
  width: 15px;
  height: 15px;
}

/* Social links */
.nf-contact-socials {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nf-contact-social {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--nf-text-muted);
  cursor: pointer;
  transition: color var(--ease-fast);
}

.nf-contact-social svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.nf-contact-social:hover {
  color: var(--nf-cyan);
}

/* Form panel — glass card */
.nf-contact-form-wrap {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(0,229,255,0.12);
  border-radius: 8px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  position: relative;
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
}

.nf-contact-form-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,0.25), transparent);
}

/* Form layout */
.nf-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.nf-contact-form__row {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.nf-contact-form__row--2col {
  flex-direction: row;
  gap: 1.25rem;
}

@media (max-width: 560px) {
  .nf-contact-form__row--2col {
    flex-direction: column;
  }
}

.nf-contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.nf-contact-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--nf-text-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nf-contact-required {
  color: var(--nf-red-light);
  font-size: 0.8rem;
  line-height: 1;
}

/* Shared input styles */
.nf-contact-input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 0.7em 1em;
  color: var(--nf-text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  min-height: 48px;
  transition: border-color var(--ease-fast), box-shadow var(--ease-fast), background var(--ease-fast);
  -webkit-appearance: none;
  appearance: none;
}

.nf-contact-input::placeholder {
  color: rgba(122,136,153,0.55);
}

.nf-contact-input:focus {
  outline: none;
  border-color: rgba(0,229,255,0.4);
  background: rgba(0,229,255,0.025);
  box-shadow: 0 0 0 1px rgba(0,229,255,0.15), var(--glow-cyan);
}

/* Select */
.nf-contact-select-wrap {
  position: relative;
}

.nf-contact-select {
  cursor: pointer;
  padding-right: 2.5em;
}

.nf-contact-select option {
  background: #0D0D20;
  color: var(--nf-text);
}

.nf-contact-select__arrow {
  position: absolute;
  right: 0.8em;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--nf-text-muted);
  display: flex;
  align-items: center;
}

.nf-contact-select__arrow svg {
  width: 14px;
  height: 14px;
}

/* Textarea */
.nf-contact-textarea {
  min-height: 150px;
  resize: vertical;
}

/* Submit */
.nf-contact-submit {
  align-self: flex-start;
  min-width: 180px;
  justify-content: center;
  font-size: 0.85rem;
}

/* Success state */
.nf-contact-success {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(0,229,255,0.05);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 6px;
  padding: 1.5rem;
}

.nf-contact-success__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,229,255,0.1);
  color: var(--nf-cyan);
  flex-shrink: 0;
}

.nf-contact-success__icon svg {
  width: 18px;
  height: 18px;
}

.nf-contact-success strong {
  display: block;
  color: var(--nf-cyan);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.nf-contact-success p {
  font-size: 0.88rem;
  color: var(--nf-text-muted);
  margin: 0;
}

/* Error state */
.nf-contact-error {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,26,26,0.06);
  border: 1px solid rgba(255,26,26,0.2);
  border-radius: 6px;
  padding: 0.9rem 1.1rem;
  font-size: 0.88rem;
  color: var(--nf-red-light);
  margin-bottom: 0.5rem;
}

.nf-contact-error svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Cookie Consent Banner ───────────────────────────────── */
.nf-cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: min(calc(100vw - 2rem), 740px);
  background: rgba(9, 9, 26, 0.92);
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 10px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0,229,255,0.06);
  padding: 1.2rem 1.4rem;
  animation: nf-cookie-slide-up 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.nf-cookie-banner[hidden] {
  display: none;
}

@keyframes nf-cookie-slide-up {
  from { opacity: 0; transform: translateX(-50%) translateY(1rem); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nf-cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nf-cookie-banner__text {
  flex: 1 1 280px;
}

.nf-cookie-banner__heading {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--nf-cyan);
  text-shadow: var(--text-glow-cyan);
  margin: 0 0 0.3rem;
  letter-spacing: 0.03em;
}

.nf-cookie-banner__desc {
  font-size: 0.82rem;
  color: var(--nf-text-muted);
  line-height: 1.55;
  margin: 0;
}

.nf-cookie-banner__link {
  color: var(--nf-cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nf-cookie-banner__link:hover {
  color: #fff;
}

.nf-cookie-banner__actions {
  display: flex;
  gap: 0.65rem;
  flex-shrink: 0;
}

.nf-cookie-banner__btn {
  font-size: 0.82rem;
  padding: 0.5em 1.15em;
  white-space: nowrap;
  min-height: 44px;
}

@media (prefers-reduced-motion: reduce) {
  .nf-cookie-banner {
    animation: none;
  }
}

@media (max-width: 540px) {
  .nf-cookie-banner {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    transform: none;
    border-radius: 10px 10px 0 0;
  }

  @keyframes nf-cookie-slide-up {
    from { opacity: 0; transform: translateY(100%); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .nf-cookie-banner__actions {
    width: 100%;
  }

  .nf-cookie-banner__btn {
    flex: 1;
    text-align: center;
  }
}

/* ── Share Bar ───────────────────────────────────────────── */
.nf-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--nf-border);
}

.nf-share__label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--nf-text-muted);
  margin-right: .25rem;
}

.nf-share__btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4em .85em;
  border-radius: 4px;
  border: 1px solid var(--nf-border);
  background: var(--nf-bg-card);
  color: var(--nf-text-muted);
  font-family: var(--font-heading);
  font-size: .75rem;
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--ease-fast), color var(--ease-fast), background var(--ease-fast);
}

.nf-share__btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.nf-share__btn:hover {
  border-color: var(--nf-cyan);
  color: var(--nf-cyan);
  background: rgba(0, 229, 255, .06);
}

.nf-share__copy.is-copied {
  border-color: var(--nf-purple-light);
  color: var(--nf-purple-light);
  background: rgba(124, 58, 237, .1);
}

/* ============================================================
   MOBILE IMPROVEMENTS — Responsive Polish
   Covers: hero, stats, sections, cards, footer, buttons
   ============================================================ */

/* ── Tighter section vertical padding on small screens ── */
@media (max-width: 640px) {
  :root { --section-pad: clamp(2.25rem, 7vw, 3.5rem); }
}

/* ── Hero — small screen refinements ── */
@media (max-width: 640px) {
  /* Only need room for the stats strip at the bottom */
  .nf-hero { padding-bottom: 12rem; }

  /* Slider no longer fills all remaining height — shrinks to content */
  .nf-slider { flex: 0 0 auto; }

  /* Inactive slides are completely out of flow */
  .nf-slide {
    position: relative;
    inset: auto;
    width: 100%;
    display: none;
    pointer-events: none;
    align-items: flex-start;
    padding-top: 2.5rem;
  }

  /* Active slide flows in the hero column, sets the slider height */
  .nf-slide.is-active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
  }

  .nf-hero__title {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .nf-hero__eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.14em;
  }

  .nf-hero__desc {
    font-size: 0.88rem;
    line-height: 1.75;
  }

  /* Stack buttons vertically on very small screens */
  .nf-hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
  }

  .nf-hero__actions .nf-btn {
    justify-content: center;
    width: 100%;
  }
}

/* ── Hero stats strip — mobile wrap fix ── */
@media (max-width: 640px) {
  .nf-hero__stats-inner {
    gap: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .nf-hero__stat-item {
    padding: 1rem 0.75rem;
  }

  /* Inner vertical divider only — odd items (col 1) get right border */
  .nf-hero__stat-item:nth-child(odd) {
    border-right: 1px solid rgba(255,255,255,0.06);
  }

  /* Inner horizontal divider only — first row gets bottom border */
  .nf-hero__stat-item:nth-child(1),
  .nf-hero__stat-item:nth-child(2) {
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  /* Remove the cumulative left padding/border from desktop styles */
  .nf-hero__stat-item + .nf-hero__stat-item {
    border-left: none;
    padding-left: 0.75rem;
  }

  .nf-hero__stat-value { font-size: 1.35rem; }
  .nf-hero__stat-label { font-size: 0.62rem; }
}

/* ── Section header — stack on narrow screens ── */
@media (max-width: 480px) {
  .nf-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
  }

  .nf-section-title { font-size: clamp(1.1rem, 5.5vw, 1.4rem); }
}

/* ── Cards — min column width on narrow screens ── */
@media (max-width: 480px) {
  .nf-grid-4 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .nf-grid-3 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .nf-grid-2 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ── Filter bar — wrap and full-width on mobile ── */
@media (max-width: 480px) {
  .nf-filter-bar {
    gap: 0.4rem;
  }

  .nf-filter-btn {
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
    min-height: 34px;
  }
}

/* ── Single post — better mobile readability ── */
@media (max-width: 640px) {
  .nf-single {
    padding-top: calc(70px + 1.5rem);
  }

  .nf-single__title { font-size: clamp(1.4rem, 6vw, 2rem); }

  .nf-content { font-size: 0.97rem; }

  .nf-single__cover { aspect-ratio: 16 / 9; }
}

/* ── Sidebar — full width on mobile ── */
@media (max-width: 640px) {
  .nf-layout-sidebar { gap: 2rem; }
}

/* ── Footer — compact on mobile ── */
@media (max-width: 600px) {
  .nf-footer__top { padding-block: 2.5rem; }

  .nf-footer__brand-desc { max-width: 100%; }

  .nf-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.72rem;
  }

  .nf-footer__bottom-links { flex-wrap: wrap; gap: 0.75rem; }
}

/* ── Newsletter form — stack on mobile ── */
@media (max-width: 560px) {
  .nf-footer__newsletter-form {
    flex-direction: column;
  }

  .nf-footer__newsletter-input { width: 100%; }
}

/* ── Slider controls — in content flow directly below buttons on mobile ── */
@media (max-width: 640px) {
  .nf-slider__controls {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    padding: 1.5rem 1rem;
    pointer-events: auto;
    flex-shrink: 0;
  }

  .nf-slider__btn--prev { left: 0.5rem; }
  .nf-slider__btn--next { right: 0.5rem; }
}

/* ── Page hero — mobile refinements ── */
@media (max-width: 640px) {
  .nf-page-hero {
    padding-top: calc(70px + 1.75rem);
    padding-bottom: 2rem;
  }

  .nf-page-hero__title { font-size: clamp(1.5rem, 7vw, 2rem); }
}

/* ── Tags in hero — smaller on mobile ── */
@media (max-width: 640px) {
  .nf-hero__tags { gap: 0.4rem; margin-bottom: 1.5rem; }

  .nf-hero__tag {
    font-size: 0.6rem;
    padding: 0.22rem 0.6rem;
  }
}

/* ── Scroll to top — smaller offset on mobile ── */
@media (max-width: 640px) {
  .nf-scroll-top {
    bottom: 1.25rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
}

/* ── Pagination — compact on mobile ── */
@media (max-width: 480px) {
  .nf-pag__num,
  .nf-pag__arrow { min-width: 36px; height: 36px; font-size: 0.75rem; }
}

/* ── Contact grid — better mobile spacing ── */
@media (max-width: 640px) {
  .nf-contact-form-wrap { padding: 1.25rem; }
}

/* ── Mobile menu — bottom gradient accent line ── */
.nf-mobile-menu::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,0.2), rgba(139,47,255,0.2), transparent);
  pointer-events: none;
}

/* Mobile menu social / CTA area */
.nf-mobile-menu__footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ============================================================
   Language Switcher — EN / IT
   ============================================================ */

/* ── Header switcher pill ────────────────────────────────── */
.nf-lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--nf-glass);
  border: 1px solid var(--nf-border);
  border-radius: 6px;
  padding: 3px;
  flex-shrink: 0;
  transition: border-color var(--ease-fast);
}

.nf-lang-switcher:hover {
  border-color: var(--nf-border-hover);
}

.nf-lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 4px;
  color: var(--nf-text-muted);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--ease-fast), background var(--ease-fast);
  cursor: pointer;
}

.nf-lang-btn:hover {
  color: var(--nf-cyan);
  background: rgba(0, 229, 255, 0.06);
}

.nf-lang-btn.is-active {
  background: rgba(0, 229, 255, 0.09);
  color: var(--nf-cyan);
  text-shadow: var(--text-glow-cyan);
}

.nf-lang-btn:focus-visible {
  outline: 2px solid var(--nf-cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Flag icon wrapper */
.nf-lang-flag {
  display: block;
  flex-shrink: 0;
  border-radius: 2px;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.nf-lang-code {
  font-size: 0.66rem;
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  .nf-lang-switcher,
  .nf-lang-btn { transition: none; }
}

/* On very small screens the switcher wraps below in the footer's flex-wrap layout */

/* ── Mobile menu language row ────────────────────────────── */
/* No border-top here — the last nav link above already ends in its own
   border-bottom (.nf-mobile-menu a), so adding one here doubled the line. */
.nf-mobile-lang {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 1.25rem;
  padding-top: 0.25rem;
}

.nf-mobile-lang__label {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nf-text-muted);
  margin-bottom: 0.5rem;
}

/* Full-width, touch-sized rows — sharp-cornered left-border indicator to
   match the nav links above (.nf-mobile-menu a), not the desktop dropdown's
   rounded hover pill, which read as an odd curved cap on a focused row. */
.nf-mobile-lang .nf-lang-option {
  padding: 0.7rem 0.6rem 0.7rem 0.85rem;
  font-size: 0.95rem;
  gap: 12px;
  border-radius: 0;
  min-height: 44px;
  border-left: 2px solid transparent;
  outline: none;
}

.nf-mobile-lang .nf-lang-option:hover,
.nf-mobile-lang .nf-lang-option:focus-visible,
.nf-mobile-lang .nf-lang-option.is-active {
  border-left-color: var(--nf-cyan);
  background: transparent;
}

.nf-mobile-lang .nf-lang-option .nf-lang-flag {
  width: 22px;
  height: 16px;
}

/* ── Header dropdown (single flag, expands on click) ─────── */
.nf-lang-dropdown {
  position: relative;
  flex-shrink: 0;
}

.nf-lang-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 6px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--ease-fast);
}

.nf-lang-trigger:hover {
  background: rgba(0, 229, 255, 0.06);
}

.nf-lang-trigger:focus-visible {
  outline: 2px solid var(--nf-cyan);
  outline-offset: 2px;
}

.nf-lang-trigger[aria-expanded="true"] {
  background: rgba(0, 229, 255, 0.08);
}

.nf-lang-trigger .nf-lang-flag {
  width: 18px;
  height: 13px;
}

.nf-lang-chevron {
  color: var(--nf-text-muted);
  transition: transform var(--ease-fast), color var(--ease-fast);
}

.nf-lang-trigger:hover .nf-lang-chevron,
.nf-lang-trigger[aria-expanded="true"] .nf-lang-chevron {
  color: var(--nf-cyan);
}

.nf-lang-trigger[aria-expanded="true"] .nf-lang-chevron {
  transform: rotate(180deg);
}

.nf-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 5;
  min-width: 148px;
  padding: 4px;
  background: rgba(6, 6, 15, 0.92);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid var(--nf-border);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), var(--glow-cyan);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--ease-fast), transform var(--ease-fast), visibility var(--ease-fast);
}

.nf-lang-dropdown.is-open .nf-lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nf-lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 5px;
  color: var(--nf-text-muted);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--ease-fast), background var(--ease-fast);
}

.nf-lang-option:hover,
.nf-lang-option:focus-visible {
  color: var(--nf-cyan);
  background: rgba(0, 229, 255, 0.08);
}

.nf-lang-option.is-active {
  color: var(--nf-cyan);
  text-shadow: var(--text-glow-cyan);
}

.nf-lang-option .nf-lang-flag {
  width: 18px;
  height: 13px;
  flex-shrink: 0;
}

.nf-lang-option .nf-lang-label {
  flex: 1;
}

@media (max-width: 900px) {
  .nf-lang-dropdown { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .nf-lang-trigger,
  .nf-lang-chevron,
  .nf-lang-menu,
  .nf-lang-option { transition: none; }
}

/* ============================================================
   Article / Blog Post — Editorial Style
   Inspired by ESPN / The Athletic — dark gaming edition.
   ============================================================ */

.nf-post {
  font-family: var(--font-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
}

.nf-intro {
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--nf-text-muted);
  margin-bottom: 2rem;
}

/* ── Player Sections — no boxes, editorial dividers ──────── */

.nf-player {
  position: relative;
  padding: 2.75rem 0;
  margin: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

/* Gradient divider: fades in from left, fades out to right */
.nf-player::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 229, 255, 0.2) 20%, rgba(0, 229, 255, 0.12) 60%, transparent 100%);
}

/* Ghost rank number — large decorative watermark */
.nf-player__num {
  position: absolute;
  top: 1.5rem;
  right: 0;
  font-size: clamp(5rem, 14vw, 8rem);
  font-weight: 900;
  line-height: 1;
  color: var(--nf-cyan);
  opacity: 0.04;
  letter-spacing: -0.05em;
  pointer-events: none;
  z-index: 0;
  text-shadow: none;
  font-family: var(--font-heading, inherit);
  user-select: none;
}

.nf-player__header {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 0.75rem;
}

.nf-player__title-block {
  display: block;
}

/* Rank accent — small inline number before the name */
.nf-player__header::before {
  content: attr(data-rank);
  display: none;
}

.nf-player__name {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 800;
  color: var(--nf-text);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 0.75rem 0 !important;
  line-height: 1.25;
  font-family: var(--font-heading, inherit);
  padding-left: 0 !important;
  position: relative;
}

.nf-player__name::before,
.nf-content .nf-player__name::before {
  content: none !important;
  display: none !important;
}

.nf-content .nf-player__name {
  margin-top: 0 !important;
  padding-left: 0 !important;
}

/* Subtle cyan underline accent on the name */
.nf-player__name::after {
  content: '';
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--nf-cyan);
  margin-top: 0.5rem;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

.nf-player__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.nf-player__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  font-size: 0.8rem;
  line-height: 1.4;
}

.nf-player__tag + .nf-player__tag {
  padding-left: 0.75rem;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.nf-player__tag-label {
  color: var(--nf-cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
}

.nf-player__tag-value {
  color: var(--nf-text-muted);
}

.nf-player__body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--nf-text-muted);
  position: relative;
  z-index: 1;
}

.nf-player__body p { margin: 0 0 1.1rem 0; }
.nf-player__body p:last-child { margin-bottom: 0; }
.nf-player__body strong { color: var(--nf-text); font-weight: 700; }
.nf-player__body em { color: var(--nf-text); font-style: italic; }

/* ── Takeaway — gradient pull-quote ──────────────────────── */

.nf-lesson {
  position: relative;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.06) 0%, transparent 70%);
  border: none;
  border-radius: 0;
  padding: 1rem 1rem 1rem 1.5rem;
  margin: 1.75rem 0 0 0;
  box-shadow: none;
}


/* Gradient left border: cyan top → fade to transparent */
.nf-lesson::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #00E5FF 0%, rgba(0, 229, 255, 0.15) 100%);
  border-radius: 2px;
}

.nf-lesson__label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #00E5FF 0%, rgba(0, 229, 255, 0.55) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.4rem;
}

.nf-lesson__text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--nf-text);
  margin: 0;
  font-style: italic;
  font-weight: 300;
}

/* ── Patterns / Summary — clean editorial section ────────── */

.nf-patterns {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 2.5rem 0 1.5rem 0;
  margin: 0.5rem 0 1.5rem 0;
  box-shadow: none;
}

.nf-patterns::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 229, 255, 0.2) 20%, rgba(0, 229, 255, 0.12) 60%, transparent 100%);
}

.nf-patterns__heading {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nf-cyan);
  margin: 0 0 1.5rem 0 !important;
  font-family: var(--font-heading, inherit);
  padding-left: 0 !important;
  position: static;
  opacity: 0.85;
}

.nf-patterns__heading::before,
.nf-content .nf-patterns__heading::before {
  content: none !important;
  display: none !important;
}

.nf-content .nf-patterns__heading {
  margin-top: 0 !important;
  padding-left: 0 !important;
}

.nf-patterns__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.nf-patterns__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--nf-text-muted);
  list-style: none !important;
  padding-left: 0 !important;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nf-patterns__item::before {
  content: none !important;
  display: none !important;
}

.nf-patterns__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.nf-patterns__bullet {
  width: 4px;
  height: 4px;
  background: var(--nf-cyan);
  border-radius: 50%;
  margin-top: 0.7rem;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(0, 229, 255, 0.7);
}

.nf-patterns__item strong { color: var(--nf-text); }

/* ── Outro ───────────────────────────────────────────────── */

.nf-outro {
  font-size: 0.9rem;
  color: var(--nf-text-muted);
  font-style: italic;
  line-height: 1.7;
  margin-top: 1.5rem;
  opacity: 0.65;
}

.nf-outro a {
  color: var(--nf-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 229, 255, 0.3);
  transition: border-color 150ms ease;
}

.nf-outro a:hover { border-bottom-color: var(--nf-cyan); }

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 600px) {
  .nf-player { padding: 2rem 0; }
  .nf-player__num { font-size: clamp(4rem, 22vw, 6rem); opacity: 0.03; }
  .nf-patterns { padding: 2rem 0 1rem 0; }
}

/* ── Outro / Footer note ─────────────────────────────────── */

.nf-outro {
  font-size: 0.9rem;
  color: var(--nf-text-muted);
  font-style: italic;
  line-height: 1.7;
  margin-top: 1.5rem;
  opacity: 0.75;
}

.nf-outro a {
  color: var(--nf-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 229, 255, 0.3);
  transition: border-color 150ms ease;
}

.nf-outro a:hover { border-bottom-color: var(--nf-cyan); }

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 600px) {
  .nf-player { padding: 1.25rem 1.1rem; }
  .nf-player__num { font-size: 1.75rem; }
  .nf-player__name { font-size: 1rem; }
  .nf-patterns { padding: 1.25rem 1.1rem; }
  .nf-player__meta { gap: 0.4rem; }
}

