/*
 * Talis Home — bounded pixel-accuracy revision.
 * This file intentionally scopes every rule to .page-home so Product and Company
 * remain visually identical to the accepted base build.
 */

.page-home {
  --home-paper: #f5f5f5;
  --home-ink: #141414;
  --home-card: #ececec;
  --home-card-control: #e3e3e3;
  --home-carousel-gap: 20px;
  --home-carousel-gutter: 22px;
}

.page-home .visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* --------------------------------------------------------------------------
   Home hero — matches the supplied 1440 × 900 and 390 × 844 compositions.
   -------------------------------------------------------------------------- */
.page-home .hero-content {
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  color: var(--home-paper);
  text-align: center;
  pointer-events: none;
}

.page-home .hero-copy-stack {
  position: static;
  width: min(920px, 100%);
  transform: none;
}

.page-home .hero-title-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: hidden;
  transform: none;
}

.page-home .hero-title {
  margin: 0;
  font-size: clamp(48px, 3.89vw, 56px);
  line-height: 1.075;
  letter-spacing: -0.012em;
  white-space: normal;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .18);
}

.page-home .hero-title-desktop { display: block; }
.page-home .hero-title-mobile { display: none; }

.page-home .hero-support {
  max-width: 590px;
  margin: 28px auto 0;
  color: rgba(245, 245, 245, .94);
  font-size: 16px;
  line-height: 1.48;
  letter-spacing: -.004em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .28);
}

.page-home .hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-top: 72px;
  pointer-events: auto;
}

.page-home .hero-action {
  min-height: 44px;
  height: 44px;
  border-radius: 6px;
  padding: 0 17px;
  font-size: 15px;
  line-height: 1;
  transform: none;
}

.page-home .hero-action:hover { transform: translateY(-1px); }
.page-home .hero-action:active { transform: translateY(0); }

.page-home .hero-action-primary {
  width: 175px;
  min-width: 175px;
  justify-content: space-between;
  gap: 16px;
  background: var(--home-paper);
  color: var(--home-ink);
}

.page-home .hero-action-secondary {
  width: 157px;
  min-width: 157px;
  border-color: rgba(245, 245, 245, .58);
  background: rgba(0, 0, 0, .06);
  color: var(--home-paper);
  backdrop-filter: blur(1px);
}

.page-home .hero-action-primary:hover,
.page-home .hero-action-primary:active {
  border-color: var(--home-paper);
  background: var(--home-ink);
  color: var(--home-paper);
}

.page-home .hero-action-secondary:hover,
.page-home .hero-action-secondary:active {
  border-color: var(--home-paper);
  background: var(--home-paper);
  color: var(--home-ink);
}

.page-home .hero-action-arrow,
.page-home .hero-action-arrow svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

.page-home.js .hero-support,
.page-home.js .hero-actions {
  opacity: 0;
  transform: translateY(12px);
  animation: home-hero-support-in 620ms 1.72s var(--ease-premium) forwards;
}

.page-home.js .hero-actions { animation-delay: 1.92s; }

@keyframes home-hero-support-in {
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Markets / Product Demo section.
   -------------------------------------------------------------------------- */
.page-home .markets-inner {
  width: min(100% - 48px, 1150px);
  max-width: 1150px;
  min-height: 900px;
  margin: 0 auto;
  padding: 168px 0 0;
  display: grid;
  grid-template-columns: minmax(0, 598px) minmax(0, 470px);
  gap: 82px;
  align-items: start;
}

.page-home .markets-demo-wrap {
  order: 1;
  width: 598px;
  height: auto;
  aspect-ratio: 1554 / 874;
  display: block;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.page-home .markets-demo-video {
  width: 100%;
  height: auto;
  aspect-ratio: 1554 / 874;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.page-home .markets-copy {
  order: 2;
  width: 470px;
  margin-top: 20px;
  transform: none;
}

.page-home .markets-copy .section-heading {
  width: 100%;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -.008em;
}

.page-home .markets-heading-line {
  display: block;
  white-space: nowrap;
}

.page-home .markets-copy .section-body {
  width: 458px;
  margin-top: 34px;
  font-size: 15px;
  line-height: 1.5;
}

.page-home .markets-copy .button {
  width: 155px;
  min-width: 155px;
  height: 41px;
  min-height: 41px;
  margin-top: 78px;
  padding: 0 14px;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   Section 4 — full-width, infinite product-capability rail.
   -------------------------------------------------------------------------- */
.page-home .capabilities-section.ui-capabilities {
  --takeover-radius: 30px;
  position: relative;
  z-index: 6;
  width: 100%;
  min-height: 900px;
  margin: -142px 0 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--takeover-radius) var(--takeover-radius) 0 0;
  background: var(--home-paper);
  color: var(--home-ink);
  box-shadow: 0 -22px 70px rgba(0, 0, 0, .12);
  will-change: border-radius;
}

.page-home .ui-capabilities .capabilities-inner {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 900px;
  margin: 0;
  padding: 90px 0 41px;
}

.page-home .ui-capabilities .capabilities-header {
  position: relative;
  width: min(100% - 48px, 920px);
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

.page-home .ui-capabilities .capabilities-heading {
  max-width: 900px;
  margin: 0 auto;
  font-size: 56px;
  line-height: 1.075;
  letter-spacing: -.018em;
  text-align: center;
}

.page-home .ui-capabilities .capabilities-intro {
  max-width: 660px;
  margin: 40px auto 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.48;
  letter-spacing: -.003em;
  text-align: center;
}

.page-home .ui-capabilities > .capabilities-inner > .capability-carousel-controls {
  position: absolute;
  z-index: 4;
  top: 300px;
  right: 47px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.page-home .ui-capabilities .carousel-button {
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #b8b8b8;
  border-radius: 9px;
  background: transparent;
  color: #333;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.page-home .ui-capabilities .carousel-button:hover,
.page-home .ui-capabilities .carousel-button:active {
  border-color: var(--home-ink);
  background: var(--home-ink);
  color: var(--home-paper);
}

.page-home .ui-capabilities .carousel-button:hover { transform: translateY(-1px); }
.page-home .ui-capabilities .carousel-button:active { transform: scale(.97); }
.page-home .ui-capabilities .carousel-button svg { width: 19px; height: 19px; }

.page-home .ui-capabilities .ui-carousel-shell {
  width: 100%;
  margin-top: 79px;
}

.page-home .ui-capabilities .ui-carousel-viewport {
  width: 100vw;
  margin: 0;
  padding: 0;
  overflow: hidden;
  touch-action: pan-y;
  overscroll-behavior-x: contain;
  -webkit-user-select: none;
  user-select: none;
  cursor: grab;
  outline-offset: -3px;
}

.page-home .ui-capabilities .ui-carousel-viewport.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.page-home .ui-capabilities .ui-carousel-track {
  display: flex;
  width: max-content;
  gap: var(--home-carousel-gap);
  padding: 0 var(--home-carousel-gutter);
  transform: translate3d(0, 0, 0);
  transition: transform 520ms var(--ease-premium);
  will-change: transform;
}

.page-home .ui-capabilities .ui-carousel-track.is-immediate,
.page-home .ui-capabilities .ui-carousel-track.is-dragging {
  transition: none !important;
}

.page-home .ui-capabilities .ui-capability-card {
  flex: 0 0 clamp(360px, 28.82vw, 415px);
  width: clamp(360px, 28.82vw, 415px);
  min-height: 481px;
  padding: 26px 38px 13px;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: var(--home-card);
  color: var(--home-ink);
  box-shadow: none;
}

.page-home .ui-capabilities .ui-capability-card[data-carousel-clone="true"] {
  pointer-events: none;
}

.page-home .ui-capabilities .ui-capability-media {
  width: 100%;
  height: auto;
  aspect-ratio: 510 / 353;
  overflow: hidden;
  border-radius: 8px;
  background: #171717;
}

.page-home .ui-capabilities .ui-capability-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .ui-capabilities .ui-capability-card h3 {
  margin-top: 44px;
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -.008em;
}

.page-home .ui-capabilities .ui-capability-card p {
  max-width: 340px;
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.52;
  color: #303030;
}

.page-home .ui-capabilities .ui-capability-card .button {
  position: static;
  left: auto !important;
  bottom: auto;
  width: 107px;
  min-width: 107px;
  min-height: 42px;
  height: 42px;
  margin-top: auto;
  padding: 0;
  background: var(--home-card-control);
  color: #2c2c2c;
  font-size: 14px;
}

.page-home .ui-capabilities .ui-capability-card .button:hover,
.page-home .ui-capabilities .ui-capability-card .button:active {
  background: var(--home-ink);
  color: var(--home-paper);
}

/* Tablet interpolation without changing the intended desktop rail behaviour. */
@media (max-width: 1200px) and (min-width: 901px) {
  .page-home .markets-inner {
    width: calc(100% - 80px);
    grid-template-columns: minmax(430px, 1.15fr) minmax(390px, .85fr);
    gap: 52px;
  }
  .page-home .markets-demo-wrap { width: 100%; }
  .page-home .markets-copy { width: 100%; }
  .page-home .markets-copy .section-body { width: 100%; }
  .page-home .markets-copy .section-heading { font-size: clamp(31px, 3vw, 36px); }
  .page-home .ui-capabilities > .capabilities-inner > .capability-carousel-controls { right: 32px; }
}

@media (max-width: 900px) {
  .page-home .capabilities-section.ui-capabilities {
    min-height: 0;
    margin-top: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .page-home .ui-capabilities .capabilities-inner {
    min-height: 0;
    padding-top: 84px;
  }

  .page-home .ui-capabilities > .capabilities-inner > .capability-carousel-controls {
    right: 24px;
  }
}

/* --------------------------------------------------------------------------
   Mobile — explicit 390px composition, fluid down to 320px.
   -------------------------------------------------------------------------- */
@media (max-width: 700px) {
  .page-home .hero-content {
    padding-inline: 12px;
  }

  .page-home .hero-copy-stack {
    width: min(100%, 357px);
  }

  .page-home .hero-title {
    font-size: clamp(26px, 8.08vw, 31.5px);
    line-height: 1.08;
    letter-spacing: -.012em;
  }

  .page-home .hero-title-desktop { display: none; }
  .page-home .hero-title-mobile {
    display: block;
    white-space: nowrap;
  }

  .page-home .hero-support {
    max-width: 286px;
    margin-top: 25px;
    font-size: clamp(11.3px, 3.18vw, 12.4px);
    line-height: 1.45;
  }

  .page-home .hero-actions {
    gap: 8px;
    margin-top: 68px;
  }

  .page-home .hero-action {
    height: 34px;
    min-height: 34px;
    padding: 0 11px;
    border-radius: 5px;
    font-size: 12px;
  }

  .page-home .hero-action-primary {
    width: 136px;
    min-width: 136px;
    gap: 10px;
  }

  .page-home .hero-action-secondary {
    width: 119px;
    min-width: 119px;
  }

  .page-home .hero-action-arrow,
  .page-home .hero-action-arrow svg {
    width: 12px;
    height: 12px;
    flex-basis: 12px;
  }

  .page-home .markets-section {
    min-height: 900px;
  }

  .page-home .markets-inner {
    width: 100%;
    max-width: none;
    min-height: 900px;
    margin: 0;
    padding: 108px 24px 88px;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }

  .page-home .markets-copy {
    order: 1;
    width: 100%;
    margin: 0;
  }

  .page-home .markets-copy .section-heading {
    width: 100%;
    font-size: clamp(22.5px, 7.31vw, 28.5px);
    line-height: 1.18;
    letter-spacing: -.004em;
  }

  .page-home .markets-heading-line { white-space: nowrap; }

  .page-home .markets-copy .section-body {
    width: 100%;
    margin-top: 27px;
    font-size: 15px;
    line-height: 1.5;
  }

  .page-home .markets-copy .button {
    width: 155px;
    min-width: 155px;
    height: 44px;
    min-height: 44px;
    margin-top: 42px;
    padding: 0 14px 0 16px;
    border-radius: 5px;
    font-size: 15px;
  }

  .page-home .markets-demo-wrap {
    order: 2;
    width: 100%;
    height: auto;
    margin-top: 52px;
    aspect-ratio: 1554 / 874;
  }

  .page-home .markets-demo-video {
    width: 100%;
    height: auto;
    aspect-ratio: 1554 / 874;
  }

  .page-home .ui-capabilities .capabilities-inner {
    min-height: 844px;
    padding: 73px 0 34px;
    display: flex;
    flex-direction: column;
  }

  .page-home .ui-capabilities .capabilities-header {
    order: 1;
    width: 100%;
    padding: 0 22px;
  }

  .page-home .ui-capabilities .capabilities-heading {
    max-width: 346px;
    margin: 0 auto;
    font-size: clamp(27px, 7.95vw, 31px);
    line-height: 1.08;
    letter-spacing: -.012em;
    text-align: center;
  }

  .page-home .ui-capabilities .capabilities-intro {
    max-width: 344px;
    margin: 28px auto 0;
    padding: 0 4px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
  }

  .page-home .ui-capabilities .ui-carousel-shell {
    order: 2;
    margin-top: 64px;
  }

  .page-home .ui-capabilities > .capabilities-inner > .capability-carousel-controls {
    position: static;
    order: 3;
    align-self: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
  }

  .page-home .ui-capabilities .carousel-button {
    width: 49px;
    height: 49px;
    border-radius: 9px;
  }

  .page-home .ui-capabilities .ui-carousel-viewport { width: 100vw; }

  .page-home .ui-capabilities .ui-carousel-track {
    gap: 14px;
    padding-inline: 22px;
  }

  .page-home .ui-capabilities .ui-capability-card {
    flex-basis: calc(100vw - 44px);
    width: calc(100vw - 44px);
    min-height: 401px;
    padding: 21px 31px 12px;
    border-radius: 16px;
  }

  .page-home .ui-capabilities .ui-capability-media {
    aspect-ratio: 283 / 196;
    border-radius: 7px;
  }

  .page-home .ui-capabilities .ui-capability-card h3 {
    margin-top: 31px;
    font-size: 22px;
    line-height: 1.1;
  }

  .page-home .ui-capabilities .ui-capability-card p {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.48;
  }

  .page-home .ui-capabilities .ui-capability-card .button {
    width: 91px;
    min-width: 91px;
    height: 36px;
    min-height: 36px;
    margin-top: auto;
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .page-home .hero-support { max-width: 272px; }
  .page-home .hero-actions { gap: 6px; }
  .page-home .hero-action-primary { width: 129px; min-width: 129px; }
  .page-home .hero-action-secondary { width: 113px; min-width: 113px; }
  .page-home .ui-capabilities .capabilities-header { padding-inline: 18px; }
  .page-home .ui-capabilities .ui-carousel-track { padding-inline: 18px; }
  .page-home .ui-capabilities .ui-capability-card {
    flex-basis: calc(100vw - 36px);
    width: calc(100vw - 36px);
    padding-inline: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home.js .hero-support,
  .page-home.js .hero-actions {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .page-home .ui-capabilities .ui-carousel-track { transition: none !important; }
}

/* Final narrow-line and mobile-placement calibration from the supplied addendum. */
.page-home .markets-heading-line--workflow {
  font-size: 34px;
  letter-spacing: -.012em;
}

@media (max-width: 1200px) and (min-width: 701px) {
  .page-home .markets-heading-line--workflow {
    font-size: clamp(28px, 2.85vw, 34px);
  }
}

@media (max-width: 700px) {
  .page-home .hero-actions { margin-top: 60px; }

  .page-home .markets-copy .section-heading {
    font-size: clamp(20px, 6.54vw, 25.5px);
  }

  .page-home .markets-heading-line--workflow {
    font-size: clamp(17px, 5.46vw, 21.3px);
    letter-spacing: -.018em;
  }

  .page-home .ui-capabilities .ui-carousel-shell { margin-top: 55px; }
  .page-home .ui-capabilities .ui-carousel-track { gap: 22px; }
  .page-home .ui-capabilities .ui-capability-card {
    height: 401px;
    min-height: 401px;
  }
}

@media (max-width: 340px) {
  .page-home .markets-inner { padding-inline: 12px; }
  .page-home .markets-copy .section-heading { font-size: 20px; }
  .page-home .markets-heading-line--workflow {
    font-size: 17px;
    letter-spacing: -.03em;
  }
}

/* The base build carries a mobile !important heading rule; explicitly supersede it
   so both supplied headline lines remain single-line without horizontal overflow. */
@media (max-width: 700px) {
  .page-home .markets-copy .section-heading {
    font-size: clamp(20px, 6.54vw, 25.5px) !important;
  }
}
@media (max-width: 340px) {
  .page-home .markets-copy .section-heading { font-size: 20px !important; }
}

@media (min-width: 341px) and (max-width: 700px) {
  .page-home .markets-copy .section-heading {
    width: calc(100% + 24px);
    margin-left: -12px;
    font-size: clamp(23.6px, 6.92vw, 27px) !important;
  }
  .page-home .markets-heading-line--workflow {
    font-size: clamp(19.8px, 5.82vw, 22.7px);
  }
}

/* Tablet: use the proven copy → CTA → media stack rather than compressing the
   desktop two-column composition beyond legibility. */
@media (min-width: 701px) and (max-width: 900px) {
  .page-home .markets-section { min-height: 980px; }
  .page-home .markets-inner {
    width: 100%;
    max-width: none;
    min-height: 980px;
    margin: 0;
    padding: 104px 48px 82px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .page-home .markets-copy {
    order: 1;
    width: 100%;
    margin: 0;
  }
  .page-home .markets-copy .section-heading {
    width: 100%;
    font-size: 34px;
  }
  .page-home .markets-heading-line--workflow { font-size: 32px; }
  .page-home .markets-copy .section-body {
    width: min(100%, 560px);
    margin-top: 30px;
  }
  .page-home .markets-copy .button { margin-top: 48px; }
  .page-home .markets-demo-wrap {
    order: 2;
    width: min(100%, 650px);
    margin-top: 62px;
  }
}

/* Loop clones remain pointer-operable so every fully visible card retains its CTA;
   they stay outside the keyboard order and accessibility tree via the JS attributes. */
.page-home .ui-capabilities .ui-capability-card[data-carousel-clone="true"] {
  pointer-events: auto;
}

/* Mid-desktop safeguard: preserve the supplied single-line workflow statement
   inside the narrower 1024px two-column composition. */
@media (min-width: 901px) and (max-width: 1100px) {
  .page-home .markets-heading-line--workflow {
    font-size: 28.5px;
    letter-spacing: -.018em;
  }
}


/* --------------------------------------------------------------------------
   Final Home refinement — spacing continuity, smaller Section 4, and exchange rail.
   These rules intentionally remain scoped to .page-home.
   -------------------------------------------------------------------------- */

/* The exchange rail belongs to the dark product-demo section and runs continuously
   between the demo and the white capability takeover. */
.page-home .home-exchange-strip {
  grid-column: 1 / -1;
  width: 100vw;
  margin-top: 78px;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  background: #141414;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.page-home .home-exchange-track {
  display: flex;
  width: max-content;
  animation: home-exchange-scroll 42s linear infinite;
  will-change: transform;
}

.page-home .home-exchange-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 72px;
  min-width: max-content;
  padding: 12px 36px;
}

.page-home .home-exchange-logo {
  width: auto;
  max-width: 188px;
  height: 25px;
  object-fit: contain;
  opacity: .5;
  filter: grayscale(1) brightness(0) invert(1);
}

.page-home .home-exchange-logo--asx { height: 29px; }
.page-home .home-exchange-logo--tsx { height: 30px; }
.page-home .home-exchange-logo--sse { height: 27px; max-width: 218px; }

@keyframes home-exchange-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* Section 4 desktop content is reduced by approximately 7% without changing
   the established full-width takeover or infinite interaction model. */
@media (min-width: 901px) {
  .page-home .ui-capabilities .capabilities-inner {
    padding-top: 83px;
    padding-bottom: 38px;
  }

  .page-home .ui-capabilities .capabilities-heading {
    max-width: 835px;
    font-size: 52px;
    line-height: 1.075;
  }

  .page-home .ui-capabilities .capabilities-intro {
    max-width: 620px;
    margin-top: 36px;
    font-size: 15px;
    line-height: 1.48;
  }

  .page-home .ui-capabilities > .capabilities-inner > .capability-carousel-controls {
    top: 278px;
  }

  .page-home .ui-capabilities .carousel-button {
    width: 45px;
    height: 45px;
    border-radius: 8px;
  }

  .page-home .ui-capabilities .carousel-button svg {
    width: 18px;
    height: 18px;
  }

  .page-home .ui-capabilities .ui-carousel-shell { margin-top: 70px; }

  .page-home .ui-capabilities .ui-carousel-track {
    gap: 18px;
  }

  .page-home .ui-capabilities .ui-capability-card {
    flex-basis: clamp(334px, 26.67vw, 384px);
    width: clamp(334px, 26.67vw, 384px);
    min-height: 445px;
    padding: 24px 35px 14px;
    border-radius: 18px;
  }

  .page-home .ui-capabilities .ui-capability-card h3 {
    margin-top: 39px;
    font-size: 23px;
  }

  .page-home .ui-capabilities .ui-capability-card p {
    max-width: 315px;
    margin-top: 22px;
    font-size: 14px;
    line-height: 1.52;
  }

  .page-home .ui-capabilities .ui-capability-card .button {
    width: 100px;
    min-width: 100px;
    height: 39px;
    min-height: 39px;
    font-size: 13px;
  }
}

@media (max-width: 700px) {
  /* Hero type and controls are 7–8% larger while preserving all existing anchors. */
  .page-home .hero-title {
    font-size: clamp(28px, 8.72vw, 34px);
  }

  .page-home .hero-support {
    max-width: 300px;
    font-size: clamp(12.1px, 3.42vw, 13.35px);
  }

  .page-home .hero-action {
    height: 37px;
    min-height: 37px;
    padding-inline: 12px;
    font-size: 13px;
  }

  .page-home .hero-action-primary {
    width: 145px;
    min-width: 145px;
  }

  .page-home .hero-action-secondary {
    width: 128px;
    min-width: 128px;
  }

  /* Section 3 uses the exact same responsive inset and type scale as Section 2. */
  .page-home .markets-inner {
    padding: 108px clamp(24px, 8.205vw, 32px) 88px;
  }

  .page-home .markets-copy .section-heading {
    width: 100% !important;
    margin-left: 0 !important;
    font-size: clamp(29px, 8.35vw, 32.6px) !important;
    line-height: 1.16 !important;
    letter-spacing: -.012em !important;
  }

  .page-home .markets-heading-line,
  .page-home .markets-heading-line--workflow {
    font-size: inherit;
    letter-spacing: inherit;
  }

  .page-home .markets-copy .section-body {
    width: 100%;
    margin-top: 24px;
    font-size: 15px;
    line-height: 22.5px;
  }

  .page-home .home-exchange-strip {
    order: 3;
    width: 100vw;
    margin-top: 62px;
    margin-left: calc(50% - 50vw);
  }

  .page-home .home-exchange-track {
    animation-duration: 34s;
  }

  .page-home .home-exchange-group {
    gap: 48px;
    padding: 10px 24px;
  }

  .page-home .home-exchange-logo {
    max-width: 144px;
    height: 20px;
  }

  .page-home .home-exchange-logo--asx { height: 23px; }
  .page-home .home-exchange-logo--tsx { height: 24px; }
  .page-home .home-exchange-logo--sse { height: 22px; max-width: 170px; }

  /* Mobile cards retain the desktop rhythm: media → title → copy → CTA. */
  .page-home .ui-capabilities .ui-capability-card {
    min-height: 438px;
    height: auto;
    padding: 22px 31px 19px;
  }

  .page-home .ui-capabilities .ui-capability-card h3 {
    margin-top: 34px;
  }

  .page-home .ui-capabilities .ui-capability-card p {
    margin-top: 23px;
    line-height: 1.52;
  }

  .page-home .ui-capabilities .ui-capability-card .button {
    width: 96px;
    min-width: 96px;
    height: 38px;
    min-height: 38px;
    margin-top: 28px;
    font-size: 13px;
  }

  .page-home .ui-capabilities > .capabilities-inner > .capability-carousel-controls {
    margin-top: 24px;
  }
}

@media (max-width: 340px) {
  .page-home .markets-copy .section-heading {
    font-size: 29px !important;
  }

  .page-home .markets-heading-line--workflow {
    white-space: nowrap;
    letter-spacing: -.045em;
  }

  .page-home .hero-action-primary {
    width: 138px;
    min-width: 138px;
  }

  .page-home .hero-action-secondary {
    width: 121px;
    min-width: 121px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-exchange-track {
    animation: none;
    transform: none;
  }
}

/* Final mobile alignment calibration: Section 3 inherits Section 2's exact inset.
   The longer workflow line uses a bounded single-line size so it remains legible
   without creating horizontal overflow at 320–390px. */
@media (max-width: 700px) {
  .page-home .markets-inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .page-home .markets-heading-line--workflow {
    display: block;
    max-width: 100%;
    font-size: clamp(21.5px, 6.46vw, 25.2px);
    line-height: 1.16;
    letter-spacing: -.012em;
    white-space: nowrap;
  }
}

@media (max-width: 340px) {
  .page-home .markets-heading-line--workflow {
    font-size: 21.5px;
    letter-spacing: -.018em;
  }
}

@media (max-width: 700px) {
  .page-home .markets-heading-line:not(.markets-heading-line--workflow) {
    display: block;
    max-width: 100%;
    font-size: clamp(24px, 7.75vw, 30.2px);
    line-height: 1.16;
    letter-spacing: -.012em;
    white-space: nowrap;
  }
}

@media (max-width: 900px) {
  .page-home .home-exchange-strip {
    order: 3;
  }
}

@media (min-width: 901px) {
  .page-home .markets-demo-wrap,
  .page-home .markets-copy {
    grid-row: 1;
  }

  .page-home .home-exchange-strip {
    grid-row: 2;
    align-self: start;
  }
}

@media (min-width: 901px) {
  .page-home .home-exchange-strip {
    margin-top: -58px;
  }
}

/* --------------------------------------------------------------------------
   Home follow-up — static Markets artwork, normal section flow and larger rail.
   -------------------------------------------------------------------------- */
.page-home .markets-demo-wrap {
  width: 590px;
  aspect-ratio: 590 / 351;
}

.page-home .markets-demo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
}

/* Remove the former Section 3 -> Section 4 takeover. */
.page-home .takeover-stage { background: transparent; }
.page-home .capabilities-section.ui-capabilities {
  margin-top: 0;
  border-radius: 0;
  box-shadow: none;
}

@media (min-width: 901px) {
  .page-home .takeover-stage .markets-section {
    position: relative;
    top: auto;
  }
  .page-home .takeover-stage .capabilities-section {
    position: relative;
    margin-top: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .page-home .home-exchange-strip {
    margin-top: -76px;
    margin-bottom: 82px;
  }
}

/* Exchange artwork is 20% larger while retaining the accepted infinite motion. */
.page-home .home-exchange-logo { height: 30px; max-width: 226px; }
.page-home .home-exchange-logo--asx { height: 35px; }
.page-home .home-exchange-logo--tsx { height: 36px; }
.page-home .home-exchange-logo--sse { height: 32px; max-width: 262px; }

@media (max-width: 900px) {
  .page-home .markets-demo-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 590 / 351;
  }
  .page-home .home-exchange-strip {
    margin-top: 48px;
    margin-bottom: 78px;
  }
}

@media (max-width: 700px) {
  /* Exact continuity with the preceding mobile problem statement. */
  .page-home .markets-copy .section-heading,
  .page-home .markets-heading-line,
  .page-home .markets-heading-line--workflow {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    font-size: clamp(29px, 8.35vw, 32.6px) !important;
    line-height: 1.16 !important;
    letter-spacing: -.012em !important;
  }

  .page-home .markets-heading-line,
  .page-home .markets-heading-line--workflow {
    display: block;
    white-space: nowrap;
  }

  .page-home .home-exchange-logo { height: 24px; max-width: 173px; }
  .page-home .home-exchange-logo--asx { height: 28px; }
  .page-home .home-exchange-logo--tsx { height: 29px; }
  .page-home .home-exchange-logo--sse { height: 26px; max-width: 204px; }
}

@media (max-width: 340px) {
  .page-home .markets-copy .section-heading,
  .page-home .markets-heading-line,
  .page-home .markets-heading-line--workflow {
    font-size: 27px !important;
    letter-spacing: -.021em !important;
  }
}

/* Mobile headline parity: both problem statements use the same inset, scale and line rhythm. */
@media (max-width: 700px) {
  .page-home .continuity-copy .section-heading,
  .page-home .markets-copy .section-heading,
  .page-home .markets-heading-line,
  .page-home .markets-heading-line--workflow {
    font-size: clamp(25.5px, 7.87vw, 30.7px) !important;
    line-height: 1.16 !important;
    letter-spacing: -.016em !important;
  }

  .page-home .continuity-copy .section-heading .mobile-variant,
  .page-home .markets-heading-line,
  .page-home .markets-heading-line--workflow {
    white-space: nowrap !important;
  }
}
