/* Advanced motion layer */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 150;
  transform-origin: left;
  background: linear-gradient(90deg, var(--orange), var(--acid), var(--blue));
  transform: scaleX(0);
}
.page-wipe {
  position: fixed;
  inset: 0;
  z-index: 140;
  pointer-events: none;
  background: var(--blue);
  transform: scaleY(0);
  transform-origin: bottom;
}
.page-wipe.exit {
  animation: wipeIn 0.5s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
@keyframes wipeIn {
  to {
    transform: scaleY(1);
  }
}
.motion-manifesto {
  height: 190vh;
  position: relative;
  background: linear-gradient(135deg, #ff6038 0%, #ff7045 54%, #ff8c61 100%);
  color: var(--ink);
  overflow: clip;
  border-bottom: 1px solid var(--ink);
}
.motion-manifesto::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(21, 21, 21, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 21, 21, 0.09) 1px, transparent 1px);
  background-size: 6.25vw 6.25vw;
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
}
.manifesto-count {
  position: absolute;
  z-index: 3;
  right: var(--pad);
  top: calc(45vh + 18px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  writing-mode: vertical-rl;
}
.manifesto-sticky {
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8vh var(--pad);
  isolation: isolate;
}
.manifesto-sticky .kicker {
  position: absolute;
  top: 9vh;
  left: var(--pad);
}
.kinetic-wrap {
  width: 100%;
  transform: rotate(-1deg);
}
.kinetic-line {
  font:
    700 clamp(58px, 11vw, 175px)/0.78 'Space Grotesk',
    Arial,
    sans-serif;
  letter-spacing: -0.075em;
  white-space: nowrap;
  transform: translateX(var(--mx, 0)) rotate(var(--mr, 0deg));
  will-change: transform;
}
.kinetic-line.outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  margin-left: 7vw;
}
.kinetic-line.blue {
  color: var(--blue);
  margin-left: 18vw;
}
.manifesto-note {
  position: absolute;
  right: var(--pad);
  bottom: 8vh;
  max-width: 370px;
  font-size: 18px;
  line-height: 1.5;
}
.scroll-ring {
  position: absolute;
  left: var(--pad);
  bottom: 5vh;
  width: 126px;
  aspect-ratio: 1;
  border: 1.25px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(3px);
  transition:
    background 0.3s,
    transform 0.3s;
  overflow: hidden;
}
.scroll-ring svg {
  position: absolute;
  inset: 5px;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  animation: ringSpin 13s linear infinite;
  overflow: visible;
}
.scroll-ring text {
  font:
    700 9.2px 'DM Sans',
    Arial,
    sans-serif;
  letter-spacing: 1.75px;
  fill: var(--ink);
}
.ring-arrow {
  position: relative;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50%;
  background: var(--acid);
  display: grid !important;
  place-items: center;
  font-size: 24px !important;
  line-height: 1;
  transition: transform 0.3s;
}
.ring-dot {
  position: absolute;
  right: 7px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  border: 1px solid var(--ink);
}
.scroll-ring:hover {
  background: var(--acid);
  transform: scale(1.05);
}
.scroll-ring:hover .ring-arrow {
  transform: translateY(4px);
  background: #fff;
}
.scroll-ring:hover svg {
  animation-duration: 7s;
}
@keyframes ringSpin {
  to {
    transform: rotate(360deg);
  }
}
.orbit-word {
  position: absolute;
  z-index: 0;
  font: 700 18px 'Space Grotesk';
  text-transform: uppercase;
  background: var(--acid);
  border: 1px solid var(--ink);
  border-radius: 50%;
  width: 100px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  will-change: transform;
}
.orbit-a {
  left: 8%;
  top: 35%;
}
.orbit-b {
  right: 8%;
  top: 63%;
  background: #fff;
}
.pulse-board {
  background: #e8a8ff;
  color: var(--ink);
  border-block: 1px solid var(--ink);
  position: relative;
  overflow: hidden;
}
.pulse-board::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(21, 21, 21, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 21, 21, 0.09) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.pulse-meta {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 16px var(--pad);
  border-bottom: 1px solid var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.pulse-meta span:last-child {
  display: flex;
  align-items: center;
  gap: 9px;
}
.pulse-meta i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(36, 86, 245, 0.14);
}
.pulse-main {
  position: relative;
  z-index: 1;
  min-height: 680px;
  padding: clamp(60px, 8vw, 120px) var(--pad);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 50px;
}
.pulse-copy h2 {
  font:
    700 clamp(62px, 8.4vw, 130px)/0.77 'Space Grotesk',
    Arial,
    sans-serif;
  letter-spacing: -0.075em;
  text-transform: uppercase;
  margin: 25px 0 35px;
}
.pulse-copy h2 em {
  font-family: Georgia, serif;
  font-weight: 400;
  text-transform: none;
  color: var(--blue);
}
.pulse-description {
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 1.55;
  max-width: 520px;
  margin-left: 18%;
}
.pulse-machine {
  width: min(36vw, 500px);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  margin: auto;
}
.pulse-machine::before {
  content: '';
  position: absolute;
  inset: 3%;
  border-radius: 50%;
  background: var(--acid);
  border: 1.5px solid var(--ink);
  box-shadow: 16px 18px 0 var(--ink);
}
.machine-orbit {
  position: absolute;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: machineSpin 15s linear infinite;
}
.orbit-one {
  inset: 10%;
  transform: rotate(18deg);
}
.orbit-two {
  inset: 22%;
  animation-direction: reverse;
  animation-duration: 10s;
}
.machine-orbit b {
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 99px;
  padding: 7px 10px;
  font-size: 10px;
  letter-spacing: 1px;
}
.machine-core {
  position: relative;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--orange);
  border: 1.5px solid var(--ink);
  display: grid;
  place-content: center;
  text-align: center;
  box-shadow: 0 10px 30px rgba(21, 21, 21, 0.15);
  animation: coreBreathe 3s ease-in-out infinite;
}
.machine-core span {
  font: 700 clamp(50px, 6vw, 84px)/0.72 'Space Grotesk';
  letter-spacing: -0.08em;
}
.machine-core small {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
}
.spark {
  position: absolute;
  font-style: normal;
  font-size: clamp(24px, 4vw, 50px);
  animation: sparkFloat 3s ease-in-out infinite;
}
.spark-one {
  right: 2%;
  top: 8%;
  color: var(--blue);
}
.spark-two {
  left: 1%;
  bottom: 10%;
  animation-delay: -1.5s;
}
.pulse-cards {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
}
.pulse-cards article {
  min-height: 145px;
  padding: 20px var(--pad);
  border-right: 1px solid var(--ink);
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: space-between;
  gap: 20px;
  transition:
    background 0.3s,
    color 0.3s;
}
.pulse-cards article:last-child {
  border: 0;
}
.pulse-cards article:hover {
  background: var(--ink);
  color: #fff;
}
.pulse-cards span,
.pulse-cards i {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.pulse-cards b {
  grid-column: 1/-1;
  font: 600 clamp(20px, 2vw, 30px) 'Space Grotesk';
  letter-spacing: -1px;
}
.pulse-cards i {
  font-style: normal;
  text-align: right;
}
@keyframes machineSpin {
  to {
    transform: rotate(378deg);
  }
}
@keyframes coreBreathe {
  50% {
    transform: scale(1.08) rotate(-3deg);
  }
}
@keyframes sparkFloat {
  50% {
    transform: translateY(-12px) rotate(20deg);
  }
}
.char {
  display: inline-block;
  will-change: transform;
}
.tilt {
  transform-style: preserve-3d;
  will-change: transform;
}
.tilt > * {
  transform: translateZ(20px);
}
.service {
  transform-origin: center;
}
.service.in:nth-child(odd) {
  animation: cardLand 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes cardLand {
  from {
    opacity: 0;
    transform: perspective(900px) rotateX(15deg) translateY(80px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.work-card::after {
  content: '';
  position: absolute;
  inset: -50%;
  background: linear-gradient(
    110deg,
    transparent 42%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 58%
  );
  transform: translateX(-60%) rotate(15deg);
  transition: transform 0.9s;
}
.work-card:hover::after {
  transform: translateX(60%) rotate(15deg);
}
.hero-art::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  pointer-events: none;
}
.hero-art {
  clip-path: inset(0 round clamp(24px, 4vw, 56px));
  animation: heroUnmask 1.2s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes heroUnmask {
  from {
    clip-path: inset(45% 45% 45% 45% round 200px);
    transform: rotate(4deg) scale(0.86);
  }
  to {
    clip-path: inset(0 round clamp(24px, 4vw, 56px));
    transform: none;
  }
}
.fit-section {
  background: var(--paper);
  color: var(--ink);
  border-block: 1px solid var(--ink);
  overflow: hidden;
}
.fit-topline {
  height: 52px;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.fit-stage {
  min-height: 760px;
  padding: clamp(70px, 9vw, 135px) var(--pad);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(50px, 8vw, 130px);
}
.fit-copy h2 {
  font:
    700 clamp(58px, 7.5vw, 116px)/0.84 'Space Grotesk',
    Arial,
    sans-serif;
  letter-spacing: -0.075em;
  text-transform: uppercase;
  margin: 28px 0 35px;
}
.fit-copy h2 em {
  font-family: Georgia, serif;
  font-weight: 400;
  text-transform: none;
  color: var(--orange);
}
.fit-copy > p {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  max-width: 570px;
  margin-left: 13%;
}
.fit-link {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid var(--ink);
  padding: 15px 0;
  margin: 35px 0 0 13%;
  font-weight: 700;
}
.fit-link span {
  font-size: 20px;
  transition: transform 0.25s;
}
.fit-link:hover span {
  transform: translate(4px, -4px);
}
.fit-visual {
  height: min(42vw, 570px);
  min-height: 490px;
  position: relative;
}
.fit-card {
  position: absolute;
  width: 64%;
  height: 52%;
  border: 1.5px solid var(--ink);
  border-radius: 32px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 9px 11px 0 var(--ink);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.fit-card span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.fit-card b {
  align-self: flex-end;
  font: 700 12px 'Space Grotesk';
}
.fit-card i {
  font:
    400 clamp(35px, 4vw, 62px) Georgia,
    serif;
}
.card-blue {
  left: 0;
  top: 3%;
  background: var(--blue);
  color: #fff;
  transform: rotate(-7deg);
}
.card-orange {
  right: 0;
  top: 22%;
  background: var(--orange);
  transform: rotate(7deg);
}
.card-acid {
  left: 16%;
  bottom: 0;
  background: var(--acid);
  transform: rotate(-2deg);
}
.fit-visual:hover .card-blue {
  transform: translate(-18px, -15px) rotate(-11deg);
}
.fit-visual:hover .card-orange {
  transform: translate(18px, -8px) rotate(11deg);
}
.fit-visual:hover .card-acid {
  transform: translateY(16px) rotate(1deg);
}
.fit-center {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 135px;
  aspect-ratio: 1;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-content: center;
  text-align: center;
  box-shadow: 0 10px 30px rgba(21, 21, 21, 0.18);
  animation: fitFloat 3.5s ease-in-out infinite;
}
.fit-center strong {
  font: 700 65px/0.7 'Space Grotesk';
  letter-spacing: -0.08em;
}
.fit-center small {
  font-size: 9px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 8px;
}
.fit-rail {
  min-height: 76px;
  border-top: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 18px;
  padding: 0 var(--pad);
  font: 600 clamp(14px, 1.35vw, 20px) 'Space Grotesk';
  white-space: nowrap;
}
.fit-rail i {
  font-style: normal;
  color: var(--blue);
}
@keyframes fitFloat {
  50% {
    transform: translate(-50%, calc(-50% - 9px)) rotate(3deg);
  }
}
@media (max-width: 900px) {
  .motion-manifesto {
    height: 165vh;
  }
  .manifesto-note {
    max-width: 300px;
  }
  .kinetic-line {
    font-size: 15vw;
  }
  .kinetic-line.blue {
    margin-left: 5vw;
  }
  .orbit-word {
    width: 75px;
  }
  .scroll-ring {
    display: none;
  }
  .manifesto-count {
    display: none;
  }
  .pulse-main {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .pulse-machine {
    width: min(70vw, 440px);
    margin-top: 30px;
  }
  .pulse-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .pulse-cards article:nth-child(2) {
    border-right: 0;
  }
  .pulse-cards article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--ink);
  }
}
@media (max-width: 560px) {
  .manifesto-sticky {
    padding-inline: 18px;
  }
  .manifesto-sticky .kicker {
    left: 18px;
  }
  .kinetic-line {
    font-size: 17vw;
    line-height: 0.9;
  }
  .kinetic-line.outline {
    margin-left: 0;
  }
  .manifesto-note {
    right: 18px;
    left: 18px;
    bottom: 8vh;
    font-size: 15px;
  }
  .orbit-a {
    top: 28%;
  }
  .orbit-b {
    top: 72%;
  }
  .pulse-meta {
    padding-inline: 18px;
  }
  .pulse-meta span:first-child {
    display: none;
  }
  .pulse-main {
    padding: 70px 18px;
  }
  .pulse-copy h2 {
    font-size: 17vw;
  }
  .pulse-description {
    margin-left: 0;
  }
  .pulse-machine {
    width: 82vw;
  }
  .pulse-machine::before {
    box-shadow: 9px 10px 0 var(--ink);
  }
  .pulse-cards {
    grid-template-columns: 1fr;
  }
  .pulse-cards article {
    border-right: 0 !important;
    border-bottom: 1px solid var(--ink);
    min-height: 120px;
    padding-inline: 18px;
  }
  .pulse-cards article:last-child {
    border-bottom: 0;
  }
}
@media (max-width: 900px) {
  .fit-stage {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .fit-visual {
    height: 560px;
    width: min(650px, 90vw);
    margin: auto;
  }
  .fit-rail {
    overflow: hidden;
    justify-content: flex-start;
  }
  .fit-rail span {
    margin-right: 20px;
  }
}
@media (max-width: 560px) {
  .fit-topline {
    padding-inline: 18px;
  }
  .fit-topline span:last-child {
    display: none;
  }
  .fit-stage {
    padding: 70px 18px;
    gap: 65px;
  }
  .fit-copy h2 {
    font-size: 16vw;
  }
  .fit-copy > p,
  .fit-link {
    margin-left: 0;
  }
  .fit-visual {
    height: 430px;
    min-height: 0;
    width: 100%;
  }
  .fit-card {
    border-radius: 23px;
    padding: 16px;
    box-shadow: 6px 7px 0 var(--ink);
  }
  .fit-center {
    width: 100px;
  }
  .fit-center strong {
    font-size: 50px;
  }
  .fit-rail {
    padding-inline: 18px;
    min-height: 64px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .kinetic-line,
  .machine-orbit,
  .machine-core,
  .spark,
  .orbit-word {
    transform: none !important;
  }
}
