:root {
  --ink: #1a1410;
  --paper: #f3ebe1;
  --ember: #c44b1a;
  --moss: #2f5d50;
  --mist: rgba(26, 20, 16, 0.08);
  --font-display: "Syne", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--paper);
  overflow-x: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 55% at 12% 18%, rgba(196, 75, 26, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 88% 12%, rgba(47, 93, 80, 0.18), transparent 50%),
    linear-gradient(165deg, #f7f0e6 0%, #e8dccf 48%, #d9cfc2 100%);
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: scale(1) translate(0, 0);
  }
  to {
    transform: scale(1.04) translate(-1.2%, 0.8%);
  }
}

.stage {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 5rem) clamp(1.25rem, 4vw, 2rem)
    clamp(2rem, 6vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 10vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  opacity: 0;
  animation: rise 0.7s ease forwards 0.05s;
}

.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 18ch;
  opacity: 0;
  animation: rise 0.7s ease forwards 0.18s;
}

.lede {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 34rem;
  opacity: 0;
  animation: rise 0.7s ease forwards 0.3s;
}

.lede a {
  color: var(--ember);
  font-weight: 600;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.15em;
}

.projects {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
  opacity: 0;
  animation: rise 0.7s ease forwards 0.42s;
}

.project {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 252, 247, 0.55);
  border: 1px solid var(--mist);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.project:hover,
.project:focus-visible {
  transform: translateX(4px);
  background: rgba(255, 252, 247, 0.9);
  border-color: rgba(196, 75, 26, 0.35);
  outline: none;
}

.project .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.project .desc {
  font-size: 0.95rem;
  opacity: 0.82;
}

.project .go {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--moss);
}

.foot {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  opacity: 0;
  animation: rise 0.7s ease forwards 0.55s;
}

.foot a {
  color: var(--ink);
  font-weight: 500;
}

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

@media (prefers-reduced-motion: reduce) {
  .bg {
    animation: none;
  }
  .brand,
  .headline,
  .lede,
  .projects,
  .foot {
    animation: none;
    opacity: 1;
  }
  .project {
    transition: none;
  }
}
