/* ===========================================================
   SPEAR STUDIO · stylesheet
   Token system inherited from SPEAR LABS (spearlabs.pages.dev)
   =========================================================== */
:root {
  color-scheme: dark;

  /* surfaces */
  --bg: #0b0c0e;
  --bg-elev: #0e0f12;
  --panel: #111216;
  --panel-2: #15161b;
  --panel-3: #14151a;
  --line: #282a30;
  --line-strong: #393b42;

  /* brand */
  --gold: #d6b16b;
  --gold-bright: #edca87;
  --gold-dim: #6b5a3c;
  --gold-wash: #d6b16b14;
  --gold-wash-2: #d6b16b19;
  --gold-ink: #17120b;

  /* accent · studio only (animation / MV line) */
  --violet: #9d8fd4;
  --violet-wash: #9d8fd414;
  --violet-dim: #4a4270;

  /* text */
  --white: #f5f3ee;
  --text: #f5f3ee;
  --muted: #a6a6ad;
  --muted-2: #8f9097;

  /* status */
  --ok: #84c2a0;
  --ok-dim: #345744;
  --warn: #e4a671;
  --info: #8fb6d8;

  /* type */
  --font-sans: system-ui, -apple-system, "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  /* geometry */
  --r-sm: 3px;
  --r: 4px;
  --r-md: 6px;
  --r-lg: 10px;
  --r-pill: 999px;

  /* layout */
  --header-h: 62px;
  --maxw: 1180px;
  --gutter: 28px;

  /* elevation */
  --shadow-sm: 0 1px 2px #00000040;
  --shadow: 0 10px 30px #00000059;
  --shadow-lg: 0 24px 70px #0000008c;
  --glow-gold: 0 0 0 1px #d6b16b2e, 0 8px 26px #d6b16b1c;

  /* motion */
  --t-fast: .16s ease;
  --t: .22s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

::selection { background: var(--gold); color: var(--gold-ink); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ---------- utilities ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.section { padding: 104px 0; border-top: 1px solid var(--line); }
.section--flush { border-top: 0; }

.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.22;
  letter-spacing: -.02em;
  margin: 0 0 14px;
  font-weight: 650;
}
.section-head p { color: var(--muted); margin: 0; font-size: 15.5px; }

.lead { color: var(--muted); font-size: 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--r);
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  font-size: 13.5px;
  font-weight: 560;
  letter-spacing: .01em;
  transition: border-color var(--t), background var(--t), transform var(--t-fast), color var(--t);
  white-space: nowrap;
}
.btn:hover { border-color: var(--gold-dim); background: var(--panel-3); transform: translateY(-1px); }

.btn--primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--gold-ink);
  font-weight: 640;
}
.btn--primary:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--gold-ink); }

.btn--ghost { background: transparent; }
.btn--sm { padding: 8px 14px; font-size: 12.5px; }
.btn--lg { padding: 14px 26px; font-size: 14.5px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: #0b0c0ed9;
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .16em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.logo b { font-weight: 700; color: var(--gold); letter-spacing: .16em; }
.logo span { color: var(--muted-2); font-weight: 400; }

.nav { display: flex; gap: 4px; margin-left: 10px; }
.nav a {
  padding: 7px 12px;
  white-space: nowrap;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  color: var(--muted);
  transition: color var(--t), background var(--t);
}
.nav a:hover { color: var(--text); background: var(--panel-2); }

.header-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.lang {
  display: flex;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.lang button {
  background: transparent;
  border: 0;
  padding: 5px 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--muted-2);
  transition: color var(--t), background var(--t);
}
.lang button[aria-pressed="true"] { background: var(--gold-wash-2); color: var(--gold); }
.lang button:hover { color: var(--text); }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 7px 9px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 108px 0 92px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% 20% auto -10%;
  height: 620px;
  background: radial-gradient(60% 55% at 30% 40%, #d6b16b1f, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -15% -45% 40%;
  height: 560px;
  background: radial-gradient(55% 55% at 60% 50%, #9d8fd41a, transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 9px;
  border: 1px solid var(--gold-dim);
  background: var(--gold-wash);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}
.hero-tag i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px #d6b16b2e;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(38px, 6.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
}
.hero h1 .dim { color: var(--muted-2); }
.hero h1 .gold { color: var(--gold); }

.hero-sub {
  margin: 22px 0 0;
  max-width: 620px;
  font-size: 17px;
  line-height: 1.68;
  color: var(--muted);
}
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 56px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  overflow: hidden;
}
.hero-meta div {
  flex: 1 1 180px;
  padding: 18px 22px;
  border-right: 1px solid var(--line);
}
.hero-meta div:last-child { border-right: 0; }
.hero-meta dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 6px; }
.hero-meta dd { margin: 0; font-size: 14.5px; font-weight: 560; }

/* ---------- strip ---------- */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  padding: 15px 0;
  overflow: hidden;
}
.strip .wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.strip .mono { color: var(--muted-2); }
.strip .mono b { color: var(--gold); font-weight: 700; }
.strip-sep { color: var(--line-strong); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat {
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--gold);
  opacity: .55;
}
.stat-num {
  font-family: var(--font-mono);
  font-size: 44px;
  line-height: 1;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -.03em;
}
.stat-num small { font-size: 20px; color: var(--gold-dim); margin-left: 2px; }
.stat h3 { margin: 14px 0 8px; font-size: 15px; font-weight: 600; }
.stat p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.stat .mono { display: block; margin-top: 16px; color: var(--muted-2); font-size: 10px; }

/* ---------- service grid ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc {
  padding: 28px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  transition: border-color var(--t), background var(--t), transform var(--t);
  display: flex;
  flex-direction: column;
}
.svc:hover { border-color: var(--gold-dim); background: var(--panel-2); transform: translateY(-2px); }

.svc-ico {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--panel-3);
  color: var(--gold);
  margin-bottom: 20px;
}
.svc h3 { margin: 0 0 10px; font-size: 16.5px; font-weight: 620; letter-spacing: -.01em; }
.svc p { margin: 0 0 18px; color: var(--muted); font-size: 13.8px; line-height: 1.64; flex: 1; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--muted-2);
  background: var(--bg-elev);
}

.svc--feature { border-color: var(--violet-dim); background: linear-gradient(170deg, #9d8fd40f, var(--panel) 55%); }
.svc--feature:hover { border-color: var(--violet); }
.svc--feature .svc-ico { color: var(--violet); border-color: var(--violet-dim); background: var(--violet-wash); }
.svc-badge {
  position: absolute;
  top: 18px; right: 18px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--violet);
  border: 1px solid var(--violet-dim);
  background: var(--violet-wash);
  padding: 3px 8px;
  border-radius: var(--r-pill);
}
.svc { position: relative; }

/* ---------- animation / MV feature band ---------- */
.band {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(70% 120% at 85% 0%, #9d8fd416, transparent 60%),
    var(--bg-elev);
  padding: 104px 0;
}
.band-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.band h2 {
  font-size: clamp(27px, 3.6vw, 40px);
  line-height: 1.2;
  letter-spacing: -.025em;
  margin: 0 0 18px;
  font-weight: 650;
}
.band .eyebrow { color: var(--violet); }
.band p { color: var(--muted); font-size: 15.5px; margin: 0 0 16px; }

.pipeline {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  overflow: hidden;
}
.pipeline-head {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pipeline-head .mono { color: var(--muted-2); }
.dot-row { display: flex; gap: 5px; margin-left: auto; }
.dot-row i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.dot-row i:first-child { background: var(--violet); }

.pipe-step {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.pipe-step:last-child { border-bottom: 0; }
.pipe-step .n {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--violet);
  border: 1px solid var(--violet-dim);
  border-radius: var(--r-sm);
  background: var(--violet-wash);
  text-align: center;
  padding: 4px 0;
}
.pipe-step h4 { margin: 0 0 3px; font-size: 14px; font-weight: 580; }
.pipe-step p { margin: 0; font-size: 12.8px; color: var(--muted-2); }
.pipe-step .mono { color: var(--muted-2); font-size: 10px; white-space: nowrap; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  position: relative;
}
.step-n {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--gold);
  margin-bottom: 18px;
}
.step h3 { margin: 0 0 9px; font-size: 15.5px; font-weight: 620; }
.step p { margin: 0 0 14px; color: var(--muted); font-size: 13.5px; line-height: 1.62; }
.step .mono { color: var(--muted-2); font-size: 10px; }

/* ---------- problem / solution ---------- */
.ps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ps {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  overflow: hidden;
}
.ps-row { padding: 20px 24px; }
.ps-row + .ps-row { border-top: 1px solid var(--line); background: var(--gold-wash); }
.ps-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--muted-2);
}
.ps-row + .ps-row .ps-label { color: var(--gold); }
.ps h3 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.5; }
.ps p { margin: 0; font-size: 13.8px; color: var(--muted); line-height: 1.62; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.plan {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
}
.plan--mid { border-color: var(--gold-dim); box-shadow: var(--glow-gold); background: linear-gradient(175deg, var(--gold-wash), var(--panel) 45%); }
.plan-name { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.plan-price { margin: 18px 0 4px; font-size: 30px; font-weight: 680; letter-spacing: -.025em; font-family: var(--font-mono); }
.plan-price small { font-size: 13px; color: var(--muted-2); font-weight: 400; letter-spacing: 0; }
.plan-note { color: var(--muted-2); font-size: 12.5px; margin: 0 0 22px; }
.plan ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; flex: 1; }
.plan li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; font-size: 13.6px; color: var(--muted); line-height: 1.55; }
.plan li svg { color: var(--gold); margin-top: 4px; }
.plan li b { color: var(--text); font-weight: 600; }

.price-foot {
  margin-top: 22px;
  padding: 16px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r);
  color: var(--muted-2);
  font-size: 13px;
  background: var(--bg-elev);
}

/* ---------- coverage / tools ---------- */
.cov-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cov {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  padding: 22px 22px 20px;
}
.cov .mono { color: var(--gold); margin-bottom: 16px; }
.cov ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cov li { font-size: 13.4px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.cov li::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); flex-shrink: 0; }

/* ---------- contact ---------- */
.contact {
  border-top: 1px solid var(--line);
  padding: 104px 0;
  background: radial-gradient(70% 100% at 50% 0%, #d6b16b12, transparent 60%), var(--bg);
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact h2 {
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -.03em;
  margin: 0 0 18px;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
}
.contact h2 .dim { color: var(--muted-2); }

.contact-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 1px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.contact-list li { padding: 15px 20px; background: var(--panel); display: flex; align-items: center; gap: 14px; }
.contact-list .mono { color: var(--muted-2); min-width: 86px; }
.contact-list span { font-size: 14px; }

form { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); padding: 26px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 13px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  transition: border-color var(--t);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-dim); outline: none; }
.field input::placeholder, .field textarea::placeholder { color: #6a6b72; }

.form-note { color: var(--muted-2); font-size: 12px; margin: 14px 0 0; }
.form-status { margin: 14px 0 0; font-size: 13px; color: var(--ok); display: none; }
.form-status.on { display: block; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; background: var(--bg-elev); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
.foot-links a { font-size: 13px; color: var(--muted-2); transition: color var(--t); }
.foot-links a:hover { color: var(--gold); }
.copy { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; color: #6a6b72; width: 100%; margin-top: 8px; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .svc-grid, .steps, .cov-grid { grid-template-columns: repeat(2, 1fr); }
  .band-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .plans { grid-template-columns: 1fr; }
}

@media (max-width: 1040px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    padding: 8px;
    box-shadow: var(--shadow);
  }
  .nav.open a { padding: 12px 14px; font-size: 15px; }
  .menu-toggle { display: grid; place-items: center; }
  .lang { display: none; }
}

@media (max-width: 680px) {
  :root { --gutter: 20px; }
  .section, .band, .contact { padding: 68px 0; }
  .stats, .svc-grid, .steps, .ps-grid, .cov-grid { grid-template-columns: 1fr; }
  .hero { padding: 68px 0 56px; }
  .hero-meta div { flex-basis: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-meta div:last-child { border-bottom: 0; }
  .hero-cta .btn { flex: 1 1 100%; }
  .pipe-step { grid-template-columns: 40px 1fr; }
  .pipe-step .mono { display: none; }
}

/* ===========================================================
   창용이 · STUDIO DESK widget
   =========================================================== */
.desk-launch {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 16px 9px 9px;
  border: 1px solid var(--gold-dim);
  border-radius: var(--r-pill);
  background: #111216f2;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.desk-launch:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.desk-launch img {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  background: var(--gold-wash);
  object-fit: cover;
}
.desk-launch .dl-txt { text-align: left; line-height: 1.3; }
.desk-launch .dl-name { font-size: 13px; font-weight: 620; }
.desk-launch .dl-role {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold);
}
.desk-launch .dl-ping {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px #84c2a02e;
  margin-left: 2px;
  flex-shrink: 0;
}
.desk-launch[aria-expanded="true"] { opacity: 0; pointer-events: none; }

.desk {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 81;
  width: 356px;
  max-width: calc(100vw - 32px);
  max-height: min(620px, calc(100vh - 44px));
  display: none;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.desk.open { display: flex; animation: deskIn .22s ease; }
@keyframes deskIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }

.desk-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--gold-wash), var(--panel-2));
}
.desk-head img {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  background: var(--gold-wash);
  object-fit: cover;
}
.desk-head .dh-name { font-size: 14.5px; font-weight: 640; }
.desk-head .dh-role {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold);
}
.desk-close {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  width: 28px; height: 28px;
  display: grid; place-items: center;
  color: var(--muted);
  transition: color var(--t), border-color var(--t);
}
.desk-close:hover { color: var(--text); border-color: var(--line-strong); }

.desk-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.desk-body::-webkit-scrollbar { width: 8px; }
.desk-body::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: var(--r-pill); }

.msg {
  max-width: 86%;
  padding: 11px 14px;
  border-radius: var(--r-md);
  font-size: 13.6px;
  line-height: 1.6;
}
.msg--bot {
  align-self: flex-start;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-top-left-radius: var(--r-sm);
}
.msg--me {
  align-self: flex-end;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 520;
  border-top-right-radius: var(--r-sm);
}
.msg b { font-weight: 640; }

.quick { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 2px; }
.quick button {
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  padding: 7px 13px;
  font-size: 12.5px;
  color: var(--muted);
  transition: color var(--t), border-color var(--t), background var(--t);
}
.quick button:hover { color: var(--gold); border-color: var(--gold-dim); background: var(--gold-wash); }

.desk-foot {
  border-top: 1px solid var(--line);
  padding: 12px 14px 14px;
  background: var(--panel-2);
}
.desk-foot .mono { color: var(--muted-2); font-size: 9.5px; display: block; margin-bottom: 9px; }
.desk-input { display: flex; gap: 8px; }
.desk-input input {
  flex: 1;
  padding: 10px 12px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
}
.desk-input input:focus { border-color: var(--gold-dim); outline: none; }
.desk-input button {
  background: var(--gold);
  color: var(--gold-ink);
  border: 1px solid var(--gold);
  border-radius: var(--r-sm);
  padding: 0 14px;
  font-weight: 640;
  font-size: 13px;
  transition: background var(--t);
}
.desk-input button:hover { background: var(--gold-bright); }

@media (max-width: 680px) {
  .desk-launch { right: 14px; bottom: 14px; padding: 8px 14px 8px 8px; }
  .desk-launch .dl-txt { display: none; }
  .desk { right: 14px; bottom: 14px; left: 14px; width: auto; }
}
