:root {
  --ink: #f4efe6;
  --muted: color-mix(in srgb, var(--ink) 72%, transparent);
  --accent: #e0b35a;
  --bg-deep: #0f1a14;
  --bg-mid: #1a2e24;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
}

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

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

body {
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% 10%, rgba(224, 179, 90, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 80% 80%, rgba(46, 90, 68, 0.45), transparent 50%),
    linear-gradient(165deg, var(--bg-mid) 0%, var(--bg-deep) 55%, #0a120e 100%);
  overflow: hidden;
  animation: scene-shift 18s ease-in-out infinite alternate;
}

.scene::before {
  content: "";
  position: absolute;
  inset: -20%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: 0.07;
  animation: grain 12s steps(6) infinite;
  pointer-events: none;
}

.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(224, 179, 90, 0.12), transparent 45%);
  animation: glow 8s ease-in-out infinite alternate;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.35;
  pointer-events: none;
}

.orb--a {
  width: min(42vw, 280px);
  height: min(42vw, 280px);
  top: 8%;
  left: 10%;
  background: rgba(224, 179, 90, 0.35);
  animation: drift-a 14s ease-in-out infinite;
}

.orb--b {
  width: min(50vw, 340px);
  height: min(50vw, 340px);
  bottom: 5%;
  right: 5%;
  background: rgba(56, 120, 88, 0.4);
  animation: drift-b 16s ease-in-out infinite;
}

.orb--c {
  width: min(28vw, 180px);
  height: min(28vw, 180px);
  top: 45%;
  left: 55%;
  background: rgba(224, 179, 90, 0.2);
  animation: drift-c 11s ease-in-out infinite;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2rem, 6vw, 4rem) 1.5rem;
  gap: 1.25rem;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand__mark {
  width: clamp(64px, 12vw, 88px);
  height: auto;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent),
    0 0 24px color-mix(in srgb, var(--accent) 25%, transparent);
  animation: logo-float 5.5s ease-in-out infinite;
}

.brand__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  background: linear-gradient(
    105deg,
    var(--ink) 0%,
    var(--ink) 40%,
    var(--accent) 50%,
    var(--ink) 60%,
    var(--ink) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 7s ease-in-out infinite;
}

.lede {
  margin: 0;
  max-width: 28rem;
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.link {
  position: relative;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition:
    color 0.25s ease,
    transform 0.25s ease,
    letter-spacing 0.25s ease;
  animation:
    rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both,
    link-breathe 4.5s ease-in-out infinite;
}

.link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2em;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.link:nth-child(1) {
  animation-delay: 0.22s, 0.8s;
}
.link:nth-child(2) {
  animation-delay: 0.3s, 1.1s;
}
.link:nth-child(3) {
  animation-delay: 0.38s, 1.4s;
}
.link:nth-child(4) {
  animation-delay: 0.46s, 1.7s;
}

.link:hover,
.link:focus-visible {
  color: var(--accent);
  letter-spacing: 0.06em;
  transform: translateY(-2px);
  outline: none;
  animation-play-state: paused;
}

.link:hover::after,
.link:focus-visible::after {
  transform: scaleX(1);
}

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

@keyframes logo-float {
  0%,
  100% {
    transform: translateY(0);
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent),
      0 0 20px color-mix(in srgb, var(--accent) 20%, transparent);
  }
  50% {
    transform: translateY(-8px);
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent),
      0 0 36px color-mix(in srgb, var(--accent) 40%, transparent);
  }
}

@keyframes sheen {
  0%,
  55%,
  100% {
    background-position: 100% 50%;
  }
  70%,
  85% {
    background-position: 0% 50%;
  }
}

@keyframes link-breathe {
  0%,
  100% {
    opacity: 0.88;
  }
  50% {
    opacity: 1;
  }
}

@keyframes glow {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 1;
  }
}

@keyframes grain {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-2%, 1%);
  }
}

@keyframes scene-shift {
  from {
    filter: hue-rotate(0deg) saturate(1);
  }
  to {
    filter: hue-rotate(8deg) saturate(1.08);
  }
}

@keyframes drift-a {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(12%, 18%) scale(1.12);
  }
}

@keyframes drift-b {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-14%, -10%) scale(1.08);
  }
}

@keyframes drift-c {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-20%, 12%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene,
  .scene::before,
  .scene::after,
  .orb,
  .brand,
  .brand__mark,
  .brand__name,
  .lede,
  .link {
    animation: none !important;
  }

  .brand__name {
    color: var(--ink);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
  }

  .link::after {
    transform: scaleX(1);
    opacity: 0.35;
  }

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