/* Local brand and header overrides. */
html.local-loading header[data-site-nav="true"] {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
}

/* COMMENTED PART TRACKER: CP-007 — Contact page “Want a job?” CTA. */
body:has(.contact-form) .contact-form__job-pill {
  display: none !important;
}

/* Keep the mirrored contact page visible even when its original reveal
   runtime does not complete locally. */
body:has(.contact-form) .js-reveal-pending,
body:has(.contact-form) .js-reveal-pending > * {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  filter: none !important;
}

/* Contact page uses a focused header: logo + one route back home. */
body:has(.contact-form) header[data-site-nav] nav[aria-label="Primary navigation"],
body:has(.contact-form) header[data-site-nav] > div,
header.contact-nav-simple nav[aria-label="Primary navigation"],
header.contact-nav-simple > div {
  display: none !important;
}

body:has(.contact-form) header[data-site-nav] > a[data-analytics-event="cta_click"],
header.contact-nav-simple > a[data-contact-back="true"] {
  display: inline-flex !important;
}

/* Paint the contact CTA as “Go back” immediately, before delayed overrides run. */
body:has(.contact-form) header[data-site-nav] > a[data-analytics-event="cta_click"] {
  font-size: 0 !important;
}

body:has(.contact-form) header[data-site-nav] > a[data-analytics-event="cta_click"]::after {
  content: "Go back";
  font-size: var(--text-nav-link, 1rem);
}

/* COMMENTED PART TRACKER: CP-008 — Contact page office clocks and locations. */
body:has(.contact-form) ul[aria-label="Our offices"],
body:has(.contact-form) div:has(+ ul[aria-label="Our offices"]),
body:has(.contact-form) ul[aria-label="Our offices"] + div[aria-hidden="true"] {
  display: none !important;
}

/* Contact footer: keep only Altevo's Instagram link in the left navigation. */
body:has(.contact-form) footer nav[aria-label="Footer"] > ul,
body:has(.contact-form) footer nav[aria-label="Footer"] li:not(:has(a[href*="instagram.com"])) {
  display: none !important;
}

body:has(.contact-form) footer nav[aria-label="Footer"] > div,
body:has(.contact-form) footer nav[aria-label="Footer"] > div > ul {
  width: 100% !important;
  flex: 1 1 100% !important;
}

html:not(.local-loading):has(script[src$="/local-hero-fade.js"])
  header[data-site-nav="true"] > a[aria-label="Huge home"],
html:not(.local-loading):has(script[src$="/local-hero-fade.js"])
  header[data-site-nav="true"] nav[aria-label="Primary navigation"] > *,
html:not(.local-loading):has(script[src$="/local-hero-fade.js"])
  header[data-site-nav="true"] > a[href$="contact"],
html:not(.local-loading):has(script[src$="/local-hero-fade.js"])
  header[data-site-nav="true"] > a[href$="contact.html"],
html:not(.local-loading):has(script[src$="/local-hero-fade.js"])
  header[data-site-nav="true"] > div[class*="lg:hidden"] {
  animation: local-header-reveal 1.15s cubic-bezier(.16, 1, .3, 1) backwards;
  transform-origin: 50% 100%;
}

html:not(.local-loading):has(script[src$="/local-hero-fade.js"])
  header[data-site-nav="true"] > a[aria-label="Huge home"] {
  animation-name: local-logo-reveal;
  animation-delay: 0.05s;
}

html:not(.local-loading):has(script[src$="/local-hero-fade.js"])
  header[data-site-nav="true"] nav[aria-label="Primary navigation"] > * {
  animation-delay: 0.14s;
}

html:not(.local-loading):has(script[src$="/local-hero-fade.js"])
  header[data-site-nav="true"] nav[aria-label="Primary navigation"] > :nth-child(1) { animation-delay: 0.14s; }
html:not(.local-loading):has(script[src$="/local-hero-fade.js"])
  header[data-site-nav="true"] nav[aria-label="Primary navigation"] > :nth-child(2) { animation-delay: 0.21s; }
html:not(.local-loading):has(script[src$="/local-hero-fade.js"])
  header[data-site-nav="true"] nav[aria-label="Primary navigation"] > :nth-child(3) { animation-delay: 0.28s; }
html:not(.local-loading):has(script[src$="/local-hero-fade.js"])
  header[data-site-nav="true"] nav[aria-label="Primary navigation"] > :nth-child(4) { animation-delay: 0.35s; }
html:not(.local-loading):has(script[src$="/local-hero-fade.js"])
  header[data-site-nav="true"] nav[aria-label="Primary navigation"] > :nth-child(5) { animation-delay: 0.42s; }
html:not(.local-loading):has(script[src$="/local-hero-fade.js"])
  header[data-site-nav="true"] nav[aria-label="Primary navigation"] > :nth-child(6) { animation-delay: 0.49s; }

html:not(.local-loading):has(script[src$="/local-hero-fade.js"])
  header[data-site-nav="true"] > a[href$="contact"],
html:not(.local-loading):has(script[src$="/local-hero-fade.js"])
  header[data-site-nav="true"] > a[href$="contact.html"],
html:not(.local-loading):has(script[src$="/local-hero-fade.js"])
  header[data-site-nav="true"] > div[class*="lg:hidden"] {
  animation-name: local-cta-reveal;
  animation-delay: 0.55s;
}

@keyframes local-header-reveal {
  from { opacity: 0; transform: perspective(600px) translateY(20px) rotateX(-32deg); filter: blur(5px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes local-logo-reveal {
  from { opacity: 0; transform: translateY(12px) scale(.94); filter: blur(7px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes local-cta-reveal {
  0% { opacity: 0; transform: translateY(16px) scale(.90); filter: blur(4px); }
  65% { opacity: 1; transform: translateY(-2px) scale(1.015); filter: blur(0); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.local-loading):has(script[src$="/local-hero-fade.js"])
    header[data-site-nav="true"] > *,
  html:not(.local-loading):has(script[src$="/local-hero-fade.js"])
    header[data-site-nav="true"] nav[aria-label="Primary navigation"] > * {
    animation: none;
  }
}

#local-page-loader { display: none !important; }

html.local-loading::before,
html.local-loading::after {
  content: "";
  position: fixed;
  z-index: 2147483647;
  pointer-events: auto;
}

html.local-loading::before {
  inset: 0;
  background: #070a0e;
  opacity: 1;
  transition: opacity 0.85s cubic-bezier(.22, 1, .36, 1);
}

html.local-loading::after {
  width: min(220px, 65vw);
  height: 105px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-image: url("/mainlogoPNG.png"), linear-gradient(90deg, transparent, #fff 20%, #fff 80%, transparent);
  background-repeat: no-repeat;
  background-size: 100% auto, 42% 2px;
  background-position: center 0, -110px 95px;
  animation: local-root-loader-in .8s ease both, local-root-loader-line 1.35s ease-in-out infinite;
  transition: opacity .45s ease, transform .65s ease;
}

html.local-loading.local-loader-exiting::before { opacity: 0; pointer-events: none; }
html.local-loading.local-loader-exiting::after {
  animation: none;
  opacity: 0;
  transform: translate(-50%, calc(-50% - 18px));
  pointer-events: none;
}

html.local-loading body { overflow: hidden; }

@keyframes local-root-loader-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes local-root-loader-line {
  from { background-position: center 0, -110px 95px; }
  to { background-position: center 0, 260px 95px; }
}

#local-page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #070a0e;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.32s,
    visibility 0s linear 1.07s;
}

#local-page-loader .local-loader__content {
  display: flex;
  width: min(16rem, 66vw);
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

#local-page-loader .local-loader__logo {
  width: min(13rem, 55vw);
  height: auto;
  opacity: 0;
  transform: translateY(18px) scale(0.94);
  animation: local-loader-logo-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
  transition: opacity 0.45s ease, transform 0.65s cubic-bezier(0.4, 0, 1, 1);
}

#local-page-loader .local-loader__track {
  position: relative;
  width: 100%;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(255 255 255 / 16%);
  opacity: 0;
  animation: local-loader-track-in 0.6s ease 0.55s forwards;
  transition: opacity 0.3s ease;
}

#local-page-loader .local-loader__bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: inherit;
  background: #fff;
  box-shadow: 0 0 14px rgb(255 255 255 / 45%);
  animation: local-loader-loop 1.25s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

#local-page-loader.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#local-page-loader.is-leaving .local-loader__logo {
  opacity: 0;
  transform: translateY(-16px) scale(1.04);
}

#local-page-loader.is-leaving .local-loader__track {
  opacity: 0;
}

body:has(#local-page-loader:not(.is-leaving)) {
  overflow: hidden;
}

body:has(#local-page-loader:not(.is-leaving)) header[data-site-nav="true"] {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Keep the site usable if hydration or an asset stalls before loader cleanup. */
html.local-loading::before,
html.local-loading::after { display: none !important; }
html.local-loading body,
body:has(#local-page-loader:not(.is-leaving)) { overflow: auto !important; }
html.local-loading header[data-site-nav="true"],
body:has(#local-page-loader:not(.is-leaving)) header[data-site-nav="true"] {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

@keyframes local-loader-logo-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes local-loader-track-in {
  to { opacity: 1; }
}

@keyframes local-loader-loop {
  from { transform: translateX(-120%); }
  to { transform: translateX(340%); }
}

.local-rotating-heading {
  position: relative;
  color: transparent !important;
  white-space: nowrap;
}

.local-rotating-word {
  position: absolute;
  inset: 0 auto auto 0;
  color: #fff;
  white-space: nowrap;
  perspective: 900px;
  display: inline-flex;
  column-gap: 0.015em;
  letter-spacing: normal;
}

.local-word-prefix {
  display: inline-block;
  flex: 0 0 auto;
  margin-right: 0.16em;
}

.local-rotating-letters {
  display: inline-flex;
  column-gap: 0.015em;
}

.local-rotating-letters > span {
  display: inline-block;
  flex: 0 0 auto;
  letter-spacing: normal;
  transform-origin: 50% 85%;
}

@media (max-width: 767.98px) {
  h1.local-rotating-heading {
    font-size: min(18vw, 5.75rem);
  }

  .hero-media__reveal:has(h1.local-rotating-heading) {
    gap: 2rem !important;
  }

  .local-hero-punchline {
    max-width: 19rem;
    font-size: clamp(1.05rem, 5vw, 1.25rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.025em;
  }

  section:has(> h2[data-rotating-title]) {
    padding-top: 3rem !important;
    padding-bottom: 1.5rem !important;
  }

  section:has(> h2[data-rotating-title])
    + section[aria-label="Huge statement"] {
    padding-top: 1.5rem !important;
  }
}

/* Exact radial-card replica for the Altevo process, moving in reverse. */
.altevo-way--replica {
  background: #070a0e;
  color: #fff;
  min-height: 340svh;
}

.altevo-way--replica .radial-cards-marquee__cluster {
  min-height: 100svh;
  justify-content: center;
  padding-block: clamp(2rem, 5vh, 4rem);
}

.altevo-way--replica .radial-cards-marquee {
  position: sticky;
  top: 0;
  min-height: 100svh;
  padding-top: 0;
}

.altevo-way--replica .radial-cards-marquee__collection {
  align-self: center;
  width: max-content;
  overflow: visible;
}

.altevo-way--replica [data-radial-cards-marquee-list] {
  --step: 14deg;
  --radius: 82em;
  transform-origin: 50% var(--radius);
  display: grid;
  will-change: transform;
}

.altevo-way--replica [data-radial-cards-marquee-list] > * {
  transform-origin: 50% var(--radius);
  transform: rotate(calc(var(--step) * (var(--card) - 1)));
  grid-area: 1 / 1;
}

.altevo-way--replica .radial-cards-marquee__item article {
  position: relative;
  isolation: isolate;
  background: #0b1118;
}

.altevo-way--replica .radial-cards-marquee__item article > img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.altevo-way--replica .radial-cards-marquee__item article::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(0 0 0 / 0.08), transparent 42%, rgb(0 0 0 / 0.66));
  pointer-events: none;
}

/* Altevo portfolio stories shown in the first rotating card fan. */
section:not(.altevo-way--replica) .local-portfolio-card__title-panel {
  z-index: 2;
  padding: clamp(1.5rem, 2.4vw, 2.25rem);
  justify-content: flex-start;
}

section:not(.altevo-way--replica) .local-portfolio-card__title {
  display: inline-flex;
  width: max-content;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 999px;
  background: rgb(7 10 14 / 0.76);
  color: #fff;
  font-size: clamp(0.78rem, 1.05vw, 1rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.02em;
  box-shadow: 0 0.6rem 1.8rem rgb(0 0 0 / 0.22);
  backdrop-filter: blur(12px);
}

section:not(.altevo-way--replica) .local-portfolio-card__copy-panel {
  z-index: 2;
}

section:not(.altevo-way--replica) .local-portfolio-card__copy-panel p {
  color: #fff;
  font-size: clamp(1.7rem, 2.65vw, 3.2rem);
  font-weight: 650;
  line-height: 0.98;
  text-wrap: balance;
}

section:not(.altevo-way--replica)
  .local-portfolio-card:is(
    [aria-label^="LoExchange."],
    [aria-label^="LoDriver."],
    [aria-label^="CareOS · Coming soon."]
  )
  .local-portfolio-card__copy-panel
  p {
  color: rgb(255 255 255 / 0.62);
  font-size: clamp(1.35rem, 2.1vw, 2.55rem);
  line-height: 1.02;
  white-space: pre-line;
}

section:not(.altevo-way--replica)
  .local-portfolio-card[aria-label^="Tech HRMS."]
  .local-portfolio-card__copy-panel
  p {
  color: rgb(255 255 255 / 0.62);
  font-size: clamp(1.35rem, 2.1vw, 2.55rem);
  line-height: 1.02;
  white-space: pre-line;
}

section:not(.altevo-way--replica) .local-portfolio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgb(0 0 0 / 0.2), transparent 40%, rgb(0 0 0 / 0.68));
}

.altevo-way--replica .altevo-way__number-panel {
  justify-content: flex-end;
}

.altevo-way--replica .altevo-way__number {
  color: #fff;
  font-size: clamp(2rem, 3.5vw, 3.75rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.05em;
}

.altevo-way--replica .altevo-way__copy-panel {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  color: #fff;
}

.altevo-way--replica .altevo-way__copy-panel h3 {
  font-size: clamp(2rem, 3.7vw, 4rem);
  font-weight: 650;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.altevo-way--replica .altevo-way__copy-panel p {
  max-width: 19rem;
  font-size: clamp(0.95rem, 1.35vw, 1.3rem);
  font-weight: 600;
  line-height: 1.08;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .altevo-way--replica [data-radial-cards-marquee-list] {
    --radius: 90em;
  }
}

@media (min-width: 1024px) {
  .altevo-way--replica [data-radial-cards-marquee-list] {
    --step: 24deg;
  }
}

@media (min-width: 768px) {
  section[aria-label="Huge statement"] {
    padding-bottom: 0 !important;
  }

  section[aria-label="Latest work"] > [data-horizontal-scroll-section] {
    padding-top: 0 !important;
  }

  section[aria-label="Latest work"] {
    margin-top: -2.5rem;
  }
}

header[data-site-nav="true"] > a[aria-label="Huge home"] {
  position: relative;
  width: 9rem;
  height: 2.75rem;
  flex: 0 0 auto;
  background: url("/mainlogoSVGDARK.svg") center / contain no-repeat;
  transition: background-image 0.2s ease;
}

header[data-site-nav="true"] > a[aria-label="Huge home"] > svg {
  display: none;
}

video[src$="/hero.mp4"] {
  opacity: 0;
  transition: opacity 2s cubic-bezier(0.22, 1, 0.36, 1);
}

video[src$="/hero.mp4"].local-hero-video-ready {
  opacity: 1;
}

img[src$="/heronewpng.png"] {
  opacity: 0;
  transition: opacity 3.2s cubic-bezier(0.22, 1, 0.36, 1);
}

img[src$="/heronewpng.png"].local-hero-image-ready {
  opacity: 1;
}

/* Temporarily disabled at the client's request. */
[data-testid="sticky-showreel-box"] {
  display: none !important;
}

/* Tighten the space between the rotating brand statement and its supporting copy. */
section:has(> h2[data-rotating-title]) {
  padding-bottom: clamp(2rem, 4vw, 4rem) !important;
}

section:has(> h2[data-rotating-title])
  + section[aria-label="Huge statement"] {
  padding-top: clamp(2.5rem, 5vw, 5rem) !important;
}

@media (prefers-reduced-motion: reduce) {
  video[src$="/hero.mp4"] {
    opacity: 1;
    transition: none;
  }

  img[src$="/heronewpng.png"] {
    opacity: 1;
    transition: none;
  }
}

@media (min-width: 1024px) {
  .local-hero-punchline {
    width: max-content;
    max-width: none;
    white-space: nowrap;
    font-size: clamp(2rem, 3.15vw, 3.75rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
  }

  header[data-site-nav="true"] > a[href$="contact"],
  header[data-site-nav="true"] > a[href$="contact.html"] {
    margin-right: 0;
  }
}

header[data-site-nav="true"][data-theme="dark"]
  > a[aria-label="Huge home"] {
  background-image: url("/mainlogoPNG.png");
}

html:has(script[src$="/local-hero-fade.js"])
  header[data-site-nav="true"]:not([data-local-logo-theme])
  > a[aria-label="Huge home"] {
  background-image: url("/mainlogoPNG.png");
}

header[data-site-nav="true"][data-local-logo-theme="white"]
  > a[aria-label="Huge home"] {
  background-image: url("/mainlogoPNG.png");
}

html:has(script[src$="/local-hero-fade.js"])
  header[data-site-nav="true"][data-local-home-top="true"] {
  --theme-text-primary: #fff;
  --theme-text-inverse: #0d0b0a;
  --theme-btn-active: #e1ddd7;
}

html:has(script[src$="/local-hero-fade.js"])
  header[data-site-nav="true"][data-local-home-top="true"]
  nav[aria-label="Primary navigation"] a {
  color: #fff;
}

header[data-site-nav="true"][data-local-logo-theme="dark"]
  > a[aria-label="Huge home"] {
  background-image: url("/mainlogoSVGDARK.svg");
}

@media (max-width: 1023.98px) {
  header[data-site-nav="true"] > a[aria-label="Huge home"] {
    width: 7.5rem;
    height: 2.25rem;
  }

  header[data-site-nav="true"] > div[class*="lg:hidden"] {
    margin-right: 0;
  }
}

/* Keep the original cursor trail; only change each card's artwork. */
/* COMMENTED PART TRACKER: CP-001 — temporary hide, restore via SupporterFILES/commented-part-tracker.md */
section[aria-label="Huge statement"] > nav[aria-label="Explore Huge"] {
  display: none !important;
}

/* COMMENTED PART TRACKER: CP-002 — client logo wall, restore via SupporterFILES/commented-part-tracker.md */
section[aria-label="Client logos"] {
  display: none !important;
}

@media (max-width: 767.98px) {
  section[aria-label="Huge statement"] {
    padding-top: 1.5rem !important;
    padding-bottom: 0 !important;
  }

  section[aria-label="Latest work"] > [data-horizontal-scroll-section] {
    padding-top: 0 !important;
  }

  section[aria-label="Latest work"] {
    margin-top: -2.5rem;
  }
}

section[aria-label="Huge statement"] .local-tech-trail-item {
  width: clamp(64px, 6vw, 92px);
  height: clamp(64px, 6vw, 92px);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

section[aria-label="Huge statement"] .local-tech-trail-item .image-trail-item__img {
  object-fit: contain;
  padding: 0;
  filter: drop-shadow(0 .45rem .6rem rgb(0 0 0 / .12));
}

@media (max-width: 767.98px) {
  section[aria-label="Huge statement"] .local-tech-trail-item {
    width: 56px;
    height: 56px;
  }
}

/* Balanced transition into the platforms showcase. */
section[aria-label="Client logos"] + div[aria-hidden="true"] {
  height: clamp(4.5rem, 7vw, 6.5rem) !important;
}

section[aria-label="Latest work"] {
  margin-top: 0 !important;
}

@media (max-width: 767.98px) {
  section[aria-label="Latest work"] {
    margin-top: -1.5rem !important;
  }
}

/* Keep the platforms heading compact and on one line. */
section[aria-label="Latest work"] h2 {
  font-size: clamp(3.25rem, 8vw, 8.5rem) !important;
  line-height: 0.9 !important;
  white-space: nowrap;
}

/* Coming-soon status for unreleased Altevo product cards. */
section[aria-label="Latest work"] a[aria-label="Altevo SalesCRM"] article::after,
section[aria-label="Latest work"] a[aria-label="Altevo HRMS"] article::after {
  content: "Coming soon";
  position: absolute;
  top: clamp(1rem, 2vw, 1.75rem);
  right: clamp(1rem, 2vw, 1.75rem);
  z-index: 10;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 999px;
  background: rgb(13 11 10 / 0.82);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

section[aria-label="Latest work"]
  a:is(
    [aria-label="Altevo EstateCRM"],
    [aria-label="Altevo HRMS"]
  )
  .layout-grid
  > p:nth-child(2) {
  white-space: pre;
}

.local-product-copy {
  perspective: 900px;
}

/* Fourth in-house product: keep copy readable over the dashboard artwork. */
section[aria-label="Latest work"] article[aria-label="Selverix Digital"] {
  background: #282828;
}

section[aria-label="Latest work"] article[aria-label="Selverix Digital"] > .layout-grid {
  z-index: 2;
}

section[aria-label="Latest work"] article[aria-label="Selverix Digital"] .layout-grid > p:nth-child(2) {
  color: rgb(255 255 255 / 0.65);
  grid-column-end: 8;
  font-size: clamp(2rem, 3vw, 3.5rem);
  white-space: pre;
}

@media (max-width: 767.98px) {
  section[aria-label="Latest work"] article[aria-label="Selverix Digital"]::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top, rgb(0 0 0 / 0.85), rgb(0 0 0 / 0.48) 45%, transparent 80%);
  }

  section[aria-label="Latest work"] article[aria-label="Selverix Digital"] .layout-grid > p:nth-child(2) {
    white-space: normal;
  }
}

.local-product-copy-word {
  display: inline-block;
  transform-origin: 50% 100%;
  will-change: transform, opacity, filter;
}

/* Bottom CTA: keep only Contact and let it use the complete content width. */
.local-contact-spacer {
  height: clamp(2.5rem, 5vw, 5rem) !important;
}

section.local-contact-only > .local-contact-only__hidden {
  display: none !important;
}

section.local-contact-only > .local-contact-only__card {
  width: 100% !important;
  grid-column: 1 / -1 !important;
  justify-content: flex-start !important;
  gap: clamp(.75rem, 1.5vw, 1.5rem) !important;
  aspect-ratio: auto !important;
  height: auto !important;
  min-height: 0 !important;
}

section.local-contact-only > .local-contact-heading {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0 0 clamp(1.5rem, 3vw, 3.5rem);
  color: #fff;
  font-size: clamp(4rem, 11vw, 11rem);
  font-weight: 600;
  line-height: .92;
  letter-spacing: -.065em;
}

@media (max-width: 767px) {
  section.local-contact-only > .local-contact-heading {
    font-size: clamp(3.5rem, 14vw, 6rem);
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 768px) {
  section.local-contact-only > .local-contact-only__card {
    aspect-ratio: auto !important;
    min-height: 0 !important;
  }
}

/* COMMENTED PART TRACKER: CP-005 — temporarily hide Ideas & news. */
.local-commented-ideas-news {
  display: none !important;
}

.local-nav-hidden,
/* COMMENTED PART TRACKER: CP-006 — temporarily hide footer social links. */
.local-commented-social-media {
  display: none !important;
}

.local-scroll-target {
  scroll-margin-top: calc(var(--header-height, 6rem) + 1rem);
}

@media (max-width: 767.98px) {
  /* Mobile menu brand wordmark. */
  header[data-site-nav]
    div:has(> button[aria-label="Close menu"])
    > a[aria-label="Huge home"]
    > svg {
    display: none !important;
  }

  header[data-site-nav]
    div:has(> button[aria-label="Close menu"])
    > a[aria-label="Huge home"]::after {
    content: "The Altevo.";
    color: #02a9f7;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
  }

  /* Keep the HRMS product name readable as a deliberate two-line title. */
  section[aria-label="Latest work"]
    a[aria-label="Altevo HRMS"]
    .layout-grid
    > p:first-child {
    width: min-content;
  }

  section[aria-label="Latest work"]
    a:is(
      [aria-label="Altevo EstateCRM"],
      [aria-label="Altevo HRMS"]
    )
    .layout-grid
    > p:nth-child(2) {
    white-space: normal;
  }

  section[aria-label="Latest work"]
    a[aria-label="Altevo EstateCRM"]
    article::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
      to top,
      rgb(0 0 0 / 0.58) 0%,
      rgb(0 0 0 / 0.3) 48%,
      rgb(0 0 0 / 0.08) 78%
    );
  }

  section[aria-label="Latest work"]
    a[aria-label="Altevo EstateCRM"]
    article
    > .layout-grid {
    z-index: 2;
  }
}
