/* Theme Factory: Modern Minimalist
   FRAC7 uses lime only as a semantic live and approval signal. */

:root {
  --mm-charcoal: #36454f;
  --mm-slate: #5d6b75;
  --mm-light: #d3d3d3;
  --mm-white: #ffffff;
  --mm-ink: #182129;
  --mm-soft: #f4f6f7;
  --mm-lime: #a8f21b;
  --mm-font: "DejaVu Sans", "Space Grotesk", Arial, sans-serif;
  --ink: var(--mm-ink);
  --ink-2: var(--mm-charcoal);
  --paper: var(--mm-white);
  --paper-2: var(--mm-soft);
  --card: var(--mm-white);
  --line: rgba(54, 69, 79, 0.2);
  --muted: #56636c;
  --accent: var(--mm-charcoal);
  --accent-deep: var(--mm-ink);
  --accent-soft: #edf0f2;
  --lime: var(--mm-lime);
  --radius: 14px;
  --font-display: var(--mm-font);
  --wrap: min(1180px, calc(100% - 64px));
}

html {
  scroll-padding-top: 84px;
}

body.refresh-home {
  overflow-x: hidden;
  background: var(--mm-white);
  color: var(--mm-ink);
  font-family: var(--mm-font);
  font-variant-numeric: tabular-nums;
}

body.refresh-home ::selection {
  color: var(--mm-ink);
  background: var(--mm-lime);
}

body.refresh-home :focus-visible {
  outline: 3px solid var(--mm-charcoal);
  outline-offset: 4px;
}

body.refresh-home a {
  text-underline-offset: 0.22em;
}

body.refresh-home input,
body.refresh-home select,
body.refresh-home textarea,
body.refresh-home button {
  caret-color: var(--mm-charcoal);
  font-family: var(--mm-font);
}

body.refresh-home::-webkit-scrollbar {
  width: 12px;
}

body.refresh-home::-webkit-scrollbar-track {
  background: var(--mm-soft);
}

body.refresh-home::-webkit-scrollbar-thumb {
  border: 3px solid var(--mm-soft);
  border-radius: 999px;
  background: var(--mm-slate);
}

.refresh-home .refresh-nav {
  min-height: 72px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(54, 69, 79, 0.16);
  background: rgba(255, 255, 255, 0.96);
  color: var(--mm-ink);
  backdrop-filter: blur(16px);
}

.refresh-home .refresh-logo {
  flex: 0 0 auto;
  margin-right: clamp(32px, 5vw, 76px);
  color: var(--mm-ink);
  letter-spacing: -0.04em;
}

.refresh-home .refresh-logo span {
  color: var(--mm-slate);
}

.refresh-home .refresh-nav-links {
  flex: 1 1 auto;
  justify-content: center;
  gap: clamp(18px, 2.4vw, 34px);
  min-width: 0;
}

.refresh-home .refresh-nav-links a {
  color: var(--mm-charcoal);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.refresh-home .refresh-nav-links a:hover,
.refresh-home .refresh-nav-links a:focus-visible {
  color: var(--mm-ink);
}

.refresh-home .refresh-nav-cta,
.refresh-home .refresh-button {
  border: 1px solid var(--mm-charcoal);
  border-radius: 10px;
  background: var(--mm-charcoal);
  color: var(--mm-white);
  box-shadow: 0 8px 22px rgba(24, 33, 41, 0.12);
  white-space: nowrap;
}

.refresh-home .refresh-nav-cta:hover,
.refresh-home .refresh-button:hover {
  border-color: var(--mm-ink);
  background: var(--mm-ink);
  color: var(--mm-white);
  transform: translateY(-1px);
}

.act-machine {
  --ink: var(--mm-ink);
  --ink-2: var(--mm-charcoal);
  --paper: var(--mm-white);
  --paper-2: var(--mm-soft);
  --card: var(--mm-white);
  --line: rgba(54, 69, 79, 0.18);
  --muted: #56636c;
  --accent: var(--mm-charcoal);
  --accent-deep: var(--mm-ink);
  --accent-soft: #edf0f2;
  padding-bottom: 0;
  background: var(--mm-white);
  color: var(--mm-ink);
}

.machine-hero {
  min-height: 0;
  padding: clamp(72px, 8vw, 104px) 0 80px;
  border-bottom: 1px solid rgba(54, 69, 79, 0.16);
  background: var(--mm-white);
}

.machine-kicker,
.refresh-kicker {
  display: none;
}

.machine-hero .refresh-hero-copy {
  width: var(--wrap);
  margin: 0 auto;
  align-items: flex-start;
  text-align: left;
}

.machine-hero .refresh-hero-copy::before {
  content: none;
}

.refresh-home .refresh-hero h1 {
  max-width: 860px;
  margin: 0;
  color: var(--mm-ink);
  font-family: var(--mm-font);
  font-size: clamp(54px, 6.8vw, 88px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.refresh-home .machine-hero-sub {
  max-width: 690px;
  margin: 30px 0 0;
  color: var(--mm-charcoal);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.55;
}

.refresh-home .refresh-actions {
  justify-content: flex-start;
  margin-top: 38px;
}

.refresh-home .machine-secondary-link {
  min-height: 44px;
  align-items: center;
  color: var(--mm-charcoal);
  font-size: 14px;
  text-decoration-thickness: 1px;
}

.refresh-home .machine-secondary-link:hover,
.refresh-home .machine-secondary-link:focus-visible {
  color: var(--mm-ink);
}

.machine-proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: var(--wrap);
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(54, 69, 79, 0.18);
  background: var(--mm-white);
}

.machine-proof-strip p {
  display: block;
  min-height: 126px;
  margin: 0;
  padding: 30px 34px;
  border-right: 1px solid rgba(54, 69, 79, 0.18);
  color: var(--mm-charcoal);
  font-size: 15px;
  line-height: 1.45;
}

.machine-proof-strip p:first-child {
  border-left: 1px solid rgba(54, 69, 79, 0.18);
}

.machine-proof-strip span {
  display: block;
  margin-bottom: 12px;
  color: var(--mm-slate);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.refresh-home .refresh-section,
.refresh-home .refresh-founder {
  width: var(--wrap);
  padding-top: clamp(72px, 8vw, 112px);
  padding-bottom: clamp(72px, 8vw, 112px);
}

.refresh-home .refresh-section-heading {
  max-width: 840px;
  margin: 0 0 clamp(44px, 6vw, 72px);
  text-align: left;
}

.refresh-home .refresh-section-heading h2,
.refresh-home .refresh-founder h2,
.refresh-home .refresh-contact h2,
.refresh-home .refresh-footer-intro h2 {
  color: var(--mm-ink);
  font-family: var(--mm-font);
  font-size: clamp(40px, 5.6vw, 72px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.refresh-home .refresh-section-heading > p:last-child,
.refresh-home .refresh-founder-copy > p,
.refresh-home .refresh-contact-copy > p {
  max-width: 68ch;
  margin-right: 0;
  margin-left: 0;
  color: #4a5862;
  font-size: 17px;
  line-height: 1.65;
}

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

.agent-card {
  grid-column: auto;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-width: 0;
  min-height: 132px;
  padding: 20px;
  border: 1px solid rgba(54, 69, 79, 0.2);
  border-radius: 14px;
  background: var(--mm-white);
  box-shadow: none;
  transition:
    border-color 0.22s ease,
    background 0.22s ease;
}

.agent-card:hover,
.agent-card:focus-within {
  border-color: rgba(54, 69, 79, 0.42);
  background: var(--mm-soft);
  transform: none;
}

.agent-card-human {
  grid-column: 1 / -1;
  min-height: 116px;
  background: var(--mm-charcoal);
}

.agent-card-human:hover,
.agent-card-human:focus-within {
  background: var(--mm-ink);
}

.agent-portrait {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--mm-soft);
}

.agent-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
  object-fit: cover;
  object-position: center 24%;
}

.agent-card-human .agent-portrait {
  width: 76px;
  height: 76px;
  margin: 0;
}

.agent-card-human .agent-portrait img {
  border-radius: 12px;
  object-position: center 22%;
}

.agent-card-copy {
  min-width: 0;
}

.agent-ring {
  display: none;
}

.agent-code {
  margin: 0 0 8px;
  color: var(--mm-slate);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.agent-card h3 {
  margin: 0 0 8px;
  color: var(--mm-ink);
  font-family: var(--mm-font);
  font-size: 22px;
  line-height: 1.1;
}

.agent-card-copy > p:last-child {
  margin: 0;
  color: #4f5c65;
  font-size: 13.5px;
  line-height: 1.48;
}

.agent-card-human .agent-code,
.agent-card-human h3,
.agent-card-human .agent-card-copy > p:last-child {
  color: var(--mm-white);
}

.agent-card-human .agent-code {
  opacity: 0.72;
}

.agent-card-human .agent-card-copy > p:last-child {
  max-width: 56ch;
  opacity: 0.86;
}

.method-pillars {
  grid-template-columns: repeat(3, 1fr);
  border-color: rgba(54, 69, 79, 0.22);
}

.method-pillars li {
  min-height: 250px;
  padding: 30px;
  border-color: rgba(54, 69, 79, 0.22);
  background: var(--mm-white);
}

.method-pillars span {
  color: var(--mm-slate);
}

.method-pillars h3 {
  margin: 38px 0 12px;
  color: var(--mm-ink);
  font-family: var(--mm-font);
  font-size: 24px;
}

.method-pillars p {
  color: #4f5c65;
  font-size: 14px;
  line-height: 1.58;
}

.machine-hq {
  width: 100% !important;
  max-width: none;
  margin: 0;
  padding-inline: max(32px, calc((100vw - 1180px) / 2));
  background: var(--mm-soft);
}

.hq-showcase {
  overflow: hidden;
  border: 1px solid rgba(54, 69, 79, 0.28);
  border-radius: 14px;
  background: var(--mm-white);
  box-shadow: 0 24px 56px rgba(24, 33, 41, 0.1);
}

.hq-showcase-bar {
  min-height: 64px;
  border-bottom-color: rgba(54, 69, 79, 0.18);
  background: var(--mm-white);
  color: var(--mm-ink);
}

.hq-showcase-mark,
.hq-showcase-status,
.hq-showcase-controls button {
  color: var(--mm-charcoal);
}

.hq-showcase-status i {
  background: var(--mm-lime);
  box-shadow: 0 0 0 4px rgba(168, 242, 27, 0.18);
}

.hq-office-stage {
  background: #eef1ed;
}

.hq-office-image,
.hq-office-video {
  filter: saturate(0.72) contrast(0.97) brightness(1.03);
}

.hq-agent-node {
  border: 1px solid rgba(54, 69, 79, 0.38);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--mm-ink);
  box-shadow: 0 10px 24px rgba(24, 33, 41, 0.12);
}

.hq-agent-node img {
  border-color: rgba(54, 69, 79, 0.24);
}

.hq-agent-node.is-active {
  border-color: var(--mm-charcoal);
  background: var(--mm-charcoal);
  color: var(--mm-white);
}

.hq-current-task {
  border: 1px solid rgba(54, 69, 79, 0.26);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--mm-ink);
  box-shadow: 0 14px 30px rgba(24, 33, 41, 0.12);
}

.hq-current-task span {
  color: var(--mm-slate);
}

.hq-current-task p {
  color: #4f5c65;
}

.hq-current-task .hq-signal-ledger {
  border-top-color: rgba(54, 69, 79, 0.16);
}

.hq-current-task .hq-signal-ledger div {
  border-left-color: rgba(54, 69, 79, 0.14);
}

.hq-current-task .hq-signal-ledger dt {
  color: var(--mm-slate);
}

.hq-current-task .hq-signal-ledger dd {
  color: var(--mm-ink);
}

.hq-run-console {
  border-top-color: rgba(54, 69, 79, 0.18);
  background: var(--mm-white);
}

.hq-run-console-head {
  border-bottom-color: rgba(54, 69, 79, 0.16);
}

.hq-run-console-head > div > span,
.hq-run-inspector-title > span,
.hq-run-console-head dt,
.hq-run-inspector dt {
  color: var(--mm-slate);
}

.hq-run-console-head strong,
.hq-run-console-head dd,
.hq-run-inspector-title strong,
.hq-run-inspector dd {
  color: var(--mm-ink);
}

.hq-run-console .hq-cycle-list li:not(:last-child)::after {
  background: rgba(54, 69, 79, 0.22);
}

.hq-run-console .hq-cycle-list button {
  border-color: rgba(54, 69, 79, 0.22);
  background: var(--mm-white);
}

.hq-run-console .hq-cycle-list button:hover,
.hq-run-console .hq-cycle-list button:focus-visible,
.hq-run-console .hq-cycle-list button.is-complete {
  border-color: rgba(54, 69, 79, 0.48);
  background: var(--mm-soft);
}

.hq-run-console .hq-cycle-list button.is-active {
  color: var(--mm-white);
  border-color: var(--mm-charcoal);
  background: var(--mm-charcoal);
}

.hq-run-console .hq-cycle-list button.is-active span,
.hq-run-console .hq-cycle-list button.is-active small {
  color: var(--mm-lime);
}

.hq-run-inspector {
  border-left-color: rgba(54, 69, 79, 0.16);
  background: var(--mm-soft);
}

.hq-run-inspector-title,
.hq-run-inspector dl div {
  border-color: rgba(54, 69, 79, 0.14);
}

.hq-run-inspector-title small {
  color: var(--mm-slate);
}

.hq-handoff-map path {
  stroke: rgba(54, 69, 79, 0.24);
}

.hq-handoff-map path.is-active {
  stroke: var(--mm-charcoal);
}

.hq-walker {
  --hq-walker-x: 80;
  --hq-walker-y: 13;
  position: absolute;
  z-index: 9;
  top: calc(var(--hq-walker-y) * 1%);
  left: calc(var(--hq-walker-x) * 1%);
  display: grid;
  justify-items: center;
  pointer-events: none;
  transform: translate(-50%, -100%);
  transition:
    top 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    left 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hq-walker-sprite {
  position: relative;
  width: 48px;
  height: 56px;
  border: 3px solid var(--mm-white);
  border-radius: 18px 18px 12px 12px;
  overflow: hidden;
  background: var(--mm-white);
  box-shadow: 0 12px 24px rgba(24, 33, 41, 0.2);
  animation: hq-walk-bob 0.42s ease-in-out infinite alternate;
}

.hq-walker-sprite::after {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--mm-white);
  border-radius: 50%;
  background: var(--mm-lime);
  content: "";
}

.hq-walker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hq-walker small {
  margin-top: 6px;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--mm-charcoal);
  color: var(--mm-white);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

@keyframes hq-walk-bob {
  to {
    transform: translateY(-3px) rotate(1deg);
  }
}

.hq-cycle-list {
  border-top-color: rgba(54, 69, 79, 0.18);
  background: var(--mm-white);
}

.hq-cycle-list button {
  border-color: rgba(54, 69, 79, 0.16);
  background: var(--mm-white);
  color: var(--mm-charcoal);
}

.hq-cycle-list button.is-active {
  border-color: var(--mm-charcoal);
  background: var(--mm-soft);
  color: var(--mm-ink);
}

.machine-founder {
  border-top: 1px solid rgba(54, 69, 79, 0.16);
}

.refresh-founder-visual {
  border-radius: 14px;
  background: var(--mm-soft);
  box-shadow: 0 22px 48px rgba(24, 33, 41, 0.1);
}

.refresh-founder-visual figcaption {
  background: var(--mm-charcoal);
  color: var(--mm-white);
}

.refresh-founder-copy li {
  border-top-color: rgba(54, 69, 79, 0.18);
  color: #4f5c65;
}

.refresh-founder-copy li span {
  color: var(--mm-ink);
}

.refresh-text-link {
  color: var(--mm-charcoal);
}

.refresh-fit {
  border-top: 1px solid rgba(54, 69, 79, 0.16);
}

.refresh-fit-grid {
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(54, 69, 79, 0.2);
  border-radius: 14px;
  background: rgba(54, 69, 79, 0.2);
}

.refresh-fit-grid p {
  min-height: 150px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--mm-white);
  color: var(--mm-charcoal);
}

.refresh-not-fit {
  margin-right: 0;
  margin-left: 0;
  color: #4f5c65;
  text-align: left;
}

.refresh-process {
  width: 100% !important;
  max-width: none;
  margin: 0;
  padding-inline: max(32px, calc((100vw - 1180px) / 2));
  border-top: 1px solid rgba(54, 69, 79, 0.16);
  background: var(--mm-soft);
}

.refresh-process-list {
  max-width: 1120px;
  gap: clamp(54px, 8vw, 96px);
}

.refresh-process-mobile-hint {
  display: none;
}

.refresh-process-mobile-controls {
  display: none;
}

.refresh-process-step,
.refresh-process-step:nth-child(even) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(44px, 5vw, 72px);
  min-height: 0;
  padding: 0;
  border: 0;
}

.refresh-process-step:nth-child(even) .refresh-process-copy {
  order: 1;
}

.refresh-process-step:nth-child(even) .refresh-process-player {
  order: 2;
}

.refresh-process-copy {
  align-self: center;
  padding: clamp(16px, 2vw, 28px) clamp(8px, 1.4vw, 20px);
}

.refresh-process-copy > div {
  max-width: 440px;
}

.refresh-process-number {
  border-color: rgba(54, 69, 79, 0.34);
  color: var(--mm-slate);
  background: var(--mm-white);
}

.refresh-process-eyebrow {
  color: var(--mm-slate);
}

.refresh-process-list h3 {
  color: var(--mm-ink);
  font-family: var(--mm-font);
  font-size: clamp(28px, 3.5vw, 42px);
  letter-spacing: -0.03em;
}

.refresh-process-copy
  > div
  > p:not(.refresh-process-eyebrow, .refresh-process-result) {
  color: #4f5c65;
}

.refresh-process-result {
  border-color: rgba(54, 69, 79, 0.2);
  color: #4f5c65;
}

.refresh-process-result span {
  color: var(--mm-ink);
}

.refresh-process-player {
  overflow: hidden;
  border: 1px solid rgba(54, 69, 79, 0.24);
  border-radius: 14px;
  background: var(--mm-white);
  box-shadow: 0 24px 48px rgba(24, 33, 41, 0.1);
}

.refresh-process-player::before {
  content: none;
}

.refresh-process-player-bar {
  border-bottom-color: rgba(54, 69, 79, 0.18);
  background: var(--mm-white);
  color: var(--mm-charcoal);
}

.refresh-process-player-bar > span {
  color: var(--mm-slate);
}

.refresh-process-player-bar button {
  border-color: rgba(54, 69, 79, 0.3);
  color: var(--mm-charcoal);
  background: var(--mm-white);
}

.refresh-process-player-bar button:hover,
.refresh-process-player-bar button:focus-visible {
  border-radius: 8px;
  background: var(--mm-soft);
  color: var(--mm-ink);
}

.refresh-process-player-bar::after {
  background: var(--mm-charcoal);
}

.refresh-process-art-caption {
  border-color: rgba(54, 69, 79, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--mm-ink);
}

/* The walkthroughs share the portal's light workspace. Their labels are real
   HTML, not text embedded in a generated screenshot. */
.refresh-home .refresh-process-demo-scene {
  aspect-ratio: auto;
  min-height: 320px;
  background: var(--mm-white);
}

.refresh-home .refresh-process-demo-scene::before {
  content: none;
}

.refresh-home .process-demo-window {
  height: auto;
  min-height: inherit;
  background: var(--mm-white);
  color: var(--mm-ink);
}

.refresh-home .process-demo-toolbar {
  min-height: 42px;
  background: var(--mm-soft);
  border-color: var(--line);
}

.refresh-home .process-demo-toolbar strong {
  font-size: 11px;
}

.refresh-home .process-demo-panel {
  height: auto;
  min-height: 278px;
  padding: 20px;
  gap: 12px;
}

.refresh-home .process-demo-window :is(strong, b) {
  color: var(--mm-ink);
  font-size: 12px;
  line-height: 1.4;
  white-space: normal;
}

.refresh-home .process-demo-window :is(small, em),
.refresh-home .process-demo-action-row span {
  color: var(--mm-slate);
  font-size: 10px;
  line-height: 1.45;
  letter-spacing: 0;
  white-space: normal;
  text-transform: none;
}

.refresh-home .process-demo-window p {
  margin: 0;
  color: var(--mm-charcoal);
  font-size: 11px;
  line-height: 1.5;
}

.refresh-home
  :is(
    .process-demo-field,
    .process-demo-check,
    .process-demo-connection,
    .process-demo-agent,
    .process-demo-insight,
    .process-demo-choice-row > div
  ) {
  padding: 12px;
  background: var(--mm-soft);
  border-color: var(--line);
}

.refresh-home
  :is(
    .process-demo-outcome,
    .process-demo-scope,
    .process-demo-human,
    .process-demo-approval,
    .process-demo-toast
  ) {
  background: #f0f6e7;
  border-color: #b8c5a9;
  box-shadow: none;
}

.refresh-home
  :is(
    .process-demo-fit-head,
    .process-demo-decision-head,
    .process-demo-handoff-head
  ) {
  border-color: var(--line);
}

.refresh-home
  :is(
    .process-demo-fit-head,
    .process-demo-decision-head,
    .process-demo-handoff-head
  )
  > span {
  background: #edf4e4;
  color: #36551b;
  font-size: 10px;
  white-space: normal;
}

.refresh-home .process-demo-agent > span,
.refresh-home .process-demo-connection > span {
  color: var(--mm-white);
  background: var(--mm-charcoal);
}

.refresh-home .process-demo-agent > b,
.refresh-home .process-demo-approval span,
.refresh-home .process-demo-insight > span,
.refresh-home .process-demo-decision-note,
.refresh-home .process-demo-scope p span {
  color: #36551b;
  font-size: 10px;
}

.refresh-home .process-demo-action-row b,
.refresh-home .process-demo-scope > b {
  background: var(--mm-charcoal);
  color: var(--mm-white);
}

.refresh-home .process-demo-toast {
  position: static;
  grid-column: 1 / -1;
  max-width: none;
  margin-top: 8px;
}

.refresh-home .process-demo-handoff-board {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.refresh-home .process-demo-handoff-line {
  display: none;
}

.refresh-home .process-demo-decision-board {
  grid-template-columns: 1fr;
}

.refresh-home .process-demo-choice-row > div:first-child {
  background: #f0f6e7;
  border-color: #b8c5a9;
}

.refresh-home .process-demo-approval {
  flex-wrap: wrap;
}

.refresh-home .process-demo-approval strong {
  text-align: left;
}

.refresh-home .process-demo-cursor {
  filter: drop-shadow(0 2px 3px rgba(24, 33, 41, 0.4));
}

.process-motion-ready
  .refresh-home
  .refresh-process-step.is-playing
  .process-demo-window {
  opacity: 1;
  transform: none;
  animation: none;
}

.process-motion-ready
  .refresh-home
  .refresh-process-step.is-playing
  [class*="demo-sequence-"] {
  opacity: 1;
}

[data-hq-showcase]:not(.is-playing) .hq-walker-sprite {
  animation-play-state: paused;
}

@media (max-width: 720px) {
  .refresh-home .refresh-process-step {
    padding: 20px 16px;
  }

  .refresh-home .process-demo-panel {
    padding: 14px;
  }

  .refresh-home .process-demo-form,
  .refresh-home .process-demo-fit-grid,
  .refresh-home .process-demo-connect-grid {
    grid-template-columns: 1fr;
  }

  .refresh-home .process-demo-outcome {
    grid-column: auto;
    grid-row: auto;
  }

  .refresh-home .process-demo-toolbar {
    grid-template-columns: 26px 1fr;
    gap: 6px;
    padding: 10px 12px;
  }

  .refresh-home .process-demo-toolbar > small {
    display: none;
  }

  .refresh-home .process-demo-fit-head,
  .refresh-home .process-demo-handoff-head,
  .refresh-home .process-demo-decision-head {
    flex-wrap: wrap;
  }

  .refresh-home .process-demo-agent {
    grid-template-columns: 1fr;
  }

  .refresh-home .hq-agent-node {
    width: 44px;
    height: 44px;
  }
}

.refresh-offer {
  border-top: 1px solid rgba(54, 69, 79, 0.16);
}

.refresh-offer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(54, 69, 79, 0.22);
  border-radius: 14px;
  background: rgba(54, 69, 79, 0.22);
}

.refresh-offer-grid article,
.refresh-offer-grid .refresh-offer-dark {
  min-height: 280px;
  padding: 28px;
  border: 0;
  border-radius: 0;
  background: var(--mm-white);
  color: var(--mm-ink);
}

.refresh-offer-grid article > span,
.refresh-offer-dark > span {
  color: var(--mm-slate);
}

.refresh-offer-grid h3,
.refresh-offer-grid .refresh-offer-dark h3 {
  margin-top: 52px;
  color: var(--mm-ink);
  font-family: var(--mm-font);
  font-size: 23px;
}

.refresh-offer-grid p,
.refresh-offer-grid .refresh-offer-dark p {
  color: #4f5c65;
}

.refresh-offer-grid .refresh-offer-dark {
  background: var(--mm-charcoal);
}

.refresh-offer-grid .refresh-offer-dark h3,
.refresh-offer-grid .refresh-offer-dark p,
.refresh-offer-grid .refresh-offer-dark span {
  color: var(--mm-white);
}

.refresh-offer-grid .refresh-offer-dark > span {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.36);
}

.refresh-boundary {
  color: #4f5c65;
}

.refresh-contact {
  width: 100%;
  padding: clamp(90px, 10vw, 150px) max(32px, calc((100vw - 1180px) / 2));
  background: var(--mm-charcoal);
  color: var(--mm-white);
}

.refresh-contact h2,
.refresh-contact-copy > p {
  color: var(--mm-white) !important;
}

.refresh-contact-copy > p,
.refresh-contact-terms {
  opacity: 0.82;
}

.refresh-home .refresh-lead-form {
  border: 0;
  border-radius: 14px;
  background: var(--mm-white);
  color: var(--mm-ink);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.2);
}

.refresh-home .refresh-form-row label,
.refresh-home .refresh-lead-form > .refresh-form-intro,
.refresh-field-meta,
.refresh-form-submit p {
  color: var(--mm-charcoal);
}

.refresh-home .lead-form input,
.refresh-home .lead-form select,
.refresh-home .lead-form textarea {
  border: 1px solid #89949c;
  border-radius: 8px;
  padding: 12px;
  background: var(--mm-white);
  color: var(--mm-ink);
}

.refresh-home .lead-form input:focus-visible,
.refresh-home .lead-form select:focus-visible,
.refresh-home .lead-form textarea:focus-visible {
  border-color: var(--mm-charcoal);
  box-shadow: 0 0 0 3px rgba(54, 69, 79, 0.12);
}

.refresh-home .refresh-lead-form[hidden] {
  display: none;
}

.refresh-home .lead-form select {
  color-scheme: light;
}

.refresh-home .lead-form select option,
.refresh-home .lead-form select option:checked {
  background: var(--mm-white);
  color: var(--mm-ink);
}

.refresh-home .lead-form ::placeholder {
  color: var(--mm-slate);
  opacity: 1;
}

.refresh-home .lead-form [aria-invalid="true"] {
  border-color: #a72a35;
}

.refresh-home .refresh-field-error,
.refresh-home .refresh-form-submit p.is-error {
  color: #a72a35;
}

.refresh-home .refresh-form-submit a {
  color: var(--mm-charcoal);
}

.refresh-home .refresh-button-lime {
  border-color: var(--mm-lime);
  background: var(--mm-lime);
  color: var(--mm-ink);
}

.refresh-home .refresh-button-lime:hover {
  border-color: #95dc0c;
  background: #95dc0c;
  color: var(--mm-ink);
}

.refresh-footer-intro {
  background: var(--mm-white);
  color: var(--mm-ink);
}

.refresh-footer {
  border-top: 1px solid rgba(211, 211, 211, 0.25);
  background: var(--mm-ink);
  color: var(--mm-white);
}

.refresh-footer .refresh-logo,
.refresh-footer-column h3 {
  color: var(--mm-white);
}

.refresh-footer .refresh-logo span,
.refresh-footer a:hover,
.refresh-footer a:focus-visible {
  color: var(--mm-light);
}

@media (max-width: 1040px) {
  :root {
    --wrap: min(940px, calc(100% - 48px));
  }

  .refresh-home .refresh-nav-links {
    gap: 18px;
  }

  .refresh-home .refresh-nav-cta {
    padding-inline: 16px;
    font-size: 12px;
  }

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

  .agent-card {
    grid-column: auto;
  }

  .agent-card-human {
    grid-column: 1 / -1;
  }

  .refresh-offer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .refresh-home .refresh-nav {
    padding-inline: 24px;
  }

  .refresh-home .refresh-logo {
    margin-right: 0;
  }

  .refresh-home .refresh-nav-toggle {
    border-color: rgba(54, 69, 79, 0.32);
    background: var(--mm-white);
  }

  .refresh-home .refresh-nav-toggle span {
    background: var(--mm-charcoal);
  }

  .refresh-home .refresh-nav-links {
    top: 72px;
    gap: 0;
    padding: 12px 24px 22px;
    border-bottom-color: rgba(54, 69, 79, 0.18);
    background: var(--mm-white);
  }

  .refresh-home .refresh-nav-links a {
    min-height: 48px;
    color: var(--mm-charcoal);
  }

  .refresh-home .refresh-nav-links .nav-mobile-cta {
    justify-content: center;
    border-radius: 10px;
    background: var(--mm-charcoal);
    color: var(--mm-white);
  }

  .machine-proof-strip {
    width: calc(100% - 48px);
  }

  .machine-proof-strip p {
    padding-inline: 22px;
  }

  .refresh-process-step,
  .refresh-process-step:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .refresh-process-step:nth-child(even) .refresh-process-copy,
  .refresh-process-step:nth-child(even) .refresh-process-player {
    order: initial;
  }

  .hq-walker small {
    display: none;
  }

  .hq-current-task {
    display: none;
  }

  .hq-signal-ledger-mobile {
    display: grid;
    margin: 0;
    padding: 14px;
    border-top: 1px solid rgba(54, 69, 79, 0.18);
    background: var(--mm-white);
  }

  .hq-signal-ledger-mobile div {
    border-left-color: rgba(54, 69, 79, 0.14);
  }

  .hq-signal-ledger-mobile div:nth-child(n + 3) {
    border-top-color: rgba(54, 69, 79, 0.14);
  }

  .hq-signal-ledger-mobile dt {
    color: var(--mm-slate);
  }

  .hq-signal-ledger-mobile dd {
    color: var(--mm-ink);
  }
}

@media (max-width: 720px) {
  :root {
    --wrap: calc(100% - 32px);
  }

  .machine-hero {
    min-height: 0;
    padding: 64px 0 56px;
    background-size: 56px 56px;
  }

  .machine-hero .refresh-hero-copy::before {
    width: 42px;
    height: 4px;
    margin-bottom: 22px;
  }

  .refresh-home .refresh-hero h1 {
    font-size: clamp(44px, 13vw, 56px);
    line-height: 1;
  }

  .refresh-home .machine-hero-sub {
    margin-top: 24px;
    font-size: 17px;
  }

  .refresh-home .refresh-actions {
    align-items: stretch;
  }

  .refresh-home .refresh-button,
  .refresh-home .machine-secondary-link {
    justify-content: center;
    text-align: center;
  }

  .machine-proof-strip {
    grid-template-columns: 1fr;
    width: calc(100% - 32px);
  }

  .machine-proof-strip p,
  .machine-proof-strip p:first-child {
    min-height: 0;
    padding: 22px 20px;
    border: 0;
    border-bottom: 1px solid rgba(54, 69, 79, 0.18);
  }

  .refresh-home .refresh-section,
  .refresh-home .refresh-founder {
    padding-top: 82px;
    padding-bottom: 82px;
  }

  .refresh-home .refresh-section-heading h2,
  .refresh-home .refresh-founder h2,
  .refresh-home .refresh-contact h2,
  .refresh-home .refresh-footer-intro h2 {
    font-size: clamp(36px, 11vw, 52px);
  }

  .agent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .agent-card {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 12px;
    min-height: 104px;
    padding: 14px;
  }

  .agent-card .agent-portrait {
    width: 52px;
    height: 52px;
    margin: 0;
  }

  .agent-card .agent-code {
    margin-bottom: 6px;
    font-size: 10px;
    letter-spacing: 0.03em;
  }

  .agent-card h3 {
    margin-bottom: 6px;
    font-size: 19px;
  }

  .agent-card-copy > p:last-child {
    font-size: 13px;
    line-height: 1.5;
  }

  .agent-card-human {
    grid-column: 1 / -1;
    grid-template-columns: 52px minmax(0, 1fr);
    min-height: 104px;
    padding: 14px;
  }

  .agent-card-human .agent-portrait {
    width: 52px;
    height: 52px;
    margin: 0;
  }

  .agent-card-human .agent-portrait img {
    border-radius: 9px;
  }

  .method-pillars {
    grid-template-columns: 1fr;
  }

  .method-pillars li {
    min-height: 0;
  }

  .machine-hq,
  .refresh-process {
    padding-inline: 16px;
  }

  .hq-showcase-bar {
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
  }

  .hq-showcase-controls {
    width: 100%;
    justify-content: space-between;
  }

  .hq-office-stage {
    width: 100%;
    max-width: 100%;
    min-height: 420px;
  }

  .hq-office-image,
  .hq-office-video {
    height: 420px;
    object-fit: cover;
    object-position: center;
  }

  .hq-agent-node span {
    display: none;
  }

  .hq-agent-node {
    width: 38px;
    height: 38px;
    padding: 2px;
    border-radius: 10px;
  }

  .hq-agent-node img {
    width: 32px;
    height: 32px;
  }

  .hq-walker {
    transform: translate(-50%, -86%);
  }

  .hq-cycle-list {
    grid-template-columns: repeat(7, minmax(84px, 1fr));
    overflow-x: auto;
  }

  .refresh-process-list {
    display: flex;
    gap: 16px;
    max-width: none;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 4px 0 18px;
    scroll-padding-inline: 2px;
    scroll-snap-type: x mandatory;
    scrollbar-color: var(--mm-slate) transparent;
    scrollbar-width: thin;
  }

  .refresh-process-mobile-hint {
    display: block;
    margin: -30px 0 10px;
    color: var(--mm-slate);
    font-size: 13px;
    line-height: 1.5;
  }

  .refresh-process-mobile-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
  }

  .refresh-process-mobile-controls button {
    min-width: 88px;
    min-height: 44px;
    padding: 10px 14px;
    color: var(--mm-charcoal);
    border: 1px solid rgba(54, 69, 79, 0.28);
    border-radius: 10px;
    background: var(--mm-white);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
  }

  .refresh-process-mobile-controls button:disabled {
    opacity: 0.42;
  }

  .refresh-process-mobile-controls output {
    color: var(--mm-slate);
    font-size: 12px;
    font-weight: 700;
  }

  .refresh-process-step,
  .refresh-process-step:nth-child(even) {
    display: grid;
    flex: 0 0 calc(100vw - 48px);
    grid-template-columns: 1fr;
    align-content: start;
    gap: 20px;
    padding: 24px;
    border: 1px solid rgba(54, 69, 79, 0.18);
    border-radius: 14px;
    background: var(--mm-white);
    scroll-snap-align: start;
  }

  .refresh-process-copy {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    padding: 0;
  }

  .refresh-process-list h3 {
    font-size: 26px;
  }

  .refresh-process-player {
    width: 100%;
    margin: 0;
    box-shadow: 0 16px 36px rgba(24, 33, 41, 0.1);
  }

  .refresh-process-demo-scene {
    min-height: 310px;
    aspect-ratio: auto;
  }

  .process-demo-toolbar strong,
  .process-demo-toolbar small,
  .process-demo-field small,
  .process-demo-check small,
  .process-demo-outcome small {
    font-size: 9px;
  }

  .process-demo-field strong,
  .process-demo-check strong,
  .process-demo-outcome strong {
    font-size: 11px;
  }

  .process-demo-handoff-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-demo-handoff-line {
    display: none;
  }

  .refresh-process-list::-webkit-scrollbar {
    height: 8px;
  }

  .refresh-process-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--mm-slate);
  }

  .refresh-process-list::-webkit-scrollbar-track {
    background: transparent;
  }

  .refresh-offer-grid {
    grid-template-columns: 1fr;
  }

  .refresh-offer-grid article,
  .refresh-offer-grid .refresh-offer-dark {
    min-height: 0;
  }

  .refresh-offer-grid h3,
  .refresh-offer-grid .refresh-offer-dark h3 {
    margin-top: 28px;
  }

  .refresh-contact {
    padding: 82px 16px;
  }

  .refresh-lead-form {
    border-radius: 12px;
  }
}

@media (max-width: 360px) {
  .agent-grid {
    grid-template-columns: 1fr;
  }

  .agent-card,
  .agent-card-human {
    grid-template-columns: 52px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hq-walker,
  .hq-walker-sprite {
    transition: none;
    animation: none;
  }
}
