/* V2.2 — lightweight spatial interactions and parallel execution. */
body { isolation: isolate; }
#constellation {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: .8;
  pointer-events: none;
}
.ambient {
  position: fixed;
  inset: -15%;
  height: auto;
  z-index: -2;
  background: radial-gradient(ellipse at 70% 30%, #205a952b, transparent 46%), radial-gradient(ellipse at 18% 68%, #6940b320, transparent 45%);
  animation: atmospheric-drift 20s ease-in-out infinite alternate;
}
@keyframes atmospheric-drift {
  from { transform: translate3d(-2%, -1%, 0) rotate(-3deg); }
  to { transform: translate3d(3%, 3%, 0) rotate(3deg); }
}
.welcome {
  position: relative;
  min-height: 740px;
  height: 100svh;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 1px solid #8ebdff2e;
  background: radial-gradient(ellipse at 50% 40%, #17345c35, transparent 57%);
}
.welcome::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(90deg, #080b1240, transparent 20%, transparent 80%, #080b1240);
}
.welcome-top, .welcome-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  position: relative;
  z-index: 3;
}
.welcome-edition, .welcome-bottom, .welcome-eyebrow, .welcome-scroll, .orbital-label {
  font-size: 9px;
  letter-spacing: .17em;
  color: #8b9eb9;
}
.welcome-stage { text-align: center; position: relative; z-index: 2; padding: 5px 20px 20px; }
.welcome-eyebrow { display: flex; justify-content: center; align-items: center; gap: 13px; font-size: 9px; color: #abc5e3; }
.welcome-stage h1 { font-size: clamp(50px, 5.7vw, 88px); line-height: 1.16; font-weight: 800; letter-spacing: -.065em; margin-top: -10px; }
.welcome-stage > p { font-size: 13px; color: #9aabc3; margin: 17px 0 23px; }
.enter-portfolio {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  padding: 15px 19px 15px 24px;
  border: 1px solid #8cbeff7a;
  border-radius: 7px;
  font-size: 12px;
  background: linear-gradient(115deg, #29548655, #172e4c88);
  box-shadow: inset 0 0 20px #5b9dff0d, 0 0 34px #5d99ff15;
  transition: transform .25s, background .25s, box-shadow .25s;
}
.enter-portfolio b { font-size: 20px; line-height: 1; font-weight: 400; color: #a6e9f9; }
.enter-portfolio:hover { transform: translateY(-3px); background: #294a6f; box-shadow: 0 0 45px #7caeff30; }
.welcome-scroll { display: flex; align-items: center; justify-content: center; gap: 13px; width: fit-content; margin: 22px auto 0; font-size: 8px; }
.welcome-scroll span { font-size: 19px; animation: enter-arrow 2s ease-in-out infinite; }
@keyframes enter-arrow { 50% { transform: translateY(5px); } }
.welcome-bottom { padding-block: 19px; font-size: 8px; }
.welcome-motion { border: 1px solid #6c8fb944; border-radius: 30px; background: #0b142299; padding: 7px 13px; font-size: 9px; color: #9fb7d4; }
.welcome-floor {
  position: absolute;
  width: 160%;
  height: 65%;
  bottom: -38%;
  left: -30%;
  z-index: -1;
  transform: perspective(600px) rotateX(60deg);
  background-image: linear-gradient(#78b4ff22 1px, transparent 1px), linear-gradient(90deg, #78b4ff22 1px, transparent 1px);
  background-size: 65px 65px;
  mask-image: linear-gradient(transparent, #000 30%, transparent);
}
.portal { width: 480px; height: 320px; position: relative; margin: 8px auto 0; perspective: 1000px; }
.portal-halo { position: absolute; width: 280px; height: 280px; top: 20px; left: 100px; border-radius: 50%; background: radial-gradient(circle, #7fd5ff23, #4f79ff17 38%, transparent 70%); animation: core-breathe 6s ease-in-out infinite; }
@keyframes core-breathe { 50% { transform: scale(1.18); opacity: .65; } }
.portal-ring { position: absolute; inset: 38px 85px; border: 1px solid #85c5ff5c; border-radius: 50%; transform-style: preserve-3d; box-shadow: 0 0 16px #62baff09; }
.portal-ring::before { content: ''; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #b1efff; top: 14%; left: 14%; box-shadow: 0 0 16px #6acbff; }
.ring-a { animation: orbit-a 22s linear infinite; }
.ring-b { inset: 25px 82px; border-color: #a59cff38; animation: orbit-b 28s linear infinite; }
.ring-c { inset: 8px 65px; border-style: dashed; border-color: #8cbbff29; animation: orbit-c 35s linear infinite; }
@keyframes orbit-a { from { transform: rotateZ(-25deg) rotateX(65deg) rotateZ(0); } to { transform: rotateZ(-25deg) rotateX(65deg) rotateZ(360deg); } }
@keyframes orbit-b { from { transform: rotateZ(45deg) rotateY(58deg) rotateZ(0); } to { transform: rotateZ(45deg) rotateY(58deg) rotateZ(-360deg); } }
@keyframes orbit-c { from { transform: rotateZ(-20deg) rotateY(25deg) rotateZ(0); } to { transform: rotateZ(-20deg) rotateY(25deg) rotateZ(360deg); } }
.core-perspective { position: absolute; inset: 0; display: grid; place-items: center; perspective: 700px; }
.core-tilt { transform-style: preserve-3d; transform: rotateX(var(--core-x, 0deg)) rotateY(var(--core-y, 0deg)); transition: transform .5s ease-out; }
.core-cube { --size: 112px; width: var(--size); height: var(--size); position: relative; transform-style: preserve-3d; animation: cube-turn 25s linear infinite; }
.cube-face { position: absolute; inset: 0; border: 1px solid #a0d3ffa6; background: linear-gradient(135deg, #6cceff25, #25395055), repeating-linear-gradient(90deg, transparent 0 27px, #95d0ff18 27px 28px), repeating-linear-gradient(0deg, transparent 0 27px, #95d0ff18 27px 28px); box-shadow: inset 0 0 25px #78b8ff20; display: grid; place-items: center; backface-visibility: visible; }
.face-front { transform: translateZ(56px); }
.face-back { transform: rotateY(180deg) translateZ(56px); }
.face-left { transform: rotateY(-90deg) translateZ(56px); }
.face-right { transform: rotateY(90deg) translateZ(56px); }
.face-top { transform: rotateX(90deg) translateZ(56px); }
.face-bottom { transform: rotateX(-90deg) translateZ(56px); }
.face-front > span { font-size: 52px; font-family: var(--heading); color: #daefff; line-height: 1; font-weight: 800; letter-spacing: -.1em; text-shadow: 0 0 25px #96d8ff; }
.face-front > span > span { color: #8beeff; }
@keyframes cube-turn { from { transform: rotateX(-19deg) rotateY(-29deg) rotateZ(0); } to { transform: rotateX(341deg) rotateY(331deg) rotateZ(0); } }
.orbital-label { position: absolute; font-size: 7px; padding: 5px 8px; background: #101b2c88; border: 1px solid #5b7da53b; border-radius: 3px; color: #b2cbea; }
.label-plan { top: 73px; left: 23px; }
.label-build { top: 205px; right: 9px; }
.label-evolve { bottom: 12px; left: 137px; }

/* Spatial layers keep the full photograph readable. */
.portrait-scene { transform: perspective(1300px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transform-style: preserve-3d; }
.portrait-frame { box-shadow: 0 25px 70px #0007, 0 0 0 8px #80b8ff04; }
.portrait-facts { transform: translateZ(24px); }
.portrait-name { transform: translateZ(12px); }
.hero::after { content: ''; position: absolute; width: 240px; height: 240px; right: -50px; top: 70px; border: 1px solid #78b8ff1c; transform: rotate(25deg); border-radius: 40px; z-index: -1; animation: hero-frame 18s ease-in-out infinite alternate; }
@keyframes hero-frame { to { transform: rotate(40deg) translate(-20px, 45px); } }
.commerce-section { background: radial-gradient(ellipse at 78% 15%, #1f416c25, transparent 42%), linear-gradient(180deg, #0d1420d9, #0a101ae6); }
.commerce-context { position: relative; isolation: isolate; }
.commerce-orbit { position: absolute; inset: -70px -20px auto; height: 320px; z-index: -1; opacity: .55; perspective: 900px; pointer-events: none; }
.commerce-orbit-ring { position: absolute; inset: 20px 5%; border: 1px solid #8abaff55; border-radius: 50%; transform: rotateX(64deg) rotateZ(-25deg); }
.commerce-orbit-ring::after { content: ''; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #98dfff; top: 50%; left: -4px; box-shadow: 0 0 18px #69afff; }
.commerce-orbit-ring.second { transform: rotateX(64deg) rotateZ(50deg); border-style: dashed; border-color: #aa91ff55; }
.site-constellation { animation: store-float 10s ease-in-out infinite; }
@keyframes store-float { 0%, 100% { transform: perspective(800px) rotateY(-9deg) rotateX(8deg) translateY(0); } 50% { transform: perspective(800px) rotateY(3deg) rotateX(12deg) translateY(-9px); } }

/* One planning role, multiple execution sessions, one review role. */
.parallel-diagram { padding: 23px 22px 20px; min-height: 485px; }
.parallel-heading { display: flex; justify-content: space-between; gap: 12px; color: #8caacb; font-size: 7px; letter-spacing: .12em; }
.parallel-key { display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.parallel-key i, .executor-stack button > span i { width: 4px; height: 4px; display: inline-block; border-radius: 50%; background: #98e9e8; box-shadow: 0 0 8px #98e9e877; }
.parallel-goal { text-align: left; margin: 20px 0 10px; font-size: 10px; color: #c5d7ef; padding-left: 2%; }
.parallel-goal > span { display: inline-block; margin-left: 8px; color: #87b8fb; }
.parallel-grid { display: grid; grid-template-columns: 1fr 1.14fr 1fr; gap: 14%; align-items: center; position: relative; height: 282px; }
.parallel-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.wire-base { fill: none; stroke: #76a4dd3f; stroke-width: 1.3; }
.wire-signal { fill: none; stroke: #91d7ff; stroke-width: 1.8; stroke-dasharray: 8 95; animation: parallel-signal 3s linear infinite; }
@keyframes parallel-signal { to { stroke-dashoffset: -206; } }
.parallel-node { position: relative; z-index: 1; min-width: 0; width: 100%; border: 1px solid #6a8ab955; border-radius: 9px; background: linear-gradient(135deg, #192a40, #111c2d); padding: 20px 7px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.parallel-node:hover { transform: translateY(-3px); border-color: #9cd5ff; }
.parallel-node[aria-pressed=true] { border-color: #96cbff; background: linear-gradient(135deg, #244363, #17283f); box-shadow: 0 0 25px #78b9ff1f; }
.parallel-node strong, .parallel-node small, .parallel-node > span { display: block; }
.parallel-node small { font-size: 6px; color: #87a6ce; letter-spacing: .09em; margin-bottom: 7px; }
.parallel-node strong { font-family: var(--heading); font-size: 16px; letter-spacing: -.04em; }
.parallel-node > span:last-child { font-size: 8px; color: #9ab1ce; margin-top: 8px; }
.parallel-node .node-icon { font-size: 27px; margin-bottom: 13px; }
.executor-stack { display: grid; gap: 13px; position: relative; z-index: 1; }
.executor-stack .parallel-node { padding: 12px 5px; animation: executor-breathe 4s ease-in-out infinite; }
.executor-stack strong { font-size: 12px; }
.executor-stack small { font-size: 6px; }
.executor-stack button > span { font-size: 7px; margin-top: 5px; }
.executor-stack button > span i { margin-right: 4px; }
@keyframes executor-breathe { 50% { box-shadow: 0 0 18px #72b9ff22; border-color: #8bbcff99; } }
.parallel-feedback { display: flex; justify-content: space-between; align-items: center; border: 1px solid #9d8ce244; border-top: 0; border-radius: 0 0 14px 14px; margin: 13px 6% 0; padding: 0 10px 8px; font-size: 6px; letter-spacing: .1em; color: #ac9ee0; }
.parallel-feedback > span { font-size: 19px; }
.parallel-human { width: fit-content; margin: 13px auto 0; padding: 8px 13px; border: 1px solid #ae98ff33; border-radius: 5px; background: #30254833; font-size: 9px; color: #d1c7f1; }
.parallel-human > span { color: #a091d2; font-size: 7px; margin-right: 10px; }
.parallel-caption { font-size: 8px; text-align: center; color: #8198b8; margin-top: 10px; }
.workflow-lab .role-panel { justify-content: center; }
.workflow-lab .interaction-hint { margin-top: 22px; }
.motion-sleep *, .motion-sleep *::before, .motion-sleep *::after, .motion-sleep::before, .motion-sleep::after, .page-hidden *, .page-hidden *::before, .page-hidden *::after { animation-play-state: paused !important; }
.no-motion .ambient, .no-motion .portal *, .no-motion .site-constellation, .no-motion .hero::after, .no-motion .wire-signal, .no-motion .executor-stack .parallel-node, .no-motion .welcome-scroll span { animation-play-state: paused !important; }
.no-motion .core-tilt, .no-motion .portrait-scene { transform: none; }
.no-motion .core-cube { transform: rotateX(-19deg) rotateY(-29deg); }
.no-motion .ring-a { transform: rotateZ(-25deg) rotateX(65deg); }
.no-motion .ring-b { transform: rotateZ(45deg) rotateY(58deg); }
.no-motion .ring-c { transform: rotateZ(-20deg) rotateY(25deg); }

@media (max-height: 800px) and (min-width: 701px) {
  .welcome { min-height: 650px; }
  .portal { height: 270px; margin-top: -10px; margin-bottom: -15px; }
  .welcome-top { padding-block: 20px; }
  .welcome-stage h1 { font-size: 60px; }
  .welcome-stage > p { margin: 12px 0 18px; }
}
@media (max-width: 1050px) {
  .parallel-diagram { padding-inline: 15px; }
  .parallel-node strong { font-size: 13px; }
  .executor-stack strong { font-size: 10px; }
  .parallel-node > span:last-child { font-size: 7px; }
  .parallel-heading { font-size: 6px; }
  .parallel-key { display: none; }
  .parallel-grid { gap: 10%; }
}
@media (max-width: 700px) {
  .welcome { min-height: 680px; height: 100svh; }
  .welcome-top { padding: 23px 22px; }
  .welcome-edition { max-width: 100px; text-align: right; font-size: 6px; line-height: 1.8; }
  .welcome-stage { padding: 0 20px 15px; }
  .welcome-eyebrow { font-size: 6px; gap: 10px; letter-spacing: .12em; }
  .portal { width: 340px; height: 280px; margin-left: calc(50% - 170px); margin-top: 0; }
  .portal-halo { left: 30px; top: 0; }
  .portal-ring { inset: 35px 35px; }
  .ring-b { inset: 22px 32px; }
  .ring-c { inset: 12px 15px; }
  .label-plan { left: 0; top: 55px; font-size: 6px; }
  .label-build { right: 0; top: 188px; font-size: 6px; }
  .label-evolve { left: 105px; bottom: 3px; font-size: 6px; }
  .welcome-stage h1 { font-size: clamp(40px, 10.5vw, 65px); margin-top: 8px; }
  .welcome-stage > p { font-size: 11px; max-width: 280px; margin: 14px auto 24px; }
  .enter-portfolio { padding: 13px 17px 13px 21px; font-size: 11px; }
  .welcome-scroll { font-size: 7px; margin-top: 19px; }
  .welcome-bottom { padding: 15px 20px; font-size: 6px; gap: 12px; }
  .welcome-bottom > span:last-child { display: none; }
  .welcome-motion { font-size: 8px; }
  .welcome-floor { background-size: 40px 40px; }
  .parallel-diagram { padding: 20px 12px; min-height: 475px; }
  .parallel-grid { gap: 9%; height: 274px; }
  .parallel-heading { font-size: 6px; }
  .parallel-node { padding: 17px 3px; }
  .parallel-node strong { font-size: 12px; }
  .parallel-node small { font-size: 5px; }
  .parallel-node > span:last-child { font-size: 6px; }
  .executor-stack strong { font-size: 10px; }
  .executor-stack .parallel-node { padding: 12px 3px; }
  .executor-stack small { font-size: 5px; }
  .parallel-node .node-icon { font-size: 23px; }
  .parallel-feedback { margin-inline: 3%; font-size: 5px; }
  .parallel-caption { font-size: 7px; }
  .parallel-human { font-size: 8px; }
  .commerce-orbit { inset-inline: 0; height: 260px; }
}
@media (max-width: 360px) {
  .portal { transform: scale(.9); margin-top: -10px; margin-bottom: -14px; }
  .welcome-stage h1 { font-size: 38px; }
  .parallel-node strong { font-size: 11px; }
  .executor-stack strong { font-size: 8px; }
  .parallel-diagram { padding-inline: 9px; }
  .parallel-grid { gap: 7%; }
  .parallel-caption { font-size: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .core-cube { transform: rotateX(-19deg) rotateY(-29deg); }
  .ring-a { transform: rotateZ(-25deg) rotateX(65deg); }
  .ring-b { transform: rotateZ(45deg) rotateY(58deg); }
  .ring-c { transform: rotateZ(-20deg) rotateY(25deg); }
  .wire-signal { stroke-dasharray: none; opacity: .5; }
}
