:root {
  color-scheme: light;
  --font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --color-canvas: #f5f7ff;
  --color-surface: rgba(255, 255, 255, 0.88);
  --color-surface-solid: #ffffff;
  --color-elevated: rgba(255, 255, 255, 0.72);
  --color-border: rgba(15, 23, 42, 0.08);
  --color-border-strong: rgba(15, 23, 42, 0.16);
  --color-text: #0b1021;
  --color-text-muted: #1f2937;
  --color-text-soft: #64748b;
  --color-accent: #8b5cf6;
  --color-accent-strong: #7c3aed;
  --color-accent-soft: rgba(139, 92, 246, 0.16);
  --color-highlight: #22d3ee;
  --shadow-sm: 0 16px 38px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 32px 80px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 48px 160px rgba(15, 23, 42, 0.16);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --max-width: 1180px;
  --noise-opacity: 0.08;
  --scroll-progress: 0;
}

[data-theme="dark"] {
  color-scheme: dark;
  --color-canvas: #020617;
  --color-surface: rgba(9, 13, 28, 0.78);
  --color-surface-solid: #080f22;
  --color-elevated: rgba(13, 22, 42, 0.78);
  --color-border: rgba(148, 163, 184, 0.12);
  --color-border-strong: rgba(148, 163, 184, 0.24);
  --color-text: #e8ecff;
  --color-text-muted: #cbd5f5;
  --color-text-soft: #94a3d9;
  --color-accent: #8b5cf6;
  --color-accent-strong: #a855f7;
  --color-accent-soft: rgba(139, 92, 246, 0.26);
  --color-highlight: #22d3ee;
  --shadow-sm: 0 18px 44px rgba(2, 6, 23, 0.55);
  --shadow-md: 0 36px 90px rgba(1, 5, 20, 0.6);
  --shadow-lg: 0 56px 160px rgba(0, 2, 12, 0.68);
  --noise-opacity: 0.16;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --color-canvas: #020617;
    --color-surface: rgba(9, 13, 28, 0.78);
    --color-surface-solid: #080f22;
    --color-elevated: rgba(13, 22, 42, 0.78);
    --color-border: rgba(148, 163, 184, 0.12);
    --color-border-strong: rgba(148, 163, 184, 0.24);
    --color-text: #e8ecff;
    --color-text-muted: #cbd5f5;
    --color-text-soft: #94a3d9;
    --color-accent: #8b5cf6;
    --color-accent-strong: #a855f7;
    --color-accent-soft: rgba(139, 92, 246, 0.26);
    --shadow-sm: 0 18px 44px rgba(2, 6, 23, 0.55);
    --shadow-md: 0 36px 90px rgba(1, 5, 20, 0.6);
    --shadow-lg: 0 56px 160px rgba(0, 2, 12, 0.68);
    --noise-opacity: 0.16;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-family);
  background:
    radial-gradient(ellipse at top, rgba(139, 92, 246, 0.18), transparent 55%),
    radial-gradient(ellipse at bottom, rgba(34, 211, 238, 0.14), transparent 60%),
    var(--color-canvas);
  color: var(--color-text);
  line-height: 1.65;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  position: relative;
  transition: background 0.6s ease, color 0.6s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 25% 15%, rgba(139, 92, 246, 0.22), transparent 48%),
    radial-gradient(circle at 75% 25%, rgba(59, 130, 246, 0.18), transparent 52%),
    radial-gradient(circle at 50% 85%, rgba(34, 211, 238, 0.16), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.7;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='3' cy='3' r='1' fill='white' opacity='0.28'/%3E%3Ccircle cx='60' cy='40' r='1' fill='white' opacity='0.2'/%3E%3Ccircle cx='20' cy='90' r='1' fill='white' opacity='0.22'/%3E%3Ccircle cx='95' cy='70' r='1' fill='white' opacity='0.18'/%3E%3C/svg%3E");
  opacity: var(--noise-opacity);
  mix-blend-mode: soft-light;
}

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

button {
  font-family: inherit;
}

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

p {
  margin: 0 0 0.75rem;
}

p:last-child {
  margin-bottom: 0;
}

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

.site-shell {
  position: relative;
  z-index: 1;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-highlight));
  transform-origin: left;
  transform: scaleX(var(--scroll-progress, 0));
  transition: transform 0.1s ease-out;
  z-index: 999;
}

.noscript-banner {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  background: var(--color-surface-solid);
  color: var(--color-text);
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
  z-index: 998;
}

.devtools-blocker {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1200;
}

.devtools-blocker.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.devtools-blocker__inner {
  max-width: 420px;
  padding: 2.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--color-border) 80%, transparent);
  background: color-mix(in srgb, var(--color-elevated) 92%, transparent);
  box-shadow: var(--shadow-lg);
  text-align: center;
  color: var(--color-text);
}

.devtools-blocker__inner h2 {
  margin: 0 0 1rem;
  font-size: 1.6rem;
}

.devtools-blocker__inner p {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 0.95rem;
}

body.is-devtools-blocked {
  overflow: hidden;
}

.language-switch,
.theme-toggle,
.nav-toggle,
.btn {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--color-surface);
  background: color-mix(in srgb, var(--color-surface) 92%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.header__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.7rem 0;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.92rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.brand__mark {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-highlight));
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.35);
}

.site-nav {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  width: min(320px, 75vw);
  background: var(--color-surface);
  background: color-mix(in srgb, var(--color-surface) 96%, transparent);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  pointer-events: none;
  z-index: 905;
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0.85rem;
}

.site-nav a {
  position: relative;
  display: block;
  padding: 0.65rem 0.75rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text-soft);
  transition: color 0.25s ease;
  border-radius: var(--radius-sm);
}

.site-nav a::after {
  content: "";
  display: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-text);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  transform: none;
}

.site-nav a.is-active {
  color: var(--color-text);
  background: color-mix(in srgb, var(--color-accent-soft) 90%, transparent);
}

.header__controls {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

.header__chips {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 0;
}

.chip-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.32rem 0.8rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--color-accent-soft) 85%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-accent) 20%, transparent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-accent-strong);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.chip-link:hover,
.chip-link:focus-visible {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--color-accent-soft) 98%, transparent);
  box-shadow: 0 12px 24px rgba(139, 92, 246, 0.22);
}

.header__locale {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  background: color-mix(in srgb, var(--color-surface) 94%, transparent);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.18);
}

.language-switch button {
  border: none;
  background: transparent;
  color: var(--color-text-soft);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.language-switch button.is-active {
  color: var(--color-text);
  background: var(--color-surface-solid);
  box-shadow: 0 10px 26px rgba(139, 92, 246, 0.2);
}

.language-switch button:focus-visible {
  outline: 2px solid var(--color-highlight);
  outline-offset: 2px;
}

.theme-toggle {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  background: color-mix(in srgb, var(--color-surface) 80%, transparent);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.theme-toggle__icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.6;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-toggle__icon--sun {
  opacity: 1;
}

.theme-toggle__icon--moon {
  position: absolute;
  opacity: 0;
  transform: scale(0.75);
}

[data-theme="dark"] .theme-toggle__icon--sun {
  opacity: 0;
  transform: scale(0.75);
}

[data-theme="dark"] .theme-toggle__icon--moon {
  opacity: 1;
  transform: scale(1);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.24rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  background: color-mix(in srgb, var(--color-surface) 92%, transparent);
  cursor: pointer;
  padding: 0.55rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
  margin-right: 0.1rem;
}

.nav-toggle span {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-text);
  transition: transform 0.3s ease;
}

.site-nav.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1;
  cursor: pointer;
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  box-shadow: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn--small {
  padding: 0.45rem 1.25rem;
  font-size: 0.82rem;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-highlight));
  color: #fff;
  box-shadow: 0 20px 45px rgba(67, 56, 202, 0.35);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 26px 60px rgba(79, 70, 229, 0.4);
}

.btn--ghost {
  background: var(--color-accent-soft);
  background: color-mix(in srgb, var(--color-accent-soft) 70%, transparent);
  border-color: color-mix(in srgb, var(--color-accent) 28%, transparent);
  color: var(--color-accent-strong);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--color-accent-soft) 95%, transparent);
  box-shadow: 0 20px 35px rgba(139, 92, 246, 0.3);
}

.hero {
  position: relative;
  padding: min(10vh, 7rem) 0 5.5rem;
  overflow: hidden;
}

.hero__background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

#hero-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}

.hero__glow--one {
  width: 320px;
  height: 320px;
  top: -120px;
  right: 12%;
  background: rgba(139, 92, 246, 0.42);
}

.hero__glow--two {
  width: 280px;
  height: 280px;
  bottom: -140px;
  left: 12%;
  background: rgba(34, 211, 238, 0.38);
}

.hero__inner {
  position: relative;
  display: grid;
  gap: 2.8rem;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  align-items: center;
  z-index: 2;
}

.hero__copy {
  max-width: 640px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.2rem;
}

.eyebrow::after {
  content: "";
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
  opacity: 0.45;
}

.hero__copy h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.8rem, 4.2vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 1.8rem;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--color-text-soft);
  max-width: 560px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.2rem;
}

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.metric-card {
  position: relative;
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  background: color-mix(in srgb, var(--color-surface) 82%, transparent);
  border: 1px solid var(--color-border);
  border: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: -80% -40%;
  background: radial-gradient(circle at center, rgba(34, 211, 238, 0.28), transparent 55%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.metric-card strong {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.metric-card span {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-text-soft);
}

.metric-card:hover,
.metric-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--color-accent) 32%, transparent);
}

.metric-card:hover::before,
.metric-card:focus-visible::before {
  opacity: 1;
}

.hero__affiliations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero__affiliations .affiliation-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-accent-strong);
  background: var(--color-accent-soft);
  background: color-mix(in srgb, var(--color-accent-soft) 60%, transparent);
  border: 1px solid var(--color-border);
  border: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  text-decoration: none;
}

.hero__affiliations a.affiliation-chip {
  cursor: pointer;
}

.hero__affiliations a.affiliation-chip:hover,
.hero__affiliations a.affiliation-chip:focus-visible {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--color-accent-soft) 85%, transparent);
  box-shadow: var(--shadow-sm);
  color: var(--color-accent-strong);
}

.hero__aside {
  position: relative;
  justify-self: center;
}

.hero__avatar {
  position: relative;
  width: clamp(240px, 30vw, 320px);
  aspect-ratio: 1;
  border-radius: 36px;
  overflow: hidden;
  border: 1px solid var(--color-border-strong);
  border: 1px solid color-mix(in srgb, var(--color-border-strong) 40%, transparent);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.28), rgba(34, 211, 238, 0.24));
  box-shadow: var(--shadow-lg);
  transform: perspective(1200px) rotateX(calc(var(--tiltY, 0) * 1deg)) rotateY(calc(var(--tiltX, 0) * 1deg));
  transition: transform 0.3s ease;
}

.hero__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}

.scroll-cue {
  position: absolute;
  inset: auto 50% 1.5rem auto;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  opacity: 0.8;
}

.scroll-cue__dot {
  width: 6px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--color-accent), transparent);
  animation: cue 1.8s ease-in-out infinite;
}

@keyframes cue {
  0% {
    transform: translateY(0);
    opacity: 0.4;
  }
  60% {
    transform: translateY(8px);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
}

.section {
  position: relative;
  padding: 5rem 0;
}

.section--alt {
  background: var(--color-surface);
  background: color-mix(in srgb, var(--color-surface) 86%, transparent);
  border-block: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
}

.section__intro {
  max-width: 540px;
  margin-bottom: 2.5rem;
}

.section__kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.section__intro h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  letter-spacing: -0.01em;
}

.section__intro p {
  margin: 0;
  color: var(--color-text-soft);
}

.section--split .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.2rem;
  align-items: start;
}

.grid {
  display: grid;
  gap: 1.6rem;
}

.grid--cards {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--three {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card,
.contact-card,
.timeline-card,
.info-card,
.activities-login-container {
  position: relative;
  padding: 1.8rem;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  background: color-mix(in srgb, var(--color-surface) 84%, transparent);
  border: 1px solid var(--color-border);
  border: 1px solid color-mix(in srgb, var(--color-border) 75%, transparent);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}

.card::before,
.contact-card::before,
.timeline-card::before,
.info-card::before {
  content: "";
  position: absolute;
  inset: -40% -10%;
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card h3,
.contact-card h3,
.timeline-card h3,
.info-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.18rem;
  color: var(--color-text);
}

.card__meta {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  color: var(--color-text-soft);
  font-weight: 500;
}

.card__body {
  color: var(--color-text-soft);
  font-size: 0.97rem;
}

.card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.card__links a {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--color-accent-soft);
  background: color-mix(in srgb, var(--color-accent-soft) 70%, transparent);
  color: var(--color-accent-strong);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
}

.card__links a:hover,
.card__links a:focus-visible {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--color-accent-soft) 95%, transparent);
  box-shadow: 0 14px 28px rgba(139, 92, 246, 0.26);
}

.card:hover,
.card:focus-visible,
.contact-card:hover,
.contact-card:focus-visible,
.timeline-card:hover,
.timeline-card:focus-visible,
.info-card:hover,
.info-card:focus-visible,
.activities-login-container:hover,
.activities-login-container:focus-visible {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--color-accent) 32%, transparent);
  box-shadow: var(--shadow-md);
}

.card:hover::before,
.card:focus-visible::before,
.contact-card:hover::before,
.contact-card:focus-visible::before,
.timeline-card:hover::before,
.timeline-card:focus-visible::before,
.info-card:hover::before,
.info-card:focus-visible::before {
  opacity: 1;
}

.contact-card p {
  margin-top: 0.65rem;
  color: var(--color-text-soft);
}

.contact-card a {
  color: var(--color-accent-strong);
  font-weight: 600;
  word-break: break-word;
  position: relative;
  z-index: 1;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.6rem;
}

.timeline-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.timeline-card li {
  color: var(--color-text-soft);
  font-size: 0.95rem;
}

.timeline-card li strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--color-text);
}

.timeline-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.45rem;
  color: var(--color-text-soft);
  font-size: 0.86rem;
}

.timeline-meta a {
  color: var(--color-accent-strong);
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.info-card ul.detail-list {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
  color: var(--color-text-soft);
  font-size: 0.94rem;
}

.activities-login-required {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.activities-login-header h3 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
}

.activities-login-header p {
  margin: 0 0 1.2rem;
  color: var(--color-text-soft);
}

.activities-content {
  margin-top: 2rem;
}

.loading-message {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 0.95rem;
}

.loading-message.error {
  color: #f87171;
}

.link {
  color: var(--color-accent-strong);
  font-weight: 600;
}

.link:hover,
.link:focus-visible {
  color: var(--color-highlight);
}

.site-footer {
  background: var(--color-surface);
  background: color-mix(in srgb, var(--color-surface) 80%, transparent);
  border-top: 1px solid var(--color-border);
  padding: 2.4rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--color-text-soft);
  font-size: 0.9rem;
}

.footer__inner .link {
  color: var(--color-text);
}

.footer__inner .link:hover,
.footer__inner .link:focus-visible {
  color: var(--color-accent);
}

.login-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(3, 6, 23, 0.72);
  backdrop-filter: blur(16px);
  z-index: 1000;
}

.login-container {
  max-width: 420px;
  width: min(100%, 420px);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--color-elevated);
  background: color-mix(in srgb, var(--color-elevated) 90%, transparent);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.login-header h2 {
  margin: 0 0 0.6rem;
  font-size: 1.55rem;
  color: var(--color-text);
}

.login-header {
  position: relative;
}

.login-header p {
  margin: 0 0 1.8rem;
  color: var(--color-text-soft);
  font-size: 0.95rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  background: color-mix(in srgb, var(--color-surface) 90%, transparent);
  color: var(--color-text-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

.modal-close:hover,
.modal-close:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--color-accent) 32%, transparent);
  color: var(--color-text);
}

.login-form {
  display: grid;
  gap: 1.4rem;
}

.form-group {
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.55rem;
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface-solid);
  color: var(--color-text);
  font-size: 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group input:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-accent) 18%, transparent);
}

.login-btn {
  width: 100%;
  padding: 0.8rem 1.4rem;
}

.login-error {
  display: none;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
  font-size: 0.92rem;
  font-weight: 600;
}


[data-animate] {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate="rise"] {
  transform: translateY(20px);
}

[data-animate="pop"] {
  transform: translateY(10px) scale(0.94);
}

[data-animate="scale"] {
  transform: scale(0.96);
}

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

[data-tilt] {
  --tiltX: 0;
  --tiltY: 0;
  transform: perspective(900px) rotateX(calc(var(--tiltY) * 0.6deg)) rotateY(calc(var(--tiltX) * 0.6deg));
}

[data-tilt]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at calc(50% + var(--tiltX) * 0.6%) calc(50% - var(--tiltY) * 0.6%), rgba(255, 255, 255, 0.14), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

[data-tilt]:hover::after {
  opacity: 1;
}

@media (max-width: 1120px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__aside {
    order: -1;
  }

  .hero__avatar {
    margin: 0 auto;
  }

  .site-nav {
    position: fixed;
    top: 70px;
    right: 1.25rem;
    left: 1.25rem;
    width: auto;
    padding: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .site-nav a {
    padding: 0.85rem 0.75rem;
    border-radius: var(--radius-sm);
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .header__nav {
    gap: 0.75rem;
  }

  .header__controls {
    gap: 0.55rem;
  }

  .hero {
    padding-top: 6.2rem;
  }

  .hero__metrics {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .scroll-cue {
    display: none;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 2rem, var(--max-width));
  }

  .header__nav {
    flex-wrap: wrap;
  }

  .header__chips {
    display: none;
  }

  .header__controls .btn--small {
    display: none;
  }

  .site-nav {
    left: 1rem;
    right: 1rem;
  }

  .hero__inner {
    gap: 2rem;
  }

  .hero__metrics {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .metric-card {
    padding: 1rem 1.2rem;
  }

  .footer__inner {
    justify-content: center;
    text-align: center;
  }

}

@media (max-width: 520px) {
  .language-switch {
    display: inline-flex;
    padding: 0.15rem;
    gap: 0.15rem;
  }

  .language-switch button {
    font-size: 0.72rem;
    padding: 0.25rem 0.6rem;
  }

  .hero__copy h1 {
    font-size: clamp(2.3rem, 8vw, 2.8rem);
  }

  .hero__actions {
    gap: 0.6rem;
  }

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

  .grid--cards,
  .timeline-grid {
    grid-template-columns: 1fr;
  }
}

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

  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
  }

  .scroll-progress {
    transition: none;
  }

  .theme-toggle:hover,
  .btn:hover,
  .card:hover,
  .metric-card:hover,
  .contact-card:hover,
  .timeline-card:hover,
  .info-card:hover {
    transform: none !important;
  }

  #hero-scene {
    display: none;
  }
}
