:root {
  --bg: #f4f8fb;
  --surface: rgba(255, 255, 255, 0.82);
  --border: rgba(15, 23, 42, 0.08);
  --text: #0b1220;
  --muted: #475569;
  --primary: #005f73;
  --secondary: #0a9396;
  --accent: #94d2bd;
  --glow-a: rgba(10, 147, 150, 0.28);
  --glow-b: rgba(99, 102, 241, 0.2);
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 22px 44px rgba(0, 95, 115, 0.2);
  --grid: rgba(15, 23, 42, 0.05);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #060d16;
    --surface: rgba(17, 28, 43, 0.72);
    --border: rgba(255, 255, 255, 0.09);
    --text: #f1f5f9;
    --muted: #a3b2c5;
    --primary: #2dd4bf;
    --secondary: #38bdf8;
    --accent: #5eead4;
    --glow-a: rgba(45, 212, 191, 0.22);
    --glow-b: rgba(99, 102, 241, 0.25);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 22px 44px rgba(45, 212, 191, 0.18);
    --grid: rgba(255, 255, 255, 0.04);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Decorative background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  animation: float 18s ease-in-out infinite;
}
.blob.a { width: 480px; height: 480px; background: var(--glow-a); top: -140px; left: -120px; }
.blob.b { width: 420px; height: 420px; background: var(--glow-b); top: 20%; right: -140px; animation-delay: -7s; }

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

.wrap {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 0 1.25rem;
  flex: 1;
}

/* Nav */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 1.15rem;
}
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 6px 16px var(--glow-a);
}
.logo-mark svg { width: 20px; height: 20px; stroke: #fff; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Hero */
.hero {
  text-align: center;
  padding: 3.5rem 0 3rem;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 1.25rem;
}
.grad {
  background: linear-gradient(90deg, var(--primary), var(--secondary), #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.subtitle {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.65;
}
.subtitle strong { color: var(--text); }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding-bottom: 3rem;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0.85;
}
.card:hover, .card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--secondary);
  outline: none;
}
.icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 8px 18px var(--glow-a);
}
.icon svg { width: 28px; height: 28px; stroke: #fff; }
.card h2 { font-size: 1.4rem; letter-spacing: -0.01em; }
.card p { color: var(--muted); line-height: 1.6; }
.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  color: var(--primary);
  background: color-mix(in srgb, var(--secondary) 12%, transparent);
}
.cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--primary);
}
.cta svg { width: 18px; height: 18px; stroke: currentColor; transition: transform 0.25s ease; }
.card:hover .cta svg { transform: translateX(6px); }

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.75rem 1rem 2rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

@media (prefers-reduced-motion: reduce) {
  .blob, .dot { animation: none; }
  .card, .cta svg { transition: none; }
}
@media (max-width: 520px) {
  .status { display: none; }
  .hero { padding-top: 2rem; }
}

/* Navigation */
.nav-links { display: flex; gap: 0.25rem; align-items: center; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.92rem;
  padding: 0.45rem 0.9rem; border-radius: 999px; transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a[aria-current="page"] { color: var(--primary); background: var(--surface); border: 1px solid var(--border); }
a.logo { color: inherit; text-decoration: none; }

/* Inner pages */
.page-hero { padding: 2.5rem 0 2rem; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.section-title { font-size: 1.3rem; margin: 2rem 0 1rem; letter-spacing: -0.01em; }

.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; padding-bottom: 2rem; }
@media (max-width: 820px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .people { grid-template-columns: 1fr; } }
.person { align-items: center; text-align: center; }
.avatar {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.7rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 8px 18px var(--glow-a);
}
.avatar { position: relative; overflow: hidden; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person h2 { font-size: 1.15rem; }
.role { color: var(--muted); font-size: 0.9rem; }
.mail { color: var(--primary); font-weight: 600; font-size: 0.9rem; text-decoration: none; word-break: break-all; }
.mail:hover { text-decoration: underline; }

.contact {
  margin-bottom: 3rem; padding: 1.5rem; border-radius: 18px; text-align: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted); line-height: 1.6;
}

.materials { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; padding-bottom: 2rem; }
.item { padding: 1.4rem; gap: 0.6rem; }
.item h3 { font-size: 1.05rem; }
.item p { font-size: 0.92rem; }
.item .cta { font-size: 0.9rem; }

@media (max-width: 640px) {
  .nav-links a { padding: 0.4rem 0.6rem; font-size: 0.85rem; }
}

.item .tag { align-self: flex-start; }
.item .note { margin-top: auto; font-size: 0.85rem; color: var(--muted); }
.item .cta { margin-top: auto; }
.item .links { display: flex; gap: 1.25rem; margin-top: auto; }
.item .links .cta { margin-top: 0; text-decoration: none; }
.item .links + .note { margin-top: 0; }
