/* =========================================================
   BY LUX · concierge side panel + project inquiry
   ========================================================= */
.msg .w { opacity: 0; animation: cgWord .45s var(--ease-lux, ease) forwards; }
@keyframes cgWord { from { opacity: 0; filter: blur(3px); } to { opacity: 1; filter: none; } }
.msg.is-typing { padding: 12px 16px; }
.msg.note { align-self: center; margin: 4px auto; padding: 7px 14px; border-radius: 999px; background: none; border: 1px solid rgba(176, 145, 94, .45); color: #8f7448;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; max-width: none; }
.typing i { background: var(--gold, #b0915e) !important; }

/* ---------- launcher ---------- */
.cg { --cg-ink: #14120f; --cg-paper: #fbf9f5; font-family: var(--text); }
.cg-launch { position: fixed; z-index: 180; right: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 2.4vw, 32px); display: flex; align-items: center; gap: 12px;
  height: 58px; padding: 0 22px 0 9px; border: 1px solid rgba(217, 196, 155, .35); border-radius: 999px; cursor: pointer;
  background: linear-gradient(180deg, #24201a, #14120f); color: #f6f1e7; box-shadow: 0 24px 50px -18px rgba(20, 16, 10, .65), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform .7s var(--ease-lux, ease), box-shadow .7s, opacity .4s; }
.cg-launch:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -18px rgba(20, 16, 10, .7), inset 0 1px 0 rgba(255, 255, 255, .1); }
.cg-launch-text { font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; }
.cg-orb { flex: none; width: 40px; height: 40px; border-radius: 50%; background: conic-gradient(from 0deg, #b0915e, #f1e4c6, #6b5a3e, #d9c49b, #b0915e);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .5), 0 0 22px rgba(217, 196, 155, .45); animation: cgSpin 7s linear infinite; position: relative; }
.cg-orb::after { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, rgba(255, 255, 255, 0) 70%); opacity: .7; }
@keyframes cgSpin { to { transform: rotate(360deg); } }
.cg.is-open .cg-launch { opacity: 0; pointer-events: none; transform: translateY(10px) scale(.96); }

/* ---------- panel ---------- */
.cg-scrim { position: fixed; inset: 0; z-index: 181; background: rgba(20, 18, 15, .18); opacity: 0; pointer-events: none; transition: opacity .6s; }
.cg-panel { position: fixed; z-index: 182; top: 14px; right: 14px; bottom: 14px; width: min(420px, calc(100vw - 28px)); display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(252, 250, 246, .97), rgba(244, 238, 228, .97)); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(176, 145, 94, .22); border-radius: 26px; box-shadow: 0 50px 100px -40px rgba(28, 22, 12, .55);
  transform: translateX(calc(100% + 30px)); transition: transform .9s var(--ease-lux, cubic-bezier(.16, 1, .3, 1)); color: var(--cg-ink); }
.cg.is-open .cg-panel { transform: none; }
.cg.is-open .cg-scrim { opacity: 1; pointer-events: auto; }
.cg-head { display: flex; align-items: center; gap: 12px; padding: 18px 16px 16px 18px; border-bottom: 1px solid rgba(20, 18, 15, .1); }
.cg-head .cg-orb { width: 42px; height: 42px; }
.cg-title { flex: 1; min-width: 0; }
.cg-title b { display: block; font-family: var(--display); font-weight: 500; font-size: 21px; line-height: 1.1; }
.cg-title span { display: flex; align-items: center; gap: 7px; margin-top: 3px; font-size: 12px; color: rgba(20, 18, 15, .58); }
.cg-title span i { width: 7px; height: 7px; border-radius: 50%; background: #b0915e; box-shadow: 0 0 0 0 rgba(176, 145, 94, .5); animation: cgPulse 2.2s infinite; }
@keyframes cgPulse { 70% { box-shadow: 0 0 0 7px rgba(176, 145, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(176, 145, 94, 0); } }
.cg-icon { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(20, 18, 15, .12); background: rgba(255, 255, 255, .6); cursor: pointer; color: inherit; transition: background .3s, color .3s; }
.cg-icon:hover { background: var(--cg-ink); color: #fff; }
.cg-icon svg { width: 18px; height: 18px; }
.cg-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 9px; padding: 20px 18px; scrollbar-width: thin; overscroll-behavior: contain; }
.cg-log .msg { max-width: 86%; padding: 11px 15px; border-radius: 18px; font-size: 15px; line-height: 1.5; animation: rise-blur .5s var(--ease-lux, ease) both; }
.cg-log .msg.me { align-self: flex-end; background: var(--cg-ink); color: #f6f1e7; border-bottom-right-radius: 6px; }
.cg-log .msg.bot { align-self: flex-start; background: #fff; border: 1px solid rgba(176, 145, 94, .14); border-bottom-left-radius: 6px; box-shadow: 0 10px 24px -18px rgba(28, 22, 12, .35); }
.cg-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 18px 12px; }
.cg-chips[hidden] { display: none; }
.cg-chips button { padding: 8px 13px; border-radius: 999px; border: 1px solid rgba(176, 145, 94, .35); background: rgba(255, 255, 255, .7); font: inherit; font-size: 13px; cursor: pointer; color: inherit; transition: background .3s, color .3s; }
.cg-chips button:hover { background: var(--cg-ink); color: #fff; border-color: var(--cg-ink); }
.cg-form { display: flex; align-items: flex-end; gap: 8px; margin: 0 14px; padding: 6px 6px 6px 16px; border-radius: 26px; background: #fff; border: 1px solid rgba(20, 18, 15, .12); transition: border-color .3s, box-shadow .3s; }
.cg-form:focus-within { border-color: rgba(176, 145, 94, .6); box-shadow: 0 0 0 4px rgba(176, 145, 94, .1); }
.cg-form textarea { flex: 1; min-width: 0; border: 0; outline: none; resize: none; background: none; font: inherit; font-size: 15px; line-height: 1.45; padding: 9px 0; max-height: 120px; color: inherit; }
.cg-form button { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--cg-ink); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .3s; }
.cg-form button:hover { background: #b0915e; }
.cg-form button svg { width: 19px; }
.cg-start { margin: 10px 14px 14px; height: 44px; border-radius: 999px; border: 1px solid rgba(20, 18, 15, .14); background: none; font: inherit; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; color: inherit; transition: background .3s, color .3s; }
.cg-start:hover { background: var(--cg-ink); color: #fff; }
html.cg-locked, html.cg-locked body { overflow: hidden; }

@media (max-width: 700px) {
  .cg-launch { height: 54px; padding: 0 8px; }
  .cg-launch-text { display: none; }
  .cg-panel { top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: min(88svh, 720px); border-radius: 24px 24px 0 0; transform: translateY(100%); }
}

/* ---------- project inquiry ---------- */
.iq { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; pointer-events: none; font-family: var(--text); color: #14120f; }
.iq-scrim { position: absolute; inset: 0; background: rgba(20, 18, 15, .42); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .6s; }
.iq-panel { position: relative; width: min(760px, 100%); max-height: calc(100svh - 32px); display: flex; flex-direction: column; overflow: hidden;
  background: radial-gradient(700px 400px at 90% 0%, rgba(217, 196, 155, .28), transparent 70%), linear-gradient(180deg, #fcfaf6, #f3ede3);
  border: 1px solid rgba(176, 145, 94, .25); border-radius: 30px; box-shadow: 0 60px 120px -40px rgba(20, 16, 10, .6);
  opacity: 0; transform: translateY(30px) scale(.97); transition: opacity .6s, transform .9s cubic-bezier(.16, 1, .3, 1); }
.iq.is-open { pointer-events: auto; }
.iq.is-open .iq-scrim { opacity: 1; }
.iq.is-open .iq-panel { opacity: 1; transform: none; }
.iq-panel.shake { animation: iqShake .45s; }
@keyframes iqShake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.iq-top { display: flex; align-items: center; gap: 16px; padding: 22px 22px 0 34px; }
.iq-mark { font-family: var(--display); font-size: 19px; letter-spacing: .24em; color: #b0915e; } .iq-mark b { color: #14120f; font-weight: 500; }
.iq-count { margin-left: auto; font-size: 12px; letter-spacing: .2em; color: rgba(20, 18, 15, .5); font-variant-numeric: tabular-nums; }
.iq-x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(20, 18, 15, .12); background: rgba(255, 255, 255, .6); display: grid; place-items: center; cursor: pointer; color: inherit; }
.iq-x:hover { background: #14120f; color: #fff; } .iq-x svg { width: 18px; }
.iq-bar { height: 1px; margin: 18px 34px 0; background: rgba(20, 18, 15, .1); overflow: hidden; }
.iq-bar i { display: block; height: 100%; background: linear-gradient(90deg, #b0915e, #e6d3a8); transform-origin: left; transform: scaleX(0); transition: transform .9s cubic-bezier(.16, 1, .3, 1); }
.iq-stage { flex: 1; overflow-y: auto; padding: clamp(28px, 5vw, 48px) 34px 20px; min-height: 340px; }
.iq-step { animation: iqIn .7s cubic-bezier(.16, 1, .3, 1) both; }
.iq-step.from-left { animation-name: iqInL; }
@keyframes iqIn { from { opacity: 0; transform: translateX(34px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes iqInL { from { opacity: 0; transform: translateX(-34px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.iq-step h2 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.04; margin: 0 0 10px; letter-spacing: -0.01em; }
.iq-hint { color: rgba(20, 18, 15, .6); font-size: 16px; margin: 0 0 6px; }
.iq-label { margin: 26px 0 10px; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(20, 18, 15, .55); }
.iq-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.iq-label + .iq-chips { margin-top: 0; }
.iq-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 20px 0 14px; border-radius: 999px; border: 1px solid rgba(20, 18, 15, .14); background: rgba(255, 255, 255, .75);
  font: inherit; font-size: 15.5px; cursor: pointer; color: inherit; transition: background .35s, color .35s, border-color .35s, transform .5s cubic-bezier(.16, 1, .3, 1), box-shadow .5s; }
.iq-chip:hover { transform: translateY(-2px); border-color: rgba(176, 145, 94, .6); box-shadow: 0 14px 28px -18px rgba(28, 22, 12, .4); }
.iq-chip.on { background: #14120f; color: #f6f1e7; border-color: #14120f; }
.iq-tick { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(20, 18, 15, .25); display: grid; place-items: center; transition: background .35s, border-color .35s; }
.iq-chip.on .iq-tick { background: #b0915e; border-color: #b0915e; }
.iq-chip.on .iq-tick::after { content: ''; width: 8px; height: 4px; border: solid #fff; border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg) translate(1px, -1px); }
.iq-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.iq-field { position: relative; display: block; }
.iq-field.wide { grid-column: 1 / -1; }
.iq-field input, .iq-field textarea { width: 100%; padding: 26px 16px 10px; border: 1px solid rgba(20, 18, 15, .14); border-radius: 16px; background: rgba(255, 255, 255, .85); font: inherit; font-size: 16px; color: inherit; outline: none; resize: vertical; transition: border-color .3s, box-shadow .3s; }
.iq-field input { height: 62px; }
.iq-field input:focus, .iq-field textarea:focus { border-color: #b0915e; box-shadow: 0 0 0 4px rgba(176, 145, 94, .12); }
.iq-field span { position: absolute; left: 17px; top: 21px; font-size: 15px; color: rgba(20, 18, 15, .5); pointer-events: none; transition: all .35s cubic-bezier(.16, 1, .3, 1); }
.iq-field input:focus + span, .iq-field input:not(:placeholder-shown) + span,
.iq-field textarea:focus + span, .iq-field textarea:not(:placeholder-shown) + span { top: 9px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #8f7448; }
.iq-foot { display: flex; align-items: center; gap: 14px; padding: 16px 22px 22px 34px; border-top: 1px solid rgba(20, 18, 15, .08); }
.iq-foot[hidden] { display: none; }
.iq-back { border: 0; background: none; font: inherit; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; color: rgba(20, 18, 15, .6); padding: 10px 0; }
.iq-back:hover { color: #14120f; }
.iq-err { flex: 1; font-size: 13px; color: #9a3b2a; text-align: right; }
.iq-next { position: relative; overflow: hidden; isolation: isolate; height: 54px; padding: 0 30px; border-radius: 999px; border: 0; cursor: pointer;
  background: linear-gradient(180deg, #2a2620, #14120f); color: #f6f1e7; font: inherit; font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; opacity: .45; transition: opacity .4s, color .4s; }
.iq-next.is-ready { opacity: 1; }
.iq-next::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, #c9a96f, #e6d3a8 50%, #b0915e); transform: translateX(-101%); transition: transform .8s cubic-bezier(.16, 1, .3, 1); }
.iq-next.is-ready:hover::before { transform: none; } .iq-next.is-ready:hover { color: #14120f; }
.iq-next.is-sending { pointer-events: none; }
.iq-next.is-sending::after { content: ''; display: inline-block; width: 12px; height: 12px; margin-left: 10px; vertical-align: -2px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: cgSpin .8s linear infinite; }
.iq-done { text-align: center; padding: 20px 0 10px; }
.iq-done h2 { margin-top: 18px; }
.iq-done .iq-hint { max-width: 420px; margin: 0 auto 30px; }
.iq-check { width: 76px; height: 76px; fill: none; stroke: #b0915e; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.iq-check circle { stroke-dasharray: 190; stroke-dashoffset: 190; animation: iqDraw 1.1s cubic-bezier(.16, 1, .3, 1) forwards; }
.iq-check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: iqDraw .6s .7s cubic-bezier(.16, 1, .3, 1) forwards; }
@keyframes iqDraw { to { stroke-dashoffset: 0; } }
html.iq-locked, html.iq-locked body { overflow: hidden; }

@media (max-width: 700px) {
  .iq { padding: 0; place-items: end stretch; }
  .iq-panel { width: 100%; max-height: 94svh; border-radius: 26px 26px 0 0; }
  .iq-top { padding: 18px 16px 0 22px; } .iq-bar { margin: 14px 22px 0; }
  .iq-stage { padding: 26px 22px 16px; min-height: 0; }
  .iq-fields { grid-template-columns: 1fr; }
  .iq-chip { min-height: 46px; font-size: 15px; }
  .iq-foot { padding: 14px 16px 18px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .cg-orb, .iq-step, .msg .w { animation: none !important; opacity: 1; }
}

/* simple one-screen inquiry */
.iq-simple .iq-hint { margin-bottom: 0; }
.iq-chips.iq-small { margin-top: 22px; gap: 8px; }
.iq-small .iq-chip { min-height: 42px; font-size: 14.5px; padding: 0 16px 0 11px; }
.iq-small .iq-tick { width: 17px; height: 17px; }
.iq-simple .iq-fields { margin-top: 18px; }
.iq-trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.iq-row { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.iq-row .iq-err { flex: 1; }
@media (max-width: 700px) { .iq-row { flex-wrap: wrap-reverse; } .iq-row .iq-next { width: 100%; } .iq-row .iq-err { flex-basis: 100%; text-align: left; } }

/* recommended work cards in the chat */
.msg.cards { align-self: stretch; max-width: none !important; padding: 2px 0 6px !important; background: none !important; border: 0 !important; box-shadow: none !important; margin: 0 -18px; animation: none; }
.cg-cards { display: flex; gap: 12px; overflow-x: auto; padding: 4px 18px 10px; scroll-snap-type: x mandatory; scroll-padding: 0 18px; scrollbar-width: none; }
.cg-cards::-webkit-scrollbar { display: none; }
.cg-card { flex: none; width: 232px; scroll-snap-align: start; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #fff; color: #14120f; text-decoration: none;
  border: 1px solid rgba(176, 145, 94, .2); box-shadow: 0 18px 34px -24px rgba(28, 22, 12, .5);
  animation: cgCard .8s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i) * 0.12s); transition: transform .5s cubic-bezier(.16, 1, .3, 1), box-shadow .5s; }
.msg.cards.is-static .cg-card { animation: none; }
@keyframes cgCard { from { opacity: 0; transform: translateY(18px) scale(.97); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.cg-card:hover { transform: translateY(-4px); box-shadow: 0 26px 44px -24px rgba(28, 22, 12, .6); }
.cg-card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #e8e1d4; }
.cg-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.16, 1, .3, 1); }
.cg-card:hover .cg-card-img img { transform: scale(1.05); }
.cg-card-body { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px 14px; }
.cg-card-body small { font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: #8f7448; line-height: 1.3; }
.cg-card-body b { font-family: var(--display); font-weight: 500; font-size: 21px; line-height: 1.05; }
.cg-card-body span { font-size: 13px; line-height: 1.4; color: rgba(20, 18, 15, .64); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cg-card-body em { margin-top: 4px; display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #14120f; }
.cg-card-body em svg { width: 12px; height: 12px; }
.chat-log .msg.cards { margin: 0 -2px; }
.chat-log .cg-cards { padding: 4px 2px 10px; }
.chat-log .cg-card { width: 210px; }
