:root {
  --premium-ink: #10293b;
  --premium-blue: #2f739f;
  --premium-blue-soft: #78aac8;
  --premium-paper: #f2f6f8;
}

.premium-home .human-motion-scene {
  min-height: 168vh;
}

.premium-human-frame {
  background: #e9eff2;
  cursor: crosshair;
}

.premium-human-poster {
  inset: -1.5%;
  width: 103%;
  height: 103%;
  object-position: 54% 50%;
  filter: saturate(.76) contrast(1.015) brightness(1.02);
  transform:
    translate3d(calc(var(--hero-x, 0) * -12px), calc(var(--hero-y, 0) * -8px - var(--p, 0) * .8%), 0)
    scale(calc(1.035 + var(--p, 0) * .022));
  transform-origin: 64% 58%;
  transition: filter .45s ease;
}

.hero-focus-poster {
  position: absolute;
  z-index: 2;
  inset: -1.5%;
  width: 103%;
  height: 103%;
  object-fit: cover;
  object-position: 54% 50%;
  opacity: calc(var(--pointer-active, 0) * .52);
  filter: saturate(1.02) contrast(1.08) brightness(1.025);
  transform:
    translate3d(calc(var(--hero-x, 0) * 9px), calc(var(--hero-y, 0) * 6px - var(--p, 0) * .45%), 0)
    scale(calc(1.045 + var(--p, 0) * .022));
  transform-origin: 64% 58%;
  -webkit-mask-image: radial-gradient(circle 210px at var(--cursor-x, 68%) var(--cursor-y, 48%), #000 0%, rgba(0,0,0,.92) 37%, transparent 73%);
  mask-image: radial-gradient(circle 210px at var(--cursor-x, 68%) var(--cursor-y, 48%), #000 0%, rgba(0,0,0,.92) 37%, transparent 73%);
  pointer-events: none;
  will-change: transform, opacity, -webkit-mask-image;
}

.hero-pointer-field {
  position: absolute;
  z-index: 14;
  inset: 0;
  opacity: var(--pointer-active, 0);
  pointer-events: none;
  transition: opacity .38s ease;
}

#heroPointerTrail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-pointer-field::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 230px at var(--cursor-x, 68%) var(--cursor-y, 48%), rgba(255,255,255,.12), rgba(68,131,169,.045) 42%, transparent 72%),
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(37,92,127,.035) 48px, transparent 49px),
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(37,92,127,.028) 48px, transparent 49px);
  -webkit-mask-image: radial-gradient(circle 250px at var(--cursor-x, 68%) var(--cursor-y, 48%), #000, transparent 76%);
  mask-image: radial-gradient(circle 250px at var(--cursor-x, 68%) var(--cursor-y, 48%), #000, transparent 76%);
}

.hero-pointer-ring {
  position: absolute;
  left: var(--cursor-x, 68%);
  top: var(--cursor-y, 48%);
  width: 54px;
  height: 54px;
  border: 1px solid rgba(31,91,129,.22);
  border-radius: 50%;
  box-shadow: 0 0 0 9px rgba(255,255,255,.055), inset 0 0 24px rgba(255,255,255,.12);
  transform: translate(-50%, -50%);
}

.hero-pointer-ring::before,
.hero-pointer-ring::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(35,102,143,.38);
  transform: translate(-50%, -50%);
}

.hero-pointer-ring::before { width: 8px; height: 1px; }
.hero-pointer-ring::after { width: 1px; height: 8px; }

.premium-human-frame.pointer-active .premium-human-poster {
  filter: saturate(.72) contrast(1.005) brightness(1.015);
}

.premium-photo-grade {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 41%, rgba(255,255,255,.04), transparent 28%),
    linear-gradient(112deg, rgba(236,242,245,.2), transparent 54%),
    linear-gradient(180deg, rgba(11,40,58,.05), transparent 22%, transparent 75%, rgba(11,40,58,.06));
  mix-blend-mode: multiply;
}

.premium-home .human-wash {
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(242,246,248,.97) 0%, rgba(242,246,248,.9) 24%, rgba(242,246,248,.48) 41%, rgba(242,246,248,.07) 58%, rgba(242,246,248,0) 76%),
    linear-gradient(0deg, rgba(242,246,248,.98) 0%, rgba(242,246,248,.63) 8%, rgba(242,246,248,.04) 25%),
    linear-gradient(180deg, rgba(242,246,248,.16) 0%, transparent 30%, rgba(31,75,102,.035) 100%);
}

.premium-home .human-copy {
  z-index: 16;
  top: 47%;
  width: min(700px, 48vw);
  transform: translateY(-46%);
  opacity: clamp(0, calc(1.28 - var(--p, 0) * 1.85), 1);
  transition: opacity .28s ease;
}

.premium-human-frame.hero-phase-two .human-copy {
  visibility: hidden;
  opacity: 0 !important;
}

.premium-home .human-copy .scene-index {
  margin-bottom: 24px;
  color: #3f799d;
  letter-spacing: .18em;
}

.premium-home .human-copy .scene-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  color: #4c6d82;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .14em;
}

.premium-home .human-copy .scene-kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: rgba(47,115,159,.65);
}

.premium-home .human-copy h1 {
  max-width: 680px;
  color: var(--premium-ink);
  font-size: clamp(54px, 6.25vw, 98px);
  font-weight: 480;
  line-height: .99;
  letter-spacing: -.07em;
  text-wrap: balance;
}

.hero-thesis {
  max-width: 540px;
  margin: 28px 0 0;
  color: #4f6879;
  font-size: clamp(14px, 1.18vw, 17px);
  line-height: 1.8;
  letter-spacing: .01em;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 31px;
}

.hero-discovery-copy {
  position: absolute;
  z-index: 16;
  left: max(30px, calc((100vw - 1240px) / 2));
  top: 50%;
  width: min(520px, 40vw);
  color: var(--premium-ink);
  visibility: hidden;
  opacity: 0;
  transform: translate3d(0, calc(-44% + (1 - var(--p, 0)) * 18px), 0);
  pointer-events: none;
  transition: opacity .42s ease;
}

.premium-human-frame.hero-phase-two .hero-discovery-copy {
  visibility: visible;
  opacity: 1;
}

.hero-discovery-copy .scene-index {
  margin-bottom: 20px;
  color: #477c9d;
}

.hero-discovery-copy h2 {
  margin: 0;
  color: var(--premium-ink);
  font-size: clamp(44px, 5.5vw, 82px);
  font-weight: 480;
  line-height: 1;
  letter-spacing: -.065em;
}

.hero-discovery-copy p {
  max-width: 460px;
  margin: 24px 0 0;
  color: #526d7f;
  font-size: 14px;
  line-height: 1.8;
}

.hero-primary-link,
.premium-home .hero-career-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin: 0;
  text-decoration: none;
  transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease;
}

.hero-primary-link {
  min-height: 44px;
  padding: 0 20px;
  color: #fff;
  border: 1px solid rgba(27,82,116,.14);
  border-radius: 999px;
  background: #245f84;
  box-shadow: 0 12px 30px rgba(29,78,108,.14);
  font-size: 13px;
  font-weight: 650;
}

.hero-primary-link i,
.premium-home .hero-career-link i {
  font-style: normal;
}

.hero-primary-link:hover {
  background: #194e70;
  transform: translateY(-2px);
}

.premium-home .hero-career-link {
  min-height: 44px;
  padding-bottom: 0;
  color: #365f79;
  border: 0;
  font-size: 13px;
  font-weight: 650;
}

.premium-home .hero-career-link:hover {
  color: #173f5a;
}

.motion-language {
  position: absolute;
  z-index: 8;
  inset: 0;
  pointer-events: none;
  opacity: clamp(.2, calc(.95 - var(--p, 0) * .62), .95);
  transform: translate3d(calc(var(--hero-x, 0) * -4px), calc(var(--hero-y, 0) * -3px), 0);
  transition: opacity .2s linear;
}

.premium-home .motion-language {
  display: none;
}

.motion-thread {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.motion-thread path {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.trace-soft {
  stroke: rgba(80,143,182,.17);
  stroke-width: 13;
  filter: url(#premiumSoftGlow);
}

.trace-main {
  stroke: url(#premiumTrace);
  stroke-width: 1.1;
  stroke-dasharray: 2 9;
  stroke-linecap: round;
  animation: premiumTraceFlow 8s linear infinite;
}

.token-route {
  stroke: rgba(53,111,148,.18);
  stroke-width: .8;
  stroke-dasharray: 1 8;
}

.sensor-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(29,79,110,.66);
  font: 650 7px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
  transform: translate(-50%, -50%);
}

.sensor-node i {
  position: relative;
  display: block;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 50%;
  background: #367da9;
  box-shadow: 0 0 0 5px rgba(54,125,169,.1), 0 0 18px rgba(48,115,156,.3);
}

.sensor-node i::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(47,115,159,.2);
  border-radius: 50%;
  animation: premiumNodePulse 3.2s ease-out infinite;
}

.node-shoulder { left: 69.8%; top: 24%; }
.node-wrist { left: 77.2%; top: 50%; }
.node-hip { left: 69.1%; top: 52%; }
.node-knee { left: 64.5%; top: 70%; }
.node-ankle { left: 60.8%; top: 84%; }
.node-contact { left: 59.3%; top: 89.5%; }

.node-wrist i::after { animation-delay: -.7s; }
.node-hip i::after { animation-delay: -1.4s; }
.node-knee i::after { animation-delay: -2s; }
.node-ankle i::after { animation-delay: -2.6s; }
.node-contact i::after { animation-delay: -1s; }

.token-stream {
  position: absolute;
  width: 16%;
  height: 2px;
  transform-origin: left center;
}

.token-stream-a { left: 69%; top: 52.5%; transform: rotate(-19deg); }
.token-stream-b { left: 65.5%; top: 69%; transform: rotate(-11deg); }
.token-stream-c { left: 61%; top: 84%; transform: rotate(-8deg); }

.token-stream i {
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(43,108,149,.76);
  box-shadow: 0 0 10px rgba(43,108,149,.32);
  animation: premiumTokenTravel 5.4s cubic-bezier(.3,.1,.7,.9) infinite;
}

.token-stream i:nth-child(2) { animation-delay: -1.35s; }
.token-stream i:nth-child(3) { animation-delay: -2.7s; }
.token-stream i:nth-child(4) { animation-delay: -4.05s; }
.token-stream-b i { animation-duration: 6.2s; }
.token-stream-c i { animation-duration: 7s; }

.movement-field {
  position: absolute;
  right: 3.2%;
  top: 17%;
  width: 8.5%;
  height: 64%;
  border-left: 1px solid rgba(40,101,140,.14);
  border-right: 1px solid rgba(40,101,140,.05);
  background: linear-gradient(90deg, rgba(119,169,199,.015), rgba(53,118,158,.05), rgba(119,169,199,.015));
  mask-image: linear-gradient(180deg, transparent, #000 13%, #000 86%, transparent);
}

.movement-field::before,
.movement-field::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 42px, rgba(43,101,138,.08) 43px, transparent 44px);
}

.movement-field::after {
  background: repeating-linear-gradient(90deg, transparent 0 19px, rgba(43,101,138,.055) 20px, transparent 21px);
}

.movement-field > span {
  position: absolute;
  left: 50%;
  top: 50%;
  color: rgba(27,76,106,.54);
  font: 650 7px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .22em;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(90deg);
}

.movement-field > i {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(47,115,159,.62);
  animation: premiumFieldDrift 6s ease-in-out infinite alternate;
}

.movement-field > i:nth-of-type(1) { --x: 22%; --y: 28%; animation-delay: -1s; }
.movement-field > i:nth-of-type(2) { --x: 70%; --y: 37%; animation-delay: -3s; }
.movement-field > i:nth-of-type(3) { --x: 38%; --y: 52%; animation-delay: -4.5s; }
.movement-field > i:nth-of-type(4) { --x: 76%; --y: 68%; animation-delay: -2s; }
.movement-field > i:nth-of-type(5) { --x: 28%; --y: 79%; animation-delay: -5s; }

.field-caption {
  position: absolute;
  right: 2.2%;
  bottom: 12.5%;
  color: rgba(42,83,108,.62);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
  writing-mode: vertical-rl;
}

.hero-sequence {
  position: absolute;
  z-index: 17;
  left: 50%;
  bottom: 28px;
  display: flex;
  align-items: center;
  width: min(680px, 44vw);
  color: rgba(31,72,98,.68);
  transform: translateX(-18%);
  opacity: clamp(0, calc(1 - var(--p, 0) * 3), 1);
}

.hero-sequence span {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.hero-sequence i,
.hero-sequence b {
  font: 650 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
}

.hero-sequence i { color: rgba(47,115,159,.52); font-style: normal; }
.hero-sequence b { color: rgba(31,72,98,.7); }
.hero-sequence em { height: 1px; flex: 1 1 auto; margin: 0 14px; background: rgba(35,84,115,.2); }

.hero-transition {
  position: absolute;
  z-index: 18;
  inset: auto 0 0;
  height: 23%;
  background: linear-gradient(180deg, rgba(242,246,248,0), rgba(244,247,251,.3) 37%, #f4f7fb 100%);
  opacity: clamp(0, calc((var(--p, 0) - .48) * 3.5), 1);
  pointer-events: none;
}

.hero-transition i {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 13%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46,111,166,.16), transparent);
  transform: scaleX(clamp(0, calc((var(--p, 0) - .46) * 2.8), 1));
}

.premium-home .scroll-cue {
  bottom: 29px;
  color: rgba(50,88,111,.64);
}

@keyframes premiumTraceFlow {
  to { stroke-dashoffset: -110; }
}

@keyframes premiumNodePulse {
  0% { opacity: .6; transform: scale(.55); }
  62%, 100% { opacity: 0; transform: scale(1.4); }
}

@keyframes premiumTokenTravel {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(.7); }
  18% { opacity: .9; }
  76% { opacity: .55; }
  100% { opacity: 0; transform: translate3d(15vw, 0, 0) scale(.45); }
}

@keyframes premiumFieldDrift {
  from { opacity: .25; transform: translate3d(-3px,-7px,0) scale(.75); }
  to { opacity: .8; transform: translate3d(5px,8px,0) scale(1.25); }
}

@media (max-width: 980px) {
  .premium-home .human-wash {
    background:
      linear-gradient(90deg, rgba(242,246,248,.96) 0%, rgba(242,246,248,.83) 35%, rgba(242,246,248,.18) 65%, rgba(242,246,248,0) 86%),
      linear-gradient(0deg, rgba(242,246,248,.97) 0%, rgba(242,246,248,.38) 15%, transparent 33%);
  }

  .premium-home .human-copy { width: 55vw; }
  .premium-home .human-copy h1 { font-size: clamp(48px, 7.8vw, 76px); }
  .hero-thesis { max-width: 410px; font-size: 14px; }
  .hero-sequence { left: 48%; width: 46vw; }
  .sensor-node b { display: none; }
  .movement-field { right: 1.5%; }
  .field-caption { display: none; }
  .hero-discovery-copy { width: 44vw; }
}

@media (max-width: 720px) {
  .premium-home .human-motion-scene { min-height: 142vh; }

  .premium-human-poster {
    inset: 0;
    width: 100%;
    height: 100%;
    object-position: 63% center;
    transform: scale(calc(1.01 + var(--p, 0) * .018));
  }

  .premium-human-frame { cursor: auto; }
  .hero-focus-poster,
  .hero-pointer-field { display: none; }

  .premium-home .human-wash {
    background:
      linear-gradient(180deg, rgba(242,246,248,.97) 0%, rgba(242,246,248,.92) 24%, rgba(242,246,248,.58) 48%, rgba(242,246,248,.1) 66%, rgba(242,246,248,.84) 100%),
      linear-gradient(90deg, rgba(242,246,248,.55), rgba(242,246,248,.02) 68%);
  }

  .premium-home .human-copy {
    left: 24px;
    right: 24px;
    top: 19%;
    width: auto;
    transform: none;
  }

  .premium-home .human-copy .scene-index { margin-bottom: 14px; }
  .premium-home .human-copy .scene-kicker { margin-bottom: 16px; font-size: 10px; }
  .premium-home .human-copy h1 { max-width: 340px; font-size: clamp(40px, 11.2vw, 54px); line-height: 1.02; letter-spacing: -.065em; }
  .hero-thesis { max-width: 310px; margin-top: 17px; font-size: 12px; line-height: 1.7; }
  .hero-actions { gap: 18px; margin-top: 21px; }
  .hero-primary-link { min-height: 40px; padding: 0 16px; font-size: 12px; }
  .premium-home .hero-career-link { min-height: 40px; max-width: none; font-size: 12px; line-height: 1.35; }

  .hero-discovery-copy {
    left: 24px;
    right: 24px;
    top: 25%;
    width: auto;
    transform: translate3d(0, calc((1 - var(--p, 0)) * 14px), 0);
  }

  .hero-discovery-copy h2 { max-width: 290px; font-size: clamp(38px, 11vw, 52px); }
  .hero-discovery-copy p { max-width: 290px; margin-top: 16px; font-size: 12px; line-height: 1.7; }

  .motion-language { opacity: clamp(.15, calc(.8 - var(--p, 0) * .5), .8); }
  .motion-thread { left: 20%; width: 98%; }
  .sensor-node { display: none; }
  .token-stream-a { left: 66%; top: 58%; }
  .token-stream-b { left: 61%; top: 72%; }
  .token-stream-c { left: 55%; top: 84%; }
  .movement-field { right: 3%; top: 47%; width: 11%; height: 42%; }

  .hero-sequence {
    left: 24px;
    right: 24px;
    bottom: 58px;
    width: auto;
    transform: none;
  }

  .hero-sequence i { display: none; }
  .hero-sequence b { font-size: 7px; letter-spacing: .08em; }
  .hero-sequence em { margin: 0 7px; }
  .premium-home .scroll-cue { left: 24px; bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .premium-human-poster,
  .hero-focus-poster,
  .motion-language { transform: none; }
  .trace-main,
  .sensor-node i::after,
  .token-stream i,
  .movement-field > i { animation: none; }
  .token-stream i { opacity: .35; }
  .premium-home .human-copy { visibility: visible !important; opacity: 1 !important; }
  .premium-home .hero-discovery-copy { display: none; }
  .hero-pointer-field { display: none; }
}
