/* All About Music X — the room. Ground and ink are theirs (their site is
   strictly monochrome); the one live colour is the blue of their own waveform
   mark, sampled from the logo file. */
:root {
  --ground: #07080a;
  --raised: #101318;
  --ink: #f5f7f9;
  --ink-2: #98a2ac;
  --ink-3: #626b75;
  --wave: #a0d8f8;
  --line: #1c2027;
  --settle: cubic-bezier(0.16, 1, 0.3, 1);
  --exit: cubic-bezier(0.5, 0, 0.75, 0);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 17px; line-height: 1.5; letter-spacing: -0.014em;
  -webkit-font-smoothing: antialiased; overflow: hidden;
}

::selection { background: var(--wave); color: #06070a; }
:focus-visible { outline: 2px solid var(--wave); outline-offset: 3px; border-radius: 4px; }

#field { position: fixed; inset: 0; z-index: 0; display: block; }
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(130% 100% at 50% 46%, transparent 40%, rgba(3,4,6,0.8) 100%);
}

/* ---------- the presence: who you are talking about ---------- */

.presence { position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity 900ms var(--settle); }
.presence[data-on] { opacity: 1; }

.presence__img {
  position: absolute; right: 0; top: 0; height: 100%; width: min(52vw, 720px);
  object-fit: cover; object-position: 50% 22%;
  /* duotone: the portrait joins the room's palette instead of sitting on top of it */
  /* Their headshots are shot on bright studio paper, which blows a hole in a
     dark room. Crushing the highlights is what lets the portrait belong here. */
  filter: grayscale(1) contrast(1.32) brightness(0.34);
  mask-image: linear-gradient(to left, #000 30%, transparent 94%);
  animation: arrive 1200ms var(--settle) both;
}
.presence__wash {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(7,8,10,0.92) 0%, transparent 26%, transparent 52%, rgba(7,8,10,0.88) 100%),
    linear-gradient(to left, rgba(160,216,248,0.10), transparent 52%);
}
@keyframes arrive { from { opacity: 0; transform: scale(1.06) translateX(24px); } to { opacity: 1; transform: none; } }

.presence__tag {
  position: absolute; right: clamp(20px, 4vw, 52px); bottom: clamp(22px, 5vh, 54px);
  text-align: right; max-width: 30ch;
}
.presence__kind { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--wave); }
.presence__name { font-size: clamp(26px, 3.4vw, 44px); font-weight: 550; letter-spacing: -0.035em; line-height: 1.02; margin-top: 6px; text-shadow: 0 2px 22px rgba(4,5,7,0.95); }
.presence__sub { font-size: 14px; color: var(--ink-2); margin-top: 5px; text-shadow: 0 1px 12px rgba(4,5,7,0.9); }
.presence__line { font-size: 14px; color: var(--ink-2); margin-top: 9px; line-height: 1.45; text-shadow: 0 1px 12px rgba(4,5,7,0.9); }

/* ---------- shell ---------- */

.shell {
  position: relative; z-index: 4; height: 100dvh;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: 22px clamp(20px, 5vw, 56px) calc(20px + env(safe-area-inset-bottom));
  max-width: 1320px; margin: 0 auto;
}

.top { display: flex; align-items: center; gap: 14px; }
.top__logo { height: 22px; width: auto; opacity: 0.9; }
.top__spacer { flex: 1; }
.top__meta { font-size: 12px; color: var(--ink-3); letter-spacing: 0.02em; text-shadow: 0 1px 10px rgba(4,5,7,0.9); }

.centre { display: grid; align-content: center; gap: clamp(16px, 2.6vh, 26px); min-height: 0; max-width: 56ch; }

/* ---------- her voice ---------- */

.host { display: flex; align-items: center; gap: 10px; }
.host img { width: 27px; height: 27px; border-radius: 50%; object-fit: cover; }
.host span { font-size: 13px; color: var(--ink-3); }

.react {
  margin: 0; font-size: clamp(16px, 1.9vw, 20px); line-height: 1.4; color: var(--wave);
  letter-spacing: -0.018em; max-width: 40ch;
}

.ask {
  margin: 0; font-size: clamp(31px, 5vw, 60px); line-height: 1.03;
  letter-spacing: -0.038em; font-weight: 500; text-wrap: balance; max-width: 15ch;
}
.ask em { font-style: normal; color: var(--wave); }

.said { font-size: clamp(15px, 1.6vw, 18px); color: var(--ink-2); max-width: 44ch; margin: 0; }

.w { display: inline-block; opacity: 0; filter: blur(7px); transform: translateY(0.28em); }
.w--in { animation: word 640ms var(--settle) both; }
@keyframes word { to { opacity: 1; filter: blur(0); transform: none; } }

/* ---------- answering ---------- */

.answer { display: grid; gap: 13px; }
.seeds { display: flex; flex-wrap: wrap; gap: 8px; }
.seed {
  appearance: none; cursor: pointer; font: inherit; font-size: 13.5px; color: var(--ink-2);
  background: rgba(255,255,255,0.028); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px;
  transition: color 220ms, border-color 220ms, transform 220ms var(--settle);
}
.seed:hover { color: var(--ink); border-color: var(--ink-3); transform: translateY(-1px); }

.say { display: flex; align-items: flex-end; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; transition: border-color 320ms; }
.say:focus-within { border-color: var(--wave); }
.say textarea {
  flex: 1; background: transparent; border: 0; color: var(--ink); resize: none; font: inherit;
  font-size: clamp(17px, 1.9vw, 20px); line-height: 1.4; letter-spacing: -0.018em; padding: 0;
  max-height: 26vh; caret-color: var(--wave);
}
.say textarea::placeholder { color: var(--ink-3); }
.say textarea:focus { outline: none; }

.go {
  appearance: none; cursor: pointer; border: 0; font: inherit; font-weight: 600; font-size: 14px;
  background: var(--wave); color: #06070a; border-radius: 999px; height: 40px; padding: 0 20px;
  transition: opacity 240ms var(--settle), transform 240ms var(--settle); white-space: nowrap;
}
.go[disabled] { opacity: 0.2; cursor: default; }
.go:not([disabled]):hover { transform: translateY(-1px); }
.hint { font-size: 12px; color: var(--ink-3); margin: 0; }

/* ---------- what you brought up ---------- */

.rail { display: flex; gap: 7px; align-items: center; min-height: 32px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 4px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; color: var(--ink-2);
  animation: chip 620ms var(--settle) both; background: rgba(255,255,255,0.02);
}
.chip img { width: 21px; height: 21px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--wave); margin-left: 5px; }
@keyframes chip { from { opacity: 0; transform: translateX(-8px) scale(0.9); } to { opacity: 1; transform: none; } }

.trail { display: flex; gap: 5px; align-items: center; }
.trail i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--line);
  transition: background 400ms var(--settle), transform 400ms var(--settle);
}
.trail i[data-on] { background: var(--wave); }
.trail i[data-now] { background: var(--ink); transform: scale(1.6); }

/* ---------- close ---------- */

.recap__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 9px; margin-top: 6px; }
.recap__cell { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--raised); animation: chip 700ms var(--settle) both; }
.recap__cell img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(1) brightness(0.85); display: block; }
.recap__cell span { display: block; padding: 8px 10px 10px; font-size: 11.5px; color: var(--ink-3); }
.recap__cell b { display: block; color: var(--ink); font-weight: 550; font-size: 13px; letter-spacing: -0.012em; }

@media (max-width: 860px) {
  .presence__img { width: 100%; height: 46vh; top: 0; mask-image: linear-gradient(to bottom, #000 30%, transparent 94%); object-position: 50% 18%; }
  .presence__wash { background: linear-gradient(to bottom, rgba(160,216,248,0.16), transparent 52%); }
  .presence__tag { right: auto; left: clamp(20px, 5vw, 52px); bottom: auto; top: 30vh; text-align: left; }
  .presence__name { font-size: 30px; }
  .presence__line { display: none; }
  .shell { grid-template-rows: auto 1fr auto; }
  .centre { align-content: end; padding-bottom: 6px; }
  .ask { max-width: 13ch; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
  .w { opacity: 1; filter: none; transform: none; }
}
