/* Try it — role switcher + real-screen phone. The panel takes the role's colour. */
#tryit { padding: clamp(40px, 6vw, 100px) var(--gut); }
.tryit-panel {
  --bg: var(--blue); --fg: #fff; --chip: rgba(255, 255, 255, .16); --chip-on: #fff; --chip-on-fg: var(--ink);
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 60px); align-items: center;
  max-width: 1680px; margin: 0 auto; min-height: min(96svh, 960px); padding: clamp(28px, 4.5vw, 80px);
  border-radius: var(--r-lg); background: var(--bg); color: var(--fg); overflow: hidden; transition: background .6s var(--ease), color .6s;
}
.tryit-panel[data-role="artist"] { --bg: var(--yellow); --fg: var(--ink); --chip: rgba(255, 255, 255, .5); --chip-on: var(--ink); --chip-on-fg: #fff; }
.tryit-panel[data-role="agent"] { --bg: var(--red); }
.tryit-copy { position: relative; z-index: 2; }
.tryit-copy .display { font-size: clamp(44px, 5.6vw, 104px); }
.tryit-roles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(26px, 3vw, 44px); }
.tryit-roles button {
  all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border-radius: 999px;
  background: var(--chip); transition: background .35s, color .35s, transform .35s var(--ease);
}
.tryit-roles button:hover { transform: translateY(-2px); }
.tryit-roles button:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.tryit-roles img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; object-position: 50% 6%; background: rgba(255, 255, 255, .7); }
.tryit-roles span { display: grid; line-height: 1.1; }
.tryit-roles b { font: 800 18px/1.1 var(--display); letter-spacing: -.02em; }
.tryit-roles em { font-style: normal; font-size: 13px; opacity: .75; }
.tryit-roles button[aria-selected="true"] { background: var(--chip-on); color: var(--chip-on-fg); }
.tryit-stories { list-style: none; margin: clamp(20px, 2.4vw, 34px) 0 0; padding: 0; display: grid; gap: 8px; max-width: 460px; }
.tryit-stories button {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; border-radius: 18px; border: 1.5px solid color-mix(in srgb, currentColor 28%, transparent); font-size: 17px;
  transition: background .3s, border-color .3s;
}
.tryit-stories button::after { content: '▶'; font-size: 11px; opacity: .6; }
.tryit-stories button:hover { background: var(--chip); }
.tryit-stories button[aria-pressed="true"] { background: var(--chip-on); color: var(--chip-on-fg); border-color: transparent; }
.tryit-stories button[aria-pressed="true"]::after { content: '●'; opacity: 1; color: var(--red); }
.tryit-panel[data-role="agent"] .tryit-stories button[aria-pressed="true"]::after { color: var(--blue); }
.tryit-stories button:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
.tryit-stage { position: relative; display: grid; place-items: center; min-height: 0; }
.tryit-phone { --pw: min(22vw, 40svh, 400px); z-index: 1; cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Ccircle cx='28' cy='28' r='26' fill='%23fff' stroke='%23121212' stroke-opacity='.15' stroke-width='2'/%3E%3Crect x='20' y='18' width='5.5' height='20' rx='2' fill='%23121212'/%3E%3Crect x='30.5' y='18' width='5.5' height='20' rx='2' fill='%23121212'/%3E%3C/svg%3E") 28 28, pointer; }
.tryit-phone.paused { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Ccircle cx='28' cy='28' r='26' fill='%23fff' stroke='%23121212' stroke-opacity='.15' stroke-width='2'/%3E%3Cpath d='M23 17.5v21a1.5 1.5 0 0 0 2.3 1.3l16-10.5a1.5 1.5 0 0 0 0-2.6l-16-10.5A1.5 1.5 0 0 0 23 17.5z' fill='%23121212'/%3E%3C/svg%3E") 28 28, pointer; }
.tryit-phone:focus-visible { outline: 3px solid currentColor; outline-offset: 6px; }
/* paused: the screen dims under a big play button (also the cue on touch screens, which have no cursor) */
.ph-paused {
  position: absolute; z-index: 7; inset: 0; display: grid; place-items: center; background: rgba(18, 18, 18, .28);
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
.ph-paused::before {
  content: ''; width: 26%; aspect-ratio: 1; border-radius: 50%; background: #fff no-repeat 56% 50% / 42%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3.5v17a1.2 1.2 0 0 0 1.8 1l13.5-8.5a1.2 1.2 0 0 0 0-2L7.8 2.5A1.2 1.2 0 0 0 6 3.5z' fill='%23121212'/%3E%3C/svg%3E");
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); scale: .8; transition: scale .3s var(--ease);
}
.tryit-phone.paused .ph-paused { opacity: 1; }
.tryit-phone.paused .ph-paused::before { scale: 1; }
.tryit-char { position: absolute; z-index: 2; left: calc(50% - var(--pw-half, 11vw) - 18%); bottom: -6%; height: 58%; width: auto; max-width: none; pointer-events: none; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .3)); }
.tryit-say {
  position: absolute; z-index: 3; right: 0; bottom: 8%; max-width: 15em; margin: 0; padding: 14px 18px; border-radius: 18px 18px 4px 18px;
  background: #fff; color: var(--ink); font-weight: 700; font-size: clamp(14px, 1.05vw, 17px); line-height: 1.3; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45);
}
.tryit-say:empty { display: none; }
@media (max-width: 860px) {
  .tryit-panel { grid-template-columns: 1fr; padding: 28px 20px; }
  .tryit-phone { --pw: min(62vw, 300px); }
  .tryit-char { height: 40%; left: -4%; }
  .tryit-say { right: 0; bottom: 4%; max-width: 12em; }
  .tryit-stories { max-width: none; }
}
