/*
 * JOMALIQ Premium Ecosystem — 2026
 * Shared design tokens and components loaded after the historical stylesheet.
 */

:root {
  /*
   * Semantic contrast tokens. Components must declare their surface and select
   * text/link/focus tokens from the matching family instead of inheriting a
   * color from an unrelated ancestor.
   */
  --surface-light: #ffffff;
  --surface-light-soft: #f5f7fb;
  --surface-light-hover: #eef3ff;
  --surface-light-active: #e1e9ff;
  --surface-dark: #02040a;
  --surface-dark-soft: #090d16;
  --text-on-light-primary: #11141b;
  --text-on-light-secondary: #4f5867;
  --text-on-light-muted: #626975;
  --text-on-dark-primary: #ffffff;
  --text-on-dark-secondary: #e2e7f0;
  --text-on-dark-muted: #c4ccd9;
  --border-on-light: rgba(17, 20, 27, 0.2);
  --border-on-dark: rgba(255, 255, 255, 0.24);
  --link-on-light: #082589;
  --link-on-light-hover: #174ee7;
  --link-on-dark: #a9c4ff;
  --link-on-dark-hover: #ffffff;
  --focus-on-light: #174ee7;
  --focus-on-dark: #7fa3ff;

  /* Backward-compatible aliases for existing components. */
  --text-on-light: var(--text-on-light-primary);
  --text-muted-on-light: var(--text-on-light-secondary);
  --text-on-dark: var(--text-on-dark-primary);
  --text-muted-on-dark: var(--text-on-dark-secondary);
  --focus-ring: var(--focus-on-light);

  --premium-ink: var(--surface-dark);
  --premium-ink-soft: #090d16;
  --premium-paper: var(--surface-light);
  --premium-paper-soft: var(--surface-light-soft);
  --premium-text: var(--text-on-light);
  --premium-muted: var(--text-muted-on-light);
  --premium-line: var(--border-on-light);
  --premium-line-dark: var(--border-on-dark);
  --premium-blue: #082589;
  --premium-blue-bright: #174ee7;
  --premium-success: #16835b;
  --premium-warn: #936d22;
  --premium-display: Georgia, "Times New Roman", serif;
  --premium-ui: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --premium-container: min(100% - clamp(32px, 7vw, 128px), 1440px);
  --premium-reading: 72ch;
  --premium-section: clamp(76px, 10vw, 156px);
  --premium-radius-sm: 8px;
  --premium-radius-md: 16px;
  --premium-radius-lg: 28px;
  --premium-ease: cubic-bezier(0.2, 0.75, 0.2, 1);
  --premium-fast: 160ms;
  --premium-normal: 320ms;
}

/*
 * Surface contract for legacy information panels. The historical stylesheet
 * applies a late translucent card background to every panel; these explicit
 * pairings ensure variants cannot keep light text when that generic rule wins.
 */
.info-panel {
  background-color: var(--surface-light);
  color: var(--text-on-light-primary);
}

.info-panel p {
  color: var(--text-on-light-secondary);
}

.info-panel--blue {
  background: var(--premium-blue);
  color: var(--text-on-dark-primary);
}

.info-panel--blue h2,
.info-panel--blue h3,
.info-panel--blue p {
  color: var(--text-on-dark-primary);
}

html {
  scroll-padding-top: 88px;
}

body {
  overflow-x: clip;
}

body.nav-open {
  overflow: hidden;
}

.premium-site {
  background: var(--premium-paper);
  color: var(--premium-text);
  font-family: var(--premium-ui);
  font-size: clamp(1rem, 0.25vw + 0.95rem, 1.125rem);
  line-height: 1.65;
}

.premium-site .container {
  width: var(--premium-container);
  max-width: none;
}

.premium-site h1,
.premium-site h2,
.premium-site h3,
.premium-site p {
  text-wrap: pretty;
}

.premium-site h1,
.premium-site h2 {
  font-family: var(--premium-display);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.premium-site h1 {
  font-size: clamp(3.4rem, 8.2vw, 8.4rem);
  line-height: 0.94;
}

.premium-site h2 {
  font-size: clamp(2.3rem, 5vw, 5.2rem);
  line-height: 1;
}

.premium-site h3 {
  font-family: var(--premium-ui);
  font-size: clamp(1.15rem, 1.5vw, 1.45rem);
  line-height: 1.25;
}

.premium-site .section {
  padding-block: var(--premium-section);
}

.premium-site .section__header {
  max-width: 900px;
  margin-bottom: clamp(40px, 7vw, 86px);
}

.premium-site .section__header--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: end;
  gap: clamp(28px, 8vw, 120px);
}

.section-label {
  display: inline-block;
  margin-bottom: 18px;
  color: currentColor;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.skip-link {
  z-index: 10000;
}

:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
}

/* Global premium navigation */
.topbar {
  display: none !important;
}

.site-header {
  min-height: 72px;
  background: rgba(2, 4, 10, 0.94);
  border-bottom: 1px solid var(--premium-line-dark);
  color: #fff;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header .navbar {
  width: var(--premium-container);
  max-width: none;
  min-height: 72px;
  padding-block: 0;
  display: grid;
  grid-template-columns: minmax(126px, 0.7fr) auto minmax(164px, 0.7fr);
  gap: clamp(20px, 3vw, 46px);
}

.site-header .brand {
  color: #fff;
  min-width: 0;
}

.site-header .brand-mark {
  width: 38px;
  height: 38px;
}

.site-header .brand strong,
.site-header .brand small {
  color: inherit;
}

.brand--premium {
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand--premium .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 0;
}

.brand--premium .brand-wordmark {
  display: block;
  font-family: var(--premium-display);
  font-size: 1.18rem;
  letter-spacing: 0.04em;
}

.site-header .nav-menu {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.6vw, 28px);
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.site-header .nav-menu > a,
.site-header .platform-mega > summary {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--premium-ui);
  font-size: clamp(0.76rem, 0.8vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

.site-header .nav-menu > a::after,
.site-header .platform-mega > summary::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: #4d7cff;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--premium-fast) ease;
}

.site-header .nav-menu > a:hover,
.site-header .nav-menu > a:focus-visible,
.site-header .nav-menu > a[aria-current="page"],
.site-header .platform-mega > summary:hover,
.site-header .platform-mega > summary:focus-visible,
.site-header .platform-mega > summary[aria-current="page"] {
  color: #fff;
}

.site-header .nav-menu > a:hover::after,
.site-header .nav-menu > a:focus-visible::after,
.site-header .nav-menu > a[aria-current="page"]::after,
.site-header .platform-mega > summary:hover::after,
.site-header .platform-mega > summary:focus-visible::after,
.site-header .platform-mega > summary[aria-current="page"]::after {
  transform: scaleX(1);
}

.platform-mega {
  position: static;
}

.platform-mega > summary {
  cursor: pointer;
  list-style: none;
}

.platform-mega > summary::-webkit-details-marker {
  display: none;
}

.platform-mega > summary span {
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--premium-fast) ease;
}

.platform-mega[open] > summary span {
  transform: rotate(225deg) translate(-2px, -1px);
}

.platform-mega__panel {
  --surface-background: var(--surface-light);
  --surface-text-primary: var(--text-on-light);
  --surface-text-secondary: var(--text-muted-on-light);
  --surface-link: var(--link-on-light);
  --surface-link-hover: var(--link-on-light-hover);
  position: absolute;
  z-index: 40;
  top: calc(100% + 1px);
  left: 50%;
  width: min(1100px, calc(100vw - 40px));
  padding: clamp(26px, 4vw, 52px);
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: clamp(30px, 6vw, 80px);
  isolation: isolate;
  color: var(--surface-text-primary);
  background: var(--surface-background);
  border: 1px solid var(--border-on-light);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28);
  transform: translateX(-50%);
}

.platform-mega__intro p {
  margin: 0 0 16px;
  font-family: var(--premium-display);
  font-size: clamp(2rem, 3vw, 3.5rem);
  line-height: 1;
}

.platform-mega__intro a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--surface-link);
  font-size: 0.9rem;
  font-weight: 750;
}

.platform-mega__intro a:visited {
  color: var(--surface-link);
}

.platform-mega__intro a:hover,
.platform-mega__intro a:focus-visible {
  color: var(--surface-link-hover);
}

.platform-mega__groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 44px;
}

.platform-mega__group h3 {
  margin: 0 0 10px;
  color: var(--surface-text-secondary);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.platform-mega__group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.platform-mega__group a {
  min-height: 44px;
  display: flex;
  align-items: center;
  margin-inline: -10px;
  padding: 8px 10px;
  border-radius: var(--premium-radius-sm);
  color: var(--surface-text-primary);
  font-size: 0.9rem;
  text-decoration: none;
  transition: none;
}

.platform-mega__group a:visited {
  color: var(--surface-text-primary);
}

.platform-mega__group a:hover,
.platform-mega__group a:focus-visible {
  color: var(--surface-link-hover);
  background: var(--surface-light-hover);
}

.platform-mega__group a:active {
  color: var(--surface-link);
  background: var(--surface-light-active);
}

.platform-mega__group a[aria-current="page"],
.platform-mega__group a[aria-current="page"]:visited {
  color: var(--text-on-dark);
  background: var(--premium-blue);
  font-weight: 800;
}

.platform-mega__group a[aria-current="page"]:hover,
.platform-mega__group a[aria-current="page"]:focus-visible {
  color: var(--text-on-dark);
  background: #061d70;
}

.nav-primary-cta {
  justify-self: end;
  min-height: 44px;
  padding-inline: clamp(14px, 2vw, 24px);
  font-size: 0.82rem;
}

.site-header.is-scrolled {
  background: rgba(2, 4, 10, 0.98);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.24);
}

/* Buttons */
.btn {
  min-height: 48px;
  border-radius: 0;
  font-family: var(--premium-ui);
  font-size: 0.88rem;
  font-weight: 720;
  letter-spacing: 0;
  box-shadow: none;
  transform: none;
  transition: none;
}

.btn:hover,
.btn:focus-visible {
  transform: none;
  box-shadow: none;
}

.btn--primary,
.btn--primary:visited {
  color: var(--text-on-dark-primary);
  background: var(--premium-blue);
  border-color: var(--premium-blue);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: #174ee7;
  border-color: #174ee7;
}

.btn--ghost {
  color: var(--premium-text);
  background: transparent;
  border-color: var(--premium-line);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: #fff;
  background: var(--premium-ink);
  border-color: var(--premium-ink);
}

.btn--light {
  color: var(--premium-ink);
  background: #fff;
  border-color: #fff;
}

.btn--light:hover,
.btn--light:focus-visible {
  color: #fff;
  background: var(--premium-blue-bright);
  border-color: var(--premium-blue-bright);
}

.btn--outline-light {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.56);
}

.btn--outline-light:hover,
.btn--outline-light:focus-visible {
  color: var(--premium-ink);
  background: #fff;
  border-color: #fff;
}

.link-arrow {
  color: inherit;
  font-size: 0.9rem;
  font-weight: 750;
}

.link-arrow::after {
  content: "↗";
  margin-left: 0.55em;
}

/* Premium footer */
.footer--premium,
.footer {
  position: relative;
  padding: 0;
  color: rgba(255, 255, 255, 0.72);
  background: var(--premium-ink);
  border-top: 1px solid var(--premium-line-dark);
}

.footer--premium .footer__inner {
  width: var(--premium-container);
  max-width: none;
  padding-block: clamp(58px, 8vw, 112px) 28px;
}

.footer-premium__lead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: clamp(44px, 7vw, 88px);
  border-bottom: 1px solid var(--premium-line-dark);
}

.footer-premium__wordmark {
  color: #fff;
  font-family: var(--premium-display);
  font-size: clamp(1.7rem, 2.5vw, 2.5rem);
  letter-spacing: 0.05em;
}

.footer-premium__lead p {
  max-width: 42ch;
  margin: 20px 0 8px;
}

.footer-premium__lead strong {
  color: #fff;
  font-family: var(--premium-display);
  font-size: clamp(1.6rem, 3vw, 3rem);
  font-weight: 400;
}

.footer--premium .btn--light {
  color: var(--premium-ink);
}

.footer--premium .btn--light:hover,
.footer--premium .btn--light:focus-visible {
  color: #fff;
}

.footer-premium__platforms {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding-block: clamp(42px, 6vw, 72px);
  border-bottom: 1px solid var(--premium-line-dark);
}

.footer-premium__platforms h3,
.footer-premium__utility h3 {
  margin: 0 0 14px;
  color: var(--footer-heading, #d4af37);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-premium__platforms ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-premium__platforms a,
.footer-premium__utility a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  color: var(--footer-link, #dce6ff);
  font-size: 0.86rem;
}

.footer-premium__platforms a:hover,
.footer-premium__platforms a:focus-visible,
.footer-premium__utility a:hover,
.footer-premium__utility a:focus-visible {
  color: var(--footer-link-hover-text, #fff);
  background: var(--footer-link-hover-bg, #172b4f);
}

.footer-platform-group h3 { color: var(--footer-heading, #fff); }
.footer-platform-group ul { margin: 0; padding: 0; list-style: none; }
.footer-platform-group a {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin-inline: -10px;
  padding: 8px 10px;
  border-radius: var(--premium-radius-sm, 13px);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-premium__utility {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
  padding-block: clamp(36px, 5vw, 62px);
}

.footer-premium__utility nav,
.footer-premium__utility > div {
  display: flex;
  flex-direction: column;
}

.footer--premium .footer__bottom {
  padding-top: 24px;
  border-top: 1px solid var(--premium-line-dark);
}

/* Homepage */
.premium-home-hero {
  position: relative;
  min-height: min(900px, calc(100svh - 72px));
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--premium-ink);
}

.premium-home-hero__grid {
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(20px, 2vw, 40px);
}

.premium-home-hero h1 {
  max-width: 780px;
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 6.4vw, 6.2rem);
  line-height: 1.02;
  text-wrap: balance;
}

.premium-home-hero h1::after {
  content: "";
  display: inline-block;
  width: 0.12em;
  height: 0.12em;
  margin-left: 0.05em;
  border-radius: 50%;
  background: var(--jomaliq-highlight, #d4af37);
}

.premium-home-hero p {
  max-width: 590px;
  margin: 32px 0 38px;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1.1rem, 1.8vw, 1.55rem);
  line-height: 1.45;
}

.premium-home-hero figure {
  width: min(70vw, 920px);
  margin: 0 -12vw 0 0;
}

.premium-home-hero figure img {
  width: 100%;
  height: auto;
}

.home-manifesto {
  background: #fff;
}

.home-manifesto .container {
  display: grid;
  grid-template-columns: 1.15fr 0.7fr;
  gap: 10vw;
  align-items: end;
}

.home-manifesto h2 {
  margin: 0;
}

.home-manifesto p {
  max-width: 58ch;
  margin: 0;
  color: var(--premium-muted);
  font-size: clamp(1.08rem, 1.4vw, 1.35rem);
}

.home-category-rail {
  background: var(--premium-paper-soft);
}

.home-category-rail .container > div:last-child {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--premium-line);
  border-bottom: 1px solid var(--premium-line);
}

.home-category-rail article {
  min-height: 280px;
  padding: clamp(24px, 3vw, 44px);
  border-right: 1px solid var(--premium-line);
}

.home-category-rail article:last-child {
  border-right: 0;
}

.home-category-rail article > span,
.home-method li > span {
  color: var(--premium-blue-bright);
  font-family: var(--premium-display);
  font-size: 2rem;
}

.home-category-rail h3 {
  margin-top: 46px;
}

.home-category-rail p {
  color: var(--premium-muted);
  font-size: 0.95rem;
}

.home-platforms {
  background: var(--premium-ink);
  color: #fff;
}

.home-platforms h2 {
  color: #fff;
}

.home-platforms .section__header p {
  color: rgba(255, 255, 255, 0.68);
}

.home-platform-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--premium-line-dark);
}

.home-platform {
  min-height: 160px;
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: center;
  gap: clamp(22px, 3vw, 42px);
  padding: clamp(22px, 3vw, 42px);
  color: #fff;
  border-right: 1px solid var(--premium-line-dark);
  border-bottom: 1px solid var(--premium-line-dark);
  transition: none;
}

.home-platform:nth-child(even) {
  border-right: 0;
}

.home-platform:hover,
.home-platform:focus-visible {
  background: rgba(8, 37, 137, 0.28);
}

.home-platform > span {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}

.home-platform img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.home-platform strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--premium-display);
  font-size: clamp(1.6rem, 2.4vw, 2.6rem);
  font-weight: 400;
}

.home-platform small {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
}

.home-trust {
  background: #fff;
}

.home-trust__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 10vw;
}

.home-trust__grid > div:last-child {
  border-top: 1px solid var(--premium-line);
}

.home-trust__grid a {
  min-height: 112px;
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  align-items: center;
  gap: 30px;
  color: var(--premium-text);
  border-bottom: 1px solid var(--premium-line);
}

.home-trust__grid a strong {
  font-family: var(--premium-display);
  font-size: clamp(1.5rem, 2vw, 2.25rem);
  font-weight: 400;
}

.home-trust__grid a span {
  color: var(--premium-muted);
  font-size: 0.92rem;
}

.home-method {
  background: var(--premium-paper-soft);
}

.home-method ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 44px;
  padding: 0;
  list-style: none;
  border-block: 1px solid var(--premium-line);
}

.home-method li {
  min-height: 260px;
  padding: clamp(24px, 3vw, 42px);
  border-right: 1px solid var(--premium-line);
}

.home-method li:last-child {
  border-right: 0;
}

.home-method li strong {
  display: block;
  margin: 38px 0 14px;
  font-family: var(--premium-display);
  font-size: clamp(1.7rem, 2.5vw, 2.8rem);
  font-weight: 400;
}

.home-method li p {
  color: var(--premium-muted);
  font-size: 0.92rem;
}

.home-partnership .container,
.premium-final-cta .container {
  display: grid;
  grid-template-columns: 1fr 0.65fr auto;
  align-items: end;
  gap: clamp(28px, 6vw, 90px);
}

.home-partnership h2,
.premium-final-cta h2 {
  margin: 0;
}

.home-partnership p,
.premium-final-cta p {
  margin: 0;
  color: var(--premium-muted);
}

.home-fati {
  color: #fff;
}

.home-fati > .container {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 4vw 8vw;
}

.home-fati > .container > div:first-child {
  grid-row: span 2;
}

.home-fati h2 {
  margin-top: 0;
}

.home-fati p,
.home-fati label {
  color: rgba(255, 255, 255, 0.74);
}

.home-fati .project-analyzer__form .field label,
.home-fati .project-analyzer__result h3,
.home-fati .project-analyzer__result p {
  color: rgba(255, 255, 255, 0.82);
}

.home-fati .project-analyzer__form,
.home-fati .project-analyzer__result {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--premium-line-dark);
  box-shadow: none;
}

.home-fati input,
.home-fati select,
.home-fati textarea {
  color: #fff;
  background: rgba(0, 0, 0, 0.24);
  border-color: var(--premium-line-dark);
}

.home-fati option {
  color: var(--premium-text);
}

.home-fati .project-analyzer__result {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 24px;
  padding: 28px;
}

.home-fati [data-project-score] {
  grid-row: span 3;
  color: #76a2ff;
  font-family: var(--premium-display);
  font-size: 3rem;
}

.home-fati [data-project-catalog] {
  grid-column: 1 / -1;
}

.home-fati [data-project-catalog] a {
  text-decoration: underline;
  text-underline-offset: .2em;
}

@media (max-width: 760px) {
  .home-fati .project-analyzer__result {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px;
  }

  .home-fati [data-project-score] {
    grid-row: auto;
  }
}

/* Directory */
.offering-paths {
  background: var(--surface-light);
  color: var(--text-on-light-primary);
}

.offering-paths__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
}

.offering-paths__grid article {
  padding: clamp(24px, 3vw, 42px);
  border: 1px solid var(--border-on-light);
  background: var(--surface-light-soft);
  color: var(--text-on-light-primary);
}

.offering-paths__grid article > span,
.client-project-card__category {
  color: var(--text-on-light-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.offering-paths__grid h3 {
  margin-block: 16px 10px;
  color: var(--text-on-light-primary);
}

.offering-paths__grid p,
.client-project-empty p,
.client-project-card p {
  color: var(--text-on-light-secondary);
}

.offering-paths__grid .link-arrow,
.client-project-card .link-arrow {
  color: var(--link-on-light);
}

.offering-paths__grid a:focus-visible,
.client-project-card a:focus-visible {
  outline: 3px solid var(--focus-on-light);
  outline-offset: 4px;
}

.client-solutions-hero .section-label,
.client-solutions-hero p {
  color: var(--text-on-dark-secondary);
}

.client-solutions-section {
  background: var(--surface-light);
  color: var(--text-on-light-primary);
}

.client-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 32px);
}

.client-project-card,
.client-project-empty {
  border: 1px solid var(--border-on-light);
  background: var(--surface-light-soft);
  color: var(--text-on-light-primary);
}

.client-project-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.client-project-card__body,
.client-project-empty {
  padding: clamp(24px, 3vw, 42px);
}

.client-project-card h3,
.client-project-empty h3 {
  color: var(--text-on-light-primary);
}

.client-project-empty {
  max-width: 72ch;
}

.client-project-empty .section-label {
  color: var(--text-on-light-secondary);
}

.client-project-empty__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 26px;
}

.client-project-empty__actions .link-arrow {
  color: var(--link-on-light);
}

.client-project-empty__actions a:focus-visible {
  outline: 3px solid var(--focus-on-light);
  outline-offset: 4px;
}

@media (max-width: 800px) {
  .offering-paths__grid,
  .client-project-grid {
    grid-template-columns: 1fr;
  }
}

.ecosystem-directory-hero {
  min-height: min(650px, calc(100svh - 72px));
  display: grid;
  align-items: end;
  padding-block: clamp(110px, 13vw, 190px) clamp(72px, 9vw, 120px);
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(23, 78, 231, 0.28), transparent 30%),
    var(--premium-ink);
}

.ecosystem-directory-hero h1 {
  max-width: 1100px;
  margin: 0;
  color: #fff;
}

.ecosystem-directory-hero p {
  max-width: 650px;
  margin: 30px 0 36px;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.platform-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.platform-filters button {
  min-height: 44px;
  padding: 9px 14px;
  color: var(--premium-muted);
  background: transparent;
  border: 1px solid var(--premium-line);
  border-radius: 0;
  font: 650 0.78rem/1.2 var(--premium-ui);
}

.platform-filters button:hover,
.platform-filters button:focus-visible,
.platform-filters button[aria-pressed="true"] {
  color: #fff;
  background: var(--premium-blue);
  border-color: var(--premium-blue);
}

.ecosystem-index {
  border-top: 1px solid var(--premium-line);
}

.ecosystem-row {
  display: grid;
  grid-template-columns: 0.75fr 1.1fr 1.5fr auto;
  gap: clamp(18px, 3vw, 48px);
  align-items: center;
  min-height: 150px;
  padding-block: 20px;
  border-bottom: 1px solid var(--premium-line);
}

.ecosystem-row[hidden] {
  display: none;
}

.ecosystem-row__category {
  color: var(--premium-muted);
  font-size: 0.78rem;
}

.ecosystem-row__brand {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 18px;
}

.ecosystem-row__mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
}

.ecosystem-row__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.ecosystem-row h3 {
  margin: 0 0 6px;
}

.ecosystem-row h3 a {
  color: var(--premium-text);
  font-family: var(--premium-display);
  font-size: clamp(1.55rem, 2.3vw, 2.6rem);
  font-weight: 400;
}

.ecosystem-row > p {
  margin: 0;
  color: var(--premium-muted);
  font-size: 0.9rem;
}

.status {
  display: inline-block;
  color: var(--premium-muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.status--active {
  color: var(--premium-success);
}

.status--reveal {
  color: #58749e;
}

.filter-status {
  margin-top: 22px;
  color: var(--premium-muted);
  font-size: 0.8rem;
}

.ecosystem-flywheel {
  color: #fff;
  background: var(--premium-ink);
}

.ecosystem-flywheel h2 {
  color: #fff;
}

.section--dark.premium-final-cta p {
  color: rgba(255, 255, 255, 0.7);
}

.flywheel-layout {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 8vw;
  align-items: center;
}

.flywheel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--premium-line-dark);
}

.flywheel li {
  min-height: 220px;
  padding: 30px;
  border-right: 1px solid var(--premium-line-dark);
  border-bottom: 1px solid var(--premium-line-dark);
}

.flywheel li:nth-child(even) {
  border-right: 0;
}

.flywheel li:nth-child(n + 3) {
  border-bottom: 0;
}

.flywheel span {
  color: #5d86f5;
  font-family: var(--premium-display);
  font-size: 2rem;
}

.flywheel strong {
  display: block;
  margin: 34px 0 10px;
  font-family: var(--premium-display);
  font-size: 1.7rem;
  font-weight: 400;
}

.flywheel small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.85rem;
}

/* Platform details */
.platform-page {
  --platform-a: #07102b;
  --platform-b: #174ee7;
  --platform-c: #9cc8ff;
  --platform-content-accent: var(--platform-b);
  --platform-role-surface: var(--platform-a);
  --platform-cta-surface: var(--platform-b);
  --platform-cta-text: var(--text-on-dark-primary);
  background: #fff;
}

.platform-hero {
  position: relative;
  min-height: min(760px, calc(100svh - 72px));
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 75% 35%, color-mix(in srgb, var(--platform-b) 36%, transparent), transparent 30%),
    var(--platform-a);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 26px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.74rem;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.76);
}

.platform-hero__grid {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 7vw;
}

.platform-hero__copy {
  min-width: 0;
  overflow-wrap: anywhere;
}

.platform-lockup {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 36px;
  color: var(--platform-c);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.platform-lockup img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
}

.platform-lockup .platform-symbol--reveal {
  font-size: 0;
}

.platform-lockup .platform-symbol--reveal::before {
  content: "◌";
  font-size: 44px;
}

.platform-hero h1 {
  max-width: 780px;
  margin: 0;
  color: #fff;
  font-size: clamp(3.3rem, 7.2vw, 7.2rem);
}

.platform-hero__copy > p {
  max-width: 610px;
  margin: 28px 0 38px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.08rem, 1.7vw, 1.45rem);
}

.btn--platform,
.btn--platform:visited {
  color: var(--platform-cta-text);
  background: var(--platform-cta-surface);
  border-color: var(--platform-cta-surface);
}

.btn--platform:hover,
.btn--platform:focus-visible {
  color: var(--platform-cta-text);
  background: color-mix(in srgb, var(--platform-cta-surface) 84%, #000);
  border-color: color-mix(in srgb, var(--platform-cta-surface) 84%, #000);
}

.platform-hero__visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 620px;
  margin-left: auto;
}

.platform-orbit {
  position: absolute;
  inset: 50%;
  border: 1px solid color-mix(in srgb, var(--platform-c) 42%, transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.platform-orbit::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -7px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--platform-c);
  box-shadow: 0 0 22px color-mix(in srgb, var(--platform-c) 70%, transparent);
}

.platform-orbit--one {
  width: 36%;
  height: 36%;
}

.platform-orbit--two {
  width: 64%;
  height: 64%;
  transform: translate(-50%, -50%) rotate(28deg);
}

.platform-orbit--three {
  width: 92%;
  height: 92%;
  transform: translate(-50%, -50%) rotate(-22deg);
}

.platform-hero__monogram {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-family: var(--premium-display);
  font-size: clamp(6rem, 13vw, 11rem);
  text-shadow: 0 0 56px color-mix(in srgb, var(--platform-b) 70%, transparent);
}

.platform-overview__grid,
.platform-capabilities__grid,
.platform-role__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 10vw;
}

.platform-overview h2,
.platform-capabilities h2,
.platform-role h2 {
  margin-top: 0;
}

.platform-overview p,
.platform-role p {
  max-width: var(--premium-reading);
  color: var(--premium-muted);
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
}

.platform-overview aside {
  padding: 34px;
  border-left: 1px solid var(--premium-line);
}

.platform-overview aside h3 {
  margin-top: 0;
}

.platform-overview aside ul,
.platform-capabilities ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.platform-overview aside li {
  padding-block: 12px;
  border-bottom: 1px solid var(--premium-line);
}

.platform-pillars {
  background: color-mix(in srgb, var(--platform-c) 8%, #fff);
}

.platform-pillars ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-block: 1px solid var(--premium-line);
}

.platform-pillars li {
  min-height: 210px;
  padding: clamp(20px, 3vw, 36px);
  border-right: 1px solid var(--premium-line);
}

.platform-pillars li:last-child {
  border-right: 0;
}

.platform-pillars li span {
  color: var(--platform-content-accent);
  font-family: var(--premium-display);
  font-size: 1.7rem;
}

.platform-pillars li strong {
  display: block;
  margin-top: 72px;
  font-size: 1rem;
}

.platform-capabilities ul {
  border-top: 1px solid var(--premium-line);
}

.platform-capabilities li {
  padding: 22px 0 22px 34px;
  border-bottom: 1px solid var(--premium-line);
  position: relative;
}

.platform-capabilities li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--platform-b);
}

.platform-fati-assist {
  color: var(--premium-text);
  background: color-mix(in srgb, var(--platform-c) 10%, #fff);
}

.platform-fati-assist__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: center;
}

.platform-fati-assist h2 {
  max-width: 740px;
  margin: 8px 0 16px;
}

.platform-fati-assist p {
  max-width: var(--premium-reading);
  color: var(--premium-muted);
  font-size: clamp(1rem, 1.25vw, 1.2rem);
}

.platform-fati-assist aside {
  padding: clamp(24px, 4vw, 42px);
  border-radius: 12px;
  color: #fff;
  background: var(--premium-ink);
  box-shadow: 0 24px 64px rgba(2, 4, 10, 0.18);
}

.platform-fati-assist aside strong {
  display: block;
  color: #fff;
  font-family: var(--premium-display);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.platform-fati-assist aside p {
  margin: 12px 0 22px;
  color: var(--text-muted-on-dark);
  font-size: 0.92rem;
}

.fati-core-status {
  color: var(--premium-text);
  background: #f4f6ff;
}

.fati-core-status__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: stretch;
}

.fati-core-status__available,
.fati-core-status__limits {
  padding: clamp(26px, 4vw, 46px);
  border-radius: 16px;
}

.fati-core-status__available {
  color: var(--premium-text);
  background: var(--surface-light);
  border: 1px solid var(--premium-line);
  box-shadow: 0 22px 60px rgba(2, 4, 10, 0.08);
}

.fati-core-status__limits {
  color: var(--text-on-dark-primary);
  background: var(--surface-dark);
}

.fati-core-status h3 {
  margin: 20px 0;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
}

.fati-core-status__limits h3 {
  color: var(--text-on-dark-primary);
}

.fati-core-status ul {
  display: grid;
  gap: 0;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.fati-core-status li {
  display: grid;
  gap: 5px;
  padding-block: 15px;
  border-bottom: 1px solid var(--premium-line);
}

.fati-core-status li:last-child {
  border-bottom: 0;
}

.fati-core-status__available li span {
  color: var(--premium-muted);
}

.fati-core-status__limits li {
  position: relative;
  padding-left: 24px;
  color: var(--text-muted-on-dark);
  border-color: var(--premium-line-dark);
}

.fati-core-status__limits li::before {
  position: absolute;
  top: 16px;
  left: 0;
  content: "—";
  color: #9cc8ff;
}

.fati-core-status__limits p {
  margin: 0;
  color: var(--text-muted-on-dark);
  font-size: 0.92rem;
}

.fati-core-status .status--planned {
  color: #13284c;
  background: #dce8ff;
}

.platform-role {
  color: #fff;
  background: var(--platform-role-surface);
}

.platform-role h2,
.platform-role h3 {
  color: #fff;
}

.platform-role p {
  color: var(--text-muted-on-dark);
}

.related-platforms {
  border-top: 1px solid var(--premium-line-dark);
}

.related-platform {
  min-height: 100px;
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 22px;
  padding-block: 16px;
  color: #fff;
  border-bottom: 1px solid var(--premium-line-dark);
}

.related-platform > span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
}

.related-platform img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.related-platform strong,
.related-platform small {
  display: block;
}

.related-platform small {
  color: var(--text-muted-on-dark);
  font-size: 0.76rem;
}

.platform-status {
  background: #fff;
}

.platform-status .container {
  display: grid;
  grid-template-columns: 0.55fr 1.25fr auto;
  align-items: center;
  gap: 6vw;
  padding-block: 30px;
  border-block: 1px solid var(--premium-line);
}

.platform-status span,
.platform-status strong {
  display: block;
}

.platform-status span {
  color: var(--premium-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.platform-status strong {
  margin-top: 6px;
}

.platform-status p {
  margin: 0;
  color: var(--premium-muted);
  font-size: 0.86rem;
}



.platform-page--academy,
.platform-page--permivo {
  --platform-cta-surface: var(--platform-a);
}

.platform-page--naturae .platform-hero {
  background:
    radial-gradient(ellipse at 74% 50%, rgba(183, 201, 144, 0.22), transparent 34%),
    linear-gradient(120deg, #071a11, var(--platform-a));
}

.platform-page--zoroa .platform-hero {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(93, 23, 36, 0.36)),
    var(--platform-a);
}

/* Method, partnerships, legal */
.page-hero--premium {
  min-height: min(660px, calc(100svh - 72px));
  display: grid;
  align-items: end;
  padding-block: clamp(120px, 14vw, 200px) clamp(74px, 9vw, 120px);
  color: #fff;
  background:
    radial-gradient(circle at 84% 26%, rgba(23, 78, 231, 0.28), transparent 28%),
    var(--premium-ink);
}

.page-hero--premium h1 {
  max-width: 1120px;
  margin: 0;
  color: #fff;
}

.page-hero--premium p {
  max-width: 700px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
}

.page-hero--premium .btn {
  margin-top: 34px;
}

.method-timeline article {
  display: grid;
  grid-template-columns: 0.25fr 1.75fr;
  gap: 5vw;
  min-height: 320px;
  padding-block: clamp(40px, 6vw, 78px);
  border-top: 1px solid var(--premium-line);
}

.method-timeline article:last-child {
  border-bottom: 1px solid var(--premium-line);
}

.method-timeline article > span,
.partnership-paths article > span {
  color: var(--premium-blue-bright);
  font-family: var(--premium-display);
  font-size: 3rem;
}

.method-timeline h2 {
  margin: 0 0 22px;
}

.method-timeline p {
  max-width: var(--premium-reading);
  color: var(--premium-muted);
  font-size: 1.18rem;
}

.method-timeline ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.method-timeline li {
  padding: 8px 12px;
  border: 1px solid var(--premium-line);
  font-size: 0.82rem;
}

.partnership-paths .container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--premium-line);
}

.partnership-paths article {
  min-height: 320px;
  padding: clamp(30px, 5vw, 66px);
  border-right: 1px solid var(--premium-line);
  border-bottom: 1px solid var(--premium-line);
}

.partnership-paths article:nth-child(even) {
  border-right: 0;
}

.partnership-paths h2 {
  margin: 50px 0 18px;
  font-size: clamp(2rem, 3.5vw, 3.8rem);
}

.partnership-paths p {
  color: var(--premium-muted);
}

.partnership-process {
  background: var(--premium-paper-soft);
}

.partnership-process .container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8vw;
}

.partnership-process ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--premium-line);
  counter-reset: partnership;
}

.partnership-process li {
  min-height: 76px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--premium-line);
  counter-increment: partnership;
}

.partnership-process li::before {
  content: "0" counter(partnership);
  width: 70px;
  color: var(--premium-blue-bright);
  font-family: var(--premium-display);
  font-size: 1.5rem;
}

.legal-premium .container {
  max-width: 900px;
}

.legal-premium h2 {
  margin: 72px 0 18px;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.legal-premium h2:first-child {
  margin-top: 0;
}

.legal-premium p,
.legal-premium li {
  color: var(--premium-muted);
}

/* Existing-page harmonization */
body:not(.premium-site) .site-header {
  color: #fff;
}

body:not(.premium-site) .site-header .navbar {
  width: var(--premium-container);
  max-width: none;
}

body:not(.premium-site) .site-header .nav-menu > a,
body:not(.premium-site) .site-header .platform-mega > summary {
  color: rgba(255, 255, 255, 0.76);
}

body:not(.premium-site) .site-header .brand {
  color: #fff;
}

body:not(.premium-site) .footer {
  border-radius: 0;
}

/* Responsive */
@media (max-width: 1320px) {
  .site-header .navbar {
    grid-template-columns: 1fr auto;
  }

  .nav-primary-cta {
    display: none;
  }

  .site-header .menu-toggle {
    display: grid;
    justify-self: end;
  }

  .site-header .nav-menu {
    position: fixed;
    inset: 72px 0 auto;
    max-height: calc(100svh - 72px);
    overflow-y: auto;
    display: none;
    align-items: stretch;
    justify-content: start;
    gap: 0;
    padding: 20px clamp(20px, 5vw, 54px) 50px;
    color: #fff;
    background: var(--premium-ink);
    border-top: 1px solid var(--premium-line-dark);
  }

  .site-header.is-open .nav-menu {
    display: flex;
    flex-direction: column;
  }

  .site-header .nav-menu > a,
  .site-header .platform-mega > summary {
    min-height: 56px;
    width: 100%;
    justify-content: space-between;
    color: #fff;
    border-bottom: 1px solid var(--premium-line-dark);
    font-size: 1rem;
  }

  .platform-mega__panel {
    --surface-background: var(--surface-dark);
    --surface-text-primary: var(--text-on-dark);
    --surface-text-secondary: var(--text-muted-on-dark);
    --surface-link: var(--text-on-dark);
    --surface-link-hover: var(--text-on-dark);
    position: static;
    width: 100%;
    padding: 26px 0;
    display: block;
    color: var(--surface-text-primary);
    background: var(--surface-background);
    border: 0;
    box-shadow: none;
    transform: none;
  }

  .platform-mega__intro {
    display: none;
  }

  .platform-mega__groups {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .platform-mega__group h3 {
    color: var(--surface-text-secondary);
  }

  .platform-mega__group a,
  .platform-mega__group a:visited {
    min-height: 44px;
    color: var(--surface-text-primary);
  }

  .platform-mega__group a:hover,
  .platform-mega__group a:focus-visible {
    color: var(--surface-text-primary);
    background: rgba(255, 255, 255, 0.12);
  }

  .platform-mega__group a:active {
    color: var(--surface-dark);
    background: var(--surface-light-active);
  }

  .platform-mega__group a[aria-current="page"],
  .platform-mega__group a[aria-current="page"]:visited,
  .platform-mega__group a[aria-current="page"]:hover,
  .platform-mega__group a[aria-current="page"]:focus-visible {
    color: var(--premium-blue);
    background: var(--surface-light);
  }

  .premium-home-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr);
  }

  .platform-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  }
}

@media (max-width: 900px) {
  .premium-site .section__header--split,
  .home-manifesto .container,
  .home-trust__grid,
  .home-fati > .container,
  .flywheel-layout,
  .platform-overview__grid,
  .platform-capabilities__grid,
  .platform-fati-assist__grid,
  .fati-core-status__grid,
  .platform-role__grid,
  .partnership-process .container {
    grid-template-columns: 1fr;
  }

  .premium-home-hero {
    min-height: auto;
    padding-block: 100px 0;
  }

  .premium-home-hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .premium-home-hero figure {
    width: min(120vw, 820px);
    margin: -2vw -24vw 0 auto;
  }

  .home-category-rail .container > div:last-child,
  .home-method ol,
  .footer-premium__platforms,
  .footer-premium__utility {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-category-rail article:nth-child(2),
  .home-method li:nth-child(2) {
    border-right: 0;
  }

  .home-category-rail article:nth-child(-n + 2),
  .home-method li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--premium-line);
  }

  .home-partnership .container,
  .premium-final-cta .container,
  .platform-status .container {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .home-fati > .container > div:first-child {
    grid-row: auto;
  }

  .ecosystem-row {
    grid-template-columns: 0.75fr 1.25fr auto;
  }

  .ecosystem-row > p {
    grid-column: 2;
  }

  .platform-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 72px;
  }

  .platform-hero__visual {
    width: min(90vw, 540px);
    margin: -30px auto -120px;
    opacity: 0.62;
  }

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

  .platform-pillars li:nth-child(even) {
    border-right: 0;
  }

  .platform-pillars li:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--premium-line);
  }
}

@media (max-width: 680px) {
  :root {
    --premium-container: min(100% - 36px, 1440px);
    --premium-section: clamp(66px, 18vw, 96px);
  }

  .premium-site h1 {
    font-size: clamp(3rem, 15vw, 5.25rem);
  }

  .premium-site h2 {
    font-size: clamp(2.1rem, 11vw, 3.5rem);
  }

  .site-header,
  .site-header .navbar {
    min-height: 64px;
  }

  .site-header .nav-menu {
    inset-block-start: 64px;
    max-height: calc(100svh - 64px);
  }

  .premium-home-hero {
    padding-top: 82px;
  }

  .premium-home-hero p {
    margin-block: 24px 30px;
  }

  .cta-row {
    align-items: stretch;
  }

  .cta-row .btn {
    width: 100%;
  }

  .home-category-rail .container > div:last-child,
  .home-method ol,
  .home-platform-index,
  .footer-premium__platforms,
  .footer-premium__utility,
  .flywheel,
  .partnership-paths .container {
    grid-template-columns: 1fr;
  }

  .home-category-rail article,
  .home-method li,
  .home-platform,
  .footer-premium__platforms > div,
  .partnership-paths article {
    border-right: 0;
  }

  .home-category-rail article,
  .home-method li {
    min-height: 210px;
    border-bottom: 1px solid var(--premium-line);
  }

  .home-category-rail article:last-child,
  .home-method li:last-child {
    border-bottom: 0;
  }

  .home-platform {
    min-height: 128px;
    grid-template-columns: 58px 1fr;
  }

  .home-platform > span {
    width: 54px;
    height: 54px;
  }

  .home-trust__grid a {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-block: 22px;
  }

  .footer-premium__lead {
    align-items: start;
    flex-direction: column;
  }

  .footer-premium__lead .btn {
    width: 100%;
  }

  .footer-premium__platforms > div,
  .footer-premium__utility > * {
    padding-block: 18px;
    border-bottom: 1px solid var(--premium-line-dark);
  }

  .ecosystem-directory-hero {
    min-height: 560px;
  }

  .platform-filters {
    justify-content: start;
  }

  .platform-filters button {
    flex: 1 1 180px;
  }

  .ecosystem-row {
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding-block: 26px;
  }

  .ecosystem-row__category {
    grid-column: 1 / -1;
  }

  .ecosystem-row__brand {
    grid-template-columns: 48px 1fr;
  }

  .ecosystem-row__mark {
    width: 48px;
    height: 48px;
  }

  .ecosystem-row > p {
    grid-column: 1 / -1;
  }

  .flywheel li {
    min-height: 180px;
    border-right: 0;
    border-bottom: 1px solid var(--premium-line-dark);
  }

  .flywheel li:last-child {
    border-bottom: 0;
  }

  .platform-hero {
    min-height: auto;
  }

  .platform-hero__grid {
    min-height: 620px;
  }

  .platform-lockup {
    margin-bottom: 26px;
  }

  .platform-hero__visual {
    width: 110vw;
    margin-left: -12vw;
  }

  .platform-overview aside {
    padding: 28px 0 0;
    border-top: 1px solid var(--premium-line);
    border-left: 0;
  }

  .platform-pillars ol {
    grid-template-columns: 1fr;
  }

  .platform-pillars li,
  .platform-pillars li:nth-child(even),
  .platform-pillars li:last-child {
    min-height: 126px;
    display: grid;
    grid-template-columns: 52px 1fr;
    align-items: center;
    border-right: 0;
    border-top: 0;
    border-bottom: 1px solid var(--premium-line);
  }

  .platform-pillars li:last-child {
    grid-column: auto;
    border-bottom: 0;
  }

  .platform-pillars li strong {
    margin-top: 0;
  }

  .method-timeline article {
    grid-template-columns: 1fr;
  }

  .partnership-paths article {
    min-height: 260px;
  }

  .footer--premium .footer__bottom {
    align-items: start;
  }
}

@media (max-width: 380px) {
  :root {
    --premium-container: calc(100% - 28px);
  }

  .brand--premium {
    width: 116px;
  }

  .platform-filters button {
    flex-basis: 100%;
  }

  .home-fati .form-grid {
    grid-template-columns: 1fr;
  }
}

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

@media (prefers-contrast: more) {
  :root {
    --premium-muted: #3d424a;
    --premium-line: rgba(0, 0, 0, 0.42);
    --premium-line-dark: rgba(255, 255, 255, 0.42);
  }
}
/* Account navigation is injected only after the same-origin session endpoint responds. */
.account-nav-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-right: 10px;
  border-right: 1px solid rgba(8, 37, 137, 0.12);
}

.account-nav-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 8px 11px;
  background: transparent;
  color: #082589;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.account-nav-link:hover,
.account-nav-link:focus-visible {
  background: rgba(8, 37, 137, 0.07);
}

.account-nav-link:focus-visible {
  outline: 2px solid #2f6bff;
  outline-offset: 2px;
}

.account-nav-link--primary {
  background: #082589;
  color: #fff;
}

.account-nav-link--primary:hover,
.account-nav-link--primary:focus-visible {
  background: #061d70;
}

@media (max-width: 1160px) {
  .account-nav-inline {
    width: 100%;
    order: -1;
    padding: 0 0 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(8, 37, 137, 0.12);
  }

  .account-nav-link {
    flex: 1 1 0;
  }
}

/* Shared navigation for brands, historical routes and site resources.
   Keep each chevron inside its destination item so wrapping never orphans it. */
.breadcrumbs.brand-breadcrumbs {
  --breadcrumb-text: var(--jomaliq-text-secondary);
  --breadcrumb-link: var(--jomaliq-link);
  --breadcrumb-hover: var(--jomaliq-link-hover);
  display: block;
  margin: 0 0 20px;
  padding: 0;
  color: var(--breadcrumb-text);
  font-size: .8rem;
  line-height: 1.5;
}
.platform-hero .breadcrumbs.brand-breadcrumbs {
  --breadcrumb-text: #ced7ee;
  --breadcrumb-link: #e5ecff;
  --breadcrumb-hover: #fff;
  padding-top: 26px;
}
.brand-breadcrumbs ol { display: flex; align-items: center; flex-wrap: wrap; gap: 0 12px; list-style: none; padding: 0; margin: 0; }
.brand-breadcrumbs li { display: flex; align-items: center; gap: 12px; min-height: 44px; min-width: 0; max-width: 100%; }
.breadcrumbs.brand-breadcrumbs a { color: var(--breadcrumb-link); text-underline-offset: .2em; }
.breadcrumbs.brand-breadcrumbs a:hover { color: var(--breadcrumb-hover); text-decoration: underline; }
.brand-breadcrumbs [aria-current="page"] { min-width: 0; overflow-wrap: anywhere; line-height: 1.5; }
.brand-breadcrumbs__separator { flex: 0 0 auto; color: var(--breadcrumb-text); font-size: 1rem; line-height: 1; }

/* Visible language controls on the existing dark header surface, including no-JS. */
.public-language-bar { background: var(--jomaliq-night, #081a33); color: var(--jomaliq-brand-white, #fff); border-top: 1px solid var(--jomaliq-night-muted, #17375a); }
.public-language-bar > .container { display: flex; justify-content: flex-end; align-items: center; min-height: 52px; }
.public-language-bar .lang-switcher { display: flex; width: auto; max-width: 100%; gap: 12px; border: 0; padding: 2px 0; }
.public-language-bar label { color: #fff; font-size: .875rem; font-weight: 600; }
.public-language-bar .language-select { position: static; opacity: 1; inset: auto; width: auto; min-width: 112px; height: 44px; min-height: 44px; color: var(--jomaliq-brand-white, #fff); background: var(--jomaliq-night-raised, #102a4c); border: 1px solid var(--jomaliq-blue-light, #b9d2ff); border-radius: 8px; padding: 8px 12px; }
.public-language-bar .language-select:hover { background: var(--jomaliq-night-muted, #17375a); }
.public-language-bar .language-select:focus-visible { outline: 3px solid var(--jomaliq-brand-gold, #d4af37); outline-offset: 2px; }
.public-language-bar .lang-switcher::after { display: none; }
.public-language-bar .lang-switcher:has(> noscript) { flex-wrap: wrap; }
.public-language-bar noscript {
  min-width: 0;
  max-width: min(100%, 26ch);
  color: inherit;
  font-size: .8rem;
  overflow-wrap: anywhere;
}
.public-language-status { margin: 16px auto; padding: 12px 20px; width: var(--premium-container); color: var(--text-primary); background: var(--surface-elevated); border: 1px solid var(--jomaliq-input-border); border-radius: 8px; font-size: .9rem; }
@media (max-width: 1320px) { .site-header:has(> .public-language-bar) .nav-menu { inset-block-start: 124px; max-height: calc(100svh - 124px); } }
@media (max-width: 760px) { .site-header:has(> .public-language-bar) .nav-menu { inset-block-start: 116px; max-height: calc(100svh - 116px); } }
