/* Federis: page system for content pages, home sections and footer.
   Builds on the tokens in style.css (--color-*, --font-*). */

:root {
  --fx-width: 1400px;
  /* standard content width for the whole site */
  --fx-radius: 16px;
  --fx-card-bg: linear-gradient(135deg, rgb(var(--ink) / 0.055) 0%, rgb(var(--ink) / 0.018) 100%);
  --fx-line: rgb(var(--ink) / 0.1);
  --fx-line-strong: rgb(var(--ink) / 0.2);
  --fx-accent-soft: rgba(5, 150, 105, 0.14);
  /* Theme palette: dark is the default, html[data-theme="light"] overrides (end of file) */
  --ink: 255 255 255;
  --bg-rgb: 23 23 23;
  --fg-rgb: 240 240 248;
  --em: #34d399;
  --em-soft: #6ee7b7;
  --amber: #fbbf24;
  --amber-soft: #fde68a;
  --red: #f87171;
  --method-panel: #fff; /* the rail's panel and the ink bleed into it: white on dark, dark on light */
}

/* ---------- Page shell ---------- */
.fx-page {
  width: 100%;
  min-width: 0;
  max-width: var(--fx-width);
  margin: 0 auto;
  padding: 9rem 1.5rem 7rem;
}

.fx-hero {
  text-align: center;
  padding: 1.5rem 0 1rem;
}

.fx-eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 12px;
  color: var(--color-accent);
}

.fx-eyebrow .fx-tag {
  border: 1px solid var(--fx-line);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  color: var(--color-fg-muted);
}

.fx-h1 {
  max-width: 21ch;
  margin: 1.75rem auto 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5.2vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.fx-h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.fx-h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.fx-lede {
  max-width: 62ch;
  margin: 2rem auto 0;
  color: var(--color-fg-secondary);
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.8;
  text-wrap: pretty;
}

.fx-body {
  color: var(--color-fg-secondary);
  font-size: 14px;
  line-height: 1.8;
  max-width: 62ch;
  text-wrap: pretty;
}

.fx-body a {
  color: var(--color-fg);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
}

.fx-muted {
  color: var(--color-fg-muted);
}

.fx-accent {
  color: var(--color-accent);
}

.fx-section {
  margin-top: 7.5rem;
}

.fx-section-head {
  max-width: 760px;
}

.fx-section-head .fx-body {
  margin-top: 1.25rem;
}

.fx-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.fx-center .fx-body {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Buttons ---------- */
.fx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.fx-center .fx-actions,
.fx-hero .fx-actions {
  justify-content: center;
}

.fx-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--fx-line-strong);
  color: var(--color-fg);
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s var(--ease-out);
}

.fx-btn:hover {
  border-color: var(--color-accent);
  color: #fff;
}

/* Hover: the accent colour fills the button from the left.
   No border: the fill covers the padding box only, so a border would show the button's own colour as a ring. */
.fx-btn {
  border: 0;
  padding: calc(0.85rem + 1px) calc(1.5rem + 1px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.fx-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s var(--ease-out);
}

.fx-btn:hover::before,
.fx-btn:focus-visible::before {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .fx-btn::before {
    transition: none;
  }
}

.fx-btn:focus-visible,
.fx-link:focus-visible,
.fx-card a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.fx-btn-primary {
  background: var(--color-fg);
  color: var(--color-bg);
  border-color: var(--color-fg);
}

.fx-btn-primary:hover {
  border-color: var(--color-accent);
  color: #fff;
}

.fx-link {
  color: var(--color-fg);
  border-bottom: 1px solid var(--fx-line-strong);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.fx-link:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* ---------- Cards and grids ---------- */
.fx-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.75rem;
}

.fx-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fx-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .fx-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {

  .fx-grid-2,
  .fx-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.fx-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem;
  border: 1px solid var(--fx-line);
  border-radius: var(--fx-radius);
  background: var(--fx-card-bg);
  transition: border-color 0.3s ease, transform 0.35s var(--ease-out), box-shadow 0.3s ease;
}

.fx-card:hover {
  border-color: rgba(5, 150, 105, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 14px 34px -14px rgba(5, 150, 105, 0.22);
}

.fx-card h3,
.fx-card p {
  hyphens: none;
}

.fx-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.fx-card p {
  color: var(--color-fg-secondary);
  font-size: 13px;
  line-height: 1.75;
}

.fx-card .fx-card-link {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 13px;
  color: var(--color-accent);
}

.fx-card .fx-card-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.fx-card-lg {
  padding: 2.25rem;
  gap: 1rem;
}

.fx-card-lg h3 {
  font-size: clamp(22px, 2.2vw, 30px);
}

.fx-card-lg p {
  font-size: 14px;
}

.fx-icon {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--fx-line);
  border-radius: 999px;
  color: var(--color-accent);
}

.fx-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

/* ---------- Lists, stats, chips ---------- */
.fx-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.fx-list li {
  display: flex;
  gap: 0.85rem;
  color: var(--color-fg-secondary);
  font-size: 13px;
  line-height: 1.7;
}

.fx-list li::before {
  content: "";
  flex: none;
  width: 12px;
  height: 1px;
  margin-top: 0.85em;
  background: var(--color-accent);
}

.fx-list strong {
  color: var(--color-fg);
  font-weight: 600;
}

.fx-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 3.5rem auto 0;
  max-width: 900px;
}

.fx-stat {
  padding: 0.5rem 2.25rem;
  text-align: center;
  border-right: 1px solid var(--fx-line);
}

.fx-stat:last-child {
  border-right: 0;
}

.fx-stat dt {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.03em;
}

.fx-stat dd {
  margin-top: 0.25rem;
  font-size: 12px;
  color: var(--color-fg-muted);
}

@media (max-width: 640px) {
  .fx-stat {
    border-right: 0;
    width: 50%;
    padding: 0.75rem 0.5rem;
  }
}

.fx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.fx-chip {
  border: 1px solid var(--fx-line);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 12px;
  color: var(--color-fg-muted);
  background: rgb(var(--ink) / 0.03);
}

/* ---------- Feature rows (alternating split) ---------- */
.fx-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-top: 7rem;
}

.fx-feature:nth-of-type(even) .fx-feature-copy {
  order: 2;
}

@media (max-width: 860px) {
  .fx-feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    margin-top: 5rem;
  }

  .fx-feature:nth-of-type(even) .fx-feature-copy {
    order: 0;
  }
}

.fx-feature-copy .fx-kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 12px;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.fx-feature-copy .fx-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
}

.fx-feature-copy .fx-body {
  margin-top: 1.25rem;
}

.fx-panel {
  border: 1px solid var(--fx-line);
  border-radius: 20px;
  background: var(--fx-card-bg);
  padding: 2rem;
}

.fx-panel h4 {
  font-size: 12px;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.fx-steps {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.fx-steps li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.75rem;
  font-size: 13px;
  line-height: 1.65;
  color: var(--color-fg-secondary);
}

.fx-steps li span:first-child {
  color: var(--color-accent);
}

.fx-steps strong {
  color: var(--color-fg);
  font-weight: 600;
}

/* ---------- Layered stack figure ---------- */
.fx-figure {
  border: 1px solid var(--fx-line);
  border-radius: 24px;
  background: var(--fx-card-bg);
  padding: 2rem 1.5rem 1.5rem;
}

.fx-figure svg {
  display: block;
  width: 100%;
  height: auto;
}

.fx-figure figcaption {
  margin-top: 1rem;
  text-align: center;
  font-size: 12px;
  color: var(--color-fg-muted);
}

.fx-layer-label {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
}

/* ---------- Quadrant ---------- */
.fx-quad-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 2.75rem;
  align-items: start;
}

@media (max-width: 900px) {
  .fx-quad-wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}

.fx-quad {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--fx-line);
  border-radius: 20px;
  background: var(--fx-card-bg);
}

.fx-quad::before,
.fx-quad::after {
  content: "";
  position: absolute;
  background: var(--fx-line);
}

.fx-quad::before {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
}

.fx-quad::after {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
}

.fx-quad-label {
  position: absolute;
  font-size: 11px;
  color: var(--color-fg-muted);
}

.fx-quad-dot {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transform: translate(-4.5px, -50%);
  font-size: 11px;
  color: var(--color-fg-secondary);
  white-space: nowrap;
}

.fx-quad-dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgb(var(--fg-rgb) / 0.7);
  flex: none;
}

.fx-quad-dot.is-us {
  color: var(--color-accent);
  font-weight: 700;
  flex-direction: row-reverse;
  transform: translate(calc(-100% + 7px), -50%);
}

.fx-quad-dot.is-us::before {
  width: 14px;
  height: 14px;
  background: var(--color-accent);
  box-shadow: 0 0 0 5px var(--fx-accent-soft);
}

.fx-axis-x,
.fx-axis-y {
  position: absolute;
  font-size: 11px;
  color: var(--color-fg-muted);
}

.fx-axis-x {
  bottom: -1.75rem;
  left: 0;
  right: 0;
  text-align: center;
}

.fx-axis-y {
  left: -1.5rem;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .fx-quad-dot {
    font-size: 9px;
  }

  .fx-quad-dot::before {
    width: 7px;
    height: 7px;
  }

  .fx-axis-y {
    display: none;
  }
}

/* ---------- Matrix table ---------- */
.fx-table-wrap {
  margin-top: 2.75rem;
  overflow-x: auto;
  border: 1px solid var(--fx-line);
  border-radius: 20px;
  background: var(--fx-card-bg);
}

.fx-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  font-size: 12px;
}

.fx-table th,
.fx-table td {
  padding: 1rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid var(--fx-line);
  vertical-align: middle;
}

.fx-table thead th {
  font-weight: 600;
  color: var(--color-fg);
  background: rgb(var(--ink) / 0.04);
}

.fx-table tbody th {
  font-weight: 600;
  color: var(--color-fg);
  width: 12%;
}

.fx-table tbody tr:last-child th,
.fx-table tbody tr:last-child td {
  border-bottom: 0;
}

.fx-table .is-us {
  background: var(--fx-accent-soft);
}

.fx-table thead .is-us {
  color: var(--color-accent);
}

.fx-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.fx-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.fx-status.yes {
  color: var(--em);
}

.fx-status.yes::before {
  background: var(--em);
}

.fx-status.partial {
  color: var(--amber);
}

.fx-status.partial::before {
  background: var(--amber);
}

.fx-status.no {
  color: var(--red);
}

.fx-status.no::before {
  background: var(--red);
}

.fx-note {
  margin-top: 1rem;
  font-size: 12px;
  color: var(--color-fg-muted);
  max-width: 76ch;
  line-height: 1.7;
}

/* ---------- Studio canvas figure ---------- */
.fx-canvas-fig {
  border: 1px solid var(--fx-line);
  border-radius: 24px;
  background: var(--fx-card-bg);
  padding: 1.5rem;
  overflow: hidden;
}

.fx-canvas-fig svg {
  display: block;
  width: 100%;
  height: auto;
}

.fx-flow {
  stroke-dasharray: 5 7;
  animation: fx-flow 1.6s linear infinite;
}

@keyframes fx-flow {
  to {
    stroke-dashoffset: -24;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fx-flow {
    animation: none;
  }
}

/* ---------- FAQ ---------- */
.fx-faq {
  margin-top: 2.5rem;
  border-top: 1px solid var(--fx-line);
}

.fx-faq details {
  border-bottom: 1px solid var(--fx-line);
}

.fx-faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.fx-faq summary::-webkit-details-marker {
  display: none;
}

.fx-faq summary::after {
  content: "+";
  color: var(--color-accent);
  font-size: 22px;
  line-height: 1;
  transition: transform 0.3s var(--ease-out);
}

.fx-faq details[open] summary::after {
  transform: rotate(45deg);
}

.fx-faq details p {
  padding: 0 0 1.5rem;
  max-width: 70ch;
}

/* ---------- Closing call to action ---------- */
.fx-cta {
  margin-top: 8rem;
  text-align: center;
  border: 1px solid var(--fx-line);
  border-radius: 28px;
  padding: clamp(2.5rem, 6vw, 5rem) 1.5rem;
  background: var(--fx-card-bg);
}

.fx-cta .fx-body {
  margin: 1.25rem auto 0;
}

/* ---------- Contact ---------- */
.fx-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 3rem;
  margin-top: 4rem;
  align-items: start;
}

@media (max-width: 860px) {
  .fx-contact {
    grid-template-columns: minmax(0, 1fr);
  }
}

.fx-channel {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--fx-line);
  border-radius: 14px;
  background: var(--fx-card-bg);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.fx-channel+.fx-channel {
  margin-top: 0.85rem;
}

.fx-channel:hover {
  border-color: rgba(5, 150, 105, 0.5);
  background-color: var(--fx-accent-soft);
}

.fx-channel strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
}

.fx-channel span.fx-muted {
  font-size: 12px;
}

.fx-form {
  display: grid;
  gap: 1.1rem;
  border: 1px solid var(--fx-line);
  border-radius: 20px;
  background: var(--fx-card-bg);
  padding: 2rem;
}

.fx-field {
  display: grid;
  gap: 0.5rem;
  font-size: 12px;
  color: var(--color-fg-muted);
}

.fx-field input,
.fx-field textarea {
  width: 100%;
  border: 1px solid var(--fx-line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.85rem 1rem;
  color: var(--color-fg);
  font: inherit;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.fx-field textarea {
  min-height: 9rem;
  resize: vertical;
}

.fx-field input:focus,
.fx-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.fx-form-note {
  font-size: 12px;
  color: var(--color-fg-muted);
  line-height: 1.7;
}

/* ---------- Prose (privacy, terms) ---------- */
.fx-prose {
  max-width: 72ch;
  margin: 4rem auto 0;
}

.fx-prose h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 3rem 0 0.9rem;
}

.fx-prose p,
.fx-prose li {
  color: var(--color-fg-secondary);
  font-size: 14px;
  line-height: 1.85;
}

.fx-prose p+p {
  margin-top: 1rem;
}

.fx-prose ul {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fx-prose a {
  color: var(--color-fg);
  border-bottom: 1px solid var(--fx-line-strong);
}

/* ---------- Home: platform section ---------- */
.fx-platform {
  position: relative;
  z-index: 5;
  padding: 8rem 1.5rem 6rem;
}

.fx-platform-inner {
  max-width: var(--fx-width);
  margin: 0 auto;
}

.fx-platform-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
  margin-top: 4.5rem;
}

@media (max-width: 900px) {
  .fx-platform-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }
}

/* ---------- Home: closing call to action ---------- */
.fx-home-cta {
  position: relative;
  z-index: 10;
  padding: 7rem 1.5rem 6rem;
  text-align: center;
}

.fx-home-cta h2 {
  max-width: 16ch;
  margin: 0 auto;
}

.fx-home-cta .fx-body {
  margin: 1.5rem auto 0;
}

/* ---------- Footer ---------- */
.fx-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgb(var(--ink) / 0.06);
}

.fx-footer canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.fx-footer-inner {
  position: relative;
  z-index: 10;
}

.fx-footer-wrap {
  max-width: var(--fx-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.fx-footer-contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 4rem;
}

@media (max-width: 700px) {
  .fx-footer-contacts {
    grid-template-columns: minmax(0, 1fr);
  }
}

.fx-footer-phrase {
  padding: 7rem 0 6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 6.4vw, 96px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  max-width: 24ch;
  text-wrap: balance;
}

.fx-footer-phrase em {
  font-style: normal;
  color: var(--color-accent);
}

.fx-footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding: 4rem 0;
  border-top: 1px solid rgb(var(--ink) / 0.06);
}

@media (max-width: 760px) {
  .fx-footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .fx-footer-cols {
    grid-template-columns: minmax(0, 1fr);
  }
}

.fx-footer-cols h3 {
  font-size: 12px;
  color: var(--color-fg-muted);
  font-weight: 500;
  margin-bottom: 1.1rem;
}

.fx-footer-cols ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fx-footer-cols a {
  font-size: 13px;
  color: var(--color-fg-secondary);
  transition: color 0.2s ease;
}

.fx-footer-cols a:hover {
  color: var(--color-accent);
}

.fx-footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem 0 5.5rem;
  border-top: 1px solid rgb(var(--ink) / 0.06);
  font-size: 12px;
  color: var(--color-fg-muted);
}

.fx-footer-legal nav {
  display: flex;
  gap: 1.5rem;
}

.fx-footer-legal a:hover {
  color: var(--color-fg);
}

/* ---------- Hero badge row (home) ---------- */
.fx-hero-pill {
  position: relative;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.1rem;
  border-radius: 8px;
  background: var(--color-bg);
  padding: 0.9rem 1.5rem;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-fg);
}

.fx-hero-pill i {
  font-style: normal;
  color: rgb(var(--fg-rgb) / 0.25);
}

@media (max-width: 640px) {
  .fx-hero-pill i {
    display: none;
  }

  .fx-hero-pill {
    font-size: 11px;
  }
}

/* ---------- Header: floating capsule nav (glass look comes from the fluid glass block below) ---------- */
#site-header {
  top: 14px;
  padding: 0 1rem;
  pointer-events: none;
}

#site-header>div {
  pointer-events: auto;
  max-width: var(--fx-width);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 28px;
}

#site-header nav {
  height: 52px;
  padding: 0 0.6rem 0 1.25rem;
}

@media (min-width: 768px) {
  #site-header>div {
    border-radius: 999px;
  }
}

/* Comparison matrix fits the container on wide screens; scrolls sideways on narrow ones */
@media (min-width: 1000px) {
  .fx-table {
    table-layout: fixed;
    min-width: 0;
  }

  .fx-table {
    font-size: 11.5px;
  }

  .fx-table tbody th,
  .fx-table thead th:first-child {
    width: 13%;
  }
}

.fx-contact>div:first-child {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.fx-contact>div:first-child>div {
  margin: 0;
}

@media (max-width: 700px) {
  .fx-canvas-fig {
    overflow-x: auto;
  }

  .fx-canvas-fig svg {
    min-width: 640px;
  }
}


/* =====================================================================
   Fluid glass
   Frosted base look for every glass surface and (Chromium) real refraction of whatever sits behind,
   driven by a displacement map that script.js builds per element.
   Keep the selector list in sync with GLASS_SELECTOR in script.js.
   ===================================================================== */
.fx-card,
.fx-panel,
.fx-figure,
.fx-canvas-fig,
.fx-table-wrap,
.fx-channel,
.fx-form,
.fx-cta,
.fx-btn:not(.fx-btn-primary),
#site-header>div {
  position: relative;
  isolation: isolate;
  background: linear-gradient(135deg, rgb(var(--ink) / 0.11) 0%, rgb(var(--ink) / 0.035) 55%, rgb(var(--ink) / 0.07) 100%);
  border-color: transparent;
  -webkit-backdrop-filter: blur(16px) saturate(165%) brightness(1.06);
  backdrop-filter: blur(16px) saturate(165%) brightness(1.06);
  box-shadow: inset 0 0 32px rgb(var(--ink) / 0.03), 0 18px 44px -20px rgba(0, 0, 0, 0.65);
}

#site-header>div {
  background-color: rgb(var(--bg-rgb) / 0.34);
  background-image: linear-gradient(135deg, rgb(var(--ink) / 0.05), rgb(var(--ink) / 0.012) 55%, rgb(var(--ink) / 0.035));
  background-blend-mode: normal;
  -webkit-backdrop-filter: blur(16px) saturate(160%) brightness(0.8);
  backdrop-filter: blur(16px) saturate(160%) brightness(0.8);
  border: 0 !important;
  box-shadow: inset 0 0 34px rgb(var(--ink) / 0.035), 0 14px 44px -14px rgba(0, 0, 0, 0.7) !important;
}

.fx-quad {
  background: linear-gradient(135deg, rgb(var(--ink) / 0.09), rgb(var(--ink) / 0.025));
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 18px 44px -20px rgba(0, 0, 0, 0.65);
}

.fx-chip {
  background: rgb(var(--ink) / 0.07);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* Real refraction (React Bits GlassSurface technique): clear glass, no frost or blur,
   only while a surface is on screen and the browser can do it */
@supports (backdrop-filter: url(#a) blur(1px)) {
  .is-refracting {
    background: linear-gradient(135deg, rgb(var(--ink) / 0.05), rgb(var(--ink) / 0.012) 55%, rgb(var(--ink) / 0.035));
    -webkit-backdrop-filter: var(--fx-refract) saturate(1.6) brightness(1.1);
    backdrop-filter: var(--fx-refract) saturate(1.6) brightness(1.1);
  }

  #site-header>div.is-refracting {
    background-color: rgb(var(--bg-rgb) / 0.26);
    -webkit-backdrop-filter: var(--fx-refract) blur(6px) saturate(1.5) brightness(0.85);
    backdrop-filter: var(--fx-refract) blur(6px) saturate(1.5) brightness(0.85);
  }
}



/* Borderless surfaces: shape comes from fill and shadow, not outlines */
.fx-card,
.fx-card:hover,
.fx-panel,
.fx-figure,
.fx-canvas-fig,
.fx-table-wrap,
.fx-channel,
.fx-channel:hover,
.fx-form,
.fx-cta,
.fx-quad,
.fx-chip,
.fx-eyebrow .fx-tag,
.fx-btn,
.fx-btn:hover,
.fx-btn-primary,
.fx-hero-pill {
  border-color: transparent;
}

.fx-field input,
.fx-field textarea {
  border-color: transparent;
  background: rgba(0, 0, 0, 0.32);
}

.fx-field input:focus,
.fx-field textarea:focus {
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.7);
}

.fx-icon {
  border-color: transparent;
  background: rgb(var(--ink) / 0.07);
}

.fx-eyebrow .fx-tag {
  background: rgb(var(--ink) / 0.07);
}

.fx-card:hover {
  background-color: rgb(var(--ink) / 0.04);
}



/* =====================================================================
   Page polish: type scale, centred section heads, nav, footer
   ===================================================================== */

/* Type scale: one h1, one h2, one card title, one body size */
.fx-page {
  padding-top: 10.5rem;
}

.fx-hero {
  padding: 0.5rem 0 0;
}

.fx-h1 {
  max-width: 20ch;
  font-size: clamp(34px, 4.8vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-top: 1.5rem;
}

.fx-h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.fx-lede {
  max-width: 60ch;
  margin-top: 1.5rem;
  font-size: clamp(14px, 1.1vw, 16px);
}

.fx-section {
  margin-top: clamp(5rem, 9vw, 8rem);
}

.fx-feature {
  margin-top: clamp(4.5rem, 8vw, 7rem);
  gap: clamp(2rem, 5vw, 4.5rem);
}

.fx-feature-copy .fx-h2 {
  font-size: clamp(26px, 2.8vw, 36px);
}

.fx-grid {
  margin-top: 2.5rem;
}

.fx-cta {
  margin-top: clamp(5rem, 9vw, 8rem);
}

.fx-cta .fx-h2 {
  font-size: clamp(26px, 3.2vw, 40px);
}

/* Section heads are centred under the centred page title */
.fx-section-head {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.fx-section-head .fx-body {
  margin-left: auto;
  margin-right: auto;
}

.fx-section-head .fx-accent {
  display: block;
}

.fx-text-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.fx-text-pair .fx-body {
  max-width: none;
}

@media (max-width: 760px) {
  .fx-text-pair {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }
}

.fx-platform-split,
.fx-feature {
  align-items: center;
}

.fx-platform {
  padding-top: clamp(5rem, 9vw, 8rem);
}

.fx-footer-phrase {
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding: 6rem 0 5rem;
  font-size: clamp(32px, 5.2vw, 76px);
}

/* Navbar: taller capsule, brand symbol, gooey pill */
#site-header {
  top: 16px;
}

#site-header nav {
  height: 68px;
  padding: 0 0.75rem 0 1.25rem;
}

.gn-brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.gn-list {
  position: relative;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gn-item {
  position: relative;
  z-index: 2;
  list-style: none;
}

.gn-item > a,
.gn-item > .gn-trigger {
  position: relative;
  z-index: 2;
  display: block;
  padding: 0.8rem 1.1rem;
  font-size: 11.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgb(var(--fg-rgb) / 0.6);
  transition: color 0.3s ease;
}

.gn-item.is-active > a,
.gn-item.is-active > .gn-trigger {
  color: var(--color-fg);
}

.gn-item.is-target > a,
.gn-item.is-target > .gn-trigger {
  color: var(--color-bg);
  font-weight: 600;
}

.gn-item > a:focus-visible,
.gn-item > .gn-trigger:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
  border-radius: 999px;
}

.gn-effect {
  position: absolute;
  z-index: 1;
  display: block;
  list-style: none;
  pointer-events: none;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  transition: left 0.5s cubic-bezier(0.34, 1.45, 0.64, 1), top 0.5s ease, width 0.5s cubic-bezier(0.34, 1.45, 0.64, 1), height 0.5s ease;
}

.gn-filter {
  filter: url(#gn-goo);
}

.gn-filter::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--color-fg);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s ease, transform 0.4s cubic-bezier(0.34, 1.45, 0.64, 1);
}

.gn-filter.is-on::after {
  opacity: 1;
  transform: scale(1);
}

.gn-particle {
  position: absolute;
  left: calc(50% - 7px);
  top: calc(50% - 7px);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color, #f0f0f8);
  opacity: 0;
  animation: gn-burst var(--time, 600ms) ease-out both;
}

@keyframes gn-burst {
  0% {
    transform: translate(0, 0) scale(0);
    opacity: 1;
  }

  35% {
    transform: translate(calc(var(--dx) * 0.7), calc(var(--dy) * 0.7)) scale(var(--scale, 1));
    opacity: 1;
  }

  100% {
    transform: translate(var(--dx), var(--dy)) scale(0);
    opacity: 0;
  }
}

/* Footer: no divider lines, flat contact cards */
.fx-footer {
  border-top: 0;
}

.fx-footer-cols,
.fx-footer-legal {
  border-top: 0;
}

.fx-footer .fx-channel {
  background: rgb(var(--ink) / 0.05);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.fx-footer .fx-channel:hover {
  background: rgb(var(--ink) / 0.08);
}

/* Reading widths for text-led blocks */
.fx-text-pair {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

.fx-faq {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.fx-quad-wrap {
  align-items: center;
}

/* Quadrant: landscape so it does not tower over the page */
.fx-quad {
  aspect-ratio: 5 / 4;
}

.fx-quad-wrap {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
}


/* Home: the method section is pulled up under the hero so the white panel (and the "Five phases" title)
   arrive without a long empty stretch. The hero gets the page's dotted background back, so nothing white
   shows through its transparent areas until the ink wipe covers them. */
.fx-hero-wrap {
  z-index: 2;
  background-color: var(--color-bg);
  background-image: radial-gradient(rgb(var(--ink) / 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  background-attachment: fixed;
}

.fx-method-wrap {
  z-index: 1;
  margin-top: -26vh;
}


/* Gooey nav pill: a plain pill (always painted) under the goo layer, so the pill never depends on the filter */
.gn-pill {
  background: var(--color-fg);
  border-radius: 999px;
  opacity: 0;
  transition: left 0.5s cubic-bezier(0.34, 1.45, 0.64, 1), top 0.5s ease, width 0.5s cubic-bezier(0.34, 1.45, 0.64, 1), height 0.5s ease, opacity 0.25s ease, background-color 0.3s ease;
}

.gn-pill.is-on {
  opacity: 1;
}

.gn-filter::after {
  transition: opacity 0.25s ease, transform 0.4s cubic-bezier(0.34, 1.45, 0.64, 1), background-color 0.3s ease;
}

/* White glass nav, used while the white method panel is behind it */
#site-header>div {
  transition: background-color 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
}

#site-header.nav-light>div {
  background-color: rgb(var(--ink) / 0.42);
  -webkit-backdrop-filter: blur(18px) saturate(170%) brightness(1.04);
  backdrop-filter: blur(18px) saturate(170%) brightness(1.04);
  box-shadow: inset 0 0 34px rgb(var(--ink) / 0.4), 0 14px 44px -14px rgb(var(--bg-rgb) / 0.22) !important;
}

#site-header.nav-light .gn-brand span {
  color: #171717;
}

#site-header.nav-light .gn-brand span .text-accent {
  color: #059669;
}

#site-header.nav-light .gn-item > a,
#site-header.nav-light .gn-item > .gn-trigger {
  color: rgb(var(--bg-rgb) / 0.58);
}

#site-header.nav-light .gn-item.is-active > a,
#site-header.nav-light .gn-item.is-active > .gn-trigger {
  color: #171717;
}

#site-header.nav-light .gn-item.is-target > a,
#site-header.nav-light .gn-item.is-target > .gn-trigger {
  color: #f0f0f8;
}

#site-header.nav-light .gn-pill,
#site-header.nav-light .gn-filter::after {
  background: #171717;
}

.gn-item > a,
.gn-item > .gn-trigger,
.gn-brand span {
  transition: color 0.3s ease, background-color 0.3s ease;
}


/* Navbar refraction (GlassSurface technique) is paused while the method rail animates: refracting
   content that is moving every frame is what costs frames, so the nav falls back to plain frosting */
@supports (backdrop-filter: url(#a) blur(1px)) {
  #site-header.nav-light>div.is-refracting {
    background-color: rgb(var(--ink) / 0.24);
    -webkit-backdrop-filter: var(--fx-refract) blur(4px) saturate(1.5) brightness(1.04);
    backdrop-filter: var(--fx-refract) blur(4px) saturate(1.5) brightness(1.04);
  }

  .rail-busy #site-header>div.is-refracting {
    -webkit-backdrop-filter: blur(16px) saturate(160%) brightness(0.8);
    backdrop-filter: blur(16px) saturate(160%) brightness(0.8);
  }

  .rail-busy #site-header.nav-light>div.is-refracting {
    background-color: rgb(var(--ink) / 0.42);
    -webkit-backdrop-filter: blur(18px) saturate(170%) brightness(1.04);
    backdrop-filter: blur(18px) saturate(170%) brightness(1.04);
  }
}


/* Value proposition: selected layer card */
.fx-card.is-selected {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.2), rgba(5, 150, 105, 0.07));
}

.svg-layer-group .label-box,
.svg-layer-group .connector-line {
  vector-effect: non-scaling-stroke;
}

/* =====================================================================
   Editorial system (replaces the card grids): open layouts built from type,
   numerals, rules and whitespace. Glass is kept for a few focal surfaces only.
   ===================================================================== */

/* Indexed rows: numeral | title | text */
.fx-rows {
  margin-top: 3rem;
}

.fx-row {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 1.5rem 2.5rem;
  align-items: baseline;
  padding: 2rem 0;
}

.fx-row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgb(var(--ink) / 0.14), rgb(var(--ink) / 0.03));
}

.fx-row:first-child::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgb(var(--ink) / 0.14), rgb(var(--ink) / 0.03));
}

.fx-row-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: var(--color-accent);
  letter-spacing: 0.04em;
}

.fx-row h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  transition: color 0.3s ease, transform 0.45s var(--ease-out);
}

.fx-row p {
  color: var(--color-fg-secondary);
  font-size: 14px;
  line-height: 1.8;
  max-width: 58ch;
}

.fx-row:hover h3 {
  color: var(--color-accent);
  transform: translateX(6px);
}

.fx-row-tag {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 12px;
  color: var(--color-fg-muted);
}

@media (max-width: 760px) {
  .fx-row {
    grid-template-columns: 2.5rem minmax(0, 1fr);
  }

  .fx-row p {
    grid-column: 2;
  }
}

/* Two-column layout with a sticky lead column */
.fx-sticky {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.fx-sticky-lead {
  position: sticky;
  top: 8.5rem;
}

.fx-sticky-lead .fx-body {
  margin-top: 1.25rem;
}

.fx-bigmark {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(72px, 11vw, 160px);
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgb(var(--ink) / 0.22);
  margin-bottom: 1.25rem;
}

@media (max-width: 860px) {
  .fx-sticky {
    grid-template-columns: minmax(0, 1fr);
  }

  .fx-sticky-lead {
    position: static;
  }
}

.fx-sticky .fx-rows {
  margin-top: 0;
}

/* Large typographic statements */
.fx-statement {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 52px);
  line-height: 1.16;
  letter-spacing: -0.035em;
  max-width: 34ch;
  text-wrap: balance;
}

.fx-statement em {
  font-style: normal;
  color: var(--color-accent);
}

.fx-statement .fx-dim {
  color: var(--color-fg-muted);
}

/* Open columns of text, no boxes */
.fx-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  margin-top: 3rem;
}

.fx-cols>div {
  position: relative;
  padding-top: 1.5rem;
}

.fx-cols>div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2px;
  background: var(--color-accent);
}

.fx-cols h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.fx-cols p {
  margin-top: 0.75rem;
  color: var(--color-fg-secondary);
  font-size: 14px;
  line-height: 1.8;
}

.fx-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 860px) {

  .fx-cols,
  .fx-cols-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Definition rows: label | content */
.fx-defs {
  margin-top: 3rem;
}

.fx-def {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 1.55fr);
  gap: 1rem 3rem;
  padding: 1.9rem 0;
}

.fx-def::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgb(var(--ink) / 0.14), rgb(var(--ink) / 0.03));
}

.fx-def dt {
  font-size: 12px;
  color: var(--color-accent);
  line-height: 1.7;
}

.fx-def dd h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.fx-def dd p {
  margin-top: 0.6rem;
  color: var(--color-fg-secondary);
  font-size: 14px;
  line-height: 1.8;
  max-width: 64ch;
}

@media (max-width: 760px) {
  .fx-def {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }
}

/* Big-number figures */
.fx-figures {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 5rem;
  margin-top: 3rem;
}

.fx-figures dt {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.fx-figures dd {
  margin-top: 0.75rem;
  max-width: 32ch;
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-fg-muted);
}

.fx-figures .fx-accent {
  color: var(--color-accent);
}

/* Horizontal steps joined by a line */
.fx-steps-h {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: 3.5rem;
  counter-reset: stp;
}

.fx-steps-h::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 7px;
  height: 1px;
  background: linear-gradient(90deg, var(--color-accent), rgb(var(--ink) / 0.08));
}

.fx-steps-h>li {
  position: relative;
  padding-top: 2.25rem;
  list-style: none;
}

.fx-steps-h>li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 6px rgba(5, 150, 105, 0.18);
}

.fx-steps-h h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.fx-steps-h p {
  margin-top: 0.7rem;
  color: var(--color-fg-secondary);
  font-size: 14px;
  line-height: 1.8;
}

@media (max-width: 860px) {
  .fx-steps-h {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .fx-steps-h::before {
    left: 7px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 1px;
    height: auto;
  }

  .fx-steps-h>li {
    padding: 0 0 0 2.5rem;
  }
}

/* Open diagram (no frame) */
.fx-diagram {
  width: 100%;
}

.fx-diagram svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.fx-diagram .d-line {
  stroke: rgb(var(--fg-rgb) / 0.32);
  fill: none;
  stroke-width: 1.2;
}

.fx-diagram .d-box {
  fill: rgb(var(--ink) / 0.06);
  stroke: rgb(var(--fg-rgb) / 0.22);
  stroke-width: 1;
}

.fx-diagram .d-on {
  stroke: var(--em);
  fill: none;
  stroke-width: 1.6;
}

.fx-diagram .d-fill {
  fill: rgba(5, 150, 105, 0.22);
  stroke: var(--em);
  stroke-width: 1.2;
}

.fx-diagram .d-bad {
  stroke: var(--red);
  fill: none;
  stroke-width: 1.4;
}

.fx-diagram text {
  font-family: var(--font-jetbrains-mono), monospace;
  font-size: 11px;
  fill: rgb(var(--fg-rgb) / 0.78);
}

.fx-diagram .d-dim {
  fill: rgb(var(--fg-rgb) / 0.42);
  font-size: 10px;
}

.fx-diagram .d-acc {
  fill: var(--em);
}

.fx-diagram .d-red {
  fill: var(--red);
}

.fx-diagram .d-pulse {
  animation: d-pulse 2.4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes d-pulse {

  0%,
  100% {
    opacity: 0.55;
  }

  50% {
    opacity: 1;
  }
}

@keyframes d-travel {
  to {
    stroke-dashoffset: -28;
  }
}

.fx-diagram .d-flow {
  stroke-dasharray: 5 9;
  animation: d-travel 1.4s linear infinite;
}

@keyframes d-slide {
  0% {
    transform: translateX(0);
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  100% {
    transform: translateX(120px);
    opacity: 0;
  }
}

.fx-diagram .d-pkt {
  animation: d-slide 3s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {

  .fx-diagram .d-flow,
  .fx-diagram .d-pkt,
  .fx-diagram .d-pulse {
    animation: none;
  }
}

/* Feature sections */
.fx-feat {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding: clamp(3rem, 6vw, 5.5rem) 0;
}

.fx-feat:nth-of-type(even) .fx-feat-copy {
  order: 2;
}

.fx-feat-copy .fx-bigmark {
  margin-bottom: 1rem;
}

.fx-feat-copy .fx-h2 {
  font-size: clamp(26px, 3vw, 40px);
}

.fx-feat-copy .fx-body {
  margin-top: 1.25rem;
}

.fx-feat-steps {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.9rem;
}

.fx-feat-steps li {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: 0.6rem;
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-fg-secondary);
  list-style: none;
}

.fx-feat-steps li>span:first-child {
  color: var(--color-accent);
  font-weight: 700;
}

.fx-feat-steps strong {
  color: var(--color-fg);
  font-weight: 600;
}

@media (max-width: 860px) {
  .fx-feat {
    grid-template-columns: minmax(0, 1fr);
  }

  .fx-feat:nth-of-type(even) .fx-feat-copy {
    order: 0;
  }
}


/* Open editions table (no frame) */
.fx-open-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 3rem;
  font-size: 13px;
}

.fx-open-table th,
.fx-open-table td {
  text-align: left;
  padding: 1.25rem 1.25rem 1.25rem 0;
  vertical-align: top;
  line-height: 1.7;
  background-image: linear-gradient(90deg, rgb(var(--ink) / 0.12), rgb(var(--ink) / 0.03));
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: bottom;
}

.fx-open-table thead th {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--color-fg);
  padding-bottom: 1rem;
}

.fx-open-table thead th.is-us {
  color: var(--color-accent);
}

.fx-open-table tbody th {
  font-weight: 500;
  color: var(--color-fg-muted);
  width: 24%;
}

.fx-open-table td {
  color: var(--color-fg-secondary);
}

.fx-open-table td.is-us {
  color: var(--color-fg);
}

@media (max-width: 760px) {
  .fx-open-table {
    display: block;
    overflow-x: auto;
  }
}

/* Plain form: underlined fields, no boxes */
.fx-form-open {
  display: grid;
  gap: 1.6rem;
}

.fx-form-open .fx-field input,
.fx-form-open .fx-field textarea {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0.6rem 0 0.8rem;
  font-size: 17px;
  background-image: linear-gradient(90deg, rgb(var(--ink) / 0.28), rgb(var(--ink) / 0.1));
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: bottom;
  transition: background-size 0.3s ease;
}

.fx-form-open .fx-field input:focus,
.fx-form-open .fx-field textarea:focus {
  box-shadow: none;
  background-image: linear-gradient(90deg, var(--em), #059669);
  background-size: 100% 2px;
}

.fx-form-open .fx-field textarea {
  min-height: 7rem;
}

.fx-btn:disabled,
.fx-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.fx-form-status {
  padding: 0.85rem 1.1rem;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  transition: opacity 0.2s ease;
}

.fx-form-status.is-success {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid var(--em);
  color: var(--em);
}

.fx-form-status.is-error {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid var(--red);
  color: var(--red);
}

html[data-theme="light"] .fx-form-status.is-success {
  background: rgba(4, 120, 87, 0.08);
}

html[data-theme="light"] .fx-form-status.is-error {
  background: rgba(220, 38, 38, 0.08);
}

/* Large link list */
.fx-linklist {
  display: grid;
}

.fx-linklist a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 34px);
  letter-spacing: -0.03em;
  position: relative;
  transition: color 0.3s ease, padding-left 0.4s var(--ease-out);
}

.fx-linklist a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgb(var(--ink) / 0.14), rgb(var(--ink) / 0.03));
}

.fx-linklist a small {
  font-family: var(--font-jetbrains-mono), monospace;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0;
  color: var(--color-fg-muted);
}

.fx-linklist a:hover {
  color: var(--color-accent);
  padding-left: 0.75rem;
}

/* Layer list beside the blueprint */
.fx-layers {
  display: grid;
}

.fx-layer {
  position: relative;
  padding: 1.35rem 1.1rem 1.35rem 1.4rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-radius: 12px;
}

.fx-layer::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.2rem;
  bottom: 1.2rem;
  width: 2px;
  background: rgb(var(--ink) / 0.14);
  border-radius: 2px;
  transition: background-color 0.3s ease;
}

.fx-layer.is-selected {
  background: linear-gradient(90deg, rgba(5, 150, 105, 0.14), rgba(5, 150, 105, 0));
}

.fx-layer.is-selected::before {
  background: var(--color-accent);
}

.fx-layer p {
  margin-top: 0.45rem;
  color: var(--color-fg-secondary);
  font-size: 13px;
  line-height: 1.7;
}

/* Two products, side by side with a rule between */
.fx-twin {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  margin-top: 4rem;
}

.fx-twin>article {
  padding: 0 clamp(1.5rem, 4vw, 4rem) 0 0;
}

.fx-twin>article+article {
  padding: 0 0 0 clamp(1.5rem, 4vw, 4rem);
  position: relative;
}

.fx-twin>article+article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgb(var(--ink) / 0.2), rgb(var(--ink) / 0));
}

.fx-twin h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 54px);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-top: 1rem;
}

.fx-twin p {
  margin-top: 1.25rem;
  color: var(--color-fg-secondary);
  font-size: 14px;
  line-height: 1.85;
  max-width: 52ch;
}

@media (max-width: 860px) {
  .fx-twin {
    grid-template-columns: minmax(0, 1fr);
    gap: 3.5rem;
  }

  .fx-twin>article,
  .fx-twin>article+article {
    padding: 0;
  }

  .fx-twin>article+article::before {
    display: none;
  }
}

/* Section rhythm */
.fx-band {
  margin-top: clamp(5rem, 9vw, 9rem);
}

.fx-center-block {
  text-align: center;
}

.fx-center-block .fx-statement {
  margin-left: auto;
  margin-right: auto;
}

.fx-sticky .fx-row {
  grid-template-columns: 2.75rem minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: 1rem 1.75rem;
}

@media (max-width: 1100px) {
  .fx-sticky .fx-row {
    grid-template-columns: 2.75rem minmax(0, 1fr);
  }

  .fx-sticky .fx-row p {
    grid-column: 2;
  }
}

.fx-table-wrap.fx-bare {
  background: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-radius: 0;
}

.fx-table-wrap.fx-bare .fx-table thead th {
  background: transparent;
}

.fx-contact {
  margin-top: 5rem;
}

.fx-footer .fx-footer-contacts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.fx-platform-inner {
  padding: 0 20px;
}

.fx-diagram figcaption {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 12px;
  color: var(--color-fg-muted);
}


/* Wider page titles and descriptions */
.fx-h1 {
  max-width: 30ch;
}

.fx-lede {
  max-width: 80ch;
}

.fx-section-head {
  max-width: 900px;
}

.fx-section-head .fx-body {
  max-width: 74ch;
}

/* Closing banner: brand-colour gradient, left-aligned copy, action on the right */
.fx-cta,
.fx-cta:hover {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem 4rem;
  align-items: end;
  margin-top: clamp(5rem, 9vw, 8rem);
  padding: clamp(2.25rem, 5vw, 4.25rem) clamp(1.75rem, 5vw, 4.5rem);
  border-radius: 32px;
  border: 0;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(110, 231, 183, 0.34), transparent 60%),
    radial-gradient(50% 90% at 0% 100%, rgba(15, 118, 110, 0.55), transparent 65%),
    linear-gradient(135deg, #064e3b 0%, #047857 48%, #0f766e 100%);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 30px 80px -30px rgba(5, 150, 105, 0.55), inset 0 1px 0 rgb(var(--ink) / 0.16);
  color: #fff;
}

.fx-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  background-image: linear-gradient(rgb(var(--ink) / 0.06) 1px, transparent 1px), linear-gradient(90deg, rgb(var(--ink) / 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(70% 90% at 80% 0%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 90% at 80% 0%, #000, transparent 75%);
  pointer-events: none;
  transition: none;
}

.fx-cta-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  max-width: 20ch;
  text-wrap: balance;
}

.fx-cta-hl {
  background: linear-gradient(100deg, var(--amber-soft) 0%, var(--amber) 55%, #fb923c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fx-cta-desc {
  margin-top: 1.6rem;
  max-width: 52ch;
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.75;
  color: rgb(var(--ink) / 0.84);
}

.fx-cta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  margin-top: 1.9rem;
}

.fx-cta-pills li {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 13px;
  color: rgb(var(--ink) / 0.9);
  list-style: none;
}

.fx-pill-ic {
  display: inline-flex;
  width: 2.1rem;
  height: 2.1rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgb(var(--ink) / 0.16);
}

.fx-pill-ic svg {
  width: 1rem;
  height: 1rem;
}

.fx-cta-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.25rem;
}

.fx-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.05rem 2.1rem;
  border-radius: 999px;
  background: #fff;
  color: #0b1f17;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  box-shadow: 0 0 0 7px rgb(var(--ink) / 0.2), 0 18px 40px -14px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}

.fx-cta-btn svg {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 0.35s var(--ease-out);
}

.fx-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 10px rgb(var(--ink) / 0.24), 0 24px 50px -14px rgba(0, 0, 0, 0.55);
}

.fx-cta-btn:hover svg {
  transform: translateX(5px);
}

.fx-cta-btn:focus-visible {
  outline: 3px solid var(--amber-soft);
  outline-offset: 5px;
}

.fx-cta-note {
  font-size: 12.5px;
  color: rgb(var(--ink) / 0.78);
  text-align: center;
}

.fx-cta-note a {
  color: #fff;
  border-bottom: 1px solid rgb(var(--ink) / 0.5);
}

.fx-cta-note a:hover {
  border-bottom-color: var(--amber-soft);
  color: var(--amber-soft);
}

@media (max-width: 900px) {

  .fx-cta,
  .fx-cta:hover {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .fx-cta-action {
    align-items: flex-start;
  }

  .fx-cta-note {
    text-align: left;
  }
}

.fx-home-wrap {
  position: relative;
  z-index: 10;
  max-width: var(--fx-width);
  margin: 0 auto;
  padding: 0 1.5rem 6rem;
}

@media (max-width: 520px) {
  .fx-cta-btn {
    white-space: normal;
    padding: 0.95rem 1.5rem;
  }

  .fx-cta-action {
    width: 100%;
  }

  .fx-cta-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Closing banner, toned down to the site's dark theme: charcoal surface, one soft accent glow, green only on the highlight */
.fx-cta,
.fx-cta:hover {
  background:
    radial-gradient(48% 90% at 100% 0%, rgba(5, 150, 105, 0.16), transparent 70%),
    linear-gradient(135deg, rgb(var(--ink) / 0.07) 0%, rgb(var(--ink) / 0.025) 60%, rgb(var(--ink) / 0.045) 100%),
    #1b1b1b;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.7);
}

.fx-cta::before {
  opacity: 0.35;
  background-image: linear-gradient(rgb(var(--ink) / 0.04) 1px, transparent 1px), linear-gradient(90deg, rgb(var(--ink) / 0.04) 1px, transparent 1px);
}

.fx-cta-hl {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: var(--color-accent);
}

.fx-cta-desc {
  color: var(--color-fg-secondary);
}

.fx-cta-pills li {
  color: var(--color-fg-secondary);
}

.fx-pill-ic {
  background: rgb(var(--ink) / 0.07);
  color: var(--color-accent);
}

.fx-cta-btn {
  background: var(--color-fg);
  color: #171717;
  box-shadow: 0 0 0 6px rgb(var(--ink) / 0.06);
}

.fx-cta-btn:hover {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 0 0 9px rgba(5, 150, 105, 0.18);
}

.fx-cta-btn:focus-visible {
  outline-color: var(--color-accent);
}

.fx-cta-note {
  color: var(--color-fg-muted);
}

.fx-cta-note a {
  color: var(--color-fg-secondary);
  border-bottom-color: rgb(var(--ink) / 0.3);
}

.fx-cta-note a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}


/* Studio canvas figure */
.cv {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: var(--font-jetbrains-mono), monospace;
}

.cv-chip rect,
.cv-status rect {
  fill: rgb(var(--ink) / 0.06);
}

.cv-chip text,
.cv-status text {
  fill: rgb(var(--fg-rgb) / 0.78);
  font-size: 12px;
}

.cv-spark {
  color: var(--em);
}

.cv-live {
  fill: var(--em);
  animation: cv-live 1.6s ease-in-out infinite;
}

@keyframes cv-live {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.cv-card {
  fill: #202020;
  stroke: rgb(var(--ink) / 0.12);
  stroke-width: 1;
}

.cv-node.is-run .cv-card {
  fill: #162a22;
  stroke: var(--em);
  stroke-width: 1.4;
  filter: drop-shadow(0 0 18px rgba(52, 211, 153, 0.28));
}

.cv-ic {
  fill: rgb(var(--ink) / 0.07);
}

.cv-node.is-run .cv-ic {
  fill: rgba(52, 211, 153, 0.18);
}

.cv-glyph {
  color: rgb(var(--fg-rgb) / 0.85);
}

.cv-node.is-run .cv-glyph {
  color: var(--em);
}

.cv-t {
  fill: var(--color-fg);
  font-size: 14px;
  font-weight: 700;
}

.cv-s {
  fill: rgb(var(--fg-rgb) / 0.5);
  font-size: 11px;
}

.cv-port {
  fill: var(--color-bg);
  stroke: rgb(var(--fg-rgb) / 0.45);
  stroke-width: 1.4;
}

.cv-node.is-run .cv-port {
  stroke: var(--em);
}

.cv-edge {
  fill: none;
  stroke: rgba(52, 211, 153, 0.7);
  stroke-width: 1.6;
  stroke-dasharray: 5 7;
  animation: d-travel 1.6s linear infinite;
}

.cv-bar {
  stroke: rgb(var(--fg-rgb) / 0.22);
  stroke-width: 1;
  fill: none;
}

.cv-tick {
  stroke: rgb(var(--fg-rgb) / 0.22);
  stroke-width: 1;
  stroke-dasharray: 2 4;
  fill: none;
}

.cv-g {
  fill: rgb(var(--fg-rgb) / 0.7);
  font-size: 12px;
}

.cv-shield {
  color: var(--em);
}

@media (prefers-reduced-motion: reduce) {

  .cv-edge,
  .cv-live {
    animation: none;
  }
}

@media (max-width: 700px) {
  .cv {
    min-width: 760px;
  }

  .fx-diagram:has(.cv) {
    overflow-x: auto;
  }
}


/* Full-width blocks */
.fx-bp-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem clamp(2rem, 6vw, 6rem);
  align-items: start;
  margin-top: 3rem;
}

.fx-bp-head .fx-h3 {
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.fx-bp-head .fx-body {
  max-width: none;
  margin-top: 0.4rem;
}

.fx-bp-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-top: 3rem;
}

.fx-bp-row .fx-layers {
  align-self: center;
}

@media (max-width: 900px) {

  .fx-bp-head,
  .fx-bp-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.fx-roi-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 6vw, 6rem);
  align-items: end;
}

.fx-roi-head .fx-body {
  max-width: none;
}

.fx-roi-figs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
  margin-top: 4rem;
  padding-top: 3rem;
  position: relative;
}

.fx-roi-figs::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgb(var(--ink) / 0.16), rgb(var(--ink) / 0.03));
}

.fx-roi-figs dt {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.fx-roi-figs dd {
  margin-top: 1rem;
  max-width: 46ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--color-fg-secondary);
}

@media (max-width: 900px) {

  .fx-roi-head,
  .fx-roi-figs {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Definition rows span the full width: label | title | description */
.fx-def {
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 2.4fr);
}

.fx-def dd {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 0.5rem clamp(1.5rem, 4vw, 4rem);
  align-items: baseline;
}

.fx-def dd p {
  margin-top: 0;
  max-width: none;
}

@media (max-width: 860px) {
  .fx-def {
    grid-template-columns: minmax(0, 1fr);
  }

  .fx-def dd {
    grid-template-columns: minmax(0, 1fr);
  }

  .fx-def dd p {
    margin-top: 0.5rem;
  }
}

.fx-statement {
  max-width: 40ch;
}

.fx-row {
  grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.4fr);
}

.fx-row p {
  max-width: none;
}

.fx-sticky .fx-row p {
  max-width: none;
}

/* Features on tablet and phone: 01, tag, diagram, then title, description, steps and chips */
@media (max-width: 860px) {
  .fx-feat {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .fx-feat-copy {
    display: contents;
  }

  .fx-feat-copy>.fx-bigmark {
    order: 1;
    margin-bottom: 0.5rem;
  }

  .fx-feat-copy>.fx-accent {
    order: 2;
  }

  .fx-feat>.fx-diagram {
    order: 3;
    margin: 1.5rem 0 2rem;
  }

  .fx-feat-copy>.fx-h2 {
    order: 4;
    margin-top: 0 !important;
  }

  .fx-feat-copy>.fx-body {
    order: 5;
  }

  .fx-feat-copy>.fx-feat-steps {
    order: 6;
  }

  .fx-feat-copy>.fx-chips {
    order: 7;
  }
}

@media (max-width: 860px) {
  .fx-feat>.fx-diagram {
    width: 100%;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
}


/* Blueprint: layer numbers and selection follow each layer's colour */
.fx-layer .inline-flex {
  background: color-mix(in srgb, var(--lc) 22%, transparent) !important;
  color: var(--lc) !important;
}

.fx-layer.is-selected::before {
  background: var(--lc);
}

.fx-layer.is-selected {
  background: linear-gradient(90deg, color-mix(in srgb, var(--lc) 16%, transparent), transparent);
}

.fx-layer.is-selected>div:first-child {
  color: var(--lc) !important;
}

.fx-layer.is-selected .inline-flex {
  background: var(--lc) !important;
  color: #fff !important;
}

.fx-layer:hover::before {
  background: var(--lc);
}

/* Phone: slabs only, larger */
.fx-bp-row svg.is-compact .label-box,
.fx-bp-row svg.is-compact .label-badge-bg,
.fx-bp-row svg.is-compact text,
.fx-bp-row svg.is-compact .connector-line,
.fx-bp-row svg.is-compact circle:not(.slab-3d circle) {
  display: none;
}

@media (max-width: 600px) {
  .fx-bp-row svg {
    max-height: 460px;
  }

  .fx-layer {
    padding-left: 1.1rem;
    padding-right: 0.5rem;
  }

  .fx-layer>div:first-child {
    flex-wrap: wrap;
    gap: 0.35rem;
  }
}

.fx-faq summary::after {
  transition: transform 0.45s var(--ease-out);
}

.fx-faq details.is-open summary::after {
  transform: rotate(45deg);
}

.fx-faq details[open]:not(.is-open) summary::after {
  transform: rotate(0deg);
}

.fx-faq-body {
  will-change: height;
}

.fx-faq details p {
  padding-bottom: 1.5rem;
}


/* Interactive positioning quadrant */
.qd {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: 3.5rem;
  align-items: start;
}

.qd-chart {
  position: relative;
  padding: 0 0 2.25rem 2rem;
}

.qd-plot {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: 22px;
  background: linear-gradient(135deg, rgb(var(--ink) / 0.05), rgb(var(--ink) / 0.015));
  overflow: hidden;
}

.qd-plot::before,
.qd-plot::after {
  content: "";
  position: absolute;
  background: rgb(var(--ink) / 0.09);
  z-index: 1;
}

.qd-plot::before {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
}

.qd-plot::after {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
}

.qd-q-leaders {
  position: absolute;
  left: 50%;
  top: 0;
  width: 50%;
  height: 50%;
  background: radial-gradient(90% 90% at 100% 50%, rgba(5, 150, 105, 0.2), transparent 70%);
}

.qd-label {
  position: absolute;
  z-index: 2;
  font-size: 11px;
  color: var(--color-fg-muted);
  letter-spacing: 0.02em;
}

.qd-l-tl {
  left: 14px;
  top: 12px;
}

.qd-l-tr {
  right: 14px;
  top: 12px;
  color: var(--color-accent);
}

.qd-l-bl {
  left: 14px;
  bottom: 12px;
}

.qd-l-br {
  right: 14px;
  bottom: 12px;
}

.qd-link {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.qd-link line {
  stroke: rgba(52, 211, 153, 0.7);
  stroke-width: 1.2;
  stroke-dasharray: 3 4;
  vector-effect: non-scaling-stroke;
  animation: d-travel 1.6s linear infinite;
  transition: all 0.35s ease;
}

.qd-guide {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  background: rgb(var(--ink) / 0.16);
  opacity: 0;
  transition: opacity 0.25s ease, left 0.3s var(--ease-out), top 0.3s var(--ease-out);
}

.qd-gx {
  top: 0;
  bottom: 0;
  width: 1px;
}

.qd-gy {
  left: 0;
  right: 0;
  height: 1px;
}

.qd-guide.is-on {
  opacity: 1;
}

.qd-axis {
  position: absolute;
  font-size: 11px;
  color: var(--color-fg-muted);
}

.qd-axis-x {
  bottom: 0;
  left: 2rem;
  right: 0;
  text-align: center;
}

.qd-axis-y {
  left: 0;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  white-space: nowrap;
  margin-left: 0.55rem;
}

.qd-dot {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transform: translate(-7px, -50%);
  padding: 0.35rem 0.5rem 0.35rem 0;
  background: none;
  border: 0;
  color: var(--color-fg-secondary);
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
  white-space: nowrap;
  opacity: 0;
  animation: qd-in 0.6s var(--ease-out) forwards;
  animation-delay: calc(0.25s + var(--i) * 70ms);
}

@keyframes qd-in {
  from {
    opacity: 0;
    transform: translate(-7px, calc(-50% + 12px)) scale(0.6);
  }

  to {
    opacity: 1;
  }
}

.qd-pt {
  position: relative;
  flex: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: rgb(var(--fg-rgb) / 0.55);
  transition: transform 0.35s var(--ease-out), background-color 0.25s ease, box-shadow 0.25s ease;
}

.qd-nm {
  transition: color 0.25s ease, transform 0.35s var(--ease-out);
}

.qd-dot:hover .qd-pt,
.qd-dot.is-hot .qd-pt {
  transform: scale(1.35);
  background: var(--color-fg);
  box-shadow: 0 0 0 6px rgb(var(--fg-rgb) / 0.12);
}

.qd-dot:hover .qd-nm,
.qd-dot.is-hot .qd-nm {
  color: var(--color-fg);
  transform: translateX(2px);
}

.qd-dot.is-sel .qd-pt {
  background: var(--color-fg);
  box-shadow: 0 0 0 6px rgb(var(--fg-rgb) / 0.16);
}

.qd-dot.is-us {
  flex-direction: row-reverse;
  padding: 0.35rem 0 0.35rem 0.5rem;
  transform: translate(calc(-100% + 7px), -50%);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 13px;
}

@keyframes qd-in-us {
  from {
    opacity: 0;
    transform: translate(calc(-100% + 7px), calc(-50% + 12px)) scale(0.6);
  }

  to {
    opacity: 1;
  }
}

.qd-dot.is-us {
  animation-name: qd-in-us;
}

.qd-dot.is-us .qd-pt {
  width: 17px;
  height: 17px;
  background: var(--color-accent);
  box-shadow: 0 0 0 6px rgba(5, 150, 105, 0.2);
}

.qd-dot.is-us .qd-pt::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(52, 211, 153, 0.6);
  animation: qd-ping 2.2s ease-out infinite;
}

@keyframes qd-ping {
  0% {
    transform: scale(0.8);
    opacity: 0.9;
  }

  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.qd-dot:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 8px;
}

.qd-panel {
  padding-top: 0.5rem;
}

.qd-panel.is-swap>* {
  animation: qd-swap 0.45s var(--ease-out);
}

@keyframes qd-swap {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.qd-kick {
  font-size: 12px;
  color: var(--color-accent);
}

.qd-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 3.4vw, 48px);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-top: 0.6rem;
}

.qd-focus {
  margin-top: 0.7rem;
  font-size: 14px;
  color: var(--color-fg-secondary);
}

.qd-caps {
  margin-top: 1.75rem;
}

.qd-compare {
  margin-top: 1.75rem;
  display: grid;
}

.qd-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.8rem 0;
  font-size: 12px;
  color: var(--color-fg-secondary);
  background-image: linear-gradient(90deg, rgb(var(--ink) / 0.1), rgb(var(--ink) / 0.02));
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: bottom;
}

.qd-head {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--color-fg);
}

.qd-head .qd-us {
  color: var(--color-accent);
}

.qd-hint {
  margin-top: 1.5rem;
  font-size: 12px;
  color: var(--color-fg-muted);
}

@media (max-width: 960px) {
  .qd {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .qd-plot {
    aspect-ratio: 1 / 1;
  }

  .qd-chart {
    padding-left: 1.5rem;
  }

  .qd-dot {
    font-size: 10px;
  }

  .qd-nm {
    max-width: 11ch;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .qd-axis-x {
    left: 1.5rem;
  }

  .qd-row {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qd-dot {
    animation: none;
    opacity: 1;
  }

  .qd-dot.is-us .qd-pt::after {
    animation: none;
  }

  .qd-link line {
    animation: none;
  }
}

/* FAQ: wider, answers use the full width of the list */
.fx-faq {
  max-width: 1180px;
}

.fx-faq details p,
.fx-faq .fx-faq-body p {
  max-width: none;
  width: 100%;
}

/* Studio canvas edges: dash period is 12, so the loop distance is exactly 12 and the flow never jumps */
.cv-edge {
  stroke-dasharray: 5 7;
  animation: cv-flow 0.7s linear infinite;
}

@keyframes cv-flow {
  to {
    stroke-dashoffset: -12;
  }
}

.cv-pkt {
  fill: var(--em-soft);
  filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.9));
}

@media (prefers-reduced-motion: reduce) {
  .cv-pkt {
    display: none;
  }

  .cv-edge {
    animation: none;
  }
}

.fx-figures-sm {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem clamp(1.5rem, 4vw, 4rem);
}

.fx-figures-sm dt {
  font-size: clamp(34px, 4.4vw, 60px);
}

.fx-figures-sm dd {
  max-width: none;
}

@media (max-width: 860px) {
  .fx-figures-sm {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Interactive 5-layer blueprint (shared by the home page and Value proposition) */

/* SVG Layer Transitions & Highlighting */
.svg-layer-group {
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.svg-layer-group .slab-3d {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
  transform-origin: 480px 240px;
}

.svg-layer-group:hover .slab-3d,
.svg-layer-group.is-active .slab-3d {
  transform: translateY(-7px);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.6));
}

.svg-layer-group:hover,
.svg-layer-group.is-active {
  opacity: 1 !important;
}

.svg-layer-group .connector-line {
  transition: stroke-width 0.3s ease, opacity 0.3s ease;
}

.svg-layer-group:hover .connector-line,
.svg-layer-group.is-active .connector-line {
  stroke-width: 2.2;
  opacity: 1;
  stroke-dasharray: 6 3;
}

.svg-layer-group .connector-dot {
  transition: r 0.3s ease;
}

.svg-layer-group:hover .connector-dot,
.svg-layer-group.is-active .connector-dot {
  r: 5.5;
}

.svg-layer-group.is-active .label-box {
  stroke-width: 1.5;
}


.fx-bp-names {
  display: none;
}

@media (max-width: 600px) {
  .fx-home-bp .fx-bp-names {
    display: grid;
    gap: 0.65rem;
    margin-top: 1.25rem;
    font-size: 12px;
  }

  .fx-bp-names li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    list-style: none;
    color: var(--color-fg-secondary);
  }

  .fx-bp-names li span {
    display: inline-flex;
    width: 1.4rem;
    height: 1.4rem;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    background: color-mix(in srgb, var(--lc) 22%, transparent);
    color: var(--lc);
  }

  .fx-home-bp svg.is-compact {
    max-height: 420px;
  }
}


/* Hide the browser scrollbar; the page keeps scrolling, the site's own tracker shows progress */
html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Scroll tracker: green thumb, readable on both the dark page and the white method panel */
[data-complete] {
  mix-blend-mode: normal !important;
}

[data-complete]>div {
  background: rgb(var(--ink) / 0.2) !important;
}

[data-complete]>div>span {
  background: var(--color-accent) !important;
  width: 2px !important;
  box-shadow: 0 0 10px rgba(5, 150, 105, 0.6);
}

[data-complete]>span {
  color: rgb(var(--fg-rgb) / 0.6) !important;
}

.on-light [data-complete]>div {
  background: rgb(var(--bg-rgb) / 0.18) !important;
}

.on-light [data-complete]>span {
  color: rgb(var(--bg-rgb) / 0.65) !important;
}

.fx-home-bp svg.is-compact .svg-layer-group>circle,
.fx-home-bp svg.is-compact .svg-layer-group>line,
.fx-bp-row svg.is-compact .svg-layer-group>circle {
  display: none;
}


/* Contact page: the form stands alone */
.fx-contact-solo {
  display: block;
  max-width: 760px;
  margin: 4rem auto 0;
}

/* Footer reach-out row */
.fx-reach {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 3rem;
  padding-top: 4.5rem;
  align-items: center;
}

.fx-reach-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 0;
  transition: color 0.3s ease;
}

.fx-reach-right {
  justify-content: flex-end;
  text-align: right;
}

.fx-reach-ic {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-accent);
  flex: none;
}

.fx-reach-ic svg {
  width: 1.9rem;
  height: 1.9rem;
  transition: transform 0.4s var(--ease-out);
}

.fx-reach-item:hover .fx-reach-ic svg {
  transform: translateY(-3px) scale(1.08);
}

.fx-reach-txt {
  display: grid;
  gap: 0.3rem;
}

.fx-reach-txt strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 2.8vw, 38px);
  letter-spacing: -0.035em;
  line-height: 1.1;
  transition: color 0.3s ease;
}

.fx-reach-txt small {
  font-size: 13px;
  color: var(--color-fg-muted);
}

.fx-reach-item:hover .fx-reach-txt strong {
  color: var(--color-accent);
}

@media (max-width: 760px) {
  .fx-reach {
    grid-template-columns: minmax(0, 1fr);
  }

  .fx-reach-right {
    justify-content: flex-start;
    text-align: left;
    flex-direction: row-reverse;
  }
}


/* Footer contact row */
.fx-reach-rows {
  display: grid;
}

.fx-reach-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.4rem 0;
  transition: color 0.3s ease;
}

.fx-reach-row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgb(var(--ink) / 0.14), rgb(var(--ink) / 0.03));
}

.fx-reach-row strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 34px);
  letter-spacing: -0.03em;
  transition: color 0.3s ease;
}

.fx-reach-row small {
  font-size: 12px;
  color: var(--color-fg-muted);
}

.fx-reach-row:hover strong {
  color: var(--color-accent);
}

.fx-reach-row .fx-reach-ic svg {
  width: 1.7rem;
  height: 1.7rem;
}

@media (max-width: 640px) {
  .fx-reach-row {
    flex-wrap: wrap;
  }

}

.fx-reach-row {
  justify-content: space-between;
  text-align: left;
}

.fx-reach-lab {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
}

.fx-reach-row small {
  text-align: right;
}


@media (max-width: 640px) {

  .fx-reach-row {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
  }
}


/* Services: getting started and sizing, equal columns that line up */
.gs-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: 3.5rem;
  counter-reset: none;
}

.gs-step {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.9rem;
  padding-top: 1.75rem;
  list-style: none;
}

.gs-step::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-accent), rgb(var(--ink) / 0.08));
}

.gs-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 7vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(52, 211, 153, 0.7);
}

.gs-step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.25;
  min-height: 2.5em;
}

.gs-step p {
  color: var(--color-fg-secondary);
  font-size: 14px;
  line-height: 1.8;
}

@media (max-width: 860px) {
  .gs-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .gs-step h3 {
    min-height: 0;
  }
}

.sz-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: 3.5rem;
}

.sz-col {
  position: relative;
  padding-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.sz-col::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2px;
  background: var(--color-accent);
}

.sz-kick {
  font-size: 12px;
  color: var(--color-accent);
}

.sz-col h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.sz-txt {
  color: var(--color-fg-secondary);
  font-size: 14px;
  line-height: 1.8;
}

.sz-col .fx-list {
  margin-top: 0;
}

.sz-col .fx-list li {
  font-size: 13px;
}

@media (max-width: 860px) {
  .sz-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.75rem;
  }
}

.fx-roi-figs {
  margin-top: 3rem;
}

.fx-h2 .fx-dim {
  color: var(--color-fg-muted);
}

.fx-h2 .fx-accent,
.fx-section-head .fx-h2 .fx-accent {
  display: inline;
}

.fx-roi-figs {
  text-align: center;
}

.fx-roi-figs dd {
  margin-left: auto;
  margin-right: auto;
}

.fx-roi-figs::before {
  background: linear-gradient(90deg, transparent, rgb(var(--ink) / 0.16), transparent);
}


/* Footer watermark: outlined FEDERIS behind all the footer content */
.fx-watermark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: 100%;
  height: auto;
  max-height: 100%;
  pointer-events: none;
  opacity: 0.32;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 300px;
  letter-spacing: -0.04em;
}

/* Bottom quarter of the watermark fades out */
.fx-watermark {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 75%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 75%, transparent 100%);
}

.fx-watermark {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.85) 30%, rgba(0, 0, 0, 0.35) 62%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.85) 30%, rgba(0, 0, 0, 0.35) 62%, transparent 92%);
}

.fx-watermark {
  opacity: 0.4;
}


/* Footer links: bigger, brighter; labels uppercase green */
.fx-footer-cols {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: start;
}

.fx-footer-cols h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1.4rem;
}

.fx-footer-cols ul {
  gap: 0.95rem;
}

.fx-footer-cols a {
  font-size: 12px;
  color: rgb(var(--fg-rgb) / 0.88);
}

.fx-footer-cols a:hover {
  color: var(--color-accent);
}

.fx-footer-legal {
  font-size: 13.5px;
  color: rgb(var(--fg-rgb) / 0.7);
}

.fx-footer-legal a {
  color: rgb(var(--fg-rgb) / 0.85);
}

@media (max-width: 900px) {
  .fx-footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fx-foot-cta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .fx-footer-cols {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Footer background */
.fx-footer {
  background: radial-gradient(70% 55% at 50% 0%, rgba(5, 150, 105, 0.1), transparent 70%), linear-gradient(180deg, #131313 0%, #0d0d0d 100%);
  border-top: 1px solid rgb(var(--ink) / 0.06);
}

.fx-foot-cta {
  display: flex;
  gap: 4px;
  align-self: start;
}

.fx-footer-cols a.fx-btn {
  font-size: 14px;
  color: var(--color-fg);
}

.fx-footer-cols a.fx-btn-primary {
  color: var(--color-bg);
}

.fx-footer-cols a.fx-btn:hover,
.fx-footer-cols a.fx-btn-primary:hover {
  color: #fff;
}


/* Background only for the links + watermark block; the infinity above keeps the page background */
.fx-footer {
  background: none;
  border-top: 0;
}

.fx-footer-base {
  position: relative;
  z-index: 5;
  overflow: hidden;
  margin-top: 2rem;
  border-top: 1px solid rgb(var(--ink) / 0.1);
}

.fx-footer-base .fx-footer-wrap {
  position: relative;
  z-index: 2;
}

.fx-footer-base .fx-watermark {
  z-index: 1;
}

.fx-footer-base .fx-footer-cols {
  border-top: 0;
  padding-top: 4.5rem;
}

/* Blur layers so the links and legal row read cleanly above the watermark */
/* .fx-footer-cols, .fx-footer-legal { position: relative; isolation: isolate; } */
/* .fx-footer-cols::before, .fx-footer-legal::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: -2rem; right: -2rem; top: 0; bottom: -1.5rem;
  background: linear-gradient(180deg, rgb(var(--bg-rgb) / 0.72) 0%, rgb(var(--bg-rgb) / 0.5) 70%, rgb(var(--bg-rgb) / 0) 100%);
  -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 68%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 68%, transparent 100%);
} */
/* .fx-footer-legal::before { top: -1.25rem; bottom: 0; background: linear-gradient(0deg, rgb(var(--bg-rgb) / 0.72) 0%, rgb(var(--bg-rgb) / 0.5) 70%, rgb(var(--bg-rgb) / 0) 100%); -webkit-mask-image: linear-gradient(0deg, #000 0%, #000 68%, transparent 100%); mask-image: linear-gradient(0deg, #000 0%, #000 68%, transparent 100%); }
.fx-footer-cols::before { bottom: -0.5rem; background: linear-gradient(180deg, rgb(var(--bg-rgb) / 0.5) 0%, rgb(var(--bg-rgb) / 0.25) 75%, rgb(var(--bg-rgb) / 0) 100%); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%); }
.fx-footer-legal::before { top: -0.5rem; background: linear-gradient(0deg, rgb(var(--bg-rgb) / 0.5) 0%, rgb(var(--bg-rgb) / 0.25) 75%, rgb(var(--bg-rgb) / 0) 100%); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); -webkit-mask-image: linear-gradient(0deg, #000 0%, #000 55%, transparent 100%); mask-image: linear-gradient(0deg, #000 0%, #000 55%, transparent 100%); } */
.fx-footer-base .fx-watermark {
  opacity: 0.4;
}

/* Blur bands run the full width of the footer block, so they have no visible side edges */
/* .fx-footer-cols::before, .fx-footer-legal::before { left: -100vw; right: -100vw; }
.fx-footer-cols::before { top: -2.5rem; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 62%, transparent 100%); }
.fx-footer-legal::before { -webkit-mask-image: linear-gradient(0deg, #000 0%, #000 55%, transparent 100%); mask-image: linear-gradient(0deg, #000 0%, #000 55%, transparent 100%); } */

/* Final: no blur bands. The whole watermark is softly blurred instead. */
/* .fx-footer-cols::before, .fx-footer-legal::before { content: none; display: none; } */
/* .fx-footer-base .fx-watermark { filter: blur(1.6px); opacity: 0.6; } */

/* ===== Responsive pass ===== */
/* Studio canvas: horizontal on wide screens, vertical (same wavy edges) on small ones */
.fx-diagram .cv-v { display: none; }
@media (max-width: 760px) {
  .fx-diagram .cv-h { display: none; }
  .fx-diagram .cv-v { display: block; max-width: 420px; margin: 0 auto; min-width: 0; }
  .fx-diagram:has(.cv) { overflow: visible; }
}
@media (max-width: 700px) { .cv-h { min-width: 0; } }

/* Indexed rows (Studio capabilities, Value proposition pillars, Services lists): stack like the definition rows on small screens */
@media (max-width: 760px) {
  .fx-row, .fx-sticky .fx-row { grid-template-columns: minmax(0, 1fr); gap: 0.55rem; padding: 1.6rem 0; }
  .fx-row p, .fx-sticky .fx-row p { grid-column: auto; max-width: none; }
  .fx-row h3 { font-size: clamp(20px, 5.6vw, 24px); }
  .fx-row:hover h3 { transform: none; }
}

/* Footer on small screens: link groups side by side, bigger curved banner text */
@media (max-width: 640px) {
  .fx-footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 1.5rem; }
  .fx-foot-cta { grid-column: 1 / -1; }
  [data-framework-marquee] svg { width: 230%; max-width: none; margin-left: -62%; }
}

/* Curved marquee & footer watermark */
.fx-marquee-text,
[data-framework-marquee] svg text:not([visibility="hidden"]) {
  fill: rgb(var(--ink) / 0.25);
  transition: fill 0.25s ease;
}

.fx-marquee-text tspan,
[data-framework-marquee] svg tspan {
  fill: var(--color-accent);
}

.fx-watermark text {
  fill: rgb(var(--ink) / 0.08);
  transition: fill 0.25s ease;
}

/* Quadrant: labels near the right edge open to the left so they stay inside the plot */
.qd-dot.is-flip { flex-direction: row-reverse; padding: 0.35rem 0 0.35rem 0.5rem; transform: translate(calc(-100% + 7px), -50%); }
@keyframes qd-in-flip { from { opacity: 0; transform: translate(calc(-100% + 7px), calc(-50% + 12px)) scale(0.6); } to { opacity: 1; } }
.qd-dot.is-flip { animation-name: qd-in-flip; }

/* Tables become stacked rows on small screens: capability title, then label / value pairs */
@media (max-width: 760px) {
  .fx-stack-table, .fx-stack-table tbody, .fx-stack-table tr, .fx-stack-table th, .fx-stack-table td { display: block; width: 100%; min-width: 0; }
  .fx-stack-table thead { display: none; }
  .fx-stack-table { font-size: 13px; }
  .fx-table-wrap, .fx-table-wrap.fx-bare { overflow: visible; border-radius: 0; background: none; border: 0; }
  .fx-stack-table tr { position: relative; padding: 1.4rem 0; }
  .fx-stack-table tr::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, rgb(var(--ink) / 0.14), rgb(var(--ink) / 0.03)); }
  .fx-stack-table tbody th { padding: 0 0 0.75rem; border: 0; color: var(--color-fg); font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; background-image: none; width: 100%; }
  .fx-stack-table td { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: 0.45rem 0; border: 0; background-image: none; text-align: right; }
  .fx-stack-table td::before { content: attr(data-label); flex: none; max-width: 48%; text-align: left; color: var(--color-fg-muted); font-size: 12px; }
  .fx-stack-table td.is-us { background: none; color: var(--color-accent); }
  .fx-stack-table td.is-us::before { color: var(--color-accent); }
  .fx-open-table.fx-stack-table td { display: block; text-align: left; }
  .fx-open-table.fx-stack-table td::before { display: block; max-width: none; margin-bottom: 0.2rem; }
}

/* Header: hamburger below 1100px so the capsule never overflows */
@media (min-width: 768px) and (max-width: 1099px) {
  #site-header .gn-list { display: none !important; }
  #site-header #mobile-nav-toggle { display: flex !important; }
  #site-header #mobile-nav-panel { display: block !important; }
}
@media (min-width: 768px) and (max-width: 1099px) { #site-header > div { border-radius: 28px; } }

/* Footer contact row on phones: label and icon left, detail right */
@media (max-width: 640px) {
  .fx-reach-row { flex-direction: row; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 1rem; text-align: left; }
  .fx-reach-row small { flex: 1 1 0; min-width: 0; text-align: right; overflow-wrap: anywhere; font-size: 11px; }
}

/* Menu button: three lines become a clean X when the menu is open */
#mobile-nav-toggle .hamburger-line { transition: transform 0.3s ease, translate 0.3s ease, rotate 0.3s ease, opacity 0.2s ease; transform-origin: center; }
#mobile-nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) { translate: 0 0 !important; transform: none !important; rotate: 45deg !important; }
#mobile-nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0 !important; }
#mobile-nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) { translate: 0 0 !important; transform: none !important; rotate: -45deg !important; }
@media (max-width: 640px) { .fx-reach-row small { text-wrap: balance; } }

/* Stacked tables on phones: the labels are green, the values stay normal text */
@media (max-width: 760px) {
  .fx-stack-table td::before, .fx-stack-table td.is-us::before { color: var(--color-accent); }
  .fx-stack-table td, .fx-stack-table td.is-us { color: var(--color-fg-secondary); }
  .fx-open-table.fx-stack-table td.is-us { color: var(--color-fg); }
}
.fx-open-table thead th { color: var(--color-accent); }
.fx-open-table td.is-us, .fx-open-table.fx-stack-table td.is-us { color: var(--color-fg-secondary); }

/* Footer on phones: categories stacked, each category's links in a row */
@media (max-width: 640px) {
  .fx-footer-cols { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .fx-footer-cols ul { flex-direction: row; flex-wrap: wrap; gap: 0.7rem 1.75rem; }
  .fx-footer-cols h3 { margin-bottom: 1rem; }
}

/* Footer on phones: links in a row inside each category, and categories sit in a row too when they fit */
@media (max-width: 640px) {
  .fx-footer-cols { display: flex; flex-wrap: wrap; gap: 2rem 2.25rem; }
  .fx-footer-cols > div { flex: 0 1 auto; min-width: 0; }
  .fx-footer-cols > .fx-foot-cta { flex: 1 1 100%; }
  .fx-footer-cols ul { gap: 0.6rem 1.25rem; }
}
@media (max-width: 640px) { .fx-footer-cols { justify-content: space-between; } }

/* Page tag: one joined capsule. A green "current page" segment with a live dot, then the context label */
.fx-eyebrow { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 0; padding: 4px; border-radius: 999px; background: rgb(var(--ink) / 0.055); font-size: 12.5px; letter-spacing: 0.01em; }
.fx-eyebrow > span:first-child { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.5rem 1.05rem 0.5rem 0.9rem; border-radius: 999px; background: rgba(5, 150, 105, 0.18); color: var(--em); font-weight: 600; }
.fx-eyebrow > span:first-child::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--em); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); animation: fx-tagdot 2.2s ease-out infinite; }
.fx-eyebrow .fx-tag { padding: 0.5rem 1.1rem 0.5rem 0.95rem; border: 0; border-radius: 0; background: none; color: var(--color-fg-secondary); }
@keyframes fx-tagdot { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); } }
@media (prefers-reduced-motion: reduce) { .fx-eyebrow > span:first-child::before { animation: none; } }
@media (max-width: 420px) { .fx-eyebrow { font-size: 11.5px; } .fx-eyebrow .fx-tag { padding-right: 0.9rem; } }
.fx-eyebrow > span { white-space: nowrap; }
@media (max-width: 420px) { .fx-eyebrow { font-size: 11px; max-width: 100%; } .fx-eyebrow > span:first-child { padding: 0.45rem 0.8rem 0.45rem 0.7rem; gap: 0.45rem; } .fx-eyebrow .fx-tag { padding: 0.45rem 0.8rem 0.45rem 0.7rem; } }
@media (max-width: 400px) { .fx-eyebrow { font-size: 10.5px; padding: 3px; } .fx-eyebrow > span:first-child { padding: 0.4rem 0.65rem 0.4rem 0.6rem; gap: 0.4rem; } .fx-eyebrow > span:first-child::before { width: 6px; height: 6px; } .fx-eyebrow .fx-tag { padding: 0.4rem 0.7rem 0.4rem 0.6rem; } }
@media (max-width: 340px) { .fx-eyebrow { flex-wrap: wrap; justify-content: center; border-radius: 22px; } .fx-eyebrow .fx-tag { padding: 0.3rem 0.8rem 0.5rem; } }
/* Status values are plain coloured text, no leading dot */
.fx-status::before { content: none; display: none; }
.fx-status { gap: 0; }


/* Large statements span the full content width */
.fx-statement, .fx-center-block .fx-statement { max-width: none; width: 100%; }
.fx-note { max-width: none; }
.fx-table-wrap + .fx-note, .fx-note { text-align: left; }
.fx-statement { text-wrap: wrap; }

.fx-cols h2 { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
/* Contrast: green text on the white method panel */
[data-method-intro] .text-accent { color: #047857; }
/* Quadrant dots: 24px-high hit areas that do not overlap their neighbours */
.qd-dot, .qd-dot.is-flip, .qd-dot.is-us { padding-top: 0; padding-bottom: 0; min-height: 24px; }


/* Privacy policy */
.pp-layout { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 2fr); gap: clamp(2rem, 6vw, 6rem); margin-top: clamp(3rem, 6vw, 5rem); align-items: start; }
.pp-toc { position: sticky; top: 8.5rem; }
.pp-toc-title { font-size: 12px; color: var(--color-accent); margin-bottom: 1rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.pp-toc ol { display: grid; gap: 0.2rem; counter-reset: pp; list-style: none; }
.pp-toc li { counter-increment: pp; }
.pp-toc a { display: flex; gap: 0.7rem; padding: 0.4rem 0; font-size: 13px; color: var(--color-fg-muted); transition: color 0.25s ease, transform 0.35s var(--ease-out); }
.pp-toc a::before { content: counter(pp, decimal-leading-zero); color: var(--color-accent); font-size: 11px; padding-top: 2px; }
.pp-toc a:hover { color: var(--color-fg); transform: translateX(4px); }
.pp-sec { position: relative; padding: 2.25rem 0; scroll-margin-top: 7rem; }
.pp-sec::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, rgb(var(--ink) / 0.14), rgb(var(--ink) / 0.03)); }
.pp-sec:first-child::before { display: none; }
.pp-sec h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 1.1rem; }
.pp-sec p, .pp-sec li { color: var(--color-fg-secondary); font-size: 14.5px; line-height: 1.85; }
.pp-sec p + p, .pp-sec p + ul, .pp-sec ul + p { margin-top: 1rem; }
.pp-sec ul { display: grid; gap: 0.7rem; padding-left: 0; list-style: none; }
.pp-sec li { position: relative; padding-left: 1.5rem; }
.pp-sec li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 10px; height: 1px; background: var(--color-accent); }
.pp-sec strong { color: var(--color-fg); font-weight: 600; }
.pp-sec a { color: var(--color-fg); border-bottom: 1px solid rgb(var(--ink) / 0.3); transition: color 0.2s ease, border-color 0.2s ease; }
.pp-sec a:hover { color: var(--color-accent); border-color: var(--color-accent); }
@media (max-width: 900px) { .pp-layout { grid-template-columns: minmax(0, 1fr); } .pp-toc { position: static; } .pp-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; } }
@media (max-width: 520px) { .pp-toc ol { grid-template-columns: minmax(0, 1fr); } }

.pp-sec h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; margin: 1.75rem 0 0.7rem; color: var(--color-fg); }
.pp-table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 13.5px; }
.pp-table th, .pp-table td { text-align: left; vertical-align: top; padding: 0.95rem 1rem 0.95rem 0; line-height: 1.7; background-image: linear-gradient(90deg, rgb(var(--ink) / 0.12), rgb(var(--ink) / 0.03)); background-size: 100% 1px; background-repeat: no-repeat; background-position: bottom; }
.pp-table thead th { color: var(--color-accent); font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.pp-table td { color: var(--color-fg-secondary); }
.pp-table td:first-child { color: var(--color-fg); }
@media (max-width: 700px) {
  .pp-table, .pp-table tbody, .pp-table tr, .pp-table td { display: block; width: 100%; }
  .pp-table thead { display: none; }
  .pp-table tr { position: relative; padding: 1.1rem 0; }
  .pp-table td { padding: 0.3rem 0; background-image: none; }
  .pp-table td::before { content: attr(data-label); display: block; font-size: 11px; color: var(--color-accent); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; margin-bottom: 0.15rem; }
  .pp-table tr::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, rgb(var(--ink) / 0.14), rgb(var(--ink) / 0.03)); }
}

/* Minimal footer (legal pages): the link block carries its own top spacing */
.fx-footer-inner > .fx-footer-base:first-child { margin-top: 5rem; }

/* Hero: one viewport tall. Globe on the right (see globe.js), copy on the left, the badge centred at the bottom. */
.fx-hero-wrap [data-hero-section] { min-height: 100svh; padding-bottom: 0; }
.fx-hero-overlay { position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column; justify-content: center; max-width: var(--fx-width); margin: 0 auto; padding: 6.5rem 1.5rem 7rem; pointer-events: none; }
.fx-hero-copy { max-width: 48rem; text-align: left; pointer-events: none; }
.fx-hero-copy h1, .fx-hero-copy p, .fx-hero-badges span { pointer-events: auto; -webkit-user-select: text; user-select: text; }
.fx-hero-copy h1, .fx-hero-copy p { cursor: text; }
.fx-hero-copy h1.text-display-xl { font-size: clamp(40px, 6.2vw, 96px) !important; white-space: nowrap; }
.fx-hero-copy p { margin-top: 1.5rem; max-width: min(44rem, 50vw); font-size: clamp(14px, 1.15vw, 17px); line-height: 1.8; }
.fx-hero-base { position: absolute; left: 0; right: 0; bottom: calc(58px + clamp(1rem, 3.5svh, 2.25rem)); display: flex; justify-content: center; padding: 0 1rem; }

@media (max-width: 999px) {
  .fx-hero-overlay { justify-content: flex-end; padding: 5rem 1.25rem 9rem; }
  .fx-hero-copy { max-width: none; }
  .fx-hero-copy h1.text-display-xl { font-size: clamp(30px, 10.2vw, 80px) !important; }
  .fx-hero-copy p { max-width: 34rem; font-size: 14px; line-height: 1.7; }
}

@media (max-width: 999px) and (max-height: 700px) {
  .fx-hero-copy p { margin-top: 1rem; font-size: 13px; line-height: 1.55; }
  .fx-hero-overlay { padding-bottom: 8rem; }
}
/* Page tags have no leading dot */
.fx-eyebrow > span:first-child::before { content: none; display: none; animation: none; }
.fx-eyebrow > span:first-child { gap: 0; padding-left: 1.05rem; }

/* Four link groups plus the button on wide screens */
@media (min-width: 761px) { .fx-footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; } }

/* Social links: icon + name */
.fx-footer-cols a.fx-social { display: inline-flex; align-items: center; gap: 0.65rem; }
.fx-social svg { width: 1.05rem; height: 1.05rem; flex: none; color: var(--color-accent); transition: transform 0.35s var(--ease-out); }
.fx-social:hover svg { transform: translateY(-2px) scale(1.1); }

/* Social icons keep their own brand look: LinkedIn blue, X white on the dark footer */
.fx-social svg { color: #fff; border-radius: 4px; }
.fx-social svg { width: 1.45rem; height: 1.45rem; }
.fx-footer-cols a.fx-social { gap: 0.8rem; }

.fx-legal-brand { display: inline-flex; align-items: center; gap: 0.65rem; color: rgb(var(--fg-rgb) / 0.85); }
.fx-legal-brand img { width: 26px; height: 26px; flex: none; }
.fx-footer-legal a.fx-legal-brand:hover { color: var(--color-fg); }
.fx-legal-name { display: flex; flex-direction: column; line-height: 1.25; }
.fx-legal-name small { margin-top: 0.15rem; font-size: 11px; letter-spacing: 0.02em; color: var(--color-fg-muted); }

@media (min-width: 761px) { .fx-footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; } }

/* 404 page */
.nf-page .nf-code { display: block; margin-top: 1.5rem; font-family: var(--font-display); font-weight: 800; font-size: clamp(120px, 24vw, 300px); line-height: 0.85; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1.5px rgb(var(--ink) / 0.22); user-select: none; }
.nf-page .fx-h1 { margin-top: 0.5rem; }
.nf-links { max-width: 760px; margin: clamp(3.5rem, 7vw, 6rem) auto 0; }


/* ---------- Home: adoption risk, industries, security and trust, economics ---------- */
.fx-home-sec { position: relative; z-index: 5; padding: 6rem 1.5rem 0; }
.fx-home-sec-inner { max-width: var(--fx-width); margin: 0 auto; }
.fx-home-sec.fx-checks-sec { padding-top: 8rem; }
.fx-home-sec:last-of-type { padding-bottom: 2rem; }

/* Figures: label, large value, one supporting line */
.fx-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 3.5rem; }
.fx-proof.is-four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2.5rem); }
.fx-proof > div { border-top: 1px solid rgb(var(--ink) / 0.14); padding-top: 1.5rem; }
.fx-proof-k { display: block; margin-bottom: 1rem; font-size: 12px; color: var(--color-fg-muted); }
.fx-proof-v { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 5.4vw, 76px); line-height: 1; letter-spacing: -0.04em; }
.fx-proof.is-money .fx-proof-v { font-size: clamp(26px, 2.9vw, 42px); }
.fx-proof.is-text .fx-proof-v { font-size: clamp(22px, 2.3vw, 32px); line-height: 1.15; letter-spacing: -0.02em; }
.fx-proof p { margin-top: 1rem; max-width: 36ch; font-size: 14px; line-height: 1.75; color: var(--color-fg-secondary); }
.fx-proof-src { display: inline-block; margin-top: 0.85rem; font-size: 12px; color: var(--color-fg-muted); transition: color 0.3s ease; }
.fx-proof-src:hover { color: var(--color-accent); }

@media (max-width: 900px) {
  .fx-proof, .fx-proof.is-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .fx-proof, .fx-proof.is-four { grid-template-columns: minmax(0, 1fr); }
}

.fx-note-line { margin: 2.5rem auto 0; max-width: 74ch; text-align: center; font-size: 12px; line-height: 1.8; color: var(--color-fg-muted); }
.fx-home-sec .fx-note-line + .fx-actions { justify-content: center; margin-top: 1.75rem; }

.fx-pattern { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; margin-top: 5rem; }

@media (max-width: 860px) {
  .fx-pattern { grid-template-columns: minmax(0, 1fr); }
}

/* Industries: tab list on the left, one panel on the right */
.fx-ind { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; margin-top: 3.5rem; }
.fx-ind-tabs { display: flex; flex-direction: column; border-top: 1px solid rgb(var(--ink) / 0.14); }
.fx-ind-tab { padding: 1.15rem 0 1.15rem 0; border: 0; border-bottom: 1px solid rgb(var(--ink) / 0.14); background: none; color: var(--color-fg-muted); font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 1.9vw, 26px); letter-spacing: -0.02em; text-align: left; cursor: pointer; transition: color 0.3s ease, padding-left 0.45s var(--ease-out); }
.fx-ind-tab:hover { color: var(--color-fg); }
.fx-ind-tab[aria-selected="true"] { color: var(--color-accent); padding-left: 0.5rem; }
.fx-ind-tab:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }
.fx-ind-panel h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 2.8vw, 38px); line-height: 1.15; letter-spacing: -0.03em; }
.fx-ind-k { display: block; margin-top: 2rem; font-size: 12px; color: var(--color-fg-muted); }
.fx-ind-t { max-width: 62ch; margin-top: 0.4rem; font-size: 14px; line-height: 1.85; color: var(--color-fg-secondary); }
.fx-ind-panel .fx-chips { margin-top: 2rem; justify-content: flex-start; }
.fx-ind-panel .fx-chip { border: 0; background: rgb(var(--ink) / 0.06); }
.fx-ind-panel .fx-actions { margin-top: 1.75rem; justify-content: flex-start; }

@media (max-width: 860px) {
  .fx-ind { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .fx-ind-tabs { flex-direction: row; gap: 1.5rem; overflow-x: auto; border-top: 0; scrollbar-width: none; }
  .fx-ind-tabs::-webkit-scrollbar { display: none; }
  .fx-ind-tab { flex: none; padding: 0.6rem 0; border-bottom: 2px solid transparent; font-size: 16px; white-space: nowrap; }
  .fx-ind-tab[aria-selected="true"] { border-bottom-color: var(--color-accent); padding-left: 0; }
}

/* Security and trust: icon in the numeral column of an indexed row */
.fx-row-ic { display: inline-flex; width: 1.5rem; height: 1.5rem; color: var(--color-accent); }
.fx-row-ic svg { width: 100%; height: 100%; }

/* Use-case pages */
.fx-uc-lead { max-width: 62ch; font-size: 15px; line-height: 1.9; color: var(--color-fg-secondary); }
.fx-uc-posture { margin-top: 0; }
.fx-uc-notes { margin-top: 1.5rem; }

/* Headings in the new sections break at spaces only */
.fx-ind-panel h3, .fx-uc h2, .fx-uc h3 { -webkit-hyphens: manual; hyphens: manual; }

/* Five checks: a plain numbered row */
.fx-checks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2.5rem); margin: 3.5rem 0 0; padding: 0; list-style: none; }
.fx-checks li { padding-top: 1.25rem; border-top: 1px solid rgb(var(--ink) / 0.14); }
.fx-checks-n { display: block; margin-bottom: 1rem; font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: 0.04em; color: var(--color-accent); }
.fx-checks h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.1; letter-spacing: -0.025em; }
.fx-checks p { margin-top: 0.75rem; font-size: 14px; line-height: 1.75; color: var(--color-fg-secondary); }

@media (max-width: 1000px) {
  .fx-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .fx-checks { grid-template-columns: minmax(0, 1fr); }
}

/* Rail slides: feature name and description on the left, its diagram on the right */
.fx-m-slide { width: 100vw; padding: 0 6vw; }
.fx-m-feat { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 4vw, 5rem); align-items: center; width: 100%; max-width: 78rem; margin: 0 auto; }
.fx-m-desc { margin-top: 1.5rem; max-width: 40ch; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.7; opacity: 0.78; }
/* The diagram has no card: its strokes and text take the rail's ink colour, so it reads on white and on the dark last slide */
[data-method] { --m-green: #059669; --m-red: #dc2626; }
[data-method][style*="F0F0F8" i] { --m-green: var(--em); --m-red: var(--red); }
.fx-m-diagram.fx-diagram .d-line { stroke: color-mix(in srgb, var(--method-fg) 38%, transparent); }
.fx-m-diagram.fx-diagram .d-box { fill: color-mix(in srgb, var(--method-fg) 5%, transparent); stroke: color-mix(in srgb, var(--method-fg) 28%, transparent); }
.fx-m-diagram.fx-diagram .d-on { stroke: var(--m-green); }
.fx-m-diagram.fx-diagram .d-fill { fill: color-mix(in srgb, var(--m-green) 14%, transparent); stroke: var(--m-green); }
.fx-m-diagram.fx-diagram .d-bad { stroke: var(--m-red); }
.fx-m-diagram.fx-diagram text { fill: color-mix(in srgb, var(--method-fg) 82%, transparent); }
.fx-m-diagram.fx-diagram .d-dim { fill: color-mix(in srgb, var(--method-fg) 52%, transparent); }
.fx-m-diagram.fx-diagram .d-acc { fill: var(--m-green); }
.fx-m-diagram.fx-diagram .d-red { fill: var(--m-red); }

@media (max-width: 899px) {
  .fx-m-feat { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .fx-m-desc { margin-top: 1rem; max-width: none; font-size: 14px; line-height: 1.55; }
}

/* Short screens: tighter rail text so a slide still fits above the progress marks */
@media (max-height: 740px) and (min-width: 900px) {
  .fx-m-feat { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); }
  .fx-m-desc { margin-top: 1rem; font-size: 14px; line-height: 1.55; }
}

/* Six failures, in the "why programs stall" section */
.fx-fail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem) clamp(1.5rem, 4vw, 3.5rem); margin-top: 3rem; }
.fx-fail > div { border-top: 1px solid rgb(var(--ink) / 0.14); padding-top: 1.5rem; }
.fx-fail h4 { margin-bottom: 1rem; font-family: var(--font-display); font-size: clamp(20px, 1.8vw, 26px); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.fx-fail-k { display: block; margin-bottom: 0.35rem; font-size: 12px; color: var(--color-fg-muted); }
.fx-fail p { font-size: 14px; line-height: 1.7; color: var(--color-fg-secondary); }
.fx-fail-fed { margin-top: 1.1rem; padding-left: 1rem; border-left: 2px solid #059669; }
.fx-fail-fed .fx-fail-k { color: var(--em); font-weight: 700; }
.fx-fail-fed p { color: var(--color-fg); }
@media (max-width: 1000px) { .fx-fail { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .fx-fail { grid-template-columns: minmax(0, 1fr); } }

/* Hero badges above the headline */
.fx-hero-badges { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0.6rem; margin-bottom: 1.75rem; }
.fx-hero-badges span { padding: 0.55rem 1.1rem; border: 1px solid rgb(var(--ink) / 0.16); border-radius: 999px; background: rgb(var(--ink) / 0.05); color: var(--color-fg); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }

@media (max-width: 480px) {
  .fx-hero-badges { gap: 0.45rem; margin-bottom: 1.25rem; }
  .fx-hero-badges span { padding: 0.45rem 0.8rem; font-size: 10px; }
}


/* Hero: request path ribbon along the bottom edge (Retrieval, Guardrails, Sovereignty, Inference, Audit).
   The pulse rests on each stage in turn; script in hero.html sets --p0..--p4 to the dot positions. */
.fx-pipeline {
  --pl-sky: hsl(190, 100%, 50%);
  --pl-amber: hsl(45, 100%, 50%);
  --pl-violet: hsl(270, 100%, 65%);
  --pl-mint: hsl(170, 100%, 48%);
  --pl-coral: hsl(355, 100%, 65%);
  --pl-rose: hsl(320, 85%, 66%);
  --pl-gutter: clamp(1rem, 8vw, 7.5rem);
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; align-items: center;
  height: 58px; padding: 0 var(--pl-gutter);
  border-top: 1px solid rgb(var(--ink) / 0.06);
  background: rgba(0, 0, 0, 0.12);
  pointer-events: none;
}
.fx-pipeline-seg { flex: 1 1 0; min-width: 12px; height: 1px; margin: 0 10px; opacity: 0.25; background: linear-gradient(90deg, var(--a), var(--b)); }
.fx-pipeline-pulse { position: absolute; top: 50%; left: 0; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--pl-sky); box-shadow: 0 0 16px 2px var(--pl-sky); opacity: 0; }
.fx-pipeline.is-live .fx-pipeline-pulse { animation: fx-pulse-travel 10.5s cubic-bezier(0.45, 0, 0.2, 1) infinite; }
.fx-pipeline-node { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; flex: none; }
.fx-pipeline-dot { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--stage-color); opacity: 0.55; animation: fx-node-flash 10.5s ease-out infinite; animation-delay: var(--stage-delay, 0s); }
.fx-pipeline-label { font-size: 0.72rem; letter-spacing: 0.02em; color: rgb(var(--ink) / 0.56); white-space: nowrap; }

/* 10.5s loop: rest on each stage for 0.8s, travel 0.9s between stages, fade out, repeat */
@keyframes fx-pulse-travel {
  0% { transform: translateX(var(--p0)); opacity: 0; background: var(--pl-rose); box-shadow: 0 0 16px 2px var(--pl-rose); }
  2% { opacity: 1; }
  7.62% { transform: translateX(var(--p0)); opacity: 1; background: var(--pl-rose); box-shadow: 0 0 16px 2px var(--pl-rose); }
  16.19% { transform: translateX(var(--p1)); opacity: 1; background: var(--pl-sky); box-shadow: 0 0 16px 2px var(--pl-sky); }
  23.81% { transform: translateX(var(--p1)); opacity: 1; background: var(--pl-sky); box-shadow: 0 0 16px 2px var(--pl-sky); }
  32.38% { transform: translateX(var(--p2)); opacity: 1; background: var(--pl-amber); box-shadow: 0 0 16px 2px var(--pl-amber); }
  40.0% { transform: translateX(var(--p2)); opacity: 1; background: var(--pl-amber); box-shadow: 0 0 16px 2px var(--pl-amber); }
  48.57% { transform: translateX(var(--p3)); opacity: 1; background: var(--pl-violet); box-shadow: 0 0 16px 2px var(--pl-violet); }
  56.19% { transform: translateX(var(--p3)); opacity: 1; background: var(--pl-violet); box-shadow: 0 0 16px 2px var(--pl-violet); }
  64.76% { transform: translateX(var(--p4)); opacity: 1; background: var(--pl-mint); box-shadow: 0 0 16px 2px var(--pl-mint); }
  72.38% { transform: translateX(var(--p4)); opacity: 1; background: var(--pl-mint); box-shadow: 0 0 16px 2px var(--pl-mint); }
  80.95% { transform: translateX(var(--p5)); opacity: 1; background: var(--pl-coral); box-shadow: 0 0 16px 2px var(--pl-coral); }
  88.57% { transform: translateX(var(--p5)); opacity: 1; background: var(--pl-coral); box-shadow: 0 0 16px 2px var(--pl-coral); }
  92.38% { transform: translateX(var(--p5)); opacity: 0; }
  92.48% { transform: translateX(var(--p0)); opacity: 0; background: var(--pl-rose); box-shadow: 0 0 16px 2px var(--pl-rose); }
  100% { transform: translateX(var(--p0)); opacity: 0; }
}

/* Each stage dot flashes as the pulse arrives (delays match the arrival times above) */
@keyframes fx-node-flash {
  0% { transform: scale(2.4); opacity: 1; }
  7.62%, 100% { transform: scale(1); opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-pipeline-pulse, .fx-pipeline-dot { animation: none !important; }
}

/* Small screens: the ribbon is dropped and the badge returns to the bottom edge */
@media (max-width: 859px) {
  .fx-pipeline { display: none; }
  .fx-hero-base { bottom: clamp(1.25rem, 5svh, 3rem); }
}

/* Security and trust: three-column grid under a centred heading */
.fx-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem clamp(1.5rem, 4vw, 3.5rem); margin-top: 3.5rem; }
.fx-trust > div { padding-top: 1.5rem; border-top: 1px solid rgb(var(--ink) / 0.14); }
.fx-trust .fx-row-ic { margin-bottom: 1.25rem; }
.fx-trust h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.15; letter-spacing: -0.025em; }
.fx-trust p { margin-top: 0.75rem; max-width: 40ch; font-size: 14px; line-height: 1.8; color: var(--color-fg-secondary); }

@media (max-width: 1000px) {
  .fx-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .fx-trust { grid-template-columns: minmax(0, 1fr); }
}

/* Rail progress markers are buttons */
.fx-m-hit { cursor: pointer; outline: none; }
.fx-m-hit:focus-visible { outline: 2px solid #059669; outline-offset: -4px; }

.fx-hero-hook { display: block; margin-bottom: 0.7rem; font-weight: 600; }

/* Back to top: bottom right, shown after the first screen */
.fx-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 999px; background: rgb(var(--bg-rgb) / 0.62); color: var(--color-fg); cursor: pointer; -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgb(var(--ink) / 0.08); opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity 0.3s ease, transform 0.4s var(--ease-out), visibility 0s linear 0.3s, background-color 0.25s ease, color 0.25s ease; }
.fx-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.fx-top svg { width: 20px; height: 20px; transition: transform 0.3s var(--ease-out); }
.fx-top:hover { background: #059669; color: #fff; }
.fx-top:hover svg { transform: translateY(-2px); }
.fx-top:focus-visible { outline: 2px solid #059669; outline-offset: 3px; }

@media (max-width: 640px) {
  .fx-top { right: 0.9rem; bottom: 0.9rem; width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-top, .fx-top svg { transition-duration: 0.01s; }
}

/* Nav dropdowns (Solutions, Platform, Use cases) */
.gn-item > .gn-trigger { display: flex; align-items: center; gap: 0.45rem; border: 0; background: none; font-family: inherit; cursor: pointer; }

/* The capsule clips its contents on small screens (mobile drawer); on wide screens the dropdowns hang below it */
@media (min-width: 1100px) {
  #site-header>div { overflow: visible; }
}
.gn-chev { flex: none; opacity: 0.7; transition: transform 0.3s var(--ease-out); }
.gn-item.is-open > .gn-trigger .gn-chev { transform: rotate(180deg); }

.gn-menu { position: absolute; left: 50%; top: 100%; z-index: 5; padding-top: 14px; opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity 0.2s ease, transform 0.28s var(--ease-out), visibility 0s linear 0.2s; }
.gn-item.is-open > .gn-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.gn-menu-panel { display: flex; flex-direction: column; gap: 2px; min-width: 220px; padding: 8px; border-radius: 20px; background: rgb(var(--bg-rgb) / 0.95); box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.75), inset 0 0 0 1px rgb(var(--ink) / 0.07); }
.gn-menu a { display: block; padding: 0.7rem 1rem; border-radius: 14px; font-size: 13px; letter-spacing: 0; text-transform: none; white-space: nowrap; color: rgb(var(--fg-rgb) / 0.78); transition: background-color 0.2s ease, color 0.2s ease; }
.gn-menu a:hover, .gn-menu a:focus-visible { background: rgb(var(--ink) / 0.09); color: var(--color-fg); outline: none; }
.gn-menu a:focus-visible { box-shadow: inset 0 0 0 2px #059669; }
.gn-menu a[aria-current="page"] { color: var(--em); }

#site-header.nav-light .gn-menu-panel { background: rgb(var(--ink) / 0.97); box-shadow: 0 24px 60px -18px rgba(23, 23, 23, 0.3), inset 0 0 0 1px rgba(23, 23, 23, 0.06); }
#site-header.nav-light .gn-menu a { color: rgba(23, 23, 23, 0.72); }
#site-header.nav-light .gn-menu a:hover, #site-header.nav-light .gn-menu a:focus-visible { background: rgba(23, 23, 23, 0.07); color: #171717; }
#site-header.nav-light .gn-menu a[aria-current="page"] { color: #047857; }

@media (prefers-reduced-motion: reduce) {
  .gn-menu, .gn-chev { transition-duration: 0.01s; }
}

/* Services list: title and summary on the left, the capabilities on the right */
.fx-svcs .fx-def dd { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); grid-template-rows: auto 1fr; align-items: start; row-gap: 0.75rem; }
.fx-svcs .fx-def dd h3 { grid-column: 1; }
.fx-svcs .fx-def dd p { grid-column: 1; max-width: 34ch; }
.fx-svcs .fx-def dd .fx-list { grid-column: 2; grid-row: 1 / span 2; margin-top: 0.3rem; max-width: 62ch; }
.fx-svcs .fx-def dd .fx-list li { font-size: 14px; line-height: 1.7; }
@media (max-width: 860px) {
  .fx-svcs .fx-def dd { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .fx-svcs .fx-def dd .fx-list { grid-column: 1; grid-row: auto; margin-top: 0.75rem; }
  .fx-svcs .fx-def dd p { max-width: none; }
}

/* Cost comparison: the scenario note sits under its name */
.tco-note { display: block; margin-top: 0.4rem; max-width: 34ch; font-size: 12px; font-weight: 400; line-height: 1.6; color: var(--color-fg-muted); }
.tco-table td { white-space: nowrap; }
.tco-table tbody tr.is-us th, .tco-table tbody tr.is-us td { color: var(--color-fg); }
@media (min-width: 861px) { .tco-table thead th:first-child { width: 24%; } }

/* Contact button in the nav: flat green pill with a diagonal arrow that flies off and back in on hover */
.fx-nav-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  height: 2.4rem;
  padding: 0 1rem 0 1.1rem;
  overflow: hidden;
  border-radius: 999px;
  background: #059669;
  color: #fff;
  font-family: var(--font-jetbrains-mono), monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background-color 0.25s ease, transform 0.2s ease;
}
.fx-nav-cta:hover { background: #047857; }
.fx-nav-cta:active { transform: scale(0.98); }
.fx-nav-cta:focus-visible { outline: 2px solid var(--em); outline-offset: 3px; }
.fx-nav-cta-ar { flex: none; }
.fx-nav-cta:hover .fx-nav-cta-ar { animation: fx-cta-fly 0.5s ease; }
@keyframes fx-cta-fly {
  0% { transform: translate(0, 0); opacity: 1; }
  45% { transform: translate(9px, -9px); opacity: 0; }
  46% { transform: translate(-9px, 9px); opacity: 0; }
  100% { transform: translate(0, 0); opacity: 1; }
}
.fx-nav-cta-block { display: flex; justify-content: center; width: 100%; height: 2.9rem; }
@media (prefers-reduced-motion: reduce) {
  .fx-nav-cta:hover .fx-nav-cta-ar { animation: none; }
}

/* Rail title: never hyphenated, and sized to stay on one line on phones */
[data-method-intro] h2 { -webkit-hyphens: none; hyphens: none; overflow-wrap: normal; word-break: normal; white-space: nowrap; }
@media (max-width: 640px) {
  [data-method-intro] h2.text-display-xl { font-size: clamp(30px, 10.2vw, 80px) !important; }
}

/* Mobile menu on the white nav: dark hamburger and dark menu text */
#site-header.nav-light .hamburger-line { background-color: #171717; }
#site-header.nav-light #mobile-nav-panel a:not(.fx-nav-cta) { color: rgba(23, 23, 23, 0.72) !important; }
#site-header.nav-light #mobile-nav-panel a[class*="text-accent"] { color: #047857 !important; }
#site-header.nav-light #mobile-nav-panel a:not(.fx-nav-cta):hover { background-color: rgba(23, 23, 23, 0.05); }
#site-header.nav-light #mobile-nav-panel li[aria-hidden="true"] { color: rgba(23, 23, 23, 0.45); }
#site-header.nav-light #mobile-nav-panel ul { border-color: rgba(23, 23, 23, 0.12); }

/* Mobile menu: collapsible groups, and the page stays put while the sheet is open */
.mob-group-btn { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 0.75rem 0.75rem; border-radius: 6px; font-family: var(--font-jetbrains-mono), monospace; font-size: 13px; text-transform: uppercase; letter-spacing: var(--tracking-label-tight, 0.08em); color: inherit; background: transparent; cursor: pointer; }
.mob-group-btn[aria-expanded="true"] { color: var(--color-fg); }
.mob-group-chev { display: inline-flex; transition: transform 0.25s ease; }
.mob-group-sub { overflow: hidden; transition: max-height 0.3s ease; }
html.nav-sheet-open, html.nav-sheet-open body { overflow: hidden; }
#mobile-nav-panel ul { overscroll-behavior: contain; touch-action: pan-y; }
#site-header.nav-light .mob-group-btn { color: rgba(23, 23, 23, 0.72); }
#site-header.nav-light .mob-group-btn[aria-expanded="true"] { color: #171717; }


/* ---------- Light theme ----------
   Set on <html> by the inline script in head.html (OS preference, then the stored choice)
   and by the toggle in the header (initThemeToggle in script.js). */
html[data-theme="light"] {
  color-scheme: light;
  --color-bg: #f0f0f8;
  --color-fg: #171717;
  --color-fg-secondary: #171717a6;
  --color-fg-muted: #17171780;
  --color-accent: #047857;
  --color-border: #00000019;
  --color-border-soft: #0000000d;
  --color-border-strong: #00000030;
  --ink: 23 23 23;
  --bg-rgb: 240 240 248;
  --fg-rgb: 23 23 23;
  --em: #047857;
  --em-soft: #059669;
  --amber: #b45309;
  --amber-soft: #92400e;
  --red: #dc2626;
  --method-panel: #171717;
  --fx-accent-soft: rgba(4, 120, 87, 0.12);
  background-color: #f0f0f8;
  color: #171717;
}

/* Theme toggle */
.fx-theme-toggle { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: 999px; color: var(--color-fg); background: transparent; border: 0; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; }
.fx-theme-toggle:hover { background: rgb(var(--ink) / 0.09); }
.fx-theme-toggle:focus-visible { outline: 2px solid var(--em); outline-offset: 2px; }
.fx-theme-toggle svg { position: absolute; transition: opacity 0.25s ease, transform 0.35s ease; }
.fx-theme-toggle .fx-theme-moon { opacity: 0; transform: rotate(-60deg) scale(0.6); }
html[data-theme="light"] .fx-theme-toggle .fx-theme-sun { opacity: 0; transform: rotate(60deg) scale(0.6); }
html[data-theme="light"] .fx-theme-toggle .fx-theme-moon { opacity: 1; transform: none; }
#site-header.nav-light .fx-theme-toggle { color: #171717; }
#site-header.nav-light .fx-theme-toggle:hover { background: rgba(23, 23, 23, 0.07); }

/* The header's two glass looks (nav-light = white glass, default = dark glass) were designed against the
   dark palette, so inside the header the dark tokens are pinned on both themes. On the light theme the
   header is nav-light, or nav-dark while the dark method-rail panel is behind it. */
#site-header.nav-light,
#site-header.nav-dark {
  --color-bg: #171717;
  --color-fg: #f0f0f8;
  --color-fg-secondary: #f0f0f88c;
  --color-fg-muted: #f0f0f87a;
  --color-border: #ffffff1a;
  --color-border-soft: #ffffff0d;
  --color-border-strong: #ffffff26;
  --color-accent: #059669;
  --ink: 255 255 255;
  --bg-rgb: 23 23 23;
  --fg-rgb: 240 240 248;
  --em: #34d399;
  color: #f0f0f8;
}

/* Light theme: surfaces that were tinted with black or white for the dark palette */
html[data-theme="light"] .fx-pipeline { background: rgb(var(--fg-rgb) / 0.03); }

html[data-theme="light"] .cv-card { fill: #fff; }
html[data-theme="light"] .cv-node.is-run .cv-card { fill: #e3f5ec; }
html[data-theme="light"] .bg-white\/10 { background-color: rgb(var(--ink) / 0.08); }
html[data-theme="light"] .text-fg\/30 { color: rgb(var(--fg-rgb) / 0.5); }

/* Light theme: hero capsule and request ribbon */
html[data-theme="light"] .fx-hero-pill { background: rgb(255 255 255 / 0.62); box-shadow: 0 10px 30px -14px rgb(23 23 23 / 0.2); }
html[data-theme="light"] .fx-hero-pill > svg rect:not(.spark-trail-head) { stroke: rgb(23 23 23 / 0.22); }
html[data-theme="light"] .fx-hero-pill .spark-trail-head { stroke: #059669; }
html[data-theme="light"] .fx-pipeline { background: rgb(255 255 255 / 0.55); border-top-color: rgb(23 23 23 / 0.1); }
html[data-theme="light"] .fx-pipeline-label { color: rgb(23 23 23 / 0.7); }

/* Light theme: glass surfaces become clean white cards (the frosted grey was tuned for dark) */
html[data-theme="light"] :is(.fx-card, .fx-panel, .fx-figure, .fx-canvas-fig, .fx-table-wrap, .fx-channel, .fx-form, .fx-quad, .fx-btn:not(.fx-btn-primary)),
html[data-theme="light"] :is(.fx-card, .fx-panel, .fx-figure, .fx-canvas-fig, .fx-table-wrap, .fx-channel, .fx-form, .fx-quad, .fx-btn:not(.fx-btn-primary)).is-refracting {
  background: rgb(255 255 255 / 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgb(23 23 23 / 0.09), 0 12px 30px -18px rgb(23 23 23 / 0.22);
}
html[data-theme="light"] .fx-btn:not(.fx-btn-primary):hover {
  box-shadow: 0 0 0 1px rgb(5 150 105 / 0.45), 0 14px 32px -16px rgb(23 23 23 / 0.25);
}
html[data-theme="light"] .fx-chip { background: rgb(23 23 23 / 0.06); }
html[data-theme="light"] .qd-plot { background-color: rgb(255 255 255 / 0.6); box-shadow: 0 0 0 1px rgb(23 23 23 / 0.09); }

/* Light theme: closing banner is a white glass card like the others */
html[data-theme="light"] .fx-cta,
html[data-theme="light"] .fx-cta:hover {
  background: rgb(255 255 255 / 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgb(23 23 23 / 0.09), 0 24px 60px -30px rgb(23 23 23 / 0.28);
}
html[data-theme="light"] .fx-cta-btn { background: #171717; color: #fff; box-shadow: 0 0 0 6px rgb(23 23 23 / 0.06); }
html[data-theme="light"] .fx-cta-btn:hover { background: var(--color-accent); box-shadow: 0 0 0 9px rgba(5, 150, 105, 0.18); }
html[data-theme="light"] .fx-cta-title,
html[data-theme="light"] .fx-cta-note a { color: var(--color-fg); }
html[data-theme="light"] .fx-cta-note a:hover { color: var(--color-accent); }
html[data-theme="light"] .fx-cta-hl { color: var(--color-accent); }

/* Light theme: footer marquee & watermark */
html[data-theme="light"] .fx-marquee-text,
html[data-theme="light"] [data-framework-marquee] svg text:not([visibility="hidden"]) {
  fill: rgb(var(--ink) / 0.28);
}
html[data-theme="light"] .fx-marquee-text tspan,
html[data-theme="light"] [data-framework-marquee] svg tspan {
  fill: var(--color-accent);
}
html[data-theme="light"] .fx-watermark text {
  fill: rgb(var(--ink) / 0.06);
}
