:root {
  --bg: #0d1420;
  --bg-soft: #101a2b;
  --surface: #17263b;
  --surface-2: #1c2f49;
  --text: #eef4ff;
  --muted: #a4b5cd;
  --line: #2b415f;
  --accent: #b86cff;
  --accent-2: #72d3ff;
  --violet: #a25cff;
  --violet-soft: #61319f;
  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  overflow-x: hidden;
  max-width: 100%;
  background:
    radial-gradient(640px 290px at 8% -3%, rgba(162, 92, 255, 0.17), transparent 72%),
    radial-gradient(700px 300px at 94% 2%, rgba(116, 61, 184, 0.22), transparent 72%),
    radial-gradient(560px 280px at 50% 100%, rgba(57, 208, 196, 0.1), transparent 72%),
    var(--bg);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  background: var(--accent);
  color: #111;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
}

.site-header {
  position: relative;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(9, 14, 24, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: "Unbounded", sans-serif;
  font-size: 0.85rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  line-height: 1;
  min-width: 0;
}

.brand-title {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand em {
  font-style: normal;
  color: var(--violet);
}

.brand-logo-left,
.brand-logo-right {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  padding: 0;
  filter: drop-shadow(0 0 12px rgba(162, 92, 255, 0.24));
  animation: logoPulse 4.4s ease-in-out infinite;
  flex-shrink: 0;
}

.brand-logo-right {
  animation-delay: 0.5s;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: #fff;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  background: transparent;
  display: none;
  place-items: center;
  gap: 2px;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: #fff;
  display: block;
}

.hero {
  position: relative;
  min-height: 84vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/clubs/imba-tashkent.jpg") center/cover no-repeat;
  transform: scale(1.04);
  animation: heroZoom 18s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(130deg, rgba(8, 11, 20, 0.9), rgba(8, 11, 20, 0.5)),
    radial-gradient(circle at 20% 85%, rgba(162, 92, 255, 0.24), transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: 4rem;
  max-width: 880px;
}

.hero-kicker {
  margin: 0 0 0.75rem;
  color: var(--accent-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(0.64rem, 1.25vw, 0.8rem);
}

h1,
h2,
h3 {
  font-family: "Unbounded", sans-serif;
  margin: 0;
}

h1 {
  font-size: clamp(1.2rem, 5.4vw, 3.5rem);
  line-height: 1.1;
}

.hero-line {
  display: block;
  white-space: nowrap;
}

.hero-fixed-line {
  white-space: nowrap;
}

.hero-lead {
  margin: 1.2rem 0 0;
  max-width: 70ch;
  color: #d4e0f3;
  line-height: 1.65;
  font-size: clamp(0.58rem, 1.3vw, 1.03rem);
  white-space: nowrap;
}

.hero-tail {
  white-space: nowrap;
  display: inline-block;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-main {
  background: linear-gradient(120deg, var(--violet), #c777ff);
  color: #0f1117;
  box-shadow: 0 12px 30px rgba(162, 92, 255, 0.36);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}

.hero-metrics {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1.7rem 0 0;
  padding: 0;
}

.hero-metrics li {
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.95rem;
  background: rgba(7, 13, 22, 0.4);
}

.hero-metrics strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
}

.hero-metrics span {
  color: #c2d1e9;
  font-size: 0.85rem;
}

.section {
  position: relative;
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

.section + .section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 68px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(162, 92, 255, 0.12), transparent 72%);
}

.section-dark {
  position: relative;
  background: linear-gradient(180deg, var(--bg-soft), #0f1a2a);
}

.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(162, 92, 255, 0.12) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.28;
  pointer-events: none;
}

.section-dark > .container {
  position: relative;
  z-index: 1;
}

.section-head {
  max-width: 760px;
  margin-bottom: 1.6rem;
}

.section-head h2 {
  font-size: clamp(1.45rem, 4vw, 2.2rem);
  line-height: 1.2;
}

.section-head p {
  color: var(--muted);
  margin-top: 0.8rem;
  line-height: 1.65;
}

.section-rich {
  position: relative;
  overflow: visible;
  --glow-a-size: 320px;
  --glow-a-left: -120px;
  --glow-a-bottom: -130px;
  --glow-a-bg: radial-gradient(circle, rgba(114, 211, 255, 0.16), transparent 70%);
  --glow-a-radius: 50%;
  --glow-a-opacity: 0.92;
  --glow-a-blend: screen;
  --glow-a-blur: 8px;
  --glow-a-duration: 9s;
  --glow-a-delay: 0s;
  --glow-a-motion: glowDriftA;
  --glow-b-size: 360px;
  --glow-b-right: -110px;
  --glow-b-top: -130px;
  --glow-b-bg: radial-gradient(circle, rgba(162, 92, 255, 0.24), transparent 68%);
  --glow-b-radius: 50%;
  --glow-b-opacity: 0.9;
  --glow-b-blend: screen;
  --glow-b-blur: 6px;
  --glow-b-duration: 8s;
  --glow-b-delay: 0s;
  --glow-b-motion: glowDriftB;
}

.section-rich::before {
  content: "";
  position: absolute;
  width: var(--glow-a-size);
  height: var(--glow-a-size);
  left: var(--glow-a-left);
  bottom: var(--glow-a-bottom);
  border-radius: var(--glow-a-radius);
  background: var(--glow-a-bg);
  opacity: var(--glow-a-opacity);
  mix-blend-mode: var(--glow-a-blend);
  filter: blur(var(--glow-a-blur));
  animation: var(--glow-a-motion) var(--glow-a-duration) ease-in-out infinite;
  animation-delay: var(--glow-a-delay);
  pointer-events: none;
}

.section-rich::after {
  content: "";
  position: absolute;
  width: var(--glow-b-size);
  height: var(--glow-b-size);
  right: var(--glow-b-right);
  top: var(--glow-b-top);
  border-radius: var(--glow-b-radius);
  background: var(--glow-b-bg);
  opacity: var(--glow-b-opacity);
  mix-blend-mode: var(--glow-b-blend);
  filter: blur(var(--glow-b-blur));
  animation: var(--glow-b-motion) var(--glow-b-duration) ease-in-out infinite;
  animation-delay: var(--glow-b-delay);
  pointer-events: none;
}

#curatorship.section-rich {
  --glow-a-size: 300px;
  --glow-a-left: -170px;
  --glow-a-bottom: -170px;
  --glow-a-bg: radial-gradient(circle at 40% 45%, rgba(114, 211, 255, 0.24), transparent 58%), radial-gradient(circle at 72% 72%, rgba(130, 95, 255, 0.2), transparent 70%);
  --glow-a-radius: 58% 42% 64% 36% / 46% 58% 42% 54%;
  --glow-a-opacity: 0.96;
  --glow-a-duration: 12s;
  --glow-a-motion: glowDriftC;
  --glow-b-size: 260px;
  --glow-b-right: 10%;
  --glow-b-top: -150px;
  --glow-b-bg: radial-gradient(circle, rgba(162, 92, 255, 0.22), transparent 66%);
  --glow-b-duration: 9.5s;
  --glow-b-delay: -2.2s;
}

#offers.section-rich {
  --glow-a-size: 280px;
  --glow-a-left: 2%;
  --glow-a-bottom: -150px;
  --glow-a-bg: conic-gradient(from 210deg, rgba(111, 228, 194, 0.09), rgba(115, 168, 255, 0.15), rgba(190, 104, 255, 0.12), transparent 72%);
  --glow-a-radius: 44% 56% 35% 65% / 57% 46% 54% 43%;
  --glow-a-opacity: 0.84;
  --glow-a-duration: 10.5s;
  --glow-a-delay: -3.4s;
  --glow-a-motion: glowDriftD;
  --glow-b-size: 350px;
  --glow-b-right: -140px;
  --glow-b-top: 8%;
  --glow-b-bg: radial-gradient(circle, rgba(162, 92, 255, 0.2), transparent 68%);
  --glow-b-duration: 13s;
  --glow-b-motion: glowDriftA;
}

#tech.section-rich {
  --glow-a-size: 330px;
  --glow-a-left: -220px;
  --glow-a-bottom: -60px;
  --glow-a-bg: radial-gradient(circle at 34% 54%, rgba(104, 169, 255, 0.24), transparent 60%), radial-gradient(circle at 66% 28%, rgba(142, 227, 206, 0.16), transparent 72%);
  --glow-a-radius: 67% 33% 60% 40% / 52% 57% 43% 48%;
  --glow-a-opacity: 0.92;
  --glow-a-duration: 14s;
  --glow-a-delay: -2.8s;
  --glow-a-motion: glowDriftD;
  --glow-b-size: 230px;
  --glow-b-right: 12%;
  --glow-b-top: -120px;
  --glow-b-bg: radial-gradient(circle, rgba(183, 105, 255, 0.22), transparent 72%);
  --glow-b-duration: 8.8s;
  --glow-b-delay: -1.5s;
}

#clubs.section-rich {
  --glow-a-size: 340px;
  --glow-a-left: -170px;
  --glow-a-bottom: -130px;
  --glow-a-bg: conic-gradient(from 300deg, rgba(106, 236, 200, 0.12), rgba(124, 186, 255, 0.18), rgba(95, 209, 255, 0.1), transparent 78%);
  --glow-a-radius: 61% 39% 53% 47% / 34% 60% 40% 66%;
  --glow-a-opacity: 0.9;
  --glow-a-blur: 11px;
  --glow-a-duration: 13.7s;
  --glow-a-delay: -5.2s;
  --glow-a-motion: glowDriftD;
  --glow-b-size: 390px;
  --glow-b-right: -200px;
  --glow-b-top: -170px;
  --glow-b-bg: radial-gradient(circle at 30% 40%, rgba(165, 97, 255, 0.22), transparent 64%), radial-gradient(circle at 70% 70%, rgba(104, 176, 255, 0.12), transparent 72%);
  --glow-b-radius: 55% 45% 42% 58% / 64% 37% 63% 36%;
  --glow-b-opacity: 0.82;
  --glow-b-duration: 16.2s;
  --glow-b-delay: -2.4s;
  --glow-b-motion: glowDriftB;
}

#team.section-rich {
  --glow-a-size: 250px;
  --glow-a-left: 22%;
  --glow-a-bottom: -230px;
  --glow-a-bg: radial-gradient(circle at 42% 58%, rgba(149, 220, 255, 0.2), transparent 58%), radial-gradient(circle at 68% 26%, rgba(198, 126, 255, 0.12), transparent 70%);
  --glow-a-radius: 36% 64% 57% 43% / 62% 33% 67% 38%;
  --glow-a-opacity: 0.8;
  --glow-a-blur: 10px;
  --glow-a-duration: 10.8s;
  --glow-a-delay: -1.9s;
  --glow-a-motion: glowDriftA;
  --glow-b-size: 330px;
  --glow-b-right: -150px;
  --glow-b-top: -80px;
  --glow-b-bg: conic-gradient(from 10deg, rgba(199, 128, 255, 0.16), rgba(100, 214, 255, 0.12), rgba(141, 230, 206, 0.1), transparent 76%);
  --glow-b-radius: 43% 57% 66% 34% / 49% 61% 39% 51%;
  --glow-b-opacity: 0.86;
  --glow-b-duration: 14.4s;
  --glow-b-delay: -4.1s;
  --glow-b-motion: glowDriftC;
}

.section-rich > .container {
  position: relative;
  z-index: 1;
}

.section-head h2 {
  position: relative;
  display: inline-block;
}

.section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.42rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(162, 92, 255, 0.9), rgba(114, 211, 255, 0.2));
}

.curatorship-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.curatorship-card {
  border: 1px solid var(--line);
  border-radius: 1.05rem;
  padding: 1rem;
  background: linear-gradient(150deg, #15243a, #1a2d47);
  box-shadow: inset 0 0 0 1px rgba(162, 92, 255, 0.12);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.curatorship-card h3 {
  font-size: 1rem;
}

.curatorship-card p {
  margin: 0.65rem 0 0;
  color: #cad7eb;
  line-height: 1.6;
  min-height: 5.8rem;
}

.check-list {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.check-list li {
  position: relative;
  padding-left: 1.2rem;
  color: #d8e4f7;
  white-space: normal;
  line-height: 1.28;
  font-size: clamp(0.66rem, 0.9vw, 0.82rem);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.36rem;
  width: 0.5rem;
  height: 0.26rem;
  border-left: 2px solid #6ee0ff;
  border-bottom: 2px solid var(--violet);
  transform: rotate(-45deg);
}

.accent-pills {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.accent-pills span {
  border: 1px solid rgba(162, 92, 255, 0.48);
  border-radius: 999px;
  padding: 0.36rem 0.68rem;
  font-size: 0.82rem;
  background: rgba(10, 18, 31, 0.58);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.cards-grid-wide {
  gap: 1rem;
}

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 1.05rem;
  padding: 1rem 1rem 1.05rem;
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(162, 92, 255, 0.55);
  box-shadow: 0 14px 32px rgba(10, 14, 25, 0.35);
}

.card h3 {
  font-size: 0.96rem;
}

.card p {
  margin: 0.65rem 0 0;
  color: #cad7eb;
  line-height: 1.6;
}

.card-detailed {
  padding-top: 2.35rem;
}

.card-index {
  position: absolute;
  top: 0.65rem;
  left: 0.78rem;
  font-family: "Unbounded", sans-serif;
  font-size: 0.7rem;
  color: #ddc5ff;
  opacity: 0.92;
}

.card-detailed h3 {
  font-size: 0.94rem;
  line-height: 1.42;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.tech-card {
  border: 1px solid var(--line);
  border-radius: 1.05rem;
  padding: 1rem;
  background: linear-gradient(145deg, #151f31, #1b2b44);
  box-shadow: inset 0 0 0 1px rgba(162, 92, 255, 0.15);
}

.tech-card h3 {
  font-size: 1rem;
  margin-bottom: 0.7rem;
}

.tech-card p {
  margin: 0 0 0.65rem;
  color: #c7d5ea;
  line-height: 1.6;
}

.tech-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #cad7eb;
  line-height: 1.55;
}

.tech-card li + li {
  margin-top: 0.45rem;
}

.tech-card li {
  position: relative;
  padding-left: 1.2rem;
  white-space: normal;
  line-height: 1.28;
  font-size: clamp(0.66rem, 0.9vw, 0.82rem);
}

.tech-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.36rem;
  width: 0.5rem;
  height: 0.26rem;
  border-left: 2px solid #6ee0ff;
  border-bottom: 2px solid var(--violet);
  transform: rotate(-45deg);
}

.software-grid {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.software-item {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.65rem;
  background: linear-gradient(150deg, #132136, #192a45);
  box-shadow: inset 0 0 0 1px rgba(162, 92, 255, 0.11);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.software-item:hover,
.software-item:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(162, 92, 255, 0.56);
  box-shadow: 0 10px 28px rgba(7, 12, 21, 0.34);
}

.software-item img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 0.75rem;
}

.club-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.club-card {
  border-radius: 1.2rem;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #16253a, #1a2d46);
  overflow: hidden;
  display: grid;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.club-card:hover {
  transform: translateY(-4px);
  border-color: rgba(162, 92, 255, 0.52);
  box-shadow: 0 18px 34px rgba(6, 9, 19, 0.4);
}

.club-photo-wrap {
  position: relative;
  padding: 0.45rem;
  overflow: hidden;
}

.club-photo-wrap > img:not(.club-watermark) {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 1rem;
  transition: transform 0.35s ease;
}

.club-card:hover .club-photo-wrap > img:not(.club-watermark) {
  transform: scale(1.03);
}

.club-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(130deg, rgba(162, 92, 255, 0.12), transparent 40%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.club-card:hover::before {
  opacity: 1;
}

.club-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0.45rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(8, 12, 22, 0.06), rgba(8, 12, 22, 0.5));
  pointer-events: none;
}

.club-name,
.club-city {
  position: absolute;
  z-index: 2;
  font-family: "Unbounded", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.015em;
  color: #fff;
  text-shadow: 0 2px 9px rgba(0, 0, 0, 0.72);
}

.club-name {
  top: 1rem;
  left: 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(7, 13, 24, 0.62);
  backdrop-filter: blur(3px);
  padding: 0.35rem 0.55rem;
}

.club-city {
  right: 1rem;
  bottom: 1rem;
  color: rgba(222, 233, 249, 0.8);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  font-weight: 500;
}

.club-watermark {
  position: absolute;
  left: 0.95rem;
  bottom: 0.82rem;
  z-index: 2;
  width: clamp(2.625rem, 5.25vw, 3.5rem);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  opacity: 0.62;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.95rem;
}

.team-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(145deg, #16253a, #1b2c43);
  position: relative;
}

.team-photo-wrap {
  padding: 0.45rem 0.45rem 0;
}

.team-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 2.4rem 1.1rem 2.4rem 1.1rem;
  transition: transform 0.32s ease;
}

.team-card:nth-child(2n) .team-photo-wrap img {
  border-radius: 1.4rem 2.6rem 1.4rem 2.6rem;
}

.team-card:nth-child(3n) .team-photo-wrap img {
  border-radius: 2.7rem 1.5rem 1.9rem 1.5rem;
}

.team-card:hover .team-photo-wrap img {
  transform: scale(1.03);
}

.team-card::after {
  content: "";
  position: absolute;
  right: -48px;
  top: -48px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(162, 92, 255, 0.24), transparent 72%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.team-card:hover::after {
  opacity: 1;
}

.team-card h3 {
  font-size: 0.92rem;
  padding: 0.8rem 0.85rem 0;
}

.team-role {
  margin: 0.4rem 0 0;
  padding: 0 0.85rem;
  color: #8cd7d0;
  font-weight: 700;
  font-size: 0.82rem;
}

.team-text {
  margin: 0.5rem 0 0;
  padding: 0 0.85rem 0.75rem;
  color: #b8cae4;
  line-height: 1.55;
  font-size: 0.9rem;
}

.team-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0 0.85rem 0.95rem;
}

.team-links a {
  text-decoration: none;
  border: 1px solid rgba(162, 92, 255, 0.48);
  color: #fff;
  border-radius: 999px;
  padding: 0.3rem 0.56rem;
  font-size: 0.82rem;
}

.team-links a:hover,
.team-links a:focus-visible {
  background: rgba(162, 92, 255, 0.16);
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
}

.gallery-modal[hidden] {
  display: none;
}

.gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}

.gallery-dialog {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 980px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 1rem;
  background: #0b1422;
  overflow: hidden;
}

#gallery-image {
  width: 100%;
  height: min(72vh, 64vw);
  object-fit: contain;
  background: #050a12;
}

.gallery-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #fff;
  background: rgba(0, 0, 0, 0.36);
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-prev {
  left: 0.6rem;
}

.gallery-next {
  right: 0.6rem;
}

.gallery-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.gallery-title-wrap {
  display: grid;
  gap: 0.15rem;
}

#gallery-title {
  font-family: "Unbounded", sans-serif;
  letter-spacing: 0.03em;
  font-size: 0.9rem;
}

#gallery-location {
  color: #98b1d2;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
}

#gallery-counter {
  color: #dbe8fc;
  border: 1px solid rgba(151, 194, 255, 0.35);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  background: rgba(26, 42, 67, 0.42);
  font-size: 0.76rem;
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #0a111c;
}

.footer-inner {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  text-align: center;
  color: #b7c8df;
}

.footer-inner p {
  margin: 0;
}

.footer-socials {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-socials a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  padding: 0.26rem 0.52rem;
  border-radius: 999px;
  border: 1px solid rgba(162, 92, 255, 0.36);
  background: rgba(9, 15, 26, 0.48);
  font-size: 0.77rem;
  color: #d8e4f7;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  background: rgba(162, 92, 255, 0.14);
}

.footer-socials img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroZoom {
  from { transform: scale(1.03); }
  to { transform: scale(1.1); }
}

@keyframes logoPulse {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 8px rgba(162, 92, 255, 0.22)); }
  50% { transform: translateY(-1px); filter: drop-shadow(0 0 14px rgba(162, 92, 255, 0.36)); }
}

@keyframes glowDriftA {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.94; }
  30% { transform: translate3d(14px, -8px, 0) scale(1.08); opacity: 0.62; }
  65% { transform: translate3d(-9px, 11px, 0) scale(0.98); opacity: 0.84; }
}

@keyframes glowDriftB {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.88; }
  40% { transform: translate3d(-12px, 9px, 0) scale(1.09); opacity: 0.56; }
  78% { transform: translate3d(10px, -12px, 0) scale(1.02); opacity: 0.78; }
}

@keyframes glowDriftC {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.9; }
  24% { transform: translate3d(8px, 12px, 0) scale(1.06); opacity: 0.7; }
  52% { transform: translate3d(-13px, -6px, 0) scale(1.01); opacity: 0.58; }
  82% { transform: translate3d(11px, -9px, 0) scale(1.07); opacity: 0.8; }
}

@keyframes glowDriftD {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.86; }
  22% { transform: translate3d(-16px, 7px, 0) scale(1.1); opacity: 0.66; }
  49% { transform: translate3d(12px, -14px, 0) scale(0.96); opacity: 0.52; }
  73% { transform: translate3d(-4px, 10px, 0) scale(1.04); opacity: 0.76; }
}

@keyframes softFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes softFloatAlt {
  0%, 100% { transform: translate3d(0, 0, 0); }
  45% { transform: translate3d(0, -5px, 0); }
  75% { transform: translate3d(0, -1px, 0); }
}

@keyframes softFloatWide {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -6px, 0); }
}

@media (max-width: 1024px) {
  .cards-grid,
  .club-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 980px) {
  .header-inner {
    position: relative;
    min-height: 70px;
  }

  .header-inner nav {
    position: absolute;
    right: 0;
    top: calc(100% + 0.2rem);
    z-index: 40;
  }

  .menu-toggle {
    display: inline-grid;
    margin-left: auto;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    gap: 0;
  }

  .menu-toggle span {
    width: 14px;
    height: 1.3px;
  }

  .nav-list {
    position: absolute;
    right: 0;
    top: 0;
    min-width: 0;
    width: max-content;
    max-width: calc(100vw - 1rem);
    display: none;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.6rem 0.7rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(12, 22, 36, 0.94);
  }

  .nav-list a {
    white-space: nowrap;
    display: block;
    line-height: 1.2;
    font-size: 1.38rem;
    padding-block: 0.1rem;
  }

  .nav-list.open {
    display: flex;
  }

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

@media (max-width: 680px) {
  html {
    font-size: 14px;
  }

  .brand {
    font-size: 0.72rem;
    gap: 0.45rem;
  }

  .brand-title {
    gap: 0.2rem;
    max-width: calc(100vw - 7.2rem);
  }

  .brand-logo-left,
  .brand-logo-right {
    width: 34px;
    height: 34px;
  }

  .hero-metrics,
  .curatorship-grid,
  .cards-grid,
  .tech-grid,
  .club-grid,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .software-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-line,
  .hero-fixed-line {
    white-space: normal;
  }

  #gallery-image {
    height: min(66vh, 92vw);
  }

  .section-head p,
  .curatorship-card p,
  .card p,
  .tech-card p,
  .team-text,
  .team-role,
  .team-links a,
  .btn,
  .accent-pills span,
  .club-name,
  .club-city {
    font-size: clamp(0.74rem, 2.1vw, 0.9rem);
  }

  .check-list li,
  .tech-card li {
    font-size: clamp(0.58rem, 1.45vw, 0.72rem);
    line-height: 1.24;
  }

  .hero-lead {
    font-size: clamp(0.46rem, 1.4vw, 0.58rem);
  }

}

@media (max-width: 480px) {
  html {
    font-size: 13px;
  }
}

@media (min-width: 981px) {
  .software-item img {
    aspect-ratio: 16/7.2;
  }
}
