
:root {
  --bg: #0b0f14;
  --surface: rgba(0, 0, 0, 0.2);
  --surface-strong: rgba(0, 0, 0, 0.28);
  --surface-soft: rgba(255, 255, 255, 0.06);
  --text: rgba(255, 255, 255, 0.92);
  --text-soft: rgba(255, 255, 255, 0.88);
  --text-muted: rgba(255, 255, 255, 0.82);
  --border: rgba(255, 255, 255, 0.14);
  --border-soft: rgba(255, 255, 255, 0.12);
  --nav-bg: rgba(255, 255, 255, 0.08);
  --nav-border: rgba(255, 255, 255, 0.14);
  --accent: #5bbcff;
  --accent-border: rgba(91, 188, 255, 0.55);
  --accent-border-strong: rgba(91, 188, 255, 0.85);
  --accent-bg: rgba(91, 188, 255, 0.18);
  --shadow: 0 16px 44px rgba(0, 0, 0, 0.3);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.22);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --container: 1100px;
  --container-pad: 16px;
  --nav-height: 72px;
  --section-space: 88px;
  --bg-dim: 0.12;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  padding-top: var(--nav-height);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
}

p,
h1,
h2,
h3,
h4,
ol,
ul {
  margin: 0;
}

body > section:not(.hero) {
  padding-block: var(--section-space);
}

body > section.hero {
  padding-block: 0;
}

.background {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: center / cover no-repeat url("../img/background1.png");
  overflow: hidden;
}

.background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--bg-dim));
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 9999;
  transform: translateY(0);
  transition: transform 0.22s ease;
}

.nav--hidden {
  transform: translateY(-110%);
}

.nav__bar {
  width: 100%;
  padding: 10px 42px;
  border-bottom: 1px solid var(--nav-border);
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 52px;
}

.nav__center,
.nav__right {
  display: flex;
  align-items: center;
}

.nav__center {
  grid-column: 2;
  justify-self: center;
  gap: 18px;
}

.nav__right {
  grid-column: 3;
  justify-self: end;
  gap: 10px;
  margin-right: 8px;
}

.nav__link,
.nav__btn,
.join__btn,
.support__btn,
.build-contact__btn {
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.nav__link {
  padding: 10px 6px;
  font-weight: 650;
  letter-spacing: 0.2px;
  line-height: 1;
  white-space: nowrap;
}

.nav__link:hover {
  color: rgba(255, 255, 255, 0.98);
}

.nav__link:focus-visible,
.nav__btn:focus-visible,
.join__btn:focus-visible,
.support__btn:focus-visible,
.build-contact__btn:focus-visible,
.timeline__toggle:focus-visible,
.tl-btn:focus-visible,
.team-cat__nav:focus-visible,
.scrolltop:focus-visible {
  outline: 2px solid var(--accent-border);
  outline-offset: 4px;
}

.nav__btn,
.join__btn,
.support__btn,
.build-contact__btn,
.tl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, rgba(91, 188, 255, 0.16), rgba(0, 0, 0, 0.22));
  color: var(--text);
  font-weight: 850;
  letter-spacing: 0.2px;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
  -webkit-tap-highlight-color: transparent;
}

.nav__btn:hover,
.join__btn:hover,
.support__btn:hover,
.build-contact__btn:hover,
.tl-btn:hover {
  background: var(--accent-bg);
  transform: translateY(-1px);
  border-color: var(--accent-border-strong);
}

.nav__btn {
  min-width: 160px;
  padding: 10px 14px;
}

.nav__toggle {
  display: none;
  grid-column: 1;
  justify-self: start;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--nav-border);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 16px;
}

.burger span {
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.85);
}

.nav__menu {
  display: none;
  overflow: hidden;
  max-height: 0;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--nav-border);
  transition: max-height 0.22s ease;
}

.nav__menu.is-open {
  max-height: 520px;
}

.nav__stack {
  display: grid;
  gap: 8px;
  padding-bottom: 10px;
}

.nav__stack a {
  display: block;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.18);
  font-weight: 650;
}

.nav__stack a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav__stack .nav__btn {
  width: 100%;
  min-width: 0;
  box-shadow: none;
}

.nav__gap {
  height: 6px;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  text-align: center;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero::before {
  z-index: 0;
  opacity: 0.65;
  filter: blur(8px);
  transform: scale(1.06);
}

.hero::after {
  z-index: 1;
  background: rgba(0, 0, 0, 0.25);
}

.hero .content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
}

.title-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
  padding: 28px 56px;
}

.title-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 6px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.55) 38%, rgba(0, 0, 0, 0.35) 62%, rgba(0, 0, 0, 0) 100%);
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
}

.hero p {
  font-size: clamp(1.2rem, 3vw, 2.2rem);
  font-weight: 600;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}

.hero-flip {
  position: relative;
  display: block;
  width: 100%;
  height: 1.35em;
  margin-top: 10px;
  line-height: 1.35;
  text-align: center;
  perspective: 900px;
}

.hero-flip__current,
.hero-flip__next {
  position: absolute;
  top: 0;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}

.hero-flip__current {
  opacity: 1;
  transform: translateX(-50%) rotateX(0deg);
}

.hero-flip__next {
  opacity: 0;
  transform: translateX(-50%) rotateX(-88deg);
}

.hero-flip.is-flipping .hero-flip__current {
  opacity: 0;
  transform: translateX(-50%) rotateX(88deg);
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.55s ease;
}

.hero-flip.is-flipping .hero-flip__next {
  opacity: 1;
  transform: translateX(-50%) rotateX(0deg);
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.55s ease;
}

.timeline,
.about__inner,
.members__inner,
.join__inner,
.team__inner,
.support__inner,
.build__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--container-pad);
}

.timeline__header,
.members__header,
.join__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.about__header,
.team__header,
.support__header {
  display: grid;
  gap: 10px;
}

.timeline__headline,
.about__title,
.members__title,
.join__title,
.team__title,
.support__title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
}

.timeline__subline,
.about__lead,
.members__lead,
.join__lead,
.team__lead,
.support__lead,
.about__p,
.build__contact,
.join__text,
.support__p,
.team-apply-card__text,
.timeline__summary,
.timeline__details {
  color: var(--text-soft);
}

.timeline__subline,
.about__lead,
.members__lead,
.join__lead,
.team__lead,
.support__lead,
.about__p,
.join__text,
.support__p,
.team-apply-card__text,
.timeline__summary,
.timeline__details {
  font-weight: 650;
  line-height: 1.65;
}

.timeline__header {
  margin-bottom: 26px;
}

.timeline__subline {
  max-width: 64ch;
  margin-top: 8px;
}

.timeline__actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.tl-btn {
  appearance: none;
  padding: 10px 14px;
  cursor: pointer;
}

.timeline__list {
  --tl-gap: 18px;
  position: relative;
  display: grid;
  gap: var(--tl-gap);
  padding: 0;
  list-style: none;
}

.timeline__list::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 0;
  width: 2px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0, rgba(255, 255, 255, 0.85) 10px, rgba(255, 255, 255, 0) 10px, rgba(255, 255, 255, 0) 18px);
}

.timeline__item {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  min-height: 110px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.timeline__item.is-visible {
  opacity: 1;
  transform: none;
}

.timeline__rail {
  display: none;
}

.timeline__dot {
  position: relative;
  z-index: 2;
  grid-column: 2;
  align-self: start;
  justify-self: center;
  width: 14px;
  height: 14px;
  margin-top: 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(91, 188, 255, 0.12), 0 12px 26px rgba(0, 0, 0, 0.35);
}

.timeline__item[data-current="true"] .timeline__dot {
  box-shadow: 0 0 0 5px rgba(91, 188, 255, 0.16), 0 0 22px rgba(91, 188, 255, 0.35), 0 12px 26px rgba(0, 0, 0, 0.35);
}

.timeline__dot::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.timeline__card,
.about__text,
.join__card,
.team-cat,
.team-apply-card,
.build-contact {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.timeline__card {
  align-self: start;
  padding: 16px 16px 14px;
}

.timeline__item:nth-child(odd) .timeline__card {
  grid-column: 1;
  justify-self: end;
}

.timeline__item:nth-child(even) .timeline__card {
  grid-column: 3;
  justify-self: start;
}

.timeline__date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.timeline__title {
  margin-top: 10px;
  margin-bottom: 6px;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.timeline__toggle {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.timeline__toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
  border-color: var(--accent-border);
}

.timeline__details {
  overflow: hidden;
  max-height: 0;
  margin-top: 0;
  padding-top: 0;
  border-top: 0 solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease, margin-top 0.25s ease, padding-top 0.25s ease, border-top-width 0.25s ease;
}

.timeline__details.is-open {
  margin-top: 12px;
  padding-top: 12px;
  border-top-width: 1px;
  opacity: 1;
  transform: none;
}

.timeline__details ul {
  padding-left: 18px;
}

.timeline__details li + li {
  margin-top: 6px;
}

.about {
  position: relative;
  overflow: hidden;
}

.about__header,
.team__header,
.support__header,
.members__header,
.join__header {
  margin-bottom: 22px;
}

.about__lead,
.members__lead,
.join__lead,
.team__lead,
.support__lead {
  max-width: 90ch;
}

.about__grid {
  display: grid;
  grid-template-columns: 1.55fr 0.85fr;
  gap: 22px;
  align-items: stretch;
}

.about__text {
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.about__p + .about__p {
  margin-top: 12px;
}

.about__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.about__fact {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.18);
}

.about__label {
  font-weight: 750;
  opacity: 0.85;
}

.about__value {
  font-size: 1.05rem;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.about__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about__img {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-soft), rgba(0, 0, 0, 0.22));
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.about__img--hero {
  grid-column: 1 / -1;
  min-height: 260px;
}

.about__img::after {
  content: "Bildplatzhalter";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 850;
  letter-spacing: 0.2px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
}

.members__marquee {
  position: relative;
  margin-top: 14px;
}

.members__viewport,
.team-cat__viewport {
  border-radius: 16px;
}

.members__viewport {
  overflow: hidden;
}

.members__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 56px) / 5);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 2px;
  will-change: transform;
}

.members__status {
  margin-top: 10px;
  text-align: right;
  font-size: 0.95rem;
  font-style: italic;
  opacity: 0.8;
}

.member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-soft), rgba(0, 0, 0, 0.22));
  box-shadow: var(--shadow);
  text-align: center;
  scroll-snap-align: start;
}

.member-card--member {
  background: var(--surface);
}

.member-card__skin {
  width: 92px;
  height: 92px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
  object-fit: cover;
  image-rendering: pixelated;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

.members .member-card {
  padding: 18px;
  border-radius: 20px;
}

.members .member-card__skin {
  width: 102px;
  height: 102px;
  border-radius: 20px;
}

.member-card__meta {
  display: grid;
  gap: 7px;
  width: 100%;
  min-width: 0;
  margin-top: 10px;
}

.member-card__ign {
  font-size: 1.15rem;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.member-card__rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid rgba(91, 188, 255, 0.45);
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.18);
  font-weight: 950;
  letter-spacing: 0.2px;
}

.member-card__since {
  font-weight: 750;
  opacity: 0.86;
}

.join {
  position: relative;
  overflow: hidden;
}

.join > * {
  position: relative;
  z-index: 2;
}

.join__card {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
  align-items: center;
  padding: 22px;
}

.join__cta {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.join__btn,
.support__btn {
  min-height: 52px;
  padding: 14px 18px;
  font-weight: 950;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28), 0 0 0 2px rgba(91, 188, 255, 0.08);
}

.join__btn {
  width: 100%;
  max-width: 320px;
}

.join__hint {
  font-size: 0.95rem;
  font-weight: 750;
  text-align: right;
  opacity: 0.85;
}

.team {
  position: relative;
  overflow: hidden;
}

.team__categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.team-cat {
  min-width: 0;
  padding: 14px;
}

.team-cat__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.team-cat__name {
  font-size: 1.05rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.95;
}

.team-cat__count {
  font-weight: 850;
  letter-spacing: 0.2px;
  white-space: nowrap;
  opacity: 0.85;
}

.team-cat__slider {
  position: relative;
}

.team-cat__viewport {
  --cards-per-view: 2;
  --card-gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.team-cat__viewport::-webkit-scrollbar {
  display: none;
}

.team-cat__track {
  display: flex;
  gap: var(--card-gap);
  padding: 2px;
  touch-action: pan-x;
}

.team-cat__track .member-card {
  flex: 0 0 calc((100% - ((var(--cards-per-view) - 1) * var(--card-gap))) / var(--cards-per-view));
}

.team-cat__track .member-card:only-child {
  flex-basis: 100% !important;
  width: 100%;
}

.team-cat__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  cursor: pointer;
  transform: translateY(-50%);
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.team-cat__nav:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-border);
  transform: translateY(calc(-50% - 1px));
}

.team-cat__nav[disabled] {
  cursor: not-allowed;
  opacity: 0.35;
}

.team-cat__nav--prev {
  left: 8px;
}

.team-cat__nav--next {
  right: 8px;
}

.team-cat__nav svg {
  width: 18px;
  height: 18px;
}

.team__apply {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.team__subtitle,
.build__subtitle {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.92;
}

.team-apply-card {
  width: 100%;
  padding: 16px;
}

.team-apply-card__actions,
.build-contact__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.team-apply-card__actions {
  margin-top: 12px;
}

.support {
  position: relative;
  overflow: hidden;
}

.support__text {
  display: grid;
  gap: 10px;
  max-width: 85ch;
  margin-top: 18px;
}

.support__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.support__btn--ghost {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.18);
}

.support__btn--ghost:hover {
  border-color: var(--accent-border);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.build__contact {
  display: grid;
  gap: 12px;
}

.build-contact {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.build-contact__head {
  width: 74px;
  height: 74px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.18);
}

.build-contact__head img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.build-contact__meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.build-contact__name,
.build-contact__rank {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.build-contact__name {
  font-weight: 950;
  letter-spacing: 0.02em;
}

.build-contact__rank {
  color: var(--text-muted);
  font-weight: 750;
}

.build-contact__actions {
  justify-content: flex-end;
}

.build-contact__btn {
  padding: 10px 14px;
}

.scrolltop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, rgba(91, 188, 255, 0.16), rgba(0, 0, 0, 0.22));
  color: var(--text);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.18s ease, transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.scrolltop svg {
  width: 18px;
  height: 18px;
}

.scrolltop__label {
  font-weight: 900;
  letter-spacing: 0.2px;
  line-height: 1;
}

.scrolltop.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.scrolltop:hover {
  background: var(--accent-bg);
  transform: translateY(-1px);
  border-color: var(--accent-border-strong);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.34), 0 0 0 2px rgba(91, 188, 255, 0.1);
}

@media (max-width: 1100px) {
  .members__track {
    grid-auto-columns: calc((100% - 28px) / 3);
  }
}

@media (max-width: 980px) {
  .about__grid,
  .team__categories {
    grid-template-columns: 1fr;
  }

  .about__img--hero {
    min-height: 240px;
  }
}

@media (max-width: 860px) {
  :root {
    --section-space: 64px;
  }

  .nav__bar {
    padding-inline: 16px;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav__center,
  .nav__right {
    display: none;
  }

  .nav__menu {
    display: block;
  }

  .timeline__header,
  .members__header,
  .join__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline__actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .timeline__list::before {
    left: 17px;
  }

  .timeline__item {
    grid-template-columns: 34px 1fr;
    gap: 12px;
    min-height: 0;
  }

  .timeline__dot {
    grid-column: 1;
    margin-top: 20px;
  }

  .timeline__card {
    grid-column: 2 !important;
    justify-self: stretch !important;
  }

  .hero .content {
    padding-inline: 16px;
  }

  .title-wrapper {
    padding: 20px 28px;
    margin-bottom: 14px;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 3.2rem);
    letter-spacing: 0.03em;
  }

  .hero p {
    font-size: clamp(1.1rem, 4.5vw, 1.6rem);
  }

  .join__card,
  .build-contact {
    grid-template-columns: 1fr;
  }

  .join__cta,
  .build-contact__actions {
    justify-items: start;
    justify-content: flex-start;
  }

  .join__btn,
  .build-contact__btn {
    width: 100%;
    max-width: none;
    justify-content: center;
  }

  .members__track {
    grid-auto-columns: calc((100% - 14px) / 2);
  }

  .about__facts,
  .support__actions {
    grid-template-columns: 1fr;
  }

  .about__media {
    grid-template-columns: 1fr;
  }

  .about__img,
  .about__img--hero {
    min-height: 220px;
  }
}

@media (max-width: 560px) {
  .about__facts {
    grid-template-columns: 1fr;
  }

  .about__img {
    min-height: 160px;
  }
}

@media (max-width: 520px) {
  .members__track {
    grid-auto-columns: 100%;
  }
}

@media (max-width: 480px) {
  .title-wrapper {
    padding: 16px 22px;
  }

  .hero h1 {
    font-size: 2rem;
    letter-spacing: 0.02em;
  }

  .hero p {
    font-size: 1.15rem;
  }

  .tl-btn {
    width: 100%;
    justify-content: center;
  }

  .scrolltop {
    right: 14px;
    bottom: 14px;
  }

  .scrolltop__label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .members__viewport {
    overflow-x: auto;
  }

  .members__track {
    transform: none !important;
    will-change: auto;
  }

  .hero-flip__current,
  .hero-flip__next,
  .hero-flip.is-flipping .hero-flip__current,
  .hero-flip.is-flipping .hero-flip__next {
    transform: translateX(-50%) !important;
  }
}

.footer {
  margin-top: auto;
  padding: 48px 32px;
  background: rgba(0, 0, 0, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 180px;
}

.footer-group h4 {
  margin: 0 0 6px 0;
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}

.footer-group a {
  position: relative;
  width: fit-content;
  padding-bottom: 2px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 650;
}

.footer-group a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.footer-group a:hover {
  color: #fff;
}

.footer-group a:hover::after {
  transform: scaleX(1);
}

.footer-made {
  margin-left: auto;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-made strong {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.footer-made span {
  font-size: 1rem;
  font-weight: 650;
  opacity: 0.85;
}

@media (max-width: 900px) {
  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }

  .footer-links {
    gap: 28px;
  }

  .footer-group {
    min-width: 0;
    width: 100%;
  }

  .footer-made {
    margin-left: 0;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 36px 20px;
  }

  .footer-made strong {
    font-size: 1.3rem;
  }

  .footer-made span {
    font-size: 0.95rem;
  }
}

.privacy-policy h1 {
    margin-bottom: 30px;
}

.privacy-policy h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.privacy-policy h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.privacy-policy h4 {
    margin-top: 25px;
    margin-bottom: 10px;
}

.privacy-policy {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .privacy-policy {
        max-width: 100%;
        padding: 40px 16px;
        justify-content: flex-start;
    }
}

.container-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--container-pad);
  height: 100vh;
}

.imprint-section {
  padding-top: 60px;
}

.imprint {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.imprint h1,
.imprint h2 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
}

.imprint h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 900;
  margin-bottom: 18px;
}

.imprint h2 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 800;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--text-soft);
}

.imprint p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.8;
  font-weight: 650;
}

.imprint a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: 0.15s;
}

.imprint a:hover {
  color: var(--accent);
  border-color: var(--accent-border);
}

.contact-section {
  padding-block: var(--section-space);
}

.contact-form-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 28px;
}

.contact-form-card__header {
  margin-bottom: 22px;
}

.contact-form-card__title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900;
  text-transform: uppercase;
}

.contact-form-card__lead {
  color: var(--text-soft);
  margin-top: 8px;
}

.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form__field--full {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  transition: 0.15s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-border-strong);
  box-shadow: 0 0 0 4px rgba(91, 188, 255, 0.12);
  outline: none;
}

.contact-form textarea {
  min-height: 160px;
}

.contact-form__checkbox {
  align-items: flex-start;
}

.checkbox-label {
  display: flex;
  gap: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.checkbox-label input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.checkbox-label a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.checkbox-label a:hover {
  color: var(--accent);
  border-color: var(--accent-border);
}

.contact-form__actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}

.contact-form__submit {
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent-border);
  background: linear-gradient(180deg, rgba(91, 188, 255, 0.16), rgba(0, 0, 0, 0.22));
  font-weight: 900;
  cursor: pointer;
  transition: 0.15s;
}

.contact-form__submit:hover {
  background: var(--accent-bg);
  transform: translateY(-1px);
}

@media (max-width: 860px) {
  .contact-form__grid {
    grid-template-columns: 1fr;
  }

  .contact-form__actions {
    justify-content: stretch;
  }

  .contact-form__submit {
    width: 100%;
  }
}