/* Humanlike Chat model page. Loads after home.css and reuses its chrome
 * (header, footer, buttons, bands, FAQ). Token names come from ani-tokens.css. */

.m-eyebrow {
  margin-bottom: 18px;
  color: var(--ani-menu-accent);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.hero-grid.m-hero {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
  padding-top: 24px;
}

.m-hero-copy {
  position: sticky;
  top: 108px;
}

.m-hero h1 {
  max-width: 13ch;
}

.m-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 22px;
}

.m-tag {
  padding: 5px 11px;
  border: 1px solid var(--ani-line);
  border-radius: var(--ani-radius-pill);
  color: var(--ani-muted);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
}

/* Side-by-side comparison */

.m-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border: 1px solid var(--ani-line);
  border-radius: var(--ani-radius-panel);
  background: var(--ani-panel);
  overflow: hidden;
}

.m-compare-prompt {
  grid-column: 1 / -1;
  padding: 18px 22px;
  border-bottom: 1px solid var(--ani-line);
}

.m-compare-prompt .k {
  margin-bottom: 8px;
}

.m-compare-prompt .v {
  font-size: 15px;
}

.m-col {
  padding: 18px 22px 22px;
}

.m-col + .m-col {
  border-left: 1px solid var(--ani-line);
}

.m-col-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ani-line);
  color: var(--ani-muted);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.m-col-ours .m-col-head {
  color: var(--ani-progress);
}

.m-turn {
  margin: 0;
  color: var(--ani-text);
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-line;
}

.m-col-base .m-turn {
  color: var(--ani-muted);
}

.m-col-base .m-turn em {
  font-style: italic;
}

.m-fade {
  position: relative;
  max-height: 210px;
  overflow: hidden;
}

.m-fade::after {
  position: absolute;
  inset: auto 0 0;
  height: 72px;
  background: linear-gradient(to bottom, transparent, var(--ani-panel));
  content: "";
}

.m-compare figcaption {
  grid-column: 1 / -1;
  padding: 14px 22px;
  border-top: 1px solid var(--ani-line);
  color: var(--ani-muted);
  font-size: 12px;
}

.m-compare-thread .m-compare-prompt {
  padding: 10px 16px;
}

.m-compare-thread .m-compare-prompt .k {
  margin: 0;
}

.m-lane-heads {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.m-lane-heads .m-col-head {
  margin: 0;
  padding: 8px 16px;
  border-bottom: 1px solid var(--ani-line);
}

.m-lane-heads .m-col-head:last-child {
  border-left: 1px solid var(--ani-line);
  color: var(--ani-progress);
}

.m-beat {
  display: contents;
}

.m-beat-human {
  grid-column: 1 / -1;
  margin: 0;
  padding: 7px 16px 3px;
  border-top: 1px solid var(--ani-line);
  background: var(--ani-hover);
  color: var(--ani-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.m-lane-heads + .m-beat .m-beat-human {
  border-top: 0;
}

.m-compare-thread .m-col {
  padding: 8px 16px 10px;
}

.m-compare-thread .m-col + .m-col {
  border-left: 0;
}

.m-compare-thread .m-col-ours {
  border-left: 1px solid var(--ani-line);
}

.m-compare-thread .m-turn {
  font-size: 13px;
  line-height: 1.4;
}

.m-compare-thread figcaption {
  padding: 8px 16px;
}

/* Traction figures */

.m-figs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 32px 0 0;
  padding: 0;
  border-top: 1px solid var(--ani-line);
  border-bottom: 1px solid var(--ani-line);
  list-style: none;
}

.m-figs li {
  padding: 24px 24px 24px 0;
}

.m-figs li + li {
  padding-left: 24px;
  border-left: 1px solid var(--ani-line);
}

.m-fig {
  display: block;
  color: var(--ani-text);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: clamp(26px, 3vw, 34px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.m-fig-label {
  display: block;
  margin-top: 10px;
  color: var(--ani-muted);
  font-size: 13px;
}

/* Quote cards live in the showcase section below. */

/* Generic two-column card grids */

.m-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.m-card {
  padding: 20px;
  border: 1px solid var(--ani-line);
  border-radius: var(--ani-radius-field);
  background: var(--ani-panel);
}

.m-card h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.m-card p {
  margin-top: 8px;
  color: var(--ani-muted);
  font-size: 14px;
}

/* Measured results table */

.m-table {
  width: 100%;
  margin-top: 32px;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.m-table caption {
  margin-bottom: 16px;
  color: var(--ani-muted);
  font-size: 13px;
  text-align: left;
}

.m-table th,
.m-table td {
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--ani-line);
  vertical-align: top;
}

.m-table thead th {
  border-bottom-color: var(--ani-control-border);
  color: var(--ani-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.m-table tbody th {
  font-weight: 500;
}

.m-table td {
  color: var(--ani-muted);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

.m-table .m-num-ours {
  color: var(--ani-progress);
}

.m-table .m-num-down {
  color: var(--ani-error-text);
}

/* Lineage chain */

.m-lineage {
  display: grid;
  gap: 0;
  margin: 32px 0 0;
  padding: 0;
  counter-reset: link;
  list-style: none;
}

.m-lineage li {
  position: relative;
  padding: 0 0 22px 32px;
  counter-increment: link;
}

.m-lineage li::before {
  position: absolute;
  top: 7px;
  left: 0;
  width: 9px;
  height: 9px;
  border: 1px solid var(--ani-control-border-hover);
  border-radius: 50%;
  background: var(--ani-canvas);
  content: "";
}

.m-lineage li:last-child::before {
  border-color: var(--ani-progress);
  background: var(--ani-progress);
}

.m-lineage li:not(:last-child)::after {
  position: absolute;
  top: 18px;
  bottom: 0;
  left: 4px;
  width: 1px;
  background: var(--ani-line);
  content: "";
}

.m-lineage li:last-child {
  padding-bottom: 0;
}

.m-lineage code {
  color: var(--ani-text);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 13px;
}

.m-lineage span {
  display: block;
  margin-top: 4px;
  color: var(--ani-muted);
  font-size: 13px;
}

/* Specification list */

.m-spec {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: 0;
  margin: 32px 0 0;
  border-top: 1px solid var(--ani-line);
}

.m-spec dt {
  padding: 13px 16px 13px 0;
  border-bottom: 1px solid var(--ani-line);
  color: var(--ani-muted);
  font-size: 13px;
}

.m-spec dd {
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px solid var(--ani-line);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* Plain bordered lists (limitations, behaviour traits) */

.m-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.m-list li {
  padding: 14px 0;
  border-top: 1px solid var(--ani-line);
  color: var(--ani-muted);
  font-size: 14px;
  max-width: 76ch;
}

.m-list li:last-child {
  border-bottom: 1px solid var(--ani-line);
}

.m-list strong {
  color: var(--ani-text);
  font-weight: 500;
}

/* Code block */

.m-code {
  margin: 24px 0 0;
  padding: 16px 18px;
  overflow-x: auto;
  border: 1px solid var(--ani-line);
  border-radius: var(--ani-radius-field);
  background: var(--ani-panel);
  color: var(--ani-text);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.6;
}

.m-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.m-aside {
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid var(--ani-line);
  border-left: 2px solid var(--ani-progress);
  border-radius: 0 var(--ani-radius-field) var(--ani-radius-field) 0;
  background: color-mix(in srgb, var(--ani-progress) 5%, transparent);
  color: var(--ani-muted);
  font-size: 14px;
  max-width: 72ch;
}

.m-aside strong {
  color: var(--ani-text);
  font-weight: 500;
}

/* Homepage enterprise band */

.m-uses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0 32px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.m-uses li {
  padding: 14px 0;
  border-top: 1px solid var(--ani-line);
  color: var(--ani-muted);
  font-size: 14px;
}

.m-uses strong {
  display: block;
  color: var(--ani-text);
  font-weight: 500;
}

@media (max-width: 1023px) {
  .hero-grid.m-hero {
    grid-template-columns: 1fr;
  }

  .m-hero-copy {
    position: static;
  }

  .m-hero h1 {
    max-width: none;
  }

  .m-figs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .m-figs li {
    padding: 20px 16px 20px 0;
  }

  .m-figs li:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .m-figs li:nth-child(even) {
    padding-left: 20px;
    border-left: 1px solid var(--ani-line);
  }

  .m-figs li:nth-child(n + 3) {
    border-top: 1px solid var(--ani-line);
  }
}

@media (max-width: 680px) {
  .m-compare {
    grid-template-columns: 1fr;
  }

  .m-col + .m-col {
    border-top: 1px solid var(--ani-line);
    border-left: 0;
  }

  .m-lane-heads {
    display: none;
  }

  .m-compare-thread .m-col::before {
    display: block;
    margin-bottom: 6px;
    color: var(--ani-muted);
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 11px;
    content: "Qwen 3.8 27B base";
  }

  .m-compare-thread .m-col-ours::before {
    color: var(--ani-progress);
    content: "Humanlike Chat";
  }

  .m-compare-thread .m-col-ours {
    border-left: 0;
    border-top: 1px solid var(--ani-line);
  }

  .m-spec {
    grid-template-columns: 1fr;
  }

  .m-spec dt {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .m-table th,
  .m-table td {
    padding-right: 10px;
  }
}

/* ============================================================
 * Showcase components (homepage + case study)
 * ============================================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.m-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-family: var(--font-mono);
}

.pulse-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.pulse-dot::after {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
  content: "";
}

@keyframes ping {
  75%,
  100% {
    opacity: 0;
    transform: scale(3);
  }
}

.section-head {
  max-width: 760px;
}

.section-head h2 {
  max-width: 20ch;
}

/* Reveal motion (script.js / commercial.js add .motion-ready + .is-visible). */
.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Hero ---------- */

.home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px);
}

.hero-art {
  position: absolute;
  top: -2%;
  right: -14%;
  z-index: 0;
  width: min(84vw, 1240px);
  pointer-events: none;
  opacity: 0.8;
  mask-image: radial-gradient(ellipse 62% 64% at 60% 48%, #000 40%, transparent 78%);
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  animation: heart-breathe 9s ease-in-out infinite;
}

@keyframes heart-breathe {
  50% {
    transform: scale(1.025) translateY(-6px);
    filter: brightness(1.12);
  }
}

.home-hero-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 72px);
}

.home-hero-copy .m-eyebrow {
  margin-bottom: 22px;
  padding: 6px 12px;
  border: 1px solid var(--accent-line);
  border-radius: var(--ani-radius-pill);
  background: color-mix(in srgb, var(--ani-canvas) 70%, transparent);
  font-size: 12px;
}

.home-hero h1 {
  max-width: 12ch;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin: 40px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--ani-line);
  list-style: none;
}

.hero-proof li {
  display: grid;
  gap: 2px;
}

.hero-proof strong {
  color: var(--ani-text-strong);
  font-size: 24px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.hero-proof span {
  max-width: 17ch;
  color: var(--ani-muted);
  font-size: 12px;
  line-height: 1.4;
}

/* Chat duel: messenger-style side-by-side, "this is us → this is the base model" */

.chat-duel {
  margin: 0;
  padding: 22px 0 14px;
  border: 1px solid var(--ani-line);
  border-radius: 26px;
  background: #000;
  box-shadow: 0 40px 120px -40px #000;
}

.chat-duel-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chat-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 18px;
}

.chat-pane + .chat-pane {
  border-left: 1px solid #2c2c30;
}

.chat-pane-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-align: center;
}

.chat-avatar,
.chat-avatar-img {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.chat-avatar-img {
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgb(255 40 40 / 0.35));
}

.chat-avatar-qwen {
  filter: none;
}

.chat-avatar {
  display: grid;
  place-items: center;
  background: #fff;
  color: #615ced;
  font-size: 12px;
  font-weight: 700;
}

.chat-thread {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bubble {
  max-width: 84%;
  padding: 8px 14px;
  border-radius: 19px;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.bubble-human {
  align-self: flex-end;
  background: #1f6bff;
  color: #fff;
}

.bubble-ai {
  align-self: flex-start;
  margin-bottom: 6px;
  background: #26262a;
  color: #f2f2f2;
}

.chat-stat {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid #1c1c1f;
  color: var(--ani-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.chat-stat strong {
  color: var(--ani-text);
  font-weight: 600;
}

.chat-pane-ours .chat-stat strong {
  color: var(--accent);
}

.chat-duel figcaption {
  margin-top: 14px;
  padding: 12px 20px 0;
  border-top: 1px solid #1c1c1f;
  color: var(--ani-muted);
  font-size: 12px;
  line-height: 1.5;
}

.chat-duel figcaption a {
  color: var(--ani-text);
}

/* Bubbles pop in one after another once the duel is revealed. */
.motion-ready .chat-duel .bubble {
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition:
    opacity 380ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 380ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.motion-ready .chat-duel.is-visible .bubble {
  opacity: 1;
  transform: none;
}

.motion-ready .chat-duel.is-visible .bubble:nth-child(1) { transition-delay: 410ms; }
.motion-ready .chat-duel.is-visible .bubble:nth-child(2) { transition-delay: 670ms; }
.motion-ready .chat-duel.is-visible .bubble:nth-child(3) { transition-delay: 930ms; }
.motion-ready .chat-duel.is-visible .bubble:nth-child(4) { transition-delay: 1190ms; }
.motion-ready .chat-duel.is-visible .bubble:nth-child(5) { transition-delay: 1450ms; }
.motion-ready .chat-duel.is-visible .bubble:nth-child(6) { transition-delay: 1710ms; }
.motion-ready .chat-duel.is-visible .bubble:nth-child(7) { transition-delay: 1970ms; }
.motion-ready .chat-duel.is-visible .bubble:nth-child(8) { transition-delay: 2230ms; }

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid var(--ani-line);
  background: #0b0b0c;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  color: #8a857f;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.marquee-track span::after {
  color: var(--accent);
  content: "<3";
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Case study band ---------- */

.case-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 48px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--ani-line);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--ani-panel-raised), var(--ani-panel));
}

.stat-card-label {
  color: var(--ani-muted);
  font-size: 13px;
  line-height: 1.45;
}

.stat-card-wide .stat-card-label {
  color: var(--ani-text);
  font-size: 13px;
  font-weight: 500;
}

.stat-card figcaption {
  color: var(--ani-muted);
  font-size: 12px;
  line-height: 1.5;
}

.stat-card-num {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: #77726c;
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-arrow {
  color: #4d4a47;
  font-size: 0.5em;
  font-weight: 400;
  transform: translateY(-0.2em);
}

.stat-ours {
  color: var(--accent);
}

.stat-card-num small {
  font-size: 0.45em;
  letter-spacing: 0;
}

.bar-compare {
  display: grid;
  gap: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 76px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.bar-name {
  color: var(--ani-muted);
}

.bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #1f1f22;
}

.bar-fill {
  display: block;
  width: var(--w);
  min-width: 12px;
  height: 100%;
  border-radius: inherit;
  transform-origin: left;
  transition: transform 1100ms cubic-bezier(0.2, 0.8, 0.2, 1) 200ms;
}

.motion-ready .stat-card:not(.is-visible) .bar-fill {
  transform: scaleX(0);
}

.bar-fill-base {
  background: repeating-linear-gradient(90deg, #5b5752 0 6px, #4a4743 6px 8px);
}

.bar-fill-ours {
  background: var(--accent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 60%, transparent);
}

.bar-val {
  color: var(--ani-muted);
  text-align: right;
}

.bar-val-ours {
  color: var(--accent);
}

/* Art plate: flat assistant voice vs. a speaker */

.voice-plate {
  position: relative;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--ani-line);
  border-radius: 20px;
  background: #0a0a0a;
  aspect-ratio: 16 / 6;
}

.voice-plate img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.voice-plate-labels {
  position: absolute;
  inset: 0;
}

.voice-label {
  position: absolute;
  left: 4%;
  padding: 4px 10px;
  border: 1px solid var(--ani-control-border);
  border-radius: var(--ani-radius-pill);
  background: #0d0d0fcc;
  color: var(--ani-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
}

.voice-label-base {
  top: 10%;
}

.voice-label-ours {
  top: 44%;
  border-color: var(--accent-line);
  color: var(--accent);
}

/* Community quotes as a testimonial wall */

.quotes-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 8px 32px;
  margin-top: 72px;
}

.quotes-title {
  color: var(--ani-text-strong);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.quotes-head .m-quote-src {
  max-width: 52ch;
  margin: 0;
}

.m-quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.m-quotes > li {
  min-width: 0;
}

.m-quote {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  height: 100%;
  margin: 0;
  padding: 28px 26px 22px;
  border: 1px solid var(--ani-line);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--ani-panel-raised), var(--ani-panel));
  transition:
    border-color var(--ani-motion-control),
    transform var(--ani-motion-segment);
}

.m-quote:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
}

.m-quote::before {
  display: block;
  height: 30px;
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 64px;
  line-height: 0.9;
  content: "“";
}

.m-quote blockquote {
  flex: 1;
  margin: 0;
}

.m-quote p {
  color: var(--ani-text);
  font-size: 17px;
  letter-spacing: -0.015em;
  line-height: 1.5;
}

.m-quote figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--ani-line);
}

.m-quote-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 600;
}

.m-quote cite {
  display: grid;
  gap: 1px;
  font-style: normal;
}

.m-quote cite a {
  color: var(--ani-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.m-quote cite a:hover {
  color: var(--accent);
}

.m-quote cite span {
  color: var(--ani-muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.m-quote-src {
  margin-top: 14px;
  color: var(--ani-muted);
  font-size: 13px;
  line-height: 1.55;
}

.m-quote-src a {
  color: var(--ani-text);
}

.case-actions {
  margin-top: 40px;
}

/* ---------- Use cases ---------- */

.use-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.use-card {
  padding: 26px 24px 28px;
  border: 1px solid var(--ani-line);
  border-radius: 20px;
  background: var(--ani-panel);
  transition:
    border-color var(--ani-motion-control),
    background-color var(--ani-motion-control);
}

.use-card:hover {
  border-color: var(--accent-line);
  background: var(--ani-panel-raised);
}

.use-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 36px;
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  background: var(--accent-soft);
}

.use-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.use-card h3 {
  color: var(--ani-text-strong);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.use-card p {
  margin-top: 8px;
  color: var(--ani-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* ---------- Method ---------- */

.method-band {
  position: relative;
  overflow: hidden;
}

.method-band > .shell {
  position: relative;
  z-index: 1;
}

.method-art {
  position: absolute;
  inset: auto 0 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.75;
  mask-image: linear-gradient(180deg, transparent 0%, #000 45%, #000 80%, transparent 100%);
}

.method-art img {
  display: block;
  width: 100%;
  height: auto;
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.method-step {
  display: flex;
  flex-direction: column;
  padding: 28px 26px 24px;
  border: 1px solid var(--ani-line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--ani-panel) 82%, transparent);
  backdrop-filter: blur(10px);
}

.method-num {
  margin-bottom: 40px;
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 52px;
  font-style: italic;
  line-height: 1;
}

.method-step h3 {
  color: var(--ani-text-strong);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.method-step p {
  flex: 1;
  margin-top: 10px;
  color: var(--ani-muted);
  font-size: 14px;
  line-height: 1.6;
}

.method-step p a {
  color: var(--ani-text);
}

.method-out {
  align-self: flex-start;
  margin-top: 24px;
  padding: 5px 10px;
  border: 1px solid var(--ani-control-border);
  border-radius: var(--ani-radius-pill);
  color: var(--ani-text);
  font-family: var(--font-mono);
  font-size: 11px;
}

.method-out::before {
  color: var(--accent);
  content: "→ ";
}

.method-links {
  margin-top: 36px;
}

/* ---------- Sprint ---------- */

.sprint-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid transparent;
  border-radius: 28px;
  background:
    radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 55%) padding-box,
    linear-gradient(var(--ani-panel), var(--ani-panel)) padding-box,
    linear-gradient(140deg, color-mix(in srgb, var(--accent) 70%, transparent), var(--ani-line) 40%, var(--ani-line) 70%, color-mix(in srgb, var(--accent) 40%, transparent)) border-box;
}

.sprint-card h2 {
  max-width: none;
}

.sprint-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 32px 0 0;
}

.sprint-facts div {
  padding: 14px 16px;
  border: 1px solid var(--ani-line);
  border-radius: 14px;
  background: #0f0f11;
}

.sprint-facts dt {
  color: var(--ani-muted);
  font-size: 11px;
}

.sprint-facts dd {
  margin: 4px 0 0;
  color: var(--ani-text-strong);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.sprint-timeline {
  position: relative;
  display: grid;
  gap: 0;
  align-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sprint-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 20px;
  padding: 0 0 32px;
}

.sprint-timeline li:last-child {
  padding-bottom: 0;
}

.sprint-timeline li::before {
  position: absolute;
  top: 26px;
  bottom: 0;
  left: 96px;
  width: 1px;
  background: linear-gradient(var(--accent-line), var(--ani-line));
  content: "";
}

.sprint-timeline li:last-child::before {
  display: none;
}

.sprint-timeline li > div {
  position: relative;
  padding-left: 22px;
}

.sprint-timeline li > div::before {
  position: absolute;
  top: 7px;
  left: -5px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--ani-panel);
  content: "";
}

.sprint-timeline li:last-child > div::before {
  background: var(--accent);
}

.sprint-week {
  padding-top: 3px;
  color: var(--ani-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: right;
}

.sprint-timeline h3 {
  color: var(--ani-text-strong);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.sprint-timeline p {
  margin-top: 6px;
  color: var(--ani-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* ---------- Final CTA ---------- */

.end-band {
  position: relative;
  overflow: hidden;
  padding-bottom: clamp(160px, 20vw, 280px);
  text-align: center;
}

.end-art {
  position: absolute;
  inset: auto 0 0;
  z-index: 0;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent, #000 40%);
}

.end-art img {
  display: block;
  width: 100%;
  min-width: 900px;
  height: auto;
  margin-inline: auto;
}

.end-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.end-band .m-eyebrow {
  margin-bottom: 18px;
  font-size: 12px;
}

.end-band h2 {
  max-width: 16ch;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
}

.end-band .lead-block {
  max-width: 54ch;
}

.end-note {
  margin-top: 14px;
  color: var(--ani-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-card-wide {
    grid-column: 1 / -1;
  }

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

@media (max-width: 1023px) {
  .home-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    top: -40px;
    right: -45%;
    width: 150vw;
    opacity: 0.4;
  }

  .home-hero h1 {
    max-width: 14ch;
  }

  .method-steps,
  .sprint-card {
    grid-template-columns: 1fr;
  }

  .voice-plate {
    aspect-ratio: 16 / 8;
  }
}

@media (max-width: 680px) {
  .chat-duel-cols {
    grid-template-columns: 1fr;
  }

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

  .use-grid {
    grid-template-columns: 1fr;
  }

  .use-icon {
    margin-bottom: 20px;
  }

  .sprint-facts {
    grid-template-columns: 1fr;
  }

  .sprint-timeline li {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-left: 22px;
  }

  .sprint-timeline li::before {
    left: 0;
    top: 26px;
  }

  .sprint-week {
    text-align: left;
  }

  .sprint-timeline li > div {
    padding-left: 0;
  }

  .sprint-timeline li > div::before,
  .sprint-week::before {
    display: none;
  }

  .sprint-timeline li::after {
    position: absolute;
    top: 5px;
    left: -5px;
    width: 11px;
    height: 11px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    background: var(--ani-panel);
    content: "";
  }

  .voice-plate {
    aspect-ratio: 4 / 3;
  }

  .voice-label-base {
    top: 16%;
  }

  .voice-label-ours {
    top: 40%;
  }

  .quotes-head {
    margin-top: 56px;
  }

  .end-band {
    padding-bottom: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-ready [data-reveal],
  .motion-ready .chat-duel .bubble {
    opacity: 1;
    transform: none;
  }

  .motion-ready .stat-card:not(.is-visible) .bar-fill {
    transform: none;
  }

  .marquee-track {
    flex-wrap: wrap;
    width: auto;
  }
}

/* Chat duel: cap the base pane; it keeps talking past the fold. */
.chat-pane-base .chat-thread {
  max-height: 520px;
  overflow: hidden;
  mask-image: linear-gradient(180deg, #000 78%, transparent);
}

@media (max-width: 680px) {
  .chat-pane {
    padding: 0 14px;
  }

  .chat-pane + .chat-pane {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #2c2c30;
    border-left: 0;
  }

  .chat-pane-base .chat-thread {
    max-height: 380px;
  }
}
