:root {
  --ink: #131313;
  --muted: #777;
  --line: rgba(0, 0, 0, 0.08);
  --paper: #f5f5f2;
  --blue: #8bc5ff;
  --pink: #ff9cc7;
  --lime: #caff63;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

header,
footer {
  position: relative;
  z-index: 20;
  width: min(1280px, calc(100% - 64px));
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header {
  height: 88px;
}

.logo {
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -0.08em;
}

nav {
  display: flex;
  gap: 32px;
  font-size: 12px;
}

nav a {
  transition: opacity 180ms ease;
}

nav a:hover {
  opacity: 0.45;
}

.hero {
  position: relative;
  width: min(1280px, calc(100% - 64px));
  min-height: calc(100svh - 88px);
  margin: auto;
  display: flex;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 3;
  padding-bottom: 8vh;
}

.kicker,
.section-title p {
  margin: 0 0 24px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

h1 {
  margin: 0;
  font-size: clamp(70px, 11vw, 158px);
  line-height: 0.88;
  font-weight: 650;
  letter-spacing: -0.085em;
}

h1 span {
  color: transparent;
  background: linear-gradient(105deg, #2686ff, #9b66ff 48%, #ff568a);
  background-clip: text;
  -webkit-background-clip: text;
}

.intro {
  margin: 38px 0 28px;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 0.02em;
}

.scroll-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  font-weight: 600;
}

.scroll-link span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform 220ms ease, background 220ms ease;
}

.scroll-link:hover span {
  transform: translateY(4px);
  background: white;
}

.orb-stage {
  position: absolute;
  right: -12%;
  top: 0;
  width: 70%;
  height: 95%;
  filter: saturate(120%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(3px);
  animation: drift 9s ease-in-out infinite alternate;
  transition: transform 650ms cubic-bezier(.2,.8,.2,1);
}

.orb-a {
  width: 54%;
  aspect-ratio: 1;
  right: 6%;
  top: 8%;
  background: radial-gradient(circle at 30% 25%, white 0, var(--blue) 27%, #4c79ff 67%, #754eff 100%);
  box-shadow: inset -25px -35px 70px rgba(31, 44, 255, 0.35), 0 60px 100px rgba(80, 133, 255, 0.28);
}

.orb-b {
  width: 32%;
  aspect-ratio: 1;
  right: 49%;
  top: 43%;
  background: radial-gradient(circle at 25% 20%, #fff9fc, var(--pink) 42%, #ff617c);
  animation-delay: -3s;
}

.orb-c {
  width: 23%;
  aspect-ratio: 1;
  right: 3%;
  bottom: 6%;
  background: radial-gradient(circle at 30% 20%, white, var(--lime) 45%, #94d623);
  animation-delay: -6s;
}

.glass-orb {
  position: absolute;
  z-index: 2;
  width: 34%;
  aspect-ratio: 1;
  right: 31%;
  top: 29%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(25px);
  box-shadow: inset 10px 10px 30px rgba(255, 255, 255, 0.55), 10px 25px 50px rgba(77, 71, 120, 0.12);
  animation: float 7s ease-in-out infinite;
  transition: transform 650ms cubic-bezier(.2,.8,.2,1);
}

@keyframes drift {
  to { transform: translate3d(18px, -20px, 0) scale(1.04); }
}

@keyframes float {
  50% { transform: translate3d(-10px, 18px, 0) rotate(4deg); }
}

.work {
  padding: 150px max(32px, calc((100vw - 1280px) / 2));
  background: #fff;
}

.section-title {
  margin-bottom: 60px;
}

.section-title h2,
.statement h2 {
  margin: 0;
  font-size: clamp(48px, 7vw, 94px);
  line-height: 0.95;
  font-weight: 620;
  letter-spacing: -0.07em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  position: relative;
  min-height: 490px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  border-radius: 28px;
  background: #f2f2f2;
  transition: transform 350ms cubic-bezier(.2,.8,.2,1), box-shadow 350ms ease;
  transform-style: preserve-3d;
}

.card:hover {
  transform: translateY(-14px) scale(1.025);
  box-shadow: 0 45px 90px rgba(0, 0, 0, 0.14);
}

.card:nth-child(1) {
  color: white;
  background: linear-gradient(145deg, #267aff, #8458f8 55%, #f281bb);
}

.card:nth-child(2) {
  background: linear-gradient(145deg, #d6ff80, #b6ee56);
}

.card:nth-child(3) {
  background: linear-gradient(145deg, #ffd1e2, #ff96bd);
}

.card::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -100px;
  bottom: -100px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(255, 255, 255, 0.1), 0 0 0 80px rgba(255, 255, 255, 0.08);
  transition: transform 500ms ease;
}

.card:hover::after {
  transform: scale(1.18);
}

.card-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.card-arrow {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  font-size: 15px;
  transition: transform 300ms ease, background 300ms ease;
}

.card:hover .card-arrow {
  transform: rotate(45deg);
  background: white;
  color: var(--ink);
}

.card-copy {
  position: relative;
  z-index: 2;
}

.card h3 {
  margin: 0 0 9px;
  font-size: 34px;
  font-weight: 650;
  letter-spacing: -0.055em;
}

.card p {
  max-width: 250px;
  margin: 0;
  opacity: 0.62;
  font-size: 12px;
  line-height: 1.6;
}

.statement {
  min-height: 85svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 24px;
  text-align: center;
}

.statement > p {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 13px;
}

.statement h2 {
  background: linear-gradient(105deg, #252525, #777);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.statement a {
  margin-top: 38px;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 12px;
  transition: transform 200ms ease;
}

.statement a:hover {
  transform: scale(1.05);
}

.statement a span {
  margin-left: 8px;
}

footer {
  height: 100px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 800ms ease, transform 800ms cubic-bezier(.2,.8,.2,1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 850px) {
  .hero {
    align-items: flex-end;
    padding-bottom: 12vh;
  }

  .orb-stage {
    width: 110%;
    height: 65%;
    right: -30%;
    top: 3%;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  header,
  footer,
  .hero {
    width: calc(100% - 36px);
  }

  header {
    height: 68px;
  }

  nav {
    gap: 20px;
  }

  .hero {
    min-height: calc(100svh - 68px);
  }

  h1 {
    font-size: 62px;
  }

  .intro {
    margin-top: 26px;
  }

  .orb-stage {
    width: 125%;
    right: -45%;
  }

  .work {
    padding: 100px 18px;
  }

  .cards {
    gap: 12px;
  }

  .card {
    min-height: 320px;
    border-radius: 20px;
    padding: 24px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
