:root {
  color-scheme: dark;
  --forest-950: #03140d;
  --forest-900: #062319;
  --forest-800: #0b2f22;
  --forest-700: #144131;
  --lime: #d6ee30;
  --lime-dim: #a9bf1e;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: Geist, ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
}

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

body {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  overflow-x: hidden;
  background: var(--forest-900);
  color: #fff;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

/* Backdrop: cohort photo (already green-tinted) under forest gradients so the content stays legible. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 40% at 50% 0%, rgb(214 238 48 / .14), transparent 70%),
    radial-gradient(40% 35% at 50% 18%, rgb(3 20 13 / .55), transparent 100%),
    linear-gradient(180deg, rgb(6 35 25 / .55) 0%, rgb(6 35 25 / .82) 45%, var(--forest-950) 100%),
    var(--forest-900) url("/bg.jpg") center top / cover no-repeat;
}
/* Soft vignette so the photo fades out at the edges. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 90% 80% at 50% 40%, transparent 40%, rgb(3 20 13 / .65));
  pointer-events: none;
}

::selection { background: var(--lime); color: var(--forest-900); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
a { color: inherit; text-decoration: none; }

.card { width: 100%; min-width: 0; max-width: 480px; }

/* ---------- Profile ---------- */
.profile { text-align: center; }

.avatar-wrap {
  position: relative;
  display: inline-block;
}
.avatar-wrap::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 40px;
  background: radial-gradient(closest-side, rgb(214 238 48 / .35), transparent);
  filter: blur(8px);
  z-index: -1;
}
.avatar {
  display: block;
  width: 104px;
  height: 104px;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--lime), 0 0 0 7px var(--forest-900), 0 0 0 8px rgb(255 255 255 / .15);
}

.name {
  margin-top: 28px;
  font-size: clamp(3rem, 14vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: .95;
}
.name span { display: block; margin-top: 10px; font-size: .42em; letter-spacing: -0.03em; line-height: 1.15; color: var(--lime); }

.bio {
  margin: 18px auto 0;
  max-width: 38ch;
  font-size: 15px;
  line-height: 1.65;
  color: rgb(255 255 255 / .65);
}

/* ---------- Links ---------- */
.links { display: grid; gap: 12px; margin-top: 36px; list-style: none; }

.link {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid rgb(255 255 255 / .12);
  border-radius: 20px;
  background: rgb(6 35 25 / .6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 300ms var(--ease-out-expo), background-color 300ms var(--ease-out-expo),
    transform 300ms var(--ease-out-expo);
}
.link:hover { border-color: rgb(255 255 255 / .3); background: rgb(20 65 49 / .55); transform: translateY(-2px); }
.link:active { transform: scale(.985); }

.link-index { font-family: var(--font-mono); font-size: 12px; color: var(--lime-dim); }
.link-body { min-width: 0; text-align: left; }
.link-title { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.link-desc { display: block; margin-top: 2px; font-size: 13px; color: rgb(255 255 255 / .55); }

.link-arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgb(255 255 255 / .15);
  border-radius: 50%;
  color: var(--lime);
  transition: transform 300ms var(--ease-out-expo), background-color 300ms var(--ease-out-expo),
    color 300ms var(--ease-out-expo), border-color 300ms var(--ease-out-expo);
}
.link-arrow svg { width: 16px; height: 16px; }
.link:hover .link-arrow { transform: translateX(3px); background: var(--lime); border-color: var(--lime); color: var(--forest-900); }

/* Featured: first link, solid lime like the primary button on devscale. */
.link-featured { padding: 20px; border-color: transparent; background: var(--lime); color: var(--forest-900); }
.link-featured:hover { border-color: transparent; background: #fff; }
.link-featured .link-index { color: rgb(6 35 25 / .6); }
.link-featured .link-desc { color: rgb(6 35 25 / .7); }
.link-featured .link-title { font-size: 20px; }
.link-featured .link-arrow { border-color: rgb(6 35 25 / .25); color: var(--forest-900); }
.link-featured:hover .link-arrow { background: var(--forest-900); border-color: var(--forest-900); color: var(--lime); }

/* ---------- Socials ---------- */
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.social {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgb(255 255 255 / .15);
  border-radius: 50%;
  color: rgb(255 255 255 / .75);
  transition: border-color 300ms var(--ease-out-expo), color 300ms var(--ease-out-expo),
    background-color 300ms var(--ease-out-expo), transform 300ms var(--ease-out-expo);
}
.social:hover { border-color: var(--lime); color: var(--lime); background: rgb(214 238 48 / .06); transform: translateY(-2px); }
.social:active { transform: scale(.96); }
.social-icon {
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Marquee ---------- */
.marquee {
  margin-top: 44px;
  overflow: hidden;
  border-block: 1px solid rgb(255 255 255 / .08);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; }
.marquee ul { display: flex; flex-shrink: 0; list-style: none; }
.marquee li { display: flex; align-items: center; padding: 16px 16px; font-family: var(--font-mono); font-size: 13px; color: rgb(255 255 255 / .6); }
.marquee li span { padding: 0 8px; }
.marquee li img {
  display: block;
  width: auto;
  height: 26px;
  opacity: .9;
  transition: opacity 300ms var(--ease-out-expo), transform 300ms var(--ease-out-expo);
}
.marquee li:hover img { opacity: 1; transform: scale(1.12); }

.foot { margin-top: 28px; text-align: center; font-family: var(--font-mono); font-size: 12px; color: rgb(255 255 255 / .35); }
.loading { text-align: center; color: rgb(255 255 255 / .65); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 900ms var(--ease-out-expo), transform 900ms var(--ease-out-expo);
    transition-delay: calc(var(--reveal-delay, 0) * 1ms);
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }

  .marquee-track { animation: marquee 30s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(-50%); } }
}
