@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Space+Grotesk:wght@400;500;600&display=swap");

:root {
  color-scheme: light;
  --bg: #141821;
  --bg-alt: #151822;
  --ink: #eef2f9;
  --muted: #b6c0d1;
  --accent: #67f3c2;
  --accent-2: #6aa7ff;
  --card: #141826cc;
  --border: #273049;
  --shadow: 0 30px 80px rgba(5, 8, 16, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: hidden;
  overscroll-behavior: none;
  isolation: isolate;
}

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

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(38, 44, 64, 0.95), transparent 62%),
    radial-gradient(circle at 80% 10%, rgba(24, 28, 40, 0.8), transparent 55%),
    var(--bg);
  animation: drift 22s ease-in-out infinite;
}

body > *:not(.bg) {
  position: relative;
  z-index: 1;
}

.orb {
  position: absolute;
  width: clamp(240px, 40vw, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.55;
  animation: float 16s ease-in-out infinite;
}

.orb-1 {
  background: radial-gradient(circle at 30% 30%, #5eead4, transparent 60%);
  top: -8%;
  left: -5%;
}

.orb-2 {
  background: radial-gradient(circle at 70% 30%, #7aa2ff, transparent 60%);
  top: 20%;
  right: -8%;
  animation-delay: -5s;
}

.orb-3 {
  background: radial-gradient(circle at 50% 50%, #f8b4ff, transparent 60%);
  bottom: -12%;
  left: 18%;
  animation-delay: -9s;
}

.grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(circle at 20% 10%, black, transparent 60%);
  opacity: 0.45;
  animation: grid-shift 18s ease-in-out infinite;
}

.hero {
  padding: 22px clamp(20px, 6vw, 96px) 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 22vh;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.brand {
  font-family: "Fraunces", "Georgia", serif;
  font-size: clamp(22px, 2.5vw, 32px);
  letter-spacing: 0.03em;
}

.cta {
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.3s ease, border 0.3s ease, background 0.3s ease;
}

.cta:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
}

.hero-content {
  max-width: 680px;
  display: grid;
  gap: 14px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--muted);
}

.hero h1 {
  font-family: "Fraunces", "Georgia", serif;
  font-size: clamp(36px, 5.5vw, 64px);
  margin: 0;
}

.subhead {
  color: var(--muted);
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 14px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0b0d12;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 25px rgba(103, 243, 194, 0.25);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: none;
}

.section {
  padding: 56px clamp(20px, 6vw, 96px);
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 36px;
}

.section h2 {
  font-size: clamp(28px, 4vw, 48px);
  margin: 0;
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 500px));
  gap: 30px;
  justify-content: start;
  justify-items: start;
}

.card {
  width: 100%;
  justify-self: start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px;
  display: grid;
  gap: 14px;
  text-align: left;
  justify-items: start;
  min-height: 380px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transform: translateY(14px);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease, border 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.card.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(103, 243, 194, 0.12), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(106, 167, 255, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.12), transparent 60%);
  transform: translateX(-60%);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
  pointer-events: none;
}

.card:hover {
  border-color: rgba(106, 167, 255, 0.6);
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 40px 90px rgba(6, 10, 18, 0.55);
}

.card:hover::before {
  opacity: 1;
}

.card:hover::after {
  opacity: 0.8;
  transform: translateX(20%);
}

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

.card:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 4px;
}

.avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.18);
  display: inline-flex;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.card:hover img {
  transform: scale(1.05);
  filter: saturate(1.05) contrast(1.02);
}

.card h3 {
  margin: 0;
  font-size: 22px;
}

.role {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.meta {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill-grid span {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 14px;
}

.footer {
  padding: 30px clamp(20px, 6vw, 96px) 60px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 980px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.footer .back {
  color: var(--ink);
}

.footer .back.is-hidden {
  display: none;
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -24px, 0);
  }
}

@keyframes drift {
  0%,
  100% {
    filter: saturate(1);
  }
  50% {
    filter: saturate(1.1);
  }
}

@keyframes grid-shift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(12px, -10px, 0);
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 24px;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

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

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