:root {
  --bg: #0b0b10;
  --card: #12121a;
  --text: #e8e8ef;
  --muted: #a9a9bf;
  --accent: #7c3aed;
  --accent-2: #22d3ee;
  --ring: rgba(124, 58, 237, .35);
  --header-h: 72px;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  overflow: hidden;
}

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

#bg,
.page-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none
}

.page-glow {
  background:
    radial-gradient(900px 520px at 50% 120px, rgba(124, 58, 237, .18), transparent 65%),
    radial-gradient(700px 400px at 15% 0px, rgba(34, 211, 238, .08), transparent 60%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, .85) 40%, rgba(0, 0, 0, 0) 70%);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: saturate(140%) blur(10px);
  background: linear-gradient(180deg, rgba(10, 10, 16, .9), rgba(10, 10, 16, .6));
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text)
}

.wordmark {
  display: inline-block;
  letter-spacing: .3px;
  line-height: 1;
  font-weight: 400;
  font-size: 20px
}

.wordmark-strong {
  font-weight: 800;
  margin-right: 2px
}

.wordmark-light {
  font-weight: 500;
  opacity: .95
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 16px
}

.nav a:hover {
  color: var(--text)
}

#stage {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 1
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(2vh) scale(.995);
  transition: opacity .85s ease, transform .85s ease;
  pointer-events: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior-y: contain;
}

.screen.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto
}

@supports(height:100dvh) {
  #stage {
    height: calc(100dvh - var(--header-h))
  }

  .screen,
  .hero {
    height: 100%;
    min-height: 100%
  }
}

.hero {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  gap: 14px;
  padding-bottom: 10vh;
}

.hero h1 {
  font-size: clamp(32px, 6vw, 64px);
  line-height: 1.05;
  margin: 16px 0
}

@media (min-width:900px) {
  #slide-1 .hero {
    transform: translateY(-4vh);
  }
}

#slide-1 .lead {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(232, 232, 239, .9);
  letter-spacing: .1px;
}

#slide-2 {
  align-items: flex-start;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#slide-2 .stack {
  padding-top: calc(env(safe-area-inset-top) + 8vh);
  padding-bottom: 10vh;
}

.stack {
  display: grid;
  gap: 28px;
  width: 100%
}

.lead {
  color: var(--muted);
  font-size: clamp(16px, 2.5vw, 20px)
}

.btn {
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px
}

.btn.primary {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%) padding-box;
  color: #fff;
  box-shadow: 0 8px 30px var(--ring)
}

.btn.primary:hover {
  transform: translateY(-1px)
}

.btn.ghost {
  color: var(--text);
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .02)
}

.btn.ghost:hover {
  border-color: rgba(255, 255, 255, .28)
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .005));
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 16px;
  padding: 28px;
  margin: 0 auto;
  position: relative;
  width: 100%;
}

.card h2 {
  margin-top: 0
}

.bullets {
  margin: 8px 0 0;
  padding: 0 0 0 18px;
  color: var(--text)
}

.bullets li {
  margin: 8px 0
}

.contact.card {
  padding: 28px
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, .06);
  background: transparent
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  color: var(--muted)
}

.site-footer a {
  color: var(--muted);
  text-decoration: none
}

.site-footer a:hover {
  color: var(--text)
}

.avatar--nav {
  --size: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--size)+4px);
  height: calc(var(--size)+4px);
  border-radius: 999px;
  background: conic-gradient(from 200deg, var(--accent), var(--accent-2));
  padding: 2px;
  box-shadow: 0 6px 18px var(--ring)
}

.avatar--nav img {
  width: var(--size);
  height: var(--size);
  aspect-ratio: 1/1;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 52%;
  background: #0e0e15
}

.avatar-plain {
  --size: clamp(220px, 28vw, 300px);
  margin: 28px auto 0;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  position: relative;
  overflow: visible;
  z-index: 3;
  background: #0e0e15 center/cover no-repeat;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 18px 60px rgba(124, 58, 237, .35), 0 0 64px 18px rgba(124, 58, 237, .35), 0 0 120px 30px rgba(34, 211, 238, .18)
}

.avatar-plain img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  background-color: #08121b
}

.hero-image-in {
  position: relative;
  transform: translateZ(0)
}

.hero-image-in>img {
  position: relative;
  z-index: 2
}

.hero-image-in::before {
  content: "";
  position: absolute;
  inset: 3%;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(124, 58, 237, .55), rgba(124, 58, 237, .30) 60%, rgba(34, 211, 238, .16) 85%, transparent 100%);
  filter: blur(10px);
  opacity: .80;
  transform: scale(.94);
}

.hero-image-in::after {
  content: "";
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(124, 58, 237, .28), rgba(124, 58, 237, .16) 55%, rgba(34, 211, 238, .12) 80%, transparent 100%);
  filter: blur(28px);
  opacity: .65;
  transform: scale(.95);
}

@keyframes heroIn {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(.992)
  }

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

  100% {
    opacity: 1;
    transform: none
  }
}

@keyframes haloInner {

  0%,
  100% {
    opacity: .75;
    transform: scale(.92)
  }

  50% {
    opacity: .96;
    transform: scale(1.04)
  }
}

@keyframes haloOuter {

  0%,
  100% {
    opacity: .50;
    transform: scale(.94)
  }

  50% {
    opacity: .85;
    transform: scale(1.06)
  }
}

@keyframes breatheShadow {

  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 16px 46px rgba(124, 58, 237, .28), 0 0 52px 12px rgba(124, 58, 237, .28), 0 0 96px 20px rgba(34, 211, 238, .16)
  }

  50% {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 74px rgba(124, 58, 237, .48), 0 0 80px 18px rgba(124, 58, 237, .46), 0 0 120px 30px rgba(34, 211, 238, .24)
  }
}

@media (prefers-reduced-motion:no-preference) {
  .hero h1.reveal-up {
    opacity: 0;
    transform: translateY(8px) scale(.98);
    animation: reveal .6s ease forwards
  }

  .hero-image-in {
    animation: heroIn .6s cubic-bezier(.22, .63, .2, 1) .10s both
  }

  .hero-image-in::before {
    animation: haloInner 4.8s ease-in-out .2s infinite
  }

  .hero-image-in::after {
    animation: haloOuter 4.8s ease-in-out .2s infinite
  }

  .avatar-plain.hero-image-in {
    animation: heroIn .6s cubic-bezier(.22, .63, .2, 1) .10s both, breatheShadow 4.8s ease-in-out .2s infinite
  }

  @keyframes reveal {
    to {
      opacity: 1;
      transform: none
    }
  }
}

@media (max-width:640px) {
  :root {
    --header-h: 60px
  }

  #slide-2 {
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch
  }

  #slide-2 .stack {
    padding-top: calc(env(safe-area-inset-top) + 8vh);
    padding-bottom: 10vh
  }

  .stack {
    gap: 14px
  }

  .card {
    padding: 18px
  }

  #slide-2 h2 {
    font-size: clamp(20px, 5.5vw, 24px)
  }

  .lead {
    font-size: clamp(15px, 4.2vw, 18px);
    line-height: 1.35
  }

  .bullets {
    padding-left: 16px
  }

  .bullets li {
    margin: 6px 0
  }

  .site-footer {
    margin-top: 12px
  }

  #slide-1 .hero {
    padding-bottom: 12vh;
  }
}

.pulse-arrow {
  position: fixed;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom) + 10px);
  transform: translateX(-50%);
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(124, 58, 237, .35), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  backdrop-filter: blur(8px);
  transition: transform .2s ease;
}

.pulse-arrow::before {
  content: "";
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' stroke='white' stroke-opacity='0.9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 0 10px rgba(124, 58, 237, .75));
}

.pulse-arrow:is(:hover, :focus) {
  transform: translateX(-50%) scale(1.04)
}

.pulse-arrow:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

@keyframes glowPulse {

  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 16px 46px rgba(124, 58, 237, .28), 0 0 52px 12px rgba(124, 58, 237, .28), 0 0 96px 20px rgba(34, 211, 238, .16)
  }

  50% {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 74px rgba(124, 58, 237, .48), 0 0 80px 18px rgba(124, 58, 237, .46), 0 0 120px 30px rgba(34, 211, 238, .24)
  }
}

@media (prefers-reduced-motion:no-preference) {
  .pulse-arrow {
    animation: glowPulse 4.8s ease-in-out .2s infinite
  }
}

@media (prefers-reduced-motion:reduce) {
  .pulse-arrow {
    animation: none;
  }
}

.pulse-arrow.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease
}

.contact .contact-icons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
}

.contact .contact-icons a {
  --icon-size: clamp(24px, 2vw + 14px, 32px);
  --tile-pad: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--tile-pad);
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.contact .contact-icons a:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, .18);
  box-shadow: 0 8px 24px var(--ring);
}

.contact .contact-icons .icon {
  width: var(--icon-size);
  height: var(--icon-size);
  display: block;
  object-fit: contain;
}

.team-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.team {
  flex: 1 1 200px;
  text-align: center;
}

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06),
    0 6px 18px var(--ring);
}
