:root {
  --bg: #0b0c10;
  --bg2: #0f1118;
  --panel: rgba(255, 255, 255, 0.06);
  --panel2: rgba(255, 255, 255, 0.08);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);
  --muted2: rgba(255, 255, 255, 0.52);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 16px 50px rgba(0, 0, 0, 0.4);
  --brand: #8bf5c6;
  --brand2: #7aa7ff;
  --danger: #ff6b6b;
  --radius: 16px;
  --radius2: 22px;
  --container: 1100px;
  --font: "Noto Sans SC", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
}

html[data-theme="light"] {
  --bg: #fbfbfd;
  --bg2: #f3f5fb;
  --panel: rgba(17, 24, 39, 0.04);
  --panel2: rgba(17, 24, 39, 0.06);
  --text: rgba(17, 24, 39, 0.92);
  --muted: rgba(17, 24, 39, 0.68);
  --muted2: rgba(17, 24, 39, 0.52);
  --border: rgba(17, 24, 39, 0.12);
  --shadow: 0 16px 50px rgba(17, 24, 39, 0.12);
  --brand: #0ea5e9;
  --brand2: #22c55e;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(1200px 500px at 20% 10%, rgba(138, 245, 198, 0.14), transparent 60%),
    radial-gradient(1000px 600px at 80% 20%, rgba(122, 167, 255, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  line-height: 1.6;
  letter-spacing: 0.2px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--panel2);
  border: 1px solid var(--border);
  color: var(--text);
  z-index: 999;
  transition: top 180ms ease;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(
    180deg,
    rgba(10, 10, 12, 0.8),
    rgba(10, 10, 12, 0.45)
  );
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

html[data-theme="light"] .site-header {
  background: linear-gradient(180deg, rgba(251, 251, 253, 0.9), rgba(251, 251, 253, 0.6));
}

.site-header[data-elevated="true"] {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(139, 245, 198, 0.22), rgba(122, 167, 255, 0.18));
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  font-weight: 700;
  letter-spacing: 0;
}

.brand-name {
  font-weight: 650;
}

.nav {
  display: flex;
  gap: 14px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.nav-link {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
  transition: background 160ms ease, color 160ms ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.nav-link[aria-current="page"] {
  background: linear-gradient(135deg, rgba(139, 245, 198, 0.16), rgba(122, 167, 255, 0.1));
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease,
    box-shadow 160ms ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.btn:hover {
  transform: translateY(-1px);
  background: var(--panel2);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  border-color: rgba(139, 245, 198, 0.24);
  background: linear-gradient(135deg, rgba(139, 245, 198, 0.22), rgba(122, 167, 255, 0.14));
}

.btn-ghost {
  background: transparent;
  box-shadow: none;
}

.btn-icon {
  font-family: var(--mono);
  font-size: 14px;
}

.hero {
  position: relative;
  padding: 70px 0 46px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -200px -200px auto -200px;
  height: 500px;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(139, 245, 198, 0.18), transparent 70%),
    radial-gradient(closest-side, rgba(122, 167, 255, 0.16), transparent 70%);
  filter: blur(4px);
  opacity: 0.9;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
  align-items: start;
}

.hero-copy {
  padding: 10px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 12px;
}

.hero-title {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.6px;
}

.hero-subtitle {
  margin: 14px 0 20px;
  color: var(--muted);
  font-size: 16px;
  max-width: 60ch;
}

.hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 18px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
}

.metric {
  padding: 14px 14px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.metric dt {
  color: var(--muted2);
  font-size: 12px;
  margin: 0 0 6px;
}

.metric dd {
  margin: 0;
  font-weight: 650;
}

.hero-card {
  position: sticky;
  top: 88px;
}

.card,
.panel {
  border-radius: var(--radius2);
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.card {
  padding: 18px;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.chip {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

.icon-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.quote {
  margin: 8px 0 6px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.quote-meta {
  margin: 0;
  color: var(--muted2);
  font-size: 13px;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.mini-list {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.mini-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.mini-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  background: radial-gradient(circle at 30% 30%, var(--brand), var(--brand2));
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.section {
  padding: 56px 0;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.03), transparent);
}

.section-head {
  margin-bottom: 18px;
  display: grid;
  gap: 8px;
}

.section-title {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.2px;
}

.page-title {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.3px;
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 78ch;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.panel {
  padding: 18px;
}

.panel-title {
  margin: 0 0 10px;
  font-size: 16px;
}

.panel-text {
  margin: 0;
  color: var(--muted);
}

.bullets {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.links {
  display: grid;
  gap: 10px;
}

.link-card {
  padding: 12px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.link-card:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

.link-title {
  display: block;
  font-weight: 650;
  margin-bottom: 4px;
}

.link-desc {
  display: block;
  color: var(--muted2);
  font-size: 13px;
}

.timeline {
  display: grid;
  gap: 12px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}

.event {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
}

.event-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: radial-gradient(circle at 30% 30%, rgba(139, 245, 198, 0.32), rgba(122, 167, 255, 0.14));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
  margin-left: 0;
  margin-top: 8px;
}

.event-card {
  padding: 16px;
  border-radius: var(--radius2);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.event-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.event-title {
  margin: 0;
  font-size: 16px;
}

.event-date {
  color: var(--muted2);
  font-size: 12px;
  font-family: var(--mono);
}

.event-text {
  margin: 0;
  color: var(--muted);
}

.event-tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 10px;
  border-radius: 999px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.photo {
  position: relative;
  border-radius: var(--radius2);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  cursor: zoom-in;
  min-height: 150px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.photo:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.02);
}

.photo .photo-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  right: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

html[data-theme="light"] .photo .photo-label {
  background: rgba(255, 255, 255, 0.64);
  color: rgba(17, 24, 39, 0.88);
}

.span-6 {
  grid-column: span 6;
}

.span-4 {
  grid-column: span 4;
}

.span-8 {
  grid-column: span 8;
}

.span-12 {
  grid-column: span 12;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
  align-items: start;
}

.kv {
  display: grid;
  gap: 10px;
}

.kv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.kv-key {
  color: var(--muted2);
  font-size: 12px;
}

.kv-val {
  font-weight: 600;
}

.muted {
  margin: 0;
  color: var(--muted);
}

.form {
  display: grid;
  gap: 12px;
}

.form-row {
  display: grid;
  gap: 6px;
}

.label {
  font-size: 12px;
  color: var(--muted2);
}

.input,
.textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 12px 12px;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.input:focus,
.textarea:focus {
  border-color: rgba(139, 245, 198, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  min-height: 18px;
}

.site-footer {
  padding: 26px 0 38px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-left,
.footer-right {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-link {
  color: var(--muted);
}

.footer-link:hover {
  color: var(--text);
}

.footer-dot {
  margin: 0 8px;
  opacity: 0.5;
}

.modal {
  width: min(980px, calc(100% - 32px));
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 14px;
  background: rgba(10, 10, 12, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--text);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}

html[data-theme="light"] .modal {
  background: rgba(251, 251, 253, 0.8);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
}

.modal-figure {
  margin: 0;
  display: grid;
  gap: 10px;
}

.modal-figure img {
  width: 100%;
  max-height: min(72vh, 720px);
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}

.modal-caption {
  color: var(--muted);
  font-size: 13px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.quick-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: var(--radius2);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
  transition: transform 170ms ease, background 170ms ease, border-color 170ms ease;
}

.quick-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

.quick-title {
  font-weight: 650;
}

.quick-desc {
  color: var(--muted);
  font-size: 13px;
}

.carousel {
  position: relative;
}

.carousel-shell {
  border-radius: var(--radius2);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.carousel-viewport {
  overflow: hidden;
  touch-action: pan-y;
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  transform: translateX(0%);
}

.carousel-slide {
  position: relative;
  aspect-ratio: 16 / 8;
  min-height: 260px;
  background: rgba(0, 0, 0, 0.12);
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.04);
}

.carousel-overlay {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  gap: 4px;
}

html[data-theme="light"] .carousel-overlay {
  background: rgba(255, 255, 255, 0.68);
  color: rgba(17, 24, 39, 0.92);
}

.carousel-title {
  font-weight: 650;
}

.carousel-desc {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

html[data-theme="light"] .carousel-desc {
  color: rgba(17, 24, 39, 0.68);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  width: 10px;
  height: 10px;
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.dot[data-active="true"] {
  transform: scale(1.25);
  background: linear-gradient(135deg, rgba(139, 245, 198, 0.4), rgba(122, 167, 255, 0.24));
  border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    position: static;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .quick-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .header-inner {
    gap: 10px;
  }

  .brand {
    min-width: auto;
  }

  .btn .btn-text {
    display: none;
  }

  .hero {
    padding: 58px 0 36px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .span-8,
  .span-6,
  .span-4,
  .span-12 {
    grid-column: span 6;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }
}
