/*
 * Local mobile design preview for Consalt Community.
 * This file exists only in the Mac preview copy. Production is untouched.
 */

:root {
  color-scheme: only light;
}

.preview-plan-toggle {
  display: none;
}

@media (max-width: 760px) {
  :root {
    --header-height: 64px;
    --mobile-header-h: 56px;
    --mobile-safe-top: max(8px, env(safe-area-inset-top));
    --preview-navy: #162b3d;
    --preview-blue: #315676;
    --preview-blue-dark: #244662;
    --preview-copy: #53636d;
    --preview-label: #36566e;
    --preview-paper: #f7f5f0;
    --preview-line: rgba(29, 52, 69, 0.16);
    --preview-action-color: #244662;
    --preview-action-border: rgba(20, 34, 45, 0.16);
    --preview-action-bg: rgba(20, 34, 45, 0.065);
  }

  html,
  body {
    background: #fff;
  }

  html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(
      var(--mobile-safe-top) + var(--mobile-header-h) + 16px
    );
  }

  /* A quieter, faster mobile chrome. */
  .site-header,
  .site-header.is-scrolled,
  .secondary-hero-context,
  .subscription-plan,
  .hero-details,
  .modern-situations__option {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  /* Mobile content should be present immediately, not fade in like a loader. */
  .motion-ready .reveal,
  .motion-ready .timeline .timeline__item,
  .motion-ready .hero-title-reveal__inner {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }

  /* The mobile indexes are short enough to paint in one pass. */
  .secondary-page--services .service-index-row,
  .secondary-page--materials .material-row,
  .compact-materials__item {
    content-visibility: visible !important;
    contain-intrinsic-size: none !important;
  }

  .site-header,
  .site-header.is-scrolled {
    top: var(--mobile-safe-top) !important;
    right: 14px !important;
    left: 14px !important;
    width: auto !important;
    height: var(--mobile-header-h) !important;
    background: rgba(255, 255, 255, 0.97) !important;
    border-color: rgba(16, 44, 75, 0.09) !important;
    border-radius: 18px !important;
    box-shadow: 0 4px 14px rgba(13, 34, 50, 0.055) !important;
    transform: none !important;
    transition: none !important;
  }

  .site-header__inner.shell {
    width: 100% !important;
    height: 54px !important;
    padding: 0 6px 0 8px !important;
  }

  .brand-link {
    gap: 6px !important;
  }

  .brand-logo {
    width: 42px !important;
    height: 42px !important;
  }

  .brand-name {
    max-width: 90px !important;
    font-size: 11.5px !important;
    line-height: 1.03 !important;
  }

  .mobile-toggle {
    width: 44px !important;
    height: 44px !important;
    border: 0 !important;
  }

  .mobile-toggle svg {
    width: 26px !important;
    height: 26px !important;
  }

  .site-header__progress {
    display: none !important;
  }

  .mobile-menu:not(.is-open):not([data-state="open"]):not([aria-hidden="false"]) {
    display: none;
  }

  /* Site-wide mobile rhythm: keep the editorial character, reduce repetition. */
  .secondary-page__hero h1 {
    max-width: 11ch;
    font-size: clamp(36px, 10.9vw, 44px) !important;
    line-height: 1.01 !important;
    letter-spacing: -0.035em;
  }

  .secondary-page__hero-copy > p {
    max-width: 36ch;
    font-size: 15px !important;
    line-height: 1.55 !important;
  }

  .secondary-section {
    padding-block: 52px !important;
  }

  .secondary-section__intro h2,
  .subscription-details-heading h2,
  .secondary-cta h2,
  .subscription-first-step h2 {
    font-size: clamp(30px, 8.7vw, 36px) !important;
    line-height: 1.04 !important;
    letter-spacing: -0.03em;
  }

  .secondary-section__label,
  .section-eyebrow {
    margin-bottom: 12px !important;
    font-size: 12px !important;
    font-weight: 750 !important;
    line-height: 1.35 !important;
    letter-spacing: 0.1em !important;
  }

  .secondary-section__label,
  .modern-situations .section-eyebrow,
  .route-section .section-eyebrow,
  .compact-materials .section-eyebrow {
    color: var(--preview-label) !important;
  }

  .modern-section-heading--light .section-eyebrow {
    color: #dce5ec !important;
  }

  .modern-section-heading > p:last-child {
    color: #465a65 !important;
    font-size: 15px !important;
  }

  /* Home materials: the whole card is already clickable, so arrows add noise. */
  .compact-materials .button--outline svg,
  .compact-materials__item > svg {
    display: none !important;
  }

  .compact-materials__item {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
  }

  .hero-bridge__principle {
    color: #42545e !important;
    font-size: 13px !important;
  }

  .secondary-hero-context__heading > div > span {
    color: var(--preview-label) !important;
    font-size: 11px !important;
    letter-spacing: 0.1em !important;
  }

  /* Home: preserve the full-bleed mood while keeping copy clear of Themis. */
  .hero {
    background: #07111c !important;
  }

  .hero__visual,
  .hero-media,
  .hero-media.parallax,
  .hero__grid {
    min-height: clamp(880px, calc(133vw + 430px), 950px) !important;
  }

  .hero__visual {
    height: auto !important;
    overflow: hidden !important;
    background: #07111c !important;
  }

  .hero-media,
  .hero-media.parallax {
    top: -20px !important;
    right: 0 !important;
    bottom: -20px !important;
    left: 0 !important;
    height: auto !important;
    overflow: hidden !important;
    background: #07111c !important;
    animation: none !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }

  .hero-media picture {
    display: block;
    width: 100%;
    height: 100%;
  }

  .hero-media__image {
    width: 100% !important;
    height: min(692px, 177.44vw) !important;
    object-fit: cover !important;
    object-position: 8% 50% !important;
    animation: none !important;
    filter: none !important;
    transform: translateY(clamp(-32px, -8.2vw, -26px)) !important;
    transform-origin: 50% 50% !important;
    transition: none !important;
    will-change: auto !important;
  }

  .hero__veil {
    height: 100% !important;
    background: linear-gradient(
      180deg,
      rgba(7, 15, 22, 0.18) 0%,
      rgba(7, 15, 22, 0.18) 45%,
      rgba(7, 15, 22, 0.46) 53%,
      rgba(7, 15, 22, 0.96) 64%,
      #07111c 67%
    ) !important;
    animation: none !important;
    pointer-events: none;
  }

  .hero__grid {
    height: auto !important;
    padding: calc(94px + env(safe-area-inset-top)) 0 14px !important;
    justify-content: flex-end !important;
  }

  .hero__copy {
    width: 100% !important;
    max-width: none !important;
    align-items: stretch !important;
    justify-content: flex-end !important;
    margin: 0 0 28px !important;
    padding: 0 10px !important;
    text-align: left !important;
  }

  .hero h1 {
    align-self: stretch;
    max-width: none;
    margin-bottom: 14px !important;
    font-size: clamp(34px, 10vw, 39px) !important;
    line-height: 0.92 !important;
    letter-spacing: -0.04em;
  }

  .hero__lead {
    max-width: none !important;
    margin-bottom: 18px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  .hero__actions {
    width: 100% !important;
    margin-bottom: 0 !important;
  }

  .hero__actions .button {
    width: 100% !important;
    max-width: none !important;
    min-height: 56px !important;
    background: linear-gradient(135deg, #163d64, #5b769a) !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .hero-details {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    overflow: hidden !important;
    margin-inline: 0 !important;
    background: rgba(6, 19, 30, 0.82) !important;
    border: 1px solid rgba(255, 255, 255, 0.34) !important;
    border-radius: 20px !important;
    box-shadow: none !important;
  }

  .hero .hero-detail--summary {
    min-height: 72px !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
    padding: 13px 14px !important;
  }

  .hero-detail__index,
  .service-index-row__number,
  .material-row__number {
    display: none !important;
  }

  .hero-detail__content strong {
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.18 !important;
  }

  .hero-detail__content small {
    display: none !important;
  }

  .modern-situations__option {
    grid-template-columns: minmax(0, 1fr) 14px !important;
    min-height: 54px !important;
    margin-bottom: 0 !important;
    padding: 11px 2px !important;
    background: transparent !important;
    border-right: 0 !important;
    border-left: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .modern-situations__option > span:first-child {
    display: none !important;
  }

  .modern-situations__option > span:nth-child(2) {
    font-size: 15px;
    line-height: 1.25;
  }

  /* Service detail pages: remove decorative indices, keep real process order. */
  .secondary-page--service-detail .service-featured-hero__number,
  .secondary-page--service-detail .service-section-heading > span,
  .secondary-page--service-detail .service-situations li > span,
  .secondary-page--service-detail .service-scope__number,
  .secondary-page--service-detail .service-documents > div > span {
    display: none !important;
  }

  .secondary-page--service-detail .service-section-heading {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
  }

  .secondary-page--service-detail .service-scope__item > button {
    grid-template-columns: minmax(0, 1fr) 24px !important;
    gap: 14px !important;
  }

  .secondary-page--service-detail .service-scope__panel ul {
    padding-left: 0 !important;
  }

  /* Selected direction: a calm, unnumbered editorial services index. */
  .secondary-page--services .service-index {
    padding-top: 34px !important;
    background: #fff;
  }

  .secondary-page--services .service-index__list {
    margin-top: 18px !important;
    border-top: 1px solid var(--preview-line);
  }

  .secondary-page--services .service-index-row,
  .secondary-page--services .service-index-row:hover {
    display: grid !important;
    min-height: 0 !important;
    grid-template-columns: minmax(0, 1fr) 46px !important;
    gap: 14px !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 18px 2px 19px !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--preview-line) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    contain-intrinsic-size: auto 158px !important;
    transform: none !important;
  }

  .secondary-page--services .service-index-row:active {
    background: rgba(49, 86, 118, 0.045) !important;
  }

  .secondary-page--services .service-index-row > div {
    min-width: 0;
    grid-column: 1;
  }

  .secondary-page--services .service-index-row h2,
  .secondary-page--services .service-index-row:hover h2 {
    margin: 0;
    font-size: clamp(22.5px, 5.9vw, 24px) !important;
    font-weight: 480 !important;
    line-height: 1.06 !important;
    letter-spacing: -0.02em;
  }

  .secondary-page--services .service-index-row p {
    display: block !important;
    margin: 7px 0 0 !important;
    overflow: visible;
    color: var(--preview-copy) !important;
    font-size: 13.5px !important;
    line-height: 1.46 !important;
    text-wrap: pretty;
    -webkit-box-orient: initial;
    -webkit-line-clamp: unset;
  }

  .secondary-page--services .service-index-row .secondary-arrow-link,
  .secondary-page--services .service-index-row:hover .secondary-arrow-link {
    display: grid !important;
    width: 44px !important;
    height: 44px !important;
    grid-column: 2 !important;
    align-self: center !important;
    justify-self: end !important;
    margin: 0 !important;
    padding: 0 !important;
    place-items: center !important;
    overflow: hidden;
    color: var(--preview-action-color) !important;
    background: var(--preview-action-bg) !important;
    border: 1px solid var(--preview-action-border) !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    font-size: 0 !important;
    transform: none !important;
  }

  .secondary-page--services .service-index-row .secondary-arrow-link svg {
    width: 19px !important;
    height: 19px !important;
    fill: currentColor !important;
    stroke: none !important;
  }

  /* Materials: reuse the same unnumbered editorial list language. */
  .secondary-page--materials .material-filter-shell {
    margin-top: 18px !important;
  }

  .secondary-page--materials .material-filter__hint,
  .secondary-page--materials .material-filter-shell::after {
    display: none !important;
  }

  .secondary-page--materials .material-filter {
    gap: 8px !important;
    padding: 0 0 8px !important;
  }

  .secondary-page--materials .material-filter button {
    min-height: 44px;
    padding: 9px 14px !important;
    color: var(--preview-label);
    background: #fff !important;
    border: 1px solid var(--preview-line) !important;
    border-radius: 999px !important;
    font-size: 11.5px !important;
    letter-spacing: 0.04em !important;
  }

  .secondary-page--materials .material-filter button[aria-pressed="true"] {
    color: #fff !important;
    background: var(--preview-blue) !important;
    border-color: var(--preview-blue) !important;
  }

  .secondary-page--materials .materials-index {
    margin-top: 14px !important;
    border-top: 1px solid var(--preview-line);
  }

  .secondary-page--materials .material-row,
  .secondary-page--materials .material-row:hover {
    display: grid !important;
    min-height: 0 !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 14px !important;
    margin: 0 !important;
    padding: 24px 2px 25px !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--preview-line) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    contain-intrinsic-size: auto 235px !important;
  }

  .secondary-page--materials .material-row > div:not(.material-row__actions) {
    min-width: 0;
    grid-column: 1 / -1;
  }

  .secondary-page--materials .material-row__category {
    margin-bottom: 8px !important;
    color: var(--preview-label) !important;
    font-size: 11.5px !important;
    font-weight: 750 !important;
    letter-spacing: 0.095em !important;
  }

  .secondary-page--materials .material-row h3 {
    max-width: 17ch;
    font-size: clamp(25px, 7.2vw, 29px) !important;
    line-height: 1.06 !important;
    letter-spacing: -0.028em;
  }

  .secondary-page--materials .material-row__excerpt {
    display: -webkit-box;
    margin-top: 12px !important;
    overflow: hidden;
    color: var(--preview-copy) !important;
    font-size: 14.5px !important;
    line-height: 1.52 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .secondary-page--materials .material-row__actions {
    display: flex !important;
    grid-column: 1 / -1 !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin-top: 2px;
  }

  .secondary-page--materials .material-row__service {
    display: none !important;
  }

  .secondary-page--materials .material-row__read-label {
    display: inline-flex !important;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    padding: 0 16px;
    color: var(--preview-action-color) !important;
    background: var(--preview-action-bg) !important;
    border-radius: 999px;
    font-size: 12px !important;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .secondary-page--materials .material-row:hover .material-row__read-label,
  .secondary-page--materials .material-row:active .material-row__read-label {
    color: var(--preview-action-color) !important;
    background: var(--preview-action-bg) !important;
  }

  .secondary-page--materials .material-row__read-label svg {
    width: 18px;
    height: 18px;
    fill: currentColor !important;
    stroke: none !important;
  }

  /* Subscription: concise summaries with progressive disclosure. */
  .secondary-page--subscription .subscription-comparison {
    gap: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border-top: 1px solid var(--preview-line) !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
    border-radius: 0 !important;
  }

  .secondary-page--subscription .subscription-comparison__item {
    padding: 20px 2px !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--preview-line) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .secondary-page--subscription .subscription-comparison__item h3 {
    font-size: 26px !important;
    line-height: 1.06 !important;
  }

  .secondary-page--subscription .subscription-plans {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    margin: 22px 0 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-top: 1px solid var(--preview-line) !important;
    border-radius: 0 !important;
  }

  .secondary-page--subscription .subscription-plan,
  .secondary-page--subscription .subscription-plan:last-child {
    display: block !important;
    margin: 0 !important;
    padding: 23px 2px 24px !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--preview-line) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .secondary-page--subscription .subscription-plan__topline {
    justify-content: flex-start !important;
  }

  .secondary-page--subscription .subscription-plan__topline strong {
    max-width: none !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: var(--preview-label) !important;
    font-size: 11.5px !important;
    font-weight: 750 !important;
    letter-spacing: 0.07em !important;
    text-align: left !important;
  }

  .secondary-page--subscription .subscription-plan h3 {
    margin-top: 13px !important;
    font-size: clamp(28px, 8vw, 33px) !important;
    line-height: 1.04 !important;
  }

  .secondary-page--subscription .subscription-plan > p.subscription-plan__subtitle {
    margin-top: 9px !important;
    color: #4c5e68 !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
  }

  .preview-plan-toggle {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: flex-start;
    margin: 18px 0 0;
    padding: 0;
    color: var(--preview-blue-dark);
    background: transparent;
    border: 0;
    border-top: 1px solid var(--preview-line);
    border-bottom: 1px solid var(--preview-line);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .secondary-page--subscription .subscription-plan:not(.is-preview-open) > .subscription-plan__fit,
  .secondary-page--subscription .subscription-plan:not(.is-preview-open) > .subscription-plan__included,
  .secondary-page--subscription .subscription-plan:not(.is-preview-open) > .subscription-plan__rules,
  .secondary-page--subscription .subscription-plan:not(.is-preview-open) > .secondary-arrow-link {
    display: none !important;
  }

  .secondary-page--subscription .subscription-plan.is-preview-open > .subscription-plan__fit {
    margin-top: 18px !important;
  }

  .secondary-page--subscription .subscription-plan.is-preview-open > .subscription-plan__included,
  .secondary-page--subscription .subscription-plan.is-preview-open > .subscription-plan__rules {
    margin-top: 18px !important;
  }

  .secondary-page--subscription .subscription-plan.is-preview-open > .secondary-arrow-link {
    display: inline-flex !important;
    min-height: 48px;
    margin-top: 22px !important;
    padding: 10px 15px;
    color: #fff !important;
    background: var(--preview-blue);
    border-radius: 999px;
  }

  /* News and generic content: compact repeated titles without changing content. */
  .news-list-row,
  .news-list-row:hover {
    padding: 21px 18px !important;
    border-radius: 16px !important;
  }

  .news-list-row h3 {
    font-size: 23px !important;
    line-height: 1.08 !important;
  }

  #news-subscribe-title {
    font-size: clamp(27px, 8.5vw, 36px) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.025em;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .news-list-row__link,
  .news-list-row:hover .news-list-row__link,
  .news-list-row:active .news-list-row__link {
    width: 44px !important;
    height: 44px !important;
    color: var(--preview-action-color) !important;
    background: var(--preview-action-bg) !important;
    border-color: var(--preview-action-border) !important;
  }

  /* Labels on dark information panels must remain readable. */
  .material-guide-mistakes .secondary-section__label,
  .contact-safety .secondary-section__label {
    color: #dce5ec !important;
  }

  @media (prefers-color-scheme: dark) {
    html,
    body,
    .secondary-page,
    .secondary-section,
    .site-header,
    .site-header.is-scrolled {
      color-scheme: light;
    }
  }
}

@media (max-width: 360px) {
  .secondary-page--services .service-index-row h2,
  .secondary-page--services .service-index-row:hover h2 {
    font-size: 22.5px !important;
  }

  .secondary-page--services .service-index-row p {
    font-size: 13.5px !important;
  }

  .secondary-page--materials .material-row h3 {
    font-size: 24px !important;
  }
}

/* Keep the complete first action visible on very short phones. */
@media (max-width: 340px) and (max-height: 640px) and (orientation: portrait) {
  .hero__visual,
  .hero-media,
  .hero-media.parallax,
  .hero__grid {
    min-height: 760px !important;
  }

  .hero-media__image {
    height: 147vw !important;
    transform: translateY(-40px) !important;
  }

  .hero__veil {
    background: linear-gradient(
      180deg,
      rgba(7, 15, 22, 0.18) 0%,
      rgba(7, 15, 22, 0.18) 35%,
      rgba(7, 15, 22, 0.5) 43%,
      rgba(7, 15, 22, 0.96) 52%,
      #07111c 55%
    ) !important;
  }

  .hero__grid {
    padding-top: 78px !important;
  }

  .hero h1 {
    margin-bottom: 10px !important;
    font-size: 32px !important;
  }

  .hero__lead {
    margin-bottom: 10px !important;
    font-size: 12.5px !important;
    line-height: 1.42 !important;
  }

  .hero__actions .button {
    height: 48px !important;
    min-height: 48px !important;
  }
}

/*
 * ---------------------------------------------------------------------------
 * Design refinement layer (local preview only).
 * Goals: calmer interactive states, unified brand focus ring and a fix for
 * the invisible dark-footer link hover.
 * The QA-approved mobile hero composition above stays untouched.
 * ---------------------------------------------------------------------------
 */

/* Selection in brand navy instead of the browser default. */
::selection {
  background: #244e70;
  color: #fff;
}

/* One keyboard focus color everywhere; the legacy token was greenish. */
:root {
  --focus-ring: #315676;
}

:focus-visible {
  outline-color: #315676;
}

.hero a:focus-visible,
.hero button:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

select {
  cursor: pointer;
}

/* Tactile buttons: quick, small press feedback. Magnetic buttons keep
   their own stronger transform via higher specificity. */
.button:active {
  transform: translateY(1px) scale(0.99);
  transition-duration: 0.09s;
}

/* Arrows answer pointer intent with a short, restrained nudge. */
.button > svg,
.secondary-arrow-link svg,
.material-row__read-label svg,
.news-list-row__link svg {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .button:hover > svg,
  .button:focus-visible > svg,
  .secondary-arrow-link:hover svg,
  .service-index-row:hover .secondary-arrow-link svg,
  .material-row:hover .material-row__read-label svg,
  .news-list-row:hover .news-list-row__link svg {
    transform: translateX(3px);
  }

  /* Fields respond before focus so the form feels alive. */
  .contact-form input:not([type="checkbox"]):not(:focus):hover,
  .contact-form textarea:not(:focus):hover,
  .contact-form select:not(:focus):hover {
    border-color: #526b7b;
  }

}

.services-dropdown__item .services-dropdown__number {
  color: #607a90;
}

@media (max-width: 760px) {
  /* Press feedback where rows act as links. */
  .news-list-row:active {
    background: rgba(20, 34, 45, 0.045) !important;
  }

  /* Menu CTA shares the hero gradient; panel respects home-indicator area. */
  .mobile-menu .button--primary {
    background: linear-gradient(135deg, #163d64, #5b769a) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  }

  .mobile-menu__panel {
    padding-bottom: calc(28px + env(safe-area-inset-bottom)) !important;
  }

  .mobile-menu__contacts a:active {
    color: var(--preview-blue-dark, #244662);
  }
}

/*
 * ---------------------------------------------------------------------------
 * Visual system v2 (local preview only).
 * One editorial idea: a quiet legal atelier — ink navy, warm paper, hairlines.
 * Sections: tokens, eyebrows, buttons, cards & rows, article facts, footer,
 * scrollbar, mobile menu entrance. Hover language lives behind
 * (hover: hover) and (pointer: fine); everything honors reduced motion.
 * ---------------------------------------------------------------------------
 */

/* --- Tokens ------------------------------------------------------------- */
:root {
  --v2-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --v2-accent-deep: #344d5d;
}

/* --- Eyebrow labels get an editorial hairline ---------------------------- */
.section-eyebrow,
.secondary-section__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-eyebrow::before,
.secondary-section__label::before {
  flex: none;
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  content: "";
}

/* Centered variants keep the rule visually attached to the text. */
.material-guide-mistakes .secondary-section__label,
.contact-safety .secondary-section__label,
.modern-section-heading--light .section-eyebrow {
  color: inherit;
}

@media (hover: hover) and (pointer: fine) {
  /* --- Cards & rows: one hover language — lift, hairline accent, fill ---- */
  .news-list-row {
    transition:
      background-color 0.25s var(--v2-ease),
      border-color 0.25s var(--v2-ease),
      box-shadow 0.25s var(--v2-ease),
      transform 0.25s var(--v2-ease);
  }

  .news-list-row:hover {
    transform: translateY(-2px);
  }

  /* Service index rows on desktop: quiet paper card -> white with an
     inset accent hairline that reads as "this row is live". */
  .service-index-row {
    transition:
      background-color 0.25s var(--v2-ease),
      box-shadow 0.25s var(--v2-ease),
      transform 0.25s var(--v2-ease);
  }

  .service-index-row:hover {
    background: var(--white, #fff) !important;
    box-shadow:
      inset 3px 0 0 var(--v2-accent-deep),
      0 18px 44px rgba(16, 34, 49, 0.08) !important;
    transform: translateY(-2px);
  }

  .material-row {
    transition:
      background-color 0.25s var(--v2-ease),
      box-shadow 0.25s var(--v2-ease),
      transform 0.25s var(--v2-ease);
  }

  .material-row:hover {
    transform: translateY(-2px);
  }
}

/* Index numbers belong to the accent family, not to body gray. */
.service-index-row__number,
.material-guide-section__number {
  color: var(--v2-accent-deep);
}

/* --- Article facts: large serif values must carry real contrast ---------- */
.material-guide-facts__grid strong {
  color: var(--v2-accent-deep);
}

.material-guide-facts__grid span {
  color: var(--ink-soft, #52606a);
}

/* --- Footer: gradient hairline + underline reveal ------------------------ */
.site-footer {
  position: relative;
}

.site-footer::before {
  position: absolute;
  top: 0;
  right: 12%;
  left: 12%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.28),
    transparent
  );
  content: "";
}

.site-footer a {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: transparent;
  transition:
    color 0.18s ease,
    text-decoration-color 0.22s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

.site-footer h2 {
  letter-spacing: 0.16em;
}

/* --- Scrollbars in brand tones ------------------------------------------- */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(52, 77, 93, 0.4) transparent;
}

html::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb {
  background: rgba(52, 77, 93, 0.35);
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: content-box;
}

html::-webkit-scrollbar-thumb:hover {
  background: rgba(52, 77, 93, 0.55);
  border: 2px solid transparent;
  background-clip: content-box;
}

/* --- Mobile menu: staggered entrance ------------------------------------- */
@media (max-width: 760px) {
  .mobile-menu__panel nav a {
    opacity: 0;
    transform: translateY(10px);
    transition:
      opacity 0.2s var(--v2-ease),
      transform 0.24s var(--v2-ease);
  }

  .mobile-menu.is-open .mobile-menu__panel nav a,
  .mobile-menu[data-state="open"] .mobile-menu__panel nav a,
  .mobile-menu[aria-hidden="false"] .mobile-menu__panel nav a {
    opacity: 1;
    transform: none;
  }

  .mobile-menu.is-open .mobile-menu__panel nav a:nth-child(1),
  .mobile-menu[data-state="open"] .mobile-menu__panel nav a:nth-child(1),
  .mobile-menu[aria-hidden="false"] .mobile-menu__panel nav a:nth-child(1) {
    transition-delay: 0.02s;
  }

  .mobile-menu.is-open .mobile-menu__panel nav a:nth-child(2),
  .mobile-menu[data-state="open"] .mobile-menu__panel nav a:nth-child(2),
  .mobile-menu[aria-hidden="false"] .mobile-menu__panel nav a:nth-child(2) {
    transition-delay: 0.04s;
  }

  .mobile-menu.is-open .mobile-menu__panel nav a:nth-child(3),
  .mobile-menu[data-state="open"] .mobile-menu__panel nav a:nth-child(3),
  .mobile-menu[aria-hidden="false"] .mobile-menu__panel nav a:nth-child(3) {
    transition-delay: 0.06s;
  }

  .mobile-menu.is-open .mobile-menu__panel nav a:nth-child(4),
  .mobile-menu[data-state="open"] .mobile-menu__panel nav a:nth-child(4),
  .mobile-menu[aria-hidden="false"] .mobile-menu__panel nav a:nth-child(4) {
    transition-delay: 0.08s;
  }

  .mobile-menu.is-open .mobile-menu__panel nav a:nth-child(5),
  .mobile-menu[data-state="open"] .mobile-menu__panel nav a:nth-child(5),
  .mobile-menu[aria-hidden="false"] .mobile-menu__panel nav a:nth-child(5) {
    transition-delay: 0.1s;
  }

  .mobile-menu.is-open .mobile-menu__panel nav a:nth-child(6),
  .mobile-menu[data-state="open"] .mobile-menu__panel nav a:nth-child(6),
  .mobile-menu[aria-hidden="false"] .mobile-menu__panel nav a:nth-child(6) {
    transition-delay: 0.12s;
  }
}

/* --- Reduced motion: v2 states become instant ---------------------------- */
@media (prefers-reduced-motion: reduce) {
  .news-list-row,
  .service-index-row,
  .material-row,
  .site-footer a,
  .mobile-menu__panel nav a {
    transition: none !important;
    transform: none !important;
  }

  .mobile-menu__panel nav a {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
