/**
 * UPTURNLAB WordPress theme overrides.
 *
 * This file contains safe transition-layer styles while the static HTML build
 * is being migrated into a canonical WordPress classic theme.
 */

/* Homepage process section: static fallback while old scroll-engine is disabled. */

.upturnlab-front-page .process-section--static {
  position: relative;
  z-index: 1;
  min-height: auto;
  padding: clamp(96px, 10vw, 180px) 24px;
  background: linear-gradient(180deg, #00112c 0%, #020918 100%);
  overflow: hidden;
}

.upturnlab-front-page .process-section--static .sticky-viewport {
  position: relative;
  top: auto;
  height: auto;
  min-height: 0;
  overflow: visible;
  display: block;
}

.upturnlab-front-page .process-section--static .phrases-stage {
  width: min(1180px, 100%);
  height: auto;
  margin: 0 auto;
  display: grid;
  gap: clamp(48px, 6vw, 88px);
}

.upturnlab-front-page .process-section--static .phrase {
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  max-width: none;
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.upturnlab-front-page .process-section--static .process-layout {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(180px, 34%) 1fr;
  gap: clamp(28px, 5vw, 84px);
  align-items: center;
}

.upturnlab-front-page .process-section--static .process-number {
  color: rgba(255, 255, 255, 0.96);
  text-align: left;
}

.upturnlab-front-page .process-section--static .process-content {
  max-width: 680px;
  padding-left: 0;
}

.upturnlab-front-page .process-section--static .process-content h3 {
  margin-bottom: 18px;
}

.upturnlab-front-page .process-section--static .process-line {
  display: none;
}

@media (max-width: 900px) {
  .upturnlab-front-page .process-section--static {
    padding: 88px 20px;
  }

  .upturnlab-front-page .process-section--static .phrases-stage {
    gap: 64px;
  }

  .upturnlab-front-page .process-section--static .process-layout {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 18px;
    min-height: auto;
    padding: 0;
    text-align: left;
  }

  .upturnlab-front-page .process-section--static .process-number {
    width: auto;
    padding-left: 0;
    margin-bottom: 0;
    text-align: left;
    font-size: clamp(86px, 28vw, 132px);
  }

  .upturnlab-front-page .process-section--static .process-content {
    width: 100%;
    max-width: none;
    padding-left: 0;
    text-align: left;
  }
}

/* Homepage phrases section: static fallback while old scroll-engine is disabled. */

.upturnlab-front-page .home-phrases-section--static {
  position: relative;
  z-index: 1;
  min-height: auto;
  padding: clamp(96px, 11vw, 190px) 24px;
  background: #020918;
  overflow: hidden;
}

.upturnlab-front-page .home-phrases-section--static .sticky-viewport {
  position: relative;
  top: auto;
  height: auto;
  min-height: 0;
  overflow: visible;
  display: block;
}

.upturnlab-front-page .home-phrases-section--static .phrases-stage {
  width: min(1320px, 100%);
  height: auto;
  margin: 0 auto;
  display: grid;
  gap: clamp(38px, 5vw, 76px);
}

.upturnlab-front-page .home-phrases-section--static .phrase {
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  max-width: none;
  transform: none;
  opacity: 1;
  pointer-events: auto;
  text-align: center;
}

.upturnlab-front-page .home-phrases-section--static .phrase .line {
  display: block;
}

@media (max-width: 900px) {
  .upturnlab-front-page .home-phrases-section--static {
    padding: 88px 20px;
  }

  .upturnlab-front-page .home-phrases-section--static .phrases-stage {
    gap: 44px;
  }

  .upturnlab-front-page .home-phrases-section--static .phrase {
    text-align: left;
  }
}

/* Homepage static mode stabilization. */

body.upturnlab-home-static-mode {
  background: #020918;
}

body.upturnlab-home-static-mode .upturnlab-front-page {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: #020918;
}

body.upturnlab-home-static-mode .upturnlab-front-page section {
  box-sizing: border-box;
}

body.upturnlab-home-static-mode .get-started,
body.upturnlab-home-static-mode .hero,
body.upturnlab-home-static-mode .projects,
body.upturnlab-home-static-mode .services,
body.upturnlab-home-static-mode .process-section--static,
body.upturnlab-home-static-mode .home-phrases-section--static {
  isolation: isolate;
}

/* Keep old scroll-engine sections harmless while script.js is disabled. */

body.upturnlab-home-static-mode .scroll-section {
  transform: none;
}

/* Modal should always stay above homepage sections. */

body.upturnlab-home-static-mode .gs-overlay {
  z-index: 9999;
}

/* Homepage Swiper safety while initialized by theme-shell.js. */

body.upturnlab-home-static-mode .projects-slider {
  width: 100%;
}

body.upturnlab-home-static-mode .projects-slider .swiper-wrapper {
  align-items: stretch;
}

/* Prevent empty anchor jumps from moving the page unexpectedly. */

body.upturnlab-home-static-mode a[href="#"] {
  cursor: pointer;
}


/* Project detail: restore title/device overlay parity with static layout. */

body:not(.upturnlab-home) .upturnlab-project-detail-page .project-hero-device {
  padding-top: 0;
}

body:not(.upturnlab-home) .upturnlab-project-detail-page .project-hero-device__title {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

body:not(.upturnlab-home) .upturnlab-project-detail-page .project-hero-device__stage {
  position: relative;
  z-index: 2;
  margin-top: clamp(-64px, -3.2vw, -34px);
}

body:not(.upturnlab-home) .upturnlab-project-detail-page .project-device {
  position: relative;
  z-index: 2;
}

/* Project detail: vertical parity with static project-page.html. */

body:not(.upturnlab-home) .upturnlab-project-detail-page .project-hero-device {
  padding-top: 0 !important;
}

body:not(.upturnlab-home) .upturnlab-project-detail-page .project-hero-device__container {
  transform: translateY(-58px);
  margin-bottom: -58px;
}

body:not(.upturnlab-home) .upturnlab-project-detail-page .project-hero-device__title {
  position: relative;
  z-index: 1;
  margin-bottom: 0 !important;
}

body:not(.upturnlab-home) .upturnlab-project-detail-page .project-hero-device__stage {
  position: relative;
  z-index: 2;
  margin-top: -34px !important;
}

body:not(.upturnlab-home) .upturnlab-project-detail-page .project-device {
  position: relative;
  z-index: 2;
}




/* Legal pages. */

body:not(.upturnlab-home) .upturnlab-legal-page {
  background: #020918;
}

body:not(.upturnlab-home) .legal-header {
  min-height: 120px;
}

body:not(.upturnlab-home) .legal-page {
  position: relative;
  padding: clamp(96px, 10vw, 160px) 24px clamp(96px, 10vw, 180px);
  background: #020918;
  color: #ffffff;
}

body:not(.upturnlab-home) .legal-page__container {
  width: min(1040px, 100%);
  margin: 0 auto;
}

body:not(.upturnlab-home) .legal-page__title {
  margin: 0 0 clamp(48px, 6vw, 82px);
  font-family: inherit;
  font-size: clamp(44px, 8vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  color: #ffffff;
}

body:not(.upturnlab-home) .legal-page__content {
  width: min(820px, 100%);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

body:not(.upturnlab-home) .legal-page__content h2 {
  margin: 48px 0 18px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: #ffffff;
}

body:not(.upturnlab-home) .legal-page__content p {
  margin: 0 0 22px;
}

body:not(.upturnlab-home) .legal-page__content a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

body:not(.upturnlab-home) .legal-page__content ul,
body:not(.upturnlab-home) .legal-page__content ol {
  margin: 0 0 28px 1.25em;
  padding: 0;
}

body:not(.upturnlab-home) .legal-page__content li {
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  body:not(.upturnlab-home) .legal-header {
    min-height: 96px;
  }

  body:not(.upturnlab-home) .legal-page {
    padding: 80px 20px 110px;
  }

  body:not(.upturnlab-home) .legal-page__title {
    margin-bottom: 42px;
  }
}

/* Default WordPress page template. */

body:not(.upturnlab-home) .upturnlab-default-page {
  background: #020918;
}

body:not(.upturnlab-home) .default-page {
  position: relative;
  padding: clamp(120px, 12vw, 190px) 24px clamp(100px, 10vw, 170px);
  background: #020918;
  color: #ffffff;
}

body:not(.upturnlab-home) .default-page__container {
  width: min(1040px, 100%);
  margin: 0 auto;
}

body:not(.upturnlab-home) .default-page__title {
  margin: 0 0 clamp(42px, 6vw, 78px);
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  color: #ffffff;
}

body:not(.upturnlab-home) .default-page__content {
  width: min(820px, 100%);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

body:not(.upturnlab-home) .default-page__content h2,
body:not(.upturnlab-home) .default-page__content h3,
body:not(.upturnlab-home) .default-page__content h4 {
  margin: 48px 0 18px;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: #ffffff;
}

body:not(.upturnlab-home) .default-page__content h2 {
  font-size: clamp(28px, 3.5vw, 44px);
}

body:not(.upturnlab-home) .default-page__content h3 {
  font-size: clamp(22px, 2.6vw, 34px);
}

body:not(.upturnlab-home) .default-page__content p {
  margin: 0 0 22px;
}

body:not(.upturnlab-home) .default-page__content a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

body:not(.upturnlab-home) .default-page__content ul,
body:not(.upturnlab-home) .default-page__content ol {
  margin: 0 0 28px 1.25em;
  padding: 0;
}

body:not(.upturnlab-home) .default-page__content li {
  margin-bottom: 10px;
}

body:not(.upturnlab-home) .default-page__content img {
  max-width: 100%;
  height: auto;
  border-radius: 24px;
}

@media (max-width: 768px) {
  body:not(.upturnlab-home) .default-page {
    padding: 96px 20px 120px;
  }

  body:not(.upturnlab-home) .default-page__title {
    margin-bottom: 38px;
  }
}


/* Archive and search fallback pages. */

body:not(.upturnlab-home) .upturnlab-listing-page {
  background: #020918;
}

body:not(.upturnlab-home) .listing-page {
  position: relative;
  padding: clamp(120px, 12vw, 190px) 24px clamp(100px, 10vw, 170px);
  background: #020918;
  color: #ffffff;
}

body:not(.upturnlab-home) .listing-page__container {
  width: min(1180px, 100%);
  margin: 0 auto;
}

body:not(.upturnlab-home) .listing-page__header {
  margin-bottom: clamp(52px, 7vw, 96px);
}

body:not(.upturnlab-home) .listing-page__eyebrow {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8ea5ff;
}

body:not(.upturnlab-home) .listing-page__title {
  margin: 0;
  max-width: 980px;
  font-size: clamp(42px, 7vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  color: #ffffff;
}

body:not(.upturnlab-home) .listing-page__description {
  width: min(720px, 100%);
  margin-top: 28px;
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

body:not(.upturnlab-home) .listing-page__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

body:not(.upturnlab-home) .listing-card {
  min-width: 0;
}

body:not(.upturnlab-home) .listing-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

body:not(.upturnlab-home) .listing-card__link:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.07);
}

body:not(.upturnlab-home) .listing-card__media {
  aspect-ratio: 1.45 / 1;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

body:not(.upturnlab-home) .listing-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: transform 0.35s ease;
}

body:not(.upturnlab-home) .listing-card__link:hover .listing-card__media img {
  transform: scale(1.04);
}

body:not(.upturnlab-home) .listing-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

body:not(.upturnlab-home) .listing-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 20px;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

body:not(.upturnlab-home) .listing-card__title {
  margin: 0 0 18px;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #ffffff;
}

body:not(.upturnlab-home) .listing-card__excerpt {
  margin: auto 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.66);
}

body:not(.upturnlab-home) .listing-page__pagination {
  margin-top: 56px;
}

body:not(.upturnlab-home) .listing-page__pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

body:not(.upturnlab-home) .listing-page__pagination a,
body:not(.upturnlab-home) .listing-page__pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  text-decoration: none;
}

body:not(.upturnlab-home) .listing-page__pagination .current {
  background: #2f5bff;
}

body:not(.upturnlab-home) .listing-page__empty {
  width: min(680px, 100%);
  padding: 42px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.05);
}

body:not(.upturnlab-home) .listing-page__empty h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

body:not(.upturnlab-home) .listing-page__empty p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.72);
}

body:not(.upturnlab-home) .listing-page__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: #2f5bff;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
}

body:not(.upturnlab-home) .listing-page__search-form {
  display: flex;
  width: min(680px, 100%);
  margin-top: 36px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

body:not(.upturnlab-home) .listing-page__search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 0 22px;
  background: transparent;
  color: #ffffff;
  font: inherit;
}

body:not(.upturnlab-home) .listing-page__search-form input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

body:not(.upturnlab-home) .listing-page__search-form button {
  border: 0;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  background: #2f5bff;
  color: #ffffff;
  font: inherit;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 1024px) {
  body:not(.upturnlab-home) .listing-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body:not(.upturnlab-home) .listing-page {
    padding: 96px 20px 120px;
  }

  body:not(.upturnlab-home) .listing-page__grid {
    grid-template-columns: 1fr;
  }

  body:not(.upturnlab-home) .listing-card__link {
    min-height: 0;
  }

  body:not(.upturnlab-home) .listing-page__search-form {
    border-radius: 24px;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
  }

  body:not(.upturnlab-home) .listing-page__search-form input {
    min-height: 48px;
  }

  body:not(.upturnlab-home) .listing-page__search-form button {
    width: 100%;
  }
}

/* Project request status notice. */

.upturnlab-request-notice {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 100000;
  transform: translate(-50%, 18px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(520px, calc(100% - 32px));
  min-height: 56px;
  padding: 16px 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(5, 14, 36, 0.92);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  color: #ffffff;
  font-size: 15px;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(18px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.upturnlab-request-notice.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.upturnlab-request-notice--success {
  border-color: rgba(92, 255, 176, 0.32);
}

.upturnlab-request-notice--error,
.upturnlab-request-notice--invalid,
.upturnlab-request-notice--empty {
  border-color: rgba(255, 120, 120, 0.34);
}

@media (max-width: 768px) {
  .upturnlab-request-notice {
    bottom: 20px;
    min-height: 52px;
    padding: 14px 18px;
    border-radius: 24px;
    font-size: 14px;
  }
}


/* TranslatePress language switcher readiness. */

.upturnlab-language-switcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 100%;
  color: inherit;
  font: inherit;
  text-transform: uppercase;
}

.upturnlab-language-switcher__button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
  cursor: default;
}

.upturnlab-language-switcher--translatepress {
  line-height: 1;
}

.upturnlab-language-switcher--translatepress .trp-language-switcher,
.upturnlab-language-switcher--translatepress .trp-language-switcher-container {
  width: auto;
  margin: 0;
}

.upturnlab-language-switcher--translatepress a,
.upturnlab-language-switcher--translatepress span {
  color: inherit;
  font: inherit;
  text-decoration: none;
  text-transform: uppercase;
}

.upturnlab-language-switcher--translatepress img {
  display: inline-block;
  width: 18px;
  height: auto;
  margin-right: 6px;
  vertical-align: middle;
}

/* Compact custom TranslatePress language switcher. */

.upturnlab-language-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 100%;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
}

.upturnlab-language-switcher__details {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
}

.upturnlab-language-switcher__summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
}

.upturnlab-language-switcher__summary::-webkit-details-marker {
  display: none;
}

.upturnlab-language-switcher__current,
.upturnlab-language-switcher__fallback-label {
  display: inline-flex;
  align-items: center;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
}

.upturnlab-language-switcher__arrow {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  line-height: 1;
  opacity: 0.8;
}

.upturnlab-language-switcher__menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 10000;
  display: grid;
  gap: 4px;
  min-width: 74px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(5, 14, 36, 0.96);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  backdrop-filter: blur(16px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.upturnlab-language-switcher__details[open] .upturnlab-language-switcher__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.upturnlab-language-switcher__link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.upturnlab-language-switcher__link:hover,
.upturnlab-language-switcher__link.is-active {
  background: rgba(255, 255, 255, 0.12);
}

.hero-lang .upturnlab-language-switcher__menu,
.mobile-lang .upturnlab-language-switcher__menu {
  top: auto;
  bottom: calc(100% + 12px);
  right: 0;
  transform: translateY(6px);
}

.hero-lang .upturnlab-language-switcher__details[open] .upturnlab-language-switcher__menu,
.mobile-lang .upturnlab-language-switcher__details[open] .upturnlab-language-switcher__menu {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .upturnlab-language-switcher__menu {
    right: auto;
    left: 0;
  }

  .hero-lang .upturnlab-language-switcher__menu,
  .mobile-lang .upturnlab-language-switcher__menu {
    right: 0;
    left: auto;
  }
}


/* Design Parity Fix 1.1: reset WordPress base margins inside homepage hero. */
body.upturnlab-home .upturnlab-front-page .hero-title {
  margin: 0;
  clear: none;
}

body.upturnlab-home .upturnlab-front-page .hero-sub {
  margin: 0;
}



/* Design Parity Fix 1.2: final homepage hero vertical alignment with static index.html. */
@media (min-width: 769px) {
  body.upturnlab-home .upturnlab-front-page .hero-content {
    transform: translateY(9px);
  }
}


/* Design Parity Fix 2: prevent WordPress visited-link color from affecting homepage legal links. */
body.upturnlab-home .upturnlab-front-page .hero-policy,
body.upturnlab-home .upturnlab-front-page .hero-policy:visited,
body.upturnlab-home .upturnlab-front-page .hero-policy:hover,
body.upturnlab-home .upturnlab-front-page .hero-policy:focus,
body.upturnlab-home .upturnlab-front-page .hero-policy:active {
  color: #f1f1f1;
}




/* Design Parity Fix 3: make homepage TranslatePress switcher visually match static hero language switcher. */
body.upturnlab-home .hero-lang .upturnlab-language-switcher {
  min-width: 0;
  height: auto;
}

body.upturnlab-home .hero-lang .upturnlab-language-switcher__details {
  height: auto;
}

body.upturnlab-home .hero-lang .upturnlab-language-switcher__summary {
  height: auto;
  gap: 6px;
  padding: 0;
  color: #fff;
  font: inherit;
  font-size: clamp(10px, 0.8vw, 12px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.upturnlab-home .hero-lang .upturnlab-language-switcher__current {
  color: #fff;
  font: inherit;
  font-size: clamp(10px, 0.8vw, 12px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.upturnlab-home .hero-lang .upturnlab-language-switcher__arrow {
  position: relative;
  display: inline-block;
  width: 9px;
  height: 11px;
  font-size: 0;
  line-height: 1;
  opacity: 1;
  transform: translateY(-2px);
  transition: transform 0.25s ease;
}

body.upturnlab-home .hero-lang .upturnlab-language-switcher__arrow::before {
  content: "▴";
  position: absolute;
  inset: 0;
  color: #fff;
  font-size: 11px;
  line-height: 1;
}

body.upturnlab-home .hero-lang .upturnlab-language-switcher__details[open] .upturnlab-language-switcher__arrow {
  transform: translateY(-2px) rotate(180deg);
}

body.upturnlab-home .hero-lang .upturnlab-language-switcher__menu {
  position: absolute;
  top: auto;
  right: auto;
  left: 50%;
  bottom: calc(100% + 14px);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 10px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(7, 28, 74, 0.96);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.upturnlab-home .hero-lang .upturnlab-language-switcher__details[open] .upturnlab-language-switcher__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

body.upturnlab-home .hero-lang .upturnlab-language-switcher__menu::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 105%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  background: rgba(7, 28, 74, 0.96);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateX(-50%) rotate(45deg);
}

body.upturnlab-home .hero-lang .upturnlab-language-switcher__link {
  display: block;
  min-height: 0;
  padding: 6px 8px;
  border-radius: 0;
  color: #fff;
  background: transparent;
  font-size: clamp(10px, 0.8vw, 12px);
  line-height: normal;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

body.upturnlab-home .hero-lang .upturnlab-language-switcher__link:hover,
body.upturnlab-home .hero-lang .upturnlab-language-switcher__link.is-active {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}




/* Design Parity Fix 4: restore static homepage main CTA button line-height and link states. */
body.upturnlab-home .upturnlab-front-page .hero .hero-btn,
body.upturnlab-home .upturnlab-front-page .hero .hero-btn:visited,
body.upturnlab-home .upturnlab-front-page .hero .hero-btn:hover,
body.upturnlab-home .upturnlab-front-page .hero .hero-btn:focus,
body.upturnlab-home .upturnlab-front-page .hero .hero-btn:active {
  color: #fff;
  line-height: normal;
}




/* Design Parity Fix 5.1: restore static index.html line-height behavior in homepage bottom nav. */
body.upturnlab-home .upturnlab-front-page .hero-nav-menu a,
body.upturnlab-home .upturnlab-front-page .hero-lang__toggle,
body.upturnlab-home .upturnlab-front-page .hero-nav-cta {
  line-height: normal;
}

body.upturnlab-home .upturnlab-front-page .hero-nav-cta,
body.upturnlab-home .upturnlab-front-page .hero-nav-cta:visited,
body.upturnlab-home .upturnlab-front-page .hero-nav-cta:hover,
body.upturnlab-home .upturnlab-front-page .hero-nav-cta:focus,
body.upturnlab-home .upturnlab-front-page .hero-nav-cta:active {
  color: #fff;
}





/* Design Parity Fix 7.1: neutralize Underscores default visited links and button chrome. */

/* Static layout has no purple visited-link state. */
body a,
body a:visited,
body a:hover,
body a:focus,
body a:active {
  color: inherit;
}

/* Static layout uses custom-designed controls; WordPress default button chrome must not leak in. */
body button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-color: transparent;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

body button:hover,
body button:focus,
body button:active {
  border: 0;
  border-color: transparent;
}




/* Design Parity Fix 8.1: make WP linked project cards behave like static div cards on hover. */
body.upturnlab-home .upturnlab-front-page .project-card__inner {
  display: block;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

body.upturnlab-home .upturnlab-front-page .project-card__inner:visited,
body.upturnlab-home .upturnlab-front-page .project-card__inner:hover,
body.upturnlab-home .upturnlab-front-page .project-card__inner:focus,
body.upturnlab-home .upturnlab-front-page .project-card__inner:active {
  color: inherit;
  text-decoration: none;
}

body.upturnlab-home .upturnlab-front-page .project-card__inner > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.upturnlab-home .upturnlab-front-page .project-card .project-arrow {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
}

body.upturnlab-home .upturnlab-front-page .project-card:hover .project-arrow {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}


/* Design Parity Fix 9.1: restore static line-height for all homepage CTA pill buttons. */
body.upturnlab-home .upturnlab-front-page .hero-btn,
body.upturnlab-home .upturnlab-front-page .hero-btn:visited,
body.upturnlab-home .upturnlab-front-page .hero-btn:hover,
body.upturnlab-home .upturnlab-front-page .hero-btn:focus,
body.upturnlab-home .upturnlab-front-page .hero-btn:active {
  line-height: normal;
  color: #fff;
}


/* Design Parity Fix 10.1: restore exact static index.html styles for homepage bottom CTA. */
body.upturnlab-home .upturnlab-front-page .hero-nav-cta,
body.upturnlab-home .upturnlab-front-page .hero-nav-cta:visited,
body.upturnlab-home .upturnlab-front-page .hero-nav-cta:hover,
body.upturnlab-home .upturnlab-front-page .hero-nav-cta:focus,
body.upturnlab-home .upturnlab-front-page .hero-nav-cta:active {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding: 14px 24px;
  font-size: clamp(10px, 0.8vw, 12px);
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: #fff;
  background: #1544bf;
  border: none;
  border-radius: 0 999px 999px 0;
  appearance: none;
  -webkit-appearance: none;
}


