/* ForgeSDLC product site — dark forge aesthetic */
:root {
  --fs-bg: #0a0e17;
  --fs-bg-elevated: #111827;
  --fs-bg-sidebar: #0d121c;
  --fs-border: rgba(148, 163, 184, 0.12);
  --fs-text: #e5e7eb;
  --fs-text-muted: #94a3b8;
  --fs-amber: #f59e0b;
  --fs-amber-dim: rgba(245, 158, 11, 0.15);
  --fs-cyan: #06b6d4;
  --fs-cyan-dim: rgba(6, 182, 212, 0.12);
  --fs-mint: #5eead4;
  --fs-shell-max: min(118rem, calc(100vw - 1.5rem));
  /* Fixed `.forge-theme-dropdown` (top-right): keep nav/header text out from under it */
  --fs-theme-toggle-reserve: clamp(8rem, 11.5vw, 11.5rem);
  --fs-prose-max: 42rem;
  /* Proxima Nova: add Adobe Fonts kit or @font-face. */
  --fs-font-display: "Proxima Nova Black", "Proxima Nova", "proxima-nova", "Open Sans", system-ui, sans-serif;
  --fs-font-sans: "Open Sans", system-ui, -apple-system, sans-serif;
  --fs-font-mono: "Courier New", Courier, ui-monospace, monospace;
}

html,
body {
  background-color: var(--fs-bg);
  color: var(--fs-text);
  font-family: var(--fs-font-sans);
}

/* --- Embed mode (?fs-embed=1): iframe / in-page preview — hide global chrome --- */
html.fs-embed .forge-theme-dropdown,
html.fs-embed .fs-mobile-bar,
html.fs-embed .fs-primary-nav-global,
html.fs-embed #fsNav,
html.fs-embed .fs-offcanvas,
html.fs-embed .fs-sidebar {
  display: none !important;
}

/* Topic preview modal hoists Markdown .toc to parent; hide duplicate inside iframe */
html.fs-embed.fs-preview-rail .fs-main .toc {
  display: none !important;
}

html.fs-embed .fs-layout .row > main.col-lg-9,
html.fs-embed .fs-layout .row > main {
  flex: 0 0 100% !important;
  max-width: 100% !important;
}

html.fs-embed .landing-header {
  display: none !important;
}

/* Markdown TOC in iframe preview (?fs-embed=1): in-flow, not full-bleed; cap height and scroll
   inside the box; contain overscroll for nested browsing context. */
html.fs-embed .fs-main .toc {
  margin-top: 0;
  max-width: min(22rem, 100%);
  max-height: min(40vh, 18rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Topic preview trigger — distinct from pathway forge-cards (accent rail + compact) */
@keyframes fs-topic-preview-breathe {
  0%,
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.04),
      0 0 0 1px rgba(0, 0, 0, 0.22),
      0 4px 20px rgba(245, 158, 11, 0.1),
      0 0 32px rgba(245, 158, 11, 0.06);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.055),
      0 0 0 1px rgba(245, 158, 11, 0.14),
      0 10px 44px rgba(245, 158, 11, 0.22),
      0 0 72px rgba(245, 158, 11, 0.14);
  }
}

@keyframes fs-topic-preview-breathe-light {
  0%,
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 1px 4px rgba(15, 23, 42, 0.05),
      0 6px 24px rgba(217, 119, 6, 0.08);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.95),
      0 2px 8px rgba(15, 23, 42, 0.06),
      0 12px 40px rgba(217, 119, 6, 0.18),
      0 0 56px rgba(217, 119, 6, 0.1);
  }
}

.fs-topic-preview-card {
  display: block;
  width: 100%;
  max-width: 28rem;
  text-align: left;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  padding: 1.35rem 1.5rem 1.15rem;
  margin: 0 0 1rem;
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.32);
  background: linear-gradient(
    145deg,
    rgba(42, 34, 24, 0.94) 0%,
    rgba(24, 20, 16, 0.96) 42%,
    rgba(14, 17, 26, 0.98) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(0, 0, 0, 0.22),
    0 4px 20px rgba(245, 158, 11, 0.1),
    0 0 32px rgba(245, 158, 11, 0.06);
  animation: fs-topic-preview-breathe 3.4s ease-in-out infinite;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.fs-topic-preview-card:hover {
  animation: none;
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(6, 182, 212, 0.12),
    0 12px 40px rgba(6, 182, 212, 0.08);
  text-decoration: none;
  color: inherit;
  transform: translateY(-1px);
}

.fs-topic-preview-card:focus-visible {
  outline: 2px solid var(--fs-cyan);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .fs-topic-preview-card {
    animation: none;
  }
}

.fs-topic-preview-card__eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fs-mint);
  margin-bottom: 0.5rem;
}

.fs-topic-preview-card__title {
  display: block;
  font-family: var(--fs-font-display);
  font-weight: 900;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  letter-spacing: -0.02em;
  color: var(--fs-text);
  line-height: 1.2;
  margin-bottom: 0.45rem;
}

.fs-topic-preview-card__desc {
  font-size: 0.9rem;
  color: var(--fs-text-muted);
  line-height: 1.5;
  margin: 0;
}

.fs-topic-preview-card__hint {
  display: block;
  margin-top: 0.85rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.55);
}

/* card_grid on home: topic preview triggers in Bootstrap columns (match forge-card tile height) */
.fs-main article .row.g-3.mb-4 > [class*="col-"].d-flex {
  display: flex !important;
}

.fs-main article .row.g-3.mb-4 > [class*="col-"].d-flex > a.fs-topic-preview-card {
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.fs-main article .row.g-3.mb-4 > [class*="col-"].d-flex > a.fs-topic-preview-card .fs-topic-preview-card__hint {
  margin-top: auto;
}

.fs-layout {
  min-height: 100vh;
}

.fs-sidebar {
  background: var(--fs-bg-sidebar);
  border-right: 1px solid var(--fs-border);
  min-height: 100vh;
}

@media (min-width: 992px) {
  .fs-sidebar {
    position: sticky;
    top: 0;
    align-self: flex-start;
    max-height: 100vh;
    overflow-y: auto;
  }
}

.fs-brand {
  font-family: var(--fs-font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--fs-text) !important;
}

.fs-brand span.fs-accent {
  color: var(--fs-amber);
}

.fs-nav-tier-wrap {
  margin-bottom: 0.15rem;
}

.fs-nav-tier-wrap > summary.fs-nav-tier {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.fs-nav-tier-wrap > summary.fs-nav-tier::-webkit-details-marker {
  display: none;
}

.fs-nav-tier {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fs-cyan);
  margin-top: 1.25rem;
  margin-bottom: 0.35rem;
  padding-left: 0.5rem;
}

.fs-nav-tier-wrap:first-of-type .fs-nav-tier {
  margin-top: 0;
}

.fs-sidebar .nav-link {
  color: var(--fs-text-muted);
  border-radius: 0.375rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.9rem;
}

.fs-sidebar .nav-link:hover {
  color: var(--fs-text);
  background: var(--fs-cyan-dim);
}

.fs-sidebar .nav-link.active {
  color: var(--fs-bg);
  background: linear-gradient(135deg, var(--fs-amber), #d97706);
  font-weight: 500;
}

.fs-main {
  padding: 1.5rem 1.25rem 3rem;
  max-width: 52rem;
}

.fs-main--product-wide {
  max-width: min(62rem, 100%);
}

@media (min-width: 768px) {
  .fs-main {
    padding: 2rem 2.5rem 4rem;
  }
}

.fs-main article {
  line-height: 1.65;
}

.fs-main h1 {
  font-family: var(--fs-font-display);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--fs-text), var(--fs-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Product blog posts (forgesdlc.com/blog) --- */
.fs-blog-post {
  max-width: 48rem;
}

.fs-blog-post__header {
  margin-bottom: 0.25rem;
}

.fs-blog-post__date {
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fs-text-muted, rgba(148, 163, 184, 0.95));
  margin-bottom: 0.35rem;
}

.fs-blog-post__date time {
  font-weight: 600;
  color: var(--fs-cyan);
}

.fs-blog-post__hero {
  margin: 0 0 1.25rem;
  padding: 0;
  border-radius: 0.45rem;
  overflow: hidden;
  border: 1px solid var(--fs-border);
  background: rgba(255, 255, 255, 0.03);
}

.fs-blog-post__hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(22rem, 50vh);
  object-fit: cover;
  aspect-ratio: 1200 / 630;
}

.fs-blog-post__body > p:first-of-type,
.fs-blog-post__body > p:nth-of-type(2) {
  font-size: 0.98rem;
  color: var(--fs-text-muted, #94a3b8);
}

.fs-blog-post__body > p strong:first-child {
  color: var(--fs-amber);
}

.fs-blog-recent {
  margin-bottom: 2rem;
  padding: 1.25rem 1.35rem;
  border-radius: 0.5rem;
  border: 1px solid var(--fs-border);
  background: linear-gradient(
    145deg,
    rgba(6, 182, 212, 0.06),
    rgba(15, 23, 42, 0.5)
  );
}

.fs-blog-recent__heading {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 0.85rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--fs-border);
  color: var(--fs-amber);
}

.fs-blog-recent__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.fs-blog-recent__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.fs-blog-recent__link {
  font-weight: 500;
  flex: 1 1 12rem;
}

.fs-blog-recent__date {
  font-size: 0.8rem;
  color: var(--fs-text-muted, #94a3b8);
  white-space: nowrap;
}

.fs-main h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--fs-border);
  color: var(--fs-amber);
}

.fs-main h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  color: var(--fs-text);
}

.fs-main a {
  color: var(--fs-cyan);
  text-decoration: none;
  text-underline-offset: 2px;
}

.fs-main a:hover {
  color: var(--fs-amber);
  text-decoration: underline;
}

.fs-main a:focus-visible {
  text-decoration: underline;
}

/* Solid amber CTA: prose `.fs-main a` / Bootstrap `.btn` / :visited can yield grey or cyan on orange. */
a.btn.btn-forge,
a.btn.btn-forge:visited,
button.btn.btn-forge,
button.btn.btn-forge:visited {
  color: #0f172a;
  text-decoration: none;
}

a.btn.btn-forge:hover,
a.btn.btn-forge:focus,
a.btn.btn-forge:focus-visible,
button.btn.btn-forge:hover,
button.btn.btn-forge:focus,
button.btn.btn-forge:focus-visible {
  color: #020617;
  text-decoration: none;
}

/* Whole-card links: do not apply prose .fs-main a:hover (amber + underline) */
.fs-main article a.fs-topic-preview-card,
.fs-main--product-wide article a.fs-topic-preview-card {
  color: inherit;
  text-decoration: none;
}

.fs-main article a.fs-topic-preview-card:hover,
.fs-main article a.fs-topic-preview-card:focus,
.fs-main article a.fs-topic-preview-card:focus-visible,
.fs-main--product-wide article a.fs-topic-preview-card:hover,
.fs-main--product-wide article a.fs-topic-preview-card:focus,
.fs-main--product-wide article a.fs-topic-preview-card:focus-visible {
  color: inherit;
  text-decoration: none;
}

.fs-main .fs-landing-rail a:hover,
.fs-main .fs-landing-rail a:focus-visible {
  color: var(--fs-cyan);
  text-decoration: underline;
}

.fs-main code,
.fs-main kbd {
  font-family: var(--fs-font-mono);
  font-size: 0.88em;
  background: var(--fs-bg-elevated);
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
  border: 1px solid var(--fs-border);
}

.fs-main pre {
  background: var(--fs-bg-elevated);
  border: 1px solid var(--fs-border);
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
}

.fs-main pre code {
  border: none;
  padding: 0;
  background: transparent;
  font-size: 0.85rem;
}

.fs-main table {
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.fs-main th,
.fs-main td {
  border: 1px solid var(--fs-border);
  padding: 0.5rem 0.65rem;
}

.fs-main th {
  background: var(--fs-bg-elevated);
  color: var(--fs-amber);
  font-weight: 600;
}

.fs-main blockquote {
  border-left: 3px solid var(--fs-amber);
  margin: 1rem 0;
  padding: 0.35rem 0 0.35rem 1rem;
  color: var(--fs-text-muted);
  background: var(--fs-amber-dim);
  border-radius: 0 0.375rem 0.375rem 0;
}

.fs-main .toc {
  background: var(--fs-bg-elevated);
  border: 1px solid var(--fs-border);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}

.fs-main .toc ul {
  margin-bottom: 0;
  padding-left: 1.1rem;
}

.fs-cross-refs {
  border: 1px solid var(--fs-cyan);
  background: var(--fs-cyan-dim);
  border-radius: 0.5rem;
  padding: 0.85rem 1rem;
  margin: 0 0 1.5rem;
}

.fs-cross-refs .fs-cross-refs-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fs-cyan);
  margin-bottom: 0.5rem;
}

.fs-cross-refs ul {
  margin: 0;
  padding-left: 1.1rem;
}

.fs-cross-refs a {
  font-weight: 500;
  text-decoration: none;
}

.fs-cross-refs a:hover,
.fs-cross-refs a:focus-visible {
  text-decoration: underline;
}

.fs-cross-refs--subtle {
  border: 1px solid var(--fs-border);
  background: rgba(17, 24, 39, 0.45);
  padding: 0.65rem 0.85rem;
  margin: 0 0 1.25rem;
}

.fs-cross-refs--subtle .fs-cross-refs-title {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--fs-text-muted);
  margin-bottom: 0.35rem;
}

.fs-cross-refs--subtle a {
  font-weight: 400;
  color: var(--fs-text-muted);
}

.fs-cross-refs--subtle a:hover,
.fs-cross-refs--subtle a:focus-visible {
  color: var(--fs-cyan);
}

.fs-main .landing-support-nav {
  font-size: 0.8125rem;
  color: var(--fs-text-muted);
  margin: 1.25rem 0 1.5rem;
  line-height: 1.5;
}

.fs-main .landing-support-nav a {
  color: var(--fs-cyan);
  font-weight: 500;
  text-decoration: none;
}

.fs-main .landing-support-nav a:hover,
.fs-main .landing-support-nav a:focus-visible {
  text-decoration: underline;
}

.fs-main .landing-authorship {
  max-width: 40rem;
  margin: 2rem auto 0.5rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--fs-border);
  text-align: center;
}

.fs-main .landing-authorship-lead {
  font-family: var(--fs-font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fs-text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.45;
}

.fs-main .landing-authorship-support {
  font-size: 0.8125rem;
  line-height: 1.55;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

/* Product home (landing_page): larger executive hero */
.landing-hero {
  padding: 5.5rem 1.25rem 3.75rem;
  max-width: 58rem;
}

@media (min-width: 768px) {
  .landing-hero {
    padding: 6.75rem 2rem 4.25rem;
  }
}

.landing-hero .landing-hero-kicker {
  font-family: var(--fs-font-sans);
  font-size: clamp(0.8125rem, 1.6vw, 0.9375rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fs-amber);
  margin-bottom: 1rem;
}

/* Descenders on "g" (and gradient text) were clipped: line-height 1.04 is too tight
   for background-clip:text; hero band also uses overflow:hidden -- keep glyphs inside the line box. */
.landing-hero .product-landing-title {
  font-size: clamp(2.85rem, 8vw, 4.5rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
  padding-bottom: 0.08em;
}

.landing-hero .product-landing-title__line2 {
  font-size: clamp(2.35rem, 6.5vw, 3.75rem);
  line-height: 1.15;
  letter-spacing: -0.032em;
}

.landing-hero-copy {
  overflow: visible;
}

.landing-hero .landing-hero-tagline {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.08rem, 2.4vw, 1.35rem);
  line-height: 1.55;
  color: var(--fs-text-muted);
}

.landing-hero .landing-hero-clarification {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(0.98rem, 2vw, 1.12rem);
  line-height: 1.55;
  color: var(--fs-text);
}

.landing-hero .landing-hero-explainer {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(0.95rem, 1.85vw, 1.05rem);
  line-height: 1.55;
  color: var(--fs-text-muted);
}

.landing-hero .landing-hero-audience {
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(0.8125rem, 1.5vw, 0.875rem);
  line-height: 1.5;
}

.landing-hero .landing-hero-actions {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
  padding-top: 0.25rem;
}

.landing-hero .landing-hero-secondary-links {
  font-size: 0.8125rem;
  line-height: 1.6;
}

.landing-hero .landing-hero-secondary-link {
  color: var(--fs-text-muted);
  text-decoration: none;
}

.landing-hero .landing-hero-secondary-link:hover,
.landing-hero .landing-hero-secondary-link:focus-visible {
  color: var(--fs-cyan);
  text-decoration: underline;
}

.landing-hero .landing-hero-secondary-sep {
  color: var(--fs-border);
  user-select: none;
}

.landing-hero-support {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  font-size: clamp(0.8125rem, 1.35vw, 0.9rem);
  line-height: 1.5;
  color: var(--fs-text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.landing-hero-support__item {
  position: relative;
  padding-left: 1.15rem;
  text-align: left;
}

.landing-hero-support__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fs-cyan);
  opacity: 0.55;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.25);
}

@media (min-width: 1200px) {
  .landing-hero-copy.text-xl-start .landing-hero-support {
    margin-left: 0;
    margin-right: 0;
  }
}

/* --- WP1 / shell: wide landing body ----------------------------------- */
.fs-landing-body-shell {
  width: 100%;
  max-width: var(--fs-shell-max);
  margin-left: auto;
  margin-right: auto;
  padding-bottom: clamp(2.5rem, 4vw, 4.5rem);
}

.fs-landing-body-shell > .fs-main {
  max-width: none;
  width: 100%;
  padding-left: clamp(0.65rem, 1.5vw, 1.25rem);
  padding-right: clamp(0.65rem, 1.5vw, 1.25rem);
}

.fs-prose-flow {
  max-width: var(--fs-prose-max);
  width: 100%;
}

.fs-landing-model-row {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.fs-landing-rail {
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.fs-landing-model-diagram {
  border-radius: 0.5rem;
  border: 1px solid var(--fs-border);
  background: linear-gradient(
    165deg,
    rgba(6, 182, 212, 0.06) 0%,
    rgba(245, 158, 11, 0.09) 50%,
    rgba(26, 22, 18, 0.35) 100%
  );
  padding: 1rem 1.1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.fs-model-schematic {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.fs-model-schematic__track {
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(6, 182, 212, 0.35) 30%,
    rgba(245, 158, 11, 0.4) 70%,
    transparent
  );
}

.fs-model-schematic__nodes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  align-items: center;
}

.fs-model-node {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.5rem;
  border-radius: 0.25rem;
  border: 1px solid var(--fs-border);
}

.fs-model-node--human {
  color: var(--fs-amber);
  background: var(--fs-amber-dim);
  border-color: rgba(245, 158, 11, 0.25);
}

.fs-model-node--agent {
  color: var(--fs-cyan);
  background: var(--fs-cyan-dim);
  border-color: rgba(6, 182, 212, 0.22);
}

@media (max-width: 991.98px) {
  .fs-landing-rail {
    position: static;
    margin-top: 1.5rem;
  }

  .fs-prose-flow {
    max-width: none;
  }
}

/* --- WP2: primary nav (landing + product) ----------------------------- */
.fs-primary-nav-global {
  position: sticky;
  top: 0;
  z-index: 28;
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--fs-border);
}

.fs-primary-nav-global-inner {
  /* Full width + same horizontal rhythm as `.landing-header-inner` / `.fs-sidebar` (px-3, px-xxl-5). */
  width: 100%;
  max-width: none;
  margin: 0;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  padding-left: 1rem;
  padding-right: clamp(0.5rem, 1.5vw, 1.25rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.15rem 0.35rem;
}

@media (min-width: 1400px) {
  .fs-primary-nav-global-inner {
    padding-left: 3rem;
  }
}

@media (min-width: 992px) {
  .fs-primary-nav-global-inner {
    justify-content: flex-end;
    padding-right: max(
      clamp(1rem, 2vw, 2rem),
      var(--fs-theme-toggle-reserve)
    );
  }

  .fs-layout .fs-primary-nav-global-inner {
    padding-right: max(
      clamp(0.75rem, 1.5vw, 1.5rem),
      var(--fs-theme-toggle-reserve)
    );
  }
}

.fs-primary-nav-global a {
  font-family: var(--fs-font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--fs-text-muted);
  text-decoration: none;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  border: 1px solid transparent;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.fs-primary-nav-global a:hover {
  color: var(--fs-text);
  background: var(--fs-cyan-dim);
  border-color: rgba(6, 182, 212, 0.28);
}

.fs-primary-nav-global a:focus-visible {
  outline: 2px solid var(--fs-cyan);
  outline-offset: 2px;
}

.fs-primary-nav-global a.active {
  color: var(--fs-cyan);
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.35);
}

@media (max-width: 575.98px) {
  .fs-primary-nav-global-inner {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-inline-end: clamp(4.5rem, 20vw, 7.5rem);
  }
}

/* --- WP2b: primary nav dropdowns (landing-header + fs-primary-nav-global) -- */
.fs-nav-dropdown {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 100%;
}

.fs-nav-dropdown__panel-inner {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  padding: 0.25rem 0;
  box-sizing: border-box;
}

.fs-nav-dropdown__link {
  font-family: var(--fs-font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--fs-text-muted);
  text-decoration: none;
  padding: 0.38rem 0;
  border-radius: 6px;
  border: 1px solid transparent;
  transition:
    color 0.15s ease,
    background 0.15s ease;
  white-space: nowrap;
}

.fs-nav-dropdown__link:hover {
  color: var(--fs-text);
  background: var(--fs-cyan-dim);
}

.fs-nav-dropdown__link:focus-visible {
  outline: 2px solid var(--fs-cyan);
  outline-offset: 1px;
}

.fs-nav-dropdown__link.active {
  color: var(--fs-cyan);
  background: rgba(6, 182, 212, 0.1);
}

@media (min-width: 992px) {
  .landing-nav .fs-nav-dropdown__panel-inner {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .fs-primary-nav-global .fs-nav-dropdown__panel-inner {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  .fs-nav-dropdown__panel {
    position: absolute;
    top: calc(100% + 0.2rem);
    left: 0;
    min-width: max(13.5rem, 100%);
    max-width: min(18rem, calc(100vw - 2rem));
    background: rgba(10, 14, 23, 0.97);
    backdrop-filter: blur(12px);
    border: 1px solid var(--fs-border);
    border-radius: 8px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    z-index: 45;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-4px);
    transition:
      opacity 0.16s ease,
      visibility 0.16s ease,
      transform 0.16s ease;
  }

  .fs-nav-dropdown:hover .fs-nav-dropdown__panel,
  .fs-nav-dropdown:focus-within .fs-nav-dropdown__panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .fs-primary-nav-global .fs-nav-dropdown__trigger {
    cursor: default;
  }
}

@media (max-width: 991.98px) {
  .fs-nav-dropdown__panel-inner {
    padding-left: 0;
    padding-right: 0;
  }

  .fs-nav-dropdown__panel {
    display: none;
    margin-top: 0.2rem;
    margin-bottom: 0.35rem;
    padding: 0.15rem 0 0.15rem 0.5rem;
    border-left: 2px solid rgba(6, 182, 212, 0.28);
  }

  .fs-nav-dropdown.fs-nav-dropdown--open .fs-nav-dropdown__panel {
    display: block;
  }

  .fs-nav-dropdown__link {
    padding-left: 0.5rem;
    padding-right: 0.35rem;
    white-space: normal;
  }
}

.landing-nav .fs-nav-dropdown__trigger {
  font-family: var(--bs-body-font-family);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--forge-text-2);
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  border: 1px solid transparent;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.landing-nav .fs-nav-dropdown__trigger:hover {
  color: var(--forge-text);
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.35);
}

.landing-nav .fs-nav-dropdown__trigger:focus-visible {
  outline: 2px solid var(--forge-cyan);
  outline-offset: 2px;
}

.landing-nav .fs-nav-dropdown__trigger.active {
  color: var(--forge-cyan);
  font-weight: 800;
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.45);
}

/* --- WP3 / WP4 / WP10: wide hero + signal + hero atmosphere -------------- */
.fs-landing-hero-band.landing-hero {
  position: relative;
  overflow: hidden;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  padding-top: clamp(3.5rem, 8vw, 6.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.fs-landing-hero-band.landing-hero::before {
  content: "";
  position: absolute;
  inset: -15% -5% auto -5%;
  height: 85%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 70% at 75% 35%, rgba(6, 182, 212, 0.09) 0%, transparent 58%),
    radial-gradient(ellipse 40% 50% at 20% 60%, rgba(245, 158, 11, 0.05) 0%, transparent 55%);
  opacity: 0.9;
}

/* Opt-in: darken busy / light hero art so copy stays readable (product marketing). */
.fs-landing-hero-band.landing-hero.fs-hero-band--scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(10, 14, 23, 0.42) 0%,
    rgba(10, 14, 23, 0.14) 42%,
    rgba(10, 14, 23, 0.05) 100%
  );
}

.landing-hero-wide {
  position: relative;
  z-index: 1;
  max-width: var(--fs-shell-max);
  margin-left: auto;
  margin-right: auto;
}

/* Stacking context for narrow viewports: FORGE sits behind copy (see max-width rule below). */
.landing-hero-grid-wrap {
  position: relative;
}

.landing-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 12rem;
}

/* Opt-in: raster / photo hero art — cover inside column, dark field kills “page color” gutters. */
.landing-hero-visual.landing-hero-visual--cover .landing-forge-visual {
  overflow: hidden;
  border-radius: 0.35rem;
  background: rgba(10, 14, 23, 0.5);
  border: 1px solid var(--fs-border);
  min-height: clamp(14rem, 32vw, 22rem);
}

.landing-hero-visual.landing-hero-visual--cover .landing-forge-visual__img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  min-height: clamp(14rem, 28vw, 20rem);
  max-height: min(42rem, 70vh);
  background: transparent;
}

@media (min-width: 1200px) {
  .landing-hero-visual.landing-hero-visual--cover .landing-forge-visual__img {
    max-height: min(44rem, 78vh);
    transform: none;
  }
}

/* Animated FORGE spectral wordmark (img → SMIL SVG from kitchensink assets). */
.landing-forge-visual {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.94;
  filter: drop-shadow(0 0 32px rgba(6, 182, 212, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(16rem, 34vw, 26rem);
}

.landing-forge-visual__img {
  width: 100%;
  height: 100%;
  max-height: min(38rem, 78vh);
  object-fit: contain;
  display: block;
  border-radius: 0.35rem;
  border: 1px solid var(--fs-border);
  background: rgba(6, 182, 212, 0.04);
}

@media (min-width: 1200px) {
  .landing-forge-visual {
    min-height: clamp(18rem, 36vw, 30rem);
  }

  .landing-forge-visual__img {
    max-height: min(42rem, 82vh);
    transform: scale(1.08);
    transform-origin: center center;
  }
}

/* Below xl: wordmark as a soft backdrop behind headline and copy (not a separate column). */
@media (max-width: 1199.98px) {
  .landing-hero-grid-wrap .landing-hero-visual {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: min(52rem, 165vw);
    max-width: none;
    z-index: 0;
    padding-left: 0;
    padding-right: 0;
    margin: 0;
    pointer-events: none;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 0;
  }

  .landing-hero-grid-wrap .landing-hero-copy {
    position: relative;
    z-index: 1;
  }

  .landing-hero-grid-wrap .landing-forge-visual {
    opacity: 0.42;
    filter: drop-shadow(0 0 56px rgba(6, 182, 212, 0.14));
    border: none;
    background: transparent;
    min-height: 0;
    width: 100%;
    max-width: 100%;
  }

  .landing-hero-grid-wrap .landing-forge-visual__img {
    max-height: min(26rem, 52vh);
    border: none;
    background: transparent;
    transform: scale(1.12);
    transform-origin: center top;
  }

  .landing-hero-grid-wrap .product-landing-title,
  .landing-hero-grid-wrap .landing-hero-kicker,
  .landing-hero-grid-wrap .landing-hero-tagline,
  .landing-hero-grid-wrap .landing-hero-explainer {
    text-shadow:
      0 0 1px rgba(10, 14, 23, 0.9),
      0 2px 28px rgba(10, 14, 23, 0.88);
  }

  .landing-hero-grid-wrap .landing-hero-actions,
  .landing-hero-grid-wrap .landing-hero-support {
    position: relative;
    z-index: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-forge-visual {
    opacity: 0.92;
  }

  .landing-forge-visual__img {
    transform: none;
  }
}

@media (min-width: 1200px) {
  .landing-hero-copy.text-xl-start .landing-hero-tagline,
  .landing-hero-copy.text-xl-start .landing-hero-clarification,
  .landing-hero-copy.text-xl-start .landing-hero-explainer,
  .landing-hero-copy.text-xl-start .landing-hero-audience {
    margin-left: 0;
    margin-right: 0;
    max-width: 38rem;
  }

  .landing-hero-copy.text-xl-start .landing-hero-kicker {
    text-align: left;
  }

  .landing-hero-copy.text-xl-start .landing-hero-actions {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
    max-width: 38rem;
  }

  .landing-hero-copy.text-xl-start .product-landing-title {
    text-align: left;
  }
}

/* --- WP5 / WP7: panels + pillar identity -------------------------------- */
.forge-stat-band .forge-stat {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--fs-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(0, 0, 0, 0.2);
}

.forge-stat--amber {
  border-color: rgba(245, 158, 11, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(245, 158, 11, 0.08),
    0 0 24px rgba(245, 158, 11, 0.06);
}

.forge-stat--cyan {
  border-color: rgba(6, 182, 212, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(6, 182, 212, 0.06),
    0 0 24px rgba(6, 182, 212, 0.05);
}

.forge-stat--emerald {
  border-color: rgba(52, 211, 153, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(52, 211, 153, 0.05),
    0 0 22px rgba(52, 211, 153, 0.04);
}

/* --- Site announcement (landing_page / marketing_page) -------------------- */
.fs-site-announcement {
  position: relative;
  z-index: 1025;
  padding: 0.45rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.4;
  border-bottom: 1px solid var(--fs-border, rgba(148, 163, 184, 0.18));
  background: rgba(6, 182, 212, 0.09);
}

.fs-site-announcement a {
  color: var(--forge-cyan, #06b6d4);
  font-weight: 600;
}

.fs-site-announcement a:hover {
  color: var(--forge-amber, #f59e0b);
}

/* --- Marketing stat band (render_marketing_stat_band) -------------------- */
.fs-marketing-stat-band .fs-marketing-stat-band__title {
  line-height: 1.35;
}

.fs-marketing-stat-band .forge-stat .stat-value {
  margin-top: 0.15rem;
}

/* --- Case study spotlight (render_case_study_spotlight) ------------------- */
.fs-case-study-spotlight__quote {
  border-left: 3px solid rgba(245, 158, 11, 0.45);
  padding-left: 1rem;
  margin-left: 0;
}

.fs-case-study-spotlight__img {
  object-fit: cover;
  max-height: 22rem;
  border: 1px solid var(--fs-border, rgba(148, 163, 184, 0.15));
}

/* --- People showcase (render_people_showcase) ------------------------------ */
.fs-people-showcase__avatar {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: cover;
  border: 1px solid var(--fs-border, rgba(148, 163, 184, 0.2));
}

.fs-people-showcase__placeholder {
  width: 5.5rem;
  height: 5.5rem;
  font-family: var(--font-display, system-ui);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--forge-text-3, #94a3b8);
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--fs-border, rgba(148, 163, 184, 0.2));
}

.fs-people-showcase__link {
  color: inherit;
}

.fs-people-showcase__link:hover .fs-people-showcase__name {
  color: var(--forge-cyan, #06b6d4);
}

.fs-main article .row.g-3.mb-4.landing-pathway-row {
  max-width: min(100%, 90rem);
}

.forge-card--lead {
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow:
    0 0 0 1px rgba(245, 158, 11, 0.12),
    0 12px 40px rgba(0, 0, 0, 0.25);
  background: linear-gradient(
    165deg,
    rgba(17, 24, 39, 0.95) 0%,
    rgba(10, 14, 23, 0.88) 100%
  );
}

/* --- WP6 / WP8 / WP10: sections + authorship bridge --------------------- */
.fs-landing-section {
  position: relative;
  padding-top: clamp(1rem, 2vw, 1.75rem);
  padding-bottom: clamp(0.5rem, 1.5vw, 1.25rem);
  margin-bottom: 0.25rem;
}

.fs-landing-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: 0.5rem;
  opacity: 0.55;
}

.fs-landing-section > * {
  position: relative;
  z-index: 1;
}

.fs-section-model[data-fs-section="model"]::before {
  background: radial-gradient(
    ellipse 80% 60% at 70% 20%,
    rgba(6, 182, 212, 0.07) 0%,
    transparent 65%
  );
}

.fs-landing-model-row.fs-landing-section {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.fs-section-pillars[data-fs-section="pillars"]::before {
  background: radial-gradient(
    circle at 50% 0%,
    rgba(245, 158, 11, 0.06) 0%,
    transparent 55%
  );
}

.fs-section-authorship[data-fs-section="authorship"]::before {
  background: linear-gradient(
    90deg,
    rgba(245, 158, 11, 0.05) 0%,
    transparent 40%,
    rgba(6, 182, 212, 0.05) 100%
  );
}

.fs-section-pathways-understand::before,
.fs-section-pathways-product::before,
.fs-section-pathways-engineering::before,
.fs-section-pathways-adoption::before {
  background: radial-gradient(
    ellipse 100% 80% at 50% 0%,
    rgba(6, 182, 212, 0.04) 0%,
    transparent 60%
  );
}

.fs-section-pathways-agents::before {
  background: radial-gradient(
    ellipse 90% 70% at 30% 30%,
    rgba(6, 182, 212, 0.08) 0%,
    rgba(245, 158, 11, 0.05) 100%
  );
}

.fs-main .landing-authorship--bridge {
  border-top: none;
  padding-top: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(6, 182, 212, 0.04) 50%,
    transparent 100%
  );
  border-radius: 0.375rem;
}

.fs-main .landing-authorship--bridge .landing-authorship-lead {
  color: var(--fs-amber);
  opacity: 0.95;
}

.fs-footer {
  border-top: 1px solid var(--fs-border);
  margin-top: 3rem;
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--fs-text-muted);
}

.fs-landing-footer-band {
  position: relative;
  max-width: var(--fs-shell-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(0.65rem, 1.5vw, 1.25rem);
  padding-right: clamp(0.65rem, 1.5vw, 1.25rem);
}

.fs-landing-footer-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: linear-gradient(
      rgba(148, 163, 184, 0.04) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 100%);
}

.fs-landing-footer-band > * {
  position: relative;
  z-index: 1;
}

.fs-footer a {
  color: var(--fs-amber);
  text-decoration: none;
}

.fs-footer a:hover {
  text-decoration: underline;
}

.fs-mobile-bar {
  background: var(--fs-bg-sidebar);
  border-bottom: 1px solid var(--fs-border);
}

.fs-offcanvas {
  background: var(--fs-bg-sidebar);
}

.fs-offcanvas .btn-close {
  filter: invert(1);
}

/*
 * ks_blocks card_grid (e.g. landing “Start here”) — product article only.
 * Forge generator emits: h2 + .row.g-3.mb-4 > .col-* > a.forge-card
 */
.fs-main h2.text-center {
  border-bottom: none;
  padding-bottom: 0;
}

.fs-main h2.landing-pathway-title {
  text-align: start;
  font-size: 1.15rem;
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0;
  color: var(--fs-text-muted);
  font-family: var(--fs-font-sans);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fs-main h2.landing-pathway-title:first-of-type {
  margin-top: 0.5rem;
}

.fs-main article .row.g-3.mb-4 {
  --bs-gutter-x: 0.75rem;
  --bs-gutter-y: 0.75rem;
  max-width: min(100%, 68rem);
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

.fs-main article .row.g-3.mb-4 > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

/* Do not inherit global .fs-main a underline on whole-card links */
.fs-main article .row.g-3.mb-4 a.forge-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  text-decoration: none;
  padding: 0.9rem 1rem 1.05rem;
  box-sizing: border-box;
}

.fs-main article .row.g-3.mb-4 a.forge-card:hover,
.fs-main article .row.g-3.mb-4 a.forge-card:focus,
.fs-main article .row.g-3.mb-4 a.forge-card:focus-visible {
  text-decoration: none;
}

.fs-main article .row.g-3.mb-4 a.forge-card .forge-support {
  margin-top: auto;
  padding-top: 0.45rem;
  line-height: 1.45;
  font-size: 0.8125rem;
}

.fs-main article .row.g-3.mb-4 a.forge-card .card-label {
  font-family: var(--fs-font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.fs-main article .row.g-3.mb-4 a.forge-card h3,
.fs-main article .row.g-3.mb-4 a.forge-card h4,
.fs-main article .row.g-3.mb-4 a.forge-card h5 {
  flex-shrink: 0;
  line-height: 1.25;
  margin-bottom: 0.25rem;
}

/*
 * Pathway swimlanes: consecutive pathways-* card_grid blocks are wrapped in
 * .fs-pathway-swimlanes (see Forge ks_compose). Wide viewports: columns with
 * cards stacked per lane; below xl: lanes stack in one column.
 */
.fs-pathway-swimlanes {
  display: grid;
  gap: clamp(0.75rem, 2vw, 1.35rem);
  align-items: start;
  margin-bottom: 0.35rem;
}

.fs-pathway-swimlanes > .fs-landing-section {
  min-width: 0;
}

.fs-pathway-swimlanes > .fs-landing-section > h2.landing-pathway-title {
  margin-top: 0.65rem;
  margin-bottom: 0.65rem;
}

.fs-pathway-swimlanes > .fs-landing-section:first-child > h2.landing-pathway-title {
  margin-top: 0.35rem;
}

@media (max-width: 1199.98px) {
  .fs-pathway-swimlanes {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1200px) {
  .fs-pathway-swimlanes {
    grid-template-columns: repeat(auto-fit, minmax(12.75rem, 1fr));
  }
}

.fs-pathway-swimlanes .landing-pathway-row--lane {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  justify-content: stretch;
}

.fs-pathway-swimlanes .landing-pathway-row--lane > [class*="col-"] {
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
}

/* --- Forge home (index): landing-header + marketing sections ---------- */
.landing-header {
  background: color-mix(in srgb, var(--fs-bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--fs-border);
}

@supports not (backdrop-filter: blur(12px)) {
  .landing-header {
    background: var(--fs-bg);
  }
}

.landing-header-inner {
  /* Full width: brand aligns with product sidebar (same Bootstrap px-3 / px-xxl-5). */
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin-left: 0;
  margin-right: 0;
}

.landing-nav {
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
  gap: 0.1rem 0.2rem;
  overflow-x: visible;
  justify-content: flex-start;
  align-content: center;
  /* Clear fixed theme menu (viewport corner), not just header padding */
  margin-inline-end: var(--fs-theme-toggle-reserve);
}

.landing-nav a.landing-nav-cta {
  flex-shrink: 0;
  margin-left: auto;
  padding: 0.38rem 0.95rem;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  border-radius: 6px;
  white-space: nowrap;
}

.landing-nav a.landing-nav-cta:hover {
  box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.2), 0 0 18px rgba(6, 182, 212, 0.15);
}

.fs-primary-nav-global-inner .landing-nav-cta.btn.btn-forge {
  flex-shrink: 0;
  margin-left: 0.25rem;
  padding: 0.32rem 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  line-height: 1.2;
  border-radius: 6px;
}

@media (max-width: 575.98px) {
  .landing-header-inner {
    flex-wrap: wrap;
    row-gap: 0.45rem;
    column-gap: 0.75rem;
  }

  .landing-nav {
    justify-content: flex-start;
    /* Theme trigger compacts on small screens; still reserve corner */
    margin-inline-end: clamp(4.5rem, 20vw, 7.5rem);
  }
}

.fs-home {
  width: 100%;
}

.fs-home-section {
  position: relative;
  padding: clamp(2.75rem, 5vw, 4.5rem) 0;
  scroll-margin-top: 5.5rem;
}

.fs-home-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background: radial-gradient(
    ellipse 70% 55% at 50% 0%,
    rgba(6, 182, 212, 0.04) 0%,
    transparent 62%
  );
}

.fs-home-section > .container-fluid {
  position: relative;
  z-index: 1;
  max-width: var(--fs-shell-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(0.65rem, 1.5vw, 1.25rem);
  padding-right: clamp(0.65rem, 1.5vw, 1.25rem);
}

.fs-home-eyebrow {
  font-family: var(--fs-font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fs-amber);
  margin-bottom: 0.65rem;
}

.fs-home-section h2.fs-home-title {
  font-family: var(--fs-font-display);
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  color: var(--fs-text);
  border-bottom: none;
  padding-bottom: 0;
}

.fs-home-lead {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.6;
  color: var(--fs-text-muted);
  max-width: 52rem;
  margin-bottom: 0;
}

.fs-home-card {
  height: 100%;
  border: 1px solid var(--fs-border);
  border-radius: 0.5rem;
  padding: 1.15rem 1.2rem 1.2rem;
  background: linear-gradient(
    165deg,
    rgba(17, 24, 39, 0.55) 0%,
    rgba(10, 14, 23, 0.72) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(0, 0, 0, 0.18);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.fs-home-card:hover {
  border-color: rgba(6, 182, 212, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(6, 182, 212, 0.12),
    0 8px 32px rgba(0, 0, 0, 0.2);
}

.fs-home-card h3 {
  font-family: var(--fs-font-sans);
  font-size: clamp(1.02rem, 1.15vw, 1.08rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
  color: var(--fs-text);
}

.fs-home-card p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--fs-text-muted);
  margin-bottom: 0;
}

/* Homepage: expandable detail panels (hover / focus / tap) */
.fs-expand-tile {
  outline: none;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.fs-expand-tile:focus-visible {
  outline: 2px solid rgba(6, 182, 212, 0.55);
  outline-offset: 3px;
}

.fs-expand-tile__grow {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s ease;
}

.fs-expand-tile--expanded .fs-expand-tile__grow {
  grid-template-rows: 1fr;
}

@media (prefers-reduced-motion: reduce) {
  .fs-expand-tile__grow {
    transition: none;
  }
}

.fs-expand-tile__panel {
  min-height: 0;
  overflow: hidden;
}

.fs-expand-tile__panel-inner {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  margin-top: 0.65rem;
}

.fs-expand-tile__bullets {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--fs-text-muted);
}

.fs-expand-tile__bullets li {
  margin-bottom: 0.35rem;
}

.fs-expand-tile__bullets li:last-child {
  margin-bottom: 0;
}

.fs-home-readon__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fs-text-muted);
  margin-bottom: 0.35rem;
}

.fs-home-readon__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.15rem;
}

.fs-home-readon__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fs-cyan);
  text-decoration: none;
}

.fs-home-readon__link:hover {
  text-decoration: underline;
  color: var(--fs-mint, #5eead4);
}

.fs-home-steps {
  --fs-step-num-size: 2.65rem;
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  counter-reset: fs-step;
  list-style: none;
  padding: 0;
}

@media (min-width: 992px) {
  .fs-home-steps {
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
    position: relative;
  }

  .fs-home-steps::before {
    content: "";
    position: absolute;
    top: calc(var(--fs-step-num-size) / 2);
    left: 8%;
    right: 8%;
    height: 1px;
    transform: translateY(-50%);
    background: linear-gradient(
      90deg,
      transparent,
      rgba(6, 182, 212, 0.25) 12%,
      rgba(245, 158, 11, 0.22) 50%,
      rgba(6, 182, 212, 0.22) 88%,
      transparent
    );
    pointer-events: none;
    z-index: 0;
  }
}

.fs-home-step {
  position: relative;
  z-index: 1;
  counter-increment: fs-step;
  list-style: none;
}

.fs-home-step__num {
  width: var(--fs-step-num-size, 2.65rem);
  height: var(--fs-step-num-size, 2.65rem);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fs-font-sans);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--fs-cyan);
  border: 1px solid rgba(6, 182, 212, 0.45);
  background: color-mix(in srgb, var(--fs-bg, #0a0e17) 92%, rgba(6, 182, 212, 0.35));
  box-shadow: inset 0 0 0 1px rgba(6, 182, 212, 0.12);
  margin-bottom: 0.85rem;
}

.fs-home-step__num::before {
  content: counter(fs-step);
}

.fs-home-step h3 {
  font-family: var(--fs-font-sans);
  font-size: clamp(1.08rem, 1.2vw, 1.14rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  color: var(--fs-text);
}

.fs-home-step p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--fs-text-muted);
  margin-bottom: 0;
}

.fs-home-compare {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: clamp(1.5rem, 3vw, 2rem);
}

@media (min-width: 768px) {
  .fs-home-compare {
    grid-template-columns: 1fr 1fr;
  }
}

.fs-home-compare__col {
  border: 1px solid var(--fs-border);
  border-radius: 0.5rem;
  padding: 1.25rem 1.35rem 1.35rem;
  background: rgba(10, 14, 23, 0.45);
}

.fs-home-compare__col h3 {
  font-size: clamp(1.06rem, 1.2vw, 1.12rem);
  font-weight: 800;
  margin-bottom: 0.85rem;
  color: var(--fs-text);
}

.fs-home-compare__col ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--fs-text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.fs-home-compare__col li {
  margin-bottom: 0.45rem;
}

.fs-home-compare__col--forge {
  border-color: rgba(6, 182, 212, 0.28);
  box-shadow: inset 0 1px 0 rgba(6, 182, 212, 0.06);
}

.fs-home-split {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
}

@media (min-width: 992px) {
  .fs-home-split {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.fs-home-bento {
  display: grid;
  gap: 0.65rem;
  min-height: 12rem;
}

.fs-home-bento__cell {
  border: 1px solid color-mix(in srgb, var(--fs-border) 85%, rgba(6, 182, 212, 0.35));
  border-radius: 0.45rem;
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--fs-bg-elevated, #111827) 78%, rgba(6, 182, 212, 0.14)) 0%,
    color-mix(in srgb, var(--fs-bg, #0a0e17) 90%, rgba(6, 182, 212, 0.08)) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(0, 0, 0, 0.12);
  min-height: 3.5rem;
}

.fs-home-bento__cell--accent {
  grid-row: span 2;
  background: linear-gradient(
    160deg,
    rgba(6, 182, 212, 0.16) 0%,
    color-mix(in srgb, var(--fs-bg, #0a0e17) 82%, rgba(245, 158, 11, 0.12)) 100%
  );
  border-color: rgba(6, 182, 212, 0.38);
}

@media (min-width: 576px) {
  .fs-home-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .fs-home-bento__cell--accent {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

.fs-home-principle {
  border-left: 3px solid rgba(245, 158, 11, 0.45);
  padding-left: 1rem;
  margin-bottom: 1rem;
}

.fs-home-principle:last-child {
  margin-bottom: 0;
}

.fs-home-principle h3 {
  font-family: var(--fs-font-sans);
  font-size: clamp(1.04rem, 1.15vw, 1.1rem);
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: var(--fs-text);
  letter-spacing: -0.02em;
}

.fs-home-principle p {
  font-size: 0.84rem;
  color: var(--fs-text-muted);
  line-height: 1.5;
}

.fs-home-cta-panel {
  text-align: center;
  padding: clamp(2.5rem, 5vw, 3.75rem) clamp(1rem, 3vw, 2rem);
  border: 1px solid rgba(6, 182, 212, 0.22);
  border-radius: 0.65rem;
  background: linear-gradient(
    165deg,
    rgba(6, 182, 212, 0.08) 0%,
    rgba(10, 14, 23, 0.92) 45%,
    rgba(10, 14, 23, 0.98) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.fs-home-cta-panel h2 {
  margin-bottom: 0.65rem;
}

.fs-home-cta-panel .fs-home-lead {
  margin-left: auto;
  margin-right: auto;
}

.fs-home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.35rem;
}

.fs-home-crossref {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.25rem, 2.5vw, 1.75rem);
  border-top: 1px solid var(--fs-border);
}

.fs-home-crossref .fs-cross-refs {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

html[data-bs-theme="light"] .fs-home-card {
  background: linear-gradient(165deg, #ffffff 0%, #f1f5f9 100%);
}

html[data-bs-theme="light"] .fs-home-compare__col {
  background: rgba(255, 255, 255, 0.92);
}

html[data-bs-theme="light"] .fs-home-cta-panel {
  background: linear-gradient(165deg, #f0f9ff 0%, #ffffff 55%, #f8fafc 100%);
}

html[data-bs-theme="light"] .fs-home-step__num {
  background: color-mix(in srgb, var(--fs-bg, #ffffff) 86%, rgba(6, 182, 212, 0.32));
  border-color: rgba(6, 182, 212, 0.42);
  color: #0e7490;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.75),
    inset 0 1px 0 rgba(6, 182, 212, 0.08);
}

html[data-bs-theme="light"] .fs-home-bento__cell {
  border: 1px solid color-mix(in srgb, var(--fs-border) 65%, rgba(6, 182, 212, 0.45));
  background: linear-gradient(
    165deg,
    color-mix(in srgb, #ffffff 82%, rgba(6, 182, 212, 0.14)) 0%,
    #f1f5f9 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 0 0 1px rgba(15, 23, 42, 0.06);
}

html[data-bs-theme="light"] .fs-home-bento__cell--accent {
  background: linear-gradient(
    160deg,
    rgba(6, 182, 212, 0.2) 0%,
    color-mix(in srgb, #f8fafc 88%, rgba(245, 158, 11, 0.14)) 100%
  );
  border-color: rgba(6, 182, 212, 0.42);
}

/* =================================================================
   PRESENTATION PRIMITIVES — fs-stage-carousel, fs-rail, lightbox
   (Forge tokens + glass/card surfaces; no new color system)
   ================================================================= */

.fs-stage-carousel {
  position: relative;
  width: 100%;
  max-width: var(--fs-shell-max);
  margin-left: auto;
  margin-right: auto;
}

.fs-stage-carousel__live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fs-stage-carousel__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--fs-border);
  background: var(--fs-bg-elevated);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 4px 24px rgba(0, 0, 0, 0.18);
  aspect-ratio: var(--fs-stage-aspect, 16 / 9);
}

.fs-stage-carousel__track {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .fs-stage-carousel__track {
    transition: none;
  }
}

.fs-stage-carousel__slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
}

.fs-stage-carousel__slide-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  align-items: stretch;
}

.fs-stage-carousel__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.fs-stage-carousel__media-link,
.fs-stage-carousel__media-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
  border: 0;
  padding: 0;
  background: transparent;
  display: block;
  text-decoration: none;
}

.fs-stage-carousel__media-hit:focus-visible {
  outline: 2px solid var(--fs-cyan);
  outline-offset: 2px;
}

.fs-stage-carousel__overlay {
  position: relative;
  z-index: 2;
  align-self: end;
  width: 100%;
  padding: 1.25rem 1.5rem 1.5rem;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(10, 14, 23, 0.88) 0%,
    rgba(10, 14, 23, 0.45) 55%,
    transparent 100%
  );
}

.fs-stage-carousel__overlay-inner,
.fs-stage-carousel__overlay .fs-stage-carousel__cta-row,
.fs-stage-carousel__overlay a,
.fs-stage-carousel__overlay button {
  pointer-events: auto;
}

.fs-stage-carousel--hero .fs-stage-carousel__overlay-inner {
  max-width: 36rem;
}

.fs-stage-carousel--hero.fs-stage-carousel--align-center .fs-stage-carousel__overlay {
  text-align: center;
}

.fs-stage-carousel--hero.fs-stage-carousel--align-center .fs-stage-carousel__overlay-inner {
  margin-left: auto;
  margin-right: auto;
}

.fs-stage-carousel__eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fs-cyan);
  margin-bottom: 0.35rem;
}

.fs-stage-carousel__title {
  font-family: var(--fs-font-display);
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  line-height: 1.15;
  color: var(--fs-text);
  margin: 0 0 0.5rem;
}

.fs-stage-carousel__body {
  font-size: 0.95rem;
  color: var(--fs-text-muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.fs-stage-carousel__meta {
  font-size: 0.8rem;
  color: var(--fs-text-muted);
  margin-top: 0.35rem;
}

.fs-stage-carousel__badge {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: var(--fs-cyan-dim);
  color: var(--fs-cyan);
  margin-bottom: 0.5rem;
}

.fs-stage-carousel__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.fs-stage-carousel__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.fs-stage-carousel__arrow {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  border: 1px solid var(--fs-border);
  background: rgba(17, 24, 39, 0.75);
  color: var(--fs-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.fs-stage-carousel__arrow:hover {
  border-color: rgba(6, 182, 212, 0.35);
  background: rgba(17, 24, 39, 0.92);
}

.fs-stage-carousel__arrow:focus-visible {
  outline: 2px solid var(--fs-cyan);
  outline-offset: 2px;
}

.fs-stage-carousel__arrow svg {
  width: 1.1rem;
  height: 1.1rem;
}

.fs-stage-carousel__dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
}

.fs-stage-carousel__dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--fs-text-muted);
  opacity: 0.45;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.fs-stage-carousel__dot:hover,
.fs-stage-carousel__dot:focus-visible {
  opacity: 0.85;
}

.fs-stage-carousel__dot[aria-selected="true"] {
  opacity: 1;
  background: var(--fs-cyan);
  transform: scale(1.15);
}

.fs-stage-carousel__dot:focus-visible {
  outline: 2px solid var(--fs-cyan);
  outline-offset: 2px;
}

/* Gallery variant — caption as subtle overlay on media */
.fs-stage-carousel--gallery .fs-stage-carousel__overlay--gallery {
  padding: 0.65rem 1rem 0.85rem;
  background: linear-gradient(
    to top,
    rgba(10, 14, 23, 0.82) 0%,
    rgba(10, 14, 23, 0.35) 65%,
    transparent 100%
  );
}

.fs-stage-carousel--gallery .fs-stage-carousel__overlay--gallery .fs-stage-carousel__title {
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.fs-stage-carousel--gallery .fs-stage-carousel__overlay--gallery .fs-stage-carousel__body {
  font-size: 0.85rem;
  margin-bottom: 0;
}

.fs-stage-carousel--gallery .fs-stage-carousel__toolbar {
  margin-top: 0.65rem;
}

/* Testimonial — text-first, calmer */
.fs-stage-carousel--testimonial .fs-stage-carousel__viewport {
  aspect-ratio: var(--fs-stage-aspect, 21 / 9);
  min-height: 12rem;
}

.fs-stage-carousel--testimonial .fs-stage-carousel__slide-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.75rem 2rem;
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.95) 0%, rgba(10, 14, 23, 0.88) 100%);
}

.fs-stage-carousel--testimonial .fs-stage-carousel__quote {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.55;
  color: var(--fs-text);
  margin: 0 0 1.25rem;
  font-style: italic;
}

.fs-stage-carousel--testimonial .fs-stage-carousel__byline {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.fs-stage-carousel--testimonial .fs-stage-carousel__avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--fs-border);
}

.fs-stage-carousel--testimonial .fs-stage-carousel__who {
  font-size: 0.9rem;
  color: var(--fs-text);
}

.fs-stage-carousel--testimonial .fs-stage-carousel__role {
  font-size: 0.8rem;
  color: var(--fs-text-muted);
}

/* Thumb gallery */
.fs-thumb-gallery {
  width: 100%;
  max-width: var(--fs-shell-max);
  margin-left: auto;
  margin-right: auto;
}

.fs-thumb-gallery__strip {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  margin-top: 0.65rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.25rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.fs-thumb-gallery__thumb {
  flex: 0 0 auto;
  width: 4.5rem;
  height: 3rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--fs-bg-elevated);
  scroll-snap-align: start;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.65;
}

.fs-thumb-gallery__thumb:hover,
.fs-thumb-gallery__thumb:focus-visible {
  opacity: 1;
}

.fs-thumb-gallery__thumb[aria-selected="true"] {
  border-color: var(--fs-cyan);
  opacity: 1;
}

.fs-thumb-gallery__thumb:focus-visible {
  outline: 2px solid var(--fs-cyan);
  outline-offset: 2px;
}

.fs-thumb-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Horizontal rail */
.fs-rail {
  position: relative;
  width: 100%;
  max-width: var(--fs-shell-max);
  margin-left: auto;
  margin-right: auto;
}

.fs-rail__controls {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.fs-rail__arrow {
  flex-shrink: 0;
  width: 2.35rem;
  align-self: stretch;
  min-height: 5rem;
  border-radius: 10px;
  border: 1px solid var(--fs-border);
  background: rgba(17, 24, 39, 0.65);
  color: var(--fs-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.fs-rail__arrow:hover {
  border-color: rgba(6, 182, 212, 0.35);
}

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

.fs-rail__arrow svg {
  width: 1rem;
  height: 1rem;
}

.fs-rail__scroller {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.fs-rail__track {
  display: flex;
  flex-direction: row;
  gap: var(--fs-rail-gap, 0.85rem);
  padding: 0.25rem 0;
}

.fs-rail--peek .fs-rail__item {
  flex: 0 0 calc((100% - var(--fs-rail-gap, 0.85rem) * 2) / 2.35);
  max-width: 22rem;
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .fs-rail--peek .fs-rail__item {
    flex: 0 0 calc((100% - var(--fs-rail-gap, 0.85rem) * 3) / 3.35);
  }
}

.fs-rail--cards .fs-rail__item {
  min-width: 0;
}

.fs-rail--cards .fs-rail__item > a,
.fs-rail--cards .fs-rail__item > .forge-card {
  height: 100%;
}

.fs-rail--logos .fs-rail__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  min-height: 3rem;
  opacity: 0.85;
}

.fs-rail--logos .fs-rail__item img {
  max-height: 2rem;
  width: auto;
  max-width: 6rem;
  object-fit: contain;
  filter: grayscale(0.25);
}

/* Logo strip modes */
.fs-logo-strip--grid .fs-logo-strip__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
  gap: 0.75rem;
  align-items: center;
  justify-items: center;
  padding: 1rem;
  border: 1px solid var(--fs-border);
  border-radius: 12px;
  background: var(--fs-bg-elevated);
}

.fs-logo-strip--grid .fs-logo-strip__grid img {
  max-height: 2rem;
  max-width: 5.5rem;
  object-fit: contain;
  opacity: 0.8;
}

.fs-logo-strip--marquee {
  overflow: hidden;
  border: 1px solid var(--fs-border);
  border-radius: 12px;
  background: var(--fs-bg-elevated);
  padding: 0.65rem 0;
}

.fs-logo-strip--marquee .fs-logo-strip__track {
  display: flex;
  width: max-content;
  animation: fs-logo-marquee 48s linear infinite;
}

.fs-logo-strip--marquee .fs-logo-strip__segment {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2.5rem;
  padding: 0 1.25rem;
}

.fs-logo-strip--marquee .fs-logo-strip__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fs-logo-strip--marquee .fs-logo-strip__segment img {
  max-height: 1.75rem;
  max-width: 5rem;
  object-fit: contain;
  opacity: 0.75;
}

@keyframes fs-logo-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fs-logo-strip--marquee .fs-logo-strip__track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    gap: 1rem 2rem;
  }
}

/* Media lightbox */
.fs-media-lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(10, 14, 23, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.fs-media-lightbox-backdrop.fs-media-lightbox--open {
  opacity: 1;
  visibility: visible;
}

.fs-media-lightbox-dialog {
  position: relative;
  max-width: min(1100px, 100%);
  max-height: min(88vh, 100%);
  border-radius: 12px;
  border: 1px solid var(--fs-border, rgba(148, 163, 184, 0.2));
  background: var(--fs-bg-elevated, #111827);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  padding: 0.5rem;
}

.fs-media-lightbox-dialog img {
  display: block;
  max-width: 100%;
  max-height: min(82vh, 800px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.fs-media-lightbox-close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--fs-border);
  border-radius: 8px;
  background: rgba(10, 14, 23, 0.75);
  color: var(--fs-text, #e5e7eb);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fs-media-lightbox-close:focus-visible {
  outline: 2px solid var(--fs-cyan);
  outline-offset: 2px;
}

html[data-bs-theme="light"] .fs-stage-carousel__overlay {
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 100%
  );
}

html[data-bs-theme="light"] .fs-stage-carousel--testimonial .fs-stage-carousel__slide-inner {
  background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
}

html[data-bs-theme="light"] .fs-stage-carousel--gallery .fs-stage-carousel__overlay--gallery {
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(255, 255, 255, 0.4) 70%,
    transparent 100%
  );
}

/* --- Light mode (html[data-bs-theme] set by forge-theme.js) ---------- */
html[data-bs-theme="light"] {
  color-scheme: light;
  --fs-bg: #f4f7fb;
  --fs-bg-elevated: #ffffff;
  --fs-bg-sidebar: #e8eef5;
  --fs-border: rgba(15, 23, 42, 0.1);
  --fs-text: #0f172a;
  --fs-text-muted: #64748b;
  --fs-amber: #d97706;
  --fs-amber-dim: rgba(245, 158, 11, 0.2);
  --fs-cyan: #0891b2;
  --fs-cyan-dim: rgba(6, 182, 212, 0.16);
}

html[data-bs-theme="light"] .fs-offcanvas .btn-close {
  filter: none;
  opacity: 0.55;
}

html[data-bs-theme="light"] .fs-sidebar .nav-link.active {
  color: #0f172a;
}

html[data-bs-theme="light"] .fs-nav-dropdown__panel {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12);
}

html[data-bs-theme="light"] .fs-cross-refs--subtle {
  background: rgba(15, 23, 42, 0.04);
}

html[data-bs-theme="light"] .fs-topic-preview-card {
  background: linear-gradient(145deg, #fffdfb 0%, #fef3e2 40%, #f1f5f9 100%);
  border-color: rgba(217, 119, 6, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 4px rgba(15, 23, 42, 0.05),
    0 6px 24px rgba(217, 119, 6, 0.08);
  animation-name: fs-topic-preview-breathe-light;
}

html[data-bs-theme="light"] .fs-topic-preview-card:hover {
  animation: none;
  border-color: rgba(8, 145, 178, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 2px 8px rgba(15, 23, 42, 0.06),
    0 12px 36px rgba(8, 145, 178, 0.12);
}

/* -----------------------------------------------------------------
   Bootstrap forms — product shell (.fs-layout, --fs-*)
   Pairs with Bootstrap CDN; use when forge-theme.css is not loaded.
   ----------------------------------------------------------------- */
.fs-layout .forge-form-panel {
  border: 1px solid var(--fs-border);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  background: color-mix(in srgb, var(--fs-bg-elevated) 88%, var(--fs-bg));
}

.fs-layout .form-label,
.fs-layout .col-form-label {
  font-family: var(--fs-font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fs-text-muted);
}

.fs-layout .form-control,
.fs-layout .form-select {
  color: var(--fs-text);
  background-color: var(--fs-bg-elevated);
  border: 1px solid var(--fs-border);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font-size: 0.9375rem;
}

.fs-layout .form-control::placeholder {
  color: color-mix(in srgb, var(--fs-text-muted) 75%, var(--fs-bg));
}

.fs-layout .form-control:focus,
.fs-layout .form-select:focus {
  border-color: var(--fs-cyan);
  box-shadow: 0 0 0 0.2rem rgba(6, 182, 212, 0.22);
  background-color: var(--fs-bg-elevated);
  color: var(--fs-text);
}

.fs-layout .form-check-input {
  background-color: var(--fs-bg-elevated);
  border-color: var(--fs-border);
}

.fs-layout .form-check-input:checked {
  background-color: var(--fs-cyan);
  border-color: var(--fs-cyan);
}

.fs-layout .form-switch .form-check-input:checked {
  background-color: var(--fs-cyan);
  border-color: var(--fs-cyan);
}

.fs-layout .input-group-text {
  font-family: var(--fs-font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fs-text-muted);
  background: color-mix(in srgb, var(--fs-bg-elevated) 85%, var(--fs-bg));
  border-color: var(--fs-border);
  border-radius: 8px;
}

.fs-layout .invalid-feedback {
  color: #f87171;
}

.fs-layout .valid-feedback {
  color: #34d399;
}

.fs-layout .forge-dropdown-menu.dropdown-menu {
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid var(--fs-border);
  background: color-mix(in srgb, var(--fs-bg-elevated) 94%, #000) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.fs-layout .forge-dropdown-menu .dropdown-item {
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--fs-text-muted);
}

.fs-layout .forge-dropdown-menu .dropdown-item:hover,
.fs-layout .forge-dropdown-menu .dropdown-item:focus {
  background: var(--fs-cyan-dim);
  color: var(--fs-text);
}

.fs-layout .forge-widget-host {
  border-radius: 12px;
  border: 1px dashed color-mix(in srgb, var(--fs-border) 150%, transparent);
  padding: 1rem;
  background: color-mix(in srgb, var(--fs-bg-elevated) 72%, var(--fs-bg));
  min-height: 4rem;
}

html[data-bs-theme="light"] .fs-layout .forge-dropdown-menu.dropdown-menu {
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}

/* --------------------------------------------------------------------------
 * Enterprise marketing — mega footer, tabs, FAQ, listing (components/enterprise_marketing.py, listing_page)
 * -------------------------------------------------------------------------- */

.fs-mega-footer {
  border-top: 1px solid var(--fs-border);
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  background: color-mix(in srgb, var(--fs-bg-sidebar) 55%, transparent);
}

.fs-mega-footer__inner {
  max-width: var(--fs-shell-max, 90rem);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(0.65rem, 1.5vw, 1.25rem);
  padding-right: clamp(0.65rem, 1.5vw, 1.25rem);
}

.fs-mega-footer__col-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fs-text-muted);
  margin-bottom: 0.85rem;
}

.fs-mega-footer__list {
  font-size: 0.875rem;
}

.fs-mega-footer__item {
  margin-bottom: 0.4rem;
}

.fs-mega-footer__link {
  color: var(--fs-text-muted);
  text-decoration: none;
}

.fs-mega-footer__link:hover,
.fs-mega-footer__link:focus-visible {
  color: var(--fs-amber);
  text-decoration: underline;
}

.fs-mega-footer__legal {
  border-top: 1px solid var(--fs-border);
  font-size: 0.78rem;
  color: var(--fs-text-muted);
}

.fs-mega-footer__bottom {
  font-size: 0.8rem;
  color: var(--fs-text-muted);
}

.fs-tab-panel__tabs .nav-link {
  color: var(--fs-text-muted);
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid transparent;
  border-radius: 0.375rem 0.375rem 0 0;
}

.fs-tab-panel__tabs .nav-link:hover {
  color: var(--fs-text);
  border-color: var(--fs-border);
}

.fs-tab-panel__tabs .nav-link.active {
  color: var(--fs-cyan);
  background: color-mix(in srgb, var(--fs-bg-elevated) 80%, var(--fs-bg));
  border-color: var(--fs-border);
  border-bottom-color: transparent;
}

.fs-tab-panel__body {
  color: var(--fs-text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.fs-faq-section__title {
  color: var(--fs-text);
  font-family: var(--fs-font-display, var(--fs-font-sans));
}

.fs-faq-accordion .accordion-item {
  background: transparent;
  border-color: var(--fs-border);
}

.fs-faq-accordion .accordion-button {
  background: color-mix(in srgb, var(--fs-bg-elevated) 70%, var(--fs-bg));
  color: var(--fs-text);
  font-weight: 600;
  font-size: 0.9rem;
}

.fs-faq-accordion .accordion-button:not(.collapsed) {
  color: var(--fs-cyan);
  box-shadow: none;
}

.fs-faq-item__body {
  color: var(--fs-text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.fs-listing-shell__sidebar-title {
  color: var(--fs-text-muted);
  letter-spacing: 0.06em;
}

.fs-listing-shell__sidebar {
  padding: 1rem 1.1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--fs-border);
  background: color-mix(in srgb, var(--fs-bg-elevated) 65%, var(--fs-bg));
}

.fs-listing-page__sidebar-inner {
  padding: 1rem 1.1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--fs-border);
  background: color-mix(in srgb, var(--fs-bg-elevated) 65%, var(--fs-bg));
}

.fs-listing-container {
  max-width: var(--fs-shell-max, 90rem);
  margin-left: auto;
  margin-right: auto;
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}

.fs-listing-article {
  padding-bottom: 0.5rem;
}

.fs-listing-page__link {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--fs-cyan);
  text-decoration: none;
}

.fs-listing-page__link:hover,
.fs-listing-page__link:focus-visible {
  text-decoration: underline;
  color: var(--fs-amber);
}

.fs-listing-page__link--disabled {
  color: var(--fs-text-muted);
  pointer-events: none;
  opacity: 0.45;
}

.fs-listing-empty {
  border: 1px dashed var(--fs-border);
  background: color-mix(in srgb, var(--fs-bg-elevated) 50%, var(--fs-bg));
}

.fs-listing-empty__title {
  color: var(--fs-text);
}

html[data-bs-theme="light"] .fs-mega-footer {
  background: color-mix(in srgb, #f8fafc 92%, #fff);
}

html[data-bs-theme="light"] .fs-listing-shell__sidebar,
html[data-bs-theme="light"] .fs-listing-page__sidebar-inner {
  background: rgba(248, 250, 252, 0.95);
}
