/* Prysai Lab public refinement: quiet dark glass, editorial rails, no nested cards. */
:root {
  --prysai-refine-bg: #050608;
  --prysai-refine-panel: rgba(16, 21, 31, .58);
  --prysai-refine-panel-strong: rgba(22, 29, 42, .72);
  --prysai-refine-line: rgba(226, 232, 240, .14);
  --prysai-refine-line-strong: rgba(226, 232, 240, .24);
  --prysai-refine-text: #f8fafc;
  --prysai-refine-muted: #a9b5c7;
  --prysai-refine-signal: #9bc6ff;
}

html body.prysai-design-system {
  background: var(--prysai-refine-bg) !important;
  color: var(--prysai-refine-text) !important;
}

html body.prysai-design-system .wp-site-blocks,
html body.prysai-design-system main,
html body.prysai-design-system .entry-content,
html body.prysai-design-system .wp-block-post-content {
  background: transparent !important;
}

/* The header stays in document flow; its material changes with scroll only. */
html body.prysai-design-system header.wp-block-template-part {
  position: relative !important;
  top: auto !important;
  border-bottom: 1px solid var(--prysai-refine-line) !important;
  background: rgba(5, 6, 8, .72) !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: blur(20px) saturate(118%) !important;
  backdrop-filter: blur(20px) saturate(118%) !important;
}

html body.prysai-design-system.prysai-nav-scrolled header.wp-block-template-part {
  background: rgba(5, 6, 8, .9) !important;
  border-bottom-color: var(--prysai-refine-line-strong) !important;
}

html body.prysai-design-system header.wp-block-template-part .wp-block-group.alignwide {
  min-height: 76px !important;
  gap: 32px !important;
}

html body.prysai-design-system header .wp-block-navigation__container {
  gap: 6px !important;
}

html body.prysai-design-system header .wp-block-navigation-item__content {
  position: relative !important;
  min-height: 42px !important;
  padding: 8px 7px !important;
  border-radius: 0 !important;
  color: var(--prysai-refine-muted) !important;
  font-size: .82rem !important;
  font-weight: 600 !important;
  letter-spacing: .01em !important;
}

html body.prysai-design-system header .wp-block-navigation-item__content::after {
  position: absolute;
  right: 7px;
  bottom: 5px;
  left: 7px;
  height: 1px;
  background: var(--prysai-refine-signal);
  content: "";
  opacity: 0;
  transform: scaleX(.35);
  transition: opacity .18s ease, transform .18s ease;
}

html body.prysai-design-system header .wp-block-navigation-item__content:hover,
html body.prysai-design-system header .current-menu-item > .wp-block-navigation-item__content,
html body.prysai-design-system header .wp-block-navigation-item__content[aria-current="page"] {
  background: transparent !important;
  color: var(--prysai-refine-text) !important;
}

html body.prysai-design-system header .wp-block-navigation-item__content:hover::after,
html body.prysai-design-system header .current-menu-item > .wp-block-navigation-item__content::after,
html body.prysai-design-system header .wp-block-navigation-item__content[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Desktop destinations use a restrained glass control, so the dark header
   reads as an intentional material rather than a row of flat black labels. */
@media (min-width: 901px) {
  html body.prysai-design-system header .wp-block-navigation-item__content {
    min-height: 40px !important;
    padding: 8px 11px !important;
    border: 1px solid rgba(226, 232, 240, .11) !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, .035) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05) !important;
    -webkit-backdrop-filter: blur(12px) saturate(115%) !important;
    backdrop-filter: blur(12px) saturate(115%) !important;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease !important;
  }

  html body.prysai-design-system header .wp-block-navigation-item__content:hover,
  html body.prysai-design-system header .current-menu-item > .wp-block-navigation-item__content,
  html body.prysai-design-system header .wp-block-navigation-item__content[aria-current="page"] {
    border-color: rgba(155, 198, 255, .34) !important;
    background: rgba(155, 198, 255, .10) !important;
    color: var(--prysai-refine-text) !important;
    transform: translateY(-1px);
  }

  html body.prysai-design-system header .wp-block-navigation-item__content::after {
    right: 11px;
    bottom: 4px;
    left: 11px;
  }
}

/* The header is one continuous glass rail, not a card containing another
   card. These selectors intentionally match the legacy brand layer's
   specificity so the public shell keeps a single quiet horizon. */
html body.prysai-brand-surface.prysai-design-system header.wp-block-template-part {
  min-height: 72px !important;
  padding: 0 !important;
  border-bottom: 1px solid var(--prysai-refine-line) !important;
  background: rgba(5, 6, 8, .74) !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: blur(20px) saturate(118%) !important;
  backdrop-filter: blur(20px) saturate(118%) !important;
}

html body.prysai-brand-surface.prysai-design-system header.wp-block-template-part .wp-block-group.alignwide {
  min-height: 72px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html body.prysai-brand-surface.prysai-design-system header.wp-block-template-part .wp-block-navigation__responsive-container {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

/* WordPress supplies both desktop and overlay navigation markup. Keep the
   document-flow list visible on wider screens; reserve the menu control for
   a genuinely narrow viewport instead of making desktop navigation feel like
   a mobile fallback. */
@media (min-width: 901px) {
  html body.prysai-brand-surface.prysai-design-system header.wp-block-template-part .wp-block-navigation__responsive-container.has-base-background-color {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
  }

  html body.prysai-brand-surface.prysai-design-system header.wp-block-template-part :is(.wp-block-navigation__responsive-close, .wp-block-navigation__responsive-dialog, .wp-block-navigation__responsive-container-content) {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
  }

  html body.prysai-design-system header.wp-block-template-part .wp-block-navigation {
    position: static !important;
    display: flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 0 0 auto !important;
    transform: none !important;
    inset: auto !important;
  }

  html body.prysai-design-system header .wp-block-navigation__responsive-container-open {
    display: none !important;
  }

  html body.prysai-design-system header.wp-block-template-part .wp-block-navigation__responsive-container {
    position: static !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    color: inherit !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  html body.prysai-design-system header.wp-block-template-part .wp-block-navigation__responsive-close {
    display: block !important;
    width: auto !important;
    height: auto !important;
  }

  html body.prysai-design-system header.wp-block-template-part .wp-block-navigation__responsive-container-close {
    display: none !important;
  }

  html body.prysai-design-system header.wp-block-template-part .wp-block-navigation__responsive-container-content,
  html body.prysai-design-system header.wp-block-template-part .wp-block-navigation__container {
    display: flex !important;
    width: auto !important;
    height: auto !important;
    align-items: center !important;
    gap: 6px !important;
  }

  html body.prysai-design-system header.wp-block-template-part .wp-block-navigation-item,
  html body.prysai-design-system header.wp-block-template-part .wp-block-navigation-item__content,
  html body.prysai-design-system header.wp-block-template-part .wp-block-navigation-item__label {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    height: auto !important;
  }
}

@media (max-width: 900px) {
  html body.prysai-design-system header .wp-block-navigation__responsive-container-open {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0 !important;
    border: 1px solid var(--prysai-refine-line) !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, .035) !important;
    color: var(--prysai-refine-text) !important;
  }
}

/* Home evidence is editorial material, not a collection of product tiles.
   Preserve each source and quote while giving the section a single, calm
   reading surface. */
html body.prysai-brand-home .prysai-section--metrics .prysai-stat-grid {
  gap: 16px !important;
  margin-top: 34px !important;
  border-top: 1px solid var(--prysai-refine-line) !important;
  border-bottom: 1px solid var(--prysai-refine-line) !important;
}

html body.prysai-brand-home .prysai-section--metrics .prysai-stat-card {
  min-height: 0 !important;
  padding: 26px 30px 30px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

html body.prysai-brand-home .prysai-section--metrics .prysai-stat-card + .prysai-stat-card {
  border-left: 1px solid var(--prysai-refine-line) !important;
}

html body.prysai-brand-home .prysai-section--metrics .prysai-stat-card:hover {
  background: rgba(255, 255, 255, .022) !important;
  box-shadow: none !important;
}

html body.prysai-brand-home .prysai-section--metrics .prysai-stat-value {
  color: #9bc6ff !important;
}

html body.prysai-brand-home .prysai-community-feedback__grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0 !important;
  margin-top: 34px !important;
  border-top: 1px solid var(--prysai-refine-line) !important;
  border-bottom: 1px solid var(--prysai-refine-line) !important;
}

html body.prysai-brand-home .prysai-community-feedback__card,
html body.prysai-brand-home .prysai-community-feedback__card--featured,
html body.prysai-brand-home .prysai-community-feedback__card--method {
  display: flex !important;
  min-height: 0 !important;
  padding: 26px 28px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

html body.prysai-brand-home .prysai-community-feedback__card:nth-child(even) {
  border-left: 1px solid var(--prysai-refine-line) !important;
}

html body.prysai-brand-home .prysai-community-feedback__card:nth-child(n + 3) {
  border-top: 1px solid var(--prysai-refine-line) !important;
}

html body.prysai-brand-home .prysai-community-feedback__card:hover {
  background: rgba(255, 255, 255, .022) !important;
  box-shadow: none !important;
  transform: none !important;
}

html body.prysai-brand-home .prysai-community-feedback__quote {
  max-width: 38ch;
  font-size: clamp(1.02rem, 1.55vw, 1.32rem) !important;
  line-height: 1.56 !important;
}

@media (max-width: 700px) {
  html body.prysai-brand-home .prysai-section--metrics .prysai-stat-grid {
    gap: 12px !important;
  }

  html body.prysai-brand-home .prysai-section--metrics .prysai-stat-card + .prysai-stat-card {
    border-top: 1px solid var(--prysai-refine-line) !important;
    border-left: 0 !important;
  }

  html body.prysai-brand-home .prysai-community-feedback__grid {
    grid-template-columns: 1fr !important;
  }

  html body.prysai-brand-home .prysai-community-feedback__card:nth-child(n + 2) {
    border-top: 1px solid var(--prysai-refine-line) !important;
    border-left: 0 !important;
  }

  html body.prysai-brand-home .prysai-community-feedback__card {
    padding: 22px 0 !important;
  }
}

/* Home sections read as connected bands; only individual records receive glass. */
html body.prysai-brand-home .prysai-hero {
  padding: clamp(88px, 12vw, 152px) 0 clamp(80px, 10vw, 126px) !important;
  background-image: linear-gradient(to right, rgba(203, 213, 225, .055) 1px, transparent 1px), linear-gradient(to bottom, rgba(203, 213, 225, .055) 1px, transparent 1px) !important;
  background-size: 72px 72px !important;
}

html body.prysai-brand-home .prysai-headline {
  max-width: 980px !important;
  font-weight: 780 !important;
  letter-spacing: 0 !important;
}

html body.prysai-brand-home .prysai-lead,
html body.prysai-brand-home .prysai-section-sub,
html body.prysai-design-system .prysai-site-footer__description {
  color: var(--prysai-refine-muted) !important;
}

html body.prysai-brand-home .prysai-section {
  position: relative;
  padding: clamp(72px, 9vw, 116px) 0 !important;
  border-top: 1px solid var(--prysai-refine-line) !important;
  background: transparent !important;
}

html body.prysai-brand-home .prysai-section--metrics,
html body.prysai-brand-home .prysai-section--tint {
  background: rgba(11, 15, 23, .38) !important;
}

html body.prysai-design-system :is(.prysai-card, .prysai-platform-card, .prysai-stat-card, .prysai-community-feedback__card, .prysai-model-card, .prysai-catalog-card, .prysai-panel, .prysai-brand-archive-card, .prysai-specimen, .prysai-application-grid figure) {
  border: 1px solid var(--prysai-refine-line) !important;
  border-radius: 8px !important;
  background: var(--prysai-refine-panel) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04) !important;
  -webkit-backdrop-filter: blur(18px) saturate(112%) !important;
  backdrop-filter: blur(18px) saturate(112%) !important;
}

html body.prysai-design-system :is(.prysai-card, .prysai-platform-card, .prysai-stat-card, .prysai-community-feedback__card, .prysai-model-card, .prysai-catalog-card, .prysai-panel, .prysai-brand-archive-card, .prysai-specimen, .prysai-application-grid figure):hover {
  border-color: var(--prysai-refine-line-strong) !important;
  background: var(--prysai-refine-panel-strong) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06) !important;
  transform: translateY(-1px) !important;
}

html body.prysai-design-system :is(.prysai-stat-card, .prysai-card, .prysai-platform-card) {
  padding: clamp(20px, 2.2vw, 30px) !important;
}

html body.prysai-design-system :is(.prysai-btn-primary, .prysai-btn-outline, .prysai-button, .prysai-platform-link) {
  border-radius: 6px !important;
}

html body.prysai-design-system .prysai-btn-outline,
html body.prysai-design-system .prysai-button--secondary {
  border-color: var(--prysai-refine-line) !important;
  background: rgba(255, 255, 255, .035) !important;
}

html body.prysai-design-system .prysai-resource-center__list a,
html body.prysai-design-system .prysai-resource-center__external-grid a {
  border-color: var(--prysai-refine-line) !important;
}

html body.prysai-design-system .prysai-resource-center__list a:hover,
html body.prysai-design-system .prysai-resource-center__external-grid a:hover {
  border-color: var(--prysai-refine-line-strong) !important;
  background: rgba(255, 255, 255, .035) !important;
}

/* Internal editorial pages use type and dividers for hierarchy. The statistic
   row remains scannable, but no longer reads as three floating product cards. */
html body.prysai-design-system.prysai-design-about .prysai-about-page h1,
html body.prysai-design-system.prysai-design-about .wp-block-post-title,
html body.prysai-design-system.prysai-design-about main h1[itemprop="name"] {
  max-width: 780px !important;
  font-size: clamp(3rem, 5.2vw, 5.1rem) !important;
  font-weight: 720 !important;
  letter-spacing: 0 !important;
  line-height: 1.02 !important;
}

html body.prysai-design-system.prysai-design-about .prysai-about-page h2 {
  max-width: 720px !important;
  font-size: clamp(1.85rem, 3.2vw, 3rem) !important;
  letter-spacing: 0 !important;
  line-height: 1.1 !important;
}

html body.prysai-design-system.prysai-design-about .prysai-about-page__stat-grid {
  gap: 0 !important;
  margin-top: 30px !important;
  border-top: 1px solid var(--prysai-refine-line) !important;
  border-bottom: 1px solid var(--prysai-refine-line) !important;
}

html body.prysai-design-system.prysai-design-about .prysai-about-page__stat {
  min-height: 0 !important;
  padding: 24px 26px 26px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

html body.prysai-design-system.prysai-design-about .prysai-about-page__stat + .prysai-about-page__stat {
  border-left: 1px solid var(--prysai-refine-line) !important;
}

html body.prysai-design-system.prysai-design-about .prysai-about-page__stat:hover {
  border-color: transparent !important;
  background: rgba(255, 255, 255, .025) !important;
  box-shadow: none !important;
  transform: none !important;
}

html body.prysai-design-system.prysai-design-about .prysai-about-page__stat strong {
  margin: 22px 0 18px !important;
  font-size: clamp(2.8rem, 4.6vw, 4.25rem) !important;
  letter-spacing: 0 !important;
}

html body.prysai-design-system.prysai-design-about .prysai-about-page__card-grid {
  gap: 0 !important;
  border-top: 1px solid var(--prysai-refine-line) !important;
  border-bottom: 1px solid var(--prysai-refine-line) !important;
}

html body.prysai-design-system.prysai-design-about .prysai-about-page__card-grid article {
  min-height: 0 !important;
  padding: 24px 26px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body.prysai-design-system.prysai-design-about .prysai-about-page__card-grid article + article {
  border-left: 1px solid var(--prysai-refine-line) !important;
}

@media (max-width: 700px) {
  html body.prysai-design-system.prysai-design-about .prysai-about-page h1,
  html body.prysai-design-system.prysai-design-about .wp-block-post-title,
  html body.prysai-design-system.prysai-design-about main h1[itemprop="name"] {
    font-size: clamp(2.25rem, 10.5vw, 2.9rem) !important;
    line-height: 1.06 !important;
  }

  html body.prysai-design-system.prysai-design-about .prysai-about-page h2 {
    font-size: clamp(1.7rem, 9vw, 2.25rem) !important;
  }

  html body.prysai-design-system.prysai-design-about .prysai-about-page__stat + .prysai-about-page__stat,
  html body.prysai-design-system.prysai-design-about .prysai-about-page__card-grid article + article {
    border-top: 1px solid var(--prysai-refine-line) !important;
    border-left: 0 !important;
  }
}

/* Keep the mobile overlay accessible, but make the visible menu a compact
   glass sheet. The WordPress wrapper defaults to flex: 1 and leaves a large
   unused panel below the last destination. */
@media (max-width: 900px) {
  html body.prysai-design-system header .wp-block-navigation__responsive-container.is-menu-open {
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }

  html body.prysai-brand-surface.prysai-design-system header.wp-block-template-part .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close {
    display: flex !important;
    flex: 0 0 auto !important;
    width: min(100%, 358px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100vh - 32px) !important;
    overflow: auto !important;
  }

  html body.prysai-brand-surface.prysai-design-system header.wp-block-template-part .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin-top: 14px !important;
    overflow: visible !important;
  }
}

@media (max-width: 900px) {
  html body.prysai-design-system header.wp-block-template-part .wp-block-group.alignwide {
    min-height: 68px !important;
    gap: 16px !important;
  }

  html body.prysai-design-system header .wp-block-navigation__responsive-container.is-menu-open {
    padding: 16px !important;
    background: rgba(5, 6, 8, .96) !important;
    -webkit-backdrop-filter: blur(22px) saturate(112%) !important;
    backdrop-filter: blur(22px) saturate(112%) !important;
  }

  html body.prysai-design-system header .wp-block-navigation__responsive-close {
    border: 1px solid var(--prysai-refine-line) !important;
    border-radius: 8px !important;
    background: rgba(16, 21, 31, .94) !important;
    box-shadow: none !important;
  }

  html body.prysai-design-system header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    min-height: 52px !important;
    padding: 14px 8px !important;
    border-bottom: 1px solid var(--prysai-refine-line) !important;
    font-size: 1rem !important;
  }

  html body.prysai-design-system header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after {
    display: none !important;
  }

  html body.prysai-design-system header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:focus-visible {
    outline: 1px solid var(--prysai-refine-signal) !important;
    outline-offset: 3px;
  }
}

@media (max-width: 560px) {
  html body.prysai-brand-home .prysai-hero {
    padding: 76px 0 84px !important;
    background-size: 48px 48px !important;
  }

  html body.prysai-brand-home .prysai-section {
    padding: 64px 0 !important;
  }
}

/* Homepage: the lead message should read as a studio statement, not a
   terminal demo. Keep motion in the cursor treatment, but let typography and
   measured space carry the first impression. */
html body.prysai-brand-home .prysai-hero {
  position: relative;
  width: 100vw !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  overflow: clip;
  padding: clamp(96px, 11vw, 148px) 0 clamp(84px, 9vw, 122px) !important;
  border-bottom: 1px solid var(--prysai-refine-line) !important;
  background: #030407 !important;
}

html body.prysai-brand-home .prysai-constellation-grid {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
}

html body.prysai-brand-home .prysai-hero::before {
  position: absolute;
  top: clamp(44px, 7vw, 104px);
  bottom: clamp(44px, 7vw, 104px);
  left: max(0px, calc((100vw - 1180px) / 2));
  width: 1px;
  background: var(--prysai-refine-line);
  content: "";
  opacity: .78;
  z-index: 1;
}

html body.prysai-brand-home .prysai-hero .prysai-wrap {
  position: relative;
  z-index: 2;
  padding-left: clamp(20px, 3vw, 48px);
}

html body.prysai-brand-home .prysai-kicker {
  margin-bottom: 22px !important;
  color: var(--prysai-refine-muted) !important;
  font-size: .72rem !important;
  font-weight: 650 !important;
  letter-spacing: .09em !important;
}

html body.prysai-brand-home .prysai-headline {
  max-width: 820px !important;
  font-size: clamp(3.05rem, 5.55vw, 5.45rem) !important;
  font-weight: 760 !important;
  line-height: 1.01 !important;
}

/* The text changes character by character on entry. Reserve the finished
   four-line composition so changing glyph widths never moves the lead or CTAs. */
@media (min-width: 701px) {
  html body.prysai-brand-home #prysai-home-title {
    height: 4.04em !important;
    min-height: 4.04em !important;
    overflow: clip !important;
  }
}

html body.prysai-brand-home .prysai-lead {
  max-width: 650px !important;
  margin-top: 28px !important;
  font-size: 1.04rem !important;
  line-height: 1.78 !important;
}

html body.prysai-brand-home .prysai-hero-cta {
  gap: 10px !important;
  margin-top: 34px !important;
}

html body.prysai-brand-home .prysai-hero-cta .prysai-btn-outline {
  border-color: transparent !important;
  background: transparent !important;
  color: var(--prysai-refine-muted) !important;
}

html body.prysai-brand-home .prysai-hero-cta .prysai-btn-outline:hover {
  border-color: var(--prysai-refine-line) !important;
  background: rgba(255, 255, 255, .04) !important;
  color: var(--prysai-refine-text) !important;
}

html body.prysai-brand-home .prysai-section--metrics,
html body.prysai-brand-home .prysai-section--tint {
  background: rgba(255, 255, 255, .018) !important;
}

@media (max-width: 700px) {
  html body.prysai-brand-home .prysai-hero {
    padding: 72px 0 76px !important;
  }

  html body.prysai-brand-home .prysai-hero::before {
    top: 38px;
    bottom: 38px;
  }

  html body.prysai-brand-home .prysai-hero .prysai-wrap {
    padding-left: 22px;
  }

  html body.prysai-brand-home .prysai-headline {
    font-size: clamp(2.55rem, 12vw, 3.5rem) !important;
    line-height: 1.04 !important;
  }

  html body.prysai-brand-home .prysai-lead {
    font-size: .98rem !important;
    line-height: 1.72 !important;
  }
}

/* The wordmark is a fixed visual asset, never a flexible full-width column.
   Legacy brand CSS expanded the site-title on the virtual Brand route and
   pushed the navigation outside both desktop and mobile viewports. */
html body.prysai-design-system header.wp-block-template-part .wp-block-site-title {
  display: inline-flex !important;
  flex: 0 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: calc(100% - 480px) !important;
  margin: 0 !important;
}

html body.prysai-design-system header.wp-block-template-part .wp-block-site-title > a {
  display: inline-flex !important;
  flex: 0 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

html body.prysai-design-system.prysai-design-brand .prysai-brand-study__hero h1 {
  max-width: 660px !important;
  font-size: clamp(2.85rem, 4.8vw, 4.6rem) !important;
  line-height: 1.03 !important;
}

html body.prysai-design-system.prysai-design-about .prysai-about-page h1 {
  max-width: 820px !important;
  font-size: clamp(2.9rem, 4.7vw, 4.65rem) !important;
  line-height: 1.04 !important;
}

@media (max-width: 900px) {
  html body.prysai-design-system header.wp-block-template-part .wp-block-group.alignwide {
    flex-wrap: nowrap !important;
  }

  html body.prysai-design-system header.wp-block-template-part .wp-block-site-title {
    max-width: calc(100% - 58px) !important;
  }

  html body.prysai-design-system header.wp-block-template-part .wp-block-navigation {
    flex: 0 0 42px !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    margin-left: auto !important;
  }

  /* Core navigation switches at an intermediate width on some theme builds.
     Keep its closed dialog out of layout until the explicit menu control opens it. */
  html body.prysai-design-system header.wp-block-template-part .wp-block-navigation__responsive-container-open {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  html body.prysai-design-system header.wp-block-template-part .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none !important;
  }

  html body.prysai-design-system header.wp-block-template-part .wp-block-navigation__responsive-container.is-menu-open {
    display: flex !important;
  }
}

@media (max-width: 700px) {
  html body.prysai-design-system.prysai-design-brand .prysai-brand-study__hero h1 {
    font-size: clamp(2.45rem, 11.5vw, 3.25rem) !important;
    line-height: 1.05 !important;
  }

  html body.prysai-design-system.prysai-design-about .prysai-about-page h1 {
    font-size: clamp(2.25rem, 10.5vw, 2.9rem) !important;
    line-height: 1.06 !important;
  }
}

/* Footer is a continuous information rail. Its grid used to live in the
   retired base sheet, so it is defined here with the active public cascade. */
html body.prysai-design-system .prysai-site-footer {
  position: relative !important;
  width: 100% !important;
  margin: 0 !important;
  border-top: 1px solid var(--prysai-refine-line) !important;
  background: rgba(8, 10, 14, .78) !important;
  color: var(--prysai-refine-muted) !important;
  -webkit-backdrop-filter: blur(20px) saturate(110%) !important;
  backdrop-filter: blur(20px) saturate(110%) !important;
}

html body.prysai-design-system .prysai-site-footer__rule {
  position: absolute !important;
  top: -1px !important;
  right: 0 !important;
  left: 0 !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(155, 198, 255, .48), transparent) !important;
}

html body.prysai-design-system .prysai-site-footer__inner {
  width: min(1180px, calc(100% - 64px)) !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 52px 0 18px !important;
}

html body.prysai-design-system .prysai-site-footer__main {
  display: grid !important;
  grid-template-columns: minmax(220px, .85fr) minmax(0, 3.15fr) !important;
  gap: 52px !important;
  align-items: start !important;
}

html body.prysai-design-system .prysai-site-footer__identity,
html body.prysai-design-system .prysai-site-footer__section,
html body.prysai-design-system .prysai-site-footer__bottom {
  min-width: 0 !important;
}

html body.prysai-design-system .prysai-site-footer__brand,
html body.prysai-design-system .prysai-site-footer__mark {
  display: inline-flex !important;
  align-items: center !important;
  width: 160px !important;
  min-width: 160px !important;
  height: auto !important;
}

html body.prysai-design-system .prysai-site-footer__mark img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
}

html body.prysai-design-system .prysai-site-footer__description {
  max-width: 260px !important;
  margin: 20px 0 0 !important;
  color: var(--prysai-refine-muted) !important;
  font-size: .88rem !important;
  line-height: 1.7 !important;
}

html body.prysai-design-system .prysai-site-footer__nav {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 22px !important;
}

html body.prysai-design-system .prysai-site-footer__section h3 {
  margin: 0 0 14px !important;
  color: var(--prysai-refine-text) !important;
  font-size: .78rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

html body.prysai-design-system .prysai-site-footer__section ul {
  display: grid !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

html body.prysai-design-system .prysai-site-footer__section li {
  margin: 0 !important;
  padding: 0 !important;
}

html body.prysai-design-system .prysai-site-footer__section a,
html body.prysai-design-system .prysai-site-footer__bottom a {
  color: var(--prysai-refine-muted) !important;
  font-size: .8rem !important;
  line-height: 1.45 !important;
  text-decoration: none !important;
}

html body.prysai-design-system .prysai-site-footer__section a:hover,
html body.prysai-design-system .prysai-site-footer__section a:focus-visible,
html body.prysai-design-system .prysai-site-footer__bottom a:hover,
html body.prysai-design-system .prysai-site-footer__bottom a:focus-visible {
  color: var(--prysai-refine-text) !important;
}

html body.prysai-design-system .prysai-site-footer__bottom {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 12px 20px !important;
  margin-top: 44px !important;
  padding-top: 16px !important;
  border-top: 1px solid var(--prysai-refine-line) !important;
}

html body.prysai-design-system .prysai-site-footer__bottom p {
  margin: 0 !important;
  color: var(--prysai-refine-muted) !important;
  font-size: .76rem !important;
}

html body.prysai-design-system .prysai-site-footer__bottom nav {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  margin-left: auto !important;
}

@media (max-width: 900px) {
  html body.prysai-design-system .prysai-site-footer__main {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }

  html body.prysai-design-system .prysai-site-footer__description {
    max-width: 480px !important;
  }
}

@media (max-width: 680px) {
  html body.prysai-design-system .prysai-site-footer__inner {
    width: min(100% - 32px, 1180px) !important;
    padding-top: 42px !important;
  }

  html body.prysai-design-system .prysai-site-footer__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 30px 20px !important;
  }

  html body.prysai-design-system .prysai-site-footer__section:last-child {
    grid-column: 1 / -1 !important;
  }

  html body.prysai-design-system .prysai-site-footer__section:last-child ul {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 20px !important;
  }

  html body.prysai-design-system .prysai-site-footer__bottom {
    align-items: flex-start !important;
    flex-direction: column !important;
    margin-top: 34px !important;
  }

  html body.prysai-design-system .prysai-site-footer__bottom nav {
    margin-left: 0 !important;
  }
}

/* Homepage width contract: keep the background bands inside the same
   WordPress content box. The legacy 100vw hero was wider than the scrollable
   content box, which left the right edge of the page visually unfilled. */
html body.prysai-brand-home main > .wp-block-group.alignfull,
html body.prysai-brand-home main > .wp-block-group.alignfull > .entry-content.alignfull {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

html body.prysai-brand-home .prysai-hero,
html body.prysai-brand-home .prysai-section,
html body.prysai-brand-home .prysai-home-close {
  width: 100% !important;
  max-width: none !important;
}
