/* Only the approved adjustments for the archive baseline. */

/* Project slider: visually center the arrow glyphs inside their circular controls. */
.projects-arrows button {
  padding: 0;
  line-height: 1;
}

.projects-arrows button span {
  margin: 0;
}

.projects-arrows button span::before {
  transform: translateX(-1px);
}

.projects-arrows button:first-child span::before {
  transform: translateX(1px) scaleX(-1);
}

/* The explanatory line in the application form should read as neutral white. */
.application-intro p {
  color: #f8f3fae6;
}

/* Modal brand: keep the flower, wordmark and tagline in the same visual scale
   as the logo in the main header. */
.membership-brand {
  gap: 12px;
}

.membership-brand img {
  width: 60px;
  height: 60px;
}

.membership-brand strong {
  letter-spacing: .105em;
  font-size: 31px;
  line-height: 1;
}

.membership-brand span {
  letter-spacing: .11em;
  margin-top: 7px;
  font-size: 10px;
  line-height: 1;
}

/* Mission: more comfortable reading without changing its wording. */
.mission-lead {
  color: #d8d1df;
  line-height: 1.68;
}

/* Preserve a balanced pause before the mission cards after removing the intro audio button. */
.mission-intro {
  margin-bottom: clamp(42px, 4vw, 56px);
}

@media (width <= 600px) {
  .mission-intro {
    margin-bottom: 20px;
  }
}

.mission-copy-card p,
.mission-copy-card details {
  color: #e0d8e5;
  line-height: 1.78;
}

/* Advantages: make the active position explicit alongside the existing dots. */
.advantages-position {
  color: #eee7f1;
  letter-spacing: .08em;
  text-align: center;
  margin: 14px auto 2px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

/* Projects: tighten desktop cards only; current botanicals stay untouched. */
@media (width > 600px) {
  .project-card {
    min-height: 195px;
  }
}

/* Projects: each card becomes a compact, clickable project poster. */
.project-card {
  cursor: pointer;
  background:
    radial-gradient(ellipse 78% 94% at 105% 118%, rgba(237, 27, 132, 0.38) 0%, rgba(147, 13, 100, 0.22) 36%, transparent 71%),
    linear-gradient(138deg, rgba(21, 5, 50, 0.98) 0%, rgba(37, 7, 61, 0.97) 62%, rgba(75, 7, 70, 0.94) 100%);
  border-color: rgba(228, 41, 135, 0.34);
}

/* Projects: sparse, static starlight; each project gets its own arrangement. */
.project-card::before {
  opacity: 1;
  mix-blend-mode: normal;
  background:
    radial-gradient(circle at 88% 76%, rgba(255, 255, 255, 0.9) 0 0.65px, transparent 1.9px),
    radial-gradient(circle at 78% 87%, rgba(255, 255, 255, 0.64) 0 0.48px, transparent 1.5px),
    radial-gradient(circle at 95% 91%, rgba(255, 255, 255, 0.52) 0 0.38px, transparent 1.3px),
    radial-gradient(circle at 84% 95%, rgba(255, 255, 255, 0.34) 0 0.32px, transparent 1.15px);
  background-position: center;
  background-size: 100% 100%;
  -webkit-mask-image: none;
  mask-image: none;
}

.project-card[data-star-variant='1']::before {
  background:
    radial-gradient(circle at 83% 84%, rgba(255, 255, 255, 0.82) 0 0.55px, transparent 1.7px),
    radial-gradient(circle at 94% 72%, rgba(255, 255, 255, 0.52) 0 0.38px, transparent 1.3px),
    radial-gradient(circle at 73% 93%, rgba(255, 255, 255, 0.72) 0 0.46px, transparent 1.45px),
    radial-gradient(circle at 90% 96%, rgba(255, 255, 255, 0.31) 0 0.32px, transparent 1.1px);
}

.project-card[data-star-variant='2']::before {
  background:
    radial-gradient(circle at 91% 80%, rgba(255, 255, 255, 0.9) 0 0.62px, transparent 1.9px),
    radial-gradient(circle at 76% 74%, rgba(255, 255, 255, 0.43) 0 0.34px, transparent 1.2px),
    radial-gradient(circle at 86% 95%, rgba(255, 255, 255, 0.63) 0 0.44px, transparent 1.4px),
    radial-gradient(circle at 97% 91%, rgba(255, 255, 255, 0.28) 0 0.28px, transparent 1px);
}

.project-card[data-star-variant='3']::before {
  background:
    radial-gradient(circle at 80% 78%, rgba(255, 255, 255, 0.84) 0 0.5px, transparent 1.65px),
    radial-gradient(circle at 93% 86%, rgba(255, 255, 255, 0.56) 0 0.4px, transparent 1.3px),
    radial-gradient(circle at 75% 96%, rgba(255, 255, 255, 0.7) 0 0.46px, transparent 1.45px),
    radial-gradient(circle at 98% 75%, rgba(255, 255, 255, 0.29) 0 0.3px, transparent 1.05px);
}

.project-card[data-star-variant='4']::before {
  background:
    radial-gradient(circle at 90% 74%, rgba(255, 255, 255, 0.86) 0 0.58px, transparent 1.8px),
    radial-gradient(circle at 82% 91%, rgba(255, 255, 255, 0.48) 0 0.36px, transparent 1.25px),
    radial-gradient(circle at 96% 94%, rgba(255, 255, 255, 0.66) 0 0.45px, transparent 1.4px),
    radial-gradient(circle at 73% 82%, rgba(255, 255, 255, 0.3) 0 0.3px, transparent 1.05px);
}

.project-card[data-star-variant='5']::before {
  background:
    radial-gradient(circle at 85% 82%, rgba(255, 255, 255, 0.88) 0 0.6px, transparent 1.85px),
    radial-gradient(circle at 95% 77%, rgba(255, 255, 255, 0.46) 0 0.35px, transparent 1.2px),
    radial-gradient(circle at 78% 95%, rgba(255, 255, 255, 0.66) 0 0.45px, transparent 1.4px),
    radial-gradient(circle at 92% 97%, rgba(255, 255, 255, 0.28) 0 0.28px, transparent 1px);
}

.project-card[data-star-variant='6']::before {
  background:
    radial-gradient(circle at 94% 84%, rgba(255, 255, 255, 0.88) 0 0.58px, transparent 1.8px),
    radial-gradient(circle at 79% 80%, rgba(255, 255, 255, 0.48) 0 0.36px, transparent 1.25px),
    radial-gradient(circle at 86% 96%, rgba(255, 255, 255, 0.68) 0 0.46px, transparent 1.45px),
    radial-gradient(circle at 99% 74%, rgba(255, 255, 255, 0.3) 0 0.3px, transparent 1.05px);
}

.project-card:hover,
.project-card:focus-visible {
  border-color: rgba(255, 61, 155, 0.72);
  box-shadow: 0 18px 42px rgba(84, 1, 65, 0.38);
  outline: none;
}

.project-card .project-action {
  display: none;
}

.project-card h3 {
  max-width: 31ch;
}

/* The eye glint follows the finished hair shimmer, then rests until the next cycle. */
.portrait-eye-glint {
  filter: drop-shadow(0 0 5px #fff) drop-shadow(0 0 12px #a8d4ff) drop-shadow(0 0 20px rgba(220, 188, 255, 0.74));
  background:
    radial-gradient(circle at 20.45% 22.1%, #fff 0 0.25%, #d9f0ff 0.36%, #afcbff 0.5%, transparent 0.86%),
    radial-gradient(circle at 33.95% 21.2%, #fff 0 0.25%, #f0e2ff 0.36%, #c69bff 0.5%, transparent 0.86%);
  animation-name: portrait-eye-glint-after-hair;
}

@keyframes portrait-eye-glint-after-hair {
  0%, 2%, 15%, 100% { opacity: 0; }
  4% { opacity: 0.64; }
  6% { opacity: 1; }
  8% { opacity: 0.48; }
  10% { opacity: 0.96; }
  12% { opacity: 0.58; }
}

@media (width <= 600px) {
  .project-card {
    background:
      radial-gradient(ellipse 80% 90% at 108% 116%, rgba(237, 27, 132, 0.32) 0%, rgba(147, 13, 100, 0.18) 38%, transparent 73%),
      linear-gradient(138deg, rgba(21, 5, 50, 0.98) 0%, rgba(37, 7, 61, 0.97) 68%, rgba(75, 7, 70, 0.94) 100%);
  }

  .project-card::before {
    opacity: 1;
    background-position: center;
    background-size: 100% 100%;
  }
}

/* Footer: the address is intentionally omitted; keep the remaining details balanced. */
.site-footer address {
  display: none;
}

.site-footer-inner {
  grid-template-columns: 1fr auto auto auto;
  gap: clamp(22px, 3.7vw, 52px);
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  line-height: 1.65;
}

.footer-contacts a {
  color: #dfd9e3;
}

@media (width <= 600px) {
  .site-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    padding-block: 12px;
  }

  .site-footer-inner .company-details {
    grid-column: 1 / -1;
  }

  .site-footer-inner .general-partners {
    margin-top: 0;
    padding-top: 7px;
  }
}

/* The hero button opens a choice between signing in and joining. */
.hero-actions .button--hero {
  width: min(100%, 300px);
  min-height: 56px;
  gap: 10px;
  font-size: 14px;
  line-height: 1.25;
}

.hero-actions .hero-login-emphasis {
  font-weight: 700;
}

@media (width <= 600px) {
  .hero-actions .button--hero {
    min-height: 60px;
    padding-inline: 16px;
    font-size: clamp(13px, 4vw, 15px);
    text-align: left;
    white-space: normal;
  }
}

/* Compact, readable groups in the mobile footer. */
@media (width <= 600px) {
  /* Keep the language switcher and burger identical before and after scrolling. */
  .language-selector,
  .site-header.is-scrolled .language-selector,
  .menu-toggle,
  .site-header.is-scrolled .menu-toggle {
    box-sizing: border-box;
    flex: 0 0 40px;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }

  .site-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 10px 18px;
    min-height: 0;
    padding-block: 14px;
    font-size: 11px;
  }

  .site-footer-inner .copyright {
    grid-column: 1 / -1;
    padding-bottom: 5px;
  }

  .site-footer-inner .company-details { grid-column: 1; }
  .site-footer-inner .footer-contacts { grid-column: 2; }

  .site-footer-inner .general-partners {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    gap: 0 12px;
    margin-top: 2px;
    padding-top: 8px;
    border-top: 1px solid #ffffff14;
  }

  .site-footer-inner .general-partners > span { grid-column: 1 / -1; }
  .site-footer-inner .general-partners strong { white-space: nowrap; }

  .projects-arrows button { place-items: center; }

  .projects-arrows button span {
    width: 22px;
    height: 22px;
  }

  .projects-arrows button span::before {
    inset: 4px 0;
    transform: translateX(-1px);
  }

  .projects-arrows button:first-child span::before {
    transform: translateX(1px) scaleX(-1);
  }

  .advantages-position {
    margin-top: 10px;
    font-size: 11px;
  }

  .membership-brand {
    gap: 10px;
  }

  .membership-brand img {
    width: 48px;
    height: 48px;
  }

  .membership-brand strong {
    font-size: 23px;
  }

  .membership-brand span {
    margin-top: 6px;
    font-size: 7.5px;
  }
}

/* Projects: number as a refined series mark, not a list label. */
.project-card {
  grid-template-columns: 1fr;
  padding: 30px 34px;
}

.project-card::before {
  display: none;
}

.project-card > div {
  position: relative;
  z-index: 1;
}

.project-card h3 {
  max-width: calc(100% - 72px);
}

.project-number {
  z-index: 2;
  color: rgba(255, 255, 255, 0.94);
  letter-spacing: 0;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.43);
  border-radius: 50%;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0;
  padding: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  display: grid;
  position: absolute;
  right: 26px;
  bottom: 24px;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.project-card:hover .project-number,
.project-card:focus-visible .project-number {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.66);
  transform: scale(1.025);
}

@media (width <= 600px) {
  .project-card {
    grid-template-columns: 1fr;
    min-height: 220px;
    padding: 25px 24px;
  }

  .project-card h3 {
    max-width: calc(100% - 64px);
  }

  .project-number {
    width: 52px;
    height: 52px;
    right: 20px;
    bottom: 20px;
    font-size: 16px;
  }

  /* A horizontal project showcase: the next project quietly announces itself at the edge. */
  .projects-slider {
    padding-right: 0;
  }

  .projects-slide:not(.is-single) {
    grid-template-columns: minmax(0, 78%) minmax(0, 78%);
    gap: 14px;
  }

  .projects-slide:not(.is-single) .project-card:first-child {
    z-index: 1;
    transform: scale(1);
  }

  .projects-slide:not(.is-single) .project-card:nth-child(2) {
    opacity: 0.72;
    transform: scale(0.94);
    transform-origin: left center;
  }

  .projects-slide:not(.is-single) .project-card:nth-child(2) .project-number {
    opacity: 0.66;
  }
}
