/* Instance home (Страница Home) — dark design system from референс/index.html */

.portal-body--home-instance {
  --hi-bg: #010406;
  --hi-bg-alt: #0a0e11;
  --hi-surface: #1a1e24;
  --hi-fg: #eef1f4;
  --hi-fg-2: #c0c8d0;
  --hi-muted: #7a828c;
  --hi-border: #262b31;
  --hi-card-border: #3f3f3e;
  --hi-hairline: rgba(255, 255, 255, 0.08);
  --hi-accent: #f0b478;
  --hi-accent-strong: #e09a4e;
  --hi-ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --portal-bg: var(--hi-bg);
  --portal-bg-soft: var(--hi-bg);
  --portal-ink: var(--hi-fg);
  --portal-muted: var(--hi-muted);
  --portal-line: var(--hi-border);
  --portal-gold: var(--hi-accent);
  --portal-gold-deep: var(--hi-accent-strong);
  /* Montserrat Light/Thin — geometric + Cyrillic, matches референс weight */
  --portal-sans: "Montserrat", "Golos Text", "Segoe UI", system-ui, sans-serif;
  font-family: var(--portal-sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.portal-shell--home-instance,
.portal-page--home-instance {
  background: var(--hi-bg);
  color: var(--hi-fg);
  max-width: none;
  box-shadow: none;
}

.portal-page--home-instance {
  width: 100%;
  padding: 0;
}

.portal-body--home-instance .portal-home__block {
  margin: 0;
  padding: 0;
}

.portal-body--home-instance .portal-home__block--hero {
  margin: 0;
}

/* The footer owns the final page divider; suppress a strip's own divider at this seam. */
.portal-page--home-instance > .portal-home__block:has(+ .portal-footer) > :is(
  .home-strip,
  .home-pf,
  .home-cta-strip
),
.portal-page--home-instance > .portal-mobile-hero-panel > .portal-home__block:has(+ .portal-footer) > :is(
  .home-strip,
  .home-pf,
  .home-cta-strip
) {
  border-bottom: none;
}

/* Hero fallback fill = second strip tone (even → --hi-bg), not brown #12100c */
.portal-body--home-instance .portal-article-hero {
  background: var(--hi-bg);
  /* Breakpoint overlay: desktop → tablet → mobile (height_vh must not swap to solid). */
  --hero-overlay-active: var(--hero-overlay, 35);
}
@media (min-width: 768px) and (max-width: 1024px) {
  .portal-body--home-instance .portal-article-hero {
    --hero-overlay-active: var(--hero-overlay-t, var(--hero-overlay, 35));
  }
}
@media (min-width: 1025px) {
  .portal-body--home-instance .portal-article-hero {
    --hero-overlay-active: var(--hero-overlay, 35);
  }
}
@media (max-width: 767px) {
  .portal-body--home-instance .portal-article-hero {
    --hero-overlay-active: var(--hero-overlay-m, var(--hero-overlay, 35));
  }
}
.portal-body--home-instance .portal-article-hero__overlay,
.portal-body--home-instance .portal-article-hero[data-responsive-hero] .portal-article-hero__overlay {
  /* CMS opacity controls the text-side scrim; keep the cutting light visible. */
  background: linear-gradient(
    90deg,
    rgba(1, 4, 6, calc(var(--hero-overlay-active) / 85)) 0%,
    rgba(1, 4, 6, calc(var(--hero-overlay-active) / 95)) 28%,
    rgba(1, 4, 6, calc(var(--hero-overlay-active) / 220)) 48%,
    rgba(1, 4, 6, calc(var(--hero-overlay-active) / 800)) 70%,
    rgba(1, 4, 6, calc(var(--hero-overlay-active) / 500)) 100%
  );
}

/* ---------- Wordmark: INOX heavy + SIGNS thin (same color) ---------- */
.portal-body--home-instance .portal-word {
  font-family: var(--portal-sans);
  font-weight: 200;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hi-fg);
  font-size: 15px;
  line-height: 1.1;
}
.portal-body--home-instance .portal-word__lead,
.portal-body--home-instance .portal-word b {
  font-weight: 700;
  color: inherit;
}
.portal-body--home-instance .portal-word__tail {
  font-weight: 200;
  color: inherit;
}

/* ---------- Header: instance_dark ----------
   Font: Golos Text (Cyrillic + Latin). CTA: gold ghost pill (реф2 / реф главной).
   Applies to quote CTA and promoted 3D-калькулятор (.portal-cta). */
.portal-header--instance_dark {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(16px, 3.4vw, 40px);
  min-height: 64px;
  position: relative;
  background: color-mix(in oklab, var(--hi-bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hi-border);
  color: var(--hi-fg);
  font-family: var(--portal-sans);
}
.portal-header--instance_dark .portal-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 8px 20px;
  column-gap: 20px;
  row-gap: 8px;
  flex-wrap: wrap;
  font-family: var(--portal-sans);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
}
.portal-header--instance_dark .portal-nav.portal-nav--rubrics,
.portal-header--instance_dark .portal-nav.portal-nav--premium {
  gap: 8px 20px;
  column-gap: 20px;
}
.portal-header--instance_dark .portal-nav .portal-rubric {
  margin: 0;
}
.portal-header--instance_dark .portal-nav .portal-nav-flip,
.portal-header--instance_dark .portal-nav .portal-rubric__toggle.portal-nav-flip {
  padding-left: 10px;
  padding-right: 10px;
}
.portal-header--instance_dark .portal-nav a:not(.portal-cta):not(.portal-nav-flip):not(.portal-rubric__option) {
  color: var(--hi-fg);
  border-bottom: none;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: none;
  transition: color 120ms var(--hi-ease), background 120ms var(--hi-ease);
}
.portal-header--instance_dark .portal-nav a:not(.portal-cta):not(.portal-nav-flip):not(.portal-rubric__option):hover,
.portal-header--instance_dark .portal-nav a:not(.portal-cta):not(.portal-nav-flip):not(.portal-rubric__option).is-on {
  color: var(--hi-accent);
  background: rgba(240, 180, 120, 0.12);
  border-bottom: none;
}
/* Premium flip links: no pill fill — copper rule + text roll instead */
.portal-header--instance_dark .portal-nav a.portal-nav-flip,
.portal-header--instance_dark .portal-nav .portal-rubric__toggle {
  color: var(--hi-fg);
  background: transparent;
  border-radius: 0;
}
.portal-header--instance_dark .portal-nav a.portal-nav-flip:hover,
.portal-header--instance_dark .portal-nav a.portal-nav-flip.is-on,
.portal-header--instance_dark .portal-nav .portal-rubric.is-hover > .portal-rubric__toggle,
.portal-header--instance_dark .portal-nav .portal-rubric__toggle[aria-expanded="true"] {
  color: var(--hi-fg);
  background: transparent;
}
/* Ghost pill CTA — muted gold border + text (quote + 3D calculator) */
.portal-header--instance_dark .portal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 20px;
  background: transparent;
  color: var(--hi-accent);
  border: 1px solid var(--hi-accent);
  border-radius: 999px;
  font-family: var(--portal-sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  white-space: nowrap;
  text-decoration: none;
  transition:
    background 120ms var(--hi-ease),
    border-color 120ms var(--hi-ease),
    color 120ms var(--hi-ease),
    box-shadow 120ms var(--hi-ease);
}
.portal-header--instance_dark .portal-cta:hover,
.portal-header--instance_dark .portal-cta:focus-visible {
  background: var(--hi-accent);
  color: var(--hi-bg, #010406);
  border-color: var(--hi-accent);
  box-shadow: 0 4px 18px -6px rgba(240, 180, 120, 0.55);
}
.portal-header--instance_dark .portal-lang__btn {
  color: var(--hi-fg-2);
  font-family: var(--portal-sans);
}
.portal-header--instance_dark .portal-auth__btn {
  color: var(--hi-fg-2);
}
.portal-header--instance_dark .portal-auth__btn:hover,
.portal-header--instance_dark .portal-auth__btn:focus-visible,
.portal-header--instance_dark .portal-auth__btn[aria-expanded="true"] {
  color: var(--hi-accent);
}
/* Auth dropdown on dark chrome: keep light card + explicit padding
   (shell overflow-x:clip / CF cache often made this look flush-left). */
.portal-header--instance_dark .portal-auth {
  overflow: visible;
  z-index: 90;
}
.portal-header--instance_dark .portal-auth__menu {
  min-width: 220px;
  padding: 6px 0;
  color: #1a1814;
  background: #fff;
  border: 1px solid var(--portal-line, #d9d2c4);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(23, 20, 15, 0.14);
}
.portal-header--instance_dark .portal-auth__menu > li {
  margin: 0;
  padding: 0;
}
.portal-header--instance_dark .portal-auth__menu > li.portal-auth__profile {
  box-sizing: border-box;
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--portal-line, #d9d2c4);
  margin: 0 0 4px;
}
.portal-header--instance_dark .portal-auth__profile-name {
  color: #1a1814;
  font-family: var(--portal-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.portal-header--instance_dark .portal-auth__profile-meta {
  color: var(--portal-muted, #6b6458);
  font-family: var(--portal-sans);
  font-size: 12px;
  line-height: 1.3;
}
.portal-header--instance_dark .portal-auth__option {
  box-sizing: border-box;
  width: 100%;
  padding: 10px 16px;
  color: #1a1814;
  font-family: var(--portal-sans);
  font-size: 14px;
  line-height: 1.35;
}
.portal-header--instance_dark .portal-auth__option:hover,
.portal-header--instance_dark .portal-auth__option:focus-visible {
  background: rgba(201, 169, 106, 0.14);
  color: #1a1814;
}
.portal-header--instance_dark .portal-word-under {
  display: none;
}
.portal-header--instance_dark .portal-stop-videos {
  color: var(--hi-fg-2);
}

/* Overlay mode: dark translucent bar (tuned in DevTools) */
.portal-shell--hero-overlay .portal-header--instance_dark {
  background: color-mix(in oklab, #070c0f 70%, transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(2px) saturate(0.5);
  -webkit-backdrop-filter: blur(2px) saturate(0.5);
}
/* Beat generic hero-overlay cream CTA (portal-article-hero.css) */
.portal-shell--hero-overlay .portal-header--instance_dark .portal-cta {
  background: transparent;
  color: var(--hi-accent);
  border: 1px solid var(--hi-accent);
}
.portal-shell--hero-overlay .portal-header--instance_dark .portal-cta:hover,
.portal-shell--hero-overlay .portal-header--instance_dark .portal-cta:focus-visible {
  background: var(--hi-accent);
  color: var(--hi-bg, #010406);
  border-color: var(--hi-accent);
}
.portal-shell--hero-overlay .portal-header--instance_dark .portal-nav a:not(.portal-cta):not(.portal-nav-flip):not(.portal-rubric__option) {
  color: var(--hi-fg);
  border-bottom: none;
}
.portal-shell--hero-overlay .portal-header--instance_dark .portal-nav a:not(.portal-cta):not(.portal-nav-flip):not(.portal-rubric__option):hover,
.portal-shell--hero-overlay .portal-header--instance_dark .portal-nav a:not(.portal-cta):not(.portal-nav-flip):not(.portal-rubric__option).is-on {
  color: var(--hi-accent);
  background: rgba(240, 180, 120, 0.12);
  border-bottom: none;
}

/* Desktop dropdowns: nearly opaque so hero/media does not wash out labels */
@media (min-width: 901px) {
  .portal-body--home-instance .portal-rubric__menu,
  .portal-body--home-instance .portal-header--instance_dark .portal-lang__menu {
    background: rgba(8, 12, 16, 0.96);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(20px) saturate(1.1);
    -webkit-backdrop-filter: blur(20px) saturate(1.1);
  }
}

/* ---------- Footer: instance_dark ---------- */
.portal-footer--instance_dark {
  position: relative;
  background: var(--hi-bg);
  color: var(--hi-fg-2);
  border-top: none;
  padding: clamp(28px, 3.2vw, 44px) clamp(16px, 3.4vw, 40px) 20px;
  margin-top: 0;
}
.portal-footer--instance_dark::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 1px;
  transform: translateX(-50%);
  background: color-mix(in oklab, var(--hi-accent) 42%, transparent);
  pointer-events: none;
}
.portal-footer--instance_dark .portal-footer__top {
  display: grid;
  grid-template-columns: minmax(200px, 1.15fr) minmax(0, 3.2fr);
  align-items: flex-start;
  gap: clamp(20px, 3vw, 40px);
  margin-bottom: clamp(22px, 2.8vw, 36px);
}
.portal-footer--instance_dark .portal-footer__brand {
  gap: 0;
  max-width: 22rem;
}
.portal-footer--instance_dark .portal-footer__brand-link {
  text-decoration: none;
}
.portal-footer--instance_dark .portal-word {
  font-family: var(--portal-sans);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 200;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hi-fg);
  line-height: 1.1;
}
.portal-footer--instance_dark .portal-word__lead,
.portal-footer--instance_dark .portal-word b {
  font-weight: 700;
  color: inherit;
}
.portal-footer--instance_dark .portal-word__tail {
  font-weight: 200;
  color: inherit;
}
.portal-footer--instance_dark .portal-footer__lockup {
  display: block;
  margin: 8px 0 0;
  font-family: var(--portal-sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hi-muted);
  line-height: 1.35;
}
.portal-footer--instance_dark .portal-footer__blurb {
  margin: 18px 0 0;
  font-family: var(--portal-sans);
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.55;
  color: #c8ced4;
  max-width: 28ch;
}
.portal-footer--instance_dark .portal-footer__meta {
  margin-top: 10px;
  color: var(--hi-muted);
  font-size: 12.5px;
}
.portal-footer--instance_dark .portal-footer-social--brand {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  justify-content: flex-start;
}
.portal-footer--instance_dark .portal-footer-social--brand .portal-footer-social__link {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  color: var(--hi-fg-2);
  text-decoration: none;
  overflow: hidden;
  transition:
    border-color 200ms var(--hi-ease),
    color 200ms var(--hi-ease),
    background 200ms var(--hi-ease);
}
.portal-footer--instance_dark .portal-footer-social--brand .portal-footer-social__link:hover,
.portal-footer--instance_dark .portal-footer-social--brand .portal-footer-social__link:focus-visible {
  border-color: var(--hi-accent);
  color: var(--hi-accent);
  background: rgba(240, 180, 120, 0.06);
}
.portal-footer--instance_dark .portal-footer-social__glyph {
  display: block;
}
.portal-footer--instance_dark .portal-footer-social--brand .portal-footer-social__text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 3D tilt social (landing design) — available on portal when Menu.design=social_tilt */
.portal-footer-social--tilt {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.portal-footer--instance_dark .portal-footer-social--tilt {
  margin-top: 22px;
}
.portal-footer-social--tilt a.tilt-child {
  width: 44px;
  height: 44px;
  margin: 0;
  border: 0;
  border-radius: 5px;
  color: var(--hi-accent, var(--portal-gold, #c9a96a));
  background: transparent;
  transform-style: preserve-3d;
  transition: all 0.3s cubic-bezier(0.68, 0.85, 0.265, 1.85);
  box-shadow: inset 0 0 0 1px rgba(201, 169, 106, 0.35);
  text-decoration: none;
  overflow: hidden;
}
.portal-footer-social--tilt a.tilt-child:hover,
.portal-footer-social--tilt a.tilt-child:focus-visible {
  background-color: #fff;
  transform: perspective(180px) rotateX(60deg) translateY(2px);
  outline: none;
  color: var(--hi-accent, var(--portal-gold, #c9a96a));
  box-shadow: 0 10px 10px var(--tilt-glow, #c9a96a);
}
.portal-footer-social--tilt .tilt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition-duration: 0.5s;
  transition-timing-function: cubic-bezier(0.68, -0.85, 0.265, 1.55);
}
.portal-footer-social--tilt a.tilt-child:hover .tilt-btn,
.portal-footer-social--tilt a.tilt-child:focus-visible .tilt-btn {
  transform: translate3d(0, 16px, 28px) perspective(80px) rotateX(-60deg)
    translateY(2px) translateZ(10px);
}
.portal-footer-social--tilt .portal-footer-social__text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (prefers-reduced-motion: reduce) {
  .portal-footer-social--tilt a.tilt-child,
  .portal-footer-social--tilt .tilt-btn {
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  }
  .portal-footer-social--tilt a.tilt-child:hover,
  .portal-footer-social--tilt a.tilt-child:focus-visible {
    transform: none;
  }
  .portal-footer-social--tilt a.tilt-child:hover .tilt-btn,
  .portal-footer-social--tilt a.tilt-child:focus-visible .tilt-btn {
    transform: none;
  }
}
.portal-footer--instance_dark .portal-footer__cols {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  justify-content: stretch;
  flex: none;
}
.portal-footer--instance_dark .portal-footer__col-title {
  margin: 0 0 14px;
  font-family: var(--portal-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hi-accent);
}
.portal-footer--instance_dark .portal-footer__col-list {
  gap: 8px;
}
.portal-footer--instance_dark .portal-footer__col-list a,
.portal-footer--instance_dark .portal-footer__col-list .portal-stop-videos {
  font-family: var(--portal-sans);
  font-size: 13.5px;
  font-weight: 300;
  color: #c0c8d0;
  text-decoration: none;
}
.portal-footer--instance_dark a {
  color: var(--hi-fg-2);
}
.portal-footer--instance_dark a:hover {
  color: var(--hi-accent);
}
.portal-footer--instance_dark .portal-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.portal-footer--instance_dark .portal-footer__legal-start {
  min-width: 0;
}
.portal-footer--instance_dark .portal-footer__copy {
  display: block;
  text-align: left;
  color: var(--hi-muted);
  margin: 0;
  font-size: 12.5px;
  font-weight: 300;
  letter-spacing: 0.01em;
}
.portal-footer--instance_dark .portal-footer__audience {
  display: block;
  text-align: left;
  color: var(--hi-muted);
  margin: 4px 0 0;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.01em;
  opacity: 0.92;
  max-width: 36rem;
}
.portal-footer--instance_dark .portal-footer__legal-end {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0;
  text-align: right;
  font-size: 12.5px;
  color: var(--hi-muted);
  letter-spacing: 0.01em;
  line-height: 1.45;
}
.portal-footer--instance_dark .portal-footer-links--inline {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0;
  margin: 0;
}
.portal-footer--instance_dark .portal-footer__legal-item {
  display: inline;
}
.portal-footer--instance_dark .portal-footer__legal-item + .portal-footer__legal-item::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.85em;
  margin: 0 12px;
  background: rgba(255, 255, 255, 0.22);
  vertical-align: -0.1em;
}
.portal-footer--instance_dark .portal-footer-links--inline a,
.portal-footer--instance_dark .portal-footer__cookie {
  color: var(--hi-muted);
  text-decoration: none;
  border-bottom: none;
  font-weight: 300;
}
.portal-footer--instance_dark .portal-footer-links--inline a:hover,
.portal-footer--instance_dark .portal-footer__cookie:hover {
  color: var(--hi-accent);
}
.portal-footer--instance_dark .portal-footer__cookie {
  text-decoration: none;
}
@media (max-width: 1100px) {
  .portal-footer--instance_dark .portal-footer__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .portal-footer--instance_dark .portal-footer__top {
    grid-template-columns: 1fr;
  }
  .portal-footer--instance_dark .portal-footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .portal-footer--instance_dark .portal-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .portal-footer--instance_dark .portal-footer__legal-end {
    justify-content: flex-start;
    text-align: left;
  }
  .portal-footer--instance_dark .portal-footer-links--inline {
    justify-content: flex-start;
  }
}

/* ---------- Portfolio carousel (Swiper Coverflow) ---------- */
.home-pfc.home-strip {
  overflow: hidden;
}
.home-pfc__inner {
  align-items: center;
}
.home-pfc__inner > .home-strip__text {
  position: relative;
  z-index: 2;
}
.home-pfc__stage.swiper {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden; /* clip coverflow so it never underlaps the text column */
  --pfc-slide-w: calc(var(--pfc-h, 260px) * var(--pfc-aspect, 1));
}
.home-pfc__stage .swiper-wrapper {
  align-items: center;
}
.home-pfc__slide.swiper-slide {
  width: var(--pfc-slide-w);
  height: var(--pfc-h, 260px);
  background: transparent;
  box-sizing: border-box;
}
.home-pfc__card {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border-radius: 18px;
  background: #121518;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.home-pfc__card.is-inert {
  pointer-events: none;
}
.home-pfc__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #1c2026, #0c0e12 70%);
}
.home-pfc__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Quiet filmstrip sepia — all cards, including active */
  filter: grayscale(0.45) sepia(0.28) brightness(0.88) contrast(1.05);
  transition: filter 280ms var(--hi-ease, ease);
}
.home-pfc__card:hover .home-pfc__img,
.home-pfc__card:focus-visible .home-pfc__img,
.home-pfc__slide.is-hot .home-pfc__img {
  filter: grayscale(0.2) sepia(0.12) brightness(0.96) contrast(1.02);
}
.home-pfc__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 18px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 240ms var(--hi-ease, ease),
    transform 280ms var(--hi-ease, ease);
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(6, 8, 10, 0.62) 100%
  );
}
.home-pfc__card:hover .home-pfc__caption,
.home-pfc__card:focus-visible .home-pfc__caption,
.home-pfc__slide.is-hot .home-pfc__caption {
  opacity: 1;
  transform: translateY(0);
}
.home-pfc__tag {
  font-family: var(--portal-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e8ecef;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.85),
    0 0 14px rgba(0, 0, 0, 0.55);
}
.home-pfc__name {
  font-family: var(--portal-sans);
  font-size: clamp(14px, 1.3vw, 16px);
  font-weight: 400;
  line-height: 1.3;
  color: #f5f7f9;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.9),
    0 2px 10px rgba(0, 0, 0, 0.7);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.home-pfc__stage .swiper-slide-shadow-left,
.home-pfc__stage .swiper-slide-shadow-right {
  border-radius: 18px;
  pointer-events: none;
  background-image: linear-gradient(
    to left,
    rgba(1, 4, 6, 0.45),
    transparent
  );
}
.home-pfc__stage .swiper-slide-shadow-left {
  background-image: linear-gradient(
    to right,
    rgba(1, 4, 6, 0.45),
    transparent
  );
}
@media (max-width: 900px) {
  .home-pfc__inner.home-strip__inner {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-pfc__img,
  .home-pfc__caption {
    transition: none;
  }
}

/* ---------- Home CTA strip (референс Let's work together) ---------- */
.home-cta-strip {
  position: relative;
  isolation: isolate;
  min-height: var(--cta-min-h, 360px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--hi-fg);
  border-bottom: none;
  /* Default; alternating rule below overrides via --cta-fade-bg. */
  --cta-fade-bg: var(--hi-bg);
  background: var(--cta-fade-bg);
}
.home-cta-strip__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--cta-bg, none);
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  opacity: var(--cta-bg-opacity, 1);
}
.home-cta-strip__fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    var(--cta-fade-bg) 0%,
    var(--cta-fade-bg) 28%,
    color-mix(in oklab, var(--cta-fade-bg) 78%, transparent) 48%,
    color-mix(in oklab, var(--cta-fade-bg) 28%, transparent) 68%,
    transparent 88%
  );
}
.home-cta-strip__inner {
  position: relative;
  z-index: 2;
  max-width: var(--portal-max, 1280px);
  width: 100%;
  margin: 0 auto;
  padding: clamp(48px, 7vh, 88px) clamp(16px, 3.4vw, 40px);
  /* Content column only — never a short seam here. */
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
}
.home-cta-strip__eyebrow {
  margin: 0 0 16px;
  font-family: var(--portal-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hi-accent);
}
.home-cta-strip__title {
  margin: 0 0 16px;
  max-width: 18ch;
  font-family: var(--portal-sans);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--hi-fg);
}
.home-cta-strip__title p {
  margin: 0;
  font-weight: 300;
}
.home-cta-strip__title i,
.home-cta-strip__title em {
  font-style: italic;
  color: var(--hi-fg);
}
.home-cta-strip__body {
  max-width: min(34rem, 92%);
  color: #c0c8d0;
}
.home-cta-strip__body p {
  margin: 0 0 0.55em;
  font-family: var(--portal-sans);
  font-size: clamp(14px, 1.2vw, 15.5px);
  font-weight: 300;
  line-height: 1.55;
}
.home-cta-strip__body p:last-child {
  margin-bottom: 0;
}
.home-cta-strip .home-cta--ghost-rect {
  margin-top: 28px;
  height: 44px;
  padding: 0 22px;
  gap: 12px;
  border-radius: 2px;
  border: 1px solid var(--hi-accent);
  color: var(--hi-fg);
  background: transparent;
  font-family: var(--portal-sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition:
    background 220ms var(--hi-ease),
    color 220ms var(--hi-ease),
    border-color 220ms var(--hi-ease);
}
.home-cta-strip .home-cta--ghost-rect .home-cta__label {
  border-bottom: none;
}
.home-cta-strip__footnote {
  max-width: min(34rem, 92%);
  margin-top: 50px;
  color: #9ea8b2;
  font-family: var(--portal-sans);
  font-size: clamp(11px, 0.95vw, 13px);
  font-weight: 300;
  line-height: 1.45;
  text-align: left;
}
.home-cta-strip__footnote p {
  margin: 0;
}
.home-cta-strip__footnote a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.home-cta-strip__footnote a:hover,
.home-cta-strip__footnote a:focus-visible {
  color: inherit;
}
.home-cta-strip .home-cta__chev {
  color: var(--hi-accent);
  font-size: 16px;
  line-height: 1;
  transition: transform 220ms var(--hi-ease);
}
.home-cta-strip .home-cta--ghost-rect:hover,
.home-cta-strip .home-cta--ghost-rect:focus-visible {
  background: color-mix(in oklab, var(--hi-accent) 12%, transparent);
  color: var(--hi-fg);
}
.home-cta-strip .home-cta--ghost-rect:hover .home-cta__chev,
.home-cta-strip .home-cta--ghost-rect:focus-visible .home-cta__chev {
  transform: translateX(3px);
}
@media (max-width: 720px) {
  .home-cta-strip__fade {
    background: linear-gradient(
      180deg,
      var(--cta-fade-bg) 0%,
      color-mix(in oklab, var(--cta-fade-bg) 82%, transparent) 42%,
      color-mix(in oklab, var(--cta-fade-bg) 35%, transparent) 72%,
      transparent 100%
    );
  }
  .home-cta-strip__media {
    background-position: center top;
    opacity: 0.85;
  }
}

/* ---------- Link arrow + CTA ---------- */
.home-link-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
  transition: transform 340ms var(--hi-ease);
}
.home-link-arrow__img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}
.home-link-arrow__fallback {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(238, 241, 244, 0.55);
  color: var(--hi-fg, #eef1f4);
  background: rgba(8, 10, 13, 0.35);
}
.home-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  color: var(--hi-fg);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.01em;
}
.home-cta__label {
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--hi-ease);
}
.home-cta:hover .home-cta__label,
.home-cta:focus-visible .home-cta__label {
  border-bottom-color: var(--hi-accent);
}
/* Hero column CTA style=«Кнопка» — warm gold fill + hover lift */
.portal-body--home-instance .portal-article-hero .home-cta--button {
  height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--hi-accent-strong, #e09a4e);
  color: var(--hi-bg, #010406);
  background: linear-gradient(180deg, #f6c892 0%, var(--hi-accent, #f0b478) 55%, var(--hi-accent-strong, #e09a4e) 100%);
  box-shadow:
    0 1px 0 rgba(255, 236, 210, 0.55) inset,
    0 8px 22px -8px rgba(0, 0, 0, 0.5),
    0 2px 8px rgba(224, 154, 78, 0.35);
  font-family: var(--portal-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  transition:
    background 0.22s var(--hi-ease),
    border-color 0.22s var(--hi-ease),
    color 0.22s var(--hi-ease),
    box-shadow 0.22s var(--hi-ease),
    filter 0.22s var(--hi-ease),
    transform 0.22s var(--hi-ease);
}
.portal-body--home-instance .portal-article-hero .home-cta--button:hover,
.portal-body--home-instance .portal-article-hero .home-cta--button:focus-visible {
  border-color: #f0c090;
  background: linear-gradient(180deg, #ffd6a8 0%, #f6c084 45%, var(--hi-accent, #f0b478) 100%);
  color: #010406;
  box-shadow:
    0 1px 0 rgba(255, 245, 230, 0.7) inset,
    0 14px 30px -8px rgba(0, 0, 0, 0.55),
    0 4px 14px rgba(240, 180, 120, 0.55);
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.portal-body--home-instance .portal-article-hero .home-cta--button:active {
  transform: translateY(0);
  filter: brightness(0.98);
  box-shadow:
    0 1px 0 rgba(255, 236, 210, 0.4) inset,
    0 4px 12px -6px rgba(0, 0, 0, 0.45);
}

/*
 * Home Hero
 * - PC: wide copy measure (don’t pinch to ~30ch)
 * - Tablet: stable single stack, no overflow into the next strip
 * - Vertical position comes from CMS (text_position_y + tablet/mobile display)
 * - Per-column valign relative to neighbours (col--valign-*)
 */
.portal-body--home-instance .portal-article-hero {
  container-type: size;
  container-name: inox-home-hero;
  height: max(var(--hero-min-active), var(--hero-h));
  min-height: max(var(--hero-min-active), var(--hero-h));
  max-height: max(var(--hero-min-active), var(--hero-h));
  overflow: hidden;
}
.portal-body--home-instance .portal-article-hero__content {
  --hero-pad-x: clamp(16px, 3.2vw, 56px);
  /* Do NOT reset --hero-header-h here — menu-overlay sets it on the hero. */
  position: absolute;
  inset: 0;
  max-width: none;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  box-sizing: border-box;
  padding-left: var(--hero-pad-x);
  padding-right: var(--hero-pad-x);
  /* Clear overlay header; keep bottom air symmetric for optical center. */
  padding-top: var(--hero-header-h, 0px);
  padding-bottom: max(12px, var(--hero-header-h, 0px));
  justify-content: var(--hero-justify, center);
}
/*
 * «Меню поверх Hero»: reserve real header height (instance_dark min-height
 * is 64px; desktop nav can wrap taller). Set the var on the hero so content
 * inherits it even if shell/body class pairing differs in preview.
 */
.portal-body--home-instance .portal-article-hero--menu-overlay,
.portal-shell--home-instance.portal-shell--hero-overlay .portal-article-hero,
.portal-shell--hero-overlay.portal-shell--home-instance .portal-article-hero {
  --hero-header-h: 72px;
}
.portal-body--home-instance .portal-article-hero--menu-overlay .portal-article-hero__content,
.portal-shell--home-instance.portal-shell--hero-overlay .portal-article-hero__content {
  padding-top: var(--hero-header-h);
  padding-bottom: max(12px, var(--hero-header-h));
  /*
   * If the column is taller than the free band, prefer start (under the menu
   * clearance) over equal overflow that tucks the eyebrow under the header.
   */
  justify-content: safe center;
}
/* Desktop Y from --y-* only above 1024px (tablet preview uses data-y-tablet). */
@media (min-width: 1025px) {
  .portal-body--home-instance .portal-article-hero--menu-overlay,
  .portal-shell--home-instance.portal-shell--hero-overlay .portal-article-hero {
    /* Desktop header: 64px bar + air under logo/nav. */
    --hero-header-h: 88px;
  }
  .portal-body--home-instance .portal-article-hero--y-top .portal-article-hero__content {
    justify-content: flex-start;
    padding-top: calc(var(--hero-header-h) + clamp(8px, 1.5cqh, 16px));
    padding-bottom: 12px;
  }
  .portal-body--home-instance .portal-article-hero--y-center .portal-article-hero__content {
    justify-content: safe center;
    padding-top: var(--hero-header-h);
    padding-bottom: max(12px, var(--hero-header-h));
  }
  .portal-body--home-instance .portal-article-hero--y-bottom .portal-article-hero__content {
    justify-content: safe flex-end;
    padding-top: var(--hero-header-h);
    padding-bottom: 12px;
  }
}
.portal-body--home-instance .portal-article-hero__columns {
  gap: clamp(20px, 3vw, 56px);
  min-height: 0;
  flex: 0 0 auto;
  align-items: start;
}
.portal-body--home-instance .portal-article-hero__columns--width-content {
  align-self: center !important;
  width: 100% !important;
  max-width: min(100%, var(--portal-hero-grid-max, 1280px)) !important;
}
.portal-body--home-instance .portal-article-hero__columns--width-viewport {
  align-self: stretch !important;
  width: 100% !important;
  max-width: none !important;
}
.portal-body--home-instance .portal-article-hero__columns--width-percent {
  align-self: center !important;
  width: var(--hero-grid-w-active, var(--hero-grid-w-d, 100%)) !important;
  max-width: 100% !important;
}
.portal-body--home-instance .portal-article-hero__col {
  min-height: 0;
}

/* 1) Eyebrow — slightly tighter scale so the stack clears menu-overlay */
.portal-body--home-instance .portal-article-hero__eyebrow {
  margin: 0 0 clamp(8px, 1.4cqh, 12px);
  font-family: var(--portal-sans);
  font-size: clamp(10px, 1.35cqh, 12px);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
}
/* 2) Headline (~12% down vs previous) */
.portal-body--home-instance .portal-article-hero__headline {
  font-family: var(--portal-sans);
  font-size: clamp(24px, 2.85vw + 1cqh, 44px);
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: -0.015em;
  max-width: min(48ch, 92%);
  margin: 0 0 clamp(6px, 1cqh, 12px);
  text-wrap: balance;
}
.portal-body--home-instance .portal-article-hero__headline::after {
  content: "";
  display: block;
  width: clamp(32px, 4.5cqh, 44px);
  height: 1px;
  margin-top: clamp(10px, 1.8cqh, 18px);
  background: var(--hi-accent);
}
.portal-body--home-instance .portal-article-hero__headline p {
  font-weight: 300;
}
/* 3) Body */
.portal-body--home-instance .portal-article-hero__body {
  margin-top: 0;
  max-width: min(62ch, 96%);
}
.portal-body--home-instance .portal-article-hero__body p,
.portal-body--home-instance .portal-article-hero__body li {
  font-family: var(--portal-sans);
  font-size: clamp(13px, 0.9vw + 0.5cqh, 15.5px);
  font-weight: 300;
  line-height: 1.38;
  letter-spacing: 0.005em;
  opacity: 0.88;
  max-width: none;
  margin: 0;
}
.portal-body--home-instance .portal-article-hero__body p + p,
.portal-body--home-instance .portal-article-hero__body li + li {
  margin-top: 0.22em;
}
.portal-body--home-instance .portal-article-hero .home-cta {
  margin-top: clamp(12px, 2cqh, 20px);
}
.portal-body--home-instance .portal-article-hero .home-cta--button {
  height: 40px;
  padding: 0 22px;
  font-size: 13px;
}
.portal-body--home-instance .portal-article-hero .home-cta--link {
  margin-top: clamp(12px, 2cqh, 20px);
  font-family: var(--portal-sans);
  font-weight: 400;
  font-size: 13px;
  color: var(--hi-accent);
}

/* —— Phone: stack columns; Y from CMS data-y-mobile (inherits desktop) —— */
@media (max-width: 767px) {
  .portal-body--home-instance .portal-article-hero--menu-overlay,
  .portal-shell--home-instance.portal-shell--hero-overlay .portal-article-hero {
    --hero-header-h: 56px;
  }
  .portal-body--home-instance .portal-article-hero__content {
    padding-top: var(--hero-header-h);
    padding-bottom: max(12px, var(--hero-header-h));
  }
  .portal-body--home-instance .portal-article-hero[data-y-mobile="top"] .portal-article-hero__content {
    justify-content: flex-start;
    padding-top: calc(var(--hero-header-h) + 8px);
    padding-bottom: 12px;
  }
  .portal-body--home-instance .portal-article-hero[data-y-mobile="center"] .portal-article-hero__content {
    justify-content: safe center;
  }
  .portal-body--home-instance .portal-article-hero[data-y-mobile="bottom"] .portal-article-hero__content {
    justify-content: safe flex-end;
    padding-bottom: 12px;
  }
  .portal-body--home-instance .portal-article-hero__columns {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: stretch;
  }
  .portal-body--home-instance .portal-article-hero[data-grid-width-mobile="content"] .portal-article-hero__columns {
    align-self: center !important;
    width: 100% !important;
    max-width: min(100%, var(--portal-hero-grid-max, 1280px)) !important;
  }
  .portal-body--home-instance .portal-article-hero[data-grid-width-mobile="viewport"] .portal-article-hero__columns {
    align-self: stretch !important;
    width: 100% !important;
    max-width: none !important;
  }
  .portal-body--home-instance .portal-article-hero[data-grid-width-mobile="percent"] .portal-article-hero__columns {
    align-self: center !important;
    width: var(--hero-grid-w-m, var(--hero-grid-w-d, 100%)) !important;
    max-width: 100% !important;
  }
  .portal-body--home-instance .portal-article-hero__col {
    --col-align: var(--col-align-m, var(--col-align-d, left));
    --col-items: var(--col-items-m, var(--col-items-d, flex-start));
    --col-gap: var(--col-gap-m, var(--col-gap-d, 0px));
    --col-pad-y: var(--col-pad-y-m, var(--col-pad-y-d, 0px));
    --col-pad-x: var(--col-pad-x-m, var(--col-pad-x-d, 0px));
    --col-valign: stretch;
  }
  .portal-body--home-instance .portal-article-hero__overlay,
  .portal-body--home-instance .portal-article-hero[data-responsive-hero] .portal-article-hero__overlay {
    background: linear-gradient(90deg,
      rgba(1, 4, 6, calc(var(--hero-overlay-active) / 100)),
      rgba(1, 4, 6, calc(var(--hero-overlay-active) / 150)));
  }
  .portal-body--home-instance .portal-article-hero--fit-cover .portal-article-hero__img,
  .portal-body--home-instance .portal-article-hero--fit-cover .portal-article-hero__video {
    object-position: 65% center;
  }
  .portal-body--home-instance .portal-article-hero__headline {
    font-size: clamp(22px, 6.2vw, 28px);
    max-width: none;
  }
  .portal-body--home-instance .portal-article-hero__body {
    max-width: none;
  }
  .portal-body--home-instance .portal-article-hero__body p,
  .portal-body--home-instance .portal-article-hero__body li {
    font-size: clamp(13px, 3.5vw, 14.5px);
  }
  .portal-body--home-instance .portal-article-hero .home-cta {
    margin-top: 12px;
  }
}

/* —— Tablet (≤1024 = Wagtail tablet preview): column geometry + Y from data-y-tablet. —— */
@media (min-width: 768px) and (max-width: 1024px) {
  .portal-body--home-instance .portal-article-hero--menu-overlay,
  .portal-shell--home-instance.portal-shell--hero-overlay .portal-article-hero {
    --hero-header-h: 64px;
  }
  .portal-body--home-instance .portal-article-hero__content {
    padding-top: var(--hero-header-h);
    padding-bottom: max(12px, var(--hero-header-h));
  }
  .portal-body--home-instance .portal-article-hero[data-y-tablet="top"] .portal-article-hero__content {
    justify-content: flex-start;
    padding-top: calc(var(--hero-header-h) + 8px);
    padding-bottom: 12px;
  }
  .portal-body--home-instance .portal-article-hero[data-y-tablet="center"] .portal-article-hero__content {
    justify-content: safe center;
  }
  .portal-body--home-instance .portal-article-hero[data-y-tablet="bottom"] .portal-article-hero__content {
    justify-content: safe flex-end;
    padding-bottom: 12px;
  }
  .portal-body--home-instance .portal-article-hero__columns {
    grid-template-columns: repeat(var(--hero-cols, 1), minmax(0, 1fr));
    gap: 12px;
    align-items: start;
  }
  .portal-body--home-instance .portal-article-hero[data-grid-width-tablet="content"] .portal-article-hero__columns {
    align-self: center !important;
    width: 100% !important;
    max-width: min(100%, var(--portal-hero-grid-max, 1280px)) !important;
  }
  .portal-body--home-instance .portal-article-hero[data-grid-width-tablet="viewport"] .portal-article-hero__columns {
    align-self: stretch !important;
    width: 100% !important;
    max-width: none !important;
  }
  .portal-body--home-instance .portal-article-hero[data-grid-width-tablet="percent"] .portal-article-hero__columns {
    align-self: center !important;
    width: var(--hero-grid-w-t, var(--hero-grid-w-d, 100%)) !important;
    max-width: 100% !important;
  }
  .portal-body--home-instance .portal-article-hero__col {
    --col-align: var(--col-align-t, var(--col-align-d, left));
    --col-items: var(--col-items-t, var(--col-items-d, flex-start));
    --col-valign: var(--col-valign-t, var(--col-valign-d, start));
    --col-gap: var(--col-gap-t, var(--col-gap-d, 0px));
    --col-pad-y: var(--col-pad-y-t, var(--col-pad-y-d, 0px));
    --col-pad-x: var(--col-pad-x-t, var(--col-pad-x-d, 0px));
  }
  .portal-body--home-instance .portal-article-hero__eyebrow {
    margin-bottom: 8px;
    font-size: 10px;
  }
  .portal-body--home-instance .portal-article-hero__headline {
    font-size: clamp(22px, 3.4vw, 30px);
    max-width: min(40ch, 100%);
    margin-bottom: 8px;
  }
  .portal-body--home-instance .portal-article-hero__headline::after {
    margin-top: 12px;
    width: 36px;
  }
  .portal-body--home-instance .portal-article-hero__body {
    max-width: min(52ch, 100%);
  }
  .portal-body--home-instance .portal-article-hero__body p,
  .portal-body--home-instance .portal-article-hero__body li {
    font-size: clamp(13.5px, 1.8vw, 15px);
    line-height: 1.35;
  }
  .portal-body--home-instance .portal-article-hero .home-cta {
    margin-top: 10px;
  }
  .portal-body--home-instance .portal-article-hero .home-cta--button {
    height: 38px;
    padding: 0 20px;
    font-size: 13px;
  }
  .portal-body--home-instance .portal-article-hero .home-link-arrow,
  .portal-body--home-instance .portal-article-hero .home-link-arrow__img,
  .portal-body--home-instance .portal-article-hero .home-link-arrow__fallback {
    width: 34px;
    height: 34px;
  }
}

/* —— Desktop: generous horizontal measure —— */
@media (min-width: 1025px) {
  .portal-body--home-instance .portal-article-hero__headline {
    font-size: clamp(32px, 3.2vw, 52px);
    max-width: min(52ch, 58vw);
  }
  .portal-body--home-instance .portal-article-hero__body {
    max-width: min(64ch, 62vw);
  }
  .portal-body--home-instance .portal-article-hero__body p,
  .portal-body--home-instance .portal-article-hero__body li {
    font-size: clamp(15px, 1.05vw, 17px);
  }
  .portal-body--home-instance .portal-article-hero__columns {
    gap: clamp(32px, 4vw, 72px);
  }
}

.home-cta:hover .home-link-arrow,
.home-cta:focus-visible .home-link-arrow,
.home-preview:hover .home-link-arrow,
.home-preview:focus-visible .home-link-arrow,
.home-solutions__tile:hover .home-link-arrow,
.home-solutions__tile:focus-visible .home-link-arrow {
  animation: home-arrow-pulse 1.6s var(--hi-ease) infinite;
}

@keyframes home-arrow-pulse {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-cta:hover .home-link-arrow,
  .home-preview:hover .home-link-arrow,
  .home-solutions__tile:hover .home-link-arrow {
    animation: none;
  }
}

/* ---------- Content strip ---------- */
.portal-home__block:is(
  .portal-home__block--content_strip,
  .portal-home__block--content_strip_accordion,
  .portal-home__block--faq_strip,
  .portal-home__block--solutions_strip,
  .portal-home__block--portfolio_strip,
  .portal-home__block--portfolio_carousel_strip,
  .portal-home__block--cta_strip
):nth-child(
  odd of :is(
    .portal-home__block--content_strip,
    .portal-home__block--content_strip_accordion,
    .portal-home__block--faq_strip,
    .portal-home__block--solutions_strip,
    .portal-home__block--portfolio_strip,
    .portal-home__block--portfolio_carousel_strip,
    .portal-home__block--cta_strip
  )
) :is(.home-strip, .home-pf) {
  background: var(--hi-bg-alt);
}
.portal-home__block:is(
  .portal-home__block--content_strip,
  .portal-home__block--content_strip_accordion,
  .portal-home__block--faq_strip,
  .portal-home__block--solutions_strip,
  .portal-home__block--portfolio_strip,
  .portal-home__block--portfolio_carousel_strip,
  .portal-home__block--cta_strip
):nth-child(
  odd of :is(
    .portal-home__block--content_strip,
    .portal-home__block--content_strip_accordion,
    .portal-home__block--faq_strip,
    .portal-home__block--solutions_strip,
    .portal-home__block--portfolio_strip,
    .portal-home__block--portfolio_carousel_strip,
    .portal-home__block--cta_strip
  )
) .home-cta-strip {
  --cta-fade-bg: var(--hi-bg-alt);
  background: var(--hi-bg-alt);
}
.portal-home__block:is(
  .portal-home__block--content_strip,
  .portal-home__block--content_strip_accordion,
  .portal-home__block--faq_strip,
  .portal-home__block--solutions_strip,
  .portal-home__block--portfolio_strip,
  .portal-home__block--portfolio_carousel_strip,
  .portal-home__block--cta_strip
):nth-child(
  even of :is(
    .portal-home__block--content_strip,
    .portal-home__block--content_strip_accordion,
    .portal-home__block--faq_strip,
    .portal-home__block--solutions_strip,
    .portal-home__block--portfolio_strip,
    .portal-home__block--portfolio_carousel_strip,
    .portal-home__block--cta_strip
  )
) :is(.home-strip, .home-pf) {
  background: var(--hi-bg);
}
.portal-home__block:is(
  .portal-home__block--content_strip,
  .portal-home__block--content_strip_accordion,
  .portal-home__block--faq_strip,
  .portal-home__block--solutions_strip,
  .portal-home__block--portfolio_strip,
  .portal-home__block--portfolio_carousel_strip,
  .portal-home__block--cta_strip
):nth-child(
  even of :is(
    .portal-home__block--content_strip,
    .portal-home__block--content_strip_accordion,
    .portal-home__block--faq_strip,
    .portal-home__block--solutions_strip,
    .portal-home__block--portfolio_strip,
    .portal-home__block--portfolio_carousel_strip,
    .portal-home__block--cta_strip
  )
) .home-cta-strip {
  --cta-fade-bg: var(--hi-bg);
  background: var(--hi-bg);
}

.home-strip {
  padding: clamp(40px, 4.5vw, 56px) clamp(16px, 3.4vw, 40px);
  color: var(--hi-fg);
  border-bottom: 1px solid var(--hi-hairline);
}
.home-strip__inner {
  max-width: var(--portal-max, 1280px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(180px, var(--strip-text-w, 35%)) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.home-strip__eyebrow {
  font-family: var(--portal-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hi-muted);
  margin: 0 0 12px;
  opacity: 0.72;
}
.home-strip__title {
  font-family: var(--portal-sans);
  /* Under Hero, but not squeezed on phone/desktop. */
  font-size: clamp(24px, 2.8vw, 40px);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  max-width: 20ch;
}
.home-strip__title p {
  margin: 0;
  font-weight: 300;
}
.home-strip__title i,
.home-strip__title em {
  font-style: italic;
  color: var(--hi-accent);
}
.home-strip__body {
  color: var(--hi-fg-2);
  max-width: min(34rem, 92%);
}
.home-strip__body p,
.home-strip__body li {
  font-family: var(--portal-sans);
  font-size: clamp(14px, 1.15vw, 15.5px);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: 0.005em;
  opacity: 0.88;
  margin: 0;
}
@media (min-width: 768px) and (max-width: 1023px) {
  .home-strip__title {
    font-size: clamp(20px, 1.2vw + 1.1vh, 28px);
    max-width: 18ch;
    margin-bottom: 8px;
  }
  .home-strip__body p,
  .home-strip__body li {
    font-size: clamp(13px, 1.2vw, 14.5px);
  }
}
@media (min-width: 1024px) {
  .home-strip__title {
    font-size: clamp(26px, 2.4vw, 40px);
    max-width: 22ch;
  }
}
.home-strip__body p + p,
.home-strip__body li + li {
  margin-top: 0.2em;
}
.home-strip .home-cta {
  margin-top: 22px;
  font-family: var(--portal-sans);
  font-weight: 400;
  font-size: 14px;
}

/* ---------- FAQ strip ---------- */
.home-faq-strip__inner {
  max-width: var(--portal-max, 1280px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 32%) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.home-faq-strip__intro {
  position: sticky;
  top: clamp(24px, 6vw, 72px);
}
.home-faq-strip__list {
  min-width: 0;
  border-top: 1px solid var(--hi-card-border);
  overflow-anchor: none;
}
.home-faq-strip__item {
  border-bottom: 1px solid var(--hi-card-border);
  overflow-anchor: none;
}
.home-faq-strip__question {
  appearance: none;
  width: 100%;
  border: 0;
  padding: clamp(18px, 2.2vw, 26px) 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: transparent;
  color: var(--hi-fg);
  font-family: var(--portal-sans);
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 300;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: color 320ms var(--hi-ease);
}
.home-faq-strip__question:hover,
.home-faq-strip__question:focus-visible,
.home-faq-strip__item.is-open .home-faq-strip__question {
  color: var(--hi-accent);
}
.home-faq-strip__question:focus-visible {
  outline: 1px solid var(--hi-accent);
  outline-offset: 5px;
}
.home-faq-strip__plus {
  flex: 0 0 auto;
  color: var(--hi-accent-strong);
  font-size: 28px;
  font-weight: 200;
  line-height: 1;
  transition: transform 800ms var(--hi-ease), color 320ms var(--hi-ease);
}
.home-faq-strip__item.is-open .home-faq-strip__plus {
  transform: rotate(45deg);
  color: var(--hi-accent);
}
.home-faq-strip__answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 1s var(--hi-ease),
    opacity 1s var(--hi-ease);
}
.home-faq-strip__item.is-open .home-faq-strip__answer {
  grid-template-rows: 1fr;
  opacity: 1;
}
.home-faq-strip__answer-inner {
  overflow: hidden;
}
.home-faq-strip__answer p {
  max-width: 72ch;
  margin: 0;
  padding: 0 44px clamp(20px, 2.4vw, 30px) 2px;
  color: var(--hi-fg-2);
  font-family: var(--portal-sans);
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 300;
  line-height: 1.65;
}

@media (max-width: 800px) {
  .home-faq-strip__inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .home-faq-strip__intro {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-faq-strip__answer,
  .home-faq-strip__plus {
    transition-duration: 0.01ms;
  }
}

.home-strip__media {
  display: flex;
  gap: 12px;
  min-width: 0;
  width: 100%;
}
.home-strip__media--align-start {
  justify-content: flex-start;
}
.home-strip__media--align-center {
  justify-content: center;
}
.home-strip__media--align-end {
  justify-content: flex-end;
}
@media (min-width: 768px) and (max-width: 1024px) {
  .home-strip__media[data-images-align-tablet="start"] {
    justify-content: flex-start;
  }
  .home-strip__media[data-images-align-tablet="center"] {
    justify-content: center;
  }
  .home-strip__media[data-images-align-tablet="end"] {
    justify-content: flex-end;
  }
}
@media (max-width: 767px) {
  .home-strip__media[data-images-align-mobile="start"] {
    justify-content: flex-start;
  }
  .home-strip__media[data-images-align-mobile="center"] {
    justify-content: center;
  }
  .home-strip__media[data-images-align-mobile="end"] {
    justify-content: flex-end;
  }
}

.home-preview {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  display: block;
  background: var(--hi-surface);
  border: 1px solid var(--hi-card-border);
  border-radius: 14px;
  box-sizing: border-box;
}
.home-strip .home-preview {
  border-radius: 14px;
}
.portal-body--home-instance .home-strip--accordion .home-preview,
.portal-body--home-instance .home-strip--accordion .home-preview__media,
.portal-body--home-instance .home-strip--accordion .home-preview__media img,
.portal-body--home-instance .home-strip--accordion .home-preview__media video,
.portal-body--home-instance .home-strip--accordion .home-preview .portal-preview-still,
.portal-body--home-instance .home-strip--accordion .home-preview .portal-preview-video {
  border-radius: 14px;
}
.home-preview.is-inert {
  pointer-events: none;
}
.home-preview__media {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  transition: transform 340ms var(--hi-ease);
}
.home-preview__media img,
.home-preview__media video,
.home-preview .portal-preview-still,
.home-preview .portal-preview-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-preview:hover .home-preview__media,
.home-preview:focus-visible .home-preview__media {
  transform: scale(1.04);
}
.home-preview__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 10, 13, 0.72) 0%,
    rgba(8, 10, 13, 0.15) 45%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
}
.home-preview__title {
  position: absolute;
  left: 12px;
  bottom: 12px;
  right: 52px;
  z-index: 2;
  font-family: var(--portal-sans);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.home-preview .home-link-arrow {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
}

@media (max-width: 900px) {
  .home-strip__inner {
    grid-template-columns: 1fr;
  }
  .home-preview {
    aspect-ratio: 4 / 5;
    max-height: 320px;
  }
}

/* Accordion on home: phone readable; tablet compact. */
@media (max-width: 767px) {
  .home-strip--accordion {
    padding-top: clamp(18px, 3.5vw, 28px);
    padding-bottom: clamp(18px, 3.5vw, 28px);
  }
  .home-strip--accordion .home-strip__inner {
    gap: 14px;
    align-items: start;
  }
  .home-strip--accordion .home-strip__title {
    font-size: clamp(22px, 5.4vw, 26px);
    margin-bottom: 8px;
    max-width: none;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .home-strip--accordion {
    padding-top: clamp(14px, 2.8vw, 24px);
    padding-bottom: clamp(14px, 2.8vw, 24px);
  }
  .home-strip--accordion .home-strip__inner {
    gap: clamp(10px, 2vw, 16px);
    align-items: start;
  }
  .home-strip--accordion .home-strip__title {
    font-size: clamp(18px, 1vw + 1.4vh, 26px);
    margin-bottom: 6px;
  }
}

/* ---------- Solutions strip (Solutions & Applications) ---------- */
.home-strip__inner--solutions {
  align-items: start;
}
.home-strip--solutions .home-cta--button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 22px;
  margin-top: 22px;
  border-radius: 999px;
  border: 1px solid var(--hi-accent);
  color: var(--hi-fg, #eef1f4);
  background: transparent;
  font-family: var(--portal-sans);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-sizing: border-box;
}
.home-strip--solutions .home-cta--button .home-cta__label {
  border-bottom: 0;
}
.home-strip--solutions .home-cta--button:hover,
.home-strip--solutions .home-cta--button:focus-visible {
  background: var(--hi-accent);
  border-color: var(--hi-accent);
  color: var(--hi-bg, #010406);
  box-shadow: 0 4px 18px -6px rgba(240, 180, 120, 0.45);
}
.home-solutions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  min-width: 0;
  width: 100%;
  align-self: stretch;
}
.home-solutions__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.home-solutions__tile {
  --solutions-tile-h: 98px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(72px, 32%) minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 12px;
  height: var(--solutions-tile-h);
  min-height: var(--solutions-tile-h);
  max-height: var(--solutions-tile-h);
  padding: 0 12px 0 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--hi-surface, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--hi-card-border, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  box-sizing: border-box;
  transition:
    border-color 240ms var(--hi-ease, ease),
    background 240ms var(--hi-ease, ease);
}
.home-solutions__tile.is-inert {
  pointer-events: none;
}
.home-solutions__tile:hover,
.home-solutions__tile:focus-visible {
  border-color: rgba(240, 180, 120, 0.35);
  background: rgba(255, 255, 255, 0.055);
}
.home-solutions__media {
  position: relative;
  align-self: stretch;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 11px 0 0 11px;
  background: linear-gradient(135deg, #2a3038, #12151a 60%, #0a0c10);
}
.home-solutions__media img,
.home-solutions__media video,
.home-solutions__media .portal-preview-still,
.home-solutions__media .portal-preview-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Soft fade of cover into the tile body (right edge into dark) */
.home-solutions__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 38%,
    rgba(12, 14, 18, 0.22) 58%,
    rgba(12, 14, 18, 0.72) 78%,
    var(--hi-surface, #12151a) 100%
  );
}
.home-solutions__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  padding: 6px 0;
  z-index: 1;
  transform-origin: left center;
  transition: transform 280ms var(--hi-ease, ease);
}
.home-solutions__tile:hover .home-solutions__copy,
.home-solutions__tile:focus-visible .home-solutions__copy {
  transform: scale(1.03);
}
.home-solutions__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-family: var(--portal-sans);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--hi-fg, #eef1f4);
  /* 2 lines @ 13.5×1.22 ≈ 33px */
  max-height: calc(1.22em * 2);
}
.home-solutions__sub {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-family: var(--portal-sans);
  font-size: 11.5px;
  font-weight: 300;
  line-height: 1.28;
  color: var(--hi-fg-2, #9aa3ad);
  opacity: 0.9;
  /* 3 lines @ 11.5×1.28 ≈ 44px */
  max-height: calc(1.28em * 3);
}
.home-solutions__tile .home-link-arrow {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  margin-right: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .home-solutions__copy {
    transition: none;
  }
  .home-solutions__tile:hover .home-solutions__copy,
  .home-solutions__tile:focus-visible .home-solutions__copy {
    transform: none;
  }
}
@media (max-width: 900px) {
  .home-solutions {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .home-solutions__tile {
    --solutions-tile-h: 94px;
    grid-template-columns: minmax(64px, 30%) minmax(0, 1fr) auto;
    gap: 0 10px;
    padding-right: 10px;
  }
  .home-solutions__title {
    font-size: 13px;
  }
  .home-solutions__sub {
    font-size: 11px;
  }
}

/* ---------- Portfolio strip (top title + full-bleed muted marquee) ---------- */
.home-pf {
  padding: clamp(18px, 2.2vw, 28px) 0 clamp(18px, 2.2vw, 28px);
  color: var(--hi-fg);
  border-bottom: 1px solid var(--hi-hairline);
  overflow: hidden;
}
.home-pf__head {
  max-width: var(--portal-max, 1280px);
  margin: 0 auto;
  padding: 0 clamp(16px, 3.4vw, 40px) clamp(10px, 1.4vw, 16px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.home-pf__eyebrow {
  font-family: var(--portal-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hi-muted);
  margin: 0 0 8px;
  opacity: 0.72;
}
.home-pf__title {
  font-family: var(--portal-sans);
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  max-width: 28ch;
  color: #c8ced4;
}
.home-pf__title p {
  margin: 0;
  font-weight: 300;
}
.home-pf__title i,
.home-pf__title em {
  font-style: italic;
  color: color-mix(in oklab, var(--hi-accent) 72%, #9a9a9a);
}
.home-pf__body {
  color: var(--hi-muted);
  max-width: min(36rem, 92%);
  margin: 0 0 16px;
}
.home-pf__body p,
.home-pf__body li {
  font-family: var(--portal-sans);
  font-size: clamp(13.5px, 1.15vw, 15px);
  font-weight: 300;
  line-height: 1.55;
  margin: 0 0 0.55em;
  color: #8a929a;
}
.home-pf__body p:last-child,
.home-pf__body li:last-child {
  margin-bottom: 0;
}
.home-pf__head .home-cta {
  margin-top: 2px;
}

/* Pull portfolio closer to the strip above (solutions / content). */
.portal-home__block--solutions_strip:has(+ .portal-home__block--portfolio_strip) .home-strip,
.portal-home__block--content_strip:has(+ .portal-home__block--portfolio_strip) .home-strip,
.portal-home__block--content_strip_accordion:has(+ .portal-home__block--portfolio_strip) .home-strip {
  padding-bottom: clamp(18px, 2vw, 26px);
}
.portal-home__block--solutions_strip + .portal-home__block--portfolio_strip .home-pf,
.portal-home__block--content_strip + .portal-home__block--portfolio_strip .home-pf,
.portal-home__block--content_strip_accordion + .portal-home__block--portfolio_strip .home-pf {
  padding-top: clamp(10px, 1.2vw, 16px);
}

.home-pf__viewport {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.home-pf__viewport:active {
  cursor: grabbing;
}
.home-pf__tile,
.home-pf__tile * {
  -webkit-user-drag: none;
  user-drag: none;
}
.home-pf__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: clamp(8px, 1vw, 14px);
  width: max-content;
  will-change: transform;
  padding: 0 clamp(10px, 1.2vw, 16px);
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}
.home-pf__tile {
  position: relative;
  flex: 0 0 calc(var(--pf-h, 200px) * var(--pf-aspect, 1));
  width: calc(var(--pf-h, 200px) * var(--pf-aspect, 1));
  height: var(--pf-h, 200px);
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border-radius: 6px;
  background: #121518;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-sizing: border-box;
}
.home-pf__tile.is-inert {
  pointer-events: none;
}
.home-pf__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #1c2026, #0c0e12 70%);
}
.home-pf__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Idle: cool gray + light sepia — calm, not loud */
  filter: grayscale(0.78) sepia(0.28) brightness(0.78) contrast(0.92);
  transform: scale(1.01);
  transition:
    filter 420ms var(--hi-ease, ease),
    transform 520ms var(--hi-ease, ease);
}
.home-pf__tile:hover .home-pf__img,
.home-pf__tile:focus-visible .home-pf__img {
  filter: grayscale(0.35) sepia(0.12) brightness(0.92) contrast(1);
  transform: scale(1.04);
}
.home-pf__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  box-shadow: none;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 280ms var(--hi-ease, ease),
    transform 320ms var(--hi-ease, ease);
  pointer-events: none;
}
.home-pf__tile:hover .home-pf__caption,
.home-pf__tile:focus-visible .home-pf__caption {
  opacity: 1;
  transform: translateY(0);
}
.home-pf__tag {
  font-family: var(--portal-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e8ecef;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.85),
    0 0 12px rgba(0, 0, 0, 0.65),
    0 0 28px rgba(0, 0, 0, 0.45);
}
.home-pf__name {
  font-family: var(--portal-sans);
  font-size: clamp(14px, 1.35vw, 16.5px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #f5f7f9;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.9),
    0 2px 8px rgba(0, 0, 0, 0.75),
    0 0 24px rgba(0, 0, 0, 0.55);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

@media (max-width: 720px) {
  .home-pf__caption {
    padding: 16px 12px 12px;
  }
  .home-pf__name {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-pf__img,
  .home-pf__caption {
    transition: none;
  }
}

/* The instance stylesheet is loaded after portal.css. Keep its desktop
   .portal-nav display rule from reopening the mobile/tablet drawer. */
@media (max-width: 900px) {
  .portal-body--home-instance .portal-header--instance_dark {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .portal-body--home-instance .portal-header--instance_dark .portal-nav--premium,
  .portal-body--home-instance .portal-header--instance_dark .portal-nav--rubrics {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
}
