/* 2026-09-30: /ai hero only. Replace the concentric target with a compact work map. */
body.ai-page .ai-studio .lab-hero h1 {
  max-width: 660px;
  font-size: clamp(40px, 3.25vw, 48px);
  line-height: 1.24;
  letter-spacing: -.052em;
  word-break: keep-all;
}
body.ai-page .ai-studio .lab-hero .lab-lead {
  max-width: 510px;
  margin-top: 25px;
  font-size: 18px;
  line-height: 1.68;
  word-break: keep-all;
}
body.ai-page .lab-hero-copy { padding-bottom: 0; }
body.ai-page .lab-hero-grid { min-height: 600px; grid-template-columns: .94fr 1.06fr; gap: 45px; }
body.ai-page .lab-hero-scene {
  height: 494px;
  display: grid;
  grid-template-columns: 1fr 1.18fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  align-items: center;
  justify-items: center;
  padding: 15px 24px 72px;
  border: 1px solid #d8e6e9;
  border-radius: 20px;
  background: #f7fbfc;
  box-shadow: 0 20px 52px rgba(19, 64, 78, .10);
  isolation: isolate;
}
body.ai-page .lab-hero-scene::before,
body.ai-page .lab-hero-scene::after { content: none !important; }
body.ai-page .lab-scene-grid {
  inset: 0;
  background-image: radial-gradient(#c4d9df 1px, transparent 1.2px);
  background-size: 18px 18px;
  mask-image: linear-gradient(#000 5%, #000 82%, transparent 100%);
  opacity: .65;
  pointer-events: none;
}
body.ai-page .lab-scene-paths {
  position: absolute;
  z-index: 0;
  inset: 15px 0 65px;
  width: 100%;
  height: calc(100% - 80px);
  overflow: visible;
  pointer-events: none;
}
body.ai-page .lab-scene-paths path {
  fill: none;
  stroke: #8db6c2;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 3 5;
  opacity: .9;
}
body.ai-page .lab-scene-card {
  position: relative !important;
  inset: auto !important;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 112px;
  height: 104px;
  min-height: 0;
  padding: 9px;
  border: 1px solid #dbe6e9;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(16, 61, 75, .08);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transform: none !important;
  cursor: pointer;
}
body.ai-page .lab-scene-card:is(:hover,:focus-visible,[aria-pressed="true"]) {
  border-color: #f08b35;
  box-shadow: 0 5px 14px rgba(226, 108, 0, .13);
}
body.ai-page .lab-scene-card:focus-visible { outline: 2px solid #bd5900; outline-offset: 3px; }
body.ai-page .lab-scene-card-a { grid-column: 1; grid-row: 1; color: #3387a8; }
body.ai-page .lab-scene-card-b { grid-column: 1; grid-row: 2; color: #7858ab; }
body.ai-page .lab-scene-card-e { grid-column: 1; grid-row: 3; color: #26948d; }
body.ai-page .lab-scene-card-f { grid-column: 3; grid-row: 1; color: #e0792a; }
body.ai-page .lab-scene-card-c { grid-column: 3; grid-row: 2; color: #b25979; }
body.ai-page .lab-scene-card-d { grid-column: 3; grid-row: 3; color: #56779c; }
body.ai-page .lab-scene-card small,
body.ai-page .lab-scene-card > span,
body.ai-page .lab-scene-card i { display: none; }
body.ai-page .lab-scene-card strong {
  margin: 0;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
  color: #193844;
  white-space: nowrap;
}
body.ai-page .lab-scene-icon {
  display: block;
  width: 49px;
  height: 49px;
  color: inherit;
}
body.ai-page .lab-scene-core {
  position: relative;
  z-index: 3;
  grid-column: 2;
  grid-row: 1 / 4;
  top: auto;
  left: auto;
  width: 124px;
  height: 124px;
  border: 5px solid #e1eef1;
  border-radius: 20px;
  background: #123c49;
  box-shadow: 0 10px 22px rgba(11, 48, 59, .18);
  transform: none !important;
}
body.ai-page .lab-scene-core::before,
body.ai-page .lab-scene-core::after { content: none !important; }
body.ai-page .lab-scene-core-inner { display: grid; justify-items: center; gap: 6px; }
body.ai-page .lab-scene-core-inner strong {
  font-family: var(--font, Pretendard, sans-serif);
  font-size: 42px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.04em;
  color: #fc8300;
}
body.ai-page .lab-scene-core-inner span {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0;
  color: #e6f1f3;
}
body.ai-page .lab-scene-status {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 8px;
  width: calc(100% - 34px);
  max-width: none;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
  transform: translateX(-50%);
}
body.ai-page .lab-scene-status b { color: #173e4b; }
body.ai-page .lab-scene-status span { color: #526d77; }
body.ai-page .lab-scene-note {
  display: block;
  bottom: 10px;
  color: #607a83;
  font-size: 10px;
  letter-spacing: 0;
}
@media (max-width: 1100px) {
  body.ai-page .lab-hero-grid { gap: 25px; }
  body.ai-page .lab-hero-scene { padding-left: 11px; padding-right: 11px; }
  body.ai-page .lab-scene-card { width: 96px; height: 97px; }
  body.ai-page .lab-scene-core { width: 108px; height: 108px; }
}
@media (max-width: 767px) {
  body.ai-page .ai-studio .lab-hero { padding-top: 28px; }
  body.ai-page .lab-hero-grid { grid-template-columns: 1fr; gap: 30px; min-height: 0; }
  body.ai-page .ai-studio .lab-hero h1 { font-size: clamp(34px, 7.7vw, 43px); }
  body.ai-page .ai-studio .lab-hero .lab-lead { margin-top: 20px; font-size: 16px; }
  body.ai-page .lab-actions { gap: 14px; margin: 24px 0 0; }
  body.ai-page .lab-hero-scene { height: 430px; }
}
@media (max-width: 440px) {
  body.ai-page .lab-hero-grid { gap: 20px; }
  body.ai-page .lab-hero-copy { position: relative; left: -20px; width: calc(100vw - 40px); }
  body.ai-page .lab-hero-scene { left: -25px; width: calc(100vw - 30px); height: 377px; justify-self: center; padding: 11px 6px 64px; }
  body.ai-page .lab-scene-card { width: 78px; height: 78px; gap: 3px; padding: 4px; }
  body.ai-page .lab-scene-icon { width: 39px; height: 39px; }
  body.ai-page .lab-scene-card strong { font-size: 10px; }
  body.ai-page .lab-scene-core { width: 85px; height: 85px; border-width: 4px; border-radius: 15px; }
  body.ai-page .lab-scene-core-inner strong { font-size: 34px; }
  body.ai-page .lab-scene-core-inner span { font-size: 8px; }
  body.ai-page .lab-scene-status { bottom: 28px; font-size: 10px; }
  body.ai-page .lab-scene-note { bottom: 8px; font-size: 9px; }
}

/* 2026-10-01: Keep the six work cards anchored; move the signal along their actual connectors. */
body.ai-page .lab-motion-lens {
  position: absolute;
  z-index: 0;
  top: var(--flow-y, 20%);
  left: var(--flow-x, 20%);
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(238, 129, 27, .22), rgba(238, 129, 27, 0) 68%);
  transform: translate(-50%, -50%);
  transition: top .85s cubic-bezier(.22,.7,.2,1), left .85s cubic-bezier(.22,.7,.2,1), background-color .6s ease;
  pointer-events: none;
}
body.ai-page .lab-hero-scene[data-flow-step="1"] .lab-motion-lens,
body.ai-page .lab-hero-scene[data-flow-step="2"] .lab-motion-lens {
  background: radial-gradient(circle, rgba(38, 133, 153, .2), rgba(38, 133, 153, 0) 68%);
}
body.ai-page .lab-hero-scene { transition: background-color .75s ease, border-color .75s ease, box-shadow .75s ease; }
body.ai-page .lab-hero-scene[data-flow-step="3"],
body.ai-page .lab-hero-scene[data-flow-step="4"],
body.ai-page .lab-hero-scene[data-flow-step="5"] { background-color: #fffbf5; }
body.ai-page .lab-scene-paths { z-index: 1; }
body.ai-page .lab-scene-paths path {
  transition: stroke .4s ease, stroke-width .4s ease, opacity .4s ease;
}
body.ai-page .lab-scene-paths path.is-flow-active {
  stroke: #f28419;
  stroke-width: 3.2;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  opacity: 1;
  animation: lab-flow-draw 1.3s cubic-bezier(.25,.72,.2,1) forwards;
}
body.ai-page .lab-flow-packet {
  fill: #f48112;
  stroke: #fff;
  stroke-width: 2;
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(244, 129, 18, .68));
  transition: opacity .18s ease;
}
body.ai-page .lab-flow-packet.is-flow-active { opacity: 1; }
body.ai-page .lab-scene-card {
  transition: border-color .4s ease, box-shadow .4s ease, background-color .4s ease, filter .4s ease;
}
body.ai-page .lab-scene-card.is-flow-active {
  border-color: #ed8b25;
  background: #fffaf3;
  box-shadow: 0 8px 26px rgba(225, 111, 16, .18);
  filter: saturate(1.18);
}
body.ai-page .lab-scene-card.is-flow-active .lab-scene-icon {
  animation: lab-icon-emphasis .66s cubic-bezier(.2,.8,.2,1) both;
}
body.ai-page .lab-scene-core.is-flow-pulse {
  animation: lab-core-focus .85s cubic-bezier(.18,.72,.2,1) both;
}
body.ai-page .lab-scene-core.is-type-changing .lab-scene-core-inner strong {
  animation: lab-ai-type .55s cubic-bezier(.18,.72,.2,1) both;
}
body.ai-page .lab-scene-core-inner span.is-flow-update,
body.ai-page .lab-scene-status.is-flow-update b,
body.ai-page .lab-scene-status.is-flow-update span {
  animation: lab-copy-rise .5s cubic-bezier(.18,.75,.2,1) both;
}
body.ai-page .lab-scene-status.is-flow-update span { animation-delay: .07s; }
body.ai-page .lab-hero-scene.is-motion-ready .lab-scene-card-a,
body.ai-page .lab-hero-scene.is-motion-ready .lab-scene-card-b,
body.ai-page .lab-hero-scene.is-motion-ready .lab-scene-card-e {
  animation: lab-card-enter-left .62s cubic-bezier(.2,.75,.2,1) both;
}
body.ai-page .lab-hero-scene.is-motion-ready .lab-scene-card-a { animation-delay: .06s; }
body.ai-page .lab-hero-scene.is-motion-ready .lab-scene-card-b { animation-delay: .18s; }
body.ai-page .lab-hero-scene.is-motion-ready .lab-scene-card-e { animation-delay: .3s; }
body.ai-page .lab-hero-scene.is-motion-ready .lab-scene-card-f,
body.ai-page .lab-hero-scene.is-motion-ready .lab-scene-card-c,
body.ai-page .lab-hero-scene.is-motion-ready .lab-scene-card-d {
  animation: lab-card-enter-right .62s cubic-bezier(.2,.75,.2,1) both;
}
body.ai-page .lab-hero-scene.is-motion-ready .lab-scene-card-f { animation-delay: .45s; }
body.ai-page .lab-hero-scene.is-motion-ready .lab-scene-card-c { animation-delay: .57s; }
body.ai-page .lab-hero-scene.is-motion-ready .lab-scene-card-d { animation-delay: .69s; }
@keyframes lab-flow-draw { to { stroke-dashoffset: 0; } }
@keyframes lab-card-enter-left { from { opacity: 0; translate: -18px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes lab-card-enter-right { from { opacity: 0; translate: 18px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes lab-icon-emphasis { 0% { scale: .89; } 55% { scale: 1.08; } 100% { scale: 1; } }
@keyframes lab-core-focus { 0% { scale: 1; box-shadow: 0 10px 22px rgba(11,48,59,.18); } 50% { scale: 1.075; box-shadow: 0 13px 34px rgba(237,129,18,.32); } 100% { scale: 1; box-shadow: 0 10px 22px rgba(11,48,59,.18); } }
@keyframes lab-ai-type { from { opacity: .35; translate: 0 8px; scale: .88; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes lab-copy-rise { from { opacity: .2; translate: 0 7px; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 1100px) {
  body.ai-page .lab-scene-status { flex-direction: column; align-items: center; gap: 2px; white-space: normal; }
  body.ai-page .lab-scene-status > span:last-child { display: block !important; }
}
@media (max-width: 440px) {
  body.ai-page .lab-hero-scene { height: 408px; }
  body.ai-page .lab-motion-lens { width: 140px; height: 140px; }
  body.ai-page .lab-scene-status { bottom: 47px; }
  body.ai-page .lab-scene-note { left: 14px; right: 14px; bottom: 8px; line-height: 1.35; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  body.ai-page .lab-motion-lens,
  body.ai-page .lab-flow-packet { display: none; }
  body.ai-page .lab-scene-card,
  body.ai-page .lab-scene-card.is-flow-active .lab-scene-icon,
  body.ai-page .lab-scene-core,
  body.ai-page .lab-scene-core-inner strong,
  body.ai-page .lab-scene-status,
  body.ai-page .lab-scene-status b,
  body.ai-page .lab-scene-status span,
  body.ai-page .lab-scene-core-inner span,
  body.ai-page .lab-scene-paths path { animation: none !important; transition: none !important; }
}
