/* ===== AAE Modern Interactive Design System ===== */
:root {
  /* Brand */
  --color-primary: #2ea3f2;
  --color-primary-bright: #38e1ff;
  --color-violet: #7c5cff;
  --color-secondary: #6dcbb1;
  --color-accent: #82c0c7;
  --color-heading: #0f172a;
  --color-heading-alt: #2563eb;

  /* Light content surfaces */
  --color-bg: #f5f8fd;
  --color-bg-alt: #eef3fb;
  --color-surface: #ffffff;
  --color-text: #475569;
  --color-text-dark: #0f172a;
  --color-text-nav: #0f172a;
  --color-border: #e2e8f0;

  /* Dark (hero / footer) */
  --color-ink: #070b18;
  --color-ink-2: #0d1430;
  --color-ink-3: #131c44;
  --color-footer: #070b18;

  /* Typography */
  --font-sans: 'Open Sans', 'Noto Sans TC', Arial, sans-serif;
  --font-heading: 'Space Grotesk', 'Poppins', 'Noto Sans TC', sans-serif;
  --font-display: 'Space Grotesk', 'Poppins', 'Noto Sans TC', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #2ea3f2 0%, #7c5cff 100%);
  --grad-brand-bright: linear-gradient(135deg, #38e1ff 0%, #7c5cff 100%);
  --grad-text: linear-gradient(120deg, #2ea3f2 0%, #7c5cff 60%, #38e1ff 100%);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-bg-strong: rgba(255, 255, 255, 0.86);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-blur: 14px;

  /* Shadows & glow */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(15, 23, 42, 0.28);
  --shadow-card: 0 14px 40px -22px rgba(46, 99, 235, 0.45);
  --glow: 0 0 40px rgba(56, 225, 255, 0.45);
  --glow-violet: 0 0 50px rgba(124, 92, 255, 0.5);

  /* Geometry */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --logo-height: 69px;
  --nav-pill-height: 82px;
  --header-height: 110px;
  --transition: 0.2s ease-in-out;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(124, 92, 255, 0.22);
  color: var(--color-text-dark);
}

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  position: relative;
  display: grid;
  /* grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); */
  align-items: center;
  height: 100%;
  gap: 16px;
}

.logo {
  position: relative;
  z-index: 1;
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.logo img {
  height: 84px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius);
  letter-spacing: 0.5px;
}

.logo-text {
  font-weight: 600;
  font-size: 13px;
  color: var(--color-text-dark);
  line-height: 1.3;
  max-width: 220px;
}

.nav-links {
  position: relative;
  z-index: 2;
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
}

.nav-links > li > a {
  display: block;
  padding: 10px 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-nav);
  transition: color var(--transition);
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--color-primary);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform var(--transition);
}

.nav-dropdown:hover .nav-dropdown-toggle::after {
  transform: rotate(180deg);
}

.nav-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #ffffff;
  border-top: 3px solid var(--color-primary);
  box-shadow: var(--shadow-md);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 100;
}

.nav-dropdown:hover .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-submenu a {
  display: block;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.7);
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}

.nav-submenu a:hover,
.nav-submenu a.active {
  color: var(--color-primary);
  background: rgba(46, 163, 242, 0.06);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: 8px;
}

.lang-btn {
  padding: 10px 12px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-nav);
  cursor: pointer;
  transition: color var(--transition);
}

.lang-btn.active {
  color: var(--color-primary);
  font-weight: 600;
}

.lang-btn:hover:not(.active) {
  color: var(--color-primary);
}

.nav-toggle {
  position: relative;
  z-index: 2;
  grid-column: 3;
  justify-self: end;
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-nav);
  transition: var(--transition);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: #2590d9;
  border-color: #2590d9;
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ===== Hero Slider ===== */
.hero-slider {
  position: relative;
  margin-top: var(--header-height);
  height: 480px;
  overflow: hidden;
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 10;
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), opacity var(--transition);
  opacity: 0.5;
}

.hero-dot.active {
  background: #ffffff;
  opacity: 1;
}

/* ===== Intro Section ===== */
.intro {
  padding: 60px 0;
  background: var(--color-bg);
}

.intro-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-heading-alt);
  margin-bottom: 16px;
}

.intro-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.3;
  margin-bottom: 20px;
}

.intro-subtitle {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-heading-alt);
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-heading-alt);
  max-width: 700px;
  margin: 0 auto;
}

/* ===== About ===== */
.about {
  background: var(--color-surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.about-lead {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-heading-alt);
  margin-bottom: 20px;
}

.about-content p {
  color: var(--color-text);
  margin-bottom: 16px;
}

.stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--color-text);
  margin-top: 6px;
}

/* ===== Work Cards ===== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.work-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.work-card:hover {
  box-shadow: var(--shadow-md);
}

.work-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.work-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.work-card:hover .work-card-image img {
  transform: scale(1.03);
}

.work-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius);
}

.work-card-body {
  padding: 24px;
}

.work-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 10px;
}

.work-card-desc {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.7;
}

#educationGrid .work-card-body {
  padding-top: 24px;
}

.media-stats {
  margin-top: 48px;
  justify-content: center;
  text-align: center;
}

.media-stats .stat {
  flex: 1;
  min-width: 180px;
}

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

.partners-group {
  background: var(--color-surface);
  border-top: 3px solid var(--color-primary);
  box-shadow: var(--shadow-md);
  padding: 24px 28px;
  border-radius: var(--radius);
}

.partners-group-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 16px;
}

.partners-list li {
  position: relative;
  padding: 8px 0 8px 16px;
  font-size: 14px;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.partners-list li:last-child {
  border-bottom: none;
}

.partners-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* ===== Profile (PDF Content) ===== */
.profile-main {
  margin-top: var(--header-height);
}

.profile-section {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.profile-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

#about .profile-section-header {
  justify-content: center;
  padding: 40px 24px;
  border-radius: var(--radius);
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.55)),
    url('../assets/images/profile/about-section-bg.png') center / cover no-repeat;
}

#industry-projects .profile-section-header {
  justify-content: center;
  padding: 40px 24px;
  border-radius: var(--radius);
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.55)),
    url('../assets/images/profile/industry-section-bg.png') center / cover no-repeat;
}

#education .profile-section-header {
  justify-content: center;
  padding: 40px 24px;
  border-radius: var(--radius);
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.55)),
    url('../assets/images/profile/education-day1.png') center / cover no-repeat;
}

#media-impact .profile-section-header {
  justify-content: center;
  padding: 40px 24px;
  border-radius: var(--radius);
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.55)),
    url('../assets/images/profile/media-stats-banner.png') center / cover no-repeat;
}

.profile-chapter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 4px 10px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius);
}

.profile-page {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
}

.profile-subsections {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.profile-subsection {
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
}

.profile-subsection-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 20px;
}

.profile-subsection-body p {
  color: var(--color-text);
  margin-bottom: 14px;
  line-height: 1.8;
}

.profile-note {
  padding: 12px 16px;
  background: rgba(46, 163, 242, 0.08);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius);
}

.profile-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.profile-card {
  background: var(--color-surface);
  border-top: 3px solid var(--color-primary);
  box-shadow: var(--shadow-md);
  padding: 20px 22px;
  border-radius: var(--radius);
}

.profile-card h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 10px;
}

.profile-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-list-item h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 8px;
}

.profile-list-num {
  color: var(--color-primary);
  margin-right: 6px;
}

.profile-people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

#1-4 .profile-note {
  padding: 0;
  background: none;
  border: none;
  margin-bottom: 28px;
  font-size: 15px;
  color: var(--color-text-dark);
}

.profile-advisors {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-advisor {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 36px;
  background: #eaf4fc;
  padding: 28px 36px;
  border-radius: var(--radius);
}

.profile-advisor--photo-end {
  flex-direction: row-reverse;
}

.profile-advisor-photo {
  flex-shrink: 0;
  width: 200px;
}

.profile-advisor-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
}

.profile-advisor-body {
  flex: 1;
  min-width: 0;
}

.profile-advisor-role {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 6px;
}

.profile-advisor-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 12px;
  line-height: 1.35;
}

.profile-advisor-credentials p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.profile-advisor-credentials p:last-child {
  margin-bottom: 0;
}

.profile-person {
  background: var(--color-bg-alt);
  padding: 20px 22px;
  border-radius: var(--radius);
}

.profile-person-role {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.profile-person h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 10px;
}

.profile-person ul li {
  font-size: 13px;
  color: var(--color-text);
  padding: 3px 0;
}

.profile-teams {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.profile-team-group h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.profile-team-group ul li {
  font-size: 14px;
  color: var(--color-text);
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border);
}

.profile-team-group ul li:last-child {
  border-bottom: none;
}

.profile-projects {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-project {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  padding: 24px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.profile-project h4 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 8px;
}

.profile-project-meta {
  font-size: 13px;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.profile-project-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-field h5 {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 4px;
}

.profile-field p {
  margin-bottom: 0;
}

.profile-stats {
  margin-top: 24px;
  justify-content: center;
  text-align: center;
}

.profile-contact-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

.profile-contact-list li:last-child {
  border-bottom: none;
}

.profile-contact-list strong {
  color: var(--color-text-dark);
  min-width: 88px;
}

.profile-figure {
  margin: 0 0 20px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.profile-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.profile-figure-wide img {
  max-height: 480px;
  object-fit: cover;
}

.profile-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.profile-gallery .profile-figure {
  margin-bottom: 0;
}

#education .profile-gallery {
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

#education .profile-subsection[id="3-3"] .profile-gallery {
  grid-template-columns: repeat(3, 1fr);
}

#education .profile-gallery .profile-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(260px, 28vw, 360px);
  background: var(--color-bg-alt);
}

#education .profile-gallery .profile-figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

#education .profile-figure-wide {
  display: block;
  background: var(--color-bg-alt);
}

#education .profile-figure-wide img {
  max-height: clamp(320px, 40vw, 480px);
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 768px) {
  #education .profile-gallery,
  #education .profile-subsection[id="3-3"] .profile-gallery {
    grid-template-columns: 1fr;
  }

  #education .profile-gallery .profile-figure {
    height: clamp(220px, 55vw, 320px);
  }
}

.profile-media-layout {
  display: grid;
  grid-template-columns: repeat(100, 1fr);
  gap: 8px;
  margin-top: 24px;
}

.profile-media-layout-photo {
  margin: 0;
  overflow: hidden;
}

.profile-media-layout-photo--top {
  grid-column: 1 / 66;
  grid-row: 1;
}

.profile-media-layout-quote {
  grid-column: 66 / 101;
  grid-row: 1;
  background: #2a1a4e;
  color: #fff;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-media-layout-quote-accent {
  display: block;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #f5c518, var(--color-primary));
  margin-bottom: 16px;
  flex-shrink: 0;
}

.profile-media-layout-quote p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #fff;
}

.profile-media-layout-photo--bottom {
  grid-column: 1 / 51;
  grid-row: 2;
}

.profile-media-layout-photo--bottom-right {
  grid-column: 51 / 101;
}

.profile-media-layout-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-media-layout-photo--top img {
  aspect-ratio: 800 / 533;
}

.profile-media-layout-photo--bottom img {
  aspect-ratio: 640 / 427;
}

@media (max-width: 768px) {
  .profile-media-layout {
    grid-template-columns: 1fr;
  }

  .profile-media-layout-photo--top,
  .profile-media-layout-quote,
  .profile-media-layout-photo--bottom,
  .profile-media-layout-photo--bottom-right {
    grid-column: 1;
    grid-row: auto;
  }
}

.profile-gallery-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 24px auto 0;
}

.profile-gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  cursor: zoom-in;
  transition: transform var(--transition), box-shadow var(--transition);
}

.profile-gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg, 0 8px 24px rgba(0, 0, 0, 0.12));
}

.profile-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

@media (max-width: 600px) {
  .profile-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.profile-person {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.profile-person-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.profile-person-body {
  flex: 1;
  min-width: 0;
}

.profile-project-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.profile-project-images .profile-figure {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .profile-advisor,
  .profile-advisor--photo-end {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
  }

  .profile-advisor-photo {
    width: 160px;
  }

  .profile-person {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-person-photo {
    width: 140px;
    height: 140px;
  }
}

/* ===== Subpage ===== */
.page-main {
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
}

/* ===== Past Events ===== */
.past-events-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}

.past-events-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  max-height: calc(100vh - var(--header-height) - 48px);
  overflow-y: auto;
  background: #ffffff;
  border-top: 3px solid var(--color-primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 12px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) transparent;
}

.past-events-sidebar::-webkit-scrollbar {
  width: 6px;
}

.past-events-sidebar::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 3px;
}

.past-events-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.past-events-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.past-events-sidebar-list li {
  margin: 0;
}

.past-events-content {
  min-width: 0;
}

.past-events-filter-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 20px;
  border: none;
  border-left: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: rgba(0, 0, 0, 0.7);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.past-events-filter-btn:hover {
  color: var(--color-primary);
  background: rgba(46, 163, 242, 0.06);
}

.past-events-filter-btn.active {
  color: var(--color-primary);
  background: rgba(46, 163, 242, 0.06);
  border-left-color: var(--color-primary);
  font-weight: 600;
}

.past-events-group {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.past-events-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.past-events-group + .past-events-group {
  padding-top: 48px;
  border-top: 1px solid var(--color-border);
}

.past-events-month {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 28px;
}

.past-events-event + .past-events-event {
  margin-top: 36px;
}

.past-events-event-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 16px;
}

.past-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.past-events-grid .gallery-item {
  aspect-ratio: 4/3;
  background: var(--color-bg-alt);
}

.gallery-item--loading img {
  opacity: 0;
}

.gallery-item--loaded img {
  opacity: 1;
  transition: opacity 0.35s ease;
}

.gallery-item-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(110deg, var(--color-bg-alt) 8%, #f0f0f0 18%, var(--color-bg-alt) 33%);
  background-size: 200% 100%;
  animation: gallery-shimmer 1.4s linear infinite;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.gallery-item-loader::after {
  content: '';
  width: 32px;
  height: 32px;
  border: 3px solid rgba(46, 163, 242, 0.2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: gallery-spin 0.75s linear infinite;
}

.gallery-item--loaded .gallery-item-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gallery-item--error .gallery-item-loader::after {
  display: none;
}

@keyframes gallery-shimmer {
  to {
    background-position: -200% 0;
  }
}

@keyframes gallery-spin {
  to {
    transform: rotate(360deg);
  }
}

.gallery-item--extra {
  display: none;
}

.past-events-show-more {
  margin-top: 16px;
}

.past-events-loading {
  text-align: center;
  color: var(--color-text);
  padding: 40px 0;
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: var(--radius);
  background: var(--color-primary);
  color: #ffffff;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #2590d9;
}

/* ===== Gallery ===== */
.gallery {
  background: var(--color-surface);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.gallery-overlay p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 900px;
  width: 90%;
  text-align: center;
}

.lightbox-image-wrap {
  position: relative;
  display: inline-block;
  min-width: 200px;
  min-height: 200px;
}

.lightbox-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lightbox-loader::after {
  content: '';
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: gallery-spin 0.75s linear infinite;
}

.lightbox-image-wrap--loaded .lightbox-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lightbox-content img {
  max-height: 70vh;
  width: auto;
  margin: 0 auto;
  border-radius: var(--radius);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.lightbox-image-wrap--loaded img {
  opacity: 1;
}

.lightbox-caption {
  margin-top: 20px;
  color: #fff;
}

.lightbox-caption h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.lightbox-caption p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 28px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* ===== Contact ===== */
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 50px;
}

.contact-info .section-title {
  text-align: left;
}

.contact-info p {
  color: var(--color-text);
  margin-bottom: 28px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--color-text-dark);
  font-size: 14px;
}

.contact-list svg {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-dark);
}

.form-group input,
.form-group textarea {
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  color: var(--color-text);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-footer);
  color: rgba(255, 255, 255, 0.8);
  padding: 20px 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-logo {
  height: 80px;
  width: auto;
  max-width: 400px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.footer-copy {
  font-size: 12px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .about-grid,
  .contact-card {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .past-events-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .past-events-sidebar {
    position: static;
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
  }

  .container {
    width: 90%;
  }

  /* Legacy nav only — floating header uses its own mobile drawer below */
  .header:not(.header--floating) .nav {
    display: flex;
    justify-content: space-between;
  }

  .header:not(.header--floating) .nav-toggle {
    display: flex;
    grid-column: auto;
    justify-self: auto;
  }

  .header:not(.header--floating) .logo {
    grid-column: auto;
    max-width: none;
  }

  .header:not(.header--floating) .nav-links {
    position: fixed;
    grid-column: auto;
    justify-self: auto;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    white-space: normal;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    align-items: stretch;
  }

  .header:not(.header--floating) .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links > li {
    width: 100%;
  }

  .nav-links > li > a,
  .lang-btn {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
    width: 100%;
    text-align: left;
  }

  .nav-dropdown {
    position: static;
  }

  .nav-dropdown-toggle::after {
    float: right;
    margin-top: 8px;
  }

  .nav-submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border-top: none;
    box-shadow: none;
    padding: 0 0 0 16px;
    display: block;
  }

  .nav-submenu a {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
  }

  .lang-switch {
    margin-left: 0;
    flex-direction: row;
    gap: 16px;
    padding-top: 8px;
  }

  .lang-switch .lang-btn {
    border-bottom: none;
    width: auto;
    padding: 8px 0;
  }

  .logo-text {
    display: none;
  }

  .logo img {
    height: 52px;
    max-width: 230px;
  }

  .hero-slider {
    height: 320px;
  }

  .section {
    padding: 60px 0;
  }

  .stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  .contact-card {
    padding: 32px 24px;
  }

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

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .hero-slider {
    height: 240px;
  }
}

/* =================================================================
   MODERN INTERACTIVE LAYER
   ================================================================= */

/* ----- Skip link & scroll progress ----- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 3000;
  padding: 12px 18px;
  background: var(--color-text-dark);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 16px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 1500;
  background: var(--grad-brand-bright);
  box-shadow: 0 0 12px rgba(56, 225, 255, 0.6);
  transition: width 0.1s linear;
}

/* ----- Headings use display font ----- */
.section-title,
.hero-title,
.impact-chart-title,
.profile-subsection-title,
.section-kicker {
  font-family: var(--font-display);
}

/* ----- Section kicker / header ----- */
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-heading-alt);
  margin-bottom: 14px;
}

.section-kicker::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
}

.section-title {
  letter-spacing: -0.02em;
}

/* ----- Buttons ----- */
.btn {
  border-radius: 999px;
  padding: 14px 28px;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.btn-primary {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
}

.btn-primary:hover {
  background: var(--grad-brand-bright);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.btn-glow {
  box-shadow: 0 10px 30px -10px rgba(124, 92, 255, 0.6);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
  transform: translateY(-2px);
}

/* ----- Glass card base ----- */
.glass-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(46, 163, 242, 0.4);
}

/* =================================================================
   HERO
   ================================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(900px 600px at 78% 12%, rgba(124, 92, 255, 0.35), transparent 60%),
    radial-gradient(800px 600px at 12% 88%, rgba(46, 163, 242, 0.32), transparent 60%),
    linear-gradient(165deg, #070b18 0%, #0c1330 55%, #0a1026 100%);
  color: #fff;
  padding: calc(var(--header-height) + 40px) 0 80px;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  z-index: 0;
  animation: orb-float 16s ease-in-out infinite;
}

.hero-orb--1 {
  width: 460px;
  height: 460px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.7), transparent 70%);
}

.hero-orb--2 {
  width: 420px;
  height: 420px;
  bottom: -140px;
  left: -100px;
  background: radial-gradient(circle, rgba(56, 225, 255, 0.6), transparent 70%);
  animation-delay: -8s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -28px) scale(1.08); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 920px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 28px;
}

.hero-kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary-bright);
  box-shadow: 0 0 10px var(--color-primary-bright);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 8vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 26px;
}

.hero-title-line {
  display: block;
}

.hero-title-line--grad {
  background: linear-gradient(110deg, #38e1ff 0%, #7c5cff 55%, #c9a8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-lead {
  max-width: 620px;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 38px;
}

.hero-actions {
  justify-content: flex-start;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-metric {
  display: flex;
  flex-direction: column;
}

.hero-metric-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(120deg, #fff, #9fd8ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-metric-label {
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.62);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.hero-scroll-line {
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7), transparent);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -42px;
  left: 0;
  width: 100%;
  height: 42px;
  background: var(--color-primary-bright);
  animation: scroll-trail 2s ease-in-out infinite;
}

@keyframes scroll-trail {
  0% { transform: translateY(0); }
  100% { transform: translateY(84px); }
}

@media (max-width: 768px) {
  :root {
    --logo-height: 55px;
    --nav-pill-height: 70px;
    --header-height: 98px;
  }

  .hero {
    padding: calc(var(--header-height) + 28px) 0 56px;
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 3rem);
    margin-bottom: 18px;
  }

  .hero-lead {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 28px;
  }

  .hero-metrics {
    gap: 20px;
    margin-top: 36px;
    padding-top: 24px;
  }

  .hero-metric-num {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .hero-scroll {
    display: none;
  }
}

/* =================================================================
   FLOATING GLASS NAVBAR
   ================================================================= */
.header--floating {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: auto;
  background: transparent;
  box-shadow: none;
  padding: 14px 0;
  transition: padding var(--transition);
}

.header--floating .nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  height: var(--nav-pill-height);
  padding: 0 10px 0 20px;
  border-radius: 999px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.header--floating .logo img {
  height: var(--logo-height);
  width: auto;
  max-width: 220px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 4px 8px;
  transition: height var(--transition), filter var(--transition);
}

.header--floating .logo img.logo-img--big {
  max-width: 340px;
}

.header--floating .nav-links {
  gap: 2px;
}

@media (min-width: 769px) {
  .header--floating {
    position: fixed;
  }

  .header--floating .nav-links {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: min(90%, 1180px);
    height: var(--nav-pill-height);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 16px 0 200px;
    pointer-events: none;
    z-index: 2;
  }

  .header--floating .nav-links > li,
  .header--floating .nav-links .nav-item {
    pointer-events: auto;
  }

  .header--floating .nav {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    width: min(90%, 1180px);
    grid-template-columns: auto 1fr;
  }

  .header--floating .nav-toggle {
    display: none;
  }
}

.header--floating .nav-links > li > a {
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  color: var(--color-text-dark);
  transition: color var(--transition), background var(--transition);
}

.header--floating .nav-links > li > a:hover,
.header--floating .nav-links > li > a.active {
  color: var(--color-primary);
  background: rgba(46, 163, 242, 0.1);
}

.nav-cta {
  background: var(--grad-brand);
  color: #fff !important;
}

.nav-cta:hover {
  background: var(--grad-brand-bright) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px -8px rgba(124, 92, 255, 0.7);
}

.header--floating .lang-switch {
  margin-left: 6px;
  padding-left: 10px;
  border-left: 1px solid var(--color-border);
}

.header--floating .lang-btn {
  padding: 8px 8px;
  font-size: 13px;
}

/* Transparent state over the dark hero */
body:has(.hero) .header--floating.at-top .nav {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

body:has(.hero) .header--floating.at-top .nav-links > li > a,
body:has(.hero) .header--floating.at-top .lang-btn {
  color: rgba(255, 255, 255, 0.92);
}

body:has(.hero) .header--floating.at-top .nav-links > li > a:hover,
body:has(.hero) .header--floating.at-top .nav-links > li > a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

body:has(.hero) .header--floating.at-top .lang-switch {
  border-left-color: rgba(255, 255, 255, 0.25);
}

body:has(.hero) .header--floating.at-top .lang-btn.active {
  color: #fff;
}

body:has(.hero) .header--floating.at-top .nav-cta,
body:has(.hero) .header--floating.at-top .nav-cta:hover {
  color: #fff !important;
}

.header--floating .nav-toggle span {
  background: var(--color-text-dark);
}

body:has(.hero) .header--floating.at-top .nav-toggle span {
  background: #fff;
}

@media (max-width: 1024px) {
  .header--floating .nav-links > li > a {
    padding: 8px 9px;
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .header--floating .nav {
    display: grid;
    grid-template-columns: 1fr auto;
    border-radius: 18px;
    height: var(--nav-pill-height);
    padding: 0 12px 0 16px;
    overflow: visible;
    gap: 8px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .header--floating .nav-toggle {
    display: flex;
    grid-column: 2;
    justify-self: end;
    align-self: center;
    z-index: 3;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.92);
    flex-shrink: 0;
  }

  body:is(:has(.hero), :has(.page-hero)) .header--floating.at-top .nav-toggle {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
  }

  .header--floating .logo {
    grid-column: 1;
    justify-self: start;
    min-width: 0;
    overflow: hidden;
  }

  .header--floating .logo img {
    max-width: 260px;
  }

  .header--floating .logo img.logo-img--big {
    max-width: min(280px, 58vw);
  }

  .header--floating {
    z-index: 1102;
  }

  .header--floating .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(88vw, 320px);
    max-height: 100dvh;
    height: auto;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    white-space: normal;
    padding: calc(var(--header-height) + 12px) 18px 28px;
    border-radius: 0;
    border: none;
    border-left: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
    transform: translate3d(100%, 0, 0);
    opacity: 1;
    visibility: hidden;
    pointer-events: none;
    z-index: 1100;
    transition: transform 0.28s var(--ease-out), visibility 0.28s;
  }

  .header--floating .nav-links.open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
  }

  /* Keep mobile menu readable even when nav is over the hero */
  body:has(.hero) .header--floating.at-top .nav-links > li > a:not(.nav-cta),
  body:has(.page-hero) .header--floating.at-top .nav-links > li > a:not(.nav-cta) {
    color: var(--color-text-dark);
  }

  .header--floating .nav-links > li > a:not(.nav-cta) {
    color: var(--color-text-dark);
    text-align: left;
  }

}

/* =================================================================
   SCROLL REVEAL
   ================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}

.reveal.reveal-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-orb,
  .hero-kicker-dot,
  .hero-scroll-line::after {
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* =================================================================
   IMPACT SECTION
   ================================================================= */
.impact-section {
  position: relative;
  background:
    radial-gradient(700px 400px at 85% -10%, rgba(124, 92, 255, 0.08), transparent 60%),
    radial-gradient(700px 400px at 0% 110%, rgba(46, 163, 242, 0.08), transparent 60%),
    var(--color-bg);
}

.impact-counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.impact-counter {
  padding: 30px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.impact-counter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-brand-bright);
}

.impact-counter-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.impact-counter-label {
  display: block;
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text-dark);
}

.impact-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.impact-pdf-sections {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.impact-pdf-block {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.impact-pdf-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--color-heading-alt);
  line-height: 1.2;
}

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

.impact-pdf-col {
  padding: 0 28px;
}

.impact-pdf-col + .impact-pdf-col {
  border-left: 2px solid transparent;
  border-image: linear-gradient(180deg, #38e1ff 0%, #f0d060 100%) 1;
}

.impact-pdf-col-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-heading-alt);
  margin-bottom: 14px;
  line-height: 1.4;
}

.impact-pdf-col-desc {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--color-text-dark);
}

/* ---- Shared lazy image loading ---- */
.img-load-wrap {
  position: relative;
}

.img-load-wrap--loading img {
  opacity: 0;
}

.img-load-wrap--loaded img {
  opacity: 1;
  transition: opacity 0.35s ease;
}

.img-load__loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(110deg, var(--color-bg-alt) 8%, #eef3f8 18%, var(--color-bg-alt) 33%);
  background-size: 200% 100%;
  animation: gallery-shimmer 1.4s linear infinite;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.img-load__loader::after {
  content: '';
  width: 32px;
  height: 32px;
  border: 3px solid rgba(46, 163, 242, 0.2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: gallery-spin 0.75s linear infinite;
}

.img-load-wrap--loaded .img-load__loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.img-load-wrap--error .img-load__loader::after {
  display: none;
}

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

.impact-media-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--color-bg-alt);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16 / 10;
  transition: transform var(--transition), box-shadow var(--transition);
}

.impact-media-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.impact-media-item:focus,
.impact-media-item:focus-visible {
  outline: none;
}

.impact-media-item.img-load-wrap--loaded img {
  transition: opacity 0.35s ease, transform 0.5s var(--ease-out);
}

.impact-media-item:hover img {
  transform: scale(1.05);
}

.impact-media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.impact-pdf-summary {
  max-width: 920px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--color-text);
}

@media (max-width: 900px) {
  .impact-pdf-cols {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .impact-media-grid {
    grid-template-columns: 1fr;
  }

  .impact-pdf-col {
    padding: 0;
  }

  .impact-pdf-col + .impact-pdf-col {
    border-left: none;
    padding-top: 24px;
    border-top: 2px solid transparent;
    border-image: linear-gradient(90deg, #38e1ff 0%, #f0d060 100%) 1;
  }
}

.impact-chart {
  padding: 28px;
}

.impact-chart-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 18px;
}

.impact-chart-canvas {
  position: relative;
  height: 300px;
}

@media (max-width: 900px) {
  .impact-counters {
    grid-template-columns: repeat(2, 1fr);
  }
  .impact-charts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .impact-counters {
    grid-template-columns: 1fr;
  }
}

/* =================================================================
   PROFILE CONTENT — MODERN RESTYLE
   ================================================================= */
.profile-main {
  margin-top: 0;
}

.section {
  padding: 96px 0;
  position: relative;
}

/* Alternating soft backgrounds for rhythm */
.profile-section:nth-of-type(even) {
  background: var(--color-bg-alt);
}

.profile-section:nth-of-type(odd) {
  background: var(--color-bg);
}

/* Section header banners */
.profile-section-header {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 54px 44px;
  border-radius: var(--radius-lg);
  margin-bottom: 56px;
  color: #fff;
  box-shadow: var(--shadow-md);
  isolation: isolate;
}

.profile-section-header::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, rgba(7, 11, 24, 0.82) 0%, rgba(13, 20, 48, 0.62) 55%, rgba(124, 92, 255, 0.42) 100%);
}

/* Photo-backed banners (override legacy light overlays) */
#about .profile-section-header,
#industry-projects .profile-section-header,
#education .profile-section-header,
#media-impact .profile-section-header {
  justify-content: flex-end;
  min-height: 280px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

#about .profile-section-header { background-image: url('../assets/images/profile/about-section-bg.png'); }
#industry-projects .profile-section-header { background-image: url('../assets/images/profile/industry-section-bg.png'); }
#education .profile-section-header { background-image: url('../assets/images/profile/education-day1.png'); }
#media-impact .profile-section-header { background-image: url('../assets/images/profile/media-stats-banner.png'); }

/* Sections without a photo get the brand gradient */
#partners .profile-section-header,
#contact .profile-section-header {
  background: var(--color-ink-2);
}

#partners .profile-section-header::after,
#contact .profile-section-header::after {
  background: var(--grad-brand), radial-gradient(circle at 80% 20%, rgba(56, 225, 255, 0.4), transparent 60%);
  opacity: 0.92;
}

.profile-chapter {
  min-width: auto;
  padding: 0;
  background: none;
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 0.9;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: -0.03em;
}

.profile-section-header .section-title {
  color: #fff;
  text-align: left;
  margin: 0;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}

.section-desc {
  color: var(--color-text);
  font-weight: 500;
}

/* Subsections */
.profile-subsection {
  border-top: none;
  padding-top: 0;
}

.profile-subsection + .profile-subsection {
  margin-top: 8px;
}

.profile-subsection-title {
  position: relative;
  padding-left: 18px;
  font-size: 22px;
  color: var(--color-text-dark);
}

.profile-subsection-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 5px;
  border-radius: 3px;
  background: var(--grad-brand);
}

/* Cards */
.profile-card {
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.profile-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-brand-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(46, 163, 242, 0.4);
}

.profile-card:hover::before {
  transform: scaleX(1);
}

.profile-card h4 {
  font-family: var(--font-display);
  font-size: 16px;
}

/* List items */
.profile-list-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.profile-list-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.profile-list-num {
  font-family: var(--font-mono);
  font-weight: 700;
}

.profile-note {
  border-radius: var(--radius);
}

/* Advisors */
.profile-advisor {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.profile-advisor:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.profile-advisor-photo img {
  border-radius: var(--radius);
}

.profile-advisor-name {
  font-family: var(--font-display);
}

.profile-advisor-credentials p {
  color: var(--color-heading-alt);
}

/* Team groups */
.profile-team-group {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.profile-team-group:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.profile-team-group h4 {
  font-family: var(--font-display);
}

/* Person */
.profile-person {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

/* Stats */
.profile-stats {
  border: none;
  gap: 24px;
  flex-wrap: wrap;
}

.profile-stats .stat {
  flex: 1;
  min-width: 160px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.profile-stats .stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.profile-stats .stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Figures & galleries */
.profile-figure {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.profile-figure img {
  transition: transform 0.5s var(--ease-out);
}

.profile-figure:hover img {
  transform: scale(1.04);
}

.profile-gallery-item {
  border-radius: var(--radius);
}

/* =================================================================
   PROJECT SHOWCASE (tabbed)
   ================================================================= */
.project-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.project-tab {
  padding: 11px 20px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text-dark);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.project-tab:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.project-tab.active {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(124, 92, 255, 0.7);
}

.project-tab--skeleton {
  display: inline-block;
  width: 148px;
  height: 42px;
  padding: 0;
  border-color: transparent;
  background: linear-gradient(110deg, var(--color-bg-alt) 8%, #eef3f8 18%, var(--color-bg-alt) 33%);
  background-size: 200% 100%;
  animation: gallery-shimmer 1.4s linear infinite;
  cursor: default;
  pointer-events: none;
}

.project-tab--skeleton.active {
  background: linear-gradient(110deg, var(--color-bg-alt) 8%, #eef3f8 18%, var(--color-bg-alt) 33%);
  background-size: 200% 100%;
  box-shadow: none;
}

.project-tab--skeleton:nth-child(2) { width: 168px; animation-delay: 0.15s; }
.project-tab--skeleton:nth-child(3) { width: 132px; animation-delay: 0.3s; }

.profile-subsection.tab-panel[hidden] {
  display: none;
}

.profile-project {
  border: 1px solid var(--color-border);
  border-top: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.profile-project::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--grad-brand);
}

.profile-project:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.profile-project h4 {
  font-family: var(--font-display);
}

.profile-field h5 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =================================================================
   PARTNER MARQUEE
   ================================================================= */
.partner-marquee {
  margin-top: 36px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.partner-marquee-track {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}

.partner-marquee:hover .partner-marquee-track {
  animation-play-state: paused;
}

.partner-marquee-item {
  flex: 0 0 auto;
  width: 220px;
  height: 140px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.partner-marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .partner-marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
  }
}

.partners-group {
  border-top: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.partners-group-title {
  font-family: var(--font-display);
}

/* =================================================================
   FOOTER REDESIGN
   ================================================================= */
.footer {
  position: relative;
  background:
    radial-gradient(600px 300px at 85% 0%, rgba(124, 92, 255, 0.25), transparent 60%),
    var(--color-footer);
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-mono);
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }
  .profile-section-header {
    padding: 36px 26px;
    margin-bottom: 40px;
  }
  #about .profile-section-header,
  #industry-projects .profile-section-header,
  #education .profile-section-header,
  #media-impact .profile-section-header {
    min-height: 220px;
  }
}

/* =================================================================
   PAST EVENTS PAGE THEME
   ================================================================= */
.page-main {
  margin-top: 0;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-height) + 56px) 0 64px;
  color: #fff;
  background:
    radial-gradient(700px 400px at 80% 0%, rgba(124, 92, 255, 0.4), transparent 60%),
    linear-gradient(160deg, #070b18 0%, #0d1430 60%, #0a1026 100%);
}

.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 30%, #000 30%, transparent 75%);
}

.page-hero-orb {
  position: absolute;
  top: -120px;
  right: -60px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 225, 255, 0.5), transparent 70%);
  filter: blur(70px);
  animation: orb-float 16s ease-in-out infinite;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 14px 0 12px;
}

.page-hero-desc {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
}

.past-events-sidebar {
  border-top: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.past-events-month {
  font-family: var(--font-display);
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.past-events-grid .gallery-item {
  border-radius: var(--radius);
  border-color: var(--color-border);
}

.back-to-top {
  border-radius: 50%;
  background: var(--grad-brand);
}

.back-to-top:hover {
  background: var(--grad-brand-bright);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .page-hero-orb {
    animation: none;
  }
}

/* =================================================================
   MULTI-PAGE LAYER — grouped mega-menu, footer & Solana-style cards
   ================================================================= */

/* ---- Grouped mega-menu nav ---- */
.nav-item { position: relative; display: flex; align-items: center; }

.header--floating .nav-group-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: transparent;
  border-radius: 999px;
  color: var(--color-text-dark);
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}

.nav-caret { transition: transform var(--transition); }
.nav-item.has-dropdown.is-open .nav-caret,
.nav-item.expanded .nav-caret { transform: rotate(180deg); }

.header--floating .nav-group-btn:hover,
.nav-item.has-dropdown.is-open .nav-group-btn,
.nav-item.is-active > .nav-group-btn,
.nav-links > li.is-active > a {
  color: var(--color-primary);
  background: rgba(46, 163, 242, 0.1);
}

.mega-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  padding: 8px;
  border-radius: 16px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 50;
}

.mega-menu::before {
  content: '';
  position: absolute;
  top: -12px; left: 0; right: 0; height: 12px;
}

.nav-item.has-dropdown.is-open .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-inner { display: flex; flex-direction: column; gap: 2px; }

.mega-menu-link {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text-dark);
  transition: background var(--transition), color var(--transition);
}

.mega-menu-link:hover,
.mega-menu-link.is-active {
  background: rgba(46, 163, 242, 0.1);
  color: var(--color-primary);
}

/* At-top (over dark hero or page-hero) — white nav chrome on every page */
body:is(:has(.hero), :has(.page-hero)) .header--floating.at-top .nav {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}
body:is(:has(.hero), :has(.page-hero)) .header--floating.at-top .nav-links > li > a,
body:is(:has(.hero), :has(.page-hero)) .header--floating.at-top .nav-group-btn,
body:is(:has(.hero), :has(.page-hero)) .header--floating.at-top .lang-btn {
  color: rgba(255, 255, 255, 0.92);
}
body:is(:has(.hero), :has(.page-hero)) .header--floating.at-top .nav-links > li > a:hover,
body:is(:has(.hero), :has(.page-hero)) .header--floating.at-top .nav-links > li.is-active > a,
body:is(:has(.hero), :has(.page-hero)) .header--floating.at-top .nav-group-btn:hover,
body:is(:has(.hero), :has(.page-hero)) .header--floating.at-top .nav-item.is-active > .nav-group-btn,
body:is(:has(.hero), :has(.page-hero)) .header--floating.at-top .nav-item.has-dropdown.is-open .nav-group-btn {
  color: #fff; background: rgba(255, 255, 255, 0.16);
}
body:is(:has(.hero), :has(.page-hero)) .header--floating.at-top .nav-toggle span { background: #fff; }
body:is(:has(.hero), :has(.page-hero)) .header--floating.at-top .nav-cta,
body:is(:has(.hero), :has(.page-hero)) .header--floating.at-top .nav-cta:hover { color: #fff !important; }

/* ---- Mobile dropdowns ---- */
@media (max-width: 768px) {
  .nav-item { display: block; }
  .header--floating .nav-group-btn {
    width: 100%;
    justify-content: space-between;
    text-align: left;
    color: var(--color-text-dark);
  }

  /* Drawer has a light surface — never use hero at-top white link styles here */
  .header--floating .nav-links > li > a:not(.nav-cta),
  .header--floating .nav-links .nav-group-btn,
  .header--floating .nav-links .mega-menu-link,
  body:is(:has(.hero), :has(.page-hero)) .header--floating.at-top .nav-links > li > a:not(.nav-cta),
  body:is(:has(.hero), :has(.page-hero)) .header--floating.at-top .nav-group-btn,
  body:is(:has(.hero), :has(.page-hero)) .header--floating.at-top .mega-menu-link {
    color: var(--color-text-dark);
    background: transparent;
  }

  .header--floating .nav-links > li > a:not(.nav-cta):hover,
  .header--floating .nav-links > li > a:not(.nav-cta):active,
  .header--floating .nav-links > li.is-active > a:not(.nav-cta),
  .header--floating .nav-links .nav-group-btn:hover,
  .header--floating .nav-links .nav-group-btn:active,
  .header--floating .nav-links .nav-item.is-active > .nav-group-btn,
  .header--floating .nav-links .nav-item.expanded > .nav-group-btn,
  .header--floating .nav-links .nav-item.has-dropdown.is-open > .nav-group-btn,
  .header--floating .nav-links .mega-menu-link:hover,
  .header--floating .nav-links .mega-menu-link:active,
  .header--floating .nav-links .mega-menu-link.is-active,
  body:is(:has(.hero), :has(.page-hero)) .header--floating.at-top .nav-links > li > a:not(.nav-cta):hover,
  body:is(:has(.hero), :has(.page-hero)) .header--floating.at-top .nav-links > li > a:not(.nav-cta):active,
  body:is(:has(.hero), :has(.page-hero)) .header--floating.at-top .nav-links > li.is-active > a:not(.nav-cta),
  body:is(:has(.hero), :has(.page-hero)) .header--floating.at-top .nav-group-btn:hover,
  body:is(:has(.hero), :has(.page-hero)) .header--floating.at-top .nav-group-btn:active,
  body:is(:has(.hero), :has(.page-hero)) .header--floating.at-top .nav-item.is-active > .nav-group-btn,
  body:is(:has(.hero), :has(.page-hero)) .header--floating.at-top .nav-item.expanded > .nav-group-btn,
  body:is(:has(.hero), :has(.page-hero)) .header--floating.at-top .nav-item.has-dropdown.is-open > .nav-group-btn,
  body:is(:has(.hero), :has(.page-hero)) .header--floating.at-top .mega-menu-link:hover,
  body:is(:has(.hero), :has(.page-hero)) .header--floating.at-top .mega-menu-link.is-active {
    color: var(--color-primary);
    background: rgba(46, 163, 242, 0.08);
  }

  .mega-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: hidden;
    height: 0;
    min-width: 0;
    padding: 0 8px;
    margin: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
    overflow: hidden;
    transition: height var(--transition), padding var(--transition);
  }
  .nav-item.expanded .mega-menu {
    visibility: visible;
    height: auto;
    padding: 2px 8px 8px;
  }
  .mega-menu-link { padding-left: 22px; }
}

/* ---- Site footer (Solana-style mega footer) ---- */
.site-footer {
  position: relative;
  background:
    radial-gradient(700px 360px at 85% 0%, rgba(124, 92, 255, 0.22), transparent 60%),
    radial-gradient(600px 360px at 5% 100%, rgba(46, 163, 242, 0.14), transparent 60%),
    var(--color-footer);
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 0 0;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.6fr;
  gap: 40px;
  padding-bottom: 56px;
}

.site-footer-logo {
  height: 90px;
  width: auto;
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 18px;
}

.site-footer-tagline {
  max-width: 320px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer-col { display: flex; flex-direction: column; gap: 12px; }

.site-footer-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 4px;
}

.site-footer-col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  transition: color var(--transition);
}

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

.site-footer-contact,
.site-footer-address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: normal;
  text-transform: none;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer-contact {
  align-items: center;
  color: #fff;
}

.site-footer-contact:hover {
  color: #fff;
}

.site-footer-contact-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  object-fit: contain;
  margin-top: 3px;
}

.site-footer-contact .site-footer-contact-icon {
  margin-top: 0;
}

.site-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
}

.site-footer-bottom p {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 768px) {
  .site-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; padding-bottom: 40px; }
  .site-footer-brand { grid-column: 1 / -1; }
}

/* ---- Section helpers ---- */
.hero-lead, .page-hero-desc, .prose, .card-desc, .feature-card-desc,
.news-card-desc, .project-points li, .focus-desc, .value-card-desc {
  overflow-wrap: break-word;
  word-break: break-word;
}

.section--tint { background: var(--color-bg-alt); }
.section-kicker--light { color: rgba(255, 255, 255, 0.7); }
.section-kicker--light::before { background: var(--color-primary-bright); }
.section-cta { text-align: center; margin-top: 44px; }

.page-hero--compact { padding-bottom: 48px; }

/* ---- Logo strip ---- */
.logo-strip {
  overflow: hidden;
  padding: 28px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  border-bottom: 1px solid var(--color-border);
}
.logo-strip-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: marquee-scroll 36s linear infinite;
}
.logo-strip:hover .logo-strip-track { animation-play-state: paused; }
.logo-strip-item {
  flex: 0 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 0;
  opacity: 0.7;
  transition: opacity var(--transition);
}
.logo-strip-item img {
  height: 100%;
  width: auto;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.35s var(--ease-out), opacity var(--transition);
}
.logo-strip-item:hover {
  opacity: 1;
  z-index: 2;
}
.logo-strip-item:hover img {
  transform: scale(1.35);
}
@media (prefers-reduced-motion: reduce) {
  .logo-strip-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; row-gap: 24px; }
  .logo-strip-item:hover img { transform: none; }
}

/* ---- Feature grid (pillars) ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 34px 30px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(46, 163, 242, 0.4);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--grad-brand);
  color: #fff;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card-title { font-family: var(--font-display); font-size: 20px; color: var(--color-text-dark); }
.feature-card-desc { font-size: 14.5px; line-height: 1.7; color: var(--color-text); }
.feature-card-link {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-primary);
}

/* ---- Generic card grid ---- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(46, 163, 242, 0.4); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--color-bg-alt); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 24px 24px 28px; }
.card-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(46, 163, 242, 0.1);
  padding: 5px 11px;
  border-radius: 999px;
}
.card-title { font-family: var(--font-display); font-size: 18px; color: var(--color-text-dark); line-height: 1.3; }
.card-desc { font-size: 14px; line-height: 1.7; color: var(--color-text); }

.card--skeleton { pointer-events: none; }
.card--skeleton:hover { transform: none; box-shadow: var(--shadow-sm); }
.card-skeleton-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(110deg, var(--color-bg-alt) 8%, #eef3f8 18%, var(--color-bg-alt) 33%);
  background-size: 200% 100%;
  animation: gallery-shimmer 1.4s linear infinite;
}
.card-skeleton-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 24px 28px;
}
.card-skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(110deg, var(--color-bg-alt) 8%, #eef3f8 18%, var(--color-bg-alt) 33%);
  background-size: 200% 100%;
  animation: gallery-shimmer 1.4s linear infinite;
}
.card-skeleton-line--sm { width: 24%; height: 10px; }
.card-skeleton-line--lg { width: 70%; height: 16px; }
.card-skeleton-line--md { width: 90%; }
.card-skeleton-line--full { width: 100%; }
.card--skeleton:nth-child(2) .card-skeleton-media,
.card--skeleton:nth-child(2) .card-skeleton-line { animation-delay: 0.15s; }
.card--skeleton:nth-child(3) .card-skeleton-media,
.card--skeleton:nth-child(3) .card-skeleton-line { animation-delay: 0.3s; }
.card--skeleton:nth-child(4) .card-skeleton-media,
.card--skeleton:nth-child(4) .card-skeleton-line { animation-delay: 0.45s; }
.card--skeleton:nth-child(5) .card-skeleton-media,
.card--skeleton:nth-child(5) .card-skeleton-line { animation-delay: 0.6s; }

/* ---- News grid ---- */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.news-card {
  display: flex;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(46, 163, 242, 0.4); }
.news-card-media { flex: 0 0 42%; overflow: hidden; background: var(--color-bg-alt); }
.news-card-media img { width: 100%; height: 100%; object-fit: cover; min-height: 160px; transition: transform 0.5s var(--ease-out); }
.news-card:hover .news-card-media img { transform: scale(1.05); }
button.news-card-media {
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: zoom-in;
  text-align: left;
}
button.news-card-media:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

button.news-card-media.img-load-wrap--loaded img {
  transition: opacity 0.35s ease, transform 0.5s var(--ease-out);
}
.news-card-body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; }
.news-card-title { font-family: var(--font-display); font-size: 17px; color: var(--color-text-dark); line-height: 1.35; }
.news-card-desc { font-size: 13.5px; line-height: 1.65; color: var(--color-text); }

/* ---- CTA band ---- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 88px 0;
  color: #fff;
  background: linear-gradient(160deg, #070b18 0%, #0d1430 60%, #131c44 100%);
}
.cta-band-glow {
  position: absolute;
  top: -120px; left: 50%;
  width: 520px; height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(124, 92, 255, 0.4), transparent 65%);
  filter: blur(40px);
}
.cta-band-inner { position: relative; z-index: 1; text-align: center; max-width: 640px; margin: 0 auto; }
.cta-band-title { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px; }
.cta-band-desc { color: rgba(255, 255, 255, 0.75); font-size: 1.05rem; line-height: 1.7; margin-bottom: 30px; }

/* ---- About: split feature ---- */
.split-feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.split-feature-text .section-title { text-align: left; }
.prose { font-size: 15.5px; line-height: 1.85; color: var(--color-text); }
.split-feature-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* ---- About: value cards ---- */
.value-card {
  padding: 30px 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.value-card-num { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--color-primary); }
.value-card-title { font-family: var(--font-display); font-size: 18px; color: var(--color-text-dark); margin: 10px 0 8px; }
.value-card-desc { font-size: 14px; line-height: 1.7; color: var(--color-text); }

/* ---- About: focus list ---- */
.focus-list { display: flex; flex-direction: column; gap: 16px; max-width: 880px; margin: 0 auto; }
.focus-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 26px 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.focus-item:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.focus-num { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; line-height: 1; color: transparent; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; }
.focus-title { font-family: var(--font-display); font-size: 17px; color: var(--color-text-dark); margin-bottom: 6px; }
.focus-desc { font-size: 14px; line-height: 1.7; color: var(--color-text); }

/* ---- People (advisors) ---- */
.people-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.advisor-card {
  display: flex;
  gap: 22px;
  padding: 26px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.advisor-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.advisor-photo { flex: 0 0 110px; height: 130px; border-radius: var(--radius); overflow: hidden; background: var(--color-bg-alt); }
.advisor-photo img { width: 100%; height: 100%; object-fit: cover; }
.advisor-role { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-primary); }
.advisor-name { font-family: var(--font-display); font-size: 19px; color: var(--color-text-dark); margin: 6px 0 2px; }
.advisor-name-en { font-size: 13px; color: var(--color-heading-alt); margin-bottom: 10px; }
.advisor-lines { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.advisor-lines li { position: relative; padding-left: 16px; font-size: 13px; line-height: 1.55; color: var(--color-text); }
.advisor-lines li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary); }

.advisors-loading {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.advisor-card--skeleton {
  pointer-events: none;
  box-shadow: none;
}

.advisor-card--skeleton:hover {
  transform: none;
  box-shadow: none;
}

.advisor-skeleton-photo {
  flex: 0 0 110px;
  height: 130px;
  border-radius: var(--radius);
  background: linear-gradient(110deg, var(--color-bg-alt) 8%, #eef3f8 18%, var(--color-bg-alt) 33%);
  background-size: 200% 100%;
  animation: gallery-shimmer 1.4s linear infinite;
}

.advisor-skeleton-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

.advisor-skeleton-line {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(110deg, var(--color-bg-alt) 8%, #eef3f8 18%, var(--color-bg-alt) 33%);
  background-size: 200% 100%;
  animation: gallery-shimmer 1.4s linear infinite;
}

.advisor-skeleton-line--sm { width: 28%; height: 10px; }
.advisor-skeleton-line--lg { width: 62%; height: 18px; margin-bottom: 2px; }
.advisor-skeleton-line--md { width: 88%; }
.advisor-skeleton-line--full { width: 100%; }

.advisor-card--skeleton:nth-child(3) .advisor-skeleton-photo,
.advisor-card--skeleton:nth-child(3) .advisor-skeleton-line { animation-delay: 0.15s; }
.advisor-card--skeleton:nth-child(4) .advisor-skeleton-photo,
.advisor-card--skeleton:nth-child(4) .advisor-skeleton-line { animation-delay: 0.3s; }
.advisor-card--skeleton:nth-child(5) .advisor-skeleton-photo,
.advisor-card--skeleton:nth-child(5) .advisor-skeleton-line { animation-delay: 0.45s; }

@media (max-width: 768px) {
  .advisors-loading { grid-template-columns: 1fr; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Team ---- */
.team-groups { display: flex; flex-direction: column; gap: 44px; }
.team-group-title { font-family: var(--font-display); font-size: 20px; color: var(--color-text-dark); margin-bottom: 20px; padding-left: 16px; position: relative; }
.team-group-title::before { content: ''; position: absolute; left: 0; top: 3px; bottom: 3px; width: 5px; border-radius: 3px; background: var(--grad-brand); }
.team-members { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.team-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.team-photo { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--color-bg-alt); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-avatar {
  flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #fff;
  background: var(--grad-brand);
}
.team-name { font-size: 15px; color: var(--color-text-dark); }
.team-name-en { font-size: 12.5px; color: var(--color-heading-alt); }

/* ---- Projects (tabbed) ---- */
.tab-panel.is-hidden { display: none; }
.project-list { display: flex; flex-direction: column; gap: 24px; }
.project-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(46, 163, 242, 0.4); }
.project-card-media {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-alt);
  min-height: 200px;
}

.project-card-media--loading img {
  opacity: 0;
}

.project-card-media--loaded img {
  opacity: 1;
  transition: opacity 0.35s ease;
}

.project-card-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(110deg, var(--color-bg-alt) 8%, #eef3f8 18%, var(--color-bg-alt) 33%);
  background-size: 200% 100%;
  animation: gallery-shimmer 1.4s linear infinite;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.project-card-loader::after {
  content: '';
  width: 32px;
  height: 32px;
  border: 3px solid rgba(46, 163, 242, 0.2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: gallery-spin 0.75s linear infinite;
}

.project-card-media--loaded .project-card-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.project-card-media--error .project-card-loader::after {
  display: none;
}

.project-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.project-card:hover .project-card-media img { transform: scale(1.05); }
.project-card-body { padding: 28px 30px; }
.project-card-title { font-family: var(--font-display); font-size: 20px; color: var(--color-text-dark); margin-bottom: 6px; }
.project-card-meta { font-size: 13px; color: var(--color-heading-alt); margin-bottom: 16px; }
.project-points { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.project-points li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.65; color: var(--color-text); }
.project-points li::before {
  content: '';
  position: absolute; left: 0; top: 7px;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--grad-brand);
}

.project-card--skeleton {
  pointer-events: none;
  box-shadow: none;
}

.project-card--skeleton:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--color-border);
}

.project-skeleton-media {
  min-height: 200px;
  background: linear-gradient(110deg, var(--color-bg-alt) 8%, #eef3f8 18%, var(--color-bg-alt) 33%);
  background-size: 200% 100%;
  animation: gallery-shimmer 1.4s linear infinite;
}

.project-skeleton-body {
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-skeleton-line {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(110deg, var(--color-bg-alt) 8%, #eef3f8 18%, var(--color-bg-alt) 33%);
  background-size: 200% 100%;
  animation: gallery-shimmer 1.4s linear infinite;
}

.project-skeleton-line--lg { width: 72%; height: 20px; }
.project-skeleton-line--sm { width: 42%; height: 12px; }
.project-skeleton-line--md { width: 90%; }
.project-skeleton-line--full { width: 100%; }

.project-card--skeleton:nth-child(2) .project-skeleton-media,
.project-card--skeleton:nth-child(2) .project-skeleton-line { animation-delay: 0.15s; }

/* ---- Impact: stat band & masonry ---- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 44px 36px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #070b18, #0d1430);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.stat-item { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(120deg, #fff, #9fd8ff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { display: block; margin-top: 10px; font-size: 13px; color: rgba(255, 255, 255, 0.7); }

.masonry { columns: 4 200px; column-gap: 16px; }
.masonry-item {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--color-bg-alt);
  box-shadow: var(--shadow-sm);
  break-inside: avoid;
  transition: transform var(--transition), box-shadow var(--transition);
}
.masonry-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.masonry-item:focus,
.masonry-item:focus-visible { outline: none; }
.masonry-item img { width: 100%; display: block; }

/* ---- Partners ---- */
.partner-cols { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; }
.partner-col-title { font-family: var(--font-display); font-size: 18px; color: var(--color-text-dark); margin-bottom: 18px; }
.partner-chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.partner-chip {
  padding: 12px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text-dark);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition), color var(--transition);
}
.partner-chip:hover { transform: translateY(-2px); border-color: var(--color-primary); color: var(--color-primary); }

/* ---- Contact ---- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-primary .section-title { text-align: left; }
.contact-channels { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-top: 22px; }
.contact-channel { display: flex; flex-direction: column; gap: 3px; padding-bottom: 14px; border-bottom: 1px solid var(--color-border); }
.contact-channel-label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-heading-alt); }
.contact-channel-value { font-size: 16px; font-weight: 600; color: var(--color-text-dark); transition: color var(--transition); }
.contact-channel-value--with-icon,
.office-addr {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.contact-channel-value--with-icon { align-items: center; }
.contact-item-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  object-fit: contain;
  margin-top: 3px;
}
.contact-channel-value--with-icon .contact-item-icon { margin-top: 0; }
a.contact-channel-value:hover { color: var(--color-primary); }
.contact-offices { display: flex; flex-direction: column; gap: 16px; }
.office-card {
  padding: 22px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.office-card:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.office-label { font-family: var(--font-display); font-size: 16px; color: var(--color-text-dark); margin-bottom: 6px; }
.office-addr { font-size: 13.5px; line-height: 1.6; color: var(--color-text); }

/* ---- Events list ---- */
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.events-loading { grid-column: 1 / -1; text-align: center; padding: 40px 0; color: var(--color-text); font-family: var(--font-mono); }
.event-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(46, 163, 242, 0.4); }
.event-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-bg-alt); }
.event-card-media--loading img { opacity: 0; }
.event-card-media--loaded img { opacity: 1; transition: opacity 0.35s ease; }
.event-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease, transform 0.5s var(--ease-out);
}
.event-card:hover .event-card-media img { transform: scale(1.06); }
.event-card-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(110deg, var(--color-bg-alt) 8%, #eef3f8 18%, var(--color-bg-alt) 33%);
  background-size: 200% 100%;
  animation: gallery-shimmer 1.4s linear infinite;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.event-card-loader::after {
  content: '';
  width: 32px;
  height: 32px;
  border: 3px solid rgba(46, 163, 242, 0.2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: gallery-spin 0.75s linear infinite;
}
.event-card-media--loaded .event-card-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.event-card-count { z-index: 3; }
.event-card-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 2rem;
  color: #fff; background: var(--grad-brand);
}
.event-card-count {
  position: absolute; bottom: 12px; right: 12px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600;
  color: #fff; background: rgba(7, 11, 24, 0.7);
  padding: 5px 10px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.event-card-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; }
.event-card-date { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--color-primary); }
.event-card-title { font-family: var(--font-display); font-size: 16px; line-height: 1.4; color: var(--color-text-dark); }

/* ---- Event detail album ---- */
.back-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.8); transition: color var(--transition); }
.back-link:hover { color: #fff; }
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.album-item {
  position: relative;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--color-bg-alt);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.album-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.album-item img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s ease; }
.album-item--loaded img { opacity: 1; }
.album-item-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(110deg, var(--color-bg-alt) 8%, #eef3f8 18%, var(--color-bg-alt) 33%);
  background-size: 200% 100%;
  animation: gallery-shimmer 1.4s linear infinite;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.album-item-loader::after {
  content: '';
  width: 28px;
  height: 28px;
  border: 3px solid rgba(46, 163, 242, 0.2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: gallery-spin 0.75s linear infinite;
}
.album-item--loaded .album-item-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .feature-grid, .card-grid, .card-grid--3, .events-grid { grid-template-columns: repeat(2, 1fr); }
  .team-members { grid-template-columns: repeat(3, 1fr); }
  .masonry { columns: 3 180px; }
}
@media (max-width: 768px) {
  .feature-grid, .card-grid, .card-grid--3, .news-grid, .events-grid,
  .split-feature, .partner-cols, .contact-layout, .stat-band, .album-grid { grid-template-columns: 1fr; }
  .split-feature { gap: 32px; }
  .news-card { flex-direction: column; }
  .news-card-media { flex-basis: auto; aspect-ratio: 16 / 9; }
  .project-card { grid-template-columns: 1fr; }
  .team-members { grid-template-columns: repeat(2, 1fr); }
  .stat-band { padding: 32px 24px; gap: 28px; }
  .masonry { columns: 2 140px; }
  .album-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .team-members { grid-template-columns: 1fr; }
}

/* ---- Admin page ---- */
.admin-page {
  background: var(--color-bg);
  min-height: 100vh;
}

.admin-auth-pending .admin-layout {
  visibility: hidden;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  flex: 0 0 240px;
  width: 240px;
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  padding: 28px 18px;
  position: sticky;
  top: 0;
  align-self: flex-start;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-logout-btn {
  width: 100%;
  margin-top: auto;
  padding-top: 20px;
}

.admin-brand {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-dark);
  text-decoration: none;
  margin-bottom: 28px;
  padding: 0 10px;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-nav-item {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.admin-nav-item:hover {
  background: var(--color-bg-alt);
  color: var(--color-text-dark);
}

.admin-nav-item.is-active {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 8px 20px -12px rgba(124, 92, 255, 0.8);
}

.admin-content {
  flex: 1;
  min-width: 0;
}

.admin-panel {
  display: none;
  padding: 32px 0 48px;
}

.admin-panel.is-active {
  display: block;
}

.admin-panel-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.admin-login-section {
  padding: 72px 0 96px;
}

.admin-login-card {
  max-width: 420px;
  margin: 0 auto;
  padding: 36px 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.admin-login-title {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--color-text-dark);
  margin-bottom: 8px;
}

.admin-login-desc {
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 24px;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.admin-field span {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-heading-alt);
}

.admin-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
  color: var(--color-text-dark);
  background: var(--color-surface);
}

.admin-field input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(46, 163, 242, 0.15);
}

.admin-login-error {
  margin-bottom: 16px;
  font-size: 13px;
  color: #d64545;
}

.admin-login-submit {
  width: 100%;
}

.admin-section-head {
  margin-bottom: 24px;
}

.admin-section-head--row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.admin-section-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-team-groups {
  margin-top: 8px;
}

.admin-team-group {
  padding: 20px 22px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.admin-team-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.admin-team-group-head .team-group-title {
  margin-bottom: 0;
  flex: 1;
}

.admin-team-group .team-members {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.admin-team-group .team-card {
  min-width: 0;
  padding: 40px 16px 18px 18px;
  overflow: hidden;
}

.admin-team-group .team-card:hover {
  transform: none;
}

.admin-team-group .team-card-body {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.admin-team-group .team-name,
.admin-team-group .team-name-en {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-team-group .team-name-en {
  margin-top: 2px;
}

.admin-team-group .admin-empty {
  grid-column: 1 / -1;
}

@media (max-width: 768px) {
  .admin-team-group .team-members {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 480px) {
  .admin-team-group .team-members {
    grid-template-columns: 1fr;
  }
}

.admin-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.admin-img-wrap--loading img {
  opacity: 0;
}

.admin-img-wrap--loaded img {
  opacity: 1;
  transition: opacity 0.35s ease;
}

.admin-img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-img-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(110deg, var(--color-bg-alt) 8%, #eef3f8 18%, var(--color-bg-alt) 33%);
  background-size: 200% 100%;
  animation: gallery-shimmer 1.4s linear infinite;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.admin-img-loader::after {
  content: '';
  width: 28px;
  height: 28px;
  border: 3px solid rgba(46, 163, 242, 0.2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: gallery-spin 0.75s linear infinite;
}

.admin-img-wrap--loaded .admin-img-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.admin-img-wrap--error .admin-img-loader::after {
  display: none;
}

.admin-img-wrap--project {
  min-height: 200px;
}

.admin-img-wrap--card {
  aspect-ratio: 16 / 10;
}

.admin-img-wrap--advisor {
  flex: 0 0 110px;
  width: 110px;
  height: 130px;
  border-radius: var(--radius);
}

.admin-img-wrap--team {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.event-card-media .admin-img-wrap--event {
  position: absolute;
  inset: 0;
}

.admin-img-wrap--thumb {
  position: absolute;
  inset: 0;
}

.admin-page .card:hover .admin-img-wrap img,
.admin-page .project-card:hover .admin-img-wrap img,
.admin-page .event-card:hover .admin-img-wrap img {
  transform: none;
}

.admin-field-hint {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-heading-alt);
}

.admin-field-hint--locked {
  color: #9a6700;
}

.admin-field.is-locked input[type="date"] {
  background: var(--color-bg-alt);
  color: var(--color-heading-alt);
  cursor: not-allowed;
  opacity: 0.85;
}

.admin-modal-dialog--wide {
  width: min(640px, 100%);
}

.admin-modal--saving .admin-modal-backdrop {
  pointer-events: none;
}

.admin-modal--saving .admin-modal-close[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn.is-loading {
  position: relative;
  pointer-events: none;
}

.btn.is-loading::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: gallery-spin 0.75s linear infinite;
  vertical-align: -2px;
}

.btn-outline.is-loading::after {
  border-color: rgba(46, 163, 242, 0.25);
  border-top-color: var(--color-primary);
}

.admin-events-grid .event-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: default;
}

.admin-events-grid .event-card:hover {
  transform: none;
}

.admin-event-title-en {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--color-heading-alt);
}

.admin-event-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.admin-event-photo {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

.admin-event-photo .admin-img-loader::after {
  width: 22px;
  height: 22px;
  border-width: 2px;
}

.admin-event-photo-delete {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(214, 69, 69, 0.92);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.admin-required {
  color: #d64545;
  font-style: normal;
}

.admin-field input[type="file"] {
  width: 100%;
  padding: 10px 0;
  font-size: 14px;
  color: var(--color-text-dark);
}

.admin-image-filename {
  margin-top: 8px;
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 600;
}

.admin-image-preview {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-image-preview img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

.admin-image-preview-clear {
  align-self: flex-start;
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-heading-alt);
  font-size: 13px;
  cursor: pointer;
}

.admin-image-preview-clear:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.admin-field textarea,
.admin-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
  color: var(--color-text-dark);
  background: var(--color-surface);
  resize: vertical;
}

.admin-field textarea:focus,
.admin-field select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(46, 163, 242, 0.15);
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

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

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.admin-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 28px 28px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.admin-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-text-dark);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.admin-modal-close:hover {
  background: var(--color-border);
}

.admin-modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--color-text-dark);
  margin-bottom: 20px;
  padding-right: 36px;
}

.admin-modal-form .admin-field {
  margin-bottom: 16px;
}

.admin-modal-error {
  margin-bottom: 14px;
  font-size: 13px;
  color: #d64545;
}

.admin-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

body.admin-modal-open {
  overflow: hidden;
}

.admin-section-title {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--color-text-dark);
  margin-bottom: 8px;
}

.admin-section-desc {
  font-size: 14px;
  color: var(--color-text);
}

.admin-empty {
  padding: 24px 0;
  color: var(--color-heading-alt);
  font-size: 14px;
}

.admin-project-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-tab-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.admin-delete-btn {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(214, 69, 69, 0.35);
  border-radius: 50%;
  background: #fff5f5;
  color: #d64545;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.admin-delete-btn:hover:not(:disabled) {
  background: #d64545;
  border-color: #d64545;
  color: #fff;
  transform: scale(1.05);
}

.admin-delete-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-card-deletable {
  position: relative;
}

.admin-card-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-card-actions.admin-card-actions--inline,
.admin-group-actions {
  position: static;
  top: auto;
  right: auto;
  flex-shrink: 0;
}

.admin-edit-btn {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(46, 163, 242, 0.35);
  border-radius: 50%;
  background: #f0f8ff;
  color: var(--color-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), color var(--transition);
}

.admin-edit-btn svg {
  width: 14px;
  height: 14px;
  display: block;
}

.admin-edit-btn:hover:not(:disabled) {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transform: scale(1.05);
}

.admin-edit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-delete-btn--card,
.admin-edit-btn--card {
  position: static;
}

@media (max-width: 768px) {
  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    flex: none;
    min-height: auto;
    position: static;
    padding: 16px;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .admin-brand {
    margin-bottom: 14px;
    padding: 0;
  }

  .admin-nav {
    flex-direction: row;
    gap: 8px;
  }

  .admin-nav-item {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    font-size: 13px;
  }

  .admin-panel {
    padding: 24px 0 40px;
  }

  .admin-panel-inner {
    padding: 0 20px;
  }
}

/* =================================================================
   MOBILE OPTIMIZATION (global)
   ================================================================= */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1090;
  background: rgba(7, 11, 24, 0.52);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.nav-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .container {
    width: 100%;
    max-width: none;
    padding: 0 16px;
  }

  .section {
    padding: 52px 0;
  }

  .section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .page-hero {
    padding: calc(var(--header-height) + 28px) 0 44px;
  }

  .page-hero-title {
    font-size: clamp(1.6rem, 7.5vw, 2.35rem);
    line-height: 1.15;
    margin: 10px 0 8px;
  }

  .page-hero-desc {
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: none;
  }

  .page-hero-orb {
    width: 220px;
    height: 220px;
    top: -80px;
    right: -70px;
  }

  .project-tabs,
  .admin-project-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    margin-bottom: 22px;
    padding-bottom: 6px;
  }

  .project-tabs::-webkit-scrollbar,
  .admin-project-tabs::-webkit-scrollbar {
    display: none;
  }

  .project-tab {
    flex: 0 0 auto;
    padding: 10px 16px;
    font-size: 13px;
    white-space: nowrap;
  }

  .project-card-body {
    padding: 20px 18px 22px;
  }

  .project-card-title {
    font-size: 18px;
  }

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

  .cta-band {
    padding: 48px 0;
  }

  .cta-band-title {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  .header--floating {
    padding: 10px 0;
  }

  .header--floating .nav {
    height: var(--nav-pill-height);
    padding: 0 10px 0 14px;
  }

  .header--floating .logo img {
    max-width: 210px;
    padding: 3px 6px;
    border-radius: 8px;
  }

  .header--floating .logo img.logo-img--big {
    max-width: min(240px, 62vw);
  }

  .header--floating .nav-toggle {
    z-index: 1103;
    width: 40px;
    height: 40px;
  }

  .header--floating .nav-links > li > a:not(.nav-cta),
  .header--floating .nav-group-btn {
    padding: 12px 0;
    font-size: 15px;
    border-radius: 0;
    border-bottom: 1px solid var(--color-border);
    background: transparent;
    width: 100%;
  }

  .header--floating .nav-links .lang-switch {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
    border-bottom: none;
  }

  .header--floating .nav-links .lang-btn {
    width: auto;
    flex: 0 0 auto;
    min-width: 52px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-alt);
    color: var(--color-text-dark);
  }

  .header--floating .nav-links .lang-btn:hover,
  .header--floating .nav-links .lang-btn:active,
  body:is(:has(.hero), :has(.page-hero)) .header--floating.at-top .nav-links .lang-btn,
  body:is(:has(.hero), :has(.page-hero)) .header--floating.at-top .nav-links .lang-btn:hover,
  body:is(:has(.hero), :has(.page-hero)) .header--floating.at-top .nav-links .lang-btn:active,
  body:has(.hero) .header--floating.at-top .nav-links .lang-btn,
  body:has(.page-hero) .header--floating.at-top .nav-links .lang-btn {
    color: var(--color-text-dark);
    background: var(--color-bg-alt);
  }

  .header--floating .nav-links .lang-btn.active,
  body:is(:has(.hero), :has(.page-hero)) .header--floating.at-top .nav-links .lang-btn.active,
  body:has(.hero) .header--floating.at-top .nav-links .lang-btn.active,
  body:has(.page-hero) .header--floating.at-top .nav-links .lang-btn.active {
    color: var(--color-primary) !important;
    background: rgba(46, 163, 242, 0.14) !important;
    border-color: rgba(46, 163, 242, 0.45);
    font-weight: 700;
  }

  .header--floating .nav-links .nav-cta {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 13px 20px;
    border-bottom: none;
    border-radius: 999px;
    text-align: center;
    background: var(--grad-brand) !important;
    color: #fff !important;
    box-shadow: 0 6px 18px -8px rgba(124, 92, 255, 0.55);
  }

  .mega-menu-link {
    padding: 10px 0 10px 18px;
    font-size: 14px;
    color: var(--color-text-dark);
  }

  .header--floating .nav-links .nav-cta:hover,
  .header--floating .nav-links .nav-cta:active,
  .header--floating .nav-links .nav-cta.is-active,
  body:is(:has(.hero), :has(.page-hero)) .header--floating.at-top .nav-links .nav-cta,
  body:is(:has(.hero), :has(.page-hero)) .header--floating.at-top .nav-links .nav-cta:hover,
  body:is(:has(.hero), :has(.page-hero)) .header--floating.at-top .nav-links .nav-cta:active {
    background: var(--grad-brand-bright) !important;
    color: #fff !important;
  }

  .card-body {
    padding: 18px 18px 22px;
  }

  .card-title {
    font-size: 16px;
  }

  .feature-card {
    padding: 24px 20px;
  }

  .site-footer {
    padding-top: 48px;
  }

  .site-footer-inner {
    gap: 24px;
  }

  /* Events list — compact cards, smoother hero transition */
  .page-hero + .section {
    margin-top: -16px;
    padding-top: 36px;
    border-radius: 20px 20px 0 0;
    background: var(--color-bg);
    position: relative;
    z-index: 1;
  }

  .events-grid {
    gap: 16px;
  }

  .event-card {
    border-radius: var(--radius);
  }

  .event-card-media {
    aspect-ratio: 16 / 9;
    max-height: 210px;
  }

  .event-card-body {
    padding: 14px 16px 18px;
    gap: 6px;
  }

  .event-card-title {
    font-size: 15px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .event-card-date {
    font-size: 11.5px;
  }

  .section-kicker--light {
    font-size: 11px;
  }

  .advisor-card {
    padding: 18px;
    gap: 16px;
  }

  .advisor-photo {
    flex: 0 0 88px;
    height: 104px;
  }

  .advisor-name {
    font-size: 17px;
  }

  .card-media {
    aspect-ratio: 16 / 9;
    max-height: 200px;
  }

  .news-card-media {
    min-height: 0;
  }

  .stat-band {
    padding: 28px 20px;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .page-hero {
    padding-bottom: 36px;
  }

  .page-hero + .section {
    margin-top: -12px;
    padding-top: 28px;
  }

  .event-card {
    flex-direction: row;
    align-items: stretch;
    min-height: 108px;
  }

  .event-card-media {
    flex: 0 0 38%;
    max-width: 140px;
    max-height: none;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius) 0 0 var(--radius);
  }

  .event-card-body {
    flex: 1;
    justify-content: center;
    padding: 12px 14px 12px 4px;
  }

  .event-card-title {
    font-size: 14px;
    -webkit-line-clamp: 3;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .hero-metric-label {
    font-size: 11px;
  }

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

  .admin-nav {
    flex-wrap: wrap;
  }

  .admin-nav-item {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
  }
}
