/* ==========================================================================
   Frankenstein — Animation Section
   Scoped styles for the hero animation canvas (1200x750)
   ========================================================================== */

/* ---------- Stage / scaled frame ---------- */
.anim-stage {
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 1200 / 750;
  background: var(--color-base);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

.anim-frame {
  position: relative;
  width: 1200px;
  height: 750px;
  transform-origin: top left;
}

/* ---------- Wordmark ---------- */
.anim-wordmark {
  position: absolute;
  top: 40px;
  left: 40px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  user-select: none;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.anim-wordmark-logo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

/* ---------- Chat ---------- */
.anim-chat {
  position: absolute;
  left: 240px;
  top: 165px;
  width: 720px;
  height: 420px;
  background: var(--color-surface);
  border: 1px solid rgba(232, 228, 220, 0.18);
  border-radius: 4px;
  display: flex;
  overflow: hidden;
  z-index: 2;
}

.anim-sidebar {
  width: 240px;
  height: 100%;
  border-right: 1px solid rgba(232, 228, 220, 0.18);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.anim-sidebar-label,
.anim-assistant-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.anim-sidebar-label {
  color: var(--color-text);
}

.anim-assistant-label {
  color: rgba(232, 228, 220, 0.70);
  position: relative;
  height: 14px;
}

.anim-header-slot {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 300ms linear;
}

.anim-header-slot.active {
  opacity: 1;
}

.anim-memory-empty {
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(232, 228, 220, 0.45);
  transition: opacity 300ms linear;
}

.anim-memory-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2px;
}

.anim-memory-item {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-accent);
  opacity: 0;
  transition: opacity 400ms linear;
}

.anim-memory-item.in {
  opacity: 1;
}

/* ---------- Main panel ---------- */
.anim-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px;
  gap: 14px;
  min-width: 0;
  position: relative;
}

.anim-main-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.anim-briefing-header {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-text);
  opacity: 0;
  transition: opacity 400ms linear;
  margin-bottom: 4px;
}

.anim-briefing-header.in {
  opacity: 1;
}

.anim-briefing-line {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.45;
  opacity: 0;
  transition: opacity 400ms linear;
  margin-bottom: 12px;
}

.anim-briefing-line.in {
  opacity: 1;
}

/* ---------- Artifact separator + lines ---------- */
.anim-artifact-sep {
  width: 60%;
  height: 1px;
  background: rgba(232, 149, 75, 0.18);
  margin-top: 4px;
  margin-bottom: 12px;
  opacity: 0;
  transition: opacity 200ms linear;
}

.anim-artifact-sep.in {
  opacity: 1;
}

.anim-artifact-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(232, 149, 75, 0.65);
  opacity: 0;
  transition: opacity 400ms linear;
  margin-bottom: 10px;
}

.anim-artifact-line:last-child {
  margin-bottom: 0;
}

.anim-artifact-line.in {
  opacity: 1;
}

.anim-artifact-line svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: rgba(232, 149, 75, 0.65);
}

/* ---------- Input ---------- */
.anim-input-wrap {
  position: relative;
}

.anim-input {
  height: 40px;
  border: 1px solid rgba(232, 228, 220, 0.18);
  border-radius: 4px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(232, 228, 220, 0.45);
  transition: border-left-color 400ms linear;
}

.anim-input.amber-border {
  border-left-color: var(--color-accent);
}

.anim-input-text {
  position: relative;
  width: 100%;
  height: 13px;
}

.anim-input-label {
  position: absolute;
  inset: 0;
  line-height: 13px;
  transition: opacity 300ms linear;
}

.anim-input-label.hidden {
  opacity: 0;
}

/* ---------- Tool tags ---------- */
.anim-tag {
  position: absolute;
  width: 130px;
  height: 40px;
  background: var(--color-surface);
  border: 1px solid rgba(232, 228, 220, 0.30);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.10em;
  color: rgba(232, 228, 220, 0.70);
  will-change: transform, opacity;
  opacity: 0;
  z-index: 2;
  pointer-events: none;
}

.anim-tag svg {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  color: rgba(232, 228, 220, 0.70);
}

/* ---------- SVG overlays ---------- */
.anim-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.anim-thread-layer {
  z-index: 4;
}

.anim-arc-layer {
  z-index: 5;
}

/* ---------- Closing line inside canvas ---------- */
.anim-closing-line {
  position: absolute;
  left: 50%;
  bottom: 60px;
  transform: translateX(-50%);
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--color-text);
  opacity: 0;
  transition: opacity 400ms linear;
  white-space: nowrap;
}

.anim-closing-line.in {
  opacity: 1;
}

