:root {
  --ink: #1e1b4b;
  --ink-soft: #4a4768;
  --mist: #eef6f5;
  --paper: #f7fbfa;
  --teal: #0f766e;
  --teal-bright: #14b8a6;
  --sand: #d4c4a8;
  --orb-a: rgba(20, 184, 166, 0.16);
  --orb-b: rgba(30, 27, 75, 0.08);
  --font-logo: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.55;
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.atmosphere__wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 10% 0%, #dff5f1 0%, transparent 55%),
    radial-gradient(90% 70% at 100% 100%, #e8e6f2 0%, transparent 50%),
    linear-gradient(165deg, var(--mist) 0%, var(--paper) 45%, #eaf3f1 100%);
}

.atmosphere__grid {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(rgba(30, 27, 75, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 27, 75, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  animation: grid-drift 28s linear infinite;
}

.atmosphere__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  will-change: transform;
}

.atmosphere__orb--a {
  width: min(52vw, 420px);
  height: min(52vw, 420px);
  top: -8%;
  right: -6%;
  background: var(--orb-a);
  animation: orb-float 16s ease-in-out infinite;
}

.atmosphere__orb--b {
  width: min(46vw, 360px);
  height: min(46vw, 360px);
  bottom: -12%;
  left: -8%;
  background: var(--orb-b);
  animation: orb-float 20s ease-in-out infinite reverse;
}

.page {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 58rem);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(3rem, 8vw, 5rem);
}

.hero {
  max-width: 38rem;
  padding-top: clamp(1rem, 4vh, 3rem);
  padding-bottom: clamp(2rem, 5vw, 3.25rem);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.75rem;
  padding: 0;
  color: var(--teal);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.status__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.45);
  animation: pulse 2.4s ease-out infinite;
}

.brand {
  margin: 0;
  line-height: 0;
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.22s forwards;
}

.brand-logo {
  display: block;
  width: min(100%, 22rem);
  height: auto;
}

.brand-logo .vx-mark {
  stroke: var(--ink);
}

.brand-logo .vx-accent {
  stroke: var(--teal-bright);
}

.brand-logo .vx-text {
  fill: var(--ink);
  font-family: var(--font-logo);
  font-weight: 700;
}

.lede {
  margin: 0.75rem 0 0;
  max-width: 38ch;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  font-weight: 400;
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.38s forwards;
}

.lede strong {
  color: var(--ink);
  font-weight: 600;
}

.rule {
  width: 0;
  height: 2px;
  margin: 1.75rem 0 0;
  background: linear-gradient(90deg, var(--teal-bright), var(--sand));
  animation: draw-rule 1s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

.projects {
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

.projects__title {
  margin: 0;
  font-family: var(--font-logo);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.projects__intro {
  margin: 0.4rem 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.project-grid {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.project {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: 0;
  outline-offset: 4px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.project__media {
  overflow: hidden;
}

a.project:hover,
a.project:focus-visible {
  transform: translateY(-4px);
}

a.project:hover .project__image,
a.project:focus-visible .project__image {
  transform: scale(1.03);
}

a.project:hover .project__meta,
a.project:focus-visible .project__meta {
  color: var(--teal);
}

.project--soon {
  cursor: default;
  opacity: 0.88;
}

.project__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #dfe8e5;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.project__body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-top: 0.7rem;
}

.project__name {
  margin: 0;
  font-family: var(--font-logo);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.project__meta {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.25s ease;
}

.project--soon .project__meta {
  color: var(--teal);
}

.legal {
  margin: 3.5rem 0 0;
  max-width: 46ch;
  opacity: 0;
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.75s forwards;
}

.legal p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.5;
  opacity: 0.85;
}

.legal__meta {
  margin-top: 0.6rem;
  font-weight: 500;
  opacity: 0.7;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes draw-rule {
  from {
    width: 0;
  }
  to {
    width: 4.5rem;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.45);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(20, 184, 166, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(20, 184, 166, 0);
  }
}

@keyframes orb-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-3%, 4%) scale(1.06);
  }
}

@keyframes grid-drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(48px, 48px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .atmosphere__grid,
  .atmosphere__orb,
  .status,
  .status__dot,
  .brand,
  .lede,
  .rule,
  .projects,
  .legal {
    animation: none;
  }

  .status,
  .brand,
  .lede,
  .projects,
  .legal {
    opacity: 1;
  }

  .rule {
    width: 4.5rem;
  }

  a.project,
  .project__image,
  .project__meta {
    transition: none;
  }

  a.project:hover,
  a.project:focus-visible {
    transform: none;
  }

  a.project:hover .project__image,
  a.project:focus-visible .project__image {
    transform: none;
  }
}

@media (min-width: 640px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1.35rem;
  }
}

@media (min-width: 720px) {
  .brand-logo {
    width: min(100%, 26rem);
  }
}
