/* Experimental hero. Enabled only by ?hero=workbench. */
.workbench-variant .hero-canvas {
  min-height: 760px;
  perspective: 1500px;
}
.workbench-variant .hero-inner {
  grid-template-columns: minmax(0,.86fr) minmax(640px,1.14fr);
  gap: clamp(4rem, 6vw, 7rem);
}
.workbench-variant .hero-copy {
  padding-left: 0;
  transform: none;
}
.workbench-variant .hero h1 {
  font-size: 60px;
  line-height: 1.04;
}
.workbench-variant .hero h1 .hero-demand-line {
  font-size: 1em;
  margin-top: .24em;
}
.workbench-variant .hero h1 .hero-role-line {
  margin-top: .24em;
  font-size: 1em;
  line-height: inherit;
  letter-spacing: inherit;
}

.workbench-stage {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --pointer-x: 58%;
  --pointer-y: 42%;
  position: relative;
  width: min(760px, 100%);
  justify-self: end;
  aspect-ratio: 1.2 / 1;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform .75s cubic-bezier(.16,.84,.24,1);
  will-change: transform;
}

.workbench-glow {
  position: absolute;
  z-index: 0;
  width: 55%;
  aspect-ratio: 1;
  left: calc(var(--pointer-x) - 27.5%);
  top: calc(var(--pointer-y) - 27.5%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(82,39,255,.28), rgba(255,159,252,.18) 42%, transparent 72%);
  filter: blur(34px);
  transition: left .55s ease, top .55s ease;
}

.workbench-ambient-orb {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  pointer-events: none;
  opacity: .72;
  filter: blur(13px);
  will-change: transform;
  animation: wbAmbientFloat 7.5s ease-in-out infinite;
}
.ambient-orb-left {
  width: 116px;
  height: 116px;
  left: -4.5%;
  top: 49%;
  background: radial-gradient(circle at 43% 40%, rgba(255,255,255,.8) 0 8%, #cbc9d4 22%, #5227ff 58%, rgba(82,39,255,0) 78%);
}
.ambient-orb-bottom {
  width: 158px;
  height: 158px;
  right: 9%;
  bottom: -5%;
  opacity: .64;
  background: radial-gradient(circle at 45% 42%, rgba(255,255,255,.75) 0 7%, #ff9ffc 24%, #b19eef 54%, rgba(177,158,239,0) 79%);
  animation-delay: -3.2s;
}

@keyframes wbAmbientFloat {
  0%,100% { transform: translate3d(0,-7px,18px) scale(.98); }
  50% { transform: translate3d(0,11px,18px) scale(1.04); }
}

.design-os {
  position: absolute;
  z-index: 2;
  inset: 8% 5% 10%;
  overflow: hidden;
  border: 1px solid rgba(18,18,18,.14);
  border-radius: 30px;
  background: rgba(255,255,255,.20);
  backdrop-filter: blur(10px) saturate(1.12);
  -webkit-backdrop-filter: blur(10px) saturate(1.12);
  box-shadow: 0 40px 90px rgba(50,40,90,.18), inset 0 1px rgba(255,255,255,.8);
  transform: translateZ(26px);
}

.design-os-bar {
  height: 58px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid rgba(18,18,18,.08);
  background: rgba(255,255,255,.44);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
}
.os-dots { display: flex; gap: 6px; }
.os-dots i { width: 8px; height: 8px; border-radius: 50%; background: #d8d8d8; }
.os-dots i:first-child { background: #ff6b68; }
.os-dots i:nth-child(2) { background: #f1f34d; }
.os-dots i:last-child { background: #35cf78; }
.os-address { padding: 6px 20px; border-radius: 999px; background: rgba(18,18,18,.05); font-size: 11px; color: rgba(18,18,18,.55); letter-spacing: .04em; }
.os-status { justify-self: end; display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.os-status i { width: 7px; height: 7px; border-radius: 50%; background: #30c777; box-shadow: 0 0 0 5px rgba(48,199,119,.12); }

.design-grid {
  display: grid;
  grid-template-columns: 1.08fr .9fr 1.12fr;
  grid-template-rows: 1fr 1fr;
  height: calc(100% - 58px);
  background: rgba(18,18,18,.045);
  gap: 1px;
}
.design-module {
  position: relative;
  overflow: hidden;
  padding: clamp(16px, 2vw, 25px);
  background: rgba(255,255,255,.48);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  transition: transform .45s cubic-bezier(.2,.8,.2,1), background-color .35s ease;
}
.design-module:hover { z-index: 3; transform: translateZ(24px) scale(1.025); background: rgba(255,255,255,.68); }
.module-label { display: block; margin-bottom: 12px; font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: rgba(18,18,18,.42); }

.type-module { display: flex; flex-direction: column; justify-content: space-between; }
.type-selection {
  position: relative;
  display: grid;
  place-items: center;
  width: max-content;
  max-width: 100%;
  align-self: center;
  min-height: 82px;
  padding: 8px 12px;
  border: 2px solid #5227ff;
  cursor: crosshair;
}
.type-selection .handle {
  position: absolute;
  z-index: 2;
  width: 11px;
  height: 11px;
  border: 2px solid #5227ff;
  background: rgba(255,255,255,.9);
  box-shadow: 0 0 0 1px rgba(255,255,255,.5);
}
.handle-tl { left: -7px; top: -7px; }
.handle-tr { right: -7px; top: -7px; }
.handle-bl { left: -7px; bottom: -7px; }
.handle-br { right: -7px; bottom: -7px; }
.type-sample {
  color: #566171;
  font-size: clamp(52px, 5vw, 82px);
  line-height: .72;
  font-weight: 800;
  letter-spacing: -.025em;
  -webkit-text-fill-color: currentColor;
  -webkit-text-stroke: 0 transparent;
  transform: translateY(-5px);
  transition: color .4s cubic-bezier(.2,.8,.2,1), -webkit-text-fill-color .4s cubic-bezier(.2,.8,.2,1), -webkit-text-stroke .4s cubic-bezier(.2,.8,.2,1), transform .45s cubic-bezier(.2,.8,.2,1);
}
.type-sample span { color: #5227ff; -webkit-text-fill-color: currentColor; }
.type-selection:hover .type-sample {
  color: #5227ff;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2px #5227ff;
  transform: translateY(-6px);
}
.type-selection:hover .type-sample span { color: #5227ff; -webkit-text-fill-color: transparent; }
.type-caption { display: flex; justify-content: space-between; color: rgba(18,18,18,.55); font-size: 10px; }

.token-module { display: grid; align-content: space-between; }
.token-swatches { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; }
.token-swatches i { aspect-ratio: 1; border-radius: 9px; background: #5227ff; }
.token-swatches i {
  position: relative;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(35,27,72,.08);
  transition: transform .42s cubic-bezier(.18,.88,.25,1.2), border-radius .35s ease, box-shadow .35s ease;
}
.token-swatches i:hover {
  z-index: 2;
  transform: translateY(-5px) scale(1.18);
  border-radius: 12px;
  box-shadow: 0 13px 25px rgba(35,27,72,.2);
}
.token-swatches i:nth-child(2) { background: #ff9ffc; }
.token-swatches i:nth-child(3) { background: #cbc9d4; }
.token-swatches i:nth-child(4) { background: #f1f34d; }
.token-lines { display: grid; gap: 8px; }
.token-lines span { height: 7px; border-radius: 999px; background: rgba(18,18,18,.07); }
.token-lines span:nth-child(2) { width: 72%; }
.token-lines span:nth-child(3) { width: 48%; }

.profile-module { background: rgba(12,12,14,.86); color: white; }
.profile-module:hover { background: rgba(12,12,14,.92); }
.profile-head { display: flex; align-items: center; gap: 13px; }
.profile-head img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform .48s cubic-bezier(.18,.88,.25,1.2), box-shadow .4s ease;
}
.profile-head img:hover {
  transform: scale(1.16) rotate(-3deg);
  box-shadow: 0 12px 28px rgba(255,159,252,.28);
}
.profile-head strong,.profile-head small { display: block; }
.profile-head strong { font-size: 16px; }
.profile-head small { color: rgba(255,255,255,.54); font-size: 9px; }
.experience-number { margin-top: 30px; font-size: clamp(44px,4vw,68px); font-weight: 750; line-height: .85; letter-spacing: -.07em; }
.experience-number small { margin-left: 5px; font-size: 10px; letter-spacing: .04em; color: #ff9ffc; }

.ui-module { grid-column: span 2; background: linear-gradient(135deg, rgba(82,39,255,.14), rgba(255,159,252,.12) 55%, rgba(255,255,255,.46)); }
.phone-set { position: absolute; inset: 52px 20px auto auto; display: flex; align-items: end; gap: 11px; }
.mini-phone { position: relative; width: 76px; height: 142px; padding: 10px 7px; border: 3px solid #151515; border-radius: 18px; background: white; box-shadow: 0 18px 32px rgba(18,18,18,.16); }
.mini-phone:nth-child(2) { transform: translateY(10px); }
.mini-phone::before { content: ""; display: block; width: 30px; height: 4px; margin: -5px auto 10px; border-radius: 4px; background: #151515; }
.mini-phone i { display: block; height: 9px; margin-top: 7px; border-radius: 4px; background: rgba(18,18,18,.08); }
.mini-phone i:first-of-type { height: 43px; background: linear-gradient(135deg,#5227ff,#ff9ffc); }
.ui-title { max-width: 48%; margin-top: 20px; font-size: clamp(19px,2vw,29px); line-height: 1.04; font-weight: 700; letter-spacing: -.04em; }
.ui-tags { display: flex; flex-wrap: nowrap; gap: 4px; width: max-content; max-width: calc(100% - 154px); margin-top: 18px; }
.ui-tags span { flex: 0 0 auto; padding: 5px 7px; border: 1px solid rgba(18,18,18,.1); border-radius: 999px; background: rgba(255,255,255,.55); font-size: 8px; white-space: nowrap; }

.system-module { background: rgba(14,15,20,.86); color: white; }
.system-module:hover { background: rgba(14,15,20,.92); }
.system-module .module-label,
.profile-module .module-label { color: rgba(255,255,255,.58); }
.code-lines { display: grid; gap: 9px; margin-top: 18px; }
.code-lines i { height: 6px; border-radius: 4px; background: #ff9ffc; }
.code-lines i:nth-child(2) { width: 74%; background: #80dcff; }
.code-lines i:nth-child(3) { width: 88%; background: #b19eef; }
.code-lines i:nth-child(4) { width: 52%; background: #f1f34d; }
.system-foot { position: absolute; left: 24px; right: 24px; bottom: 19px; display: flex; justify-content: space-between; font: 9px ui-monospace, monospace; color: rgba(255,255,255,.48); }

.workbench-orb {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #5227ff;
  color: white;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 16px 32px rgba(82,39,255,.28);
  transform: translateZ(55px);
  animation: wbFloat 5s ease-in-out infinite;
}
.orb-figma { left: 0; top: 24%; }
.orb-ai { right: 0; top: 42%; width: 68px; height: 68px; background: #ff9ffc; color: #111; animation-delay: -1.7s; }
.orb-ui { left: 16%; bottom: 2%; width: 48px; height: 48px; background: #121212; animation-delay: -3.1s; }
.workbench-blur-dot { position: absolute; z-index: 1; width: 48px; height: 48px; border-radius: 50%; background: #b19eef; filter: blur(12px); opacity: .65; animation: wbFloat 6s ease-in-out -2s infinite; }
.dot-a { right: 4%; top: 18%; }
.dot-b { left: 5%; bottom: 21%; background: #ff9ffc; }

@keyframes wbFloat { 0%,100%{transform:translate3d(0,-7px,55px) rotate(-2deg)}50%{transform:translate3d(0,10px,55px) rotate(3deg)} }

@media (max-width: 1350px) and (min-width: 1101px) {
  .workbench-variant .hero-inner {
    grid-template-columns: minmax(0,.82fr) minmax(570px,1.18fr);
    gap: clamp(2.5rem, 4vw, 4rem);
  }
  .workbench-stage { width: 660px; }
}
@media (max-width: 1100px) {
  .workbench-variant .hero-inner { grid-template-columns: .78fr 1.22fr; gap: 1rem; }
  .workbench-variant .hero-copy { padding-left: 0; }
  .workbench-variant .hero h1 { font-size: 48px; }
  .workbench-stage { width: 660px; }
  .design-os { inset: 10% 4% 12%; }
}
@media (max-width: 720px) {
  .workbench-variant .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .workbench-variant .hero-canvas { min-height: clamp(420px, 52dvh, 500px); overflow: hidden; }
  .workbench-variant .hero h1 { font-size: 36px; }
  .workbench-stage { position: absolute; top: 0; left: 50%; width: 590px; max-width: none; margin-left: -295px; justify-self: auto; transform: scale(.62); transform-origin: center top; }
  .design-os { inset: 7% 4% 8%; box-shadow: inset 0 1px rgba(255,255,255,.8); }
  .workbench-orb { display: none; }
  .workbench-ambient-orb { transform: scale(.82); }
  .ambient-orb-left { left: 1%; opacity: .62; }
}
@media (prefers-reduced-motion: reduce) {
  .workbench-stage { transform: none !important; transition: none; }
  .workbench-orb,.workbench-blur-dot,.workbench-ambient-orb { animation: none; }
}
