.idea {
  --line: #c7bd9f;
  --gold: #816331;
  max-inline-size: 1430px;
  margin-inline: auto;
  padding: clamp(55px, 8.3vw, 118px) clamp(22px, 6vw, 88px) clamp(58px, 8vw, 116px);
}

.idea h2 {
  font: 400 clamp(2.5rem, 4.75vw, 4.7rem)/0.97 var(--serif);
  letter-spacing: -0.037em;
  text-wrap: balance;
}

.idea-opening {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  align-items: end;
  gap: 20px clamp(26px, 6vw, 110px);
  margin-block-end: clamp(27px, 4vw, 50px);
}

.idea .eyebrow { margin-block-end: 16px; color: var(--gold); } /* taste-skill-ignore: supplied eyebrow */
.idea-opening > p, .evolution-opening > p, .idea-close > p:last-child {
  max-inline-size: 38ch;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.55;
  color: var(--muted-ink);
  text-wrap: pretty;
}

.idea-opening > p { padding-block-end: 4px; }
.idea-evolution {
  margin-block-start: clamp(52px, 7.6vw, 105px);
  padding-block-start: clamp(38px, 5.5vw, 72px);
  border-block-start: 1px solid var(--line);
}

.evolution-opening {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  align-items: end;
  gap: 15px clamp(26px, 6vw, 110px);
  margin-block-end: clamp(24px, 3.2vw, 43px);
}
.evolution-opening h2 { font-size: clamp(2.35rem, 4.08vw, 3.95rem); }

.illustrated-stories {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.9fr;
  align-items: start;
  gap: clamp(13px, 2vw, 28px);
}
.illustrated-stories figure:first-child { padding-block-start: 0; }
.illustrated-stories figure:nth-child(2) { padding-block-start: 19px; }
.illustrated-stories figure:nth-child(3) { padding-block-start: 38px; }

.illustrated-stories img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.4;
  object-fit: cover;
  border-radius: 3px;
}
.illustrated-stories figcaption {
  padding-block-start: 7px;
  font: 400 clamp(1.35rem, 2.35vw, 2.08rem)/1.05 var(--serif);
  letter-spacing: -0.024em;
  text-wrap: balance;
}

.idea-close {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 14px clamp(26px, 6vw, 110px);
  align-items: center;
  margin-block-start: clamp(39px, 5.6vw, 76px);
  padding-block-start: clamp(22px, 3.2vw, 38px);
  border-block-start: 1px solid var(--line);
}
.closing-line { font: 400 clamp(2.4rem, 4.15vw, 4.05rem)/1 var(--serif); letter-spacing: -0.035em; }
.closing-line strong { font-weight: 400; }

@media (max-width: 820px) {
  .desktop-break { display: none; }
  .idea-opening, .evolution-opening, .idea-close { grid-template-columns: minmax(0,1fr); }
  .idea h2 { text-wrap: pretty; }
  .idea-opening > p, .evolution-opening > p, .idea-close > p:last-child { max-inline-size: 52ch; }
}
@media (max-width: 560px) {
  .illustrated-stories { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .illustrated-stories figure:first-child { grid-column: 1 / -1; }
  .illustrated-stories figure:first-child img { aspect-ratio: 1.68; }
  .illustrated-stories figure:nth-child(n) { padding-block-start: 0; }
}

.rhythms {
  --rhythm-plum: #465aa4;
  --rhythm-chat-ink: #252b38;
}

.rhythm-stage {
  display: grid;
  grid-template: "chat scene" minmax(0, 1fr) / 33% minmax(0, 1fr);
  isolation: isolate;
  position: relative;
  min-block-size: clamp(415px, 40vw, 540px);
}

.rhythm-label {
  margin: 0 0 9px;
  color: #755322;
  font-size: .8125rem;
  line-height: 1.3;
  font-weight: 720;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.rhythm-chat {
  grid-area: chat;
  z-index: 2;
  align-self: center;
  inline-size: min(128%, 463px);
  margin-inline-start: clamp(10px, 2.15vw, 32px);
  padding-block: 0;
  min-inline-size: 0;
}

.rhythm-window {
  overflow: hidden;
  border: 1px solid #aeb8c9;
  border-radius: 13px;
  color: var(--rhythm-chat-ink);
  background: #fcfdff;
  box-shadow: 0 17px 34px -21px #25384b99, 0 4px 9px #23354d16;
  font-size: .8125rem;
  line-height: 1.32;
}

.rhythm-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  min-block-size: 42px;
  padding: 9px 13px;
  border-block-end: 1px solid #e2e6ee;
  background: #f4f6fb;
}

.rhythm-window-header strong { font-size: .875rem; }
.rhythm-count {
  border-radius: 20px;
  padding: 3px 9px;
  color: #354783;
  background: #e1e8ff;
  font-size: .75rem;
  font-weight: 700;
}

.rhythm-workspace {
  display: grid;
  grid-template-columns: 35% minmax(0, 1fr);
}

.rhythm-inbox {
  list-style: none;
  padding: 10px 0;
  margin: 0;
  background: #f4f5fa;
  border-inline-end: 1px solid #e2e6ee;
}
.rhythm-thread {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  min-block-size: 43px;
  gap: 6px;
  padding: 7px 7px 7px 9px;
}
.rhythm-current { background: #e8edfd; }
.rhythm-thread strong, .rhythm-thread small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .75rem;
}
.rhythm-thread small { color: #505a70; font-size: .6875rem; }
.rhythm-avatar, .rhythm-unread {
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: .625rem;
  font-weight: 750;
}
.rhythm-avatar { inline-size: 24px; aspect-ratio: 1; background: #e0e3fa; color: #3e4b80; }
.rhythm-thread:nth-child(2) .rhythm-avatar { background: #dce9e1; color: #295542; }
.rhythm-thread:nth-child(3) .rhythm-avatar { background: #eddfe8; color: #713858; }
.rhythm-unread { inline-size: 16px; aspect-ratio: 1; color: white; background: var(--rhythm-plum); }

.rhythm-dialogue {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-block-size: 232px;
  padding: 11px 12px 10px;
  min-inline-size: 0;
}
.rhythm-dialogue-header {
  display: flex;
  justify-content: space-between;
  padding-block-end: 6px;
  border-block-end: 1px solid #e8eaf0;
}
.rhythm-dialogue-header span { color: #425c4c; font-size: .6875rem; }
.rhythm-bubble {
  inline-size: fit-content;
  max-inline-size: 100%;
  padding: 5px 8px;
  border-radius: 8px 8px 8px 3px;
  background: #eceff5;
  font-size: .75rem;
}
.rhythm-sent { align-self: end; text-align: end; }
.rhythm-sent small { color: #505d79; font-size: .65625rem; }
.rhythm-outgoing {
  border-radius: 8px 8px 3px 8px;
  background: var(--rhythm-plum);
  color: white;
}
.rhythm-typing { display: flex; gap: 4px; padding: 8px 10px; }
.rhythm-typing span { inline-size: 4px; block-size: 4px; border-radius: 50%; background: #5e6888; }
.rhythm-notice {
  margin-block-start: auto;
  padding: 6px 7px;
  border-radius: 4px;
  color: #384569;
  background: #edf0fa;
  font-size: .6875rem;
}
.rhythms [hidden] { display: none !important; }

.rhythm-chat figcaption, .rhythm-feedback {
  color: var(--muted-ink);
  font-size: .875rem;
  line-height: 1.45;
}
.rhythm-chat figcaption, .rhythm-feedback { margin-block-start: 10px; }

.rhythm-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  min-block-size: 44px;
  margin-block-start: 5px;
}
.rhythm-control {
  min-block-size: 44px;
  padding: 4px 0;
  margin-inline-start: auto;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 600 .8125rem/1.35 var(--sans);
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}
.rhythm-control:hover { text-decoration-thickness: 2px; }
.rhythm-control:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.rhythm-landscape {
  position: absolute;
  inset: 0 0 0 28%;
  z-index: 0;
  margin: 0;
}
.rhythm-landscape h3, .rhythm-landscape figcaption {
  position: absolute;
  z-index: 2;
  inset-inline-end: 17px;
  padding: 6px 9px;
  border-radius: 4px;
  background: #18382cf2;
  color: #fff5df;
}
.rhythm-landscape h3 { inset-block-start: 17px; }
.rhythm-landscape figcaption { inset-block-end: 15px; font-size: .8125rem; }
.rhythm-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 46% 6px 6px 34% / 63% 6px 6px 37%;
  background: #596546;
}
.rhythm-still, .rhythm-film {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: 74% 52%;
}
.rhythm-film { opacity: 0; pointer-events: none; }
.rhythms[data-film-visible] .rhythm-film { opacity: 1; }

.rhythm-announce {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  .rhythm-typing span { animation: rhythm-dot .85s 2 both; }
  .rhythm-typing span:nth-child(2) { animation-delay: .1s; }
  .rhythm-typing span:nth-child(3) { animation-delay: .2s; }
  .rhythms:not([data-playback="playing"]) .rhythm-typing span,
  .rhythms[data-buffering] .rhythm-typing span { animation-play-state: paused; }
  @keyframes rhythm-dot { 0%, 70%, 100% { opacity: .45; } 36% { opacity: 1; } }
}

@media (max-width: 1000px) {
  .rhythm-stage { grid-template-columns: 38% minmax(0, 1fr); }
  .rhythm-landscape { inset-inline-start: 31%; }
  .rhythm-chat { inline-size: min(116%, 425px); }
  .rhythm-thread { grid-template-columns: 20px minmax(0, 1fr) auto; gap: 4px; padding-inline: 5px; }
  .rhythm-avatar { inline-size: 20px; }
}

@media (max-width: 680px) {
  .rhythm-stage {
    display: flex;
    flex-direction: column;
    min-block-size: 0;
    gap: 12px;
  }
  .rhythm-chat {
    inline-size: auto;
    align-self: stretch;
    margin: 2px 4px -13px;
    padding: 0;
  }
  .rhythm-window { border-radius: 10px; }
  .rhythm-window-header { padding: 7px 10px; min-block-size: 34px; }
  .rhythm-dialogue { min-block-size: 197px; padding: 9px 7px 7px; gap: 6px; }
  .rhythm-thread { min-block-size: 38px; }
  .rhythm-chat figcaption { margin-block-start: 6px; font-size: .75rem; }
  .rhythm-footer { justify-content: flex-start; }
  .rhythm-control { margin-inline-start: 0; }
  .rhythm-landscape {
    position: relative;
    inset: auto;
    min-block-size: 0;
    margin-inline: calc(-1 * clamp(22px, 6vw, 88px));
    aspect-ratio: 1.54;
  }
  .rhythm-scene { border-radius: 50% 50% 0 0 / 19% 19% 0 0; }
  .rhythm-landscape h3, .rhythm-landscape figcaption { inset-inline-end: 9px; font-size: .6875rem; }
  .rhythm-landscape h3 { inset-block-start: 12px; }
  .rhythm-landscape figcaption { inset-block-end: 8px; }
  .rhythm-still, .rhythm-film { object-position: 84% 52%; }
}
