/* static/css/40-pages/index.css */
.hp-index-main {
  padding-top: 0;
  overflow-x: clip;
}

.hp-brand-lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
}

.hp-brand-lockup > span:last-child {
  min-width: 0;
}

.hp-brand-mark {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 0.95em;
  height: 0.95em;
  line-height: 0;
}

.hp-brand-mark__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hp-index {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.hp-index-landing {
  --hp-landing-scroll: 0;
  position: relative;
  z-index: var(--z-sticky);
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: calc(100svh - 96px);
  overflow: hidden;
  background: #04070C;
  color: #FEFEFE;
}

.hp-index-landing__media,
.hp-index-landing__scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hp-index-landing__media {
  background:
    linear-gradient(135deg, rgba(113, 182, 178, 0.12), transparent 42%),
    #04070C;
}

.hp-index-landing__scrim {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 7, 12, 0.94) 0%, rgba(4, 7, 12, 0.80) 38%, rgba(4, 7, 12, 0.30) 72%, rgba(4, 7, 12, 0.72) 100%),
    linear-gradient(0deg, rgba(4, 7, 12, 0.84) 0%, transparent 38%, rgba(4, 7, 12, 0.28) 100%);
}

.hp-index-photo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
  width: 100%;
  height: calc(100% + 48px);
  min-height: 100%;
  padding: var(--space-2);
  transform: translate3d(0, calc(var(--hp-landing-scroll) * -24px), 0) scale(1.02);
  transform-origin: center;
  transition: transform 120ms linear;
}

.hp-index-photo-grid__item {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(158, 182, 198, 0.16), transparent 44%),
    #1B2731;
}

.hp-index-photo-grid__item:first-child {
  grid-row: 1 / span 2;
}

.hp-index-photo-grid__item:nth-child(n + 4) {
  display: none;
}

.hp-index-photo-grid__item picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hp-index-photo-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04) brightness(0.82);
  transform: scale(1.03);
  transition: transform 520ms var(--ease-standard),
              filter 520ms var(--ease-standard);
}

.hp-index-photo-grid__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(254, 254, 254, 0.58);
  background:
    linear-gradient(90deg, rgba(254, 254, 254, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(254, 254, 254, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
}

.hp-index-photo-grid__item picture + .hp-index-photo-grid__fallback {
  opacity: 0;
}

.hp-index-photo-grid__item--no-img .hp-index-photo-grid__fallback {
  opacity: 1;
}

.hp-index-landing__inner {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding: var(--space-8) var(--space-4);
}

.hp-index-landing__copy {
  width: min(100%, 680px);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.hp-index-landing__kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  font-weight: var(--fw-semibold);
  letter-spacing: 0;
  text-transform: uppercase;
}

.hp-index-landing__kicker {
  color: color-mix(in srgb, var(--color-signal-positive) 74%, #FEFEFE);
}

.hp-index-landing__title {
  max-width: 9ch;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: var(--fw-bold);
  line-height: 0.92;
  letter-spacing: 0;
  color: #FEFEFE;
  text-wrap: balance;
}

.hp-index-landing__title.hp-brand-lockup {
  max-width: min(100%, 12ch);
  white-space: nowrap;
}

.hp-brand-lockup--hero {
  justify-content: flex-start;
}

.hp-brand-lockup--hero .hp-brand-mark {
  width: 0.82em;
  height: 0.82em;
}

.hp-index-landing__tagline {
  max-width: 760px;
  font-size: 1.5rem;
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  color: #FEFEFE;
  text-wrap: balance;
}

.hp-index-landing__body {
  max-width: 560px;
  color: rgba(254, 254, 254, 0.78);
  font-size: var(--fs-card);
}

.hp-index__search-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: stretch;
}

.hp-index__search-row--landing {
  max-width: 780px;
  margin-top: var(--space-1);
}

.hp-index__search-wrap {
  position: relative;
  flex: 1 1 360px;
  min-width: 0;
}

.hp-index__search-shell {
  display: flex;
  align-items: stretch;
  gap: var(--space-2);
  padding: var(--space-1);
  border: 1px solid rgba(254, 254, 254, 0.24);
  border-radius: 18px;
  background: rgba(254, 254, 254, 0.92);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.32);
}

.hp-index__search-input {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
  min-height: 56px;
  padding: 6px 10px 6px 52px;
  border-radius: 14px;
}

.hp-index__search-shell .c-input__field {
  flex: 1 1 150px;
  width: auto;
  min-width: min(150px, 100%);
  height: 42px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: #1D262F;
  box-shadow: none;
}

.hp-index__search-shell .c-input__field::placeholder {
  color: rgba(67, 106, 136, 0.76);
}

.hp-index__search-shell .c-input__leading {
  color: #436A88;
}

.hp-index__search-slugs {
  display: inline-flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
  max-width: 100%;
}

.hp-index__search-slugs:empty {
  display: none;
}

.hp-index__search-slugs .chip {
  height: auto;
  min-height: 34px;
  max-width: 100%;
  padding: 5px 9px;
  border-color: color-mix(in srgb, var(--color-border-strong) 34%, transparent);
  background: color-mix(in srgb, var(--color-signal-info) 14%, var(--color-surface));
  color: var(--color-text-primary);
  cursor: text;
  line-height: var(--lh-snug);
}

.chip-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.hp-index__search-slugs .chip-type {
  color: var(--color-text-secondary);
}

.hp-index__search-slugs .chip-x {
  flex: 0 0 auto;
  cursor: pointer;
}

.hp-index__search-submit {
  min-width: 116px;
  height: 56px;
  border-radius: 14px;
}

.hp-index__search-row .lang-filter-toggle {
  height: 66px;
  border-color: rgba(254, 254, 254, 0.42);
  background: rgba(4, 7, 12, 0.42);
  color: #FEFEFE;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hp-index-country-cta {
  width: fit-content;
  max-width: 100%;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border: 1px solid rgba(113, 182, 178, 0.58);
  border-radius: 16px;
  background: rgba(254, 254, 254, 0.12);
  color: #FEFEFE;
  text-decoration: none;
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.26);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform var(--dur-micro) var(--ease-standard),
              border-color var(--dur-micro) var(--ease-standard),
              background var(--dur-micro) var(--ease-standard);
}

.hp-index-country-cta__label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.hp-index-country-cta .c-icon {
  flex: 0 0 auto;
}

.hp-index-signals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
  width: min(100%, 760px);
  margin-top: var(--space-1);
}

.hp-index-signals__item {
  min-width: 0;
  min-height: 64px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: var(--space-2);
  align-items: start;
  padding: var(--space-3);
  border: 1px solid rgba(254, 254, 254, 0.18);
  border-radius: var(--radius-control);
  background: rgba(4, 7, 12, 0.44);
  color: rgba(254, 254, 254, 0.78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform var(--dur-micro) var(--ease-standard),
              border-color var(--dur-micro) var(--ease-standard),
              background var(--dur-micro) var(--ease-standard);
}

.hp-index-signals__item > .c-icon {
  margin-top: 1px;
}

.hp-index-signals__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: var(--fs-meta);
  line-height: var(--lh-snug);
}

.hp-index-signals__body strong {
  color: #FEFEFE;
  font-weight: var(--fw-semibold);
}

.hp-index-signals__item--vibe > .c-icon { color: var(--color-signal-positive); }
.hp-index-signals__item--bugs > .c-icon { color: var(--color-signal-danger); }
.hp-index-signals__item--language > .c-icon { color: var(--color-signal-info); }
.hp-index-signals__item--sus > .c-icon { color: var(--color-signal-sus); }

.hp-index-articles {
  width: 100%;
  padding: var(--space-4) var(--space-4);
  border-block: 1px solid var(--color-border-subtle);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--color-signal-info) 16%, transparent) 1px, transparent 1px),
    var(--color-surface-muted);
  background-size: 32px 100%;
}

.hp-index-articles__inner {
  display: grid;
  grid-template-columns: minmax(132px, 0.42fr) minmax(0, 1.8fr) auto;
  gap: var(--space-3);
  align-items: stretch;
}

.hp-index-articles__head {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-1);
}

.hp-index-articles__kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  font-weight: var(--fw-semibold);
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.hp-index-articles__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-section);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  color: var(--color-text-primary);
}

.hp-index-articles__list {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
  border-radius: 18px;
  background: var(--color-border-subtle);
  list-style: none;
}

.hp-index-articles__item {
  min-width: 0;
  display: flex;
  background: var(--color-surface);
}

.hp-index-articles__link {
  position: relative;
  min-width: 0;
  width: 100%;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3);
  color: var(--color-text-primary);
  text-decoration: none;
  transition: background var(--dur-micro) var(--ease-standard),
              color var(--dur-micro) var(--ease-standard);
}

.hp-index-articles__meta {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 3px var(--space-1);
  align-items: center;
  padding-right: var(--space-4);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.hp-index-articles__meta span + span {
  padding-left: var(--space-1);
  border-left: 1px solid color-mix(in srgb, var(--color-border-strong) 44%, transparent);
}

.hp-index-articles__link-title {
  min-width: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: var(--fs-meta);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  overflow-wrap: anywhere;
}

.hp-index-articles__arrow {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  display: inline-flex;
  color: var(--color-text-tertiary);
  transition: transform var(--dur-micro) var(--ease-standard),
              color var(--dur-micro) var(--ease-standard);
}

.hp-index-articles__link--warning .hp-index-articles__meta {
  color: var(--color-signal-danger);
}

.hp-index-articles__all {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-height: 44px;
  padding: 0 var(--space-3);
  border: 1px solid var(--color-border-subtle);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: var(--fs-meta);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color var(--dur-micro) var(--ease-standard),
              color var(--dur-micro) var(--ease-standard),
              transform var(--dur-micro) var(--ease-standard);
}

.hp-index__results-wrap {
  padding-top: var(--space-6);
}

/* Results header: title + share on one row, count/intro meta, then the
   price readout. Left-aligned and unboxed so cards start high on the page. */
.hp-results-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border-subtle);
}

.hp-results-head__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-width: 0;
}

.hp-results-head__title {
  min-width: 0;
  font-size: var(--fs-page);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  text-wrap: balance;
}

.hp-results-head__meta {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text-secondary);
}

.hp-results-head__count {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  white-space: nowrap;
}

.hp-results-head__count::after {
  content: "·";
  margin-inline: var(--space-2);
  font-family: var(--font-sans);
  color: var(--color-text-tertiary);
}

.hp-results-head__share {
  flex: none;
  margin-inline-end: calc(-1 * var(--space-3));
}

@media (max-width: 520px) {
  .hp-results-head__share .c-button__label {
    display: none;
  }
}

.hp-index__filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: flex-start;
}

.hp-index__filter-chips:empty {
  display: none;
}

/* List container: establishes a query container so PropertyCard can switch to
   horizontal layout when the column is wide enough. */
.hp-list {
  container-type: inline-size;
  container-name: hp-list;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.hp-list__loading {
  padding: var(--space-6) 0;
}

.hp-list-status {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: var(--fs-meta);
}

.hp-list-status[hidden] {
  display: none;
}

.hp-list-status__pulse {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--color-signal-info);
  animation: hp-list-pulse 900ms var(--ease-standard) infinite alternate;
}

.hp-list-status.is-error {
  border-color: color-mix(in srgb, var(--color-signal-danger) 36%, var(--color-border-subtle));
  color: var(--color-text-primary);
}

.hp-list-status.is-error .hp-list-status__pulse {
  animation: none;
  background: var(--color-signal-danger);
}

.hp-list-status__text {
  flex: 1 1 auto;
}

.hp-list-status__retry {
  flex: 0 0 auto;
  min-height: 36px;
}

@keyframes hp-list-pulse {
  from { opacity: 0.4; transform: scale(0.82); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hp-list-status__pulse { animation: none; }
}

.load-more-btn.is-loading {
  cursor: progress;
  opacity: 0.72;
  pointer-events: none;
}

.load-more-btn.is-error {
  border-color: var(--color-signal-danger);
  color: var(--color-signal-danger);
}

.hp-result-note {
  text-align: center;
  font-size: var(--fs-meta);
  color: var(--color-text-secondary);
}

.hp-load-more {
  display: flex;
  justify-content: center;
  padding-block: var(--space-4);
}

@media (hover: hover) {
  .hp-index-photo-grid:hover .hp-index-photo-grid__item img {
    filter: saturate(0.92) contrast(1.06) brightness(0.88);
    transform: scale(1.06);
  }

  .hp-index-signals__item:hover {
    transform: translateY(-2px);
    border-color: rgba(254, 254, 254, 0.36);
    background: rgba(4, 7, 12, 0.58);
  }

  .hp-index-country-cta:hover {
    transform: translateY(-2px);
    border-color: rgba(113, 182, 178, 0.86);
    background: rgba(254, 254, 254, 0.18);
  }

  .hp-index-articles__link:hover {
    background: color-mix(in srgb, var(--color-signal-info) 12%, var(--color-surface));
  }

  .hp-index-articles__link:hover .hp-index-articles__arrow,
  .hp-index-articles__all:hover {
    color: var(--color-text-primary);
  }

  .hp-index-articles__link:hover .hp-index-articles__arrow,
  .hp-index-articles__all:hover .c-icon {
    transform: translateX(2px);
  }

  .hp-index-articles__all:hover {
    border-color: var(--color-border-strong);
    transform: translateY(-1px);
  }
}

@media (min-width: 768px) {
  .hp-index-landing {
    min-height: calc(100svh - 110px);
  }

  .hp-index-landing__inner {
    padding-inline: var(--space-6);
  }

  .hp-index-landing__title {
    font-size: 5.5rem;
  }

  .hp-index-landing__tagline {
    font-size: 2rem;
  }

  .hp-index-photo-grid__item:nth-child(n + 4) {
    display: block;
  }

  .hp-index-photo-grid {
    grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(180px, 0.45fr));
  }

  .hp-list {
    gap: var(--space-5);
  }
}

@media (max-width: 1080px) {
  .hp-index-articles__inner {
    grid-template-columns: 1fr;
  }

  .hp-index-articles__head {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
  }

  .hp-index-articles__kicker {
    order: 2;
  }

  .hp-index-articles__all {
    justify-self: start;
  }
}

@media (min-width: 1120px) {
  .hp-index-landing__title {
    font-size: 6.5rem;
  }

  .hp-index-landing__copy {
    margin-left: var(--space-6);
  }
}

@media (max-width: 639px) {
  .hp-index-landing {
    align-items: stretch;
    min-height: 0;
  }

  .hp-index-landing__inner {
    padding: var(--space-8) var(--space-4) var(--space-6);
  }

  .hp-index-landing__copy {
    gap: var(--space-3);
    max-width: 100%;
  }

  .hp-index-landing__title {
    font-size: 3.25rem;
  }

  .hp-index-landing__tagline {
    font-size: 1.125rem;
    max-width: 25ch;
    overflow-wrap: anywhere;
  }

  .hp-index-landing__body {
    display: none;
  }

  .hp-index-photo-grid {
    display: block;
    padding: 0;
  }

  .hp-index-photo-grid__item {
    width: 100%;
    height: 100%;
  }

  .hp-index-photo-grid__item:not(:first-child) {
    display: none;
  }

  .hp-index__search-shell {
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-1);
  }

  .hp-index__search-submit {
    width: 100%;
    min-width: 0;
    height: 48px;
  }

  .hp-index__search-row .lang-filter-wrap {
    flex: 1 1 100%;
  }

  .hp-index__search-row .lang-filter-toggle {
    width: 100%;
    height: 48px;
  }

  .hp-index-country-cta {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    padding: var(--space-2) var(--space-3);
    text-align: center;
  }

  .hp-index-signals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hp-index-signals__item {
    min-height: 42px;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    padding: var(--space-2);
  }

  .hp-index-signals__body {
    font-size: var(--fs-tiny);
  }

  .hp-index-signals__body > span {
    display: none;
  }

  .hp-index-articles {
    padding-block: var(--space-3);
  }

  .hp-index-articles__inner {
    gap: var(--space-2);
  }

  .hp-index-articles__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-1) var(--space-2);
  }

  .hp-index-articles__title {
    font-size: var(--fs-card);
  }

  .hp-index-articles__kicker {
    align-self: center;
    text-align: right;
  }

  .hp-index-articles__list {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }

  .hp-index-articles__link {
    min-height: 58px;
    padding: var(--space-2) var(--space-3);
  }

  .hp-index-articles__link-title {
    -webkit-line-clamp: 1;
  }

  .hp-index-articles__all {
    justify-self: stretch;
  }
}

@media (max-width: 379px) {
  .hp-index-landing__title {
    font-size: 3rem;
  }

}

.hp-index-main--search-active .hp-index-landing {
  min-height: 0;
  overflow: visible;
  background: #04070C;
  border-bottom: 1px solid rgba(254, 254, 254, 0.12);
  transition: min-height 280ms var(--ease-decel),
              background-color 280ms var(--ease-standard),
              border-color 280ms var(--ease-standard);
}

.hp-index-main--search-active .hp-index-landing__media,
.hp-index-main--search-active .hp-index-landing__scrim {
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--ease-standard);
}

.hp-index-main--search-active .hp-index-landing__inner {
  max-width: 1200px;
  padding-block: var(--space-3);
}

.hp-index-main--search-active .hp-index-landing__copy {
  width: min(100%, 900px);
  gap: 0;
  margin-left: 0;
}

.hp-index-main--search-active .hp-index-landing__kicker,
.hp-index-main--search-active .hp-index-landing__title,
.hp-index-main--search-active .hp-index-landing__tagline,
.hp-index-main--search-active .hp-index-landing__body,
.hp-index-main--search-active .hp-index-country-cta,
.hp-index-main--search-active .hp-index-signals {
  display: none;
}

.hp-index-main--search-active .hp-index__search-row--landing {
  width: min(100%, 900px);
  max-width: none;
  margin: 0;
}

.hp-index-main--search-active .hp-index__search-shell {
  border-color: rgba(254, 254, 254, 0.30);
  background: rgba(254, 254, 254, 0.96);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.hp-index-main--search-active .hp-index__search-row .lang-filter-toggle {
  height: 66px;
  border-color: rgba(254, 254, 254, 0.26);
  background: rgba(254, 254, 254, 0.10);
}

.hp-index-main--search-active .hp-index__results-wrap {
  padding-top: var(--space-4);
}

.hp-index-main--search-active .hp-index-articles {
  display: none;
}

@media (max-width: 639px) {
  .hp-index-main--search-active .hp-index-landing__inner {
    padding: var(--space-3) var(--space-4);
  }

  .hp-index-main--search-active .hp-index__search-shell {
    flex-direction: row;
    align-items: stretch;
  }

  .hp-index-main--search-active .hp-index__search-submit {
    flex: 0 0 auto;
    width: auto;
    min-width: 104px;
    height: 48px;
  }

  .hp-index-main--search-active .hp-index__search-row .lang-filter-toggle {
    height: 48px;
  }
}

@media (max-width: 420px) {
  .hp-index-main--search-active .hp-index__search-shell {
    flex-direction: column;
  }

  .hp-index-main--search-active .hp-index__search-submit {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hp-index-landing__copy {
    animation: hp-landing-copy-in 520ms var(--ease-decel) both;
  }

  /* On results pages the landing copy is only the search bar: it must be
     there on first paint, not fade in on every search. */
  .hp-index-main--search-active .hp-index-landing__copy {
    animation: none;
  }

  .hp-index-photo-grid__item {
    animation: hp-landing-photo-in 700ms var(--ease-decel) both;
    animation-delay: calc((var(--hp-photo-index, 0)) * 70ms);
  }

  .hp-index-photo-grid__item:nth-child(2) { --hp-photo-index: 1; }
  .hp-index-photo-grid__item:nth-child(3) { --hp-photo-index: 2; }
  .hp-index-photo-grid__item:nth-child(4) { --hp-photo-index: 3; }
  .hp-index-photo-grid__item:nth-child(5) { --hp-photo-index: 4; }

  .hp-landing-motion .hp-landing-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 360ms var(--ease-decel),
                transform 360ms var(--ease-decel);
  }

  .hp-landing-motion .hp-landing-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hp-index-photo-grid,
  .hp-index-photo-grid__item img,
  .hp-index-country-cta,
  .hp-index-signals__item,
  .hp-index-articles__link,
  .hp-index-articles__arrow,
  .hp-index-articles__all {
    transform: none;
    transition: none;
  }
}

@keyframes hp-landing-copy-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hp-landing-photo-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* static/css/40-pages/root-hub.css */
/* Root brand hub (/) — the canonical front door, and the page that should look
   the best on the site. Signature: the "filter membrane". Messy review signal
   (a faint field of monospaced data tokens) resolves into a crisp brand
   statement in the hero, then into clean ranked cards below. Green-teal is the
   resolved-signal accent; everything else stays quiet HP lab aesthetic. */

.hp-roothub {
  padding-top: 0;
  padding-bottom: clamp(48px, 7vw, 96px);
  overflow-x: clip;
}

.hp-roothub .hp-roothub-section-head {
  max-width: 62ch;
  margin: 0 auto var(--space-8);
  text-align: center;
}

.hp-roothub-section-head__kicker {
  margin: 0 0 var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--color-signal-positive);
}

.hp-roothub-section-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.45rem;
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: 0;
  color: var(--color-text-primary);
}

.hp-roothub-section-head__intro {
  margin: var(--space-3) auto 0;
  max-width: 52ch;
  font-size: var(--fs-meta);
  line-height: var(--lh-body);
  color: var(--color-text-secondary);
}


.hp-roothub-hero {
  position: relative;
  z-index: var(--z-sticky);
  isolation: isolate;
  overflow: visible;
  min-height: clamp(520px, 72svh, 700px);
  display: grid;
  place-items: center;
  padding-block: clamp(48px, 8vw, 96px);
  border-bottom: 1px solid var(--color-border-subtle);
  background: #04070c;
}

.hp-roothub-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(72% 62% at 50% 44%, rgba(4, 7, 12, 0.88) 0%, rgba(4, 7, 12, 0.74) 42%, rgba(4, 7, 12, 0.22) 72%, rgba(4, 7, 12, 0.66) 100%),
    linear-gradient(180deg, rgba(4, 7, 12, 0.66) 0%, rgba(4, 7, 12, 0.16) 45%, rgba(4, 7, 12, 0.82) 100%);
  pointer-events: none;
}

.hp-roothub-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hp-roothub-hero__media-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-roothub-hero__media-img--0 {
  inset: 0;
  opacity: 0.72;
}

.hp-roothub-hero__media-img--1,
.hp-roothub-hero__media-img--2 {
  display: none;
}

/* Decorative signal noise that resolves toward the centre (masked away behind
   the headline so the brand statement stays crisp). aria-hidden, locale-neutral
   data tokens — the lab/instrument voice, not literal reviews. */
.hp-roothub-hero__noise {
  position: absolute;
  inset: -4% -2%;
  z-index: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: space-between;
  justify-content: space-between;
  gap: clamp(var(--space-4), 3.5vw, var(--space-8));
  padding: var(--space-6);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.2;
  color: rgba(254, 254, 254, 0.5);
  opacity: 0.28;
  user-select: none;
  -webkit-mask-image: radial-gradient(115% 95% at 50% 42%, transparent 0%, transparent 34%, #000 76%);
  mask-image: radial-gradient(115% 95% at 50% 42%, transparent 0%, transparent 34%, #000 76%);
}

.hp-roothub-hero__noise span:nth-child(4n+1) {
  color: color-mix(in srgb, var(--color-signal-positive) 86%, #fff);
}

.hp-roothub-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
}

.hp-roothub-hero__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.hp-roothub-hero__lockup {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.hp-roothub-hero__lockup .hp-brand-mark--hero {
  width: clamp(34px, 4vw, 46px);
  height: clamp(34px, 4vw, 46px);
}

.hp-roothub-hero__lockup .hp-brand-mark__img {
  width: 100%;
  height: 100%;
}

.hp-roothub-hero__wordmark {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0;
  color: #fff;
}

.hp-roothub-hero__thesis {
  max-width: 24ch;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  letter-spacing: 0;
  text-wrap: balance;
  color: #fff;
}

.hp-roothub-hero__search {
  --hp-roothub-search-height: 56px;
  position: relative;
  z-index: var(--z-dropdown);
  margin-top: var(--space-2);
  width: min(100%, 540px);
  display: flex;
  align-items: stretch;
  gap: var(--space-2);
}

.hp-roothub-hero__search-field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.hp-roothub-hero__search-input {
  width: 100%;
  box-shadow: 0 8px 26px -16px color-mix(in srgb, var(--color-text-primary) 55%, transparent);
}

.hp-roothub-hero__search .ac-dropdown {
  text-align: left;
}

.hp-roothub-hero__search-input .c-input__field,
.hp-roothub-hero__search-submit {
  height: var(--hp-roothub-search-height);
  min-height: var(--hp-roothub-search-height);
}

.hp-roothub-hero__search-submit {
  flex: 0 0 auto;
  align-self: stretch;
  box-sizing: border-box;
  padding-block: 0;
}

.hp-roothub-hero__world {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  color: rgba(254, 254, 254, 0.78);
  border-radius: var(--radius-pill);
  transition: color var(--dur-micro) var(--ease-standard),
              gap var(--dur-micro) var(--ease-standard);
}

.hp-roothub-hero__world:hover {
  color: #fff;
  gap: var(--space-3);
}


.hp-roothub-local {
  padding-block: clamp(52px, 7vw, 92px);
  border-bottom: 1px solid var(--color-border-subtle);
  background:
    linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
}

.hp-roothub-local__head {
  margin-bottom: var(--space-7);
}

.hp-roothub-local__actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-4);
}

.hp-roothub-local__country-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-height: 36px;
  padding-inline: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  color: var(--color-text-secondary);
  transition: color var(--dur-micro) var(--ease-standard),
              gap var(--dur-micro) var(--ease-standard);
}

.hp-roothub-local__country-link:hover {
  gap: var(--space-2);
  color: var(--color-text-primary);
}

.hp-roothub-local__country-link:focus-visible {
  outline: 2px solid var(--color-signal-positive);
  outline-offset: 3px;
  border-radius: var(--radius-pill);
}


.hp-roothub-continents {
  padding-top: clamp(48px, 7vw, 88px);
}

.hp-roothub-continent {
  margin-top: clamp(40px, 5vw, 64px);
}

.hp-roothub-continent__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-text-primary);
}

.hp-roothub-continent__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0;
  color: var(--color-text-primary);
}

.hp-roothub-continent__explore {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  color: var(--color-text-secondary);
  transition: color var(--dur-micro) var(--ease-standard),
              gap var(--dur-micro) var(--ease-standard);
}

.hp-roothub-continent__explore:hover {
  color: var(--color-text-primary);
  gap: var(--space-2);
}

.hp-roothub-continent__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(var(--space-3), 1.5vw, var(--space-5));
  margin: 0;
  padding: 0;
  list-style: none;
}


.hp-roothub-rankcard {
  min-width: 0;
}

.hp-roothub-rankcard__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform var(--dur-panel) var(--ease-decel),
              border-color var(--dur-micro) var(--ease-standard),
              box-shadow var(--dur-panel) var(--ease-decel);
}

.hp-roothub-rankcard__link:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--tier, var(--color-border-strong)) 55%, var(--color-border-subtle));
  box-shadow: 0 22px 40px -26px color-mix(in srgb, var(--color-text-primary) 70%, transparent);
}

.hp-roothub-rankcard__link:focus-visible {
  outline: 2px solid var(--color-signal-positive);
  outline-offset: 2px;
}

.hp-roothub-rankcard__photo {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background: var(--color-surface-muted);
  overflow: hidden;
}

/* Missing-photo cards stay intentional: a tier-tinted field + the spark mark,
   never a blank grey hole. */
.hp-roothub-rankcard__photo.is-noimg {
  background:
    radial-gradient(120% 120% at 70% 12%,
      color-mix(in srgb, var(--tier, var(--color-signal-positive)) 26%, var(--color-surface)) 0%,
      var(--color-surface-muted) 70%);
}

.hp-roothub-rankcard__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-panel) var(--ease-decel);
}

.hp-roothub-rankcard__link:hover .hp-roothub-rankcard__img {
  transform: scale(1.04);
}

.hp-roothub-rankcard__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 7, 12, 0.32) 0%, transparent 34%, transparent 62%, rgba(4, 7, 12, 0.46) 100%);
  pointer-events: none;
}

.hp-roothub-rankcard__photo-fallback {
  color: color-mix(in srgb, var(--tier, var(--color-signal-positive)) 70%, var(--color-text-secondary));
  opacity: 0;
}

.hp-roothub-rankcard__photo.is-noimg .hp-roothub-rankcard__photo-fallback {
  opacity: 0.85;
}

.hp-roothub-rankcard__rank {
  position: absolute;
  top: var(--space-2);
  left: var(--space-3);
  z-index: 1;
  font-family: var(--font-display);
  font-size: 2.05rem;
  font-weight: var(--fw-bold);
  line-height: 1;
  color: #fff;
  text-shadow: 0 1px 10px rgba(4, 7, 12, 0.55);
}

.hp-roothub-rankcard__rank::before {
  content: "#";
  margin-right: 1px;
  font-size: 0.62em;
  vertical-align: 0.18em;
  opacity: 0.8;
}

.hp-roothub-rankcard__score {
  position: absolute;
  right: var(--space-2);
  bottom: var(--space-2);
  z-index: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  padding: 3px var(--space-2);
  font-family: var(--font-mono);
  color: #fff;
  background: color-mix(in srgb, var(--tier, var(--color-signal-positive)) 88%, #000 12%);
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 10px -3px rgba(4, 7, 12, 0.5);
}

.hp-roothub-rankcard__score b {
  font-size: 0.95rem;
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
}

.hp-roothub-rankcard__score i {
  font-style: normal;
  font-size: 0.66rem;
  opacity: 0.85;
}

.hp-roothub-rankcard__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-3) var(--space-4) var(--space-4);
}

.hp-roothub-rankcard__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-card-lg);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  letter-spacing: 0;
  color: var(--color-text-primary);
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hp-roothub-rankcard__loc {
  margin: 0;
  font-size: var(--fs-meta);
  color: var(--color-text-secondary);
}

.hp-roothub-rankcard__tier {
  margin: var(--space-1) 0 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--tier, var(--color-text-secondary));
}

.hp-roothub-rankcard__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tier, var(--color-signal-positive));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tier, var(--color-signal-positive)) 18%, transparent);
}

.hp-roothub-rankcard__count {
  color: var(--color-text-tertiary);
}

.hp-roothub-antarctica {
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding-top: var(--space-4);
  border-top: 1px dashed var(--color-border-subtle);
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  color: var(--color-text-tertiary);
}


.hp-roothub-articles {
  margin-top: clamp(56px, 8vw, 96px);
}

.hp-roothub-articles__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.hp-roothub-articles__item {
  min-width: 0;
}

.hp-roothub-articles__link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  height: 100%;
  padding: var(--space-5);
  text-decoration: none;
  color: var(--color-text-primary);
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-card);
  transition: border-color var(--dur-micro) var(--ease-standard),
              transform var(--dur-panel) var(--ease-decel);
}

.hp-roothub-articles__link:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-3px);
}

.hp-roothub-articles__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 3px var(--space-1);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--color-signal-positive);
}

.hp-roothub-articles__meta span + span {
  padding-left: var(--space-1);
  border-left: 1px solid color-mix(in srgb, var(--color-border-strong) 44%, transparent);
  color: var(--color-text-secondary);
}

.hp-roothub-articles__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hp-roothub-articles__summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: var(--fs-meta);
  line-height: var(--lh-body);
  color: var(--color-text-secondary);
}

.hp-roothub-articles__arrow {
  margin-top: auto;
  padding-top: var(--space-1);
  color: var(--color-text-tertiary);
  transition: color var(--dur-micro) var(--ease-standard);
}

.hp-roothub-articles__link:hover .hp-roothub-articles__arrow {
  color: var(--color-signal-positive);
}

.hp-roothub-articles__all {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  color: var(--color-text-secondary);
  transition: gap var(--dur-micro) var(--ease-standard);
}

.hp-roothub-articles__all:hover {
  color: var(--color-text-primary);
  gap: var(--space-2);
}


.hp-roothub-langs {
  margin-top: clamp(56px, 8vw, 96px);
}

.hp-roothub-langs__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.hp-roothub-langs__link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  text-decoration: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-control);
  transition: border-color var(--dur-micro) var(--ease-standard),
              transform var(--dur-micro) var(--ease-standard);
}

.hp-roothub-langs__link:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-2px);
}

.hp-roothub-langs__link.is-current {
  border-color: var(--color-signal-positive);
  background: color-mix(in srgb, var(--color-signal-positive) 7%, var(--color-surface));
}

.hp-roothub-langs__code {
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  color: var(--color-signal-positive);
}

.hp-roothub-langs__name {
  font-size: var(--fs-meta);
  font-weight: var(--fw-medium);
  color: var(--color-text-primary);
}


@media (max-width: 900px) {
  .hp-roothub-continent__list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .hp-roothub {
    padding-bottom: var(--space-8);
  }
  .hp-roothub .hp-roothub-section-head {
    margin-bottom: var(--space-6);
  }
  .hp-roothub-section-head__title {
    font-size: 1.85rem;
  }
  .hp-roothub-hero {
    min-height: 520px;
    padding-block: var(--space-8);
  }
  .hp-roothub-hero::before {
    background:
      radial-gradient(94% 68% at 50% 42%, rgba(4, 7, 12, 0.9) 0%, rgba(4, 7, 12, 0.76) 52%, rgba(4, 7, 12, 0.54) 100%),
      linear-gradient(180deg, rgba(4, 7, 12, 0.7) 0%, rgba(4, 7, 12, 0.16) 44%, rgba(4, 7, 12, 0.84) 100%);
  }
  .hp-roothub-hero__noise {
    display: none;
  }
  .hp-roothub-hero__inner {
    gap: var(--space-3);
  }
  .hp-roothub-hero__wordmark {
    font-size: 1.5rem;
  }
  .hp-roothub-hero__thesis {
    font-size: 1.5rem;
    max-width: 24ch;
  }
  .hp-roothub-local {
    padding-block: var(--space-8);
  }
  .hp-roothub-local__head {
    margin-bottom: var(--space-6);
  }
  .hp-roothub-continent__list {
    grid-template-columns: 1fr;
  }
  .hp-roothub-continent__head {
    align-items: flex-start;
    margin-bottom: var(--space-4);
  }
  .hp-roothub-continent__name {
    font-size: 1.65rem;
  }
  .hp-roothub-articles__list {
    grid-template-columns: 1fr;
  }
  .hp-roothub-hero__search {
    flex-direction: column;
  }
  .hp-roothub-hero__search-submit {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 380px) {
  .hp-roothub-hero__thesis {
    font-size: 1.375rem;
  }
  .hp-roothub-section-head__title {
    font-size: 1.65rem;
  }
}

@keyframes hp-roothub-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hp-roothub-photo-settle {
  from {
    opacity: 0.5;
    transform: scale(1.035);
  }
  to {
    opacity: 0.72;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hp-roothub-hero__media-img--0 {
    animation: hp-roothub-photo-settle 760ms var(--ease-decel) both;
  }
  .hp-roothub-hero__lockup,
  .hp-roothub-hero__thesis,
  .hp-roothub-hero__search,
  .hp-roothub-hero__world {
    animation: hp-roothub-rise 460ms var(--ease-decel) both;
  }
  .hp-roothub-hero__lockup {
    animation-delay: 60ms;
  }
  .hp-roothub-hero__thesis {
    animation-delay: 110ms;
  }
  .hp-roothub-hero__search {
    animation-delay: 160ms;
  }
  .hp-roothub-hero__world {
    animation-delay: 210ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hp-roothub-hero__media-img--0,
  .hp-roothub-hero__lockup,
  .hp-roothub-hero__thesis,
  .hp-roothub-hero__search,
  .hp-roothub-hero__world {
    animation: none;
  }
  .hp-roothub-rankcard__link,
  .hp-roothub-rankcard__img,
  .hp-roothub-articles__link,
  .hp-roothub-langs__link,
  .hp-roothub-hero__world,
  .hp-roothub-continent__explore {
    transition: none;
  }
  .hp-roothub-rankcard__link:hover,
  .hp-roothub-articles__link:hover,
  .hp-roothub-langs__link:hover {
    transform: none;
  }
  .hp-roothub-rankcard__link:hover .hp-roothub-rankcard__img {
    transform: none;
  }
}

/* static/css/40-pages/zz-contrast-rescue.css */
.hp-contrast-rescue .c-property-card__eyebrow,
.hp-contrast-rescue .c-property-card__name,
.hp-contrast-rescue .hp-hostel__eyebrow,
.hp-contrast-rescue .hp-hostel__name,
.hp-contrast-rescue .hp-score__title,
.hp-contrast-rescue .hp-score__value,
.hp-contrast-rescue .hp-score__level,
.hp-contrast-rescue .hp-score__meta,
.hp-contrast-rescue .c-rank-label,
.hp-contrast-rescue .c-lang-stack,
.hp-contrast-rescue .c-lang-divergence,
.hp-contrast-rescue .c-property-card__foot {
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.88),
    0 0 10px rgba(0, 0, 0, 0.58),
    0 0 22px rgba(0, 0, 0, 0.36);
}

.c-property-card.hp-contrast-rescue .c-property-card__name::before,
.hp-hostel__hero.hp-contrast-rescue .hp-hostel__name::before {
  inset: -0.78em -1.38em;
  background: radial-gradient(
    ellipse at var(--hp-title-halo-x) 55%,
    rgba(var(--hp-halo-rgb), calc(var(--hp-halo-alpha) * 1.22)) 0%,
    rgba(var(--hp-halo-rgb), calc(var(--hp-halo-alpha) * 0.72)) 30%,
    rgba(var(--hp-halo-rgb), calc(var(--hp-halo-alpha) * 0.28)) 62%,
    transparent 100%
  );
}

@container hp-list (min-width: 720px) {
  .c-property-card.hp-contrast-rescue .c-property-card__body::before {
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
      repeating-linear-gradient(135deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 6px),
      linear-gradient(
        to right,
        transparent 0%,
        color-mix(in oklab, #06090f 20%, transparent) 39%,
        color-mix(in oklab, #06090f 40%, transparent) 64%,
        color-mix(in oklab, #06090f 58%, transparent) 100%
      );
    backdrop-filter: blur(2.5px) saturate(122%);
    -webkit-backdrop-filter: blur(2.5px) saturate(122%);
  }

  .c-property-card.hp-contrast-rescue .c-property-card__body::after {
    content: "";
    position: absolute;
    inset: 14% 3% 12% 39%;
    z-index: -1;
    border-radius: var(--radius-card);
    background: radial-gradient(
      ellipse at 66% 45%,
      rgba(0, 0, 0, 0.36) 0%,
      rgba(0, 0, 0, 0.22) 42%,
      transparent 75%
    );
    filter: blur(10px);
    pointer-events: none;
  }
}

@container hp-list (max-width: 719.98px) {
  .c-property-card.hp-contrast-rescue .c-property-card__body {
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
      repeating-linear-gradient(135deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 5px),
      color-mix(in oklab, #0b0e14 29%, transparent);
    backdrop-filter: blur(3.5px) saturate(118%);
    -webkit-backdrop-filter: blur(3.5px) saturate(118%);
  }
}

@media (min-width: 768px) {
  .hp-hostel__hero.hp-contrast-rescue .hp-hostel__hero-info::before {
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
      repeating-linear-gradient(135deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 6px),
      linear-gradient(
        to right,
        transparent 0%,
        color-mix(in oklab, var(--hp-hero-dark) 24%, transparent) 42%,
        color-mix(in oklab, var(--hp-hero-dark) 44%, transparent) 65%,
        color-mix(in oklab, var(--hp-hero-dark) 60%, transparent) 100%
      );
    backdrop-filter: blur(2.5px) saturate(122%);
    -webkit-backdrop-filter: blur(2.5px) saturate(122%);
  }
}

@media (max-width: 767.98px) {
  .hp-hostel__hero.hp-contrast-rescue .hp-hostel__hero-info {
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
      repeating-linear-gradient(135deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 5px),
      color-mix(in oklab, var(--hp-hero-dark) 30%, transparent);
    backdrop-filter: blur(3.5px) saturate(118%);
    -webkit-backdrop-filter: blur(3.5px) saturate(118%);
  }
}

