.trades-page {
  min-height: 100svh;
  background: #000;
  color: var(--white);
}

.trades-page .site-header {
  padding-top: 14px;
}

.trades-page .nav-shell {
  min-height: 64px;
  border-color: rgba(255, 255, 255, .68);
  background: linear-gradient(90deg, rgba(255, 255, 255, .94), rgba(255, 222, 246, .9), rgba(255, 232, 199, .88));
  box-shadow: 0 16px 48px rgba(0, 0, 0, .18);
  color: var(--black);
  backdrop-filter: blur(18px) saturate(1.2);
}

.trades-page .header-cta {
  opacity: 1;
  translate: 0;
  visibility: visible;
  pointer-events: auto;
}

.trades-stage {
  display: grid;
  min-height: 100svh;
  padding: clamp(112px, 9.8vw, 142px) var(--page-pad) clamp(20px, 2.2vw, 34px);
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(18px, 2vw, 30px);
  overflow: hidden;
  background: #000;
}

.trades-intro {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  align-items: end;
  gap: 32px;
}

.trades-hint,
.trades-status,
.trade-audio-eyebrow,
.trade-card-count {
  font-family: var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.trades-intro h1 {
  max-width: 920px;
  margin: 0;
  font-family: var(--headline);
  font-size: clamp(48px, 5.6vw, 88px);
  font-weight: 900;
  line-height: .83;
  letter-spacing: -.035em;
}

.trades-intro h1 > span {
  display: block;
  white-space: nowrap;
}

.trades-intro h1 > span:first-child {
  margin-bottom: .08em;
  font-family: "Figtree", sans-serif;
  font-size: .42em;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .04em;
}

.trades-intro h1 > span:last-child {
  font-size: 1em;
  line-height: .82;
}

.trades-title-flag-i {
  display: inline-block;
  color: #fff;
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .trades-title-flag-i {
    background: url("../../assets/flags/australia-fill.svg") center / 100% 100% no-repeat;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, .88);
  }
}

.trades-intro-side {
  display: grid;
  justify-items: end;
  gap: 18px;
  padding-bottom: 3px;
  text-align: right;
}

.trades-intro-side > p:first-child {
  width: min(430px, 100%);
  margin: 0;
  color: rgba(255, 255, 255, .8);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.25;
}

.trades-hint {
  display: inline-flex;
  min-height: 34px;
  margin: 0;
  padding: 0 13px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  color: rgba(255, 255, 255, .64);
  font-size: 10px;
}

.trades-hint-shell {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.trades-picker {
  display: block;
  position: relative;
}

.trades-list-trigger {
  display: inline-flex;
  min-width: 86px;
  min-height: 36px;
  padding: 0 13px 0 15px;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: var(--white);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.trades-list-trigger:hover,
.trades-list-trigger:focus-visible {
  border-color: var(--white);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .24);
}

.trades-list-trigger[aria-expanded="true"] {
  border-color: var(--green);
  background: var(--yellow);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .2);
  color: var(--green);
}

.trades-list-trigger:active {
  transform: scale(.97);
}

.trades-list-trigger svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform .24s cubic-bezier(.2, .75, .2, 1);
}

.trades-list-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.trades-listbox {
  position: absolute;
  z-index: 20;
  top: calc(100% + 9px);
  right: 0;
  width: min(320px, calc(100vw - 40px));
  max-height: min(52svh, 440px);
  padding: 7px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(0, 132, 61, .28);
  border-radius: 18px;
  background: #fff7d4;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .34);
  opacity: 0;
  overscroll-behavior: contain;
  pointer-events: none;
  scrollbar-color: rgba(0, 132, 61, .52) transparent;
  transform: translateY(-7px) scale(.985);
  transform-origin: top right;
  visibility: hidden;
  transition: opacity .2s ease, transform .24s cubic-bezier(.2, .75, .2, 1), visibility 0s linear .24s;
}

.trades-picker.is-open .trades-listbox {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
  transition-delay: 0s;
}

.trades-list-option {
  display: grid;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #153c28;
  cursor: pointer;
  font-family: "Figtree", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  transition: background-color .16s ease, color .16s ease, transform .16s ease;
}

.trades-list-option:hover,
.trades-list-option:focus-visible {
  background: rgba(159, 211, 180, .38);
  color: var(--green);
  outline: none;
}

.trades-list-option:active {
  transform: scale(.985);
}

.trades-list-option[aria-selected="true"] {
  background: var(--green);
  color: var(--yellow);
}

.trades-list-number {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .06em;
}

.trades-swipe-cue {
  display: none;
  position: absolute;
  z-index: 8;
  top: 50%;
  left: 50%;
  width: clamp(160px, 26vw, 220px);
  aspect-ratio: 1;
  place-items: center;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.94);
  visibility: hidden;
  transition: opacity .24s ease, transform .28s cubic-bezier(.2, .75, .2, 1), visibility 0s linear 0s;
}

.trades-swipe-cue.is-ready {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  visibility: visible;
}

.trades-swipe-cue.is-dismissed {
  opacity: 0;
  transform: translate(-50%, -50%) scale(.86);
  visibility: hidden;
  transition-delay: 0s, 0s, .28s;
}

.trades-swipe-cue.is-obscured {
  opacity: 0;
  transform: translate(-50%, -50%) scale(.94);
}

.trades-swipe-lottie {
  position: absolute;
  inset: 0;
  filter: brightness(0) invert(1);
}

.trades-swipe-lottie svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.trades-carousel {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border-radius: 28px;
  outline-offset: 8px;
}

.trades-track {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 440px;
  align-items: stretch;
  justify-content: center;
  gap: clamp(7px, .8vw, 12px);
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
}

.trade-card {
  position: relative;
  order: var(--slot-order, 2);
  flex: .62 1 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 17px;
  background: #242424;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .2);
  isolation: isolate;
  transition: flex-grow .58s cubic-bezier(.2, .82, .2, 1), border-radius .48s ease, opacity .3s ease;
}

.trade-card[hidden] {
  display: none;
}

.trade-card.is-active {
  flex-grow: 4.8;
  border-color: rgba(255, 255, 255, .34);
  border-radius: 27px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .38);
}

@media (hover: hover) and (pointer: fine) {
  .trade-card:not(.is-active):hover {
    flex-grow: 1.05;
  }
}

.trade-card-select {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.trade-card-select:focus-visible {
  outline: 4px solid var(--magenta);
  outline-offset: -7px;
}

.trade-card-image,
.trade-card-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.trade-card-image {
  object-fit: cover;
  object-position: center 34%;
  filter: saturate(.78) brightness(.58);
  scale: 1.04;
  transition: filter .48s ease, scale .7s cubic-bezier(.2, .82, .2, 1);
  pointer-events: none;
}

.trade-card-scrim {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .08) 22%, rgba(0, 0, 0, .06) 48%, rgba(0, 0, 0, .78) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, .18), transparent 38%, rgba(0, 0, 0, .14));
  pointer-events: none;
}

.trade-card.is-active .trade-card-image {
  filter: saturate(1) brightness(.92);
  scale: 1;
}

@media (hover: hover) and (pointer: fine) {
  .trade-card:not(.is-active):hover .trade-card-image {
    filter: saturate(.92) brightness(.75);
    scale: 1.01;
  }
}

.trade-card-label {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 18px;
  left: 14px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: clamp(9px, .75vw, 11px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: .01em;
  opacity: 1;
  text-overflow: clip;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
  text-transform: uppercase;
  transition: opacity .2s ease;
  white-space: nowrap;
  pointer-events: none;
}

.trade-card.is-active .trade-card-label {
  opacity: 0;
}

.trade-card-count {
  position: absolute;
  z-index: 2;
  top: 17px;
  left: 17px;
  min-width: 38px;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  background: rgba(0, 0, 0, .23);
  color: rgba(255, 255, 255, .86);
  font-size: 9px;
  text-align: center;
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.trade-play {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  display: grid;
  width: clamp(58px, 5vw, 72px);
  height: clamp(58px, 5vw, 72px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .46);
  border-radius: 50%;
  place-items: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, .27), rgba(255, 255, 255, .08) 48%, rgba(255, 255, 255, .16));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .52),
    inset 0 -1px 0 rgba(255, 255, 255, .12),
    0 12px 32px rgba(0, 0, 0, .24);
  color: var(--white);
  -webkit-backdrop-filter: blur(18px) saturate(1.55);
  backdrop-filter: blur(18px) saturate(1.55);
  opacity: 0;
  scale: .82;
  translate: -50% -50%;
  transition: opacity .25s ease .15s, scale .42s cubic-bezier(.2, .82, .2, 1);
  pointer-events: none;
}

.trade-play::before {
  position: absolute;
  inset: 4px 8px 52%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .03));
  content: "";
  pointer-events: none;
}

.trade-play svg {
  position: relative;
  z-index: 1;
  width: 31%;
  margin-left: 6%;
  fill: currentColor;
}

.trade-card.is-active .trade-play {
  opacity: 1;
  scale: 1;
}

.trade-card.is-active .trade-play:not(:disabled) {
  cursor: pointer;
  pointer-events: auto;
}

.trade-card.is-active .trade-play:disabled {
  opacity: .46;
}

.trade-play:not(:disabled):hover {
  border-color: rgba(255, 255, 255, .7);
  background: linear-gradient(145deg, rgba(255, 255, 255, .36), rgba(255, 255, 255, .13) 48%, rgba(255, 255, 255, .22));
  scale: 1.06;
}

.trade-play:not(:disabled):focus-visible {
  outline: 4px solid var(--magenta);
  outline-offset: 4px;
}

.trade-play.is-playing {
  border-color: rgba(255, 226, 94, .7);
  background: linear-gradient(145deg, rgba(255, 226, 94, .34), rgba(255, 255, 255, .1) 52%, rgba(255, 205, 0, .2));
  color: #fff2a8;
}

.trade-play.is-playing svg {
  margin-left: 0;
}

.trade-audio {
  display: none;
}

.trade-audio-panel {
  position: absolute;
  z-index: 3;
  right: clamp(14px, 1.6vw, 24px);
  bottom: clamp(14px, 1.6vw, 24px);
  left: clamp(14px, 1.6vw, 24px);
  display: grid;
  min-height: 96px;
  padding: clamp(15px, 1.45vw, 21px);
  grid-template-columns: minmax(145px, .7fr) minmax(190px, 1.3fr);
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 19px;
  background: rgba(247, 249, 247, .94);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .24);
  color: var(--black);
  opacity: 0;
  translate: 0 20px;
  transition: opacity .28s ease .16s, translate .45s cubic-bezier(.2, .82, .2, 1) .12s;
  backdrop-filter: blur(18px);
  pointer-events: none;
}

.trade-card.is-active .trade-audio-panel {
  opacity: 1;
  translate: 0;
}

.trade-audio-copy {
  min-width: 0;
}

.trade-audio-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: #616766;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: none;
}

.trade-audio-copy strong {
  display: block;
  overflow: hidden;
  font-size: clamp(18px, 1.7vw, 26px);
  line-height: 1;
  letter-spacing: -.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trade-audio-copy span:last-child {
  display: block;
  margin-top: 6px;
  color: #5f6664;
  font-size: 12px;
}

.trade-waveform {
  display: flex;
  min-width: 0;
  height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  overflow: hidden;
}

.trade-waveform i {
  display: block;
  width: 3px;
  height: var(--wave-height, 40%);
  min-height: 4px;
  flex: 0 0 3px;
  transform-origin: center;
  border-radius: 99px;
  background: #9da5b2;
}

.trade-card.is-audio-playing .trade-waveform i {
  animation: trade-wave-pulse .72s ease-in-out infinite;
  animation-delay: calc(var(--wave-index, 0) * -.045s);
}

@keyframes trade-wave-pulse {
  0%,
  100% {
    transform: scaleY(.34);
    opacity: .56;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.trades-arrow {
  position: absolute;
  z-index: 10;
  top: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 50%;
  place-items: center;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .24);
  color: var(--black);
  cursor: pointer;
  translate: 0 -50%;
  transition: background-color .2s ease, scale .2s ease;
}

.trades-arrow:hover {
  background: var(--yellow);
  scale: 1.06;
}

.trades-arrow svg {
  width: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.trades-arrow-prev {
  left: 18px;
}

.trades-arrow-next {
  right: 18px;
}

.trades-status {
  position: absolute;
  z-index: 8;
  top: 17px;
  right: 17px;
  min-height: 34px;
  margin: 0;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px;
  background: rgba(0, 0, 0, .28);
  color: rgba(255, 255, 255, .9);
  font-size: 10px;
  backdrop-filter: blur(12px);
  pointer-events: none;
}

@media (min-width: 1025px) {
  .trade-card[data-trade-id="landscaper"].is-active .trade-card-image {
    object-position: 50% 14%;
  }
}

@media (max-width: 1024px) {
  .trades-stage {
    padding-top: 104px;
    gap: 18px;
  }

  .trades-intro {
    grid-template-columns: 1fr auto;
    gap: 22px;
  }

  .trades-intro h1 {
    font-size: clamp(52px, 8vw, 78px);
  }

  .trades-intro-side > p:first-child {
    max-width: 290px;
    font-size: 17px;
  }

  .trades-swipe-cue {
    display: grid;
  }

  .trades-carousel,
  .trades-track {
    min-height: 530px;
  }

  .trade-card {
    flex-grow: .7;
  }

  .trade-card.is-active {
    flex-grow: 8.4;
  }

  .trade-card-label {
    display: none;
  }

  .trades-arrow {
    display: none;
  }
}

@media (max-width: 760px) {
  .trades-page .site-header {
    padding: 10px 12px 0;
  }

  .trades-page .nav-shell {
    min-height: 58px;
    padding: 0 12px 0 14px;
    border-width: 1px;
    border-radius: 19px;
  }

  .trades-page .header-actions {
    margin-right: 4px;
  }

  .trades-page .header-cta {
    min-width: 126px;
    min-height: 44px;
    padding: 0 12px;
    font-size: 10px;
  }

  .trades-page .mobile-menu {
    margin-top: 6px;
    border-radius: 19px;
  }

  .trades-stage {
    min-height: 100svh;
    padding: 88px 12px 12px;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
  }

  .trades-intro {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0 8px;
  }

  .trades-intro h1 {
    font-size: clamp(34px, 9.7vw, 43px);
    line-height: .84;
  }

  .trades-intro-side {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
  }

  .trades-intro-side > p:first-child {
    max-width: 215px;
    font-size: 14px;
  }

  .trades-hint {
    min-height: 30px;
    padding: 0 10px;
    font-size: 8px;
    white-space: nowrap;
  }

  .trades-list-trigger {
    min-width: 78px;
    min-height: 32px;
    padding: 0 10px 0 13px;
    font-size: 9px;
  }

  .trades-listbox {
    width: min(304px, calc(100vw - 40px));
    max-height: min(56svh, 430px);
    border-radius: 16px;
  }

  .trades-list-option {
    min-height: 40px;
    font-size: 13px;
  }

  .trades-carousel {
    min-height: 0;
    border-radius: 21px;
  }

  .trades-track {
    min-height: 0;
    gap: 7px;
    border-radius: 21px;
  }

  .trade-card,
  .trade-card.is-active {
    border-radius: 18px;
  }

  .trade-card-count {
    top: 12px;
    left: 12px;
    padding: 7px 8px;
    font-size: 8px;
  }

  .trade-play {
    top: 44%;
    width: 56px;
    height: 56px;
  }

  .trades-swipe-cue {
    top: 44%;
  }

  .trade-audio-panel {
    right: 10px;
    bottom: 10px;
    left: 10px;
    min-height: 118px;
    padding: 14px;
    grid-template-columns: 1fr;
    gap: 11px;
    border-radius: 15px;
  }

  .trade-audio-eyebrow {
    margin-bottom: 5px;
    font-size: 8px;
  }

  .trade-audio-copy strong {
    font-size: 21px;
  }

  .trade-audio-copy span:last-child {
    margin-top: 4px;
    font-size: 10px;
  }

  .trade-waveform {
    height: 31px;
    gap: 2px;
  }

  .trade-waveform i {
    width: 2px;
    flex-basis: 2px;
  }

  .trades-status {
    top: 12px;
    right: 12px;
    min-height: 30px;
    padding: 0 10px;
    font-size: 8px;
  }
}

@media (max-width: 390px) and (max-height: 760px) {
  .trades-stage {
    padding-top: 82px;
  }

  .trades-intro-side > p:first-child {
    display: none;
  }

  .trades-intro-side {
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trade-card,
  .trade-card-image,
  .trade-play,
  .trade-audio-panel,
  .trades-arrow,
  .trades-list-trigger,
  .trades-listbox,
  .trades-list-option,
  .trades-swipe-cue {
    transition: none !important;
  }

  .trades-swipe-cue {
    display: none !important;
  }

  .trade-card.is-audio-playing .trade-waveform i {
    animation: none !important;
  }
}

/* Alice preview r129: one robust Alice brand and one restrained picker palette. */
.trades-page .site-header .alice-nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.trades-list-trigger,
.trades-list-trigger[aria-expanded="true"] {
  border-color: #a9d7f6;
  background: #fff;
  box-shadow: none;
  color: #16415f;
}

.trades-list-trigger:hover,
.trades-list-trigger:focus-visible,
.trades-list-trigger[aria-expanded="true"]:hover,
.trades-list-trigger[aria-expanded="true"]:focus-visible {
  border-color: #74bde9;
  background: #eaf6ff;
  box-shadow: 0 0 0 2px rgba(116, 189, 233, .18);
}

.trades-listbox {
  border-color: #b9def5;
  background: #fff;
  scrollbar-color: #9acdeb #eef8ff;
}

.trades-list-option {
  color: #17364b;
}

.trades-list-option:hover,
.trades-list-option:focus-visible {
  background: #eaf6ff;
  color: #12334a;
}

.trades-list-option[aria-selected="true"] {
  background: #d8effd;
  color: #102f44;
}

@media (max-width: 760px) {
  .trades-page .site-header .alice-nav-logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
}
