.community-page {
  --community-blue: #cfe7f0;
  --community-gold: #d8a13a;
  overflow-x: hidden;
  background: #030303;
}

.community-page main {
  overflow: hidden;
}

.community-page section {
  scroll-margin-top: 72px;
}

.community-hero {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 100svh;
  padding: clamp(138px, 17vh, 210px) clamp(24px, 6vw, 88px) clamp(54px, 8vh, 92px);
  isolation: isolate;
}

.community-hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(3, 3, 3, 0.97) 0%, rgba(3, 3, 3, 0.86) 48%, rgba(3, 3, 3, 0.42) 100%),
    linear-gradient(to top, rgba(3, 3, 3, 0.9) 0%, rgba(3, 3, 3, 0.18) 58%, rgba(3, 3, 3, 0.54) 100%),
    url("assets/community-mountain-v1.webp") center 42% / cover no-repeat;
}

.community-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 78% 32%, rgba(207, 231, 240, 0.13), transparent 30%),
    radial-gradient(circle at 56% 82%, rgba(216, 161, 58, 0.11), transparent 28%);
  opacity: 0.8;
}

.community-hero-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(to bottom, transparent 5%, #000 42%, transparent 94%);
}

.community-hero-copy {
  width: min(1120px, 90vw);
}

.community-hero h1 {
  max-width: 1120px;
  margin-bottom: 26px;
  font-size: clamp(48px, 5.55vw, 86px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.community-hero-copy > p:not(.eyebrow) {
  max-width: 720px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(17px, 1.7vw, 23px);
}

.community-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.community-hero-actions .button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
}

.community-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: 100%;
  margin-top: clamp(64px, 11vh, 130px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.12);
}

.community-principles article {
  min-height: 176px;
  padding: 24px;
  background: rgba(3, 3, 3, 0.88);
  transition: background 220ms ease, transform 220ms ease;
}

.community-principles article:hover {
  background: linear-gradient(145deg, rgba(216, 161, 58, 0.18), rgba(3, 3, 3, 0.94));
  transform: translateY(-3px);
}

.community-principles span,
.partner-card > span,
.athlete-value-grid span {
  display: block;
  margin-bottom: 24px;
  color: var(--community-gold);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.12em;
}

.community-principles strong {
  display: block;
  margin-bottom: 8px;
  font-size: 21px;
}

.community-principles p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

.community-about,
.community-partners,
.community-athletes,
.community-join {
  padding: clamp(88px, 11vw, 168px) clamp(24px, 6vw, 88px);
}

.community-section-heading {
  width: min(1080px, 100%);
  margin-bottom: clamp(46px, 7vw, 86px);
}

.community-section-heading h2,
.join-heading h2 {
  max-width: 1020px;
  font-size: clamp(42px, 6vw, 84px);
  letter-spacing: -0.035em;
}

.community-section-heading > p:not(.eyebrow) {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 18px;
}

.community-about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(48px, 8vw, 132px);
  align-items: start;
}

.community-about-copy {
  max-width: 760px;
}

.community-about-copy p:first-child {
  color: #171717;
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 650;
  line-height: 1.65;
}

.community-about-copy p:last-child {
  color: #636363;
  font-size: 17px;
}

.community-facts {
  margin: 0;
  border-top: 1px solid rgba(20, 20, 20, 0.14);
}

.community-facts div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 22px;
  padding: 21px 0;
  border-bottom: 1px solid rgba(20, 20, 20, 0.14);
}

.community-facts dt {
  color: #8a8a8a;
  font-size: 13px;
}

.community-facts dd {
  margin: 0;
  font-weight: 680;
}

.community-partners {
  background:
    radial-gradient(circle at 100% 0, rgba(207, 231, 240, 0.12), transparent 28%),
    #030303 !important;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1320px;
}

.partner-card {
  position: relative;
  min-height: 360px;
  padding: clamp(24px, 3vw, 40px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018));
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease;
}

.partner-card::after {
  position: absolute;
  right: -14%;
  bottom: -38%;
  width: 70%;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(207, 231, 240, 0.13);
  border-radius: 50%;
}

.partner-card:hover {
  border-color: rgba(216, 161, 58, 0.58);
  background: linear-gradient(150deg, rgba(216, 161, 58, 0.17), rgba(255, 255, 255, 0.025));
  transform: translateY(-5px);
}

.partner-card h3 {
  max-width: 360px;
  margin: 78px 0 18px;
  font-size: clamp(27px, 2.5vw, 38px);
  line-height: 1.14;
}

.partner-card p:last-child {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.58);
}

.partner-status {
  position: absolute;
  top: 30px;
  right: 30px;
  margin: 0;
  padding: 6px 10px;
  color: var(--community-blue);
  border: 1px solid rgba(207, 231, 240, 0.28);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
}

.community-text-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 36px;
  padding-bottom: 5px;
  color: var(--community-gold);
  border-bottom: 1px solid currentColor;
  font-weight: 760;
}

.community-athletes {
  background:
    radial-gradient(circle at 8% 18%, rgba(207, 231, 240, 0.44), transparent 24%),
    #f7f7f4 !important;
}

.athlete-heading {
  display: flex;
  justify-content: space-between;
  gap: 44px;
  width: 100%;
  max-width: 1320px;
  align-items: end;
}

.athlete-database-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 1320px;
  margin-top: 30px;
  padding: 18px 22px;
  color: #fff;
  background: #080808;
  border: 1px solid rgba(20, 20, 20, 0.16);
}

.athlete-database-bar span {
  color: var(--community-gold);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.18em;
}

.athlete-database-bar strong {
  font-size: 15px;
  letter-spacing: 0.05em;
}

.athlete-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1320px;
}

.athlete-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(20, 20, 20, 0.12);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.athlete-card:hover {
  z-index: 2;
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(20, 20, 20, 0.15);
}

.athlete-portrait {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  min-height: 390px;
  padding: 24px;
  overflow: hidden;
  isolation: isolate;
}

.athlete-portrait i {
  position: absolute;
  right: 50%;
  bottom: -2%;
  z-index: -1;
  width: 64%;
  height: 82%;
  opacity: 0.86;
  transform: translateX(50%);
}

.athlete-portrait i::before {
  position: absolute;
  top: 0;
  left: 35%;
  width: 30%;
  aspect-ratio: 1;
  content: "";
  background: #151515;
  border-radius: 50%;
}

.athlete-portrait i::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 76%;
  content: "";
  background: #141414;
  clip-path: polygon(50% 0, 72% 12%, 100% 46%, 78% 100%, 22% 100%, 0 46%, 28% 12%);
  border-radius: 44% 44% 8% 8%;
}

.athlete-portrait::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(135deg, transparent 48%, rgba(255, 255, 255, 0.26) 49% 50%, transparent 51%),
    linear-gradient(45deg, transparent 54%, rgba(255, 255, 255, 0.12) 55% 56%, transparent 57%);
}

.athlete-portrait-one { background: linear-gradient(150deg, #d7e9ef, #7895a0); }
.athlete-portrait-two { background: linear-gradient(150deg, #d8ba82, #70522a); }
.athlete-portrait-three { background: linear-gradient(150deg, #bfc6c8, #485052); }

.athlete-portrait > span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 58px;
  font-weight: 850;
  line-height: 0.8;
}

.athlete-portrait em {
  padding: 7px 10px;
  color: #fff;
  background: rgba(3, 3, 3, 0.76);
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 740;
}

.athlete-card-copy {
  padding: 26px;
}

.athlete-category {
  margin-bottom: 8px;
  color: #96702d;
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.athlete-card h3 {
  margin-bottom: 24px;
  font-size: 28px;
}

.athlete-card dl {
  margin: 0;
}

.athlete-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-top: 1px solid rgba(20, 20, 20, 0.1);
  font-size: 13px;
}

.athlete-card dt {
  color: #777;
}

.athlete-card dd {
  margin: 0;
  text-align: right;
  font-weight: 650;
}

.athlete-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1320px;
  margin-top: 72px;
  border-top: 1px solid rgba(20, 20, 20, 0.16);
}

.athlete-value-grid article {
  padding: 30px 32px 0 0;
}

.athlete-value-grid article + article {
  padding-left: 32px;
  border-left: 1px solid rgba(20, 20, 20, 0.16);
}

.athlete-value-grid h3 {
  font-size: 22px;
}

.athlete-value-grid p {
  color: #666;
}

.community-join {
  position: relative;
  min-height: 100svh;
  background:
    radial-gradient(circle at 78% 22%, rgba(216, 161, 58, 0.16), transparent 25%),
    radial-gradient(circle at 12% 88%, rgba(207, 231, 240, 0.12), transparent 26%),
    #030303 !important;
}

.join-heading {
  max-width: 1000px;
  margin-bottom: clamp(50px, 8vw, 92px);
}

.join-heading > p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 18px;
}

.join-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  gap: clamp(38px, 7vw, 108px);
  align-items: start;
}

.application-list {
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.application-list li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.application-list li > span {
  color: var(--community-gold);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.12em;
}

.application-list strong {
  display: block;
  margin-bottom: 6px;
  font-size: 19px;
}

.application-list p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.56);
}

.application-card {
  position: sticky;
  top: 98px;
  padding: clamp(28px, 4vw, 48px);
  color: #151515;
  background:
    radial-gradient(circle at 100% 0, rgba(207, 231, 240, 0.88), transparent 34%),
    #f7f7f4;
}

.application-card-label {
  margin-bottom: 10px;
  color: #8a6a31;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.application-email {
  display: block;
  margin-bottom: 24px;
  overflow-wrap: anywhere;
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 800;
}

.application-card > p:not(.application-card-label) {
  color: #5f5f5f;
}

.application-card .button {
  width: 100%;
  margin: 12px 0 18px;
}

.application-card small {
  display: block;
  color: #777;
  line-height: 1.6;
}

.community-page .site-footer {
  color: #777;
  background: #f7f7f4;
}

.community-page.language-en .community-hero h1,
.community-page.language-en .community-section-heading h2,
.community-page.language-en .join-heading h2 {
  max-width: 1120px;
  font-size: clamp(44px, 5.6vw, 88px);
  line-height: 1.02;
}

.community-page.language-en .community-hero h1 {
  font-size: clamp(42px, 5vw, 78px);
}

.community-page.language-en .partner-card h3 {
  font-size: clamp(25px, 2.15vw, 34px);
}

@media (max-width: 980px) {
  .community-hero-copy {
    width: 100%;
  }

  .community-about-layout,
  .join-layout {
    grid-template-columns: 1fr;
  }

  .partner-grid,
  .athlete-grid {
    grid-template-columns: 1fr 1fr;
  }

  .partner-card:last-child,
  .athlete-card:last-child {
    grid-column: 1 / -1;
  }

  .application-card {
    position: static;
  }
}

@media (max-width: 680px) {
  .community-page section {
    scroll-margin-top: 96px;
  }

  .community-hero {
    min-height: auto;
    padding: 142px 18px 58px;
  }

  .community-hero::after {
    inset: 0;
    width: auto;
    opacity: 0.72;
  }

  .community-hero-lines {
    background-size: 52px 52px;
  }

  .community-hero h1,
  .community-page.language-en .community-hero h1 {
    margin-bottom: 22px;
    font-size: clamp(39px, 11.7vw, 52px);
    line-height: 1.04;
  }

  .community-page.language-en .community-hero h1 {
    font-size: clamp(34px, 9.2vw, 42px);
  }

  .community-hero h1 br {
    display: none;
  }

  .community-hero-copy > p:not(.eyebrow) {
    font-size: 17px;
  }

  .community-hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .community-hero-actions .button {
    min-width: 0;
    padding: 0 12px;
    text-align: center;
  }

  .community-principles {
    grid-template-columns: 1fr;
    margin-top: 72px;
  }

  .community-principles article {
    min-height: 148px;
    padding: 22px;
  }

  .community-about,
  .community-partners,
  .community-athletes,
  .community-join {
    padding: 72px 18px;
  }

  .community-section-heading,
  .join-heading {
    margin-bottom: 42px;
  }

  .community-section-heading h2,
  .community-page.language-en .community-section-heading h2,
  .join-heading h2,
  .community-page.language-en .join-heading h2 {
    font-size: clamp(38px, 10.5vw, 48px);
    line-height: 1.06;
  }

  .community-section-heading h2 br,
  .join-heading h2 br {
    display: none;
  }

  .community-about-layout {
    gap: 36px;
  }

  .community-about-copy p:first-child {
    font-size: 20px;
  }

  .community-facts div {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
  }

  .partner-grid,
  .athlete-grid {
    grid-template-columns: 1fr;
  }

  .partner-card:last-child,
  .athlete-card:last-child {
    grid-column: auto;
  }

  .partner-card {
    min-height: 300px;
  }

  .partner-card h3 {
    margin-top: 64px;
  }

  .athlete-heading {
    display: block;
  }

  .athlete-database-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-top: 22px;
    padding: 16px 18px;
  }

  .athlete-portrait {
    min-height: 350px;
  }

  .athlete-value-grid {
    grid-template-columns: 1fr;
    margin-top: 50px;
  }

  .athlete-value-grid article,
  .athlete-value-grid article + article {
    padding: 26px 0;
    border-bottom: 1px solid rgba(20, 20, 20, 0.16);
    border-left: 0;
  }

  .join-layout {
    gap: 42px;
  }

  .application-list li {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
  }

  .application-card {
    padding: 26px 22px;
  }

  .community-page.language-en .header-actions .nav-links {
    font-size: 8.5px;
    letter-spacing: -0.015em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .community-page .partner-card,
  .community-page .athlete-card,
  .community-page .community-principles article {
    transition: none;
  }
}

/* Community environment: wind, distance and collective momentum. */
.community-page {
  background-color: #03070c;
  background-image:
    linear-gradient(180deg, rgba(172, 197, 214, 0.42), rgba(74, 101, 119, 0.26)),
    url("assets/community-wind-ridge-background-20260813-v1.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

.community-page .community-hero::before {
  background:
    linear-gradient(90deg, rgba(3, 7, 12, 0.56) 0%, rgba(3, 7, 12, 0.18) 44%, transparent 72%),
    linear-gradient(to top, rgba(3, 7, 12, 0.24) 0%, transparent 48%);
}

.community-page .community-hero {
  background-color: transparent !important;
}

.community-page .community-partners,
.community-page .community-join {
  background-color: rgba(3, 7, 12, 0.3) !important;
  background-image:
    radial-gradient(circle at 100% 0, rgba(207, 231, 240, 0.1), transparent 28%),
    linear-gradient(145deg, rgba(3, 7, 12, 0.42), rgba(3, 7, 12, 0.16));
}

.community-page .community-about,
.community-page .community-athletes {
  background-color: rgba(247, 247, 244, 0.72) !important;
}

.community-page .site-footer {
  background-color: rgba(247, 247, 244, 0.9) !important;
}

@media (max-width: 680px) {
  .community-page {
    position: relative;
    isolation: isolate;
    background-color: transparent;
    background-image: none;
  }

  .community-page::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    pointer-events: none;
    background-color: #17232d;
    background-image:
      linear-gradient(180deg, rgba(172, 197, 214, 0.42), rgba(74, 101, 119, 0.26)),
      url("assets/community-wind-ridge-background-20260813-v1.webp");
    background-repeat: no-repeat;
    background-position: 64% center;
    background-size: cover;
  }

  .community-page .community-about,
  .community-page .community-athletes {
    background-color: rgba(247, 247, 244, 0.78) !important;
  }
}
