:root {
  --ink: #0c1210;
  --fog: #e8efe9;
  --mist: #c5d4c8;
  --amber: #e8a54b;
  --amber-hot: #f0b85c;
  --teal: #2f6f62;
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
}

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

html {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-body);
  color: var(--fog);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 8% 12%, rgba(47, 111, 98, 0.5), transparent 58%),
    radial-gradient(ellipse 65% 55% at 92% 82%, rgba(232, 165, 75, 0.16), transparent 52%),
    linear-gradient(158deg, #090e0c 0%, #131b17 48%, #0c1210 100%);
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.blob {
  position: absolute;
  filter: blur(48px);
  opacity: 0.55;
  pointer-events: none;
  will-change: transform;
}

.blob-a {
  width: min(52vw, 420px);
  height: min(52vw, 420px);
  left: -8%;
  top: 18%;
  background: radial-gradient(circle at 35% 40%, rgba(47, 111, 98, 0.9), transparent 68%);
  border-radius: 62% 38% 48% 52% / 48% 58% 42% 52%;
  animation: morph-a 18s ease-in-out infinite alternate;
}

.blob-b {
  width: min(44vw, 360px);
  height: min(44vw, 360px);
  right: -6%;
  bottom: 8%;
  background: radial-gradient(circle at 60% 45%, rgba(232, 165, 75, 0.45), transparent 70%);
  border-radius: 42% 58% 55% 45% / 55% 40% 60% 45%;
  animation: morph-b 22s ease-in-out infinite alternate;
}

.drift {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.22;
  pointer-events: none;
}

.drift-line {
  fill: none;
  stroke: var(--mist);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 6 14;
  animation: dash 28s linear infinite;
}

.drift-line-2 {
  stroke: var(--amber);
  opacity: 0.55;
  stroke-dasharray: 3 18;
  animation-duration: 36s;
  animation-direction: reverse;
}

.shell {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: clamp(0.85rem, 2.8vh, 2.75rem) clamp(1.1rem, 4vw, 2.75rem);
  overflow: hidden;
}

.top {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0;
  animation: fade 0.8s ease 0.05s forwards;
}

.mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(100deg, var(--fog), var(--amber-hot) 55%, #9ec9ba);
  background-size: 180% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brand-flow 8s ease-in-out infinite alternate;
}

.hero {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: clamp(0.7rem, 2.2vh, 2.4rem);
  max-width: 52rem;
  width: 100%;
  margin: 0 auto;
  padding: clamp(0.35rem, 1.5vh, 2rem) 0;
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 11vw, 7.8rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  background: linear-gradient(
    115deg,
    var(--fog) 0%,
    var(--fog) 28%,
    var(--amber-hot) 48%,
    #8fbfb0 62%,
    var(--fog) 82%,
    var(--amber) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(22px) rotate(-0.6deg);
  animation:
    rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards,
    brand-flow 7s ease-in-out 1s infinite alternate;
}

.lead {
  margin: 0;
  max-width: 24rem;
  font-size: clamp(0.95rem, 2.3vw, 1.28rem);
  line-height: 1.35;
  color: var(--mist);
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.24s forwards;
}

.invite {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.32s forwards;
}

.invite-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 2.5vw, 1.45rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: linear-gradient(105deg, var(--mist), var(--amber-hot) 55%, #9ec9ba);
  background-size: 180% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brand-flow 6s ease-in-out 1.1s infinite alternate;
}

.invite-arrow {
  width: clamp(1.35rem, 3.5vh, 2rem);
  height: clamp(1.7rem, 4.5vh, 2.55rem);
  margin-top: 0.35rem;
  overflow: visible;
  animation: arrow-bob 2.4s ease-in-out 1.6s infinite;
}

.invite-arrow-shaft,
.invite-arrow-head {
  fill: none;
  stroke: var(--amber);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.invite-arrow-shaft {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: draw-arrow 0.75s ease 0.65s forwards;
}

.invite-arrow-head {
  stroke-dasharray: 70;
  stroke-dashoffset: 70;
  opacity: 0.95;
  animation: draw-arrow 0.55s ease 1.15s forwards;
}

.fork {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 3vh, 2.6rem);
  margin-top: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.48s forwards;
}

@media (min-width: 720px) {
  .fork {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(2.5rem, 8vw, 5.5rem);
  }
}

.route {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
  width: fit-content;
  max-width: 100%;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.route-job {
  transform: rotate(-1.2deg);
}

.route-hr {
  transform: rotate(1.1deg);
}

.route:hover,
.route:focus-visible {
  transform: translateY(-6px) scale(1.03);
  outline: none;
}

.route-job:hover,
.route-job:focus-visible {
  transform: translateY(-6px) scale(1.03) rotate(-0.4deg);
}

.route-hr:hover,
.route-hr:focus-visible {
  transform: translateY(-6px) scale(1.03) rotate(0.5deg);
}

.route-who {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(197, 212, 200, 0.72);
}

.route-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 5.5vw, 3.15rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: linear-gradient(105deg, var(--fog) 25%, var(--amber-hot) 55%, #ffe0a8 75%, var(--fog) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brand-flow 6.5s ease-in-out 1.4s infinite alternate;
}

.route-hr .route-name {
  background: linear-gradient(255deg, var(--fog) 20%, #8fbfb0 50%, var(--amber-hot) 78%, var(--fog) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: brand-flow 7.5s ease-in-out 1.6s infinite alternate-reverse;
}

.route-hint {
  position: relative;
  display: inline-block;
  margin-top: 0.2rem;
  padding: 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--amber);
}

.route-arc {
  position: absolute;
  left: 50%;
  bottom: -0.55rem;
  width: min(100%, 9rem);
  height: 0.85rem;
  transform: translateX(-50%);
  overflow: visible;
}

.route-arc path {
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: 0.75;
  stroke-dasharray: 90;
  stroke-dashoffset: 90;
  transition: stroke-dashoffset 0.45s ease, opacity 0.3s ease;
}

.route:hover .route-arc path,
.route:focus-visible .route-arc path {
  stroke-dashoffset: 0;
  opacity: 1;
}

.route-hr .route-arc path {
  stroke: #9ec9ba;
}

.foot {
  flex-shrink: 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(197, 212, 200, 0.55);
  padding-top: 0.25rem;
}

@media (max-height: 700px) {
  .brand {
    font-size: clamp(2.2rem, 9.5vw, 4.5rem);
  }

  .invite-arrow {
    width: 1.25rem;
    height: 1.55rem;
    margin-top: 0.2rem;
  }

  .route-name {
    font-size: clamp(1.4rem, 5vw, 2.2rem);
  }

  .fork {
    gap: 0.85rem;
  }

  .hero {
    gap: 0.55rem;
  }
}

@media (max-height: 560px) {
  .mark {
    font-size: 0.8rem;
  }

  .invite-text {
    letter-spacing: 0.16em;
  }

  .route-hint {
    font-size: 0.8rem;
  }

  .foot {
    font-size: 0.72rem;
  }
}

.foot a {
  transition: color 0.25s ease;
}

.foot a:hover {
  color: var(--amber);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes fade {
  to {
    opacity: 1;
  }
}

@keyframes brand-flow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes draw-arrow {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes arrow-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

@keyframes dash {
  to {
    stroke-dashoffset: -240;
  }
}

@keyframes morph-a {
  0% {
    border-radius: 62% 38% 48% 52% / 48% 58% 42% 52%;
    transform: translate(0, 0) scale(1);
  }
  100% {
    border-radius: 48% 52% 38% 62% / 58% 42% 55% 45%;
    transform: translate(4%, 6%) scale(1.06);
  }
}

@keyframes morph-b {
  0% {
    border-radius: 42% 58% 55% 45% / 55% 40% 60% 45%;
    transform: translate(0, 0) scale(1);
  }
  100% {
    border-radius: 58% 42% 45% 55% / 40% 58% 42% 58%;
    transform: translate(-5%, -4%) scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .lead,
  .invite,
  .fork,
  .top,
  .mark,
  .route-name {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .blob,
  .drift-line,
  .route,
  .route-arc path,
  .invite-arrow,
  .invite-arrow-shaft,
  .invite-arrow-head,
  .invite-text {
    animation: none;
    transition: none;
  }

  .route-arc path,
  .invite-arrow-shaft,
  .invite-arrow-head {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}
