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

/* ========== CSS CUSTOM PROPERTIES (DARK MODE SUPPORT) ========== */
:root {
  /* Light theme (default) */
  --bg-main: #e6f4ee;
  --bg-card: rgba(255, 255, 255, .65);
  --bg-card-hover: rgba(255, 255, 255, .85);
  --bg-topbar: rgba(230, 244, 238, .9);
  --bg-fcard: rgba(255, 255, 255, .6);
  --bg-tat: rgba(255, 255, 255, .55);
  --bg-chip: rgba(255, 255, 255, .6);
  --bg-key-hint: rgba(255, 255, 255, .6);

  --text-primary: #0e2e2e;
  --text-body: #1a3a3a;
  --text-secondary: #4a7a6a;
  --text-muted: #5a8a7a;
  --text-accent: #0e5a4a;

  --border-light: rgba(42, 138, 122, .1);
  --border-hover: rgba(42, 170, 138, .25);
  --shadow-light: rgba(42, 138, 122, .05);
  --shadow-hover: rgba(42, 138, 122, .08);

  --accent: #2aaa8a;
  --accent-dim: rgba(42, 170, 138, .08);
  --accent-border: rgba(42, 170, 138, .18);
  --grad-start: #0e5a4a;
  --grad-end: #2aaa8a;

  --tbl-header-bg: rgba(42, 170, 138, .1);
  --tbl-header-color: #0e4a3a;
  --tbl-cell-color: #1a4a3a;
  --tbl-hover: rgba(42, 170, 138, .04);

  --challenge-bg: rgba(200, 70, 70, .025);
  --challenge-border: rgba(200, 70, 70, .1);
  --challenge-text: #3a2a2a;
  --challenge-accent: #aa3a3a;
  --challenge-impact-bg: rgba(200, 70, 70, .04);
  --challenge-impact-border: rgba(200, 70, 70, .1);

  --badge-bg: rgba(42, 170, 138, .1);
  --badge-color: #0e5a4a;

  --vision-bg: linear-gradient(135deg, rgba(42, 170, 138, .06), rgba(80, 170, 210, .04));
  --vision-border: rgba(42, 170, 138, .12);

  --particle-color: rgba(42, 170, 138, .35);
  --particle-line: rgba(42, 170, 138, .08);
}

[data-theme="dark"] {
  --bg-main: #0a1a14;
  --bg-card: rgba(18, 38, 30, .8);
  --bg-card-hover: rgba(22, 48, 38, .9);
  --bg-topbar: rgba(10, 26, 20, .92);
  --bg-fcard: rgba(16, 34, 28, .75);
  --bg-tat: rgba(16, 34, 28, .7);
  --bg-chip: rgba(20, 40, 32, .7);
  --bg-key-hint: rgba(16, 32, 26, .8);

  --text-primary: #d4f0e4;
  --text-body: #b4d8c8;
  --text-secondary: #7aaa94;
  --text-muted: #5a8a72;
  --text-accent: #4ae0b4;

  --border-light: rgba(42, 170, 138, .12);
  --border-hover: rgba(42, 200, 158, .3);
  --shadow-light: rgba(0, 0, 0, .2);
  --shadow-hover: rgba(42, 170, 138, .12);

  --accent: #3ad4a8;
  --accent-dim: rgba(42, 200, 158, .1);
  --accent-border: rgba(42, 200, 158, .2);
  --grad-start: #2aaa8a;
  --grad-end: #4ae0b4;

  --tbl-header-bg: rgba(42, 170, 138, .15);
  --tbl-header-color: #a0e0c8;
  --tbl-cell-color: #90c8b4;
  --tbl-hover: rgba(42, 170, 138, .08);

  --challenge-bg: rgba(200, 70, 70, .06);
  --challenge-border: rgba(200, 100, 100, .15);
  --challenge-text: #e0b0b0;
  --challenge-accent: #e07070;
  --challenge-impact-bg: rgba(200, 70, 70, .08);
  --challenge-impact-border: rgba(200, 100, 100, .12);

  --badge-bg: rgba(42, 200, 158, .15);
  --badge-color: #4ae0b4;

  --vision-bg: linear-gradient(135deg, rgba(42, 170, 138, .1), rgba(80, 170, 210, .06));
  --vision-border: rgba(42, 170, 138, .18);

  --particle-color: rgba(58, 212, 168, .4);
  --particle-line: rgba(58, 212, 168, .1);
}

html {
  font-size: 22px;
  scroll-behavior: smooth;
}

@media (max-width: 1200px) {
  html {
    font-size: 20px;
  }
}

@media (max-width: 992px) {
  html {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
}

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg-main);
  color: var(--text-body);
  overflow-x: hidden;
  transition: background .4s, color .4s;
}

/* ========== CANVAS PARTICLE BACKGROUND ========== */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ========== SCIENCE BACKGROUND ========== */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none
}

.bg-layer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 500px at 10% 15%, rgba(56, 180, 140, .12) 0, transparent 70%),
    radial-gradient(ellipse 500px 400px at 90% 20%, rgba(80, 170, 210, .1) 0, transparent 70%),
    radial-gradient(ellipse 700px 500px at 50% 85%, rgba(56, 180, 140, .08) 0, transparent 60%),
    radial-gradient(ellipse 400px 300px at 75% 50%, rgba(120, 200, 160, .06) 0, transparent 60%)
}

[data-theme="dark"] .bg-layer::before {
  background:
    radial-gradient(ellipse 600px 500px at 10% 15%, rgba(42, 170, 138, .08) 0, transparent 70%),
    radial-gradient(ellipse 500px 400px at 90% 20%, rgba(60, 140, 180, .06) 0, transparent 70%),
    radial-gradient(ellipse 700px 500px at 50% 85%, rgba(42, 170, 138, .05) 0, transparent 60%)
}

.bg-hex {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .25;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='52' viewBox='0 0 60 52' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l25.98 15v30L30 60 4.02 45V15z' fill='none' stroke='%23267a6a' stroke-width='.5'/%3E%3C/svg%3E");
  background-size: 60px 52px;
  transition: opacity .4s;
}

[data-theme="dark"] .bg-hex {
  opacity: .1;
}

/* DNA Helix */
.dna-helix {
  position: fixed;
  left: -10px;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 0;
  pointer-events: none;
  opacity: .30
}

.dna-helix svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 100vh
}

/* Floating molecules */
.molecule {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: .40
}

.molecule svg {
  fill: none;
  stroke: #1a7a5a;
  stroke-width: 2.5
}

[data-theme="dark"] .molecule svg {
  stroke: #3ad4a8;
}

[data-theme="dark"] .dna-helix g {
  stroke: #3ad4a8 !important;
}

.mol-1 {
  top: 6%;
  left: 4%;
  animation: mf 20s ease-in-out infinite
}

.mol-2 {
  top: 30%;
  right: 3%;
  animation: mf 24s ease-in-out infinite 3s
}

.mol-3 {
  bottom: 10%;
  left: 6%;
  animation: mf 18s ease-in-out infinite 6s
}

.mol-4 {
  top: 55%;
  right: 8%;
  animation: mf 22s ease-in-out infinite 2s
}

.mol-5 {
  top: 15%;
  right: 18%;
  animation: mf 26s ease-in-out infinite 4s
}

.mol-6 {
  bottom: 25%;
  right: 5%;
  animation: mf 19s ease-in-out infinite 5s
}

@keyframes mf {

  0%,
  100% {
    transform: translateY(0) rotate(0deg)
  }

  25% {
    transform: translateY(-20px) rotate(6deg)
  }

  50% {
    transform: translateY(10px) rotate(-4deg)
  }

  75% {
    transform: translateY(-12px) rotate(3deg)
  }
}

/* Periodic table element decorations */
.periodic {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: .05;
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  color: #1a6a5a;
  border: 1.5px solid #1a6a5a;
  padding: 6px 8px;
  text-align: center;
  border-radius: 4px;
  line-height: 1.1
}

[data-theme="dark"] .periodic {
  color: #3ad4a8;
  border-color: #3ad4a8;
}

.periodic .num {
  font-size: .45rem;
  display: block
}

.periodic .sym {
  font-size: 1.1rem;
  font-weight: 700;
  display: block
}

.pe-1 {
  top: 12%;
  right: 12%
}

.pe-2 {
  top: 45%;
  left: 3%
}

.pe-3 {
  bottom: 18%;
  right: 15%
}

.pe-4 {
  top: 70%;
  left: 7%
}

.pe-5 {
  bottom: 35%;
  left: 15%
}

/* Flask */
.flask-deco {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: .04
}

.flask-deco svg {
  fill: none;
  stroke: #1a6a5a;
  stroke-width: 1.2
}

[data-theme="dark"] .flask-deco svg {
  stroke: #3ad4a8;
}

.fl-1 {
  bottom: 5%;
  right: 3%
}

.fl-2 {
  top: 5%;
  left: 12%
}

/* ========== DARK MODE TOGGLE ========== */
.theme-toggle {
  position: relative;
  width: 48px;
  height: 26px;
  border-radius: 13px;
  background: rgba(42, 170, 138, .12);
  border: 1.5px solid rgba(42, 170, 138, .2);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0 4px;
  transition: all .3s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(42, 170, 138, .15);
}

.theme-toggle .toggle-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}

[data-theme="dark"] .theme-toggle .toggle-thumb {
  transform: translateX(22px);
}

[data-theme="dark"] .theme-toggle {
  background: rgba(58, 212, 168, .15);
  border-color: rgba(58, 212, 168, .3);
}

/* ========== NAV ========== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 2.2rem;
  background: var(--bg-topbar);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 16px var(--shadow-light);
  transition: background .4s, border-color .4s;
}

.topbar .logo {
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: .4rem
}

.topbar .logo span {
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.slide-counter {
  font-family: 'JetBrains Mono', monospace;
  font-size: .82rem;
  color: var(--text-muted)
}

.slide-counter .cur {
  color: var(--text-accent);
  font-weight: 700;
  font-size: .95rem
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  z-index: 200;
  background: linear-gradient(90deg, #1a8a6a, #2abba0, #4ac4d4);
  width: 0%;
  transition: width .3s
}

/* ========== SLIDE ========== */
.slide {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.8rem .8rem 1rem;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .65s ease, transform .65s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

.slide.visible {
  opacity: 1;
  transform: translateY(0)
}

/* ========== SLIDE TRANSITION VARIETY ========== */
/* Slide-from-left */
.slide.anim-left {
  transform: translateX(-60px);
  opacity: 0;
  transition: opacity .7s ease, transform .7s ease;
}

.slide.anim-left.visible {
  transform: translateX(0);
  opacity: 1;
}

/* Slide-from-right */
.slide.anim-right {
  transform: translateX(60px);
  opacity: 0;
  transition: opacity .7s ease, transform .7s ease;
}

.slide.anim-right.visible {
  transform: translateX(0);
  opacity: 1;
}

/* Scale-up */
.slide.anim-scale {
  transform: scale(.88);
  opacity: 0;
  transition: opacity .7s ease, transform .7s cubic-bezier(.25, .46, .45, .94);
}

.slide.anim-scale.visible {
  transform: scale(1);
  opacity: 1;
}

/* Rotate subtle */
.slide.anim-rotate {
  transform: perspective(800px) rotateY(-5deg) translateY(20px);
  opacity: 0;
  transition: opacity .7s ease, transform .8s cubic-bezier(.25, .46, .45, .94);
}

.slide.anim-rotate.visible {
  transform: perspective(800px) rotateY(0) translateY(0);
  opacity: 1;
}

/* Blur-in */
.slide.anim-blur {
  filter: blur(8px);
  opacity: 0;
  transform: translateY(15px);
  transition: opacity .6s, transform .6s, filter .6s;
}

.slide.anim-blur.visible {
  filter: blur(0);
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children animation */
.slide.visible .stagger>* {
  animation: staggerIn .5s ease forwards;
  opacity: 0;
}

.slide.visible .stagger>*:nth-child(1) {
  animation-delay: .1s
}

.slide.visible .stagger>*:nth-child(2) {
  animation-delay: .2s
}

.slide.visible .stagger>*:nth-child(3) {
  animation-delay: .3s
}

.slide.visible .stagger>*:nth-child(4) {
  animation-delay: .35s
}

.slide.visible .stagger>*:nth-child(5) {
  animation-delay: .4s
}

.slide.visible .stagger>*:nth-child(6) {
  animation-delay: .45s
}

.slide.visible .stagger>*:nth-child(7) {
  animation-delay: .5s
}

.slide.visible .stagger>*:nth-child(8) {
  animation-delay: .55s
}

@keyframes staggerIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.slide-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto
}

/* ========== TAGS ========== */
.tag {
  display: inline-block;
  padding: .25rem .8rem;
  border-radius: 999px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: .7rem
}

.tag-teal {
  background: var(--accent-dim);
  color: var(--text-accent);
  border: 1px solid var(--accent-border)
}

.tag-cyan {
  background: rgba(80, 170, 210, .08);
  color: #1a6a8a;
  border: 1px solid rgba(80, 170, 210, .2)
}

[data-theme="dark"] .tag-cyan {
  color: #6ac0e0;
  background: rgba(80, 170, 210, .1);
}

.tag-rose {
  background: rgba(200, 70, 70, .06);
  color: var(--challenge-accent);
  border: 1px solid rgba(200, 70, 70, .15)
}

.tag-amber {
  background: rgba(190, 140, 30, .06);
  color: #7a5a0a;
  border: 1px solid rgba(190, 140, 30, .15)
}

[data-theme="dark"] .tag-amber {
  color: #e0c060;
  background: rgba(190, 140, 30, .1);
}

.tag-green {
  background: rgba(40, 150, 90, .06);
  color: #1a6a3a;
  border: 1px solid rgba(40, 150, 90, .15)
}

[data-theme="dark"] .tag-green {
  color: #60d090;
  background: rgba(40, 150, 90, .1);
}

.tag-purple {
  background: rgba(100, 70, 180, .06);
  color: #5a3a9a;
  border: 1px solid rgba(100, 70, 180, .15)
}

[data-theme="dark"] .tag-purple {
  color: #b090e0;
  background: rgba(100, 70, 180, .1);
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: .3rem;
  color: var(--text-primary)
}

.sub {
  font-size: .88rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  line-height: 1.5
}

/* ========== HERO ========== */
.hero {
  text-align: center
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem 1.2rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  background: var(--accent-dim);
  color: var(--text-accent);
  border: 1px solid var(--accent-border);
  margin-bottom: 1.5rem
}

.hero-label svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 1rem;
  color: var(--text-primary)
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent
}

.hero p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 1.8rem;
  line-height: 1.55
}

.hero-chips {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap
}

.chip {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem 1rem;
  border-radius: 12px;
  background: var(--bg-chip);
  border: 1px solid var(--border-light);
  font-size: .8rem;
  color: var(--text-secondary);
  box-shadow: 0 2px 10px var(--shadow-light);
  font-weight: 500
}

.chip svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2
}

/* ========== GLASS / CARD ========== */
.glass {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  padding: 1.2rem;
  transition: transform .3s, border-color .3s, box-shadow .3s, background .4s;
  box-shadow: 0 4px 24px var(--shadow-light)
}

.glass:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px var(--shadow-hover)
}

/* ========== GRIDS ========== */
.g2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem
}

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

.g4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .8rem
}

/* ========== TABLE ========== */
.tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .8rem
}

.tbl thead th {
  background: var(--tbl-header-bg);
  color: var(--tbl-header-color);
  padding: .5rem .8rem;
  text-align: left;
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .5px;
  text-transform: uppercase
}

.tbl thead th:first-child {
  border-radius: 10px 0 0 0
}

.tbl thead th:last-child {
  border-radius: 0 10px 0 0
}

.tbl tbody td {
  padding: .45rem .8rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--tbl-cell-color);
  vertical-align: top;
  font-size: .8rem
}

.tbl tbody tr:hover td {
  background: var(--tbl-hover)
}

.tbl tbody tr:last-child td {
  border-bottom: none
}

.tbl tbody tr:last-child td:first-child {
  border-radius: 0 0 0 14px
}

.tbl tbody tr:last-child td:last-child {
  border-radius: 0 0 14px 0
}

.badge {
  display: inline-block;
  padding: .2rem .7rem;
  border-radius: 8px;
  background: var(--badge-bg);
  color: var(--badge-color);
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  font-size: .88rem
}

.check {
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: bold
}

/* ========== TAT ========== */
.tat-row {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .7rem 1.2rem;
  border-radius: 12px;
  background: var(--bg-tat);
  border: 1px solid var(--border-light);
  margin-bottom: .5rem;
  transition: border-color .3s, box-shadow .3s, background .4s
}

.tat-row:hover {
  border-color: var(--border-hover);
  box-shadow: 0 6px 20px var(--shadow-hover)
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 10px currentColor
}

.dot-blue {
  background: #2aa0c8;
  color: #2aa0c8
}

.dot-pink {
  background: #d06a9a;
  color: #d06a9a
}

.dot-red {
  background: #cc4444;
  color: #cc4444
}

.dot-orange {
  background: #c88514;
  color: #c88514
}

.tat-body {
  flex: 1
}

.tat-body .lbl {
  font-weight: 700;
  font-size: .88rem;
  margin-bottom: .1rem;
  color: var(--text-primary)
}

.tat-body .desc {
  font-size: .75rem;
  color: var(--text-secondary)
}

.tat-days {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-accent)
}

.tat-days small {
  font-size: .68rem;
  font-weight: 400;
  color: var(--text-muted)
}

/* ========== FEATURE CARD ========== */
.fcard {
  padding: 1rem;
  border-radius: 14px;
  background: var(--bg-fcard);
  border: 1px solid var(--border-light);
  transition: all .3s;
  box-shadow: 0 3px 14px var(--shadow-light)
}

.fcard:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px var(--shadow-hover)
}

.fcard .fc-icon {
  font-size: 1.2rem;
  margin-bottom: .3rem
}

.fcard .fc-title {
  font-weight: 700;
  font-size: .85rem;
  color: var(--text-accent);
  margin-bottom: .5rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--border-light)
}

.fcard ul {
  list-style: none;
  padding: 0
}

.fcard ul li {
  font-size: .78rem;
  color: var(--text-body);
  padding: .2rem 0;
  padding-left: 1rem;
  position: relative;
  line-height: 1.4
}

.fcard ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold
}

/* ========== TEAM ========== */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem 1rem;
}

.tm {
  width: 135px;
  flex: 0 0 auto;
  text-align: center;
  padding: 1rem .6rem;
  border-radius: 14px;
  background: var(--bg-tat);
  border: 1px solid var(--border-light);
  transition: all .35s
}

.tm:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--shadow-hover)
}

.tm-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto .5rem;
  overflow: hidden;
  border: 2px solid var(--accent-border);
  box-shadow: 0 3px 12px var(--shadow-light);
  background: #d4ece4;
  object-fit: cover;
  object-position: center
}

[data-theme="dark"] .tm-img {
  background: #1a3a2e;
}

.tm-img img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.tm .tname {
  font-weight: 700;
  font-size: .85rem;
  color: var(--text-primary);
  margin-bottom: .1rem
}

.tm .trole {
  font-size: .65rem;
  color: var(--text-muted)
}

/* ========== TM ROW (Transfer Method) ========== */
.tm-row {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .65rem 1rem;
  border-radius: 12px;
  background: rgba(100, 70, 180, .03);
  border: 1px solid rgba(100, 70, 180, .08);
  margin-bottom: .45rem;
  font-size: .82rem;
  color: var(--text-body);
  transition: all .3s
}

[data-theme="dark"] .tm-row {
  background: rgba(100, 70, 180, .06);
  border-color: rgba(100, 70, 180, .12);
}

.tm-row:hover {
  border-color: rgba(100, 70, 180, .2);
  box-shadow: 0 4px 20px rgba(100, 70, 180, .06)
}

.tm-row strong.name {
  color: #5a3a9a;
  text-decoration: underline;
  text-underline-offset: 3px
}

[data-theme="dark"] .tm-row strong.name {
  color: #b090e0;
}

/* ========== CHALLENGE ========== */
.ch-item {
  padding: .8rem 1.2rem;
  border-radius: 12px;
  background: var(--challenge-bg);
  border: 1px solid var(--challenge-border);
  margin-bottom: .6rem;
  transition: all .3s
}

.ch-item:hover {
  border-color: rgba(200, 70, 70, .22);
  box-shadow: 0 6px 20px rgba(200, 70, 70, .05)
}

.ch-item .ch-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(200, 70, 70, .08);
  color: var(--challenge-accent);
  font-weight: 700;
  font-size: .88rem;
  font-family: 'JetBrains Mono', monospace;
  margin-right: .9rem;
  flex-shrink: 0
}

.ch-item p {
  font-size: .95rem;
  color: var(--challenge-text);
  line-height: 1.6;
  display: inline
}

.ch-item strong {
  color: var(--text-primary);
}

.ch-impact {
  padding: .8rem 1rem;
  border-radius: 10px;
  background: var(--challenge-impact-bg);
  border: 1px solid var(--challenge-impact-border);
}

.ch-impact-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--challenge-accent);
  margin-bottom: .35rem;
}

.ch-impact p {
  font-size: .85rem;
  color: var(--challenge-text);
  line-height: 1.5;
  margin: 0;
}

/* ========== VISION ========== */
.vision-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: 18px;
  background: var(--vision-bg);
  border: 1px solid var(--vision-border);
  box-shadow: 0 6px 30px var(--shadow-light)
}

.vision-card .v-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem
}

.vision-card h2 {
  margin-bottom: .6rem
}

.vision-card p {
  font-size: .95rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6
}

/* ========== ENDING SLIDE ========== */
.ending-card {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 22px;
  background: var(--vision-bg);
  border: 1px solid var(--vision-border);
  box-shadow: 0 8px 40px var(--shadow-light);
}

.ending-icon {
  font-size: 3.5rem;
  margin-bottom: .8rem;
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: .85; }
}

.ending-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem) !important;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: .6rem !important;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ending-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.ending-divider {
  width: 80px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  margin: 0 auto 1.5rem;
  opacity: .6;
}

.ending-unit {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-accent);
  margin-bottom: .3rem;
}

.ending-date {
  font-size: .78rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}
/* ========== INTERACTIVE CHARTS ========== */
.chart-container {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 1rem .5rem;
  min-height: 180px;
  flex-wrap: wrap;
}

.chart-bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  flex: 1;
  min-width: 60px;
  max-width: 120px;
}

.chart-bar-track {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}

.chart-bar {
  width: 100%;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, var(--accent), rgba(42, 170, 138, .5));
  transition: height 1.2s cubic-bezier(.25, .46, .45, .94);
  height: 0;
  position: relative;
  min-height: 4px;
}

.chart-bar.animated {
  /* height set by JS */
}

.chart-bar .chart-val {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-accent);
  white-space: nowrap;
  opacity: 0;
  transition: opacity .4s .8s;
}

.chart-bar.animated .chart-val {
  opacity: 1;
}

.chart-label {
  font-size: .65rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
  max-width: 100px;
  word-wrap: break-word;
}

/* Donut chart + table side-by-side layout */
.donut-table-layout {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.donut-side {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.donut-side .donut-container {
  padding: 0;
}

.table-side {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
}

.donut-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.donut-svg {
  width: 200px;
  height: 200px;
  transform: rotate(-90deg);
}

.color-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  vertical-align: middle;
}

.donut-circle {
  fill: none;
  stroke-width: 28;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s cubic-bezier(.25, .46, .45, .94);
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .85rem;
  color: var(--text-body);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  flex-shrink: 0;
}

.legend-val {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--text-accent);
  margin-left: auto;
  padding-left: 1rem;
}

/* ========== ANIMATED COUNTER ========== */
.counter {
  transition: color .3s;
}

.counter.counting {
  color: var(--accent);
}

/* ========== FOOTER ========== */
footer {
  text-align: center;
  padding: 2.8rem 2rem;
  color: var(--text-muted);
  font-size: .85rem;
  border-top: 1px solid var(--border-light)
}

.scroll-hint {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  opacity: .4;
  animation: bob 2s infinite
}

.scroll-hint span {
  font-size: .72rem;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase
}

.scroll-hint svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2
}

@keyframes bob {

  0%,
  100% {
    transform: translateX(-50%) translateY(0)
  }

  50% {
    transform: translateX(-50%) translateY(6px)
  }
}

.scroll-hint.hide {
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s
}

.key-hint {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
  display: flex;
  gap: .45rem;
  align-items: center;
  padding: .45rem 1rem;
  border-radius: 12px;
  background: var(--bg-key-hint);
  border: 1px solid var(--border-light);
  font-size: .72rem;
  color: var(--text-secondary)
}

.key-hint kbd {
  padding: .15rem .45rem;
  border-radius: 5px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  color: var(--text-accent)
}

/* ========== RESPONSIVE ========== */
@media(max-width:768px) {
  .topbar {
    padding: .6rem 1rem
  }

  .slide {
    padding: 5rem 1.2rem 3rem
  }

  .glass,
  .fcard {
    padding: 1.3rem
  }

  .key-hint {
    display: none
  }

  .tat-row {
    flex-wrap: wrap
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr))
  }

  .molecule,
  .periodic,
  .flask-deco,
  .dna-helix {
    display: none
  }

  .chart-container {
    gap: .6rem;
  }

  .chart-bar-track {
    height: 140px;
  }

  .donut-container {
    gap: 1.5rem;
  }

  .donut-svg {
    width: 160px;
    height: 160px;
  }

  .topbar-right {
    gap: .6rem;
  }
}