/* ═══════════════════════════════════════════════════════════════
   Artificial Emotion — 디자인 시스템
   배경: 마음의 내부 공간(딥 바이올렛 블랙). 액센트: 고정색 없음 —
   감정 엔진(app.js)이 --eh(hue)를 실시간으로 구동한다.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* 감정 hue — JS가 매 프레임 갱신. 초기값: 경이(WONDER) */
  --eh: 265;
  --eh2: 305;               /* 보조 hue (그라디언트용, eh+40) */

  --bg: #0a0714;            /* 딥 바이올렛 블랙 */
  --bg-elev: #110c20;       /* 카드/노드 표면 */
  --ink: #efeaf7;           /* 본문 잉크 */
  --ink-dim: #a79dc4;       /* 라벤더 그레이 */
  --ink-faint: #6e6590;     /* 희미한 라벨 */
  --line: rgba(200, 190, 255, .12);
  --surface: rgba(200, 190, 255, .04);

  --accent:  hsl(var(--eh) 88% 66%);
  --accent2: hsl(var(--eh2) 88% 66%);
  --glow:    hsl(var(--eh) 95% 60% / .35);

  --font-body: "Pretendard Variable", Pretendard, -apple-system, "Segoe UI", "Malgun Gothic", sans-serif;
  --font-display: Fraunces, "Noto Serif KR", "Apple SD Gothic Neo", serif;
  --font-mono: "IBM Plex Mono", "Pretendard Variable", monospace;

  --w-container: 1180px;
}

/* ── 베이스 ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: hsl(var(--eh) 80% 60% / .35); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── 언어 스위치 : html[data-lang] ───────────────── */
[data-lang="ko"] .en { display: none !important; }
[data-lang="en"] .ko { display: none !important; }

/* ── 유틸리티 ────────────────────────────────────── */
.container { width: min(var(--w-container), 92vw); margin-inline: auto; }
.mono {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
}
.section { padding: clamp(6.5rem, 13vh, 10rem) 0; position: relative; }
.section-tint {
  background:
    radial-gradient(90rem 40rem at 50% -10%, hsl(var(--eh) 60% 40% / .06), transparent 60%),
    linear-gradient(rgba(200,190,255,.025), rgba(200,190,255,.012));
  border-block: 1px solid var(--line);
}
.eyebrow {
  color: var(--ink-faint);
  margin-bottom: 2.2rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 2.4rem; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  vertical-align: middle;
  margin-right: .9rem;
}
.sub { color: var(--ink-dim); max-width: 34rem; margin-top: 1.4rem; }
.serif-i { font-family: var(--font-display); font-style: italic; }

/* 디스플레이 타이포그래피 */
.display, .display-2 {
  font-family: var(--font-display);
  font-weight: 460;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.display   { font-size: clamp(2.9rem, 7.4vw, 6.2rem); }
.display-2 { font-size: clamp(2rem, 4.4vw, 3.5rem); }
.display em, .display-2 em { font-style: italic; font-weight: 420; }

/* 감정색 시머 텍스트 */
.shimmer {
  background: linear-gradient(105deg,
    hsl(var(--eh) 95% 74%) 0%,
    hsl(var(--eh2) 95% 70%) 45%,
    hsl(calc(var(--eh) - 45) 95% 72%) 90%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer-slide 7s ease-in-out infinite alternate;
}
@keyframes shimmer-slide {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

/* 스크롤 리빌 */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ── 필름 그레인 & 커서 광원 ─────────────────────── */
.grain {
  position: fixed; inset: -50%;
  pointer-events: none;
  z-index: 60;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 9s steps(6) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0,0); } 20% { transform: translate(-4%,3%); }
  40% { transform: translate(3%,-2%); } 60% { transform: translate(-2%,-4%); }
  80% { transform: translate(4%,2%); } 100% { transform: translate(0,0); }
}
#cursor-glow {
  position: fixed;
  width: 560px; height: 560px;
  left: 0; top: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, hsl(var(--eh) 90% 62% / .13), transparent 62%);
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity .6s;
}

/* ── 내비게이션 ──────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2.4rem;
  padding: 1.05rem clamp(1.2rem, 4vw, 3rem);
  transition: background .4s, border-color .4s, padding .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 7, 20, .72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
  padding-block: .7rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.12rem;
  letter-spacing: .01em;
  white-space: nowrap;
}
.brand-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px 2px var(--glow);
  animation: heartbeat 2.6s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.45); }
  24% { transform: scale(1); }
  36% { transform: scale(1.25); }
  48% { transform: scale(1); }
}
.nav-links {
  display: flex;
  gap: 1.9rem;
  margin-left: auto;
  font-size: .88rem;
  color: var(--ink-dim);
}
.nav-links a { transition: color .25s; }
.nav-links a:hover { color: var(--ink); }
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  padding: .42rem .85rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--ink-faint);
  transition: border-color .25s;
}
.lang-toggle:hover { border-color: var(--accent); }
.lang-toggle .lt-div { opacity: .5; }
[data-lang="ko"] .lang-toggle .lt-ko,
[data-lang="en"] .lang-toggle .lt-en { color: var(--accent); font-weight: 500; }

/* ── HERO ───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
#field {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
}
.hero-aurora {
  position: absolute; inset: -10%;
  z-index: 0;
  filter: blur(70px);
  opacity: .5;
  background:
    radial-gradient(38rem 24rem at 72% 30%, hsl(var(--eh) 85% 45% / .30), transparent 65%),
    radial-gradient(30rem 22rem at 22% 68%, hsl(var(--eh2) 80% 42% / .22), transparent 65%),
    radial-gradient(24rem 18rem at 55% 85%, hsl(calc(var(--eh) - 50) 80% 40% / .16), transparent 60%);
  animation: aurora-drift 26s ease-in-out infinite alternate;
}
@keyframes aurora-drift {
  from { transform: translate3d(-2%, -1.5%, 0) scale(1); }
  to   { transform: translate3d(2%, 2%, 0) scale(1.07); }
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 4rem;
}
.hero .lede {
  max-width: 36rem;
  color: var(--ink-dim);
  margin-top: 1.8rem;
  font-size: 1.1rem;
}
.cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-top: 2.6rem;
}
.cta-row.center { justify-content: center; }

/* 버튼 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .88rem 1.7rem;
  border-radius: 99px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: transform .25s, box-shadow .25s, background-color .25s, border-color .25s;
}
.btn-primary {
  background: linear-gradient(115deg, hsl(var(--eh) 85% 62%), hsl(var(--eh2) 85% 58%));
  color: #0a0714;
  box-shadow: 0 4px 28px -6px var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 38px -6px var(--glow); }
.btn-primary .btn-arrow { transition: transform .25s; }
.btn-primary:hover .btn-arrow { transform: translateX(3px); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink-dim);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--ink); }
.btn-lg { padding: 1.05rem 2.2rem; font-size: 1.05rem; }

/* 텔레메트리 계기 */
.telemetry {
  position: absolute;
  left: clamp(1.2rem, 4vw, 3rem);
  bottom: 2.2rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--ink-faint);
  padding: .55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(10, 7, 20, .45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.telemetry .t-emotion { color: var(--accent); }
.telemetry .t-sep { opacity: .4; }
.t-pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 1px var(--glow);
  animation: pulse-dot 1.8s ease-in-out infinite;
  flex: none;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* 스크롤 힌트 */
.scroll-hint {
  position: absolute;
  left: 50%; bottom: 2.2rem;
  transform: translateX(-50%);
  z-index: 2;
  width: 1px; height: 56px;
  background: var(--line);
  overflow: hidden;
}
.scroll-hint span {
  position: absolute;
  left: 0; top: -40%;
  width: 100%; height: 40%;
  background: linear-gradient(var(--accent), transparent);
  animation: scroll-drop 2.4s cubic-bezier(.6,.1,.3,1) infinite;
}
@keyframes scroll-drop {
  to { top: 110%; }
}

/* ── MANIFESTO ──────────────────────────────────── */
.manifesto-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.statement {
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  line-height: 1.6;
  color: var(--ink-dim);
  margin-top: 2rem;
}
.manifesto-body {
  margin-top: 2.4rem;
  display: grid;
  gap: 1.2rem;
  max-width: 36rem;
  color: var(--ink-dim);
}
.manifesto-body p { border-left: 1px solid var(--line); padding-left: 1.3rem; }

/* 감정 원형모형 계기판 */
.instrument {
  justify-self: center;
  width: min(340px, 100%);
}
.circumplex { width: 100%; height: auto; display: block; overflow: visible; }
.cx-ring { fill: none; stroke: var(--line); stroke-width: 1; }
.cx-ring.faint { stroke-dasharray: 2 5; opacity: .7; }
.cx-axis { stroke: var(--line); stroke-width: 1; }
.cx-axis.dashed { stroke-dasharray: 3 5; }
.cx-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .18em;
  fill: var(--ink-faint);
}
.cx-dot {
  fill: var(--accent);
  filter: drop-shadow(0 0 6px var(--glow));
}
.cx-trail {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: .38;
}
.instrument-caption {
  margin-top: 1.1rem;
  text-align: center;
  color: var(--ink-faint);
}
.instrument-caption #cx-label { color: var(--accent); }

/* ── DISCIPLINES 성좌 ───────────────────────────── */
#disciplines .display-2, #disciplines .sub { text-align: center; margin-inline: auto; }
#disciplines .eyebrow { text-align: center; }
#disciplines .eyebrow::before { display: none; }
#disciplines .eyebrow::after {
  content: "";
  display: block;
  width: 2.4rem; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: .9rem auto 0;
}
.constellation {
  max-width: 660px;
  margin: 3.4rem auto 0;
}
.disc-svg { width: 100%; height: auto; display: block; }
.spoke {
  stroke: var(--line);
  stroke-width: 1;
  transition: stroke .3s;
}
.spoke.hot { stroke: hsl(var(--eh) 88% 66% / .75); }
.d-halo {
  fill: none;
  stroke: hsl(var(--eh) 88% 66% / .35);
  stroke-width: 1;
  animation: halo-pulse 4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes halo-pulse {
  0%, 100% { transform: scale(1); opacity: .9; }
  50% { transform: scale(1.12); opacity: .25; }
}
.d-core {
  fill: hsl(var(--eh) 70% 30% / .38);
  stroke: hsl(var(--eh) 88% 66% / .6);
  stroke-width: 1;
}
.d-core-ko {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  fill: var(--ink);
}
.d-core-en {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: .2em;
  fill: hsl(var(--eh) 70% 75%);
}
.d-node { cursor: pointer; outline: none; }
.d-node circle {
  fill: #100c1f;
  stroke: var(--line);
  stroke-width: 1;
  transition: stroke .3s, fill .3s;
}
.d-node:hover circle, .d-node:focus-visible circle {
  stroke: var(--accent);
  fill: hsl(var(--eh) 60% 22% / .55);
}
.d-node .dn-ko {
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 650;
  fill: var(--ink);
}
.d-node .dn-en {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: .16em;
  fill: var(--ink-faint);
}
/* 영문 모드 전용 노드 라벨 (한글 자리를 대체하는 정식 명칭) */
.dn-en-main {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  fill: var(--ink);
}
.d-core-en-main {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  fill: var(--ink);
}
.d-node text { pointer-events: none; }
.disc-caption {
  text-align: center;
  margin-top: 1.6rem;
  color: var(--ink-faint);
  min-height: 1.4em;
  transition: color .3s;
}
.disc-caption.hot { color: var(--accent); }

/* ── RESEARCH 3단계 ─────────────────────────────── */
.phase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 3.6rem;
}
.phase-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.8rem 1.8rem 2rem;
  background: linear-gradient(160deg, var(--surface), transparent 55%);
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
.phase-card:hover {
  transform: translateY(-5px);
  border-color: hsl(var(--eh) 70% 55% / .45);
  box-shadow: 0 18px 48px -18px var(--glow);
}
.phase-motif { height: 120px; margin-bottom: 1.4rem; }
.phase-motif svg { width: 100%; height: 100%; overflow: visible; }
.motif-axis { stroke: var(--line); stroke-width: 1; }
.motif-wave {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-dasharray: 55 45;
  animation: wave-march 4.5s linear infinite;
}
.motif-wave.w2 {
  stroke: var(--accent2);
  opacity: .55;
  animation-duration: 6.5s;
  animation-direction: reverse;
}
@keyframes wave-march {
  to { stroke-dashoffset: -100; }
}
.motif-rings circle, .motif-moire circle {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
}
.motif-rings, .motif-moire {
  transform-box: fill-box;
  transform-origin: center;
}
.r-cw  { animation: spin 26s linear infinite; }
.r-ccw { animation: spin 38s linear infinite reverse; opacity: .6; }
.m-a { animation: spin 44s linear infinite; opacity: .8; }
.m-b { animation: spin 44s linear infinite reverse; opacity: .5; }
@keyframes spin { to { transform: rotate(360deg); } }

.phase-no {
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: .8rem;
}
.phase-status {
  font-size: .62rem;
  padding: .18rem .6rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--ink-dim);
}
.phase-status.live {
  border-color: hsl(var(--eh) 80% 60% / .5);
  color: var(--accent);
}
.phase-status.frontier { border-style: dashed; }
.phase-card h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 550;
  margin-top: .9rem;
}
.phase-desc {
  color: var(--ink-dim);
  font-size: .95rem;
  margin-top: .8rem;
}

/* ── SOUL THREAD ────────────────────────────────── */
.st-grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.st-title { position: relative; display: inline-block; }
.st-underline {
  position: absolute;
  left: 0; bottom: -.35em;
  width: 100%; height: .5em;
  overflow: visible;
}
.st-underline path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  opacity: .8;
}
.reveal.in .st-underline path { animation: thread-draw 1.6s .5s cubic-bezier(.5,0,.2,1) forwards; }
@keyframes thread-draw { to { stroke-dashoffset: 0; } }
.st-points { margin-top: 2.6rem; display: grid; gap: 1.6rem; }
.st-points h4 {
  font-size: 1.02rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.st-points h4::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 9px var(--glow);
  flex: none;
}
.st-points p {
  color: var(--ink-dim);
  font-size: .95rem;
  margin-top: .35rem;
  padding-left: 1.35rem;
}
.st-live-note {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--ink-faint);
}

/* 채팅 데모 */
.chat-demo {
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(30rem 20rem at 80% -20%, hsl(var(--eh) 60% 40% / .12), transparent 60%),
    linear-gradient(170deg, #131022, #0d0919);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02) inset;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 480px;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1.05rem 1.3rem;
  border-bottom: 1px solid var(--line);
}
.chat-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, hsl(var(--eh) 90% 78%), hsl(var(--eh) 75% 52%) 45%, hsl(calc(var(--eh) + 40) 70% 25%) 100%);
  box-shadow: 0 0 18px -2px var(--glow);
  flex: none;
}
.chat-name { font-weight: 700; font-size: .98rem; }
.chat-name .mono { color: var(--ink-faint); font-size: .6rem; margin-left: .3rem; }
.chat-role { color: var(--ink-faint); font-size: .6rem; margin-top: .1rem; }
.chat-emo {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--accent);
  font-size: .68rem;
  padding: .3rem .75rem;
  border: 1px solid hsl(var(--eh) 80% 60% / .4);
  border-radius: 99px;
  transition: color .8s, border-color .8s;
  white-space: nowrap;
}
.chat-emo-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--glow);
}
.chat-body {
  flex: 1;
  padding: 1.4rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  overflow: hidden;
  justify-content: flex-end;
}
.msg {
  max-width: 82%;
  padding: .72rem 1.05rem;
  border-radius: 16px;
  font-size: .93rem;
  line-height: 1.6;
  animation: msg-in .45s cubic-bezier(.2,.7,.2,1);
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
}
.msg.u {
  align-self: flex-end;
  background: rgba(200,190,255,.09);
  border-bottom-right-radius: 5px;
}
.msg.h {
  align-self: flex-start;
  background: hsl(var(--eh) 55% 26% / .28);
  border: 1px solid hsl(var(--eh) 70% 55% / .25);
  border-bottom-left-radius: 5px;
  transition: background .8s, border-color .8s;
}
.msg .caret {
  display: inline-block;
  width: 1px; height: 1em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: pulse-dot 1s steps(2) infinite;
}
.typing {
  display: inline-flex;
  gap: 5px;
  padding: .3rem 0;
}
.typing i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink-dim);
  animation: typing-b 1.2s ease-in-out infinite;
}
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing-b {
  0%, 60%, 100% { transform: none; opacity: .45; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.chat-foot {
  padding: .8rem 1.3rem;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: .62rem;
  text-align: center;
}
.chat-body.fade-out .msg { opacity: 0; transition: opacity .5s; }

/* ── VISION 실 타래 타임라인 ─────────────────────── */
.thread-line {
  margin-top: 3.6rem;
  position: relative;
  display: grid;
  gap: 2.8rem;
  padding-left: 2.6rem;
  max-width: 40rem;
}
.thread-line::before {
  content: "";
  position: absolute;
  left: 8px; top: .4rem; bottom: .4rem;
  width: 1px;
  background: linear-gradient(
    hsl(var(--eh) 85% 65% / .8),
    hsl(var(--eh) 60% 50% / .35) 40%,
    var(--line));
}
.thread-line li { position: relative; }
.thread-line li::before {
  content: "";
  position: absolute;
  left: -2.6rem; top: .42rem;
  width: 17px; height: 17px;
  border-radius: 50%;
  border: 1px solid hsl(var(--eh) 80% 60% / .55);
  background: var(--bg);
}
.thread-line li::after {
  content: "";
  position: absolute;
  left: calc(-2.6rem + 5px); top: calc(.42rem + 5px);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--glow);
}
.thread-line li:first-child::after { animation: pulse-dot 1.8s ease-in-out infinite; }
.tl-tag {
  color: var(--accent);
  font-size: .65rem;
}
.tl-tag.horizon { color: var(--ink-faint); }
.thread-line h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 550;
  margin-top: .4rem;
}
.thread-line p:not(.tl-tag) {
  color: var(--ink-dim);
  font-size: .95rem;
  margin-top: .4rem;
  max-width: 32rem;
}

/* ── CONTACT ────────────────────────────────────── */
.contact { text-align: center; }
.contact .eyebrow::before { display: none; }
.contact .eyebrow::after {
  content: "";
  display: block;
  width: 2.4rem; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: .9rem auto 0;
}
.contact .sub { margin-inline: auto; }
.contact-line { font-size: clamp(2.4rem, 5.6vw, 4.6rem); }

/* ── FOOTER ─────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.wm {
  pointer-events: none;
  white-space: nowrap;
  text-align: center;
  line-height: .78;
  margin-bottom: -.12em;
}
.wm span {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(4rem, 12.5vw, 11.5rem);
  color: transparent;
  -webkit-text-stroke: 1px hsl(var(--eh) 70% 70% / .22);
  display: inline-block;
  transform: translateY(.12em);
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.6rem 0 1.8rem;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
}
.footer-tag { color: var(--ink-dim); }
.to-top { transition: color .25s; }
.to-top:hover { color: var(--accent); }

/* ── 반응형 ─────────────────────────────────────── */
@media (max-width: 960px) {
  .manifesto-grid, .st-grid { grid-template-columns: 1fr; }
  .phase-grid { grid-template-columns: 1fr; max-width: 480px; }
  .instrument { justify-self: start; }
  .chat-demo { min-height: 440px; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .telemetry { display: none; }
  body { font-size: 1rem; }
  .nav { padding-inline: 1.1rem; gap: 1rem; }
  .brand { font-size: .98rem; }
  .display { font-size: clamp(2.1rem, 10.2vw, 3.2rem); }
  .display-2 { font-size: clamp(1.7rem, 7.6vw, 2.4rem); }
}

/* ── 모션 축소 존중 ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .grain { display: none; }
  #cursor-glow { display: none; }
}
