/* ============================================================
   BASEBLOOM · Concept 09 — Conversational Design
   Espresso dark · peach & cream bubbles · handwritten warmth
   ============================================================ */
:root {
  --espresso: #191310;
  --espresso-2: #241b16;
  --cream:    #f6efe6;
  --cream-dim:#bcb1a4;
  --cream-fnt:#77695c;
  --peach:    #ffb08a;
  --peach-deep: #e88a5d;
  --bubble-us: #2e231d;
  --hairline: rgba(246,239,230,0.14);
  --sans: "Figtree", system-ui, sans-serif;
  --hand: "Caveat", cursive;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%, var(--espresso-2), transparent 60%),
    var(--espresso);
  color: var(--cream-dim);
  font-family: var(--sans); font-weight: 300; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: rgba(255,176,138,0.35); color: var(--cream); }
a { color: inherit; text-decoration: none; }
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: #120d0a; }
::-webkit-scrollbar-thumb { background: #3a2d24; border-radius: 9px; border: 2px solid #120d0a; }
::-webkit-scrollbar-thumb:hover { background: var(--peach-deep); }

/* bar */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; gap: 1.6rem;
  padding: clamp(0.9rem, 2vw, 1.3rem) clamp(1.2rem, 3.5vw, 2.6rem);
  background: linear-gradient(rgba(25,19,16,0.92), transparent); pointer-events: none; }
.bar > * { pointer-events: auto; }
.bar-brand { font-weight: 800; font-size: 0.95rem; letter-spacing: 0.02em; color: var(--cream); }
.cursor-blink { color: var(--peach); animation: blink 1.1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.bar-note { margin-left: auto; font-size: 0.64rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--cream-fnt); font-weight: 500; }
.bar-cta { font-weight: 700; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--peach); padding: 0.5rem 1.05rem;
  border: 1px solid rgba(255,176,138,0.4); border-radius: 999px;
  transition: background 0.4s var(--ease), color 0.4s var(--ease); }
.bar-cta:hover { background: var(--peach); color: var(--espresso); }

/* room layout */
.room { min-height: 100vh; max-width: 90rem; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.6rem, 4vw, 4.5rem); align-items: center;
  padding: clamp(5.5rem, 12vh, 7.5rem) clamp(1.3rem, 4.5vw, 3.5rem) clamp(2rem, 5vh, 3.5rem); }
.kicker { font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase;
  font-weight: 700; color: var(--peach); margin-bottom: 1.2rem; }
.headline { color: var(--cream); font-weight: 800; letter-spacing: -0.025em;
  font-size: clamp(2.2rem, 4.8vw, 3.9rem); line-height: 1.04; margin-bottom: 1.3rem; }
.headline em { font-style: normal; color: var(--peach); }
.lede { max-width: 30rem; font-size: clamp(0.96rem, 1.35vw, 1.08rem); margin-bottom: 1.4rem; }
.aside-note { font-family: var(--hand); font-size: 1.25rem; color: var(--cream-fnt);
  transform: rotate(-1.2deg); }

/* chat shell */
.chat-shell { display: flex; flex-direction: column;
  background: rgba(36,27,22,0.6); border: 1px solid var(--hairline);
  border-radius: 18px; overflow: hidden; backdrop-filter: blur(6px);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,0.85);
  height: min(72vh, 640px); }
.chat-head { display: flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem 1.2rem; border-bottom: 1px solid var(--hairline);
  font-weight: 700; font-size: 0.85rem; color: var(--cream); }
.dot-on { width: 9px; height: 9px; border-radius: 50%; background: #58d68d;
  box-shadow: 0 0 10px 2px rgba(88,214,141,0.5); }
.restart { margin-left: auto; font-family: var(--sans); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream-fnt);
  background: none; border: 1px solid var(--hairline); border-radius: 999px;
  padding: 0.35rem 0.8rem; cursor: pointer; transition: all 0.3s var(--ease); }
.restart:hover { color: var(--peach); border-color: var(--peach); }

.chat { flex: 1; overflow-y: auto; padding: 1.2rem; display: flex;
  flex-direction: column; gap: 0.7rem; scroll-behavior: smooth; }
.msg { max-width: 82%; padding: 0.75rem 1rem; border-radius: 16px;
  font-size: 0.94rem; line-height: 1.5;
  opacity: 0; transform: translateY(10px);
  animation: pop 0.4s var(--ease) forwards; }
@keyframes pop { to { opacity: 1; transform: none; } }
.msg.studio { align-self: flex-start; background: var(--peach); color: var(--espresso);
  border-bottom-left-radius: 4px; font-weight: 500; }
.msg.studio a { text-decoration: underline; font-weight: 800; }
.msg.you { align-self: flex-end; background: var(--bubble-us); color: var(--cream);
  border-bottom-right-radius: 4px; }
.typing { align-self: flex-start; display: inline-flex; gap: 4px;
  background: var(--peach); border-radius: 16px; border-bottom-left-radius: 4px;
  padding: 0.85rem 1rem; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(25,19,16,0.65);
  animation: tdot 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes tdot { 0%,100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-4px); opacity: 1; } }

.choices { display: flex; flex-wrap: wrap; gap: 0.55rem;
  padding: 0.9rem 1.2rem; border-top: 1px solid var(--hairline); min-height: 3.6rem; }
.choice { font-family: var(--sans); font-weight: 700; font-size: 0.8rem; color: var(--cream);
  background: none; border: 1.5px solid rgba(255,176,138,0.5); border-radius: 999px;
  padding: 0.55rem 1.05rem; cursor: pointer;
  opacity: 0; transform: translateY(8px); animation: pop 0.35s var(--ease) forwards;
  transition: background 0.25s var(--ease), color 0.25s var(--ease); }
.choice:hover { background: var(--peach); color: var(--espresso); }

/* foot */
.foot { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem;
  padding: 1.4rem clamp(1.3rem, 4.5vw, 3.5rem) 2rem;
  font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; color: var(--cream-fnt); border-top: 1px solid var(--hairline); }
.foot-right { margin-left: auto; color: var(--peach); }

@media (max-width: 900px) {
  .room { grid-template-columns: 1fr; padding-top: 5rem; }
  .chat-shell { height: 70vh; }
  .bar-note { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .msg, .choice { animation: none; opacity: 1; transform: none; }
  .cursor-blink, .typing i { animation: none; }
}

/* ===== SECOND CUT — The Blunt Cut (terminal) ===== */
:root { --espresso:#060a08; --espresso-2:#0c130f; --cream:#d8f5e2; --cream-dim:#8fb89d;
  --cream-fnt:#557a63; --peach:#37f27d; --peach-deep:#22c45e; --bubble-us:#12281b;
  --hairline: rgba(55,242,125,0.22); }
.msg, .choice, .chat-head, .bar-brand { font-family: ui-monospace, 'SF Mono', Menlo, monospace; }
.msg { border-radius: 6px; }
.msg.studio { border-bottom-left-radius: 2px; }
.msg.you { border-bottom-right-radius: 2px; }
.aside-note { font-family: ui-monospace, monospace; font-size: 0.8rem; transform: none; }
.headline { letter-spacing: -0.01em; }
