/* Header */
.nb-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 17, 23, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  max-width: 100% !important;
  padding: 1.25rem clamp(2rem, 5vw, 4rem) !important;
}

.nb-logo {
  flex-shrink: 0;
}

.nb-logo a {
  display: block;
  text-decoration: none !important;
}

.nb-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* Nav CTA button */
.nb-nav-cta a {
  background: linear-gradient(135deg, #22c55e, #16a34a) !important;
  color: #ffffff !important;
  padding: 0.4rem 1rem !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  font-size: 0.8125rem !important;
  transition: opacity 0.2s ease !important;
}

.nb-nav-cta a:hover {
  opacity: 0.9 !important;
}

/* ===== Section Transitions ===== */

/* Remove hard edges between sections — overlap with pseudo-element gradients */
.nb-gradient-primary,
.nb-gradient-section,
.nb-divider-top {
  position: relative;
}

/* Top fade-in from previous section */
.nb-gradient-section::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, #111827);
  pointer-events: none;
  z-index: 0;
}

/* Testimonial section blends from section above */
.nb-divider-top::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, #0d0f14);
  pointer-events: none;
  z-index: 0;
}

/* CTA section blends from testimonial */
.nb-gradient-primary.nb-dot-grid.nb-reveal::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, #0f1117);
  pointer-events: none;
  z-index: 0;
}

/* Footer blends from CTA */
.nb-footer::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, #0a0c10);
  pointer-events: none;
  z-index: 0;
}

/* Ensure sections have enough margin-top for the bleed overlap */
main > .wp-block-group + .wp-block-group {
  margin-top: 0 !important;
}

/* Interior page / case-study body: keep content above the section blend
   gradient (::before, z-index:0) so the first line isn't darkened — body
   sections lack the .nb-dot-grid content lift. Also restore top breathing room
   on the first body section (its inline top padding doesn't always emit). */
.entry-content .nb-gradient-section > * {
  position: relative;
  z-index: 1;
}
.entry-content > .nb-gradient-section:first-child {
  padding-top: var(--wp--preset--spacing--60, 3rem) !important;
}

/* ===== Global Spacing Overrides ===== */

/* Ensure all full-width sections have generous horizontal padding */
.nb-gradient-primary,
.nb-gradient-section,
.nb-divider-top {
  padding-left: clamp(1.5rem, 5vw, 4rem) !important;
  padding-right: clamp(1.5rem, 5vw, 4rem) !important;
}

/* Glass cards need internal padding */
.nb-glass {
  padding: 1.75rem !important;
}

/* Content inside constrained layouts needs breathing room */
.wp-block-group.nb-gradient-primary > .wp-block-group,
.wp-block-group.nb-gradient-section > .wp-block-group {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Columns within sections */
.nb-stagger.wp-block-columns {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  gap: 1.5rem;
}

/* Pricing section — wider to give cards room to breathe */
.nb-pricing.wp-block-group > .wp-block-group,
.nb-pricing .nb-stagger.wp-block-columns {
  max-width: 1500px !important;
}

.nb-pricing .nb-stagger.wp-block-columns {
  gap: 2.5rem;
}

.nb-pricing .wp-block-column.nb-glass {
  padding: 2.5rem !important;
}

/* Tune pricing row — narrower than the 1500px three-tier row */
.nb-pricing .nb-tune-pricing.wp-block-columns {
  max-width: 900px !important;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Homepage Statement section ===== */
/* Full-bleed still-life image with a single pull-line between hero and social proof */
.nb-statement {
  position: relative;
  min-height: clamp(480px, 55vw, 720px);
  background-image: url('../images/nb-workplace-design.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-left: clamp(1.5rem, 5vw, 4rem) !important;
  padding-right: clamp(1.5rem, 5vw, 4rem) !important;
  padding-top: 0 !important;
  padding-bottom: clamp(3rem, 6vw, 5rem) !important;
  overflow: hidden;
}

/* Bottom darken — gives the pull-line a clean dark field to sit on */
.nb-statement::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 45%,
    rgba(15, 17, 23, 0.65) 78%,
    #0f1117 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Top fade blends the image into the hero above so the section transition disappears */
.nb-statement::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 200px;
  background: linear-gradient(
    to bottom,
    #111827 0%,
    rgba(17, 24, 39, 0.85) 30%,
    rgba(17, 24, 39, 0.35) 70%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

.nb-statement-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.nb-statement-inner .nb-label {
  margin-bottom: 0.75rem !important;
}

.nb-statement-quote {
  color: #f1f5f9 !important;
  margin: 0 !important;
}

@media (max-width: 768px) {
  .nb-statement {
    min-height: 420px;
  }

  .nb-statement::before {
    background: linear-gradient(
      to bottom,
      rgba(15, 17, 23, 0.2) 0%,
      rgba(15, 17, 23, 0.55) 55%,
      rgba(15, 17, 23, 0.92) 100%
    );
  }

  .nb-statement-inner {
    max-width: 100%;
  }
}

/* Testimonial section */
.nb-divider-top.nb-reveal {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

/* Testimonial quote mark — make it visible */
.nb-divider-top .has-accent-color {
  font-size: 3rem !important;
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Hero section generous padding */
.nb-hero-gradient {
  padding-top: 10rem !important;
  padding-bottom: 10rem !important;
}

/* CTA section generous padding */
.nb-gradient-primary.nb-dot-grid.nb-reveal {
  padding-top: 6rem !important;
  padding-bottom: 6rem !important;
}

/* Footer */
.nb-footer {
  padding-left: clamp(1.5rem, 5vw, 4rem) !important;
  padding-right: clamp(1.5rem, 5vw, 4rem) !important;
}

.nb-footer a:hover {
  color: var(--wp--preset--color--accent-light) !important;
}

/* Footer content must sit ABOVE the .nb-footer::before blend gradient
   (z-index:0) — otherwise it darkens the top row (site title + column headings),
   which sit at the footer's top edge. This was the real cause of the "dark
   header" look, not the text color. */
.nb-footer > * {
  position: relative;
  z-index: 1;
}

/* Footer brand name — the block-level white color doesn't always emit, so set
   it explicitly for legibility on the near-black footer. */
.nb-footer .wp-block-site-title,
.nb-footer .wp-block-site-title a {
  color: #ffffff !important;
}

/* Column headings (Company / Connect) — bump from muted to a brighter label
   color so the small uppercase eyebrows are readable. */
.nb-footer h6 {
  color: var(--wp--preset--color--text-secondary) !important;
}

/* Portfolio grid asymmetric layout */
@media (max-width: 768px) {
  .nb-stagger > .wp-block-column {
    flex-basis: 100% !important;
  }
}

/* Services cards — wrap to 2x2 at tablet width when there are 4 cards */
@media (max-width: 1024px) and (min-width: 769px) {
  .nb-services-cards .wp-block-columns.nb-stagger {
    flex-wrap: wrap !important;
  }
  .nb-services-cards .wp-block-columns.nb-stagger > .wp-block-column {
    flex-basis: calc(50% - 0.75rem) !important;
    flex-grow: 0 !important;
  }
}

/* ===== Showcase Portfolio Grid ===== */

.nb-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Featured card spans full width */
.nb-showcase-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.nb-showcase-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  padding: 0 !important;
}

.nb-showcase-card:hover {
  border-color: rgba(74, 222, 128, 0.2);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(34, 197, 94, 0.04);
}

.nb-showcase-image {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  padding: 0 !important;
  min-height: 180px;
}

.nb-showcase-featured .nb-showcase-image {
  border-radius: 16px 0 0 16px;
  min-height: 320px;
}

.nb-showcase-img {
  margin: 0 !important;
}

.nb-showcase-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nb-showcase-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem !important;
}

/* Category badge */
.nb-showcase-badge {
  display: inline-block;
  font-size: 0.625rem !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  color: #4ade80 !important;
  background: rgba(34, 197, 94, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
  margin: 0 !important;
}

@media (max-width: 768px) {
  .nb-showcase-grid {
    grid-template-columns: 1fr;
  }

  .nb-showcase-featured {
    grid-template-columns: 1fr;
  }

  .nb-showcase-featured .nb-showcase-image {
    border-radius: 16px 16px 0 0;
  }
}

/* ===== Case Study Pages ===== */

.nb-case-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.nb-case-meta-item {
  flex: 1;
  min-width: 150px;
}

.nb-case-meta-label {
  font-size: 0.625rem !important;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--wp--preset--color--accent-light) !important;
  margin-bottom: 0.25rem !important;
}

.nb-case-meta-value {
  font-size: 0.9375rem !important;
  color: #e2e8f0 !important;
  font-weight: 500;
}

.nb-case-screenshot {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 800px;
  margin: 2.5rem auto !important;
}

.nb-case-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

.nb-case-highlight {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 2rem !important;
  margin: 2rem 0 !important;
}

.nb-case-stat {
  text-align: center;
}

.nb-case-stat-number {
  font-size: 2.5rem !important;
  font-weight: 800 !important;
  color: #4ade80 !important;
  line-height: 1.1;
  margin-bottom: 0.25rem !important;
}

.nb-case-stat-label {
  font-size: 0.8125rem !important;
  color: var(--wp--preset--color--text-muted) !important;
}

/* Testimonial quote mark */
.nb-divider-top [class*="has-accent-color"] {
  line-height: 1;
  margin-bottom: -0.5rem;
}

/* Ensure dot-grid sits behind content */
.nb-dot-grid > * {
  position: relative;
  z-index: 1;
}

/* FAQ details/summary styling */
details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0;
}

details summary {
  cursor: pointer;
  font-weight: 600;
  color: #e2e8f0;
  font-size: 1rem;
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::before {
  content: "+";
  color: var(--wp--preset--color--accent);
  font-weight: 700;
  margin-right: 0.75rem;
}

details[open] summary::before {
  content: "−";
}

details p {
  margin-top: 0.75rem;
}

/* ---- Service marks ----
 * Geometric SVG anchors for Build / Tune / Manage / Empower in
 * services-cards.php (48px) and services-detail.php (64px).
 * Animation triggers off the parent .nb-reveal becoming .is-visible
 * (existing IntersectionObserver hook in assets/js/scroll-reveal.js).
 * Spec: docs/superpowers/specs/2026-05-11-services-marks-and-motion-design.md
 */

.nb-service-mark {
  --mark-delay: 0s;
  position: relative;
  display: inline-block;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  margin-bottom: 0.5rem;
}

/* When marks live inside a staggered card row, inherit the stagger cadence
 * so the draw-in animation lines up with each card's reveal, not the moment
 * the row first intersects the viewport. */
.nb-stagger > .nb-reveal:nth-child(1) .nb-service-mark { --mark-delay: 0s; }
.nb-stagger > .nb-reveal:nth-child(2) .nb-service-mark { --mark-delay: 0.1s; }
.nb-stagger > .nb-reveal:nth-child(3) .nb-service-mark { --mark-delay: 0.2s; }
.nb-stagger > .nb-reveal:nth-child(4) .nb-service-mark { --mark-delay: 0.3s; }

.nb-service-mark--lg {
  width: 64px;
  height: 64px;
}

.nb-service-mark svg {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 1;
}

.nb-service-mark svg .stroke {
  stroke: #4ade80;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nb-service-mark svg .baseline {
  stroke: #4ade80;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.35;
}

.nb-service-mark svg .inner-ring {
  stroke: #4ade80;
  fill: none;
  stroke-width: 1.5;
  stroke-dasharray: 2 3;
  stroke-linecap: round;
  opacity: 0;
  transition: opacity 600ms ease-out;
  transition-delay: calc(var(--mark-delay) + 700ms);
}

.nb-service-mark svg .dot {
  fill: #4ade80;
  stroke: none;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
}

/* Gradient bloom behind the mark */
.nb-service-mark::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.18) 0%, transparent 60%);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.4s ease-out;
  transition-delay: var(--mark-delay);
  z-index: 0;
}

/* Draw-in state — paths start hidden */
.nb-service-mark svg .draw {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
}

/* Reveal — triggered by .nb-reveal parent becoming .is-visible */
.nb-reveal.is-visible .nb-service-mark::before {
  opacity: 1;
}

.nb-reveal.is-visible .nb-service-mark svg .inner-ring {
  opacity: 1;
}

.nb-reveal.is-visible .nb-service-mark svg .draw {
  animation: nb-mark-draw 1100ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
  animation-delay: var(--mark-delay);
}

.nb-reveal.is-visible .nb-service-mark svg .draw--2 {
  animation-delay: calc(var(--mark-delay) + 200ms);
}

.nb-reveal.is-visible .nb-service-mark svg .draw--3 {
  animation-delay: calc(var(--mark-delay) + 400ms);
}

.nb-reveal.is-visible .nb-service-mark svg .dot {
  animation: nb-mark-dot 500ms ease-out forwards;
  animation-delay: calc(var(--mark-delay) + 900ms);
}

@keyframes nb-mark-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes nb-mark-dot {
  to { transform: scale(1); }
}

/* Reduced-motion: render final state, skip animation */
@media (prefers-reduced-motion: reduce) {
  .nb-service-mark svg .draw {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
  .nb-service-mark svg .inner-ring {
    opacity: 1;
    transition: none;
  }
  .nb-service-mark svg .dot {
    transform: scale(1);
  }
  .nb-service-mark::before {
    opacity: 1;
    transition: none;
  }
}

/* ---- Service TL;DR card ----
 * Three-field scan-friendly summary (For / Get / Includes) that replaces the
 * lede paragraph under each service h2 in services-detail.php.
 * Visual treatment echoes the .nb-case-meta pattern from case-study pages.
 * Spec: docs/superpowers/specs/2026-05-11-services-tldr-card-design.md
 */

.nb-service-tldr {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "for get"
    "includes includes";
  gap: 22px 36px;
  padding: 24px 22px;
  margin: 18px -22px 26px;
  background: rgba(74, 222, 128, 0.035);
  border-top: 1px solid rgba(74, 222, 128, 0.22);
  border-bottom: 1px solid rgba(74, 222, 128, 0.22);
}

.nb-service-tldr-item {
  /* Grid item defaults to min-width: auto, which lets long unbreakable
   * strings blow out the column. Reset to 0 so the 1fr column track
   * truly fills 1fr and overflow gets handled by the text itself. */
  min-width: 0;
}

.nb-service-tldr-item--for { grid-area: for; }
.nb-service-tldr-item--get { grid-area: get; }
.nb-service-tldr-item--includes { grid-area: includes; }

.nb-service-tldr-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #4ade80;
  font-weight: 600;
  margin-bottom: 6px;
}

.nb-service-tldr-value {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.nb-service-tldr-value--get {
  font-size: 16px;
  line-height: 1.5;
  color: #fff;
}

.nb-service-tldr-value--includes {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 640px) {
  .nb-service-tldr {
    grid-template-columns: 1fr;
    grid-template-areas:
      "for"
      "get"
      "includes";
    gap: 18px;
  }
}

/* ---- Service illustration ----
 * Visual break between TL;DR card and body paragraphs in services-detail.php.
 * One illustration per service. Full content width with rounded corners and
 * a subtle border so the imagery harmonizes with the dark theme.
 */
.nb-service-illustration {
  margin: 28px 0 32px;
}

.nb-service-illustration img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ===== Notes ===== */

/* Pre-launch: hide nav and footer links to /notes/ */
body.is-prelaunch .menu-item--notes,
body.is-prelaunch .nb-latest-note-card,
body.is-prelaunch .nb-latest-note-section {
  display: none;
}

/* Notes index header (inline in home.html) */
.nb-notes-index-header {
  text-align: center;
}
.nb-notes-index-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.nb-notes-index-header .nb-notes-dek {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  margin: 16px auto 0;
}

/* Category badge — reused across .nb-note-card and .nb-latest-note-card */
.nb-note-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

/* Index card */
.nb-note-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 280ms ease;
}
.nb-note-card:hover {
  transform: translateY(-4px);
}
.nb-note-card-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}
.nb-note-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}
.nb-note-card:hover .nb-note-card-image img {
  transform: scale(1.03);
}
.nb-note-card-body {
  padding: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.nb-note-card-title {
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin: 0;
  transition: color 200ms ease;
}
.nb-note-card:hover .nb-note-card-title {
  color: #4ade80;
}
.nb-note-card-dek {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}
.nb-note-card-meta {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* Index grid */
.nb-notes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 640px) {
  .nb-notes-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 32px;
    row-gap: 48px;
  }
}
@media (min-width: 960px) {
  .nb-notes-grid {
    column-gap: 48px;
    row-gap: 64px;
  }
}

/* Single post — featured image hero */
.nb-note-hero-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 0 32px;
}
.nb-note-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nb-note-hero-meta {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}

/* "More notes" rail on single posts */
.nb-more-notes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 720px) {
  .nb-more-notes {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}
.nb-more-notes .nb-note-card-title {
  font-size: 1.125rem;
}
.nb-more-notes .nb-note-card-dek {
  display: none;
}

/* Homepage hook — "Latest from Notes" */
.nb-latest-note-section-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 24px;
}
.nb-latest-note-section-label .nb-label {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.nb-latest-note-section-label .nb-view-all {
  font-size: 0.875rem;
  color: #4ade80;
  text-decoration: none;
}
.nb-latest-note-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 280ms ease;
}
.nb-latest-note-card:hover {
  transform: translateY(-4px);
}
@media (min-width: 720px) {
  .nb-latest-note-card {
    grid-template-columns: 2fr 3fr;
    gap: 40px;
    align-items: center;
  }
}
.nb-latest-note-card-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}
.nb-latest-note-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}
.nb-latest-note-card:hover .nb-latest-note-card-image img {
  transform: scale(1.03);
}
.nb-latest-note-card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.nb-latest-note-card-title {
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin: 0;
  transition: color 200ms ease;
}
.nb-latest-note-card:hover .nb-latest-note-card-title {
  color: #4ade80;
}
.nb-latest-note-card-dek {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nb-latest-note-card-meta {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* Mini card — services-page "Related notes" rail */
.nb-note-card-mini {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: transform 280ms ease;
}
.nb-note-card-mini:hover {
  transform: translateY(-2px);
}
.nb-note-card-mini-image {
  width: 96px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}
.nb-note-card-mini-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nb-note-card-mini-title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  color: #ffffff;
  margin: 0;
  transition: color 200ms ease;
}
.nb-note-card-mini:hover .nb-note-card-mini-title {
  color: #4ade80;
}
.nb-note-card-mini-meta {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.5);
  margin: 4px 0 0;
}
.nb-related-notes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}
@media (min-width: 720px) {
  .nb-related-notes {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}
.nb-related-notes-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  grid-column: 1 / -1;
  margin: 0;
}

/* ===== Services-cards stretched-link cards ===== */

html {
  scroll-behavior: smooth;
}

/* Account for any chrome above the target so the h2 doesn't anchor flush to the top */
#build,
#tune,
#manage,
#empower {
  scroll-margin-top: 96px;
}

.nb-service-card-link {
  position: relative;
  cursor: pointer;
  transition: transform 280ms ease, box-shadow 280ms ease;
}
.nb-service-card-link:hover {
  transform: translateY(-4px);
}
.nb-service-card-link .nb-card-link {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  text-decoration: none;
}
.nb-service-card-link .nb-card-link:focus-visible {
  outline: 2px solid #4ade80;
  outline-offset: 2px;
}
.nb-service-card-link h3 {
  transition: color 200ms ease;
}
.nb-service-card-link:hover h3 {
  color: #4ade80;
}
.nb-service-card-link .nb-service-mark {
  transition: transform 280ms ease;
}
.nb-service-card-link:hover .nb-service-mark {
  transform: scale(1.05);
}
