main { overflow: clip; }

.hero {
  grid-template-columns: 1fr 1fr;
  gap: 45px;
}

.hero h1 {
  font-size: clamp(49px, 6vw, 85px);
  letter-spacing: -.065em;
}

.hero-copy > * {
  animation: hero-in .8s cubic-bezier(.2, .75, .25, 1) both;
}

.hero-copy h1 { animation-delay: 90ms; }
.hero-copy .intro { animation-delay: 180ms; }
.hero-copy .actions { animation-delay: 260ms; }

.hero-art {
  animation: hero-in 1s .17s cubic-bezier(.2, .75, .25, 1) both;
}

.hero-grid {
  position: absolute;
  z-index: -1;
  inset: -40px -15px;
  background-image: linear-gradient(#9883ee22 1px, transparent 1px), linear-gradient(90deg, #9883ee22 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse, #000 10%, transparent 70%);
  animation: grid-drift 8s linear infinite;
}

.hero-art .orbit-one { width: 92%; height: 100%; }
.hero-art .orbit-two { width: 98%; height: 108%; left: 0; top: -5%; }
.hero-art .browser-card { width: 93%; margin-top: -35px; }
.hero-art .mock-content { padding-bottom: 34px; }
.hero-art .mock-content > strong { font-size: clamp(33px, 4.2vw, 60px); }
.hero-art .mock-ball { animation: sphere-turn 15s linear infinite; }

.hero-phone {
  position: absolute;
  z-index: 3;
  bottom: 6px;
  right: 0;
  display: flex;
  flex-direction: column;
  width: 132px;
  height: 223px;
  padding: 24px 12px 10px;
  border: 2px solid #9c8ac5;
  border-radius: 23px;
  background: linear-gradient(150deg, #3d2d68, #171121 74%);
  box-shadow: 0 24px 50px #070411b8, inset 0 0 0 3px #201a33;
  animation: phone-hover 5.5s ease-in-out infinite;
}

.phone-camera { position: absolute; top: 7px; left: 37%; width: 26%; height: 5px; background: #1d162b; border-radius: 9px; }
.phone-brand { font-size: 13px; font-weight: 800; }
.phone-brand span { color: #c3afff; }
.hero-phone > strong { font-size: 24px; line-height: 1; letter-spacing: -.05em; margin: 6px 0 11px; }
.phone-chart { display: flex; align-items: end; gap: 4px; height: 37px; margin-bottom: 11px; }
.phone-chart i {
  flex: 1;
  height: 65%;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(#cdbdff, #7956db);
  transform-origin: bottom;
  animation: bar-pulse 3.2s ease-in-out infinite alternate;
}

.phone-chart i:nth-child(2n) { height: 93%; animation-delay: -.9s; }
.phone-chart i:nth-child(3n) { height: 45%; animation-delay: -1.8s; }
.phone-chart i:nth-child(5n) { height: 72%; animation-delay: -2.7s; }
.phone-event { display: flex; align-items: center; gap: 7px; padding: 6px; border-radius: 5px; background: #35264f; font-size: 7px; line-height: 1.4; }
.phone-event i { width: 8px; height: 8px; border-radius: 50%; background: #c5acff; }

.status-dot { animation: beacon 2.4s ease-in-out infinite; }
.primary { position: relative; color: #100b20; font-weight: 750; }
.primary > span, .text-link > span, .project-caption > span { transition: transform .25s ease; }
.primary:hover > span, .text-link:hover > span, .project:hover .project-caption > span { transform: translate(3px, -3px); }
.service:hover .service-icon { transform: rotate(-7deg) scale(1.08); }
.service-icon { transition: transform .25s ease; }
.service .text-link { color: #d5c8fa; margin-top: 5px; }
.project-preview { height: 295px; }
.puls { color: #22153b; background: radial-gradient(ellipse at 80% 76%, #a592ea, #e7ddff 70%); }
.puls-title { position: relative; z-index: 2; font-size: clamp(34px, 4vw, 54px); font-weight: 760; line-height: 1; letter-spacing: -.06em; margin-top: 40px; }
.puls-calendar {
  position: absolute;
  right: 17px;
  bottom: 27px;
  width: 155px;
  padding: 12px;
  border-radius: 10px;
  background: #f9f5ff;
  box-shadow: 0 16px 28px #38276457;
  font-size: 11px;
  transform: rotate(-8deg);
  transition: transform .45s ease;
}

.project:hover .puls-calendar { transform: rotate(-3deg) translateY(-6px); }
.puls-calendar div { display: flex; justify-content: space-between; padding-block: 7px; font-size: 8px; }
.puls-calendar i { font-style: normal; }
.puls-calendar span { display: block; margin-top: 4px; padding: 3px 5px; border-radius: 4px; background: #e9dfff; font-size: 9px; }
.process { padding: 0; list-style: none; }
.process li { border-top: 1px solid #35303f; padding-top: 22px; }
.contact-note { width: fit-content; }
.contact-note > span { font-size: inherit; }
.footer-bottom > span:first-child { font-size: inherit; letter-spacing: normal; }
.motion-ready .reveal { transition-delay: var(--reveal-delay, 0ms); }
.motion-ready .reveal:focus-within { opacity: 1; transform: none; transition-delay: 0ms; }

@keyframes hero-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes grid-drift { to { background-position: 30px 30px; } }
@keyframes sphere-turn { to { transform: rotate(335deg); } }
@keyframes phone-hover {
  0%, 100% { transform: translateY(0) rotate(9deg); }
  50% { transform: translateY(-13px) rotate(5deg); }
}
@keyframes bar-pulse { from { transform: scaleY(.54); } to { transform: scaleY(1); } }
@keyframes beacon { 50% { box-shadow: 0 0 0 5px #a792ff25, 0 0 16px #9f7eff; } }

@media (min-width: 1051px) {
  .projects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 761px) and (max-width: 1050px) {
  .hero h1 { font-size: clamp(40px, 5.8vw, 61px); }
  .hero { gap: 22px; }
  .hero-phone { bottom: 0; }
}

@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hero h1 { font-size: clamp(40px, 10vw, 61px); }
  .hero-art { height: 346px; }
  .hero-art .mock-content > strong { font-size: clamp(29px, 7vw, 49px); }
  .hero-art .browser-card { margin-top: 0; }
  .hero-art .mock-ball { right: 0; }
  .hero-phone { width: 111px; height: 193px; padding: 19px 10px 9px; bottom: -3px; }
  .hero-phone > strong { font-size: 21px; }
  .phone-chart { height: 27px; }
  .footer-bottom > span:first-child { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
