.hero-chat {
  min-width: 0;
  padding: clamp(0.7rem, 1.65vw, 1.35rem);
  padding-bottom: 0.2rem;
  border: 1px solid #795a4770;
  border-radius: 0.9rem;
  background: #231a15f5;
  box-shadow: 0 1.2rem 3.2rem #0d080866;
}

.chat-visual {
  --handoff-delay: 4s;
  --ring-delay: calc(var(--handoff-delay) + 360ms);
  --action-delay: calc(var(--handoff-delay) + 1500ms);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #614638;
  font-size: 0.9rem;
  font-weight: 800;
}

.chat-header span {
  padding: 0.1rem 0.55rem;
  border: 1px solid #8d604b;
  border-radius: 1rem;
  color: #ffc2a8;
  font-size: 0.77rem;
}

.chat-messages {
  display: grid;
  gap: 0.45rem;
}

.chat-bubble {
  max-width: 88%;
  padding: 0.56rem 0.7rem;
  border-radius: 0.72rem;
  font-size: 0.92rem;
  line-height: 1.4;
}

.chat-guest {
  grid-column: 1;
  justify-self: end;
  border-bottom-right-radius: 0.22rem;
  color: var(--ink);
  background: #f4dbca;
}

.chat-agent,
.chat-forwarded,
.chat-final,
.chat-typing {
  grid-column: 1;
  justify-self: start;
  border-bottom-left-radius: 0.22rem;
  color: #fff1e7;
  background: #473228;
}

.chat-agent,
.chat-typing {
  grid-row: 2;
}

.chat-short-reply {
  display: none;
}

.chat-typing {
  align-self: start;
  display: flex;
  gap: 0.25rem;
  padding: 0.72rem 0.62rem;
  border-radius: 0.67rem 0.67rem 0.67rem 0.22rem;
  opacity: 0;
}

.chat-typing span {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 100%;
  background: #ffc2a8;
}

.chat-handoff {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.4rem;
  padding: 0.7rem;
  border: 1px solid #79543f;
  border-radius: 0.65rem;
  background: #302219;
}

.chat-bell {
  position: relative;
}

.chat-bell::before,
.chat-bell::after {
  position: absolute;
  inset: 0;
  border: 2px solid #ffab85;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  content: "";
}

.chat-bell-mark {
  position: relative;
  z-index: 1;
  width: 1.95rem;
  height: 1.95rem;
  transform-origin: 50% 27%;
}

.chat-bell .bell {
  font-size: 1.07rem;
}

.chat-admin {
  color: #dec7b7;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.24;
}

.chat-sticker {
  position: absolute;
  z-index: 1;
  inset-inline-end: 0.65rem;
  inset-block-end: calc(100% - 0.36rem);
  padding: 0.14rem 0.36rem;
  border: 2px solid #ffc2a8;
  border-radius: 0.4rem;
  color: var(--ink);
  background: var(--accent);
  box-shadow: 0 0.15rem 0.65rem #ff845b65;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.075em;
  transform: rotate(-8deg);
}

.chat-booking {
  min-width: 0;
}

.chat-booking-summary {
  color: var(--white);
  font-size: 0.82rem;
  line-height: 1.35;
}

.chat-statuses {
  display: grid;
  margin-top: 0.3rem;
}

.chat-status {
  grid-area: 1 / 1;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.22;
}

/* Without animation the card shows its final state: confirmed. */
.chat-status-sent {
  color: #ffd9c6;
  opacity: 0;
}

.chat-approved {
  color: #d9f0cb;
}

.chat-approval {
  position: relative;
  display: grid;
  align-items: center;
  justify-items: center;
}

.chat-approval > .chat-approve {
  grid-area: 1 / 1;
  padding: 0.38rem 0.45rem;
  border-radius: 0.35rem;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.25;
}

.chat-approve {
  color: var(--ink);
  background: var(--accent);
  opacity: 0;
}

.chat-cursor,
.chat-touch {
  position: absolute;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}

.chat-cursor {
  inset-inline-start: 48%;
  inset-block-start: 34%;
  width: 1.6rem;
  height: 1.8rem;
}

.chat-touch {
  display: none;
  inset-inline-start: 55%;
  inset-block-start: 50%;
  width: 1.8rem;
  height: 1.8rem;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: #fff1e748;
  box-shadow: 0 0.08rem 0.35rem #1b151166;
}

@media (max-width: 680px), (pointer: coarse) {
  .chat-cursor { display: none; }
  .chat-touch { display: block; }
}

.chat-final {
  width: fit-content;
  margin-top: 0.48rem;
}

.chat-controls {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 0.3rem;
  min-height: 2.75rem;
}

.chat-sound {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2.75rem;
  padding-inline: 0.3rem;
  color: #f2e5d8;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.chat-sound input {
  width: 0.9rem;
  height: 0.9rem;
  margin: 0;
  accent-color: var(--accent);
  cursor: inherit;
}

.chat-replay {
  min-height: 2.75rem;
  padding: 0.3rem 0.7rem;
  color: #ffc2a8;
  background: transparent;
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 0.22rem;
}

.is-playing .chat-request {
  animation: chat-appear 300ms var(--ease-out) 120ms both;
}

.is-playing .chat-typing {
  animation: chat-typing 870ms ease 520ms both;
}

.is-playing .chat-typing span {
  animation: chat-dot 540ms ease 620ms both;
}

.is-playing .chat-typing span:nth-child(2) {
  animation-delay: 730ms;
}

.is-playing .chat-typing span:nth-child(3) {
  animation-delay: 840ms;
}

.is-playing .chat-agent {
  animation: chat-appear 320ms var(--ease-out) 1420ms both;
}

.is-playing .chat-reply {
  animation: chat-appear 310ms var(--ease-out) 2570ms both;
}

.is-playing .chat-forwarded {
  animation: chat-appear 300ms var(--ease-out) 3100ms both;
}

.is-playing .chat-handoff {
  animation: chat-deliver 410ms var(--ease-out) var(--handoff-delay) both;
}

.is-playing .chat-bell-mark {
  animation: bell-ring 740ms ease var(--ring-delay) both;
}

.is-playing .chat-bell::before {
  animation: chat-ring-wave 600ms linear var(--ring-delay) both;
}

.is-playing .chat-bell::after {
  animation: chat-ring-wave 600ms linear calc(var(--ring-delay) + 120ms) both;
}

.is-playing .chat-sticker {
  animation: chat-sticker-pop 430ms var(--ease-out) var(--ring-delay) both;
}

.is-playing .chat-approve {
  animation: chat-press 900ms linear var(--action-delay) both;
}

.is-playing .chat-cursor {
  animation: chat-cursor-press 900ms var(--ease-out) var(--action-delay) both;
}

.is-playing .chat-touch {
  animation: chat-touch-press 900ms var(--ease-out) var(--action-delay) both;
}

.is-playing .chat-status-sent {
  animation:
    chat-appear 300ms var(--ease-out) calc(var(--handoff-delay) + 450ms) both,
    chat-vanish 1ms linear calc(var(--action-delay) + 900ms) forwards;
}

.is-playing .chat-approved {
  animation: chat-appear 240ms var(--ease-out) calc(var(--action-delay) + 900ms) both;
}

.is-playing .chat-final {
  animation: chat-appear 280ms var(--ease-out) calc(var(--action-delay) + 1190ms) both;
}

@keyframes chat-appear {
  from { opacity: 0; transform: translateY(0.25rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes chat-vanish {
  to { opacity: 0; }
}

@keyframes chat-typing {
  0%, 100% { opacity: 0; }
  18%, 78% { opacity: 1; }
}

@keyframes chat-dot {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-0.17rem); }
}

@keyframes chat-deliver {
  from { opacity: 0; transform: translateY(0.95rem) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes chat-sticker-pop {
  from { opacity: 0; transform: translateY(-0.32rem) rotate(-13deg) scale(1.13); }
  56% { opacity: 1; transform: rotate(-8deg) scale(0.96); }
  to { opacity: 1; transform: rotate(-8deg); }
}

@keyframes chat-ring-wave {
  from { opacity: 0; transform: scale(0.75); }
  26% { opacity: 0.76; transform: scale(1.17); }
  to { opacity: 0; transform: scale(2); }
}

@keyframes chat-press {
  0%, 65% { opacity: 1; transform: scale(1); }
  76% { opacity: 1; transform: scale(0.94); }
  87% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}

@keyframes chat-cursor-press {
  0% { opacity: 0; transform: translate(1.45rem, 0.82rem); }
  15% { opacity: 1; transform: translate(1.2rem, 0.64rem); }
  65% { opacity: 1; transform: translate(0, 0) scale(1); }
  76% { opacity: 1; transform: translateY(0.1rem) scale(0.93); }
  100% { opacity: 0; transform: translate(0.15rem, 0.22rem) scale(1); }
}

@keyframes chat-touch-press {
  0%, 58% { opacity: 0; transform: translate(-50%, -50%) scale(0.45); }
  76% { opacity: 1; transform: translate(-50%, -50%) scale(0.81); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.4); }
}

.work-console {
  overflow: hidden;
  border: 1px solid #4d3a2e;
  border-radius: 1rem;
  background: var(--dark);
  color: var(--white);
}

.console-top,
.console-tabs {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-inline: clamp(0.95rem, 3vw, 2rem);
}

.console-top {
  justify-content: space-between;
  padding-block: 0.85rem;
  border-bottom: 1px solid #4e3b30;
  font-size: 0.87rem;
  font-weight: 600;
}

.console-top > span {
  color: var(--light-muted);
  font-size: 0.81rem;
  text-align: right;
}

.console-light {
  display: inline-block;
  margin-right: 0.23rem;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 0.11rem;
}

.console-tabs {
  flex-wrap: wrap;
  gap: 0.35rem;
  padding-block: 0.68rem;
}

.console-tabs button {
  min-height: 2.55rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  background: transparent;
  color: var(--light-muted);
  font-size: 0.91rem;
  font-weight: 800;
}

.console-tabs button:hover {
  background: #3a2b22;
  color: var(--white);
}

.console-tabs button[aria-pressed="true"] {
  border-color: #80553e;
  background: #432f24;
  color: #ffb79d;
}

.work-console :focus-visible {
  outline-color: var(--accent);
}

.console-main {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(0, 0.94fr);
  gap: 0.8rem;
  padding: 0 0.72rem 0.72rem;
}

.console-detail,
.console-outcome {
  min-width: 0;
  min-height: 19rem;
  padding: clamp(1.1rem, 3.5vw, 2rem);
  border-radius: 0.62rem;
}

.console-detail {
  background: #f8f0e4;
  color: var(--ink);
}

.console-detail h3 {
  font-size: clamp(1.52rem, 3.5vw, 2.65rem);
  line-height: 1.03;
  letter-spacing: -0.055em;
  font-weight: 800;
}

.console-detail > p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.work-rows {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.work-rows li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.62rem;
  padding-block: 0.55rem;
  border-top: 1px solid #ddd0bf;
}

.work-rows li strong {
  display: block;
  line-height: 1.25;
  font-weight: 800;
}

.work-rows li p {
  margin-top: 0.16rem;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.36;
}

.work-rows li > span {
  max-width: 10.5rem;
  min-width: 0;
  padding: 0.24rem 0.48rem;
  border-radius: 0.35rem;
  background: #f0dfd1;
  color: #79432e;
  text-align: right;
  white-space: normal;
  font-size: 0.83rem;
  font-weight: 800;
  line-height: 1.23;
}

.console-outcome {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  gap: 0.9rem;
  border: 1px solid #674a38;
  background: #302319;
}

.console-status {
  color: #ffae90;
  font-size: 0.85rem;
  font-weight: 800;
}

#work-result {
  max-width: 31ch;
  color: #f5e6d6;
  font-size: clamp(1rem, 1.6vw, 1.19rem);
}

.console-main[data-state="complete"] .console-outcome {
  border-color: #a56c50;
}

.work-action {
  min-height: 2.65rem;
  padding: 0.52rem 0.86rem;
  font-size: 0.9rem;
}

.console-link,
.reference-links a,
.market-figure a,
.case-item a {
  font-size: 0.91rem;
  font-weight: 800;
  text-underline-offset: 0.26em;
}

.console-link {
  color: #ffb79d;
}

.packages {
  background: #eee6d9;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #cec0ad;
  border-radius: 0.85rem;
  background: var(--white);
}

.package {
  padding: clamp(1.15rem, 2.65vw, 1.85rem);
}

.package + .package {
  border-left: 1px solid #d6c8b6;
}

.package-feature {
  background: #fce8db;
}

.package-scope {
  color: var(--accent-ink);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.052em;
  text-transform: uppercase;
}

.package h3 {
  margin-top: 0.68rem;
  font-size: clamp(1.86rem, 3.75vw, 3.05rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.072em;
}

.package h3 + p {
  min-height: 3.2rem;
  margin-block: 0.78rem 1rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.package ul {
  margin: 0;
  padding: 0;
  border-top: 1px solid #d6c8b6;
  list-style: none;
}

.package li {
  position: relative;
  padding: 0.62rem 0 0.62rem 0.92rem;
  font-size: 0.94rem;
  line-height: 1.4;
}

.package li::before {
  position: absolute;
  top: 1.02rem;
  left: 0;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--accent-ink);
  content: "";
}

.package-footer,
.reference-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
  margin-top: 1.25rem;
}

.package-footer p {
  max-width: 35rem;
  color: var(--muted);
}

.catalog-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr);
  gap: clamp(1.5rem, 7vw, 5.8rem);
}

#catalog-title {
  overflow-wrap: anywhere;
}

@media (min-width: 741px) {
  .catalog-intro {
    container-type: inline-size;
  }

  #catalog-title {
    font-size: clamp(1.875rem, 16cqi, 4rem);
  }
}

.catalog-list summary {
  font-size: clamp(1.13rem, 2.3vw, 1.47rem);
  letter-spacing: -0.028em;
}

.module-list {
  margin: 0;
  padding: 0.15rem 1.2rem 0.3rem 1.1rem;
  color: var(--muted);
}

.module-list li + li {
  margin-top: 0.55rem;
}

.module-list strong {
  color: var(--ink);
  font-weight: 800;
}

.catalog-list p.module-metric {
  padding-bottom: 1rem;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--accent-ink);
}

#systems .pilot-steps li {
  margin-left: 0;
  padding-left: 1rem;
}

#systems .pilot-steps li::before {
  display: none;
}

.reference-links {
  justify-content: start;
}

.reference-links a {
  color: var(--accent-ink);
}

.market-figure {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(1.35rem, 5.5vw, 4rem);
  margin-block: 0.25rem 1.3rem;
  padding: clamp(1.15rem, 3vw, 2.25rem);
  border: 1px solid #d0bead;
  border-radius: 0.8rem;
  background: var(--white);
}

.market-figure figcaption strong {
  display: block;
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.2;
}

.market-figure figcaption p {
  margin-block: 0.55rem;
  color: var(--muted);
}

.market-figure a,
.case-item a {
  color: var(--accent-ink);
}

.market-bar + .market-bar {
  margin-top: 0.8rem;
}

.market-bar > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.26rem;
  font-size: 0.94rem;
}

.market-bar strong {
  font-variant-numeric: tabular-nums;
}

.market-track {
  height: 0.47rem;
  overflow: hidden;
  border-radius: 0.2rem;
  background: #e7d8c9;
}

.market-track > span {
  display: block;
  width: var(--market-share);
  height: 100%;
  border-radius: inherit;
  background: #ac4b2f;
}

.market-takeaways {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.05rem 1.65rem;
  margin: 0 0 2.1rem;
  padding: 0;
  list-style: none;
}

.market-takeaways strong {
  color: var(--ink);
  font-weight: 800;
}

.market-takeaways p {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.case-list {
  border-top: 1px solid var(--line);
}

.case-item {
  display: grid;
  grid-template-columns: minmax(8.3rem, 0.55fr) minmax(0, 2.35fr) minmax(6.8rem, 0.15fr);
  gap: 0.8rem 1.6rem;
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.case-number {
  position: relative;
  color: var(--accent-ink);
  font-size: clamp(1.55rem, 3.1vw, 2.5rem);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1.04;
}

.case-number.is-counting > span:first-child {
  opacity: 0;
}

.case-number-animation {
  position: absolute;
  inset: 0;
}

.case-item h3 {
  margin-bottom: 0.23rem;
  font-size: 1.12rem;
  letter-spacing: -0.022em;
}

.case-item div p {
  color: var(--muted);
}

.case-item a {
  justify-self: end;
}

.portfolio,
.team {
  background: var(--white);
}

.portfolio .section-heading {
  align-items: center;
  margin-bottom: 0;
}

.team {
  --team-columns: minmax(0, 1fr) minmax(0, 1.85fr);
  --team-gap: clamp(1.35rem, 4vw, 4rem);
  --team-padding: clamp(1.15rem, 3.2vw, 2.8rem);
  padding-block: clamp(3.55rem, 6.65vw, 6rem);
}

.team-heading,
.team-member {
  display: grid;
  grid-template-columns: var(--team-columns);
  gap: var(--team-gap);
  padding-inline: var(--team-padding);
}

.team-heading {
  align-items: end;
  margin-bottom: clamp(1.4rem, 3.5vw, 2.65rem);
}

.team-heading .section-lead {
  margin-top: 0;
  max-width: 36rem;
}

.team-profiles {
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: var(--paper);
}

.team-member {
  align-items: start;
  padding-block: clamp(1.3rem, 3.15vw, 2.8rem);
}

.team-member + .team-member {
  border-top: 1px solid var(--line);
}

.team-member h3 {
  font-size: clamp(1.55rem, 2.9vw, 2.45rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.team-role {
  margin-top: 0.52rem;
  color: var(--accent-ink);
  font-size: 0.95rem;
  font-weight: 800;
}

.team-bio {
  max-width: 66ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

ul.team-bio {
  padding-inline-start: 1.18rem;
}

.team-bio li + li {
  margin-top: 0.58rem;
}

.team-bio li::marker {
  color: var(--accent-ink);
}

.team-member a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: 0.55rem;
  color: var(--accent-ink);
  font-weight: 800;
  text-underline-offset: 0.25em;
}

.process-control {
  display: grid;
  gap: 0.38rem;
  margin-bottom: 1.15rem;
  font-size: 0.94rem;
}

.process-control select {
  width: 100%;
  padding: 0.55rem 2.55rem 0.55rem 0.8rem;
  border: 1px solid #866b58;
  border-radius: 0.45rem;
  color: var(--white);
  background: #2d2018;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 740px) {
  .team {
    --team-columns: minmax(0, 1fr);
    --team-gap: 0.95rem;
  }

  .team-heading {
    padding-inline: 0;
  }

  .catalog-grid,
  .market-figure,
  .market-takeaways,
  .console-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .console-detail,
  .console-outcome {
    min-height: 0;
  }

  .case-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .case-item div {
    grid-row: 2;
    grid-column: 1 / -1;
  }

  .case-item a {
    grid-row: 1;
    grid-column: 2;
  }
}

@media (max-width: 680px) {
  .hero-chat {
    position: relative;
    padding-bottom: 0.65rem;
  }

  .chat-header {
    justify-content: start;
    min-height: 1.9rem;
    margin-bottom: 0.38rem;
    padding-bottom: 0.45rem;
    padding-inline-end: 10rem;
    font-size: 0.83rem;
  }

  .chat-header p {
    display: none;
  }

  .chat-controls {
    position: absolute;
    inset-block-start: 0;
    inset-inline-end: 0.25rem;
  }

  .chat-messages {
    gap: 0.24rem;
  }

  .chat-bubble {
    max-width: 92%;
    padding: 0.27rem 0.56rem;
    font-size: 0.84rem;
  }

  .chat-full-reply {
    display: none;
  }

  .chat-short-reply {
    display: inline;
  }

  .chat-forwarded,
  .chat-final {
    max-width: 100%;
  }

  .chat-handoff {
    gap: 0.45rem;
    margin-top: 2.15rem;
    padding: 0.52rem;
  }

  .chat-admin,
  .chat-booking-summary,
  .chat-approval > .chat-approve {
    font-size: 0.73rem;
  }

  .chat-status {
    font-size: 0.88rem;
  }

  .chat-sticker {
    inset-inline-end: 0.48rem;
    padding: 0.1rem 0.3rem;
    font-size: 0.95rem;
  }

  .chat-final {
    margin-top: 0.32rem;
    padding-inline: 0.35rem;
    text-wrap: pretty;
  }

  .package-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .package + .package {
    border-top: 1px solid #d6c8b6;
    border-left: 0;
  }

  .package h3 + p {
    min-height: 0;
  }
}

@media (max-width: 680px) and (max-height: 720px) {
  .hero-inner {
    gap: 0.62rem;
    padding-block: 0.66rem 0.68rem;
  }

  .chat-reply,
  .chat-forwarded {
    grid-row: 3;
  }

  .chat-reply {
    align-self: center;
    opacity: 0;
  }

  .is-playing .chat-reply {
    animation: chat-compact-reply 530ms var(--ease-out) 2570ms both;
  }
}

@keyframes chat-compact-reply {
  from { opacity: 0; transform: translateY(0.25rem); }
  21%, 82% { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(0); }
}

@media (max-width: 530px) {
  .console-top {
    gap: 0.48rem;
  }

  .console-tabs button {
    padding-inline: 0.6rem;
  }

  .work-rows li {
    align-items: start;
  }

  .work-rows li > span {
    max-width: 7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-controls {
    display: none;
  }

  .hero-chat {
    padding-bottom: clamp(0.7rem, 1.65vw, 1.35rem);
  }
}
